@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.
@@ -372,6 +372,210 @@ export declare const CommentSchema: z.ZodObject<{
372
372
  contactId: z.ZodString;
373
373
  creatorId: z.ZodString;
374
374
  assigneeId: z.ZodString;
375
+ assignee: 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
+ email: z.ZodString;
382
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
383
+ password: z.ZodString;
384
+ address: z.ZodNullable<z.ZodString>;
385
+ phone: z.ZodNullable<z.ZodString>;
386
+ notificationCount: z.ZodNullable<z.ZodNumber>;
387
+ roles: z.ZodArray<z.ZodObject<{
388
+ id: z.ZodString;
389
+ createdAt: z.ZodDate;
390
+ updatedAt: z.ZodDate;
391
+ deletedAt: z.ZodNullable<z.ZodDate>;
392
+ systemName: z.ZodString;
393
+ displayName: z.ZodString;
394
+ description: z.ZodNullable<z.ZodString>;
395
+ permissions: z.ZodArray<z.ZodObject<{
396
+ id: z.ZodString;
397
+ createdAt: z.ZodDate;
398
+ updatedAt: z.ZodDate;
399
+ deletedAt: z.ZodNullable<z.ZodDate>;
400
+ systemName: z.ZodString;
401
+ displayName: z.ZodString;
402
+ description: z.ZodNullable<z.ZodString>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ id: string;
405
+ description: string | null;
406
+ createdAt: Date;
407
+ updatedAt: Date;
408
+ deletedAt: Date | null;
409
+ systemName: string;
410
+ displayName: string;
411
+ }, {
412
+ id: string;
413
+ description: string | null;
414
+ createdAt: Date;
415
+ updatedAt: Date;
416
+ deletedAt: Date | null;
417
+ systemName: string;
418
+ displayName: string;
419
+ }>, "many">;
420
+ }, "strip", z.ZodTypeAny, {
421
+ id: string;
422
+ description: string | null;
423
+ createdAt: Date;
424
+ updatedAt: Date;
425
+ deletedAt: Date | null;
426
+ systemName: string;
427
+ displayName: string;
428
+ permissions: {
429
+ id: string;
430
+ description: string | null;
431
+ createdAt: Date;
432
+ updatedAt: Date;
433
+ deletedAt: Date | null;
434
+ systemName: string;
435
+ displayName: string;
436
+ }[];
437
+ }, {
438
+ id: string;
439
+ description: string | null;
440
+ createdAt: Date;
441
+ updatedAt: Date;
442
+ deletedAt: Date | null;
443
+ systemName: string;
444
+ displayName: string;
445
+ permissions: {
446
+ id: string;
447
+ description: string | null;
448
+ createdAt: Date;
449
+ updatedAt: Date;
450
+ deletedAt: Date | null;
451
+ systemName: string;
452
+ displayName: string;
453
+ }[];
454
+ }>, "many">;
455
+ extension: z.ZodObject<{
456
+ id: z.ZodString;
457
+ createdAt: z.ZodDate;
458
+ updatedAt: z.ZodDate;
459
+ deletedAt: z.ZodNullable<z.ZodDate>;
460
+ userId: z.ZodNullable<z.ZodString>;
461
+ sipServerUrl: z.ZodString;
462
+ sipUserName: z.ZodString;
463
+ webphoneLoginUser: z.ZodString;
464
+ extensionId: z.ZodNumber;
465
+ extensionName: z.ZodString;
466
+ telephonySignature: z.ZodNullable<z.ZodString>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ id: string;
469
+ createdAt: Date;
470
+ updatedAt: Date;
471
+ deletedAt: Date | null;
472
+ userId: string | null;
473
+ sipServerUrl: string;
474
+ sipUserName: string;
475
+ webphoneLoginUser: string;
476
+ extensionId: number;
477
+ extensionName: string;
478
+ telephonySignature: string | null;
479
+ }, {
480
+ id: string;
481
+ createdAt: Date;
482
+ updatedAt: Date;
483
+ deletedAt: Date | null;
484
+ userId: string | null;
485
+ sipServerUrl: string;
486
+ sipUserName: string;
487
+ webphoneLoginUser: string;
488
+ extensionId: number;
489
+ extensionName: string;
490
+ telephonySignature: string | null;
491
+ }>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ id: string;
494
+ address: string | null;
495
+ name: string;
496
+ email: string;
497
+ createdAt: Date;
498
+ updatedAt: Date;
499
+ deletedAt: Date | null;
500
+ emailVerifiedAt: Date | null;
501
+ password: string;
502
+ phone: string | null;
503
+ notificationCount: number | null;
504
+ roles: {
505
+ id: string;
506
+ description: string | null;
507
+ createdAt: Date;
508
+ updatedAt: Date;
509
+ deletedAt: Date | null;
510
+ systemName: string;
511
+ displayName: string;
512
+ permissions: {
513
+ id: string;
514
+ description: string | null;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ deletedAt: Date | null;
518
+ systemName: string;
519
+ displayName: string;
520
+ }[];
521
+ }[];
522
+ extension: {
523
+ id: string;
524
+ createdAt: Date;
525
+ updatedAt: Date;
526
+ deletedAt: Date | null;
527
+ userId: string | null;
528
+ sipServerUrl: string;
529
+ sipUserName: string;
530
+ webphoneLoginUser: string;
531
+ extensionId: number;
532
+ extensionName: string;
533
+ telephonySignature: string | null;
534
+ };
535
+ }, {
536
+ id: string;
537
+ address: string | null;
538
+ name: string;
539
+ email: string;
540
+ createdAt: Date;
541
+ updatedAt: Date;
542
+ deletedAt: Date | null;
543
+ emailVerifiedAt: Date | null;
544
+ password: string;
545
+ phone: string | null;
546
+ notificationCount: number | null;
547
+ roles: {
548
+ id: string;
549
+ description: string | null;
550
+ createdAt: Date;
551
+ updatedAt: Date;
552
+ deletedAt: Date | null;
553
+ systemName: string;
554
+ displayName: string;
555
+ permissions: {
556
+ id: string;
557
+ description: string | null;
558
+ createdAt: Date;
559
+ updatedAt: Date;
560
+ deletedAt: Date | null;
561
+ systemName: string;
562
+ displayName: string;
563
+ }[];
564
+ }[];
565
+ extension: {
566
+ id: string;
567
+ createdAt: Date;
568
+ updatedAt: Date;
569
+ deletedAt: Date | null;
570
+ userId: string | null;
571
+ sipServerUrl: string;
572
+ sipUserName: string;
573
+ webphoneLoginUser: string;
574
+ extensionId: number;
575
+ extensionName: string;
576
+ telephonySignature: string | null;
577
+ };
578
+ }>;
375
579
  reasonToAssign: z.ZodNullable<z.ZodString>;
376
580
  ticketNumber: z.ZodOptional<z.ZodNumber>;
377
581
  customFields: z.ZodArray<z.ZodObject<{
@@ -683,52 +887,904 @@ export declare const CommentSchema: z.ZodObject<{
683
887
  }[];
684
888
  }[];
685
889
  }>, "many">;
686
- }, "strip", z.ZodTypeAny, {
687
- type: string;
688
- id: string;
689
- channel: string;
690
- priority: string;
691
- title: string;
692
- description: string | null;
693
- status: string;
694
- createdAt: Date;
695
- updatedAt: Date;
696
- deletedAt: Date | null;
697
- categories: {
698
- id: string;
699
- value: string;
700
- createdAt: Date;
701
- updatedAt: Date;
702
- deletedAt: Date | null;
703
- level: 2 | 1 | 3;
704
- parentId: string | null;
705
- childCategoryList: {
706
- id: string;
707
- value: string;
708
- level: 2 | 1 | 3;
709
- parentId: string | null;
710
- childCategoryList: {
711
- id: string;
712
- value: string;
713
- level: 2 | 1 | 3;
714
- parentId: string | null;
715
- childCategoryList: any[];
716
- }[];
717
- }[];
718
- }[];
719
- customFields: {
720
- id: string;
721
- createdAt: Date;
722
- updatedAt: Date;
723
- deletedAt: Date | null;
724
- attribute: {
725
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
890
+ contact: z.ZodObject<{
891
+ id: z.ZodString;
892
+ createdAt: z.ZodDate;
893
+ updatedAt: z.ZodDate;
894
+ deletedAt: z.ZodNullable<z.ZodDate>;
895
+ name: z.ZodString;
896
+ address: z.ZodNullable<z.ZodString>;
897
+ channel: z.ZodNullable<z.ZodString>;
898
+ notes: z.ZodNullable<z.ZodString>;
899
+ contactProfile: z.ZodNullable<z.ZodString>;
900
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
901
+ tags: z.ZodArray<z.ZodObject<{
902
+ id: z.ZodString;
903
+ createdAt: z.ZodDate;
904
+ updatedAt: z.ZodDate;
905
+ deletedAt: z.ZodNullable<z.ZodDate>;
906
+ name: z.ZodString;
907
+ }, "strip", z.ZodTypeAny, {
726
908
  id: string;
727
- position: number;
909
+ name: string;
728
910
  createdAt: Date;
729
911
  updatedAt: Date;
730
912
  deletedAt: Date | null;
731
- isDefault: boolean;
913
+ }, {
914
+ id: string;
915
+ name: string;
916
+ createdAt: Date;
917
+ updatedAt: Date;
918
+ deletedAt: Date | null;
919
+ }>, "many">;
920
+ company: z.ZodNullable<z.ZodObject<Omit<{
921
+ id: z.ZodString;
922
+ createdAt: z.ZodDate;
923
+ updatedAt: z.ZodDate;
924
+ deletedAt: z.ZodNullable<z.ZodDate>;
925
+ name: z.ZodOptional<z.ZodString>;
926
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
930
+ id: z.ZodString;
931
+ createdAt: z.ZodDate;
932
+ updatedAt: z.ZodDate;
933
+ deletedAt: z.ZodNullable<z.ZodDate>;
934
+ textValue: z.ZodNullable<z.ZodString>;
935
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
936
+ numberValue: z.ZodNullable<z.ZodNumber>;
937
+ dateValue: z.ZodNullable<z.ZodDate>;
938
+ attribute: z.ZodObject<Omit<{
939
+ id: z.ZodString;
940
+ createdAt: z.ZodDate;
941
+ updatedAt: z.ZodDate;
942
+ deletedAt: z.ZodNullable<z.ZodDate>;
943
+ systemName: z.ZodString;
944
+ displayName: z.ZodString;
945
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
946
+ position: z.ZodNumber;
947
+ isDefault: z.ZodBoolean;
948
+ isArchived: z.ZodBoolean;
949
+ isRequired: z.ZodBoolean;
950
+ isUnique: z.ZodBoolean;
951
+ options: z.ZodArray<z.ZodObject<{
952
+ position: z.ZodNumber;
953
+ value: z.ZodString;
954
+ label: z.ZodString;
955
+ isDefault: z.ZodBoolean;
956
+ id: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ id: string;
959
+ position: number;
960
+ value: string;
961
+ label: string;
962
+ isDefault: boolean;
963
+ }, {
964
+ id: string;
965
+ position: number;
966
+ value: string;
967
+ label: string;
968
+ isDefault: boolean;
969
+ }>, "many">;
970
+ group: z.ZodObject<{
971
+ id: z.ZodString;
972
+ createdAt: z.ZodDate;
973
+ updatedAt: z.ZodDate;
974
+ deletedAt: z.ZodNullable<z.ZodDate>;
975
+ systemName: z.ZodString;
976
+ displayName: z.ZodString;
977
+ }, "strip", z.ZodTypeAny, {
978
+ id: string;
979
+ createdAt: Date;
980
+ updatedAt: Date;
981
+ deletedAt: Date | null;
982
+ systemName: string;
983
+ displayName: string;
984
+ }, {
985
+ id: string;
986
+ createdAt: Date;
987
+ updatedAt: Date;
988
+ deletedAt: Date | null;
989
+ systemName: string;
990
+ displayName: string;
991
+ }>;
992
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
993
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
994
+ id: string;
995
+ position: number;
996
+ createdAt: Date;
997
+ updatedAt: Date;
998
+ deletedAt: Date | null;
999
+ isDefault: boolean;
1000
+ systemName: string;
1001
+ displayName: string;
1002
+ isArchived: boolean;
1003
+ isRequired: boolean;
1004
+ isUnique: boolean;
1005
+ }, {
1006
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1007
+ id: string;
1008
+ position: number;
1009
+ createdAt: Date;
1010
+ updatedAt: Date;
1011
+ deletedAt: Date | null;
1012
+ isDefault: boolean;
1013
+ systemName: string;
1014
+ displayName: string;
1015
+ isArchived: boolean;
1016
+ isRequired: boolean;
1017
+ isUnique: boolean;
1018
+ }>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ id: string;
1021
+ createdAt: Date;
1022
+ updatedAt: Date;
1023
+ deletedAt: Date | null;
1024
+ attribute: {
1025
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1026
+ id: string;
1027
+ position: number;
1028
+ createdAt: Date;
1029
+ updatedAt: Date;
1030
+ deletedAt: Date | null;
1031
+ isDefault: boolean;
1032
+ systemName: string;
1033
+ displayName: string;
1034
+ isArchived: boolean;
1035
+ isRequired: boolean;
1036
+ isUnique: boolean;
1037
+ };
1038
+ textValue: string | null;
1039
+ booleanValue: boolean | null;
1040
+ numberValue: number | null;
1041
+ dateValue: Date | null;
1042
+ }, {
1043
+ id: string;
1044
+ createdAt: Date;
1045
+ updatedAt: Date;
1046
+ deletedAt: Date | null;
1047
+ attribute: {
1048
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1049
+ id: string;
1050
+ position: number;
1051
+ createdAt: Date;
1052
+ updatedAt: Date;
1053
+ deletedAt: Date | null;
1054
+ isDefault: boolean;
1055
+ systemName: string;
1056
+ displayName: string;
1057
+ isArchived: boolean;
1058
+ isRequired: boolean;
1059
+ isUnique: boolean;
1060
+ };
1061
+ textValue: string | null;
1062
+ booleanValue: boolean | null;
1063
+ numberValue: number | null;
1064
+ dateValue: Date | null;
1065
+ }>, "many">>;
1066
+ }, "customFields">, "strip", z.ZodTypeAny, {
1067
+ id: string;
1068
+ createdAt: Date;
1069
+ updatedAt: Date;
1070
+ deletedAt: Date | null;
1071
+ address?: string | null | undefined;
1072
+ name?: string | undefined;
1073
+ phone?: string | null | undefined;
1074
+ industry?: string | null | undefined;
1075
+ }, {
1076
+ id: string;
1077
+ createdAt: Date;
1078
+ updatedAt: Date;
1079
+ deletedAt: Date | null;
1080
+ address?: string | null | undefined;
1081
+ name?: string | undefined;
1082
+ phone?: string | null | undefined;
1083
+ industry?: string | null | undefined;
1084
+ }>>;
1085
+ customFields: z.ZodArray<z.ZodObject<{
1086
+ id: z.ZodString;
1087
+ createdAt: z.ZodDate;
1088
+ updatedAt: z.ZodDate;
1089
+ deletedAt: z.ZodNullable<z.ZodDate>;
1090
+ textValue: z.ZodNullable<z.ZodString>;
1091
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1092
+ numberValue: z.ZodNullable<z.ZodNumber>;
1093
+ dateValue: z.ZodNullable<z.ZodDate>;
1094
+ attribute: z.ZodObject<Omit<{
1095
+ id: z.ZodString;
1096
+ createdAt: z.ZodDate;
1097
+ updatedAt: z.ZodDate;
1098
+ deletedAt: z.ZodNullable<z.ZodDate>;
1099
+ systemName: z.ZodString;
1100
+ displayName: z.ZodString;
1101
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1102
+ position: z.ZodNumber;
1103
+ isDefault: z.ZodBoolean;
1104
+ isArchived: z.ZodBoolean;
1105
+ isRequired: z.ZodBoolean;
1106
+ isUnique: z.ZodBoolean;
1107
+ options: z.ZodArray<z.ZodObject<{
1108
+ position: z.ZodNumber;
1109
+ value: z.ZodString;
1110
+ label: z.ZodString;
1111
+ isDefault: z.ZodBoolean;
1112
+ id: z.ZodString;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ id: string;
1115
+ position: number;
1116
+ value: string;
1117
+ label: string;
1118
+ isDefault: boolean;
1119
+ }, {
1120
+ id: string;
1121
+ position: number;
1122
+ value: string;
1123
+ label: string;
1124
+ isDefault: boolean;
1125
+ }>, "many">;
1126
+ group: z.ZodObject<{
1127
+ id: z.ZodString;
1128
+ createdAt: z.ZodDate;
1129
+ updatedAt: z.ZodDate;
1130
+ deletedAt: z.ZodNullable<z.ZodDate>;
1131
+ systemName: z.ZodString;
1132
+ displayName: z.ZodString;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ id: string;
1135
+ createdAt: Date;
1136
+ updatedAt: Date;
1137
+ deletedAt: Date | null;
1138
+ systemName: string;
1139
+ displayName: string;
1140
+ }, {
1141
+ id: string;
1142
+ createdAt: Date;
1143
+ updatedAt: Date;
1144
+ deletedAt: Date | null;
1145
+ systemName: string;
1146
+ displayName: string;
1147
+ }>;
1148
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1149
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1150
+ id: string;
1151
+ position: number;
1152
+ createdAt: Date;
1153
+ updatedAt: Date;
1154
+ deletedAt: Date | null;
1155
+ isDefault: boolean;
1156
+ systemName: string;
1157
+ displayName: string;
1158
+ isArchived: boolean;
1159
+ isRequired: boolean;
1160
+ isUnique: boolean;
1161
+ }, {
1162
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1163
+ id: string;
1164
+ position: number;
1165
+ createdAt: Date;
1166
+ updatedAt: Date;
1167
+ deletedAt: Date | null;
1168
+ isDefault: boolean;
1169
+ systemName: string;
1170
+ displayName: string;
1171
+ isArchived: boolean;
1172
+ isRequired: boolean;
1173
+ isUnique: boolean;
1174
+ }>;
1175
+ uploads: z.ZodArray<z.ZodObject<{
1176
+ id: z.ZodString;
1177
+ createdAt: z.ZodDate;
1178
+ updatedAt: z.ZodDate;
1179
+ deletedAt: z.ZodNullable<z.ZodDate>;
1180
+ customFieldId: z.ZodString;
1181
+ upload: z.ZodObject<{
1182
+ id: z.ZodString;
1183
+ createdAt: z.ZodDate;
1184
+ updatedAt: z.ZodDate;
1185
+ deletedAt: z.ZodNullable<z.ZodDate>;
1186
+ bucketName: z.ZodString;
1187
+ fileName: z.ZodString;
1188
+ fileSize: z.ZodNumber;
1189
+ fileKey: z.ZodString;
1190
+ fileUrl: z.ZodNullable<z.ZodString>;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ id: string;
1193
+ createdAt: Date;
1194
+ updatedAt: Date;
1195
+ deletedAt: Date | null;
1196
+ fileName: string;
1197
+ fileKey: string;
1198
+ bucketName: string;
1199
+ fileSize: number;
1200
+ fileUrl: string | null;
1201
+ }, {
1202
+ id: string;
1203
+ createdAt: Date;
1204
+ updatedAt: Date;
1205
+ deletedAt: Date | null;
1206
+ fileName: string;
1207
+ fileKey: string;
1208
+ bucketName: string;
1209
+ fileSize: number;
1210
+ fileUrl: string | null;
1211
+ }>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ id: string;
1214
+ createdAt: Date;
1215
+ updatedAt: Date;
1216
+ deletedAt: Date | null;
1217
+ customFieldId: string;
1218
+ upload: {
1219
+ id: string;
1220
+ createdAt: Date;
1221
+ updatedAt: Date;
1222
+ deletedAt: Date | null;
1223
+ fileName: string;
1224
+ fileKey: string;
1225
+ bucketName: string;
1226
+ fileSize: number;
1227
+ fileUrl: string | null;
1228
+ };
1229
+ }, {
1230
+ id: string;
1231
+ createdAt: Date;
1232
+ updatedAt: Date;
1233
+ deletedAt: Date | null;
1234
+ customFieldId: string;
1235
+ upload: {
1236
+ id: string;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ deletedAt: Date | null;
1240
+ fileName: string;
1241
+ fileKey: string;
1242
+ bucketName: string;
1243
+ fileSize: number;
1244
+ fileUrl: string | null;
1245
+ };
1246
+ }>, "many">;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ id: string;
1249
+ createdAt: Date;
1250
+ updatedAt: Date;
1251
+ deletedAt: Date | null;
1252
+ attribute: {
1253
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1254
+ id: string;
1255
+ position: number;
1256
+ createdAt: Date;
1257
+ updatedAt: Date;
1258
+ deletedAt: Date | null;
1259
+ isDefault: boolean;
1260
+ systemName: string;
1261
+ displayName: string;
1262
+ isArchived: boolean;
1263
+ isRequired: boolean;
1264
+ isUnique: boolean;
1265
+ };
1266
+ textValue: string | null;
1267
+ booleanValue: boolean | null;
1268
+ numberValue: number | null;
1269
+ dateValue: Date | null;
1270
+ uploads: {
1271
+ id: string;
1272
+ createdAt: Date;
1273
+ updatedAt: Date;
1274
+ deletedAt: Date | null;
1275
+ customFieldId: string;
1276
+ upload: {
1277
+ id: string;
1278
+ createdAt: Date;
1279
+ updatedAt: Date;
1280
+ deletedAt: Date | null;
1281
+ fileName: string;
1282
+ fileKey: string;
1283
+ bucketName: string;
1284
+ fileSize: number;
1285
+ fileUrl: string | null;
1286
+ };
1287
+ }[];
1288
+ }, {
1289
+ id: string;
1290
+ createdAt: Date;
1291
+ updatedAt: Date;
1292
+ deletedAt: Date | null;
1293
+ attribute: {
1294
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1295
+ id: string;
1296
+ position: number;
1297
+ createdAt: Date;
1298
+ updatedAt: Date;
1299
+ deletedAt: Date | null;
1300
+ isDefault: boolean;
1301
+ systemName: string;
1302
+ displayName: string;
1303
+ isArchived: boolean;
1304
+ isRequired: boolean;
1305
+ isUnique: boolean;
1306
+ };
1307
+ textValue: string | null;
1308
+ booleanValue: boolean | null;
1309
+ numberValue: number | null;
1310
+ dateValue: Date | null;
1311
+ uploads: {
1312
+ id: string;
1313
+ createdAt: Date;
1314
+ updatedAt: Date;
1315
+ deletedAt: Date | null;
1316
+ customFieldId: string;
1317
+ upload: {
1318
+ id: string;
1319
+ createdAt: Date;
1320
+ updatedAt: Date;
1321
+ deletedAt: Date | null;
1322
+ fileName: string;
1323
+ fileKey: string;
1324
+ bucketName: string;
1325
+ fileSize: number;
1326
+ fileUrl: string | null;
1327
+ };
1328
+ }[];
1329
+ }>, "many">;
1330
+ contactEmails: z.ZodArray<z.ZodObject<{
1331
+ id: z.ZodString;
1332
+ createdAt: z.ZodDate;
1333
+ updatedAt: z.ZodDate;
1334
+ deletedAt: z.ZodNullable<z.ZodDate>;
1335
+ email: z.ZodString;
1336
+ isPrimary: z.ZodBoolean;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ id: string;
1339
+ isPrimary: boolean;
1340
+ email: string;
1341
+ createdAt: Date;
1342
+ updatedAt: Date;
1343
+ deletedAt: Date | null;
1344
+ }, {
1345
+ id: string;
1346
+ isPrimary: boolean;
1347
+ email: string;
1348
+ createdAt: Date;
1349
+ updatedAt: Date;
1350
+ deletedAt: Date | null;
1351
+ }>, "many">;
1352
+ contactPhones: z.ZodArray<z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ createdAt: z.ZodDate;
1355
+ updatedAt: z.ZodDate;
1356
+ deletedAt: z.ZodNullable<z.ZodDate>;
1357
+ phone: z.ZodString;
1358
+ isPrimary: z.ZodBoolean;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ id: string;
1361
+ isPrimary: boolean;
1362
+ createdAt: Date;
1363
+ updatedAt: Date;
1364
+ deletedAt: Date | null;
1365
+ phone: string;
1366
+ }, {
1367
+ id: string;
1368
+ isPrimary: boolean;
1369
+ createdAt: Date;
1370
+ updatedAt: Date;
1371
+ deletedAt: Date | null;
1372
+ phone: string;
1373
+ }>, "many">;
1374
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1375
+ id: z.ZodString;
1376
+ createdAt: z.ZodDate;
1377
+ updatedAt: z.ZodDate;
1378
+ deletedAt: z.ZodNullable<z.ZodDate>;
1379
+ entityId: z.ZodString;
1380
+ description: z.ZodString;
1381
+ entityType: z.ZodObject<{
1382
+ id: z.ZodString;
1383
+ createdAt: z.ZodDate;
1384
+ updatedAt: z.ZodDate;
1385
+ deletedAt: z.ZodNullable<z.ZodDate>;
1386
+ entity: z.ZodString;
1387
+ description: z.ZodNullable<z.ZodString>;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ id: string;
1390
+ description: string | null;
1391
+ createdAt: Date;
1392
+ updatedAt: Date;
1393
+ deletedAt: Date | null;
1394
+ entity: string;
1395
+ }, {
1396
+ id: string;
1397
+ description: string | null;
1398
+ createdAt: Date;
1399
+ updatedAt: Date;
1400
+ deletedAt: Date | null;
1401
+ entity: string;
1402
+ }>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ id: string;
1405
+ description: string;
1406
+ createdAt: Date;
1407
+ updatedAt: Date;
1408
+ deletedAt: Date | null;
1409
+ entityId: string;
1410
+ entityType: {
1411
+ id: string;
1412
+ description: string | null;
1413
+ createdAt: Date;
1414
+ updatedAt: Date;
1415
+ deletedAt: Date | null;
1416
+ entity: string;
1417
+ };
1418
+ }, {
1419
+ id: string;
1420
+ description: string;
1421
+ createdAt: Date;
1422
+ updatedAt: Date;
1423
+ deletedAt: Date | null;
1424
+ entityId: string;
1425
+ entityType: {
1426
+ id: string;
1427
+ description: string | null;
1428
+ createdAt: Date;
1429
+ updatedAt: Date;
1430
+ deletedAt: Date | null;
1431
+ entity: string;
1432
+ };
1433
+ }>, "many">>;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ id: string;
1436
+ channel: string | null;
1437
+ address: string | null;
1438
+ name: string;
1439
+ createdAt: Date;
1440
+ updatedAt: Date;
1441
+ deletedAt: Date | null;
1442
+ customFields: {
1443
+ id: string;
1444
+ createdAt: Date;
1445
+ updatedAt: Date;
1446
+ deletedAt: Date | null;
1447
+ attribute: {
1448
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1449
+ id: string;
1450
+ position: number;
1451
+ createdAt: Date;
1452
+ updatedAt: Date;
1453
+ deletedAt: Date | null;
1454
+ isDefault: boolean;
1455
+ systemName: string;
1456
+ displayName: string;
1457
+ isArchived: boolean;
1458
+ isRequired: boolean;
1459
+ isUnique: boolean;
1460
+ };
1461
+ textValue: string | null;
1462
+ booleanValue: boolean | null;
1463
+ numberValue: number | null;
1464
+ dateValue: Date | null;
1465
+ uploads: {
1466
+ id: string;
1467
+ createdAt: Date;
1468
+ updatedAt: Date;
1469
+ deletedAt: Date | null;
1470
+ customFieldId: string;
1471
+ upload: {
1472
+ id: string;
1473
+ createdAt: Date;
1474
+ updatedAt: Date;
1475
+ deletedAt: Date | null;
1476
+ fileName: string;
1477
+ fileKey: string;
1478
+ bucketName: string;
1479
+ fileSize: number;
1480
+ fileUrl: string | null;
1481
+ };
1482
+ }[];
1483
+ }[];
1484
+ notes: string | null;
1485
+ contactProfile: string | null;
1486
+ socialProfileUrl: string | null;
1487
+ tags: {
1488
+ id: string;
1489
+ name: string;
1490
+ createdAt: Date;
1491
+ updatedAt: Date;
1492
+ deletedAt: Date | null;
1493
+ }[];
1494
+ company: {
1495
+ id: string;
1496
+ createdAt: Date;
1497
+ updatedAt: Date;
1498
+ deletedAt: Date | null;
1499
+ address?: string | null | undefined;
1500
+ name?: string | undefined;
1501
+ phone?: string | null | undefined;
1502
+ industry?: string | null | undefined;
1503
+ } | null;
1504
+ contactEmails: {
1505
+ id: string;
1506
+ isPrimary: boolean;
1507
+ email: string;
1508
+ createdAt: Date;
1509
+ updatedAt: Date;
1510
+ deletedAt: Date | null;
1511
+ }[];
1512
+ contactPhones: {
1513
+ id: string;
1514
+ isPrimary: boolean;
1515
+ createdAt: Date;
1516
+ updatedAt: Date;
1517
+ deletedAt: Date | null;
1518
+ phone: string;
1519
+ }[];
1520
+ activityLogs?: {
1521
+ id: string;
1522
+ description: string;
1523
+ createdAt: Date;
1524
+ updatedAt: Date;
1525
+ deletedAt: Date | null;
1526
+ entityId: string;
1527
+ entityType: {
1528
+ id: string;
1529
+ description: string | null;
1530
+ createdAt: Date;
1531
+ updatedAt: Date;
1532
+ deletedAt: Date | null;
1533
+ entity: string;
1534
+ };
1535
+ }[] | undefined;
1536
+ }, {
1537
+ id: string;
1538
+ channel: string | null;
1539
+ address: string | null;
1540
+ name: string;
1541
+ createdAt: Date;
1542
+ updatedAt: Date;
1543
+ deletedAt: Date | null;
1544
+ customFields: {
1545
+ id: string;
1546
+ createdAt: Date;
1547
+ updatedAt: Date;
1548
+ deletedAt: Date | null;
1549
+ attribute: {
1550
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1551
+ id: string;
1552
+ position: number;
1553
+ createdAt: Date;
1554
+ updatedAt: Date;
1555
+ deletedAt: Date | null;
1556
+ isDefault: boolean;
1557
+ systemName: string;
1558
+ displayName: string;
1559
+ isArchived: boolean;
1560
+ isRequired: boolean;
1561
+ isUnique: boolean;
1562
+ };
1563
+ textValue: string | null;
1564
+ booleanValue: boolean | null;
1565
+ numberValue: number | null;
1566
+ dateValue: Date | null;
1567
+ uploads: {
1568
+ id: string;
1569
+ createdAt: Date;
1570
+ updatedAt: Date;
1571
+ deletedAt: Date | null;
1572
+ customFieldId: string;
1573
+ upload: {
1574
+ id: string;
1575
+ createdAt: Date;
1576
+ updatedAt: Date;
1577
+ deletedAt: Date | null;
1578
+ fileName: string;
1579
+ fileKey: string;
1580
+ bucketName: string;
1581
+ fileSize: number;
1582
+ fileUrl: string | null;
1583
+ };
1584
+ }[];
1585
+ }[];
1586
+ notes: string | null;
1587
+ contactProfile: string | null;
1588
+ socialProfileUrl: string | null;
1589
+ tags: {
1590
+ id: string;
1591
+ name: string;
1592
+ createdAt: Date;
1593
+ updatedAt: Date;
1594
+ deletedAt: Date | null;
1595
+ }[];
1596
+ company: {
1597
+ id: string;
1598
+ createdAt: Date;
1599
+ updatedAt: Date;
1600
+ deletedAt: Date | null;
1601
+ address?: string | null | undefined;
1602
+ name?: string | undefined;
1603
+ phone?: string | null | undefined;
1604
+ industry?: string | null | undefined;
1605
+ } | null;
1606
+ contactEmails: {
1607
+ id: string;
1608
+ isPrimary: boolean;
1609
+ email: string;
1610
+ createdAt: Date;
1611
+ updatedAt: Date;
1612
+ deletedAt: Date | null;
1613
+ }[];
1614
+ contactPhones: {
1615
+ id: string;
1616
+ isPrimary: boolean;
1617
+ createdAt: Date;
1618
+ updatedAt: Date;
1619
+ deletedAt: Date | null;
1620
+ phone: string;
1621
+ }[];
1622
+ activityLogs?: {
1623
+ id: string;
1624
+ description: string;
1625
+ createdAt: Date;
1626
+ updatedAt: Date;
1627
+ deletedAt: Date | null;
1628
+ entityId: string;
1629
+ entityType: {
1630
+ id: string;
1631
+ description: string | null;
1632
+ createdAt: Date;
1633
+ updatedAt: Date;
1634
+ deletedAt: Date | null;
1635
+ entity: string;
1636
+ };
1637
+ }[] | undefined;
1638
+ }>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ type: string;
1641
+ id: string;
1642
+ channel: string;
1643
+ priority: string;
1644
+ title: string;
1645
+ description: string | null;
1646
+ status: string;
1647
+ createdAt: Date;
1648
+ updatedAt: Date;
1649
+ deletedAt: Date | null;
1650
+ categories: {
1651
+ id: string;
1652
+ value: string;
1653
+ createdAt: Date;
1654
+ updatedAt: Date;
1655
+ deletedAt: Date | null;
1656
+ level: 2 | 1 | 3;
1657
+ parentId: string | null;
1658
+ childCategoryList: {
1659
+ id: string;
1660
+ value: string;
1661
+ level: 2 | 1 | 3;
1662
+ parentId: string | null;
1663
+ childCategoryList: {
1664
+ id: string;
1665
+ value: string;
1666
+ level: 2 | 1 | 3;
1667
+ parentId: string | null;
1668
+ childCategoryList: any[];
1669
+ }[];
1670
+ }[];
1671
+ }[];
1672
+ contact: {
1673
+ id: string;
1674
+ channel: string | null;
1675
+ address: string | null;
1676
+ name: string;
1677
+ createdAt: Date;
1678
+ updatedAt: Date;
1679
+ deletedAt: Date | null;
1680
+ customFields: {
1681
+ id: string;
1682
+ createdAt: Date;
1683
+ updatedAt: Date;
1684
+ deletedAt: Date | null;
1685
+ attribute: {
1686
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1687
+ id: string;
1688
+ position: number;
1689
+ createdAt: Date;
1690
+ updatedAt: Date;
1691
+ deletedAt: Date | null;
1692
+ isDefault: boolean;
1693
+ systemName: string;
1694
+ displayName: string;
1695
+ isArchived: boolean;
1696
+ isRequired: boolean;
1697
+ isUnique: boolean;
1698
+ };
1699
+ textValue: string | null;
1700
+ booleanValue: boolean | null;
1701
+ numberValue: number | null;
1702
+ dateValue: Date | null;
1703
+ uploads: {
1704
+ id: string;
1705
+ createdAt: Date;
1706
+ updatedAt: Date;
1707
+ deletedAt: Date | null;
1708
+ customFieldId: string;
1709
+ upload: {
1710
+ id: string;
1711
+ createdAt: Date;
1712
+ updatedAt: Date;
1713
+ deletedAt: Date | null;
1714
+ fileName: string;
1715
+ fileKey: string;
1716
+ bucketName: string;
1717
+ fileSize: number;
1718
+ fileUrl: string | null;
1719
+ };
1720
+ }[];
1721
+ }[];
1722
+ notes: string | null;
1723
+ contactProfile: string | null;
1724
+ socialProfileUrl: string | null;
1725
+ tags: {
1726
+ id: string;
1727
+ name: string;
1728
+ createdAt: Date;
1729
+ updatedAt: Date;
1730
+ deletedAt: Date | null;
1731
+ }[];
1732
+ company: {
1733
+ id: string;
1734
+ createdAt: Date;
1735
+ updatedAt: Date;
1736
+ deletedAt: Date | null;
1737
+ address?: string | null | undefined;
1738
+ name?: string | undefined;
1739
+ phone?: string | null | undefined;
1740
+ industry?: string | null | undefined;
1741
+ } | null;
1742
+ contactEmails: {
1743
+ id: string;
1744
+ isPrimary: boolean;
1745
+ email: string;
1746
+ createdAt: Date;
1747
+ updatedAt: Date;
1748
+ deletedAt: Date | null;
1749
+ }[];
1750
+ contactPhones: {
1751
+ id: string;
1752
+ isPrimary: boolean;
1753
+ createdAt: Date;
1754
+ updatedAt: Date;
1755
+ deletedAt: Date | null;
1756
+ phone: string;
1757
+ }[];
1758
+ activityLogs?: {
1759
+ id: string;
1760
+ description: string;
1761
+ createdAt: Date;
1762
+ updatedAt: Date;
1763
+ deletedAt: Date | null;
1764
+ entityId: string;
1765
+ entityType: {
1766
+ id: string;
1767
+ description: string | null;
1768
+ createdAt: Date;
1769
+ updatedAt: Date;
1770
+ deletedAt: Date | null;
1771
+ entity: string;
1772
+ };
1773
+ }[] | undefined;
1774
+ };
1775
+ customFields: {
1776
+ id: string;
1777
+ createdAt: Date;
1778
+ updatedAt: Date;
1779
+ deletedAt: Date | null;
1780
+ attribute: {
1781
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1782
+ id: string;
1783
+ position: number;
1784
+ createdAt: Date;
1785
+ updatedAt: Date;
1786
+ deletedAt: Date | null;
1787
+ isDefault: boolean;
732
1788
  systemName: string;
733
1789
  displayName: string;
734
1790
  isArchived: boolean;
@@ -759,6 +1815,50 @@ export declare const CommentSchema: z.ZodObject<{
759
1815
  deletedAt: Date | null;
760
1816
  }[];
761
1817
  contactId: string;
1818
+ assignee: {
1819
+ id: string;
1820
+ address: string | null;
1821
+ name: string;
1822
+ email: string;
1823
+ createdAt: Date;
1824
+ updatedAt: Date;
1825
+ deletedAt: Date | null;
1826
+ emailVerifiedAt: Date | null;
1827
+ password: string;
1828
+ phone: string | null;
1829
+ notificationCount: number | null;
1830
+ roles: {
1831
+ id: string;
1832
+ description: string | null;
1833
+ createdAt: Date;
1834
+ updatedAt: Date;
1835
+ deletedAt: Date | null;
1836
+ systemName: string;
1837
+ displayName: string;
1838
+ permissions: {
1839
+ id: string;
1840
+ description: string | null;
1841
+ createdAt: Date;
1842
+ updatedAt: Date;
1843
+ deletedAt: Date | null;
1844
+ systemName: string;
1845
+ displayName: string;
1846
+ }[];
1847
+ }[];
1848
+ extension: {
1849
+ id: string;
1850
+ createdAt: Date;
1851
+ updatedAt: Date;
1852
+ deletedAt: Date | null;
1853
+ userId: string | null;
1854
+ sipServerUrl: string;
1855
+ sipUserName: string;
1856
+ webphoneLoginUser: string;
1857
+ extensionId: number;
1858
+ extensionName: string;
1859
+ telephonySignature: string | null;
1860
+ };
1861
+ };
762
1862
  assigneeId: string;
763
1863
  creatorId: string;
764
1864
  reasonToAssign: string | null;
@@ -784,18 +1884,121 @@ export declare const CommentSchema: z.ZodObject<{
784
1884
  parentId: string | null;
785
1885
  childCategoryList: {
786
1886
  id: string;
787
- value: string;
788
- level: 2 | 1 | 3;
789
- parentId: string | null;
790
- childCategoryList: {
1887
+ value: string;
1888
+ level: 2 | 1 | 3;
1889
+ parentId: string | null;
1890
+ childCategoryList: {
1891
+ id: string;
1892
+ value: string;
1893
+ level: 2 | 1 | 3;
1894
+ parentId: string | null;
1895
+ childCategoryList: any[];
1896
+ }[];
1897
+ }[];
1898
+ }[];
1899
+ contact: {
1900
+ id: string;
1901
+ channel: string | null;
1902
+ address: string | null;
1903
+ name: string;
1904
+ createdAt: Date;
1905
+ updatedAt: Date;
1906
+ deletedAt: Date | null;
1907
+ customFields: {
1908
+ id: string;
1909
+ createdAt: Date;
1910
+ updatedAt: Date;
1911
+ deletedAt: Date | null;
1912
+ attribute: {
1913
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1914
+ id: string;
1915
+ position: number;
1916
+ createdAt: Date;
1917
+ updatedAt: Date;
1918
+ deletedAt: Date | null;
1919
+ isDefault: boolean;
1920
+ systemName: string;
1921
+ displayName: string;
1922
+ isArchived: boolean;
1923
+ isRequired: boolean;
1924
+ isUnique: boolean;
1925
+ };
1926
+ textValue: string | null;
1927
+ booleanValue: boolean | null;
1928
+ numberValue: number | null;
1929
+ dateValue: Date | null;
1930
+ uploads: {
1931
+ id: string;
1932
+ createdAt: Date;
1933
+ updatedAt: Date;
1934
+ deletedAt: Date | null;
1935
+ customFieldId: string;
1936
+ upload: {
1937
+ id: string;
1938
+ createdAt: Date;
1939
+ updatedAt: Date;
1940
+ deletedAt: Date | null;
1941
+ fileName: string;
1942
+ fileKey: string;
1943
+ bucketName: string;
1944
+ fileSize: number;
1945
+ fileUrl: string | null;
1946
+ };
1947
+ }[];
1948
+ }[];
1949
+ notes: string | null;
1950
+ contactProfile: string | null;
1951
+ socialProfileUrl: string | null;
1952
+ tags: {
1953
+ id: string;
1954
+ name: string;
1955
+ createdAt: Date;
1956
+ updatedAt: Date;
1957
+ deletedAt: Date | null;
1958
+ }[];
1959
+ company: {
1960
+ id: string;
1961
+ createdAt: Date;
1962
+ updatedAt: Date;
1963
+ deletedAt: Date | null;
1964
+ address?: string | null | undefined;
1965
+ name?: string | undefined;
1966
+ phone?: string | null | undefined;
1967
+ industry?: string | null | undefined;
1968
+ } | null;
1969
+ contactEmails: {
1970
+ id: string;
1971
+ isPrimary: boolean;
1972
+ email: string;
1973
+ createdAt: Date;
1974
+ updatedAt: Date;
1975
+ deletedAt: Date | null;
1976
+ }[];
1977
+ contactPhones: {
1978
+ id: string;
1979
+ isPrimary: boolean;
1980
+ createdAt: Date;
1981
+ updatedAt: Date;
1982
+ deletedAt: Date | null;
1983
+ phone: string;
1984
+ }[];
1985
+ activityLogs?: {
1986
+ id: string;
1987
+ description: string;
1988
+ createdAt: Date;
1989
+ updatedAt: Date;
1990
+ deletedAt: Date | null;
1991
+ entityId: string;
1992
+ entityType: {
791
1993
  id: string;
792
- value: string;
793
- level: 2 | 1 | 3;
794
- parentId: string | null;
795
- childCategoryList: any[];
796
- }[];
797
- }[];
798
- }[];
1994
+ description: string | null;
1995
+ createdAt: Date;
1996
+ updatedAt: Date;
1997
+ deletedAt: Date | null;
1998
+ entity: string;
1999
+ };
2000
+ }[] | undefined;
2001
+ };
799
2002
  customFields: {
800
2003
  id: string;
801
2004
  createdAt: Date;
@@ -839,6 +2042,50 @@ export declare const CommentSchema: z.ZodObject<{
839
2042
  deletedAt: Date | null;
840
2043
  }[];
841
2044
  contactId: string;
2045
+ assignee: {
2046
+ id: string;
2047
+ address: string | null;
2048
+ name: string;
2049
+ email: string;
2050
+ createdAt: Date;
2051
+ updatedAt: Date;
2052
+ deletedAt: Date | null;
2053
+ emailVerifiedAt: Date | null;
2054
+ password: string;
2055
+ phone: string | null;
2056
+ notificationCount: number | null;
2057
+ roles: {
2058
+ id: string;
2059
+ description: string | null;
2060
+ createdAt: Date;
2061
+ updatedAt: Date;
2062
+ deletedAt: Date | null;
2063
+ systemName: string;
2064
+ displayName: string;
2065
+ permissions: {
2066
+ id: string;
2067
+ description: string | null;
2068
+ createdAt: Date;
2069
+ updatedAt: Date;
2070
+ deletedAt: Date | null;
2071
+ systemName: string;
2072
+ displayName: string;
2073
+ }[];
2074
+ }[];
2075
+ extension: {
2076
+ id: string;
2077
+ createdAt: Date;
2078
+ updatedAt: Date;
2079
+ deletedAt: Date | null;
2080
+ userId: string | null;
2081
+ sipServerUrl: string;
2082
+ sipUserName: string;
2083
+ webphoneLoginUser: string;
2084
+ extensionId: number;
2085
+ extensionName: string;
2086
+ telephonySignature: string | null;
2087
+ };
2088
+ };
842
2089
  assigneeId: string;
843
2090
  creatorId: string;
844
2091
  reasonToAssign: string | null;
@@ -1190,6 +2437,109 @@ export declare const CommentSchema: z.ZodObject<{
1190
2437
  }[];
1191
2438
  }[];
1192
2439
  }[];
2440
+ contact: {
2441
+ id: string;
2442
+ channel: string | null;
2443
+ address: string | null;
2444
+ name: string;
2445
+ createdAt: Date;
2446
+ updatedAt: Date;
2447
+ deletedAt: Date | null;
2448
+ customFields: {
2449
+ id: string;
2450
+ createdAt: Date;
2451
+ updatedAt: Date;
2452
+ deletedAt: Date | null;
2453
+ attribute: {
2454
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2455
+ id: string;
2456
+ position: number;
2457
+ createdAt: Date;
2458
+ updatedAt: Date;
2459
+ deletedAt: Date | null;
2460
+ isDefault: boolean;
2461
+ systemName: string;
2462
+ displayName: string;
2463
+ isArchived: boolean;
2464
+ isRequired: boolean;
2465
+ isUnique: boolean;
2466
+ };
2467
+ textValue: string | null;
2468
+ booleanValue: boolean | null;
2469
+ numberValue: number | null;
2470
+ dateValue: Date | null;
2471
+ uploads: {
2472
+ id: string;
2473
+ createdAt: Date;
2474
+ updatedAt: Date;
2475
+ deletedAt: Date | null;
2476
+ customFieldId: string;
2477
+ upload: {
2478
+ id: string;
2479
+ createdAt: Date;
2480
+ updatedAt: Date;
2481
+ deletedAt: Date | null;
2482
+ fileName: string;
2483
+ fileKey: string;
2484
+ bucketName: string;
2485
+ fileSize: number;
2486
+ fileUrl: string | null;
2487
+ };
2488
+ }[];
2489
+ }[];
2490
+ notes: string | null;
2491
+ contactProfile: string | null;
2492
+ socialProfileUrl: string | null;
2493
+ tags: {
2494
+ id: string;
2495
+ name: string;
2496
+ createdAt: Date;
2497
+ updatedAt: Date;
2498
+ deletedAt: Date | null;
2499
+ }[];
2500
+ company: {
2501
+ id: string;
2502
+ createdAt: Date;
2503
+ updatedAt: Date;
2504
+ deletedAt: Date | null;
2505
+ address?: string | null | undefined;
2506
+ name?: string | undefined;
2507
+ phone?: string | null | undefined;
2508
+ industry?: string | null | undefined;
2509
+ } | null;
2510
+ contactEmails: {
2511
+ id: string;
2512
+ isPrimary: boolean;
2513
+ email: string;
2514
+ createdAt: Date;
2515
+ updatedAt: Date;
2516
+ deletedAt: Date | null;
2517
+ }[];
2518
+ contactPhones: {
2519
+ id: string;
2520
+ isPrimary: boolean;
2521
+ createdAt: Date;
2522
+ updatedAt: Date;
2523
+ deletedAt: Date | null;
2524
+ phone: string;
2525
+ }[];
2526
+ activityLogs?: {
2527
+ id: string;
2528
+ description: string;
2529
+ createdAt: Date;
2530
+ updatedAt: Date;
2531
+ deletedAt: Date | null;
2532
+ entityId: string;
2533
+ entityType: {
2534
+ id: string;
2535
+ description: string | null;
2536
+ createdAt: Date;
2537
+ updatedAt: Date;
2538
+ deletedAt: Date | null;
2539
+ entity: string;
2540
+ };
2541
+ }[] | undefined;
2542
+ };
1193
2543
  customFields: {
1194
2544
  id: string;
1195
2545
  createdAt: Date;
@@ -1233,6 +2583,50 @@ export declare const CommentSchema: z.ZodObject<{
1233
2583
  deletedAt: Date | null;
1234
2584
  }[];
1235
2585
  contactId: string;
2586
+ assignee: {
2587
+ id: string;
2588
+ address: string | null;
2589
+ name: string;
2590
+ email: string;
2591
+ createdAt: Date;
2592
+ updatedAt: Date;
2593
+ deletedAt: Date | null;
2594
+ emailVerifiedAt: Date | null;
2595
+ password: string;
2596
+ phone: string | null;
2597
+ notificationCount: number | null;
2598
+ roles: {
2599
+ id: string;
2600
+ description: string | null;
2601
+ createdAt: Date;
2602
+ updatedAt: Date;
2603
+ deletedAt: Date | null;
2604
+ systemName: string;
2605
+ displayName: string;
2606
+ permissions: {
2607
+ id: string;
2608
+ description: string | null;
2609
+ createdAt: Date;
2610
+ updatedAt: Date;
2611
+ deletedAt: Date | null;
2612
+ systemName: string;
2613
+ displayName: string;
2614
+ }[];
2615
+ }[];
2616
+ extension: {
2617
+ id: string;
2618
+ createdAt: Date;
2619
+ updatedAt: Date;
2620
+ deletedAt: Date | null;
2621
+ userId: string | null;
2622
+ sipServerUrl: string;
2623
+ sipUserName: string;
2624
+ webphoneLoginUser: string;
2625
+ extensionId: number;
2626
+ extensionName: string;
2627
+ telephonySignature: string | null;
2628
+ };
2629
+ };
1236
2630
  assigneeId: string;
1237
2631
  creatorId: string;
1238
2632
  reasonToAssign: string | null;
@@ -1382,6 +2776,109 @@ export declare const CommentSchema: z.ZodObject<{
1382
2776
  }[];
1383
2777
  }[];
1384
2778
  }[];
2779
+ contact: {
2780
+ id: string;
2781
+ channel: string | null;
2782
+ address: string | null;
2783
+ name: string;
2784
+ createdAt: Date;
2785
+ updatedAt: Date;
2786
+ deletedAt: Date | null;
2787
+ customFields: {
2788
+ id: string;
2789
+ createdAt: Date;
2790
+ updatedAt: Date;
2791
+ deletedAt: Date | null;
2792
+ attribute: {
2793
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2794
+ id: string;
2795
+ position: number;
2796
+ createdAt: Date;
2797
+ updatedAt: Date;
2798
+ deletedAt: Date | null;
2799
+ isDefault: boolean;
2800
+ systemName: string;
2801
+ displayName: string;
2802
+ isArchived: boolean;
2803
+ isRequired: boolean;
2804
+ isUnique: boolean;
2805
+ };
2806
+ textValue: string | null;
2807
+ booleanValue: boolean | null;
2808
+ numberValue: number | null;
2809
+ dateValue: Date | null;
2810
+ uploads: {
2811
+ id: string;
2812
+ createdAt: Date;
2813
+ updatedAt: Date;
2814
+ deletedAt: Date | null;
2815
+ customFieldId: string;
2816
+ upload: {
2817
+ id: string;
2818
+ createdAt: Date;
2819
+ updatedAt: Date;
2820
+ deletedAt: Date | null;
2821
+ fileName: string;
2822
+ fileKey: string;
2823
+ bucketName: string;
2824
+ fileSize: number;
2825
+ fileUrl: string | null;
2826
+ };
2827
+ }[];
2828
+ }[];
2829
+ notes: string | null;
2830
+ contactProfile: string | null;
2831
+ socialProfileUrl: string | null;
2832
+ tags: {
2833
+ id: string;
2834
+ name: string;
2835
+ createdAt: Date;
2836
+ updatedAt: Date;
2837
+ deletedAt: Date | null;
2838
+ }[];
2839
+ company: {
2840
+ id: string;
2841
+ createdAt: Date;
2842
+ updatedAt: Date;
2843
+ deletedAt: Date | null;
2844
+ address?: string | null | undefined;
2845
+ name?: string | undefined;
2846
+ phone?: string | null | undefined;
2847
+ industry?: string | null | undefined;
2848
+ } | null;
2849
+ contactEmails: {
2850
+ id: string;
2851
+ isPrimary: boolean;
2852
+ email: string;
2853
+ createdAt: Date;
2854
+ updatedAt: Date;
2855
+ deletedAt: Date | null;
2856
+ }[];
2857
+ contactPhones: {
2858
+ id: string;
2859
+ isPrimary: boolean;
2860
+ createdAt: Date;
2861
+ updatedAt: Date;
2862
+ deletedAt: Date | null;
2863
+ phone: string;
2864
+ }[];
2865
+ activityLogs?: {
2866
+ id: string;
2867
+ description: string;
2868
+ createdAt: Date;
2869
+ updatedAt: Date;
2870
+ deletedAt: Date | null;
2871
+ entityId: string;
2872
+ entityType: {
2873
+ id: string;
2874
+ description: string | null;
2875
+ createdAt: Date;
2876
+ updatedAt: Date;
2877
+ deletedAt: Date | null;
2878
+ entity: string;
2879
+ };
2880
+ }[] | undefined;
2881
+ };
1385
2882
  customFields: {
1386
2883
  id: string;
1387
2884
  createdAt: Date;
@@ -1425,6 +2922,50 @@ export declare const CommentSchema: z.ZodObject<{
1425
2922
  deletedAt: Date | null;
1426
2923
  }[];
1427
2924
  contactId: string;
2925
+ assignee: {
2926
+ id: string;
2927
+ address: string | null;
2928
+ name: string;
2929
+ email: string;
2930
+ createdAt: Date;
2931
+ updatedAt: Date;
2932
+ deletedAt: Date | null;
2933
+ emailVerifiedAt: Date | null;
2934
+ password: string;
2935
+ phone: string | null;
2936
+ notificationCount: number | null;
2937
+ roles: {
2938
+ id: string;
2939
+ description: string | null;
2940
+ createdAt: Date;
2941
+ updatedAt: Date;
2942
+ deletedAt: Date | null;
2943
+ systemName: string;
2944
+ displayName: string;
2945
+ permissions: {
2946
+ id: string;
2947
+ description: string | null;
2948
+ createdAt: Date;
2949
+ updatedAt: Date;
2950
+ deletedAt: Date | null;
2951
+ systemName: string;
2952
+ displayName: string;
2953
+ }[];
2954
+ }[];
2955
+ extension: {
2956
+ id: string;
2957
+ createdAt: Date;
2958
+ updatedAt: Date;
2959
+ deletedAt: Date | null;
2960
+ userId: string | null;
2961
+ sipServerUrl: string;
2962
+ sipUserName: string;
2963
+ webphoneLoginUser: string;
2964
+ extensionId: number;
2965
+ extensionName: string;
2966
+ telephonySignature: string | null;
2967
+ };
2968
+ };
1428
2969
  assigneeId: string;
1429
2970
  creatorId: string;
1430
2971
  reasonToAssign: string | null;