UNPKG

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

Version:
43 lines 2.24 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 WorkItemConfigBaseInfoGetOperate = { name: '获取工作项基础信息配置', value: 'work_item_config:base_info_get', description: '该接口用于获取指定工作项类型的基础信息配置,对应的平台功能介绍详见<a href="https://project.feishu.cn/b/helpcenter/1ykiuvvj/2rv0xerq">基本信息配置</a>和<a href="https://project.feishu.cn/b/helpcenter/1ykiuvvj/3t60v7vo">基本信息页配置</a>', order: 10, options: [ description_1.DESCRIPTIONS.PROJECT_KEY, { displayName: '工作项类型 Name or ID', name: 'work_item_type_key', type: 'options', default: '', required: true, description: '空间下工作项类型,需要先选择空间,详见:<a href="https://project.feishu.cn/b/helpcenter/2.0.0/1p8d7djs/3pjp854w">获取空间下工作项类型</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', typeOptions: { loadOptionsMethod: 'loadWorkItemTypes', }, }, sharedOptions_1.commonOptions, ], async call(index) { const project_key = this.getNodeParameter('project_key', index, '', { extractValue: true, }); const work_item_type_key = this.getNodeParameter('work_item_type_key', index); const options = this.getNodeParameter('options', index, {}); return RequestUtils_1.default.request.call(this, { method: 'GET', url: `/open_api/${project_key}/work_item/type/${work_item_type_key}`, timeout: options.timeout, }); } }; exports.default = WorkItemConfigBaseInfoGetOperate; //# sourceMappingURL=WorkItemConfigBaseInfoGetOperate.js.map