diff --git a/packages/node-dev/templates/credentials/simple.ts b/packages/node-dev/templates/credentials/simple.ts index a1944926f5..b6d9ba3aac 100644 --- a/packages/node-dev/templates/credentials/simple.ts +++ b/packages/node-dev/templates/credentials/simple.ts @@ -1,24 +1,24 @@ -import { ICredentialType, NodePropertyTypes } from 'n8n-workflow'; +import { ICredentialType, NodePropertyTypes, INodeProperties } from 'n8n-workflow'; export class ClassNameReplace implements ICredentialType { name = 'N8nNameReplace'; displayName = 'DisplayNameReplace'; - properties = [ + properties: INodeProperties[] = [ // The credentials to get from user and save encrypted. // Properties can be defined exactly in the same way // as node properties. { displayName: 'User', name: 'user', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, { displayName: 'Access Token', name: 'accessToken', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; diff --git a/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts b/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts index 91d510c84a..95e889f419 100644 --- a/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts +++ b/packages/nodes-base/credentials/ActionNetworkApi.credentials.ts @@ -1,17 +1,17 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class ActionNetworkApi implements ICredentialType { name = 'actionNetworkApi'; displayName = 'Action Network API'; documentationUrl = 'actionNetwork'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'API Key', name: 'apiKey', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; diff --git a/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts b/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts index 8d97262296..c728e626f5 100644 --- a/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/CiscoWebexOAuth2Api.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class CiscoWebexOAuth2Api implements ICredentialType { @@ -9,37 +9,37 @@ export class CiscoWebexOAuth2Api implements ICredentialType { 'oAuth2Api', ]; displayName = 'Cisco Webex OAuth2 API'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Authorization URL', name: 'authUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'https://webexapis.com/v1/authorize', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'https://webexapis.com/v1/access_token', required: true, }, { displayName: 'Scope', name: 'scope', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'spark:memberships_read meeting:recordings_read spark:kms meeting:schedules_read spark:rooms_read spark:messages_write spark:memberships_write meeting:recordings_write meeting:preferences_read spark:messages_read meeting:schedules_write', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: '', }, { displayName: 'Authentication', name: 'authentication', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'body', }, ]; diff --git a/packages/nodes-base/credentials/FormIoApi.credentials.ts b/packages/nodes-base/credentials/FormIoApi.credentials.ts index a6bb39fb97..e7a4f5cad1 100644 --- a/packages/nodes-base/credentials/FormIoApi.credentials.ts +++ b/packages/nodes-base/credentials/FormIoApi.credentials.ts @@ -1,7 +1,6 @@ import { ICredentialType, INodeProperties, - NodePropertyTypes, } from 'n8n-workflow'; export class FormIoApi implements ICredentialType { @@ -42,13 +41,13 @@ export class FormIoApi implements ICredentialType { { displayName: 'Email', name: 'email', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, { displayName: 'Password', name: 'password', - type: 'string' as NodePropertyTypes, + type: 'string', typeOptions: { password: true, }, diff --git a/packages/nodes-base/credentials/FormstackApi.credentials.ts b/packages/nodes-base/credentials/FormstackApi.credentials.ts index bcadce0b2e..4c611f86c8 100644 --- a/packages/nodes-base/credentials/FormstackApi.credentials.ts +++ b/packages/nodes-base/credentials/FormstackApi.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; @@ -8,11 +8,11 @@ export class FormstackApi implements ICredentialType { name = 'formstackApi'; displayName = 'Formstack API'; documentationUrl = 'formstackTrigger'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Access Token', name: 'accessToken', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; diff --git a/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts b/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts index 79037a980d..fc83e1187e 100644 --- a/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/FormstackOAuth2Api.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; const scopes: string[] = []; @@ -12,37 +12,37 @@ export class FormstackOAuth2Api implements ICredentialType { ]; displayName = 'Formstack OAuth2 API'; documentationUrl = 'formstackTrigger'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Authorization URL', name: 'authUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'https://www.formstack.com/api/v2/oauth2/authorize', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'https://www.formstack.com/api/v2/oauth2/token', required: true, }, { displayName: 'Scope', name: 'scope', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: scopes.join(' '), }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: '', }, { displayName: 'Authentication', name: 'authentication', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'header', }, ]; diff --git a/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts index 08db9a0b2c..dde7233ce5 100644 --- a/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleDocsOAuth2Api.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; const scopes = [ @@ -16,11 +16,11 @@ export class GoogleDocsOAuth2Api implements ICredentialType { ]; displayName = 'Google Docs OAuth2 API'; documentationUrl = 'google'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Scope', name: 'scope', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: scopes.join(' '), }, ]; diff --git a/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts index b3cd378767..9f344528a1 100644 --- a/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GooglePerspectiveOAuth2Api.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; const scopes = [ @@ -14,11 +14,11 @@ export class GooglePerspectiveOAuth2Api implements ICredentialType { ]; displayName = 'Google Perspective OAuth2 API'; documentationUrl = 'google'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Scope', name: 'scope', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: scopes.join(' '), }, ]; diff --git a/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts b/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts index 802561ba98..7e6825fbcd 100644 --- a/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts +++ b/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts @@ -1,35 +1,35 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class HomeAssistantApi implements ICredentialType { name = 'homeAssistantApi'; displayName = 'Home Assistant API'; documentationUrl = 'homeAssistant'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Host', name: 'host', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, { displayName: 'Port', name: 'port', - type: 'number' as NodePropertyTypes, + type: 'number', default: 8123, }, { displayName: 'SSL', name: 'ssl', - type: 'boolean' as NodePropertyTypes, + type: 'boolean', default: false, }, { displayName: 'Access Token', name: 'accessToken', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; diff --git a/packages/nodes-base/credentials/Magento2Api.credentials.ts b/packages/nodes-base/credentials/Magento2Api.credentials.ts index 17f42eac3b..487f68abf6 100644 --- a/packages/nodes-base/credentials/Magento2Api.credentials.ts +++ b/packages/nodes-base/credentials/Magento2Api.credentials.ts @@ -1,23 +1,23 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class Magento2Api implements ICredentialType { name = 'magento2Api'; displayName = 'Magento 2 API'; documentationUrl = 'magento2'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Host', name: 'host', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, { displayName: 'Access Token', name: 'accessToken', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; diff --git a/packages/nodes-base/credentials/MarketstackApi.credentials.ts b/packages/nodes-base/credentials/MarketstackApi.credentials.ts index 5c5a33c832..4960f46a0e 100644 --- a/packages/nodes-base/credentials/MarketstackApi.credentials.ts +++ b/packages/nodes-base/credentials/MarketstackApi.credentials.ts @@ -1,23 +1,23 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class MarketstackApi implements ICredentialType { name = 'marketstackApi'; displayName = 'Marketstack API'; documentationUrl = 'marketstack'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'API Key', name: 'apiKey', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, { displayName: 'Use HTTPS', name: 'useHttps', - type: 'boolean' as NodePropertyTypes, + type: 'boolean', default: false, description: 'Use HTTPS (paid plans only).', }, diff --git a/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts b/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts index d12b0cd8f1..9539cb1fe1 100644 --- a/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/ServiceNowOAuth2Api.credentials.ts @@ -1,6 +1,6 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class ServiceNowOAuth2Api implements ICredentialType { @@ -10,11 +10,11 @@ export class ServiceNowOAuth2Api implements ICredentialType { ]; displayName = 'ServiceNow OAuth2 API'; documentationUrl = 'serviceNow'; - properties = [ + properties: INodeProperties[] = [ { displayName: 'Subdomain', name: 'subdomain', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', placeholder: 'n8n', description: 'The subdomain of your ServiceNow environment', @@ -23,39 +23,39 @@ export class ServiceNowOAuth2Api implements ICredentialType { { displayName: 'Authorization URL', name: 'authUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: '=https://{{$self["subdomain"]}}.service-now.com/oauth_auth.do', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: '=https://{{$self["subdomain"]}}.service-now.com/oauth_token.do', required: true, }, { displayName: 'Scope', name: 'scope', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'useraccount', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'response_type=code', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'grant_type=authorization_code', }, { displayName: 'Authentication', name: 'authentication', - type: 'hidden' as NodePropertyTypes, + type: 'hidden', default: 'header', }, ];