name, id
. By default just the trigger field will be included.',
+ description:
+ 'Fields to be included in the response. Multiple ones can be set separated by comma. Example: name, id
. By default just the trigger field will be included.',
},
{
displayName: 'Formula',
name: 'formula',
type: 'string',
default: '',
- description: 'Formulas may involve functions, numeric operations, logical operations, and text operations that operate on fields. More info here.',
+ description:
+ 'Formulas may involve functions, numeric operations, logical operations, and text operations that operate on fields. More info here.',
},
{
displayName: 'View ID',
name: 'viewId',
type: 'string',
default: '',
- description: 'The name or ID of a view in the table. If set, only the records in that view will be returned.',
+ description:
+ 'The name or ID of a view in the table. If set, only the records in that view will be returned.',
},
],
},
@@ -138,7 +136,7 @@ export class AirtableTrigger implements INodeType {
const now = moment().utc().format();
- const startDate = webhookData.lastTimeChecked as string || now;
+ const startDate = (webhookData.lastTimeChecked as string) || now;
const endDate = now;
@@ -171,7 +169,9 @@ export class AirtableTrigger implements INodeType {
}
if (downloadAttachments === true) {
- const downloadFieldNames = (this.getNodeParameter('downloadFieldNames', 0) as string).split(',');
+ const downloadFieldNames = (this.getNodeParameter('downloadFieldNames', 0) as string).split(
+ ',',
+ );
const data = await downloadRecordAttachments.call(this, records, downloadFieldNames);
return [data];
}
diff --git a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts
index 05057a6e3f..542483ab47 100644
--- a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts
@@ -1,11 +1,6 @@
-import {
- IExecuteFunctions,
- IPollFunctions,
-} from 'n8n-core';
+import { IExecuteFunctions, IPollFunctions } from 'n8n-core';
-import {
- OptionsWithUri,
-} from 'request';
+import { OptionsWithUri } from 'request';
import {
IBinaryKeyData,
@@ -15,7 +10,6 @@ import {
NodeApiError,
} from 'n8n-workflow';
-
interface IAttachment {
url: string;
filename: string;
@@ -24,7 +18,7 @@ interface IAttachment {
export interface IRecord {
fields: {
- [key: string]: string | IAttachment[],
+ [key: string]: string | IAttachment[];
};
}
@@ -37,7 +31,16 @@ export interface IRecord {
* @param {object} body
* @returns {PromisepartitionKeyName = :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 99eada32c7..c03eb89ab5 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 a3651b4832..35399172b1 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/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/GenericFunctions.ts
index f1d1d13508..358b2d3a88 100644
--- a/packages/nodes-base/nodes/Aws/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Aws/GenericFunctions.ts
@@ -10,11 +10,12 @@ import {
IWebhookFunctions,
} from 'n8n-core';
-import {
- ICredentialDataDecryptedObject, NodeApiError, NodeOperationError,
-} from 'n8n-workflow';
+import { ICredentialDataDecryptedObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
-function getEndpointForService(service: string, credentials: ICredentialDataDecryptedObject): string {
+function getEndpointForService(
+ service: string,
+ credentials: ICredentialDataDecryptedObject,
+): string {
let endpoint;
if (service === 'lambda' && credentials.lambdaEndpoint) {
endpoint = credentials.lambdaEndpoint;
@@ -28,7 +29,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): 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 7de8078242..2d756b90bb 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): PromiseAND
',
+ description:
+ 'This works only if two or more filters are provided. Defaults to AND
',
},
{
displayName: 'Search Term',
@@ -439,11 +410,10 @@ export const operationFields: INodeProperties[] = [
name: 'field',
type: 'options',
default: '',
- description: 'Field name to sort by. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Field name to sort by. Choose from the list, or specify an ID using an expression.',
typeOptions: {
- loadOptionsDependsOn: [
- 'tableId',
- ],
+ loadOptionsDependsOn: ['tableId'],
loadOptionsMethod: 'getTableFields',
},
},
diff --git a/packages/nodes-base/nodes/Baserow/types.d.ts b/packages/nodes-base/nodes/Baserow/types.d.ts
index 7999d82b0d..bb340d3231 100644
--- a/packages/nodes-base/nodes/Baserow/types.d.ts
+++ b/packages/nodes-base/nodes/Baserow/types.d.ts
@@ -2,14 +2,14 @@ export type BaserowCredentials = {
username: string;
password: string;
host: string;
-}
+};
export type GetAllAdditionalOptions = {
order?: {
fields: Array<{
field: string;
direction: string;
- }>
+ }>;
};
filters?: {
fields: Array<{
@@ -18,20 +18,20 @@ export type GetAllAdditionalOptions = {
value: string;
}>;
};
- filterType: string,
- search: string,
+ filterType: string;
+ search: string;
};
export type LoadedResource = {
id: number;
name: string;
-}
+};
export type Accumulator = {
[key: string]: string;
-}
+};
-export type Row = Record_random_sorting
to get the entries in a random order.',
+ description:
+ 'Specify the field to use for sorting. Either use a fielddefined for the current typeor use _random_sorting
to get the entries in a random order.',
},
{
displayName: 'Descending',
@@ -510,7 +459,8 @@ export const objectFields: INodeProperties[] = [
name: 'geo_reference',
type: 'string',
default: '',
- description: 'When the field\'s type is geographic address, you need to add another parameter geo_reference and provide an address as a string',
+ description:
+ "When the field's type is geographic address, you need to add another parameter geo_reference and provide an address as a string",
},
],
},
diff --git a/packages/nodes-base/nodes/Cal/CalTrigger.node.ts b/packages/nodes-base/nodes/Cal/CalTrigger.node.ts
index 6ac5bad772..16c0a58847 100644
--- a/packages/nodes-base/nodes/Cal/CalTrigger.node.ts
+++ b/packages/nodes-base/nodes/Cal/CalTrigger.node.ts
@@ -1,7 +1,4 @@
-import {
- IHookFunctions,
- IWebhookFunctions,
-} from 'n8n-core';
+import { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import {
ILoadOptionsFunctions,
@@ -11,103 +8,101 @@ import {
IWebhookResponseData,
} from 'n8n-workflow';
-import {
- calApiRequest,
- sortOptionParameters,
-} from './GenericFunctions';
+import { calApiRequest, sortOptionParameters } from './GenericFunctions';
export class CalTrigger implements INodeType {
description: INodeTypeDescription = {
- displayName: 'Cal Trigger',
- name: 'calTrigger',
- icon: 'file:cal.svg',
- group: ['trigger'],
- version: 1,
- subtitle: '=Events: {{$parameter["events"].join(", ")}}',
- description: 'Handle Cal events via webhooks',
- defaults: {
- name: 'Cal Trigger',
- color: '#888',
+ displayName: 'Cal Trigger',
+ name: 'calTrigger',
+ icon: 'file:cal.svg',
+ group: ['trigger'],
+ version: 1,
+ subtitle: '=Events: {{$parameter["events"].join(", ")}}',
+ description: 'Handle Cal events via webhooks',
+ defaults: {
+ name: 'Cal Trigger',
+ color: '#888',
+ },
+ inputs: [],
+ outputs: ['main'],
+ credentials: [
+ {
+ name: 'calApi',
+ required: true,
},
- inputs: [],
- outputs: ['main'],
- credentials: [
- {
- name: 'calApi',
- required: true,
- },
- ],
- webhooks: [
+ ],
+ webhooks: [
+ {
+ name: 'default',
+ httpMethod: 'POST',
+ responseMode: 'onReceived',
+ path: 'webhook',
+ },
+ ],
+ properties: [
+ {
+ displayName: 'Events',
+ name: 'events',
+ type: 'multiOptions',
+ options: [
{
- name: 'default',
- httpMethod: 'POST',
- responseMode: 'onReceived',
- path: 'webhook',
+ name: 'Booking Cancelled',
+ value: 'BOOKING_CANCELLED',
+ description: 'Receive notifications when a Cal event is canceled',
},
- ],
- properties: [
- {
- displayName: 'Events',
- name: 'events',
- type: 'multiOptions',
- options: [
- {
- name: 'Booking Cancelled',
- value: 'BOOKING_CANCELLED',
- description: 'Receive notifications when a Cal event is canceled',
+ {
+ name: 'Booking Created',
+ value: 'BOOKING_CREATED',
+ description: 'Receive notifications when a new Cal event is created',
+ },
+ {
+ name: 'Booking Rescheduled',
+ value: 'BOOKING_RESCHEDULED',
+ description: 'Receive notifications when a Cal event is rescheduled',
+ },
+ ],
+ default: [],
+ required: true,
+ },
+ {
+ displayName: 'Options',
+ name: 'options',
+ type: 'collection',
+ placeholder: 'Add Field',
+ default: {},
+ options: [
+ {
+ displayName: 'App ID',
+ name: 'appId',
+ type: 'string',
+ description: 'The ID of the App to monitor',
+ default: '',
+ },
+ {
+ displayName: 'EventType Name or ID',
+ name: 'eventTypeId',
+ type: 'options',
+ typeOptions: {
+ loadOptionsMethod: 'getEventTypes',
},
- {
- name: 'Booking Created',
- value: 'BOOKING_CREATED',
- description: 'Receive notifications when a new Cal event is created',
+ description:
+ 'The EventType to monitor. Choose from the list, or specify an ID using an expression.',
+ default: '',
+ },
+ {
+ displayName: 'Payload Template',
+ name: 'payloadTemplate',
+ type: 'string',
+ description: 'Template to customize the webhook payload',
+ default: '',
+ typeOptions: {
+ alwaysOpenEditWindow: true,
+ rows: 4,
},
- {
- name: 'Booking Rescheduled',
- value: 'BOOKING_RESCHEDULED',
- description: 'Receive notifications when a Cal event is rescheduled',
- },
- ],
- default: [],
- required: true,
- },
- {
- displayName: 'Options',
- name: 'options',
- type: 'collection',
- placeholder: 'Add Field',
- default: {},
- options: [
- {
- displayName: 'App ID',
- name: 'appId',
- type: 'string',
- description: 'The ID of the App to monitor',
- default: '',
- },
- {
- displayName: 'EventType Name or ID',
- name: 'eventTypeId',
- type: 'options',
- typeOptions: {
- loadOptionsMethod: 'getEventTypes',
- },
- description: 'The EventType to monitor. Choose from the list, or specify an ID using an expression.',
- default: '',
- },
- {
- displayName: 'Payload Template',
- name: 'payloadTemplate',
- type: 'string',
- description: 'Template to customize the webhook payload',
- default: '',
- typeOptions: {
- alwaysOpenEditWindow: true,
- rows: 4,
- },
- },
- ],
- },
- ],
+ },
+ ],
+ },
+ ],
};
methods = {
@@ -165,7 +160,7 @@ export class CalTrigger implements INodeType {
subscriberUrl,
eventTriggers,
active,
- ...options as object,
+ ...(options as object),
};
const responseData = await calApiRequest.call(this, 'POST', '/hooks', body);
@@ -181,7 +176,6 @@ export class CalTrigger implements INodeType {
async delete(this: IHookFunctions): Promise[ {"id": "", "value": ""} ]
',
+ description:
+ 'Custom fields to set as JSON in the format: [ {"id": "", "value": ""} ]
',
},
{
displayName: 'Content',
@@ -336,12 +290,11 @@ export const taskFields: INodeProperties[] = [
displayName: 'Status Name or ID',
name: 'status',
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',
typeOptions: {
loadOptionsMethod: 'getStatuses',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: '',
},
@@ -351,12 +304,11 @@ export const taskFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getTags',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
default: [],
- description: 'The array of tags applied to this task. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'The array of tags applied to this task. Choose from the list, or specify IDs using an expression.',
},
{
displayName: 'Time Estimate',
@@ -379,12 +331,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'update',
- ],
+ resource: ['task'],
+ operation: ['update'],
},
},
},
@@ -396,12 +344,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'update',
- ],
+ resource: ['task'],
+ operation: ['update'],
},
},
options: [
@@ -501,7 +445,6 @@ export const taskFields: INodeProperties[] = [
default: 1,
},
],
-
},
/* -------------------------------------------------------------------------- */
@@ -515,12 +458,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'get',
- ],
+ resource: ['task'],
+ operation: ['get'],
},
},
},
@@ -532,16 +471,13 @@ export const taskFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
typeOptions: {
@@ -553,23 +489,18 @@ export const taskFields: INodeProperties[] = [
displayName: 'Space Name or ID',
name: 'space',
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: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
typeOptions: {
loadOptionsMethod: 'getSpaces',
- loadOptionsDependsOn: [
- 'team',
- ],
+ loadOptionsDependsOn: ['team'],
},
required: true,
},
@@ -580,12 +511,8 @@ export const taskFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
required: true,
@@ -594,26 +521,19 @@ export const taskFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folder',
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: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
- folderless: [
- false,
- ],
+ resource: ['task'],
+ operation: ['getAll'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getFolders',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -621,26 +541,19 @@ export const taskFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
- folderless: [
- true,
- ],
+ resource: ['task'],
+ operation: ['getAll'],
+ folderless: [true],
},
},
typeOptions: {
loadOptionsMethod: 'getFolderlessLists',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -648,26 +561,19 @@ export const taskFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
- folderless: [
- false,
- ],
+ resource: ['task'],
+ operation: ['getAll'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getLists',
- loadOptionsDependsOn: [
- 'folder',
- ],
+ loadOptionsDependsOn: ['folder'],
},
required: true,
},
@@ -677,12 +583,8 @@ export const taskFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
default: true,
@@ -694,15 +596,9 @@ export const taskFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['task'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -720,12 +616,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['task'],
+ operation: ['getAll'],
},
},
options: [
@@ -739,12 +631,11 @@ export const taskFields: INodeProperties[] = [
displayName: 'Assignee Names or IDs',
name: 'assignees',
type: 'multiOptions',
- description: 'Choose from the list, or specify IDs using an expression',
+ description:
+ 'Choose from the list, or specify IDs using an expression',
typeOptions: {
loadOptionsMethod: 'getAssignees',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: [],
@@ -772,7 +663,8 @@ export const taskFields: INodeProperties[] = [
loadOptionsMethod: 'getCustomFields',
},
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: 'Operator',
@@ -821,10 +713,7 @@ export const taskFields: INodeProperties[] = [
type: 'string',
displayOptions: {
hide: {
- operator: [
- 'IS NULL',
- 'IS NOT NULL',
- ],
+ operator: ['IS NULL', 'IS NOT NULL'],
},
},
default: '',
@@ -882,7 +771,8 @@ export const taskFields: INodeProperties[] = [
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
- description: 'The response does by default not include closed tasks. Set this to true and dont send a status filter to include closed tasks.',
+ description:
+ 'The response does by default not include closed tasks. Set this to true and dont send a status filter to include closed tasks.',
},
{
displayName: 'Order By',
@@ -912,12 +802,11 @@ export const taskFields: INodeProperties[] = [
displayName: 'Status Names or IDs',
name: 'statuses',
type: 'multiOptions',
- description: 'Choose from the list, or specify IDs using an expression',
+ description:
+ 'Choose from the list, or specify IDs using an expression',
typeOptions: {
loadOptionsMethod: 'getStatuses',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: [],
},
@@ -934,12 +823,11 @@ export const taskFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getTags',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
default: [],
- description: 'The array of tags applied to this task. Choose from the list, or specify IDs using an expression.',
+ description:
+ 'The array of tags applied to this task. Choose from the list, or specify IDs using an expression.',
},
],
},
@@ -955,12 +843,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['task'],
+ operation: ['delete'],
},
},
},
@@ -976,12 +860,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'member',
- ],
+ resource: ['task'],
+ operation: ['member'],
},
},
},
@@ -991,12 +871,8 @@ export const taskFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'member',
- ],
+ resource: ['task'],
+ operation: ['member'],
},
},
default: true,
@@ -1008,15 +884,9 @@ export const taskFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'member',
- ],
- returnAll: [
- false,
- ],
+ resource: ['task'],
+ operation: ['member'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -1038,12 +908,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'setCustomField',
- ],
+ resource: ['task'],
+ operation: ['setCustomField'],
},
},
description: 'The ID of the task to add custom field to',
@@ -1056,12 +922,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'setCustomField',
- ],
+ resource: ['task'],
+ operation: ['setCustomField'],
},
},
description: 'The ID of the field to add custom field to',
@@ -1072,17 +934,14 @@ export const taskFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'setCustomField',
- ],
+ resource: ['task'],
+ operation: ['setCustomField'],
},
},
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
- description: 'The value is JSON and will be parsed as such. Is needed if for example needed for labels which expects the value to be an array.',
+ description:
+ 'The value is JSON and will be parsed as such. Is needed if for example needed for labels which expects the value to be an array.',
},
{
displayName: 'Value',
@@ -1092,12 +951,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'task',
- ],
- operation: [
- 'setCustomField',
- ],
+ resource: ['task'],
+ operation: ['setCustomField'],
},
},
description: 'The value to set on custom field',
diff --git a/packages/nodes-base/nodes/ClickUp/TaskInterface.ts b/packages/nodes-base/nodes/ClickUp/TaskInterface.ts
index a24f9b2851..9465271a72 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskInterface.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskInterface.ts
@@ -1,6 +1,4 @@
-import {
- IDataObject
- } from 'n8n-workflow';
+import { IDataObject } from 'n8n-workflow';
export interface ITask {
name?: string;
diff --git a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
index ed9b046684..4202ba75dd 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const taskListOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const taskListOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'taskList',
- ],
+ resource: ['taskList'],
},
},
options: [
@@ -44,13 +40,8 @@ export const taskListFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'taskList',
- ],
- operation: [
- 'remove',
- 'add',
- ],
+ resource: ['taskList'],
+ operation: ['remove', 'add'],
},
},
required: true,
@@ -62,13 +53,8 @@ export const taskListFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'taskList',
- ],
- operation: [
- 'remove',
- 'add',
- ],
+ resource: ['taskList'],
+ operation: ['remove', 'add'],
},
},
required: true,
diff --git a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
index 2020f191bf..d0e89e3632 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const taskTagOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const taskTagOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'taskTag',
- ],
+ resource: ['taskTag'],
},
},
options: [
@@ -44,13 +40,8 @@ export const taskTagFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'taskTag',
- ],
- operation: [
- 'remove',
- 'add',
- ],
+ resource: ['taskTag'],
+ operation: ['remove', 'add'],
},
},
required: true,
@@ -62,13 +53,8 @@ export const taskTagFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'taskTag',
- ],
- operation: [
- 'remove',
- 'add',
- ],
+ resource: ['taskTag'],
+ operation: ['remove', 'add'],
},
},
required: true,
@@ -81,13 +67,8 @@ export const taskTagFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'taskTag',
- ],
- operation: [
- 'remove',
- 'add',
- ],
+ resource: ['taskTag'],
+ operation: ['remove', 'add'],
},
},
options: [
@@ -96,7 +77,7 @@ export const taskTagFields: INodeProperties[] = [
name: 'custom_task_ids',
type: 'boolean',
default: false,
- description: 'Whether to reference a task by it\'s custom task ID',
+ description: "Whether to reference a task by it's custom task ID",
},
{
displayName: 'Team Name or ID',
@@ -106,7 +87,8 @@ export const taskTagFields: INodeProperties[] = [
loadOptionsMethod: 'getTeams',
},
default: '',
- description: 'Only used when the parameter is set to custom_task_ids=true. Choose from the list, or specify an ID using an expression.',
+ description:
+ 'Only used when the parameter is set to custom_task_ids=true. Choose from the list, or specify an ID using an expression.',
},
],
},
diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
index 835da63950..97a04a644b 100644
--- a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const timeEntryOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const timeEntryOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
+ resource: ['timeEntry'],
},
},
options: [
@@ -64,7 +60,6 @@ export const timeEntryOperations: INodeProperties[] = [
];
export const timeEntryFields: INodeProperties[] = [
-
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
/* -------------------------------------------------------------------------- */
@@ -72,16 +67,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['timeEntry'],
+ operation: ['getAll'],
},
},
typeOptions: {
@@ -95,12 +87,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['timeEntry'],
+ operation: ['getAll'],
},
},
default: false,
@@ -112,15 +100,9 @@ export const timeEntryFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -138,12 +120,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['timeEntry'],
+ operation: ['getAll'],
},
},
options: [
@@ -169,16 +147,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'get',
- ],
+ resource: ['timeEntry'],
+ operation: ['get'],
},
},
typeOptions: {
@@ -192,12 +167,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'get',
- ],
+ resource: ['timeEntry'],
+ operation: ['get'],
},
},
default: false,
@@ -210,15 +181,9 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'get',
- ],
- running: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['get'],
+ running: [false],
},
},
required: true,
@@ -231,16 +196,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
typeOptions: {
@@ -252,23 +214,18 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Space Name or ID',
name: 'space',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
typeOptions: {
loadOptionsMethod: 'getSpaces',
- loadOptionsDependsOn: [
- 'team',
- ],
+ loadOptionsDependsOn: ['team'],
},
required: true,
},
@@ -279,12 +236,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
required: true,
@@ -293,26 +246,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folder',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
- folderless: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getFolders',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -320,26 +266,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
- folderless: [
- true,
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
+ folderless: [true],
},
},
typeOptions: {
loadOptionsMethod: 'getFolderlessLists',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -347,26 +286,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
- folderless: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getLists',
- loadOptionsDependsOn: [
- 'folder',
- ],
+ loadOptionsDependsOn: ['folder'],
},
required: true,
},
@@ -376,12 +308,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'dateTime',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
required: true,
@@ -393,12 +321,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
default: 0,
@@ -409,22 +333,17 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Task Name or ID',
name: 'task',
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: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
typeOptions: {
loadOptionsMethod: 'getTasks',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: '',
},
@@ -436,12 +355,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'create',
- ],
+ resource: ['timeEntry'],
+ operation: ['create'],
},
},
options: [
@@ -449,12 +364,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Assignee Name or ID',
name: 'assignee',
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',
typeOptions: {
loadOptionsMethod: 'getAssignees',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: [],
},
@@ -475,11 +389,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tags',
type: 'multiOptions',
- description: 'Choose from the list, or specify IDs using an expression',
+ description:
+ 'Choose from the list, or specify IDs using an expression',
typeOptions: {
- loadOptionsDependsOn: [
- 'team',
- ],
+ loadOptionsDependsOn: ['team'],
loadOptionsMethod: 'getTimeEntryTags',
},
default: [],
@@ -494,16 +407,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'start',
- ],
+ resource: ['timeEntry'],
+ operation: ['start'],
},
},
typeOptions: {
@@ -518,12 +428,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'start',
- ],
+ resource: ['timeEntry'],
+ operation: ['start'],
},
},
required: true,
@@ -536,12 +442,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'start',
- ],
+ resource: ['timeEntry'],
+ operation: ['start'],
},
},
options: [
@@ -568,16 +470,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'stop',
- ],
+ resource: ['timeEntry'],
+ operation: ['stop'],
},
},
typeOptions: {
@@ -593,16 +492,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['timeEntry'],
+ operation: ['delete'],
},
},
typeOptions: {
@@ -617,12 +513,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['timeEntry'],
+ operation: ['delete'],
},
},
required: true,
@@ -635,16 +527,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
typeOptions: {
@@ -656,23 +545,18 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Space Name or ID',
name: 'space',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
typeOptions: {
loadOptionsMethod: 'getSpaces',
- loadOptionsDependsOn: [
- 'team',
- ],
+ loadOptionsDependsOn: ['team'],
},
required: true,
},
@@ -683,12 +567,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
required: true,
@@ -697,26 +577,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folder',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
- folderless: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getFolders',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -724,26 +597,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
- folderless: [
- true,
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
+ folderless: [true],
},
},
typeOptions: {
loadOptionsMethod: 'getFolderlessLists',
- loadOptionsDependsOn: [
- 'space',
- ],
+ loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -751,26 +617,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
- folderless: [
- false,
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
+ folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getLists',
- loadOptionsDependsOn: [
- 'folder',
- ],
+ loadOptionsDependsOn: ['folder'],
},
required: true,
},
@@ -781,12 +640,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
required: true,
@@ -798,12 +653,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
required: true,
@@ -816,12 +667,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'timeEntry',
- ],
- operation: [
- 'update',
- ],
+ resource: ['timeEntry'],
+ operation: ['update'],
},
},
options: [
@@ -829,12 +676,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Assignee Name or ID',
name: 'assignee',
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',
typeOptions: {
loadOptionsMethod: 'getAssignees',
- loadOptionsDependsOn: [
- 'list',
- ],
+ loadOptionsDependsOn: ['list'],
},
default: [],
},
@@ -868,11 +714,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tags',
type: 'multiOptions',
- description: 'Choose from the list, or specify IDs using an expression',
+ description:
+ 'Choose from the list, or specify IDs using an expression',
typeOptions: {
- loadOptionsDependsOn: [
- 'spaceId',
- ],
+ loadOptionsDependsOn: ['spaceId'],
loadOptionsMethod: 'getTags',
},
default: [],
@@ -881,13 +726,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Task Name or ID',
name: 'task',
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',
typeOptions: {
loadOptionsMethod: 'getTasks',
- loadOptionsDependsOn: [
- 'archived',
- 'list',
- ],
+ loadOptionsDependsOn: ['archived', 'list'],
},
default: '',
},
diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
index 33f1b7e717..9c81401d64 100644
--- a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const timeEntryTagOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const timeEntryTagOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
+ resource: ['timeEntryTag'],
},
},
options: [
@@ -40,7 +36,6 @@ export const timeEntryTagOperations: INodeProperties[] = [
];
export const timeEntryTagFields: INodeProperties[] = [
-
/* -------------------------------------------------------------------------- */
/* timeEntryTag:getAll */
/* -------------------------------------------------------------------------- */
@@ -48,16 +43,13 @@ export const timeEntryTagFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['getAll'],
},
},
typeOptions: {
@@ -71,12 +63,8 @@ export const timeEntryTagFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['getAll'],
},
},
default: false,
@@ -88,15 +76,9 @@ export const timeEntryTagFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'getAll',
- ],
- returnAll: [
- false,
- ],
+ resource: ['timeEntryTag'],
+ operation: ['getAll'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -114,16 +96,13 @@ export const timeEntryTagFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'add',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['add'],
},
},
typeOptions: {
@@ -138,12 +117,8 @@ export const timeEntryTagFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'add',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['add'],
},
},
required: true,
@@ -159,12 +134,8 @@ export const timeEntryTagFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'add',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['add'],
},
},
options: [
@@ -202,16 +173,13 @@ export const timeEntryTagFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
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: '',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'remove',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['remove'],
},
},
typeOptions: {
@@ -226,12 +194,8 @@ export const timeEntryTagFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'remove',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['remove'],
},
},
required: true,
@@ -240,22 +204,17 @@ export const timeEntryTagFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tagNames',
type: 'multiOptions',
- description: 'Choose from the list, or specify IDs using an expression',
+ description:
+ 'Choose from the list, or specify IDs using an expression',
typeOptions: {
loadOptionsMethod: 'getTimeEntryTags',
- loadOptionsDependsOn: [
- 'teamId',
- ],
+ loadOptionsDependsOn: ['teamId'],
},
default: [],
displayOptions: {
show: {
- resource: [
- 'timeEntryTag',
- ],
- operation: [
- 'remove',
- ],
+ resource: ['timeEntryTag'],
+ operation: ['remove'],
},
},
required: true,
diff --git a/packages/nodes-base/nodes/Clockify/ClientDescription.ts b/packages/nodes-base/nodes/Clockify/ClientDescription.ts
index c7c38eadf3..0453471e52 100644
--- a/packages/nodes-base/nodes/Clockify/ClientDescription.ts
+++ b/packages/nodes-base/nodes/Clockify/ClientDescription.ts
@@ -1,6 +1,4 @@
-import {
- INodeProperties,
-} from 'n8n-workflow';
+import { INodeProperties } from 'n8n-workflow';
export const clientOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const clientOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
- resource: [
- 'client',
- ],
+ resource: ['client'],
},
},
options: [
@@ -52,7 +48,6 @@ export const clientOperations: INodeProperties[] = [
];
export const clientFields: INodeProperties[] = [
-
/* -------------------------------------------------------------------------- */
/* client:create */
/* -------------------------------------------------------------------------- */
@@ -65,12 +60,8 @@ export const clientFields: INodeProperties[] = [
description: 'Name of client being created',
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'create',
- ],
+ resource: ['client'],
+ operation: ['create'],
},
},
},
@@ -84,12 +75,8 @@ export const clientFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'delete',
- ],
+ resource: ['client'],
+ operation: ['delete'],
},
},
},
@@ -103,12 +90,8 @@ export const clientFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'get',
- ],
+ resource: ['client'],
+ operation: ['get'],
},
},
},
@@ -121,12 +104,8 @@ export const clientFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
- operation: [
- 'getAll',
- ],
- resource: [
- 'client',
- ],
+ operation: ['getAll'],
+ resource: ['client'],
},
},
default: false,
@@ -138,15 +117,9 @@ export const clientFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
- operation: [
- 'getAll',
- ],
- resource: [
- 'client',
- ],
- returnAll: [
- false,
- ],
+ operation: ['getAll'],
+ resource: ['client'],
+ returnAll: [false],
},
},
typeOptions: {
@@ -163,12 +136,8 @@ export const clientFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'getAll',
- ],
+ resource: ['client'],
+ operation: ['getAll'],
},
},
default: {},
@@ -215,12 +184,8 @@ export const clientFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'update',
- ],
+ resource: ['client'],
+ operation: ['update'],
},
},
},
@@ -232,12 +197,8 @@ export const clientFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
- resource: [
- 'client',
- ],
- operation: [
- 'update',
- ],
+ resource: ['client'],
+ operation: ['update'],
},
},
},
@@ -248,12 +209,8 @@ export const clientFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
- operation: [
- 'update',
- ],
- resource: [
- 'client',
- ],
+ operation: ['update'],
+ resource: ['client'],
},
},
default: {},
diff --git a/packages/nodes-base/nodes/Clockify/Clockify.node.ts b/packages/nodes-base/nodes/Clockify/Clockify.node.ts
index 22007a2588..17aa05ae17 100644
--- a/packages/nodes-base/nodes/Clockify/Clockify.node.ts
+++ b/packages/nodes-base/nodes/Clockify/Clockify.node.ts
@@ -1,6 +1,4 @@
-import {
- IExecuteFunctions,
-} from 'n8n-core';
+import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
@@ -11,58 +9,27 @@ import {
INodeTypeDescription,
} from 'n8n-workflow';
-import {
- clockifyApiRequest,
- clockifyApiRequestAllItems,
-} from './GenericFunctions';
+import { clockifyApiRequest, clockifyApiRequestAllItems } from './GenericFunctions';
-import {
- IClientDto,
- IWorkspaceDto,
-} from './WorkpaceInterfaces';
+import { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
-import {
- IUserDto,
-} from './UserDtos';
+import { IUserDto } from './UserDtos';
-import {
- IProjectDto,
-} from './ProjectInterfaces';
+import { IProjectDto } from './ProjectInterfaces';
-import {
- clientFields,
- clientOperations,
-} from './ClientDescription';
+import { clientFields, clientOperations } from './ClientDescription';
-import {
- projectFields,
- projectOperations,
-} from './ProjectDescription';
+import { projectFields, projectOperations } from './ProjectDescription';
-import {
- tagFields,
- tagOperations,
-} from './TagDescription';
+import { tagFields, tagOperations } from './TagDescription';
-import {
- taskFields,
- taskOperations,
-} from './TaskDescription';
+import { taskFields, taskOperations } from './TaskDescription';
-import {
- timeEntryFields,
- timeEntryOperations,
-} from './TimeEntryDescription';
+import { timeEntryFields, timeEntryOperations } from './TimeEntryDescription';
-import {
- userFields,
- userOperations,
-} from './UserDescription';
+import { userFields, userOperations } from './UserDescription';
-import {
- workspaceFields,
- workspaceOperations,
-} from './WorkspaceDescription';
+import { workspaceFields, workspaceOperations } from './WorkspaceDescription';
import moment from 'moment-timezone';
@@ -136,7 +103,8 @@ export class Clockify implements INodeType {
displayName: 'Workspace Name or ID',
name: 'workspaceId',
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',
typeOptions: {
loadOptionsMethod: 'listWorkspaces',
},
@@ -144,9 +112,7 @@ export class Clockify implements INodeType {
default: [],
displayOptions: {
hide: {
- resource: [
- 'workspace',
- ],
+ resource: ['workspace'],
},
},
},
@@ -163,14 +129,17 @@ export class Clockify implements INodeType {
loadOptions: {
async listWorkspaces(this: ILoadOptionsFunctions): Promise