@digitalstories/n8n-nodes-infomaniak
Version:
n8n nodes to interact with Infomaniak services (Kchat)
73 lines • 2.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InfomaniakApi = void 0;
class InfomaniakApi {
constructor() {
this.name = 'infomaniakApi';
this.displayName = 'Infomaniak API';
this.documentationUrl = 'https://developer.infomaniak.com/docs/';
this.icon = 'icons/infomaniak.svg';
this.properties = [
{
displayName: 'Service',
name: 'service',
type: 'options',
options: [
{
name: 'Kchat',
value: 'kchat',
},
{
name: 'Kmeet',
value: 'kmeet',
},
{
name: 'URL Shortener',
value: 'urlshortener',
},
{
name: 'Kdrive',
value: 'kdrive',
},
{
name: 'Newsletter/eTickets',
value: 'newsletter',
},
],
default: 'kchat',
description: 'The Infomaniak service to use',
},
{
displayName: 'Team Slug',
name: 'teamSlug',
type: 'string',
default: '',
description: 'Your Infomaniak team slug (required for Kchat)',
displayOptions: {
show: {
service: ['kchat'],
},
},
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Your API key for authentication',
required: true,
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}',
},
},
};
}
}
exports.InfomaniakApi = InfomaniakApi;
//# sourceMappingURL=InfomaniakApi.credentials.js.map