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"
| "activity"
| "note"
| "call"
| "conversation"
| "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§
Source§readonly activity Type Id?: string
readonly activity Type Id?: string
Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getActivityTypes"}
Source§readonly additional Fields?:
| { description?: string }
| {
birthdate?: string;
deceasedDate?: string;
is_partial?: boolean;
isDeceased?: boolean;
last_name?: string;
nickname?: string;
}
| { isFavorited?: boolean }
readonly additional Fields?:
| { description?: string }
| {
birthdate?: string;
deceasedDate?: string;
is_partial?: boolean;
isDeceased?: boolean;
last_name?: string;
nickname?: string;
}
| { isFavorited?: boolean }
Default: {}
Source§readonly contact Field Type Id?: string
readonly contact Field Type Id?: string
Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getContactFieldTypes"}
Source§readonly contacts?: string
readonly contacts?: string
Comma-separated list of IDs of the contacts to associate the activity with
Source§readonly filters?: {
query?: string;
sort?:
| "updated_at"
| "created_at"
| "-created_at"
| "-updated_at";
}
readonly filters?: {
query?: string;
sort?:
| "updated_at"
| "created_at"
| "-created_at"
| "-updated_at";
}
Default: {}
Source§readonly frequency Type?: "week" | "month" | "year" | "one_time"
readonly frequency Type?: "week" | "month" | "year" | "one_time"
Type of frequency of the reminder Default: "one_time"
Source§readonly gender Id?: string
readonly gender Id?: string
Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getGenders"}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 50 Type options: {"minValue":1}
Source§readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
Default: "create"
Source§readonly resource?:
| "tag"
| "contact"
| "contactTag"
| "task"
| "activity"
| "note"
| "call"
| "conversation"
| "contactField"
| "conversationMessage"
| "journalEntry"
| "reminder"
readonly resource?:
| "tag"
| "contact"
| "contactTag"
| "task"
| "activity"
| "note"
| "call"
| "conversation"
| "contactField"
| "conversationMessage"
| "journalEntry"
| "reminder"
Default: "contact"
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"}
Source§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;
}
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: {}
ID of the activity to delete