Skip to content

DesignClient

Defined in: packages/core/src/adapters/design.ts:68

Runtime — bound to a credential, talks to the vendor API.

fetchMetas(fileKey, refs, options?): Promise<Map<string, DesignMeta>>

Defined in: packages/core/src/adapters/design.ts:73

Metadata for several refs of one file, keyed by node id ("" = whole file). API failures map to a DesignState per ref rather than throwing.

string

readonly DesignRef[]

DesignCallOptions

Promise<Map<string, DesignMeta>>


fetchRenders(fileKey, nodeIds, options?): Promise<Map<string, Buffer<ArrayBufferLike>>>

Defined in: packages/core/src/adapters/design.ts:82

PNG renders of several nodes of one file, keyed by node id. Nodes the vendor cannot render are omitted; throws when the render API call itself fails.

string

readonly string[]

DesignCallOptions

Promise<Map<string, Buffer<ArrayBufferLike>>>