mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Apply node-param-default-wrong-for-multi-options
(#3185)
This commit is contained in:
parent
c67d05724a
commit
ffc1c05ef4
|
@ -383,6 +383,7 @@ module.exports = {
|
|||
"n8n-nodes-base/node-param-default-wrong-for-collection": "error",
|
||||
"n8n-nodes-base/node-param-default-wrong-for-boolean": "error",
|
||||
"n8n-nodes-base/node-param-default-wrong-for-fixed-collection": "error",
|
||||
"n8n-nodes-base/node-param-default-wrong-for-multi-options": "error",
|
||||
}
|
||||
},
|
||||
],
|
||||
|
|
|
@ -135,7 +135,7 @@ export const documentFields: INodeProperties[] = [
|
|||
'docType',
|
||||
],
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Comma-separated list of fields to return.',
|
||||
placeholder: 'name,country',
|
||||
},
|
||||
|
|
|
@ -84,7 +84,7 @@ export class FormIoTrigger implements INodeType {
|
|||
},
|
||||
],
|
||||
required: true,
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Simplify Response',
|
||||
|
|
|
@ -182,7 +182,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -637,7 +637,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -704,7 +704,7 @@ export const contactFields: INodeProperties[] = [
|
|||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
|
||||
},
|
||||
{
|
||||
|
@ -884,7 +884,7 @@ export const contactFields: INodeProperties[] = [
|
|||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
|
||||
},
|
||||
{
|
||||
|
@ -1128,7 +1128,7 @@ export const contactFields: INodeProperties[] = [
|
|||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ export const messageLabelFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getLabels',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
|
|
|
@ -284,7 +284,7 @@ export class HackerNews implements INodeType {
|
|||
description: 'Returns query results filtered by Front Page tag',
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Tags for filtering the results of the query.',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -895,7 +895,7 @@ export const companyFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getCompanyProperties',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your companies.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
{
|
||||
|
@ -1095,7 +1095,7 @@ export const companyFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getCompanyProperties',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -396,7 +396,7 @@ export const contactFields: INodeProperties[] = [
|
|||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
{
|
||||
|
@ -576,7 +576,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getContactProperties',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
{
|
||||
|
@ -699,7 +699,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getContactProperties',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
{
|
||||
|
@ -844,7 +844,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getContactProperties',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
|
||||
},
|
||||
{
|
||||
|
|
|
@ -679,7 +679,7 @@ export const issueFields: INodeProperties[] = [
|
|||
displayName: 'Expand',
|
||||
name: 'expand',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
default: [],
|
||||
options: [
|
||||
{
|
||||
name: 'Changelog',
|
||||
|
|
|
@ -438,7 +438,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Social Media',
|
||||
|
@ -937,7 +937,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
|
|
|
@ -178,7 +178,7 @@ export const accountFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getAccountFields',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Expand Fields',
|
||||
|
@ -187,7 +187,7 @@ export const accountFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getExpandableAccountFields',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -266,7 +266,7 @@ export const accountFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getAccountFields',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Fields the response will include',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -93,7 +93,7 @@ export const couponFields: INodeProperties[] = [
|
|||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Comma-separated list of product IDs. Required if coupon_type is product.',
|
||||
required: true,
|
||||
},
|
||||
|
|
|
@ -370,7 +370,7 @@ export const incidentFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getServices',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Returns only the incidents associated with the passed service(s).',
|
||||
},
|
||||
{
|
||||
|
@ -406,7 +406,7 @@ export const incidentFields: INodeProperties[] = [
|
|||
value: 'triggered',
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Returns only the incidents associated with the passed service(s).',
|
||||
},
|
||||
{
|
||||
|
@ -447,7 +447,7 @@ export const incidentFields: INodeProperties[] = [
|
|||
value: 'low',
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'urgencies of the incidents to be returned. Defaults to all urgencies. Account must have the urgencies ability to do this',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -215,7 +215,7 @@ export const metricFields: INodeProperties[] = [
|
|||
description: `How much upgrades and plan length increases affect your MRR`,
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Comma-separated list of metric trends to return (the default is to return all metric)',
|
||||
},
|
||||
{
|
||||
|
@ -431,7 +431,7 @@ export const metricFields: INodeProperties[] = [
|
|||
description: `Net change in revenue for this plan`,
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Comma-separated list of metric trends to return (the default is to return all metric)',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -113,7 +113,7 @@ export class Pushcut implements INodeType {
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getDevices',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'List of devices this notification is sent to. (default is all devices)',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -102,7 +102,7 @@ export const transactionFields: INodeProperties[] = [
|
|||
displayName: 'Columns',
|
||||
name: 'columns',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Columns to return',
|
||||
options: TRANSACTION_REPORT_COLUMNS,
|
||||
},
|
||||
|
|
|
@ -507,7 +507,7 @@ export const customObjectFields: INodeProperties[] = [
|
|||
'customObject',
|
||||
],
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'Fields to include separated by ,',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -242,7 +242,7 @@ export const contactFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getListIds',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'ID of the field to set.',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -251,7 +251,7 @@ export const releaseFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getProjects',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
|
|
|
@ -238,7 +238,7 @@ export const channelFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
|
|
|
@ -263,7 +263,7 @@ export const monitorFields: INodeProperties[] = [
|
|||
displayName: 'Statuses',
|
||||
name: 'statuses',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
default: [],
|
||||
options: [
|
||||
{
|
||||
name: 'Paused',
|
||||
|
@ -291,7 +291,7 @@ export const monitorFields: INodeProperties[] = [
|
|||
displayName: 'Types',
|
||||
name: 'types',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
default: [],
|
||||
options: [
|
||||
{
|
||||
name: 'Heartbeat',
|
||||
|
|
|
@ -186,7 +186,7 @@ export const cardFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'The new list of assignee IDs attached to the card.',
|
||||
},
|
||||
{
|
||||
|
@ -203,7 +203,7 @@ export const cardFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'The new list of member IDs attached to the card.',
|
||||
},
|
||||
],
|
||||
|
@ -604,7 +604,7 @@ export const cardFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'The new list of assignee IDs attached to the card.',
|
||||
},
|
||||
{
|
||||
|
@ -764,7 +764,7 @@ export const cardFields: INodeProperties[] = [
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
default: [],
|
||||
description: 'The new list of member IDs attached to the card.',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -62,7 +62,7 @@ export const messageFields: INodeProperties[] = [
|
|||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
required: true,
|
||||
default: '',
|
||||
default: [],
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
|
|
Loading…
Reference in a new issue