UNPKG

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

Version:

飞书项目 N8N 集成插件,支持附件管理等功能

73 lines 2.75 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 NodeUtils_1 = __importDefault(require("../../../help/utils/NodeUtils")); const WorkItemInstanceSearchCrossSpaceOperate = { name: '获取指定的工作项列表(跨空间)', value: 'work_item_instance_search:cross_space', options: [ { displayName: '请求体参数', name: 'body', type: 'json', default: JSON.stringify({ "search_user": { "user_keys": [""], "field_key": "", "role": "" }, "work_item_type_key": "", "created_at": { "start": 0, "end": 0 }, "updated_at": { "start": 0, "end": 0 }, "work_item_status": [ { "state_key": "", "is_archived_state": true, "is_init_state": true, "updated_at": 1654063482000, "updated_by": "", "history": [{}] } ], "work_item_name": "", "page_num": 1, "page_size": 10, "tenant_group_id": 0, "work_item_ids": [0], "businesses": [""], "priorities": [""], "tags": [""], "simple_names": [""], "template_ids": [0], "expand": { "need_workflow": true, "relation_fields_detail": true, "need_multi_text": true, "need_user_detail": true, "need_sub_task_parent": true } }, 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_items/filter_across_project`, body: body, }); } }; exports.default = WorkItemInstanceSearchCrossSpaceOperate; //# sourceMappingURL=WorkItemInstanceSearchCrossSpaceOperate.js.map