@kl1/contracts 1.0.37 → 1.0.39
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/index.js +8 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -25
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +34 -34
- package/dist/src/chat/validation.d.ts +88 -88
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/comment/index.d.ts +6436 -1225
- package/dist/src/comment/index.d.ts.map +1 -1
- package/dist/src/comment/schema.d.ts +1594 -53
- package/dist/src/comment/schema.d.ts.map +1 -1
- package/dist/src/contract.d.ts +21372 -8818
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +86 -86
- package/dist/src/ticket/index.d.ts +10131 -2790
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/schema.d.ts +1342 -95
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/package.json +1 -1
@@ -285,6 +285,210 @@ export declare const TicketSchema: z.ZodObject<{
|
|
285
285
|
contactId: z.ZodString;
|
286
286
|
creatorId: z.ZodString;
|
287
287
|
assigneeId: z.ZodString;
|
288
|
+
assignee: z.ZodObject<{
|
289
|
+
id: z.ZodString;
|
290
|
+
createdAt: z.ZodDate;
|
291
|
+
updatedAt: z.ZodDate;
|
292
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
293
|
+
name: z.ZodString;
|
294
|
+
email: z.ZodString;
|
295
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
296
|
+
password: z.ZodString;
|
297
|
+
address: z.ZodNullable<z.ZodString>;
|
298
|
+
phone: z.ZodNullable<z.ZodString>;
|
299
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
300
|
+
roles: z.ZodArray<z.ZodObject<{
|
301
|
+
id: z.ZodString;
|
302
|
+
createdAt: z.ZodDate;
|
303
|
+
updatedAt: z.ZodDate;
|
304
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
305
|
+
systemName: z.ZodString;
|
306
|
+
displayName: z.ZodString;
|
307
|
+
description: z.ZodNullable<z.ZodString>;
|
308
|
+
permissions: z.ZodArray<z.ZodObject<{
|
309
|
+
id: z.ZodString;
|
310
|
+
createdAt: z.ZodDate;
|
311
|
+
updatedAt: z.ZodDate;
|
312
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
313
|
+
systemName: z.ZodString;
|
314
|
+
displayName: z.ZodString;
|
315
|
+
description: z.ZodNullable<z.ZodString>;
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
317
|
+
id: string;
|
318
|
+
description: string | null;
|
319
|
+
createdAt: Date;
|
320
|
+
updatedAt: Date;
|
321
|
+
deletedAt: Date | null;
|
322
|
+
systemName: string;
|
323
|
+
displayName: string;
|
324
|
+
}, {
|
325
|
+
id: string;
|
326
|
+
description: string | null;
|
327
|
+
createdAt: Date;
|
328
|
+
updatedAt: Date;
|
329
|
+
deletedAt: Date | null;
|
330
|
+
systemName: string;
|
331
|
+
displayName: string;
|
332
|
+
}>, "many">;
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
334
|
+
id: string;
|
335
|
+
description: string | null;
|
336
|
+
createdAt: Date;
|
337
|
+
updatedAt: Date;
|
338
|
+
deletedAt: Date | null;
|
339
|
+
systemName: string;
|
340
|
+
displayName: string;
|
341
|
+
permissions: {
|
342
|
+
id: string;
|
343
|
+
description: string | null;
|
344
|
+
createdAt: Date;
|
345
|
+
updatedAt: Date;
|
346
|
+
deletedAt: Date | null;
|
347
|
+
systemName: string;
|
348
|
+
displayName: string;
|
349
|
+
}[];
|
350
|
+
}, {
|
351
|
+
id: string;
|
352
|
+
description: string | null;
|
353
|
+
createdAt: Date;
|
354
|
+
updatedAt: Date;
|
355
|
+
deletedAt: Date | null;
|
356
|
+
systemName: string;
|
357
|
+
displayName: string;
|
358
|
+
permissions: {
|
359
|
+
id: string;
|
360
|
+
description: string | null;
|
361
|
+
createdAt: Date;
|
362
|
+
updatedAt: Date;
|
363
|
+
deletedAt: Date | null;
|
364
|
+
systemName: string;
|
365
|
+
displayName: string;
|
366
|
+
}[];
|
367
|
+
}>, "many">;
|
368
|
+
extension: z.ZodObject<{
|
369
|
+
id: z.ZodString;
|
370
|
+
createdAt: z.ZodDate;
|
371
|
+
updatedAt: z.ZodDate;
|
372
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
373
|
+
userId: z.ZodNullable<z.ZodString>;
|
374
|
+
sipServerUrl: z.ZodString;
|
375
|
+
sipUserName: z.ZodString;
|
376
|
+
webphoneLoginUser: z.ZodString;
|
377
|
+
extensionId: z.ZodNumber;
|
378
|
+
extensionName: z.ZodString;
|
379
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
381
|
+
id: string;
|
382
|
+
createdAt: Date;
|
383
|
+
updatedAt: Date;
|
384
|
+
deletedAt: Date | null;
|
385
|
+
userId: string | null;
|
386
|
+
sipServerUrl: string;
|
387
|
+
sipUserName: string;
|
388
|
+
webphoneLoginUser: string;
|
389
|
+
extensionId: number;
|
390
|
+
extensionName: string;
|
391
|
+
telephonySignature: string | null;
|
392
|
+
}, {
|
393
|
+
id: string;
|
394
|
+
createdAt: Date;
|
395
|
+
updatedAt: Date;
|
396
|
+
deletedAt: Date | null;
|
397
|
+
userId: string | null;
|
398
|
+
sipServerUrl: string;
|
399
|
+
sipUserName: string;
|
400
|
+
webphoneLoginUser: string;
|
401
|
+
extensionId: number;
|
402
|
+
extensionName: string;
|
403
|
+
telephonySignature: string | null;
|
404
|
+
}>;
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
406
|
+
id: string;
|
407
|
+
address: string | null;
|
408
|
+
name: string;
|
409
|
+
email: string;
|
410
|
+
createdAt: Date;
|
411
|
+
updatedAt: Date;
|
412
|
+
deletedAt: Date | null;
|
413
|
+
emailVerifiedAt: Date | null;
|
414
|
+
password: string;
|
415
|
+
phone: string | null;
|
416
|
+
notificationCount: number | null;
|
417
|
+
roles: {
|
418
|
+
id: string;
|
419
|
+
description: string | null;
|
420
|
+
createdAt: Date;
|
421
|
+
updatedAt: Date;
|
422
|
+
deletedAt: Date | null;
|
423
|
+
systemName: string;
|
424
|
+
displayName: string;
|
425
|
+
permissions: {
|
426
|
+
id: string;
|
427
|
+
description: string | null;
|
428
|
+
createdAt: Date;
|
429
|
+
updatedAt: Date;
|
430
|
+
deletedAt: Date | null;
|
431
|
+
systemName: string;
|
432
|
+
displayName: string;
|
433
|
+
}[];
|
434
|
+
}[];
|
435
|
+
extension: {
|
436
|
+
id: string;
|
437
|
+
createdAt: Date;
|
438
|
+
updatedAt: Date;
|
439
|
+
deletedAt: Date | null;
|
440
|
+
userId: string | null;
|
441
|
+
sipServerUrl: string;
|
442
|
+
sipUserName: string;
|
443
|
+
webphoneLoginUser: string;
|
444
|
+
extensionId: number;
|
445
|
+
extensionName: string;
|
446
|
+
telephonySignature: string | null;
|
447
|
+
};
|
448
|
+
}, {
|
449
|
+
id: string;
|
450
|
+
address: string | null;
|
451
|
+
name: string;
|
452
|
+
email: string;
|
453
|
+
createdAt: Date;
|
454
|
+
updatedAt: Date;
|
455
|
+
deletedAt: Date | null;
|
456
|
+
emailVerifiedAt: Date | null;
|
457
|
+
password: string;
|
458
|
+
phone: string | null;
|
459
|
+
notificationCount: number | null;
|
460
|
+
roles: {
|
461
|
+
id: string;
|
462
|
+
description: string | null;
|
463
|
+
createdAt: Date;
|
464
|
+
updatedAt: Date;
|
465
|
+
deletedAt: Date | null;
|
466
|
+
systemName: string;
|
467
|
+
displayName: string;
|
468
|
+
permissions: {
|
469
|
+
id: string;
|
470
|
+
description: string | null;
|
471
|
+
createdAt: Date;
|
472
|
+
updatedAt: Date;
|
473
|
+
deletedAt: Date | null;
|
474
|
+
systemName: string;
|
475
|
+
displayName: string;
|
476
|
+
}[];
|
477
|
+
}[];
|
478
|
+
extension: {
|
479
|
+
id: string;
|
480
|
+
createdAt: Date;
|
481
|
+
updatedAt: Date;
|
482
|
+
deletedAt: Date | null;
|
483
|
+
userId: string | null;
|
484
|
+
sipServerUrl: string;
|
485
|
+
sipUserName: string;
|
486
|
+
webphoneLoginUser: string;
|
487
|
+
extensionId: number;
|
488
|
+
extensionName: string;
|
489
|
+
telephonySignature: string | null;
|
490
|
+
};
|
491
|
+
}>;
|
288
492
|
reasonToAssign: z.ZodNullable<z.ZodString>;
|
289
493
|
ticketNumber: z.ZodOptional<z.ZodNumber>;
|
290
494
|
customFields: z.ZodArray<z.ZodObject<{
|
@@ -596,111 +800,1007 @@ export declare const TicketSchema: z.ZodObject<{
|
|
596
800
|
}[];
|
597
801
|
}[];
|
598
802
|
}>, "many">;
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
parentId: string | null;
|
618
|
-
childCategoryList: {
|
803
|
+
contact: z.ZodObject<{
|
804
|
+
id: z.ZodString;
|
805
|
+
createdAt: z.ZodDate;
|
806
|
+
updatedAt: z.ZodDate;
|
807
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
808
|
+
name: z.ZodString;
|
809
|
+
address: z.ZodNullable<z.ZodString>;
|
810
|
+
channel: z.ZodNullable<z.ZodString>;
|
811
|
+
notes: z.ZodNullable<z.ZodString>;
|
812
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
813
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
814
|
+
tags: z.ZodArray<z.ZodObject<{
|
815
|
+
id: z.ZodString;
|
816
|
+
createdAt: z.ZodDate;
|
817
|
+
updatedAt: z.ZodDate;
|
818
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
819
|
+
name: z.ZodString;
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
619
821
|
id: string;
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
value: string;
|
626
|
-
level: 2 | 1 | 3;
|
627
|
-
parentId: string | null;
|
628
|
-
childCategoryList: any[];
|
629
|
-
}[];
|
630
|
-
}[];
|
631
|
-
}[];
|
632
|
-
customFields: {
|
633
|
-
id: string;
|
634
|
-
createdAt: Date;
|
635
|
-
updatedAt: Date;
|
636
|
-
deletedAt: Date | null;
|
637
|
-
attribute: {
|
638
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
822
|
+
name: string;
|
823
|
+
createdAt: Date;
|
824
|
+
updatedAt: Date;
|
825
|
+
deletedAt: Date | null;
|
826
|
+
}, {
|
639
827
|
id: string;
|
640
|
-
|
828
|
+
name: string;
|
641
829
|
createdAt: Date;
|
642
830
|
updatedAt: Date;
|
643
831
|
deletedAt: Date | null;
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
832
|
+
}>, "many">;
|
833
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
834
|
+
id: z.ZodString;
|
835
|
+
createdAt: z.ZodDate;
|
836
|
+
updatedAt: z.ZodDate;
|
837
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
838
|
+
name: z.ZodOptional<z.ZodString>;
|
839
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
840
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
841
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
842
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
843
|
+
id: z.ZodString;
|
844
|
+
createdAt: z.ZodDate;
|
845
|
+
updatedAt: z.ZodDate;
|
846
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
847
|
+
textValue: z.ZodNullable<z.ZodString>;
|
848
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
849
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
850
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
851
|
+
attribute: z.ZodObject<Omit<{
|
852
|
+
id: z.ZodString;
|
853
|
+
createdAt: z.ZodDate;
|
854
|
+
updatedAt: z.ZodDate;
|
855
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
856
|
+
systemName: z.ZodString;
|
857
|
+
displayName: z.ZodString;
|
858
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
859
|
+
position: z.ZodNumber;
|
860
|
+
isDefault: z.ZodBoolean;
|
861
|
+
isArchived: z.ZodBoolean;
|
862
|
+
isRequired: z.ZodBoolean;
|
863
|
+
isUnique: z.ZodBoolean;
|
864
|
+
options: z.ZodArray<z.ZodObject<{
|
865
|
+
position: z.ZodNumber;
|
866
|
+
value: z.ZodString;
|
867
|
+
label: z.ZodString;
|
868
|
+
isDefault: z.ZodBoolean;
|
869
|
+
id: z.ZodString;
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
871
|
+
id: string;
|
872
|
+
position: number;
|
873
|
+
value: string;
|
874
|
+
label: string;
|
875
|
+
isDefault: boolean;
|
876
|
+
}, {
|
877
|
+
id: string;
|
878
|
+
position: number;
|
879
|
+
value: string;
|
880
|
+
label: string;
|
881
|
+
isDefault: boolean;
|
882
|
+
}>, "many">;
|
883
|
+
group: z.ZodObject<{
|
884
|
+
id: z.ZodString;
|
885
|
+
createdAt: z.ZodDate;
|
886
|
+
updatedAt: z.ZodDate;
|
887
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
888
|
+
systemName: z.ZodString;
|
889
|
+
displayName: z.ZodString;
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
891
|
+
id: string;
|
892
|
+
createdAt: Date;
|
893
|
+
updatedAt: Date;
|
894
|
+
deletedAt: Date | null;
|
895
|
+
systemName: string;
|
896
|
+
displayName: string;
|
897
|
+
}, {
|
898
|
+
id: string;
|
899
|
+
createdAt: Date;
|
900
|
+
updatedAt: Date;
|
901
|
+
deletedAt: Date | null;
|
902
|
+
systemName: string;
|
903
|
+
displayName: string;
|
904
|
+
}>;
|
905
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
906
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
907
|
+
id: string;
|
908
|
+
position: number;
|
909
|
+
createdAt: Date;
|
910
|
+
updatedAt: Date;
|
911
|
+
deletedAt: Date | null;
|
912
|
+
isDefault: boolean;
|
913
|
+
systemName: string;
|
914
|
+
displayName: string;
|
915
|
+
isArchived: boolean;
|
916
|
+
isRequired: boolean;
|
917
|
+
isUnique: boolean;
|
918
|
+
}, {
|
919
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
920
|
+
id: string;
|
921
|
+
position: number;
|
922
|
+
createdAt: Date;
|
923
|
+
updatedAt: Date;
|
924
|
+
deletedAt: Date | null;
|
925
|
+
isDefault: boolean;
|
926
|
+
systemName: string;
|
927
|
+
displayName: string;
|
928
|
+
isArchived: boolean;
|
929
|
+
isRequired: boolean;
|
930
|
+
isUnique: boolean;
|
931
|
+
}>;
|
932
|
+
}, "strip", z.ZodTypeAny, {
|
933
|
+
id: string;
|
934
|
+
createdAt: Date;
|
935
|
+
updatedAt: Date;
|
936
|
+
deletedAt: Date | null;
|
937
|
+
attribute: {
|
938
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
939
|
+
id: string;
|
940
|
+
position: number;
|
941
|
+
createdAt: Date;
|
942
|
+
updatedAt: Date;
|
943
|
+
deletedAt: Date | null;
|
944
|
+
isDefault: boolean;
|
945
|
+
systemName: string;
|
946
|
+
displayName: string;
|
947
|
+
isArchived: boolean;
|
948
|
+
isRequired: boolean;
|
949
|
+
isUnique: boolean;
|
950
|
+
};
|
951
|
+
textValue: string | null;
|
952
|
+
booleanValue: boolean | null;
|
953
|
+
numberValue: number | null;
|
954
|
+
dateValue: Date | null;
|
955
|
+
}, {
|
956
|
+
id: string;
|
957
|
+
createdAt: Date;
|
958
|
+
updatedAt: Date;
|
959
|
+
deletedAt: Date | null;
|
960
|
+
attribute: {
|
961
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
962
|
+
id: string;
|
963
|
+
position: number;
|
964
|
+
createdAt: Date;
|
965
|
+
updatedAt: Date;
|
966
|
+
deletedAt: Date | null;
|
967
|
+
isDefault: boolean;
|
968
|
+
systemName: string;
|
969
|
+
displayName: string;
|
970
|
+
isArchived: boolean;
|
971
|
+
isRequired: boolean;
|
972
|
+
isUnique: boolean;
|
973
|
+
};
|
974
|
+
textValue: string | null;
|
975
|
+
booleanValue: boolean | null;
|
976
|
+
numberValue: number | null;
|
977
|
+
dateValue: Date | null;
|
978
|
+
}>, "many">>;
|
979
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
656
980
|
id: string;
|
657
981
|
createdAt: Date;
|
658
982
|
updatedAt: Date;
|
659
983
|
deletedAt: Date | null;
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
}[];
|
666
|
-
}[];
|
667
|
-
tags: {
|
668
|
-
id: string;
|
669
|
-
name: string;
|
670
|
-
createdAt: Date;
|
671
|
-
updatedAt: Date;
|
672
|
-
deletedAt: Date | null;
|
673
|
-
}[];
|
674
|
-
contactId: string;
|
675
|
-
assigneeId: string;
|
676
|
-
creatorId: string;
|
677
|
-
reasonToAssign: string | null;
|
678
|
-
ticketNumber?: number | undefined;
|
679
|
-
}, {
|
680
|
-
type: string;
|
681
|
-
id: string;
|
682
|
-
channel: string;
|
683
|
-
priority: string;
|
684
|
-
title: string;
|
685
|
-
description: string | null;
|
686
|
-
status: string;
|
687
|
-
createdAt: Date;
|
688
|
-
updatedAt: Date;
|
689
|
-
deletedAt: Date | null;
|
690
|
-
categories: {
|
691
|
-
id: string;
|
692
|
-
value: string;
|
693
|
-
createdAt: Date;
|
694
|
-
updatedAt: Date;
|
695
|
-
deletedAt: Date | null;
|
696
|
-
level: 2 | 1 | 3;
|
697
|
-
parentId: string | null;
|
698
|
-
childCategoryList: {
|
984
|
+
address?: string | null | undefined;
|
985
|
+
name?: string | undefined;
|
986
|
+
phone?: string | null | undefined;
|
987
|
+
industry?: string | null | undefined;
|
988
|
+
}, {
|
699
989
|
id: string;
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
990
|
+
createdAt: Date;
|
991
|
+
updatedAt: Date;
|
992
|
+
deletedAt: Date | null;
|
993
|
+
address?: string | null | undefined;
|
994
|
+
name?: string | undefined;
|
995
|
+
phone?: string | null | undefined;
|
996
|
+
industry?: string | null | undefined;
|
997
|
+
}>>;
|
998
|
+
customFields: z.ZodArray<z.ZodObject<{
|
999
|
+
id: z.ZodString;
|
1000
|
+
createdAt: z.ZodDate;
|
1001
|
+
updatedAt: z.ZodDate;
|
1002
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1003
|
+
textValue: z.ZodNullable<z.ZodString>;
|
1004
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
1005
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
1006
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
1007
|
+
attribute: z.ZodObject<Omit<{
|
1008
|
+
id: z.ZodString;
|
1009
|
+
createdAt: z.ZodDate;
|
1010
|
+
updatedAt: z.ZodDate;
|
1011
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1012
|
+
systemName: z.ZodString;
|
1013
|
+
displayName: z.ZodString;
|
1014
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
1015
|
+
position: z.ZodNumber;
|
1016
|
+
isDefault: z.ZodBoolean;
|
1017
|
+
isArchived: z.ZodBoolean;
|
1018
|
+
isRequired: z.ZodBoolean;
|
1019
|
+
isUnique: z.ZodBoolean;
|
1020
|
+
options: z.ZodArray<z.ZodObject<{
|
1021
|
+
position: z.ZodNumber;
|
1022
|
+
value: z.ZodString;
|
1023
|
+
label: z.ZodString;
|
1024
|
+
isDefault: z.ZodBoolean;
|
1025
|
+
id: z.ZodString;
|
1026
|
+
}, "strip", z.ZodTypeAny, {
|
1027
|
+
id: string;
|
1028
|
+
position: number;
|
1029
|
+
value: string;
|
1030
|
+
label: string;
|
1031
|
+
isDefault: boolean;
|
1032
|
+
}, {
|
1033
|
+
id: string;
|
1034
|
+
position: number;
|
1035
|
+
value: string;
|
1036
|
+
label: string;
|
1037
|
+
isDefault: boolean;
|
1038
|
+
}>, "many">;
|
1039
|
+
group: z.ZodObject<{
|
1040
|
+
id: z.ZodString;
|
1041
|
+
createdAt: z.ZodDate;
|
1042
|
+
updatedAt: z.ZodDate;
|
1043
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1044
|
+
systemName: z.ZodString;
|
1045
|
+
displayName: z.ZodString;
|
1046
|
+
}, "strip", z.ZodTypeAny, {
|
1047
|
+
id: string;
|
1048
|
+
createdAt: Date;
|
1049
|
+
updatedAt: Date;
|
1050
|
+
deletedAt: Date | null;
|
1051
|
+
systemName: string;
|
1052
|
+
displayName: string;
|
1053
|
+
}, {
|
1054
|
+
id: string;
|
1055
|
+
createdAt: Date;
|
1056
|
+
updatedAt: Date;
|
1057
|
+
deletedAt: Date | null;
|
1058
|
+
systemName: string;
|
1059
|
+
displayName: string;
|
1060
|
+
}>;
|
1061
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
1062
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1063
|
+
id: string;
|
1064
|
+
position: number;
|
1065
|
+
createdAt: Date;
|
1066
|
+
updatedAt: Date;
|
1067
|
+
deletedAt: Date | null;
|
1068
|
+
isDefault: boolean;
|
1069
|
+
systemName: string;
|
1070
|
+
displayName: string;
|
1071
|
+
isArchived: boolean;
|
1072
|
+
isRequired: boolean;
|
1073
|
+
isUnique: boolean;
|
1074
|
+
}, {
|
1075
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1076
|
+
id: string;
|
1077
|
+
position: number;
|
1078
|
+
createdAt: Date;
|
1079
|
+
updatedAt: Date;
|
1080
|
+
deletedAt: Date | null;
|
1081
|
+
isDefault: boolean;
|
1082
|
+
systemName: string;
|
1083
|
+
displayName: string;
|
1084
|
+
isArchived: boolean;
|
1085
|
+
isRequired: boolean;
|
1086
|
+
isUnique: boolean;
|
1087
|
+
}>;
|
1088
|
+
uploads: z.ZodArray<z.ZodObject<{
|
1089
|
+
id: z.ZodString;
|
1090
|
+
createdAt: z.ZodDate;
|
1091
|
+
updatedAt: z.ZodDate;
|
1092
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1093
|
+
customFieldId: z.ZodString;
|
1094
|
+
upload: z.ZodObject<{
|
1095
|
+
id: z.ZodString;
|
1096
|
+
createdAt: z.ZodDate;
|
1097
|
+
updatedAt: z.ZodDate;
|
1098
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1099
|
+
bucketName: z.ZodString;
|
1100
|
+
fileName: z.ZodString;
|
1101
|
+
fileSize: z.ZodNumber;
|
1102
|
+
fileKey: z.ZodString;
|
1103
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
1104
|
+
}, "strip", z.ZodTypeAny, {
|
1105
|
+
id: string;
|
1106
|
+
createdAt: Date;
|
1107
|
+
updatedAt: Date;
|
1108
|
+
deletedAt: Date | null;
|
1109
|
+
fileName: string;
|
1110
|
+
fileKey: string;
|
1111
|
+
bucketName: string;
|
1112
|
+
fileSize: number;
|
1113
|
+
fileUrl: string | null;
|
1114
|
+
}, {
|
1115
|
+
id: string;
|
1116
|
+
createdAt: Date;
|
1117
|
+
updatedAt: Date;
|
1118
|
+
deletedAt: Date | null;
|
1119
|
+
fileName: string;
|
1120
|
+
fileKey: string;
|
1121
|
+
bucketName: string;
|
1122
|
+
fileSize: number;
|
1123
|
+
fileUrl: string | null;
|
1124
|
+
}>;
|
1125
|
+
}, "strip", z.ZodTypeAny, {
|
1126
|
+
id: string;
|
1127
|
+
createdAt: Date;
|
1128
|
+
updatedAt: Date;
|
1129
|
+
deletedAt: Date | null;
|
1130
|
+
customFieldId: string;
|
1131
|
+
upload: {
|
1132
|
+
id: string;
|
1133
|
+
createdAt: Date;
|
1134
|
+
updatedAt: Date;
|
1135
|
+
deletedAt: Date | null;
|
1136
|
+
fileName: string;
|
1137
|
+
fileKey: string;
|
1138
|
+
bucketName: string;
|
1139
|
+
fileSize: number;
|
1140
|
+
fileUrl: string | null;
|
1141
|
+
};
|
1142
|
+
}, {
|
1143
|
+
id: string;
|
1144
|
+
createdAt: Date;
|
1145
|
+
updatedAt: Date;
|
1146
|
+
deletedAt: Date | null;
|
1147
|
+
customFieldId: string;
|
1148
|
+
upload: {
|
1149
|
+
id: string;
|
1150
|
+
createdAt: Date;
|
1151
|
+
updatedAt: Date;
|
1152
|
+
deletedAt: Date | null;
|
1153
|
+
fileName: string;
|
1154
|
+
fileKey: string;
|
1155
|
+
bucketName: string;
|
1156
|
+
fileSize: number;
|
1157
|
+
fileUrl: string | null;
|
1158
|
+
};
|
1159
|
+
}>, "many">;
|
1160
|
+
}, "strip", z.ZodTypeAny, {
|
1161
|
+
id: string;
|
1162
|
+
createdAt: Date;
|
1163
|
+
updatedAt: Date;
|
1164
|
+
deletedAt: Date | null;
|
1165
|
+
attribute: {
|
1166
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1167
|
+
id: string;
|
1168
|
+
position: number;
|
1169
|
+
createdAt: Date;
|
1170
|
+
updatedAt: Date;
|
1171
|
+
deletedAt: Date | null;
|
1172
|
+
isDefault: boolean;
|
1173
|
+
systemName: string;
|
1174
|
+
displayName: string;
|
1175
|
+
isArchived: boolean;
|
1176
|
+
isRequired: boolean;
|
1177
|
+
isUnique: boolean;
|
1178
|
+
};
|
1179
|
+
textValue: string | null;
|
1180
|
+
booleanValue: boolean | null;
|
1181
|
+
numberValue: number | null;
|
1182
|
+
dateValue: Date | null;
|
1183
|
+
uploads: {
|
1184
|
+
id: string;
|
1185
|
+
createdAt: Date;
|
1186
|
+
updatedAt: Date;
|
1187
|
+
deletedAt: Date | null;
|
1188
|
+
customFieldId: string;
|
1189
|
+
upload: {
|
1190
|
+
id: string;
|
1191
|
+
createdAt: Date;
|
1192
|
+
updatedAt: Date;
|
1193
|
+
deletedAt: Date | null;
|
1194
|
+
fileName: string;
|
1195
|
+
fileKey: string;
|
1196
|
+
bucketName: string;
|
1197
|
+
fileSize: number;
|
1198
|
+
fileUrl: string | null;
|
1199
|
+
};
|
1200
|
+
}[];
|
1201
|
+
}, {
|
1202
|
+
id: string;
|
1203
|
+
createdAt: Date;
|
1204
|
+
updatedAt: Date;
|
1205
|
+
deletedAt: Date | null;
|
1206
|
+
attribute: {
|
1207
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1208
|
+
id: string;
|
1209
|
+
position: number;
|
1210
|
+
createdAt: Date;
|
1211
|
+
updatedAt: Date;
|
1212
|
+
deletedAt: Date | null;
|
1213
|
+
isDefault: boolean;
|
1214
|
+
systemName: string;
|
1215
|
+
displayName: string;
|
1216
|
+
isArchived: boolean;
|
1217
|
+
isRequired: boolean;
|
1218
|
+
isUnique: boolean;
|
1219
|
+
};
|
1220
|
+
textValue: string | null;
|
1221
|
+
booleanValue: boolean | null;
|
1222
|
+
numberValue: number | null;
|
1223
|
+
dateValue: Date | null;
|
1224
|
+
uploads: {
|
1225
|
+
id: string;
|
1226
|
+
createdAt: Date;
|
1227
|
+
updatedAt: Date;
|
1228
|
+
deletedAt: Date | null;
|
1229
|
+
customFieldId: string;
|
1230
|
+
upload: {
|
1231
|
+
id: string;
|
1232
|
+
createdAt: Date;
|
1233
|
+
updatedAt: Date;
|
1234
|
+
deletedAt: Date | null;
|
1235
|
+
fileName: string;
|
1236
|
+
fileKey: string;
|
1237
|
+
bucketName: string;
|
1238
|
+
fileSize: number;
|
1239
|
+
fileUrl: string | null;
|
1240
|
+
};
|
1241
|
+
}[];
|
1242
|
+
}>, "many">;
|
1243
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
1244
|
+
id: z.ZodString;
|
1245
|
+
createdAt: z.ZodDate;
|
1246
|
+
updatedAt: z.ZodDate;
|
1247
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1248
|
+
email: z.ZodString;
|
1249
|
+
isPrimary: z.ZodBoolean;
|
1250
|
+
}, "strip", z.ZodTypeAny, {
|
1251
|
+
id: string;
|
1252
|
+
isPrimary: boolean;
|
1253
|
+
email: string;
|
1254
|
+
createdAt: Date;
|
1255
|
+
updatedAt: Date;
|
1256
|
+
deletedAt: Date | null;
|
1257
|
+
}, {
|
1258
|
+
id: string;
|
1259
|
+
isPrimary: boolean;
|
1260
|
+
email: string;
|
1261
|
+
createdAt: Date;
|
1262
|
+
updatedAt: Date;
|
1263
|
+
deletedAt: Date | null;
|
1264
|
+
}>, "many">;
|
1265
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
1266
|
+
id: z.ZodString;
|
1267
|
+
createdAt: z.ZodDate;
|
1268
|
+
updatedAt: z.ZodDate;
|
1269
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1270
|
+
phone: z.ZodString;
|
1271
|
+
isPrimary: z.ZodBoolean;
|
1272
|
+
}, "strip", z.ZodTypeAny, {
|
1273
|
+
id: string;
|
1274
|
+
isPrimary: boolean;
|
1275
|
+
createdAt: Date;
|
1276
|
+
updatedAt: Date;
|
1277
|
+
deletedAt: Date | null;
|
1278
|
+
phone: string;
|
1279
|
+
}, {
|
1280
|
+
id: string;
|
1281
|
+
isPrimary: boolean;
|
1282
|
+
createdAt: Date;
|
1283
|
+
updatedAt: Date;
|
1284
|
+
deletedAt: Date | null;
|
1285
|
+
phone: string;
|
1286
|
+
}>, "many">;
|
1287
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1288
|
+
id: z.ZodString;
|
1289
|
+
createdAt: z.ZodDate;
|
1290
|
+
updatedAt: z.ZodDate;
|
1291
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1292
|
+
entityId: z.ZodString;
|
1293
|
+
description: z.ZodString;
|
1294
|
+
entityType: z.ZodObject<{
|
1295
|
+
id: z.ZodString;
|
1296
|
+
createdAt: z.ZodDate;
|
1297
|
+
updatedAt: z.ZodDate;
|
1298
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1299
|
+
entity: z.ZodString;
|
1300
|
+
description: z.ZodNullable<z.ZodString>;
|
1301
|
+
}, "strip", z.ZodTypeAny, {
|
1302
|
+
id: string;
|
1303
|
+
description: string | null;
|
1304
|
+
createdAt: Date;
|
1305
|
+
updatedAt: Date;
|
1306
|
+
deletedAt: Date | null;
|
1307
|
+
entity: string;
|
1308
|
+
}, {
|
1309
|
+
id: string;
|
1310
|
+
description: string | null;
|
1311
|
+
createdAt: Date;
|
1312
|
+
updatedAt: Date;
|
1313
|
+
deletedAt: Date | null;
|
1314
|
+
entity: string;
|
1315
|
+
}>;
|
1316
|
+
}, "strip", z.ZodTypeAny, {
|
1317
|
+
id: string;
|
1318
|
+
description: string;
|
1319
|
+
createdAt: Date;
|
1320
|
+
updatedAt: Date;
|
1321
|
+
deletedAt: Date | null;
|
1322
|
+
entityId: string;
|
1323
|
+
entityType: {
|
1324
|
+
id: string;
|
1325
|
+
description: string | null;
|
1326
|
+
createdAt: Date;
|
1327
|
+
updatedAt: Date;
|
1328
|
+
deletedAt: Date | null;
|
1329
|
+
entity: string;
|
1330
|
+
};
|
1331
|
+
}, {
|
1332
|
+
id: string;
|
1333
|
+
description: string;
|
1334
|
+
createdAt: Date;
|
1335
|
+
updatedAt: Date;
|
1336
|
+
deletedAt: Date | null;
|
1337
|
+
entityId: string;
|
1338
|
+
entityType: {
|
1339
|
+
id: string;
|
1340
|
+
description: string | null;
|
1341
|
+
createdAt: Date;
|
1342
|
+
updatedAt: Date;
|
1343
|
+
deletedAt: Date | null;
|
1344
|
+
entity: string;
|
1345
|
+
};
|
1346
|
+
}>, "many">>;
|
1347
|
+
}, "strip", z.ZodTypeAny, {
|
1348
|
+
id: string;
|
1349
|
+
channel: string | null;
|
1350
|
+
address: string | null;
|
1351
|
+
name: string;
|
1352
|
+
createdAt: Date;
|
1353
|
+
updatedAt: Date;
|
1354
|
+
deletedAt: Date | null;
|
1355
|
+
customFields: {
|
1356
|
+
id: string;
|
1357
|
+
createdAt: Date;
|
1358
|
+
updatedAt: Date;
|
1359
|
+
deletedAt: Date | null;
|
1360
|
+
attribute: {
|
1361
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1362
|
+
id: string;
|
1363
|
+
position: number;
|
1364
|
+
createdAt: Date;
|
1365
|
+
updatedAt: Date;
|
1366
|
+
deletedAt: Date | null;
|
1367
|
+
isDefault: boolean;
|
1368
|
+
systemName: string;
|
1369
|
+
displayName: string;
|
1370
|
+
isArchived: boolean;
|
1371
|
+
isRequired: boolean;
|
1372
|
+
isUnique: boolean;
|
1373
|
+
};
|
1374
|
+
textValue: string | null;
|
1375
|
+
booleanValue: boolean | null;
|
1376
|
+
numberValue: number | null;
|
1377
|
+
dateValue: Date | null;
|
1378
|
+
uploads: {
|
1379
|
+
id: string;
|
1380
|
+
createdAt: Date;
|
1381
|
+
updatedAt: Date;
|
1382
|
+
deletedAt: Date | null;
|
1383
|
+
customFieldId: string;
|
1384
|
+
upload: {
|
1385
|
+
id: string;
|
1386
|
+
createdAt: Date;
|
1387
|
+
updatedAt: Date;
|
1388
|
+
deletedAt: Date | null;
|
1389
|
+
fileName: string;
|
1390
|
+
fileKey: string;
|
1391
|
+
bucketName: string;
|
1392
|
+
fileSize: number;
|
1393
|
+
fileUrl: string | null;
|
1394
|
+
};
|
1395
|
+
}[];
|
1396
|
+
}[];
|
1397
|
+
notes: string | null;
|
1398
|
+
contactProfile: string | null;
|
1399
|
+
socialProfileUrl: string | null;
|
1400
|
+
tags: {
|
1401
|
+
id: string;
|
1402
|
+
name: string;
|
1403
|
+
createdAt: Date;
|
1404
|
+
updatedAt: Date;
|
1405
|
+
deletedAt: Date | null;
|
1406
|
+
}[];
|
1407
|
+
company: {
|
1408
|
+
id: string;
|
1409
|
+
createdAt: Date;
|
1410
|
+
updatedAt: Date;
|
1411
|
+
deletedAt: Date | null;
|
1412
|
+
address?: string | null | undefined;
|
1413
|
+
name?: string | undefined;
|
1414
|
+
phone?: string | null | undefined;
|
1415
|
+
industry?: string | null | undefined;
|
1416
|
+
} | null;
|
1417
|
+
contactEmails: {
|
1418
|
+
id: string;
|
1419
|
+
isPrimary: boolean;
|
1420
|
+
email: string;
|
1421
|
+
createdAt: Date;
|
1422
|
+
updatedAt: Date;
|
1423
|
+
deletedAt: Date | null;
|
1424
|
+
}[];
|
1425
|
+
contactPhones: {
|
1426
|
+
id: string;
|
1427
|
+
isPrimary: boolean;
|
1428
|
+
createdAt: Date;
|
1429
|
+
updatedAt: Date;
|
1430
|
+
deletedAt: Date | null;
|
1431
|
+
phone: string;
|
1432
|
+
}[];
|
1433
|
+
activityLogs?: {
|
1434
|
+
id: string;
|
1435
|
+
description: string;
|
1436
|
+
createdAt: Date;
|
1437
|
+
updatedAt: Date;
|
1438
|
+
deletedAt: Date | null;
|
1439
|
+
entityId: string;
|
1440
|
+
entityType: {
|
1441
|
+
id: string;
|
1442
|
+
description: string | null;
|
1443
|
+
createdAt: Date;
|
1444
|
+
updatedAt: Date;
|
1445
|
+
deletedAt: Date | null;
|
1446
|
+
entity: string;
|
1447
|
+
};
|
1448
|
+
}[] | undefined;
|
1449
|
+
}, {
|
1450
|
+
id: string;
|
1451
|
+
channel: string | null;
|
1452
|
+
address: string | null;
|
1453
|
+
name: string;
|
1454
|
+
createdAt: Date;
|
1455
|
+
updatedAt: Date;
|
1456
|
+
deletedAt: Date | null;
|
1457
|
+
customFields: {
|
1458
|
+
id: string;
|
1459
|
+
createdAt: Date;
|
1460
|
+
updatedAt: Date;
|
1461
|
+
deletedAt: Date | null;
|
1462
|
+
attribute: {
|
1463
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1464
|
+
id: string;
|
1465
|
+
position: number;
|
1466
|
+
createdAt: Date;
|
1467
|
+
updatedAt: Date;
|
1468
|
+
deletedAt: Date | null;
|
1469
|
+
isDefault: boolean;
|
1470
|
+
systemName: string;
|
1471
|
+
displayName: string;
|
1472
|
+
isArchived: boolean;
|
1473
|
+
isRequired: boolean;
|
1474
|
+
isUnique: boolean;
|
1475
|
+
};
|
1476
|
+
textValue: string | null;
|
1477
|
+
booleanValue: boolean | null;
|
1478
|
+
numberValue: number | null;
|
1479
|
+
dateValue: Date | null;
|
1480
|
+
uploads: {
|
1481
|
+
id: string;
|
1482
|
+
createdAt: Date;
|
1483
|
+
updatedAt: Date;
|
1484
|
+
deletedAt: Date | null;
|
1485
|
+
customFieldId: string;
|
1486
|
+
upload: {
|
1487
|
+
id: string;
|
1488
|
+
createdAt: Date;
|
1489
|
+
updatedAt: Date;
|
1490
|
+
deletedAt: Date | null;
|
1491
|
+
fileName: string;
|
1492
|
+
fileKey: string;
|
1493
|
+
bucketName: string;
|
1494
|
+
fileSize: number;
|
1495
|
+
fileUrl: string | null;
|
1496
|
+
};
|
1497
|
+
}[];
|
1498
|
+
}[];
|
1499
|
+
notes: string | null;
|
1500
|
+
contactProfile: string | null;
|
1501
|
+
socialProfileUrl: string | null;
|
1502
|
+
tags: {
|
1503
|
+
id: string;
|
1504
|
+
name: string;
|
1505
|
+
createdAt: Date;
|
1506
|
+
updatedAt: Date;
|
1507
|
+
deletedAt: Date | null;
|
1508
|
+
}[];
|
1509
|
+
company: {
|
1510
|
+
id: string;
|
1511
|
+
createdAt: Date;
|
1512
|
+
updatedAt: Date;
|
1513
|
+
deletedAt: Date | null;
|
1514
|
+
address?: string | null | undefined;
|
1515
|
+
name?: string | undefined;
|
1516
|
+
phone?: string | null | undefined;
|
1517
|
+
industry?: string | null | undefined;
|
1518
|
+
} | null;
|
1519
|
+
contactEmails: {
|
1520
|
+
id: string;
|
1521
|
+
isPrimary: boolean;
|
1522
|
+
email: string;
|
1523
|
+
createdAt: Date;
|
1524
|
+
updatedAt: Date;
|
1525
|
+
deletedAt: Date | null;
|
1526
|
+
}[];
|
1527
|
+
contactPhones: {
|
1528
|
+
id: string;
|
1529
|
+
isPrimary: boolean;
|
1530
|
+
createdAt: Date;
|
1531
|
+
updatedAt: Date;
|
1532
|
+
deletedAt: Date | null;
|
1533
|
+
phone: string;
|
1534
|
+
}[];
|
1535
|
+
activityLogs?: {
|
1536
|
+
id: string;
|
1537
|
+
description: string;
|
1538
|
+
createdAt: Date;
|
1539
|
+
updatedAt: Date;
|
1540
|
+
deletedAt: Date | null;
|
1541
|
+
entityId: string;
|
1542
|
+
entityType: {
|
1543
|
+
id: string;
|
1544
|
+
description: string | null;
|
1545
|
+
createdAt: Date;
|
1546
|
+
updatedAt: Date;
|
1547
|
+
deletedAt: Date | null;
|
1548
|
+
entity: string;
|
1549
|
+
};
|
1550
|
+
}[] | undefined;
|
1551
|
+
}>;
|
1552
|
+
}, "strip", z.ZodTypeAny, {
|
1553
|
+
type: string;
|
1554
|
+
id: string;
|
1555
|
+
channel: string;
|
1556
|
+
priority: string;
|
1557
|
+
title: string;
|
1558
|
+
description: string | null;
|
1559
|
+
status: string;
|
1560
|
+
createdAt: Date;
|
1561
|
+
updatedAt: Date;
|
1562
|
+
deletedAt: Date | null;
|
1563
|
+
categories: {
|
1564
|
+
id: string;
|
1565
|
+
value: string;
|
1566
|
+
createdAt: Date;
|
1567
|
+
updatedAt: Date;
|
1568
|
+
deletedAt: Date | null;
|
1569
|
+
level: 2 | 1 | 3;
|
1570
|
+
parentId: string | null;
|
1571
|
+
childCategoryList: {
|
1572
|
+
id: string;
|
1573
|
+
value: string;
|
1574
|
+
level: 2 | 1 | 3;
|
1575
|
+
parentId: string | null;
|
1576
|
+
childCategoryList: {
|
1577
|
+
id: string;
|
1578
|
+
value: string;
|
1579
|
+
level: 2 | 1 | 3;
|
1580
|
+
parentId: string | null;
|
1581
|
+
childCategoryList: any[];
|
1582
|
+
}[];
|
1583
|
+
}[];
|
1584
|
+
}[];
|
1585
|
+
contact: {
|
1586
|
+
id: string;
|
1587
|
+
channel: string | null;
|
1588
|
+
address: string | null;
|
1589
|
+
name: string;
|
1590
|
+
createdAt: Date;
|
1591
|
+
updatedAt: Date;
|
1592
|
+
deletedAt: Date | null;
|
1593
|
+
customFields: {
|
1594
|
+
id: string;
|
1595
|
+
createdAt: Date;
|
1596
|
+
updatedAt: Date;
|
1597
|
+
deletedAt: Date | null;
|
1598
|
+
attribute: {
|
1599
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1600
|
+
id: string;
|
1601
|
+
position: number;
|
1602
|
+
createdAt: Date;
|
1603
|
+
updatedAt: Date;
|
1604
|
+
deletedAt: Date | null;
|
1605
|
+
isDefault: boolean;
|
1606
|
+
systemName: string;
|
1607
|
+
displayName: string;
|
1608
|
+
isArchived: boolean;
|
1609
|
+
isRequired: boolean;
|
1610
|
+
isUnique: boolean;
|
1611
|
+
};
|
1612
|
+
textValue: string | null;
|
1613
|
+
booleanValue: boolean | null;
|
1614
|
+
numberValue: number | null;
|
1615
|
+
dateValue: Date | null;
|
1616
|
+
uploads: {
|
1617
|
+
id: string;
|
1618
|
+
createdAt: Date;
|
1619
|
+
updatedAt: Date;
|
1620
|
+
deletedAt: Date | null;
|
1621
|
+
customFieldId: string;
|
1622
|
+
upload: {
|
1623
|
+
id: string;
|
1624
|
+
createdAt: Date;
|
1625
|
+
updatedAt: Date;
|
1626
|
+
deletedAt: Date | null;
|
1627
|
+
fileName: string;
|
1628
|
+
fileKey: string;
|
1629
|
+
bucketName: string;
|
1630
|
+
fileSize: number;
|
1631
|
+
fileUrl: string | null;
|
1632
|
+
};
|
1633
|
+
}[];
|
1634
|
+
}[];
|
1635
|
+
notes: string | null;
|
1636
|
+
contactProfile: string | null;
|
1637
|
+
socialProfileUrl: string | null;
|
1638
|
+
tags: {
|
1639
|
+
id: string;
|
1640
|
+
name: string;
|
1641
|
+
createdAt: Date;
|
1642
|
+
updatedAt: Date;
|
1643
|
+
deletedAt: Date | null;
|
1644
|
+
}[];
|
1645
|
+
company: {
|
1646
|
+
id: string;
|
1647
|
+
createdAt: Date;
|
1648
|
+
updatedAt: Date;
|
1649
|
+
deletedAt: Date | null;
|
1650
|
+
address?: string | null | undefined;
|
1651
|
+
name?: string | undefined;
|
1652
|
+
phone?: string | null | undefined;
|
1653
|
+
industry?: string | null | undefined;
|
1654
|
+
} | null;
|
1655
|
+
contactEmails: {
|
1656
|
+
id: string;
|
1657
|
+
isPrimary: boolean;
|
1658
|
+
email: string;
|
1659
|
+
createdAt: Date;
|
1660
|
+
updatedAt: Date;
|
1661
|
+
deletedAt: Date | null;
|
1662
|
+
}[];
|
1663
|
+
contactPhones: {
|
1664
|
+
id: string;
|
1665
|
+
isPrimary: boolean;
|
1666
|
+
createdAt: Date;
|
1667
|
+
updatedAt: Date;
|
1668
|
+
deletedAt: Date | null;
|
1669
|
+
phone: string;
|
1670
|
+
}[];
|
1671
|
+
activityLogs?: {
|
1672
|
+
id: string;
|
1673
|
+
description: string;
|
1674
|
+
createdAt: Date;
|
1675
|
+
updatedAt: Date;
|
1676
|
+
deletedAt: Date | null;
|
1677
|
+
entityId: string;
|
1678
|
+
entityType: {
|
1679
|
+
id: string;
|
1680
|
+
description: string | null;
|
1681
|
+
createdAt: Date;
|
1682
|
+
updatedAt: Date;
|
1683
|
+
deletedAt: Date | null;
|
1684
|
+
entity: string;
|
1685
|
+
};
|
1686
|
+
}[] | undefined;
|
1687
|
+
};
|
1688
|
+
customFields: {
|
1689
|
+
id: string;
|
1690
|
+
createdAt: Date;
|
1691
|
+
updatedAt: Date;
|
1692
|
+
deletedAt: Date | null;
|
1693
|
+
attribute: {
|
1694
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1695
|
+
id: string;
|
1696
|
+
position: number;
|
1697
|
+
createdAt: Date;
|
1698
|
+
updatedAt: Date;
|
1699
|
+
deletedAt: Date | null;
|
1700
|
+
isDefault: boolean;
|
1701
|
+
systemName: string;
|
1702
|
+
displayName: string;
|
1703
|
+
isArchived: boolean;
|
1704
|
+
isRequired: boolean;
|
1705
|
+
isUnique: boolean;
|
1706
|
+
};
|
1707
|
+
textValue: string | null;
|
1708
|
+
booleanValue: boolean | null;
|
1709
|
+
numberValue: number | null;
|
1710
|
+
dateValue: Date | null;
|
1711
|
+
uploads: {
|
1712
|
+
id: string;
|
1713
|
+
createdAt: Date;
|
1714
|
+
updatedAt: Date;
|
1715
|
+
deletedAt: Date | null;
|
1716
|
+
fileName: string;
|
1717
|
+
fileKey: string;
|
1718
|
+
bucketName: string;
|
1719
|
+
fileSize: number;
|
1720
|
+
fileUrl: string | null;
|
1721
|
+
}[];
|
1722
|
+
}[];
|
1723
|
+
tags: {
|
1724
|
+
id: string;
|
1725
|
+
name: string;
|
1726
|
+
createdAt: Date;
|
1727
|
+
updatedAt: Date;
|
1728
|
+
deletedAt: Date | null;
|
1729
|
+
}[];
|
1730
|
+
contactId: string;
|
1731
|
+
assignee: {
|
1732
|
+
id: string;
|
1733
|
+
address: string | null;
|
1734
|
+
name: string;
|
1735
|
+
email: string;
|
1736
|
+
createdAt: Date;
|
1737
|
+
updatedAt: Date;
|
1738
|
+
deletedAt: Date | null;
|
1739
|
+
emailVerifiedAt: Date | null;
|
1740
|
+
password: string;
|
1741
|
+
phone: string | null;
|
1742
|
+
notificationCount: number | null;
|
1743
|
+
roles: {
|
1744
|
+
id: string;
|
1745
|
+
description: string | null;
|
1746
|
+
createdAt: Date;
|
1747
|
+
updatedAt: Date;
|
1748
|
+
deletedAt: Date | null;
|
1749
|
+
systemName: string;
|
1750
|
+
displayName: string;
|
1751
|
+
permissions: {
|
1752
|
+
id: string;
|
1753
|
+
description: string | null;
|
1754
|
+
createdAt: Date;
|
1755
|
+
updatedAt: Date;
|
1756
|
+
deletedAt: Date | null;
|
1757
|
+
systemName: string;
|
1758
|
+
displayName: string;
|
1759
|
+
}[];
|
1760
|
+
}[];
|
1761
|
+
extension: {
|
1762
|
+
id: string;
|
1763
|
+
createdAt: Date;
|
1764
|
+
updatedAt: Date;
|
1765
|
+
deletedAt: Date | null;
|
1766
|
+
userId: string | null;
|
1767
|
+
sipServerUrl: string;
|
1768
|
+
sipUserName: string;
|
1769
|
+
webphoneLoginUser: string;
|
1770
|
+
extensionId: number;
|
1771
|
+
extensionName: string;
|
1772
|
+
telephonySignature: string | null;
|
1773
|
+
};
|
1774
|
+
};
|
1775
|
+
assigneeId: string;
|
1776
|
+
creatorId: string;
|
1777
|
+
reasonToAssign: string | null;
|
1778
|
+
ticketNumber?: number | undefined;
|
1779
|
+
}, {
|
1780
|
+
type: string;
|
1781
|
+
id: string;
|
1782
|
+
channel: string;
|
1783
|
+
priority: string;
|
1784
|
+
title: string;
|
1785
|
+
description: string | null;
|
1786
|
+
status: string;
|
1787
|
+
createdAt: Date;
|
1788
|
+
updatedAt: Date;
|
1789
|
+
deletedAt: Date | null;
|
1790
|
+
categories: {
|
1791
|
+
id: string;
|
1792
|
+
value: string;
|
1793
|
+
createdAt: Date;
|
1794
|
+
updatedAt: Date;
|
1795
|
+
deletedAt: Date | null;
|
1796
|
+
level: 2 | 1 | 3;
|
1797
|
+
parentId: string | null;
|
1798
|
+
childCategoryList: {
|
1799
|
+
id: string;
|
1800
|
+
value: string;
|
1801
|
+
level: 2 | 1 | 3;
|
1802
|
+
parentId: string | null;
|
1803
|
+
childCategoryList: {
|
704
1804
|
id: string;
|
705
1805
|
value: string;
|
706
1806
|
level: 2 | 1 | 3;
|
@@ -709,6 +1809,109 @@ export declare const TicketSchema: z.ZodObject<{
|
|
709
1809
|
}[];
|
710
1810
|
}[];
|
711
1811
|
}[];
|
1812
|
+
contact: {
|
1813
|
+
id: string;
|
1814
|
+
channel: string | null;
|
1815
|
+
address: string | null;
|
1816
|
+
name: string;
|
1817
|
+
createdAt: Date;
|
1818
|
+
updatedAt: Date;
|
1819
|
+
deletedAt: Date | null;
|
1820
|
+
customFields: {
|
1821
|
+
id: string;
|
1822
|
+
createdAt: Date;
|
1823
|
+
updatedAt: Date;
|
1824
|
+
deletedAt: Date | null;
|
1825
|
+
attribute: {
|
1826
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1827
|
+
id: string;
|
1828
|
+
position: number;
|
1829
|
+
createdAt: Date;
|
1830
|
+
updatedAt: Date;
|
1831
|
+
deletedAt: Date | null;
|
1832
|
+
isDefault: boolean;
|
1833
|
+
systemName: string;
|
1834
|
+
displayName: string;
|
1835
|
+
isArchived: boolean;
|
1836
|
+
isRequired: boolean;
|
1837
|
+
isUnique: boolean;
|
1838
|
+
};
|
1839
|
+
textValue: string | null;
|
1840
|
+
booleanValue: boolean | null;
|
1841
|
+
numberValue: number | null;
|
1842
|
+
dateValue: Date | null;
|
1843
|
+
uploads: {
|
1844
|
+
id: string;
|
1845
|
+
createdAt: Date;
|
1846
|
+
updatedAt: Date;
|
1847
|
+
deletedAt: Date | null;
|
1848
|
+
customFieldId: string;
|
1849
|
+
upload: {
|
1850
|
+
id: string;
|
1851
|
+
createdAt: Date;
|
1852
|
+
updatedAt: Date;
|
1853
|
+
deletedAt: Date | null;
|
1854
|
+
fileName: string;
|
1855
|
+
fileKey: string;
|
1856
|
+
bucketName: string;
|
1857
|
+
fileSize: number;
|
1858
|
+
fileUrl: string | null;
|
1859
|
+
};
|
1860
|
+
}[];
|
1861
|
+
}[];
|
1862
|
+
notes: string | null;
|
1863
|
+
contactProfile: string | null;
|
1864
|
+
socialProfileUrl: string | null;
|
1865
|
+
tags: {
|
1866
|
+
id: string;
|
1867
|
+
name: string;
|
1868
|
+
createdAt: Date;
|
1869
|
+
updatedAt: Date;
|
1870
|
+
deletedAt: Date | null;
|
1871
|
+
}[];
|
1872
|
+
company: {
|
1873
|
+
id: string;
|
1874
|
+
createdAt: Date;
|
1875
|
+
updatedAt: Date;
|
1876
|
+
deletedAt: Date | null;
|
1877
|
+
address?: string | null | undefined;
|
1878
|
+
name?: string | undefined;
|
1879
|
+
phone?: string | null | undefined;
|
1880
|
+
industry?: string | null | undefined;
|
1881
|
+
} | null;
|
1882
|
+
contactEmails: {
|
1883
|
+
id: string;
|
1884
|
+
isPrimary: boolean;
|
1885
|
+
email: string;
|
1886
|
+
createdAt: Date;
|
1887
|
+
updatedAt: Date;
|
1888
|
+
deletedAt: Date | null;
|
1889
|
+
}[];
|
1890
|
+
contactPhones: {
|
1891
|
+
id: string;
|
1892
|
+
isPrimary: boolean;
|
1893
|
+
createdAt: Date;
|
1894
|
+
updatedAt: Date;
|
1895
|
+
deletedAt: Date | null;
|
1896
|
+
phone: string;
|
1897
|
+
}[];
|
1898
|
+
activityLogs?: {
|
1899
|
+
id: string;
|
1900
|
+
description: string;
|
1901
|
+
createdAt: Date;
|
1902
|
+
updatedAt: Date;
|
1903
|
+
deletedAt: Date | null;
|
1904
|
+
entityId: string;
|
1905
|
+
entityType: {
|
1906
|
+
id: string;
|
1907
|
+
description: string | null;
|
1908
|
+
createdAt: Date;
|
1909
|
+
updatedAt: Date;
|
1910
|
+
deletedAt: Date | null;
|
1911
|
+
entity: string;
|
1912
|
+
};
|
1913
|
+
}[] | undefined;
|
1914
|
+
};
|
712
1915
|
customFields: {
|
713
1916
|
id: string;
|
714
1917
|
createdAt: Date;
|
@@ -752,6 +1955,50 @@ export declare const TicketSchema: z.ZodObject<{
|
|
752
1955
|
deletedAt: Date | null;
|
753
1956
|
}[];
|
754
1957
|
contactId: string;
|
1958
|
+
assignee: {
|
1959
|
+
id: string;
|
1960
|
+
address: string | null;
|
1961
|
+
name: string;
|
1962
|
+
email: string;
|
1963
|
+
createdAt: Date;
|
1964
|
+
updatedAt: Date;
|
1965
|
+
deletedAt: Date | null;
|
1966
|
+
emailVerifiedAt: Date | null;
|
1967
|
+
password: string;
|
1968
|
+
phone: string | null;
|
1969
|
+
notificationCount: number | null;
|
1970
|
+
roles: {
|
1971
|
+
id: string;
|
1972
|
+
description: string | null;
|
1973
|
+
createdAt: Date;
|
1974
|
+
updatedAt: Date;
|
1975
|
+
deletedAt: Date | null;
|
1976
|
+
systemName: string;
|
1977
|
+
displayName: string;
|
1978
|
+
permissions: {
|
1979
|
+
id: string;
|
1980
|
+
description: string | null;
|
1981
|
+
createdAt: Date;
|
1982
|
+
updatedAt: Date;
|
1983
|
+
deletedAt: Date | null;
|
1984
|
+
systemName: string;
|
1985
|
+
displayName: string;
|
1986
|
+
}[];
|
1987
|
+
}[];
|
1988
|
+
extension: {
|
1989
|
+
id: string;
|
1990
|
+
createdAt: Date;
|
1991
|
+
updatedAt: Date;
|
1992
|
+
deletedAt: Date | null;
|
1993
|
+
userId: string | null;
|
1994
|
+
sipServerUrl: string;
|
1995
|
+
sipUserName: string;
|
1996
|
+
webphoneLoginUser: string;
|
1997
|
+
extensionId: number;
|
1998
|
+
extensionName: string;
|
1999
|
+
telephonySignature: string | null;
|
2000
|
+
};
|
2001
|
+
};
|
755
2002
|
assigneeId: string;
|
756
2003
|
creatorId: string;
|
757
2004
|
reasonToAssign: string | null;
|