"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StrikeApi = void 0; class StrikeApi { constructor() { this.name = 'strikeApi'; this.displayName = 'Strike API'; this.documentationUrl = 'https://docs.strike.me/api/'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Your Strike API key from the Strike Dashboard', }, { displayName: 'Environment', name: 'environment', type: 'options', options: [ { name: 'Production', value: 'production', }, { name: 'Sandbox', value: 'sandbox', }, ], default: 'production', description: 'Select the Strike API environment', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.environment === "sandbox" ? "https://api.strike.me" : "https://api.strike.me"}}', url: '/v1/balances', }, }; } } exports.StrikeApi = StrikeApi;