diff --git a/.prettierignore b/.prettierignore index 95dd97bcdc..d07b7c6304 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 394f343771..2a33cb1568 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 eb9ea92440..587514791e 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 ce87666dce..c53318fe64 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 e5b4832b55..a86aa39807 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 e9da5ec49e..d33da82453 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 6f6059c500..daf2cc3301 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 48f23c1064..fb5de7bee5 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 81816fe07a..acc5836e84 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 35710c8dfb..3c4f22afc5 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 f1a5d54e3a..8a0baf67f8 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 545015a1d2..259c1c01a4 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 dad6d5a1c0..22f421b864 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 31d5467d04..b723606394 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 ca9aa7cab1..60c62d6e03 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 99a6633c53..af277d058e 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 ff81c05fee..5be62849e5 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 5726b697d0..27367c5f4a 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 8262b457b6..6e1fa5975e 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 66f457e821..5a44e81268 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 d60dd421fc..864ae35d68 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 376d6d6546..53a46f8bcc 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 527da9dc9d..8f46a053c3 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 4954940b5c..67aa30f59c 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 1f91de6cb1..eac08a82f3 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 e0cc4df481..55f3f154f9 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 ee08c7c8ad..1ddb91d9b5 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 6ba6b96418..5d728f949d 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 2c96fe93fd..0c395fd974 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 771234dde5..deab41eaf0 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 82dcdbf407..50403cc0c0 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 665be4f574..4f30ded183 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 ab269308fb..a490bb2e6a 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 d6d250c9ad..88c4626b72 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 de8903cbe2..0b887dd475 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 73e1180f7b..8854665d16 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 ea20307e72..5913fa184f 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 571a12c767..97c3e1003c 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 c3df8869c2..63571adff1 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 5021ddc2e5..e4e90e112b 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 81c9a72095..974d63004c 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 e03b9931b9..5f80fe1a15 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 d34da38ea8..8b1ccd3fb3 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 c70f47c2ba..ac33abd015 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 5e7f2c5cee..a1a510850e 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 1d1fc9386b..bb8c35e5bf 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 f709e14ccd..7830a01048 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 8459644453..bf1127ee86 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 de91630b01..584da0347c 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 264aae74a7..9d9b35dc3b 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 9ee2548e81..bc6c682593 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 1fea691158..ed4f832984 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 0ad8734562..5b585b545d 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 c88974f19a..95f1cc1515 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 9ebe75a5aa..72289f1bba 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 cbfb2b4d0b..e8f8dfd2ae 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 a28fd4368c..f3cf735828 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 ae32c1882e..74478d176a 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 b73ed28568..fe87663838 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 ac20bd999a..2c82c8c059 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 d7075029ea..d75ef5d620 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 edba8e58f1..1150b87453 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 4c611f86c8..f1698fc55f 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 6d90f0441e..80da532873 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 7f23f66f4d..21a9fbd340 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 cc5f716097..1a5fa9ef4c 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 f81f46e7dc..19c435254a 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 0a94ca9812..cd0dff7a9d 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 7a79680d08..e8b8f48ed7 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 98696ed33a..a80aad370c 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 13c6ebb793..01e3633b69 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 9701880373..142e03ece0 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 5a0b42cd6a..b8739a35d5 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 40f2def13e..db27c2e070 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 ea0c6457da..0136b9c1ca 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 6ed5a06868..93a069a978 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 cf3348c724..2701c36a2d 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 afc0264814..a4280a56f1 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 377f31d2bb..a403c44c07 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 4feffab762..5dfa3810fe 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 6df9459c8e..d4ed36166c 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 802db3dae9..85fe913b70 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 c0ec9cd285..aeec2d3c19 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 9fc53e2b04..e820e3dafb 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 b2b234aa1d..592d0045fc 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 8bf763c2db..ec3a76c76f 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 dde7233ce5..44a50b3eaa 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 870d2364a8..7889704fb5 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 8493b184c6..90b3b5b68b 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 52413c0b7e..ab4b2c4cda 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 82027c9282..cd9ea04b8f 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 9f344528a1..98e4a35083 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 a44f89485a..eb42f000a3 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 2a50b8a242..0885efa1d0 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 789f08b02f..b9835a30e9 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 ab25c51e50..ba7dddcb99 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 b2feca18da..53b500ccce 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 e7e4645035..9ba04c1559 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 9d757b55c8..60d471e7e4 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 e65623c2e3..65b4d14584 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 d291191ec5..afcbb8376c 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 6d71477ba2..cc71987f8c 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 85aa345c19..2073d3b8df 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 7e6825fbcd..e09ea45856 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 95800f5576..2e3355bbd2 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 2133202032..cd2b2b2535 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 a3341010f8..cad5a36c2c 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 9679c4abfb..1d085a4af8 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 8b0d768ee1..76fbb50452 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 278ad8edd7..ee6681705c 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 ae43d64568..1eb240251a 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 0e3e21a06f..2296bf68e9 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 7c84776fc1..54f947c383 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 79e9d7ae34..cb7b7d86f0 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 190c6f932a..a36d46ef93 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 fd49afcc70..3ac778f849 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 3746d44bcf..9ad1fe0a53 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 c5ad179173..1ad5237e1e 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 cdaea3961a..448c13b37e 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 2284cb8873..414dc9bfac 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 f9d90d5448..5e09132165 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 125a8e6e02..0a0635a0be 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 a5a3892230..8d1b817d21 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 3f62fc0f88..d6cf0856e1 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 4da67b41a8..baebc90637 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 ed1272a379..27affe2850 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 3d63f20f90..4edd38e245 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 649012ad5b..ae6dde334b 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 b327cdcc4c..bc6184fdde 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 012b5795ba..6f291d2840 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 eb8d81a909..6d74872f44 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 ad991b8321..fb8eb78f09 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 392fadbecc..3b321c3c4f 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 00ea2cab0a..d9231b3f8e 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 e9fbb633dd..3d5b73c15c 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 6f81a45460..11b446e0ee 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 f6cf68b794..c133dfd331 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 eacf49ac01..76fc2030cd 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 918c54511e..32b08ae86d 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 b690d36490..aa9039cc92 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 ecfeb78591..096c7e544a 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 58e4898c36..afa26e84a7 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 75e4919baf..88f273fe28 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 1f9ae1199f..fdbc200834 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 417ec09a5c..63446a3ed6 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 d9ad4365fa..8a43e30b15 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 e356cf4044..a5022b6c06 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 d491e4b5fe..d02eab5a11 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 ad3b35efe6..94ec35eb1e 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 074c0ff2ec..9627b3294c 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 dc852beea1..97dc7cfb59 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 70eb7c6bae..aa8c12da80 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 ef69ff5b6a..c63e9289fa 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 753dbc557b..3b4a9a9bd9 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 9d30fa1637..e31a24fd45 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 414425e850..5d432341ee 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 bf0342b2d7..c35464da18 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 b4ab8efde1..4fd46c63fd 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 c31e1b6e1d..22c0a69da5 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 112cab38ca..b1e44c9123 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 054d7ad784..4d2961959b 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 bc1ce1fc48..08c6636179 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 1f91f0d91a..81ba4beaaf 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 f8663bfa45..e8d327df2a 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 939a2cd307..0d7a3cfcc2 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 6bf5ddcf66..81d8368b69 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 e3acd84de0..f9868d89b0 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 90ae27fdb6..4977393a70 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 8bac36228a..20ceb38d31 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 845f7bc4e3..7f1e61af1e 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 ca6ce4974a..132ea60e96 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 2bb90f4359..8a7ca45e97 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 63ec3d13a9..45a1259690 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 69e5ae3b72..f9f34d0ba3 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 0b62f5ddfa..57d8d922f8 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 eecd6e7bb2..3b67851765 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 dec306dded..22d1e2b6a0 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 9b60d34e86..e82edbf9e2 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 4cf161053e..9670ba8389 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 c1af87cd64..7b18cdd60f 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 9b2514efff..f640598ec2 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 512526f09b..181a61a58b 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 228b1c670e..7a1ee63e7c 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 1222627d61..99186290cf 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 5f07eb1f79..1f23b52072 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 f82fb5af32..bbea6ef250 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 4a648d82df..8f1a8116d2 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 c0d47fa337..7e167cc763 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 ccf0bc0827..42fbce8ac4 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 cde9dd45de..4becf59f31 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 4ccae5919a..7b2d8ea702 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 891e04b123..3e8fa4b119 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 2395bb410f..7bb83e05f5 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 53a0c1e1e6..3056205718 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 8c9a9d202d..25b76031b2 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 3a7ed6b17c..f5b0fed2c7 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 225362c3dd..3e3b3cc2ac 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 5940bff4a7..0dfc433e43 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 03cab714fb..ff4c1af89b 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 c48cbcdf53..cddb70c078 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 6fac3da034..2c76a53190 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 d3c6458908..719eea40bb 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 4e18842391..562752e42a 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 8d1d15ec9b..6bcc8fda7c 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 b46e58295a..21078e0f72 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 22f4cf5e46..333c645abd 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 a61b539961..dda4870087 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 8453371ef4..e898287103 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 bc9d6ec714..a5b242f385 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 b8c12beddd..8c271452ed 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 15ad98edcb..1ae684af6f 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 596ec6936b..0ff089a59a 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 cbd05d26e2..c9dac74b44 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 64a036b7d8..7fb51aa024 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 4877bd5c53..9157b2e982 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 e8c6511adf..f63fb8dcc7 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 b87e196ff1..6353ea9f7e 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 96f76820f8..62dc2bb83d 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 625bf5903f..46ced58570 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 29bad1b7d8..5d64d638fa 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 f8e7cacebd..8107aad016 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 e2a45b115f..c57cdd17c0 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 f5ae22bd57..c40ba546e9 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 747409f500..878477a375 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 01a41ce16d..4c447d62ea 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 b238054419..a7f8a5a66b 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 7da55605c7..0f0cc09cbb 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 b194bfd5e8..cde3d0d46e 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 055d7905b9..9030ec5771 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 8abd2ce034..a719594442 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 0c23182d5d..8f745f6e9e 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 aa3f4f49b6..ef2aa900c6 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 9545b1da3b..bddb4c75d2 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 6c2bb32617..1af9613ff6 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 18d7831cdb..84d25c2dc4 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 fba1c1fe68..148f27fa96 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 ea17622333..472bc42199 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 6626c8d48f..d694188de0 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 fc4a011db6..94c4ca05f7 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 db5e7ec6ad..44f1cd1565 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 0bf0e397f5..6d4a98d674 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 6c0cc4ed2c..9a4107f80f 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 1ad133fe5b..234c4c3920 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 314919805a..2db5eebfa6 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 ab0c5371c9..75f1c77c43 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 039cd80c89..f5f5817e68 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 182904110c..f4f0d66033 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 f110f1528a..efb28571bb 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 4fb5f332f0..561a592eee 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 802d4917ee..97d53b3eaf 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 971edfc48f..8a64ab5eb2 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 ba32af564d..f168c17ee5 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 1a8d251966..3e3d5f11d7 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 ab7efa81c1..3bc6f863e5 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 c78a5ca343..0ca140f17c 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 bce46bf489..c65bf9b5e2 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 8718c46e6c..ddfb7b4af2 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 ec3fe50271..e895e2a851 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 5f56d7baff..5ba870c1d0 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 bf0c4c987d..7957d6b318 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 b629be2af9..afbbc57e83 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 56b3bb0bad..357bfbaccf 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 fad7ce4704..43ded80703 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 ce0a2723b0..63986c085c 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 e551f08b87..715c3e1da0 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 47dd3585d2..b83de9571a 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 4666b0945c..2070d3fb7c 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 ed4bd07706..6494853f48 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 79fb3a9ad6..912203261a 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 122e174eab..ba0b2c7466 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 05577dc37b..e914af0759 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 847110a2f9..56b048c3f5 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 da2c3b5592..26e795b71e 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 540fb27e23..f4f1e16725 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 feba9ca66a..9097d25da0 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 86a966f4aa..71ff5d72ff 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 c231616bd4..62201d5fe7 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 7268aaba14..86eb68b8a9 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 2506c0eed6..e150733e64 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 52ae35d57f..de665abf6d 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 ed50fe2fbc..a255e6b0fd 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"