@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.
32 lines • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAIAppOutputs = getAIAppOutputs;
const transport_1 = require("../../transport");
const helpers_1 = require("../../helpers");
async function getAIAppOutputs(ef, index) {
var _a, _b;
try {
const appId = ef.getNodeParameter('appId', index);
const transcriptId = ef.getNodeParameter('transcriptId', index);
const skip = ef.getNodeParameter('skip', index, 0);
const limit = ef.getNodeParameter('limit', index, 10);
const variables = {
appId,
transcriptId,
skip,
limit,
};
const response = await transport_1.callGraphQLApi.call(ef, helpers_1.getAIAppOutputsQuery, variables);
return ((_b = (_a = response.apps) === null || _a === void 0 ? void 0 : _a.outputs) !== null && _b !== void 0 ? _b : []).map((output) => ({
json: {
success: true,
data: output,
},
}));
}
catch (error) {
const errorResponse = (0, helpers_1.handleOperationError)(ef.getNode(), error, ef.continueOnFail(), 'getAIAppOutputs');
return [{ json: errorResponse }];
}
}
//# sourceMappingURL=getAIAppOutputs.js.map