From 5246588e39e157d22f472a7f62e0d417191119cd Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Fri, 3 Jun 2022 14:17:52 +0300 Subject: [PATCH] :shirt: Apply `node-param-option-name-wrong-for-upsert` (#3446) --- .eslintrc.js | 1 + packages/nodes-base/nodes/Autopilot/ContactDescription.ts | 2 +- packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts | 2 +- .../nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts | 2 +- packages/nodes-base/nodes/HomeAssistant/StateDescription.ts | 2 +- packages/nodes-base/nodes/Hubspot/ContactDescription.ts | 2 +- packages/nodes-base/nodes/Iterable/UserDescription.ts | 2 +- packages/nodes-base/nodes/Keap/ContactDescription.ts | 2 +- packages/nodes-base/nodes/Orbit/MemberDescription.ts | 2 +- packages/nodes-base/nodes/QuickBase/RecordDescription.ts | 2 +- packages/nodes-base/nodes/SendGrid/ContactDescription.ts | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 145e056730c06..6f4a91c405f95 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -425,6 +425,7 @@ module.exports = { 'n8n-nodes-base/node-param-type-options-missing-from-limit': 'error', 'n8n-nodes-base/node-param-placeholder-miscased-id': 'error', 'n8n-nodes-base/node-param-description-miscased-url': 'error', + 'n8n-nodes-base/node-param-option-name-wrong-for-upsert': 'error', }, }, ], diff --git a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts index b6d9228d2048e..cf192216ac71b 100644 --- a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts @@ -17,7 +17,7 @@ export const contactOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new contact, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts index 71955087c9a6d..887e2597a1e42 100644 --- a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts +++ b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts @@ -15,7 +15,7 @@ export const customerOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new customer, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts index f4e57d4f2c9f4..a00eaa2f763a6 100644 --- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts +++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts @@ -22,7 +22,7 @@ export const documentOperations: INodeProperties[] = [ description: 'Create a document', }, { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new document, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts index 8f3b4f4318858..af8402c43fa09 100644 --- a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts +++ b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts @@ -17,7 +17,7 @@ export const stateOperations: INodeProperties[] = [ }, options: [ { - name: 'Create or update', + name: 'Create or Update', value: 'upsert', description: 'Create a new record, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts index 0cda23631cb34..9fad70eb7aa33 100644 --- a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts @@ -17,7 +17,7 @@ export const contactOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new contact, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/Iterable/UserDescription.ts b/packages/nodes-base/nodes/Iterable/UserDescription.ts index 5e9bb930e7b2d..7683dd2b212b1 100644 --- a/packages/nodes-base/nodes/Iterable/UserDescription.ts +++ b/packages/nodes-base/nodes/Iterable/UserDescription.ts @@ -17,7 +17,7 @@ export const userOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new user, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/Keap/ContactDescription.ts b/packages/nodes-base/nodes/Keap/ContactDescription.ts index 99c69ccc75feb..561894f9716af 100644 --- a/packages/nodes-base/nodes/Keap/ContactDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactDescription.ts @@ -17,7 +17,7 @@ export const contactOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new contact, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/Orbit/MemberDescription.ts b/packages/nodes-base/nodes/Orbit/MemberDescription.ts index 27e8aedb69b73..643b8c8b6f128 100644 --- a/packages/nodes-base/nodes/Orbit/MemberDescription.ts +++ b/packages/nodes-base/nodes/Orbit/MemberDescription.ts @@ -42,7 +42,7 @@ export const memberOperations: INodeProperties[] = [ description: 'Update a member', }, { - name: 'Upsert', + name: 'Create or Update', value: 'upsert', description: 'Create a new member, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts index 4c85735ea41ae..e66bebcb4a7bf 100644 --- a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts +++ b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts @@ -37,7 +37,7 @@ export const recordOperations: INodeProperties[] = [ description: 'Update a record', }, { - name: 'Upsert', + name: 'Create or Update', value: 'upsert', description: 'Create a new record, or update the current one if it already exists (upsert)', }, diff --git a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts index f23727ba8660d..cb72ee54092ba 100644 --- a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts +++ b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts @@ -17,7 +17,7 @@ export const contactOperations: INodeProperties[] = [ }, options: [ { - name: 'Create/Update', + name: 'Create or Update', value: 'upsert', description: 'Create a new contact, or update the current one if it already exists (upsert)', },