MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / buildRenderBody

Function buildRenderBody

packages/cli/src/commands/cloud/render.ts:617–630  ·  view source on GitHub ↗
(opts: SubmitOptions)

Source from the content-addressed store, hash-verified

615
616// fallow-ignore-next-line complexity
617function buildRenderBody(opts: SubmitOptions): CreateHyperframesRenderRequest {
618 const body: CreateHyperframesRenderRequest = { project: opts.projectInput };
619 if (opts.fps !== undefined) body.fps = opts.fps;
620 if (opts.quality !== undefined) body.quality = opts.quality;
621 if (opts.format !== undefined) body.format = opts.format;
622 if (opts.resolution !== undefined) body.resolution = opts.resolution;
623 if (opts.aspectRatio !== undefined) body.aspect_ratio = opts.aspectRatio;
624 if (opts.composition !== undefined) body.composition = opts.composition;
625 if (opts.variables !== undefined) body.variables = opts.variables;
626 if (opts.title !== undefined) body.title = opts.title;
627 if (opts.callbackUrl !== undefined) body.callback_url = opts.callbackUrl;
628 if (opts.callbackId !== undefined) body.callback_id = opts.callbackId;
629 return body;
630}
631
632// ---------------------------------------------------------------------------
633// Poll + progress

Callers 1

submitRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected