@pipedream/breathe
Version:
Pipedream Breathe Components
25 lines (23 loc) • 669 B
JavaScript
import breathe from "../../breathe.app.mjs";
export default {
key: "breathe-list-working-pattern-id-options",
name: "List Working Pattern ID Options",
description: "Retrieves available options for the Working Pattern ID field.",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
breathe,
},
async run({ $ }) {
const options = await breathe.propDefinitions.workingPatternId.options.call(this.breathe);
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
? ""
: "s"}`);
return options;
},
};