mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
refactor: Enable cred-class-field-properties-assertion
(no-changelog) (#6908)
This commit is contained in:
parent
7f0db60f15
commit
6f48593134
|
@ -50,6 +50,7 @@ module.exports = {
|
||||||
'n8n-nodes-base/cred-class-field-name-missing-oauth2': 'error',
|
'n8n-nodes-base/cred-class-field-name-missing-oauth2': 'error',
|
||||||
'n8n-nodes-base/cred-class-field-name-unsuffixed': 'error',
|
'n8n-nodes-base/cred-class-field-name-unsuffixed': 'error',
|
||||||
'n8n-nodes-base/cred-class-field-name-uppercase-first-char': 'error',
|
'n8n-nodes-base/cred-class-field-name-uppercase-first-char': 'error',
|
||||||
|
'n8n-nodes-base/cred-class-field-properties-assertion': 'error',
|
||||||
'n8n-nodes-base/cred-class-field-type-options-password-missing': 'error',
|
'n8n-nodes-base/cred-class-field-type-options-password-missing': 'error',
|
||||||
'n8n-nodes-base/cred-class-name-missing-oauth2-suffix': 'error',
|
'n8n-nodes-base/cred-class-name-missing-oauth2-suffix': 'error',
|
||||||
'n8n-nodes-base/cred-class-name-unsuffixed': 'error',
|
'n8n-nodes-base/cred-class-name-unsuffixed': 'error',
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
||||||
IAuthenticateGeneric,
|
IAuthenticateGeneric,
|
||||||
ICredentialTestRequest,
|
ICredentialTestRequest,
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
NodePropertyTypes,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class DropcontactApi implements ICredentialType {
|
export class DropcontactApi implements ICredentialType {
|
||||||
|
@ -12,11 +12,12 @@ export class DropcontactApi implements ICredentialType {
|
||||||
|
|
||||||
documentationUrl = 'dropcontact';
|
documentationUrl = 'dropcontact';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'API Key',
|
displayName: 'API Key',
|
||||||
name: 'apiKey',
|
name: 'apiKey',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
||||||
IAuthenticateGeneric,
|
IAuthenticateGeneric,
|
||||||
ICredentialTestRequest,
|
ICredentialTestRequest,
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
NodePropertyTypes,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class HighLevelApi implements ICredentialType {
|
export class HighLevelApi implements ICredentialType {
|
||||||
|
@ -12,11 +12,12 @@ export class HighLevelApi implements ICredentialType {
|
||||||
|
|
||||||
documentationUrl = 'highLevel';
|
documentationUrl = 'highLevel';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'API Key',
|
displayName: 'API Key',
|
||||||
name: 'apiKey',
|
name: 'apiKey',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
||||||
IAuthenticateGeneric,
|
IAuthenticateGeneric,
|
||||||
ICredentialTestRequest,
|
ICredentialTestRequest,
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
NodePropertyTypes,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class KoBoToolboxApi implements ICredentialType {
|
export class KoBoToolboxApi implements ICredentialType {
|
||||||
|
@ -13,17 +13,18 @@ export class KoBoToolboxApi implements ICredentialType {
|
||||||
// See https://support.kobotoolbox.org/api.html
|
// See https://support.kobotoolbox.org/api.html
|
||||||
documentationUrl = 'koBoToolbox';
|
documentationUrl = 'koBoToolbox';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'API Root URL',
|
displayName: 'API Root URL',
|
||||||
name: 'URL',
|
name: 'URL',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
default: 'https://kf.kobotoolbox.org/',
|
default: 'https://kf.kobotoolbox.org/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'API Token',
|
displayName: 'API Token',
|
||||||
name: 'token',
|
name: 'token',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
hint: 'You can get your API token at https://[api-root]/token/?format=json (for a logged in user)',
|
hint: 'You can get your API token at https://[api-root]/token/?format=json (for a logged in user)',
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
export class NetlifyApi implements ICredentialType {
|
export class NetlifyApi implements ICredentialType {
|
||||||
name = 'netlifyApi';
|
name = 'netlifyApi';
|
||||||
|
@ -7,11 +7,12 @@ export class NetlifyApi implements ICredentialType {
|
||||||
|
|
||||||
documentationUrl = 'netlify';
|
documentationUrl = 'netlify';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'Access Token',
|
displayName: 'Access Token',
|
||||||
name: 'accessToken',
|
name: 'accessToken',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { ICredentialType, INodeProperties, NodePropertyTypes } from 'n8n-workflow';
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
export class OdooApi implements ICredentialType {
|
export class OdooApi implements ICredentialType {
|
||||||
name = 'odooApi';
|
name = 'odooApi';
|
||||||
|
@ -11,7 +11,7 @@ export class OdooApi implements ICredentialType {
|
||||||
{
|
{
|
||||||
displayName: 'Site URL',
|
displayName: 'Site URL',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'https://my-organization.odoo.com',
|
placeholder: 'https://my-organization.odoo.com',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -19,7 +19,7 @@ export class OdooApi implements ICredentialType {
|
||||||
{
|
{
|
||||||
displayName: 'Username',
|
displayName: 'Username',
|
||||||
name: 'username',
|
name: 'username',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'user@email.com',
|
placeholder: 'user@email.com',
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -27,7 +27,7 @@ export class OdooApi implements ICredentialType {
|
||||||
{
|
{
|
||||||
displayName: 'Password or API Key',
|
displayName: 'Password or API Key',
|
||||||
name: 'password',
|
name: 'password',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
password: true,
|
password: true,
|
||||||
|
@ -37,7 +37,7 @@ export class OdooApi implements ICredentialType {
|
||||||
{
|
{
|
||||||
displayName: 'Database Name',
|
displayName: 'Database Name',
|
||||||
name: 'db',
|
name: 'db',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
export class OnfleetApi implements ICredentialType {
|
export class OnfleetApi implements ICredentialType {
|
||||||
name = 'onfleetApi';
|
name = 'onfleetApi';
|
||||||
|
@ -7,11 +7,12 @@ export class OnfleetApi implements ICredentialType {
|
||||||
|
|
||||||
documentationUrl = 'onfleet';
|
documentationUrl = 'onfleet';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'API Key',
|
displayName: 'API Key',
|
||||||
name: 'apiKey',
|
name: 'apiKey',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
||||||
IAuthenticateGeneric,
|
IAuthenticateGeneric,
|
||||||
ICredentialTestRequest,
|
ICredentialTestRequest,
|
||||||
ICredentialType,
|
ICredentialType,
|
||||||
NodePropertyTypes,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class VenafiTlsProtectCloudApi implements ICredentialType {
|
export class VenafiTlsProtectCloudApi implements ICredentialType {
|
||||||
|
@ -12,11 +12,12 @@ export class VenafiTlsProtectCloudApi implements ICredentialType {
|
||||||
|
|
||||||
documentationUrl = 'venafitlsprotectcloud';
|
documentationUrl = 'venafitlsprotectcloud';
|
||||||
|
|
||||||
properties = [
|
properties: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
displayName: 'API Key',
|
displayName: 'API Key',
|
||||||
name: 'apiKey',
|
name: 'apiKey',
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string',
|
||||||
|
typeOptions: { password: true },
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue