mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
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:
parent
8101c05d6f
commit
61e26804ba
|
@ -14,31 +14,14 @@ module.exports = {
|
|||
'id-denylist': 'off',
|
||||
'import/extensions': 'off',
|
||||
'import/order': 'off',
|
||||
'prefer-const': 'off',
|
||||
'prefer-spread': '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/no-duplicate-imports': 'off',
|
||||
'@typescript-eslint/no-empty-interface': 'off',
|
||||
'@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-explicit-any': 'off', //812 warnings, better to fix in separate PR
|
||||
'@typescript-eslint/no-non-null-assertion': 'off', //665 errors, better to fix in separate PR
|
||||
'@typescript-eslint/no-this-alias': '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-unsafe-argument': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
|
@ -49,11 +32,8 @@ module.exports = {
|
|||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-var-requires': '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-template-expressions': 'off',
|
||||
'@typescript-eslint/return-await': 'off',
|
||||
'@typescript-eslint/unbound-method': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
|
||||
},
|
||||
|
|
|
@ -8,8 +8,11 @@ import {
|
|||
|
||||
export class ActionNetworkApi implements ICredentialType {
|
||||
name = 'actionNetworkApi';
|
||||
|
||||
displayName = 'Action Network API';
|
||||
|
||||
documentationUrl = 'actionNetwork';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -19,12 +22,14 @@ export class ActionNetworkApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://actionnetwork.org/api/v2',
|
||||
url: '/events?per_page=1',
|
||||
},
|
||||
};
|
||||
|
||||
async authenticate(
|
||||
credentials: ICredentialDataDecryptedObject,
|
||||
requestOptions: IHttpRequestOptions,
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ActiveCampaignApi implements ICredentialType {
|
||||
name = 'activeCampaignApi';
|
||||
|
||||
displayName = 'ActiveCampaign API';
|
||||
|
||||
documentationUrl = 'activeCampaign';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API URL',
|
||||
|
@ -24,6 +27,7 @@ export class ActiveCampaignApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -32,6 +36,7 @@ export class ActiveCampaignApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials.apiUrl}}',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AcuitySchedulingApi implements ICredentialType {
|
||||
name = 'acuitySchedulingApi';
|
||||
|
||||
displayName = 'Acuity Scheduling API';
|
||||
|
||||
documentationUrl = 'acuityScheduling';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'User ID',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AcuitySchedulingOAuth2Api implements ICredentialType {
|
||||
name = 'acuitySchedulingOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'AcuityScheduling OAuth2 API';
|
||||
|
||||
documentationUrl = 'acuityScheduling';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
|
|||
|
||||
export class AdaloApi implements ICredentialType {
|
||||
name = 'adaloApi';
|
||||
|
||||
displayName = 'Adalo API';
|
||||
|
||||
documentationUrl = 'adalo';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AffinityApi implements ICredentialType {
|
||||
name = 'affinityApi';
|
||||
|
||||
displayName = 'Affinity API';
|
||||
|
||||
documentationUrl = 'affinity';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AgileCrmApi implements ICredentialType {
|
||||
name = 'agileCrmApi';
|
||||
|
||||
displayName = 'AgileCRM API';
|
||||
|
||||
documentationUrl = 'agileCrm';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Email',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
|
|||
|
||||
export class AirtableApi implements ICredentialType {
|
||||
name = 'airtableApi';
|
||||
|
||||
displayName = 'Airtable API';
|
||||
|
||||
documentationUrl = 'airtable';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -13,6 +16,7 @@ export class AirtableApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class Amqp implements ICredentialType {
|
||||
name = 'amqp';
|
||||
|
||||
displayName = 'AMQP';
|
||||
|
||||
documentationUrl = 'amqp';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Hostname',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ApiTemplateIoApi implements ICredentialType {
|
||||
name = 'apiTemplateIoApi';
|
||||
|
||||
displayName = 'APITemplate.io API';
|
||||
|
||||
documentationUrl = 'apiTemplateIo';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -18,6 +21,7 @@ export class ApiTemplateIoApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -26,6 +30,7 @@ export class ApiTemplateIoApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.apitemplate.io/v1',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-work
|
|||
|
||||
export class AsanaApi implements ICredentialType {
|
||||
name = 'asanaApi';
|
||||
|
||||
displayName = 'Asana API';
|
||||
|
||||
documentationUrl = 'asana';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AsanaOAuth2Api implements ICredentialType {
|
||||
name = 'asanaOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Asana OAuth2 API';
|
||||
|
||||
documentationUrl = 'asana';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AutomizyApi implements ICredentialType {
|
||||
name = 'automizyApi';
|
||||
|
||||
displayName = 'Automizy API';
|
||||
|
||||
documentationUrl = 'automizy';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Token',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class AutopilotApi implements ICredentialType {
|
||||
name = 'autopilotApi';
|
||||
|
||||
displayName = 'Autopilot API';
|
||||
|
||||
documentationUrl = 'autopilot';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { Request, sign } from 'aws4';
|
||||
import { ICredentialTestRequest } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
IDataObject,
|
||||
IHttpRequestOptions,
|
||||
|
@ -125,9 +126,13 @@ export type AWSRegion = typeof regions[number]['name'];
|
|||
|
||||
export class Aws implements ICredentialType {
|
||||
name = 'aws';
|
||||
|
||||
displayName = 'AWS';
|
||||
|
||||
documentationUrl = 'aws';
|
||||
|
||||
icon = 'file:AWS.svg';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Region',
|
||||
|
@ -302,8 +307,8 @@ export class Aws implements ICredentialType {
|
|||
} else {
|
||||
// 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 ?? ''}`);
|
||||
service = customUrl.hostname.split('.')[0] as string;
|
||||
region = customUrl.hostname.split('.')[1] as string;
|
||||
service = customUrl.hostname.split('.')[0];
|
||||
region = customUrl.hostname.split('.')[1];
|
||||
if (service === 'sts') {
|
||||
try {
|
||||
customUrl.searchParams.set('Action', 'GetCallerIdentity');
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BambooHrApi implements ICredentialType {
|
||||
name = 'bambooHrApi';
|
||||
|
||||
displayName = 'BambooHR API';
|
||||
|
||||
documentationUrl = 'bambooHr';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Subdomain',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BannerbearApi implements ICredentialType {
|
||||
name = 'bannerbearApi';
|
||||
|
||||
displayName = 'Bannerbear API';
|
||||
|
||||
documentationUrl = 'bannerbear';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Project API Key',
|
||||
|
|
|
@ -4,7 +4,9 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BaserowApi implements ICredentialType {
|
||||
name = 'baserowApi';
|
||||
|
||||
displayName = 'Baserow API';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Host',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class BeeminderApi implements ICredentialType {
|
||||
name = 'beeminderApi';
|
||||
|
||||
displayName = 'Beeminder API';
|
||||
|
||||
documentationUrl = 'beeminder';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'User',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BitbucketApi implements ICredentialType {
|
||||
name = 'bitbucketApi';
|
||||
|
||||
displayName = 'Bitbucket API';
|
||||
|
||||
documentationUrl = 'bitbucket';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Username',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BitlyApi implements ICredentialType {
|
||||
name = 'bitlyApi';
|
||||
|
||||
displayName = 'Bitly API';
|
||||
|
||||
documentationUrl = 'bitly';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BitlyOAuth2Api implements ICredentialType {
|
||||
name = 'bitlyOAuth2Api';
|
||||
|
||||
displayName = 'Bitly OAuth2 API';
|
||||
|
||||
documentationUrl = 'bitly';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -4,8 +4,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BitwardenApi implements ICredentialType {
|
||||
name = 'bitwardenApi';
|
||||
|
||||
displayName = 'Bitwarden API';
|
||||
|
||||
documentationUrl = 'bitwarden';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Client ID',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BoxOAuth2Api implements ICredentialType {
|
||||
name = 'boxOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Box OAuth2 API';
|
||||
|
||||
documentationUrl = 'box';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BrandfetchApi implements ICredentialType {
|
||||
name = 'brandfetchApi';
|
||||
|
||||
displayName = 'Brandfetch API';
|
||||
|
||||
documentationUrl = 'brandfetch';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class BubbleApi implements ICredentialType {
|
||||
name = 'bubbleApi';
|
||||
|
||||
displayName = 'Bubble API';
|
||||
|
||||
documentationUrl = 'bubble';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Token',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class CalApi implements ICredentialType {
|
||||
name = 'calApi';
|
||||
|
||||
displayName = 'Cal API';
|
||||
|
||||
documentationUrl = 'cal';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -8,8 +8,11 @@ import {
|
|||
|
||||
export class CalendlyApi implements ICredentialType {
|
||||
name = 'calendlyApi';
|
||||
|
||||
displayName = 'Calendly API';
|
||||
|
||||
documentationUrl = 'calendly';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
// Change name to Personal Access Token once API Keys
|
||||
// are deprecated
|
||||
|
@ -21,6 +24,7 @@ export class CalendlyApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
async authenticate(
|
||||
credentials: ICredentialDataDecryptedObject,
|
||||
requestOptions: IHttpRequestOptions,
|
||||
|
@ -31,7 +35,7 @@ export class CalendlyApi implements ICredentialType {
|
|||
// remove condition once v1 is deprecated
|
||||
// and only inject credentials as an access token
|
||||
if (tokenType === 'accessToken') {
|
||||
requestOptions.headers!['Authorization'] = `Bearer ${apiKey}`;
|
||||
requestOptions.headers!.Authorization = `Bearer ${apiKey}`;
|
||||
} else {
|
||||
requestOptions.headers!['X-TOKEN'] = apiKey;
|
||||
}
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class ChargebeeApi implements ICredentialType {
|
||||
name = 'chargebeeApi';
|
||||
|
||||
displayName = 'Chargebee API';
|
||||
|
||||
documentationUrl = 'chargebee';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Account Name',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CircleCiApi implements ICredentialType {
|
||||
name = 'circleCiApi';
|
||||
|
||||
displayName = 'CircleCI API';
|
||||
|
||||
documentationUrl = 'circleCi';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Personal API Token',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CiscoWebexOAuth2Api implements ICredentialType {
|
||||
name = 'ciscoWebexOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Cisco Webex OAuth2 API';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class CitrixAdcApi implements ICredentialType {
|
||||
name = 'citrixAdcApi';
|
||||
|
||||
displayName = 'Citrix ADC API';
|
||||
|
||||
documentationUrl = 'citrix';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'URL',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class ClearbitApi implements ICredentialType {
|
||||
name = 'clearbitApi';
|
||||
|
||||
displayName = 'Clearbit API';
|
||||
|
||||
documentationUrl = 'clearbit';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ClickUpApi implements ICredentialType {
|
||||
name = 'clickUpApi';
|
||||
|
||||
displayName = 'ClickUp API';
|
||||
|
||||
documentationUrl = 'clickUp';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
@ -18,6 +21,7 @@ export class ClickUpApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class ClickUpOAuth2Api implements ICredentialType {
|
||||
name = 'clickUpOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'ClickUp OAuth2 API';
|
||||
|
||||
documentationUrl = 'clickUp';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ClockifyApi implements ICredentialType {
|
||||
name = 'clockifyApi';
|
||||
|
||||
displayName = 'Clockify API';
|
||||
|
||||
documentationUrl = 'clockify';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -18,6 +21,7 @@ export class ClockifyApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -26,6 +30,7 @@ export class ClockifyApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.clockify.me/api/v1',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class CloudflareApi implements ICredentialType {
|
||||
name = 'cloudflareApi';
|
||||
|
||||
displayName = 'Cloudflare API';
|
||||
|
||||
documentationUrl = 'cloudflare';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Token',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CockpitApi implements ICredentialType {
|
||||
name = 'cockpitApi';
|
||||
|
||||
displayName = 'Cockpit API';
|
||||
|
||||
documentationUrl = 'cockpit';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Cockpit URL',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CodaApi implements ICredentialType {
|
||||
name = 'codaApi';
|
||||
|
||||
displayName = 'Coda API';
|
||||
|
||||
documentationUrl = 'coda';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -3,8 +3,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
//https://www.contentful.com/developers/docs/references/authentication/
|
||||
export class ContentfulApi implements ICredentialType {
|
||||
name = 'contentfulApi';
|
||||
|
||||
displayName = 'Contenful API';
|
||||
|
||||
documentationUrl = 'contentful';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Space ID',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class ConvertKitApi implements ICredentialType {
|
||||
name = 'convertKitApi';
|
||||
|
||||
displayName = 'ConvertKit API';
|
||||
|
||||
documentationUrl = 'convertKit';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Secret',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CopperApi implements ICredentialType {
|
||||
name = 'copperApi';
|
||||
|
||||
displayName = 'Copper API';
|
||||
|
||||
documentationUrl = 'copper';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class CortexApi implements ICredentialType {
|
||||
name = 'cortexApi';
|
||||
|
||||
displayName = 'Cortex API';
|
||||
|
||||
documentationUrl = 'cortex';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class CrateDb implements ICredentialType {
|
||||
name = 'crateDb';
|
||||
|
||||
displayName = 'CrateDB';
|
||||
|
||||
documentationUrl = 'crateDb';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Host',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class CustomerIoApi implements ICredentialType {
|
||||
name = 'customerIoApi';
|
||||
|
||||
displayName = 'Customer.io API';
|
||||
|
||||
documentationUrl = 'customerIo';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Tracking API Key',
|
||||
|
@ -52,6 +55,7 @@ export class CustomerIoApi implements ICredentialType {
|
|||
description: 'Required for App API',
|
||||
},
|
||||
];
|
||||
|
||||
async authenticate(
|
||||
credentials: ICredentialDataDecryptedObject,
|
||||
requestOptions: IHttpRequestOptions,
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class DeepLApi implements ICredentialType {
|
||||
name = 'deepLApi';
|
||||
|
||||
displayName = 'DeepL API';
|
||||
|
||||
documentationUrl = 'deepL';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class DemioApi implements ICredentialType {
|
||||
name = 'demioApi';
|
||||
|
||||
displayName = 'Demio API';
|
||||
|
||||
documentationUrl = 'demio';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class DhlApi implements ICredentialType {
|
||||
name = 'dhlApi';
|
||||
|
||||
displayName = 'DHL API';
|
||||
|
||||
documentationUrl = 'dhl';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -8,8 +8,11 @@ import {
|
|||
|
||||
export class DiscourseApi implements ICredentialType {
|
||||
name = 'discourseApi';
|
||||
|
||||
displayName = 'Discourse API';
|
||||
|
||||
documentationUrl = 'discourse';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'URL',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class DisqusApi implements ICredentialType {
|
||||
name = 'disqusApi';
|
||||
|
||||
displayName = 'Disqus API';
|
||||
|
||||
documentationUrl = 'disqus';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class DriftApi implements ICredentialType {
|
||||
name = 'driftApi';
|
||||
|
||||
displayName = 'Drift API';
|
||||
|
||||
documentationUrl = 'drift';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Personal Access Token',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class DriftOAuth2Api implements ICredentialType {
|
||||
name = 'driftOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Drift OAuth2 API';
|
||||
|
||||
documentationUrl = 'drift';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class DropboxApi implements ICredentialType {
|
||||
name = 'dropboxApi';
|
||||
|
||||
displayName = 'Dropbox API';
|
||||
|
||||
documentationUrl = 'dropbox';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
@ -34,6 +37,7 @@ export class DropboxApi implements ICredentialType {
|
|||
default: 'full',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes = ['files.content.write', 'files.content.read', 'sharing.read', 'ac
|
|||
|
||||
export class DropboxOAuth2Api implements ICredentialType {
|
||||
name = 'dropboxOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Dropbox OAuth2 API';
|
||||
|
||||
documentationUrl = 'dropbox';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class DropcontactApi implements ICredentialType {
|
||||
name = 'dropcontactApi';
|
||||
|
||||
displayName = 'Dropcontact API';
|
||||
|
||||
documentationUrl = 'dropcontact';
|
||||
|
||||
properties = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -17,6 +20,7 @@ export class DropcontactApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -26,6 +30,7 @@ export class DropcontactApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.dropcontact.io',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ERPNextApi implements ICredentialType {
|
||||
name = 'erpNextApi';
|
||||
|
||||
displayName = 'ERPNext API';
|
||||
|
||||
documentationUrl = 'erpnext';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -74,6 +77,7 @@ export class ERPNextApi implements ICredentialType {
|
|||
default: false,
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -82,6 +86,7 @@ export class ERPNextApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL:
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class EgoiApi implements ICredentialType {
|
||||
name = 'egoiApi';
|
||||
displayName = 'E-goi API';
|
||||
|
||||
displayName = 'E-Goi API';
|
||||
|
||||
documentationUrl = 'egoi';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
// The credentials to get from user and save encrypted.
|
||||
// Properties can be defined exactly in the same way
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class ElasticSecurityApi implements ICredentialType {
|
||||
name = 'elasticSecurityApi';
|
||||
|
||||
displayName = 'Elastic Security API';
|
||||
|
||||
documentationUrl = 'elasticSecurity';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Username',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class ElasticsearchApi implements ICredentialType {
|
||||
name = 'elasticsearchApi';
|
||||
|
||||
displayName = 'Elasticsearch API';
|
||||
|
||||
documentationUrl = 'elasticsearch';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Username',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class EmeliaApi implements ICredentialType {
|
||||
name = 'emeliaApi';
|
||||
|
||||
displayName = 'Emelia API';
|
||||
|
||||
documentationUrl = 'emelia';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class EventbriteApi implements ICredentialType {
|
||||
name = 'eventbriteApi';
|
||||
|
||||
displayName = 'Eventbrite API';
|
||||
|
||||
documentationUrl = 'eventbrite';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Private Key',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class EventbriteOAuth2Api implements ICredentialType {
|
||||
name = 'eventbriteOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Eventbrite OAuth2 API';
|
||||
|
||||
documentationUrl = 'eventbrite';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class FacebookGraphApi implements ICredentialType {
|
||||
name = 'facebookGraphApi';
|
||||
|
||||
displayName = 'Facebook Graph API';
|
||||
|
||||
documentationUrl = 'facebookGraph';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
@ -18,6 +21,7 @@ export class FacebookGraphApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -26,6 +30,7 @@ export class FacebookGraphApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://graph.facebook.com/v8.0',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FacebookGraphAppApi implements ICredentialType {
|
||||
name = 'facebookGraphAppApi';
|
||||
|
||||
displayName = 'Facebook Graph API (App)';
|
||||
|
||||
documentationUrl = 'facebookGraphApp';
|
||||
|
||||
extends = ['facebookGraphApi'];
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'App Secret',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FigmaApi implements ICredentialType {
|
||||
name = 'figmaApi';
|
||||
|
||||
displayName = 'Figma API';
|
||||
|
||||
documentationUrl = 'figma';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FileMaker implements ICredentialType {
|
||||
name = 'fileMaker';
|
||||
|
||||
displayName = 'FileMaker API';
|
||||
|
||||
documentationUrl = 'fileMaker';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Host',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FlowApi implements ICredentialType {
|
||||
name = 'flowApi';
|
||||
|
||||
displayName = 'Flow API';
|
||||
|
||||
documentationUrl = 'flow';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Organization ID',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FormIoApi implements ICredentialType {
|
||||
name = 'formIoApi';
|
||||
|
||||
displayName = 'Form.io API';
|
||||
|
||||
documentationUrl = 'formIoTrigger';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Environment',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FormstackApi implements ICredentialType {
|
||||
name = 'formstackApi';
|
||||
|
||||
displayName = 'Formstack API';
|
||||
|
||||
documentationUrl = 'formstackTrigger';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes: string[] = [];
|
|||
|
||||
export class FormstackOAuth2Api implements ICredentialType {
|
||||
name = 'formstackOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Formstack OAuth2 API';
|
||||
|
||||
documentationUrl = 'formstackTrigger';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FreshdeskApi implements ICredentialType {
|
||||
name = 'freshdeskApi';
|
||||
|
||||
displayName = 'Freshdesk API';
|
||||
|
||||
documentationUrl = 'freshdesk';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class FreshserviceApi implements ICredentialType {
|
||||
name = 'freshserviceApi';
|
||||
|
||||
displayName = 'Freshservice API';
|
||||
|
||||
documentationUrl = 'freshservice';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class FreshworksCrmApi implements ICredentialType {
|
||||
name = 'freshworksCrmApi';
|
||||
|
||||
displayName = 'Freshworks CRM API';
|
||||
|
||||
documentationUrl = 'freshdesk';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
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>.',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -36,6 +40,7 @@ export class FreshworksCrmApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '=https://{{$credentials?.domain}}.myfreshworks.com/crm/sales/api',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class Ftp implements ICredentialType {
|
||||
name = 'ftp';
|
||||
|
||||
displayName = 'FTP';
|
||||
|
||||
documentationUrl = 'ftp';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Host',
|
||||
|
|
|
@ -9,9 +9,13 @@ const scopes = [
|
|||
|
||||
export class GSuiteAdminOAuth2Api implements ICredentialType {
|
||||
name = 'gSuiteAdminOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Workspace Admin OAuth2 API';
|
||||
|
||||
documentationUrl = 'google';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class GetResponseApi implements ICredentialType {
|
||||
name = 'getResponseApi';
|
||||
|
||||
displayName = 'GetResponse API';
|
||||
|
||||
documentationUrl = 'getResponse';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
|
@ -18,6 +21,7 @@ export class GetResponseApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
@ -26,6 +30,7 @@ export class GetResponseApi implements ICredentialType {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.getresponse.com/v3',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GetResponseOAuth2Api implements ICredentialType {
|
||||
name = 'getResponseOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'GetResponse OAuth2 API';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -9,8 +9,11 @@ import {
|
|||
import jwt from 'jsonwebtoken';
|
||||
export class GhostAdminApi implements ICredentialType {
|
||||
name = 'ghostAdminApi';
|
||||
|
||||
displayName = 'Ghost Admin API';
|
||||
|
||||
documentationUrl = 'ghost';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'URL',
|
||||
|
|
|
@ -8,8 +8,11 @@ import {
|
|||
|
||||
export class GhostContentApi implements ICredentialType {
|
||||
name = 'ghostContentApi';
|
||||
|
||||
displayName = 'Ghost Content API';
|
||||
|
||||
documentationUrl = 'ghost';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'URL',
|
||||
|
@ -26,6 +29,7 @@ export class GhostContentApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
async authenticate(
|
||||
credentials: ICredentialDataDecryptedObject,
|
||||
requestOptions: IHttpRequestOptions,
|
||||
|
@ -36,6 +40,7 @@ export class GhostContentApi implements ICredentialType {
|
|||
};
|
||||
return requestOptions;
|
||||
}
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials.url}}',
|
||||
|
|
|
@ -2,8 +2,11 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GitPassword implements ICredentialType {
|
||||
name = 'gitPassword';
|
||||
|
||||
displayName = 'Git';
|
||||
|
||||
documentationUrl = 'git';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Username',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class GithubApi implements ICredentialType {
|
||||
name = 'githubApi';
|
||||
|
||||
displayName = 'GitHub API';
|
||||
|
||||
documentationUrl = 'github';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Github Server',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GithubOAuth2Api implements ICredentialType {
|
||||
name = 'githubOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'GitHub OAuth2 API';
|
||||
|
||||
documentationUrl = 'github';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -7,8 +7,11 @@ import {
|
|||
|
||||
export class GitlabApi implements ICredentialType {
|
||||
name = 'gitlabApi';
|
||||
|
||||
displayName = 'GitLab API';
|
||||
|
||||
documentationUrl = 'gitlab';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Gitlab Server',
|
||||
|
@ -24,6 +27,7 @@ export class GitlabApi implements ICredentialType {
|
|||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GitlabOAuth2Api implements ICredentialType {
|
||||
name = 'gitlabOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'GitLab OAuth2 API';
|
||||
|
||||
documentationUrl = 'gitlab';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -11,9 +11,13 @@ const scopes = [
|
|||
|
||||
export class GmailOAuth2Api implements ICredentialType {
|
||||
name = 'gmailOAuth2';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Gmail OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GoToWebinarOAuth2Api implements ICredentialType {
|
||||
name = 'goToWebinarOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'GoToWebinar OAuth2 API';
|
||||
|
||||
documentationUrl = 'goToWebinar';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/adwords'];
|
|||
|
||||
export class GoogleAdsOAuth2Api implements ICredentialType {
|
||||
name = 'googleAdsOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Ads OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Developer Token',
|
||||
|
|
|
@ -7,9 +7,13 @@ const scopes = [
|
|||
|
||||
export class GoogleAnalyticsOAuth2Api implements ICredentialType {
|
||||
name = 'googleAnalyticsOAuth2';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Analytics OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -2,9 +2,13 @@ import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|||
|
||||
export class GoogleApi implements ICredentialType {
|
||||
name = 'googleApi';
|
||||
|
||||
displayName = 'Google API';
|
||||
|
||||
documentationUrl = 'google/service-account';
|
||||
|
||||
icon = 'file:Google.svg';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Service Account Email',
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/bigquery'];
|
|||
|
||||
export class GoogleBigQueryOAuth2Api implements ICredentialType {
|
||||
name = 'googleBigQueryOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google BigQuery OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/books'];
|
|||
|
||||
export class GoogleBooksOAuth2Api implements ICredentialType {
|
||||
name = 'googleBooksOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Books OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -7,9 +7,13 @@ const scopes = [
|
|||
|
||||
export class GoogleCalendarOAuth2Api implements ICredentialType {
|
||||
name = 'googleCalendarOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Calendar OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -7,9 +7,13 @@ const scopes = [
|
|||
|
||||
export class GoogleCloudNaturalLanguageOAuth2Api implements ICredentialType {
|
||||
name = 'googleCloudNaturalLanguageOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Cloud Natural Language OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -10,9 +10,13 @@ const scopes = [
|
|||
|
||||
export class GoogleCloudStorageOAuth2Api implements ICredentialType {
|
||||
name = 'googleCloudStorageOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Cloud Storage OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -4,9 +4,13 @@ const scopes = ['https://www.googleapis.com/auth/contacts'];
|
|||
|
||||
export class GoogleContactsOAuth2Api implements ICredentialType {
|
||||
name = 'googleContactsOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Contacts OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -8,9 +8,13 @@ const scopes = [
|
|||
|
||||
export class GoogleDocsOAuth2Api implements ICredentialType {
|
||||
name = 'googleDocsOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Docs OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -8,9 +8,13 @@ const scopes = [
|
|||
|
||||
export class GoogleDriveOAuth2Api implements ICredentialType {
|
||||
name = 'googleDriveOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Drive OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -7,9 +7,13 @@ const scopes = [
|
|||
|
||||
export class GoogleFirebaseCloudFirestoreOAuth2Api implements ICredentialType {
|
||||
name = 'googleFirebaseCloudFirestoreOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Firebase Cloud Firestore OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
|
@ -8,9 +8,13 @@ const scopes = [
|
|||
|
||||
export class GoogleFirebaseRealtimeDatabaseOAuth2Api implements ICredentialType {
|
||||
name = 'googleFirebaseRealtimeDatabaseOAuth2Api';
|
||||
|
||||
extends = ['googleOAuth2Api'];
|
||||
|
||||
displayName = 'Google Firebase Realtime Database OAuth2 API';
|
||||
|
||||
documentationUrl = 'google/oauth-single-service';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Scope',
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue