@kl1/contracts 1.0.78 → 1.0.80

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 (66) hide show
  1. package/dist/index.js +1746 -1392
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1745 -1392
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +6 -6
  6. package/dist/src/call-log/validation.d.ts +4 -4
  7. package/dist/src/channel/index.d.ts +59 -59
  8. package/dist/src/channel/schema.d.ts +4 -4
  9. package/dist/src/channel/schema.d.ts.map +1 -1
  10. package/dist/src/channel/validation.d.ts +3 -3
  11. package/dist/src/chat/index.d.ts +6967 -3685
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +3294 -990
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +1947 -306
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/comment/index.d.ts +584 -584
  18. package/dist/src/comment/schema.d.ts +144 -144
  19. package/dist/src/contact/index.d.ts +4 -1
  20. package/dist/src/contact/index.d.ts.map +1 -1
  21. package/dist/src/contact/schema.d.ts +156 -0
  22. package/dist/src/contact/schema.d.ts.map +1 -1
  23. package/dist/src/contract.d.ts +35549 -20637
  24. package/dist/src/contract.d.ts.map +1 -1
  25. package/dist/src/cx-log/index.d.ts +950 -101
  26. package/dist/src/cx-log/index.d.ts.map +1 -1
  27. package/dist/src/cx-log/schema.d.ts +810 -71
  28. package/dist/src/cx-log/schema.d.ts.map +1 -1
  29. package/dist/src/dashboard/index.d.ts +4 -4
  30. package/dist/src/dashboard/schema.d.ts +2 -2
  31. package/dist/src/index.d.ts +0 -1
  32. package/dist/src/index.d.ts.map +1 -1
  33. package/dist/src/instagram/index.d.ts +2162 -343
  34. package/dist/src/instagram/index.d.ts.map +1 -1
  35. package/dist/src/line/index.d.ts +1919 -278
  36. package/dist/src/line/index.d.ts.map +1 -1
  37. package/dist/src/mail/mail-contract.d.ts +130 -130
  38. package/dist/src/mail/message-contract.d.ts +6 -6
  39. package/dist/src/mail/room-contract.d.ts +124 -124
  40. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  41. package/dist/src/mail/schemas/room-validation.schema.d.ts +40 -40
  42. package/dist/src/mail/schemas/room.schema.d.ts +30 -30
  43. package/dist/src/messenger/index.d.ts +2516 -516
  44. package/dist/src/messenger/index.d.ts.map +1 -1
  45. package/dist/src/messenger/validation.d.ts +1523 -0
  46. package/dist/src/messenger/validation.d.ts.map +1 -1
  47. package/dist/src/notification/index.d.ts +742 -0
  48. package/dist/src/notification/index.d.ts.map +1 -0
  49. package/dist/src/notification/schema.d.ts +48 -0
  50. package/dist/src/notification/schema.d.ts.map +1 -0
  51. package/dist/src/notification/validation.d.ts +148 -0
  52. package/dist/src/notification/validation.d.ts.map +1 -0
  53. package/dist/src/telephony-cdr/index.d.ts +3036 -818
  54. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  55. package/dist/src/telephony-cdr/schema.d.ts +841 -7
  56. package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
  57. package/dist/src/telephony-cdr/validation.d.ts +4 -4
  58. package/dist/src/ticket/index.d.ts +1106 -1106
  59. package/dist/src/ticket/schema.d.ts +72 -72
  60. package/dist/src/ticket/validation.d.ts +12 -12
  61. package/dist/src/viber/index.d.ts +3525 -1159
  62. package/dist/src/viber/index.d.ts.map +1 -1
  63. package/dist/src/wrap-up-form/index.d.ts +19 -19
  64. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  65. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  66. package/package.json +1 -1
@@ -106,4 +106,1527 @@ export declare const GetFacebookPagesQuerySchema: z.ZodObject<{
106
106
  userId: string;
107
107
  accessToken: string;
108
108
  }>;
109
+ export declare const ReconnectMessengerSchema: z.ZodObject<{
110
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
111
+ metadata: z.ZodObject<{
112
+ id: z.ZodString;
113
+ name: z.ZodString;
114
+ accessToken: z.ZodString;
115
+ channelSecret: z.ZodOptional<z.ZodString>;
116
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ id: string;
119
+ name: string;
120
+ accessToken: string;
121
+ channelSecret?: string | undefined;
122
+ additionalCredentials?: any;
123
+ }, {
124
+ id: string;
125
+ name: string;
126
+ accessToken: string;
127
+ channelSecret?: string | undefined;
128
+ additionalCredentials?: any;
129
+ }>;
130
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
131
+ actor: z.ZodObject<{
132
+ id: z.ZodString;
133
+ createdAt: z.ZodDate;
134
+ updatedAt: z.ZodDate;
135
+ deletedAt: z.ZodNullable<z.ZodDate>;
136
+ name: z.ZodString;
137
+ email: z.ZodString;
138
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
139
+ password: z.ZodString;
140
+ address: z.ZodNullable<z.ZodString>;
141
+ phone: z.ZodNullable<z.ZodString>;
142
+ notificationCount: z.ZodNullable<z.ZodNumber>;
143
+ roles: z.ZodArray<z.ZodObject<{
144
+ id: z.ZodString;
145
+ createdAt: z.ZodDate;
146
+ updatedAt: z.ZodDate;
147
+ deletedAt: z.ZodNullable<z.ZodDate>;
148
+ systemName: z.ZodString;
149
+ displayName: z.ZodString;
150
+ description: z.ZodNullable<z.ZodString>;
151
+ permissions: z.ZodArray<z.ZodObject<{
152
+ id: z.ZodString;
153
+ createdAt: z.ZodDate;
154
+ updatedAt: z.ZodDate;
155
+ deletedAt: z.ZodNullable<z.ZodDate>;
156
+ systemName: z.ZodString;
157
+ displayName: z.ZodString;
158
+ description: z.ZodNullable<z.ZodString>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ id: string;
161
+ description: string | null;
162
+ createdAt: Date;
163
+ updatedAt: Date;
164
+ deletedAt: Date | null;
165
+ systemName: string;
166
+ displayName: string;
167
+ }, {
168
+ id: string;
169
+ description: string | null;
170
+ createdAt: Date;
171
+ updatedAt: Date;
172
+ deletedAt: Date | null;
173
+ systemName: string;
174
+ displayName: string;
175
+ }>, "many">;
176
+ }, "strip", z.ZodTypeAny, {
177
+ id: string;
178
+ description: string | null;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ deletedAt: Date | null;
182
+ systemName: string;
183
+ displayName: string;
184
+ permissions: {
185
+ id: string;
186
+ description: string | null;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ deletedAt: Date | null;
190
+ systemName: string;
191
+ displayName: string;
192
+ }[];
193
+ }, {
194
+ id: string;
195
+ description: string | null;
196
+ createdAt: Date;
197
+ updatedAt: Date;
198
+ deletedAt: Date | null;
199
+ systemName: string;
200
+ displayName: string;
201
+ permissions: {
202
+ id: string;
203
+ description: string | null;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ deletedAt: Date | null;
207
+ systemName: string;
208
+ displayName: string;
209
+ }[];
210
+ }>, "many">;
211
+ extension: z.ZodObject<{
212
+ id: z.ZodString;
213
+ createdAt: z.ZodDate;
214
+ updatedAt: z.ZodDate;
215
+ deletedAt: z.ZodNullable<z.ZodDate>;
216
+ userId: z.ZodNullable<z.ZodString>;
217
+ sipServerUrl: z.ZodString;
218
+ sipUserName: z.ZodString;
219
+ webphoneLoginUser: z.ZodString;
220
+ extensionId: z.ZodNullable<z.ZodString>;
221
+ extensionName: z.ZodString;
222
+ telephonySignature: z.ZodNullable<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ id: string;
225
+ createdAt: Date;
226
+ updatedAt: Date;
227
+ deletedAt: Date | null;
228
+ userId: string | null;
229
+ sipServerUrl: string;
230
+ sipUserName: string;
231
+ webphoneLoginUser: string;
232
+ extensionId: string | null;
233
+ extensionName: string;
234
+ telephonySignature: string | null;
235
+ }, {
236
+ id: string;
237
+ createdAt: Date;
238
+ updatedAt: Date;
239
+ deletedAt: Date | null;
240
+ userId: string | null;
241
+ sipServerUrl: string;
242
+ sipUserName: string;
243
+ webphoneLoginUser: string;
244
+ extensionId: string | null;
245
+ extensionName: string;
246
+ telephonySignature: string | null;
247
+ }>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ id: string;
250
+ address: string | null;
251
+ name: string;
252
+ email: string;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ deletedAt: Date | null;
256
+ emailVerifiedAt: Date | null;
257
+ password: string;
258
+ phone: string | null;
259
+ notificationCount: number | null;
260
+ roles: {
261
+ id: string;
262
+ description: string | null;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ deletedAt: Date | null;
266
+ systemName: string;
267
+ displayName: string;
268
+ permissions: {
269
+ id: string;
270
+ description: string | null;
271
+ createdAt: Date;
272
+ updatedAt: Date;
273
+ deletedAt: Date | null;
274
+ systemName: string;
275
+ displayName: string;
276
+ }[];
277
+ }[];
278
+ extension: {
279
+ id: string;
280
+ createdAt: Date;
281
+ updatedAt: Date;
282
+ deletedAt: Date | null;
283
+ userId: string | null;
284
+ sipServerUrl: string;
285
+ sipUserName: string;
286
+ webphoneLoginUser: string;
287
+ extensionId: string | null;
288
+ extensionName: string;
289
+ telephonySignature: string | null;
290
+ };
291
+ }, {
292
+ id: string;
293
+ address: string | null;
294
+ name: string;
295
+ email: string;
296
+ createdAt: Date;
297
+ updatedAt: Date;
298
+ deletedAt: Date | null;
299
+ emailVerifiedAt: Date | null;
300
+ password: string;
301
+ phone: string | null;
302
+ notificationCount: number | null;
303
+ roles: {
304
+ id: string;
305
+ description: string | null;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ deletedAt: Date | null;
309
+ systemName: string;
310
+ displayName: string;
311
+ permissions: {
312
+ id: string;
313
+ description: string | null;
314
+ createdAt: Date;
315
+ updatedAt: Date;
316
+ deletedAt: Date | null;
317
+ systemName: string;
318
+ displayName: string;
319
+ }[];
320
+ }[];
321
+ extension: {
322
+ id: string;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ deletedAt: Date | null;
326
+ userId: string | null;
327
+ sipServerUrl: string;
328
+ sipUserName: string;
329
+ webphoneLoginUser: string;
330
+ extensionId: string | null;
331
+ extensionName: string;
332
+ telephonySignature: string | null;
333
+ };
334
+ }>;
335
+ brandName: z.ZodString;
336
+ platformId: z.ZodString;
337
+ connectedUserName: z.ZodString;
338
+ connectedUserId: z.ZodString;
339
+ isReloginRequired: z.ZodBoolean;
340
+ platformContacts: z.ZodArray<z.ZodObject<{
341
+ id: z.ZodString;
342
+ createdAt: z.ZodDate;
343
+ updatedAt: z.ZodDate;
344
+ deletedAt: z.ZodNullable<z.ZodDate>;
345
+ channelId: z.ZodString;
346
+ socialPlatformId: z.ZodString;
347
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
348
+ metadata: z.ZodObject<{
349
+ id: z.ZodString;
350
+ name: z.ZodString;
351
+ picture: z.ZodOptional<z.ZodString>;
352
+ additionalCredentials: z.ZodAny;
353
+ }, "strip", z.ZodTypeAny, {
354
+ id: string;
355
+ name: string;
356
+ picture?: string | undefined;
357
+ additionalCredentials?: any;
358
+ }, {
359
+ id: string;
360
+ name: string;
361
+ picture?: string | undefined;
362
+ additionalCredentials?: any;
363
+ }>;
364
+ contact: z.ZodObject<{
365
+ id: z.ZodString;
366
+ createdAt: z.ZodDate;
367
+ updatedAt: z.ZodDate;
368
+ deletedAt: z.ZodNullable<z.ZodDate>;
369
+ name: z.ZodString;
370
+ address: z.ZodNullable<z.ZodString>;
371
+ channel: z.ZodNullable<z.ZodString>;
372
+ notes: z.ZodNullable<z.ZodString>;
373
+ contactProfile: z.ZodNullable<z.ZodString>;
374
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
375
+ tags: z.ZodArray<z.ZodObject<{
376
+ id: z.ZodString;
377
+ createdAt: z.ZodDate;
378
+ updatedAt: z.ZodDate;
379
+ deletedAt: z.ZodNullable<z.ZodDate>;
380
+ name: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id: string;
383
+ name: string;
384
+ createdAt: Date;
385
+ updatedAt: Date;
386
+ deletedAt: Date | null;
387
+ }, {
388
+ id: string;
389
+ name: string;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ }>, "many">;
394
+ company: z.ZodNullable<z.ZodObject<Omit<{
395
+ id: z.ZodString;
396
+ createdAt: z.ZodDate;
397
+ updatedAt: z.ZodDate;
398
+ deletedAt: z.ZodNullable<z.ZodDate>;
399
+ name: z.ZodOptional<z.ZodString>;
400
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
+ id: z.ZodString;
405
+ createdAt: z.ZodDate;
406
+ updatedAt: z.ZodDate;
407
+ deletedAt: z.ZodNullable<z.ZodDate>;
408
+ textValue: z.ZodNullable<z.ZodString>;
409
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
410
+ numberValue: z.ZodNullable<z.ZodNumber>;
411
+ dateValue: z.ZodNullable<z.ZodDate>;
412
+ attribute: z.ZodObject<Omit<{
413
+ id: z.ZodString;
414
+ createdAt: z.ZodDate;
415
+ updatedAt: z.ZodDate;
416
+ deletedAt: z.ZodNullable<z.ZodDate>;
417
+ systemName: z.ZodString;
418
+ displayName: z.ZodString;
419
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
420
+ position: z.ZodNumber;
421
+ isDefault: z.ZodBoolean;
422
+ isArchived: z.ZodBoolean;
423
+ isRequired: z.ZodBoolean;
424
+ isUnique: z.ZodBoolean;
425
+ options: z.ZodArray<z.ZodObject<{
426
+ position: z.ZodNumber;
427
+ value: z.ZodString;
428
+ label: z.ZodString;
429
+ isDefault: z.ZodBoolean;
430
+ id: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ id: string;
433
+ position: number;
434
+ value: string;
435
+ label: string;
436
+ isDefault: boolean;
437
+ }, {
438
+ id: string;
439
+ position: number;
440
+ value: string;
441
+ label: string;
442
+ isDefault: boolean;
443
+ }>, "many">;
444
+ group: z.ZodObject<{
445
+ id: z.ZodString;
446
+ createdAt: z.ZodDate;
447
+ updatedAt: z.ZodDate;
448
+ deletedAt: z.ZodNullable<z.ZodDate>;
449
+ systemName: z.ZodString;
450
+ displayName: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ id: string;
453
+ createdAt: Date;
454
+ updatedAt: Date;
455
+ deletedAt: Date | null;
456
+ systemName: string;
457
+ displayName: string;
458
+ }, {
459
+ id: string;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ deletedAt: Date | null;
463
+ systemName: string;
464
+ displayName: string;
465
+ }>;
466
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
467
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
468
+ id: string;
469
+ position: number;
470
+ createdAt: Date;
471
+ updatedAt: Date;
472
+ deletedAt: Date | null;
473
+ systemName: string;
474
+ displayName: string;
475
+ isDefault: boolean;
476
+ isArchived: boolean;
477
+ isRequired: boolean;
478
+ isUnique: boolean;
479
+ }, {
480
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
481
+ id: string;
482
+ position: number;
483
+ createdAt: Date;
484
+ updatedAt: Date;
485
+ deletedAt: Date | null;
486
+ systemName: string;
487
+ displayName: string;
488
+ isDefault: boolean;
489
+ isArchived: boolean;
490
+ isRequired: boolean;
491
+ isUnique: boolean;
492
+ }>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ id: string;
495
+ createdAt: Date;
496
+ updatedAt: Date;
497
+ deletedAt: Date | null;
498
+ attribute: {
499
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
500
+ id: string;
501
+ position: number;
502
+ createdAt: Date;
503
+ updatedAt: Date;
504
+ deletedAt: Date | null;
505
+ systemName: string;
506
+ displayName: string;
507
+ isDefault: boolean;
508
+ isArchived: boolean;
509
+ isRequired: boolean;
510
+ isUnique: boolean;
511
+ };
512
+ textValue: string | null;
513
+ booleanValue: boolean | null;
514
+ numberValue: number | null;
515
+ dateValue: Date | null;
516
+ }, {
517
+ id: string;
518
+ createdAt: Date;
519
+ updatedAt: Date;
520
+ deletedAt: Date | null;
521
+ attribute: {
522
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
523
+ id: string;
524
+ position: number;
525
+ createdAt: Date;
526
+ updatedAt: Date;
527
+ deletedAt: Date | null;
528
+ systemName: string;
529
+ displayName: string;
530
+ isDefault: boolean;
531
+ isArchived: boolean;
532
+ isRequired: boolean;
533
+ isUnique: boolean;
534
+ };
535
+ textValue: string | null;
536
+ booleanValue: boolean | null;
537
+ numberValue: number | null;
538
+ dateValue: Date | null;
539
+ }>, "many">>;
540
+ }, "customFields">, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ createdAt: Date;
543
+ updatedAt: Date;
544
+ deletedAt: Date | null;
545
+ address?: string | null | undefined;
546
+ name?: string | undefined;
547
+ phone?: string | null | undefined;
548
+ industry?: string | null | undefined;
549
+ }, {
550
+ id: string;
551
+ createdAt: Date;
552
+ updatedAt: Date;
553
+ deletedAt: Date | null;
554
+ address?: string | null | undefined;
555
+ name?: string | undefined;
556
+ phone?: string | null | undefined;
557
+ industry?: string | null | undefined;
558
+ }>>;
559
+ customFields: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodString;
561
+ createdAt: z.ZodDate;
562
+ updatedAt: z.ZodDate;
563
+ deletedAt: z.ZodNullable<z.ZodDate>;
564
+ textValue: z.ZodNullable<z.ZodString>;
565
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
566
+ numberValue: z.ZodNullable<z.ZodNumber>;
567
+ dateValue: z.ZodNullable<z.ZodDate>;
568
+ attribute: z.ZodObject<Omit<{
569
+ id: z.ZodString;
570
+ createdAt: z.ZodDate;
571
+ updatedAt: z.ZodDate;
572
+ deletedAt: z.ZodNullable<z.ZodDate>;
573
+ systemName: z.ZodString;
574
+ displayName: z.ZodString;
575
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
576
+ position: z.ZodNumber;
577
+ isDefault: z.ZodBoolean;
578
+ isArchived: z.ZodBoolean;
579
+ isRequired: z.ZodBoolean;
580
+ isUnique: z.ZodBoolean;
581
+ options: z.ZodArray<z.ZodObject<{
582
+ position: z.ZodNumber;
583
+ value: z.ZodString;
584
+ label: z.ZodString;
585
+ isDefault: z.ZodBoolean;
586
+ id: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ position: number;
590
+ value: string;
591
+ label: string;
592
+ isDefault: boolean;
593
+ }, {
594
+ id: string;
595
+ position: number;
596
+ value: string;
597
+ label: string;
598
+ isDefault: boolean;
599
+ }>, "many">;
600
+ group: z.ZodObject<{
601
+ id: z.ZodString;
602
+ createdAt: z.ZodDate;
603
+ updatedAt: z.ZodDate;
604
+ deletedAt: z.ZodNullable<z.ZodDate>;
605
+ systemName: z.ZodString;
606
+ displayName: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ id: string;
609
+ createdAt: Date;
610
+ updatedAt: Date;
611
+ deletedAt: Date | null;
612
+ systemName: string;
613
+ displayName: string;
614
+ }, {
615
+ id: string;
616
+ createdAt: Date;
617
+ updatedAt: Date;
618
+ deletedAt: Date | null;
619
+ systemName: string;
620
+ displayName: string;
621
+ }>;
622
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
623
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
624
+ id: string;
625
+ position: number;
626
+ createdAt: Date;
627
+ updatedAt: Date;
628
+ deletedAt: Date | null;
629
+ systemName: string;
630
+ displayName: string;
631
+ isDefault: boolean;
632
+ isArchived: boolean;
633
+ isRequired: boolean;
634
+ isUnique: boolean;
635
+ }, {
636
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
637
+ id: string;
638
+ position: number;
639
+ createdAt: Date;
640
+ updatedAt: Date;
641
+ deletedAt: Date | null;
642
+ systemName: string;
643
+ displayName: string;
644
+ isDefault: boolean;
645
+ isArchived: boolean;
646
+ isRequired: boolean;
647
+ isUnique: boolean;
648
+ }>;
649
+ uploads: z.ZodArray<z.ZodObject<{
650
+ id: z.ZodString;
651
+ createdAt: z.ZodDate;
652
+ updatedAt: z.ZodDate;
653
+ deletedAt: z.ZodNullable<z.ZodDate>;
654
+ bucketName: z.ZodString;
655
+ fileName: z.ZodString;
656
+ fileSize: z.ZodNumber;
657
+ fileKey: z.ZodString;
658
+ fileUrl: z.ZodNullable<z.ZodString>;
659
+ status: z.ZodOptional<z.ZodString>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ id: string;
662
+ createdAt: Date;
663
+ updatedAt: Date;
664
+ deletedAt: Date | null;
665
+ fileName: string;
666
+ fileKey: string;
667
+ bucketName: string;
668
+ fileSize: number;
669
+ fileUrl: string | null;
670
+ status?: string | undefined;
671
+ }, {
672
+ id: string;
673
+ createdAt: Date;
674
+ updatedAt: Date;
675
+ deletedAt: Date | null;
676
+ fileName: string;
677
+ fileKey: string;
678
+ bucketName: string;
679
+ fileSize: number;
680
+ fileUrl: string | null;
681
+ status?: string | undefined;
682
+ }>, "many">;
683
+ }, "strip", z.ZodTypeAny, {
684
+ id: string;
685
+ createdAt: Date;
686
+ updatedAt: Date;
687
+ deletedAt: Date | null;
688
+ attribute: {
689
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
690
+ id: string;
691
+ position: number;
692
+ createdAt: Date;
693
+ updatedAt: Date;
694
+ deletedAt: Date | null;
695
+ systemName: string;
696
+ displayName: string;
697
+ isDefault: boolean;
698
+ isArchived: boolean;
699
+ isRequired: boolean;
700
+ isUnique: boolean;
701
+ };
702
+ textValue: string | null;
703
+ booleanValue: boolean | null;
704
+ numberValue: number | null;
705
+ dateValue: Date | null;
706
+ uploads: {
707
+ id: string;
708
+ createdAt: Date;
709
+ updatedAt: Date;
710
+ deletedAt: Date | null;
711
+ fileName: string;
712
+ fileKey: string;
713
+ bucketName: string;
714
+ fileSize: number;
715
+ fileUrl: string | null;
716
+ status?: string | undefined;
717
+ }[];
718
+ }, {
719
+ id: string;
720
+ createdAt: Date;
721
+ updatedAt: Date;
722
+ deletedAt: Date | null;
723
+ attribute: {
724
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
725
+ id: string;
726
+ position: number;
727
+ createdAt: Date;
728
+ updatedAt: Date;
729
+ deletedAt: Date | null;
730
+ systemName: string;
731
+ displayName: string;
732
+ isDefault: boolean;
733
+ isArchived: boolean;
734
+ isRequired: boolean;
735
+ isUnique: boolean;
736
+ };
737
+ textValue: string | null;
738
+ booleanValue: boolean | null;
739
+ numberValue: number | null;
740
+ dateValue: Date | null;
741
+ uploads: {
742
+ id: string;
743
+ createdAt: Date;
744
+ updatedAt: Date;
745
+ deletedAt: Date | null;
746
+ fileName: string;
747
+ fileKey: string;
748
+ bucketName: string;
749
+ fileSize: number;
750
+ fileUrl: string | null;
751
+ status?: string | undefined;
752
+ }[];
753
+ }>, "many">;
754
+ contactEmails: z.ZodArray<z.ZodObject<{
755
+ id: z.ZodString;
756
+ createdAt: z.ZodDate;
757
+ updatedAt: z.ZodDate;
758
+ deletedAt: z.ZodNullable<z.ZodDate>;
759
+ email: z.ZodString;
760
+ isPrimary: z.ZodBoolean;
761
+ }, "strip", z.ZodTypeAny, {
762
+ id: string;
763
+ isPrimary: boolean;
764
+ email: string;
765
+ createdAt: Date;
766
+ updatedAt: Date;
767
+ deletedAt: Date | null;
768
+ }, {
769
+ id: string;
770
+ isPrimary: boolean;
771
+ email: string;
772
+ createdAt: Date;
773
+ updatedAt: Date;
774
+ deletedAt: Date | null;
775
+ }>, "many">;
776
+ contactPhones: z.ZodArray<z.ZodObject<{
777
+ id: z.ZodString;
778
+ createdAt: z.ZodDate;
779
+ updatedAt: z.ZodDate;
780
+ deletedAt: z.ZodNullable<z.ZodDate>;
781
+ phone: z.ZodString;
782
+ isPrimary: z.ZodBoolean;
783
+ }, "strip", z.ZodTypeAny, {
784
+ id: string;
785
+ isPrimary: boolean;
786
+ createdAt: Date;
787
+ updatedAt: Date;
788
+ deletedAt: Date | null;
789
+ phone: string;
790
+ }, {
791
+ id: string;
792
+ isPrimary: boolean;
793
+ createdAt: Date;
794
+ updatedAt: Date;
795
+ deletedAt: Date | null;
796
+ phone: string;
797
+ }>, "many">;
798
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ id: z.ZodString;
800
+ createdAt: z.ZodDate;
801
+ updatedAt: z.ZodDate;
802
+ deletedAt: z.ZodNullable<z.ZodDate>;
803
+ entityId: z.ZodString;
804
+ description: z.ZodString;
805
+ entityType: z.ZodObject<{
806
+ id: z.ZodString;
807
+ createdAt: z.ZodDate;
808
+ updatedAt: z.ZodDate;
809
+ deletedAt: z.ZodNullable<z.ZodDate>;
810
+ entity: z.ZodString;
811
+ description: z.ZodNullable<z.ZodString>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ id: string;
814
+ description: string | null;
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ deletedAt: Date | null;
818
+ entity: string;
819
+ }, {
820
+ id: string;
821
+ description: string | null;
822
+ createdAt: Date;
823
+ updatedAt: Date;
824
+ deletedAt: Date | null;
825
+ entity: string;
826
+ }>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ id: string;
829
+ description: string;
830
+ createdAt: Date;
831
+ updatedAt: Date;
832
+ deletedAt: Date | null;
833
+ entityId: string;
834
+ entityType: {
835
+ id: string;
836
+ description: string | null;
837
+ createdAt: Date;
838
+ updatedAt: Date;
839
+ deletedAt: Date | null;
840
+ entity: string;
841
+ };
842
+ }, {
843
+ id: string;
844
+ description: string;
845
+ createdAt: Date;
846
+ updatedAt: Date;
847
+ deletedAt: Date | null;
848
+ entityId: string;
849
+ entityType: {
850
+ id: string;
851
+ description: string | null;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ deletedAt: Date | null;
855
+ entity: string;
856
+ };
857
+ }>, "many">>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ id: string;
860
+ channel: string | null;
861
+ address: string | null;
862
+ name: string;
863
+ createdAt: Date;
864
+ updatedAt: Date;
865
+ deletedAt: Date | null;
866
+ customFields: {
867
+ id: string;
868
+ createdAt: Date;
869
+ updatedAt: Date;
870
+ deletedAt: Date | null;
871
+ attribute: {
872
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
873
+ id: string;
874
+ position: number;
875
+ createdAt: Date;
876
+ updatedAt: Date;
877
+ deletedAt: Date | null;
878
+ systemName: string;
879
+ displayName: string;
880
+ isDefault: boolean;
881
+ isArchived: boolean;
882
+ isRequired: boolean;
883
+ isUnique: boolean;
884
+ };
885
+ textValue: string | null;
886
+ booleanValue: boolean | null;
887
+ numberValue: number | null;
888
+ dateValue: Date | null;
889
+ uploads: {
890
+ id: string;
891
+ createdAt: Date;
892
+ updatedAt: Date;
893
+ deletedAt: Date | null;
894
+ fileName: string;
895
+ fileKey: string;
896
+ bucketName: string;
897
+ fileSize: number;
898
+ fileUrl: string | null;
899
+ status?: string | undefined;
900
+ }[];
901
+ }[];
902
+ company: {
903
+ id: string;
904
+ createdAt: Date;
905
+ updatedAt: Date;
906
+ deletedAt: Date | null;
907
+ address?: string | null | undefined;
908
+ name?: string | undefined;
909
+ phone?: string | null | undefined;
910
+ industry?: string | null | undefined;
911
+ } | null;
912
+ notes: string | null;
913
+ contactProfile: string | null;
914
+ socialProfileUrl: string | null;
915
+ tags: {
916
+ id: string;
917
+ name: string;
918
+ createdAt: Date;
919
+ updatedAt: Date;
920
+ deletedAt: Date | null;
921
+ }[];
922
+ contactEmails: {
923
+ id: string;
924
+ isPrimary: boolean;
925
+ email: string;
926
+ createdAt: Date;
927
+ updatedAt: Date;
928
+ deletedAt: Date | null;
929
+ }[];
930
+ contactPhones: {
931
+ id: string;
932
+ isPrimary: boolean;
933
+ createdAt: Date;
934
+ updatedAt: Date;
935
+ deletedAt: Date | null;
936
+ phone: string;
937
+ }[];
938
+ activityLogs?: {
939
+ id: string;
940
+ description: string;
941
+ createdAt: Date;
942
+ updatedAt: Date;
943
+ deletedAt: Date | null;
944
+ entityId: string;
945
+ entityType: {
946
+ id: string;
947
+ description: string | null;
948
+ createdAt: Date;
949
+ updatedAt: Date;
950
+ deletedAt: Date | null;
951
+ entity: string;
952
+ };
953
+ }[] | undefined;
954
+ }, {
955
+ id: string;
956
+ channel: string | null;
957
+ address: string | null;
958
+ name: string;
959
+ createdAt: Date;
960
+ updatedAt: Date;
961
+ deletedAt: Date | null;
962
+ customFields: {
963
+ id: string;
964
+ createdAt: Date;
965
+ updatedAt: Date;
966
+ deletedAt: Date | null;
967
+ attribute: {
968
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
969
+ id: string;
970
+ position: number;
971
+ createdAt: Date;
972
+ updatedAt: Date;
973
+ deletedAt: Date | null;
974
+ systemName: string;
975
+ displayName: string;
976
+ isDefault: boolean;
977
+ isArchived: boolean;
978
+ isRequired: boolean;
979
+ isUnique: boolean;
980
+ };
981
+ textValue: string | null;
982
+ booleanValue: boolean | null;
983
+ numberValue: number | null;
984
+ dateValue: Date | null;
985
+ uploads: {
986
+ id: string;
987
+ createdAt: Date;
988
+ updatedAt: Date;
989
+ deletedAt: Date | null;
990
+ fileName: string;
991
+ fileKey: string;
992
+ bucketName: string;
993
+ fileSize: number;
994
+ fileUrl: string | null;
995
+ status?: string | undefined;
996
+ }[];
997
+ }[];
998
+ company: {
999
+ id: string;
1000
+ createdAt: Date;
1001
+ updatedAt: Date;
1002
+ deletedAt: Date | null;
1003
+ address?: string | null | undefined;
1004
+ name?: string | undefined;
1005
+ phone?: string | null | undefined;
1006
+ industry?: string | null | undefined;
1007
+ } | null;
1008
+ notes: string | null;
1009
+ contactProfile: string | null;
1010
+ socialProfileUrl: string | null;
1011
+ tags: {
1012
+ id: string;
1013
+ name: string;
1014
+ createdAt: Date;
1015
+ updatedAt: Date;
1016
+ deletedAt: Date | null;
1017
+ }[];
1018
+ contactEmails: {
1019
+ id: string;
1020
+ isPrimary: boolean;
1021
+ email: string;
1022
+ createdAt: Date;
1023
+ updatedAt: Date;
1024
+ deletedAt: Date | null;
1025
+ }[];
1026
+ contactPhones: {
1027
+ id: string;
1028
+ isPrimary: boolean;
1029
+ createdAt: Date;
1030
+ updatedAt: Date;
1031
+ deletedAt: Date | null;
1032
+ phone: string;
1033
+ }[];
1034
+ activityLogs?: {
1035
+ id: string;
1036
+ description: string;
1037
+ createdAt: Date;
1038
+ updatedAt: Date;
1039
+ deletedAt: Date | null;
1040
+ entityId: string;
1041
+ entityType: {
1042
+ id: string;
1043
+ description: string | null;
1044
+ createdAt: Date;
1045
+ updatedAt: Date;
1046
+ deletedAt: Date | null;
1047
+ entity: string;
1048
+ };
1049
+ }[] | undefined;
1050
+ }>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1053
+ id: string;
1054
+ metadata: {
1055
+ id: string;
1056
+ name: string;
1057
+ picture?: string | undefined;
1058
+ additionalCredentials?: any;
1059
+ };
1060
+ createdAt: Date;
1061
+ updatedAt: Date;
1062
+ deletedAt: Date | null;
1063
+ contact: {
1064
+ id: string;
1065
+ channel: string | null;
1066
+ address: string | null;
1067
+ name: string;
1068
+ createdAt: Date;
1069
+ updatedAt: Date;
1070
+ deletedAt: Date | null;
1071
+ customFields: {
1072
+ id: string;
1073
+ createdAt: Date;
1074
+ updatedAt: Date;
1075
+ deletedAt: Date | null;
1076
+ attribute: {
1077
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1078
+ id: string;
1079
+ position: number;
1080
+ createdAt: Date;
1081
+ updatedAt: Date;
1082
+ deletedAt: Date | null;
1083
+ systemName: string;
1084
+ displayName: string;
1085
+ isDefault: boolean;
1086
+ isArchived: boolean;
1087
+ isRequired: boolean;
1088
+ isUnique: boolean;
1089
+ };
1090
+ textValue: string | null;
1091
+ booleanValue: boolean | null;
1092
+ numberValue: number | null;
1093
+ dateValue: Date | null;
1094
+ uploads: {
1095
+ id: string;
1096
+ createdAt: Date;
1097
+ updatedAt: Date;
1098
+ deletedAt: Date | null;
1099
+ fileName: string;
1100
+ fileKey: string;
1101
+ bucketName: string;
1102
+ fileSize: number;
1103
+ fileUrl: string | null;
1104
+ status?: string | undefined;
1105
+ }[];
1106
+ }[];
1107
+ company: {
1108
+ id: string;
1109
+ createdAt: Date;
1110
+ updatedAt: Date;
1111
+ deletedAt: Date | null;
1112
+ address?: string | null | undefined;
1113
+ name?: string | undefined;
1114
+ phone?: string | null | undefined;
1115
+ industry?: string | null | undefined;
1116
+ } | null;
1117
+ notes: string | null;
1118
+ contactProfile: string | null;
1119
+ socialProfileUrl: string | null;
1120
+ tags: {
1121
+ id: string;
1122
+ name: string;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ deletedAt: Date | null;
1126
+ }[];
1127
+ contactEmails: {
1128
+ id: string;
1129
+ isPrimary: boolean;
1130
+ email: string;
1131
+ createdAt: Date;
1132
+ updatedAt: Date;
1133
+ deletedAt: Date | null;
1134
+ }[];
1135
+ contactPhones: {
1136
+ id: string;
1137
+ isPrimary: boolean;
1138
+ createdAt: Date;
1139
+ updatedAt: Date;
1140
+ deletedAt: Date | null;
1141
+ phone: string;
1142
+ }[];
1143
+ activityLogs?: {
1144
+ id: string;
1145
+ description: string;
1146
+ createdAt: Date;
1147
+ updatedAt: Date;
1148
+ deletedAt: Date | null;
1149
+ entityId: string;
1150
+ entityType: {
1151
+ id: string;
1152
+ description: string | null;
1153
+ createdAt: Date;
1154
+ updatedAt: Date;
1155
+ deletedAt: Date | null;
1156
+ entity: string;
1157
+ };
1158
+ }[] | undefined;
1159
+ };
1160
+ channelId: string;
1161
+ socialPlatformId: string;
1162
+ }, {
1163
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1164
+ id: string;
1165
+ metadata: {
1166
+ id: string;
1167
+ name: string;
1168
+ picture?: string | undefined;
1169
+ additionalCredentials?: any;
1170
+ };
1171
+ createdAt: Date;
1172
+ updatedAt: Date;
1173
+ deletedAt: Date | null;
1174
+ contact: {
1175
+ id: string;
1176
+ channel: string | null;
1177
+ address: string | null;
1178
+ name: string;
1179
+ createdAt: Date;
1180
+ updatedAt: Date;
1181
+ deletedAt: Date | null;
1182
+ customFields: {
1183
+ id: string;
1184
+ createdAt: Date;
1185
+ updatedAt: Date;
1186
+ deletedAt: Date | null;
1187
+ attribute: {
1188
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1189
+ id: string;
1190
+ position: number;
1191
+ createdAt: Date;
1192
+ updatedAt: Date;
1193
+ deletedAt: Date | null;
1194
+ systemName: string;
1195
+ displayName: string;
1196
+ isDefault: boolean;
1197
+ isArchived: boolean;
1198
+ isRequired: boolean;
1199
+ isUnique: boolean;
1200
+ };
1201
+ textValue: string | null;
1202
+ booleanValue: boolean | null;
1203
+ numberValue: number | null;
1204
+ dateValue: Date | null;
1205
+ uploads: {
1206
+ id: string;
1207
+ createdAt: Date;
1208
+ updatedAt: Date;
1209
+ deletedAt: Date | null;
1210
+ fileName: string;
1211
+ fileKey: string;
1212
+ bucketName: string;
1213
+ fileSize: number;
1214
+ fileUrl: string | null;
1215
+ status?: string | undefined;
1216
+ }[];
1217
+ }[];
1218
+ company: {
1219
+ id: string;
1220
+ createdAt: Date;
1221
+ updatedAt: Date;
1222
+ deletedAt: Date | null;
1223
+ address?: string | null | undefined;
1224
+ name?: string | undefined;
1225
+ phone?: string | null | undefined;
1226
+ industry?: string | null | undefined;
1227
+ } | null;
1228
+ notes: string | null;
1229
+ contactProfile: string | null;
1230
+ socialProfileUrl: string | null;
1231
+ tags: {
1232
+ id: string;
1233
+ name: string;
1234
+ createdAt: Date;
1235
+ updatedAt: Date;
1236
+ deletedAt: Date | null;
1237
+ }[];
1238
+ contactEmails: {
1239
+ id: string;
1240
+ isPrimary: boolean;
1241
+ email: string;
1242
+ createdAt: Date;
1243
+ updatedAt: Date;
1244
+ deletedAt: Date | null;
1245
+ }[];
1246
+ contactPhones: {
1247
+ id: string;
1248
+ isPrimary: boolean;
1249
+ createdAt: Date;
1250
+ updatedAt: Date;
1251
+ deletedAt: Date | null;
1252
+ phone: string;
1253
+ }[];
1254
+ activityLogs?: {
1255
+ id: string;
1256
+ description: string;
1257
+ createdAt: Date;
1258
+ updatedAt: Date;
1259
+ deletedAt: Date | null;
1260
+ entityId: string;
1261
+ entityType: {
1262
+ id: string;
1263
+ description: string | null;
1264
+ createdAt: Date;
1265
+ updatedAt: Date;
1266
+ deletedAt: Date | null;
1267
+ entity: string;
1268
+ };
1269
+ }[] | undefined;
1270
+ };
1271
+ channelId: string;
1272
+ socialPlatformId: string;
1273
+ }>, "many">;
1274
+ id: z.ZodString;
1275
+ name: z.ZodString;
1276
+ createdAt: z.ZodDate;
1277
+ updatedAt: z.ZodDate;
1278
+ deletedAt: z.ZodNullable<z.ZodDate>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1281
+ id: string;
1282
+ name: string;
1283
+ metadata: {
1284
+ id: string;
1285
+ name: string;
1286
+ accessToken: string;
1287
+ channelSecret?: string | undefined;
1288
+ additionalCredentials?: any;
1289
+ };
1290
+ status: boolean;
1291
+ createdAt: Date;
1292
+ updatedAt: Date;
1293
+ deletedAt: Date | null;
1294
+ actor: {
1295
+ id: string;
1296
+ address: string | null;
1297
+ name: string;
1298
+ email: string;
1299
+ createdAt: Date;
1300
+ updatedAt: Date;
1301
+ deletedAt: Date | null;
1302
+ emailVerifiedAt: Date | null;
1303
+ password: string;
1304
+ phone: string | null;
1305
+ notificationCount: number | null;
1306
+ roles: {
1307
+ id: string;
1308
+ description: string | null;
1309
+ createdAt: Date;
1310
+ updatedAt: Date;
1311
+ deletedAt: Date | null;
1312
+ systemName: string;
1313
+ displayName: string;
1314
+ permissions: {
1315
+ id: string;
1316
+ description: string | null;
1317
+ createdAt: Date;
1318
+ updatedAt: Date;
1319
+ deletedAt: Date | null;
1320
+ systemName: string;
1321
+ displayName: string;
1322
+ }[];
1323
+ }[];
1324
+ extension: {
1325
+ id: string;
1326
+ createdAt: Date;
1327
+ updatedAt: Date;
1328
+ deletedAt: Date | null;
1329
+ userId: string | null;
1330
+ sipServerUrl: string;
1331
+ sipUserName: string;
1332
+ webphoneLoginUser: string;
1333
+ extensionId: string | null;
1334
+ extensionName: string;
1335
+ telephonySignature: string | null;
1336
+ };
1337
+ };
1338
+ brandName: string;
1339
+ platformId: string;
1340
+ isReloginRequired: boolean;
1341
+ connectedUserName: string;
1342
+ connectedUserId: string;
1343
+ platformContacts: {
1344
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1345
+ id: string;
1346
+ metadata: {
1347
+ id: string;
1348
+ name: string;
1349
+ picture?: string | undefined;
1350
+ additionalCredentials?: any;
1351
+ };
1352
+ createdAt: Date;
1353
+ updatedAt: Date;
1354
+ deletedAt: Date | null;
1355
+ contact: {
1356
+ id: string;
1357
+ channel: string | null;
1358
+ address: string | null;
1359
+ name: string;
1360
+ createdAt: Date;
1361
+ updatedAt: Date;
1362
+ deletedAt: Date | null;
1363
+ customFields: {
1364
+ id: string;
1365
+ createdAt: Date;
1366
+ updatedAt: Date;
1367
+ deletedAt: Date | null;
1368
+ attribute: {
1369
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1370
+ id: string;
1371
+ position: number;
1372
+ createdAt: Date;
1373
+ updatedAt: Date;
1374
+ deletedAt: Date | null;
1375
+ systemName: string;
1376
+ displayName: string;
1377
+ isDefault: boolean;
1378
+ isArchived: boolean;
1379
+ isRequired: boolean;
1380
+ isUnique: boolean;
1381
+ };
1382
+ textValue: string | null;
1383
+ booleanValue: boolean | null;
1384
+ numberValue: number | null;
1385
+ dateValue: Date | null;
1386
+ uploads: {
1387
+ id: string;
1388
+ createdAt: Date;
1389
+ updatedAt: Date;
1390
+ deletedAt: Date | null;
1391
+ fileName: string;
1392
+ fileKey: string;
1393
+ bucketName: string;
1394
+ fileSize: number;
1395
+ fileUrl: string | null;
1396
+ status?: string | undefined;
1397
+ }[];
1398
+ }[];
1399
+ company: {
1400
+ id: string;
1401
+ createdAt: Date;
1402
+ updatedAt: Date;
1403
+ deletedAt: Date | null;
1404
+ address?: string | null | undefined;
1405
+ name?: string | undefined;
1406
+ phone?: string | null | undefined;
1407
+ industry?: string | null | undefined;
1408
+ } | null;
1409
+ notes: string | null;
1410
+ contactProfile: string | null;
1411
+ socialProfileUrl: string | null;
1412
+ tags: {
1413
+ id: string;
1414
+ name: string;
1415
+ createdAt: Date;
1416
+ updatedAt: Date;
1417
+ deletedAt: Date | null;
1418
+ }[];
1419
+ contactEmails: {
1420
+ id: string;
1421
+ isPrimary: boolean;
1422
+ email: string;
1423
+ createdAt: Date;
1424
+ updatedAt: Date;
1425
+ deletedAt: Date | null;
1426
+ }[];
1427
+ contactPhones: {
1428
+ id: string;
1429
+ isPrimary: boolean;
1430
+ createdAt: Date;
1431
+ updatedAt: Date;
1432
+ deletedAt: Date | null;
1433
+ phone: string;
1434
+ }[];
1435
+ activityLogs?: {
1436
+ id: string;
1437
+ description: string;
1438
+ createdAt: Date;
1439
+ updatedAt: Date;
1440
+ deletedAt: Date | null;
1441
+ entityId: string;
1442
+ entityType: {
1443
+ id: string;
1444
+ description: string | null;
1445
+ createdAt: Date;
1446
+ updatedAt: Date;
1447
+ deletedAt: Date | null;
1448
+ entity: string;
1449
+ };
1450
+ }[] | undefined;
1451
+ };
1452
+ channelId: string;
1453
+ socialPlatformId: string;
1454
+ }[];
1455
+ }, {
1456
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1457
+ id: string;
1458
+ name: string;
1459
+ metadata: {
1460
+ id: string;
1461
+ name: string;
1462
+ accessToken: string;
1463
+ channelSecret?: string | undefined;
1464
+ additionalCredentials?: any;
1465
+ };
1466
+ status: boolean;
1467
+ createdAt: Date;
1468
+ updatedAt: Date;
1469
+ deletedAt: Date | null;
1470
+ actor: {
1471
+ id: string;
1472
+ address: string | null;
1473
+ name: string;
1474
+ email: string;
1475
+ createdAt: Date;
1476
+ updatedAt: Date;
1477
+ deletedAt: Date | null;
1478
+ emailVerifiedAt: Date | null;
1479
+ password: string;
1480
+ phone: string | null;
1481
+ notificationCount: number | null;
1482
+ roles: {
1483
+ id: string;
1484
+ description: string | null;
1485
+ createdAt: Date;
1486
+ updatedAt: Date;
1487
+ deletedAt: Date | null;
1488
+ systemName: string;
1489
+ displayName: string;
1490
+ permissions: {
1491
+ id: string;
1492
+ description: string | null;
1493
+ createdAt: Date;
1494
+ updatedAt: Date;
1495
+ deletedAt: Date | null;
1496
+ systemName: string;
1497
+ displayName: string;
1498
+ }[];
1499
+ }[];
1500
+ extension: {
1501
+ id: string;
1502
+ createdAt: Date;
1503
+ updatedAt: Date;
1504
+ deletedAt: Date | null;
1505
+ userId: string | null;
1506
+ sipServerUrl: string;
1507
+ sipUserName: string;
1508
+ webphoneLoginUser: string;
1509
+ extensionId: string | null;
1510
+ extensionName: string;
1511
+ telephonySignature: string | null;
1512
+ };
1513
+ };
1514
+ brandName: string;
1515
+ platformId: string;
1516
+ isReloginRequired: boolean;
1517
+ connectedUserName: string;
1518
+ connectedUserId: string;
1519
+ platformContacts: {
1520
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1521
+ id: string;
1522
+ metadata: {
1523
+ id: string;
1524
+ name: string;
1525
+ picture?: string | undefined;
1526
+ additionalCredentials?: any;
1527
+ };
1528
+ createdAt: Date;
1529
+ updatedAt: Date;
1530
+ deletedAt: Date | null;
1531
+ contact: {
1532
+ id: string;
1533
+ channel: string | null;
1534
+ address: string | null;
1535
+ name: string;
1536
+ createdAt: Date;
1537
+ updatedAt: Date;
1538
+ deletedAt: Date | null;
1539
+ customFields: {
1540
+ id: string;
1541
+ createdAt: Date;
1542
+ updatedAt: Date;
1543
+ deletedAt: Date | null;
1544
+ attribute: {
1545
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1546
+ id: string;
1547
+ position: number;
1548
+ createdAt: Date;
1549
+ updatedAt: Date;
1550
+ deletedAt: Date | null;
1551
+ systemName: string;
1552
+ displayName: string;
1553
+ isDefault: boolean;
1554
+ isArchived: boolean;
1555
+ isRequired: boolean;
1556
+ isUnique: boolean;
1557
+ };
1558
+ textValue: string | null;
1559
+ booleanValue: boolean | null;
1560
+ numberValue: number | null;
1561
+ dateValue: Date | null;
1562
+ uploads: {
1563
+ id: string;
1564
+ createdAt: Date;
1565
+ updatedAt: Date;
1566
+ deletedAt: Date | null;
1567
+ fileName: string;
1568
+ fileKey: string;
1569
+ bucketName: string;
1570
+ fileSize: number;
1571
+ fileUrl: string | null;
1572
+ status?: string | undefined;
1573
+ }[];
1574
+ }[];
1575
+ company: {
1576
+ id: string;
1577
+ createdAt: Date;
1578
+ updatedAt: Date;
1579
+ deletedAt: Date | null;
1580
+ address?: string | null | undefined;
1581
+ name?: string | undefined;
1582
+ phone?: string | null | undefined;
1583
+ industry?: string | null | undefined;
1584
+ } | null;
1585
+ notes: string | null;
1586
+ contactProfile: string | null;
1587
+ socialProfileUrl: string | null;
1588
+ tags: {
1589
+ id: string;
1590
+ name: string;
1591
+ createdAt: Date;
1592
+ updatedAt: Date;
1593
+ deletedAt: Date | null;
1594
+ }[];
1595
+ contactEmails: {
1596
+ id: string;
1597
+ isPrimary: boolean;
1598
+ email: string;
1599
+ createdAt: Date;
1600
+ updatedAt: Date;
1601
+ deletedAt: Date | null;
1602
+ }[];
1603
+ contactPhones: {
1604
+ id: string;
1605
+ isPrimary: boolean;
1606
+ createdAt: Date;
1607
+ updatedAt: Date;
1608
+ deletedAt: Date | null;
1609
+ phone: string;
1610
+ }[];
1611
+ activityLogs?: {
1612
+ id: string;
1613
+ description: string;
1614
+ createdAt: Date;
1615
+ updatedAt: Date;
1616
+ deletedAt: Date | null;
1617
+ entityId: string;
1618
+ entityType: {
1619
+ id: string;
1620
+ description: string | null;
1621
+ createdAt: Date;
1622
+ updatedAt: Date;
1623
+ deletedAt: Date | null;
1624
+ entity: string;
1625
+ };
1626
+ }[] | undefined;
1627
+ };
1628
+ channelId: string;
1629
+ socialPlatformId: string;
1630
+ }[];
1631
+ }>;
109
1632
  //# sourceMappingURL=validation.d.ts.map