UNPKG

@firefliesai/n8n-nodes-fireflies

Version:

An n8n integration for the Fireflies.ai API that enables workflow automation with meeting transcripts, analytics, summaries, and other conversation data from Fireflies.ai's AI meeting assistant.

45 lines 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAIAppOutputs = getAIAppOutputs; const n8n_workflow_1 = require("n8n-workflow"); const transport_1 = require("../../transport"); const queries_1 = require("../../helpers/queries"); async function getAIAppOutputs(ef, index) { try { const appId = ef.getNodeParameter('appId', index, ''); const transcriptId = ef.getNodeParameter('transcriptId', index, ''); const limit = ef.getNodeParameter('limit', index, 10); const skip = ef.getNodeParameter('skip', index, 0); const response = await transport_1.callGraphQLApi.call(ef, queries_1.getAIAppOutputsQuery, { appId: appId || undefined, transcriptId: transcriptId || undefined, skip, limit: limit || undefined, }); return response.apps.outputs.map((output) => ({ json: { success: true, data: output, }, })); } catch (error) { const errorData = { success: false, error: { message: error.message, details: 'Error retrieving AI app outputs', code: error.code || 'UNKNOWN_ERROR', timestamp: new Date().toISOString(), }, }; if (!ef.continueOnFail()) { throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, { message: errorData.error.message, description: errorData.error.details, }); } return [{ json: errorData }]; } } //# sourceMappingURL=getAIAppOutputs.js.map