UNPKG

@pipedream/transloadit

Version:

Pipedream Transloadit Components

29 lines (27 loc) 805 B
import transloadit from "../../transloadit.app.mjs"; export default { key: "transloadit-get-assembly-status", name: "Get Assembly Status", description: "Retrieve the current status and results of an existing assembly. [See the documentation](https://transloadit.com/docs/api/assemblies-assembly-id-get/)", version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: true, }, type: "action", props: { transloadit, assemblyId: { propDefinition: [ transloadit, "assemblyId", ], }, }, async run({ $ }) { const response = await this.transloadit.getAssemblyStatus(this.assemblyId); $.export("$summary", `Successfully retrieved assembly status for ${this.assemblyId}`); return response; }, };