From cfd797b8adc6684bd8cbedffbd30eed3f2b6cb8f Mon Sep 17 00:00:00 2001 From: Harshil Agrawal Date: Fri, 5 Nov 2021 15:45:20 +0100 Subject: [PATCH 1/4] :zap: Add codex files (#2412) --- .../nodes/Aws/Textract/AwsTextract.node.json | 20 ++++++++++++++++ .../Google/Drive/GoogleDriveTrigger.node.json | 20 ++++++++++++++++ .../nodes/LocalFileTrigger.node.json | 24 +++++++++++++++++++ .../Dynamics/MicrosoftDynamicsCrm.node.json | 21 ++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 packages/nodes-base/nodes/Aws/Textract/AwsTextract.node.json create mode 100644 packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.json create mode 100644 packages/nodes-base/nodes/LocalFileTrigger.node.json create mode 100644 packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.json diff --git a/packages/nodes-base/nodes/Aws/Textract/AwsTextract.node.json b/packages/nodes-base/nodes/Aws/Textract/AwsTextract.node.json new file mode 100644 index 0000000000..370cfd8874 --- /dev/null +++ b/packages/nodes-base/nodes/Aws/Textract/AwsTextract.node.json @@ -0,0 +1,20 @@ +{ + "node": "n8n-nodes-base.awsTextract", + "nodeVersion": "1.0", + "codexVersion": "1.0", + "categories": [ + "Utility" + ], + "resources": { + "credentialDocumentation": [ + { + "url": "https://docs.n8n.io/credentials/aws" + } + ], + "primaryDocumentation": [ + { + "url": "https://docs.n8n.io/nodes/n8n-nodes-base.awsTextract/" + } + ] + } +} diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.json b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.json new file mode 100644 index 0000000000..dc0a632b98 --- /dev/null +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDriveTrigger.node.json @@ -0,0 +1,20 @@ +{ + "node": "n8n-nodes-base.googleDriveTrigger", + "nodeVersion": "1.0", + "codexVersion": "1.0", + "categories": [ + "Data & Storage" + ], + "resources": { + "credentialDocumentation": [ + { + "url": "https://docs.n8n.io/credentials/google" + } + ], + "primaryDocumentation": [ + { + "url": "https://docs.n8n.io/nodes/n8n-nodes-base.googleDriveTrigger/" + } + ] + } +} diff --git a/packages/nodes-base/nodes/LocalFileTrigger.node.json b/packages/nodes-base/nodes/LocalFileTrigger.node.json new file mode 100644 index 0000000000..3ca3c38063 --- /dev/null +++ b/packages/nodes-base/nodes/LocalFileTrigger.node.json @@ -0,0 +1,24 @@ +{ + "node": "n8n-nodes-base.localFileTrigger", + "nodeVersion": "1.0", + "codexVersion": "1.0", + "categories": [ + "Core Nodes" + ], + "resources": { + "primaryDocumentation": [ + { + "url": "https://docs.n8n.io/nodes/n8n-nodes-base.localFileTrigger/" + } + ] + }, + "alias": [ + "Watch", + "Monitor" + ], + "subcategories": { + "Core Nodes":[ + "Files" + ] + } +} diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.json b/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.json new file mode 100644 index 0000000000..4773de0577 --- /dev/null +++ b/packages/nodes-base/nodes/Microsoft/Dynamics/MicrosoftDynamicsCrm.node.json @@ -0,0 +1,21 @@ +{ + "node": "n8n-nodes-base.microsoftDynamicsCrm", + "nodeVersion": "1.0", + "codexVersion": "1.0", + "categories": [ + "Marketing & Content", + "Sales" + ], + "resources": { + "credentialDocumentation": [ + { + "url": "https://docs.n8n.io/credentials/microsoft" + } + ], + "primaryDocumentation": [ + { + "url": "https://docs.n8n.io/nodes/n8n-nodes-base.microsoftDynamicsCrm/" + } + ] + } +} From 35787455ab7da14aae52a54990f87980b9678215 Mon Sep 17 00:00:00 2001 From: nikozila Date: Fri, 5 Nov 2021 18:17:05 +0330 Subject: [PATCH 2/4] :zap: Add hook: workflow.afterCreate (#2407) --- packages/cli/src/Server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index e9de494f44..a3e0f2d1f5 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -679,6 +679,7 @@ class App { // @ts-ignore savedWorkflow.id = savedWorkflow.id.toString(); + await this.externalHooks.run('workflow.afterCreate', [savedWorkflow]); void InternalHooksManager.getInstance().onWorkflowCreated(newWorkflow as IWorkflowBase); return savedWorkflow; }, From 3ec52c1875eba4ef87857ad398068e8f95705fe6 Mon Sep 17 00:00:00 2001 From: Michele Paiano Date: Fri, 5 Nov 2021 15:49:31 +0100 Subject: [PATCH 3/4] :bug: Zendesk node: fix user External ID option name (#2392) Incorrect name of the "External ID" option prevents the "external_id" property from being correctly valued on Zendesk. Co-authored-by: MizziMizzi --- packages/nodes-base/nodes/Zendesk/UserDescription.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Zendesk/UserDescription.ts b/packages/nodes-base/nodes/Zendesk/UserDescription.ts index eb7a1c706f..f181e5c1b0 100644 --- a/packages/nodes-base/nodes/Zendesk/UserDescription.ts +++ b/packages/nodes-base/nodes/Zendesk/UserDescription.ts @@ -130,7 +130,7 @@ export const userFields = [ }, { displayName: 'External ID', - name: 'externalId', + name: 'external_id', type: 'string', default: '', description: 'A unique identifier from another system', @@ -387,7 +387,7 @@ export const userFields = [ }, { displayName: 'External ID', - name: 'externalId', + name: 'external_id', type: 'string', default: '', description: 'A unique identifier from another system', From d4df77a3d0b5e741d2feb435edfc7d624a5b50f3 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Fri, 5 Nov 2021 16:08:03 +0100 Subject: [PATCH 4/4] fix importing unknown types with credentials --- packages/editor-ui/src/modules/credentials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/modules/credentials.ts b/packages/editor-ui/src/modules/credentials.ts index 9f2b70c7c0..ac20203608 100644 --- a/packages/editor-ui/src/modules/credentials.ts +++ b/packages/editor-ui/src/modules/credentials.ts @@ -98,7 +98,7 @@ const module: Module = { }, getCredentialsByType: (state: ICredentialsState, getters: any) => { // tslint:disable-line:no-any return (credentialType: string): ICredentialsResponse[] => { - return getters.allCredentialsByType[credentialType]; + return getters.allCredentialsByType[credentialType] || []; }; }, getNodesWithAccess (state: ICredentialsState, getters: any, rootState: IRootState, rootGetters: any) { // tslint:disable-line:no-any