mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -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: [
|
||||
@@ -58,12 +54,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -76,12 +68,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -93,12 +81,11 @@ export const incidentFields: INodeProperties[] = [
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsDependsOn: [
|
||||
'additionalFields.assignment_group',
|
||||
],
|
||||
loadOptionsDependsOn: ['additionalFields.assignment_group'],
|
||||
},
|
||||
default: '',
|
||||
description: 'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Assignment Group Name or ID',
|
||||
@@ -109,13 +96,15 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getAssignmentGroups',
|
||||
},
|
||||
default: '',
|
||||
description: 'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Business Service Name or ID',
|
||||
name: 'business_service',
|
||||
type: 'options',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
description:
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getBusinessServices',
|
||||
@@ -138,7 +127,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentCategories',
|
||||
},
|
||||
default: '',
|
||||
description: 'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Close Notes',
|
||||
@@ -156,7 +146,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getConfigurationItems',
|
||||
},
|
||||
default: [],
|
||||
description: 'Configuration Items, \'cmdb_ci\' in metadata. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Configuration Items, \'cmdb_ci\' in metadata. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Contact Type',
|
||||
@@ -219,7 +210,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentResolutionCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'The resolution code of the incident, \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The resolution code of the incident, \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'State Name or ID',
|
||||
@@ -230,7 +222,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentStates',
|
||||
},
|
||||
default: '',
|
||||
description: 'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Subcategory Name or ID',
|
||||
@@ -239,12 +232,11 @@ export const incidentFields: INodeProperties[] = [
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getIncidentSubcategories',
|
||||
loadOptionsDependsOn: [
|
||||
'additionalFields.category',
|
||||
],
|
||||
loadOptionsDependsOn: ['additionalFields.category'],
|
||||
},
|
||||
default: '',
|
||||
description: 'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Urgency',
|
||||
@@ -279,12 +271,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['incident'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -296,15 +284,9 @@ export const incidentFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
operation: ['getAll'],
|
||||
resource: ['incident'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -321,12 +303,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Option',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -347,7 +325,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getColumns',
|
||||
},
|
||||
default: [],
|
||||
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
hint: 'String of comma separated values or an array of strings can be set in an expression',
|
||||
},
|
||||
{
|
||||
@@ -355,7 +334,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
name: 'sysparm_query',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
|
||||
description:
|
||||
'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Return Values',
|
||||
@@ -391,13 +371,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
'get',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['delete', 'get'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -410,12 +385,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Option',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -436,7 +407,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getColumns',
|
||||
},
|
||||
default: [],
|
||||
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
hint: 'String of comma separated values or an array of strings can be set in an expression',
|
||||
},
|
||||
{
|
||||
@@ -473,12 +445,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -491,12 +459,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
placeholder: 'Add Field',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'incident',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['incident'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: {},
|
||||
@@ -508,12 +472,11 @@ export const incidentFields: INodeProperties[] = [
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getUsers',
|
||||
loadOptionsDependsOn: [
|
||||
'additionalFields.assignment_group',
|
||||
],
|
||||
loadOptionsDependsOn: ['additionalFields.assignment_group'],
|
||||
},
|
||||
default: '',
|
||||
description: 'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Assignment Group Name or ID',
|
||||
@@ -524,13 +487,15 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getAssignmentGroups',
|
||||
},
|
||||
default: '',
|
||||
description: 'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Business Service Name or ID',
|
||||
name: 'business_service',
|
||||
type: 'options',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
description:
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getBusinessServices',
|
||||
@@ -553,7 +518,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentCategories',
|
||||
},
|
||||
default: '',
|
||||
description: 'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Close Notes',
|
||||
@@ -571,7 +537,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getConfigurationItems',
|
||||
},
|
||||
default: [],
|
||||
description: 'Configuration Items, \'cmdb_ci\' in metadata. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'Configuration Items, \'cmdb_ci\' in metadata. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Contact Type',
|
||||
@@ -635,7 +602,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
// nodelinter-ignore-next-line
|
||||
description: 'The resolution code of the incident. \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The resolution code of the incident. \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'On Hold Reason Name or ID',
|
||||
@@ -646,7 +614,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentHoldReasons',
|
||||
},
|
||||
default: '',
|
||||
description: 'The on hold reason for the incident. It applies if the state is <code>On Hold</code>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The on hold reason for the incident. It applies if the state is <code>On Hold</code>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'State Name or ID',
|
||||
@@ -657,7 +626,8 @@ export const incidentFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getIncidentStates',
|
||||
},
|
||||
default: '',
|
||||
description: 'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Subcategory Name or ID',
|
||||
@@ -666,12 +636,11 @@ export const incidentFields: INodeProperties[] = [
|
||||
typeOptions: {
|
||||
// nodelinter-ignore-next-line
|
||||
loadOptionsMethod: 'getIncidentSubcategories',
|
||||
loadOptionsDependsOn: [
|
||||
'additionalFields.category',
|
||||
],
|
||||
loadOptionsDependsOn: ['additionalFields.category'],
|
||||
},
|
||||
default: '',
|
||||
description: 'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
description:
|
||||
'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Urgency',
|
||||
|
||||
Reference in New Issue
Block a user