@webitel/api-services 0.0.40 → 0.0.41
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/package.json +1 -1
- package/src/api/clients/index.ts +1 -0
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +162 -0
- package/src/api/clients/wtTypes/index.ts +1 -0
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_engineHistoryCall.EngineHistoryCall.html +4 -2
- package/src/gen/_docs/html/interfaces/_models_engineHistoryCallCallForm.EngineHistoryCallCallForm.html +3 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_engineHistoryCallCallForm.html +1 -0
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.patchHistoryCallResponse.html +1 -1
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallPostResponse.html +1 -1
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallResponse.html +1 -1
- package/src/gen/_models/engineHistoryCall.ts +3 -0
- package/src/gen/_models/engineHistoryCallCallForm.ts +12 -0
- package/src/gen/_models/index.ts +1 -0
- package/src/gen/call-service/call-service.msw.api.gen.ts +87 -0
- package/src/gen/call-service/call-service.zod.gen.ts +42 -0
- package/types/api/clients/index.d.ts +1 -0
- package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +21 -0
- package/types/api/clients/wtTypes/index.d.ts +1 -0
- package/types/gen/_models/engineHistoryCall.d.ts +3 -0
- package/types/gen/_models/engineHistoryCallCallForm.d.ts +11 -0
- package/types/gen/call-service/call-service.zod.gen.d.ts +24 -0
|
@@ -831,6 +831,10 @@ export const getSearchHistoryCallResponseMock = (
|
|
|
831
831
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
832
832
|
undefined,
|
|
833
833
|
]),
|
|
834
|
+
destinationName: faker.helpers.arrayElement([
|
|
835
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
836
|
+
undefined,
|
|
837
|
+
]),
|
|
834
838
|
direction: faker.helpers.arrayElement([
|
|
835
839
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
836
840
|
undefined,
|
|
@@ -919,6 +923,31 @@ export const getSearchHistoryCallResponseMock = (
|
|
|
919
923
|
})),
|
|
920
924
|
undefined,
|
|
921
925
|
]),
|
|
926
|
+
forms: faker.helpers.arrayElement([
|
|
927
|
+
Array.from(
|
|
928
|
+
{ length: faker.number.int({ min: 1, max: 10 }) },
|
|
929
|
+
(_, i) => i + 1,
|
|
930
|
+
).map(() => ({
|
|
931
|
+
agent: faker.helpers.arrayElement([
|
|
932
|
+
{
|
|
933
|
+
id: faker.helpers.arrayElement([
|
|
934
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
935
|
+
undefined,
|
|
936
|
+
]),
|
|
937
|
+
name: faker.helpers.arrayElement([
|
|
938
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
939
|
+
undefined,
|
|
940
|
+
]),
|
|
941
|
+
},
|
|
942
|
+
undefined,
|
|
943
|
+
]),
|
|
944
|
+
reportingAt: faker.helpers.arrayElement([
|
|
945
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
946
|
+
undefined,
|
|
947
|
+
]),
|
|
948
|
+
})),
|
|
949
|
+
undefined,
|
|
950
|
+
]),
|
|
922
951
|
from: faker.helpers.arrayElement([
|
|
923
952
|
{
|
|
924
953
|
id: faker.helpers.arrayElement([
|
|
@@ -1512,6 +1541,10 @@ export const getSearchHistoryCallPostResponseMock = (
|
|
|
1512
1541
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1513
1542
|
undefined,
|
|
1514
1543
|
]),
|
|
1544
|
+
destinationName: faker.helpers.arrayElement([
|
|
1545
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1546
|
+
undefined,
|
|
1547
|
+
]),
|
|
1515
1548
|
direction: faker.helpers.arrayElement([
|
|
1516
1549
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1517
1550
|
undefined,
|
|
@@ -1600,6 +1633,31 @@ export const getSearchHistoryCallPostResponseMock = (
|
|
|
1600
1633
|
})),
|
|
1601
1634
|
undefined,
|
|
1602
1635
|
]),
|
|
1636
|
+
forms: faker.helpers.arrayElement([
|
|
1637
|
+
Array.from(
|
|
1638
|
+
{ length: faker.number.int({ min: 1, max: 10 }) },
|
|
1639
|
+
(_, i) => i + 1,
|
|
1640
|
+
).map(() => ({
|
|
1641
|
+
agent: faker.helpers.arrayElement([
|
|
1642
|
+
{
|
|
1643
|
+
id: faker.helpers.arrayElement([
|
|
1644
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1645
|
+
undefined,
|
|
1646
|
+
]),
|
|
1647
|
+
name: faker.helpers.arrayElement([
|
|
1648
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1649
|
+
undefined,
|
|
1650
|
+
]),
|
|
1651
|
+
},
|
|
1652
|
+
undefined,
|
|
1653
|
+
]),
|
|
1654
|
+
reportingAt: faker.helpers.arrayElement([
|
|
1655
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
1656
|
+
undefined,
|
|
1657
|
+
]),
|
|
1658
|
+
})),
|
|
1659
|
+
undefined,
|
|
1660
|
+
]),
|
|
1603
1661
|
from: faker.helpers.arrayElement([
|
|
1604
1662
|
{
|
|
1605
1663
|
id: faker.helpers.arrayElement([
|
|
@@ -2392,6 +2450,10 @@ export const getPatchHistoryCallResponseMock = (
|
|
|
2392
2450
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2393
2451
|
undefined,
|
|
2394
2452
|
]),
|
|
2453
|
+
destinationName: faker.helpers.arrayElement([
|
|
2454
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2455
|
+
undefined,
|
|
2456
|
+
]),
|
|
2395
2457
|
direction: faker.helpers.arrayElement([
|
|
2396
2458
|
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2397
2459
|
undefined,
|
|
@@ -2476,6 +2538,31 @@ export const getPatchHistoryCallResponseMock = (
|
|
|
2476
2538
|
})),
|
|
2477
2539
|
undefined,
|
|
2478
2540
|
]),
|
|
2541
|
+
forms: faker.helpers.arrayElement([
|
|
2542
|
+
Array.from(
|
|
2543
|
+
{ length: faker.number.int({ min: 1, max: 10 }) },
|
|
2544
|
+
(_, i) => i + 1,
|
|
2545
|
+
).map(() => ({
|
|
2546
|
+
agent: faker.helpers.arrayElement([
|
|
2547
|
+
{
|
|
2548
|
+
id: faker.helpers.arrayElement([
|
|
2549
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2550
|
+
undefined,
|
|
2551
|
+
]),
|
|
2552
|
+
name: faker.helpers.arrayElement([
|
|
2553
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2554
|
+
undefined,
|
|
2555
|
+
]),
|
|
2556
|
+
},
|
|
2557
|
+
undefined,
|
|
2558
|
+
]),
|
|
2559
|
+
reportingAt: faker.helpers.arrayElement([
|
|
2560
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
2561
|
+
undefined,
|
|
2562
|
+
]),
|
|
2563
|
+
})),
|
|
2564
|
+
undefined,
|
|
2565
|
+
]),
|
|
2479
2566
|
from: faker.helpers.arrayElement([
|
|
2480
2567
|
{
|
|
2481
2568
|
id: faker.helpers.arrayElement([
|
|
@@ -524,6 +524,7 @@ export const searchHistoryCallResponse = zod.object({
|
|
|
524
524
|
.optional(),
|
|
525
525
|
createdAt: zod.string().optional(),
|
|
526
526
|
destination: zod.string().optional(),
|
|
527
|
+
destinationName: zod.string().optional(),
|
|
527
528
|
direction: zod.string().optional(),
|
|
528
529
|
display: zod.string().optional(),
|
|
529
530
|
duration: zod.number().optional(),
|
|
@@ -560,6 +561,19 @@ export const searchHistoryCallResponse = zod.object({
|
|
|
560
561
|
}),
|
|
561
562
|
)
|
|
562
563
|
.optional(),
|
|
564
|
+
forms: zod
|
|
565
|
+
.array(
|
|
566
|
+
zod.object({
|
|
567
|
+
agent: zod
|
|
568
|
+
.object({
|
|
569
|
+
id: zod.string().optional(),
|
|
570
|
+
name: zod.string().optional(),
|
|
571
|
+
})
|
|
572
|
+
.optional(),
|
|
573
|
+
reportingAt: zod.string().optional(),
|
|
574
|
+
}),
|
|
575
|
+
)
|
|
576
|
+
.optional(),
|
|
563
577
|
from: zod
|
|
564
578
|
.object({
|
|
565
579
|
id: zod.string().optional(),
|
|
@@ -856,6 +870,7 @@ export const searchHistoryCallPostResponse = zod.object({
|
|
|
856
870
|
.optional(),
|
|
857
871
|
createdAt: zod.string().optional(),
|
|
858
872
|
destination: zod.string().optional(),
|
|
873
|
+
destinationName: zod.string().optional(),
|
|
859
874
|
direction: zod.string().optional(),
|
|
860
875
|
display: zod.string().optional(),
|
|
861
876
|
duration: zod.number().optional(),
|
|
@@ -892,6 +907,19 @@ export const searchHistoryCallPostResponse = zod.object({
|
|
|
892
907
|
}),
|
|
893
908
|
)
|
|
894
909
|
.optional(),
|
|
910
|
+
forms: zod
|
|
911
|
+
.array(
|
|
912
|
+
zod.object({
|
|
913
|
+
agent: zod
|
|
914
|
+
.object({
|
|
915
|
+
id: zod.string().optional(),
|
|
916
|
+
name: zod.string().optional(),
|
|
917
|
+
})
|
|
918
|
+
.optional(),
|
|
919
|
+
reportingAt: zod.string().optional(),
|
|
920
|
+
}),
|
|
921
|
+
)
|
|
922
|
+
.optional(),
|
|
895
923
|
from: zod
|
|
896
924
|
.object({
|
|
897
925
|
id: zod.string().optional(),
|
|
@@ -1298,6 +1326,7 @@ export const patchHistoryCallResponse = zod.object({
|
|
|
1298
1326
|
.optional(),
|
|
1299
1327
|
createdAt: zod.string().optional(),
|
|
1300
1328
|
destination: zod.string().optional(),
|
|
1329
|
+
destinationName: zod.string().optional(),
|
|
1301
1330
|
direction: zod.string().optional(),
|
|
1302
1331
|
display: zod.string().optional(),
|
|
1303
1332
|
duration: zod.number().optional(),
|
|
@@ -1330,6 +1359,19 @@ export const patchHistoryCallResponse = zod.object({
|
|
|
1330
1359
|
}),
|
|
1331
1360
|
)
|
|
1332
1361
|
.optional(),
|
|
1362
|
+
forms: zod
|
|
1363
|
+
.array(
|
|
1364
|
+
zod.object({
|
|
1365
|
+
agent: zod
|
|
1366
|
+
.object({
|
|
1367
|
+
id: zod.string().optional(),
|
|
1368
|
+
name: zod.string().optional(),
|
|
1369
|
+
})
|
|
1370
|
+
.optional(),
|
|
1371
|
+
reportingAt: zod.string().optional(),
|
|
1372
|
+
}),
|
|
1373
|
+
)
|
|
1374
|
+
.optional(),
|
|
1333
1375
|
from: zod
|
|
1334
1376
|
.object({
|
|
1335
1377
|
id: zod.string().optional(),
|
|
@@ -26,6 +26,7 @@ export * from './skills/skills';
|
|
|
26
26
|
export * from './slas/slas';
|
|
27
27
|
export * from './teams/teams';
|
|
28
28
|
export * from './users/users';
|
|
29
|
+
export * from './wtTypes/adjunctTypes/adjunctTypes';
|
|
29
30
|
export * from './wtTypes/sysTypes/sysTypes';
|
|
30
31
|
export * from './wtTypes/typeExtensions/typeExtensions';
|
|
31
32
|
export * from './сontacts';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const AdjunctTypesAPI: {
|
|
2
|
+
getList: ({ repo, ...params }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
repo: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @alias AdjunctTypesAPI
|
|
12
|
+
*/
|
|
13
|
+
export declare const CustomLookupAPI: {
|
|
14
|
+
getList: ({ repo, ...params }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
repo: any;
|
|
17
|
+
}) => Promise<{
|
|
18
|
+
items: any;
|
|
19
|
+
next: any;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
@@ -9,6 +9,7 @@ import type { EngineCallFile } from './engineCallFile';
|
|
|
9
9
|
import type { EngineCallHold } from './engineCallHold';
|
|
10
10
|
import type { EngineEndpoint } from './engineEndpoint';
|
|
11
11
|
import type { EngineHistoryCallBlindTransfer } from './engineHistoryCallBlindTransfer';
|
|
12
|
+
import type { EngineHistoryCallCallForm } from './engineHistoryCallCallForm';
|
|
12
13
|
import type { EngineHistoryCallVariables } from './engineHistoryCallVariables';
|
|
13
14
|
import type { EngineHistoryFileJob } from './engineHistoryFileJob';
|
|
14
15
|
import type { EngineLookup } from './engineLookup';
|
|
@@ -34,12 +35,14 @@ export interface EngineHistoryCall {
|
|
|
34
35
|
contact?: EngineLookup;
|
|
35
36
|
createdAt?: string;
|
|
36
37
|
destination?: string;
|
|
38
|
+
destinationName?: string;
|
|
37
39
|
direction?: string;
|
|
38
40
|
display?: string;
|
|
39
41
|
duration?: number;
|
|
40
42
|
extension?: string;
|
|
41
43
|
files?: EngineCallFile[];
|
|
42
44
|
filesJob?: EngineHistoryFileJob[];
|
|
45
|
+
forms?: EngineHistoryCallCallForm[];
|
|
43
46
|
from?: EngineEndpoint;
|
|
44
47
|
fromNumber?: string;
|
|
45
48
|
gateway?: EngineLookup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { EngineLookup } from './engineLookup';
|
|
8
|
+
export interface EngineHistoryCallCallForm {
|
|
9
|
+
agent?: EngineLookup;
|
|
10
|
+
reportingAt?: string;
|
|
11
|
+
}
|
|
@@ -412,6 +412,7 @@ export declare const searchHistoryCallResponse: zod.ZodObject<{
|
|
|
412
412
|
}, zod.core.$strip>>;
|
|
413
413
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
414
414
|
destination: zod.ZodOptional<zod.ZodString>;
|
|
415
|
+
destinationName: zod.ZodOptional<zod.ZodString>;
|
|
415
416
|
direction: zod.ZodOptional<zod.ZodString>;
|
|
416
417
|
display: zod.ZodOptional<zod.ZodString>;
|
|
417
418
|
duration: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -441,6 +442,13 @@ export declare const searchHistoryCallResponse: zod.ZodObject<{
|
|
|
441
442
|
finished: "finished";
|
|
442
443
|
}>>;
|
|
443
444
|
}, zod.core.$strip>>>;
|
|
445
|
+
forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
446
|
+
agent: zod.ZodOptional<zod.ZodObject<{
|
|
447
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
448
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
449
|
+
}, zod.core.$strip>>;
|
|
450
|
+
reportingAt: zod.ZodOptional<zod.ZodString>;
|
|
451
|
+
}, zod.core.$strip>>>;
|
|
444
452
|
from: zod.ZodOptional<zod.ZodObject<{
|
|
445
453
|
id: zod.ZodOptional<zod.ZodString>;
|
|
446
454
|
name: zod.ZodOptional<zod.ZodString>;
|
|
@@ -662,6 +670,7 @@ export declare const searchHistoryCallPostResponse: zod.ZodObject<{
|
|
|
662
670
|
}, zod.core.$strip>>;
|
|
663
671
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
664
672
|
destination: zod.ZodOptional<zod.ZodString>;
|
|
673
|
+
destinationName: zod.ZodOptional<zod.ZodString>;
|
|
665
674
|
direction: zod.ZodOptional<zod.ZodString>;
|
|
666
675
|
display: zod.ZodOptional<zod.ZodString>;
|
|
667
676
|
duration: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -691,6 +700,13 @@ export declare const searchHistoryCallPostResponse: zod.ZodObject<{
|
|
|
691
700
|
finished: "finished";
|
|
692
701
|
}>>;
|
|
693
702
|
}, zod.core.$strip>>>;
|
|
703
|
+
forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
704
|
+
agent: zod.ZodOptional<zod.ZodObject<{
|
|
705
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
706
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
707
|
+
}, zod.core.$strip>>;
|
|
708
|
+
reportingAt: zod.ZodOptional<zod.ZodString>;
|
|
709
|
+
}, zod.core.$strip>>>;
|
|
694
710
|
from: zod.ZodOptional<zod.ZodObject<{
|
|
695
711
|
id: zod.ZodOptional<zod.ZodString>;
|
|
696
712
|
name: zod.ZodOptional<zod.ZodString>;
|
|
@@ -994,6 +1010,7 @@ export declare const patchHistoryCallResponse: zod.ZodObject<{
|
|
|
994
1010
|
}, zod.core.$strip>>;
|
|
995
1011
|
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
996
1012
|
destination: zod.ZodOptional<zod.ZodString>;
|
|
1013
|
+
destinationName: zod.ZodOptional<zod.ZodString>;
|
|
997
1014
|
direction: zod.ZodOptional<zod.ZodString>;
|
|
998
1015
|
display: zod.ZodOptional<zod.ZodString>;
|
|
999
1016
|
duration: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -1023,6 +1040,13 @@ export declare const patchHistoryCallResponse: zod.ZodObject<{
|
|
|
1023
1040
|
finished: "finished";
|
|
1024
1041
|
}>>;
|
|
1025
1042
|
}, zod.core.$strip>>>;
|
|
1043
|
+
forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
1044
|
+
agent: zod.ZodOptional<zod.ZodObject<{
|
|
1045
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
1046
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
1047
|
+
}, zod.core.$strip>>;
|
|
1048
|
+
reportingAt: zod.ZodOptional<zod.ZodString>;
|
|
1049
|
+
}, zod.core.$strip>>>;
|
|
1026
1050
|
from: zod.ZodOptional<zod.ZodObject<{
|
|
1027
1051
|
id: zod.ZodOptional<zod.ZodString>;
|
|
1028
1052
|
name: zod.ZodOptional<zod.ZodString>;
|