mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Format nodes-base package (A-F) (#3800)
* 🔨 prettier formated nodes - A * 🔨 prettier formated nodes - B * ⚡ prettier formated nodes - C * ⚡ prettier formated nodes - D * ⚡ prettier formated nodes - E-F * 🎨 Adjust nodes-base formatting command (#3805) * Format additional files in nodes A-F (#3811) * ⚡ fixes * 🎨 Add Mindee to ignored dirs Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const coinOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const coinOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -43,19 +39,22 @@ export const coinOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Market',
|
||||
value: 'market',
|
||||
description: 'Get prices and market related data for all trading pairs that match the selected currency',
|
||||
description:
|
||||
'Get prices and market related data for all trading pairs that match the selected currency',
|
||||
action: 'Get market prices for a coin',
|
||||
},
|
||||
{
|
||||
name: 'Market Chart',
|
||||
value: 'marketChart',
|
||||
description: 'Get historical market data include price, market cap, and 24h volume (granularity auto)',
|
||||
description:
|
||||
'Get historical market data include price, market cap, and 24h volume (granularity auto)',
|
||||
action: 'Get market chart for a coin',
|
||||
},
|
||||
{
|
||||
name: 'Price',
|
||||
value: 'price',
|
||||
description: 'Get the current price of any cryptocurrencies in any other supported currencies that you need',
|
||||
description:
|
||||
'Get the current price of any cryptocurrencies in any other supported currencies that you need',
|
||||
action: 'Get the price for a coin',
|
||||
},
|
||||
{
|
||||
@@ -87,14 +86,8 @@ export const coinFields: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
'marketChart',
|
||||
'price',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['get', 'marketChart', 'price'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: 'coinId',
|
||||
@@ -105,18 +98,15 @@ export const coinFields: INodeProperties[] = [
|
||||
name: 'coinId',
|
||||
required: true,
|
||||
type: 'options',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
description:
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getCoins',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -132,17 +122,13 @@ export const coinFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
|
||||
operation: [
|
||||
'candlestick',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['candlestick'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Base Currency Name or ID',
|
||||
@@ -154,36 +140,28 @@ export const coinFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
|
||||
operation: [
|
||||
'market',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['market'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Coin Name or ID',
|
||||
name: 'coinId',
|
||||
required: true,
|
||||
type: 'options',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
description:
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getCoins',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'ticker',
|
||||
'history',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['ticker', 'history'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -199,20 +177,15 @@ export const coinFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'price',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
searchBy: [
|
||||
'coinId',
|
||||
],
|
||||
operation: ['price'],
|
||||
resource: ['coin'],
|
||||
searchBy: ['coinId'],
|
||||
},
|
||||
},
|
||||
default: [],
|
||||
placeholder: 'bitcoin',
|
||||
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Platform ID',
|
||||
@@ -220,17 +193,9 @@ export const coinFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
'marketChart',
|
||||
'price',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
searchBy: [
|
||||
'contractAddress',
|
||||
],
|
||||
operation: ['get', 'marketChart', 'price'],
|
||||
resource: ['coin'],
|
||||
searchBy: ['contractAddress'],
|
||||
},
|
||||
},
|
||||
type: 'options',
|
||||
@@ -251,19 +216,12 @@ export const coinFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
'marketChart',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
searchBy: [
|
||||
'contractAddress',
|
||||
],
|
||||
operation: ['get', 'marketChart'],
|
||||
resource: ['coin'],
|
||||
searchBy: ['contractAddress'],
|
||||
},
|
||||
},
|
||||
description: 'Token\'s contract address',
|
||||
description: "Token's contract address",
|
||||
},
|
||||
{
|
||||
displayName: 'Contract Addresses',
|
||||
@@ -273,15 +231,9 @@ export const coinFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'price',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
searchBy: [
|
||||
'contractAddress',
|
||||
],
|
||||
operation: ['price'],
|
||||
resource: ['coin'],
|
||||
searchBy: ['contractAddress'],
|
||||
},
|
||||
},
|
||||
description: 'The contract address of tokens, comma-separated',
|
||||
@@ -296,24 +248,17 @@ export const coinFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'marketChart',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
searchBy: [
|
||||
'coinId',
|
||||
],
|
||||
operation: ['marketChart'],
|
||||
resource: ['coin'],
|
||||
searchBy: ['coinId'],
|
||||
},
|
||||
hide: {
|
||||
searchBy: [
|
||||
'contractAddress',
|
||||
],
|
||||
searchBy: ['contractAddress'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Quote Currency Name or ID',
|
||||
@@ -325,17 +270,13 @@ export const coinFields: INodeProperties[] = [
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'candlestick',
|
||||
'marketChart',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['candlestick', 'marketChart'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Quote Currency Names or IDs',
|
||||
@@ -347,16 +288,13 @@ export const coinFields: INodeProperties[] = [
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'price',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['price'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: [],
|
||||
description: 'The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Range (Days)',
|
||||
@@ -400,13 +338,8 @@ export const coinFields: INodeProperties[] = [
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'marketChart',
|
||||
'candlestick',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['marketChart', 'candlestick'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -419,12 +352,8 @@ export const coinFields: INodeProperties[] = [
|
||||
type: 'dateTime',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'history',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['history'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -436,14 +365,8 @@ export const coinFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
'market',
|
||||
'ticker',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['getAll', 'market', 'ticker'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -455,17 +378,9 @@ export const coinFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
'market',
|
||||
'ticker',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll', 'market', 'ticker'],
|
||||
resource: ['coin'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -483,12 +398,8 @@ export const coinFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: [
|
||||
'market',
|
||||
],
|
||||
resource: ['coin'],
|
||||
operation: ['market'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -609,12 +520,8 @@ export const coinFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: [
|
||||
'price',
|
||||
],
|
||||
resource: ['coin'],
|
||||
operation: ['price'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -652,12 +559,8 @@ export const coinFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: [
|
||||
'ticker',
|
||||
],
|
||||
resource: ['coin'],
|
||||
operation: ['ticker'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -669,7 +572,8 @@ export const coinFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getExchanges',
|
||||
},
|
||||
default: [],
|
||||
description: 'Filter results by exchange IDs. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Filter results by exchange IDs. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Exchange Logo',
|
||||
@@ -708,12 +612,8 @@ export const coinFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: [
|
||||
'history',
|
||||
],
|
||||
resource: ['coin'],
|
||||
operation: ['history'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -734,12 +634,8 @@ export const coinFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: [
|
||||
'coin',
|
||||
],
|
||||
operation: ['get'],
|
||||
resource: ['coin'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
Reference in New Issue
Block a user