UNPKG

@luka-cat-mimi/n8n-nodes-feishu-project

Version:
39 lines 1.54 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const RequestUtils_1 = __importDefault(require("../../../help/utils/RequestUtils")); const sharedOptions_1 = require("../../../help/utils/sharedOptions"); const description_1 = require("../../../help/description"); const WorkflowConfigTemplateDetailOperate = { name: '获取流程模板配置详情', value: 'workflow_config:template_detail', order: 20, options: [ description_1.DESCRIPTIONS.PROJECT_KEY, { displayName: '模板ID', name: 'template_id', type: 'string', required: true, default: '', description: '模板的唯一标识ID', }, sharedOptions_1.commonOptions, ], async call(index) { const project_key = this.getNodeParameter('project_key', index, '', { extractValue: true, }); const template_id = this.getNodeParameter('template_id', index); const options = this.getNodeParameter('options', index, {}); return RequestUtils_1.default.request.call(this, { method: 'GET', url: `/open_api/${project_key}/template_detail/${template_id}`, timeout: options.timeout, }); } }; exports.default = WorkflowConfigTemplateDetailOperate; //# sourceMappingURL=WorkflowConfigTemplateDetailOperate.js.map