UNPKG

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

Version:
45 lines 1.83 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 WorkItemConfigRelationDeleteOperate = { name: '删除工作项关系', value: 'work_item_config:relation_delete', description: '该接口用于删除指定空间下的工作项关联关系,对应的平台功能介绍详见<a href="https://project.feishu.cn/b/helpcenter/1ykiuvvj/se3xal6e">关系管理</a>', order: 90, options: [ description_1.DESCRIPTIONS.PROJECT_KEY, { displayName: '关系ID', name: 'relation_id', type: 'string', default: '', required: true, description: '工作项关系的唯一标识ID', }, sharedOptions_1.commonOptions, ], async call(index) { const project_key = this.getNodeParameter('project_key', index, '', { extractValue: true, }); const relation_id = this.getNodeParameter('relation_id', index); const options = this.getNodeParameter('options', index, {}); const body = { relation_id, project_key, }; return RequestUtils_1.default.request.call(this, { method: 'DELETE', url: `/open_api/work_item/relation/delete`, body: body, timeout: options.timeout, }); } }; exports.default = WorkItemConfigRelationDeleteOperate; //# sourceMappingURL=WorkItemConfigRelationDeleteOperate.js.map