UNPKG

@pipedream/breathe

Version:

Pipedream Breathe Components

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