@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.
28 lines • 964 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphQLApiError = void 0;
exports.callGraphQLApi = callGraphQLApi;
class GraphQLApiError extends Error {
constructor(message, errors, data) {
super(message);
this.name = 'GraphQLApiError';
this.errors = errors;
this.data = data;
}
}
exports.GraphQLApiError = GraphQLApiError;
async function callGraphQLApi(query, variables) {
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'firefliesApi', {
url: 'https://api.fireflies.ai/graphql',
method: 'POST',
body: {
query,
...(variables && { variables }),
},
});
if (response.errors && response.errors.length > 0) {
throw new GraphQLApiError(response.errors[0].message || 'GraphQL API error', response.errors, response.data);
}
return response.data;
}
//# sourceMappingURL=index.js.map