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:
131
dist/nodes/Strike/descriptions/CurrencyExchangeDescription.js
vendored
Normal file
131
dist/nodes/Strike/descriptions/CurrencyExchangeDescription.js
vendored
Normal file
@ -0,0 +1,131 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.currencyExchangeFields = exports.currencyExchangeOperations = void 0;
|
||||
exports.currencyExchangeOperations = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Create Quote',
|
||||
value: 'createQuote',
|
||||
description: 'Create a currency exchange quote',
|
||||
action: 'Create a currency exchange quote',
|
||||
},
|
||||
{
|
||||
name: 'Get Quote',
|
||||
value: 'getQuote',
|
||||
description: 'Get a currency exchange quote',
|
||||
action: 'Get a currency exchange quote',
|
||||
},
|
||||
{
|
||||
name: 'Execute Quote',
|
||||
value: 'executeQuote',
|
||||
description: 'Execute a currency exchange quote',
|
||||
action: 'Execute a currency exchange quote',
|
||||
},
|
||||
],
|
||||
default: 'createQuote',
|
||||
},
|
||||
];
|
||||
exports.currencyExchangeFields = [
|
||||
// ----------------------------------
|
||||
// currencyExchange:createQuote
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Sell Currency',
|
||||
name: 'sell',
|
||||
type: 'options',
|
||||
options: [
|
||||
{ name: 'BTC', value: 'BTC' },
|
||||
{ name: 'USD', value: 'USD' },
|
||||
{ name: 'EUR', value: 'EUR' },
|
||||
{ name: 'GBP', value: 'GBP' },
|
||||
],
|
||||
default: 'USD',
|
||||
description: 'Currency to sell',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
operation: ['createQuote'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Buy Currency',
|
||||
name: 'buy',
|
||||
type: 'options',
|
||||
options: [
|
||||
{ name: 'BTC', value: 'BTC' },
|
||||
{ name: 'USD', value: 'USD' },
|
||||
{ name: 'EUR', value: 'EUR' },
|
||||
{ name: 'GBP', value: 'GBP' },
|
||||
],
|
||||
default: 'BTC',
|
||||
description: 'Currency to buy',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
operation: ['createQuote'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Amount',
|
||||
name: 'amount',
|
||||
type: 'number',
|
||||
typeOptions: {
|
||||
numberPrecision: 8,
|
||||
},
|
||||
required: true,
|
||||
default: 0,
|
||||
description: 'Amount to exchange',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
operation: ['createQuote'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Amount Currency',
|
||||
name: 'amountCurrency',
|
||||
type: 'options',
|
||||
options: [
|
||||
{ name: 'Sell Currency', value: 'sell' },
|
||||
{ name: 'Buy Currency', value: 'buy' },
|
||||
],
|
||||
default: 'sell',
|
||||
description: 'Which currency the amount is specified in',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
operation: ['createQuote'],
|
||||
},
|
||||
},
|
||||
},
|
||||
// ----------------------------------
|
||||
// currencyExchange:getQuote & executeQuote
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Quote ID',
|
||||
name: 'quoteId',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default: '',
|
||||
description: 'The ID of the currency exchange quote',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['currencyExchange'],
|
||||
operation: ['getQuote', 'executeQuote'],
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user