Files
n8n-nodes-strike/dist/credentials/StrikeApi.credentials.js
Martien 5605b9b49a Initial commit: n8n Strike API node
- Add Strike API credentials configuration
- Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates)
- Add comprehensive operation descriptions for all resources
- Include CLAUDE.MD documentation
- Set up build configuration with TypeScript, ESLint, and Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 11:00:38 +01:00

54 lines
1.7 KiB
JavaScript

"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;