UNPKG

n8n-nodes-exact-online-v1

Version:

Exact Online Community node for n8n

76 lines 2.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExactOnlineApi = void 0; class ExactOnlineApi { constructor() { this.name = 'exactOnlineApi'; this.icon = 'file:exactOnline.svg'; this.displayName = 'Exact Online API With AccessToken API'; this.properties = [ { displayName: 'Access Token', name: 'accessToken', type: 'string', default: '', }, { displayName: 'Country', name: 'country', type: 'options', default: 'nl', options: [ { name: 'Belgium', value: 'be', }, { name: 'France', value: 'fr', }, { name: 'Germany', value: 'de', }, { name: 'Spain', value: 'es', }, { name: 'The Netherlands', value: 'nl', }, { name: 'United Kingdom', value: 'co.uk', }, { name: 'United States of America', value: 'com', }, ], }, { displayName: 'URL', name: 'url', type: 'hidden', default: '=https://start.exactonline.{{$self["country"]}}', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.accessToken }}', }, }, }; this.test = { request: { baseURL: 'https://example.com/', url: '', }, }; } } exports.ExactOnlineApi = ExactOnlineApi; //# sourceMappingURL=ExactOnlineApi.credentials.js.map