diff --git a/.prettierignore b/.prettierignore index 95dd97bcdca13..d07b7c6304782 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,7 +5,6 @@ packages/design-system !packages/nodes-base/src !packages/nodes-base/test !packages/nodes-base/nodes -!packages/nodes-base/credentials packages/nodes-base/nodes/ActionNetwork packages/nodes-base/nodes/ActiveCampaign @@ -272,302 +271,3 @@ packages/nodes-base/nodes/Zendesk packages/nodes-base/nodes/Zoho packages/nodes-base/nodes/Zoom packages/nodes-base/nodes/Zulip - -packages/nodes-base/credentials/ActionNetworkApi.credentials.ts -packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts -packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts -packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts -packages/nodes-base/credentials/AffinityApi.credentials.ts -packages/nodes-base/credentials/AgileCrmApi.credentials.ts -packages/nodes-base/credentials/AirtableApi.credentials.ts -packages/nodes-base/credentials/Amqp.credentials.ts -packages/nodes-base/credentials/ApiTemplateIoApi.credentials.ts -packages/nodes-base/credentials/AsanaApi.credentials.ts -packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts -packages/nodes-base/credentials/AutomizyApi.credentials.ts -packages/nodes-base/credentials/AutopilotApi.credentials.ts -packages/nodes-base/credentials/Aws.credentials.ts -packages/nodes-base/credentials/AWS.svg -packages/nodes-base/credentials/BambooHrApi.credentials.ts -packages/nodes-base/credentials/BannerbearApi.credentials.ts -packages/nodes-base/credentials/BaserowApi.credentials.ts -packages/nodes-base/credentials/BeeminderApi.credentials.ts -packages/nodes-base/credentials/BitbucketApi.credentials.ts -packages/nodes-base/credentials/BitlyApi.credentials.ts -packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts -packages/nodes-base/credentials/BitwardenApi.credentials.ts -packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts -packages/nodes-base/credentials/BrandfetchApi.credentials.ts -packages/nodes-base/credentials/BubbleApi.credentials.ts -packages/nodes-base/credentials/CalApi.credentials.ts -packages/nodes-base/credentials/CalendlyApi.credentials.ts -packages/nodes-base/credentials/ChargebeeApi.credentials.ts -packages/nodes-base/credentials/CircleCiApi.credentials.ts -packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts -packages/nodes-base/credentials/ClearbitApi.credentials.ts -packages/nodes-base/credentials/ClickUpApi.credentials.ts -packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts -packages/nodes-base/credentials/ClockifyApi.credentials.ts -packages/nodes-base/credentials/CockpitApi.credentials.ts -packages/nodes-base/credentials/CodaApi.credentials.ts -packages/nodes-base/credentials/ContentfulApi.credentials.ts -packages/nodes-base/credentials/ConvertKitApi.credentials.ts -packages/nodes-base/credentials/CopperApi.credentials.ts -packages/nodes-base/credentials/CortexApi.credentials.ts -packages/nodes-base/credentials/CrateDb.credentials.ts -packages/nodes-base/credentials/CustomerIoApi.credentials.ts -packages/nodes-base/credentials/DeepLApi.credentials.ts -packages/nodes-base/credentials/DemioApi.credentials.ts -packages/nodes-base/credentials/DhlApi.credentials.ts -packages/nodes-base/credentials/DiscourseApi.credentials.ts -packages/nodes-base/credentials/DisqusApi.credentials.ts -packages/nodes-base/credentials/DriftApi.credentials.ts -packages/nodes-base/credentials/DriftOAuth2Api.credentials.ts -packages/nodes-base/credentials/DropboxApi.credentials.ts -packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts -packages/nodes-base/credentials/DropcontactApi.credentials.ts -packages/nodes-base/credentials/EgoiApi.credentials.ts -packages/nodes-base/credentials/ElasticsearchApi.credentials.ts -packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts -packages/nodes-base/credentials/EmeliaApi.credentials.ts -packages/nodes-base/credentials/ERPNextApi.credentials.ts -packages/nodes-base/credentials/EventbriteApi.credentials.ts -packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts -packages/nodes-base/credentials/FacebookGraphApi.credentials.ts -packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts -packages/nodes-base/credentials/FigmaApi.credentials.ts -packages/nodes-base/credentials/FileMaker.credentials.ts -packages/nodes-base/credentials/FlowApi.credentials.ts -packages/nodes-base/credentials/FormIoApi.credentials.ts -packages/nodes-base/credentials/FormstackApi.credentials.ts -packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts -packages/nodes-base/credentials/FreshdeskApi.credentials.ts -packages/nodes-base/credentials/FreshserviceApi.credentials.ts -packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts -packages/nodes-base/credentials/Ftp.credentials.ts -packages/nodes-base/credentials/GetResponseApi.credentials.ts -packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts -packages/nodes-base/credentials/GhostAdminApi.credentials.ts -packages/nodes-base/credentials/GhostContentApi.credentials.ts -packages/nodes-base/credentials/GithubApi.credentials.ts -packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts -packages/nodes-base/credentials/GitlabApi.credentials.ts -packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts -packages/nodes-base/credentials/GitPassword.credentials.ts -packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts -packages/nodes-base/credentials/Google.svg -packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleApi.credentials.ts -packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts -packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts -packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts -packages/nodes-base/credentials/GotifyApi.credentials.ts -packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts -packages/nodes-base/credentials/GrafanaApi.credentials.ts -packages/nodes-base/credentials/GristApi.credentials.ts -packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts -packages/nodes-base/credentials/GumroadApi.credentials.ts -packages/nodes-base/credentials/HaloPSAApi.credentials.ts -packages/nodes-base/credentials/HarvestApi.credentials.ts -packages/nodes-base/credentials/HarvestOAuth2Api.credentials.ts -packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts -packages/nodes-base/credentials/HomeAssistantApi.credentials.ts -packages/nodes-base/credentials/HttpBasicAuth.credentials.ts -packages/nodes-base/credentials/HttpDigestAuth.credentials.ts -packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts -packages/nodes-base/credentials/HttpQueryAuth.credentials.ts -packages/nodes-base/credentials/HubspotApi.credentials.ts -packages/nodes-base/credentials/HubspotAppToken.credentials.ts -packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts -packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts -packages/nodes-base/credentials/HumanticAiApi.credentials.ts -packages/nodes-base/credentials/HunterApi.credentials.ts -packages/nodes-base/credentials/Imap.credentials.ts -packages/nodes-base/credentials/IntercomApi.credentials.ts -packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts -packages/nodes-base/credentials/IterableApi.credentials.ts -packages/nodes-base/credentials/JenkinsApi.credentials.ts -packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts -packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts -packages/nodes-base/credentials/JotFormApi.credentials.ts -packages/nodes-base/credentials/Kafka.credentials.ts -packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts -packages/nodes-base/credentials/KitemakerApi.credentials.ts -packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts -packages/nodes-base/credentials/LemlistApi.credentials.ts -packages/nodes-base/credentials/LinearApi.credentials.ts -packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts -packages/nodes-base/credentials/LingvaNexApi.credentials.ts -packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts -packages/nodes-base/credentials/Magento2Api.credentials.ts -packages/nodes-base/credentials/MailcheckApi.credentials.ts -packages/nodes-base/credentials/MailchimpApi.credentials.ts -packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts -packages/nodes-base/credentials/MailerLiteApi.credentials.ts -packages/nodes-base/credentials/MailgunApi.credentials.ts -packages/nodes-base/credentials/MailjetEmailApi.credentials.ts -packages/nodes-base/credentials/MailjetSmsApi.credentials.ts -packages/nodes-base/credentials/MandrillApi.credentials.ts -packages/nodes-base/credentials/MarketstackApi.credentials.ts -packages/nodes-base/credentials/MatrixApi.credentials.ts -packages/nodes-base/credentials/MattermostApi.credentials.ts -packages/nodes-base/credentials/MauticApi.credentials.ts -packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts -packages/nodes-base/credentials/MediumApi.credentials.ts -packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts -packages/nodes-base/credentials/MessageBirdApi.credentials.ts -packages/nodes-base/credentials/Microsoft.svg -packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftSql.credentials.ts -packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts -packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts -packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts -packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts -packages/nodes-base/credentials/MispApi.credentials.ts -packages/nodes-base/credentials/MoceanApi.credentials.ts -packages/nodes-base/credentials/MondayComApi.credentials.ts -packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts -packages/nodes-base/credentials/MongoDb.credentials.ts -packages/nodes-base/credentials/MonicaCrmApi.credentials.ts -packages/nodes-base/credentials/Mqtt.credentials.ts -packages/nodes-base/credentials/Msg91Api.credentials.ts -packages/nodes-base/credentials/MySql.credentials.ts -packages/nodes-base/credentials/NasaApi.credentials.ts -packages/nodes-base/credentials/NetlifyApi.credentials.ts -packages/nodes-base/credentials/NetlifyOAuth2Api.credentials.ts -packages/nodes-base/credentials/NextCloudApi.credentials.ts -packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts -packages/nodes-base/credentials/NocoDb.credentials.ts -packages/nodes-base/credentials/NotionApi.credentials.ts -packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts -packages/nodes-base/credentials/OAuth1Api.credentials.ts -packages/nodes-base/credentials/OAuth2Api.credentials.ts -packages/nodes-base/credentials/OdooApi.credentials.ts -packages/nodes-base/credentials/OneSimpleApi.credentials.ts -packages/nodes-base/credentials/OnfleetApi.credentials.ts -packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts -packages/nodes-base/credentials/OrbitApi.credentials.ts -packages/nodes-base/credentials/OuraApi.credentials.ts -packages/nodes-base/credentials/PaddleApi.credentials.ts -packages/nodes-base/credentials/PagerDutyApi.credentials.ts -packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts -packages/nodes-base/credentials/PayPalApi.credentials.ts -packages/nodes-base/credentials/PeekalinkApi.credentials.ts -packages/nodes-base/credentials/PhantombusterApi.credentials.ts -packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts -packages/nodes-base/credentials/PipedriveApi.credentials.ts -packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts -packages/nodes-base/credentials/PlivoApi.credentials.ts -packages/nodes-base/credentials/Postgres.credentials.ts -packages/nodes-base/credentials/PostHogApi.credentials.ts -packages/nodes-base/credentials/PostmarkApi.credentials.ts -packages/nodes-base/credentials/ProfitWellApi.credentials.ts -packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts -packages/nodes-base/credentials/PushcutApi.credentials.ts -packages/nodes-base/credentials/PushoverApi.credentials.ts -packages/nodes-base/credentials/QuestDb.credentials.ts -packages/nodes-base/credentials/QuickBaseApi.credentials.ts -packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts -packages/nodes-base/credentials/RabbitMQ.credentials.ts -packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts -packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts -packages/nodes-base/credentials/Redis.credentials.ts -packages/nodes-base/credentials/RocketchatApi.credentials.ts -packages/nodes-base/credentials/RundeckApi.credentials.ts -packages/nodes-base/credentials/S3.credentials.ts -packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts -packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts -packages/nodes-base/credentials/SalesmateApi.credentials.ts -packages/nodes-base/credentials/SeaTableApi.credentials.ts -packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts -packages/nodes-base/credentials/SegmentApi.credentials.ts -packages/nodes-base/credentials/SendGridApi.credentials.ts -packages/nodes-base/credentials/SendyApi.credentials.ts -packages/nodes-base/credentials/SentryIoApi.credentials.ts -packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts -packages/nodes-base/credentials/SentryIoServerApi.credentials.ts -packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts -packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts -packages/nodes-base/credentials/Sftp.credentials.ts -packages/nodes-base/credentials/ShopifyApi.credentials.ts -packages/nodes-base/credentials/Signl4Api.credentials.ts -packages/nodes-base/credentials/SlackApi.credentials.ts -packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts -packages/nodes-base/credentials/Sms77Api.credentials.ts -packages/nodes-base/credentials/Smtp.credentials.ts -packages/nodes-base/credentials/Snowflake.credentials.ts -packages/nodes-base/credentials/SplunkApi.credentials.ts -packages/nodes-base/credentials/SpontitApi.credentials.ts -packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts -packages/nodes-base/credentials/SshPassword.credentials.ts -packages/nodes-base/credentials/SshPrivateKey.credentials.ts -packages/nodes-base/credentials/StackbyApi.credentials.ts -packages/nodes-base/credentials/StoryblokContentApi.credentials.ts -packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts -packages/nodes-base/credentials/StrapiApi.credentials.ts -packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts -packages/nodes-base/credentials/StripeApi.credentials.ts -packages/nodes-base/credentials/SupabaseApi.credentials.ts -packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts -packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts -packages/nodes-base/credentials/SyncroMspApi.credentials.ts -packages/nodes-base/credentials/TaigaApi.credentials.ts -packages/nodes-base/credentials/TapfiliateApi.credentials.ts -packages/nodes-base/credentials/TelegramApi.credentials.ts -packages/nodes-base/credentials/TheHiveApi.credentials.ts -packages/nodes-base/credentials/TimescaleDb.credentials.ts -packages/nodes-base/credentials/TodoistApi.credentials.ts -packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts -packages/nodes-base/credentials/TogglApi.credentials.ts -packages/nodes-base/credentials/TravisCiApi.credentials.ts -packages/nodes-base/credentials/TrelloApi.credentials.ts -packages/nodes-base/credentials/TwakeCloudApi.credentials.ts -packages/nodes-base/credentials/TwakeServerApi.credentials.ts -packages/nodes-base/credentials/TwilioApi.credentials.ts -packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts -packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts -packages/nodes-base/credentials/TypeformApi.credentials.ts -packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts -packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts -packages/nodes-base/credentials/UpleadApi.credentials.ts -packages/nodes-base/credentials/UProcApi.credentials.ts -packages/nodes-base/credentials/UptimeRobotApi.credentials.ts -packages/nodes-base/credentials/UrlScanIoApi.credentials.ts -packages/nodes-base/credentials/VeroApi.credentials.ts -packages/nodes-base/credentials/VonageApi.credentials.ts -packages/nodes-base/credentials/WebflowApi.credentials.ts -packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts -packages/nodes-base/credentials/WekanApi.credentials.ts -packages/nodes-base/credentials/WiseApi.credentials.ts -packages/nodes-base/credentials/WooCommerceApi.credentials.ts -packages/nodes-base/credentials/WordpressApi.credentials.ts -packages/nodes-base/credentials/WorkableApi.credentials.ts -packages/nodes-base/credentials/WufooApi.credentials.ts -packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts -packages/nodes-base/credentials/YourlsApi.credentials.ts -packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts -packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts -packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts -packages/nodes-base/credentials/ZendeskApi.credentials.ts -packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts -packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts -packages/nodes-base/credentials/ZoomApi.credentials.ts -packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts -packages/nodes-base/credentials/ZulipApi.credentials.ts diff --git a/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts b/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts index 394f343771fad..2a33cb1568a52 100644 --- a/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts +++ b/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts @@ -24,8 +24,11 @@ export class ActionNetworkApi implements ICredentialType { url: '/events?per_page=1', }, }; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.headers = { 'OSDI-API-Token': credentials.apiKey }; return requestOptions; - } + } } diff --git a/packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts b/packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts index eb9ea92440334..587514791e776 100644 --- a/packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts +++ b/packages/nodes-base/credentials/ActiveCampaignApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class ActiveCampaignApi implements ICredentialType { name = 'activeCampaignApi'; displayName = 'ActiveCampaign API'; diff --git a/packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts b/packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts index ce87666dce087..c53318fe64134 100644 --- a/packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts +++ b/packages/nodes-base/credentials/AcuitySchedulingApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AcuitySchedulingApi implements ICredentialType { name = 'acuitySchedulingApi'; diff --git a/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts b/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts index e5b4832b55d63..a86aa39807c68 100644 --- a/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/AcuitySchedulingOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AcuitySchedulingOAuth2Api implements ICredentialType { name = 'acuitySchedulingOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'AcuityScheduling OAuth2 API'; documentationUrl = 'acuityScheduling'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/AffinityApi.credentials.ts b/packages/nodes-base/credentials/AffinityApi.credentials.ts index e9da5ec49e7fa..d33da82453678 100644 --- a/packages/nodes-base/credentials/AffinityApi.credentials.ts +++ b/packages/nodes-base/credentials/AffinityApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AffinityApi implements ICredentialType { name = 'affinityApi'; diff --git a/packages/nodes-base/credentials/AgileCrmApi.credentials.ts b/packages/nodes-base/credentials/AgileCrmApi.credentials.ts index 6f6059c5004bd..daf2cc3301350 100644 --- a/packages/nodes-base/credentials/AgileCrmApi.credentials.ts +++ b/packages/nodes-base/credentials/AgileCrmApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AgileCrmApi implements ICredentialType { name = 'agileCrmApi'; @@ -27,7 +24,8 @@ export class AgileCrmApi implements ICredentialType { type: 'string', default: '', placeholder: 'example', - description: 'If the domain is https://example.agilecrm.com "example" would have to be entered', + description: + 'If the domain is https://example.agilecrm.com "example" would have to be entered', }, ]; } diff --git a/packages/nodes-base/credentials/AirtableApi.credentials.ts b/packages/nodes-base/credentials/AirtableApi.credentials.ts index 48f23c10648e7..fb5de7bee55ff 100644 --- a/packages/nodes-base/credentials/AirtableApi.credentials.ts +++ b/packages/nodes-base/credentials/AirtableApi.credentials.ts @@ -1,9 +1,4 @@ -import { - IAuthenticateGeneric, - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow'; export class AirtableApi implements ICredentialType { name = 'airtableApi'; diff --git a/packages/nodes-base/credentials/Amqp.credentials.ts b/packages/nodes-base/credentials/Amqp.credentials.ts index 81816fe07a72e..acc5836e84998 100644 --- a/packages/nodes-base/credentials/Amqp.credentials.ts +++ b/packages/nodes-base/credentials/Amqp.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Amqp implements ICredentialType { name = 'amqp'; diff --git a/packages/nodes-base/credentials/AsanaApi.credentials.ts b/packages/nodes-base/credentials/AsanaApi.credentials.ts index 35710c8dfb259..3c4f22afc51f0 100644 --- a/packages/nodes-base/credentials/AsanaApi.credentials.ts +++ b/packages/nodes-base/credentials/AsanaApi.credentials.ts @@ -1,8 +1,4 @@ -import { - IAuthenticateGeneric, - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow'; export class AsanaApi implements ICredentialType { name = 'asanaApi'; @@ -25,5 +21,4 @@ export class AsanaApi implements ICredentialType { }, }, }; - } diff --git a/packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts b/packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts index f1a5d54e3a9c4..8a0baf67f8d6a 100644 --- a/packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AsanaOAuth2Api implements ICredentialType { name = 'asanaOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Asana OAuth2 API'; documentationUrl = 'asana'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/AutomizyApi.credentials.ts b/packages/nodes-base/credentials/AutomizyApi.credentials.ts index 545015a1d2ddb..259c1c01a4ae6 100644 --- a/packages/nodes-base/credentials/AutomizyApi.credentials.ts +++ b/packages/nodes-base/credentials/AutomizyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AutomizyApi implements ICredentialType { name = 'automizyApi'; diff --git a/packages/nodes-base/credentials/AutopilotApi.credentials.ts b/packages/nodes-base/credentials/AutopilotApi.credentials.ts index dad6d5a1c0a5c..22f421b86456c 100644 --- a/packages/nodes-base/credentials/AutopilotApi.credentials.ts +++ b/packages/nodes-base/credentials/AutopilotApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class AutopilotApi implements ICredentialType { name = 'autopilotApi'; diff --git a/packages/nodes-base/credentials/Aws.credentials.ts b/packages/nodes-base/credentials/Aws.credentials.ts index 31d5467d0436d..b723606394313 100644 --- a/packages/nodes-base/credentials/Aws.credentials.ts +++ b/packages/nodes-base/credentials/Aws.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export const regions = [ { @@ -128,7 +125,7 @@ export class Aws implements ICredentialType { displayName: 'Region', name: 'region', type: 'options', - options: regions.map(r => ({ + options: regions.map((r) => ({ name: `${r.displayName} (${r.location}) - ${r.name}`, value: r.name, })), @@ -163,9 +160,7 @@ export class Aws implements ICredentialType { type: 'string', displayOptions: { show: { - temporaryCredentials: [ - true, - ], + temporaryCredentials: [true], }, }, default: '', @@ -182,13 +177,12 @@ export class Aws implements ICredentialType { { displayName: 'Rekognition Endpoint', name: 'rekognitionEndpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Rekognition using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Rekognition using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', @@ -197,13 +191,12 @@ export class Aws implements ICredentialType { { displayName: 'Lambda Endpoint', name: 'lambdaEndpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Lambda using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Lambda using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', @@ -212,13 +205,12 @@ export class Aws implements ICredentialType { { displayName: 'SNS Endpoint', name: 'snsEndpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SNS using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SNS using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', @@ -227,13 +219,12 @@ export class Aws implements ICredentialType { { displayName: 'SES Endpoint', name: 'sesEndpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SES using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SES using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', @@ -242,13 +233,12 @@ export class Aws implements ICredentialType { { displayName: 'SQS Endpoint', name: 'sqsEndpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SQS using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SQS using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', @@ -257,13 +247,12 @@ export class Aws implements ICredentialType { { displayName: 'S3 Endpoint', name: 's3Endpoint', - description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and S3 using a VPC endpoint. Leave blank to use the default endpoint.', + description: + 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and S3 using a VPC endpoint. Leave blank to use the default endpoint.', type: 'string', displayOptions: { show: { - customEndpoints: [ - true, - ], + customEndpoints: [true], }, }, default: '', diff --git a/packages/nodes-base/credentials/BambooHrApi.credentials.ts b/packages/nodes-base/credentials/BambooHrApi.credentials.ts index ca9aa7cab11da..60c62d6e03ad6 100644 --- a/packages/nodes-base/credentials/BambooHrApi.credentials.ts +++ b/packages/nodes-base/credentials/BambooHrApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BambooHrApi implements ICredentialType { name = 'bambooHrApi'; diff --git a/packages/nodes-base/credentials/BannerbearApi.credentials.ts b/packages/nodes-base/credentials/BannerbearApi.credentials.ts index 99a6633c53730..af277d058e727 100644 --- a/packages/nodes-base/credentials/BannerbearApi.credentials.ts +++ b/packages/nodes-base/credentials/BannerbearApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BannerbearApi implements ICredentialType { name = 'bannerbearApi'; diff --git a/packages/nodes-base/credentials/BaserowApi.credentials.ts b/packages/nodes-base/credentials/BaserowApi.credentials.ts index ff81c05fee700..5be62849e5c31 100644 --- a/packages/nodes-base/credentials/BaserowApi.credentials.ts +++ b/packages/nodes-base/credentials/BaserowApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; // https://api.baserow.io/api/redoc/#section/Authentication diff --git a/packages/nodes-base/credentials/BeeminderApi.credentials.ts b/packages/nodes-base/credentials/BeeminderApi.credentials.ts index 5726b697d0d12..27367c5f4ac85 100644 --- a/packages/nodes-base/credentials/BeeminderApi.credentials.ts +++ b/packages/nodes-base/credentials/BeeminderApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BeeminderApi implements ICredentialType { name = 'beeminderApi'; diff --git a/packages/nodes-base/credentials/BitbucketApi.credentials.ts b/packages/nodes-base/credentials/BitbucketApi.credentials.ts index 8262b457b65c9..6e1fa5975ebcd 100644 --- a/packages/nodes-base/credentials/BitbucketApi.credentials.ts +++ b/packages/nodes-base/credentials/BitbucketApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BitbucketApi implements ICredentialType { name = 'bitbucketApi'; diff --git a/packages/nodes-base/credentials/BitlyApi.credentials.ts b/packages/nodes-base/credentials/BitlyApi.credentials.ts index 66f457e821380..5a44e8126892e 100644 --- a/packages/nodes-base/credentials/BitlyApi.credentials.ts +++ b/packages/nodes-base/credentials/BitlyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BitlyApi implements ICredentialType { name = 'bitlyApi'; diff --git a/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts index d60dd421fc212..864ae35d68f4b 100644 --- a/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts @@ -1,16 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BitlyOAuth2Api implements ICredentialType { name = 'bitlyOAuth2Api'; displayName = 'Bitly OAuth2 API'; documentationUrl = 'bitly'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; properties: INodeProperties[] = [ { displayName: 'Grant Type', @@ -60,7 +54,8 @@ export class BitlyOAuth2Api implements ICredentialType { name: 'authQueryParameters', type: 'hidden', default: '', - description: 'For some services additional query parameters have to be set which can be defined here', + description: + 'For some services additional query parameters have to be set which can be defined here', placeholder: '', }, { diff --git a/packages/nodes-base/credentials/BitwardenApi.credentials.ts b/packages/nodes-base/credentials/BitwardenApi.credentials.ts index 376d6d6546af5..53a46f8bcc449 100644 --- a/packages/nodes-base/credentials/BitwardenApi.credentials.ts +++ b/packages/nodes-base/credentials/BitwardenApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; // https://bitwarden.com/help/article/public-api/#authentication @@ -46,9 +43,7 @@ export class BitwardenApi implements ICredentialType { placeholder: 'https://www.mydomain.com', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts b/packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts index 527da9dc9d8c0..8f46a053c306c 100644 --- a/packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BoxOAuth2Api implements ICredentialType { name = 'boxOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Box OAuth2 API'; documentationUrl = 'box'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/BrandfetchApi.credentials.ts b/packages/nodes-base/credentials/BrandfetchApi.credentials.ts index 4954940b5c69c..67aa30f59ce43 100644 --- a/packages/nodes-base/credentials/BrandfetchApi.credentials.ts +++ b/packages/nodes-base/credentials/BrandfetchApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BrandfetchApi implements ICredentialType { name = 'brandfetchApi'; diff --git a/packages/nodes-base/credentials/BubbleApi.credentials.ts b/packages/nodes-base/credentials/BubbleApi.credentials.ts index 1f91de6cb1c3e..eac08a82f315f 100644 --- a/packages/nodes-base/credentials/BubbleApi.credentials.ts +++ b/packages/nodes-base/credentials/BubbleApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class BubbleApi implements ICredentialType { name = 'bubbleApi'; @@ -60,9 +57,7 @@ export class BubbleApi implements ICredentialType { default: '', displayOptions: { show: { - hosting: [ - 'selfHosted', - ], + hosting: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/CalendlyApi.credentials.ts b/packages/nodes-base/credentials/CalendlyApi.credentials.ts index e0cc4df481b4d..55f3f154f9409 100644 --- a/packages/nodes-base/credentials/CalendlyApi.credentials.ts +++ b/packages/nodes-base/credentials/CalendlyApi.credentials.ts @@ -20,9 +20,12 @@ export class CalendlyApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { //check whether the token is an API Key or an access token - const { apiKey } = credentials as { apiKey: string } ; + const { apiKey } = credentials as { apiKey: string }; const tokenType = getAuthenticationType(apiKey); // remove condition once v1 is deprecated // and only inject credentials as an access token @@ -42,7 +45,7 @@ export class CalendlyApi implements ICredentialType { }; } - const getAuthenticationType = (data: string): 'accessToken' | 'apiKey' => { +const getAuthenticationType = (data: string): 'accessToken' | 'apiKey' => { // The access token is a JWT, so it will always include dots to separate // header, payoload and signature. return data.includes('.') ? 'accessToken' : 'apiKey'; diff --git a/packages/nodes-base/credentials/ChargebeeApi.credentials.ts b/packages/nodes-base/credentials/ChargebeeApi.credentials.ts index ee08c7c8ad5de..1ddb91d9b507b 100644 --- a/packages/nodes-base/credentials/ChargebeeApi.credentials.ts +++ b/packages/nodes-base/credentials/ChargebeeApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ChargebeeApi implements ICredentialType { name = 'chargebeeApi'; diff --git a/packages/nodes-base/credentials/CircleCiApi.credentials.ts b/packages/nodes-base/credentials/CircleCiApi.credentials.ts index 6ba6b96418172..5d728f949de56 100644 --- a/packages/nodes-base/credentials/CircleCiApi.credentials.ts +++ b/packages/nodes-base/credentials/CircleCiApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class CircleCiApi implements ICredentialType { name = 'circleCiApi'; diff --git a/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts b/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts index 2c96fe93fd5fc..0c395fd974a4e 100644 --- a/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class CiscoWebexOAuth2Api implements ICredentialType { name = 'ciscoWebexOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Cisco Webex OAuth2 API'; properties: INodeProperties[] = [ { @@ -34,7 +29,8 @@ export class CiscoWebexOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden', - default: 'spark:memberships_read meeting:recordings_read spark:kms meeting:schedules_read spark:rooms_read spark:messages_write spark:memberships_write meeting:recordings_write meeting:preferences_read spark:messages_read meeting:schedules_write', + default: + 'spark:memberships_read meeting:recordings_read spark:kms meeting:schedules_read spark:rooms_read spark:messages_write spark:memberships_write meeting:recordings_write meeting:preferences_read spark:messages_read meeting:schedules_write', }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/ClearbitApi.credentials.ts b/packages/nodes-base/credentials/ClearbitApi.credentials.ts index 771234dde5ed1..deab41eaf017e 100644 --- a/packages/nodes-base/credentials/ClearbitApi.credentials.ts +++ b/packages/nodes-base/credentials/ClearbitApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ClearbitApi implements ICredentialType { name = 'clearbitApi'; diff --git a/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts index 82dcdbf407fe8..50403cc0c0e82 100644 --- a/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ClickUpOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ClickUpOAuth2Api implements ICredentialType { name = 'clickUpOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'ClickUp OAuth2 API'; documentationUrl = 'clickUp'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/ClockifyApi.credentials.ts b/packages/nodes-base/credentials/ClockifyApi.credentials.ts index 665be4f57479c..4f30ded183ec8 100644 --- a/packages/nodes-base/credentials/ClockifyApi.credentials.ts +++ b/packages/nodes-base/credentials/ClockifyApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class ClockifyApi implements ICredentialType { name = 'clockifyApi'; displayName = 'Clockify API'; diff --git a/packages/nodes-base/credentials/CockpitApi.credentials.ts b/packages/nodes-base/credentials/CockpitApi.credentials.ts index ab269308fb08e..a490bb2e6a91b 100644 --- a/packages/nodes-base/credentials/CockpitApi.credentials.ts +++ b/packages/nodes-base/credentials/CockpitApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class CockpitApi implements ICredentialType { name = 'cockpitApi'; diff --git a/packages/nodes-base/credentials/CodaApi.credentials.ts b/packages/nodes-base/credentials/CodaApi.credentials.ts index d6d250c9ad889..88c4626b723c4 100644 --- a/packages/nodes-base/credentials/CodaApi.credentials.ts +++ b/packages/nodes-base/credentials/CodaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class CodaApi implements ICredentialType { name = 'codaApi'; diff --git a/packages/nodes-base/credentials/ContentfulApi.credentials.ts b/packages/nodes-base/credentials/ContentfulApi.credentials.ts index de8903cbe2c38..0b887dd475faf 100644 --- a/packages/nodes-base/credentials/ContentfulApi.credentials.ts +++ b/packages/nodes-base/credentials/ContentfulApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; //https://www.contentful.com/developers/docs/references/authentication/ export class ContentfulApi implements ICredentialType { @@ -22,14 +19,16 @@ export class ContentfulApi implements ICredentialType { name: 'ContentDeliveryaccessToken', type: 'string', default: '', - description: 'Access token that has access to the space. Can be left empty if only Delivery API should be used.', + description: + 'Access token that has access to the space. Can be left empty if only Delivery API should be used.', }, { displayName: 'Content Preview API Access Token', name: 'ContentPreviewaccessToken', type: 'string', default: '', - description: 'Access token that has access to the space. Can be left empty if only Preview API should be used.', + description: + 'Access token that has access to the space. Can be left empty if only Preview API should be used.', }, ]; } diff --git a/packages/nodes-base/credentials/ConvertKitApi.credentials.ts b/packages/nodes-base/credentials/ConvertKitApi.credentials.ts index 73e1180f7b996..8854665d16fca 100644 --- a/packages/nodes-base/credentials/ConvertKitApi.credentials.ts +++ b/packages/nodes-base/credentials/ConvertKitApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ConvertKitApi implements ICredentialType { name = 'convertKitApi'; diff --git a/packages/nodes-base/credentials/CopperApi.credentials.ts b/packages/nodes-base/credentials/CopperApi.credentials.ts index ea20307e729ed..5913fa184fee0 100644 --- a/packages/nodes-base/credentials/CopperApi.credentials.ts +++ b/packages/nodes-base/credentials/CopperApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class CopperApi implements ICredentialType { name = 'copperApi'; diff --git a/packages/nodes-base/credentials/CortexApi.credentials.ts b/packages/nodes-base/credentials/CortexApi.credentials.ts index 571a12c767b0f..97c3e1003cf37 100644 --- a/packages/nodes-base/credentials/CortexApi.credentials.ts +++ b/packages/nodes-base/credentials/CortexApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class CortexApi implements ICredentialType { name = 'cortexApi'; displayName = 'Cortex API'; @@ -42,5 +41,4 @@ export class CortexApi implements ICredentialType { url: '/api/analyzer', }, }; - } diff --git a/packages/nodes-base/credentials/CustomerIoApi.credentials.ts b/packages/nodes-base/credentials/CustomerIoApi.credentials.ts index c3df8869c29ed..63571adff1095 100644 --- a/packages/nodes-base/credentials/CustomerIoApi.credentials.ts +++ b/packages/nodes-base/credentials/CustomerIoApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class CustomerIoApi implements ICredentialType { name = 'customerIoApi'; displayName = 'Customer.io API'; @@ -53,16 +52,23 @@ export class CustomerIoApi implements ICredentialType { description: 'Required for App API', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { // @ts-ignore const url = requestOptions.url ? requestOptions.url : requestOptions.uri; if (url.includes('track') || url.includes('api.customer.io')) { - const basicAuthKey = Buffer.from(`${credentials.trackingSiteId}:${credentials.trackingApiKey}`).toString('base64'); + const basicAuthKey = Buffer.from( + `${credentials.trackingSiteId}:${credentials.trackingApiKey}`, + ).toString('base64'); // @ts-ignore - Object.assign(requestOptions.headers, { 'Authorization': `Basic ${basicAuthKey}` }); + Object.assign(requestOptions.headers, { Authorization: `Basic ${basicAuthKey}` }); } else if (url.includes('beta-api.customer.io')) { // @ts-ignore - Object.assign(requestOptions.headers, { 'Authorization': `Bearer ${credentials.appApiKey as string}` }); + Object.assign(requestOptions.headers, { + Authorization: `Bearer ${credentials.appApiKey as string}`, + }); } else { throw new Error('Unknown way of authenticating'); } diff --git a/packages/nodes-base/credentials/DeepLApi.credentials.ts b/packages/nodes-base/credentials/DeepLApi.credentials.ts index 5021ddc2e5460..e4e90e112b02f 100644 --- a/packages/nodes-base/credentials/DeepLApi.credentials.ts +++ b/packages/nodes-base/credentials/DeepLApi.credentials.ts @@ -45,7 +45,8 @@ export class DeepLApi implements ICredentialType { test: ICredentialTestRequest = { request: { - baseURL: '={{$credentials.apiPlan === "pro" ? "https://api.deepl.com/v2" : "https://api-free.deepl.com/v2" }}', + baseURL: + '={{$credentials.apiPlan === "pro" ? "https://api.deepl.com/v2" : "https://api-free.deepl.com/v2" }}', url: '/usage', }, }; diff --git a/packages/nodes-base/credentials/DemioApi.credentials.ts b/packages/nodes-base/credentials/DemioApi.credentials.ts index 81c9a7209534e..974d63004c3ec 100644 --- a/packages/nodes-base/credentials/DemioApi.credentials.ts +++ b/packages/nodes-base/credentials/DemioApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class DemioApi implements ICredentialType { name = 'demioApi'; diff --git a/packages/nodes-base/credentials/DhlApi.credentials.ts b/packages/nodes-base/credentials/DhlApi.credentials.ts index e03b9931b903d..5f80fe1a154fb 100644 --- a/packages/nodes-base/credentials/DhlApi.credentials.ts +++ b/packages/nodes-base/credentials/DhlApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class DhlApi implements ICredentialType { name = 'dhlApi'; diff --git a/packages/nodes-base/credentials/DiscourseApi.credentials.ts b/packages/nodes-base/credentials/DiscourseApi.credentials.ts index d34da38ea8fc5..8b1ccd3fb3546 100644 --- a/packages/nodes-base/credentials/DiscourseApi.credentials.ts +++ b/packages/nodes-base/credentials/DiscourseApi.credentials.ts @@ -34,7 +34,10 @@ export class DiscourseApi implements ICredentialType { }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.headers = { 'Api-Key': credentials.apiKey, 'Api-Username': credentials.username, diff --git a/packages/nodes-base/credentials/DisqusApi.credentials.ts b/packages/nodes-base/credentials/DisqusApi.credentials.ts index c70f47c2ba653..ac33abd015503 100644 --- a/packages/nodes-base/credentials/DisqusApi.credentials.ts +++ b/packages/nodes-base/credentials/DisqusApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class DisqusApi implements ICredentialType { name = 'disqusApi'; @@ -13,7 +10,8 @@ export class DisqusApi implements ICredentialType { name: 'accessToken', type: 'string', 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 5e7f2c5ceefcf..a1a510850e9c3 100644 --- a/packages/nodes-base/credentials/DriftApi.credentials.ts +++ b/packages/nodes-base/credentials/DriftApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class DriftApi implements ICredentialType { name = 'driftApi'; @@ -13,7 +10,8 @@ export class DriftApi implements ICredentialType { name: 'accessToken', type: 'string', 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/DriftOAuth2Api.credentials.ts b/packages/nodes-base/credentials/DriftOAuth2Api.credentials.ts index 1d1fc9386bbec..bb8c35e5bfd0e 100644 --- a/packages/nodes-base/credentials/DriftOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/DriftOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class DriftOAuth2Api implements ICredentialType { name = 'driftOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Drift OAuth2 API'; documentationUrl = 'drift'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/DropboxApi.credentials.ts b/packages/nodes-base/credentials/DropboxApi.credentials.ts index f709e14ccd4e7..7830a01048eaf 100644 --- a/packages/nodes-base/credentials/DropboxApi.credentials.ts +++ b/packages/nodes-base/credentials/DropboxApi.credentials.ts @@ -3,7 +3,7 @@ import { ICredentialTestFunction, ICredentialTestRequest, ICredentialType, - INodeProperties + INodeProperties, } from 'n8n-workflow'; export class DropboxApi implements ICredentialType { diff --git a/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts b/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts index 84596444533db..bf1127ee864f3 100644 --- a/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/DropboxOAuth2Api.credentials.ts @@ -1,20 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'files.content.write', - 'files.content.read', - 'sharing.read', - 'account_info.read', -]; +const scopes = ['files.content.write', 'files.content.read', 'sharing.read', 'account_info.read']; export class DropboxOAuth2Api implements ICredentialType { name = 'dropboxOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Dropbox OAuth2 API'; documentationUrl = 'dropbox'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/DropcontactApi.credentials.ts b/packages/nodes-base/credentials/DropcontactApi.credentials.ts index de91630b01149..584da0347c254 100644 --- a/packages/nodes-base/credentials/DropcontactApi.credentials.ts +++ b/packages/nodes-base/credentials/DropcontactApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - NodePropertyTypes, -} from 'n8n-workflow'; +import { ICredentialType, NodePropertyTypes } from 'n8n-workflow'; export class DropcontactApi implements ICredentialType { name = 'dropcontactApi'; diff --git a/packages/nodes-base/credentials/ERPNextApi.credentials.ts b/packages/nodes-base/credentials/ERPNextApi.credentials.ts index 264aae74a798e..9d9b35dc3be6e 100644 --- a/packages/nodes-base/credentials/ERPNextApi.credentials.ts +++ b/packages/nodes-base/credentials/ERPNextApi.credentials.ts @@ -44,12 +44,11 @@ export class ERPNextApi implements ICredentialType { type: 'string', default: '', placeholder: 'n8n', - description: 'Subdomain of cloud-hosted ERPNext instance. For example, "n8n" is the subdomain in: https://n8n.erpnext.com', + description: + 'Subdomain of cloud-hosted ERPNext instance. For example, "n8n" is the subdomain in: https://n8n.erpnext.com', displayOptions: { show: { - environment: [ - 'cloudHosted', - ], + environment: ['cloudHosted'], }, }, }, @@ -62,9 +61,7 @@ export class ERPNextApi implements ICredentialType { description: 'Fully qualified domain name of self-hosted ERPNext instance', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/EgoiApi.credentials.ts b/packages/nodes-base/credentials/EgoiApi.credentials.ts index 9ee2548e812a1..bc6c682593c7b 100644 --- a/packages/nodes-base/credentials/EgoiApi.credentials.ts +++ b/packages/nodes-base/credentials/EgoiApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class EgoiApi implements ICredentialType { name = 'egoiApi'; diff --git a/packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts b/packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts index 1fea69115838c..ed4f832984795 100644 --- a/packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts +++ b/packages/nodes-base/credentials/ElasticSecurityApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ElasticSecurityApi implements ICredentialType { name = 'elasticSecurityApi'; @@ -31,7 +28,7 @@ export class ElasticSecurityApi implements ICredentialType { type: 'string', default: '', placeholder: 'e.g. https://mydeployment.kb.us-central1.gcp.cloud.es.io:9243', - description: 'Referred to as Kibana \'endpoint\' in the Elastic deployment dashboard', + description: "Referred to as Kibana 'endpoint' in the Elastic deployment dashboard", required: true, }, ]; diff --git a/packages/nodes-base/credentials/ElasticsearchApi.credentials.ts b/packages/nodes-base/credentials/ElasticsearchApi.credentials.ts index 0ad87345622ed..5b585b545db79 100644 --- a/packages/nodes-base/credentials/ElasticsearchApi.credentials.ts +++ b/packages/nodes-base/credentials/ElasticsearchApi.credentials.ts @@ -31,7 +31,7 @@ export class ElasticsearchApi implements ICredentialType { type: 'string', default: '', placeholder: 'https://mydeployment.es.us-central1.gcp.cloud.es.io:9243', - description: 'Referred to as Elasticsearch \'endpoint\' in the Elastic deployment dashboard', + description: "Referred to as Elasticsearch 'endpoint' in the Elastic deployment dashboard", }, { displayName: 'Ignore SSL Issues', diff --git a/packages/nodes-base/credentials/EmeliaApi.credentials.ts b/packages/nodes-base/credentials/EmeliaApi.credentials.ts index c88974f19a563..95f1cc1515808 100644 --- a/packages/nodes-base/credentials/EmeliaApi.credentials.ts +++ b/packages/nodes-base/credentials/EmeliaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class EmeliaApi implements ICredentialType { name = 'emeliaApi'; diff --git a/packages/nodes-base/credentials/EventbriteApi.credentials.ts b/packages/nodes-base/credentials/EventbriteApi.credentials.ts index 9ebe75a5aafa4..72289f1bba516 100644 --- a/packages/nodes-base/credentials/EventbriteApi.credentials.ts +++ b/packages/nodes-base/credentials/EventbriteApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class EventbriteApi implements ICredentialType { name = 'eventbriteApi'; diff --git a/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts b/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts index cbfb2b4d0b95a..e8f8dfd2ae5cd 100644 --- a/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/EventbriteOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class EventbriteOAuth2Api implements ICredentialType { name = 'eventbriteOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Eventbrite OAuth2 API'; documentationUrl = 'eventbrite'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/FacebookGraphApi.credentials.ts b/packages/nodes-base/credentials/FacebookGraphApi.credentials.ts index a28fd4368ca1d..f3cf73582819e 100644 --- a/packages/nodes-base/credentials/FacebookGraphApi.credentials.ts +++ b/packages/nodes-base/credentials/FacebookGraphApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class FacebookGraphApi implements ICredentialType { name = 'facebookGraphApi'; displayName = 'Facebook Graph API'; diff --git a/packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts b/packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts index ae32c1882e1d6..74478d176a5dc 100644 --- a/packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts +++ b/packages/nodes-base/credentials/FacebookGraphAppApi.credentials.ts @@ -1,22 +1,18 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FacebookGraphAppApi implements ICredentialType { name = 'facebookGraphAppApi'; displayName = 'Facebook Graph API (App)'; documentationUrl = 'facebookGraphApp'; - extends = [ - 'facebookGraphApi', - ]; + extends = ['facebookGraphApi']; properties: INodeProperties[] = [ { displayName: 'App Secret', name: 'appSecret', type: 'string', default: '', - description: '(Optional) When the app secret is set the node will verify this signature to validate the integrity and origin of the payload', + description: + '(Optional) When the app secret is set the node will verify this signature to validate the integrity and origin of the payload', }, ]; } diff --git a/packages/nodes-base/credentials/FigmaApi.credentials.ts b/packages/nodes-base/credentials/FigmaApi.credentials.ts index b73ed28568241..fe876638384f4 100644 --- a/packages/nodes-base/credentials/FigmaApi.credentials.ts +++ b/packages/nodes-base/credentials/FigmaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FigmaApi implements ICredentialType { name = 'figmaApi'; diff --git a/packages/nodes-base/credentials/FileMaker.credentials.ts b/packages/nodes-base/credentials/FileMaker.credentials.ts index ac20bd999aa20..2c82c8c059908 100644 --- a/packages/nodes-base/credentials/FileMaker.credentials.ts +++ b/packages/nodes-base/credentials/FileMaker.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FileMaker implements ICredentialType { name = 'fileMaker'; diff --git a/packages/nodes-base/credentials/FlowApi.credentials.ts b/packages/nodes-base/credentials/FlowApi.credentials.ts index d7075029eacab..d75ef5d62080d 100644 --- a/packages/nodes-base/credentials/FlowApi.credentials.ts +++ b/packages/nodes-base/credentials/FlowApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FlowApi implements ICredentialType { name = 'flowApi'; diff --git a/packages/nodes-base/credentials/FormIoApi.credentials.ts b/packages/nodes-base/credentials/FormIoApi.credentials.ts index edba8e58f19f3..1150b87453c3a 100644 --- a/packages/nodes-base/credentials/FormIoApi.credentials.ts +++ b/packages/nodes-base/credentials/FormIoApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FormIoApi implements ICredentialType { name = 'formIoApi'; @@ -32,9 +29,7 @@ export class FormIoApi implements ICredentialType { placeholder: 'https://www.mydomain.com', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/FormstackApi.credentials.ts b/packages/nodes-base/credentials/FormstackApi.credentials.ts index 4c611f86c81a4..f1698fc55fa78 100644 --- a/packages/nodes-base/credentials/FormstackApi.credentials.ts +++ b/packages/nodes-base/credentials/FormstackApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FormstackApi implements ICredentialType { name = 'formstackApi'; diff --git a/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts b/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts index 6d90f0441e5ad..80da5328737af 100644 --- a/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts @@ -1,15 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes: string[] = []; export class FormstackOAuth2Api implements ICredentialType { name = 'formstackOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Formstack OAuth2 API'; documentationUrl = 'formstackTrigger'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts index 7f23f66f4da48..21a9fbd340504 100644 --- a/packages/nodes-base/credentials/FreshdeskApi.credentials.ts +++ b/packages/nodes-base/credentials/FreshdeskApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FreshdeskApi implements ICredentialType { name = 'freshdeskApi'; @@ -20,7 +16,8 @@ export class FreshdeskApi implements ICredentialType { name: 'domain', type: 'string', placeholder: 'company', - description: 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"', + description: + 'If the URL you get displayed on Freshdesk is "https://company.freshdesk.com" enter "company"', default: '', }, ]; diff --git a/packages/nodes-base/credentials/FreshserviceApi.credentials.ts b/packages/nodes-base/credentials/FreshserviceApi.credentials.ts index cc5f7160971c4..1a5fa9ef4c42f 100644 --- a/packages/nodes-base/credentials/FreshserviceApi.credentials.ts +++ b/packages/nodes-base/credentials/FreshserviceApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class FreshserviceApi implements ICredentialType { name = 'freshserviceApi'; @@ -21,7 +18,8 @@ export class FreshserviceApi implements ICredentialType { type: 'string', default: '', placeholder: 'n8n', - description: 'Domain in the Freshservice org URL. For example, in https://n8n.freshservice.com, the domain is n8n', + description: + 'Domain in the Freshservice org URL. For example, in https://n8n.freshservice.com, the domain is n8n', }, ]; } diff --git a/packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts b/packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts index f81f46e7dc5d5..19c435254aae4 100644 --- a/packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts +++ b/packages/nodes-base/credentials/FreshworksCrmApi.credentials.ts @@ -23,22 +23,23 @@ export class FreshworksCrmApi implements ICredentialType { type: 'string', default: '', placeholder: 'n8n-org', - description: 'Domain in the Freshworks CRM org URL. For example, in https://n8n-org.myfreshworks.com, the domain is n8n-org.', + description: + 'Domain in the Freshworks CRM org URL. For example, in https://n8n-org.myfreshworks.com, the domain is n8n-org.', }, ]; authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { - 'Authorization': '=Token token={{$credentials?.apiKey}}', + Authorization: '=Token token={{$credentials?.apiKey}}', }, }, }; test: ICredentialTestRequest = { request: { baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api', - url: '/tasks', + url: '/tasks', method: 'GET', - }, + }, }; } diff --git a/packages/nodes-base/credentials/Ftp.credentials.ts b/packages/nodes-base/credentials/Ftp.credentials.ts index 0a94ca98122d1..cd0dff7a9dbca 100644 --- a/packages/nodes-base/credentials/Ftp.credentials.ts +++ b/packages/nodes-base/credentials/Ftp.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Ftp implements ICredentialType { name = 'ftp'; diff --git a/packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts index 7a79680d08a54..e8b8f48ed71a0 100644 --- a/packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GSuiteAdminOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/admin.directory.group', @@ -12,9 +9,7 @@ const scopes = [ export class GSuiteAdminOAuth2Api implements ICredentialType { name = 'gSuiteAdminOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'G Suite Admin OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts index 98696ed33a5f5..a80aad370c986 100644 --- a/packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GetResponseOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GetResponseOAuth2Api implements ICredentialType { name = 'getResponseOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'GetResponse OAuth2 API'; properties: INodeProperties[] = [ { diff --git a/packages/nodes-base/credentials/GhostAdminApi.credentials.ts b/packages/nodes-base/credentials/GhostAdminApi.credentials.ts index 13c6ebb793f6f..01e3633b69979 100644 --- a/packages/nodes-base/credentials/GhostAdminApi.credentials.ts +++ b/packages/nodes-base/credentials/GhostAdminApi.credentials.ts @@ -27,7 +27,10 @@ export class GhostAdminApi implements ICredentialType { }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { const [id, secret] = (credentials.apiKey as string).split(':'); const token = jwt.sign({}, Buffer.from(secret, 'hex'), { keyid: id, diff --git a/packages/nodes-base/credentials/GhostContentApi.credentials.ts b/packages/nodes-base/credentials/GhostContentApi.credentials.ts index 9701880373293..142e03ece060a 100644 --- a/packages/nodes-base/credentials/GhostContentApi.credentials.ts +++ b/packages/nodes-base/credentials/GhostContentApi.credentials.ts @@ -25,10 +25,13 @@ export class GhostContentApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.qs = { ...requestOptions.qs, - 'key': credentials.apiKey, + key: credentials.apiKey, }; return requestOptions; } diff --git a/packages/nodes-base/credentials/GitPassword.credentials.ts b/packages/nodes-base/credentials/GitPassword.credentials.ts index 5a0b42cd6af33..b8739a35d5618 100644 --- a/packages/nodes-base/credentials/GitPassword.credentials.ts +++ b/packages/nodes-base/credentials/GitPassword.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GitPassword implements ICredentialType { name = 'gitPassword'; diff --git a/packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts index 40f2def13e7d6..db27c2e070ca9 100644 --- a/packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GithubOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GithubOAuth2Api implements ICredentialType { name = 'githubOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'GitHub OAuth2 API'; documentationUrl = 'github'; properties: INodeProperties[] = [ @@ -29,21 +23,24 @@ export class GithubOAuth2Api implements ICredentialType { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', - default: '={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/authorize', + default: + '={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/authorize', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', - default: '={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/access_token', + default: + '={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/access_token', required: true, }, { displayName: 'Scope', name: 'scope', type: 'hidden', - default: 'repo,admin:repo_hook,admin:org,admin:org_hook,gist,notifications,user,write:packages,read:packages,delete:packages,worfklow', + default: + 'repo,admin:repo_hook,admin:org,admin:org_hook,gist,notifications,user,write:packages,read:packages,delete:packages,worfklow', }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/GitlabApi.credentials.ts b/packages/nodes-base/credentials/GitlabApi.credentials.ts index ea0c6457dae89..0136b9c1ca243 100644 --- a/packages/nodes-base/credentials/GitlabApi.credentials.ts +++ b/packages/nodes-base/credentials/GitlabApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class GitlabApi implements ICredentialType { name = 'gitlabApi'; displayName = 'GitLab API'; diff --git a/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts index 6ed5a06868ca6..93a069a97835b 100644 --- a/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GitlabOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GitlabOAuth2Api implements ICredentialType { name = 'gitlabOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'GitLab OAuth2 API'; documentationUrl = 'gitlab'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts index cf3348c724fc2..2701c36a2df26 100644 --- a/packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/gmail.labels', @@ -12,12 +9,9 @@ const scopes = [ 'https://www.googleapis.com/auth/gmail.compose', ]; - export class GmailOAuth2Api implements ICredentialType { name = 'gmailOAuth2'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Gmail OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts index afc0264814160..a4280a56f1904 100644 --- a/packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoToWebinarOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GoToWebinarOAuth2Api implements ICredentialType { name = 'goToWebinarOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'GoToWebinar OAuth2 API'; documentationUrl = 'goToWebinar'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts index 377f31d2bbea0..a403c44c0710e 100644 --- a/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/adwords', -]; +const scopes = ['https://www.googleapis.com/auth/adwords']; export class GoogleAdsOAuth2Api implements ICredentialType { name = 'googleAdsOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Ads OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ @@ -28,5 +21,4 @@ export class GoogleAdsOAuth2Api implements ICredentialType { default: scopes.join(' '), }, ]; - } diff --git a/packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts index 4feffab762963..5dfa3810fe2ee 100644 --- a/packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleAnalyticsOAuth2Api.credentials.ts @@ -1,19 +1,13 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/analytics', 'https://www.googleapis.com/auth/analytics.readonly', ]; - export class GoogleAnalyticsOAuth2Api implements ICredentialType { name = 'googleAnalyticsOAuth2'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Analytics OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleApi.credentials.ts b/packages/nodes-base/credentials/GoogleApi.credentials.ts index 6df9459c8e344..d4ed36166c4e2 100644 --- a/packages/nodes-base/credentials/GoogleApi.credentials.ts +++ b/packages/nodes-base/credentials/GoogleApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GoogleApi implements ICredentialType { name = 'googleApi'; @@ -24,8 +20,10 @@ export class GoogleApi implements ICredentialType { name: 'privateKey', type: 'string', default: '', - placeholder: '-----BEGIN PRIVATE KEY-----\nXIYEvQIBADANBg<...>0IhA7TMoGYPQc=\n-----END PRIVATE KEY-----\n', - description: 'Enter the private key located in the JSON file downloaded from Google Cloud Console', + placeholder: + '-----BEGIN PRIVATE KEY-----\nXIYEvQIBADANBg<...>0IhA7TMoGYPQc=\n-----END PRIVATE KEY-----\n', + description: + 'Enter the private key located in the JSON file downloaded from Google Cloud Console', required: true, }, { @@ -41,12 +39,11 @@ export class GoogleApi implements ICredentialType { default: '', displayOptions: { show: { - inpersonate: [ - true, - ], + inpersonate: [true], }, }, - description: 'The email address of the user for which the application is requesting delegated access', + description: + 'The email address of the user for which the application is requesting delegated access', }, ]; } diff --git a/packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts index 802db3dae9a16..85fe913b70a20 100644 --- a/packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleBigQueryOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/bigquery', -]; +const scopes = ['https://www.googleapis.com/auth/bigquery']; export class GoogleBigQueryOAuth2Api implements ICredentialType { name = 'googleBigQueryOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google BigQuery OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts index c0ec9cd28571f..aeec2d3c197f6 100644 --- a/packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleBooksOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/books', -]; +const scopes = ['https://www.googleapis.com/auth/books']; export class GoogleBooksOAuth2Api implements ICredentialType { name = 'googleBooksOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Books OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts index 9fc53e2b04bc0..e820e3dafbdab 100644 --- a/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/calendar', @@ -10,9 +7,7 @@ const scopes = [ export class GoogleCalendarOAuth2Api implements ICredentialType { name = 'googleCalendarOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Calendar OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts index b2b234aa1ddd2..592d0045fcb7d 100644 --- a/packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleCloudNaturalLanguageOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/cloud-language', @@ -10,9 +7,7 @@ const scopes = [ export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType { name = 'googleCloudNaturalLanguageOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Cloud Natural Language OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts index 8bf763c2db3e5..ec3a76c76f051 100644 --- a/packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleContactsOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/contacts', -]; +const scopes = ['https://www.googleapis.com/auth/contacts']; export class GoogleContactsOAuth2Api implements ICredentialType { name = 'googleContactsOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Contacts OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts index dde7233ce55fa..44a50b3eaa18e 100644 --- a/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/documents', @@ -11,9 +8,7 @@ const scopes = [ export class GoogleDocsOAuth2Api implements ICredentialType { name = 'googleDocsOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Docs OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts index 870d2364a8a28..7889704fb56d5 100644 --- a/packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleDriveOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/drive', @@ -11,9 +8,7 @@ const scopes = [ export class GoogleDriveOAuth2Api implements ICredentialType { name = 'googleDriveOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Drive OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts index 8493b184c6dfa..90b3b5b68b284 100644 --- a/packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleFirebaseCloudFirestoreOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/datastore', @@ -10,9 +7,7 @@ const scopes = [ export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType { name = 'googleFirebaseCloudFirestoreOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Firebase Cloud Firestore OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts index 52413c0b7ecd2..ab4b2c4cda576 100644 --- a/packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleFirebaseRealtimeDatabaseOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/userinfo.email', @@ -11,9 +8,7 @@ const scopes = [ export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType { name = 'googleFirebaseRealtimeDatabaseOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Firebase Realtime Database OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts index 82027c928288d..cd9ea04b8f910 100644 --- a/packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GoogleOAuth2Api implements ICredentialType { name = 'googleOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Google OAuth2 API'; documentationUrl = 'google'; icon = 'file:Google.svg'; diff --git a/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts index 9f344528a1be7..98e4a35083d83 100644 --- a/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/userinfo.email', -]; +const scopes = ['https://www.googleapis.com/auth/userinfo.email']; export class GooglePerspectiveOAuth2Api implements ICredentialType { name = 'googlePerspectiveOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Perspective OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts index a44f89485ab32..eb42f000a382d 100644 --- a/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/drive.file', @@ -10,9 +7,7 @@ const scopes = [ export class GoogleSheetsOAuth2Api implements ICredentialType { name = 'googleSheetsOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Sheets OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts index 2a50b8a242761..0885efa1d0c83 100644 --- a/packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleSlidesOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'https://www.googleapis.com/auth/drive.file', @@ -10,9 +7,7 @@ const scopes = [ export class GoogleSlidesOAuth2Api implements ICredentialType { name = 'googleSlidesOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Slides OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts index 789f08b02f62f..b9835a30e9132 100644 --- a/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts @@ -1,11 +1,6 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/tasks', -]; +const scopes = ['https://www.googleapis.com/auth/tasks']; export class GoogleTasksOAuth2Api implements ICredentialType { name = 'googleTasksOAuth2Api'; diff --git a/packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts index ab25c51e5001a..ba7dddcb99c98 100644 --- a/packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleTranslateOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'https://www.googleapis.com/auth/cloud-translation', -]; +const scopes = ['https://www.googleapis.com/auth/cloud-translation']; export class GoogleTranslateOAuth2Api implements ICredentialType { name = 'googleTranslateOAuth2Api'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'Google Translate OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/GotifyApi.credentials.ts b/packages/nodes-base/credentials/GotifyApi.credentials.ts index b2feca18da8a9..53b500ccce691 100644 --- a/packages/nodes-base/credentials/GotifyApi.credentials.ts +++ b/packages/nodes-base/credentials/GotifyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GotifyApi implements ICredentialType { name = 'gotifyApi'; diff --git a/packages/nodes-base/credentials/GristApi.credentials.ts b/packages/nodes-base/credentials/GristApi.credentials.ts index e7e4645035d17..9ba04c15598ef 100644 --- a/packages/nodes-base/credentials/GristApi.credentials.ts +++ b/packages/nodes-base/credentials/GristApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GristApi implements ICredentialType { name = 'gristApi'; @@ -44,9 +41,7 @@ export class GristApi implements ICredentialType { description: 'Custom subdomain of your team', displayOptions: { show: { - planType: [ - 'paid', - ], + planType: ['paid'], }, }, }, @@ -57,12 +52,11 @@ export class GristApi implements ICredentialType { default: '', placeholder: 'http://localhost:8484', required: true, - description: 'URL of your Grist instance. Include http/https without /api and no trailing slash.', + description: + 'URL of your Grist instance. Include http/https without /api and no trailing slash.', displayOptions: { show: { - planType: [ - 'selfHosted', - ], + planType: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/GumroadApi.credentials.ts b/packages/nodes-base/credentials/GumroadApi.credentials.ts index 9d757b55c8b7a..60d471e7e44f0 100644 --- a/packages/nodes-base/credentials/GumroadApi.credentials.ts +++ b/packages/nodes-base/credentials/GumroadApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class GumroadApi implements ICredentialType { name = 'gumroadApi'; diff --git a/packages/nodes-base/credentials/HaloPSAApi.credentials.ts b/packages/nodes-base/credentials/HaloPSAApi.credentials.ts index e65623c2e3f20..65b4d14584622 100644 --- a/packages/nodes-base/credentials/HaloPSAApi.credentials.ts +++ b/packages/nodes-base/credentials/HaloPSAApi.credentials.ts @@ -1,13 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HaloPSAApi implements ICredentialType { name = 'haloPSAApi'; displayName = 'HaloPSA API'; documentationUrl = 'halopsa'; - properties: INodeProperties[] = [ + properties: INodeProperties[] = [ { displayName: 'Hosting Type', name: 'hostingType', @@ -61,9 +58,7 @@ export class HaloPSAApi implements ICredentialType { type: 'string', displayOptions: { show: { - hostingType: [ - 'hostedHalo', - ], + hostingType: ['hostedHalo'], }, }, default: '', diff --git a/packages/nodes-base/credentials/HarvestApi.credentials.ts b/packages/nodes-base/credentials/HarvestApi.credentials.ts index d291191ec5d9a..afcbb8376c7d6 100644 --- a/packages/nodes-base/credentials/HarvestApi.credentials.ts +++ b/packages/nodes-base/credentials/HarvestApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HarvestApi implements ICredentialType { name = 'harvestApi'; @@ -13,7 +10,8 @@ export class HarvestApi implements ICredentialType { name: 'accessToken', type: 'string', 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/HarvestOAuth2Api.credentials.ts b/packages/nodes-base/credentials/HarvestOAuth2Api.credentials.ts index 6d71477ba2544..cc71987f8c354 100644 --- a/packages/nodes-base/credentials/HarvestOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/HarvestOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HarvestOAuth2Api implements ICredentialType { name = 'harvestOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Harvest OAuth2 API'; properties: INodeProperties[] = [ { diff --git a/packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts b/packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts index 85aa345c194a5..2073d3b8df079 100644 --- a/packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/HelpScoutOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HelpScoutOAuth2Api implements ICredentialType { name = 'helpScoutOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'HelpScout OAuth2 API'; documentationUrl = 'helpScout'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts b/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts index 7e6825fbcd6d1..e09ea45856cf3 100644 --- a/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts +++ b/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HomeAssistantApi implements ICredentialType { name = 'homeAssistantApi'; diff --git a/packages/nodes-base/credentials/HttpBasicAuth.credentials.ts b/packages/nodes-base/credentials/HttpBasicAuth.credentials.ts index 95800f55765c9..2e3355bbd2a0d 100644 --- a/packages/nodes-base/credentials/HttpBasicAuth.credentials.ts +++ b/packages/nodes-base/credentials/HttpBasicAuth.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HttpBasicAuth implements ICredentialType { name = 'httpBasicAuth'; @@ -16,7 +12,6 @@ export class HttpBasicAuth implements ICredentialType { name: 'user', type: 'string', default: '', - }, { displayName: 'Password', diff --git a/packages/nodes-base/credentials/HttpDigestAuth.credentials.ts b/packages/nodes-base/credentials/HttpDigestAuth.credentials.ts index 2133202032be1..cd2b2b253570b 100644 --- a/packages/nodes-base/credentials/HttpDigestAuth.credentials.ts +++ b/packages/nodes-base/credentials/HttpDigestAuth.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HttpDigestAuth implements ICredentialType { name = 'httpDigestAuth'; @@ -16,7 +12,6 @@ export class HttpDigestAuth implements ICredentialType { name: 'user', type: 'string', default: '', - }, { displayName: 'Password', diff --git a/packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts b/packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts index a3341010f87ca..cad5a36c2c0da 100644 --- a/packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts +++ b/packages/nodes-base/credentials/HttpHeaderAuth.credentials.ts @@ -1,9 +1,4 @@ -import { - IAuthenticateGeneric, - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow'; export class HttpHeaderAuth implements ICredentialType { name = 'httpHeaderAuth'; @@ -17,7 +12,6 @@ export class HttpHeaderAuth implements ICredentialType { name: 'name', type: 'string', default: '', - }, { displayName: 'Value', diff --git a/packages/nodes-base/credentials/HttpQueryAuth.credentials.ts b/packages/nodes-base/credentials/HttpQueryAuth.credentials.ts index 9679c4abfba8d..1d085a4af8b45 100644 --- a/packages/nodes-base/credentials/HttpQueryAuth.credentials.ts +++ b/packages/nodes-base/credentials/HttpQueryAuth.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HttpQueryAuth implements ICredentialType { name = 'httpQueryAuth'; @@ -16,7 +12,6 @@ export class HttpQueryAuth implements ICredentialType { name: 'name', type: 'string', default: '', - }, { displayName: 'Value', diff --git a/packages/nodes-base/credentials/HubspotApi.credentials.ts b/packages/nodes-base/credentials/HubspotApi.credentials.ts index 8b0d768ee17f5..76fbb504525ee 100644 --- a/packages/nodes-base/credentials/HubspotApi.credentials.ts +++ b/packages/nodes-base/credentials/HubspotApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HubspotApi implements ICredentialType { name = 'hubspotApi'; diff --git a/packages/nodes-base/credentials/HubspotAppToken.credentials.ts b/packages/nodes-base/credentials/HubspotAppToken.credentials.ts index 278ad8edd71eb..ee6681705c304 100644 --- a/packages/nodes-base/credentials/HubspotAppToken.credentials.ts +++ b/packages/nodes-base/credentials/HubspotAppToken.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HubspotAppToken implements ICredentialType { name = 'hubspotAppToken'; diff --git a/packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts b/packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts index ae43d6456888e..1eb240251aeb9 100644 --- a/packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts +++ b/packages/nodes-base/credentials/HubspotDeveloperApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'crm.objects.contacts.read', @@ -19,9 +16,7 @@ export class HubspotDeveloperApi implements ICredentialType { // eslint-disable-next-line n8n-nodes-base/cred-class-field-display-name-missing-oauth2 displayName = 'HubSpot Developer API'; documentationUrl = 'hubspot'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; properties: INodeProperties[] = [ { displayName: 'Grant Type', diff --git a/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts b/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts index 0e3e21a06f4fc..2296bf68e9dd6 100644 --- a/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/HubspotOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'crm.schemas.deals.read', @@ -20,9 +17,7 @@ const scopes = [ export class HubspotOAuth2Api implements ICredentialType { name = 'hubspotOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'HubSpot OAuth2 API'; documentationUrl = 'hubspot'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/HumanticAiApi.credentials.ts b/packages/nodes-base/credentials/HumanticAiApi.credentials.ts index 7c84776fc1979..54f947c383724 100644 --- a/packages/nodes-base/credentials/HumanticAiApi.credentials.ts +++ b/packages/nodes-base/credentials/HumanticAiApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HumanticAiApi implements ICredentialType { name = 'humanticAiApi'; diff --git a/packages/nodes-base/credentials/HunterApi.credentials.ts b/packages/nodes-base/credentials/HunterApi.credentials.ts index 79e9d7ae340dd..cb7b7d86f08b0 100644 --- a/packages/nodes-base/credentials/HunterApi.credentials.ts +++ b/packages/nodes-base/credentials/HunterApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class HunterApi implements ICredentialType { name = 'hunterApi'; diff --git a/packages/nodes-base/credentials/Imap.credentials.ts b/packages/nodes-base/credentials/Imap.credentials.ts index 190c6f932a6ab..a36d46ef9311c 100644 --- a/packages/nodes-base/credentials/Imap.credentials.ts +++ b/packages/nodes-base/credentials/Imap.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Imap implements ICredentialType { name = 'imap'; @@ -14,7 +10,6 @@ export class Imap implements ICredentialType { name: 'user', type: 'string', default: '', - }, { displayName: 'Password', diff --git a/packages/nodes-base/credentials/IntercomApi.credentials.ts b/packages/nodes-base/credentials/IntercomApi.credentials.ts index fd49afcc704d2..3ac778f84917e 100644 --- a/packages/nodes-base/credentials/IntercomApi.credentials.ts +++ b/packages/nodes-base/credentials/IntercomApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class IntercomApi implements ICredentialType { name = 'intercomApi'; diff --git a/packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts b/packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts index 3746d44bcf7ef..9ad1fe0a533d8 100644 --- a/packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts +++ b/packages/nodes-base/credentials/InvoiceNinjaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class InvoiceNinjaApi implements ICredentialType { name = 'invoiceNinjaApi'; diff --git a/packages/nodes-base/credentials/IterableApi.credentials.ts b/packages/nodes-base/credentials/IterableApi.credentials.ts index c5ad179173261..1ad5237e1e5f6 100644 --- a/packages/nodes-base/credentials/IterableApi.credentials.ts +++ b/packages/nodes-base/credentials/IterableApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class IterableApi implements ICredentialType { name = 'iterableApi'; diff --git a/packages/nodes-base/credentials/JenkinsApi.credentials.ts b/packages/nodes-base/credentials/JenkinsApi.credentials.ts index cdaea3961afc3..448c13b37e85f 100644 --- a/packages/nodes-base/credentials/JenkinsApi.credentials.ts +++ b/packages/nodes-base/credentials/JenkinsApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class JenkinsApi implements ICredentialType { name = 'jenkinsApi'; diff --git a/packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts b/packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts index 2284cb8873de1..414dc9bfacc88 100644 --- a/packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts +++ b/packages/nodes-base/credentials/JiraSoftwareCloudApi.credentials.ts @@ -34,7 +34,7 @@ export class JiraSoftwareCloudApi implements ICredentialType { authenticate: IAuthenticateGeneric = { type: 'generic', properties: { - auth:{ + auth: { username: '={{$credentials.email}}', password: '={{$credentials.apiToken}}', }, diff --git a/packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts b/packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts index f9d90d5448872..5e09132165c0c 100644 --- a/packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts +++ b/packages/nodes-base/credentials/JiraSoftwareServerApi.credentials.ts @@ -37,7 +37,7 @@ export class JiraSoftwareServerApi implements ICredentialType { authenticate: IAuthenticateGeneric = { type: 'generic', properties: { - auth:{ + auth: { username: '={{$credentials.email}}', password: '={{$credentials.password}}', }, diff --git a/packages/nodes-base/credentials/JotFormApi.credentials.ts b/packages/nodes-base/credentials/JotFormApi.credentials.ts index 125a8e6e02f63..0a0635a0be9f2 100644 --- a/packages/nodes-base/credentials/JotFormApi.credentials.ts +++ b/packages/nodes-base/credentials/JotFormApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class JotFormApi implements ICredentialType { name = 'jotFormApi'; @@ -29,7 +26,8 @@ export class JotFormApi implements ICredentialType { }, ], default: 'api.jotform.com', - description: 'The API domain to use. Use "eu-api.jotform.com" if your account is in based in Europe.', + description: + 'The API domain to use. Use "eu-api.jotform.com" if your account is in based in Europe.', }, ]; } diff --git a/packages/nodes-base/credentials/Kafka.credentials.ts b/packages/nodes-base/credentials/Kafka.credentials.ts index a5a3892230c9f..8d1b817d216f3 100644 --- a/packages/nodes-base/credentials/Kafka.credentials.ts +++ b/packages/nodes-base/credentials/Kafka.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Kafka implements ICredentialType { name = 'kafka'; @@ -40,9 +37,7 @@ export class Kafka implements ICredentialType { type: 'string', displayOptions: { show: { - authentication: [ - true, - ], + authentication: [true], }, }, default: '', @@ -54,9 +49,7 @@ export class Kafka implements ICredentialType { type: 'string', displayOptions: { show: { - authentication: [ - true, - ], + authentication: [true], }, }, typeOptions: { @@ -71,9 +64,7 @@ export class Kafka implements ICredentialType { type: 'options', displayOptions: { show: { - authentication: [ - true, - ], + authentication: [true], }, }, options: [ diff --git a/packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts b/packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts index 3f62fc0f88e11..d6cf0856e1558 100644 --- a/packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/KeapOAuth2Api.credentials.ts @@ -1,17 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'full', -]; +const scopes = ['full']; export class KeapOAuth2Api implements ICredentialType { name = 'keapOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Keap OAuth2 API'; documentationUrl = 'keap'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/KitemakerApi.credentials.ts b/packages/nodes-base/credentials/KitemakerApi.credentials.ts index 4da67b41a846a..baebc90637a68 100644 --- a/packages/nodes-base/credentials/KitemakerApi.credentials.ts +++ b/packages/nodes-base/credentials/KitemakerApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class KitemakerApi implements ICredentialType { name = 'kitemakerApi'; diff --git a/packages/nodes-base/credentials/LemlistApi.credentials.ts b/packages/nodes-base/credentials/LemlistApi.credentials.ts index ed1272a379bc1..27affe28502d8 100644 --- a/packages/nodes-base/credentials/LemlistApi.credentials.ts +++ b/packages/nodes-base/credentials/LemlistApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class LemlistApi implements ICredentialType { name = 'lemlistApi'; diff --git a/packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts index 3d63f20f90548..4edd38e245cda 100644 --- a/packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/LineNotifyOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class LineNotifyOAuth2Api implements ICredentialType { name = 'lineNotifyOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Line Notify OAuth2 API'; documentationUrl = 'line'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/LinearApi.credentials.ts b/packages/nodes-base/credentials/LinearApi.credentials.ts index 649012ad5b384..ae6dde334b5a2 100644 --- a/packages/nodes-base/credentials/LinearApi.credentials.ts +++ b/packages/nodes-base/credentials/LinearApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class LinearApi implements ICredentialType { name = 'linearApi'; diff --git a/packages/nodes-base/credentials/LingvaNexApi.credentials.ts b/packages/nodes-base/credentials/LingvaNexApi.credentials.ts index b327cdcc4cd4f..bc6184fddece4 100644 --- a/packages/nodes-base/credentials/LingvaNexApi.credentials.ts +++ b/packages/nodes-base/credentials/LingvaNexApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class LingvaNexApi implements ICredentialType { name = 'lingvaNexApi'; diff --git a/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts b/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts index 012b5795ba869..6f291d2840ef5 100644 --- a/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class LinkedInOAuth2Api implements ICredentialType { name = 'linkedInOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'LinkedIn OAuth2 API'; documentationUrl = 'linkedIn'; properties: INodeProperties[] = [ @@ -43,8 +37,10 @@ export class LinkedInOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden', - default: '=r_liteprofile,r_emailaddress,w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":""}}', - description: 'Standard scopes for posting on behalf of a user or organization. See this resource .', + default: + '=r_liteprofile,r_emailaddress,w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":""}}', + 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/MailcheckApi.credentials.ts b/packages/nodes-base/credentials/MailcheckApi.credentials.ts index eb8d81a90998f..6d74872f444cc 100644 --- a/packages/nodes-base/credentials/MailcheckApi.credentials.ts +++ b/packages/nodes-base/credentials/MailcheckApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MailcheckApi implements ICredentialType { name = 'mailcheckApi'; diff --git a/packages/nodes-base/credentials/MailchimpApi.credentials.ts b/packages/nodes-base/credentials/MailchimpApi.credentials.ts index ad991b8321fb9..fb8eb78f09d78 100644 --- a/packages/nodes-base/credentials/MailchimpApi.credentials.ts +++ b/packages/nodes-base/credentials/MailchimpApi.credentials.ts @@ -19,9 +19,9 @@ export class MailchimpApi implements ICredentialType { }, ]; authenticate: IAuthenticateGeneric = { - type:'generic', - properties:{ - headers:{ + type: 'generic', + properties: { + headers: { Authorization: '=apikey {{$credentials.apiKey}}', }, }, diff --git a/packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts index 392fadbecc5c3..3b321c3c4fb3a 100644 --- a/packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MailchimpOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MailchimpOAuth2Api implements ICredentialType { name = 'mailchimpOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Mailchimp OAuth2 API'; documentationUrl = 'mailchimp'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MailerLiteApi.credentials.ts b/packages/nodes-base/credentials/MailerLiteApi.credentials.ts index 00ea2cab0a4ef..d9231b3f8efbf 100644 --- a/packages/nodes-base/credentials/MailerLiteApi.credentials.ts +++ b/packages/nodes-base/credentials/MailerLiteApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MailerLiteApi implements ICredentialType { name = 'mailerLiteApi'; diff --git a/packages/nodes-base/credentials/MailgunApi.credentials.ts b/packages/nodes-base/credentials/MailgunApi.credentials.ts index e9fbb633dd28f..3d5b73c15c79b 100644 --- a/packages/nodes-base/credentials/MailgunApi.credentials.ts +++ b/packages/nodes-base/credentials/MailgunApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MailgunApi implements ICredentialType { name = 'mailgunApi'; diff --git a/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts b/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts index 6f81a45460c16..11b446e0eeab7 100644 --- a/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts +++ b/packages/nodes-base/credentials/MailjetEmailApi.credentials.ts @@ -27,21 +27,22 @@ export class MailjetEmailApi implements ICredentialType { name: 'sandboxMode', type: 'boolean', default: false, - description: 'Whether to allow to run the API call in a Sandbox mode, where all validations of the payload will be done without delivering the message', + description: + 'Whether to allow to run the API call in a Sandbox mode, where all validations of the payload will be done without delivering the message', }, ]; - authenticate: IAuthenticateGeneric = { - type: 'generic', - properties: { - auth: { - username: '={{$credentials.apiKey}}', - password: '={{$credentials.secretKey}}', + authenticate: IAuthenticateGeneric = { + type: 'generic', + properties: { + auth: { + username: '={{$credentials.apiKey}}', + password: '={{$credentials.secretKey}}', + }, }, - }, -}; + }; - test: ICredentialTestRequest = { + test: ICredentialTestRequest = { request: { baseURL: `https://api.mailjet.com`, url: '/v3/REST/template', diff --git a/packages/nodes-base/credentials/MandrillApi.credentials.ts b/packages/nodes-base/credentials/MandrillApi.credentials.ts index f6cf68b794d95..c133dfd33138c 100644 --- a/packages/nodes-base/credentials/MandrillApi.credentials.ts +++ b/packages/nodes-base/credentials/MandrillApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MandrillApi implements ICredentialType { name = 'mandrillApi'; diff --git a/packages/nodes-base/credentials/MarketstackApi.credentials.ts b/packages/nodes-base/credentials/MarketstackApi.credentials.ts index eacf49ac010f3..76fc2030cd085 100644 --- a/packages/nodes-base/credentials/MarketstackApi.credentials.ts +++ b/packages/nodes-base/credentials/MarketstackApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MarketstackApi implements ICredentialType { name = 'marketstackApi'; diff --git a/packages/nodes-base/credentials/MatrixApi.credentials.ts b/packages/nodes-base/credentials/MatrixApi.credentials.ts index 918c54511ec3b..32b08ae86da55 100644 --- a/packages/nodes-base/credentials/MatrixApi.credentials.ts +++ b/packages/nodes-base/credentials/MatrixApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MatrixApi implements ICredentialType { name = 'matrixApi'; diff --git a/packages/nodes-base/credentials/MattermostApi.credentials.ts b/packages/nodes-base/credentials/MattermostApi.credentials.ts index b690d36490dd1..aa9039cc92926 100644 --- a/packages/nodes-base/credentials/MattermostApi.credentials.ts +++ b/packages/nodes-base/credentials/MattermostApi.credentials.ts @@ -7,7 +7,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class MattermostApi implements ICredentialType { name = 'mattermostApi'; displayName = 'Mattermost API'; diff --git a/packages/nodes-base/credentials/MauticApi.credentials.ts b/packages/nodes-base/credentials/MauticApi.credentials.ts index ecfeb78591e67..096c7e544a6d0 100644 --- a/packages/nodes-base/credentials/MauticApi.credentials.ts +++ b/packages/nodes-base/credentials/MauticApi.credentials.ts @@ -1,9 +1,9 @@ import { ICredentialDataDecryptedObject, - ICredentialTestRequest, - ICredentialType, - IHttpRequestOptions, - INodeProperties, + ICredentialTestRequest, + ICredentialType, + IHttpRequestOptions, + INodeProperties, } from 'n8n-workflow'; export class MauticApi implements ICredentialType { @@ -34,15 +34,14 @@ export class MauticApi implements ICredentialType { default: '', }, ]; - async authenticate (credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { - const { - url, - username, - password, - } = credentials as { - url: string, - username: string, - password: string, + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { + const { url, username, password } = credentials as { + url: string; + username: string; + password: string; }; const credentialUrl = url.endsWith('/') ? `${url}api/users/self` : `${url}/api/users/self`; const base64Key = Buffer.from(`${username}:${password}`).toString('base64'); diff --git a/packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts index 58e4898c36c7e..afa26e84a7a49 100644 --- a/packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MauticOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MauticOAuth2Api implements ICredentialType { name = 'mauticOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Mautic OAuth2 API'; documentationUrl = 'mautic'; properties: INodeProperties[] = [ @@ -28,14 +23,16 @@ export class MauticOAuth2Api implements ICredentialType { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', - default: '={{$self["url"].endsWith("/") ? $self["url"].slice(0, -1) : $self["url"]}}/oauth/v2/authorize', + default: + '={{$self["url"].endsWith("/") ? $self["url"].slice(0, -1) : $self["url"]}}/oauth/v2/authorize', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', - default: '={{$self["url"].endsWith("/") ? $self["url"].slice(0, -1) : $self["url"]}}/oauth/v2/token', + default: + '={{$self["url"].endsWith("/") ? $self["url"].slice(0, -1) : $self["url"]}}/oauth/v2/token', required: true, }, { diff --git a/packages/nodes-base/credentials/MediumApi.credentials.ts b/packages/nodes-base/credentials/MediumApi.credentials.ts index 75e4919bafd8f..88f273fe28b3b 100644 --- a/packages/nodes-base/credentials/MediumApi.credentials.ts +++ b/packages/nodes-base/credentials/MediumApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MediumApi implements ICredentialType { name = 'mediumApi'; diff --git a/packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts index 1f9ae1199fdfd..fdbc20083460f 100644 --- a/packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MediumOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MediumOAuth2Api implements ICredentialType { name = 'mediumOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Medium OAuth2 API'; documentationUrl = 'medium'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts index 417ec09a5c51e..63446a3ed692a 100644 --- a/packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftDynamicsOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftDynamicsOAuth2Api implements ICredentialType { name = 'microsoftDynamicsOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft Dynamics OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts index d9ad4365fa2c6..8a43e30b15e01 100644 --- a/packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftExcelOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftExcelOAuth2Api implements ICredentialType { name = 'microsoftExcelOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft Excel OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts index e356cf40446a1..a5022b6c0617d 100644 --- a/packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftGraphSecurityOAuth2Api.credentials.ts @@ -1,14 +1,9 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftGraphSecurityOAuth2Api implements ICredentialType { name = 'microsoftGraphSecurityOAuth2Api'; displayName = 'Microsoft Graph Security OAuth2 API'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ { diff --git a/packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts index d491e4b5fed4c..d02eab5a112c9 100644 --- a/packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftOAuth2Api implements ICredentialType { name = 'microsoftOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; icon = 'file:Microsoft.svg'; displayName = 'Microsoft OAuth2 API'; documentationUrl = 'microsoft'; diff --git a/packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts index ad3b35efe63ef..94ec35eb1eeb5 100644 --- a/packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftOneDriveOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftOneDriveOAuth2Api implements ICredentialType { name = 'microsoftOneDriveOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft Drive OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts index 074c0ff2ec0eb..9627b3294c586 100644 --- a/packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftOutlookOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftOutlookOAuth2Api implements ICredentialType { name = 'microsoftOutlookOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft Outlook OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ @@ -16,7 +11,8 @@ export class MicrosoftOutlookOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden', - default: 'openid offline_access Mail.ReadWrite Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared MailboxSettings.Read', + default: + 'openid offline_access Mail.ReadWrite Mail.ReadWrite.Shared Mail.Send Mail.Send.Shared MailboxSettings.Read', }, { displayName: 'Use Shared Mailbox', @@ -27,14 +23,12 @@ export class MicrosoftOutlookOAuth2Api implements ICredentialType { { displayName: 'User Principal Name', name: 'userPrincipalName', - description: 'Target user\'s UPN or ID', + description: "Target user's UPN or ID", type: 'string', default: '', displayOptions: { show: { - useShared: [ - true, - ], + useShared: [true], }, }, }, diff --git a/packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts index dc852beea124c..97dc7cfb59c8f 100644 --- a/packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftTeamsOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftTeamsOAuth2Api implements ICredentialType { name = 'microsoftTeamsOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft Teams OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts index 70eb7c6bae400..aa8c12da80397 100644 --- a/packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftToDoOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MicrosoftToDoOAuth2Api implements ICredentialType { name = 'microsoftToDoOAuth2Api'; - extends = [ - 'microsoftOAuth2Api', - ]; + extends = ['microsoftOAuth2Api']; displayName = 'Microsoft To Do OAuth2 API'; documentationUrl = 'microsoft'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts b/packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts index ef69ff5b6ae35..c63e9289facf2 100644 --- a/packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts +++ b/packages/nodes-base/credentials/MindeeInvoiceApi.credentials.ts @@ -17,10 +17,13 @@ export class MindeeInvoiceApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { // @ts-ignore const url = requestOptions.url ? requestOptions.url : requestOptions.uri; - if(url.includes('https://api.mindee.net/v1/')) { + if (url.includes('https://api.mindee.net/v1/')) { requestOptions.headers!['Authorization'] = `Token ${credentials.apiKey}`; } else { requestOptions.headers!['X-Inferuser-Token'] = `${credentials.apiKey}`; diff --git a/packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts b/packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts index 753dbc557b6f4..3b4a9a9bd9946 100644 --- a/packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts +++ b/packages/nodes-base/credentials/MindeeReceiptApi.credentials.ts @@ -17,10 +17,13 @@ export class MindeeReceiptApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { // @ts-ignore const url = requestOptions.url ? requestOptions.url : requestOptions.uri; - if(url.includes('https://api.mindee.net/v1/')) { + if (url.includes('https://api.mindee.net/v1/')) { requestOptions.headers!['Authorization'] = `Token ${credentials.apiKey}`; } else { requestOptions.headers!['X-Inferuser-Token'] = `${credentials.apiKey}`; diff --git a/packages/nodes-base/credentials/MispApi.credentials.ts b/packages/nodes-base/credentials/MispApi.credentials.ts index 9d30fa1637a58..e31a24fd450a1 100644 --- a/packages/nodes-base/credentials/MispApi.credentials.ts +++ b/packages/nodes-base/credentials/MispApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MispApi implements ICredentialType { name = 'mispApi'; diff --git a/packages/nodes-base/credentials/MoceanApi.credentials.ts b/packages/nodes-base/credentials/MoceanApi.credentials.ts index 414425e85046e..5d432341ee578 100644 --- a/packages/nodes-base/credentials/MoceanApi.credentials.ts +++ b/packages/nodes-base/credentials/MoceanApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MoceanApi implements ICredentialType { name = 'moceanApi'; diff --git a/packages/nodes-base/credentials/MondayComApi.credentials.ts b/packages/nodes-base/credentials/MondayComApi.credentials.ts index bf0342b2d760b..c35464da18885 100644 --- a/packages/nodes-base/credentials/MondayComApi.credentials.ts +++ b/packages/nodes-base/credentials/MondayComApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MondayComApi implements ICredentialType { name = 'mondayComApi'; diff --git a/packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts b/packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts index b4ab8efde134a..4fd46c63fd6dd 100644 --- a/packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/MondayComOAuth2Api.credentials.ts @@ -1,18 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'boards:write', - 'boards:read', -]; +const scopes = ['boards:write', 'boards:read']; export class MondayComOAuth2Api implements ICredentialType { name = 'mondayComOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Monday.com OAuth2 API'; documentationUrl = 'monday'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/MongoDb.credentials.ts b/packages/nodes-base/credentials/MongoDb.credentials.ts index c31e1b6e1d882..22c0a69da5f04 100644 --- a/packages/nodes-base/credentials/MongoDb.credentials.ts +++ b/packages/nodes-base/credentials/MongoDb.credentials.ts @@ -29,14 +29,14 @@ export class MongoDb implements ICredentialType { type: 'string', displayOptions: { show: { - configurationType: [ - 'connectionString', - ], + configurationType: ['connectionString'], }, }, default: '', - placeholder: 'mongodb://:@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false', - description: 'If provided, the value here will be used as a MongoDB connection string, and the MongoDB credentials will be ignored', + placeholder: + 'mongodb://:@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false', + description: + 'If provided, the value here will be used as a MongoDB connection string, and the MongoDB credentials will be ignored', }, { displayName: 'Host', @@ -44,9 +44,7 @@ export class MongoDb implements ICredentialType { type: 'string', displayOptions: { show: { - configurationType: [ - 'values', - ], + configurationType: ['values'], }, }, default: 'localhost', @@ -56,7 +54,8 @@ export class MongoDb implements ICredentialType { name: 'database', type: 'string', 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', @@ -64,9 +63,7 @@ export class MongoDb implements ICredentialType { type: 'string', displayOptions: { show: { - configurationType: [ - 'values', - ], + configurationType: ['values'], }, }, default: '', @@ -80,9 +77,7 @@ export class MongoDb implements ICredentialType { }, displayOptions: { show: { - configurationType: [ - 'values', - ], + configurationType: ['values'], }, }, default: '', @@ -93,9 +88,7 @@ export class MongoDb implements ICredentialType { type: 'number', displayOptions: { show: { - configurationType: [ - 'values', - ], + configurationType: ['values'], }, }, default: 27017, diff --git a/packages/nodes-base/credentials/MonicaCrmApi.credentials.ts b/packages/nodes-base/credentials/MonicaCrmApi.credentials.ts index 112cab38ca972..b1e44c912336f 100644 --- a/packages/nodes-base/credentials/MonicaCrmApi.credentials.ts +++ b/packages/nodes-base/credentials/MonicaCrmApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MonicaCrmApi implements ICredentialType { name = 'monicaCrmApi'; @@ -32,9 +29,7 @@ export class MonicaCrmApi implements ICredentialType { placeholder: 'https://www.mydomain.com', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/Mqtt.credentials.ts b/packages/nodes-base/credentials/Mqtt.credentials.ts index 054d7ad78458e..4d2961959b3ec 100644 --- a/packages/nodes-base/credentials/Mqtt.credentials.ts +++ b/packages/nodes-base/credentials/Mqtt.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - IDisplayOptions, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, IDisplayOptions, INodeProperties } from 'n8n-workflow'; export class Mqtt implements ICredentialType { name = 'mqtt'; @@ -61,7 +57,8 @@ export class Mqtt implements ICredentialType { name: 'clean', type: 'boolean', default: true, - description: 'Whether to use clean session - set to false to receive QoS 1 and 2 messages while offline', + description: + 'Whether to use clean session - set to false to receive QoS 1 and 2 messages while offline', }, { displayName: 'Client ID', @@ -82,13 +79,12 @@ export class Mqtt implements ICredentialType { type: 'boolean', displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, default: true, - description: 'Whether to use passwordless connection with certificates (SASL mechanism EXTERNAL)', + description: + 'Whether to use passwordless connection with certificates (SASL mechanism EXTERNAL)', }, { displayName: 'CA Certificates', @@ -99,9 +95,7 @@ export class Mqtt implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, default: '', @@ -113,12 +107,8 @@ export class Mqtt implements ICredentialType { type: 'boolean', displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, } as IDisplayOptions, default: false, @@ -133,12 +123,8 @@ export class Mqtt implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, } as IDisplayOptions, default: '', @@ -153,12 +139,8 @@ export class Mqtt implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, }, default: '', diff --git a/packages/nodes-base/credentials/Msg91Api.credentials.ts b/packages/nodes-base/credentials/Msg91Api.credentials.ts index bc1ce1fc48b3a..08c6636179ded 100644 --- a/packages/nodes-base/credentials/Msg91Api.credentials.ts +++ b/packages/nodes-base/credentials/Msg91Api.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Msg91Api implements ICredentialType { name = 'msg91Api'; diff --git a/packages/nodes-base/credentials/MySql.credentials.ts b/packages/nodes-base/credentials/MySql.credentials.ts index 1f91f0d91a889..81ba4beaaf764 100644 --- a/packages/nodes-base/credentials/MySql.credentials.ts +++ b/packages/nodes-base/credentials/MySql.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class MySql implements ICredentialType { name = 'mySql'; @@ -47,7 +43,8 @@ export class MySql implements ICredentialType { name: 'connectTimeout', type: 'number', default: 10000, - description: 'The milliseconds before a timeout occurs during the initial connection to the MySQL server', + description: + 'The milliseconds before a timeout occurs during the initial connection to the MySQL server', }, { displayName: 'SSL', @@ -64,9 +61,7 @@ export class MySql implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, type: 'string', @@ -81,9 +76,7 @@ export class MySql implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, type: 'string', @@ -98,9 +91,7 @@ export class MySql implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, type: 'string', diff --git a/packages/nodes-base/credentials/NasaApi.credentials.ts b/packages/nodes-base/credentials/NasaApi.credentials.ts index f8663bfa45cd2..e8d327df2a6f8 100644 --- a/packages/nodes-base/credentials/NasaApi.credentials.ts +++ b/packages/nodes-base/credentials/NasaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class NasaApi implements ICredentialType { name = 'nasaApi'; diff --git a/packages/nodes-base/credentials/NetlifyApi.credentials.ts b/packages/nodes-base/credentials/NetlifyApi.credentials.ts index 939a2cd307c7e..0d7a3cfcc26b0 100644 --- a/packages/nodes-base/credentials/NetlifyApi.credentials.ts +++ b/packages/nodes-base/credentials/NetlifyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - NodePropertyTypes, -} from 'n8n-workflow'; +import { ICredentialType, NodePropertyTypes } from 'n8n-workflow'; export class NetlifyApi implements ICredentialType { name = 'netlifyApi'; @@ -15,4 +12,4 @@ export class NetlifyApi implements ICredentialType { default: '', }, ]; -} \ No newline at end of file +} diff --git a/packages/nodes-base/credentials/NextCloudApi.credentials.ts b/packages/nodes-base/credentials/NextCloudApi.credentials.ts index 6bf5ddcf66d1c..81d8368b69978 100644 --- a/packages/nodes-base/credentials/NextCloudApi.credentials.ts +++ b/packages/nodes-base/credentials/NextCloudApi.credentials.ts @@ -31,7 +31,10 @@ export class NextCloudApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.auth = { username: credentials.user as string, password: credentials.password as string, @@ -40,9 +43,9 @@ export class NextCloudApi implements ICredentialType { } test: ICredentialTestRequest = { request: { - baseURL: '={{$credentials.webDavUrl.replace(\'/remote.php/webdav\', \'\')}}', + baseURL: "={{$credentials.webDavUrl.replace('/remote.php/webdav', '')}}", url: '/ocs/v1.php/cloud/capabilities', - headers: {'OCS-APIRequest': true}, + headers: { 'OCS-APIRequest': true }, }, }; } diff --git a/packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts b/packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts index e3acd84de0677..f9868d89b0fec 100644 --- a/packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/NextCloudOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class NextCloudOAuth2Api implements ICredentialType { name = 'nextCloudOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'NextCloud OAuth2 API'; documentationUrl = 'nextCloud'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/NocoDb.credentials.ts b/packages/nodes-base/credentials/NocoDb.credentials.ts index 90ae27fdb6f9a..4977393a705f1 100644 --- a/packages/nodes-base/credentials/NocoDb.credentials.ts +++ b/packages/nodes-base/credentials/NocoDb.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class NocoDb implements ICredentialType { name = 'nocoDb'; displayName = 'NocoDB'; @@ -26,9 +25,9 @@ export class NocoDb implements ICredentialType { }, ]; authenticate: IAuthenticateGeneric = { - type:'generic', + type: 'generic', properties: { - headers:{ + headers: { 'xc-auth': '={{$credentials.apiToken}}', }, }, diff --git a/packages/nodes-base/credentials/NotionApi.credentials.ts b/packages/nodes-base/credentials/NotionApi.credentials.ts index 8bac36228a0b0..20ceb38d31583 100644 --- a/packages/nodes-base/credentials/NotionApi.credentials.ts +++ b/packages/nodes-base/credentials/NotionApi.credentials.ts @@ -27,7 +27,7 @@ export class NotionApi implements ICredentialType { type: 'generic', properties: { headers: { - 'Authorization': '=Bearer {{$credentials.apiKey}}', + Authorization: '=Bearer {{$credentials.apiKey}}', 'Notion-Version': '2021-05-13', }, }, diff --git a/packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts b/packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts index 845f7bc4e3a54..7f1e61af1eedf 100644 --- a/packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/NotionOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class NotionOAuth2Api implements ICredentialType { name = 'notionOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Notion OAuth2 API'; documentationUrl = 'notion'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/OAuth1Api.credentials.ts b/packages/nodes-base/credentials/OAuth1Api.credentials.ts index ca6ce4974ac52..132ea60e961c4 100644 --- a/packages/nodes-base/credentials/OAuth1Api.credentials.ts +++ b/packages/nodes-base/credentials/OAuth1Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OAuth1Api implements ICredentialType { name = 'oAuth1Api'; diff --git a/packages/nodes-base/credentials/OAuth2Api.credentials.ts b/packages/nodes-base/credentials/OAuth2Api.credentials.ts index 2bb90f4359b2e..8a7ca45e978c3 100644 --- a/packages/nodes-base/credentials/OAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/OAuth2Api.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OAuth2Api implements ICredentialType { name = 'oAuth2Api'; @@ -32,9 +28,7 @@ export class OAuth2Api implements ICredentialType { type: 'string', displayOptions: { show: { - grantType: [ - 'authorizationCode', - ], + grantType: ['authorizationCode'], }, }, default: '', @@ -76,13 +70,12 @@ export class OAuth2Api implements ICredentialType { type: 'string', displayOptions: { show: { - grantType: [ - 'authorizationCode', - ], + grantType: ['authorizationCode'], }, }, default: '', - description: 'For some services additional query parameters have to be set which can be defined here', + description: + 'For some services additional query parameters have to be set which can be defined here', placeholder: 'access_type=offline', }, { @@ -91,9 +84,7 @@ export class OAuth2Api implements ICredentialType { type: 'options', displayOptions: { show: { - grantType: [ - 'authorizationCode', - ], + grantType: ['authorizationCode'], }, }, options: [ diff --git a/packages/nodes-base/credentials/OneSimpleApi.credentials.ts b/packages/nodes-base/credentials/OneSimpleApi.credentials.ts index 63ec3d13a940c..45a1259690e70 100644 --- a/packages/nodes-base/credentials/OneSimpleApi.credentials.ts +++ b/packages/nodes-base/credentials/OneSimpleApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OneSimpleApi implements ICredentialType { name = 'oneSimpleApi'; diff --git a/packages/nodes-base/credentials/OnfleetApi.credentials.ts b/packages/nodes-base/credentials/OnfleetApi.credentials.ts index 69e5ae3b72b00..f9f34d0ba3fe8 100644 --- a/packages/nodes-base/credentials/OnfleetApi.credentials.ts +++ b/packages/nodes-base/credentials/OnfleetApi.credentials.ts @@ -1,18 +1,15 @@ -import { - ICredentialType, - NodePropertyTypes, -} from 'n8n-workflow'; +import { ICredentialType, NodePropertyTypes } from 'n8n-workflow'; export class OnfleetApi implements ICredentialType { name = 'onfleetApi'; displayName = 'Onfleet API'; documentationUrl = 'onfleet'; properties = [ - { - displayName: 'API Key', - name: 'apiKey', - type: 'string' as NodePropertyTypes, - default: '', - }, + { + displayName: 'API Key', + name: 'apiKey', + type: 'string' as NodePropertyTypes, + default: '', + }, ]; } diff --git a/packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts b/packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts index 0b62f5ddfa168..57d8d922f85a9 100644 --- a/packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts +++ b/packages/nodes-base/credentials/OpenWeatherMapApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OpenWeatherMapApi implements ICredentialType { name = 'openWeatherMapApi'; diff --git a/packages/nodes-base/credentials/OrbitApi.credentials.ts b/packages/nodes-base/credentials/OrbitApi.credentials.ts index eecd6e7bb2f07..3b67851765033 100644 --- a/packages/nodes-base/credentials/OrbitApi.credentials.ts +++ b/packages/nodes-base/credentials/OrbitApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OrbitApi implements ICredentialType { name = 'orbitApi'; diff --git a/packages/nodes-base/credentials/OuraApi.credentials.ts b/packages/nodes-base/credentials/OuraApi.credentials.ts index dec306ddedf3d..22d1e2b6a04ac 100644 --- a/packages/nodes-base/credentials/OuraApi.credentials.ts +++ b/packages/nodes-base/credentials/OuraApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class OuraApi implements ICredentialType { name = 'ouraApi'; diff --git a/packages/nodes-base/credentials/PaddleApi.credentials.ts b/packages/nodes-base/credentials/PaddleApi.credentials.ts index 9b60d34e8640d..e82edbf9e2ca4 100644 --- a/packages/nodes-base/credentials/PaddleApi.credentials.ts +++ b/packages/nodes-base/credentials/PaddleApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PaddleApi implements ICredentialType { name = 'paddleApi'; diff --git a/packages/nodes-base/credentials/PagerDutyApi.credentials.ts b/packages/nodes-base/credentials/PagerDutyApi.credentials.ts index 4cf161053e164..9670ba8389c79 100644 --- a/packages/nodes-base/credentials/PagerDutyApi.credentials.ts +++ b/packages/nodes-base/credentials/PagerDutyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PagerDutyApi implements ICredentialType { name = 'pagerDutyApi'; diff --git a/packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts index c1af87cd64061..7b18cdd60ff26 100644 --- a/packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/PagerDutyOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PagerDutyOAuth2Api implements ICredentialType { name = 'pagerDutyOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'PagerDuty OAuth2 API'; documentationUrl = 'pagerDuty'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/PayPalApi.credentials.ts b/packages/nodes-base/credentials/PayPalApi.credentials.ts index 9b2514efffe28..f640598ec203b 100644 --- a/packages/nodes-base/credentials/PayPalApi.credentials.ts +++ b/packages/nodes-base/credentials/PayPalApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PayPalApi implements ICredentialType { name = 'payPalApi'; diff --git a/packages/nodes-base/credentials/PeekalinkApi.credentials.ts b/packages/nodes-base/credentials/PeekalinkApi.credentials.ts index 512526f09ba8e..181a61a58b264 100644 --- a/packages/nodes-base/credentials/PeekalinkApi.credentials.ts +++ b/packages/nodes-base/credentials/PeekalinkApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PeekalinkApi implements ICredentialType { name = 'peekalinkApi'; diff --git a/packages/nodes-base/credentials/PhantombusterApi.credentials.ts b/packages/nodes-base/credentials/PhantombusterApi.credentials.ts index 228b1c670eb2f..7a1ee63e7c6b1 100644 --- a/packages/nodes-base/credentials/PhantombusterApi.credentials.ts +++ b/packages/nodes-base/credentials/PhantombusterApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PhantombusterApi implements ICredentialType { name = 'phantombusterApi'; diff --git a/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts b/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts index 1222627d6168a..99186290cf750 100644 --- a/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PhilipsHueOAuth2Api implements ICredentialType { name = 'philipsHueOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'PhilipHue OAuth2 API'; documentationUrl = 'philipsHue'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/PipedriveApi.credentials.ts b/packages/nodes-base/credentials/PipedriveApi.credentials.ts index 5f07eb1f79a25..1f23b52072525 100644 --- a/packages/nodes-base/credentials/PipedriveApi.credentials.ts +++ b/packages/nodes-base/credentials/PipedriveApi.credentials.ts @@ -1,9 +1,4 @@ -import { - IAuthenticateGeneric, - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow'; export class PipedriveApi implements ICredentialType { name = 'pipedriveApi'; diff --git a/packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts b/packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts index f82fb5af32dce..bbea6ef250a34 100644 --- a/packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/PipedriveOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PipedriveOAuth2Api implements ICredentialType { name = 'pipedriveOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Pipedrive OAuth2 API'; documentationUrl = 'pipedrive'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/PlivoApi.credentials.ts b/packages/nodes-base/credentials/PlivoApi.credentials.ts index 4a648d82df65a..8f1a8116d206b 100644 --- a/packages/nodes-base/credentials/PlivoApi.credentials.ts +++ b/packages/nodes-base/credentials/PlivoApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PlivoApi implements ICredentialType { name = 'plivoApi'; diff --git a/packages/nodes-base/credentials/PostHogApi.credentials.ts b/packages/nodes-base/credentials/PostHogApi.credentials.ts index c0d47fa337d51..7e167cc763041 100644 --- a/packages/nodes-base/credentials/PostHogApi.credentials.ts +++ b/packages/nodes-base/credentials/PostHogApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PostHogApi implements ICredentialType { name = 'postHogApi'; diff --git a/packages/nodes-base/credentials/Postgres.credentials.ts b/packages/nodes-base/credentials/Postgres.credentials.ts index ccf0bc082720c..42fbce8ac4884 100644 --- a/packages/nodes-base/credentials/Postgres.credentials.ts +++ b/packages/nodes-base/credentials/Postgres.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Postgres implements ICredentialType { name = 'postgres'; @@ -49,9 +45,7 @@ export class Postgres implements ICredentialType { type: 'options', displayOptions: { show: { - allowUnauthorizedCerts: [ - false, - ], + allowUnauthorizedCerts: [false], }, }, options: [ diff --git a/packages/nodes-base/credentials/PostmarkApi.credentials.ts b/packages/nodes-base/credentials/PostmarkApi.credentials.ts index cde9dd45dea83..4becf59f31909 100644 --- a/packages/nodes-base/credentials/PostmarkApi.credentials.ts +++ b/packages/nodes-base/credentials/PostmarkApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PostmarkApi implements ICredentialType { name = 'postmarkApi'; diff --git a/packages/nodes-base/credentials/ProfitWellApi.credentials.ts b/packages/nodes-base/credentials/ProfitWellApi.credentials.ts index 4ccae5919a75d..7b2d8ea7025b9 100644 --- a/packages/nodes-base/credentials/ProfitWellApi.credentials.ts +++ b/packages/nodes-base/credentials/ProfitWellApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ProfitWellApi implements ICredentialType { name = 'profitWellApi'; diff --git a/packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts b/packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts index 891e04b123555..3e8fa4b119471 100644 --- a/packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/PushbulletOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PushbulletOAuth2Api implements ICredentialType { name = 'pushbulletOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Pushbullet OAuth2 API'; documentationUrl = 'pushbullet'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/PushcutApi.credentials.ts b/packages/nodes-base/credentials/PushcutApi.credentials.ts index 2395bb410ffc8..7bb83e05f5ed9 100644 --- a/packages/nodes-base/credentials/PushcutApi.credentials.ts +++ b/packages/nodes-base/credentials/PushcutApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class PushcutApi implements ICredentialType { name = 'pushcutApi'; diff --git a/packages/nodes-base/credentials/PushoverApi.credentials.ts b/packages/nodes-base/credentials/PushoverApi.credentials.ts index 53a0c1e1e6a8d..30562057189fe 100644 --- a/packages/nodes-base/credentials/PushoverApi.credentials.ts +++ b/packages/nodes-base/credentials/PushoverApi.credentials.ts @@ -18,7 +18,10 @@ export class PushoverApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { if (requestOptions.method === 'GET') { Object.assign(requestOptions.qs, { token: credentials.apiKey }); } else { @@ -31,6 +34,6 @@ export class PushoverApi implements ICredentialType { baseURL: 'https://api.pushover.net/1', url: '=/licenses.json?token={{$credentials?.apiKey}}', method: 'GET', - }, + }, }; } diff --git a/packages/nodes-base/credentials/QuickBaseApi.credentials.ts b/packages/nodes-base/credentials/QuickBaseApi.credentials.ts index 8c9a9d202dcfc..25b76031b28d5 100644 --- a/packages/nodes-base/credentials/QuickBaseApi.credentials.ts +++ b/packages/nodes-base/credentials/QuickBaseApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class QuickBaseApi implements ICredentialType { name = 'quickbaseApi'; diff --git a/packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts b/packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts index 3a7ed6b17cb34..f5b0fed2c7e8f 100644 --- a/packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/QuickBooksOAuth2Api.credentials.ts @@ -1,15 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; // https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization export class QuickBooksOAuth2Api implements ICredentialType { name = 'quickBooksOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'QuickBooks Online OAuth2 API'; documentationUrl = 'quickbooks'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/RabbitMQ.credentials.ts b/packages/nodes-base/credentials/RabbitMQ.credentials.ts index 225362c3dd633..3e3b3cc2ac1df 100644 --- a/packages/nodes-base/credentials/RabbitMQ.credentials.ts +++ b/packages/nodes-base/credentials/RabbitMQ.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - IDisplayOptions, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, IDisplayOptions, INodeProperties } from 'n8n-workflow'; export class RabbitMQ implements ICredentialType { name = 'rabbitmq'; @@ -57,13 +53,12 @@ export class RabbitMQ implements ICredentialType { type: 'boolean', displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, default: true, - description: 'Whether to use passwordless connection with certificates (SASL mechanism EXTERNAL)', + description: + 'Whether to use passwordless connection with certificates (SASL mechanism EXTERNAL)', }, { displayName: 'CA Certificates', @@ -74,9 +69,7 @@ export class RabbitMQ implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], + ssl: [true], }, }, default: '', @@ -91,12 +84,8 @@ export class RabbitMQ implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, } as IDisplayOptions, default: '', @@ -111,12 +100,8 @@ export class RabbitMQ implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, }, default: '', @@ -131,12 +116,8 @@ export class RabbitMQ implements ICredentialType { }, displayOptions: { show: { - ssl: [ - true, - ], - passwordless: [ - true, - ], + ssl: [true], + passwordless: [true], }, }, default: '', diff --git a/packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts b/packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts index 5940bff4a758d..0dfc433e43ab1 100644 --- a/packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/RaindropOAuth2Api.credentials.ts @@ -1,15 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; // https://developer.raindrop.io/v1/authentication export class RaindropOAuth2Api implements ICredentialType { name = 'raindropOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Raindrop OAuth2 API'; documentationUrl = 'raindrop'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts b/packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts index 03cab714fba40..ff4c1af89be1f 100644 --- a/packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/RedditOAuth2Api.credentials.ts @@ -1,25 +1,12 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'identity', - 'edit', - 'history', - 'mysubreddits', - 'read', - 'save', - 'submit', -]; +const scopes = ['identity', 'edit', 'history', 'mysubreddits', 'read', 'save', 'submit']; // https://github.com/reddit-archive/reddit/wiki/OAuth2 export class RedditOAuth2Api implements ICredentialType { name = 'redditOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Reddit OAuth2 API'; documentationUrl = 'reddit'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/Redis.credentials.ts b/packages/nodes-base/credentials/Redis.credentials.ts index c48cbcdf53b24..cddb70c078887 100644 --- a/packages/nodes-base/credentials/Redis.credentials.ts +++ b/packages/nodes-base/credentials/Redis.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Redis implements ICredentialType { name = 'redis'; diff --git a/packages/nodes-base/credentials/RocketchatApi.credentials.ts b/packages/nodes-base/credentials/RocketchatApi.credentials.ts index 6fac3da034103..2c76a53190cf8 100644 --- a/packages/nodes-base/credentials/RocketchatApi.credentials.ts +++ b/packages/nodes-base/credentials/RocketchatApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class RocketchatApi implements ICredentialType { name = 'rocketchatApi'; displayName = 'Rocket API'; diff --git a/packages/nodes-base/credentials/RundeckApi.credentials.ts b/packages/nodes-base/credentials/RundeckApi.credentials.ts index d3c6458908410..719eea40bb275 100644 --- a/packages/nodes-base/credentials/RundeckApi.credentials.ts +++ b/packages/nodes-base/credentials/RundeckApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class RundeckApi implements ICredentialType { name = 'rundeckApi'; diff --git a/packages/nodes-base/credentials/S3.credentials.ts b/packages/nodes-base/credentials/S3.credentials.ts index 4e18842391036..562752e42aff8 100644 --- a/packages/nodes-base/credentials/S3.credentials.ts +++ b/packages/nodes-base/credentials/S3.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class S3 implements ICredentialType { name = 's3'; diff --git a/packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts b/packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts index 8d1d15ec9be6a..6bcc8fda7ce18 100644 --- a/packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts +++ b/packages/nodes-base/credentials/SalesforceJwtApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SalesforceJwtApi implements ICredentialType { name = 'salesforceJwtApi'; @@ -48,7 +45,8 @@ export class SalesforceJwtApi implements ICredentialType { }, default: '', required: true, - description: 'Use the multiline editor. Make sure it is in standard PEM key format:
-----BEGIN PRIVATE KEY-----
KEY DATA GOES HERE
-----END PRIVATE KEY-----', + description: + 'Use the multiline editor. Make sure it is in standard PEM key format:
-----BEGIN PRIVATE KEY-----
KEY DATA GOES HERE
-----END PRIVATE KEY-----', }, ]; } diff --git a/packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts index b46e58295a5e9..21078e0f72c0e 100644 --- a/packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SalesforceOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SalesforceOAuth2Api implements ICredentialType { name = 'salesforceOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Salesforce OAuth2 API'; documentationUrl = 'salesforce'; properties: INodeProperties[] = [ @@ -38,14 +33,16 @@ export class SalesforceOAuth2Api implements ICredentialType { name: 'authUrl', type: 'hidden', required: true, - default: '={{ $self["environment"] === "sandbox" ? "https://test.salesforce.com/services/oauth2/authorize" : "https://login.salesforce.com/services/oauth2/authorize" }}', + default: + '={{ $self["environment"] === "sandbox" ? "https://test.salesforce.com/services/oauth2/authorize" : "https://login.salesforce.com/services/oauth2/authorize" }}', }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', required: true, - default: '={{ $self["environment"] === "sandbox" ? "https://test.salesforce.com/services/oauth2/token" : "https://login.salesforce.com/services/oauth2/token" }}', + default: + '={{ $self["environment"] === "sandbox" ? "https://test.salesforce.com/services/oauth2/token" : "https://login.salesforce.com/services/oauth2/token" }}', }, { displayName: 'Scope', diff --git a/packages/nodes-base/credentials/SalesmateApi.credentials.ts b/packages/nodes-base/credentials/SalesmateApi.credentials.ts index 22f4cf5e460e8..333c645abd580 100644 --- a/packages/nodes-base/credentials/SalesmateApi.credentials.ts +++ b/packages/nodes-base/credentials/SalesmateApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SalesmateApi implements ICredentialType { name = 'salesmateApi'; diff --git a/packages/nodes-base/credentials/SeaTableApi.credentials.ts b/packages/nodes-base/credentials/SeaTableApi.credentials.ts index a61b539961698..dda4870087297 100644 --- a/packages/nodes-base/credentials/SeaTableApi.credentials.ts +++ b/packages/nodes-base/credentials/SeaTableApi.credentials.ts @@ -1,16 +1,16 @@ -import { - ICredentialType, - INodeProperties, - INodePropertyOptions, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties, INodePropertyOptions } from 'n8n-workflow'; import moment from 'moment-timezone'; // Get options for timezones -const timezones: INodePropertyOptions[] = moment.tz.countries().reduce( (timezones: INodePropertyOptions[], country: string) => { - const zonesForCountry = moment.tz.zonesForCountry(country).map(zone => ({value: zone, name: zone})); - return timezones.concat(zonesForCountry); -}, []); +const timezones: INodePropertyOptions[] = moment.tz + .countries() + .reduce((timezones: INodePropertyOptions[], country: string) => { + const zonesForCountry = moment.tz + .zonesForCountry(country) + .map((zone) => ({ value: zone, name: zone })); + return timezones.concat(zonesForCountry); + }, []); export class SeaTableApi implements ICredentialType { name = 'seaTableApi'; @@ -41,9 +41,7 @@ export class SeaTableApi implements ICredentialType { placeholder: 'https://www.mydomain.com', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, @@ -58,10 +56,8 @@ export class SeaTableApi implements ICredentialType { name: 'timezone', type: 'options', default: '', - description: 'Seatable server\'s timezone', - options: [ - ...timezones, - ], + description: "Seatable server's timezone", + options: [...timezones], }, ]; } diff --git a/packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts b/packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts index 8453371ef4f24..e898287103ba5 100644 --- a/packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts +++ b/packages/nodes-base/credentials/SecurityScorecardApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SecurityScorecardApi implements ICredentialType { name = 'securityScorecardApi'; diff --git a/packages/nodes-base/credentials/SegmentApi.credentials.ts b/packages/nodes-base/credentials/SegmentApi.credentials.ts index bc9d6ec71456b..a5b242f38548d 100644 --- a/packages/nodes-base/credentials/SegmentApi.credentials.ts +++ b/packages/nodes-base/credentials/SegmentApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SegmentApi implements ICredentialType { name = 'segmentApi'; diff --git a/packages/nodes-base/credentials/SendyApi.credentials.ts b/packages/nodes-base/credentials/SendyApi.credentials.ts index b8c12beddd78c..8c271452ed592 100644 --- a/packages/nodes-base/credentials/SendyApi.credentials.ts +++ b/packages/nodes-base/credentials/SendyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SendyApi implements ICredentialType { name = 'sendyApi'; diff --git a/packages/nodes-base/credentials/SentryIoApi.credentials.ts b/packages/nodes-base/credentials/SentryIoApi.credentials.ts index 15ad98edcb4d2..1ae684af6f8b0 100644 --- a/packages/nodes-base/credentials/SentryIoApi.credentials.ts +++ b/packages/nodes-base/credentials/SentryIoApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SentryIoApi implements ICredentialType { name = 'sentryIoApi'; diff --git a/packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts index 596ec6936b9c5..0ff089a59aab3 100644 --- a/packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SentryIoOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SentryIoOAuth2Api implements ICredentialType { name = 'sentryIoOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Sentry.io OAuth2 API'; documentationUrl = 'sentryIo'; properties: INodeProperties[] = [ @@ -35,7 +30,8 @@ export class SentryIoOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden', - default: 'event:admin event:read org:read project:read project:releases team:read event:write org:admin project:write team:write project:admin team:admin', + default: + 'event:admin event:read org:read project:read project:releases team:read event:write org:admin project:write team:write project:admin team:admin', }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/SentryIoServerApi.credentials.ts b/packages/nodes-base/credentials/SentryIoServerApi.credentials.ts index cbd05d26e2b4e..c9dac74b441bf 100644 --- a/packages/nodes-base/credentials/SentryIoServerApi.credentials.ts +++ b/packages/nodes-base/credentials/SentryIoServerApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SentryIoServerApi implements ICredentialType { name = 'sentryIoServerApi'; @@ -13,7 +10,8 @@ export class SentryIoServerApi implements ICredentialType { name: 'token', type: 'string', default: '', - }, { + }, + { displayName: 'URL', name: 'url', type: 'string', diff --git a/packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts b/packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts index 64a036b7d8c8d..7fb51aa024a2d 100644 --- a/packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts +++ b/packages/nodes-base/credentials/ServiceNowBasicApi.credentials.ts @@ -7,9 +7,7 @@ import { export class ServiceNowBasicApi implements ICredentialType { name = 'serviceNowBasicApi'; - extends = [ - 'httpBasicAuth', - ]; + extends = ['httpBasicAuth']; displayName = 'ServiceNow Basic Auth API'; documentationUrl = 'serviceNow'; properties: INodeProperties[] = [ @@ -19,7 +17,6 @@ export class ServiceNowBasicApi implements ICredentialType { type: 'string', required: true, default: '', - }, { displayName: 'Password', diff --git a/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts index 4877bd5c53d4a..9157b2e982a69 100644 --- a/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ServiceNowOAuth2Api implements ICredentialType { name = 'serviceNowOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'ServiceNow OAuth2 API'; documentationUrl = 'serviceNow'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/Sftp.credentials.ts b/packages/nodes-base/credentials/Sftp.credentials.ts index e8c6511adfad5..f63fb8dcc7770 100644 --- a/packages/nodes-base/credentials/Sftp.credentials.ts +++ b/packages/nodes-base/credentials/Sftp.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Sftp implements ICredentialType { name = 'sftp'; @@ -46,7 +43,8 @@ export class Sftp implements ICredentialType { alwaysOpenEditWindow: true, }, default: '', - description: 'String that contains a private key for either key-based or hostbased user authentication (OpenSSH format)', + description: + 'String that contains a private key for either key-based or hostbased user authentication (OpenSSH format)', }, { displayName: 'Passphrase', diff --git a/packages/nodes-base/credentials/ShopifyAccessTokenApi.credentials.ts b/packages/nodes-base/credentials/ShopifyAccessTokenApi.credentials.ts index b87e196ff1192..6353ea9f7e3de 100644 --- a/packages/nodes-base/credentials/ShopifyAccessTokenApi.credentials.ts +++ b/packages/nodes-base/credentials/ShopifyAccessTokenApi.credentials.ts @@ -43,7 +43,7 @@ export class ShopifyAccessTokenApi implements ICredentialType { }, }; test: ICredentialTestRequest = { - request: { + request: { baseURL: '=https://{{$credentials?.shopSubdomain}}.myshopify.com/admin/api/2019-10', url: '/products.json', }, diff --git a/packages/nodes-base/credentials/ShopifyApi.credentials.ts b/packages/nodes-base/credentials/ShopifyApi.credentials.ts index 96f76820f89b6..62dc2bb83ddb2 100644 --- a/packages/nodes-base/credentials/ShopifyApi.credentials.ts +++ b/packages/nodes-base/credentials/ShopifyApi.credentials.ts @@ -42,10 +42,15 @@ export class ShopifyApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.headers = { ...requestOptions.headers, - Authorization: `Basic ${Buffer.from(`${credentials.apiKey}:${credentials.password}`).toString(BINARY_ENCODING)}`, + Authorization: `Basic ${Buffer.from(`${credentials.apiKey}:${credentials.password}`).toString( + BINARY_ENCODING, + )}`, }; return requestOptions; } diff --git a/packages/nodes-base/credentials/ShopifyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ShopifyOAuth2Api.credentials.ts index 625bf5903fe21..46ced58570b84 100644 --- a/packages/nodes-base/credentials/ShopifyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ShopifyOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ShopifyOAuth2Api implements ICredentialType { name = 'shopifyOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Shopify OAuth2 API'; documentationUrl = 'shopify'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/Signl4Api.credentials.ts b/packages/nodes-base/credentials/Signl4Api.credentials.ts index 29bad1b7d886a..5d64d638fa129 100644 --- a/packages/nodes-base/credentials/Signl4Api.credentials.ts +++ b/packages/nodes-base/credentials/Signl4Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Signl4Api implements ICredentialType { name = 'signl4Api'; diff --git a/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts index f8e7cacebd94d..8107aad016ea9 100644 --- a/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SlackOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; //https://api.slack.com/authentication/oauth-v2 const userScopes = [ @@ -24,9 +21,7 @@ const userScopes = [ export class SlackOAuth2Api implements ICredentialType { name = 'slackOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Slack OAuth2 API'; documentationUrl = 'slack'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/Sms77Api.credentials.ts b/packages/nodes-base/credentials/Sms77Api.credentials.ts index e2a45b115f13e..c57cdd17c0be6 100644 --- a/packages/nodes-base/credentials/Sms77Api.credentials.ts +++ b/packages/nodes-base/credentials/Sms77Api.credentials.ts @@ -25,10 +25,10 @@ export class Sms77Api implements ICredentialType { }, }, }; - test: ICredentialTestRequest = { - request: { - baseURL: 'https://gateway.sms77.io/api', - url: '/balance', - }, - }; + test: ICredentialTestRequest = { + request: { + baseURL: 'https://gateway.sms77.io/api', + url: '/balance', + }, + }; } diff --git a/packages/nodes-base/credentials/Smtp.credentials.ts b/packages/nodes-base/credentials/Smtp.credentials.ts index f5ae22bd57aa9..c40ba546e9791 100644 --- a/packages/nodes-base/credentials/Smtp.credentials.ts +++ b/packages/nodes-base/credentials/Smtp.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Smtp implements ICredentialType { name = 'smtp'; @@ -14,7 +10,6 @@ export class Smtp implements ICredentialType { name: 'user', type: 'string', default: '', - }, { displayName: 'Password', diff --git a/packages/nodes-base/credentials/Snowflake.credentials.ts b/packages/nodes-base/credentials/Snowflake.credentials.ts index 747409f50087a..878477a375a36 100644 --- a/packages/nodes-base/credentials/Snowflake.credentials.ts +++ b/packages/nodes-base/credentials/Snowflake.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class Snowflake implements ICredentialType { name = 'snowflake'; @@ -27,7 +24,8 @@ export class Snowflake implements ICredentialType { name: 'warehouse', type: 'string', default: '', - description: 'The default virtual warehouse to use for the session after connecting. Used for performing queries, loading data, etc.', + description: + 'The default virtual warehouse to use for the session after connecting. Used for performing queries, loading data, etc.', }, { displayName: 'Username', @@ -63,7 +61,8 @@ export class Snowflake implements ICredentialType { name: 'clientSessionKeepAlive', type: 'boolean', default: false, - description: 'Whether to keep alive the client session. By default, client connections typically time out approximately 3-4 hours after the most recent query was executed. If the parameter clientSessionKeepAlive is set to true, the client’s connection to the server will be kept alive indefinitely, even if no queries are executed.', + description: + 'Whether to keep alive the client session. By default, client connections typically time out approximately 3-4 hours after the most recent query was executed. If the parameter clientSessionKeepAlive is set to true, the client’s connection to the server will be kept alive indefinitely, even if no queries are executed.', }, ]; } diff --git a/packages/nodes-base/credentials/SplunkApi.credentials.ts b/packages/nodes-base/credentials/SplunkApi.credentials.ts index 01a41ce16d0b4..4c447d62ea393 100644 --- a/packages/nodes-base/credentials/SplunkApi.credentials.ts +++ b/packages/nodes-base/credentials/SplunkApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SplunkApi implements ICredentialType { name = 'splunkApi'; diff --git a/packages/nodes-base/credentials/SpontitApi.credentials.ts b/packages/nodes-base/credentials/SpontitApi.credentials.ts index b238054419e43..a7f8a5a66b43e 100644 --- a/packages/nodes-base/credentials/SpontitApi.credentials.ts +++ b/packages/nodes-base/credentials/SpontitApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SpontitApi implements ICredentialType { name = 'spontitApi'; diff --git a/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts index 7da55605c7dce..0f0cc09cbb645 100644 --- a/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SpotifyOAuth2Api.credentials.ts @@ -1,14 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SpotifyOAuth2Api implements ICredentialType { name = 'spotifyOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Spotify OAuth2 API'; documentationUrl = 'spotify'; properties: INodeProperties[] = [ @@ -42,7 +36,8 @@ export class SpotifyOAuth2Api implements ICredentialType { displayName: 'Scope', name: 'scope', type: 'hidden', - default: 'user-read-playback-state playlist-read-collaborative user-modify-playback-state playlist-modify-public user-read-currently-playing playlist-read-private user-read-recently-played playlist-modify-private user-library-read user-follow-read', + default: + 'user-read-playback-state playlist-read-collaborative user-modify-playback-state playlist-modify-public user-read-currently-playing playlist-read-private user-read-recently-played playlist-modify-private user-library-read user-follow-read', }, { displayName: 'Auth URI Query Parameters', diff --git a/packages/nodes-base/credentials/SshPassword.credentials.ts b/packages/nodes-base/credentials/SshPassword.credentials.ts index b194bfd5e85bc..cde3d0d46e247 100644 --- a/packages/nodes-base/credentials/SshPassword.credentials.ts +++ b/packages/nodes-base/credentials/SshPassword.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SshPassword implements ICredentialType { name = 'sshPassword'; diff --git a/packages/nodes-base/credentials/SshPrivateKey.credentials.ts b/packages/nodes-base/credentials/SshPrivateKey.credentials.ts index 055d7905b94b1..9030ec5771127 100644 --- a/packages/nodes-base/credentials/SshPrivateKey.credentials.ts +++ b/packages/nodes-base/credentials/SshPrivateKey.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SshPrivateKey implements ICredentialType { name = 'sshPrivateKey'; @@ -44,6 +41,5 @@ export class SshPrivateKey implements ICredentialType { default: '', description: 'Passphase used to create the key, if no passphase was used leave empty', }, - ]; } diff --git a/packages/nodes-base/credentials/StackbyApi.credentials.ts b/packages/nodes-base/credentials/StackbyApi.credentials.ts index 8abd2ce0345dc..a7195944425f3 100644 --- a/packages/nodes-base/credentials/StackbyApi.credentials.ts +++ b/packages/nodes-base/credentials/StackbyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class StackbyApi implements ICredentialType { name = 'stackbyApi'; diff --git a/packages/nodes-base/credentials/StoryblokContentApi.credentials.ts b/packages/nodes-base/credentials/StoryblokContentApi.credentials.ts index 0c23182d5d857..8f745f6e9e3dd 100644 --- a/packages/nodes-base/credentials/StoryblokContentApi.credentials.ts +++ b/packages/nodes-base/credentials/StoryblokContentApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class StoryblokContentApi implements ICredentialType { name = 'storyblokContentApi'; diff --git a/packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts b/packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts index aa3f4f49b615a..ef2aa900c63a0 100644 --- a/packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts +++ b/packages/nodes-base/credentials/StoryblokManagementApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class StoryblokManagementApi implements ICredentialType { name = 'storyblokManagementApi'; diff --git a/packages/nodes-base/credentials/StrapiApi.credentials.ts b/packages/nodes-base/credentials/StrapiApi.credentials.ts index 9545b1da3bccf..bddb4c75d2d3b 100644 --- a/packages/nodes-base/credentials/StrapiApi.credentials.ts +++ b/packages/nodes-base/credentials/StrapiApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class StrapiApi implements ICredentialType { name = 'strapiApi'; diff --git a/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts b/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts index 6c2bb32617544..1af9613ff6971 100644 --- a/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/StravaOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class StravaOAuth2Api implements ICredentialType { name = 'stravaOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Strava OAuth2 API'; documentationUrl = 'strava'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/StripeApi.credentials.ts b/packages/nodes-base/credentials/StripeApi.credentials.ts index 18d7831cdb145..84d25c2dc423e 100644 --- a/packages/nodes-base/credentials/StripeApi.credentials.ts +++ b/packages/nodes-base/credentials/StripeApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class StripeApi implements ICredentialType { name = 'stripeApi'; displayName = 'Stripe API'; diff --git a/packages/nodes-base/credentials/SupabaseApi.credentials.ts b/packages/nodes-base/credentials/SupabaseApi.credentials.ts index fba1c1fe680b6..148f27fa9624a 100644 --- a/packages/nodes-base/credentials/SupabaseApi.credentials.ts +++ b/packages/nodes-base/credentials/SupabaseApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SupabaseApi implements ICredentialType { name = 'supabaseApi'; diff --git a/packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts b/packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts index ea176223333a7..472bc42199dd4 100644 --- a/packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts +++ b/packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SurveyMonkeyApi implements ICredentialType { name = 'surveyMonkeyApi'; diff --git a/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts b/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts index 6626c8d48ff6c..d694188de0ce4 100644 --- a/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/SurveyMonkeyOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'surveys_read', @@ -14,9 +11,7 @@ const scopes = [ export class SurveyMonkeyOAuth2Api implements ICredentialType { name = 'surveyMonkeyOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'SurveyMonkey OAuth2 API'; documentationUrl = 'surveyMonkey'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/SyncroMspApi.credentials.ts b/packages/nodes-base/credentials/SyncroMspApi.credentials.ts index fc4a011db6824..94c4ca05f7735 100644 --- a/packages/nodes-base/credentials/SyncroMspApi.credentials.ts +++ b/packages/nodes-base/credentials/SyncroMspApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SyncroMspApi implements ICredentialType { name = 'syncroMspApi'; diff --git a/packages/nodes-base/credentials/TaigaApi.credentials.ts b/packages/nodes-base/credentials/TaigaApi.credentials.ts index db5e7ec6ad6da..44f1cd1565a9a 100644 --- a/packages/nodes-base/credentials/TaigaApi.credentials.ts +++ b/packages/nodes-base/credentials/TaigaApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TaigaApi implements ICredentialType { name = 'taigaApi'; @@ -44,9 +41,7 @@ export class TaigaApi implements ICredentialType { placeholder: 'https://taiga.yourdomain.com', displayOptions: { show: { - environment: [ - 'selfHosted', - ], + environment: ['selfHosted'], }, }, }, diff --git a/packages/nodes-base/credentials/TapfiliateApi.credentials.ts b/packages/nodes-base/credentials/TapfiliateApi.credentials.ts index 0bf0e397f595f..6d4a98d674253 100644 --- a/packages/nodes-base/credentials/TapfiliateApi.credentials.ts +++ b/packages/nodes-base/credentials/TapfiliateApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TapfiliateApi implements ICredentialType { name = 'tapfiliateApi'; diff --git a/packages/nodes-base/credentials/TelegramApi.credentials.ts b/packages/nodes-base/credentials/TelegramApi.credentials.ts index 6c0cc4ed2c1e3..9a4107f80f852 100644 --- a/packages/nodes-base/credentials/TelegramApi.credentials.ts +++ b/packages/nodes-base/credentials/TelegramApi.credentials.ts @@ -1,9 +1,4 @@ -import { - ICredentialTestRequest, - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow'; export class TelegramApi implements ICredentialType { name = 'telegramApi'; @@ -15,7 +10,8 @@ export class TelegramApi implements ICredentialType { name: 'accessToken', type: 'string', default: '', - description: 'Chat with the bot father to obtain the access token', + description: + 'Chat with the bot father to obtain the access token', }, ]; diff --git a/packages/nodes-base/credentials/TimescaleDb.credentials.ts b/packages/nodes-base/credentials/TimescaleDb.credentials.ts index 1ad133fe5b4de..234c4c3920fa1 100644 --- a/packages/nodes-base/credentials/TimescaleDb.credentials.ts +++ b/packages/nodes-base/credentials/TimescaleDb.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TimescaleDb implements ICredentialType { name = 'timescaleDb'; @@ -48,9 +45,7 @@ export class TimescaleDb implements ICredentialType { type: 'options', displayOptions: { show: { - allowUnauthorizedCerts: [ - false, - ], + allowUnauthorizedCerts: [false], }, }, options: [ diff --git a/packages/nodes-base/credentials/TodoistApi.credentials.ts b/packages/nodes-base/credentials/TodoistApi.credentials.ts index 314919805a245..2db5eebfa61bb 100644 --- a/packages/nodes-base/credentials/TodoistApi.credentials.ts +++ b/packages/nodes-base/credentials/TodoistApi.credentials.ts @@ -15,7 +15,6 @@ export class TodoistApi implements ICredentialType { type: 'string', default: '', }, - ]; authenticate: IAuthenticateGeneric = { diff --git a/packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts b/packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts index ab0c5371c99d6..75f1c77c43b1a 100644 --- a/packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/TodoistOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TodoistOAuth2Api implements ICredentialType { name = 'todoistOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Todoist OAuth2 API'; documentationUrl = 'todoist'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/TogglApi.credentials.ts b/packages/nodes-base/credentials/TogglApi.credentials.ts index 039cd80c89aef..f5f5817e68f8a 100644 --- a/packages/nodes-base/credentials/TogglApi.credentials.ts +++ b/packages/nodes-base/credentials/TogglApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TogglApi implements ICredentialType { name = 'togglApi'; diff --git a/packages/nodes-base/credentials/TravisCiApi.credentials.ts b/packages/nodes-base/credentials/TravisCiApi.credentials.ts index 182904110c049..f4f0d6603325f 100644 --- a/packages/nodes-base/credentials/TravisCiApi.credentials.ts +++ b/packages/nodes-base/credentials/TravisCiApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TravisCiApi implements ICredentialType { name = 'travisCiApi'; diff --git a/packages/nodes-base/credentials/TrelloApi.credentials.ts b/packages/nodes-base/credentials/TrelloApi.credentials.ts index f110f1528a45e..efb28571bb642 100644 --- a/packages/nodes-base/credentials/TrelloApi.credentials.ts +++ b/packages/nodes-base/credentials/TrelloApi.credentials.ts @@ -33,11 +33,14 @@ export class TrelloApi implements ICredentialType { }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.qs = { ...requestOptions.qs, - 'key': credentials.apiKey, - 'token': credentials.apiToken, + key: credentials.apiKey, + token: credentials.apiToken, }; return requestOptions; } diff --git a/packages/nodes-base/credentials/TwakeServerApi.credentials.ts b/packages/nodes-base/credentials/TwakeServerApi.credentials.ts index 4fb5f332f09d7..561a592eeee38 100644 --- a/packages/nodes-base/credentials/TwakeServerApi.credentials.ts +++ b/packages/nodes-base/credentials/TwakeServerApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TwakeServerApi implements ICredentialType { name = 'twakeServerApi'; diff --git a/packages/nodes-base/credentials/TwilioApi.credentials.ts b/packages/nodes-base/credentials/TwilioApi.credentials.ts index 802d4917ee4eb..97d53b3eaf0b1 100644 --- a/packages/nodes-base/credentials/TwilioApi.credentials.ts +++ b/packages/nodes-base/credentials/TwilioApi.credentials.ts @@ -7,7 +7,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class TwilioApi implements ICredentialType { name = 'twilioApi'; displayName = 'Twilio API'; @@ -42,9 +41,7 @@ export class TwilioApi implements ICredentialType { default: '', displayOptions: { show: { - authType: [ - 'authToken', - ], + authType: ['authToken'], }, }, }, @@ -55,9 +52,7 @@ export class TwilioApi implements ICredentialType { default: '', displayOptions: { show: { - authType: [ - 'apiKey', - ], + authType: ['apiKey'], }, }, }, @@ -71,9 +66,7 @@ export class TwilioApi implements ICredentialType { default: '', displayOptions: { show: { - authType: [ - 'apiKey', - ], + authType: ['apiKey'], }, }, }, @@ -83,8 +76,10 @@ export class TwilioApi implements ICredentialType { type: 'generic', properties: { auth: { - username: '={{ $credentials.authType === "apiKey" ? $credentials.apiKeySid : $credentials.accountSid }}', - password: '={{ $credentials.authType === "apiKey" ? $credentials.apiKeySecret : $credentials.authToken }}', + username: + '={{ $credentials.authType === "apiKey" ? $credentials.apiKeySid : $credentials.accountSid }}', + password: + '={{ $credentials.authType === "apiKey" ? $credentials.apiKeySecret : $credentials.authToken }}', }, }, }; diff --git a/packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts b/packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts index 971edfc48fb01..8a64ab5eb2df2 100644 --- a/packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/TwistOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'attachments:write', @@ -14,9 +11,7 @@ const scopes = [ export class TwistOAuth2Api implements ICredentialType { name = 'twistOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Twist OAuth2 API'; documentationUrl = 'twist'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts b/packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts index ba32af564de39..f168c17ee54dc 100644 --- a/packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts +++ b/packages/nodes-base/credentials/TwitterOAuth1Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class TwitterOAuth1Api implements ICredentialType { name = 'twitterOAuth1Api'; - extends = [ - 'oAuth1Api', - ]; + extends = ['oAuth1Api']; displayName = 'Twitter OAuth API'; documentationUrl = 'twitter'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/TypeformApi.credentials.ts b/packages/nodes-base/credentials/TypeformApi.credentials.ts index 1a8d251966e6c..3e3d5f11d7a50 100644 --- a/packages/nodes-base/credentials/TypeformApi.credentials.ts +++ b/packages/nodes-base/credentials/TypeformApi.credentials.ts @@ -5,7 +5,6 @@ import { INodeProperties, } from 'n8n-workflow'; - export class TypeformApi implements ICredentialType { name = 'typeformApi'; displayName = 'Typeform API'; diff --git a/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts b/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts index ab7efa81c1e74..3bc6f863e5c31 100644 --- a/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts @@ -1,19 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'webhooks:write', - 'webhooks:read', - 'forms:read', -]; +const scopes = ['webhooks:write', 'webhooks:read', 'forms:read']; export class TypeformOAuth2Api implements ICredentialType { name = 'typeformOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Typeform OAuth2 API'; documentationUrl = 'typeform'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/UProcApi.credentials.ts b/packages/nodes-base/credentials/UProcApi.credentials.ts index c78a5ca343f1b..0ca140f17c165 100644 --- a/packages/nodes-base/credentials/UProcApi.credentials.ts +++ b/packages/nodes-base/credentials/UProcApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class UProcApi implements ICredentialType { name = 'uprocApi'; diff --git a/packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts b/packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts index bce46bf48910b..c65bf9b5e21ee 100644 --- a/packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts +++ b/packages/nodes-base/credentials/UnleashedSoftwareApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class UnleashedSoftwareApi implements ICredentialType { name = 'unleashedSoftwareApi'; diff --git a/packages/nodes-base/credentials/UpleadApi.credentials.ts b/packages/nodes-base/credentials/UpleadApi.credentials.ts index 8718c46e6cb3b..ddfb7b4af20ed 100644 --- a/packages/nodes-base/credentials/UpleadApi.credentials.ts +++ b/packages/nodes-base/credentials/UpleadApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class UpleadApi implements ICredentialType { name = 'upleadApi'; diff --git a/packages/nodes-base/credentials/UptimeRobotApi.credentials.ts b/packages/nodes-base/credentials/UptimeRobotApi.credentials.ts index ec3fe50271ee6..e895e2a851f7c 100644 --- a/packages/nodes-base/credentials/UptimeRobotApi.credentials.ts +++ b/packages/nodes-base/credentials/UptimeRobotApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class UptimeRobotApi implements ICredentialType { name = 'uptimeRobotApi'; diff --git a/packages/nodes-base/credentials/VeroApi.credentials.ts b/packages/nodes-base/credentials/VeroApi.credentials.ts index 5f56d7bafffbd..5ba870c1d020d 100644 --- a/packages/nodes-base/credentials/VeroApi.credentials.ts +++ b/packages/nodes-base/credentials/VeroApi.credentials.ts @@ -1,8 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; - +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class VeroApi implements ICredentialType { name = 'veroApi'; diff --git a/packages/nodes-base/credentials/VonageApi.credentials.ts b/packages/nodes-base/credentials/VonageApi.credentials.ts index bf0c4c987dfdc..7957d6b318e07 100644 --- a/packages/nodes-base/credentials/VonageApi.credentials.ts +++ b/packages/nodes-base/credentials/VonageApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class VonageApi implements ICredentialType { name = 'vonageApi'; diff --git a/packages/nodes-base/credentials/WebflowApi.credentials.ts b/packages/nodes-base/credentials/WebflowApi.credentials.ts index b629be2af9927..afbbc57e831f1 100644 --- a/packages/nodes-base/credentials/WebflowApi.credentials.ts +++ b/packages/nodes-base/credentials/WebflowApi.credentials.ts @@ -20,7 +20,7 @@ export class WebflowApi implements ICredentialType { authenticate: IAuthenticateGeneric = { type: 'generic', properties: { - headers:{ + headers: { Authorization: '=Bearer {{$credentials.accessToken}}', }, }, diff --git a/packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts b/packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts index 56b3bb0badb73..357bfbaccf3ff 100644 --- a/packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/WebflowOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class WebflowOAuth2Api implements ICredentialType { name = 'webflowOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Webflow OAuth2 API'; documentationUrl = 'webflow'; properties: INodeProperties[] = [ @@ -42,7 +37,8 @@ export class WebflowOAuth2Api implements ICredentialType { name: 'authQueryParameters', type: 'hidden', default: '', - description: 'For some services additional query parameters have to be set which can be defined here', + description: + 'For some services additional query parameters have to be set which can be defined here', placeholder: '', }, { diff --git a/packages/nodes-base/credentials/WekanApi.credentials.ts b/packages/nodes-base/credentials/WekanApi.credentials.ts index fad7ce47040ea..43ded807038bc 100644 --- a/packages/nodes-base/credentials/WekanApi.credentials.ts +++ b/packages/nodes-base/credentials/WekanApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class WekanApi implements ICredentialType { name = 'wekanApi'; diff --git a/packages/nodes-base/credentials/WiseApi.credentials.ts b/packages/nodes-base/credentials/WiseApi.credentials.ts index ce0a2723b024f..63986c085cf3f 100644 --- a/packages/nodes-base/credentials/WiseApi.credentials.ts +++ b/packages/nodes-base/credentials/WiseApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class WiseApi implements ICredentialType { name = 'wiseApi'; @@ -35,7 +32,8 @@ export class WiseApi implements ICredentialType { name: 'privateKey', type: 'string', default: '', - description: 'Optional private key used for Strong Customer Authentication (SCA). Only needed to retrieve statements, and execute transfers.', + description: + 'Optional private key used for Strong Customer Authentication (SCA). Only needed to retrieve statements, and execute transfers.', typeOptions: { alwaysOpenEditWindow: true, }, diff --git a/packages/nodes-base/credentials/WooCommerceApi.credentials.ts b/packages/nodes-base/credentials/WooCommerceApi.credentials.ts index e551f08b87653..715c3e1da0dfb 100644 --- a/packages/nodes-base/credentials/WooCommerceApi.credentials.ts +++ b/packages/nodes-base/credentials/WooCommerceApi.credentials.ts @@ -35,10 +35,14 @@ export class WooCommerceApi implements ICredentialType { name: 'includeCredentialsInQuery', type: 'boolean', default: false, - description: 'Whether credentials should be included in the query. Occasionally, some servers may not parse the Authorization header correctly (if you see a “Consumer key is missing” error when authenticating over SSL, you have a server issue). In this case, you may provide the consumer key/secret as query string parameters instead.', + description: + 'Whether credentials should be included in the query. Occasionally, some servers may not parse the Authorization header correctly (if you see a “Consumer key is missing” error when authenticating over SSL, you have a server issue). In this case, you may provide the consumer key/secret as query string parameters instead.', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.auth = { // @ts-ignore user: credentials.consumerKey as string, @@ -46,7 +50,10 @@ export class WooCommerceApi implements ICredentialType { }; if (credentials.includeCredentialsInQuery === true) { delete requestOptions.auth; - Object.assign(requestOptions.qs, { consumer_key: credentials.consumerKey, consumer_secret: credentials.consumerSecret }); + Object.assign(requestOptions.qs, { + consumer_key: credentials.consumerKey, + consumer_secret: credentials.consumerSecret, + }); } return requestOptions; } diff --git a/packages/nodes-base/credentials/WordpressApi.credentials.ts b/packages/nodes-base/credentials/WordpressApi.credentials.ts index 47dd3585d22e3..b83de9571aa81 100644 --- a/packages/nodes-base/credentials/WordpressApi.credentials.ts +++ b/packages/nodes-base/credentials/WordpressApi.credentials.ts @@ -33,15 +33,15 @@ export class WordpressApi implements ICredentialType { placeholder: 'https://example.com', }, ]; - authenticate: IAuthenticateGeneric = { - type: 'generic', - properties: { - auth: { - username: '={{$credentials.username}}', - password: '={{$credentials.password}}', + authenticate: IAuthenticateGeneric = { + type: 'generic', + properties: { + auth: { + username: '={{$credentials.username}}', + password: '={{$credentials.password}}', + }, }, - }, -}; + }; test: ICredentialTestRequest = { request: { baseURL: '={{$credentials?.url}}/wp-json/wp/v2', @@ -50,4 +50,3 @@ export class WordpressApi implements ICredentialType { }, }; } - diff --git a/packages/nodes-base/credentials/WorkableApi.credentials.ts b/packages/nodes-base/credentials/WorkableApi.credentials.ts index 4666b0945c517..2070d3fb7c59e 100644 --- a/packages/nodes-base/credentials/WorkableApi.credentials.ts +++ b/packages/nodes-base/credentials/WorkableApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class WorkableApi implements ICredentialType { name = 'workableApi'; diff --git a/packages/nodes-base/credentials/WufooApi.credentials.ts b/packages/nodes-base/credentials/WufooApi.credentials.ts index ed4bd07706620..6494853f48c22 100644 --- a/packages/nodes-base/credentials/WufooApi.credentials.ts +++ b/packages/nodes-base/credentials/WufooApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class WufooApi implements ICredentialType { name = 'wufooApi'; diff --git a/packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts b/packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts index 79fb3a9ad6f76..912203261a913 100644 --- a/packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/XeroOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; const scopes = [ 'offline_access', @@ -12,9 +9,7 @@ const scopes = [ export class XeroOAuth2Api implements ICredentialType { name = 'xeroOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Xero OAuth2 API'; documentationUrl = 'xero'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts b/packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts index 122e174eab480..ba0b2c74663c0 100644 --- a/packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/YouTubeOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; //https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps#identify-access-scopes const scopes = [ @@ -15,9 +12,7 @@ const scopes = [ export class YouTubeOAuth2Api implements ICredentialType { name = 'youTubeOAuth2Api'; icon = 'node:n8n-nodes-base.youTube'; - extends = [ - 'googleOAuth2Api', - ]; + extends = ['googleOAuth2Api']; displayName = 'YouTube OAuth2 API'; documentationUrl = 'google'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/YourlsApi.credentials.ts b/packages/nodes-base/credentials/YourlsApi.credentials.ts index 05577dc37bca4..e914af075949a 100644 --- a/packages/nodes-base/credentials/YourlsApi.credentials.ts +++ b/packages/nodes-base/credentials/YourlsApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class YourlsApi implements ICredentialType { name = 'yourlsApi'; diff --git a/packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts b/packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts index 847110a2f9c1c..56b048c3f52d0 100644 --- a/packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts +++ b/packages/nodes-base/credentials/ZammadBasicAuthApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ZammadBasicAuthApi implements ICredentialType { name = 'zammadBasicAuthApi'; diff --git a/packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts b/packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts index da2c3b5592321..26e795b71ee82 100644 --- a/packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts +++ b/packages/nodes-base/credentials/ZammadTokenAuthApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ZammadTokenAuthApi implements ICredentialType { name = 'zammadTokenAuthApi'; diff --git a/packages/nodes-base/credentials/ZendeskApi.credentials.ts b/packages/nodes-base/credentials/ZendeskApi.credentials.ts index 540fb27e23684..f4f1e167255c1 100644 --- a/packages/nodes-base/credentials/ZendeskApi.credentials.ts +++ b/packages/nodes-base/credentials/ZendeskApi.credentials.ts @@ -33,7 +33,10 @@ export class ZendeskApi implements ICredentialType { default: '', }, ]; - async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise { + async authenticate( + credentials: ICredentialDataDecryptedObject, + requestOptions: IHttpRequestOptions, + ): Promise { requestOptions.auth = { username: `${credentials.email}/token`, password: credentials.apiToken as string, diff --git a/packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts index feba9ca66a9a5..9097d25da04e4 100644 --- a/packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ZendeskOAuth2Api.credentials.ts @@ -1,18 +1,10 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; -const scopes = [ - 'read', - 'write', -]; +const scopes = ['read', 'write']; export class ZendeskOAuth2Api implements ICredentialType { name = 'zendeskOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Zendesk OAuth2 API'; documentationUrl = 'zendesk'; properties: INodeProperties[] = [ @@ -72,7 +64,8 @@ export class ZendeskOAuth2Api implements ICredentialType { name: 'authQueryParameters', type: 'hidden', default: '', - description: 'For some services additional query parameters have to be set which can be defined here', + description: + 'For some services additional query parameters have to be set which can be defined here', placeholder: '', }, { diff --git a/packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts index 86a966f4aa847..71ff5d72ffea2 100644 --- a/packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ZohoOAuth2Api.credentials.ts @@ -1,13 +1,8 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ZohoOAuth2Api implements ICredentialType { name = 'zohoOAuth2Api'; - extends = [ - 'oAuth2Api', - ]; + extends = ['oAuth2Api']; displayName = 'Zoho OAuth2 API'; documentationUrl = 'zoho'; properties: INodeProperties[] = [ diff --git a/packages/nodes-base/credentials/ZoomApi.credentials.ts b/packages/nodes-base/credentials/ZoomApi.credentials.ts index c231616bd4564..62201d5fe7b9a 100644 --- a/packages/nodes-base/credentials/ZoomApi.credentials.ts +++ b/packages/nodes-base/credentials/ZoomApi.credentials.ts @@ -1,4 +1,9 @@ -import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow'; +import { + IAuthenticateGeneric, + ICredentialTestRequest, + ICredentialType, + INodeProperties, +} from 'n8n-workflow'; export class ZoomApi implements ICredentialType { name = 'zoomApi'; diff --git a/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts index 7268aaba141a6..86eb68b8a9462 100644 --- a/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ZoomOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ZoomOAuth2Api implements ICredentialType { name = 'zoomOAuth2Api'; diff --git a/packages/nodes-base/credentials/ZulipApi.credentials.ts b/packages/nodes-base/credentials/ZulipApi.credentials.ts index 2506c0eed6db3..e150733e6443c 100644 --- a/packages/nodes-base/credentials/ZulipApi.credentials.ts +++ b/packages/nodes-base/credentials/ZulipApi.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class ZulipApi implements ICredentialType { name = 'zulipApi'; diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 52ae35d57f10a..de665abf6da7b 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -718,7 +718,7 @@ "@types/tmp": "^0.2.0", "@types/uuid": "^8.3.2", "@types/xml2js": "^0.4.3", - "eslint-plugin-n8n-nodes-base": "^1.5.2", + "eslint-plugin-n8n-nodes-base": "^1.5.4", "gulp": "^4.0.0", "jest": "^27.4.7", "n8n-workflow": "~0.109.0", diff --git a/packages/nodes-base/tslint.json b/packages/nodes-base/tslint.json index ed50fe2fbc88b..a255e6b0fdacf 100644 --- a/packages/nodes-base/tslint.json +++ b/packages/nodes-base/tslint.json @@ -104,10 +104,6 @@ "allow-null-check" ], "use-isnan": true, - "quotemark": [ - true, - "single" - ], "quotes": [ "error", "single"