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

Run eslint-plugin-n8n-nodes-base against creds #3134

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion packages/nodes-base/credentials/AgileCrmApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ 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',
},
];
}
2 changes: 1 addition & 1 deletion packages/nodes-base/credentials/Amqp.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Amqp implements ICredentialType {
name: 'transportType',
type: 'string',
default: '',
description: 'Optional Transport Type to use.',
description: 'Optional Transport Type to use',
},
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class AsanaOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ 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: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
];
}
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/BitwardenApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ export class BitwardenApi implements ICredentialType {
default: 'cloudHosted',
options: [
{
name: 'Cloud-hosted',
name: 'Cloud-Hosted',
value: 'cloudHosted',
},
{
name: 'Self-hosted',
name: 'Self-Hosted',
value: 'selfHosted',
},
],
},
{
displayName: 'Self-hosted domain',
displayName: 'Self-Hosted Domain',
name: 'domain',
type: 'string',
default: '',
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/credentials/BubbleApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export class BubbleApi implements ICredentialType {
default: 'bubbleHosted',
options: [
{
name: 'Bubble-hosted',
name: 'Bubble-Hosted',
value: 'bubbleHosted',
},
{
name: 'Self-hosted',
name: 'Self-Hosted',
value: 'selfHosted',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class ClickUpOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
];
}
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/ContentfulApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export class ContentfulApi implements ICredentialType {
type: 'string',
default: '',
required: true,
description: 'The id for the Contentful space.',
description: 'The ID for the Contentful space',
},
{
displayName: 'Content Delivery API Access token',
displayName: 'Content Delivery API Access Token',
name: 'ContentDeliveryaccessToken',
type: 'string',
default: '',
description: 'Access token that has access to the space. Can be left empty if only Delivery API should be used.',
},
{
displayName: 'Content Preview API Access token',
displayName: 'Content Preview API Access Token',
name: 'ContentPreviewaccessToken',
type: 'string',
default: '',
Expand Down
14 changes: 7 additions & 7 deletions packages/nodes-base/credentials/CrateDb.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ export class CrateDb implements ICredentialType {
type: 'options',
options: [
{
name: 'disable',
value: 'disable',
name: 'Allow',
value: 'allow',
},
{
name: 'allow',
value: 'allow',
name: 'Disable',
value: 'disable',
},
{
name: 'require',
name: 'Require',
value: 'require',
},
{
name: 'verify (not implemented)',
name: 'Verify (Not Implemented)',
value: 'verify',
},
{
name: 'verify-full (not implemented)',
name: 'Verify-Full (Not Implemented)',
value: 'verify-full',
},
],
Expand Down
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/CustomerIoApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ export class CustomerIoApi implements ICredentialType {
name: 'trackingApiKey',
type: 'string',
default: '',
description: 'Required for tracking API.',
description: 'Required for tracking API',
required: true,
},
{
displayName: 'Tracking Site ID',
name: 'trackingSiteId',
type: 'string',
default: '',
description: 'Required for tracking API.',
description: 'Required for tracking API',
},
{
displayName: 'App API Key',
name: 'appApiKey',
type: 'string',
default: '',
description: 'Required for App API.',
description: 'Required for App API',
},
];
}
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/ERPNextApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export class ERPNextApi implements ICredentialType {
default: 'cloudHosted',
options: [
{
name: 'Cloud-hosted',
name: 'Cloud-Hosted',
value: 'cloudHosted',
},
{
name: 'Self-hosted',
name: 'Self-Hosted',
value: 'selfHosted',
},
],
Expand All @@ -57,7 +57,7 @@ export class ERPNextApi implements ICredentialType {
type: 'string',
default: '',
placeholder: 'https://www.mydomain.com',
description: 'Fully qualified domain name of self-hosted ERPNext instance.',
description: 'Fully qualified domain name of self-hosted ERPNext instance',
displayOptions: {
show: {
environment: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class FacebookGraphAppApi implements ICredentialType {
name: 'appSecret',
type: 'string',
default: '',
description: '(Optional) When the app secret is set the node will verify this signature to validate the integrity and origin of the payload.',
description: '(Optional) When the app secret is set the node will verify this signature to validate the integrity and origin of the payload',
},
];
}
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/FormIoApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export class FormIoApi implements ICredentialType {
default: 'cloudHosted',
options: [
{
name: 'Cloud-hosted',
name: 'Cloud-Hosted',
value: 'cloudHosted',
},
{
name: 'Self-hosted',
name: 'Self-Hosted',
value: 'selfHosted',
},
],
},
{
displayName: 'Self-hosted domain',
displayName: 'Self-Hosted Domain',
name: 'domain',
type: 'string',
default: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class GetResponseOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'header',
description: 'Resource to consume.',
},
];
}
2 changes: 1 addition & 1 deletion packages/nodes-base/credentials/GitPassword.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class GitPassword implements ICredentialType {
name: 'username',
type: 'string',
default: '',
description: 'The username to authenticate with.',
description: 'The username to authenticate with',
},
{
displayName: 'Password',
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/credentials/GoogleApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class GoogleApi implements ICredentialType {
name: 'email',
type: 'string',
default: '',
description: 'The Google Service account similar to user-808@project.iam.gserviceaccount.com.',
description: 'The Google Service account similar to user-808@project.iam.gserviceaccount.com',
required: true,
},
{
Expand Down Expand Up @@ -45,7 +45,7 @@ export class GoogleApi implements ICredentialType {
],
},
},
description: 'The email address of the user for which the application is requesting delegated access.',
description: 'The email address of the user for which the application is requesting delegated access',
},
];
}
6 changes: 3 additions & 3 deletions packages/nodes-base/credentials/GotifyApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ export class GotifyApi implements ICredentialType {
name: 'appApiToken',
type: 'string',
default: '',
description: '(Optional) Needed for message creation.',
description: '(Optional) Needed for message creation',
},
{
displayName: 'Client API Token',
name: 'clientApiToken',
type: 'string',
default: '',
description: '(Optional) Needed for everything (delete, getAll) but message creation.',
description: '(Optional) Needed for everything (delete, getAll) but message creation',
},
{
displayName: 'URL',
name: 'url',
type: 'string',
default: '',
description: 'The URL of the Gotify host.',
description: 'The URL of the Gotify host',
},
];
}
4 changes: 2 additions & 2 deletions packages/nodes-base/credentials/GristApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class GristApi implements ICredentialType {
value: 'paid',
},
{
name: 'Self-hosted',
name: 'Self-Hosted',
value: 'selfHosted',
},
],
Expand All @@ -51,7 +51,7 @@ export class GristApi implements ICredentialType {
},
},
{
displayName: 'Self-hosted URL',
displayName: 'Self-Hosted URL',
name: 'selfHostedUrl',
type: 'string',
default: '',
Expand Down
7 changes: 3 additions & 4 deletions packages/nodes-base/credentials/HaloPSAApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export class HaloPSAApi implements ICredentialType {
value: 'hostedHalo',
},
],
default: '',
description: 'Hosting Type',
default: 'onPremise',
},
{
displayName: 'HaloPSA Authorisation Server URL',
Expand All @@ -38,15 +37,15 @@ export class HaloPSAApi implements ICredentialType {
type: 'string',
default: '',
required: true,
description: `The Resource server is available at your "Halo Web Application url/api"`,
description: 'The Resource server is available at your "Halo Web Application url/api"',
},
{
displayName: 'Client ID',
name: 'client_id',
type: 'string',
default: '',
required: true,
description: 'Must be your application client id',
description: 'Must be your application client ID',
},
{
displayName: 'Client Secret',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class HarvestOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export class HubspotDeveloperApi implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
{
displayName: 'Developer API Key',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class HubspotOAuth2Api implements ICredentialType {
name: 'authentication',
type: 'hidden',
default: 'body',
description: 'Resource to consume.',
},
];
}
10 changes: 5 additions & 5 deletions packages/nodes-base/credentials/Kafka.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class Kafka implements ICredentialType {
},
},
default: '',
description: 'Optional username if authenticated is required.',
description: 'Optional username if authenticated is required',
},
{
displayName: 'Password',
Expand All @@ -63,10 +63,10 @@ export class Kafka implements ICredentialType {
password: true,
},
default: '',
description: 'Optional password if authenticated is required.',
description: 'Optional password if authenticated is required',
},
{
displayName: 'SASL mechanism',
displayName: 'SASL Mechanism',
name: 'saslMechanism',
type: 'options',
displayOptions: {
Expand All @@ -78,7 +78,7 @@ export class Kafka implements ICredentialType {
},
options: [
{
name: 'plain',
name: 'Plain',
value: 'plain',
},
{
Expand All @@ -91,7 +91,7 @@ export class Kafka implements ICredentialType {
},
],
default: 'plain',
description: 'The SASL mechanism.',
description: 'The SASL mechanism',
},
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class KoBoToolboxApi implements ICredentialType {
documentationUrl = 'koBoToolbox';
properties = [
{
displayName: 'API root URL',
displayName: 'API Root URL',
name: 'URL',
type: 'string' as NodePropertyTypes,
default: 'https://kf.kobotoolbox.org/',
Expand Down
Loading