Files
n8n-nodes-strike/dist/nodes/Strike/descriptions/CurrencyExchangeDescription.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

132 lines
3.8 KiB
JavaScript

"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'],
},
},
},
];