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>
This commit is contained in:
9
dist/credentials/StrikeApi.credentials.d.ts
vendored
Normal file
9
dist/credentials/StrikeApi.credentials.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
export declare class StrikeApi implements ICredentialType {
|
||||
name: string;
|
||||
displayName: string;
|
||||
documentationUrl: string;
|
||||
properties: INodeProperties[];
|
||||
authenticate: IAuthenticateGeneric;
|
||||
test: ICredentialTestRequest;
|
||||
}
|
||||
53
dist/credentials/StrikeApi.credentials.js
vendored
Normal file
53
dist/credentials/StrikeApi.credentials.js
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user