@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.
22 lines • 867 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getActiveMeetings = getActiveMeetings;
const transport_1 = require("../../transport");
const helpers_1 = require("../../helpers");
async function getActiveMeetings(ef, index) {
var _a;
try {
const response = await transport_1.callGraphQLApi.call(ef, helpers_1.getActiveMeetingsQuery, { input: {} });
return ((_a = response.active_meetings) !== null && _a !== void 0 ? _a : []).map((meeting) => ({
json: {
success: true,
data: meeting,
},
}));
}
catch (error) {
const errorResponse = (0, helpers_1.handleOperationError)(ef.getNode(), error, ef.continueOnFail(), 'getActiveMeetings');
return [{ json: errorResponse }];
}
}
//# sourceMappingURL=getActiveMeetings.js.map