Skip to content

Commit

Permalink
refactor(nodes-base): Apply lint rule `node-param-operation-option-ac…
Browse files Browse the repository at this point in the history
…tion-wrong-for-get-many` (#4055)

* 👕 Apply `node-param-operation-option-action-wrong-for-get-many`

* 🔥 Remove `package-lock.json`

* 📦 Re-add `package-lock.json`

* ⚡ master update

Co-authored-by: Michael Kret <[email protected]>
  • Loading branch information
ivov and michael-radency committed Sep 8, 2022
1 parent 74304db commit d4f858d
Show file tree
Hide file tree
Showing 446 changed files with 622 additions and 638 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ module.exports = {
'n8n-nodes-base/node-param-min-value-wrong-for-limit': 'error',
'n8n-nodes-base/node-param-multi-options-type-unsorted-items': 'error',
'n8n-nodes-base/node-param-operation-without-no-data-expression': 'error',
'n8n-nodes-base/node-param-operation-option-action-wrong-for-get-many': 'error',
'n8n-nodes-base/node-param-operation-option-without-action': 'error',
'n8n-nodes-base/node-param-option-description-identical-to-name': 'error',
'n8n-nodes-base/node-param-option-name-containing-star': 'error',
Expand Down
331 changes: 157 additions & 174 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const attendanceOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all attendances',
action: 'Get many attendances',
},
],
default: 'create',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const eventOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all events',
action: 'Get many events',
},
],
default: 'create',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const personOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all people',
action: 'Get many people',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const petitionOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all petitions',
action: 'Get many petitions',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const signatureOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all signatures',
action: 'Get many signatures',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const tagOperations: INodeProperties[] = [
{
name: 'Get Many',
value: 'getAll',
action: 'Get all tags',
action: 'Get many tags',
},
],
default: 'create',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const accountOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all accounts',
action: 'Get all accounts',
action: 'Get many accounts',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const connectionOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all connections',
action: 'Get all connections',
action: 'Get many connections',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const contactOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all contact',
action: 'Get all contacts',
action: 'Get many contacts',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const dealOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all deals',
action: 'Get all deals',
action: 'Get many deals',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ecomCustomerOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all E-commerce Customer',
action: 'Get all e-commerce customers',
action: 'Get many e-commerce customers',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const ecomOrderOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all orders',
action: 'Get all e-commerce orders',
action: 'Get many e-commerce orders',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ecomOrderProductsOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all order products',
action: 'Get all ecommerce orders',
action: 'Get many ecommerce orders',
},
{
name: 'Get by Product ID',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const listOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all lists',
action: 'Get all lists',
action: 'Get many lists',
},
],
default: 'getAll',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const tagOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get data of all tags',
action: 'Get all tags',
action: 'Get many tags',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Affinity/ListDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const listOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all lists',
action: 'Get all lists',
action: 'Get many lists',
},
],
default: 'get',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Affinity/ListEntryDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const listEntryOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all list entries',
action: 'Get all list entries',
action: 'Get many list entries',
},
],
default: 'create',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const organizationOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all organizations',
action: 'Get all organizations',
action: 'Get many organizations',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Affinity/PersonDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const personOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all persons',
action: 'Get all people',
action: 'Get many people',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const companyOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all companies',
action: 'Get all companies',
action: 'Get many companies',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/AgileCrm/ContactDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const contactOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all contacts',
action: 'Get all contacts',
action: 'Get many contacts',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/AgileCrm/DealDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const dealOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all deals',
action: 'Get all deals',
action: 'Get many deals',
},
{
name: 'Update',
Expand Down
8 changes: 4 additions & 4 deletions packages/nodes-base/nodes/Asana/Asana.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class Asana implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all substasks',
action: 'Get all subtasks',
action: 'Get many subtasks',
},
],
default: 'create',
Expand Down Expand Up @@ -394,7 +394,7 @@ export class Asana implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all tasks',
action: 'Get all tasks',
action: 'Get many tasks',
},
{
name: 'Move',
Expand Down Expand Up @@ -1273,7 +1273,7 @@ export class Asana implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all users',
action: 'Get all users',
action: 'Get many users',
},
],
default: 'get',
Expand Down Expand Up @@ -1358,7 +1358,7 @@ export class Asana implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all projects',
action: 'Get all projects',
action: 'Get many projects',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Automizy/ContactDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const contactOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all contacts',
action: 'Get all contacts',
action: 'Get many contacts',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Automizy/ListDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const listOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all lists',
action: 'Get all lists',
action: 'Get many lists',
},
{
name: 'Update',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Autopilot/ContactDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const contactOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all contacts',
action: 'Get all contacts',
action: 'Get many contacts',
},
],
default: 'upsert',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const contactListOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all contacts on list',
action: 'Get all contact lists',
action: 'Get many contact lists',
},
{
name: 'Remove',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Autopilot/ListDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const listOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all lists',
action: 'Get all lists',
action: 'Get many lists',
},
],
default: 'create',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const itemOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all items',
action: 'Get all items',
action: 'Get many items',
},
],
default: 'upsert',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Aws/S3/BucketDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const bucketOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all buckets',
action: 'Get all buckets',
action: 'Get many buckets',
},
{
name: 'Search',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Aws/S3/FileDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const fileOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all files',
action: 'Get all files',
action: 'Get many files',
},
{
name: 'Upload',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Aws/S3/FolderDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const folderOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all folders',
action: 'Get all folders',
action: 'Get many folders',
},
],
default: 'create',
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Aws/SES/AwsSes.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class AwsSes implements INodeType {
value: 'getAll',
description:
'Get all the existing custom verification email templates for your account',
action: 'Get all custom verifications',
action: 'Get many custom verifications',
},
{
name: 'Send',
Expand Down Expand Up @@ -650,7 +650,7 @@ export class AwsSes implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all templates',
action: 'Get all templates',
action: 'Get many templates',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class AwsTranscribe implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Get all transcription jobs',
action: 'Get all transcription jobs',
action: 'Get many transcription jobs',
},
],
default: 'create',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const descriptions: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all employees',
action: 'Get all employees',
action: 'Get many employees',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const descriptions: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all employee document',
action: 'Get all employee documents',
action: 'Get many employee documents',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const descriptions: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all company files',
action: 'Get all files',
action: 'Get many files',
},
{
name: 'Update',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const templateOperations: INodeProperties[] = [
name: 'Get Many',
value: 'getAll',
description: 'Get all templates',
action: 'Get all templates',
action: 'Get many templates',
},
],
default: 'get',
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Baserow/Baserow.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Baserow implements INodeType {
name: 'Get Many',
value: 'getAll',
description: 'Retrieve all rows',
action: 'Get all rows',
action: 'Get many rows',
},
{
name: 'Update',
Expand Down
Loading

0 comments on commit d4f858d

Please sign in to comment.