refactor(core): Remove linting exceptions in nodes-base (#4794)

*  enabled array-type

*  await-thenable on

*  ban-types on

*  default-param-last on

*  dot-notation on

*  member-delimiter-style on

*  no-duplicate-imports on

*  no-empty-interface on

*  no-floating-promises on

*  no-for-in-array on

*  no-invalid-void-type on

*  no-loop-func on

*  no-shadow on

*  ban-ts-comment re enabled

*  @typescript-eslint/lines-between-class-members on

* address my own comment

* @typescript-eslint/return-await on

* @typescript-eslint/promise-function-async on

* @typescript-eslint/no-unnecessary-boolean-literal-compare on

* @typescript-eslint/no-unnecessary-type-assertion on

* prefer-const on

* @typescript-eslint/prefer-optional-chain on

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Michael Kret
2022-12-02 22:54:28 +02:00
committed by GitHub
parent 8101c05d6f
commit 61e26804ba
796 changed files with 3735 additions and 2847 deletions

View File

@@ -14,31 +14,14 @@ module.exports = {
'id-denylist': 'off', 'id-denylist': 'off',
'import/extensions': 'off', 'import/extensions': 'off',
'import/order': 'off', 'import/order': 'off',
'prefer-const': 'off',
'prefer-spread': 'off', 'prefer-spread': 'off',
'import/no-extraneous-dependencies': 'off', 'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/default-param-last': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/naming-convention': ['error', { selector: 'memberLike', format: null }], '@typescript-eslint/naming-convention': ['error', { selector: 'memberLike', format: null }],
'@typescript-eslint/no-duplicate-imports': 'off', '@typescript-eslint/no-explicit-any': 'off', //812 warnings, better to fix in separate PR
'@typescript-eslint/no-empty-interface': 'off', '@typescript-eslint/no-non-null-assertion': 'off', //665 errors, better to fix in separate PR
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-for-in-array': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/no-loop-func': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-throw-literal': 'off', '@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
'@typescript-eslint/no-unnecessary-qualifier': 'off', '@typescript-eslint/no-unnecessary-qualifier': 'off',
'@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-assignment': 'off',
@@ -49,11 +32,8 @@ module.exports = {
'@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off', '@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/restrict-plus-operands': 'off', '@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off', '@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/unbound-method': 'off', '@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }], '@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
}, },

View File

@@ -8,8 +8,11 @@ import {
export class ActionNetworkApi implements ICredentialType { export class ActionNetworkApi implements ICredentialType {
name = 'actionNetworkApi'; name = 'actionNetworkApi';
displayName = 'Action Network API'; displayName = 'Action Network API';
documentationUrl = 'actionNetwork'; documentationUrl = 'actionNetwork';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -19,12 +22,14 @@ export class ActionNetworkApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://actionnetwork.org/api/v2', baseURL: 'https://actionnetwork.org/api/v2',
url: '/events?per_page=1', url: '/events?per_page=1',
}, },
}; };
async authenticate( async authenticate(
credentials: ICredentialDataDecryptedObject, credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions, requestOptions: IHttpRequestOptions,

View File

@@ -7,8 +7,11 @@ import {
export class ActiveCampaignApi implements ICredentialType { export class ActiveCampaignApi implements ICredentialType {
name = 'activeCampaignApi'; name = 'activeCampaignApi';
displayName = 'ActiveCampaign API'; displayName = 'ActiveCampaign API';
documentationUrl = 'activeCampaign'; documentationUrl = 'activeCampaign';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API URL', displayName: 'API URL',
@@ -24,6 +27,7 @@ export class ActiveCampaignApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -32,6 +36,7 @@ export class ActiveCampaignApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '={{$credentials.apiUrl}}', baseURL: '={{$credentials.apiUrl}}',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AcuitySchedulingApi implements ICredentialType { export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi'; name = 'acuitySchedulingApi';
displayName = 'Acuity Scheduling API'; displayName = 'Acuity Scheduling API';
documentationUrl = 'acuityScheduling'; documentationUrl = 'acuityScheduling';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'User ID', displayName: 'User ID',

View File

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

View File

@@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
export class AdaloApi implements ICredentialType { export class AdaloApi implements ICredentialType {
name = 'adaloApi'; name = 'adaloApi';
displayName = 'Adalo API'; displayName = 'Adalo API';
documentationUrl = 'adalo'; documentationUrl = 'adalo';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AffinityApi implements ICredentialType { export class AffinityApi implements ICredentialType {
name = 'affinityApi'; name = 'affinityApi';
displayName = 'Affinity API'; displayName = 'Affinity API';
documentationUrl = 'affinity'; documentationUrl = 'affinity';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AgileCrmApi implements ICredentialType { export class AgileCrmApi implements ICredentialType {
name = 'agileCrmApi'; name = 'agileCrmApi';
displayName = 'AgileCRM API'; displayName = 'AgileCRM API';
documentationUrl = 'agileCrm'; documentationUrl = 'agileCrm';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Email', displayName: 'Email',

View File

@@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
export class AirtableApi implements ICredentialType { export class AirtableApi implements ICredentialType {
name = 'airtableApi'; name = 'airtableApi';
displayName = 'Airtable API'; displayName = 'Airtable API';
documentationUrl = 'airtable'; documentationUrl = 'airtable';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -13,6 +16,7 @@ export class AirtableApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Amqp implements ICredentialType { export class Amqp implements ICredentialType {
name = 'amqp'; name = 'amqp';
displayName = 'AMQP'; displayName = 'AMQP';
documentationUrl = 'amqp'; documentationUrl = 'amqp';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Hostname', displayName: 'Hostname',

View File

@@ -7,8 +7,11 @@ import {
export class ApiTemplateIoApi implements ICredentialType { export class ApiTemplateIoApi implements ICredentialType {
name = 'apiTemplateIoApi'; name = 'apiTemplateIoApi';
displayName = 'APITemplate.io API'; displayName = 'APITemplate.io API';
documentationUrl = 'apiTemplateIo'; documentationUrl = 'apiTemplateIo';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -18,6 +21,7 @@ export class ApiTemplateIoApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -26,6 +30,7 @@ export class ApiTemplateIoApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://api.apitemplate.io/v1', baseURL: 'https://api.apitemplate.io/v1',

View File

@@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
export class AsanaApi implements ICredentialType { export class AsanaApi implements ICredentialType {
name = 'asanaApi'; name = 'asanaApi';
displayName = 'Asana API'; displayName = 'Asana API';
documentationUrl = 'asana'; documentationUrl = 'asana';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

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

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutomizyApi implements ICredentialType { export class AutomizyApi implements ICredentialType {
name = 'automizyApi'; name = 'automizyApi';
displayName = 'Automizy API'; displayName = 'Automizy API';
documentationUrl = 'automizy'; documentationUrl = 'automizy';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Token', displayName: 'API Token',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class AutopilotApi implements ICredentialType { export class AutopilotApi implements ICredentialType {
name = 'autopilotApi'; name = 'autopilotApi';
displayName = 'Autopilot API'; displayName = 'Autopilot API';
documentationUrl = 'autopilot'; documentationUrl = 'autopilot';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -1,7 +1,8 @@
import { Request, sign } from 'aws4'; import { Request, sign } from 'aws4';
import { ICredentialTestRequest } from 'n8n-workflow';
import { import {
ICredentialDataDecryptedObject, ICredentialDataDecryptedObject,
ICredentialTestRequest,
ICredentialType, ICredentialType,
IDataObject, IDataObject,
IHttpRequestOptions, IHttpRequestOptions,
@@ -125,9 +126,13 @@ export type AWSRegion = typeof regions[number]['name'];
export class Aws implements ICredentialType { export class Aws implements ICredentialType {
name = 'aws'; name = 'aws';
displayName = 'AWS'; displayName = 'AWS';
documentationUrl = 'aws'; documentationUrl = 'aws';
icon = 'file:AWS.svg'; icon = 'file:AWS.svg';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Region', displayName: 'Region',
@@ -302,8 +307,8 @@ export class Aws implements ICredentialType {
} else { } else {
// If no endpoint is set, we try to decompose the path and use the default endpoint // If no endpoint is set, we try to decompose the path and use the default endpoint
const customUrl = new URL(`${requestOptions.baseURL!}${requestOptions.url}${path ?? ''}`); const customUrl = new URL(`${requestOptions.baseURL!}${requestOptions.url}${path ?? ''}`);
service = customUrl.hostname.split('.')[0] as string; service = customUrl.hostname.split('.')[0];
region = customUrl.hostname.split('.')[1] as string; region = customUrl.hostname.split('.')[1];
if (service === 'sts') { if (service === 'sts') {
try { try {
customUrl.searchParams.set('Action', 'GetCallerIdentity'); customUrl.searchParams.set('Action', 'GetCallerIdentity');

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BambooHrApi implements ICredentialType { export class BambooHrApi implements ICredentialType {
name = 'bambooHrApi'; name = 'bambooHrApi';
displayName = 'BambooHR API'; displayName = 'BambooHR API';
documentationUrl = 'bambooHr'; documentationUrl = 'bambooHr';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Subdomain', displayName: 'Subdomain',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BannerbearApi implements ICredentialType { export class BannerbearApi implements ICredentialType {
name = 'bannerbearApi'; name = 'bannerbearApi';
displayName = 'Bannerbear API'; displayName = 'Bannerbear API';
documentationUrl = 'bannerbear'; documentationUrl = 'bannerbear';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Project API Key', displayName: 'Project API Key',

View File

@@ -4,7 +4,9 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BaserowApi implements ICredentialType { export class BaserowApi implements ICredentialType {
name = 'baserowApi'; name = 'baserowApi';
displayName = 'Baserow API'; displayName = 'Baserow API';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Host', displayName: 'Host',

View File

@@ -7,8 +7,11 @@ import {
export class BeeminderApi implements ICredentialType { export class BeeminderApi implements ICredentialType {
name = 'beeminderApi'; name = 'beeminderApi';
displayName = 'Beeminder API'; displayName = 'Beeminder API';
documentationUrl = 'beeminder'; documentationUrl = 'beeminder';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'User', displayName: 'User',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitbucketApi implements ICredentialType { export class BitbucketApi implements ICredentialType {
name = 'bitbucketApi'; name = 'bitbucketApi';
displayName = 'Bitbucket API'; displayName = 'Bitbucket API';
documentationUrl = 'bitbucket'; documentationUrl = 'bitbucket';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Username', displayName: 'Username',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitlyApi implements ICredentialType { export class BitlyApi implements ICredentialType {
name = 'bitlyApi'; name = 'bitlyApi';
displayName = 'Bitly API'; displayName = 'Bitly API';
documentationUrl = 'bitly'; documentationUrl = 'bitly';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

@@ -2,9 +2,13 @@ import { 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 = ['oAuth2Api']; extends = ['oAuth2Api'];
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',

View File

@@ -4,8 +4,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BitwardenApi implements ICredentialType { export class BitwardenApi implements ICredentialType {
name = 'bitwardenApi'; name = 'bitwardenApi';
displayName = 'Bitwarden API'; displayName = 'Bitwarden API';
documentationUrl = 'bitwarden'; documentationUrl = 'bitwarden';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Client ID', displayName: 'Client ID',

View File

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

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BrandfetchApi implements ICredentialType { export class BrandfetchApi implements ICredentialType {
name = 'brandfetchApi'; name = 'brandfetchApi';
displayName = 'Brandfetch API'; displayName = 'Brandfetch API';
documentationUrl = 'brandfetch'; documentationUrl = 'brandfetch';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class BubbleApi implements ICredentialType { export class BubbleApi implements ICredentialType {
name = 'bubbleApi'; name = 'bubbleApi';
displayName = 'Bubble API'; displayName = 'Bubble API';
documentationUrl = 'bubble'; documentationUrl = 'bubble';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Token', displayName: 'API Token',

View File

@@ -7,8 +7,11 @@ import {
export class CalApi implements ICredentialType { export class CalApi implements ICredentialType {
name = 'calApi'; name = 'calApi';
displayName = 'Cal API'; displayName = 'Cal API';
documentationUrl = 'cal'; documentationUrl = 'cal';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -8,8 +8,11 @@ import {
export class CalendlyApi implements ICredentialType { export class CalendlyApi implements ICredentialType {
name = 'calendlyApi'; name = 'calendlyApi';
displayName = 'Calendly API'; displayName = 'Calendly API';
documentationUrl = 'calendly'; documentationUrl = 'calendly';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
// Change name to Personal Access Token once API Keys // Change name to Personal Access Token once API Keys
// are deprecated // are deprecated
@@ -21,6 +24,7 @@ export class CalendlyApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
async authenticate( async authenticate(
credentials: ICredentialDataDecryptedObject, credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions, requestOptions: IHttpRequestOptions,
@@ -31,7 +35,7 @@ export class CalendlyApi implements ICredentialType {
// 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
if (tokenType === 'accessToken') { if (tokenType === 'accessToken') {
requestOptions.headers!['Authorization'] = `Bearer ${apiKey}`; requestOptions.headers!.Authorization = `Bearer ${apiKey}`;
} else { } else {
requestOptions.headers!['X-TOKEN'] = apiKey; requestOptions.headers!['X-TOKEN'] = apiKey;
} }

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ChargebeeApi implements ICredentialType { export class ChargebeeApi implements ICredentialType {
name = 'chargebeeApi'; name = 'chargebeeApi';
displayName = 'Chargebee API'; displayName = 'Chargebee API';
documentationUrl = 'chargebee'; documentationUrl = 'chargebee';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Account Name', displayName: 'Account Name',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CircleCiApi implements ICredentialType { export class CircleCiApi implements ICredentialType {
name = 'circleCiApi'; name = 'circleCiApi';
displayName = 'CircleCI API'; displayName = 'CircleCI API';
documentationUrl = 'circleCi'; documentationUrl = 'circleCi';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Personal API Token', displayName: 'Personal API Token',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CiscoWebexOAuth2Api implements ICredentialType { export class CiscoWebexOAuth2Api implements ICredentialType {
name = 'ciscoWebexOAuth2Api'; name = 'ciscoWebexOAuth2Api';
extends = ['oAuth2Api']; extends = ['oAuth2Api'];
displayName = 'Cisco Webex OAuth2 API'; displayName = 'Cisco Webex OAuth2 API';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',

View File

@@ -7,8 +7,11 @@ import {
export class CitrixAdcApi implements ICredentialType { export class CitrixAdcApi implements ICredentialType {
name = 'citrixAdcApi'; name = 'citrixAdcApi';
displayName = 'Citrix ADC API'; displayName = 'Citrix ADC API';
documentationUrl = 'citrix'; documentationUrl = 'citrix';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'URL', displayName: 'URL',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ClearbitApi implements ICredentialType { export class ClearbitApi implements ICredentialType {
name = 'clearbitApi'; name = 'clearbitApi';
displayName = 'Clearbit API'; displayName = 'Clearbit API';
documentationUrl = 'clearbit'; documentationUrl = 'clearbit';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -7,8 +7,11 @@ import {
export class ClickUpApi implements ICredentialType { export class ClickUpApi implements ICredentialType {
name = 'clickUpApi'; name = 'clickUpApi';
displayName = 'ClickUp API'; displayName = 'ClickUp API';
documentationUrl = 'clickUp'; documentationUrl = 'clickUp';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',
@@ -18,6 +21,7 @@ export class ClickUpApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {

View File

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

View File

@@ -7,8 +7,11 @@ import {
export class ClockifyApi implements ICredentialType { export class ClockifyApi implements ICredentialType {
name = 'clockifyApi'; name = 'clockifyApi';
displayName = 'Clockify API'; displayName = 'Clockify API';
documentationUrl = 'clockify'; documentationUrl = 'clockify';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -18,6 +21,7 @@ export class ClockifyApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -26,6 +30,7 @@ export class ClockifyApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://api.clockify.me/api/v1', baseURL: 'https://api.clockify.me/api/v1',

View File

@@ -7,8 +7,11 @@ import {
export class CloudflareApi implements ICredentialType { export class CloudflareApi implements ICredentialType {
name = 'cloudflareApi'; name = 'cloudflareApi';
displayName = 'Cloudflare API'; displayName = 'Cloudflare API';
documentationUrl = 'cloudflare'; documentationUrl = 'cloudflare';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Token', displayName: 'API Token',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CockpitApi implements ICredentialType { export class CockpitApi implements ICredentialType {
name = 'cockpitApi'; name = 'cockpitApi';
displayName = 'Cockpit API'; displayName = 'Cockpit API';
documentationUrl = 'cockpit'; documentationUrl = 'cockpit';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Cockpit URL', displayName: 'Cockpit URL',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CodaApi implements ICredentialType { export class CodaApi implements ICredentialType {
name = 'codaApi'; name = 'codaApi';
displayName = 'Coda API'; displayName = 'Coda API';
documentationUrl = 'coda'; documentationUrl = 'coda';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

@@ -3,8 +3,11 @@ import { 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 {
name = 'contentfulApi'; name = 'contentfulApi';
displayName = 'Contenful API'; displayName = 'Contenful API';
documentationUrl = 'contentful'; documentationUrl = 'contentful';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Space ID', displayName: 'Space ID',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ConvertKitApi implements ICredentialType { export class ConvertKitApi implements ICredentialType {
name = 'convertKitApi'; name = 'convertKitApi';
displayName = 'ConvertKit API'; displayName = 'ConvertKit API';
documentationUrl = 'convertKit'; documentationUrl = 'convertKit';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Secret', displayName: 'API Secret',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CopperApi implements ICredentialType { export class CopperApi implements ICredentialType {
name = 'copperApi'; name = 'copperApi';
displayName = 'Copper API'; displayName = 'Copper API';
documentationUrl = 'copper'; documentationUrl = 'copper';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -7,8 +7,11 @@ import {
export class CortexApi implements ICredentialType { export class CortexApi implements ICredentialType {
name = 'cortexApi'; name = 'cortexApi';
displayName = 'Cortex API'; displayName = 'Cortex API';
documentationUrl = 'cortex'; documentationUrl = 'cortex';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class CrateDb implements ICredentialType { export class CrateDb implements ICredentialType {
name = 'crateDb'; name = 'crateDb';
displayName = 'CrateDB'; displayName = 'CrateDB';
documentationUrl = 'crateDb'; documentationUrl = 'crateDb';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Host', displayName: 'Host',

View File

@@ -7,8 +7,11 @@ import {
export class CustomerIoApi implements ICredentialType { export class CustomerIoApi implements ICredentialType {
name = 'customerIoApi'; name = 'customerIoApi';
displayName = 'Customer.io API'; displayName = 'Customer.io API';
documentationUrl = 'customerIo'; documentationUrl = 'customerIo';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Tracking API Key', displayName: 'Tracking API Key',
@@ -52,6 +55,7 @@ export class CustomerIoApi implements ICredentialType {
description: 'Required for App API', description: 'Required for App API',
}, },
]; ];
async authenticate( async authenticate(
credentials: ICredentialDataDecryptedObject, credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions, requestOptions: IHttpRequestOptions,

View File

@@ -7,8 +7,11 @@ import {
export class DeepLApi implements ICredentialType { export class DeepLApi implements ICredentialType {
name = 'deepLApi'; name = 'deepLApi';
displayName = 'DeepL API'; displayName = 'DeepL API';
documentationUrl = 'deepL'; documentationUrl = 'deepL';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DemioApi implements ICredentialType { export class DemioApi implements ICredentialType {
name = 'demioApi'; name = 'demioApi';
displayName = 'Demio API'; displayName = 'Demio API';
documentationUrl = 'demio'; documentationUrl = 'demio';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DhlApi implements ICredentialType { export class DhlApi implements ICredentialType {
name = 'dhlApi'; name = 'dhlApi';
displayName = 'DHL API'; displayName = 'DHL API';
documentationUrl = 'dhl'; documentationUrl = 'dhl';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -8,8 +8,11 @@ import {
export class DiscourseApi implements ICredentialType { export class DiscourseApi implements ICredentialType {
name = 'discourseApi'; name = 'discourseApi';
displayName = 'Discourse API'; displayName = 'Discourse API';
documentationUrl = 'discourse'; documentationUrl = 'discourse';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'URL', displayName: 'URL',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DisqusApi implements ICredentialType { export class DisqusApi implements ICredentialType {
name = 'disqusApi'; name = 'disqusApi';
displayName = 'Disqus API'; displayName = 'Disqus API';
documentationUrl = 'disqus'; documentationUrl = 'disqus';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class DriftApi implements ICredentialType { export class DriftApi implements ICredentialType {
name = 'driftApi'; name = 'driftApi';
displayName = 'Drift API'; displayName = 'Drift API';
documentationUrl = 'drift'; documentationUrl = 'drift';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Personal Access Token', displayName: 'Personal Access Token',

View File

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

View File

@@ -7,8 +7,11 @@ import {
export class DropboxApi implements ICredentialType { export class DropboxApi implements ICredentialType {
name = 'dropboxApi'; name = 'dropboxApi';
displayName = 'Dropbox API'; displayName = 'Dropbox API';
documentationUrl = 'dropbox'; documentationUrl = 'dropbox';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',
@@ -34,6 +37,7 @@ export class DropboxApi implements ICredentialType {
default: 'full', default: 'full',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {

View File

@@ -4,9 +4,13 @@ const scopes = ['files.content.write', 'files.content.read', 'sharing.read', 'ac
export class DropboxOAuth2Api implements ICredentialType { export class DropboxOAuth2Api implements ICredentialType {
name = 'dropboxOAuth2Api'; name = 'dropboxOAuth2Api';
extends = ['oAuth2Api']; extends = ['oAuth2Api'];
displayName = 'Dropbox OAuth2 API'; displayName = 'Dropbox OAuth2 API';
documentationUrl = 'dropbox'; documentationUrl = 'dropbox';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',

View File

@@ -7,8 +7,11 @@ import {
export class DropcontactApi implements ICredentialType { export class DropcontactApi implements ICredentialType {
name = 'dropcontactApi'; name = 'dropcontactApi';
displayName = 'Dropcontact API'; displayName = 'Dropcontact API';
documentationUrl = 'dropcontact'; documentationUrl = 'dropcontact';
properties = [ properties = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -17,6 +20,7 @@ export class DropcontactApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -26,6 +30,7 @@ export class DropcontactApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://api.dropcontact.io', baseURL: 'https://api.dropcontact.io',

View File

@@ -7,8 +7,11 @@ import {
export class ERPNextApi implements ICredentialType { export class ERPNextApi implements ICredentialType {
name = 'erpNextApi'; name = 'erpNextApi';
displayName = 'ERPNext API'; displayName = 'ERPNext API';
documentationUrl = 'erpnext'; documentationUrl = 'erpnext';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -74,6 +77,7 @@ export class ERPNextApi implements ICredentialType {
default: false, default: false,
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -82,6 +86,7 @@ export class ERPNextApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: baseURL:

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EgoiApi implements ICredentialType { export class EgoiApi implements ICredentialType {
name = 'egoiApi'; name = 'egoiApi';
displayName = 'E-goi API';
displayName = 'E-Goi API';
documentationUrl = 'egoi'; documentationUrl = 'egoi';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
// The credentials to get from user and save encrypted. // The credentials to get from user and save encrypted.
// Properties can be defined exactly in the same way // Properties can be defined exactly in the same way

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class ElasticSecurityApi implements ICredentialType { export class ElasticSecurityApi implements ICredentialType {
name = 'elasticSecurityApi'; name = 'elasticSecurityApi';
displayName = 'Elastic Security API'; displayName = 'Elastic Security API';
documentationUrl = 'elasticSecurity'; documentationUrl = 'elasticSecurity';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Username', displayName: 'Username',

View File

@@ -7,8 +7,11 @@ import {
export class ElasticsearchApi implements ICredentialType { export class ElasticsearchApi implements ICredentialType {
name = 'elasticsearchApi'; name = 'elasticsearchApi';
displayName = 'Elasticsearch API'; displayName = 'Elasticsearch API';
documentationUrl = 'elasticsearch'; documentationUrl = 'elasticsearch';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Username', displayName: 'Username',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EmeliaApi implements ICredentialType { export class EmeliaApi implements ICredentialType {
name = 'emeliaApi'; name = 'emeliaApi';
displayName = 'Emelia API'; displayName = 'Emelia API';
documentationUrl = 'emelia'; documentationUrl = 'emelia';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class EventbriteApi implements ICredentialType { export class EventbriteApi implements ICredentialType {
name = 'eventbriteApi'; name = 'eventbriteApi';
displayName = 'Eventbrite API'; displayName = 'Eventbrite API';
documentationUrl = 'eventbrite'; documentationUrl = 'eventbrite';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Private Key', displayName: 'Private Key',

View File

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

View File

@@ -7,8 +7,11 @@ import {
export class FacebookGraphApi implements ICredentialType { export class FacebookGraphApi implements ICredentialType {
name = 'facebookGraphApi'; name = 'facebookGraphApi';
displayName = 'Facebook Graph API'; displayName = 'Facebook Graph API';
documentationUrl = 'facebookGraph'; documentationUrl = 'facebookGraph';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',
@@ -18,6 +21,7 @@ export class FacebookGraphApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -26,6 +30,7 @@ export class FacebookGraphApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://graph.facebook.com/v8.0', baseURL: 'https://graph.facebook.com/v8.0',

View File

@@ -2,9 +2,13 @@ import { 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 = ['facebookGraphApi']; extends = ['facebookGraphApi'];
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'App Secret', displayName: 'App Secret',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FigmaApi implements ICredentialType { export class FigmaApi implements ICredentialType {
name = 'figmaApi'; name = 'figmaApi';
displayName = 'Figma API'; displayName = 'Figma API';
documentationUrl = 'figma'; documentationUrl = 'figma';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FileMaker implements ICredentialType { export class FileMaker implements ICredentialType {
name = 'fileMaker'; name = 'fileMaker';
displayName = 'FileMaker API'; displayName = 'FileMaker API';
documentationUrl = 'fileMaker'; documentationUrl = 'fileMaker';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Host', displayName: 'Host',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FlowApi implements ICredentialType { export class FlowApi implements ICredentialType {
name = 'flowApi'; name = 'flowApi';
displayName = 'Flow API'; displayName = 'Flow API';
documentationUrl = 'flow'; documentationUrl = 'flow';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Organization ID', displayName: 'Organization ID',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormIoApi implements ICredentialType { export class FormIoApi implements ICredentialType {
name = 'formIoApi'; name = 'formIoApi';
displayName = 'Form.io API'; displayName = 'Form.io API';
documentationUrl = 'formIoTrigger'; documentationUrl = 'formIoTrigger';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Environment', displayName: 'Environment',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FormstackApi implements ICredentialType { export class FormstackApi implements ICredentialType {
name = 'formstackApi'; name = 'formstackApi';
displayName = 'Formstack API'; displayName = 'Formstack API';
documentationUrl = 'formstackTrigger'; documentationUrl = 'formstackTrigger';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Access Token', displayName: 'Access Token',

View File

@@ -4,9 +4,13 @@ const scopes: string[] = [];
export class FormstackOAuth2Api implements ICredentialType { export class FormstackOAuth2Api implements ICredentialType {
name = 'formstackOAuth2Api'; name = 'formstackOAuth2Api';
extends = ['oAuth2Api']; extends = ['oAuth2Api'];
displayName = 'Formstack OAuth2 API'; displayName = 'Formstack OAuth2 API';
documentationUrl = 'formstackTrigger'; documentationUrl = 'formstackTrigger';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshdeskApi implements ICredentialType { export class FreshdeskApi implements ICredentialType {
name = 'freshdeskApi'; name = 'freshdeskApi';
displayName = 'Freshdesk API'; displayName = 'Freshdesk API';
documentationUrl = 'freshdesk'; documentationUrl = 'freshdesk';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FreshserviceApi implements ICredentialType { export class FreshserviceApi implements ICredentialType {
name = 'freshserviceApi'; name = 'freshserviceApi';
displayName = 'Freshservice API'; displayName = 'Freshservice API';
documentationUrl = 'freshservice'; documentationUrl = 'freshservice';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',

View File

@@ -7,8 +7,11 @@ import {
export class FreshworksCrmApi implements ICredentialType { export class FreshworksCrmApi implements ICredentialType {
name = 'freshworksCrmApi'; name = 'freshworksCrmApi';
displayName = 'Freshworks CRM API'; displayName = 'Freshworks CRM API';
documentationUrl = 'freshdesk'; documentationUrl = 'freshdesk';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -28,6 +31,7 @@ export class FreshworksCrmApi implements ICredentialType {
'Domain in the Freshworks CRM org URL. For example, in <code>https://n8n-org.myfreshworks.com</code>, the domain is <code>n8n-org</code>.', '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: {
@@ -36,6 +40,7 @@ export class FreshworksCrmApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api', baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Ftp implements ICredentialType { export class Ftp implements ICredentialType {
name = 'ftp'; name = 'ftp';
displayName = 'FTP'; displayName = 'FTP';
documentationUrl = 'ftp'; documentationUrl = 'ftp';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Host', displayName: 'Host',

View File

@@ -9,9 +9,13 @@ const scopes = [
export class GSuiteAdminOAuth2Api implements ICredentialType { export class GSuiteAdminOAuth2Api implements ICredentialType {
name = 'gSuiteAdminOAuth2Api'; name = 'gSuiteAdminOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Workspace Admin OAuth2 API'; displayName = 'Google Workspace Admin OAuth2 API';
documentationUrl = 'google'; documentationUrl = 'google';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -7,8 +7,11 @@ import {
export class GetResponseApi implements ICredentialType { export class GetResponseApi implements ICredentialType {
name = 'getResponseApi'; name = 'getResponseApi';
displayName = 'GetResponse API'; displayName = 'GetResponse API';
documentationUrl = 'getResponse'; documentationUrl = 'getResponse';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'API Key', displayName: 'API Key',
@@ -18,6 +21,7 @@ export class GetResponseApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
@@ -26,6 +30,7 @@ export class GetResponseApi implements ICredentialType {
}, },
}, },
}; };
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: 'https://api.getresponse.com/v3', baseURL: 'https://api.getresponse.com/v3',

View File

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

View File

@@ -9,8 +9,11 @@ import {
import jwt from 'jsonwebtoken'; import jwt from 'jsonwebtoken';
export class GhostAdminApi implements ICredentialType { export class GhostAdminApi implements ICredentialType {
name = 'ghostAdminApi'; name = 'ghostAdminApi';
displayName = 'Ghost Admin API'; displayName = 'Ghost Admin API';
documentationUrl = 'ghost'; documentationUrl = 'ghost';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'URL', displayName: 'URL',

View File

@@ -8,8 +8,11 @@ import {
export class GhostContentApi implements ICredentialType { export class GhostContentApi implements ICredentialType {
name = 'ghostContentApi'; name = 'ghostContentApi';
displayName = 'Ghost Content API'; displayName = 'Ghost Content API';
documentationUrl = 'ghost'; documentationUrl = 'ghost';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'URL', displayName: 'URL',
@@ -26,6 +29,7 @@ export class GhostContentApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
async authenticate( async authenticate(
credentials: ICredentialDataDecryptedObject, credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions, requestOptions: IHttpRequestOptions,
@@ -36,6 +40,7 @@ export class GhostContentApi implements ICredentialType {
}; };
return requestOptions; return requestOptions;
} }
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '={{$credentials.url}}', baseURL: '={{$credentials.url}}',

View File

@@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GitPassword implements ICredentialType { export class GitPassword implements ICredentialType {
name = 'gitPassword'; name = 'gitPassword';
displayName = 'Git'; displayName = 'Git';
documentationUrl = 'git'; documentationUrl = 'git';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Username', displayName: 'Username',

View File

@@ -7,8 +7,11 @@ import {
export class GithubApi implements ICredentialType { export class GithubApi implements ICredentialType {
name = 'githubApi'; name = 'githubApi';
displayName = 'GitHub API'; displayName = 'GitHub API';
documentationUrl = 'github'; documentationUrl = 'github';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Github Server', displayName: 'Github Server',

View File

@@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GithubOAuth2Api implements ICredentialType { export class GithubOAuth2Api implements ICredentialType {
name = 'githubOAuth2Api'; name = 'githubOAuth2Api';
extends = ['oAuth2Api']; extends = ['oAuth2Api'];
displayName = 'GitHub OAuth2 API'; displayName = 'GitHub OAuth2 API';
documentationUrl = 'github'; documentationUrl = 'github';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Grant Type', displayName: 'Grant Type',

View File

@@ -7,8 +7,11 @@ import {
export class GitlabApi implements ICredentialType { export class GitlabApi implements ICredentialType {
name = 'gitlabApi'; name = 'gitlabApi';
displayName = 'GitLab API'; displayName = 'GitLab API';
documentationUrl = 'gitlab'; documentationUrl = 'gitlab';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Gitlab Server', displayName: 'Gitlab Server',
@@ -24,6 +27,7 @@ export class GitlabApi implements ICredentialType {
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {

View File

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

View File

@@ -11,9 +11,13 @@ const scopes = [
export class GmailOAuth2Api implements ICredentialType { export class GmailOAuth2Api implements ICredentialType {
name = 'gmailOAuth2'; name = 'gmailOAuth2';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Gmail OAuth2 API'; displayName = 'Gmail OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

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

View File

@@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/adwords'];
export class GoogleAdsOAuth2Api implements ICredentialType { export class GoogleAdsOAuth2Api implements ICredentialType {
name = 'googleAdsOAuth2Api'; name = 'googleAdsOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Ads OAuth2 API'; displayName = 'Google Ads OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Developer Token', displayName: 'Developer Token',

View File

@@ -7,9 +7,13 @@ const scopes = [
export class GoogleAnalyticsOAuth2Api implements ICredentialType { export class GoogleAnalyticsOAuth2Api implements ICredentialType {
name = 'googleAnalyticsOAuth2'; name = 'googleAnalyticsOAuth2';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Analytics OAuth2 API'; displayName = 'Google Analytics OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class GoogleApi implements ICredentialType { export class GoogleApi implements ICredentialType {
name = 'googleApi'; name = 'googleApi';
displayName = 'Google API'; displayName = 'Google API';
documentationUrl = 'google/service-account'; documentationUrl = 'google/service-account';
icon = 'file:Google.svg'; icon = 'file:Google.svg';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Service Account Email', displayName: 'Service Account Email',

View File

@@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/bigquery'];
export class GoogleBigQueryOAuth2Api implements ICredentialType { export class GoogleBigQueryOAuth2Api implements ICredentialType {
name = 'googleBigQueryOAuth2Api'; name = 'googleBigQueryOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google BigQuery OAuth2 API'; displayName = 'Google BigQuery OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/books'];
export class GoogleBooksOAuth2Api implements ICredentialType { export class GoogleBooksOAuth2Api implements ICredentialType {
name = 'googleBooksOAuth2Api'; name = 'googleBooksOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Books OAuth2 API'; displayName = 'Google Books OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -7,9 +7,13 @@ const scopes = [
export class GoogleCalendarOAuth2Api implements ICredentialType { export class GoogleCalendarOAuth2Api implements ICredentialType {
name = 'googleCalendarOAuth2Api'; name = 'googleCalendarOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Calendar OAuth2 API'; displayName = 'Google Calendar OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -7,9 +7,13 @@ const scopes = [
export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType { export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType {
name = 'googleCloudNaturalLanguageOAuth2Api'; name = 'googleCloudNaturalLanguageOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Cloud Natural Language OAuth2 API'; displayName = 'Google Cloud Natural Language OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -10,9 +10,13 @@ const scopes = [
export class GoogleCloudStorageOAuth2Api implements ICredentialType { export class GoogleCloudStorageOAuth2Api implements ICredentialType {
name = 'googleCloudStorageOAuth2Api'; name = 'googleCloudStorageOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Cloud Storage OAuth2 API'; displayName = 'Google Cloud Storage OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/contacts'];
export class GoogleContactsOAuth2Api implements ICredentialType { export class GoogleContactsOAuth2Api implements ICredentialType {
name = 'googleContactsOAuth2Api'; name = 'googleContactsOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Contacts OAuth2 API'; displayName = 'Google Contacts OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -8,9 +8,13 @@ const scopes = [
export class GoogleDocsOAuth2Api implements ICredentialType { export class GoogleDocsOAuth2Api implements ICredentialType {
name = 'googleDocsOAuth2Api'; name = 'googleDocsOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Docs OAuth2 API'; displayName = 'Google Docs OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -8,9 +8,13 @@ const scopes = [
export class GoogleDriveOAuth2Api implements ICredentialType { export class GoogleDriveOAuth2Api implements ICredentialType {
name = 'googleDriveOAuth2Api'; name = 'googleDriveOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Drive OAuth2 API'; displayName = 'Google Drive OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -7,9 +7,13 @@ const scopes = [
export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType { export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType {
name = 'googleFirebaseCloudFirestoreOAuth2Api'; name = 'googleFirebaseCloudFirestoreOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Firebase Cloud Firestore OAuth2 API'; displayName = 'Google Firebase Cloud Firestore OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

View File

@@ -8,9 +8,13 @@ const scopes = [
export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType { export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType {
name = 'googleFirebaseRealtimeDatabaseOAuth2Api'; name = 'googleFirebaseRealtimeDatabaseOAuth2Api';
extends = ['googleOAuth2Api']; extends = ['googleOAuth2Api'];
displayName = 'Google Firebase Realtime Database OAuth2 API'; displayName = 'Google Firebase Realtime Database OAuth2 API';
documentationUrl = 'google/oauth-single-service'; documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Scope', displayName: 'Scope',

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