UNPKG

n8n-nodes-feishu-lark

Version:

n8n custom nodes for n8n to interact with Feishu/Lark, including Lark Bot, Lark MCP, and Lark Trigger.

36 lines 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const wording_1 = require("../../../help/wording"); const description_1 = require("../../../help/description"); const GenericFunctions_1 = require("../../GenericFunctions"); exports.default = { name: wording_1.WORDING.GetFileList, value: "getFileList", order: 200, options: [ description_1.DESCRIPTIONS.SPACE_FILE_TYPE, { displayName: wording_1.WORDING.Options, name: 'options', type: 'collection', placeholder: wording_1.WORDING.AddField, default: {}, options: [description_1.DESCRIPTIONS.ORDER_BY, description_1.DESCRIPTIONS.DIRECTION, description_1.DESCRIPTIONS.USER_ID_TYPE], }, { displayName: `<a target="_blank" href="https://open.feishu.cn/document/server-docs/docs/drive-v1/folder/list">${wording_1.WORDING.OpenDocument}</a>`, name: 'notice', type: 'notice', default: '', }, ], async call(index) { const type = this.getNodeParameter('space_file_type', index, undefined); const options = this.getNodeParameter('options', index, {}); const order_by = options.order_by || 'EditedTime'; const direction = options.direction || 'DESC'; const user_id_type = options.user_id_type || 'open_id'; return (await GenericFunctions_1.getFileList.call(this, type, order_by, direction, user_id_type)); }, }; //# sourceMappingURL=FileGetList.operation.js.map