interface MonicaCrmNodeParameters {
activityId?: string;
activityTypeId?: string;
additionalFields?:
| { description?: string }
| {
birthdate?: string;
deceasedDate?: string;
is_partial?: boolean;
isDeceased?: boolean;
last_name?: string;
nickname?: string;
}
| { isFavorited?: boolean };
body?: string;
calledAt?: string;
callId?: string;
contactFieldId?: string;
contactFieldTypeId?: string;
contactId?: string;
contacts?: string;
content?: string;
conversationId?: string;
data?: string;
filters?: {
query?: string;
sort?:
| "updated_at"
| "created_at"
| "-created_at"
| "-updated_at";
};
firstName?: string;
frequencyNumber?: number;
frequencyType?: "week"
| "month"
| "year"
| "one_time";
genderId?: string;
happenedAt?: string;
initialDate?: string;
journalId?: string;
limit?: number;
messageId?: string;
name?: string;
noteId?: string;
operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete";
post?: string;
reminderId?: string;
resource?: | "tag"
| "contact"
| "contactTag"
| "task"
| "note"
| "call"
| "conversation"
| "activity"
| "contactField"
| "conversationMessage"
| "journalEntry"
| "reminder";
returnAll?: boolean;
summary?: string;
tagId?: string;
tagsToAdd?: unknown[];
tagsToRemove?: unknown[];
taskId?: string;
title?: string;
updateFields?: | {
activity_type_id?: string;
contacts?: string;
description?: string;
happened_at?: string;
summary?: string;
}
| {
calledAt?: string;
contactId?: string;
content?: string;
}
| {
birthdate?: string;
deceased_date?: string;
first_name?: string;
gender_id?: string;
is_deceased?: boolean;
is_partial?: boolean;
last_name?: string;
nickname?: string;
}
| {
contact_id?: string;
content?: string;
written_at?: string;
written_by_me?: boolean;
}
| { post?: string; title?: string }
| {
body?: string;
contact_id?: string;
is_favorited?: boolean;
}
| {
contact_id?: string;
description?: string;
frequency_number?: number;
frequency_type?: | "week"
| "month"
| "year"
| "one_time";
initial_data?: string;
title?: string;
}
| {
completed?: boolean;
contactId?: string;
description?: string;
title?: string;
};
writtenAt?: string;
writtenByMe?: boolean;
}Properties§
readonly activity Id?: stringreadonly activity Type Id?: stringChoose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getActivityTypes"}
readonly additional Fields?:
| { description?: string }
| {
birthdate?: string;
deceasedDate?: string;
is_partial?: boolean;
isDeceased?: boolean;
last_name?: string;
nickname?: string;
}
| { isFavorited?: boolean }Default: {}
readonly body?: stringBody of the note - max 100,000 characters
readonly called At?: stringDate when the call happened
readonly call Id?: stringID of the call to delete
readonly contact Field Id?: stringID of the contactField to delete
readonly contact Field Type Id?: stringChoose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getContactFieldTypes"}
readonly contact Id?: stringID of the contact to associate the call with
readonly contacts?: stringComma-separated list of IDs of the contacts to associate the activity with
readonly content?: stringDescription of the call - max 100,000 characters
readonly conversation Id?: stringID of the conversation to delete
readonly data?: stringContent of the contact field - max 255 characters
readonly filters?: { ... }Default: {}
readonly first Name?: string§readonly frequency Number?: numberInterval for the reminder
readonly frequency Type?: "week" | "month" | "year" | "one_time"Type of frequency of the reminder Default: "one_time"
readonly gender Id?: stringChoose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getGenders"}
readonly happened At?: stringDate when the activity happened
readonly initial Date?: stringDate of the reminder
readonly journal Id?: stringID of the journal entry to delete
readonly limit?: numberMax number of results to return Default: 50 Type options: {"minValue":1}
readonly message Id?: stringID of the message to update
readonly name?: stringName of the tag - max 250 characters
readonly note Id?: stringID of the note to delete
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"Default: "create"
readonly post?: stringContent of the journal entry - max 100,000 characters
readonly reminder Id?: stringID of the reminder to delete
readonly resource?:
| "tag"
| "contact"
| "contactTag"
| "task"
| "note"
| "call"
| "conversation"
| "activity"
| "contactField"
| "conversationMessage"
| "journalEntry"
| "reminder"Default: "contact"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly summary?: stringBrief description of the activity - max 255 characters
readonly tag Id?: stringID of the tag to delete
Tags to add to the contact. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getTagsToAdd"}
Tags to remove from the contact. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getTagsToRemove"}
readonly task Id?: stringID of the task to delete
readonly title?: stringTitle of the journal entry - max 250 characters
readonly update Fields?:
| {
activity_type_id?: string;
contacts?: string;
description?: string;
happened_at?: string;
summary?: string;
}
| {
calledAt?: string;
contactId?: string;
content?: string;
}
| {
birthdate?: string;
deceased_date?: string;
first_name?: string;
gender_id?: string;
is_deceased?: boolean;
is_partial?: boolean;
last_name?: string;
nickname?: string;
}
| {
contact_id?: string;
content?: string;
written_at?: string;
written_by_me?: boolean;
}
| { post?: string; title?: string }
| {
body?: string;
contact_id?: string;
is_favorited?: boolean;
}
| {
contact_id?: string;
description?: string;
frequency_number?: number;
frequency_type?: | "week"
| "month"
| "year"
| "one_time";
initial_data?: string;
title?: string;
}
| {
completed?: boolean;
contactId?: string;
description?: string;
title?: string;
}Default: {}
readonly written At?: stringDate when the message was written
readonly written By Me?: booleanAuthor of the message Default: true
ID of the activity to delete