refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3432)

*  Update `lintfix` script

* 👕 Remove unneeded lint exceptions

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-description-miscased-url` (#3441)

* 👕 Apply `rule node-param-placeholder-miscased-id` (#3443)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-name-wrong-for-upsert` (#3446)

* 👕 Apply `node-param-min-value-wrong-for-limit` (#3442)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-wrong-for-dynamic-options` (#3454)

* 🔨 fix

*  Fix `Assigned To` fields

Co-authored-by: Michael Kret <michael.k@radency.com>

* 👕 Apply `rule node-param-default-wrong-for-number` (#3453)

* 👕 Apply `node-param-default-wrong-for-string` (#3452)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-miscased` (#3449)

* 🔨 fix

* 🔨 exceptions

*  review fixes

* 👕 Apply `node-param-description-lowercase-first-char` (#3451)

*  fix

*  review fixes

*  fix

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-wrong-for-dynamic-options` (#3456)

* Rule working as intended

* Add rule

* 🔥 Remove repetitions

* 👕 Add exceptions

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Small fix for `node-param-description-wrong-for-dynamic-options`

* 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3460)

* 👕 Apply `node-param-description-line-break-html-tag` (#3462)

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-options-type-unsorted-items` (#3459)

*  fix

* 🔨 exceptions

* Add exception for Salesmate and Zoom

Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

*  Restore `lintfix` command

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2022-06-03 19:23:49 +02:00
committed by GitHub
parent 58ecadf53c
commit 70ae90fa3c
501 changed files with 4668 additions and 4555 deletions

View File

@@ -38,7 +38,7 @@ export const attendeeFields: INodeProperties[] = [
// attendee: shared fields
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -46,7 +46,7 @@ export const attendeeFields: INodeProperties[] = [
},
required: true,
default: '',
description: 'Key of the webinar that the attendee attended',
description: 'Key of the webinar that the attendee attended. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -56,7 +56,7 @@ export const attendeeFields: INodeProperties[] = [
},
},
{
displayName: 'Session Key',
displayName: 'Session Key Name or ID',
name: 'sessionKey',
type: 'options',
required: true,
@@ -67,7 +67,7 @@ export const attendeeFields: INodeProperties[] = [
],
},
default: '',
description: 'Key of the session that the attendee attended',
description: 'Key of the session that the attendee attended. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [

View File

@@ -42,7 +42,7 @@ export const coorganizerFields: INodeProperties[] = [
// coorganizer: create
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -50,7 +50,7 @@ export const coorganizerFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar that the co-organizer is hosting',
description: 'Key of the webinar that the co-organizer is hosting. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -145,7 +145,7 @@ export const coorganizerFields: INodeProperties[] = [
// coorganizer: delete
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -153,7 +153,7 @@ export const coorganizerFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to delete',
description: 'Key of the webinar to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -205,7 +205,7 @@ export const coorganizerFields: INodeProperties[] = [
// coorganizer: getAll
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -213,7 +213,7 @@ export const coorganizerFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to retrieve all co-organizers from',
description: 'Key of the webinar to retrieve all co-organizers from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [

View File

@@ -78,7 +78,7 @@ export const panelistFields: INodeProperties[] = [
},
},
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -86,7 +86,7 @@ export const panelistFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar that the panelist will present at',
description: 'Key of the webinar that the panelist will present at. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -103,7 +103,7 @@ export const panelistFields: INodeProperties[] = [
// panelist: getAll
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -111,7 +111,7 @@ export const panelistFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to retrieve all panelists from',
description: 'Key of the webinar to retrieve all panelists from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -169,7 +169,7 @@ export const panelistFields: INodeProperties[] = [
// panelist: delete
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -177,7 +177,7 @@ export const panelistFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to delete the panelist from',
description: 'Key of the webinar to delete the panelist from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -212,7 +212,7 @@ export const panelistFields: INodeProperties[] = [
// panelist: reinvite
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -220,7 +220,7 @@ export const panelistFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to reinvite the panelist to',
description: 'Key of the webinar to reinvite the panelist to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [

View File

@@ -42,7 +42,7 @@ export const registrantFields: INodeProperties[] = [
// registrant: create
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -50,7 +50,7 @@ export const registrantFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar of the registrant to create',
description: 'Key of the webinar of the registrant to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -205,7 +205,7 @@ export const registrantFields: INodeProperties[] = [
name: 'details',
values: [
{
displayName: 'Question Key',
displayName: 'Question Key Name or ID',
name: 'questionKey',
type: 'options',
typeOptions: {
@@ -289,7 +289,7 @@ export const registrantFields: INodeProperties[] = [
name: 'details',
values: [
{
displayName: 'Question Key',
displayName: 'Question Key Name or ID',
name: 'questionKey',
type: 'options',
typeOptions: {
@@ -325,7 +325,7 @@ export const registrantFields: INodeProperties[] = [
// registrant: getAll
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -333,7 +333,7 @@ export const registrantFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'The key of the webinar to retrieve registrants from',
description: 'The key of the webinar to retrieve registrants from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -391,7 +391,7 @@ export const registrantFields: INodeProperties[] = [
// registrant: delete
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -399,7 +399,7 @@ export const registrantFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar of the registrant to delete',
description: 'Key of the webinar of the registrant to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [
@@ -434,7 +434,7 @@ export const registrantFields: INodeProperties[] = [
// registrant: get
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -442,7 +442,7 @@ export const registrantFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar of the registrant to retrieve',
description: 'Key of the webinar of the registrant to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [

View File

@@ -126,14 +126,14 @@ export const sessionFields: INodeProperties[] = [
],
},
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getWebinars',
},
default: {},
description: 'Webinar by which to filter the sessions to retrieve',
description: 'Webinar by which to filter the sessions to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
],
},
@@ -142,7 +142,7 @@ export const sessionFields: INodeProperties[] = [
// session: shared fields
// ----------------------------------
{
displayName: 'Webinar Key',
displayName: 'Webinar Key Name or ID',
name: 'webinarKey',
type: 'options',
typeOptions: {
@@ -150,7 +150,7 @@ export const sessionFields: INodeProperties[] = [
},
required: true,
default: [],
description: 'Key of the webinar to which the session belongs',
description: 'Key of the webinar to which the session belongs. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
displayOptions: {
show: {
resource: [

View File

@@ -164,7 +164,7 @@ export const webinarFields: INodeProperties[] = [
default: false,
},
{
displayName: 'Timezone',
displayName: 'Timezone Name or ID',
name: 'timezone',
type: 'options',
required: true,
@@ -240,7 +240,7 @@ export const webinarFields: INodeProperties[] = [
default: {},
options: [
{
displayName: 'Send Cancellation E-mails',
displayName: 'Send Cancellation E-Mails',
name: 'sendCancellationEmails',
type: 'boolean',
default: false,
@@ -504,13 +504,13 @@ export const webinarFields: INodeProperties[] = [
},
},
{
displayName: 'Timezone',
displayName: 'Timezone Name or ID',
name: 'timezone',
type: 'options',
required: true,
default: '',
placeholder: '2020-12-11T09:00:00Z',
description: 'Timezone where the webinar is to take place',
description: 'Timezone where the webinar is to take place. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
alwaysOpenEditWindow: true,
loadOptionsMethod: 'getTimezones',