From fe802c8f76ce840a6b76214cd33cbad7036589d1 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 1 Oct 2020 14:01:39 +0200 Subject: [PATCH] :shirt: Fix built issue by fixing lint issues --- .../credentials/BitlyOAuth2Api.credentials.ts | 4 +- .../ClickUpOAuth2Api.credentials.ts | 12 +- .../DropboxOAuth2Api.credentials.ts | 4 +- .../credentials/FreshdeskApi.credentials.ts | 2 +- .../HubspotOAuth2Api.credentials.ts | 12 +- .../credentials/Mqtt.credentials.ts | 5 +- .../SpotifyOAuth2Api.credentials.ts | 2 +- .../credentials/WufooApi.credentials.ts | 2 +- .../ActiveCampaign/ActiveCampaign.node.ts | 18 +- .../ActiveCampaignTrigger.node.ts | 2 +- .../AcuitySchedulingTrigger.node.ts | 2 +- .../nodes/Affinity/Affinity.node.ts | 4 +- .../nodes/Affinity/AffinityTrigger.node.ts | 6 +- .../nodes/Affinity/GenericFunctions.ts | 2 +- .../nodes/AgileCrm/GenericFunctions.ts | 2 +- .../nodes/Airtable/Airtable.node.ts | 4 +- .../nodes/Asana/AsanaTrigger.node.ts | 8 +- .../nodes-base/nodes/Aws/AwsLambda.node.ts | 10 +- packages/nodes-base/nodes/Aws/AwsSes.node.ts | 4 +- packages/nodes-base/nodes/Aws/AwsSns.node.ts | 10 +- .../nodes/Aws/AwsSnsTrigger.node.ts | 6 +- .../nodes-base/nodes/Aws/S3/AwsS3.node.ts | 2 +- .../nodes/Bitbucket/BitbucketTrigger.node.ts | 2 +- packages/nodes-base/nodes/Bitly/Bitly.node.ts | 6 +- packages/nodes-base/nodes/Box/Box.node.ts | 4 +- .../nodes-base/nodes/Box/BoxTrigger.node.ts | 2 +- .../nodes-base/nodes/Box/GenericFunctions.ts | 2 +- .../nodes/Calendly/CalendlyTrigger.node.ts | 2 +- .../nodes/Chargebee/Chargebee.node.ts | 2 +- .../nodes/Chargebee/ChargebeeTrigger.node.ts | 2 +- .../nodes/CircleCi/CircleCi.node.ts | 2 +- .../nodes/Clearbit/Clearbit.node.ts | 2 +- .../nodes-base/nodes/Cockpit/Cockpit.node.ts | 2 +- packages/nodes-base/nodes/Coda/Coda.node.ts | 6 +- .../nodes-base/nodes/Coda/GenericFunctions.ts | 2 +- .../nodes/Contentful/Contentful.node.ts | 2 +- .../nodes/ConvertKit/ConvertKit.node.ts | 2 +- .../ConvertKit/ConvertKitTrigger.node.ts | 2 +- .../nodes/Copper/CopperTrigger.node.ts | 2 +- packages/nodes-base/nodes/Crypto.node.ts | 5 +- .../nodes/CustomerIo/CustomerIo.node.ts | 27 +- .../CustomerIo/CustomerIoTrigger.node.ts | 4 +- packages/nodes-base/nodes/DateTime.node.ts | 2 +- .../nodes-base/nodes/Discord/Discord.node.ts | 2 +- .../nodes-base/nodes/Disqus/Disqus.node.ts | 2 +- packages/nodes-base/nodes/Drift/Drift.node.ts | 6 +- .../nodes-base/nodes/Dropbox/Dropbox.node.ts | 2 +- .../nodes-base/nodes/EmailReadImap.node.ts | 8 +- packages/nodes-base/nodes/EmailSend.node.ts | 2 +- .../Eventbrite/EventbriteTrigger.node.ts | 2 +- .../nodes-base/nodes/ExecuteWorkflow.node.ts | 2 +- .../nodes/FileMaker/FileMaker.node.ts | 8 +- .../nodes/FileMaker/GenericFunctions.ts | 3 +- packages/nodes-base/nodes/Flow/Flow.node.ts | 4 +- .../nodes-base/nodes/Flow/FlowTrigger.node.ts | 2 +- .../nodes-base/nodes/Flow/GenericFunctions.ts | 2 +- .../nodes/Freshdesk/Freshdesk.node.ts | 11 +- .../nodes/Freshdesk/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Github/Github.node.ts | 4 +- .../nodes/Github/GithubTrigger.node.ts | 2 +- .../nodes-base/nodes/Gitlab/Gitlab.node.ts | 2 +- .../nodes/Gitlab/GitlabTrigger.node.ts | 2 +- .../Google/Calendar/GoogleCalendar.node.ts | 8 +- .../Google/Contacts/GoogleContacts.node.ts | 8 +- .../nodes/Google/Drive/GoogleDrive.node.ts | 2 +- .../nodes/Google/Gmail/Gmail.node.ts | 10 +- .../nodes/Google/Sheet/GenericFunctions.ts | 34 +- .../nodes/Google/Sheet/GoogleSheet.ts | 46 +- .../nodes/Google/Sheet/GoogleSheets.node.ts | 4 +- .../nodes/Google/Task/GoogleTasks.node.ts | 2 +- .../nodes/Google/YouTube/YouTube.node.ts | 4 +- .../nodes/Gumroad/GumroadTrigger.node.ts | 2 +- .../nodes/HackerNews/HackerNews.node.ts | 2 +- .../nodes-base/nodes/Harvest/Harvest.node.ts | 52 +- .../nodes/HelpScout/GenericFunctions.ts | 2 +- .../nodes/HelpScout/HelpScout.node.ts | 2 +- .../nodes/HtmlExtract/HtmlExtract.node.ts | 2 +- packages/nodes-base/nodes/HttpRequest.node.ts | 2 +- .../nodes-base/nodes/Hubspot/Hubspot.node.ts | 12 +- .../nodes/Hubspot/HubspotTrigger.node.ts | 6 +- .../nodes-base/nodes/Hunter/Hunter.node.ts | 2 +- .../nodes/Intercom/GenericFunctions.ts | 2 +- .../nodes/Intercom/Intercom.node.ts | 25 +- .../nodes/InvoiceNinja/ISOCountryCodes.ts | 2160 ++++++++--------- .../nodes/InvoiceNinja/InvoiceNinja.node.ts | 2 +- .../InvoiceNinja/InvoiceNinjaTrigger.node.ts | 2 +- .../nodes-base/nodes/Jira/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Jira/Jira.node.ts | 2 +- .../nodes-base/nodes/Jira/JiraTrigger.node.ts | 6 +- .../nodes/JotForm/JotFormTrigger.node.ts | 2 +- packages/nodes-base/nodes/Keap/Keap.node.ts | 36 +- .../nodes-base/nodes/Keap/KeapTrigger.node.ts | 6 +- .../nodes/LinkFish/LinkFish.node.ts | 2 +- .../nodes/LinkedIn/LinkedIn.node.ts | 16 +- .../nodes/Mailchimp/MailchimpTrigger.node.ts | 6 +- .../nodes-base/nodes/Mailgun/Mailgun.node.ts | 2 +- .../nodes-base/nodes/Mailjet/Mailjet.node.ts | 2 +- .../nodes/Mailjet/MailjetTrigger.node.ts | 2 +- .../nodes/Mattermost/Mattermost.node.ts | 4 +- .../nodes/Mautic/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Mautic/Mautic.node.ts | 8 +- .../nodes/Mautic/MauticTrigger.node.ts | 8 +- .../nodes-base/nodes/Medium/Medium.node.ts | 2 +- .../nodes/MessageBird/MessageBird.node.ts | 2 +- .../Microsoft/Excel/MicrosoftExcel.node.ts | 12 +- .../nodes/MongoDb/mongo.node.utils.ts | 4 +- .../nodes/NextCloud/NextCloud.node.ts | 2 +- .../nodes-base/nodes/OpenWeatherMap.node.ts | 2 +- .../nodes/Paddle/GenericFunctions.ts | 2 +- .../nodes/PayPal/GenericFunctions.ts | 4 +- .../nodes-base/nodes/PayPal/PayPal.node.ts | 9 +- .../nodes/PayPal/PayPalTrigger.node.ts | 108 +- .../nodes/PhilipsHue/PhilipsHue.node.ts | 10 +- .../nodes/Pipedrive/Pipedrive.node.ts | 4 +- .../nodes/Pipedrive/PipedriveTrigger.node.ts | 2 +- .../nodes/Postmark/PostmarkTrigger.node.ts | 2 +- .../nodes-base/nodes/ReadBinaryFile.node.ts | 2 +- .../nodes/Rocketchat/GenericFunctions.ts | 2 +- .../nodes/Rocketchat/Rocketchat.node.ts | 4 +- packages/nodes-base/nodes/RssFeedRead.node.ts | 2 +- packages/nodes-base/nodes/S3/S3.node.ts | 2 +- .../nodes/Salesforce/Salesforce.node.ts | 2 +- .../nodes/Salesforce/UserInterface.ts | 16 +- .../nodes-base/nodes/Segment/Segment.node.ts | 7 +- .../nodes/SentryIo/SentryIo.node.ts | 16 +- .../nodes/Shopify/GenericFunctions.ts | 4 +- .../nodes-base/nodes/Shopify/Shopify.node.ts | 8 +- .../nodes/Shopify/ShopifyTrigger.node.ts | 250 +- .../nodes-base/nodes/Signl4/Signl4.node.ts | 2 +- packages/nodes-base/nodes/Slack/Slack.node.ts | 6 +- .../nodes/Spotify/GenericFunctions.ts | 18 +- .../nodes-base/nodes/SpreadsheetFile.node.ts | 4 +- .../nodes/Stripe/StripeTrigger.node.ts | 2 +- .../SurveyMonkey/SurveyMonkeyTrigger.node.ts | 2 +- .../nodes/Taiga/TaigaTrigger.node.ts | 2 +- .../nodes/Telegram/Telegram.node.ts | 4 +- .../nodes-base/nodes/Todoist/Todoist.node.ts | 6 +- .../nodes/Toggl/GenericFunctions.ts | 2 +- .../nodes/Toggl/TogglTrigger.node.ts | 2 +- .../nodes/TravisCi/TravisCi.node.ts | 2 +- .../nodes-base/nodes/Trello/Trello.node.ts | 16 +- .../nodes/Trello/TrelloTrigger.node.ts | 5 +- packages/nodes-base/nodes/Twake/Twake.node.ts | 6 +- .../nodes-base/nodes/Twilio/Twilio.node.ts | 2 +- .../nodes/Twitter/GenericFunctions.ts | 4 +- .../nodes-base/nodes/Twitter/Twitter.node.ts | 4 +- .../nodes/Typeform/TypeformTrigger.node.ts | 6 +- .../UnleashedSoftware.node.ts | 6 +- .../nodes-base/nodes/Uplead/Uplead.node.ts | 2 +- .../nodes-base/nodes/Vero/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Vero/Vero.node.ts | 8 +- .../nodes/Webflow/WebflowTrigger.node.ts | 6 +- packages/nodes-base/nodes/Webhook.node.ts | 2 +- .../nodes/WooCommerce/GenericFunctions.ts | 14 +- .../nodes/WooCommerce/WooCommerce.node.ts | 4 +- .../WooCommerce/WooCommerceTrigger.node.ts | 4 +- .../nodes/Wordpress/Wordpress.node.ts | 4 +- .../nodes-base/nodes/WriteBinaryFile.node.ts | 2 +- packages/nodes-base/nodes/Xero/Xero.node.ts | 6 +- packages/nodes-base/nodes/Xml.node.ts | 2 +- .../nodes-base/nodes/Zendesk/Zendesk.node.ts | 8 +- .../nodes/Zendesk/ZendeskTrigger.node.ts | 8 +- packages/nodes-base/nodes/Zoom/Zoom.node.ts | 2 +- packages/nodes-base/nodes/Zulip/Zulip.node.ts | 19 +- .../nodes-base/nodes/utils/allCurrencies.ts | 348 +-- 165 files changed, 1930 insertions(+), 1864 deletions(-) diff --git a/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts index fc5ef7f15a..bdd8b6bfea 100644 --- a/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts @@ -6,9 +6,9 @@ import { export class BitlyOAuth2Api implements ICredentialType { name = 'bitlyOAuth2Api'; - displayName = 'Bitly OAuth2 API'; + displayName = 'Bitly OAuth2 API'; documentationUrl = 'bitly'; - extends = [ + extends = [ 'oAuth2Api', ]; properties = [ diff --git a/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts index b8e703c191..07bb9ef610 100644 --- a/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts @@ -38,11 +38,11 @@ export class ClickUpOAuth2Api implements ICredentialType { default: '', }, { - displayName: 'Authentication', - name: 'authentication', - type: 'hidden' as NodePropertyTypes, - default: 'body', - description: 'Resource to consume.', - }, + displayName: 'Authentication', + name: 'authentication', + type: 'hidden' as NodePropertyTypes, + default: 'body', + description: 'Resource to consume.', + }, ]; } diff --git a/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts b/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts index b67bae38f7..11e290bd8e 100644 --- a/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts @@ -25,8 +25,8 @@ export class DropboxOAuth2Api implements ICredentialType { type: 'hidden' as NodePropertyTypes, default: 'https://api.dropboxapi.com/oauth2/token', required: true, - }, - { + }, + { displayName: 'Scope', name: 'scope', type: 'hidden' as NodePropertyTypes, diff --git a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts index 078d4db750..3118b7587d 100644 --- a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts +++ b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts @@ -22,6 +22,6 @@ export class FreshdeskApi implements ICredentialType { placeholder: 'company', description: 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"', default: '' - } + }, ]; } diff --git a/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts b/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts index bf237ab76f..150d336429 100644 --- a/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts @@ -44,11 +44,11 @@ export class HubspotOAuth2Api implements ICredentialType { default: 'grant_type=authorization_code', }, { - displayName: 'Authentication', - name: 'authentication', - type: 'hidden' as NodePropertyTypes, - default: 'body', - description: 'Resource to consume.', - }, + displayName: 'Authentication', + name: 'authentication', + type: 'hidden' as NodePropertyTypes, + default: 'body', + description: 'Resource to consume.', + }, ]; } diff --git a/packages/nodes-base/credentials/Mqtt.credentials.ts b/packages/nodes-base/credentials/Mqtt.credentials.ts index 7bdd12ad44..05d4b0ec5c 100644 --- a/packages/nodes-base/credentials/Mqtt.credentials.ts +++ b/packages/nodes-base/credentials/Mqtt.credentials.ts @@ -15,8 +15,8 @@ export class Mqtt implements ICredentialType { { displayName: 'Protocol', name: 'protocol', - type: 'options' as NodePropertyTypes, - options: [ + type: 'options' as NodePropertyTypes, + options: [ { name: 'mqtt', value: 'mqtt', @@ -57,4 +57,3 @@ export class Mqtt implements ICredentialType { }, ]; } - diff --git a/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts index 48e66b0cfa..4b37b08819 100644 --- a/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts @@ -49,6 +49,6 @@ export class SpotifyOAuth2Api implements ICredentialType { name: 'authentication', type: 'hidden' as NodePropertyTypes, default: 'header', - } + }, ]; } diff --git a/packages/nodes-base/credentials/WufooApi.credentials.ts b/packages/nodes-base/credentials/WufooApi.credentials.ts index 70e0a27dac..a50ad5835b 100644 --- a/packages/nodes-base/credentials/WufooApi.credentials.ts +++ b/packages/nodes-base/credentials/WufooApi.credentials.ts @@ -18,6 +18,6 @@ export class WufooApi implements ICredentialType { name: 'subdomain', type: 'string' as NodePropertyTypes, default: '', - } + }, ]; } diff --git a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts index 632c78995c..2d00352c5e 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -18,33 +18,33 @@ import { } from './GenericFunctions'; import { + contactFields, contactOperations, - contactFields } from './ContactDescription'; import { + dealFields, dealOperations, - dealFields } from './DealDescription'; import { + ecomOrderFields, ecomOrderOperations, - ecomOrderFields } from './EcomOrderDescription'; import { + ecomCustomerFields, ecomCustomerOperations, - ecomCustomerFields } from './EcomCustomerDescription'; import { + ecomOrderProductsFields, ecomOrderProductsOperations, - ecomOrderProductsFields } from './EcomOrderProductsDescription'; import { + connectionFields, connectionOperations, - connectionFields } from './ConnectionDescription'; import { diff --git a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts index d27835979f..763b040073 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts @@ -6,9 +6,9 @@ import { import { IDataObject, ILoadOptionsFunctions, + INodePropertyOptions, INodeType, INodeTypeDescription, - INodePropertyOptions, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.ts b/packages/nodes-base/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.ts index 75ab74699f..289f452213 100644 --- a/packages/nodes-base/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.ts +++ b/packages/nodes-base/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Affinity/Affinity.node.ts b/packages/nodes-base/nodes/Affinity/Affinity.node.ts index 972c2e7ec3..2e67dfde06 100644 --- a/packages/nodes-base/nodes/Affinity/Affinity.node.ts +++ b/packages/nodes-base/nodes/Affinity/Affinity.node.ts @@ -4,10 +4,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { affinityApiRequest, diff --git a/packages/nodes-base/nodes/Affinity/AffinityTrigger.node.ts b/packages/nodes-base/nodes/Affinity/AffinityTrigger.node.ts index 3d387e7b4d..4d3ba70f17 100644 --- a/packages/nodes-base/nodes/Affinity/AffinityTrigger.node.ts +++ b/packages/nodes-base/nodes/Affinity/AffinityTrigger.node.ts @@ -4,10 +4,10 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, IDataObject, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Affinity/GenericFunctions.ts b/packages/nodes-base/nodes/Affinity/GenericFunctions.ts index 0c2f680613..e33daa75f4 100644 --- a/packages/nodes-base/nodes/Affinity/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Affinity/GenericFunctions.ts @@ -1,9 +1,9 @@ import { OptionsWithUri } from 'request'; import { + BINARY_ENCODING, IExecuteFunctions, ILoadOptionsFunctions, - BINARY_ENCODING } from 'n8n-core'; import { IDataObject, IHookFunctions, IWebhookFunctions } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts b/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts index 71d5a68c14..09b63e5dd5 100644 --- a/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts +++ b/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts @@ -4,9 +4,9 @@ import { import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Airtable/Airtable.node.ts b/packages/nodes-base/nodes/Airtable/Airtable.node.ts index 9f22b3d2b8..cd74ebb0e9 100644 --- a/packages/nodes-base/nodes/Airtable/Airtable.node.ts +++ b/packages/nodes-base/nodes/Airtable/Airtable.node.ts @@ -3,11 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - ILoadOptionsFunctions, - INodePropertyOptions, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts index 5378314169..746107fb19 100644 --- a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts +++ b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts @@ -7,8 +7,8 @@ import { IDataObject, ILoadOptionsFunctions, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; @@ -17,9 +17,9 @@ import { getWorkspaces, } from './GenericFunctions'; -import { - createHmac, -} from 'crypto'; +// import { +// createHmac, +// } from 'crypto'; export class AsanaTrigger implements INodeType { description: INodeTypeDescription = { diff --git a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts index 0bddddede0..508f85fc68 100644 --- a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts @@ -1,11 +1,11 @@ import { IExecuteFunctions } from 'n8n-core'; import { - INodeTypeDescription, - INodeExecutionData, - INodeType, - INodePropertyOptions, + IDataObject, ILoadOptionsFunctions, - IDataObject + INodeExecutionData, + INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { awsApiRequestREST } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/Aws/AwsSes.node.ts b/packages/nodes-base/nodes/Aws/AwsSes.node.ts index 74870cc90f..4e87a2dd3e 100644 --- a/packages/nodes-base/nodes/Aws/AwsSes.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSes.node.ts @@ -1,9 +1,9 @@ import { IExecuteFunctions } from 'n8n-core'; import { - INodeTypeDescription, + IDataObject, INodeExecutionData, INodeType, - IDataObject + INodeTypeDescription, } from 'n8n-workflow'; import { awsApiRequestSOAP } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/Aws/AwsSns.node.ts b/packages/nodes-base/nodes/Aws/AwsSns.node.ts index 358b004580..1a656041ac 100644 --- a/packages/nodes-base/nodes/Aws/AwsSns.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSns.node.ts @@ -1,11 +1,11 @@ import { IExecuteFunctions } from 'n8n-core'; import { - INodeTypeDescription, - INodeExecutionData, - INodeType, - INodePropertyOptions, + IDataObject, ILoadOptionsFunctions, - IDataObject + INodeExecutionData, + INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { awsApiRequestSOAP } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts index 3d4b63b30b..42981f315f 100644 --- a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts @@ -4,11 +4,11 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts b/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts index 5af9ad3d33..6eda1727ef 100644 --- a/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts +++ b/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts @@ -1,7 +1,7 @@ import { - snakeCase, paramCase, + snakeCase, } from 'change-case'; import { diff --git a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts index 55488c9fd7..8321dedac6 100644 --- a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts +++ b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts @@ -6,9 +6,9 @@ import { import { IDataObject, ILoadOptionsFunctions, + INodePropertyOptions, INodeType, INodeTypeDescription, - INodePropertyOptions, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Bitly/Bitly.node.ts b/packages/nodes-base/nodes/Bitly/Bitly.node.ts index d712238ef8..3781a4cb17 100644 --- a/packages/nodes-base/nodes/Bitly/Bitly.node.ts +++ b/packages/nodes-base/nodes/Bitly/Bitly.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Box/Box.node.ts b/packages/nodes-base/nodes/Box/Box.node.ts index 374a796125..4483c4e387 100644 --- a/packages/nodes-base/nodes/Box/Box.node.ts +++ b/packages/nodes-base/nodes/Box/Box.node.ts @@ -4,11 +4,11 @@ import { } from 'n8n-core'; import { + IBinaryKeyData, IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, - IBinaryKeyData, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Box/BoxTrigger.node.ts b/packages/nodes-base/nodes/Box/BoxTrigger.node.ts index 7071b57edd..1e4105254e 100644 --- a/packages/nodes-base/nodes/Box/BoxTrigger.node.ts +++ b/packages/nodes-base/nodes/Box/BoxTrigger.node.ts @@ -4,8 +4,8 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Box/GenericFunctions.ts b/packages/nodes-base/nodes/Box/GenericFunctions.ts index ba0ae1f31f..1a586c1df5 100644 --- a/packages/nodes-base/nodes/Box/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Box/GenericFunctions.ts @@ -5,8 +5,8 @@ import { import { IExecuteFunctions, IExecuteSingleFunctions, - ILoadOptionsFunctions, IHookFunctions, + ILoadOptionsFunctions, } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Calendly/CalendlyTrigger.node.ts b/packages/nodes-base/nodes/Calendly/CalendlyTrigger.node.ts index 4a7a471e31..8369ab3ebf 100644 --- a/packages/nodes-base/nodes/Calendly/CalendlyTrigger.node.ts +++ b/packages/nodes-base/nodes/Calendly/CalendlyTrigger.node.ts @@ -4,8 +4,8 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts index 5bbda0ab7e..b233466ed8 100644 --- a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts +++ b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts @@ -1,9 +1,9 @@ import { IExecuteFunctions } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, NodeParameterValue, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts b/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts index e3ad8b9cd1..69c6f4c6eb 100644 --- a/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts +++ b/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts @@ -4,8 +4,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts b/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts index a15a9511e2..4732133e32 100644 --- a/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts +++ b/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts @@ -4,9 +4,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts b/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts index 4ed7bbc7d5..3947f8be22 100644 --- a/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts +++ b/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts @@ -15,8 +15,8 @@ import { companyOperations, } from './CompanyDescription'; import { - personOperations, personFields, + personOperations, } from './PersonDescription'; export class Clearbit implements INodeType { diff --git a/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts b/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts index efd233f749..32335c5e95 100644 --- a/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts +++ b/packages/nodes-base/nodes/Cockpit/Cockpit.node.ts @@ -27,8 +27,8 @@ import { singletonOperations, } from './SingletonDescription'; import { - getSingleton, getAllSingletonNames, + getSingleton, } from './SingletonFunctions'; export class Cockpit implements INodeType { diff --git a/packages/nodes-base/nodes/Coda/Coda.node.ts b/packages/nodes-base/nodes/Coda/Coda.node.ts index e7d8c9c8dd..05ea6f71ad 100644 --- a/packages/nodes-base/nodes/Coda/Coda.node.ts +++ b/packages/nodes-base/nodes/Coda/Coda.node.ts @@ -3,11 +3,11 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { codaApiRequest, diff --git a/packages/nodes-base/nodes/Coda/GenericFunctions.ts b/packages/nodes-base/nodes/Coda/GenericFunctions.ts index 3c09c6559d..81a7550859 100644 --- a/packages/nodes-base/nodes/Coda/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Coda/GenericFunctions.ts @@ -1,8 +1,8 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, - ILoadOptionsFunctions, IExecuteSingleFunctions, + ILoadOptionsFunctions, } from 'n8n-core'; import { IDataObject } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Contentful/Contentful.node.ts b/packages/nodes-base/nodes/Contentful/Contentful.node.ts index b4dde2ba0e..777cccb057 100644 --- a/packages/nodes-base/nodes/Contentful/Contentful.node.ts +++ b/packages/nodes-base/nodes/Contentful/Contentful.node.ts @@ -10,8 +10,8 @@ import { } from 'n8n-workflow'; import { - contentfulApiRequest, contenfulApiRequestAllItems, + contentfulApiRequest, } from './GenericFunctions'; import * as SpaceDescription from './SpaceDescription'; diff --git a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts index 7933379ad6..870e8e2e80 100644 --- a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts +++ b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts @@ -7,8 +7,8 @@ import { IDataObject, INodeExecutionData, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts b/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts index 84fa78c93f..80b4bbfc34 100644 --- a/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts +++ b/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts @@ -7,8 +7,8 @@ import { IDataObject, ILoadOptionsFunctions, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts b/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts index 2c95c25ebf..2be001d187 100644 --- a/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts +++ b/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Crypto.node.ts b/packages/nodes-base/nodes/Crypto.node.ts index 511a8a18d8..7fd4cbda4e 100644 --- a/packages/nodes-base/nodes/Crypto.node.ts +++ b/packages/nodes-base/nodes/Crypto.node.ts @@ -1,12 +1,11 @@ import { set } from 'lodash'; import { IExecuteFunctions } from 'n8n-core'; import { + ILoadOptionsFunctions, INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - IDataObject, - ILoadOptionsFunctions, - INodePropertyOptions, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts index f664820bbc..da0f40522a 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts @@ -3,15 +3,30 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; -import { customerIoApiRequest, validateJSON } from './GenericFunctions'; -import { campaignOperations, campaignFields } from './CampaignDescription'; -import { customerOperations, customerFields } from './CustomerDescription'; -import { eventOperations, eventFields } from './EventDescription'; -import { segmentOperations, segmentFields } from './SegmentDescription'; +import { + customerIoApiRequest, + validateJSON, +} from './GenericFunctions'; +import { + campaignFields, + campaignOperations, +} from './CampaignDescription'; +import { + customerFields, + customerOperations, +} from './CustomerDescription'; +import { + eventFields, + eventOperations, +} from './EventDescription'; +import { + segmentFields, + segmentOperations, +} from './SegmentDescription'; export class CustomerIo implements INodeType { diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts b/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts index 08990d17b8..c9c079d0fb 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts @@ -4,9 +4,9 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, IDataObject, + INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/DateTime.node.ts b/packages/nodes-base/nodes/DateTime.node.ts index 15c33dcffc..e3a9a299ff 100644 --- a/packages/nodes-base/nodes/DateTime.node.ts +++ b/packages/nodes-base/nodes/DateTime.node.ts @@ -6,9 +6,9 @@ import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - INodePropertyOptions, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Discord/Discord.node.ts b/packages/nodes-base/nodes/Discord/Discord.node.ts index fcd701f27b..4e8d1e046d 100644 --- a/packages/nodes-base/nodes/Discord/Discord.node.ts +++ b/packages/nodes-base/nodes/Discord/Discord.node.ts @@ -2,9 +2,9 @@ import { get } from 'lodash'; import { IExecuteFunctions } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; export class Discord implements INodeType { diff --git a/packages/nodes-base/nodes/Disqus/Disqus.node.ts b/packages/nodes-base/nodes/Disqus/Disqus.node.ts index 22746cfd3b..8d5a2692ed 100644 --- a/packages/nodes-base/nodes/Disqus/Disqus.node.ts +++ b/packages/nodes-base/nodes/Disqus/Disqus.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { disqusApiRequest, disqusApiRequestAllItems } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/Drift/Drift.node.ts b/packages/nodes-base/nodes/Drift/Drift.node.ts index 46afa3d519..f91de68978 100644 --- a/packages/nodes-base/nodes/Drift/Drift.node.ts +++ b/packages/nodes-base/nodes/Drift/Drift.node.ts @@ -2,10 +2,10 @@ import { IExecuteFunctions, } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - INodeExecutionData, IDataObject, + INodeExecutionData, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { driftApiRequest, diff --git a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts index 6e05fa5c58..38c5c73f80 100644 --- a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts +++ b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts @@ -5,9 +5,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/EmailReadImap.node.ts b/packages/nodes-base/nodes/EmailReadImap.node.ts index 0181e6d76e..1fb3ba3ecd 100644 --- a/packages/nodes-base/nodes/EmailReadImap.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap.node.ts @@ -9,7 +9,13 @@ import { ITriggerResponse, } from 'n8n-workflow'; -import { connect as imapConnect, ImapSimple, ImapSimpleOptions, getParts, Message } from 'imap-simple'; +import { + connect as imapConnect, + getParts, + ImapSimple, + ImapSimpleOptions, + Message, +} from 'imap-simple'; import { simpleParser, Source as ParserSource, diff --git a/packages/nodes-base/nodes/EmailSend.node.ts b/packages/nodes-base/nodes/EmailSend.node.ts index 2097068450..4db5679d08 100644 --- a/packages/nodes-base/nodes/EmailSend.node.ts +++ b/packages/nodes-base/nodes/EmailSend.node.ts @@ -4,9 +4,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { createTransport } from 'nodemailer'; diff --git a/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts b/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts index 0c9158b6c3..d7292ad109 100644 --- a/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts +++ b/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts @@ -7,8 +7,8 @@ import { IDataObject, ILoadOptionsFunctions, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/ExecuteWorkflow.node.ts b/packages/nodes-base/nodes/ExecuteWorkflow.node.ts index ec1c161a0d..19b9c4d7c8 100644 --- a/packages/nodes-base/nodes/ExecuteWorkflow.node.ts +++ b/packages/nodes-base/nodes/ExecuteWorkflow.node.ts @@ -7,10 +7,10 @@ const fsReadFileAsync = promisify(fsReadFile); import { IExecuteFunctions } from 'n8n-core'; import { + IExecuteWorkflowInfo, INodeExecutionData, INodeType, INodeTypeDescription, - IExecuteWorkflowInfo, IWorkflowBase, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts b/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts index 8eb772b2df..aacbd93772 100644 --- a/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts +++ b/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts @@ -9,17 +9,17 @@ import { import {OptionsWithUri} from 'request'; import { - layoutsApiRequest, getFields, getPortals, getScripts, getToken, - parseSort, + layoutsApiRequest, + logout, + parseFields, parsePortals, parseQuery, parseScripts, - parseFields, - logout + parseSort, } from "./GenericFunctions"; export class FileMaker implements INodeType { diff --git a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts index a3144fc3d7..00bc43947c 100644 --- a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts +++ b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts @@ -1,7 +1,7 @@ import { IExecuteFunctions, + IExecuteSingleFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions } from 'n8n-core'; import { @@ -9,7 +9,6 @@ import { } from 'n8n-workflow'; import {OptionsWithUri} from 'request'; -import {Url} from "url"; interface ScriptsOptions { script?: any; //tslint:disable-line:no-any diff --git a/packages/nodes-base/nodes/Flow/Flow.node.ts b/packages/nodes-base/nodes/Flow/Flow.node.ts index 0d97a5aab1..92a0d90ad3 100644 --- a/packages/nodes-base/nodes/Flow/Flow.node.ts +++ b/packages/nodes-base/nodes/Flow/Flow.node.ts @@ -3,17 +3,17 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { flowApiRequest, FlowApiRequestAllItems, } from './GenericFunctions'; import { - taskOpeations, taskFields, + taskOpeations, } from './TaskDescription'; import { ITask, TaskInfo, diff --git a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts index 88f07f8299..daf3f89407 100644 --- a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts +++ b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Flow/GenericFunctions.ts b/packages/nodes-base/nodes/Flow/GenericFunctions.ts index 96edf3f32d..af83e474ec 100644 --- a/packages/nodes-base/nodes/Flow/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Flow/GenericFunctions.ts @@ -1,9 +1,9 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, } from 'n8n-core'; import { IDataObject } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts index eba94626b8..1fa458caf9 100644 --- a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts +++ b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts @@ -1,10 +1,10 @@ import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -12,10 +12,10 @@ import { } from 'n8n-core'; import { + capitalize, freshdeskApiRequest, freshdeskApiRequestAllItems, // validateJSON, - capitalize } from './GenericFunctions'; import { @@ -27,9 +27,6 @@ import { contactOperations, } from './ContactDescription'; -import * as moment from 'moment-timezone'; -import { response } from 'express'; - enum Status { Open = 2, Pending = 3, diff --git a/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts b/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts index e52debfd64..fb3847f5c5 100644 --- a/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts @@ -3,9 +3,9 @@ import { } from 'request'; import { + BINARY_ENCODING, IExecuteFunctions, ILoadOptionsFunctions, - BINARY_ENCODING } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Github/Github.node.ts b/packages/nodes-base/nodes/Github/Github.node.ts index 22bc7c0e70..27ae6e6687 100644 --- a/packages/nodes-base/nodes/Github/Github.node.ts +++ b/packages/nodes-base/nodes/Github/Github.node.ts @@ -5,13 +5,13 @@ import { import { IDataObject, INodeExecutionData, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - githubApiRequest, getFileSha, + githubApiRequest, } from './GenericFunctions'; export class Github implements INodeType { diff --git a/packages/nodes-base/nodes/Github/GithubTrigger.node.ts b/packages/nodes-base/nodes/Github/GithubTrigger.node.ts index 1360d7536a..f8173c0731 100644 --- a/packages/nodes-base/nodes/Github/GithubTrigger.node.ts +++ b/packages/nodes-base/nodes/Github/GithubTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts index abb5dcf1ac..bba2d0ddc3 100644 --- a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts +++ b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, INodeExecutionData, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts index 3104a05730..7d2d042352 100644 --- a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts +++ b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts index 4c8208590e..e08ef9beb3 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeExecutionData, - INodeTypeDescription, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -17,8 +17,8 @@ import { } from './GenericFunctions'; import { - eventOperations, eventFields, + eventOperations, } from './EventDescription'; import { diff --git a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts index b7749662a2..0a6bee1770 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeExecutionData, - INodeTypeDescription, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -19,8 +19,8 @@ import { } from './GenericFunctions'; import { - contactOperations, contactFields, + contactOperations, } from './ContactDescription'; import * as moment from 'moment'; diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts index 479388b097..fe26f12e18 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts @@ -5,9 +5,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts index 924ad85c7b..552b022030 100644 --- a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts @@ -4,8 +4,8 @@ import { import { IBinaryKeyData, - ILoadOptionsFunctions, IDataObject, + ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, @@ -21,23 +21,23 @@ import { } from './GenericFunctions'; import { - messageOperations, messageFields, + messageOperations, } from './MessageDescription'; import { - messageLabelOperations, messageLabelFields, + messageLabelOperations, } from './MessageLabelDescription'; import { - labelOperations, labelFields, + labelOperations, } from './LabelDescription'; import { - draftOperations, draftFields, + draftOperations, } from './DraftDescription'; import { diff --git a/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts index dff54fa6a8..290c4f3b74 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts @@ -1,6 +1,6 @@ import { OptionsWithUri, - } from 'request'; +} from 'request'; import { IExecuteFunctions, @@ -61,7 +61,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF } } -export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string ,method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise { // tslint:disable-line:no-any +export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise { // tslint:disable-line:no-any const returnData: IDataObject[] = []; @@ -80,7 +80,7 @@ export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOp return returnData; } -function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, credentials: IDataObject) : Promise { +function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, credentials: IDataObject): Promise { //https://developers.google.com/identity/protocols/oauth2/service-account#httprest const scopes = [ @@ -93,25 +93,25 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa const signature = jwt.sign( { - 'iss': credentials.email as string, - 'sub': credentials.email as string, - 'scope': scopes.join(' '), - 'aud': `https://oauth2.googleapis.com/token`, - 'iat': now, - 'exp': now + 3600, + 'iss': credentials.email as string, + 'sub': credentials.email as string, + 'scope': scopes.join(' '), + 'aud': `https://oauth2.googleapis.com/token`, + 'iat': now, + 'exp': now + 3600, }, credentials.privateKey as string, { - algorithm: 'RS256', - header: { - 'kid': credentials.privateKey as string, - 'typ': 'JWT', - 'alg': 'RS256', - }, + algorithm: 'RS256', + header: { + 'kid': credentials.privateKey as string, + 'typ': 'JWT', + 'alg': 'RS256', + }, } - ); + ); - const options: OptionsWithUri = { + const options: OptionsWithUri = { headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts index 606867e8eb..63133c495b 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts @@ -5,11 +5,11 @@ import { import { IExecuteFunctions, ILoadOptionsFunctions, - } from 'n8n-core'; +} from 'n8n-core'; import { googleApiRequest, - } from './GenericFunctions'; +} from './GenericFunctions'; import { utils as xlsxUtils, @@ -84,9 +84,9 @@ export class GoogleSheet { return response; } - /** - * Returns the cell values - */ + /** + * Returns the cell values + */ async getData(range: string, valueRenderMode: ValueRenderOption): Promise { const query = { @@ -129,9 +129,9 @@ export class GoogleSheet { } - /** - * Sets the cell values - */ + /** + * Sets the cell values + */ async batchUpdate(updateData: ISheetUpdateData[], valueInputMode: ValueInputOption) { const body = { @@ -145,9 +145,9 @@ export class GoogleSheet { } - /** - * Sets the cell values - */ + /** + * Sets the cell values + */ async setData(range: string, data: string[][], valueInputMode: ValueInputOption) { const body = { @@ -161,9 +161,9 @@ export class GoogleSheet { } - /** - * Appends the cell values - */ + /** + * Appends the cell values + */ async appendData(range: string, data: string[][], valueInputMode: ValueInputOption) { const body = { @@ -180,9 +180,9 @@ export class GoogleSheet { return response; } - /** - * Returns the given sheet data in a structured way - */ + /** + * Returns the given sheet data in a structured way + */ structureData(inputData: string[][], startRow: number, keys: string[], addEmpty?: boolean): IDataObject[] { const returnData = []; @@ -207,10 +207,10 @@ export class GoogleSheet { } - /** - * Returns the given sheet data in a structured way using - * the startRow as the one with the name of the key - */ + /** + * Returns the given sheet data in a structured way using + * the startRow as the one with the name of the key + */ structureArrayDataByColumn(inputData: string[][], keyRow: number, dataStartRow: number): IDataObject[] { const keys: string[] = []; @@ -235,7 +235,7 @@ export class GoogleSheet { } - getColumnWithOffset (startColumn: string, offset: number): string { + getColumnWithOffset(startColumn: string, offset: number): string { const columnIndex = xlsxUtils.decode_col(startColumn) + offset; return xlsxUtils.encode_col(columnIndex); } @@ -303,7 +303,7 @@ export class GoogleSheet { sheetDataKeyColumn.shift(); // Create an Array which all the key-values of the Google Sheet - const keyColumnIndexLookup = sheetDataKeyColumn.map((rowContent) => rowContent[0] ); + const keyColumnIndexLookup = sheetDataKeyColumn.map((rowContent) => rowContent[0]); const updateData: ISheetUpdateData[] = []; let itemKey: string | number | undefined | null; diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts index ff12b218ef..8149c0f555 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts @@ -1,7 +1,7 @@ import { IExecuteFunctions, - } from 'n8n-core'; +} from 'n8n-core'; import { IDataObject, @@ -613,7 +613,7 @@ export class GoogleSheets implements INodeType { range = this.getNodeParameter('range', 0) as string; if (range.includes('!')) { const [sheet, ranges] = range.split('!'); - range = `${encodeURIComponent(sheet)}!${ranges}`; + range = `${encodeURIComponent(sheet)}!${ranges}`; } } diff --git a/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts b/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts index 603bc1af5e..9ba91570c5 100644 --- a/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts +++ b/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts @@ -17,8 +17,8 @@ import { } from './GenericFunctions'; import { - taskOperations, taskFields, + taskOperations, } from './TaskDescription'; export class GoogleTasks implements INodeType { diff --git a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts index 52df088099..2065b685c1 100644 --- a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts +++ b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts @@ -1,6 +1,6 @@ import { - IExecuteFunctions, BINARY_ENCODING, + IExecuteFunctions, } from 'n8n-core'; import { @@ -28,8 +28,8 @@ import { } from './PlaylistDescription'; import { - playlistItemOperations, playlistItemFields, + playlistItemOperations, } from './PlaylistItemDescription'; import { diff --git a/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts b/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts index c4a9b65a97..fb1eb8fe6e 100644 --- a/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts +++ b/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/HackerNews/HackerNews.node.ts b/packages/nodes-base/nodes/HackerNews/HackerNews.node.ts index b77d5d35bd..c607b1b6b1 100644 --- a/packages/nodes-base/nodes/HackerNews/HackerNews.node.ts +++ b/packages/nodes-base/nodes/HackerNews/HackerNews.node.ts @@ -3,10 +3,10 @@ import { } from 'n8n-core'; import { + IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IDataObject, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Harvest/Harvest.node.ts b/packages/nodes-base/nodes/Harvest/Harvest.node.ts index 336a7838a5..91a42840c3 100644 --- a/packages/nodes-base/nodes/Harvest/Harvest.node.ts +++ b/packages/nodes-base/nodes/Harvest/Harvest.node.ts @@ -3,22 +3,52 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; -import { clientOperations, clientFields } from './ClientDescription'; -import { contactOperations, contactFields } from './ContactDescription'; +import { + clientFields, + clientOperations, +} from './ClientDescription'; +import { + contactFields, + contactOperations, +} from './ContactDescription'; import { companyOperations } from './CompanyDescription'; -import { estimateOperations, estimateFields } from './EstimateDescription'; -import { expenseOperations, expenseFields } from './ExpenseDescription'; -import { harvestApiRequest, harvestApiRequestAllItems } from './GenericFunctions'; -import { invoiceOperations, invoiceFields } from './InvoiceDescription'; -import { projectOperations, projectFields } from './ProjectDescription'; -import { taskOperations, taskFields } from './TaskDescription'; -import { timeEntryOperations, timeEntryFields } from './TimeEntryDescription'; -import { userOperations, userFields } from './UserDescription'; +import { + estimateFields, + estimateOperations, +} from './EstimateDescription'; +import { + expenseFields, + expenseOperations, +} from './ExpenseDescription'; +import { + harvestApiRequest, + harvestApiRequestAllItems, +} from './GenericFunctions'; +import { + invoiceFields, + invoiceOperations, +} from './InvoiceDescription'; +import { + projectFields, + projectOperations, +} from './ProjectDescription'; +import { + taskFields, + taskOperations, +} from './TaskDescription'; +import { + timeEntryFields, + timeEntryOperations, +} from './TimeEntryDescription'; +import { + userFields, + userOperations, +} from './UserDescription'; /** * fetch All resource using paginated calls diff --git a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts index a43545a32e..e785fff687 100644 --- a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts +++ b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts @@ -1,8 +1,8 @@ import { OptionsWithUri } from 'request'; import { - IHookFunctions, IExecuteFunctions, IExecuteSingleFunctions, + IHookFunctions, ILoadOptionsFunctions, } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/HelpScout/HelpScout.node.ts b/packages/nodes-base/nodes/HelpScout/HelpScout.node.ts index ce1f02d648..4b72299179 100644 --- a/packages/nodes-base/nodes/HelpScout/HelpScout.node.ts +++ b/packages/nodes-base/nodes/HelpScout/HelpScout.node.ts @@ -8,8 +8,8 @@ import { ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts index f482829c2f..cae98d9130 100644 --- a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts +++ b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts @@ -1,10 +1,10 @@ import * as cheerio from 'cheerio'; import { IExecuteFunctions } from 'n8n-core'; import { + IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IDataObject, } from 'n8n-workflow'; type Cheerio = ReturnType; diff --git a/packages/nodes-base/nodes/HttpRequest.node.ts b/packages/nodes-base/nodes/HttpRequest.node.ts index e37e2bd578..b7a75496a4 100644 --- a/packages/nodes-base/nodes/HttpRequest.node.ts +++ b/packages/nodes-base/nodes/HttpRequest.node.ts @@ -3,11 +3,11 @@ import { IExecuteFunctions, } from 'n8n-core'; import { + IBinaryData, IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IBinaryData, } from 'n8n-workflow'; import { OptionsWithUri } from 'request'; diff --git a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts index ad62fd76a7..a63809bed7 100644 --- a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts +++ b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts @@ -17,28 +17,28 @@ import { } from './GenericFunctions'; import { - contactOperations, contactFields, + contactOperations, } from './ContactDescription'; import { - companyOperations, companyFields, + companyOperations, } from './CompanyDescription'; import { - dealOperations, dealFields, + dealOperations, } from './DealDescription'; import { - formOperations, formFields, + formOperations, } from './FormDescription'; import { - ticketOperations, ticketFields, + ticketOperations, } from './TicketDescription'; import { @@ -46,8 +46,8 @@ import { } from './FormInterface'; import { - IDeal, IAssociation, + IDeal, } from './DealInterface'; import { diff --git a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts index 0970172eaf..1274d929fe 100644 --- a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts +++ b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts @@ -4,10 +4,10 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, IDataObject, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Hunter/Hunter.node.ts b/packages/nodes-base/nodes/Hunter/Hunter.node.ts index d4e1f8d76b..ef3d9a9e2a 100644 --- a/packages/nodes-base/nodes/Hunter/Hunter.node.ts +++ b/packages/nodes-base/nodes/Hunter/Hunter.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { hunterApiRequest, diff --git a/packages/nodes-base/nodes/Intercom/GenericFunctions.ts b/packages/nodes-base/nodes/Intercom/GenericFunctions.ts index be68ef0c34..68bed5d7b6 100644 --- a/packages/nodes-base/nodes/Intercom/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Intercom/GenericFunctions.ts @@ -2,9 +2,9 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Intercom/Intercom.node.ts b/packages/nodes-base/nodes/Intercom/Intercom.node.ts index d7d1890d50..c98cc027db 100644 --- a/packages/nodes-base/nodes/Intercom/Intercom.node.ts +++ b/packages/nodes-base/nodes/Intercom/Intercom.node.ts @@ -3,15 +3,15 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - leadOpeations, leadFields, + leadOpeations, } from './LeadDescription'; import { intercomApiRequest, @@ -19,13 +19,22 @@ import { validateJSON, } from './GenericFunctions'; import { + IAvatar, ILead, ILeadCompany, - IAvatar, } from './LeadInterface'; -import { userOpeations, userFields } from './UserDescription'; -import { IUser, IUserCompany } from './UserInterface'; -import { companyOperations, companyFields } from './CompanyDescription'; +import { + userFields, + userOpeations, +} from './UserDescription'; +import { + IUser, + IUserCompany, +} from './UserInterface'; +import { + companyFields, + companyOperations, +} from './CompanyDescription'; import { ICompany } from './CompanyInteface'; export class Intercom implements INodeType { diff --git a/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts b/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts index 3948ee6285..22122653e6 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts @@ -2,1580 +2,1580 @@ import { IDataObject } from "n8n-workflow"; export const countryCodes = [ { - "name": "Afghanistan", - "alpha2": "AF", - "alpha3": "AFG", - "numeric": "004" + "name": "Afghanistan", + "alpha2": "AF", + "alpha3": "AFG", + "numeric": "004" }, { - "name": "Åland Islands", - "alpha2": "AX", - "alpha3": "ALA", - "numeric": "248", - "altName": "Aland Islands" + "name": "Åland Islands", + "alpha2": "AX", + "alpha3": "ALA", + "numeric": "248", + "altName": "Aland Islands" }, { - "name": "Albania", - "alpha2": "AL", - "alpha3": "ALB", - "numeric": "008" + "name": "Albania", + "alpha2": "AL", + "alpha3": "ALB", + "numeric": "008" }, { - "name": "Algeria", - "alpha2": "DZ", - "alpha3": "DZA", - "numeric": "012" + "name": "Algeria", + "alpha2": "DZ", + "alpha3": "DZA", + "numeric": "012" }, { - "name": "American Samoa", - "alpha2": "AS", - "alpha3": "ASM", - "numeric": "016" + "name": "American Samoa", + "alpha2": "AS", + "alpha3": "ASM", + "numeric": "016" }, { - "name": "Andorra", - "alpha2": "AD", - "alpha3": "AND", - "numeric": "020" + "name": "Andorra", + "alpha2": "AD", + "alpha3": "AND", + "numeric": "020" }, { - "name": "Angola", - "alpha2": "AO", - "alpha3": "AGO", - "numeric": "024" + "name": "Angola", + "alpha2": "AO", + "alpha3": "AGO", + "numeric": "024" }, { - "name": "Anguilla", - "alpha2": "AI", - "alpha3": "AIA", - "numeric": "660" + "name": "Anguilla", + "alpha2": "AI", + "alpha3": "AIA", + "numeric": "660" }, { - "name": "Antarctica", - "alpha2": "AQ", - "alpha3": "ATA", - "numeric": "010" + "name": "Antarctica", + "alpha2": "AQ", + "alpha3": "ATA", + "numeric": "010" }, { - "name": "Antigua and Barbuda", - "alpha2": "AG", - "alpha3": "ATG", - "numeric": "028" + "name": "Antigua and Barbuda", + "alpha2": "AG", + "alpha3": "ATG", + "numeric": "028" }, { - "name": "Argentina", - "alpha2": "AR", - "alpha3": "ARG", - "numeric": "032" + "name": "Argentina", + "alpha2": "AR", + "alpha3": "ARG", + "numeric": "032" }, { - "name": "Armenia", - "alpha2": "AM", - "alpha3": "ARM", - "numeric": "051" + "name": "Armenia", + "alpha2": "AM", + "alpha3": "ARM", + "numeric": "051" }, { - "name": "Aruba", - "alpha2": "AW", - "alpha3": "ABW", - "numeric": "533" + "name": "Aruba", + "alpha2": "AW", + "alpha3": "ABW", + "numeric": "533" }, { - "name": "Australia", - "alpha2": "AU", - "alpha3": "AUS", - "numeric": "036" + "name": "Australia", + "alpha2": "AU", + "alpha3": "AUS", + "numeric": "036" }, { - "name": "Austria", - "alpha2": "AT", - "alpha3": "AUT", - "numeric": "040" + "name": "Austria", + "alpha2": "AT", + "alpha3": "AUT", + "numeric": "040" }, { - "name": "Azerbaijan", - "alpha2": "AZ", - "alpha3": "AZE", - "numeric": "031" + "name": "Azerbaijan", + "alpha2": "AZ", + "alpha3": "AZE", + "numeric": "031" }, { - "name": "Bahamas (the)", - "alpha2": "BS", - "alpha3": "BHS", - "numeric": "044", - "altName": "Bahamas" + "name": "Bahamas (the)", + "alpha2": "BS", + "alpha3": "BHS", + "numeric": "044", + "altName": "Bahamas" }, { - "name": "Bahrain", - "alpha2": "BH", - "alpha3": "BHR", - "numeric": "048" + "name": "Bahrain", + "alpha2": "BH", + "alpha3": "BHR", + "numeric": "048" }, { - "name": "Bangladesh", - "alpha2": "BD", - "alpha3": "BGD", - "numeric": "050" + "name": "Bangladesh", + "alpha2": "BD", + "alpha3": "BGD", + "numeric": "050" }, { - "name": "Barbados", - "alpha2": "BB", - "alpha3": "BRB", - "numeric": "052" + "name": "Barbados", + "alpha2": "BB", + "alpha3": "BRB", + "numeric": "052" }, { - "name": "Belarus", - "alpha2": "BY", - "alpha3": "BLR", - "numeric": "112" + "name": "Belarus", + "alpha2": "BY", + "alpha3": "BLR", + "numeric": "112" }, { - "name": "Belgium", - "alpha2": "BE", - "alpha3": "BEL", - "numeric": "056" + "name": "Belgium", + "alpha2": "BE", + "alpha3": "BEL", + "numeric": "056" }, { - "name": "Belize", - "alpha2": "BZ", - "alpha3": "BLZ", - "numeric": "084" + "name": "Belize", + "alpha2": "BZ", + "alpha3": "BLZ", + "numeric": "084" }, { - "name": "Benin", - "alpha2": "BJ", - "alpha3": "BEN", - "numeric": "204" + "name": "Benin", + "alpha2": "BJ", + "alpha3": "BEN", + "numeric": "204" }, { - "name": "Bermuda", - "alpha2": "BM", - "alpha3": "BMU", - "numeric": "060" + "name": "Bermuda", + "alpha2": "BM", + "alpha3": "BMU", + "numeric": "060" }, { - "name": "Bhutan", - "alpha2": "BT", - "alpha3": "BTN", - "numeric": "064" + "name": "Bhutan", + "alpha2": "BT", + "alpha3": "BTN", + "numeric": "064" }, { - "name": "Bolivia (Plurinational State of)", - "alpha2": "BO", - "alpha3": "BOL", - "numeric": "068", - "altName": "Bolivia" + "name": "Bolivia (Plurinational State of)", + "alpha2": "BO", + "alpha3": "BOL", + "numeric": "068", + "altName": "Bolivia" }, { - "name": "Bonaire, Sint Eustatius and Saba", - "alpha2": "BQ", - "alpha3": "BES", - "numeric": "535" + "name": "Bonaire, Sint Eustatius and Saba", + "alpha2": "BQ", + "alpha3": "BES", + "numeric": "535" }, { - "name": "Bosnia and Herzegovina", - "alpha2": "BA", - "alpha3": "BIH", - "numeric": "070" + "name": "Bosnia and Herzegovina", + "alpha2": "BA", + "alpha3": "BIH", + "numeric": "070" }, { - "name": "Botswana", - "alpha2": "BW", - "alpha3": "BWA", - "numeric": "072" + "name": "Botswana", + "alpha2": "BW", + "alpha3": "BWA", + "numeric": "072" }, { - "name": "Bouvet Island", - "alpha2": "BV", - "alpha3": "BVT", - "numeric": "074" + "name": "Bouvet Island", + "alpha2": "BV", + "alpha3": "BVT", + "numeric": "074" }, { - "name": "Brazil", - "alpha2": "BR", - "alpha3": "BRA", - "numeric": "076" + "name": "Brazil", + "alpha2": "BR", + "alpha3": "BRA", + "numeric": "076" }, { - "name": "British Indian Ocean Territory (the)", - "alpha2": "IO", - "alpha3": "IOT", - "numeric": "086", - "altName": "British Indian Ocean Territory" + "name": "British Indian Ocean Territory (the)", + "alpha2": "IO", + "alpha3": "IOT", + "numeric": "086", + "altName": "British Indian Ocean Territory" }, { - "name": "Brunei Darussalam", - "alpha2": "BN", - "alpha3": "BRN", - "numeric": "096", - "shortName": "Brunei" + "name": "Brunei Darussalam", + "alpha2": "BN", + "alpha3": "BRN", + "numeric": "096", + "shortName": "Brunei" }, { - "name": "Bulgaria", - "alpha2": "BG", - "alpha3": "BGR", - "numeric": "100" + "name": "Bulgaria", + "alpha2": "BG", + "alpha3": "BGR", + "numeric": "100" }, { - "name": "Burkina Faso", - "alpha2": "BF", - "alpha3": "BFA", - "numeric": "854" + "name": "Burkina Faso", + "alpha2": "BF", + "alpha3": "BFA", + "numeric": "854" }, { - "name": "Burundi", - "alpha2": "BI", - "alpha3": "BDI", - "numeric": "108" + "name": "Burundi", + "alpha2": "BI", + "alpha3": "BDI", + "numeric": "108" }, { - "name": "Cabo Verde", - "alpha2": "CV", - "alpha3": "CPV", - "numeric": "132", - "altName": "Cape Verde" + "name": "Cabo Verde", + "alpha2": "CV", + "alpha3": "CPV", + "numeric": "132", + "altName": "Cape Verde" }, { - "name": "Cambodia", - "alpha2": "KH", - "alpha3": "KHM", - "numeric": "116" + "name": "Cambodia", + "alpha2": "KH", + "alpha3": "KHM", + "numeric": "116" }, { - "name": "Cameroon", - "alpha2": "CM", - "alpha3": "CMR", - "numeric": "120" + "name": "Cameroon", + "alpha2": "CM", + "alpha3": "CMR", + "numeric": "120" }, { - "name": "Canada", - "alpha2": "CA", - "alpha3": "CAN", - "numeric": "124" + "name": "Canada", + "alpha2": "CA", + "alpha3": "CAN", + "numeric": "124" }, { - "name": "Cayman Islands (the)", - "alpha2": "KY", - "alpha3": "CYM", - "numeric": "136", - "altName": "Cayman Islands" + "name": "Cayman Islands (the)", + "alpha2": "KY", + "alpha3": "CYM", + "numeric": "136", + "altName": "Cayman Islands" }, { - "name": "Central African Republic (the)", - "alpha2": "CF", - "alpha3": "CAF", - "numeric": "140", - "altName": "Central African Republic" + "name": "Central African Republic (the)", + "alpha2": "CF", + "alpha3": "CAF", + "numeric": "140", + "altName": "Central African Republic" }, { - "name": "Chad", - "alpha2": "TD", - "alpha3": "TCD", - "numeric": "148" + "name": "Chad", + "alpha2": "TD", + "alpha3": "TCD", + "numeric": "148" }, { - "name": "Chile", - "alpha2": "CL", - "alpha3": "CHL", - "numeric": "152" + "name": "Chile", + "alpha2": "CL", + "alpha3": "CHL", + "numeric": "152" }, { - "name": "China", - "alpha2": "CN", - "alpha3": "CHN", - "numeric": "156" + "name": "China", + "alpha2": "CN", + "alpha3": "CHN", + "numeric": "156" }, { - "name": "Christmas Island", - "alpha2": "CX", - "alpha3": "CXR", - "numeric": "162" + "name": "Christmas Island", + "alpha2": "CX", + "alpha3": "CXR", + "numeric": "162" }, { - "name": "Cocos (Keeling) Islands (the)", - "alpha2": "CC", - "alpha3": "CCK", - "numeric": "166", - "altName": "Cocos (Keeling) Islands", - "shortName": "Cocos Islands" + "name": "Cocos (Keeling) Islands (the)", + "alpha2": "CC", + "alpha3": "CCK", + "numeric": "166", + "altName": "Cocos (Keeling) Islands", + "shortName": "Cocos Islands" }, { - "name": "Colombia", - "alpha2": "CO", - "alpha3": "COL", - "numeric": "170" + "name": "Colombia", + "alpha2": "CO", + "alpha3": "COL", + "numeric": "170" }, { - "name": "Comoros (the)", - "alpha2": "KM", - "alpha3": "COM", - "numeric": "174", - "altName": "Comoros" + "name": "Comoros (the)", + "alpha2": "KM", + "alpha3": "COM", + "numeric": "174", + "altName": "Comoros" }, { - "name": "Congo (the Democratic Republic of the)", - "alpha2": "CD", - "alpha3": "COD", - "numeric": "180", - "altName": "Congo, (Kinshasa)", - "shortName": "Democratic Republic of the Congo" + "name": "Congo (the Democratic Republic of the)", + "alpha2": "CD", + "alpha3": "COD", + "numeric": "180", + "altName": "Congo, (Kinshasa)", + "shortName": "Democratic Republic of the Congo" }, { - "name": "Congo (the)", - "alpha2": "CG", - "alpha3": "COG", - "numeric": "178", - "altName": "Congo (Brazzaville)", - "shortName": "Republic of the Congo" + "name": "Congo (the)", + "alpha2": "CG", + "alpha3": "COG", + "numeric": "178", + "altName": "Congo (Brazzaville)", + "shortName": "Republic of the Congo" }, { - "name": "Cook Islands (the)", - "alpha2": "CK", - "alpha3": "COK", - "numeric": "184", - "altName": "Cook Islands" + "name": "Cook Islands (the)", + "alpha2": "CK", + "alpha3": "COK", + "numeric": "184", + "altName": "Cook Islands" }, { - "name": "Costa Rica", - "alpha2": "CR", - "alpha3": "CRI", - "numeric": "188" + "name": "Costa Rica", + "alpha2": "CR", + "alpha3": "CRI", + "numeric": "188" }, { - "name": "Côte d'Ivoire", - "alpha2": "CI", - "alpha3": "CIV", - "numeric": "384", - "shortName": "Ivory Coast" + "name": "Côte d'Ivoire", + "alpha2": "CI", + "alpha3": "CIV", + "numeric": "384", + "shortName": "Ivory Coast" }, { - "name": "Croatia", - "alpha2": "HR", - "alpha3": "HRV", - "numeric": "191" + "name": "Croatia", + "alpha2": "HR", + "alpha3": "HRV", + "numeric": "191" }, { - "name": "Cuba", - "alpha2": "CU", - "alpha3": "CUB", - "numeric": "192" + "name": "Cuba", + "alpha2": "CU", + "alpha3": "CUB", + "numeric": "192" }, { - "name": "Curaçao", - "alpha2": "CW", - "alpha3": "CUW", - "numeric": "531", - "shortName": "Curacao" + "name": "Curaçao", + "alpha2": "CW", + "alpha3": "CUW", + "numeric": "531", + "shortName": "Curacao" }, { - "name": "Cyprus", - "alpha2": "CY", - "alpha3": "CYP", - "numeric": "196" + "name": "Cyprus", + "alpha2": "CY", + "alpha3": "CYP", + "numeric": "196" }, { - "name": "Czechia", - "alpha2": "CZ", - "alpha3": "CZE", - "numeric": "203", - "altName": "Czech Republic" + "name": "Czechia", + "alpha2": "CZ", + "alpha3": "CZE", + "numeric": "203", + "altName": "Czech Republic" }, { - "name": "Denmark", - "alpha2": "DK", - "alpha3": "DNK", - "numeric": "208" + "name": "Denmark", + "alpha2": "DK", + "alpha3": "DNK", + "numeric": "208" }, { - "name": "Djibouti", - "alpha2": "DJ", - "alpha3": "DJI", - "numeric": "262" + "name": "Djibouti", + "alpha2": "DJ", + "alpha3": "DJI", + "numeric": "262" }, { - "name": "Dominica", - "alpha2": "DM", - "alpha3": "DMA", - "numeric": "212" + "name": "Dominica", + "alpha2": "DM", + "alpha3": "DMA", + "numeric": "212" }, { - "name": "Dominican Republic (the)", - "alpha2": "DO", - "alpha3": "DOM", - "numeric": "214", - "altName": "Dominican Republic" + "name": "Dominican Republic (the)", + "alpha2": "DO", + "alpha3": "DOM", + "numeric": "214", + "altName": "Dominican Republic" }, { - "name": "Ecuador", - "alpha2": "EC", - "alpha3": "ECU", - "numeric": "218" + "name": "Ecuador", + "alpha2": "EC", + "alpha3": "ECU", + "numeric": "218" }, { - "name": "Egypt", - "alpha2": "EG", - "alpha3": "EGY", - "numeric": "818" + "name": "Egypt", + "alpha2": "EG", + "alpha3": "EGY", + "numeric": "818" }, { - "name": "El Salvador", - "alpha2": "SV", - "alpha3": "SLV", - "numeric": "222" + "name": "El Salvador", + "alpha2": "SV", + "alpha3": "SLV", + "numeric": "222" }, { - "name": "Equatorial Guinea", - "alpha2": "GQ", - "alpha3": "GNQ", - "numeric": "226" + "name": "Equatorial Guinea", + "alpha2": "GQ", + "alpha3": "GNQ", + "numeric": "226" }, { - "name": "Eritrea", - "alpha2": "ER", - "alpha3": "ERI", - "numeric": "232" + "name": "Eritrea", + "alpha2": "ER", + "alpha3": "ERI", + "numeric": "232" }, { - "name": "Estonia", - "alpha2": "EE", - "alpha3": "EST", - "numeric": "233" + "name": "Estonia", + "alpha2": "EE", + "alpha3": "EST", + "numeric": "233" }, { - "name": "Ethiopia", - "alpha2": "ET", - "alpha3": "ETH", - "numeric": "231" + "name": "Ethiopia", + "alpha2": "ET", + "alpha3": "ETH", + "numeric": "231" }, { - "name": "Falkland Islands (the) [Malvinas]", - "alpha2": "FK", - "alpha3": "FLK", - "numeric": "238", - "altName": "Falkland Islands (Malvinas)", - "shortName": "Falkland Islands" + "name": "Falkland Islands (the) [Malvinas]", + "alpha2": "FK", + "alpha3": "FLK", + "numeric": "238", + "altName": "Falkland Islands (Malvinas)", + "shortName": "Falkland Islands" }, { - "name": "Faroe Islands (the)", - "alpha2": "FO", - "alpha3": "FRO", - "numeric": "234", - "altName": "Faroe Islands" + "name": "Faroe Islands (the)", + "alpha2": "FO", + "alpha3": "FRO", + "numeric": "234", + "altName": "Faroe Islands" }, { - "name": "Fiji", - "alpha2": "FJ", - "alpha3": "FJI", - "numeric": "242" + "name": "Fiji", + "alpha2": "FJ", + "alpha3": "FJI", + "numeric": "242" }, { - "name": "Finland", - "alpha2": "FI", - "alpha3": "FIN", - "numeric": "246" + "name": "Finland", + "alpha2": "FI", + "alpha3": "FIN", + "numeric": "246" }, { - "name": "France", - "alpha2": "FR", - "alpha3": "FRA", - "numeric": "250" + "name": "France", + "alpha2": "FR", + "alpha3": "FRA", + "numeric": "250" }, { - "name": "French Guiana", - "alpha2": "GF", - "alpha3": "GUF", - "numeric": "254" + "name": "French Guiana", + "alpha2": "GF", + "alpha3": "GUF", + "numeric": "254" }, { - "name": "French Polynesia", - "alpha2": "PF", - "alpha3": "PYF", - "numeric": "258" + "name": "French Polynesia", + "alpha2": "PF", + "alpha3": "PYF", + "numeric": "258" }, { - "name": "French Southern Territories (the)", - "alpha2": "TF", - "alpha3": "ATF", - "numeric": "260", - "altName": "French Southern Territories" + "name": "French Southern Territories (the)", + "alpha2": "TF", + "alpha3": "ATF", + "numeric": "260", + "altName": "French Southern Territories" }, { - "name": "Gabon", - "alpha2": "GA", - "alpha3": "GAB", - "numeric": "266" + "name": "Gabon", + "alpha2": "GA", + "alpha3": "GAB", + "numeric": "266" }, { - "name": "Gambia (the)", - "alpha2": "GM", - "alpha3": "GMB", - "numeric": "270", - "altName": "Gambia" + "name": "Gambia (the)", + "alpha2": "GM", + "alpha3": "GMB", + "numeric": "270", + "altName": "Gambia" }, { - "name": "Georgia", - "alpha2": "GE", - "alpha3": "GEO", - "numeric": "268" + "name": "Georgia", + "alpha2": "GE", + "alpha3": "GEO", + "numeric": "268" }, { - "name": "Germany", - "alpha2": "DE", - "alpha3": "DEU", - "numeric": "276" + "name": "Germany", + "alpha2": "DE", + "alpha3": "DEU", + "numeric": "276" }, { - "name": "Ghana", - "alpha2": "GH", - "alpha3": "GHA", - "numeric": "288" + "name": "Ghana", + "alpha2": "GH", + "alpha3": "GHA", + "numeric": "288" }, { - "name": "Gibraltar", - "alpha2": "GI", - "alpha3": "GIB", - "numeric": "292" + "name": "Gibraltar", + "alpha2": "GI", + "alpha3": "GIB", + "numeric": "292" }, { - "name": "Greece", - "alpha2": "GR", - "alpha3": "GRC", - "numeric": "300" + "name": "Greece", + "alpha2": "GR", + "alpha3": "GRC", + "numeric": "300" }, { - "name": "Greenland", - "alpha2": "GL", - "alpha3": "GRL", - "numeric": "304" + "name": "Greenland", + "alpha2": "GL", + "alpha3": "GRL", + "numeric": "304" }, { - "name": "Grenada", - "alpha2": "GD", - "alpha3": "GRD", - "numeric": "308" + "name": "Grenada", + "alpha2": "GD", + "alpha3": "GRD", + "numeric": "308" }, { - "name": "Guadeloupe", - "alpha2": "GP", - "alpha3": "GLP", - "numeric": "312" + "name": "Guadeloupe", + "alpha2": "GP", + "alpha3": "GLP", + "numeric": "312" }, { - "name": "Guam", - "alpha2": "GU", - "alpha3": "GUM", - "numeric": "316" + "name": "Guam", + "alpha2": "GU", + "alpha3": "GUM", + "numeric": "316" }, { - "name": "Guatemala", - "alpha2": "GT", - "alpha3": "GTM", - "numeric": "320" + "name": "Guatemala", + "alpha2": "GT", + "alpha3": "GTM", + "numeric": "320" }, { - "name": "Guernsey", - "alpha2": "GG", - "alpha3": "GGY", - "numeric": "831" + "name": "Guernsey", + "alpha2": "GG", + "alpha3": "GGY", + "numeric": "831" }, { - "name": "Guinea", - "alpha2": "GN", - "alpha3": "GIN", - "numeric": "324" + "name": "Guinea", + "alpha2": "GN", + "alpha3": "GIN", + "numeric": "324" }, { - "name": "Guinea-Bissau", - "alpha2": "GW", - "alpha3": "GNB", - "numeric": "624" + "name": "Guinea-Bissau", + "alpha2": "GW", + "alpha3": "GNB", + "numeric": "624" }, { - "name": "Guyana", - "alpha2": "GY", - "alpha3": "GUY", - "numeric": "328" + "name": "Guyana", + "alpha2": "GY", + "alpha3": "GUY", + "numeric": "328" }, { - "name": "Haiti", - "alpha2": "HT", - "alpha3": "HTI", - "numeric": "332" + "name": "Haiti", + "alpha2": "HT", + "alpha3": "HTI", + "numeric": "332" }, { - "name": "Heard Island and McDonald Islands", - "alpha2": "HM", - "alpha3": "HMD", - "numeric": "334", - "altName": "Heard and Mcdonald Islands" + "name": "Heard Island and McDonald Islands", + "alpha2": "HM", + "alpha3": "HMD", + "numeric": "334", + "altName": "Heard and Mcdonald Islands" }, { - "name": "Holy See (the)", - "alpha2": "VA", - "alpha3": "VAT", - "numeric": "336", - "altName": "Holy See (Vatican City State)", - "shortName": "Vatican" + "name": "Holy See (the)", + "alpha2": "VA", + "alpha3": "VAT", + "numeric": "336", + "altName": "Holy See (Vatican City State)", + "shortName": "Vatican" }, { - "name": "Honduras", - "alpha2": "HN", - "alpha3": "HND", - "numeric": "340" + "name": "Honduras", + "alpha2": "HN", + "alpha3": "HND", + "numeric": "340" }, { - "name": "Hong Kong", - "alpha2": "HK", - "alpha3": "HKG", - "numeric": "344", - "altName": "Hong Kong, SAR China" + "name": "Hong Kong", + "alpha2": "HK", + "alpha3": "HKG", + "numeric": "344", + "altName": "Hong Kong, SAR China" }, { - "name": "Hungary", - "alpha2": "HU", - "alpha3": "HUN", - "numeric": "348" + "name": "Hungary", + "alpha2": "HU", + "alpha3": "HUN", + "numeric": "348" }, { - "name": "Iceland", - "alpha2": "IS", - "alpha3": "ISL", - "numeric": "352" + "name": "Iceland", + "alpha2": "IS", + "alpha3": "ISL", + "numeric": "352" }, { - "name": "India", - "alpha2": "IN", - "alpha3": "IND", - "numeric": "356" + "name": "India", + "alpha2": "IN", + "alpha3": "IND", + "numeric": "356" }, { - "name": "Indonesia", - "alpha2": "ID", - "alpha3": "IDN", - "numeric": "360" + "name": "Indonesia", + "alpha2": "ID", + "alpha3": "IDN", + "numeric": "360" }, { - "name": "Iran (Islamic Republic of)", - "alpha2": "IR", - "alpha3": "IRN", - "numeric": "364", - "altName": "Iran, Islamic Republic of", - "shortName": "Iran" + "name": "Iran (Islamic Republic of)", + "alpha2": "IR", + "alpha3": "IRN", + "numeric": "364", + "altName": "Iran, Islamic Republic of", + "shortName": "Iran" }, { - "name": "Iraq", - "alpha2": "IQ", - "alpha3": "IRQ", - "numeric": "368" + "name": "Iraq", + "alpha2": "IQ", + "alpha3": "IRQ", + "numeric": "368" }, { - "name": "Ireland", - "alpha2": "IE", - "alpha3": "IRL", - "numeric": "372" + "name": "Ireland", + "alpha2": "IE", + "alpha3": "IRL", + "numeric": "372" }, { - "name": "Isle of Man", - "alpha2": "IM", - "alpha3": "IMN", - "numeric": "833" + "name": "Isle of Man", + "alpha2": "IM", + "alpha3": "IMN", + "numeric": "833" }, { - "name": "Israel", - "alpha2": "IL", - "alpha3": "ISR", - "numeric": "376" + "name": "Israel", + "alpha2": "IL", + "alpha3": "ISR", + "numeric": "376" }, { - "name": "Italy", - "alpha2": "IT", - "alpha3": "ITA", - "numeric": "380" + "name": "Italy", + "alpha2": "IT", + "alpha3": "ITA", + "numeric": "380" }, { - "name": "Jamaica", - "alpha2": "JM", - "alpha3": "JAM", - "numeric": "388" + "name": "Jamaica", + "alpha2": "JM", + "alpha3": "JAM", + "numeric": "388" }, { - "name": "Japan", - "alpha2": "JP", - "alpha3": "JPN", - "numeric": "392" + "name": "Japan", + "alpha2": "JP", + "alpha3": "JPN", + "numeric": "392" }, { - "name": "Jersey", - "alpha2": "JE", - "alpha3": "JEY", - "numeric": "832" + "name": "Jersey", + "alpha2": "JE", + "alpha3": "JEY", + "numeric": "832" }, { - "name": "Jordan", - "alpha2": "JO", - "alpha3": "JOR", - "numeric": "400" + "name": "Jordan", + "alpha2": "JO", + "alpha3": "JOR", + "numeric": "400" }, { - "name": "Kazakhstan", - "alpha2": "KZ", - "alpha3": "KAZ", - "numeric": "398" + "name": "Kazakhstan", + "alpha2": "KZ", + "alpha3": "KAZ", + "numeric": "398" }, { - "name": "Kenya", - "alpha2": "KE", - "alpha3": "KEN", - "numeric": "404" + "name": "Kenya", + "alpha2": "KE", + "alpha3": "KEN", + "numeric": "404" }, { - "name": "Kiribati", - "alpha2": "KI", - "alpha3": "KIR", - "numeric": "296" + "name": "Kiribati", + "alpha2": "KI", + "alpha3": "KIR", + "numeric": "296" }, { - "name": "Korea (the Democratic People's Republic of)", - "alpha2": "KP", - "alpha3": "PRK", - "numeric": "408", - "altName": "Korea (North)", - "shortName": "North Korea" + "name": "Korea (the Democratic People's Republic of)", + "alpha2": "KP", + "alpha3": "PRK", + "numeric": "408", + "altName": "Korea (North)", + "shortName": "North Korea" }, { - "name": "Korea (the Republic of)", - "alpha2": "KR", - "alpha3": "KOR", - "numeric": "410", - "altName": "Korea (South)", - "shortName": "South Korea" + "name": "Korea (the Republic of)", + "alpha2": "KR", + "alpha3": "KOR", + "numeric": "410", + "altName": "Korea (South)", + "shortName": "South Korea" }, { - "name": "Kuwait", - "alpha2": "KW", - "alpha3": "KWT", - "numeric": "414" + "name": "Kuwait", + "alpha2": "KW", + "alpha3": "KWT", + "numeric": "414" }, { - "name": "Kyrgyzstan", - "alpha2": "KG", - "alpha3": "KGZ", - "numeric": "417" + "name": "Kyrgyzstan", + "alpha2": "KG", + "alpha3": "KGZ", + "numeric": "417" }, { - "name": "Lao People's Democratic Republic (the)", - "alpha2": "LA", - "alpha3": "LAO", - "numeric": "418", - "altName": "Lao PDR", - "shortName": "Laos" + "name": "Lao People's Democratic Republic (the)", + "alpha2": "LA", + "alpha3": "LAO", + "numeric": "418", + "altName": "Lao PDR", + "shortName": "Laos" }, { - "name": "Latvia", - "alpha2": "LV", - "alpha3": "LVA", - "numeric": "428" + "name": "Latvia", + "alpha2": "LV", + "alpha3": "LVA", + "numeric": "428" }, { - "name": "Lebanon", - "alpha2": "LB", - "alpha3": "LBN", - "numeric": "422" + "name": "Lebanon", + "alpha2": "LB", + "alpha3": "LBN", + "numeric": "422" }, { - "name": "Lesotho", - "alpha2": "LS", - "alpha3": "LSO", - "numeric": "426" + "name": "Lesotho", + "alpha2": "LS", + "alpha3": "LSO", + "numeric": "426" }, { - "name": "Liberia", - "alpha2": "LR", - "alpha3": "LBR", - "numeric": "430" + "name": "Liberia", + "alpha2": "LR", + "alpha3": "LBR", + "numeric": "430" }, { - "name": "Libya", - "alpha2": "LY", - "alpha3": "LBY", - "numeric": "434" + "name": "Libya", + "alpha2": "LY", + "alpha3": "LBY", + "numeric": "434" }, { - "name": "Liechtenstein", - "alpha2": "LI", - "alpha3": "LIE", - "numeric": "438" + "name": "Liechtenstein", + "alpha2": "LI", + "alpha3": "LIE", + "numeric": "438" }, { - "name": "Lithuania", - "alpha2": "LT", - "alpha3": "LTU", - "numeric": "440" + "name": "Lithuania", + "alpha2": "LT", + "alpha3": "LTU", + "numeric": "440" }, { - "name": "Luxembourg", - "alpha2": "LU", - "alpha3": "LUX", - "numeric": "442" + "name": "Luxembourg", + "alpha2": "LU", + "alpha3": "LUX", + "numeric": "442" }, { - "name": "Macao", - "alpha2": "MO", - "alpha3": "MAC", - "numeric": "446", - "altName": "Macao, SAR China", - "shortName": "Macau" + "name": "Macao", + "alpha2": "MO", + "alpha3": "MAC", + "numeric": "446", + "altName": "Macao, SAR China", + "shortName": "Macau" }, { - "name": "Macedonia (the former Yugoslav Republic of)", - "alpha2": "MK", - "alpha3": "MKD", - "numeric": "807", - "altName": "Macedonia, Republic of", - "shortName": "Macedonia" + "name": "Macedonia (the former Yugoslav Republic of)", + "alpha2": "MK", + "alpha3": "MKD", + "numeric": "807", + "altName": "Macedonia, Republic of", + "shortName": "Macedonia" }, { - "name": "Madagascar", - "alpha2": "MG", - "alpha3": "MDG", - "numeric": "450" + "name": "Madagascar", + "alpha2": "MG", + "alpha3": "MDG", + "numeric": "450" }, { - "name": "Malawi", - "alpha2": "MW", - "alpha3": "MWI", - "numeric": "454" + "name": "Malawi", + "alpha2": "MW", + "alpha3": "MWI", + "numeric": "454" }, { - "name": "Malaysia", - "alpha2": "MY", - "alpha3": "MYS", - "numeric": "458" + "name": "Malaysia", + "alpha2": "MY", + "alpha3": "MYS", + "numeric": "458" }, { - "name": "Maldives", - "alpha2": "MV", - "alpha3": "MDV", - "numeric": "462" + "name": "Maldives", + "alpha2": "MV", + "alpha3": "MDV", + "numeric": "462" }, { - "name": "Mali", - "alpha2": "ML", - "alpha3": "MLI", - "numeric": "466" + "name": "Mali", + "alpha2": "ML", + "alpha3": "MLI", + "numeric": "466" }, { - "name": "Malta", - "alpha2": "MT", - "alpha3": "MLT", - "numeric": "470" + "name": "Malta", + "alpha2": "MT", + "alpha3": "MLT", + "numeric": "470" }, { - "name": "Marshall Islands (the)", - "alpha2": "MH", - "alpha3": "MHL", - "numeric": "584", - "altName": "Marshall Islands" + "name": "Marshall Islands (the)", + "alpha2": "MH", + "alpha3": "MHL", + "numeric": "584", + "altName": "Marshall Islands" }, { - "name": "Martinique", - "alpha2": "MQ", - "alpha3": "MTQ", - "numeric": "474" + "name": "Martinique", + "alpha2": "MQ", + "alpha3": "MTQ", + "numeric": "474" }, { - "name": "Mauritania", - "alpha2": "MR", - "alpha3": "MRT", - "numeric": "478" + "name": "Mauritania", + "alpha2": "MR", + "alpha3": "MRT", + "numeric": "478" }, { - "name": "Mauritius", - "alpha2": "MU", - "alpha3": "MUS", - "numeric": "480" + "name": "Mauritius", + "alpha2": "MU", + "alpha3": "MUS", + "numeric": "480" }, { - "name": "Mayotte", - "alpha2": "YT", - "alpha3": "MYT", - "numeric": "175" + "name": "Mayotte", + "alpha2": "YT", + "alpha3": "MYT", + "numeric": "175" }, { - "name": "Mexico", - "alpha2": "MX", - "alpha3": "MEX", - "numeric": "484" + "name": "Mexico", + "alpha2": "MX", + "alpha3": "MEX", + "numeric": "484" }, { - "name": "Micronesia (Federated States of)", - "alpha2": "FM", - "alpha3": "FSM", - "numeric": "583", - "altName": "Micronesia, Federated States of", - "shortName": "Micronesia" + "name": "Micronesia (Federated States of)", + "alpha2": "FM", + "alpha3": "FSM", + "numeric": "583", + "altName": "Micronesia, Federated States of", + "shortName": "Micronesia" }, { - "name": "Moldova (the Republic of)", - "alpha2": "MD", - "alpha3": "MDA", - "numeric": "498", - "altName": "Moldova" + "name": "Moldova (the Republic of)", + "alpha2": "MD", + "alpha3": "MDA", + "numeric": "498", + "altName": "Moldova" }, { - "name": "Monaco", - "alpha2": "MC", - "alpha3": "MCO", - "numeric": "492" + "name": "Monaco", + "alpha2": "MC", + "alpha3": "MCO", + "numeric": "492" }, { - "name": "Mongolia", - "alpha2": "MN", - "alpha3": "MNG", - "numeric": "496" + "name": "Mongolia", + "alpha2": "MN", + "alpha3": "MNG", + "numeric": "496" }, { - "name": "Montenegro", - "alpha2": "ME", - "alpha3": "MNE", - "numeric": "499" + "name": "Montenegro", + "alpha2": "ME", + "alpha3": "MNE", + "numeric": "499" }, { - "name": "Montserrat", - "alpha2": "MS", - "alpha3": "MSR", - "numeric": "500" + "name": "Montserrat", + "alpha2": "MS", + "alpha3": "MSR", + "numeric": "500" }, { - "name": "Morocco", - "alpha2": "MA", - "alpha3": "MAR", - "numeric": "504" + "name": "Morocco", + "alpha2": "MA", + "alpha3": "MAR", + "numeric": "504" }, { - "name": "Mozambique", - "alpha2": "MZ", - "alpha3": "MOZ", - "numeric": "508" + "name": "Mozambique", + "alpha2": "MZ", + "alpha3": "MOZ", + "numeric": "508" }, { - "name": "Myanmar", - "alpha2": "MM", - "alpha3": "MMR", - "numeric": "104" + "name": "Myanmar", + "alpha2": "MM", + "alpha3": "MMR", + "numeric": "104" }, { - "name": "Namibia", - "alpha2": "NA", - "alpha3": "NAM", - "numeric": "516" + "name": "Namibia", + "alpha2": "NA", + "alpha3": "NAM", + "numeric": "516" }, { - "name": "Nauru", - "alpha2": "NR", - "alpha3": "NRU", - "numeric": "520" + "name": "Nauru", + "alpha2": "NR", + "alpha3": "NRU", + "numeric": "520" }, { - "name": "Nepal", - "alpha2": "NP", - "alpha3": "NPL", - "numeric": "524" + "name": "Nepal", + "alpha2": "NP", + "alpha3": "NPL", + "numeric": "524" }, { - "name": "Netherlands (the)", - "alpha2": "NL", - "alpha3": "NLD", - "numeric": "528", - "altName": "Netherlands" + "name": "Netherlands (the)", + "alpha2": "NL", + "alpha3": "NLD", + "numeric": "528", + "altName": "Netherlands" }, { - "name": "New Caledonia", - "alpha2": "NC", - "alpha3": "NCL", - "numeric": "540" + "name": "New Caledonia", + "alpha2": "NC", + "alpha3": "NCL", + "numeric": "540" }, { - "name": "New Zealand", - "alpha2": "NZ", - "alpha3": "NZL", - "numeric": "554" + "name": "New Zealand", + "alpha2": "NZ", + "alpha3": "NZL", + "numeric": "554" }, { - "name": "Nicaragua", - "alpha2": "NI", - "alpha3": "NIC", - "numeric": "558" + "name": "Nicaragua", + "alpha2": "NI", + "alpha3": "NIC", + "numeric": "558" }, { - "name": "Niger (the)", - "alpha2": "NE", - "alpha3": "NER", - "numeric": "562", - "altName": "Niger" + "name": "Niger (the)", + "alpha2": "NE", + "alpha3": "NER", + "numeric": "562", + "altName": "Niger" }, { - "name": "Nigeria", - "alpha2": "NG", - "alpha3": "NGA", - "numeric": "566" + "name": "Nigeria", + "alpha2": "NG", + "alpha3": "NGA", + "numeric": "566" }, { - "name": "Niue", - "alpha2": "NU", - "alpha3": "NIU", - "numeric": "570" + "name": "Niue", + "alpha2": "NU", + "alpha3": "NIU", + "numeric": "570" }, { - "name": "Norfolk Island", - "alpha2": "NF", - "alpha3": "NFK", - "numeric": "574" + "name": "Norfolk Island", + "alpha2": "NF", + "alpha3": "NFK", + "numeric": "574" }, { - "name": "Northern Mariana Islands (the)", - "alpha2": "MP", - "alpha3": "MNP", - "numeric": "580", - "altName": "Northern Mariana Islands" + "name": "Northern Mariana Islands (the)", + "alpha2": "MP", + "alpha3": "MNP", + "numeric": "580", + "altName": "Northern Mariana Islands" }, { - "name": "Norway", - "alpha2": "NO", - "alpha3": "NOR", - "numeric": "578" + "name": "Norway", + "alpha2": "NO", + "alpha3": "NOR", + "numeric": "578" }, { - "name": "Oman", - "alpha2": "OM", - "alpha3": "OMN", - "numeric": "512" + "name": "Oman", + "alpha2": "OM", + "alpha3": "OMN", + "numeric": "512" }, { - "name": "Pakistan", - "alpha2": "PK", - "alpha3": "PAK", - "numeric": "586" + "name": "Pakistan", + "alpha2": "PK", + "alpha3": "PAK", + "numeric": "586" }, { - "name": "Palau", - "alpha2": "PW", - "alpha3": "PLW", - "numeric": "585" + "name": "Palau", + "alpha2": "PW", + "alpha3": "PLW", + "numeric": "585" }, { - "name": "Palestine, State of", - "alpha2": "PS", - "alpha3": "PSE", - "numeric": "275", - "altName": "Palestinian Territory", - "shortName": "Palestine" + "name": "Palestine, State of", + "alpha2": "PS", + "alpha3": "PSE", + "numeric": "275", + "altName": "Palestinian Territory", + "shortName": "Palestine" }, { - "name": "Panama", - "alpha2": "PA", - "alpha3": "PAN", - "numeric": "591" + "name": "Panama", + "alpha2": "PA", + "alpha3": "PAN", + "numeric": "591" }, { - "name": "Papua New Guinea", - "alpha2": "PG", - "alpha3": "PNG", - "numeric": "598" + "name": "Papua New Guinea", + "alpha2": "PG", + "alpha3": "PNG", + "numeric": "598" }, { - "name": "Paraguay", - "alpha2": "PY", - "alpha3": "PRY", - "numeric": "600" + "name": "Paraguay", + "alpha2": "PY", + "alpha3": "PRY", + "numeric": "600" }, { - "name": "Peru", - "alpha2": "PE", - "alpha3": "PER", - "numeric": "604" + "name": "Peru", + "alpha2": "PE", + "alpha3": "PER", + "numeric": "604" }, { - "name": "Philippines (the)", - "alpha2": "PH", - "alpha3": "PHL", - "numeric": "608", - "altName": "Philippines" + "name": "Philippines (the)", + "alpha2": "PH", + "alpha3": "PHL", + "numeric": "608", + "altName": "Philippines" }, { - "name": "Pitcairn", - "alpha2": "PN", - "alpha3": "PCN", - "numeric": "612" + "name": "Pitcairn", + "alpha2": "PN", + "alpha3": "PCN", + "numeric": "612" }, { - "name": "Poland", - "alpha2": "PL", - "alpha3": "POL", - "numeric": "616" + "name": "Poland", + "alpha2": "PL", + "alpha3": "POL", + "numeric": "616" }, { - "name": "Portugal", - "alpha2": "PT", - "alpha3": "PRT", - "numeric": "620" + "name": "Portugal", + "alpha2": "PT", + "alpha3": "PRT", + "numeric": "620" }, { - "name": "Puerto Rico", - "alpha2": "PR", - "alpha3": "PRI", - "numeric": "630" + "name": "Puerto Rico", + "alpha2": "PR", + "alpha3": "PRI", + "numeric": "630" }, { - "name": "Qatar", - "alpha2": "QA", - "alpha3": "QAT", - "numeric": "634" + "name": "Qatar", + "alpha2": "QA", + "alpha3": "QAT", + "numeric": "634" }, { - "name": "Réunion", - "alpha2": "RE", - "alpha3": "REU", - "numeric": "638", - "shortName": "Reunion" + "name": "Réunion", + "alpha2": "RE", + "alpha3": "REU", + "numeric": "638", + "shortName": "Reunion" }, { - "name": "Romania", - "alpha2": "RO", - "alpha3": "ROU", - "numeric": "642" + "name": "Romania", + "alpha2": "RO", + "alpha3": "ROU", + "numeric": "642" }, { - "name": "Russian Federation (the)", - "alpha2": "RU", - "alpha3": "RUS", - "numeric": "643", - "altName": "Russian Federation", - "shortName": "Russia" + "name": "Russian Federation (the)", + "alpha2": "RU", + "alpha3": "RUS", + "numeric": "643", + "altName": "Russian Federation", + "shortName": "Russia" }, { - "name": "Rwanda", - "alpha2": "RW", - "alpha3": "RWA", - "numeric": "646" + "name": "Rwanda", + "alpha2": "RW", + "alpha3": "RWA", + "numeric": "646" }, { - "name": "Saint Barthélemy", - "alpha2": "BL", - "alpha3": "BLM", - "numeric": "652", - "altName": "Saint-Barthélemy", - "shortName": "Saint Barthelemy" + "name": "Saint Barthélemy", + "alpha2": "BL", + "alpha3": "BLM", + "numeric": "652", + "altName": "Saint-Barthélemy", + "shortName": "Saint Barthelemy" }, { - "name": "Saint Helena, Ascension and Tristan da Cunha", - "alpha2": "SH", - "alpha3": "SHN", - "numeric": "654", - "altName": "Saint Helena" + "name": "Saint Helena, Ascension and Tristan da Cunha", + "alpha2": "SH", + "alpha3": "SHN", + "numeric": "654", + "altName": "Saint Helena" }, { - "name": "Saint Kitts and Nevis", - "alpha2": "KN", - "alpha3": "KNA", - "numeric": "659" + "name": "Saint Kitts and Nevis", + "alpha2": "KN", + "alpha3": "KNA", + "numeric": "659" }, { - "name": "Saint Lucia", - "alpha2": "LC", - "alpha3": "LCA", - "numeric": "662" + "name": "Saint Lucia", + "alpha2": "LC", + "alpha3": "LCA", + "numeric": "662" }, { - "name": "Saint Martin (French part)", - "alpha2": "MF", - "alpha3": "MAF", - "numeric": "663", - "altName": "Saint-Martin (French part)", - "shortName": "Saint Martin" + "name": "Saint Martin (French part)", + "alpha2": "MF", + "alpha3": "MAF", + "numeric": "663", + "altName": "Saint-Martin (French part)", + "shortName": "Saint Martin" }, { - "name": "Saint Pierre and Miquelon", - "alpha2": "PM", - "alpha3": "SPM", - "numeric": "666" + "name": "Saint Pierre and Miquelon", + "alpha2": "PM", + "alpha3": "SPM", + "numeric": "666" }, { - "name": "Saint Vincent and the Grenadines", - "alpha2": "VC", - "alpha3": "VCT", - "numeric": "670", - "altName": "Saint Vincent and Grenadines" + "name": "Saint Vincent and the Grenadines", + "alpha2": "VC", + "alpha3": "VCT", + "numeric": "670", + "altName": "Saint Vincent and Grenadines" }, { - "name": "Samoa", - "alpha2": "WS", - "alpha3": "WSM", - "numeric": "882" + "name": "Samoa", + "alpha2": "WS", + "alpha3": "WSM", + "numeric": "882" }, { - "name": "San Marino", - "alpha2": "SM", - "alpha3": "SMR", - "numeric": "674" + "name": "San Marino", + "alpha2": "SM", + "alpha3": "SMR", + "numeric": "674" }, { - "name": "Sao Tome and Principe", - "alpha2": "ST", - "alpha3": "STP", - "numeric": "678" + "name": "Sao Tome and Principe", + "alpha2": "ST", + "alpha3": "STP", + "numeric": "678" }, { - "name": "Saudi Arabia", - "alpha2": "SA", - "alpha3": "SAU", - "numeric": "682" + "name": "Saudi Arabia", + "alpha2": "SA", + "alpha3": "SAU", + "numeric": "682" }, { - "name": "Senegal", - "alpha2": "SN", - "alpha3": "SEN", - "numeric": "686" + "name": "Senegal", + "alpha2": "SN", + "alpha3": "SEN", + "numeric": "686" }, { - "name": "Serbia", - "alpha2": "RS", - "alpha3": "SRB", - "numeric": "688" + "name": "Serbia", + "alpha2": "RS", + "alpha3": "SRB", + "numeric": "688" }, { - "name": "Seychelles", - "alpha2": "SC", - "alpha3": "SYC", - "numeric": "690" + "name": "Seychelles", + "alpha2": "SC", + "alpha3": "SYC", + "numeric": "690" }, { - "name": "Sierra Leone", - "alpha2": "SL", - "alpha3": "SLE", - "numeric": "694" + "name": "Sierra Leone", + "alpha2": "SL", + "alpha3": "SLE", + "numeric": "694" }, { - "name": "Singapore", - "alpha2": "SG", - "alpha3": "SGP", - "numeric": "702" + "name": "Singapore", + "alpha2": "SG", + "alpha3": "SGP", + "numeric": "702" }, { - "name": "Sint Maarten (Dutch part)", - "alpha2": "SX", - "alpha3": "SXM", - "numeric": "534", - "shortName": "Sint Maarten" + "name": "Sint Maarten (Dutch part)", + "alpha2": "SX", + "alpha3": "SXM", + "numeric": "534", + "shortName": "Sint Maarten" }, { - "name": "Slovakia", - "alpha2": "SK", - "alpha3": "SVK", - "numeric": "703" + "name": "Slovakia", + "alpha2": "SK", + "alpha3": "SVK", + "numeric": "703" }, { - "name": "Slovenia", - "alpha2": "SI", - "alpha3": "SVN", - "numeric": "705" + "name": "Slovenia", + "alpha2": "SI", + "alpha3": "SVN", + "numeric": "705" }, { - "name": "Solomon Islands", - "alpha2": "SB", - "alpha3": "SLB", - "numeric": "090" + "name": "Solomon Islands", + "alpha2": "SB", + "alpha3": "SLB", + "numeric": "090" }, { - "name": "Somalia", - "alpha2": "SO", - "alpha3": "SOM", - "numeric": "706" + "name": "Somalia", + "alpha2": "SO", + "alpha3": "SOM", + "numeric": "706" }, { - "name": "South Africa", - "alpha2": "ZA", - "alpha3": "ZAF", - "numeric": "710" + "name": "South Africa", + "alpha2": "ZA", + "alpha3": "ZAF", + "numeric": "710" }, { - "name": "South Georgia and the South Sandwich Islands", - "alpha2": "GS", - "alpha3": "SGS", - "numeric": "239" + "name": "South Georgia and the South Sandwich Islands", + "alpha2": "GS", + "alpha3": "SGS", + "numeric": "239" }, { - "name": "South Sudan", - "alpha2": "SS", - "alpha3": "SSD", - "numeric": "728" + "name": "South Sudan", + "alpha2": "SS", + "alpha3": "SSD", + "numeric": "728" }, { - "name": "Spain", - "alpha2": "ES", - "alpha3": "ESP", - "numeric": "724" + "name": "Spain", + "alpha2": "ES", + "alpha3": "ESP", + "numeric": "724" }, { - "name": "Sri Lanka", - "alpha2": "LK", - "alpha3": "LKA", - "numeric": "144" + "name": "Sri Lanka", + "alpha2": "LK", + "alpha3": "LKA", + "numeric": "144" }, { - "name": "Sudan (the)", - "alpha2": "SD", - "alpha3": "SDN", - "numeric": "729", - "altName": "Sudan" + "name": "Sudan (the)", + "alpha2": "SD", + "alpha3": "SDN", + "numeric": "729", + "altName": "Sudan" }, { - "name": "Suriname", - "alpha2": "SR", - "alpha3": "SUR", - "numeric": "740" + "name": "Suriname", + "alpha2": "SR", + "alpha3": "SUR", + "numeric": "740" }, { - "name": "Svalbard and Jan Mayen", - "alpha2": "SJ", - "alpha3": "SJM", - "numeric": "744", - "altName": "Svalbard and Jan Mayen Islands" + "name": "Svalbard and Jan Mayen", + "alpha2": "SJ", + "alpha3": "SJM", + "numeric": "744", + "altName": "Svalbard and Jan Mayen Islands" }, { - "name": "Swaziland", - "alpha2": "SZ", - "alpha3": "SWZ", - "numeric": "748" + "name": "Swaziland", + "alpha2": "SZ", + "alpha3": "SWZ", + "numeric": "748" }, { - "name": "Sweden", - "alpha2": "SE", - "alpha3": "SWE", - "numeric": "752" + "name": "Sweden", + "alpha2": "SE", + "alpha3": "SWE", + "numeric": "752" }, { - "name": "Switzerland", - "alpha2": "CH", - "alpha3": "CHE", - "numeric": "756" + "name": "Switzerland", + "alpha2": "CH", + "alpha3": "CHE", + "numeric": "756" }, { - "name": "Syrian Arab Republic", - "alpha2": "SY", - "alpha3": "SYR", - "numeric": "760", - "altName": "Syrian Arab Republic (Syria)", - "shortName": "Syria" + "name": "Syrian Arab Republic", + "alpha2": "SY", + "alpha3": "SYR", + "numeric": "760", + "altName": "Syrian Arab Republic (Syria)", + "shortName": "Syria" }, { - "name": "Taiwan (Province of China)", - "alpha2": "TW", - "alpha3": "TWN", - "numeric": "158", - "altName": "Taiwan, Republic of China", - "shortName": "Taiwan" + "name": "Taiwan (Province of China)", + "alpha2": "TW", + "alpha3": "TWN", + "numeric": "158", + "altName": "Taiwan, Republic of China", + "shortName": "Taiwan" }, { - "name": "Tajikistan", - "alpha2": "TJ", - "alpha3": "TJK", - "numeric": "762" + "name": "Tajikistan", + "alpha2": "TJ", + "alpha3": "TJK", + "numeric": "762" }, { - "name": "Tanzania, United Republic of", - "alpha2": "TZ", - "alpha3": "TZA", - "numeric": "834", - "shortName": "Tanzania" + "name": "Tanzania, United Republic of", + "alpha2": "TZ", + "alpha3": "TZA", + "numeric": "834", + "shortName": "Tanzania" }, { - "name": "Thailand", - "alpha2": "TH", - "alpha3": "THA", - "numeric": "764" + "name": "Thailand", + "alpha2": "TH", + "alpha3": "THA", + "numeric": "764" }, { - "name": "Timor-Leste", - "alpha2": "TL", - "alpha3": "TLS", - "numeric": "626", - "shortName": "East Timor" + "name": "Timor-Leste", + "alpha2": "TL", + "alpha3": "TLS", + "numeric": "626", + "shortName": "East Timor" }, { - "name": "Togo", - "alpha2": "TG", - "alpha3": "TGO", - "numeric": "768" + "name": "Togo", + "alpha2": "TG", + "alpha3": "TGO", + "numeric": "768" }, { - "name": "Tokelau", - "alpha2": "TK", - "alpha3": "TKL", - "numeric": "772" + "name": "Tokelau", + "alpha2": "TK", + "alpha3": "TKL", + "numeric": "772" }, { - "name": "Tonga", - "alpha2": "TO", - "alpha3": "TON", - "numeric": "776" + "name": "Tonga", + "alpha2": "TO", + "alpha3": "TON", + "numeric": "776" }, { - "name": "Trinidad and Tobago", - "alpha2": "TT", - "alpha3": "TTO", - "numeric": "780" + "name": "Trinidad and Tobago", + "alpha2": "TT", + "alpha3": "TTO", + "numeric": "780" }, { - "name": "Tunisia", - "alpha2": "TN", - "alpha3": "TUN", - "numeric": "788" + "name": "Tunisia", + "alpha2": "TN", + "alpha3": "TUN", + "numeric": "788" }, { - "name": "Turkey", - "alpha2": "TR", - "alpha3": "TUR", - "numeric": "792" + "name": "Turkey", + "alpha2": "TR", + "alpha3": "TUR", + "numeric": "792" }, { - "name": "Turkmenistan", - "alpha2": "TM", - "alpha3": "TKM", - "numeric": "795" + "name": "Turkmenistan", + "alpha2": "TM", + "alpha3": "TKM", + "numeric": "795" }, { - "name": "Turks and Caicos Islands (the)", - "alpha2": "TC", - "alpha3": "TCA", - "numeric": "796", - "altName": "Turks and Caicos Islands" + "name": "Turks and Caicos Islands (the)", + "alpha2": "TC", + "alpha3": "TCA", + "numeric": "796", + "altName": "Turks and Caicos Islands" }, { - "name": "Tuvalu", - "alpha2": "TV", - "alpha3": "TUV", - "numeric": "798" + "name": "Tuvalu", + "alpha2": "TV", + "alpha3": "TUV", + "numeric": "798" }, { - "name": "Uganda", - "alpha2": "UG", - "alpha3": "UGA", - "numeric": "800" + "name": "Uganda", + "alpha2": "UG", + "alpha3": "UGA", + "numeric": "800" }, { - "name": "Ukraine", - "alpha2": "UA", - "alpha3": "UKR", - "numeric": "804" + "name": "Ukraine", + "alpha2": "UA", + "alpha3": "UKR", + "numeric": "804" }, { - "name": "United Arab Emirates (the)", - "alpha2": "AE", - "alpha3": "ARE", - "numeric": "784", - "altName": "United Arab Emirates" + "name": "United Arab Emirates (the)", + "alpha2": "AE", + "alpha3": "ARE", + "numeric": "784", + "altName": "United Arab Emirates" }, { - "name": "United Kingdom of Great Britain and Northern Ireland (the)", - "alpha2": "GB", - "alpha3": "GBR", - "numeric": "826", - "altName": "United Kingdom" + "name": "United Kingdom of Great Britain and Northern Ireland (the)", + "alpha2": "GB", + "alpha3": "GBR", + "numeric": "826", + "altName": "United Kingdom" }, { - "name": "United States Minor Outlying Islands (the)", - "alpha2": "UM", - "alpha3": "UMI", - "numeric": "581", - "altName": "US Minor Outlying Islands" + "name": "United States Minor Outlying Islands (the)", + "alpha2": "UM", + "alpha3": "UMI", + "numeric": "581", + "altName": "US Minor Outlying Islands" }, { - "name": "United States of America (the)", - "alpha2": "US", - "alpha3": "USA", - "numeric": "840", - "altName": "United States of America", - "shortName": "United States" + "name": "United States of America (the)", + "alpha2": "US", + "alpha3": "USA", + "numeric": "840", + "altName": "United States of America", + "shortName": "United States" }, { - "name": "Uruguay", - "alpha2": "UY", - "alpha3": "URY", - "numeric": "858" + "name": "Uruguay", + "alpha2": "UY", + "alpha3": "URY", + "numeric": "858" }, { - "name": "Uzbekistan", - "alpha2": "UZ", - "alpha3": "UZB", - "numeric": "860" + "name": "Uzbekistan", + "alpha2": "UZ", + "alpha3": "UZB", + "numeric": "860" }, { - "name": "Vanuatu", - "alpha2": "VU", - "alpha3": "VUT", - "numeric": "548" + "name": "Vanuatu", + "alpha2": "VU", + "alpha3": "VUT", + "numeric": "548" }, { - "name": "Venezuela (Bolivarian Republic of)", - "alpha2": "VE", - "alpha3": "VEN", - "numeric": "862", - "altName": "Venezuela (Bolivarian Republic)", - "shortName": "Venezuela" + "name": "Venezuela (Bolivarian Republic of)", + "alpha2": "VE", + "alpha3": "VEN", + "numeric": "862", + "altName": "Venezuela (Bolivarian Republic)", + "shortName": "Venezuela" }, { - "name": "Viet Nam", - "alpha2": "VN", - "alpha3": "VNM", - "numeric": "704", - "shortName": "Vietnam" + "name": "Viet Nam", + "alpha2": "VN", + "alpha3": "VNM", + "numeric": "704", + "shortName": "Vietnam" }, { - "name": "Virgin Islands (British)", - "alpha2": "VG", - "alpha3": "VGB", - "numeric": "092", - "altName": "British Virgin Islands" + "name": "Virgin Islands (British)", + "alpha2": "VG", + "alpha3": "VGB", + "numeric": "092", + "altName": "British Virgin Islands" }, { - "name": "Virgin Islands (U.S.)", - "alpha2": "VI", - "alpha3": "VIR", - "numeric": "850", - "altName": "Virgin Islands, US", - "shortName": "U.S. Virgin Islands" + "name": "Virgin Islands (U.S.)", + "alpha2": "VI", + "alpha3": "VIR", + "numeric": "850", + "altName": "Virgin Islands, US", + "shortName": "U.S. Virgin Islands" }, { - "name": "Wallis and Futuna", - "alpha2": "WF", - "alpha3": "WLF", - "numeric": "876", - "altName": "Wallis and Futuna Islands" + "name": "Wallis and Futuna", + "alpha2": "WF", + "alpha3": "WLF", + "numeric": "876", + "altName": "Wallis and Futuna Islands" }, { - "name": "Western Sahara*", - "alpha2": "EH", - "alpha3": "ESH", - "numeric": "732", - "altName": "Western Sahara" + "name": "Western Sahara*", + "alpha2": "EH", + "alpha3": "ESH", + "numeric": "732", + "altName": "Western Sahara" }, { - "name": "Yemen", - "alpha2": "YE", - "alpha3": "YEM", - "numeric": "887" + "name": "Yemen", + "alpha2": "YE", + "alpha3": "YEM", + "numeric": "887" }, { - "name": "Zambia", - "alpha2": "ZM", - "alpha3": "ZMB", - "numeric": "894" + "name": "Zambia", + "alpha2": "ZM", + "alpha3": "ZMB", + "numeric": "894" }, { - "name": "Zimbabwe", - "alpha2": "ZW", - "alpha3": "ZWE", - "numeric": "716" + "name": "Zimbabwe", + "alpha2": "ZW", + "alpha3": "ZWE", + "numeric": "716" } - ] as IDataObject[]; +] as IDataObject[]; diff --git a/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinja.node.ts b/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinja.node.ts index b1be5bdcd0..3979e165cb 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinja.node.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinja.node.ts @@ -3,8 +3,8 @@ import { } from 'n8n-core'; import { IDataObject, - INodeExecutionData, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription, diff --git a/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.ts b/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.ts index f84982c0f1..3833dddcfd 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.ts @@ -4,8 +4,8 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Jira/GenericFunctions.ts b/packages/nodes-base/nodes/Jira/GenericFunctions.ts index 88e247f1cc..4d1692dc7a 100644 --- a/packages/nodes-base/nodes/Jira/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Jira/GenericFunctions.ts @@ -10,8 +10,8 @@ import { } from 'n8n-core'; import { - IDataObject, ICredentialDataDecryptedObject, + IDataObject, } from 'n8n-workflow'; export async function jiraSoftwareCloudApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, endpoint: string, method: string, body: any = {}, query?: IDataObject, uri?: string): Promise { // tslint:disable-line:no-any diff --git a/packages/nodes-base/nodes/Jira/Jira.node.ts b/packages/nodes-base/nodes/Jira/Jira.node.ts index e1e21ec010..c415814127 100644 --- a/packages/nodes-base/nodes/Jira/Jira.node.ts +++ b/packages/nodes-base/nodes/Jira/Jira.node.ts @@ -18,8 +18,8 @@ import { } from './GenericFunctions'; import { - issueOperations, issueFields, + issueOperations, } from './IssueDescription'; import { diff --git a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts index 41ecaecc31..bdda07bb2d 100644 --- a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts +++ b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts @@ -5,16 +5,16 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; import { - jiraSoftwareCloudApiRequest, + allEvents, eventExists, getId, - allEvents, + jiraSoftwareCloudApiRequest, } from './GenericFunctions'; import * as queryString from 'querystring'; diff --git a/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts b/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts index 9d05edcacf..d034065841 100644 --- a/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts +++ b/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts @@ -9,8 +9,8 @@ import { IDataObject, ILoadOptionsFunctions, INodePropertyOptions, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Keap/Keap.node.ts b/packages/nodes-base/nodes/Keap/Keap.node.ts index 3ba98cda7f..59692d0df5 100644 --- a/packages/nodes-base/nodes/Keap/Keap.node.ts +++ b/packages/nodes-base/nodes/Keap/Keap.node.ts @@ -3,13 +3,13 @@ import { } from 'n8n-core'; import { - IDataObject, - INodeExecutionData, - INodeTypeDescription, - INodeType, - ILoadOptionsFunctions, - INodePropertyOptions, IBinaryKeyData, + IDataObject, + ILoadOptionsFunctions, + INodeExecutionData, + INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -19,57 +19,57 @@ import { } from './GenericFunctions'; import { - contactOperations, contactFields, + contactOperations, } from './ContactDescription'; import { - contactNoteOperations, contactNoteFields, + contactNoteOperations, } from './ContactNoteDescription'; import { - contactTagOperations, contactTagFields, + contactTagOperations, } from './ContactTagDescription'; import { - ecommerceOrderOperations, ecommerceOrderFields, + ecommerceOrderOperations, } from './EcommerceOrderDescripion'; import { - ecommerceProductOperations, ecommerceProductFields, + ecommerceProductOperations, } from './EcommerceProductDescription'; import { - emailOperations, emailFields, + emailOperations, } from './EmailDescription'; import { - fileOperations, fileFields, + fileOperations, } from './FileDescription'; import { - companyOperations, companyFields, + companyOperations, } from './CompanyDescription'; import { - IContact, IAddress, - IFax, + IContact, IEmailContact, - ISocialAccount, + IFax, IPhone, + ISocialAccount, } from './ConctactInterface'; import { - IEmail, IAttachment, + IEmail, } from './EmaiIInterface'; import { diff --git a/packages/nodes-base/nodes/Keap/KeapTrigger.node.ts b/packages/nodes-base/nodes/Keap/KeapTrigger.node.ts index c5818165aa..fe608e58a1 100644 --- a/packages/nodes-base/nodes/Keap/KeapTrigger.node.ts +++ b/packages/nodes-base/nodes/Keap/KeapTrigger.node.ts @@ -5,11 +5,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeType, - IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/LinkFish/LinkFish.node.ts b/packages/nodes-base/nodes/LinkFish/LinkFish.node.ts index 345124492e..5d97ce834d 100644 --- a/packages/nodes-base/nodes/LinkFish/LinkFish.node.ts +++ b/packages/nodes-base/nodes/LinkFish/LinkFish.node.ts @@ -1,9 +1,9 @@ import { IExecuteSingleFunctions } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; export class LinkFish implements INodeType { diff --git a/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts b/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts index 6220b67712..919d5f48d6 100644 --- a/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts +++ b/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts @@ -1,14 +1,20 @@ -import { IExecuteFunctions, BINARY_ENCODING } from 'n8n-core'; +import { + BINARY_ENCODING, + IExecuteFunctions, +} from 'n8n-core'; import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { linkedInApiRequest } from './GenericFunctions'; -import { postOperations, postFields } from './PostDescription'; +import { + postFields, + postOperations, +} from './PostDescription'; export class LinkedIn implements INodeType { description: INodeTypeDescription = { diff --git a/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts b/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts index 870078dc0b..1d3794beac 100644 --- a/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts +++ b/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts @@ -5,11 +5,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeType, - IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { mailchimpApiRequest, diff --git a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts index 07c5445da5..b05857ac10 100644 --- a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts +++ b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts @@ -4,9 +4,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts b/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts index 841494b672..a30d7ada15 100644 --- a/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts +++ b/packages/nodes-base/nodes/Mailjet/Mailjet.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { mailjetApiRequest, diff --git a/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts b/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts index aba0635028..f25b39b0b7 100644 --- a/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts +++ b/packages/nodes-base/nodes/Mailjet/MailjetTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts index cc7bc65ee3..771059c954 100644 --- a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts +++ b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts @@ -5,10 +5,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, - INodePropertyOptions, INodeExecutionData, + INodePropertyOptions, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts index 9861690254..3bf7367838 100644 --- a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts @@ -2,9 +2,9 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Mautic/Mautic.node.ts b/packages/nodes-base/nodes/Mautic/Mautic.node.ts index 7bdafe7605..8a6bd76e16 100644 --- a/packages/nodes-base/nodes/Mautic/Mautic.node.ts +++ b/packages/nodes-base/nodes/Mautic/Mautic.node.ts @@ -3,17 +3,17 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { + getErrors, mauticApiRequest, mauticApiRequestAllItems, validateJSON, - getErrors, } from './GenericFunctions'; import { diff --git a/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts b/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts index 4f844e1188..75ea573d98 100644 --- a/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts +++ b/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts @@ -8,12 +8,12 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, IDataObject, - INodePropertyOptions, ILoadOptionsFunctions, + INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Medium/Medium.node.ts b/packages/nodes-base/nodes/Medium/Medium.node.ts index c44d256e3d..1316a3b035 100644 --- a/packages/nodes-base/nodes/Medium/Medium.node.ts +++ b/packages/nodes-base/nodes/Medium/Medium.node.ts @@ -6,8 +6,8 @@ import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, INodeTypeDescription, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts b/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts index 46f70c85d6..fa8895e58f 100644 --- a/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts +++ b/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts @@ -4,9 +4,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts index 26e58ef9ad..e242d1c580 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeExecutionData, - INodeTypeDescription, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -18,18 +18,18 @@ import { } from './GenericFunctions'; import { - workbookOperations, workbookFields, + workbookOperations, } from './WorkbookDescription'; import { - worksheetOperations, worksheetFields, + worksheetOperations, } from './WorksheetDescription'; import { - tableOperations, tableFields, + tableOperations, } from './TableDescription'; export class MicrosoftExcel implements INodeType { diff --git a/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts b/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts index 17ccc0dc4a..fcc080558b 100644 --- a/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts +++ b/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts @@ -1,12 +1,12 @@ import { + ICredentialDataDecryptedObject, IDataObject, INodeExecutionData, - ICredentialDataDecryptedObject } from 'n8n-workflow'; import { + IMongoCredentials, IMongoCredentialsType, IMongoParametricCredentials, - IMongoCredentials } from './mongo.node.types'; /** diff --git a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts index 47e8fe47a9..d938ead9dd 100644 --- a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts +++ b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts @@ -5,9 +5,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/OpenWeatherMap.node.ts b/packages/nodes-base/nodes/OpenWeatherMap.node.ts index 38e883e53f..f643ecb76c 100644 --- a/packages/nodes-base/nodes/OpenWeatherMap.node.ts +++ b/packages/nodes-base/nodes/OpenWeatherMap.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { OptionsWithUri } from 'request'; diff --git a/packages/nodes-base/nodes/Paddle/GenericFunctions.ts b/packages/nodes-base/nodes/Paddle/GenericFunctions.ts index 243dc56ff6..a481b4e985 100644 --- a/packages/nodes-base/nodes/Paddle/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Paddle/GenericFunctions.ts @@ -4,9 +4,9 @@ import { import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, IWebhookFunctions, } from 'n8n-core'; diff --git a/packages/nodes-base/nodes/PayPal/GenericFunctions.ts b/packages/nodes-base/nodes/PayPal/GenericFunctions.ts index b1b5a20914..90e4c33a2a 100644 --- a/packages/nodes-base/nodes/PayPal/GenericFunctions.ts +++ b/packages/nodes-base/nodes/PayPal/GenericFunctions.ts @@ -1,12 +1,12 @@ import { OptionsWithUri } from 'request'; import { + BINARY_ENCODING, IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, IWebhookFunctions, - BINARY_ENCODING } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/PayPal/PayPal.node.ts b/packages/nodes-base/nodes/PayPal/PayPal.node.ts index 2f1f00147d..dd10ef9af1 100644 --- a/packages/nodes-base/nodes/PayPal/PayPal.node.ts +++ b/packages/nodes-base/nodes/PayPal/PayPal.node.ts @@ -3,20 +3,21 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - payoutOperations, - payoutItemOperations, payoutFields, payoutItemFields, + payoutItemOperations, + payoutOperations, } from './PaymentDescription'; import { + IAmount, + IItem, IPaymentBatch, ISenderBatchHeader, - IItem, IAmount, RecipientType, RecipientWallet, } from './PaymentInteface'; diff --git a/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts b/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts index 979af52e7c..a55b93d155 100644 --- a/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts +++ b/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts @@ -1,63 +1,63 @@ import { IHookFunctions, IWebhookFunctions, - } from 'n8n-core'; +} from 'n8n-core'; - import { +import { IDataObject, - INodeTypeDescription, - INodeType, - IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions, - } from 'n8n-workflow'; - import { + INodeType, + INodeTypeDescription, + IWebhookResponseData, +} from 'n8n-workflow'; +import { payPalApiRequest, upperFist - } from './GenericFunctions'; +} from './GenericFunctions'; - export class PayPalTrigger implements INodeType { +export class PayPalTrigger implements INodeType { description: INodeTypeDescription = { - displayName: 'PayPal Trigger', - name: 'payPalTrigger', - icon: 'file:paypal.png', - group: ['trigger'], - version: 1, - description: 'Handle PayPal events via webhooks', - defaults: { - name: 'PayPal Trigger', - color: '#32325d', - }, - inputs: [], - outputs: ['main'], - credentials: [ - { - name: 'payPalApi', - required: true, - } - ], - webhooks: [ - { - name: 'default', - httpMethod: 'POST', - reponseMode: 'onReceived', - path: 'webhook', + displayName: 'PayPal Trigger', + name: 'payPalTrigger', + icon: 'file:paypal.png', + group: ['trigger'], + version: 1, + description: 'Handle PayPal events via webhooks', + defaults: { + name: 'PayPal Trigger', + color: '#32325d', }, - ], - properties: [ - { - displayName: 'Events', - name: 'events', - type: 'multiOptions', - required: true, - default: [], - description: 'The event to listen to.', - typeOptions: { - loadOptionsMethod: 'getEvents' + inputs: [], + outputs: ['main'], + credentials: [ + { + name: 'payPalApi', + required: true, + } + ], + webhooks: [ + { + name: 'default', + httpMethod: 'POST', + reponseMode: 'onReceived', + path: 'webhook', }, - options: [], - }, - ], + ], + properties: [ + { + displayName: 'Events', + name: 'events', + type: 'multiOptions', + required: true, + default: [], + description: 'The event to listen to.', + typeOptions: { + loadOptionsMethod: 'getEvents' + }, + options: [], + }, + ], }; methods = { @@ -126,7 +126,7 @@ import { url: webhookUrl, event_types: events.map(event => { return { name: event }; - }), + }), }; const endpoint = '/notifications/webhooks'; try { @@ -157,7 +157,7 @@ import { return true; }, }, - }; + }; async webhook(this: IWebhookFunctions): Promise { let webhook; @@ -168,10 +168,10 @@ import { const endpoint = '/notifications/verify-webhook-signature'; if (headerData['PAYPAL-AUTH-ALGO'] !== undefined - && headerData['PAYPAL-CERT-URL'] !== undefined - && headerData['PAYPAL-TRANSMISSION-ID'] !== undefined - && headerData['PAYPAL-TRANSMISSION-SIG'] !== undefined - && headerData['PAYPAL-TRANSMISSION-TIME'] !== undefined) { + && headerData['PAYPAL-CERT-URL'] !== undefined + && headerData['PAYPAL-TRANSMISSION-ID'] !== undefined + && headerData['PAYPAL-TRANSMISSION-SIG'] !== undefined + && headerData['PAYPAL-TRANSMISSION-TIME'] !== undefined) { const body = { auth_algo: headerData['PAYPAL-AUTH-ALGO'], cert_url: headerData['PAYPAL-CERT-URL'], @@ -198,4 +198,4 @@ import { ], }; } - } +} diff --git a/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts b/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts index 27189d4b3c..f636ab2878 100644 --- a/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts +++ b/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts @@ -4,21 +4,21 @@ import { import { IDataObject, - INodeExecutionData, - INodeTypeDescription, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - philipsHueApiRequest, getUser, + philipsHueApiRequest, } from './GenericFunctions'; import { - lightOperations, lightFields, + lightOperations, } from './LightDescription'; export class PhilipsHue implements INodeType { diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index 919558e700..dba5142e4f 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -5,10 +5,10 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts index 6a6bfa1a6f..99f10d68de 100644 --- a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts @@ -4,8 +4,8 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts index 87ed571c29..951e194960 100644 --- a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts +++ b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts @@ -4,8 +4,8 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/ReadBinaryFile.node.ts b/packages/nodes-base/nodes/ReadBinaryFile.node.ts index 8bf1a8a840..a96c174572 100644 --- a/packages/nodes-base/nodes/ReadBinaryFile.node.ts +++ b/packages/nodes-base/nodes/ReadBinaryFile.node.ts @@ -1,8 +1,8 @@ import { IExecuteSingleFunctions } from 'n8n-core'; import { INodeExecutionData, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts index 0c0e8fb633..509151edef 100644 --- a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts @@ -1,9 +1,9 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, } from 'n8n-core'; export async function rocketchatApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, resource: string, method: string, operation: string, body: any = {}, headers?: object): Promise { // tslint:disable-line:no-any diff --git a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts index 65dd1a6820..fb179307c6 100644 --- a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts +++ b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, - INodeType + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { rocketchatApiRequest, diff --git a/packages/nodes-base/nodes/RssFeedRead.node.ts b/packages/nodes-base/nodes/RssFeedRead.node.ts index b96f3d6e0b..96bcb4550e 100644 --- a/packages/nodes-base/nodes/RssFeedRead.node.ts +++ b/packages/nodes-base/nodes/RssFeedRead.node.ts @@ -1,9 +1,9 @@ import { IExecuteFunctions } from 'n8n-core'; import { IDataObject, + INodeExecutionData, INodeType, INodeTypeDescription, - INodeExecutionData, } from 'n8n-workflow'; import * as Parser from 'rss-parser'; diff --git a/packages/nodes-base/nodes/S3/S3.node.ts b/packages/nodes-base/nodes/S3/S3.node.ts index accb8494fd..2a71489a73 100644 --- a/packages/nodes-base/nodes/S3/S3.node.ts +++ b/packages/nodes-base/nodes/S3/S3.node.ts @@ -1,7 +1,7 @@ import { - snakeCase, paramCase, + snakeCase, } from 'change-case'; import { diff --git a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts index 4f6ddecc85..1fafc216d3 100644 --- a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts +++ b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts @@ -6,9 +6,9 @@ import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - INodePropertyOptions, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Salesforce/UserInterface.ts b/packages/nodes-base/nodes/Salesforce/UserInterface.ts index 035a1b6c9f..985607008a 100644 --- a/packages/nodes-base/nodes/Salesforce/UserInterface.ts +++ b/packages/nodes-base/nodes/Salesforce/UserInterface.ts @@ -1,10 +1,10 @@ export interface IUser { - Alias?: string; - Department?: string; - Division?: string; - Email?: string; - IsActive?: boolean; - MobilePhone?: string; - Title?: string; - Username?: string; + Alias?: string; + Department?: string; + Division?: string; + Email?: string; + IsActive?: boolean; + MobilePhone?: string; + Title?: string; + Username?: string; } diff --git a/packages/nodes-base/nodes/Segment/Segment.node.ts b/packages/nodes-base/nodes/Segment/Segment.node.ts index e8c11613a1..f4c3cc41f7 100644 --- a/packages/nodes-base/nodes/Segment/Segment.node.ts +++ b/packages/nodes-base/nodes/Segment/Segment.node.ts @@ -14,8 +14,8 @@ import { } from './GenericFunctions'; import { - groupOperations, groupFields, + groupOperations, } from './GroupDescription'; import { @@ -28,12 +28,13 @@ import { } from './IdentifyInterface'; import { - trackOperations, trackFields, + trackOperations, } from './TrackDescription'; import { - ITrack, IGroup, + IGroup, + ITrack, } from './TrackInterface'; import * as uuid from 'uuid/v4'; diff --git a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts index 3996ad294d..f5353dc054 100644 --- a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts +++ b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts @@ -4,21 +4,21 @@ import { import { IDataObject, + ILoadOptionsFunctions, INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - ILoadOptionsFunctions, - INodePropertyOptions, } from 'n8n-workflow'; import { - eventOperations, eventFields, + eventOperations, } from './EventDescription'; import { - issueOperations, issueFields, + issueOperations, } from './IssueDescription'; import { @@ -27,23 +27,23 @@ import { } from './OrganizationDescription'; import { - projectOperations, projectFields, + projectOperations, } from './ProjectDescription'; import { - releaseOperations, releaseFields, + releaseOperations, } from './ReleaseDescription'; import { - teamOperations, teamFields, + teamOperations, } from './TeamDescription'; import { - sentryIoApiRequest, sentryApiRequestAllItems, + sentryIoApiRequest, } from './GenericFunctions'; import { diff --git a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts index 9092204315..ebb8bde4ba 100644 --- a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts @@ -3,11 +3,11 @@ import { } from 'request'; import { + BINARY_ENCODING, IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, - BINARY_ENCODING } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Shopify/Shopify.node.ts b/packages/nodes-base/nodes/Shopify/Shopify.node.ts index dc093bb129..9ae04b7639 100644 --- a/packages/nodes-base/nodes/Shopify/Shopify.node.ts +++ b/packages/nodes-base/nodes/Shopify/Shopify.node.ts @@ -5,10 +5,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -28,10 +28,10 @@ import { } from './ProductDescription'; import { - IOrder, - IDiscountCode, IAddress, + IDiscountCode, ILineItem, + IOrder, } from './OrderInterface'; import { diff --git a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts index 07b7939a72..412c582115 100644 --- a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts +++ b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; @@ -16,7 +16,7 @@ import { import { createHmac, - } from 'crypto'; +} from 'crypto'; export class ShopifyTrigger implements INodeType { description: INodeTypeDescription = { @@ -55,240 +55,240 @@ export class ShopifyTrigger implements INodeType { options: [ { - name: 'App uninstalled', - value: 'app/uninstalled', + name: 'App uninstalled', + value: 'app/uninstalled', }, { - name: 'Carts create', - value: 'carts/create', + name: 'Carts create', + value: 'carts/create', }, { - name: 'Carts update', - value: 'carts/update', + name: 'Carts update', + value: 'carts/update', }, { - name: 'Checkouts create', - value: 'checkouts/create', + name: 'Checkouts create', + value: 'checkouts/create', }, { - name: 'Checkouts delete', - value: 'checkouts/delete', + name: 'Checkouts delete', + value: 'checkouts/delete', }, { - name: 'Checkouts update', - value: 'checkouts/update', + name: 'Checkouts update', + value: 'checkouts/update', }, { - name: 'Collection listings add', - value: 'collection_listings/add', + name: 'Collection listings add', + value: 'collection_listings/add', }, { - name: 'Collection listings remove', - value: 'collection_listings/remove', + name: 'Collection listings remove', + value: 'collection_listings/remove', }, { - name: 'Collection listings update', - value: 'collection_listings/update', + name: 'Collection listings update', + value: 'collection_listings/update', }, { - name: 'Collections create', - value: 'collections/create', + name: 'Collections create', + value: 'collections/create', }, { - name: 'Collections delete', - value: 'collections/delete', + name: 'Collections delete', + value: 'collections/delete', }, { - name: 'Collections update', - value: 'collections/update', + name: 'Collections update', + value: 'collections/update', }, { - name: 'Customer groups create', - value: 'customer_groups/create', + name: 'Customer groups create', + value: 'customer_groups/create', }, { - name: 'Customer groups delete', - value: 'customer_groups/delete', + name: 'Customer groups delete', + value: 'customer_groups/delete', }, { - name: 'Customer groups update', - value: 'customer_groups/update', + name: 'Customer groups update', + value: 'customer_groups/update', }, { - name: 'Customers create', - value: 'customers/create', + name: 'Customers create', + value: 'customers/create', }, { - name: 'Customers delete', - value: 'customers/delete', + name: 'Customers delete', + value: 'customers/delete', }, { - name: 'Customers disable', - value: 'customers/disable', + name: 'Customers disable', + value: 'customers/disable', }, { - name: 'Customers enable', - value: 'customers/enable', + name: 'Customers enable', + value: 'customers/enable', }, { - name: 'Customers update', - value: 'customers/update', + name: 'Customers update', + value: 'customers/update', }, { - name: 'Draft orders create', - value: 'draft_orders/create', + name: 'Draft orders create', + value: 'draft_orders/create', }, { - name: 'Draft orders delete', - value: 'draft_orders/delete', + name: 'Draft orders delete', + value: 'draft_orders/delete', }, { - name: 'Draft orders update', - value: 'draft_orders/update', + name: 'Draft orders update', + value: 'draft_orders/update', }, { - name: 'Fulfillment events create', - value: 'fulfillment_events/create', + name: 'Fulfillment events create', + value: 'fulfillment_events/create', }, { - name: 'Fulfillment events delete', - value: 'fulfillment_events/delete', + name: 'Fulfillment events delete', + value: 'fulfillment_events/delete', }, { - name: 'Fulfillments create', - value: 'fulfillments/create', + name: 'Fulfillments create', + value: 'fulfillments/create', }, { - name: 'Fulfillments update', - value: 'fulfillments/update', + name: 'Fulfillments update', + value: 'fulfillments/update', }, { - name: 'Inventory_items create', - value: 'inventory_items/create', + name: 'Inventory_items create', + value: 'inventory_items/create', }, { - name: 'Inventory_items delete', - value: 'inventory_items/delete', + name: 'Inventory_items delete', + value: 'inventory_items/delete', }, { - name: 'Inventory_items update', - value: 'inventory_items/update', + name: 'Inventory_items update', + value: 'inventory_items/update', }, { - name: 'Inventory_levels connect', - value: 'inventory_levels/connect', + name: 'Inventory_levels connect', + value: 'inventory_levels/connect', }, { - name: 'Inventory_levels disconnect', - value: 'inventory_levels/disconnect', + name: 'Inventory_levels disconnect', + value: 'inventory_levels/disconnect', }, { - name: 'Inventory_levels update', - value: 'inventory_levels/update', + name: 'Inventory_levels update', + value: 'inventory_levels/update', }, { - name: 'Locales create', - value: 'locales/create', + name: 'Locales create', + value: 'locales/create', }, { - name: 'Locales update', - value: 'locales/update', + name: 'Locales update', + value: 'locales/update', }, { - name: 'Locations create', - value: 'locations/create', + name: 'Locations create', + value: 'locations/create', }, { - name: 'Locations delete', - value: 'locations/delete', + name: 'Locations delete', + value: 'locations/delete', }, { - name: 'Locations update', - value: 'locations/update', + name: 'Locations update', + value: 'locations/update', }, { - name: 'Order transactions create', - value: 'order_transactions/create', + name: 'Order transactions create', + value: 'order_transactions/create', }, { - name: 'Orders cancelled', - value: 'orders/cancelled', + name: 'Orders cancelled', + value: 'orders/cancelled', }, { - name: 'Orders create', - value: 'orders/create', + name: 'Orders create', + value: 'orders/create', }, { - name: 'Orders delete', - value: 'orders/delete', + name: 'Orders delete', + value: 'orders/delete', }, { - name: 'Orders fulfilled', - value: 'orders/fulfilled', + name: 'Orders fulfilled', + value: 'orders/fulfilled', }, { - name: 'Orders paid', - value: 'orders/paid', + name: 'Orders paid', + value: 'orders/paid', }, { - name: 'Orders partially fulfilled', - value: 'orders/partially_fulfilled', + name: 'Orders partially fulfilled', + value: 'orders/partially_fulfilled', }, { - name: 'Orders updated', - value: 'orders/updated', + name: 'Orders updated', + value: 'orders/updated', }, { - name: 'Product listings add', - value: 'product_listings/add', + name: 'Product listings add', + value: 'product_listings/add', }, { - name: 'Product listings remove', - value: 'product_listings/remove', + name: 'Product listings remove', + value: 'product_listings/remove', }, { - name: 'Product listings update', - value: 'product_listings/update', + name: 'Product listings update', + value: 'product_listings/update', }, { - name: 'Products create', - value: 'products/create', + name: 'Products create', + value: 'products/create', }, { - name: 'Products delete', - value: 'products/delete', + name: 'Products delete', + value: 'products/delete', }, { - name: 'Products update', - value: 'products/update', + name: 'Products update', + value: 'products/update', }, { - name: 'Refunds create', - value: 'refunds/create', + name: 'Refunds create', + value: 'refunds/create', }, { - name: 'Shop update', - value: 'shop/update', + name: 'Shop update', + value: 'shop/update', }, { - name: 'Tender transactions create', - value: 'tender_transactions/create', + name: 'Tender transactions create', + value: 'tender_transactions/create', }, { - name: 'Themes create', - value: 'themes/create', + name: 'Themes create', + value: 'themes/create', }, { - name: 'Themes delete', - value: 'themes/delete', + name: 'Themes delete', + value: 'themes/delete', }, { - name: 'Themes publish', - value: 'themes/publish', + name: 'Themes publish', + value: 'themes/publish', }, { - name: 'Themes update', - value: 'themes/update', + name: 'Themes update', + value: 'themes/update', }, ], description: 'Event that triggers the webhook', @@ -331,8 +331,8 @@ export class ShopifyTrigger implements INodeType { let responseData; try { - responseData = await shopifyApiRequest.call(this, 'POST', endpoint, body); - } catch(error) { + responseData = await shopifyApiRequest.call(this, 'POST', endpoint, body); + } catch (error) { return false; } @@ -370,9 +370,9 @@ export class ShopifyTrigger implements INodeType { const req = this.getRequestObject(); const webhookData = this.getWorkflowStaticData('node') as IDataObject; if (headerData['x-shopify-topic'] !== undefined - && headerData['x-shopify-hmac-sha256'] !== undefined - && headerData['x-shopify-shop-domain'] !== undefined - && headerData['x-shopify-api-version'] !== undefined) { + && headerData['x-shopify-hmac-sha256'] !== undefined + && headerData['x-shopify-shop-domain'] !== undefined + && headerData['x-shopify-api-version'] !== undefined) { // @ts-ignore const computedSignature = createHmac('sha256', webhookData.sharedSecret as string).update(req.rawBody).digest('base64'); if (headerData['x-shopify-hmac-sha256'] !== computedSignature) { diff --git a/packages/nodes-base/nodes/Signl4/Signl4.node.ts b/packages/nodes-base/nodes/Signl4/Signl4.node.ts index b4022ff0e4..143146ad20 100644 --- a/packages/nodes-base/nodes/Signl4/Signl4.node.ts +++ b/packages/nodes-base/nodes/Signl4/Signl4.node.ts @@ -1,6 +1,6 @@ import { - IExecuteFunctions, BINARY_ENCODING, + IExecuteFunctions, } from 'n8n-core'; import { diff --git a/packages/nodes-base/nodes/Slack/Slack.node.ts b/packages/nodes-base/nodes/Slack/Slack.node.ts index f95558b64d..391cb15897 100644 --- a/packages/nodes-base/nodes/Slack/Slack.node.ts +++ b/packages/nodes-base/nodes/Slack/Slack.node.ts @@ -5,11 +5,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Spotify/GenericFunctions.ts b/packages/nodes-base/nodes/Spotify/GenericFunctions.ts index f4c86a9d2d..b822e63e73 100644 --- a/packages/nodes-base/nodes/Spotify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Spotify/GenericFunctions.ts @@ -48,17 +48,17 @@ export async function spotifyApiRequest(this: IHookFunctions | IExecuteFunctions return await this.helpers.requestOAuth2.call(this, 'spotifyOAuth2Api', options); } catch (error) { if (error.statusCode === 401) { - // Return a clear error - throw new Error('The Spotify credentials are not valid!'); - } + // Return a clear error + throw new Error('The Spotify credentials are not valid!'); + } - if (error.error && error.error.error && error.error.error.message) { - // Try to return the error prettier - throw new Error(`Spotify error response [${error.error.error.status}]: ${error.error.error.message}`); - } + if (error.error && error.error.error && error.error.error.message) { + // Try to return the error prettier + throw new Error(`Spotify error response [${error.error.error.status}]: ${error.error.error.message}`); + } - // If that data does not exist for some reason return the actual error - throw error; + // If that data does not exist for some reason return the actual error + throw error; } } diff --git a/packages/nodes-base/nodes/SpreadsheetFile.node.ts b/packages/nodes-base/nodes/SpreadsheetFile.node.ts index b1d1c14190..daf6026574 100644 --- a/packages/nodes-base/nodes/SpreadsheetFile.node.ts +++ b/packages/nodes-base/nodes/SpreadsheetFile.node.ts @@ -4,18 +4,18 @@ import { } from 'n8n-core'; import { + IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IDataObject, } from 'n8n-workflow'; import { read as xlsxRead, utils as xlsxUtils, + WorkBook, write as xlsxWrite, WritingOptions, - WorkBook, } from 'xlsx'; diff --git a/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts b/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts index 304af37203..b9cc246635 100644 --- a/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts +++ b/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts @@ -5,8 +5,8 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts b/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts index c0f722dd8c..94320d4b48 100644 --- a/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts +++ b/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts @@ -22,9 +22,9 @@ import { import { IAnswer, IChoice, + IOther, IQuestion, IRow, - IOther, } from './Interfaces'; import { diff --git a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts index 8dbdd6e2fe..a26ddb148c 100644 --- a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts +++ b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts @@ -14,8 +14,8 @@ import { } from 'n8n-core'; import { - taigaApiRequest, getAutomaticSecret, + taigaApiRequest, } from './GenericFunctions'; // import { diff --git a/packages/nodes-base/nodes/Telegram/Telegram.node.ts b/packages/nodes-base/nodes/Telegram/Telegram.node.ts index 2597b0a0c9..e7b7825a80 100644 --- a/packages/nodes-base/nodes/Telegram/Telegram.node.ts +++ b/packages/nodes-base/nodes/Telegram/Telegram.node.ts @@ -5,13 +5,13 @@ import { import { IDataObject, INodeExecutionData, - INodeTypeDescription, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - apiRequest, addAdditionalFields, + apiRequest, } from './GenericFunctions'; diff --git a/packages/nodes-base/nodes/Todoist/Todoist.node.ts b/packages/nodes-base/nodes/Todoist/Todoist.node.ts index d2dbe002e3..fb46fe7b50 100644 --- a/packages/nodes-base/nodes/Todoist/Todoist.node.ts +++ b/packages/nodes-base/nodes/Todoist/Todoist.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Toggl/GenericFunctions.ts b/packages/nodes-base/nodes/Toggl/GenericFunctions.ts index 37c6bdb80b..d8d3ed693d 100644 --- a/packages/nodes-base/nodes/Toggl/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Toggl/GenericFunctions.ts @@ -2,9 +2,9 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, + IExecuteSingleFunctions, IHookFunctions, ILoadOptionsFunctions, - IExecuteSingleFunctions, IPollFunctions, ITriggerFunctions, } from 'n8n-core'; diff --git a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts index c32734bc23..70bd4945e8 100644 --- a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts +++ b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts @@ -1,9 +1,9 @@ import { IPollFunctions } from 'n8n-core'; import { + IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IDataObject, } from 'n8n-workflow'; import * as moment from 'moment'; diff --git a/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts b/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts index 140a4cd0dc..313eab17da 100644 --- a/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts +++ b/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts @@ -4,9 +4,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Trello/Trello.node.ts b/packages/nodes-base/nodes/Trello/Trello.node.ts index c39b51a6c1..0fa85a8dee 100644 --- a/packages/nodes-base/nodes/Trello/Trello.node.ts +++ b/packages/nodes-base/nodes/Trello/Trello.node.ts @@ -4,9 +4,9 @@ import { import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -14,38 +14,38 @@ import { } from './GenericFunctions'; import { - attachmentOperations, attachmentFields, + attachmentOperations, } from './AttachmentDescription'; import { - boardOperations, boardFields, + boardOperations, } from './BoardDescription'; import { - cardOperations, cardFields, + cardOperations, } from './CardDescription'; import { - cardCommentOperations, cardCommentFields, + cardCommentOperations, } from './CardCommentDescription'; import { - checklistOperations, checklistFields, + checklistOperations, } from './ChecklistDescription'; import { - labelOperations, labelFields, + labelOperations, } from './LabelDescription'; import { - listOperations, listFields, + listOperations, } from './ListDescription'; export class Trello implements INodeType { diff --git a/packages/nodes-base/nodes/Trello/TrelloTrigger.node.ts b/packages/nodes-base/nodes/Trello/TrelloTrigger.node.ts index 9d58c935b7..feb80219da 100644 --- a/packages/nodes-base/nodes/Trello/TrelloTrigger.node.ts +++ b/packages/nodes-base/nodes/Trello/TrelloTrigger.node.ts @@ -4,9 +4,8 @@ import { } from 'n8n-core'; import { - IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; @@ -14,7 +13,7 @@ import { apiRequest, } from './GenericFunctions'; -import { createHmac } from 'crypto'; +// import { createHmac } from 'crypto'; export class TrelloTrigger implements INodeType { diff --git a/packages/nodes-base/nodes/Twake/Twake.node.ts b/packages/nodes-base/nodes/Twake/Twake.node.ts index 3b5459cde9..7d1da31823 100644 --- a/packages/nodes-base/nodes/Twake/Twake.node.ts +++ b/packages/nodes-base/nodes/Twake/Twake.node.ts @@ -3,12 +3,12 @@ import { } from 'n8n-core'; import { - INodeExecutionData, IDataObject, + ILoadOptionsFunctions, + INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - ILoadOptionsFunctions, - INodePropertyOptions, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Twilio/Twilio.node.ts b/packages/nodes-base/nodes/Twilio/Twilio.node.ts index 479cb11e61..cf468c20e3 100644 --- a/packages/nodes-base/nodes/Twilio/Twilio.node.ts +++ b/packages/nodes-base/nodes/Twilio/Twilio.node.ts @@ -3,9 +3,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Twitter/GenericFunctions.ts b/packages/nodes-base/nodes/Twitter/GenericFunctions.ts index 655345ec94..d05a3c32ed 100644 --- a/packages/nodes-base/nodes/Twitter/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Twitter/GenericFunctions.ts @@ -3,9 +3,9 @@ import { } from 'request'; import { - IHookFunctions, IExecuteFunctions, IExecuteSingleFunctions, + IHookFunctions, ILoadOptionsFunctions, } from 'n8n-core'; @@ -74,5 +74,3 @@ export function chunks (buffer: Buffer, chunkSize: number) { return result; } - - diff --git a/packages/nodes-base/nodes/Twitter/Twitter.node.ts b/packages/nodes-base/nodes/Twitter/Twitter.node.ts index 88a4770e37..22ce726574 100644 --- a/packages/nodes-base/nodes/Twitter/Twitter.node.ts +++ b/packages/nodes-base/nodes/Twitter/Twitter.node.ts @@ -1,17 +1,17 @@ import { + BINARY_ENCODING, IExecuteFunctions, ILoadOptionsFunctions, - BINARY_ENCODING, } from 'n8n-core'; import { IBinaryKeyData, IDataObject, INodeExecutionData, + INodePropertyOptions, INodeType, INodeTypeDescription, - INodePropertyOptions, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Typeform/TypeformTrigger.node.ts b/packages/nodes-base/nodes/Typeform/TypeformTrigger.node.ts index 9c8f6e16ff..4af0342d86 100644 --- a/packages/nodes-base/nodes/Typeform/TypeformTrigger.node.ts +++ b/packages/nodes-base/nodes/Typeform/TypeformTrigger.node.ts @@ -4,10 +4,10 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, IDataObject, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts index e5ef6b3f9c..fd3bf65256 100644 --- a/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts +++ b/packages/nodes-base/nodes/UnleashedSoftware/UnleashedSoftware.node.ts @@ -10,19 +10,19 @@ import { } from 'n8n-workflow'; import { + convertNETDates, unleashedApiRequest, unleashedApiRequestAllItems, - convertNETDates, } from './GenericFunctions'; import { - salesOrderOperations, salesOrderFields, + salesOrderOperations, } from './SalesOrderDescription'; import { - stockOnHandOperations, stockOnHandFields, + stockOnHandOperations, } from './StockOnHandDescription'; import * as moment from 'moment'; diff --git a/packages/nodes-base/nodes/Uplead/Uplead.node.ts b/packages/nodes-base/nodes/Uplead/Uplead.node.ts index 93350e99d9..2c4197244e 100644 --- a/packages/nodes-base/nodes/Uplead/Uplead.node.ts +++ b/packages/nodes-base/nodes/Uplead/Uplead.node.ts @@ -15,8 +15,8 @@ import { companyOperations, } from './CompanyDesciption'; import { + personFields, personOperations, - personFields, } from './PersonDescription'; export class Uplead implements INodeType { diff --git a/packages/nodes-base/nodes/Vero/GenericFunctions.ts b/packages/nodes-base/nodes/Vero/GenericFunctions.ts index 2e5053fb7e..ecac559539 100644 --- a/packages/nodes-base/nodes/Vero/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Vero/GenericFunctions.ts @@ -1,8 +1,8 @@ import { OptionsWithUri } from 'request'; import { IExecuteFunctions, - ILoadOptionsFunctions, IExecuteSingleFunctions, + ILoadOptionsFunctions, } from 'n8n-core'; import { IDataObject } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Vero/Vero.node.ts b/packages/nodes-base/nodes/Vero/Vero.node.ts index 6638e22b58..ea6e7a8d84 100644 --- a/packages/nodes-base/nodes/Vero/Vero.node.ts +++ b/packages/nodes-base/nodes/Vero/Vero.node.ts @@ -3,21 +3,21 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { - veroApiRequest, validateJSON, + veroApiRequest, } from './GenericFunctions'; import { - userOperations, userFields, + userOperations, } from './UserDescription'; import { + eventFields, eventOperations, - eventFields } from './EventDescripion'; export class Vero implements INodeType { diff --git a/packages/nodes-base/nodes/Webflow/WebflowTrigger.node.ts b/packages/nodes-base/nodes/Webflow/WebflowTrigger.node.ts index 73b2efef61..becb8a9622 100644 --- a/packages/nodes-base/nodes/Webflow/WebflowTrigger.node.ts +++ b/packages/nodes-base/nodes/Webflow/WebflowTrigger.node.ts @@ -5,11 +5,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeType, - IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Webhook.node.ts b/packages/nodes-base/nodes/Webhook.node.ts index 1778d44290..0294d65565 100644 --- a/packages/nodes-base/nodes/Webhook.node.ts +++ b/packages/nodes-base/nodes/Webhook.node.ts @@ -6,8 +6,8 @@ import { import { IDataObject, INodeExecutionData, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts index 804392fea2..f168872843 100644 --- a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts @@ -10,14 +10,14 @@ import { IWebhookFunctions, } from 'n8n-core'; import { + ICredentialDataDecryptedObject, IDataObject, - ICredentialDataDecryptedObject } from 'n8n-workflow'; import { - IShoppingLine, - IFeeLine, - ILineItem, - ICouponLine + ICouponLine, + IFeeLine, + ILineItem, + IShoppingLine, } from './OrderInterface'; export async function woocommerceApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IWebhookFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise { // tslint:disable-line:no-any @@ -33,7 +33,7 @@ export async function woocommerceApiRequest(this: IHookFunctions | IExecuteFunct method, qs, body, - uri: uri ||`${credentials.url}/wp-json/wc/v3${resource}`, + uri: uri || `${credentials.url}/wp-json/wc/v3${resource}`, json: true }; if (!Object.keys(body).length) { @@ -67,7 +67,7 @@ export async function woocommerceApiRequestAllItems(this: IExecuteFunctions | IL query.per_page = 100; do { responseData = await woocommerceApiRequest.call(this, method, endpoint, body, query, uri, { resolveWithFullResponse: true }); - uri = responseData.headers['link'].split(';')[0].replace('<', '').replace('>',''); + uri = responseData.headers['link'].split(';')[0].replace('<', '').replace('>', ''); returnData.push.apply(returnData, responseData.body); } while ( responseData.headers['link'] !== undefined && diff --git a/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts b/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts index bbb3d8668d..9b9b8019bf 100644 --- a/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts +++ b/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts @@ -4,10 +4,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { setMetadata, diff --git a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts index 6a09e525d2..15277e5ae8 100644 --- a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts +++ b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts @@ -5,14 +5,14 @@ import { import { IDataObject, - INodeTypeDescription, INodeType, + INodeTypeDescription, IWebhookResponseData, } from 'n8n-workflow'; import { - woocommerceApiRequest, getAutomaticSecret, + woocommerceApiRequest, } from './GenericFunctions'; import { createHmac } from 'crypto'; diff --git a/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts b/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts index d7f930aeea..36f845325b 100644 --- a/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts +++ b/packages/nodes-base/nodes/Wordpress/Wordpress.node.ts @@ -4,10 +4,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { wordpressApiRequest, diff --git a/packages/nodes-base/nodes/WriteBinaryFile.node.ts b/packages/nodes-base/nodes/WriteBinaryFile.node.ts index 2bcb8f8e9b..4c6fba99f6 100644 --- a/packages/nodes-base/nodes/WriteBinaryFile.node.ts +++ b/packages/nodes-base/nodes/WriteBinaryFile.node.ts @@ -4,9 +4,9 @@ import { } from 'n8n-core'; import { IDataObject, - INodeTypeDescription, INodeExecutionData, INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Xero/Xero.node.ts b/packages/nodes-base/nodes/Xero/Xero.node.ts index 31a1df36e8..46825973c7 100644 --- a/packages/nodes-base/nodes/Xero/Xero.node.ts +++ b/packages/nodes-base/nodes/Xero/Xero.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Xml.node.ts b/packages/nodes-base/nodes/Xml.node.ts index f684228d57..1b2fd2ab83 100644 --- a/packages/nodes-base/nodes/Xml.node.ts +++ b/packages/nodes-base/nodes/Xml.node.ts @@ -1,10 +1,10 @@ import { Builder, Parser } from 'xml2js'; import { IExecuteFunctions } from 'n8n-core'; import { + IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, - IDataObject, } from 'n8n-workflow'; diff --git a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts index 632660a343..0bb6e01fe0 100644 --- a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts +++ b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts @@ -4,11 +4,11 @@ import { import { IDataObject, - INodeTypeDescription, - INodeExecutionData, - INodeType, ILoadOptionsFunctions, + INodeExecutionData, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { @@ -33,8 +33,8 @@ import { } from './UserDescription'; import { - ITicket, IComment, + ITicket, } from './TicketInterface'; export class Zendesk implements INodeType { diff --git a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts index c8d1a8b377..8b4f4103ff 100644 --- a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts +++ b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts @@ -8,12 +8,12 @@ import { } from 'n8n-core'; import { - INodeTypeDescription, - INodeType, - IWebhookResponseData, IDataObject, - INodePropertyOptions, ILoadOptionsFunctions, + INodePropertyOptions, + INodeType, + INodeTypeDescription, + IWebhookResponseData, } from 'n8n-workflow'; import { diff --git a/packages/nodes-base/nodes/Zoom/Zoom.node.ts b/packages/nodes-base/nodes/Zoom/Zoom.node.ts index 10c773f4c6..e5d59abaf1 100644 --- a/packages/nodes-base/nodes/Zoom/Zoom.node.ts +++ b/packages/nodes-base/nodes/Zoom/Zoom.node.ts @@ -17,8 +17,8 @@ import { } from './GenericFunctions'; import { - meetingOperations, meetingFields, + meetingOperations, } from './MeetingDescription'; // import { diff --git a/packages/nodes-base/nodes/Zulip/Zulip.node.ts b/packages/nodes-base/nodes/Zulip/Zulip.node.ts index 3c6261a373..3c716613bc 100644 --- a/packages/nodes-base/nodes/Zulip/Zulip.node.ts +++ b/packages/nodes-base/nodes/Zulip/Zulip.node.ts @@ -5,10 +5,10 @@ import { import { IDataObject, ILoadOptionsFunctions, - INodeTypeDescription, INodeExecutionData, - INodeType, INodePropertyOptions, + INodeType, + INodeTypeDescription, } from 'n8n-workflow'; import { zulipApiRequest, @@ -21,9 +21,18 @@ import { IMessage, } from './MessageInterface'; import { snakeCase } from 'change-case'; -import { streamFields, streamOperations } from './StreamDescription'; -import { userOperations, userFields } from './UserDescription'; -import { IStream, IPrincipal } from './StreamInterface'; +import { + streamFields, + streamOperations, +} from './StreamDescription'; +import { + userFields, + userOperations, +} from './UserDescription'; +import { + IPrincipal, + IStream, +} from './StreamInterface'; import { validateJSON } from './GenericFunctions'; import { IUser } from './UserInterface'; diff --git a/packages/nodes-base/nodes/utils/allCurrencies.ts b/packages/nodes-base/nodes/utils/allCurrencies.ts index 2924edc323..88dacd318e 100644 --- a/packages/nodes-base/nodes/utils/allCurrencies.ts +++ b/packages/nodes-base/nodes/utils/allCurrencies.ts @@ -1,174 +1,174 @@ -const allCurrencies = [ - { name: 'Euro', value: 'eur' }, - { name: 'United States Dollar', value: 'usd' }, - { name: 'British Pound Sterling', value: 'gbp' }, - { name: 'Swiss Franc', value: 'chf' }, - { name: 'Renminbi', value: 'cny' }, - { name: '--------', value: '' }, - { name: 'United Arab Emirates Dirham', value: 'aed' }, - { name: 'Afghan Afghani', value: 'afn' }, - { name: 'Albanian Lek', value: 'all' }, - { name: 'Armenian Dram', value: 'amd' }, - { name: 'Netherlands Antillean Guilder', value: 'ang' }, - { name: 'Angolan Kwanza', value: 'aoa' }, - { name: 'Argentine Peso', value: 'ars' }, - { name: 'Australian Dollar', value: 'aud' }, - { name: 'Aruban Florin', value: 'awg' }, - { name: 'Azerbaijani Manat', value: 'azn' }, - { name: 'Bosnia-Herzegovina Convertible Mark', value: 'bam' }, - { name: 'Barbadian Dollar', value: 'bbd' }, - { name: 'Bangladeshi Taka', value: 'bdt' }, - { name: 'Bulgarian Lev', value: 'bgn' }, - { name: 'Bahraini Dinar', value: 'bhd' }, - { name: 'Burundian Franc', value: 'bif' }, - { name: 'Bermudan Dollar', value: 'bmd' }, - { name: 'Brunei Dollar', value: 'bnd' }, - { name: 'Bolivian Boliviano', value: 'bob' }, - { name: 'Brazilian Real', value: 'brl' }, - { name: 'Bahamian Dollar', value: 'bsd' }, - { name: 'Bitcoin', value: 'btc' }, - { name: 'Bhutanese Ngultrum', value: 'btn' }, - { name: 'Botswanan Pula', value: 'bwp' }, - { name: 'Belarusian Ruble', value: 'byn' }, - { name: 'Belize Dollar', value: 'bzd' }, - { name: 'Canadian Dollar', value: 'cad' }, - { name: 'Congolese Franc', value: 'cdf' }, - { name: 'Chilean Unit of Account (UF)', value: 'clf' }, - { name: 'Chilean Peso', value: 'clp' }, - { name: 'Chinese Yuan (Offshore)', value: 'cnh' }, - { name: 'Colombian Peso', value: 'cop' }, - { name: 'Costa Rican Colón', value: 'crc' }, - { name: 'Cuban Convertible Peso', value: 'cuc' }, - { name: 'Cuban Peso', value: 'cup' }, - { name: 'Cape Verdean Escudo', value: 'cve' }, - { name: 'Czech Republic Koruna', value: 'czk' }, - { name: 'Djiboutian Franc', value: 'djf' }, - { name: 'Danish Krone', value: 'dkk' }, - { name: 'Dominican Peso', value: 'dop' }, - { name: 'Algerian Dinar', value: 'dzd' }, - { name: 'Egyptian Pound', value: 'egp' }, - { name: 'Eritrean Nakfa', value: 'ern' }, - { name: 'Ethiopian Birr', value: 'etb' }, - { name: 'Fijian Dollar', value: 'fjd' }, - { name: 'Falkland Islands Pound', value: 'fkp' }, - { name: 'Georgian Lari', value: 'gel' }, - { name: 'Guernsey Pound', value: 'ggp' }, - { name: 'Ghanaian Cedi', value: 'ghs' }, - { name: 'Gibraltar Pound', value: 'gip' }, - { name: 'Gambian Dalasi', value: 'gmd' }, - { name: 'Guinean Franc', value: 'gnf' }, - { name: 'Guatemalan Quetzal', value: 'gtq' }, - { name: 'Guyanaese Dollar', value: 'gyd' }, - { name: 'Hong Kong Dollar', value: 'hkd' }, - { name: 'Honduran Lempira', value: 'hnl' }, - { name: 'Croatian Kuna', value: 'hrk' }, - { name: 'Haitian Gourde', value: 'htg' }, - { name: 'Hungarian Forint', value: 'huf' }, - { name: 'Indonesian Rupiah', value: 'idr' }, - { name: 'Israeli New Sheqel', value: 'ils' }, - { name: 'Manx pound', value: 'imp' }, - { name: 'Indian Rupee', value: 'inr' }, - { name: 'Iraqi Dinar', value: 'iqd' }, - { name: 'Iranian Rial', value: 'irr' }, - { name: 'Icelandic Króna', value: 'isk' }, - { name: 'Jersey Pound', value: 'jep' }, - { name: 'Jamaican Dollar', value: 'jmd' }, - { name: 'Jordanian Dinar', value: 'jod' }, - { name: 'Japanese Yen', value: 'jpy' }, - { name: 'Kenyan Shilling', value: 'kes' }, - { name: 'Kyrgystani Som', value: 'kgs' }, - { name: 'Cambodian Riel', value: 'khr' }, - { name: 'Comorian Franc', value: 'kmf' }, - { name: 'North Korean Won', value: 'kpw' }, - { name: 'South Korean Won', value: 'krw' }, - { name: 'Kuwaiti Dinar', value: 'kwd' }, - { name: 'Cayman Islands Dollar', value: 'kyd' }, - { name: 'Kazakhstani Tenge', value: 'kzt' }, - { name: 'Laotian Kip', value: 'lak' }, - { name: 'Lebanese Pound', value: 'lbp' }, - { name: 'Sri Lankan Rupee', value: 'lkr' }, - { name: 'Liberian Dollar', value: 'lrd' }, - { name: 'Lesotho Loti', value: 'lsl' }, - { name: 'Libyan Dinar', value: 'lyd' }, - { name: 'Moroccan Dirham', value: 'mad' }, - { name: 'Moldovan Leu', value: 'mdl' }, - { name: 'Malagasy Ariary', value: 'mga' }, - { name: 'Macedonian Denar', value: 'mkd' }, - { name: 'Myanma Kyat', value: 'mmk' }, - { name: 'Mongolian Tugrik', value: 'mnt' }, - { name: 'Macanese Pataca', value: 'mop' }, - { name: 'Mauritanian Ouguiya (pre-2018)', value: 'mro' }, - { name: 'Mauritanian Ouguiya', value: 'mru' }, - { name: 'Mauritian Rupee', value: 'mur' }, - { name: 'Maldivian Rufiyaa', value: 'mvr' }, - { name: 'Malawian Kwacha', value: 'mwk' }, - { name: 'Mexican Peso', value: 'mxn' }, - { name: 'Malaysian Ringgit', value: 'myr' }, - { name: 'Mozambican Metical', value: 'mzn' }, - { name: 'Namibian Dollar', value: 'nad' }, - { name: 'Nigerian Naira', value: 'ngn' }, - { name: 'Nicaraguan Córdoba', value: 'nio' }, - { name: 'Norwegian Krone', value: 'nok' }, - { name: 'Nepalese Rupee', value: 'npr' }, - { name: 'New Zealand Dollar', value: 'nzd' }, - { name: 'Omani Rial', value: 'omr' }, - { name: 'Panamanian Balboa', value: 'pab' }, - { name: 'Peruvian Nuevo Sol', value: 'pen' }, - { name: 'Papua New Guinean Kina', value: 'pgk' }, - { name: 'Philippine Peso', value: 'php' }, - { name: 'Pakistani Rupee', value: 'pkr' }, - { name: 'Polish Zloty', value: 'pln' }, - { name: 'Paraguayan Guarani', value: 'pyg' }, - { name: 'Qatari Rial', value: 'qar' }, - { name: 'Romanian Leu', value: 'ron' }, - { name: 'Serbian Dinar', value: 'rsd' }, - { name: 'Russian Ruble', value: 'rub' }, - { name: 'Rwandan Franc', value: 'rwf' }, - { name: 'Saudi Riyal', value: 'sar' }, - { name: 'Solomon Islands Dollar', value: 'sbd' }, - { name: 'Seychellois Rupee', value: 'scr' }, - { name: 'Sudanese Pound', value: 'sdg' }, - { name: 'Swedish Krona', value: 'sek' }, - { name: 'Singapore Dollar', value: 'sgd' }, - { name: 'Saint Helena Pound', value: 'shp' }, - { name: 'Sierra Leonean Leone', value: 'sll' }, - { name: 'Somali Shilling', value: 'sos' }, - { name: 'Surinamese Dollar', value: 'srd' }, - { name: 'South Sudanese Pound', value: 'ssp' }, - { name: 'São Tomé and Príncipe Dobra (pre-2018)', value: 'std' }, - { name: 'São Tomé and Príncipe Dobra', value: 'stn' }, - { name: 'Salvadoran Colón', value: 'svc' }, - { name: 'Syrian Pound', value: 'syp' }, - { name: 'Swazi Lilangeni', value: 'szl' }, - { name: 'Thai Baht', value: 'thb' }, - { name: 'Tajikistani Somoni', value: 'tjs' }, - { name: 'Turkmenistani Manat', value: 'tmt' }, - { name: 'Tunisian Dinar', value: 'tnd' }, - { name: "Tongan Pa'anga", value: 'top' }, - { name: 'Turkish Lira', value: 'try' }, - { name: 'Trinidad and Tobago Dollar', value: 'ttd' }, - { name: 'New Taiwan Dollar', value: 'twd' }, - { name: 'Tanzanian Shilling', value: 'tzs' }, - { name: 'Ukrainian Hryvnia', value: 'uah' }, - { name: 'Ugandan Shilling', value: 'ugx' }, - { name: 'Uruguayan Peso', value: 'uyu' }, - { name: 'Uzbekistan Som', value: 'uzs' }, - { name: 'Venezuelan Bolívar Fuerte', value: 'vef' }, - { name: 'Vietnamese Dong', value: 'vnd' }, - { name: 'Vanuatu Vatu', value: 'vuv' }, - { name: 'Samoan Tala', value: 'wst' }, - { name: 'CFA Franc BEAC', value: 'xaf' }, - { name: 'Silver Ounce', value: 'xag' }, - { name: 'Gold Ounce', value: 'xau' }, - { name: 'East Caribbean Dollar', value: 'xcd' }, - { name: 'Special Drawing Rights', value: 'xdr' }, - { name: 'CFA Franc BCEAO', value: 'xof' }, - { name: 'Palladium Ounce', value: 'xpd' }, - { name: 'CFP Franc', value: 'xpf' }, - { name: 'Platinum Ounce', value: 'xpt' }, - { name: 'Yemeni Rial', value: 'yer' }, - { name: 'South African Rand', value: 'zar' }, - { name: 'Zambian Kwacha', value: 'zmw' }, - { name: 'Zimbabwean Dollar', value: 'zwl' } -// tslint:disable-next-line: semicolon -] \ No newline at end of file +const allCurrencies = [ + { name: 'Euro', value: 'eur' }, + { name: 'United States Dollar', value: 'usd' }, + { name: 'British Pound Sterling', value: 'gbp' }, + { name: 'Swiss Franc', value: 'chf' }, + { name: 'Renminbi', value: 'cny' }, + { name: '--------', value: '' }, + { name: 'United Arab Emirates Dirham', value: 'aed' }, + { name: 'Afghan Afghani', value: 'afn' }, + { name: 'Albanian Lek', value: 'all' }, + { name: 'Armenian Dram', value: 'amd' }, + { name: 'Netherlands Antillean Guilder', value: 'ang' }, + { name: 'Angolan Kwanza', value: 'aoa' }, + { name: 'Argentine Peso', value: 'ars' }, + { name: 'Australian Dollar', value: 'aud' }, + { name: 'Aruban Florin', value: 'awg' }, + { name: 'Azerbaijani Manat', value: 'azn' }, + { name: 'Bosnia-Herzegovina Convertible Mark', value: 'bam' }, + { name: 'Barbadian Dollar', value: 'bbd' }, + { name: 'Bangladeshi Taka', value: 'bdt' }, + { name: 'Bulgarian Lev', value: 'bgn' }, + { name: 'Bahraini Dinar', value: 'bhd' }, + { name: 'Burundian Franc', value: 'bif' }, + { name: 'Bermudan Dollar', value: 'bmd' }, + { name: 'Brunei Dollar', value: 'bnd' }, + { name: 'Bolivian Boliviano', value: 'bob' }, + { name: 'Brazilian Real', value: 'brl' }, + { name: 'Bahamian Dollar', value: 'bsd' }, + { name: 'Bitcoin', value: 'btc' }, + { name: 'Bhutanese Ngultrum', value: 'btn' }, + { name: 'Botswanan Pula', value: 'bwp' }, + { name: 'Belarusian Ruble', value: 'byn' }, + { name: 'Belize Dollar', value: 'bzd' }, + { name: 'Canadian Dollar', value: 'cad' }, + { name: 'Congolese Franc', value: 'cdf' }, + { name: 'Chilean Unit of Account (UF)', value: 'clf' }, + { name: 'Chilean Peso', value: 'clp' }, + { name: 'Chinese Yuan (Offshore)', value: 'cnh' }, + { name: 'Colombian Peso', value: 'cop' }, + { name: 'Costa Rican Colón', value: 'crc' }, + { name: 'Cuban Convertible Peso', value: 'cuc' }, + { name: 'Cuban Peso', value: 'cup' }, + { name: 'Cape Verdean Escudo', value: 'cve' }, + { name: 'Czech Republic Koruna', value: 'czk' }, + { name: 'Djiboutian Franc', value: 'djf' }, + { name: 'Danish Krone', value: 'dkk' }, + { name: 'Dominican Peso', value: 'dop' }, + { name: 'Algerian Dinar', value: 'dzd' }, + { name: 'Egyptian Pound', value: 'egp' }, + { name: 'Eritrean Nakfa', value: 'ern' }, + { name: 'Ethiopian Birr', value: 'etb' }, + { name: 'Fijian Dollar', value: 'fjd' }, + { name: 'Falkland Islands Pound', value: 'fkp' }, + { name: 'Georgian Lari', value: 'gel' }, + { name: 'Guernsey Pound', value: 'ggp' }, + { name: 'Ghanaian Cedi', value: 'ghs' }, + { name: 'Gibraltar Pound', value: 'gip' }, + { name: 'Gambian Dalasi', value: 'gmd' }, + { name: 'Guinean Franc', value: 'gnf' }, + { name: 'Guatemalan Quetzal', value: 'gtq' }, + { name: 'Guyanaese Dollar', value: 'gyd' }, + { name: 'Hong Kong Dollar', value: 'hkd' }, + { name: 'Honduran Lempira', value: 'hnl' }, + { name: 'Croatian Kuna', value: 'hrk' }, + { name: 'Haitian Gourde', value: 'htg' }, + { name: 'Hungarian Forint', value: 'huf' }, + { name: 'Indonesian Rupiah', value: 'idr' }, + { name: 'Israeli New Sheqel', value: 'ils' }, + { name: 'Manx pound', value: 'imp' }, + { name: 'Indian Rupee', value: 'inr' }, + { name: 'Iraqi Dinar', value: 'iqd' }, + { name: 'Iranian Rial', value: 'irr' }, + { name: 'Icelandic Króna', value: 'isk' }, + { name: 'Jersey Pound', value: 'jep' }, + { name: 'Jamaican Dollar', value: 'jmd' }, + { name: 'Jordanian Dinar', value: 'jod' }, + { name: 'Japanese Yen', value: 'jpy' }, + { name: 'Kenyan Shilling', value: 'kes' }, + { name: 'Kyrgystani Som', value: 'kgs' }, + { name: 'Cambodian Riel', value: 'khr' }, + { name: 'Comorian Franc', value: 'kmf' }, + { name: 'North Korean Won', value: 'kpw' }, + { name: 'South Korean Won', value: 'krw' }, + { name: 'Kuwaiti Dinar', value: 'kwd' }, + { name: 'Cayman Islands Dollar', value: 'kyd' }, + { name: 'Kazakhstani Tenge', value: 'kzt' }, + { name: 'Laotian Kip', value: 'lak' }, + { name: 'Lebanese Pound', value: 'lbp' }, + { name: 'Sri Lankan Rupee', value: 'lkr' }, + { name: 'Liberian Dollar', value: 'lrd' }, + { name: 'Lesotho Loti', value: 'lsl' }, + { name: 'Libyan Dinar', value: 'lyd' }, + { name: 'Moroccan Dirham', value: 'mad' }, + { name: 'Moldovan Leu', value: 'mdl' }, + { name: 'Malagasy Ariary', value: 'mga' }, + { name: 'Macedonian Denar', value: 'mkd' }, + { name: 'Myanma Kyat', value: 'mmk' }, + { name: 'Mongolian Tugrik', value: 'mnt' }, + { name: 'Macanese Pataca', value: 'mop' }, + { name: 'Mauritanian Ouguiya (pre-2018)', value: 'mro' }, + { name: 'Mauritanian Ouguiya', value: 'mru' }, + { name: 'Mauritian Rupee', value: 'mur' }, + { name: 'Maldivian Rufiyaa', value: 'mvr' }, + { name: 'Malawian Kwacha', value: 'mwk' }, + { name: 'Mexican Peso', value: 'mxn' }, + { name: 'Malaysian Ringgit', value: 'myr' }, + { name: 'Mozambican Metical', value: 'mzn' }, + { name: 'Namibian Dollar', value: 'nad' }, + { name: 'Nigerian Naira', value: 'ngn' }, + { name: 'Nicaraguan Córdoba', value: 'nio' }, + { name: 'Norwegian Krone', value: 'nok' }, + { name: 'Nepalese Rupee', value: 'npr' }, + { name: 'New Zealand Dollar', value: 'nzd' }, + { name: 'Omani Rial', value: 'omr' }, + { name: 'Panamanian Balboa', value: 'pab' }, + { name: 'Peruvian Nuevo Sol', value: 'pen' }, + { name: 'Papua New Guinean Kina', value: 'pgk' }, + { name: 'Philippine Peso', value: 'php' }, + { name: 'Pakistani Rupee', value: 'pkr' }, + { name: 'Polish Zloty', value: 'pln' }, + { name: 'Paraguayan Guarani', value: 'pyg' }, + { name: 'Qatari Rial', value: 'qar' }, + { name: 'Romanian Leu', value: 'ron' }, + { name: 'Serbian Dinar', value: 'rsd' }, + { name: 'Russian Ruble', value: 'rub' }, + { name: 'Rwandan Franc', value: 'rwf' }, + { name: 'Saudi Riyal', value: 'sar' }, + { name: 'Solomon Islands Dollar', value: 'sbd' }, + { name: 'Seychellois Rupee', value: 'scr' }, + { name: 'Sudanese Pound', value: 'sdg' }, + { name: 'Swedish Krona', value: 'sek' }, + { name: 'Singapore Dollar', value: 'sgd' }, + { name: 'Saint Helena Pound', value: 'shp' }, + { name: 'Sierra Leonean Leone', value: 'sll' }, + { name: 'Somali Shilling', value: 'sos' }, + { name: 'Surinamese Dollar', value: 'srd' }, + { name: 'South Sudanese Pound', value: 'ssp' }, + { name: 'São Tomé and Príncipe Dobra (pre-2018)', value: 'std' }, + { name: 'São Tomé and Príncipe Dobra', value: 'stn' }, + { name: 'Salvadoran Colón', value: 'svc' }, + { name: 'Syrian Pound', value: 'syp' }, + { name: 'Swazi Lilangeni', value: 'szl' }, + { name: 'Thai Baht', value: 'thb' }, + { name: 'Tajikistani Somoni', value: 'tjs' }, + { name: 'Turkmenistani Manat', value: 'tmt' }, + { name: 'Tunisian Dinar', value: 'tnd' }, + { name: "Tongan Pa'anga", value: 'top' }, + { name: 'Turkish Lira', value: 'try' }, + { name: 'Trinidad and Tobago Dollar', value: 'ttd' }, + { name: 'New Taiwan Dollar', value: 'twd' }, + { name: 'Tanzanian Shilling', value: 'tzs' }, + { name: 'Ukrainian Hryvnia', value: 'uah' }, + { name: 'Ugandan Shilling', value: 'ugx' }, + { name: 'Uruguayan Peso', value: 'uyu' }, + { name: 'Uzbekistan Som', value: 'uzs' }, + { name: 'Venezuelan Bolívar Fuerte', value: 'vef' }, + { name: 'Vietnamese Dong', value: 'vnd' }, + { name: 'Vanuatu Vatu', value: 'vuv' }, + { name: 'Samoan Tala', value: 'wst' }, + { name: 'CFA Franc BEAC', value: 'xaf' }, + { name: 'Silver Ounce', value: 'xag' }, + { name: 'Gold Ounce', value: 'xau' }, + { name: 'East Caribbean Dollar', value: 'xcd' }, + { name: 'Special Drawing Rights', value: 'xdr' }, + { name: 'CFA Franc BCEAO', value: 'xof' }, + { name: 'Palladium Ounce', value: 'xpd' }, + { name: 'CFP Franc', value: 'xpf' }, + { name: 'Platinum Ounce', value: 'xpt' }, + { name: 'Yemeni Rial', value: 'yer' }, + { name: 'South African Rand', value: 'zar' }, + { name: 'Zambian Kwacha', value: 'zmw' }, + { name: 'Zimbabwean Dollar', value: 'zwl' } + // tslint:disable-next-line: semicolon +]