mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3243)
* ✏️ Alphabetize rules * 🔖 Update version * ⚡ Update lintfix command * ⚡ Run baseline lintfix * 📦 Update package-lock.json * 👕 Apply `node-param-description-untrimmed` (#3200) * Removing unneeded backticks (#3249) * 👕 Apply node-param-description-wrong-for-return-all (#3253) * 👕 Apply node-param-description-missing-limit (#3252) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-excess-final-period (#3250) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-unencoded-angle-brackets (#3256) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-url-missing-protocol (#3258) * 👕 Apply `node-param-description-miscased-id` (#3254) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-limit (#3257) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261) * 👕 Apply rule * ⚡ Restore lintfix script * ⚡ Restore lintfix script Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
This commit is contained in:
@@ -165,7 +165,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'amount',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `The amount that's deducted from the order total.`,
|
||||
description: 'The amount that\'s deducted from the order total',
|
||||
},
|
||||
{
|
||||
displayName: 'Code',
|
||||
@@ -182,17 +182,17 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Fixed Amount',
|
||||
value: 'fixedAmount',
|
||||
description: `Applies amount as a unit of the store's currency.`,
|
||||
description: 'Applies amount as a unit of the store\'s currency',
|
||||
},
|
||||
{
|
||||
name: 'Percentage',
|
||||
value: 'percentage',
|
||||
description: `Applies a discount of amount as a percentage of the order total.`,
|
||||
description: 'Applies a discount of amount as a percentage of the order total',
|
||||
},
|
||||
{
|
||||
name: 'Shipping',
|
||||
value: 'shipping',
|
||||
description: `Applies a free shipping discount on orders that have a shipping rate less than or equal to amount.`,
|
||||
description: 'Applies a free shipping discount on orders that have a shipping rate less than or equal to amount',
|
||||
},
|
||||
],
|
||||
default: 'fixedAmount',
|
||||
@@ -207,7 +207,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `The customer's email address.`,
|
||||
description: 'The customer\'s email address',
|
||||
},
|
||||
{
|
||||
displayName: 'Fulfillment Status',
|
||||
@@ -217,26 +217,26 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Fulfilled',
|
||||
value: 'fulfilled',
|
||||
description: 'Every line item in the order has been fulfilled.',
|
||||
description: 'Every line item in the order has been fulfilled',
|
||||
},
|
||||
{
|
||||
name: 'Null',
|
||||
value: 'null',
|
||||
description: 'None of the line items in the order have been fulfilled.',
|
||||
description: 'None of the line items in the order have been fulfilled',
|
||||
},
|
||||
{
|
||||
name: 'Partial',
|
||||
value: 'partial',
|
||||
description: 'At least one line item in the order has been fulfilled.',
|
||||
description: 'At least one line item in the order has been fulfilled',
|
||||
},
|
||||
{
|
||||
name: 'Restocked',
|
||||
value: 'restocked',
|
||||
description: 'Every line item in the order has been restocked and the order canceled.',
|
||||
description: 'Every line item in the order has been restocked and the order canceled',
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
description: `The order's status in terms of fulfilled line items`,
|
||||
description: 'The order\'s status in terms of fulfilled line items',
|
||||
},
|
||||
{
|
||||
displayName: 'Inventory Behaviour',
|
||||
@@ -246,21 +246,21 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Bypass',
|
||||
value: 'bypass',
|
||||
description: 'Do not claim inventory.',
|
||||
description: 'Do not claim inventory',
|
||||
},
|
||||
{
|
||||
name: 'Decrement Ignoring Policy',
|
||||
value: 'decrementIgnoringPolicy',
|
||||
description: `Ignore the product's inventory policy and claim inventory.`,
|
||||
description: 'Ignore the product\'s inventory policy and claim inventory',
|
||||
},
|
||||
{
|
||||
name: 'Decrement Obeying Policy',
|
||||
value: 'decrementObeyingPolicy',
|
||||
description: `Follow the product's inventory policy and claim inventory, if possible.`,
|
||||
description: 'Follow the product\'s inventory policy and claim inventory, if possible',
|
||||
},
|
||||
],
|
||||
default: 'bypass',
|
||||
description: `The behaviour to use when updating inventory.`,
|
||||
description: 'The behaviour to use when updating inventory',
|
||||
},
|
||||
{
|
||||
displayName: 'Location ID',
|
||||
@@ -270,7 +270,7 @@ export const orderFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
default: '',
|
||||
description: 'The ID of the physical location where the order was processed.',
|
||||
description: 'The ID of the physical location where the order was processed',
|
||||
},
|
||||
{
|
||||
displayName: 'Note',
|
||||
@@ -280,21 +280,21 @@ export const orderFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'An optional note that a shop owner can attach to the order.',
|
||||
description: 'An optional note that a shop owner can attach to the order',
|
||||
},
|
||||
{
|
||||
displayName: 'Send Fulfillment Receipt',
|
||||
name: 'sendFulfillmentReceipt',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether to send a shipping confirmation to the customer.',
|
||||
description: 'Whether to send a shipping confirmation to the customer',
|
||||
},
|
||||
{
|
||||
displayName: 'Send Receipt',
|
||||
name: 'sendReceipt',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether to send an order confirmation to the customer.',
|
||||
description: 'Whether to send an order confirmation to the customer',
|
||||
},
|
||||
{
|
||||
displayName: 'Shipping Address',
|
||||
@@ -386,14 +386,14 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'tags',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Tags attached to the order, formatted as a string of comma-separated values.',
|
||||
description: 'Tags attached to the order, formatted as a string of comma-separated values',
|
||||
},
|
||||
{
|
||||
displayName: 'Test',
|
||||
name: 'test',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether this is a test order.',
|
||||
description: 'Whether this is a test order',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -436,21 +436,21 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'variantId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The ID of the product variant.',
|
||||
description: 'The ID of the product variant',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The title of the product.',
|
||||
description: 'The title of the product',
|
||||
},
|
||||
{
|
||||
displayName: 'Grams',
|
||||
name: 'grams',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The weight of the item in grams.',
|
||||
description: 'The weight of the item in grams',
|
||||
},
|
||||
{
|
||||
displayName: 'Quantity',
|
||||
@@ -460,7 +460,7 @@ export const orderFields: INodeProperties[] = [
|
||||
minValue: 1,
|
||||
},
|
||||
default: 1,
|
||||
description: 'The number of items that were purchased.',
|
||||
description: 'The number of items that were purchased',
|
||||
},
|
||||
{
|
||||
displayName: 'Price',
|
||||
@@ -556,7 +556,7 @@ export const orderFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
description: 'Whether to return all results or only up to a given limit',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
@@ -580,7 +580,7 @@ export const orderFields: INodeProperties[] = [
|
||||
maxValue: 250,
|
||||
},
|
||||
default: 50,
|
||||
description: 'How many results to return.',
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
@@ -611,7 +611,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'createdAtMin',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Show orders created at or after date ',
|
||||
description: 'Show orders created at or after date',
|
||||
},
|
||||
{
|
||||
displayName: 'Created At Max',
|
||||
@@ -628,7 +628,7 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Any',
|
||||
value: 'any',
|
||||
description: 'Show orders of any financial status.',
|
||||
description: 'Show orders of any financial status',
|
||||
},
|
||||
{
|
||||
name: 'Authorized',
|
||||
@@ -668,11 +668,11 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Unpaid',
|
||||
value: 'unpaid',
|
||||
description: 'Show authorized and partially paid orders.',
|
||||
description: 'Show authorized and partially paid orders',
|
||||
},
|
||||
],
|
||||
default: 'any',
|
||||
description: 'Filter orders by their financial status.',
|
||||
description: 'Filter orders by their financial status',
|
||||
},
|
||||
{
|
||||
displayName: 'Fulfillment Status',
|
||||
@@ -682,12 +682,12 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Any',
|
||||
value: 'any',
|
||||
description: 'Show orders of any fulfillment status.',
|
||||
description: 'Show orders of any fulfillment status',
|
||||
},
|
||||
{
|
||||
name: 'Partial',
|
||||
value: 'partial',
|
||||
description: 'Show partially shipped orders.',
|
||||
description: 'Show partially shipped orders',
|
||||
},
|
||||
{
|
||||
name: 'Shipped',
|
||||
@@ -702,11 +702,11 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Unfulfilled',
|
||||
value: 'unfulfilled',
|
||||
description: 'Returns orders with fulfillment_status of null or partial.',
|
||||
description: 'Returns orders with fulfillment_status of null or partial',
|
||||
},
|
||||
],
|
||||
default: 'any',
|
||||
description: 'Filter orders by their fulfillment status.',
|
||||
description: 'Filter orders by their fulfillment status',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -720,7 +720,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'ids',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Retrieve only orders specified by a comma-separated list of order IDs.',
|
||||
description: 'Retrieve only orders specified by a comma-separated list of order IDs',
|
||||
},
|
||||
{
|
||||
displayName: 'Processed At Max',
|
||||
@@ -744,33 +744,33 @@ export const orderFields: INodeProperties[] = [
|
||||
{
|
||||
name: 'Any',
|
||||
value: 'any',
|
||||
description: 'Show orders of any status, including archived orders.',
|
||||
description: 'Show orders of any status, including archived orders',
|
||||
},
|
||||
{
|
||||
name: 'Cancelled',
|
||||
value: 'Cancelled',
|
||||
description: 'Show only canceled orders.',
|
||||
description: 'Show only canceled orders',
|
||||
},
|
||||
{
|
||||
name: 'Closed',
|
||||
value: 'closed',
|
||||
description: 'Show only closed orders.',
|
||||
description: 'Show only closed orders',
|
||||
},
|
||||
{
|
||||
name: 'Open',
|
||||
value: 'open',
|
||||
description: 'Show only open orders.',
|
||||
description: 'Show only open orders',
|
||||
},
|
||||
],
|
||||
default: 'open',
|
||||
description: 'Filter orders by their status.',
|
||||
description: 'Filter orders by their status',
|
||||
},
|
||||
{
|
||||
displayName: 'Since ID',
|
||||
name: 'sinceId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Show orders after the specified ID.',
|
||||
description: 'Show orders after the specified ID',
|
||||
},
|
||||
{
|
||||
displayName: 'Updated At Max',
|
||||
@@ -830,7 +830,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `The customer's email address.`,
|
||||
description: 'The customer\'s email address',
|
||||
},
|
||||
{
|
||||
displayName: 'Location ID',
|
||||
@@ -840,7 +840,7 @@ export const orderFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
default: '',
|
||||
description: 'The ID of the physical location where the order was processed.',
|
||||
description: 'The ID of the physical location where the order was processed',
|
||||
},
|
||||
{
|
||||
displayName: 'Note',
|
||||
@@ -850,7 +850,7 @@ export const orderFields: INodeProperties[] = [
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'An optional note that a shop owner can attach to the order.',
|
||||
description: 'An optional note that a shop owner can attach to the order',
|
||||
},
|
||||
{
|
||||
displayName: 'Shipping Address',
|
||||
@@ -942,7 +942,7 @@ export const orderFields: INodeProperties[] = [
|
||||
name: 'tags',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Tags attached to the order, formatted as a string of comma-separated values.',
|
||||
description: 'Tags attached to the order, formatted as a string of comma-separated values',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user