( client: HyperframesCloudClient, opts: SubmitOptions, )
| 602 | } |
| 603 | |
| 604 | async function submitRender( |
| 605 | client: HyperframesCloudClient, |
| 606 | opts: SubmitOptions, |
| 607 | ): Promise<{ render_id: string }> { |
| 608 | const body = buildRenderBody(opts); |
| 609 | try { |
| 610 | return await client.createRender({ body, idempotencyKey: opts.idempotencyKey }); |
| 611 | } catch (err) { |
| 612 | reportApiError("Submit failed", err); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | // fallow-ignore-next-line complexity |
| 617 | function buildRenderBody(opts: SubmitOptions): CreateHyperframesRenderRequest { |
no test coverage detected