A helper class for creating assets. Sample usage:
const asset = await new Assets().create({ file, workspaceId: someWorkspaceId }); Copy
const asset = await new Assets().create({ file, workspaceId: someWorkspaceId });
Create an asset from a a file. The file can either be an existing file in the system (by specifying fileId) or a new file (by specifying a Javascript file). If a file is passed, fileId is ignored.
file
fileId
The created asset.
Generated using TypeDoc
A helper class for creating assets. Sample usage: