Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format all credentials #3720

Merged
merged 8 commits into from
Jul 24, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
300 changes: 0 additions & 300 deletions .prettierignore

Large diffs are not rendered by default.

29 changes: 20 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
Loading