@luka-cat-mimi/n8n-nodes-feishu-project
Version:
飞书项目 N8N 集成插件,支持附件管理等功能
44 lines • 1.69 kB
JavaScript
;
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 NodeUtils_1 = __importDefault(require("../../../help/utils/NodeUtils"));
const WorkItemConfigRelationUpdateOperate = {
name: '更新工作项关系',
value: 'work_item_config:relation_update',
options: [
{
displayName: '请求体参数',
name: 'body',
type: 'json',
default: JSON.stringify({
"relation_id": "",
"project_key": "",
"work_item_type_key": "",
"name": "",
"relation_details": [
{
"work_item_type_key": "",
"work_item_type_name": "",
"project_key": "",
"project_name": ""
}
]
}, null, 2),
description: '完整的请求体参数,JSON格式',
},
],
async call(index) {
const bodyParam = this.getNodeParameter('body', index);
const body = NodeUtils_1.default.parseJsonParameter(bodyParam, '请求体参数');
return RequestUtils_1.default.request.call(this, {
method: 'POST',
url: `/open_api/work_item/relation/update`,
body: body,
});
}
};
exports.default = WorkItemConfigRelationUpdateOperate;
//# sourceMappingURL=WorkItemConfigRelationUpdateOperate.js.map