@kl1/contracts 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +265 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +265 -21
- package/dist/index.mjs.map +1 -1
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/chat/index.d.ts +10 -0
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/contract.d.ts +4405 -286
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +556 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +468 -0
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/platform-contact/schema.d.ts +30 -0
- package/dist/src/platform-contact/schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/call-report.schema.d.ts +1420 -0
- package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +3692 -138
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +380 -0
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +56 -0
- package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,11 +1,12 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetExportTelephonyCdrSchema, GetRecentTelephonyCdrSchema } from './validation';
|
2
|
+
import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetExportTelephonyCdrSchema, GetRecentTelephonyCdrSchema, GetYeastarCallReportSchema } from './validation';
|
3
3
|
import { TelephonyCdrSchema } from './schema';
|
4
4
|
export type CreateTelephonyCdrRequest = z.infer<typeof CreateTelephonyCdrSchema>;
|
5
5
|
export type TelephonyCdr = z.infer<typeof TelephonyCdrSchema>;
|
6
6
|
export type GetTelephonyCdrQuery = z.infer<typeof GetAllTelephonyCdrSchema>;
|
7
7
|
export type GetRecentTelephonyCdrQuery = z.infer<typeof GetRecentTelephonyCdrSchema>;
|
8
8
|
export type GetExportTelephonyCdrQuery = z.infer<typeof GetExportTelephonyCdrSchema>;
|
9
|
+
export type GetYeastarCallReportBody = z.infer<typeof GetYeastarCallReportSchema>;
|
9
10
|
export declare const telephonyCdrContract: {
|
10
11
|
findAll: {
|
11
12
|
summary: "Get all telephony cdr.";
|
@@ -886,6 +887,210 @@ export declare const telephonyCdrContract: {
|
|
886
887
|
extensionId: z.ZodNumber;
|
887
888
|
extensionName: z.ZodString;
|
888
889
|
telephonySignature: z.ZodNullable<z.ZodString>;
|
890
|
+
user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
891
|
+
id: z.ZodString;
|
892
|
+
createdAt: z.ZodDate;
|
893
|
+
updatedAt: z.ZodDate;
|
894
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
895
|
+
name: z.ZodString;
|
896
|
+
email: z.ZodString;
|
897
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
898
|
+
password: z.ZodString;
|
899
|
+
address: z.ZodNullable<z.ZodString>;
|
900
|
+
phone: z.ZodNullable<z.ZodString>;
|
901
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
902
|
+
roles: z.ZodArray<z.ZodObject<{
|
903
|
+
id: z.ZodString;
|
904
|
+
createdAt: z.ZodDate;
|
905
|
+
updatedAt: z.ZodDate;
|
906
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
907
|
+
systemName: z.ZodString;
|
908
|
+
displayName: z.ZodString;
|
909
|
+
description: z.ZodNullable<z.ZodString>;
|
910
|
+
permissions: z.ZodArray<z.ZodObject<{
|
911
|
+
id: z.ZodString;
|
912
|
+
createdAt: z.ZodDate;
|
913
|
+
updatedAt: z.ZodDate;
|
914
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
915
|
+
systemName: z.ZodString;
|
916
|
+
displayName: z.ZodString;
|
917
|
+
description: z.ZodNullable<z.ZodString>;
|
918
|
+
}, "strip", z.ZodTypeAny, {
|
919
|
+
id: string;
|
920
|
+
description: string | null;
|
921
|
+
createdAt: Date;
|
922
|
+
updatedAt: Date;
|
923
|
+
deletedAt: Date | null;
|
924
|
+
systemName: string;
|
925
|
+
displayName: string;
|
926
|
+
}, {
|
927
|
+
id: string;
|
928
|
+
description: string | null;
|
929
|
+
createdAt: Date;
|
930
|
+
updatedAt: Date;
|
931
|
+
deletedAt: Date | null;
|
932
|
+
systemName: string;
|
933
|
+
displayName: string;
|
934
|
+
}>, "many">;
|
935
|
+
}, "strip", z.ZodTypeAny, {
|
936
|
+
id: string;
|
937
|
+
description: string | null;
|
938
|
+
createdAt: Date;
|
939
|
+
updatedAt: Date;
|
940
|
+
deletedAt: Date | null;
|
941
|
+
systemName: string;
|
942
|
+
displayName: string;
|
943
|
+
permissions: {
|
944
|
+
id: string;
|
945
|
+
description: string | null;
|
946
|
+
createdAt: Date;
|
947
|
+
updatedAt: Date;
|
948
|
+
deletedAt: Date | null;
|
949
|
+
systemName: string;
|
950
|
+
displayName: string;
|
951
|
+
}[];
|
952
|
+
}, {
|
953
|
+
id: string;
|
954
|
+
description: string | null;
|
955
|
+
createdAt: Date;
|
956
|
+
updatedAt: Date;
|
957
|
+
deletedAt: Date | null;
|
958
|
+
systemName: string;
|
959
|
+
displayName: string;
|
960
|
+
permissions: {
|
961
|
+
id: string;
|
962
|
+
description: string | null;
|
963
|
+
createdAt: Date;
|
964
|
+
updatedAt: Date;
|
965
|
+
deletedAt: Date | null;
|
966
|
+
systemName: string;
|
967
|
+
displayName: string;
|
968
|
+
}[];
|
969
|
+
}>, "many">;
|
970
|
+
extension: z.ZodObject<{
|
971
|
+
id: z.ZodString;
|
972
|
+
createdAt: z.ZodDate;
|
973
|
+
updatedAt: z.ZodDate;
|
974
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
975
|
+
userId: z.ZodNullable<z.ZodString>;
|
976
|
+
sipServerUrl: z.ZodString;
|
977
|
+
sipUserName: z.ZodString;
|
978
|
+
webphoneLoginUser: z.ZodString;
|
979
|
+
extensionId: z.ZodNumber;
|
980
|
+
extensionName: z.ZodString;
|
981
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
982
|
+
}, "strip", z.ZodTypeAny, {
|
983
|
+
id: string;
|
984
|
+
createdAt: Date;
|
985
|
+
updatedAt: Date;
|
986
|
+
deletedAt: Date | null;
|
987
|
+
userId: string | null;
|
988
|
+
sipServerUrl: string;
|
989
|
+
sipUserName: string;
|
990
|
+
webphoneLoginUser: string;
|
991
|
+
extensionId: number;
|
992
|
+
extensionName: string;
|
993
|
+
telephonySignature: string | null;
|
994
|
+
}, {
|
995
|
+
id: string;
|
996
|
+
createdAt: Date;
|
997
|
+
updatedAt: Date;
|
998
|
+
deletedAt: Date | null;
|
999
|
+
userId: string | null;
|
1000
|
+
sipServerUrl: string;
|
1001
|
+
sipUserName: string;
|
1002
|
+
webphoneLoginUser: string;
|
1003
|
+
extensionId: number;
|
1004
|
+
extensionName: string;
|
1005
|
+
telephonySignature: string | null;
|
1006
|
+
}>;
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
1008
|
+
id: string;
|
1009
|
+
address: string | null;
|
1010
|
+
name: string;
|
1011
|
+
email: string;
|
1012
|
+
createdAt: Date;
|
1013
|
+
updatedAt: Date;
|
1014
|
+
deletedAt: Date | null;
|
1015
|
+
emailVerifiedAt: Date | null;
|
1016
|
+
password: string;
|
1017
|
+
phone: string | null;
|
1018
|
+
notificationCount: number | null;
|
1019
|
+
roles: {
|
1020
|
+
id: string;
|
1021
|
+
description: string | null;
|
1022
|
+
createdAt: Date;
|
1023
|
+
updatedAt: Date;
|
1024
|
+
deletedAt: Date | null;
|
1025
|
+
systemName: string;
|
1026
|
+
displayName: string;
|
1027
|
+
permissions: {
|
1028
|
+
id: string;
|
1029
|
+
description: string | null;
|
1030
|
+
createdAt: Date;
|
1031
|
+
updatedAt: Date;
|
1032
|
+
deletedAt: Date | null;
|
1033
|
+
systemName: string;
|
1034
|
+
displayName: string;
|
1035
|
+
}[];
|
1036
|
+
}[];
|
1037
|
+
extension: {
|
1038
|
+
id: string;
|
1039
|
+
createdAt: Date;
|
1040
|
+
updatedAt: Date;
|
1041
|
+
deletedAt: Date | null;
|
1042
|
+
userId: string | null;
|
1043
|
+
sipServerUrl: string;
|
1044
|
+
sipUserName: string;
|
1045
|
+
webphoneLoginUser: string;
|
1046
|
+
extensionId: number;
|
1047
|
+
extensionName: string;
|
1048
|
+
telephonySignature: string | null;
|
1049
|
+
};
|
1050
|
+
}, {
|
1051
|
+
id: string;
|
1052
|
+
address: string | null;
|
1053
|
+
name: string;
|
1054
|
+
email: string;
|
1055
|
+
createdAt: Date;
|
1056
|
+
updatedAt: Date;
|
1057
|
+
deletedAt: Date | null;
|
1058
|
+
emailVerifiedAt: Date | null;
|
1059
|
+
password: string;
|
1060
|
+
phone: string | null;
|
1061
|
+
notificationCount: number | null;
|
1062
|
+
roles: {
|
1063
|
+
id: string;
|
1064
|
+
description: string | null;
|
1065
|
+
createdAt: Date;
|
1066
|
+
updatedAt: Date;
|
1067
|
+
deletedAt: Date | null;
|
1068
|
+
systemName: string;
|
1069
|
+
displayName: string;
|
1070
|
+
permissions: {
|
1071
|
+
id: string;
|
1072
|
+
description: string | null;
|
1073
|
+
createdAt: Date;
|
1074
|
+
updatedAt: Date;
|
1075
|
+
deletedAt: Date | null;
|
1076
|
+
systemName: string;
|
1077
|
+
displayName: string;
|
1078
|
+
}[];
|
1079
|
+
}[];
|
1080
|
+
extension: {
|
1081
|
+
id: string;
|
1082
|
+
createdAt: Date;
|
1083
|
+
updatedAt: Date;
|
1084
|
+
deletedAt: Date | null;
|
1085
|
+
userId: string | null;
|
1086
|
+
sipServerUrl: string;
|
1087
|
+
sipUserName: string;
|
1088
|
+
webphoneLoginUser: string;
|
1089
|
+
extensionId: number;
|
1090
|
+
extensionName: string;
|
1091
|
+
telephonySignature: string | null;
|
1092
|
+
};
|
1093
|
+
}>>>;
|
889
1094
|
}, "strip", z.ZodTypeAny, {
|
890
1095
|
id: string;
|
891
1096
|
createdAt: Date;
|
@@ -898,6 +1103,50 @@ export declare const telephonyCdrContract: {
|
|
898
1103
|
extensionId: number;
|
899
1104
|
extensionName: string;
|
900
1105
|
telephonySignature: string | null;
|
1106
|
+
user?: {
|
1107
|
+
id: string;
|
1108
|
+
address: string | null;
|
1109
|
+
name: string;
|
1110
|
+
email: string;
|
1111
|
+
createdAt: Date;
|
1112
|
+
updatedAt: Date;
|
1113
|
+
deletedAt: Date | null;
|
1114
|
+
emailVerifiedAt: Date | null;
|
1115
|
+
password: string;
|
1116
|
+
phone: string | null;
|
1117
|
+
notificationCount: number | null;
|
1118
|
+
roles: {
|
1119
|
+
id: string;
|
1120
|
+
description: string | null;
|
1121
|
+
createdAt: Date;
|
1122
|
+
updatedAt: Date;
|
1123
|
+
deletedAt: Date | null;
|
1124
|
+
systemName: string;
|
1125
|
+
displayName: string;
|
1126
|
+
permissions: {
|
1127
|
+
id: string;
|
1128
|
+
description: string | null;
|
1129
|
+
createdAt: Date;
|
1130
|
+
updatedAt: Date;
|
1131
|
+
deletedAt: Date | null;
|
1132
|
+
systemName: string;
|
1133
|
+
displayName: string;
|
1134
|
+
}[];
|
1135
|
+
}[];
|
1136
|
+
extension: {
|
1137
|
+
id: string;
|
1138
|
+
createdAt: Date;
|
1139
|
+
updatedAt: Date;
|
1140
|
+
deletedAt: Date | null;
|
1141
|
+
userId: string | null;
|
1142
|
+
sipServerUrl: string;
|
1143
|
+
sipUserName: string;
|
1144
|
+
webphoneLoginUser: string;
|
1145
|
+
extensionId: number;
|
1146
|
+
extensionName: string;
|
1147
|
+
telephonySignature: string | null;
|
1148
|
+
};
|
1149
|
+
} | null | undefined;
|
901
1150
|
}, {
|
902
1151
|
id: string;
|
903
1152
|
createdAt: Date;
|
@@ -910,6 +1159,50 @@ export declare const telephonyCdrContract: {
|
|
910
1159
|
extensionId: number;
|
911
1160
|
extensionName: string;
|
912
1161
|
telephonySignature: string | null;
|
1162
|
+
user?: {
|
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
|
+
roles: {
|
1175
|
+
id: string;
|
1176
|
+
description: string | null;
|
1177
|
+
createdAt: Date;
|
1178
|
+
updatedAt: Date;
|
1179
|
+
deletedAt: Date | null;
|
1180
|
+
systemName: string;
|
1181
|
+
displayName: string;
|
1182
|
+
permissions: {
|
1183
|
+
id: string;
|
1184
|
+
description: string | null;
|
1185
|
+
createdAt: Date;
|
1186
|
+
updatedAt: Date;
|
1187
|
+
deletedAt: Date | null;
|
1188
|
+
systemName: string;
|
1189
|
+
displayName: string;
|
1190
|
+
}[];
|
1191
|
+
}[];
|
1192
|
+
extension: {
|
1193
|
+
id: string;
|
1194
|
+
createdAt: Date;
|
1195
|
+
updatedAt: Date;
|
1196
|
+
deletedAt: Date | null;
|
1197
|
+
userId: string | null;
|
1198
|
+
sipServerUrl: string;
|
1199
|
+
sipUserName: string;
|
1200
|
+
webphoneLoginUser: string;
|
1201
|
+
extensionId: number;
|
1202
|
+
extensionName: string;
|
1203
|
+
telephonySignature: string | null;
|
1204
|
+
};
|
1205
|
+
} | null | undefined;
|
913
1206
|
}>>>;
|
914
1207
|
telephonyQueueId: z.ZodNullable<z.ZodString>;
|
915
1208
|
contactId: z.ZodNullable<z.ZodString>;
|
@@ -1073,6 +1366,50 @@ export declare const telephonyCdrContract: {
|
|
1073
1366
|
extensionId: number;
|
1074
1367
|
extensionName: string;
|
1075
1368
|
telephonySignature: string | null;
|
1369
|
+
user?: {
|
1370
|
+
id: string;
|
1371
|
+
address: string | null;
|
1372
|
+
name: string;
|
1373
|
+
email: string;
|
1374
|
+
createdAt: Date;
|
1375
|
+
updatedAt: Date;
|
1376
|
+
deletedAt: Date | null;
|
1377
|
+
emailVerifiedAt: Date | null;
|
1378
|
+
password: string;
|
1379
|
+
phone: string | null;
|
1380
|
+
notificationCount: number | null;
|
1381
|
+
roles: {
|
1382
|
+
id: string;
|
1383
|
+
description: string | null;
|
1384
|
+
createdAt: Date;
|
1385
|
+
updatedAt: Date;
|
1386
|
+
deletedAt: Date | null;
|
1387
|
+
systemName: string;
|
1388
|
+
displayName: string;
|
1389
|
+
permissions: {
|
1390
|
+
id: string;
|
1391
|
+
description: string | null;
|
1392
|
+
createdAt: Date;
|
1393
|
+
updatedAt: Date;
|
1394
|
+
deletedAt: Date | null;
|
1395
|
+
systemName: string;
|
1396
|
+
displayName: string;
|
1397
|
+
}[];
|
1398
|
+
}[];
|
1399
|
+
extension: {
|
1400
|
+
id: string;
|
1401
|
+
createdAt: Date;
|
1402
|
+
updatedAt: Date;
|
1403
|
+
deletedAt: Date | null;
|
1404
|
+
userId: string | null;
|
1405
|
+
sipServerUrl: string;
|
1406
|
+
sipUserName: string;
|
1407
|
+
webphoneLoginUser: string;
|
1408
|
+
extensionId: number;
|
1409
|
+
extensionName: string;
|
1410
|
+
telephonySignature: string | null;
|
1411
|
+
};
|
1412
|
+
} | null | undefined;
|
1076
1413
|
} | null | undefined;
|
1077
1414
|
}, {
|
1078
1415
|
type: string;
|
@@ -1234,6 +1571,50 @@ export declare const telephonyCdrContract: {
|
|
1234
1571
|
extensionId: number;
|
1235
1572
|
extensionName: string;
|
1236
1573
|
telephonySignature: string | null;
|
1574
|
+
user?: {
|
1575
|
+
id: string;
|
1576
|
+
address: string | null;
|
1577
|
+
name: string;
|
1578
|
+
email: string;
|
1579
|
+
createdAt: Date;
|
1580
|
+
updatedAt: Date;
|
1581
|
+
deletedAt: Date | null;
|
1582
|
+
emailVerifiedAt: Date | null;
|
1583
|
+
password: string;
|
1584
|
+
phone: string | null;
|
1585
|
+
notificationCount: number | null;
|
1586
|
+
roles: {
|
1587
|
+
id: string;
|
1588
|
+
description: string | null;
|
1589
|
+
createdAt: Date;
|
1590
|
+
updatedAt: Date;
|
1591
|
+
deletedAt: Date | null;
|
1592
|
+
systemName: string;
|
1593
|
+
displayName: string;
|
1594
|
+
permissions: {
|
1595
|
+
id: string;
|
1596
|
+
description: string | null;
|
1597
|
+
createdAt: Date;
|
1598
|
+
updatedAt: Date;
|
1599
|
+
deletedAt: Date | null;
|
1600
|
+
systemName: string;
|
1601
|
+
displayName: string;
|
1602
|
+
}[];
|
1603
|
+
}[];
|
1604
|
+
extension: {
|
1605
|
+
id: string;
|
1606
|
+
createdAt: Date;
|
1607
|
+
updatedAt: Date;
|
1608
|
+
deletedAt: Date | null;
|
1609
|
+
userId: string | null;
|
1610
|
+
sipServerUrl: string;
|
1611
|
+
sipUserName: string;
|
1612
|
+
webphoneLoginUser: string;
|
1613
|
+
extensionId: number;
|
1614
|
+
extensionName: string;
|
1615
|
+
telephonySignature: string | null;
|
1616
|
+
};
|
1617
|
+
} | null | undefined;
|
1237
1618
|
} | null | undefined;
|
1238
1619
|
}>, "many">;
|
1239
1620
|
}, "strip", z.ZodTypeAny, {
|
@@ -1401,6 +1782,50 @@ export declare const telephonyCdrContract: {
|
|
1401
1782
|
extensionId: number;
|
1402
1783
|
extensionName: string;
|
1403
1784
|
telephonySignature: string | null;
|
1785
|
+
user?: {
|
1786
|
+
id: string;
|
1787
|
+
address: string | null;
|
1788
|
+
name: string;
|
1789
|
+
email: string;
|
1790
|
+
createdAt: Date;
|
1791
|
+
updatedAt: Date;
|
1792
|
+
deletedAt: Date | null;
|
1793
|
+
emailVerifiedAt: Date | null;
|
1794
|
+
password: string;
|
1795
|
+
phone: string | null;
|
1796
|
+
notificationCount: number | null;
|
1797
|
+
roles: {
|
1798
|
+
id: string;
|
1799
|
+
description: string | null;
|
1800
|
+
createdAt: Date;
|
1801
|
+
updatedAt: Date;
|
1802
|
+
deletedAt: Date | null;
|
1803
|
+
systemName: string;
|
1804
|
+
displayName: string;
|
1805
|
+
permissions: {
|
1806
|
+
id: string;
|
1807
|
+
description: string | null;
|
1808
|
+
createdAt: Date;
|
1809
|
+
updatedAt: Date;
|
1810
|
+
deletedAt: Date | null;
|
1811
|
+
systemName: string;
|
1812
|
+
displayName: string;
|
1813
|
+
}[];
|
1814
|
+
}[];
|
1815
|
+
extension: {
|
1816
|
+
id: string;
|
1817
|
+
createdAt: Date;
|
1818
|
+
updatedAt: Date;
|
1819
|
+
deletedAt: Date | null;
|
1820
|
+
userId: string | null;
|
1821
|
+
sipServerUrl: string;
|
1822
|
+
sipUserName: string;
|
1823
|
+
webphoneLoginUser: string;
|
1824
|
+
extensionId: number;
|
1825
|
+
extensionName: string;
|
1826
|
+
telephonySignature: string | null;
|
1827
|
+
};
|
1828
|
+
} | null | undefined;
|
1404
1829
|
} | null | undefined;
|
1405
1830
|
}[];
|
1406
1831
|
}, {
|
@@ -1568,7 +1993,51 @@ export declare const telephonyCdrContract: {
|
|
1568
1993
|
extensionId: number;
|
1569
1994
|
extensionName: string;
|
1570
1995
|
telephonySignature: string | null;
|
1571
|
-
|
1996
|
+
user?: {
|
1997
|
+
id: string;
|
1998
|
+
address: string | null;
|
1999
|
+
name: string;
|
2000
|
+
email: string;
|
2001
|
+
createdAt: Date;
|
2002
|
+
updatedAt: Date;
|
2003
|
+
deletedAt: Date | null;
|
2004
|
+
emailVerifiedAt: Date | null;
|
2005
|
+
password: string;
|
2006
|
+
phone: string | null;
|
2007
|
+
notificationCount: number | null;
|
2008
|
+
roles: {
|
2009
|
+
id: string;
|
2010
|
+
description: string | null;
|
2011
|
+
createdAt: Date;
|
2012
|
+
updatedAt: Date;
|
2013
|
+
deletedAt: Date | null;
|
2014
|
+
systemName: string;
|
2015
|
+
displayName: string;
|
2016
|
+
permissions: {
|
2017
|
+
id: string;
|
2018
|
+
description: string | null;
|
2019
|
+
createdAt: Date;
|
2020
|
+
updatedAt: Date;
|
2021
|
+
deletedAt: Date | null;
|
2022
|
+
systemName: string;
|
2023
|
+
displayName: string;
|
2024
|
+
}[];
|
2025
|
+
}[];
|
2026
|
+
extension: {
|
2027
|
+
id: string;
|
2028
|
+
createdAt: Date;
|
2029
|
+
updatedAt: Date;
|
2030
|
+
deletedAt: Date | null;
|
2031
|
+
userId: string | null;
|
2032
|
+
sipServerUrl: string;
|
2033
|
+
sipUserName: string;
|
2034
|
+
webphoneLoginUser: string;
|
2035
|
+
extensionId: number;
|
2036
|
+
extensionName: string;
|
2037
|
+
telephonySignature: string | null;
|
2038
|
+
};
|
2039
|
+
} | null | undefined;
|
2040
|
+
} | null | undefined;
|
1572
2041
|
}[];
|
1573
2042
|
}>;
|
1574
2043
|
401: z.ZodObject<{
|
@@ -2479,6 +2948,210 @@ export declare const telephonyCdrContract: {
|
|
2479
2948
|
extensionId: z.ZodNumber;
|
2480
2949
|
extensionName: z.ZodString;
|
2481
2950
|
telephonySignature: z.ZodNullable<z.ZodString>;
|
2951
|
+
user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2952
|
+
id: z.ZodString;
|
2953
|
+
createdAt: z.ZodDate;
|
2954
|
+
updatedAt: z.ZodDate;
|
2955
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2956
|
+
name: z.ZodString;
|
2957
|
+
email: z.ZodString;
|
2958
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
2959
|
+
password: z.ZodString;
|
2960
|
+
address: z.ZodNullable<z.ZodString>;
|
2961
|
+
phone: z.ZodNullable<z.ZodString>;
|
2962
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
2963
|
+
roles: z.ZodArray<z.ZodObject<{
|
2964
|
+
id: z.ZodString;
|
2965
|
+
createdAt: z.ZodDate;
|
2966
|
+
updatedAt: z.ZodDate;
|
2967
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2968
|
+
systemName: z.ZodString;
|
2969
|
+
displayName: z.ZodString;
|
2970
|
+
description: z.ZodNullable<z.ZodString>;
|
2971
|
+
permissions: z.ZodArray<z.ZodObject<{
|
2972
|
+
id: z.ZodString;
|
2973
|
+
createdAt: z.ZodDate;
|
2974
|
+
updatedAt: z.ZodDate;
|
2975
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2976
|
+
systemName: z.ZodString;
|
2977
|
+
displayName: z.ZodString;
|
2978
|
+
description: z.ZodNullable<z.ZodString>;
|
2979
|
+
}, "strip", z.ZodTypeAny, {
|
2980
|
+
id: string;
|
2981
|
+
description: string | null;
|
2982
|
+
createdAt: Date;
|
2983
|
+
updatedAt: Date;
|
2984
|
+
deletedAt: Date | null;
|
2985
|
+
systemName: string;
|
2986
|
+
displayName: string;
|
2987
|
+
}, {
|
2988
|
+
id: string;
|
2989
|
+
description: string | null;
|
2990
|
+
createdAt: Date;
|
2991
|
+
updatedAt: Date;
|
2992
|
+
deletedAt: Date | null;
|
2993
|
+
systemName: string;
|
2994
|
+
displayName: string;
|
2995
|
+
}>, "many">;
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
2997
|
+
id: string;
|
2998
|
+
description: string | null;
|
2999
|
+
createdAt: Date;
|
3000
|
+
updatedAt: Date;
|
3001
|
+
deletedAt: Date | null;
|
3002
|
+
systemName: string;
|
3003
|
+
displayName: string;
|
3004
|
+
permissions: {
|
3005
|
+
id: string;
|
3006
|
+
description: string | null;
|
3007
|
+
createdAt: Date;
|
3008
|
+
updatedAt: Date;
|
3009
|
+
deletedAt: Date | null;
|
3010
|
+
systemName: string;
|
3011
|
+
displayName: string;
|
3012
|
+
}[];
|
3013
|
+
}, {
|
3014
|
+
id: string;
|
3015
|
+
description: string | null;
|
3016
|
+
createdAt: Date;
|
3017
|
+
updatedAt: Date;
|
3018
|
+
deletedAt: Date | null;
|
3019
|
+
systemName: string;
|
3020
|
+
displayName: string;
|
3021
|
+
permissions: {
|
3022
|
+
id: string;
|
3023
|
+
description: string | null;
|
3024
|
+
createdAt: Date;
|
3025
|
+
updatedAt: Date;
|
3026
|
+
deletedAt: Date | null;
|
3027
|
+
systemName: string;
|
3028
|
+
displayName: string;
|
3029
|
+
}[];
|
3030
|
+
}>, "many">;
|
3031
|
+
extension: z.ZodObject<{
|
3032
|
+
id: z.ZodString;
|
3033
|
+
createdAt: z.ZodDate;
|
3034
|
+
updatedAt: z.ZodDate;
|
3035
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3036
|
+
userId: z.ZodNullable<z.ZodString>;
|
3037
|
+
sipServerUrl: z.ZodString;
|
3038
|
+
sipUserName: z.ZodString;
|
3039
|
+
webphoneLoginUser: z.ZodString;
|
3040
|
+
extensionId: z.ZodNumber;
|
3041
|
+
extensionName: z.ZodString;
|
3042
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3043
|
+
}, "strip", z.ZodTypeAny, {
|
3044
|
+
id: string;
|
3045
|
+
createdAt: Date;
|
3046
|
+
updatedAt: Date;
|
3047
|
+
deletedAt: Date | null;
|
3048
|
+
userId: string | null;
|
3049
|
+
sipServerUrl: string;
|
3050
|
+
sipUserName: string;
|
3051
|
+
webphoneLoginUser: string;
|
3052
|
+
extensionId: number;
|
3053
|
+
extensionName: string;
|
3054
|
+
telephonySignature: string | null;
|
3055
|
+
}, {
|
3056
|
+
id: string;
|
3057
|
+
createdAt: Date;
|
3058
|
+
updatedAt: Date;
|
3059
|
+
deletedAt: Date | null;
|
3060
|
+
userId: string | null;
|
3061
|
+
sipServerUrl: string;
|
3062
|
+
sipUserName: string;
|
3063
|
+
webphoneLoginUser: string;
|
3064
|
+
extensionId: number;
|
3065
|
+
extensionName: string;
|
3066
|
+
telephonySignature: string | null;
|
3067
|
+
}>;
|
3068
|
+
}, "strip", z.ZodTypeAny, {
|
3069
|
+
id: string;
|
3070
|
+
address: string | null;
|
3071
|
+
name: string;
|
3072
|
+
email: string;
|
3073
|
+
createdAt: Date;
|
3074
|
+
updatedAt: Date;
|
3075
|
+
deletedAt: Date | null;
|
3076
|
+
emailVerifiedAt: Date | null;
|
3077
|
+
password: string;
|
3078
|
+
phone: string | null;
|
3079
|
+
notificationCount: number | null;
|
3080
|
+
roles: {
|
3081
|
+
id: string;
|
3082
|
+
description: string | null;
|
3083
|
+
createdAt: Date;
|
3084
|
+
updatedAt: Date;
|
3085
|
+
deletedAt: Date | null;
|
3086
|
+
systemName: string;
|
3087
|
+
displayName: string;
|
3088
|
+
permissions: {
|
3089
|
+
id: string;
|
3090
|
+
description: string | null;
|
3091
|
+
createdAt: Date;
|
3092
|
+
updatedAt: Date;
|
3093
|
+
deletedAt: Date | null;
|
3094
|
+
systemName: string;
|
3095
|
+
displayName: string;
|
3096
|
+
}[];
|
3097
|
+
}[];
|
3098
|
+
extension: {
|
3099
|
+
id: string;
|
3100
|
+
createdAt: Date;
|
3101
|
+
updatedAt: Date;
|
3102
|
+
deletedAt: Date | null;
|
3103
|
+
userId: string | null;
|
3104
|
+
sipServerUrl: string;
|
3105
|
+
sipUserName: string;
|
3106
|
+
webphoneLoginUser: string;
|
3107
|
+
extensionId: number;
|
3108
|
+
extensionName: string;
|
3109
|
+
telephonySignature: string | null;
|
3110
|
+
};
|
3111
|
+
}, {
|
3112
|
+
id: string;
|
3113
|
+
address: string | null;
|
3114
|
+
name: string;
|
3115
|
+
email: string;
|
3116
|
+
createdAt: Date;
|
3117
|
+
updatedAt: Date;
|
3118
|
+
deletedAt: Date | null;
|
3119
|
+
emailVerifiedAt: Date | null;
|
3120
|
+
password: string;
|
3121
|
+
phone: string | null;
|
3122
|
+
notificationCount: number | null;
|
3123
|
+
roles: {
|
3124
|
+
id: string;
|
3125
|
+
description: string | null;
|
3126
|
+
createdAt: Date;
|
3127
|
+
updatedAt: Date;
|
3128
|
+
deletedAt: Date | null;
|
3129
|
+
systemName: string;
|
3130
|
+
displayName: string;
|
3131
|
+
permissions: {
|
3132
|
+
id: string;
|
3133
|
+
description: string | null;
|
3134
|
+
createdAt: Date;
|
3135
|
+
updatedAt: Date;
|
3136
|
+
deletedAt: Date | null;
|
3137
|
+
systemName: string;
|
3138
|
+
displayName: string;
|
3139
|
+
}[];
|
3140
|
+
}[];
|
3141
|
+
extension: {
|
3142
|
+
id: string;
|
3143
|
+
createdAt: Date;
|
3144
|
+
updatedAt: Date;
|
3145
|
+
deletedAt: Date | null;
|
3146
|
+
userId: string | null;
|
3147
|
+
sipServerUrl: string;
|
3148
|
+
sipUserName: string;
|
3149
|
+
webphoneLoginUser: string;
|
3150
|
+
extensionId: number;
|
3151
|
+
extensionName: string;
|
3152
|
+
telephonySignature: string | null;
|
3153
|
+
};
|
3154
|
+
}>>>;
|
2482
3155
|
}, "strip", z.ZodTypeAny, {
|
2483
3156
|
id: string;
|
2484
3157
|
createdAt: Date;
|
@@ -2491,6 +3164,50 @@ export declare const telephonyCdrContract: {
|
|
2491
3164
|
extensionId: number;
|
2492
3165
|
extensionName: string;
|
2493
3166
|
telephonySignature: string | null;
|
3167
|
+
user?: {
|
3168
|
+
id: string;
|
3169
|
+
address: string | null;
|
3170
|
+
name: string;
|
3171
|
+
email: string;
|
3172
|
+
createdAt: Date;
|
3173
|
+
updatedAt: Date;
|
3174
|
+
deletedAt: Date | null;
|
3175
|
+
emailVerifiedAt: Date | null;
|
3176
|
+
password: string;
|
3177
|
+
phone: string | null;
|
3178
|
+
notificationCount: number | null;
|
3179
|
+
roles: {
|
3180
|
+
id: string;
|
3181
|
+
description: string | null;
|
3182
|
+
createdAt: Date;
|
3183
|
+
updatedAt: Date;
|
3184
|
+
deletedAt: Date | null;
|
3185
|
+
systemName: string;
|
3186
|
+
displayName: string;
|
3187
|
+
permissions: {
|
3188
|
+
id: string;
|
3189
|
+
description: string | null;
|
3190
|
+
createdAt: Date;
|
3191
|
+
updatedAt: Date;
|
3192
|
+
deletedAt: Date | null;
|
3193
|
+
systemName: string;
|
3194
|
+
displayName: string;
|
3195
|
+
}[];
|
3196
|
+
}[];
|
3197
|
+
extension: {
|
3198
|
+
id: string;
|
3199
|
+
createdAt: Date;
|
3200
|
+
updatedAt: Date;
|
3201
|
+
deletedAt: Date | null;
|
3202
|
+
userId: string | null;
|
3203
|
+
sipServerUrl: string;
|
3204
|
+
sipUserName: string;
|
3205
|
+
webphoneLoginUser: string;
|
3206
|
+
extensionId: number;
|
3207
|
+
extensionName: string;
|
3208
|
+
telephonySignature: string | null;
|
3209
|
+
};
|
3210
|
+
} | null | undefined;
|
2494
3211
|
}, {
|
2495
3212
|
id: string;
|
2496
3213
|
createdAt: Date;
|
@@ -2503,6 +3220,50 @@ export declare const telephonyCdrContract: {
|
|
2503
3220
|
extensionId: number;
|
2504
3221
|
extensionName: string;
|
2505
3222
|
telephonySignature: string | null;
|
3223
|
+
user?: {
|
3224
|
+
id: string;
|
3225
|
+
address: string | null;
|
3226
|
+
name: string;
|
3227
|
+
email: string;
|
3228
|
+
createdAt: Date;
|
3229
|
+
updatedAt: Date;
|
3230
|
+
deletedAt: Date | null;
|
3231
|
+
emailVerifiedAt: Date | null;
|
3232
|
+
password: string;
|
3233
|
+
phone: string | null;
|
3234
|
+
notificationCount: number | null;
|
3235
|
+
roles: {
|
3236
|
+
id: string;
|
3237
|
+
description: string | null;
|
3238
|
+
createdAt: Date;
|
3239
|
+
updatedAt: Date;
|
3240
|
+
deletedAt: Date | null;
|
3241
|
+
systemName: string;
|
3242
|
+
displayName: string;
|
3243
|
+
permissions: {
|
3244
|
+
id: string;
|
3245
|
+
description: string | null;
|
3246
|
+
createdAt: Date;
|
3247
|
+
updatedAt: Date;
|
3248
|
+
deletedAt: Date | null;
|
3249
|
+
systemName: string;
|
3250
|
+
displayName: string;
|
3251
|
+
}[];
|
3252
|
+
}[];
|
3253
|
+
extension: {
|
3254
|
+
id: string;
|
3255
|
+
createdAt: Date;
|
3256
|
+
updatedAt: Date;
|
3257
|
+
deletedAt: Date | null;
|
3258
|
+
userId: string | null;
|
3259
|
+
sipServerUrl: string;
|
3260
|
+
sipUserName: string;
|
3261
|
+
webphoneLoginUser: string;
|
3262
|
+
extensionId: number;
|
3263
|
+
extensionName: string;
|
3264
|
+
telephonySignature: string | null;
|
3265
|
+
};
|
3266
|
+
} | null | undefined;
|
2506
3267
|
}>>>;
|
2507
3268
|
telephonyQueueId: z.ZodNullable<z.ZodString>;
|
2508
3269
|
contactId: z.ZodNullable<z.ZodString>;
|
@@ -2666,6 +3427,50 @@ export declare const telephonyCdrContract: {
|
|
2666
3427
|
extensionId: number;
|
2667
3428
|
extensionName: string;
|
2668
3429
|
telephonySignature: string | null;
|
3430
|
+
user?: {
|
3431
|
+
id: string;
|
3432
|
+
address: string | null;
|
3433
|
+
name: string;
|
3434
|
+
email: string;
|
3435
|
+
createdAt: Date;
|
3436
|
+
updatedAt: Date;
|
3437
|
+
deletedAt: Date | null;
|
3438
|
+
emailVerifiedAt: Date | null;
|
3439
|
+
password: string;
|
3440
|
+
phone: string | null;
|
3441
|
+
notificationCount: number | null;
|
3442
|
+
roles: {
|
3443
|
+
id: string;
|
3444
|
+
description: string | null;
|
3445
|
+
createdAt: Date;
|
3446
|
+
updatedAt: Date;
|
3447
|
+
deletedAt: Date | null;
|
3448
|
+
systemName: string;
|
3449
|
+
displayName: string;
|
3450
|
+
permissions: {
|
3451
|
+
id: string;
|
3452
|
+
description: string | null;
|
3453
|
+
createdAt: Date;
|
3454
|
+
updatedAt: Date;
|
3455
|
+
deletedAt: Date | null;
|
3456
|
+
systemName: string;
|
3457
|
+
displayName: string;
|
3458
|
+
}[];
|
3459
|
+
}[];
|
3460
|
+
extension: {
|
3461
|
+
id: string;
|
3462
|
+
createdAt: Date;
|
3463
|
+
updatedAt: Date;
|
3464
|
+
deletedAt: Date | null;
|
3465
|
+
userId: string | null;
|
3466
|
+
sipServerUrl: string;
|
3467
|
+
sipUserName: string;
|
3468
|
+
webphoneLoginUser: string;
|
3469
|
+
extensionId: number;
|
3470
|
+
extensionName: string;
|
3471
|
+
telephonySignature: string | null;
|
3472
|
+
};
|
3473
|
+
} | null | undefined;
|
2669
3474
|
} | null | undefined;
|
2670
3475
|
}, {
|
2671
3476
|
type: string;
|
@@ -2827,6 +3632,50 @@ export declare const telephonyCdrContract: {
|
|
2827
3632
|
extensionId: number;
|
2828
3633
|
extensionName: string;
|
2829
3634
|
telephonySignature: string | null;
|
3635
|
+
user?: {
|
3636
|
+
id: string;
|
3637
|
+
address: string | null;
|
3638
|
+
name: string;
|
3639
|
+
email: string;
|
3640
|
+
createdAt: Date;
|
3641
|
+
updatedAt: Date;
|
3642
|
+
deletedAt: Date | null;
|
3643
|
+
emailVerifiedAt: Date | null;
|
3644
|
+
password: string;
|
3645
|
+
phone: string | null;
|
3646
|
+
notificationCount: number | null;
|
3647
|
+
roles: {
|
3648
|
+
id: string;
|
3649
|
+
description: string | null;
|
3650
|
+
createdAt: Date;
|
3651
|
+
updatedAt: Date;
|
3652
|
+
deletedAt: Date | null;
|
3653
|
+
systemName: string;
|
3654
|
+
displayName: string;
|
3655
|
+
permissions: {
|
3656
|
+
id: string;
|
3657
|
+
description: string | null;
|
3658
|
+
createdAt: Date;
|
3659
|
+
updatedAt: Date;
|
3660
|
+
deletedAt: Date | null;
|
3661
|
+
systemName: string;
|
3662
|
+
displayName: string;
|
3663
|
+
}[];
|
3664
|
+
}[];
|
3665
|
+
extension: {
|
3666
|
+
id: string;
|
3667
|
+
createdAt: Date;
|
3668
|
+
updatedAt: Date;
|
3669
|
+
deletedAt: Date | null;
|
3670
|
+
userId: string | null;
|
3671
|
+
sipServerUrl: string;
|
3672
|
+
sipUserName: string;
|
3673
|
+
webphoneLoginUser: string;
|
3674
|
+
extensionId: number;
|
3675
|
+
extensionName: string;
|
3676
|
+
telephonySignature: string | null;
|
3677
|
+
};
|
3678
|
+
} | null | undefined;
|
2830
3679
|
} | null | undefined;
|
2831
3680
|
}>, "many">;
|
2832
3681
|
}, "strip", z.ZodTypeAny, {
|
@@ -2994,6 +3843,2129 @@ export declare const telephonyCdrContract: {
|
|
2994
3843
|
extensionId: number;
|
2995
3844
|
extensionName: string;
|
2996
3845
|
telephonySignature: string | null;
|
3846
|
+
user?: {
|
3847
|
+
id: string;
|
3848
|
+
address: string | null;
|
3849
|
+
name: string;
|
3850
|
+
email: string;
|
3851
|
+
createdAt: Date;
|
3852
|
+
updatedAt: Date;
|
3853
|
+
deletedAt: Date | null;
|
3854
|
+
emailVerifiedAt: Date | null;
|
3855
|
+
password: string;
|
3856
|
+
phone: string | null;
|
3857
|
+
notificationCount: number | null;
|
3858
|
+
roles: {
|
3859
|
+
id: string;
|
3860
|
+
description: string | null;
|
3861
|
+
createdAt: Date;
|
3862
|
+
updatedAt: Date;
|
3863
|
+
deletedAt: Date | null;
|
3864
|
+
systemName: string;
|
3865
|
+
displayName: string;
|
3866
|
+
permissions: {
|
3867
|
+
id: string;
|
3868
|
+
description: string | null;
|
3869
|
+
createdAt: Date;
|
3870
|
+
updatedAt: Date;
|
3871
|
+
deletedAt: Date | null;
|
3872
|
+
systemName: string;
|
3873
|
+
displayName: string;
|
3874
|
+
}[];
|
3875
|
+
}[];
|
3876
|
+
extension: {
|
3877
|
+
id: string;
|
3878
|
+
createdAt: Date;
|
3879
|
+
updatedAt: Date;
|
3880
|
+
deletedAt: Date | null;
|
3881
|
+
userId: string | null;
|
3882
|
+
sipServerUrl: string;
|
3883
|
+
sipUserName: string;
|
3884
|
+
webphoneLoginUser: string;
|
3885
|
+
extensionId: number;
|
3886
|
+
extensionName: string;
|
3887
|
+
telephonySignature: string | null;
|
3888
|
+
};
|
3889
|
+
} | null | undefined;
|
3890
|
+
} | null | undefined;
|
3891
|
+
}[];
|
3892
|
+
}, {
|
3893
|
+
total: number;
|
3894
|
+
page: number;
|
3895
|
+
pageSize: number;
|
3896
|
+
requestId: string;
|
3897
|
+
telephonyCdrs: {
|
3898
|
+
type: string;
|
3899
|
+
id: string;
|
3900
|
+
recording: string | null;
|
3901
|
+
status: string;
|
3902
|
+
createdAt: Date;
|
3903
|
+
updatedAt: Date;
|
3904
|
+
deletedAt: Date | null;
|
3905
|
+
extensionId: string | null;
|
3906
|
+
uniqueCallId: string;
|
3907
|
+
timeStart: string;
|
3908
|
+
callFrom: string;
|
3909
|
+
callTo: string;
|
3910
|
+
callDuration: number | null;
|
3911
|
+
talkDuration: number | null;
|
3912
|
+
srcTrunkName: string | null;
|
3913
|
+
dstTrunkName: string | null;
|
3914
|
+
pinCode: string | null;
|
3915
|
+
didNumber: string | null;
|
3916
|
+
agentRingTime: number | null;
|
3917
|
+
uploadId: string | null;
|
3918
|
+
serialNumber: string | null;
|
3919
|
+
telephonyQueueId: string | null;
|
3920
|
+
contactId: string | null;
|
3921
|
+
contact?: {
|
3922
|
+
id: string;
|
3923
|
+
channel: string | null;
|
3924
|
+
address: string | null;
|
3925
|
+
name: string;
|
3926
|
+
createdAt: Date;
|
3927
|
+
updatedAt: Date;
|
3928
|
+
deletedAt: Date | null;
|
3929
|
+
customFields: {
|
3930
|
+
id: string;
|
3931
|
+
createdAt: Date;
|
3932
|
+
updatedAt: Date;
|
3933
|
+
deletedAt: Date | null;
|
3934
|
+
attribute: {
|
3935
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
3936
|
+
id: string;
|
3937
|
+
position: number;
|
3938
|
+
createdAt: Date;
|
3939
|
+
updatedAt: Date;
|
3940
|
+
deletedAt: Date | null;
|
3941
|
+
isDefault: boolean;
|
3942
|
+
systemName: string;
|
3943
|
+
displayName: string;
|
3944
|
+
isArchived: boolean;
|
3945
|
+
isRequired: boolean;
|
3946
|
+
isUnique: boolean;
|
3947
|
+
};
|
3948
|
+
textValue: string | null;
|
3949
|
+
booleanValue: boolean | null;
|
3950
|
+
numberValue: number | null;
|
3951
|
+
dateValue: Date | null;
|
3952
|
+
uploads: {
|
3953
|
+
id: string;
|
3954
|
+
createdAt: Date;
|
3955
|
+
updatedAt: Date;
|
3956
|
+
deletedAt: Date | null;
|
3957
|
+
customFieldId: string;
|
3958
|
+
upload: {
|
3959
|
+
id: string;
|
3960
|
+
createdAt: Date;
|
3961
|
+
updatedAt: Date;
|
3962
|
+
deletedAt: Date | null;
|
3963
|
+
fileName: string;
|
3964
|
+
fileKey: string;
|
3965
|
+
bucketName: string;
|
3966
|
+
fileSize: number;
|
3967
|
+
fileUrl: string | null;
|
3968
|
+
};
|
3969
|
+
}[];
|
3970
|
+
}[];
|
3971
|
+
notes: string | null;
|
3972
|
+
contactProfile: string | null;
|
3973
|
+
socialProfileUrl: string | null;
|
3974
|
+
tags: {
|
3975
|
+
id: string;
|
3976
|
+
name: string;
|
3977
|
+
createdAt: Date;
|
3978
|
+
updatedAt: Date;
|
3979
|
+
deletedAt: Date | null;
|
3980
|
+
}[];
|
3981
|
+
company: {
|
3982
|
+
id: string;
|
3983
|
+
createdAt: Date;
|
3984
|
+
updatedAt: Date;
|
3985
|
+
deletedAt: Date | null;
|
3986
|
+
address?: string | null | undefined;
|
3987
|
+
name?: string | undefined;
|
3988
|
+
phone?: string | null | undefined;
|
3989
|
+
industry?: string | null | undefined;
|
3990
|
+
} | null;
|
3991
|
+
contactEmails: {
|
3992
|
+
id: string;
|
3993
|
+
isPrimary: boolean;
|
3994
|
+
email: string;
|
3995
|
+
createdAt: Date;
|
3996
|
+
updatedAt: Date;
|
3997
|
+
deletedAt: Date | null;
|
3998
|
+
}[];
|
3999
|
+
contactPhones: {
|
4000
|
+
id: string;
|
4001
|
+
isPrimary: boolean;
|
4002
|
+
createdAt: Date;
|
4003
|
+
updatedAt: Date;
|
4004
|
+
deletedAt: Date | null;
|
4005
|
+
phone: string;
|
4006
|
+
}[];
|
4007
|
+
activityLogs?: {
|
4008
|
+
id: string;
|
4009
|
+
description: string;
|
4010
|
+
createdAt: Date;
|
4011
|
+
updatedAt: Date;
|
4012
|
+
deletedAt: Date | null;
|
4013
|
+
entityId: string;
|
4014
|
+
entityType: {
|
4015
|
+
id: string;
|
4016
|
+
description: string | null;
|
4017
|
+
createdAt: Date;
|
4018
|
+
updatedAt: Date;
|
4019
|
+
deletedAt: Date | null;
|
4020
|
+
entity: string;
|
4021
|
+
};
|
4022
|
+
}[] | undefined;
|
4023
|
+
} | undefined;
|
4024
|
+
telephonyQueue?: {
|
4025
|
+
id: string;
|
4026
|
+
createdAt: Date;
|
4027
|
+
updatedAt: Date;
|
4028
|
+
deletedAt: Date | null;
|
4029
|
+
queueId: number;
|
4030
|
+
queueName: string;
|
4031
|
+
queueNumber: string;
|
4032
|
+
maximumWaitingTime: number;
|
4033
|
+
} | null | undefined;
|
4034
|
+
upload?: {
|
4035
|
+
id: string;
|
4036
|
+
createdAt: Date;
|
4037
|
+
updatedAt: Date;
|
4038
|
+
deletedAt: Date | null;
|
4039
|
+
fileName: string;
|
4040
|
+
fileKey: string;
|
4041
|
+
bucketName: string;
|
4042
|
+
fileSize: number;
|
4043
|
+
fileUrl: string | null;
|
4044
|
+
} | null | undefined;
|
4045
|
+
extension?: {
|
4046
|
+
id: string;
|
4047
|
+
createdAt: Date;
|
4048
|
+
updatedAt: Date;
|
4049
|
+
deletedAt: Date | null;
|
4050
|
+
userId: string | null;
|
4051
|
+
sipServerUrl: string;
|
4052
|
+
sipUserName: string;
|
4053
|
+
webphoneLoginUser: string;
|
4054
|
+
extensionId: number;
|
4055
|
+
extensionName: string;
|
4056
|
+
telephonySignature: string | null;
|
4057
|
+
user?: {
|
4058
|
+
id: string;
|
4059
|
+
address: string | null;
|
4060
|
+
name: string;
|
4061
|
+
email: string;
|
4062
|
+
createdAt: Date;
|
4063
|
+
updatedAt: Date;
|
4064
|
+
deletedAt: Date | null;
|
4065
|
+
emailVerifiedAt: Date | null;
|
4066
|
+
password: string;
|
4067
|
+
phone: string | null;
|
4068
|
+
notificationCount: number | null;
|
4069
|
+
roles: {
|
4070
|
+
id: string;
|
4071
|
+
description: string | null;
|
4072
|
+
createdAt: Date;
|
4073
|
+
updatedAt: Date;
|
4074
|
+
deletedAt: Date | null;
|
4075
|
+
systemName: string;
|
4076
|
+
displayName: string;
|
4077
|
+
permissions: {
|
4078
|
+
id: string;
|
4079
|
+
description: string | null;
|
4080
|
+
createdAt: Date;
|
4081
|
+
updatedAt: Date;
|
4082
|
+
deletedAt: Date | null;
|
4083
|
+
systemName: string;
|
4084
|
+
displayName: string;
|
4085
|
+
}[];
|
4086
|
+
}[];
|
4087
|
+
extension: {
|
4088
|
+
id: string;
|
4089
|
+
createdAt: Date;
|
4090
|
+
updatedAt: Date;
|
4091
|
+
deletedAt: Date | null;
|
4092
|
+
userId: string | null;
|
4093
|
+
sipServerUrl: string;
|
4094
|
+
sipUserName: string;
|
4095
|
+
webphoneLoginUser: string;
|
4096
|
+
extensionId: number;
|
4097
|
+
extensionName: string;
|
4098
|
+
telephonySignature: string | null;
|
4099
|
+
};
|
4100
|
+
} | null | undefined;
|
4101
|
+
} | null | undefined;
|
4102
|
+
}[];
|
4103
|
+
}>;
|
4104
|
+
401: z.ZodObject<{
|
4105
|
+
message: z.ZodString;
|
4106
|
+
error: z.ZodAny;
|
4107
|
+
}, "strip", z.ZodTypeAny, {
|
4108
|
+
message: string;
|
4109
|
+
error?: any;
|
4110
|
+
}, {
|
4111
|
+
message: string;
|
4112
|
+
error?: any;
|
4113
|
+
}>;
|
4114
|
+
};
|
4115
|
+
path: "telephony-cdr/recordings";
|
4116
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
4117
|
+
'x-tenant': z.ZodString;
|
4118
|
+
authorization: z.ZodString;
|
4119
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
4120
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
4121
|
+
}, "strip", z.ZodTypeAny, {
|
4122
|
+
'x-tenant': string;
|
4123
|
+
authorization: string;
|
4124
|
+
'x-client-timezone': string;
|
4125
|
+
'x-code'?: string | undefined;
|
4126
|
+
}, {
|
4127
|
+
'x-tenant': string;
|
4128
|
+
authorization: string;
|
4129
|
+
'x-code'?: string | undefined;
|
4130
|
+
'x-client-timezone'?: string | undefined;
|
4131
|
+
}>>>;
|
4132
|
+
};
|
4133
|
+
getRecentCall: {
|
4134
|
+
summary: "Get recent telephony cdr.";
|
4135
|
+
method: "GET";
|
4136
|
+
query: z.ZodObject<{
|
4137
|
+
page: z.ZodDefault<z.ZodNumber>;
|
4138
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
4139
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4140
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4141
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
4142
|
+
callTo: z.ZodOptional<z.ZodString>;
|
4143
|
+
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4144
|
+
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4145
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
4146
|
+
agentId: z.ZodOptional<z.ZodString>;
|
4147
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4148
|
+
callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
|
4149
|
+
queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
4150
|
+
notes: z.ZodOptional<z.ZodString>;
|
4151
|
+
}, "strip", z.ZodTypeAny, {
|
4152
|
+
page: number;
|
4153
|
+
pageSize: number;
|
4154
|
+
type?: string[] | undefined;
|
4155
|
+
status?: string[] | undefined;
|
4156
|
+
callFrom?: string | undefined;
|
4157
|
+
callTo?: string | undefined;
|
4158
|
+
result?: string[] | undefined;
|
4159
|
+
callTags?: string[] | undefined;
|
4160
|
+
selectedDate?: string | undefined;
|
4161
|
+
agentId?: string | undefined;
|
4162
|
+
contact?: string[] | undefined;
|
4163
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
4164
|
+
queueIds?: string[] | undefined;
|
4165
|
+
notes?: string | undefined;
|
4166
|
+
}, {
|
4167
|
+
page?: number | undefined;
|
4168
|
+
pageSize?: number | undefined;
|
4169
|
+
type?: string[] | undefined;
|
4170
|
+
status?: string[] | undefined;
|
4171
|
+
callFrom?: string | undefined;
|
4172
|
+
callTo?: string | undefined;
|
4173
|
+
result?: string[] | undefined;
|
4174
|
+
callTags?: string[] | undefined;
|
4175
|
+
selectedDate?: string | undefined;
|
4176
|
+
agentId?: string | undefined;
|
4177
|
+
contact?: string[] | undefined;
|
4178
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
4179
|
+
queueIds?: string[] | undefined;
|
4180
|
+
notes?: string | undefined;
|
4181
|
+
}>;
|
4182
|
+
responses: {
|
4183
|
+
200: z.ZodObject<{
|
4184
|
+
requestId: z.ZodString;
|
4185
|
+
total: z.ZodNumber;
|
4186
|
+
page: z.ZodNumber;
|
4187
|
+
pageSize: z.ZodNumber;
|
4188
|
+
telephonyCdrs: z.ZodArray<z.ZodObject<{
|
4189
|
+
id: z.ZodString;
|
4190
|
+
createdAt: z.ZodDate;
|
4191
|
+
updatedAt: z.ZodDate;
|
4192
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4193
|
+
uniqueCallId: z.ZodString;
|
4194
|
+
timeStart: z.ZodString;
|
4195
|
+
callFrom: z.ZodString;
|
4196
|
+
callTo: z.ZodString;
|
4197
|
+
callDuration: z.ZodNullable<z.ZodNumber>;
|
4198
|
+
talkDuration: z.ZodNullable<z.ZodNumber>;
|
4199
|
+
srcTrunkName: z.ZodNullable<z.ZodString>;
|
4200
|
+
dstTrunkName: z.ZodNullable<z.ZodString>;
|
4201
|
+
contact: z.ZodOptional<z.ZodObject<{
|
4202
|
+
id: z.ZodString;
|
4203
|
+
createdAt: z.ZodDate;
|
4204
|
+
updatedAt: z.ZodDate;
|
4205
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4206
|
+
name: z.ZodString;
|
4207
|
+
address: z.ZodNullable<z.ZodString>;
|
4208
|
+
channel: z.ZodNullable<z.ZodString>;
|
4209
|
+
notes: z.ZodNullable<z.ZodString>;
|
4210
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
4211
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
4212
|
+
tags: z.ZodArray<z.ZodObject<{
|
4213
|
+
id: z.ZodString;
|
4214
|
+
createdAt: z.ZodDate;
|
4215
|
+
updatedAt: z.ZodDate;
|
4216
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4217
|
+
name: z.ZodString;
|
4218
|
+
}, "strip", z.ZodTypeAny, {
|
4219
|
+
id: string;
|
4220
|
+
name: string;
|
4221
|
+
createdAt: Date;
|
4222
|
+
updatedAt: Date;
|
4223
|
+
deletedAt: Date | null;
|
4224
|
+
}, {
|
4225
|
+
id: string;
|
4226
|
+
name: string;
|
4227
|
+
createdAt: Date;
|
4228
|
+
updatedAt: Date;
|
4229
|
+
deletedAt: Date | null;
|
4230
|
+
}>, "many">;
|
4231
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
4232
|
+
id: z.ZodString;
|
4233
|
+
createdAt: z.ZodDate;
|
4234
|
+
updatedAt: z.ZodDate;
|
4235
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4236
|
+
name: z.ZodOptional<z.ZodString>;
|
4237
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
4238
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
4239
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
4240
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4241
|
+
id: z.ZodString;
|
4242
|
+
createdAt: z.ZodDate;
|
4243
|
+
updatedAt: z.ZodDate;
|
4244
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4245
|
+
textValue: z.ZodNullable<z.ZodString>;
|
4246
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
4247
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
4248
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
4249
|
+
attribute: z.ZodObject<Omit<{
|
4250
|
+
id: z.ZodString;
|
4251
|
+
createdAt: z.ZodDate;
|
4252
|
+
updatedAt: z.ZodDate;
|
4253
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4254
|
+
systemName: z.ZodString;
|
4255
|
+
displayName: z.ZodString;
|
4256
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
4257
|
+
position: z.ZodNumber;
|
4258
|
+
isDefault: z.ZodBoolean;
|
4259
|
+
isArchived: z.ZodBoolean;
|
4260
|
+
isRequired: z.ZodBoolean;
|
4261
|
+
isUnique: z.ZodBoolean;
|
4262
|
+
options: z.ZodArray<z.ZodObject<{
|
4263
|
+
position: z.ZodNumber;
|
4264
|
+
value: z.ZodString;
|
4265
|
+
label: z.ZodString;
|
4266
|
+
isDefault: z.ZodBoolean;
|
4267
|
+
id: z.ZodString;
|
4268
|
+
}, "strip", z.ZodTypeAny, {
|
4269
|
+
id: string;
|
4270
|
+
position: number;
|
4271
|
+
value: string;
|
4272
|
+
label: string;
|
4273
|
+
isDefault: boolean;
|
4274
|
+
}, {
|
4275
|
+
id: string;
|
4276
|
+
position: number;
|
4277
|
+
value: string;
|
4278
|
+
label: string;
|
4279
|
+
isDefault: boolean;
|
4280
|
+
}>, "many">;
|
4281
|
+
group: z.ZodObject<{
|
4282
|
+
id: z.ZodString;
|
4283
|
+
createdAt: z.ZodDate;
|
4284
|
+
updatedAt: z.ZodDate;
|
4285
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4286
|
+
systemName: z.ZodString;
|
4287
|
+
displayName: z.ZodString;
|
4288
|
+
}, "strip", z.ZodTypeAny, {
|
4289
|
+
id: string;
|
4290
|
+
createdAt: Date;
|
4291
|
+
updatedAt: Date;
|
4292
|
+
deletedAt: Date | null;
|
4293
|
+
systemName: string;
|
4294
|
+
displayName: string;
|
4295
|
+
}, {
|
4296
|
+
id: string;
|
4297
|
+
createdAt: Date;
|
4298
|
+
updatedAt: Date;
|
4299
|
+
deletedAt: Date | null;
|
4300
|
+
systemName: string;
|
4301
|
+
displayName: string;
|
4302
|
+
}>;
|
4303
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
4304
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4305
|
+
id: string;
|
4306
|
+
position: number;
|
4307
|
+
createdAt: Date;
|
4308
|
+
updatedAt: Date;
|
4309
|
+
deletedAt: Date | null;
|
4310
|
+
isDefault: boolean;
|
4311
|
+
systemName: string;
|
4312
|
+
displayName: string;
|
4313
|
+
isArchived: boolean;
|
4314
|
+
isRequired: boolean;
|
4315
|
+
isUnique: boolean;
|
4316
|
+
}, {
|
4317
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4318
|
+
id: string;
|
4319
|
+
position: number;
|
4320
|
+
createdAt: Date;
|
4321
|
+
updatedAt: Date;
|
4322
|
+
deletedAt: Date | null;
|
4323
|
+
isDefault: boolean;
|
4324
|
+
systemName: string;
|
4325
|
+
displayName: string;
|
4326
|
+
isArchived: boolean;
|
4327
|
+
isRequired: boolean;
|
4328
|
+
isUnique: boolean;
|
4329
|
+
}>;
|
4330
|
+
}, "strip", z.ZodTypeAny, {
|
4331
|
+
id: string;
|
4332
|
+
createdAt: Date;
|
4333
|
+
updatedAt: Date;
|
4334
|
+
deletedAt: Date | null;
|
4335
|
+
attribute: {
|
4336
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4337
|
+
id: string;
|
4338
|
+
position: number;
|
4339
|
+
createdAt: Date;
|
4340
|
+
updatedAt: Date;
|
4341
|
+
deletedAt: Date | null;
|
4342
|
+
isDefault: boolean;
|
4343
|
+
systemName: string;
|
4344
|
+
displayName: string;
|
4345
|
+
isArchived: boolean;
|
4346
|
+
isRequired: boolean;
|
4347
|
+
isUnique: boolean;
|
4348
|
+
};
|
4349
|
+
textValue: string | null;
|
4350
|
+
booleanValue: boolean | null;
|
4351
|
+
numberValue: number | null;
|
4352
|
+
dateValue: Date | null;
|
4353
|
+
}, {
|
4354
|
+
id: string;
|
4355
|
+
createdAt: Date;
|
4356
|
+
updatedAt: Date;
|
4357
|
+
deletedAt: Date | null;
|
4358
|
+
attribute: {
|
4359
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4360
|
+
id: string;
|
4361
|
+
position: number;
|
4362
|
+
createdAt: Date;
|
4363
|
+
updatedAt: Date;
|
4364
|
+
deletedAt: Date | null;
|
4365
|
+
isDefault: boolean;
|
4366
|
+
systemName: string;
|
4367
|
+
displayName: string;
|
4368
|
+
isArchived: boolean;
|
4369
|
+
isRequired: boolean;
|
4370
|
+
isUnique: boolean;
|
4371
|
+
};
|
4372
|
+
textValue: string | null;
|
4373
|
+
booleanValue: boolean | null;
|
4374
|
+
numberValue: number | null;
|
4375
|
+
dateValue: Date | null;
|
4376
|
+
}>, "many">>;
|
4377
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
4378
|
+
id: string;
|
4379
|
+
createdAt: Date;
|
4380
|
+
updatedAt: Date;
|
4381
|
+
deletedAt: Date | null;
|
4382
|
+
address?: string | null | undefined;
|
4383
|
+
name?: string | undefined;
|
4384
|
+
phone?: string | null | undefined;
|
4385
|
+
industry?: string | null | undefined;
|
4386
|
+
}, {
|
4387
|
+
id: string;
|
4388
|
+
createdAt: Date;
|
4389
|
+
updatedAt: Date;
|
4390
|
+
deletedAt: Date | null;
|
4391
|
+
address?: string | null | undefined;
|
4392
|
+
name?: string | undefined;
|
4393
|
+
phone?: string | null | undefined;
|
4394
|
+
industry?: string | null | undefined;
|
4395
|
+
}>>;
|
4396
|
+
customFields: z.ZodArray<z.ZodObject<{
|
4397
|
+
id: z.ZodString;
|
4398
|
+
createdAt: z.ZodDate;
|
4399
|
+
updatedAt: z.ZodDate;
|
4400
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4401
|
+
textValue: z.ZodNullable<z.ZodString>;
|
4402
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
4403
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
4404
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
4405
|
+
attribute: z.ZodObject<Omit<{
|
4406
|
+
id: z.ZodString;
|
4407
|
+
createdAt: z.ZodDate;
|
4408
|
+
updatedAt: z.ZodDate;
|
4409
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4410
|
+
systemName: z.ZodString;
|
4411
|
+
displayName: z.ZodString;
|
4412
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
4413
|
+
position: z.ZodNumber;
|
4414
|
+
isDefault: z.ZodBoolean;
|
4415
|
+
isArchived: z.ZodBoolean;
|
4416
|
+
isRequired: z.ZodBoolean;
|
4417
|
+
isUnique: z.ZodBoolean;
|
4418
|
+
options: z.ZodArray<z.ZodObject<{
|
4419
|
+
position: z.ZodNumber;
|
4420
|
+
value: z.ZodString;
|
4421
|
+
label: z.ZodString;
|
4422
|
+
isDefault: z.ZodBoolean;
|
4423
|
+
id: z.ZodString;
|
4424
|
+
}, "strip", z.ZodTypeAny, {
|
4425
|
+
id: string;
|
4426
|
+
position: number;
|
4427
|
+
value: string;
|
4428
|
+
label: string;
|
4429
|
+
isDefault: boolean;
|
4430
|
+
}, {
|
4431
|
+
id: string;
|
4432
|
+
position: number;
|
4433
|
+
value: string;
|
4434
|
+
label: string;
|
4435
|
+
isDefault: boolean;
|
4436
|
+
}>, "many">;
|
4437
|
+
group: z.ZodObject<{
|
4438
|
+
id: z.ZodString;
|
4439
|
+
createdAt: z.ZodDate;
|
4440
|
+
updatedAt: z.ZodDate;
|
4441
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4442
|
+
systemName: z.ZodString;
|
4443
|
+
displayName: z.ZodString;
|
4444
|
+
}, "strip", z.ZodTypeAny, {
|
4445
|
+
id: string;
|
4446
|
+
createdAt: Date;
|
4447
|
+
updatedAt: Date;
|
4448
|
+
deletedAt: Date | null;
|
4449
|
+
systemName: string;
|
4450
|
+
displayName: string;
|
4451
|
+
}, {
|
4452
|
+
id: string;
|
4453
|
+
createdAt: Date;
|
4454
|
+
updatedAt: Date;
|
4455
|
+
deletedAt: Date | null;
|
4456
|
+
systemName: string;
|
4457
|
+
displayName: string;
|
4458
|
+
}>;
|
4459
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
4460
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4461
|
+
id: string;
|
4462
|
+
position: number;
|
4463
|
+
createdAt: Date;
|
4464
|
+
updatedAt: Date;
|
4465
|
+
deletedAt: Date | null;
|
4466
|
+
isDefault: boolean;
|
4467
|
+
systemName: string;
|
4468
|
+
displayName: string;
|
4469
|
+
isArchived: boolean;
|
4470
|
+
isRequired: boolean;
|
4471
|
+
isUnique: boolean;
|
4472
|
+
}, {
|
4473
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4474
|
+
id: string;
|
4475
|
+
position: number;
|
4476
|
+
createdAt: Date;
|
4477
|
+
updatedAt: Date;
|
4478
|
+
deletedAt: Date | null;
|
4479
|
+
isDefault: boolean;
|
4480
|
+
systemName: string;
|
4481
|
+
displayName: string;
|
4482
|
+
isArchived: boolean;
|
4483
|
+
isRequired: boolean;
|
4484
|
+
isUnique: boolean;
|
4485
|
+
}>;
|
4486
|
+
uploads: z.ZodArray<z.ZodObject<{
|
4487
|
+
id: z.ZodString;
|
4488
|
+
createdAt: z.ZodDate;
|
4489
|
+
updatedAt: z.ZodDate;
|
4490
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4491
|
+
customFieldId: z.ZodString;
|
4492
|
+
upload: z.ZodObject<{
|
4493
|
+
id: z.ZodString;
|
4494
|
+
createdAt: z.ZodDate;
|
4495
|
+
updatedAt: z.ZodDate;
|
4496
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4497
|
+
bucketName: z.ZodString;
|
4498
|
+
fileName: z.ZodString;
|
4499
|
+
fileSize: z.ZodNumber;
|
4500
|
+
fileKey: z.ZodString;
|
4501
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
4502
|
+
}, "strip", z.ZodTypeAny, {
|
4503
|
+
id: string;
|
4504
|
+
createdAt: Date;
|
4505
|
+
updatedAt: Date;
|
4506
|
+
deletedAt: Date | null;
|
4507
|
+
fileName: string;
|
4508
|
+
fileKey: string;
|
4509
|
+
bucketName: string;
|
4510
|
+
fileSize: number;
|
4511
|
+
fileUrl: string | null;
|
4512
|
+
}, {
|
4513
|
+
id: string;
|
4514
|
+
createdAt: Date;
|
4515
|
+
updatedAt: Date;
|
4516
|
+
deletedAt: Date | null;
|
4517
|
+
fileName: string;
|
4518
|
+
fileKey: string;
|
4519
|
+
bucketName: string;
|
4520
|
+
fileSize: number;
|
4521
|
+
fileUrl: string | null;
|
4522
|
+
}>;
|
4523
|
+
}, "strip", z.ZodTypeAny, {
|
4524
|
+
id: string;
|
4525
|
+
createdAt: Date;
|
4526
|
+
updatedAt: Date;
|
4527
|
+
deletedAt: Date | null;
|
4528
|
+
customFieldId: string;
|
4529
|
+
upload: {
|
4530
|
+
id: string;
|
4531
|
+
createdAt: Date;
|
4532
|
+
updatedAt: Date;
|
4533
|
+
deletedAt: Date | null;
|
4534
|
+
fileName: string;
|
4535
|
+
fileKey: string;
|
4536
|
+
bucketName: string;
|
4537
|
+
fileSize: number;
|
4538
|
+
fileUrl: string | null;
|
4539
|
+
};
|
4540
|
+
}, {
|
4541
|
+
id: string;
|
4542
|
+
createdAt: Date;
|
4543
|
+
updatedAt: Date;
|
4544
|
+
deletedAt: Date | null;
|
4545
|
+
customFieldId: string;
|
4546
|
+
upload: {
|
4547
|
+
id: string;
|
4548
|
+
createdAt: Date;
|
4549
|
+
updatedAt: Date;
|
4550
|
+
deletedAt: Date | null;
|
4551
|
+
fileName: string;
|
4552
|
+
fileKey: string;
|
4553
|
+
bucketName: string;
|
4554
|
+
fileSize: number;
|
4555
|
+
fileUrl: string | null;
|
4556
|
+
};
|
4557
|
+
}>, "many">;
|
4558
|
+
}, "strip", z.ZodTypeAny, {
|
4559
|
+
id: string;
|
4560
|
+
createdAt: Date;
|
4561
|
+
updatedAt: Date;
|
4562
|
+
deletedAt: Date | null;
|
4563
|
+
attribute: {
|
4564
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4565
|
+
id: string;
|
4566
|
+
position: number;
|
4567
|
+
createdAt: Date;
|
4568
|
+
updatedAt: Date;
|
4569
|
+
deletedAt: Date | null;
|
4570
|
+
isDefault: boolean;
|
4571
|
+
systemName: string;
|
4572
|
+
displayName: string;
|
4573
|
+
isArchived: boolean;
|
4574
|
+
isRequired: boolean;
|
4575
|
+
isUnique: boolean;
|
4576
|
+
};
|
4577
|
+
textValue: string | null;
|
4578
|
+
booleanValue: boolean | null;
|
4579
|
+
numberValue: number | null;
|
4580
|
+
dateValue: Date | null;
|
4581
|
+
uploads: {
|
4582
|
+
id: string;
|
4583
|
+
createdAt: Date;
|
4584
|
+
updatedAt: Date;
|
4585
|
+
deletedAt: Date | null;
|
4586
|
+
customFieldId: string;
|
4587
|
+
upload: {
|
4588
|
+
id: string;
|
4589
|
+
createdAt: Date;
|
4590
|
+
updatedAt: Date;
|
4591
|
+
deletedAt: Date | null;
|
4592
|
+
fileName: string;
|
4593
|
+
fileKey: string;
|
4594
|
+
bucketName: string;
|
4595
|
+
fileSize: number;
|
4596
|
+
fileUrl: string | null;
|
4597
|
+
};
|
4598
|
+
}[];
|
4599
|
+
}, {
|
4600
|
+
id: string;
|
4601
|
+
createdAt: Date;
|
4602
|
+
updatedAt: Date;
|
4603
|
+
deletedAt: Date | null;
|
4604
|
+
attribute: {
|
4605
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4606
|
+
id: string;
|
4607
|
+
position: number;
|
4608
|
+
createdAt: Date;
|
4609
|
+
updatedAt: Date;
|
4610
|
+
deletedAt: Date | null;
|
4611
|
+
isDefault: boolean;
|
4612
|
+
systemName: string;
|
4613
|
+
displayName: string;
|
4614
|
+
isArchived: boolean;
|
4615
|
+
isRequired: boolean;
|
4616
|
+
isUnique: boolean;
|
4617
|
+
};
|
4618
|
+
textValue: string | null;
|
4619
|
+
booleanValue: boolean | null;
|
4620
|
+
numberValue: number | null;
|
4621
|
+
dateValue: Date | null;
|
4622
|
+
uploads: {
|
4623
|
+
id: string;
|
4624
|
+
createdAt: Date;
|
4625
|
+
updatedAt: Date;
|
4626
|
+
deletedAt: Date | null;
|
4627
|
+
customFieldId: string;
|
4628
|
+
upload: {
|
4629
|
+
id: string;
|
4630
|
+
createdAt: Date;
|
4631
|
+
updatedAt: Date;
|
4632
|
+
deletedAt: Date | null;
|
4633
|
+
fileName: string;
|
4634
|
+
fileKey: string;
|
4635
|
+
bucketName: string;
|
4636
|
+
fileSize: number;
|
4637
|
+
fileUrl: string | null;
|
4638
|
+
};
|
4639
|
+
}[];
|
4640
|
+
}>, "many">;
|
4641
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
4642
|
+
id: z.ZodString;
|
4643
|
+
createdAt: z.ZodDate;
|
4644
|
+
updatedAt: z.ZodDate;
|
4645
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4646
|
+
email: z.ZodString;
|
4647
|
+
isPrimary: z.ZodBoolean;
|
4648
|
+
}, "strip", z.ZodTypeAny, {
|
4649
|
+
id: string;
|
4650
|
+
isPrimary: boolean;
|
4651
|
+
email: string;
|
4652
|
+
createdAt: Date;
|
4653
|
+
updatedAt: Date;
|
4654
|
+
deletedAt: Date | null;
|
4655
|
+
}, {
|
4656
|
+
id: string;
|
4657
|
+
isPrimary: boolean;
|
4658
|
+
email: string;
|
4659
|
+
createdAt: Date;
|
4660
|
+
updatedAt: Date;
|
4661
|
+
deletedAt: Date | null;
|
4662
|
+
}>, "many">;
|
4663
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
4664
|
+
id: z.ZodString;
|
4665
|
+
createdAt: z.ZodDate;
|
4666
|
+
updatedAt: z.ZodDate;
|
4667
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4668
|
+
phone: z.ZodString;
|
4669
|
+
isPrimary: z.ZodBoolean;
|
4670
|
+
}, "strip", z.ZodTypeAny, {
|
4671
|
+
id: string;
|
4672
|
+
isPrimary: boolean;
|
4673
|
+
createdAt: Date;
|
4674
|
+
updatedAt: Date;
|
4675
|
+
deletedAt: Date | null;
|
4676
|
+
phone: string;
|
4677
|
+
}, {
|
4678
|
+
id: string;
|
4679
|
+
isPrimary: boolean;
|
4680
|
+
createdAt: Date;
|
4681
|
+
updatedAt: Date;
|
4682
|
+
deletedAt: Date | null;
|
4683
|
+
phone: string;
|
4684
|
+
}>, "many">;
|
4685
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4686
|
+
id: z.ZodString;
|
4687
|
+
createdAt: z.ZodDate;
|
4688
|
+
updatedAt: z.ZodDate;
|
4689
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4690
|
+
entityId: z.ZodString;
|
4691
|
+
description: z.ZodString;
|
4692
|
+
entityType: z.ZodObject<{
|
4693
|
+
id: z.ZodString;
|
4694
|
+
createdAt: z.ZodDate;
|
4695
|
+
updatedAt: z.ZodDate;
|
4696
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4697
|
+
entity: z.ZodString;
|
4698
|
+
description: z.ZodNullable<z.ZodString>;
|
4699
|
+
}, "strip", z.ZodTypeAny, {
|
4700
|
+
id: string;
|
4701
|
+
description: string | null;
|
4702
|
+
createdAt: Date;
|
4703
|
+
updatedAt: Date;
|
4704
|
+
deletedAt: Date | null;
|
4705
|
+
entity: string;
|
4706
|
+
}, {
|
4707
|
+
id: string;
|
4708
|
+
description: string | null;
|
4709
|
+
createdAt: Date;
|
4710
|
+
updatedAt: Date;
|
4711
|
+
deletedAt: Date | null;
|
4712
|
+
entity: string;
|
4713
|
+
}>;
|
4714
|
+
}, "strip", z.ZodTypeAny, {
|
4715
|
+
id: string;
|
4716
|
+
description: string;
|
4717
|
+
createdAt: Date;
|
4718
|
+
updatedAt: Date;
|
4719
|
+
deletedAt: Date | null;
|
4720
|
+
entityId: string;
|
4721
|
+
entityType: {
|
4722
|
+
id: string;
|
4723
|
+
description: string | null;
|
4724
|
+
createdAt: Date;
|
4725
|
+
updatedAt: Date;
|
4726
|
+
deletedAt: Date | null;
|
4727
|
+
entity: string;
|
4728
|
+
};
|
4729
|
+
}, {
|
4730
|
+
id: string;
|
4731
|
+
description: string;
|
4732
|
+
createdAt: Date;
|
4733
|
+
updatedAt: Date;
|
4734
|
+
deletedAt: Date | null;
|
4735
|
+
entityId: string;
|
4736
|
+
entityType: {
|
4737
|
+
id: string;
|
4738
|
+
description: string | null;
|
4739
|
+
createdAt: Date;
|
4740
|
+
updatedAt: Date;
|
4741
|
+
deletedAt: Date | null;
|
4742
|
+
entity: string;
|
4743
|
+
};
|
4744
|
+
}>, "many">>;
|
4745
|
+
}, "strip", z.ZodTypeAny, {
|
4746
|
+
id: string;
|
4747
|
+
channel: string | null;
|
4748
|
+
address: string | null;
|
4749
|
+
name: string;
|
4750
|
+
createdAt: Date;
|
4751
|
+
updatedAt: Date;
|
4752
|
+
deletedAt: Date | null;
|
4753
|
+
customFields: {
|
4754
|
+
id: string;
|
4755
|
+
createdAt: Date;
|
4756
|
+
updatedAt: Date;
|
4757
|
+
deletedAt: Date | null;
|
4758
|
+
attribute: {
|
4759
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4760
|
+
id: string;
|
4761
|
+
position: number;
|
4762
|
+
createdAt: Date;
|
4763
|
+
updatedAt: Date;
|
4764
|
+
deletedAt: Date | null;
|
4765
|
+
isDefault: boolean;
|
4766
|
+
systemName: string;
|
4767
|
+
displayName: string;
|
4768
|
+
isArchived: boolean;
|
4769
|
+
isRequired: boolean;
|
4770
|
+
isUnique: boolean;
|
4771
|
+
};
|
4772
|
+
textValue: string | null;
|
4773
|
+
booleanValue: boolean | null;
|
4774
|
+
numberValue: number | null;
|
4775
|
+
dateValue: Date | null;
|
4776
|
+
uploads: {
|
4777
|
+
id: string;
|
4778
|
+
createdAt: Date;
|
4779
|
+
updatedAt: Date;
|
4780
|
+
deletedAt: Date | null;
|
4781
|
+
customFieldId: string;
|
4782
|
+
upload: {
|
4783
|
+
id: string;
|
4784
|
+
createdAt: Date;
|
4785
|
+
updatedAt: Date;
|
4786
|
+
deletedAt: Date | null;
|
4787
|
+
fileName: string;
|
4788
|
+
fileKey: string;
|
4789
|
+
bucketName: string;
|
4790
|
+
fileSize: number;
|
4791
|
+
fileUrl: string | null;
|
4792
|
+
};
|
4793
|
+
}[];
|
4794
|
+
}[];
|
4795
|
+
notes: string | null;
|
4796
|
+
contactProfile: string | null;
|
4797
|
+
socialProfileUrl: string | null;
|
4798
|
+
tags: {
|
4799
|
+
id: string;
|
4800
|
+
name: string;
|
4801
|
+
createdAt: Date;
|
4802
|
+
updatedAt: Date;
|
4803
|
+
deletedAt: Date | null;
|
4804
|
+
}[];
|
4805
|
+
company: {
|
4806
|
+
id: string;
|
4807
|
+
createdAt: Date;
|
4808
|
+
updatedAt: Date;
|
4809
|
+
deletedAt: Date | null;
|
4810
|
+
address?: string | null | undefined;
|
4811
|
+
name?: string | undefined;
|
4812
|
+
phone?: string | null | undefined;
|
4813
|
+
industry?: string | null | undefined;
|
4814
|
+
} | null;
|
4815
|
+
contactEmails: {
|
4816
|
+
id: string;
|
4817
|
+
isPrimary: boolean;
|
4818
|
+
email: string;
|
4819
|
+
createdAt: Date;
|
4820
|
+
updatedAt: Date;
|
4821
|
+
deletedAt: Date | null;
|
4822
|
+
}[];
|
4823
|
+
contactPhones: {
|
4824
|
+
id: string;
|
4825
|
+
isPrimary: boolean;
|
4826
|
+
createdAt: Date;
|
4827
|
+
updatedAt: Date;
|
4828
|
+
deletedAt: Date | null;
|
4829
|
+
phone: string;
|
4830
|
+
}[];
|
4831
|
+
activityLogs?: {
|
4832
|
+
id: string;
|
4833
|
+
description: string;
|
4834
|
+
createdAt: Date;
|
4835
|
+
updatedAt: Date;
|
4836
|
+
deletedAt: Date | null;
|
4837
|
+
entityId: string;
|
4838
|
+
entityType: {
|
4839
|
+
id: string;
|
4840
|
+
description: string | null;
|
4841
|
+
createdAt: Date;
|
4842
|
+
updatedAt: Date;
|
4843
|
+
deletedAt: Date | null;
|
4844
|
+
entity: string;
|
4845
|
+
};
|
4846
|
+
}[] | undefined;
|
4847
|
+
}, {
|
4848
|
+
id: string;
|
4849
|
+
channel: string | null;
|
4850
|
+
address: string | null;
|
4851
|
+
name: string;
|
4852
|
+
createdAt: Date;
|
4853
|
+
updatedAt: Date;
|
4854
|
+
deletedAt: Date | null;
|
4855
|
+
customFields: {
|
4856
|
+
id: string;
|
4857
|
+
createdAt: Date;
|
4858
|
+
updatedAt: Date;
|
4859
|
+
deletedAt: Date | null;
|
4860
|
+
attribute: {
|
4861
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4862
|
+
id: string;
|
4863
|
+
position: number;
|
4864
|
+
createdAt: Date;
|
4865
|
+
updatedAt: Date;
|
4866
|
+
deletedAt: Date | null;
|
4867
|
+
isDefault: boolean;
|
4868
|
+
systemName: string;
|
4869
|
+
displayName: string;
|
4870
|
+
isArchived: boolean;
|
4871
|
+
isRequired: boolean;
|
4872
|
+
isUnique: boolean;
|
4873
|
+
};
|
4874
|
+
textValue: string | null;
|
4875
|
+
booleanValue: boolean | null;
|
4876
|
+
numberValue: number | null;
|
4877
|
+
dateValue: Date | null;
|
4878
|
+
uploads: {
|
4879
|
+
id: string;
|
4880
|
+
createdAt: Date;
|
4881
|
+
updatedAt: Date;
|
4882
|
+
deletedAt: Date | null;
|
4883
|
+
customFieldId: string;
|
4884
|
+
upload: {
|
4885
|
+
id: string;
|
4886
|
+
createdAt: Date;
|
4887
|
+
updatedAt: Date;
|
4888
|
+
deletedAt: Date | null;
|
4889
|
+
fileName: string;
|
4890
|
+
fileKey: string;
|
4891
|
+
bucketName: string;
|
4892
|
+
fileSize: number;
|
4893
|
+
fileUrl: string | null;
|
4894
|
+
};
|
4895
|
+
}[];
|
4896
|
+
}[];
|
4897
|
+
notes: string | null;
|
4898
|
+
contactProfile: string | null;
|
4899
|
+
socialProfileUrl: string | null;
|
4900
|
+
tags: {
|
4901
|
+
id: string;
|
4902
|
+
name: string;
|
4903
|
+
createdAt: Date;
|
4904
|
+
updatedAt: Date;
|
4905
|
+
deletedAt: Date | null;
|
4906
|
+
}[];
|
4907
|
+
company: {
|
4908
|
+
id: string;
|
4909
|
+
createdAt: Date;
|
4910
|
+
updatedAt: Date;
|
4911
|
+
deletedAt: Date | null;
|
4912
|
+
address?: string | null | undefined;
|
4913
|
+
name?: string | undefined;
|
4914
|
+
phone?: string | null | undefined;
|
4915
|
+
industry?: string | null | undefined;
|
4916
|
+
} | null;
|
4917
|
+
contactEmails: {
|
4918
|
+
id: string;
|
4919
|
+
isPrimary: boolean;
|
4920
|
+
email: string;
|
4921
|
+
createdAt: Date;
|
4922
|
+
updatedAt: Date;
|
4923
|
+
deletedAt: Date | null;
|
4924
|
+
}[];
|
4925
|
+
contactPhones: {
|
4926
|
+
id: string;
|
4927
|
+
isPrimary: boolean;
|
4928
|
+
createdAt: Date;
|
4929
|
+
updatedAt: Date;
|
4930
|
+
deletedAt: Date | null;
|
4931
|
+
phone: string;
|
4932
|
+
}[];
|
4933
|
+
activityLogs?: {
|
4934
|
+
id: string;
|
4935
|
+
description: string;
|
4936
|
+
createdAt: Date;
|
4937
|
+
updatedAt: Date;
|
4938
|
+
deletedAt: Date | null;
|
4939
|
+
entityId: string;
|
4940
|
+
entityType: {
|
4941
|
+
id: string;
|
4942
|
+
description: string | null;
|
4943
|
+
createdAt: Date;
|
4944
|
+
updatedAt: Date;
|
4945
|
+
deletedAt: Date | null;
|
4946
|
+
entity: string;
|
4947
|
+
};
|
4948
|
+
}[] | undefined;
|
4949
|
+
}>>;
|
4950
|
+
telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
4951
|
+
id: z.ZodString;
|
4952
|
+
createdAt: z.ZodDate;
|
4953
|
+
updatedAt: z.ZodDate;
|
4954
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4955
|
+
queueId: z.ZodNumber;
|
4956
|
+
queueName: z.ZodString;
|
4957
|
+
queueNumber: z.ZodString;
|
4958
|
+
maximumWaitingTime: z.ZodNumber;
|
4959
|
+
}, "strip", z.ZodTypeAny, {
|
4960
|
+
id: string;
|
4961
|
+
createdAt: Date;
|
4962
|
+
updatedAt: Date;
|
4963
|
+
deletedAt: Date | null;
|
4964
|
+
queueId: number;
|
4965
|
+
queueName: string;
|
4966
|
+
queueNumber: string;
|
4967
|
+
maximumWaitingTime: number;
|
4968
|
+
}, {
|
4969
|
+
id: string;
|
4970
|
+
createdAt: Date;
|
4971
|
+
updatedAt: Date;
|
4972
|
+
deletedAt: Date | null;
|
4973
|
+
queueId: number;
|
4974
|
+
queueName: string;
|
4975
|
+
queueNumber: string;
|
4976
|
+
maximumWaitingTime: number;
|
4977
|
+
}>>>;
|
4978
|
+
pinCode: z.ZodNullable<z.ZodString>;
|
4979
|
+
status: z.ZodString;
|
4980
|
+
type: z.ZodString;
|
4981
|
+
recording: z.ZodNullable<z.ZodString>;
|
4982
|
+
didNumber: z.ZodNullable<z.ZodString>;
|
4983
|
+
agentRingTime: z.ZodNullable<z.ZodNumber>;
|
4984
|
+
uploadId: z.ZodNullable<z.ZodString>;
|
4985
|
+
upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
4986
|
+
id: z.ZodString;
|
4987
|
+
createdAt: z.ZodDate;
|
4988
|
+
updatedAt: z.ZodDate;
|
4989
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4990
|
+
bucketName: z.ZodString;
|
4991
|
+
fileName: z.ZodString;
|
4992
|
+
fileSize: z.ZodNumber;
|
4993
|
+
fileKey: z.ZodString;
|
4994
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
4995
|
+
}, "strip", z.ZodTypeAny, {
|
4996
|
+
id: string;
|
4997
|
+
createdAt: Date;
|
4998
|
+
updatedAt: Date;
|
4999
|
+
deletedAt: Date | null;
|
5000
|
+
fileName: string;
|
5001
|
+
fileKey: string;
|
5002
|
+
bucketName: string;
|
5003
|
+
fileSize: number;
|
5004
|
+
fileUrl: string | null;
|
5005
|
+
}, {
|
5006
|
+
id: string;
|
5007
|
+
createdAt: Date;
|
5008
|
+
updatedAt: Date;
|
5009
|
+
deletedAt: Date | null;
|
5010
|
+
fileName: string;
|
5011
|
+
fileKey: string;
|
5012
|
+
bucketName: string;
|
5013
|
+
fileSize: number;
|
5014
|
+
fileUrl: string | null;
|
5015
|
+
}>>>;
|
5016
|
+
serialNumber: z.ZodNullable<z.ZodString>;
|
5017
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
5018
|
+
extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
5019
|
+
id: z.ZodString;
|
5020
|
+
createdAt: z.ZodDate;
|
5021
|
+
updatedAt: z.ZodDate;
|
5022
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5023
|
+
userId: z.ZodNullable<z.ZodString>;
|
5024
|
+
sipServerUrl: z.ZodString;
|
5025
|
+
sipUserName: z.ZodString;
|
5026
|
+
webphoneLoginUser: z.ZodString;
|
5027
|
+
extensionId: z.ZodNumber;
|
5028
|
+
extensionName: z.ZodString;
|
5029
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
5030
|
+
user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
5031
|
+
id: z.ZodString;
|
5032
|
+
createdAt: z.ZodDate;
|
5033
|
+
updatedAt: z.ZodDate;
|
5034
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5035
|
+
name: z.ZodString;
|
5036
|
+
email: z.ZodString;
|
5037
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
5038
|
+
password: z.ZodString;
|
5039
|
+
address: z.ZodNullable<z.ZodString>;
|
5040
|
+
phone: z.ZodNullable<z.ZodString>;
|
5041
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
5042
|
+
roles: z.ZodArray<z.ZodObject<{
|
5043
|
+
id: z.ZodString;
|
5044
|
+
createdAt: z.ZodDate;
|
5045
|
+
updatedAt: z.ZodDate;
|
5046
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5047
|
+
systemName: z.ZodString;
|
5048
|
+
displayName: z.ZodString;
|
5049
|
+
description: z.ZodNullable<z.ZodString>;
|
5050
|
+
permissions: z.ZodArray<z.ZodObject<{
|
5051
|
+
id: z.ZodString;
|
5052
|
+
createdAt: z.ZodDate;
|
5053
|
+
updatedAt: z.ZodDate;
|
5054
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5055
|
+
systemName: z.ZodString;
|
5056
|
+
displayName: z.ZodString;
|
5057
|
+
description: z.ZodNullable<z.ZodString>;
|
5058
|
+
}, "strip", z.ZodTypeAny, {
|
5059
|
+
id: string;
|
5060
|
+
description: string | null;
|
5061
|
+
createdAt: Date;
|
5062
|
+
updatedAt: Date;
|
5063
|
+
deletedAt: Date | null;
|
5064
|
+
systemName: string;
|
5065
|
+
displayName: string;
|
5066
|
+
}, {
|
5067
|
+
id: string;
|
5068
|
+
description: string | null;
|
5069
|
+
createdAt: Date;
|
5070
|
+
updatedAt: Date;
|
5071
|
+
deletedAt: Date | null;
|
5072
|
+
systemName: string;
|
5073
|
+
displayName: string;
|
5074
|
+
}>, "many">;
|
5075
|
+
}, "strip", z.ZodTypeAny, {
|
5076
|
+
id: string;
|
5077
|
+
description: string | null;
|
5078
|
+
createdAt: Date;
|
5079
|
+
updatedAt: Date;
|
5080
|
+
deletedAt: Date | null;
|
5081
|
+
systemName: string;
|
5082
|
+
displayName: string;
|
5083
|
+
permissions: {
|
5084
|
+
id: string;
|
5085
|
+
description: string | null;
|
5086
|
+
createdAt: Date;
|
5087
|
+
updatedAt: Date;
|
5088
|
+
deletedAt: Date | null;
|
5089
|
+
systemName: string;
|
5090
|
+
displayName: string;
|
5091
|
+
}[];
|
5092
|
+
}, {
|
5093
|
+
id: string;
|
5094
|
+
description: string | null;
|
5095
|
+
createdAt: Date;
|
5096
|
+
updatedAt: Date;
|
5097
|
+
deletedAt: Date | null;
|
5098
|
+
systemName: string;
|
5099
|
+
displayName: string;
|
5100
|
+
permissions: {
|
5101
|
+
id: string;
|
5102
|
+
description: string | null;
|
5103
|
+
createdAt: Date;
|
5104
|
+
updatedAt: Date;
|
5105
|
+
deletedAt: Date | null;
|
5106
|
+
systemName: string;
|
5107
|
+
displayName: string;
|
5108
|
+
}[];
|
5109
|
+
}>, "many">;
|
5110
|
+
extension: z.ZodObject<{
|
5111
|
+
id: z.ZodString;
|
5112
|
+
createdAt: z.ZodDate;
|
5113
|
+
updatedAt: z.ZodDate;
|
5114
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5115
|
+
userId: z.ZodNullable<z.ZodString>;
|
5116
|
+
sipServerUrl: z.ZodString;
|
5117
|
+
sipUserName: z.ZodString;
|
5118
|
+
webphoneLoginUser: z.ZodString;
|
5119
|
+
extensionId: z.ZodNumber;
|
5120
|
+
extensionName: z.ZodString;
|
5121
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
5122
|
+
}, "strip", z.ZodTypeAny, {
|
5123
|
+
id: string;
|
5124
|
+
createdAt: Date;
|
5125
|
+
updatedAt: Date;
|
5126
|
+
deletedAt: Date | null;
|
5127
|
+
userId: string | null;
|
5128
|
+
sipServerUrl: string;
|
5129
|
+
sipUserName: string;
|
5130
|
+
webphoneLoginUser: string;
|
5131
|
+
extensionId: number;
|
5132
|
+
extensionName: string;
|
5133
|
+
telephonySignature: string | null;
|
5134
|
+
}, {
|
5135
|
+
id: string;
|
5136
|
+
createdAt: Date;
|
5137
|
+
updatedAt: Date;
|
5138
|
+
deletedAt: Date | null;
|
5139
|
+
userId: string | null;
|
5140
|
+
sipServerUrl: string;
|
5141
|
+
sipUserName: string;
|
5142
|
+
webphoneLoginUser: string;
|
5143
|
+
extensionId: number;
|
5144
|
+
extensionName: string;
|
5145
|
+
telephonySignature: string | null;
|
5146
|
+
}>;
|
5147
|
+
}, "strip", z.ZodTypeAny, {
|
5148
|
+
id: string;
|
5149
|
+
address: string | null;
|
5150
|
+
name: string;
|
5151
|
+
email: string;
|
5152
|
+
createdAt: Date;
|
5153
|
+
updatedAt: Date;
|
5154
|
+
deletedAt: Date | null;
|
5155
|
+
emailVerifiedAt: Date | null;
|
5156
|
+
password: string;
|
5157
|
+
phone: string | null;
|
5158
|
+
notificationCount: number | null;
|
5159
|
+
roles: {
|
5160
|
+
id: string;
|
5161
|
+
description: string | null;
|
5162
|
+
createdAt: Date;
|
5163
|
+
updatedAt: Date;
|
5164
|
+
deletedAt: Date | null;
|
5165
|
+
systemName: string;
|
5166
|
+
displayName: string;
|
5167
|
+
permissions: {
|
5168
|
+
id: string;
|
5169
|
+
description: string | null;
|
5170
|
+
createdAt: Date;
|
5171
|
+
updatedAt: Date;
|
5172
|
+
deletedAt: Date | null;
|
5173
|
+
systemName: string;
|
5174
|
+
displayName: string;
|
5175
|
+
}[];
|
5176
|
+
}[];
|
5177
|
+
extension: {
|
5178
|
+
id: string;
|
5179
|
+
createdAt: Date;
|
5180
|
+
updatedAt: Date;
|
5181
|
+
deletedAt: Date | null;
|
5182
|
+
userId: string | null;
|
5183
|
+
sipServerUrl: string;
|
5184
|
+
sipUserName: string;
|
5185
|
+
webphoneLoginUser: string;
|
5186
|
+
extensionId: number;
|
5187
|
+
extensionName: string;
|
5188
|
+
telephonySignature: string | null;
|
5189
|
+
};
|
5190
|
+
}, {
|
5191
|
+
id: string;
|
5192
|
+
address: string | null;
|
5193
|
+
name: string;
|
5194
|
+
email: string;
|
5195
|
+
createdAt: Date;
|
5196
|
+
updatedAt: Date;
|
5197
|
+
deletedAt: Date | null;
|
5198
|
+
emailVerifiedAt: Date | null;
|
5199
|
+
password: string;
|
5200
|
+
phone: string | null;
|
5201
|
+
notificationCount: number | null;
|
5202
|
+
roles: {
|
5203
|
+
id: string;
|
5204
|
+
description: string | null;
|
5205
|
+
createdAt: Date;
|
5206
|
+
updatedAt: Date;
|
5207
|
+
deletedAt: Date | null;
|
5208
|
+
systemName: string;
|
5209
|
+
displayName: string;
|
5210
|
+
permissions: {
|
5211
|
+
id: string;
|
5212
|
+
description: string | null;
|
5213
|
+
createdAt: Date;
|
5214
|
+
updatedAt: Date;
|
5215
|
+
deletedAt: Date | null;
|
5216
|
+
systemName: string;
|
5217
|
+
displayName: string;
|
5218
|
+
}[];
|
5219
|
+
}[];
|
5220
|
+
extension: {
|
5221
|
+
id: string;
|
5222
|
+
createdAt: Date;
|
5223
|
+
updatedAt: Date;
|
5224
|
+
deletedAt: Date | null;
|
5225
|
+
userId: string | null;
|
5226
|
+
sipServerUrl: string;
|
5227
|
+
sipUserName: string;
|
5228
|
+
webphoneLoginUser: string;
|
5229
|
+
extensionId: number;
|
5230
|
+
extensionName: string;
|
5231
|
+
telephonySignature: string | null;
|
5232
|
+
};
|
5233
|
+
}>>>;
|
5234
|
+
}, "strip", z.ZodTypeAny, {
|
5235
|
+
id: string;
|
5236
|
+
createdAt: Date;
|
5237
|
+
updatedAt: Date;
|
5238
|
+
deletedAt: Date | null;
|
5239
|
+
userId: string | null;
|
5240
|
+
sipServerUrl: string;
|
5241
|
+
sipUserName: string;
|
5242
|
+
webphoneLoginUser: string;
|
5243
|
+
extensionId: number;
|
5244
|
+
extensionName: string;
|
5245
|
+
telephonySignature: string | null;
|
5246
|
+
user?: {
|
5247
|
+
id: string;
|
5248
|
+
address: string | null;
|
5249
|
+
name: string;
|
5250
|
+
email: string;
|
5251
|
+
createdAt: Date;
|
5252
|
+
updatedAt: Date;
|
5253
|
+
deletedAt: Date | null;
|
5254
|
+
emailVerifiedAt: Date | null;
|
5255
|
+
password: string;
|
5256
|
+
phone: string | null;
|
5257
|
+
notificationCount: number | null;
|
5258
|
+
roles: {
|
5259
|
+
id: string;
|
5260
|
+
description: string | null;
|
5261
|
+
createdAt: Date;
|
5262
|
+
updatedAt: Date;
|
5263
|
+
deletedAt: Date | null;
|
5264
|
+
systemName: string;
|
5265
|
+
displayName: string;
|
5266
|
+
permissions: {
|
5267
|
+
id: string;
|
5268
|
+
description: string | null;
|
5269
|
+
createdAt: Date;
|
5270
|
+
updatedAt: Date;
|
5271
|
+
deletedAt: Date | null;
|
5272
|
+
systemName: string;
|
5273
|
+
displayName: string;
|
5274
|
+
}[];
|
5275
|
+
}[];
|
5276
|
+
extension: {
|
5277
|
+
id: string;
|
5278
|
+
createdAt: Date;
|
5279
|
+
updatedAt: Date;
|
5280
|
+
deletedAt: Date | null;
|
5281
|
+
userId: string | null;
|
5282
|
+
sipServerUrl: string;
|
5283
|
+
sipUserName: string;
|
5284
|
+
webphoneLoginUser: string;
|
5285
|
+
extensionId: number;
|
5286
|
+
extensionName: string;
|
5287
|
+
telephonySignature: string | null;
|
5288
|
+
};
|
5289
|
+
} | null | undefined;
|
5290
|
+
}, {
|
5291
|
+
id: string;
|
5292
|
+
createdAt: Date;
|
5293
|
+
updatedAt: Date;
|
5294
|
+
deletedAt: Date | null;
|
5295
|
+
userId: string | null;
|
5296
|
+
sipServerUrl: string;
|
5297
|
+
sipUserName: string;
|
5298
|
+
webphoneLoginUser: string;
|
5299
|
+
extensionId: number;
|
5300
|
+
extensionName: string;
|
5301
|
+
telephonySignature: string | null;
|
5302
|
+
user?: {
|
5303
|
+
id: string;
|
5304
|
+
address: string | null;
|
5305
|
+
name: string;
|
5306
|
+
email: string;
|
5307
|
+
createdAt: Date;
|
5308
|
+
updatedAt: Date;
|
5309
|
+
deletedAt: Date | null;
|
5310
|
+
emailVerifiedAt: Date | null;
|
5311
|
+
password: string;
|
5312
|
+
phone: string | null;
|
5313
|
+
notificationCount: number | null;
|
5314
|
+
roles: {
|
5315
|
+
id: string;
|
5316
|
+
description: string | null;
|
5317
|
+
createdAt: Date;
|
5318
|
+
updatedAt: Date;
|
5319
|
+
deletedAt: Date | null;
|
5320
|
+
systemName: string;
|
5321
|
+
displayName: string;
|
5322
|
+
permissions: {
|
5323
|
+
id: string;
|
5324
|
+
description: string | null;
|
5325
|
+
createdAt: Date;
|
5326
|
+
updatedAt: Date;
|
5327
|
+
deletedAt: Date | null;
|
5328
|
+
systemName: string;
|
5329
|
+
displayName: string;
|
5330
|
+
}[];
|
5331
|
+
}[];
|
5332
|
+
extension: {
|
5333
|
+
id: string;
|
5334
|
+
createdAt: Date;
|
5335
|
+
updatedAt: Date;
|
5336
|
+
deletedAt: Date | null;
|
5337
|
+
userId: string | null;
|
5338
|
+
sipServerUrl: string;
|
5339
|
+
sipUserName: string;
|
5340
|
+
webphoneLoginUser: string;
|
5341
|
+
extensionId: number;
|
5342
|
+
extensionName: string;
|
5343
|
+
telephonySignature: string | null;
|
5344
|
+
};
|
5345
|
+
} | null | undefined;
|
5346
|
+
}>>>;
|
5347
|
+
telephonyQueueId: z.ZodNullable<z.ZodString>;
|
5348
|
+
contactId: z.ZodNullable<z.ZodString>;
|
5349
|
+
}, "strip", z.ZodTypeAny, {
|
5350
|
+
type: string;
|
5351
|
+
id: string;
|
5352
|
+
recording: string | null;
|
5353
|
+
status: string;
|
5354
|
+
createdAt: Date;
|
5355
|
+
updatedAt: Date;
|
5356
|
+
deletedAt: Date | null;
|
5357
|
+
extensionId: string | null;
|
5358
|
+
uniqueCallId: string;
|
5359
|
+
timeStart: string;
|
5360
|
+
callFrom: string;
|
5361
|
+
callTo: string;
|
5362
|
+
callDuration: number | null;
|
5363
|
+
talkDuration: number | null;
|
5364
|
+
srcTrunkName: string | null;
|
5365
|
+
dstTrunkName: string | null;
|
5366
|
+
pinCode: string | null;
|
5367
|
+
didNumber: string | null;
|
5368
|
+
agentRingTime: number | null;
|
5369
|
+
uploadId: string | null;
|
5370
|
+
serialNumber: string | null;
|
5371
|
+
telephonyQueueId: string | null;
|
5372
|
+
contactId: string | null;
|
5373
|
+
contact?: {
|
5374
|
+
id: string;
|
5375
|
+
channel: string | null;
|
5376
|
+
address: string | null;
|
5377
|
+
name: string;
|
5378
|
+
createdAt: Date;
|
5379
|
+
updatedAt: Date;
|
5380
|
+
deletedAt: Date | null;
|
5381
|
+
customFields: {
|
5382
|
+
id: string;
|
5383
|
+
createdAt: Date;
|
5384
|
+
updatedAt: Date;
|
5385
|
+
deletedAt: Date | null;
|
5386
|
+
attribute: {
|
5387
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5388
|
+
id: string;
|
5389
|
+
position: number;
|
5390
|
+
createdAt: Date;
|
5391
|
+
updatedAt: Date;
|
5392
|
+
deletedAt: Date | null;
|
5393
|
+
isDefault: boolean;
|
5394
|
+
systemName: string;
|
5395
|
+
displayName: string;
|
5396
|
+
isArchived: boolean;
|
5397
|
+
isRequired: boolean;
|
5398
|
+
isUnique: boolean;
|
5399
|
+
};
|
5400
|
+
textValue: string | null;
|
5401
|
+
booleanValue: boolean | null;
|
5402
|
+
numberValue: number | null;
|
5403
|
+
dateValue: Date | null;
|
5404
|
+
uploads: {
|
5405
|
+
id: string;
|
5406
|
+
createdAt: Date;
|
5407
|
+
updatedAt: Date;
|
5408
|
+
deletedAt: Date | null;
|
5409
|
+
customFieldId: string;
|
5410
|
+
upload: {
|
5411
|
+
id: string;
|
5412
|
+
createdAt: Date;
|
5413
|
+
updatedAt: Date;
|
5414
|
+
deletedAt: Date | null;
|
5415
|
+
fileName: string;
|
5416
|
+
fileKey: string;
|
5417
|
+
bucketName: string;
|
5418
|
+
fileSize: number;
|
5419
|
+
fileUrl: string | null;
|
5420
|
+
};
|
5421
|
+
}[];
|
5422
|
+
}[];
|
5423
|
+
notes: string | null;
|
5424
|
+
contactProfile: string | null;
|
5425
|
+
socialProfileUrl: string | null;
|
5426
|
+
tags: {
|
5427
|
+
id: string;
|
5428
|
+
name: string;
|
5429
|
+
createdAt: Date;
|
5430
|
+
updatedAt: Date;
|
5431
|
+
deletedAt: Date | null;
|
5432
|
+
}[];
|
5433
|
+
company: {
|
5434
|
+
id: string;
|
5435
|
+
createdAt: Date;
|
5436
|
+
updatedAt: Date;
|
5437
|
+
deletedAt: Date | null;
|
5438
|
+
address?: string | null | undefined;
|
5439
|
+
name?: string | undefined;
|
5440
|
+
phone?: string | null | undefined;
|
5441
|
+
industry?: string | null | undefined;
|
5442
|
+
} | null;
|
5443
|
+
contactEmails: {
|
5444
|
+
id: string;
|
5445
|
+
isPrimary: boolean;
|
5446
|
+
email: string;
|
5447
|
+
createdAt: Date;
|
5448
|
+
updatedAt: Date;
|
5449
|
+
deletedAt: Date | null;
|
5450
|
+
}[];
|
5451
|
+
contactPhones: {
|
5452
|
+
id: string;
|
5453
|
+
isPrimary: boolean;
|
5454
|
+
createdAt: Date;
|
5455
|
+
updatedAt: Date;
|
5456
|
+
deletedAt: Date | null;
|
5457
|
+
phone: string;
|
5458
|
+
}[];
|
5459
|
+
activityLogs?: {
|
5460
|
+
id: string;
|
5461
|
+
description: string;
|
5462
|
+
createdAt: Date;
|
5463
|
+
updatedAt: Date;
|
5464
|
+
deletedAt: Date | null;
|
5465
|
+
entityId: string;
|
5466
|
+
entityType: {
|
5467
|
+
id: string;
|
5468
|
+
description: string | null;
|
5469
|
+
createdAt: Date;
|
5470
|
+
updatedAt: Date;
|
5471
|
+
deletedAt: Date | null;
|
5472
|
+
entity: string;
|
5473
|
+
};
|
5474
|
+
}[] | undefined;
|
5475
|
+
} | undefined;
|
5476
|
+
telephonyQueue?: {
|
5477
|
+
id: string;
|
5478
|
+
createdAt: Date;
|
5479
|
+
updatedAt: Date;
|
5480
|
+
deletedAt: Date | null;
|
5481
|
+
queueId: number;
|
5482
|
+
queueName: string;
|
5483
|
+
queueNumber: string;
|
5484
|
+
maximumWaitingTime: number;
|
5485
|
+
} | null | undefined;
|
5486
|
+
upload?: {
|
5487
|
+
id: string;
|
5488
|
+
createdAt: Date;
|
5489
|
+
updatedAt: Date;
|
5490
|
+
deletedAt: Date | null;
|
5491
|
+
fileName: string;
|
5492
|
+
fileKey: string;
|
5493
|
+
bucketName: string;
|
5494
|
+
fileSize: number;
|
5495
|
+
fileUrl: string | null;
|
5496
|
+
} | null | undefined;
|
5497
|
+
extension?: {
|
5498
|
+
id: string;
|
5499
|
+
createdAt: Date;
|
5500
|
+
updatedAt: Date;
|
5501
|
+
deletedAt: Date | null;
|
5502
|
+
userId: string | null;
|
5503
|
+
sipServerUrl: string;
|
5504
|
+
sipUserName: string;
|
5505
|
+
webphoneLoginUser: string;
|
5506
|
+
extensionId: number;
|
5507
|
+
extensionName: string;
|
5508
|
+
telephonySignature: string | null;
|
5509
|
+
user?: {
|
5510
|
+
id: string;
|
5511
|
+
address: string | null;
|
5512
|
+
name: string;
|
5513
|
+
email: string;
|
5514
|
+
createdAt: Date;
|
5515
|
+
updatedAt: Date;
|
5516
|
+
deletedAt: Date | null;
|
5517
|
+
emailVerifiedAt: Date | null;
|
5518
|
+
password: string;
|
5519
|
+
phone: string | null;
|
5520
|
+
notificationCount: number | null;
|
5521
|
+
roles: {
|
5522
|
+
id: string;
|
5523
|
+
description: string | null;
|
5524
|
+
createdAt: Date;
|
5525
|
+
updatedAt: Date;
|
5526
|
+
deletedAt: Date | null;
|
5527
|
+
systemName: string;
|
5528
|
+
displayName: string;
|
5529
|
+
permissions: {
|
5530
|
+
id: string;
|
5531
|
+
description: string | null;
|
5532
|
+
createdAt: Date;
|
5533
|
+
updatedAt: Date;
|
5534
|
+
deletedAt: Date | null;
|
5535
|
+
systemName: string;
|
5536
|
+
displayName: string;
|
5537
|
+
}[];
|
5538
|
+
}[];
|
5539
|
+
extension: {
|
5540
|
+
id: string;
|
5541
|
+
createdAt: Date;
|
5542
|
+
updatedAt: Date;
|
5543
|
+
deletedAt: Date | null;
|
5544
|
+
userId: string | null;
|
5545
|
+
sipServerUrl: string;
|
5546
|
+
sipUserName: string;
|
5547
|
+
webphoneLoginUser: string;
|
5548
|
+
extensionId: number;
|
5549
|
+
extensionName: string;
|
5550
|
+
telephonySignature: string | null;
|
5551
|
+
};
|
5552
|
+
} | null | undefined;
|
5553
|
+
} | null | undefined;
|
5554
|
+
}, {
|
5555
|
+
type: string;
|
5556
|
+
id: string;
|
5557
|
+
recording: string | null;
|
5558
|
+
status: string;
|
5559
|
+
createdAt: Date;
|
5560
|
+
updatedAt: Date;
|
5561
|
+
deletedAt: Date | null;
|
5562
|
+
extensionId: string | null;
|
5563
|
+
uniqueCallId: string;
|
5564
|
+
timeStart: string;
|
5565
|
+
callFrom: string;
|
5566
|
+
callTo: string;
|
5567
|
+
callDuration: number | null;
|
5568
|
+
talkDuration: number | null;
|
5569
|
+
srcTrunkName: string | null;
|
5570
|
+
dstTrunkName: string | null;
|
5571
|
+
pinCode: string | null;
|
5572
|
+
didNumber: string | null;
|
5573
|
+
agentRingTime: number | null;
|
5574
|
+
uploadId: string | null;
|
5575
|
+
serialNumber: string | null;
|
5576
|
+
telephonyQueueId: string | null;
|
5577
|
+
contactId: string | null;
|
5578
|
+
contact?: {
|
5579
|
+
id: string;
|
5580
|
+
channel: string | null;
|
5581
|
+
address: string | null;
|
5582
|
+
name: string;
|
5583
|
+
createdAt: Date;
|
5584
|
+
updatedAt: Date;
|
5585
|
+
deletedAt: Date | null;
|
5586
|
+
customFields: {
|
5587
|
+
id: string;
|
5588
|
+
createdAt: Date;
|
5589
|
+
updatedAt: Date;
|
5590
|
+
deletedAt: Date | null;
|
5591
|
+
attribute: {
|
5592
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5593
|
+
id: string;
|
5594
|
+
position: number;
|
5595
|
+
createdAt: Date;
|
5596
|
+
updatedAt: Date;
|
5597
|
+
deletedAt: Date | null;
|
5598
|
+
isDefault: boolean;
|
5599
|
+
systemName: string;
|
5600
|
+
displayName: string;
|
5601
|
+
isArchived: boolean;
|
5602
|
+
isRequired: boolean;
|
5603
|
+
isUnique: boolean;
|
5604
|
+
};
|
5605
|
+
textValue: string | null;
|
5606
|
+
booleanValue: boolean | null;
|
5607
|
+
numberValue: number | null;
|
5608
|
+
dateValue: Date | null;
|
5609
|
+
uploads: {
|
5610
|
+
id: string;
|
5611
|
+
createdAt: Date;
|
5612
|
+
updatedAt: Date;
|
5613
|
+
deletedAt: Date | null;
|
5614
|
+
customFieldId: string;
|
5615
|
+
upload: {
|
5616
|
+
id: string;
|
5617
|
+
createdAt: Date;
|
5618
|
+
updatedAt: Date;
|
5619
|
+
deletedAt: Date | null;
|
5620
|
+
fileName: string;
|
5621
|
+
fileKey: string;
|
5622
|
+
bucketName: string;
|
5623
|
+
fileSize: number;
|
5624
|
+
fileUrl: string | null;
|
5625
|
+
};
|
5626
|
+
}[];
|
5627
|
+
}[];
|
5628
|
+
notes: string | null;
|
5629
|
+
contactProfile: string | null;
|
5630
|
+
socialProfileUrl: string | null;
|
5631
|
+
tags: {
|
5632
|
+
id: string;
|
5633
|
+
name: string;
|
5634
|
+
createdAt: Date;
|
5635
|
+
updatedAt: Date;
|
5636
|
+
deletedAt: Date | null;
|
5637
|
+
}[];
|
5638
|
+
company: {
|
5639
|
+
id: string;
|
5640
|
+
createdAt: Date;
|
5641
|
+
updatedAt: Date;
|
5642
|
+
deletedAt: Date | null;
|
5643
|
+
address?: string | null | undefined;
|
5644
|
+
name?: string | undefined;
|
5645
|
+
phone?: string | null | undefined;
|
5646
|
+
industry?: string | null | undefined;
|
5647
|
+
} | null;
|
5648
|
+
contactEmails: {
|
5649
|
+
id: string;
|
5650
|
+
isPrimary: boolean;
|
5651
|
+
email: string;
|
5652
|
+
createdAt: Date;
|
5653
|
+
updatedAt: Date;
|
5654
|
+
deletedAt: Date | null;
|
5655
|
+
}[];
|
5656
|
+
contactPhones: {
|
5657
|
+
id: string;
|
5658
|
+
isPrimary: boolean;
|
5659
|
+
createdAt: Date;
|
5660
|
+
updatedAt: Date;
|
5661
|
+
deletedAt: Date | null;
|
5662
|
+
phone: string;
|
5663
|
+
}[];
|
5664
|
+
activityLogs?: {
|
5665
|
+
id: string;
|
5666
|
+
description: string;
|
5667
|
+
createdAt: Date;
|
5668
|
+
updatedAt: Date;
|
5669
|
+
deletedAt: Date | null;
|
5670
|
+
entityId: string;
|
5671
|
+
entityType: {
|
5672
|
+
id: string;
|
5673
|
+
description: string | null;
|
5674
|
+
createdAt: Date;
|
5675
|
+
updatedAt: Date;
|
5676
|
+
deletedAt: Date | null;
|
5677
|
+
entity: string;
|
5678
|
+
};
|
5679
|
+
}[] | undefined;
|
5680
|
+
} | undefined;
|
5681
|
+
telephonyQueue?: {
|
5682
|
+
id: string;
|
5683
|
+
createdAt: Date;
|
5684
|
+
updatedAt: Date;
|
5685
|
+
deletedAt: Date | null;
|
5686
|
+
queueId: number;
|
5687
|
+
queueName: string;
|
5688
|
+
queueNumber: string;
|
5689
|
+
maximumWaitingTime: number;
|
5690
|
+
} | null | undefined;
|
5691
|
+
upload?: {
|
5692
|
+
id: string;
|
5693
|
+
createdAt: Date;
|
5694
|
+
updatedAt: Date;
|
5695
|
+
deletedAt: Date | null;
|
5696
|
+
fileName: string;
|
5697
|
+
fileKey: string;
|
5698
|
+
bucketName: string;
|
5699
|
+
fileSize: number;
|
5700
|
+
fileUrl: string | null;
|
5701
|
+
} | null | undefined;
|
5702
|
+
extension?: {
|
5703
|
+
id: string;
|
5704
|
+
createdAt: Date;
|
5705
|
+
updatedAt: Date;
|
5706
|
+
deletedAt: Date | null;
|
5707
|
+
userId: string | null;
|
5708
|
+
sipServerUrl: string;
|
5709
|
+
sipUserName: string;
|
5710
|
+
webphoneLoginUser: string;
|
5711
|
+
extensionId: number;
|
5712
|
+
extensionName: string;
|
5713
|
+
telephonySignature: string | null;
|
5714
|
+
user?: {
|
5715
|
+
id: string;
|
5716
|
+
address: string | null;
|
5717
|
+
name: string;
|
5718
|
+
email: string;
|
5719
|
+
createdAt: Date;
|
5720
|
+
updatedAt: Date;
|
5721
|
+
deletedAt: Date | null;
|
5722
|
+
emailVerifiedAt: Date | null;
|
5723
|
+
password: string;
|
5724
|
+
phone: string | null;
|
5725
|
+
notificationCount: number | null;
|
5726
|
+
roles: {
|
5727
|
+
id: string;
|
5728
|
+
description: string | null;
|
5729
|
+
createdAt: Date;
|
5730
|
+
updatedAt: Date;
|
5731
|
+
deletedAt: Date | null;
|
5732
|
+
systemName: string;
|
5733
|
+
displayName: string;
|
5734
|
+
permissions: {
|
5735
|
+
id: string;
|
5736
|
+
description: string | null;
|
5737
|
+
createdAt: Date;
|
5738
|
+
updatedAt: Date;
|
5739
|
+
deletedAt: Date | null;
|
5740
|
+
systemName: string;
|
5741
|
+
displayName: string;
|
5742
|
+
}[];
|
5743
|
+
}[];
|
5744
|
+
extension: {
|
5745
|
+
id: string;
|
5746
|
+
createdAt: Date;
|
5747
|
+
updatedAt: Date;
|
5748
|
+
deletedAt: Date | null;
|
5749
|
+
userId: string | null;
|
5750
|
+
sipServerUrl: string;
|
5751
|
+
sipUserName: string;
|
5752
|
+
webphoneLoginUser: string;
|
5753
|
+
extensionId: number;
|
5754
|
+
extensionName: string;
|
5755
|
+
telephonySignature: string | null;
|
5756
|
+
};
|
5757
|
+
} | null | undefined;
|
5758
|
+
} | null | undefined;
|
5759
|
+
}>, "many">;
|
5760
|
+
}, "strip", z.ZodTypeAny, {
|
5761
|
+
total: number;
|
5762
|
+
page: number;
|
5763
|
+
pageSize: number;
|
5764
|
+
requestId: string;
|
5765
|
+
telephonyCdrs: {
|
5766
|
+
type: string;
|
5767
|
+
id: string;
|
5768
|
+
recording: string | null;
|
5769
|
+
status: string;
|
5770
|
+
createdAt: Date;
|
5771
|
+
updatedAt: Date;
|
5772
|
+
deletedAt: Date | null;
|
5773
|
+
extensionId: string | null;
|
5774
|
+
uniqueCallId: string;
|
5775
|
+
timeStart: string;
|
5776
|
+
callFrom: string;
|
5777
|
+
callTo: string;
|
5778
|
+
callDuration: number | null;
|
5779
|
+
talkDuration: number | null;
|
5780
|
+
srcTrunkName: string | null;
|
5781
|
+
dstTrunkName: string | null;
|
5782
|
+
pinCode: string | null;
|
5783
|
+
didNumber: string | null;
|
5784
|
+
agentRingTime: number | null;
|
5785
|
+
uploadId: string | null;
|
5786
|
+
serialNumber: string | null;
|
5787
|
+
telephonyQueueId: string | null;
|
5788
|
+
contactId: string | null;
|
5789
|
+
contact?: {
|
5790
|
+
id: string;
|
5791
|
+
channel: string | null;
|
5792
|
+
address: string | null;
|
5793
|
+
name: string;
|
5794
|
+
createdAt: Date;
|
5795
|
+
updatedAt: Date;
|
5796
|
+
deletedAt: Date | null;
|
5797
|
+
customFields: {
|
5798
|
+
id: string;
|
5799
|
+
createdAt: Date;
|
5800
|
+
updatedAt: Date;
|
5801
|
+
deletedAt: Date | null;
|
5802
|
+
attribute: {
|
5803
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5804
|
+
id: string;
|
5805
|
+
position: number;
|
5806
|
+
createdAt: Date;
|
5807
|
+
updatedAt: Date;
|
5808
|
+
deletedAt: Date | null;
|
5809
|
+
isDefault: boolean;
|
5810
|
+
systemName: string;
|
5811
|
+
displayName: string;
|
5812
|
+
isArchived: boolean;
|
5813
|
+
isRequired: boolean;
|
5814
|
+
isUnique: boolean;
|
5815
|
+
};
|
5816
|
+
textValue: string | null;
|
5817
|
+
booleanValue: boolean | null;
|
5818
|
+
numberValue: number | null;
|
5819
|
+
dateValue: Date | null;
|
5820
|
+
uploads: {
|
5821
|
+
id: string;
|
5822
|
+
createdAt: Date;
|
5823
|
+
updatedAt: Date;
|
5824
|
+
deletedAt: Date | null;
|
5825
|
+
customFieldId: string;
|
5826
|
+
upload: {
|
5827
|
+
id: string;
|
5828
|
+
createdAt: Date;
|
5829
|
+
updatedAt: Date;
|
5830
|
+
deletedAt: Date | null;
|
5831
|
+
fileName: string;
|
5832
|
+
fileKey: string;
|
5833
|
+
bucketName: string;
|
5834
|
+
fileSize: number;
|
5835
|
+
fileUrl: string | null;
|
5836
|
+
};
|
5837
|
+
}[];
|
5838
|
+
}[];
|
5839
|
+
notes: string | null;
|
5840
|
+
contactProfile: string | null;
|
5841
|
+
socialProfileUrl: string | null;
|
5842
|
+
tags: {
|
5843
|
+
id: string;
|
5844
|
+
name: string;
|
5845
|
+
createdAt: Date;
|
5846
|
+
updatedAt: Date;
|
5847
|
+
deletedAt: Date | null;
|
5848
|
+
}[];
|
5849
|
+
company: {
|
5850
|
+
id: string;
|
5851
|
+
createdAt: Date;
|
5852
|
+
updatedAt: Date;
|
5853
|
+
deletedAt: Date | null;
|
5854
|
+
address?: string | null | undefined;
|
5855
|
+
name?: string | undefined;
|
5856
|
+
phone?: string | null | undefined;
|
5857
|
+
industry?: string | null | undefined;
|
5858
|
+
} | null;
|
5859
|
+
contactEmails: {
|
5860
|
+
id: string;
|
5861
|
+
isPrimary: boolean;
|
5862
|
+
email: string;
|
5863
|
+
createdAt: Date;
|
5864
|
+
updatedAt: Date;
|
5865
|
+
deletedAt: Date | null;
|
5866
|
+
}[];
|
5867
|
+
contactPhones: {
|
5868
|
+
id: string;
|
5869
|
+
isPrimary: boolean;
|
5870
|
+
createdAt: Date;
|
5871
|
+
updatedAt: Date;
|
5872
|
+
deletedAt: Date | null;
|
5873
|
+
phone: string;
|
5874
|
+
}[];
|
5875
|
+
activityLogs?: {
|
5876
|
+
id: string;
|
5877
|
+
description: string;
|
5878
|
+
createdAt: Date;
|
5879
|
+
updatedAt: Date;
|
5880
|
+
deletedAt: Date | null;
|
5881
|
+
entityId: string;
|
5882
|
+
entityType: {
|
5883
|
+
id: string;
|
5884
|
+
description: string | null;
|
5885
|
+
createdAt: Date;
|
5886
|
+
updatedAt: Date;
|
5887
|
+
deletedAt: Date | null;
|
5888
|
+
entity: string;
|
5889
|
+
};
|
5890
|
+
}[] | undefined;
|
5891
|
+
} | undefined;
|
5892
|
+
telephonyQueue?: {
|
5893
|
+
id: string;
|
5894
|
+
createdAt: Date;
|
5895
|
+
updatedAt: Date;
|
5896
|
+
deletedAt: Date | null;
|
5897
|
+
queueId: number;
|
5898
|
+
queueName: string;
|
5899
|
+
queueNumber: string;
|
5900
|
+
maximumWaitingTime: number;
|
5901
|
+
} | null | undefined;
|
5902
|
+
upload?: {
|
5903
|
+
id: string;
|
5904
|
+
createdAt: Date;
|
5905
|
+
updatedAt: Date;
|
5906
|
+
deletedAt: Date | null;
|
5907
|
+
fileName: string;
|
5908
|
+
fileKey: string;
|
5909
|
+
bucketName: string;
|
5910
|
+
fileSize: number;
|
5911
|
+
fileUrl: string | null;
|
5912
|
+
} | null | undefined;
|
5913
|
+
extension?: {
|
5914
|
+
id: string;
|
5915
|
+
createdAt: Date;
|
5916
|
+
updatedAt: Date;
|
5917
|
+
deletedAt: Date | null;
|
5918
|
+
userId: string | null;
|
5919
|
+
sipServerUrl: string;
|
5920
|
+
sipUserName: string;
|
5921
|
+
webphoneLoginUser: string;
|
5922
|
+
extensionId: number;
|
5923
|
+
extensionName: string;
|
5924
|
+
telephonySignature: string | null;
|
5925
|
+
user?: {
|
5926
|
+
id: string;
|
5927
|
+
address: string | null;
|
5928
|
+
name: string;
|
5929
|
+
email: string;
|
5930
|
+
createdAt: Date;
|
5931
|
+
updatedAt: Date;
|
5932
|
+
deletedAt: Date | null;
|
5933
|
+
emailVerifiedAt: Date | null;
|
5934
|
+
password: string;
|
5935
|
+
phone: string | null;
|
5936
|
+
notificationCount: number | null;
|
5937
|
+
roles: {
|
5938
|
+
id: string;
|
5939
|
+
description: string | null;
|
5940
|
+
createdAt: Date;
|
5941
|
+
updatedAt: Date;
|
5942
|
+
deletedAt: Date | null;
|
5943
|
+
systemName: string;
|
5944
|
+
displayName: string;
|
5945
|
+
permissions: {
|
5946
|
+
id: string;
|
5947
|
+
description: string | null;
|
5948
|
+
createdAt: Date;
|
5949
|
+
updatedAt: Date;
|
5950
|
+
deletedAt: Date | null;
|
5951
|
+
systemName: string;
|
5952
|
+
displayName: string;
|
5953
|
+
}[];
|
5954
|
+
}[];
|
5955
|
+
extension: {
|
5956
|
+
id: string;
|
5957
|
+
createdAt: Date;
|
5958
|
+
updatedAt: Date;
|
5959
|
+
deletedAt: Date | null;
|
5960
|
+
userId: string | null;
|
5961
|
+
sipServerUrl: string;
|
5962
|
+
sipUserName: string;
|
5963
|
+
webphoneLoginUser: string;
|
5964
|
+
extensionId: number;
|
5965
|
+
extensionName: string;
|
5966
|
+
telephonySignature: string | null;
|
5967
|
+
};
|
5968
|
+
} | null | undefined;
|
2997
5969
|
} | null | undefined;
|
2998
5970
|
}[];
|
2999
5971
|
}, {
|
@@ -3161,6 +6133,50 @@ export declare const telephonyCdrContract: {
|
|
3161
6133
|
extensionId: number;
|
3162
6134
|
extensionName: string;
|
3163
6135
|
telephonySignature: string | null;
|
6136
|
+
user?: {
|
6137
|
+
id: string;
|
6138
|
+
address: string | null;
|
6139
|
+
name: string;
|
6140
|
+
email: string;
|
6141
|
+
createdAt: Date;
|
6142
|
+
updatedAt: Date;
|
6143
|
+
deletedAt: Date | null;
|
6144
|
+
emailVerifiedAt: Date | null;
|
6145
|
+
password: string;
|
6146
|
+
phone: string | null;
|
6147
|
+
notificationCount: number | null;
|
6148
|
+
roles: {
|
6149
|
+
id: string;
|
6150
|
+
description: string | null;
|
6151
|
+
createdAt: Date;
|
6152
|
+
updatedAt: Date;
|
6153
|
+
deletedAt: Date | null;
|
6154
|
+
systemName: string;
|
6155
|
+
displayName: string;
|
6156
|
+
permissions: {
|
6157
|
+
id: string;
|
6158
|
+
description: string | null;
|
6159
|
+
createdAt: Date;
|
6160
|
+
updatedAt: Date;
|
6161
|
+
deletedAt: Date | null;
|
6162
|
+
systemName: string;
|
6163
|
+
displayName: string;
|
6164
|
+
}[];
|
6165
|
+
}[];
|
6166
|
+
extension: {
|
6167
|
+
id: string;
|
6168
|
+
createdAt: Date;
|
6169
|
+
updatedAt: Date;
|
6170
|
+
deletedAt: Date | null;
|
6171
|
+
userId: string | null;
|
6172
|
+
sipServerUrl: string;
|
6173
|
+
sipUserName: string;
|
6174
|
+
webphoneLoginUser: string;
|
6175
|
+
extensionId: number;
|
6176
|
+
extensionName: string;
|
6177
|
+
telephonySignature: string | null;
|
6178
|
+
};
|
6179
|
+
} | null | undefined;
|
3164
6180
|
} | null | undefined;
|
3165
6181
|
}[];
|
3166
6182
|
}>;
|
@@ -3175,7 +6191,7 @@ export declare const telephonyCdrContract: {
|
|
3175
6191
|
error?: any;
|
3176
6192
|
}>;
|
3177
6193
|
};
|
3178
|
-
path: "telephony-cdr/
|
6194
|
+
path: "telephony-cdr/recent-calls";
|
3179
6195
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
3180
6196
|
'x-tenant': z.ZodString;
|
3181
6197
|
authorization: z.ZodString;
|
@@ -3193,7 +6209,7 @@ export declare const telephonyCdrContract: {
|
|
3193
6209
|
'x-client-timezone'?: string | undefined;
|
3194
6210
|
}>>>;
|
3195
6211
|
};
|
3196
|
-
|
6212
|
+
export: {
|
3197
6213
|
summary: "Get recent telephony cdr.";
|
3198
6214
|
method: "GET";
|
3199
6215
|
query: z.ZodObject<{
|
@@ -3243,100 +6259,7 @@ export declare const telephonyCdrContract: {
|
|
3243
6259
|
notes?: string | undefined;
|
3244
6260
|
}>;
|
3245
6261
|
responses: {
|
3246
|
-
200:
|
3247
|
-
requestId: z.ZodString;
|
3248
|
-
total: z.ZodNumber;
|
3249
|
-
page: z.ZodNumber;
|
3250
|
-
pageSize: z.ZodNumber;
|
3251
|
-
telephonyCdrs: z.ZodArray<z.ZodObject<{
|
3252
|
-
uniqueCallId: z.ZodString;
|
3253
|
-
timeStart: z.ZodString;
|
3254
|
-
callFrom: z.ZodString;
|
3255
|
-
callTo: z.ZodString;
|
3256
|
-
callDuration: z.ZodNullable<z.ZodNumber>;
|
3257
|
-
talkDuration: z.ZodNullable<z.ZodNumber>;
|
3258
|
-
srcTrunkName: z.ZodNullable<z.ZodString>;
|
3259
|
-
dstTrunkName: z.ZodNullable<z.ZodString>;
|
3260
|
-
pinCode: z.ZodNullable<z.ZodString>;
|
3261
|
-
status: z.ZodString;
|
3262
|
-
type: z.ZodString;
|
3263
|
-
recording: z.ZodNullable<z.ZodString>;
|
3264
|
-
didNumber: z.ZodNullable<z.ZodString>;
|
3265
|
-
agentRingTime: z.ZodNullable<z.ZodNumber>;
|
3266
|
-
}, "strip", z.ZodTypeAny, {
|
3267
|
-
type: string;
|
3268
|
-
recording: string | null;
|
3269
|
-
status: string;
|
3270
|
-
uniqueCallId: string;
|
3271
|
-
timeStart: string;
|
3272
|
-
callFrom: string;
|
3273
|
-
callTo: string;
|
3274
|
-
callDuration: number | null;
|
3275
|
-
talkDuration: number | null;
|
3276
|
-
srcTrunkName: string | null;
|
3277
|
-
dstTrunkName: string | null;
|
3278
|
-
pinCode: string | null;
|
3279
|
-
didNumber: string | null;
|
3280
|
-
agentRingTime: number | null;
|
3281
|
-
}, {
|
3282
|
-
type: string;
|
3283
|
-
recording: string | null;
|
3284
|
-
status: string;
|
3285
|
-
uniqueCallId: string;
|
3286
|
-
timeStart: string;
|
3287
|
-
callFrom: string;
|
3288
|
-
callTo: string;
|
3289
|
-
callDuration: number | null;
|
3290
|
-
talkDuration: number | null;
|
3291
|
-
srcTrunkName: string | null;
|
3292
|
-
dstTrunkName: string | null;
|
3293
|
-
pinCode: string | null;
|
3294
|
-
didNumber: string | null;
|
3295
|
-
agentRingTime: number | null;
|
3296
|
-
}>, "many">;
|
3297
|
-
}, "strip", z.ZodTypeAny, {
|
3298
|
-
total: number;
|
3299
|
-
page: number;
|
3300
|
-
pageSize: number;
|
3301
|
-
requestId: string;
|
3302
|
-
telephonyCdrs: {
|
3303
|
-
type: string;
|
3304
|
-
recording: string | null;
|
3305
|
-
status: string;
|
3306
|
-
uniqueCallId: string;
|
3307
|
-
timeStart: string;
|
3308
|
-
callFrom: string;
|
3309
|
-
callTo: string;
|
3310
|
-
callDuration: number | null;
|
3311
|
-
talkDuration: number | null;
|
3312
|
-
srcTrunkName: string | null;
|
3313
|
-
dstTrunkName: string | null;
|
3314
|
-
pinCode: string | null;
|
3315
|
-
didNumber: string | null;
|
3316
|
-
agentRingTime: number | null;
|
3317
|
-
}[];
|
3318
|
-
}, {
|
3319
|
-
total: number;
|
3320
|
-
page: number;
|
3321
|
-
pageSize: number;
|
3322
|
-
requestId: string;
|
3323
|
-
telephonyCdrs: {
|
3324
|
-
type: string;
|
3325
|
-
recording: string | null;
|
3326
|
-
status: string;
|
3327
|
-
uniqueCallId: string;
|
3328
|
-
timeStart: string;
|
3329
|
-
callFrom: string;
|
3330
|
-
callTo: string;
|
3331
|
-
callDuration: number | null;
|
3332
|
-
talkDuration: number | null;
|
3333
|
-
srcTrunkName: string | null;
|
3334
|
-
dstTrunkName: string | null;
|
3335
|
-
pinCode: string | null;
|
3336
|
-
didNumber: string | null;
|
3337
|
-
agentRingTime: number | null;
|
3338
|
-
}[];
|
3339
|
-
}>;
|
6262
|
+
200: null;
|
3340
6263
|
401: z.ZodObject<{
|
3341
6264
|
message: z.ZodString;
|
3342
6265
|
error: z.ZodAny;
|
@@ -3348,7 +6271,7 @@ export declare const telephonyCdrContract: {
|
|
3348
6271
|
error?: any;
|
3349
6272
|
}>;
|
3350
6273
|
};
|
3351
|
-
path: "telephony-cdr/
|
6274
|
+
path: "telephony-cdr/export";
|
3352
6275
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
3353
6276
|
'x-tenant': z.ZodString;
|
3354
6277
|
authorization: z.ZodString;
|
@@ -3366,57 +6289,688 @@ export declare const telephonyCdrContract: {
|
|
3366
6289
|
'x-client-timezone'?: string | undefined;
|
3367
6290
|
}>>>;
|
3368
6291
|
};
|
3369
|
-
|
3370
|
-
|
3371
|
-
method: "GET";
|
3372
|
-
query: z.ZodObject<{
|
6292
|
+
yeastarCallReport: {
|
6293
|
+
body: z.ZodEffects<z.ZodObject<{
|
3373
6294
|
page: z.ZodDefault<z.ZodNumber>;
|
3374
6295
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
3375
|
-
|
3376
|
-
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
3377
|
-
callFrom: z.ZodOptional<z.ZodString>;
|
3378
|
-
callTo: z.ZodOptional<z.ZodString>;
|
3379
|
-
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
3380
|
-
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
6296
|
+
reportType: z.ZodEnum<["extcallstatistics", "extcallactivity", "trunkactivity", "queuesatisfaction", "queueavgwaittalktime", "queueperformance", "queueagentmisscalls", "queueagentinoutcalls"]>;
|
3381
6297
|
selectedDate: z.ZodOptional<z.ZodString>;
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
6298
|
+
communicationType: z.ZodOptional<z.ZodEnum<["Inbound", "Outbound", "Internal"]>>;
|
6299
|
+
time: z.ZodOptional<z.ZodString>;
|
6300
|
+
queueList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
6301
|
+
queueId: z.ZodOptional<z.ZodString>;
|
6302
|
+
trunkList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
6303
|
+
extensionList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
3387
6304
|
}, "strip", z.ZodTypeAny, {
|
3388
6305
|
page: number;
|
3389
6306
|
pageSize: number;
|
3390
|
-
|
3391
|
-
status?: string[] | undefined;
|
3392
|
-
callFrom?: string | undefined;
|
3393
|
-
callTo?: string | undefined;
|
3394
|
-
result?: string[] | undefined;
|
3395
|
-
callTags?: string[] | undefined;
|
6307
|
+
reportType: "extcallstatistics" | "extcallactivity" | "trunkactivity" | "queuesatisfaction" | "queueavgwaittalktime" | "queueperformance" | "queueagentmisscalls" | "queueagentinoutcalls";
|
3396
6308
|
selectedDate?: string | undefined;
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
|
3401
|
-
|
6309
|
+
communicationType?: "Inbound" | "Outbound" | "Internal" | undefined;
|
6310
|
+
time?: string | undefined;
|
6311
|
+
queueList?: string[] | undefined;
|
6312
|
+
queueId?: string | undefined;
|
6313
|
+
trunkList?: string[] | undefined;
|
6314
|
+
extensionList?: string[] | undefined;
|
3402
6315
|
}, {
|
6316
|
+
reportType: "extcallstatistics" | "extcallactivity" | "trunkactivity" | "queuesatisfaction" | "queueavgwaittalktime" | "queueperformance" | "queueagentmisscalls" | "queueagentinoutcalls";
|
3403
6317
|
page?: number | undefined;
|
3404
6318
|
pageSize?: number | undefined;
|
3405
|
-
type?: string[] | undefined;
|
3406
|
-
status?: string[] | undefined;
|
3407
|
-
callFrom?: string | undefined;
|
3408
|
-
callTo?: string | undefined;
|
3409
|
-
result?: string[] | undefined;
|
3410
|
-
callTags?: string[] | undefined;
|
3411
6319
|
selectedDate?: string | undefined;
|
3412
|
-
|
3413
|
-
|
3414
|
-
|
3415
|
-
|
3416
|
-
|
6320
|
+
communicationType?: "Inbound" | "Outbound" | "Internal" | undefined;
|
6321
|
+
time?: string | undefined;
|
6322
|
+
queueList?: string[] | undefined;
|
6323
|
+
queueId?: string | undefined;
|
6324
|
+
trunkList?: string[] | undefined;
|
6325
|
+
extensionList?: string[] | undefined;
|
6326
|
+
}>, {
|
6327
|
+
page: number;
|
6328
|
+
pageSize: number;
|
6329
|
+
reportType: "extcallstatistics" | "extcallactivity" | "trunkactivity" | "queuesatisfaction" | "queueavgwaittalktime" | "queueperformance" | "queueagentmisscalls" | "queueagentinoutcalls";
|
6330
|
+
selectedDate?: string | undefined;
|
6331
|
+
communicationType?: "Inbound" | "Outbound" | "Internal" | undefined;
|
6332
|
+
time?: string | undefined;
|
6333
|
+
queueList?: string[] | undefined;
|
6334
|
+
queueId?: string | undefined;
|
6335
|
+
trunkList?: string[] | undefined;
|
6336
|
+
extensionList?: string[] | undefined;
|
6337
|
+
}, {
|
6338
|
+
reportType: "extcallstatistics" | "extcallactivity" | "trunkactivity" | "queuesatisfaction" | "queueavgwaittalktime" | "queueperformance" | "queueagentmisscalls" | "queueagentinoutcalls";
|
6339
|
+
page?: number | undefined;
|
6340
|
+
pageSize?: number | undefined;
|
6341
|
+
selectedDate?: string | undefined;
|
6342
|
+
communicationType?: "Inbound" | "Outbound" | "Internal" | undefined;
|
6343
|
+
time?: string | undefined;
|
6344
|
+
queueList?: string[] | undefined;
|
6345
|
+
queueId?: string | undefined;
|
6346
|
+
trunkList?: string[] | undefined;
|
6347
|
+
extensionList?: string[] | undefined;
|
3417
6348
|
}>;
|
6349
|
+
summary: "Get yeastar call report.";
|
6350
|
+
method: "POST";
|
3418
6351
|
responses: {
|
3419
|
-
200:
|
6352
|
+
200: z.ZodObject<{
|
6353
|
+
errcode: z.ZodNumber;
|
6354
|
+
errmsg: z.ZodString;
|
6355
|
+
total_number: z.ZodNumber;
|
6356
|
+
is_12hour: z.ZodOptional<z.ZodNumber>;
|
6357
|
+
ext_call_statistics_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6358
|
+
ext_num: z.ZodString;
|
6359
|
+
ext_name: z.ZodString;
|
6360
|
+
answered_calls: z.ZodNumber;
|
6361
|
+
no_answer_calls: z.ZodNumber;
|
6362
|
+
busy_calls: z.ZodNumber;
|
6363
|
+
failed_calls: z.ZodNumber;
|
6364
|
+
voicemail_calls: z.ZodNumber;
|
6365
|
+
total_holding_time: z.ZodNumber;
|
6366
|
+
total_talking_time: z.ZodNumber;
|
6367
|
+
src_name: z.ZodString;
|
6368
|
+
total_call_count: z.ZodNumber;
|
6369
|
+
mobile: z.ZodString;
|
6370
|
+
}, "strip", z.ZodTypeAny, {
|
6371
|
+
mobile: string;
|
6372
|
+
ext_num: string;
|
6373
|
+
ext_name: string;
|
6374
|
+
answered_calls: number;
|
6375
|
+
no_answer_calls: number;
|
6376
|
+
busy_calls: number;
|
6377
|
+
failed_calls: number;
|
6378
|
+
voicemail_calls: number;
|
6379
|
+
total_holding_time: number;
|
6380
|
+
total_talking_time: number;
|
6381
|
+
src_name: string;
|
6382
|
+
total_call_count: number;
|
6383
|
+
}, {
|
6384
|
+
mobile: string;
|
6385
|
+
ext_num: string;
|
6386
|
+
ext_name: string;
|
6387
|
+
answered_calls: number;
|
6388
|
+
no_answer_calls: number;
|
6389
|
+
busy_calls: number;
|
6390
|
+
failed_calls: number;
|
6391
|
+
voicemail_calls: number;
|
6392
|
+
total_holding_time: number;
|
6393
|
+
total_talking_time: number;
|
6394
|
+
src_name: string;
|
6395
|
+
total_call_count: number;
|
6396
|
+
}>, "many">>;
|
6397
|
+
ext_call_activity_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6398
|
+
time: z.ZodNumber;
|
6399
|
+
answered_calls: z.ZodNumber;
|
6400
|
+
no_answer_calls: z.ZodNumber;
|
6401
|
+
busy_calls: z.ZodNumber;
|
6402
|
+
failed_calls: z.ZodNumber;
|
6403
|
+
voicemail_calls: z.ZodNumber;
|
6404
|
+
total_holding_time: z.ZodNumber;
|
6405
|
+
total_talking_time: z.ZodNumber;
|
6406
|
+
ext_statistics: z.ZodArray<z.ZodObject<{
|
6407
|
+
ext_num: z.ZodString;
|
6408
|
+
ext_name: z.ZodString;
|
6409
|
+
answered_calls: z.ZodNumber;
|
6410
|
+
no_answer_calls: z.ZodNumber;
|
6411
|
+
busy_calls: z.ZodNumber;
|
6412
|
+
failed_calls: z.ZodNumber;
|
6413
|
+
voicemail_calls: z.ZodNumber;
|
6414
|
+
total_holding_time: z.ZodNumber;
|
6415
|
+
total_talking_time: z.ZodNumber;
|
6416
|
+
time: z.ZodNumber;
|
6417
|
+
mobile: z.ZodString;
|
6418
|
+
}, "strip", z.ZodTypeAny, {
|
6419
|
+
time: number;
|
6420
|
+
mobile: string;
|
6421
|
+
ext_num: string;
|
6422
|
+
ext_name: string;
|
6423
|
+
answered_calls: number;
|
6424
|
+
no_answer_calls: number;
|
6425
|
+
busy_calls: number;
|
6426
|
+
failed_calls: number;
|
6427
|
+
voicemail_calls: number;
|
6428
|
+
total_holding_time: number;
|
6429
|
+
total_talking_time: number;
|
6430
|
+
}, {
|
6431
|
+
time: number;
|
6432
|
+
mobile: string;
|
6433
|
+
ext_num: string;
|
6434
|
+
ext_name: string;
|
6435
|
+
answered_calls: number;
|
6436
|
+
no_answer_calls: number;
|
6437
|
+
busy_calls: number;
|
6438
|
+
failed_calls: number;
|
6439
|
+
voicemail_calls: number;
|
6440
|
+
total_holding_time: number;
|
6441
|
+
total_talking_time: number;
|
6442
|
+
}>, "many">;
|
6443
|
+
}, "strip", z.ZodTypeAny, {
|
6444
|
+
time: number;
|
6445
|
+
answered_calls: number;
|
6446
|
+
no_answer_calls: number;
|
6447
|
+
busy_calls: number;
|
6448
|
+
failed_calls: number;
|
6449
|
+
voicemail_calls: number;
|
6450
|
+
total_holding_time: number;
|
6451
|
+
total_talking_time: number;
|
6452
|
+
ext_statistics: {
|
6453
|
+
time: number;
|
6454
|
+
mobile: string;
|
6455
|
+
ext_num: string;
|
6456
|
+
ext_name: string;
|
6457
|
+
answered_calls: number;
|
6458
|
+
no_answer_calls: number;
|
6459
|
+
busy_calls: number;
|
6460
|
+
failed_calls: number;
|
6461
|
+
voicemail_calls: number;
|
6462
|
+
total_holding_time: number;
|
6463
|
+
total_talking_time: number;
|
6464
|
+
}[];
|
6465
|
+
}, {
|
6466
|
+
time: number;
|
6467
|
+
answered_calls: number;
|
6468
|
+
no_answer_calls: number;
|
6469
|
+
busy_calls: number;
|
6470
|
+
failed_calls: number;
|
6471
|
+
voicemail_calls: number;
|
6472
|
+
total_holding_time: number;
|
6473
|
+
total_talking_time: number;
|
6474
|
+
ext_statistics: {
|
6475
|
+
time: number;
|
6476
|
+
mobile: string;
|
6477
|
+
ext_num: string;
|
6478
|
+
ext_name: string;
|
6479
|
+
answered_calls: number;
|
6480
|
+
no_answer_calls: number;
|
6481
|
+
busy_calls: number;
|
6482
|
+
failed_calls: number;
|
6483
|
+
voicemail_calls: number;
|
6484
|
+
total_holding_time: number;
|
6485
|
+
total_talking_time: number;
|
6486
|
+
}[];
|
6487
|
+
}>, "many">>;
|
6488
|
+
trunk_activity_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6489
|
+
time: z.ZodNumber;
|
6490
|
+
trunk_list: z.ZodArray<z.ZodObject<{
|
6491
|
+
trunk_name: z.ZodString;
|
6492
|
+
total_calls: z.ZodNumber;
|
6493
|
+
}, "strip", z.ZodTypeAny, {
|
6494
|
+
trunk_name: string;
|
6495
|
+
total_calls: number;
|
6496
|
+
}, {
|
6497
|
+
trunk_name: string;
|
6498
|
+
total_calls: number;
|
6499
|
+
}>, "many">;
|
6500
|
+
}, "strip", z.ZodTypeAny, {
|
6501
|
+
time: number;
|
6502
|
+
trunk_list: {
|
6503
|
+
trunk_name: string;
|
6504
|
+
total_calls: number;
|
6505
|
+
}[];
|
6506
|
+
}, {
|
6507
|
+
time: number;
|
6508
|
+
trunk_list: {
|
6509
|
+
trunk_name: string;
|
6510
|
+
total_calls: number;
|
6511
|
+
}[];
|
6512
|
+
}>, "many">>;
|
6513
|
+
queue_avg_wait_talk_time_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6514
|
+
time: z.ZodNumber;
|
6515
|
+
avg_wait_time: z.ZodNumber;
|
6516
|
+
avg_talk_time: z.ZodNumber;
|
6517
|
+
}, "strip", z.ZodTypeAny, {
|
6518
|
+
time: number;
|
6519
|
+
avg_wait_time: number;
|
6520
|
+
avg_talk_time: number;
|
6521
|
+
}, {
|
6522
|
+
time: number;
|
6523
|
+
avg_wait_time: number;
|
6524
|
+
avg_talk_time: number;
|
6525
|
+
}>, "many">>;
|
6526
|
+
queue_satisfaction: z.ZodOptional<z.ZodObject<{
|
6527
|
+
queue_name: z.ZodString;
|
6528
|
+
queue_num: z.ZodString;
|
6529
|
+
satisfaction_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6530
|
+
press_key: z.ZodString;
|
6531
|
+
total: z.ZodNumber;
|
6532
|
+
key_point: z.ZodOptional<z.ZodNumber>;
|
6533
|
+
}, "strip", z.ZodTypeAny, {
|
6534
|
+
total: number;
|
6535
|
+
press_key: string;
|
6536
|
+
key_point?: number | undefined;
|
6537
|
+
}, {
|
6538
|
+
total: number;
|
6539
|
+
press_key: string;
|
6540
|
+
key_point?: number | undefined;
|
6541
|
+
}>, "many">>;
|
6542
|
+
agent_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6543
|
+
agent_name: z.ZodString;
|
6544
|
+
agent_num: z.ZodString;
|
6545
|
+
satisfaction_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6546
|
+
press_key: z.ZodString;
|
6547
|
+
total: z.ZodNumber;
|
6548
|
+
key_point: z.ZodOptional<z.ZodNumber>;
|
6549
|
+
}, "strip", z.ZodTypeAny, {
|
6550
|
+
total: number;
|
6551
|
+
press_key: string;
|
6552
|
+
key_point?: number | undefined;
|
6553
|
+
}, {
|
6554
|
+
total: number;
|
6555
|
+
press_key: string;
|
6556
|
+
key_point?: number | undefined;
|
6557
|
+
}>, "many">>;
|
6558
|
+
total_key: z.ZodOptional<z.ZodNumber>;
|
6559
|
+
total_point: z.ZodOptional<z.ZodNumber>;
|
6560
|
+
average_point: z.ZodOptional<z.ZodNumber>;
|
6561
|
+
}, "strip", z.ZodTypeAny, {
|
6562
|
+
agent_name: string;
|
6563
|
+
agent_num: string;
|
6564
|
+
satisfaction_list?: {
|
6565
|
+
total: number;
|
6566
|
+
press_key: string;
|
6567
|
+
key_point?: number | undefined;
|
6568
|
+
}[] | undefined;
|
6569
|
+
total_key?: number | undefined;
|
6570
|
+
total_point?: number | undefined;
|
6571
|
+
average_point?: number | undefined;
|
6572
|
+
}, {
|
6573
|
+
agent_name: string;
|
6574
|
+
agent_num: string;
|
6575
|
+
satisfaction_list?: {
|
6576
|
+
total: number;
|
6577
|
+
press_key: string;
|
6578
|
+
key_point?: number | undefined;
|
6579
|
+
}[] | undefined;
|
6580
|
+
total_key?: number | undefined;
|
6581
|
+
total_point?: number | undefined;
|
6582
|
+
average_point?: number | undefined;
|
6583
|
+
}>, "many">>;
|
6584
|
+
total_key: z.ZodOptional<z.ZodNumber>;
|
6585
|
+
total_point: z.ZodOptional<z.ZodNumber>;
|
6586
|
+
average_point: z.ZodOptional<z.ZodNumber>;
|
6587
|
+
}, "strip", z.ZodTypeAny, {
|
6588
|
+
queue_name: string;
|
6589
|
+
queue_num: string;
|
6590
|
+
satisfaction_list?: {
|
6591
|
+
total: number;
|
6592
|
+
press_key: string;
|
6593
|
+
key_point?: number | undefined;
|
6594
|
+
}[] | undefined;
|
6595
|
+
agent_list?: {
|
6596
|
+
agent_name: string;
|
6597
|
+
agent_num: string;
|
6598
|
+
satisfaction_list?: {
|
6599
|
+
total: number;
|
6600
|
+
press_key: string;
|
6601
|
+
key_point?: number | undefined;
|
6602
|
+
}[] | undefined;
|
6603
|
+
total_key?: number | undefined;
|
6604
|
+
total_point?: number | undefined;
|
6605
|
+
average_point?: number | undefined;
|
6606
|
+
}[] | undefined;
|
6607
|
+
total_key?: number | undefined;
|
6608
|
+
total_point?: number | undefined;
|
6609
|
+
average_point?: number | undefined;
|
6610
|
+
}, {
|
6611
|
+
queue_name: string;
|
6612
|
+
queue_num: string;
|
6613
|
+
satisfaction_list?: {
|
6614
|
+
total: number;
|
6615
|
+
press_key: string;
|
6616
|
+
key_point?: number | undefined;
|
6617
|
+
}[] | undefined;
|
6618
|
+
agent_list?: {
|
6619
|
+
agent_name: string;
|
6620
|
+
agent_num: string;
|
6621
|
+
satisfaction_list?: {
|
6622
|
+
total: number;
|
6623
|
+
press_key: string;
|
6624
|
+
key_point?: number | undefined;
|
6625
|
+
}[] | undefined;
|
6626
|
+
total_key?: number | undefined;
|
6627
|
+
total_point?: number | undefined;
|
6628
|
+
average_point?: number | undefined;
|
6629
|
+
}[] | undefined;
|
6630
|
+
total_key?: number | undefined;
|
6631
|
+
total_point?: number | undefined;
|
6632
|
+
average_point?: number | undefined;
|
6633
|
+
}>>;
|
6634
|
+
queue_performance_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6635
|
+
queue: z.ZodString;
|
6636
|
+
total_calls: z.ZodNumber;
|
6637
|
+
answered_calls: z.ZodNumber;
|
6638
|
+
missed_calls: z.ZodNumber;
|
6639
|
+
abandoned_calls: z.ZodNumber;
|
6640
|
+
average_waiting_time: z.ZodNumber;
|
6641
|
+
average_talking_time: z.ZodNumber;
|
6642
|
+
max_waiting_time: z.ZodNumber;
|
6643
|
+
answered_rate: z.ZodNumber;
|
6644
|
+
missed_rate: z.ZodNumber;
|
6645
|
+
abandoned_rate: z.ZodNumber;
|
6646
|
+
sla: z.ZodNumber;
|
6647
|
+
}, "strip", z.ZodTypeAny, {
|
6648
|
+
queue: string;
|
6649
|
+
sla: number;
|
6650
|
+
answered_calls: number;
|
6651
|
+
total_calls: number;
|
6652
|
+
missed_calls: number;
|
6653
|
+
abandoned_calls: number;
|
6654
|
+
average_waiting_time: number;
|
6655
|
+
average_talking_time: number;
|
6656
|
+
max_waiting_time: number;
|
6657
|
+
answered_rate: number;
|
6658
|
+
missed_rate: number;
|
6659
|
+
abandoned_rate: number;
|
6660
|
+
}, {
|
6661
|
+
queue: string;
|
6662
|
+
sla: number;
|
6663
|
+
answered_calls: number;
|
6664
|
+
total_calls: number;
|
6665
|
+
missed_calls: number;
|
6666
|
+
abandoned_calls: number;
|
6667
|
+
average_waiting_time: number;
|
6668
|
+
average_talking_time: number;
|
6669
|
+
max_waiting_time: number;
|
6670
|
+
answered_rate: number;
|
6671
|
+
missed_rate: number;
|
6672
|
+
abandoned_rate: number;
|
6673
|
+
}>, "many">>;
|
6674
|
+
queue_agent_miss_calls_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6675
|
+
agent_name: z.ZodString;
|
6676
|
+
agent_num: z.ZodString;
|
6677
|
+
time: z.ZodString;
|
6678
|
+
total_wait_time: z.ZodNumber;
|
6679
|
+
src_name: z.ZodString;
|
6680
|
+
src_num: z.ZodString;
|
6681
|
+
queue_status: z.ZodString;
|
6682
|
+
polling_attempts: z.ZodNumber;
|
6683
|
+
missed_reason: z.ZodString;
|
6684
|
+
}, "strip", z.ZodTypeAny, {
|
6685
|
+
time: string;
|
6686
|
+
src_name: string;
|
6687
|
+
agent_name: string;
|
6688
|
+
agent_num: string;
|
6689
|
+
total_wait_time: number;
|
6690
|
+
src_num: string;
|
6691
|
+
queue_status: string;
|
6692
|
+
polling_attempts: number;
|
6693
|
+
missed_reason: string;
|
6694
|
+
}, {
|
6695
|
+
time: string;
|
6696
|
+
src_name: string;
|
6697
|
+
agent_name: string;
|
6698
|
+
agent_num: string;
|
6699
|
+
total_wait_time: number;
|
6700
|
+
src_num: string;
|
6701
|
+
queue_status: string;
|
6702
|
+
polling_attempts: number;
|
6703
|
+
missed_reason: string;
|
6704
|
+
}>, "many">>;
|
6705
|
+
queue_agent_in_out_calls_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6706
|
+
agent_name: z.ZodString;
|
6707
|
+
agent_num: z.ZodString;
|
6708
|
+
inbound_calls: z.ZodNumber;
|
6709
|
+
inbound_duration: z.ZodNumber;
|
6710
|
+
outbound_calls: z.ZodNumber;
|
6711
|
+
outbound_duration: z.ZodNumber;
|
6712
|
+
total_calls: z.ZodNumber;
|
6713
|
+
total_duration: z.ZodNumber;
|
6714
|
+
average_talk_duration: z.ZodNumber;
|
6715
|
+
}, "strip", z.ZodTypeAny, {
|
6716
|
+
total_calls: number;
|
6717
|
+
agent_name: string;
|
6718
|
+
agent_num: string;
|
6719
|
+
inbound_calls: number;
|
6720
|
+
inbound_duration: number;
|
6721
|
+
outbound_calls: number;
|
6722
|
+
outbound_duration: number;
|
6723
|
+
total_duration: number;
|
6724
|
+
average_talk_duration: number;
|
6725
|
+
}, {
|
6726
|
+
total_calls: number;
|
6727
|
+
agent_name: string;
|
6728
|
+
agent_num: string;
|
6729
|
+
inbound_calls: number;
|
6730
|
+
inbound_duration: number;
|
6731
|
+
outbound_calls: number;
|
6732
|
+
outbound_duration: number;
|
6733
|
+
total_duration: number;
|
6734
|
+
average_talk_duration: number;
|
6735
|
+
}>, "many">>;
|
6736
|
+
callback_result: z.ZodString;
|
6737
|
+
page: z.ZodOptional<z.ZodNumber>;
|
6738
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
6739
|
+
}, "strip", z.ZodTypeAny, {
|
6740
|
+
errcode: number;
|
6741
|
+
errmsg: string;
|
6742
|
+
total_number: number;
|
6743
|
+
callback_result: string;
|
6744
|
+
is_12hour?: number | undefined;
|
6745
|
+
ext_call_statistics_list?: {
|
6746
|
+
mobile: string;
|
6747
|
+
ext_num: string;
|
6748
|
+
ext_name: string;
|
6749
|
+
answered_calls: number;
|
6750
|
+
no_answer_calls: number;
|
6751
|
+
busy_calls: number;
|
6752
|
+
failed_calls: number;
|
6753
|
+
voicemail_calls: number;
|
6754
|
+
total_holding_time: number;
|
6755
|
+
total_talking_time: number;
|
6756
|
+
src_name: string;
|
6757
|
+
total_call_count: number;
|
6758
|
+
}[] | undefined;
|
6759
|
+
ext_call_activity_list?: {
|
6760
|
+
time: number;
|
6761
|
+
answered_calls: number;
|
6762
|
+
no_answer_calls: number;
|
6763
|
+
busy_calls: number;
|
6764
|
+
failed_calls: number;
|
6765
|
+
voicemail_calls: number;
|
6766
|
+
total_holding_time: number;
|
6767
|
+
total_talking_time: number;
|
6768
|
+
ext_statistics: {
|
6769
|
+
time: number;
|
6770
|
+
mobile: string;
|
6771
|
+
ext_num: string;
|
6772
|
+
ext_name: string;
|
6773
|
+
answered_calls: number;
|
6774
|
+
no_answer_calls: number;
|
6775
|
+
busy_calls: number;
|
6776
|
+
failed_calls: number;
|
6777
|
+
voicemail_calls: number;
|
6778
|
+
total_holding_time: number;
|
6779
|
+
total_talking_time: number;
|
6780
|
+
}[];
|
6781
|
+
}[] | undefined;
|
6782
|
+
trunk_activity_list?: {
|
6783
|
+
time: number;
|
6784
|
+
trunk_list: {
|
6785
|
+
trunk_name: string;
|
6786
|
+
total_calls: number;
|
6787
|
+
}[];
|
6788
|
+
}[] | undefined;
|
6789
|
+
queue_avg_wait_talk_time_list?: {
|
6790
|
+
time: number;
|
6791
|
+
avg_wait_time: number;
|
6792
|
+
avg_talk_time: number;
|
6793
|
+
}[] | undefined;
|
6794
|
+
queue_satisfaction?: {
|
6795
|
+
queue_name: string;
|
6796
|
+
queue_num: string;
|
6797
|
+
satisfaction_list?: {
|
6798
|
+
total: number;
|
6799
|
+
press_key: string;
|
6800
|
+
key_point?: number | undefined;
|
6801
|
+
}[] | undefined;
|
6802
|
+
agent_list?: {
|
6803
|
+
agent_name: string;
|
6804
|
+
agent_num: string;
|
6805
|
+
satisfaction_list?: {
|
6806
|
+
total: number;
|
6807
|
+
press_key: string;
|
6808
|
+
key_point?: number | undefined;
|
6809
|
+
}[] | undefined;
|
6810
|
+
total_key?: number | undefined;
|
6811
|
+
total_point?: number | undefined;
|
6812
|
+
average_point?: number | undefined;
|
6813
|
+
}[] | undefined;
|
6814
|
+
total_key?: number | undefined;
|
6815
|
+
total_point?: number | undefined;
|
6816
|
+
average_point?: number | undefined;
|
6817
|
+
} | undefined;
|
6818
|
+
queue_performance_list?: {
|
6819
|
+
queue: string;
|
6820
|
+
sla: number;
|
6821
|
+
answered_calls: number;
|
6822
|
+
total_calls: number;
|
6823
|
+
missed_calls: number;
|
6824
|
+
abandoned_calls: number;
|
6825
|
+
average_waiting_time: number;
|
6826
|
+
average_talking_time: number;
|
6827
|
+
max_waiting_time: number;
|
6828
|
+
answered_rate: number;
|
6829
|
+
missed_rate: number;
|
6830
|
+
abandoned_rate: number;
|
6831
|
+
}[] | undefined;
|
6832
|
+
queue_agent_miss_calls_list?: {
|
6833
|
+
time: string;
|
6834
|
+
src_name: string;
|
6835
|
+
agent_name: string;
|
6836
|
+
agent_num: string;
|
6837
|
+
total_wait_time: number;
|
6838
|
+
src_num: string;
|
6839
|
+
queue_status: string;
|
6840
|
+
polling_attempts: number;
|
6841
|
+
missed_reason: string;
|
6842
|
+
}[] | undefined;
|
6843
|
+
queue_agent_in_out_calls_list?: {
|
6844
|
+
total_calls: number;
|
6845
|
+
agent_name: string;
|
6846
|
+
agent_num: string;
|
6847
|
+
inbound_calls: number;
|
6848
|
+
inbound_duration: number;
|
6849
|
+
outbound_calls: number;
|
6850
|
+
outbound_duration: number;
|
6851
|
+
total_duration: number;
|
6852
|
+
average_talk_duration: number;
|
6853
|
+
}[] | undefined;
|
6854
|
+
page?: number | undefined;
|
6855
|
+
pageSize?: number | undefined;
|
6856
|
+
}, {
|
6857
|
+
errcode: number;
|
6858
|
+
errmsg: string;
|
6859
|
+
total_number: number;
|
6860
|
+
callback_result: string;
|
6861
|
+
is_12hour?: number | undefined;
|
6862
|
+
ext_call_statistics_list?: {
|
6863
|
+
mobile: string;
|
6864
|
+
ext_num: string;
|
6865
|
+
ext_name: string;
|
6866
|
+
answered_calls: number;
|
6867
|
+
no_answer_calls: number;
|
6868
|
+
busy_calls: number;
|
6869
|
+
failed_calls: number;
|
6870
|
+
voicemail_calls: number;
|
6871
|
+
total_holding_time: number;
|
6872
|
+
total_talking_time: number;
|
6873
|
+
src_name: string;
|
6874
|
+
total_call_count: number;
|
6875
|
+
}[] | undefined;
|
6876
|
+
ext_call_activity_list?: {
|
6877
|
+
time: number;
|
6878
|
+
answered_calls: number;
|
6879
|
+
no_answer_calls: number;
|
6880
|
+
busy_calls: number;
|
6881
|
+
failed_calls: number;
|
6882
|
+
voicemail_calls: number;
|
6883
|
+
total_holding_time: number;
|
6884
|
+
total_talking_time: number;
|
6885
|
+
ext_statistics: {
|
6886
|
+
time: number;
|
6887
|
+
mobile: string;
|
6888
|
+
ext_num: string;
|
6889
|
+
ext_name: string;
|
6890
|
+
answered_calls: number;
|
6891
|
+
no_answer_calls: number;
|
6892
|
+
busy_calls: number;
|
6893
|
+
failed_calls: number;
|
6894
|
+
voicemail_calls: number;
|
6895
|
+
total_holding_time: number;
|
6896
|
+
total_talking_time: number;
|
6897
|
+
}[];
|
6898
|
+
}[] | undefined;
|
6899
|
+
trunk_activity_list?: {
|
6900
|
+
time: number;
|
6901
|
+
trunk_list: {
|
6902
|
+
trunk_name: string;
|
6903
|
+
total_calls: number;
|
6904
|
+
}[];
|
6905
|
+
}[] | undefined;
|
6906
|
+
queue_avg_wait_talk_time_list?: {
|
6907
|
+
time: number;
|
6908
|
+
avg_wait_time: number;
|
6909
|
+
avg_talk_time: number;
|
6910
|
+
}[] | undefined;
|
6911
|
+
queue_satisfaction?: {
|
6912
|
+
queue_name: string;
|
6913
|
+
queue_num: string;
|
6914
|
+
satisfaction_list?: {
|
6915
|
+
total: number;
|
6916
|
+
press_key: string;
|
6917
|
+
key_point?: number | undefined;
|
6918
|
+
}[] | undefined;
|
6919
|
+
agent_list?: {
|
6920
|
+
agent_name: string;
|
6921
|
+
agent_num: string;
|
6922
|
+
satisfaction_list?: {
|
6923
|
+
total: number;
|
6924
|
+
press_key: string;
|
6925
|
+
key_point?: number | undefined;
|
6926
|
+
}[] | undefined;
|
6927
|
+
total_key?: number | undefined;
|
6928
|
+
total_point?: number | undefined;
|
6929
|
+
average_point?: number | undefined;
|
6930
|
+
}[] | undefined;
|
6931
|
+
total_key?: number | undefined;
|
6932
|
+
total_point?: number | undefined;
|
6933
|
+
average_point?: number | undefined;
|
6934
|
+
} | undefined;
|
6935
|
+
queue_performance_list?: {
|
6936
|
+
queue: string;
|
6937
|
+
sla: number;
|
6938
|
+
answered_calls: number;
|
6939
|
+
total_calls: number;
|
6940
|
+
missed_calls: number;
|
6941
|
+
abandoned_calls: number;
|
6942
|
+
average_waiting_time: number;
|
6943
|
+
average_talking_time: number;
|
6944
|
+
max_waiting_time: number;
|
6945
|
+
answered_rate: number;
|
6946
|
+
missed_rate: number;
|
6947
|
+
abandoned_rate: number;
|
6948
|
+
}[] | undefined;
|
6949
|
+
queue_agent_miss_calls_list?: {
|
6950
|
+
time: string;
|
6951
|
+
src_name: string;
|
6952
|
+
agent_name: string;
|
6953
|
+
agent_num: string;
|
6954
|
+
total_wait_time: number;
|
6955
|
+
src_num: string;
|
6956
|
+
queue_status: string;
|
6957
|
+
polling_attempts: number;
|
6958
|
+
missed_reason: string;
|
6959
|
+
}[] | undefined;
|
6960
|
+
queue_agent_in_out_calls_list?: {
|
6961
|
+
total_calls: number;
|
6962
|
+
agent_name: string;
|
6963
|
+
agent_num: string;
|
6964
|
+
inbound_calls: number;
|
6965
|
+
inbound_duration: number;
|
6966
|
+
outbound_calls: number;
|
6967
|
+
outbound_duration: number;
|
6968
|
+
total_duration: number;
|
6969
|
+
average_talk_duration: number;
|
6970
|
+
}[] | undefined;
|
6971
|
+
page?: number | undefined;
|
6972
|
+
pageSize?: number | undefined;
|
6973
|
+
}>;
|
3420
6974
|
401: z.ZodObject<{
|
3421
6975
|
message: z.ZodString;
|
3422
6976
|
error: z.ZodAny;
|
@@ -3428,7 +6982,7 @@ export declare const telephonyCdrContract: {
|
|
3428
6982
|
error?: any;
|
3429
6983
|
}>;
|
3430
6984
|
};
|
3431
|
-
path: "telephony-cdr/
|
6985
|
+
path: "telephony-cdr/yeastar_call_report";
|
3432
6986
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
3433
6987
|
'x-tenant': z.ZodString;
|
3434
6988
|
authorization: z.ZodString;
|