Skip to content

Commit

Permalink
Apply Prettier to all credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed Jul 20, 2022
1 parent 1965407 commit 4bc5b1c
Show file tree
Hide file tree
Showing 279 changed files with 656 additions and 1,936 deletions.
300 changes: 0 additions & 300 deletions .prettierignore

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ export class ActionNetworkApi implements ICredentialType {
url: '/events?per_page=1',
},
};
async authenticate(credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions> {
async authenticate(
credentials: ICredentialDataDecryptedObject,
requestOptions: IHttpRequestOptions,
): Promise<IHttpRequestOptions> {
requestOptions.headers = { 'OSDI-API-Token': credentials.apiKey };
return requestOptions;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
INodeProperties,
} from 'n8n-workflow';


export class ActiveCampaignApi implements ICredentialType {
name = 'activeCampaignApi';
displayName = 'ActiveCampaign API';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';

import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AcuitySchedulingOAuth2Api implements ICredentialType {
name = 'acuitySchedulingOAuth2Api';
extends = [
'oAuth2Api',
];
extends = ['oAuth2Api'];
displayName = 'AcuityScheduling OAuth2 API';
documentationUrl = 'acuityScheduling';
properties: INodeProperties[] = [
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/AffinityApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AffinityApi implements ICredentialType {
name = 'affinityApi';
Expand Down
8 changes: 3 additions & 5 deletions packages/nodes-base/credentials/AgileCrmApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AgileCrmApi implements ICredentialType {
name = 'agileCrmApi';
Expand All @@ -27,7 +24,8 @@ export class AgileCrmApi implements ICredentialType {
type: 'string',
default: '',
placeholder: 'example',
description: 'If the domain is https://example.agilecrm.com "example" would have to be entered',
description:
'If the domain is https://example.agilecrm.com "example" would have to be entered',
},
];
}
7 changes: 1 addition & 6 deletions packages/nodes-base/credentials/AirtableApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';

import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';

export class AirtableApi implements ICredentialType {
name = 'airtableApi';
Expand Down
6 changes: 1 addition & 5 deletions packages/nodes-base/credentials/Amqp.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';

import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class Amqp implements ICredentialType {
name = 'amqp';
Expand Down
7 changes: 1 addition & 6 deletions packages/nodes-base/credentials/AsanaApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
IAuthenticateGeneric,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';

export class AsanaApi implements ICredentialType {
name = 'asanaApi';
Expand All @@ -25,5 +21,4 @@ export class AsanaApi implements ICredentialType {
},
},
};

}
9 changes: 2 additions & 7 deletions packages/nodes-base/credentials/AsanaOAuth2Api.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AsanaOAuth2Api implements ICredentialType {
name = 'asanaOAuth2Api';
extends = [
'oAuth2Api',
];
extends = ['oAuth2Api'];
displayName = 'Asana OAuth2 API';
documentationUrl = 'asana';
properties: INodeProperties[] = [
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/AutomizyApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AutomizyApi implements ICredentialType {
name = 'automizyApi';
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/AutopilotApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class AutopilotApi implements ICredentialType {
name = 'autopilotApi';
Expand Down
53 changes: 21 additions & 32 deletions packages/nodes-base/credentials/Aws.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export const regions = [
{
Expand Down Expand Up @@ -128,7 +125,7 @@ export class Aws implements ICredentialType {
displayName: 'Region',
name: 'region',
type: 'options',
options: regions.map(r => ({
options: regions.map((r) => ({
name: `${r.displayName} (${r.location}) - ${r.name}`,
value: r.name,
})),
Expand Down Expand Up @@ -163,9 +160,7 @@ export class Aws implements ICredentialType {
type: 'string',
displayOptions: {
show: {
temporaryCredentials: [
true,
],
temporaryCredentials: [true],
},
},
default: '',
Expand All @@ -182,13 +177,12 @@ export class Aws implements ICredentialType {
{
displayName: 'Rekognition Endpoint',
name: 'rekognitionEndpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Rekognition using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Rekognition using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand All @@ -197,13 +191,12 @@ export class Aws implements ICredentialType {
{
displayName: 'Lambda Endpoint',
name: 'lambdaEndpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Lambda using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and Lambda using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand All @@ -212,13 +205,12 @@ export class Aws implements ICredentialType {
{
displayName: 'SNS Endpoint',
name: 'snsEndpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SNS using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SNS using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand All @@ -227,13 +219,12 @@ export class Aws implements ICredentialType {
{
displayName: 'SES Endpoint',
name: 'sesEndpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SES using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SES using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand All @@ -242,13 +233,12 @@ export class Aws implements ICredentialType {
{
displayName: 'SQS Endpoint',
name: 'sqsEndpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SQS using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and SQS using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand All @@ -257,13 +247,12 @@ export class Aws implements ICredentialType {
{
displayName: 'S3 Endpoint',
name: 's3Endpoint',
description: 'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and S3 using a VPC endpoint. Leave blank to use the default endpoint.',
description:
'If you use Amazon VPC to host n8n, you can establish a connection between your VPC and S3 using a VPC endpoint. Leave blank to use the default endpoint.',
type: 'string',
displayOptions: {
show: {
customEndpoints: [
true,
],
customEndpoints: [true],
},
},
default: '',
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BambooHrApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BambooHrApi implements ICredentialType {
name = 'bambooHrApi';
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BannerbearApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BannerbearApi implements ICredentialType {
name = 'bannerbearApi';
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BaserowApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

// https://api.baserow.io/api/redoc/#section/Authentication

Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BeeminderApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BeeminderApi implements ICredentialType {
name = 'beeminderApi';
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BitbucketApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BitbucketApi implements ICredentialType {
name = 'bitbucketApi';
Expand Down
5 changes: 1 addition & 4 deletions packages/nodes-base/credentials/BitlyApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BitlyApi implements ICredentialType {
name = 'bitlyApi';
Expand Down
13 changes: 4 additions & 9 deletions packages/nodes-base/credentials/BitlyOAuth2Api.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';

import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BitlyOAuth2Api implements ICredentialType {
name = 'bitlyOAuth2Api';
displayName = 'Bitly OAuth2 API';
documentationUrl = 'bitly';
extends = [
'oAuth2Api',
];
extends = ['oAuth2Api'];
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
Expand Down Expand Up @@ -60,7 +54,8 @@ export class BitlyOAuth2Api implements ICredentialType {
name: 'authQueryParameters',
type: 'hidden',
default: '',
description: 'For some services additional query parameters have to be set which can be defined here',
description:
'For some services additional query parameters have to be set which can be defined here',
placeholder: '',
},
{
Expand Down
9 changes: 2 additions & 7 deletions packages/nodes-base/credentials/BitwardenApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

// https://bitwarden.com/help/article/public-api/#authentication

Expand Down Expand Up @@ -46,9 +43,7 @@ export class BitwardenApi implements ICredentialType {
placeholder: 'https://www.mydomain.com',
displayOptions: {
show: {
environment: [
'selfHosted',
],
environment: ['selfHosted'],
},
},
},
Expand Down
9 changes: 2 additions & 7 deletions packages/nodes-base/credentials/BoxOAuth2Api.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';

export class BoxOAuth2Api implements ICredentialType {
name = 'boxOAuth2Api';
extends = [
'oAuth2Api',
];
extends = ['oAuth2Api'];
displayName = 'Box OAuth2 API';
documentationUrl = 'box';
properties: INodeProperties[] = [
Expand Down
Loading

0 comments on commit 4bc5b1c

Please sign in to comment.