@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
@@ -1,9 +1,10 @@
1
1
  import z from 'zod';
2
2
  import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetExportTelephonyCdrSchema, GetRecentTelephonyCdrSchema, GetYeastarCallReportSchema } from './validation';
3
3
  import { ExtCallActivityListSchema, ExtCallStatisticsListSchema, ExtStatisticSchema, QueueAgentInOutCallsListSchema, QueueAgentMissCallsListSchema, QueueAvgWaitTalkTimeListSchema, QueuePerformanceListSchema, QueueSatisfactionSchema, SatisfactionListSchema, TrunkActivityListSchema, agentListSchema } from './call-report.schema';
4
- import { TelephonyCdrSchema, TelephonyExtensionListSchema, TelephonyExtensionSchema, TelephonyQueueListSchmea, TelephonyQueueSchema, TelephonyTrunkListSchema, TelephonyTrunkSchema } from './schema';
4
+ import { CallUserSchema, TelephonyCdrSchema, TelephonyExtensionListSchema, TelephonyExtensionSchema, TelephonyQueueListSchmea, TelephonyQueueSchema, TelephonyTrunkListSchema, TelephonyTrunkSchema } from './schema';
5
5
  export type CreateTelephonyCdrRequest = z.infer<typeof CreateTelephonyCdrSchema>;
6
6
  export type TelephonyCdr = z.infer<typeof TelephonyCdrSchema>;
7
+ export type CallUser = z.infer<typeof CallUserSchema>;
7
8
  export type GetTelephonyCdrQuery = z.infer<typeof GetAllTelephonyCdrSchema>;
8
9
  export type GetRecentTelephonyCdrQuery = z.infer<typeof GetRecentTelephonyCdrSchema>;
9
10
  export type GetExportTelephonyCdrQuery = z.infer<typeof GetExportTelephonyCdrSchema>;
@@ -798,6 +799,7 @@ export declare const telephonyCdrContract: {
798
799
  didNumber: z.ZodNullable<z.ZodString>;
799
800
  agentRingTime: z.ZodNullable<z.ZodNumber>;
800
801
  uploadId: z.ZodNullable<z.ZodString>;
802
+ serialNumber: z.ZodNullable<z.ZodString>;
801
803
  upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
802
804
  id: z.ZodString;
803
805
  createdAt: z.ZodDate;
@@ -832,7 +834,525 @@ export declare const telephonyCdrContract: {
832
834
  fileUrl: string | null;
833
835
  status?: string | undefined;
834
836
  }>>>;
835
- serialNumber: z.ZodNullable<z.ZodString>;
837
+ callParticipants: z.ZodNullable<z.ZodObject<{
838
+ callTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
839
+ id: z.ZodString;
840
+ user: z.ZodNullable<z.ZodObject<Omit<{
841
+ id: z.ZodString;
842
+ createdAt: z.ZodDate;
843
+ updatedAt: z.ZodDate;
844
+ deletedAt: z.ZodNullable<z.ZodDate>;
845
+ name: z.ZodString;
846
+ email: z.ZodString;
847
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
848
+ password: z.ZodString;
849
+ address: z.ZodNullable<z.ZodString>;
850
+ phone: z.ZodNullable<z.ZodString>;
851
+ notificationCount: z.ZodNullable<z.ZodNumber>;
852
+ roles: z.ZodArray<z.ZodObject<{
853
+ id: z.ZodString;
854
+ createdAt: z.ZodDate;
855
+ updatedAt: z.ZodDate;
856
+ deletedAt: z.ZodNullable<z.ZodDate>;
857
+ systemName: z.ZodString;
858
+ displayName: z.ZodString;
859
+ description: z.ZodNullable<z.ZodString>;
860
+ permissions: z.ZodArray<z.ZodObject<{
861
+ id: z.ZodString;
862
+ createdAt: z.ZodDate;
863
+ updatedAt: z.ZodDate;
864
+ deletedAt: z.ZodNullable<z.ZodDate>;
865
+ systemName: z.ZodString;
866
+ displayName: z.ZodString;
867
+ description: z.ZodNullable<z.ZodString>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ id: string;
870
+ description: string | null;
871
+ createdAt: Date;
872
+ updatedAt: Date;
873
+ deletedAt: Date | null;
874
+ systemName: string;
875
+ displayName: string;
876
+ }, {
877
+ id: string;
878
+ description: string | null;
879
+ createdAt: Date;
880
+ updatedAt: Date;
881
+ deletedAt: Date | null;
882
+ systemName: string;
883
+ displayName: string;
884
+ }>, "many">;
885
+ }, "strip", z.ZodTypeAny, {
886
+ id: string;
887
+ description: string | null;
888
+ createdAt: Date;
889
+ updatedAt: Date;
890
+ deletedAt: Date | null;
891
+ systemName: string;
892
+ displayName: string;
893
+ permissions: {
894
+ id: string;
895
+ description: string | null;
896
+ createdAt: Date;
897
+ updatedAt: Date;
898
+ deletedAt: Date | null;
899
+ systemName: string;
900
+ displayName: string;
901
+ }[];
902
+ }, {
903
+ id: string;
904
+ description: string | null;
905
+ createdAt: Date;
906
+ updatedAt: Date;
907
+ deletedAt: Date | null;
908
+ systemName: string;
909
+ displayName: string;
910
+ permissions: {
911
+ id: string;
912
+ description: string | null;
913
+ createdAt: Date;
914
+ updatedAt: Date;
915
+ deletedAt: Date | null;
916
+ systemName: string;
917
+ displayName: string;
918
+ }[];
919
+ }>, "many">;
920
+ extension: z.ZodObject<{
921
+ id: z.ZodString;
922
+ createdAt: z.ZodDate;
923
+ updatedAt: z.ZodDate;
924
+ deletedAt: z.ZodNullable<z.ZodDate>;
925
+ userId: z.ZodNullable<z.ZodString>;
926
+ sipServerUrl: z.ZodString;
927
+ sipUserName: z.ZodString;
928
+ webphoneLoginUser: z.ZodString;
929
+ extensionId: z.ZodNullable<z.ZodString>;
930
+ extensionName: z.ZodString;
931
+ telephonySignature: z.ZodNullable<z.ZodString>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ id: string;
934
+ createdAt: Date;
935
+ updatedAt: Date;
936
+ deletedAt: Date | null;
937
+ userId: string | null;
938
+ sipServerUrl: string;
939
+ sipUserName: string;
940
+ webphoneLoginUser: string;
941
+ extensionId: string | null;
942
+ extensionName: string;
943
+ telephonySignature: string | null;
944
+ }, {
945
+ id: string;
946
+ createdAt: Date;
947
+ updatedAt: Date;
948
+ deletedAt: Date | null;
949
+ userId: string | null;
950
+ sipServerUrl: string;
951
+ sipUserName: string;
952
+ webphoneLoginUser: string;
953
+ extensionId: string | null;
954
+ extensionName: string;
955
+ telephonySignature: string | null;
956
+ }>;
957
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
958
+ id: string;
959
+ address: string | null;
960
+ name: string;
961
+ email: string;
962
+ createdAt: Date;
963
+ updatedAt: Date;
964
+ deletedAt: Date | null;
965
+ emailVerifiedAt: Date | null;
966
+ password: string;
967
+ phone: string | null;
968
+ notificationCount: number | null;
969
+ }, {
970
+ id: string;
971
+ address: string | null;
972
+ name: string;
973
+ email: string;
974
+ createdAt: Date;
975
+ updatedAt: Date;
976
+ deletedAt: Date | null;
977
+ emailVerifiedAt: Date | null;
978
+ password: string;
979
+ phone: string | null;
980
+ notificationCount: number | null;
981
+ }>>;
982
+ userId: z.ZodString;
983
+ createdAt: z.ZodOptional<z.ZodString>;
984
+ deletedAt: z.ZodNullable<z.ZodString>;
985
+ updatedAt: z.ZodOptional<z.ZodString>;
986
+ extensionId: z.ZodNullable<z.ZodString>;
987
+ sipUserName: z.ZodNullable<z.ZodString>;
988
+ sipServerUrl: z.ZodNullable<z.ZodString>;
989
+ extensionName: z.ZodNullable<z.ZodString>;
990
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
991
+ telephonySignature: z.ZodNullable<z.ZodString>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ id: string;
994
+ user: {
995
+ id: string;
996
+ address: string | null;
997
+ name: string;
998
+ email: string;
999
+ createdAt: Date;
1000
+ updatedAt: Date;
1001
+ deletedAt: Date | null;
1002
+ emailVerifiedAt: Date | null;
1003
+ password: string;
1004
+ phone: string | null;
1005
+ notificationCount: number | null;
1006
+ } | null;
1007
+ deletedAt: string | null;
1008
+ userId: string;
1009
+ sipServerUrl: string | null;
1010
+ sipUserName: string | null;
1011
+ webphoneLoginUser: string | null;
1012
+ extensionId: string | null;
1013
+ extensionName: string | null;
1014
+ telephonySignature: string | null;
1015
+ createdAt?: string | undefined;
1016
+ updatedAt?: string | undefined;
1017
+ }, {
1018
+ id: string;
1019
+ user: {
1020
+ id: string;
1021
+ address: string | null;
1022
+ name: string;
1023
+ email: string;
1024
+ createdAt: Date;
1025
+ updatedAt: Date;
1026
+ deletedAt: Date | null;
1027
+ emailVerifiedAt: Date | null;
1028
+ password: string;
1029
+ phone: string | null;
1030
+ notificationCount: number | null;
1031
+ } | null;
1032
+ deletedAt: string | null;
1033
+ userId: string;
1034
+ sipServerUrl: string | null;
1035
+ sipUserName: string | null;
1036
+ webphoneLoginUser: string | null;
1037
+ extensionId: string | null;
1038
+ extensionName: string | null;
1039
+ telephonySignature: string | null;
1040
+ createdAt?: string | undefined;
1041
+ updatedAt?: string | undefined;
1042
+ }>>>;
1043
+ callFrom: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ user: z.ZodNullable<z.ZodObject<Omit<{
1046
+ id: z.ZodString;
1047
+ createdAt: z.ZodDate;
1048
+ updatedAt: z.ZodDate;
1049
+ deletedAt: z.ZodNullable<z.ZodDate>;
1050
+ name: z.ZodString;
1051
+ email: z.ZodString;
1052
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1053
+ password: z.ZodString;
1054
+ address: z.ZodNullable<z.ZodString>;
1055
+ phone: z.ZodNullable<z.ZodString>;
1056
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1057
+ roles: z.ZodArray<z.ZodObject<{
1058
+ id: z.ZodString;
1059
+ createdAt: z.ZodDate;
1060
+ updatedAt: z.ZodDate;
1061
+ deletedAt: z.ZodNullable<z.ZodDate>;
1062
+ systemName: z.ZodString;
1063
+ displayName: z.ZodString;
1064
+ description: z.ZodNullable<z.ZodString>;
1065
+ permissions: z.ZodArray<z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ createdAt: z.ZodDate;
1068
+ updatedAt: z.ZodDate;
1069
+ deletedAt: z.ZodNullable<z.ZodDate>;
1070
+ systemName: z.ZodString;
1071
+ displayName: z.ZodString;
1072
+ description: z.ZodNullable<z.ZodString>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ id: string;
1075
+ description: string | null;
1076
+ createdAt: Date;
1077
+ updatedAt: Date;
1078
+ deletedAt: Date | null;
1079
+ systemName: string;
1080
+ displayName: string;
1081
+ }, {
1082
+ id: string;
1083
+ description: string | null;
1084
+ createdAt: Date;
1085
+ updatedAt: Date;
1086
+ deletedAt: Date | null;
1087
+ systemName: string;
1088
+ displayName: string;
1089
+ }>, "many">;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ id: string;
1092
+ description: string | null;
1093
+ createdAt: Date;
1094
+ updatedAt: Date;
1095
+ deletedAt: Date | null;
1096
+ systemName: string;
1097
+ displayName: string;
1098
+ permissions: {
1099
+ id: string;
1100
+ description: string | null;
1101
+ createdAt: Date;
1102
+ updatedAt: Date;
1103
+ deletedAt: Date | null;
1104
+ systemName: string;
1105
+ displayName: string;
1106
+ }[];
1107
+ }, {
1108
+ id: string;
1109
+ description: string | null;
1110
+ createdAt: Date;
1111
+ updatedAt: Date;
1112
+ deletedAt: Date | null;
1113
+ systemName: string;
1114
+ displayName: string;
1115
+ permissions: {
1116
+ id: string;
1117
+ description: string | null;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ systemName: string;
1122
+ displayName: string;
1123
+ }[];
1124
+ }>, "many">;
1125
+ extension: z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ createdAt: z.ZodDate;
1128
+ updatedAt: z.ZodDate;
1129
+ deletedAt: z.ZodNullable<z.ZodDate>;
1130
+ userId: z.ZodNullable<z.ZodString>;
1131
+ sipServerUrl: z.ZodString;
1132
+ sipUserName: z.ZodString;
1133
+ webphoneLoginUser: z.ZodString;
1134
+ extensionId: z.ZodNullable<z.ZodString>;
1135
+ extensionName: z.ZodString;
1136
+ telephonySignature: z.ZodNullable<z.ZodString>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ id: string;
1139
+ createdAt: Date;
1140
+ updatedAt: Date;
1141
+ deletedAt: Date | null;
1142
+ userId: string | null;
1143
+ sipServerUrl: string;
1144
+ sipUserName: string;
1145
+ webphoneLoginUser: string;
1146
+ extensionId: string | null;
1147
+ extensionName: string;
1148
+ telephonySignature: string | null;
1149
+ }, {
1150
+ id: string;
1151
+ createdAt: Date;
1152
+ updatedAt: Date;
1153
+ deletedAt: Date | null;
1154
+ userId: string | null;
1155
+ sipServerUrl: string;
1156
+ sipUserName: string;
1157
+ webphoneLoginUser: string;
1158
+ extensionId: string | null;
1159
+ extensionName: string;
1160
+ telephonySignature: string | null;
1161
+ }>;
1162
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
1163
+ id: string;
1164
+ address: string | null;
1165
+ name: string;
1166
+ email: string;
1167
+ createdAt: Date;
1168
+ updatedAt: Date;
1169
+ deletedAt: Date | null;
1170
+ emailVerifiedAt: Date | null;
1171
+ password: string;
1172
+ phone: string | null;
1173
+ notificationCount: number | null;
1174
+ }, {
1175
+ id: string;
1176
+ address: string | null;
1177
+ name: string;
1178
+ email: string;
1179
+ createdAt: Date;
1180
+ updatedAt: Date;
1181
+ deletedAt: Date | null;
1182
+ emailVerifiedAt: Date | null;
1183
+ password: string;
1184
+ phone: string | null;
1185
+ notificationCount: number | null;
1186
+ }>>;
1187
+ userId: z.ZodString;
1188
+ createdAt: z.ZodOptional<z.ZodString>;
1189
+ deletedAt: z.ZodNullable<z.ZodString>;
1190
+ updatedAt: z.ZodOptional<z.ZodString>;
1191
+ extensionId: z.ZodNullable<z.ZodString>;
1192
+ sipUserName: z.ZodNullable<z.ZodString>;
1193
+ sipServerUrl: z.ZodNullable<z.ZodString>;
1194
+ extensionName: z.ZodNullable<z.ZodString>;
1195
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
1196
+ telephonySignature: z.ZodNullable<z.ZodString>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ id: string;
1199
+ user: {
1200
+ id: string;
1201
+ address: string | null;
1202
+ name: string;
1203
+ email: string;
1204
+ createdAt: Date;
1205
+ updatedAt: Date;
1206
+ deletedAt: Date | null;
1207
+ emailVerifiedAt: Date | null;
1208
+ password: string;
1209
+ phone: string | null;
1210
+ notificationCount: number | null;
1211
+ } | null;
1212
+ deletedAt: string | null;
1213
+ userId: string;
1214
+ sipServerUrl: string | null;
1215
+ sipUserName: string | null;
1216
+ webphoneLoginUser: string | null;
1217
+ extensionId: string | null;
1218
+ extensionName: string | null;
1219
+ telephonySignature: string | null;
1220
+ createdAt?: string | undefined;
1221
+ updatedAt?: string | undefined;
1222
+ }, {
1223
+ id: string;
1224
+ user: {
1225
+ id: string;
1226
+ address: string | null;
1227
+ name: string;
1228
+ email: string;
1229
+ createdAt: Date;
1230
+ updatedAt: Date;
1231
+ deletedAt: Date | null;
1232
+ emailVerifiedAt: Date | null;
1233
+ password: string;
1234
+ phone: string | null;
1235
+ notificationCount: number | null;
1236
+ } | null;
1237
+ deletedAt: string | null;
1238
+ userId: string;
1239
+ sipServerUrl: string | null;
1240
+ sipUserName: string | null;
1241
+ webphoneLoginUser: string | null;
1242
+ extensionId: string | null;
1243
+ extensionName: string | null;
1244
+ telephonySignature: string | null;
1245
+ createdAt?: string | undefined;
1246
+ updatedAt?: string | undefined;
1247
+ }>>>;
1248
+ }, "strip", z.ZodTypeAny, {
1249
+ callTo?: {
1250
+ id: string;
1251
+ user: {
1252
+ id: string;
1253
+ address: string | null;
1254
+ name: string;
1255
+ email: string;
1256
+ createdAt: Date;
1257
+ updatedAt: Date;
1258
+ deletedAt: Date | null;
1259
+ emailVerifiedAt: Date | null;
1260
+ password: string;
1261
+ phone: string | null;
1262
+ notificationCount: number | null;
1263
+ } | null;
1264
+ deletedAt: string | null;
1265
+ userId: string;
1266
+ sipServerUrl: string | null;
1267
+ sipUserName: string | null;
1268
+ webphoneLoginUser: string | null;
1269
+ extensionId: string | null;
1270
+ extensionName: string | null;
1271
+ telephonySignature: string | null;
1272
+ createdAt?: string | undefined;
1273
+ updatedAt?: string | undefined;
1274
+ } | null | undefined;
1275
+ callFrom?: {
1276
+ id: string;
1277
+ user: {
1278
+ id: string;
1279
+ address: string | null;
1280
+ name: string;
1281
+ email: string;
1282
+ createdAt: Date;
1283
+ updatedAt: Date;
1284
+ deletedAt: Date | null;
1285
+ emailVerifiedAt: Date | null;
1286
+ password: string;
1287
+ phone: string | null;
1288
+ notificationCount: number | null;
1289
+ } | null;
1290
+ deletedAt: string | null;
1291
+ userId: string;
1292
+ sipServerUrl: string | null;
1293
+ sipUserName: string | null;
1294
+ webphoneLoginUser: string | null;
1295
+ extensionId: string | null;
1296
+ extensionName: string | null;
1297
+ telephonySignature: string | null;
1298
+ createdAt?: string | undefined;
1299
+ updatedAt?: string | undefined;
1300
+ } | null | undefined;
1301
+ }, {
1302
+ callTo?: {
1303
+ id: string;
1304
+ user: {
1305
+ id: string;
1306
+ address: string | null;
1307
+ name: string;
1308
+ email: string;
1309
+ createdAt: Date;
1310
+ updatedAt: Date;
1311
+ deletedAt: Date | null;
1312
+ emailVerifiedAt: Date | null;
1313
+ password: string;
1314
+ phone: string | null;
1315
+ notificationCount: number | null;
1316
+ } | null;
1317
+ deletedAt: string | null;
1318
+ userId: string;
1319
+ sipServerUrl: string | null;
1320
+ sipUserName: string | null;
1321
+ webphoneLoginUser: string | null;
1322
+ extensionId: string | null;
1323
+ extensionName: string | null;
1324
+ telephonySignature: string | null;
1325
+ createdAt?: string | undefined;
1326
+ updatedAt?: string | undefined;
1327
+ } | null | undefined;
1328
+ callFrom?: {
1329
+ id: string;
1330
+ user: {
1331
+ id: string;
1332
+ address: string | null;
1333
+ name: string;
1334
+ email: string;
1335
+ createdAt: Date;
1336
+ updatedAt: Date;
1337
+ deletedAt: Date | null;
1338
+ emailVerifiedAt: Date | null;
1339
+ password: string;
1340
+ phone: string | null;
1341
+ notificationCount: number | null;
1342
+ } | null;
1343
+ deletedAt: string | null;
1344
+ userId: string;
1345
+ sipServerUrl: string | null;
1346
+ sipUserName: string | null;
1347
+ webphoneLoginUser: string | null;
1348
+ extensionId: string | null;
1349
+ extensionName: string | null;
1350
+ telephonySignature: string | null;
1351
+ createdAt?: string | undefined;
1352
+ updatedAt?: string | undefined;
1353
+ } | null | undefined;
1354
+ }>>;
1355
+ isQueueMissedCall: z.ZodBoolean;
836
1356
  extensionId: z.ZodNullable<z.ZodString>;
837
1357
  extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
838
1358
  id: z.ZodString;
@@ -1174,11 +1694,10 @@ export declare const telephonyCdrContract: {
1174
1694
  updatedAt: Date;
1175
1695
  deletedAt: Date | null;
1176
1696
  extensionId: string | null;
1177
- contactId: string | null;
1178
- callFrom: string;
1179
- callTo: string;
1180
1697
  uniqueCallId: string;
1181
1698
  timeStart: string;
1699
+ callFrom: string;
1700
+ callTo: string;
1182
1701
  callDuration: number | null;
1183
1702
  talkDuration: number | null;
1184
1703
  srcTrunkName: string | null;
@@ -1188,10 +1707,66 @@ export declare const telephonyCdrContract: {
1188
1707
  agentRingTime: number | null;
1189
1708
  uploadId: string | null;
1190
1709
  serialNumber: string | null;
1191
- telephonyQueueId: string | null;
1192
- contact?: {
1193
- id: string;
1194
- channel: string | null;
1710
+ callParticipants: {
1711
+ callTo?: {
1712
+ id: string;
1713
+ user: {
1714
+ id: string;
1715
+ address: string | null;
1716
+ name: string;
1717
+ email: string;
1718
+ createdAt: Date;
1719
+ updatedAt: Date;
1720
+ deletedAt: Date | null;
1721
+ emailVerifiedAt: Date | null;
1722
+ password: string;
1723
+ phone: string | null;
1724
+ notificationCount: number | null;
1725
+ } | null;
1726
+ deletedAt: string | null;
1727
+ userId: string;
1728
+ sipServerUrl: string | null;
1729
+ sipUserName: string | null;
1730
+ webphoneLoginUser: string | null;
1731
+ extensionId: string | null;
1732
+ extensionName: string | null;
1733
+ telephonySignature: string | null;
1734
+ createdAt?: string | undefined;
1735
+ updatedAt?: string | undefined;
1736
+ } | null | undefined;
1737
+ callFrom?: {
1738
+ id: string;
1739
+ user: {
1740
+ id: string;
1741
+ address: string | null;
1742
+ name: string;
1743
+ email: string;
1744
+ createdAt: Date;
1745
+ updatedAt: Date;
1746
+ deletedAt: Date | null;
1747
+ emailVerifiedAt: Date | null;
1748
+ password: string;
1749
+ phone: string | null;
1750
+ notificationCount: number | null;
1751
+ } | null;
1752
+ deletedAt: string | null;
1753
+ userId: string;
1754
+ sipServerUrl: string | null;
1755
+ sipUserName: string | null;
1756
+ webphoneLoginUser: string | null;
1757
+ extensionId: string | null;
1758
+ extensionName: string | null;
1759
+ telephonySignature: string | null;
1760
+ createdAt?: string | undefined;
1761
+ updatedAt?: string | undefined;
1762
+ } | null | undefined;
1763
+ } | null;
1764
+ isQueueMissedCall: boolean;
1765
+ telephonyQueueId: string | null;
1766
+ contactId: string | null;
1767
+ contact?: {
1768
+ id: string;
1769
+ channel: string | null;
1195
1770
  address: string | null;
1196
1771
  name: string;
1197
1772
  createdAt: Date;
@@ -1374,11 +1949,10 @@ export declare const telephonyCdrContract: {
1374
1949
  updatedAt: Date;
1375
1950
  deletedAt: Date | null;
1376
1951
  extensionId: string | null;
1377
- contactId: string | null;
1378
- callFrom: string;
1379
- callTo: string;
1380
1952
  uniqueCallId: string;
1381
1953
  timeStart: string;
1954
+ callFrom: string;
1955
+ callTo: string;
1382
1956
  callDuration: number | null;
1383
1957
  talkDuration: number | null;
1384
1958
  srcTrunkName: string | null;
@@ -1388,7 +1962,63 @@ export declare const telephonyCdrContract: {
1388
1962
  agentRingTime: number | null;
1389
1963
  uploadId: string | null;
1390
1964
  serialNumber: string | null;
1965
+ callParticipants: {
1966
+ callTo?: {
1967
+ id: string;
1968
+ user: {
1969
+ id: string;
1970
+ address: string | null;
1971
+ name: string;
1972
+ email: string;
1973
+ createdAt: Date;
1974
+ updatedAt: Date;
1975
+ deletedAt: Date | null;
1976
+ emailVerifiedAt: Date | null;
1977
+ password: string;
1978
+ phone: string | null;
1979
+ notificationCount: number | null;
1980
+ } | null;
1981
+ deletedAt: string | null;
1982
+ userId: string;
1983
+ sipServerUrl: string | null;
1984
+ sipUserName: string | null;
1985
+ webphoneLoginUser: string | null;
1986
+ extensionId: string | null;
1987
+ extensionName: string | null;
1988
+ telephonySignature: string | null;
1989
+ createdAt?: string | undefined;
1990
+ updatedAt?: string | undefined;
1991
+ } | null | undefined;
1992
+ callFrom?: {
1993
+ id: string;
1994
+ user: {
1995
+ id: string;
1996
+ address: string | null;
1997
+ name: string;
1998
+ email: string;
1999
+ createdAt: Date;
2000
+ updatedAt: Date;
2001
+ deletedAt: Date | null;
2002
+ emailVerifiedAt: Date | null;
2003
+ password: string;
2004
+ phone: string | null;
2005
+ notificationCount: number | null;
2006
+ } | null;
2007
+ deletedAt: string | null;
2008
+ userId: string;
2009
+ sipServerUrl: string | null;
2010
+ sipUserName: string | null;
2011
+ webphoneLoginUser: string | null;
2012
+ extensionId: string | null;
2013
+ extensionName: string | null;
2014
+ telephonySignature: string | null;
2015
+ createdAt?: string | undefined;
2016
+ updatedAt?: string | undefined;
2017
+ } | null | undefined;
2018
+ } | null;
2019
+ isQueueMissedCall: boolean;
1391
2020
  telephonyQueueId: string | null;
2021
+ contactId: string | null;
1392
2022
  contact?: {
1393
2023
  id: string;
1394
2024
  channel: string | null;
@@ -1580,11 +2210,10 @@ export declare const telephonyCdrContract: {
1580
2210
  updatedAt: Date;
1581
2211
  deletedAt: Date | null;
1582
2212
  extensionId: string | null;
1583
- contactId: string | null;
1584
- callFrom: string;
1585
- callTo: string;
1586
2213
  uniqueCallId: string;
1587
2214
  timeStart: string;
2215
+ callFrom: string;
2216
+ callTo: string;
1588
2217
  callDuration: number | null;
1589
2218
  talkDuration: number | null;
1590
2219
  srcTrunkName: string | null;
@@ -1594,7 +2223,63 @@ export declare const telephonyCdrContract: {
1594
2223
  agentRingTime: number | null;
1595
2224
  uploadId: string | null;
1596
2225
  serialNumber: string | null;
2226
+ callParticipants: {
2227
+ callTo?: {
2228
+ id: string;
2229
+ user: {
2230
+ id: string;
2231
+ address: string | null;
2232
+ name: string;
2233
+ email: string;
2234
+ createdAt: Date;
2235
+ updatedAt: Date;
2236
+ deletedAt: Date | null;
2237
+ emailVerifiedAt: Date | null;
2238
+ password: string;
2239
+ phone: string | null;
2240
+ notificationCount: number | null;
2241
+ } | null;
2242
+ deletedAt: string | null;
2243
+ userId: string;
2244
+ sipServerUrl: string | null;
2245
+ sipUserName: string | null;
2246
+ webphoneLoginUser: string | null;
2247
+ extensionId: string | null;
2248
+ extensionName: string | null;
2249
+ telephonySignature: string | null;
2250
+ createdAt?: string | undefined;
2251
+ updatedAt?: string | undefined;
2252
+ } | null | undefined;
2253
+ callFrom?: {
2254
+ id: string;
2255
+ user: {
2256
+ id: string;
2257
+ address: string | null;
2258
+ name: string;
2259
+ email: string;
2260
+ createdAt: Date;
2261
+ updatedAt: Date;
2262
+ deletedAt: Date | null;
2263
+ emailVerifiedAt: Date | null;
2264
+ password: string;
2265
+ phone: string | null;
2266
+ notificationCount: number | null;
2267
+ } | null;
2268
+ deletedAt: string | null;
2269
+ userId: string;
2270
+ sipServerUrl: string | null;
2271
+ sipUserName: string | null;
2272
+ webphoneLoginUser: string | null;
2273
+ extensionId: string | null;
2274
+ extensionName: string | null;
2275
+ telephonySignature: string | null;
2276
+ createdAt?: string | undefined;
2277
+ updatedAt?: string | undefined;
2278
+ } | null | undefined;
2279
+ } | null;
2280
+ isQueueMissedCall: boolean;
1597
2281
  telephonyQueueId: string | null;
2282
+ contactId: string | null;
1598
2283
  contact?: {
1599
2284
  id: string;
1600
2285
  channel: string | null;
@@ -1786,11 +2471,10 @@ export declare const telephonyCdrContract: {
1786
2471
  updatedAt: Date;
1787
2472
  deletedAt: Date | null;
1788
2473
  extensionId: string | null;
1789
- contactId: string | null;
1790
- callFrom: string;
1791
- callTo: string;
1792
2474
  uniqueCallId: string;
1793
2475
  timeStart: string;
2476
+ callFrom: string;
2477
+ callTo: string;
1794
2478
  callDuration: number | null;
1795
2479
  talkDuration: number | null;
1796
2480
  srcTrunkName: string | null;
@@ -1800,7 +2484,63 @@ export declare const telephonyCdrContract: {
1800
2484
  agentRingTime: number | null;
1801
2485
  uploadId: string | null;
1802
2486
  serialNumber: string | null;
2487
+ callParticipants: {
2488
+ callTo?: {
2489
+ id: string;
2490
+ user: {
2491
+ id: string;
2492
+ address: string | null;
2493
+ name: string;
2494
+ email: string;
2495
+ createdAt: Date;
2496
+ updatedAt: Date;
2497
+ deletedAt: Date | null;
2498
+ emailVerifiedAt: Date | null;
2499
+ password: string;
2500
+ phone: string | null;
2501
+ notificationCount: number | null;
2502
+ } | null;
2503
+ deletedAt: string | null;
2504
+ userId: string;
2505
+ sipServerUrl: string | null;
2506
+ sipUserName: string | null;
2507
+ webphoneLoginUser: string | null;
2508
+ extensionId: string | null;
2509
+ extensionName: string | null;
2510
+ telephonySignature: string | null;
2511
+ createdAt?: string | undefined;
2512
+ updatedAt?: string | undefined;
2513
+ } | null | undefined;
2514
+ callFrom?: {
2515
+ id: string;
2516
+ user: {
2517
+ id: string;
2518
+ address: string | null;
2519
+ name: string;
2520
+ email: string;
2521
+ createdAt: Date;
2522
+ updatedAt: Date;
2523
+ deletedAt: Date | null;
2524
+ emailVerifiedAt: Date | null;
2525
+ password: string;
2526
+ phone: string | null;
2527
+ notificationCount: number | null;
2528
+ } | null;
2529
+ deletedAt: string | null;
2530
+ userId: string;
2531
+ sipServerUrl: string | null;
2532
+ sipUserName: string | null;
2533
+ webphoneLoginUser: string | null;
2534
+ extensionId: string | null;
2535
+ extensionName: string | null;
2536
+ telephonySignature: string | null;
2537
+ createdAt?: string | undefined;
2538
+ updatedAt?: string | undefined;
2539
+ } | null | undefined;
2540
+ } | null;
2541
+ isQueueMissedCall: boolean;
1803
2542
  telephonyQueueId: string | null;
2543
+ contactId: string | null;
1804
2544
  contact?: {
1805
2545
  id: string;
1806
2546
  channel: string | null;
@@ -2780,6 +3520,7 @@ export declare const telephonyCdrContract: {
2780
3520
  didNumber: z.ZodNullable<z.ZodString>;
2781
3521
  agentRingTime: z.ZodNullable<z.ZodNumber>;
2782
3522
  uploadId: z.ZodNullable<z.ZodString>;
3523
+ serialNumber: z.ZodNullable<z.ZodString>;
2783
3524
  upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2784
3525
  id: z.ZodString;
2785
3526
  createdAt: z.ZodDate;
@@ -2814,41 +3555,22 @@ export declare const telephonyCdrContract: {
2814
3555
  fileUrl: string | null;
2815
3556
  status?: string | undefined;
2816
3557
  }>>>;
2817
- serialNumber: z.ZodNullable<z.ZodString>;
2818
- extensionId: z.ZodNullable<z.ZodString>;
2819
- extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2820
- id: z.ZodString;
2821
- createdAt: z.ZodDate;
2822
- updatedAt: z.ZodDate;
2823
- deletedAt: z.ZodNullable<z.ZodDate>;
2824
- userId: z.ZodNullable<z.ZodString>;
2825
- sipServerUrl: z.ZodString;
2826
- sipUserName: z.ZodString;
2827
- webphoneLoginUser: z.ZodString;
2828
- extensionId: z.ZodNullable<z.ZodString>;
2829
- extensionName: z.ZodString;
2830
- telephonySignature: z.ZodNullable<z.ZodString>;
2831
- user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3558
+ callParticipants: z.ZodNullable<z.ZodObject<{
3559
+ callTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2832
3560
  id: z.ZodString;
2833
- createdAt: z.ZodDate;
2834
- updatedAt: z.ZodDate;
2835
- deletedAt: z.ZodNullable<z.ZodDate>;
2836
- name: z.ZodString;
2837
- email: z.ZodString;
2838
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2839
- password: z.ZodString;
2840
- address: z.ZodNullable<z.ZodString>;
2841
- phone: z.ZodNullable<z.ZodString>;
2842
- notificationCount: z.ZodNullable<z.ZodNumber>;
2843
- roles: z.ZodArray<z.ZodObject<{
3561
+ user: z.ZodNullable<z.ZodObject<Omit<{
2844
3562
  id: z.ZodString;
2845
3563
  createdAt: z.ZodDate;
2846
3564
  updatedAt: z.ZodDate;
2847
3565
  deletedAt: z.ZodNullable<z.ZodDate>;
2848
- systemName: z.ZodString;
2849
- displayName: z.ZodString;
2850
- description: z.ZodNullable<z.ZodString>;
2851
- permissions: z.ZodArray<z.ZodObject<{
3566
+ name: z.ZodString;
3567
+ email: z.ZodString;
3568
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3569
+ password: z.ZodString;
3570
+ address: z.ZodNullable<z.ZodString>;
3571
+ phone: z.ZodNullable<z.ZodString>;
3572
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3573
+ roles: z.ZodArray<z.ZodObject<{
2852
3574
  id: z.ZodString;
2853
3575
  createdAt: z.ZodDate;
2854
3576
  updatedAt: z.ZodDate;
@@ -2856,6 +3578,31 @@ export declare const telephonyCdrContract: {
2856
3578
  systemName: z.ZodString;
2857
3579
  displayName: z.ZodString;
2858
3580
  description: z.ZodNullable<z.ZodString>;
3581
+ permissions: z.ZodArray<z.ZodObject<{
3582
+ id: z.ZodString;
3583
+ createdAt: z.ZodDate;
3584
+ updatedAt: z.ZodDate;
3585
+ deletedAt: z.ZodNullable<z.ZodDate>;
3586
+ systemName: z.ZodString;
3587
+ displayName: z.ZodString;
3588
+ description: z.ZodNullable<z.ZodString>;
3589
+ }, "strip", z.ZodTypeAny, {
3590
+ id: string;
3591
+ description: string | null;
3592
+ createdAt: Date;
3593
+ updatedAt: Date;
3594
+ deletedAt: Date | null;
3595
+ systemName: string;
3596
+ displayName: string;
3597
+ }, {
3598
+ id: string;
3599
+ description: string | null;
3600
+ createdAt: Date;
3601
+ updatedAt: Date;
3602
+ deletedAt: Date | null;
3603
+ systemName: string;
3604
+ displayName: string;
3605
+ }>, "many">;
2859
3606
  }, "strip", z.ZodTypeAny, {
2860
3607
  id: string;
2861
3608
  description: string | null;
@@ -2864,6 +3611,15 @@ export declare const telephonyCdrContract: {
2864
3611
  deletedAt: Date | null;
2865
3612
  systemName: string;
2866
3613
  displayName: string;
3614
+ permissions: {
3615
+ id: string;
3616
+ description: string | null;
3617
+ createdAt: Date;
3618
+ updatedAt: Date;
3619
+ deletedAt: Date | null;
3620
+ systemName: string;
3621
+ displayName: string;
3622
+ }[];
2867
3623
  }, {
2868
3624
  id: string;
2869
3625
  description: string | null;
@@ -2872,143 +3628,187 @@ export declare const telephonyCdrContract: {
2872
3628
  deletedAt: Date | null;
2873
3629
  systemName: string;
2874
3630
  displayName: string;
3631
+ permissions: {
3632
+ id: string;
3633
+ description: string | null;
3634
+ createdAt: Date;
3635
+ updatedAt: Date;
3636
+ deletedAt: Date | null;
3637
+ systemName: string;
3638
+ displayName: string;
3639
+ }[];
2875
3640
  }>, "many">;
2876
- }, "strip", z.ZodTypeAny, {
2877
- id: string;
2878
- description: string | null;
2879
- createdAt: Date;
2880
- updatedAt: Date;
2881
- deletedAt: Date | null;
2882
- systemName: string;
2883
- displayName: string;
2884
- permissions: {
3641
+ extension: z.ZodObject<{
3642
+ id: z.ZodString;
3643
+ createdAt: z.ZodDate;
3644
+ updatedAt: z.ZodDate;
3645
+ deletedAt: z.ZodNullable<z.ZodDate>;
3646
+ userId: z.ZodNullable<z.ZodString>;
3647
+ sipServerUrl: z.ZodString;
3648
+ sipUserName: z.ZodString;
3649
+ webphoneLoginUser: z.ZodString;
3650
+ extensionId: z.ZodNullable<z.ZodString>;
3651
+ extensionName: z.ZodString;
3652
+ telephonySignature: z.ZodNullable<z.ZodString>;
3653
+ }, "strip", z.ZodTypeAny, {
2885
3654
  id: string;
2886
- description: string | null;
2887
3655
  createdAt: Date;
2888
3656
  updatedAt: Date;
2889
3657
  deletedAt: Date | null;
2890
- systemName: string;
2891
- displayName: string;
2892
- }[];
2893
- }, {
2894
- id: string;
2895
- description: string | null;
2896
- createdAt: Date;
2897
- updatedAt: Date;
2898
- deletedAt: Date | null;
2899
- systemName: string;
2900
- displayName: string;
2901
- permissions: {
3658
+ userId: string | null;
3659
+ sipServerUrl: string;
3660
+ sipUserName: string;
3661
+ webphoneLoginUser: string;
3662
+ extensionId: string | null;
3663
+ extensionName: string;
3664
+ telephonySignature: string | null;
3665
+ }, {
2902
3666
  id: string;
2903
- description: string | null;
2904
3667
  createdAt: Date;
2905
3668
  updatedAt: Date;
2906
3669
  deletedAt: Date | null;
2907
- systemName: string;
2908
- displayName: string;
2909
- }[];
2910
- }>, "many">;
2911
- extension: z.ZodObject<{
2912
- id: z.ZodString;
2913
- createdAt: z.ZodDate;
2914
- updatedAt: z.ZodDate;
2915
- deletedAt: z.ZodNullable<z.ZodDate>;
2916
- userId: z.ZodNullable<z.ZodString>;
2917
- sipServerUrl: z.ZodString;
2918
- sipUserName: z.ZodString;
2919
- webphoneLoginUser: z.ZodString;
2920
- extensionId: z.ZodNullable<z.ZodString>;
2921
- extensionName: z.ZodString;
2922
- telephonySignature: z.ZodNullable<z.ZodString>;
2923
- }, "strip", z.ZodTypeAny, {
3670
+ userId: string | null;
3671
+ sipServerUrl: string;
3672
+ sipUserName: string;
3673
+ webphoneLoginUser: string;
3674
+ extensionId: string | null;
3675
+ extensionName: string;
3676
+ telephonySignature: string | null;
3677
+ }>;
3678
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
2924
3679
  id: string;
3680
+ address: string | null;
3681
+ name: string;
3682
+ email: string;
2925
3683
  createdAt: Date;
2926
3684
  updatedAt: Date;
2927
3685
  deletedAt: Date | null;
2928
- userId: string | null;
2929
- sipServerUrl: string;
2930
- sipUserName: string;
2931
- webphoneLoginUser: string;
2932
- extensionId: string | null;
2933
- extensionName: string;
2934
- telephonySignature: string | null;
3686
+ emailVerifiedAt: Date | null;
3687
+ password: string;
3688
+ phone: string | null;
3689
+ notificationCount: number | null;
2935
3690
  }, {
2936
3691
  id: string;
3692
+ address: string | null;
3693
+ name: string;
3694
+ email: string;
2937
3695
  createdAt: Date;
2938
3696
  updatedAt: Date;
2939
3697
  deletedAt: Date | null;
2940
- userId: string | null;
2941
- sipServerUrl: string;
2942
- sipUserName: string;
2943
- webphoneLoginUser: string;
2944
- extensionId: string | null;
2945
- extensionName: string;
2946
- telephonySignature: string | null;
2947
- }>;
3698
+ emailVerifiedAt: Date | null;
3699
+ password: string;
3700
+ phone: string | null;
3701
+ notificationCount: number | null;
3702
+ }>>;
3703
+ userId: z.ZodString;
3704
+ createdAt: z.ZodOptional<z.ZodString>;
3705
+ deletedAt: z.ZodNullable<z.ZodString>;
3706
+ updatedAt: z.ZodOptional<z.ZodString>;
3707
+ extensionId: z.ZodNullable<z.ZodString>;
3708
+ sipUserName: z.ZodNullable<z.ZodString>;
3709
+ sipServerUrl: z.ZodNullable<z.ZodString>;
3710
+ extensionName: z.ZodNullable<z.ZodString>;
3711
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
3712
+ telephonySignature: z.ZodNullable<z.ZodString>;
2948
3713
  }, "strip", z.ZodTypeAny, {
2949
3714
  id: string;
2950
- address: string | null;
2951
- name: string;
2952
- email: string;
2953
- createdAt: Date;
2954
- updatedAt: Date;
2955
- deletedAt: Date | null;
2956
- emailVerifiedAt: Date | null;
2957
- password: string;
2958
- phone: string | null;
2959
- notificationCount: number | null;
2960
- roles: {
3715
+ user: {
2961
3716
  id: string;
2962
- description: string | null;
3717
+ address: string | null;
3718
+ name: string;
3719
+ email: string;
2963
3720
  createdAt: Date;
2964
3721
  updatedAt: Date;
2965
3722
  deletedAt: Date | null;
2966
- systemName: string;
2967
- displayName: string;
2968
- permissions: {
2969
- id: string;
2970
- description: string | null;
2971
- createdAt: Date;
2972
- updatedAt: Date;
2973
- deletedAt: Date | null;
2974
- systemName: string;
2975
- displayName: string;
2976
- }[];
2977
- }[];
2978
- extension: {
3723
+ emailVerifiedAt: Date | null;
3724
+ password: string;
3725
+ phone: string | null;
3726
+ notificationCount: number | null;
3727
+ } | null;
3728
+ deletedAt: string | null;
3729
+ userId: string;
3730
+ sipServerUrl: string | null;
3731
+ sipUserName: string | null;
3732
+ webphoneLoginUser: string | null;
3733
+ extensionId: string | null;
3734
+ extensionName: string | null;
3735
+ telephonySignature: string | null;
3736
+ createdAt?: string | undefined;
3737
+ updatedAt?: string | undefined;
3738
+ }, {
3739
+ id: string;
3740
+ user: {
2979
3741
  id: string;
3742
+ address: string | null;
3743
+ name: string;
3744
+ email: string;
2980
3745
  createdAt: Date;
2981
3746
  updatedAt: Date;
2982
3747
  deletedAt: Date | null;
2983
- userId: string | null;
2984
- sipServerUrl: string;
2985
- sipUserName: string;
2986
- webphoneLoginUser: string;
2987
- extensionId: string | null;
2988
- extensionName: string;
2989
- telephonySignature: string | null;
2990
- };
2991
- }, {
2992
- id: string;
2993
- address: string | null;
2994
- name: string;
2995
- email: string;
2996
- createdAt: Date;
2997
- updatedAt: Date;
2998
- deletedAt: Date | null;
2999
- emailVerifiedAt: Date | null;
3000
- password: string;
3001
- phone: string | null;
3002
- notificationCount: number | null;
3003
- roles: {
3004
- id: string;
3005
- description: string | null;
3006
- createdAt: Date;
3007
- updatedAt: Date;
3008
- deletedAt: Date | null;
3009
- systemName: string;
3010
- displayName: string;
3011
- permissions: {
3748
+ emailVerifiedAt: Date | null;
3749
+ password: string;
3750
+ phone: string | null;
3751
+ notificationCount: number | null;
3752
+ } | null;
3753
+ deletedAt: string | null;
3754
+ userId: string;
3755
+ sipServerUrl: string | null;
3756
+ sipUserName: string | null;
3757
+ webphoneLoginUser: string | null;
3758
+ extensionId: string | null;
3759
+ extensionName: string | null;
3760
+ telephonySignature: string | null;
3761
+ createdAt?: string | undefined;
3762
+ updatedAt?: string | undefined;
3763
+ }>>>;
3764
+ callFrom: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3765
+ id: z.ZodString;
3766
+ user: z.ZodNullable<z.ZodObject<Omit<{
3767
+ id: z.ZodString;
3768
+ createdAt: z.ZodDate;
3769
+ updatedAt: z.ZodDate;
3770
+ deletedAt: z.ZodNullable<z.ZodDate>;
3771
+ name: z.ZodString;
3772
+ email: z.ZodString;
3773
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3774
+ password: z.ZodString;
3775
+ address: z.ZodNullable<z.ZodString>;
3776
+ phone: z.ZodNullable<z.ZodString>;
3777
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3778
+ roles: z.ZodArray<z.ZodObject<{
3779
+ id: z.ZodString;
3780
+ createdAt: z.ZodDate;
3781
+ updatedAt: z.ZodDate;
3782
+ deletedAt: z.ZodNullable<z.ZodDate>;
3783
+ systemName: z.ZodString;
3784
+ displayName: z.ZodString;
3785
+ description: z.ZodNullable<z.ZodString>;
3786
+ permissions: z.ZodArray<z.ZodObject<{
3787
+ id: z.ZodString;
3788
+ createdAt: z.ZodDate;
3789
+ updatedAt: z.ZodDate;
3790
+ deletedAt: z.ZodNullable<z.ZodDate>;
3791
+ systemName: z.ZodString;
3792
+ displayName: z.ZodString;
3793
+ description: z.ZodNullable<z.ZodString>;
3794
+ }, "strip", z.ZodTypeAny, {
3795
+ id: string;
3796
+ description: string | null;
3797
+ createdAt: Date;
3798
+ updatedAt: Date;
3799
+ deletedAt: Date | null;
3800
+ systemName: string;
3801
+ displayName: string;
3802
+ }, {
3803
+ id: string;
3804
+ description: string | null;
3805
+ createdAt: Date;
3806
+ updatedAt: Date;
3807
+ deletedAt: Date | null;
3808
+ systemName: string;
3809
+ displayName: string;
3810
+ }>, "many">;
3811
+ }, "strip", z.ZodTypeAny, {
3012
3812
  id: string;
3013
3813
  description: string | null;
3014
3814
  createdAt: Date;
@@ -3016,111 +3816,331 @@ export declare const telephonyCdrContract: {
3016
3816
  deletedAt: Date | null;
3017
3817
  systemName: string;
3018
3818
  displayName: string;
3019
- }[];
3020
- }[];
3021
- extension: {
3819
+ permissions: {
3820
+ id: string;
3821
+ description: string | null;
3822
+ createdAt: Date;
3823
+ updatedAt: Date;
3824
+ deletedAt: Date | null;
3825
+ systemName: string;
3826
+ displayName: string;
3827
+ }[];
3828
+ }, {
3829
+ id: string;
3830
+ description: string | null;
3831
+ createdAt: Date;
3832
+ updatedAt: Date;
3833
+ deletedAt: Date | null;
3834
+ systemName: string;
3835
+ displayName: string;
3836
+ permissions: {
3837
+ id: string;
3838
+ description: string | null;
3839
+ createdAt: Date;
3840
+ updatedAt: Date;
3841
+ deletedAt: Date | null;
3842
+ systemName: string;
3843
+ displayName: string;
3844
+ }[];
3845
+ }>, "many">;
3846
+ extension: z.ZodObject<{
3847
+ id: z.ZodString;
3848
+ createdAt: z.ZodDate;
3849
+ updatedAt: z.ZodDate;
3850
+ deletedAt: z.ZodNullable<z.ZodDate>;
3851
+ userId: z.ZodNullable<z.ZodString>;
3852
+ sipServerUrl: z.ZodString;
3853
+ sipUserName: z.ZodString;
3854
+ webphoneLoginUser: z.ZodString;
3855
+ extensionId: z.ZodNullable<z.ZodString>;
3856
+ extensionName: z.ZodString;
3857
+ telephonySignature: z.ZodNullable<z.ZodString>;
3858
+ }, "strip", z.ZodTypeAny, {
3859
+ id: string;
3860
+ createdAt: Date;
3861
+ updatedAt: Date;
3862
+ deletedAt: Date | null;
3863
+ userId: string | null;
3864
+ sipServerUrl: string;
3865
+ sipUserName: string;
3866
+ webphoneLoginUser: string;
3867
+ extensionId: string | null;
3868
+ extensionName: string;
3869
+ telephonySignature: string | null;
3870
+ }, {
3871
+ id: string;
3872
+ createdAt: Date;
3873
+ updatedAt: Date;
3874
+ deletedAt: Date | null;
3875
+ userId: string | null;
3876
+ sipServerUrl: string;
3877
+ sipUserName: string;
3878
+ webphoneLoginUser: string;
3879
+ extensionId: string | null;
3880
+ extensionName: string;
3881
+ telephonySignature: string | null;
3882
+ }>;
3883
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
3022
3884
  id: string;
3885
+ address: string | null;
3886
+ name: string;
3887
+ email: string;
3023
3888
  createdAt: Date;
3024
3889
  updatedAt: Date;
3025
3890
  deletedAt: Date | null;
3026
- userId: string | null;
3027
- sipServerUrl: string;
3028
- sipUserName: string;
3029
- webphoneLoginUser: string;
3030
- extensionId: string | null;
3031
- extensionName: string;
3032
- telephonySignature: string | null;
3033
- };
3891
+ emailVerifiedAt: Date | null;
3892
+ password: string;
3893
+ phone: string | null;
3894
+ notificationCount: number | null;
3895
+ }, {
3896
+ id: string;
3897
+ address: string | null;
3898
+ name: string;
3899
+ email: string;
3900
+ createdAt: Date;
3901
+ updatedAt: Date;
3902
+ deletedAt: Date | null;
3903
+ emailVerifiedAt: Date | null;
3904
+ password: string;
3905
+ phone: string | null;
3906
+ notificationCount: number | null;
3907
+ }>>;
3908
+ userId: z.ZodString;
3909
+ createdAt: z.ZodOptional<z.ZodString>;
3910
+ deletedAt: z.ZodNullable<z.ZodString>;
3911
+ updatedAt: z.ZodOptional<z.ZodString>;
3912
+ extensionId: z.ZodNullable<z.ZodString>;
3913
+ sipUserName: z.ZodNullable<z.ZodString>;
3914
+ sipServerUrl: z.ZodNullable<z.ZodString>;
3915
+ extensionName: z.ZodNullable<z.ZodString>;
3916
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
3917
+ telephonySignature: z.ZodNullable<z.ZodString>;
3918
+ }, "strip", z.ZodTypeAny, {
3919
+ id: string;
3920
+ user: {
3921
+ id: string;
3922
+ address: string | null;
3923
+ name: string;
3924
+ email: string;
3925
+ createdAt: Date;
3926
+ updatedAt: Date;
3927
+ deletedAt: Date | null;
3928
+ emailVerifiedAt: Date | null;
3929
+ password: string;
3930
+ phone: string | null;
3931
+ notificationCount: number | null;
3932
+ } | null;
3933
+ deletedAt: string | null;
3934
+ userId: string;
3935
+ sipServerUrl: string | null;
3936
+ sipUserName: string | null;
3937
+ webphoneLoginUser: string | null;
3938
+ extensionId: string | null;
3939
+ extensionName: string | null;
3940
+ telephonySignature: string | null;
3941
+ createdAt?: string | undefined;
3942
+ updatedAt?: string | undefined;
3943
+ }, {
3944
+ id: string;
3945
+ user: {
3946
+ id: string;
3947
+ address: string | null;
3948
+ name: string;
3949
+ email: string;
3950
+ createdAt: Date;
3951
+ updatedAt: Date;
3952
+ deletedAt: Date | null;
3953
+ emailVerifiedAt: Date | null;
3954
+ password: string;
3955
+ phone: string | null;
3956
+ notificationCount: number | null;
3957
+ } | null;
3958
+ deletedAt: string | null;
3959
+ userId: string;
3960
+ sipServerUrl: string | null;
3961
+ sipUserName: string | null;
3962
+ webphoneLoginUser: string | null;
3963
+ extensionId: string | null;
3964
+ extensionName: string | null;
3965
+ telephonySignature: string | null;
3966
+ createdAt?: string | undefined;
3967
+ updatedAt?: string | undefined;
3034
3968
  }>>>;
3035
3969
  }, "strip", z.ZodTypeAny, {
3036
- id: string;
3037
- createdAt: Date;
3038
- updatedAt: Date;
3039
- deletedAt: Date | null;
3040
- userId: string | null;
3041
- sipServerUrl: string;
3042
- sipUserName: string;
3043
- webphoneLoginUser: string;
3044
- extensionId: string | null;
3045
- extensionName: string;
3046
- telephonySignature: string | null;
3047
- user?: {
3970
+ callTo?: {
3048
3971
  id: string;
3049
- address: string | null;
3050
- name: string;
3051
- email: string;
3052
- createdAt: Date;
3053
- updatedAt: Date;
3054
- deletedAt: Date | null;
3055
- emailVerifiedAt: Date | null;
3056
- password: string;
3057
- phone: string | null;
3058
- notificationCount: number | null;
3059
- roles: {
3972
+ user: {
3060
3973
  id: string;
3061
- description: string | null;
3974
+ address: string | null;
3975
+ name: string;
3976
+ email: string;
3062
3977
  createdAt: Date;
3063
3978
  updatedAt: Date;
3064
3979
  deletedAt: Date | null;
3065
- systemName: string;
3066
- displayName: string;
3067
- permissions: {
3068
- id: string;
3069
- description: string | null;
3070
- createdAt: Date;
3071
- updatedAt: Date;
3072
- deletedAt: Date | null;
3073
- systemName: string;
3074
- displayName: string;
3075
- }[];
3076
- }[];
3077
- extension: {
3980
+ emailVerifiedAt: Date | null;
3981
+ password: string;
3982
+ phone: string | null;
3983
+ notificationCount: number | null;
3984
+ } | null;
3985
+ deletedAt: string | null;
3986
+ userId: string;
3987
+ sipServerUrl: string | null;
3988
+ sipUserName: string | null;
3989
+ webphoneLoginUser: string | null;
3990
+ extensionId: string | null;
3991
+ extensionName: string | null;
3992
+ telephonySignature: string | null;
3993
+ createdAt?: string | undefined;
3994
+ updatedAt?: string | undefined;
3995
+ } | null | undefined;
3996
+ callFrom?: {
3997
+ id: string;
3998
+ user: {
3078
3999
  id: string;
4000
+ address: string | null;
4001
+ name: string;
4002
+ email: string;
3079
4003
  createdAt: Date;
3080
4004
  updatedAt: Date;
3081
4005
  deletedAt: Date | null;
3082
- userId: string | null;
3083
- sipServerUrl: string;
3084
- sipUserName: string;
3085
- webphoneLoginUser: string;
3086
- extensionId: string | null;
3087
- extensionName: string;
3088
- telephonySignature: string | null;
3089
- };
4006
+ emailVerifiedAt: Date | null;
4007
+ password: string;
4008
+ phone: string | null;
4009
+ notificationCount: number | null;
4010
+ } | null;
4011
+ deletedAt: string | null;
4012
+ userId: string;
4013
+ sipServerUrl: string | null;
4014
+ sipUserName: string | null;
4015
+ webphoneLoginUser: string | null;
4016
+ extensionId: string | null;
4017
+ extensionName: string | null;
4018
+ telephonySignature: string | null;
4019
+ createdAt?: string | undefined;
4020
+ updatedAt?: string | undefined;
3090
4021
  } | null | undefined;
3091
4022
  }, {
3092
- id: string;
3093
- createdAt: Date;
3094
- updatedAt: Date;
3095
- deletedAt: Date | null;
3096
- userId: string | null;
3097
- sipServerUrl: string;
3098
- sipUserName: string;
3099
- webphoneLoginUser: string;
3100
- extensionId: string | null;
3101
- extensionName: string;
3102
- telephonySignature: string | null;
3103
- user?: {
4023
+ callTo?: {
3104
4024
  id: string;
3105
- address: string | null;
3106
- name: string;
3107
- email: string;
3108
- createdAt: Date;
3109
- updatedAt: Date;
3110
- deletedAt: Date | null;
3111
- emailVerifiedAt: Date | null;
3112
- password: string;
3113
- phone: string | null;
3114
- notificationCount: number | null;
3115
- roles: {
4025
+ user: {
3116
4026
  id: string;
3117
- description: string | null;
4027
+ address: string | null;
4028
+ name: string;
4029
+ email: string;
3118
4030
  createdAt: Date;
3119
4031
  updatedAt: Date;
3120
4032
  deletedAt: Date | null;
3121
- systemName: string;
3122
- displayName: string;
3123
- permissions: {
4033
+ emailVerifiedAt: Date | null;
4034
+ password: string;
4035
+ phone: string | null;
4036
+ notificationCount: number | null;
4037
+ } | null;
4038
+ deletedAt: string | null;
4039
+ userId: string;
4040
+ sipServerUrl: string | null;
4041
+ sipUserName: string | null;
4042
+ webphoneLoginUser: string | null;
4043
+ extensionId: string | null;
4044
+ extensionName: string | null;
4045
+ telephonySignature: string | null;
4046
+ createdAt?: string | undefined;
4047
+ updatedAt?: string | undefined;
4048
+ } | null | undefined;
4049
+ callFrom?: {
4050
+ id: string;
4051
+ user: {
4052
+ id: string;
4053
+ address: string | null;
4054
+ name: string;
4055
+ email: string;
4056
+ createdAt: Date;
4057
+ updatedAt: Date;
4058
+ deletedAt: Date | null;
4059
+ emailVerifiedAt: Date | null;
4060
+ password: string;
4061
+ phone: string | null;
4062
+ notificationCount: number | null;
4063
+ } | null;
4064
+ deletedAt: string | null;
4065
+ userId: string;
4066
+ sipServerUrl: string | null;
4067
+ sipUserName: string | null;
4068
+ webphoneLoginUser: string | null;
4069
+ extensionId: string | null;
4070
+ extensionName: string | null;
4071
+ telephonySignature: string | null;
4072
+ createdAt?: string | undefined;
4073
+ updatedAt?: string | undefined;
4074
+ } | null | undefined;
4075
+ }>>;
4076
+ isQueueMissedCall: z.ZodBoolean;
4077
+ extensionId: z.ZodNullable<z.ZodString>;
4078
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4079
+ id: z.ZodString;
4080
+ createdAt: z.ZodDate;
4081
+ updatedAt: z.ZodDate;
4082
+ deletedAt: z.ZodNullable<z.ZodDate>;
4083
+ userId: z.ZodNullable<z.ZodString>;
4084
+ sipServerUrl: z.ZodString;
4085
+ sipUserName: z.ZodString;
4086
+ webphoneLoginUser: z.ZodString;
4087
+ extensionId: z.ZodNullable<z.ZodString>;
4088
+ extensionName: z.ZodString;
4089
+ telephonySignature: z.ZodNullable<z.ZodString>;
4090
+ user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4091
+ id: z.ZodString;
4092
+ createdAt: z.ZodDate;
4093
+ updatedAt: z.ZodDate;
4094
+ deletedAt: z.ZodNullable<z.ZodDate>;
4095
+ name: z.ZodString;
4096
+ email: z.ZodString;
4097
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4098
+ password: z.ZodString;
4099
+ address: z.ZodNullable<z.ZodString>;
4100
+ phone: z.ZodNullable<z.ZodString>;
4101
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4102
+ roles: z.ZodArray<z.ZodObject<{
4103
+ id: z.ZodString;
4104
+ createdAt: z.ZodDate;
4105
+ updatedAt: z.ZodDate;
4106
+ deletedAt: z.ZodNullable<z.ZodDate>;
4107
+ systemName: z.ZodString;
4108
+ displayName: z.ZodString;
4109
+ description: z.ZodNullable<z.ZodString>;
4110
+ permissions: z.ZodArray<z.ZodObject<{
4111
+ id: z.ZodString;
4112
+ createdAt: z.ZodDate;
4113
+ updatedAt: z.ZodDate;
4114
+ deletedAt: z.ZodNullable<z.ZodDate>;
4115
+ systemName: z.ZodString;
4116
+ displayName: z.ZodString;
4117
+ description: z.ZodNullable<z.ZodString>;
4118
+ }, "strip", z.ZodTypeAny, {
4119
+ id: string;
4120
+ description: string | null;
4121
+ createdAt: Date;
4122
+ updatedAt: Date;
4123
+ deletedAt: Date | null;
4124
+ systemName: string;
4125
+ displayName: string;
4126
+ }, {
4127
+ id: string;
4128
+ description: string | null;
4129
+ createdAt: Date;
4130
+ updatedAt: Date;
4131
+ deletedAt: Date | null;
4132
+ systemName: string;
4133
+ displayName: string;
4134
+ }>, "many">;
4135
+ }, "strip", z.ZodTypeAny, {
4136
+ id: string;
4137
+ description: string | null;
4138
+ createdAt: Date;
4139
+ updatedAt: Date;
4140
+ deletedAt: Date | null;
4141
+ systemName: string;
4142
+ displayName: string;
4143
+ permissions: {
3124
4144
  id: string;
3125
4145
  description: string | null;
3126
4146
  createdAt: Date;
@@ -3129,8 +4149,37 @@ export declare const telephonyCdrContract: {
3129
4149
  systemName: string;
3130
4150
  displayName: string;
3131
4151
  }[];
3132
- }[];
3133
- extension: {
4152
+ }, {
4153
+ id: string;
4154
+ description: string | null;
4155
+ createdAt: Date;
4156
+ updatedAt: Date;
4157
+ deletedAt: Date | null;
4158
+ systemName: string;
4159
+ displayName: string;
4160
+ permissions: {
4161
+ id: string;
4162
+ description: string | null;
4163
+ createdAt: Date;
4164
+ updatedAt: Date;
4165
+ deletedAt: Date | null;
4166
+ systemName: string;
4167
+ displayName: string;
4168
+ }[];
4169
+ }>, "many">;
4170
+ extension: z.ZodObject<{
4171
+ id: z.ZodString;
4172
+ createdAt: z.ZodDate;
4173
+ updatedAt: z.ZodDate;
4174
+ deletedAt: z.ZodNullable<z.ZodDate>;
4175
+ userId: z.ZodNullable<z.ZodString>;
4176
+ sipServerUrl: z.ZodString;
4177
+ sipUserName: z.ZodString;
4178
+ webphoneLoginUser: z.ZodString;
4179
+ extensionId: z.ZodNullable<z.ZodString>;
4180
+ extensionName: z.ZodString;
4181
+ telephonySignature: z.ZodNullable<z.ZodString>;
4182
+ }, "strip", z.ZodTypeAny, {
3134
4183
  id: string;
3135
4184
  createdAt: Date;
3136
4185
  updatedAt: Date;
@@ -3142,155 +4191,107 @@ export declare const telephonyCdrContract: {
3142
4191
  extensionId: string | null;
3143
4192
  extensionName: string;
3144
4193
  telephonySignature: string | null;
3145
- };
3146
- } | null | undefined;
3147
- }>>>;
3148
- telephonyQueueId: z.ZodNullable<z.ZodString>;
3149
- contactId: z.ZodNullable<z.ZodString>;
3150
- }, "strip", z.ZodTypeAny, {
3151
- type: string;
3152
- id: string;
3153
- recording: string | null;
3154
- status: string;
3155
- createdAt: Date;
3156
- updatedAt: Date;
3157
- deletedAt: Date | null;
3158
- extensionId: string | null;
3159
- contactId: string | null;
3160
- callFrom: string;
3161
- callTo: string;
3162
- uniqueCallId: string;
3163
- timeStart: string;
3164
- callDuration: number | null;
3165
- talkDuration: number | null;
3166
- srcTrunkName: string | null;
3167
- dstTrunkName: string | null;
3168
- pinCode: string | null;
3169
- didNumber: string | null;
3170
- agentRingTime: number | null;
3171
- uploadId: string | null;
3172
- serialNumber: string | null;
3173
- telephonyQueueId: string | null;
3174
- contact?: {
3175
- id: string;
3176
- channel: string | null;
3177
- address: string | null;
3178
- name: string;
3179
- createdAt: Date;
3180
- updatedAt: Date;
3181
- deletedAt: Date | null;
3182
- customFields: {
4194
+ }, {
4195
+ id: string;
4196
+ createdAt: Date;
4197
+ updatedAt: Date;
4198
+ deletedAt: Date | null;
4199
+ userId: string | null;
4200
+ sipServerUrl: string;
4201
+ sipUserName: string;
4202
+ webphoneLoginUser: string;
4203
+ extensionId: string | null;
4204
+ extensionName: string;
4205
+ telephonySignature: string | null;
4206
+ }>;
4207
+ }, "strip", z.ZodTypeAny, {
3183
4208
  id: string;
4209
+ address: string | null;
4210
+ name: string;
4211
+ email: string;
3184
4212
  createdAt: Date;
3185
4213
  updatedAt: Date;
3186
4214
  deletedAt: Date | null;
3187
- attribute: {
3188
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4215
+ emailVerifiedAt: Date | null;
4216
+ password: string;
4217
+ phone: string | null;
4218
+ notificationCount: number | null;
4219
+ roles: {
3189
4220
  id: string;
3190
- position: number;
4221
+ description: string | null;
3191
4222
  createdAt: Date;
3192
4223
  updatedAt: Date;
3193
4224
  deletedAt: Date | null;
3194
4225
  systemName: string;
3195
4226
  displayName: string;
3196
- isDefault: boolean;
3197
- isArchived: boolean;
3198
- isRequired: boolean;
3199
- isUnique: boolean;
3200
- };
3201
- textValue: string | null;
3202
- booleanValue: boolean | null;
3203
- numberValue: number | null;
3204
- dateValue: Date | null;
3205
- uploads: {
4227
+ permissions: {
4228
+ id: string;
4229
+ description: string | null;
4230
+ createdAt: Date;
4231
+ updatedAt: Date;
4232
+ deletedAt: Date | null;
4233
+ systemName: string;
4234
+ displayName: string;
4235
+ }[];
4236
+ }[];
4237
+ extension: {
3206
4238
  id: string;
3207
4239
  createdAt: Date;
3208
4240
  updatedAt: Date;
3209
4241
  deletedAt: Date | null;
3210
- fileName: string;
3211
- fileKey: string;
3212
- bucketName: string;
3213
- fileSize: number;
3214
- fileUrl: string | null;
3215
- status?: string | undefined;
3216
- }[];
3217
- }[];
3218
- company: {
3219
- id: string;
3220
- createdAt: Date;
3221
- updatedAt: Date;
3222
- deletedAt: Date | null;
3223
- address?: string | null | undefined;
3224
- name?: string | undefined;
3225
- phone?: string | null | undefined;
3226
- industry?: string | null | undefined;
3227
- } | null;
3228
- notes: string | null;
3229
- contactProfile: string | null;
3230
- socialProfileUrl: string | null;
3231
- tags: {
4242
+ userId: string | null;
4243
+ sipServerUrl: string;
4244
+ sipUserName: string;
4245
+ webphoneLoginUser: string;
4246
+ extensionId: string | null;
4247
+ extensionName: string;
4248
+ telephonySignature: string | null;
4249
+ };
4250
+ }, {
3232
4251
  id: string;
4252
+ address: string | null;
3233
4253
  name: string;
3234
- createdAt: Date;
3235
- updatedAt: Date;
3236
- deletedAt: Date | null;
3237
- }[];
3238
- contactEmails: {
3239
- id: string;
3240
- isPrimary: boolean;
3241
4254
  email: string;
3242
4255
  createdAt: Date;
3243
4256
  updatedAt: Date;
3244
4257
  deletedAt: Date | null;
3245
- }[];
3246
- contactPhones: {
3247
- id: string;
3248
- isPrimary: boolean;
3249
- createdAt: Date;
3250
- updatedAt: Date;
3251
- deletedAt: Date | null;
3252
- phone: string;
3253
- }[];
3254
- activityLogs?: {
3255
- id: string;
3256
- description: string;
3257
- createdAt: Date;
3258
- updatedAt: Date;
3259
- deletedAt: Date | null;
3260
- entityId: string;
3261
- entityType: {
4258
+ emailVerifiedAt: Date | null;
4259
+ password: string;
4260
+ phone: string | null;
4261
+ notificationCount: number | null;
4262
+ roles: {
3262
4263
  id: string;
3263
4264
  description: string | null;
3264
4265
  createdAt: Date;
3265
4266
  updatedAt: Date;
3266
4267
  deletedAt: Date | null;
3267
- entity: string;
4268
+ systemName: string;
4269
+ displayName: string;
4270
+ permissions: {
4271
+ id: string;
4272
+ description: string | null;
4273
+ createdAt: Date;
4274
+ updatedAt: Date;
4275
+ deletedAt: Date | null;
4276
+ systemName: string;
4277
+ displayName: string;
4278
+ }[];
4279
+ }[];
4280
+ extension: {
4281
+ id: string;
4282
+ createdAt: Date;
4283
+ updatedAt: Date;
4284
+ deletedAt: Date | null;
4285
+ userId: string | null;
4286
+ sipServerUrl: string;
4287
+ sipUserName: string;
4288
+ webphoneLoginUser: string;
4289
+ extensionId: string | null;
4290
+ extensionName: string;
4291
+ telephonySignature: string | null;
3268
4292
  };
3269
- }[] | undefined;
3270
- } | undefined;
3271
- telephonyQueue?: {
3272
- id: string;
3273
- createdAt: Date;
3274
- updatedAt: Date;
3275
- deletedAt: Date | null;
3276
- queueId: number;
3277
- queueName: string;
3278
- queueNumber: string;
3279
- maximumWaitingTime: number;
3280
- } | null | undefined;
3281
- upload?: {
3282
- id: string;
3283
- createdAt: Date;
3284
- updatedAt: Date;
3285
- deletedAt: Date | null;
3286
- fileName: string;
3287
- fileKey: string;
3288
- bucketName: string;
3289
- fileSize: number;
3290
- fileUrl: string | null;
3291
- status?: string | undefined;
3292
- } | null | undefined;
3293
- extension?: {
4293
+ }>>>;
4294
+ }, "strip", z.ZodTypeAny, {
3294
4295
  id: string;
3295
4296
  createdAt: Date;
3296
4297
  updatedAt: Date;
@@ -3346,8 +4347,66 @@ export declare const telephonyCdrContract: {
3346
4347
  telephonySignature: string | null;
3347
4348
  };
3348
4349
  } | null | undefined;
3349
- } | null | undefined;
3350
- }, {
4350
+ }, {
4351
+ id: string;
4352
+ createdAt: Date;
4353
+ updatedAt: Date;
4354
+ deletedAt: Date | null;
4355
+ userId: string | null;
4356
+ sipServerUrl: string;
4357
+ sipUserName: string;
4358
+ webphoneLoginUser: string;
4359
+ extensionId: string | null;
4360
+ extensionName: string;
4361
+ telephonySignature: string | null;
4362
+ user?: {
4363
+ id: string;
4364
+ address: string | null;
4365
+ name: string;
4366
+ email: string;
4367
+ createdAt: Date;
4368
+ updatedAt: Date;
4369
+ deletedAt: Date | null;
4370
+ emailVerifiedAt: Date | null;
4371
+ password: string;
4372
+ phone: string | null;
4373
+ notificationCount: number | null;
4374
+ roles: {
4375
+ id: string;
4376
+ description: string | null;
4377
+ createdAt: Date;
4378
+ updatedAt: Date;
4379
+ deletedAt: Date | null;
4380
+ systemName: string;
4381
+ displayName: string;
4382
+ permissions: {
4383
+ id: string;
4384
+ description: string | null;
4385
+ createdAt: Date;
4386
+ updatedAt: Date;
4387
+ deletedAt: Date | null;
4388
+ systemName: string;
4389
+ displayName: string;
4390
+ }[];
4391
+ }[];
4392
+ extension: {
4393
+ id: string;
4394
+ createdAt: Date;
4395
+ updatedAt: Date;
4396
+ deletedAt: Date | null;
4397
+ userId: string | null;
4398
+ sipServerUrl: string;
4399
+ sipUserName: string;
4400
+ webphoneLoginUser: string;
4401
+ extensionId: string | null;
4402
+ extensionName: string;
4403
+ telephonySignature: string | null;
4404
+ };
4405
+ } | null | undefined;
4406
+ }>>>;
4407
+ telephonyQueueId: z.ZodNullable<z.ZodString>;
4408
+ contactId: z.ZodNullable<z.ZodString>;
4409
+ }, "strip", z.ZodTypeAny, {
3351
4410
  type: string;
3352
4411
  id: string;
3353
4412
  recording: string | null;
@@ -3356,11 +4415,10 @@ export declare const telephonyCdrContract: {
3356
4415
  updatedAt: Date;
3357
4416
  deletedAt: Date | null;
3358
4417
  extensionId: string | null;
3359
- contactId: string | null;
3360
- callFrom: string;
3361
- callTo: string;
3362
4418
  uniqueCallId: string;
3363
4419
  timeStart: string;
4420
+ callFrom: string;
4421
+ callTo: string;
3364
4422
  callDuration: number | null;
3365
4423
  talkDuration: number | null;
3366
4424
  srcTrunkName: string | null;
@@ -3370,7 +4428,63 @@ export declare const telephonyCdrContract: {
3370
4428
  agentRingTime: number | null;
3371
4429
  uploadId: string | null;
3372
4430
  serialNumber: string | null;
4431
+ callParticipants: {
4432
+ callTo?: {
4433
+ id: string;
4434
+ user: {
4435
+ id: string;
4436
+ address: string | null;
4437
+ name: string;
4438
+ email: string;
4439
+ createdAt: Date;
4440
+ updatedAt: Date;
4441
+ deletedAt: Date | null;
4442
+ emailVerifiedAt: Date | null;
4443
+ password: string;
4444
+ phone: string | null;
4445
+ notificationCount: number | null;
4446
+ } | null;
4447
+ deletedAt: string | null;
4448
+ userId: string;
4449
+ sipServerUrl: string | null;
4450
+ sipUserName: string | null;
4451
+ webphoneLoginUser: string | null;
4452
+ extensionId: string | null;
4453
+ extensionName: string | null;
4454
+ telephonySignature: string | null;
4455
+ createdAt?: string | undefined;
4456
+ updatedAt?: string | undefined;
4457
+ } | null | undefined;
4458
+ callFrom?: {
4459
+ id: string;
4460
+ user: {
4461
+ id: string;
4462
+ address: string | null;
4463
+ name: string;
4464
+ email: string;
4465
+ createdAt: Date;
4466
+ updatedAt: Date;
4467
+ deletedAt: Date | null;
4468
+ emailVerifiedAt: Date | null;
4469
+ password: string;
4470
+ phone: string | null;
4471
+ notificationCount: number | null;
4472
+ } | null;
4473
+ deletedAt: string | null;
4474
+ userId: string;
4475
+ sipServerUrl: string | null;
4476
+ sipUserName: string | null;
4477
+ webphoneLoginUser: string | null;
4478
+ extensionId: string | null;
4479
+ extensionName: string | null;
4480
+ telephonySignature: string | null;
4481
+ createdAt?: string | undefined;
4482
+ updatedAt?: string | undefined;
4483
+ } | null | undefined;
4484
+ } | null;
4485
+ isQueueMissedCall: boolean;
3373
4486
  telephonyQueueId: string | null;
4487
+ contactId: string | null;
3374
4488
  contact?: {
3375
4489
  id: string;
3376
4490
  channel: string | null;
@@ -3547,13 +4661,7 @@ export declare const telephonyCdrContract: {
3547
4661
  };
3548
4662
  } | null | undefined;
3549
4663
  } | null | undefined;
3550
- }>, "many">;
3551
- }, "strip", z.ZodTypeAny, {
3552
- total: number;
3553
- page: number;
3554
- pageSize: number;
3555
- requestId: string;
3556
- telephonyCdrs: {
4664
+ }, {
3557
4665
  type: string;
3558
4666
  id: string;
3559
4667
  recording: string | null;
@@ -3562,11 +4670,10 @@ export declare const telephonyCdrContract: {
3562
4670
  updatedAt: Date;
3563
4671
  deletedAt: Date | null;
3564
4672
  extensionId: string | null;
3565
- contactId: string | null;
3566
- callFrom: string;
3567
- callTo: string;
3568
4673
  uniqueCallId: string;
3569
4674
  timeStart: string;
4675
+ callFrom: string;
4676
+ callTo: string;
3570
4677
  callDuration: number | null;
3571
4678
  talkDuration: number | null;
3572
4679
  srcTrunkName: string | null;
@@ -3576,7 +4683,63 @@ export declare const telephonyCdrContract: {
3576
4683
  agentRingTime: number | null;
3577
4684
  uploadId: string | null;
3578
4685
  serialNumber: string | null;
4686
+ callParticipants: {
4687
+ callTo?: {
4688
+ id: string;
4689
+ user: {
4690
+ id: string;
4691
+ address: string | null;
4692
+ name: string;
4693
+ email: string;
4694
+ createdAt: Date;
4695
+ updatedAt: Date;
4696
+ deletedAt: Date | null;
4697
+ emailVerifiedAt: Date | null;
4698
+ password: string;
4699
+ phone: string | null;
4700
+ notificationCount: number | null;
4701
+ } | null;
4702
+ deletedAt: string | null;
4703
+ userId: string;
4704
+ sipServerUrl: string | null;
4705
+ sipUserName: string | null;
4706
+ webphoneLoginUser: string | null;
4707
+ extensionId: string | null;
4708
+ extensionName: string | null;
4709
+ telephonySignature: string | null;
4710
+ createdAt?: string | undefined;
4711
+ updatedAt?: string | undefined;
4712
+ } | null | undefined;
4713
+ callFrom?: {
4714
+ id: string;
4715
+ user: {
4716
+ id: string;
4717
+ address: string | null;
4718
+ name: string;
4719
+ email: string;
4720
+ createdAt: Date;
4721
+ updatedAt: Date;
4722
+ deletedAt: Date | null;
4723
+ emailVerifiedAt: Date | null;
4724
+ password: string;
4725
+ phone: string | null;
4726
+ notificationCount: number | null;
4727
+ } | null;
4728
+ deletedAt: string | null;
4729
+ userId: string;
4730
+ sipServerUrl: string | null;
4731
+ sipUserName: string | null;
4732
+ webphoneLoginUser: string | null;
4733
+ extensionId: string | null;
4734
+ extensionName: string | null;
4735
+ telephonySignature: string | null;
4736
+ createdAt?: string | undefined;
4737
+ updatedAt?: string | undefined;
4738
+ } | null | undefined;
4739
+ } | null;
4740
+ isQueueMissedCall: boolean;
3579
4741
  telephonyQueueId: string | null;
4742
+ contactId: string | null;
3580
4743
  contact?: {
3581
4744
  id: string;
3582
4745
  channel: string | null;
@@ -3753,8 +4916,8 @@ export declare const telephonyCdrContract: {
3753
4916
  };
3754
4917
  } | null | undefined;
3755
4918
  } | null | undefined;
3756
- }[];
3757
- }, {
4919
+ }>, "many">;
4920
+ }, "strip", z.ZodTypeAny, {
3758
4921
  total: number;
3759
4922
  page: number;
3760
4923
  pageSize: number;
@@ -3768,11 +4931,10 @@ export declare const telephonyCdrContract: {
3768
4931
  updatedAt: Date;
3769
4932
  deletedAt: Date | null;
3770
4933
  extensionId: string | null;
3771
- contactId: string | null;
3772
- callFrom: string;
3773
- callTo: string;
3774
4934
  uniqueCallId: string;
3775
4935
  timeStart: string;
4936
+ callFrom: string;
4937
+ callTo: string;
3776
4938
  callDuration: number | null;
3777
4939
  talkDuration: number | null;
3778
4940
  srcTrunkName: string | null;
@@ -3782,7 +4944,63 @@ export declare const telephonyCdrContract: {
3782
4944
  agentRingTime: number | null;
3783
4945
  uploadId: string | null;
3784
4946
  serialNumber: string | null;
4947
+ callParticipants: {
4948
+ callTo?: {
4949
+ id: string;
4950
+ user: {
4951
+ id: string;
4952
+ address: string | null;
4953
+ name: string;
4954
+ email: string;
4955
+ createdAt: Date;
4956
+ updatedAt: Date;
4957
+ deletedAt: Date | null;
4958
+ emailVerifiedAt: Date | null;
4959
+ password: string;
4960
+ phone: string | null;
4961
+ notificationCount: number | null;
4962
+ } | null;
4963
+ deletedAt: string | null;
4964
+ userId: string;
4965
+ sipServerUrl: string | null;
4966
+ sipUserName: string | null;
4967
+ webphoneLoginUser: string | null;
4968
+ extensionId: string | null;
4969
+ extensionName: string | null;
4970
+ telephonySignature: string | null;
4971
+ createdAt?: string | undefined;
4972
+ updatedAt?: string | undefined;
4973
+ } | null | undefined;
4974
+ callFrom?: {
4975
+ id: string;
4976
+ user: {
4977
+ id: string;
4978
+ address: string | null;
4979
+ name: string;
4980
+ email: string;
4981
+ createdAt: Date;
4982
+ updatedAt: Date;
4983
+ deletedAt: Date | null;
4984
+ emailVerifiedAt: Date | null;
4985
+ password: string;
4986
+ phone: string | null;
4987
+ notificationCount: number | null;
4988
+ } | null;
4989
+ deletedAt: string | null;
4990
+ userId: string;
4991
+ sipServerUrl: string | null;
4992
+ sipUserName: string | null;
4993
+ webphoneLoginUser: string | null;
4994
+ extensionId: string | null;
4995
+ extensionName: string | null;
4996
+ telephonySignature: string | null;
4997
+ createdAt?: string | undefined;
4998
+ updatedAt?: string | undefined;
4999
+ } | null | undefined;
5000
+ } | null;
5001
+ isQueueMissedCall: boolean;
3785
5002
  telephonyQueueId: string | null;
5003
+ contactId: string | null;
3786
5004
  contact?: {
3787
5005
  id: string;
3788
5006
  channel: string | null;
@@ -3960,123 +5178,384 @@ export declare const telephonyCdrContract: {
3960
5178
  } | null | undefined;
3961
5179
  } | null | undefined;
3962
5180
  }[];
3963
- }>;
3964
- 401: z.ZodObject<{
3965
- message: z.ZodString;
3966
- error: z.ZodAny;
3967
- }, "strip", z.ZodTypeAny, {
3968
- message: string;
3969
- error?: any;
3970
5181
  }, {
3971
- message: string;
3972
- error?: any;
3973
- }>;
3974
- };
3975
- path: "telephony-cdr/recordings";
3976
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3977
- 'x-tenant': z.ZodString;
3978
- authorization: z.ZodString;
3979
- 'x-code': z.ZodOptional<z.ZodString>;
3980
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
3981
- }, "strip", z.ZodTypeAny, {
3982
- 'x-tenant': string;
3983
- authorization: string;
3984
- 'x-client-timezone': string;
3985
- 'x-code'?: string | undefined;
3986
- }, {
3987
- 'x-tenant': string;
3988
- authorization: string;
3989
- 'x-code'?: string | undefined;
3990
- 'x-client-timezone'?: string | undefined;
3991
- }>>>;
3992
- };
3993
- getRecentCall: {
3994
- summary: "Get recent telephony cdr.";
3995
- method: "GET";
3996
- query: z.ZodObject<{
3997
- page: z.ZodDefault<z.ZodNumber>;
3998
- pageSize: z.ZodDefault<z.ZodNumber>;
3999
- type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4000
- status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4001
- callFrom: z.ZodOptional<z.ZodString>;
4002
- callTo: z.ZodOptional<z.ZodString>;
4003
- result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4004
- callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4005
- selectedDate: z.ZodOptional<z.ZodString>;
4006
- agentId: z.ZodOptional<z.ZodString>;
4007
- contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4008
- callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
4009
- queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4010
- notes: z.ZodOptional<z.ZodString>;
4011
- }, "strip", z.ZodTypeAny, {
4012
- page: number;
4013
- pageSize: number;
4014
- type?: string[] | undefined;
4015
- status?: string[] | undefined;
4016
- callFrom?: string | undefined;
4017
- callTo?: string | undefined;
4018
- result?: string[] | undefined;
4019
- callTags?: string[] | undefined;
4020
- selectedDate?: string | undefined;
4021
- agentId?: string | undefined;
4022
- contact?: string[] | undefined;
4023
- callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
4024
- queueIds?: string[] | undefined;
4025
- notes?: string | undefined;
4026
- }, {
4027
- page?: number | undefined;
4028
- pageSize?: number | undefined;
4029
- type?: string[] | undefined;
4030
- status?: string[] | undefined;
4031
- callFrom?: string | undefined;
4032
- callTo?: string | undefined;
4033
- result?: string[] | undefined;
4034
- callTags?: string[] | undefined;
4035
- selectedDate?: string | undefined;
4036
- agentId?: string | undefined;
4037
- contact?: string[] | undefined;
4038
- callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
4039
- queueIds?: string[] | undefined;
4040
- notes?: string | undefined;
4041
- }>;
4042
- responses: {
4043
- 200: z.ZodObject<{
4044
- requestId: z.ZodString;
4045
- total: z.ZodNumber;
4046
- page: z.ZodNumber;
4047
- pageSize: z.ZodNumber;
4048
- telephonyCdrs: z.ZodArray<z.ZodObject<{
4049
- id: z.ZodString;
4050
- createdAt: z.ZodDate;
4051
- updatedAt: z.ZodDate;
4052
- deletedAt: z.ZodNullable<z.ZodDate>;
4053
- uniqueCallId: z.ZodString;
4054
- timeStart: z.ZodString;
4055
- callFrom: z.ZodString;
4056
- callTo: z.ZodString;
4057
- callDuration: z.ZodNullable<z.ZodNumber>;
4058
- talkDuration: z.ZodNullable<z.ZodNumber>;
4059
- srcTrunkName: z.ZodNullable<z.ZodString>;
4060
- dstTrunkName: z.ZodNullable<z.ZodString>;
4061
- contact: z.ZodOptional<z.ZodObject<{
4062
- id: z.ZodString;
4063
- createdAt: z.ZodDate;
4064
- updatedAt: z.ZodDate;
4065
- deletedAt: z.ZodNullable<z.ZodDate>;
4066
- name: z.ZodString;
4067
- address: z.ZodNullable<z.ZodString>;
4068
- channel: z.ZodNullable<z.ZodString>;
4069
- notes: z.ZodNullable<z.ZodString>;
4070
- contactProfile: z.ZodNullable<z.ZodString>;
4071
- socialProfileUrl: z.ZodNullable<z.ZodString>;
4072
- tags: z.ZodArray<z.ZodObject<{
4073
- id: z.ZodString;
4074
- createdAt: z.ZodDate;
4075
- updatedAt: z.ZodDate;
4076
- deletedAt: z.ZodNullable<z.ZodDate>;
4077
- name: z.ZodString;
4078
- }, "strip", z.ZodTypeAny, {
4079
- id: string;
5182
+ total: number;
5183
+ page: number;
5184
+ pageSize: number;
5185
+ requestId: string;
5186
+ telephonyCdrs: {
5187
+ type: string;
5188
+ id: string;
5189
+ recording: string | null;
5190
+ status: string;
5191
+ createdAt: Date;
5192
+ updatedAt: Date;
5193
+ deletedAt: Date | null;
5194
+ extensionId: string | null;
5195
+ uniqueCallId: string;
5196
+ timeStart: string;
5197
+ callFrom: string;
5198
+ callTo: string;
5199
+ callDuration: number | null;
5200
+ talkDuration: number | null;
5201
+ srcTrunkName: string | null;
5202
+ dstTrunkName: string | null;
5203
+ pinCode: string | null;
5204
+ didNumber: string | null;
5205
+ agentRingTime: number | null;
5206
+ uploadId: string | null;
5207
+ serialNumber: string | null;
5208
+ callParticipants: {
5209
+ callTo?: {
5210
+ id: string;
5211
+ user: {
5212
+ id: string;
5213
+ address: string | null;
5214
+ name: string;
5215
+ email: string;
5216
+ createdAt: Date;
5217
+ updatedAt: Date;
5218
+ deletedAt: Date | null;
5219
+ emailVerifiedAt: Date | null;
5220
+ password: string;
5221
+ phone: string | null;
5222
+ notificationCount: number | null;
5223
+ } | null;
5224
+ deletedAt: string | null;
5225
+ userId: string;
5226
+ sipServerUrl: string | null;
5227
+ sipUserName: string | null;
5228
+ webphoneLoginUser: string | null;
5229
+ extensionId: string | null;
5230
+ extensionName: string | null;
5231
+ telephonySignature: string | null;
5232
+ createdAt?: string | undefined;
5233
+ updatedAt?: string | undefined;
5234
+ } | null | undefined;
5235
+ callFrom?: {
5236
+ id: string;
5237
+ user: {
5238
+ id: string;
5239
+ address: string | null;
5240
+ name: string;
5241
+ email: string;
5242
+ createdAt: Date;
5243
+ updatedAt: Date;
5244
+ deletedAt: Date | null;
5245
+ emailVerifiedAt: Date | null;
5246
+ password: string;
5247
+ phone: string | null;
5248
+ notificationCount: number | null;
5249
+ } | null;
5250
+ deletedAt: string | null;
5251
+ userId: string;
5252
+ sipServerUrl: string | null;
5253
+ sipUserName: string | null;
5254
+ webphoneLoginUser: string | null;
5255
+ extensionId: string | null;
5256
+ extensionName: string | null;
5257
+ telephonySignature: string | null;
5258
+ createdAt?: string | undefined;
5259
+ updatedAt?: string | undefined;
5260
+ } | null | undefined;
5261
+ } | null;
5262
+ isQueueMissedCall: boolean;
5263
+ telephonyQueueId: string | null;
5264
+ contactId: string | null;
5265
+ contact?: {
5266
+ id: string;
5267
+ channel: string | null;
5268
+ address: string | null;
5269
+ name: string;
5270
+ createdAt: Date;
5271
+ updatedAt: Date;
5272
+ deletedAt: Date | null;
5273
+ customFields: {
5274
+ id: string;
5275
+ createdAt: Date;
5276
+ updatedAt: Date;
5277
+ deletedAt: Date | null;
5278
+ attribute: {
5279
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5280
+ id: string;
5281
+ position: number;
5282
+ createdAt: Date;
5283
+ updatedAt: Date;
5284
+ deletedAt: Date | null;
5285
+ systemName: string;
5286
+ displayName: string;
5287
+ isDefault: boolean;
5288
+ isArchived: boolean;
5289
+ isRequired: boolean;
5290
+ isUnique: boolean;
5291
+ };
5292
+ textValue: string | null;
5293
+ booleanValue: boolean | null;
5294
+ numberValue: number | null;
5295
+ dateValue: Date | null;
5296
+ uploads: {
5297
+ id: string;
5298
+ createdAt: Date;
5299
+ updatedAt: Date;
5300
+ deletedAt: Date | null;
5301
+ fileName: string;
5302
+ fileKey: string;
5303
+ bucketName: string;
5304
+ fileSize: number;
5305
+ fileUrl: string | null;
5306
+ status?: string | undefined;
5307
+ }[];
5308
+ }[];
5309
+ company: {
5310
+ id: string;
5311
+ createdAt: Date;
5312
+ updatedAt: Date;
5313
+ deletedAt: Date | null;
5314
+ address?: string | null | undefined;
5315
+ name?: string | undefined;
5316
+ phone?: string | null | undefined;
5317
+ industry?: string | null | undefined;
5318
+ } | null;
5319
+ notes: string | null;
5320
+ contactProfile: string | null;
5321
+ socialProfileUrl: string | null;
5322
+ tags: {
5323
+ id: string;
5324
+ name: string;
5325
+ createdAt: Date;
5326
+ updatedAt: Date;
5327
+ deletedAt: Date | null;
5328
+ }[];
5329
+ contactEmails: {
5330
+ id: string;
5331
+ isPrimary: boolean;
5332
+ email: string;
5333
+ createdAt: Date;
5334
+ updatedAt: Date;
5335
+ deletedAt: Date | null;
5336
+ }[];
5337
+ contactPhones: {
5338
+ id: string;
5339
+ isPrimary: boolean;
5340
+ createdAt: Date;
5341
+ updatedAt: Date;
5342
+ deletedAt: Date | null;
5343
+ phone: string;
5344
+ }[];
5345
+ activityLogs?: {
5346
+ id: string;
5347
+ description: string;
5348
+ createdAt: Date;
5349
+ updatedAt: Date;
5350
+ deletedAt: Date | null;
5351
+ entityId: string;
5352
+ entityType: {
5353
+ id: string;
5354
+ description: string | null;
5355
+ createdAt: Date;
5356
+ updatedAt: Date;
5357
+ deletedAt: Date | null;
5358
+ entity: string;
5359
+ };
5360
+ }[] | undefined;
5361
+ } | undefined;
5362
+ telephonyQueue?: {
5363
+ id: string;
5364
+ createdAt: Date;
5365
+ updatedAt: Date;
5366
+ deletedAt: Date | null;
5367
+ queueId: number;
5368
+ queueName: string;
5369
+ queueNumber: string;
5370
+ maximumWaitingTime: number;
5371
+ } | null | undefined;
5372
+ upload?: {
5373
+ id: string;
5374
+ createdAt: Date;
5375
+ updatedAt: Date;
5376
+ deletedAt: Date | null;
5377
+ fileName: string;
5378
+ fileKey: string;
5379
+ bucketName: string;
5380
+ fileSize: number;
5381
+ fileUrl: string | null;
5382
+ status?: string | undefined;
5383
+ } | null | undefined;
5384
+ extension?: {
5385
+ id: string;
5386
+ createdAt: Date;
5387
+ updatedAt: Date;
5388
+ deletedAt: Date | null;
5389
+ userId: string | null;
5390
+ sipServerUrl: string;
5391
+ sipUserName: string;
5392
+ webphoneLoginUser: string;
5393
+ extensionId: string | null;
5394
+ extensionName: string;
5395
+ telephonySignature: string | null;
5396
+ user?: {
5397
+ id: string;
5398
+ address: string | null;
5399
+ name: string;
5400
+ email: string;
5401
+ createdAt: Date;
5402
+ updatedAt: Date;
5403
+ deletedAt: Date | null;
5404
+ emailVerifiedAt: Date | null;
5405
+ password: string;
5406
+ phone: string | null;
5407
+ notificationCount: number | null;
5408
+ roles: {
5409
+ id: string;
5410
+ description: string | null;
5411
+ createdAt: Date;
5412
+ updatedAt: Date;
5413
+ deletedAt: Date | null;
5414
+ systemName: string;
5415
+ displayName: string;
5416
+ permissions: {
5417
+ id: string;
5418
+ description: string | null;
5419
+ createdAt: Date;
5420
+ updatedAt: Date;
5421
+ deletedAt: Date | null;
5422
+ systemName: string;
5423
+ displayName: string;
5424
+ }[];
5425
+ }[];
5426
+ extension: {
5427
+ id: string;
5428
+ createdAt: Date;
5429
+ updatedAt: Date;
5430
+ deletedAt: Date | null;
5431
+ userId: string | null;
5432
+ sipServerUrl: string;
5433
+ sipUserName: string;
5434
+ webphoneLoginUser: string;
5435
+ extensionId: string | null;
5436
+ extensionName: string;
5437
+ telephonySignature: string | null;
5438
+ };
5439
+ } | null | undefined;
5440
+ } | null | undefined;
5441
+ }[];
5442
+ }>;
5443
+ 401: z.ZodObject<{
5444
+ message: z.ZodString;
5445
+ error: z.ZodAny;
5446
+ }, "strip", z.ZodTypeAny, {
5447
+ message: string;
5448
+ error?: any;
5449
+ }, {
5450
+ message: string;
5451
+ error?: any;
5452
+ }>;
5453
+ };
5454
+ path: "telephony-cdr/recordings";
5455
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5456
+ 'x-tenant': z.ZodString;
5457
+ authorization: z.ZodString;
5458
+ 'x-code': z.ZodOptional<z.ZodString>;
5459
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
5460
+ }, "strip", z.ZodTypeAny, {
5461
+ 'x-tenant': string;
5462
+ authorization: string;
5463
+ 'x-client-timezone': string;
5464
+ 'x-code'?: string | undefined;
5465
+ }, {
5466
+ 'x-tenant': string;
5467
+ authorization: string;
5468
+ 'x-code'?: string | undefined;
5469
+ 'x-client-timezone'?: string | undefined;
5470
+ }>>>;
5471
+ };
5472
+ getRecentCall: {
5473
+ summary: "Get recent telephony cdr.";
5474
+ method: "GET";
5475
+ query: z.ZodObject<{
5476
+ page: z.ZodDefault<z.ZodNumber>;
5477
+ pageSize: z.ZodDefault<z.ZodNumber>;
5478
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5479
+ status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5480
+ callFrom: z.ZodOptional<z.ZodString>;
5481
+ callTo: z.ZodOptional<z.ZodString>;
5482
+ result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5483
+ callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5484
+ selectedDate: z.ZodOptional<z.ZodString>;
5485
+ agentId: z.ZodOptional<z.ZodString>;
5486
+ contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5487
+ callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
5488
+ queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5489
+ notes: z.ZodOptional<z.ZodString>;
5490
+ }, "strip", z.ZodTypeAny, {
5491
+ page: number;
5492
+ pageSize: number;
5493
+ type?: string[] | undefined;
5494
+ status?: string[] | undefined;
5495
+ callFrom?: string | undefined;
5496
+ callTo?: string | undefined;
5497
+ result?: string[] | undefined;
5498
+ callTags?: string[] | undefined;
5499
+ selectedDate?: string | undefined;
5500
+ agentId?: string | undefined;
5501
+ contact?: string[] | undefined;
5502
+ callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
5503
+ queueIds?: string[] | undefined;
5504
+ notes?: string | undefined;
5505
+ }, {
5506
+ page?: number | undefined;
5507
+ pageSize?: number | undefined;
5508
+ type?: string[] | undefined;
5509
+ status?: string[] | undefined;
5510
+ callFrom?: string | undefined;
5511
+ callTo?: string | undefined;
5512
+ result?: string[] | undefined;
5513
+ callTags?: string[] | undefined;
5514
+ selectedDate?: string | undefined;
5515
+ agentId?: string | undefined;
5516
+ contact?: string[] | undefined;
5517
+ callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
5518
+ queueIds?: string[] | undefined;
5519
+ notes?: string | undefined;
5520
+ }>;
5521
+ responses: {
5522
+ 200: z.ZodObject<{
5523
+ requestId: z.ZodString;
5524
+ total: z.ZodNumber;
5525
+ page: z.ZodNumber;
5526
+ pageSize: z.ZodNumber;
5527
+ telephonyCdrs: z.ZodArray<z.ZodObject<{
5528
+ id: z.ZodString;
5529
+ createdAt: z.ZodDate;
5530
+ updatedAt: z.ZodDate;
5531
+ deletedAt: z.ZodNullable<z.ZodDate>;
5532
+ uniqueCallId: z.ZodString;
5533
+ timeStart: z.ZodString;
5534
+ callFrom: z.ZodString;
5535
+ callTo: z.ZodString;
5536
+ callDuration: z.ZodNullable<z.ZodNumber>;
5537
+ talkDuration: z.ZodNullable<z.ZodNumber>;
5538
+ srcTrunkName: z.ZodNullable<z.ZodString>;
5539
+ dstTrunkName: z.ZodNullable<z.ZodString>;
5540
+ contact: z.ZodOptional<z.ZodObject<{
5541
+ id: z.ZodString;
5542
+ createdAt: z.ZodDate;
5543
+ updatedAt: z.ZodDate;
5544
+ deletedAt: z.ZodNullable<z.ZodDate>;
5545
+ name: z.ZodString;
5546
+ address: z.ZodNullable<z.ZodString>;
5547
+ channel: z.ZodNullable<z.ZodString>;
5548
+ notes: z.ZodNullable<z.ZodString>;
5549
+ contactProfile: z.ZodNullable<z.ZodString>;
5550
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
5551
+ tags: z.ZodArray<z.ZodObject<{
5552
+ id: z.ZodString;
5553
+ createdAt: z.ZodDate;
5554
+ updatedAt: z.ZodDate;
5555
+ deletedAt: z.ZodNullable<z.ZodDate>;
5556
+ name: z.ZodString;
5557
+ }, "strip", z.ZodTypeAny, {
5558
+ id: string;
4080
5559
  name: string;
4081
5560
  createdAt: Date;
4082
5561
  updatedAt: Date;
@@ -4370,14 +5849,197 @@ export declare const telephonyCdrContract: {
4370
5849
  createdAt: Date;
4371
5850
  updatedAt: Date;
4372
5851
  deletedAt: Date | null;
4373
- fileName: string;
4374
- fileKey: string;
4375
- bucketName: string;
4376
- fileSize: number;
4377
- fileUrl: string | null;
4378
- status?: string | undefined;
4379
- }>, "many">;
4380
- }, "strip", z.ZodTypeAny, {
5852
+ fileName: string;
5853
+ fileKey: string;
5854
+ bucketName: string;
5855
+ fileSize: number;
5856
+ fileUrl: string | null;
5857
+ status?: string | undefined;
5858
+ }>, "many">;
5859
+ }, "strip", z.ZodTypeAny, {
5860
+ id: string;
5861
+ createdAt: Date;
5862
+ updatedAt: Date;
5863
+ deletedAt: Date | null;
5864
+ attribute: {
5865
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5866
+ id: string;
5867
+ position: number;
5868
+ createdAt: Date;
5869
+ updatedAt: Date;
5870
+ deletedAt: Date | null;
5871
+ systemName: string;
5872
+ displayName: string;
5873
+ isDefault: boolean;
5874
+ isArchived: boolean;
5875
+ isRequired: boolean;
5876
+ isUnique: boolean;
5877
+ };
5878
+ textValue: string | null;
5879
+ booleanValue: boolean | null;
5880
+ numberValue: number | null;
5881
+ dateValue: Date | null;
5882
+ uploads: {
5883
+ id: string;
5884
+ createdAt: Date;
5885
+ updatedAt: Date;
5886
+ deletedAt: Date | null;
5887
+ fileName: string;
5888
+ fileKey: string;
5889
+ bucketName: string;
5890
+ fileSize: number;
5891
+ fileUrl: string | null;
5892
+ status?: string | undefined;
5893
+ }[];
5894
+ }, {
5895
+ id: string;
5896
+ createdAt: Date;
5897
+ updatedAt: Date;
5898
+ deletedAt: Date | null;
5899
+ attribute: {
5900
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5901
+ id: string;
5902
+ position: number;
5903
+ createdAt: Date;
5904
+ updatedAt: Date;
5905
+ deletedAt: Date | null;
5906
+ systemName: string;
5907
+ displayName: string;
5908
+ isDefault: boolean;
5909
+ isArchived: boolean;
5910
+ isRequired: boolean;
5911
+ isUnique: boolean;
5912
+ };
5913
+ textValue: string | null;
5914
+ booleanValue: boolean | null;
5915
+ numberValue: number | null;
5916
+ dateValue: Date | null;
5917
+ uploads: {
5918
+ id: string;
5919
+ createdAt: Date;
5920
+ updatedAt: Date;
5921
+ deletedAt: Date | null;
5922
+ fileName: string;
5923
+ fileKey: string;
5924
+ bucketName: string;
5925
+ fileSize: number;
5926
+ fileUrl: string | null;
5927
+ status?: string | undefined;
5928
+ }[];
5929
+ }>, "many">;
5930
+ contactEmails: z.ZodArray<z.ZodObject<{
5931
+ id: z.ZodString;
5932
+ createdAt: z.ZodDate;
5933
+ updatedAt: z.ZodDate;
5934
+ deletedAt: z.ZodNullable<z.ZodDate>;
5935
+ email: z.ZodString;
5936
+ isPrimary: z.ZodBoolean;
5937
+ }, "strip", z.ZodTypeAny, {
5938
+ id: string;
5939
+ isPrimary: boolean;
5940
+ email: string;
5941
+ createdAt: Date;
5942
+ updatedAt: Date;
5943
+ deletedAt: Date | null;
5944
+ }, {
5945
+ id: string;
5946
+ isPrimary: boolean;
5947
+ email: string;
5948
+ createdAt: Date;
5949
+ updatedAt: Date;
5950
+ deletedAt: Date | null;
5951
+ }>, "many">;
5952
+ contactPhones: z.ZodArray<z.ZodObject<{
5953
+ id: z.ZodString;
5954
+ createdAt: z.ZodDate;
5955
+ updatedAt: z.ZodDate;
5956
+ deletedAt: z.ZodNullable<z.ZodDate>;
5957
+ phone: z.ZodString;
5958
+ isPrimary: z.ZodBoolean;
5959
+ }, "strip", z.ZodTypeAny, {
5960
+ id: string;
5961
+ isPrimary: boolean;
5962
+ createdAt: Date;
5963
+ updatedAt: Date;
5964
+ deletedAt: Date | null;
5965
+ phone: string;
5966
+ }, {
5967
+ id: string;
5968
+ isPrimary: boolean;
5969
+ createdAt: Date;
5970
+ updatedAt: Date;
5971
+ deletedAt: Date | null;
5972
+ phone: string;
5973
+ }>, "many">;
5974
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5975
+ id: z.ZodString;
5976
+ createdAt: z.ZodDate;
5977
+ updatedAt: z.ZodDate;
5978
+ deletedAt: z.ZodNullable<z.ZodDate>;
5979
+ entityId: z.ZodString;
5980
+ description: z.ZodString;
5981
+ entityType: z.ZodObject<{
5982
+ id: z.ZodString;
5983
+ createdAt: z.ZodDate;
5984
+ updatedAt: z.ZodDate;
5985
+ deletedAt: z.ZodNullable<z.ZodDate>;
5986
+ entity: z.ZodString;
5987
+ description: z.ZodNullable<z.ZodString>;
5988
+ }, "strip", z.ZodTypeAny, {
5989
+ id: string;
5990
+ description: string | null;
5991
+ createdAt: Date;
5992
+ updatedAt: Date;
5993
+ deletedAt: Date | null;
5994
+ entity: string;
5995
+ }, {
5996
+ id: string;
5997
+ description: string | null;
5998
+ createdAt: Date;
5999
+ updatedAt: Date;
6000
+ deletedAt: Date | null;
6001
+ entity: string;
6002
+ }>;
6003
+ }, "strip", z.ZodTypeAny, {
6004
+ id: string;
6005
+ description: string;
6006
+ createdAt: Date;
6007
+ updatedAt: Date;
6008
+ deletedAt: Date | null;
6009
+ entityId: string;
6010
+ entityType: {
6011
+ id: string;
6012
+ description: string | null;
6013
+ createdAt: Date;
6014
+ updatedAt: Date;
6015
+ deletedAt: Date | null;
6016
+ entity: string;
6017
+ };
6018
+ }, {
6019
+ id: string;
6020
+ description: string;
6021
+ createdAt: Date;
6022
+ updatedAt: Date;
6023
+ deletedAt: Date | null;
6024
+ entityId: string;
6025
+ entityType: {
6026
+ id: string;
6027
+ description: string | null;
6028
+ createdAt: Date;
6029
+ updatedAt: Date;
6030
+ deletedAt: Date | null;
6031
+ entity: string;
6032
+ };
6033
+ }>, "many">>;
6034
+ }, "strip", z.ZodTypeAny, {
6035
+ id: string;
6036
+ channel: string | null;
6037
+ address: string | null;
6038
+ name: string;
6039
+ createdAt: Date;
6040
+ updatedAt: Date;
6041
+ deletedAt: Date | null;
6042
+ customFields: {
4381
6043
  id: string;
4382
6044
  createdAt: Date;
4383
6045
  updatedAt: Date;
@@ -4412,7 +6074,68 @@ export declare const telephonyCdrContract: {
4412
6074
  fileUrl: string | null;
4413
6075
  status?: string | undefined;
4414
6076
  }[];
4415
- }, {
6077
+ }[];
6078
+ company: {
6079
+ id: string;
6080
+ createdAt: Date;
6081
+ updatedAt: Date;
6082
+ deletedAt: Date | null;
6083
+ address?: string | null | undefined;
6084
+ name?: string | undefined;
6085
+ phone?: string | null | undefined;
6086
+ industry?: string | null | undefined;
6087
+ } | null;
6088
+ notes: string | null;
6089
+ contactProfile: string | null;
6090
+ socialProfileUrl: string | null;
6091
+ tags: {
6092
+ id: string;
6093
+ name: string;
6094
+ createdAt: Date;
6095
+ updatedAt: Date;
6096
+ deletedAt: Date | null;
6097
+ }[];
6098
+ contactEmails: {
6099
+ id: string;
6100
+ isPrimary: boolean;
6101
+ email: string;
6102
+ createdAt: Date;
6103
+ updatedAt: Date;
6104
+ deletedAt: Date | null;
6105
+ }[];
6106
+ contactPhones: {
6107
+ id: string;
6108
+ isPrimary: boolean;
6109
+ createdAt: Date;
6110
+ updatedAt: Date;
6111
+ deletedAt: Date | null;
6112
+ phone: string;
6113
+ }[];
6114
+ activityLogs?: {
6115
+ id: string;
6116
+ description: string;
6117
+ createdAt: Date;
6118
+ updatedAt: Date;
6119
+ deletedAt: Date | null;
6120
+ entityId: string;
6121
+ entityType: {
6122
+ id: string;
6123
+ description: string | null;
6124
+ createdAt: Date;
6125
+ updatedAt: Date;
6126
+ deletedAt: Date | null;
6127
+ entity: string;
6128
+ };
6129
+ }[] | undefined;
6130
+ }, {
6131
+ id: string;
6132
+ channel: string | null;
6133
+ address: string | null;
6134
+ name: string;
6135
+ createdAt: Date;
6136
+ updatedAt: Date;
6137
+ deletedAt: Date | null;
6138
+ customFields: {
4416
6139
  id: string;
4417
6140
  createdAt: Date;
4418
6141
  updatedAt: Date;
@@ -4447,374 +6170,649 @@ export declare const telephonyCdrContract: {
4447
6170
  fileUrl: string | null;
4448
6171
  status?: string | undefined;
4449
6172
  }[];
4450
- }>, "many">;
4451
- contactEmails: z.ZodArray<z.ZodObject<{
4452
- id: z.ZodString;
4453
- createdAt: z.ZodDate;
4454
- updatedAt: z.ZodDate;
4455
- deletedAt: z.ZodNullable<z.ZodDate>;
4456
- email: z.ZodString;
4457
- isPrimary: z.ZodBoolean;
4458
- }, "strip", z.ZodTypeAny, {
6173
+ }[];
6174
+ company: {
4459
6175
  id: string;
4460
- isPrimary: boolean;
4461
- email: string;
4462
6176
  createdAt: Date;
4463
6177
  updatedAt: Date;
4464
6178
  deletedAt: Date | null;
4465
- }, {
6179
+ address?: string | null | undefined;
6180
+ name?: string | undefined;
6181
+ phone?: string | null | undefined;
6182
+ industry?: string | null | undefined;
6183
+ } | null;
6184
+ notes: string | null;
6185
+ contactProfile: string | null;
6186
+ socialProfileUrl: string | null;
6187
+ tags: {
6188
+ id: string;
6189
+ name: string;
6190
+ createdAt: Date;
6191
+ updatedAt: Date;
6192
+ deletedAt: Date | null;
6193
+ }[];
6194
+ contactEmails: {
4466
6195
  id: string;
4467
6196
  isPrimary: boolean;
4468
6197
  email: string;
4469
6198
  createdAt: Date;
4470
6199
  updatedAt: Date;
4471
6200
  deletedAt: Date | null;
4472
- }>, "many">;
4473
- contactPhones: z.ZodArray<z.ZodObject<{
4474
- id: z.ZodString;
4475
- createdAt: z.ZodDate;
4476
- updatedAt: z.ZodDate;
4477
- deletedAt: z.ZodNullable<z.ZodDate>;
4478
- phone: z.ZodString;
4479
- isPrimary: z.ZodBoolean;
4480
- }, "strip", z.ZodTypeAny, {
6201
+ }[];
6202
+ contactPhones: {
4481
6203
  id: string;
4482
6204
  isPrimary: boolean;
4483
6205
  createdAt: Date;
4484
6206
  updatedAt: Date;
4485
6207
  deletedAt: Date | null;
4486
6208
  phone: string;
4487
- }, {
6209
+ }[];
6210
+ activityLogs?: {
4488
6211
  id: string;
4489
- isPrimary: boolean;
6212
+ description: string;
4490
6213
  createdAt: Date;
4491
6214
  updatedAt: Date;
4492
6215
  deletedAt: Date | null;
4493
- phone: string;
4494
- }>, "many">;
4495
- activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6216
+ entityId: string;
6217
+ entityType: {
6218
+ id: string;
6219
+ description: string | null;
6220
+ createdAt: Date;
6221
+ updatedAt: Date;
6222
+ deletedAt: Date | null;
6223
+ entity: string;
6224
+ };
6225
+ }[] | undefined;
6226
+ }>>;
6227
+ telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6228
+ id: z.ZodString;
6229
+ createdAt: z.ZodDate;
6230
+ updatedAt: z.ZodDate;
6231
+ deletedAt: z.ZodNullable<z.ZodDate>;
6232
+ queueId: z.ZodNumber;
6233
+ queueName: z.ZodString;
6234
+ queueNumber: z.ZodString;
6235
+ maximumWaitingTime: z.ZodNumber;
6236
+ }, "strip", z.ZodTypeAny, {
6237
+ id: string;
6238
+ createdAt: Date;
6239
+ updatedAt: Date;
6240
+ deletedAt: Date | null;
6241
+ queueId: number;
6242
+ queueName: string;
6243
+ queueNumber: string;
6244
+ maximumWaitingTime: number;
6245
+ }, {
6246
+ id: string;
6247
+ createdAt: Date;
6248
+ updatedAt: Date;
6249
+ deletedAt: Date | null;
6250
+ queueId: number;
6251
+ queueName: string;
6252
+ queueNumber: string;
6253
+ maximumWaitingTime: number;
6254
+ }>>>;
6255
+ pinCode: z.ZodNullable<z.ZodString>;
6256
+ status: z.ZodString;
6257
+ type: z.ZodString;
6258
+ recording: z.ZodNullable<z.ZodString>;
6259
+ didNumber: z.ZodNullable<z.ZodString>;
6260
+ agentRingTime: z.ZodNullable<z.ZodNumber>;
6261
+ uploadId: z.ZodNullable<z.ZodString>;
6262
+ serialNumber: z.ZodNullable<z.ZodString>;
6263
+ upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6264
+ id: z.ZodString;
6265
+ createdAt: z.ZodDate;
6266
+ updatedAt: z.ZodDate;
6267
+ deletedAt: z.ZodNullable<z.ZodDate>;
6268
+ bucketName: z.ZodString;
6269
+ fileName: z.ZodString;
6270
+ fileSize: z.ZodNumber;
6271
+ fileKey: z.ZodString;
6272
+ fileUrl: z.ZodNullable<z.ZodString>;
6273
+ status: z.ZodOptional<z.ZodString>;
6274
+ }, "strip", z.ZodTypeAny, {
6275
+ id: string;
6276
+ createdAt: Date;
6277
+ updatedAt: Date;
6278
+ deletedAt: Date | null;
6279
+ fileName: string;
6280
+ fileKey: string;
6281
+ bucketName: string;
6282
+ fileSize: number;
6283
+ fileUrl: string | null;
6284
+ status?: string | undefined;
6285
+ }, {
6286
+ id: string;
6287
+ createdAt: Date;
6288
+ updatedAt: Date;
6289
+ deletedAt: Date | null;
6290
+ fileName: string;
6291
+ fileKey: string;
6292
+ bucketName: string;
6293
+ fileSize: number;
6294
+ fileUrl: string | null;
6295
+ status?: string | undefined;
6296
+ }>>>;
6297
+ callParticipants: z.ZodNullable<z.ZodObject<{
6298
+ callTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4496
6299
  id: z.ZodString;
4497
- createdAt: z.ZodDate;
4498
- updatedAt: z.ZodDate;
4499
- deletedAt: z.ZodNullable<z.ZodDate>;
4500
- entityId: z.ZodString;
4501
- description: z.ZodString;
4502
- entityType: z.ZodObject<{
6300
+ user: z.ZodNullable<z.ZodObject<Omit<{
4503
6301
  id: z.ZodString;
4504
6302
  createdAt: z.ZodDate;
4505
6303
  updatedAt: z.ZodDate;
4506
6304
  deletedAt: z.ZodNullable<z.ZodDate>;
4507
- entity: z.ZodString;
4508
- description: z.ZodNullable<z.ZodString>;
4509
- }, "strip", z.ZodTypeAny, {
6305
+ name: z.ZodString;
6306
+ email: z.ZodString;
6307
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
6308
+ password: z.ZodString;
6309
+ address: z.ZodNullable<z.ZodString>;
6310
+ phone: z.ZodNullable<z.ZodString>;
6311
+ notificationCount: z.ZodNullable<z.ZodNumber>;
6312
+ roles: z.ZodArray<z.ZodObject<{
6313
+ id: z.ZodString;
6314
+ createdAt: z.ZodDate;
6315
+ updatedAt: z.ZodDate;
6316
+ deletedAt: z.ZodNullable<z.ZodDate>;
6317
+ systemName: z.ZodString;
6318
+ displayName: z.ZodString;
6319
+ description: z.ZodNullable<z.ZodString>;
6320
+ permissions: z.ZodArray<z.ZodObject<{
6321
+ id: z.ZodString;
6322
+ createdAt: z.ZodDate;
6323
+ updatedAt: z.ZodDate;
6324
+ deletedAt: z.ZodNullable<z.ZodDate>;
6325
+ systemName: z.ZodString;
6326
+ displayName: z.ZodString;
6327
+ description: z.ZodNullable<z.ZodString>;
6328
+ }, "strip", z.ZodTypeAny, {
6329
+ id: string;
6330
+ description: string | null;
6331
+ createdAt: Date;
6332
+ updatedAt: Date;
6333
+ deletedAt: Date | null;
6334
+ systemName: string;
6335
+ displayName: string;
6336
+ }, {
6337
+ id: string;
6338
+ description: string | null;
6339
+ createdAt: Date;
6340
+ updatedAt: Date;
6341
+ deletedAt: Date | null;
6342
+ systemName: string;
6343
+ displayName: string;
6344
+ }>, "many">;
6345
+ }, "strip", z.ZodTypeAny, {
6346
+ id: string;
6347
+ description: string | null;
6348
+ createdAt: Date;
6349
+ updatedAt: Date;
6350
+ deletedAt: Date | null;
6351
+ systemName: string;
6352
+ displayName: string;
6353
+ permissions: {
6354
+ id: string;
6355
+ description: string | null;
6356
+ createdAt: Date;
6357
+ updatedAt: Date;
6358
+ deletedAt: Date | null;
6359
+ systemName: string;
6360
+ displayName: string;
6361
+ }[];
6362
+ }, {
6363
+ id: string;
6364
+ description: string | null;
6365
+ createdAt: Date;
6366
+ updatedAt: Date;
6367
+ deletedAt: Date | null;
6368
+ systemName: string;
6369
+ displayName: string;
6370
+ permissions: {
6371
+ id: string;
6372
+ description: string | null;
6373
+ createdAt: Date;
6374
+ updatedAt: Date;
6375
+ deletedAt: Date | null;
6376
+ systemName: string;
6377
+ displayName: string;
6378
+ }[];
6379
+ }>, "many">;
6380
+ extension: z.ZodObject<{
6381
+ id: z.ZodString;
6382
+ createdAt: z.ZodDate;
6383
+ updatedAt: z.ZodDate;
6384
+ deletedAt: z.ZodNullable<z.ZodDate>;
6385
+ userId: z.ZodNullable<z.ZodString>;
6386
+ sipServerUrl: z.ZodString;
6387
+ sipUserName: z.ZodString;
6388
+ webphoneLoginUser: z.ZodString;
6389
+ extensionId: z.ZodNullable<z.ZodString>;
6390
+ extensionName: z.ZodString;
6391
+ telephonySignature: z.ZodNullable<z.ZodString>;
6392
+ }, "strip", z.ZodTypeAny, {
6393
+ id: string;
6394
+ createdAt: Date;
6395
+ updatedAt: Date;
6396
+ deletedAt: Date | null;
6397
+ userId: string | null;
6398
+ sipServerUrl: string;
6399
+ sipUserName: string;
6400
+ webphoneLoginUser: string;
6401
+ extensionId: string | null;
6402
+ extensionName: string;
6403
+ telephonySignature: string | null;
6404
+ }, {
6405
+ id: string;
6406
+ createdAt: Date;
6407
+ updatedAt: Date;
6408
+ deletedAt: Date | null;
6409
+ userId: string | null;
6410
+ sipServerUrl: string;
6411
+ sipUserName: string;
6412
+ webphoneLoginUser: string;
6413
+ extensionId: string | null;
6414
+ extensionName: string;
6415
+ telephonySignature: string | null;
6416
+ }>;
6417
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
4510
6418
  id: string;
4511
- description: string | null;
6419
+ address: string | null;
6420
+ name: string;
6421
+ email: string;
4512
6422
  createdAt: Date;
4513
6423
  updatedAt: Date;
4514
6424
  deletedAt: Date | null;
4515
- entity: string;
6425
+ emailVerifiedAt: Date | null;
6426
+ password: string;
6427
+ phone: string | null;
6428
+ notificationCount: number | null;
4516
6429
  }, {
4517
6430
  id: string;
4518
- description: string | null;
6431
+ address: string | null;
6432
+ name: string;
6433
+ email: string;
4519
6434
  createdAt: Date;
4520
6435
  updatedAt: Date;
4521
6436
  deletedAt: Date | null;
4522
- entity: string;
4523
- }>;
6437
+ emailVerifiedAt: Date | null;
6438
+ password: string;
6439
+ phone: string | null;
6440
+ notificationCount: number | null;
6441
+ }>>;
6442
+ userId: z.ZodString;
6443
+ createdAt: z.ZodOptional<z.ZodString>;
6444
+ deletedAt: z.ZodNullable<z.ZodString>;
6445
+ updatedAt: z.ZodOptional<z.ZodString>;
6446
+ extensionId: z.ZodNullable<z.ZodString>;
6447
+ sipUserName: z.ZodNullable<z.ZodString>;
6448
+ sipServerUrl: z.ZodNullable<z.ZodString>;
6449
+ extensionName: z.ZodNullable<z.ZodString>;
6450
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
6451
+ telephonySignature: z.ZodNullable<z.ZodString>;
4524
6452
  }, "strip", z.ZodTypeAny, {
4525
6453
  id: string;
4526
- description: string;
4527
- createdAt: Date;
4528
- updatedAt: Date;
4529
- deletedAt: Date | null;
4530
- entityId: string;
4531
- entityType: {
6454
+ user: {
4532
6455
  id: string;
4533
- description: string | null;
6456
+ address: string | null;
6457
+ name: string;
6458
+ email: string;
4534
6459
  createdAt: Date;
4535
6460
  updatedAt: Date;
4536
6461
  deletedAt: Date | null;
4537
- entity: string;
4538
- };
6462
+ emailVerifiedAt: Date | null;
6463
+ password: string;
6464
+ phone: string | null;
6465
+ notificationCount: number | null;
6466
+ } | null;
6467
+ deletedAt: string | null;
6468
+ userId: string;
6469
+ sipServerUrl: string | null;
6470
+ sipUserName: string | null;
6471
+ webphoneLoginUser: string | null;
6472
+ extensionId: string | null;
6473
+ extensionName: string | null;
6474
+ telephonySignature: string | null;
6475
+ createdAt?: string | undefined;
6476
+ updatedAt?: string | undefined;
4539
6477
  }, {
4540
6478
  id: string;
4541
- description: string;
4542
- createdAt: Date;
4543
- updatedAt: Date;
4544
- deletedAt: Date | null;
4545
- entityId: string;
4546
- entityType: {
4547
- id: string;
4548
- description: string | null;
4549
- createdAt: Date;
4550
- updatedAt: Date;
4551
- deletedAt: Date | null;
4552
- entity: string;
4553
- };
4554
- }>, "many">>;
4555
- }, "strip", z.ZodTypeAny, {
4556
- id: string;
4557
- channel: string | null;
4558
- address: string | null;
4559
- name: string;
4560
- createdAt: Date;
4561
- updatedAt: Date;
4562
- deletedAt: Date | null;
4563
- customFields: {
4564
- id: string;
4565
- createdAt: Date;
4566
- updatedAt: Date;
4567
- deletedAt: Date | null;
4568
- attribute: {
4569
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6479
+ user: {
4570
6480
  id: string;
4571
- position: number;
6481
+ address: string | null;
6482
+ name: string;
6483
+ email: string;
4572
6484
  createdAt: Date;
4573
6485
  updatedAt: Date;
4574
6486
  deletedAt: Date | null;
4575
- systemName: string;
4576
- displayName: string;
4577
- isDefault: boolean;
4578
- isArchived: boolean;
4579
- isRequired: boolean;
4580
- isUnique: boolean;
4581
- };
4582
- textValue: string | null;
4583
- booleanValue: boolean | null;
4584
- numberValue: number | null;
4585
- dateValue: Date | null;
4586
- uploads: {
6487
+ emailVerifiedAt: Date | null;
6488
+ password: string;
6489
+ phone: string | null;
6490
+ notificationCount: number | null;
6491
+ } | null;
6492
+ deletedAt: string | null;
6493
+ userId: string;
6494
+ sipServerUrl: string | null;
6495
+ sipUserName: string | null;
6496
+ webphoneLoginUser: string | null;
6497
+ extensionId: string | null;
6498
+ extensionName: string | null;
6499
+ telephonySignature: string | null;
6500
+ createdAt?: string | undefined;
6501
+ updatedAt?: string | undefined;
6502
+ }>>>;
6503
+ callFrom: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6504
+ id: z.ZodString;
6505
+ user: z.ZodNullable<z.ZodObject<Omit<{
6506
+ id: z.ZodString;
6507
+ createdAt: z.ZodDate;
6508
+ updatedAt: z.ZodDate;
6509
+ deletedAt: z.ZodNullable<z.ZodDate>;
6510
+ name: z.ZodString;
6511
+ email: z.ZodString;
6512
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
6513
+ password: z.ZodString;
6514
+ address: z.ZodNullable<z.ZodString>;
6515
+ phone: z.ZodNullable<z.ZodString>;
6516
+ notificationCount: z.ZodNullable<z.ZodNumber>;
6517
+ roles: z.ZodArray<z.ZodObject<{
6518
+ id: z.ZodString;
6519
+ createdAt: z.ZodDate;
6520
+ updatedAt: z.ZodDate;
6521
+ deletedAt: z.ZodNullable<z.ZodDate>;
6522
+ systemName: z.ZodString;
6523
+ displayName: z.ZodString;
6524
+ description: z.ZodNullable<z.ZodString>;
6525
+ permissions: z.ZodArray<z.ZodObject<{
6526
+ id: z.ZodString;
6527
+ createdAt: z.ZodDate;
6528
+ updatedAt: z.ZodDate;
6529
+ deletedAt: z.ZodNullable<z.ZodDate>;
6530
+ systemName: z.ZodString;
6531
+ displayName: z.ZodString;
6532
+ description: z.ZodNullable<z.ZodString>;
6533
+ }, "strip", z.ZodTypeAny, {
6534
+ id: string;
6535
+ description: string | null;
6536
+ createdAt: Date;
6537
+ updatedAt: Date;
6538
+ deletedAt: Date | null;
6539
+ systemName: string;
6540
+ displayName: string;
6541
+ }, {
6542
+ id: string;
6543
+ description: string | null;
6544
+ createdAt: Date;
6545
+ updatedAt: Date;
6546
+ deletedAt: Date | null;
6547
+ systemName: string;
6548
+ displayName: string;
6549
+ }>, "many">;
6550
+ }, "strip", z.ZodTypeAny, {
6551
+ id: string;
6552
+ description: string | null;
6553
+ createdAt: Date;
6554
+ updatedAt: Date;
6555
+ deletedAt: Date | null;
6556
+ systemName: string;
6557
+ displayName: string;
6558
+ permissions: {
6559
+ id: string;
6560
+ description: string | null;
6561
+ createdAt: Date;
6562
+ updatedAt: Date;
6563
+ deletedAt: Date | null;
6564
+ systemName: string;
6565
+ displayName: string;
6566
+ }[];
6567
+ }, {
6568
+ id: string;
6569
+ description: string | null;
6570
+ createdAt: Date;
6571
+ updatedAt: Date;
6572
+ deletedAt: Date | null;
6573
+ systemName: string;
6574
+ displayName: string;
6575
+ permissions: {
6576
+ id: string;
6577
+ description: string | null;
6578
+ createdAt: Date;
6579
+ updatedAt: Date;
6580
+ deletedAt: Date | null;
6581
+ systemName: string;
6582
+ displayName: string;
6583
+ }[];
6584
+ }>, "many">;
6585
+ extension: z.ZodObject<{
6586
+ id: z.ZodString;
6587
+ createdAt: z.ZodDate;
6588
+ updatedAt: z.ZodDate;
6589
+ deletedAt: z.ZodNullable<z.ZodDate>;
6590
+ userId: z.ZodNullable<z.ZodString>;
6591
+ sipServerUrl: z.ZodString;
6592
+ sipUserName: z.ZodString;
6593
+ webphoneLoginUser: z.ZodString;
6594
+ extensionId: z.ZodNullable<z.ZodString>;
6595
+ extensionName: z.ZodString;
6596
+ telephonySignature: z.ZodNullable<z.ZodString>;
6597
+ }, "strip", z.ZodTypeAny, {
6598
+ id: string;
6599
+ createdAt: Date;
6600
+ updatedAt: Date;
6601
+ deletedAt: Date | null;
6602
+ userId: string | null;
6603
+ sipServerUrl: string;
6604
+ sipUserName: string;
6605
+ webphoneLoginUser: string;
6606
+ extensionId: string | null;
6607
+ extensionName: string;
6608
+ telephonySignature: string | null;
6609
+ }, {
6610
+ id: string;
6611
+ createdAt: Date;
6612
+ updatedAt: Date;
6613
+ deletedAt: Date | null;
6614
+ userId: string | null;
6615
+ sipServerUrl: string;
6616
+ sipUserName: string;
6617
+ webphoneLoginUser: string;
6618
+ extensionId: string | null;
6619
+ extensionName: string;
6620
+ telephonySignature: string | null;
6621
+ }>;
6622
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
4587
6623
  id: string;
6624
+ address: string | null;
6625
+ name: string;
6626
+ email: string;
4588
6627
  createdAt: Date;
4589
6628
  updatedAt: Date;
4590
6629
  deletedAt: Date | null;
4591
- fileName: string;
4592
- fileKey: string;
4593
- bucketName: string;
4594
- fileSize: number;
4595
- fileUrl: string | null;
4596
- status?: string | undefined;
4597
- }[];
4598
- }[];
4599
- company: {
4600
- id: string;
4601
- createdAt: Date;
4602
- updatedAt: Date;
4603
- deletedAt: Date | null;
4604
- address?: string | null | undefined;
4605
- name?: string | undefined;
4606
- phone?: string | null | undefined;
4607
- industry?: string | null | undefined;
4608
- } | null;
4609
- notes: string | null;
4610
- contactProfile: string | null;
4611
- socialProfileUrl: string | null;
4612
- tags: {
4613
- id: string;
4614
- name: string;
4615
- createdAt: Date;
4616
- updatedAt: Date;
4617
- deletedAt: Date | null;
4618
- }[];
4619
- contactEmails: {
4620
- id: string;
4621
- isPrimary: boolean;
4622
- email: string;
4623
- createdAt: Date;
4624
- updatedAt: Date;
4625
- deletedAt: Date | null;
4626
- }[];
4627
- contactPhones: {
4628
- id: string;
4629
- isPrimary: boolean;
4630
- createdAt: Date;
4631
- updatedAt: Date;
4632
- deletedAt: Date | null;
4633
- phone: string;
4634
- }[];
4635
- activityLogs?: {
4636
- id: string;
4637
- description: string;
4638
- createdAt: Date;
4639
- updatedAt: Date;
4640
- deletedAt: Date | null;
4641
- entityId: string;
4642
- entityType: {
6630
+ emailVerifiedAt: Date | null;
6631
+ password: string;
6632
+ phone: string | null;
6633
+ notificationCount: number | null;
6634
+ }, {
4643
6635
  id: string;
4644
- description: string | null;
6636
+ address: string | null;
6637
+ name: string;
6638
+ email: string;
4645
6639
  createdAt: Date;
4646
6640
  updatedAt: Date;
4647
6641
  deletedAt: Date | null;
4648
- entity: string;
4649
- };
4650
- }[] | undefined;
4651
- }, {
4652
- id: string;
4653
- channel: string | null;
4654
- address: string | null;
4655
- name: string;
4656
- createdAt: Date;
4657
- updatedAt: Date;
4658
- deletedAt: Date | null;
4659
- customFields: {
6642
+ emailVerifiedAt: Date | null;
6643
+ password: string;
6644
+ phone: string | null;
6645
+ notificationCount: number | null;
6646
+ }>>;
6647
+ userId: z.ZodString;
6648
+ createdAt: z.ZodOptional<z.ZodString>;
6649
+ deletedAt: z.ZodNullable<z.ZodString>;
6650
+ updatedAt: z.ZodOptional<z.ZodString>;
6651
+ extensionId: z.ZodNullable<z.ZodString>;
6652
+ sipUserName: z.ZodNullable<z.ZodString>;
6653
+ sipServerUrl: z.ZodNullable<z.ZodString>;
6654
+ extensionName: z.ZodNullable<z.ZodString>;
6655
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
6656
+ telephonySignature: z.ZodNullable<z.ZodString>;
6657
+ }, "strip", z.ZodTypeAny, {
4660
6658
  id: string;
4661
- createdAt: Date;
4662
- updatedAt: Date;
4663
- deletedAt: Date | null;
4664
- attribute: {
4665
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6659
+ user: {
4666
6660
  id: string;
4667
- position: number;
6661
+ address: string | null;
6662
+ name: string;
6663
+ email: string;
4668
6664
  createdAt: Date;
4669
6665
  updatedAt: Date;
4670
6666
  deletedAt: Date | null;
4671
- systemName: string;
4672
- displayName: string;
4673
- isDefault: boolean;
4674
- isArchived: boolean;
4675
- isRequired: boolean;
4676
- isUnique: boolean;
4677
- };
4678
- textValue: string | null;
4679
- booleanValue: boolean | null;
4680
- numberValue: number | null;
4681
- dateValue: Date | null;
4682
- uploads: {
6667
+ emailVerifiedAt: Date | null;
6668
+ password: string;
6669
+ phone: string | null;
6670
+ notificationCount: number | null;
6671
+ } | null;
6672
+ deletedAt: string | null;
6673
+ userId: string;
6674
+ sipServerUrl: string | null;
6675
+ sipUserName: string | null;
6676
+ webphoneLoginUser: string | null;
6677
+ extensionId: string | null;
6678
+ extensionName: string | null;
6679
+ telephonySignature: string | null;
6680
+ createdAt?: string | undefined;
6681
+ updatedAt?: string | undefined;
6682
+ }, {
6683
+ id: string;
6684
+ user: {
4683
6685
  id: string;
6686
+ address: string | null;
6687
+ name: string;
6688
+ email: string;
4684
6689
  createdAt: Date;
4685
6690
  updatedAt: Date;
4686
6691
  deletedAt: Date | null;
4687
- fileName: string;
4688
- fileKey: string;
4689
- bucketName: string;
4690
- fileSize: number;
4691
- fileUrl: string | null;
4692
- status?: string | undefined;
4693
- }[];
4694
- }[];
4695
- company: {
4696
- id: string;
4697
- createdAt: Date;
4698
- updatedAt: Date;
4699
- deletedAt: Date | null;
4700
- address?: string | null | undefined;
4701
- name?: string | undefined;
4702
- phone?: string | null | undefined;
4703
- industry?: string | null | undefined;
4704
- } | null;
4705
- notes: string | null;
4706
- contactProfile: string | null;
4707
- socialProfileUrl: string | null;
4708
- tags: {
6692
+ emailVerifiedAt: Date | null;
6693
+ password: string;
6694
+ phone: string | null;
6695
+ notificationCount: number | null;
6696
+ } | null;
6697
+ deletedAt: string | null;
6698
+ userId: string;
6699
+ sipServerUrl: string | null;
6700
+ sipUserName: string | null;
6701
+ webphoneLoginUser: string | null;
6702
+ extensionId: string | null;
6703
+ extensionName: string | null;
6704
+ telephonySignature: string | null;
6705
+ createdAt?: string | undefined;
6706
+ updatedAt?: string | undefined;
6707
+ }>>>;
6708
+ }, "strip", z.ZodTypeAny, {
6709
+ callTo?: {
4709
6710
  id: string;
4710
- name: string;
4711
- createdAt: Date;
4712
- updatedAt: Date;
4713
- deletedAt: Date | null;
4714
- }[];
4715
- contactEmails: {
6711
+ user: {
6712
+ id: string;
6713
+ address: string | null;
6714
+ name: string;
6715
+ email: string;
6716
+ createdAt: Date;
6717
+ updatedAt: Date;
6718
+ deletedAt: Date | null;
6719
+ emailVerifiedAt: Date | null;
6720
+ password: string;
6721
+ phone: string | null;
6722
+ notificationCount: number | null;
6723
+ } | null;
6724
+ deletedAt: string | null;
6725
+ userId: string;
6726
+ sipServerUrl: string | null;
6727
+ sipUserName: string | null;
6728
+ webphoneLoginUser: string | null;
6729
+ extensionId: string | null;
6730
+ extensionName: string | null;
6731
+ telephonySignature: string | null;
6732
+ createdAt?: string | undefined;
6733
+ updatedAt?: string | undefined;
6734
+ } | null | undefined;
6735
+ callFrom?: {
4716
6736
  id: string;
4717
- isPrimary: boolean;
4718
- email: string;
4719
- createdAt: Date;
4720
- updatedAt: Date;
4721
- deletedAt: Date | null;
4722
- }[];
4723
- contactPhones: {
6737
+ user: {
6738
+ id: string;
6739
+ address: string | null;
6740
+ name: string;
6741
+ email: string;
6742
+ createdAt: Date;
6743
+ updatedAt: Date;
6744
+ deletedAt: Date | null;
6745
+ emailVerifiedAt: Date | null;
6746
+ password: string;
6747
+ phone: string | null;
6748
+ notificationCount: number | null;
6749
+ } | null;
6750
+ deletedAt: string | null;
6751
+ userId: string;
6752
+ sipServerUrl: string | null;
6753
+ sipUserName: string | null;
6754
+ webphoneLoginUser: string | null;
6755
+ extensionId: string | null;
6756
+ extensionName: string | null;
6757
+ telephonySignature: string | null;
6758
+ createdAt?: string | undefined;
6759
+ updatedAt?: string | undefined;
6760
+ } | null | undefined;
6761
+ }, {
6762
+ callTo?: {
4724
6763
  id: string;
4725
- isPrimary: boolean;
4726
- createdAt: Date;
4727
- updatedAt: Date;
4728
- deletedAt: Date | null;
4729
- phone: string;
4730
- }[];
4731
- activityLogs?: {
6764
+ user: {
6765
+ id: string;
6766
+ address: string | null;
6767
+ name: string;
6768
+ email: string;
6769
+ createdAt: Date;
6770
+ updatedAt: Date;
6771
+ deletedAt: Date | null;
6772
+ emailVerifiedAt: Date | null;
6773
+ password: string;
6774
+ phone: string | null;
6775
+ notificationCount: number | null;
6776
+ } | null;
6777
+ deletedAt: string | null;
6778
+ userId: string;
6779
+ sipServerUrl: string | null;
6780
+ sipUserName: string | null;
6781
+ webphoneLoginUser: string | null;
6782
+ extensionId: string | null;
6783
+ extensionName: string | null;
6784
+ telephonySignature: string | null;
6785
+ createdAt?: string | undefined;
6786
+ updatedAt?: string | undefined;
6787
+ } | null | undefined;
6788
+ callFrom?: {
4732
6789
  id: string;
4733
- description: string;
4734
- createdAt: Date;
4735
- updatedAt: Date;
4736
- deletedAt: Date | null;
4737
- entityId: string;
4738
- entityType: {
6790
+ user: {
4739
6791
  id: string;
4740
- description: string | null;
6792
+ address: string | null;
6793
+ name: string;
6794
+ email: string;
4741
6795
  createdAt: Date;
4742
6796
  updatedAt: Date;
4743
6797
  deletedAt: Date | null;
4744
- entity: string;
4745
- };
4746
- }[] | undefined;
6798
+ emailVerifiedAt: Date | null;
6799
+ password: string;
6800
+ phone: string | null;
6801
+ notificationCount: number | null;
6802
+ } | null;
6803
+ deletedAt: string | null;
6804
+ userId: string;
6805
+ sipServerUrl: string | null;
6806
+ sipUserName: string | null;
6807
+ webphoneLoginUser: string | null;
6808
+ extensionId: string | null;
6809
+ extensionName: string | null;
6810
+ telephonySignature: string | null;
6811
+ createdAt?: string | undefined;
6812
+ updatedAt?: string | undefined;
6813
+ } | null | undefined;
4747
6814
  }>>;
4748
- telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4749
- id: z.ZodString;
4750
- createdAt: z.ZodDate;
4751
- updatedAt: z.ZodDate;
4752
- deletedAt: z.ZodNullable<z.ZodDate>;
4753
- queueId: z.ZodNumber;
4754
- queueName: z.ZodString;
4755
- queueNumber: z.ZodString;
4756
- maximumWaitingTime: z.ZodNumber;
4757
- }, "strip", z.ZodTypeAny, {
4758
- id: string;
4759
- createdAt: Date;
4760
- updatedAt: Date;
4761
- deletedAt: Date | null;
4762
- queueId: number;
4763
- queueName: string;
4764
- queueNumber: string;
4765
- maximumWaitingTime: number;
4766
- }, {
4767
- id: string;
4768
- createdAt: Date;
4769
- updatedAt: Date;
4770
- deletedAt: Date | null;
4771
- queueId: number;
4772
- queueName: string;
4773
- queueNumber: string;
4774
- maximumWaitingTime: number;
4775
- }>>>;
4776
- pinCode: z.ZodNullable<z.ZodString>;
4777
- status: z.ZodString;
4778
- type: z.ZodString;
4779
- recording: z.ZodNullable<z.ZodString>;
4780
- didNumber: z.ZodNullable<z.ZodString>;
4781
- agentRingTime: z.ZodNullable<z.ZodNumber>;
4782
- uploadId: z.ZodNullable<z.ZodString>;
4783
- upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4784
- id: z.ZodString;
4785
- createdAt: z.ZodDate;
4786
- updatedAt: z.ZodDate;
4787
- deletedAt: z.ZodNullable<z.ZodDate>;
4788
- bucketName: z.ZodString;
4789
- fileName: z.ZodString;
4790
- fileSize: z.ZodNumber;
4791
- fileKey: z.ZodString;
4792
- fileUrl: z.ZodNullable<z.ZodString>;
4793
- status: z.ZodOptional<z.ZodString>;
4794
- }, "strip", z.ZodTypeAny, {
4795
- id: string;
4796
- createdAt: Date;
4797
- updatedAt: Date;
4798
- deletedAt: Date | null;
4799
- fileName: string;
4800
- fileKey: string;
4801
- bucketName: string;
4802
- fileSize: number;
4803
- fileUrl: string | null;
4804
- status?: string | undefined;
4805
- }, {
4806
- id: string;
4807
- createdAt: Date;
4808
- updatedAt: Date;
4809
- deletedAt: Date | null;
4810
- fileName: string;
4811
- fileKey: string;
4812
- bucketName: string;
4813
- fileSize: number;
4814
- fileUrl: string | null;
4815
- status?: string | undefined;
4816
- }>>>;
4817
- serialNumber: z.ZodNullable<z.ZodString>;
6815
+ isQueueMissedCall: z.ZodBoolean;
4818
6816
  extensionId: z.ZodNullable<z.ZodString>;
4819
6817
  extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4820
6818
  id: z.ZodString;
@@ -5156,11 +7154,10 @@ export declare const telephonyCdrContract: {
5156
7154
  updatedAt: Date;
5157
7155
  deletedAt: Date | null;
5158
7156
  extensionId: string | null;
5159
- contactId: string | null;
5160
- callFrom: string;
5161
- callTo: string;
5162
7157
  uniqueCallId: string;
5163
7158
  timeStart: string;
7159
+ callFrom: string;
7160
+ callTo: string;
5164
7161
  callDuration: number | null;
5165
7162
  talkDuration: number | null;
5166
7163
  srcTrunkName: string | null;
@@ -5170,7 +7167,63 @@ export declare const telephonyCdrContract: {
5170
7167
  agentRingTime: number | null;
5171
7168
  uploadId: string | null;
5172
7169
  serialNumber: string | null;
7170
+ callParticipants: {
7171
+ callTo?: {
7172
+ id: string;
7173
+ user: {
7174
+ id: string;
7175
+ address: string | null;
7176
+ name: string;
7177
+ email: string;
7178
+ createdAt: Date;
7179
+ updatedAt: Date;
7180
+ deletedAt: Date | null;
7181
+ emailVerifiedAt: Date | null;
7182
+ password: string;
7183
+ phone: string | null;
7184
+ notificationCount: number | null;
7185
+ } | null;
7186
+ deletedAt: string | null;
7187
+ userId: string;
7188
+ sipServerUrl: string | null;
7189
+ sipUserName: string | null;
7190
+ webphoneLoginUser: string | null;
7191
+ extensionId: string | null;
7192
+ extensionName: string | null;
7193
+ telephonySignature: string | null;
7194
+ createdAt?: string | undefined;
7195
+ updatedAt?: string | undefined;
7196
+ } | null | undefined;
7197
+ callFrom?: {
7198
+ id: string;
7199
+ user: {
7200
+ id: string;
7201
+ address: string | null;
7202
+ name: string;
7203
+ email: string;
7204
+ createdAt: Date;
7205
+ updatedAt: Date;
7206
+ deletedAt: Date | null;
7207
+ emailVerifiedAt: Date | null;
7208
+ password: string;
7209
+ phone: string | null;
7210
+ notificationCount: number | null;
7211
+ } | null;
7212
+ deletedAt: string | null;
7213
+ userId: string;
7214
+ sipServerUrl: string | null;
7215
+ sipUserName: string | null;
7216
+ webphoneLoginUser: string | null;
7217
+ extensionId: string | null;
7218
+ extensionName: string | null;
7219
+ telephonySignature: string | null;
7220
+ createdAt?: string | undefined;
7221
+ updatedAt?: string | undefined;
7222
+ } | null | undefined;
7223
+ } | null;
7224
+ isQueueMissedCall: boolean;
5173
7225
  telephonyQueueId: string | null;
7226
+ contactId: string | null;
5174
7227
  contact?: {
5175
7228
  id: string;
5176
7229
  channel: string | null;
@@ -5356,11 +7409,10 @@ export declare const telephonyCdrContract: {
5356
7409
  updatedAt: Date;
5357
7410
  deletedAt: Date | null;
5358
7411
  extensionId: string | null;
5359
- contactId: string | null;
5360
- callFrom: string;
5361
- callTo: string;
5362
7412
  uniqueCallId: string;
5363
7413
  timeStart: string;
7414
+ callFrom: string;
7415
+ callTo: string;
5364
7416
  callDuration: number | null;
5365
7417
  talkDuration: number | null;
5366
7418
  srcTrunkName: string | null;
@@ -5370,7 +7422,63 @@ export declare const telephonyCdrContract: {
5370
7422
  agentRingTime: number | null;
5371
7423
  uploadId: string | null;
5372
7424
  serialNumber: string | null;
7425
+ callParticipants: {
7426
+ callTo?: {
7427
+ id: string;
7428
+ user: {
7429
+ id: string;
7430
+ address: string | null;
7431
+ name: string;
7432
+ email: string;
7433
+ createdAt: Date;
7434
+ updatedAt: Date;
7435
+ deletedAt: Date | null;
7436
+ emailVerifiedAt: Date | null;
7437
+ password: string;
7438
+ phone: string | null;
7439
+ notificationCount: number | null;
7440
+ } | null;
7441
+ deletedAt: string | null;
7442
+ userId: string;
7443
+ sipServerUrl: string | null;
7444
+ sipUserName: string | null;
7445
+ webphoneLoginUser: string | null;
7446
+ extensionId: string | null;
7447
+ extensionName: string | null;
7448
+ telephonySignature: string | null;
7449
+ createdAt?: string | undefined;
7450
+ updatedAt?: string | undefined;
7451
+ } | null | undefined;
7452
+ callFrom?: {
7453
+ id: string;
7454
+ user: {
7455
+ id: string;
7456
+ address: string | null;
7457
+ name: string;
7458
+ email: string;
7459
+ createdAt: Date;
7460
+ updatedAt: Date;
7461
+ deletedAt: Date | null;
7462
+ emailVerifiedAt: Date | null;
7463
+ password: string;
7464
+ phone: string | null;
7465
+ notificationCount: number | null;
7466
+ } | null;
7467
+ deletedAt: string | null;
7468
+ userId: string;
7469
+ sipServerUrl: string | null;
7470
+ sipUserName: string | null;
7471
+ webphoneLoginUser: string | null;
7472
+ extensionId: string | null;
7473
+ extensionName: string | null;
7474
+ telephonySignature: string | null;
7475
+ createdAt?: string | undefined;
7476
+ updatedAt?: string | undefined;
7477
+ } | null | undefined;
7478
+ } | null;
7479
+ isQueueMissedCall: boolean;
5373
7480
  telephonyQueueId: string | null;
7481
+ contactId: string | null;
5374
7482
  contact?: {
5375
7483
  id: string;
5376
7484
  channel: string | null;
@@ -5562,11 +7670,10 @@ export declare const telephonyCdrContract: {
5562
7670
  updatedAt: Date;
5563
7671
  deletedAt: Date | null;
5564
7672
  extensionId: string | null;
5565
- contactId: string | null;
5566
- callFrom: string;
5567
- callTo: string;
5568
7673
  uniqueCallId: string;
5569
7674
  timeStart: string;
7675
+ callFrom: string;
7676
+ callTo: string;
5570
7677
  callDuration: number | null;
5571
7678
  talkDuration: number | null;
5572
7679
  srcTrunkName: string | null;
@@ -5576,7 +7683,63 @@ export declare const telephonyCdrContract: {
5576
7683
  agentRingTime: number | null;
5577
7684
  uploadId: string | null;
5578
7685
  serialNumber: string | null;
7686
+ callParticipants: {
7687
+ callTo?: {
7688
+ id: string;
7689
+ user: {
7690
+ id: string;
7691
+ address: string | null;
7692
+ name: string;
7693
+ email: string;
7694
+ createdAt: Date;
7695
+ updatedAt: Date;
7696
+ deletedAt: Date | null;
7697
+ emailVerifiedAt: Date | null;
7698
+ password: string;
7699
+ phone: string | null;
7700
+ notificationCount: number | null;
7701
+ } | null;
7702
+ deletedAt: string | null;
7703
+ userId: string;
7704
+ sipServerUrl: string | null;
7705
+ sipUserName: string | null;
7706
+ webphoneLoginUser: string | null;
7707
+ extensionId: string | null;
7708
+ extensionName: string | null;
7709
+ telephonySignature: string | null;
7710
+ createdAt?: string | undefined;
7711
+ updatedAt?: string | undefined;
7712
+ } | null | undefined;
7713
+ callFrom?: {
7714
+ id: string;
7715
+ user: {
7716
+ id: string;
7717
+ address: string | null;
7718
+ name: string;
7719
+ email: string;
7720
+ createdAt: Date;
7721
+ updatedAt: Date;
7722
+ deletedAt: Date | null;
7723
+ emailVerifiedAt: Date | null;
7724
+ password: string;
7725
+ phone: string | null;
7726
+ notificationCount: number | null;
7727
+ } | null;
7728
+ deletedAt: string | null;
7729
+ userId: string;
7730
+ sipServerUrl: string | null;
7731
+ sipUserName: string | null;
7732
+ webphoneLoginUser: string | null;
7733
+ extensionId: string | null;
7734
+ extensionName: string | null;
7735
+ telephonySignature: string | null;
7736
+ createdAt?: string | undefined;
7737
+ updatedAt?: string | undefined;
7738
+ } | null | undefined;
7739
+ } | null;
7740
+ isQueueMissedCall: boolean;
5579
7741
  telephonyQueueId: string | null;
7742
+ contactId: string | null;
5580
7743
  contact?: {
5581
7744
  id: string;
5582
7745
  channel: string | null;
@@ -5768,11 +7931,10 @@ export declare const telephonyCdrContract: {
5768
7931
  updatedAt: Date;
5769
7932
  deletedAt: Date | null;
5770
7933
  extensionId: string | null;
5771
- contactId: string | null;
5772
- callFrom: string;
5773
- callTo: string;
5774
7934
  uniqueCallId: string;
5775
7935
  timeStart: string;
7936
+ callFrom: string;
7937
+ callTo: string;
5776
7938
  callDuration: number | null;
5777
7939
  talkDuration: number | null;
5778
7940
  srcTrunkName: string | null;
@@ -5782,7 +7944,63 @@ export declare const telephonyCdrContract: {
5782
7944
  agentRingTime: number | null;
5783
7945
  uploadId: string | null;
5784
7946
  serialNumber: string | null;
7947
+ callParticipants: {
7948
+ callTo?: {
7949
+ id: string;
7950
+ user: {
7951
+ id: string;
7952
+ address: string | null;
7953
+ name: string;
7954
+ email: string;
7955
+ createdAt: Date;
7956
+ updatedAt: Date;
7957
+ deletedAt: Date | null;
7958
+ emailVerifiedAt: Date | null;
7959
+ password: string;
7960
+ phone: string | null;
7961
+ notificationCount: number | null;
7962
+ } | null;
7963
+ deletedAt: string | null;
7964
+ userId: string;
7965
+ sipServerUrl: string | null;
7966
+ sipUserName: string | null;
7967
+ webphoneLoginUser: string | null;
7968
+ extensionId: string | null;
7969
+ extensionName: string | null;
7970
+ telephonySignature: string | null;
7971
+ createdAt?: string | undefined;
7972
+ updatedAt?: string | undefined;
7973
+ } | null | undefined;
7974
+ callFrom?: {
7975
+ id: string;
7976
+ user: {
7977
+ id: string;
7978
+ address: string | null;
7979
+ name: string;
7980
+ email: string;
7981
+ createdAt: Date;
7982
+ updatedAt: Date;
7983
+ deletedAt: Date | null;
7984
+ emailVerifiedAt: Date | null;
7985
+ password: string;
7986
+ phone: string | null;
7987
+ notificationCount: number | null;
7988
+ } | null;
7989
+ deletedAt: string | null;
7990
+ userId: string;
7991
+ sipServerUrl: string | null;
7992
+ sipUserName: string | null;
7993
+ webphoneLoginUser: string | null;
7994
+ extensionId: string | null;
7995
+ extensionName: string | null;
7996
+ telephonySignature: string | null;
7997
+ createdAt?: string | undefined;
7998
+ updatedAt?: string | undefined;
7999
+ } | null | undefined;
8000
+ } | null;
8001
+ isQueueMissedCall: boolean;
5785
8002
  telephonyQueueId: string | null;
8003
+ contactId: string | null;
5786
8004
  contact?: {
5787
8005
  id: string;
5788
8006
  channel: string | null;