()
| 48 | }; |
| 49 | |
| 50 | const main = async () => { |
| 51 | cliPrint.info('Making request...'); |
| 52 | const requestId = await makeRequest(); |
| 53 | cliPrint.info('Waiting for fulfillment...'); |
| 54 | await setMaxPromiseTimeout(waitForFulfillment(requestId), 180 * 1000); |
| 55 | cliPrint.info('Request fulfilled'); |
| 56 | |
| 57 | const integrationInfo = readIntegrationInfo(); |
| 58 | // Import the function to print the response from the chosen integration. See the respective "request-utils.ts" for |
| 59 | // details. |
| 60 | const { printResponse } = await import(`../../integrations/${integrationInfo.integration}/request-utils.ts`); |
| 61 | await printResponse(requestId); |
| 62 | }; |
| 63 | |
| 64 | runAndHandleErrors(main); |
nothing calls this directly
no test coverage detected