@trii/types 2.10.386 → 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.
Files changed (215) hide show
  1. package/dist/Accounts/accounts.d.ts +88 -88
  2. package/dist/Accounts/accounts.js +21 -21
  3. package/dist/Accounts/device.d.ts +31 -31
  4. package/dist/Accounts/device.js +16 -16
  5. package/dist/Accounts/index.d.ts +2 -2
  6. package/dist/Accounts/index.js +2 -2
  7. package/dist/ApiResponses/index.d.ts +8 -8
  8. package/dist/ApiResponses/index.js +1 -1
  9. package/dist/AuditLogs/auditLog.d.ts +7 -7
  10. package/dist/AuditLogs/auditLog.js +1 -1
  11. package/dist/AuditLogs/auditLogType.d.ts +5 -5
  12. package/dist/AuditLogs/auditLogType.js +6 -6
  13. package/dist/AuditLogs/index.d.ts +2 -2
  14. package/dist/AuditLogs/index.js +2 -2
  15. package/dist/Calendar/Event.d.ts +63 -63
  16. package/dist/Calendar/Event.js +13 -13
  17. package/dist/Calendar/index.d.ts +1 -1
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Calls/Call.d.ts +55 -55
  20. package/dist/Calls/Call.js +22 -22
  21. package/dist/Calls/index.d.ts +1 -1
  22. package/dist/Calls/index.js +1 -1
  23. package/dist/Common/API/AuthApiKey.d.ts +5 -5
  24. package/dist/Common/API/AuthApiKey.js +1 -1
  25. package/dist/Common/API/AuthBasic.d.ts +4 -4
  26. package/dist/Common/API/AuthBasic.js +1 -1
  27. package/dist/Common/API/AuthBearer.d.ts +5 -5
  28. package/dist/Common/API/AuthBearer.js +1 -1
  29. package/dist/Common/API/AuthType.d.ts +6 -6
  30. package/dist/Common/API/AuthType.js +7 -7
  31. package/dist/Common/API/Method.d.ts +4 -4
  32. package/dist/Common/API/Method.js +5 -5
  33. package/dist/Common/API/index.d.ts +5 -5
  34. package/dist/Common/API/index.js +5 -5
  35. package/dist/Common/Channels/Channel.d.ts +47 -47
  36. package/dist/Common/Channels/Channel.js +1 -1
  37. package/dist/Common/Channels/ChannelType.d.ts +24 -24
  38. package/dist/Common/Channels/ChannelType.js +25 -25
  39. package/dist/Common/Channels/Email.d.ts +59 -59
  40. package/dist/Common/Channels/Email.js +30 -30
  41. package/dist/Common/Channels/Facebook.d.ts +23 -23
  42. package/dist/Common/Channels/Facebook.js +2 -2
  43. package/dist/Common/Channels/Form.d.ts +52 -52
  44. package/dist/Common/Channels/Form.js +25 -25
  45. package/dist/Common/Channels/GoogleBusiness.d.ts +20 -20
  46. package/dist/Common/Channels/GoogleBusiness.js +4 -4
  47. package/dist/Common/Channels/Instagram.d.ts +22 -22
  48. package/dist/Common/Channels/Instagram.js +2 -2
  49. package/dist/Common/Channels/MercadoLibre.d.ts +27 -27
  50. package/dist/Common/Channels/MercadoLibre.js +4 -4
  51. package/dist/Common/Channels/Pbx.d.ts +2 -2
  52. package/dist/Common/Channels/Pbx.js +2 -2
  53. package/dist/Common/Channels/Permission.d.ts +6 -6
  54. package/dist/Common/Channels/Permission.js +2 -2
  55. package/dist/Common/Channels/RCS.d.ts +33 -33
  56. package/dist/Common/Channels/RCS.js +4 -4
  57. package/dist/Common/Channels/Sip.d.ts +2 -2
  58. package/dist/Common/Channels/Sip.js +2 -2
  59. package/dist/Common/Channels/Sms.d.ts +42 -42
  60. package/dist/Common/Channels/Sms.js +12 -12
  61. package/dist/Common/Channels/WebChat.d.ts +60 -60
  62. package/dist/Common/Channels/WebChat.js +14 -14
  63. package/dist/Common/Channels/WhatsApp.d.ts +41 -41
  64. package/dist/Common/Channels/WhatsApp.js +10 -10
  65. package/dist/Common/Channels/index.d.ts +15 -15
  66. package/dist/Common/Channels/index.js +15 -15
  67. package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -10
  68. package/dist/Common/EventsQueue/EmailTemplate.js +1 -1
  69. package/dist/Common/EventsQueue/EventQueue.d.ts +12 -12
  70. package/dist/Common/EventsQueue/EventQueue.js +1 -1
  71. package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -8
  72. package/dist/Common/EventsQueue/UserUpdate.js +1 -1
  73. package/dist/Common/EventsQueue/index.d.ts +3 -3
  74. package/dist/Common/EventsQueue/index.js +3 -3
  75. package/dist/Common/Logs/Log.d.ts +18 -18
  76. package/dist/Common/Logs/Log.js +10 -10
  77. package/dist/Common/Logs/index.d.ts +1 -1
  78. package/dist/Common/Logs/index.js +1 -1
  79. package/dist/Common/Messages/MediaFile.d.ts +5 -5
  80. package/dist/Common/Messages/MediaFile.js +1 -1
  81. package/dist/Common/Messages/Message.d.ts +359 -359
  82. package/dist/Common/Messages/Message.js +53 -53
  83. package/dist/Common/Messages/Template.d.ts +62 -62
  84. package/dist/Common/Messages/Template.js +20 -20
  85. package/dist/Common/Messages/index.d.ts +3 -3
  86. package/dist/Common/Messages/index.js +3 -3
  87. package/dist/Common/Notifications/Notification.d.ts +19 -19
  88. package/dist/Common/Notifications/Notification.js +7 -7
  89. package/dist/Common/Notifications/UserNotificationsConfig.d.ts +30 -30
  90. package/dist/Common/Notifications/UserNotificationsConfig.js +8 -8
  91. package/dist/Common/Notifications/index.d.ts +2 -2
  92. package/dist/Common/Notifications/index.js +2 -2
  93. package/dist/Common/Schedules/Schedules.d.ts +32 -32
  94. package/dist/Common/Schedules/Schedules.js +1 -1
  95. package/dist/Common/Schedules/index.d.ts +1 -1
  96. package/dist/Common/Schedules/index.js +1 -1
  97. package/dist/Common/index.d.ts +6 -6
  98. package/dist/Common/index.js +12 -12
  99. package/dist/Contacts/File.d.ts +17 -17
  100. package/dist/Contacts/File.js +1 -1
  101. package/dist/Contacts/Label.d.ts +9 -9
  102. package/dist/Contacts/Label.js +1 -1
  103. package/dist/Contacts/Note.d.ts +15 -15
  104. package/dist/Contacts/Note.js +1 -1
  105. package/dist/Contacts/contacts.d.ts +240 -240
  106. package/dist/Contacts/contacts.js +39 -39
  107. package/dist/Contacts/index.d.ts +5 -5
  108. package/dist/Contacts/index.js +5 -5
  109. package/dist/Contacts/segments.d.ts +51 -51
  110. package/dist/Contacts/segments.js +49 -49
  111. package/dist/Conversations/Conversation.d.ts +92 -92
  112. package/dist/Conversations/Conversation.js +44 -44
  113. package/dist/Conversations/DashBoard/dashboard.d.ts +84 -84
  114. package/dist/Conversations/DashBoard/dashboard.js +45 -45
  115. package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -5
  116. package/dist/Conversations/DashBoard/dashboardChannels.js +2 -2
  117. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -44
  118. package/dist/Conversations/DashBoard/dashboardForms.js +14 -14
  119. package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -13
  120. package/dist/Conversations/DashBoard/dashboardMessages.js +4 -4
  121. package/dist/Conversations/Ending.d.ts +11 -11
  122. package/dist/Conversations/Ending.js +1 -1
  123. package/dist/Conversations/Flows/Flow.d.ts +104 -104
  124. package/dist/Conversations/Flows/Flow.js +36 -36
  125. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -20
  126. package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -2
  127. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -21
  128. package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -16
  129. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -8
  130. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -2
  131. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -12
  132. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -7
  133. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -6
  134. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -2
  135. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -4
  136. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -2
  137. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -15
  138. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -11
  139. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -12
  140. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -4
  141. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -22
  142. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -9
  143. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +47 -47
  144. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -27
  145. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +45 -45
  146. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -31
  147. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -7
  148. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -2
  149. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -9
  150. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -2
  151. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -14
  152. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -8
  153. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -32
  154. package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -184
  155. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -6
  156. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -2
  157. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -9
  158. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -2
  159. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -6
  160. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -2
  161. package/dist/Conversations/Flows/Nodes/index.d.ts +18 -18
  162. package/dist/Conversations/Flows/Nodes/index.js +18 -18
  163. package/dist/Conversations/Flows/index.d.ts +2 -2
  164. package/dist/Conversations/Flows/index.js +3 -3
  165. package/dist/Conversations/Groups/Group.d.ts +23 -23
  166. package/dist/Conversations/Groups/Group.js +6 -6
  167. package/dist/Conversations/Label.d.ts +10 -10
  168. package/dist/Conversations/Label.js +1 -1
  169. package/dist/Conversations/QuickResponse.d.ts +34 -34
  170. package/dist/Conversations/QuickResponse.js +1 -1
  171. package/dist/Conversations/SocialWalls.d.ts +55 -55
  172. package/dist/Conversations/SocialWalls.js +1 -1
  173. package/dist/Conversations/WebHook.d.ts +22 -22
  174. package/dist/Conversations/WebHook.js +1 -1
  175. package/dist/Conversations/index.d.ts +12 -12
  176. package/dist/Conversations/index.js +14 -14
  177. package/dist/Marketing/Campaign.d.ts +50 -50
  178. package/dist/Marketing/Campaign.js +25 -25
  179. package/dist/Marketing/Dashboard.d.ts +48 -48
  180. package/dist/Marketing/Dashboard.js +1 -1
  181. package/dist/Marketing/index.d.ts +2 -2
  182. package/dist/Marketing/index.js +2 -2
  183. package/dist/PublicAPI/apiKey.d.ts +12 -12
  184. package/dist/PublicAPI/apiKey.js +1 -1
  185. package/dist/Security/Security.d.ts +5 -5
  186. package/dist/Security/Security.js +1 -1
  187. package/dist/Security/index.d.ts +1 -1
  188. package/dist/Security/index.js +1 -1
  189. package/dist/Spaces/Dashboard.d.ts +4 -4
  190. package/dist/Spaces/Dashboard.js +1 -1
  191. package/dist/Spaces/index.d.ts +2 -2
  192. package/dist/Spaces/index.js +2 -2
  193. package/dist/Spaces/spaces.d.ts +92 -92
  194. package/dist/Spaces/spaces.js +77 -77
  195. package/dist/Tickets/AccessLevel.d.ts +5 -5
  196. package/dist/Tickets/AccessLevel.js +6 -6
  197. package/dist/Tickets/index.d.ts +1 -1
  198. package/dist/Tickets/index.js +1 -1
  199. package/dist/Users/UserActivitySummary.d.ts +5 -5
  200. package/dist/Users/UserActivitySummary.js +1 -1
  201. package/dist/Users/UserProfile.d.ts +105 -105
  202. package/dist/Users/UserProfile.js +78 -78
  203. package/dist/Users/UserTrii.d.ts +94 -94
  204. package/dist/Users/UserTrii.js +15 -15
  205. package/dist/Users/UserType.d.ts +10 -10
  206. package/dist/Users/UserType.js +11 -11
  207. package/dist/Users/index.d.ts +4 -4
  208. package/dist/Users/index.js +4 -4
  209. package/dist/index.d.ts +14 -14
  210. package/dist/index.js +28 -28
  211. package/package.json +5 -2
  212. package/dist/Campaigns/Campaign.d.ts +0 -40
  213. package/dist/Campaigns/Campaign.js +0 -18
  214. package/dist/Campaigns/index.d.ts +0 -1
  215. 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 declare type ContactLogAction = 'update' | 'create' | 'import' | 'join' | 'delete';
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
+ }
@@ -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';
@@ -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';