@kl1/contracts 1.1.26-uat → 1.1.26

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 (64) hide show
  1. package/dist/index.js +2130 -1984
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2127 -1984
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/business-calendar/index.d.ts +820 -0
  6. package/dist/src/business-calendar/index.d.ts.map +1 -0
  7. package/dist/src/business-calendar/schema.d.ts +180 -0
  8. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  9. package/dist/src/business-calendar/validation.d.ts +210 -0
  10. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  11. package/dist/src/chat/index.d.ts +2424 -102
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +413 -18
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +448 -0
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/contact/index.d.ts +3 -0
  18. package/dist/src/contact/index.d.ts.map +1 -1
  19. package/dist/src/contact/schema.d.ts.map +1 -1
  20. package/dist/src/contact/validation.d.ts +3 -0
  21. package/dist/src/contact/validation.d.ts.map +1 -1
  22. package/dist/src/contract.d.ts +167810 -135163
  23. package/dist/src/contract.d.ts.map +1 -1
  24. package/dist/src/cx-log/index.d.ts +111 -0
  25. package/dist/src/cx-log/index.d.ts.map +1 -1
  26. package/dist/src/cx-log/schema.d.ts +167 -0
  27. package/dist/src/cx-log/schema.d.ts.map +1 -1
  28. package/dist/src/instagram/index.d.ts +294 -0
  29. package/dist/src/instagram/index.d.ts.map +1 -1
  30. package/dist/src/line/index.d.ts +294 -0
  31. package/dist/src/line/index.d.ts.map +1 -1
  32. package/dist/src/mail/mail-contract.d.ts +22910 -2257
  33. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  34. package/dist/src/mail/message-contract.d.ts +4587 -271
  35. package/dist/src/mail/message-contract.d.ts.map +1 -1
  36. package/dist/src/mail/room-contract.d.ts +17436 -1099
  37. package/dist/src/mail/room-contract.d.ts.map +1 -1
  38. package/dist/src/mail/schemas/message-validation.schema.d.ts +4 -4
  39. package/dist/src/mail/schemas/message.schema.d.ts +756 -40
  40. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  41. package/dist/src/mail/schemas/room-validation.schema.d.ts +5710 -344
  42. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  43. package/dist/src/mail/schemas/room.schema.d.ts +5817 -426
  44. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  45. package/dist/src/messenger/index.d.ts +294 -0
  46. package/dist/src/messenger/index.d.ts.map +1 -1
  47. package/dist/src/telephony-cdr/call-report.schema.d.ts +62 -62
  48. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -1
  49. package/dist/src/telephony-cdr/index.d.ts +1 -622
  50. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  51. package/dist/src/viber/index.d.ts +294 -0
  52. package/dist/src/viber/index.d.ts.map +1 -1
  53. package/dist/src/webchat/index.d.ts +294 -0
  54. package/dist/src/webchat/index.d.ts.map +1 -1
  55. package/dist/src/workflow-rule/index.d.ts +7305 -0
  56. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  57. package/dist/src/workflow-rule/schema.d.ts +27 -0
  58. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  59. package/dist/src/wrap-up-form/index.d.ts +744 -3
  60. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  61. package/dist/src/wrap-up-form/schema.d.ts +58 -0
  62. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  63. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  64. package/package.json +1 -1
@@ -24,88 +24,620 @@ export declare const MessageSchema: z.ZodObject<{
24
24
  createdAt: z.ZodDate;
25
25
  updatedAt: z.ZodDate;
26
26
  deletedAt: z.ZodNullable<z.ZodDate>;
27
- name: z.ZodString;
28
- address: z.ZodString;
27
+ roomId: z.ZodString;
28
+ messageId: z.ZodString;
29
+ mailUserId: z.ZodString;
30
+ mailUser: z.ZodObject<{
31
+ id: z.ZodString;
32
+ createdAt: z.ZodDate;
33
+ updatedAt: z.ZodDate;
34
+ deletedAt: z.ZodNullable<z.ZodDate>;
35
+ name: z.ZodString;
36
+ address: z.ZodString;
37
+ contactId: z.ZodString;
38
+ contact: z.ZodObject<{
39
+ id: z.ZodString;
40
+ createdAt: z.ZodDate;
41
+ updatedAt: z.ZodDate;
42
+ deletedAt: z.ZodNullable<z.ZodDate>;
43
+ name: z.ZodString;
44
+ address: z.ZodNullable<z.ZodString>;
45
+ channel: z.ZodNullable<z.ZodString>;
46
+ notes: z.ZodNullable<z.ZodString>;
47
+ contactProfile: z.ZodNullable<z.ZodString>;
48
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ id: string;
51
+ channel: string | null;
52
+ address: string | null;
53
+ name: string;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ deletedAt: Date | null;
57
+ notes: string | null;
58
+ contactProfile: string | null;
59
+ socialProfileUrl: string | null;
60
+ }, {
61
+ id: string;
62
+ channel: string | null;
63
+ address: string | null;
64
+ name: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ deletedAt: Date | null;
68
+ notes: string | null;
69
+ contactProfile: string | null;
70
+ socialProfileUrl: string | null;
71
+ }>;
72
+ isNewContact: z.ZodBoolean;
73
+ }, "strip", z.ZodTypeAny, {
74
+ id: string;
75
+ address: string;
76
+ name: string;
77
+ createdAt: Date;
78
+ updatedAt: Date;
79
+ deletedAt: Date | null;
80
+ contact: {
81
+ id: string;
82
+ channel: string | null;
83
+ address: string | null;
84
+ name: string;
85
+ createdAt: Date;
86
+ updatedAt: Date;
87
+ deletedAt: Date | null;
88
+ notes: string | null;
89
+ contactProfile: string | null;
90
+ socialProfileUrl: string | null;
91
+ };
92
+ contactId: string;
93
+ isNewContact: boolean;
94
+ }, {
95
+ id: string;
96
+ address: string;
97
+ name: string;
98
+ createdAt: Date;
99
+ updatedAt: Date;
100
+ deletedAt: Date | null;
101
+ contact: {
102
+ id: string;
103
+ channel: string | null;
104
+ address: string | null;
105
+ name: string;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ deletedAt: Date | null;
109
+ notes: string | null;
110
+ contactProfile: string | null;
111
+ socialProfileUrl: string | null;
112
+ };
113
+ contactId: string;
114
+ isNewContact: boolean;
115
+ }>;
29
116
  }, "strip", z.ZodTypeAny, {
30
117
  id: string;
31
- address: string;
32
- name: string;
33
118
  createdAt: Date;
34
119
  updatedAt: Date;
35
120
  deletedAt: Date | null;
121
+ roomId: string;
122
+ messageId: string;
123
+ mailUserId: string;
124
+ mailUser: {
125
+ id: string;
126
+ address: string;
127
+ name: string;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ deletedAt: Date | null;
131
+ contact: {
132
+ id: string;
133
+ channel: string | null;
134
+ address: string | null;
135
+ name: string;
136
+ createdAt: Date;
137
+ updatedAt: Date;
138
+ deletedAt: Date | null;
139
+ notes: string | null;
140
+ contactProfile: string | null;
141
+ socialProfileUrl: string | null;
142
+ };
143
+ contactId: string;
144
+ isNewContact: boolean;
145
+ };
36
146
  }, {
37
147
  id: string;
38
- address: string;
39
- name: string;
40
148
  createdAt: Date;
41
149
  updatedAt: Date;
42
150
  deletedAt: Date | null;
151
+ roomId: string;
152
+ messageId: string;
153
+ mailUserId: string;
154
+ mailUser: {
155
+ id: string;
156
+ address: string;
157
+ name: string;
158
+ createdAt: Date;
159
+ updatedAt: Date;
160
+ deletedAt: Date | null;
161
+ contact: {
162
+ id: string;
163
+ channel: string | null;
164
+ address: string | null;
165
+ name: string;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ deletedAt: Date | null;
169
+ notes: string | null;
170
+ contactProfile: string | null;
171
+ socialProfileUrl: string | null;
172
+ };
173
+ contactId: string;
174
+ isNewContact: boolean;
175
+ };
43
176
  }>, "many">;
44
177
  to: z.ZodArray<z.ZodObject<{
45
178
  id: z.ZodString;
46
179
  createdAt: z.ZodDate;
47
180
  updatedAt: z.ZodDate;
48
181
  deletedAt: z.ZodNullable<z.ZodDate>;
49
- name: z.ZodString;
50
- address: z.ZodString;
182
+ roomId: z.ZodString;
183
+ messageId: z.ZodString;
184
+ mailUserId: z.ZodString;
185
+ mailUser: z.ZodObject<{
186
+ id: z.ZodString;
187
+ createdAt: z.ZodDate;
188
+ updatedAt: z.ZodDate;
189
+ deletedAt: z.ZodNullable<z.ZodDate>;
190
+ name: z.ZodString;
191
+ address: z.ZodString;
192
+ contactId: z.ZodString;
193
+ contact: z.ZodObject<{
194
+ id: z.ZodString;
195
+ createdAt: z.ZodDate;
196
+ updatedAt: z.ZodDate;
197
+ deletedAt: z.ZodNullable<z.ZodDate>;
198
+ name: z.ZodString;
199
+ address: z.ZodNullable<z.ZodString>;
200
+ channel: z.ZodNullable<z.ZodString>;
201
+ notes: z.ZodNullable<z.ZodString>;
202
+ contactProfile: z.ZodNullable<z.ZodString>;
203
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ channel: string | null;
207
+ address: string | null;
208
+ name: string;
209
+ createdAt: Date;
210
+ updatedAt: Date;
211
+ deletedAt: Date | null;
212
+ notes: string | null;
213
+ contactProfile: string | null;
214
+ socialProfileUrl: string | null;
215
+ }, {
216
+ id: string;
217
+ channel: string | null;
218
+ address: string | null;
219
+ name: string;
220
+ createdAt: Date;
221
+ updatedAt: Date;
222
+ deletedAt: Date | null;
223
+ notes: string | null;
224
+ contactProfile: string | null;
225
+ socialProfileUrl: string | null;
226
+ }>;
227
+ isNewContact: z.ZodBoolean;
228
+ }, "strip", z.ZodTypeAny, {
229
+ id: string;
230
+ address: string;
231
+ name: string;
232
+ createdAt: Date;
233
+ updatedAt: Date;
234
+ deletedAt: Date | null;
235
+ contact: {
236
+ id: string;
237
+ channel: string | null;
238
+ address: string | null;
239
+ name: string;
240
+ createdAt: Date;
241
+ updatedAt: Date;
242
+ deletedAt: Date | null;
243
+ notes: string | null;
244
+ contactProfile: string | null;
245
+ socialProfileUrl: string | null;
246
+ };
247
+ contactId: string;
248
+ isNewContact: boolean;
249
+ }, {
250
+ id: string;
251
+ address: string;
252
+ name: string;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ deletedAt: Date | null;
256
+ contact: {
257
+ id: string;
258
+ channel: string | null;
259
+ address: string | null;
260
+ name: string;
261
+ createdAt: Date;
262
+ updatedAt: Date;
263
+ deletedAt: Date | null;
264
+ notes: string | null;
265
+ contactProfile: string | null;
266
+ socialProfileUrl: string | null;
267
+ };
268
+ contactId: string;
269
+ isNewContact: boolean;
270
+ }>;
51
271
  }, "strip", z.ZodTypeAny, {
52
272
  id: string;
53
- address: string;
54
- name: string;
55
273
  createdAt: Date;
56
274
  updatedAt: Date;
57
275
  deletedAt: Date | null;
276
+ roomId: string;
277
+ messageId: string;
278
+ mailUserId: string;
279
+ mailUser: {
280
+ id: string;
281
+ address: string;
282
+ name: string;
283
+ createdAt: Date;
284
+ updatedAt: Date;
285
+ deletedAt: Date | null;
286
+ contact: {
287
+ id: string;
288
+ channel: string | null;
289
+ address: string | null;
290
+ name: string;
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ deletedAt: Date | null;
294
+ notes: string | null;
295
+ contactProfile: string | null;
296
+ socialProfileUrl: string | null;
297
+ };
298
+ contactId: string;
299
+ isNewContact: boolean;
300
+ };
58
301
  }, {
59
302
  id: string;
60
- address: string;
61
- name: string;
62
303
  createdAt: Date;
63
304
  updatedAt: Date;
64
305
  deletedAt: Date | null;
306
+ roomId: string;
307
+ messageId: string;
308
+ mailUserId: string;
309
+ mailUser: {
310
+ id: string;
311
+ address: string;
312
+ name: string;
313
+ createdAt: Date;
314
+ updatedAt: Date;
315
+ deletedAt: Date | null;
316
+ contact: {
317
+ id: string;
318
+ channel: string | null;
319
+ address: string | null;
320
+ name: string;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ deletedAt: Date | null;
324
+ notes: string | null;
325
+ contactProfile: string | null;
326
+ socialProfileUrl: string | null;
327
+ };
328
+ contactId: string;
329
+ isNewContact: boolean;
330
+ };
65
331
  }>, "many">;
66
332
  cc: z.ZodArray<z.ZodObject<{
67
333
  id: z.ZodString;
68
334
  createdAt: z.ZodDate;
69
335
  updatedAt: z.ZodDate;
70
336
  deletedAt: z.ZodNullable<z.ZodDate>;
71
- name: z.ZodString;
72
- address: z.ZodString;
337
+ roomId: z.ZodString;
338
+ messageId: z.ZodString;
339
+ mailUserId: z.ZodString;
340
+ mailUser: z.ZodObject<{
341
+ id: z.ZodString;
342
+ createdAt: z.ZodDate;
343
+ updatedAt: z.ZodDate;
344
+ deletedAt: z.ZodNullable<z.ZodDate>;
345
+ name: z.ZodString;
346
+ address: z.ZodString;
347
+ contactId: z.ZodString;
348
+ contact: z.ZodObject<{
349
+ id: z.ZodString;
350
+ createdAt: z.ZodDate;
351
+ updatedAt: z.ZodDate;
352
+ deletedAt: z.ZodNullable<z.ZodDate>;
353
+ name: z.ZodString;
354
+ address: z.ZodNullable<z.ZodString>;
355
+ channel: z.ZodNullable<z.ZodString>;
356
+ notes: z.ZodNullable<z.ZodString>;
357
+ contactProfile: z.ZodNullable<z.ZodString>;
358
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ id: string;
361
+ channel: string | null;
362
+ address: string | null;
363
+ name: string;
364
+ createdAt: Date;
365
+ updatedAt: Date;
366
+ deletedAt: Date | null;
367
+ notes: string | null;
368
+ contactProfile: string | null;
369
+ socialProfileUrl: string | null;
370
+ }, {
371
+ id: string;
372
+ channel: string | null;
373
+ address: string | null;
374
+ name: string;
375
+ createdAt: Date;
376
+ updatedAt: Date;
377
+ deletedAt: Date | null;
378
+ notes: string | null;
379
+ contactProfile: string | null;
380
+ socialProfileUrl: string | null;
381
+ }>;
382
+ isNewContact: z.ZodBoolean;
383
+ }, "strip", z.ZodTypeAny, {
384
+ id: string;
385
+ address: string;
386
+ name: string;
387
+ createdAt: Date;
388
+ updatedAt: Date;
389
+ deletedAt: Date | null;
390
+ contact: {
391
+ id: string;
392
+ channel: string | null;
393
+ address: string | null;
394
+ name: string;
395
+ createdAt: Date;
396
+ updatedAt: Date;
397
+ deletedAt: Date | null;
398
+ notes: string | null;
399
+ contactProfile: string | null;
400
+ socialProfileUrl: string | null;
401
+ };
402
+ contactId: string;
403
+ isNewContact: boolean;
404
+ }, {
405
+ id: string;
406
+ address: string;
407
+ name: string;
408
+ createdAt: Date;
409
+ updatedAt: Date;
410
+ deletedAt: Date | null;
411
+ contact: {
412
+ id: string;
413
+ channel: string | null;
414
+ address: string | null;
415
+ name: string;
416
+ createdAt: Date;
417
+ updatedAt: Date;
418
+ deletedAt: Date | null;
419
+ notes: string | null;
420
+ contactProfile: string | null;
421
+ socialProfileUrl: string | null;
422
+ };
423
+ contactId: string;
424
+ isNewContact: boolean;
425
+ }>;
73
426
  }, "strip", z.ZodTypeAny, {
74
427
  id: string;
75
- address: string;
76
- name: string;
77
428
  createdAt: Date;
78
429
  updatedAt: Date;
79
430
  deletedAt: Date | null;
431
+ roomId: string;
432
+ messageId: string;
433
+ mailUserId: string;
434
+ mailUser: {
435
+ id: string;
436
+ address: string;
437
+ name: string;
438
+ createdAt: Date;
439
+ updatedAt: Date;
440
+ deletedAt: Date | null;
441
+ contact: {
442
+ id: string;
443
+ channel: string | null;
444
+ address: string | null;
445
+ name: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ deletedAt: Date | null;
449
+ notes: string | null;
450
+ contactProfile: string | null;
451
+ socialProfileUrl: string | null;
452
+ };
453
+ contactId: string;
454
+ isNewContact: boolean;
455
+ };
80
456
  }, {
81
457
  id: string;
82
- address: string;
83
- name: string;
84
458
  createdAt: Date;
85
459
  updatedAt: Date;
86
460
  deletedAt: Date | null;
461
+ roomId: string;
462
+ messageId: string;
463
+ mailUserId: string;
464
+ mailUser: {
465
+ id: string;
466
+ address: string;
467
+ name: string;
468
+ createdAt: Date;
469
+ updatedAt: Date;
470
+ deletedAt: Date | null;
471
+ contact: {
472
+ id: string;
473
+ channel: string | null;
474
+ address: string | null;
475
+ name: string;
476
+ createdAt: Date;
477
+ updatedAt: Date;
478
+ deletedAt: Date | null;
479
+ notes: string | null;
480
+ contactProfile: string | null;
481
+ socialProfileUrl: string | null;
482
+ };
483
+ contactId: string;
484
+ isNewContact: boolean;
485
+ };
87
486
  }>, "many">;
88
487
  bcc: z.ZodArray<z.ZodObject<{
89
488
  id: z.ZodString;
90
489
  createdAt: z.ZodDate;
91
490
  updatedAt: z.ZodDate;
92
491
  deletedAt: z.ZodNullable<z.ZodDate>;
93
- name: z.ZodString;
94
- address: z.ZodString;
492
+ roomId: z.ZodString;
493
+ messageId: z.ZodString;
494
+ mailUserId: z.ZodString;
495
+ mailUser: z.ZodObject<{
496
+ id: z.ZodString;
497
+ createdAt: z.ZodDate;
498
+ updatedAt: z.ZodDate;
499
+ deletedAt: z.ZodNullable<z.ZodDate>;
500
+ name: z.ZodString;
501
+ address: z.ZodString;
502
+ contactId: z.ZodString;
503
+ contact: z.ZodObject<{
504
+ id: z.ZodString;
505
+ createdAt: z.ZodDate;
506
+ updatedAt: z.ZodDate;
507
+ deletedAt: z.ZodNullable<z.ZodDate>;
508
+ name: z.ZodString;
509
+ address: z.ZodNullable<z.ZodString>;
510
+ channel: z.ZodNullable<z.ZodString>;
511
+ notes: z.ZodNullable<z.ZodString>;
512
+ contactProfile: z.ZodNullable<z.ZodString>;
513
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ id: string;
516
+ channel: string | null;
517
+ address: string | null;
518
+ name: string;
519
+ createdAt: Date;
520
+ updatedAt: Date;
521
+ deletedAt: Date | null;
522
+ notes: string | null;
523
+ contactProfile: string | null;
524
+ socialProfileUrl: string | null;
525
+ }, {
526
+ id: string;
527
+ channel: string | null;
528
+ address: string | null;
529
+ name: string;
530
+ createdAt: Date;
531
+ updatedAt: Date;
532
+ deletedAt: Date | null;
533
+ notes: string | null;
534
+ contactProfile: string | null;
535
+ socialProfileUrl: string | null;
536
+ }>;
537
+ isNewContact: z.ZodBoolean;
538
+ }, "strip", z.ZodTypeAny, {
539
+ id: string;
540
+ address: string;
541
+ name: string;
542
+ createdAt: Date;
543
+ updatedAt: Date;
544
+ deletedAt: Date | null;
545
+ contact: {
546
+ id: string;
547
+ channel: string | null;
548
+ address: string | null;
549
+ name: string;
550
+ createdAt: Date;
551
+ updatedAt: Date;
552
+ deletedAt: Date | null;
553
+ notes: string | null;
554
+ contactProfile: string | null;
555
+ socialProfileUrl: string | null;
556
+ };
557
+ contactId: string;
558
+ isNewContact: boolean;
559
+ }, {
560
+ id: string;
561
+ address: string;
562
+ name: string;
563
+ createdAt: Date;
564
+ updatedAt: Date;
565
+ deletedAt: Date | null;
566
+ contact: {
567
+ id: string;
568
+ channel: string | null;
569
+ address: string | null;
570
+ name: string;
571
+ createdAt: Date;
572
+ updatedAt: Date;
573
+ deletedAt: Date | null;
574
+ notes: string | null;
575
+ contactProfile: string | null;
576
+ socialProfileUrl: string | null;
577
+ };
578
+ contactId: string;
579
+ isNewContact: boolean;
580
+ }>;
95
581
  }, "strip", z.ZodTypeAny, {
96
582
  id: string;
97
- address: string;
98
- name: string;
99
583
  createdAt: Date;
100
584
  updatedAt: Date;
101
585
  deletedAt: Date | null;
586
+ roomId: string;
587
+ messageId: string;
588
+ mailUserId: string;
589
+ mailUser: {
590
+ id: string;
591
+ address: string;
592
+ name: string;
593
+ createdAt: Date;
594
+ updatedAt: Date;
595
+ deletedAt: Date | null;
596
+ contact: {
597
+ id: string;
598
+ channel: string | null;
599
+ address: string | null;
600
+ name: string;
601
+ createdAt: Date;
602
+ updatedAt: Date;
603
+ deletedAt: Date | null;
604
+ notes: string | null;
605
+ contactProfile: string | null;
606
+ socialProfileUrl: string | null;
607
+ };
608
+ contactId: string;
609
+ isNewContact: boolean;
610
+ };
102
611
  }, {
103
612
  id: string;
104
- address: string;
105
- name: string;
106
613
  createdAt: Date;
107
614
  updatedAt: Date;
108
615
  deletedAt: Date | null;
616
+ roomId: string;
617
+ messageId: string;
618
+ mailUserId: string;
619
+ mailUser: {
620
+ id: string;
621
+ address: string;
622
+ name: string;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ deletedAt: Date | null;
626
+ contact: {
627
+ id: string;
628
+ channel: string | null;
629
+ address: string | null;
630
+ name: string;
631
+ createdAt: Date;
632
+ updatedAt: Date;
633
+ deletedAt: Date | null;
634
+ notes: string | null;
635
+ contactProfile: string | null;
636
+ socialProfileUrl: string | null;
637
+ };
638
+ contactId: string;
639
+ isNewContact: boolean;
640
+ };
109
641
  }>, "many">;
110
642
  attachments: z.ZodArray<z.ZodObject<{
111
643
  id: z.ZodString;
@@ -221,35 +753,127 @@ export declare const MessageSchema: z.ZodObject<{
221
753
  seemsLikeNew: boolean;
222
754
  from: {
223
755
  id: string;
224
- address: string;
225
- name: string;
226
756
  createdAt: Date;
227
757
  updatedAt: Date;
228
758
  deletedAt: Date | null;
759
+ roomId: string;
760
+ messageId: string;
761
+ mailUserId: string;
762
+ mailUser: {
763
+ id: string;
764
+ address: string;
765
+ name: string;
766
+ createdAt: Date;
767
+ updatedAt: Date;
768
+ deletedAt: Date | null;
769
+ contact: {
770
+ id: string;
771
+ channel: string | null;
772
+ address: string | null;
773
+ name: string;
774
+ createdAt: Date;
775
+ updatedAt: Date;
776
+ deletedAt: Date | null;
777
+ notes: string | null;
778
+ contactProfile: string | null;
779
+ socialProfileUrl: string | null;
780
+ };
781
+ contactId: string;
782
+ isNewContact: boolean;
783
+ };
229
784
  }[];
230
785
  to: {
231
786
  id: string;
232
- address: string;
233
- name: string;
234
787
  createdAt: Date;
235
788
  updatedAt: Date;
236
789
  deletedAt: Date | null;
790
+ roomId: string;
791
+ messageId: string;
792
+ mailUserId: string;
793
+ mailUser: {
794
+ id: string;
795
+ address: string;
796
+ name: string;
797
+ createdAt: Date;
798
+ updatedAt: Date;
799
+ deletedAt: Date | null;
800
+ contact: {
801
+ id: string;
802
+ channel: string | null;
803
+ address: string | null;
804
+ name: string;
805
+ createdAt: Date;
806
+ updatedAt: Date;
807
+ deletedAt: Date | null;
808
+ notes: string | null;
809
+ contactProfile: string | null;
810
+ socialProfileUrl: string | null;
811
+ };
812
+ contactId: string;
813
+ isNewContact: boolean;
814
+ };
237
815
  }[];
238
816
  cc: {
239
817
  id: string;
240
- address: string;
241
- name: string;
242
818
  createdAt: Date;
243
819
  updatedAt: Date;
244
820
  deletedAt: Date | null;
821
+ roomId: string;
822
+ messageId: string;
823
+ mailUserId: string;
824
+ mailUser: {
825
+ id: string;
826
+ address: string;
827
+ name: string;
828
+ createdAt: Date;
829
+ updatedAt: Date;
830
+ deletedAt: Date | null;
831
+ contact: {
832
+ id: string;
833
+ channel: string | null;
834
+ address: string | null;
835
+ name: string;
836
+ createdAt: Date;
837
+ updatedAt: Date;
838
+ deletedAt: Date | null;
839
+ notes: string | null;
840
+ contactProfile: string | null;
841
+ socialProfileUrl: string | null;
842
+ };
843
+ contactId: string;
844
+ isNewContact: boolean;
845
+ };
245
846
  }[];
246
847
  bcc: {
247
848
  id: string;
248
- address: string;
249
- name: string;
250
849
  createdAt: Date;
251
850
  updatedAt: Date;
252
851
  deletedAt: Date | null;
852
+ roomId: string;
853
+ messageId: string;
854
+ mailUserId: string;
855
+ mailUser: {
856
+ id: string;
857
+ address: string;
858
+ name: string;
859
+ createdAt: Date;
860
+ updatedAt: Date;
861
+ deletedAt: Date | null;
862
+ contact: {
863
+ id: string;
864
+ channel: string | null;
865
+ address: string | null;
866
+ name: string;
867
+ createdAt: Date;
868
+ updatedAt: Date;
869
+ deletedAt: Date | null;
870
+ notes: string | null;
871
+ contactProfile: string | null;
872
+ socialProfileUrl: string | null;
873
+ };
874
+ contactId: string;
875
+ isNewContact: boolean;
876
+ };
253
877
  }[];
254
878
  attachments: {
255
879
  id: string;
@@ -297,35 +921,127 @@ export declare const MessageSchema: z.ZodObject<{
297
921
  seemsLikeNew: boolean;
298
922
  from: {
299
923
  id: string;
300
- address: string;
301
- name: string;
302
924
  createdAt: Date;
303
925
  updatedAt: Date;
304
926
  deletedAt: Date | null;
927
+ roomId: string;
928
+ messageId: string;
929
+ mailUserId: string;
930
+ mailUser: {
931
+ id: string;
932
+ address: string;
933
+ name: string;
934
+ createdAt: Date;
935
+ updatedAt: Date;
936
+ deletedAt: Date | null;
937
+ contact: {
938
+ id: string;
939
+ channel: string | null;
940
+ address: string | null;
941
+ name: string;
942
+ createdAt: Date;
943
+ updatedAt: Date;
944
+ deletedAt: Date | null;
945
+ notes: string | null;
946
+ contactProfile: string | null;
947
+ socialProfileUrl: string | null;
948
+ };
949
+ contactId: string;
950
+ isNewContact: boolean;
951
+ };
305
952
  }[];
306
953
  to: {
307
954
  id: string;
308
- address: string;
309
- name: string;
310
955
  createdAt: Date;
311
956
  updatedAt: Date;
312
957
  deletedAt: Date | null;
958
+ roomId: string;
959
+ messageId: string;
960
+ mailUserId: string;
961
+ mailUser: {
962
+ id: string;
963
+ address: string;
964
+ name: string;
965
+ createdAt: Date;
966
+ updatedAt: Date;
967
+ deletedAt: Date | null;
968
+ contact: {
969
+ id: string;
970
+ channel: string | null;
971
+ address: string | null;
972
+ name: string;
973
+ createdAt: Date;
974
+ updatedAt: Date;
975
+ deletedAt: Date | null;
976
+ notes: string | null;
977
+ contactProfile: string | null;
978
+ socialProfileUrl: string | null;
979
+ };
980
+ contactId: string;
981
+ isNewContact: boolean;
982
+ };
313
983
  }[];
314
984
  cc: {
315
985
  id: string;
316
- address: string;
317
- name: string;
318
986
  createdAt: Date;
319
987
  updatedAt: Date;
320
988
  deletedAt: Date | null;
989
+ roomId: string;
990
+ messageId: string;
991
+ mailUserId: string;
992
+ mailUser: {
993
+ id: string;
994
+ address: string;
995
+ name: string;
996
+ createdAt: Date;
997
+ updatedAt: Date;
998
+ deletedAt: Date | null;
999
+ contact: {
1000
+ id: string;
1001
+ channel: string | null;
1002
+ address: string | null;
1003
+ name: string;
1004
+ createdAt: Date;
1005
+ updatedAt: Date;
1006
+ deletedAt: Date | null;
1007
+ notes: string | null;
1008
+ contactProfile: string | null;
1009
+ socialProfileUrl: string | null;
1010
+ };
1011
+ contactId: string;
1012
+ isNewContact: boolean;
1013
+ };
321
1014
  }[];
322
1015
  bcc: {
323
1016
  id: string;
324
- address: string;
325
- name: string;
326
1017
  createdAt: Date;
327
1018
  updatedAt: Date;
328
1019
  deletedAt: Date | null;
1020
+ roomId: string;
1021
+ messageId: string;
1022
+ mailUserId: string;
1023
+ mailUser: {
1024
+ id: string;
1025
+ address: string;
1026
+ name: string;
1027
+ createdAt: Date;
1028
+ updatedAt: Date;
1029
+ deletedAt: Date | null;
1030
+ contact: {
1031
+ id: string;
1032
+ channel: string | null;
1033
+ address: string | null;
1034
+ name: string;
1035
+ createdAt: Date;
1036
+ updatedAt: Date;
1037
+ deletedAt: Date | null;
1038
+ notes: string | null;
1039
+ contactProfile: string | null;
1040
+ socialProfileUrl: string | null;
1041
+ };
1042
+ contactId: string;
1043
+ isNewContact: boolean;
1044
+ };
329
1045
  }[];
330
1046
  attachments: {
331
1047
  id: string;