From 40c2acd77b6068630fd5d22410cf62d3311d1792 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 22 Oct 2020 15:46:03 +0200 Subject: [PATCH] :shirt: Fix lint issue --- packages/cli/commands/start.ts | 2 +- packages/cli/config/index.ts | 108 ++-- packages/cli/src/ActiveExecutions.ts | 2 +- packages/cli/src/ActiveWorkflowRunner.ts | 14 +- packages/cli/src/CredentialsHelper.ts | 2 +- packages/cli/src/CredentialsOverwrites.ts | 2 +- packages/cli/src/Db.ts | 10 +- packages/cli/src/ExternalHooks.ts | 2 +- packages/cli/src/NodeTypes.ts | 2 +- packages/cli/src/ResponseHelper.ts | 4 +- packages/cli/src/Server.ts | 44 +- packages/cli/src/WebhookHelpers.ts | 6 +- .../cli/src/WorkflowExecuteAdditionalData.ts | 16 +- packages/cli/src/WorkflowHelpers.ts | 10 +- packages/cli/src/WorkflowRunner.ts | 2 +- packages/cli/src/WorkflowRunnerProcess.ts | 4 +- .../databases/mysqldb/CredentialsEntity.ts | 4 +- .../src/databases/mysqldb/WorkflowEntity.ts | 2 +- .../databases/postgresdb/CredentialsEntity.ts | 4 +- .../databases/postgresdb/WorkflowEntity.ts | 2 +- .../src/databases/sqlite/CredentialsEntity.ts | 4 +- .../src/databases/sqlite/WorkflowEntity.ts | 2 +- packages/cli/tslint.json | 24 + packages/core/src/Credentials.ts | 2 +- packages/core/src/Interfaces.ts | 2 +- packages/core/src/LoadNodeParameterOptions.ts | 2 +- packages/core/src/NodeExecuteFunctions.ts | 8 +- packages/core/src/UserSettings.ts | 2 +- packages/core/src/WorkflowExecute.ts | 26 +- packages/core/test/Credentials.test.ts | 118 ++--- packages/core/test/Helpers.ts | 16 +- packages/core/test/WorkflowExecute.test.ts | 248 ++++----- packages/core/tslint.json | 24 + .../src/components/PageContentWrapper.vue | 2 +- packages/editor-ui/tslint.json | 13 + packages/node-dev/src/Create.ts | 2 +- packages/node-dev/tslint.json | 24 + .../AcuitySchedulingOAuth2Api.credentials.ts | 2 +- .../credentials/DisqusApi.credentials.ts | 2 +- .../credentials/DriftApi.credentials.ts | 2 +- .../EventbriteOAuth2Api.credentials.ts | 2 +- .../credentials/FreshdeskApi.credentials.ts | 2 +- .../nodes-base/credentials/Ftp.credentials.ts | 2 +- .../credentials/GitlabApi.credentials.ts | 2 +- .../GitlabOAuth2Api.credentials.ts | 2 +- .../GoogleTasksOAuth2Api.credentials.ts | 2 +- .../credentials/HarvestApi.credentials.ts | 4 +- .../LinkedInOAuth2Api.credentials.ts | 2 +- .../credentials/MessageBirdApi.credentials.ts | 4 +- .../credentials/MicrosoftSql.credentials.ts | 16 +- .../credentials/MongoDb.credentials.ts | 14 +- .../credentials/OAuth1Api.credentials.ts | 6 +- .../credentials/PayPalApi.credentials.ts | 6 +- .../credentials/Postgres.credentials.ts | 2 +- .../nodes-base/credentials/S3.credentials.ts | 4 +- .../credentials/Signl4Api.credentials.ts | 2 +- .../credentials/SlackOAuth2Api.credentials.ts | 2 +- .../StravaOAuth2Api.credentials.ts | 2 +- .../SurveyMonkeyOAuth2Api.credentials.ts | 2 +- .../credentials/ZoomApi.credentials.ts | 4 +- .../credentials/ZoomOAuth2Api.credentials.ts | 12 +- .../ActiveCampaign/ActiveCampaign.node.ts | 4 +- .../ActiveCampaignTrigger.node.ts | 8 +- .../ActiveCampaign/ConnectionDescription.ts | 2 +- .../ActiveCampaign/ContactDescription.ts | 4 +- .../nodes/ActiveCampaign/DealDescription.ts | 4 +- .../ActiveCampaign/EcomOrderDescription.ts | 6 +- .../nodes/ActiveCampaign/GenericFunctions.ts | 2 +- .../nodes/ActiveCampaign/TagDescription.ts | 2 +- .../nodes/ActiveCampaign/currencies.ts | 2 +- .../AcuityScheduling/GenericFunctions.ts | 2 +- .../nodes/Affinity/Affinity.node.ts | 2 +- .../nodes/Affinity/GenericFunctions.ts | 2 +- .../nodes/Affinity/OrganizationDescription.ts | 16 +- .../nodes/Affinity/PersonDescription.ts | 20 +- .../nodes/AgileCrm/AgileCrm.node.ts | 58 +- .../nodes/AgileCrm/CompanyDescription.ts | 20 +- .../nodes/AgileCrm/ContactDescription.ts | 16 +- .../nodes/AgileCrm/DealDescription.ts | 14 +- .../nodes/AgileCrm/GenericFunctions.ts | 2 +- .../nodes/Airtable/Airtable.node.ts | 16 +- .../nodes/Airtable/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Amqp/Amqp.node.ts | 4 +- .../nodes-base/nodes/Amqp/AmqpTrigger.node.ts | 10 +- packages/nodes-base/nodes/Asana/Asana.node.ts | 2 +- .../nodes/Asana/AsanaTrigger.node.ts | 2 +- .../nodes/Automizy/Automizy.node.ts | 36 +- .../nodes/Automizy/ContactDescription.ts | 2 +- .../nodes-base/nodes/Aws/AwsLambda.node.ts | 6 +- packages/nodes-base/nodes/Aws/AwsSns.node.ts | 4 +- .../nodes/Aws/AwsSnsTrigger.node.ts | 2 +- .../Aws/Rekognition/AwsRekognition.node.ts | 8 +- .../nodes-base/nodes/Aws/S3/AwsS3.node.ts | 6 +- .../nodes/Aws/S3/FileDescription.ts | 42 +- .../nodes/Aws/S3/FolderDescription.ts | 4 +- .../nodes-base/nodes/Aws/SES/AwsSes.node.ts | 4 +- .../nodes/Bannerbear/ImageDescription.ts | 4 +- .../nodes/Bannerbear/TemplateDescription.ts | 2 +- .../nodes/Bitbucket/BitbucketTrigger.node.ts | 34 +- .../nodes/Bitbucket/GenericFunctions.ts | 2 +- .../nodes/Bitly/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Bitly/LinkDescription.ts | 8 +- .../nodes-base/nodes/Box/BoxTrigger.node.ts | 4 +- .../nodes-base/nodes/Box/FileDescription.ts | 2 +- .../nodes/Calendly/GenericFunctions.ts | 2 +- .../nodes/Chargebee/Chargebee.node.ts | 52 +- .../nodes/Chargebee/ChargebeeTrigger.node.ts | 4 +- .../nodes/CircleCi/CircleCi.node.ts | 2 +- .../nodes/CircleCi/GenericFunctions.ts | 2 +- .../nodes/Clearbit/Clearbit.node.ts | 4 +- .../nodes/Clearbit/GenericFunctions.ts | 2 +- .../nodes/ClickUp/FolderDescription.ts | 10 +- .../nodes/ClickUp/GenericFunctions.ts | 2 +- .../nodes/ClickUp/ListDescription.ts | 14 +- .../nodes/ClickUp/TaskDescription.ts | 10 +- .../nodes/ClickUp/TimeEntryDescription.ts | 10 +- .../nodes/Clockify/Clockify.node.ts | 6 +- .../nodes/Clockify/ClockifyTrigger.node.ts | 6 +- .../nodes-base/nodes/Clockify/CommonDtos.ts | 2 +- .../nodes/Clockify/ProjectDescription.ts | 2 +- .../nodes/Clockify/ProjectInterfaces.ts | 4 +- .../nodes-base/nodes/Clockify/UserDtos.ts | 2 +- .../nodes/Cockpit/CollectionDescription.ts | 12 +- .../nodes/Cockpit/CollectionFunctions.ts | 2 +- .../nodes/Cockpit/FormDescription.ts | 10 +- .../nodes-base/nodes/Cockpit/FormFunctions.ts | 2 +- .../nodes/Cockpit/GenericFunctions.ts | 4 +- .../nodes/Cockpit/SingletonDescription.ts | 4 +- packages/nodes-base/nodes/Coda/Coda.node.ts | 8 +- .../nodes/Coda/ControlDescription.ts | 8 +- .../nodes/Coda/FormulaDescription.ts | 8 +- .../nodes-base/nodes/Coda/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Coda/TableDescription.ts | 48 +- .../nodes-base/nodes/Coda/ViewDescription.ts | 46 +- .../nodes/CoinGecko/CoinDescription.ts | 24 +- .../nodes/CoinGecko/CoinGecko.node.ts | 2 +- .../nodes/Contentful/AssetDescription.ts | 4 +- .../Contentful/ContentTypeDescription.ts | 2 +- .../nodes/Contentful/Contentful.node.ts | 10 +- .../nodes/Contentful/EntryDescription.ts | 4 +- .../nodes/Contentful/GenericFunctions.ts | 2 +- .../nodes/Contentful/LocaleDescription.ts | 2 +- .../Contentful/SearchParameterDescription.ts | 6 +- .../nodes/ConvertKit/ConvertKit.node.ts | 8 +- .../ConvertKit/ConvertKitTrigger.node.ts | 4 +- .../nodes/Copper/CopperTrigger.node.ts | 2 +- .../nodes/Copper/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Cron.node.ts | 10 +- packages/nodes-base/nodes/Crypto.node.ts | 30 +- .../nodes/CustomerIo/CampaignDescription.ts | 14 +- .../nodes/CustomerIo/CustomerDescription.ts | 6 +- .../nodes/CustomerIo/CustomerIo.node.ts | 4 +- .../CustomerIo/CustomerIoTrigger.node.ts | 4 +- .../nodes/CustomerIo/EventDescription.ts | 14 +- .../nodes/CustomerIo/SegmentDescription.ts | 4 +- packages/nodes-base/nodes/DateTime.node.ts | 6 +- .../nodes-base/nodes/Discord/Discord.node.ts | 6 +- .../nodes-base/nodes/Disqus/Disqus.node.ts | 14 +- .../nodes/Disqus/GenericFunctions.ts | 6 +- .../nodes/Drift/ContactDescription.ts | 8 +- .../nodes/Drift/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Dropbox/Dropbox.node.ts | 36 +- packages/nodes-base/nodes/EditImage.node.ts | 42 +- .../nodes-base/nodes/EmailReadImap.node.ts | 18 +- packages/nodes-base/nodes/EmailSend.node.ts | 4 +- .../nodes-base/nodes/ErrorTrigger.node.ts | 10 +- .../Eventbrite/EventbriteTrigger.node.ts | 36 +- .../nodes/Eventbrite/GenericFunctions.ts | 2 +- .../nodes-base/nodes/ExecuteCommand.node.ts | 4 +- .../nodes-base/nodes/ExecuteWorkflow.node.ts | 2 +- .../nodes/Facebook/FacebookGraphApi.node.ts | 4 +- .../nodes/FileMaker/FileMaker.node.ts | 64 +-- .../nodes/FileMaker/GenericFunctions.ts | 20 +- packages/nodes-base/nodes/Flow/Flow.node.ts | 4 +- .../nodes-base/nodes/Flow/FlowTrigger.node.ts | 30 +- .../nodes-base/nodes/Flow/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Flow/TaskDescription.ts | 36 +- .../nodes/Freshdesk/ContactDescription.ts | 2 +- .../nodes/Freshdesk/Freshdesk.node.ts | 62 +-- .../nodes/Freshdesk/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Ftp.node.ts | 6 +- packages/nodes-base/nodes/Function.node.ts | 2 +- .../nodes-base/nodes/FunctionItem.node.ts | 4 +- .../nodes/Github/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Github/Github.node.ts | 8 +- .../nodes/Github/GithubTrigger.node.ts | 4 +- .../nodes/Gitlab/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Gitlab/Gitlab.node.ts | 4 +- .../nodes/Gitlab/GitlabTrigger.node.ts | 20 +- .../nodes/Google/Calendar/EventDescription.ts | 76 +-- .../nodes/Google/Calendar/GenericFunctions.ts | 2 +- .../Google/Calendar/GoogleCalendar.node.ts | 36 +- .../Google/Contacts/ContactDescription.ts | 28 +- .../nodes/Google/Contacts/GenericFunctions.ts | 2 +- .../Google/Contacts/GoogleContacts.node.ts | 36 +- .../nodes/Google/Drive/GenericFunctions.ts | 2 +- .../nodes/Google/Drive/GoogleDrive.node.ts | 76 +-- .../Google/GSuiteAdmin/GSuiteAdmin.node.ts | 8 +- .../Google/GSuiteAdmin/GenericFunctions.ts | 2 +- .../Google/GSuiteAdmin/UserDescription.ts | 18 +- .../nodes/Google/Gmail/DraftDescription.ts | 18 +- .../nodes/Google/Gmail/Gmail.node.ts | 4 +- .../nodes/Google/Gmail/LabelDescription.ts | 4 +- .../nodes/Google/Gmail/MessageDescription.ts | 24 +- .../Google/Gmail/MessageLabelDescription.ts | 4 +- .../nodes/Google/Sheet/GenericFunctions.ts | 4 +- .../nodes/Google/Sheet/GoogleSheet.ts | 2 +- .../nodes/Google/Sheet/GoogleSheets.node.ts | 54 +- .../nodes/Google/Task/GenericFunctions.ts | 4 +- .../nodes/Google/Task/GoogleTasks.node.ts | 22 +- .../nodes/Google/Task/TaskDescription.ts | 18 +- .../Google/Translate/GenericFunctions.ts | 4 +- .../Google/Translate/GoogleTranslate.node.ts | 4 +- .../Google/YouTube/ChannelDescription.ts | 8 +- .../nodes/Google/YouTube/CountryCodes.ts | 500 +++++++++--------- .../nodes/Google/YouTube/GenericFunctions.ts | 2 +- .../Google/YouTube/PlaylistDescription.ts | 4 +- .../Google/YouTube/PlaylistItemDescription.ts | 6 +- .../YouTube/VideoCategoryDescription.ts | 4 +- .../nodes/Google/YouTube/VideoDescription.ts | 6 +- .../nodes/Google/YouTube/YouTube.node.ts | 28 +- .../nodes-base/nodes/GraphQL/GraphQL.node.ts | 12 +- .../nodes/Gumroad/GenericFunctions.ts | 2 +- .../nodes/Gumroad/GumroadTrigger.node.ts | 2 +- .../nodes/Harvest/ClientDescription.ts | 22 +- .../nodes/Harvest/ContactDescription.ts | 28 +- .../nodes/Harvest/EstimateDescription.ts | 40 +- .../nodes/Harvest/ExpenseDescription.ts | 22 +- .../nodes/Harvest/GenericFunctions.ts | 8 +- .../nodes-base/nodes/Harvest/Harvest.node.ts | 6 +- .../nodes/Harvest/InvoiceDescription.ts | 56 +- .../nodes/Harvest/ProjectDescription.ts | 58 +- .../nodes/Harvest/TaskDescription.ts | 20 +- .../nodes/Harvest/UserDescription.ts | 64 +-- .../HelpScout/ConversationDescription.ts | 28 +- .../nodes/HelpScout/CountriesCodes.ts | 500 +++++++++--------- .../nodes/HelpScout/CustomerDescription.ts | 4 +- .../nodes/HelpScout/GenericFunctions.ts | 2 +- .../nodes/HelpScout/ThreadDescription.ts | 12 +- .../nodes/HtmlExtract/HtmlExtract.node.ts | 4 +- packages/nodes-base/nodes/HttpRequest.node.ts | 46 +- .../nodes/Hubspot/CompanyDescription.ts | 28 +- .../nodes/Hubspot/ContactDescription.ts | 38 +- .../nodes/Hubspot/DealDescription.ts | 14 +- .../nodes-base/nodes/Hubspot/Hubspot.node.ts | 46 +- .../nodes/Hubspot/TicketDescription.ts | 12 +- .../nodes/Hunter/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Hunter/Hunter.node.ts | 8 +- packages/nodes-base/nodes/If.node.ts | 30 +- .../nodes/Intercom/CompanyDescription.ts | 6 +- .../nodes/Intercom/GenericFunctions.ts | 2 +- .../nodes/Intercom/Intercom.node.ts | 2 +- .../nodes/Intercom/LeadDescription.ts | 8 +- .../nodes/Intercom/UserDescription.ts | 18 +- packages/nodes-base/nodes/Interval.node.ts | 8 +- .../nodes/InvoiceNinja/ClientDescription.ts | 2 +- .../nodes/InvoiceNinja/ExpenseDescription.ts | 2 +- .../nodes/InvoiceNinja/GenericFunctions.ts | 2 +- .../nodes/InvoiceNinja/ISOCountryCodes.ts | 500 +++++++++--------- .../nodes-base/nodes/Jira/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Jira/IssueDescription.ts | 38 +- packages/nodes-base/nodes/Jira/Jira.node.ts | 8 +- .../nodes-base/nodes/Jira/JiraTrigger.node.ts | 30 +- .../nodes/JotForm/GenericFunctions.ts | 2 +- .../nodes/JotForm/JotFormTrigger.node.ts | 4 +- .../nodes/Keap/CompanyDescription.ts | 4 +- .../nodes/Keap/ContactDescription.ts | 6 +- .../nodes/Keap/ContactNoteDescription.ts | 2 +- .../nodes/Keap/EcommerceOrderDescripion.ts | 2 +- .../nodes-base/nodes/Keap/EmailDescription.ts | 2 +- .../nodes-base/nodes/Keap/FileDescription.ts | 8 +- .../nodes-base/nodes/Keap/GenericFunctions.ts | 2 +- .../nodes/LinkedIn/GenericFunctions.ts | 2 +- .../nodes/LinkedIn/LinkedIn.node.ts | 22 +- .../nodes/LinkedIn/PostDescription.ts | 6 +- .../nodes/Mailchimp/GenericFunctions.ts | 2 +- .../nodes/Mailchimp/Mailchimp.node.ts | 50 +- .../nodes/Mailchimp/MailchimpTrigger.node.ts | 8 +- .../nodes-base/nodes/Mailgun/Mailgun.node.ts | 6 +- .../nodes/Mailjet/EmailDescription.ts | 26 +- .../nodes/Mailjet/GenericFunctions.ts | 2 +- .../nodes/Mailjet/SmsDescription.ts | 6 +- .../nodes/Mandrill/GenericFunctions.ts | 6 +- .../nodes/Mandrill/Mandrill.node.ts | 14 +- .../nodes/Matrix/GenericFunctions.ts | 4 +- .../nodes-base/nodes/Matrix/Matrix.node.ts | 4 +- .../nodes/Mattermost/GenericFunctions.ts | 4 +- .../nodes/Mattermost/Mattermost.node.ts | 50 +- .../nodes/Mautic/ContactDescription.ts | 6 +- .../nodes/Mautic/GenericFunctions.ts | 2 +- .../nodes/Mautic/MauticTrigger.node.ts | 4 +- .../nodes-base/nodes/Medium/Medium.node.ts | 10 +- packages/nodes-base/nodes/Merge.node.ts | 10 +- .../nodes/MessageBird/GenericFunctions.ts | 2 +- .../nodes/MessageBird/MessageBird.node.ts | 2 +- .../nodes/Microsoft/Excel/GenericFunctions.ts | 2 +- .../Microsoft/Excel/MicrosoftExcel.node.ts | 2 +- .../nodes/Microsoft/Excel/TableDescription.ts | 20 +- .../Microsoft/Excel/WorkbookDescription.ts | 4 +- .../Microsoft/Excel/WorksheetDescription.ts | 10 +- .../Microsoft/OneDrive/FileDescription.ts | 2 +- .../nodes/Microsoft/Sql/GenericFunctions.ts | 12 +- .../nodes/Microsoft/Sql/MicrosoftSql.node.ts | 26 +- .../nodes/Microsoft/Teams/GenericFunctions.ts | 2 +- .../Microsoft/Teams/MicrosoftTeams.node.ts | 2 +- .../nodes-base/nodes/Mindee/Mindee.node.ts | 14 +- .../nodes-base/nodes/Mocean/Mocean.node.ts | 16 +- .../nodes/MondayCom/BoardItemDescription.ts | 14 +- .../nodes/MondayCom/GenericFunctions.ts | 2 +- .../nodes-base/nodes/MongoDb/MongoDb.node.ts | 6 +- .../nodes/MongoDb/mongo.node.options.ts | 56 +- .../nodes/MongoDb/mongo.node.utils.ts | 6 +- .../nodes-base/nodes/MoveBinaryData.node.ts | 4 +- .../nodes/Msg91/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Msg91/Msg91.node.ts | 4 +- packages/nodes-base/nodes/MySql/MySql.node.ts | 16 +- .../nodes/NextCloud/NextCloud.node.ts | 30 +- .../nodes-base/nodes/OpenWeatherMap.node.ts | 4 +- .../nodes/Paddle/CouponDescription.ts | 198 +++---- .../nodes/Paddle/GenericFunctions.ts | 4 +- .../nodes/Paddle/OrderDescription.ts | 2 +- .../nodes-base/nodes/Paddle/Paddle.node.ts | 4 +- .../nodes/Paddle/PaymentDescription.ts | 16 +- .../nodes/Paddle/PlanDescription.ts | 2 +- .../nodes/Paddle/ProductDescription.ts | 2 +- .../nodes/Paddle/UserDescription.ts | 22 +- .../nodes/PagerDuty/GenericFunctions.ts | 2 +- .../nodes/PagerDuty/IncidentDescription.ts | 6 +- .../nodes/PagerDuty/LogEntryDescription.ts | 2 +- .../nodes/PagerDuty/UserDescription.ts | 2 +- .../nodes/PayPal/GenericFunctions.ts | 4 +- .../nodes-base/nodes/PayPal/PayPal.node.ts | 2 +- .../nodes/PayPal/PayPalTrigger.node.ts | 8 +- .../nodes/PayPal/PaymentDescription.ts | 32 +- .../nodes/PhilipsHue/GenericFunctions.ts | 2 +- .../nodes/PhilipsHue/LightDescription.ts | 6 +- .../nodes/PhilipsHue/PhilipsHue.node.ts | 8 +- .../nodes/Pipedrive/GenericFunctions.ts | 2 +- .../nodes/Pipedrive/Pipedrive.node.ts | 48 +- .../nodes/Pipedrive/PipedriveTrigger.node.ts | 14 +- .../nodes/Postgres/Postgres.node.functions.ts | 6 +- .../nodes/Postmark/GenericFunctions.ts | 4 +- .../nodes/Postmark/PostmarkTrigger.node.ts | 18 +- .../nodes/Pushover/Pushover.node.ts | 4 +- .../nodes-base/nodes/QuestDb/QuestDb.node.ts | 2 +- .../nodes-base/nodes/ReadBinaryFile.node.ts | 2 +- .../nodes-base/nodes/ReadBinaryFiles.node.ts | 4 +- packages/nodes-base/nodes/ReadPdf.node.ts | 4 +- packages/nodes-base/nodes/Redis/Redis.node.ts | 28 +- packages/nodes-base/nodes/RenameKeys.node.ts | 6 +- .../nodes/Rocketchat/GenericFunctions.ts | 2 +- .../nodes/Rocketchat/Rocketchat.node.ts | 40 +- .../nodes-base/nodes/Rundeck/Rundeck.node.ts | 4 +- .../nodes-base/nodes/Rundeck/RundeckApi.ts | 4 +- .../nodes-base/nodes/S3/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/S3/S3.node.ts | 4 +- .../nodes/Salesforce/AccountDescription.ts | 16 +- .../nodes/Salesforce/AttachmentDescription.ts | 14 +- .../nodes/Salesforce/CaseDescription.ts | 12 +- .../nodes/Salesforce/ContactDescription.ts | 22 +- .../nodes/Salesforce/FlowDescription.ts | 10 +- .../nodes/Salesforce/GenericFunctions.ts | 2 +- .../nodes/Salesforce/LeadDescription.ts | 24 +- .../Salesforce/OpportunityDescription.ts | 24 +- .../nodes/Salesforce/TaskDescription.ts | 84 +-- .../nodes/Salesforce/UserDescription.ts | 16 +- .../nodes/Salesmate/ActivityDescription.ts | 8 +- .../nodes/Salesmate/CompanyDescription.ts | 8 +- .../nodes/Salesmate/DealDescription.ts | 8 +- .../nodes/Salesmate/GenericFunctions.ts | 2 +- .../nodes/Salesmate/Salesmate.node.ts | 6 +- .../nodes/Segment/GenericFunctions.ts | 2 +- .../nodes/Segment/GroupDescription.ts | 12 +- .../nodes/Segment/IdentifyDescription.ts | 12 +- .../nodes-base/nodes/Segment/Segment.node.ts | 2 +- .../nodes/Segment/TrackDescription.ts | 44 +- .../nodes/Sendy/CampaignDescription.ts | 2 +- packages/nodes-base/nodes/Sendy/Sendy.node.ts | 14 +- .../nodes/SentryIo/EventDescription.ts | 2 +- .../nodes/SentryIo/GenericFunctions.ts | 2 +- .../nodes/SentryIo/IssueDescription.ts | 20 +- .../nodes/SentryIo/OrganizationDescription.ts | 6 +- .../nodes/SentryIo/ProjectDescription.ts | 4 +- .../nodes/SentryIo/ReleaseDescription.ts | 26 +- .../nodes/SentryIo/SentryIo.node.ts | 2 +- .../nodes/SentryIo/TeamDescription.ts | 10 +- packages/nodes-base/nodes/Set.node.ts | 8 +- .../nodes/Shopify/GenericFunctions.ts | 2 +- .../nodes/Shopify/ProductDescription.ts | 4 +- .../nodes/Shopify/ShopifyTrigger.node.ts | 6 +- .../nodes-base/nodes/Signl4/Signl4.node.ts | 8 +- .../nodes/Slack/ChannelDescription.ts | 60 +-- .../nodes-base/nodes/Slack/FileDescription.ts | 14 +- .../nodes/Slack/GenericFunctions.ts | 4 +- .../nodes/Slack/MessageDescription.ts | 34 +- packages/nodes-base/nodes/Slack/Slack.node.ts | 4 +- .../nodes-base/nodes/Slack/StarDescription.ts | 4 +- packages/nodes-base/nodes/Sms77/Sms77.node.ts | 2 +- .../nodes/Spotify/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Spotify/Spotify.node.ts | 28 +- .../nodes-base/nodes/SpreadsheetFile.node.ts | 14 +- packages/nodes-base/nodes/SseTrigger.node.ts | 2 +- .../nodes/Strava/ActivityDescription.ts | 10 +- .../nodes/Strava/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Strava/Strava.node.ts | 2 +- .../nodes/Strava/StravaTrigger.node.ts | 2 +- .../nodes/Stripe/StripeTrigger.node.ts | 306 +++++------ packages/nodes-base/nodes/Stripe/helpers.ts | 2 +- .../nodes/SurveyMonkey/GenericFunctions.ts | 2 +- .../SurveyMonkey/SurveyMonkeyTrigger.node.ts | 6 +- packages/nodes-base/nodes/Switch.node.ts | 40 +- .../nodes/Taiga/GenericFunctions.ts | 6 +- .../nodes/Taiga/TaigaTrigger.node.ts | 2 +- .../nodes/Taiga/issueOperationFields.ts | 4 +- .../nodes/Telegram/Telegram.node.ts | 36 +- .../nodes/Telegram/TelegramTrigger.node.ts | 6 +- .../nodes/Todoist/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Todoist/Todoist.node.ts | 4 +- .../nodes/Toggl/GenericFunctions.ts | 2 +- .../nodes/Toggl/TogglTrigger.node.ts | 6 +- .../nodes/TravisCi/BuildDescription.ts | 2 +- .../nodes/TravisCi/GenericFunctions.ts | 2 +- .../nodes/TravisCi/TravisCi.node.ts | 2 +- .../nodes/Trello/AttachmentDescription.ts | 2 +- .../nodes/Trello/BoardDescription.ts | 2 +- .../nodes/Trello/ChecklistDescription.ts | 2 +- .../nodes/Trello/LabelDescription.ts | 10 +- .../nodes/Trello/ListDescription.ts | 56 +- .../nodes-base/nodes/Trello/Trello.node.ts | 8 +- .../nodes/Twilio/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Twilio/Twilio.node.ts | 2 +- .../nodes/Twitter/GenericFunctions.ts | 2 +- .../nodes/Twitter/TweetDescription.ts | 4 +- .../nodes-base/nodes/Twitter/Twitter.node.ts | 4 +- .../nodes/Uplead/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Uplead/Uplead.node.ts | 4 +- .../nodes-base/nodes/Vero/EventDescripion.ts | 14 +- .../nodes-base/nodes/Vero/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Vero/UserDescription.ts | 28 +- packages/nodes-base/nodes/Vero/Vero.node.ts | 2 +- .../nodes-base/nodes/Vonage/Vonage.node.ts | 4 +- .../nodes/Webflow/GenericFunctions.ts | 2 +- packages/nodes-base/nodes/Webhook.node.ts | 18 +- .../nodes/Wekan/BoardDescription.ts | 2 +- .../nodes/Wekan/CardCommentDescription.ts | 8 +- .../nodes-base/nodes/Wekan/CardDescription.ts | 32 +- .../nodes/Wekan/ChecklistDescription.ts | 10 +- .../nodes/Wekan/ChecklistItemDescription.ts | 12 +- .../nodes/Wekan/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Wekan/ListDescription.ts | 26 +- .../nodes/WooCommerce/GenericFunctions.ts | 2 +- .../nodes/WooCommerce/OrderDescription.ts | 30 +- .../nodes/WooCommerce/ProductDescription.ts | 20 +- .../nodes/WooCommerce/WooCommerce.node.ts | 2 +- .../WooCommerce/WooCommerceTrigger.node.ts | 2 +- .../nodes/Wordpress/GenericFunctions.ts | 2 +- .../nodes/Wordpress/PostDescription.ts | 18 +- .../nodes/Wordpress/UserDescription.ts | 26 +- .../nodes-base/nodes/WriteBinaryFile.node.ts | 2 +- .../nodes/Wufoo/GenericFunctions.ts | 2 +- .../nodes/Wufoo/WufooTrigger.node.ts | 2 +- .../nodes-base/nodes/Xero/GenericFunctions.ts | 2 +- .../nodes/Xero/InvoiceDescription.ts | 6 +- packages/nodes-base/nodes/Xero/Xero.node.ts | 2 +- packages/nodes-base/nodes/Xml.node.ts | 6 +- .../nodes/Zendesk/ConditionDescription.ts | 30 +- .../nodes/Zendesk/TicketDescription.ts | 2 +- .../nodes-base/nodes/Zendesk/Zendesk.node.ts | 2 +- .../nodes/Zendesk/ZendeskTrigger.node.ts | 14 +- .../nodes-base/nodes/Zoho/GenericFunctions.ts | 2 +- .../nodes-base/nodes/Zoho/LeadDescription.ts | 14 +- .../nodes-base/nodes/Zoom/GenericFunctions.ts | 4 +- .../nodes/Zoom/MeetingDescription.ts | 2 +- .../Zoom/MeetingRegistrantDescription.ts | 6 +- .../nodes/Zoom/WebinarDescription.ts | 8 +- packages/nodes-base/nodes/Zoom/Zoom.node.ts | 14 +- .../nodes/Zulip/GenericFunctions.ts | 2 +- .../nodes/Zulip/MessageDescription.ts | 14 +- .../nodes/Zulip/StreamDescription.ts | 32 +- .../nodes-base/nodes/Zulip/UserDescription.ts | 10 +- packages/nodes-base/nodes/Zulip/Zulip.node.ts | 8 +- .../nodes-base/nodes/utils/allCurrencies.ts | 2 +- packages/nodes-base/tslint.json | 2 +- packages/workflow/src/Expression.ts | 4 +- packages/workflow/src/NodeHelpers.ts | 14 +- packages/workflow/src/Workflow.ts | 4 +- packages/workflow/src/WorkflowDataProxy.ts | 14 +- packages/workflow/test/Helpers.ts | 18 +- packages/workflow/test/NodeHelpers.test.ts | 122 ++--- packages/workflow/test/Workflow.test.ts | 182 +++---- packages/workflow/tslint.json | 24 + 491 files changed, 4045 insertions(+), 3936 deletions(-) diff --git a/packages/cli/commands/start.ts b/packages/cli/commands/start.ts index b8d377471..8e14b98e2 100644 --- a/packages/cli/commands/start.ts +++ b/packages/cli/commands/start.ts @@ -10,8 +10,8 @@ import * as config from '../config'; import { ActiveExecutions, ActiveWorkflowRunner, - CredentialTypes, CredentialsOverwrites, + CredentialTypes, Db, ExternalHooks, GenericHelpers, diff --git a/packages/cli/config/index.ts b/packages/cli/config/index.ts index f6d82afaf..e654b50d0 100644 --- a/packages/cli/config/index.ts +++ b/packages/cli/config/index.ts @@ -10,58 +10,58 @@ const config = convict({ doc: 'Type of database to use', format: ['sqlite', 'mariadb', 'mongodb', 'mysqldb', 'postgresdb'], default: 'sqlite', - env: 'DB_TYPE' + env: 'DB_TYPE', }, mongodb: { connectionUrl: { doc: 'MongoDB Connection URL', format: '*', default: 'mongodb://user:password@localhost:27017/database', - env: 'DB_MONGODB_CONNECTION_URL' - } + env: 'DB_MONGODB_CONNECTION_URL', + }, }, tablePrefix: { doc: 'Prefix for table names', format: '*', default: '', - env: 'DB_TABLE_PREFIX' + env: 'DB_TABLE_PREFIX', }, postgresdb: { database: { doc: 'PostgresDB Database', format: String, default: 'n8n', - env: 'DB_POSTGRESDB_DATABASE' + env: 'DB_POSTGRESDB_DATABASE', }, host: { doc: 'PostgresDB Host', format: String, default: 'localhost', - env: 'DB_POSTGRESDB_HOST' + env: 'DB_POSTGRESDB_HOST', }, password: { doc: 'PostgresDB Password', format: String, default: '', - env: 'DB_POSTGRESDB_PASSWORD' + env: 'DB_POSTGRESDB_PASSWORD', }, port: { doc: 'PostgresDB Port', format: Number, default: 5432, - env: 'DB_POSTGRESDB_PORT' + env: 'DB_POSTGRESDB_PORT', }, user: { doc: 'PostgresDB User', format: String, default: 'root', - env: 'DB_POSTGRESDB_USER' + env: 'DB_POSTGRESDB_USER', }, schema: { doc: 'PostgresDB Schema', format: String, default: 'public', - env: 'DB_POSTGRESDB_SCHEMA' + env: 'DB_POSTGRESDB_SCHEMA', }, ssl: { @@ -89,7 +89,7 @@ const config = convict({ default: true, env: 'DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED', }, - } + }, }, mysqldb: { @@ -97,31 +97,31 @@ const config = convict({ doc: 'MySQL Database', format: String, default: 'n8n', - env: 'DB_MYSQLDB_DATABASE' + env: 'DB_MYSQLDB_DATABASE', }, host: { doc: 'MySQL Host', format: String, default: 'localhost', - env: 'DB_MYSQLDB_HOST' + env: 'DB_MYSQLDB_HOST', }, password: { doc: 'MySQL Password', format: String, default: '', - env: 'DB_MYSQLDB_PASSWORD' + env: 'DB_MYSQLDB_PASSWORD', }, port: { doc: 'MySQL Port', format: Number, default: 3306, - env: 'DB_MYSQLDB_PORT' + env: 'DB_MYSQLDB_PORT', }, user: { doc: 'MySQL User', format: String, default: 'root', - env: 'DB_MYSQLDB_USER' + env: 'DB_MYSQLDB_USER', }, }, }, @@ -136,7 +136,7 @@ const config = convict({ doc: 'Overwrites for credentials', format: '*', default: '{}', - env: 'CREDENTIALS_OVERWRITE_DATA' + env: 'CREDENTIALS_OVERWRITE_DATA', }, endpoint: { doc: 'Fetch credentials from API', @@ -156,7 +156,7 @@ const config = convict({ doc: 'In what process workflows should be executed', format: ['main', 'own'], default: 'own', - env: 'EXECUTIONS_PROCESS' + env: 'EXECUTIONS_PROCESS', }, // A Workflow times out and gets canceled after this time (seconds). @@ -174,13 +174,13 @@ const config = convict({ doc: 'Max run time (seconds) before stopping the workflow execution', format: Number, default: -1, - env: 'EXECUTIONS_TIMEOUT' + env: 'EXECUTIONS_TIMEOUT', }, maxTimeout: { doc: 'Max execution time (seconds) that can be set for a workflow individually', format: Number, default: 3600, - env: 'EXECUTIONS_TIMEOUT_MAX' + env: 'EXECUTIONS_TIMEOUT_MAX', }, // If a workflow executes all the data gets saved by default. This @@ -193,13 +193,13 @@ const config = convict({ doc: 'What workflow execution data to save on error', format: ['all', 'none'], default: 'all', - env: 'EXECUTIONS_DATA_SAVE_ON_ERROR' + env: 'EXECUTIONS_DATA_SAVE_ON_ERROR', }, saveDataOnSuccess: { doc: 'What workflow execution data to save on success', format: ['all', 'none'], default: 'all', - env: 'EXECUTIONS_DATA_SAVE_ON_SUCCESS' + env: 'EXECUTIONS_DATA_SAVE_ON_SUCCESS', }, // If the executions of workflows which got started via the editor @@ -211,7 +211,7 @@ const config = convict({ doc: 'Save data of executions when started manually via editor', format: 'Boolean', default: false, - env: 'EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS' + env: 'EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS', }, // To not exceed the database's capacity and keep its size moderate @@ -223,19 +223,19 @@ const config = convict({ doc: 'Delete data of past executions on a rolling basis', format: 'Boolean', default: false, - env: 'EXECUTIONS_DATA_PRUNE' + env: 'EXECUTIONS_DATA_PRUNE', }, pruneDataMaxAge: { doc: 'How old (hours) the execution data has to be to get deleted', format: Number, default: 336, - env: 'EXECUTIONS_DATA_MAX_AGE' + env: 'EXECUTIONS_DATA_MAX_AGE', }, pruneDataTimeout: { doc: 'Timeout (seconds) after execution data has been pruned', format: Number, default: 3600, - env: 'EXECUTIONS_DATA_PRUNE_TIMEOUT' + env: 'EXECUTIONS_DATA_PRUNE_TIMEOUT', }, }, @@ -248,7 +248,7 @@ const config = convict({ doc: 'The timezone to use', format: '*', default: 'America/New_York', - env: 'GENERIC_TIMEZONE' + env: 'GENERIC_TIMEZONE', }, }, @@ -258,45 +258,45 @@ const config = convict({ default: '/', arg: 'path', env: 'N8N_PATH', - doc: 'Path n8n is deployed to' + doc: 'Path n8n is deployed to', }, host: { format: String, default: 'localhost', arg: 'host', env: 'N8N_HOST', - doc: 'Host name n8n can be reached' + doc: 'Host name n8n can be reached', }, port: { format: Number, default: 5678, arg: 'port', env: 'N8N_PORT', - doc: 'HTTP port n8n can be reached' + doc: 'HTTP port n8n can be reached', }, listen_address: { format: String, default: '0.0.0.0', env: 'N8N_LISTEN_ADDRESS', - doc: 'IP address n8n should listen on' + doc: 'IP address n8n should listen on', }, protocol: { format: ['http', 'https'], default: 'http', env: 'N8N_PROTOCOL', - doc: 'HTTP Protocol via which n8n can be reached' + doc: 'HTTP Protocol via which n8n can be reached', }, ssl_key: { format: String, default: '', env: 'N8N_SSL_KEY', - doc: 'SSL Key for HTTPS Protocol' + doc: 'SSL Key for HTTPS Protocol', }, ssl_cert: { format: String, default: '', env: 'N8N_SSL_CERT', - doc: 'SSL Cert for HTTPS Protocol' + doc: 'SSL Cert for HTTPS Protocol', }, security: { @@ -304,82 +304,82 @@ const config = convict({ doc: 'Additional endpoints to exclude auth checks. Multiple endpoints can be separated by colon (":")', format: String, default: '', - env: 'N8N_AUTH_EXCLUDE_ENDPOINTS' + env: 'N8N_AUTH_EXCLUDE_ENDPOINTS', }, basicAuth: { active: { format: 'Boolean', default: false, env: 'N8N_BASIC_AUTH_ACTIVE', - doc: 'If basic auth should be activated for editor and REST-API' + doc: 'If basic auth should be activated for editor and REST-API', }, user: { format: String, default: '', env: 'N8N_BASIC_AUTH_USER', - doc: 'The name of the basic auth user' + doc: 'The name of the basic auth user', }, password: { format: String, default: '', env: 'N8N_BASIC_AUTH_PASSWORD', - doc: 'The password of the basic auth user' + doc: 'The password of the basic auth user', }, hash: { format: 'Boolean', default: false, env: 'N8N_BASIC_AUTH_HASH', - doc: 'If password for basic auth is hashed' - } + doc: 'If password for basic auth is hashed', + }, }, jwtAuth: { active: { format: 'Boolean', default: false, env: 'N8N_JWT_AUTH_ACTIVE', - doc: 'If JWT auth should be activated for editor and REST-API' + doc: 'If JWT auth should be activated for editor and REST-API', }, jwtHeader: { format: String, default: '', env: 'N8N_JWT_AUTH_HEADER', - doc: 'The request header containing a signed JWT' + doc: 'The request header containing a signed JWT', }, jwtHeaderValuePrefix: { format: String, default: '', env: 'N8N_JWT_AUTH_HEADER_VALUE_PREFIX', - doc: 'The request header value prefix to strip (optional)' + doc: 'The request header value prefix to strip (optional)', }, jwksUri: { format: String, default: '', env: 'N8N_JWKS_URI', - doc: 'The URI to fetch JWK Set for JWT authentication' + doc: 'The URI to fetch JWK Set for JWT authentication', }, jwtIssuer: { format: String, default: '', env: 'N8N_JWT_ISSUER', - doc: 'JWT issuer to expect (optional)' + doc: 'JWT issuer to expect (optional)', }, jwtNamespace: { format: String, default: '', env: 'N8N_JWT_NAMESPACE', - doc: 'JWT namespace to expect (optional)' + doc: 'JWT namespace to expect (optional)', }, jwtAllowedTenantKey: { format: String, default: '', env: 'N8N_JWT_ALLOWED_TENANT_KEY', - doc: 'JWT tenant key name to inspect within JWT namespace (optional)' + doc: 'JWT tenant key name to inspect within JWT namespace (optional)', }, jwtAllowedTenant: { format: String, default: '', env: 'N8N_JWT_ALLOWED_TENANT', - doc: 'JWT tenant to allow (optional)' + doc: 'JWT tenant to allow (optional)', }, }, }, @@ -389,19 +389,19 @@ const config = convict({ format: String, default: 'rest', env: 'N8N_ENDPOINT_REST', - doc: 'Path for rest endpoint' + doc: 'Path for rest endpoint', }, webhook: { format: String, default: 'webhook', env: 'N8N_ENDPOINT_WEBHOOK', - doc: 'Path for webhook endpoint' + doc: 'Path for webhook endpoint', }, webhookTest: { format: String, default: 'webhook-test', env: 'N8N_ENDPOINT_WEBHOOK_TEST', - doc: 'Path for test-webhook endpoint' + doc: 'Path for test-webhook endpoint', }, }, @@ -409,7 +409,7 @@ const config = convict({ doc: 'Files containing external hooks. Multiple files can be separated by colon (":")', format: String, default: '', - env: 'EXTERNAL_HOOK_FILES' + env: 'EXTERNAL_HOOK_FILES', }, nodes: { @@ -433,13 +433,13 @@ const config = convict({ } }, default: '[]', - env: 'NODES_EXCLUDE' + env: 'NODES_EXCLUDE', }, errorTriggerType: { doc: 'Node Type to use as Error Trigger', format: String, default: 'n8n-nodes-base.errorTrigger', - env: 'NODES_ERROR_TRIGGER_TYPE' + env: 'NODES_ERROR_TRIGGER_TYPE', }, }, diff --git a/packages/cli/src/ActiveExecutions.ts b/packages/cli/src/ActiveExecutions.ts index 8d7c73dd0..e6ed0fa58 100644 --- a/packages/cli/src/ActiveExecutions.ts +++ b/packages/cli/src/ActiveExecutions.ts @@ -7,8 +7,8 @@ import { } from 'n8n-core'; import { - IExecutionsCurrentSummary, IExecutingWorkflowData, + IExecutionsCurrentSummary, IWorkflowExecutionDataProcess, } from '.'; diff --git a/packages/cli/src/ActiveWorkflowRunner.ts b/packages/cli/src/ActiveWorkflowRunner.ts index 856743ed4..6a955969a 100644 --- a/packages/cli/src/ActiveWorkflowRunner.ts +++ b/packages/cli/src/ActiveWorkflowRunner.ts @@ -1,17 +1,17 @@ import { - IActivationError, Db, - NodeTypes, + IActivationError, IResponseCallbackData, + IWebhookDb, IWorkflowDb, IWorkflowExecutionDataProcess, + NodeTypes, ResponseHelper, WebhookHelpers, WorkflowCredentials, + WorkflowExecuteAdditionalData, WorkflowHelpers, WorkflowRunner, - WorkflowExecuteAdditionalData, - IWebhookDb, } from './'; import { @@ -26,8 +26,8 @@ import { INode, INodeExecutionData, IRunExecutionData, - NodeHelpers, IWorkflowExecuteAdditionalData as IWorkflowExecuteAdditionalDataWorkflow, + NodeHelpers, WebhookHttpMethod, Workflow, WorkflowExecuteMode, @@ -352,8 +352,8 @@ export class ActiveWorkflowRunner { node, data: { main: data, - } - } + }, + }, ]; const executionData: IRunExecutionData = { diff --git a/packages/cli/src/CredentialsHelper.ts b/packages/cli/src/CredentialsHelper.ts index c0ca748a6..4eae7932c 100644 --- a/packages/cli/src/CredentialsHelper.ts +++ b/packages/cli/src/CredentialsHelper.ts @@ -9,8 +9,8 @@ import { INodeParameters, INodeProperties, INodeType, - INodeTypes, INodeTypeData, + INodeTypes, NodeHelpers, Workflow, } from 'n8n-workflow'; diff --git a/packages/cli/src/CredentialsOverwrites.ts b/packages/cli/src/CredentialsOverwrites.ts index 15bc3709a..5d202ce6b 100644 --- a/packages/cli/src/CredentialsOverwrites.ts +++ b/packages/cli/src/CredentialsOverwrites.ts @@ -4,8 +4,8 @@ import { import { CredentialTypes, - ICredentialsOverwrite, GenericHelpers, + ICredentialsOverwrite, } from './'; diff --git a/packages/cli/src/Db.ts b/packages/cli/src/Db.ts index 06eeca797..f4522e52e 100644 --- a/packages/cli/src/Db.ts +++ b/packages/cli/src/Db.ts @@ -33,27 +33,27 @@ export let collections: IDatabaseCollections = { }; import { + CreateIndexStoppedAt1594828256133, InitialMigration1587669153312, WebhookModel1589476000887, - CreateIndexStoppedAt1594828256133, } from './databases/postgresdb/migrations'; import { + CreateIndexStoppedAt1594910478695, InitialMigration1587563438936, WebhookModel1592679094242, - CreateIndexStoppedAt1594910478695, } from './databases/mongodb/migrations'; import { + CreateIndexStoppedAt1594902918301, InitialMigration1588157391238, WebhookModel1592447867632, - CreateIndexStoppedAt1594902918301, } from './databases/mysqldb/migrations'; import { + CreateIndexStoppedAt1594825041918, InitialMigration1588102412422, WebhookModel1592445003908, - CreateIndexStoppedAt1594825041918, } from './databases/sqlite/migrations'; import * as path from 'path'; @@ -154,7 +154,7 @@ export async function init(): Promise { migrations: [ InitialMigration1588102412422, WebhookModel1592445003908, - CreateIndexStoppedAt1594825041918 + CreateIndexStoppedAt1594825041918, ], migrationsRun: true, migrationsTableName: `${entityPrefix}migrations`, diff --git a/packages/cli/src/ExternalHooks.ts b/packages/cli/src/ExternalHooks.ts index d419b6fd6..acdae264a 100644 --- a/packages/cli/src/ExternalHooks.ts +++ b/packages/cli/src/ExternalHooks.ts @@ -1,7 +1,7 @@ import { Db, - IExternalHooksFunctions, IExternalHooksClass, + IExternalHooksFunctions, } from './'; import * as config from '../config'; diff --git a/packages/cli/src/NodeTypes.ts b/packages/cli/src/NodeTypes.ts index 5f37a3376..0901ab7ed 100644 --- a/packages/cli/src/NodeTypes.ts +++ b/packages/cli/src/NodeTypes.ts @@ -1,7 +1,7 @@ import { INodeType, - INodeTypes, INodeTypeData, + INodeTypes, NodeHelpers, } from 'n8n-workflow'; diff --git a/packages/cli/src/ResponseHelper.ts b/packages/cli/src/ResponseHelper.ts index c71647036..d09011eac 100644 --- a/packages/cli/src/ResponseHelper.ts +++ b/packages/cli/src/ResponseHelper.ts @@ -67,7 +67,7 @@ export function sendSuccessResponse(res: Response, data: any, raw?: boolean, res res.json(data); } else { res.json({ - data + data, }); } } @@ -183,7 +183,7 @@ export function unflattenExecutionData(fullExecutionData: IExecutionFlattedDb): mode: fullExecutionData.mode, startedAt: fullExecutionData.startedAt, stoppedAt: fullExecutionData.stoppedAt, - finished: fullExecutionData.finished ? fullExecutionData.finished : false + finished: fullExecutionData.finished ? fullExecutionData.finished : false, }); return returnData; diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 60ac7acc4..80292da24 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -26,15 +26,18 @@ import { ActiveExecutions, ActiveWorkflowRunner, CredentialsHelper, + CredentialsOverwrites, CredentialTypes, Db, ExternalHooks, + GenericHelpers, IActivationError, - ICustomRequest, ICredentialsDb, ICredentialsDecryptedDb, ICredentialsDecryptedResponse, + ICredentialsOverwrite, ICredentialsResponse, + ICustomRequest, IExecutionDeleteFilter, IExecutionFlatted, IExecutionFlattedDb, @@ -47,21 +50,18 @@ import { IN8nUISettings, IPackageVersions, IWorkflowBase, - IWorkflowShortResponse, - IWorkflowResponse, IWorkflowExecutionDataProcess, + IWorkflowResponse, + IWorkflowShortResponse, + LoadNodesAndCredentials, NodeTypes, Push, ResponseHelper, TestWebhooks, - WorkflowCredentials, WebhookHelpers, + WorkflowCredentials, WorkflowExecuteAdditionalData, WorkflowRunner, - GenericHelpers, - CredentialsOverwrites, - ICredentialsOverwrite, - LoadNodesAndCredentials, } from './'; import { @@ -75,9 +75,9 @@ import { ICredentialType, IDataObject, INodeCredentials, - INodeTypeDescription, INodeParameters, INodePropertyOptions, + INodeTypeDescription, IRunData, IWorkflowCredentials, Workflow, @@ -172,7 +172,7 @@ class App { oauthCallbackUrls: { 'oauth1': urlBaseWebhook + `${this.restEndpoint}/oauth1-credential/callback`, 'oauth2': urlBaseWebhook + `${this.restEndpoint}/oauth2-credential/callback`, - } + }, }; } @@ -313,7 +313,7 @@ class App { const jwtVerifyOptions: jwt.VerifyOptions = { issuer: jwtIssuer !== '' ? jwtIssuer : undefined, - ignoreExpiration: false + ignoreExpiration: false, }; jwt.verify(token, getKey, jwtVerifyOptions, (err: jwt.VerifyErrors, decoded: object) => { @@ -355,7 +355,7 @@ class App { limit: '16mb', verify: (req, res, buf) => { // @ts-ignore req.rawBody = buf; - } + }, })); // Support application/xml type post data @@ -365,14 +365,14 @@ class App { normalize: true, // Trim whitespace inside text nodes normalizeTags: true, // Transform tags to lowercase explicitArray: false, // Only put properties in array if length > 1 - } + }, })); this.app.use(bodyParser.text({ limit: '16mb', verify: (req, res, buf) => { // @ts-ignore req.rawBody = buf; - } + }, })); // Make sure that Vue history mode works properly @@ -382,9 +382,9 @@ class App { from: new RegExp(`^\/(${this.restEndpoint}|healthz|css|js|${this.endpointWebhook}|${this.endpointWebhookTest})\/?.*$`), to: (context) => { return context.parsedUrl!.pathname!.toString(); - } - } - ] + }, + }, + ], })); //support application/x-www-form-urlencoded post data @@ -392,7 +392,7 @@ class App { verify: (req, res, buf) => { // @ts-ignore req.rawBody = buf; - } + }, })); if (process.env['NODE_ENV'] !== 'production') { @@ -1074,7 +1074,7 @@ class App { }; const oauthRequestData = { - oauth_callback: `${WebhookHelpers.getWebhookBaseUrl()}${this.restEndpoint}/oauth1-credential/callback?cid=${req.query.id}` + oauth_callback: `${WebhookHelpers.getWebhookBaseUrl()}${this.restEndpoint}/oauth1-credential/callback?cid=${req.query.id}`, }; await this.externalHooks.run('oauth1.authenticate', [oAuthOptions, oauthRequestData]); @@ -1153,7 +1153,7 @@ class App { qs: { oauth_token, oauth_verifier, - } + }, }; let oauthToken; @@ -1329,7 +1329,7 @@ class App { accessTokenUri: _.get(oauthCredentials, 'accessTokenUrl', '') as string, authorizationUri: _.get(oauthCredentials, 'authUrl', '') as string, redirectUri: `${WebhookHelpers.getWebhookBaseUrl()}${this.restEndpoint}/oauth2-credential/callback`, - scopes: _.split(_.get(oauthCredentials, 'scope', 'openid,') as string, ',') + scopes: _.split(_.get(oauthCredentials, 'scope', 'openid,') as string, ','), }; if (_.get(oauthCredentials, 'authentication', 'header') as string === 'body') { @@ -1877,7 +1877,7 @@ class App { // got used res.setHeader('Last-Modified', startTime); } - } + }, })); } diff --git a/packages/cli/src/WebhookHelpers.ts b/packages/cli/src/WebhookHelpers.ts index 5093019d8..114111a82 100644 --- a/packages/cli/src/WebhookHelpers.ts +++ b/packages/cli/src/WebhookHelpers.ts @@ -10,10 +10,10 @@ import { IWorkflowDb, IWorkflowExecutionDataProcess, ResponseHelper, - WorkflowHelpers, - WorkflowRunner, WorkflowCredentials, WorkflowExecuteAdditionalData, + WorkflowHelpers, + WorkflowRunner, } from './'; import { @@ -252,7 +252,7 @@ export function getWorkflowWebhooksBasic(workflow: Workflow): IWebhookData[] { data: { main: webhookResultData.workflowData, }, - }, + } ); const runExecutionData: IRunExecutionData = { diff --git a/packages/cli/src/WorkflowExecuteAdditionalData.ts b/packages/cli/src/WorkflowExecuteAdditionalData.ts index 4ec59e14a..11c15aee8 100644 --- a/packages/cli/src/WorkflowExecuteAdditionalData.ts +++ b/packages/cli/src/WorkflowExecuteAdditionalData.ts @@ -25,8 +25,8 @@ import { IExecuteData, IExecuteWorkflowInfo, INode, - INodeParameters, INodeExecutionData, + INodeParameters, IRun, IRunExecutionData, ITaskData, @@ -74,7 +74,7 @@ function executeErrorWorkflow(workflowData: IWorkflowBase, fullRunData: IRun, mo workflow: { id: workflowData.id !== undefined ? workflowData.id.toString() as string : undefined, name: workflowData.name, - } + }, }; // Run the error workflow WorkflowHelpers.executeErrorWorkflow(workflowData.settings.errorWorkflow as string, workflowErrorData); @@ -191,13 +191,13 @@ function hookFunctionsPush(): IWorkflowExecuteHooks { workflowId: this.workflowData.id as string, workflowName: this.workflowData.name, }); - } + }, ], workflowExecuteAfter: [ async function (this: WorkflowHooks, fullRunData: IRun, newStaticData: IDataObject): Promise { pushExecutionFinished(this.mode, fullRunData, this.executionId, undefined, this.retryOf); }, - ] + ], }; } @@ -298,7 +298,7 @@ function hookFunctionsSave(parentProcessMode?: string): IWorkflowExecuteHooks { } } }, - ] + ], }; } @@ -374,8 +374,8 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi // Always start with empty data if no inputData got supplied inputData = inputData || [ { - json: {} - } + json: {}, + }, ]; // Initialize the incoming data @@ -386,7 +386,7 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi data: { main: [inputData], }, - }, + } ); const runExecutionData: IRunExecutionData = { diff --git a/packages/cli/src/WorkflowHelpers.ts b/packages/cli/src/WorkflowHelpers.ts index 0f824398f..7071c1b71 100644 --- a/packages/cli/src/WorkflowHelpers.ts +++ b/packages/cli/src/WorkflowHelpers.ts @@ -3,8 +3,8 @@ import { Db, ICredentialsTypeData, ITransferNodeTypes, - IWorkflowExecutionDataProcess, IWorkflowErrorData, + IWorkflowExecutionDataProcess, NodeTypes, WorkflowCredentials, WorkflowRunner, @@ -120,12 +120,12 @@ export async function executeErrorWorkflow(workflowId: string, workflowErrorData main: [ [ { - json: workflowErrorData - } - ] + json: workflowErrorData, + }, + ], ], }, - }, + } ); const runExecutionData: IRunExecutionData = { diff --git a/packages/cli/src/WorkflowRunner.ts b/packages/cli/src/WorkflowRunner.ts index 5e45a9122..3a5e197f1 100644 --- a/packages/cli/src/WorkflowRunner.ts +++ b/packages/cli/src/WorkflowRunner.ts @@ -24,8 +24,8 @@ import { IExecutionError, IRun, Workflow, - WorkflowHooks, WorkflowExecuteMode, + WorkflowHooks, } from 'n8n-workflow'; import * as config from '../config'; diff --git a/packages/cli/src/WorkflowRunnerProcess.ts b/packages/cli/src/WorkflowRunnerProcess.ts index c46d5f3dd..894e11029 100644 --- a/packages/cli/src/WorkflowRunnerProcess.ts +++ b/packages/cli/src/WorkflowRunnerProcess.ts @@ -135,13 +135,13 @@ export class WorkflowRunnerProcess { workflowExecuteBefore: [ async (): Promise => { this.sendHookToParentProcess('workflowExecuteBefore', []); - } + }, ], workflowExecuteAfter: [ async (fullRunData: IRun, newStaticData?: IDataObject): Promise => { this.sendHookToParentProcess('workflowExecuteAfter', [fullRunData, newStaticData]); }, - ] + ], }; return new WorkflowHooks(hookFunctions, this.data!.executionMode, this.data!.executionId, this.data!.workflowData, { sessionId: this.data!.sessionId, retryOf: this.data!.retryOf as string }); diff --git a/packages/cli/src/databases/mysqldb/CredentialsEntity.ts b/packages/cli/src/databases/mysqldb/CredentialsEntity.ts index 5654581ff..037835fcf 100644 --- a/packages/cli/src/databases/mysqldb/CredentialsEntity.ts +++ b/packages/cli/src/databases/mysqldb/CredentialsEntity.ts @@ -20,7 +20,7 @@ export class CredentialsEntity implements ICredentialsDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; @@ -29,7 +29,7 @@ export class CredentialsEntity implements ICredentialsDb { @Index() @Column({ - length: 32 + length: 32, }) type: string; diff --git a/packages/cli/src/databases/mysqldb/WorkflowEntity.ts b/packages/cli/src/databases/mysqldb/WorkflowEntity.ts index 4cca4e62a..ea96195ca 100644 --- a/packages/cli/src/databases/mysqldb/WorkflowEntity.ts +++ b/packages/cli/src/databases/mysqldb/WorkflowEntity.ts @@ -22,7 +22,7 @@ export class WorkflowEntity implements IWorkflowDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; diff --git a/packages/cli/src/databases/postgresdb/CredentialsEntity.ts b/packages/cli/src/databases/postgresdb/CredentialsEntity.ts index cddaf7559..d2a3f7871 100644 --- a/packages/cli/src/databases/postgresdb/CredentialsEntity.ts +++ b/packages/cli/src/databases/postgresdb/CredentialsEntity.ts @@ -20,7 +20,7 @@ export class CredentialsEntity implements ICredentialsDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; @@ -29,7 +29,7 @@ export class CredentialsEntity implements ICredentialsDb { @Index() @Column({ - length: 32 + length: 32, }) type: string; diff --git a/packages/cli/src/databases/postgresdb/WorkflowEntity.ts b/packages/cli/src/databases/postgresdb/WorkflowEntity.ts index 3f870b929..d6d097ef8 100644 --- a/packages/cli/src/databases/postgresdb/WorkflowEntity.ts +++ b/packages/cli/src/databases/postgresdb/WorkflowEntity.ts @@ -22,7 +22,7 @@ export class WorkflowEntity implements IWorkflowDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; diff --git a/packages/cli/src/databases/sqlite/CredentialsEntity.ts b/packages/cli/src/databases/sqlite/CredentialsEntity.ts index 6974b6b05..8b49d779d 100644 --- a/packages/cli/src/databases/sqlite/CredentialsEntity.ts +++ b/packages/cli/src/databases/sqlite/CredentialsEntity.ts @@ -20,7 +20,7 @@ export class CredentialsEntity implements ICredentialsDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; @@ -29,7 +29,7 @@ export class CredentialsEntity implements ICredentialsDb { @Index() @Column({ - length: 32 + length: 32, }) type: string; diff --git a/packages/cli/src/databases/sqlite/WorkflowEntity.ts b/packages/cli/src/databases/sqlite/WorkflowEntity.ts index 486dcbbb5..933a146ca 100644 --- a/packages/cli/src/databases/sqlite/WorkflowEntity.ts +++ b/packages/cli/src/databases/sqlite/WorkflowEntity.ts @@ -22,7 +22,7 @@ export class WorkflowEntity implements IWorkflowDb { id: number; @Column({ - length: 128 + length: 128, }) name: string; diff --git a/packages/cli/tslint.json b/packages/cli/tslint.json index 7eb9d0110..9b5a55973 100644 --- a/packages/cli/tslint.json +++ b/packages/cli/tslint.json @@ -46,6 +46,11 @@ "forin": true, "jsdoc-format": true, "label-position": true, + "indent": [ + true, + "tabs", + 2 + ], "member-access": [ true, "no-public" @@ -60,6 +65,13 @@ "no-default-export": true, "no-duplicate-variable": true, "no-inferrable-types": true, + "ordered-imports": [ + true, + { + "import-sources-order": "any", + "named-imports-order": "case-insensitive" + } + ], "no-namespace": [ true, "allow-declarations" @@ -82,6 +94,18 @@ "ignore-bound-class-methods" ], "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": { + "objects": "always", + "arrays": "always", + "functions": "never", + "typeLiterals": "ignore" + }, + "esSpecCompliant": true + } + ], "triple-equals": [ true, "allow-null-check" diff --git a/packages/core/src/Credentials.ts b/packages/core/src/Credentials.ts index e692f597c..b8c4d337f 100644 --- a/packages/core/src/Credentials.ts +++ b/packages/core/src/Credentials.ts @@ -5,7 +5,7 @@ import { ICredentialsEncrypted, } from 'n8n-workflow'; -import { enc, AES } from 'crypto-js'; +import { AES, enc } from 'crypto-js'; export class Credentials extends ICredentials { diff --git a/packages/core/src/Interfaces.ts b/packages/core/src/Interfaces.ts index 483cc1c0c..b67d1ccfc 100644 --- a/packages/core/src/Interfaces.ts +++ b/packages/core/src/Interfaces.ts @@ -9,13 +9,13 @@ import { ILoadOptionsFunctions as ILoadOptionsFunctionsBase, INodeExecutionData, INodeType, + IOAuth2Options, IPollFunctions as IPollFunctionsBase, IPollResponse, ITriggerFunctions as ITriggerFunctionsBase, ITriggerResponse, IWebhookFunctions as IWebhookFunctionsBase, IWorkflowSettings as IWorkflowSettingsWorkflow, - IOAuth2Options, } from 'n8n-workflow'; diff --git a/packages/core/src/LoadNodeParameterOptions.ts b/packages/core/src/LoadNodeParameterOptions.ts index e56121606..6a9b45750 100644 --- a/packages/core/src/LoadNodeParameterOptions.ts +++ b/packages/core/src/LoadNodeParameterOptions.ts @@ -36,7 +36,7 @@ export class LoadNodeParameterOptions { position: [ 0, 0, - ] + ], }; if (credentials) { diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index b78518b90..bf7a6cd7c 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -1,9 +1,9 @@ import { + BINARY_ENCODING, IHookFunctions, ILoadOptionsFunctions, IResponseError, IWorkflowSettings, - BINARY_ENCODING, } from './'; import { @@ -19,6 +19,7 @@ import { INodeExecutionData, INodeParameters, INodeType, + IOAuth2Options, IPollFunctions, IRunExecutionData, ITaskDataConnections, @@ -34,7 +35,6 @@ import { Workflow, WorkflowDataProxy, WorkflowExecuteMode, - IOAuth2Options, } from 'n8n-workflow'; import * as clientOAuth1 from 'oauth-1.0a'; @@ -43,7 +43,7 @@ import * as clientOAuth2 from 'client-oauth2'; import { get } from 'lodash'; import * as express from 'express'; import * as path from 'path'; -import { OptionsWithUrl, OptionsWithUri } from 'request'; +import { OptionsWithUri, OptionsWithUrl } from 'request'; import * as requestPromise from 'request-promise-native'; import { createHmac } from 'crypto'; import { fromBuffer } from 'file-type'; @@ -91,7 +91,7 @@ export async function prepareBinaryData(binaryData: Buffer, filePath?: string, m // TODO: Should program it in a way that it does not have to converted to base64 // It should only convert to and from base64 when saved in database because // of for example an error or when there is a wait node. - data: binaryData.toString(BINARY_ENCODING) + data: binaryData.toString(BINARY_ENCODING), }; if (filePath) { diff --git a/packages/core/src/UserSettings.ts b/packages/core/src/UserSettings.ts index fb38fc779..83fba72d6 100644 --- a/packages/core/src/UserSettings.ts +++ b/packages/core/src/UserSettings.ts @@ -1,10 +1,10 @@ import { ENCRYPTION_KEY_ENV_OVERWRITE, EXTENSIONS_SUBDIRECTORY, + IUserSettings, USER_FOLDER_ENV_OVERWRITE, USER_SETTINGS_FILE_NAME, USER_SETTINGS_SUBFOLDER, - IUserSettings, } from '.'; diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 1f6530cba..4133db0d9 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -15,8 +15,8 @@ import { ITaskDataConnections, IWaitingForExecution, IWorkflowExecuteAdditionalData, - WorkflowExecuteMode, Workflow, + WorkflowExecuteMode, } from 'n8n-workflow'; import { NodeExecuteFunctions, @@ -84,7 +84,7 @@ export class WorkflowExecute { ], ], }, - } + }, ]; this.runExecutionData = { @@ -137,8 +137,8 @@ export class WorkflowExecute { // If it has no incoming data add the default empty data incomingData.push([ { - json: {} - } + json: {}, + }, ]); } else { // Get the data of the incoming connections @@ -156,7 +156,7 @@ export class WorkflowExecute { node: workflow.getNode(startNode) as INode, data: { main: incomingData, - } + }, }; nodeExecutionStack.push(executeData); @@ -252,7 +252,7 @@ export class WorkflowExecute { if (this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex] === undefined) { // Node does not have data for runIndex yet so create also empty one and init it this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex] = { - main: [] + main: [], }; for (let i = 0; i < workflow.connectionsByDestinationNode[connectionData.node]['main'].length; i++) { this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex].main.push(null); @@ -282,7 +282,7 @@ export class WorkflowExecute { // So add it to the execution stack this.runExecutionData.executionData!.nodeExecutionStack.push({ node: workflow.nodes[connectionData.node], - data: this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex] + data: this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex], }); // Remove the data from waiting @@ -426,15 +426,15 @@ export class WorkflowExecute { this.runExecutionData.executionData!.waitingExecution[connectionData.node] = {}; } this.runExecutionData.executionData!.waitingExecution[connectionData.node][runIndex] = { - main: connectionDataArray + main: connectionDataArray, }; } else { // All data is there so add it directly to stack this.runExecutionData.executionData!.nodeExecutionStack.push({ node: workflow.nodes[connectionData.node], data: { - main: connectionDataArray - } + main: connectionDataArray, + }, }); } } @@ -608,7 +608,7 @@ export class WorkflowExecute { nodeSuccessData[0] = [ { json: {}, - } + }, ]; } } @@ -639,7 +639,7 @@ export class WorkflowExecute { } taskData = { startTime, - executionTime: (new Date().getTime()) - startTime + executionTime: (new Date().getTime()) - startTime, }; if (executionError !== undefined) { @@ -669,7 +669,7 @@ export class WorkflowExecute { // Node executed successfully. So add data and go on. taskData.data = ({ - 'main': nodeSuccessData + 'main': nodeSuccessData, } as ITaskDataConnections); this.executeHook('nodeExecuteAfter', [executionNode.name, taskData]); diff --git a/packages/core/test/Credentials.test.ts b/packages/core/test/Credentials.test.ts index dc8e151b8..5fbcfc7be 100644 --- a/packages/core/test/Credentials.test.ts +++ b/packages/core/test/Credentials.test.ts @@ -3,86 +3,86 @@ import { Credentials } from '../src'; describe('Credentials', () => { - describe('without nodeType set', () => { + describe('without nodeType set', () => { - test('should be able to set and read key data without initial data set', () => { + test('should be able to set and read key data without initial data set', () => { - const credentials = new Credentials('testName', 'testType', []); + const credentials = new Credentials('testName', 'testType', []); - const key = 'key1'; - const password = 'password'; - // const nodeType = 'base.noOp'; - const newData = 1234; + const key = 'key1'; + const password = 'password'; + // const nodeType = 'base.noOp'; + const newData = 1234; - credentials.setDataKey(key, newData, password); + credentials.setDataKey(key, newData, password); - expect(credentials.getDataKey(key, password)).toEqual(newData); - }); + expect(credentials.getDataKey(key, password)).toEqual(newData); + }); - test('should be able to set and read key data with initial data set', () => { + test('should be able to set and read key data with initial data set', () => { - const key = 'key2'; - const password = 'password'; + const key = 'key2'; + const password = 'password'; - // Saved under "key1" - const initialData = 4321; - const initialDataEncoded = 'U2FsdGVkX1+0baznXt+Ag/ub8A2kHLyoLxn/rR9h4XQ='; + // Saved under "key1" + const initialData = 4321; + const initialDataEncoded = 'U2FsdGVkX1+0baznXt+Ag/ub8A2kHLyoLxn/rR9h4XQ='; - const credentials = new Credentials('testName', 'testType', [], initialDataEncoded); + const credentials = new Credentials('testName', 'testType', [], initialDataEncoded); - const newData = 1234; + const newData = 1234; - // Set and read new data - credentials.setDataKey(key, newData, password); - expect(credentials.getDataKey(key, password)).toEqual(newData); + // Set and read new data + credentials.setDataKey(key, newData, password); + expect(credentials.getDataKey(key, password)).toEqual(newData); - // Read the data which got provided encrypted on init - expect(credentials.getDataKey('key1', password)).toEqual(initialData); - }); + // Read the data which got provided encrypted on init + expect(credentials.getDataKey('key1', password)).toEqual(initialData); + }); - }); + }); - describe('with nodeType set', () => { + describe('with nodeType set', () => { - test('should be able to set and read key data without initial data set', () => { + test('should be able to set and read key data without initial data set', () => { - const nodeAccess = [ - { - nodeType: 'base.noOp', - user: 'userName', - date: new Date(), - } - ]; + const nodeAccess = [ + { + nodeType: 'base.noOp', + user: 'userName', + date: new Date(), + }, + ]; - const credentials = new Credentials('testName', 'testType', nodeAccess); + const credentials = new Credentials('testName', 'testType', nodeAccess); - const key = 'key1'; - const password = 'password'; - const nodeType = 'base.noOp'; - const newData = 1234; + const key = 'key1'; + const password = 'password'; + const nodeType = 'base.noOp'; + const newData = 1234; - credentials.setDataKey(key, newData, password); + credentials.setDataKey(key, newData, password); - // Should be able to read with nodeType which has access - expect(credentials.getDataKey(key, password, nodeType)).toEqual(newData); + // Should be able to read with nodeType which has access + expect(credentials.getDataKey(key, password, nodeType)).toEqual(newData); - // Should not be able to read with nodeType which does NOT have access - // expect(credentials.getDataKey(key, password, 'base.otherNode')).toThrowError(Error); - try { - credentials.getDataKey(key, password, 'base.otherNode'); - expect(true).toBe(false); - } catch (e) { - expect(e.message).toBe('The node of type "base.otherNode" does not have access to credentials "testName" of type "testType".'); - } + // Should not be able to read with nodeType which does NOT have access + // expect(credentials.getDataKey(key, password, 'base.otherNode')).toThrowError(Error); + try { + credentials.getDataKey(key, password, 'base.otherNode'); + expect(true).toBe(false); + } catch (e) { + expect(e.message).toBe('The node of type "base.otherNode" does not have access to credentials "testName" of type "testType".'); + } - // Get the data which will be saved in database - const dbData = credentials.getDataToSave(); - expect(dbData.name).toEqual('testName'); - expect(dbData.type).toEqual('testType'); - expect(dbData.nodesAccess).toEqual(nodeAccess); - // Compare only the first 6 characters as the rest seems to change with each execution - expect(dbData.data!.slice(0, 6)).toEqual('U2FsdGVkX1+wpQWkj+YTzaPSNTFATjnlmFKIsUTZdhk='.slice(0, 6)); - }); - }); + // Get the data which will be saved in database + const dbData = credentials.getDataToSave(); + expect(dbData.name).toEqual('testName'); + expect(dbData.type).toEqual('testType'); + expect(dbData.nodesAccess).toEqual(nodeAccess); + // Compare only the first 6 characters as the rest seems to change with each execution + expect(dbData.data!.slice(0, 6)).toEqual('U2FsdGVkX1+wpQWkj+YTzaPSNTFATjnlmFKIsUTZdhk='.slice(0, 6)); + }); + }); }); diff --git a/packages/core/test/Helpers.ts b/packages/core/test/Helpers.ts index 790025dcd..b79270833 100644 --- a/packages/core/test/Helpers.ts +++ b/packages/core/test/Helpers.ts @@ -7,8 +7,8 @@ import { INodeExecutionData, INodeParameters, INodeType, - INodeTypes, INodeTypeData, + INodeTypes, IRun, ITaskData, IWorkflowBase, @@ -87,7 +87,7 @@ class NodeTypesClass implements INodeTypes { displayOptions: { show: { mode: [ - 'passThrough' + 'passThrough', ], }, }, @@ -104,7 +104,7 @@ class NodeTypesClass implements INodeTypes { default: 'input1', description: 'Defines of which input the data should be used as output of node.', }, - ] + ], }, async execute(this: IExecuteFunctions): Promise { // const itemsInput2 = this.getInputData(1); @@ -131,7 +131,7 @@ class NodeTypesClass implements INodeTypes { } return [returnData]; - } + }, }, }, 'n8n-nodes-base.set': { @@ -186,11 +186,11 @@ class NodeTypesClass implements INodeTypes { default: 0, description: 'The number value to write in the property.', }, - ] + ], }, ], }, - ] + ], }, execute(this: IExecuteFunctions): Promise { const items = this.getInputData(); @@ -213,7 +213,7 @@ class NodeTypesClass implements INodeTypes { } return this.prepareOutputData(returnData); - } + }, }, }, 'n8n-nodes-base.start': { @@ -231,7 +231,7 @@ class NodeTypesClass implements INodeTypes { }, inputs: [], outputs: ['main'], - properties: [] + properties: [], }, execute(this: IExecuteFunctions): Promise { const items = this.getInputData(); diff --git a/packages/core/test/WorkflowExecute.test.ts b/packages/core/test/WorkflowExecute.test.ts index 811b90cef..4213cba39 100644 --- a/packages/core/test/WorkflowExecute.test.ts +++ b/packages/core/test/WorkflowExecute.test.ts @@ -47,8 +47,8 @@ describe('WorkflowExecute', () => { "typeVersion": 1, "position": [ 100, - 300 - ] + 300, + ], }, { "parameters": { @@ -56,19 +56,19 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value1", - "value": 1 - } - ] - } + "value": 1, + }, + ], + }, }, "name": "Set", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 280, - 300 - ] - } + 300, + ], + }, ], "connections": { "Start": { @@ -77,12 +77,12 @@ describe('WorkflowExecute', () => { { "node": "Set", "type": "main", - "index": 0 - } - ] - ] - } - } + "index": 0, + }, + ], + ], + }, + }, }, }, output: { @@ -115,8 +115,8 @@ describe('WorkflowExecute', () => { "typeVersion": 1, "position": [ 100, - 300 - ] + 300, + ], }, { "parameters": { @@ -124,18 +124,18 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value1", - "value": 1 - } - ] - } + "value": 1, + }, + ], + }, }, "name": "Set1", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 300, - 250 - ] + 250, + ], }, { "parameters": { @@ -143,19 +143,19 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value2", - "value": 2 - } - ] - } + "value": 2, + }, + ], + }, }, "name": "Set2", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 500, - 400 - ] - } + 400, + ], + }, ], "connections": { "Start": { @@ -164,15 +164,15 @@ describe('WorkflowExecute', () => { { "node": "Set1", "type": "main", - "index": 0 + "index": 0, }, { "node": "Set2", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Set1": { "main": [ @@ -180,12 +180,12 @@ describe('WorkflowExecute', () => { { "node": "Set2", "type": "main", - "index": 0 - } - ] - ] - } - } + "index": 0, + }, + ], + ], + }, + }, }, }, output: { @@ -201,7 +201,7 @@ describe('WorkflowExecute', () => { { value1: 1, }, - ] + ], ], Set2: [ [ @@ -228,15 +228,15 @@ describe('WorkflowExecute', () => { "nodes": [ { "parameters": { - "mode": "passThrough" + "mode": "passThrough", }, "name": "Merge4", "type": "n8n-nodes-base.merge", "typeVersion": 1, "position": [ 1150, - 500 - ] + 500, + ], }, { "parameters": { @@ -244,18 +244,18 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value2", - "value": 2 - } - ] - } + "value": 2, + }, + ], + }, }, "name": "Set2", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 290, - 400 - ] + 400, + ], }, { "parameters": { @@ -263,18 +263,18 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value4", - "value": 4 - } - ] - } + "value": 4, + }, + ], + }, }, "name": "Set4", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 850, - 200 - ] + 200, + ], }, { "parameters": { @@ -282,30 +282,30 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value3", - "value": 3 - } - ] - } + "value": 3, + }, + ], + }, }, "name": "Set3", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 650, - 200 - ] + 200, + ], }, { "parameters": { - "mode": "passThrough" + "mode": "passThrough", }, "name": "Merge4", "type": "n8n-nodes-base.merge", "typeVersion": 1, "position": [ 1150, - 500 - ] + 500, + ], }, { "parameters": {}, @@ -314,21 +314,21 @@ describe('WorkflowExecute', () => { "typeVersion": 1, "position": [ 1000, - 400 - ] + 400, + ], }, { "parameters": { "mode": "passThrough", - "output": "input2" + "output": "input2", }, "name": "Merge2", "type": "n8n-nodes-base.merge", "typeVersion": 1, "position": [ 700, - 400 - ] + 400, + ], }, { "parameters": {}, @@ -337,8 +337,8 @@ describe('WorkflowExecute', () => { "typeVersion": 1, "position": [ 500, - 300 - ] + 300, + ], }, { "parameters": { @@ -346,18 +346,18 @@ describe('WorkflowExecute', () => { "number": [ { "name": "value1", - "value": 1 - } - ] - } + "value": 1, + }, + ], + }, }, "name": "Set1", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [ 300, - 200 - ] + 200, + ], }, { "parameters": {}, @@ -366,9 +366,9 @@ describe('WorkflowExecute', () => { "typeVersion": 1, "position": [ 100, - 300 - ] - } + 300, + ], + }, ], "connections": { "Set2": { @@ -377,15 +377,15 @@ describe('WorkflowExecute', () => { { "node": "Merge1", "type": "main", - "index": 1 + "index": 1, }, { "node": "Merge2", "type": "main", - "index": 1 - } - ] - ] + "index": 1, + }, + ], + ], }, "Set4": { "main": [ @@ -393,10 +393,10 @@ describe('WorkflowExecute', () => { { "node": "Merge3", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Set3": { "main": [ @@ -404,10 +404,10 @@ describe('WorkflowExecute', () => { { "node": "Set4", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Merge3": { "main": [ @@ -415,10 +415,10 @@ describe('WorkflowExecute', () => { { "node": "Merge4", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Merge2": { "main": [ @@ -426,10 +426,10 @@ describe('WorkflowExecute', () => { { "node": "Merge3", "type": "main", - "index": 1 - } - ] - ] + "index": 1, + }, + ], + ], }, "Merge1": { "main": [ @@ -437,10 +437,10 @@ describe('WorkflowExecute', () => { { "node": "Merge2", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Set1": { "main": [ @@ -448,15 +448,15 @@ describe('WorkflowExecute', () => { { "node": "Merge1", "type": "main", - "index": 0 + "index": 0, }, { "node": "Set3", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Start": { "main": [ @@ -464,22 +464,22 @@ describe('WorkflowExecute', () => { { "node": "Set1", "type": "main", - "index": 0 + "index": 0, }, { "node": "Set2", "type": "main", - "index": 0 + "index": 0, }, { "node": "Merge4", "type": "main", - "index": 1 - } - ] - ] - } - } + "index": 1, + }, + ], + ], + }, + }, }, }, output: { @@ -534,14 +534,14 @@ describe('WorkflowExecute', () => { { value2: 2, }, - ] + ], ], Merge2: [ [ { value2: 2, }, - ] + ], ], Merge3: [ [ @@ -553,7 +553,7 @@ describe('WorkflowExecute', () => { { value2: 2, }, - ] + ], ], Merge4: [ [ @@ -565,7 +565,7 @@ describe('WorkflowExecute', () => { { value2: 2, }, - ] + ], ], }, }, diff --git a/packages/core/tslint.json b/packages/core/tslint.json index 7eb9d0110..f03bbfee3 100644 --- a/packages/core/tslint.json +++ b/packages/core/tslint.json @@ -46,6 +46,11 @@ "forin": true, "jsdoc-format": true, "label-position": true, + "indent": [ + true, + "tabs", + 2 + ], "member-access": [ true, "no-public" @@ -60,6 +65,13 @@ "no-default-export": true, "no-duplicate-variable": true, "no-inferrable-types": true, + "ordered-imports": [ + true, + { + "import-sources-order": "any", + "named-imports-order": "case-insensitive" + } + ], "no-namespace": [ true, "allow-declarations" @@ -82,6 +94,18 @@ "ignore-bound-class-methods" ], "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": { + "objects": "always", + "arrays": "always", + "functions": "always", + "typeLiterals": "ignore" + }, + "esSpecCompliant": true + } + ], "triple-equals": [ true, "allow-null-check" diff --git a/packages/editor-ui/src/components/PageContentWrapper.vue b/packages/editor-ui/src/components/PageContentWrapper.vue index 87fe95284..37731027a 100644 --- a/packages/editor-ui/src/components/PageContentWrapper.vue +++ b/packages/editor-ui/src/components/PageContentWrapper.vue @@ -15,7 +15,7 @@ import Vue from 'vue'; export default Vue.extend( { name: 'PageContentWrapper', - } + }, ); diff --git a/packages/editor-ui/tslint.json b/packages/editor-ui/tslint.json index 9f017cc5c..2fda8666d 100644 --- a/packages/editor-ui/tslint.json +++ b/packages/editor-ui/tslint.json @@ -47,6 +47,7 @@ "forin": true, "jsdoc-format": true, "label-position": true, + "indent": [true, "tabs", 2], "member-access": [ true, "no-public" @@ -83,6 +84,18 @@ "ignore-bound-class-methods" ], "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": { + "objects": "always", + "arrays": "always", + "functions": "always", + "typeLiterals": "ignore" + }, + "esSpecCompliant": true + } + ], "triple-equals": [ true, "allow-null-check" diff --git a/packages/node-dev/src/Create.ts b/packages/node-dev/src/Create.ts index 7bec6f215..50b5fcaca 100644 --- a/packages/node-dev/src/Create.ts +++ b/packages/node-dev/src/Create.ts @@ -23,7 +23,7 @@ export async function createTemplate(sourceFilePath: string, destinationFilePath // Replace the variables in the template file const options: ReplaceInFileConfig = { files: [ - destinationFilePath + destinationFilePath, ], from: [], to: [], diff --git a/packages/node-dev/tslint.json b/packages/node-dev/tslint.json index 7eb9d0110..f03bbfee3 100644 --- a/packages/node-dev/tslint.json +++ b/packages/node-dev/tslint.json @@ -46,6 +46,11 @@ "forin": true, "jsdoc-format": true, "label-position": true, + "indent": [ + true, + "tabs", + 2 + ], "member-access": [ true, "no-public" @@ -60,6 +65,13 @@ "no-default-export": true, "no-duplicate-variable": true, "no-inferrable-types": true, + "ordered-imports": [ + true, + { + "import-sources-order": "any", + "named-imports-order": "case-insensitive" + } + ], "no-namespace": [ true, "allow-declarations" @@ -82,6 +94,18 @@ "ignore-bound-class-methods" ], "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": { + "objects": "always", + "arrays": "always", + "functions": "always", + "typeLiterals": "ignore" + }, + "esSpecCompliant": true + } + ], "triple-equals": [ true, "allow-null-check" diff --git a/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts b/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts index 59435141a..b5dce3ae3 100644 --- a/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts @@ -31,7 +31,7 @@ export class AcuitySchedulingOAuth2Api implements ICredentialType { name: 'scope', type: 'hidden' as NodePropertyTypes, default: 'api-v1', - required: true + required: true, }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/DisqusApi.credentials.ts b/packages/nodes-base/credentials/DisqusApi.credentials.ts index 1c88286c1..3acf068be 100644 --- a/packages/nodes-base/credentials/DisqusApi.credentials.ts +++ b/packages/nodes-base/credentials/DisqusApi.credentials.ts @@ -13,7 +13,7 @@ export class DisqusApi implements ICredentialType { name: 'accessToken', type: 'string' as NodePropertyTypes, default: '', - description: 'Visit your account details page, and grab the Access Token. See Disqus auth.' + description: 'Visit your account details page, and grab the Access Token. See Disqus auth.', }, ]; } diff --git a/packages/nodes-base/credentials/DriftApi.credentials.ts b/packages/nodes-base/credentials/DriftApi.credentials.ts index 40372d06e..64f80048d 100644 --- a/packages/nodes-base/credentials/DriftApi.credentials.ts +++ b/packages/nodes-base/credentials/DriftApi.credentials.ts @@ -13,7 +13,7 @@ export class DriftApi implements ICredentialType { name: 'accessToken', type: 'string' as NodePropertyTypes, default: '', - description: 'Visit your account details page, and grab the Access Token. See Drift auth.' + description: 'Visit your account details page, and grab the Access Token. See Drift auth.', }, ]; } diff --git a/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts b/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts index ed505eaca..551253499 100644 --- a/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts @@ -42,7 +42,7 @@ export class EventbriteOAuth2Api implements ICredentialType { displayName: 'Authentication', name: 'authentication', type: 'hidden' as NodePropertyTypes, - default: 'body' + default: 'body', }, ]; } diff --git a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts index 3118b7587..6feb810f5 100644 --- a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts +++ b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts @@ -21,7 +21,7 @@ export class FreshdeskApi implements ICredentialType { type: 'string' as NodePropertyTypes, placeholder: 'company', description: 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"', - default: '' + default: '', }, ]; } diff --git a/packages/nodes-base/credentials/Ftp.credentials.ts b/packages/nodes-base/credentials/Ftp.credentials.ts index 5ec11571f..56e4839e6 100644 --- a/packages/nodes-base/credentials/Ftp.credentials.ts +++ b/packages/nodes-base/credentials/Ftp.credentials.ts @@ -14,7 +14,7 @@ export class Ftp implements ICredentialType { required: true, type: 'string' as NodePropertyTypes, default: '', - placeholder: 'localhost' + placeholder: 'localhost', }, { displayName: 'Port', diff --git a/packages/nodes-base/credentials/GitlabApi.credentials.ts b/packages/nodes-base/credentials/GitlabApi.credentials.ts index 2f298ea41..e8d8b151b 100644 --- a/packages/nodes-base/credentials/GitlabApi.credentials.ts +++ b/packages/nodes-base/credentials/GitlabApi.credentials.ts @@ -13,7 +13,7 @@ export class GitlabApi implements ICredentialType { displayName: 'Gitlab Server', name: 'server', type: 'string' as NodePropertyTypes, - default: 'https://gitlab.com' + default: 'https://gitlab.com', }, { displayName: 'Access Token', diff --git a/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts index ca470ae8f..39e1b04a0 100644 --- a/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts @@ -16,7 +16,7 @@ export class GitlabOAuth2Api implements ICredentialType { displayName: 'Gitlab Server', name: 'server', type: 'string' as NodePropertyTypes, - default: 'https://gitlab.com' + default: 'https://gitlab.com', }, { displayName: 'Authorization URL', diff --git a/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts index cef0dfa07..4cdffd951 100644 --- a/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts @@ -17,7 +17,7 @@ export class GoogleTasksOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden' as NodePropertyTypes, - default: scopes.join(' ') + default: scopes.join(' '), }, ]; } diff --git a/packages/nodes-base/credentials/HarvestApi.credentials.ts b/packages/nodes-base/credentials/HarvestApi.credentials.ts index cafef13e6..683010aa1 100644 --- a/packages/nodes-base/credentials/HarvestApi.credentials.ts +++ b/packages/nodes-base/credentials/HarvestApi.credentials.ts @@ -13,14 +13,14 @@ export class HarvestApi implements ICredentialType { name: 'accountId', type: 'string' as NodePropertyTypes, default: '', - description: 'Visit your account details page, and grab the Account ID. See Harvest Personal Access Tokens.' + description: 'Visit your account details page, and grab the Account ID. See Harvest Personal Access Tokens.', }, { displayName: 'Access Token', name: 'accessToken', type: 'string' as NodePropertyTypes, default: '', - description: 'Visit your account details page, and grab the Access Token. See Harvest Personal Access Tokens.' + description: 'Visit your account details page, and grab the Access Token. See Harvest Personal Access Tokens.', }, ]; } diff --git a/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts b/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts index f53835af3..bad0c3d83 100644 --- a/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts @@ -38,7 +38,7 @@ export class LinkedInOAuth2Api implements ICredentialType { name: 'scope', type: 'hidden' as NodePropertyTypes, default: '=r_liteprofile,r_emailaddress,w_member_social{{$parameter["organizationSupport"] === true ? ",w_organization_social":""}}', - description: 'Standard scopes for posting on behalf of a user or organization. See this resource .' + description: 'Standard scopes for posting on behalf of a user or organization. See this resource .', }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/MessageBirdApi.credentials.ts b/packages/nodes-base/credentials/MessageBirdApi.credentials.ts index 270bd99fe..e5566b102 100644 --- a/packages/nodes-base/credentials/MessageBirdApi.credentials.ts +++ b/packages/nodes-base/credentials/MessageBirdApi.credentials.ts @@ -9,7 +9,7 @@ export class MessageBirdApi implements ICredentialType { displayName: 'API Key', name: 'accessKey', type: 'string' as NodePropertyTypes, - default: '' - } + default: '', + }, ]; } diff --git a/packages/nodes-base/credentials/MicrosoftSql.credentials.ts b/packages/nodes-base/credentials/MicrosoftSql.credentials.ts index bad5a19f5..598c9ded2 100644 --- a/packages/nodes-base/credentials/MicrosoftSql.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftSql.credentials.ts @@ -9,40 +9,40 @@ export class MicrosoftSql implements ICredentialType { displayName: 'Server', name: 'server', type: 'string' as NodePropertyTypes, - default: 'localhost' + default: 'localhost', }, { displayName: 'Database', name: 'database', type: 'string' as NodePropertyTypes, - default: 'master' + default: 'master', }, { displayName: 'User', name: 'user', type: 'string' as NodePropertyTypes, - default: 'sa' + default: 'sa', }, { displayName: 'Password', name: 'password', type: 'string' as NodePropertyTypes, typeOptions: { - password: true + password: true, }, - default: '' + default: '', }, { displayName: 'Port', name: 'port', type: 'number' as NodePropertyTypes, - default: 1433 + default: 1433, }, { displayName: 'Domain', name: 'domain', type: 'string' as NodePropertyTypes, - default: '' - } + default: '', + }, ]; } diff --git a/packages/nodes-base/credentials/MongoDb.credentials.ts b/packages/nodes-base/credentials/MongoDb.credentials.ts index 927082845..cd9ed5142 100644 --- a/packages/nodes-base/credentials/MongoDb.credentials.ts +++ b/packages/nodes-base/credentials/MongoDb.credentials.ts @@ -39,7 +39,7 @@ export class MongoDb implements ICredentialType { placeholder: 'mongodb://:@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false', required: false, description: `If provided, the value here will be used as a MongoDB connection string,
- and the MongoDB credentials will be ignored` + and the MongoDB credentials will be ignored`, }, { displayName: 'Host', @@ -52,14 +52,14 @@ export class MongoDb implements ICredentialType { ], }, }, - default: 'localhost' + default: 'localhost', }, { displayName: 'Database', name: 'database', type: 'string' as NodePropertyTypes, default: '', - description: 'Note: the database should still be provided even if using an override connection string' + description: 'Note: the database should still be provided even if using an override connection string', }, { displayName: 'User', @@ -72,14 +72,14 @@ export class MongoDb implements ICredentialType { ], }, }, - default: '' + default: '', }, { displayName: 'Password', name: 'password', type: 'string' as NodePropertyTypes, typeOptions: { - password: true + password: true, }, displayOptions: { show: { @@ -88,7 +88,7 @@ export class MongoDb implements ICredentialType { ], }, }, - default: '' + default: '', }, { displayName: 'Port', @@ -101,7 +101,7 @@ export class MongoDb implements ICredentialType { ], }, }, - default: 27017 + default: 27017, }, ]; } diff --git a/packages/nodes-base/credentials/OAuth1Api.credentials.ts b/packages/nodes-base/credentials/OAuth1Api.credentials.ts index 82e114b52..563b6065c 100644 --- a/packages/nodes-base/credentials/OAuth1Api.credentials.ts +++ b/packages/nodes-base/credentials/OAuth1Api.credentials.ts @@ -50,15 +50,15 @@ export class OAuth1Api implements ICredentialType { options: [ { name: 'HMAC-SHA1', - value: 'HMAC-SHA1' + value: 'HMAC-SHA1', }, { name: 'HMAC-SHA256', - value: 'HMAC-SHA256' + value: 'HMAC-SHA256', }, { name: 'HMAC-SHA512', - value: 'HMAC-SHA512' + value: 'HMAC-SHA512', }, ], default: '', diff --git a/packages/nodes-base/credentials/PayPalApi.credentials.ts b/packages/nodes-base/credentials/PayPalApi.credentials.ts index 3e9cbbb80..ed1554fac 100644 --- a/packages/nodes-base/credentials/PayPalApi.credentials.ts +++ b/packages/nodes-base/credentials/PayPalApi.credentials.ts @@ -29,13 +29,13 @@ export class PayPalApi implements ICredentialType { options: [ { name: 'Sanbox', - value: 'sanbox' + value: 'sanbox', }, { name: 'Live', - value: 'live' + value: 'live', }, - ] + ], }, ]; } diff --git a/packages/nodes-base/credentials/Postgres.credentials.ts b/packages/nodes-base/credentials/Postgres.credentials.ts index d3a8e90e5..22fd706f3 100644 --- a/packages/nodes-base/credentials/Postgres.credentials.ts +++ b/packages/nodes-base/credentials/Postgres.credentials.ts @@ -74,7 +74,7 @@ export class Postgres implements ICredentialType { { name: 'verify-full (not implemented)', value: 'verify-full', - } + }, ], default: 'disable', }, diff --git a/packages/nodes-base/credentials/S3.credentials.ts b/packages/nodes-base/credentials/S3.credentials.ts index 36bd96bea..712664f0f 100644 --- a/packages/nodes-base/credentials/S3.credentials.ts +++ b/packages/nodes-base/credentials/S3.credentials.ts @@ -13,7 +13,7 @@ export class S3 implements ICredentialType { displayName: 'S3 endpoint', name: 'endpoint', type: 'string' as NodePropertyTypes, - default: '' + default: '', }, { displayName: 'Region', @@ -40,7 +40,7 @@ export class S3 implements ICredentialType { displayName: 'Force path style', name: 'forcePathStyle', type: 'boolean' as NodePropertyTypes, - default: false + default: false, }, ]; } diff --git a/packages/nodes-base/credentials/Signl4Api.credentials.ts b/packages/nodes-base/credentials/Signl4Api.credentials.ts index 857910a17..3c23832a3 100644 --- a/packages/nodes-base/credentials/Signl4Api.credentials.ts +++ b/packages/nodes-base/credentials/Signl4Api.credentials.ts @@ -13,7 +13,7 @@ export class Signl4Api implements ICredentialType { name: 'teamSecret', type: 'string' as NodePropertyTypes, default: '', - description: 'The team secret is the last part of your SIGNL4 webhook URL.' + description: 'The team secret is the last part of your SIGNL4 webhook URL.', }, ]; } diff --git a/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts index d9e4fb551..77e25bfb1 100644 --- a/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts @@ -11,7 +11,7 @@ const userScopes = [ 'stars:read', 'stars:write', 'users.profile:read', - 'users.profile:write' + 'users.profile:write', ]; export class SlackOAuth2Api implements ICredentialType { diff --git a/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts b/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts index 743f57700..600e220a3 100644 --- a/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts @@ -29,7 +29,7 @@ export class StravaOAuth2Api implements ICredentialType { name: 'scope', type: 'hidden' as NodePropertyTypes, default: 'activity:read_all,activity:write', - required: true + required: true, }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts index 2ea8ae3e7..9cc130462 100644 --- a/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts @@ -50,7 +50,7 @@ export class SurveyMonkeyOAuth2Api implements ICredentialType { displayName: 'Authentication', name: 'authentication', type: 'hidden' as NodePropertyTypes, - default: 'body' + default: 'body', }, ]; } diff --git a/packages/nodes-base/credentials/ZoomApi.credentials.ts b/packages/nodes-base/credentials/ZoomApi.credentials.ts index b90881289..9cef54158 100644 --- a/packages/nodes-base/credentials/ZoomApi.credentials.ts +++ b/packages/nodes-base/credentials/ZoomApi.credentials.ts @@ -9,7 +9,7 @@ export class ZoomApi implements ICredentialType { displayName: 'JWT Token', name: 'accessToken', type: 'string' as NodePropertyTypes, - default: '' - } + default: '', + }, ]; } diff --git a/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts index 6a7ac622a..49e708448 100644 --- a/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts @@ -13,31 +13,31 @@ export class ZoomOAuth2Api implements ICredentialType { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden' as NodePropertyTypes, - default: 'https://zoom.us/oauth/authorize' + default: 'https://zoom.us/oauth/authorize', }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden' as NodePropertyTypes, - default: 'https://zoom.us/oauth/token' + default: 'https://zoom.us/oauth/token', }, { displayName: 'Scope', name: 'scope', type: 'hidden' as NodePropertyTypes, - default: '' + default: '', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden' as NodePropertyTypes, - default: '' + default: '', }, { displayName: 'Authentication', name: 'authentication', type: 'hidden' as NodePropertyTypes, - default: 'header' - } + default: 'header', + }, ]; } diff --git a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts index 2d00352c5..752cb4646 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaign.node.ts @@ -142,7 +142,7 @@ export class ActiveCampaign implements INodeType { }, { name: 'Connection', - value: 'connection' + value: 'connection', }, { name: 'Deal', @@ -158,7 +158,7 @@ export class ActiveCampaign implements INodeType { }, { name: 'E-commerce Order Products', - value: 'ecommerceOrderProducts' + value: 'ecommerceOrderProducts', }, { name: 'Tag', diff --git a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts index 1a86c0c99..aad65ee1b 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ActiveCampaignTrigger.node.ts @@ -35,7 +35,7 @@ export class ActiveCampaignTrigger implements INodeType { { name: 'activeCampaignApi', required: true, - } + }, ], webhooks: [ { @@ -103,7 +103,7 @@ export class ActiveCampaignTrigger implements INodeType { } return returnData; }, - } + }, }; // @ts-ignore webhookMethods = { @@ -132,7 +132,7 @@ export class ActiveCampaignTrigger implements INodeType { url: webhookUrl, events, sources, - } + }, }; const { webhook } = await activeCampaignApiRequest.call(this, 'POST', '/api/3/webhooks', body); webhookData.webhookId = webhook.id; @@ -155,7 +155,7 @@ export class ActiveCampaignTrigger implements INodeType { const req = this.getRequestObject(); return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts index 20700a374..24241d851 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts @@ -234,7 +234,7 @@ export const connectionFields = [ default: 1, description: 'The status of a sync triggered on the connection (0 = sync stopped; 1 = sync running).', }, - ] + ], }, // ---------------------------------- diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts index ce492cd8d..e6f31d932 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts @@ -138,7 +138,7 @@ export const contactFields = [ default: '', description: 'Value of the field to set.', }, - ] + ], }, ], }, @@ -237,7 +237,7 @@ export const contactFields = [ default: '', description: 'Value of the field to set.', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts index 95bd83bf8..fded580d8 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts @@ -232,7 +232,7 @@ export const dealFields = [ default: 0, description: 'The status of the deal', }, - ] + ], }, // ---------------------------------- @@ -345,7 +345,7 @@ export const dealFields = [ default: 0, description: 'The status of the deal', }, - ] + ], }, // ---------------------------------- diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts index b57d9b966..e8de36b25 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts @@ -247,7 +247,7 @@ export const ecomOrderFields = [ displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'ecommerceOrder', @@ -391,7 +391,7 @@ export const ecomOrderFields = [ description: 'The order number. This can be different than the externalid.', }, - ] + ], }, // ---------------------------------- @@ -632,7 +632,7 @@ export const ecomOrderFields = [ ], }, - ] + ], }, // ---------------------------------- diff --git a/packages/nodes-base/nodes/ActiveCampaign/GenericFunctions.ts b/packages/nodes-base/nodes/ActiveCampaign/GenericFunctions.ts index 33728debc..d5b7e7d1c 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/GenericFunctions.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/GenericFunctions.ts @@ -42,7 +42,7 @@ export async function activeCampaignApiRequest(this: IHookFunctions | IExecuteFu method, qs: query, uri: `${credentials.apiUrl}${endpoint}`, - json: true + json: true, }; if (Object.keys(body).length !== 0) { diff --git a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts index 87f307fcd..c619d1caa 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts @@ -228,5 +228,5 @@ export const tagFields = [ // ---------------------------------- // tag:getAll // ---------------------------------- - ...activeCampaignDefaultGetAllProperties('tag', 'getAll') + ...activeCampaignDefaultGetAllProperties('tag', 'getAll'), ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/ActiveCampaign/currencies.ts b/packages/nodes-base/nodes/ActiveCampaign/currencies.ts index e979999ee..333c0f3dc 100644 --- a/packages/nodes-base/nodes/ActiveCampaign/currencies.ts +++ b/packages/nodes-base/nodes/ActiveCampaign/currencies.ts @@ -169,5 +169,5 @@ export const allCurrencies = [ { name: 'Yemeni Rial', value: 'yer' }, { name: 'South African Rand', value: 'zar' }, { name: 'Zambian Kwacha', value: 'zmw' }, - { name: 'Zimbabwean Dollar', value: 'zwl' } + { name: 'Zimbabwean Dollar', value: 'zwl' }, ]; diff --git a/packages/nodes-base/nodes/AcuityScheduling/GenericFunctions.ts b/packages/nodes-base/nodes/AcuityScheduling/GenericFunctions.ts index c23c84ce6..bf13f1aef 100644 --- a/packages/nodes-base/nodes/AcuityScheduling/GenericFunctions.ts +++ b/packages/nodes-base/nodes/AcuityScheduling/GenericFunctions.ts @@ -20,7 +20,7 @@ export async function acuitySchedulingApiRequest(this: IHookFunctions | IExecute qs, body, uri: uri ||`https://acuityscheduling.com/api/v1${resource}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Affinity/Affinity.node.ts b/packages/nodes-base/nodes/Affinity/Affinity.node.ts index 2e67dfde0..7efbbe4cf 100644 --- a/packages/nodes-base/nodes/Affinity/Affinity.node.ts +++ b/packages/nodes-base/nodes/Affinity/Affinity.node.ts @@ -49,7 +49,7 @@ export class Affinity implements INodeType { { name: 'affinityApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Affinity/GenericFunctions.ts b/packages/nodes-base/nodes/Affinity/GenericFunctions.ts index e33daa75f..1d3ca50db 100644 --- a/packages/nodes-base/nodes/Affinity/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Affinity/GenericFunctions.ts @@ -29,7 +29,7 @@ export async function affinityApiRequest(this: IExecuteFunctions | IWebhookFunct body, qs: query, uri: uri || `${endpoint}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.body; diff --git a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts index 8e8a72f2b..36d27ce9b 100644 --- a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts @@ -62,7 +62,7 @@ export const organizationFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The name of the organization.', @@ -80,7 +80,7 @@ export const organizationFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The domain name of the organization.', @@ -130,7 +130,7 @@ export const organizationFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the organization.', @@ -176,7 +176,7 @@ export const organizationFields = [ default: [], description: 'Persons that the new organization will be associated with.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* organization:get */ @@ -194,7 +194,7 @@ export const organizationFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the organization.', @@ -223,7 +223,7 @@ export const organizationFields = [ default: false, description: 'When true, interaction dates will be present on the returned resources.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* organization:getAll */ @@ -300,7 +300,7 @@ export const organizationFields = [ default: false, description: 'When true, interaction dates will be present on the returned resources.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* organization:delete */ @@ -318,7 +318,7 @@ export const organizationFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Unique identifier for the organization.', diff --git a/packages/nodes-base/nodes/Affinity/PersonDescription.ts b/packages/nodes-base/nodes/Affinity/PersonDescription.ts index 5cd2c97d2..99e493c78 100644 --- a/packages/nodes-base/nodes/Affinity/PersonDescription.ts +++ b/packages/nodes-base/nodes/Affinity/PersonDescription.ts @@ -62,7 +62,7 @@ export const personFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The first name of the person.', @@ -80,7 +80,7 @@ export const personFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The last name of the person.', @@ -130,7 +130,7 @@ export const personFields = [ ], operation: [ 'create', - ] + ], }, }, placeholder: 'info@example.com', @@ -152,7 +152,7 @@ export const personFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the person.', @@ -198,7 +198,7 @@ export const personFields = [ default: [], description: 'Organizations that the person is associated with.', }, - ] + ], }, { displayName: 'Emails', @@ -216,7 +216,7 @@ export const personFields = [ ], operation: [ 'update', - ] + ], }, }, placeholder: 'info@example.com', @@ -238,7 +238,7 @@ export const personFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the person.', @@ -267,7 +267,7 @@ export const personFields = [ default: false, description: 'When true, interaction dates will be present on the returned resources.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* person:getAll */ @@ -344,7 +344,7 @@ export const personFields = [ default: false, description: 'When true, interaction dates will be present on the returned resources.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* person:delete */ @@ -362,7 +362,7 @@ export const personFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Unique identifier for the person.', diff --git a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts index d4411380f..a79e2c682 100644 --- a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts +++ b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts @@ -44,7 +44,7 @@ export class AgileCrm implements INodeType { { name: 'agileCrmApi', required: true, - } + }, ], properties: [ // Node properties which the user gets displayed and @@ -56,15 +56,15 @@ export class AgileCrm implements INodeType { options: [ { name: 'Company', - value: 'company' + value: 'company', }, { name: 'Contact', - value: 'contact' + value: 'contact', }, { name: 'Deal', - value: 'deal' + value: 'deal', }, ], default: 'contact', @@ -80,7 +80,7 @@ export class AgileCrm implements INodeType { // DEAL ...dealOperations, - ...dealFields + ...dealFields, ], }; @@ -174,28 +174,28 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'first_name', - value: additionalFields.firstName as string + value: additionalFields.firstName as string, } as IDataObject); } if (additionalFields.lastName) { properties.push({ type: 'SYSTEM', name: 'last_name', - value: additionalFields.lastName as string + value: additionalFields.lastName as string, } as IDataObject); } if (additionalFields.company) { properties.push({ type: 'SYSTEM', name: 'company', - value: additionalFields.company as string + value: additionalFields.company as string, } as IDataObject); } if (additionalFields.title) { properties.push({ type: 'SYSTEM', name: 'title', - value: additionalFields.title as string + value: additionalFields.title as string, } as IDataObject); } if (additionalFields.emailOptions) { @@ -205,7 +205,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'email', - value: property.email as string + value: property.email as string, } as IDataObject); }); } @@ -216,7 +216,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'address', - value: property.address as string + value: property.address as string, } as IDataObject); }); } @@ -228,7 +228,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'phone', - value: property.number as string + value: property.number as string, } as IDataObject); }); } @@ -237,7 +237,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'email', - value: additionalFields.email as string + value: additionalFields.email as string, } as IDataObject); } @@ -245,7 +245,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'address', - value: additionalFields.address as string + value: additionalFields.address as string, } as IDataObject); } @@ -253,7 +253,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'phone', - value: additionalFields.phone as string + value: additionalFields.phone as string, } as IDataObject); } @@ -266,7 +266,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'webiste', - value: property.url as string + value: property.url as string, } as IDataObject); }); } @@ -278,7 +278,7 @@ export class AgileCrm implements INodeType { type: 'CUSTOM', subtype: property.subtype as string, name: property.name, - value: property.value as string + value: property.value as string, } as IDataObject); }); } @@ -329,28 +329,28 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'first_name', - value: additionalFields.firstName as string + value: additionalFields.firstName as string, } as IDataObject); } if (additionalFields.lastName) { properties.push({ type: 'SYSTEM', name: 'last_name', - value: additionalFields.lastName as string + value: additionalFields.lastName as string, } as IDataObject); } if (additionalFields.company) { properties.push({ type: 'SYSTEM', name: 'company', - value: additionalFields.company as string + value: additionalFields.company as string, } as IDataObject); } if (additionalFields.title) { properties.push({ type: 'SYSTEM', name: 'title', - value: additionalFields.title as string + value: additionalFields.title as string, } as IDataObject); } if (additionalFields.emailOptions) { @@ -360,7 +360,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'email', - value: property.email as string + value: property.email as string, } as IDataObject); }); } @@ -371,7 +371,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'address', - value: property.address as string + value: property.address as string, } as IDataObject); }); } @@ -383,7 +383,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'phone', - value: property.number as string + value: property.number as string, } as IDataObject); }); } @@ -392,7 +392,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'email', - value: additionalFields.email as string + value: additionalFields.email as string, } as IDataObject); } @@ -400,7 +400,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'address', - value: additionalFields.address as string + value: additionalFields.address as string, } as IDataObject); } @@ -408,7 +408,7 @@ export class AgileCrm implements INodeType { properties.push({ type: 'SYSTEM', name: 'phone', - value: additionalFields.phone as string + value: additionalFields.phone as string, } as IDataObject); } @@ -421,7 +421,7 @@ export class AgileCrm implements INodeType { type: 'SYSTEM', subtype: property.subtype as string, name: 'webiste', - value: property.url as string + value: property.url as string, } as IDataObject); }); } @@ -432,7 +432,7 @@ export class AgileCrm implements INodeType { type: 'CUSTOM', subtype: property.subtype as string, name: property.name, - value: property.value as string + value: property.value as string, } as IDataObject); }); } diff --git a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts index 08b45d209..ef473ef46 100644 --- a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts @@ -104,7 +104,7 @@ export const companyFields = [ false, ], }, - } + }, }, /* -------------------------------------------------------------------------- */ /* company:create */ @@ -206,29 +206,29 @@ export const companyFields = [ options: [ { name: '0', - value: 0 + value: 0, }, { name: '1', - value: 1 + value: 1, }, { name: '2', - value: 2 + value: 2, }, { name: '3', - value: 3 + value: 3, }, { name: '4', - value: 4 + value: 4, }, { name: '5', - value: 5 + value: 5, }, - ] + ], }, { displayName: 'Tags', @@ -339,7 +339,7 @@ export const companyFields = [ type: 'string', required: true, default: '', - description: 'Property name.' + description: 'Property name.', }, { displayName: 'Sub Type', @@ -653,7 +653,7 @@ export const companyFields = [ }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts index 5043e05b4..167d428f8 100644 --- a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts @@ -205,7 +205,7 @@ export const contactFields = [ }, { name: 'Office', - value: 'office' + value: 'office', }, ], }, @@ -656,15 +656,15 @@ export const contactFields = [ options: [ { name: 'Home', - value: 'home' + value: 'home', }, { name: 'Office', - value: 'office' + value: 'office', }, { name: 'Postal', - value: 'postal' + value: 'postal', }, ], }, @@ -715,8 +715,8 @@ export const contactFields = [ { name: 'Personal', value: 'personal', - } - ] + }, + ], }, { displayName: 'Email', @@ -752,7 +752,7 @@ export const contactFields = [ description: 'Lead score of contact', typeOptions: { minValue: 0, - } + }, }, { displayName: 'Star Value', @@ -966,7 +966,7 @@ export const contactFields = [ type: 'string', required: true, default: '', - description: 'Property name.' + description: 'Property name.', }, { displayName: 'Sub Type', diff --git a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts index 443017cfd..812d939e0 100644 --- a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts @@ -143,7 +143,7 @@ export const dealFields = [ required: true, typeOptions: { minValue: 0, - maxValue: 1000000000000 + maxValue: 1000000000000, }, displayOptions: { show: { @@ -210,7 +210,7 @@ export const dealFields = [ required: true, typeOptions: { minValue: 0, - maxValue: 100 + maxValue: 100, }, displayOptions: { show: { @@ -318,7 +318,7 @@ export const dealFields = [ type: 'string', required: true, default: '', - description: 'Property name.' + description: 'Property name.', }, { displayName: 'Value', @@ -444,7 +444,7 @@ export const dealFields = [ type: 'number', typeOptions: { minValue: 0, - maxValue: 10000 + maxValue: 10000, }, default: '', description: 'Expected Value of deal.', @@ -462,7 +462,7 @@ export const dealFields = [ type: 'number', typeOptions: { minValue: 0, - maxValue: 100 + maxValue: 100, }, default: 50, description: 'Expected Value of deal.', @@ -497,7 +497,7 @@ export const dealFields = [ type: 'string', required: true, default: '', - description: 'Property name.' + description: 'Property name.', }, { displayName: 'Value', @@ -510,6 +510,6 @@ export const dealFields = [ }, ], }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts b/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts index 09b63e5dd..75b8a71c8 100644 --- a/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts +++ b/packages/nodes-base/nodes/AgileCrm/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function agileCrmApiRequest(this: IHookFunctions | IExecuteFunction }, auth: { username: credentials!.email as string, - password: credentials!.apiKey as string + password: credentials!.apiKey as string, }, uri: uri || `https://${credentials!.subdomain}.agilecrm.com/dev/${endpoint}`, json: true, diff --git a/packages/nodes-base/nodes/Airtable/Airtable.node.ts b/packages/nodes-base/nodes/Airtable/Airtable.node.ts index cd74ebb0e..dc47721b2 100644 --- a/packages/nodes-base/nodes/Airtable/Airtable.node.ts +++ b/packages/nodes-base/nodes/Airtable/Airtable.node.ts @@ -31,7 +31,7 @@ export class Airtable implements INodeType { { name: 'airtableApi', required: true, - } + }, ], properties: [ { @@ -47,22 +47,22 @@ export class Airtable implements INodeType { { name: 'Delete', value: 'delete', - description: 'Delete data from a table' + description: 'Delete data from a table', }, { name: 'List', value: 'list', - description: 'List data from a table' + description: 'List data from a table', }, { name: 'Read', value: 'read', - description: 'Read data from a table' + description: 'Read data from a table', }, { name: 'Update', value: 'update', - description: 'Update data in a table' + description: 'Update data in a table', }, ], default: 'read', @@ -196,7 +196,7 @@ export class Airtable implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], }, }, @@ -259,13 +259,13 @@ export class Airtable implements INodeType { { name: 'DESC', value: 'desc', - description: 'Sort in descending order (large -> small)' + description: 'Sort in descending order (large -> small)', }, ], default: 'asc', description: 'The sort direction.', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts index de7344364..dd9c0aab9 100644 --- a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts @@ -98,6 +98,6 @@ export async function apiRequestAllItems(this: IHookFunctions | IExecuteFunction ); return { - records: returnData + records: returnData, }; } diff --git a/packages/nodes-base/nodes/Amqp/Amqp.node.ts b/packages/nodes-base/nodes/Amqp/Amqp.node.ts index c2803e927..cad15c6ea 100644 --- a/packages/nodes-base/nodes/Amqp/Amqp.node.ts +++ b/packages/nodes-base/nodes/Amqp/Amqp.node.ts @@ -59,7 +59,7 @@ export class Amqp implements INodeType { }, ], }, - ] + ], }; async executeSingle(this: IExecuteSingleFunctions): Promise { @@ -107,7 +107,7 @@ export class Amqp implements INodeType { const message = { application_properties: headerProperties, - body + body, }; const sendResult = context.sender.send(message); diff --git a/packages/nodes-base/nodes/Amqp/AmqpTrigger.node.ts b/packages/nodes-base/nodes/Amqp/AmqpTrigger.node.ts index 9910ab5e2..a6619c040 100644 --- a/packages/nodes-base/nodes/Amqp/AmqpTrigger.node.ts +++ b/packages/nodes-base/nodes/Amqp/AmqpTrigger.node.ts @@ -77,7 +77,7 @@ export class AmqpTrigger implements INodeType { }, ], }, - ] + ], }; @@ -109,7 +109,7 @@ export class AmqpTrigger implements INodeType { port: credentials.port, reconnect: true, // this id the default anyway reconnect_limit: 50, // try for max 50 times, based on a back-off algorithm - container_id: (durable ? clientname : null) + container_id: (durable ? clientname : null), }; if (credentials.username || credentials.password) { container.options.username = credentials.username; @@ -146,16 +146,16 @@ export class AmqpTrigger implements INodeType { source: { address: sink, durable: 2, - expiry_policy: 'never' + expiry_policy: 'never', }, - credit_window: 1 // prefetch 1 + credit_window: 1, // prefetch 1 }; } else { clientOptions = { source: { address: sink, }, - credit_window: 1 // prefetch 1 + credit_window: 1, // prefetch 1 }; } connection.open_receiver(clientOptions); diff --git a/packages/nodes-base/nodes/Asana/Asana.node.ts b/packages/nodes-base/nodes/Asana/Asana.node.ts index 66fa27d1d..f308cba65 100644 --- a/packages/nodes-base/nodes/Asana/Asana.node.ts +++ b/packages/nodes-base/nodes/Asana/Asana.node.ts @@ -1218,7 +1218,7 @@ export class Asana implements INodeType { } return returnData; - } + }, }, }; diff --git a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts index 746107fb1..6e51b7599 100644 --- a/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts +++ b/packages/nodes-base/nodes/Asana/AsanaTrigger.node.ts @@ -248,7 +248,7 @@ export class AsanaTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(req.body.events) + this.helpers.returnJsonArray(req.body.events), ], }; } diff --git a/packages/nodes-base/nodes/Automizy/Automizy.node.ts b/packages/nodes-base/nodes/Automizy/Automizy.node.ts index 27cb4b4bc..cb94f43bd 100644 --- a/packages/nodes-base/nodes/Automizy/Automizy.node.ts +++ b/packages/nodes-base/nodes/Automizy/Automizy.node.ts @@ -63,7 +63,7 @@ export class Automizy implements INodeType { }, ], default: 'contact', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...contactOperations, @@ -86,12 +86,12 @@ export class Automizy implements INodeType { this, 'smartLists', 'GET', - `/smart-lists`, + `/smart-lists` ); for (const list of lists) { returnData.push({ name: list.name, - value: list.id + value: list.id, }); } return returnData; @@ -109,7 +109,7 @@ export class Automizy implements INodeType { for (const tag of tags) { returnData.push({ name: tag.name, - value: tag.name + value: tag.name, }); } return returnData; @@ -122,12 +122,12 @@ export class Automizy implements INodeType { this, 'customFields', 'GET', - '/custom-fields', + '/custom-fields' ); for (const customField of customFields) { returnData.push({ name: customField.name, - value: customField.id + value: customField.id, }); } return returnData; @@ -178,7 +178,7 @@ export class Automizy implements INodeType { this, 'POST', `/smart-lists/${listId}/contacts`, - body, + body ); } @@ -188,7 +188,7 @@ export class Automizy implements INodeType { responseData = await automizyApiRequest.call( this, 'DELETE', - `/contacts/${contactId}`, + `/contacts/${contactId}` ); responseData = { success: true }; @@ -200,7 +200,7 @@ export class Automizy implements INodeType { responseData = await automizyApiRequest.call( this, 'GET', - `/contacts/${contactId}`, + `/contacts/${contactId}` ); } @@ -227,7 +227,7 @@ export class Automizy implements INodeType { 'GET', `/smart-lists/${listId}/contacts`, {}, - qs, + qs ); } else { @@ -238,7 +238,7 @@ export class Automizy implements INodeType { 'GET', `/smart-lists/${listId}/contacts`, {}, - qs, + qs ); responseData = responseData.contacts; @@ -272,7 +272,7 @@ export class Automizy implements INodeType { this, 'PATCH', `/contacts/${email}`, - body, + body ); } } @@ -290,7 +290,7 @@ export class Automizy implements INodeType { this, 'POST', `/smart-lists`, - body, + body ); } @@ -300,7 +300,7 @@ export class Automizy implements INodeType { responseData = await automizyApiRequest.call( this, 'DELETE', - `/smart-lists/${listId}`, + `/smart-lists/${listId}` ); responseData = { success: true }; @@ -312,7 +312,7 @@ export class Automizy implements INodeType { responseData = await automizyApiRequest.call( this, 'GET', - `/smart-lists/${listId}`, + `/smart-lists/${listId}` ); } @@ -337,7 +337,7 @@ export class Automizy implements INodeType { 'GET', `/smart-lists`, {}, - qs, + qs ); } else { @@ -348,7 +348,7 @@ export class Automizy implements INodeType { 'GET', `/smart-lists`, {}, - qs, + qs ); responseData = responseData.smartLists; @@ -368,7 +368,7 @@ export class Automizy implements INodeType { this, 'PATCH', `/smart-lists/${listId}`, - body, + body ); } } diff --git a/packages/nodes-base/nodes/Automizy/ContactDescription.ts b/packages/nodes-base/nodes/Automizy/ContactDescription.ts index 07b35dcf5..102555ce7 100644 --- a/packages/nodes-base/nodes/Automizy/ContactDescription.ts +++ b/packages/nodes-base/nodes/Automizy/ContactDescription.ts @@ -204,7 +204,7 @@ export const contactFields = [ }, }, default: '', - description: 'Can be ID or email.' + description: 'Can be ID or email.', }, /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts index 508f85fc6..4cefae9b6 100644 --- a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts @@ -29,7 +29,7 @@ export class AwsLambda implements INodeType { { name: 'aws', required: true, - } + }, ], properties: [ { @@ -145,7 +145,7 @@ export class AwsLambda implements INodeType { }); } return returnData; - } + }, }, }; @@ -173,7 +173,7 @@ export class AwsLambda implements INodeType { { 'X-Amz-Invocation-Type': params.InvocationType, 'Content-Type': 'application/x-amz-json-1.0', - }, + } ); } catch (err) { throw new Error(`AWS Error: ${err}`); diff --git a/packages/nodes-base/nodes/Aws/AwsSns.node.ts b/packages/nodes-base/nodes/Aws/AwsSns.node.ts index 1a656041a..16eb1c432 100644 --- a/packages/nodes-base/nodes/Aws/AwsSns.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSns.node.ts @@ -29,7 +29,7 @@ export class AwsSns implements INodeType { { name: 'aws', required: true, - } + }, ], properties: [ { @@ -133,7 +133,7 @@ export class AwsSns implements INodeType { } return returnData; - } + }, }, }; diff --git a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts index eca8562ec..e41f9de57 100644 --- a/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts @@ -93,7 +93,7 @@ export class AwsSnsTrigger implements INodeType { }); } return returnData; - } + }, }, }; // @ts-ignore diff --git a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts index a726fb0c7..72a5806c6 100644 --- a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts +++ b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts @@ -96,7 +96,7 @@ export class AwsRekognition implements INodeType { displayOptions: { show: { operation: [ - 'analyze' + 'analyze', ], resource: [ 'image', @@ -110,7 +110,7 @@ export class AwsRekognition implements INodeType { displayOptions: { show: { operation: [ - 'analyze' + 'analyze', ], resource: [ 'image', @@ -132,7 +132,7 @@ export class AwsRekognition implements INodeType { displayOptions: { show: { operation: [ - 'analyze' + 'analyze', ], resource: [ 'image', @@ -153,7 +153,7 @@ export class AwsRekognition implements INodeType { displayOptions: { show: { operation: [ - 'analyze' + 'analyze', ], resource: [ 'image', diff --git a/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts b/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts index bcf74615b..c6d714a89 100644 --- a/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts +++ b/packages/nodes-base/nodes/Aws/S3/AwsS3.node.ts @@ -65,7 +65,7 @@ export class AwsS3 implements INodeType { { name: 'aws', required: true, - } + }, ], properties: [ { @@ -148,7 +148,7 @@ export class AwsS3 implements INodeType { '$': { xmlns: 'http://s3.amazonaws.com/doc/2006-03-01/', }, - } + }, }; let data = ''; // if credentials has the S3 defaul region (us-east-1) the body (XML) does not have to be sent. @@ -282,7 +282,7 @@ export class AwsS3 implements INodeType { for (const childObject of responseData) { //@ts-ignore (body.Delete.Object as IDataObject[]).push({ - Key: childObject.Key as string + Key: childObject.Key as string, }); } diff --git a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts index 208b847b3..ffff28c6a 100644 --- a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts @@ -113,19 +113,19 @@ export const fileFields = [ options: [ { name: 'Authenticated Read', - value: 'authenticatedRead' + value: 'authenticatedRead', }, { name: 'AWS Exec Read', - value: 'awsExecRead' + value: 'awsExecRead', }, { name: 'Bucket Owner Full Control', - value: 'bucketOwnerFullControl' + value: 'bucketOwnerFullControl', }, { name: 'Bucket Owner Read', - value: 'bucketOwnerRead' + value: 'bucketOwnerRead', }, { name: 'Private', @@ -133,15 +133,15 @@ export const fileFields = [ }, { name: 'Public Read', - value: 'publicRead' + value: 'publicRead', }, { name: 'Public Read Write', - value: 'publicReadWrite' + value: 'publicReadWrite', }, ], default: 'private', - description: 'The canned ACL to apply to the object.' + description: 'The canned ACL to apply to the object.', }, { displayName: 'Grant Full Control', @@ -399,7 +399,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -416,13 +416,13 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - false + false, ], }, }, @@ -438,13 +438,13 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - true + true, ], }, @@ -476,19 +476,19 @@ export const fileFields = [ options: [ { name: 'Authenticated Read', - value: 'authenticatedRead' + value: 'authenticatedRead', }, { name: 'AWS Exec Read', - value: 'awsExecRead' + value: 'awsExecRead', }, { name: 'Bucket Owner Full Control', - value: 'bucketOwnerFullControl' + value: 'bucketOwnerFullControl', }, { name: 'Bucket Owner Read', - value: 'bucketOwnerRead' + value: 'bucketOwnerRead', }, { name: 'Private', @@ -496,15 +496,15 @@ export const fileFields = [ }, { name: 'Public Read', - value: 'publicRead' + value: 'publicRead', }, { name: 'Public Read Write', - value: 'publicReadWrite' + value: 'publicReadWrite', }, ], default: 'private', - description: 'The canned ACL to apply to the object.' + description: 'The canned ACL to apply to the object.', }, { displayName: 'Grant Full Control', @@ -705,7 +705,7 @@ export const fileFields = [ description: '', }, ], - } + }, ], description: 'Optional extra headers to add to the message (most headers are allowed).', }, @@ -755,7 +755,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', diff --git a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts index 2884206d6..c36d42b54 100644 --- a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts @@ -97,7 +97,7 @@ export const folderFields = [ name: 'parentFolderKey', type: 'string', default: '', - description: 'Parent folder you want to create the folder in' + description: 'Parent folder you want to create the folder in', }, { displayName: 'Requester Pays', @@ -141,7 +141,7 @@ export const folderFields = [ }, ], default: 'standard', - description: 'Amazon S3 storage classes.' + description: 'Amazon S3 storage classes.', }, ], }, diff --git a/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts b/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts index 049aa6cfa..f4e74520f 100644 --- a/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts +++ b/packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts @@ -585,7 +585,7 @@ export class AwsSes implements INodeType { } return returnData; - } + }, }, }; @@ -756,7 +756,7 @@ export class AwsSes implements INodeType { const params = [ `Template.TemplateName=${templateName}`, `Template.SubjectPart=${subjectPart}`, - `Template.HtmlPart=

${htmlPart}

` + `Template.HtmlPart=

${htmlPart}

`, ]; if (additionalFields.textPart) { diff --git a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts index 223368d92..d88aaa0a3 100644 --- a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts +++ b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts @@ -181,7 +181,7 @@ export const imageFields = [ type: 'string', default: '', description: 'Replacement image url you want to use (must be publicly viewable)', - } + }, ], }, ], @@ -202,7 +202,7 @@ export const imageFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the image.', diff --git a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts index 692fb1a34..034f78723 100644 --- a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts +++ b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts @@ -49,7 +49,7 @@ export const templateFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the template.', diff --git a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts index 8321dedac..6fa13fad2 100644 --- a/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts +++ b/packages/nodes-base/nodes/Bitbucket/BitbucketTrigger.node.ts @@ -35,7 +35,7 @@ export class BitbucketTrigger implements INodeType { { name: 'bitbucketApi', required: true, - } + }, ], webhooks: [ { @@ -75,9 +75,9 @@ export class BitbucketTrigger implements INodeType { displayOptions: { show: { resource: [ - 'user' - ] - } + 'user', + ], + }, }, typeOptions: { loadOptionsMethod: 'getUsersEvents', @@ -94,9 +94,9 @@ export class BitbucketTrigger implements INodeType { displayOptions: { show: { resource: [ - 'team' - ] - } + 'team', + ], + }, }, typeOptions: { loadOptionsMethod: 'getTeams', @@ -112,9 +112,9 @@ export class BitbucketTrigger implements INodeType { displayOptions: { show: { resource: [ - 'team' - ] - } + 'team', + ], + }, }, typeOptions: { loadOptionsMethod: 'getTeamEvents', @@ -131,9 +131,9 @@ export class BitbucketTrigger implements INodeType { displayOptions: { show: { resource: [ - 'repository' - ] - } + 'repository', + ], + }, }, typeOptions: { loadOptionsMethod: 'getRepositories', @@ -149,9 +149,9 @@ export class BitbucketTrigger implements INodeType { displayOptions: { show: { resource: [ - 'repository' - ] - } + 'repository', + ], + }, }, typeOptions: { loadOptionsMethod: 'getRepositoriesEvents', @@ -351,7 +351,7 @@ export class BitbucketTrigger implements INodeType { } return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Bitbucket/GenericFunctions.ts b/packages/nodes-base/nodes/Bitbucket/GenericFunctions.ts index 5f9c78446..4963f2c10 100644 --- a/packages/nodes-base/nodes/Bitbucket/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Bitbucket/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function bitbucketApiRequest(this: IHookFunctions | IExecuteFunctio qs, body, uri: uri ||`https://api.bitbucket.org/2.0${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Bitly/GenericFunctions.ts b/packages/nodes-base/nodes/Bitly/GenericFunctions.ts index b44a894ad..b12da3393 100644 --- a/packages/nodes-base/nodes/Bitly/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Bitly/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function bitlyApiRequest(this: IHookFunctions | IExecuteFunctions | qs, body, uri: uri ||`https://api-ssl.bitly.com/v4${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Bitly/LinkDescription.ts b/packages/nodes-base/nodes/Bitly/LinkDescription.ts index 50fd5268c..5fbd0a6be 100644 --- a/packages/nodes-base/nodes/Bitly/LinkDescription.ts +++ b/packages/nodes-base/nodes/Bitly/LinkDescription.ts @@ -98,7 +98,7 @@ export const linkFields = [ loadOptionsMethod: 'getTags', loadOptionsDependsOn: [ 'group', - ] + ], }, }, { @@ -157,7 +157,7 @@ export const linkFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -229,7 +229,7 @@ export const linkFields = [ loadOptionsMethod: 'getTags', loadOptionsDependsOn: [ 'group', - ] + ], }, }, { @@ -288,7 +288,7 @@ export const linkFields = [ type: 'string', default: '', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Box/BoxTrigger.node.ts b/packages/nodes-base/nodes/Box/BoxTrigger.node.ts index 1e4105254..26227f948 100644 --- a/packages/nodes-base/nodes/Box/BoxTrigger.node.ts +++ b/packages/nodes-base/nodes/Box/BoxTrigger.node.ts @@ -306,7 +306,7 @@ export class BoxTrigger implements INodeType { target: { id: targetId, type: targetType, - } + }, }; const responseData = await boxApiRequest.call(this, 'POST', endpoint, body); @@ -345,7 +345,7 @@ export class BoxTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(bodyData) + this.helpers.returnJsonArray(bodyData), ], }; } diff --git a/packages/nodes-base/nodes/Box/FileDescription.ts b/packages/nodes-base/nodes/Box/FileDescription.ts index 8e84fb877..9a3ae0e2c 100644 --- a/packages/nodes-base/nodes/Box/FileDescription.ts +++ b/packages/nodes-base/nodes/Box/FileDescription.ts @@ -182,7 +182,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', diff --git a/packages/nodes-base/nodes/Calendly/GenericFunctions.ts b/packages/nodes-base/nodes/Calendly/GenericFunctions.ts index 0d4c229d0..464d8a5bf 100644 --- a/packages/nodes-base/nodes/Calendly/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Calendly/GenericFunctions.ts @@ -30,7 +30,7 @@ export async function calendlyApiRequest(this: IExecuteFunctions | IWebhookFunct body, qs: query, uri: uri || `${endpoint}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.form; diff --git a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts index b233466ed..6bce476c8 100644 --- a/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts +++ b/packages/nodes-base/nodes/Chargebee/Chargebee.node.ts @@ -41,7 +41,7 @@ export class Chargebee implements INodeType { { name: 'chargebeeApi', required: true, - } + }, ], properties: [ { @@ -103,7 +103,7 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'customer', @@ -185,10 +185,10 @@ export class Chargebee implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], - } + }, ], }, @@ -240,10 +240,10 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], resource: [ - 'invoice' + 'invoice', ], }, }, @@ -262,10 +262,10 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], resource: [ - 'invoice' + 'invoice', ], }, }, @@ -281,19 +281,19 @@ export class Chargebee implements INodeType { options: [ { name: 'Is', - value: 'is' + value: 'is', }, { name: 'Is Not', - value: 'is_not' + value: 'is_not', }, { name: 'After', - value: 'after' + value: 'after', }, { name: 'Before', - value: 'before' + value: 'before', }, ], @@ -307,7 +307,7 @@ export class Chargebee implements INodeType { default: '', description: 'Query date.', }, - ] + ], }, { name: 'total', @@ -320,27 +320,27 @@ export class Chargebee implements INodeType { options: [ { name: 'Is', - value: 'is' + value: 'is', }, { name: 'Is Not', - value: 'is_not' + value: 'is_not', }, { name: 'Greater than', - value: 'gt' + value: 'gt', }, { name: 'Greater equal than', - value: 'gte' + value: 'gte', }, { name: 'Less than', - value: 'lt' + value: 'lt', }, { name: 'Less equal than', - value: 'lte' + value: 'lte', }, ], default: 'gt', @@ -356,7 +356,7 @@ export class Chargebee implements INodeType { default: 0, description: 'Query amount.', }, - ] + ], }, ], }, @@ -374,10 +374,10 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'pdfUrl' + 'pdfUrl', ], resource: [ - 'invoice' + 'invoice', ], }, }, @@ -428,7 +428,7 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'cancel' + 'cancel', ], resource: [ 'subscription', @@ -444,7 +444,7 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'cancel' + 'cancel', ], resource: [ 'subscription', @@ -467,7 +467,7 @@ export class Chargebee implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'subscription', @@ -610,7 +610,7 @@ export class Chargebee implements INodeType { user: credentials.apiKey as string, pass: '', }, - json: true + json: true, }; const responseData = await this.helpers.request!(options); diff --git a/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts b/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts index 69c6f4c6e..dbc0cfacc 100644 --- a/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts +++ b/packages/nodes-base/nodes/Chargebee/ChargebeeTrigger.node.ts @@ -216,7 +216,7 @@ export class ChargebeeTrigger implements INodeType { value: 'card_deleted', description: 'Triggered when a card is deleted for a customer.', }, - ] + ], }, ], @@ -238,7 +238,7 @@ export class ChargebeeTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts b/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts index 4732133e3..da0435953 100644 --- a/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts +++ b/packages/nodes-base/nodes/CircleCi/CircleCi.node.ts @@ -38,7 +38,7 @@ export class CircleCi implements INodeType { { name: 'circleCiApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/CircleCi/GenericFunctions.ts b/packages/nodes-base/nodes/CircleCi/GenericFunctions.ts index fb30950a1..9548586fd 100644 --- a/packages/nodes-base/nodes/CircleCi/GenericFunctions.ts +++ b/packages/nodes-base/nodes/CircleCi/GenericFunctions.ts @@ -27,7 +27,7 @@ export async function circleciApiRequest(this: IHookFunctions | IExecuteFunction qs, body, uri: uri ||`https://circleci.com/api/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts b/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts index 3947f8be2..ba28e8d71 100644 --- a/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts +++ b/packages/nodes-base/nodes/Clearbit/Clearbit.node.ts @@ -38,7 +38,7 @@ export class Clearbit implements INodeType { { name: 'clearbitApi', required: true, - } + }, ], properties: [ { @@ -55,7 +55,7 @@ export class Clearbit implements INodeType { name: 'Person', value: 'person', description: `The Person API lets you retrieve social information associated with an email address,
- such as a person’s name, location and Twitter handle.` + such as a person’s name, location and Twitter handle.`, }, ], default: 'company', diff --git a/packages/nodes-base/nodes/Clearbit/GenericFunctions.ts b/packages/nodes-base/nodes/Clearbit/GenericFunctions.ts index f516c0dd8..4251bd4a2 100644 --- a/packages/nodes-base/nodes/Clearbit/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Clearbit/GenericFunctions.ts @@ -18,7 +18,7 @@ export async function clearbitApiRequest(this: IHookFunctions | IExecuteFunction qs, body, uri: uri ||`https://${api}-stream.clearbit.com${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts index af9803c13..327ae830e 100644 --- a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts @@ -90,7 +90,7 @@ export const folderFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -153,7 +153,7 @@ export const folderFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -222,7 +222,7 @@ export const folderFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -291,7 +291,7 @@ export const folderFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -383,7 +383,7 @@ export const folderFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, diff --git a/packages/nodes-base/nodes/ClickUp/GenericFunctions.ts b/packages/nodes-base/nodes/ClickUp/GenericFunctions.ts index 0adbe15c4..79409e69c 100644 --- a/packages/nodes-base/nodes/ClickUp/GenericFunctions.ts +++ b/packages/nodes-base/nodes/ClickUp/GenericFunctions.ts @@ -24,7 +24,7 @@ export async function clickupApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.clickup.com/api/v2${resource}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/ClickUp/ListDescription.ts b/packages/nodes-base/nodes/ClickUp/ListDescription.ts index ed1de017c..0c28a1d90 100644 --- a/packages/nodes-base/nodes/ClickUp/ListDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ListDescription.ts @@ -100,7 +100,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -337,7 +337,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'teamId', - ] + ], }, required: true, }, @@ -432,7 +432,7 @@ export const listFields = [ loadOptionsMethod: 'getLists', loadOptionsDependsOn: [ 'folder', - ] + ], }, required: true, }, @@ -478,7 +478,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -584,7 +584,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -690,7 +690,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -825,7 +825,7 @@ export const listFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, diff --git a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts index 0d0d9e265..ef80c9565 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts @@ -395,7 +395,7 @@ export const taskFields = [ name: 'addAssignees', type: 'string', default: '', - description: 'Assignees IDs. Multiple ca be added separated by comma' + description: 'Assignees IDs. Multiple ca be added separated by comma', }, { displayName: 'Content', @@ -458,14 +458,14 @@ export const taskFields = [ name: 'removeAssignees', type: 'string', default: '', - description: 'Assignees IDs. Multiple ca be added separated by comma' + description: 'Assignees IDs. Multiple ca be added separated by comma', }, { displayName: 'Status', name: 'status', type: 'string', default: '', - description: 'status' + description: 'status', }, { displayName: 'Start Date', @@ -552,7 +552,7 @@ export const taskFields = [ loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ 'team', - ] + ], }, required: true, }, @@ -1053,7 +1053,7 @@ export const taskFields = [ ], operation: [ 'setCustomField', - ] + ], }, }, default: false, diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts index d38e39f44..9cb39f734 100644 --- a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts @@ -453,7 +453,7 @@ export const timeEntryFields = [ name: 'description', type: 'string', default: '', - description: 'Description of the time entry' + description: 'Description of the time entry', }, { displayName: 'Tags IDs', @@ -463,7 +463,7 @@ export const timeEntryFields = [ loadOptionsDependsOn: [ 'team', ], - loadOptionsMethod: 'getTimeEntryTags' + loadOptionsMethod: 'getTimeEntryTags', }, default: [], }, @@ -538,7 +538,7 @@ export const timeEntryFields = [ name: 'description', type: 'string', default: '', - description: 'Description of the time entry' + description: 'Description of the time entry', }, ], }, @@ -823,7 +823,7 @@ export const timeEntryFields = [ name: 'description', type: 'string', default: '', - description: 'Description of the time entry' + description: 'Description of the time entry', }, { displayName: 'Duration (minutes)', @@ -846,7 +846,7 @@ export const timeEntryFields = [ loadOptionsDependsOn: [ 'spaceId', ], - loadOptionsMethod: 'getTags' + loadOptionsMethod: 'getTags', }, default: [], }, diff --git a/packages/nodes-base/nodes/Clockify/Clockify.node.ts b/packages/nodes-base/nodes/Clockify/Clockify.node.ts index c7d67c116..32dabb3a5 100644 --- a/packages/nodes-base/nodes/Clockify/Clockify.node.ts +++ b/packages/nodes-base/nodes/Clockify/Clockify.node.ts @@ -75,15 +75,15 @@ export class Clockify implements INodeType { options: [ { name: 'Project', - value: 'project' + value: 'project', }, { name: 'Tag', - value: 'tag' + value: 'tag', }, { name: 'Time Entry', - value: 'timeEntry' + value: 'timeEntry', }, ], default: 'project', diff --git a/packages/nodes-base/nodes/Clockify/ClockifyTrigger.node.ts b/packages/nodes-base/nodes/Clockify/ClockifyTrigger.node.ts index 997fb5cdb..9f6384ed7 100644 --- a/packages/nodes-base/nodes/Clockify/ClockifyTrigger.node.ts +++ b/packages/nodes-base/nodes/Clockify/ClockifyTrigger.node.ts @@ -37,7 +37,7 @@ export class ClockifyTrigger implements INodeType { { name: 'clockifyApi', required: true, - } + }, ], polling: true, properties: [ @@ -59,12 +59,12 @@ export class ClockifyTrigger implements INodeType { { name: 'New Time Entry', value: EntryTypeEnum.NEW_TIME_ENTRY, - } + }, ], required: true, default: EntryTypeEnum.NEW_TIME_ENTRY, }, - ] + ], }; methods = { diff --git a/packages/nodes-base/nodes/Clockify/CommonDtos.ts b/packages/nodes-base/nodes/Clockify/CommonDtos.ts index f31a27250..c85c89234 100644 --- a/packages/nodes-base/nodes/Clockify/CommonDtos.ts +++ b/packages/nodes-base/nodes/Clockify/CommonDtos.ts @@ -7,7 +7,7 @@ enum MembershipStatusEnum { PENDING = 'PENDING', ACTIVE = 'ACTIVE', DECLINED = 'DECLINED', - INACTIVE = 'INACTIVE' + INACTIVE = 'INACTIVE', } export interface IMembershipDto { diff --git a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts index ec87a6d90..e5a40087a 100644 --- a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts +++ b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts @@ -295,7 +295,7 @@ export const projectFields = [ name: 'contains-client', type: 'boolean', default: false, - description: 'If provided, projects will be filtered by whether they have a client.; ' + description: 'If provided, projects will be filtered by whether they have a client.; ', }, { displayName: 'Client Status', diff --git a/packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts b/packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts index adda95c8a..1a77ac465 100644 --- a/packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts +++ b/packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts @@ -2,7 +2,7 @@ import { IHourlyRateDto, IMembershipDto } from './CommonDtos'; enum EstimateEnum { AUTO = "AUTO", - MANUAL = "MANUAL" + MANUAL = "MANUAL", } interface IEstimateDto { @@ -42,7 +42,7 @@ export interface IProjectRequest { enum TaskStatusEnum { ACTIVE = 'ACTIVE', - DONE = 'DONE' + DONE = 'DONE', } export interface ITaskDto { diff --git a/packages/nodes-base/nodes/Clockify/UserDtos.ts b/packages/nodes-base/nodes/Clockify/UserDtos.ts index 3c3d1d208..1a8453866 100644 --- a/packages/nodes-base/nodes/Clockify/UserDtos.ts +++ b/packages/nodes-base/nodes/Clockify/UserDtos.ts @@ -1,7 +1,7 @@ import { IMembershipDto } from './CommonDtos'; enum UserStatusEnum { - ACTIVE, PENDING_EMAIL_VERIFICATION, DELETED + ACTIVE, PENDING_EMAIL_VERIFICATION, DELETED, } interface IUserSettingsDto { diff --git a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts index f0c0e4ccd..904f470a7 100644 --- a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts @@ -51,7 +51,7 @@ export const collectionFields = [ }, }, required: true, - description: 'Name of the collection to operate on.' + description: 'Name of the collection to operate on.', }, // Collection:entry:getAll @@ -109,7 +109,7 @@ export const collectionFields = [ ], operation: [ 'getAll', - ] + ], }, }, options: [ @@ -189,7 +189,7 @@ export const collectionFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'The entry ID.', @@ -210,7 +210,7 @@ export const collectionFields = [ operation: [ 'create', 'update', - ] + ], }, }, description: 'If new entry fields should be set via the value-key pair UI or JSON.', @@ -234,7 +234,7 @@ export const collectionFields = [ operation: [ 'create', 'update', - ] + ], }, }, description: 'Entry data to send as JSON.', @@ -258,7 +258,7 @@ export const collectionFields = [ operation: [ 'create', 'update', - ] + ], }, }, options: [ diff --git a/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts b/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts index d50862984..27e51094f 100644 --- a/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/CollectionFunctions.ts @@ -15,7 +15,7 @@ export async function createCollectionEntry(this: IExecuteFunctions | IExecuteSi if (id) { body.data = { _id: id, - ...body.data + ...body.data, }; } diff --git a/packages/nodes-base/nodes/Cockpit/FormDescription.ts b/packages/nodes-base/nodes/Cockpit/FormDescription.ts index 3b781d772..795a1a211 100644 --- a/packages/nodes-base/nodes/Cockpit/FormDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/FormDescription.ts @@ -22,7 +22,7 @@ export const formOperations = [ ], default: 'submit', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const formFields = [ @@ -39,7 +39,7 @@ export const formFields = [ }, default: '', required: true, - description: 'Name of the form to operate on.' + description: 'Name of the form to operate on.', }, // Form:submit @@ -55,7 +55,7 @@ export const formFields = [ ], operation: [ 'submit', - ] + ], }, }, description: 'If form fields should be set via the value-key pair UI or JSON.', @@ -78,7 +78,7 @@ export const formFields = [ ], operation: [ 'submit', - ] + ], }, }, description: 'Form data to send as JSON.', @@ -101,7 +101,7 @@ export const formFields = [ ], operation: [ 'submit', - ] + ], }, }, options: [ diff --git a/packages/nodes-base/nodes/Cockpit/FormFunctions.ts b/packages/nodes-base/nodes/Cockpit/FormFunctions.ts index 36a1bdc38..f2a3e5eec 100644 --- a/packages/nodes-base/nodes/Cockpit/FormFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/FormFunctions.ts @@ -9,7 +9,7 @@ import { cockpitApiRequest } from './GenericFunctions'; export async function submitForm(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, resourceName: string, form: IDataObject) { const body: IForm = { - form + form, }; return cockpitApiRequest.call(this, 'post', `/forms/submit/${resourceName}`, body); diff --git a/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts b/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts index 3f3bf39ac..baf97ec13 100644 --- a/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Cockpit/GenericFunctions.ts @@ -20,11 +20,11 @@ export async function cockpitApiRequest(this: IExecuteFunctions | IExecuteSingle }, method, qs: { - token: credentials!.accessToken + token: credentials!.accessToken, }, body, uri: uri || `${credentials!.url}/api${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); diff --git a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts index 1e91fce16..59d391347 100644 --- a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts +++ b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts @@ -21,7 +21,7 @@ export const singletonOperations = [ ], default: 'get', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const singletonFields = [ @@ -41,6 +41,6 @@ export const singletonFields = [ }, }, required: true, - description: 'Name of the singleton to operate on.' + description: 'Name of the singleton to operate on.', }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Coda/Coda.node.ts b/packages/nodes-base/nodes/Coda/Coda.node.ts index 05ea6f71a..f360b825b 100644 --- a/packages/nodes-base/nodes/Coda/Coda.node.ts +++ b/packages/nodes-base/nodes/Coda/Coda.node.ts @@ -49,7 +49,7 @@ export class Coda implements INodeType { { name: 'codaApi', required: true, - } + }, ], properties: [ { @@ -299,7 +299,7 @@ export class Coda implements INodeType { } else { returnData.push({ id: responseData.id, - ...responseData.values + ...responseData.values, }); } } @@ -348,7 +348,7 @@ export class Coda implements INodeType { for (const item of responseData) { returnData.push({ id: item.id, - ...item.values + ...item.values, }); } return [this.helpers.returnJsonArray(returnData)]; @@ -624,7 +624,7 @@ export class Coda implements INodeType { }); } body.row = { - cells + cells, }; await codaApiRequest.call(this, 'PUT', endpoint, body, qs); } diff --git a/packages/nodes-base/nodes/Coda/ControlDescription.ts b/packages/nodes-base/nodes/Coda/ControlDescription.ts index 49311d549..9d10e94db 100644 --- a/packages/nodes-base/nodes/Coda/ControlDescription.ts +++ b/packages/nodes-base/nodes/Coda/ControlDescription.ts @@ -50,7 +50,7 @@ export const controlFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'ID of the doc.', @@ -68,7 +68,7 @@ export const controlFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'The control to get the row from.', @@ -92,7 +92,7 @@ export const controlFields = [ ], operation: [ 'getAll', - ] + ], }, }, description: 'ID of the doc.', @@ -108,7 +108,7 @@ export const controlFields = [ ], operation: [ 'getAll', - ] + ], }, }, default: false, diff --git a/packages/nodes-base/nodes/Coda/FormulaDescription.ts b/packages/nodes-base/nodes/Coda/FormulaDescription.ts index 9e6ddbc04..9d1af1059 100644 --- a/packages/nodes-base/nodes/Coda/FormulaDescription.ts +++ b/packages/nodes-base/nodes/Coda/FormulaDescription.ts @@ -50,7 +50,7 @@ export const formulaFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'ID of the doc.', @@ -68,7 +68,7 @@ export const formulaFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'The formula to get the row from.', @@ -92,7 +92,7 @@ export const formulaFields = [ ], operation: [ 'getAll', - ] + ], }, }, description: 'ID of the doc.', @@ -108,7 +108,7 @@ export const formulaFields = [ ], operation: [ 'getAll', - ] + ], }, }, default: false, diff --git a/packages/nodes-base/nodes/Coda/GenericFunctions.ts b/packages/nodes-base/nodes/Coda/GenericFunctions.ts index 81a755085..b9270b515 100644 --- a/packages/nodes-base/nodes/Coda/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Coda/GenericFunctions.ts @@ -18,7 +18,7 @@ export async function codaApiRequest(this: IExecuteFunctions | IExecuteSingleFun qs, body, uri: uri ||`https://coda.io/apis/v1${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Coda/TableDescription.ts b/packages/nodes-base/nodes/Coda/TableDescription.ts index 2ebddf758..49ffd4902 100644 --- a/packages/nodes-base/nodes/Coda/TableDescription.ts +++ b/packages/nodes-base/nodes/Coda/TableDescription.ts @@ -75,7 +75,7 @@ export const tableFields = [ ], operation: [ 'createRow', - ] + ], }, }, description: 'ID of the doc.', @@ -99,7 +99,7 @@ export const tableFields = [ ], operation: [ 'createRow', - ] + ], }, }, description: 'The table to create the row in.', @@ -136,7 +136,7 @@ export const tableFields = [ description: `Optional column IDs, URLs, or names (fragile and discouraged)
, specifying columns to be used as upsert keys. If more than one separate by ,`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* table:get */ @@ -157,7 +157,7 @@ export const tableFields = [ ], operation: [ 'getRow', - ] + ], }, }, description: 'ID of the doc.', @@ -181,7 +181,7 @@ export const tableFields = [ ], operation: [ 'getRow', - ] + ], }, }, description: 'The table to get the row from.', @@ -199,7 +199,7 @@ export const tableFields = [ ], operation: [ 'getRow', - ] + ], }, }, description: `ID or name of the row. Names are discouraged because
@@ -262,7 +262,7 @@ export const tableFields = [ ], description: `The format that cell values are returned as.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* table:getAll */ @@ -283,7 +283,7 @@ export const tableFields = [ ], operation: [ 'getAllRows', - ] + ], }, }, description: 'ID of the doc.', @@ -307,7 +307,7 @@ export const tableFields = [ ], operation: [ 'getAllRows', - ] + ], }, }, description: 'The table to get the rows from.', @@ -323,7 +323,7 @@ export const tableFields = [ ], operation: [ 'getAllRows', - ] + ], }, }, default: false, @@ -444,7 +444,7 @@ export const tableFields = [ default: false, description: `If true, returns only visible rows and columns for the table.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* row:delete */ @@ -465,7 +465,7 @@ export const tableFields = [ ], operation: [ 'deleteRow', - ] + ], }, }, description: 'ID of the doc.', @@ -489,7 +489,7 @@ export const tableFields = [ ], operation: [ 'deleteRow', - ] + ], }, }, description: 'The table to delete the row in.', @@ -507,7 +507,7 @@ export const tableFields = [ ], operation: [ 'deleteRow', - ] + ], }, }, description: 'Row IDs to delete.', @@ -531,7 +531,7 @@ export const tableFields = [ ], operation: [ 'pushButton', - ] + ], }, }, description: 'ID of the doc.', @@ -555,7 +555,7 @@ export const tableFields = [ ], operation: [ 'pushButton', - ] + ], }, }, description: 'The table to get the row from.', @@ -573,7 +573,7 @@ export const tableFields = [ ], operation: [ 'pushButton', - ] + ], }, }, description: `ID or name of the row. Names are discouraged because
@@ -602,7 +602,7 @@ export const tableFields = [ ], operation: [ 'pushButton', - ] + ], }, }, }, @@ -625,7 +625,7 @@ export const tableFields = [ ], operation: [ 'getColumn', - ] + ], }, }, description: 'ID of the doc.', @@ -649,7 +649,7 @@ export const tableFields = [ ], operation: [ 'getColumn', - ] + ], }, }, description: 'The table to get the row from.', @@ -667,7 +667,7 @@ export const tableFields = [ ], operation: [ 'getColumn', - ] + ], }, }, description: 'The table to get the row from.', @@ -691,7 +691,7 @@ export const tableFields = [ ], operation: [ 'getAllColumns', - ] + ], }, }, description: 'ID of the doc.', @@ -715,7 +715,7 @@ export const tableFields = [ ], operation: [ 'getAllColumns', - ] + ], }, }, description: 'The table to get the row from.', @@ -731,7 +731,7 @@ export const tableFields = [ ], operation: [ 'getAllColumns', - ] + ], }, }, default: false, diff --git a/packages/nodes-base/nodes/Coda/ViewDescription.ts b/packages/nodes-base/nodes/Coda/ViewDescription.ts index d9c847260..88795ec7c 100644 --- a/packages/nodes-base/nodes/Coda/ViewDescription.ts +++ b/packages/nodes-base/nodes/Coda/ViewDescription.ts @@ -75,7 +75,7 @@ export const viewFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'ID of the doc.', @@ -93,7 +93,7 @@ export const viewFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'The view to get the row from.', @@ -117,7 +117,7 @@ export const viewFields = [ ], operation: [ 'getAll', - ] + ], }, }, description: 'ID of the doc.', @@ -133,7 +133,7 @@ export const viewFields = [ ], operation: [ 'getAll', - ] + ], }, }, default: false, @@ -182,7 +182,7 @@ export const viewFields = [ ], operation: [ 'getAllViewRows', - ] + ], }, }, description: 'ID of the doc.', @@ -206,7 +206,7 @@ export const viewFields = [ ], operation: [ 'getAllViewRows', - ] + ], }, }, description: 'The table to get the rows from.', @@ -222,7 +222,7 @@ export const viewFields = [ ], operation: [ 'getAllViewRows', - ] + ], }, }, default: false, @@ -336,7 +336,7 @@ export const viewFields = [ description: `Specifies the sort order of the rows returned.
If left unspecified, rows are returned by creation time ascending.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* view:getAllViewColumns */ @@ -357,7 +357,7 @@ export const viewFields = [ ], operation: [ 'getAllViewColumns', - ] + ], }, }, description: 'ID of the doc.', @@ -381,7 +381,7 @@ export const viewFields = [ ], operation: [ 'getAllViewColumns', - ] + ], }, }, description: 'The table to get the rows from.', @@ -397,7 +397,7 @@ export const viewFields = [ ], operation: [ 'getAllViewColumns', - ] + ], }, }, default: false, @@ -446,7 +446,7 @@ export const viewFields = [ ], operation: [ 'deleteViewRow', - ] + ], }, }, description: 'ID of the doc.', @@ -470,7 +470,7 @@ export const viewFields = [ ], operation: [ 'deleteViewRow', - ] + ], }, }, description: 'The view to get the row from.', @@ -494,7 +494,7 @@ export const viewFields = [ ], operation: [ 'deleteViewRow', - ] + ], }, }, description: 'The view to get the row from.', @@ -518,7 +518,7 @@ export const viewFields = [ ], operation: [ 'pushViewButton', - ] + ], }, }, description: 'ID of the doc.', @@ -542,7 +542,7 @@ export const viewFields = [ ], operation: [ 'pushViewButton', - ] + ], }, }, description: 'The view to get the row from.', @@ -566,7 +566,7 @@ export const viewFields = [ ], operation: [ 'pushViewButton', - ] + ], }, }, description: 'The view to get the row from.', @@ -591,7 +591,7 @@ export const viewFields = [ ], operation: [ 'pushViewButton', - ] + ], }, }, }, @@ -614,7 +614,7 @@ export const viewFields = [ ], operation: [ 'updateViewRow', - ] + ], }, }, description: 'ID of the doc.', @@ -638,7 +638,7 @@ export const viewFields = [ ], operation: [ 'updateViewRow', - ] + ], }, }, description: 'The view to get the row from.', @@ -662,7 +662,7 @@ export const viewFields = [ ], operation: [ 'updateViewRow', - ] + ], }, }, description: 'The view to get the row from.', @@ -680,7 +680,7 @@ export const viewFields = [ ], operation: [ 'updateViewRow', - ] + ], }, }, description: 'The view to get the row from.', @@ -709,6 +709,6 @@ export const viewFields = [ default: false, description: `If true, the API will not attempt to parse the data in any way.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts index 7459e6781..ddf58a4bc 100644 --- a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts +++ b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts @@ -197,7 +197,7 @@ export const coinFields = [ 'coin', ], searchBy: [ - 'coinId' + 'coinId', ], }, }, @@ -220,7 +220,7 @@ export const coinFields = [ 'coin', ], searchBy: [ - 'contractAddress' + 'contractAddress', ], }, }, @@ -249,7 +249,7 @@ export const coinFields = [ 'coin', ], searchBy: [ - 'contractAddress' + 'contractAddress', ], }, }, @@ -269,7 +269,7 @@ export const coinFields = [ 'coin', ], searchBy: [ - 'contractAddress' + 'contractAddress', ], }, }, @@ -292,7 +292,7 @@ export const coinFields = [ 'coin', ], searchBy: [ - 'coinId' + 'coinId', ], }, hide: { @@ -541,7 +541,7 @@ export const coinFields = [ { name: 'Id Desc', value: 'id_desc', - } + }, ], default: '', description: 'Sort results by field.', @@ -740,42 +740,42 @@ export const coinFields = [ name: 'community_data', type: 'boolean', default: false, - description: 'Include community data.' + description: 'Include community data.', }, { displayName: 'Developer data', name: 'developer_data', type: 'boolean', default: false, - description: 'Include developer data.' + description: 'Include developer data.', }, { displayName: 'Localization', name: 'localization', type: 'boolean', default: false, - description: 'Include all localized languages in response.' + description: 'Include all localized languages in response.', }, { displayName: 'Market data', name: 'market_data', type: 'boolean', default: false, - description: 'Include market data.' + description: 'Include market data.', }, { displayName: 'Sparkline', name: 'sparkline', type: 'boolean', default: false, - description: 'Include sparkline 7 days data (eg. true, false).' + description: 'Include sparkline 7 days data (eg. true, false).', }, { displayName: 'Tickers', name: 'tickers', type: 'boolean', default: false, - description: 'Include tickers data.' + description: 'Include tickers data.', }, ], }, diff --git a/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts b/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts index a3bcb7219..39fd7bda1 100644 --- a/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts +++ b/packages/nodes-base/nodes/CoinGecko/CoinGecko.node.ts @@ -336,7 +336,7 @@ export class CoinGecko implements INodeType { 'GET', `/coins/${coinId}/tickers`, {}, - qs, + qs ); } else { const limit = this.getNodeParameter('limit', i) as number; diff --git a/packages/nodes-base/nodes/Contentful/AssetDescription.ts b/packages/nodes-base/nodes/Contentful/AssetDescription.ts index 30b167713..f10046c32 100644 --- a/packages/nodes-base/nodes/Contentful/AssetDescription.ts +++ b/packages/nodes-base/nodes/Contentful/AssetDescription.ts @@ -52,7 +52,7 @@ export const fields = [ }, }, default: 'master', - description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".' + description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".', }, { displayName: 'Return All', @@ -104,7 +104,7 @@ export const fields = [ displayOptions: { show: { resource: [ - resource.value + resource.value, ], operation: [ 'get', diff --git a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts index 05e18b137..0bac8e11d 100644 --- a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts +++ b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts @@ -47,7 +47,7 @@ export const fields = [ }, }, default: 'master', - description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".' + description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".', }, { displayName: 'Content Type ID', diff --git a/packages/nodes-base/nodes/Contentful/Contentful.node.ts b/packages/nodes-base/nodes/Contentful/Contentful.node.ts index 777cccb05..0097ee180 100644 --- a/packages/nodes-base/nodes/Contentful/Contentful.node.ts +++ b/packages/nodes-base/nodes/Contentful/Contentful.node.ts @@ -31,14 +31,14 @@ export class Contentful implements INodeType { description: 'Consume Contenful API', defaults: { name: 'Contentful', - color: '#2E75D4' + color: '#2E75D4', }, inputs: ['main'], outputs: ['main'], credentials: [ { name: 'contentfulApi', - required: true + required: true, }, ], properties: [ @@ -51,11 +51,11 @@ export class Contentful implements INodeType { options: [ { name: 'Delivery API', - value: 'deliveryApi' + value: 'deliveryApi', }, { name: 'Preview API', - value: 'previewApi' + value: 'previewApi', }, ], }, @@ -72,7 +72,7 @@ export class Contentful implements INodeType { SpaceDescription.resource, ], default: 'entry', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, // Operations: diff --git a/packages/nodes-base/nodes/Contentful/EntryDescription.ts b/packages/nodes-base/nodes/Contentful/EntryDescription.ts index dcce1d7c6..c377ed3f6 100644 --- a/packages/nodes-base/nodes/Contentful/EntryDescription.ts +++ b/packages/nodes-base/nodes/Contentful/EntryDescription.ts @@ -31,8 +31,8 @@ export const operations = [ }, ], default: 'get', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const fields = [ diff --git a/packages/nodes-base/nodes/Contentful/GenericFunctions.ts b/packages/nodes-base/nodes/Contentful/GenericFunctions.ts index 4c81f17bc..f5a25b8c4 100644 --- a/packages/nodes-base/nodes/Contentful/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Contentful/GenericFunctions.ts @@ -27,7 +27,7 @@ export async function contentfulApiRequest(this: IExecuteFunctions | IExecuteSin qs, body, uri: uri ||`https://${isPreview ? 'preview' : 'cdn'}.contentful.com${resource}`, - json: true + json: true, }; if (isPreview) { diff --git a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts index 5f06237af..a48d83cb7 100644 --- a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts +++ b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts @@ -48,7 +48,7 @@ export const fields = [ }, }, default: 'master', - description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".' + description: 'The id for the Contentful environment (e.g. master, staging, etc.). Depending on your plan, you might not have environments. In that case use "master".', }, { displayName: 'Return All', diff --git a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts index 9e89c340e..7a05ebc9e 100644 --- a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts +++ b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts @@ -21,17 +21,17 @@ export const fields = [ name: 'name', type: 'string', default: '', - description: 'Name of the search parameter to set.' + description: 'Name of the search parameter to set.', }, { displayName: 'Parameter Value', name: 'value', type: 'string', default: '', - description: 'Value of the search parameter to set.' + description: 'Value of the search parameter to set.', }, ], }, ], - } + }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts index 870e8e2e8..9241dcece 100644 --- a/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts +++ b/packages/nodes-base/nodes/ConvertKit/ConvertKit.node.ts @@ -59,7 +59,7 @@ export class ConvertKit implements INodeType { { name: 'convertKitApi', required: true, - } + }, ], properties: [ { @@ -89,7 +89,7 @@ export class ConvertKit implements INodeType { }, ], default: 'form', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, //-------------------- // Field Description @@ -170,7 +170,7 @@ export class ConvertKit implements INodeType { return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -389,7 +389,7 @@ export class ConvertKit implements INodeType { const names = ((this.getNodeParameter('name', i) as string).split(',') as string[]).map((e) => ({ name: e })); const body: IDataObject = { - tag: names + tag: names, }; responseData = await convertKitApiRequest.call(this, 'POST', '/tags', body); diff --git a/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts b/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts index 80b4bbfc3..b8f6706a8 100644 --- a/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts +++ b/packages/nodes-base/nodes/ConvertKit/ConvertKitTrigger.node.ts @@ -254,7 +254,7 @@ export class ConvertKitTrigger implements INodeType { return returnData; }, - } + }, }; // @ts-ignore (because of request) @@ -290,7 +290,7 @@ export class ConvertKitTrigger implements INodeType { const body: IDataObject = { target_url: webhookUrl as string, event: { - name: event + name: event, }, }; diff --git a/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts b/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts index 2be001d18..36ab84d6d 100644 --- a/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts +++ b/packages/nodes-base/nodes/Copper/CopperTrigger.node.ts @@ -33,7 +33,7 @@ export class CopperTrigger implements INodeType { { name: 'copperApi', required: true, - } + }, ], webhooks: [ { diff --git a/packages/nodes-base/nodes/Copper/GenericFunctions.ts b/packages/nodes-base/nodes/Copper/GenericFunctions.ts index 31bd1379c..7c9a86619 100644 --- a/packages/nodes-base/nodes/Copper/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Copper/GenericFunctions.ts @@ -30,7 +30,7 @@ export async function copperApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.prosperworks.com/developer_api/v1${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Cron.node.ts b/packages/nodes-base/nodes/Cron.node.ts index 7f91b401e..20af9b84a 100644 --- a/packages/nodes-base/nodes/Cron.node.ts +++ b/packages/nodes-base/nodes/Cron.node.ts @@ -234,21 +234,21 @@ export class Cron implements INodeType { options: [ { name: 'Minutes', - value: 'minutes' + value: 'minutes', }, { name: 'Hours', - value: 'hours' + value: 'hours', }, ], default: 'hours', description: 'If it should trigger all X minutes or hours.', }, - ] + ], }, ], - } - ] + }, + ], }; diff --git a/packages/nodes-base/nodes/Crypto.node.ts b/packages/nodes-base/nodes/Crypto.node.ts index 7fd4cbda4..beb90f3ff 100644 --- a/packages/nodes-base/nodes/Crypto.node.ts +++ b/packages/nodes-base/nodes/Crypto.node.ts @@ -40,17 +40,17 @@ export class Crypto implements INodeType { { name: 'Hash', description: 'Hash a text in a specified format.', - value: 'hash' + value: 'hash', }, { name: 'Hmac', description: 'Hmac a text in a specified format.', - value: 'hmac' + value: 'hmac', }, { name: 'Sign', description: 'Sign a string using a private key.', - value: 'sign' + value: 'sign', }, ], default: 'hash', @@ -61,7 +61,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hash' + 'hash', ], }, }, @@ -90,7 +90,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hash' + 'hash', ], }, }, @@ -108,7 +108,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action: [ - 'hash' + 'hash', ], }, }, @@ -120,7 +120,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hash' + 'hash', ], }, }, @@ -144,7 +144,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hmac' + 'hmac', ], }, }, @@ -173,7 +173,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hmac' + 'hmac', ], }, }, @@ -191,7 +191,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action: [ - 'hmac' + 'hmac', ], }, }, @@ -203,7 +203,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'hmac' + 'hmac', ], }, }, @@ -241,7 +241,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'sign' + 'sign', ], }, }, @@ -259,7 +259,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action: [ - 'sign' + 'sign', ], }, }, @@ -312,7 +312,7 @@ export class Crypto implements INodeType { displayOptions: { show: { action:[ - 'sign' + 'sign', ], }, }, @@ -344,7 +344,7 @@ export class Crypto implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts index 0893a9f21..7898a9289 100644 --- a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts @@ -48,7 +48,7 @@ export const campaignFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'The unique identifier for the campaign', @@ -69,7 +69,7 @@ export const campaignFields = [ ], operation: [ 'getMetrics', - ] + ], }, }, description: 'The unique identifier for the campaign', @@ -86,7 +86,7 @@ export const campaignFields = [ ], operation: [ 'getMetrics', - ] + ], }, }, description: 'Specify metric period', @@ -107,7 +107,7 @@ export const campaignFields = [ name: 'Months', value: 'months', }, - ] + ], }, { displayName: 'JSON Parameters', @@ -138,7 +138,7 @@ export const campaignFields = [ 'campaign', ], operation: [ - 'getMetrics' + 'getMetrics', ], jsonParameters: [ false, @@ -155,7 +155,7 @@ export const campaignFields = [ typeOptions: { minValue: 0, maxValue: 120, - } + }, }, { displayName: 'Type', @@ -192,7 +192,7 @@ export const campaignFields = [ name: 'Webhook', value: 'webhook', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts index a6a9576a9..abb0dcbb1 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts @@ -47,7 +47,7 @@ export const customerFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'The unique identifier for the customer.', @@ -69,7 +69,7 @@ export const customerFields = [ ], operation: [ 'upsert', - ] + ], }, }, description: 'The unique identifier for the customer.', @@ -168,7 +168,7 @@ export const customerFields = [ }, ], }, - ] + ], }, { displayName: 'Email', diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts index da0f40522..f97efc052 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerIo.node.ts @@ -48,7 +48,7 @@ export class CustomerIo implements INodeType { { name: 'customerIoApi', required: true, - } + }, ], properties: [ { @@ -87,7 +87,7 @@ export class CustomerIo implements INodeType { ...eventFields, // SEGMENT ...segmentOperations, - ...segmentFields + ...segmentFields, ], }; diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts b/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts index c9c079d0f..eb258a20b 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerIoTrigger.node.ts @@ -315,14 +315,14 @@ export class CustomerIoTrigger implements INodeType { } return true; }, - } + }, }; async webhook(this: IWebhookFunctions): Promise { const bodyData = this.getBodyData(); return { workflowData: [ - this.helpers.returnJsonArray(bodyData) + this.helpers.returnJsonArray(bodyData), ], }; } diff --git a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts index ac73dde9f..208228afb 100644 --- a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts @@ -47,7 +47,7 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, }, description: 'The unique identifier for the customer.', @@ -64,7 +64,7 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, }, description: 'Name of the event to track.', @@ -125,7 +125,7 @@ export const eventFields = [ ], jsonParameters: [ false, - ] + ], }, }, options: [ @@ -163,7 +163,7 @@ export const eventFields = [ }, ], }, - ] + ], }, { displayName: 'Type', @@ -190,7 +190,7 @@ export const eventFields = [ ], operation: [ 'trackAnonymous', - ] + ], }, }, description: 'The unique identifier for the customer.', @@ -251,7 +251,7 @@ export const eventFields = [ ], jsonParameters: [ false, - ] + ], }, }, options: [ @@ -288,7 +288,7 @@ export const eventFields = [ }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts index 9586c1373..3f1e691f2 100644 --- a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts @@ -46,7 +46,7 @@ export const segmentFields = [ operation: [ 'add', 'remove', - ] + ], }, }, description: 'The unique identifier of the segment.', @@ -65,7 +65,7 @@ export const segmentFields = [ operation: [ 'add', 'remove', - ] + ], }, }, description: 'A list of customer ids to add to the segment.', diff --git a/packages/nodes-base/nodes/DateTime.node.ts b/packages/nodes-base/nodes/DateTime.node.ts index e3a9a299f..019ff3d4a 100644 --- a/packages/nodes-base/nodes/DateTime.node.ts +++ b/packages/nodes-base/nodes/DateTime.node.ts @@ -35,7 +35,7 @@ export class DateTime implements INodeType { { name: 'Format a Date', description: 'Convert a date to a different format', - value: 'format' + value: 'format', }, ], default: 'format', @@ -162,7 +162,7 @@ export class DateTime implements INodeType { displayOptions: { show: { action:[ - 'format' + 'format', ], }, }, @@ -218,7 +218,7 @@ export class DateTime implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Discord/Discord.node.ts b/packages/nodes-base/nodes/Discord/Discord.node.ts index 4e8d1e046..995c0e7e0 100644 --- a/packages/nodes-base/nodes/Discord/Discord.node.ts +++ b/packages/nodes-base/nodes/Discord/Discord.node.ts @@ -41,7 +41,7 @@ export class Discord implements INodeType { }, default: '', description: 'The text to send.', - } + }, ], }; @@ -67,9 +67,9 @@ export class Discord implements INodeType { body, uri: `${webhookUri}`, headers: { - 'content-type': 'application/json; charset=utf-8' + 'content-type': 'application/json; charset=utf-8', }, - json: true + json: true, }; let maxTries = 5; diff --git a/packages/nodes-base/nodes/Disqus/Disqus.node.ts b/packages/nodes-base/nodes/Disqus/Disqus.node.ts index 8d5a2692e..8278f3997 100644 --- a/packages/nodes-base/nodes/Disqus/Disqus.node.ts +++ b/packages/nodes-base/nodes/Disqus/Disqus.node.ts @@ -30,7 +30,7 @@ export class Disqus implements INodeType { { name: 'disqusApi', required: true, - } + }, ], properties: [ { @@ -81,7 +81,7 @@ export class Disqus implements INodeType { name: 'Get All Posts', value: 'getPosts', description: 'Return a list of posts within a forum', - } + }, ], default: 'get', description: 'The operation to perform.', @@ -316,7 +316,7 @@ export class Disqus implements INodeType { }, ], default: [], - description: 'You may specify filters for your response.' + description: 'You may specify filters for your response.', }, { displayName: 'Include', @@ -343,7 +343,7 @@ export class Disqus implements INodeType { { name: 'DESC', value: 'desc', - } + }, ], default: 'asc', description: 'You may specify order to sort your response.', @@ -469,7 +469,7 @@ export class Disqus implements INodeType { { name: 'DESC', value: 'desc', - } + }, ], default: 'asc', description: 'You may specify order to sort your response.', @@ -606,7 +606,7 @@ export class Disqus implements INodeType { { name: 'DESC', value: 'desc', - } + }, ], default: 'asc', description: 'You may specify order to sort your response.', @@ -626,7 +626,7 @@ export class Disqus implements INodeType { description: 'Looks up a thread by ID. You may pass us the "ident"
query type instead of an ID by including "forum". You may
pass us the "link" query type to filter by URL. You must pass
the "forum" if you do not have the Pro API Access addon.', }, ], - } + }, ], }; diff --git a/packages/nodes-base/nodes/Disqus/GenericFunctions.ts b/packages/nodes-base/nodes/Disqus/GenericFunctions.ts index 5f5f88bfd..353c95320 100644 --- a/packages/nodes-base/nodes/Disqus/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Disqus/GenericFunctions.ts @@ -13,7 +13,7 @@ export async function disqusApiRequest( qs: IDataObject = {}, uri?: string, body: IDataObject = {}, - option: IDataObject = {}, + option: IDataObject = {} ): Promise { // tslint:disable-line:no-any const credentials = this.getCredentials('disqusApi') as IDataObject; @@ -38,7 +38,7 @@ export async function disqusApiRequest( method, body, uri: `https://disqus.com/api/3.0/${uri}?${queryStringElements.join('&')}`, - json: true + json: true, }; options = Object.assign({}, options, option); @@ -74,7 +74,7 @@ export async function disqusApiRequestAllItems( qs: IDataObject = {}, uri?: string, body: IDataObject = {}, - option: IDataObject = {}, + option: IDataObject = {} ): Promise { // tslint:disable-line:no-any const returnData: IDataObject[] = []; diff --git a/packages/nodes-base/nodes/Drift/ContactDescription.ts b/packages/nodes-base/nodes/Drift/ContactDescription.ts index 146adefa7..26d6598bb 100644 --- a/packages/nodes-base/nodes/Drift/ContactDescription.ts +++ b/packages/nodes-base/nodes/Drift/ContactDescription.ts @@ -116,7 +116,7 @@ export const contactFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the contact.', @@ -159,7 +159,7 @@ export const contactFields = [ default: '', description: 'The phone number associated with the contact.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* contact:get */ @@ -177,7 +177,7 @@ export const contactFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the contact.', @@ -198,7 +198,7 @@ export const contactFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Unique identifier for the contact.', diff --git a/packages/nodes-base/nodes/Drift/GenericFunctions.ts b/packages/nodes-base/nodes/Drift/GenericFunctions.ts index 904fc4c6b..f021a01d3 100644 --- a/packages/nodes-base/nodes/Drift/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Drift/GenericFunctions.ts @@ -18,7 +18,7 @@ export async function driftApiRequest(this: IExecuteFunctions | IWebhookFunction body, qs: query, uri: uri || `https://driftapi.com${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { diff --git a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts index 38c5c73f8..1c7efac40 100644 --- a/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts +++ b/packages/nodes-base/nodes/Dropbox/Dropbox.node.ts @@ -66,7 +66,7 @@ export class Dropbox implements INodeType { { name: 'OAuth2', value: 'oAuth2', - } + }, ], default: 'accessToken', description: 'Means of authenticating with the service.', @@ -192,7 +192,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'copy' + 'copy', ], resource: [ 'file', @@ -212,7 +212,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'copy' + 'copy', ], resource: [ 'file', @@ -236,7 +236,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'file', @@ -261,7 +261,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'move' + 'move', ], resource: [ 'file', @@ -281,7 +281,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'move' + 'move', ], resource: [ 'file', @@ -305,7 +305,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -324,7 +324,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -346,7 +346,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -364,7 +364,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -381,13 +381,13 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - false + false, ], }, @@ -404,13 +404,13 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - true + true, ], }, @@ -437,7 +437,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'folder', @@ -459,7 +459,7 @@ export class Dropbox implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], resource: [ 'folder', @@ -502,7 +502,7 @@ export class Dropbox implements INodeType { requestMethod = 'POST'; query.arg = JSON.stringify({ - path: this.getNodeParameter('path', i) as string + path: this.getNodeParameter('path', i) as string, }); endpoint = 'https://content.dropboxapi.com/2/files/download'; @@ -517,7 +517,7 @@ export class Dropbox implements INodeType { query.arg = JSON.stringify({ mode: 'overwrite', - path: this.getNodeParameter('path', i) as string + path: this.getNodeParameter('path', i) as string, }); endpoint = 'https://content.dropboxapi.com/2/files/upload'; diff --git a/packages/nodes-base/nodes/EditImage.node.ts b/packages/nodes-base/nodes/EditImage.node.ts index 88db92421..9e10000ff 100644 --- a/packages/nodes-base/nodes/EditImage.node.ts +++ b/packages/nodes-base/nodes/EditImage.node.ts @@ -95,7 +95,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -109,7 +109,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -123,7 +123,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -137,7 +137,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -151,7 +151,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -168,7 +168,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'text' + 'text', ], }, }, @@ -191,7 +191,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'blur' + 'blur', ], }, }, @@ -209,7 +209,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'blur' + 'blur', ], }, }, @@ -228,7 +228,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'border' + 'border', ], }, }, @@ -242,7 +242,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'border' + 'border', ], }, }, @@ -256,7 +256,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'border' + 'border', ], }, }, @@ -275,7 +275,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'crop' + 'crop', ], }, }, @@ -289,7 +289,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'crop' + 'crop', ], }, }, @@ -303,7 +303,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'crop' + 'crop', ], }, }, @@ -317,7 +317,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'crop' + 'crop', ], }, }, @@ -335,7 +335,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'resize' + 'resize', ], }, }, @@ -349,7 +349,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'resize' + 'resize', ], }, }, @@ -390,7 +390,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'resize' + 'resize', ], }, }, @@ -412,7 +412,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'rotate' + 'rotate', ], }, }, @@ -426,7 +426,7 @@ export class EditImage implements INodeType { displayOptions: { show: { operation: [ - 'rotate' + 'rotate', ], }, }, @@ -506,7 +506,7 @@ export class EditImage implements INodeType { ], }, - ] + ], }; diff --git a/packages/nodes-base/nodes/EmailReadImap.node.ts b/packages/nodes-base/nodes/EmailReadImap.node.ts index 1fb3ba3ec..22aee855c 100644 --- a/packages/nodes-base/nodes/EmailReadImap.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap.node.ts @@ -41,7 +41,7 @@ export class EmailReadImap implements INodeType { { name: 'imap', required: true, - } + }, ], properties: [ { @@ -89,7 +89,7 @@ export class EmailReadImap implements INodeType { { name: 'RAW', value: 'raw', - description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.' + description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.', }, { name: 'Resolved', @@ -148,7 +148,7 @@ export class EmailReadImap implements INodeType { name: 'customEmailConfig', type: 'string', default: '["UNSEEN"]', - description: 'Custom email fetching rules. See node-imap\'s search function for more details' + description: 'Custom email fetching rules. See node-imap\'s search function for more details', }, { displayName: 'Ignore SSL Issues', @@ -176,7 +176,7 @@ export class EmailReadImap implements INodeType { const options = this.getNodeParameter('options', {}) as IDataObject; let searchCriteria = [ - 'UNSEEN' + 'UNSEEN', ]; if (options.customEmailConfig !== undefined) { try { @@ -301,7 +301,7 @@ export class EmailReadImap implements INodeType { textHtml: await getText(parts, message, 'html'), textPlain: await getText(parts, message, 'plain'), metadata: {} as IDataObject, - } + }, }; messageHeader = message.parts.filter((part) => { @@ -342,8 +342,8 @@ export class EmailReadImap implements INodeType { // Return base64 string newEmail = { json: { - raw: part.body - } + raw: part.body, + }, }; newEmails.push(newEmail); @@ -362,7 +362,7 @@ export class EmailReadImap implements INodeType { host: credentials.host as string, port: credentials.port as number, tls: credentials.secure as boolean, - authTimeout: 3000 + authTimeout: 3000, }, onmail: async () => { const returnData = await getNewEmails(connection, searchCriteria); @@ -375,7 +375,7 @@ export class EmailReadImap implements INodeType { if (options.allowUnauthorizedCerts === true) { config.imap.tlsOptions = { - rejectUnauthorized: false + rejectUnauthorized: false, }; } diff --git a/packages/nodes-base/nodes/EmailSend.node.ts b/packages/nodes-base/nodes/EmailSend.node.ts index 9d63f0989..f2ca08ad4 100644 --- a/packages/nodes-base/nodes/EmailSend.node.ts +++ b/packages/nodes-base/nodes/EmailSend.node.ts @@ -30,7 +30,7 @@ export class EmailSend implements INodeType { { name: 'smtp', required: true, - } + }, ], properties: [ // TODO: Add choice for text as text or html (maybe also from name) @@ -159,7 +159,7 @@ export class EmailSend implements INodeType { if (options.allowUnauthorizedCerts === true) { connectionOptions.tls = { - rejectUnauthorized: false + rejectUnauthorized: false, }; } diff --git a/packages/nodes-base/nodes/ErrorTrigger.node.ts b/packages/nodes-base/nodes/ErrorTrigger.node.ts index 4899c20e8..aa55dfd37 100644 --- a/packages/nodes-base/nodes/ErrorTrigger.node.ts +++ b/packages/nodes-base/nodes/ErrorTrigger.node.ts @@ -21,7 +21,7 @@ export class ErrorTrigger implements INodeType { }, inputs: [], outputs: ['main'], - properties: [] + properties: [], }; @@ -49,15 +49,15 @@ export class ErrorTrigger implements INodeType { retryOf: '34', error: { message: 'Example Error Message', - stack: 'Stacktrace' + stack: 'Stacktrace', }, lastNodeExecuted: 'Node With Error', - mode: 'manual' + mode: 'manual', }, workflow: { id: '1', - name: 'Example Workflow' - } + name: 'Example Workflow', + }, }; } diff --git a/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts b/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts index d7292ad10..26d8d7c2b 100644 --- a/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts +++ b/packages/nodes-base/nodes/Eventbrite/EventbriteTrigger.node.ts @@ -87,7 +87,7 @@ export class EventbriteTrigger implements INodeType { type: 'options', required: true, typeOptions: { - loadOptionsMethod: 'getOrganizations' + loadOptionsMethod: 'getOrganizations', }, default: '', description: '', @@ -101,7 +101,7 @@ export class EventbriteTrigger implements INodeType { loadOptionsDependsOn: [ 'organization', ], - loadOptionsMethod: 'getEvents' + loadOptionsMethod: 'getEvents', }, default: '', description: '', @@ -113,63 +113,63 @@ export class EventbriteTrigger implements INodeType { options: [ { name: 'attendee.updated', - value: 'attendee.updated' + value: 'attendee.updated', }, { name: 'attendee.checked_in', - value: 'attendee.checked_in' + value: 'attendee.checked_in', }, { name: 'attendee.checked_out', - value: 'attendee.checked_out' + value: 'attendee.checked_out', }, { name: 'event.created', - value: 'event.created' + value: 'event.created', }, { name: 'event.published', - value: 'event.published' + value: 'event.published', }, { name: 'event.unpublished', - value: 'event.unpublished' + value: 'event.unpublished', }, { name: 'event.updated', - value: 'event.updated' + value: 'event.updated', }, { name: 'order.placed', - value: 'order.placed' + value: 'order.placed', }, { name: 'order.refunded', - value: 'order.refunded' + value: 'order.refunded', }, { name: 'order.updated', - value: 'order.updated' + value: 'order.updated', }, { name: 'organizer.updated', - value: 'organizer.updated' + value: 'organizer.updated', }, { name: 'ticket_class.created', - value: 'ticket_class.created' + value: 'ticket_class.created', }, { name: 'ticket_class.deleted', - value: 'ticket_class.deleted' + value: 'ticket_class.deleted', }, { name: 'ticket_class.updated', - value: 'ticket_class.updated' + value: 'ticket_class.updated', }, { name: 'venue.updated', - value: 'venue.updated' + value: 'venue.updated', }, ], required: true, @@ -311,7 +311,7 @@ export class EventbriteTrigger implements INodeType { workflowData: [ this.helpers.returnJsonArray({ placeholder: 'Test received. To display actual data of object get the webhook triggered by performing the action which triggers it.', - }) + }), ], }; } diff --git a/packages/nodes-base/nodes/Eventbrite/GenericFunctions.ts b/packages/nodes-base/nodes/Eventbrite/GenericFunctions.ts index 2392a0ae2..3916aece6 100644 --- a/packages/nodes-base/nodes/Eventbrite/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Eventbrite/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function eventbriteApiRequest(this: IHookFunctions | IExecuteFuncti qs, body, uri: uri ||`https://www.eventbriteapi.com/v3${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/ExecuteCommand.node.ts b/packages/nodes-base/nodes/ExecuteCommand.node.ts index 1d57e9084..90131a163 100644 --- a/packages/nodes-base/nodes/ExecuteCommand.node.ts +++ b/packages/nodes-base/nodes/ExecuteCommand.node.ts @@ -77,7 +77,7 @@ export class ExecuteCommand implements INodeType { placeholder: 'echo "test"', description: 'The command to execute', }, - ] + ], }; @@ -110,7 +110,7 @@ export class ExecuteCommand implements INodeType { stderr, stdout, }, - }, + } ); } diff --git a/packages/nodes-base/nodes/ExecuteWorkflow.node.ts b/packages/nodes-base/nodes/ExecuteWorkflow.node.ts index 19b9c4d7c..4e4988331 100644 --- a/packages/nodes-base/nodes/ExecuteWorkflow.node.ts +++ b/packages/nodes-base/nodes/ExecuteWorkflow.node.ts @@ -143,7 +143,7 @@ export class ExecuteWorkflow implements INodeType { required: true, description: 'The URL from which to load the workflow from.', }, - ] + ], }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Facebook/FacebookGraphApi.node.ts b/packages/nodes-base/nodes/Facebook/FacebookGraphApi.node.ts index 74171fd69..42d13cc87 100644 --- a/packages/nodes-base/nodes/Facebook/FacebookGraphApi.node.ts +++ b/packages/nodes-base/nodes/Facebook/FacebookGraphApi.node.ts @@ -45,7 +45,7 @@ export class FacebookGraphApi implements INodeType { { name: 'Video Uploads', value: 'graph-video.facebook.com', - } + }, ], default: 'graph.facebook.com', description: 'The Host URL of the request. Almost all requests are passed to the graph.facebook.com host URL. The single exception is video uploads, which use graph-video.facebook.com.', @@ -265,7 +265,7 @@ export class FacebookGraphApi implements INodeType { placeholder: '{\"field_name\": \"field_value\"}', description: 'The query parameters to send, defined as a JSON object', required: false, - } + }, ], }, ], diff --git a/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts b/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts index aacbd9377..57f48559d 100644 --- a/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts +++ b/packages/nodes-base/nodes/FileMaker/FileMaker.node.ts @@ -143,7 +143,7 @@ export class FileMaker implements INodeType { 'records', ], }, - } + }, }, { displayName: 'Limit', @@ -159,7 +159,7 @@ export class FileMaker implements INodeType { 'records', ], }, - } + }, }, { displayName: 'Get portals', @@ -219,7 +219,7 @@ export class FileMaker implements INodeType { displayOptions: { show: { action: [ - 'find' + 'find', ], }, }, @@ -277,8 +277,8 @@ export class FileMaker implements INodeType { default: '', description: 'Value to search', }, - ] - } + ], + }, ], description: 'Field Name', }, @@ -286,9 +286,9 @@ export class FileMaker implements INodeType { displayName: 'Omit', name: 'omit', type: 'boolean', - default: false + default: false, }, - ] + ], }, ], }, @@ -353,16 +353,16 @@ export class FileMaker implements INodeType { options: [ { name: 'Ascend', - value: 'ascend' + value: 'ascend', }, { name: 'Descend', - value: 'descend' + value: 'descend', }, ], description: 'Sort order.', }, - ] + ], }, ], }, @@ -379,7 +379,7 @@ export class FileMaker implements INodeType { 'record', 'records', ], - } + }, }, }, { @@ -400,7 +400,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptBefore: [ - true + true, ], }, }, @@ -421,7 +421,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptBefore: [ - true + true, ], }, }, @@ -441,7 +441,7 @@ export class FileMaker implements INodeType { 'record', 'records', ], - } + }, }, }, { @@ -462,7 +462,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptSort: [ - true + true, ], }, }, @@ -483,7 +483,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptSort: [ - true + true, ], }, }, @@ -503,7 +503,7 @@ export class FileMaker implements INodeType { 'record', 'records', ], - } + }, }, }, { @@ -524,7 +524,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptAfter: [ - true + true, ], }, }, @@ -545,7 +545,7 @@ export class FileMaker implements INodeType { 'records', ], setScriptAfter: [ - true + true, ], }, }, @@ -583,7 +583,7 @@ export class FileMaker implements INodeType { 'edit', ], }, - } + }, }, { displayName: 'Fields', @@ -625,7 +625,7 @@ export class FileMaker implements INodeType { type: 'string', default: '', }, - ] + ], }, ], }, @@ -645,7 +645,7 @@ export class FileMaker implements INodeType { displayOptions: { show: { action: [ - 'performscript' + 'performscript', ], }, }, @@ -661,14 +661,14 @@ export class FileMaker implements INodeType { displayOptions: { show: { action: [ - 'performscript' + 'performscript', ], }, }, placeholder: 'Script Parameters', description: 'A parameter for the FileMaker script.', }, - ] + ], }; methods = { @@ -803,7 +803,7 @@ export class FileMaker implements INodeType { 'Authorization': `Bearer ${token}`, }, method: 'GET', - json: true + json: true, }; const layout = this.getNodeParameter('layout', i) as string; @@ -813,7 +813,7 @@ export class FileMaker implements INodeType { requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records/${recid}`; requestOptions.qs = { 'portal': JSON.stringify(parsePortals.call(this, i)), - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; } else if (action === 'records') { requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records`; @@ -821,7 +821,7 @@ export class FileMaker implements INodeType { '_offset': this.getNodeParameter('offset', i), '_limit': this.getNodeParameter('limit', i), 'portal': JSON.stringify(parsePortals.call(this, i)), - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; const sort = parseSort.call(this, i); if (sort) { @@ -835,7 +835,7 @@ export class FileMaker implements INodeType { 'offset': this.getNodeParameter('offset', i), 'limit': this.getNodeParameter('limit', i), 'layout.response': this.getNodeParameter('responseLayout', i), - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; const sort = parseSort.call(this, i); if (sort) { @@ -850,7 +850,7 @@ export class FileMaker implements INodeType { requestOptions.body = { fieldData: {...parseFields.call(this, i)}, portalData: {}, - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; } else if (action === 'edit') { const recid = this.getNodeParameter('recid', i) as string; @@ -862,7 +862,7 @@ export class FileMaker implements INodeType { requestOptions.body = { fieldData: {...parseFields.call(this, i)}, portalData: {}, - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; } else if (action === 'performscript') { const scriptName = this.getNodeParameter('script', i) as string; @@ -876,14 +876,14 @@ export class FileMaker implements INodeType { requestOptions.method = 'POST'; requestOptions.headers!['Content-Type'] = 'application/json'; requestOptions.qs = { - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; } else if (action === 'delete') { const recid = this.getNodeParameter('recid', i) as string; requestOptions.uri = url + `/databases/${database}/layouts/${layout}/records/${recid}`; requestOptions.method = 'DELETE'; requestOptions.qs = { - ...parseScripts.call(this, i) + ...parseScripts.call(this, i), }; } else { throw new Error(`The action "${action}" is not implemented yet!`); diff --git a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts index 00bc43947..294c53c16 100644 --- a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts +++ b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function layoutsApiRequest(this: ILoadOptionsFunctions | IExecuteFu }, method: 'GET', uri: url, - json: true + json: true, }; try { @@ -100,7 +100,7 @@ export async function getFields(this: ILoadOptionsFunctions): Promise { // }, method: 'GET', uri: url, - json: true + json: true, }; try { @@ -137,7 +137,7 @@ export async function getPortals(this: ILoadOptionsFunctions): Promise { // }, method: 'GET', uri: url, - json: true + json: true, }; try { @@ -172,7 +172,7 @@ export async function getScripts(this: ILoadOptionsFunctions): Promise { // }, method: 'GET', uri: url, - json: true + json: true, }; try { @@ -204,7 +204,7 @@ export async function getToken(this: ILoadOptionsFunctions | IExecuteFunctions | uri: url, headers: {}, method: 'POST', - json: true + json: true, //rejectUnauthorized: !this.getNodeParameter('allowUnauthorizedCerts', itemIndex, false) as boolean, }; requestOptions.auth = { @@ -216,9 +216,9 @@ export async function getToken(this: ILoadOptionsFunctions | IExecuteFunctions | { "database": host, "username": login as string, - "password": password as string - } - ] + "password": password as string, + }, + ], }; try { @@ -262,7 +262,7 @@ export async function logout(this: ILoadOptionsFunctions | IExecuteFunctions | I uri: url, headers: {}, method: 'DELETE', - json: true + json: true, //rejectUnauthorized: !this.getNodeParameter('allowUnauthorizedCerts', itemIndex, false) as boolean, }; @@ -300,7 +300,7 @@ export function parseSort(this: IExecuteFunctions, i: number): object | null { // @ts-ignore sort.push({ 'fieldName': parameterData!.name as string, - 'sortOrder': parameterData!.value + 'sortOrder': parameterData!.value, }); } } diff --git a/packages/nodes-base/nodes/Flow/Flow.node.ts b/packages/nodes-base/nodes/Flow/Flow.node.ts index 92a0d90ad..eb6f6728f 100644 --- a/packages/nodes-base/nodes/Flow/Flow.node.ts +++ b/packages/nodes-base/nodes/Flow/Flow.node.ts @@ -38,7 +38,7 @@ export class Flow implements INodeType { { name: 'flowApi', required: true, - } + }, ], properties: [ { @@ -87,7 +87,7 @@ export class Flow implements INodeType { }; const task: TaskInfo = { name, - workspace_id: parseInt(workspaceId, 10) + workspace_id: parseInt(workspaceId, 10), }; if (additionalFields.ownerId) { task.owner_id = parseInt(additionalFields.ownerId as string, 10); diff --git a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts index daf3f8940..e9b724088 100644 --- a/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts +++ b/packages/nodes-base/nodes/Flow/FlowTrigger.node.ts @@ -32,7 +32,7 @@ export class FlowTrigger implements INodeType { { name: 'flowApi', required: true, - } + }, ], webhooks: [ { @@ -52,11 +52,11 @@ export class FlowTrigger implements INodeType { [ { name: 'Project', - value: 'list' + value: 'list', }, { name: 'Task', - value: 'task' + value: 'task', }, ], description: 'Resource that triggers the webhook', @@ -70,14 +70,14 @@ export class FlowTrigger implements INodeType { displayOptions: { show: { resource:[ - 'list' - ] + 'list', + ], }, hide: { resource: [ - 'task' - ] - } + 'task', + ], + }, }, description: `Lists ids, perhaps known better as "Projects" separated by ,`, }, @@ -90,14 +90,14 @@ export class FlowTrigger implements INodeType { displayOptions: { show: { resource:[ - 'task' - ] + 'task', + ], }, hide: { resource: [ - 'list' - ] - } + 'list', + ], + }, }, description: `Task ids separated by ,`, }, @@ -168,7 +168,7 @@ export class FlowTrigger implements INodeType { url: webhookUrl, resource_type: resource, resource_id: parseInt(resourceId, 10), - } + }, }; try { responseData = await flowApiRequest.call(this, 'POST', endpoint, body); @@ -217,7 +217,7 @@ export class FlowTrigger implements INodeType { const req = this.getRequestObject(); return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Flow/GenericFunctions.ts b/packages/nodes-base/nodes/Flow/GenericFunctions.ts index af83e474e..20d045385 100644 --- a/packages/nodes-base/nodes/Flow/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Flow/GenericFunctions.ts @@ -19,7 +19,7 @@ export async function flowApiRequest(this: IHookFunctions | IExecuteFunctions | qs, body, uri: uri ||`https://api.getflow.com/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Flow/TaskDescription.ts b/packages/nodes-base/nodes/Flow/TaskDescription.ts index 506fc4102..49b18f064 100644 --- a/packages/nodes-base/nodes/Flow/TaskDescription.ts +++ b/packages/nodes-base/nodes/Flow/TaskDescription.ts @@ -55,8 +55,8 @@ export const taskFields = [ 'task', ], operation: [ - 'create' - ] + 'create', + ], }, }, description: 'Create resources under the given workspace.', @@ -72,8 +72,8 @@ export const taskFields = [ 'task', ], operation: [ - 'create' - ] + 'create', + ], }, }, description: 'The title of the task.', @@ -171,7 +171,7 @@ export const taskFields = [ { name: 'text/html', value: 'text/html', - } + }, ], description: `Identify which markup language is used to format the given note`, }, @@ -240,8 +240,8 @@ export const taskFields = [ 'task', ], operation: [ - 'update' - ] + 'update', + ], }, }, description: 'Create resources under the given workspace.', @@ -257,8 +257,8 @@ export const taskFields = [ 'task', ], operation: [ - 'update' - ] + 'update', + ], }, }, description: '', @@ -364,7 +364,7 @@ export const taskFields = [ { name: 'text/html', value: 'text/html', - } + }, ], description: `Identify which markup language is used to format the given note`, }, @@ -426,8 +426,8 @@ export const taskFields = [ 'task', ], operation: [ - 'get' - ] + 'get', + ], }, }, description: '', @@ -471,7 +471,7 @@ export const taskFields = [ name: 'Parent', value: 'parent', }, - ] + ], }, ], }, @@ -488,8 +488,8 @@ export const taskFields = [ 'task', ], operation: [ - 'getAll' - ] + 'getAll', + ], }, }, default: false, @@ -505,7 +505,7 @@ export const taskFields = [ 'task', ], operation: [ - 'getAll' + 'getAll', ], returnAll: [ false, @@ -558,7 +558,7 @@ export const taskFields = [ name: 'Parent', value: 'parent', }, - ] + ], }, { displayName: 'Order', @@ -610,7 +610,7 @@ export const taskFields = [ name: 'Updated At', value: 'updated_at', }, - ] + ], }, { displayName: 'Workspace ID', diff --git a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts index 446babb5f..22fe28a8d 100644 --- a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts +++ b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts @@ -176,7 +176,7 @@ export const contactFields = [ default: '', description: `Custom Field\'s values.`, }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts index 1fa458caf..3b7d26f40 100644 --- a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts +++ b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts @@ -38,7 +38,7 @@ enum Priority { Low = 1, Medium = 2, High = 3, - Urgent = 4 + Urgent = 4, } enum Source { @@ -126,7 +126,7 @@ export class Freshdesk implements INodeType { show: { resource: [ 'ticket', - ] + ], }, }, options: [ @@ -171,7 +171,7 @@ export class Freshdesk implements INodeType { ], operation: [ 'create', - ] + ], }, }, options: [ @@ -221,7 +221,7 @@ export class Freshdesk implements INodeType { ], operation: [ 'create', - ] + ], }, }, default: '', @@ -239,7 +239,7 @@ export class Freshdesk implements INodeType { ], operation: [ 'create', - ] + ], }, }, options: [ @@ -274,8 +274,8 @@ export class Freshdesk implements INodeType { 'ticket', ], operation: [ - 'create' - ] + 'create', + ], }, }, options: [ @@ -294,7 +294,7 @@ export class Freshdesk implements INodeType { { name: 'Urgent', value: 'urgent', - } + }, ], default: 'low', description: 'Priority', @@ -310,8 +310,8 @@ export class Freshdesk implements INodeType { 'ticket', ], operation: [ - 'create' - ] + 'create', + ], }, }, options: [ @@ -448,7 +448,7 @@ export class Freshdesk implements INodeType { type: 'options', default: '', typeOptions: { - loadOptionsMethod: 'getGroups' + loadOptionsMethod: 'getGroups', }, description: `ID of the group to which the ticket has been assigned. The default value is the ID of the group that is associated with the given email_config_id`, }, @@ -466,7 +466,7 @@ export class Freshdesk implements INodeType { type: 'options', default: '', typeOptions: { - loadOptionsMethod: 'getProducts' + loadOptionsMethod: 'getProducts', }, description: `ID of the product to which the ticket is associated. It will be ignored if the email_config_id attribute is set in the request.`, @@ -513,9 +513,9 @@ export class Freshdesk implements INodeType { name: 'Refund', value: 'Refund', }, - ] + ], }, - ] + ], }, // { // displayName: 'Custom Fields', @@ -603,7 +603,7 @@ export class Freshdesk implements INodeType { ], operation: [ 'update', - ] + ], }, }, default: '', @@ -725,7 +725,7 @@ export class Freshdesk implements INodeType { { name: 'Urgent', value: 'urgent', - } + }, ], default: 'low', description: 'Priority', @@ -797,7 +797,7 @@ export class Freshdesk implements INodeType { { name: 'Closed', value: 'closed', - } + }, ], default: 'pending', description: 'Status', @@ -857,27 +857,27 @@ export class Freshdesk implements INodeType { options: [ { name: 'Feature Request', - value: 'Feature Request' + value: 'Feature Request', }, { name: 'Incident', - value: 'Incident' + value: 'Incident', }, { name: 'Problem', - value: 'Problem' + value: 'Problem', }, { name: 'Question', - value: 'Question' + value: 'Question', }, { name: 'Refund', - value: 'Refund' + value: 'Refund', }, - ] + ], }, - ] + ], }, { displayName: 'Ticket ID', @@ -890,8 +890,8 @@ export class Freshdesk implements INodeType { 'ticket', ], operation: [ - 'get' - ] + 'get', + ], }, }, default: '', @@ -1041,7 +1041,7 @@ export class Freshdesk implements INodeType { type: 'dateTime', default: '', }, - ] + ], }, { displayName: 'Ticket ID', @@ -1054,8 +1054,8 @@ export class Freshdesk implements INodeType { 'ticket', ], operation: [ - 'delete' - ] + 'delete', + ], }, }, default: '', @@ -1064,7 +1064,7 @@ export class Freshdesk implements INodeType { // CONTACTS ...contactOperations, ...contactFields, - ] + ], }; methods = { @@ -1163,7 +1163,7 @@ export class Freshdesk implements INodeType { // @ts-ignore priority: Priority[capitalize(priority)], // @ts-ignore - source: Source[capitalize(source)] + source: Source[capitalize(source)], }; if (requester === 'requesterId') { diff --git a/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts b/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts index fb3847f5c..71c9c6110 100644 --- a/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Freshdesk/GenericFunctions.ts @@ -33,7 +33,7 @@ export async function freshdeskApiRequest(this: IExecuteFunctions | ILoadOptions body, qs: query, uri: uri || `https://${credentials.domain}.${endpoint}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.body; diff --git a/packages/nodes-base/nodes/Ftp.node.ts b/packages/nodes-base/nodes/Ftp.node.ts index ae44dbc87..c71b096bf 100644 --- a/packages/nodes-base/nodes/Ftp.node.ts +++ b/packages/nodes-base/nodes/Ftp.node.ts @@ -193,7 +193,7 @@ export class Ftp implements INodeType { ], binaryData: [ true, - ] + ], }, }, name: 'binaryPropertyName', @@ -211,7 +211,7 @@ export class Ftp implements INodeType { ], binaryData: [ false, - ] + ], }, }, name: 'fileContent', @@ -296,7 +296,7 @@ export class Ftp implements INodeType { host: credentials.host as string, port: credentials.port as number, user: credentials.username as string, - password: credentials.password as string + password: credentials.password as string, }); } diff --git a/packages/nodes-base/nodes/Function.node.ts b/packages/nodes-base/nodes/Function.node.ts index 0dc32ab6f..7939998e4 100644 --- a/packages/nodes-base/nodes/Function.node.ts +++ b/packages/nodes-base/nodes/Function.node.ts @@ -65,7 +65,7 @@ export class Function implements INodeType { require: { external: false as boolean | { modules: string[] }, builtin: [] as string[], - } + }, }; if (process.env.NODE_FUNCTION_ALLOW_BUILTIN) { diff --git a/packages/nodes-base/nodes/FunctionItem.node.ts b/packages/nodes-base/nodes/FunctionItem.node.ts index 76d74c8f3..cd0eae6df 100644 --- a/packages/nodes-base/nodes/FunctionItem.node.ts +++ b/packages/nodes-base/nodes/FunctionItem.node.ts @@ -70,7 +70,7 @@ export class FunctionItem implements INodeType { require: { external: false as boolean | { modules: string[] }, builtin: [] as string[], - } + }, }; if (process.env.NODE_FUNCTION_ALLOW_BUILTIN) { @@ -101,7 +101,7 @@ export class FunctionItem implements INodeType { } const returnItem: INodeExecutionData = { - json: jsonData + json: jsonData, }; if (item.binary) { diff --git a/packages/nodes-base/nodes/Github/GenericFunctions.ts b/packages/nodes-base/nodes/Github/GenericFunctions.ts index de20d3406..505eff071 100644 --- a/packages/nodes-base/nodes/Github/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Github/GenericFunctions.ts @@ -28,7 +28,7 @@ export async function githubApiRequest(this: IHookFunctions | IExecuteFunctions, body, qs: query, uri: '', - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Github/Github.node.ts b/packages/nodes-base/nodes/Github/Github.node.ts index 27ae6e668..f40ad6b9d 100644 --- a/packages/nodes-base/nodes/Github/Github.node.ts +++ b/packages/nodes-base/nodes/Github/Github.node.ts @@ -463,7 +463,7 @@ export class Github implements INodeType { default: '', description: 'The email of the author of the commit.', }, - ] + ], }, { name: 'branch', @@ -476,7 +476,7 @@ export class Github implements INodeType { default: '', description: 'The branch to commit to. If not set the repository’s default branch (usually master) is used.', }, - ] + ], }, { name: 'committer', @@ -496,7 +496,7 @@ export class Github implements INodeType { default: '', description: 'The email of the committer of the commit.', }, - ] + ], }, ], }, @@ -999,7 +999,7 @@ export class Github implements INodeType { displayOptions: { show: { operation: [ - 'getIssues' + 'getIssues', ], resource: [ 'repository', diff --git a/packages/nodes-base/nodes/Github/GithubTrigger.node.ts b/packages/nodes-base/nodes/Github/GithubTrigger.node.ts index f8173c073..afafbde90 100644 --- a/packages/nodes-base/nodes/Github/GithubTrigger.node.ts +++ b/packages/nodes-base/nodes/Github/GithubTrigger.node.ts @@ -469,7 +469,7 @@ export class GithubTrigger implements INodeType { // but do not start the workflow. return { - webhookResponse: 'OK' + webhookResponse: 'OK', }; } @@ -488,7 +488,7 @@ export class GithubTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(returnData) + this.helpers.returnJsonArray(returnData), ], }; } diff --git a/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts b/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts index 19ccaf6aa..3bb0e12c5 100644 --- a/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Gitlab/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function gitlabApiRequest(this: IHookFunctions | IExecuteFunctions, body, qs: query, uri: '', - json: true + json: true, }; if (query === undefined) { diff --git a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts index bba2d0ddc..cd429b48f 100644 --- a/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts +++ b/packages/nodes-base/nodes/Gitlab/Gitlab.node.ts @@ -711,7 +711,7 @@ export class Gitlab implements INodeType { displayOptions: { show: { operation: [ - 'getIssues' + 'getIssues', ], resource: [ 'repository', @@ -790,7 +790,7 @@ export class Gitlab implements INodeType { { name: 'Priority', value: 'priority', - description: 'Sort by priority.' + description: 'Sort by priority.', }, ], default: 'created_at', diff --git a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts index 7d2d04235..b741ea3fc 100644 --- a/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts +++ b/packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts @@ -110,43 +110,43 @@ export class GitlabTrigger implements INodeType { { name: 'Comment', value: 'note', - description: 'Triggered when a new comment is made on commits, merge requests, issues, and code snippets.' + description: 'Triggered when a new comment is made on commits, merge requests, issues, and code snippets.', }, { name: 'Issue', value: 'issues', - description: 'Triggered when a new issue is created or an existing issue was updated/closed/reopened.' + description: 'Triggered when a new issue is created or an existing issue was updated/closed/reopened.', }, { name: 'Job', value: 'job', - description: 'Triggered on status change of a job.' + description: 'Triggered on status change of a job.', }, { name: 'Merge Request', value: 'merge_requests', - description: 'Triggered when a new merge request is created, an existing merge request was updated/merged/closed or a commit is added in the source branch.' + description: 'Triggered when a new merge request is created, an existing merge request was updated/merged/closed or a commit is added in the source branch.', }, { name: 'Pipeline', value: 'pipeline', - description: 'Triggered on status change of Pipeline.' + description: 'Triggered on status change of Pipeline.', }, { name: 'Push', value: 'push', - description: 'Triggered when you push to the repository except when pushing tags.' + description: 'Triggered when you push to the repository except when pushing tags.', }, { name: 'Tag', value: 'tag_push', - description: 'Triggered when you create (or delete) tags to the repository.' + description: 'Triggered when you create (or delete) tags to the repository.', }, { name: 'Wiki Page', value: 'wiki_page', - description: 'Triggered when a wiki page is created, updated or deleted.' - } + description: 'Triggered when a wiki page is created, updated or deleted.', + }, ], required: true, default: [], @@ -292,7 +292,7 @@ export class GitlabTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(returnData) + this.helpers.returnJsonArray(returnData), ], }; } diff --git a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts index 545ed841f..98ec3e04d 100644 --- a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts +++ b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts @@ -39,11 +39,11 @@ export const eventOperations = [ name: 'Update', value: 'update', description: 'Update an event', - } + }, ], default: 'create', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const eventFields = [ @@ -55,20 +55,20 @@ export const eventFields = [ name: 'calendar', type: 'options', typeOptions: { - loadOptionsMethod: 'getCalendars' + loadOptionsMethod: 'getCalendars', }, required: true, displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ - 'event' + 'event', ], }, }, - default: '' + default: '', }, { displayName: 'Start', @@ -86,7 +86,7 @@ export const eventFields = [ }, }, default: '', - description: 'Start time of the event.' + description: 'Start time of the event.', }, { displayName: 'End', @@ -104,7 +104,7 @@ export const eventFields = [ }, }, default: '', - description: 'End time of the event.' + description: 'End time of the event.', }, { displayName: 'Use Default Reminders', @@ -120,7 +120,7 @@ export const eventFields = [ ], }, }, - default: true + default: true, }, { displayName: 'Additional Fields', @@ -154,7 +154,7 @@ export const eventFields = [ }, ], default: 'no', - description: 'Wheater the event is all day or not' + description: 'Wheater the event is all day or not', }, { displayName: 'Attendees', @@ -249,7 +249,7 @@ export const eventFields = [ { name: 'Yearly', value: 'yearly', - } + }, ], default: '', }, @@ -264,9 +264,9 @@ export const eventFields = [ name: 'repeatHowManyTimes', type: 'number', typeOptions: { - minValue: 1 + minValue: 1, }, - default: 1 + default: 1, }, { displayName: 'Send Updates', @@ -276,7 +276,7 @@ export const eventFields = [ { name: 'All', value: 'all', - description: 'Notifications are sent to all guests' + description: 'Notifications are sent to all guests', }, { name: 'External Only', @@ -287,7 +287,7 @@ export const eventFields = [ name: 'None', value: 'none', description: 'No notifications are sent. This value should only be used for migration use case', - } + }, ], description: 'Whether to send notifications about the creation of the new event', default: '', @@ -313,7 +313,7 @@ export const eventFields = [ name: 'Busy', value: 'opaque', description: ' The event does block time on the calendar.', - } + }, ], default: 'opaque', description: 'Whether the event blocks time on the calendar', @@ -355,7 +355,7 @@ export const eventFields = [ }, ], default: 'default', - description: 'Visibility of the event.' + description: 'Visibility of the event.', }, ], }, @@ -366,7 +366,7 @@ export const eventFields = [ default: '', placeholder: 'Add Reminder', typeOptions: { - multipleValues: true + multipleValues: true, }, required: false, displayOptions: { @@ -416,7 +416,7 @@ export const eventFields = [ ], }, ], - description: `If the event doesn't use the default reminders, this lists the reminders specific to the event` + description: `If the event doesn't use the default reminders, this lists the reminders specific to the event`, }, /* -------------------------------------------------------------------------- */ /* event:delete */ @@ -439,7 +439,7 @@ export const eventFields = [ ], }, }, - default: '' + default: '', }, { displayName: 'Event ID', @@ -494,7 +494,7 @@ export const eventFields = [ name: 'None', value: 'none', description: 'No notifications are sent. This value should only be used for migration use case', - } + }, ], description: 'Whether to send notifications about the creation of the new event', default: '', @@ -522,7 +522,7 @@ export const eventFields = [ ], }, }, - default: '' + default: '', }, { displayName: 'Event ID', @@ -575,8 +575,8 @@ export const eventFields = [ }, default: '', description: `Time zone used in the response. The default is the time zone of the calendar.`, - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ /* event:getAll */ @@ -599,7 +599,7 @@ export const eventFields = [ ], }, }, - default: '' + default: '', }, { displayName: 'Return All', @@ -688,7 +688,7 @@ export const eventFields = [ name: 'Updated', value: 'updated', description: 'Order by last modification time (ascending).', - } + }, ], default: '', description: 'The order of the events returned in the result.', @@ -753,8 +753,8 @@ export const eventFields = [ default: '', description: `Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted`, - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ /* event:update */ @@ -764,7 +764,7 @@ export const eventFields = [ name: 'calendar', type: 'options', typeOptions: { - loadOptionsMethod: 'getCalendars' + loadOptionsMethod: 'getCalendars', }, required: true, displayOptions: { @@ -810,7 +810,7 @@ export const eventFields = [ ], }, }, - default: true + default: true, }, { displayName: 'Update Fields', @@ -841,7 +841,7 @@ export const eventFields = [ { name: 'No', value: 'no', - } + }, ], default: 'no', description: 'Wheater the event is all day or not', @@ -946,7 +946,7 @@ export const eventFields = [ { name: 'Yearly', value: 'yearly', - } + }, ], default: '', }, @@ -991,7 +991,7 @@ export const eventFields = [ name: 'None', value: 'none', description: 'No notifications are sent. This value should only be used for migration use case', - } + }, ], description: 'Whether to send notifications about the creation of the new event', default: '', @@ -1056,7 +1056,7 @@ export const eventFields = [ name: 'Private', value: 'private', description: 'The event is private and only event attendees may view event details.', - } + }, ], default: 'default', description: 'Visibility of the event.', @@ -1070,7 +1070,7 @@ export const eventFields = [ default: '', placeholder: 'Add Reminder', typeOptions: { - multipleValues: true + multipleValues: true, }, required: false, displayOptions: { @@ -1103,7 +1103,7 @@ export const eventFields = [ { name: 'Popup', value: 'popup', - } + }, ], default: '', }, @@ -1121,5 +1121,5 @@ export const eventFields = [ }, ], description: `If the event doesn't use the default reminders, this lists the reminders specific to the event`, - } + }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts index caf4c9868..47fbac6aa 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://www.googleapis.com${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts index e08ef9beb..ec08af2e1 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GoogleCalendar.node.ts @@ -46,7 +46,7 @@ export class GoogleCalendar implements INodeType { { name: 'googleCalendarOAuth2Api', required: true, - } + }, ], properties: [ { @@ -60,7 +60,7 @@ export class GoogleCalendar implements INodeType { }, ], default: 'event', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...eventOperations, ...eventFields, @@ -86,7 +86,7 @@ export class GoogleCalendar implements INodeType { const calendarId = calendar.id; returnData.push({ name: calendarName, - value: calendarId + value: calendarId, }); } return returnData; @@ -107,7 +107,7 @@ export class GoogleCalendar implements INodeType { const colorId = key; returnData.push({ name: `${colorName}`, - value: colorId + value: colorId, }); } return returnData; @@ -123,12 +123,12 @@ export class GoogleCalendar implements INodeType { const timezoneId = timezone; returnData.push({ name: timezoneName, - value: timezoneId + value: timezoneId, }); } return returnData; - } - } + }, + }, }; async execute(this: IExecuteFunctions): Promise { @@ -166,12 +166,12 @@ export class GoogleCalendar implements INodeType { const body: IEvent = { start: { dateTime: start, - timeZone: additionalFields.timeZone || this.getTimezone() + timeZone: additionalFields.timeZone || this.getTimezone(), }, end: { dateTime: end, - timeZone: additionalFields.timeZone || this.getTimezone() - } + timeZone: additionalFields.timeZone || this.getTimezone(), + }, }; if (additionalFields.attendees) { body.attendees = (additionalFields.attendees as string[]).map( @@ -216,7 +216,7 @@ export class GoogleCalendar implements INodeType { i ) as IDataObject).remindersValues as IDataObject[]; body.reminders = { - useDefault: false + useDefault: false, }; if (reminders) { body.reminders.overrides = reminders; @@ -226,12 +226,12 @@ export class GoogleCalendar implements INodeType { body.start = { date: moment(start) .utc() - .format('YYYY-MM-DD') + .format('YYYY-MM-DD'), }; body.end = { date: moment(end) .utc() - .format('YYYY-MM-DD') + .format('YYYY-MM-DD'), }; } //exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z @@ -392,13 +392,13 @@ export class GoogleCalendar implements INodeType { if (updateFields.start) { body.start = { dateTime: updateFields.start, - timeZone: updateFields.timeZone || this.getTimezone() + timeZone: updateFields.timeZone || this.getTimezone(), }; } if (updateFields.end) { body.end = { dateTime: updateFields.end, - timeZone: updateFields.timeZone || this.getTimezone() + timeZone: updateFields.timeZone || this.getTimezone(), }; } if (updateFields.attendees) { @@ -444,7 +444,7 @@ export class GoogleCalendar implements INodeType { i ) as IDataObject).remindersValues as IDataObject[]; body.reminders = { - useDefault: false + useDefault: false, }; if (reminders) { body.reminders.overrides = reminders; @@ -454,12 +454,12 @@ export class GoogleCalendar implements INodeType { body.start = { date: moment(updateFields.start as string) .utc() - .format('YYYY-MM-DD') + .format('YYYY-MM-DD'), }; body.end = { date: moment(updateFields.end as string) .utc() - .format('YYYY-MM-DD') + .format('YYYY-MM-DD'), }; } //exampel: RRULE:FREQ=WEEKLY;INTERVAL=2;COUNT=10;UNTIL=20110701T170000Z diff --git a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts index a2c438c90..bec7058c7 100644 --- a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts +++ b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts @@ -42,8 +42,8 @@ export const contactOperations = [ }, ], default: 'create', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const contactFields = [ @@ -180,7 +180,7 @@ export const contactFields = [ default: '', placeholder: 'Add Company', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -222,7 +222,7 @@ export const contactFields = [ default: '', placeholder: 'Add Custom Field', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -254,7 +254,7 @@ export const contactFields = [ default: '', placeholder: 'Add Email', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -301,7 +301,7 @@ export const contactFields = [ placeholder: 'Add Event', description: 'An event related to the person.', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -386,7 +386,7 @@ export const contactFields = [ default: '', placeholder: 'Add Phone', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -467,7 +467,7 @@ export const contactFields = [ default: '', placeholder: 'Add Relation', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1208,7 +1208,7 @@ export const contactFields = [ default: '', placeholder: 'Add Company', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1250,7 +1250,7 @@ export const contactFields = [ default: '', placeholder: 'Add Custom Field', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1282,7 +1282,7 @@ export const contactFields = [ default: '', placeholder: 'Add Email', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1329,7 +1329,7 @@ export const contactFields = [ placeholder: 'Add Event', description: 'An event related to the person.', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1414,7 +1414,7 @@ export const contactFields = [ default: '', placeholder: 'Add Phone', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { @@ -1495,7 +1495,7 @@ export const contactFields = [ default: '', placeholder: 'Add Relation', typeOptions: { - multipleValues: true + multipleValues: true, }, options: [ { diff --git a/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts index 2996cfe15..0ddae1c78 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://people.googleapis.com/v1${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts index 0a6bee177..412d87ce1 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts @@ -58,7 +58,7 @@ export class GoogleContacts implements INodeType { }, ], default: 'contact', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...contactOperations, ...contactFields, @@ -77,19 +77,19 @@ export class GoogleContacts implements INodeType { this, 'contactGroups', 'GET', - `/contactGroups`, + `/contactGroups` ); for (const group of groups) { const groupName = group.name; const groupId = group.resourceName; returnData.push({ name: groupName, - value: groupId + value: groupId, }); } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -177,9 +177,9 @@ export class GoogleContacts implements INodeType { date: { day, month, - year - } - } + year, + }, + }, ]; } @@ -206,8 +206,8 @@ export class GoogleContacts implements INodeType { const memberships = (additionalFields.group as string[]).map((groupId: string) => { return { contactGroupMembership: { - contactGroupResourceName: groupId - } + contactGroupResourceName: groupId, + }, }; }); @@ -253,7 +253,7 @@ export class GoogleContacts implements INodeType { 'GET', `/people/${contactId}`, {}, - qs, + qs ); if (!rawData) { @@ -286,7 +286,7 @@ export class GoogleContacts implements INodeType { 'GET', `/people/me/connections`, {}, - qs, + qs ); } else { qs.pageSize = this.getNodeParameter('limit', i) as number; @@ -295,7 +295,7 @@ export class GoogleContacts implements INodeType { 'GET', `/people/me/connections`, {}, - qs, + qs ); responseData = responseData.connections; } @@ -331,7 +331,7 @@ export class GoogleContacts implements INodeType { 'GET', `/people/${contactId}`, {}, - { personFields: 'Names' }, + { personFields: 'Names' } ); etag = data.etag; @@ -425,9 +425,9 @@ export class GoogleContacts implements INodeType { date: { day, month, - year - } - } + year, + }, + }, ]; updatePersonFields.push('birthdays'); @@ -459,8 +459,8 @@ export class GoogleContacts implements INodeType { const memberships = (updateFields.group as string[]).map((groupId: string) => { return { contactGroupMembership: { - contactGroupResourceName: groupId - } + contactGroupResourceName: groupId, + }, }; }); diff --git a/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts index 7d15e492a..8ba42a441 100644 --- a/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Drive/GenericFunctions.ts @@ -134,7 +134,7 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa assertion: signature, }, uri: 'https://oauth2.googleapis.com/token', - json: true + json: true, }; //@ts-ignore diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts index fe26f12e1..e1bcc4c35 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts @@ -188,7 +188,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'copy' + 'copy', ], resource: [ 'file', @@ -211,7 +211,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'file', @@ -235,7 +235,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -253,7 +253,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -275,7 +275,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], resource: [ 'file', @@ -361,15 +361,15 @@ export class GoogleDrive implements INodeType { options: [ { name: 'Contains', - value: 'contains' + value: 'contains', }, { name: 'Is', - value: 'is' + value: 'is', }, { name: 'Is Not', - value: 'isNot' + value: 'isNot', }, ], @@ -383,7 +383,7 @@ export class GoogleDrive implements INodeType { default: '', description: 'The value for operation.', }, - ] + ], }, { name: 'mimeType', @@ -482,8 +482,8 @@ export class GoogleDrive implements INodeType { }, description: 'Custom Mime Type', }, - ] - } + ], + }, ], }, @@ -500,7 +500,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'share' + 'share', ], resource: [ 'file', @@ -669,7 +669,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -686,13 +686,13 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - false + false, ], }, @@ -709,13 +709,13 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - true + true, ], }, @@ -736,7 +736,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -774,7 +774,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -791,13 +791,13 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - false + false, ], }, @@ -814,13 +814,13 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - true + true, ], }, @@ -846,7 +846,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'folder', @@ -870,7 +870,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -888,7 +888,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -944,7 +944,7 @@ export class GoogleDrive implements INodeType { displayOptions: { hide: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1034,7 +1034,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1053,7 +1053,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1071,7 +1071,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1089,7 +1089,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1107,7 +1107,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'share' + 'share', ], '/resource': [ 'file', @@ -1127,7 +1127,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'copy' + 'copy', ], '/resource': [ 'file', @@ -1167,7 +1167,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'list' + 'list', ], '/resource': [ 'file', @@ -1204,7 +1204,7 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'list' + 'list', ], '/resource': [ 'file', @@ -1246,14 +1246,14 @@ export class GoogleDrive implements INodeType { displayOptions: { show: { '/operation': [ - 'list' + 'list', ], '/resource': [ 'file', ], corpora: [ - 'drive' - ] + 'drive', + ], }, }, description: 'ID of the shared drive to search. The driveId parameter must be specified if and only if corpora is set to drive.', diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts index 19216e6c4..b90ee5b75 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GSuiteAdmin.node.ts @@ -54,7 +54,7 @@ export class GSuiteAdmin implements INodeType { }, ], default: 'user', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...userOperations, ...userFields, @@ -80,7 +80,7 @@ export class GSuiteAdmin implements INodeType { const domainId = domain.domainName; returnData.push({ name: domainName, - value: domainId + value: domainId, }); } return returnData; @@ -102,7 +102,7 @@ export class GSuiteAdmin implements INodeType { const schemaId = schema.schemaName; returnData.push({ name: schemaName, - value: schemaId + value: schemaId, }); } return returnData; @@ -182,7 +182,7 @@ export class GSuiteAdmin implements INodeType { this, 'POST', `/directory/v1/users/${responseData.id}/makeAdmin`, - { status: true }, + { status: true } ); responseData.isAdmin = true; diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts index e41fc3306..e2f15172f 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://www.googleapis.com/admin${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts index dc988e487..4222f86c0 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts @@ -42,8 +42,8 @@ export const userOperations = [ }, ], default: 'create', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const userFields = [ @@ -75,14 +75,14 @@ export const userFields = [ displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ - 'user' + 'user', ], }, }, - default: '' + default: '', }, { displayName: 'Password', @@ -103,7 +103,7 @@ export const userFields = [ }, }, default: '', - description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.' + description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.', }, { displayName: 'Domain', @@ -140,7 +140,7 @@ export const userFields = [ }, }, default: '', - description: `The username that will be set to the user. Example: If you domain is example.com and you set the username to jhon then the user's final email address will be jhon@example.com.` + description: `The username that will be set to the user. Example: If you domain is example.com and you set the username to jhon then the user's final email address will be jhon@example.com.`, }, { displayName: 'Make Admin', @@ -750,14 +750,14 @@ export const userFields = [ displayName: 'Last Name', name: 'lastName', type: 'string', - default: '' + default: '', }, { displayName: 'Password', name: 'password', type: 'string', default: '', - description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.' + description: 'Stores the password for the user account. A minimum of 8 characters is required. The maximum length is 100 characters.', }, { displayName: 'Phones', diff --git a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts index 0f80f9092..f0e0bbbd4 100644 --- a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts @@ -34,7 +34,7 @@ export const draftOperations = [ name: 'Get All', value: 'getAll', description: 'Get all drafts', - } + }, ], default: 'create', description: 'The operation to perform.', @@ -56,7 +56,7 @@ export const draftFields = [ operation: [ 'delete', 'get', - ] + ], }, }, placeholder: 'r-3254521568507167962', @@ -75,7 +75,7 @@ export const draftFields = [ ], operation: [ 'create', - ] + ], }, }, placeholder: 'Hello World!', @@ -94,7 +94,7 @@ export const draftFields = [ ], operation: [ 'create', - ] + ], }, }, placeholder: 'Hello World!', @@ -112,7 +112,7 @@ export const draftFields = [ ], operation: [ 'create', - ] + ], }, }, default: {}, @@ -193,7 +193,7 @@ export const draftFields = [ ], operation: [ 'get', - ] + ], }, }, default: {}, @@ -238,7 +238,7 @@ export const draftFields = [ { name: 'RAW', value: 'raw', - description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.' + description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.', }, { name: 'Resolved', @@ -249,7 +249,7 @@ export const draftFields = [ default: 'resolved', description: 'The format to return the message in', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -359,7 +359,7 @@ export const draftFields = [ { name: 'RAW', value: 'raw', - description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.' + description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.', }, { name: 'Resolved', diff --git a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts index 0cb323958..003613fb2 100644 --- a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts @@ -150,12 +150,12 @@ export class Gmail implements INodeType { const labelId = label.id; returnData.push({ name: labelName, - value: labelId + value: labelId, }); } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts index 7fddc17e9..0b02753f1 100644 --- a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts @@ -34,7 +34,7 @@ export const labelOperations = [ name: 'Get All', value: 'getAll', description: 'Get all labels', - } + }, ], default: 'create', description: 'The operation to perform', @@ -55,7 +55,7 @@ export const labelFields = [ ], operation: [ 'create', - ] + ], }, }, placeholder: 'invoices', diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts index 10ea8e37d..adc52bd66 100644 --- a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts @@ -61,7 +61,7 @@ export const messageFields = [ operation: [ 'get', 'delete', - ] + ], }, }, placeholder: '172ce2c4a72cc243', @@ -80,7 +80,7 @@ export const messageFields = [ ], operation: [ 'reply', - ] + ], }, }, placeholder: '172ce2c4a72cc243', @@ -99,7 +99,7 @@ export const messageFields = [ ], operation: [ 'reply', - ] + ], }, }, placeholder: 'CAHNQoFsC6JMMbOBJgtjsqN0eEc+gDg2a=SQj-tWUebQeHMDgqQ@mail.gmail.com', @@ -119,7 +119,7 @@ export const messageFields = [ operation: [ 'reply', 'send', - ] + ], }, }, placeholder: 'Hello World!', @@ -139,7 +139,7 @@ export const messageFields = [ operation: [ 'reply', 'send', - ] + ], }, }, placeholder: 'Hello World!', @@ -163,7 +163,7 @@ export const messageFields = [ operation: [ 'reply', 'send', - ] + ], }, }, placeholder: 'info@example.com', @@ -182,7 +182,7 @@ export const messageFields = [ operation: [ 'send', 'reply', - ] + ], }, }, default: {}, @@ -237,7 +237,7 @@ export const messageFields = [ default: '', description: 'Array of supported attachments to add to the message.', }, - ] + ], }, { displayName: 'Additional Fields', @@ -251,7 +251,7 @@ export const messageFields = [ ], operation: [ 'get', - ] + ], }, }, default: {}, @@ -279,7 +279,7 @@ export const messageFields = [ { name: 'RAW', value: 'raw', - description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.' + description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.', }, { name: 'Resolved', @@ -307,7 +307,7 @@ export const messageFields = [ }, description: 'Prefix for name of the binary property to which to
write the attachments. An index starting with 0 will be added.
So if name is "attachment_" the first attachment is saved to "attachment_0"', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -417,7 +417,7 @@ export const messageFields = [ { name: 'RAW', value: 'raw', - description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.' + description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.', }, { name: 'Resolved', diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts index 1215044eb..1481f76b8 100644 --- a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts @@ -46,7 +46,7 @@ export const messageLabelFields = [ operation: [ 'add', 'remove', - ] + ], }, }, placeholder: '172ce2c4a72cc243', @@ -69,7 +69,7 @@ export const messageLabelFields = [ operation: [ 'add', 'remove', - ] + ], }, }, description: 'The ID of the label', diff --git a/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts index 290c4f3b7..f5fb4a968 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://sheets.googleapis.com${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { @@ -121,7 +121,7 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa assertion: signature, }, uri: 'https://oauth2.googleapis.com/token', - json: true + json: true, }; //@ts-ignore diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts index 4dea76691..84453d7a7 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheet.ts @@ -136,7 +136,7 @@ export class GoogleSheet { async spreadsheetBatchUpdate(requests: IDataObject[]) { // tslint:disable-line:no-any const body = { - requests + requests, }; const response = await googleApiRequest.call(this.executeFunctions, 'POST', `/v4/spreadsheets/${this.id}:batchUpdate`, body); diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts index ba6cad236..8096ae53b 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts @@ -99,17 +99,17 @@ export class GoogleSheets implements INodeType { { name: 'Lookup', value: 'lookup', - description: 'Look up a specific column value and return the matching row' + description: 'Look up a specific column value and return the matching row', }, { name: 'Read', value: 'read', - description: 'Read data from a sheet' + description: 'Read data from a sheet', }, { name: 'Update', value: 'update', - description: 'Update rows in a sheet' + description: 'Update rows in a sheet', }, ], default: 'read', @@ -134,7 +134,7 @@ export class GoogleSheets implements INodeType { displayOptions: { hide: { operation: [ - 'delete' + 'delete', ], }, }, @@ -159,7 +159,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], }, }, @@ -201,7 +201,7 @@ export class GoogleSheets implements INodeType { default: 1, description: 'Number of columns to delete.', }, - ] + ], }, { displayName: 'Rows', @@ -239,7 +239,7 @@ export class GoogleSheets implements INodeType { default: 1, description: 'Number of rows to delete.', }, - ] + ], }, ], }, @@ -255,7 +255,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'read' + 'read', ], }, }, @@ -270,10 +270,10 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'read' + 'read', ], rawData: [ - true + true, ], }, }, @@ -290,7 +290,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], }, }, @@ -305,10 +305,10 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], rawData: [ - true + true, ], }, }, @@ -334,7 +334,7 @@ export class GoogleSheets implements INodeType { 'delete', ], rawData: [ - true + true, ], }, }, @@ -358,7 +358,7 @@ export class GoogleSheets implements INodeType { 'delete', ], rawData: [ - true + true, ], }, }, @@ -380,7 +380,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'lookup' + 'lookup', ], }, }, @@ -395,7 +395,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'lookup' + 'lookup', ], }, }, @@ -413,10 +413,10 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], rawData: [ - false + false, ], }, }, @@ -490,7 +490,7 @@ export class GoogleSheets implements INodeType { { name: 'User Entered', value: 'USER_ENTERED', - description: 'The values will be parsed as if the user typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.' + description: 'The values will be parsed as if the user typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.', }, ], default: 'RAW', @@ -522,7 +522,7 @@ export class GoogleSheets implements INodeType { { name: 'Unformatted Value', value: 'UNFORMATTED_VALUE', - description: 'Values will be calculated, but not formatted in the reply. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return the number 1.23.' + description: 'Values will be calculated, but not formatted in the reply. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return the number 1.23.', }, ], default: 'UNFORMATTED_VALUE', @@ -538,7 +538,7 @@ export class GoogleSheets implements INodeType { 'update', ], '/rawData': [ - false + false, ], }, }, @@ -556,7 +556,7 @@ export class GoogleSheets implements INodeType { { name: 'Unformatted Value', value: 'UNFORMATTED_VALUE', - description: 'Values will be calculated, but not formatted in the reply. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return the number 1.23.' + description: 'Values will be calculated, but not formatted in the reply. For example, if A1 is 1.23 and A2 is =A1 and formatted as currency, then A2 would return the number 1.23.', }, ], default: 'UNFORMATTED_VALUE', @@ -564,7 +564,7 @@ export class GoogleSheets implements INodeType { }, ], - } + }, ], }; @@ -671,8 +671,8 @@ export class GoogleSheets implements INodeType { dimension: deletePropertyToDimensions[propertyName] as string, startIndex: range.startIndex, endIndex: parseInt(range.startIndex.toString(), 10) + parseInt(range.amount.toString(), 10), - } - } + }, + }, }); }); } @@ -732,7 +732,7 @@ export class GoogleSheets implements INodeType { returnData = [ { [dataProperty]: sheetData, - } + }, ]; } else { const dataStartRow = parseInt(this.getNodeParameter('dataStartRow', 0) as string, 10); diff --git a/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts index 55a690ad7..fcaefc716 100644 --- a/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts @@ -23,13 +23,13 @@ export async function googleApiRequest( ): Promise { // tslint:disable-line:no-any const options: OptionsWithUri = { headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', }, method, body, qs, uri: uri || `https://www.googleapis.com${resource}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts b/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts index 9ba91570c..a4dea96a8 100644 --- a/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts +++ b/packages/nodes-base/nodes/Google/Task/GoogleTasks.node.ts @@ -32,15 +32,15 @@ export class GoogleTasks implements INodeType { description: 'Consume Google Tasks API.', defaults: { name: 'Google Tasks', - color: '#3E87E4' + color: '#3E87E4', }, inputs: ['main'], outputs: ['main'], credentials: [ { name: 'googleTasksOAuth2Api', - required: true - } + required: true, + }, ], properties: [ { @@ -50,15 +50,15 @@ export class GoogleTasks implements INodeType { options: [ { name: 'Task', - value: 'task' - } + value: 'task', + }, ], default: 'task', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...taskOperations, - ...taskFields - ] + ...taskFields, + ], }; methods = { loadOptions: { @@ -79,12 +79,12 @@ export class GoogleTasks implements INodeType { const taskId = task.id; returnData.push({ name: taskName, - value: taskId + value: taskId, }); } return returnData; - } - } + }, + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts index 3300572f2..aaf2892ab 100644 --- a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts +++ b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts @@ -39,11 +39,11 @@ export const taskOperations = [ name: 'Update', value: 'update', description: 'Update a task', - } + }, ], default: 'create', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const taskFields = [ @@ -91,7 +91,7 @@ export const taskFields = [ resource: [ 'task', ], - } + }, }, options: [ { @@ -148,7 +148,7 @@ export const taskFields = [ { name: 'Completed', value: 'completed', - } + }, ], default: '', description: 'Current status of the task.', @@ -215,7 +215,7 @@ export const taskFields = [ resource: [ 'task', ], - } + }, }, default: '', }, @@ -295,7 +295,7 @@ export const taskFields = [ }, typeOptions: { minValue: 1, - maxValue: 100 + maxValue: 100, }, default: 20, description: 'How many results to return.', @@ -373,7 +373,7 @@ export const taskFields = [ default: '', description: 'Lower bound for a task last modification time (as a RFC 3339 timestamp) to filter by.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* task:update */ @@ -429,7 +429,7 @@ export const taskFields = [ resource: [ 'task', ], - } + }, }, options: [ { @@ -476,7 +476,7 @@ export const taskFields = [ { name: 'Completed', value: 'completed', - } + }, ], default: '', description: 'Current status of the task.', diff --git a/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts index 2cf1a47c0..338572382 100644 --- a/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Translate/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://translation.googleapis.com${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { @@ -120,7 +120,7 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa assertion: signature, }, uri: 'https://oauth2.googleapis.com/token', - json: true + json: true, }; //@ts-ignore diff --git a/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts b/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts index 5f9fbe9f9..5d1f70926 100644 --- a/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts +++ b/packages/nodes-base/nodes/Google/Translate/GoogleTranslate.node.ts @@ -163,12 +163,12 @@ export class GoogleTranslate implements INodeType { for (const language of languages) { returnData.push({ name: language.language.toUpperCase(), - value: language.language + value: language.language, }); } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts index 4c6a5188f..cdd660872 100644 --- a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts @@ -34,11 +34,11 @@ export const channelOperations = [ name: 'Upload Banner', value: 'uploadBanner', description: 'Upload a channel banner', - } + }, ], default: 'getAll', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const channelFields = [ @@ -215,7 +215,7 @@ export const channelFields = [ name: 'h1', type: 'options', typeOptions: { - loadOptionsMethod: 'getLanguages' + loadOptionsMethod: 'getLanguages', }, default: '', description: `The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports.`, diff --git a/packages/nodes-base/nodes/Google/YouTube/CountryCodes.ts b/packages/nodes-base/nodes/Google/YouTube/CountryCodes.ts index 3c41a76c7..4c37abc6b 100644 --- a/packages/nodes-base/nodes/Google/YouTube/CountryCodes.ts +++ b/packages/nodes-base/nodes/Google/YouTube/CountryCodes.ts @@ -3,291 +3,291 @@ export const countriesCodes = [ 'name': 'Afghanistan', 'alpha2': 'AF', 'alpha3': 'AFG', - 'numeric': '004' + 'numeric': '004', }, { 'name': 'Åland Islands', 'alpha2': 'AX', 'alpha3': 'ALA', 'numeric': '248', - 'altName': 'Aland Islands' + 'altName': 'Aland Islands', }, { 'name': 'Albania', 'alpha2': 'AL', 'alpha3': 'ALB', - 'numeric': '008' + 'numeric': '008', }, { 'name': 'Algeria', 'alpha2': 'DZ', 'alpha3': 'DZA', - 'numeric': '012' + 'numeric': '012', }, { 'name': 'American Samoa', 'alpha2': 'AS', 'alpha3': 'ASM', - 'numeric': '016' + 'numeric': '016', }, { 'name': 'Andorra', 'alpha2': 'AD', 'alpha3': 'AND', - 'numeric': '020' + 'numeric': '020', }, { 'name': 'Angola', 'alpha2': 'AO', 'alpha3': 'AGO', - 'numeric': '024' + 'numeric': '024', }, { 'name': 'Anguilla', 'alpha2': 'AI', 'alpha3': 'AIA', - 'numeric': '660' + 'numeric': '660', }, { 'name': 'Antarctica', 'alpha2': 'AQ', 'alpha3': 'ATA', - 'numeric': '010' + 'numeric': '010', }, { 'name': 'Antigua and Barbuda', 'alpha2': 'AG', 'alpha3': 'ATG', - 'numeric': '028' + 'numeric': '028', }, { 'name': 'Argentina', 'alpha2': 'AR', 'alpha3': 'ARG', - 'numeric': '032' + 'numeric': '032', }, { 'name': 'Armenia', 'alpha2': 'AM', 'alpha3': 'ARM', - 'numeric': '051' + 'numeric': '051', }, { 'name': 'Aruba', 'alpha2': 'AW', 'alpha3': 'ABW', - 'numeric': '533' + 'numeric': '533', }, { 'name': 'Australia', 'alpha2': 'AU', 'alpha3': 'AUS', - 'numeric': '036' + 'numeric': '036', }, { 'name': 'Austria', 'alpha2': 'AT', 'alpha3': 'AUT', - 'numeric': '040' + 'numeric': '040', }, { 'name': 'Azerbaijan', 'alpha2': 'AZ', 'alpha3': 'AZE', - 'numeric': '031' + 'numeric': '031', }, { 'name': 'Bahamas (the)', 'alpha2': 'BS', 'alpha3': 'BHS', 'numeric': '044', - 'altName': 'Bahamas' + 'altName': 'Bahamas', }, { 'name': 'Bahrain', 'alpha2': 'BH', 'alpha3': 'BHR', - 'numeric': '048' + 'numeric': '048', }, { 'name': 'Bangladesh', 'alpha2': 'BD', 'alpha3': 'BGD', - 'numeric': '050' + 'numeric': '050', }, { 'name': 'Barbados', 'alpha2': 'BB', 'alpha3': 'BRB', - 'numeric': '052' + 'numeric': '052', }, { 'name': 'Belarus', 'alpha2': 'BY', 'alpha3': 'BLR', - 'numeric': '112' + 'numeric': '112', }, { 'name': 'Belgium', 'alpha2': 'BE', 'alpha3': 'BEL', - 'numeric': '056' + 'numeric': '056', }, { 'name': 'Belize', 'alpha2': 'BZ', 'alpha3': 'BLZ', - 'numeric': '084' + 'numeric': '084', }, { 'name': 'Benin', 'alpha2': 'BJ', 'alpha3': 'BEN', - 'numeric': '204' + 'numeric': '204', }, { 'name': 'Bermuda', 'alpha2': 'BM', 'alpha3': 'BMU', - 'numeric': '060' + 'numeric': '060', }, { 'name': 'Bhutan', 'alpha2': 'BT', 'alpha3': 'BTN', - 'numeric': '064' + 'numeric': '064', }, { 'name': 'Bolivia (Plurinational State of)', 'alpha2': 'BO', 'alpha3': 'BOL', 'numeric': '068', - 'altName': 'Bolivia' + 'altName': 'Bolivia', }, { 'name': 'Bonaire, Sint Eustatius and Saba', 'alpha2': 'BQ', 'alpha3': 'BES', - 'numeric': '535' + 'numeric': '535', }, { 'name': 'Bosnia and Herzegovina', 'alpha2': 'BA', 'alpha3': 'BIH', - 'numeric': '070' + 'numeric': '070', }, { 'name': 'Botswana', 'alpha2': 'BW', 'alpha3': 'BWA', - 'numeric': '072' + 'numeric': '072', }, { 'name': 'Bouvet Island', 'alpha2': 'BV', 'alpha3': 'BVT', - 'numeric': '074' + 'numeric': '074', }, { 'name': 'Brazil', 'alpha2': 'BR', 'alpha3': 'BRA', - 'numeric': '076' + 'numeric': '076', }, { 'name': 'British Indian Ocean Territory (the)', 'alpha2': 'IO', 'alpha3': 'IOT', 'numeric': '086', - 'altName': 'British Indian Ocean Territory' + 'altName': 'British Indian Ocean Territory', }, { 'name': 'Brunei Darussalam', 'alpha2': 'BN', 'alpha3': 'BRN', 'numeric': '096', - 'shortName': 'Brunei' + 'shortName': 'Brunei', }, { 'name': 'Bulgaria', 'alpha2': 'BG', 'alpha3': 'BGR', - 'numeric': '100' + 'numeric': '100', }, { 'name': 'Burkina Faso', 'alpha2': 'BF', 'alpha3': 'BFA', - 'numeric': '854' + 'numeric': '854', }, { 'name': 'Burundi', 'alpha2': 'BI', 'alpha3': 'BDI', - 'numeric': '108' + 'numeric': '108', }, { 'name': 'Cabo Verde', 'alpha2': 'CV', 'alpha3': 'CPV', 'numeric': '132', - 'altName': 'Cape Verde' + 'altName': 'Cape Verde', }, { 'name': 'Cambodia', 'alpha2': 'KH', 'alpha3': 'KHM', - 'numeric': '116' + 'numeric': '116', }, { 'name': 'Cameroon', 'alpha2': 'CM', 'alpha3': 'CMR', - 'numeric': '120' + 'numeric': '120', }, { 'name': 'Canada', 'alpha2': 'CA', 'alpha3': 'CAN', - 'numeric': '124' + 'numeric': '124', }, { 'name': 'Cayman Islands (the)', 'alpha2': 'KY', 'alpha3': 'CYM', 'numeric': '136', - 'altName': 'Cayman Islands' + 'altName': 'Cayman Islands', }, { 'name': 'Central African Republic (the)', 'alpha2': 'CF', 'alpha3': 'CAF', 'numeric': '140', - 'altName': 'Central African Republic' + 'altName': 'Central African Republic', }, { 'name': 'Chad', 'alpha2': 'TD', 'alpha3': 'TCD', - 'numeric': '148' + 'numeric': '148', }, { 'name': 'Chile', 'alpha2': 'CL', 'alpha3': 'CHL', - 'numeric': '152' + 'numeric': '152', }, { 'name': 'China', 'alpha2': 'CN', 'alpha3': 'CHN', - 'numeric': '156' + 'numeric': '156', }, { 'name': 'Christmas Island', 'alpha2': 'CX', 'alpha3': 'CXR', - 'numeric': '162' + 'numeric': '162', }, { 'name': 'Cocos (Keeling) Islands (the)', @@ -295,20 +295,20 @@ export const countriesCodes = [ 'alpha3': 'CCK', 'numeric': '166', 'altName': 'Cocos (Keeling) Islands', - 'shortName': 'Cocos Islands' + 'shortName': 'Cocos Islands', }, { 'name': 'Colombia', 'alpha2': 'CO', 'alpha3': 'COL', - 'numeric': '170' + 'numeric': '170', }, { 'name': 'Comoros (the)', 'alpha2': 'KM', 'alpha3': 'COM', 'numeric': '174', - 'altName': 'Comoros' + 'altName': 'Comoros', }, { 'name': 'Congo (the Democratic Republic of the)', @@ -316,7 +316,7 @@ export const countriesCodes = [ 'alpha3': 'COD', 'numeric': '180', 'altName': 'Congo, (Kinshasa)', - 'shortName': 'Democratic Republic of the Congo' + 'shortName': 'Democratic Republic of the Congo', }, { 'name': 'Congo (the)', @@ -324,126 +324,126 @@ export const countriesCodes = [ 'alpha3': 'COG', 'numeric': '178', 'altName': 'Congo (Brazzaville)', - 'shortName': 'Republic of the Congo' + 'shortName': 'Republic of the Congo', }, { 'name': 'Cook Islands (the)', 'alpha2': 'CK', 'alpha3': 'COK', 'numeric': '184', - 'altName': 'Cook Islands' + 'altName': 'Cook Islands', }, { 'name': 'Costa Rica', 'alpha2': 'CR', 'alpha3': 'CRI', - 'numeric': '188' + 'numeric': '188', }, { 'name': 'Côte d\'Ivoire', 'alpha2': 'CI', 'alpha3': 'CIV', 'numeric': '384', - 'shortName': 'Ivory Coast' + 'shortName': 'Ivory Coast', }, { 'name': 'Croatia', 'alpha2': 'HR', 'alpha3': 'HRV', - 'numeric': '191' + 'numeric': '191', }, { 'name': 'Cuba', 'alpha2': 'CU', 'alpha3': 'CUB', - 'numeric': '192' + 'numeric': '192', }, { 'name': 'Curaçao', 'alpha2': 'CW', 'alpha3': 'CUW', 'numeric': '531', - 'shortName': 'Curacao' + 'shortName': 'Curacao', }, { 'name': 'Cyprus', 'alpha2': 'CY', 'alpha3': 'CYP', - 'numeric': '196' + 'numeric': '196', }, { 'name': 'Czechia', 'alpha2': 'CZ', 'alpha3': 'CZE', 'numeric': '203', - 'altName': 'Czech Republic' + 'altName': 'Czech Republic', }, { 'name': 'Denmark', 'alpha2': 'DK', 'alpha3': 'DNK', - 'numeric': '208' + 'numeric': '208', }, { 'name': 'Djibouti', 'alpha2': 'DJ', 'alpha3': 'DJI', - 'numeric': '262' + 'numeric': '262', }, { 'name': 'Dominica', 'alpha2': 'DM', 'alpha3': 'DMA', - 'numeric': '212' + 'numeric': '212', }, { 'name': 'Dominican Republic (the)', 'alpha2': 'DO', 'alpha3': 'DOM', 'numeric': '214', - 'altName': 'Dominican Republic' + 'altName': 'Dominican Republic', }, { 'name': 'Ecuador', 'alpha2': 'EC', 'alpha3': 'ECU', - 'numeric': '218' + 'numeric': '218', }, { 'name': 'Egypt', 'alpha2': 'EG', 'alpha3': 'EGY', - 'numeric': '818' + 'numeric': '818', }, { 'name': 'El Salvador', 'alpha2': 'SV', 'alpha3': 'SLV', - 'numeric': '222' + 'numeric': '222', }, { 'name': 'Equatorial Guinea', 'alpha2': 'GQ', 'alpha3': 'GNQ', - 'numeric': '226' + 'numeric': '226', }, { 'name': 'Eritrea', 'alpha2': 'ER', 'alpha3': 'ERI', - 'numeric': '232' + 'numeric': '232', }, { 'name': 'Estonia', 'alpha2': 'EE', 'alpha3': 'EST', - 'numeric': '233' + 'numeric': '233', }, { 'name': 'Ethiopia', 'alpha2': 'ET', 'alpha3': 'ETH', - 'numeric': '231' + 'numeric': '231', }, { 'name': 'Falkland Islands (the) [Malvinas]', @@ -451,161 +451,161 @@ export const countriesCodes = [ 'alpha3': 'FLK', 'numeric': '238', 'altName': 'Falkland Islands (Malvinas)', - 'shortName': 'Falkland Islands' + 'shortName': 'Falkland Islands', }, { 'name': 'Faroe Islands (the)', 'alpha2': 'FO', 'alpha3': 'FRO', 'numeric': '234', - 'altName': 'Faroe Islands' + 'altName': 'Faroe Islands', }, { 'name': 'Fiji', 'alpha2': 'FJ', 'alpha3': 'FJI', - 'numeric': '242' + 'numeric': '242', }, { 'name': 'Finland', 'alpha2': 'FI', 'alpha3': 'FIN', - 'numeric': '246' + 'numeric': '246', }, { 'name': 'France', 'alpha2': 'FR', 'alpha3': 'FRA', - 'numeric': '250' + 'numeric': '250', }, { 'name': 'French Guiana', 'alpha2': 'GF', 'alpha3': 'GUF', - 'numeric': '254' + 'numeric': '254', }, { 'name': 'French Polynesia', 'alpha2': 'PF', 'alpha3': 'PYF', - 'numeric': '258' + 'numeric': '258', }, { 'name': 'French Southern Territories (the)', 'alpha2': 'TF', 'alpha3': 'ATF', 'numeric': '260', - 'altName': 'French Southern Territories' + 'altName': 'French Southern Territories', }, { 'name': 'Gabon', 'alpha2': 'GA', 'alpha3': 'GAB', - 'numeric': '266' + 'numeric': '266', }, { 'name': 'Gambia (the)', 'alpha2': 'GM', 'alpha3': 'GMB', 'numeric': '270', - 'altName': 'Gambia' + 'altName': 'Gambia', }, { 'name': 'Georgia', 'alpha2': 'GE', 'alpha3': 'GEO', - 'numeric': '268' + 'numeric': '268', }, { 'name': 'Germany', 'alpha2': 'DE', 'alpha3': 'DEU', - 'numeric': '276' + 'numeric': '276', }, { 'name': 'Ghana', 'alpha2': 'GH', 'alpha3': 'GHA', - 'numeric': '288' + 'numeric': '288', }, { 'name': 'Gibraltar', 'alpha2': 'GI', 'alpha3': 'GIB', - 'numeric': '292' + 'numeric': '292', }, { 'name': 'Greece', 'alpha2': 'GR', 'alpha3': 'GRC', - 'numeric': '300' + 'numeric': '300', }, { 'name': 'Greenland', 'alpha2': 'GL', 'alpha3': 'GRL', - 'numeric': '304' + 'numeric': '304', }, { 'name': 'Grenada', 'alpha2': 'GD', 'alpha3': 'GRD', - 'numeric': '308' + 'numeric': '308', }, { 'name': 'Guadeloupe', 'alpha2': 'GP', 'alpha3': 'GLP', - 'numeric': '312' + 'numeric': '312', }, { 'name': 'Guam', 'alpha2': 'GU', 'alpha3': 'GUM', - 'numeric': '316' + 'numeric': '316', }, { 'name': 'Guatemala', 'alpha2': 'GT', 'alpha3': 'GTM', - 'numeric': '320' + 'numeric': '320', }, { 'name': 'Guernsey', 'alpha2': 'GG', 'alpha3': 'GGY', - 'numeric': '831' + 'numeric': '831', }, { 'name': 'Guinea', 'alpha2': 'GN', 'alpha3': 'GIN', - 'numeric': '324' + 'numeric': '324', }, { 'name': 'Guinea-Bissau', 'alpha2': 'GW', 'alpha3': 'GNB', - 'numeric': '624' + 'numeric': '624', }, { 'name': 'Guyana', 'alpha2': 'GY', 'alpha3': 'GUY', - 'numeric': '328' + 'numeric': '328', }, { 'name': 'Haiti', 'alpha2': 'HT', 'alpha3': 'HTI', - 'numeric': '332' + 'numeric': '332', }, { 'name': 'Heard Island and McDonald Islands', 'alpha2': 'HM', 'alpha3': 'HMD', 'numeric': '334', - 'altName': 'Heard and Mcdonald Islands' + 'altName': 'Heard and Mcdonald Islands', }, { 'name': 'Holy See (the)', @@ -613,44 +613,44 @@ export const countriesCodes = [ 'alpha3': 'VAT', 'numeric': '336', 'altName': 'Holy See (Vatican City State)', - 'shortName': 'Vatican' + 'shortName': 'Vatican', }, { 'name': 'Honduras', 'alpha2': 'HN', 'alpha3': 'HND', - 'numeric': '340' + 'numeric': '340', }, { 'name': 'Hong Kong', 'alpha2': 'HK', 'alpha3': 'HKG', 'numeric': '344', - 'altName': 'Hong Kong, SAR China' + 'altName': 'Hong Kong, SAR China', }, { 'name': 'Hungary', 'alpha2': 'HU', 'alpha3': 'HUN', - 'numeric': '348' + 'numeric': '348', }, { 'name': 'Iceland', 'alpha2': 'IS', 'alpha3': 'ISL', - 'numeric': '352' + 'numeric': '352', }, { 'name': 'India', 'alpha2': 'IN', 'alpha3': 'IND', - 'numeric': '356' + 'numeric': '356', }, { 'name': 'Indonesia', 'alpha2': 'ID', 'alpha3': 'IDN', - 'numeric': '360' + 'numeric': '360', }, { 'name': 'Iran (Islamic Republic of)', @@ -658,79 +658,79 @@ export const countriesCodes = [ 'alpha3': 'IRN', 'numeric': '364', 'altName': 'Iran, Islamic Republic of', - 'shortName': 'Iran' + 'shortName': 'Iran', }, { 'name': 'Iraq', 'alpha2': 'IQ', 'alpha3': 'IRQ', - 'numeric': '368' + 'numeric': '368', }, { 'name': 'Ireland', 'alpha2': 'IE', 'alpha3': 'IRL', - 'numeric': '372' + 'numeric': '372', }, { 'name': 'Isle of Man', 'alpha2': 'IM', 'alpha3': 'IMN', - 'numeric': '833' + 'numeric': '833', }, { 'name': 'Israel', 'alpha2': 'IL', 'alpha3': 'ISR', - 'numeric': '376' + 'numeric': '376', }, { 'name': 'Italy', 'alpha2': 'IT', 'alpha3': 'ITA', - 'numeric': '380' + 'numeric': '380', }, { 'name': 'Jamaica', 'alpha2': 'JM', 'alpha3': 'JAM', - 'numeric': '388' + 'numeric': '388', }, { 'name': 'Japan', 'alpha2': 'JP', 'alpha3': 'JPN', - 'numeric': '392' + 'numeric': '392', }, { 'name': 'Jersey', 'alpha2': 'JE', 'alpha3': 'JEY', - 'numeric': '832' + 'numeric': '832', }, { 'name': 'Jordan', 'alpha2': 'JO', 'alpha3': 'JOR', - 'numeric': '400' + 'numeric': '400', }, { 'name': 'Kazakhstan', 'alpha2': 'KZ', 'alpha3': 'KAZ', - 'numeric': '398' + 'numeric': '398', }, { 'name': 'Kenya', 'alpha2': 'KE', 'alpha3': 'KEN', - 'numeric': '404' + 'numeric': '404', }, { 'name': 'Kiribati', 'alpha2': 'KI', 'alpha3': 'KIR', - 'numeric': '296' + 'numeric': '296', }, { 'name': 'Korea (the Democratic People\'s Republic of)', @@ -738,7 +738,7 @@ export const countriesCodes = [ 'alpha3': 'PRK', 'numeric': '408', 'altName': 'Korea (North)', - 'shortName': 'North Korea' + 'shortName': 'North Korea', }, { 'name': 'Korea (the Republic of)', @@ -746,19 +746,19 @@ export const countriesCodes = [ 'alpha3': 'KOR', 'numeric': '410', 'altName': 'Korea (South)', - 'shortName': 'South Korea' + 'shortName': 'South Korea', }, { 'name': 'Kuwait', 'alpha2': 'KW', 'alpha3': 'KWT', - 'numeric': '414' + 'numeric': '414', }, { 'name': 'Kyrgyzstan', 'alpha2': 'KG', 'alpha3': 'KGZ', - 'numeric': '417' + 'numeric': '417', }, { 'name': 'Lao People\'s Democratic Republic (the)', @@ -766,55 +766,55 @@ export const countriesCodes = [ 'alpha3': 'LAO', 'numeric': '418', 'altName': 'Lao PDR', - 'shortName': 'Laos' + 'shortName': 'Laos', }, { 'name': 'Latvia', 'alpha2': 'LV', 'alpha3': 'LVA', - 'numeric': '428' + 'numeric': '428', }, { 'name': 'Lebanon', 'alpha2': 'LB', 'alpha3': 'LBN', - 'numeric': '422' + 'numeric': '422', }, { 'name': 'Lesotho', 'alpha2': 'LS', 'alpha3': 'LSO', - 'numeric': '426' + 'numeric': '426', }, { 'name': 'Liberia', 'alpha2': 'LR', 'alpha3': 'LBR', - 'numeric': '430' + 'numeric': '430', }, { 'name': 'Libya', 'alpha2': 'LY', 'alpha3': 'LBY', - 'numeric': '434' + 'numeric': '434', }, { 'name': 'Liechtenstein', 'alpha2': 'LI', 'alpha3': 'LIE', - 'numeric': '438' + 'numeric': '438', }, { 'name': 'Lithuania', 'alpha2': 'LT', 'alpha3': 'LTU', - 'numeric': '440' + 'numeric': '440', }, { 'name': 'Luxembourg', 'alpha2': 'LU', 'alpha3': 'LUX', - 'numeric': '442' + 'numeric': '442', }, { 'name': 'Macao', @@ -822,7 +822,7 @@ export const countriesCodes = [ 'alpha3': 'MAC', 'numeric': '446', 'altName': 'Macao, SAR China', - 'shortName': 'Macau' + 'shortName': 'Macau', }, { 'name': 'Macedonia (the former Yugoslav Republic of)', @@ -830,80 +830,80 @@ export const countriesCodes = [ 'alpha3': 'MKD', 'numeric': '807', 'altName': 'Macedonia, Republic of', - 'shortName': 'Macedonia' + 'shortName': 'Macedonia', }, { 'name': 'Madagascar', 'alpha2': 'MG', 'alpha3': 'MDG', - 'numeric': '450' + 'numeric': '450', }, { 'name': 'Malawi', 'alpha2': 'MW', 'alpha3': 'MWI', - 'numeric': '454' + 'numeric': '454', }, { 'name': 'Malaysia', 'alpha2': 'MY', 'alpha3': 'MYS', - 'numeric': '458' + 'numeric': '458', }, { 'name': 'Maldives', 'alpha2': 'MV', 'alpha3': 'MDV', - 'numeric': '462' + 'numeric': '462', }, { 'name': 'Mali', 'alpha2': 'ML', 'alpha3': 'MLI', - 'numeric': '466' + 'numeric': '466', }, { 'name': 'Malta', 'alpha2': 'MT', 'alpha3': 'MLT', - 'numeric': '470' + 'numeric': '470', }, { 'name': 'Marshall Islands (the)', 'alpha2': 'MH', 'alpha3': 'MHL', 'numeric': '584', - 'altName': 'Marshall Islands' + 'altName': 'Marshall Islands', }, { 'name': 'Martinique', 'alpha2': 'MQ', 'alpha3': 'MTQ', - 'numeric': '474' + 'numeric': '474', }, { 'name': 'Mauritania', 'alpha2': 'MR', 'alpha3': 'MRT', - 'numeric': '478' + 'numeric': '478', }, { 'name': 'Mauritius', 'alpha2': 'MU', 'alpha3': 'MUS', - 'numeric': '480' + 'numeric': '480', }, { 'name': 'Mayotte', 'alpha2': 'YT', 'alpha3': 'MYT', - 'numeric': '175' + 'numeric': '175', }, { 'name': 'Mexico', 'alpha2': 'MX', 'alpha3': 'MEX', - 'numeric': '484' + 'numeric': '484', }, { 'name': 'Micronesia (Federated States of)', @@ -911,155 +911,155 @@ export const countriesCodes = [ 'alpha3': 'FSM', 'numeric': '583', 'altName': 'Micronesia, Federated States of', - 'shortName': 'Micronesia' + 'shortName': 'Micronesia', }, { 'name': 'Moldova (the Republic of)', 'alpha2': 'MD', 'alpha3': 'MDA', 'numeric': '498', - 'altName': 'Moldova' + 'altName': 'Moldova', }, { 'name': 'Monaco', 'alpha2': 'MC', 'alpha3': 'MCO', - 'numeric': '492' + 'numeric': '492', }, { 'name': 'Mongolia', 'alpha2': 'MN', 'alpha3': 'MNG', - 'numeric': '496' + 'numeric': '496', }, { 'name': 'Montenegro', 'alpha2': 'ME', 'alpha3': 'MNE', - 'numeric': '499' + 'numeric': '499', }, { 'name': 'Montserrat', 'alpha2': 'MS', 'alpha3': 'MSR', - 'numeric': '500' + 'numeric': '500', }, { 'name': 'Morocco', 'alpha2': 'MA', 'alpha3': 'MAR', - 'numeric': '504' + 'numeric': '504', }, { 'name': 'Mozambique', 'alpha2': 'MZ', 'alpha3': 'MOZ', - 'numeric': '508' + 'numeric': '508', }, { 'name': 'Myanmar', 'alpha2': 'MM', 'alpha3': 'MMR', - 'numeric': '104' + 'numeric': '104', }, { 'name': 'Namibia', 'alpha2': 'NA', 'alpha3': 'NAM', - 'numeric': '516' + 'numeric': '516', }, { 'name': 'Nauru', 'alpha2': 'NR', 'alpha3': 'NRU', - 'numeric': '520' + 'numeric': '520', }, { 'name': 'Nepal', 'alpha2': 'NP', 'alpha3': 'NPL', - 'numeric': '524' + 'numeric': '524', }, { 'name': 'Netherlands (the)', 'alpha2': 'NL', 'alpha3': 'NLD', 'numeric': '528', - 'altName': 'Netherlands' + 'altName': 'Netherlands', }, { 'name': 'New Caledonia', 'alpha2': 'NC', 'alpha3': 'NCL', - 'numeric': '540' + 'numeric': '540', }, { 'name': 'New Zealand', 'alpha2': 'NZ', 'alpha3': 'NZL', - 'numeric': '554' + 'numeric': '554', }, { 'name': 'Nicaragua', 'alpha2': 'NI', 'alpha3': 'NIC', - 'numeric': '558' + 'numeric': '558', }, { 'name': 'Niger (the)', 'alpha2': 'NE', 'alpha3': 'NER', 'numeric': '562', - 'altName': 'Niger' + 'altName': 'Niger', }, { 'name': 'Nigeria', 'alpha2': 'NG', 'alpha3': 'NGA', - 'numeric': '566' + 'numeric': '566', }, { 'name': 'Niue', 'alpha2': 'NU', 'alpha3': 'NIU', - 'numeric': '570' + 'numeric': '570', }, { 'name': 'Norfolk Island', 'alpha2': 'NF', 'alpha3': 'NFK', - 'numeric': '574' + 'numeric': '574', }, { 'name': 'Northern Mariana Islands (the)', 'alpha2': 'MP', 'alpha3': 'MNP', 'numeric': '580', - 'altName': 'Northern Mariana Islands' + 'altName': 'Northern Mariana Islands', }, { 'name': 'Norway', 'alpha2': 'NO', 'alpha3': 'NOR', - 'numeric': '578' + 'numeric': '578', }, { 'name': 'Oman', 'alpha2': 'OM', 'alpha3': 'OMN', - 'numeric': '512' + 'numeric': '512', }, { 'name': 'Pakistan', 'alpha2': 'PK', 'alpha3': 'PAK', - 'numeric': '586' + 'numeric': '586', }, { 'name': 'Palau', 'alpha2': 'PW', 'alpha3': 'PLW', - 'numeric': '585' + 'numeric': '585', }, { 'name': 'Palestine, State of', @@ -1067,81 +1067,81 @@ export const countriesCodes = [ 'alpha3': 'PSE', 'numeric': '275', 'altName': 'Palestinian Territory', - 'shortName': 'Palestine' + 'shortName': 'Palestine', }, { 'name': 'Panama', 'alpha2': 'PA', 'alpha3': 'PAN', - 'numeric': '591' + 'numeric': '591', }, { 'name': 'Papua New Guinea', 'alpha2': 'PG', 'alpha3': 'PNG', - 'numeric': '598' + 'numeric': '598', }, { 'name': 'Paraguay', 'alpha2': 'PY', 'alpha3': 'PRY', - 'numeric': '600' + 'numeric': '600', }, { 'name': 'Peru', 'alpha2': 'PE', 'alpha3': 'PER', - 'numeric': '604' + 'numeric': '604', }, { 'name': 'Philippines (the)', 'alpha2': 'PH', 'alpha3': 'PHL', 'numeric': '608', - 'altName': 'Philippines' + 'altName': 'Philippines', }, { 'name': 'Pitcairn', 'alpha2': 'PN', 'alpha3': 'PCN', - 'numeric': '612' + 'numeric': '612', }, { 'name': 'Poland', 'alpha2': 'PL', 'alpha3': 'POL', - 'numeric': '616' + 'numeric': '616', }, { 'name': 'Portugal', 'alpha2': 'PT', 'alpha3': 'PRT', - 'numeric': '620' + 'numeric': '620', }, { 'name': 'Puerto Rico', 'alpha2': 'PR', 'alpha3': 'PRI', - 'numeric': '630' + 'numeric': '630', }, { 'name': 'Qatar', 'alpha2': 'QA', 'alpha3': 'QAT', - 'numeric': '634' + 'numeric': '634', }, { 'name': 'Réunion', 'alpha2': 'RE', 'alpha3': 'REU', 'numeric': '638', - 'shortName': 'Reunion' + 'shortName': 'Reunion', }, { 'name': 'Romania', 'alpha2': 'RO', 'alpha3': 'ROU', - 'numeric': '642' + 'numeric': '642', }, { 'name': 'Russian Federation (the)', @@ -1149,13 +1149,13 @@ export const countriesCodes = [ 'alpha3': 'RUS', 'numeric': '643', 'altName': 'Russian Federation', - 'shortName': 'Russia' + 'shortName': 'Russia', }, { 'name': 'Rwanda', 'alpha2': 'RW', 'alpha3': 'RWA', - 'numeric': '646' + 'numeric': '646', }, { 'name': 'Saint Barthélemy', @@ -1163,26 +1163,26 @@ export const countriesCodes = [ 'alpha3': 'BLM', 'numeric': '652', 'altName': 'Saint-Barthélemy', - 'shortName': 'Saint Barthelemy' + 'shortName': 'Saint Barthelemy', }, { 'name': 'Saint Helena, Ascension and Tristan da Cunha', 'alpha2': 'SH', 'alpha3': 'SHN', 'numeric': '654', - 'altName': 'Saint Helena' + 'altName': 'Saint Helena', }, { 'name': 'Saint Kitts and Nevis', 'alpha2': 'KN', 'alpha3': 'KNA', - 'numeric': '659' + 'numeric': '659', }, { 'name': 'Saint Lucia', 'alpha2': 'LC', 'alpha3': 'LCA', - 'numeric': '662' + 'numeric': '662', }, { 'name': 'Saint Martin (French part)', @@ -1190,173 +1190,173 @@ export const countriesCodes = [ 'alpha3': 'MAF', 'numeric': '663', 'altName': 'Saint-Martin (French part)', - 'shortName': 'Saint Martin' + 'shortName': 'Saint Martin', }, { 'name': 'Saint Pierre and Miquelon', 'alpha2': 'PM', 'alpha3': 'SPM', - 'numeric': '666' + 'numeric': '666', }, { 'name': 'Saint Vincent and the Grenadines', 'alpha2': 'VC', 'alpha3': 'VCT', 'numeric': '670', - 'altName': 'Saint Vincent and Grenadines' + 'altName': 'Saint Vincent and Grenadines', }, { 'name': 'Samoa', 'alpha2': 'WS', 'alpha3': 'WSM', - 'numeric': '882' + 'numeric': '882', }, { 'name': 'San Marino', 'alpha2': 'SM', 'alpha3': 'SMR', - 'numeric': '674' + 'numeric': '674', }, { 'name': 'Sao Tome and Principe', 'alpha2': 'ST', 'alpha3': 'STP', - 'numeric': '678' + 'numeric': '678', }, { 'name': 'Saudi Arabia', 'alpha2': 'SA', 'alpha3': 'SAU', - 'numeric': '682' + 'numeric': '682', }, { 'name': 'Senegal', 'alpha2': 'SN', 'alpha3': 'SEN', - 'numeric': '686' + 'numeric': '686', }, { 'name': 'Serbia', 'alpha2': 'RS', 'alpha3': 'SRB', - 'numeric': '688' + 'numeric': '688', }, { 'name': 'Seychelles', 'alpha2': 'SC', 'alpha3': 'SYC', - 'numeric': '690' + 'numeric': '690', }, { 'name': 'Sierra Leone', 'alpha2': 'SL', 'alpha3': 'SLE', - 'numeric': '694' + 'numeric': '694', }, { 'name': 'Singapore', 'alpha2': 'SG', 'alpha3': 'SGP', - 'numeric': '702' + 'numeric': '702', }, { 'name': 'Sint Maarten (Dutch part)', 'alpha2': 'SX', 'alpha3': 'SXM', 'numeric': '534', - 'shortName': 'Sint Maarten' + 'shortName': 'Sint Maarten', }, { 'name': 'Slovakia', 'alpha2': 'SK', 'alpha3': 'SVK', - 'numeric': '703' + 'numeric': '703', }, { 'name': 'Slovenia', 'alpha2': 'SI', 'alpha3': 'SVN', - 'numeric': '705' + 'numeric': '705', }, { 'name': 'Solomon Islands', 'alpha2': 'SB', 'alpha3': 'SLB', - 'numeric': '090' + 'numeric': '090', }, { 'name': 'Somalia', 'alpha2': 'SO', 'alpha3': 'SOM', - 'numeric': '706' + 'numeric': '706', }, { 'name': 'South Africa', 'alpha2': 'ZA', 'alpha3': 'ZAF', - 'numeric': '710' + 'numeric': '710', }, { 'name': 'South Georgia and the South Sandwich Islands', 'alpha2': 'GS', 'alpha3': 'SGS', - 'numeric': '239' + 'numeric': '239', }, { 'name': 'South Sudan', 'alpha2': 'SS', 'alpha3': 'SSD', - 'numeric': '728' + 'numeric': '728', }, { 'name': 'Spain', 'alpha2': 'ES', 'alpha3': 'ESP', - 'numeric': '724' + 'numeric': '724', }, { 'name': 'Sri Lanka', 'alpha2': 'LK', 'alpha3': 'LKA', - 'numeric': '144' + 'numeric': '144', }, { 'name': 'Sudan (the)', 'alpha2': 'SD', 'alpha3': 'SDN', 'numeric': '729', - 'altName': 'Sudan' + 'altName': 'Sudan', }, { 'name': 'Suriname', 'alpha2': 'SR', 'alpha3': 'SUR', - 'numeric': '740' + 'numeric': '740', }, { 'name': 'Svalbard and Jan Mayen', 'alpha2': 'SJ', 'alpha3': 'SJM', 'numeric': '744', - 'altName': 'Svalbard and Jan Mayen Islands' + 'altName': 'Svalbard and Jan Mayen Islands', }, { 'name': 'Swaziland', 'alpha2': 'SZ', 'alpha3': 'SWZ', - 'numeric': '748' + 'numeric': '748', }, { 'name': 'Sweden', 'alpha2': 'SE', 'alpha3': 'SWE', - 'numeric': '752' + 'numeric': '752', }, { 'name': 'Switzerland', 'alpha2': 'CH', 'alpha3': 'CHE', - 'numeric': '756' + 'numeric': '756', }, { 'name': 'Syrian Arab Republic', @@ -1364,7 +1364,7 @@ export const countriesCodes = [ 'alpha3': 'SYR', 'numeric': '760', 'altName': 'Syrian Arab Republic (Syria)', - 'shortName': 'Syria' + 'shortName': 'Syria', }, { 'name': 'Taiwan (Province of China)', @@ -1372,121 +1372,121 @@ export const countriesCodes = [ 'alpha3': 'TWN', 'numeric': '158', 'altName': 'Taiwan, Republic of China', - 'shortName': 'Taiwan' + 'shortName': 'Taiwan', }, { 'name': 'Tajikistan', 'alpha2': 'TJ', 'alpha3': 'TJK', - 'numeric': '762' + 'numeric': '762', }, { 'name': 'Tanzania, United Republic of', 'alpha2': 'TZ', 'alpha3': 'TZA', 'numeric': '834', - 'shortName': 'Tanzania' + 'shortName': 'Tanzania', }, { 'name': 'Thailand', 'alpha2': 'TH', 'alpha3': 'THA', - 'numeric': '764' + 'numeric': '764', }, { 'name': 'Timor-Leste', 'alpha2': 'TL', 'alpha3': 'TLS', 'numeric': '626', - 'shortName': 'East Timor' + 'shortName': 'East Timor', }, { 'name': 'Togo', 'alpha2': 'TG', 'alpha3': 'TGO', - 'numeric': '768' + 'numeric': '768', }, { 'name': 'Tokelau', 'alpha2': 'TK', 'alpha3': 'TKL', - 'numeric': '772' + 'numeric': '772', }, { 'name': 'Tonga', 'alpha2': 'TO', 'alpha3': 'TON', - 'numeric': '776' + 'numeric': '776', }, { 'name': 'Trinidad and Tobago', 'alpha2': 'TT', 'alpha3': 'TTO', - 'numeric': '780' + 'numeric': '780', }, { 'name': 'Tunisia', 'alpha2': 'TN', 'alpha3': 'TUN', - 'numeric': '788' + 'numeric': '788', }, { 'name': 'Turkey', 'alpha2': 'TR', 'alpha3': 'TUR', - 'numeric': '792' + 'numeric': '792', }, { 'name': 'Turkmenistan', 'alpha2': 'TM', 'alpha3': 'TKM', - 'numeric': '795' + 'numeric': '795', }, { 'name': 'Turks and Caicos Islands (the)', 'alpha2': 'TC', 'alpha3': 'TCA', 'numeric': '796', - 'altName': 'Turks and Caicos Islands' + 'altName': 'Turks and Caicos Islands', }, { 'name': 'Tuvalu', 'alpha2': 'TV', 'alpha3': 'TUV', - 'numeric': '798' + 'numeric': '798', }, { 'name': 'Uganda', 'alpha2': 'UG', 'alpha3': 'UGA', - 'numeric': '800' + 'numeric': '800', }, { 'name': 'Ukraine', 'alpha2': 'UA', 'alpha3': 'UKR', - 'numeric': '804' + 'numeric': '804', }, { 'name': 'United Arab Emirates (the)', 'alpha2': 'AE', 'alpha3': 'ARE', 'numeric': '784', - 'altName': 'United Arab Emirates' + 'altName': 'United Arab Emirates', }, { 'name': 'United Kingdom of Great Britain and Northern Ireland (the)', 'alpha2': 'GB', 'alpha3': 'GBR', 'numeric': '826', - 'altName': 'United Kingdom' + 'altName': 'United Kingdom', }, { 'name': 'United States Minor Outlying Islands (the)', 'alpha2': 'UM', 'alpha3': 'UMI', 'numeric': '581', - 'altName': 'US Minor Outlying Islands' + 'altName': 'US Minor Outlying Islands', }, { 'name': 'United States of America (the)', @@ -1494,25 +1494,25 @@ export const countriesCodes = [ 'alpha3': 'USA', 'numeric': '840', 'altName': 'United States of America', - 'shortName': 'United States' + 'shortName': 'United States', }, { 'name': 'Uruguay', 'alpha2': 'UY', 'alpha3': 'URY', - 'numeric': '858' + 'numeric': '858', }, { 'name': 'Uzbekistan', 'alpha2': 'UZ', 'alpha3': 'UZB', - 'numeric': '860' + 'numeric': '860', }, { 'name': 'Vanuatu', 'alpha2': 'VU', 'alpha3': 'VUT', - 'numeric': '548' + 'numeric': '548', }, { 'name': 'Venezuela (Bolivarian Republic of)', @@ -1520,21 +1520,21 @@ export const countriesCodes = [ 'alpha3': 'VEN', 'numeric': '862', 'altName': 'Venezuela (Bolivarian Republic)', - 'shortName': 'Venezuela' + 'shortName': 'Venezuela', }, { 'name': 'Viet Nam', 'alpha2': 'VN', 'alpha3': 'VNM', 'numeric': '704', - 'shortName': 'Vietnam' + 'shortName': 'Vietnam', }, { 'name': 'Virgin Islands (British)', 'alpha2': 'VG', 'alpha3': 'VGB', 'numeric': '092', - 'altName': 'British Virgin Islands' + 'altName': 'British Virgin Islands', }, { 'name': 'Virgin Islands (U.S.)', @@ -1542,38 +1542,38 @@ export const countriesCodes = [ 'alpha3': 'VIR', 'numeric': '850', 'altName': 'Virgin Islands, US', - 'shortName': 'U.S. Virgin Islands' + 'shortName': 'U.S. Virgin Islands', }, { 'name': 'Wallis and Futuna', 'alpha2': 'WF', 'alpha3': 'WLF', 'numeric': '876', - 'altName': 'Wallis and Futuna Islands' + 'altName': 'Wallis and Futuna Islands', }, { 'name': 'Western Sahara*', 'alpha2': 'EH', 'alpha3': 'ESH', 'numeric': '732', - 'altName': 'Western Sahara' + 'altName': 'Western Sahara', }, { 'name': 'Yemen', 'alpha2': 'YE', 'alpha3': 'YEM', - 'numeric': '887' + 'numeric': '887', }, { 'name': 'Zambia', 'alpha2': 'ZM', 'alpha3': 'ZMB', - 'numeric': '894' + 'numeric': '894', }, { 'name': 'Zimbabwe', 'alpha2': 'ZW', 'alpha3': 'ZWE', - 'numeric': '716' - } + 'numeric': '716', + }, ]; diff --git a/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts b/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts index b0ad6a410..2729fb0f9 100644 --- a/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleF body, qs, uri: uri || `https://www.googleapis.com${resource}`, - json: true + json: true, }; try { options = Object.assign({}, options, option); diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts index cb6508e45..272c737ce 100644 --- a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts @@ -42,8 +42,8 @@ export const playlistOperations = [ }, ], default: 'getAll', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const playlistFields = [ diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts index 86c455ba3..6f5372505 100644 --- a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts @@ -37,8 +37,8 @@ export const playlistItemOperations = [ }, ], default: 'add', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const playlistItemFields = [ @@ -295,7 +295,7 @@ export const playlistItemFields = [ ], }, }, - default: '' + default: '', }, { displayName: 'Fields', diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts index 1f52ff23d..e4b91b73a 100644 --- a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts @@ -23,8 +23,8 @@ export const videoCategoryOperations = [ }, ], default: 'getAll', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const videoCategoryFields = [ diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts index 1f5f90902..720190a7f 100644 --- a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts @@ -47,8 +47,8 @@ export const videoOperations = [ }, ], default: 'getAll', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const videoFields = [ @@ -319,7 +319,7 @@ export const videoFields = [ ], }, }, - default: '' + default: '', }, { displayName: 'Fields', diff --git a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts index 2065b685c..fe8beb4e6 100644 --- a/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts +++ b/packages/nodes-base/nodes/Google/YouTube/YouTube.node.ts @@ -95,7 +95,7 @@ export class YouTube implements INodeType { }, ], default: 'channel', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...channelOperations, ...channelFields, @@ -126,14 +126,14 @@ export class YouTube implements INodeType { this, 'items', 'GET', - '/youtube/v3/i18nLanguages', + '/youtube/v3/i18nLanguages' ); for (const language of languages) { const languageName = language.id.toUpperCase(); const languageId = language.id; returnData.push({ name: languageName, - value: languageId + value: languageId, }); } return returnData; @@ -169,14 +169,14 @@ export class YouTube implements INodeType { 'GET', '/youtube/v3/videoCategories', {}, - qs, + qs ); for (const category of categories) { const categoryName = category.snippet.title; const categoryId = category.id; returnData.push({ name: categoryName, - value: categoryId + value: categoryId, }); } return returnData; @@ -196,19 +196,19 @@ export class YouTube implements INodeType { 'GET', '/youtube/v3/playlists', {}, - qs, + qs ); for (const playlist of playlists) { const playlistName = playlist.snippet.title; const playlistId = playlist.id; returnData.push({ name: playlistName, - value: playlistId + value: playlistId, }); } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -452,7 +452,7 @@ export class YouTube implements INodeType { }, }, }, - qs, + qs ); } } @@ -649,7 +649,7 @@ export class YouTube implements INodeType { this, 'DELETE', '/youtube/v3/playlists', - body, + body ); responseData = { success: true }; @@ -801,7 +801,7 @@ export class YouTube implements INodeType { this, 'DELETE', '/youtube/v3/playlistItems', - body, + body ); responseData = { success: true }; @@ -999,7 +999,7 @@ export class YouTube implements INodeType { 'PUT', `/youtube/v3/videos`, data, - qs, + qs ); } //https://developers.google.com/youtube/v3/docs/playlists/update @@ -1098,7 +1098,7 @@ export class YouTube implements INodeType { this, 'DELETE', '/youtube/v3/videos', - body, + body ); responseData = { success: true }; @@ -1117,7 +1117,7 @@ export class YouTube implements INodeType { this, 'POST', '/youtube/v3/videos/rate', - body, + body ); responseData = { success: true }; diff --git a/packages/nodes-base/nodes/GraphQL/GraphQL.node.ts b/packages/nodes-base/nodes/GraphQL/GraphQL.node.ts index e9ba60b6d..b34b433dd 100644 --- a/packages/nodes-base/nodes/GraphQL/GraphQL.node.ts +++ b/packages/nodes-base/nodes/GraphQL/GraphQL.node.ts @@ -187,11 +187,11 @@ export class GraphQL implements INodeType { default: '', description: 'Value to set for the header.', }, - ] + ], }, ], }, - ] + ], }; @@ -212,13 +212,13 @@ export class GraphQL implements INodeType { .getNodeParameter('headerParametersUi', itemIndex, {}) as IDataObject; const headerParameters = (parameter || []).reduce((result, item) => ({ ...result, - [item.name]: item.value + [item.name]: item.value, }), {}); requestOptions = { headers: { 'content-type': `application/${requestFormat}`, - ...headerParameters + ...headerParameters, }, method: requestMethod, uri: endpoint, @@ -229,7 +229,7 @@ export class GraphQL implements INodeType { const gqlQuery = this.getNodeParameter('query', itemIndex, '') as string; if (requestMethod === 'GET') { requestOptions.qs = { - query: gqlQuery + query: gqlQuery, }; } else { if (requestFormat === 'json') { @@ -261,7 +261,7 @@ export class GraphQL implements INodeType { returnItems.push({ json: { [dataPropertyName]: response, - } + }, }); } else { if (typeof response === 'string') { diff --git a/packages/nodes-base/nodes/Gumroad/GenericFunctions.ts b/packages/nodes-base/nodes/Gumroad/GenericFunctions.ts index 9025211a6..de7afa5b1 100644 --- a/packages/nodes-base/nodes/Gumroad/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Gumroad/GenericFunctions.ts @@ -20,7 +20,7 @@ export async function gumroadApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.gumroad.com/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts b/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts index fb1eb8fe6..ed477fb12 100644 --- a/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts +++ b/packages/nodes-base/nodes/Gumroad/GumroadTrigger.node.ts @@ -32,7 +32,7 @@ export class GumroadTrigger implements INodeType { { name: 'gumroadApi', required: true, - } + }, ], webhooks: [ { diff --git a/packages/nodes-base/nodes/Harvest/ClientDescription.ts b/packages/nodes-base/nodes/Harvest/ClientDescription.ts index 7a98fe89c..482f04d4d 100644 --- a/packages/nodes-base/nodes/Harvest/ClientDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ClientDescription.ts @@ -117,8 +117,8 @@ export const clientFields = [ type: 'dateTime', default: '', description: 'Only return clients that have been updated since the given date and time.', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -135,7 +135,7 @@ export const clientFields = [ operation: [ 'get', ], - resource + resource, }, }, description: 'The ID of the client you are retrieving.', @@ -155,7 +155,7 @@ export const clientFields = [ operation: [ 'delete', ], - resource + resource, }, }, description: 'The ID of the client you want to delete.', @@ -200,21 +200,21 @@ export const clientFields = [ name: 'is_active', type: 'string', default: '', - description: 'Whether the client is active, or archived. Defaults to true.' + description: 'Whether the client is active, or archived. Defaults to true.', }, { displayName: 'Address', name: 'address', type: 'string', default: '', - description: ' A textual representation of the client’s physical address. May include new line characters.' + description: ' A textual representation of the client’s physical address. May include new line characters.', }, { displayName: 'Currency', name: 'currency', type: 'string', default: '', - description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies', }, ], }, @@ -258,28 +258,28 @@ export const clientFields = [ name: 'address', type: 'string', default: '', - description: ' A textual representation of the client’s physical address. May include new line characters.' + description: ' A textual representation of the client’s physical address. May include new line characters.', }, { displayName: 'Currency', name: 'currency', type: 'string', default: '', - description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether the client is active, or archived. Defaults to true.' + description: 'Whether the client is active, or archived. Defaults to true.', }, { displayName: 'Name', name: 'name', type: 'string', default: '', - description: 'Whether the client is active, or archived. Defaults to true.' + description: 'Whether the client is active, or archived. Defaults to true.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/ContactDescription.ts b/packages/nodes-base/nodes/Harvest/ContactDescription.ts index c4ecd257b..3c17745e3 100644 --- a/packages/nodes-base/nodes/Harvest/ContactDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ContactDescription.ts @@ -116,8 +116,8 @@ export const contactFields = [ type: 'dateTime', default: '', description: 'Only return clients that have been updated since the given date and time.', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -215,42 +215,42 @@ export const contactFields = [ name: 'last_name', type: 'string', default: '', - description: 'The last name of the contact.' + description: 'The last name of the contact.', }, { displayName: 'Title', name: 'title', type: 'string', default: '', - description: 'The title of the contact.' + description: 'The title of the contact.', }, { displayName: 'Email', name: 'email', type: 'string', default: '', - description: 'The contact’s email address.' + description: 'The contact’s email address.', }, { displayName: 'Phone Office', name: 'phone_office', type: 'string', default: '', - description: 'The contact’s office phone number.' + description: 'The contact’s office phone number.', }, { displayName: 'Phone Mobile', name: 'phone_mobile', type: 'string', default: '', - description: 'The contact’s mobile phone number.' + description: 'The contact’s mobile phone number.', }, { displayName: 'Fax', name: 'fax', type: 'string', default: '', - description: 'The contact’s fax number.' + description: 'The contact’s fax number.', }, ], }, @@ -308,42 +308,42 @@ export const contactFields = [ name: 'last_name', type: 'string', default: '', - description: 'The last name of the contact.' + description: 'The last name of the contact.', }, { displayName: 'Title', name: 'title', type: 'string', default: '', - description: 'The title of the contact.' + description: 'The title of the contact.', }, { displayName: 'Email', name: 'email', type: 'string', default: '', - description: 'The contact’s email address.' + description: 'The contact’s email address.', }, { displayName: 'Phone Office', name: 'phone_office', type: 'string', default: '', - description: 'The contact’s office phone number.' + description: 'The contact’s office phone number.', }, { displayName: 'Phone Mobile', name: 'phone_mobile', type: 'string', default: '', - description: 'The contact’s mobile phone number.' + description: 'The contact’s mobile phone number.', }, { displayName: 'Fax', name: 'fax', type: 'string', default: '', - description: 'The contact’s fax number.' + description: 'The contact’s fax number.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts index ca2d2d6e2..aac2090e2 100644 --- a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts +++ b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts @@ -147,8 +147,8 @@ export const estimateFields = [ }, default: 1, description: 'The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1)', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -230,63 +230,63 @@ export const estimateFields = [ name: 'currency', type: 'string', default: '', - description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies', }, { displayName: 'Discount', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.' + description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.', }, { displayName: 'Issue Date', name: 'issue_date', type: 'dateTime', default: '', - description: 'Date the invoice was issued. Defaults to today’s date.' + description: 'Date the invoice was issued. Defaults to today’s date.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Any additional notes to include on the estimate.' + description: 'Any additional notes to include on the estimate.', }, { displayName: 'Number', name: 'number', type: 'string', default: '', - description: 'If no value is set, the number will be automatically generated.' + description: 'If no value is set, the number will be automatically generated.', }, { displayName: 'Purchase Order', name: 'purchase_order', type: 'string', default: '', - description: 'The purchase order number.' + description: 'The purchase order number.', }, { displayName: 'Subject', name: 'subject', type: 'string', default: '', - description: 'The estimate subject.' + description: 'The estimate subject.', }, { displayName: 'Tax', name: 'tax', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, { displayName: 'Tax2', name: 'tax2', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, ], }, @@ -337,63 +337,63 @@ export const estimateFields = [ name: 'currency', type: 'string', default: '', - description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the estimate. If not provided, the client’s currency will be used. See a list of supported currencies', }, { displayName: 'Discount', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.' + description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.', }, { displayName: 'Issue Date', name: 'issue_date', type: 'dateTime', default: '', - description: 'Date the invoice was issued. Defaults to today’s date.' + description: 'Date the invoice was issued. Defaults to today’s date.', }, { displayName: 'Number', name: 'number', type: 'string', default: '', - description: 'If no value is set, the number will be automatically generated.' + description: 'If no value is set, the number will be automatically generated.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Any additional notes to include on the estimate.' + description: 'Any additional notes to include on the estimate.', }, { displayName: 'Purchase Order', name: 'purchase_order', type: 'string', default: '', - description: 'The purchase order number.' + description: 'The purchase order number.', }, { displayName: 'Subject', name: 'subject', type: 'string', default: '', - description: 'The estimate subject.' + description: 'The estimate subject.', }, { displayName: 'Tax', name: 'tax', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, { displayName: 'Tax2', name: 'tax2', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts index 4af3612a0..0b78b1054 100644 --- a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts @@ -162,7 +162,7 @@ export const expenseFields = [ default: '', description: 'Only return time entries belonging to the user with the given ID.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -276,35 +276,35 @@ export const expenseFields = [ name: 'billable', type: 'boolean', default: true, - description: 'Whether this expense is billable or not. Defaults to true.' + description: 'Whether this expense is billable or not. Defaults to true.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Notes about the expense.' + description: 'Notes about the expense.', }, { displayName: 'Total Cost', name: 'total_cost', type: 'string', default: '', - description: 'The total amount of the expense.' + description: 'The total amount of the expense.', }, { displayName: 'Units', name: 'units', type: 'string', default: '', - description: 'The quantity of units to use in calculating the total_cost of the expense.' + description: 'The quantity of units to use in calculating the total_cost of the expense.', }, { displayName: 'User Id', name: 'user_id', type: 'boolean', default: true, - description: 'The ID of the user associated with this expense. Defaults to the ID of the currently authenticated user.' + description: 'The ID of the user associated with this expense. Defaults to the ID of the currently authenticated user.', }, ], }, @@ -348,7 +348,7 @@ export const expenseFields = [ name: 'billable', type: 'boolean', default: true, - description: 'Whether this expense is billable or not. Defaults to true.' + description: 'Whether this expense is billable or not. Defaults to true.', }, { displayName: 'Expense Category Id', @@ -362,7 +362,7 @@ export const expenseFields = [ name: 'notes', type: 'string', default: '', - description: 'Notes about the expense.' + description: 'Notes about the expense.', }, { displayName: 'Project Id', @@ -383,21 +383,21 @@ export const expenseFields = [ name: 'total_cost', type: 'string', default: '', - description: 'The total amount of the expense.' + description: 'The total amount of the expense.', }, { displayName: 'Units', name: 'units', type: 'string', default: '', - description: 'The quantity of units to use in calculating the total_cost of the expense.' + description: 'The quantity of units to use in calculating the total_cost of the expense.', }, { displayName: 'User Id', name: 'user_id', type: 'boolean', default: true, - description: 'The ID of the user associated with this expense. Defaults to the ID of the currently authenticated user.' + description: 'The ID of the user associated with this expense. Defaults to the ID of the currently authenticated user.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/GenericFunctions.ts b/packages/nodes-base/nodes/Harvest/GenericFunctions.ts index 276405df3..b2a1d14d7 100644 --- a/packages/nodes-base/nodes/Harvest/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Harvest/GenericFunctions.ts @@ -13,7 +13,7 @@ export async function harvestApiRequest( qs: IDataObject = {}, uri: string, body: IDataObject = {}, - option: IDataObject = {}, + option: IDataObject = {} ): Promise { // tslint:disable-line:no-any const credentials = this.getCredentials('harvestApi') as IDataObject; @@ -42,8 +42,8 @@ export async function harvestApiRequest( uri: `https://api.harvestapp.com/v2/${uri}?${queryStringElements.join('&')}`, json: true, headers: { - "User-Agent": "Harvest API" - } + "User-Agent": "Harvest API", + }, }; options = Object.assign({}, options, option); @@ -82,7 +82,7 @@ export async function harvestApiRequestAllItems( uri: string, resource: string, body: IDataObject = {}, - option: IDataObject = {}, + option: IDataObject = {} ): Promise { // tslint:disable-line:no-any const returnData: IDataObject[] = []; diff --git a/packages/nodes-base/nodes/Harvest/Harvest.node.ts b/packages/nodes-base/nodes/Harvest/Harvest.node.ts index 91a42840c..c41bc400e 100644 --- a/packages/nodes-base/nodes/Harvest/Harvest.node.ts +++ b/packages/nodes-base/nodes/Harvest/Harvest.node.ts @@ -94,7 +94,7 @@ export class Harvest implements INodeType { { name: 'harvestApi', required: true, - } + }, ], properties: [ { @@ -169,8 +169,8 @@ export class Harvest implements INodeType { ...projectFields, ...taskFields, ...timeEntryFields, - ...userFields - ] + ...userFields, + ], }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts index 863236c6e..83c457752 100644 --- a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts @@ -172,8 +172,8 @@ export const invoiceFields = [ }, default: 1, description: 'The page number to use in pagination. For instance, if you make a list request and receive 100 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1)', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -255,91 +255,91 @@ export const invoiceFields = [ name: 'currency', type: 'string', default: '', - description: 'The currency used by the invoice. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the invoice. If not provided, the client’s currency will be used. See a list of supported currencies', }, { displayName: 'Discount', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.' + description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.', }, { displayName: 'Due Date', name: 'ends_on', type: 'dateTime', default: '', - description: 'Date the invoice is due. Defaults to the issue_date if no payment_term is specified.' + description: 'Date the invoice is due. Defaults to the issue_date if no payment_term is specified.', }, { displayName: 'Estimate Id', name: 'estimate_id', type: 'string', default: '', - description: 'The ID of the estimate associated with this invoice.' + description: 'The ID of the estimate associated with this invoice.', }, { displayName: 'Issue Date', name: 'issue_date', type: 'dateTime', default: '', - description: 'Date the invoice was issued. Defaults to today’s date.' + description: 'Date the invoice was issued. Defaults to today’s date.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Notes about the project.' + description: 'Notes about the project.', }, { displayName: 'Number', name: 'number', type: 'string', default: '', - description: 'If no value is set, the number will be automatically generated.' + description: 'If no value is set, the number will be automatically generated.', }, { displayName: 'Payment Term', name: 'payment_term', type: 'string', default: '', - description: 'The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, or net 60.' + description: 'The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, or net 60.', }, { displayName: 'Purchase Order', name: 'purchase_order', type: 'string', default: '', - description: 'The purchase order number.' + description: 'The purchase order number.', }, { displayName: 'Retainer Id', name: 'retainer_id', type: 'boolean', default: true, - description: 'The ID of the retainer associated with this invoice.' + description: 'The ID of the retainer associated with this invoice.', }, { displayName: 'Subject', name: 'subject', type: 'string', default: '', - description: 'The invoice subject.' + description: 'The invoice subject.', }, { displayName: 'Tax', name: 'tax', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, { displayName: 'Tax2', name: 'tax2', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, ], }, @@ -390,91 +390,91 @@ export const invoiceFields = [ name: 'currency', type: 'string', default: '', - description: 'The currency used by the invoice. If not provided, the client’s currency will be used. See a list of supported currencies' + description: 'The currency used by the invoice. If not provided, the client’s currency will be used. See a list of supported currencies', }, { displayName: 'Discount', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.' + description: 'This percentage is subtracted from the subtotal. Example: use 10.0 for 10.0%.', }, { displayName: 'Due Date', name: 'ends_on', type: 'dateTime', default: '', - description: 'Date the invoice is due. Defaults to the issue_date if no payment_term is specified.' + description: 'Date the invoice is due. Defaults to the issue_date if no payment_term is specified.', }, { displayName: 'Estimate Id', name: 'estimate_id', type: 'string', default: '', - description: 'The ID of the estimate associated with this invoice.' + description: 'The ID of the estimate associated with this invoice.', }, { displayName: 'Issue Date', name: 'issue_date', type: 'dateTime', default: '', - description: 'Date the invoice was issued. Defaults to today’s date.' + description: 'Date the invoice was issued. Defaults to today’s date.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Notes about the project.' + description: 'Notes about the project.', }, { displayName: 'Number', name: 'number', type: 'string', default: '', - description: 'If no value is set, the number will be automatically generated.' + description: 'If no value is set, the number will be automatically generated.', }, { displayName: 'Payment Term', name: 'payment_term', type: 'string', default: '', - description: 'The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, or net 60.' + description: 'The timeframe in which the invoice should be paid. Defaults to custom. Options: upon receipt, net 15, net 30, net 45, or net 60.', }, { displayName: 'Purchase Order', name: 'purchase_order', type: 'string', default: '', - description: 'The purchase order number.' + description: 'The purchase order number.', }, { displayName: 'Retainer Id', name: 'retainer_id', type: 'boolean', default: true, - description: 'The ID of the retainer associated with this invoice.' + description: 'The ID of the retainer associated with this invoice.', }, { displayName: 'Subject', name: 'subject', type: 'string', default: '', - description: 'The invoice subject.' + description: 'The invoice subject.', }, { displayName: 'Tax', name: 'tax', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, { displayName: 'Tax2', name: 'tax2', type: 'string', default: '', - description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.' + description: 'This percentage is applied to the subtotal, including line items and discounts. Example: use 10.0 for 10.0%.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts index 4910eaaf3..6a4b0d420 100644 --- a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts +++ b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts @@ -134,7 +134,7 @@ export const projectFields = [ default: '', description: 'Only return projects by updated_since.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -302,98 +302,98 @@ export const projectFields = [ minValue: 0, }, default: 0, - description: 'The budget in hours for the project when budgeting by time.' + description: 'The budget in hours for the project when budgeting by time.', }, { displayName: 'Budget Is Monthly', name: 'budget_is_monthly', type: 'boolean', default: false, - description: 'Option to have the budget reset every month. Defaults to false.' + description: 'Option to have the budget reset every month. Defaults to false.', }, { displayName: 'Cost Budget', name: 'cost_budget', type: 'string', default: '', - description: 'The monetary budget for the project when budgeting by money.' + description: 'The monetary budget for the project when budgeting by money.', }, { displayName: 'Cost Budget Include Expenses', name: 'cost_budget_include_expenses', type: 'boolean', default: false, - description: 'Option for budget of Total Project Fees projects to include tracked expenses. Defaults to false.' + description: 'Option for budget of Total Project Fees projects to include tracked expenses. Defaults to false.', }, { displayName: 'Ends On', name: 'ends_on', type: 'dateTime', default: '', - description: 'Date the project will end.' + description: 'Date the project will end.', }, { displayName: 'Fee', name: 'fee', type: 'string', default: '', - description: 'The amount you plan to invoice for the project. Only used by fixed-fee projects.' + description: 'The amount you plan to invoice for the project. Only used by fixed-fee projects.', }, { displayName: 'Hourly Rate', name: 'hourly_rate', type: 'string', default: '', - description: 'Rate for projects billed by Project Hourly Rate.' + description: 'Rate for projects billed by Project Hourly Rate.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether the project is active or archived. Defaults to true' + description: 'Whether the project is active or archived. Defaults to true', }, { displayName: 'Is Fixed Fee', name: 'is_fixed_fee', type: 'boolean', default: false, - description: 'Whether the project is a fixed-fee project or not.' + description: 'Whether the project is a fixed-fee project or not.', }, { displayName: 'Notes', name: 'notes', type: 'string', default: '', - description: 'Notes about the project.' + description: 'Notes about the project.', }, { displayName: 'Notify When Over Budget', name: 'notify_when_over_budget', type: 'boolean', default: false, - description: 'Whether project managers should be notified when the project goes over budget. Defaults to false.' + description: 'Whether project managers should be notified when the project goes over budget. Defaults to false.', }, { displayName: 'Over Budget Notification Percentage', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'Percentage value used to trigger over budget email alerts. Example: use 10.0 for 10.0%.' + description: 'Percentage value used to trigger over budget email alerts. Example: use 10.0 for 10.0%.', }, { displayName: 'Show Budget To All', name: 'show_budget_to_all', type: 'boolean', default: false, - description: 'Option to show project budget to all employees. Does not apply to Total Project Fee projects. Defaults to false.' + description: 'Option to show project budget to all employees. Does not apply to Total Project Fee projects. Defaults to false.', }, { displayName: 'Starts On', name: 'starts_on', type: 'dateTime', default: '', - description: 'Date the project was started.' + description: 'Date the project was started.', }, ], }, @@ -462,7 +462,7 @@ export const projectFields = [ name: 'budget', type: 'string', default: '', - description: 'The budget in hours for the project when budgeting by time.' + description: 'The budget in hours for the project when budgeting by time.', }, { displayName: 'Budget By', @@ -476,7 +476,7 @@ export const projectFields = [ name: 'budget_is_monthly', type: 'boolean', default: false, - description: 'Option to have the budget reset every month. Defaults to false.' + description: 'Option to have the budget reset every month. Defaults to false.', }, { displayName: 'Client Id', @@ -490,42 +490,42 @@ export const projectFields = [ name: 'cost_budget', type: 'string', default: '', - description: 'The monetary budget for the project when budgeting by money.' + description: 'The monetary budget for the project when budgeting by money.', }, { displayName: 'Cost Budget Include Expenses', name: 'cost_budget_include_expenses', type: 'boolean', default: false, - description: 'Option for budget of Total Project Fees projects to include tracked expenses. Defaults to false.' + description: 'Option for budget of Total Project Fees projects to include tracked expenses. Defaults to false.', }, { displayName: 'Ends On', name: 'ends_on', type: 'dateTime', default: '', - description: 'Date the project will end.' + description: 'Date the project will end.', }, { displayName: 'Fee', name: 'fee', type: 'string', default: '', - description: 'The amount you plan to invoice for the project. Only used by fixed-fee projects.' + description: 'The amount you plan to invoice for the project. Only used by fixed-fee projects.', }, { displayName: 'Hourly Rate', name: 'hourly_rate', type: 'string', default: '', - description: 'Rate for projects billed by Project Hourly Rate.' + description: 'Rate for projects billed by Project Hourly Rate.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether the project is active or archived. Defaults to true' + description: 'Whether the project is active or archived. Defaults to true', }, { displayName: 'Is Billable', @@ -539,7 +539,7 @@ export const projectFields = [ name: 'is_fixed_fee', type: 'boolean', default: false, - description: 'Whether the project is a fixed-fee project or not.' + description: 'Whether the project is a fixed-fee project or not.', }, { displayName: 'Name', @@ -553,28 +553,28 @@ export const projectFields = [ name: 'notes', type: 'string', default: '', - description: 'Notes about the project.' + description: 'Notes about the project.', }, { displayName: 'Notify When Over Budget', name: 'notify_when_over_budget', type: 'boolean', default: false, - description: 'Whether project managers should be notified when the project goes over budget. Defaults to false.' + description: 'Whether project managers should be notified when the project goes over budget. Defaults to false.', }, { displayName: 'Over Budget Notification Percentage', name: 'over_budget_notification_percentage', type: 'string', default: '', - description: 'Percentage value used to trigger over budget email alerts. Example: use 10.0 for 10.0%.' + description: 'Percentage value used to trigger over budget email alerts. Example: use 10.0 for 10.0%.', }, { displayName: 'Show Budget To All', name: 'show_budget_to_all', type: 'boolean', default: false, - description: 'Option to show project budget to all employees. Does not apply to Total Project Fee projects. Defaults to false.' + description: 'Option to show project budget to all employees. Does not apply to Total Project Fee projects. Defaults to false.', }, { @@ -582,7 +582,7 @@ export const projectFields = [ name: 'starts_on', type: 'dateTime', default: '', - description: 'Date the project was started.' + description: 'Date the project was started.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/TaskDescription.ts b/packages/nodes-base/nodes/Harvest/TaskDescription.ts index 33ff7e918..2be01d5fe 100644 --- a/packages/nodes-base/nodes/Harvest/TaskDescription.ts +++ b/packages/nodes-base/nodes/Harvest/TaskDescription.ts @@ -125,7 +125,7 @@ export const taskFields = [ default: '', description: 'Only return tasks belonging to the task with the given ID.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -207,28 +207,28 @@ export const taskFields = [ name: 'billable_by_default', type: 'boolean', default: '', - description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.' + description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.', }, { displayName: 'Default Hourly Rate', name: 'default_hourly_rate', type: 'string', default: '0', - description: 'The default hourly rate to use for this task when it is added to a project. Defaults to 0.' + description: 'The default hourly rate to use for this task when it is added to a project. Defaults to 0.', }, { displayName: 'Is Default', name: 'is_default', type: 'boolean', default: false, - description: 'Whether this task should be automatically added to future projects. Defaults to false.' + description: 'Whether this task should be automatically added to future projects. Defaults to false.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether this task is active or archived. Defaults to true' + description: 'Whether this task is active or archived. Defaults to true', }, ], }, @@ -256,35 +256,35 @@ export const taskFields = [ name: 'billable_by_default', type: 'boolean', default: '', - description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.' + description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.', }, { displayName: 'Default Hourly Rate', name: 'default_hourly_rate', type: 'string', default: '0', - description: 'The default hourly rate to use for this task when it is added to a project. Defaults to 0.' + description: 'The default hourly rate to use for this task when it is added to a project. Defaults to 0.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether this task is active or archived. Defaults to true' + description: 'Whether this task is active or archived. Defaults to true', }, { displayName: 'Is Default', name: 'is_default', type: 'boolean', default: false, - description: 'Whether this task should be automatically added to future projects. Defaults to false.' + description: 'Whether this task should be automatically added to future projects. Defaults to false.', }, { displayName: 'Name', name: 'name', type: 'string', default: '', - description: 'Name of the task.' + description: 'Name of the task.', }, ], }, diff --git a/packages/nodes-base/nodes/Harvest/UserDescription.ts b/packages/nodes-base/nodes/Harvest/UserDescription.ts index ea434c3ca..0254825b1 100644 --- a/packages/nodes-base/nodes/Harvest/UserDescription.ts +++ b/packages/nodes-base/nodes/Harvest/UserDescription.ts @@ -132,8 +132,8 @@ export const userFields = [ }, default: 1, description: 'The page number to use in pagination..', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -247,21 +247,21 @@ export const userFields = [ name: 'can_create_projects', type: 'boolean', default: false, - description: 'Whether the user can create projects. Only applicable to Project Managers.' + description: 'Whether the user can create projects. Only applicable to Project Managers.', }, { displayName: 'Can Create Invoices', name: 'can_create_invoices', type: 'boolean', default: false, - description: 'Whether the user can create invoices. Only applicable to Project Managers.' + description: 'Whether the user can create invoices. Only applicable to Project Managers.', }, { displayName: 'Can See Rates', name: 'can_see_rates', type: 'boolean', default: false, - description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.' + description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.', }, { displayName: 'Cost Rate', @@ -271,63 +271,63 @@ export const userFields = [ minValue: 0, }, default: 0, - description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount.' + description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount.', }, { displayName: 'Default Hourly Rate', name: 'default_hourly_rate', type: 'string', default: '0', - description: 'The billable rate to use for this user when they are added to a project.' + description: 'The billable rate to use for this user when they are added to a project.', }, { displayName: 'Has Access To All Future Projects', name: 'has_access_to_all_future_projects', type: 'boolean', default: false, - description: 'Whether the user should be automatically added to future projects.' + description: 'Whether the user should be automatically added to future projects.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether the user is active or archived.' + description: 'Whether the user is active or archived.', }, { displayName: 'Is Admin', name: 'is_admin', type: 'boolean', default: false, - description: 'Whether the user has Admin permissions.' + description: 'Whether the user has Admin permissions.', }, { displayName: 'Is Contractor', name: 'is_contractor', type: 'boolean', default: false, - description: 'Whether the user is a contractor or an employee.' + description: 'Whether the user is a contractor or an employee.', }, { displayName: 'Is Project Manager', name: 'is_project_manager', type: 'boolean', default: false, - description: 'Whether the user has Project Manager permissions.' + description: 'Whether the user has Project Manager permissions.', }, { displayName: 'Roles', name: 'roles', type: 'string', default: '', - description: 'The role names assigned to this person.' + description: 'The role names assigned to this person.', }, { displayName: 'Timezone', name: 'timezone', type: 'string', default: '', - description: 'The user’s timezone. Defaults to the company’s timezone. See a list of supported time zones.' + description: 'The user’s timezone. Defaults to the company’s timezone. See a list of supported time zones.', }, { displayName: 'Weekly Capacity', @@ -337,7 +337,7 @@ export const userFields = [ minValue: 0, }, default: 126000, - description: 'The number of hours per week this person is available to work in seconds. Defaults to 126000 seconds (35 hours).' + description: 'The number of hours per week this person is available to work in seconds. Defaults to 126000 seconds (35 hours).', }, ], }, @@ -372,7 +372,7 @@ export const userFields = [ operation: [ 'update', ], - resource + resource, }, }, default: {}, @@ -382,21 +382,21 @@ export const userFields = [ name: 'can_create_projects', type: 'boolean', default: false, - description: 'Whether the user can create projects. Only applicable to Project Managers.' + description: 'Whether the user can create projects. Only applicable to Project Managers.', }, { displayName: 'Can Create Invoices', name: 'can_create_invoices', type: 'boolean', default: false, - description: 'Whether the user can create invoices. Only applicable to Project Managers.' + description: 'Whether the user can create invoices. Only applicable to Project Managers.', }, { displayName: 'Can See Rates', name: 'can_see_rates', type: 'boolean', default: false, - description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.' + description: 'Whether the user can see billable rates on projects. Only applicable to Project Managers.', }, { displayName: 'Cost Rate', @@ -406,84 +406,84 @@ export const userFields = [ minValue: 0, }, default: 0, - description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount.' + description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount.', }, { displayName: 'Default Hourly Rate', name: 'default_hourly_rate', type: 'string', default: '0', - description: 'The billable rate to use for this user when they are added to a project.' + description: 'The billable rate to use for this user when they are added to a project.', }, { displayName: 'Email', name: 'email', type: 'string', default: '', - description: 'The user email' + description: 'The user email', }, { displayName: 'First Name', name: 'first_name', type: 'string', default: '', - description: 'The user first name' + description: 'The user first name', }, { displayName: 'Has Access To All Future Projects', name: 'has_access_to_all_future_projects', type: 'boolean', default: false, - description: 'Whether the user should be automatically added to future projects.' + description: 'Whether the user should be automatically added to future projects.', }, { displayName: 'Is Active', name: 'is_active', type: 'boolean', default: true, - description: 'Whether the user is active or archived.' + description: 'Whether the user is active or archived.', }, { displayName: 'Is Admin', name: 'is_admin', type: 'boolean', default: false, - description: 'Whether the user has Admin permissions.' + description: 'Whether the user has Admin permissions.', }, { displayName: 'Is Contractor', name: 'is_contractor', type: 'boolean', default: false, - description: 'Whether the user is a contractor or an employee.' + description: 'Whether the user is a contractor or an employee.', }, { displayName: 'Is Project Manager', name: 'is_project_manager', type: 'boolean', default: false, - description: 'Whether the user has Project Manager permissions.' + description: 'Whether the user has Project Manager permissions.', }, { displayName: 'Last Name', name: 'last_name', type: 'string', default: '', - description: 'The user last name' + description: 'The user last name', }, { displayName: 'Roles', name: 'roles', type: 'string', default: '', - description: 'The role names assigned to this person.' + description: 'The role names assigned to this person.', }, { displayName: 'Timezone', name: 'timezone', type: 'string', default: '', - description: 'The user’s timezone. Defaults to the company’s timezone. See a list of supported time zones.' + description: 'The user’s timezone. Defaults to the company’s timezone. See a list of supported time zones.', }, { displayName: 'Weekly Capacity', @@ -493,7 +493,7 @@ export const userFields = [ minValue: 0, }, default: 126000, - description: 'The number of hours per week this person is available to work in seconds. Defaults to 126000 seconds (35 hours).' + description: 'The number of hours per week this person is available to work in seconds. Defaults to 126000 seconds (35 hours).', }, ], }, diff --git a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts index 1ab9dd88e..2d49afe4f 100644 --- a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts @@ -248,7 +248,7 @@ export const conversationFields = [ default: 0, description: 'ID of the user who is adding the conversation and threads.', }, - ] + ], }, { displayName: 'Threads', @@ -281,23 +281,23 @@ export const conversationFields = [ options: [ { name: 'Chat', - value: 'chat' + value: 'chat', }, { name: 'Customer', - value: 'customer' + value: 'customer', }, { name: 'Note', - value: 'note' + value: 'note', }, { name: 'Phone', - value: 'phone' + value: 'phone', }, { name: 'Reply', - value: 'reply' + value: 'reply', }, ], default: '', @@ -307,10 +307,10 @@ export const conversationFields = [ name: 'text', type: 'string', typeOptions: { - alwaysOpenEditWindow: true + alwaysOpenEditWindow: true, }, default: '', - description: 'The message text.' + description: 'The message text.', }, { displayName: 'Bcc', @@ -318,7 +318,7 @@ export const conversationFields = [ displayOptions: { show: { type: [ - 'customer' + 'customer', ], }, }, @@ -328,7 +328,7 @@ export const conversationFields = [ multipleValueButtonText: 'Add Email', }, default: [], - description: 'Email addresses.' + description: 'Email addresses.', }, { displayName: 'Cc', @@ -336,7 +336,7 @@ export const conversationFields = [ displayOptions: { show: { type: [ - 'customer' + 'customer', ], }, }, @@ -346,7 +346,7 @@ export const conversationFields = [ multipleValueButtonText: 'Add Email', }, default: [], - description: 'Email addresses.' + description: 'Email addresses.', }, { displayName: 'Draft', @@ -354,7 +354,7 @@ export const conversationFields = [ displayOptions: { show: { type: [ - 'reply' + 'reply', ], }, }, @@ -527,7 +527,7 @@ export const conversationFields = [ alwaysOpenEditWindow: true, }, default: '', - description: 'Advanced search Examples' + description: 'Advanced search Examples', }, { displayName: 'Sort Field', diff --git a/packages/nodes-base/nodes/HelpScout/CountriesCodes.ts b/packages/nodes-base/nodes/HelpScout/CountriesCodes.ts index 3c41a76c7..4c37abc6b 100644 --- a/packages/nodes-base/nodes/HelpScout/CountriesCodes.ts +++ b/packages/nodes-base/nodes/HelpScout/CountriesCodes.ts @@ -3,291 +3,291 @@ export const countriesCodes = [ 'name': 'Afghanistan', 'alpha2': 'AF', 'alpha3': 'AFG', - 'numeric': '004' + 'numeric': '004', }, { 'name': 'Åland Islands', 'alpha2': 'AX', 'alpha3': 'ALA', 'numeric': '248', - 'altName': 'Aland Islands' + 'altName': 'Aland Islands', }, { 'name': 'Albania', 'alpha2': 'AL', 'alpha3': 'ALB', - 'numeric': '008' + 'numeric': '008', }, { 'name': 'Algeria', 'alpha2': 'DZ', 'alpha3': 'DZA', - 'numeric': '012' + 'numeric': '012', }, { 'name': 'American Samoa', 'alpha2': 'AS', 'alpha3': 'ASM', - 'numeric': '016' + 'numeric': '016', }, { 'name': 'Andorra', 'alpha2': 'AD', 'alpha3': 'AND', - 'numeric': '020' + 'numeric': '020', }, { 'name': 'Angola', 'alpha2': 'AO', 'alpha3': 'AGO', - 'numeric': '024' + 'numeric': '024', }, { 'name': 'Anguilla', 'alpha2': 'AI', 'alpha3': 'AIA', - 'numeric': '660' + 'numeric': '660', }, { 'name': 'Antarctica', 'alpha2': 'AQ', 'alpha3': 'ATA', - 'numeric': '010' + 'numeric': '010', }, { 'name': 'Antigua and Barbuda', 'alpha2': 'AG', 'alpha3': 'ATG', - 'numeric': '028' + 'numeric': '028', }, { 'name': 'Argentina', 'alpha2': 'AR', 'alpha3': 'ARG', - 'numeric': '032' + 'numeric': '032', }, { 'name': 'Armenia', 'alpha2': 'AM', 'alpha3': 'ARM', - 'numeric': '051' + 'numeric': '051', }, { 'name': 'Aruba', 'alpha2': 'AW', 'alpha3': 'ABW', - 'numeric': '533' + 'numeric': '533', }, { 'name': 'Australia', 'alpha2': 'AU', 'alpha3': 'AUS', - 'numeric': '036' + 'numeric': '036', }, { 'name': 'Austria', 'alpha2': 'AT', 'alpha3': 'AUT', - 'numeric': '040' + 'numeric': '040', }, { 'name': 'Azerbaijan', 'alpha2': 'AZ', 'alpha3': 'AZE', - 'numeric': '031' + 'numeric': '031', }, { 'name': 'Bahamas (the)', 'alpha2': 'BS', 'alpha3': 'BHS', 'numeric': '044', - 'altName': 'Bahamas' + 'altName': 'Bahamas', }, { 'name': 'Bahrain', 'alpha2': 'BH', 'alpha3': 'BHR', - 'numeric': '048' + 'numeric': '048', }, { 'name': 'Bangladesh', 'alpha2': 'BD', 'alpha3': 'BGD', - 'numeric': '050' + 'numeric': '050', }, { 'name': 'Barbados', 'alpha2': 'BB', 'alpha3': 'BRB', - 'numeric': '052' + 'numeric': '052', }, { 'name': 'Belarus', 'alpha2': 'BY', 'alpha3': 'BLR', - 'numeric': '112' + 'numeric': '112', }, { 'name': 'Belgium', 'alpha2': 'BE', 'alpha3': 'BEL', - 'numeric': '056' + 'numeric': '056', }, { 'name': 'Belize', 'alpha2': 'BZ', 'alpha3': 'BLZ', - 'numeric': '084' + 'numeric': '084', }, { 'name': 'Benin', 'alpha2': 'BJ', 'alpha3': 'BEN', - 'numeric': '204' + 'numeric': '204', }, { 'name': 'Bermuda', 'alpha2': 'BM', 'alpha3': 'BMU', - 'numeric': '060' + 'numeric': '060', }, { 'name': 'Bhutan', 'alpha2': 'BT', 'alpha3': 'BTN', - 'numeric': '064' + 'numeric': '064', }, { 'name': 'Bolivia (Plurinational State of)', 'alpha2': 'BO', 'alpha3': 'BOL', 'numeric': '068', - 'altName': 'Bolivia' + 'altName': 'Bolivia', }, { 'name': 'Bonaire, Sint Eustatius and Saba', 'alpha2': 'BQ', 'alpha3': 'BES', - 'numeric': '535' + 'numeric': '535', }, { 'name': 'Bosnia and Herzegovina', 'alpha2': 'BA', 'alpha3': 'BIH', - 'numeric': '070' + 'numeric': '070', }, { 'name': 'Botswana', 'alpha2': 'BW', 'alpha3': 'BWA', - 'numeric': '072' + 'numeric': '072', }, { 'name': 'Bouvet Island', 'alpha2': 'BV', 'alpha3': 'BVT', - 'numeric': '074' + 'numeric': '074', }, { 'name': 'Brazil', 'alpha2': 'BR', 'alpha3': 'BRA', - 'numeric': '076' + 'numeric': '076', }, { 'name': 'British Indian Ocean Territory (the)', 'alpha2': 'IO', 'alpha3': 'IOT', 'numeric': '086', - 'altName': 'British Indian Ocean Territory' + 'altName': 'British Indian Ocean Territory', }, { 'name': 'Brunei Darussalam', 'alpha2': 'BN', 'alpha3': 'BRN', 'numeric': '096', - 'shortName': 'Brunei' + 'shortName': 'Brunei', }, { 'name': 'Bulgaria', 'alpha2': 'BG', 'alpha3': 'BGR', - 'numeric': '100' + 'numeric': '100', }, { 'name': 'Burkina Faso', 'alpha2': 'BF', 'alpha3': 'BFA', - 'numeric': '854' + 'numeric': '854', }, { 'name': 'Burundi', 'alpha2': 'BI', 'alpha3': 'BDI', - 'numeric': '108' + 'numeric': '108', }, { 'name': 'Cabo Verde', 'alpha2': 'CV', 'alpha3': 'CPV', 'numeric': '132', - 'altName': 'Cape Verde' + 'altName': 'Cape Verde', }, { 'name': 'Cambodia', 'alpha2': 'KH', 'alpha3': 'KHM', - 'numeric': '116' + 'numeric': '116', }, { 'name': 'Cameroon', 'alpha2': 'CM', 'alpha3': 'CMR', - 'numeric': '120' + 'numeric': '120', }, { 'name': 'Canada', 'alpha2': 'CA', 'alpha3': 'CAN', - 'numeric': '124' + 'numeric': '124', }, { 'name': 'Cayman Islands (the)', 'alpha2': 'KY', 'alpha3': 'CYM', 'numeric': '136', - 'altName': 'Cayman Islands' + 'altName': 'Cayman Islands', }, { 'name': 'Central African Republic (the)', 'alpha2': 'CF', 'alpha3': 'CAF', 'numeric': '140', - 'altName': 'Central African Republic' + 'altName': 'Central African Republic', }, { 'name': 'Chad', 'alpha2': 'TD', 'alpha3': 'TCD', - 'numeric': '148' + 'numeric': '148', }, { 'name': 'Chile', 'alpha2': 'CL', 'alpha3': 'CHL', - 'numeric': '152' + 'numeric': '152', }, { 'name': 'China', 'alpha2': 'CN', 'alpha3': 'CHN', - 'numeric': '156' + 'numeric': '156', }, { 'name': 'Christmas Island', 'alpha2': 'CX', 'alpha3': 'CXR', - 'numeric': '162' + 'numeric': '162', }, { 'name': 'Cocos (Keeling) Islands (the)', @@ -295,20 +295,20 @@ export const countriesCodes = [ 'alpha3': 'CCK', 'numeric': '166', 'altName': 'Cocos (Keeling) Islands', - 'shortName': 'Cocos Islands' + 'shortName': 'Cocos Islands', }, { 'name': 'Colombia', 'alpha2': 'CO', 'alpha3': 'COL', - 'numeric': '170' + 'numeric': '170', }, { 'name': 'Comoros (the)', 'alpha2': 'KM', 'alpha3': 'COM', 'numeric': '174', - 'altName': 'Comoros' + 'altName': 'Comoros', }, { 'name': 'Congo (the Democratic Republic of the)', @@ -316,7 +316,7 @@ export const countriesCodes = [ 'alpha3': 'COD', 'numeric': '180', 'altName': 'Congo, (Kinshasa)', - 'shortName': 'Democratic Republic of the Congo' + 'shortName': 'Democratic Republic of the Congo', }, { 'name': 'Congo (the)', @@ -324,126 +324,126 @@ export const countriesCodes = [ 'alpha3': 'COG', 'numeric': '178', 'altName': 'Congo (Brazzaville)', - 'shortName': 'Republic of the Congo' + 'shortName': 'Republic of the Congo', }, { 'name': 'Cook Islands (the)', 'alpha2': 'CK', 'alpha3': 'COK', 'numeric': '184', - 'altName': 'Cook Islands' + 'altName': 'Cook Islands', }, { 'name': 'Costa Rica', 'alpha2': 'CR', 'alpha3': 'CRI', - 'numeric': '188' + 'numeric': '188', }, { 'name': 'Côte d\'Ivoire', 'alpha2': 'CI', 'alpha3': 'CIV', 'numeric': '384', - 'shortName': 'Ivory Coast' + 'shortName': 'Ivory Coast', }, { 'name': 'Croatia', 'alpha2': 'HR', 'alpha3': 'HRV', - 'numeric': '191' + 'numeric': '191', }, { 'name': 'Cuba', 'alpha2': 'CU', 'alpha3': 'CUB', - 'numeric': '192' + 'numeric': '192', }, { 'name': 'Curaçao', 'alpha2': 'CW', 'alpha3': 'CUW', 'numeric': '531', - 'shortName': 'Curacao' + 'shortName': 'Curacao', }, { 'name': 'Cyprus', 'alpha2': 'CY', 'alpha3': 'CYP', - 'numeric': '196' + 'numeric': '196', }, { 'name': 'Czechia', 'alpha2': 'CZ', 'alpha3': 'CZE', 'numeric': '203', - 'altName': 'Czech Republic' + 'altName': 'Czech Republic', }, { 'name': 'Denmark', 'alpha2': 'DK', 'alpha3': 'DNK', - 'numeric': '208' + 'numeric': '208', }, { 'name': 'Djibouti', 'alpha2': 'DJ', 'alpha3': 'DJI', - 'numeric': '262' + 'numeric': '262', }, { 'name': 'Dominica', 'alpha2': 'DM', 'alpha3': 'DMA', - 'numeric': '212' + 'numeric': '212', }, { 'name': 'Dominican Republic (the)', 'alpha2': 'DO', 'alpha3': 'DOM', 'numeric': '214', - 'altName': 'Dominican Republic' + 'altName': 'Dominican Republic', }, { 'name': 'Ecuador', 'alpha2': 'EC', 'alpha3': 'ECU', - 'numeric': '218' + 'numeric': '218', }, { 'name': 'Egypt', 'alpha2': 'EG', 'alpha3': 'EGY', - 'numeric': '818' + 'numeric': '818', }, { 'name': 'El Salvador', 'alpha2': 'SV', 'alpha3': 'SLV', - 'numeric': '222' + 'numeric': '222', }, { 'name': 'Equatorial Guinea', 'alpha2': 'GQ', 'alpha3': 'GNQ', - 'numeric': '226' + 'numeric': '226', }, { 'name': 'Eritrea', 'alpha2': 'ER', 'alpha3': 'ERI', - 'numeric': '232' + 'numeric': '232', }, { 'name': 'Estonia', 'alpha2': 'EE', 'alpha3': 'EST', - 'numeric': '233' + 'numeric': '233', }, { 'name': 'Ethiopia', 'alpha2': 'ET', 'alpha3': 'ETH', - 'numeric': '231' + 'numeric': '231', }, { 'name': 'Falkland Islands (the) [Malvinas]', @@ -451,161 +451,161 @@ export const countriesCodes = [ 'alpha3': 'FLK', 'numeric': '238', 'altName': 'Falkland Islands (Malvinas)', - 'shortName': 'Falkland Islands' + 'shortName': 'Falkland Islands', }, { 'name': 'Faroe Islands (the)', 'alpha2': 'FO', 'alpha3': 'FRO', 'numeric': '234', - 'altName': 'Faroe Islands' + 'altName': 'Faroe Islands', }, { 'name': 'Fiji', 'alpha2': 'FJ', 'alpha3': 'FJI', - 'numeric': '242' + 'numeric': '242', }, { 'name': 'Finland', 'alpha2': 'FI', 'alpha3': 'FIN', - 'numeric': '246' + 'numeric': '246', }, { 'name': 'France', 'alpha2': 'FR', 'alpha3': 'FRA', - 'numeric': '250' + 'numeric': '250', }, { 'name': 'French Guiana', 'alpha2': 'GF', 'alpha3': 'GUF', - 'numeric': '254' + 'numeric': '254', }, { 'name': 'French Polynesia', 'alpha2': 'PF', 'alpha3': 'PYF', - 'numeric': '258' + 'numeric': '258', }, { 'name': 'French Southern Territories (the)', 'alpha2': 'TF', 'alpha3': 'ATF', 'numeric': '260', - 'altName': 'French Southern Territories' + 'altName': 'French Southern Territories', }, { 'name': 'Gabon', 'alpha2': 'GA', 'alpha3': 'GAB', - 'numeric': '266' + 'numeric': '266', }, { 'name': 'Gambia (the)', 'alpha2': 'GM', 'alpha3': 'GMB', 'numeric': '270', - 'altName': 'Gambia' + 'altName': 'Gambia', }, { 'name': 'Georgia', 'alpha2': 'GE', 'alpha3': 'GEO', - 'numeric': '268' + 'numeric': '268', }, { 'name': 'Germany', 'alpha2': 'DE', 'alpha3': 'DEU', - 'numeric': '276' + 'numeric': '276', }, { 'name': 'Ghana', 'alpha2': 'GH', 'alpha3': 'GHA', - 'numeric': '288' + 'numeric': '288', }, { 'name': 'Gibraltar', 'alpha2': 'GI', 'alpha3': 'GIB', - 'numeric': '292' + 'numeric': '292', }, { 'name': 'Greece', 'alpha2': 'GR', 'alpha3': 'GRC', - 'numeric': '300' + 'numeric': '300', }, { 'name': 'Greenland', 'alpha2': 'GL', 'alpha3': 'GRL', - 'numeric': '304' + 'numeric': '304', }, { 'name': 'Grenada', 'alpha2': 'GD', 'alpha3': 'GRD', - 'numeric': '308' + 'numeric': '308', }, { 'name': 'Guadeloupe', 'alpha2': 'GP', 'alpha3': 'GLP', - 'numeric': '312' + 'numeric': '312', }, { 'name': 'Guam', 'alpha2': 'GU', 'alpha3': 'GUM', - 'numeric': '316' + 'numeric': '316', }, { 'name': 'Guatemala', 'alpha2': 'GT', 'alpha3': 'GTM', - 'numeric': '320' + 'numeric': '320', }, { 'name': 'Guernsey', 'alpha2': 'GG', 'alpha3': 'GGY', - 'numeric': '831' + 'numeric': '831', }, { 'name': 'Guinea', 'alpha2': 'GN', 'alpha3': 'GIN', - 'numeric': '324' + 'numeric': '324', }, { 'name': 'Guinea-Bissau', 'alpha2': 'GW', 'alpha3': 'GNB', - 'numeric': '624' + 'numeric': '624', }, { 'name': 'Guyana', 'alpha2': 'GY', 'alpha3': 'GUY', - 'numeric': '328' + 'numeric': '328', }, { 'name': 'Haiti', 'alpha2': 'HT', 'alpha3': 'HTI', - 'numeric': '332' + 'numeric': '332', }, { 'name': 'Heard Island and McDonald Islands', 'alpha2': 'HM', 'alpha3': 'HMD', 'numeric': '334', - 'altName': 'Heard and Mcdonald Islands' + 'altName': 'Heard and Mcdonald Islands', }, { 'name': 'Holy See (the)', @@ -613,44 +613,44 @@ export const countriesCodes = [ 'alpha3': 'VAT', 'numeric': '336', 'altName': 'Holy See (Vatican City State)', - 'shortName': 'Vatican' + 'shortName': 'Vatican', }, { 'name': 'Honduras', 'alpha2': 'HN', 'alpha3': 'HND', - 'numeric': '340' + 'numeric': '340', }, { 'name': 'Hong Kong', 'alpha2': 'HK', 'alpha3': 'HKG', 'numeric': '344', - 'altName': 'Hong Kong, SAR China' + 'altName': 'Hong Kong, SAR China', }, { 'name': 'Hungary', 'alpha2': 'HU', 'alpha3': 'HUN', - 'numeric': '348' + 'numeric': '348', }, { 'name': 'Iceland', 'alpha2': 'IS', 'alpha3': 'ISL', - 'numeric': '352' + 'numeric': '352', }, { 'name': 'India', 'alpha2': 'IN', 'alpha3': 'IND', - 'numeric': '356' + 'numeric': '356', }, { 'name': 'Indonesia', 'alpha2': 'ID', 'alpha3': 'IDN', - 'numeric': '360' + 'numeric': '360', }, { 'name': 'Iran (Islamic Republic of)', @@ -658,79 +658,79 @@ export const countriesCodes = [ 'alpha3': 'IRN', 'numeric': '364', 'altName': 'Iran, Islamic Republic of', - 'shortName': 'Iran' + 'shortName': 'Iran', }, { 'name': 'Iraq', 'alpha2': 'IQ', 'alpha3': 'IRQ', - 'numeric': '368' + 'numeric': '368', }, { 'name': 'Ireland', 'alpha2': 'IE', 'alpha3': 'IRL', - 'numeric': '372' + 'numeric': '372', }, { 'name': 'Isle of Man', 'alpha2': 'IM', 'alpha3': 'IMN', - 'numeric': '833' + 'numeric': '833', }, { 'name': 'Israel', 'alpha2': 'IL', 'alpha3': 'ISR', - 'numeric': '376' + 'numeric': '376', }, { 'name': 'Italy', 'alpha2': 'IT', 'alpha3': 'ITA', - 'numeric': '380' + 'numeric': '380', }, { 'name': 'Jamaica', 'alpha2': 'JM', 'alpha3': 'JAM', - 'numeric': '388' + 'numeric': '388', }, { 'name': 'Japan', 'alpha2': 'JP', 'alpha3': 'JPN', - 'numeric': '392' + 'numeric': '392', }, { 'name': 'Jersey', 'alpha2': 'JE', 'alpha3': 'JEY', - 'numeric': '832' + 'numeric': '832', }, { 'name': 'Jordan', 'alpha2': 'JO', 'alpha3': 'JOR', - 'numeric': '400' + 'numeric': '400', }, { 'name': 'Kazakhstan', 'alpha2': 'KZ', 'alpha3': 'KAZ', - 'numeric': '398' + 'numeric': '398', }, { 'name': 'Kenya', 'alpha2': 'KE', 'alpha3': 'KEN', - 'numeric': '404' + 'numeric': '404', }, { 'name': 'Kiribati', 'alpha2': 'KI', 'alpha3': 'KIR', - 'numeric': '296' + 'numeric': '296', }, { 'name': 'Korea (the Democratic People\'s Republic of)', @@ -738,7 +738,7 @@ export const countriesCodes = [ 'alpha3': 'PRK', 'numeric': '408', 'altName': 'Korea (North)', - 'shortName': 'North Korea' + 'shortName': 'North Korea', }, { 'name': 'Korea (the Republic of)', @@ -746,19 +746,19 @@ export const countriesCodes = [ 'alpha3': 'KOR', 'numeric': '410', 'altName': 'Korea (South)', - 'shortName': 'South Korea' + 'shortName': 'South Korea', }, { 'name': 'Kuwait', 'alpha2': 'KW', 'alpha3': 'KWT', - 'numeric': '414' + 'numeric': '414', }, { 'name': 'Kyrgyzstan', 'alpha2': 'KG', 'alpha3': 'KGZ', - 'numeric': '417' + 'numeric': '417', }, { 'name': 'Lao People\'s Democratic Republic (the)', @@ -766,55 +766,55 @@ export const countriesCodes = [ 'alpha3': 'LAO', 'numeric': '418', 'altName': 'Lao PDR', - 'shortName': 'Laos' + 'shortName': 'Laos', }, { 'name': 'Latvia', 'alpha2': 'LV', 'alpha3': 'LVA', - 'numeric': '428' + 'numeric': '428', }, { 'name': 'Lebanon', 'alpha2': 'LB', 'alpha3': 'LBN', - 'numeric': '422' + 'numeric': '422', }, { 'name': 'Lesotho', 'alpha2': 'LS', 'alpha3': 'LSO', - 'numeric': '426' + 'numeric': '426', }, { 'name': 'Liberia', 'alpha2': 'LR', 'alpha3': 'LBR', - 'numeric': '430' + 'numeric': '430', }, { 'name': 'Libya', 'alpha2': 'LY', 'alpha3': 'LBY', - 'numeric': '434' + 'numeric': '434', }, { 'name': 'Liechtenstein', 'alpha2': 'LI', 'alpha3': 'LIE', - 'numeric': '438' + 'numeric': '438', }, { 'name': 'Lithuania', 'alpha2': 'LT', 'alpha3': 'LTU', - 'numeric': '440' + 'numeric': '440', }, { 'name': 'Luxembourg', 'alpha2': 'LU', 'alpha3': 'LUX', - 'numeric': '442' + 'numeric': '442', }, { 'name': 'Macao', @@ -822,7 +822,7 @@ export const countriesCodes = [ 'alpha3': 'MAC', 'numeric': '446', 'altName': 'Macao, SAR China', - 'shortName': 'Macau' + 'shortName': 'Macau', }, { 'name': 'Macedonia (the former Yugoslav Republic of)', @@ -830,80 +830,80 @@ export const countriesCodes = [ 'alpha3': 'MKD', 'numeric': '807', 'altName': 'Macedonia, Republic of', - 'shortName': 'Macedonia' + 'shortName': 'Macedonia', }, { 'name': 'Madagascar', 'alpha2': 'MG', 'alpha3': 'MDG', - 'numeric': '450' + 'numeric': '450', }, { 'name': 'Malawi', 'alpha2': 'MW', 'alpha3': 'MWI', - 'numeric': '454' + 'numeric': '454', }, { 'name': 'Malaysia', 'alpha2': 'MY', 'alpha3': 'MYS', - 'numeric': '458' + 'numeric': '458', }, { 'name': 'Maldives', 'alpha2': 'MV', 'alpha3': 'MDV', - 'numeric': '462' + 'numeric': '462', }, { 'name': 'Mali', 'alpha2': 'ML', 'alpha3': 'MLI', - 'numeric': '466' + 'numeric': '466', }, { 'name': 'Malta', 'alpha2': 'MT', 'alpha3': 'MLT', - 'numeric': '470' + 'numeric': '470', }, { 'name': 'Marshall Islands (the)', 'alpha2': 'MH', 'alpha3': 'MHL', 'numeric': '584', - 'altName': 'Marshall Islands' + 'altName': 'Marshall Islands', }, { 'name': 'Martinique', 'alpha2': 'MQ', 'alpha3': 'MTQ', - 'numeric': '474' + 'numeric': '474', }, { 'name': 'Mauritania', 'alpha2': 'MR', 'alpha3': 'MRT', - 'numeric': '478' + 'numeric': '478', }, { 'name': 'Mauritius', 'alpha2': 'MU', 'alpha3': 'MUS', - 'numeric': '480' + 'numeric': '480', }, { 'name': 'Mayotte', 'alpha2': 'YT', 'alpha3': 'MYT', - 'numeric': '175' + 'numeric': '175', }, { 'name': 'Mexico', 'alpha2': 'MX', 'alpha3': 'MEX', - 'numeric': '484' + 'numeric': '484', }, { 'name': 'Micronesia (Federated States of)', @@ -911,155 +911,155 @@ export const countriesCodes = [ 'alpha3': 'FSM', 'numeric': '583', 'altName': 'Micronesia, Federated States of', - 'shortName': 'Micronesia' + 'shortName': 'Micronesia', }, { 'name': 'Moldova (the Republic of)', 'alpha2': 'MD', 'alpha3': 'MDA', 'numeric': '498', - 'altName': 'Moldova' + 'altName': 'Moldova', }, { 'name': 'Monaco', 'alpha2': 'MC', 'alpha3': 'MCO', - 'numeric': '492' + 'numeric': '492', }, { 'name': 'Mongolia', 'alpha2': 'MN', 'alpha3': 'MNG', - 'numeric': '496' + 'numeric': '496', }, { 'name': 'Montenegro', 'alpha2': 'ME', 'alpha3': 'MNE', - 'numeric': '499' + 'numeric': '499', }, { 'name': 'Montserrat', 'alpha2': 'MS', 'alpha3': 'MSR', - 'numeric': '500' + 'numeric': '500', }, { 'name': 'Morocco', 'alpha2': 'MA', 'alpha3': 'MAR', - 'numeric': '504' + 'numeric': '504', }, { 'name': 'Mozambique', 'alpha2': 'MZ', 'alpha3': 'MOZ', - 'numeric': '508' + 'numeric': '508', }, { 'name': 'Myanmar', 'alpha2': 'MM', 'alpha3': 'MMR', - 'numeric': '104' + 'numeric': '104', }, { 'name': 'Namibia', 'alpha2': 'NA', 'alpha3': 'NAM', - 'numeric': '516' + 'numeric': '516', }, { 'name': 'Nauru', 'alpha2': 'NR', 'alpha3': 'NRU', - 'numeric': '520' + 'numeric': '520', }, { 'name': 'Nepal', 'alpha2': 'NP', 'alpha3': 'NPL', - 'numeric': '524' + 'numeric': '524', }, { 'name': 'Netherlands (the)', 'alpha2': 'NL', 'alpha3': 'NLD', 'numeric': '528', - 'altName': 'Netherlands' + 'altName': 'Netherlands', }, { 'name': 'New Caledonia', 'alpha2': 'NC', 'alpha3': 'NCL', - 'numeric': '540' + 'numeric': '540', }, { 'name': 'New Zealand', 'alpha2': 'NZ', 'alpha3': 'NZL', - 'numeric': '554' + 'numeric': '554', }, { 'name': 'Nicaragua', 'alpha2': 'NI', 'alpha3': 'NIC', - 'numeric': '558' + 'numeric': '558', }, { 'name': 'Niger (the)', 'alpha2': 'NE', 'alpha3': 'NER', 'numeric': '562', - 'altName': 'Niger' + 'altName': 'Niger', }, { 'name': 'Nigeria', 'alpha2': 'NG', 'alpha3': 'NGA', - 'numeric': '566' + 'numeric': '566', }, { 'name': 'Niue', 'alpha2': 'NU', 'alpha3': 'NIU', - 'numeric': '570' + 'numeric': '570', }, { 'name': 'Norfolk Island', 'alpha2': 'NF', 'alpha3': 'NFK', - 'numeric': '574' + 'numeric': '574', }, { 'name': 'Northern Mariana Islands (the)', 'alpha2': 'MP', 'alpha3': 'MNP', 'numeric': '580', - 'altName': 'Northern Mariana Islands' + 'altName': 'Northern Mariana Islands', }, { 'name': 'Norway', 'alpha2': 'NO', 'alpha3': 'NOR', - 'numeric': '578' + 'numeric': '578', }, { 'name': 'Oman', 'alpha2': 'OM', 'alpha3': 'OMN', - 'numeric': '512' + 'numeric': '512', }, { 'name': 'Pakistan', 'alpha2': 'PK', 'alpha3': 'PAK', - 'numeric': '586' + 'numeric': '586', }, { 'name': 'Palau', 'alpha2': 'PW', 'alpha3': 'PLW', - 'numeric': '585' + 'numeric': '585', }, { 'name': 'Palestine, State of', @@ -1067,81 +1067,81 @@ export const countriesCodes = [ 'alpha3': 'PSE', 'numeric': '275', 'altName': 'Palestinian Territory', - 'shortName': 'Palestine' + 'shortName': 'Palestine', }, { 'name': 'Panama', 'alpha2': 'PA', 'alpha3': 'PAN', - 'numeric': '591' + 'numeric': '591', }, { 'name': 'Papua New Guinea', 'alpha2': 'PG', 'alpha3': 'PNG', - 'numeric': '598' + 'numeric': '598', }, { 'name': 'Paraguay', 'alpha2': 'PY', 'alpha3': 'PRY', - 'numeric': '600' + 'numeric': '600', }, { 'name': 'Peru', 'alpha2': 'PE', 'alpha3': 'PER', - 'numeric': '604' + 'numeric': '604', }, { 'name': 'Philippines (the)', 'alpha2': 'PH', 'alpha3': 'PHL', 'numeric': '608', - 'altName': 'Philippines' + 'altName': 'Philippines', }, { 'name': 'Pitcairn', 'alpha2': 'PN', 'alpha3': 'PCN', - 'numeric': '612' + 'numeric': '612', }, { 'name': 'Poland', 'alpha2': 'PL', 'alpha3': 'POL', - 'numeric': '616' + 'numeric': '616', }, { 'name': 'Portugal', 'alpha2': 'PT', 'alpha3': 'PRT', - 'numeric': '620' + 'numeric': '620', }, { 'name': 'Puerto Rico', 'alpha2': 'PR', 'alpha3': 'PRI', - 'numeric': '630' + 'numeric': '630', }, { 'name': 'Qatar', 'alpha2': 'QA', 'alpha3': 'QAT', - 'numeric': '634' + 'numeric': '634', }, { 'name': 'Réunion', 'alpha2': 'RE', 'alpha3': 'REU', 'numeric': '638', - 'shortName': 'Reunion' + 'shortName': 'Reunion', }, { 'name': 'Romania', 'alpha2': 'RO', 'alpha3': 'ROU', - 'numeric': '642' + 'numeric': '642', }, { 'name': 'Russian Federation (the)', @@ -1149,13 +1149,13 @@ export const countriesCodes = [ 'alpha3': 'RUS', 'numeric': '643', 'altName': 'Russian Federation', - 'shortName': 'Russia' + 'shortName': 'Russia', }, { 'name': 'Rwanda', 'alpha2': 'RW', 'alpha3': 'RWA', - 'numeric': '646' + 'numeric': '646', }, { 'name': 'Saint Barthélemy', @@ -1163,26 +1163,26 @@ export const countriesCodes = [ 'alpha3': 'BLM', 'numeric': '652', 'altName': 'Saint-Barthélemy', - 'shortName': 'Saint Barthelemy' + 'shortName': 'Saint Barthelemy', }, { 'name': 'Saint Helena, Ascension and Tristan da Cunha', 'alpha2': 'SH', 'alpha3': 'SHN', 'numeric': '654', - 'altName': 'Saint Helena' + 'altName': 'Saint Helena', }, { 'name': 'Saint Kitts and Nevis', 'alpha2': 'KN', 'alpha3': 'KNA', - 'numeric': '659' + 'numeric': '659', }, { 'name': 'Saint Lucia', 'alpha2': 'LC', 'alpha3': 'LCA', - 'numeric': '662' + 'numeric': '662', }, { 'name': 'Saint Martin (French part)', @@ -1190,173 +1190,173 @@ export const countriesCodes = [ 'alpha3': 'MAF', 'numeric': '663', 'altName': 'Saint-Martin (French part)', - 'shortName': 'Saint Martin' + 'shortName': 'Saint Martin', }, { 'name': 'Saint Pierre and Miquelon', 'alpha2': 'PM', 'alpha3': 'SPM', - 'numeric': '666' + 'numeric': '666', }, { 'name': 'Saint Vincent and the Grenadines', 'alpha2': 'VC', 'alpha3': 'VCT', 'numeric': '670', - 'altName': 'Saint Vincent and Grenadines' + 'altName': 'Saint Vincent and Grenadines', }, { 'name': 'Samoa', 'alpha2': 'WS', 'alpha3': 'WSM', - 'numeric': '882' + 'numeric': '882', }, { 'name': 'San Marino', 'alpha2': 'SM', 'alpha3': 'SMR', - 'numeric': '674' + 'numeric': '674', }, { 'name': 'Sao Tome and Principe', 'alpha2': 'ST', 'alpha3': 'STP', - 'numeric': '678' + 'numeric': '678', }, { 'name': 'Saudi Arabia', 'alpha2': 'SA', 'alpha3': 'SAU', - 'numeric': '682' + 'numeric': '682', }, { 'name': 'Senegal', 'alpha2': 'SN', 'alpha3': 'SEN', - 'numeric': '686' + 'numeric': '686', }, { 'name': 'Serbia', 'alpha2': 'RS', 'alpha3': 'SRB', - 'numeric': '688' + 'numeric': '688', }, { 'name': 'Seychelles', 'alpha2': 'SC', 'alpha3': 'SYC', - 'numeric': '690' + 'numeric': '690', }, { 'name': 'Sierra Leone', 'alpha2': 'SL', 'alpha3': 'SLE', - 'numeric': '694' + 'numeric': '694', }, { 'name': 'Singapore', 'alpha2': 'SG', 'alpha3': 'SGP', - 'numeric': '702' + 'numeric': '702', }, { 'name': 'Sint Maarten (Dutch part)', 'alpha2': 'SX', 'alpha3': 'SXM', 'numeric': '534', - 'shortName': 'Sint Maarten' + 'shortName': 'Sint Maarten', }, { 'name': 'Slovakia', 'alpha2': 'SK', 'alpha3': 'SVK', - 'numeric': '703' + 'numeric': '703', }, { 'name': 'Slovenia', 'alpha2': 'SI', 'alpha3': 'SVN', - 'numeric': '705' + 'numeric': '705', }, { 'name': 'Solomon Islands', 'alpha2': 'SB', 'alpha3': 'SLB', - 'numeric': '090' + 'numeric': '090', }, { 'name': 'Somalia', 'alpha2': 'SO', 'alpha3': 'SOM', - 'numeric': '706' + 'numeric': '706', }, { 'name': 'South Africa', 'alpha2': 'ZA', 'alpha3': 'ZAF', - 'numeric': '710' + 'numeric': '710', }, { 'name': 'South Georgia and the South Sandwich Islands', 'alpha2': 'GS', 'alpha3': 'SGS', - 'numeric': '239' + 'numeric': '239', }, { 'name': 'South Sudan', 'alpha2': 'SS', 'alpha3': 'SSD', - 'numeric': '728' + 'numeric': '728', }, { 'name': 'Spain', 'alpha2': 'ES', 'alpha3': 'ESP', - 'numeric': '724' + 'numeric': '724', }, { 'name': 'Sri Lanka', 'alpha2': 'LK', 'alpha3': 'LKA', - 'numeric': '144' + 'numeric': '144', }, { 'name': 'Sudan (the)', 'alpha2': 'SD', 'alpha3': 'SDN', 'numeric': '729', - 'altName': 'Sudan' + 'altName': 'Sudan', }, { 'name': 'Suriname', 'alpha2': 'SR', 'alpha3': 'SUR', - 'numeric': '740' + 'numeric': '740', }, { 'name': 'Svalbard and Jan Mayen', 'alpha2': 'SJ', 'alpha3': 'SJM', 'numeric': '744', - 'altName': 'Svalbard and Jan Mayen Islands' + 'altName': 'Svalbard and Jan Mayen Islands', }, { 'name': 'Swaziland', 'alpha2': 'SZ', 'alpha3': 'SWZ', - 'numeric': '748' + 'numeric': '748', }, { 'name': 'Sweden', 'alpha2': 'SE', 'alpha3': 'SWE', - 'numeric': '752' + 'numeric': '752', }, { 'name': 'Switzerland', 'alpha2': 'CH', 'alpha3': 'CHE', - 'numeric': '756' + 'numeric': '756', }, { 'name': 'Syrian Arab Republic', @@ -1364,7 +1364,7 @@ export const countriesCodes = [ 'alpha3': 'SYR', 'numeric': '760', 'altName': 'Syrian Arab Republic (Syria)', - 'shortName': 'Syria' + 'shortName': 'Syria', }, { 'name': 'Taiwan (Province of China)', @@ -1372,121 +1372,121 @@ export const countriesCodes = [ 'alpha3': 'TWN', 'numeric': '158', 'altName': 'Taiwan, Republic of China', - 'shortName': 'Taiwan' + 'shortName': 'Taiwan', }, { 'name': 'Tajikistan', 'alpha2': 'TJ', 'alpha3': 'TJK', - 'numeric': '762' + 'numeric': '762', }, { 'name': 'Tanzania, United Republic of', 'alpha2': 'TZ', 'alpha3': 'TZA', 'numeric': '834', - 'shortName': 'Tanzania' + 'shortName': 'Tanzania', }, { 'name': 'Thailand', 'alpha2': 'TH', 'alpha3': 'THA', - 'numeric': '764' + 'numeric': '764', }, { 'name': 'Timor-Leste', 'alpha2': 'TL', 'alpha3': 'TLS', 'numeric': '626', - 'shortName': 'East Timor' + 'shortName': 'East Timor', }, { 'name': 'Togo', 'alpha2': 'TG', 'alpha3': 'TGO', - 'numeric': '768' + 'numeric': '768', }, { 'name': 'Tokelau', 'alpha2': 'TK', 'alpha3': 'TKL', - 'numeric': '772' + 'numeric': '772', }, { 'name': 'Tonga', 'alpha2': 'TO', 'alpha3': 'TON', - 'numeric': '776' + 'numeric': '776', }, { 'name': 'Trinidad and Tobago', 'alpha2': 'TT', 'alpha3': 'TTO', - 'numeric': '780' + 'numeric': '780', }, { 'name': 'Tunisia', 'alpha2': 'TN', 'alpha3': 'TUN', - 'numeric': '788' + 'numeric': '788', }, { 'name': 'Turkey', 'alpha2': 'TR', 'alpha3': 'TUR', - 'numeric': '792' + 'numeric': '792', }, { 'name': 'Turkmenistan', 'alpha2': 'TM', 'alpha3': 'TKM', - 'numeric': '795' + 'numeric': '795', }, { 'name': 'Turks and Caicos Islands (the)', 'alpha2': 'TC', 'alpha3': 'TCA', 'numeric': '796', - 'altName': 'Turks and Caicos Islands' + 'altName': 'Turks and Caicos Islands', }, { 'name': 'Tuvalu', 'alpha2': 'TV', 'alpha3': 'TUV', - 'numeric': '798' + 'numeric': '798', }, { 'name': 'Uganda', 'alpha2': 'UG', 'alpha3': 'UGA', - 'numeric': '800' + 'numeric': '800', }, { 'name': 'Ukraine', 'alpha2': 'UA', 'alpha3': 'UKR', - 'numeric': '804' + 'numeric': '804', }, { 'name': 'United Arab Emirates (the)', 'alpha2': 'AE', 'alpha3': 'ARE', 'numeric': '784', - 'altName': 'United Arab Emirates' + 'altName': 'United Arab Emirates', }, { 'name': 'United Kingdom of Great Britain and Northern Ireland (the)', 'alpha2': 'GB', 'alpha3': 'GBR', 'numeric': '826', - 'altName': 'United Kingdom' + 'altName': 'United Kingdom', }, { 'name': 'United States Minor Outlying Islands (the)', 'alpha2': 'UM', 'alpha3': 'UMI', 'numeric': '581', - 'altName': 'US Minor Outlying Islands' + 'altName': 'US Minor Outlying Islands', }, { 'name': 'United States of America (the)', @@ -1494,25 +1494,25 @@ export const countriesCodes = [ 'alpha3': 'USA', 'numeric': '840', 'altName': 'United States of America', - 'shortName': 'United States' + 'shortName': 'United States', }, { 'name': 'Uruguay', 'alpha2': 'UY', 'alpha3': 'URY', - 'numeric': '858' + 'numeric': '858', }, { 'name': 'Uzbekistan', 'alpha2': 'UZ', 'alpha3': 'UZB', - 'numeric': '860' + 'numeric': '860', }, { 'name': 'Vanuatu', 'alpha2': 'VU', 'alpha3': 'VUT', - 'numeric': '548' + 'numeric': '548', }, { 'name': 'Venezuela (Bolivarian Republic of)', @@ -1520,21 +1520,21 @@ export const countriesCodes = [ 'alpha3': 'VEN', 'numeric': '862', 'altName': 'Venezuela (Bolivarian Republic)', - 'shortName': 'Venezuela' + 'shortName': 'Venezuela', }, { 'name': 'Viet Nam', 'alpha2': 'VN', 'alpha3': 'VNM', 'numeric': '704', - 'shortName': 'Vietnam' + 'shortName': 'Vietnam', }, { 'name': 'Virgin Islands (British)', 'alpha2': 'VG', 'alpha3': 'VGB', 'numeric': '092', - 'altName': 'British Virgin Islands' + 'altName': 'British Virgin Islands', }, { 'name': 'Virgin Islands (U.S.)', @@ -1542,38 +1542,38 @@ export const countriesCodes = [ 'alpha3': 'VIR', 'numeric': '850', 'altName': 'Virgin Islands, US', - 'shortName': 'U.S. Virgin Islands' + 'shortName': 'U.S. Virgin Islands', }, { 'name': 'Wallis and Futuna', 'alpha2': 'WF', 'alpha3': 'WLF', 'numeric': '876', - 'altName': 'Wallis and Futuna Islands' + 'altName': 'Wallis and Futuna Islands', }, { 'name': 'Western Sahara*', 'alpha2': 'EH', 'alpha3': 'ESH', 'numeric': '732', - 'altName': 'Western Sahara' + 'altName': 'Western Sahara', }, { 'name': 'Yemen', 'alpha2': 'YE', 'alpha3': 'YEM', - 'numeric': '887' + 'numeric': '887', }, { 'name': 'Zambia', 'alpha2': 'ZM', 'alpha3': 'ZMB', - 'numeric': '894' + 'numeric': '894', }, { 'name': 'Zimbabwe', 'alpha2': 'ZW', 'alpha3': 'ZWE', - 'numeric': '716' - } + 'numeric': '716', + }, ]; diff --git a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts index 1b3466d07..ff85b5fd5 100644 --- a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts @@ -165,7 +165,7 @@ export const customerFields = [ default: '', description: 'URL of the customer’s photo', }, - ] + ], }, { displayName: 'Address', @@ -701,7 +701,7 @@ export const customerFields = [ alwaysOpenEditWindow: true, }, default: '', - description: 'Advanced search Examples' + description: 'Advanced search Examples', }, ], }, diff --git a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts index e785fff68..886cfa2b2 100644 --- a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts +++ b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts @@ -22,7 +22,7 @@ export async function helpscoutApiRequest(this: IExecuteFunctions | IExecuteSing body, qs, uri: uri || `https://api.helpscout.net${resource}`, - json: true + json: true, }; try { if (Object.keys(option).length !== 0) { diff --git a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts index eb2039745..6a1665698 100644 --- a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts @@ -69,23 +69,23 @@ export const threadFields = [ options: [ { name: 'Chat', - value: 'chat' + value: 'chat', }, { name: 'Customer', - value: 'customer' + value: 'customer', }, { name: 'Note', - value: 'note' + value: 'note', }, { name: 'Phone', - value: 'phone' + value: 'phone', }, { name: 'Reply', - value: 'reply' + value: 'reply', }, ], default: '', @@ -167,7 +167,7 @@ export const threadFields = [ default: false, description: 'When imported is set to true, no outgoing emails or notifications will be generated.', }, - ] + ], }, { displayName: 'Attachments', diff --git a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts index cae98d913..4b70c5838 100644 --- a/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts +++ b/packages/nodes-base/nodes/HtmlExtract/HtmlExtract.node.ts @@ -206,8 +206,8 @@ export class HtmlExtract implements INodeType { description: 'Removes automatically all spaces and newlines from
the beginning and end of the values.', }, ], - } - ] + }, + ], }; diff --git a/packages/nodes-base/nodes/HttpRequest.node.ts b/packages/nodes-base/nodes/HttpRequest.node.ts index 5cc7dadf7..4078d8092 100644 --- a/packages/nodes-base/nodes/HttpRequest.node.ts +++ b/packages/nodes-base/nodes/HttpRequest.node.ts @@ -102,27 +102,27 @@ export class HttpRequest implements INodeType { options: [ { name: 'Basic Auth', - value: 'basicAuth' + value: 'basicAuth', }, { name: 'Digest Auth', - value: 'digestAuth' + value: 'digestAuth', }, { name: 'Header Auth', - value: 'headerAuth' + value: 'headerAuth', }, { name: 'OAuth1', - value: 'oAuth1' + value: 'oAuth1', }, { name: 'OAuth2', - value: 'oAuth2' + value: 'oAuth2', }, { name: 'None', - value: 'none' + value: 'none', }, ], default: 'none', @@ -135,27 +135,27 @@ export class HttpRequest implements INodeType { options: [ { name: 'DELETE', - value: 'DELETE' + value: 'DELETE', }, { name: 'GET', - value: 'GET' + value: 'GET', }, { name: 'HEAD', - value: 'HEAD' + value: 'HEAD', }, { name: 'PATCH', - value: 'PATCH' + value: 'PATCH', }, { name: 'POST', - value: 'POST' + value: 'POST', }, { name: 'PUT', - value: 'PUT' + value: 'PUT', }, ], default: 'GET', @@ -184,15 +184,15 @@ export class HttpRequest implements INodeType { options: [ { name: 'File', - value: 'file' + value: 'file', }, { name: 'JSON', - value: 'json' + value: 'json', }, { name: 'String', - value: 'string' + value: 'string', }, ], default: 'json', @@ -260,19 +260,19 @@ export class HttpRequest implements INodeType { options: [ { name: 'JSON', - value: 'json' + value: 'json', }, { name: 'RAW/Custom', - value: 'raw' + value: 'raw', }, { name: 'Form-Data Multipart', - value: 'multipart-form-data' + value: 'multipart-form-data', }, { name: 'Form Urlencoded', - value: 'form-urlencoded' + value: 'form-urlencoded', }, ], default: 'json', @@ -455,7 +455,7 @@ export class HttpRequest implements INodeType { default: '', description: 'Value of the parameter.', }, - ] + ], }, ], }, @@ -511,7 +511,7 @@ export class HttpRequest implements INodeType { default: '', description: 'Value to set for the header.', }, - ] + ], }, ], }, @@ -567,11 +567,11 @@ export class HttpRequest implements INodeType { default: '', description: 'Value of the parameter.', }, - ] + ], }, ], }, - ] + ], }; diff --git a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts index 2ab124d21..e319a0e38 100644 --- a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts @@ -138,7 +138,7 @@ export const companyFields = [ name: 'companyDomainName', type: 'string', default: '', - description: 'The domain name of the company or organization' + description: 'The domain name of the company or organization', }, { displayName: 'Company Owner', @@ -155,7 +155,7 @@ export const companyFields = [ name: 'countryRegion', type: 'string', default: '', - description: 'The country/region in which the company or organization is located.' + description: 'The country/region in which the company or organization is located.', }, { displayName: 'Description', @@ -186,7 +186,7 @@ export const companyFields = [ name: 'industry', type: 'options', typeOptions: { - loadOptionsMethod: 'getCompanyIndustries' + loadOptionsMethod: 'getCompanyIndustries', }, default: '', description: 'The type of business the company performs.', @@ -357,7 +357,7 @@ export const companyFields = [ name: 'webTechnologies', type: 'options', typeOptions: { - loadOptionsMethod: 'getCompanyWebTechnologies' + loadOptionsMethod: 'getCompanyWebTechnologies', }, default: '', description: 'The web technologies used by the company or organization. Powered by HubSpot Insights.', @@ -376,7 +376,7 @@ export const companyFields = [ default: '', description: 'The year the company was created. Powered by HubSpot Insights.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* company:update */ @@ -454,7 +454,7 @@ export const companyFields = [ name: 'companyDomainName', type: 'string', default: '', - description: 'The domain name of the company or organization' + description: 'The domain name of the company or organization', }, { displayName: 'Company Owmer', @@ -471,7 +471,7 @@ export const companyFields = [ name: 'countryRegion', type: 'string', default: '', - description: 'The country/region in which the company or organization is located.' + description: 'The country/region in which the company or organization is located.', }, { displayName: 'Description', @@ -502,7 +502,7 @@ export const companyFields = [ name: 'industry', type: 'options', typeOptions: { - loadOptionsMethod: 'getCompanyIndustries' + loadOptionsMethod: 'getCompanyIndustries', }, default: '', description: 'The type of business the company performs.', @@ -679,7 +679,7 @@ export const companyFields = [ name: 'webTechnologies', type: 'options', typeOptions: { - loadOptionsMethod: 'getCompanyWebTechnologies' + loadOptionsMethod: 'getCompanyWebTechnologies', }, default: '', description: 'The web technologies used by the company or organization. Powered by HubSpot Insights.', @@ -698,7 +698,7 @@ export const companyFields = [ default: '', description: 'The year the company was created. Powered by HubSpot Insights.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* company:get */ @@ -745,7 +745,7 @@ export const companyFields = [ default: false, description: `Returns any merge history if the company has been previously merged with another company record. Defaults to false.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* company:getAll */ @@ -836,7 +836,7 @@ export const companyFields = [ description: `Works similarly to properties=, but this parameter will include the history for the specified property,
instead of just including the current value. Use this parameter when you need the full history of changes to a property's value.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* company:delete */ @@ -937,7 +937,7 @@ export const companyFields = [ description: `By default, you will only get data for the most recent version of a property in the "versions" data.
If you include this parameter, you will get data for all previous versions.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* company:searchByDomain */ @@ -1030,6 +1030,6 @@ export const companyFields = [ Including this parameter will include the data for the specified property in the results.
You can include this parameter multiple times to request multiple properties separed by ,.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts index 29be29c39..1191cca13 100644 --- a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts @@ -124,7 +124,7 @@ export const contactFields = [ loadOptionsMethod:'getCompanies' , }, default: '', - description: 'Companies associated with the ticket' + description: 'Companies associated with the ticket', }, { displayName: 'City', @@ -316,7 +316,7 @@ export const contactFields = [ name: 'lifeCycleStage', type: 'options', typeOptions: { - loadOptionsMethod: 'getContactLifeCycleStages' + loadOptionsMethod: 'getContactLifeCycleStages', }, default: '', description: `The qualification of contacts to sales readiness. It can be set through imports, forms, workflows, and manually on a per contact basis.`, @@ -380,7 +380,7 @@ export const contactFields = [ name: 'phoneNumber', type: 'string', default: '', - description: `A contact's primary phone number` + description: `A contact's primary phone number`, }, { displayName: 'Properties', @@ -407,7 +407,7 @@ export const contactFields = [ name: 'postalCode', type: 'string', default: '', - description: `The contact's zip code. This might be set via import, form, or integration.` + description: `The contact's zip code. This might be set via import, form, or integration.`, }, { displayName: 'Preffered Language', @@ -417,49 +417,49 @@ export const contactFields = [ loadOptionsMethod: 'getContactPrefferedLanguages', }, default: '', - description: `Set your contact's preferred language for communications. This property can be changed from an import, form, or integration.` + description: `Set your contact's preferred language for communications. This property can be changed from an import, form, or integration.`, }, { displayName: 'Relationship Status', name: 'relationshipStatus', type: 'string', default: '', - description: `A contact's relationship status. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool` + description: `A contact's relationship status. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool`, }, { displayName: 'Salutation', name: 'salutation', type: 'string', default: '', - description: `The title used to address a contact` + description: `The title used to address a contact`, }, { displayName: 'School', name: 'school', type: 'string', default: '', - description: `A contact's school. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool` + description: `A contact's school. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool`, }, { displayName: 'Seniority', name: 'seniority', type: 'string', default: '', - description: `A contact's seniority. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool` + description: `A contact's seniority. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool`, }, { displayName: 'Start Date', name: 'startDate', type: 'dateTime', default: '', - description: `A contact's start date. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool` + description: `A contact's start date. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool`, }, { displayName: 'State/Region', name: 'stateRegion', type: 'string', default: '', - description: `The contact's state of residence. This might be set via import, form, or integration.` + description: `The contact's state of residence. This might be set via import, form, or integration.`, }, { displayName: 'Status', @@ -469,35 +469,35 @@ export const contactFields = [ loadOptionsMethod: 'getContactStatuses', }, default: '', - description: `The status of the contact's content membership.` + description: `The status of the contact's content membership.`, }, { displayName: 'Street Address', name: 'streetAddress', type: 'string', default: '', - description: `A contact's street address, including apartment or unit #` + description: `A contact's street address, including apartment or unit #`, }, { displayName: 'Twitter Username', name: 'twitterUsername', type: 'string', default: '', - description: `The contact's Twitter handle. This is set by HubSpot using the contact's email address.` + description: `The contact's Twitter handle. This is set by HubSpot using the contact's email address.`, }, { displayName: 'Website URL', name: 'websiteUrl', type: 'string', default: '', - description: `The contact's company website` + description: `The contact's company website`, }, { displayName: 'Work Email', name: 'workEmail', type: 'string', default: '', - description: `A contact's work email. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool` + description: `A contact's work email. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool`, }, ], }, @@ -1031,17 +1031,17 @@ export const contactFields = [ default: '', }, ], - } + }, ], description: 'Use filters to limit the results to only CRM objects with matching property values. More info here', }, ], - } + }, ], description: `When multiple filters are provided within a filterGroup, they will be combined using a logical AND operator.
When multiple filterGroups are provided, they will be combined using a logical OR operator.
The system supports a maximum of three filterGroups with up to three filters each.
- More info here` + More info here`, }, { displayName: 'Additional Fields', diff --git a/packages/nodes-base/nodes/Hubspot/DealDescription.ts b/packages/nodes-base/nodes/Hubspot/DealDescription.ts index fac19b248..837c37a23 100644 --- a/packages/nodes-base/nodes/Hubspot/DealDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/DealDescription.ts @@ -67,7 +67,7 @@ export const dealFields = [ type: 'options', required: true, typeOptions: { - loadOptionsMethod: 'getDealStages' + loadOptionsMethod: 'getDealStages', }, displayOptions: { show: { @@ -151,7 +151,7 @@ export const dealFields = [ }, default: [], }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* deal:update */ @@ -203,7 +203,7 @@ export const dealFields = [ type: 'options', required: true, typeOptions: { - loadOptionsMethod: 'getDealStages' + loadOptionsMethod: 'getDealStages', }, default: '', description: 'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages.', @@ -235,7 +235,7 @@ export const dealFields = [ }, default: '', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* deal:get */ @@ -283,7 +283,7 @@ export const dealFields = [ description: `By default, you will only get data for the most recent version of a property in the "versions" data.
If you include this parameter, you will get data for all previous versions.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* deal:getAll */ @@ -372,7 +372,7 @@ export const dealFields = [ description: `Works similarly to properties=, but this parameter will include the history for the specified property,
instead of just including the current value. Use this parameter when you need the full history of changes to a property's value.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* deal:delete */ @@ -474,6 +474,6 @@ export const dealFields = [ description: `By default, you will only get data for the most recent version of a property in the "versions" data.
If you include this parameter, you will get data for all previous versions.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts index a63809bed..aaae8c589 100644 --- a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts +++ b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts @@ -1762,7 +1762,7 @@ export class Hubspot implements INodeType { if (stage) { body.properties.push({ name: 'dealstage', - value: stage + value: stage, }); } if (additionalFields.associatedCompany) { @@ -1774,31 +1774,31 @@ export class Hubspot implements INodeType { if (additionalFields.dealName) { body.properties.push({ name: 'dealname', - value: additionalFields.dealName as string + value: additionalFields.dealName as string, }); } if (additionalFields.closeDate) { body.properties.push({ name: 'closedate', - value: new Date(additionalFields.closeDate as string).getTime() + value: new Date(additionalFields.closeDate as string).getTime(), }); } if (additionalFields.amount) { body.properties.push({ name: 'amount', - value: additionalFields.amount as string + value: additionalFields.amount as string, }); } if (additionalFields.dealType) { body.properties.push({ name: 'dealtype', - value: additionalFields.dealType as string + value: additionalFields.dealType as string, }); } if (additionalFields.pipeline) { body.properties.push({ name: 'pipeline', - value: additionalFields.pipeline as string + value: additionalFields.pipeline as string, }); } body.associations = association; @@ -1819,31 +1819,31 @@ export class Hubspot implements INodeType { if (updateFields.dealName) { body.properties.push({ name: 'dealname', - value: updateFields.dealName as string + value: updateFields.dealName as string, }); } if (updateFields.closeDate) { body.properties.push({ name: 'closedate', - value: new Date(updateFields.closeDate as string).getTime() + value: new Date(updateFields.closeDate as string).getTime(), }); } if (updateFields.amount) { body.properties.push({ name: 'amount', - value: updateFields.amount as string + value: updateFields.amount as string, }); } if (updateFields.dealType) { body.properties.push({ name: 'dealtype', - value: updateFields.dealType as string + value: updateFields.dealType as string, }); } if (updateFields.pipeline) { body.properties.push({ name: 'pipeline', - value: updateFields.pipeline as string + value: updateFields.pipeline as string, }); } const endpoint = `/deals/v1/deal/${dealId}`; @@ -1987,7 +1987,7 @@ export class Hubspot implements INodeType { if (additionalFields.category) { body.push({ name: 'hs_ticket_category', - value: additionalFields.category as string + value: additionalFields.category as string, }); } if (additionalFields.closeDate) { @@ -2005,31 +2005,31 @@ export class Hubspot implements INodeType { if (additionalFields.description) { body.push({ name: 'content', - value: additionalFields.description as string + value: additionalFields.description as string, }); } if (additionalFields.priority) { body.push({ name: 'hs_ticket_priority', - value: additionalFields.priority as string + value: additionalFields.priority as string, }); } if (additionalFields.resolution) { body.push({ name: 'hs_resolution', - value: additionalFields.resolution as string + value: additionalFields.resolution as string, }); } if (additionalFields.source) { body.push({ name: 'source_type', - value: additionalFields.source as string + value: additionalFields.source as string, }); } if (additionalFields.ticketOwnerId) { body.push({ name: 'hubspot_owner_id', - value: additionalFields.ticketOwnerId as string + value: additionalFields.ticketOwnerId as string, }); } const endpoint = '/crm-objects/v1/objects/tickets'; @@ -2123,7 +2123,7 @@ export class Hubspot implements INodeType { if (updateFields.category) { body.push({ name: 'hs_ticket_category', - value: updateFields.category as string + value: updateFields.category as string, }); } if (updateFields.closeDate) { @@ -2141,31 +2141,31 @@ export class Hubspot implements INodeType { if (updateFields.description) { body.push({ name: 'content', - value: updateFields.description as string + value: updateFields.description as string, }); } if (updateFields.priority) { body.push({ name: 'hs_ticket_priority', - value: updateFields.priority as string + value: updateFields.priority as string, }); } if (updateFields.resolution) { body.push({ name: 'hs_resolution', - value: updateFields.resolution as string + value: updateFields.resolution as string, }); } if (updateFields.source) { body.push({ name: 'source_type', - value: updateFields.source as string + value: updateFields.source as string, }); } if (updateFields.ticketOwnerId) { body.push({ name: 'hubspot_owner_id', - value: updateFields.ticketOwnerId as string + value: updateFields.ticketOwnerId as string, }); } const endpoint = `/crm-objects/v1/objects/tickets/${ticketId}`; diff --git a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts index f810f2f03..adf6236b5 100644 --- a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts @@ -57,7 +57,7 @@ export const ticketFields = [ type: 'options', required: true, typeOptions: { - loadOptionsMethod: 'getTicketPipelines' + loadOptionsMethod: 'getTicketPipelines', }, displayOptions: { show: { @@ -139,7 +139,7 @@ export const ticketFields = [ loadOptionsMethod:'getCompanies' , }, default: [], - description: 'Companies associated with the ticket' + description: 'Companies associated with the ticket', }, { displayName: 'Contact Ids', @@ -149,7 +149,7 @@ export const ticketFields = [ loadOptionsMethod:'getContacts' , }, default: [], - description: 'Contacts associated with the ticket' + description: 'Contacts associated with the ticket', }, { displayName: 'Category', @@ -274,7 +274,7 @@ export const ticketFields = [ loadOptionsMethod:'getCompanies' , }, default: [], - description: 'Companies associated with the ticket' + description: 'Companies associated with the ticket', }, { displayName: 'Contact Ids', @@ -284,7 +284,7 @@ export const ticketFields = [ loadOptionsMethod:'getContacts' , }, default: [], - description: 'Contact associated with the ticket' + description: 'Contact associated with the ticket', }, { displayName: 'Category', @@ -325,7 +325,7 @@ export const ticketFields = [ name: 'pipelineId', type: 'options', typeOptions: { - loadOptionsMethod: 'getTicketPipelines' + loadOptionsMethod: 'getTicketPipelines', }, default: '', description: 'The ID of the pipeline the ticket is in. ', diff --git a/packages/nodes-base/nodes/Hunter/GenericFunctions.ts b/packages/nodes-base/nodes/Hunter/GenericFunctions.ts index e566db93e..0cceacd77 100644 --- a/packages/nodes-base/nodes/Hunter/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Hunter/GenericFunctions.ts @@ -18,7 +18,7 @@ export async function hunterApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.hunter.io/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Hunter/Hunter.node.ts b/packages/nodes-base/nodes/Hunter/Hunter.node.ts index ef3d9a9e2..c3f6d147d 100644 --- a/packages/nodes-base/nodes/Hunter/Hunter.node.ts +++ b/packages/nodes-base/nodes/Hunter/Hunter.node.ts @@ -31,7 +31,7 @@ export class Hunter implements INodeType { { name: 'hunterApi', required: true, - } + }, ], properties: [ { @@ -150,7 +150,7 @@ export class Hunter implements INodeType { name: 'Generic', value: 'generic', }, - ] + ], }, { displayName: 'Seniority', @@ -170,7 +170,7 @@ export class Hunter implements INodeType { name: 'Executive', value: 'executive', }, - ] + ], }, { displayName: 'Department', @@ -218,7 +218,7 @@ export class Hunter implements INodeType { name: 'Communication', value: 'communication', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/If.node.ts b/packages/nodes-base/nodes/If.node.ts index 9b649050b..70bac4fb5 100644 --- a/packages/nodes-base/nodes/If.node.ts +++ b/packages/nodes-base/nodes/If.node.ts @@ -53,11 +53,11 @@ export class If implements INodeType { options: [ { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, ], default: 'equal', @@ -90,27 +90,27 @@ export class If implements INodeType { options: [ { name: 'Smaller', - value: 'smaller' + value: 'smaller', }, { name: 'Smaller Equal', - value: 'smallerEqual' + value: 'smallerEqual', }, { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, { name: 'Larger', - value: 'larger' + value: 'larger', }, { name: 'Larger Equal', - value: 'largerEqual' + value: 'largerEqual', }, ], default: 'smaller', @@ -143,23 +143,23 @@ export class If implements INodeType { options: [ { name: 'Contains', - value: 'contains' + value: 'contains', }, { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Contains', - value: 'notContains' + value: 'notContains', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, { name: 'Regex', - value: 'regex' + value: 'regex', }, ], default: 'equal', @@ -206,12 +206,12 @@ export class If implements INodeType { { name: 'ALL', description: 'Only if all conditions are meet it goes into "true" branch.', - value: 'all' + value: 'all', }, { name: 'ANY', description: 'If any of the conditions is meet it goes into "true" branch.', - value: 'any' + value: 'any', }, ], default: 'all', diff --git a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts index df8239719..f2b0a00d8 100644 --- a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts @@ -173,7 +173,7 @@ export const companyFields = [ default: '', description: 'Tag representing the Lead', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -335,7 +335,7 @@ export const companyFields = [ default: '', description: `The URL for this company's website. Please note that the value
specified here is not validated. Accepts any string.`, }, - ] + ], }, { displayName: 'Custom Attributes', @@ -404,7 +404,7 @@ export const companyFields = [ default: '', }, ], - } + }, ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, diff --git a/packages/nodes-base/nodes/Intercom/GenericFunctions.ts b/packages/nodes-base/nodes/Intercom/GenericFunctions.ts index 68bed5d7b..94a2f50f8 100644 --- a/packages/nodes-base/nodes/Intercom/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Intercom/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function intercomApiRequest(this: IHookFunctions | IExecuteFunction qs: query, uri: uri || `https://api.intercom.io${endpoint}`, body, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Intercom/Intercom.node.ts b/packages/nodes-base/nodes/Intercom/Intercom.node.ts index c98cc027d..181b37d96 100644 --- a/packages/nodes-base/nodes/Intercom/Intercom.node.ts +++ b/packages/nodes-base/nodes/Intercom/Intercom.node.ts @@ -56,7 +56,7 @@ export class Intercom implements INodeType { { name: 'intercomApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Intercom/LeadDescription.ts b/packages/nodes-base/nodes/Intercom/LeadDescription.ts index e7414ac8b..df0d88ba4 100644 --- a/packages/nodes-base/nodes/Intercom/LeadDescription.ts +++ b/packages/nodes-base/nodes/Intercom/LeadDescription.ts @@ -37,7 +37,7 @@ export const leadOpeations = [ name: 'Delete', value: 'delete', description: 'Delete a lead', - } + }, ], default: 'create', description: 'The operation to perform.', @@ -235,7 +235,7 @@ export const leadFields = [ default: '', description: 'The phone number of the lead', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -445,7 +445,7 @@ export const leadFields = [ default: '', description: 'Identifies what specifically was clicked to bring the user to the site', }, - ] + ], }, { displayName: 'Custom Attributes', @@ -514,7 +514,7 @@ export const leadFields = [ default: '', }, ], - } + }, ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, diff --git a/packages/nodes-base/nodes/Intercom/UserDescription.ts b/packages/nodes-base/nodes/Intercom/UserDescription.ts index b54952b5f..91de3a488 100644 --- a/packages/nodes-base/nodes/Intercom/UserDescription.ts +++ b/packages/nodes-base/nodes/Intercom/UserDescription.ts @@ -37,7 +37,7 @@ export const userOpeations = [ name: 'Delete', value: 'delete', description: 'Delete a user', - } + }, ], default: 'create', description: 'The operation to perform.', @@ -339,7 +339,7 @@ export const userFields = [ 'update', ], resource: [ - 'user' + 'user', ], }, }, @@ -357,7 +357,7 @@ export const userFields = [ 'update', ], resource: [ - 'user' + 'user', ], }, }, @@ -371,13 +371,13 @@ export const userFields = [ 'update', ], '/resource': [ - 'user' + 'user', ], }, hide: { '/updateBy': [ 'email', - ] + ], }, }, type: 'string', @@ -393,14 +393,14 @@ export const userFields = [ 'update', ], '/resource': [ - 'user' + 'user', ], }, hide: { '/updateBy': [ 'email', 'userId', - ] + ], }, }, type: 'string', @@ -498,7 +498,7 @@ export const userFields = [ default: '', description: 'Identifies what specifically was clicked to bring the user to the site', }, - ] + ], }, { displayName: 'Custom Attributes', @@ -567,7 +567,7 @@ export const userFields = [ default: '', }, ], - } + }, ], description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.', }, diff --git a/packages/nodes-base/nodes/Interval.node.ts b/packages/nodes-base/nodes/Interval.node.ts index 328833f3f..9abe96879 100644 --- a/packages/nodes-base/nodes/Interval.node.ts +++ b/packages/nodes-base/nodes/Interval.node.ts @@ -38,21 +38,21 @@ export class Interval implements INodeType { options: [ { name: 'Seconds', - value: 'seconds' + value: 'seconds', }, { name: 'Minutes', - value: 'minutes' + value: 'minutes', }, { name: 'Hours', - value: 'hours' + value: 'hours', }, ], default: 'seconds', description: 'Unit of the interval value.', }, - ] + ], }; diff --git a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts index 4a9a467d8..d5325575d 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts @@ -99,7 +99,7 @@ export const clientFields = [ type: 'string', default: '', }, - ] + ], }, { displayName: 'Billing Address', diff --git a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts index 3bf3f6977..11ad90d08 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts @@ -315,7 +315,7 @@ export const expenseFields = [ }, default: '', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* expense:delete */ diff --git a/packages/nodes-base/nodes/InvoiceNinja/GenericFunctions.ts b/packages/nodes-base/nodes/InvoiceNinja/GenericFunctions.ts index 9d690807c..dc9fabeb0 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/GenericFunctions.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/GenericFunctions.ts @@ -29,7 +29,7 @@ export async function invoiceNinjaApiRequest(this: IHookFunctions | IExecuteFunc qs: query, uri: uri || `${baseUrl}/api/v1${endpoint}`, body, - json: true + json: true, }; try { return await this.helpers.request!(options); diff --git a/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts b/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts index 22122653e..19eb79621 100644 --- a/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts +++ b/packages/nodes-base/nodes/InvoiceNinja/ISOCountryCodes.ts @@ -5,291 +5,291 @@ export const countryCodes = [ "name": "Afghanistan", "alpha2": "AF", "alpha3": "AFG", - "numeric": "004" + "numeric": "004", }, { "name": "Åland Islands", "alpha2": "AX", "alpha3": "ALA", "numeric": "248", - "altName": "Aland Islands" + "altName": "Aland Islands", }, { "name": "Albania", "alpha2": "AL", "alpha3": "ALB", - "numeric": "008" + "numeric": "008", }, { "name": "Algeria", "alpha2": "DZ", "alpha3": "DZA", - "numeric": "012" + "numeric": "012", }, { "name": "American Samoa", "alpha2": "AS", "alpha3": "ASM", - "numeric": "016" + "numeric": "016", }, { "name": "Andorra", "alpha2": "AD", "alpha3": "AND", - "numeric": "020" + "numeric": "020", }, { "name": "Angola", "alpha2": "AO", "alpha3": "AGO", - "numeric": "024" + "numeric": "024", }, { "name": "Anguilla", "alpha2": "AI", "alpha3": "AIA", - "numeric": "660" + "numeric": "660", }, { "name": "Antarctica", "alpha2": "AQ", "alpha3": "ATA", - "numeric": "010" + "numeric": "010", }, { "name": "Antigua and Barbuda", "alpha2": "AG", "alpha3": "ATG", - "numeric": "028" + "numeric": "028", }, { "name": "Argentina", "alpha2": "AR", "alpha3": "ARG", - "numeric": "032" + "numeric": "032", }, { "name": "Armenia", "alpha2": "AM", "alpha3": "ARM", - "numeric": "051" + "numeric": "051", }, { "name": "Aruba", "alpha2": "AW", "alpha3": "ABW", - "numeric": "533" + "numeric": "533", }, { "name": "Australia", "alpha2": "AU", "alpha3": "AUS", - "numeric": "036" + "numeric": "036", }, { "name": "Austria", "alpha2": "AT", "alpha3": "AUT", - "numeric": "040" + "numeric": "040", }, { "name": "Azerbaijan", "alpha2": "AZ", "alpha3": "AZE", - "numeric": "031" + "numeric": "031", }, { "name": "Bahamas (the)", "alpha2": "BS", "alpha3": "BHS", "numeric": "044", - "altName": "Bahamas" + "altName": "Bahamas", }, { "name": "Bahrain", "alpha2": "BH", "alpha3": "BHR", - "numeric": "048" + "numeric": "048", }, { "name": "Bangladesh", "alpha2": "BD", "alpha3": "BGD", - "numeric": "050" + "numeric": "050", }, { "name": "Barbados", "alpha2": "BB", "alpha3": "BRB", - "numeric": "052" + "numeric": "052", }, { "name": "Belarus", "alpha2": "BY", "alpha3": "BLR", - "numeric": "112" + "numeric": "112", }, { "name": "Belgium", "alpha2": "BE", "alpha3": "BEL", - "numeric": "056" + "numeric": "056", }, { "name": "Belize", "alpha2": "BZ", "alpha3": "BLZ", - "numeric": "084" + "numeric": "084", }, { "name": "Benin", "alpha2": "BJ", "alpha3": "BEN", - "numeric": "204" + "numeric": "204", }, { "name": "Bermuda", "alpha2": "BM", "alpha3": "BMU", - "numeric": "060" + "numeric": "060", }, { "name": "Bhutan", "alpha2": "BT", "alpha3": "BTN", - "numeric": "064" + "numeric": "064", }, { "name": "Bolivia (Plurinational State of)", "alpha2": "BO", "alpha3": "BOL", "numeric": "068", - "altName": "Bolivia" + "altName": "Bolivia", }, { "name": "Bonaire, Sint Eustatius and Saba", "alpha2": "BQ", "alpha3": "BES", - "numeric": "535" + "numeric": "535", }, { "name": "Bosnia and Herzegovina", "alpha2": "BA", "alpha3": "BIH", - "numeric": "070" + "numeric": "070", }, { "name": "Botswana", "alpha2": "BW", "alpha3": "BWA", - "numeric": "072" + "numeric": "072", }, { "name": "Bouvet Island", "alpha2": "BV", "alpha3": "BVT", - "numeric": "074" + "numeric": "074", }, { "name": "Brazil", "alpha2": "BR", "alpha3": "BRA", - "numeric": "076" + "numeric": "076", }, { "name": "British Indian Ocean Territory (the)", "alpha2": "IO", "alpha3": "IOT", "numeric": "086", - "altName": "British Indian Ocean Territory" + "altName": "British Indian Ocean Territory", }, { "name": "Brunei Darussalam", "alpha2": "BN", "alpha3": "BRN", "numeric": "096", - "shortName": "Brunei" + "shortName": "Brunei", }, { "name": "Bulgaria", "alpha2": "BG", "alpha3": "BGR", - "numeric": "100" + "numeric": "100", }, { "name": "Burkina Faso", "alpha2": "BF", "alpha3": "BFA", - "numeric": "854" + "numeric": "854", }, { "name": "Burundi", "alpha2": "BI", "alpha3": "BDI", - "numeric": "108" + "numeric": "108", }, { "name": "Cabo Verde", "alpha2": "CV", "alpha3": "CPV", "numeric": "132", - "altName": "Cape Verde" + "altName": "Cape Verde", }, { "name": "Cambodia", "alpha2": "KH", "alpha3": "KHM", - "numeric": "116" + "numeric": "116", }, { "name": "Cameroon", "alpha2": "CM", "alpha3": "CMR", - "numeric": "120" + "numeric": "120", }, { "name": "Canada", "alpha2": "CA", "alpha3": "CAN", - "numeric": "124" + "numeric": "124", }, { "name": "Cayman Islands (the)", "alpha2": "KY", "alpha3": "CYM", "numeric": "136", - "altName": "Cayman Islands" + "altName": "Cayman Islands", }, { "name": "Central African Republic (the)", "alpha2": "CF", "alpha3": "CAF", "numeric": "140", - "altName": "Central African Republic" + "altName": "Central African Republic", }, { "name": "Chad", "alpha2": "TD", "alpha3": "TCD", - "numeric": "148" + "numeric": "148", }, { "name": "Chile", "alpha2": "CL", "alpha3": "CHL", - "numeric": "152" + "numeric": "152", }, { "name": "China", "alpha2": "CN", "alpha3": "CHN", - "numeric": "156" + "numeric": "156", }, { "name": "Christmas Island", "alpha2": "CX", "alpha3": "CXR", - "numeric": "162" + "numeric": "162", }, { "name": "Cocos (Keeling) Islands (the)", @@ -297,20 +297,20 @@ export const countryCodes = [ "alpha3": "CCK", "numeric": "166", "altName": "Cocos (Keeling) Islands", - "shortName": "Cocos Islands" + "shortName": "Cocos Islands", }, { "name": "Colombia", "alpha2": "CO", "alpha3": "COL", - "numeric": "170" + "numeric": "170", }, { "name": "Comoros (the)", "alpha2": "KM", "alpha3": "COM", "numeric": "174", - "altName": "Comoros" + "altName": "Comoros", }, { "name": "Congo (the Democratic Republic of the)", @@ -318,7 +318,7 @@ export const countryCodes = [ "alpha3": "COD", "numeric": "180", "altName": "Congo, (Kinshasa)", - "shortName": "Democratic Republic of the Congo" + "shortName": "Democratic Republic of the Congo", }, { "name": "Congo (the)", @@ -326,126 +326,126 @@ export const countryCodes = [ "alpha3": "COG", "numeric": "178", "altName": "Congo (Brazzaville)", - "shortName": "Republic of the Congo" + "shortName": "Republic of the Congo", }, { "name": "Cook Islands (the)", "alpha2": "CK", "alpha3": "COK", "numeric": "184", - "altName": "Cook Islands" + "altName": "Cook Islands", }, { "name": "Costa Rica", "alpha2": "CR", "alpha3": "CRI", - "numeric": "188" + "numeric": "188", }, { "name": "Côte d'Ivoire", "alpha2": "CI", "alpha3": "CIV", "numeric": "384", - "shortName": "Ivory Coast" + "shortName": "Ivory Coast", }, { "name": "Croatia", "alpha2": "HR", "alpha3": "HRV", - "numeric": "191" + "numeric": "191", }, { "name": "Cuba", "alpha2": "CU", "alpha3": "CUB", - "numeric": "192" + "numeric": "192", }, { "name": "Curaçao", "alpha2": "CW", "alpha3": "CUW", "numeric": "531", - "shortName": "Curacao" + "shortName": "Curacao", }, { "name": "Cyprus", "alpha2": "CY", "alpha3": "CYP", - "numeric": "196" + "numeric": "196", }, { "name": "Czechia", "alpha2": "CZ", "alpha3": "CZE", "numeric": "203", - "altName": "Czech Republic" + "altName": "Czech Republic", }, { "name": "Denmark", "alpha2": "DK", "alpha3": "DNK", - "numeric": "208" + "numeric": "208", }, { "name": "Djibouti", "alpha2": "DJ", "alpha3": "DJI", - "numeric": "262" + "numeric": "262", }, { "name": "Dominica", "alpha2": "DM", "alpha3": "DMA", - "numeric": "212" + "numeric": "212", }, { "name": "Dominican Republic (the)", "alpha2": "DO", "alpha3": "DOM", "numeric": "214", - "altName": "Dominican Republic" + "altName": "Dominican Republic", }, { "name": "Ecuador", "alpha2": "EC", "alpha3": "ECU", - "numeric": "218" + "numeric": "218", }, { "name": "Egypt", "alpha2": "EG", "alpha3": "EGY", - "numeric": "818" + "numeric": "818", }, { "name": "El Salvador", "alpha2": "SV", "alpha3": "SLV", - "numeric": "222" + "numeric": "222", }, { "name": "Equatorial Guinea", "alpha2": "GQ", "alpha3": "GNQ", - "numeric": "226" + "numeric": "226", }, { "name": "Eritrea", "alpha2": "ER", "alpha3": "ERI", - "numeric": "232" + "numeric": "232", }, { "name": "Estonia", "alpha2": "EE", "alpha3": "EST", - "numeric": "233" + "numeric": "233", }, { "name": "Ethiopia", "alpha2": "ET", "alpha3": "ETH", - "numeric": "231" + "numeric": "231", }, { "name": "Falkland Islands (the) [Malvinas]", @@ -453,161 +453,161 @@ export const countryCodes = [ "alpha3": "FLK", "numeric": "238", "altName": "Falkland Islands (Malvinas)", - "shortName": "Falkland Islands" + "shortName": "Falkland Islands", }, { "name": "Faroe Islands (the)", "alpha2": "FO", "alpha3": "FRO", "numeric": "234", - "altName": "Faroe Islands" + "altName": "Faroe Islands", }, { "name": "Fiji", "alpha2": "FJ", "alpha3": "FJI", - "numeric": "242" + "numeric": "242", }, { "name": "Finland", "alpha2": "FI", "alpha3": "FIN", - "numeric": "246" + "numeric": "246", }, { "name": "France", "alpha2": "FR", "alpha3": "FRA", - "numeric": "250" + "numeric": "250", }, { "name": "French Guiana", "alpha2": "GF", "alpha3": "GUF", - "numeric": "254" + "numeric": "254", }, { "name": "French Polynesia", "alpha2": "PF", "alpha3": "PYF", - "numeric": "258" + "numeric": "258", }, { "name": "French Southern Territories (the)", "alpha2": "TF", "alpha3": "ATF", "numeric": "260", - "altName": "French Southern Territories" + "altName": "French Southern Territories", }, { "name": "Gabon", "alpha2": "GA", "alpha3": "GAB", - "numeric": "266" + "numeric": "266", }, { "name": "Gambia (the)", "alpha2": "GM", "alpha3": "GMB", "numeric": "270", - "altName": "Gambia" + "altName": "Gambia", }, { "name": "Georgia", "alpha2": "GE", "alpha3": "GEO", - "numeric": "268" + "numeric": "268", }, { "name": "Germany", "alpha2": "DE", "alpha3": "DEU", - "numeric": "276" + "numeric": "276", }, { "name": "Ghana", "alpha2": "GH", "alpha3": "GHA", - "numeric": "288" + "numeric": "288", }, { "name": "Gibraltar", "alpha2": "GI", "alpha3": "GIB", - "numeric": "292" + "numeric": "292", }, { "name": "Greece", "alpha2": "GR", "alpha3": "GRC", - "numeric": "300" + "numeric": "300", }, { "name": "Greenland", "alpha2": "GL", "alpha3": "GRL", - "numeric": "304" + "numeric": "304", }, { "name": "Grenada", "alpha2": "GD", "alpha3": "GRD", - "numeric": "308" + "numeric": "308", }, { "name": "Guadeloupe", "alpha2": "GP", "alpha3": "GLP", - "numeric": "312" + "numeric": "312", }, { "name": "Guam", "alpha2": "GU", "alpha3": "GUM", - "numeric": "316" + "numeric": "316", }, { "name": "Guatemala", "alpha2": "GT", "alpha3": "GTM", - "numeric": "320" + "numeric": "320", }, { "name": "Guernsey", "alpha2": "GG", "alpha3": "GGY", - "numeric": "831" + "numeric": "831", }, { "name": "Guinea", "alpha2": "GN", "alpha3": "GIN", - "numeric": "324" + "numeric": "324", }, { "name": "Guinea-Bissau", "alpha2": "GW", "alpha3": "GNB", - "numeric": "624" + "numeric": "624", }, { "name": "Guyana", "alpha2": "GY", "alpha3": "GUY", - "numeric": "328" + "numeric": "328", }, { "name": "Haiti", "alpha2": "HT", "alpha3": "HTI", - "numeric": "332" + "numeric": "332", }, { "name": "Heard Island and McDonald Islands", "alpha2": "HM", "alpha3": "HMD", "numeric": "334", - "altName": "Heard and Mcdonald Islands" + "altName": "Heard and Mcdonald Islands", }, { "name": "Holy See (the)", @@ -615,44 +615,44 @@ export const countryCodes = [ "alpha3": "VAT", "numeric": "336", "altName": "Holy See (Vatican City State)", - "shortName": "Vatican" + "shortName": "Vatican", }, { "name": "Honduras", "alpha2": "HN", "alpha3": "HND", - "numeric": "340" + "numeric": "340", }, { "name": "Hong Kong", "alpha2": "HK", "alpha3": "HKG", "numeric": "344", - "altName": "Hong Kong, SAR China" + "altName": "Hong Kong, SAR China", }, { "name": "Hungary", "alpha2": "HU", "alpha3": "HUN", - "numeric": "348" + "numeric": "348", }, { "name": "Iceland", "alpha2": "IS", "alpha3": "ISL", - "numeric": "352" + "numeric": "352", }, { "name": "India", "alpha2": "IN", "alpha3": "IND", - "numeric": "356" + "numeric": "356", }, { "name": "Indonesia", "alpha2": "ID", "alpha3": "IDN", - "numeric": "360" + "numeric": "360", }, { "name": "Iran (Islamic Republic of)", @@ -660,79 +660,79 @@ export const countryCodes = [ "alpha3": "IRN", "numeric": "364", "altName": "Iran, Islamic Republic of", - "shortName": "Iran" + "shortName": "Iran", }, { "name": "Iraq", "alpha2": "IQ", "alpha3": "IRQ", - "numeric": "368" + "numeric": "368", }, { "name": "Ireland", "alpha2": "IE", "alpha3": "IRL", - "numeric": "372" + "numeric": "372", }, { "name": "Isle of Man", "alpha2": "IM", "alpha3": "IMN", - "numeric": "833" + "numeric": "833", }, { "name": "Israel", "alpha2": "IL", "alpha3": "ISR", - "numeric": "376" + "numeric": "376", }, { "name": "Italy", "alpha2": "IT", "alpha3": "ITA", - "numeric": "380" + "numeric": "380", }, { "name": "Jamaica", "alpha2": "JM", "alpha3": "JAM", - "numeric": "388" + "numeric": "388", }, { "name": "Japan", "alpha2": "JP", "alpha3": "JPN", - "numeric": "392" + "numeric": "392", }, { "name": "Jersey", "alpha2": "JE", "alpha3": "JEY", - "numeric": "832" + "numeric": "832", }, { "name": "Jordan", "alpha2": "JO", "alpha3": "JOR", - "numeric": "400" + "numeric": "400", }, { "name": "Kazakhstan", "alpha2": "KZ", "alpha3": "KAZ", - "numeric": "398" + "numeric": "398", }, { "name": "Kenya", "alpha2": "KE", "alpha3": "KEN", - "numeric": "404" + "numeric": "404", }, { "name": "Kiribati", "alpha2": "KI", "alpha3": "KIR", - "numeric": "296" + "numeric": "296", }, { "name": "Korea (the Democratic People's Republic of)", @@ -740,7 +740,7 @@ export const countryCodes = [ "alpha3": "PRK", "numeric": "408", "altName": "Korea (North)", - "shortName": "North Korea" + "shortName": "North Korea", }, { "name": "Korea (the Republic of)", @@ -748,19 +748,19 @@ export const countryCodes = [ "alpha3": "KOR", "numeric": "410", "altName": "Korea (South)", - "shortName": "South Korea" + "shortName": "South Korea", }, { "name": "Kuwait", "alpha2": "KW", "alpha3": "KWT", - "numeric": "414" + "numeric": "414", }, { "name": "Kyrgyzstan", "alpha2": "KG", "alpha3": "KGZ", - "numeric": "417" + "numeric": "417", }, { "name": "Lao People's Democratic Republic (the)", @@ -768,55 +768,55 @@ export const countryCodes = [ "alpha3": "LAO", "numeric": "418", "altName": "Lao PDR", - "shortName": "Laos" + "shortName": "Laos", }, { "name": "Latvia", "alpha2": "LV", "alpha3": "LVA", - "numeric": "428" + "numeric": "428", }, { "name": "Lebanon", "alpha2": "LB", "alpha3": "LBN", - "numeric": "422" + "numeric": "422", }, { "name": "Lesotho", "alpha2": "LS", "alpha3": "LSO", - "numeric": "426" + "numeric": "426", }, { "name": "Liberia", "alpha2": "LR", "alpha3": "LBR", - "numeric": "430" + "numeric": "430", }, { "name": "Libya", "alpha2": "LY", "alpha3": "LBY", - "numeric": "434" + "numeric": "434", }, { "name": "Liechtenstein", "alpha2": "LI", "alpha3": "LIE", - "numeric": "438" + "numeric": "438", }, { "name": "Lithuania", "alpha2": "LT", "alpha3": "LTU", - "numeric": "440" + "numeric": "440", }, { "name": "Luxembourg", "alpha2": "LU", "alpha3": "LUX", - "numeric": "442" + "numeric": "442", }, { "name": "Macao", @@ -824,7 +824,7 @@ export const countryCodes = [ "alpha3": "MAC", "numeric": "446", "altName": "Macao, SAR China", - "shortName": "Macau" + "shortName": "Macau", }, { "name": "Macedonia (the former Yugoslav Republic of)", @@ -832,80 +832,80 @@ export const countryCodes = [ "alpha3": "MKD", "numeric": "807", "altName": "Macedonia, Republic of", - "shortName": "Macedonia" + "shortName": "Macedonia", }, { "name": "Madagascar", "alpha2": "MG", "alpha3": "MDG", - "numeric": "450" + "numeric": "450", }, { "name": "Malawi", "alpha2": "MW", "alpha3": "MWI", - "numeric": "454" + "numeric": "454", }, { "name": "Malaysia", "alpha2": "MY", "alpha3": "MYS", - "numeric": "458" + "numeric": "458", }, { "name": "Maldives", "alpha2": "MV", "alpha3": "MDV", - "numeric": "462" + "numeric": "462", }, { "name": "Mali", "alpha2": "ML", "alpha3": "MLI", - "numeric": "466" + "numeric": "466", }, { "name": "Malta", "alpha2": "MT", "alpha3": "MLT", - "numeric": "470" + "numeric": "470", }, { "name": "Marshall Islands (the)", "alpha2": "MH", "alpha3": "MHL", "numeric": "584", - "altName": "Marshall Islands" + "altName": "Marshall Islands", }, { "name": "Martinique", "alpha2": "MQ", "alpha3": "MTQ", - "numeric": "474" + "numeric": "474", }, { "name": "Mauritania", "alpha2": "MR", "alpha3": "MRT", - "numeric": "478" + "numeric": "478", }, { "name": "Mauritius", "alpha2": "MU", "alpha3": "MUS", - "numeric": "480" + "numeric": "480", }, { "name": "Mayotte", "alpha2": "YT", "alpha3": "MYT", - "numeric": "175" + "numeric": "175", }, { "name": "Mexico", "alpha2": "MX", "alpha3": "MEX", - "numeric": "484" + "numeric": "484", }, { "name": "Micronesia (Federated States of)", @@ -913,155 +913,155 @@ export const countryCodes = [ "alpha3": "FSM", "numeric": "583", "altName": "Micronesia, Federated States of", - "shortName": "Micronesia" + "shortName": "Micronesia", }, { "name": "Moldova (the Republic of)", "alpha2": "MD", "alpha3": "MDA", "numeric": "498", - "altName": "Moldova" + "altName": "Moldova", }, { "name": "Monaco", "alpha2": "MC", "alpha3": "MCO", - "numeric": "492" + "numeric": "492", }, { "name": "Mongolia", "alpha2": "MN", "alpha3": "MNG", - "numeric": "496" + "numeric": "496", }, { "name": "Montenegro", "alpha2": "ME", "alpha3": "MNE", - "numeric": "499" + "numeric": "499", }, { "name": "Montserrat", "alpha2": "MS", "alpha3": "MSR", - "numeric": "500" + "numeric": "500", }, { "name": "Morocco", "alpha2": "MA", "alpha3": "MAR", - "numeric": "504" + "numeric": "504", }, { "name": "Mozambique", "alpha2": "MZ", "alpha3": "MOZ", - "numeric": "508" + "numeric": "508", }, { "name": "Myanmar", "alpha2": "MM", "alpha3": "MMR", - "numeric": "104" + "numeric": "104", }, { "name": "Namibia", "alpha2": "NA", "alpha3": "NAM", - "numeric": "516" + "numeric": "516", }, { "name": "Nauru", "alpha2": "NR", "alpha3": "NRU", - "numeric": "520" + "numeric": "520", }, { "name": "Nepal", "alpha2": "NP", "alpha3": "NPL", - "numeric": "524" + "numeric": "524", }, { "name": "Netherlands (the)", "alpha2": "NL", "alpha3": "NLD", "numeric": "528", - "altName": "Netherlands" + "altName": "Netherlands", }, { "name": "New Caledonia", "alpha2": "NC", "alpha3": "NCL", - "numeric": "540" + "numeric": "540", }, { "name": "New Zealand", "alpha2": "NZ", "alpha3": "NZL", - "numeric": "554" + "numeric": "554", }, { "name": "Nicaragua", "alpha2": "NI", "alpha3": "NIC", - "numeric": "558" + "numeric": "558", }, { "name": "Niger (the)", "alpha2": "NE", "alpha3": "NER", "numeric": "562", - "altName": "Niger" + "altName": "Niger", }, { "name": "Nigeria", "alpha2": "NG", "alpha3": "NGA", - "numeric": "566" + "numeric": "566", }, { "name": "Niue", "alpha2": "NU", "alpha3": "NIU", - "numeric": "570" + "numeric": "570", }, { "name": "Norfolk Island", "alpha2": "NF", "alpha3": "NFK", - "numeric": "574" + "numeric": "574", }, { "name": "Northern Mariana Islands (the)", "alpha2": "MP", "alpha3": "MNP", "numeric": "580", - "altName": "Northern Mariana Islands" + "altName": "Northern Mariana Islands", }, { "name": "Norway", "alpha2": "NO", "alpha3": "NOR", - "numeric": "578" + "numeric": "578", }, { "name": "Oman", "alpha2": "OM", "alpha3": "OMN", - "numeric": "512" + "numeric": "512", }, { "name": "Pakistan", "alpha2": "PK", "alpha3": "PAK", - "numeric": "586" + "numeric": "586", }, { "name": "Palau", "alpha2": "PW", "alpha3": "PLW", - "numeric": "585" + "numeric": "585", }, { "name": "Palestine, State of", @@ -1069,81 +1069,81 @@ export const countryCodes = [ "alpha3": "PSE", "numeric": "275", "altName": "Palestinian Territory", - "shortName": "Palestine" + "shortName": "Palestine", }, { "name": "Panama", "alpha2": "PA", "alpha3": "PAN", - "numeric": "591" + "numeric": "591", }, { "name": "Papua New Guinea", "alpha2": "PG", "alpha3": "PNG", - "numeric": "598" + "numeric": "598", }, { "name": "Paraguay", "alpha2": "PY", "alpha3": "PRY", - "numeric": "600" + "numeric": "600", }, { "name": "Peru", "alpha2": "PE", "alpha3": "PER", - "numeric": "604" + "numeric": "604", }, { "name": "Philippines (the)", "alpha2": "PH", "alpha3": "PHL", "numeric": "608", - "altName": "Philippines" + "altName": "Philippines", }, { "name": "Pitcairn", "alpha2": "PN", "alpha3": "PCN", - "numeric": "612" + "numeric": "612", }, { "name": "Poland", "alpha2": "PL", "alpha3": "POL", - "numeric": "616" + "numeric": "616", }, { "name": "Portugal", "alpha2": "PT", "alpha3": "PRT", - "numeric": "620" + "numeric": "620", }, { "name": "Puerto Rico", "alpha2": "PR", "alpha3": "PRI", - "numeric": "630" + "numeric": "630", }, { "name": "Qatar", "alpha2": "QA", "alpha3": "QAT", - "numeric": "634" + "numeric": "634", }, { "name": "Réunion", "alpha2": "RE", "alpha3": "REU", "numeric": "638", - "shortName": "Reunion" + "shortName": "Reunion", }, { "name": "Romania", "alpha2": "RO", "alpha3": "ROU", - "numeric": "642" + "numeric": "642", }, { "name": "Russian Federation (the)", @@ -1151,13 +1151,13 @@ export const countryCodes = [ "alpha3": "RUS", "numeric": "643", "altName": "Russian Federation", - "shortName": "Russia" + "shortName": "Russia", }, { "name": "Rwanda", "alpha2": "RW", "alpha3": "RWA", - "numeric": "646" + "numeric": "646", }, { "name": "Saint Barthélemy", @@ -1165,26 +1165,26 @@ export const countryCodes = [ "alpha3": "BLM", "numeric": "652", "altName": "Saint-Barthélemy", - "shortName": "Saint Barthelemy" + "shortName": "Saint Barthelemy", }, { "name": "Saint Helena, Ascension and Tristan da Cunha", "alpha2": "SH", "alpha3": "SHN", "numeric": "654", - "altName": "Saint Helena" + "altName": "Saint Helena", }, { "name": "Saint Kitts and Nevis", "alpha2": "KN", "alpha3": "KNA", - "numeric": "659" + "numeric": "659", }, { "name": "Saint Lucia", "alpha2": "LC", "alpha3": "LCA", - "numeric": "662" + "numeric": "662", }, { "name": "Saint Martin (French part)", @@ -1192,173 +1192,173 @@ export const countryCodes = [ "alpha3": "MAF", "numeric": "663", "altName": "Saint-Martin (French part)", - "shortName": "Saint Martin" + "shortName": "Saint Martin", }, { "name": "Saint Pierre and Miquelon", "alpha2": "PM", "alpha3": "SPM", - "numeric": "666" + "numeric": "666", }, { "name": "Saint Vincent and the Grenadines", "alpha2": "VC", "alpha3": "VCT", "numeric": "670", - "altName": "Saint Vincent and Grenadines" + "altName": "Saint Vincent and Grenadines", }, { "name": "Samoa", "alpha2": "WS", "alpha3": "WSM", - "numeric": "882" + "numeric": "882", }, { "name": "San Marino", "alpha2": "SM", "alpha3": "SMR", - "numeric": "674" + "numeric": "674", }, { "name": "Sao Tome and Principe", "alpha2": "ST", "alpha3": "STP", - "numeric": "678" + "numeric": "678", }, { "name": "Saudi Arabia", "alpha2": "SA", "alpha3": "SAU", - "numeric": "682" + "numeric": "682", }, { "name": "Senegal", "alpha2": "SN", "alpha3": "SEN", - "numeric": "686" + "numeric": "686", }, { "name": "Serbia", "alpha2": "RS", "alpha3": "SRB", - "numeric": "688" + "numeric": "688", }, { "name": "Seychelles", "alpha2": "SC", "alpha3": "SYC", - "numeric": "690" + "numeric": "690", }, { "name": "Sierra Leone", "alpha2": "SL", "alpha3": "SLE", - "numeric": "694" + "numeric": "694", }, { "name": "Singapore", "alpha2": "SG", "alpha3": "SGP", - "numeric": "702" + "numeric": "702", }, { "name": "Sint Maarten (Dutch part)", "alpha2": "SX", "alpha3": "SXM", "numeric": "534", - "shortName": "Sint Maarten" + "shortName": "Sint Maarten", }, { "name": "Slovakia", "alpha2": "SK", "alpha3": "SVK", - "numeric": "703" + "numeric": "703", }, { "name": "Slovenia", "alpha2": "SI", "alpha3": "SVN", - "numeric": "705" + "numeric": "705", }, { "name": "Solomon Islands", "alpha2": "SB", "alpha3": "SLB", - "numeric": "090" + "numeric": "090", }, { "name": "Somalia", "alpha2": "SO", "alpha3": "SOM", - "numeric": "706" + "numeric": "706", }, { "name": "South Africa", "alpha2": "ZA", "alpha3": "ZAF", - "numeric": "710" + "numeric": "710", }, { "name": "South Georgia and the South Sandwich Islands", "alpha2": "GS", "alpha3": "SGS", - "numeric": "239" + "numeric": "239", }, { "name": "South Sudan", "alpha2": "SS", "alpha3": "SSD", - "numeric": "728" + "numeric": "728", }, { "name": "Spain", "alpha2": "ES", "alpha3": "ESP", - "numeric": "724" + "numeric": "724", }, { "name": "Sri Lanka", "alpha2": "LK", "alpha3": "LKA", - "numeric": "144" + "numeric": "144", }, { "name": "Sudan (the)", "alpha2": "SD", "alpha3": "SDN", "numeric": "729", - "altName": "Sudan" + "altName": "Sudan", }, { "name": "Suriname", "alpha2": "SR", "alpha3": "SUR", - "numeric": "740" + "numeric": "740", }, { "name": "Svalbard and Jan Mayen", "alpha2": "SJ", "alpha3": "SJM", "numeric": "744", - "altName": "Svalbard and Jan Mayen Islands" + "altName": "Svalbard and Jan Mayen Islands", }, { "name": "Swaziland", "alpha2": "SZ", "alpha3": "SWZ", - "numeric": "748" + "numeric": "748", }, { "name": "Sweden", "alpha2": "SE", "alpha3": "SWE", - "numeric": "752" + "numeric": "752", }, { "name": "Switzerland", "alpha2": "CH", "alpha3": "CHE", - "numeric": "756" + "numeric": "756", }, { "name": "Syrian Arab Republic", @@ -1366,7 +1366,7 @@ export const countryCodes = [ "alpha3": "SYR", "numeric": "760", "altName": "Syrian Arab Republic (Syria)", - "shortName": "Syria" + "shortName": "Syria", }, { "name": "Taiwan (Province of China)", @@ -1374,121 +1374,121 @@ export const countryCodes = [ "alpha3": "TWN", "numeric": "158", "altName": "Taiwan, Republic of China", - "shortName": "Taiwan" + "shortName": "Taiwan", }, { "name": "Tajikistan", "alpha2": "TJ", "alpha3": "TJK", - "numeric": "762" + "numeric": "762", }, { "name": "Tanzania, United Republic of", "alpha2": "TZ", "alpha3": "TZA", "numeric": "834", - "shortName": "Tanzania" + "shortName": "Tanzania", }, { "name": "Thailand", "alpha2": "TH", "alpha3": "THA", - "numeric": "764" + "numeric": "764", }, { "name": "Timor-Leste", "alpha2": "TL", "alpha3": "TLS", "numeric": "626", - "shortName": "East Timor" + "shortName": "East Timor", }, { "name": "Togo", "alpha2": "TG", "alpha3": "TGO", - "numeric": "768" + "numeric": "768", }, { "name": "Tokelau", "alpha2": "TK", "alpha3": "TKL", - "numeric": "772" + "numeric": "772", }, { "name": "Tonga", "alpha2": "TO", "alpha3": "TON", - "numeric": "776" + "numeric": "776", }, { "name": "Trinidad and Tobago", "alpha2": "TT", "alpha3": "TTO", - "numeric": "780" + "numeric": "780", }, { "name": "Tunisia", "alpha2": "TN", "alpha3": "TUN", - "numeric": "788" + "numeric": "788", }, { "name": "Turkey", "alpha2": "TR", "alpha3": "TUR", - "numeric": "792" + "numeric": "792", }, { "name": "Turkmenistan", "alpha2": "TM", "alpha3": "TKM", - "numeric": "795" + "numeric": "795", }, { "name": "Turks and Caicos Islands (the)", "alpha2": "TC", "alpha3": "TCA", "numeric": "796", - "altName": "Turks and Caicos Islands" + "altName": "Turks and Caicos Islands", }, { "name": "Tuvalu", "alpha2": "TV", "alpha3": "TUV", - "numeric": "798" + "numeric": "798", }, { "name": "Uganda", "alpha2": "UG", "alpha3": "UGA", - "numeric": "800" + "numeric": "800", }, { "name": "Ukraine", "alpha2": "UA", "alpha3": "UKR", - "numeric": "804" + "numeric": "804", }, { "name": "United Arab Emirates (the)", "alpha2": "AE", "alpha3": "ARE", "numeric": "784", - "altName": "United Arab Emirates" + "altName": "United Arab Emirates", }, { "name": "United Kingdom of Great Britain and Northern Ireland (the)", "alpha2": "GB", "alpha3": "GBR", "numeric": "826", - "altName": "United Kingdom" + "altName": "United Kingdom", }, { "name": "United States Minor Outlying Islands (the)", "alpha2": "UM", "alpha3": "UMI", "numeric": "581", - "altName": "US Minor Outlying Islands" + "altName": "US Minor Outlying Islands", }, { "name": "United States of America (the)", @@ -1496,25 +1496,25 @@ export const countryCodes = [ "alpha3": "USA", "numeric": "840", "altName": "United States of America", - "shortName": "United States" + "shortName": "United States", }, { "name": "Uruguay", "alpha2": "UY", "alpha3": "URY", - "numeric": "858" + "numeric": "858", }, { "name": "Uzbekistan", "alpha2": "UZ", "alpha3": "UZB", - "numeric": "860" + "numeric": "860", }, { "name": "Vanuatu", "alpha2": "VU", "alpha3": "VUT", - "numeric": "548" + "numeric": "548", }, { "name": "Venezuela (Bolivarian Republic of)", @@ -1522,21 +1522,21 @@ export const countryCodes = [ "alpha3": "VEN", "numeric": "862", "altName": "Venezuela (Bolivarian Republic)", - "shortName": "Venezuela" + "shortName": "Venezuela", }, { "name": "Viet Nam", "alpha2": "VN", "alpha3": "VNM", "numeric": "704", - "shortName": "Vietnam" + "shortName": "Vietnam", }, { "name": "Virgin Islands (British)", "alpha2": "VG", "alpha3": "VGB", "numeric": "092", - "altName": "British Virgin Islands" + "altName": "British Virgin Islands", }, { "name": "Virgin Islands (U.S.)", @@ -1544,38 +1544,38 @@ export const countryCodes = [ "alpha3": "VIR", "numeric": "850", "altName": "Virgin Islands, US", - "shortName": "U.S. Virgin Islands" + "shortName": "U.S. Virgin Islands", }, { "name": "Wallis and Futuna", "alpha2": "WF", "alpha3": "WLF", "numeric": "876", - "altName": "Wallis and Futuna Islands" + "altName": "Wallis and Futuna Islands", }, { "name": "Western Sahara*", "alpha2": "EH", "alpha3": "ESH", "numeric": "732", - "altName": "Western Sahara" + "altName": "Western Sahara", }, { "name": "Yemen", "alpha2": "YE", "alpha3": "YEM", - "numeric": "887" + "numeric": "887", }, { "name": "Zambia", "alpha2": "ZM", "alpha3": "ZMB", - "numeric": "894" + "numeric": "894", }, { "name": "Zimbabwe", "alpha2": "ZW", "alpha3": "ZWE", - "numeric": "716" - } + "numeric": "716", + }, ] as IDataObject[]; diff --git a/packages/nodes-base/nodes/Jira/GenericFunctions.ts b/packages/nodes-base/nodes/Jira/GenericFunctions.ts index 4d1692dc7..93cbdd5cc 100644 --- a/packages/nodes-base/nodes/Jira/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Jira/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function jiraSoftwareCloudApiRequest(this: IHookFunctions | IExecut qs: query, uri: uri || `${domain}/rest${endpoint}`, body, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Jira/IssueDescription.ts b/packages/nodes-base/nodes/Jira/IssueDescription.ts index d29c9a535..30579f16d 100644 --- a/packages/nodes-base/nodes/Jira/IssueDescription.ts +++ b/packages/nodes-base/nodes/Jira/IssueDescription.ts @@ -75,8 +75,8 @@ export const issueFields = [ 'issue', ], operation: [ - 'create' - ] + 'create', + ], }, }, typeOptions: { @@ -98,8 +98,8 @@ export const issueFields = [ 'issue', ], operation: [ - 'create' - ] + 'create', + ], }, }, typeOptions: { @@ -469,7 +469,7 @@ export const issueFields = [ editmeta Returns information about how each field can be edited.
changelog Returns a list of recent updates to an issue, sorted by date, starting from the most recent.
versionedRepresentations Returns a JSON array for each version of a field's value, with the highest number
- representing the most recent version. Note: When included in the request, the fields parameter is ignored.` + representing the most recent version. Note: When included in the request, the fields parameter is ignored.`, }, { displayName: 'Fields', @@ -482,7 +482,7 @@ export const issueFields = [ Use it to retrieve a subset of fields. Allowed values:
*all Returns all fields.
*navigable Returns navigable fields.
- Any issue field, prefixed with a minus to exclude.
` + Any issue field, prefixed with a minus to exclude.
`, }, { displayName: 'Fields By Key', @@ -508,7 +508,7 @@ export const issueFields = [ *all Returns all properties.
*all,-prop1 Returns all properties except prop1.
prop1,prop2 Returns prop1 and prop2 properties.
- This parameter may be specified multiple times. For example, properties=prop1,prop2& properties=prop3.` + This parameter may be specified multiple times. For example, properties=prop1,prop2& properties=prop3.`, }, { displayName: 'Update History', @@ -520,7 +520,7 @@ export const issueFields = [ Recently viewed project list, as shown under Projects in Jira. This also populates the JQL issues search lastViewed field.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -800,7 +800,7 @@ export const issueFields = [ required: false, default: '', description: `The subject of the email notification for the issue. If this is not specified, - then the subject is set to the issue key and summary.` + then the subject is set to the issue key and summary.`, }, { displayName: 'Text Body', @@ -812,7 +812,7 @@ export const issueFields = [ required: false, default: '', description: `The subject of the email notification for the issue. - If this is not specified, then the subject is set to the issue key and summary.` + If this is not specified, then the subject is set to the issue key and summary.`, }, ], }, @@ -892,10 +892,10 @@ export const issueFields = [ default: [], description: `List of groups to receive the notification.`, }, - ] + ], - } - ] + }, + ], }, { displayName: 'Notification Recipients', @@ -915,7 +915,7 @@ export const issueFields = [ ], jsonParameters: [ true, - ] + ], }, }, default: '', @@ -969,10 +969,10 @@ export const issueFields = [ default: [], description: `List of groups to receive the notification.`, }, - ] + ], - } - ] + }, + ], }, { displayName: 'Notification Recipients Restrictions', @@ -992,7 +992,7 @@ export const issueFields = [ ], jsonParameters: [ true, - ] + ], }, }, default: '', @@ -1046,7 +1046,7 @@ export const issueFields = [ description: `Use expand to include additional information about transitions in the response.
This parameter accepts transitions.fields, which returns information about the fields in the
transition screen for each transition. Fields hidden from the screen are not returned. Use this
- information to populate the fields and update fields in Transition issue.` + information to populate the fields and update fields in Transition issue.`, }, { displayName: 'Transition ID', diff --git a/packages/nodes-base/nodes/Jira/Jira.node.ts b/packages/nodes-base/nodes/Jira/Jira.node.ts index c41581412..0afa10bd3 100644 --- a/packages/nodes-base/nodes/Jira/Jira.node.ts +++ b/packages/nodes-base/nodes/Jira/Jira.node.ts @@ -279,7 +279,7 @@ export class Jira implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -524,7 +524,7 @@ export class Jira implements INodeType { // @ts-ignore notificationRecipients.users = notificationRecipientsValues.users.map(user => { return { - accountId: user + accountId: user, }; }); } @@ -533,7 +533,7 @@ export class Jira implements INodeType { // @ts-ignore notificationRecipients.groups = notificationRecipientsValues.groups.map(group => { return { - name: group + name: group, }; }); } @@ -547,7 +547,7 @@ export class Jira implements INodeType { // @ts-ignore notificationRecipientsRestrictions.groups = notificationRecipientsRestrictionsValues.groups.map(group => { return { - name: group + name: group, }; }); } diff --git a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts index bdda07bb2..72923f9ae 100644 --- a/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts +++ b/packages/nodes-base/nodes/Jira/JiraTrigger.node.ts @@ -284,59 +284,59 @@ export class JiraTrigger implements INodeType { options: [ { name: 'Attachment ID', - value: 'attachment.id' + value: 'attachment.id', }, { name: 'Board ID', - value: 'board.id' + value: 'board.id', }, { name: 'Comment ID', - value: 'comment.id' + value: 'comment.id', }, { name: 'Issue ID', - value: 'issue.id' + value: 'issue.id', }, { name: 'Merge Version ID', - value: 'mergeVersion.id' + value: 'mergeVersion.id', }, { name: 'Modified User Account ID', - value: 'modifiedUser.accountId' + value: 'modifiedUser.accountId', }, { name: 'Modified User Key', - value: 'modifiedUser.key' + value: 'modifiedUser.key', }, { name: 'Modified User Name', - value: 'modifiedUser.name' + value: 'modifiedUser.name', }, { name: 'Project ID', - value: 'project.id' + value: 'project.id', }, { name: 'Project Key', - value: 'project.key' + value: 'project.key', }, { name: 'Propery Key', - value: 'property.key' + value: 'property.key', }, { name: 'Sprint ID', - value: 'sprint.id' + value: 'sprint.id', }, { name: 'Version ID', - value: 'version.id' + value: 'version.id', }, { name: 'Worklog ID', - value: 'worklog.id' + value: 'worklog.id', }, ], default: [], @@ -448,7 +448,7 @@ export class JiraTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(bodyData) + this.helpers.returnJsonArray(bodyData), ], }; } diff --git a/packages/nodes-base/nodes/JotForm/GenericFunctions.ts b/packages/nodes-base/nodes/JotForm/GenericFunctions.ts index 555e06d69..85f6f0cee 100644 --- a/packages/nodes-base/nodes/JotForm/GenericFunctions.ts +++ b/packages/nodes-base/nodes/JotForm/GenericFunctions.ts @@ -22,7 +22,7 @@ export async function jotformApiRequest(this: IHookFunctions | IExecuteFunctions qs, form: body, uri: uri || `https://${credentials.apiDomain || 'api.jotform.com'}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.form; diff --git a/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts b/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts index d03406584..755b2bd61 100644 --- a/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts +++ b/packages/nodes-base/nodes/JotForm/JotFormTrigger.node.ts @@ -42,7 +42,7 @@ export class JotFormTrigger implements INodeType { { name: 'jotFormApi', required: true, - } + }, ], webhooks: [ { @@ -59,7 +59,7 @@ export class JotFormTrigger implements INodeType { type: 'options', required: true, typeOptions: { - loadOptionsMethod: 'getForms' + loadOptionsMethod: 'getForms', }, default: '', description: '', diff --git a/packages/nodes-base/nodes/Keap/CompanyDescription.ts b/packages/nodes-base/nodes/Keap/CompanyDescription.ts index edb73d1ce..4b91f1940 100644 --- a/packages/nodes-base/nodes/Keap/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Keap/CompanyDescription.ts @@ -128,7 +128,7 @@ export const companyFields = [ name: 'countryCode', type: 'string', default: '', - description: 'ISO Alpha-3 Code' + description: 'ISO Alpha-3 Code', }, { displayName: 'Line 1', @@ -213,7 +213,7 @@ export const companyFields = [ default: '', }, ], - } + }, ], }, { diff --git a/packages/nodes-base/nodes/Keap/ContactDescription.ts b/packages/nodes-base/nodes/Keap/ContactDescription.ts index b1611c518..5b5746f7a 100644 --- a/packages/nodes-base/nodes/Keap/ContactDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactDescription.ts @@ -73,7 +73,7 @@ export const contactFields = [ }, default: 'email', description: `Performs duplicate checking by one of the following options: Email, EmailAndName,
- if a match is found using the option provided, the existing contact will be updated` + if a match is found using the option provided, the existing contact will be updated`, }, { displayName: 'Additional Fields', @@ -385,7 +385,7 @@ export const contactFields = [ default: '', }, ], - } + }, ], }, { @@ -435,7 +435,7 @@ export const contactFields = [ default: '', }, ], - } + }, ], }, { diff --git a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts index aa625c3b6..80eb2bf5f 100644 --- a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts @@ -325,7 +325,7 @@ export const contactNoteFields = [ name: 'contactId', type: 'number', typeOptions: { - minValue: 0 + minValue: 0, }, default: 0, }, diff --git a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts index 2d43239fb..eee5dc751 100644 --- a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts +++ b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts @@ -156,7 +156,7 @@ export const ecommerceOrderFields = [ type: 'string', default: '', description: `Uses multiple strings separated by comma as promo codes.
- The corresponding discount will be applied to the order.` + The corresponding discount will be applied to the order.`, }, { displayName: 'Sales Affiliate ID', diff --git a/packages/nodes-base/nodes/Keap/EmailDescription.ts b/packages/nodes-base/nodes/Keap/EmailDescription.ts index 0f7015250..841f28388 100644 --- a/packages/nodes-base/nodes/Keap/EmailDescription.ts +++ b/packages/nodes-base/nodes/Keap/EmailDescription.ts @@ -157,7 +157,7 @@ export const emailFields = [ type: 'string', default: '', description: `Provider id that sent the email, must be unique when combined with provider.
- If omitted a UUID without dashes is autogenerated for the record.` + If omitted a UUID without dashes is autogenerated for the record.`, }, { displayName: 'Plain Content', diff --git a/packages/nodes-base/nodes/Keap/FileDescription.ts b/packages/nodes-base/nodes/Keap/FileDescription.ts index 863590a61..b030170c6 100644 --- a/packages/nodes-base/nodes/Keap/FileDescription.ts +++ b/packages/nodes-base/nodes/Keap/FileDescription.ts @@ -48,7 +48,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -66,7 +66,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -182,7 +182,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -276,7 +276,7 @@ export const fileFields = [ name: 'contactId', type: 'number', typeOptions: { - minValue: 0 + minValue: 0, }, default: 0, description: 'Filter based on Contact Id, if user has permission to see Contact files.', diff --git a/packages/nodes-base/nodes/Keap/GenericFunctions.ts b/packages/nodes-base/nodes/Keap/GenericFunctions.ts index d00228fad..c2a4c2497 100644 --- a/packages/nodes-base/nodes/Keap/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Keap/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function keapApiRequest(this: IWebhookFunctions | IHookFunctions | body, qs, uri: uri || `https://api.infusionsoft.com/crm/rest/v1${resource}`, - json: true + json: true, }; try { options = Object.assign({}, options, option); diff --git a/packages/nodes-base/nodes/LinkedIn/GenericFunctions.ts b/packages/nodes-base/nodes/LinkedIn/GenericFunctions.ts index 23045edd8..09fe1e71f 100644 --- a/packages/nodes-base/nodes/LinkedIn/GenericFunctions.ts +++ b/packages/nodes-base/nodes/LinkedIn/GenericFunctions.ts @@ -12,7 +12,7 @@ export async function linkedInApiRequest(this: IHookFunctions | IExecuteFunction const options: OptionsWithUrl = { headers: { 'Accept': 'application/json', - 'X-Restli-Protocol-Version': '2.0.0' + 'X-Restli-Protocol-Version': '2.0.0', }, method, body, diff --git a/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts b/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts index 919d5f48d..81f01e545 100644 --- a/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts +++ b/packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts @@ -68,7 +68,7 @@ export class LinkedIn implements INodeType { returnData.push({ name: `${person.localizedFirstName} ${person.localizedLastName}`, value: person.id }); return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -206,19 +206,19 @@ export class LinkedIn implements INodeType { { status: 'READY', description: { - text: description + text: description, }, originalUrl, title: { - text: title - } - } - ] - } + text: title, + }, + }, + ], + }, }, visibility: { - 'com.linkedin.ugc.MemberNetworkVisibility': visibility - } + 'com.linkedin.ugc.MemberNetworkVisibility': visibility, + }, }; } else { body = { @@ -233,8 +233,8 @@ export class LinkedIn implements INodeType { }, }, visibility: { - 'com.linkedin.ugc.MemberNetworkVisibility': visibility - } + 'com.linkedin.ugc.MemberNetworkVisibility': visibility, + }, }; } diff --git a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts index f23e8229a..bfcb66262 100644 --- a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts +++ b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts @@ -66,8 +66,8 @@ export const postFields = [ resource: [ 'post', ], - } - } + }, + }, }, { displayName: 'Organization URN', @@ -126,7 +126,7 @@ export const postFields = [ name: 'Image', value: 'IMAGE', description: 'The post contains an image', - } + }, ], displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts index 8310ca3dd..c8c24cd57 100644 --- a/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mailchimp/GenericFunctions.ts @@ -20,7 +20,7 @@ export async function mailchimpApiRequest(this: IHookFunctions | IExecuteFunctio const options: OptionsWithUrl = { headers: { - 'Accept': 'application/json' + 'Accept': 'application/json', }, method, qs, diff --git a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts index 892a06cc0..447ce8954 100644 --- a/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts +++ b/packages/nodes-base/nodes/Mailchimp/Mailchimp.node.ts @@ -116,7 +116,7 @@ export class Mailchimp implements INodeType { options: [ { name: 'Campaign', - value: 'campaign' + value: 'campaign', }, { name: 'List Group', @@ -243,36 +243,36 @@ export class Mailchimp implements INodeType { { name: 'Delete', value: 'delete', - description: 'Delete a campaign' + description: 'Delete a campaign', }, { name: 'Get', value: 'get', - description: 'Get a campaign' + description: 'Get a campaign', }, { name: 'Get All', value: 'getAll', - description: 'Get all the campaigns' + description: 'Get all the campaigns', }, { name: 'Replicate', value: 'replicate', - description: 'Replicate a campaign' + description: 'Replicate a campaign', }, { name: 'Resend', value: 'resend', - description: 'Creates a Resend to Non-Openers version of this campaign' + description: 'Creates a Resend to Non-Openers version of this campaign', }, { name: 'Send', value: 'send', - description: 'Send a campaign' + description: 'Send a campaign', }, ], default: 'getAll', - description: 'The operation to perform.' + description: 'The operation to perform.', }, /* -------------------------------------------------------------------------- */ /* member:create */ @@ -365,7 +365,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource:[ - 'member' + 'member', ], operation: [ 'create', @@ -500,7 +500,7 @@ export class Mailchimp implements INodeType { default: '', }, ], - } + }, ], }, { @@ -515,7 +515,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource:[ - 'member' + 'member', ], operation: [ 'create', @@ -616,7 +616,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource:[ - 'member' + 'member', ], operation: [ 'create', @@ -801,7 +801,7 @@ export class Mailchimp implements INodeType { default: '', description: 'A comma-separated list of fields to exclude.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* member:getAll */ @@ -1020,7 +1020,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource:[ - 'member' + 'member', ], operation: [ 'update', @@ -1074,7 +1074,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { '/resource':[ - 'member' + 'member', ], '/operation':[ 'update', @@ -1139,7 +1139,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { '/resource':[ - 'member' + 'member', ], '/operation':[ 'update', @@ -1260,7 +1260,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { '/resource':[ - 'member' + 'member', ], '/operation':[ 'update', @@ -1426,7 +1426,7 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource:[ - 'memberTag' + 'memberTag', ], operation: [ 'create', @@ -1663,7 +1663,7 @@ export class Mailchimp implements INodeType { loadOptionsMethod: 'getLists', }, default: '', - description: 'List of lists' + description: 'List of lists', }, { displayName: 'Since Create Time', @@ -1750,16 +1750,16 @@ export class Mailchimp implements INodeType { displayOptions: { show: { resource: [ - 'campaign' + 'campaign', ], operation: [ 'send', 'get', 'delete', 'replicate', - 'resend' - ] - } + 'resend', + ], + }, }, required: true, default: '', @@ -1848,7 +1848,7 @@ export class Mailchimp implements INodeType { }); } return returnData; - } + }, }, }; @@ -1890,7 +1890,7 @@ export class Mailchimp implements INodeType { const body: ICreateMemberBody = { listId, email_address: email, - status + status, }; if (options.emailType) { body.email_type = options.emailType as string; diff --git a/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts b/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts index 1d3794bea..5a9e039c1 100644 --- a/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts +++ b/packages/nodes-base/nodes/Mailchimp/MailchimpTrigger.node.ts @@ -65,7 +65,7 @@ export class MailchimpTrigger implements INodeType { httpMethod: 'POST', reponseMode: 'onReceived', path: 'webhook', - } + }, ], properties: [ { @@ -93,7 +93,7 @@ export class MailchimpTrigger implements INodeType { default: '', description: 'The list that is gonna fire the event.', typeOptions: { - loadOptionsMethod: 'getLists' + loadOptionsMethod: 'getLists', }, options: [], }, @@ -161,7 +161,7 @@ export class MailchimpTrigger implements INodeType { description: `Whether the webhook is triggered by actions initiated via the API.`, }, ], - } + }, ], }; @@ -291,7 +291,7 @@ export class MailchimpTrigger implements INodeType { } return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts index b05857ac1..8e5c1de69 100644 --- a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts +++ b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts @@ -28,7 +28,7 @@ export class Mailgun implements INodeType { { name: 'mailgunApi', required: true, - } + }, ], properties: [ { @@ -128,7 +128,7 @@ export class Mailgun implements INodeType { to: toEmail, subject, text, - html + html, }; if (ccEmail.length !== 0) { @@ -154,7 +154,7 @@ export class Mailgun implements INodeType { options: { filename: item.binary[propertyName].fileName || 'unknown', - } + }, }); } diff --git a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts index 34102fd93..703975719 100644 --- a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts +++ b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts @@ -47,7 +47,7 @@ export const emailFields = [ ], operation: [ 'send', - ] + ], }, }, placeholder: 'admin@example.com', @@ -67,7 +67,7 @@ export const emailFields = [ ], operation: [ 'send', - ] + ], }, }, }, @@ -93,7 +93,7 @@ export const emailFields = [ ], operation: [ 'send', - ] + ], }, }, default: '', @@ -113,7 +113,7 @@ export const emailFields = [ ], operation: [ 'send', - ] + ], }, }, default: '', @@ -216,7 +216,7 @@ export const emailFields = [ description: 'Enable or disable open tracking on this message.', default: 'account_default', }, - ] + ], }, { displayName: 'Variables', @@ -232,7 +232,7 @@ export const emailFields = [ ], operation: [ 'send', - ] + ], }, }, placeholder: 'Add Variable', @@ -254,7 +254,7 @@ export const emailFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -274,7 +274,7 @@ export const emailFields = [ ], operation: [ 'sendTemplate', - ] + ], }, }, placeholder: 'admin@example.com', @@ -294,7 +294,7 @@ export const emailFields = [ ], operation: [ 'sendTemplate', - ] + ], }, }, }, @@ -311,7 +311,7 @@ export const emailFields = [ ], operation: [ 'sendTemplate', - ] + ], }, }, }, @@ -384,7 +384,7 @@ export const emailFields = [ type: 'boolean', default: true, }, - ] + ], }, { displayName: 'Variables', @@ -400,7 +400,7 @@ export const emailFields = [ ], operation: [ 'sendTemplate', - ] + ], }, }, placeholder: 'Add Variable', @@ -422,7 +422,7 @@ export const emailFields = [ type: 'string', default: '', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts b/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts index f24971979..aecdd5148 100644 --- a/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts @@ -17,7 +17,7 @@ export async function mailjetApiRequest(this: IExecuteFunctions | IExecuteSingle qs, body, uri: uri ||`https://api.mailjet.com${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts index ef6c05bb8..f94e3f08f 100644 --- a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts +++ b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts @@ -42,7 +42,7 @@ export const smsFields = [ ], operation: [ 'send', - ] + ], }, }, description: 'Customizable sender name. Should be between 3 and 11 characters in length, only alphanumeric characters are allowed.', @@ -60,7 +60,7 @@ export const smsFields = [ ], operation: [ 'send', - ] + ], }, }, description: 'Message recipient. Should be between 3 and 15 characters in length. The number always starts with a plus sign followed by a country code, followed by the number. Phone numbers are expected to comply with the E.164 format.', @@ -81,7 +81,7 @@ export const smsFields = [ ], operation: [ 'send', - ] + ], }, }, }, diff --git a/packages/nodes-base/nodes/Mandrill/GenericFunctions.ts b/packages/nodes-base/nodes/Mandrill/GenericFunctions.ts index 727cfc2b4..cf113c56c 100644 --- a/packages/nodes-base/nodes/Mandrill/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mandrill/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function mandrillApiRequest(this: IExecuteFunctions | IHookFunction method, uri: `https://${endpoint}${resource}${action}.json`, body: data, - json: true + json: true, }; @@ -56,13 +56,13 @@ export function getToEmailArray(toEmail: string): any { // tslint:disable-line:n toEmailArray = _.map(array, (email) => { return { email, - type: 'to' + type: 'to', }; }); } else { toEmailArray = [{ email: toEmail, - type: 'to' + type: 'to', }]; } return toEmailArray; diff --git a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts index a30bb38ae..c61173d18 100644 --- a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts +++ b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts @@ -114,7 +114,7 @@ export class Mandrill implements INodeType { { name: 'mandrillApi', required: true, - } + }, ], properties: [ { @@ -221,7 +221,7 @@ export class Mandrill implements INodeType { operation: [ 'sendHtml', 'sendTemplate', - ] + ], }, }, }, @@ -647,9 +647,9 @@ export class Mandrill implements INodeType { displayOptions: { show: { jsonParameters: [ - true - ] - } + true, + ], + }, }, typeOptions: { alwaysOpenEditWindow: true, @@ -692,7 +692,7 @@ export class Mandrill implements INodeType { description: '', }, ], - } + }, ], description: 'Optional extra headers to add to the message (most headers are allowed).', }, @@ -722,7 +722,7 @@ export class Mandrill implements INodeType { } return returnData; - } + }, }, }; diff --git a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts index 79efcb89e..d52eb6350 100644 --- a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts @@ -32,7 +32,7 @@ export async function matrixApiRequest(this: IExecuteFunctions | IExecuteSingleF let options: OptionsWithUri = { method, headers: headers || { - 'Content-Type': 'application/json; charset=utf-8' + 'Content-Type': 'application/json; charset=utf-8', }, body, qs: query, @@ -110,7 +110,7 @@ export async function handleMatrixCall(this: IExecuteFunctions | IExecuteSingleF const roomId = this.getNodeParameter('roomId', index) as string; const userId = this.getNodeParameter('userId', index) as string; const body: IDataObject = { - user_id: userId + user_id: userId, }; return await matrixApiRequest.call(this, 'POST', `/rooms/${roomId}/invite`, body); } else if (operation === 'kick') { diff --git a/packages/nodes-base/nodes/Matrix/Matrix.node.ts b/packages/nodes-base/nodes/Matrix/Matrix.node.ts index 5f9a78267..5109adc2e 100644 --- a/packages/nodes-base/nodes/Matrix/Matrix.node.ts +++ b/packages/nodes-base/nodes/Matrix/Matrix.node.ts @@ -112,7 +112,7 @@ export class Matrix implements INodeType { ...roomFields, ...roomMemberOperations, ...roomMemberFields, - ] + ], }; @@ -147,7 +147,7 @@ export class Matrix implements INodeType { return returnData; }, - } + }, }; diff --git a/packages/nodes-base/nodes/Mattermost/GenericFunctions.ts b/packages/nodes-base/nodes/Mattermost/GenericFunctions.ts index 457850ec6..735024e38 100644 --- a/packages/nodes-base/nodes/Mattermost/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mattermost/GenericFunctions.ts @@ -46,9 +46,9 @@ export async function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoa uri: `${credentials.baseUrl}/api/v4/${endpoint}`, headers: { Authorization: `Bearer ${credentials.accessToken}`, - 'content-type': 'application/json; charset=utf-8' + 'content-type': 'application/json; charset=utf-8', }, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts index 7a0a3af26..e6ff3b86b 100644 --- a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts +++ b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts @@ -40,7 +40,7 @@ export class Mattermost implements INodeType { { name: 'mattermostApi', required: true, - } + }, ], properties: [ { @@ -165,7 +165,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'channel', @@ -183,7 +183,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'channel', @@ -202,7 +202,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'channel', @@ -219,7 +219,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'channel', @@ -257,7 +257,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'channel', @@ -388,7 +388,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'restore' + 'restore', ], resource: [ 'channel', @@ -415,7 +415,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'addUser' + 'addUser', ], resource: [ 'channel', @@ -437,7 +437,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'addUser' + 'addUser', ], resource: [ 'channel', @@ -464,7 +464,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'statistics' + 'statistics', ], resource: [ 'channel', @@ -516,7 +516,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -536,7 +536,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -556,7 +556,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -606,7 +606,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { type: [ - 'select' + 'select', ], }, }, @@ -640,10 +640,10 @@ export class Mattermost implements INodeType { displayOptions: { show: { data_source: [ - 'custom' + 'custom', ], type: [ - 'select' + 'select', ], }, }, @@ -668,7 +668,7 @@ export class Mattermost implements INodeType { default: '', description: 'Value of the option.', }, - ] + ], }, ], }, @@ -732,15 +732,15 @@ export class Mattermost implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, - ] + ], }, ], }, - ] + ], }, ], }, @@ -824,7 +824,7 @@ export class Mattermost implements INodeType { default: true, description: 'If items can be displayed next to each other.', }, - ] + ], }, ], }, @@ -917,7 +917,7 @@ export class Mattermost implements INodeType { displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -1109,7 +1109,7 @@ export class Mattermost implements INodeType { }, }, default: '', - description: 'The password used for email authentication.' + description: 'The password used for email authentication.', }, { displayName: 'Additional Fields', @@ -1208,7 +1208,7 @@ export class Mattermost implements INodeType { name: 'email', type: 'boolean', default: false, - description: `Set to "true" to enable email notifications, "false" to disable. Defaults to "true".` + description: `Set to "true" to enable email notifications, "false" to disable. Defaults to "true".`, }, { displayName: 'First Name', @@ -1273,7 +1273,7 @@ export class Mattermost implements INodeType { }, }, default: '', - description: 'User GUID' + description: 'User GUID', }, // ---------------------------------- diff --git a/packages/nodes-base/nodes/Mautic/ContactDescription.ts b/packages/nodes-base/nodes/Mautic/ContactDescription.ts index 1ea81acbc..947c27426 100644 --- a/packages/nodes-base/nodes/Mautic/ContactDescription.ts +++ b/packages/nodes-base/nodes/Mautic/ContactDescription.ts @@ -80,7 +80,7 @@ export const contactFields = [ ], jsonParameters: [ false, - ] + ], }, }, default: '', @@ -100,7 +100,7 @@ export const contactFields = [ ], jsonParameters: [ false, - ] + ], }, }, default: '', @@ -1162,7 +1162,7 @@ export const contactFields = [ description: `By default only the data of the fields get returned. If this
options gets set the RAW response with all data gets returned.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts index 3bf736783..8a96bb330 100644 --- a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts @@ -38,7 +38,7 @@ export async function mauticApiRequest(this: IHookFunctions | IExecuteFunctions qs: query, uri: uri || `/api${endpoint}`, body, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts b/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts index 75ea573d9..6e7065247 100644 --- a/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts +++ b/packages/nodes-base/nodes/Mautic/MauticTrigger.node.ts @@ -130,7 +130,7 @@ export class MauticTrigger implements INodeType { } return returnData; }, - } + }, }; // @ts-ignore webhookMethods = { @@ -183,7 +183,7 @@ export class MauticTrigger implements INodeType { const req = this.getRequestObject(); return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Medium/Medium.node.ts b/packages/nodes-base/nodes/Medium/Medium.node.ts index 1316a3b03..410307ff0 100644 --- a/packages/nodes-base/nodes/Medium/Medium.node.ts +++ b/packages/nodes-base/nodes/Medium/Medium.node.ts @@ -129,7 +129,7 @@ export class Medium implements INodeType { }, }, default: false, - description: 'Are you posting for a publication?' + description: 'Are you posting for a publication?', }, { displayName: 'Publication ID', @@ -407,7 +407,7 @@ export class Medium implements INodeType { const user = await mediumApiRequest.call( this, 'GET', - `/me`, + `/me` ); const userId = user.data.id; @@ -415,7 +415,7 @@ export class Medium implements INodeType { const publications = await mediumApiRequest.call( this, 'GET', - `/users/${userId}/publications`, + `/users/${userId}/publications` ); const publicationsList = publications.data; for (const publication of publicationsList) { @@ -547,7 +547,7 @@ export class Medium implements INodeType { const user = await mediumApiRequest.call( this, 'GET', - `/me`, + `/me` ); const userId = user.data.id; @@ -555,7 +555,7 @@ export class Medium implements INodeType { responseData = await mediumApiRequest.call( this, 'GET', - `/users/${userId}/publications`, + `/users/${userId}/publications` ); responseData = responseData.data; diff --git a/packages/nodes-base/nodes/Merge.node.ts b/packages/nodes-base/nodes/Merge.node.ts index 901c393c5..7a8a0a3ac 100644 --- a/packages/nodes-base/nodes/Merge.node.ts +++ b/packages/nodes-base/nodes/Merge.node.ts @@ -54,7 +54,7 @@ export class Merge implements INodeType { { name: 'Multiplex', value: 'multiplex', - description: 'Merges each value of one input with each value of the other input. The output will contain (m * n) items where (m) and (n) are lengths of the inputs.' + description: 'Merges each value of one input with each value of the other input. The output will contain (m * n) items where (m) and (n) are lengths of the inputs.', }, { name: 'Pass-through', @@ -82,7 +82,7 @@ export class Merge implements INodeType { displayOptions: { show: { mode: [ - 'mergeByIndex' + 'mergeByIndex', ], }, }, @@ -147,7 +147,7 @@ export class Merge implements INodeType { displayOptions: { show: { mode: [ - 'passThrough' + 'passThrough', ], }, }, @@ -194,8 +194,8 @@ export class Merge implements INodeType { ], default: 'always', description: 'Select when to overwrite the values from Input1 with values from Input 2.', - } - ] + }, + ], }; diff --git a/packages/nodes-base/nodes/MessageBird/GenericFunctions.ts b/packages/nodes-base/nodes/MessageBird/GenericFunctions.ts index 5a7eda221..ee199072f 100644 --- a/packages/nodes-base/nodes/MessageBird/GenericFunctions.ts +++ b/packages/nodes-base/nodes/MessageBird/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function messageBirdApiRequest( method: string, resource: string, body: IDataObject, - query: IDataObject = {}, + query: IDataObject = {} ): Promise { // tslint:disable-line:no-any const credentials = this.getCredentials('messageBirdApi'); if (credentials === undefined) { diff --git a/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts b/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts index fa8895e58..8662f62dd 100644 --- a/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts +++ b/packages/nodes-base/nodes/MessageBird/MessageBird.node.ts @@ -295,7 +295,7 @@ export class MessageBird implements INodeType { bodyRequest = { recipients: [], originator, - body + body, }; const additionalFields = this.getNodeParameter( 'additionalFields', diff --git a/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts index 4180b4336..9119c4c00 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/GenericFunctions.ts @@ -17,7 +17,7 @@ export async function microsoftApiRequest(this: IExecuteFunctions | IExecuteSing body, qs, uri: uri || `https://graph.microsoft.com/v1.0/me${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts index e242d1c58..4efade884 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/MicrosoftExcel.node.ts @@ -146,7 +146,7 @@ export class MicrosoftExcel implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts index 8c399330d..6a057fee2 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts @@ -16,7 +16,7 @@ export const tableOperations = [ { name: 'Add Row', value: 'addRow', - description: 'Adds rows to the end of the table' + description: 'Adds rows to the end of the table', }, { name: 'Get Columns', @@ -31,7 +31,7 @@ export const tableOperations = [ { name: 'Lookup', value: 'lookup', - description: 'Looks for a specific column value and then returns the matching row' + description: 'Looks for a specific column value and then returns the matching row', }, ], default: 'addRow', @@ -273,7 +273,7 @@ export const tableFields = [ displayOptions: { show: { operation: [ - 'getRows' + 'getRows', ], resource: [ 'table', @@ -312,7 +312,7 @@ export const tableFields = [ default: '', description: `Fields the response will containt. Multiple can be added separated by ,.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* table:getColumns */ @@ -448,7 +448,7 @@ export const tableFields = [ displayOptions: { show: { operation: [ - 'getColumns' + 'getColumns', ], resource: [ 'table', @@ -475,7 +475,7 @@ export const tableFields = [ 'table', ], rawData: [ - true + true, ], }, }, @@ -487,7 +487,7 @@ export const tableFields = [ default: '', description: `Fields the response will containt. Multiple can be added separated by ,.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* table:lookup */ @@ -571,7 +571,7 @@ export const tableFields = [ 'table', ], operation: [ - 'lookup' + 'lookup', ], }, }, @@ -590,7 +590,7 @@ export const tableFields = [ 'table', ], operation: [ - 'lookup' + 'lookup', ], }, }, @@ -621,5 +621,5 @@ export const tableFields = [ description: 'By default only the first result gets returned. If options gets set all found matches get returned.', }, ], - } + }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts index 61f7b6f50..caffaec58 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts @@ -79,7 +79,7 @@ export const workbookFields = [ description: `The name of the worksheet to be added. If specified, name should be unqiue.
If not specified, Excel determines the name of the new worksheet.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* workbook:getAll */ @@ -149,6 +149,6 @@ export const workbookFields = [ default: '', description: `Fields the response will containt. Multiple can be added separated by ,.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts index e5811e6c6..282016153 100644 --- a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts @@ -118,7 +118,7 @@ export const worksheetFields = [ default: '', description: `Fields the response will containt. Multiple can be added separated by ,.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* worksheet:getContent */ @@ -209,7 +209,7 @@ export const worksheetFields = [ displayOptions: { show: { operation: [ - 'getContent' + 'getContent', ], resource: [ 'worksheet', @@ -240,7 +240,7 @@ export const worksheetFields = [ }, hide: { rawData: [ - true + true, ], }, }, @@ -264,7 +264,7 @@ export const worksheetFields = [ }, hide: { rawData: [ - true + true, ], }, }, @@ -298,6 +298,6 @@ export const worksheetFields = [ default: '', description: `Fields the response will containt. Multiple can be added separated by ,.`, }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts index b408f270c..97d647027 100644 --- a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts @@ -229,7 +229,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', diff --git a/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts index 601d3b539..9847f3b7b 100644 --- a/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Sql/GenericFunctions.ts @@ -11,7 +11,7 @@ import { ITables } from './TableInterface'; */ export function copyInputItem( item: INodeExecutionData, - properties: string[], + properties: string[] ): IDataObject { // Prepare the data to insert and copy it to be returned const newItem: IDataObject = {}; @@ -36,7 +36,7 @@ export function createTableStruct( getNodeParam: Function, items: INodeExecutionData[], additionalProperties: string[] = [], - keyName?: string, + keyName?: string ): ITables { return items.reduce((tables, item, index) => { const table = getNodeParam('table', index) as string; @@ -69,7 +69,7 @@ export function createTableStruct( */ export function executeQueryQueue( tables: ITables, - buildQueryQueue: Function, + buildQueryQueue: Function ): Promise { // tslint:disable-line:no-any return Promise.all( Object.keys(tables).map(table => { @@ -79,11 +79,11 @@ export function executeQueryQueue( table, columnString, items: tables[table][columnString], - }), + }) ); }); return Promise.all(columnsResults); - }), + }) ); } @@ -112,7 +112,7 @@ export function extractUpdateSet(item: IDataObject, columns: string[]): string { column => `${column} = ${ typeof item[column] === 'string' ? `'${item[column]}'` : item[column] - }`, + }` ) .join(','); } diff --git a/packages/nodes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts b/packages/nodes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts index 46128fa89..042c36370 100644 --- a/packages/nodes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts @@ -268,10 +268,10 @@ export class MicrosoftSql implements INodeType { return pool .request() .query( - `INSERT INTO ${table}(${columnString}) VALUES ${values};`, + `INSERT INTO ${table}(${columnString}) VALUES ${values};` ); }); - }, + } ); returnItems = items; @@ -281,13 +281,13 @@ export class MicrosoftSql implements INodeType { // ---------------------------------- const updateKeys = items.map( - (item, index) => this.getNodeParameter('updateKey', index) as string, + (item, index) => this.getNodeParameter('updateKey', index) as string ); const tables = createTableStruct( this.getNodeParameter, items, ['updateKey'].concat(updateKeys), - 'updateKey', + 'updateKey' ); await executeQueryQueue( tables, @@ -308,14 +308,14 @@ export class MicrosoftSql implements INodeType { const setValues = extractUpdateSet(item, columns); const condition = extractUpdateCondition( item, - item.updateKey as string, + item.updateKey as string ); return pool .request() .query(`UPDATE ${table} SET ${setValues} WHERE ${condition};`); }); - }, + } ); returnItems = items; @@ -343,9 +343,9 @@ export class MicrosoftSql implements INodeType { deleteKey => { const deleteItemsList = chunk( tables[table][deleteKey].map(item => - copyInputItem(item as INodeExecutionData, [deleteKey]), + copyInputItem(item as INodeExecutionData, [deleteKey]) ), - 1000, + 1000 ); const queryQueue = deleteItemsList.map(deleteValues => { return pool @@ -353,21 +353,21 @@ export class MicrosoftSql implements INodeType { .query( `DELETE FROM ${table} WHERE ${deleteKey} IN ${extractDeleteValues( deleteValues, - deleteKey, - )};`, + deleteKey + )};` ); }); return Promise.all(queryQueue); - }, + } ); return Promise.all(deleteKeyResults); - }), + }) ); const rowsDeleted = flatten(queriesResults).reduce( (acc: number, resp: mssql.IResult): number => (acc += resp.rowsAffected.reduce((sum, val) => (sum += val))), - 0, + 0 ); returnItems = this.helpers.returnJsonArray({ diff --git a/packages/nodes-base/nodes/Microsoft/Teams/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Teams/GenericFunctions.ts index f807dba6e..ff49f86ff 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function microsoftApiRequest(this: IExecuteFunctions | IExecuteSing body, qs, uri: uri || `https://graph.microsoft.com${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts b/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts index a8677b96e..9b1a1a18c 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/MicrosoftTeams.node.ts @@ -188,7 +188,7 @@ export class MicrosoftTeams implements INodeType { body: { contentType: messageType, content: message, - } + }, }; responseData = await microsoftApiRequest.call(this, 'POST', `/beta/teams/${teamId}/channels/${channelId}/messages`, body); } diff --git a/packages/nodes-base/nodes/Mindee/Mindee.node.ts b/packages/nodes-base/nodes/Mindee/Mindee.node.ts index 66ce2bbf8..f696588ab 100644 --- a/packages/nodes-base/nodes/Mindee/Mindee.node.ts +++ b/packages/nodes-base/nodes/Mindee/Mindee.node.ts @@ -72,7 +72,7 @@ export class Mindee implements INodeType { }, ], default: 'receipt', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, { displayName: 'Operation', @@ -85,7 +85,7 @@ export class Mindee implements INodeType { }, ], default: 'predict', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, { displayName: 'Binary Property', @@ -96,7 +96,7 @@ export class Mindee implements INodeType { displayOptions: { show: { operation: [ - 'predict' + 'predict', ], resource: [ 'receipt', @@ -156,10 +156,10 @@ export class Mindee implements INodeType { value: Buffer.from(binaryData.data, BINARY_ENCODING), options: { filename: binaryData.fileName, - } + }, }, }, - }, + } ); if (rawData === false) { @@ -198,10 +198,10 @@ export class Mindee implements INodeType { value: Buffer.from(binaryData.data, BINARY_ENCODING), options: { filename: binaryData.fileName, - } + }, }, }, - }, + } ); if (rawData === false) { diff --git a/packages/nodes-base/nodes/Mocean/Mocean.node.ts b/packages/nodes-base/nodes/Mocean/Mocean.node.ts index 0776e6f75..f3b575a61 100644 --- a/packages/nodes-base/nodes/Mocean/Mocean.node.ts +++ b/packages/nodes-base/nodes/Mocean/Mocean.node.ts @@ -27,7 +27,7 @@ export class Mocean implements INodeType { { name: 'moceanApi', required: true, - } + }, ], properties: [ // Node properties which the user gets displayed and @@ -44,7 +44,7 @@ export class Mocean implements INodeType { { name: 'Voice', value: 'voice', - } + }, ], default: 'sms', }, @@ -119,23 +119,23 @@ export class Mocean implements INodeType { options:[ { name: 'Chinese Mandarin (China)', - value: 'cmn-CN' + value: 'cmn-CN', }, { name: 'English (United Kingdom)', - value: 'en-GB' + value: 'en-GB', }, { name: 'English (United States)', - value: 'en-US' + value: 'en-US', }, { name: 'Japanese (Japan)', - value: 'ja-JP' + value: 'ja-JP', }, { name: 'Korean (Korea)', - value: 'ko-KR' + value: 'ko-KR', }, ], displayOptions: { @@ -209,7 +209,7 @@ export class Mocean implements INodeType { action: 'say', language, text, - } + }, ]; dataKey = 'voice'; diff --git a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts index c34203ec6..6bccd6dc3 100644 --- a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts +++ b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts @@ -151,7 +151,7 @@ export const boardItemFields = [ typeOptions: { loadOptionsMethod: 'getColumns', loadOptionsDependsOn: [ - 'boardId' + 'boardId', ], }, default: '', @@ -226,7 +226,7 @@ export const boardItemFields = [ ], }, }, - description: `Item's ID` + description: `Item's ID`, }, { displayName: 'Column Values', @@ -280,7 +280,7 @@ export const boardItemFields = [ typeOptions: { loadOptionsMethod: 'getGroups', loadOptionsDependsOn: [ - 'boardId' + 'boardId', ], }, required: true, @@ -361,7 +361,7 @@ export const boardItemFields = [ ], }, }, - description: `Item's ID` + description: `Item's ID`, }, /* -------------------------------------------------------------------------- */ /* boardItem:get */ @@ -382,7 +382,7 @@ export const boardItemFields = [ ], }, }, - description: `Item's ID (Multiple can be added separated by comma)` + description: `Item's ID (Multiple can be added separated by comma)`, }, /* -------------------------------------------------------------------------- */ /* boardItem:getAll */ @@ -502,7 +502,7 @@ export const boardItemFields = [ typeOptions: { loadOptionsMethod: 'getColumns', loadOptionsDependsOn: [ - 'boardId' + 'boardId', ], }, default: '', @@ -535,7 +535,7 @@ export const boardItemFields = [ ], }, }, - description: 'The column value to search items by.' + description: 'The column value to search items by.', }, { displayName: 'Return All', diff --git a/packages/nodes-base/nodes/MondayCom/GenericFunctions.ts b/packages/nodes-base/nodes/MondayCom/GenericFunctions.ts index f05ae3938..477f7e07a 100644 --- a/packages/nodes-base/nodes/MondayCom/GenericFunctions.ts +++ b/packages/nodes-base/nodes/MondayCom/GenericFunctions.ts @@ -35,7 +35,7 @@ export async function mondayComApiRequest(this: IExecuteFunctions | IWebhookFunc method: 'POST', body, uri: endpoint, - json: true + json: true, }; options = Object.assign({}, options, option); try { diff --git a/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts b/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts index d91a287b8..491e1f742 100644 --- a/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts +++ b/packages/nodes-base/nodes/MongoDb/MongoDb.node.ts @@ -22,7 +22,7 @@ export class MongoDb implements INodeType { const client: MongoClient = await MongoClient.connect(connectionString, { useNewUrlParser: true, - useUnifiedTopology: true + useUnifiedTopology: true, }); const mdb = client.db(database as string); @@ -76,8 +76,8 @@ export class MongoDb implements INodeType { returnItems.push({ json: { ...insertItems[parseInt(i, 10)], - id: insertedIds[parseInt(i, 10)] as string - } + id: insertedIds[parseInt(i, 10)] as string, + }, }); } } else if (operation === 'update') { diff --git a/packages/nodes-base/nodes/MongoDb/mongo.node.options.ts b/packages/nodes-base/nodes/MongoDb/mongo.node.options.ts index 953a45a62..d4bd0a37b 100644 --- a/packages/nodes-base/nodes/MongoDb/mongo.node.options.ts +++ b/packages/nodes-base/nodes/MongoDb/mongo.node.options.ts @@ -12,15 +12,15 @@ export const nodeDescription: INodeTypeDescription = { description: 'Find, insert and update documents in MongoDB.', defaults: { name: 'MongoDB', - color: '#13AA52' + color: '#13AA52', }, inputs: ['main'], outputs: ['main'], credentials: [ { name: 'mongoDb', - required: true - } + required: true, + }, ], properties: [ { @@ -31,26 +31,26 @@ export const nodeDescription: INodeTypeDescription = { { name: 'Delete', value: 'delete', - description: 'Delete documents.' + description: 'Delete documents.', }, { name: 'Find', value: 'find', - description: 'Find documents.' + description: 'Find documents.', }, { name: 'Insert', value: 'insert', - description: 'Insert documents.' + description: 'Insert documents.', }, { name: 'Update', value: 'update', - description: 'Updates documents.' - } + description: 'Updates documents.', + }, ], default: 'find', - description: 'The operation to perform.' + description: 'The operation to perform.', }, { @@ -59,7 +59,7 @@ export const nodeDescription: INodeTypeDescription = { type: 'string', required: true, default: '', - description: 'MongoDB Collection' + description: 'MongoDB Collection', }, // ---------------------------------- @@ -70,19 +70,19 @@ export const nodeDescription: INodeTypeDescription = { name: 'query', type: 'json', typeOptions: { - rows: 5 + rows: 5, }, displayOptions: { show: { operation: [ - 'delete' + 'delete', ], }, }, default: '{}', placeholder: `{ "birth": { "$gt": "1950-01-01" } }`, required: true, - description: 'MongoDB Delete query.' + description: 'MongoDB Delete query.', }, // ---------------------------------- @@ -93,17 +93,17 @@ export const nodeDescription: INodeTypeDescription = { name: 'query', type: 'json', typeOptions: { - rows: 5 + rows: 5, }, displayOptions: { show: { - operation: ['find'] - } + operation: ['find'], + }, }, default: '{}', placeholder: `{ "birth": { "$gt": "1950-01-01" } }`, required: true, - description: 'MongoDB Find query.' + description: 'MongoDB Find query.', }, // ---------------------------------- @@ -115,13 +115,13 @@ export const nodeDescription: INodeTypeDescription = { type: 'string', displayOptions: { show: { - operation: ['insert'] - } + operation: ['insert'], + }, }, default: '', placeholder: 'name,description', description: - 'Comma separated list of the fields to be included into the new document.' + 'Comma separated list of the fields to be included into the new document.', }, // ---------------------------------- @@ -133,13 +133,13 @@ export const nodeDescription: INodeTypeDescription = { type: 'string', displayOptions: { show: { - operation: ['update'] - } + operation: ['update'], + }, }, default: 'id', required: true, description: - 'Name of the property which decides which rows in the database should be updated. Normally that would be "id".' + 'Name of the property which decides which rows in the database should be updated. Normally that would be "id".', }, { displayName: 'Fields', @@ -147,13 +147,13 @@ export const nodeDescription: INodeTypeDescription = { type: 'string', displayOptions: { show: { - operation: ['update'] - } + operation: ['update'], + }, }, default: '', placeholder: 'name,description', description: - 'Comma separated list of the fields to be included into the new document.' - } - ] + 'Comma separated list of the fields to be included into the new document.', + }, + ], }; diff --git a/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts b/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts index fcc080558..46f8e50f3 100644 --- a/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts +++ b/packages/nodes-base/nodes/MongoDb/mongo.node.utils.ts @@ -44,7 +44,7 @@ function buildMongoConnectionParams( ) { return { connectionString: credentials.connectionString.trim(), - database: sanitizedDbName + database: sanitizedDbName, }; } else { throw new Error( @@ -54,7 +54,7 @@ function buildMongoConnectionParams( } else { return { connectionString: buildParameterizedConnString(credentials), - database: sanitizedDbName + database: sanitizedDbName, }; } } @@ -71,7 +71,7 @@ export function validateAndResolveMongoCredentials( throw new Error('No credentials got returned!'); } else { return buildMongoConnectionParams( - credentials as unknown as IMongoCredentialsType, + credentials as unknown as IMongoCredentialsType ); } } diff --git a/packages/nodes-base/nodes/MoveBinaryData.node.ts b/packages/nodes-base/nodes/MoveBinaryData.node.ts index d574dc5d4..b715bf397 100644 --- a/packages/nodes-base/nodes/MoveBinaryData.node.ts +++ b/packages/nodes-base/nodes/MoveBinaryData.node.ts @@ -230,7 +230,7 @@ export class MoveBinaryData implements INodeType { 'binaryToJson', ], '/setAllData': [ - false + false, ], }, }, @@ -301,7 +301,7 @@ export class MoveBinaryData implements INodeType { description: 'Use data as is and do not JSON.stringify it.', }, ], - } + }, ], }; diff --git a/packages/nodes-base/nodes/Msg91/GenericFunctions.ts b/packages/nodes-base/nodes/Msg91/GenericFunctions.ts index 893996fc8..3514916b0 100644 --- a/packages/nodes-base/nodes/Msg91/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Msg91/GenericFunctions.ts @@ -33,7 +33,7 @@ export async function msg91ApiRequest(this: IHookFunctions | IExecuteFunctions, form: body, qs: query, uri: `https://api.msg91.com/api${endpoint}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Msg91/Msg91.node.ts b/packages/nodes-base/nodes/Msg91/Msg91.node.ts index 0430884a1..016d511fc 100644 --- a/packages/nodes-base/nodes/Msg91/Msg91.node.ts +++ b/packages/nodes-base/nodes/Msg91/Msg91.node.ts @@ -30,7 +30,7 @@ export class Msg91 implements INodeType { { name: 'msg91Api', required: true, - } + }, ], properties: [ { @@ -123,7 +123,7 @@ export class Msg91 implements INodeType { }, description: 'The message to send', }, - ] + ], }; diff --git a/packages/nodes-base/nodes/MySql/MySql.node.ts b/packages/nodes-base/nodes/MySql/MySql.node.ts index 335b42fcc..43974e766 100644 --- a/packages/nodes-base/nodes/MySql/MySql.node.ts +++ b/packages/nodes-base/nodes/MySql/MySql.node.ts @@ -28,7 +28,7 @@ export class MySql implements INodeType { { name: 'mySql', required: true, - } + }, ], properties: [ { @@ -69,7 +69,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'executeQuery' + 'executeQuery', ], }, }, @@ -90,7 +90,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'insert' + 'insert', ], }, }, @@ -105,7 +105,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'insert' + 'insert', ], }, }, @@ -125,7 +125,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], }, }, @@ -140,7 +140,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], }, }, @@ -155,7 +155,7 @@ export class MySql implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], }, }, @@ -164,7 +164,7 @@ export class MySql implements INodeType { description: 'Comma separated list of the properties which should used as columns for rows to update.', }, - ] + ], }; diff --git a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts index d938ead9d..e35b0b559 100644 --- a/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts +++ b/packages/nodes-base/nodes/NextCloud/NextCloud.node.ts @@ -200,7 +200,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'copy' + 'copy', ], resource: [ 'file', @@ -220,7 +220,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'copy' + 'copy', ], resource: [ 'file', @@ -244,7 +244,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'file', @@ -268,7 +268,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'move' + 'move', ], resource: [ 'file', @@ -288,7 +288,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'move' + 'move', ], resource: [ 'file', @@ -312,7 +312,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -331,7 +331,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -353,7 +353,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -372,7 +372,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -389,10 +389,10 @@ export class NextCloud implements INodeType { displayOptions: { show: { binaryDataUpload: [ - false + false, ], operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -412,10 +412,10 @@ export class NextCloud implements INodeType { displayOptions: { show: { binaryDataUpload: [ - true + true, ], operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -445,7 +445,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'folder', @@ -467,7 +467,7 @@ export class NextCloud implements INodeType { displayOptions: { show: { operation: [ - 'list' + 'list', ], resource: [ 'folder', diff --git a/packages/nodes-base/nodes/OpenWeatherMap.node.ts b/packages/nodes-base/nodes/OpenWeatherMap.node.ts index db733c04b..7ad14ee88 100644 --- a/packages/nodes-base/nodes/OpenWeatherMap.node.ts +++ b/packages/nodes-base/nodes/OpenWeatherMap.node.ts @@ -28,7 +28,7 @@ export class OpenWeatherMap implements INodeType { { name: 'openWeatherMapApi', required: true, - } + }, ], properties: [ { @@ -224,7 +224,7 @@ export class OpenWeatherMap implements INodeType { // Set base data qs = { APPID: credentials.accessToken, - units: this.getNodeParameter('format', i) as string + units: this.getNodeParameter('format', i) as string, }; // Get the location diff --git a/packages/nodes-base/nodes/Paddle/CouponDescription.ts b/packages/nodes-base/nodes/Paddle/CouponDescription.ts index 7f60c73c6..2f1f7612d 100644 --- a/packages/nodes-base/nodes/Paddle/CouponDescription.ts +++ b/packages/nodes-base/nodes/Paddle/CouponDescription.ts @@ -50,11 +50,11 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], jsonParameters: [ - false - ] + false, + ], }, }, default: 'checkout', @@ -62,13 +62,13 @@ export const couponFields = [ options: [ { name: 'Checkout', - value: 'checkout' + value: 'checkout', }, { name: 'Product', - value: 'product' + value: 'product', }, - ] + ], }, { displayName: 'Product IDs', @@ -83,14 +83,14 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], couponType: [ 'product', ], jsonParameters: [ - false - ] + false, + ], }, }, default: '', @@ -107,11 +107,11 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], jsonParameters: [ - false - ] + false, + ], }, }, default: 'flat', @@ -119,13 +119,13 @@ export const couponFields = [ options: [ { name: 'Flat', - value: 'flat' + value: 'flat', }, { name: 'Percentage', - value: 'percentage' + value: 'percentage', }, - ] + ], }, { displayName: 'Discount Amount Currency', @@ -134,7 +134,7 @@ export const couponFields = [ default: 1, description: 'Discount amount in currency.', typeOptions: { - minValue: 1 + minValue: 1, }, displayOptions: { show: { @@ -142,14 +142,14 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], discountType: [ 'flat', ], jsonParameters: [ - false - ] + false, + ], }, }, }, @@ -161,7 +161,7 @@ export const couponFields = [ description: 'Discount amount in percentage.', typeOptions: { minValue: 1, - maxValue: 100 + maxValue: 100, }, displayOptions: { show: { @@ -169,14 +169,14 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], discountType: [ 'percentage', ], jsonParameters: [ - false - ] + false, + ], }, }, }, @@ -189,107 +189,107 @@ export const couponFields = [ options: [ { name: 'ARS', - value: 'ARS' + value: 'ARS', }, { name: 'AUD', - value: 'AUD' + value: 'AUD', }, { name: 'BRL', - value: 'BRL' + value: 'BRL', }, { name: 'CAD', - value: 'CAD' + value: 'CAD', }, { name: 'CHF', - value: 'CHF' + value: 'CHF', }, { name: 'CNY', - value: 'CNY' + value: 'CNY', }, { name: 'CZK', - value: 'CZK' + value: 'CZK', }, { name: 'DKK', - value: 'DKK' + value: 'DKK', }, { name: 'EUR', - value: 'EUR' + value: 'EUR', }, { name: 'GBP', - value: 'GBP' + value: 'GBP', }, { name: 'HKD', - value: 'HKD' + value: 'HKD', }, { name: 'HUF', - value: 'HUF' + value: 'HUF', }, { name: 'INR', - value: 'INR' + value: 'INR', }, { name: 'JPY', - value: 'JPY' + value: 'JPY', }, { name: 'KRW', - value: 'KRW' + value: 'KRW', }, { name: 'MXN', - value: 'MXN' + value: 'MXN', }, { name: 'NOK', - value: 'NOK' + value: 'NOK', }, { name: 'NZD', - value: 'NZD' + value: 'NZD', }, { name: 'PLN', - value: 'PLN' + value: 'PLN', }, { name: 'RUB', - value: 'RUB' + value: 'RUB', }, { name: 'SEK', - value: 'SEK' + value: 'SEK', }, { name: 'SGD', - value: 'SGD' + value: 'SGD', }, { name: 'THB', - value: 'THB' + value: 'THB', }, { name: 'TWD', - value: 'TWD' + value: 'TWD', }, { name: 'USD', - value: 'USD' + value: 'USD', }, { name: 'ZAR', - value: 'ZAR' + value: 'ZAR', }, ], displayOptions: { @@ -298,14 +298,14 @@ export const couponFields = [ 'coupon', ], operation: [ - `create` + `create`, ], discountType: [ 'flat', ], jsonParameters: [ - false - ] + false, + ], }, }, }, @@ -363,8 +363,8 @@ export const couponFields = [ 'create', ], jsonParameters: [ - false - ] + false, + ], }, }, default: {}, @@ -410,7 +410,7 @@ export const couponFields = [ type: 'string', typeOptions: { minValue: 1, - maxValue: 50 + maxValue: 50, }, default: '', description: 'The name of the coupon group this coupon should be assigned to.', @@ -444,8 +444,8 @@ export const couponFields = [ 'coupon', ], operation: [ - `getAll` - ] + `getAll`, + ], }, }, default: '', @@ -506,7 +506,7 @@ export const couponFields = [ 'coupon', ], operation: [ - `update` + `update`, ], jsonParameters: [ false, @@ -518,13 +518,13 @@ export const couponFields = [ options: [ { name: 'Coupon Code', - value: 'couponCode' + value: 'couponCode', }, { name: 'Group', - value: 'group' + value: 'group', }, - ] + ], }, { displayName: 'Coupon Code', @@ -536,10 +536,10 @@ export const couponFields = [ 'coupon', ], operation: [ - 'update' + 'update', ], updateBy: [ - 'couponCode' + 'couponCode', ], jsonParameters: [ false, @@ -559,10 +559,10 @@ export const couponFields = [ 'coupon', ], operation: [ - 'update' + 'update', ], updateBy: [ - 'group' + 'group', ], jsonParameters: [ false, @@ -626,8 +626,8 @@ export const couponFields = [ 'update', ], jsonParameters: [ - false - ] + false, + ], }, }, default: {}, @@ -665,107 +665,107 @@ export const couponFields = [ options: [ { name: 'ARS', - value: 'ARS' + value: 'ARS', }, { name: 'AUD', - value: 'AUD' + value: 'AUD', }, { name: 'BRL', - value: 'BRL' + value: 'BRL', }, { name: 'CAD', - value: 'CAD' + value: 'CAD', }, { name: 'CHF', - value: 'CHF' + value: 'CHF', }, { name: 'CNY', - value: 'CNY' + value: 'CNY', }, { name: 'CZK', - value: 'CZK' + value: 'CZK', }, { name: 'DKK', - value: 'DKK' + value: 'DKK', }, { name: 'EUR', - value: 'EUR' + value: 'EUR', }, { name: 'GBP', - value: 'GBP' + value: 'GBP', }, { name: 'HKD', - value: 'HKD' + value: 'HKD', }, { name: 'HUF', - value: 'HUF' + value: 'HUF', }, { name: 'INR', - value: 'INR' + value: 'INR', }, { name: 'JPY', - value: 'JPY' + value: 'JPY', }, { name: 'KRW', - value: 'KRW' + value: 'KRW', }, { name: 'MXN', - value: 'MXN' + value: 'MXN', }, { name: 'NOK', - value: 'NOK' + value: 'NOK', }, { name: 'NZD', - value: 'NZD' + value: 'NZD', }, { name: 'PLN', - value: 'PLN' + value: 'PLN', }, { name: 'RUB', - value: 'RUB' + value: 'RUB', }, { name: 'SEK', - value: 'SEK' + value: 'SEK', }, { name: 'SGD', - value: 'SGD' + value: 'SGD', }, { name: 'THB', - value: 'THB' + value: 'THB', }, { name: 'TWD', - value: 'TWD' + value: 'TWD', }, { name: 'USD', - value: 'USD' + value: 'USD', }, { name: 'ZAR', - value: 'ZAR' + value: 'ZAR', }, ], }, @@ -783,7 +783,7 @@ export const couponFields = [ }, }, typeOptions: { - minValue: 0 + minValue: 0, }, }, { @@ -801,7 +801,7 @@ export const couponFields = [ }, typeOptions: { minValue: 0, - maxValue: 100 + maxValue: 100, }, }, { @@ -813,13 +813,13 @@ export const couponFields = [ options: [ { name: 'Flat', - value: 'flat' + value: 'flat', }, { name: 'Percentage', - value: 'percentage' + value: 'percentage', }, - ] + ], }, ], }, @@ -845,7 +845,7 @@ export const couponFields = [ type: 'string', typeOptions: { minValue: 1, - maxValue: 50 + maxValue: 50, }, default: '', description: 'New group name to move coupon to.', diff --git a/packages/nodes-base/nodes/Paddle/GenericFunctions.ts b/packages/nodes-base/nodes/Paddle/GenericFunctions.ts index a481b4e98..ee0e5337b 100644 --- a/packages/nodes-base/nodes/Paddle/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Paddle/GenericFunctions.ts @@ -24,11 +24,11 @@ export async function paddleApiRequest(this: IHookFunctions | IExecuteFunctions const options: OptionsWithUri = { method, headers: { - 'content-type': 'application/json' + 'content-type': 'application/json', }, uri: `https://vendors.paddle.com/api${endpoint}`, body, - json: true + json: true, }; body['vendor_id'] = credentials.vendorId; diff --git a/packages/nodes-base/nodes/Paddle/OrderDescription.ts b/packages/nodes-base/nodes/Paddle/OrderDescription.ts index d4afd8f7c..f9d6c9859 100644 --- a/packages/nodes-base/nodes/Paddle/OrderDescription.ts +++ b/packages/nodes-base/nodes/Paddle/OrderDescription.ts @@ -19,7 +19,7 @@ export const orderOperations = [ name: 'Get', value: 'get', description: 'Get an order', - } + }, ], default: 'get', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/Paddle/Paddle.node.ts b/packages/nodes-base/nodes/Paddle/Paddle.node.ts index eda54da1d..a72526fe5 100644 --- a/packages/nodes-base/nodes/Paddle/Paddle.node.ts +++ b/packages/nodes-base/nodes/Paddle/Paddle.node.ts @@ -121,7 +121,7 @@ export class Paddle implements INodeType { // ...orderFields, // USER ...userOperations, - ...userFields + ...userFields, ], }; @@ -177,7 +177,7 @@ export class Paddle implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts index b2020d4f5..3a4c5a44a 100644 --- a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts +++ b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts @@ -24,7 +24,7 @@ export const paymentOperations = [ name: 'Reschedule', value: 'reschedule', description: 'Reschedule payment.', - } + }, ], default: 'getAll', description: 'The operation to perform.', @@ -130,8 +130,8 @@ export const paymentFields = [ 'getAll', ], jsonParameters: [ - false - ] + false, + ], }, }, default: {}, @@ -180,21 +180,21 @@ export const paymentFields = [ options: [ { name: 'Active', - value: 'active' + value: 'active', }, { name: 'Past Due', - value: 'past_due' + value: 'past_due', }, { name: 'Paused', - value: 'paused' + value: 'paused', }, { name: 'Trialing', - value: 'trialing' + value: 'trialing', }, - ] + ], }, { displayName: 'One off charge', diff --git a/packages/nodes-base/nodes/Paddle/PlanDescription.ts b/packages/nodes-base/nodes/Paddle/PlanDescription.ts index 152db9a7f..8df2edda3 100644 --- a/packages/nodes-base/nodes/Paddle/PlanDescription.ts +++ b/packages/nodes-base/nodes/Paddle/PlanDescription.ts @@ -24,7 +24,7 @@ export const planOperations = [ name: 'Get All', value: 'getAll', description: 'Get all plans.', - } + }, ], default: 'get', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/Paddle/ProductDescription.ts b/packages/nodes-base/nodes/Paddle/ProductDescription.ts index 9a627a86e..2db617ec8 100644 --- a/packages/nodes-base/nodes/Paddle/ProductDescription.ts +++ b/packages/nodes-base/nodes/Paddle/ProductDescription.ts @@ -19,7 +19,7 @@ export const productOperations = [ name: 'Get All', value: 'getAll', description: 'Get all products.', - } + }, ], default: 'getAll', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/Paddle/UserDescription.ts b/packages/nodes-base/nodes/Paddle/UserDescription.ts index 50b1a9295..b135ac693 100644 --- a/packages/nodes-base/nodes/Paddle/UserDescription.ts +++ b/packages/nodes-base/nodes/Paddle/UserDescription.ts @@ -19,7 +19,7 @@ export const userOperations = [ name: 'Get All', value: 'getAll', description: 'Get all users', - } + }, ], default: 'getAll', description: 'The operation to perform.', @@ -55,7 +55,7 @@ export const userFields = [ required: true, typeOptions: { minValue: 1, - maxValue: 200 + maxValue: 200, }, displayOptions: { show: { @@ -66,8 +66,8 @@ export const userFields = [ 'getAll', ], returnAll: [ - false - ] + false, + ], }, }, description: 'Number of subscription records to return per page.', @@ -126,8 +126,8 @@ export const userFields = [ 'getAll', ], jsonParameters: [ - false - ] + false, + ], }, }, default: {}, @@ -155,21 +155,21 @@ export const userFields = [ options: [ { name: 'Active', - value: 'active' + value: 'active', }, { name: 'Past Due', - value: 'past_due' + value: 'past_due', }, { name: 'Paused', - value: 'paused' + value: 'paused', }, { name: 'Trialing', - value: 'trialing' + value: 'trialing', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/PagerDuty/GenericFunctions.ts b/packages/nodes-base/nodes/PagerDuty/GenericFunctions.ts index f4832b923..2ca0ce625 100644 --- a/packages/nodes-base/nodes/PagerDuty/GenericFunctions.ts +++ b/packages/nodes-base/nodes/PagerDuty/GenericFunctions.ts @@ -23,7 +23,7 @@ export async function pagerDutyApiRequest(this: IExecuteFunctions | IWebhookFunc const options: OptionsWithUri = { headers: { - Accept: 'application/vnd.pagerduty+json;version=2' + Accept: 'application/vnd.pagerduty+json;version=2', }, method, body, diff --git a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts index 10c4e4b13..200fdf87b 100644 --- a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts @@ -205,7 +205,7 @@ export const incidentFields = [ type: 'string', default: '', description: 'An URL for the conference bridge. This could be a link to a web conference or Slack channel.', - } + }, ], }, ], @@ -226,7 +226,7 @@ export const incidentFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the incident.', @@ -634,7 +634,7 @@ export const incidentFields = [ type: 'string', default: '', description: 'An URL for the conference bridge. This could be a link to a web conference or Slack channel.', - } + }, ], }, ], diff --git a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts index 7164d3121..8967cfa8d 100644 --- a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts @@ -48,7 +48,7 @@ export const logEntryFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the log entry.', diff --git a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts index c5e93c7ca..b651a1bd9 100644 --- a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts +++ b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts @@ -43,7 +43,7 @@ export const userFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the user.', diff --git a/packages/nodes-base/nodes/PayPal/GenericFunctions.ts b/packages/nodes-base/nodes/PayPal/GenericFunctions.ts index 90e4c33a2..82d3ebd34 100644 --- a/packages/nodes-base/nodes/PayPal/GenericFunctions.ts +++ b/packages/nodes-base/nodes/PayPal/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function payPalApiRequest(this: IHookFunctions | IExecuteFunctions qs: query || {}, uri: uri || `${env}/v1${endpoint}`, body, - json: true + json: true, }; try { return await this.helpers.request!(options); @@ -67,7 +67,7 @@ async function getAccessToken(this: IHookFunctions | IExecuteFunctions | IExecut grant_type: 'client_credentials', }, uri: `${env}/v1/oauth2/token`, - json: true + json: true, }; try { return await this.helpers.request!(options); diff --git a/packages/nodes-base/nodes/PayPal/PayPal.node.ts b/packages/nodes-base/nodes/PayPal/PayPal.node.ts index dd10ef9af..0fbc56d80 100644 --- a/packages/nodes-base/nodes/PayPal/PayPal.node.ts +++ b/packages/nodes-base/nodes/PayPal/PayPal.node.ts @@ -46,7 +46,7 @@ export class PayPal implements INodeType { { name: 'payPalApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts b/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts index a55b93d15..2962d9260 100644 --- a/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts +++ b/packages/nodes-base/nodes/PayPal/PayPalTrigger.node.ts @@ -34,7 +34,7 @@ export class PayPalTrigger implements INodeType { { name: 'payPalApi', required: true, - } + }, ], webhooks: [ { @@ -53,7 +53,7 @@ export class PayPalTrigger implements INodeType { default: [], description: 'The event to listen to.', typeOptions: { - loadOptionsMethod: 'getEvents' + loadOptionsMethod: 'getEvents', }, options: [], }, @@ -70,7 +70,7 @@ export class PayPalTrigger implements INodeType { name: '*', value: '*', description: 'Any time any event is triggered (Wildcard Event).', - } + }, ]; let events; try { @@ -194,7 +194,7 @@ export class PayPalTrigger implements INodeType { } return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts index 13a74cea6..af9d12faa 100644 --- a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts +++ b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts @@ -62,11 +62,11 @@ export const payoutFields = [ displayOptions: { show: { resource: [ - 'payout' + 'payout', ], operation: [ 'create', - ] + ], }, }, }, @@ -84,8 +84,8 @@ export const payoutFields = [ 'create', ], jsonParameters: [ - false - ] + false, + ], }, }, typeOptions: { @@ -136,32 +136,32 @@ export const payoutFields = [ options: [ { name: 'Australian dollar', - value: 'AUD' + value: 'AUD', }, { name: 'Brazilian real', - value: 'BRL' + value: 'BRL', }, { name: 'Canadian dollar', - value: 'CAD' + value: 'CAD', }, { name: 'Czech koruna', - value: 'CZK' + value: 'CZK', }, { name: 'Danish krone', - value: 'DKK' + value: 'DKK', }, { name: 'Euro', - value: 'EUR' + value: 'EUR', }, { name: 'United States dollar', - value: 'USD' - } + value: 'USD', + }, ], default: 'USD', description: 'Currency', @@ -208,7 +208,7 @@ export const payoutFields = [ default: 'paypal', description: 'The recipient wallet', }, - ] + ], }, ], }, @@ -223,14 +223,14 @@ export const payoutFields = [ displayOptions: { show: { resource: [ - 'payout' + 'payout', ], operation: [ 'create', ], jsonParameters: [ true, - ] + ], }, }, }, @@ -319,7 +319,7 @@ export const payoutFields = [ type: 'number', typeOptions: { maxValue: 1000, - minValue: 1 + minValue: 1, }, default: 100, displayOptions: { diff --git a/packages/nodes-base/nodes/PhilipsHue/GenericFunctions.ts b/packages/nodes-base/nodes/PhilipsHue/GenericFunctions.ts index 73b1e1b7a..3f43b66cd 100644 --- a/packages/nodes-base/nodes/PhilipsHue/GenericFunctions.ts +++ b/packages/nodes-base/nodes/PhilipsHue/GenericFunctions.ts @@ -20,7 +20,7 @@ export async function philipsHueApiRequest(this: IExecuteFunctions | ILoadOption body, qs, uri: uri || `https://api.meethue.com${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts index 0dc4ab892..cdf511851 100644 --- a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts +++ b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts @@ -34,11 +34,11 @@ export const lightOperations = [ name: 'Update', value: 'update', description: 'Update an light', - } + }, ], default: 'update', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const lightFields = [ diff --git a/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts b/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts index f636ab287..59d16d415 100644 --- a/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts +++ b/packages/nodes-base/nodes/PhilipsHue/PhilipsHue.node.ts @@ -75,19 +75,19 @@ export class PhilipsHue implements INodeType { const lights = await philipsHueApiRequest.call( this, 'GET', - `/bridge/${user}/lights`, + `/bridge/${user}/lights` ); for (const light of Object.keys(lights)) { const lightName = lights[light].name; const lightId = light; returnData.push({ name: lightName, - value: lightId + value: lightId, }); } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -132,7 +132,7 @@ export class PhilipsHue implements INodeType { this, 'PUT', `/bridge/${user}/lights/${lightId}/state`, - body, + body ); responseData = {}; diff --git a/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts b/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts index 4b4d29b98..9122baf01 100644 --- a/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Pipedrive/GenericFunctions.ts @@ -158,7 +158,7 @@ export async function pipedriveApiRequestAllItems(this: IHookFunctions | IExecut ); return { - data: returnData + data: returnData, }; } diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index ac6d062d4..e18f0448c 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -90,7 +90,7 @@ export class Pipedrive implements INodeType { options: [ { name: 'API Token', - value: 'apiToken' + value: 'apiToken', }, { name: 'OAuth2', @@ -591,7 +591,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -631,7 +631,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], resource: [ 'activity', @@ -653,7 +653,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'activity', @@ -672,7 +672,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'activity', @@ -782,7 +782,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -964,7 +964,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -1025,7 +1025,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], resource: [ 'deal', @@ -1047,7 +1047,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'deal', @@ -1066,7 +1066,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'deal', @@ -1206,7 +1206,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -1231,7 +1231,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'file', @@ -1349,7 +1349,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'download' + 'download', ], resource: [ 'file', @@ -1369,7 +1369,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], resource: [ 'file', @@ -1420,7 +1420,7 @@ export class Pipedrive implements INodeType { show: { operation: [ 'create', - 'getAll' + 'getAll', ], resource: [ 'note', @@ -1485,7 +1485,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], resource: [ 'note', @@ -1507,7 +1507,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'note', @@ -1526,7 +1526,7 @@ export class Pipedrive implements INodeType { displayOptions: { show: { operation: [ - 'update' + 'update', ], resource: [ 'note', @@ -1659,7 +1659,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -1827,7 +1827,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -1997,7 +1997,7 @@ export class Pipedrive implements INodeType { default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -2219,7 +2219,7 @@ export class Pipedrive implements INodeType { show: { operation: [ 'create', - 'getAll' + 'getAll', ], resource: [ 'note', @@ -2271,7 +2271,7 @@ export class Pipedrive implements INodeType { } return returnData; }, - } + }, }; @@ -2485,7 +2485,7 @@ export class Pipedrive implements INodeType { options: { contentType: item.binary[binaryPropertyName].mimeType, filename: item.binary[binaryPropertyName].fileName, - } + }, }; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; diff --git a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts index ea00bb209..e212fb0fe 100644 --- a/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/PipedriveTrigger.node.ts @@ -83,11 +83,11 @@ export class PipedriveTrigger implements INodeType { options: [ { name: 'Basic Auth', - value: 'basicAuth' + value: 'basicAuth', }, { name: 'None', - value: 'none' + value: 'none', }, ], default: 'none', @@ -106,22 +106,22 @@ export class PipedriveTrigger implements INodeType { { name: 'Added', value: 'added', - description: 'Data got added' + description: 'Data got added', }, { name: 'Deleted', value: 'deleted', - description: 'Data got deleted' + description: 'Data got deleted', }, { name: 'Merged', value: 'merged', - description: 'Data got merged' + description: 'Data got merged', }, { name: 'Updated', value: 'updated', - description: 'Data got updated' + description: 'Data got updated', }, ], default: '*', @@ -311,7 +311,7 @@ export class PipedriveTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Postgres/Postgres.node.functions.ts b/packages/nodes-base/nodes/Postgres/Postgres.node.functions.ts index eaeebe313..663accf22 100644 --- a/packages/nodes-base/nodes/Postgres/Postgres.node.functions.ts +++ b/packages/nodes-base/nodes/Postgres/Postgres.node.functions.ts @@ -39,7 +39,7 @@ export function pgQuery( getNodeParam: Function, pgp: pgPromise.IMain<{}, pg.IClient>, db: pgPromise.IDatabase<{}, pg.IClient>, - input: INodeExecutionData[], + input: INodeExecutionData[] ): Promise { const queries: string[] = []; for (let i = 0; i < input.length; i++) { @@ -62,7 +62,7 @@ export async function pgInsert( getNodeParam: Function, pgp: pgPromise.IMain<{}, pg.IClient>, db: pgPromise.IDatabase<{}, pg.IClient>, - items: INodeExecutionData[], + items: INodeExecutionData[] ): Promise { const table = getNodeParam('table', 0) as string; const schema = getNodeParam('schema', 0) as string; @@ -102,7 +102,7 @@ export async function pgUpdate( getNodeParam: Function, pgp: pgPromise.IMain<{}, pg.IClient>, db: pgPromise.IDatabase<{}, pg.IClient>, - items: INodeExecutionData[], + items: INodeExecutionData[] ): Promise { const table = getNodeParam('table', 0) as string; const schema = getNodeParam('schema', 0) as string; diff --git a/packages/nodes-base/nodes/Postmark/GenericFunctions.ts b/packages/nodes-base/nodes/Postmark/GenericFunctions.ts index df1e3a1f0..5b03ebf26 100644 --- a/packages/nodes-base/nodes/Postmark/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Postmark/GenericFunctions.ts @@ -25,12 +25,12 @@ export async function postmarkApiRequest(this: IExecuteFunctions | IWebhookFunct headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', - 'X-Postmark-Server-Token' : credentials.serverToken + 'X-Postmark-Server-Token' : credentials.serverToken, }, method, body, uri: 'https://api.postmarkapp.com' + endpoint, - json: true + json: true, }; if (body === {}) { delete options.body; diff --git a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts index 951e19496..e6d86b515 100644 --- a/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts +++ b/packages/nodes-base/nodes/Postmark/PostmarkTrigger.node.ts @@ -169,26 +169,26 @@ export class PostmarkTrigger implements INodeType { Triggers: { Open:{ Enabled: false, - PostFirstOpenOnly: false + PostFirstOpenOnly: false, }, Click:{ - Enabled: false + Enabled: false, }, Delivery:{ - Enabled: false + Enabled: false, }, Bounce:{ Enabled: false, - IncludeContent: false + IncludeContent: false, }, SpamComplaint:{ Enabled: false, - IncludeContent: false + IncludeContent: false, }, SubscriptionChange: { - Enabled: false - } - } + Enabled: false, + }, + }, }; const events = this.getNodeParameter('events') as string[]; @@ -255,7 +255,7 @@ export class PostmarkTrigger implements INodeType { const req = this.getRequestObject(); return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Pushover/Pushover.node.ts b/packages/nodes-base/nodes/Pushover/Pushover.node.ts index d450067f7..296668839 100644 --- a/packages/nodes-base/nodes/Pushover/Pushover.node.ts +++ b/packages/nodes-base/nodes/Pushover/Pushover.node.ts @@ -369,7 +369,7 @@ export class Pushover implements INodeType { value: Buffer.from(binaryData.data, BINARY_ENCODING), options: { filename: binaryData.fileName, - } + }, }; delete body.attachmentsUi; @@ -380,7 +380,7 @@ export class Pushover implements INodeType { this, 'POST', `/messages.json`, - body, + body ); } } diff --git a/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts b/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts index dbdfd6445..15e7bcb2a 100644 --- a/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts +++ b/packages/nodes-base/nodes/QuestDb/QuestDb.node.ts @@ -45,7 +45,7 @@ export class QuestDb implements INodeType { name: 'Insert', value: 'insert', description: 'Insert rows in database.', - } + }, ], default: 'insert', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/ReadBinaryFile.node.ts b/packages/nodes-base/nodes/ReadBinaryFile.node.ts index a96c17457..ee38fc0cd 100644 --- a/packages/nodes-base/nodes/ReadBinaryFile.node.ts +++ b/packages/nodes-base/nodes/ReadBinaryFile.node.ts @@ -45,7 +45,7 @@ export class ReadBinaryFile implements INodeType { required: true, description: 'Name of the binary property to which to
write the data of the read file.', }, - ] + ], }; diff --git a/packages/nodes-base/nodes/ReadBinaryFiles.node.ts b/packages/nodes-base/nodes/ReadBinaryFiles.node.ts index 1533286f7..4e8d9f2ac 100644 --- a/packages/nodes-base/nodes/ReadBinaryFiles.node.ts +++ b/packages/nodes-base/nodes/ReadBinaryFiles.node.ts @@ -47,7 +47,7 @@ export class ReadBinaryFiles implements INodeType { required: true, description: 'Name of the binary property to which to
write the data of the read files.', }, - ] + ], }; @@ -67,7 +67,7 @@ export class ReadBinaryFiles implements INodeType { fileName = path.parse(filePath).base; item = { binary: { - [dataPropertyName]: await this.helpers.prepareBinaryData(data, fileName) + [dataPropertyName]: await this.helpers.prepareBinaryData(data, fileName), }, json: {}, }; diff --git a/packages/nodes-base/nodes/ReadPdf.node.ts b/packages/nodes-base/nodes/ReadPdf.node.ts index 2d41583c8..785683b8a 100644 --- a/packages/nodes-base/nodes/ReadPdf.node.ts +++ b/packages/nodes-base/nodes/ReadPdf.node.ts @@ -34,7 +34,7 @@ export class ReadPdf implements INodeType { required: true, description: 'Name of the binary property from which to
read the PDF file.', }, - ] + ], }; @@ -52,7 +52,7 @@ export class ReadPdf implements INodeType { return { binary: item.binary, - json: await pdf(binaryData) + json: await pdf(binaryData), }; } } diff --git a/packages/nodes-base/nodes/Redis/Redis.node.ts b/packages/nodes-base/nodes/Redis/Redis.node.ts index 53cdaf2bd..f7b1bd0bd 100644 --- a/packages/nodes-base/nodes/Redis/Redis.node.ts +++ b/packages/nodes-base/nodes/Redis/Redis.node.ts @@ -30,7 +30,7 @@ export class Redis implements INodeType { { name: 'redis', required: true, - } + }, ], properties: [ { @@ -78,7 +78,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], }, }, @@ -93,7 +93,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'delete' + 'delete', ], }, }, @@ -108,7 +108,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], }, }, @@ -123,7 +123,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], }, }, @@ -165,7 +165,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'get' + 'get', ], }, }, @@ -195,7 +195,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'keys' + 'keys', ], }, }, @@ -214,7 +214,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'set' + 'set', ], }, }, @@ -229,7 +229,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'set' + 'set', ], }, }, @@ -243,7 +243,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'set' + 'set', ], }, }, @@ -285,7 +285,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'set' + 'set', ], }, }, @@ -303,7 +303,7 @@ export class Redis implements INodeType { displayOptions: { show: { operation: [ - 'set' + 'set', ], expire: [ true, @@ -312,8 +312,8 @@ export class Redis implements INodeType { }, default: 60, description: 'Number of seconds before key expiration.', - } - ] + }, + ], }; diff --git a/packages/nodes-base/nodes/RenameKeys.node.ts b/packages/nodes-base/nodes/RenameKeys.node.ts index 6e151f8c9..033d907c3 100644 --- a/packages/nodes-base/nodes/RenameKeys.node.ts +++ b/packages/nodes-base/nodes/RenameKeys.node.ts @@ -62,11 +62,11 @@ export class RenameKeys implements INodeType { placeholder: 'newKey', description: 'the name the key should be renamed to. It is also possible to define deep keys by using dot-notation like for example: "level1.level2.newKey"', }, - ] + ], }, ], - } - ] + }, + ], }; diff --git a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts index 509151ede..51e145b38 100644 --- a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function rocketchatApiRequest(this: IHookFunctions | IExecuteFuncti method, body, uri: `${credentials.domain}/api/v1${resource}.${operation}`, - json: true + json: true, }; if (Object.keys(options.body).length === 0) { delete options.body; diff --git a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts index fb179307c..d9bc0cf49 100644 --- a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts +++ b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts @@ -65,7 +65,7 @@ export class Rocketchat implements INodeType { { name: 'rocketchatApi', required: true, - } + }, ], properties: [ { @@ -113,8 +113,8 @@ export class Rocketchat implements INodeType { 'chat', ], operation: [ - 'postMessage' - ] + 'postMessage', + ], }, }, default: '', @@ -130,8 +130,8 @@ export class Rocketchat implements INodeType { 'chat', ], operation: [ - 'postMessage' - ] + 'postMessage', + ], }, }, default: '', @@ -146,11 +146,11 @@ export class Rocketchat implements INodeType { displayOptions: { show: { resource: [ - 'chat' + 'chat', ], operation: [ 'postMessage', - ] + ], }, }, }, @@ -191,8 +191,8 @@ export class Rocketchat implements INodeType { type: 'string', default: '', description: 'This will cause the message’s name to appear as the given alias, but your username will still display.', - } - ] + }, + ], }, { displayName: 'Attachments', @@ -214,7 +214,7 @@ export class Rocketchat implements INodeType { 'postMessage', ], jsonParameters: [ - false + false, ], }, }, @@ -346,27 +346,27 @@ export class Rocketchat implements INodeType { name: 'short', type: 'boolean', default: false, - description: 'Whether this field should be a short field.' + description: 'Whether this field should be a short field.', }, { displayName: 'Title', name: 'title', type: 'string', default: '', - description: 'The title of this field.' + description: 'The title of this field.', }, { displayName: 'Value', name: 'value', type: 'string', default: '', - description: 'The value of this field, displayed underneath the title value.' + description: 'The value of this field, displayed underneath the title value.', }, ], }, ], }, - ] + ], }, { displayName: 'Attachments', @@ -378,21 +378,21 @@ export class Rocketchat implements INodeType { displayOptions: { show: { resource: [ - 'chat' + 'chat', ], operation: [ - 'postMessage' + 'postMessage', ], jsonParameters: [ - true + true, ], }, }, default: '', required: false, description: '', - } - ] + }, + ], }; async executeSingle(this: IExecuteSingleFunctions): Promise { @@ -494,7 +494,7 @@ export class Rocketchat implements INodeType { } return { - json: response + json: response, }; } } diff --git a/packages/nodes-base/nodes/Rundeck/Rundeck.node.ts b/packages/nodes-base/nodes/Rundeck/Rundeck.node.ts index 19b867535..342c3c4bc 100644 --- a/packages/nodes-base/nodes/Rundeck/Rundeck.node.ts +++ b/packages/nodes-base/nodes/Rundeck/Rundeck.node.ts @@ -26,7 +26,7 @@ export class Rundeck implements INodeType { { name: 'rundeckApi', required: true, - } + }, ], properties: [ { @@ -120,7 +120,7 @@ export class Rundeck implements INodeType { type: 'string', default: '', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Rundeck/RundeckApi.ts b/packages/nodes-base/nodes/Rundeck/RundeckApi.ts index 6b5fdfb20..3d99de188 100644 --- a/packages/nodes-base/nodes/Rundeck/RundeckApi.ts +++ b/packages/nodes-base/nodes/Rundeck/RundeckApi.ts @@ -37,7 +37,7 @@ export class RundeckApi { qs: query, uri: this.credentials.url + endpoint, body, - json: true + json: true, }; try { @@ -64,7 +64,7 @@ export class RundeckApi { } const body = { - argString: params + argString: params, }; return this.request('POST', `/api/14/job/${jobId}/run`, body, {}); diff --git a/packages/nodes-base/nodes/S3/GenericFunctions.ts b/packages/nodes-base/nodes/S3/GenericFunctions.ts index 19dbfa6df..111da29b8 100644 --- a/packages/nodes-base/nodes/S3/GenericFunctions.ts +++ b/packages/nodes-base/nodes/S3/GenericFunctions.ts @@ -61,7 +61,7 @@ export async function s3ApiRequest(this: IHookFunctions | IExecuteFunctions | IL method, path: `${path}?${queryToString(query).replace(/\+/g, '%2B')}`, service: 's3', - body + body, }; sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`.trim(), secretAccessKey: `${credentials.secretAccessKey}`.trim() }); diff --git a/packages/nodes-base/nodes/S3/S3.node.ts b/packages/nodes-base/nodes/S3/S3.node.ts index 2a71489a7..83100fb81 100644 --- a/packages/nodes-base/nodes/S3/S3.node.ts +++ b/packages/nodes-base/nodes/S3/S3.node.ts @@ -156,7 +156,7 @@ export class S3 implements INodeType { '$': { xmlns: 'http://s3.amazonaws.com/doc/2006-03-01/', }, - } + }, }; let data = ''; // if credentials has the S3 defaul region (us-east-1) the body (XML) does not have to be sent. @@ -290,7 +290,7 @@ export class S3 implements INodeType { for (const childObject of responseData) { //@ts-ignore (body.Delete.Object as IDataObject[]).push({ - Key: childObject.Key as string + Key: childObject.Key as string, }); } diff --git a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts index 09ff764c8..1a181c2b2 100644 --- a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts @@ -74,7 +74,7 @@ export const accountFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Name of the account. Maximum size is 255 characters.', @@ -328,7 +328,7 @@ export const accountFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of account that needs to be fetched', @@ -590,7 +590,7 @@ export const accountFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of account that needs to be fetched', @@ -611,7 +611,7 @@ export const accountFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of account that needs to be fetched', @@ -684,7 +684,7 @@ export const accountFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* account:addNote */ @@ -702,7 +702,7 @@ export const accountFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Id of account that needs to be fetched', @@ -720,7 +720,7 @@ export const accountFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Title of the note.', @@ -769,6 +769,6 @@ export const accountFields = [ default: '', description: 'ID of the user who owns the note.', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts index ec61acd43..741d8dd91 100644 --- a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts @@ -66,7 +66,7 @@ export const attachmentFields = [ 'attachment', ], operation: [ - 'create' + 'create', ], }, }, @@ -84,7 +84,7 @@ export const attachmentFields = [ 'attachment', ], operation: [ - 'create' + 'create', ], }, }, @@ -102,7 +102,7 @@ export const attachmentFields = [ 'attachment', ], operation: [ - 'create' + 'create', ], }, }, @@ -168,7 +168,7 @@ export const attachmentFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of attachment that needs to be fetched', @@ -248,7 +248,7 @@ export const attachmentFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of attachment that needs to be fetched', @@ -269,7 +269,7 @@ export const attachmentFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of attachment that needs to be fetched', @@ -342,6 +342,6 @@ export const attachmentFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts index 439d9d92e..f703414a1 100644 --- a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts @@ -235,7 +235,7 @@ export const caseFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of case that needs to be fetched', @@ -406,7 +406,7 @@ export const caseFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of case that needs to be fetched', @@ -427,7 +427,7 @@ export const caseFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of case that needs to be fetched', @@ -500,7 +500,7 @@ export const caseFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -519,7 +519,7 @@ export const caseFields = [ ], operation: [ 'addComment', - ] + ], }, }, description: 'Id of case that needs to be fetched', @@ -558,6 +558,6 @@ export const caseFields = [ default: false, description: 'Indicates whether the CaseComment is visible to customers in the Self-Service portal (true) or not (false). ', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts index 432a02371..39d437209 100644 --- a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts @@ -79,7 +79,7 @@ export const contactFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Required. Last name of the contact. Limited to 80 characters.', @@ -367,7 +367,7 @@ export const contactFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -656,7 +656,7 @@ export const contactFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -677,7 +677,7 @@ export const contactFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -750,7 +750,7 @@ export const contactFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -769,7 +769,7 @@ export const contactFields = [ ], operation: [ 'addToCampaign', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -790,7 +790,7 @@ export const contactFields = [ ], operation: [ 'addToCampaign', - ] + ], }, }, description: 'Id of the campaign that needs to be fetched', @@ -819,7 +819,7 @@ export const contactFields = [ default: '', description: 'Controls the HasResponded flag on this object', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* contact:addNote */ @@ -837,7 +837,7 @@ export const contactFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -855,7 +855,7 @@ export const contactFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Title of the note.', @@ -904,6 +904,6 @@ export const contactFields = [ default: '', description: 'ID of the user who owns the note.', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts index 5e822d6e7..ae81f900f 100644 --- a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts @@ -92,7 +92,7 @@ export const flowFields = [ 'flow', ], operation: [ - 'invoke' + 'invoke', ], }, }, @@ -109,7 +109,7 @@ export const flowFields = [ 'flow', ], operation: [ - 'invoke' + 'invoke', ], }, }, @@ -125,7 +125,7 @@ export const flowFields = [ 'flow', ], operation: [ - 'invoke' + 'invoke', ], jsonParameters: [ true, @@ -149,7 +149,7 @@ export const flowFields = [ 'flow', ], operation: [ - 'invoke' + 'invoke', ], jsonParameters: [ false, @@ -177,7 +177,7 @@ export const flowFields = [ default: '', description: 'Value of the input variable.', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts index 2989e7011..5f8139c7d 100644 --- a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function salesforceApiRequest(this: IExecuteFunctions | IExecuteSin body: method === 'GET' ? undefined : body, qs, uri: `https://${subdomain}.salesforce.com/services/data/v39.0${uri || endpoint}`, - json: true + json: true, }; try { //@ts-ignore diff --git a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts index 11dfa70e8..c40b25752 100644 --- a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts @@ -315,7 +315,7 @@ export const leadFields = [ default: '', description: 'Website for the lead.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* lead:update */ @@ -333,7 +333,7 @@ export const leadFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of Lead that needs to be fetched', @@ -565,7 +565,7 @@ export const leadFields = [ default: '', description: 'Website for the lead.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -584,7 +584,7 @@ export const leadFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of Lead that needs to be fetched', @@ -605,7 +605,7 @@ export const leadFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of Lead that needs to be fetched', @@ -678,7 +678,7 @@ export const leadFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* contact:addToCampaign */ @@ -696,7 +696,7 @@ export const leadFields = [ ], operation: [ 'addToCampaign', - ] + ], }, }, description: 'Id of contact that needs to be fetched', @@ -717,7 +717,7 @@ export const leadFields = [ ], operation: [ 'addToCampaign', - ] + ], }, }, description: 'Id of the campaign that needs to be fetched', @@ -746,7 +746,7 @@ export const leadFields = [ default: '', description: 'Controls the HasResponded flag on this object', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* lead:addNote */ @@ -764,7 +764,7 @@ export const leadFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Id of lead that needs to be fetched', @@ -782,7 +782,7 @@ export const leadFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Title of the note.', @@ -831,6 +831,6 @@ export const leadFields = [ default: '', description: 'ID of the user who owns the note.', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts index b53ca58eb..cd9ac0642 100644 --- a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts @@ -74,7 +74,7 @@ export const opportunityFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Required. Last name of the opportunity. Limited to 80 characters.', @@ -92,7 +92,7 @@ export const opportunityFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Required. Date when the opportunity is expected to close.', @@ -102,7 +102,7 @@ export const opportunityFields = [ name: 'stageName', type: 'options', typeOptions: { - loadOptionsMethod: 'getStages' + loadOptionsMethod: 'getStages', }, required: true, default: '', @@ -113,7 +113,7 @@ export const opportunityFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Required. Date when the opportunity is expected to close.', @@ -301,7 +301,7 @@ export const opportunityFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of opportunity that needs to be fetched', @@ -473,7 +473,7 @@ export const opportunityFields = [ name: 'stageName', type: 'options', typeOptions: { - loadOptionsMethod: 'getStages' + loadOptionsMethod: 'getStages', }, default: '', description: 'Required. Date when the opportunity is expected to close.', @@ -514,7 +514,7 @@ export const opportunityFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of opportunity that needs to be fetched', @@ -535,7 +535,7 @@ export const opportunityFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of opportunity that needs to be fetched', @@ -608,7 +608,7 @@ export const opportunityFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -627,7 +627,7 @@ export const opportunityFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Id of opportunity that needs to be fetched', @@ -645,7 +645,7 @@ export const opportunityFields = [ ], operation: [ 'addNote', - ] + ], }, }, description: 'Title of the note.', @@ -694,6 +694,6 @@ export const opportunityFields = [ default: '', description: 'ID of the user who owns the note.', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts index 3db803338..a91c81740 100644 --- a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts @@ -224,7 +224,7 @@ export const taskFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: 'getTaskRecurrenceTypes' + loadOptionsMethod: 'getTaskRecurrenceTypes', }, description: 'Recurrence Type of the task.', }, @@ -278,52 +278,52 @@ export const taskFields = [ options: [ { name: 'January', - value: 'January' + value: 'January', }, { name: 'February', - value: 'February' + value: 'February', }, { name: 'March', - value: 'March' + value: 'March', }, { name: 'April', - value: 'April' + value: 'April', }, { name: 'May', - value: 'May' + value: 'May', }, { name: 'June', - value: 'June' + value: 'June', }, { name: 'July', - value: 'July' + value: 'July', }, { name: 'August', - value: 'August' + value: 'August', }, { name: 'September', - value: 'September' + value: 'September', }, { name: 'October', - value: 'October' + value: 'October', }, { name: 'November', - value: 'November' + value: 'November', }, { name: 'December', - value: 'December' - } + value: 'December', + }, ], default: '', description: 'The month of the year in which the task repeats.', @@ -336,16 +336,16 @@ export const taskFields = [ options: [ { name: 'After due date', - value: 'RecurrenceRegenerateAfterDueDate' + value: 'RecurrenceRegenerateAfterDueDate', }, { name: 'After date completed', - value: 'RecurrenceRegenerateAfterToday' + value: 'RecurrenceRegenerateAfterToday', }, { name: '(Task Closed)', - value: 'RecurrenceRegenerated' - } + value: 'RecurrenceRegenerated', + }, ], description: `Represents what triggers a repeating task to repeat.
Add this field to a page layout together with the RecurrenceInterval field,
@@ -405,7 +405,7 @@ export const taskFields = [ description: `The WhoId represents a human such as a lead or a contact.
WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* task:update */ @@ -423,7 +423,7 @@ export const taskFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Id of task that needs to be fetched', @@ -639,52 +639,52 @@ export const taskFields = [ options: [ { name: 'January', - value: 'January' + value: 'January', }, { name: 'February', - value: 'February' + value: 'February', }, { name: 'March', - value: 'March' + value: 'March', }, { name: 'April', - value: 'April' + value: 'April', }, { name: 'May', - value: 'May' + value: 'May', }, { name: 'June', - value: 'June' + value: 'June', }, { name: 'July', - value: 'July' + value: 'July', }, { name: 'August', - value: 'August' + value: 'August', }, { name: 'September', - value: 'September' + value: 'September', }, { name: 'October', - value: 'October' + value: 'October', }, { name: 'November', - value: 'November' + value: 'November', }, { name: 'December', - value: 'December' - } + value: 'December', + }, ], default: '', description: 'The month of the year in which the task repeats.', @@ -705,16 +705,16 @@ export const taskFields = [ options: [ { name: 'After due date', - value: 'RecurrenceRegenerateAfterDueDate' + value: 'RecurrenceRegenerateAfterDueDate', }, { name: 'After date completed', - value: 'RecurrenceRegenerateAfterToday' + value: 'RecurrenceRegenerateAfterToday', }, { name: '(Task Closed)', - value: 'RecurrenceRegenerated' - } + value: 'RecurrenceRegenerated', + }, ], description: `Represents what triggers a repeating task to repeat.
Add this field to a page layout together with the RecurrenceInterval field,
@@ -727,7 +727,7 @@ export const taskFields = [ type: 'options', default: '', typeOptions: { - loadOptionsMethod: 'getTaskRecurrenceTypes' + loadOptionsMethod: 'getTaskRecurrenceTypes', }, description: 'Website for the task.', }, @@ -766,7 +766,7 @@ export const taskFields = [ description: `The WhoId represents a human such as a lead or a contact.
WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -785,7 +785,7 @@ export const taskFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Id of task that needs to be fetched', @@ -806,7 +806,7 @@ export const taskFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Id of task that needs to be fetched', @@ -879,6 +879,6 @@ export const taskFields = [ default: '', description: 'Fields to include separated by ,', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Salesforce/UserDescription.ts b/packages/nodes-base/nodes/Salesforce/UserDescription.ts index 2bc9089f9..b58175a14 100644 --- a/packages/nodes-base/nodes/Salesforce/UserDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/UserDescription.ts @@ -27,8 +27,8 @@ export const userOperations = [ }, ], default: 'get', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const userFields = [ @@ -51,7 +51,7 @@ export const userFields = [ ], }, }, - description: 'Id of user that needs to be fetched' + description: 'Id of user that needs to be fetched', }, /* -------------------------------------------------------------------------- */ /* user:getAll */ @@ -68,10 +68,10 @@ export const userFields = [ operation: [ 'getAll', ], - } + }, }, default: false, - description: 'If all results should be returned or only up to a given limit.' + description: 'If all results should be returned or only up to a given limit.', }, { displayName: 'Limit', @@ -92,10 +92,10 @@ export const userFields = [ }, typeOptions: { minValue: 1, - maxValue: 100 + maxValue: 100, }, default: 50, - description: 'How many results to return.' + description: 'How many results to return.', }, { displayName: 'Options', @@ -119,7 +119,7 @@ export const userFields = [ name: 'fields', type: 'string', default: '', - description: 'Fields to include separated by ,' + description: 'Fields to include separated by ,', }, ], }, diff --git a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts index 3718052ee..47174e2a0 100644 --- a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts @@ -452,7 +452,7 @@ export const activityFields = [ ], default: 'desc', description: 'Sort order', - } + }, ], }, { @@ -596,12 +596,12 @@ export const activityFields = [ name: 'value', type: 'string', default: '', - } - ] + }, + ], }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts index dbf20eb1b..8b689c73d 100644 --- a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts @@ -545,7 +545,7 @@ export const companyFields = [ ], default: 'desc', description: 'Sort order', - } + }, ], }, { @@ -693,12 +693,12 @@ export const companyFields = [ name: 'value', type: 'string', default: '', - } - ] + }, + ], }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Salesmate/DealDescription.ts b/packages/nodes-base/nodes/Salesmate/DealDescription.ts index 787b6d74b..97c91421c 100644 --- a/packages/nodes-base/nodes/Salesmate/DealDescription.ts +++ b/packages/nodes-base/nodes/Salesmate/DealDescription.ts @@ -716,7 +716,7 @@ export const dealFields = [ ], default: 'desc', description: 'Sort order', - } + }, ], }, { @@ -864,12 +864,12 @@ export const dealFields = [ name: 'value', type: 'string', default: '', - } - ] + }, + ], }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Salesmate/GenericFunctions.ts b/packages/nodes-base/nodes/Salesmate/GenericFunctions.ts index 1471ae4a6..a56cce6ac 100644 --- a/packages/nodes-base/nodes/Salesmate/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesmate/GenericFunctions.ts @@ -24,7 +24,7 @@ export async function salesmateApiRequest(this: IHookFunctions | IExecuteFunctio qs, body, uri: uri ||`https://apis.salesmate.io${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.body; diff --git a/packages/nodes-base/nodes/Salesmate/Salesmate.node.ts b/packages/nodes-base/nodes/Salesmate/Salesmate.node.ts index e8f5a4952..634fe4751 100644 --- a/packages/nodes-base/nodes/Salesmate/Salesmate.node.ts +++ b/packages/nodes-base/nodes/Salesmate/Salesmate.node.ts @@ -56,7 +56,7 @@ export class Salesmate implements INodeType { { name: 'salesmateApi', required: true, - } + }, ], properties: [ { @@ -112,7 +112,7 @@ export class Salesmate implements INodeType { const returnData: INodePropertyOptions[] = []; const qs: IDataObject = { fields: ['name', 'id'], - query: {} + query: {}, }; const contacts = await salesmateApiRequest.call(this, 'POST', '/v2/contacts/search', qs); for (const contact of contacts.Data.data) { @@ -131,7 +131,7 @@ export class Salesmate implements INodeType { const returnData: INodePropertyOptions[] = []; const qs: IDataObject = { fields: ['name', 'id'], - query: {} + query: {}, }; const companies = await salesmateApiRequest.call(this, 'POST', '/v2/companies/search', qs); for (const company of companies.Data.data) { diff --git a/packages/nodes-base/nodes/Segment/GenericFunctions.ts b/packages/nodes-base/nodes/Segment/GenericFunctions.ts index bd3ba6b87..d80bf5cf5 100644 --- a/packages/nodes-base/nodes/Segment/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Segment/GenericFunctions.ts @@ -23,7 +23,7 @@ export async function segmentApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.segment.io/v1${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.body; diff --git a/packages/nodes-base/nodes/Segment/GroupDescription.ts b/packages/nodes-base/nodes/Segment/GroupDescription.ts index 89907526b..e63de7ff4 100644 --- a/packages/nodes-base/nodes/Segment/GroupDescription.ts +++ b/packages/nodes-base/nodes/Segment/GroupDescription.ts @@ -228,7 +228,7 @@ export const groupFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -276,11 +276,11 @@ export const groupFields = [ type: 'string', default: '', }, - ] + ], }, ], }, - ] + ], }, ], }, @@ -375,7 +375,7 @@ export const groupFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -423,7 +423,7 @@ export const groupFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -481,7 +481,7 @@ export const groupFields = [ }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts index c80ffeeb6..44b2c60b4 100644 --- a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts +++ b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts @@ -210,7 +210,7 @@ export const identifyFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -258,11 +258,11 @@ export const identifyFields = [ type: 'string', default: '', }, - ] + ], }, ], }, - ] + ], }, ], }, @@ -357,7 +357,7 @@ export const identifyFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -405,7 +405,7 @@ export const identifyFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -463,7 +463,7 @@ export const identifyFields = [ }, ], }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Segment/Segment.node.ts b/packages/nodes-base/nodes/Segment/Segment.node.ts index f4c3cc41f..b4ad23e9c 100644 --- a/packages/nodes-base/nodes/Segment/Segment.node.ts +++ b/packages/nodes-base/nodes/Segment/Segment.node.ts @@ -74,7 +74,7 @@ export class Segment implements INodeType { { name: 'Identify', value: 'identify', - description: 'Identify lets you tie a user to their actions' + description: 'Identify lets you tie a user to their actions', }, { name: 'Track', diff --git a/packages/nodes-base/nodes/Segment/TrackDescription.ts b/packages/nodes-base/nodes/Segment/TrackDescription.ts index ec67c25fc..f32b03278 100644 --- a/packages/nodes-base/nodes/Segment/TrackDescription.ts +++ b/packages/nodes-base/nodes/Segment/TrackDescription.ts @@ -233,7 +233,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -281,11 +281,11 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, - ] + ], }, ], }, @@ -380,7 +380,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -428,7 +428,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -486,7 +486,7 @@ export const trackFields = [ }, ], }, - ] + ], }, ], }, @@ -562,21 +562,21 @@ export const trackFields = [ numberPrecision: 2, }, default: 1, - description: 'Amount of revenue an event resulted in. This should be a decimal value, so a shirt worth $19.99 would result in a revenue of 19.99.' + description: 'Amount of revenue an event resulted in. This should be a decimal value, so a shirt worth $19.99 would result in a revenue of 19.99.', }, { displayName: 'Currency', name: 'currency', type: 'string', default: '', - description: 'Currency of the revenue an event resulted in

This should be sent in the ISO 4127 format. If this is not set, we assume the revenue to be in US dollars.

' + description: 'Currency of the revenue an event resulted in

This should be sent in the ISO 4127 format. If this is not set, we assume the revenue to be in US dollars.

', }, { displayName: 'Value', name: 'value', type: 'number', default: '', - description: 'An abstract “value” to associate with an event. This is typically used in situations where the event doesn’t generate real-dollar revenue, but has an intrinsic value to a marketing team, like newsletter signups.' + description: 'An abstract “value” to associate with an event. This is typically used in situations where the event doesn’t generate real-dollar revenue, but has an intrinsic value to a marketing team, like newsletter signups.', }, ], }, @@ -780,7 +780,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -828,11 +828,11 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, - ] + ], }, ], }, @@ -927,7 +927,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -975,7 +975,7 @@ export const trackFields = [ type: 'string', default: '', }, - ] + ], }, ], }, @@ -1033,7 +1033,7 @@ export const trackFields = [ }, ], }, - ] + ], }, ], }, @@ -1106,49 +1106,49 @@ export const trackFields = [ name: 'name', type: 'string', default: '', - description: 'Name of the page. This is reserved for future use.' + description: 'Name of the page. This is reserved for future use.', }, { displayName: 'Path', name: 'path', type: 'string', default: '', - description: 'Path portion of the URL of the page. Equivalent to canonical path which defaults to location.pathname from the DOM API.' + description: 'Path portion of the URL of the page. Equivalent to canonical path which defaults to location.pathname from the DOM API.', }, { displayName: 'Referrer', name: 'referrer', type: 'string', default: '', - description: 'Full URL of the previous page. Equivalent to document.referrer from the DOM API.' + description: 'Full URL of the previous page. Equivalent to document.referrer from the DOM API.', }, { displayName: 'Search', name: 'search', type: 'string', default: '', - description: 'Query string portion of the URL of the page. Equivalent to location.search from the DOM API.' + description: 'Query string portion of the URL of the page. Equivalent to location.search from the DOM API.', }, { displayName: 'Title', name: 'title', type: 'string', default: '', - description: 'Title of the page. Equivalent to document.title from the DOM API.' + description: 'Title of the page. Equivalent to document.title from the DOM API.', }, { displayName: 'URL', name: 'url', type: 'string', default: '', - description: 'Full URL of the page. First we look for the canonical url. If the canonical url is not provided, we use location.href from the DOM API.' + description: 'Full URL of the page. First we look for the canonical url. If the canonical url is not provided, we use location.href from the DOM API.', }, { displayName: 'Keywords', name: 'keywords', type: 'string', default: '', - description: 'A list/array of keywords describing the content of the page. The keywords would most likely be the same as, or similar to, the keywords you would find in an html meta tag for SEO purposes.' + description: 'A list/array of keywords describing the content of the page. The keywords would most likely be the same as, or similar to, the keywords you would find in an html meta tag for SEO purposes.', }, ], }, diff --git a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts index e3fb5ca0c..7c077ff3f 100644 --- a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts +++ b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts @@ -213,7 +213,7 @@ export const campaignFields = [ name: 'plainText', type: 'string', default: '', - description: `The 'Plain text version' of your campaign.` + description: `The 'Plain text version' of your campaign.`, }, { displayName: 'Querystring', diff --git a/packages/nodes-base/nodes/Sendy/Sendy.node.ts b/packages/nodes-base/nodes/Sendy/Sendy.node.ts index d234ffd9f..fc6977aee 100644 --- a/packages/nodes-base/nodes/Sendy/Sendy.node.ts +++ b/packages/nodes-base/nodes/Sendy/Sendy.node.ts @@ -60,7 +60,7 @@ export class Sendy implements INodeType { }, ], default: 'subscriber', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...campaignOperations, ...campaignFields, @@ -148,7 +148,7 @@ export class Sendy implements INodeType { this, 'POST', '/api/campaigns/create.php', - body, + body ); const success = [ @@ -184,7 +184,7 @@ export class Sendy implements INodeType { this, 'POST', '/subscribe', - body, + body ); if (responseData === '1') { @@ -206,7 +206,7 @@ export class Sendy implements INodeType { this, 'POST', '/api/subscribers/active-subscriber-count.php', - body, + body ); const errors = [ @@ -239,7 +239,7 @@ export class Sendy implements INodeType { this, 'POST', '/api/subscribers/delete.php', - body, + body ); if (responseData === '1') { @@ -264,7 +264,7 @@ export class Sendy implements INodeType { this, 'POST', '/unsubscribe', - body, + body ); if (responseData === '1') { @@ -289,7 +289,7 @@ export class Sendy implements INodeType { this, 'POST', '/api/subscribers/subscription-status.php', - body, + body ); const status = [ diff --git a/packages/nodes-base/nodes/SentryIo/EventDescription.ts b/packages/nodes-base/nodes/SentryIo/EventDescription.ts index 64aa81b8c..8248b867a 100644 --- a/packages/nodes-base/nodes/SentryIo/EventDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/EventDescription.ts @@ -24,7 +24,7 @@ export const eventOperations = [ name: 'Get All', value: 'getAll', description: 'Get all events', - } + }, ], default: 'get', description: 'The operation to perform', diff --git a/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts b/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts index a5bcfd64a..f318c44ba 100644 --- a/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function sentryIoApiRequest(this: IHookFunctions | IExecuteFunction qs, body, uri: uri ||`https://sentry.io${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.body; diff --git a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts index cc2cb0893..37d9abbe7 100644 --- a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts @@ -180,13 +180,13 @@ export const issueFields = [ options: [ { name: '14 Days', - value: '14d' + value: '14d', }, { name: '24 Hours', - value: '24h' + value: '24h', }, - ] + ], }, { displayName: 'Short ID lookup', @@ -195,7 +195,7 @@ export const issueFields = [ default: true, description: 'If this is set to true then short IDs are looked up by this function as well. This can cause the return value of the function to return an event issue of a different project which is why this is an opt-in', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* issue:update */ @@ -279,22 +279,22 @@ export const issueFields = [ options: [ { name: 'Ignored', - value: 'ignored' + value: 'ignored', }, { name: 'Resolved', - value: 'resolved' + value: 'resolved', }, { name: 'Resolved Next Release', - value: 'resolvedInNextRelease' + value: 'resolvedInNextRelease', }, { name: 'Unresolved', - value: 'unresolved' + value: 'unresolved', }, - ] + ], }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts index d57947908..50a7c8ea0 100644 --- a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts @@ -29,7 +29,7 @@ export const organizationOperations = [ name: 'Get All', value: 'getAll', description: 'Get all organizations', - } + }, ], default: 'get', description: 'The operation to perform', @@ -112,7 +112,7 @@ export const organizationFields = [ default: true, description: 'Restrict results to organizations which you are the owner', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* organization:get */ @@ -200,6 +200,6 @@ export const organizationFields = [ default: '', description: 'The unique URL slug for this organization. If this is not provided a slug is automatically generated based on the name', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts index 44c272693..a499a320b 100644 --- a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts @@ -24,7 +24,7 @@ export const projectOperations = [ name: 'Get All', value: 'getAll', description: 'Get all projects', - } + }, ], default: 'get', description: 'The operation to perform', @@ -145,7 +145,7 @@ export const projectFields = [ default: '', description: 'Optionally a slug for the new project. If it’s not provided a slug is generated from the name', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* project:getAll */ diff --git a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts index 5c5686f9a..f4045a77f 100644 --- a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts @@ -126,7 +126,7 @@ export const releaseFields = [ default: '', description: 'This parameter can be used to create a “starts with” filter for the version', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* release:get */ @@ -295,7 +295,7 @@ export const releaseFields = [ type: 'string', default: '', description: 'the sha of the commit', - required: true + required: true, }, { displayName: 'Author Email', @@ -338,7 +338,7 @@ export const releaseFields = [ type: 'string', default: '', description: 'he path to the file. Both forward and backward slashes are supported', - required: true + required: true, }, { displayName: 'Type', @@ -349,19 +349,19 @@ export const releaseFields = [ options: [ { name: 'Add', - value: 'add' + value: 'add', }, { name: 'Modify', - value: 'modify' + value: 'modify', }, { name: 'Delete', - value: 'delete' + value: 'delete', }, - ] + ], }, - ] + ], }, ], }, @@ -379,7 +379,7 @@ export const releaseFields = [ default: '', description: 'Timestamp of commit', }, - ] + ], }, ], }, @@ -403,7 +403,7 @@ export const releaseFields = [ type: 'string', default: '', description: 'the head sha of the commit', - required: true + required: true, }, { displayName: 'Repository', @@ -411,7 +411,7 @@ export const releaseFields = [ type: 'string', default: '', description: 'Repository name', - required: true + required: true, }, { displayName: 'Previous Commit', @@ -420,10 +420,10 @@ export const releaseFields = [ default: '', description: 'the sha of the HEAD of the previous release', }, - ] + ], }, ], }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts index f5353dc05..0e02a2852 100644 --- a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts +++ b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts @@ -228,7 +228,7 @@ export class SentryIo implements INodeType { // TEAM ...teamOperations, - ...teamFields + ...teamFields, ], }; diff --git a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts index f44e6853d..4bc74fa39 100644 --- a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts @@ -29,7 +29,7 @@ export const teamOperations = [ name: 'Get All', value: 'getAll', description: 'Get all teams', - } + }, ], default: 'get', description: 'The operation to perform', @@ -210,7 +210,7 @@ export const teamFields = [ default: '', description: 'The optional slug for this team. If not provided it will be auto generated from the name', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* team:update */ @@ -229,7 +229,7 @@ export const teamFields = [ 'team', ], operation: [ - 'update', 'delete' + 'update', 'delete', ], }, }, @@ -247,7 +247,7 @@ export const teamFields = [ 'team', ], operation: [ - 'update', 'delete' + 'update', 'delete', ], }, }, @@ -285,6 +285,6 @@ export const teamFields = [ default: '', description: 'The new name of the team', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Set.node.ts b/packages/nodes-base/nodes/Set.node.ts index 24ff044e6..5e9b93282 100644 --- a/packages/nodes-base/nodes/Set.node.ts +++ b/packages/nodes-base/nodes/Set.node.ts @@ -60,7 +60,7 @@ export class Set implements INodeType { default: false, description: 'The boolean value to write in the property.', }, - ] + ], }, { name: 'number', @@ -80,7 +80,7 @@ export class Set implements INodeType { default: 0, description: 'The number value to write in the property.', }, - ] + ], }, { name: 'string', @@ -100,7 +100,7 @@ export class Set implements INodeType { default: '', description: 'The string value to write in the property.', }, - ] + ], }, ], }, @@ -124,7 +124,7 @@ export class Set implements INodeType { }, ], }, - ] + ], }; diff --git a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts index ebb8bde4b..e808846a2 100644 --- a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts @@ -32,7 +32,7 @@ export async function shopifyApiRequest(this: IHookFunctions | IExecuteFunctions qs: query, uri: uri || `https://${credentials.shopSubdomain}.myshopify.com/admin/api/2019-10${resource}`, body, - json: true + json: true, }; if (Object.keys(option).length !== 0) { diff --git a/packages/nodes-base/nodes/Shopify/ProductDescription.ts b/packages/nodes-base/nodes/Shopify/ProductDescription.ts index 008e66ce0..a0209dd33 100644 --- a/packages/nodes-base/nodes/Shopify/ProductDescription.ts +++ b/packages/nodes-base/nodes/Shopify/ProductDescription.ts @@ -233,7 +233,7 @@ export const productFields = [ default: '', description: `Option\'s values.`, }, - ] + ], }, ], }, @@ -458,7 +458,7 @@ export const productFields = [ default: '', description: `Option\'s values.`, }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts index 412c58211..f0d627d50 100644 --- a/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts +++ b/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts @@ -36,7 +36,7 @@ export class ShopifyTrigger implements INodeType { { name: 'shopifyApi', required: true, - } + }, ], webhooks: [ { @@ -326,7 +326,7 @@ export class ShopifyTrigger implements INodeType { topic, address: webhookUrl, format: 'json', - } + }, }; let responseData; @@ -386,7 +386,7 @@ export class ShopifyTrigger implements INodeType { } return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Signl4/Signl4.node.ts b/packages/nodes-base/nodes/Signl4/Signl4.node.ts index 143146ad2..8b09249d5 100644 --- a/packages/nodes-base/nodes/Signl4/Signl4.node.ts +++ b/packages/nodes-base/nodes/Signl4/Signl4.node.ts @@ -122,7 +122,7 @@ export class Signl4 implements INodeType { { name: 'Single ACK', value: 'single_ack', - description: 'In case only one person needs to confirm this Signl.' + description: 'In case only one person needs to confirm this Signl.', }, { name: 'Multi ACK', @@ -207,7 +207,7 @@ export class Signl4 implements INodeType { default: '', }, ], - } + }, ], }, { @@ -336,7 +336,7 @@ export class Signl4 implements INodeType { data, {}, endpoint, - {}, + {} ); } // Resolve alert @@ -359,7 +359,7 @@ export class Signl4 implements INodeType { data, {}, endpoint, - {}, + {} ); } } diff --git a/packages/nodes-base/nodes/Slack/ChannelDescription.ts b/packages/nodes-base/nodes/Slack/ChannelDescription.ts index 8e279bbea..5034bf0bc 100644 --- a/packages/nodes-base/nodes/Slack/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Slack/ChannelDescription.ts @@ -114,7 +114,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'archive' + 'archive', ], resource: [ 'channel', @@ -138,7 +138,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'close' + 'close', ], resource: [ 'channel', @@ -161,7 +161,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'create' + 'create', ], resource: [ 'channel', @@ -205,7 +205,7 @@ export const channelFields = [ default: [], description: `Required for workspace apps. A list of between 1 and 30 human users that will be added to the newly-created conversation`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:invite */ @@ -221,7 +221,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'invite' + 'invite', ], resource: [ 'channel', @@ -242,7 +242,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'invite' + 'invite', ], resource: [ 'channel', @@ -263,7 +263,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'get' + 'get', ], resource: [ 'channel', @@ -296,7 +296,7 @@ export const channelFields = [ type: 'boolean', default: false, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:kick */ @@ -313,7 +313,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'kick' + 'kick', ], resource: [ 'channel', @@ -333,7 +333,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'kick' + 'kick', ], resource: [ 'channel', @@ -357,7 +357,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'join' + 'join', ], resource: [ 'channel', @@ -441,25 +441,25 @@ export const channelFields = [ options: [ { name: 'Public Channel', - value: 'public_channel' + value: 'public_channel', }, { name: 'Private Channel', - value: 'private_channel' + value: 'private_channel', }, { name: 'mpim', - value: 'mpim' + value: 'mpim', }, { name: 'im', - value: 'im' + value: 'im', }, ], default: ['public_channel'], description: 'Mix and match channel types', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:history */ @@ -476,7 +476,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'history' + 'history', ], resource: [ 'channel', @@ -565,7 +565,7 @@ export const channelFields = [ default: '', description: 'Start of time range of messages to include in results.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:leave */ @@ -580,7 +580,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'leave' + 'leave', ], resource: [ 'channel', @@ -635,7 +635,7 @@ export const channelFields = [ default: [], description: `If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:rename */ @@ -650,7 +650,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'rename' + 'rename', ], resource: [ 'channel', @@ -668,7 +668,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'rename' + 'rename', ], resource: [ 'channel', @@ -694,7 +694,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'replies' + 'replies', ], resource: [ 'channel', @@ -712,7 +712,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'replies' + 'replies', ], resource: [ 'channel', @@ -801,7 +801,7 @@ export const channelFields = [ default: '', description: 'Start of time range of messages to include in results.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* channel:setPurpose */ @@ -816,7 +816,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'setPurpose' + 'setPurpose', ], resource: [ 'channel', @@ -834,7 +834,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'setPurpose' + 'setPurpose', ], resource: [ 'channel', @@ -858,7 +858,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'setTopic' + 'setTopic', ], resource: [ 'channel', @@ -876,7 +876,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'setTopic' + 'setTopic', ], resource: [ 'channel', @@ -900,7 +900,7 @@ export const channelFields = [ displayOptions: { show: { operation: [ - 'unarchive' + 'unarchive', ], resource: [ 'channel', diff --git a/packages/nodes-base/nodes/Slack/FileDescription.ts b/packages/nodes-base/nodes/Slack/FileDescription.ts index fe1bbe8f8..1b78fc294 100644 --- a/packages/nodes-base/nodes/Slack/FileDescription.ts +++ b/packages/nodes-base/nodes/Slack/FileDescription.ts @@ -47,7 +47,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -64,13 +64,13 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - false + false, ], }, @@ -87,13 +87,13 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', ], binaryData: [ - true + true, ], }, @@ -108,7 +108,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'upload' + 'upload', ], resource: [ 'file', @@ -210,7 +210,7 @@ export const fileFields = [ displayOptions: { show: { operation: [ - 'getAll' + 'getAll', ], resource: [ 'file', diff --git a/packages/nodes-base/nodes/Slack/GenericFunctions.ts b/packages/nodes-base/nodes/Slack/GenericFunctions.ts index be43f8b18..09d1ef45f 100644 --- a/packages/nodes-base/nodes/Slack/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Slack/GenericFunctions.ts @@ -20,12 +20,12 @@ export async function slackApiRequest(this: IExecuteFunctions | IExecuteSingleFu let options: OptionsWithUri = { method, headers: headers || { - 'Content-Type': 'application/json; charset=utf-8' + 'Content-Type': 'application/json; charset=utf-8', }, body, qs: query, uri: `https://slack.com/api${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(body).length === 0) { diff --git a/packages/nodes-base/nodes/Slack/MessageDescription.ts b/packages/nodes-base/nodes/Slack/MessageDescription.ts index 6619c5181..ad5ac67f1 100644 --- a/packages/nodes-base/nodes/Slack/MessageDescription.ts +++ b/packages/nodes-base/nodes/Slack/MessageDescription.ts @@ -84,7 +84,7 @@ export const messageFields = [ 'accessToken', ], operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -121,7 +121,7 @@ export const messageFields = [ displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -318,10 +318,10 @@ export const messageFields = [ default: true, description: 'If items can be displayed next to each other.', }, - ] + ], }, ], - } + }, ], }, { @@ -331,7 +331,7 @@ export const messageFields = [ displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -349,10 +349,10 @@ export const messageFields = [ displayOptions: { show: { '/as_user': [ - false + false, ], '/operation': [ - 'post' + 'post', ], '/resource': [ 'message', @@ -369,10 +369,10 @@ export const messageFields = [ displayOptions: { show: { '/as_user': [ - false + false, ], '/operation': [ - 'post' + 'post', ], '/resource': [ 'message', @@ -445,7 +445,7 @@ export const messageFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Channel containing the message to be updated.', @@ -463,7 +463,7 @@ export const messageFields = [ ], operation: [ 'update', - ] + ], }, }, description: `New text for the message, using the default formatting rules. It's not required when presenting attachments.`, @@ -481,7 +481,7 @@ export const messageFields = [ ], operation: [ 'update', - ] + ], }, }, description: `Timestamp of the message to be updated.`, @@ -497,7 +497,7 @@ export const messageFields = [ 'accessToken', ], operation: [ - 'update' + 'update', ], resource: [ 'message', @@ -564,7 +564,7 @@ export const messageFields = [ displayOptions: { show: { operation: [ - 'post' + 'post', ], resource: [ 'message', @@ -1487,7 +1487,7 @@ export const messageFields = [ false, ], operation: [ - 'update' + 'update', ], resource: [ 'message', @@ -1665,10 +1665,10 @@ export const messageFields = [ default: true, description: 'If items can be displayed next to each other.', }, - ] + ], }, ], - } + }, ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Slack/Slack.node.ts b/packages/nodes-base/nodes/Slack/Slack.node.ts index 577076919..a82f894b4 100644 --- a/packages/nodes-base/nodes/Slack/Slack.node.ts +++ b/packages/nodes-base/nodes/Slack/Slack.node.ts @@ -251,7 +251,7 @@ export class Slack implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { @@ -833,7 +833,7 @@ export class Slack implements INodeType { filename: items[i].binary[binaryPropertyName].fileName, //@ts-ignore contentType: items[i].binary[binaryPropertyName].mimeType, - } + }, }; responseData = await slackApiRequest.call(this, 'POST', '/files.upload', {}, qs, { 'Content-Type': 'multipart/form-data' }, { formData: body }); responseData = responseData.file; diff --git a/packages/nodes-base/nodes/Slack/StarDescription.ts b/packages/nodes-base/nodes/Slack/StarDescription.ts index 282025b1e..0f77db759 100644 --- a/packages/nodes-base/nodes/Slack/StarDescription.ts +++ b/packages/nodes-base/nodes/Slack/StarDescription.ts @@ -46,7 +46,7 @@ export const starFields = [ displayOptions: { show: { operation: [ - 'add' + 'add', ], resource: [ 'star', @@ -100,7 +100,7 @@ export const starFields = [ displayOptions: { show: { operation: [ - 'delete' + 'delete', ], resource: [ 'star', diff --git a/packages/nodes-base/nodes/Sms77/Sms77.node.ts b/packages/nodes-base/nodes/Sms77/Sms77.node.ts index 6e12c517d..745563d71 100644 --- a/packages/nodes-base/nodes/Sms77/Sms77.node.ts +++ b/packages/nodes-base/nodes/Sms77/Sms77.node.ts @@ -21,7 +21,7 @@ export class Sms77 implements INodeType { { name: 'sms77Api', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Spotify/GenericFunctions.ts b/packages/nodes-base/nodes/Spotify/GenericFunctions.ts index b822e63e7..539b43f1c 100644 --- a/packages/nodes-base/nodes/Spotify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Spotify/GenericFunctions.ts @@ -31,7 +31,7 @@ export async function spotifyApiRequest(this: IHookFunctions | IExecuteFunctions body, qs: query, uri: uri || `https://api.spotify.com/v1${endpoint}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Spotify/Spotify.node.ts b/packages/nodes-base/nodes/Spotify/Spotify.node.ts index 797020c39..662d5d8d4 100644 --- a/packages/nodes-base/nodes/Spotify/Spotify.node.ts +++ b/packages/nodes-base/nodes/Spotify/Spotify.node.ts @@ -88,17 +88,17 @@ export class Spotify implements INodeType { { name: 'Add Song to Queue', value: 'addSongToQueue', - description: 'Add a song to your queue.' + description: 'Add a song to your queue.', }, { name: 'Currently Playing', value: 'currentlyPlaying', - description: 'Get your currently playing track.' + description: 'Get your currently playing track.', }, { name: 'Next Song', value: 'nextSong', - description: 'Skip to your next track.' + description: 'Skip to your next track.', }, { name: 'Pause', @@ -108,17 +108,17 @@ export class Spotify implements INodeType { { name: 'Previous Song', value: 'previousSong', - description: 'Skip to your previous song.' + description: 'Skip to your previous song.', }, { name: 'Recently Played', value: 'recentlyPlayed', - description: 'Get your recently played tracks.' + description: 'Get your recently played tracks.', }, { name: 'Start Music', value: 'startMusic', - description: 'Start playing a playlist, artist, or album.' + description: 'Start playing a playlist, artist, or album.', }, ], default: 'addSongToQueue', @@ -133,7 +133,7 @@ export class Spotify implements INodeType { displayOptions: { show: { resource: [ - 'player' + 'player', ], operation: [ 'startMusic', @@ -152,7 +152,7 @@ export class Spotify implements INodeType { displayOptions: { show: { resource: [ - 'player' + 'player', ], operation: [ 'addSongToQueue', @@ -273,7 +273,7 @@ export class Spotify implements INodeType { displayOptions: { show: { resource: [ - 'artist' + 'artist', ], operation: [ 'getTopTracks', @@ -449,7 +449,7 @@ export class Spotify implements INodeType { resource: [ 'album', 'artist', - 'playlist' + 'playlist', ], operation: [ 'getTracks', @@ -489,7 +489,7 @@ export class Spotify implements INodeType { }, description: `The number of items to return.`, }, - ] + ], }; @@ -594,7 +594,7 @@ export class Spotify implements INodeType { const id = this.getNodeParameter('id', i) as string; qs = { - uri: id + uri: id, }; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -739,7 +739,7 @@ export class Spotify implements INodeType { const limit = this.getNodeParameter('limit', i) as number; qs = { - 'limit': limit + 'limit': limit, }; responseData = await spotifyApiRequest.call(this, requestMethod, endpoint, body, qs); @@ -752,7 +752,7 @@ export class Spotify implements INodeType { const trackId = this.getNodeParameter('trackID', i) as string; qs = { - uris: trackId + uris: trackId, }; endpoint = `/playlists/${id}/tracks`; diff --git a/packages/nodes-base/nodes/SpreadsheetFile.node.ts b/packages/nodes-base/nodes/SpreadsheetFile.node.ts index 2698a6eb6..c902f0279 100644 --- a/packages/nodes-base/nodes/SpreadsheetFile.node.ts +++ b/packages/nodes-base/nodes/SpreadsheetFile.node.ts @@ -144,7 +144,7 @@ export class SpreadsheetFile implements INodeType { displayOptions: { show: { operation: [ - 'toFile' + 'toFile', ], }, }, @@ -213,7 +213,7 @@ export class SpreadsheetFile implements INodeType { displayOptions: { show: { '/operation': [ - 'fromFile' + 'fromFile', ], }, }, @@ -227,7 +227,7 @@ export class SpreadsheetFile implements INodeType { displayOptions: { show: { '/operation': [ - 'fromFile' + 'fromFile', ], }, }, @@ -241,7 +241,7 @@ export class SpreadsheetFile implements INodeType { displayOptions: { show: { '/operation': [ - 'fromFile' + 'fromFile', ], }, }, @@ -283,7 +283,7 @@ export class SpreadsheetFile implements INodeType { }, ], }, - ] + ], }; @@ -373,7 +373,7 @@ export class SpreadsheetFile implements INodeType { const wopts: WritingOptions = { bookSST: false, - type: 'buffer' + type: 'buffer', }; if (fileFormat === 'csv') { @@ -402,7 +402,7 @@ export class SpreadsheetFile implements INodeType { SheetNames: [sheetName], Sheets: { [sheetName]: ws, - } + }, }; const wbout = xlsxWrite(wb, wopts); diff --git a/packages/nodes-base/nodes/SseTrigger.node.ts b/packages/nodes-base/nodes/SseTrigger.node.ts index 8c1c80700..6d410a097 100644 --- a/packages/nodes-base/nodes/SseTrigger.node.ts +++ b/packages/nodes-base/nodes/SseTrigger.node.ts @@ -31,7 +31,7 @@ export class SseTrigger implements INodeType { description: 'The URL to receive the SSE from.', required: true, }, - ] + ], }; diff --git a/packages/nodes-base/nodes/Strava/ActivityDescription.ts b/packages/nodes-base/nodes/Strava/ActivityDescription.ts index b55784146..34b57945f 100644 --- a/packages/nodes-base/nodes/Strava/ActivityDescription.ts +++ b/packages/nodes-base/nodes/Strava/ActivityDescription.ts @@ -79,7 +79,7 @@ export const activityFields = [ ], operation: [ 'create', - ] + ], }, }, default: '', @@ -97,7 +97,7 @@ export const activityFields = [ ], operation: [ 'create', - ] + ], }, }, default: '', @@ -114,8 +114,8 @@ export const activityFields = [ 'activity', ], operation: [ - 'create' - ] + 'create', + ], }, }, description: 'ISO 8601 formatted date time.', @@ -132,7 +132,7 @@ export const activityFields = [ ], operation: [ 'create', - ] + ], }, }, typeOptions: { diff --git a/packages/nodes-base/nodes/Strava/GenericFunctions.ts b/packages/nodes-base/nodes/Strava/GenericFunctions.ts index df2a02a49..666cb159f 100644 --- a/packages/nodes-base/nodes/Strava/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Strava/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function stravaApiRequest(this: IExecuteFunctions | IExecuteSingleF form: body, qs, uri: uri || `https://www.strava.com/api/v3${resource}`, - json: true + json: true, }; try { if (Object.keys(headers).length !== 0) { diff --git a/packages/nodes-base/nodes/Strava/Strava.node.ts b/packages/nodes-base/nodes/Strava/Strava.node.ts index 1a1a9feab..e9f257e1f 100644 --- a/packages/nodes-base/nodes/Strava/Strava.node.ts +++ b/packages/nodes-base/nodes/Strava/Strava.node.ts @@ -54,7 +54,7 @@ export class Strava implements INodeType { }, ], default: 'activity', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, ...activityOperations, ...activityFields, diff --git a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts index 6ccae2b42..db2d8d3eb 100644 --- a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts +++ b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts @@ -281,7 +281,7 @@ export class StravaTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(body) + this.helpers.returnJsonArray(body), ], }; } diff --git a/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts b/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts index b9cc24663..fa05e4bdc 100644 --- a/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts +++ b/packages/nodes-base/nodes/Stripe/StripeTrigger.node.ts @@ -32,7 +32,7 @@ export class StripeTrigger implements INodeType { { name: 'stripeApi', required: true, - } + }, ], webhooks: [ { @@ -59,745 +59,745 @@ export class StripeTrigger implements INodeType { { "name": "Account Updated", "value": "account.updated", - "description": "Occurs whenever an account status or property has changed." + "description": "Occurs whenever an account status or property has changed.", }, { "name": "Account Application.authorized", "value": "account.application.authorized", - "description": "Occurs whenever a user authorizes an application. Sent to the related application only." + "description": "Occurs whenever a user authorizes an application. Sent to the related application only.", }, { "name": "Account Application.deauthorized", "value": "account.application.deauthorized", - "description": "Occurs whenever a user deauthorizes an application. Sent to the related application only." + "description": "Occurs whenever a user deauthorizes an application. Sent to the related application only.", }, { "name": "Account External_account.created", "value": "account.external_account.created", - "description": "Occurs whenever an external account is created." + "description": "Occurs whenever an external account is created.", }, { "name": "Account External_account.deleted", "value": "account.external_account.deleted", - "description": "Occurs whenever an external account is deleted." + "description": "Occurs whenever an external account is deleted.", }, { "name": "Account External_account.updated", "value": "account.external_account.updated", - "description": "Occurs whenever an external account is updated." + "description": "Occurs whenever an external account is updated.", }, { "name": "Application Fee.created", "value": "application_fee.created", - "description": "Occurs whenever an application fee is created on a charge." + "description": "Occurs whenever an application fee is created on a charge.", }, { "name": "Application Fee.refunded", "value": "application_fee.refunded", - "description": "Occurs whenever an application fee is refunded, whether from refunding a charge or from refunding the application fee directly. This includes partial refunds." + "description": "Occurs whenever an application fee is refunded, whether from refunding a charge or from refunding the application fee directly. This includes partial refunds.", }, { "name": "Application Fee.refund.updated", "value": "application_fee.refund.updated", - "description": "Occurs whenever an application fee refund is updated." + "description": "Occurs whenever an application fee refund is updated.", }, { "name": "Balance Available", "value": "balance.available", - "description": "Occurs whenever your Stripe balance has been updated (e.g., when a charge is available to be paid out). By default, Stripe automatically transfers funds in your balance to your bank account on a daily basis." + "description": "Occurs whenever your Stripe balance has been updated (e.g., when a charge is available to be paid out). By default, Stripe automatically transfers funds in your balance to your bank account on a daily basis.", }, { "name": "Capability Updated", "value": "capability.updated", - "description": "Occurs whenever a capability has new requirements or a new status." + "description": "Occurs whenever a capability has new requirements or a new status.", }, { "name": "Charge Captured", "value": "charge.captured", - "description": "Occurs whenever a previously uncaptured charge is captured." + "description": "Occurs whenever a previously uncaptured charge is captured.", }, { "name": "Charge Expired", "value": "charge.expired", - "description": "Occurs whenever an uncaptured charge expires." + "description": "Occurs whenever an uncaptured charge expires.", }, { "name": "Charge Failed", "value": "charge.failed", - "description": "Occurs whenever a failed charge attempt occurs." + "description": "Occurs whenever a failed charge attempt occurs.", }, { "name": "Charge Pending", "value": "charge.pending", - "description": "Occurs whenever a pending charge is created." + "description": "Occurs whenever a pending charge is created.", }, { "name": "Charge Refunded", "value": "charge.refunded", - "description": "Occurs whenever a charge is refunded, including partial refunds." + "description": "Occurs whenever a charge is refunded, including partial refunds.", }, { "name": "Charge Succeeded", "value": "charge.succeeded", - "description": "Occurs whenever a new charge is created and is successful." + "description": "Occurs whenever a new charge is created and is successful.", }, { "name": "Charge Updated", "value": "charge.updated", - "description": "Occurs whenever a charge description or metadata is updated." + "description": "Occurs whenever a charge description or metadata is updated.", }, { "name": "Charge Dispute.closed", "value": "charge.dispute.closed", - "description": "Occurs when a dispute is closed and the dispute status changes to lost, warning_closed, or won." + "description": "Occurs when a dispute is closed and the dispute status changes to lost, warning_closed, or won.", }, { "name": "Charge Dispute.created", "value": "charge.dispute.created", - "description": "Occurs whenever a customer disputes a charge with their bank." + "description": "Occurs whenever a customer disputes a charge with their bank.", }, { "name": "Charge Dispute.funds_reinstated", "value": "charge.dispute.funds_reinstated", - "description": "Occurs when funds are reinstated to your account after a dispute is closed. This includes partially refunded payments." + "description": "Occurs when funds are reinstated to your account after a dispute is closed. This includes partially refunded payments.", }, { "name": "Charge Dispute.funds_withdrawn", "value": "charge.dispute.funds_withdrawn", - "description": "Occurs when funds are removed from your account due to a dispute." + "description": "Occurs when funds are removed from your account due to a dispute.", }, { "name": "Charge Dispute.updated", "value": "charge.dispute.updated", - "description": "Occurs when the dispute is updated (usually with evidence)." + "description": "Occurs when the dispute is updated (usually with evidence).", }, { "name": "Charge Refund.updated", "value": "charge.refund.updated", - "description": "Occurs whenever a refund is updated, on selected payment methods." + "description": "Occurs whenever a refund is updated, on selected payment methods.", }, { "name": "Checkout Session.completed", "value": "checkout.session.completed", - "description": "Occurs when a Checkout Session has been successfully completed." + "description": "Occurs when a Checkout Session has been successfully completed.", }, { "name": "Coupon Created", "value": "coupon.created", - "description": "Occurs whenever a coupon is created." + "description": "Occurs whenever a coupon is created.", }, { "name": "Coupon Deleted", "value": "coupon.deleted", - "description": "Occurs whenever a coupon is deleted." + "description": "Occurs whenever a coupon is deleted.", }, { "name": "Coupon Updated", "value": "coupon.updated", - "description": "Occurs whenever a coupon is updated." + "description": "Occurs whenever a coupon is updated.", }, { "name": "Credit Note.created", "value": "credit_note.created", - "description": "Occurs whenever a credit note is created." + "description": "Occurs whenever a credit note is created.", }, { "name": "Credit Note.updated", "value": "credit_note.updated", - "description": "Occurs whenever a credit note is updated." + "description": "Occurs whenever a credit note is updated.", }, { "name": "Credit Note.voided", "value": "credit_note.voided", - "description": "Occurs whenever a credit note is voided." + "description": "Occurs whenever a credit note is voided.", }, { "name": "Customer Created", "value": "customer.created", - "description": "Occurs whenever a new customer is created." + "description": "Occurs whenever a new customer is created.", }, { "name": "Customer Deleted", "value": "customer.deleted", - "description": "Occurs whenever a customer is deleted." + "description": "Occurs whenever a customer is deleted.", }, { "name": "Customer Updated", "value": "customer.updated", - "description": "Occurs whenever any property of a customer changes." + "description": "Occurs whenever any property of a customer changes.", }, { "name": "Customer Discount.created", "value": "customer.discount.created", - "description": "Occurs whenever a coupon is attached to a customer." + "description": "Occurs whenever a coupon is attached to a customer.", }, { "name": "Customer Discount.deleted", "value": "customer.discount.deleted", - "description": "Occurs whenever a coupon is removed from a customer." + "description": "Occurs whenever a coupon is removed from a customer.", }, { "name": "Customer Discount.updated", "value": "customer.discount.updated", - "description": "Occurs whenever a customer is switched from one coupon to another." + "description": "Occurs whenever a customer is switched from one coupon to another.", }, { "name": "Customer Source.created", "value": "customer.source.created", - "description": "Occurs whenever a new source is created for a customer." + "description": "Occurs whenever a new source is created for a customer.", }, { "name": "Customer Source.deleted", "value": "customer.source.deleted", - "description": "Occurs whenever a source is removed from a customer." + "description": "Occurs whenever a source is removed from a customer.", }, { "name": "Customer Source.expiring", "value": "customer.source.expiring", - "description": "Occurs whenever a card or source will expire at the end of the month." + "description": "Occurs whenever a card or source will expire at the end of the month.", }, { "name": "Customer Source.updated", "value": "customer.source.updated", - "description": "Occurs whenever a source's details are changed." + "description": "Occurs whenever a source's details are changed.", }, { "name": "Customer Subscription.created", "value": "customer.subscription.created", - "description": "Occurs whenever a customer is signed up for a new plan." + "description": "Occurs whenever a customer is signed up for a new plan.", }, { "name": "Customer Subscription.deleted", "value": "customer.subscription.deleted", - "description": "Occurs whenever a customer's subscription ends." + "description": "Occurs whenever a customer's subscription ends.", }, { "name": "Customer Subscription.trial_will_end", "value": "customer.subscription.trial_will_end", - "description": "Occurs three days before a subscription's trial period is scheduled to end, or when a trial is ended immediately (using trial_end=now)." + "description": "Occurs three days before a subscription's trial period is scheduled to end, or when a trial is ended immediately (using trial_end=now).", }, { "name": "Customer Subscription.updated", "value": "customer.subscription.updated", - "description": "Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active)." + "description": "Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active).", }, { "name": "Customer Tax_id.created", "value": "customer.tax_id.created", - "description": "Occurs whenever a tax ID is created for a customer." + "description": "Occurs whenever a tax ID is created for a customer.", }, { "name": "Customer Tax_id.deleted", "value": "customer.tax_id.deleted", - "description": "Occurs whenever a tax ID is deleted from a customer." + "description": "Occurs whenever a tax ID is deleted from a customer.", }, { "name": "Customer Tax_id.updated", "value": "customer.tax_id.updated", - "description": "Occurs whenever a customer's tax ID is updated." + "description": "Occurs whenever a customer's tax ID is updated.", }, { "name": "File Created", "value": "file.created", - "description": "Occurs whenever a new Stripe-generated file is available for your account." + "description": "Occurs whenever a new Stripe-generated file is available for your account.", }, { "name": "Invoice Created", "value": "invoice.created", - "description": "Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see Using Webhooks with Subscriptions." + "description": "Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see Using Webhooks with Subscriptions.", }, { "name": "Invoice Deleted", "value": "invoice.deleted", - "description": "Occurs whenever a draft invoice is deleted." + "description": "Occurs whenever a draft invoice is deleted.", }, { "name": "Invoice Finalized", "value": "invoice.finalized", - "description": "Occurs whenever a draft invoice is finalized and updated to be an open invoice." + "description": "Occurs whenever a draft invoice is finalized and updated to be an open invoice.", }, { "name": "Invoice Marked_uncollectible", "value": "invoice.marked_uncollectible", - "description": "Occurs whenever an invoice is marked uncollectible." + "description": "Occurs whenever an invoice is marked uncollectible.", }, { "name": "Invoice Payment_action_required", "value": "invoice.payment_action_required", - "description": "Occurs whenever an invoice payment attempt requires further user action to complete." + "description": "Occurs whenever an invoice payment attempt requires further user action to complete.", }, { "name": "Invoice Payment_failed", "value": "invoice.payment_failed", - "description": "Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method." + "description": "Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.", }, { "name": "Invoice Payment_succeeded", "value": "invoice.payment_succeeded", - "description": "Occurs whenever an invoice payment attempt succeeds." + "description": "Occurs whenever an invoice payment attempt succeeds.", }, { "name": "Invoice Sent", "value": "invoice.sent", - "description": "Occurs whenever an invoice email is sent out." + "description": "Occurs whenever an invoice email is sent out.", }, { "name": "Invoice Upcoming", "value": "invoice.upcoming", - "description": "Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your subscriptions settings. Note: The received Invoice object will not have an invoice ID." + "description": "Occurs X number of days before a subscription is scheduled to create an invoice that is automatically charged—where X is determined by your subscriptions settings. Note: The received Invoice object will not have an invoice ID.", }, { "name": "Invoice Updated", "value": "invoice.updated", - "description": "Occurs whenever an invoice changes (e.g., the invoice amount)." + "description": "Occurs whenever an invoice changes (e.g., the invoice amount).", }, { "name": "Invoice Voided", "value": "invoice.voided", - "description": "Occurs whenever an invoice is voided." + "description": "Occurs whenever an invoice is voided.", }, { "name": "Invoiceitem Created", "value": "invoiceitem.created", - "description": "Occurs whenever an invoice item is created." + "description": "Occurs whenever an invoice item is created.", }, { "name": "Invoiceitem Deleted", "value": "invoiceitem.deleted", - "description": "Occurs whenever an invoice item is deleted." + "description": "Occurs whenever an invoice item is deleted.", }, { "name": "Invoiceitem Updated", "value": "invoiceitem.updated", - "description": "Occurs whenever an invoice item is updated." + "description": "Occurs whenever an invoice item is updated.", }, { "name": "Issuing Authorization.created", "value": "issuing_authorization.created", - "description": "Occurs whenever an authorization is created." + "description": "Occurs whenever an authorization is created.", }, { "name": "Issuing Authorization.request", "value": "issuing_authorization.request", - "description": "Represents a synchronous request for authorization, see Using your integration to handle authorization requests." + "description": "Represents a synchronous request for authorization, see Using your integration to handle authorization requests.", }, { "name": "Issuing Authorization.updated", "value": "issuing_authorization.updated", - "description": "Occurs whenever an authorization is updated." + "description": "Occurs whenever an authorization is updated.", }, { "name": "Issuing Card.created", "value": "issuing_card.created", - "description": "Occurs whenever a card is created." + "description": "Occurs whenever a card is created.", }, { "name": "Issuing Card.updated", "value": "issuing_card.updated", - "description": "Occurs whenever a card is updated." + "description": "Occurs whenever a card is updated.", }, { "name": "Issuing Cardholder.created", "value": "issuing_cardholder.created", - "description": "Occurs whenever a cardholder is created." + "description": "Occurs whenever a cardholder is created.", }, { "name": "Issuing Cardholder.updated", "value": "issuing_cardholder.updated", - "description": "Occurs whenever a cardholder is updated." + "description": "Occurs whenever a cardholder is updated.", }, { "name": "Issuing Dispute.created", "value": "issuing_dispute.created", - "description": "Occurs whenever a dispute is created." + "description": "Occurs whenever a dispute is created.", }, { "name": "Issuing Dispute.updated", "value": "issuing_dispute.updated", - "description": "Occurs whenever a dispute is updated." + "description": "Occurs whenever a dispute is updated.", }, { "name": "Issuing Settlement.created", "value": "issuing_settlement.created", - "description": "Occurs whenever an issuing settlement is created." + "description": "Occurs whenever an issuing settlement is created.", }, { "name": "Issuing Settlement.updated", "value": "issuing_settlement.updated", - "description": "Occurs whenever an issuing settlement is updated." + "description": "Occurs whenever an issuing settlement is updated.", }, { "name": "Issuing Transaction.created", "value": "issuing_transaction.created", - "description": "Occurs whenever an issuing transaction is created." + "description": "Occurs whenever an issuing transaction is created.", }, { "name": "Issuing Transaction.updated", "value": "issuing_transaction.updated", - "description": "Occurs whenever an issuing transaction is updated." + "description": "Occurs whenever an issuing transaction is updated.", }, { "name": "Order Created", "value": "order.created", - "description": "Occurs whenever an order is created." + "description": "Occurs whenever an order is created.", }, { "name": "Order Payment_failed", "value": "order.payment_failed", - "description": "Occurs whenever an order payment attempt fails." + "description": "Occurs whenever an order payment attempt fails.", }, { "name": "Order Payment_succeeded", "value": "order.payment_succeeded", - "description": "Occurs whenever an order payment attempt succeeds." + "description": "Occurs whenever an order payment attempt succeeds.", }, { "name": "Order Updated", "value": "order.updated", - "description": "Occurs whenever an order is updated." + "description": "Occurs whenever an order is updated.", }, { "name": "Order Return.created", "value": "order_return.created", - "description": "Occurs whenever an order return is created." + "description": "Occurs whenever an order return is created.", }, { "name": "Payment Intent.amount_capturable_updated", "value": "payment_intent.amount_capturable_updated", - "description": "Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an amount_to_capture value up to the specified amount. Learn more about capturing PaymentIntents." + "description": "Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an amount_to_capture value up to the specified amount. Learn more about capturing PaymentIntents.", }, { "name": "Payment Intent.canceled", "value": "payment_intent.canceled", - "description": "Occurs when a PaymentIntent is canceled." + "description": "Occurs when a PaymentIntent is canceled.", }, { "name": "Payment Intent.created", "value": "payment_intent.created", - "description": "Occurs when a new PaymentIntent is created." + "description": "Occurs when a new PaymentIntent is created.", }, { "name": "Payment Intent.payment_failed", "value": "payment_intent.payment_failed", - "description": "Occurs when a PaymentIntent has failed the attempt to create a source or a payment." + "description": "Occurs when a PaymentIntent has failed the attempt to create a source or a payment.", }, { "name": "Payment Intent.succeeded", "value": "payment_intent.succeeded", - "description": "Occurs when a PaymentIntent has been successfully fulfilled." + "description": "Occurs when a PaymentIntent has been successfully fulfilled.", }, { "name": "Payment Method.attached", "value": "payment_method.attached", - "description": "Occurs whenever a new payment method is attached to a customer." + "description": "Occurs whenever a new payment method is attached to a customer.", }, { "name": "Payment Method.card_automatically_updated", "value": "payment_method.card_automatically_updated", - "description": "Occurs whenever a card payment method's details are automatically updated by the network." + "description": "Occurs whenever a card payment method's details are automatically updated by the network.", }, { "name": "Payment Method.detached", "value": "payment_method.detached", - "description": "Occurs whenever a payment method is detached from a customer." + "description": "Occurs whenever a payment method is detached from a customer.", }, { "name": "Payment Method.updated", "value": "payment_method.updated", - "description": "Occurs whenever a payment method is updated via the PaymentMethod update API." + "description": "Occurs whenever a payment method is updated via the PaymentMethod update API.", }, { "name": "Payout Canceled", "value": "payout.canceled", - "description": "Occurs whenever a payout is canceled." + "description": "Occurs whenever a payout is canceled.", }, { "name": "Payout Created", "value": "payout.created", - "description": "Occurs whenever a payout is created." + "description": "Occurs whenever a payout is created.", }, { "name": "Payout Failed", "value": "payout.failed", - "description": "Occurs whenever a payout attempt fails." + "description": "Occurs whenever a payout attempt fails.", }, { "name": "Payout Paid", "value": "payout.paid", - "description": "Occurs whenever a payout is expected to be available in the destination account. If the payout fails, a payout.failed notification is also sent, at a later time." + "description": "Occurs whenever a payout is expected to be available in the destination account. If the payout fails, a payout.failed notification is also sent, at a later time.", }, { "name": "Payout Updated", "value": "payout.updated", - "description": "Occurs whenever a payout is updated." + "description": "Occurs whenever a payout is updated.", }, { "name": "Person Created", "value": "person.created", - "description": "Occurs whenever a person associated with an account is created." + "description": "Occurs whenever a person associated with an account is created.", }, { "name": "Person Deleted", "value": "person.deleted", - "description": "Occurs whenever a person associated with an account is deleted." + "description": "Occurs whenever a person associated with an account is deleted.", }, { "name": "Person Updated", "value": "person.updated", - "description": "Occurs whenever a person associated with an account is updated." + "description": "Occurs whenever a person associated with an account is updated.", }, { "name": "Plan Created", "value": "plan.created", - "description": "Occurs whenever a plan is created." + "description": "Occurs whenever a plan is created.", }, { "name": "Plan Deleted", "value": "plan.deleted", - "description": "Occurs whenever a plan is deleted." + "description": "Occurs whenever a plan is deleted.", }, { "name": "Plan Updated", "value": "plan.updated", - "description": "Occurs whenever a plan is updated." + "description": "Occurs whenever a plan is updated.", }, { "name": "Product Created", "value": "product.created", - "description": "Occurs whenever a product is created." + "description": "Occurs whenever a product is created.", }, { "name": "Product Deleted", "value": "product.deleted", - "description": "Occurs whenever a product is deleted." + "description": "Occurs whenever a product is deleted.", }, { "name": "Product Updated", "value": "product.updated", - "description": "Occurs whenever a product is updated." + "description": "Occurs whenever a product is updated.", }, { "name": "Radar Early_fraud_warning.created", "value": "radar.early_fraud_warning.created", - "description": "Occurs whenever an early fraud warning is created." + "description": "Occurs whenever an early fraud warning is created.", }, { "name": "Radar Early_fraud_warning.updated", "value": "radar.early_fraud_warning.updated", - "description": "Occurs whenever an early fraud warning is updated." + "description": "Occurs whenever an early fraud warning is updated.", }, { "name": "Recipient Created", "value": "recipient.created", - "description": "Occurs whenever a recipient is created." + "description": "Occurs whenever a recipient is created.", }, { "name": "Recipient Deleted", "value": "recipient.deleted", - "description": "Occurs whenever a recipient is deleted." + "description": "Occurs whenever a recipient is deleted.", }, { "name": "Recipient Updated", "value": "recipient.updated", - "description": "Occurs whenever a recipient is updated." + "description": "Occurs whenever a recipient is updated.", }, { "name": "Reporting Report_run.failed", "value": "reporting.report_run.failed", - "description": "Occurs whenever a requested **ReportRun** failed to complete." + "description": "Occurs whenever a requested **ReportRun** failed to complete.", }, { "name": "Reporting Report_run.succeeded", "value": "reporting.report_run.succeeded", - "description": "Occurs whenever a requested **ReportRun** completed succesfully." + "description": "Occurs whenever a requested **ReportRun** completed succesfully.", }, { "name": "Reporting Report_type.updated", "value": "reporting.report_type.updated", - "description": "Occurs whenever a **ReportType** is updated (typically to indicate that a new day's data has come available)." + "description": "Occurs whenever a **ReportType** is updated (typically to indicate that a new day's data has come available).", }, { "name": "Review Closed", "value": "review.closed", - "description": "Occurs whenever a review is closed. The review's reason field indicates why: approved, disputed, refunded, or refunded_as_fraud." + "description": "Occurs whenever a review is closed. The review's reason field indicates why: approved, disputed, refunded, or refunded_as_fraud.", }, { "name": "Review Opened", "value": "review.opened", - "description": "Occurs whenever a review is opened." + "description": "Occurs whenever a review is opened.", }, { "name": "Setup Intent.canceled", "value": "setup_intent.canceled", - "description": "Occurs when a SetupIntent is canceled." + "description": "Occurs when a SetupIntent is canceled.", }, { "name": "Setup Intent.created", "value": "setup_intent.created", - "description": "Occurs when a new SetupIntent is created." + "description": "Occurs when a new SetupIntent is created.", }, { "name": "Setup Intent.setup_failed", "value": "setup_intent.setup_failed", - "description": "Occurs when a SetupIntent has failed the attempt to setup a payment method." + "description": "Occurs when a SetupIntent has failed the attempt to setup a payment method.", }, { "name": "Setup Intent.succeeded", "value": "setup_intent.succeeded", - "description": "Occurs when an SetupIntent has successfully setup a payment method." + "description": "Occurs when an SetupIntent has successfully setup a payment method.", }, { "name": "Sigma Scheduled_query_run.created", "value": "sigma.scheduled_query_run.created", - "description": "Occurs whenever a Sigma scheduled query run finishes." + "description": "Occurs whenever a Sigma scheduled query run finishes.", }, { "name": "Sku Created", "value": "sku.created", - "description": "Occurs whenever a SKU is created." + "description": "Occurs whenever a SKU is created.", }, { "name": "Sku Deleted", "value": "sku.deleted", - "description": "Occurs whenever a SKU is deleted." + "description": "Occurs whenever a SKU is deleted.", }, { "name": "Sku Updated", "value": "sku.updated", - "description": "Occurs whenever a SKU is updated." + "description": "Occurs whenever a SKU is updated.", }, { "name": "Source Canceled", "value": "source.canceled", - "description": "Occurs whenever a source is canceled." + "description": "Occurs whenever a source is canceled.", }, { "name": "Source Chargeable", "value": "source.chargeable", - "description": "Occurs whenever a source transitions to chargeable." + "description": "Occurs whenever a source transitions to chargeable.", }, { "name": "Source Failed", "value": "source.failed", - "description": "Occurs whenever a source fails." + "description": "Occurs whenever a source fails.", }, { "name": "Source Mandate_notification", "value": "source.mandate_notification", - "description": "Occurs whenever a source mandate notification method is set to manual." + "description": "Occurs whenever a source mandate notification method is set to manual.", }, { "name": "Source Refund_attributes_required", "value": "source.refund_attributes_required", - "description": "Occurs whenever the refund attributes are required on a receiver source to process a refund or a mispayment." + "description": "Occurs whenever the refund attributes are required on a receiver source to process a refund or a mispayment.", }, { "name": "Source Transaction.created", "value": "source.transaction.created", - "description": "Occurs whenever a source transaction is created." + "description": "Occurs whenever a source transaction is created.", }, { "name": "Source Transaction.updated", "value": "source.transaction.updated", - "description": "Occurs whenever a source transaction is updated." + "description": "Occurs whenever a source transaction is updated.", }, { "name": "Subscription Schedule.aborted", "value": "subscription_schedule.aborted", - "description": "Occurs whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency." + "description": "Occurs whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency.", }, { "name": "Subscription Schedule.canceled", "value": "subscription_schedule.canceled", - "description": "Occurs whenever a subscription schedule is canceled." + "description": "Occurs whenever a subscription schedule is canceled.", }, { "name": "Subscription Schedule.completed", "value": "subscription_schedule.completed", - "description": "Occurs whenever a new subscription schedule is completed." + "description": "Occurs whenever a new subscription schedule is completed.", }, { "name": "Subscription Schedule.created", "value": "subscription_schedule.created", - "description": "Occurs whenever a new subscription schedule is created." + "description": "Occurs whenever a new subscription schedule is created.", }, { "name": "Subscription Schedule.expiring", "value": "subscription_schedule.expiring", - "description": "Occurs 7 days before a subscription schedule will expire." + "description": "Occurs 7 days before a subscription schedule will expire.", }, { "name": "Subscription Schedule.released", "value": "subscription_schedule.released", - "description": "Occurs whenever a new subscription schedule is released." + "description": "Occurs whenever a new subscription schedule is released.", }, { "name": "Subscription Schedule.updated", "value": "subscription_schedule.updated", - "description": "Occurs whenever a subscription schedule is updated." + "description": "Occurs whenever a subscription schedule is updated.", }, { "name": "Tax Rate.created", "value": "tax_rate.created", - "description": "Occurs whenever a new tax rate is created." + "description": "Occurs whenever a new tax rate is created.", }, { "name": "Tax Rate.updated", "value": "tax_rate.updated", - "description": "Occurs whenever a tax rate is updated." + "description": "Occurs whenever a tax rate is updated.", }, { "name": "Topup Canceled", "value": "topup.canceled", - "description": "Occurs whenever a top-up is canceled." + "description": "Occurs whenever a top-up is canceled.", }, { "name": "Topup Created", "value": "topup.created", - "description": "Occurs whenever a top-up is created." + "description": "Occurs whenever a top-up is created.", }, { "name": "Topup Failed", "value": "topup.failed", - "description": "Occurs whenever a top-up fails." + "description": "Occurs whenever a top-up fails.", }, { "name": "Topup Reversed", "value": "topup.reversed", - "description": "Occurs whenever a top-up is reversed." + "description": "Occurs whenever a top-up is reversed.", }, { "name": "Topup Succeeded", "value": "topup.succeeded", - "description": "Occurs whenever a top-up succeeds." + "description": "Occurs whenever a top-up succeeds.", }, { "name": "Transfer Created", "value": "transfer.created", - "description": "Occurs whenever a transfer is created." + "description": "Occurs whenever a transfer is created.", }, { "name": "Transfer Failed", "value": "transfer.failed", - "description": "Occurs whenever a transfer failed." + "description": "Occurs whenever a transfer failed.", }, { "name": "Transfer Paid", "value": "transfer.paid", - "description": "Occurs after a transfer is paid. For Instant Payouts, the event will be sent on the next business day, although the funds should be received well beforehand." + "description": "Occurs after a transfer is paid. For Instant Payouts, the event will be sent on the next business day, although the funds should be received well beforehand.", }, { "name": "Transfer Reversed", "value": "transfer.reversed", - "description": "Occurs whenever a transfer is reversed, including partial reversals." + "description": "Occurs whenever a transfer is reversed, including partial reversals.", }, { "name": "Transfer Updated", "value": "transfer.updated", - "description": "Occurs whenever a transfer's description or metadata is updated." - } - ] - } + "description": "Occurs whenever a transfer's description or metadata is updated.", + }, + ], + }, ], }; @@ -906,7 +906,7 @@ export class StripeTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Stripe/helpers.ts b/packages/nodes-base/nodes/Stripe/helpers.ts index 72bbe6f02..f2c05eede 100644 --- a/packages/nodes-base/nodes/Stripe/helpers.ts +++ b/packages/nodes-base/nodes/Stripe/helpers.ts @@ -26,7 +26,7 @@ export async function stripeApiRequest(this: IHookFunctions | IExecuteFunctions, form: body, qs: query, uri: `https://api.stripe.com/v1${endpoint}`, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/SurveyMonkey/GenericFunctions.ts b/packages/nodes-base/nodes/SurveyMonkey/GenericFunctions.ts index bfca4dde1..2c31a182d 100644 --- a/packages/nodes-base/nodes/SurveyMonkey/GenericFunctions.ts +++ b/packages/nodes-base/nodes/SurveyMonkey/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function surveyMonkeyApiRequest(this: IExecuteFunctions | IWebhookF body, qs: query, uri: uri || `${endpoint}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { diff --git a/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts b/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts index 94320d4b4..0c14549d9 100644 --- a/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts +++ b/packages/nodes-base/nodes/SurveyMonkey/SurveyMonkeyTrigger.node.ts @@ -124,7 +124,7 @@ export class SurveyMonkeyTrigger implements INodeType { displayOptions: { show: { objectType: [ - 'survey' + 'survey', ], }, }, @@ -529,7 +529,7 @@ export class SurveyMonkeyTrigger implements INodeType { let returnItem: INodeExecutionData[] = [ { json: responseData, - } + }, ]; if (event === 'response_completed') { @@ -725,7 +725,7 @@ export class SurveyMonkeyTrigger implements INodeType { returnItem = [ { json: responseData, - } + }, ]; } } diff --git a/packages/nodes-base/nodes/Switch.node.ts b/packages/nodes-base/nodes/Switch.node.ts index 80b3845bc..2cf3ee598 100644 --- a/packages/nodes-base/nodes/Switch.node.ts +++ b/packages/nodes-base/nodes/Switch.node.ts @@ -59,7 +59,7 @@ export class Switch implements INodeType { displayOptions: { show: { mode: [ - 'expression' + 'expression', ], }, }, @@ -110,7 +110,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'boolean' + 'boolean', ], mode: [ 'rules', @@ -131,7 +131,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'boolean' + 'boolean', ], mode: [ 'rules', @@ -152,11 +152,11 @@ export class Switch implements INodeType { options: [ { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, ], default: 'equal', @@ -195,7 +195,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'number' + 'number', ], mode: [ 'rules', @@ -216,7 +216,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'number' + 'number', ], mode: [ 'rules', @@ -237,27 +237,27 @@ export class Switch implements INodeType { options: [ { name: 'Smaller', - value: 'smaller' + value: 'smaller', }, { name: 'Smaller Equal', - value: 'smallerEqual' + value: 'smallerEqual', }, { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, { name: 'Larger', - value: 'larger' + value: 'larger', }, { name: 'Larger Equal', - value: 'largerEqual' + value: 'largerEqual', }, ], default: 'smaller', @@ -296,7 +296,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'string' + 'string', ], mode: [ 'rules', @@ -317,7 +317,7 @@ export class Switch implements INodeType { displayOptions: { show: { dataType: [ - 'string' + 'string', ], mode: [ 'rules', @@ -338,23 +338,23 @@ export class Switch implements INodeType { options: [ { name: 'Contains', - value: 'contains' + value: 'contains', }, { name: 'Equal', - value: 'equal' + value: 'equal', }, { name: 'Not Contains', - value: 'notContains' + value: 'notContains', }, { name: 'Not Equal', - value: 'notEqual' + value: 'notEqual', }, { name: 'Regex', - value: 'regex' + value: 'regex', }, ], default: 'equal', diff --git a/packages/nodes-base/nodes/Taiga/GenericFunctions.ts b/packages/nodes-base/nodes/Taiga/GenericFunctions.ts index 56f635793..4d9da265a 100644 --- a/packages/nodes-base/nodes/Taiga/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Taiga/GenericFunctions.ts @@ -21,7 +21,7 @@ import { export async function getAuthorization( this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IWebhookFunctions, - credentials?: ICredentialDataDecryptedObject, + credentials?: ICredentialDataDecryptedObject ): Promise { if (credentials === undefined) { throw new Error('No credentials got returned!'); @@ -56,7 +56,7 @@ export async function taigaApiRequest( body = {}, query = {}, uri?: string | undefined, - option = {}, + option = {} ): Promise { // tslint:disable-line:no-any const version = this.getNodeParameter('version', 0, 'cloud') as string; @@ -82,7 +82,7 @@ export async function taigaApiRequest( method, body, uri: uri || (credentials.url) ? `${credentials.url}/api/v1${resource}` : `https://api.taiga.io/api/v1${resource}`, - json: true + json: true, }; if (Object.keys(option).length !== 0) { diff --git a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts index a26ddb148..6598b1bac 100644 --- a/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts +++ b/packages/nodes-base/nodes/Taiga/TaigaTrigger.node.ts @@ -218,7 +218,7 @@ export class TaigaTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(bodyData) + this.helpers.returnJsonArray(bodyData), ], }; } diff --git a/packages/nodes-base/nodes/Taiga/issueOperationFields.ts b/packages/nodes-base/nodes/Taiga/issueOperationFields.ts index 1989d59d0..1ecf03341 100644 --- a/packages/nodes-base/nodes/Taiga/issueOperationFields.ts +++ b/packages/nodes-base/nodes/Taiga/issueOperationFields.ts @@ -159,7 +159,7 @@ export const issueOperationFields = [ loadOptionsDependsOn: [ 'projectSlug', ], - loadOptionsMethod: 'getTypes' + loadOptionsMethod: 'getTypes', }, default: '', }, @@ -306,7 +306,7 @@ export const issueOperationFields = [ loadOptionsDependsOn: [ 'projectSlug', ], - loadOptionsMethod: 'getTypes' + loadOptionsMethod: 'getTypes', }, default: '', }, diff --git a/packages/nodes-base/nodes/Telegram/Telegram.node.ts b/packages/nodes-base/nodes/Telegram/Telegram.node.ts index e7b7825a8..c64d13a2e 100644 --- a/packages/nodes-base/nodes/Telegram/Telegram.node.ts +++ b/packages/nodes-base/nodes/Telegram/Telegram.node.ts @@ -34,7 +34,7 @@ export class Telegram implements INodeType { { name: 'telegramApi', required: true, - } + }, ], properties: [ { @@ -53,7 +53,7 @@ export class Telegram implements INodeType { { name: 'Message', value: 'message', - } + }, ], default: 'message', description: 'The resource to operate on.', @@ -250,7 +250,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'member' + 'member', ], resource: [ 'chat', @@ -273,7 +273,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'setDescription' + 'setDescription', ], resource: [ 'chat', @@ -296,7 +296,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'setTitle' + 'setTitle', ], resource: [ 'chat', @@ -323,7 +323,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'answerQuery' + 'answerQuery', ], resource: [ 'callback', @@ -342,7 +342,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'answerQuery' + 'answerQuery', ], resource: [ 'callback', @@ -434,7 +434,7 @@ export class Telegram implements INodeType { displayOptions: { show: { messageType: [ - 'message' + 'message', ], operation: [ 'editMessageText', @@ -455,7 +455,7 @@ export class Telegram implements INodeType { displayOptions: { show: { messageType: [ - 'message' + 'message', ], operation: [ 'editMessageText', @@ -476,7 +476,7 @@ export class Telegram implements INodeType { displayOptions: { show: { messageType: [ - 'inlineMessage' + 'inlineMessage', ], operation: [ 'editMessageText', @@ -530,7 +530,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendAnimation' + 'sendAnimation', ], resource: [ 'message', @@ -553,7 +553,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendAudio' + 'sendAudio', ], resource: [ 'message', @@ -575,7 +575,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendChatAction' + 'sendChatAction', ], resource: [ 'message', @@ -641,7 +641,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendDocument' + 'sendDocument', ], resource: [ 'message', @@ -662,7 +662,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendMediaGroup' + 'sendMediaGroup', ], resource: [ 'message', @@ -784,7 +784,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendPhoto' + 'sendPhoto', ], resource: [ 'message', @@ -806,7 +806,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendSticker' + 'sendSticker', ], resource: [ 'message', @@ -828,7 +828,7 @@ export class Telegram implements INodeType { displayOptions: { show: { operation: [ - 'sendVideo' + 'sendVideo', ], resource: [ 'message', diff --git a/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts b/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts index c9659cfee..116855de6 100644 --- a/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts +++ b/packages/nodes-base/nodes/Telegram/TelegramTrigger.node.ts @@ -266,8 +266,8 @@ export class TelegramTrigger implements INodeType { binary: { data: binaryData, }, - } - ] + }, + ], ], }; } @@ -275,7 +275,7 @@ export class TelegramTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray([bodyData as unknown as IDataObject]) + this.helpers.returnJsonArray([bodyData as unknown as IDataObject]), ], }; } diff --git a/packages/nodes-base/nodes/Todoist/GenericFunctions.ts b/packages/nodes-base/nodes/Todoist/GenericFunctions.ts index 31d8d85f9..ed3f7cbef 100644 --- a/packages/nodes-base/nodes/Todoist/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Todoist/GenericFunctions.ts @@ -20,7 +20,7 @@ export async function todoistApiRequest( method: string, resource: string, body: any = {}, // tslint:disable-line:no-any - qs: IDataObject = {}, + qs: IDataObject = {} ): Promise { // tslint:disable-line:no-any const authentication = this.getNodeParameter('authentication', 0, 'apiKey'); diff --git a/packages/nodes-base/nodes/Todoist/Todoist.node.ts b/packages/nodes-base/nodes/Todoist/Todoist.node.ts index fb46fe7b5..4190f54cd 100644 --- a/packages/nodes-base/nodes/Todoist/Todoist.node.ts +++ b/packages/nodes-base/nodes/Todoist/Todoist.node.ts @@ -416,8 +416,8 @@ export class Todoist implements INodeType { } return returnData; - } - } + }, + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Toggl/GenericFunctions.ts b/packages/nodes-base/nodes/Toggl/GenericFunctions.ts index d8d3ed693..534606adf 100644 --- a/packages/nodes-base/nodes/Toggl/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Toggl/GenericFunctions.ts @@ -27,7 +27,7 @@ export async function togglApiRequest(this: ITriggerFunctions | IPollFunctions | qs: query, uri: uri || `https://www.toggl.com/api/v8${resource}`, body, - json: true + json: true, }; if (Object.keys(options.body).length === 0) { delete options.body; diff --git a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts index 70bd4945e..2f9242215 100644 --- a/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts +++ b/packages/nodes-base/nodes/Toggl/TogglTrigger.node.ts @@ -25,7 +25,7 @@ export class TogglTrigger implements INodeType { { name: 'togglApi', required: true, - } + }, ], polling: true, inputs: [], @@ -39,12 +39,12 @@ export class TogglTrigger implements INodeType { { name: 'New Time Entry', value: 'newTimeEntry', - } + }, ], required: true, default: 'newTimeEntry', }, - ] + ], }; async poll(this: IPollFunctions): Promise { diff --git a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts index 0506dfdaf..2afd7e5cd 100644 --- a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts +++ b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts @@ -198,7 +198,7 @@ export const buildFields = [ { name: 'DESC', value: 'desc', - } + }, ], default: 'asc', description: 'You may specify order to sort your response.', diff --git a/packages/nodes-base/nodes/TravisCi/GenericFunctions.ts b/packages/nodes-base/nodes/TravisCi/GenericFunctions.ts index a7168039d..4ae360499 100644 --- a/packages/nodes-base/nodes/TravisCi/GenericFunctions.ts +++ b/packages/nodes-base/nodes/TravisCi/GenericFunctions.ts @@ -35,7 +35,7 @@ export async function travisciApiRequest(this: IHookFunctions | IExecuteFunction qs, body, uri: uri || `https://api.travis-ci.com${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts b/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts index 313eab17d..7be473da6 100644 --- a/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts +++ b/packages/nodes-base/nodes/TravisCi/TravisCi.node.ts @@ -38,7 +38,7 @@ export class TravisCi implements INodeType { { name: 'travisCiApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts index 1fa0bc58d..8be93f634 100644 --- a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts +++ b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts @@ -37,7 +37,7 @@ export const attachmentOperations = [ name: 'Get All', value: 'getAll', description: 'Returns all attachments for the card', - } + }, ], default: 'getAll', description: 'The operation to perform.', diff --git a/packages/nodes-base/nodes/Trello/BoardDescription.ts b/packages/nodes-base/nodes/Trello/BoardDescription.ts index 9e75de40c..c613d0ce2 100644 --- a/packages/nodes-base/nodes/Trello/BoardDescription.ts +++ b/packages/nodes-base/nodes/Trello/BoardDescription.ts @@ -41,7 +41,7 @@ export const boardOperations = [ ], default: 'create', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const boardFields = [ diff --git a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts index a8ecb03e6..4079f53c5 100644 --- a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts @@ -452,7 +452,7 @@ export const checklistFields = [ options: [ { name: 'complete', - value: 'complete' + value: 'complete', }, { name: 'incomplete', diff --git a/packages/nodes-base/nodes/Trello/LabelDescription.ts b/packages/nodes-base/nodes/Trello/LabelDescription.ts index 3aaa91809..fee245ec2 100644 --- a/packages/nodes-base/nodes/Trello/LabelDescription.ts +++ b/packages/nodes-base/nodes/Trello/LabelDescription.ts @@ -52,7 +52,7 @@ export const labelOperations = [ name: 'Update', value: 'update', description: 'Update a label.', - } + }, ], default: 'getAll', @@ -127,7 +127,7 @@ export const labelFields = [ }, { name: 'green', - value: 'green' + value: 'green', }, { name: 'orange', @@ -159,7 +159,7 @@ export const labelFields = [ }, { name: 'yellow', - value: 'yellow' + value: 'yellow', }, ], default: 'null', @@ -425,7 +425,7 @@ export const labelFields = [ }, { name: 'green', - value: 'green' + value: 'green', }, { name: 'orange', @@ -457,7 +457,7 @@ export const labelFields = [ }, { name: 'yellow', - value: 'yellow' + value: 'yellow', }, ], default: 'null', diff --git a/packages/nodes-base/nodes/Trello/ListDescription.ts b/packages/nodes-base/nodes/Trello/ListDescription.ts index 105f84114..c2a539e28 100644 --- a/packages/nodes-base/nodes/Trello/ListDescription.ts +++ b/packages/nodes-base/nodes/Trello/ListDescription.ts @@ -21,27 +21,27 @@ export const listOperations = [ { name: 'Archive', value: 'archive', - description: 'Archive/Unarchive a list' + description: 'Archive/Unarchive a list', }, { name: 'Create', value: 'create', - description: 'Create a new list' + description: 'Create a new list', }, { name: 'Get', value: 'get', - description: 'Get the data of a list' + description: 'Get the data of a list', }, { name: 'Update', value: 'update', - description: 'Update a list' - } + description: 'Update a list', + }, ], default: 'create', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const listFields = [ @@ -64,7 +64,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the list to archive or unarchive.' + description: 'The ID of the list to archive or unarchive.', }, { displayName: 'Archive', @@ -81,7 +81,7 @@ export const listFields = [ ], }, }, - description: 'If the list should be archived or unarchived.' + description: 'If the list should be archived or unarchived.', }, // ---------------------------------- @@ -103,7 +103,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the board the list should be created in' + description: 'The ID of the board the list should be created in', }, { displayName: 'Name', @@ -122,7 +122,7 @@ export const listFields = [ ], }, }, - description: 'The name of the list' + description: 'The name of the list', }, { displayName: 'Additional Fields', @@ -146,7 +146,7 @@ export const listFields = [ name: 'idListSource', type: 'string', default: '', - description: 'ID of the list to copy into the new list.' + description: 'ID of the list to copy into the new list.', }, { displayName: 'Position', @@ -154,9 +154,9 @@ export const listFields = [ type: 'string', default: 'bottom', description: - 'The position of the new list. top, bottom, or a positive float.' - } - ] + 'The position of the new list. top, bottom, or a positive float.', + }, + ], }, // ---------------------------------- @@ -178,7 +178,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the list to get.' + description: 'The ID of the list to get.', }, { displayName: 'Additional Fields', @@ -202,9 +202,9 @@ export const listFields = [ name: 'fields', type: 'string', default: 'all', - description: 'Fields to return. Either "all" or a comma-separated list of fields.' - } - ] + description: 'Fields to return. Either "all" or a comma-separated list of fields.', + }, + ], }, // ---------------------------------- @@ -226,7 +226,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the list to update.' + description: 'The ID of the list to update.', }, { displayName: 'Update Fields', @@ -250,21 +250,21 @@ export const listFields = [ name: 'idBoard', type: 'string', default: '', - description: 'ID of a board the list should be moved to.' + description: 'ID of a board the list should be moved to.', }, { displayName: 'Closed', name: 'closed', type: 'boolean', default: false, - description: 'Whether the list is closed.' + description: 'Whether the list is closed.', }, { displayName: 'Name', name: 'name', type: 'string', default: '', - description: 'New name of the list' + description: 'New name of the list', }, { displayName: 'Position', @@ -272,15 +272,15 @@ export const listFields = [ type: 'string', default: 'bottom', description: - 'The position of the list. top, bottom, or a positive float.' + 'The position of the list. top, bottom, or a positive float.', }, { displayName: 'Subscribed', name: 'subscribed', type: 'boolean', default: false, - description: 'Whether the acting user is subscribed to the list.' - } - ] - } + description: 'Whether the acting user is subscribed to the list.', + }, + ], + }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Trello/Trello.node.ts b/packages/nodes-base/nodes/Trello/Trello.node.ts index 0fa85a8de..99378d969 100644 --- a/packages/nodes-base/nodes/Trello/Trello.node.ts +++ b/packages/nodes-base/nodes/Trello/Trello.node.ts @@ -77,7 +77,7 @@ export class Trello implements INodeType { options: [ { name: 'Attachment', - value: 'attachment' + value: 'attachment', }, { name: 'Board', @@ -97,7 +97,7 @@ export class Trello implements INodeType { }, { name: 'Label', - value: 'label' + value: 'label', }, { name: 'List', @@ -128,7 +128,7 @@ export class Trello implements INodeType { ...cardCommentFields, ...checklistFields, ...labelFields, - ...listFields + ...listFields, ], }; @@ -582,7 +582,7 @@ export class Trello implements INodeType { Object.assign(qs, { idBoard, name, - color + color, }); endpoint = 'labels'; diff --git a/packages/nodes-base/nodes/Twilio/GenericFunctions.ts b/packages/nodes-base/nodes/Twilio/GenericFunctions.ts index c399911b6..fba00a7e3 100644 --- a/packages/nodes-base/nodes/Twilio/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Twilio/GenericFunctions.ts @@ -35,7 +35,7 @@ export async function twilioApiRequest(this: IHookFunctions | IExecuteFunctions, user: credentials.accountSid as string, pass: credentials.authToken as string, }, - json: true + json: true, }; try { diff --git a/packages/nodes-base/nodes/Twilio/Twilio.node.ts b/packages/nodes-base/nodes/Twilio/Twilio.node.ts index cf468c20e..f227c6668 100644 --- a/packages/nodes-base/nodes/Twilio/Twilio.node.ts +++ b/packages/nodes-base/nodes/Twilio/Twilio.node.ts @@ -31,7 +31,7 @@ export class Twilio implements INodeType { { name: 'twilioApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Twitter/GenericFunctions.ts b/packages/nodes-base/nodes/Twitter/GenericFunctions.ts index d05a3c32e..bb2336eea 100644 --- a/packages/nodes-base/nodes/Twitter/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Twitter/GenericFunctions.ts @@ -19,7 +19,7 @@ export async function twitterApiRequest(this: IExecuteFunctions | IExecuteSingle body, qs, url: uri || `https://api.twitter.com/1.1${resource}`, - json: true + json: true, }; try { if (Object.keys(option).length !== 0) { diff --git a/packages/nodes-base/nodes/Twitter/TweetDescription.ts b/packages/nodes-base/nodes/Twitter/TweetDescription.ts index b7ddcf6c5..cd3a517e1 100644 --- a/packages/nodes-base/nodes/Twitter/TweetDescription.ts +++ b/packages/nodes-base/nodes/Twitter/TweetDescription.ts @@ -143,7 +143,7 @@ export const tweetFields = [ default: false, description: 'If you upload Tweet media that might be considered sensitive content such as nudity, or medical procedures, you must set this value to true.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* tweet:search */ @@ -323,7 +323,7 @@ export const tweetFields = [ { name: 'Popular', value: 'popular', - description: 'Return only the most popular results in the response.' + description: 'Return only the most popular results in the response.', }, ], default: 'mixed', diff --git a/packages/nodes-base/nodes/Twitter/Twitter.node.ts b/packages/nodes-base/nodes/Twitter/Twitter.node.ts index 22ce72657..4e546f135 100644 --- a/packages/nodes-base/nodes/Twitter/Twitter.node.ts +++ b/packages/nodes-base/nodes/Twitter/Twitter.node.ts @@ -51,7 +51,7 @@ export class Twitter implements INodeType { { name: 'twitterOAuth1Api', required: true, - } + }, ], properties: [ { @@ -239,7 +239,7 @@ export class Twitter implements INodeType { const returnAll = this.getNodeParameter('returnAll', i) as boolean; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const qs: IDataObject = { - q + q, }; if (additionalFields.includeEntities) { diff --git a/packages/nodes-base/nodes/Uplead/GenericFunctions.ts b/packages/nodes-base/nodes/Uplead/GenericFunctions.ts index ff6d7b481..176996342 100644 --- a/packages/nodes-base/nodes/Uplead/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Uplead/GenericFunctions.ts @@ -18,7 +18,7 @@ export async function upleadApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.uplead.com/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Uplead/Uplead.node.ts b/packages/nodes-base/nodes/Uplead/Uplead.node.ts index 2c4197244..bd280ad35 100644 --- a/packages/nodes-base/nodes/Uplead/Uplead.node.ts +++ b/packages/nodes-base/nodes/Uplead/Uplead.node.ts @@ -38,7 +38,7 @@ export class Uplead implements INodeType { { name: 'upleadApi', required: true, - } + }, ], properties: [ { @@ -54,7 +54,7 @@ export class Uplead implements INodeType { { name: 'Person', value: 'person', - description: `Person API lets you lookup a person based on an email address OR based on a domain name + first name + last name` + description: `Person API lets you lookup a person based on an email address OR based on a domain name + first name + last name`, }, ], default: 'company', diff --git a/packages/nodes-base/nodes/Vero/EventDescripion.ts b/packages/nodes-base/nodes/Vero/EventDescripion.ts index b92f295b9..54c0d0e32 100644 --- a/packages/nodes-base/nodes/Vero/EventDescripion.ts +++ b/packages/nodes-base/nodes/Vero/EventDescripion.ts @@ -43,7 +43,7 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, }, description: 'The unique identifier of the customer', @@ -61,7 +61,7 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, }, description: 'Email', @@ -79,7 +79,7 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, }, description: 'The name of the event tracked.', @@ -97,9 +97,9 @@ export const eventFields = [ ], operation: [ 'track', - ] + ], }, - } + }, }, { displayName: 'Data', @@ -143,7 +143,7 @@ export const eventFields = [ default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -189,7 +189,7 @@ export const eventFields = [ default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, diff --git a/packages/nodes-base/nodes/Vero/GenericFunctions.ts b/packages/nodes-base/nodes/Vero/GenericFunctions.ts index ecac55953..dd3a7fcab 100644 --- a/packages/nodes-base/nodes/Vero/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Vero/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function veroApiRequest(this: IExecuteFunctions | IExecuteSingleFun ...body, }, uri: uri ||`https://api.getvero.com/api/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Vero/UserDescription.ts b/packages/nodes-base/nodes/Vero/UserDescription.ts index 240241afb..cd33f2a05 100644 --- a/packages/nodes-base/nodes/Vero/UserDescription.ts +++ b/packages/nodes-base/nodes/Vero/UserDescription.ts @@ -73,7 +73,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The unique identifier of the customer', @@ -91,9 +91,9 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, - } + }, }, { displayName: 'Additional Fields', @@ -119,7 +119,7 @@ export const userFields = [ default: '', description: 'The table to create the row in.', }, - ] + ], }, { displayName: 'Data', @@ -163,7 +163,7 @@ export const userFields = [ default: '', description: 'Value of the property to set.', }, - ] + ], }, ], }, @@ -208,7 +208,7 @@ export const userFields = [ ], operation: [ 'alias', - ] + ], }, }, description: 'The old unique identifier of the user', @@ -226,7 +226,7 @@ export const userFields = [ ], operation: [ 'alias', - ] + ], }, }, description: 'The new unique identifier of the user', @@ -247,7 +247,7 @@ export const userFields = [ ], operation: [ 'unsubscribe', - ] + ], }, }, description: 'The unique identifier of the user', @@ -268,7 +268,7 @@ export const userFields = [ ], operation: [ 'resubscribe', - ] + ], }, }, description: 'The unique identifier of the user', @@ -289,7 +289,7 @@ export const userFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'The unique identifier of the user', @@ -310,7 +310,7 @@ export const userFields = [ ], operation: [ 'addTags', - ] + ], }, }, description: 'The unique identifier of the user', @@ -328,7 +328,7 @@ export const userFields = [ ], operation: [ 'addTags', - ] + ], }, }, description: 'Tags to add separated by ","', @@ -349,7 +349,7 @@ export const userFields = [ ], operation: [ 'removeTags', - ] + ], }, }, description: 'The unique identifier of the user', @@ -367,7 +367,7 @@ export const userFields = [ ], operation: [ 'removeTags', - ] + ], }, }, description: 'Tags to remove separated by ","', diff --git a/packages/nodes-base/nodes/Vero/Vero.node.ts b/packages/nodes-base/nodes/Vero/Vero.node.ts index ea6e7a8d8..6eb28aa76 100644 --- a/packages/nodes-base/nodes/Vero/Vero.node.ts +++ b/packages/nodes-base/nodes/Vero/Vero.node.ts @@ -39,7 +39,7 @@ export class Vero implements INodeType { { name: 'veroApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Vonage/Vonage.node.ts b/packages/nodes-base/nodes/Vonage/Vonage.node.ts index a8ec84a33..d93f52812 100644 --- a/packages/nodes-base/nodes/Vonage/Vonage.node.ts +++ b/packages/nodes-base/nodes/Vonage/Vonage.node.ts @@ -46,7 +46,7 @@ export class Vonage implements INodeType { }, ], default: 'sms', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, { displayName: 'Operation', @@ -66,7 +66,7 @@ export class Vonage implements INodeType { }, }, default: 'send', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, { displayName: 'From', diff --git a/packages/nodes-base/nodes/Webflow/GenericFunctions.ts b/packages/nodes-base/nodes/Webflow/GenericFunctions.ts index 783b67480..4632ec93a 100644 --- a/packages/nodes-base/nodes/Webflow/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Webflow/GenericFunctions.ts @@ -25,7 +25,7 @@ export async function webflowApiRequest(this: IHookFunctions | IExecuteFunctions qs, body, uri: uri ||`https://api.webflow.com${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Webhook.node.ts b/packages/nodes-base/nodes/Webhook.node.ts index 0294d6556..8d819d37b 100644 --- a/packages/nodes-base/nodes/Webhook.node.ts +++ b/packages/nodes-base/nodes/Webhook.node.ts @@ -96,15 +96,15 @@ export class Webhook implements INodeType { options: [ { name: 'Basic Auth', - value: 'basicAuth' + value: 'basicAuth', }, { name: 'Header Auth', - value: 'headerAuth' + value: 'headerAuth', }, { name: 'None', - value: 'none' + value: 'none', }, ], default: 'none', @@ -206,7 +206,7 @@ export class Webhook implements INodeType { displayOptions: { show: { responseData: [ - 'firstEntryBinary' + 'firstEntryBinary', ], }, }, @@ -297,7 +297,7 @@ export class Webhook implements INodeType { default: '', description: 'Value of the header.', }, - ] + ], }, ], }, @@ -418,7 +418,7 @@ export class Webhook implements INodeType { workflowData: [ [ returnItem, - ] + ], ], }); }); @@ -450,8 +450,8 @@ export class Webhook implements INodeType { return resolve({ workflowData: [ [ - returnItem - ] + returnItem, + ], ], }); }); @@ -476,7 +476,7 @@ export class Webhook implements INodeType { // @ts-ignore data: req.rawBody.toString(BINARY_ENCODING), mimeType, - } + }, }; } diff --git a/packages/nodes-base/nodes/Wekan/BoardDescription.ts b/packages/nodes-base/nodes/Wekan/BoardDescription.ts index 29f45f5e0..41b7dec9b 100644 --- a/packages/nodes-base/nodes/Wekan/BoardDescription.ts +++ b/packages/nodes-base/nodes/Wekan/BoardDescription.ts @@ -41,7 +41,7 @@ export const boardOperations = [ ], default: 'create', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const boardFields = [ diff --git a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts index a9449bb16..955690f07 100644 --- a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts +++ b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts @@ -64,7 +64,7 @@ export const cardCommentFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -177,7 +177,7 @@ export const cardCommentFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -273,7 +273,7 @@ export const cardCommentFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -365,7 +365,7 @@ export const cardCommentFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', diff --git a/packages/nodes-base/nodes/Wekan/CardDescription.ts b/packages/nodes-base/nodes/Wekan/CardDescription.ts index 154eabd13..e2579d39c 100644 --- a/packages/nodes-base/nodes/Wekan/CardDescription.ts +++ b/packages/nodes-base/nodes/Wekan/CardDescription.ts @@ -72,7 +72,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -231,7 +231,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -255,7 +255,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the list that card belongs to.' + description: 'The ID of the list that card belongs to.', }, { displayName: 'Card ID', @@ -305,7 +305,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -329,7 +329,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the list that card belongs to.' + description: 'The ID of the list that card belongs to.', }, { displayName: 'Card ID', @@ -372,7 +372,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'From Object', @@ -400,7 +400,7 @@ export const cardFields = [ }, ], default: '', - description: '' + description: '', }, { displayName: 'List ID', @@ -427,7 +427,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the list that card belongs to.' + description: 'The ID of the list that card belongs to.', }, { displayName: 'Swimlane ID', @@ -453,7 +453,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the swimlane that card belongs to.' + description: 'The ID of the swimlane that card belongs to.', }, { displayName: 'Return All', @@ -519,7 +519,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -543,7 +543,7 @@ export const cardFields = [ ], }, }, - description: 'The ID of the list that card belongs to.' + description: 'The ID of the list that card belongs to.', }, { displayName: 'Card ID', @@ -646,7 +646,7 @@ export const cardFields = [ }, { value: 'lime', - name: 'Lime' + name: 'Lime', }, { value: 'pink', @@ -662,7 +662,7 @@ export const cardFields = [ }, { value: 'peachpuff', - name: 'Peachpuff' + name: 'Peachpuff', }, { value: 'crimson', @@ -670,7 +670,7 @@ export const cardFields = [ }, { value: 'plum', - name: 'Plum' + name: 'Plum', }, { value: 'darkgreen', @@ -678,7 +678,7 @@ export const cardFields = [ }, { value: 'slateblue', - name: 'Slateblue' + name: 'Slateblue', }, { value: 'magenta', @@ -702,7 +702,7 @@ export const cardFields = [ }, { value: 'paleturquoise', - name: 'Paleturquoise' + name: 'Paleturquoise', }, { value: 'mistyrose', diff --git a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts index 6af95955c..390cdeefa 100644 --- a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts @@ -68,7 +68,7 @@ export const checklistFields = [ ], }, }, - description: 'The ID of the board where the card is in.' + description: 'The ID of the board where the card is in.', }, { displayName: 'List ID', @@ -181,7 +181,7 @@ export const checklistFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -280,7 +280,7 @@ export const checklistFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -329,7 +329,7 @@ export const checklistFields = [ ], }, }, - description: 'The ID of the card that checklist belongs to.' + description: 'The ID of the card that checklist belongs to.', }, { displayName: 'Checklist ID', @@ -379,7 +379,7 @@ export const checklistFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', diff --git a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts index 8eb91db3e..d9170c1ae 100644 --- a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts @@ -63,7 +63,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -112,7 +112,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the card that checklistItem belongs to.' + description: 'The ID of the card that checklistItem belongs to.', }, { displayName: 'Checklist ID', @@ -188,7 +188,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -237,7 +237,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the card that checklistItem belongs to.' + description: 'The ID of the card that checklistItem belongs to.', }, { displayName: 'Checklist ID', @@ -306,7 +306,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the board that card belongs to.' + description: 'The ID of the board that card belongs to.', }, { displayName: 'List ID', @@ -355,7 +355,7 @@ export const checklistItemFields = [ ], }, }, - description: 'The ID of the card that checklistItem belongs to.' + description: 'The ID of the card that checklistItem belongs to.', }, { displayName: 'CheckList ID', diff --git a/packages/nodes-base/nodes/Wekan/GenericFunctions.ts b/packages/nodes-base/nodes/Wekan/GenericFunctions.ts index e771b1e59..21d94cfc8 100644 --- a/packages/nodes-base/nodes/Wekan/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Wekan/GenericFunctions.ts @@ -17,7 +17,7 @@ import { export async function getAuthorization( this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IWebhookFunctions, - credentials?: ICredentialDataDecryptedObject, + credentials?: ICredentialDataDecryptedObject ): Promise { if (credentials === undefined) { throw new Error('No credentials got returned!'); diff --git a/packages/nodes-base/nodes/Wekan/ListDescription.ts b/packages/nodes-base/nodes/Wekan/ListDescription.ts index aad9da180..aa28f3661 100644 --- a/packages/nodes-base/nodes/Wekan/ListDescription.ts +++ b/packages/nodes-base/nodes/Wekan/ListDescription.ts @@ -21,27 +21,27 @@ export const listOperations = [ { name: 'Create', value: 'create', - description: 'Create a new list' + description: 'Create a new list', }, { name: 'Delete', value: 'delete', - description: 'Delete a list' + description: 'Delete a list', }, { name: 'Get', value: 'get', - description: 'Get the data of a list' + description: 'Get the data of a list', }, { name: 'Get All', value: 'getAll', - description: 'Get all board lists' + description: 'Get all board lists', }, ], default: 'create', - description: 'The operation to perform.' - } + description: 'The operation to perform.', + }, ] as INodeProperties[]; export const listFields = [ @@ -67,7 +67,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the board the list should be created in' + description: 'The ID of the board the list should be created in', }, { displayName: 'Title', @@ -86,7 +86,7 @@ export const listFields = [ ], }, }, - description: 'The title of the list.' + description: 'The title of the list.', }, // ---------------------------------- @@ -111,7 +111,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -135,7 +135,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the list to delete.' + description: 'The ID of the list to delete.', }, // ---------------------------------- @@ -160,7 +160,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the board that list belongs to.' + description: 'The ID of the board that list belongs to.', }, { displayName: 'List ID', @@ -178,7 +178,7 @@ export const listFields = [ ], }, }, - description: 'The ID of the list to get.' + description: 'The ID of the list to get.', }, // ---------------------------------- @@ -203,7 +203,7 @@ export const listFields = [ ], }, }, - description: 'ID of the board where the lists are in.' + description: 'ID of the board where the lists are in.', }, { displayName: 'Return All', diff --git a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts index f16887284..d96bbff10 100644 --- a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts @@ -34,7 +34,7 @@ export async function woocommerceApiRequest(this: IHookFunctions | IExecuteFunct qs, body, uri: uri || `${credentials.url}/wp-json/wc/v3${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.form; diff --git a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts index eda9c1339..52647b0d2 100644 --- a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts @@ -184,7 +184,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Billing address', @@ -274,7 +274,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Coupons line data', @@ -343,7 +343,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Fee line data', @@ -443,7 +443,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Line item data', @@ -554,7 +554,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Meta data', @@ -597,7 +597,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Shipping address', @@ -675,7 +675,7 @@ export const orderFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Shipping line data', @@ -890,7 +890,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Billing address', @@ -980,7 +980,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Coupons line data', @@ -1049,7 +1049,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Fee line data', @@ -1149,7 +1149,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Line item data', @@ -1260,7 +1260,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Meta data', @@ -1303,7 +1303,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Shipping address', @@ -1381,7 +1381,7 @@ export const orderFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Shipping line data', @@ -1666,7 +1666,7 @@ export const orderFields = [ default: 'any', description: 'Limit result set to orders assigned a specific status.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* order:delete */ diff --git a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts index a22b394ed..d486b978d 100644 --- a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts @@ -62,7 +62,7 @@ export const productFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Product name.', @@ -420,7 +420,7 @@ export const productFields = [ default: '', description: 'Product weight.', }, - ] + ], }, { displayName: 'Dimensions', @@ -438,7 +438,7 @@ export const productFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Product dimensions', @@ -488,7 +488,7 @@ export const productFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Product Image', @@ -538,7 +538,7 @@ export const productFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Meta data', @@ -945,7 +945,7 @@ export const productFields = [ default: '', description: 'Product weight.', }, - ] + ], }, { displayName: 'Dimensions', @@ -963,7 +963,7 @@ export const productFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Product dimensions', @@ -1013,7 +1013,7 @@ export const productFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Product Image', @@ -1063,7 +1063,7 @@ export const productFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Meta data', @@ -1410,7 +1410,7 @@ export const productFields = [ default: 'simple', description: 'Product type', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* product:delete */ diff --git a/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts b/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts index 9b9b8019b..04c76fd4d 100644 --- a/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts +++ b/packages/nodes-base/nodes/WooCommerce/WooCommerce.node.ts @@ -56,7 +56,7 @@ export class WooCommerce implements INodeType { { name: 'wooCommerceApi', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts index 15277e5ae..e947792f5 100644 --- a/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts +++ b/packages/nodes-base/nodes/WooCommerce/WooCommerceTrigger.node.ts @@ -35,7 +35,7 @@ export class WooCommerceTrigger implements INodeType { { name: 'wooCommerceApi', required: true, - } + }, ], webhooks: [ { diff --git a/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts b/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts index 8e29fa218..61302655c 100644 --- a/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Wordpress/GenericFunctions.ts @@ -31,7 +31,7 @@ export async function wordpressApiRequest(this: IExecuteFunctions | IExecuteSing qs, body, uri: uri || `${credentials!.url}/wp-json/wp/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(options.body).length === 0) { diff --git a/packages/nodes-base/nodes/Wordpress/PostDescription.ts b/packages/nodes-base/nodes/Wordpress/PostDescription.ts index 9c390591d..3e2f26154 100644 --- a/packages/nodes-base/nodes/Wordpress/PostDescription.ts +++ b/packages/nodes-base/nodes/Wordpress/PostDescription.ts @@ -62,7 +62,7 @@ export const postFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The title for the post', @@ -257,7 +257,7 @@ export const postFields = [ default: [], description: 'The terms assigned to the object in the post_tag taxonomy.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* post:update */ @@ -275,7 +275,7 @@ export const postFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the object.', @@ -477,7 +477,7 @@ export const postFields = [ default: [], description: 'The terms assigned to the object in the post_tag taxonomy.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* post:get */ @@ -495,7 +495,7 @@ export const postFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the object.', @@ -545,7 +545,7 @@ export const postFields = [ default: 'view', description: 'Scope under which the request is made; determines fields present in response.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* post:getAll */ @@ -774,7 +774,7 @@ export const postFields = [ description: 'Limit result set to items that are sticky.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* post:delete */ @@ -792,7 +792,7 @@ export const postFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Unique identifier for the object.', @@ -821,6 +821,6 @@ export const postFields = [ default: false, description: 'Whether to bypass trash and force deletion.', }, - ] + ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Wordpress/UserDescription.ts b/packages/nodes-base/nodes/Wordpress/UserDescription.ts index a9d413bf1..c9d64643d 100644 --- a/packages/nodes-base/nodes/Wordpress/UserDescription.ts +++ b/packages/nodes-base/nodes/Wordpress/UserDescription.ts @@ -62,7 +62,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Login name for the user.', @@ -80,7 +80,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Display name for the user.', @@ -98,7 +98,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'First name for the user.', @@ -116,7 +116,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Last name for the user.', @@ -134,7 +134,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'The email address for the user.', @@ -152,7 +152,7 @@ export const userFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Password for the user (never included)', @@ -205,7 +205,7 @@ export const userFields = [ default: '', description: 'An alphanumeric identifier for the user.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* user:update */ @@ -223,7 +223,7 @@ export const userFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the user.', @@ -318,7 +318,7 @@ export const userFields = [ default: '', description: 'An alphanumeric identifier for the user.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* user:get */ @@ -336,7 +336,7 @@ export const userFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the user.', @@ -379,7 +379,7 @@ export const userFields = [ default: 'view', description: 'Scope under which the request is made; determines fields present in response.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* user:getAll */ @@ -541,7 +541,7 @@ export const userFields = [ default: 'authors', description: 'Limit result set to users who are considered authors.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* user:delete */ @@ -559,7 +559,7 @@ export const userFields = [ ], operation: [ 'delete', - ] + ], }, }, description: `Reassign the deleted user's posts and links to this user ID.`, diff --git a/packages/nodes-base/nodes/WriteBinaryFile.node.ts b/packages/nodes-base/nodes/WriteBinaryFile.node.ts index 4c6fba99f..eb56a006f 100644 --- a/packages/nodes-base/nodes/WriteBinaryFile.node.ts +++ b/packages/nodes-base/nodes/WriteBinaryFile.node.ts @@ -49,7 +49,7 @@ export class WriteBinaryFile implements INodeType { required: true, description: 'Name of the binary property which contains
the data for the file to be written.', }, - ] + ], }; diff --git a/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts b/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts index bcc773c91..712a0aa63 100644 --- a/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts @@ -29,7 +29,7 @@ export async function wufooApiRequest(this: IHookFunctions | IExecuteFunctions | body, qs, uri: `https://${credentials!.subdomain}.wufoo.com/api/v3/${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); diff --git a/packages/nodes-base/nodes/Wufoo/WufooTrigger.node.ts b/packages/nodes-base/nodes/Wufoo/WufooTrigger.node.ts index b4b0eff98..41fb06b92 100644 --- a/packages/nodes-base/nodes/Wufoo/WufooTrigger.node.ts +++ b/packages/nodes-base/nodes/Wufoo/WufooTrigger.node.ts @@ -228,7 +228,7 @@ export class WufooTrigger implements INodeType { formId: req.body.FormId as string, formStructure: JSON.parse(req.body.FormStructure), fieldStructure: JSON.parse(req.body.FieldStructure), - entries + entries, }; return { diff --git a/packages/nodes-base/nodes/Xero/GenericFunctions.ts b/packages/nodes-base/nodes/Xero/GenericFunctions.ts index 840579bf2..2678aa8f0 100644 --- a/packages/nodes-base/nodes/Xero/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Xero/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function xeroApiRequest(this: IExecuteFunctions | IExecuteSingleFun body, qs, uri: uri || `https://api.xero.com/api.xro/2.0${resource}`, - json: true + json: true, }; try { if (body.organizationId) { diff --git a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts index 6591adc24..ef0ae6159 100644 --- a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts @@ -74,12 +74,12 @@ export const invoiceFields = [ { name: 'Bill', value: 'ACCPAY', - description: 'Accounts Payable or supplier invoice' + description: 'Accounts Payable or supplier invoice', }, { name: 'Sales Invoice', value: 'ACCREC', - description: ' Accounts Receivable or customer invoice' + description: ' Accounts Receivable or customer invoice', }, ], default: '', @@ -130,7 +130,7 @@ export const invoiceFields = [ ], operation: [ 'create', - ] + ], }, }, description: 'Line item data', diff --git a/packages/nodes-base/nodes/Xero/Xero.node.ts b/packages/nodes-base/nodes/Xero/Xero.node.ts index 46825973c..3b5f20547 100644 --- a/packages/nodes-base/nodes/Xero/Xero.node.ts +++ b/packages/nodes-base/nodes/Xero/Xero.node.ts @@ -56,7 +56,7 @@ export class Xero implements INodeType { { name: 'xeroOAuth2Api', required: true, - } + }, ], properties: [ { diff --git a/packages/nodes-base/nodes/Xml.node.ts b/packages/nodes-base/nodes/Xml.node.ts index 1b2fd2ab8..914ed9da3 100644 --- a/packages/nodes-base/nodes/Xml.node.ts +++ b/packages/nodes-base/nodes/Xml.node.ts @@ -220,7 +220,7 @@ export class Xml implements INodeType { }, ], }, - ] + ], }; @@ -256,8 +256,8 @@ export class Xml implements INodeType { items[itemIndex] = { json: { - [dataPropertyName]: builder.buildObject(items[itemIndex].json) - } + [dataPropertyName]: builder.buildObject(items[itemIndex].json), + }, }; } else { throw new Error(`The operation "${mode}" is not known!`); diff --git a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts index 1fb12cff8..7b11fac70 100644 --- a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts @@ -22,9 +22,9 @@ export const conditionFields = [ displayOptions: { show: { 'resource': [ - 'ticket' - ] - } + 'ticket', + ], + }, }, options: [ { @@ -100,8 +100,8 @@ export const conditionFields = [ hide: { field: [ 'assignee', - ] - } + ], + }, }, default: 'is', }, @@ -147,8 +147,8 @@ export const conditionFields = [ show: { field: [ 'assignee', - ] - } + ], + }, }, default: 'is', }, @@ -159,7 +159,7 @@ export const conditionFields = [ displayOptions: { show: { field: [ - 'status' + 'status', ], }, hide: { @@ -173,7 +173,7 @@ export const conditionFields = [ 'priority', 'type', ], - } + }, }, options: [ { @@ -206,7 +206,7 @@ export const conditionFields = [ displayOptions: { show: { field: [ - 'type' + 'type', ], }, hide: { @@ -220,7 +220,7 @@ export const conditionFields = [ 'priority', 'status', ], - } + }, }, options: [ { @@ -249,7 +249,7 @@ export const conditionFields = [ displayOptions: { show: { field: [ - 'priority' + 'priority', ], }, hide: { @@ -263,7 +263,7 @@ export const conditionFields = [ 'type', 'status', ], - } + }, }, options: [ { @@ -295,7 +295,7 @@ export const conditionFields = [ displayOptions: { show: { field: [ - 'group' + 'group', ], }, hide: { @@ -319,7 +319,7 @@ export const conditionFields = [ displayOptions: { show: { field: [ - 'assignee' + 'assignee', ], }, hide: { diff --git a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts index 3bb3d4141..341a430a0 100644 --- a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts @@ -295,7 +295,7 @@ export const ticketFields = [ displayOptions: { show: { resource: [ - 'ticket' + 'ticket', ], operation: [ 'update', diff --git a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts index 0bb6e01fe..b74812daa 100644 --- a/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts +++ b/packages/nodes-base/nodes/Zendesk/Zendesk.node.ts @@ -221,7 +221,7 @@ export class Zendesk implements INodeType { } return returnData; }, - } + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts index 8b4f4103f..44cc34d9a 100644 --- a/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts +++ b/packages/nodes-base/nodes/Zendesk/ZendeskTrigger.node.ts @@ -97,7 +97,7 @@ export class ZendeskTrigger implements INodeType { { name: 'Support', value: 'support', - } + }, ], default: 'support', description: '', @@ -109,7 +109,7 @@ export class ZendeskTrigger implements INodeType { displayOptions: { show: { service: [ - 'support' + 'support', ], }, }, @@ -150,7 +150,7 @@ export class ZendeskTrigger implements INodeType { { name: 'Via', value: 'ticket.via', - description: `Ticket's source` + description: `Ticket's source`, }, { name: 'Status', @@ -363,9 +363,9 @@ export class ZendeskTrigger implements INodeType { displayOptions: { show: { service: [ - 'support' + 'support', ], - } + }, }, description: 'The condition to set.', default: {}, @@ -429,7 +429,7 @@ export class ZendeskTrigger implements INodeType { }); return returnData; }, - } + }, }; // @ts-ignore webhookMethods = { @@ -620,7 +620,7 @@ export class ZendeskTrigger implements INodeType { const req = this.getRequestObject(); return { workflowData: [ - this.helpers.returnJsonArray(req.body) + this.helpers.returnJsonArray(req.body), ], }; } diff --git a/packages/nodes-base/nodes/Zoho/GenericFunctions.ts b/packages/nodes-base/nodes/Zoho/GenericFunctions.ts index 13ebecd4c..f70b13bb9 100644 --- a/packages/nodes-base/nodes/Zoho/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Zoho/GenericFunctions.ts @@ -21,7 +21,7 @@ export async function zohoApiRequest(this: IExecuteFunctions | IExecuteSingleFun }, qs, uri: uri || `https://www.zohoapis.com/crm/v2${resource}`, - json: true + json: true, }; try { //@ts-ignore diff --git a/packages/nodes-base/nodes/Zoho/LeadDescription.ts b/packages/nodes-base/nodes/Zoho/LeadDescription.ts index 3b7777bef..d232098ca 100644 --- a/packages/nodes-base/nodes/Zoho/LeadDescription.ts +++ b/packages/nodes-base/nodes/Zoho/LeadDescription.ts @@ -163,7 +163,7 @@ export const leadFields = [ name: 'leadStatus', type: 'options', typeOptions: { - loadOptionsMethod: 'getLeadStatuses' + loadOptionsMethod: 'getLeadStatuses', }, default: '', }, @@ -230,7 +230,7 @@ export const leadFields = [ type: 'string', default: '', }, - ] + ], }, { displayName: 'Address', @@ -288,7 +288,7 @@ export const leadFields = [ default: '', }, ], - } + }, ], }, /* -------------------------------------------------------------------------- */ @@ -409,7 +409,7 @@ export const leadFields = [ name: 'leadStatus', type: 'options', typeOptions: { - loadOptionsMethod: 'getLeadStatuses' + loadOptionsMethod: 'getLeadStatuses', }, default: '', }, @@ -476,7 +476,7 @@ export const leadFields = [ type: 'string', default: '', }, - ] + ], }, { displayName: 'Address', @@ -534,7 +534,7 @@ export const leadFields = [ default: '', }, ], - } + }, ], }, /* -------------------------------------------------------------------------- */ @@ -681,7 +681,7 @@ export const leadFields = [ default: '', description: 'To get the list of records based on the territory ', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* lead:delete */ diff --git a/packages/nodes-base/nodes/Zoom/GenericFunctions.ts b/packages/nodes-base/nodes/Zoom/GenericFunctions.ts index 3d036f5f3..8a0f57b19 100644 --- a/packages/nodes-base/nodes/Zoom/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Zoom/GenericFunctions.ts @@ -19,12 +19,12 @@ export async function zoomApiRequest(this: IExecuteFunctions | IExecuteSingleFun let options: OptionsWithUri = { method, headers: headers || { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', }, body, qs: query, uri: `https://api.zoom.us/v2${resource}`, - json: true + json: true, }; options = Object.assign({}, options, option); if (Object.keys(body).length === 0) { diff --git a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts index a262f7eb5..294c47efe 100644 --- a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts +++ b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts @@ -422,7 +422,7 @@ export const meetingFields = [ { name: 'Scheduled', value: 'scheduled', - description: 'This includes all valid past meetings, live meetings and upcoming scheduled meetings' + description: 'This includes all valid past meetings, live meetings and upcoming scheduled meetings', }, { name: 'Live', diff --git a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts index 5438f18fa..7419e04ed 100644 --- a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts +++ b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts @@ -34,7 +34,7 @@ export const meetingRegistrantOperations = [ ], default: 'create', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const meetingRegistrantFields = [ @@ -357,7 +357,7 @@ export const meetingRegistrantFields = [ description: `Registrant Status.`, }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* meetingRegistrant:update */ @@ -438,6 +438,6 @@ export const meetingRegistrantFields = [ }, ], - } + }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts index 62d229727..648fe43c2 100644 --- a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts +++ b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts @@ -39,11 +39,11 @@ export const webinarOperations = [ name: 'Update', value: 'update', description: 'Update a webinar', - } + }, ], default: 'create', description: 'The operation to perform.', - } + }, ] as INodeProperties[]; export const webinarFields = [ @@ -83,7 +83,7 @@ export const webinarFields = [ resource: [ 'webinar', ], - } + }, }, options: [ { @@ -657,7 +657,7 @@ export const webinarFields = [ }, ], default: 5, - description: 'Webinar type.' + description: 'Webinar type.', }, ], }, diff --git a/packages/nodes-base/nodes/Zoom/Zoom.node.ts b/packages/nodes-base/nodes/Zoom/Zoom.node.ts index e5d59abaf..be325a38d 100644 --- a/packages/nodes-base/nodes/Zoom/Zoom.node.ts +++ b/packages/nodes-base/nodes/Zoom/Zoom.node.ts @@ -61,7 +61,7 @@ export class Zoom implements INodeType { subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', defaults: { name: 'Zoom', - color: '#0B6CF9' + color: '#0B6CF9', }, icon: 'file:zoom.png', inputs: ['main'], @@ -120,7 +120,7 @@ export class Zoom implements INodeType { options: [ { name: 'Meeting', - value: 'meeting' + value: 'meeting', }, // { // name: 'Meeting Registrant', @@ -132,7 +132,7 @@ export class Zoom implements INodeType { // } ], default: 'meeting', - description: 'The resource to operate on.' + description: 'The resource to operate on.', }, //MEETINGS ...meetingOperations, @@ -145,7 +145,7 @@ export class Zoom implements INodeType { // //WEBINARS // ...webinarOperations, // ...webinarFields, - ] + ], }; methods = { @@ -160,12 +160,12 @@ export class Zoom implements INodeType { const timezoneId = timezone; returnData.push({ name: timezoneName, - value: timezoneId + value: timezoneId, }); } return returnData; - } - } + }, + }, }; async execute(this: IExecuteFunctions): Promise { diff --git a/packages/nodes-base/nodes/Zulip/GenericFunctions.ts b/packages/nodes-base/nodes/Zulip/GenericFunctions.ts index 26a57a415..cf588440e 100644 --- a/packages/nodes-base/nodes/Zulip/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Zulip/GenericFunctions.ts @@ -33,7 +33,7 @@ export async function zulipApiRequest(this: IExecuteFunctions | IWebhookFunction form: body, qs: query, uri: uri || `${endpoint}${resource}`, - json: true + json: true, }; if (!Object.keys(body).length) { delete options.form; diff --git a/packages/nodes-base/nodes/Zulip/MessageDescription.ts b/packages/nodes-base/nodes/Zulip/MessageDescription.ts index d22df2107..883928a7c 100644 --- a/packages/nodes-base/nodes/Zulip/MessageDescription.ts +++ b/packages/nodes-base/nodes/Zulip/MessageDescription.ts @@ -91,7 +91,7 @@ export const messageFields = [ ], operation: [ 'sendPrivate', - ] + ], }, }, description: 'The content of the message.', @@ -158,7 +158,7 @@ export const messageFields = [ ], operation: [ 'sendStream', - ] + ], }, }, description: 'The content of the message.', @@ -179,7 +179,7 @@ export const messageFields = [ ], operation: [ 'update', - ] + ], }, }, description: 'Unique identifier for the message.', @@ -239,7 +239,7 @@ export const messageFields = [ default: '', description: 'The topic of the message. Only required for stream messages', }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* message:get */ @@ -257,7 +257,7 @@ export const messageFields = [ ], operation: [ 'get', - ] + ], }, }, description: 'Unique identifier for the message.', @@ -278,7 +278,7 @@ export const messageFields = [ ], operation: [ 'delete', - ] + ], }, }, description: 'Unique identifier for the message.', @@ -299,7 +299,7 @@ export const messageFields = [ ], operation: [ 'updateFile', - ] + ], }, }, description: 'Name of the binary property to which to
write the data of the read file.', diff --git a/packages/nodes-base/nodes/Zulip/StreamDescription.ts b/packages/nodes-base/nodes/Zulip/StreamDescription.ts index 27c9c1044..a0d4e74ff 100644 --- a/packages/nodes-base/nodes/Zulip/StreamDescription.ts +++ b/packages/nodes-base/nodes/Zulip/StreamDescription.ts @@ -131,7 +131,7 @@ export const streamFields = [ required: true, default: '', description: 'Description of Subscription.', - } + }, ], }, ], @@ -205,7 +205,7 @@ export const streamFields = [ required: true, default: '', description: 'Principal email address.', - } + }, ], }, ], @@ -220,21 +220,21 @@ export const streamFields = [ { name: '1', value: 1, - description: 'Any user can post.' + description: 'Any user can post.', }, { name: '2', value: 2, - description: 'Only administrators can post.' + description: 'Only administrators can post.', }, { name: '3', value: 3, - description: 'Only new members can post.' + description: 'Only new members can post.', }, ], - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -292,7 +292,7 @@ export const streamFields = [ default: true, description: 'Include all streams that the user is subscribed to.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -321,8 +321,8 @@ export const streamFields = [ type: 'boolean', default: true, description: 'Whether each returned stream object should include a subscribers field containing a list of the user IDs of its subscribers.', - } - ] + }, + ], }, /* -------------------------------------------------------------------------- */ @@ -421,7 +421,7 @@ export const streamFields = [ type: 'string', default: '', description: 'The new description for the stream.', - placeholder: 'Place of discussion' + placeholder: 'Place of discussion', }, { displayName: 'Is Private', @@ -443,7 +443,7 @@ export const streamFields = [ type: 'string', default: '', description: 'The new name for the stream.', - placeholder: 'Italy' + placeholder: 'Italy', }, { displayName: 'Stream Post Policy', @@ -455,21 +455,21 @@ export const streamFields = [ { name: '1', value: 1, - description: 'Any user can post.' + description: 'Any user can post.', }, { name: '2', value: 2, - description: 'Only administrators can post.' + description: 'Only administrators can post.', }, { name: '3', value: 3, - description: 'Only new members can post.' + description: 'Only new members can post.', }, ], }, - ] + ], }, /* -------------------------------------------------------------------------- */ /* stream:delete */ diff --git a/packages/nodes-base/nodes/Zulip/UserDescription.ts b/packages/nodes-base/nodes/Zulip/UserDescription.ts index 8ca33bad1..82bda3755 100644 --- a/packages/nodes-base/nodes/Zulip/UserDescription.ts +++ b/packages/nodes-base/nodes/Zulip/UserDescription.ts @@ -154,7 +154,7 @@ export const userFields = [ 'user', ], operation: [ - 'get', 'getAll' + 'get', 'getAll', ], }, }, @@ -173,7 +173,7 @@ export const userFields = [ default: false, description: 'Whether the client wants custom profile field data to be included in the response.', }, - ] + ], }, /* -------------------------------------------------------------------------- */ @@ -209,7 +209,7 @@ export const userFields = [ 'user', ], operation: [ - 'update' + 'update', ], }, }, @@ -263,12 +263,12 @@ export const userFields = [ type: 'string', default: '', description: 'Value of custom profile data.', - } + }, ], }, ], }, - ] + ], }, /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Zulip/Zulip.node.ts b/packages/nodes-base/nodes/Zulip/Zulip.node.ts index 3c716613b..4c6a5d400 100644 --- a/packages/nodes-base/nodes/Zulip/Zulip.node.ts +++ b/packages/nodes-base/nodes/Zulip/Zulip.node.ts @@ -55,7 +55,7 @@ export class Zulip implements INodeType { { name: 'zulipApi', required: true, - } + }, ], properties: [ { @@ -89,7 +89,7 @@ export class Zulip implements INodeType { // USER ...userOperations, - ...userFields + ...userFields, ], }; @@ -225,8 +225,8 @@ export class Zulip implements INodeType { filename: items[i].binary[binaryProperty].fileName, //@ts-ignore contentType: items[i].binary[binaryProperty].mimeType, - } - } + }, + }, }; responseData = await zulipApiRequest.call(this, 'POST', '/user_uploads', {}, {}, undefined, { formData }); responseData.uri = `${credentials!.url}${responseData.uri}`; diff --git a/packages/nodes-base/nodes/utils/allCurrencies.ts b/packages/nodes-base/nodes/utils/allCurrencies.ts index 88dacd318..0486ff32c 100644 --- a/packages/nodes-base/nodes/utils/allCurrencies.ts +++ b/packages/nodes-base/nodes/utils/allCurrencies.ts @@ -169,6 +169,6 @@ const allCurrencies = [ { name: 'Yemeni Rial', value: 'yer' }, { name: 'South African Rand', value: 'zar' }, { name: 'Zambian Kwacha', value: 'zmw' }, - { name: 'Zimbabwean Dollar', value: 'zwl' } + { name: 'Zimbabwean Dollar', value: 'zwl' }, // tslint:disable-next-line: semicolon ] diff --git a/packages/nodes-base/tslint.json b/packages/nodes-base/tslint.json index b56908df2..a255e6b0f 100644 --- a/packages/nodes-base/tslint.json +++ b/packages/nodes-base/tslint.json @@ -93,7 +93,7 @@ "multiline": { "objects": "always", "arrays": "always", - "functions": "never", + "functions": "always", "typeLiterals": "ignore" }, "esSpecCompliant": true diff --git a/packages/workflow/src/Expression.ts b/packages/workflow/src/Expression.ts index e25b0b104..6026c3eee 100644 --- a/packages/workflow/src/Expression.ts +++ b/packages/workflow/src/Expression.ts @@ -114,7 +114,7 @@ export class Expression { const runData: IRunExecutionData = { resultData: { runData: {}, - } + }, }; return this.getParameterValue(parameterValue, runData, runIndex, itemIndex, node.name, connectionInputData) as boolean | number | string | undefined; @@ -144,7 +144,7 @@ export class Expression { const runData: IRunExecutionData = { resultData: { runData: {}, - } + }, }; // Resolve the "outer" main values diff --git a/packages/workflow/src/NodeHelpers.ts b/packages/workflow/src/NodeHelpers.ts index f6a54414d..5e67b02d4 100644 --- a/packages/workflow/src/NodeHelpers.ts +++ b/packages/workflow/src/NodeHelpers.ts @@ -1,10 +1,10 @@ import { IContextObject, - INodeCredentialDescription, INode, + INodeCredentialDescription, INodeExecutionData, - INodeIssues, INodeIssueObjectProperty, + INodeIssues, INodeParameters, INodeProperties, INodePropertyCollection, @@ -238,11 +238,11 @@ export function getSpecialNodeParameters(nodeType: INodeType) { options: [ { name: 'Minutes', - value: 'minutes' + value: 'minutes', }, { name: 'Hours', - value: 'hours' + value: 'hours', }, ], default: 'hours', @@ -346,7 +346,7 @@ export function displayParameterPath(nodeValues: INodeParameters, parameter: INo if (path !== '') { resolvedNodeValues = get( nodeValues, - path, + path ) as INodeParameters; } @@ -355,7 +355,7 @@ export function displayParameterPath(nodeValues: INodeParameters, parameter: INo if (path && path.split('.').indexOf('parameters') === 0) { nodeValuesRoot = get( nodeValues, - 'parameters', + 'parameters' ) as INodeParameters; } @@ -998,7 +998,7 @@ export function addToIssuesIfMissing(foundIssues: INodeIssues, nodeProperties: I export function getParameterValueByPath(nodeValues: INodeParameters, parameterName: string, path: string) { return get( nodeValues, - path ? path + '.' + parameterName : parameterName, + path ? path + '.' + parameterName : parameterName ); } diff --git a/packages/workflow/src/Workflow.ts b/packages/workflow/src/Workflow.ts index c7208f6a8..fb91226b5 100644 --- a/packages/workflow/src/Workflow.ts +++ b/packages/workflow/src/Workflow.ts @@ -4,11 +4,11 @@ import { IConnections, IGetExecuteTriggerFunctions, INode, - INodes, INodeExecuteFunctions, INodeExecutionData, INodeIssues, INodeParameters, + INodes, INodeType, INodeTypes, IPollFunctions, @@ -129,7 +129,7 @@ export class Workflow { returnConnection[connectionInfo.node][connectionInfo.type][connectionInfo.index].push({ node: sourceNode, type, - index: parseInt(inputIndex, 10) + index: parseInt(inputIndex, 10), }); } } diff --git a/packages/workflow/src/WorkflowDataProxy.ts b/packages/workflow/src/WorkflowDataProxy.ts index 852e28e0c..6ba756e02 100644 --- a/packages/workflow/src/WorkflowDataProxy.ts +++ b/packages/workflow/src/WorkflowDataProxy.ts @@ -63,7 +63,7 @@ export class WorkflowDataProxy { } return contextData[name]; - } + }, }); } @@ -101,7 +101,7 @@ export class WorkflowDataProxy { } return returnValue; - } + }, }); } @@ -252,7 +252,7 @@ export class WorkflowDataProxy { } return Reflect.get(target, name, receiver); - } + }, }); } @@ -269,7 +269,7 @@ export class WorkflowDataProxy { return new Proxy({}, { get(target, name, receiver) { return process.env[name.toString()]; - } + }, }); } @@ -298,7 +298,7 @@ export class WorkflowDataProxy { // @ts-ignore return that.workflow[name.toString()]; - } + }, }); } @@ -316,7 +316,7 @@ export class WorkflowDataProxy { return new Proxy({}, { get(target, name, receiver) { return that.nodeDataGetter(name.toString()); - } + }, }); } @@ -375,7 +375,7 @@ export class WorkflowDataProxy { } return Reflect.get(target, name, receiver); - } + }, }); } } diff --git a/packages/workflow/test/Helpers.ts b/packages/workflow/test/Helpers.ts index 8b5cb3d2a..39e151b02 100644 --- a/packages/workflow/test/Helpers.ts +++ b/packages/workflow/test/Helpers.ts @@ -1,7 +1,7 @@ import { INodeType, - INodeTypes, INodeTypeData, + INodeTypes, } from '../src'; export interface INodeTypesObject { @@ -38,10 +38,10 @@ class NodeTypesClass implements INodeTypes { name: 'value2', type: 'string', default: 'default-value2', - } - ] - } - } + }, + ], + }, + }, }, 'test.setMulti': { sourcePath: '', @@ -86,13 +86,13 @@ class NodeTypesClass implements INodeTypes { default: '', placeholder: 'The string value to write in the property.', }, - ] + ], }, ], }, - ] - } - } + ], + }, + }, }, }; diff --git a/packages/workflow/test/NodeHelpers.test.ts b/packages/workflow/test/NodeHelpers.test.ts index 207a06e62..0e0c01c18 100644 --- a/packages/workflow/test/NodeHelpers.test.ts +++ b/packages/workflow/test/NodeHelpers.test.ts @@ -1,8 +1,8 @@ import { - NodeHelpers, INodeParameters, INodeProperties, + NodeHelpers, } from '../src'; describe('Workflow', () => { @@ -178,7 +178,7 @@ describe('Workflow', () => { displayOptions: { show: { boolean1: [ - true + true, ], }, }, @@ -230,7 +230,7 @@ describe('Workflow', () => { displayOptions: { hide: { boolean1: [ - true + true, ], }, }, @@ -278,7 +278,7 @@ describe('Workflow', () => { displayOptions: { show: { boolean1: [ - true + true, ], }, }, @@ -327,7 +327,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode1' + 'mode1', ], }, }, @@ -373,7 +373,7 @@ describe('Workflow', () => { displayOptions: { show: { string1: [ - 'default string1' + 'default string1', ], }, }, @@ -386,7 +386,7 @@ describe('Workflow', () => { displayOptions: { show: { boolean1: [ - true + true, ], }, }, @@ -437,7 +437,7 @@ describe('Workflow', () => { displayOptions: { show: { string1: [ - 'default string1' + 'default string1', ], }, }, @@ -450,7 +450,7 @@ describe('Workflow', () => { displayOptions: { show: { boolean1: [ - true + true, ], }, }, @@ -498,7 +498,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode1' + 'mode1', ], }, }, @@ -546,7 +546,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode2' + 'mode2', ], }, }, @@ -591,7 +591,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode2' + 'mode2', ], }, }, @@ -711,7 +711,7 @@ describe('Workflow', () => { values: { number: [ { - number1: 1 + number1: 1, }, ], }, @@ -794,7 +794,7 @@ describe('Workflow', () => { values: { number: { number1: 1, - } + }, }, }, }, @@ -902,8 +902,8 @@ describe('Workflow', () => { number1: 1, }, singleString: { - string1: 'value1' - } + string1: 'value1', + }, }, }, }, @@ -915,7 +915,7 @@ describe('Workflow', () => { number1: 1, }, singleString: { - string1: 'value1' + string1: 'value1', }, }, }, @@ -926,7 +926,7 @@ describe('Workflow', () => { number1: 1, }, singleString: { - string1: 'value1' + string1: 'value1', }, }, }, @@ -938,7 +938,7 @@ describe('Workflow', () => { number1: 1, }, singleString: { - string1: 'value1' + string1: 'value1', }, }, }, @@ -949,7 +949,7 @@ describe('Workflow', () => { number1: 1, }, singleString: { - string1: 'value1' + string1: 'value1', }, }, }, @@ -1040,8 +1040,8 @@ describe('Workflow', () => { number1: 1, collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, ], @@ -1057,8 +1057,8 @@ describe('Workflow', () => { number1: 1, collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, ], @@ -1072,8 +1072,8 @@ describe('Workflow', () => { number1: 1, collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, ], @@ -1088,8 +1088,8 @@ describe('Workflow', () => { number1: 1, collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, ], @@ -1103,8 +1103,8 @@ describe('Workflow', () => { number1: 1, collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, ], @@ -1140,7 +1140,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode1' + 'mode1', ], }, }, @@ -1231,7 +1231,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode1' + 'mode1', ], }, }, @@ -1322,7 +1322,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode2' + 'mode2', ], }, }, @@ -1405,7 +1405,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode1' + 'mode1', ], }, }, @@ -1481,7 +1481,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode2' + 'mode2', ], }, }, @@ -1558,7 +1558,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode1' + 'mode1', ], }, }, @@ -1577,7 +1577,7 @@ describe('Workflow', () => { values: [ { string1: 'own string1', - } + }, ], }, }, @@ -1587,7 +1587,7 @@ describe('Workflow', () => { values: [ { string1: 'own string1', - } + }, ], }, defaultsTrue: { @@ -1595,7 +1595,7 @@ describe('Workflow', () => { values: [ { string1: 'own string1', - } + }, ], }, }, @@ -1604,7 +1604,7 @@ describe('Workflow', () => { values: [ { string1: 'own string1', - } + }, ], }, defaultsTrue: { @@ -1612,7 +1612,7 @@ describe('Workflow', () => { values: [ { string1: 'own string1', - } + }, ], }, }, @@ -1648,7 +1648,7 @@ describe('Workflow', () => { displayOptions: { show: { '/mode': [ - 'mode2' + 'mode2', ], }, }, @@ -1668,7 +1668,7 @@ describe('Workflow', () => { { string1: 'own string1', number1: 0, - } + }, ], }, }, @@ -1740,7 +1740,7 @@ describe('Workflow', () => { displayOptions: { show: { mode: [ - 'mode1' + 'mode1', ], }, }, @@ -1838,8 +1838,8 @@ describe('Workflow', () => { nodeValues: { collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, }, @@ -1848,15 +1848,15 @@ describe('Workflow', () => { defaultsFalse: { collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, defaultsTrue: { collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, }, @@ -1864,15 +1864,15 @@ describe('Workflow', () => { defaultsFalse: { collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, defaultsTrue: { collection1: [ { - string1: 'value1' - } + string1: 'value1', + }, ], }, }, @@ -1912,8 +1912,8 @@ describe('Workflow', () => { nodeValues: { collection1: [ { - string1: 'default string1' - } + string1: 'default string1', + }, ], }, }, @@ -1923,14 +1923,14 @@ describe('Workflow', () => { collection1: [ { string1: 'default string1', - } + }, ], }, defaultsTrue: { collection1: [ { string1: 'default string1', - } + }, ], }, }, @@ -1939,14 +1939,14 @@ describe('Workflow', () => { collection1: [ { string1: 'default string1', - } + }, ], }, defaultsTrue: { collection1: [ { string1: 'default string1', - } + }, ], }, }, @@ -2650,7 +2650,7 @@ describe('Workflow', () => { }, ], nodeValues: { - mainOption: 'option2' + mainOption: 'option2', }, }, output: { diff --git a/packages/workflow/test/Workflow.test.ts b/packages/workflow/test/Workflow.test.ts index 61897734b..7de298348 100644 --- a/packages/workflow/test/Workflow.test.ts +++ b/packages/workflow/test/Workflow.test.ts @@ -30,7 +30,7 @@ describe('Workflow', () => { parameters: { value1: 'value1Node1', value2: 'value2Node1', - } + }, }, output: { value1: 'value1Node1', @@ -93,7 +93,7 @@ describe('Workflow', () => { { value2a: '={{$node.Node1.data.value1 + \'Node1\'}}', value2b: '={{$node.Node1.data.value1 + \'Node1\'}}', - } + }, ], level1c: { value2a: { @@ -105,10 +105,10 @@ describe('Workflow', () => { value5a: '={{$node.Node1.data.value1 + \'Node1\'}}', value5b: '={{$node.Node1.data.value1 + \'Node1\'}}', }, - } - ] + }, + ], }, - } + }, } as INodeParameters, }, output: { @@ -117,7 +117,7 @@ describe('Workflow', () => { { value2a: '={{$node.NewName.data.value1 + \'Node1\'}}', value2b: '={{$node.NewName.data.value1 + \'Node1\'}}', - } + }, ], level1c: { value2a: { @@ -129,10 +129,10 @@ describe('Workflow', () => { value5a: '={{$node.NewName.data.value1 + \'Node1\'}}', value5b: '={{$node.NewName.data.value1 + \'Node1\'}}', }, - } - ] + }, + ], }, - } + }, }, }, ]; @@ -164,9 +164,9 @@ describe('Workflow', () => { value1: 'value1Node1', value2: 'value2Node1', }, - } + }, ], - connections: {} + connections: {}, }, output: { nodes: [ @@ -176,9 +176,9 @@ describe('Workflow', () => { value1: 'value1Node1', value2: 'value2Node1', }, - } + }, ], - connections: {} + connections: {}, }, }, { @@ -381,9 +381,9 @@ describe('Workflow', () => { node: 'Node5', type: 'main', index: 0, - } - ] - ] + }, + ], + ], }, Node3: { main: [ @@ -510,9 +510,9 @@ describe('Workflow', () => { value1: '={{$node.Node1.data.value1 + \'Node1\'}}', value2: '={{$node.Node1.data.value2 + \' - \' + $node.Node1.data.value2}}', }, - } + }, ], - connections: {} + connections: {}, }, output: { nodes: [ @@ -529,9 +529,9 @@ describe('Workflow', () => { value1: '={{$node.Node1New.data.value1 + \'Node1\'}}', value2: '={{$node.Node1New.data.value2 + \' - \' + $node.Node1New.data.value2}}', }, - } + }, ], - connections: {} + connections: {}, }, }, ]; @@ -590,16 +590,16 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: 'valueNode2', }, - } + }, }, output: { - value1: 'valueNode2' + value1: 'valueNode2', }, }, { @@ -608,16 +608,16 @@ describe('Workflow', () => { Node1: { parameters: { value1: '', - } + }, }, Node2: { parameters: { value1: '={{1+2}}', }, - } + }, }, output: { - value1: 3 + value1: 3, }, }, { @@ -626,16 +626,16 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: '={{$node.Node1.data.value1}}', }, - } + }, }, output: { - value1: 'valueNode1' + value1: 'valueNode1', }, }, { @@ -644,16 +644,16 @@ describe('Workflow', () => { Node1: { parameters: { value1: 1, - } + }, }, Node2: { parameters: { value1: '={{$node.Node1.data.value1 + 2}} asdf', }, - } + }, }, output: { - value1: '3 asdf' + value1: '3 asdf', }, }, { @@ -688,13 +688,13 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { - value1: '={{$data.value1}}' + value1: '={{$data.value1}}', }, - } + }, }, output: { value1: 'valueNode1', @@ -765,8 +765,8 @@ describe('Workflow', () => { data: '', type: '', fileName: 'test-file1.jpg', - } - } + }, + }, }, Node2: { parameters: { @@ -791,8 +791,8 @@ describe('Workflow', () => { data: '', type: '', fileName: 'test-file1.jpg', - } - } + }, + }, }, Node2: { parameters: { @@ -810,13 +810,13 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { - value1: '={{$node.Node1.parameter.value1}}' + value1: '={{$node.Node1.parameter.value1}}', }, - } + }, }, output: { value1: 'valueNode1', @@ -828,13 +828,13 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { - value1: '={{$env.TEST_VARIABLE_1}}' + value1: '={{$env.TEST_VARIABLE_1}}', }, - } + }, }, output: { value1: 'valueEnvVariable1', @@ -846,13 +846,13 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { - value1: '={{$env.DOES_NOT_EXIST}}' + value1: '={{$env.DOES_NOT_EXIST}}', }, - } + }, }, output: { value1: undefined, @@ -864,14 +864,14 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: 'valueNode2', value2: '={{$parameter.value1}}', }, - } + }, }, output: { value1: 'valueNode2', @@ -884,14 +884,14 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: '={{$node.Node1.data.value1}}', value2: '={{$parameter.value1}}', }, - } + }, }, output: { value1: 'valueNode1', @@ -904,14 +904,14 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: '={{$data.value1}}', value2: '={{$parameter.value1}}', }, - } + }, }, output: { value1: 'valueNode1', @@ -924,13 +924,13 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { value1: '={{$node["Node 4 with spaces"].parameter.value1}}', }, - } + }, }, output: { value1: 'default-value1', @@ -942,7 +942,7 @@ describe('Workflow', () => { Node1: { parameters: { value1: 'valueNode1', - } + }, }, Node2: { parameters: { @@ -953,7 +953,7 @@ describe('Workflow', () => { parameters: { value1: '={{$node["Node2"].parameter.value1}}b', }, - } + }, }, output: { value1: 'valueNode1ab', @@ -1035,7 +1035,7 @@ describe('Workflow', () => { 100, 400, ], - } + }, ]; const connections: IConnections = { "Node1": { @@ -1044,10 +1044,10 @@ describe('Workflow', () => { { "node": "Node2", "type": "main", - "index": 0 - } - ] - ] + "index": 0, + }, + ], + ], }, "Node2": { "main": [ @@ -1055,11 +1055,11 @@ describe('Workflow', () => { { "node": "Node3", "type": "main", - "index": 0 - } - ] - ] - } + "index": 0, + }, + ], + ], + }, }; const workflow = new Workflow({ nodes, connections, active: false, nodeTypes }); @@ -1080,15 +1080,15 @@ describe('Workflow', () => { // @ts-ignore json: testData.input.Node1.outputJson || testData.input.Node1.parameters, // @ts-ignore - binary: testData.input.Node1.outputBinary - } - ] - ] - } - } - ] - } - } + binary: testData.input.Node1.outputBinary, + }, + ], + ], + }, + }, + ], + }, + }, }; const itemIndex = 0; @@ -1197,14 +1197,14 @@ describe('Workflow', () => { "string": [ { "name": "name1", - "value": "value1" + "value": "value1", }, { "name": "name2", - "value": "={{$parameter.values.string[0].value}}A" - } - ] - } + "value": "={{$parameter.values.string[0].value}}A", + }, + ], + }, }, "type": "test.setMulti", "typeVersion": 1, @@ -1231,14 +1231,14 @@ describe('Workflow', () => { [ { json: {}, - } - ] - ] - } - } - ] - } - } + }, + ], + ], + }, + }, + ], + }, + }, }; const itemIndex = 0; @@ -1259,7 +1259,7 @@ describe('Workflow', () => { name: 'name2', value: 'value1A', }, - ] + ], }); }); diff --git a/packages/workflow/tslint.json b/packages/workflow/tslint.json index 7eb9d0110..f03bbfee3 100644 --- a/packages/workflow/tslint.json +++ b/packages/workflow/tslint.json @@ -46,6 +46,11 @@ "forin": true, "jsdoc-format": true, "label-position": true, + "indent": [ + true, + "tabs", + 2 + ], "member-access": [ true, "no-public" @@ -60,6 +65,13 @@ "no-default-export": true, "no-duplicate-variable": true, "no-inferrable-types": true, + "ordered-imports": [ + true, + { + "import-sources-order": "any", + "named-imports-order": "case-insensitive" + } + ], "no-namespace": [ true, "allow-declarations" @@ -82,6 +94,18 @@ "ignore-bound-class-methods" ], "switch-default": true, + "trailing-comma": [ + true, + { + "multiline": { + "objects": "always", + "arrays": "always", + "functions": "always", + "typeLiterals": "ignore" + }, + "esSpecCompliant": true + } + ], "triple-equals": [ true, "allow-null-check"