UNPKG

@pipedream/cody

Version:

Pipedream Cody Components

34 lines (32 loc) 798 B
import cody from "../../cody.app.mjs"; export default { key: "cody-list-folder-id-options", name: "List Folder Id Options", description: "Retrieves available options for the Folder Id field.", version: "0.0.1", type: "action", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: true, }, props: { cody, page: { type: "integer", label: "Page", description: "The page of results to retrieve.", min: 0, default: 0, }, }, async run({ $ }) { const options = await cody.propDefinitions.folderId.options.call(this.cody, { page: this.page, }); $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1 ? "" : "s"}`); return options; }, };