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:
74
nodes/Strike/descriptions/AccountDescription.ts
Normal file
74
nodes/Strike/descriptions/AccountDescription.ts
Normal file
@ -0,0 +1,74 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const accountOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['account'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get Profile',
|
||||
value: 'getProfile',
|
||||
description: 'Get account profile by ID',
|
||||
action: 'Get account profile',
|
||||
},
|
||||
{
|
||||
name: 'Get Profile by Handle',
|
||||
value: 'getProfileByHandle',
|
||||
description: 'Get account profile by handle',
|
||||
action: 'Get account profile by handle',
|
||||
},
|
||||
{
|
||||
name: 'Get Limits',
|
||||
value: 'getLimits',
|
||||
description: 'Get account limits',
|
||||
action: 'Get account limits',
|
||||
},
|
||||
],
|
||||
default: 'getLimits',
|
||||
},
|
||||
];
|
||||
|
||||
export const accountFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// account:getProfile
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Account ID',
|
||||
name: 'accountId',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default: '',
|
||||
description: 'The ID of the account',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['account'],
|
||||
operation: ['getProfile'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
// account:getProfileByHandle
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Handle',
|
||||
name: 'handle',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default: '',
|
||||
description: 'The handle of the account (username)',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['account'],
|
||||
operation: ['getProfileByHandle'],
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user