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,247 @@
import type { INodeProperties } from 'n8n-workflow';
import { isoCountryCodes } from '@utils/ISOCountryCodes';
import { addressFixedCollection, phoneNumbersFixedCollection } from '../utils/sharedFields';
export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['company'],
},
},
options: [
{
name: 'Create',
value: 'create',
action: 'Create a company',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete a company',
},
{
name: 'Get',
value: 'get',
action: 'Get a company',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many companies',
},
{
name: 'Update',
value: 'update',
action: 'Update a company',
},
],
default: 'create',
},
];
export const companyFields: INodeProperties[] = [
// ----------------------------------------
// company: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the company to create',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['company'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['company'],
operation: ['create'],
},
},
options: [
addressFixedCollection,
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description of the company to create',
},
{
displayName: 'Email Domain',
name: 'email_domain',
type: 'string',
default: '',
},
phoneNumbersFixedCollection,
],
},
// ----------------------------------------
// company: delete
// ----------------------------------------
{
displayName: 'Company ID',
name: 'companyId',
description: 'ID of the company to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['company'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// company: get
// ----------------------------------------
{
displayName: 'Company ID',
name: 'companyId',
description: 'ID of the company to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['company'],
operation: ['get'],
},
},
},
// ----------------------------------------
// company: 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: ['company'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['company'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: ['company'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Country',
name: 'country',
type: 'options',
options: isoCountryCodes.map(({ name, alpha2 }) => ({ name, value: alpha2 })),
default: '',
description: 'Country of the company to filter by',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the company to filter by',
},
],
},
// ----------------------------------------
// company: update
// ----------------------------------------
{
displayName: 'Company ID',
name: 'companyId',
description: 'ID of the company to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['company'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['company'],
operation: ['update'],
},
},
options: [
addressFixedCollection,
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the company',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the company',
},
phoneNumbersFixedCollection,
],
},
];
@@ -0,0 +1,60 @@
import type { INodeProperties } from 'n8n-workflow';
export const customerSourceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['customerSource'],
},
},
options: [
{
name: 'Get Many',
value: 'getAll',
action: 'Get many customer sources',
},
],
default: 'getAll',
},
];
export const customerSourceFields: INodeProperties[] = [
// ----------------------------------------
// customerSource: 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: ['customerSource'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['customerSource'],
operation: ['getAll'],
returnAll: [false],
},
},
},
];
@@ -0,0 +1,233 @@
import type { INodeProperties } from 'n8n-workflow';
import {
addressFixedCollection,
emailFixedCollection,
phoneNumbersFixedCollection,
} from '../utils/sharedFields';
export const leadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['lead'],
},
},
options: [
{
name: 'Create',
value: 'create',
action: 'Create a lead',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete a lead',
},
{
name: 'Get',
value: 'get',
action: 'Get a lead',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many leads',
},
{
name: 'Update',
value: 'update',
action: 'Update a lead',
},
],
default: 'create',
},
];
export const leadFields: INodeProperties[] = [
// ----------------------------------------
// lead: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the lead to create',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['lead'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
default: {},
placeholder: 'Add Field',
displayOptions: {
show: {
resource: ['lead'],
operation: ['create'],
},
},
options: [addressFixedCollection, emailFixedCollection, phoneNumbersFixedCollection],
},
// ----------------------------------------
// lead: delete
// ----------------------------------------
{
displayName: 'Lead ID',
name: 'leadId',
description: 'ID of the lead to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['lead'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// lead: get
// ----------------------------------------
{
displayName: 'Lead ID',
name: 'leadId',
description: 'ID of the lead to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['lead'],
operation: ['get'],
},
},
},
// ----------------------------------------
// lead: 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: ['lead'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['lead'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: ['lead'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Country',
name: 'country',
type: 'string',
default: '',
description: 'Name of the country to filter by',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the lead to filter by',
},
],
},
// ----------------------------------------
// lead: update
// ----------------------------------------
{
displayName: 'Lead ID',
name: 'leadId',
description: 'ID of the lead to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['lead'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['lead'],
operation: ['update'],
},
},
options: [
addressFixedCollection,
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the lead',
},
emailFixedCollection,
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the lead',
},
phoneNumbersFixedCollection,
],
},
];
@@ -0,0 +1,243 @@
import type { INodeProperties } from 'n8n-workflow';
export const opportunityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['opportunity'],
},
},
options: [
{
name: 'Create',
value: 'create',
action: 'Create an opportunity',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete an opportunity',
},
{
name: 'Get',
value: 'get',
action: 'Get an opportunity',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many opportunities',
},
{
name: 'Update',
value: 'update',
action: 'Update an opportunity',
},
],
default: 'create',
},
];
export const opportunityFields: INodeProperties[] = [
// ----------------------------------------
// opportunity: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the opportunity to create',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['create'],
},
},
},
{
displayName: 'Customer Source ID',
name: 'customerSourceId',
type: 'string',
default: '',
description: 'ID of the customer source that generated this opportunity',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['create'],
},
},
},
{
displayName: 'Primary Contact ID',
name: 'primaryContactId',
type: 'string',
default: '',
description: 'ID of the primary company associated with this opportunity',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['create'],
},
},
},
// ----------------------------------------
// opportunity: delete
// ----------------------------------------
{
displayName: 'Opportunity ID',
name: 'opportunityId',
description: 'ID of the opportunity to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// opportunity: get
// ----------------------------------------
{
displayName: 'Opportunity ID',
name: 'opportunityId',
description: 'ID of the opportunity to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['get'],
},
},
},
// ----------------------------------------
// opportunity: 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: ['opportunity'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Company IDs',
name: 'company_ids',
type: 'string',
default: '',
description: 'Comma-separated IDs of the primary companies to filter by',
},
{
displayName: 'Customer Source IDs',
name: 'customer_source_ids',
type: 'string',
default: '',
description: 'Comma-separated IDs of the customer sources to filter by',
},
],
},
// ----------------------------------------
// opportunity: update
// ----------------------------------------
{
displayName: 'Opportunity ID',
name: 'opportunityId',
description: 'ID of the opportunity to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['opportunity'],
operation: ['update'],
},
},
options: [
{
displayName: 'Customer Source ID',
name: 'customer_source_id',
type: 'string',
default: '',
description: 'ID of the primary company associated with this opportunity',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the opportunity',
},
{
displayName: 'Primary Contact ID',
name: 'primary_contact_id',
type: 'string',
default: '',
description: 'ID of the customer source that generated this opportunity',
},
],
},
];
@@ -0,0 +1,249 @@
import type { INodeProperties } from 'n8n-workflow';
import {
addressFixedCollection,
emailsFixedCollection,
phoneNumbersFixedCollection,
} from '../utils/sharedFields';
export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['person'],
},
},
options: [
{
name: 'Create',
value: 'create',
action: 'Create a person',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete a person',
},
{
name: 'Get',
value: 'get',
action: 'Get a person',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many people',
},
{
name: 'Update',
value: 'update',
action: 'Update a person',
},
],
default: 'create',
},
];
export const personFields: INodeProperties[] = [
// ----------------------------------------
// person: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the person to create',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['person'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['person'],
operation: ['create'],
},
},
options: [
addressFixedCollection,
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the person',
},
{
displayName: 'Email Domain',
name: 'email_domain',
type: 'string',
default: '',
},
emailsFixedCollection,
phoneNumbersFixedCollection,
],
},
// ----------------------------------------
// person: delete
// ----------------------------------------
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['person'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// person: get
// ----------------------------------------
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['person'],
operation: ['get'],
},
},
},
// ----------------------------------------
// person: 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: ['person'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['person'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['person'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the person to filter by',
},
],
},
// ----------------------------------------
// person: update
// ----------------------------------------
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['person'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['person'],
operation: ['update'],
},
},
options: [
addressFixedCollection,
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the person',
},
{
displayName: 'Email Domain',
name: 'email_domain',
type: 'string',
default: '',
},
emailsFixedCollection,
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the person',
},
phoneNumbersFixedCollection,
],
},
];
@@ -0,0 +1,271 @@
import type { INodeProperties } from 'n8n-workflow';
export const projectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['project'],
},
},
options: [
{
name: 'Create',
value: 'create',
action: 'Create a project',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete a project',
},
{
name: 'Get',
value: 'get',
action: 'Get a project',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many projects',
},
{
name: 'Update',
value: 'update',
action: 'Update a project',
},
],
default: 'create',
},
];
export const projectFields: INodeProperties[] = [
// ----------------------------------------
// project: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
description: 'Name of the project to create',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['project'],
operation: ['create'],
},
},
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['project'],
operation: ['create'],
},
},
options: [
{
displayName: 'Assignee ID',
name: 'assignee_id',
type: 'string',
default: '',
description: 'ID of the user who will own the project to create',
},
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description of the project to create',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'Open',
options: [
{
name: 'Completed',
value: 'Completed',
},
{
name: 'Open',
value: 'Open',
},
],
},
],
},
// ----------------------------------------
// project: delete
// ----------------------------------------
{
displayName: 'Project ID',
name: 'projectId',
description: 'ID of the project to delete',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['project'],
operation: ['delete'],
},
},
},
// ----------------------------------------
// project: get
// ----------------------------------------
{
displayName: 'Project ID',
name: 'projectId',
description: 'ID of the project to retrieve',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['project'],
operation: ['get'],
},
},
},
// ----------------------------------------
// project: 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: ['project'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['project'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
default: {},
placeholder: 'Add Filter',
displayOptions: {
show: {
resource: ['project'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the project to filter by',
},
],
},
// ----------------------------------------
// project: update
// ----------------------------------------
{
displayName: 'Project ID',
name: 'projectId',
description: 'ID of the project to update',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['project'],
operation: ['update'],
},
},
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['project'],
operation: ['update'],
},
},
options: [
{
displayName: 'Assignee ID',
name: 'assignee_id',
type: 'string',
default: '',
description: 'ID of the user who will own the project',
},
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the project',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the project',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'Open',
options: [
{
name: 'Completed',
value: 'Completed',
},
{
name: 'Open',
value: 'Open',
},
],
},
],
},
];
@@ -0,0 +1,309 @@
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',
action: 'Create a task',
},
{
name: 'Delete',
value: 'delete',
action: 'Delete a task',
},
{
name: 'Get',
value: 'get',
action: 'Get a task',
},
{
name: 'Get Many',
value: 'getAll',
action: 'Get many tasks',
},
{
name: 'Update',
value: 'update',
action: 'Update a task',
},
],
default: 'create',
},
];
export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
{
displayName: 'Name',
name: 'name',
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: 'Assignee ID',
name: 'assignee_id',
type: 'string',
default: '',
description: 'ID of the user who will own the task to create',
},
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description of the task to create',
},
{
displayName: 'Priority',
name: 'priority',
type: 'options',
default: 'High',
options: [
{
name: 'High',
value: 'High',
},
{
name: 'None',
value: 'None',
},
],
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'Open',
options: [
{
name: 'Completed',
value: 'Completed',
},
{
name: 'Open',
value: 'Open',
},
],
},
],
},
// ----------------------------------------
// 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: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['task'],
operation: ['getAll'],
returnAll: [false],
},
},
},
{
displayName: 'Filters',
name: 'filterFields',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: ['task'],
operation: ['getAll'],
},
},
options: [
{
displayName: 'Assignee IDs',
name: 'assignee_ids',
type: 'string',
default: '',
description: 'Comma-separated IDs of assignee IDs to filter by',
},
{
displayName: 'Project IDs',
name: 'project_ids',
type: 'string',
default: '',
description: 'Comma-separated IDs of project IDs to filter by',
},
],
},
// ----------------------------------------
// 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: 'Assignee ID',
name: 'assignee_id',
type: 'string',
default: '',
description: 'ID of the user who will own the task',
},
{
displayName: 'Details',
name: 'details',
type: 'string',
default: '',
description: 'Description to set for the task',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name to set for the task',
},
{
displayName: 'Priority',
name: 'priority',
type: 'options',
default: 'High',
options: [
{
name: 'High',
value: 'High',
},
{
name: 'None',
value: 'None',
},
],
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'Open',
options: [
{
name: 'Completed',
value: 'Completed',
},
{
name: 'Open',
value: 'Open',
},
],
},
],
},
];
@@ -0,0 +1,60 @@
import type { INodeProperties } from 'n8n-workflow';
export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['user'],
},
},
options: [
{
name: 'Get Many',
value: 'getAll',
action: 'Get many users',
},
],
default: 'getAll',
},
];
export const userFields: INodeProperties[] = [
// ----------------------------------------
// user: 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: ['user'],
operation: ['getAll'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 1000,
},
displayOptions: {
show: {
resource: ['user'],
operation: ['getAll'],
returnAll: [false],
},
},
},
];
@@ -0,0 +1,8 @@
export * from './CompanyDescription';
export * from './CustomerSourceDescription';
export * from './LeadDescription';
export * from './OpportunityDescription';
export * from './PersonDescription';
export * from './ProjectDescription';
export * from './TaskDescription';
export * from './UserDescription';