n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const incidentOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const incidentOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'incident',
],
resource: ['incident'],
},
},
options: [
@@ -46,10 +42,9 @@ export const incidentOperations: INodeProperties[] = [
];
export const incidentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* incident:create */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* incident:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Title',
name: 'title',
@@ -58,12 +53,8 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'create',
],
resource: ['incident'],
operation: ['create'],
},
},
description: 'A succinct description of the nature, symptoms, cause, or effect of the incident',
@@ -79,15 +70,12 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'create',
],
resource: ['incident'],
operation: ['create'],
},
},
description: 'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Email',
@@ -98,12 +86,8 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'create',
],
resource: ['incident'],
operation: ['create'],
},
},
description: 'The email address of a valid user associated with the account making the request',
@@ -115,12 +99,8 @@ export const incidentFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'create',
],
resource: ['incident'],
operation: ['create'],
},
},
default: {},
@@ -133,7 +113,8 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getEscalationPolicies',
},
default: '',
description: 'Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Incident Details',
@@ -147,7 +128,8 @@ export const incidentFields: INodeProperties[] = [
name: 'incidentKey',
type: 'string',
default: '',
description: 'Sending subsequent requests referencing the same service and with the same incident_key will result in those requests being rejected if an open incident matches that incident_key',
description:
'Sending subsequent requests referencing the same service and with the same incident_key will result in those requests being rejected if an open incident matches that incident_key',
},
{
displayName: 'Priority Name or ID',
@@ -157,7 +139,8 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getPriorities',
},
default: '',
description: 'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Urgency',
@@ -188,12 +171,8 @@ export const incidentFields: INodeProperties[] = [
placeholder: 'Add Conference Bridge',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'create',
],
resource: ['incident'],
operation: ['create'],
},
},
default: {},
@@ -207,22 +186,24 @@ export const incidentFields: INodeProperties[] = [
name: 'conferenceNumber',
type: 'string',
default: '',
description: 'Phone numbers should be formatted like +1 415-555-1212,,,,1234#, where a comma (,) represents a one-second wait and pound (#) completes access code input',
description:
'Phone numbers should be formatted like +1 415-555-1212,,,,1234#, where a comma (,) represents a one-second wait and pound (#) completes access code input',
},
{
displayName: 'Conference URL',
name: 'conferenceUrl',
type: 'string',
default: '',
description: 'An URL for the conference bridge. This could be a link to a web conference or Slack channel.',
description:
'An URL for the conference bridge. This could be a link to a web conference or Slack channel.',
},
],
},
],
},
/* -------------------------------------------------------------------------- */
/* incident:get */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* incident:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Incident ID',
name: 'incidentId',
@@ -231,31 +212,23 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'get',
],
resource: ['incident'],
operation: ['get'],
},
},
description: 'Unique identifier for the incident',
},
/* -------------------------------------------------------------------------- */
/* incident:getAll */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* incident:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'incident',
],
operation: ['getAll'],
resource: ['incident'],
},
},
default: false,
@@ -267,15 +240,9 @@ export const incidentFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'incident',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['incident'],
returnAll: [false],
},
},
typeOptions: {
@@ -293,12 +260,8 @@ export const incidentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'getAll',
],
resource: ['incident'],
operation: ['getAll'],
},
},
options: [
@@ -320,7 +283,8 @@ export const incidentFields: INodeProperties[] = [
name: 'incidentKey',
type: 'string',
default: '',
description: 'Incident de-duplication key. Incidents with child alerts do not have an incident key; querying by incident key will return incidents whose alerts have alert_key matching the given incident key.',
description:
'Incident de-duplication key. Incidents with child alerts do not have an incident key; querying by incident key will return incidents whose alerts have alert_key matching the given incident key.',
},
{
displayName: 'Include',
@@ -375,14 +339,16 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getServices',
},
default: [],
description: 'Returns only the incidents associated with the passed service(s). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Returns only the incidents associated with the passed service(s). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Since',
name: 'since',
type: 'dateTime',
default: '',
description: 'The start of the date range over which you want to search. (the limit on date ranges is 6 months).',
description:
'The start of the date range over which you want to search. (the limit on date ranges is 6 months).',
},
{
displayName: 'Sort By',
@@ -390,7 +356,8 @@ export const incidentFields: INodeProperties[] = [
type: 'string',
default: '',
placeholder: 'created_at:asc,resolved_at:desc',
description: 'Used to specify both the field you wish to sort the results on (incident_number/created_at/resolved_at/urgency), as well as the direction (asc/desc) of the results. The sort_by field and direction should be separated by a colon. A maximum of two fields can be included, separated by a comma.',
description:
'Used to specify both the field you wish to sort the results on (incident_number/created_at/resolved_at/urgency), as well as the direction (asc/desc) of the results. The sort_by field and direction should be separated by a colon. A maximum of two fields can be included, separated by a comma.',
},
{
displayName: 'Statuses',
@@ -418,7 +385,8 @@ export const incidentFields: INodeProperties[] = [
name: 'teamIds',
type: 'string',
default: '',
description: 'Team IDs. Only results related to these teams will be returned. Account must have the teams ability to use this parameter. (multiples IDs can be added separated by comma)',
description:
'Team IDs. Only results related to these teams will be returned. Account must have the teams ability to use this parameter. (multiples IDs can be added separated by comma)',
},
{
displayName: 'Timezone Name or ID',
@@ -428,14 +396,16 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getTimezones',
},
default: '',
description: 'Time zone in which dates in the result will be rendered. If not set dates will return UTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Time zone in which dates in the result will be rendered. If not set dates will return UTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Until',
name: 'until',
type: 'dateTime',
default: '',
description: 'The end of the date range over which you want to search. (the limit on date ranges is 6 months).',
description:
'The end of the date range over which you want to search. (the limit on date ranges is 6 months).',
},
{
displayName: 'Urgencies',
@@ -452,20 +422,22 @@ export const incidentFields: INodeProperties[] = [
},
],
default: [],
description: 'Urgencies of the incidents to be returned. Defaults to all urgencies. Account must have the urgencies ability to do this',
description:
'Urgencies of the incidents to be returned. Defaults to all urgencies. Account must have the urgencies ability to do this',
},
{
displayName: 'User IDs',
name: 'userIds',
type: 'string',
default: '',
description: 'Returns only the incidents currently assigned to the passed user(s). This expects one or more user IDs (multiple IDs can be added separated by comma).',
description:
'Returns only the incidents currently assigned to the passed user(s). This expects one or more user IDs (multiple IDs can be added separated by comma).',
},
],
},
/* -------------------------------------------------------------------------- */
/* incident:update */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* incident:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Incident ID',
name: 'incidentId',
@@ -474,12 +446,8 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'update',
],
resource: ['incident'],
operation: ['update'],
},
},
description: 'Unique identifier for the incident',
@@ -493,12 +461,8 @@ export const incidentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'update',
],
resource: ['incident'],
operation: ['update'],
},
},
description: 'The email address of a valid user associated with the account making the request',
@@ -510,12 +474,8 @@ export const incidentFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'update',
],
resource: ['incident'],
operation: ['update'],
},
},
default: {},
@@ -538,7 +498,8 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getEscalationPolicies',
},
default: '',
description: 'Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Priority Name or ID',
@@ -548,7 +509,8 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getPriorities',
},
default: '',
description: 'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The incident will be created on this service. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Resolution',
@@ -582,7 +544,8 @@ export const incidentFields: INodeProperties[] = [
name: 'title',
type: 'string',
default: '',
description: 'A succinct description of the nature, symptoms, cause, or effect of the incident',
description:
'A succinct description of the nature, symptoms, cause, or effect of the incident',
},
{
displayName: 'Urgency',
@@ -613,12 +576,8 @@ export const incidentFields: INodeProperties[] = [
placeholder: 'Add Conference Bridge',
displayOptions: {
show: {
resource: [
'incident',
],
operation: [
'update',
],
resource: ['incident'],
operation: ['update'],
},
},
default: {},
@@ -632,14 +591,16 @@ export const incidentFields: INodeProperties[] = [
name: 'conferenceNumber',
type: 'string',
default: '',
description: 'Phone numbers should be formatted like +1 415-555-1212,,,,1234#, where a comma (,) represents a one-second wait and pound (#) completes access code input',
description:
'Phone numbers should be formatted like +1 415-555-1212,,,,1234#, where a comma (,) represents a one-second wait and pound (#) completes access code input',
},
{
displayName: 'Conference URL',
name: 'conferenceUrl',
type: 'string',
default: '',
description: 'An URL for the conference bridge. This could be a link to a web conference or Slack channel.',
description:
'An URL for the conference bridge. This could be a link to a web conference or Slack channel.',
},
],
},