@couleetech/n8n-nodes-enlightenedmsp
Version:
n8n node for EnlightenedMSP ticketing and workflow automation
50 lines (49 loc) • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnlightenedMspGraphql = void 0;
class EnlightenedMspGraphql {
constructor() {
this.name = 'enlightenedMspGraphql';
this.displayName = 'EnlightenedMSP GraphQL API';
this.documentationUrl = '';
this.properties = [
{
displayName: 'GraphQL Endpoint',
name: 'endpoint',
type: 'string',
default: '',
required: true,
description: 'The GraphQL endpoint URL',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'The API key for authentication',
},
{
displayName: 'User ID',
name: 'userId',
type: 'string',
default: '',
required: false,
description: 'Optional user ID for request authentication',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'x-api-key': '={{$credentials.apiKey}}',
'x-api-user': '={{$credentials.userId}}',
},
},
};
}
}
exports.EnlightenedMspGraphql = EnlightenedMspGraphql;