partitionKeyName = :partitionkeyval
',
+ description:
+ 'Condition to determine the items to be retrieved. The condition must perform an equality test on a single partition key value, in this format: partitionKeyName = :partitionkeyval
',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id = :id',
default: '',
@@ -720,15 +673,9 @@ export const itemFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
- scan: [
- false,
- ],
+ resource: ['item'],
+ operation: ['getAll'],
+ scan: [false],
},
},
},
@@ -746,12 +693,8 @@ export const itemFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['item'],
+ operation: ['getAll'],
},
},
options: [
@@ -797,12 +740,8 @@ export const itemFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['item'],
+ operation: ['getAll'],
},
},
default: false,
@@ -814,12 +753,8 @@ export const itemFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -835,12 +770,8 @@ export const itemFields: INodeProperties[] = [
type: 'options',
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['item'],
+ operation: ['getAll'],
},
},
options: [
@@ -870,17 +801,9 @@ export const itemFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
- select: [
- 'ALL_PROJECTED_ATTRIBUTES',
- 'ALL_ATTRIBUTES',
- 'SPECIFIC_ATTRIBUTES',
- ],
+ resource: ['item'],
+ operation: ['getAll'],
+ select: ['ALL_PROJECTED_ATTRIBUTES', 'ALL_ATTRIBUTES', 'SPECIFIC_ATTRIBUTES'],
},
},
default: true,
@@ -894,19 +817,16 @@ export const itemFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'item',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['item'],
+ operation: ['getAll'],
},
},
options: [
{
displayName: 'Index Name',
name: 'indexName',
- description: 'Name of the index to query. It can be any secondary local or global index on the table.',
+ description:
+ 'Name of the index to query. It can be any secondary local or global index on the table.',
type: 'string',
default: '',
},
@@ -915,7 +835,8 @@ export const itemFields: INodeProperties[] = [
name: 'projectionExpression',
type: 'string',
default: '',
- description: 'Text that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.',
+ description:
+ 'Text that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.',
},
{
displayName: 'Filter Expression',
@@ -923,13 +844,12 @@ export const itemFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
- '/scan': [
- false,
- ],
+ '/scan': [false],
},
},
default: '',
- description: 'Text that contains conditions that DynamoDB applies after the Query operation, but before the data is returned. Items that do not satisfy the FilterExpression criteria are not returned.',
+ description:
+ 'Text that contains conditions that DynamoDB applies after the Query operation, but before the data is returned. Items that do not satisfy the FilterExpression criteria are not returned.',
},
{
displayName: 'Expression Attribute Names',
@@ -960,7 +880,8 @@ export const itemFields: INodeProperties[] = [
],
},
],
- description: 'One or more substitution tokens for attribute names in an expression. Check Info.',
+ description:
+ 'One or more substitution tokens for attribute names in an expression. Check Info.',
},
],
},
diff --git a/packages/nodes-base/nodes/Aws/DynamoDB/types.d.ts b/packages/nodes-base/nodes/Aws/DynamoDB/types.d.ts
index 99eada32c73f6..c03eb89ab59a1 100644
--- a/packages/nodes-base/nodes/Aws/DynamoDB/types.d.ts
+++ b/packages/nodes-base/nodes/Aws/DynamoDB/types.d.ts
@@ -32,27 +32,36 @@ export interface IAttributeNameUi {
}
type AttributeValueType =
- | 'B' // binary
- | 'BOOL' // boolean
- | 'BS' // binary set
- | 'L' // list
- | 'M' // map
- | 'N' // number
+ | 'B' // binary
+ | 'BOOL' // boolean
+ | 'BS' // binary set
+ | 'L' // list
+ | 'M' // map
+ | 'N' // number
| 'NULL'
- | 'NS' // number set
- | 'S' // string
- | 'SS'; // string set
+ | 'NS' // number set
+ | 'S' // string
+ | 'SS'; // string set
export type PartitionKey = {
details: {
name: string;
type: string;
value: string;
- },
+ };
};
export enum EAttributeValueType {
- S = 'S', SS = 'SS', M = 'M', L = 'L', NS = 'NS', N = 'N', BOOL = 'BOOL', B = 'B', BS = 'BS', NULL = 'NULL',
+ S = 'S',
+ SS = 'SS',
+ M = 'M',
+ L = 'L',
+ NS = 'NS',
+ N = 'N',
+ BOOL = 'BOOL',
+ B = 'B',
+ BS = 'BS',
+ NULL = 'NULL',
}
export interface IExpressionAttributeValue {
@@ -74,6 +83,6 @@ export type PutItemUi = {
export type AdjustedPutItem = {
[attribute: string]: {
- [type: string]: string
- }
+ [type: string]: string;
+ };
};
diff --git a/packages/nodes-base/nodes/Aws/DynamoDB/utils.ts b/packages/nodes-base/nodes/Aws/DynamoDB/utils.ts
index a3651b48329bd..35399172b1efb 100644
--- a/packages/nodes-base/nodes/Aws/DynamoDB/utils.ts
+++ b/packages/nodes-base/nodes/Aws/DynamoDB/utils.ts
@@ -1,7 +1,4 @@
-import {
- IDataObject,
- INodeExecutionData,
-} from 'n8n-workflow';
+import { IDataObject, INodeExecutionData } from 'n8n-workflow';
import {
AdjustedPutItem,
@@ -14,9 +11,10 @@ import {
PutItemUi,
} from './types';
-const addColon = (attribute: string) => attribute = attribute.charAt(0) === ':' ? attribute : `:${attribute}`;
+const addColon = (attribute: string) =>
+ (attribute = attribute.charAt(0) === ':' ? attribute : `:${attribute}`);
-const addPound = (key: string) => key = key.charAt(0) === '#' ? key : `#${key}`;
+const addPound = (key: string) => (key = key.charAt(0) === '#' ? key : `#${key}`);
export function adjustExpressionAttributeValues(eavUi: IAttributeValueUi[]) {
const eav: IAttributeValue = {};
@@ -100,7 +98,7 @@ export function validateJSON(input: any): object {
export function copyInputItem(item: INodeExecutionData, properties: string[]): IDataObject {
// Prepare the data to insert and copy it to be returned
let newItem: IDataObject;
- newItem = {};
+ newItem = {};
for (const property of properties) {
if (item.json[property] === undefined) {
newItem[property] = null;
diff --git a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts
index 96f9b05e3e189..b29b48c76306a 100644
--- a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts
+++ b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts
@@ -1,6 +1,4 @@
-import {
- IExecuteFunctions,
-} from 'n8n-core';
+import { IExecuteFunctions } from 'n8n-core';
import {
IBinaryKeyData,
@@ -12,10 +10,7 @@ import {
NodeOperationError,
} from 'n8n-workflow';
-import {
- awsApiRequestREST,
- keysTPascalCase,
-} from './GenericFunctions';
+import { awsApiRequestREST, keysTPascalCase } from './GenericFunctions';
export class AwsRekognition implements INodeType {
description: INodeTypeDescription = {
@@ -70,12 +65,8 @@ export class AwsRekognition implements INodeType {
type: 'options',
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
+ operation: ['analyze'],
+ resource: ['image'],
},
},
options: [
@@ -110,12 +101,8 @@ export class AwsRekognition implements INodeType {
required: true,
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
+ operation: ['analyze'],
+ resource: ['image'],
},
},
description: 'Whether the image to analize should be taken from binary field',
@@ -124,15 +111,9 @@ export class AwsRekognition implements INodeType {
displayName: 'Binary Property',
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
- binaryData: [
- true,
- ],
+ operation: ['analyze'],
+ resource: ['image'],
+ binaryData: [true],
},
},
name: 'binaryPropertyName',
@@ -146,15 +127,9 @@ export class AwsRekognition implements INodeType {
name: 'bucket',
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
- binaryData: [
- false,
- ],
+ operation: ['analyze'],
+ resource: ['image'],
+ binaryData: [false],
},
},
type: 'string',
@@ -167,15 +142,9 @@ export class AwsRekognition implements INodeType {
name: 'name',
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
- binaryData: [
- false,
- ],
+ operation: ['analyze'],
+ resource: ['image'],
+ binaryData: [false],
},
},
type: 'string',
@@ -190,12 +159,8 @@ export class AwsRekognition implements INodeType {
placeholder: 'Add Field',
displayOptions: {
show: {
- operation: [
- 'analyze',
- ],
- resource: [
- 'image',
- ],
+ operation: ['analyze'],
+ resource: ['image'],
},
},
default: {},
@@ -208,9 +173,7 @@ export class AwsRekognition implements INodeType {
placeholder: 'Add Region of Interest',
displayOptions: {
show: {
- '/type': [
- 'detectText',
- ],
+ '/type': ['detectText'],
},
},
typeOptions: {
@@ -225,21 +188,24 @@ export class AwsRekognition implements INodeType {
displayName: 'Height',
name: 'height',
type: 'number',
- description: 'Height of the bounding box as a ratio of the overall image height',
+ description:
+ 'Height of the bounding box as a ratio of the overall image height',
default: 0,
},
{
displayName: 'Left',
name: 'left',
type: 'number',
- description: 'Left coordinate of the bounding box as a ratio of overall image width',
+ description:
+ 'Left coordinate of the bounding box as a ratio of overall image width',
default: 0,
},
{
displayName: 'Top',
name: 'top',
type: 'number',
- description: 'Top coordinate of the bounding box as a ratio of overall image height',
+ description:
+ 'Top coordinate of the bounding box as a ratio of overall image height',
default: 0,
},
{
@@ -258,9 +224,7 @@ export class AwsRekognition implements INodeType {
name: 'version',
displayOptions: {
show: {
- '/binaryData': [
- false,
- ],
+ '/binaryData': [false],
},
},
type: 'string',
@@ -275,9 +239,7 @@ export class AwsRekognition implements INodeType {
placeholder: 'Add Word Filter',
displayOptions: {
show: {
- '/type': [
- 'detectText',
- ],
+ '/type': ['detectText'],
},
},
typeOptions: {
@@ -288,21 +250,24 @@ export class AwsRekognition implements INodeType {
displayName: 'Min Bounding Box Height',
name: 'MinBoundingBoxHeight',
type: 'number',
- description: 'Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.',
+ description:
+ 'Sets the minimum height of the word bounding box. Words with bounding box heights lesser than this value will be excluded from the result. Value is relative to the video frame height.',
default: 0,
},
{
displayName: 'Min Bounding Box Width',
name: 'MinBoundingBoxWidth',
type: 'number',
- description: 'Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.',
+ description:
+ 'Sets the minimum width of the word bounding box. Words with bounding boxes widths lesser than this value will be excluded from the result. Value is relative to the video frame width.',
default: 0,
},
{
displayName: 'Min Confidence',
name: 'MinConfidence',
type: 'number',
- description: 'Sets the confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 50 and 100 as Text in Video will not return any result below 50.',
+ description:
+ 'Sets the confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 50 and 100 as Text in Video will not return any result below 50.',
default: 0,
},
],
@@ -313,17 +278,15 @@ export class AwsRekognition implements INodeType {
type: 'number',
displayOptions: {
show: {
- '/type': [
- 'detectModerationLabels',
- 'detectLabels',
- ],
+ '/type': ['detectModerationLabels', 'detectLabels'],
},
},
default: 0,
typeOptions: {
minValue: 0,
},
- description: 'Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.',
+ description:
+ 'Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.',
},
{
displayName: 'Min Confidence',
@@ -331,10 +294,7 @@ export class AwsRekognition implements INodeType {
type: 'number',
displayOptions: {
show: {
- '/type': [
- 'detectModerationLabels',
- 'detectLabels',
- ],
+ '/type': ['detectModerationLabels', 'detectLabels'],
},
},
default: 0,
@@ -342,7 +302,8 @@ export class AwsRekognition implements INodeType {
minValue: 0,
maxValue: 100,
},
- description: 'Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn\'t return any labels with a confidence level lower than this specified value.',
+ description:
+ "Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value.",
},
{
displayName: 'Attributes',
@@ -350,9 +311,7 @@ export class AwsRekognition implements INodeType {
type: 'multiOptions',
displayOptions: {
show: {
- '/type': [
- 'detectFaces',
- ],
+ '/type': ['detectFaces'],
},
},
options: [
@@ -438,7 +397,9 @@ export class AwsRekognition implements INodeType {
body.Filters = {};
- const box = (additionalFields.regionsOfInterestUi as IDataObject || {}).regionsOfInterestValues as IDataObject[] || [];
+ const box =
+ (((additionalFields.regionsOfInterestUi as IDataObject) || {})
+ .regionsOfInterestValues as IDataObject[]) || [];
if (box.length !== 0) {
//@ts-ignore
@@ -447,7 +408,7 @@ export class AwsRekognition implements INodeType {
});
}
- const wordFilter = additionalFields.wordFilterUi as IDataObject || {};
+ const wordFilter = (additionalFields.wordFilterUi as IDataObject) || {};
if (Object.keys(wordFilter).length !== 0) {
//@ts-ignore
body.Filters.WordFilter = keysTPascalCase(wordFilter);
@@ -456,15 +417,20 @@ export class AwsRekognition implements INodeType {
const binaryData = this.getNodeParameter('binaryData', 0) as boolean;
if (binaryData) {
-
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0) as string;
if (items[i].binary === undefined) {
- throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', { itemIndex: i });
+ throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
+ itemIndex: i,
+ });
}
if ((items[i].binary as IBinaryKeyData)[binaryPropertyName] === undefined) {
- throw new NodeOperationError(this.getNode(), `No binary data property "${binaryPropertyName}" does not exists on item!`, { itemIndex: i });
+ throw new NodeOperationError(
+ this.getNode(),
+ `No binary data property "${binaryPropertyName}" does not exists on item!`,
+ { itemIndex: i },
+ );
}
const binaryPropertyData = (items[i].binary as IBinaryKeyData)[binaryPropertyName];
@@ -474,9 +440,7 @@ export class AwsRekognition implements INodeType {
Bytes: binaryPropertyData.data,
},
});
-
} else {
-
const bucket = this.getNodeParameter('bucket', i) as string;
const name = this.getNodeParameter('name', i) as string;
@@ -496,8 +460,15 @@ export class AwsRekognition implements INodeType {
}
}
- responseData = await awsApiRequestREST.call(this, 'rekognition', 'POST', '', JSON.stringify(body), {}, { 'X-Amz-Target': action, 'Content-Type': 'application/x-amz-json-1.1' });
-
+ responseData = await awsApiRequestREST.call(
+ this,
+ 'rekognition',
+ 'POST',
+ '',
+ JSON.stringify(body),
+ {},
+ { 'X-Amz-Target': action, 'Content-Type': 'application/x-amz-json-1.1' },
+ );
}
}
}
diff --git a/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts
index 3a8b98c3607e9..112c8c6234d5f 100644
--- a/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts
@@ -1,23 +1,12 @@
-import {
- URL,
-} from 'url';
+import { URL } from 'url';
-import {
- Request,
- sign,
-} from 'aws4';
+import { Request, sign } from 'aws4';
-import {
- get,
-} from 'lodash';
+import { get } from 'lodash';
-import {
- OptionsWithUri,
-} from 'request';
+import { OptionsWithUri } from 'request';
-import {
- parseString,
-} from 'xml2js';
+import { parseString } from 'xml2js';
import {
IExecuteFunctions,
@@ -26,27 +15,39 @@ import {
IWebhookFunctions,
} from 'n8n-core';
-import {
- IDataObject,
- NodeApiError,
- NodeOperationError,
- } from 'n8n-workflow';
-
-import {
- pascalCase,
-} from 'change-case';
-
-export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: string, path: string, body?: string | Buffer | IDataObject, query: IDataObject = {}, headers?: object, option: IDataObject = {}, region?: string): PromiseSet to mask to remove filtered text from the transcript and replace it with three asterisks ("***") as placeholder text.
Set to remove to remove filtered text from the transcript without using placeholder text. Set to tag to mark the word in the transcription output that matches the vocabulary filter. When you set the filter method to tag, the words matching your vocabulary filter are not masked or removed.
', + description: + 'Set to mask to remove filtered text from the transcript and replace it with three asterisks ("***") as placeholder text.
Set to remove to remove filtered text from the transcript without using placeholder text. Set to tag to mark the word in the transcription output that matches the vocabulary filter. When you set the filter method to tag, the words matching your vocabulary filter are not masked or removed.
', }, ], }, @@ -276,16 +248,13 @@ export class AwsTranscribe implements INodeType { default: true, displayOptions: { show: { - resource: [ - 'transcriptionJob', - ], - operation: [ - 'get', - ], + resource: ['transcriptionJob'], + operation: ['get'], }, }, // eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether - description: 'By default, the response only contains metadata about the transcript. Enable this option to retrieve the transcript instead.', + description: + 'By default, the response only contains metadata about the transcript. Enable this option to retrieve the transcript instead.', }, { displayName: 'Simplify', @@ -293,19 +262,14 @@ export class AwsTranscribe implements INodeType { type: 'boolean', displayOptions: { show: { - resource: [ - 'transcriptionJob', - ], - operation: [ - 'get', - ], - returnTranscript: [ - true, - ], + resource: ['transcriptionJob'], + operation: ['get'], + returnTranscript: [true], }, }, default: true, - description: 'Whether to return a simplified version of the response instead of the raw data', + description: + 'Whether to return a simplified version of the response instead of the raw data', }, { displayName: 'Return All', @@ -313,12 +277,8 @@ export class AwsTranscribe implements INodeType { type: 'boolean', displayOptions: { show: { - resource: [ - 'transcriptionJob', - ], - operation: [ - 'getAll', - ], + resource: ['transcriptionJob'], + operation: ['getAll'], }, }, default: false, @@ -334,15 +294,9 @@ export class AwsTranscribe implements INodeType { }, displayOptions: { show: { - resource: [ - 'transcriptionJob', - ], - operation: [ - 'getAll', - ], - returnAll: [ - false, - ], + resource: ['transcriptionJob'], + operation: ['getAll'], + returnAll: [false], }, }, description: 'Max number of results to return', @@ -355,12 +309,8 @@ export class AwsTranscribe implements INodeType { default: {}, displayOptions: { show: { - resource: [ - 'transcriptionJob', - ], - operation: [ - 'getAll', - ], + resource: ['transcriptionJob'], + operation: ['getAll'], }, }, options: [ @@ -433,7 +383,9 @@ export class AwsTranscribe implements INodeType { } if (options.channelIdentification) { - Object.assign(body.Settings, { ChannelIdentification: options.channelIdentification }); + Object.assign(body.Settings, { + ChannelIdentification: options.channelIdentification, + }); } if (options.maxAlternatives) { @@ -469,7 +421,14 @@ export class AwsTranscribe implements INodeType { } const action = 'Transcribe.StartTranscriptionJob'; - responseData = await awsApiRequestREST.call(this, 'transcribe', 'POST', '', JSON.stringify(body), { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }); + responseData = await awsApiRequestREST.call( + this, + 'transcribe', + 'POST', + '', + JSON.stringify(body), + { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }, + ); responseData = responseData.TranscriptionJob; } //https://docs.aws.amazon.com/transcribe/latest/dg/API_DeleteTranscriptionJob.html @@ -481,7 +440,14 @@ export class AwsTranscribe implements INodeType { }; const action = 'Transcribe.DeleteTranscriptionJob'; - responseData = await awsApiRequestREST.call(this, 'transcribe', 'POST', '', JSON.stringify(body), { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }); + responseData = await awsApiRequestREST.call( + this, + 'transcribe', + 'POST', + '', + JSON.stringify(body), + { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }, + ); responseData = { success: true }; } //https://docs.aws.amazon.com/transcribe/latest/dg/API_GetTranscriptionJob.html @@ -494,14 +460,29 @@ export class AwsTranscribe implements INodeType { }; const action = 'Transcribe.GetTranscriptionJob'; - responseData = await awsApiRequestREST.call(this, 'transcribe', 'POST', '', JSON.stringify(body), { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }); + responseData = await awsApiRequestREST.call( + this, + 'transcribe', + 'POST', + '', + JSON.stringify(body), + { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }, + ); responseData = responseData.TranscriptionJob; if (resolve === true && responseData.TranscriptionJobStatus === 'COMPLETED') { - responseData = await this.helpers.request({ method: 'GET', uri: responseData.Transcript.TranscriptFileUri, json: true }); + responseData = await this.helpers.request({ + method: 'GET', + uri: responseData.Transcript.TranscriptFileUri, + json: true, + }); const simple = this.getNodeParameter('simple', 0) as boolean; if (simple === true) { - responseData = { transcript: responseData.results.transcripts.map((data: IDataObject) => data.transcript).join(' ') }; + responseData = { + transcript: responseData.results.transcripts + .map((data: IDataObject) => data.transcript) + .join(' '), + }; } } } @@ -521,12 +502,26 @@ export class AwsTranscribe implements INodeType { } if (returnAll === true) { - responseData = await awsApiRequestRESTAllItems.call(this, 'TranscriptionJobSummaries', 'transcribe', 'POST', '', JSON.stringify(body), { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }); - + responseData = await awsApiRequestRESTAllItems.call( + this, + 'TranscriptionJobSummaries', + 'transcribe', + 'POST', + '', + JSON.stringify(body), + { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }, + ); } else { const limit = this.getNodeParameter('limit', i) as number; body['MaxResults'] = limit; - responseData = await awsApiRequestREST.call(this, 'transcribe', 'POST', '', JSON.stringify(body), { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }); + responseData = await awsApiRequestREST.call( + this, + 'transcribe', + 'POST', + '', + JSON.stringify(body), + { 'x-amz-target': action, 'Content-Type': 'application/x-amz-json-1.1' }, + ); responseData = responseData.TranscriptionJobSummaries; } } @@ -537,7 +532,6 @@ export class AwsTranscribe implements INodeType { } else { returnData.push(responseData as IDataObject); } - } catch (error) { if (this.continueOnFail()) { returnData.push({ error: error.message }); diff --git a/packages/nodes-base/nodes/Aws/Transcribe/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/Transcribe/GenericFunctions.ts index 7de8078242efd..2d756b90bbd74 100644 --- a/packages/nodes-base/nodes/Aws/Transcribe/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/Transcribe/GenericFunctions.ts @@ -1,15 +1,8 @@ -import { - URL, -} from 'url'; +import { URL } from 'url'; -import { - Request, - sign, -} from 'aws4'; +import { Request, sign } from 'aws4'; -import { - OptionsWithUri, -} from 'request'; +import { OptionsWithUri } from 'request'; import { IExecuteFunctions, @@ -25,11 +18,12 @@ import { NodeOperationError, } from 'n8n-workflow'; -import { - get, -} from 'lodash'; +import { get } from 'lodash'; -function getEndpointForService(service: string, credentials: ICredentialDataDecryptedObject): string { +function getEndpointForService( + service: string, + credentials: ICredentialDataDecryptedObject, +): string { let endpoint; if (service === 'lambda' && credentials.lambdaEndpoint) { endpoint = credentials.lambdaEndpoint; @@ -41,7 +35,15 @@ function getEndpointForService(service: string, credentials: ICredentialDataDecr return (endpoint as string).replace('{region}', credentials.region as string); } -export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: string, path: string, body?: string, headers?: object): Promise_source
. Defaults to false.',
+ description:
+ 'Whether to retrieve the document fields stored in the index rather than the document _source
. Defaults to false.',
type: 'boolean',
default: false,
},
@@ -203,12 +176,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['document'],
+ operation: ['getAll'],
},
},
},
@@ -220,12 +189,8 @@ export const documentFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['document'],
+ operation: ['getAll'],
},
},
},
@@ -240,15 +205,9 @@ export const documentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['document'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -260,12 +219,8 @@ export const documentFields: INodeProperties[] = [
description: 'Whether to return a simplified version of the response instead of the raw data',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['document'],
+ operation: ['getAll'],
},
},
},
@@ -277,12 +232,8 @@ export const documentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['document'],
+ operation: ['getAll'],
},
},
options: [
@@ -290,7 +241,8 @@ export const documentFields: INodeProperties[] = [
displayName: 'Allow No Indices',
name: 'allow_no_indices',
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
- description: 'If false, return an error if any of the following targets only missing/closed indices: wildcard expression, index alias, or _all
value. Defaults to true.',
+ description:
+ 'If false, return an error if any of the following targets only missing/closed indices: wildcard expression, index alias, or _all
value. Defaults to true.',
type: 'boolean',
default: true,
},
@@ -298,14 +250,16 @@ export const documentFields: INodeProperties[] = [
displayName: 'Allow Partial Search Results',
name: 'allow_partial_search_results',
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
- description: 'If true, return partial results if there are shard request timeouts or shard failures.
If false, returns an error with no partial results. Defaults to true.
.', + description: + 'If true, return partial results if there are shard request timeouts or shard failures.
If false, returns an error with no partial results. Defaults to true.
.', type: 'boolean', default: true, }, { displayName: 'Batched Reduce Size', name: 'batched_reduce_size', - description: 'Number of shard results that should be reduced at once on the coordinating node. Defaults to 512.', + description: + 'Number of shard results that should be reduced at once on the coordinating node. Defaults to 512.', type: 'number', typeOptions: { minValue: 2, @@ -315,21 +269,24 @@ export const documentFields: INodeProperties[] = [ { displayName: 'CCS Minimize Roundtrips', name: 'ccs_minimize_roundtrips', - description: 'Whether network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. Defaults to true.', + description: + 'Whether network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. Defaults to true.', type: 'boolean', default: true, }, { displayName: 'Doc Value Fields', name: 'docvalue_fields', - description: 'Comma-separated list of fields to return as the docvalue representation of a field for each hit', + description: + 'Comma-separated list of fields to return as the docvalue representation of a field for each hit', type: 'string', default: '', }, { displayName: 'Expand Wildcards', name: 'expand_wildcards', - description: 'Type of index that wildcard expressions can match. Defaults toopen
',
+ description:
+ 'Type of index that wildcard expressions can match. Defaults to open
',
type: 'options',
options: [
{
@@ -358,35 +315,40 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Explain',
name: 'explain',
- description: 'Whether to return detailed information about score computation as part of a hit. Defaults to false.',
+ description:
+ 'Whether to return detailed information about score computation as part of a hit. Defaults to false.',
type: 'boolean',
default: false,
},
{
displayName: 'Ignore Throttled',
name: 'ignore_throttled',
- description: 'Whether concrete, expanded or aliased indices are ignored when frozen. Defaults to true.',
+ description:
+ 'Whether concrete, expanded or aliased indices are ignored when frozen. Defaults to true.',
type: 'boolean',
default: true,
},
{
displayName: 'Ignore Unavailable',
name: 'ignore_unavailable',
- description: 'Whether missing or closed indices are not included in the response. Defaults to false.',
+ description:
+ 'Whether missing or closed indices are not included in the response. Defaults to false.',
type: 'boolean',
default: false,
},
{
displayName: 'Max Concurrent Shard Requests',
name: 'max_concurrent_shard_requests',
- description: 'Define the number of shard requests per node this search executes concurrently. Defaults to 5.',
+ description:
+ 'Define the number of shard requests per node this search executes concurrently. Defaults to 5.',
type: 'number',
default: 5,
},
{
displayName: 'Pre-Filter Shard Size',
name: 'pre_filter_shard_size',
- description: 'Define a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting. Only used if the number of shards the search request expands to exceeds the threshold.',
+ description:
+ 'Define a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting. Only used if the number of shards the search request expands to exceeds the threshold.',
type: 'number',
typeOptions: {
minValue: 1,
@@ -396,7 +358,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Query',
name: 'query',
- description: 'Query in the Elasticsearch Query DSL',
+ description:
+ 'Query in the Elasticsearch Query DSL',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
@@ -407,7 +370,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Request Cache',
name: 'request_cache',
- description: 'Whether the caching of search results is enabled for requests where size is 0. See Elasticsearch shard request cache settings.',
+ description:
+ 'Whether the caching of search results is enabled for requests where size is 0. See Elasticsearch shard request cache settings.',
type: 'boolean',
default: false,
},
@@ -421,7 +385,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Search Type',
name: 'search_type',
- description: 'How distributed term frequencies are calculated for relevance scoring. Defaults to Query then Fetch.',
+ description:
+ 'How distributed term frequencies are calculated for relevance scoring. Defaults to Query then Fetch.',
type: 'options',
options: [
{
@@ -438,7 +403,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Sequence Number and Primary Term',
name: 'seq_no_primary_term',
- description: 'Whether to return the sequence number and primary term of the last modification of each hit. See Optimistic concurrency control.',
+ description:
+ 'Whether to return the sequence number and primary term of the last modification of each hit. See Optimistic concurrency control.',
type: 'boolean',
default: false,
},
@@ -473,7 +439,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Stored Fields',
name: 'stored_fields',
- description: 'Whether to retrieve the document fields stored in the index rather than the document _source
. Defaults to false.',
+ description:
+ 'Whether to retrieve the document fields stored in the index rather than the document _source
. Defaults to false.',
type: 'boolean',
default: false,
},
@@ -487,14 +454,16 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Timeout',
name: 'timeout',
- description: 'Period to wait for active shards. Defaults to 1m
(one minute). See the Elasticsearch time units reference',
+ description:
+ 'Period to wait for active shards. Defaults to 1m
(one minute). See the Elasticsearch time units reference',
type: 'string',
default: '1m',
},
{
displayName: 'Track Scores',
name: 'track_scores',
- description: 'Whether to calculate and return document scores, even if the scores are not used for sorting. Defaults to false.',
+ description:
+ 'Whether to calculate and return document scores, even if the scores are not used for sorting. Defaults to false.',
type: 'boolean',
default: false,
},
@@ -527,12 +496,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
+ resource: ['document'],
+ operation: ['create'],
},
},
},
@@ -554,12 +519,8 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
+ resource: ['document'],
+ operation: ['create'],
},
},
default: 'defineBelow',
@@ -571,19 +532,14 @@ export const documentFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
- dataToSend: [
- 'autoMapInputData',
- ],
+ resource: ['document'],
+ operation: ['create'],
+ dataToSend: ['autoMapInputData'],
},
},
default: '',
- description: 'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
+ description:
+ 'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
placeholder: 'Enter properties...',
},
{
@@ -597,15 +553,9 @@ export const documentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
- dataToSend: [
- 'defineBelow',
- ],
+ resource: ['document'],
+ operation: ['create'],
+ dataToSend: ['defineBelow'],
},
},
default: {},
@@ -638,12 +588,8 @@ export const documentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
+ resource: ['document'],
+ operation: ['create'],
},
},
options: [
@@ -664,7 +610,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Timeout',
name: 'timeout',
- description: 'Period to wait for active shards. Defaults to 1m
(one minute). See the Elasticsearch time units reference',
+ description:
+ 'Period to wait for active shards. Defaults to 1m
(one minute). See the Elasticsearch time units reference',
type: 'string',
default: '1m',
},
@@ -678,12 +625,8 @@ export const documentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'create',
- ],
+ resource: ['document'],
+ operation: ['create'],
},
},
options: [
@@ -697,7 +640,8 @@ export const documentFields: INodeProperties[] = [
{
displayName: 'Refresh',
name: 'refresh',
- description: 'If true, Elasticsearch refreshes the affected shards to make this operation visible to search,if wait_for then wait for a refresh to make this operation visible to search,if false do nothing with refreshes',
+ description:
+ 'If true, Elasticsearch refreshes the affected shards to make this operation visible to search,if wait_for then wait for a refresh to make this operation visible to search,if false do nothing with refreshes',
type: 'options',
default: 'false',
options: [
@@ -733,12 +677,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
+ resource: ['document'],
+ operation: ['update'],
},
},
},
@@ -751,12 +691,8 @@ export const documentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
+ resource: ['document'],
+ operation: ['update'],
},
},
},
@@ -778,12 +714,8 @@ export const documentFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
+ resource: ['document'],
+ operation: ['update'],
},
},
default: 'defineBelow',
@@ -795,19 +727,14 @@ export const documentFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
- dataToSend: [
- 'autoMapInputData',
- ],
+ resource: ['document'],
+ operation: ['update'],
+ dataToSend: ['autoMapInputData'],
},
},
default: '',
- description: 'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
+ description:
+ 'List of input properties to avoid sending, separated by commas. Leave empty to send all properties.',
placeholder: 'Enter properties...',
},
{
@@ -821,15 +748,9 @@ export const documentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
- dataToSend: [
- 'defineBelow',
- ],
+ resource: ['document'],
+ operation: ['update'],
+ dataToSend: ['defineBelow'],
},
},
default: {},
@@ -862,19 +783,16 @@ export const documentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'document',
- ],
- operation: [
- 'update',
- ],
+ resource: ['document'],
+ operation: ['update'],
},
},
options: [
{
displayName: 'Refresh',
name: 'refresh',
- description: 'If true, Elasticsearch refreshes the affected shards to make this operation visible to search,if wait_for then wait for a refresh to make this operation visible to search,if false do nothing with refreshes',
+ description:
+ 'If true, Elasticsearch refreshes the affected shards to make this operation visible to search,if wait_for then wait for a refresh to make this operation visible to search,if false do nothing with refreshes',
type: 'options',
default: 'false',
options: [
diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
index a24eef3fe446a..09a923575e576 100644
--- a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
+++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
import * as placeholders from './placeholders';
@@ -12,9 +10,7 @@ export const indexOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'index',
- ],
+ resource: ['index'],
},
},
options: [
@@ -56,12 +52,8 @@ export const indexFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'create',
- ],
+ resource: ['index'],
+ operation: ['create'],
},
},
},
@@ -73,19 +65,16 @@ export const indexFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'create',
- ],
+ resource: ['index'],
+ operation: ['create'],
},
},
options: [
{
displayName: 'Aliases',
name: 'aliases',
- description: 'Index aliases which include the index, as an alias object',
+ description:
+ 'Index aliases which include the index, as an alias object',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
@@ -96,14 +85,16 @@ export const indexFields: INodeProperties[] = [
{
displayName: 'Include Type Name',
name: 'include_type_name',
- description: 'Whether a mapping type is expected in the body of mappings. Defaults to false.',
+ description:
+ 'Whether a mapping type is expected in the body of mappings. Defaults to false.',
type: 'boolean',
default: false,
},
{
displayName: 'Mappings',
name: 'mappings',
- description: 'Mapping for fields in the index, as mapping object',
+ description:
+ 'Mapping for fields in the index, as mapping object',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
@@ -114,14 +105,16 @@ export const indexFields: INodeProperties[] = [
{
displayName: 'Master Timeout',
name: 'master_timeout',
- description: 'Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 1m
. See the Elasticsearch time units reference',
+ description:
+ 'Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 1m
. See the Elasticsearch time units reference',
type: 'string',
default: '1m',
},
{
displayName: 'Settings',
name: 'settings',
- description: 'Configuration options for the index, as an index settings object',
+ description:
+ 'Configuration options for the index, as an index settings object',
type: 'json',
typeOptions: {
alwaysOpenEditWindow: true,
@@ -132,14 +125,16 @@ export const indexFields: INodeProperties[] = [
{
displayName: 'Timeout',
name: 'timeout',
- description: 'Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 30s
. See the Elasticsearch time units reference',
+ description:
+ 'Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 30s
. See the Elasticsearch time units reference',
type: 'string',
default: '30s',
},
{
displayName: 'Wait for Active Shards',
name: 'wait_for_active_shards',
- description: 'The number of shard copies that must be active before proceeding with the operation. Set to all
or any positive integer up to the total number of shards in the index. Default: 1, the primary shard',
+ description:
+ 'The number of shard copies that must be active before proceeding with the operation. Set to all
or any positive integer up to the total number of shards in the index. Default: 1, the primary shard',
type: 'string',
default: '1',
},
@@ -158,12 +153,8 @@ export const indexFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['index'],
+ operation: ['delete'],
},
},
},
@@ -180,12 +171,8 @@ export const indexFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'get',
- ],
+ resource: ['index'],
+ operation: ['get'],
},
},
},
@@ -197,12 +184,8 @@ export const indexFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'get',
- ],
+ resource: ['index'],
+ operation: ['get'],
},
},
options: [
@@ -210,14 +193,16 @@ export const indexFields: INodeProperties[] = [
displayName: 'Allow No Indices',
name: 'allow_no_indices',
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
- description: 'If false, return an error if any of the following targets only missing/closed indices: wildcard expression, index alias, or _all
value. Defaults to true.',
+ description:
+ 'If false, return an error if any of the following targets only missing/closed indices: wildcard expression, index alias, or _all
value. Defaults to true.',
type: 'boolean',
default: true,
},
{
displayName: 'Expand Wildcards',
name: 'expand_wildcards',
- description: 'Type of index that wildcard expressions can match. Defaults to open
',
+ description:
+ 'Type of index that wildcard expressions can match. Defaults to open
',
type: 'options',
options: [
{
@@ -253,7 +238,8 @@ export const indexFields: INodeProperties[] = [
{
displayName: 'Ignore Unavailable',
name: 'ignore_unavailable',
- description: 'Whether to request that target a missing index return an error. Defaults to false.',
+ description:
+ 'Whether to request that target a missing index return an error. Defaults to false.',
type: 'boolean',
default: false,
},
@@ -274,7 +260,8 @@ export const indexFields: INodeProperties[] = [
{
displayName: 'Master Timeout',
name: 'master_timeout',
- description: 'Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 1m
. See the Elasticsearch time units reference',
+ description:
+ 'Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 1m
. See the Elasticsearch time units reference',
type: 'string',
default: '1m',
},
@@ -292,12 +279,8 @@ export const indexFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['index'],
+ operation: ['getAll'],
},
},
},
@@ -312,15 +295,9 @@ export const indexFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'index',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['index'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
index 53c5fe8b3a6ef..7ece71a69096b 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
@@ -1,10 +1,6 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
-import {
- LANGUAGES,
-} from '../constants';
+import { LANGUAGES } from '../constants';
export const agentOperations: INodeProperties[] = [
{
@@ -14,9 +10,7 @@ export const agentOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
+ resource: ['agent'],
},
},
options: [
@@ -68,12 +62,8 @@ export const agentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agent'],
+ operation: ['create'],
},
},
},
@@ -85,12 +75,8 @@ export const agentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agent'],
+ operation: ['create'],
},
},
},
@@ -107,12 +93,8 @@ export const agentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agent'],
+ operation: ['create'],
},
},
options: [
@@ -123,7 +105,8 @@ export const agentFields: INodeProperties[] = [
{
displayName: 'Role Name or ID',
name: 'role',
- description: 'Name of the role to assign to the agent. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Name of the role to assign to the agent. Choose from the list, or specify an ID using an expression.',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAgentRoles',
@@ -160,7 +143,8 @@ export const agentFields: INodeProperties[] = [
{
displayName: 'Group Names or IDs',
name: 'groups',
- description: 'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
@@ -179,12 +163,8 @@ export const agentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agent'],
+ operation: ['create'],
},
},
options: [
@@ -205,7 +185,8 @@ export const agentFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
- description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -234,7 +215,8 @@ export const agentFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -245,7 +227,8 @@ export const agentFields: INodeProperties[] = [
name: 'member_of',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -262,7 +245,8 @@ export const agentFields: INodeProperties[] = [
name: 'observer_of',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -338,12 +322,8 @@ export const agentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['agent'],
+ operation: ['delete'],
},
},
},
@@ -360,12 +340,8 @@ export const agentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'get',
- ],
+ resource: ['agent'],
+ operation: ['get'],
},
},
},
@@ -381,12 +357,8 @@ export const agentFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['agent'],
+ operation: ['getAll'],
},
},
},
@@ -401,15 +373,9 @@ export const agentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['agent'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -421,12 +387,8 @@ export const agentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['agent'],
+ operation: ['getAll'],
},
},
options: [
@@ -435,7 +397,8 @@ export const agentFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department to which the agent belongs. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department to which the agent belongs. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -477,7 +440,8 @@ export const agentFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
- description: 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -509,12 +473,8 @@ export const agentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'update',
- ],
+ resource: ['agent'],
+ operation: ['update'],
},
},
},
@@ -526,12 +486,8 @@ export const agentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agent',
- ],
- operation: [
- 'update',
- ],
+ resource: ['agent'],
+ operation: ['update'],
},
},
options: [
@@ -552,7 +508,8 @@ export const agentFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
- description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -594,7 +551,8 @@ export const agentFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
- description: 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -605,7 +563,8 @@ export const agentFields: INodeProperties[] = [
name: 'member_of',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -622,7 +581,8 @@ export const agentFields: INodeProperties[] = [
name: 'observer_of',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
index 0b522b61471e9..f1c70913e100c 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const agentGroupOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const agentGroupOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
+ resource: ['agentGroup'],
},
},
options: [
@@ -63,12 +59,8 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agentGroup'],
+ operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const agentGroupFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'create',
- ],
+ resource: ['agentGroup'],
+ operation: ['create'],
},
},
options: [
@@ -103,14 +91,16 @@ export const agentGroupFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAgents',
},
- description: 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Member Names or IDs',
name: 'members',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -120,7 +110,8 @@ export const agentGroupFields: INodeProperties[] = [
name: 'observers',
type: 'multiOptions',
default: [],
- description: 'Comma-separated agent IDs who are observers of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated agent IDs who are observers of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -128,7 +119,8 @@ export const agentGroupFields: INodeProperties[] = [
{
displayName: 'Unassigned For',
name: 'unassigned_for',
- description: 'Time after which an escalation email is sent if a ticket in the group remains unassigned',
+ description:
+ 'Time after which an escalation email is sent if a ticket in the group remains unassigned',
type: 'options',
default: '30m',
options: [
@@ -181,12 +173,8 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['agentGroup'],
+ operation: ['delete'],
},
},
},
@@ -203,12 +191,8 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'get',
- ],
+ resource: ['agentGroup'],
+ operation: ['get'],
},
},
},
@@ -224,12 +208,8 @@ export const agentGroupFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['agentGroup'],
+ operation: ['getAll'],
},
},
},
@@ -244,15 +224,9 @@ export const agentGroupFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['agentGroup'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -269,12 +243,8 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'update',
- ],
+ resource: ['agentGroup'],
+ operation: ['update'],
},
},
},
@@ -286,12 +256,8 @@ export const agentGroupFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'agentGroup',
- ],
- operation: [
- 'update',
- ],
+ resource: ['agentGroup'],
+ operation: ['update'],
},
},
options: [
@@ -306,7 +272,8 @@ export const agentGroupFields: INodeProperties[] = [
name: 'escalate_to',
type: 'options',
default: '',
- description: 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -316,7 +283,8 @@ export const agentGroupFields: INodeProperties[] = [
name: 'members',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -332,7 +300,8 @@ export const agentGroupFields: INodeProperties[] = [
name: 'observers',
type: 'multiOptions',
default: [],
- description: 'Comma-separated agent user IDs who are observers of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated agent user IDs who are observers of this group. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -340,7 +309,8 @@ export const agentGroupFields: INodeProperties[] = [
{
displayName: 'Unassigned For',
name: 'unassigned_for',
- description: 'Time after which an escalation email is sent if a ticket in the group remains unassigned',
+ description:
+ 'Time after which an escalation email is sent if a ticket in the group remains unassigned',
type: 'options',
default: '30m',
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
index f18c8a420cbce..27c6879d10d4d 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const agentRoleOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const agentRoleOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'agentRole',
- ],
+ resource: ['agentRole'],
},
},
options: [
@@ -46,12 +42,8 @@ export const agentRoleFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'agentRole',
- ],
- operation: [
- 'get',
- ],
+ resource: ['agentRole'],
+ operation: ['get'],
},
},
},
@@ -67,12 +59,8 @@ export const agentRoleFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'agentRole',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['agentRole'],
+ operation: ['getAll'],
},
},
},
@@ -87,15 +75,9 @@ export const agentRoleFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'agentRole',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['agentRole'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
index ccb5d4b7cbe3e..27178c1f22069 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const announcementOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const announcementOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
+ resource: ['announcement'],
},
},
options: [
@@ -63,12 +59,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'create',
- ],
+ resource: ['announcement'],
+ operation: ['create'],
},
},
},
@@ -81,12 +73,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'create',
- ],
+ resource: ['announcement'],
+ operation: ['create'],
},
},
},
@@ -112,12 +100,8 @@ export const announcementFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'create',
- ],
+ resource: ['announcement'],
+ operation: ['create'],
},
},
},
@@ -130,12 +114,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'create',
- ],
+ resource: ['announcement'],
+ operation: ['create'],
},
},
},
@@ -147,12 +127,8 @@ export const announcementFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'create',
- ],
+ resource: ['announcement'],
+ operation: ['create'],
},
},
options: [
@@ -161,14 +137,16 @@ export const announcementFields: INodeProperties[] = [
name: 'additional_emails',
type: 'string',
default: '',
- description: 'Comma-separated additional email addresses to which the announcement needs to be sent',
+ description:
+ 'Comma-separated additional email addresses to which the announcement needs to be sent',
},
{
displayName: 'Department Names or IDs',
name: 'departments',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -202,12 +180,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['announcement'],
+ operation: ['delete'],
},
},
},
@@ -224,12 +198,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'get',
- ],
+ resource: ['announcement'],
+ operation: ['get'],
},
},
},
@@ -245,12 +215,8 @@ export const announcementFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['announcement'],
+ operation: ['getAll'],
},
},
},
@@ -265,15 +231,9 @@ export const announcementFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['announcement'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -290,12 +250,8 @@ export const announcementFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'update',
- ],
+ resource: ['announcement'],
+ operation: ['update'],
},
},
},
@@ -307,12 +263,8 @@ export const announcementFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'announcement',
- ],
- operation: [
- 'update',
- ],
+ resource: ['announcement'],
+ operation: ['update'],
},
},
options: [
@@ -321,7 +273,8 @@ export const announcementFields: INodeProperties[] = [
name: 'additional_emails',
type: 'string',
default: '',
- description: 'Comma-separated additional email addresses to which the announcement needs to be sent',
+ description:
+ 'Comma-separated additional email addresses to which the announcement needs to be sent',
},
{
displayName: 'Body',
@@ -335,7 +288,8 @@ export const announcementFields: INodeProperties[] = [
name: 'departments',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
index 25246bdfa6820..e79d8cc2b6ded 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const assetOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const assetOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
+ resource: ['asset'],
},
},
options: [
@@ -63,12 +59,8 @@ export const assetFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'create',
- ],
+ resource: ['asset'],
+ operation: ['create'],
},
},
},
@@ -76,7 +68,8 @@ export const assetFields: INodeProperties[] = [
displayName: 'Asset Type Name or ID',
name: 'assetTypeId',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
required: true,
default: '',
typeOptions: {
@@ -84,12 +77,8 @@ export const assetFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'create',
- ],
+ resource: ['asset'],
+ operation: ['create'],
},
},
},
@@ -103,12 +92,8 @@ export const assetFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'create',
- ],
+ resource: ['asset'],
+ operation: ['create'],
},
},
default: {},
@@ -122,13 +107,12 @@ export const assetFields: INodeProperties[] = [
name: 'name',
type: 'options',
typeOptions: {
- loadOptionsDependsOn: [
- 'assetTypeId',
- ],
+ loadOptionsDependsOn: ['assetTypeId'],
loadOptionsMethod: 'getAssetTypeFields',
},
default: '',
- description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Value',
@@ -153,12 +137,8 @@ export const assetFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['asset'],
+ operation: ['delete'],
},
},
},
@@ -175,12 +155,8 @@ export const assetFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'get',
- ],
+ resource: ['asset'],
+ operation: ['get'],
},
},
},
@@ -196,12 +172,8 @@ export const assetFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['asset'],
+ operation: ['getAll'],
},
},
},
@@ -216,15 +188,9 @@ export const assetFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['asset'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -236,12 +202,8 @@ export const assetFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['asset'],
+ operation: ['getAll'],
},
},
options: [
@@ -250,7 +212,8 @@ export const assetFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent by whom the asset is managed. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent by whom the asset is managed. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -267,7 +230,8 @@ export const assetFields: INodeProperties[] = [
name: 'asset_type_id',
type: 'options',
default: '',
- description: 'ID of the asset type to filter by. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the asset type to filter by. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAssetTypes',
},
@@ -277,7 +241,8 @@ export const assetFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department to which the asset belongs. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department to which the asset belongs. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -287,7 +252,8 @@ export const assetFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
- description: 'ID of the location to filter by. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the location to filter by. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -314,12 +280,8 @@ export const assetFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'update',
- ],
+ resource: ['asset'],
+ operation: ['update'],
},
},
},
@@ -333,12 +295,8 @@ export const assetFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'asset',
- ],
- operation: [
- 'update',
- ],
+ resource: ['asset'],
+ operation: ['update'],
},
},
default: {},
@@ -352,13 +310,12 @@ export const assetFields: INodeProperties[] = [
name: 'name',
type: 'options',
typeOptions: {
- loadOptionsDependsOn: [
- 'assetTypeId',
- ],
+ loadOptionsDependsOn: ['assetTypeId'],
loadOptionsMethod: 'getAssetTypeFields',
},
default: '',
- description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Value',
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
index 1be79ef1d5686..a683b651d1634 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const assetTypeOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const assetTypeOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
+ resource: ['assetType'],
},
},
options: [
@@ -63,12 +59,8 @@ export const assetTypeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'create',
- ],
+ resource: ['assetType'],
+ operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const assetTypeFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'create',
- ],
+ resource: ['assetType'],
+ operation: ['create'],
},
},
options: [
@@ -98,7 +86,8 @@ export const assetTypeFields: INodeProperties[] = [
{
displayName: 'Parent Asset Type Name or ID',
name: 'parent_asset_type_id',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
type: 'options',
default: '',
typeOptions: {
@@ -120,12 +109,8 @@ export const assetTypeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['assetType'],
+ operation: ['delete'],
},
},
},
@@ -142,12 +127,8 @@ export const assetTypeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'get',
- ],
+ resource: ['assetType'],
+ operation: ['get'],
},
},
},
@@ -163,12 +144,8 @@ export const assetTypeFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['assetType'],
+ operation: ['getAll'],
},
},
},
@@ -183,15 +160,9 @@ export const assetTypeFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['assetType'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -208,12 +179,8 @@ export const assetTypeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'update',
- ],
+ resource: ['assetType'],
+ operation: ['update'],
},
},
},
@@ -225,12 +192,8 @@ export const assetTypeFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'assetType',
- ],
- operation: [
- 'update',
- ],
+ resource: ['assetType'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
index 73aaf4bda20bf..1800b21213bca 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const changeOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const changeOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'change',
- ],
+ resource: ['change'],
},
},
options: [
@@ -59,7 +55,8 @@ export const changeFields: INodeProperties[] = [
displayName: 'Requester Name or ID',
name: 'requesterId',
// eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-dynamic-options
- description: 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an expression.',
+ description:
+ 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an expression.',
type: 'options',
required: true,
default: '',
@@ -68,12 +65,8 @@ export const changeFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'create',
- ],
+ resource: ['change'],
+ operation: ['create'],
},
},
},
@@ -85,12 +78,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'create',
- ],
+ resource: ['change'],
+ operation: ['create'],
},
},
},
@@ -102,12 +91,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'create',
- ],
+ resource: ['change'],
+ operation: ['create'],
},
},
},
@@ -119,12 +104,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'create',
- ],
+ resource: ['change'],
+ operation: ['create'],
},
},
},
@@ -136,12 +117,8 @@ export const changeFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'create',
- ],
+ resource: ['change'],
+ operation: ['create'],
},
},
options: [
@@ -150,7 +127,8 @@ export const changeFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -184,7 +162,8 @@ export const changeFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department requesting the change. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department requesting the change. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -201,7 +180,8 @@ export const changeFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -328,12 +308,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['change'],
+ operation: ['delete'],
},
},
},
@@ -350,12 +326,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'get',
- ],
+ resource: ['change'],
+ operation: ['get'],
},
},
},
@@ -371,12 +343,8 @@ export const changeFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['change'],
+ operation: ['getAll'],
},
},
},
@@ -391,15 +359,9 @@ export const changeFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['change'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -411,12 +373,8 @@ export const changeFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['change'],
+ operation: ['getAll'],
},
},
options: [
@@ -485,12 +443,8 @@ export const changeFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'update',
- ],
+ resource: ['change'],
+ operation: ['update'],
},
},
},
@@ -502,12 +456,8 @@ export const changeFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'change',
- ],
- operation: [
- 'update',
- ],
+ resource: ['change'],
+ operation: ['update'],
},
},
options: [
@@ -516,7 +466,8 @@ export const changeFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -550,7 +501,8 @@ export const changeFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department requesting the change. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department requesting the change. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -567,7 +519,8 @@ export const changeFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -622,7 +575,8 @@ export const changeFields: INodeProperties[] = [
name: 'requester_id',
type: 'options',
default: '',
- description: 'ID of the requester of the change. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the requester of the change. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getRequesters',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
index e77b3b739e1d2..ce762b617cbce 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const departmentOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const departmentOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'department',
- ],
+ resource: ['department'],
},
},
options: [
@@ -63,12 +59,8 @@ export const departmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'create',
- ],
+ resource: ['department'],
+ operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const departmentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'create',
- ],
+ resource: ['department'],
+ operation: ['create'],
},
},
options: [
@@ -117,12 +105,8 @@ export const departmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['department'],
+ operation: ['delete'],
},
},
},
@@ -139,12 +123,8 @@ export const departmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'get',
- ],
+ resource: ['department'],
+ operation: ['get'],
},
},
},
@@ -160,12 +140,8 @@ export const departmentFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['department'],
+ operation: ['getAll'],
},
},
},
@@ -180,15 +156,9 @@ export const departmentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['department'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -200,12 +170,8 @@ export const departmentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['department'],
+ operation: ['getAll'],
},
},
options: [
@@ -231,12 +197,8 @@ export const departmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'update',
- ],
+ resource: ['department'],
+ operation: ['update'],
},
},
},
@@ -248,12 +210,8 @@ export const departmentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'department',
- ],
- operation: [
- 'update',
- ],
+ resource: ['department'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
index 30e2f207575cc..3bafe487ed35e 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const locationOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const locationOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'location',
- ],
+ resource: ['location'],
},
},
options: [
@@ -64,12 +60,8 @@ export const locationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'create',
- ],
+ resource: ['location'],
+ operation: ['create'],
},
},
},
@@ -81,12 +73,8 @@ export const locationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'create',
- ],
+ resource: ['location'],
+ operation: ['create'],
},
},
options: [
@@ -156,12 +144,8 @@ export const locationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['location'],
+ operation: ['delete'],
},
},
},
@@ -178,12 +162,8 @@ export const locationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'get',
- ],
+ resource: ['location'],
+ operation: ['get'],
},
},
},
@@ -199,12 +179,8 @@ export const locationFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['location'],
+ operation: ['getAll'],
},
},
},
@@ -219,15 +195,9 @@ export const locationFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['location'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -244,12 +214,8 @@ export const locationFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'update',
- ],
+ resource: ['location'],
+ operation: ['update'],
},
},
},
@@ -261,12 +227,8 @@ export const locationFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'location',
- ],
- operation: [
- 'update',
- ],
+ resource: ['location'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
index 426c02af15704..9438974a9c76d 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const problemOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const problemOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
+ resource: ['problem'],
},
},
options: [
@@ -63,19 +59,16 @@ export const problemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'create',
- ],
+ resource: ['problem'],
+ operation: ['create'],
},
},
},
{
displayName: 'Requester Name or ID',
name: 'requesterId',
- description: 'ID of the initiator of the problem. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the initiator of the problem. Choose from the list, or specify an ID using an expression.',
type: 'options',
required: true,
default: '',
@@ -84,12 +77,8 @@ export const problemFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'create',
- ],
+ resource: ['problem'],
+ operation: ['create'],
},
},
},
@@ -101,12 +90,8 @@ export const problemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'create',
- ],
+ resource: ['problem'],
+ operation: ['create'],
},
},
},
@@ -118,12 +103,8 @@ export const problemFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'create',
- ],
+ resource: ['problem'],
+ operation: ['create'],
},
},
options: [
@@ -132,7 +113,8 @@ export const problemFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -142,7 +124,8 @@ export const problemFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department initiating the problem. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department initiating the problem. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -159,7 +142,8 @@ export const problemFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -243,12 +227,8 @@ export const problemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['problem'],
+ operation: ['delete'],
},
},
},
@@ -265,12 +245,8 @@ export const problemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'get',
- ],
+ resource: ['problem'],
+ operation: ['get'],
},
},
},
@@ -286,12 +262,8 @@ export const problemFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['problem'],
+ operation: ['getAll'],
},
},
},
@@ -306,15 +278,9 @@ export const problemFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['problem'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -331,12 +297,8 @@ export const problemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'update',
- ],
+ resource: ['problem'],
+ operation: ['update'],
},
},
},
@@ -348,12 +310,8 @@ export const problemFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'problem',
- ],
- operation: [
- 'update',
- ],
+ resource: ['problem'],
+ operation: ['update'],
},
},
options: [
@@ -362,7 +320,8 @@ export const problemFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -372,7 +331,8 @@ export const problemFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department initiating the problem. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department initiating the problem. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -396,7 +356,8 @@ export const problemFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -450,7 +411,8 @@ export const problemFields: INodeProperties[] = [
name: 'requester_id',
type: 'options',
default: '',
- description: 'ID of the initiator of the problem. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the initiator of the problem. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getRequesters',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
index 5db77323c54b6..3b4e498285263 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const productOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const productOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'product',
- ],
+ resource: ['product'],
},
},
options: [
@@ -59,7 +55,8 @@ export const productFields: INodeProperties[] = [
displayName: 'Asset Type Name or ID',
name: 'assetTypeId',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
required: true,
default: '',
typeOptions: {
@@ -67,12 +64,8 @@ export const productFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'create',
- ],
+ resource: ['product'],
+ operation: ['create'],
},
},
},
@@ -84,12 +77,8 @@ export const productFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'create',
- ],
+ resource: ['product'],
+ operation: ['create'],
},
},
},
@@ -101,12 +90,8 @@ export const productFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'create',
- ],
+ resource: ['product'],
+ operation: ['create'],
},
},
options: [
@@ -178,12 +163,8 @@ export const productFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['product'],
+ operation: ['delete'],
},
},
},
@@ -200,12 +181,8 @@ export const productFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'get',
- ],
+ resource: ['product'],
+ operation: ['get'],
},
},
},
@@ -221,12 +198,8 @@ export const productFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['product'],
+ operation: ['getAll'],
},
},
},
@@ -241,15 +214,9 @@ export const productFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['product'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -266,12 +233,8 @@ export const productFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'update',
- ],
+ resource: ['product'],
+ operation: ['update'],
},
},
},
@@ -283,12 +246,8 @@ export const productFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'product',
- ],
- operation: [
- 'update',
- ],
+ resource: ['product'],
+ operation: ['update'],
},
},
options: [
@@ -296,7 +255,8 @@ export const productFields: INodeProperties[] = [
displayName: 'Asset Type Name or ID',
name: 'asset_type_id',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
default: '',
typeOptions: {
loadOptionsMethod: 'getAssetTypes',
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
index bd81416607a24..6b40609bd227a 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const releaseOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const releaseOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'release',
- ],
+ resource: ['release'],
},
},
options: [
@@ -63,12 +59,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
},
@@ -79,12 +71,8 @@ export const releaseFields: INodeProperties[] = [
default: 1,
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
options: [
@@ -113,12 +101,8 @@ export const releaseFields: INodeProperties[] = [
default: 1,
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
options: [
@@ -147,12 +131,8 @@ export const releaseFields: INodeProperties[] = [
default: 1,
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
@@ -187,12 +167,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
},
@@ -204,12 +180,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
},
@@ -221,12 +193,8 @@ export const releaseFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'create',
- ],
+ resource: ['release'],
+ operation: ['create'],
},
},
options: [
@@ -235,7 +203,8 @@ export const releaseFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department initiating the release. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department initiating the release. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -252,7 +221,8 @@ export const releaseFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -272,12 +242,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['release'],
+ operation: ['delete'],
},
},
},
@@ -294,12 +260,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'get',
- ],
+ resource: ['release'],
+ operation: ['get'],
},
},
},
@@ -315,12 +277,8 @@ export const releaseFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['release'],
+ operation: ['getAll'],
},
},
},
@@ -335,15 +293,9 @@ export const releaseFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['release'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -360,12 +312,8 @@ export const releaseFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'update',
- ],
+ resource: ['release'],
+ operation: ['update'],
},
},
},
@@ -377,12 +325,8 @@ export const releaseFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'release',
- ],
- operation: [
- 'update',
- ],
+ resource: ['release'],
+ operation: ['update'],
},
},
options: [
@@ -391,7 +335,8 @@ export const releaseFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department initiating the release. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department initiating the release. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -408,7 +353,8 @@ export const releaseFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
index 214ec0e812452..10802499bacfe 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
import { LANGUAGES } from '../constants';
export const requesterOperations: INodeProperties[] = [
@@ -11,9 +9,7 @@ export const requesterOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
+ resource: ['requester'],
},
},
options: [
@@ -64,12 +60,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'create',
- ],
+ resource: ['requester'],
+ operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'create',
- ],
+ resource: ['requester'],
+ operation: ['create'],
},
},
},
@@ -97,12 +85,8 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'create',
- ],
+ resource: ['requester'],
+ operation: ['create'],
},
},
options: [
@@ -123,7 +107,8 @@ export const requesterFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -150,7 +135,8 @@ export const requesterFields: INodeProperties[] = [
{
displayName: 'Location Name or ID',
name: 'location_id',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
type: 'options',
default: '',
typeOptions: {
@@ -207,12 +193,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['requester'],
+ operation: ['delete'],
},
},
},
@@ -229,12 +211,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'get',
- ],
+ resource: ['requester'],
+ operation: ['get'],
},
},
},
@@ -250,12 +228,8 @@ export const requesterFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['requester'],
+ operation: ['getAll'],
},
},
},
@@ -270,15 +244,9 @@ export const requesterFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['requester'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -290,19 +258,16 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['requester'],
+ operation: ['getAll'],
},
},
options: [
{
displayName: 'Department Name or ID',
name: 'department_id',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
type: 'options',
default: '',
typeOptions: {
@@ -338,7 +303,8 @@ export const requesterFields: INodeProperties[] = [
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
default: '',
typeOptions: {
loadOptionsMethod: 'getLocations',
@@ -377,12 +343,8 @@ export const requesterFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'update',
- ],
+ resource: ['requester'],
+ operation: ['update'],
},
},
},
@@ -394,12 +356,8 @@ export const requesterFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'requester',
- ],
- operation: [
- 'update',
- ],
+ resource: ['requester'],
+ operation: ['update'],
},
},
options: [
@@ -420,7 +378,8 @@ export const requesterFields: INodeProperties[] = [
name: 'department_ids',
type: 'multiOptions',
default: [],
- description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression. Choose from the list, or specify IDs using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -455,7 +414,8 @@ export const requesterFields: INodeProperties[] = [
name: 'location_id',
type: 'options',
default: '',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
index 06ef8f122683c..64ac2bc36868e 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const requesterGroupOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const requesterGroupOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
+ resource: ['requesterGroup'],
},
},
options: [
@@ -63,12 +59,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'create',
- ],
+ resource: ['requesterGroup'],
+ operation: ['create'],
},
},
},
@@ -80,12 +72,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'create',
- ],
+ resource: ['requesterGroup'],
+ operation: ['create'],
},
},
options: [
@@ -110,12 +98,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['requesterGroup'],
+ operation: ['delete'],
},
},
},
@@ -132,12 +116,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'get',
- ],
+ resource: ['requesterGroup'],
+ operation: ['get'],
},
},
},
@@ -153,12 +133,8 @@ export const requesterGroupFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['requesterGroup'],
+ operation: ['getAll'],
},
},
},
@@ -173,15 +149,9 @@ export const requesterGroupFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['requesterGroup'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -198,12 +168,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'update',
- ],
+ resource: ['requesterGroup'],
+ operation: ['update'],
},
},
},
@@ -215,12 +181,8 @@ export const requesterGroupFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'requesterGroup',
- ],
- operation: [
- 'update',
- ],
+ resource: ['requesterGroup'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
index 8b73c8b3e775d..176c4f8e22b74 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const softwareOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const softwareOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'software',
- ],
+ resource: ['software'],
},
},
options: [
@@ -77,12 +73,8 @@ export const softwareFields: INodeProperties[] = [
default: 'desktop',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'create',
- ],
+ resource: ['software'],
+ operation: ['create'],
},
},
},
@@ -94,12 +86,8 @@ export const softwareFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'create',
- ],
+ resource: ['software'],
+ operation: ['create'],
},
},
},
@@ -111,12 +99,8 @@ export const softwareFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'create',
- ],
+ resource: ['software'],
+ operation: ['create'],
},
},
options: [
@@ -171,12 +155,8 @@ export const softwareFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['software'],
+ operation: ['delete'],
},
},
},
@@ -193,12 +173,8 @@ export const softwareFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'get',
- ],
+ resource: ['software'],
+ operation: ['get'],
},
},
},
@@ -214,12 +190,8 @@ export const softwareFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['software'],
+ operation: ['getAll'],
},
},
},
@@ -234,15 +206,9 @@ export const softwareFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['software'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -259,12 +225,8 @@ export const softwareFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'update',
- ],
+ resource: ['software'],
+ operation: ['update'],
},
},
},
@@ -276,12 +238,8 @@ export const softwareFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'software',
- ],
- operation: [
- 'update',
- ],
+ resource: ['software'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
index b4eb5e9caf92a..621b3cc6c3b27 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const ticketOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const ticketOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
+ resource: ['ticket'],
},
},
options: [
@@ -65,12 +61,8 @@ export const ticketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
},
@@ -81,12 +73,8 @@ export const ticketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
},
@@ -98,12 +86,8 @@ export const ticketFields: INodeProperties[] = [
description: 'HTML supported',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
},
@@ -114,12 +98,8 @@ export const ticketFields: INodeProperties[] = [
default: 1,
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
options: [
@@ -148,12 +128,8 @@ export const ticketFields: INodeProperties[] = [
default: 2,
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
options: [
@@ -183,12 +159,8 @@ export const ticketFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'create',
- ],
+ resource: ['ticket'],
+ operation: ['create'],
},
},
options: [
@@ -204,7 +176,8 @@ export const ticketFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department to which this ticket belongs. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department to which this ticket belongs. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -214,7 +187,8 @@ export const ticketFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -250,7 +224,8 @@ export const ticketFields: INodeProperties[] = [
displayName: 'Requester Name or ID',
name: 'requester_id',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
default: '',
typeOptions: {
loadOptionsMethod: 'getRequesters',
@@ -271,12 +246,8 @@ export const ticketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['ticket'],
+ operation: ['delete'],
},
},
},
@@ -293,12 +264,8 @@ export const ticketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'get',
- ],
+ resource: ['ticket'],
+ operation: ['get'],
},
},
},
@@ -314,12 +281,8 @@ export const ticketFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['ticket'],
+ operation: ['getAll'],
},
},
},
@@ -334,15 +297,9 @@ export const ticketFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['ticket'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -354,12 +311,8 @@ export const ticketFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['ticket'],
+ operation: ['getAll'],
},
},
options: [
@@ -368,7 +321,8 @@ export const ticketFields: INodeProperties[] = [
name: 'agent_id',
type: 'options',
default: '',
- description: 'ID of the agent to whom the tickets have been assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the agent to whom the tickets have been assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -378,7 +332,8 @@ export const ticketFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the group to which the tickets have been assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the group to which the tickets have been assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -480,12 +435,8 @@ export const ticketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'update',
- ],
+ resource: ['ticket'],
+ operation: ['update'],
},
},
},
@@ -497,12 +448,8 @@ export const ticketFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'ticket',
- ],
- operation: [
- 'update',
- ],
+ resource: ['ticket'],
+ operation: ['update'],
},
},
options: [
@@ -511,7 +458,8 @@ export const ticketFields: INodeProperties[] = [
name: 'department_id',
type: 'options',
default: '',
- description: 'ID of the department to which this ticket has been assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the department to which this ticket has been assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -536,7 +484,8 @@ export const ticketFields: INodeProperties[] = [
name: 'group_id',
type: 'options',
default: '',
- description: 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an expression.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
index 849fb32e60460..7f6b9d3d6bf21 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const accountOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const accountOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'account',
- ],
+ resource: ['account'],
},
},
options: [
@@ -64,12 +60,8 @@ export const accountFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'create',
- ],
+ resource: ['account'],
+ operation: ['create'],
},
},
},
@@ -81,12 +73,8 @@ export const accountFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'create',
- ],
+ resource: ['account'],
+ operation: ['create'],
},
},
options: [
@@ -112,7 +100,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getBusinessTypes',
},
- description: 'ID of the business that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the business that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'City',
@@ -143,7 +132,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getIndustryTypes',
},
- description: 'ID of the industry that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the industry that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'LinkedIn',
@@ -167,7 +157,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the account is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the account is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Parent Sales Account ID',
@@ -198,7 +189,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Twitter',
@@ -236,12 +228,8 @@ export const accountFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['account'],
+ operation: ['delete'],
},
},
},
@@ -258,12 +246,8 @@ export const accountFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'get',
- ],
+ resource: ['account'],
+ operation: ['get'],
},
},
},
@@ -275,19 +259,16 @@ export const accountFields: INodeProperties[] = [
displayName: 'View Name or ID',
name: 'view',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
required: true,
typeOptions: {
loadOptionsMethod: 'getAccountViews',
},
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['account'],
+ operation: ['getAll'],
},
},
default: '',
@@ -300,12 +281,8 @@ export const accountFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['account'],
+ operation: ['getAll'],
},
},
},
@@ -320,15 +297,9 @@ export const accountFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['account'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -345,12 +316,8 @@ export const accountFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'update',
- ],
+ resource: ['account'],
+ operation: ['update'],
},
},
},
@@ -362,12 +329,8 @@ export const accountFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'account',
- ],
- operation: [
- 'update',
- ],
+ resource: ['account'],
+ operation: ['update'],
},
},
options: [
@@ -393,7 +356,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getBusinessTypes',
},
- description: 'ID of the business that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the business that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'City',
@@ -424,7 +388,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getIndustryTypes',
},
- description: 'ID of the industry that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the industry that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'LinkedIn',
@@ -455,7 +420,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the account is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the account is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Parent Sales Account ID',
@@ -486,7 +452,8 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the account belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the account belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Twitter',
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
index 98a86a894e498..4d2123fc1c0a7 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
@@ -1,10 +1,6 @@
-import {
- tz,
-} from 'moment-timezone';
+import { tz } from 'moment-timezone';
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const appointmentOperations: INodeProperties[] = [
{
@@ -14,9 +10,7 @@ export const appointmentOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
+ resource: ['appointment'],
},
},
options: [
@@ -68,48 +62,38 @@ export const appointmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'create',
- ],
+ resource: ['appointment'],
+ operation: ['create'],
},
},
},
{
displayName: 'Start Date',
name: 'fromDate',
- description: 'Timestamp that denotes the start of appointment. Start date if this is an all-day appointment.',
+ description:
+ 'Timestamp that denotes the start of appointment. Start date if this is an all-day appointment.',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'create',
- ],
+ resource: ['appointment'],
+ operation: ['create'],
},
},
},
{
displayName: 'End Date',
name: 'endDate',
- description: 'Timestamp that denotes the end of appointment. End date if this is an all-day appointment.',
+ description:
+ 'Timestamp that denotes the end of appointment. End date if this is an all-day appointment.',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'create',
- ],
+ resource: ['appointment'],
+ operation: ['create'],
},
},
},
@@ -122,12 +106,8 @@ export const appointmentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'create',
- ],
+ resource: ['appointment'],
+ operation: ['create'],
},
},
placeholder: 'Add Attendee',
@@ -157,12 +137,11 @@ export const appointmentFields: INodeProperties[] = [
displayName: 'User Name or ID',
name: 'userId',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
displayOptions: {
show: {
- type: [
- 'user',
- ],
+ type: ['user'],
},
},
typeOptions: {
@@ -175,9 +154,7 @@ export const appointmentFields: INodeProperties[] = [
name: 'contactId',
displayOptions: {
show: {
- type: [
- 'contact',
- ],
+ type: ['contact'],
},
},
type: 'string',
@@ -195,12 +172,8 @@ export const appointmentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'create',
- ],
+ resource: ['appointment'],
+ operation: ['create'],
},
},
options: [
@@ -212,7 +185,8 @@ export const appointmentFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the appointment. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the appointment. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Is All-Day',
@@ -250,7 +224,8 @@ export const appointmentFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of outcome of Appointment sales activity type. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of outcome of Appointment sales activity type. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Target ID',
@@ -285,7 +260,7 @@ export const appointmentFields: INodeProperties[] = [
type: 'options',
default: '',
description: 'Timezone that the appointment is scheduled in',
- options: tz.names().map(tz => ({ name: tz, value: tz })),
+ options: tz.names().map((tz) => ({ name: tz, value: tz })),
},
],
},
@@ -302,12 +277,8 @@ export const appointmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['appointment'],
+ operation: ['delete'],
},
},
},
@@ -324,12 +295,8 @@ export const appointmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'get',
- ],
+ resource: ['appointment'],
+ operation: ['get'],
},
},
},
@@ -345,12 +312,8 @@ export const appointmentFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['appointment'],
+ operation: ['getAll'],
},
},
},
@@ -365,15 +328,9 @@ export const appointmentFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['appointment'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -385,12 +342,8 @@ export const appointmentFields: INodeProperties[] = [
placeholder: 'Add Filter',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['appointment'],
+ operation: ['getAll'],
},
},
options: [
@@ -445,12 +398,8 @@ export const appointmentFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'update',
- ],
+ resource: ['appointment'],
+ operation: ['update'],
},
},
},
@@ -462,12 +411,8 @@ export const appointmentFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'appointment',
- ],
- operation: [
- 'update',
- ],
+ resource: ['appointment'],
+ operation: ['update'],
},
},
options: [
@@ -505,12 +450,11 @@ export const appointmentFields: INodeProperties[] = [
displayName: 'User Name or ID',
name: 'userId',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
displayOptions: {
show: {
- type: [
- 'user',
- ],
+ type: ['user'],
},
},
typeOptions: {
@@ -523,9 +467,7 @@ export const appointmentFields: INodeProperties[] = [
name: 'contactId',
displayOptions: {
show: {
- type: [
- 'contact',
- ],
+ type: ['contact'],
},
},
type: 'string',
@@ -543,12 +485,14 @@ export const appointmentFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the appointment. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the appointment. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'End Date',
name: 'endDate',
- description: 'Timestamp that denotes the end of appointment. End date if this is an all-day appointment.',
+ description:
+ 'Timestamp that denotes the end of appointment. End date if this is an all-day appointment.',
type: 'dateTime',
default: '',
},
@@ -588,12 +532,14 @@ export const appointmentFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of outcome of Appointment sales activity type. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of outcome of Appointment sales activity type. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Start Date',
name: 'fromDate',
- description: 'Timestamp that denotes the start of appointment. Start date if this is an all-day appointment.',
+ description:
+ 'Timestamp that denotes the start of appointment. Start date if this is an all-day appointment.',
type: 'dateTime',
default: '',
},
@@ -630,7 +576,7 @@ export const appointmentFields: INodeProperties[] = [
type: 'options',
default: '',
description: 'Timezone that the appointment is scheduled in',
- options: tz.names().map(tz => ({ name: tz, value: tz })),
+ options: tz.names().map((tz) => ({ name: tz, value: tz })),
},
{
displayName: 'Title',
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
index d0805bde75c48..1e2e1fd44afa0 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const contactOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const contactOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
+ resource: ['contact'],
},
},
options: [
@@ -64,12 +60,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'create',
- ],
+ resource: ['contact'],
+ operation: ['create'],
},
},
},
@@ -82,12 +74,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'create',
- ],
+ resource: ['contact'],
+ operation: ['create'],
},
},
},
@@ -100,12 +88,8 @@ export const contactFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'create',
- ],
+ resource: ['contact'],
+ operation: ['create'],
},
},
},
@@ -117,12 +101,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'create',
- ],
+ resource: ['contact'],
+ operation: ['create'],
},
},
options: [
@@ -141,7 +121,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
- description: 'ID of the campaign that led your contact to your webapp. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the campaign that led your contact to your webapp. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'City',
@@ -158,7 +139,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getContactStatuses',
},
- description: 'ID of the contact status that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the contact status that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Country',
@@ -210,7 +192,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getLifecycleStages',
},
- description: 'ID of the lifecycle stage that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the lifecycle stage that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'LinkedIn',
@@ -241,7 +224,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the contact is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the contact is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Sales Account Names or IDs',
@@ -251,7 +235,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
- description: 'Accounts which contact belongs to. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Accounts which contact belongs to. Choose from the list, or specify IDs using an expression.',
},
{
displayName: 'State',
@@ -282,7 +267,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Time Zone',
@@ -327,12 +313,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['contact'],
+ operation: ['delete'],
},
},
},
@@ -349,12 +331,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'get',
- ],
+ resource: ['contact'],
+ operation: ['get'],
},
},
},
@@ -366,15 +344,12 @@ export const contactFields: INodeProperties[] = [
displayName: 'View Name or ID',
name: 'view',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['contact'],
+ operation: ['getAll'],
},
},
typeOptions: {
@@ -390,12 +365,8 @@ export const contactFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['contact'],
+ operation: ['getAll'],
},
},
},
@@ -410,15 +381,9 @@ export const contactFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['contact'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -435,12 +400,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'update',
- ],
+ resource: ['contact'],
+ operation: ['update'],
},
},
},
@@ -452,12 +413,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'contact',
- ],
- operation: [
- 'update',
- ],
+ resource: ['contact'],
+ operation: ['update'],
},
},
options: [
@@ -476,7 +433,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
- description: 'ID of the campaign that led your contact to your webapp. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the campaign that led your contact to your webapp. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'City',
@@ -493,7 +451,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getContactStatuses',
},
- description: 'ID of the contact status that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the contact status that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Country',
@@ -552,7 +511,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
- description: 'ID of the source where contact came from. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the source where contact came from. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Lifecycle Stage Name or ID',
@@ -562,7 +522,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getLifecycleStages',
},
- description: 'ID of the lifecycle stage that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the lifecycle stage that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'LinkedIn',
@@ -593,7 +554,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the contact is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the contact is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Sales Account Names or IDs',
@@ -603,7 +565,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
- description: 'Accounts which contact belongs to. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'Accounts which contact belongs to. Choose from the list, or specify IDs using an expression.',
},
{
displayName: 'State',
@@ -620,7 +583,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getSubscriptionStatuses',
},
- description: 'Status of subscription that the contact is in. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Status of subscription that the contact is in. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Subscription Types Name or ID',
@@ -630,7 +594,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getSubscriptionTypes',
},
- description: 'Type of subscription that the contact is in. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Type of subscription that the contact is in. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Territory Name or ID',
@@ -640,7 +605,8 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the contact belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the contact belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Time Zone',
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
index e0f76a5efc2de..fab74fa27fb0c 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const dealOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const dealOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
+ resource: ['deal'],
},
},
options: [
@@ -64,12 +60,8 @@ export const dealFields: INodeProperties[] = [
default: 0,
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'create',
- ],
+ resource: ['deal'],
+ operation: ['create'],
},
},
},
@@ -82,12 +74,8 @@ export const dealFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'create',
- ],
+ resource: ['deal'],
+ operation: ['create'],
},
},
},
@@ -99,12 +87,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'create',
- ],
+ resource: ['deal'],
+ operation: ['create'],
},
},
options: [
@@ -123,7 +107,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
- description: 'ID of the campaign that landed this deal. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the campaign that landed this deal. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Currency Name or ID',
@@ -133,7 +118,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCurrencies',
},
- description: 'ID of the currency that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the currency that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Payment Status Name or ID',
@@ -143,7 +129,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealPaymentStatuses',
},
- description: 'ID of the mode of payment for the deal. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the mode of payment for the deal. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Pipeline Name or ID',
@@ -153,7 +140,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealPipelines',
},
- description: 'ID of the deal pipeline that it belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal pipeline that it belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Product Name or ID',
@@ -163,7 +151,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealProducts',
},
- description: 'ID of the product that the deal belongs to (in a multi-product company). Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the product that the deal belongs to (in a multi-product company). Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Reason Name or ID',
@@ -173,7 +162,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealReasons',
},
- description: 'ID of the reason for losing the deal. Can only be set if the deal is in \'Lost\' stage. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the reason for losing the deal. Can only be set if the deal is in \'Lost\' stage. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Stage Name or ID',
@@ -183,7 +173,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealStages',
},
- description: 'ID of the deal stage that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal stage that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Type Name or ID',
@@ -193,7 +184,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
- description: 'ID of the deal type that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal type that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Lead Source ID',
@@ -210,7 +202,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the deal is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the deal is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Probability',
@@ -231,7 +224,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
- description: 'ID of the account that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the account that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Territory Name or ID',
@@ -241,7 +235,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
],
},
@@ -258,12 +253,8 @@ export const dealFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['deal'],
+ operation: ['delete'],
},
},
},
@@ -280,12 +271,8 @@ export const dealFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'get',
- ],
+ resource: ['deal'],
+ operation: ['get'],
},
},
},
@@ -297,15 +284,12 @@ export const dealFields: INodeProperties[] = [
displayName: 'View Name or ID',
name: 'view',
type: 'options',
- description: 'Choose from the list, or specify an ID using an expression',
+ description:
+ 'Choose from the list, or specify an ID using an expression',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['deal'],
+ operation: ['getAll'],
},
},
typeOptions: {
@@ -321,12 +305,8 @@ export const dealFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['deal'],
+ operation: ['getAll'],
},
},
},
@@ -341,15 +321,9 @@ export const dealFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['deal'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -366,12 +340,8 @@ export const dealFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'update',
- ],
+ resource: ['deal'],
+ operation: ['update'],
},
},
},
@@ -383,12 +353,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'deal',
- ],
- operation: [
- 'update',
- ],
+ resource: ['deal'],
+ operation: ['update'],
},
},
options: [
@@ -420,7 +386,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
- description: 'ID of the campaign that landed this deal. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the campaign that landed this deal. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Currency Name or ID',
@@ -430,7 +397,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCurrencies',
},
- description: 'ID of the currency that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the currency that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Payment Status Name or ID',
@@ -440,7 +408,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealPaymentStatuses',
},
- description: 'ID of the mode of payment for the deal. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the mode of payment for the deal. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Pipeline Name or ID',
@@ -450,7 +419,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealPipelines',
},
- description: 'ID of the deal pipeline that it belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal pipeline that it belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Product Name or ID',
@@ -460,7 +430,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealProducts',
},
- description: 'ID of the product that the deal belongs to (in a multi-product company). Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the product that the deal belongs to (in a multi-product company). Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Reason Name or ID',
@@ -470,7 +441,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealReasons',
},
- description: 'ID of the reason for losing the deal. Can only be set if the deal is in \'Lost\' stage. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the reason for losing the deal. Can only be set if the deal is in \'Lost\' stage. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Stage Name or ID',
@@ -480,7 +452,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealStages',
},
- description: 'ID of the deal stage that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal stage that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Deal Type Name or ID',
@@ -490,7 +463,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
- description: 'ID of the deal type that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the deal type that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Lead Source ID',
@@ -514,7 +488,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the deal is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the deal is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Probability',
@@ -535,7 +510,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
- description: 'ID of the account that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the account that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Territory Name or ID',
@@ -545,7 +521,8 @@ export const dealFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTerritories',
},
- description: 'ID of the territory that the deal belongs to. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the territory that the deal belongs to. Choose from the list, or specify an ID using an expression.',
},
],
},
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
index ba964868f2ee6..a20d0f31d4ac3 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const noteOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const noteOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'note',
- ],
+ resource: ['note'],
},
},
options: [
@@ -55,12 +51,8 @@ export const noteFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'create',
- ],
+ resource: ['note'],
+ operation: ['create'],
},
},
},
@@ -87,30 +79,23 @@ export const noteFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'create',
- ],
+ resource: ['note'],
+ operation: ['create'],
},
},
},
{
displayName: 'Target ID',
name: 'targetable_id',
- description: 'ID of the entity for which note is created. The type of entity is selected in "Target Type".',
+ description:
+ 'ID of the entity for which note is created. The type of entity is selected in "Target Type".',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'create',
- ],
+ resource: ['note'],
+ operation: ['create'],
},
},
},
@@ -127,12 +112,8 @@ export const noteFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['note'],
+ operation: ['delete'],
},
},
},
@@ -149,12 +130,8 @@ export const noteFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'update',
- ],
+ resource: ['note'],
+ operation: ['update'],
},
},
},
@@ -166,12 +143,8 @@ export const noteFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'note',
- ],
- operation: [
- 'update',
- ],
+ resource: ['note'],
+ operation: ['update'],
},
},
options: [
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
index f7c30416ee8b6..45cdbbccbce4c 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const salesActivityOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const salesActivityOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
+ resource: ['salesActivity'],
},
},
options: [
@@ -60,15 +56,12 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getSalesActivityTypes',
},
- description: 'ID of a sales activity type for which the sales activity is created. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of a sales activity type for which the sales activity is created. Choose from the list, or specify an ID using an expression.',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
@@ -81,19 +74,16 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
{
displayName: 'Owner Name or ID',
name: 'ownerId',
- description: 'ID of the user who owns the sales activity. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who owns the sales activity. Choose from the list, or specify an ID using an expression.',
type: 'options',
default: '',
typeOptions: {
@@ -102,12 +92,8 @@ export const salesActivityFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
@@ -120,12 +106,8 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
@@ -138,12 +120,8 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
@@ -170,30 +148,23 @@ export const salesActivityFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
{
displayName: 'Target ID',
name: 'targetable_id',
- description: 'ID of the entity for which the sales activity is created. The type of entity is selected in "Target Type".',
+ description:
+ 'ID of the entity for which the sales activity is created. The type of entity is selected in "Target Type".',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
},
@@ -205,12 +176,8 @@ export const salesActivityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'create',
- ],
+ resource: ['salesActivity'],
+ operation: ['create'],
},
},
options: [
@@ -222,7 +189,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Latitude',
@@ -260,7 +228,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of a sales activity\'s outcome. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of a sales activity\'s outcome. Choose from the list, or specify an ID using an expression.',
},
],
},
@@ -277,12 +246,8 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['salesActivity'],
+ operation: ['delete'],
},
},
},
@@ -299,12 +264,8 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'get',
- ],
+ resource: ['salesActivity'],
+ operation: ['get'],
},
},
},
@@ -320,12 +281,8 @@ export const salesActivityFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['salesActivity'],
+ operation: ['getAll'],
},
},
},
@@ -340,15 +297,9 @@ export const salesActivityFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['salesActivity'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -365,12 +316,8 @@ export const salesActivityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'update',
- ],
+ resource: ['salesActivity'],
+ operation: ['update'],
},
},
},
@@ -382,12 +329,8 @@ export const salesActivityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'salesActivity',
- ],
- operation: [
- 'update',
- ],
+ resource: ['salesActivity'],
+ operation: ['update'],
},
},
options: [
@@ -399,7 +342,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Start Date',
@@ -444,7 +388,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who owns the sales activity. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who owns the sales activity. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Sales Activity Outcome Name or ID',
@@ -454,7 +399,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of a sales activity\'s outcome. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of a sales activity\'s outcome. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Sales Activity Type Name or ID',
@@ -464,7 +410,8 @@ export const salesActivityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getSalesActivityTypes',
},
- description: 'ID of a sales activity type for which the sales activity is updated. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of a sales activity type for which the sales activity is updated. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Start Date',
@@ -478,7 +425,8 @@ export const salesActivityFields: INodeProperties[] = [
name: 'targetable_id',
type: 'string',
default: '',
- description: 'ID of the entity for which the sales activity is updated. The type of entity is selected in "Target Type".',
+ description:
+ 'ID of the entity for which the sales activity is updated. The type of entity is selected in "Target Type".',
},
{
displayName: 'Target Type',
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts
index ed2a6bb20d14b..fd3ac017f9d95 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SearchDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const searchOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const searchOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'search',
- ],
+ resource: ['search'],
},
},
options: [
@@ -45,12 +41,8 @@ export const searchFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'query',
- ],
+ resource: ['search'],
+ operation: ['query'],
},
},
description: 'Enter a term that will be used for searching entities',
@@ -81,12 +73,8 @@ export const searchFields: INodeProperties[] = [
default: [],
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'query',
- ],
+ resource: ['search'],
+ operation: ['query'],
},
},
description: 'Enter a term that will be used for searching entities',
@@ -98,12 +86,8 @@ export const searchFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'query',
- ],
+ resource: ['search'],
+ operation: ['query'],
},
},
description: 'Whether to return all results or only up to a given limit',
@@ -118,15 +102,9 @@ export const searchFields: INodeProperties[] = [
default: 25,
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'query',
- ],
- returnAll: [
- false,
- ],
+ resource: ['search'],
+ operation: ['query'],
+ returnAll: [false],
},
},
description: 'Max number of results to return',
@@ -150,19 +128,16 @@ export const searchFields: INodeProperties[] = [
{
name: 'Custom Field',
value: 'customField',
- description: 'Only allowed custom fields of type "Text field", "Number", "Dropdown" or "Radio button"',
+ description:
+ 'Only allowed custom fields of type "Text field", "Number", "Dropdown" or "Radio button"',
},
],
required: true,
default: '',
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'lookup',
- ],
+ resource: ['search'],
+ operation: ['lookup'],
},
},
description: 'Field against which the entities have to be searched',
@@ -175,15 +150,9 @@ export const searchFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'lookup',
- ],
- searchField: [
- 'customField',
- ],
+ resource: ['search'],
+ operation: ['lookup'],
+ searchField: ['customField'],
},
},
},
@@ -195,15 +164,9 @@ export const searchFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'lookup',
- ],
- searchField: [
- 'customField',
- ],
+ resource: ['search'],
+ operation: ['lookup'],
+ searchField: ['customField'],
},
},
},
@@ -215,16 +178,9 @@ export const searchFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'lookup',
- ],
- searchField: [
- 'email',
- 'name',
- ],
+ resource: ['search'],
+ operation: ['lookup'],
+ searchField: ['email', 'name'],
},
},
},
@@ -236,12 +192,8 @@ export const searchFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'search',
- ],
- operation: [
- 'lookup',
- ],
+ resource: ['search'],
+ operation: ['lookup'],
},
},
options: [
@@ -264,8 +216,8 @@ export const searchFields: INodeProperties[] = [
value: 'sales_account',
},
],
- // eslint-disable-next-line n8n-nodes-base/node-param-description-unneeded-backticks
- description: `Use 'entities' to query against related entities. You can include multiple entities at once, provided the field is available in both entities or else you'd receive an error response.`,
+ // eslint-disable-next-line n8n-nodes-base/node-param-description-unneeded-backticks
+ description: `Use 'entities' to query against related entities. You can include multiple entities at once, provided the field is available in both entities or else you'd receive an error response.`,
},
],
},
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
index 5a43c4c2252f5..b23d49eb43570 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const taskOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const taskOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
+ resource: ['task'],
},
},
options: [
@@ -64,12 +60,8 @@ export const taskFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
},
@@ -82,19 +74,16 @@ export const taskFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
},
{
displayName: 'Owner Name or ID',
name: 'ownerId',
- description: 'ID of the user to whom the task is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the task is assigned. Choose from the list, or specify an ID using an expression.',
type: 'options',
default: '',
typeOptions: {
@@ -103,12 +92,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
},
@@ -135,30 +120,23 @@ export const taskFields: INodeProperties[] = [
],
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
},
{
displayName: 'Target ID',
name: 'targetable_id',
- description: 'ID of the entity for which the task is created. The type of entity is selected in "Target Type".',
+ description:
+ 'ID of the entity for which the task is created. The type of entity is selected in "Target Type".',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
},
@@ -170,12 +148,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'create',
- ],
+ resource: ['task'],
+ operation: ['create'],
},
},
options: [
@@ -187,7 +161,8 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the task. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the task. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Outcome Name or ID',
@@ -197,7 +172,8 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of the outcome of the task. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the outcome of the task. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Task Type ID',
@@ -221,12 +197,8 @@ export const taskFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['task'],
+ operation: ['delete'],
},
},
},
@@ -243,12 +215,8 @@ export const taskFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'get',
- ],
+ resource: ['task'],
+ operation: ['get'],
},
},
},
@@ -264,12 +232,8 @@ export const taskFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
},
@@ -284,15 +248,9 @@ export const taskFields: INodeProperties[] = [
},
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['task'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
},
@@ -304,12 +262,8 @@ export const taskFields: INodeProperties[] = [
placeholder: 'Add Filter',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
options: [
@@ -376,12 +330,8 @@ export const taskFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'update',
- ],
+ resource: ['task'],
+ operation: ['update'],
},
},
},
@@ -393,12 +343,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'update',
- ],
+ resource: ['task'],
+ operation: ['update'],
},
},
options: [
@@ -410,7 +356,8 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user who created the sales activity. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Due Date',
@@ -427,7 +374,8 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getOutcomes',
},
- description: 'ID of the outcome of the task. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the outcome of the task. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Owner Name or ID',
@@ -437,14 +385,16 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
- description: 'ID of the user to whom the task is assigned. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'ID of the user to whom the task is assigned. Choose from the list, or specify an ID using an expression.',
},
{
displayName: 'Target ID',
name: 'targetable_id',
type: 'string',
default: '',
- description: 'ID of the entity for which the task is updated. The type of entity is selected in "Target Type".',
+ description:
+ 'ID of the entity for which the task is updated. The type of entity is selected in "Target Type".',
},
{
displayName: 'Target Type',