@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.
26 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserGroups = getUserGroups;
const transport_1 = require("../../transport");
const helpers_1 = require("../../helpers");
async function getUserGroups(ef, index) {
var _a;
try {
const additionalFields = ef.getNodeParameter('additionalFields', index, {});
const variables = {};
if (additionalFields.mine !== undefined)
variables.mine = additionalFields.mine;
const response = await transport_1.callGraphQLApi.call(ef, helpers_1.getUserGroupsQuery, variables);
return ((_a = response.user_groups) !== null && _a !== void 0 ? _a : []).map((group) => ({
json: {
success: true,
data: group,
},
}));
}
catch (error) {
const errorResponse = (0, helpers_1.handleOperationError)(ef.getNode(), error, ef.continueOnFail(), 'getUserGroups');
return [{ json: errorResponse }];
}
}
//# sourceMappingURL=getUserGroups.js.map