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