UNPKG

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

Version:

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

63 lines 2.22 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 CommentQueryOperate = { name: '查询评论', value: 'comment:query', options: [ { displayName: '项目Key', name: 'project_key', type: 'string', required: true, default: '', description: '项目的唯一标识Key', }, { displayName: '工作项类型Key', name: 'work_item_type_key', type: 'string', required: true, default: '', description: '工作项类型的唯一标识Key', }, { displayName: '工作项ID', name: 'work_item_id', type: 'string', required: true, default: '', description: '工作项的唯一标识ID', }, { displayName: '页码', name: 'page_num', type: 'string', default: '0', description: '页码,从0开始', }, { displayName: '页大小', name: 'page_size', type: 'string', default: '0', description: '每页条数', }, ], async call(index) { const project_key = this.getNodeParameter('project_key', index); const work_item_type_key = this.getNodeParameter('work_item_type_key', index); const work_item_id = this.getNodeParameter('work_item_id', index); const page_num = this.getNodeParameter('page_num', index); const page_size = this.getNodeParameter('page_size', index); return RequestUtils_1.default.request.call(this, { method: 'GET', url: `/open_api/${project_key}/work_item/${work_item_type_key}/${work_item_id}/comments?page_num=${page_num}&page_size=${page_size}`, }); } }; exports.default = CommentQueryOperate; //# sourceMappingURL=CommentQueryOperate.js.map