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.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const GenericFunctions_1 = require("../../GenericFunctions"); const wording_1 = require("../../../help/wording"); const description_1 = require("../../../help/description"); exports.default = { name: wording_1.WORDING.GetMessageContentResource, value: "getContentResource", order: 195, options: [ description_1.DESCRIPTIONS.MESSAGE_ID, description_1.DESCRIPTIONS.RESOURCE_TYPE, description_1.DESCRIPTIONS.RESOURCE_KEY, { displayName: `<a target="_blank" href="https://open.feishu.cn/document/server-docs/im-v1/message/get-2">${wording_1.WORDING.OpenDocument}</a>`, name: 'notice', type: 'notice', default: '', }, ], async call(index) { const message_id = this.getNodeParameter('message_id', index); const file_key = this.getNodeParameter('file_key', index); const type = this.getNodeParameter('type', index, 'image'); const data = await GenericFunctions_1.larkApiRequestMessageResourceData.call(this, { type, messageId: message_id, key: file_key, }); return { data, type, }; }, }; //# sourceMappingURL=ContentResourceGet.operation.js.map