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.

36 lines 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBites = getBites; const transport_1 = require("../../transport"); const helpers_1 = require("../../helpers"); async function getBites(ef, index) { var _a; try { const filterBy = ef.getNodeParameter('filterBy', index); const limit = ef.getNodeParameter('limit', index, 10); const skip = ef.getNodeParameter('skip', index, 0); const variables = { limit, skip }; if (filterBy === 'mine') { variables.mine = true; } else if (filterBy === 'myTeam') { variables.myTeam = true; } else if (filterBy === 'transcript') { const transcriptId = ef.getNodeParameter('transcriptId', index); variables.transcriptId = transcriptId; } const response = await transport_1.callGraphQLApi.call(ef, helpers_1.getBitesQuery, variables); return ((_a = response.bites) !== null && _a !== void 0 ? _a : []).map((bite) => ({ json: { success: true, data: bite, }, })); } catch (error) { const errorResponse = (0, helpers_1.handleOperationError)(ef.getNode(), error, ef.continueOnFail(), 'getBites'); return [{ json: errorResponse }]; } } //# sourceMappingURL=getBites.js.map