@webitel/api-services 0.0.40 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/index.ts +1 -0
  3. package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +167 -0
  4. package/src/api/clients/wtTypes/index.ts +1 -0
  5. package/src/gen/_docs/html/assets/navigation.js +1 -1
  6. package/src/gen/_docs/html/assets/search.js +1 -1
  7. package/src/gen/_docs/html/index.html +1 -1
  8. package/src/gen/_docs/html/interfaces/_models_engineCallFile.EngineCallFile.html +3 -2
  9. package/src/gen/_docs/html/interfaces/_models_engineHistoryCall.EngineHistoryCall.html +4 -2
  10. package/src/gen/_docs/html/interfaces/_models_engineHistoryCallCallForm.EngineHistoryCallCallForm.html +3 -0
  11. package/src/gen/_docs/html/modules/_models.html +1 -1
  12. package/src/gen/_docs/html/modules/_models_engineHistoryCallCallForm.html +1 -0
  13. package/src/gen/_docs/html/modules/index.html +1 -1
  14. package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.patchHistoryCallResponse.html +1 -1
  15. package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallPostResponse.html +1 -1
  16. package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallResponse.html +1 -1
  17. package/src/gen/_models/engineCallFile.ts +1 -0
  18. package/src/gen/_models/engineHistoryCall.ts +3 -0
  19. package/src/gen/_models/engineHistoryCallCallForm.ts +12 -0
  20. package/src/gen/_models/index.ts +1 -0
  21. package/src/gen/call-service/call-service.msw.api.gen.ts +99 -0
  22. package/src/gen/call-service/call-service.zod.gen.ts +45 -0
  23. package/types/api/clients/index.d.ts +1 -0
  24. package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +25 -0
  25. package/types/api/clients/wtTypes/index.d.ts +1 -0
  26. package/types/gen/_models/engineCallFile.d.ts +1 -0
  27. package/types/gen/_models/engineHistoryCall.d.ts +3 -0
  28. package/types/gen/_models/engineHistoryCallCallForm.d.ts +11 -0
  29. package/types/gen/call-service/call-service.zod.gen.d.ts +27 -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,
@@ -876,6 +880,10 @@ export const getSearchHistoryCallResponseMock = (
876
880
  faker.string.alpha({ length: { min: 10, max: 20 } }),
877
881
  undefined,
878
882
  ]),
883
+ startRecord: faker.helpers.arrayElement([
884
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
885
+ undefined,
886
+ ]),
879
887
  stopAt: faker.helpers.arrayElement([
880
888
  faker.string.alpha({ length: { min: 10, max: 20 } }),
881
889
  undefined,
@@ -919,6 +927,31 @@ export const getSearchHistoryCallResponseMock = (
919
927
  })),
920
928
  undefined,
921
929
  ]),
930
+ forms: faker.helpers.arrayElement([
931
+ Array.from(
932
+ { length: faker.number.int({ min: 1, max: 10 }) },
933
+ (_, i) => i + 1,
934
+ ).map(() => ({
935
+ agent: faker.helpers.arrayElement([
936
+ {
937
+ id: faker.helpers.arrayElement([
938
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
939
+ undefined,
940
+ ]),
941
+ name: faker.helpers.arrayElement([
942
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
943
+ undefined,
944
+ ]),
945
+ },
946
+ undefined,
947
+ ]),
948
+ reportingAt: faker.helpers.arrayElement([
949
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
950
+ undefined,
951
+ ]),
952
+ })),
953
+ undefined,
954
+ ]),
922
955
  from: faker.helpers.arrayElement([
923
956
  {
924
957
  id: faker.helpers.arrayElement([
@@ -1512,6 +1545,10 @@ export const getSearchHistoryCallPostResponseMock = (
1512
1545
  faker.string.alpha({ length: { min: 10, max: 20 } }),
1513
1546
  undefined,
1514
1547
  ]),
1548
+ destinationName: faker.helpers.arrayElement([
1549
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
1550
+ undefined,
1551
+ ]),
1515
1552
  direction: faker.helpers.arrayElement([
1516
1553
  faker.string.alpha({ length: { min: 10, max: 20 } }),
1517
1554
  undefined,
@@ -1557,6 +1594,10 @@ export const getSearchHistoryCallPostResponseMock = (
1557
1594
  faker.string.alpha({ length: { min: 10, max: 20 } }),
1558
1595
  undefined,
1559
1596
  ]),
1597
+ startRecord: faker.helpers.arrayElement([
1598
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
1599
+ undefined,
1600
+ ]),
1560
1601
  stopAt: faker.helpers.arrayElement([
1561
1602
  faker.string.alpha({ length: { min: 10, max: 20 } }),
1562
1603
  undefined,
@@ -1600,6 +1641,31 @@ export const getSearchHistoryCallPostResponseMock = (
1600
1641
  })),
1601
1642
  undefined,
1602
1643
  ]),
1644
+ forms: faker.helpers.arrayElement([
1645
+ Array.from(
1646
+ { length: faker.number.int({ min: 1, max: 10 }) },
1647
+ (_, i) => i + 1,
1648
+ ).map(() => ({
1649
+ agent: faker.helpers.arrayElement([
1650
+ {
1651
+ id: faker.helpers.arrayElement([
1652
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
1653
+ undefined,
1654
+ ]),
1655
+ name: faker.helpers.arrayElement([
1656
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
1657
+ undefined,
1658
+ ]),
1659
+ },
1660
+ undefined,
1661
+ ]),
1662
+ reportingAt: faker.helpers.arrayElement([
1663
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
1664
+ undefined,
1665
+ ]),
1666
+ })),
1667
+ undefined,
1668
+ ]),
1603
1669
  from: faker.helpers.arrayElement([
1604
1670
  {
1605
1671
  id: faker.helpers.arrayElement([
@@ -2392,6 +2458,10 @@ export const getPatchHistoryCallResponseMock = (
2392
2458
  faker.string.alpha({ length: { min: 10, max: 20 } }),
2393
2459
  undefined,
2394
2460
  ]),
2461
+ destinationName: faker.helpers.arrayElement([
2462
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
2463
+ undefined,
2464
+ ]),
2395
2465
  direction: faker.helpers.arrayElement([
2396
2466
  faker.string.alpha({ length: { min: 10, max: 20 } }),
2397
2467
  undefined,
@@ -2433,6 +2503,10 @@ export const getPatchHistoryCallResponseMock = (
2433
2503
  faker.string.alpha({ length: { min: 10, max: 20 } }),
2434
2504
  undefined,
2435
2505
  ]),
2506
+ startRecord: faker.helpers.arrayElement([
2507
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
2508
+ undefined,
2509
+ ]),
2436
2510
  stopAt: faker.helpers.arrayElement([
2437
2511
  faker.string.alpha({ length: { min: 10, max: 20 } }),
2438
2512
  undefined,
@@ -2476,6 +2550,31 @@ export const getPatchHistoryCallResponseMock = (
2476
2550
  })),
2477
2551
  undefined,
2478
2552
  ]),
2553
+ forms: faker.helpers.arrayElement([
2554
+ Array.from(
2555
+ { length: faker.number.int({ min: 1, max: 10 }) },
2556
+ (_, i) => i + 1,
2557
+ ).map(() => ({
2558
+ agent: faker.helpers.arrayElement([
2559
+ {
2560
+ id: faker.helpers.arrayElement([
2561
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
2562
+ undefined,
2563
+ ]),
2564
+ name: faker.helpers.arrayElement([
2565
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
2566
+ undefined,
2567
+ ]),
2568
+ },
2569
+ undefined,
2570
+ ]),
2571
+ reportingAt: faker.helpers.arrayElement([
2572
+ faker.string.alpha({ length: { min: 10, max: 20 } }),
2573
+ undefined,
2574
+ ]),
2575
+ })),
2576
+ undefined,
2577
+ ]),
2479
2578
  from: faker.helpers.arrayElement([
2480
2579
  {
2481
2580
  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(),
@@ -536,6 +537,7 @@ export const searchHistoryCallResponse = zod.object({
536
537
  name: zod.string().optional(),
537
538
  size: zod.string().optional(),
538
539
  startAt: zod.string().optional(),
540
+ startRecord: zod.string().optional(),
539
541
  stopAt: zod.string().optional(),
540
542
  }),
541
543
  )
@@ -560,6 +562,19 @@ export const searchHistoryCallResponse = zod.object({
560
562
  }),
561
563
  )
562
564
  .optional(),
565
+ forms: zod
566
+ .array(
567
+ zod.object({
568
+ agent: zod
569
+ .object({
570
+ id: zod.string().optional(),
571
+ name: zod.string().optional(),
572
+ })
573
+ .optional(),
574
+ reportingAt: zod.string().optional(),
575
+ }),
576
+ )
577
+ .optional(),
563
578
  from: zod
564
579
  .object({
565
580
  id: zod.string().optional(),
@@ -856,6 +871,7 @@ export const searchHistoryCallPostResponse = zod.object({
856
871
  .optional(),
857
872
  createdAt: zod.string().optional(),
858
873
  destination: zod.string().optional(),
874
+ destinationName: zod.string().optional(),
859
875
  direction: zod.string().optional(),
860
876
  display: zod.string().optional(),
861
877
  duration: zod.number().optional(),
@@ -868,6 +884,7 @@ export const searchHistoryCallPostResponse = zod.object({
868
884
  name: zod.string().optional(),
869
885
  size: zod.string().optional(),
870
886
  startAt: zod.string().optional(),
887
+ startRecord: zod.string().optional(),
871
888
  stopAt: zod.string().optional(),
872
889
  }),
873
890
  )
@@ -892,6 +909,19 @@ export const searchHistoryCallPostResponse = zod.object({
892
909
  }),
893
910
  )
894
911
  .optional(),
912
+ forms: zod
913
+ .array(
914
+ zod.object({
915
+ agent: zod
916
+ .object({
917
+ id: zod.string().optional(),
918
+ name: zod.string().optional(),
919
+ })
920
+ .optional(),
921
+ reportingAt: zod.string().optional(),
922
+ }),
923
+ )
924
+ .optional(),
895
925
  from: zod
896
926
  .object({
897
927
  id: zod.string().optional(),
@@ -1298,6 +1328,7 @@ export const patchHistoryCallResponse = zod.object({
1298
1328
  .optional(),
1299
1329
  createdAt: zod.string().optional(),
1300
1330
  destination: zod.string().optional(),
1331
+ destinationName: zod.string().optional(),
1301
1332
  direction: zod.string().optional(),
1302
1333
  display: zod.string().optional(),
1303
1334
  duration: zod.number().optional(),
@@ -1310,6 +1341,7 @@ export const patchHistoryCallResponse = zod.object({
1310
1341
  name: zod.string().optional(),
1311
1342
  size: zod.string().optional(),
1312
1343
  startAt: zod.string().optional(),
1344
+ startRecord: zod.string().optional(),
1313
1345
  stopAt: zod.string().optional(),
1314
1346
  }),
1315
1347
  )
@@ -1330,6 +1362,19 @@ export const patchHistoryCallResponse = zod.object({
1330
1362
  }),
1331
1363
  )
1332
1364
  .optional(),
1365
+ forms: zod
1366
+ .array(
1367
+ zod.object({
1368
+ agent: zod
1369
+ .object({
1370
+ id: zod.string().optional(),
1371
+ name: zod.string().optional(),
1372
+ })
1373
+ .optional(),
1374
+ reportingAt: zod.string().optional(),
1375
+ }),
1376
+ )
1377
+ .optional(),
1333
1378
  from: zod
1334
1379
  .object({
1335
1380
  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,25 @@
1
+ export declare const AdjunctTypesAPI: {
2
+ getList: ({ repo, ...params }: {
3
+ [x: string]: any;
4
+ repo: any;
5
+ }, { silent, }?: {
6
+ silent?: boolean;
7
+ }) => Promise<{
8
+ items: any;
9
+ next: any;
10
+ }>;
11
+ };
12
+ /**
13
+ * @alias AdjunctTypesAPI
14
+ */
15
+ export declare const CustomLookupAPI: {
16
+ getList: ({ repo, ...params }: {
17
+ [x: string]: any;
18
+ repo: any;
19
+ }, { silent, }?: {
20
+ silent?: boolean;
21
+ }) => Promise<{
22
+ items: any;
23
+ next: any;
24
+ }>;
25
+ };
@@ -1,2 +1,3 @@
1
+ export * from './adjunctTypes/adjunctTypes';
1
2
  export * from './sysTypes/sysTypes';
2
3
  export * from './typeExtensions/typeExtensions';
@@ -10,5 +10,6 @@ export interface EngineCallFile {
10
10
  name?: string;
11
11
  size?: string;
12
12
  startAt?: string;
13
+ startRecord?: string;
13
14
  stopAt?: string;
14
15
  }
@@ -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>;
@@ -422,6 +423,7 @@ export declare const searchHistoryCallResponse: zod.ZodObject<{
422
423
  name: zod.ZodOptional<zod.ZodString>;
423
424
  size: zod.ZodOptional<zod.ZodString>;
424
425
  startAt: zod.ZodOptional<zod.ZodString>;
426
+ startRecord: zod.ZodOptional<zod.ZodString>;
425
427
  stopAt: zod.ZodOptional<zod.ZodString>;
426
428
  }, zod.core.$strip>>>;
427
429
  filesJob: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -441,6 +443,13 @@ export declare const searchHistoryCallResponse: zod.ZodObject<{
441
443
  finished: "finished";
442
444
  }>>;
443
445
  }, zod.core.$strip>>>;
446
+ forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
447
+ agent: zod.ZodOptional<zod.ZodObject<{
448
+ id: zod.ZodOptional<zod.ZodString>;
449
+ name: zod.ZodOptional<zod.ZodString>;
450
+ }, zod.core.$strip>>;
451
+ reportingAt: zod.ZodOptional<zod.ZodString>;
452
+ }, zod.core.$strip>>>;
444
453
  from: zod.ZodOptional<zod.ZodObject<{
445
454
  id: zod.ZodOptional<zod.ZodString>;
446
455
  name: zod.ZodOptional<zod.ZodString>;
@@ -662,6 +671,7 @@ export declare const searchHistoryCallPostResponse: zod.ZodObject<{
662
671
  }, zod.core.$strip>>;
663
672
  createdAt: zod.ZodOptional<zod.ZodString>;
664
673
  destination: zod.ZodOptional<zod.ZodString>;
674
+ destinationName: zod.ZodOptional<zod.ZodString>;
665
675
  direction: zod.ZodOptional<zod.ZodString>;
666
676
  display: zod.ZodOptional<zod.ZodString>;
667
677
  duration: zod.ZodOptional<zod.ZodNumber>;
@@ -672,6 +682,7 @@ export declare const searchHistoryCallPostResponse: zod.ZodObject<{
672
682
  name: zod.ZodOptional<zod.ZodString>;
673
683
  size: zod.ZodOptional<zod.ZodString>;
674
684
  startAt: zod.ZodOptional<zod.ZodString>;
685
+ startRecord: zod.ZodOptional<zod.ZodString>;
675
686
  stopAt: zod.ZodOptional<zod.ZodString>;
676
687
  }, zod.core.$strip>>>;
677
688
  filesJob: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -691,6 +702,13 @@ export declare const searchHistoryCallPostResponse: zod.ZodObject<{
691
702
  finished: "finished";
692
703
  }>>;
693
704
  }, zod.core.$strip>>>;
705
+ forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
706
+ agent: zod.ZodOptional<zod.ZodObject<{
707
+ id: zod.ZodOptional<zod.ZodString>;
708
+ name: zod.ZodOptional<zod.ZodString>;
709
+ }, zod.core.$strip>>;
710
+ reportingAt: zod.ZodOptional<zod.ZodString>;
711
+ }, zod.core.$strip>>>;
694
712
  from: zod.ZodOptional<zod.ZodObject<{
695
713
  id: zod.ZodOptional<zod.ZodString>;
696
714
  name: zod.ZodOptional<zod.ZodString>;
@@ -994,6 +1012,7 @@ export declare const patchHistoryCallResponse: zod.ZodObject<{
994
1012
  }, zod.core.$strip>>;
995
1013
  createdAt: zod.ZodOptional<zod.ZodString>;
996
1014
  destination: zod.ZodOptional<zod.ZodString>;
1015
+ destinationName: zod.ZodOptional<zod.ZodString>;
997
1016
  direction: zod.ZodOptional<zod.ZodString>;
998
1017
  display: zod.ZodOptional<zod.ZodString>;
999
1018
  duration: zod.ZodOptional<zod.ZodNumber>;
@@ -1004,6 +1023,7 @@ export declare const patchHistoryCallResponse: zod.ZodObject<{
1004
1023
  name: zod.ZodOptional<zod.ZodString>;
1005
1024
  size: zod.ZodOptional<zod.ZodString>;
1006
1025
  startAt: zod.ZodOptional<zod.ZodString>;
1026
+ startRecord: zod.ZodOptional<zod.ZodString>;
1007
1027
  stopAt: zod.ZodOptional<zod.ZodString>;
1008
1028
  }, zod.core.$strip>>>;
1009
1029
  filesJob: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -1023,6 +1043,13 @@ export declare const patchHistoryCallResponse: zod.ZodObject<{
1023
1043
  finished: "finished";
1024
1044
  }>>;
1025
1045
  }, zod.core.$strip>>>;
1046
+ forms: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1047
+ agent: zod.ZodOptional<zod.ZodObject<{
1048
+ id: zod.ZodOptional<zod.ZodString>;
1049
+ name: zod.ZodOptional<zod.ZodString>;
1050
+ }, zod.core.$strip>>;
1051
+ reportingAt: zod.ZodOptional<zod.ZodString>;
1052
+ }, zod.core.$strip>>>;
1026
1053
  from: zod.ZodOptional<zod.ZodObject<{
1027
1054
  id: zod.ZodOptional<zod.ZodString>;
1028
1055
  name: zod.ZodOptional<zod.ZodString>;