UNPKG

n8n-nodes-ninja-one

Version:
72 lines 2.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NinjaOneOAuth2Api = void 0; class NinjaOneOAuth2Api { constructor() { this.name = 'ninjaOneOAuth2Api'; this.displayName = 'NinjaOne OAuth2 API'; this.extends = ['oAuth2Api']; this.documentationUrl = 'https://example.com/docs'; this.properties = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.example.com/v1', required: true, }, { displayName: 'Authorization URL', name: 'authUrl', type: 'string', default: 'https://api.example.com/oauth2/authorize', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'string', default: 'https://api.example.com/oauth2/token', required: true, }, { displayName: 'Scope', name: 'scope', type: 'string', default: 'read:users write:users', required: false, }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'string', default: '', displayOptions: { show: { grantType: [ 'authorizationCode', ], }, }, }, { displayName: 'Authentication', name: 'authentication', type: 'options', options: [ { name: 'Body', value: 'body', }, { name: 'Header', value: 'header', }, ], default: 'header', }, ]; } } exports.NinjaOneOAuth2Api = NinjaOneOAuth2Api; //# sourceMappingURL=NinjaOneOAuth2Api.credentials.js.map