UNPKG

n8n-nodes-exact-online-v1

Version:

Exact Online Community node for n8n

107 lines 3.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExactOnlineApiOAuth2Api = void 0; class ExactOnlineApiOAuth2Api { constructor() { this.name = 'exactOnlineApiOAuth2Api'; this.extends = ['oAuth2Api']; this.icon = 'file:exactOnline.svg'; this.displayName = 'Exact Online API OAuth2 API'; this.properties = [ { displayName: 'Grant Type', name: 'grantType', type: 'hidden', default: 'authorizationCode', }, { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', default: '={{$self["url"]}}/api/oauth2/auth', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', default: '={{$self["url"]}}/api/oauth2/token', required: true, }, { displayName: 'Scope', name: 'scope', type: 'hidden', default: '', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden', default: '', }, { displayName: 'Authentication', name: 'authentication', type: 'hidden', default: 'body', }, { 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: {}, }, }; this.test = { request: { baseURL: 'https://example.com/', url: '', }, }; } } exports.ExactOnlineApiOAuth2Api = ExactOnlineApiOAuth2Api; //# sourceMappingURL=ExactOnlineApiOAuth2Api.credentials.js.map