mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Add CoinGecko-Node
* Add CoinGecko node * CoinGecko improvements and add events * ⚡ Small improvements * ⚡ Improvements to CoinGecko-Node Co-authored-by: Dokime <jnau5@yahoo.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
130
packages/nodes-base/nodes/CoinGecko/EventDescription.ts
Normal file
130
packages/nodes-base/nodes/CoinGecko/EventDescription.ts
Normal file
@@ -0,0 +1,130 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const eventOperations = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'event',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get All',
|
||||
value: 'getAll',
|
||||
description: 'Get all events',
|
||||
},
|
||||
],
|
||||
default: 'getAll',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const eventFields = [
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'event',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
name: 'limit',
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'event',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
minValue: 1,
|
||||
maxValue: 500,
|
||||
},
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Option',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'event',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Country code',
|
||||
name: 'country_code',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getEventCountryCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'Country code of event.',
|
||||
},
|
||||
{
|
||||
displayName: 'From date',
|
||||
name: 'from_date',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Lists events after this date.',
|
||||
},
|
||||
{
|
||||
displayName: 'To date',
|
||||
name: 'to_date',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Lists events before this date.',
|
||||
},
|
||||
{
|
||||
displayName: 'Type',
|
||||
name: 'type',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getEventTypes',
|
||||
},
|
||||
default: '',
|
||||
description: 'Type of event.',
|
||||
},
|
||||
{
|
||||
displayName: 'Upcoming events only',
|
||||
name: 'upcoming_events_only',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Lists only upcoming events.',
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
Reference in New Issue
Block a user