first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,100 @@
import type {
IExecuteFunctions,
IDataObject,
ILoadOptionsFunctions,
JsonObject,
IHttpRequestMethods,
IRequestOptions,
} from 'n8n-workflow';
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import type { LoaderGetResponse } from './types';
export async function monicaCrmApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods,
endpoint: string,
body: IDataObject = {},
qs: IDataObject = {},
) {
const credentials = await this.getCredentials<{
apiToken: string;
environment: string;
domain: string;
}>('monicaCrmApi');
if (credentials === undefined) {
throw new NodeOperationError(this.getNode(), 'No credentials got returned!');
}
let baseUrl = 'https://app.monicahq.com';
if (credentials.environment === 'selfHosted') {
baseUrl = credentials.domain;
}
const options: IRequestOptions = {
headers: {
Authorization: `Bearer ${credentials.apiToken}`,
},
method,
body,
qs,
uri: `${baseUrl}/api${endpoint}`,
json: true,
};
if (!Object.keys(body).length) {
delete options.body;
}
if (!Object.keys(qs).length) {
delete options.qs;
}
try {
return await this.helpers.request(options);
} catch (error) {
throw new NodeApiError(this.getNode(), error as JsonObject);
}
}
export async function monicaCrmApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods,
endpoint: string,
body: IDataObject = {},
qs: IDataObject = {},
{ forLoader }: { forLoader: boolean } = { forLoader: false },
) {
const returnAll = this.getNodeParameter('returnAll', 0, false) as boolean;
const limit = this.getNodeParameter('limit', 0, 0) as number;
let totalItems = 0;
qs.page = 1;
qs.limit = 100;
let responseData;
const returnData: IDataObject[] = [];
do {
responseData = await monicaCrmApiRequest.call(this, method, endpoint, body, qs);
returnData.push(...(responseData.data as IDataObject[]));
if (!forLoader && !returnAll && returnData.length > limit) {
return returnData.slice(0, limit);
}
qs.page++;
totalItems = responseData.meta.total;
} while (totalItems > returnData.length);
return returnData;
}
/**
* Get day, month, and year from the n8n UI datepicker.
*/
export const getDateParts = (date: string) => date.split('T')[0].split('-').map(Number).reverse();
export const toOptions = (response: LoaderGetResponse) =>
response.data.map(({ id, name }) => ({ value: id, name }));
@@ -0,0 +1,18 @@
{
"node": "n8n-nodes-base.monicaCrm",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": ["Communication"],
"resources": {
"credentialDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/credentials/monicacrm/"
}
],
"primaryDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.monicacrm/"
}
]
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,278 @@
import type { INodeProperties } from 'n8n-workflow';
export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['activity'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create an activity',
action: 'Create an activity',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete an activity',
action: 'Delete an activity',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve an activity',
action: 'Get an activity',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many activities',
action: 'Get many activities',
},
{
name: 'Update',
value: 'update',
description: 'Update an activity',
action: 'Update an activity',
},
],
default: 'create',
},
];
export const activityFields: INodeProperties[] = [
// ----------------------------------------
// activity: create
// ----------------------------------------
{
displayName: 'Activity Type Name or ID',
name: 'activityTypeId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
default: '',
typeOptions: {
loadOptionsMethod: 'getActivityTypes',
},
displayOptions: {
show: {
resource: ['activity'],
operation: ['create'],
},
},
},
{
displayName: 'Contacts',
name: 'contacts',
description: 'Comma-separated list of IDs of the contacts to associate the activity with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['create'],
},
},
},
{
displayName: 'Happened At',
name: 'happenedAt',
description: 'Date when the activity happened',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['create'],
},
},
},
{
displayName: 'Summary',
name: 'summary',
description: 'Brief description of the activity - max 255 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['activity'],
operation: ['create'],
},
},
options: [
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description of the activity - max 100,000 characters',
},
],
},
// ----------------------------------------
// activity: delete
// ----------------------------------------
{
displayName: 'Activity ID',
name: 'activityId',
description: 'ID of the activity to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// activity: get
// ----------------------------------------
{
displayName: 'Activity ID',
name: 'activityId',
description: 'ID of the activity to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['get'],
},
},
},
// ----------------------------------------
// activity: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['activity'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['activity'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// activity: update
// ----------------------------------------
{
displayName: 'Activity ID',
name: 'activityId',
description: 'ID of the activity to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['activity'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['activity'],
operation: ['update'],
},
},
options: [
{
displayName: 'Activity Type Name or ID',
name: 'activity_type_id',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
default: '',
typeOptions: {
loadOptionsMethod: 'getActivityTypes',
},
},
{
displayName: 'Contacts',
name: 'contacts',
description: 'IDs of the contacts to associate the activity with',
type: 'string',
default: '',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description to add more details on the activity - max 100,000 characters',
},
{
displayName: 'Happened At',
name: 'happened_at',
description: 'Date when the activity happened',
type: 'dateTime',
default: '',
},
{
displayName: 'Summary',
name: 'summary',
description: 'Brief description of the activity - max 255 characters',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,220 @@
import type { INodeProperties } from 'n8n-workflow';
export const callOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['call'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a call',
action: 'Create a call',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a call',
action: 'Delete a call',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a call',
action: 'Get a call',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many calls',
action: 'Get many calls',
},
{
name: 'Update',
value: 'update',
description: 'Update a call',
action: 'Update a call',
},
],
default: 'create',
},
];
export const callFields: INodeProperties[] = [
// ----------------------------------------
// call: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the call with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['create'],
},
},
},
{
displayName: 'Called At',
name: 'calledAt',
description: 'Date when the call happened',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['create'],
},
},
},
{
displayName: 'Description',
name: 'content',
description: 'Description of the call - max 100,000 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['create'],
},
},
},
// ----------------------------------------
// call: delete
// ----------------------------------------
{
displayName: 'Call ID',
name: 'callId',
description: 'ID of the call to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// call: get
// ----------------------------------------
{
displayName: 'Call ID',
name: 'callId',
description: 'ID of the call to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['get'],
},
},
},
// ----------------------------------------
// call: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['call'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['call'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// call: update
// ----------------------------------------
{
displayName: 'Call ID',
name: 'callId',
description: 'ID of the call to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['call'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['call'],
operation: ['update'],
},
},
options: [
{
displayName: 'Called At',
name: 'calledAt',
description: 'Date when the call happened',
type: 'dateTime',
default: '',
},
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the call with',
type: 'string',
default: '',
},
{
displayName: 'Description',
name: 'content',
description: 'Description of the call - max 100,000 characters',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,364 @@
import type { INodeProperties } from 'n8n-workflow';
export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['contact'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a contact',
action: 'Create a contact',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
action: 'Delete a contact',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a contact',
action: 'Get a contact',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many contacts',
action: 'Get many contacts',
},
{
name: 'Update',
value: 'update',
description: 'Update a contact',
action: 'Update a contact',
},
],
default: 'create',
},
];
export const contactFields: INodeProperties[] = [
// ----------------------------------------
// contact: create
// ----------------------------------------
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contact'],
operation: ['create'],
},
},
},
{
displayName: 'Gender Name or ID',
name: 'genderId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
default: '',
typeOptions: {
loadOptionsMethod: 'getGenders',
},
displayOptions: {
show: {
resource: ['contact'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['contact'],
operation: ['create'],
},
},
options: [
{
displayName: 'Birthdate',
name: 'birthdate',
type: 'dateTime',
default: '',
},
{
displayName: 'Deceased Date',
name: 'deceasedDate',
type: 'dateTime',
default: '',
},
{
displayName: 'Is Deceased',
name: 'isDeceased',
description: 'Whether the contact has passed away',
type: 'boolean',
default: false,
},
{
displayName: 'Last Name',
name: 'last_name',
type: 'string',
default: '',
},
{
displayName: 'Nickname',
name: 'nickname',
type: 'string',
default: '',
},
{
displayName: 'Type',
name: 'is_partial',
type: 'options',
default: false,
options: [
{
name: 'Real',
value: false,
description: 'Contact with their own contact sheet',
},
{
name: 'Partial',
value: true,
description: 'Contact without their own contact sheet',
},
],
},
],
},
// ----------------------------------------
// contact: delete
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contact'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// contact: get
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contact'],
operation: ['get'],
},
},
},
// ----------------------------------------
// contact: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['contact'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['contact'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filters',
type: 'collection',
placeholder: 'Add Field',
default: {},
options: [
{
displayName: 'Search Term',
name: 'query',
type: 'string',
default: '',
description: 'Search term to filter results by',
},
{
displayName: 'Sort',
name: 'sort',
type: 'options',
options: [
{
name: 'Ascended Created At',
value: 'created_at',
},
{
name: 'Descended Created At',
value: '-created_at',
},
{
name: 'Ascended Updated At',
value: 'updated_at',
},
{
name: 'Descended Updated At',
value: '-updated_at',
},
],
default: '',
},
],
displayOptions: {
show: {
resource: ['contact'],
operation: ['getAll'],
},
},
},
// ----------------------------------------
// contact: update
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contact'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['contact'],
operation: ['update'],
},
},
options: [
{
displayName: 'Birthdate',
name: 'birthdate',
type: 'dateTime',
default: '',
},
{
displayName: 'Deceased Date',
name: 'deceased_date',
type: 'dateTime',
default: '',
},
{
displayName: 'First Name',
name: 'first_name',
type: 'string',
default: '',
},
{
displayName: 'Gender Name or ID',
name: 'gender_id',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
default: '',
typeOptions: {
loadOptionsMethod: 'getGenders',
},
},
{
displayName: 'Is Deceased',
name: 'is_deceased',
description: 'Whether the contact has passed away',
type: 'boolean',
default: false,
},
{
displayName: 'Last Name',
name: 'last_name',
type: 'string',
default: '',
},
{
displayName: 'Nickname',
name: 'nickname',
type: 'string',
default: '',
},
{
displayName: 'Type',
name: 'is_partial',
type: 'options',
default: false,
options: [
{
name: 'Real',
value: false,
description: 'Contact with their own contact sheet',
},
{
name: 'Partial',
value: true,
description: 'Contact without their own contact sheet',
},
],
},
],
},
];
@@ -0,0 +1,247 @@
import type { INodeProperties } from 'n8n-workflow';
export const contactFieldOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['contactField'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a contact field',
action: 'Create a contact field',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact field',
action: 'Delete a contact field',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a contact field',
action: 'Get a contact field',
},
// {
// name: 'Get All',
// value: 'getAll',
// description: 'Retrieve all contact fields',
// },
{
name: 'Update',
value: 'update',
description: 'Update a contact field',
action: 'Update a contact field',
},
],
default: 'create',
},
];
export const contactFieldFields: INodeProperties[] = [
// ----------------------------------------
// contactField: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the contact field with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['create'],
},
},
},
{
displayName: 'Contact Field Type Name or ID',
name: 'contactFieldTypeId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
typeOptions: {
loadOptionsMethod: 'getContactFieldTypes',
},
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['create'],
},
},
},
{
displayName: 'Content',
name: 'data',
description: 'Content of the contact field - max 255 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['create'],
},
},
},
// ----------------------------------------
// contactField: delete
// ----------------------------------------
{
displayName: 'Contact Field ID',
name: 'contactFieldId',
description: 'ID of the contactField to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// contactField: get
// ----------------------------------------
{
displayName: 'Contact Field ID',
name: 'contactFieldId',
description: 'ID of the contact field to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['get'],
},
},
},
// ----------------------------------------
// contactField: getAll
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact whose fields to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['getAll'],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['contactField'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// contactField: update
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the contact field with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['update'],
},
},
},
{
displayName: 'Contact Field ID',
name: 'contactFieldId',
description: 'ID of the contact field to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['update'],
},
},
},
{
displayName: 'Contact Field Type Name or ID',
name: 'contactFieldTypeId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getContactFieldTypes',
},
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['update'],
},
},
},
{
displayName: 'Content',
name: 'data',
description: 'Content of the contact field - max 255 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactField'],
operation: ['update'],
},
},
},
];
@@ -0,0 +1,102 @@
import type { INodeProperties } from 'n8n-workflow';
export const contactTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['contactTag'],
},
},
options: [
{
name: 'Add',
value: 'add',
action: 'Add a tag to a contact',
},
{
name: 'Remove',
value: 'remove',
action: 'Remove a tag from a contact',
},
],
default: 'add',
},
];
export const contactTagFields: INodeProperties[] = [
// ----------------------------------------
// tag: add
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to add a tag to',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactTag'],
operation: ['add'],
},
},
},
{
displayName: 'Tag Names or IDs',
name: 'tagsToAdd',
description:
'Tags to add to the contact. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getTagsToAdd',
},
required: true,
default: [],
displayOptions: {
show: {
resource: ['contactTag'],
operation: ['add'],
},
},
},
// ----------------------------------------
// tag: remove
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to remove the tag from',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['contactTag'],
operation: ['remove'],
},
},
},
{
displayName: 'Tag Names or IDs',
name: 'tagsToRemove',
description:
'Tags to remove from the contact. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
type: 'multiOptions',
required: true,
typeOptions: {
loadOptionsMethod: 'getTagsToRemove',
},
default: [],
displayOptions: {
show: {
resource: ['contactTag'],
operation: ['remove'],
},
},
},
];
@@ -0,0 +1,180 @@
import type { INodeProperties } from 'n8n-workflow';
export const conversationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['conversation'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a conversation',
action: 'Create a conversation',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a conversation',
action: 'Delete a conversation',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a conversation',
action: 'Get a conversation',
},
{
name: 'Update',
value: 'update',
description: 'Update a conversation',
action: 'Update a conversation',
},
],
default: 'create',
},
];
export const conversationFields: INodeProperties[] = [
// ----------------------------------------
// conversation: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the conversation with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['create'],
},
},
},
{
displayName: 'Contact Field Type Name or ID',
name: 'contactFieldTypeId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
default: '',
typeOptions: {
loadOptionsMethod: 'getContactFieldTypes',
},
displayOptions: {
show: {
resource: ['conversation'],
operation: ['create'],
},
},
},
{
displayName: 'Happened At',
name: 'happenedAt',
description: 'Date when the conversation happened',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['create'],
},
},
},
// ----------------------------------------
// conversation: delete
// ----------------------------------------
{
displayName: 'Conversation ID',
name: 'conversationId',
description: 'ID of the conversation to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// conversation: get
// ----------------------------------------
{
displayName: 'Conversation ID',
name: 'conversationId',
description: 'ID of the conversation to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['get'],
},
},
},
// ----------------------------------------
// conversation: update
// ----------------------------------------
{
displayName: 'Conversation ID',
name: 'conversationId',
description: 'ID of the conversation to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['update'],
},
},
},
{
displayName: 'Contact Field Type Name or ID',
name: 'contactFieldTypeId',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
default: '',
typeOptions: {
loadOptionsMethod: 'getContactFieldTypes',
},
displayOptions: {
show: {
resource: ['conversation'],
operation: ['update'],
},
},
},
{
displayName: 'Happened At',
name: 'happenedAt',
description: 'Date when the conversation happened',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversation'],
operation: ['update'],
},
},
},
];
@@ -0,0 +1,187 @@
import type { INodeProperties } from 'n8n-workflow';
export const conversationMessageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['conversationMessage'],
},
},
options: [
{
name: 'Add',
value: 'add',
description: 'Add a message to a conversation',
action: 'Add a message to a conversation',
},
{
name: 'Update',
value: 'update',
description: 'Update a message in a conversation',
action: 'Update a message in a conversation',
},
],
default: 'add',
},
];
export const conversationMessageFields: INodeProperties[] = [
// ----------------------------------------
// conversationMessage: add
// ----------------------------------------
{
displayName: 'Conversation ID',
name: 'conversationId',
description: 'ID of the contact whose conversation',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['add'],
},
},
},
{
displayName: 'Content',
name: 'content',
description: 'Content of the message',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['add'],
},
},
},
{
displayName: 'Written At',
name: 'writtenAt',
description: 'Date when the message was written',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['add'],
},
},
},
{
displayName: 'Written By',
name: 'writtenByMe',
description: 'Author of the message',
type: 'options',
required: true,
default: true,
options: [
{
name: 'User',
value: true,
},
{
name: 'Contact',
value: false,
},
],
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['add'],
},
},
},
// ----------------------------------------
// conversationMessage: update
// ----------------------------------------
{
displayName: 'Message ID',
name: 'messageId',
description: 'ID of the message to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['update'],
},
},
},
{
displayName: 'Conversation ID',
name: 'conversationId',
description: 'ID of the conversation whose message to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['conversationMessage'],
operation: ['update'],
},
},
options: [
{
displayName: 'Contact ID',
name: 'contact_id',
description: 'ID of the contact to associate the conversationMessage with',
type: 'string',
default: '',
},
{
displayName: 'Content',
name: 'content',
description: 'Content of the message',
type: 'string',
default: '',
},
{
displayName: 'Written At',
name: 'written_at',
description: 'Date when the message was written',
type: 'dateTime',
default: '',
},
{
displayName: 'Written By',
name: 'written_by_me',
description: 'Author of the message',
type: 'options',
default: true,
options: [
{
name: 'User',
value: true,
},
{
name: 'Contact',
value: false,
},
],
},
],
},
];
@@ -0,0 +1,199 @@
import type { INodeProperties } from 'n8n-workflow';
export const journalEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['journalEntry'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a journal entry',
action: 'Create a journal entry',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a journal entry',
action: 'Delete a journal entry',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a journal entry',
action: 'Get a journal entry',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many journal entries',
action: 'Get many journal entries',
},
{
name: 'Update',
value: 'update',
description: 'Update a journal entry',
action: 'Update a journal entry',
},
],
default: 'create',
},
];
export const journalEntryFields: INodeProperties[] = [
// ----------------------------------------
// journalEntry: create
// ----------------------------------------
{
displayName: 'Title',
name: 'title',
description: 'Title of the journal entry - max 250 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['create'],
},
},
},
{
displayName: 'Content',
name: 'post',
description: 'Content of the journal entry - max 100,000 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['create'],
},
},
},
// ----------------------------------------
// journalEntry: delete
// ----------------------------------------
{
displayName: 'Journal Entry ID',
name: 'journalId',
description: 'ID of the journal entry to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// journalEntry: get
// ----------------------------------------
{
displayName: 'Journal Entry ID',
name: 'journalId',
description: 'ID of the journal entry to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['get'],
},
},
},
// ----------------------------------------
// journalEntry: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// journalEntry: update
// ----------------------------------------
{
displayName: 'Journal Entry ID',
name: 'journalId',
description: 'ID of the journal entry to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['journalEntry'],
operation: ['update'],
},
},
options: [
{
displayName: 'Content',
name: 'post',
description: 'Content of the journal entry - max 100,000 characters',
type: 'string',
default: '',
},
{
displayName: 'Title',
name: 'title',
description: 'Title of the journal entry - max 250 characters',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,228 @@
import type { INodeProperties } from 'n8n-workflow';
export const noteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['note'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a note',
action: 'Create a note',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a note',
action: 'Delete a note',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a note',
action: 'Get a note',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many notes',
action: 'Get many notes',
},
{
name: 'Update',
value: 'update',
description: 'Update a note',
action: 'Update a note',
},
],
default: 'create',
},
];
export const noteFields: INodeProperties[] = [
// ----------------------------------------
// note: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the note with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['note'],
operation: ['create'],
},
},
},
{
displayName: 'Body',
name: 'body',
description: 'Body of the note - max 100,000 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['note'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['note'],
operation: ['create'],
},
},
options: [
{
displayName: 'Is Favorited',
name: 'isFavorited',
description: 'Whether the note has been favorited',
type: 'boolean',
default: false,
},
],
},
// ----------------------------------------
// note: delete
// ----------------------------------------
{
displayName: 'Note ID',
name: 'noteId',
description: 'ID of the note to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['note'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// note: get
// ----------------------------------------
{
displayName: 'Note ID',
name: 'noteId',
description: 'ID of the note to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['note'],
operation: ['get'],
},
},
},
// ----------------------------------------
// note: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['note'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['note'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// note: update
// ----------------------------------------
{
displayName: 'Note ID',
name: 'noteId',
description: 'ID of the note to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['note'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['note'],
operation: ['update'],
},
},
options: [
{
displayName: 'Body',
name: 'body',
description: 'Body of the note - max 100,000 characters',
type: 'string',
default: '',
},
{
displayName: 'Contact ID',
name: 'contact_id',
description: 'ID of the contact to associate the note with',
type: 'string',
default: '',
},
{
displayName: 'Is Favorited',
name: 'is_favorited',
description: 'Whether the note has been favorited',
type: 'boolean',
default: false,
},
],
},
];
@@ -0,0 +1,332 @@
import type { INodeProperties } from 'n8n-workflow';
export const reminderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['reminder'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a reminder',
action: 'Create a reminder',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a reminder',
action: 'Delete a reminder',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a reminder',
action: 'Get a reminder',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many reminders',
action: 'Get many reminders',
},
{
name: 'Update',
value: 'update',
description: 'Update a reminder',
action: 'Update a reminder',
},
],
default: 'create',
},
];
export const reminderFields: INodeProperties[] = [
// ----------------------------------------
// reminder: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
type: 'string',
default: '',
description: 'ID of the contact to associate the reminder with',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
},
},
},
{
displayName: 'Frequency Type',
name: 'frequencyType',
description: 'Type of frequency of the reminder',
type: 'options',
required: true,
default: 'one_time',
options: [
{
name: 'Once',
value: 'one_time',
},
{
name: 'Weekly',
value: 'week',
},
{
name: 'Monthly',
value: 'month',
},
{
name: 'Yearly',
value: 'year',
},
],
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
},
},
},
{
displayName: 'Recurring Interval',
name: 'frequencyNumber',
type: 'number',
default: 0,
description: 'Interval for the reminder',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
frequencyType: ['week', 'month', 'year'],
},
},
},
{
displayName: 'Initial Date',
name: 'initialDate',
description: 'Date of the reminder',
type: 'dateTime',
required: true,
default: '',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
},
},
},
{
displayName: 'Title',
name: 'title',
description: 'Title of the reminder - max 100,000 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['reminder'],
operation: ['create'],
},
},
options: [
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description about the reminder - Max 100,000 characters',
},
],
},
// ----------------------------------------
// reminder: delete
// ----------------------------------------
{
displayName: 'Reminder ID',
name: 'reminderId',
description: 'ID of the reminder to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// reminder: get
// ----------------------------------------
{
displayName: 'Reminder ID',
name: 'reminderId',
description: 'ID of the reminder to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['get'],
},
},
},
// ----------------------------------------
// reminder: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['reminder'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// reminder: update
// ----------------------------------------
{
displayName: 'Reminder ID',
name: 'reminderId',
description: 'ID of the reminder to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['reminder'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['reminder'],
operation: ['update'],
},
},
options: [
{
displayName: 'Contact ID',
name: 'contact_id',
type: 'string',
default: '',
description: 'ID of the contact to associate the reminder with',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description about the reminder - Max 100,000 characters',
},
{
displayName: 'Frequency Type',
name: 'frequency_type',
description: 'Frequency of the reminder',
type: 'options',
default: 'one_time',
options: [
{
name: 'One Time',
value: 'one_time',
},
{
name: 'Week',
value: 'week',
},
{
name: 'Month',
value: 'month',
},
{
name: 'Year',
value: 'year',
},
],
},
{
displayName: 'Initial Date',
name: 'initial_data',
description: 'Date of the reminder',
type: 'dateTime',
default: '',
},
{
displayName: 'Recurring Interval',
name: 'frequency_number',
type: 'number',
default: 0,
description: 'Interval for the reminder',
displayOptions: {
show: {
frequency_type: ['week', 'month', 'year'],
},
},
},
{
displayName: 'Title',
name: 'title',
description: 'Title of the reminder - max 100,000 characters',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,170 @@
import type { INodeProperties } from 'n8n-workflow';
export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['tag'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a tag',
action: 'Create a tag',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a tag',
action: 'Delete a tag',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a tag',
action: 'Get a tag',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many tags',
action: 'Get many tags',
},
{
name: 'Update',
value: 'update',
description: 'Update a tag',
action: 'Update a tag',
},
],
default: 'create',
},
];
export const tagFields: INodeProperties[] = [
// ----------------------------------------
// tag: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the tag - max 250 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['tag'],
operation: ['create'],
},
},
},
// ----------------------------------------
// tag: delete
// ----------------------------------------
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['tag'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// tag: get
// ----------------------------------------
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['tag'],
operation: ['get'],
},
},
},
// ----------------------------------------
// tag: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['tag'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['tag'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// tag: update
// ----------------------------------------
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['tag'],
operation: ['update'],
},
},
},
{
displayName: 'Name',
name: 'name',
description: 'Name of the tag - max 250 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['tag'],
operation: ['update'],
},
},
},
];
@@ -0,0 +1,235 @@
import type { INodeProperties } from 'n8n-workflow';
export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['task'],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a task',
action: 'Create a task',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a task',
action: 'Delete a task',
},
{
name: 'Get',
value: 'get',
description: 'Retrieve a task',
action: 'Get a task',
},
{
name: 'Get Many',
value: 'getAll',
description: 'Retrieve many tasks',
action: 'Get many tasks',
},
{
name: 'Update',
value: 'update',
description: 'Update a task',
action: 'Update a task',
},
],
default: 'create',
},
];
export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the task with',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['task'],
operation: ['create'],
},
},
},
{
displayName: 'Title',
name: 'title',
description: 'Title of the task entry - max 250 characters',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['task'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['task'],
operation: ['create'],
},
},
options: [
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description of the task - max 100,000 characters',
},
],
},
// ----------------------------------------
// task: delete
// ----------------------------------------
{
displayName: 'Task ID',
name: 'taskId',
description: 'ID of the task to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['task'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// task: get
// ----------------------------------------
{
displayName: 'Task ID',
name: 'taskId',
description: 'ID of the task to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['task'],
operation: ['get'],
},
},
},
// ----------------------------------------
// task: getAll
// ----------------------------------------
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: ['task'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
displayOptions: {
show: {
resource: ['task'],
operation: ['getAll'],
returnAll: [false],
},
},
},
// ----------------------------------------
// task: update
// ----------------------------------------
{
displayName: 'Task ID',
name: 'taskId',
description: 'ID of the task to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['task'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['task'],
operation: ['update'],
},
},
options: [
{
displayName: 'Contact ID',
name: 'contactId',
description: 'ID of the contact to associate the task with',
type: 'string',
default: '',
},
{
displayName: 'Completed',
name: 'completed',
description: 'Whether the task has been completed',
type: 'boolean',
default: false,
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'Description of the task - max 100,000 characters',
},
{
displayName: 'Title',
name: 'title',
description: 'Title of the task entry - max 250 characters',
type: 'string',
default: '',
},
],
},
];
@@ -0,0 +1,12 @@
export * from './ActivityDescription';
export * from './CallDescription';
export * from './ContactDescription';
export * from './ContactFieldDescription';
export * from './ContactTagDescription';
export * from './ConversationDescription';
export * from './ConversationMessageDescription';
export * from './JournalEntryDescription';
export * from './NoteDescription';
export * from './ReminderDescription';
export * from './TagDescription';
export * from './TaskDescription';
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -0,0 +1,13 @@
import type { IDataObject } from 'n8n-workflow';
export type LoaderGetResponse = {
data: Array<{
id: string;
name: string;
}>;
} & IDataObject;
export type Option = {
value: string;
name: string;
};