@_henriquewilson/gabirubi-domain 1.3.69 → 1.3.71
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/model/intercom/conversation.d.mts +325 -325
- package/dist/model/intercom/conversation.d.ts +325 -325
- package/dist/model/intercom/hook.d.mts +3209 -3209
- package/dist/model/intercom/hook.d.ts +3209 -3209
- package/dist/model/iugu/iugu-charge.d.mts +2 -2
- package/dist/model/iugu/iugu-charge.d.ts +2 -2
- package/dist/model/iugu/iugu-client.d.mts +12 -12
- package/dist/model/iugu/iugu-client.d.ts +12 -12
- package/dist/model/iugu/iugu-invoice.d.mts +73 -31
- package/dist/model/iugu/iugu-invoice.d.ts +73 -31
- package/dist/model/iugu/iugu-invoice.js +221 -148
- package/dist/model/iugu/iugu-invoice.js.map +1 -1
- package/dist/model/iugu/iugu-invoice.mjs +205 -148
- package/dist/model/iugu/iugu-invoice.mjs.map +1 -1
- package/dist/model/iugu/iugu-pix.js +223 -154
- package/dist/model/iugu/iugu-pix.js.map +1 -1
- package/dist/model/iugu/iugu-pix.mjs +211 -154
- package/dist/model/iugu/iugu-pix.mjs.map +1 -1
- package/dist/model/journey.d.mts +45 -45
- package/dist/model/journey.d.ts +45 -45
- package/dist/model/subscription.model.d.mts +219 -219
- package/dist/model/subscription.model.d.ts +219 -219
- package/dist/model/subscription.model.js +21 -2
- package/dist/model/subscription.model.js.map +1 -1
- package/dist/model/subscription.model.mjs +21 -2
- package/dist/model/subscription.model.mjs.map +1 -1
- package/dist/model/user.model.d.mts +2 -2
- package/dist/model/user.model.d.ts +2 -2
- package/dist/test/subscription.test.js +33 -2
- package/dist/test/subscription.test.js.map +1 -1
- package/dist/test/subscription.test.mjs +33 -2
- package/dist/test/subscription.test.mjs.map +1 -1
- package/dist/util/common.util.d.mts +3 -1
- package/dist/util/common.util.d.ts +3 -1
- package/dist/util/common.util.js +93 -1
- package/dist/util/common.util.js.map +1 -1
- package/dist/util/common.util.mjs +85 -1
- package/dist/util/common.util.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,28 +6,28 @@ declare const authorSchema: z.ZodObject<{
|
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
email: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
type: string;
|
|
10
9
|
id: string;
|
|
11
|
-
|
|
10
|
+
type: string;
|
|
12
11
|
email: string;
|
|
12
|
+
name: string;
|
|
13
13
|
}, {
|
|
14
|
-
type: string;
|
|
15
14
|
id: string;
|
|
16
|
-
|
|
15
|
+
type: string;
|
|
17
16
|
email: string;
|
|
17
|
+
name: string;
|
|
18
18
|
}>;
|
|
19
19
|
declare const contactSchema: z.ZodObject<{
|
|
20
20
|
type: z.ZodString;
|
|
21
21
|
id: z.ZodString;
|
|
22
22
|
external_id: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
type: string;
|
|
25
|
-
id: string;
|
|
26
24
|
external_id: string;
|
|
27
|
-
}, {
|
|
28
|
-
type: string;
|
|
29
25
|
id: string;
|
|
26
|
+
type: string;
|
|
27
|
+
}, {
|
|
30
28
|
external_id: string;
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
31
|
}>;
|
|
32
32
|
declare const firstContactReplySchema: z.ZodObject<{
|
|
33
33
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -46,11 +46,11 @@ declare const appliedBySchema: z.ZodObject<{
|
|
|
46
46
|
type: z.ZodString;
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
type: string;
|
|
50
49
|
id: string;
|
|
51
|
-
}, {
|
|
52
50
|
type: string;
|
|
51
|
+
}, {
|
|
53
52
|
id: string;
|
|
53
|
+
type: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const statisticsSchema: z.ZodObject<{
|
|
56
56
|
type: z.ZodString;
|
|
@@ -74,44 +74,44 @@ declare const statisticsSchema: z.ZodObject<{
|
|
|
74
74
|
count_conversation_parts: z.ZodNumber;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
type: string;
|
|
77
|
-
first_contact_reply_at: number;
|
|
78
|
-
last_contact_reply_at: number;
|
|
79
|
-
count_reopens: number;
|
|
80
77
|
count_assignments: number;
|
|
81
78
|
count_conversation_parts: number;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
time_to_last_close?: any;
|
|
86
|
-
median_time_to_reply?: any;
|
|
87
|
-
first_assignment_at?: any;
|
|
79
|
+
count_reopens: number;
|
|
80
|
+
first_contact_reply_at: number;
|
|
81
|
+
last_contact_reply_at: number;
|
|
88
82
|
first_admin_reply_at?: any;
|
|
83
|
+
first_assignment_at?: any;
|
|
89
84
|
first_close_at?: any;
|
|
90
|
-
last_assignment_at?: any;
|
|
91
|
-
last_assignment_admin_reply_at?: any;
|
|
92
85
|
last_admin_reply_at?: any;
|
|
86
|
+
last_assignment_admin_reply_at?: any;
|
|
87
|
+
last_assignment_at?: any;
|
|
93
88
|
last_close_at?: any;
|
|
94
89
|
last_closed_by_id?: any;
|
|
90
|
+
median_time_to_reply?: any;
|
|
91
|
+
time_to_admin_reply?: any;
|
|
92
|
+
time_to_assignment?: any;
|
|
93
|
+
time_to_first_close?: any;
|
|
94
|
+
time_to_last_close?: any;
|
|
95
95
|
}, {
|
|
96
96
|
type: string;
|
|
97
|
-
first_contact_reply_at: number;
|
|
98
|
-
last_contact_reply_at: number;
|
|
99
|
-
count_reopens: number;
|
|
100
97
|
count_assignments: number;
|
|
101
98
|
count_conversation_parts: number;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
time_to_last_close?: any;
|
|
106
|
-
median_time_to_reply?: any;
|
|
107
|
-
first_assignment_at?: any;
|
|
99
|
+
count_reopens: number;
|
|
100
|
+
first_contact_reply_at: number;
|
|
101
|
+
last_contact_reply_at: number;
|
|
108
102
|
first_admin_reply_at?: any;
|
|
103
|
+
first_assignment_at?: any;
|
|
109
104
|
first_close_at?: any;
|
|
110
|
-
last_assignment_at?: any;
|
|
111
|
-
last_assignment_admin_reply_at?: any;
|
|
112
105
|
last_admin_reply_at?: any;
|
|
106
|
+
last_assignment_admin_reply_at?: any;
|
|
107
|
+
last_assignment_at?: any;
|
|
113
108
|
last_close_at?: any;
|
|
114
109
|
last_closed_by_id?: any;
|
|
110
|
+
median_time_to_reply?: any;
|
|
111
|
+
time_to_admin_reply?: any;
|
|
112
|
+
time_to_assignment?: any;
|
|
113
|
+
time_to_first_close?: any;
|
|
114
|
+
time_to_last_close?: any;
|
|
115
115
|
}>;
|
|
116
116
|
declare const teammatesSchema: z.ZodObject<{
|
|
117
117
|
type: z.ZodString;
|
|
@@ -129,12 +129,12 @@ declare const topicsSchema: z.ZodObject<{
|
|
|
129
129
|
total_count: z.ZodNumber;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
type: string;
|
|
132
|
-
topics: any[];
|
|
133
132
|
total_count: number;
|
|
133
|
+
topics: any[];
|
|
134
134
|
}, {
|
|
135
135
|
type: string;
|
|
136
|
-
topics: any[];
|
|
137
136
|
total_count: number;
|
|
137
|
+
topics: any[];
|
|
138
138
|
}>;
|
|
139
139
|
declare const linkedObjectsSchema: z.ZodObject<{
|
|
140
140
|
type: z.ZodString;
|
|
@@ -143,14 +143,14 @@ declare const linkedObjectsSchema: z.ZodObject<{
|
|
|
143
143
|
has_more: z.ZodBoolean;
|
|
144
144
|
}, "strip", z.ZodTypeAny, {
|
|
145
145
|
type: string;
|
|
146
|
-
total_count: number;
|
|
147
146
|
data: any[];
|
|
148
147
|
has_more: boolean;
|
|
148
|
+
total_count: number;
|
|
149
149
|
}, {
|
|
150
150
|
type: string;
|
|
151
|
-
total_count: number;
|
|
152
151
|
data: any[];
|
|
153
152
|
has_more: boolean;
|
|
153
|
+
total_count: number;
|
|
154
154
|
}>;
|
|
155
155
|
declare const author2Schema: z.ZodObject<{
|
|
156
156
|
id: z.ZodString;
|
|
@@ -158,15 +158,15 @@ declare const author2Schema: z.ZodObject<{
|
|
|
158
158
|
name: z.ZodString;
|
|
159
159
|
email: z.ZodString;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
type: string;
|
|
162
161
|
id: string;
|
|
163
|
-
|
|
162
|
+
type: string;
|
|
164
163
|
email: string;
|
|
164
|
+
name: string;
|
|
165
165
|
}, {
|
|
166
|
-
type: string;
|
|
167
166
|
id: string;
|
|
168
|
-
|
|
167
|
+
type: string;
|
|
169
168
|
email: string;
|
|
169
|
+
name: string;
|
|
170
170
|
}>;
|
|
171
171
|
declare const sourceSchema: z.ZodObject<{
|
|
172
172
|
type: z.ZodString;
|
|
@@ -180,49 +180,49 @@ declare const sourceSchema: z.ZodObject<{
|
|
|
180
180
|
name: z.ZodString;
|
|
181
181
|
email: z.ZodString;
|
|
182
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
type: string;
|
|
184
183
|
id: string;
|
|
185
|
-
|
|
184
|
+
type: string;
|
|
186
185
|
email: string;
|
|
186
|
+
name: string;
|
|
187
187
|
}, {
|
|
188
|
-
type: string;
|
|
189
188
|
id: string;
|
|
190
|
-
|
|
189
|
+
type: string;
|
|
191
190
|
email: string;
|
|
191
|
+
name: string;
|
|
192
192
|
}>;
|
|
193
193
|
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
194
194
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
195
|
redacted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
type: string;
|
|
198
197
|
id: string;
|
|
198
|
+
type: string;
|
|
199
199
|
author: {
|
|
200
|
-
type: string;
|
|
201
200
|
id: string;
|
|
202
|
-
|
|
201
|
+
type: string;
|
|
203
202
|
email: string;
|
|
203
|
+
name: string;
|
|
204
204
|
};
|
|
205
205
|
url?: string | null | undefined;
|
|
206
|
-
delivered_as?: string | null | undefined;
|
|
207
|
-
subject?: string | null | undefined;
|
|
208
|
-
body?: string | null | undefined;
|
|
209
206
|
attachments?: any[] | null | undefined;
|
|
207
|
+
body?: string | null | undefined;
|
|
208
|
+
delivered_as?: string | null | undefined;
|
|
210
209
|
redacted?: boolean | null | undefined;
|
|
210
|
+
subject?: string | null | undefined;
|
|
211
211
|
}, {
|
|
212
|
-
type: string;
|
|
213
212
|
id: string;
|
|
213
|
+
type: string;
|
|
214
214
|
author: {
|
|
215
|
-
type: string;
|
|
216
215
|
id: string;
|
|
217
|
-
|
|
216
|
+
type: string;
|
|
218
217
|
email: string;
|
|
218
|
+
name: string;
|
|
219
219
|
};
|
|
220
220
|
url?: string | null | undefined;
|
|
221
|
-
delivered_as?: string | null | undefined;
|
|
222
|
-
subject?: string | null | undefined;
|
|
223
|
-
body?: string | null | undefined;
|
|
224
221
|
attachments?: any[] | null | undefined;
|
|
222
|
+
body?: string | null | undefined;
|
|
223
|
+
delivered_as?: string | null | undefined;
|
|
225
224
|
redacted?: boolean | null | undefined;
|
|
225
|
+
subject?: string | null | undefined;
|
|
226
226
|
}>;
|
|
227
227
|
declare const contactsSchema: z.ZodObject<{
|
|
228
228
|
type: z.ZodString;
|
|
@@ -231,27 +231,27 @@ declare const contactsSchema: z.ZodObject<{
|
|
|
231
231
|
id: z.ZodString;
|
|
232
232
|
external_id: z.ZodString;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
type: string;
|
|
235
|
-
id: string;
|
|
236
234
|
external_id: string;
|
|
237
|
-
}, {
|
|
238
|
-
type: string;
|
|
239
235
|
id: string;
|
|
236
|
+
type: string;
|
|
237
|
+
}, {
|
|
240
238
|
external_id: string;
|
|
239
|
+
id: string;
|
|
240
|
+
type: string;
|
|
241
241
|
}>, "many">;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
243
|
type: string;
|
|
244
244
|
contacts: {
|
|
245
|
-
type: string;
|
|
246
|
-
id: string;
|
|
247
245
|
external_id: string;
|
|
246
|
+
id: string;
|
|
247
|
+
type: string;
|
|
248
248
|
}[];
|
|
249
249
|
}, {
|
|
250
250
|
type: string;
|
|
251
251
|
contacts: {
|
|
252
|
-
type: string;
|
|
253
|
-
id: string;
|
|
254
252
|
external_id: string;
|
|
253
|
+
id: string;
|
|
254
|
+
type: string;
|
|
255
255
|
}[];
|
|
256
256
|
}>;
|
|
257
257
|
declare const tagSchema: z.ZodObject<{
|
|
@@ -263,29 +263,29 @@ declare const tagSchema: z.ZodObject<{
|
|
|
263
263
|
type: z.ZodString;
|
|
264
264
|
id: z.ZodString;
|
|
265
265
|
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
type: string;
|
|
267
266
|
id: string;
|
|
268
|
-
}, {
|
|
269
267
|
type: string;
|
|
268
|
+
}, {
|
|
270
269
|
id: string;
|
|
270
|
+
type: string;
|
|
271
271
|
}>;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
type: string;
|
|
274
273
|
id: string;
|
|
274
|
+
type: string;
|
|
275
275
|
name: string;
|
|
276
276
|
applied_at: number;
|
|
277
277
|
applied_by: {
|
|
278
|
-
type: string;
|
|
279
278
|
id: string;
|
|
279
|
+
type: string;
|
|
280
280
|
};
|
|
281
281
|
}, {
|
|
282
|
-
type: string;
|
|
283
282
|
id: string;
|
|
283
|
+
type: string;
|
|
284
284
|
name: string;
|
|
285
285
|
applied_at: number;
|
|
286
286
|
applied_by: {
|
|
287
|
-
type: string;
|
|
288
287
|
id: string;
|
|
288
|
+
type: string;
|
|
289
289
|
};
|
|
290
290
|
}>;
|
|
291
291
|
declare const conversationPartSchema: z.ZodObject<{
|
|
@@ -303,52 +303,52 @@ declare const conversationPartSchema: z.ZodObject<{
|
|
|
303
303
|
name: z.ZodString;
|
|
304
304
|
email: z.ZodString;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
type: string;
|
|
307
306
|
id: string;
|
|
308
|
-
|
|
307
|
+
type: string;
|
|
309
308
|
email: string;
|
|
309
|
+
name: string;
|
|
310
310
|
}, {
|
|
311
|
-
type: string;
|
|
312
311
|
id: string;
|
|
313
|
-
|
|
312
|
+
type: string;
|
|
314
313
|
email: string;
|
|
314
|
+
name: string;
|
|
315
315
|
}>;
|
|
316
316
|
attachments: z.ZodArray<z.ZodAny, "many">;
|
|
317
317
|
external_id: z.ZodAny;
|
|
318
318
|
redacted: z.ZodBoolean;
|
|
319
319
|
}, "strip", z.ZodTypeAny, {
|
|
320
|
-
type: string;
|
|
321
320
|
id: string;
|
|
321
|
+
type: string;
|
|
322
322
|
created_at: number;
|
|
323
|
+
attachments: any[];
|
|
323
324
|
author: {
|
|
324
|
-
type: string;
|
|
325
325
|
id: string;
|
|
326
|
-
|
|
326
|
+
type: string;
|
|
327
327
|
email: string;
|
|
328
|
+
name: string;
|
|
328
329
|
};
|
|
329
|
-
attachments: any[];
|
|
330
330
|
redacted: boolean;
|
|
331
|
+
notified_at: number;
|
|
331
332
|
part_type: string;
|
|
332
333
|
updated_at: number;
|
|
333
|
-
notified_at: number;
|
|
334
334
|
external_id?: any;
|
|
335
335
|
body?: string | undefined;
|
|
336
336
|
assigned_to?: any;
|
|
337
337
|
}, {
|
|
338
|
-
type: string;
|
|
339
338
|
id: string;
|
|
339
|
+
type: string;
|
|
340
340
|
created_at: number;
|
|
341
|
+
attachments: any[];
|
|
341
342
|
author: {
|
|
342
|
-
type: string;
|
|
343
343
|
id: string;
|
|
344
|
-
|
|
344
|
+
type: string;
|
|
345
345
|
email: string;
|
|
346
|
+
name: string;
|
|
346
347
|
};
|
|
347
|
-
attachments: any[];
|
|
348
348
|
redacted: boolean;
|
|
349
|
+
notified_at: number;
|
|
349
350
|
part_type: string;
|
|
350
351
|
updated_at: number;
|
|
351
|
-
notified_at: number;
|
|
352
352
|
external_id?: any;
|
|
353
353
|
body?: string | undefined;
|
|
354
354
|
assigned_to?: any;
|
|
@@ -364,53 +364,53 @@ declare const tagsSchema: z.ZodObject<{
|
|
|
364
364
|
type: z.ZodString;
|
|
365
365
|
id: z.ZodString;
|
|
366
366
|
}, "strip", z.ZodTypeAny, {
|
|
367
|
-
type: string;
|
|
368
367
|
id: string;
|
|
369
|
-
}, {
|
|
370
368
|
type: string;
|
|
369
|
+
}, {
|
|
371
370
|
id: string;
|
|
371
|
+
type: string;
|
|
372
372
|
}>;
|
|
373
373
|
}, "strip", z.ZodTypeAny, {
|
|
374
|
-
type: string;
|
|
375
374
|
id: string;
|
|
375
|
+
type: string;
|
|
376
376
|
name: string;
|
|
377
377
|
applied_at: number;
|
|
378
378
|
applied_by: {
|
|
379
|
-
type: string;
|
|
380
379
|
id: string;
|
|
380
|
+
type: string;
|
|
381
381
|
};
|
|
382
382
|
}, {
|
|
383
|
-
type: string;
|
|
384
383
|
id: string;
|
|
384
|
+
type: string;
|
|
385
385
|
name: string;
|
|
386
386
|
applied_at: number;
|
|
387
387
|
applied_by: {
|
|
388
|
-
type: string;
|
|
389
388
|
id: string;
|
|
389
|
+
type: string;
|
|
390
390
|
};
|
|
391
391
|
}>, "many">;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
393
|
type: string;
|
|
394
394
|
tags: {
|
|
395
|
-
type: string;
|
|
396
395
|
id: string;
|
|
396
|
+
type: string;
|
|
397
397
|
name: string;
|
|
398
398
|
applied_at: number;
|
|
399
399
|
applied_by: {
|
|
400
|
-
type: string;
|
|
401
400
|
id: string;
|
|
401
|
+
type: string;
|
|
402
402
|
};
|
|
403
403
|
}[];
|
|
404
404
|
}, {
|
|
405
405
|
type: string;
|
|
406
406
|
tags: {
|
|
407
|
-
type: string;
|
|
408
407
|
id: string;
|
|
408
|
+
type: string;
|
|
409
409
|
name: string;
|
|
410
410
|
applied_at: number;
|
|
411
411
|
applied_by: {
|
|
412
|
-
type: string;
|
|
413
412
|
id: string;
|
|
413
|
+
type: string;
|
|
414
414
|
};
|
|
415
415
|
}[];
|
|
416
416
|
}>;
|
|
@@ -431,52 +431,52 @@ declare const conversationPartsSchema: z.ZodObject<{
|
|
|
431
431
|
name: z.ZodString;
|
|
432
432
|
email: z.ZodString;
|
|
433
433
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
type: string;
|
|
435
434
|
id: string;
|
|
436
|
-
|
|
435
|
+
type: string;
|
|
437
436
|
email: string;
|
|
437
|
+
name: string;
|
|
438
438
|
}, {
|
|
439
|
-
type: string;
|
|
440
439
|
id: string;
|
|
441
|
-
|
|
440
|
+
type: string;
|
|
442
441
|
email: string;
|
|
442
|
+
name: string;
|
|
443
443
|
}>;
|
|
444
444
|
attachments: z.ZodArray<z.ZodAny, "many">;
|
|
445
445
|
external_id: z.ZodAny;
|
|
446
446
|
redacted: z.ZodBoolean;
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
type: string;
|
|
449
448
|
id: string;
|
|
449
|
+
type: string;
|
|
450
450
|
created_at: number;
|
|
451
|
+
attachments: any[];
|
|
451
452
|
author: {
|
|
452
|
-
type: string;
|
|
453
453
|
id: string;
|
|
454
|
-
|
|
454
|
+
type: string;
|
|
455
455
|
email: string;
|
|
456
|
+
name: string;
|
|
456
457
|
};
|
|
457
|
-
attachments: any[];
|
|
458
458
|
redacted: boolean;
|
|
459
|
+
notified_at: number;
|
|
459
460
|
part_type: string;
|
|
460
461
|
updated_at: number;
|
|
461
|
-
notified_at: number;
|
|
462
462
|
external_id?: any;
|
|
463
463
|
body?: string | undefined;
|
|
464
464
|
assigned_to?: any;
|
|
465
465
|
}, {
|
|
466
|
-
type: string;
|
|
467
466
|
id: string;
|
|
467
|
+
type: string;
|
|
468
468
|
created_at: number;
|
|
469
|
+
attachments: any[];
|
|
469
470
|
author: {
|
|
470
|
-
type: string;
|
|
471
471
|
id: string;
|
|
472
|
-
|
|
472
|
+
type: string;
|
|
473
473
|
email: string;
|
|
474
|
+
name: string;
|
|
474
475
|
};
|
|
475
|
-
attachments: any[];
|
|
476
476
|
redacted: boolean;
|
|
477
|
+
notified_at: number;
|
|
477
478
|
part_type: string;
|
|
478
479
|
updated_at: number;
|
|
479
|
-
notified_at: number;
|
|
480
480
|
external_id?: any;
|
|
481
481
|
body?: string | undefined;
|
|
482
482
|
assigned_to?: any;
|
|
@@ -486,20 +486,20 @@ declare const conversationPartsSchema: z.ZodObject<{
|
|
|
486
486
|
type: string;
|
|
487
487
|
total_count: number;
|
|
488
488
|
conversation_parts: {
|
|
489
|
-
type: string;
|
|
490
489
|
id: string;
|
|
490
|
+
type: string;
|
|
491
491
|
created_at: number;
|
|
492
|
+
attachments: any[];
|
|
492
493
|
author: {
|
|
493
|
-
type: string;
|
|
494
494
|
id: string;
|
|
495
|
-
|
|
495
|
+
type: string;
|
|
496
496
|
email: string;
|
|
497
|
+
name: string;
|
|
497
498
|
};
|
|
498
|
-
attachments: any[];
|
|
499
499
|
redacted: boolean;
|
|
500
|
+
notified_at: number;
|
|
500
501
|
part_type: string;
|
|
501
502
|
updated_at: number;
|
|
502
|
-
notified_at: number;
|
|
503
503
|
external_id?: any;
|
|
504
504
|
body?: string | undefined;
|
|
505
505
|
assigned_to?: any;
|
|
@@ -508,20 +508,20 @@ declare const conversationPartsSchema: z.ZodObject<{
|
|
|
508
508
|
type: string;
|
|
509
509
|
total_count: number;
|
|
510
510
|
conversation_parts: {
|
|
511
|
-
type: string;
|
|
512
511
|
id: string;
|
|
512
|
+
type: string;
|
|
513
513
|
created_at: number;
|
|
514
|
+
attachments: any[];
|
|
514
515
|
author: {
|
|
515
|
-
type: string;
|
|
516
516
|
id: string;
|
|
517
|
-
|
|
517
|
+
type: string;
|
|
518
518
|
email: string;
|
|
519
|
+
name: string;
|
|
519
520
|
};
|
|
520
|
-
attachments: any[];
|
|
521
521
|
redacted: boolean;
|
|
522
|
+
notified_at: number;
|
|
522
523
|
part_type: string;
|
|
523
524
|
updated_at: number;
|
|
524
|
-
notified_at: number;
|
|
525
525
|
external_id?: any;
|
|
526
526
|
body?: string | undefined;
|
|
527
527
|
assigned_to?: any;
|
|
@@ -575,49 +575,49 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
575
575
|
name: z.ZodString;
|
|
576
576
|
email: z.ZodString;
|
|
577
577
|
}, "strip", z.ZodTypeAny, {
|
|
578
|
-
type: string;
|
|
579
578
|
id: string;
|
|
580
|
-
|
|
579
|
+
type: string;
|
|
581
580
|
email: string;
|
|
581
|
+
name: string;
|
|
582
582
|
}, {
|
|
583
|
-
type: string;
|
|
584
583
|
id: string;
|
|
585
|
-
|
|
584
|
+
type: string;
|
|
586
585
|
email: string;
|
|
586
|
+
name: string;
|
|
587
587
|
}>;
|
|
588
588
|
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
589
589
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
590
|
redacted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
591
591
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
-
type: string;
|
|
593
592
|
id: string;
|
|
593
|
+
type: string;
|
|
594
594
|
author: {
|
|
595
|
-
type: string;
|
|
596
595
|
id: string;
|
|
597
|
-
|
|
596
|
+
type: string;
|
|
598
597
|
email: string;
|
|
598
|
+
name: string;
|
|
599
599
|
};
|
|
600
600
|
url?: string | null | undefined;
|
|
601
|
-
delivered_as?: string | null | undefined;
|
|
602
|
-
subject?: string | null | undefined;
|
|
603
|
-
body?: string | null | undefined;
|
|
604
601
|
attachments?: any[] | null | undefined;
|
|
602
|
+
body?: string | null | undefined;
|
|
603
|
+
delivered_as?: string | null | undefined;
|
|
605
604
|
redacted?: boolean | null | undefined;
|
|
605
|
+
subject?: string | null | undefined;
|
|
606
606
|
}, {
|
|
607
|
-
type: string;
|
|
608
607
|
id: string;
|
|
608
|
+
type: string;
|
|
609
609
|
author: {
|
|
610
|
-
type: string;
|
|
611
610
|
id: string;
|
|
612
|
-
|
|
611
|
+
type: string;
|
|
613
612
|
email: string;
|
|
613
|
+
name: string;
|
|
614
614
|
};
|
|
615
615
|
url?: string | null | undefined;
|
|
616
|
-
delivered_as?: string | null | undefined;
|
|
617
|
-
subject?: string | null | undefined;
|
|
618
|
-
body?: string | null | undefined;
|
|
619
616
|
attachments?: any[] | null | undefined;
|
|
617
|
+
body?: string | null | undefined;
|
|
618
|
+
delivered_as?: string | null | undefined;
|
|
620
619
|
redacted?: boolean | null | undefined;
|
|
620
|
+
subject?: string | null | undefined;
|
|
621
621
|
}>;
|
|
622
622
|
contacts: z.ZodObject<{
|
|
623
623
|
type: z.ZodString;
|
|
@@ -626,27 +626,27 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
626
626
|
id: z.ZodString;
|
|
627
627
|
external_id: z.ZodString;
|
|
628
628
|
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
type: string;
|
|
630
|
-
id: string;
|
|
631
629
|
external_id: string;
|
|
632
|
-
}, {
|
|
633
|
-
type: string;
|
|
634
630
|
id: string;
|
|
631
|
+
type: string;
|
|
632
|
+
}, {
|
|
635
633
|
external_id: string;
|
|
634
|
+
id: string;
|
|
635
|
+
type: string;
|
|
636
636
|
}>, "many">;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
638
|
type: string;
|
|
639
639
|
contacts: {
|
|
640
|
-
type: string;
|
|
641
|
-
id: string;
|
|
642
640
|
external_id: string;
|
|
641
|
+
id: string;
|
|
642
|
+
type: string;
|
|
643
643
|
}[];
|
|
644
644
|
}, {
|
|
645
645
|
type: string;
|
|
646
646
|
contacts: {
|
|
647
|
-
type: string;
|
|
648
|
-
id: string;
|
|
649
647
|
external_id: string;
|
|
648
|
+
id: string;
|
|
649
|
+
type: string;
|
|
650
650
|
}[];
|
|
651
651
|
}>;
|
|
652
652
|
first_contact_reply: z.ZodObject<{
|
|
@@ -678,53 +678,53 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
678
678
|
type: z.ZodString;
|
|
679
679
|
id: z.ZodString;
|
|
680
680
|
}, "strip", z.ZodTypeAny, {
|
|
681
|
-
type: string;
|
|
682
681
|
id: string;
|
|
683
|
-
}, {
|
|
684
682
|
type: string;
|
|
683
|
+
}, {
|
|
685
684
|
id: string;
|
|
685
|
+
type: string;
|
|
686
686
|
}>;
|
|
687
687
|
}, "strip", z.ZodTypeAny, {
|
|
688
|
-
type: string;
|
|
689
688
|
id: string;
|
|
689
|
+
type: string;
|
|
690
690
|
name: string;
|
|
691
691
|
applied_at: number;
|
|
692
692
|
applied_by: {
|
|
693
|
-
type: string;
|
|
694
693
|
id: string;
|
|
694
|
+
type: string;
|
|
695
695
|
};
|
|
696
696
|
}, {
|
|
697
|
-
type: string;
|
|
698
697
|
id: string;
|
|
698
|
+
type: string;
|
|
699
699
|
name: string;
|
|
700
700
|
applied_at: number;
|
|
701
701
|
applied_by: {
|
|
702
|
-
type: string;
|
|
703
702
|
id: string;
|
|
703
|
+
type: string;
|
|
704
704
|
};
|
|
705
705
|
}>, "many">;
|
|
706
706
|
}, "strip", z.ZodTypeAny, {
|
|
707
707
|
type: string;
|
|
708
708
|
tags: {
|
|
709
|
-
type: string;
|
|
710
709
|
id: string;
|
|
710
|
+
type: string;
|
|
711
711
|
name: string;
|
|
712
712
|
applied_at: number;
|
|
713
713
|
applied_by: {
|
|
714
|
-
type: string;
|
|
715
714
|
id: string;
|
|
715
|
+
type: string;
|
|
716
716
|
};
|
|
717
717
|
}[];
|
|
718
718
|
}, {
|
|
719
719
|
type: string;
|
|
720
720
|
tags: {
|
|
721
|
-
type: string;
|
|
722
721
|
id: string;
|
|
722
|
+
type: string;
|
|
723
723
|
name: string;
|
|
724
724
|
applied_at: number;
|
|
725
725
|
applied_by: {
|
|
726
|
-
type: string;
|
|
727
726
|
id: string;
|
|
727
|
+
type: string;
|
|
728
728
|
};
|
|
729
729
|
}[];
|
|
730
730
|
}>;
|
|
@@ -752,44 +752,44 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
752
752
|
count_conversation_parts: z.ZodNumber;
|
|
753
753
|
}, "strip", z.ZodTypeAny, {
|
|
754
754
|
type: string;
|
|
755
|
-
first_contact_reply_at: number;
|
|
756
|
-
last_contact_reply_at: number;
|
|
757
|
-
count_reopens: number;
|
|
758
755
|
count_assignments: number;
|
|
759
756
|
count_conversation_parts: number;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
time_to_last_close?: any;
|
|
764
|
-
median_time_to_reply?: any;
|
|
765
|
-
first_assignment_at?: any;
|
|
757
|
+
count_reopens: number;
|
|
758
|
+
first_contact_reply_at: number;
|
|
759
|
+
last_contact_reply_at: number;
|
|
766
760
|
first_admin_reply_at?: any;
|
|
761
|
+
first_assignment_at?: any;
|
|
767
762
|
first_close_at?: any;
|
|
768
|
-
last_assignment_at?: any;
|
|
769
|
-
last_assignment_admin_reply_at?: any;
|
|
770
763
|
last_admin_reply_at?: any;
|
|
764
|
+
last_assignment_admin_reply_at?: any;
|
|
765
|
+
last_assignment_at?: any;
|
|
771
766
|
last_close_at?: any;
|
|
772
767
|
last_closed_by_id?: any;
|
|
768
|
+
median_time_to_reply?: any;
|
|
769
|
+
time_to_admin_reply?: any;
|
|
770
|
+
time_to_assignment?: any;
|
|
771
|
+
time_to_first_close?: any;
|
|
772
|
+
time_to_last_close?: any;
|
|
773
773
|
}, {
|
|
774
774
|
type: string;
|
|
775
|
-
first_contact_reply_at: number;
|
|
776
|
-
last_contact_reply_at: number;
|
|
777
|
-
count_reopens: number;
|
|
778
775
|
count_assignments: number;
|
|
779
776
|
count_conversation_parts: number;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
time_to_last_close?: any;
|
|
784
|
-
median_time_to_reply?: any;
|
|
785
|
-
first_assignment_at?: any;
|
|
777
|
+
count_reopens: number;
|
|
778
|
+
first_contact_reply_at: number;
|
|
779
|
+
last_contact_reply_at: number;
|
|
786
780
|
first_admin_reply_at?: any;
|
|
781
|
+
first_assignment_at?: any;
|
|
787
782
|
first_close_at?: any;
|
|
788
|
-
last_assignment_at?: any;
|
|
789
|
-
last_assignment_admin_reply_at?: any;
|
|
790
783
|
last_admin_reply_at?: any;
|
|
784
|
+
last_assignment_admin_reply_at?: any;
|
|
785
|
+
last_assignment_at?: any;
|
|
791
786
|
last_close_at?: any;
|
|
792
787
|
last_closed_by_id?: any;
|
|
788
|
+
median_time_to_reply?: any;
|
|
789
|
+
time_to_admin_reply?: any;
|
|
790
|
+
time_to_assignment?: any;
|
|
791
|
+
time_to_first_close?: any;
|
|
792
|
+
time_to_last_close?: any;
|
|
793
793
|
}>;
|
|
794
794
|
conversation_rating: z.ZodAny;
|
|
795
795
|
teammates: z.ZodObject<{
|
|
@@ -834,12 +834,12 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
834
834
|
total_count: z.ZodNumber;
|
|
835
835
|
}, "strip", z.ZodTypeAny, {
|
|
836
836
|
type: string;
|
|
837
|
-
topics: any[];
|
|
838
837
|
total_count: number;
|
|
838
|
+
topics: any[];
|
|
839
839
|
}, {
|
|
840
840
|
type: string;
|
|
841
|
-
topics: any[];
|
|
842
841
|
total_count: number;
|
|
842
|
+
topics: any[];
|
|
843
843
|
}>;
|
|
844
844
|
ticket: z.ZodAny;
|
|
845
845
|
linked_objects: z.ZodObject<{
|
|
@@ -849,14 +849,14 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
849
849
|
has_more: z.ZodBoolean;
|
|
850
850
|
}, "strip", z.ZodTypeAny, {
|
|
851
851
|
type: string;
|
|
852
|
-
total_count: number;
|
|
853
852
|
data: any[];
|
|
854
853
|
has_more: boolean;
|
|
854
|
+
total_count: number;
|
|
855
855
|
}, {
|
|
856
856
|
type: string;
|
|
857
|
-
total_count: number;
|
|
858
857
|
data: any[];
|
|
859
858
|
has_more: boolean;
|
|
859
|
+
total_count: number;
|
|
860
860
|
}>;
|
|
861
861
|
ai_agent: z.ZodAny;
|
|
862
862
|
ai_agent_participated: z.ZodBoolean;
|
|
@@ -877,52 +877,52 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
877
877
|
name: z.ZodString;
|
|
878
878
|
email: z.ZodString;
|
|
879
879
|
}, "strip", z.ZodTypeAny, {
|
|
880
|
-
type: string;
|
|
881
880
|
id: string;
|
|
882
|
-
|
|
881
|
+
type: string;
|
|
883
882
|
email: string;
|
|
883
|
+
name: string;
|
|
884
884
|
}, {
|
|
885
|
-
type: string;
|
|
886
885
|
id: string;
|
|
887
|
-
|
|
886
|
+
type: string;
|
|
888
887
|
email: string;
|
|
888
|
+
name: string;
|
|
889
889
|
}>;
|
|
890
890
|
attachments: z.ZodArray<z.ZodAny, "many">;
|
|
891
891
|
external_id: z.ZodAny;
|
|
892
892
|
redacted: z.ZodBoolean;
|
|
893
893
|
}, "strip", z.ZodTypeAny, {
|
|
894
|
-
type: string;
|
|
895
894
|
id: string;
|
|
895
|
+
type: string;
|
|
896
896
|
created_at: number;
|
|
897
|
+
attachments: any[];
|
|
897
898
|
author: {
|
|
898
|
-
type: string;
|
|
899
899
|
id: string;
|
|
900
|
-
|
|
900
|
+
type: string;
|
|
901
901
|
email: string;
|
|
902
|
+
name: string;
|
|
902
903
|
};
|
|
903
|
-
attachments: any[];
|
|
904
904
|
redacted: boolean;
|
|
905
|
+
notified_at: number;
|
|
905
906
|
part_type: string;
|
|
906
907
|
updated_at: number;
|
|
907
|
-
notified_at: number;
|
|
908
908
|
external_id?: any;
|
|
909
909
|
body?: string | undefined;
|
|
910
910
|
assigned_to?: any;
|
|
911
911
|
}, {
|
|
912
|
-
type: string;
|
|
913
912
|
id: string;
|
|
913
|
+
type: string;
|
|
914
914
|
created_at: number;
|
|
915
|
+
attachments: any[];
|
|
915
916
|
author: {
|
|
916
|
-
type: string;
|
|
917
917
|
id: string;
|
|
918
|
-
|
|
918
|
+
type: string;
|
|
919
919
|
email: string;
|
|
920
|
+
name: string;
|
|
920
921
|
};
|
|
921
|
-
attachments: any[];
|
|
922
922
|
redacted: boolean;
|
|
923
|
+
notified_at: number;
|
|
923
924
|
part_type: string;
|
|
924
925
|
updated_at: number;
|
|
925
|
-
notified_at: number;
|
|
926
926
|
external_id?: any;
|
|
927
927
|
body?: string | undefined;
|
|
928
928
|
assigned_to?: any;
|
|
@@ -932,20 +932,20 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
932
932
|
type: string;
|
|
933
933
|
total_count: number;
|
|
934
934
|
conversation_parts: {
|
|
935
|
-
type: string;
|
|
936
935
|
id: string;
|
|
936
|
+
type: string;
|
|
937
937
|
created_at: number;
|
|
938
|
+
attachments: any[];
|
|
938
939
|
author: {
|
|
939
|
-
type: string;
|
|
940
940
|
id: string;
|
|
941
|
-
|
|
941
|
+
type: string;
|
|
942
942
|
email: string;
|
|
943
|
+
name: string;
|
|
943
944
|
};
|
|
944
|
-
attachments: any[];
|
|
945
945
|
redacted: boolean;
|
|
946
|
+
notified_at: number;
|
|
946
947
|
part_type: string;
|
|
947
948
|
updated_at: number;
|
|
948
|
-
notified_at: number;
|
|
949
949
|
external_id?: any;
|
|
950
950
|
body?: string | undefined;
|
|
951
951
|
assigned_to?: any;
|
|
@@ -954,79 +954,80 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
954
954
|
type: string;
|
|
955
955
|
total_count: number;
|
|
956
956
|
conversation_parts: {
|
|
957
|
-
type: string;
|
|
958
957
|
id: string;
|
|
958
|
+
type: string;
|
|
959
959
|
created_at: number;
|
|
960
|
+
attachments: any[];
|
|
960
961
|
author: {
|
|
961
|
-
type: string;
|
|
962
962
|
id: string;
|
|
963
|
-
|
|
963
|
+
type: string;
|
|
964
964
|
email: string;
|
|
965
|
+
name: string;
|
|
965
966
|
};
|
|
966
|
-
attachments: any[];
|
|
967
967
|
redacted: boolean;
|
|
968
|
+
notified_at: number;
|
|
968
969
|
part_type: string;
|
|
969
970
|
updated_at: number;
|
|
970
|
-
notified_at: number;
|
|
971
971
|
external_id?: any;
|
|
972
972
|
body?: string | undefined;
|
|
973
973
|
assigned_to?: any;
|
|
974
974
|
}[];
|
|
975
975
|
}>;
|
|
976
976
|
}>, "strip", z.ZodTypeAny, {
|
|
977
|
-
type: string;
|
|
978
977
|
id: string | number;
|
|
978
|
+
type: string;
|
|
979
979
|
created_at: number;
|
|
980
|
-
topics: {
|
|
981
|
-
type: string;
|
|
982
|
-
topics: any[];
|
|
983
|
-
total_count: number;
|
|
984
|
-
};
|
|
985
|
-
contacts: {
|
|
986
|
-
type: string;
|
|
987
|
-
contacts: {
|
|
988
|
-
type: string;
|
|
989
|
-
id: string;
|
|
990
|
-
external_id: string;
|
|
991
|
-
}[];
|
|
992
|
-
};
|
|
993
|
-
updated_at: number;
|
|
994
980
|
tags: {
|
|
995
981
|
type: string;
|
|
996
982
|
tags: {
|
|
997
|
-
type: string;
|
|
998
983
|
id: string;
|
|
984
|
+
type: string;
|
|
999
985
|
name: string;
|
|
1000
986
|
applied_at: number;
|
|
1001
987
|
applied_by: {
|
|
1002
|
-
type: string;
|
|
1003
988
|
id: string;
|
|
989
|
+
type: string;
|
|
1004
990
|
};
|
|
1005
991
|
}[];
|
|
1006
992
|
};
|
|
993
|
+
topics: {
|
|
994
|
+
type: string;
|
|
995
|
+
total_count: number;
|
|
996
|
+
topics: any[];
|
|
997
|
+
};
|
|
998
|
+
contacts: {
|
|
999
|
+
type: string;
|
|
1000
|
+
contacts: {
|
|
1001
|
+
external_id: string;
|
|
1002
|
+
id: string;
|
|
1003
|
+
type: string;
|
|
1004
|
+
}[];
|
|
1005
|
+
};
|
|
1006
|
+
updated_at: number;
|
|
1007
1007
|
conversation_parts: {
|
|
1008
1008
|
type: string;
|
|
1009
1009
|
total_count: number;
|
|
1010
1010
|
conversation_parts: {
|
|
1011
|
-
type: string;
|
|
1012
1011
|
id: string;
|
|
1012
|
+
type: string;
|
|
1013
1013
|
created_at: number;
|
|
1014
|
+
attachments: any[];
|
|
1014
1015
|
author: {
|
|
1015
|
-
type: string;
|
|
1016
1016
|
id: string;
|
|
1017
|
-
|
|
1017
|
+
type: string;
|
|
1018
1018
|
email: string;
|
|
1019
|
+
name: string;
|
|
1019
1020
|
};
|
|
1020
|
-
attachments: any[];
|
|
1021
1021
|
redacted: boolean;
|
|
1022
|
+
notified_at: number;
|
|
1022
1023
|
part_type: string;
|
|
1023
1024
|
updated_at: number;
|
|
1024
|
-
notified_at: number;
|
|
1025
1025
|
external_id?: any;
|
|
1026
1026
|
body?: string | undefined;
|
|
1027
1027
|
assigned_to?: any;
|
|
1028
1028
|
}[];
|
|
1029
1029
|
};
|
|
1030
|
+
ai_agent_participated: boolean;
|
|
1030
1031
|
custom_attributes: {
|
|
1031
1032
|
activity_name?: string | undefined;
|
|
1032
1033
|
activity_module?: string | undefined;
|
|
@@ -1038,128 +1039,128 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1038
1039
|
} & {
|
|
1039
1040
|
[k: string]: string | number | boolean;
|
|
1040
1041
|
};
|
|
1041
|
-
|
|
1042
|
-
|
|
1042
|
+
first_contact_reply: {
|
|
1043
|
+
type?: string | null | undefined;
|
|
1044
|
+
created_at?: number | null | undefined;
|
|
1045
|
+
url?: string | null | undefined;
|
|
1046
|
+
};
|
|
1047
|
+
linked_objects: {
|
|
1043
1048
|
type: string;
|
|
1049
|
+
data: any[];
|
|
1050
|
+
has_more: boolean;
|
|
1051
|
+
total_count: number;
|
|
1052
|
+
};
|
|
1053
|
+
open: boolean;
|
|
1054
|
+
priority: string;
|
|
1055
|
+
read: boolean;
|
|
1056
|
+
source: {
|
|
1044
1057
|
id: string;
|
|
1058
|
+
type: string;
|
|
1045
1059
|
author: {
|
|
1046
|
-
type: string;
|
|
1047
1060
|
id: string;
|
|
1048
|
-
|
|
1061
|
+
type: string;
|
|
1049
1062
|
email: string;
|
|
1063
|
+
name: string;
|
|
1050
1064
|
};
|
|
1051
1065
|
url?: string | null | undefined;
|
|
1052
|
-
delivered_as?: string | null | undefined;
|
|
1053
|
-
subject?: string | null | undefined;
|
|
1054
|
-
body?: string | null | undefined;
|
|
1055
1066
|
attachments?: any[] | null | undefined;
|
|
1067
|
+
body?: string | null | undefined;
|
|
1068
|
+
delivered_as?: string | null | undefined;
|
|
1056
1069
|
redacted?: boolean | null | undefined;
|
|
1070
|
+
subject?: string | null | undefined;
|
|
1057
1071
|
};
|
|
1058
|
-
first_contact_reply: {
|
|
1059
|
-
type?: string | null | undefined;
|
|
1060
|
-
created_at?: number | null | undefined;
|
|
1061
|
-
url?: string | null | undefined;
|
|
1062
|
-
};
|
|
1063
|
-
open: boolean;
|
|
1064
1072
|
state: string;
|
|
1065
|
-
read: boolean;
|
|
1066
|
-
priority: string;
|
|
1067
1073
|
statistics: {
|
|
1068
1074
|
type: string;
|
|
1069
|
-
first_contact_reply_at: number;
|
|
1070
|
-
last_contact_reply_at: number;
|
|
1071
|
-
count_reopens: number;
|
|
1072
1075
|
count_assignments: number;
|
|
1073
1076
|
count_conversation_parts: number;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
time_to_last_close?: any;
|
|
1078
|
-
median_time_to_reply?: any;
|
|
1079
|
-
first_assignment_at?: any;
|
|
1077
|
+
count_reopens: number;
|
|
1078
|
+
first_contact_reply_at: number;
|
|
1079
|
+
last_contact_reply_at: number;
|
|
1080
1080
|
first_admin_reply_at?: any;
|
|
1081
|
+
first_assignment_at?: any;
|
|
1081
1082
|
first_close_at?: any;
|
|
1082
|
-
last_assignment_at?: any;
|
|
1083
|
-
last_assignment_admin_reply_at?: any;
|
|
1084
1083
|
last_admin_reply_at?: any;
|
|
1084
|
+
last_assignment_admin_reply_at?: any;
|
|
1085
|
+
last_assignment_at?: any;
|
|
1085
1086
|
last_close_at?: any;
|
|
1086
1087
|
last_closed_by_id?: any;
|
|
1088
|
+
median_time_to_reply?: any;
|
|
1089
|
+
time_to_admin_reply?: any;
|
|
1090
|
+
time_to_assignment?: any;
|
|
1091
|
+
time_to_first_close?: any;
|
|
1092
|
+
time_to_last_close?: any;
|
|
1087
1093
|
};
|
|
1088
1094
|
teammates: {
|
|
1089
1095
|
type: string;
|
|
1090
1096
|
admins: any[];
|
|
1091
1097
|
};
|
|
1092
1098
|
title: string;
|
|
1093
|
-
|
|
1094
|
-
type: string;
|
|
1095
|
-
total_count: number;
|
|
1096
|
-
data: any[];
|
|
1097
|
-
has_more: boolean;
|
|
1098
|
-
};
|
|
1099
|
-
ai_agent_participated: boolean;
|
|
1100
|
-
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
1101
|
-
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
1102
|
-
order?: number | null | undefined;
|
|
1103
|
-
snoozed_until?: any;
|
|
1099
|
+
waiting_since: number;
|
|
1104
1100
|
admin_assignee_id?: any;
|
|
1105
|
-
|
|
1106
|
-
sla_applied?: any;
|
|
1101
|
+
ai_agent?: any;
|
|
1107
1102
|
conversation_rating?: any;
|
|
1103
|
+
sla_applied?: any;
|
|
1104
|
+
snoozed_until?: any;
|
|
1105
|
+
team_assignee_id?: any;
|
|
1108
1106
|
ticket?: any;
|
|
1109
|
-
|
|
1107
|
+
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
1108
|
+
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
1109
|
+
order?: number | null | undefined;
|
|
1110
1110
|
}, {
|
|
1111
1111
|
type: string;
|
|
1112
1112
|
created_at: number;
|
|
1113
|
-
topics: {
|
|
1114
|
-
type: string;
|
|
1115
|
-
topics: any[];
|
|
1116
|
-
total_count: number;
|
|
1117
|
-
};
|
|
1118
|
-
contacts: {
|
|
1119
|
-
type: string;
|
|
1120
|
-
contacts: {
|
|
1121
|
-
type: string;
|
|
1122
|
-
id: string;
|
|
1123
|
-
external_id: string;
|
|
1124
|
-
}[];
|
|
1125
|
-
};
|
|
1126
|
-
updated_at: number;
|
|
1127
1113
|
tags: {
|
|
1128
1114
|
type: string;
|
|
1129
1115
|
tags: {
|
|
1130
|
-
type: string;
|
|
1131
1116
|
id: string;
|
|
1117
|
+
type: string;
|
|
1132
1118
|
name: string;
|
|
1133
1119
|
applied_at: number;
|
|
1134
1120
|
applied_by: {
|
|
1135
|
-
type: string;
|
|
1136
1121
|
id: string;
|
|
1122
|
+
type: string;
|
|
1137
1123
|
};
|
|
1138
1124
|
}[];
|
|
1139
1125
|
};
|
|
1126
|
+
topics: {
|
|
1127
|
+
type: string;
|
|
1128
|
+
total_count: number;
|
|
1129
|
+
topics: any[];
|
|
1130
|
+
};
|
|
1131
|
+
contacts: {
|
|
1132
|
+
type: string;
|
|
1133
|
+
contacts: {
|
|
1134
|
+
external_id: string;
|
|
1135
|
+
id: string;
|
|
1136
|
+
type: string;
|
|
1137
|
+
}[];
|
|
1138
|
+
};
|
|
1139
|
+
updated_at: number;
|
|
1140
1140
|
conversation_parts: {
|
|
1141
1141
|
type: string;
|
|
1142
1142
|
total_count: number;
|
|
1143
1143
|
conversation_parts: {
|
|
1144
|
-
type: string;
|
|
1145
1144
|
id: string;
|
|
1145
|
+
type: string;
|
|
1146
1146
|
created_at: number;
|
|
1147
|
+
attachments: any[];
|
|
1147
1148
|
author: {
|
|
1148
|
-
type: string;
|
|
1149
1149
|
id: string;
|
|
1150
|
-
|
|
1150
|
+
type: string;
|
|
1151
1151
|
email: string;
|
|
1152
|
+
name: string;
|
|
1152
1153
|
};
|
|
1153
|
-
attachments: any[];
|
|
1154
1154
|
redacted: boolean;
|
|
1155
|
+
notified_at: number;
|
|
1155
1156
|
part_type: string;
|
|
1156
1157
|
updated_at: number;
|
|
1157
|
-
notified_at: number;
|
|
1158
1158
|
external_id?: any;
|
|
1159
1159
|
body?: string | undefined;
|
|
1160
1160
|
assigned_to?: any;
|
|
1161
1161
|
}[];
|
|
1162
1162
|
};
|
|
1163
|
+
ai_agent_participated: boolean;
|
|
1163
1164
|
custom_attributes: {
|
|
1164
1165
|
activity_name?: string | undefined;
|
|
1165
1166
|
activity_module?: string | undefined;
|
|
@@ -1171,76 +1172,75 @@ declare const ConversationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1171
1172
|
} & {
|
|
1172
1173
|
[k: string]: string | number | boolean;
|
|
1173
1174
|
};
|
|
1174
|
-
|
|
1175
|
-
|
|
1175
|
+
first_contact_reply: {
|
|
1176
|
+
type?: string | null | undefined;
|
|
1177
|
+
created_at?: number | null | undefined;
|
|
1178
|
+
url?: string | null | undefined;
|
|
1179
|
+
};
|
|
1180
|
+
linked_objects: {
|
|
1176
1181
|
type: string;
|
|
1182
|
+
data: any[];
|
|
1183
|
+
has_more: boolean;
|
|
1184
|
+
total_count: number;
|
|
1185
|
+
};
|
|
1186
|
+
open: boolean;
|
|
1187
|
+
priority: string;
|
|
1188
|
+
read: boolean;
|
|
1189
|
+
source: {
|
|
1177
1190
|
id: string;
|
|
1191
|
+
type: string;
|
|
1178
1192
|
author: {
|
|
1179
|
-
type: string;
|
|
1180
1193
|
id: string;
|
|
1181
|
-
|
|
1194
|
+
type: string;
|
|
1182
1195
|
email: string;
|
|
1196
|
+
name: string;
|
|
1183
1197
|
};
|
|
1184
1198
|
url?: string | null | undefined;
|
|
1185
|
-
delivered_as?: string | null | undefined;
|
|
1186
|
-
subject?: string | null | undefined;
|
|
1187
|
-
body?: string | null | undefined;
|
|
1188
1199
|
attachments?: any[] | null | undefined;
|
|
1200
|
+
body?: string | null | undefined;
|
|
1201
|
+
delivered_as?: string | null | undefined;
|
|
1189
1202
|
redacted?: boolean | null | undefined;
|
|
1203
|
+
subject?: string | null | undefined;
|
|
1190
1204
|
};
|
|
1191
|
-
first_contact_reply: {
|
|
1192
|
-
type?: string | null | undefined;
|
|
1193
|
-
created_at?: number | null | undefined;
|
|
1194
|
-
url?: string | null | undefined;
|
|
1195
|
-
};
|
|
1196
|
-
open: boolean;
|
|
1197
1205
|
state: string;
|
|
1198
|
-
read: boolean;
|
|
1199
|
-
priority: string;
|
|
1200
1206
|
statistics: {
|
|
1201
1207
|
type: string;
|
|
1202
|
-
first_contact_reply_at: number;
|
|
1203
|
-
last_contact_reply_at: number;
|
|
1204
|
-
count_reopens: number;
|
|
1205
1208
|
count_assignments: number;
|
|
1206
1209
|
count_conversation_parts: number;
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
time_to_last_close?: any;
|
|
1211
|
-
median_time_to_reply?: any;
|
|
1212
|
-
first_assignment_at?: any;
|
|
1210
|
+
count_reopens: number;
|
|
1211
|
+
first_contact_reply_at: number;
|
|
1212
|
+
last_contact_reply_at: number;
|
|
1213
1213
|
first_admin_reply_at?: any;
|
|
1214
|
+
first_assignment_at?: any;
|
|
1214
1215
|
first_close_at?: any;
|
|
1215
|
-
last_assignment_at?: any;
|
|
1216
|
-
last_assignment_admin_reply_at?: any;
|
|
1217
1216
|
last_admin_reply_at?: any;
|
|
1217
|
+
last_assignment_admin_reply_at?: any;
|
|
1218
|
+
last_assignment_at?: any;
|
|
1218
1219
|
last_close_at?: any;
|
|
1219
1220
|
last_closed_by_id?: any;
|
|
1221
|
+
median_time_to_reply?: any;
|
|
1222
|
+
time_to_admin_reply?: any;
|
|
1223
|
+
time_to_assignment?: any;
|
|
1224
|
+
time_to_first_close?: any;
|
|
1225
|
+
time_to_last_close?: any;
|
|
1220
1226
|
};
|
|
1221
1227
|
teammates: {
|
|
1222
1228
|
type: string;
|
|
1223
1229
|
admins: any[];
|
|
1224
1230
|
};
|
|
1225
1231
|
title: string;
|
|
1226
|
-
|
|
1227
|
-
type: string;
|
|
1228
|
-
total_count: number;
|
|
1229
|
-
data: any[];
|
|
1230
|
-
has_more: boolean;
|
|
1231
|
-
};
|
|
1232
|
-
ai_agent_participated: boolean;
|
|
1232
|
+
waiting_since: number;
|
|
1233
1233
|
id?: unknown;
|
|
1234
|
-
createdAt?: unknown;
|
|
1235
|
-
updatedAt?: unknown;
|
|
1236
|
-
order?: number | null | undefined;
|
|
1237
|
-
snoozed_until?: any;
|
|
1238
1234
|
admin_assignee_id?: any;
|
|
1239
|
-
|
|
1240
|
-
sla_applied?: any;
|
|
1235
|
+
ai_agent?: any;
|
|
1241
1236
|
conversation_rating?: any;
|
|
1237
|
+
sla_applied?: any;
|
|
1238
|
+
snoozed_until?: any;
|
|
1239
|
+
team_assignee_id?: any;
|
|
1242
1240
|
ticket?: any;
|
|
1243
|
-
|
|
1241
|
+
createdAt?: unknown;
|
|
1242
|
+
updatedAt?: unknown;
|
|
1243
|
+
order?: number | null | undefined;
|
|
1244
1244
|
}>;
|
|
1245
1245
|
type Conversation = z.infer<typeof ConversationSchema>;
|
|
1246
1246
|
|