UNPKG

n8n-nodes-v4-companynodes

Version:
50 lines 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FwoCredentialsApi = void 0; class FwoCredentialsApi { constructor() { this.name = 'fwoCredentialsApi'; this.displayName = 'FWO Credentials API'; this.properties = [ { displayName: 'API Token', name: 'token', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'The API token for authenticating requests to the FWO GraphQL API.', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://fwo-backend-kb5o34rasa-uc.a.run.app', required: true, description: 'The base URL of the FWO API.', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: 'Bearer {{$credentials.token}}', }, }, }; this.test = { request: { method: 'POST', url: '={{$credentials.baseUrl}}/graphql', headers: { 'Content-Type': 'application/json', }, body: { query: `query { __typename }`, }, }, }; } } exports.FwoCredentialsApi = FwoCredentialsApi; //# sourceMappingURL=FwoCredentialsApi.credentials.js.map