refactor: Format all credentials (#3720)

* Apply Prettier to all credentials

* Fix quotes for lint

* 👕 Remove `quotemark` rule

* 👕 Run Prettier to take over quotes

* ⬆️ Upgrade `eslint-plugin-n8n-nodes-base`

* 📦 Update `package-lock.json`

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Iván Ovejero 2022-07-24 17:36:17 +02:00 committed by GitHub
parent f9f05621a1
commit 57afd480ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
281 changed files with 656 additions and 1937 deletions

View file

@ -5,7 +5,6 @@ packages/design-system
!packages/nodes-base/src !packages/nodes-base/src
!packages/nodes-base/test !packages/nodes-base/test
!packages/nodes-base/nodes !packages/nodes-base/nodes
!packages/nodes-base/credentials
packages/nodes-base/nodes/ActionNetwork packages/nodes-base/nodes/ActionNetwork
packages/nodes-base/nodes/ActiveCampaign packages/nodes-base/nodes/ActiveCampaign
@ -272,302 +271,3 @@ packages/nodes-base/nodes/Zendesk
packages/nodes-base/nodes/Zoho packages/nodes-base/nodes/Zoho
packages/nodes-base/nodes/Zoom packages/nodes-base/nodes/Zoom
packages/nodes-base/nodes/Zulip 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

View file

@ -24,8 +24,11 @@ export class ActionNetworkApi implements ICredentialType {
url: '/events?per_page=1', url: '/events?per_page=1',
}, },
}; };
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
requestOptions.headers = { 'OSDI-API-Token': credentials.apiKey }; requestOptions.headers = { 'OSDI-API-Token': credentials.apiKey };
return requestOptions; return requestOptions;
} }
} }

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class ActiveCampaignApi implements ICredentialType { export class ActiveCampaignApi implements ICredentialType {
name = 'activeCampaignApi'; name = 'activeCampaignApi';
displayName = 'ActiveCampaign API'; displayName = 'ActiveCampaign API';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AcuitySchedulingApi implements ICredentialType { export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi'; name = 'acuitySchedulingApi';

View file

@ -1,14 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AcuitySchedulingOAuth2Api implements ICredentialType { export class AcuitySchedulingOAuth2Api implements ICredentialType {
name = 'acuitySchedulingOAuth2Api'; name = 'acuitySchedulingOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'AcuityScheduling OAuth2 API'; displayName = 'AcuityScheduling OAuth2 API';
documentationUrl = 'acuityScheduling'; documentationUrl = 'acuityScheduling';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AffinityApi implements ICredentialType { export class AffinityApi implements ICredentialType {
name = 'affinityApi'; name = 'affinityApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AgileCrmApi implements ICredentialType { export class AgileCrmApi implements ICredentialType {
name = 'agileCrmApi'; name = 'agileCrmApi';
@ -27,7 +24,8 @@ export class AgileCrmApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'example', 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',
}, },
]; ];
} }

View file

@ -1,9 +1,4 @@
import { import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AirtableApi implements ICredentialType { export class AirtableApi implements ICredentialType {
name = 'airtableApi'; name = 'airtableApi';

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class Amqp implements ICredentialType { export class Amqp implements ICredentialType {
name = 'amqp'; name = 'amqp';

View file

@ -1,8 +1,4 @@
import { import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AsanaApi implements ICredentialType { export class AsanaApi implements ICredentialType {
name = 'asanaApi'; name = 'asanaApi';
@ -25,5 +21,4 @@ export class AsanaApi implements ICredentialType {
}, },
}, },
}; };
} }

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AsanaOAuth2Api implements ICredentialType { export class AsanaOAuth2Api implements ICredentialType {
name = 'asanaOAuth2Api'; name = 'asanaOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Asana OAuth2 API'; displayName = 'Asana OAuth2 API';
documentationUrl = 'asana'; documentationUrl = 'asana';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AutomizyApi implements ICredentialType { export class AutomizyApi implements ICredentialType {
name = 'automizyApi'; name = 'automizyApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class AutopilotApi implements ICredentialType { export class AutopilotApi implements ICredentialType {
name = 'autopilotApi'; name = 'autopilotApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export const regions = [ export const regions = [
{ {
@ -128,7 +125,7 @@ export class Aws implements ICredentialType {
displayName: 'Region', displayName: 'Region',
name: 'region', name: 'region',
type: 'options', type: 'options',
options: regions.map(r => ({ options: regions.map((r) => ({
name: `${r.displayName} (${r.location}) - ${r.name}`, name: `${r.displayName} (${r.location}) - ${r.name}`,
value: r.name, value: r.name,
})), })),
@ -163,9 +160,7 @@ export class Aws implements ICredentialType {
type: 'string', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
temporaryCredentials: [ temporaryCredentials: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -182,13 +177,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'Rekognition Endpoint', displayName: 'Rekognition Endpoint',
name: 'rekognitionEndpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -197,13 +191,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'Lambda Endpoint', displayName: 'Lambda Endpoint',
name: 'lambdaEndpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -212,13 +205,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'SNS Endpoint', displayName: 'SNS Endpoint',
name: 'snsEndpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -227,13 +219,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'SES Endpoint', displayName: 'SES Endpoint',
name: 'sesEndpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -242,13 +233,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'SQS Endpoint', displayName: 'SQS Endpoint',
name: 'sqsEndpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',
@ -257,13 +247,12 @@ export class Aws implements ICredentialType {
{ {
displayName: 'S3 Endpoint', displayName: 'S3 Endpoint',
name: 's3Endpoint', 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', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
customEndpoints: [ customEndpoints: [true],
true,
],
}, },
}, },
default: '', default: '',

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BambooHrApi implements ICredentialType { export class BambooHrApi implements ICredentialType {
name = 'bambooHrApi'; name = 'bambooHrApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BannerbearApi implements ICredentialType { export class BannerbearApi implements ICredentialType {
name = 'bannerbearApi'; name = 'bannerbearApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
// https://api.baserow.io/api/redoc/#section/Authentication // https://api.baserow.io/api/redoc/#section/Authentication

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BeeminderApi implements ICredentialType { export class BeeminderApi implements ICredentialType {
name = 'beeminderApi'; name = 'beeminderApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BitbucketApi implements ICredentialType { export class BitbucketApi implements ICredentialType {
name = 'bitbucketApi'; name = 'bitbucketApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BitlyApi implements ICredentialType { export class BitlyApi implements ICredentialType {
name = 'bitlyApi'; name = 'bitlyApi';

View file

@ -1,16 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BitlyOAuth2Api implements ICredentialType { export class BitlyOAuth2Api implements ICredentialType {
name = 'bitlyOAuth2Api'; name = 'bitlyOAuth2Api';
displayName = 'Bitly OAuth2 API'; displayName = 'Bitly OAuth2 API';
documentationUrl = 'bitly'; documentationUrl = 'bitly';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',
@ -60,7 +54,8 @@ export class BitlyOAuth2Api implements ICredentialType {
name: 'authQueryParameters', name: 'authQueryParameters',
type: 'hidden', type: 'hidden',
default: '', 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: '', placeholder: '',
}, },
{ {

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
// https://bitwarden.com/help/article/public-api/#authentication // https://bitwarden.com/help/article/public-api/#authentication
@ -46,9 +43,7 @@ export class BitwardenApi implements ICredentialType {
placeholder: 'https://www.mydomain.com', placeholder: 'https://www.mydomain.com',
displayOptions: { displayOptions: {
show: { show: {
environment: [ environment: ['selfHosted'],
'selfHosted',
],
}, },
}, },
}, },

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BoxOAuth2Api implements ICredentialType { export class BoxOAuth2Api implements ICredentialType {
name = 'boxOAuth2Api'; name = 'boxOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Box OAuth2 API'; displayName = 'Box OAuth2 API';
documentationUrl = 'box'; documentationUrl = 'box';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BrandfetchApi implements ICredentialType { export class BrandfetchApi implements ICredentialType {
name = 'brandfetchApi'; name = 'brandfetchApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BubbleApi implements ICredentialType { export class BubbleApi implements ICredentialType {
name = 'bubbleApi'; name = 'bubbleApi';
@ -60,9 +57,7 @@ export class BubbleApi implements ICredentialType {
default: '', default: '',
displayOptions: { displayOptions: {
show: { show: {
hosting: [ hosting: ['selfHosted'],
'selfHosted',
],
}, },
}, },
}, },

View file

@ -20,9 +20,12 @@ export class CalendlyApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
//check whether the token is an API Key or an access token //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); const tokenType = getAuthenticationType(apiKey);
// remove condition once v1 is deprecated // remove condition once v1 is deprecated
// and only inject credentials as an access token // 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 // The access token is a JWT, so it will always include dots to separate
// header, payoload and signature. // header, payoload and signature.
return data.includes('.') ? 'accessToken' : 'apiKey'; return data.includes('.') ? 'accessToken' : 'apiKey';

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class ChargebeeApi implements ICredentialType { export class ChargebeeApi implements ICredentialType {
name = 'chargebeeApi'; name = 'chargebeeApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class CircleCiApi implements ICredentialType { export class CircleCiApi implements ICredentialType {
name = 'circleCiApi'; name = 'circleCiApi';

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class CiscoWebexOAuth2Api implements ICredentialType { export class CiscoWebexOAuth2Api implements ICredentialType {
name = 'ciscoWebexOAuth2Api'; name = 'ciscoWebexOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Cisco Webex OAuth2 API'; displayName = 'Cisco Webex OAuth2 API';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
@ -34,7 +29,8 @@ export class CiscoWebexOAuth2Api implements ICredentialType {
displayName: 'Scope', displayName: 'Scope',
name: 'scope', name: 'scope',
type: 'hidden', 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', displayName: 'Auth URI Query Parameters',

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class ClearbitApi implements ICredentialType { export class ClearbitApi implements ICredentialType {
name = 'clearbitApi'; name = 'clearbitApi';

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class ClickUpOAuth2Api implements ICredentialType { export class ClickUpOAuth2Api implements ICredentialType {
name = 'clickUpOAuth2Api'; name = 'clickUpOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'ClickUp OAuth2 API'; displayName = 'ClickUp OAuth2 API';
documentationUrl = 'clickUp'; documentationUrl = 'clickUp';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class ClockifyApi implements ICredentialType { export class ClockifyApi implements ICredentialType {
name = 'clockifyApi'; name = 'clockifyApi';
displayName = 'Clockify API'; displayName = 'Clockify API';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class CockpitApi implements ICredentialType { export class CockpitApi implements ICredentialType {
name = 'cockpitApi'; name = 'cockpitApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class CodaApi implements ICredentialType { export class CodaApi implements ICredentialType {
name = 'codaApi'; name = 'codaApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
//https://www.contentful.com/developers/docs/references/authentication/ //https://www.contentful.com/developers/docs/references/authentication/
export class ContentfulApi implements ICredentialType { export class ContentfulApi implements ICredentialType {
@ -22,14 +19,16 @@ export class ContentfulApi implements ICredentialType {
name: 'ContentDeliveryaccessToken', name: 'ContentDeliveryaccessToken',
type: 'string', type: 'string',
default: '', 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', displayName: 'Content Preview API Access Token',
name: 'ContentPreviewaccessToken', name: 'ContentPreviewaccessToken',
type: 'string', type: 'string',
default: '', 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.',
}, },
]; ];
} }

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class ConvertKitApi implements ICredentialType { export class ConvertKitApi implements ICredentialType {
name = 'convertKitApi'; name = 'convertKitApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class CopperApi implements ICredentialType { export class CopperApi implements ICredentialType {
name = 'copperApi'; name = 'copperApi';

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class CortexApi implements ICredentialType { export class CortexApi implements ICredentialType {
name = 'cortexApi'; name = 'cortexApi';
displayName = 'Cortex API'; displayName = 'Cortex API';
@ -42,5 +41,4 @@ export class CortexApi implements ICredentialType {
url: '/api/analyzer', url: '/api/analyzer',
}, },
}; };
} }

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class CustomerIoApi implements ICredentialType { export class CustomerIoApi implements ICredentialType {
name = 'customerIoApi'; name = 'customerIoApi';
displayName = 'Customer.io API'; displayName = 'Customer.io API';
@ -53,16 +52,23 @@ export class CustomerIoApi implements ICredentialType {
description: 'Required for App API', description: 'Required for App API',
}, },
]; ];
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
// @ts-ignore // @ts-ignore
const url = requestOptions.url ? requestOptions.url : requestOptions.uri; const url = requestOptions.url ? requestOptions.url : requestOptions.uri;
if (url.includes('track') || url.includes('api.customer.io')) { 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 // @ts-ignore
Object.assign(requestOptions.headers, { 'Authorization': `Basic ${basicAuthKey}` }); Object.assign(requestOptions.headers, { Authorization: `Basic ${basicAuthKey}` });
} else if (url.includes('beta-api.customer.io')) { } else if (url.includes('beta-api.customer.io')) {
// @ts-ignore // @ts-ignore
Object.assign(requestOptions.headers, { 'Authorization': `Bearer ${credentials.appApiKey as string}` }); Object.assign(requestOptions.headers, {
Authorization: `Bearer ${credentials.appApiKey as string}`,
});
} else { } else {
throw new Error('Unknown way of authenticating'); throw new Error('Unknown way of authenticating');
} }

View file

@ -45,7 +45,8 @@ export class DeepLApi implements ICredentialType {
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { 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', url: '/usage',
}, },
}; };

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class DemioApi implements ICredentialType { export class DemioApi implements ICredentialType {
name = 'demioApi'; name = 'demioApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class DhlApi implements ICredentialType { export class DhlApi implements ICredentialType {
name = 'dhlApi'; name = 'dhlApi';

View file

@ -34,7 +34,10 @@ export class DiscourseApi implements ICredentialType {
}, },
]; ];
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
requestOptions.headers = { requestOptions.headers = {
'Api-Key': credentials.apiKey, 'Api-Key': credentials.apiKey,
'Api-Username': credentials.username, 'Api-Username': credentials.username,

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class DisqusApi implements ICredentialType { export class DisqusApi implements ICredentialType {
name = 'disqusApi'; name = 'disqusApi';
@ -13,7 +10,8 @@ export class DisqusApi implements ICredentialType {
name: 'accessToken', name: 'accessToken',
type: 'string', type: 'string',
default: '', default: '',
description: 'Visit your account details page, and grab the Access Token. See <a href="https://disqus.com/api/docs/auth/">Disqus auth</a>.', description:
'Visit your account details page, and grab the Access Token. See <a href="https://disqus.com/api/docs/auth/">Disqus auth</a>.',
}, },
]; ];
} }

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class DriftApi implements ICredentialType { export class DriftApi implements ICredentialType {
name = 'driftApi'; name = 'driftApi';
@ -13,7 +10,8 @@ export class DriftApi implements ICredentialType {
name: 'accessToken', name: 'accessToken',
type: 'string', type: 'string',
default: '', default: '',
description: 'Visit your account details page, and grab the Access Token. See <a href="https://devdocs.drift.com/docs/quick-start">Drift auth</a>.', description:
'Visit your account details page, and grab the Access Token. See <a href="https://devdocs.drift.com/docs/quick-start">Drift auth</a>.',
}, },
]; ];
} }

View file

@ -1,14 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class DriftOAuth2Api implements ICredentialType { export class DriftOAuth2Api implements ICredentialType {
name = 'driftOAuth2Api'; name = 'driftOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Drift OAuth2 API'; displayName = 'Drift OAuth2 API';
documentationUrl = 'drift'; documentationUrl = 'drift';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -3,7 +3,7 @@ import {
ICredentialTestFunction, ICredentialTestFunction,
ICredentialTestRequest, ICredentialTestRequest,
ICredentialType, ICredentialType,
INodeProperties INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class DropboxApi implements ICredentialType { export class DropboxApi implements ICredentialType {

View file

@ -1,20 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['files.content.write', 'files.content.read', 'sharing.read', 'account_info.read'];
'files.content.write',
'files.content.read',
'sharing.read',
'account_info.read',
];
export class DropboxOAuth2Api implements ICredentialType { export class DropboxOAuth2Api implements ICredentialType {
name = 'dropboxOAuth2Api'; name = 'dropboxOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Dropbox OAuth2 API'; displayName = 'Dropbox OAuth2 API';
documentationUrl = 'dropbox'; documentationUrl = 'dropbox';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class DropcontactApi implements ICredentialType { export class DropcontactApi implements ICredentialType {
name = 'dropcontactApi'; name = 'dropcontactApi';

View file

@ -44,12 +44,11 @@ export class ERPNextApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'n8n', placeholder: 'n8n',
description: 'Subdomain of cloud-hosted ERPNext instance. For example, "n8n" is the subdomain in: <code>https://n8n.erpnext.com</code>', description:
'Subdomain of cloud-hosted ERPNext instance. For example, "n8n" is the subdomain in: <code>https://n8n.erpnext.com</code>',
displayOptions: { displayOptions: {
show: { show: {
environment: [ environment: ['cloudHosted'],
'cloudHosted',
],
}, },
}, },
}, },
@ -62,9 +61,7 @@ export class ERPNextApi implements ICredentialType {
description: 'Fully qualified domain name of self-hosted ERPNext instance', description: 'Fully qualified domain name of self-hosted ERPNext instance',
displayOptions: { displayOptions: {
show: { show: {
environment: [ environment: ['selfHosted'],
'selfHosted',
],
}, },
}, },
}, },

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class EgoiApi implements ICredentialType { export class EgoiApi implements ICredentialType {
name = 'egoiApi'; name = 'egoiApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class ElasticSecurityApi implements ICredentialType { export class ElasticSecurityApi implements ICredentialType {
name = 'elasticSecurityApi'; name = 'elasticSecurityApi';
@ -31,7 +28,7 @@ export class ElasticSecurityApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'e.g. https://mydeployment.kb.us-central1.gcp.cloud.es.io:9243', 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, required: true,
}, },
]; ];

View file

@ -31,7 +31,7 @@ export class ElasticsearchApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'https://mydeployment.es.us-central1.gcp.cloud.es.io:9243', 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', displayName: 'Ignore SSL Issues',

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class EmeliaApi implements ICredentialType { export class EmeliaApi implements ICredentialType {
name = 'emeliaApi'; name = 'emeliaApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class EventbriteApi implements ICredentialType { export class EventbriteApi implements ICredentialType {
name = 'eventbriteApi'; name = 'eventbriteApi';

View file

@ -1,14 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class EventbriteOAuth2Api implements ICredentialType { export class EventbriteOAuth2Api implements ICredentialType {
name = 'eventbriteOAuth2Api'; name = 'eventbriteOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Eventbrite OAuth2 API'; displayName = 'Eventbrite OAuth2 API';
documentationUrl = 'eventbrite'; documentationUrl = 'eventbrite';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class FacebookGraphApi implements ICredentialType { export class FacebookGraphApi implements ICredentialType {
name = 'facebookGraphApi'; name = 'facebookGraphApi';
displayName = 'Facebook Graph API'; displayName = 'Facebook Graph API';

View file

@ -1,22 +1,18 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FacebookGraphAppApi implements ICredentialType { export class FacebookGraphAppApi implements ICredentialType {
name = 'facebookGraphAppApi'; name = 'facebookGraphAppApi';
displayName = 'Facebook Graph API (App)'; displayName = 'Facebook Graph API (App)';
documentationUrl = 'facebookGraphApp'; documentationUrl = 'facebookGraphApp';
extends = [ extends = ['facebookGraphApi'];
'facebookGraphApi',
];
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'App Secret', displayName: 'App Secret',
name: 'appSecret', name: 'appSecret',
type: 'string', type: 'string',
default: '', 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',
}, },
]; ];
} }

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FigmaApi implements ICredentialType { export class FigmaApi implements ICredentialType {
name = 'figmaApi'; name = 'figmaApi';

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FileMaker implements ICredentialType { export class FileMaker implements ICredentialType {
name = 'fileMaker'; name = 'fileMaker';

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FlowApi implements ICredentialType { export class FlowApi implements ICredentialType {
name = 'flowApi'; name = 'flowApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FormIoApi implements ICredentialType { export class FormIoApi implements ICredentialType {
name = 'formIoApi'; name = 'formIoApi';
@ -32,9 +29,7 @@ export class FormIoApi implements ICredentialType {
placeholder: 'https://www.mydomain.com', placeholder: 'https://www.mydomain.com',
displayOptions: { displayOptions: {
show: { show: {
environment: [ environment: ['selfHosted'],
'selfHosted',
],
}, },
}, },
}, },

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FormstackApi implements ICredentialType { export class FormstackApi implements ICredentialType {
name = 'formstackApi'; name = 'formstackApi';

View file

@ -1,15 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes: string[] = []; const scopes: string[] = [];
export class FormstackOAuth2Api implements ICredentialType { export class FormstackOAuth2Api implements ICredentialType {
name = 'formstackOAuth2Api'; name = 'formstackOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Formstack OAuth2 API'; displayName = 'Formstack OAuth2 API';
documentationUrl = 'formstackTrigger'; documentationUrl = 'formstackTrigger';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FreshdeskApi implements ICredentialType { export class FreshdeskApi implements ICredentialType {
name = 'freshdeskApi'; name = 'freshdeskApi';
@ -20,7 +16,8 @@ export class FreshdeskApi implements ICredentialType {
name: 'domain', name: 'domain',
type: 'string', type: 'string',
placeholder: 'company', 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: '', default: '',
}, },
]; ];

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class FreshserviceApi implements ICredentialType { export class FreshserviceApi implements ICredentialType {
name = 'freshserviceApi'; name = 'freshserviceApi';
@ -21,7 +18,8 @@ export class FreshserviceApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'n8n', placeholder: 'n8n',
description: 'Domain in the Freshservice org URL. For example, in <code>https://n8n.freshservice.com</code>, the domain is <code>n8n</code>', description:
'Domain in the Freshservice org URL. For example, in <code>https://n8n.freshservice.com</code>, the domain is <code>n8n</code>',
}, },
]; ];
} }

View file

@ -23,22 +23,23 @@ export class FreshworksCrmApi implements ICredentialType {
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'n8n-org', placeholder: 'n8n-org',
description: 'Domain in the Freshworks CRM org URL. For example, in <code>https://n8n-org.myfreshworks.com</code>, the domain is <code>n8n-org</code>.', description:
'Domain in the Freshworks CRM org URL. For example, in <code>https://n8n-org.myfreshworks.com</code>, the domain is <code>n8n-org</code>.',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
headers: { headers: {
'Authorization': '=Token token={{$credentials?.apiKey}}', Authorization: '=Token token={{$credentials?.apiKey}}',
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api', baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api',
url: '/tasks', url: '/tasks',
method: 'GET', method: 'GET',
}, },
}; };
} }

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class Ftp implements ICredentialType { export class Ftp implements ICredentialType {
name = 'ftp'; name = 'ftp';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/admin.directory.group', 'https://www.googleapis.com/auth/admin.directory.group',
@ -12,9 +9,7 @@ const scopes = [
export class GSuiteAdminOAuth2Api implements ICredentialType { export class GSuiteAdminOAuth2Api implements ICredentialType {
name = 'gSuiteAdminOAuth2Api'; name = 'gSuiteAdminOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'G Suite Admin OAuth2 API'; displayName = 'G Suite Admin OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GetResponseOAuth2Api implements ICredentialType { export class GetResponseOAuth2Api implements ICredentialType {
name = 'getResponseOAuth2Api'; name = 'getResponseOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'GetResponse OAuth2 API'; displayName = 'GetResponse OAuth2 API';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {

View file

@ -27,7 +27,10 @@ export class GhostAdminApi implements ICredentialType {
}, },
]; ];
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
const [id, secret] = (credentials.apiKey as string).split(':'); const [id, secret] = (credentials.apiKey as string).split(':');
const token = jwt.sign({}, Buffer.from(secret, 'hex'), { const token = jwt.sign({}, Buffer.from(secret, 'hex'), {
keyid: id, keyid: id,

View file

@ -25,10 +25,13 @@ export class GhostContentApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> { async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
requestOptions.qs = { requestOptions.qs = {
...requestOptions.qs, ...requestOptions.qs,
'key': credentials.apiKey, key: credentials.apiKey,
}; };
return requestOptions; return requestOptions;
} }

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GitPassword implements ICredentialType { export class GitPassword implements ICredentialType {
name = 'gitPassword'; name = 'gitPassword';

View file

@ -1,14 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GithubOAuth2Api implements ICredentialType { export class GithubOAuth2Api implements ICredentialType {
name = 'githubOAuth2Api'; name = 'githubOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'GitHub OAuth2 API'; displayName = 'GitHub OAuth2 API';
documentationUrl = 'github'; documentationUrl = 'github';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
@ -29,21 +23,24 @@ export class GithubOAuth2Api implements ICredentialType {
displayName: 'Authorization URL', displayName: 'Authorization URL',
name: 'authUrl', name: 'authUrl',
type: 'hidden', 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, required: true,
}, },
{ {
displayName: 'Access Token URL', displayName: 'Access Token URL',
name: 'accessTokenUrl', name: 'accessTokenUrl',
type: 'hidden', 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, required: true,
}, },
{ {
displayName: 'Scope', displayName: 'Scope',
name: 'scope', name: 'scope',
type: 'hidden', 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', displayName: 'Auth URI Query Parameters',

View file

@ -5,7 +5,6 @@ import {
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
export class GitlabApi implements ICredentialType { export class GitlabApi implements ICredentialType {
name = 'gitlabApi'; name = 'gitlabApi';
displayName = 'GitLab API'; displayName = 'GitLab API';

View file

@ -1,14 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GitlabOAuth2Api implements ICredentialType { export class GitlabOAuth2Api implements ICredentialType {
name = 'gitlabOAuth2Api'; name = 'gitlabOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'GitLab OAuth2 API'; displayName = 'GitLab OAuth2 API';
documentationUrl = 'gitlab'; documentationUrl = 'gitlab';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/gmail.labels', 'https://www.googleapis.com/auth/gmail.labels',
@ -12,12 +9,9 @@ const scopes = [
'https://www.googleapis.com/auth/gmail.compose', 'https://www.googleapis.com/auth/gmail.compose',
]; ];
export class GmailOAuth2Api implements ICredentialType { export class GmailOAuth2Api implements ICredentialType {
name = 'gmailOAuth2'; name = 'gmailOAuth2';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Gmail OAuth2 API'; displayName = 'Gmail OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GoToWebinarOAuth2Api implements ICredentialType { export class GoToWebinarOAuth2Api implements ICredentialType {
name = 'goToWebinarOAuth2Api'; name = 'goToWebinarOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'GoToWebinar OAuth2 API'; displayName = 'GoToWebinar OAuth2 API';
documentationUrl = 'goToWebinar'; documentationUrl = 'goToWebinar';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/adwords'];
'https://www.googleapis.com/auth/adwords',
];
export class GoogleAdsOAuth2Api implements ICredentialType { export class GoogleAdsOAuth2Api implements ICredentialType {
name = 'googleAdsOAuth2Api'; name = 'googleAdsOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Ads OAuth2 API'; displayName = 'Google Ads OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
@ -28,5 +21,4 @@ export class GoogleAdsOAuth2Api implements ICredentialType {
default: scopes.join(' '), default: scopes.join(' '),
}, },
]; ];
} }

View file

@ -1,19 +1,13 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/analytics', 'https://www.googleapis.com/auth/analytics',
'https://www.googleapis.com/auth/analytics.readonly', 'https://www.googleapis.com/auth/analytics.readonly',
]; ];
export class GoogleAnalyticsOAuth2Api implements ICredentialType { export class GoogleAnalyticsOAuth2Api implements ICredentialType {
name = 'googleAnalyticsOAuth2'; name = 'googleAnalyticsOAuth2';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Analytics OAuth2 API'; displayName = 'Google Analytics OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,8 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GoogleApi implements ICredentialType { export class GoogleApi implements ICredentialType {
name = 'googleApi'; name = 'googleApi';
@ -24,8 +20,10 @@ export class GoogleApi implements ICredentialType {
name: 'privateKey', name: 'privateKey',
type: 'string', type: 'string',
default: '', default: '',
placeholder: '-----BEGIN PRIVATE KEY-----\nXIYEvQIBADANBg<...>0IhA7TMoGYPQc=\n-----END PRIVATE KEY-----\n', placeholder:
description: 'Enter the private key located in the JSON file downloaded from Google Cloud Console', '-----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, required: true,
}, },
{ {
@ -41,12 +39,11 @@ export class GoogleApi implements ICredentialType {
default: '', default: '',
displayOptions: { displayOptions: {
show: { show: {
inpersonate: [ inpersonate: [true],
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',
}, },
]; ];
} }

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/bigquery'];
'https://www.googleapis.com/auth/bigquery',
];
export class GoogleBigQueryOAuth2Api implements ICredentialType { export class GoogleBigQueryOAuth2Api implements ICredentialType {
name = 'googleBigQueryOAuth2Api'; name = 'googleBigQueryOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google BigQuery OAuth2 API'; displayName = 'Google BigQuery OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/books'];
'https://www.googleapis.com/auth/books',
];
export class GoogleBooksOAuth2Api implements ICredentialType { export class GoogleBooksOAuth2Api implements ICredentialType {
name = 'googleBooksOAuth2Api'; name = 'googleBooksOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Books OAuth2 API'; displayName = 'Google Books OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar',
@ -10,9 +7,7 @@ const scopes = [
export class GoogleCalendarOAuth2Api implements ICredentialType { export class GoogleCalendarOAuth2Api implements ICredentialType {
name = 'googleCalendarOAuth2Api'; name = 'googleCalendarOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Calendar OAuth2 API'; displayName = 'Google Calendar OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/cloud-language', 'https://www.googleapis.com/auth/cloud-language',
@ -10,9 +7,7 @@ const scopes = [
export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType { export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType {
name = 'googleCloudNaturalLanguageOAuth2Api'; name = 'googleCloudNaturalLanguageOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Cloud Natural Language OAuth2 API'; displayName = 'Google Cloud Natural Language OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/contacts'];
'https://www.googleapis.com/auth/contacts',
];
export class GoogleContactsOAuth2Api implements ICredentialType { export class GoogleContactsOAuth2Api implements ICredentialType {
name = 'googleContactsOAuth2Api'; name = 'googleContactsOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Contacts OAuth2 API'; displayName = 'Google Contacts OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/documents', 'https://www.googleapis.com/auth/documents',
@ -11,9 +8,7 @@ const scopes = [
export class GoogleDocsOAuth2Api implements ICredentialType { export class GoogleDocsOAuth2Api implements ICredentialType {
name = 'googleDocsOAuth2Api'; name = 'googleDocsOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Docs OAuth2 API'; displayName = 'Google Docs OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/drive',
@ -11,9 +8,7 @@ const scopes = [
export class GoogleDriveOAuth2Api implements ICredentialType { export class GoogleDriveOAuth2Api implements ICredentialType {
name = 'googleDriveOAuth2Api'; name = 'googleDriveOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Drive OAuth2 API'; displayName = 'Google Drive OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/datastore', 'https://www.googleapis.com/auth/datastore',
@ -10,9 +7,7 @@ const scopes = [
export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType { export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType {
name = 'googleFirebaseCloudFirestoreOAuth2Api'; name = 'googleFirebaseCloudFirestoreOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Firebase Cloud Firestore OAuth2 API'; displayName = 'Google Firebase Cloud Firestore OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/userinfo.email',
@ -11,9 +8,7 @@ const scopes = [
export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType { export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType {
name = 'googleFirebaseRealtimeDatabaseOAuth2Api'; name = 'googleFirebaseRealtimeDatabaseOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Firebase Realtime Database OAuth2 API'; displayName = 'Google Firebase Realtime Database OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,13 +1,8 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GoogleOAuth2Api implements ICredentialType { export class GoogleOAuth2Api implements ICredentialType {
name = 'googleOAuth2Api'; name = 'googleOAuth2Api';
extends = [ extends = ['oAuth2Api'];
'oAuth2Api',
];
displayName = 'Google OAuth2 API'; displayName = 'Google OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
icon = 'file:Google.svg'; icon = 'file:Google.svg';

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/userinfo.email'];
'https://www.googleapis.com/auth/userinfo.email',
];
export class GooglePerspectiveOAuth2Api implements ICredentialType { export class GooglePerspectiveOAuth2Api implements ICredentialType {
name = 'googlePerspectiveOAuth2Api'; name = 'googlePerspectiveOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Perspective OAuth2 API'; displayName = 'Google Perspective OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/drive.file',
@ -10,9 +7,7 @@ const scopes = [
export class GoogleSheetsOAuth2Api implements ICredentialType { export class GoogleSheetsOAuth2Api implements ICredentialType {
name = 'googleSheetsOAuth2Api'; name = 'googleSheetsOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Sheets OAuth2 API'; displayName = 'Google Sheets OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = [
'https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/drive.file',
@ -10,9 +7,7 @@ const scopes = [
export class GoogleSlidesOAuth2Api implements ICredentialType { export class GoogleSlidesOAuth2Api implements ICredentialType {
name = 'googleSlidesOAuth2Api'; name = 'googleSlidesOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Slides OAuth2 API'; displayName = 'Google Slides OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,11 +1,6 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/tasks'];
'https://www.googleapis.com/auth/tasks',
];
export class GoogleTasksOAuth2Api implements ICredentialType { export class GoogleTasksOAuth2Api implements ICredentialType {
name = 'googleTasksOAuth2Api'; name = 'googleTasksOAuth2Api';

View file

@ -1,17 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
const scopes = [ const scopes = ['https://www.googleapis.com/auth/cloud-translation'];
'https://www.googleapis.com/auth/cloud-translation',
];
export class GoogleTranslateOAuth2Api implements ICredentialType { export class GoogleTranslateOAuth2Api implements ICredentialType {
name = 'googleTranslateOAuth2Api'; name = 'googleTranslateOAuth2Api';
extends = [ extends = ['googleOAuth2Api'];
'googleOAuth2Api',
];
displayName = 'Google Translate OAuth2 API'; displayName = 'Google Translate OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GotifyApi implements ICredentialType { export class GotifyApi implements ICredentialType {
name = 'gotifyApi'; name = 'gotifyApi';

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GristApi implements ICredentialType { export class GristApi implements ICredentialType {
name = 'gristApi'; name = 'gristApi';
@ -44,9 +41,7 @@ export class GristApi implements ICredentialType {
description: 'Custom subdomain of your team', description: 'Custom subdomain of your team',
displayOptions: { displayOptions: {
show: { show: {
planType: [ planType: ['paid'],
'paid',
],
}, },
}, },
}, },
@ -57,12 +52,11 @@ export class GristApi implements ICredentialType {
default: '', default: '',
placeholder: 'http://localhost:8484', placeholder: 'http://localhost:8484',
required: true, 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: { displayOptions: {
show: { show: {
planType: [ planType: ['selfHosted'],
'selfHosted',
],
}, },
}, },
}, },

View file

@ -1,7 +1,4 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class GumroadApi implements ICredentialType { export class GumroadApi implements ICredentialType {
name = 'gumroadApi'; name = 'gumroadApi';

View file

@ -1,13 +1,10 @@
import { import { ICredentialType, INodeProperties } from 'n8n-workflow';
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class HaloPSAApi implements ICredentialType { export class HaloPSAApi implements ICredentialType {
name = 'haloPSAApi'; name = 'haloPSAApi';
displayName = 'HaloPSA API'; displayName = 'HaloPSA API';
documentationUrl = 'halopsa'; documentationUrl = 'halopsa';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Hosting Type', displayName: 'Hosting Type',
name: 'hostingType', name: 'hostingType',
@ -61,9 +58,7 @@ export class HaloPSAApi implements ICredentialType {
type: 'string', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
hostingType: [ hostingType: ['hostedHalo'],
'hostedHalo',
],
}, },
}, },
default: '', default: '',

Some files were not shown because too many files have changed in this diff Show more