mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -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-unsuffixed': '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-name-missing-oauth2-suffix': 'error',
|
||||
'n8n-nodes-base/cred-class-name-unsuffixed': 'error',
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
|||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class DropcontactApi implements ICredentialType {
|
||||
|
@ -12,11 +12,12 @@ export class DropcontactApi implements ICredentialType {
|
|||
|
||||
documentationUrl = 'dropcontact';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
|||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class HighLevelApi implements ICredentialType {
|
||||
|
@ -12,11 +12,12 @@ export class HighLevelApi implements ICredentialType {
|
|||
|
||||
documentationUrl = 'highLevel';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
|||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class KoBoToolboxApi implements ICredentialType {
|
||||
|
@ -13,17 +13,18 @@ export class KoBoToolboxApi implements ICredentialType {
|
|||
// See https://support.kobotoolbox.org/api.html
|
||||
documentationUrl = 'koBoToolbox';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Root URL',
|
||||
name: 'URL',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: 'https://kf.kobotoolbox.org/',
|
||||
},
|
||||
{
|
||||
displayName: 'API Token',
|
||||
name: 'token',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
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 {
|
||||
name = 'netlifyApi';
|
||||
|
@ -7,11 +7,12 @@ export class NetlifyApi implements ICredentialType {
|
|||
|
||||
documentationUrl = 'netlify';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
name: 'accessToken',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
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 {
|
||||
name = 'odooApi';
|
||||
|
@ -11,7 +11,7 @@ export class OdooApi implements ICredentialType {
|
|||
{
|
||||
displayName: 'Site URL',
|
||||
name: 'url',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'https://my-organization.odoo.com',
|
||||
required: true,
|
||||
|
@ -19,7 +19,7 @@ export class OdooApi implements ICredentialType {
|
|||
{
|
||||
displayName: 'Username',
|
||||
name: 'username',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'user@email.com',
|
||||
required: true,
|
||||
|
@ -27,7 +27,7 @@ export class OdooApi implements ICredentialType {
|
|||
{
|
||||
displayName: 'Password or API Key',
|
||||
name: 'password',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
|
@ -37,7 +37,7 @@ export class OdooApi implements ICredentialType {
|
|||
{
|
||||
displayName: 'Database Name',
|
||||
name: 'db',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class OnfleetApi implements ICredentialType {
|
||||
name = 'onfleetApi';
|
||||
|
@ -7,11 +7,12 @@ export class OnfleetApi implements ICredentialType {
|
|||
|
||||
documentationUrl = 'onfleet';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
|||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class VenafiTlsProtectCloudApi implements ICredentialType {
|
||||
|
@ -12,11 +12,12 @@ export class VenafiTlsProtectCloudApi implements ICredentialType {
|
|||
|
||||
documentationUrl = 'venafitlsprotectcloud';
|
||||
|
||||
properties = [
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue