@trii/types 2.10.385 → 2.10.387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accounts/accounts.d.ts +88 -88
- package/dist/Accounts/accounts.js +21 -21
- package/dist/Accounts/device.d.ts +31 -31
- package/dist/Accounts/device.js +16 -16
- package/dist/Accounts/index.d.ts +2 -2
- package/dist/Accounts/index.js +2 -2
- package/dist/ApiResponses/index.d.ts +8 -8
- package/dist/ApiResponses/index.js +1 -1
- package/dist/AuditLogs/auditLog.d.ts +7 -7
- package/dist/AuditLogs/auditLog.js +1 -1
- package/dist/AuditLogs/auditLogType.d.ts +5 -5
- package/dist/AuditLogs/auditLogType.js +6 -6
- package/dist/AuditLogs/index.d.ts +2 -2
- package/dist/AuditLogs/index.js +2 -2
- package/dist/Calendar/Event.d.ts +63 -63
- package/dist/Calendar/Event.js +13 -13
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/Calls/Call.d.ts +55 -55
- package/dist/Calls/Call.js +22 -22
- package/dist/Calls/index.d.ts +1 -1
- package/dist/Calls/index.js +1 -1
- package/dist/Common/API/AuthApiKey.d.ts +5 -5
- package/dist/Common/API/AuthApiKey.js +1 -1
- package/dist/Common/API/AuthBasic.d.ts +4 -4
- package/dist/Common/API/AuthBasic.js +1 -1
- package/dist/Common/API/AuthBearer.d.ts +5 -5
- package/dist/Common/API/AuthBearer.js +1 -1
- package/dist/Common/API/AuthType.d.ts +6 -6
- package/dist/Common/API/AuthType.js +7 -7
- package/dist/Common/API/Method.d.ts +4 -4
- package/dist/Common/API/Method.js +5 -5
- package/dist/Common/API/index.d.ts +5 -5
- package/dist/Common/API/index.js +5 -5
- package/dist/Common/Channels/Channel.d.ts +47 -47
- package/dist/Common/Channels/Channel.js +1 -1
- package/dist/Common/Channels/ChannelType.d.ts +24 -24
- package/dist/Common/Channels/ChannelType.js +25 -25
- package/dist/Common/Channels/Email.d.ts +59 -59
- package/dist/Common/Channels/Email.js +30 -30
- package/dist/Common/Channels/Facebook.d.ts +23 -23
- package/dist/Common/Channels/Facebook.js +2 -2
- package/dist/Common/Channels/Form.d.ts +52 -52
- package/dist/Common/Channels/Form.js +25 -25
- package/dist/Common/Channels/GoogleBusiness.d.ts +20 -20
- package/dist/Common/Channels/GoogleBusiness.js +4 -4
- package/dist/Common/Channels/Instagram.d.ts +22 -22
- package/dist/Common/Channels/Instagram.js +2 -2
- package/dist/Common/Channels/MercadoLibre.d.ts +27 -27
- package/dist/Common/Channels/MercadoLibre.js +4 -4
- package/dist/Common/Channels/Pbx.d.ts +2 -2
- package/dist/Common/Channels/Pbx.js +2 -2
- package/dist/Common/Channels/Permission.d.ts +6 -6
- package/dist/Common/Channels/Permission.js +2 -2
- package/dist/Common/Channels/RCS.d.ts +33 -33
- package/dist/Common/Channels/RCS.js +4 -4
- package/dist/Common/Channels/Sip.d.ts +2 -2
- package/dist/Common/Channels/Sip.js +2 -2
- package/dist/Common/Channels/Sms.d.ts +42 -42
- package/dist/Common/Channels/Sms.js +12 -12
- package/dist/Common/Channels/WebChat.d.ts +60 -60
- package/dist/Common/Channels/WebChat.js +14 -14
- package/dist/Common/Channels/WhatsApp.d.ts +41 -41
- package/dist/Common/Channels/WhatsApp.js +10 -10
- package/dist/Common/Channels/index.d.ts +15 -15
- package/dist/Common/Channels/index.js +15 -15
- package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -10
- package/dist/Common/EventsQueue/EmailTemplate.js +1 -1
- package/dist/Common/EventsQueue/EventQueue.d.ts +12 -12
- package/dist/Common/EventsQueue/EventQueue.js +1 -1
- package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -8
- package/dist/Common/EventsQueue/UserUpdate.js +1 -1
- package/dist/Common/EventsQueue/index.d.ts +3 -3
- package/dist/Common/EventsQueue/index.js +3 -3
- package/dist/Common/Logs/Log.d.ts +18 -18
- package/dist/Common/Logs/Log.js +10 -10
- package/dist/Common/Logs/index.d.ts +1 -1
- package/dist/Common/Logs/index.js +1 -1
- package/dist/Common/Messages/MediaFile.d.ts +5 -5
- package/dist/Common/Messages/MediaFile.js +1 -1
- package/dist/Common/Messages/Message.d.ts +359 -359
- package/dist/Common/Messages/Message.js +53 -53
- package/dist/Common/Messages/Template.d.ts +62 -62
- package/dist/Common/Messages/Template.js +20 -20
- package/dist/Common/Messages/index.d.ts +3 -3
- package/dist/Common/Messages/index.js +3 -3
- package/dist/Common/Notifications/Notification.d.ts +19 -19
- package/dist/Common/Notifications/Notification.js +7 -7
- package/dist/Common/Notifications/UserNotificationsConfig.d.ts +30 -30
- package/dist/Common/Notifications/UserNotificationsConfig.js +8 -8
- package/dist/Common/Notifications/index.d.ts +2 -2
- package/dist/Common/Notifications/index.js +2 -2
- package/dist/Common/Schedules/Schedules.d.ts +32 -32
- package/dist/Common/Schedules/Schedules.js +1 -1
- package/dist/Common/Schedules/index.d.ts +1 -1
- package/dist/Common/Schedules/index.js +1 -1
- package/dist/Common/index.d.ts +6 -6
- package/dist/Common/index.js +12 -12
- package/dist/Contacts/File.d.ts +17 -17
- package/dist/Contacts/File.js +1 -1
- package/dist/Contacts/Label.d.ts +9 -9
- package/dist/Contacts/Label.js +1 -1
- package/dist/Contacts/Note.d.ts +15 -15
- package/dist/Contacts/Note.js +1 -1
- package/dist/Contacts/contacts.d.ts +240 -240
- package/dist/Contacts/contacts.js +39 -39
- package/dist/Contacts/index.d.ts +5 -5
- package/dist/Contacts/index.js +5 -5
- package/dist/Contacts/segments.d.ts +51 -51
- package/dist/Contacts/segments.js +49 -49
- package/dist/Conversations/Conversation.d.ts +92 -92
- package/dist/Conversations/Conversation.js +44 -44
- package/dist/Conversations/DashBoard/dashboard.d.ts +84 -84
- package/dist/Conversations/DashBoard/dashboard.js +45 -45
- package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -5
- package/dist/Conversations/DashBoard/dashboardChannels.js +2 -2
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +14 -14
- package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -13
- package/dist/Conversations/DashBoard/dashboardMessages.js +4 -4
- package/dist/Conversations/Ending.d.ts +11 -11
- package/dist/Conversations/Ending.js +1 -1
- package/dist/Conversations/Flows/Flow.d.ts +104 -104
- package/dist/Conversations/Flows/Flow.js +36 -36
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -20
- package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -21
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -16
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -8
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -12
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -7
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -6
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -15
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -11
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -12
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -4
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -22
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -9
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +47 -47
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -27
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +45 -45
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -31
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -7
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -9
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -14
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -8
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -32
- package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -184
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -6
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -9
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -2
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -6
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -2
- package/dist/Conversations/Flows/Nodes/index.d.ts +18 -18
- package/dist/Conversations/Flows/Nodes/index.js +18 -18
- package/dist/Conversations/Flows/index.d.ts +2 -2
- package/dist/Conversations/Flows/index.js +3 -3
- package/dist/Conversations/Groups/Group.d.ts +23 -23
- package/dist/Conversations/Groups/Group.js +6 -6
- package/dist/Conversations/Label.d.ts +10 -10
- package/dist/Conversations/Label.js +1 -1
- package/dist/Conversations/QuickResponse.d.ts +34 -34
- package/dist/Conversations/QuickResponse.js +1 -1
- package/dist/Conversations/SocialWalls.d.ts +55 -54
- package/dist/Conversations/SocialWalls.js +1 -1
- package/dist/Conversations/WebHook.d.ts +22 -22
- package/dist/Conversations/WebHook.js +1 -1
- package/dist/Conversations/index.d.ts +12 -12
- package/dist/Conversations/index.js +14 -14
- package/dist/Marketing/Campaign.d.ts +50 -50
- package/dist/Marketing/Campaign.js +25 -25
- package/dist/Marketing/Dashboard.d.ts +48 -48
- package/dist/Marketing/Dashboard.js +1 -1
- package/dist/Marketing/index.d.ts +2 -2
- package/dist/Marketing/index.js +2 -2
- package/dist/PublicAPI/apiKey.d.ts +12 -12
- package/dist/PublicAPI/apiKey.js +1 -1
- package/dist/Security/Security.d.ts +5 -5
- package/dist/Security/Security.js +1 -1
- package/dist/Security/index.d.ts +1 -1
- package/dist/Security/index.js +1 -1
- package/dist/Spaces/Dashboard.d.ts +4 -4
- package/dist/Spaces/Dashboard.js +1 -1
- package/dist/Spaces/index.d.ts +2 -2
- package/dist/Spaces/index.js +2 -2
- package/dist/Spaces/spaces.d.ts +92 -92
- package/dist/Spaces/spaces.js +77 -77
- package/dist/Tickets/AccessLevel.d.ts +5 -5
- package/dist/Tickets/AccessLevel.js +6 -6
- package/dist/Tickets/index.d.ts +1 -1
- package/dist/Tickets/index.js +1 -1
- package/dist/Users/UserActivitySummary.d.ts +5 -5
- package/dist/Users/UserActivitySummary.js +1 -1
- package/dist/Users/UserProfile.d.ts +105 -105
- package/dist/Users/UserProfile.js +78 -78
- package/dist/Users/UserTrii.d.ts +94 -94
- package/dist/Users/UserTrii.js +15 -15
- package/dist/Users/UserType.d.ts +10 -10
- package/dist/Users/UserType.js +11 -11
- package/dist/Users/index.d.ts +4 -4
- package/dist/Users/index.js +4 -4
- package/dist/index.d.ts +14 -14
- package/dist/index.js +28 -28
- package/package.json +5 -2
- package/dist/Campaigns/Campaign.d.ts +0 -40
- package/dist/Campaigns/Campaign.js +0 -18
- package/dist/Campaigns/index.d.ts +0 -1
- package/dist/Campaigns/index.js +0 -1
|
@@ -1,240 +1,240 @@
|
|
|
1
|
-
import { Common } from "../index";
|
|
2
|
-
export interface IContactInfo {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
imageUrl?: string;
|
|
6
|
-
isBusiness: boolean | false;
|
|
7
|
-
phone?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
contactAddresses: IContactAddress[];
|
|
10
|
-
businessName?: string;
|
|
11
|
-
businessId?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IBusiness {
|
|
14
|
-
id: string;
|
|
15
|
-
spaceId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
imageUrl: string;
|
|
18
|
-
owner?: string;
|
|
19
|
-
membersId: string[];
|
|
20
|
-
members: IContactInfo[];
|
|
21
|
-
phone: string;
|
|
22
|
-
phones: IContactAddress[];
|
|
23
|
-
email: string;
|
|
24
|
-
emails: IContactAddress[];
|
|
25
|
-
ims_instagram: IContactAddress[];
|
|
26
|
-
ims_facebook: IContactAddress[];
|
|
27
|
-
ims_webchat: IContactAddress[];
|
|
28
|
-
ims_whatsapp: IContactAddress[];
|
|
29
|
-
ims_mercadolibre: IContactAddress[];
|
|
30
|
-
ims_rcs: IContactAddress[];
|
|
31
|
-
address1: IContactPostalAddress;
|
|
32
|
-
address2: IContactPostalAddress;
|
|
33
|
-
tags: IContactTag[];
|
|
34
|
-
properties: Property[];
|
|
35
|
-
hasDuplicates: boolean | false;
|
|
36
|
-
duplicateIds: string[];
|
|
37
|
-
createdAt?: Date | null;
|
|
38
|
-
createdBy?: string | null;
|
|
39
|
-
updatedAt?: Date | null;
|
|
40
|
-
updatedBy?: string | null;
|
|
41
|
-
deletedAt?: Date | null;
|
|
42
|
-
deletedBy?: string | null;
|
|
43
|
-
}
|
|
44
|
-
export interface ICounters {
|
|
45
|
-
conversations: number;
|
|
46
|
-
documents: number;
|
|
47
|
-
events: number;
|
|
48
|
-
notes: number;
|
|
49
|
-
}
|
|
50
|
-
export interface IContact {
|
|
51
|
-
id: string;
|
|
52
|
-
spaceId: string;
|
|
53
|
-
counters?: ICounters;
|
|
54
|
-
name: string;
|
|
55
|
-
firstName: string;
|
|
56
|
-
lastName: string;
|
|
57
|
-
imageUrl: string;
|
|
58
|
-
birthDate?: Date | null;
|
|
59
|
-
owner?: string;
|
|
60
|
-
listId?: string | '';
|
|
61
|
-
businessId?: string;
|
|
62
|
-
businessName?: string;
|
|
63
|
-
phone: string;
|
|
64
|
-
phones: IContactAddress[];
|
|
65
|
-
email: string;
|
|
66
|
-
emails: IContactAddress[];
|
|
67
|
-
ims_instagram: IContactAddress[];
|
|
68
|
-
ims_facebook: IContactAddress[];
|
|
69
|
-
ims_webchat: IContactAddress[];
|
|
70
|
-
ims_whatsapp: IContactAddress[];
|
|
71
|
-
ims_mercadolibre: IContactAddress[];
|
|
72
|
-
ims_rcs: IContactAddress[];
|
|
73
|
-
address1: IContactPostalAddress;
|
|
74
|
-
address2: IContactPostalAddress;
|
|
75
|
-
tags: IContactTag[];
|
|
76
|
-
properties: Property[];
|
|
77
|
-
hasDuplicates: boolean | false;
|
|
78
|
-
duplicateIds: string[];
|
|
79
|
-
isSpam: boolean;
|
|
80
|
-
fechaUltMsg?: Date;
|
|
81
|
-
origin: ContactOrigin;
|
|
82
|
-
createdAt?: Date | null;
|
|
83
|
-
createdBy?: string | null;
|
|
84
|
-
updatedAt?: Date | null;
|
|
85
|
-
updatedBy?: string | null;
|
|
86
|
-
deletedAt?: Date | null;
|
|
87
|
-
deletedBy?: string | null;
|
|
88
|
-
}
|
|
89
|
-
export interface Property {
|
|
90
|
-
nameKey: string;
|
|
91
|
-
type: ContactField_type;
|
|
92
|
-
value: any;
|
|
93
|
-
}
|
|
94
|
-
export declare enum ContactOrigin {
|
|
95
|
-
MANUAL = 0,
|
|
96
|
-
IMPORT = 1,
|
|
97
|
-
CALL = 2,
|
|
98
|
-
TICKET = 3,
|
|
99
|
-
FORM = 4
|
|
100
|
-
}
|
|
101
|
-
export interface IContactPostalAddress {
|
|
102
|
-
street: string;
|
|
103
|
-
city: string;
|
|
104
|
-
state: string;
|
|
105
|
-
zipcode: string;
|
|
106
|
-
country: string;
|
|
107
|
-
}
|
|
108
|
-
export interface IContactField {
|
|
109
|
-
id: string;
|
|
110
|
-
name: string;
|
|
111
|
-
nameKey: string;
|
|
112
|
-
type: ContactField_type;
|
|
113
|
-
typeNumberDecimalsCount: number | 0;
|
|
114
|
-
typeOptions: string[];
|
|
115
|
-
order: number;
|
|
116
|
-
forContact: boolean;
|
|
117
|
-
forBusiness: boolean;
|
|
118
|
-
isDefault: boolean;
|
|
119
|
-
isSearchKey: boolean;
|
|
120
|
-
isImportKey: boolean;
|
|
121
|
-
readOnly: boolean;
|
|
122
|
-
hide: boolean;
|
|
123
|
-
useMask: boolean;
|
|
124
|
-
createdAt?: string | null;
|
|
125
|
-
createdBy?: string | null;
|
|
126
|
-
deleted: boolean;
|
|
127
|
-
deletedAt?: string | null;
|
|
128
|
-
}
|
|
129
|
-
export declare enum ContactField_type {
|
|
130
|
-
TEXT = 0,
|
|
131
|
-
LONGTEXT = 1,
|
|
132
|
-
CURRENCY = 3,
|
|
133
|
-
OPTIONS = 4,
|
|
134
|
-
TIME = 5,
|
|
135
|
-
DATE = 6,
|
|
136
|
-
TIMERANGE = 7,
|
|
137
|
-
DATERANGE = 8,
|
|
138
|
-
ADDRESS = 11,
|
|
139
|
-
NUMBER_INTEGER = 21,
|
|
140
|
-
NUMBER_DECIMAL = 22,
|
|
141
|
-
NUMBER_CURRENCY = 23,
|
|
142
|
-
NUMBER_ACCOUNTING = 24
|
|
143
|
-
}
|
|
144
|
-
export interface IContactAddress {
|
|
145
|
-
id: string;
|
|
146
|
-
channelType: Common.Channels.ChannelType;
|
|
147
|
-
channelId?: string;
|
|
148
|
-
address: string;
|
|
149
|
-
profileName: string;
|
|
150
|
-
profileUrl: string;
|
|
151
|
-
telInfo?: IContactTelInfo;
|
|
152
|
-
note: string;
|
|
153
|
-
isVerified: boolean;
|
|
154
|
-
isFavorite: boolean;
|
|
155
|
-
dateLastMsgIn?: Date;
|
|
156
|
-
dateLastMsgOut?: Date;
|
|
157
|
-
subscriptionsAllowed: string[];
|
|
158
|
-
subscriptionsRejected: string[];
|
|
159
|
-
createdAt: Date;
|
|
160
|
-
verifiedAt?: Date;
|
|
161
|
-
verifiedBy?: string;
|
|
162
|
-
}
|
|
163
|
-
export interface IContactTelInfo {
|
|
164
|
-
isMobile: boolean;
|
|
165
|
-
country: string;
|
|
166
|
-
countryName: string;
|
|
167
|
-
state: string;
|
|
168
|
-
stateName: string;
|
|
169
|
-
}
|
|
170
|
-
interface IContactTag {
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
}
|
|
174
|
-
export interface ISubscription {
|
|
175
|
-
id: string;
|
|
176
|
-
spaceId: string;
|
|
177
|
-
name: string;
|
|
178
|
-
description: string;
|
|
179
|
-
createdAt: Date;
|
|
180
|
-
updatedAt?: Date;
|
|
181
|
-
deletedAt?: Date;
|
|
182
|
-
}
|
|
183
|
-
export interface IIntegrationButton {
|
|
184
|
-
id: number;
|
|
185
|
-
name: string;
|
|
186
|
-
enabled: boolean;
|
|
187
|
-
icon_class: string;
|
|
188
|
-
icon_color: string;
|
|
189
|
-
api_method: IntegrationButton_method;
|
|
190
|
-
api_url: string;
|
|
191
|
-
api_AuthType: string;
|
|
192
|
-
api_Auth_username: string;
|
|
193
|
-
api_Auth_password: string;
|
|
194
|
-
api_Auth_token: string;
|
|
195
|
-
api_Auth_token_url: string;
|
|
196
|
-
api_Auth_token_body: string;
|
|
197
|
-
api_Auth_APIkey_Key: string;
|
|
198
|
-
api_Auth_APIkey_Value: string;
|
|
199
|
-
api_Auth_APIkey_Addto: string;
|
|
200
|
-
api_contenttype: string;
|
|
201
|
-
api_body: string;
|
|
202
|
-
api_formatosalida: IntegrationButton_format;
|
|
203
|
-
api_Template: string;
|
|
204
|
-
}
|
|
205
|
-
export declare enum IntegrationButton_method {
|
|
206
|
-
GET = 1,
|
|
207
|
-
POST = 2
|
|
208
|
-
}
|
|
209
|
-
export declare enum IntegrationButton_format {
|
|
210
|
-
JSON = 1,
|
|
211
|
-
HTML = 2,
|
|
212
|
-
HTML_newtab = 3
|
|
213
|
-
}
|
|
214
|
-
export declare class GooglePeopleIntegration {
|
|
215
|
-
googleAccount: GoogleAccountInfo;
|
|
216
|
-
autoUpdate: boolean;
|
|
217
|
-
updateBy: string;
|
|
218
|
-
updateAt: Date;
|
|
219
|
-
}
|
|
220
|
-
export declare class GoogleAccountInfo {
|
|
221
|
-
name: string;
|
|
222
|
-
email: string;
|
|
223
|
-
imageUrl: string;
|
|
224
|
-
}
|
|
225
|
-
export interface IList {
|
|
226
|
-
id: string;
|
|
227
|
-
name: string;
|
|
228
|
-
description: string;
|
|
229
|
-
count: number;
|
|
230
|
-
createdAt: Date;
|
|
231
|
-
}
|
|
232
|
-
export interface IContactChangeLog {
|
|
233
|
-
timeStamp: Date;
|
|
234
|
-
type: string;
|
|
235
|
-
action: ContactLogAction;
|
|
236
|
-
details: string;
|
|
237
|
-
userId: string;
|
|
238
|
-
}
|
|
239
|
-
export
|
|
240
|
-
export {};
|
|
1
|
+
import { Common } from "../index";
|
|
2
|
+
export interface IContactInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
isBusiness: boolean | false;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
contactAddresses: IContactAddress[];
|
|
10
|
+
businessName?: string;
|
|
11
|
+
businessId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IBusiness {
|
|
14
|
+
id: string;
|
|
15
|
+
spaceId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
owner?: string;
|
|
19
|
+
membersId: string[];
|
|
20
|
+
members: IContactInfo[];
|
|
21
|
+
phone: string;
|
|
22
|
+
phones: IContactAddress[];
|
|
23
|
+
email: string;
|
|
24
|
+
emails: IContactAddress[];
|
|
25
|
+
ims_instagram: IContactAddress[];
|
|
26
|
+
ims_facebook: IContactAddress[];
|
|
27
|
+
ims_webchat: IContactAddress[];
|
|
28
|
+
ims_whatsapp: IContactAddress[];
|
|
29
|
+
ims_mercadolibre: IContactAddress[];
|
|
30
|
+
ims_rcs: IContactAddress[];
|
|
31
|
+
address1: IContactPostalAddress;
|
|
32
|
+
address2: IContactPostalAddress;
|
|
33
|
+
tags: IContactTag[];
|
|
34
|
+
properties: Property[];
|
|
35
|
+
hasDuplicates: boolean | false;
|
|
36
|
+
duplicateIds: string[];
|
|
37
|
+
createdAt?: Date | null;
|
|
38
|
+
createdBy?: string | null;
|
|
39
|
+
updatedAt?: Date | null;
|
|
40
|
+
updatedBy?: string | null;
|
|
41
|
+
deletedAt?: Date | null;
|
|
42
|
+
deletedBy?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface ICounters {
|
|
45
|
+
conversations: number;
|
|
46
|
+
documents: number;
|
|
47
|
+
events: number;
|
|
48
|
+
notes: number;
|
|
49
|
+
}
|
|
50
|
+
export interface IContact {
|
|
51
|
+
id: string;
|
|
52
|
+
spaceId: string;
|
|
53
|
+
counters?: ICounters;
|
|
54
|
+
name: string;
|
|
55
|
+
firstName: string;
|
|
56
|
+
lastName: string;
|
|
57
|
+
imageUrl: string;
|
|
58
|
+
birthDate?: Date | null;
|
|
59
|
+
owner?: string;
|
|
60
|
+
listId?: string | '';
|
|
61
|
+
businessId?: string;
|
|
62
|
+
businessName?: string;
|
|
63
|
+
phone: string;
|
|
64
|
+
phones: IContactAddress[];
|
|
65
|
+
email: string;
|
|
66
|
+
emails: IContactAddress[];
|
|
67
|
+
ims_instagram: IContactAddress[];
|
|
68
|
+
ims_facebook: IContactAddress[];
|
|
69
|
+
ims_webchat: IContactAddress[];
|
|
70
|
+
ims_whatsapp: IContactAddress[];
|
|
71
|
+
ims_mercadolibre: IContactAddress[];
|
|
72
|
+
ims_rcs: IContactAddress[];
|
|
73
|
+
address1: IContactPostalAddress;
|
|
74
|
+
address2: IContactPostalAddress;
|
|
75
|
+
tags: IContactTag[];
|
|
76
|
+
properties: Property[];
|
|
77
|
+
hasDuplicates: boolean | false;
|
|
78
|
+
duplicateIds: string[];
|
|
79
|
+
isSpam: boolean;
|
|
80
|
+
fechaUltMsg?: Date;
|
|
81
|
+
origin: ContactOrigin;
|
|
82
|
+
createdAt?: Date | null;
|
|
83
|
+
createdBy?: string | null;
|
|
84
|
+
updatedAt?: Date | null;
|
|
85
|
+
updatedBy?: string | null;
|
|
86
|
+
deletedAt?: Date | null;
|
|
87
|
+
deletedBy?: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface Property {
|
|
90
|
+
nameKey: string;
|
|
91
|
+
type: ContactField_type;
|
|
92
|
+
value: any;
|
|
93
|
+
}
|
|
94
|
+
export declare enum ContactOrigin {
|
|
95
|
+
MANUAL = 0,
|
|
96
|
+
IMPORT = 1,
|
|
97
|
+
CALL = 2,
|
|
98
|
+
TICKET = 3,
|
|
99
|
+
FORM = 4
|
|
100
|
+
}
|
|
101
|
+
export interface IContactPostalAddress {
|
|
102
|
+
street: string;
|
|
103
|
+
city: string;
|
|
104
|
+
state: string;
|
|
105
|
+
zipcode: string;
|
|
106
|
+
country: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IContactField {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
nameKey: string;
|
|
112
|
+
type: ContactField_type;
|
|
113
|
+
typeNumberDecimalsCount: number | 0;
|
|
114
|
+
typeOptions: string[];
|
|
115
|
+
order: number;
|
|
116
|
+
forContact: boolean;
|
|
117
|
+
forBusiness: boolean;
|
|
118
|
+
isDefault: boolean;
|
|
119
|
+
isSearchKey: boolean;
|
|
120
|
+
isImportKey: boolean;
|
|
121
|
+
readOnly: boolean;
|
|
122
|
+
hide: boolean;
|
|
123
|
+
useMask: boolean;
|
|
124
|
+
createdAt?: string | null;
|
|
125
|
+
createdBy?: string | null;
|
|
126
|
+
deleted: boolean;
|
|
127
|
+
deletedAt?: string | null;
|
|
128
|
+
}
|
|
129
|
+
export declare enum ContactField_type {
|
|
130
|
+
TEXT = 0,
|
|
131
|
+
LONGTEXT = 1,
|
|
132
|
+
CURRENCY = 3,
|
|
133
|
+
OPTIONS = 4,
|
|
134
|
+
TIME = 5,
|
|
135
|
+
DATE = 6,
|
|
136
|
+
TIMERANGE = 7,
|
|
137
|
+
DATERANGE = 8,
|
|
138
|
+
ADDRESS = 11,
|
|
139
|
+
NUMBER_INTEGER = 21,
|
|
140
|
+
NUMBER_DECIMAL = 22,
|
|
141
|
+
NUMBER_CURRENCY = 23,
|
|
142
|
+
NUMBER_ACCOUNTING = 24
|
|
143
|
+
}
|
|
144
|
+
export interface IContactAddress {
|
|
145
|
+
id: string;
|
|
146
|
+
channelType: Common.Channels.ChannelType;
|
|
147
|
+
channelId?: string;
|
|
148
|
+
address: string;
|
|
149
|
+
profileName: string;
|
|
150
|
+
profileUrl: string;
|
|
151
|
+
telInfo?: IContactTelInfo;
|
|
152
|
+
note: string;
|
|
153
|
+
isVerified: boolean;
|
|
154
|
+
isFavorite: boolean;
|
|
155
|
+
dateLastMsgIn?: Date;
|
|
156
|
+
dateLastMsgOut?: Date;
|
|
157
|
+
subscriptionsAllowed: string[];
|
|
158
|
+
subscriptionsRejected: string[];
|
|
159
|
+
createdAt: Date;
|
|
160
|
+
verifiedAt?: Date;
|
|
161
|
+
verifiedBy?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface IContactTelInfo {
|
|
164
|
+
isMobile: boolean;
|
|
165
|
+
country: string;
|
|
166
|
+
countryName: string;
|
|
167
|
+
state: string;
|
|
168
|
+
stateName: string;
|
|
169
|
+
}
|
|
170
|
+
interface IContactTag {
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ISubscription {
|
|
175
|
+
id: string;
|
|
176
|
+
spaceId: string;
|
|
177
|
+
name: string;
|
|
178
|
+
description: string;
|
|
179
|
+
createdAt: Date;
|
|
180
|
+
updatedAt?: Date;
|
|
181
|
+
deletedAt?: Date;
|
|
182
|
+
}
|
|
183
|
+
export interface IIntegrationButton {
|
|
184
|
+
id: number;
|
|
185
|
+
name: string;
|
|
186
|
+
enabled: boolean;
|
|
187
|
+
icon_class: string;
|
|
188
|
+
icon_color: string;
|
|
189
|
+
api_method: IntegrationButton_method;
|
|
190
|
+
api_url: string;
|
|
191
|
+
api_AuthType: string;
|
|
192
|
+
api_Auth_username: string;
|
|
193
|
+
api_Auth_password: string;
|
|
194
|
+
api_Auth_token: string;
|
|
195
|
+
api_Auth_token_url: string;
|
|
196
|
+
api_Auth_token_body: string;
|
|
197
|
+
api_Auth_APIkey_Key: string;
|
|
198
|
+
api_Auth_APIkey_Value: string;
|
|
199
|
+
api_Auth_APIkey_Addto: string;
|
|
200
|
+
api_contenttype: string;
|
|
201
|
+
api_body: string;
|
|
202
|
+
api_formatosalida: IntegrationButton_format;
|
|
203
|
+
api_Template: string;
|
|
204
|
+
}
|
|
205
|
+
export declare enum IntegrationButton_method {
|
|
206
|
+
GET = 1,
|
|
207
|
+
POST = 2
|
|
208
|
+
}
|
|
209
|
+
export declare enum IntegrationButton_format {
|
|
210
|
+
JSON = 1,
|
|
211
|
+
HTML = 2,
|
|
212
|
+
HTML_newtab = 3
|
|
213
|
+
}
|
|
214
|
+
export declare class GooglePeopleIntegration {
|
|
215
|
+
googleAccount: GoogleAccountInfo;
|
|
216
|
+
autoUpdate: boolean;
|
|
217
|
+
updateBy: string;
|
|
218
|
+
updateAt: Date;
|
|
219
|
+
}
|
|
220
|
+
export declare class GoogleAccountInfo {
|
|
221
|
+
name: string;
|
|
222
|
+
email: string;
|
|
223
|
+
imageUrl: string;
|
|
224
|
+
}
|
|
225
|
+
export interface IList {
|
|
226
|
+
id: string;
|
|
227
|
+
name: string;
|
|
228
|
+
description: string;
|
|
229
|
+
count: number;
|
|
230
|
+
createdAt: Date;
|
|
231
|
+
}
|
|
232
|
+
export interface IContactChangeLog {
|
|
233
|
+
timeStamp: Date;
|
|
234
|
+
type: string;
|
|
235
|
+
action: ContactLogAction;
|
|
236
|
+
details: string;
|
|
237
|
+
userId: string;
|
|
238
|
+
}
|
|
239
|
+
export type ContactLogAction = 'update' | 'create' | 'import' | 'join' | 'delete';
|
|
240
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export var ContactOrigin;
|
|
2
|
-
(function (ContactOrigin) {
|
|
3
|
-
ContactOrigin[ContactOrigin["MANUAL"] = 0] = "MANUAL";
|
|
4
|
-
ContactOrigin[ContactOrigin["IMPORT"] = 1] = "IMPORT";
|
|
5
|
-
ContactOrigin[ContactOrigin["CALL"] = 2] = "CALL";
|
|
6
|
-
ContactOrigin[ContactOrigin["TICKET"] = 3] = "TICKET";
|
|
7
|
-
ContactOrigin[ContactOrigin["FORM"] = 4] = "FORM";
|
|
8
|
-
})(ContactOrigin || (ContactOrigin = {}));
|
|
9
|
-
export var ContactField_type;
|
|
10
|
-
(function (ContactField_type) {
|
|
11
|
-
ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
|
|
12
|
-
ContactField_type[ContactField_type["LONGTEXT"] = 1] = "LONGTEXT";
|
|
13
|
-
ContactField_type[ContactField_type["CURRENCY"] = 3] = "CURRENCY";
|
|
14
|
-
ContactField_type[ContactField_type["OPTIONS"] = 4] = "OPTIONS";
|
|
15
|
-
ContactField_type[ContactField_type["TIME"] = 5] = "TIME";
|
|
16
|
-
ContactField_type[ContactField_type["DATE"] = 6] = "DATE";
|
|
17
|
-
ContactField_type[ContactField_type["TIMERANGE"] = 7] = "TIMERANGE";
|
|
18
|
-
ContactField_type[ContactField_type["DATERANGE"] = 8] = "DATERANGE";
|
|
19
|
-
ContactField_type[ContactField_type["ADDRESS"] = 11] = "ADDRESS";
|
|
20
|
-
ContactField_type[ContactField_type["NUMBER_INTEGER"] = 21] = "NUMBER_INTEGER";
|
|
21
|
-
ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
|
|
22
|
-
ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
23
|
-
ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
|
|
24
|
-
})(ContactField_type || (ContactField_type = {}));
|
|
25
|
-
export var IntegrationButton_method;
|
|
26
|
-
(function (IntegrationButton_method) {
|
|
27
|
-
IntegrationButton_method[IntegrationButton_method["GET"] = 1] = "GET";
|
|
28
|
-
IntegrationButton_method[IntegrationButton_method["POST"] = 2] = "POST";
|
|
29
|
-
})(IntegrationButton_method || (IntegrationButton_method = {}));
|
|
30
|
-
export var IntegrationButton_format;
|
|
31
|
-
(function (IntegrationButton_format) {
|
|
32
|
-
IntegrationButton_format[IntegrationButton_format["JSON"] = 1] = "JSON";
|
|
33
|
-
IntegrationButton_format[IntegrationButton_format["HTML"] = 2] = "HTML";
|
|
34
|
-
IntegrationButton_format[IntegrationButton_format["HTML_newtab"] = 3] = "HTML_newtab";
|
|
35
|
-
})(IntegrationButton_format || (IntegrationButton_format = {}));
|
|
36
|
-
export class GooglePeopleIntegration {
|
|
37
|
-
}
|
|
38
|
-
export class GoogleAccountInfo {
|
|
39
|
-
}
|
|
1
|
+
export var ContactOrigin;
|
|
2
|
+
(function (ContactOrigin) {
|
|
3
|
+
ContactOrigin[ContactOrigin["MANUAL"] = 0] = "MANUAL";
|
|
4
|
+
ContactOrigin[ContactOrigin["IMPORT"] = 1] = "IMPORT";
|
|
5
|
+
ContactOrigin[ContactOrigin["CALL"] = 2] = "CALL";
|
|
6
|
+
ContactOrigin[ContactOrigin["TICKET"] = 3] = "TICKET";
|
|
7
|
+
ContactOrigin[ContactOrigin["FORM"] = 4] = "FORM";
|
|
8
|
+
})(ContactOrigin || (ContactOrigin = {}));
|
|
9
|
+
export var ContactField_type;
|
|
10
|
+
(function (ContactField_type) {
|
|
11
|
+
ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
|
|
12
|
+
ContactField_type[ContactField_type["LONGTEXT"] = 1] = "LONGTEXT";
|
|
13
|
+
ContactField_type[ContactField_type["CURRENCY"] = 3] = "CURRENCY";
|
|
14
|
+
ContactField_type[ContactField_type["OPTIONS"] = 4] = "OPTIONS";
|
|
15
|
+
ContactField_type[ContactField_type["TIME"] = 5] = "TIME";
|
|
16
|
+
ContactField_type[ContactField_type["DATE"] = 6] = "DATE";
|
|
17
|
+
ContactField_type[ContactField_type["TIMERANGE"] = 7] = "TIMERANGE";
|
|
18
|
+
ContactField_type[ContactField_type["DATERANGE"] = 8] = "DATERANGE";
|
|
19
|
+
ContactField_type[ContactField_type["ADDRESS"] = 11] = "ADDRESS";
|
|
20
|
+
ContactField_type[ContactField_type["NUMBER_INTEGER"] = 21] = "NUMBER_INTEGER";
|
|
21
|
+
ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
|
|
22
|
+
ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
23
|
+
ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
|
|
24
|
+
})(ContactField_type || (ContactField_type = {}));
|
|
25
|
+
export var IntegrationButton_method;
|
|
26
|
+
(function (IntegrationButton_method) {
|
|
27
|
+
IntegrationButton_method[IntegrationButton_method["GET"] = 1] = "GET";
|
|
28
|
+
IntegrationButton_method[IntegrationButton_method["POST"] = 2] = "POST";
|
|
29
|
+
})(IntegrationButton_method || (IntegrationButton_method = {}));
|
|
30
|
+
export var IntegrationButton_format;
|
|
31
|
+
(function (IntegrationButton_format) {
|
|
32
|
+
IntegrationButton_format[IntegrationButton_format["JSON"] = 1] = "JSON";
|
|
33
|
+
IntegrationButton_format[IntegrationButton_format["HTML"] = 2] = "HTML";
|
|
34
|
+
IntegrationButton_format[IntegrationButton_format["HTML_newtab"] = 3] = "HTML_newtab";
|
|
35
|
+
})(IntegrationButton_format || (IntegrationButton_format = {}));
|
|
36
|
+
export class GooglePeopleIntegration {
|
|
37
|
+
}
|
|
38
|
+
export class GoogleAccountInfo {
|
|
39
|
+
}
|
package/dist/Contacts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './contacts';
|
|
2
|
-
export * from './segments';
|
|
3
|
-
export * from './Label';
|
|
4
|
-
export * from './Note';
|
|
5
|
-
export * from './File';
|
|
1
|
+
export * from './contacts';
|
|
2
|
+
export * from './segments';
|
|
3
|
+
export * from './Label';
|
|
4
|
+
export * from './Note';
|
|
5
|
+
export * from './File';
|
package/dist/Contacts/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './contacts';
|
|
2
|
-
export * from './segments';
|
|
3
|
-
export * from './Label';
|
|
4
|
-
export * from './Note';
|
|
5
|
-
export * from './File';
|
|
1
|
+
export * from './contacts';
|
|
2
|
+
export * from './segments';
|
|
3
|
+
export * from './Label';
|
|
4
|
+
export * from './Note';
|
|
5
|
+
export * from './File';
|