A helper class for creating assets. Sample usage:

const asset = await new Assets().create({ file, workspaceId: someWorkspaceId });

Constructors

Methods

Constructors

Methods

  • 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.

    Parameters

    Returns Promise<any>

    The created asset.

Generated using TypeDoc