@webitel/api-services 0.0.34 → 0.0.35
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/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/user-helper-service_user-helper-service.api.gen.getUserHelperService.html +1 -1
- package/src/gen/_docs/html/functions/user-helper-service_user-helper-service.msw.api.gen.getOpenedWebSocketsMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/user-helper-service_user-helper-service.msw.api.gen.getOpenedWebSocketsResponseMock.html +1 -0
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_engineAgent.EngineAgent.html +4 -2
- package/src/gen/_docs/html/interfaces/_models_engineAgentServicePatchAgentBody.EngineAgentServicePatchAgentBody.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineAgentServiceUpdateAgentBody.EngineAgentServiceUpdateAgentBody.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineAgentTeam.EngineAgentTeam.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineAgentTeamServiceUpdateAgentTeamBody.EngineAgentTeamServiceUpdateAgentTeamBody.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineCreateAgentRequest.EngineCreateAgentRequest.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineCreateAgentTeamRequest.EngineCreateAgentTeamRequest.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineListOpenedWebSocket.EngineListOpenedWebSocket.html +3 -0
- package/src/gen/_docs/html/interfaces/_models_engineOpenedWebSocket.EngineOpenedWebSocket.html +13 -0
- package/src/gen/_docs/html/interfaces/_models_webitelCasesCase.WebitelCasesCase.html +2 -2
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_engineListOpenedWebSocket.html +1 -0
- package/src/gen/_docs/html/modules/_models_engineOpenedWebSocket.html +1 -0
- package/src/gen/_docs/html/modules/_models_openedWebSocketsParams.html +1 -0
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/user-helper-service_user-helper-service.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/user-helper-service_user-helper-service.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/user-helper-service_user-helper-service.zod.gen.html +1 -1
- package/src/gen/_docs/html/types/_models_openedWebSocketsParams.OpenedWebSocketsParams.html +10 -0
- package/src/gen/_docs/html/types/user-helper-service_user-helper-service.api.gen.OpenedWebSocketsResult.html +1 -0
- package/src/gen/_docs/html/variables/_models_engineSystemSettingName.EngineSystemSettingName.html +1 -1
- package/src/gen/_docs/html/variables/_models_searchSystemSettingNameItem.SearchSystemSettingNameItem.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.createAgentBody.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.createAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.deleteAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.patchAgentBody.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.patchAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.readAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.searchAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.updateAgentBody.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.updateAgentResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.createAgentTeamBody.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.createAgentTeamResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.deleteAgentTeamResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.readAgentTeamResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.searchAgentTeamResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.updateAgentTeamBody.html +1 -1
- package/src/gen/_docs/html/variables/agent-team-service_agent-team-service.zod.gen.updateAgentTeamResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.createCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.deleteCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.locateCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.searchCases2Response.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.searchCasesResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2Response.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.createSystemSettingBody.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.createSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.deleteSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.patchSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.readSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.searchSystemSettingQueryParams.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.searchSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/system-setting-service_system-setting-service.zod.gen.updateSystemSettingResponse.html +1 -1
- package/src/gen/_docs/html/variables/user-helper-service_user-helper-service.zod.gen.openedWebSocketsParams.html +1 -0
- package/src/gen/_docs/html/variables/user-helper-service_user-helper-service.zod.gen.openedWebSocketsQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/user-helper-service_user-helper-service.zod.gen.openedWebSocketsResponse.html +1 -0
- package/src/gen/_models/engineAgent.ts +2 -0
- package/src/gen/_models/engineAgentServicePatchAgentBody.ts +1 -0
- package/src/gen/_models/engineAgentServiceUpdateAgentBody.ts +1 -0
- package/src/gen/_models/engineAgentTeam.ts +1 -0
- package/src/gen/_models/engineAgentTeamServiceUpdateAgentTeamBody.ts +1 -0
- package/src/gen/_models/engineCreateAgentRequest.ts +1 -0
- package/src/gen/_models/engineCreateAgentTeamRequest.ts +1 -0
- package/src/gen/_models/engineListOpenedWebSocket.ts +12 -0
- package/src/gen/_models/engineOpenedWebSocket.ts +17 -0
- package/src/gen/_models/engineSystemSettingName.ts +1 -0
- package/src/gen/_models/index.ts +3 -0
- package/src/gen/_models/openedWebSocketsParams.ts +14 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +1 -0
- package/src/gen/_models/webitelCasesCase.ts +2 -1
- package/src/gen/agent-service/agent-service.msw.api.gen.ts +48 -0
- package/src/gen/agent-service/agent-service.zod.gen.ts +15 -0
- package/src/gen/agent-team-service/agent-team-service.msw.api.gen.ts +20 -0
- package/src/gen/agent-team-service/agent-team-service.zod.gen.ts +7 -0
- package/src/gen/cases/cases.msw.api.gen.ts +736 -31
- package/src/gen/cases/cases.zod.gen.ts +280 -0
- package/src/gen/system-setting-service/system-setting-service.zod.gen.ts +8 -0
- package/src/gen/user-helper-service/user-helper-service.api.gen.ts +16 -1
- package/src/gen/user-helper-service/user-helper-service.msw.api.gen.ts +72 -0
- package/src/gen/user-helper-service/user-helper-service.zod.gen.ts +30 -0
- package/types/gen/_models/engineAgent.d.ts +2 -0
- package/types/gen/_models/engineAgentServicePatchAgentBody.d.ts +1 -0
- package/types/gen/_models/engineAgentServiceUpdateAgentBody.d.ts +1 -0
- package/types/gen/_models/engineAgentTeam.d.ts +1 -0
- package/types/gen/_models/engineAgentTeamServiceUpdateAgentTeamBody.d.ts +1 -0
- package/types/gen/_models/engineCreateAgentRequest.d.ts +1 -0
- package/types/gen/_models/engineCreateAgentTeamRequest.d.ts +1 -0
- package/types/gen/_models/engineListOpenedWebSocket.d.ts +11 -0
- package/types/gen/_models/engineOpenedWebSocket.d.ts +16 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +1 -0
- package/types/gen/_models/openedWebSocketsParams.d.ts +13 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +1 -0
- package/types/gen/_models/webitelCasesCase.d.ts +2 -1
- package/types/gen/agent-service/agent-service.zod.gen.d.ts +15 -0
- package/types/gen/agent-team-service/agent-team-service.zod.gen.d.ts +7 -0
- package/types/gen/system-setting-service/system-setting-service.zod.gen.d.ts +8 -0
- package/types/gen/user-helper-service/user-helper-service.api.gen.d.ts +3 -1
- package/types/gen/user-helper-service/user-helper-service.msw.api.gen.d.ts +3 -1
- package/types/gen/user-helper-service/user-helper-service.zod.gen.d.ts +23 -0
|
@@ -429,8 +429,48 @@ export const searchCasesResponse = zod
|
|
|
429
429
|
roleIds: zod.array(zod.string()).optional(),
|
|
430
430
|
service: zod
|
|
431
431
|
.object({
|
|
432
|
+
assignee: zod
|
|
433
|
+
.object({
|
|
434
|
+
id: zod.string().optional(),
|
|
435
|
+
name: zod.string().optional(),
|
|
436
|
+
})
|
|
437
|
+
.optional(),
|
|
438
|
+
catalogId: zod.string().optional(),
|
|
439
|
+
code: zod.string().optional(),
|
|
440
|
+
createdAt: zod.string().optional(),
|
|
441
|
+
createdBy: zod
|
|
442
|
+
.object({
|
|
443
|
+
id: zod.string().optional(),
|
|
444
|
+
name: zod.string().optional(),
|
|
445
|
+
})
|
|
446
|
+
.optional(),
|
|
447
|
+
description: zod.string().optional(),
|
|
448
|
+
group: zod
|
|
449
|
+
.object({
|
|
450
|
+
id: zod.string().optional(),
|
|
451
|
+
name: zod.string().optional(),
|
|
452
|
+
type: zod.string().optional(),
|
|
453
|
+
})
|
|
454
|
+
.optional(),
|
|
432
455
|
id: zod.string().optional(),
|
|
433
456
|
name: zod.string().optional(),
|
|
457
|
+
rootId: zod.string().optional(),
|
|
458
|
+
searched: zod.boolean().optional(),
|
|
459
|
+
service: zod.array(zod.any()).optional(),
|
|
460
|
+
sla: zod
|
|
461
|
+
.object({
|
|
462
|
+
id: zod.string().optional(),
|
|
463
|
+
name: zod.string().optional(),
|
|
464
|
+
})
|
|
465
|
+
.optional(),
|
|
466
|
+
state: zod.boolean().optional(),
|
|
467
|
+
updatedAt: zod.string().optional(),
|
|
468
|
+
updatedBy: zod
|
|
469
|
+
.object({
|
|
470
|
+
id: zod.string().optional(),
|
|
471
|
+
name: zod.string().optional(),
|
|
472
|
+
})
|
|
473
|
+
.optional(),
|
|
434
474
|
})
|
|
435
475
|
.optional(),
|
|
436
476
|
sla: zod
|
|
@@ -1061,8 +1101,48 @@ export const createCaseResponse = zod
|
|
|
1061
1101
|
roleIds: zod.array(zod.string()).optional(),
|
|
1062
1102
|
service: zod
|
|
1063
1103
|
.object({
|
|
1104
|
+
assignee: zod
|
|
1105
|
+
.object({
|
|
1106
|
+
id: zod.string().optional(),
|
|
1107
|
+
name: zod.string().optional(),
|
|
1108
|
+
})
|
|
1109
|
+
.optional(),
|
|
1110
|
+
catalogId: zod.string().optional(),
|
|
1111
|
+
code: zod.string().optional(),
|
|
1112
|
+
createdAt: zod.string().optional(),
|
|
1113
|
+
createdBy: zod
|
|
1114
|
+
.object({
|
|
1115
|
+
id: zod.string().optional(),
|
|
1116
|
+
name: zod.string().optional(),
|
|
1117
|
+
})
|
|
1118
|
+
.optional(),
|
|
1119
|
+
description: zod.string().optional(),
|
|
1120
|
+
group: zod
|
|
1121
|
+
.object({
|
|
1122
|
+
id: zod.string().optional(),
|
|
1123
|
+
name: zod.string().optional(),
|
|
1124
|
+
type: zod.string().optional(),
|
|
1125
|
+
})
|
|
1126
|
+
.optional(),
|
|
1064
1127
|
id: zod.string().optional(),
|
|
1065
1128
|
name: zod.string().optional(),
|
|
1129
|
+
rootId: zod.string().optional(),
|
|
1130
|
+
searched: zod.boolean().optional(),
|
|
1131
|
+
service: zod.array(zod.any()).optional(),
|
|
1132
|
+
sla: zod
|
|
1133
|
+
.object({
|
|
1134
|
+
id: zod.string().optional(),
|
|
1135
|
+
name: zod.string().optional(),
|
|
1136
|
+
})
|
|
1137
|
+
.optional(),
|
|
1138
|
+
state: zod.boolean().optional(),
|
|
1139
|
+
updatedAt: zod.string().optional(),
|
|
1140
|
+
updatedBy: zod
|
|
1141
|
+
.object({
|
|
1142
|
+
id: zod.string().optional(),
|
|
1143
|
+
name: zod.string().optional(),
|
|
1144
|
+
})
|
|
1145
|
+
.optional(),
|
|
1066
1146
|
})
|
|
1067
1147
|
.optional(),
|
|
1068
1148
|
sla: zod
|
|
@@ -1529,8 +1609,48 @@ export const deleteCaseResponse = zod
|
|
|
1529
1609
|
roleIds: zod.array(zod.string()).optional(),
|
|
1530
1610
|
service: zod
|
|
1531
1611
|
.object({
|
|
1612
|
+
assignee: zod
|
|
1613
|
+
.object({
|
|
1614
|
+
id: zod.string().optional(),
|
|
1615
|
+
name: zod.string().optional(),
|
|
1616
|
+
})
|
|
1617
|
+
.optional(),
|
|
1618
|
+
catalogId: zod.string().optional(),
|
|
1619
|
+
code: zod.string().optional(),
|
|
1620
|
+
createdAt: zod.string().optional(),
|
|
1621
|
+
createdBy: zod
|
|
1622
|
+
.object({
|
|
1623
|
+
id: zod.string().optional(),
|
|
1624
|
+
name: zod.string().optional(),
|
|
1625
|
+
})
|
|
1626
|
+
.optional(),
|
|
1627
|
+
description: zod.string().optional(),
|
|
1628
|
+
group: zod
|
|
1629
|
+
.object({
|
|
1630
|
+
id: zod.string().optional(),
|
|
1631
|
+
name: zod.string().optional(),
|
|
1632
|
+
type: zod.string().optional(),
|
|
1633
|
+
})
|
|
1634
|
+
.optional(),
|
|
1532
1635
|
id: zod.string().optional(),
|
|
1533
1636
|
name: zod.string().optional(),
|
|
1637
|
+
rootId: zod.string().optional(),
|
|
1638
|
+
searched: zod.boolean().optional(),
|
|
1639
|
+
service: zod.array(zod.any()).optional(),
|
|
1640
|
+
sla: zod
|
|
1641
|
+
.object({
|
|
1642
|
+
id: zod.string().optional(),
|
|
1643
|
+
name: zod.string().optional(),
|
|
1644
|
+
})
|
|
1645
|
+
.optional(),
|
|
1646
|
+
state: zod.boolean().optional(),
|
|
1647
|
+
updatedAt: zod.string().optional(),
|
|
1648
|
+
updatedBy: zod
|
|
1649
|
+
.object({
|
|
1650
|
+
id: zod.string().optional(),
|
|
1651
|
+
name: zod.string().optional(),
|
|
1652
|
+
})
|
|
1653
|
+
.optional(),
|
|
1534
1654
|
})
|
|
1535
1655
|
.optional(),
|
|
1536
1656
|
sla: zod
|
|
@@ -1997,8 +2117,48 @@ export const locateCaseResponse = zod
|
|
|
1997
2117
|
roleIds: zod.array(zod.string()).optional(),
|
|
1998
2118
|
service: zod
|
|
1999
2119
|
.object({
|
|
2120
|
+
assignee: zod
|
|
2121
|
+
.object({
|
|
2122
|
+
id: zod.string().optional(),
|
|
2123
|
+
name: zod.string().optional(),
|
|
2124
|
+
})
|
|
2125
|
+
.optional(),
|
|
2126
|
+
catalogId: zod.string().optional(),
|
|
2127
|
+
code: zod.string().optional(),
|
|
2128
|
+
createdAt: zod.string().optional(),
|
|
2129
|
+
createdBy: zod
|
|
2130
|
+
.object({
|
|
2131
|
+
id: zod.string().optional(),
|
|
2132
|
+
name: zod.string().optional(),
|
|
2133
|
+
})
|
|
2134
|
+
.optional(),
|
|
2135
|
+
description: zod.string().optional(),
|
|
2136
|
+
group: zod
|
|
2137
|
+
.object({
|
|
2138
|
+
id: zod.string().optional(),
|
|
2139
|
+
name: zod.string().optional(),
|
|
2140
|
+
type: zod.string().optional(),
|
|
2141
|
+
})
|
|
2142
|
+
.optional(),
|
|
2000
2143
|
id: zod.string().optional(),
|
|
2001
2144
|
name: zod.string().optional(),
|
|
2145
|
+
rootId: zod.string().optional(),
|
|
2146
|
+
searched: zod.boolean().optional(),
|
|
2147
|
+
service: zod.array(zod.any()).optional(),
|
|
2148
|
+
sla: zod
|
|
2149
|
+
.object({
|
|
2150
|
+
id: zod.string().optional(),
|
|
2151
|
+
name: zod.string().optional(),
|
|
2152
|
+
})
|
|
2153
|
+
.optional(),
|
|
2154
|
+
state: zod.boolean().optional(),
|
|
2155
|
+
updatedAt: zod.string().optional(),
|
|
2156
|
+
updatedBy: zod
|
|
2157
|
+
.object({
|
|
2158
|
+
id: zod.string().optional(),
|
|
2159
|
+
name: zod.string().optional(),
|
|
2160
|
+
})
|
|
2161
|
+
.optional(),
|
|
2002
2162
|
})
|
|
2003
2163
|
.optional(),
|
|
2004
2164
|
sla: zod
|
|
@@ -2576,8 +2736,48 @@ export const updateCase2Response = zod.object({
|
|
|
2576
2736
|
roleIds: zod.array(zod.string()).optional(),
|
|
2577
2737
|
service: zod
|
|
2578
2738
|
.object({
|
|
2739
|
+
assignee: zod
|
|
2740
|
+
.object({
|
|
2741
|
+
id: zod.string().optional(),
|
|
2742
|
+
name: zod.string().optional(),
|
|
2743
|
+
})
|
|
2744
|
+
.optional(),
|
|
2745
|
+
catalogId: zod.string().optional(),
|
|
2746
|
+
code: zod.string().optional(),
|
|
2747
|
+
createdAt: zod.string().optional(),
|
|
2748
|
+
createdBy: zod
|
|
2749
|
+
.object({
|
|
2750
|
+
id: zod.string().optional(),
|
|
2751
|
+
name: zod.string().optional(),
|
|
2752
|
+
})
|
|
2753
|
+
.optional(),
|
|
2754
|
+
description: zod.string().optional(),
|
|
2755
|
+
group: zod
|
|
2756
|
+
.object({
|
|
2757
|
+
id: zod.string().optional(),
|
|
2758
|
+
name: zod.string().optional(),
|
|
2759
|
+
type: zod.string().optional(),
|
|
2760
|
+
})
|
|
2761
|
+
.optional(),
|
|
2579
2762
|
id: zod.string().optional(),
|
|
2580
2763
|
name: zod.string().optional(),
|
|
2764
|
+
rootId: zod.string().optional(),
|
|
2765
|
+
searched: zod.boolean().optional(),
|
|
2766
|
+
service: zod.array(zod.any()).optional(),
|
|
2767
|
+
sla: zod
|
|
2768
|
+
.object({
|
|
2769
|
+
id: zod.string().optional(),
|
|
2770
|
+
name: zod.string().optional(),
|
|
2771
|
+
})
|
|
2772
|
+
.optional(),
|
|
2773
|
+
state: zod.boolean().optional(),
|
|
2774
|
+
updatedAt: zod.string().optional(),
|
|
2775
|
+
updatedBy: zod
|
|
2776
|
+
.object({
|
|
2777
|
+
id: zod.string().optional(),
|
|
2778
|
+
name: zod.string().optional(),
|
|
2779
|
+
})
|
|
2780
|
+
.optional(),
|
|
2581
2781
|
})
|
|
2582
2782
|
.optional(),
|
|
2583
2783
|
sla: zod
|
|
@@ -3166,8 +3366,48 @@ export const updateCaseResponse = zod.object({
|
|
|
3166
3366
|
roleIds: zod.array(zod.string()).optional(),
|
|
3167
3367
|
service: zod
|
|
3168
3368
|
.object({
|
|
3369
|
+
assignee: zod
|
|
3370
|
+
.object({
|
|
3371
|
+
id: zod.string().optional(),
|
|
3372
|
+
name: zod.string().optional(),
|
|
3373
|
+
})
|
|
3374
|
+
.optional(),
|
|
3375
|
+
catalogId: zod.string().optional(),
|
|
3376
|
+
code: zod.string().optional(),
|
|
3377
|
+
createdAt: zod.string().optional(),
|
|
3378
|
+
createdBy: zod
|
|
3379
|
+
.object({
|
|
3380
|
+
id: zod.string().optional(),
|
|
3381
|
+
name: zod.string().optional(),
|
|
3382
|
+
})
|
|
3383
|
+
.optional(),
|
|
3384
|
+
description: zod.string().optional(),
|
|
3385
|
+
group: zod
|
|
3386
|
+
.object({
|
|
3387
|
+
id: zod.string().optional(),
|
|
3388
|
+
name: zod.string().optional(),
|
|
3389
|
+
type: zod.string().optional(),
|
|
3390
|
+
})
|
|
3391
|
+
.optional(),
|
|
3169
3392
|
id: zod.string().optional(),
|
|
3170
3393
|
name: zod.string().optional(),
|
|
3394
|
+
rootId: zod.string().optional(),
|
|
3395
|
+
searched: zod.boolean().optional(),
|
|
3396
|
+
service: zod.array(zod.any()).optional(),
|
|
3397
|
+
sla: zod
|
|
3398
|
+
.object({
|
|
3399
|
+
id: zod.string().optional(),
|
|
3400
|
+
name: zod.string().optional(),
|
|
3401
|
+
})
|
|
3402
|
+
.optional(),
|
|
3403
|
+
state: zod.boolean().optional(),
|
|
3404
|
+
updatedAt: zod.string().optional(),
|
|
3405
|
+
updatedBy: zod
|
|
3406
|
+
.object({
|
|
3407
|
+
id: zod.string().optional(),
|
|
3408
|
+
name: zod.string().optional(),
|
|
3409
|
+
})
|
|
3410
|
+
.optional(),
|
|
3171
3411
|
})
|
|
3172
3412
|
.optional(),
|
|
3173
3413
|
sla: zod
|
|
@@ -3682,8 +3922,48 @@ export const searchCases2Response = zod
|
|
|
3682
3922
|
roleIds: zod.array(zod.string()).optional(),
|
|
3683
3923
|
service: zod
|
|
3684
3924
|
.object({
|
|
3925
|
+
assignee: zod
|
|
3926
|
+
.object({
|
|
3927
|
+
id: zod.string().optional(),
|
|
3928
|
+
name: zod.string().optional(),
|
|
3929
|
+
})
|
|
3930
|
+
.optional(),
|
|
3931
|
+
catalogId: zod.string().optional(),
|
|
3932
|
+
code: zod.string().optional(),
|
|
3933
|
+
createdAt: zod.string().optional(),
|
|
3934
|
+
createdBy: zod
|
|
3935
|
+
.object({
|
|
3936
|
+
id: zod.string().optional(),
|
|
3937
|
+
name: zod.string().optional(),
|
|
3938
|
+
})
|
|
3939
|
+
.optional(),
|
|
3940
|
+
description: zod.string().optional(),
|
|
3941
|
+
group: zod
|
|
3942
|
+
.object({
|
|
3943
|
+
id: zod.string().optional(),
|
|
3944
|
+
name: zod.string().optional(),
|
|
3945
|
+
type: zod.string().optional(),
|
|
3946
|
+
})
|
|
3947
|
+
.optional(),
|
|
3685
3948
|
id: zod.string().optional(),
|
|
3686
3949
|
name: zod.string().optional(),
|
|
3950
|
+
rootId: zod.string().optional(),
|
|
3951
|
+
searched: zod.boolean().optional(),
|
|
3952
|
+
service: zod.array(zod.any()).optional(),
|
|
3953
|
+
sla: zod
|
|
3954
|
+
.object({
|
|
3955
|
+
id: zod.string().optional(),
|
|
3956
|
+
name: zod.string().optional(),
|
|
3957
|
+
})
|
|
3958
|
+
.optional(),
|
|
3959
|
+
state: zod.boolean().optional(),
|
|
3960
|
+
updatedAt: zod.string().optional(),
|
|
3961
|
+
updatedBy: zod
|
|
3962
|
+
.object({
|
|
3963
|
+
id: zod.string().optional(),
|
|
3964
|
+
name: zod.string().optional(),
|
|
3965
|
+
})
|
|
3966
|
+
.optional(),
|
|
3687
3967
|
})
|
|
3688
3968
|
.optional(),
|
|
3689
3969
|
sla: zod
|
|
@@ -42,6 +42,7 @@ export const searchSystemSettingQueryParams = zod.object({
|
|
|
42
42
|
'autolink_mail_to_contact',
|
|
43
43
|
'new_message_sound_notification',
|
|
44
44
|
'new_chat_sound_notification',
|
|
45
|
+
'screenshot_interval',
|
|
45
46
|
]),
|
|
46
47
|
)
|
|
47
48
|
.optional()
|
|
@@ -85,6 +86,7 @@ export const searchSystemSettingResponse = zod.object({
|
|
|
85
86
|
'autolink_mail_to_contact',
|
|
86
87
|
'new_message_sound_notification',
|
|
87
88
|
'new_chat_sound_notification',
|
|
89
|
+
'screenshot_interval',
|
|
88
90
|
])
|
|
89
91
|
.default(searchSystemSettingResponseItemsItemNameDefault),
|
|
90
92
|
}),
|
|
@@ -125,6 +127,7 @@ export const createSystemSettingBody = zod.object({
|
|
|
125
127
|
'autolink_mail_to_contact',
|
|
126
128
|
'new_message_sound_notification',
|
|
127
129
|
'new_chat_sound_notification',
|
|
130
|
+
'screenshot_interval',
|
|
128
131
|
])
|
|
129
132
|
.default(createSystemSettingBodyNameDefault),
|
|
130
133
|
});
|
|
@@ -163,6 +166,7 @@ export const createSystemSettingResponse = zod.object({
|
|
|
163
166
|
'autolink_mail_to_contact',
|
|
164
167
|
'new_message_sound_notification',
|
|
165
168
|
'new_chat_sound_notification',
|
|
169
|
+
'screenshot_interval',
|
|
166
170
|
])
|
|
167
171
|
.default(createSystemSettingResponseNameDefault),
|
|
168
172
|
});
|
|
@@ -224,6 +228,7 @@ export const deleteSystemSettingResponse = zod.object({
|
|
|
224
228
|
'autolink_mail_to_contact',
|
|
225
229
|
'new_message_sound_notification',
|
|
226
230
|
'new_chat_sound_notification',
|
|
231
|
+
'screenshot_interval',
|
|
227
232
|
])
|
|
228
233
|
.default(deleteSystemSettingResponseNameDefault),
|
|
229
234
|
});
|
|
@@ -266,6 +271,7 @@ export const readSystemSettingResponse = zod.object({
|
|
|
266
271
|
'autolink_mail_to_contact',
|
|
267
272
|
'new_message_sound_notification',
|
|
268
273
|
'new_chat_sound_notification',
|
|
274
|
+
'screenshot_interval',
|
|
269
275
|
])
|
|
270
276
|
.default(readSystemSettingResponseNameDefault),
|
|
271
277
|
});
|
|
@@ -312,6 +318,7 @@ export const patchSystemSettingResponse = zod.object({
|
|
|
312
318
|
'autolink_mail_to_contact',
|
|
313
319
|
'new_message_sound_notification',
|
|
314
320
|
'new_chat_sound_notification',
|
|
321
|
+
'screenshot_interval',
|
|
315
322
|
])
|
|
316
323
|
.default(patchSystemSettingResponseNameDefault),
|
|
317
324
|
});
|
|
@@ -356,6 +363,7 @@ export const updateSystemSettingResponse = zod.object({
|
|
|
356
363
|
'autolink_mail_to_contact',
|
|
357
364
|
'new_message_sound_notification',
|
|
358
365
|
'new_chat_sound_notification',
|
|
366
|
+
'screenshot_interval',
|
|
359
367
|
])
|
|
360
368
|
.default(updateSystemSettingResponseNameDefault),
|
|
361
369
|
});
|
|
@@ -12,6 +12,8 @@ import type {
|
|
|
12
12
|
ActivityWorkspaceWidgetParams,
|
|
13
13
|
EngineActivityWorkspaceWidgetResponse,
|
|
14
14
|
EngineDefaultDeviceConfigResponse,
|
|
15
|
+
EngineListOpenedWebSocket,
|
|
16
|
+
OpenedWebSocketsParams,
|
|
15
17
|
} from '.././_models';
|
|
16
18
|
|
|
17
19
|
// --- header start
|
|
@@ -41,13 +43,26 @@ export const // --- title start
|
|
|
41
43
|
params: { ...params, ...options?.params },
|
|
42
44
|
});
|
|
43
45
|
};
|
|
46
|
+
const openedWebSockets = <
|
|
47
|
+
TData = AxiosResponse<EngineListOpenedWebSocket>,
|
|
48
|
+
>(
|
|
49
|
+
userId: string[],
|
|
50
|
+
params?: OpenedWebSocketsParams,
|
|
51
|
+
options?: AxiosRequestConfig,
|
|
52
|
+
): Promise<TData> => {
|
|
53
|
+
return axios.get(`/user/${userId}/websockets`, {
|
|
54
|
+
...options,
|
|
55
|
+
params: { ...params, ...options?.params },
|
|
56
|
+
});
|
|
57
|
+
};
|
|
44
58
|
|
|
45
59
|
// --- footer start
|
|
46
|
-
return { defaultDeviceConfig, activityWorkspaceWidget };
|
|
60
|
+
return { defaultDeviceConfig, activityWorkspaceWidget, openedWebSockets };
|
|
47
61
|
};
|
|
48
62
|
export type DefaultDeviceConfigResult =
|
|
49
63
|
AxiosResponse<EngineDefaultDeviceConfigResponse>;
|
|
50
64
|
export type ActivityWorkspaceWidgetResult =
|
|
51
65
|
AxiosResponse<EngineActivityWorkspaceWidgetResponse>;
|
|
66
|
+
export type OpenedWebSocketsResult = AxiosResponse<EngineListOpenedWebSocket>;
|
|
52
67
|
|
|
53
68
|
// --- footer end
|
|
@@ -11,6 +11,7 @@ import { delay, HttpResponse, http } from 'msw';
|
|
|
11
11
|
import type {
|
|
12
12
|
EngineActivityWorkspaceWidgetResponse,
|
|
13
13
|
EngineDefaultDeviceConfigResponse,
|
|
14
|
+
EngineListOpenedWebSocket,
|
|
14
15
|
} from '.././_models';
|
|
15
16
|
|
|
16
17
|
export const getDefaultDeviceConfigResponseMock = (
|
|
@@ -187,6 +188,53 @@ export const getActivityWorkspaceWidgetResponseMock = (
|
|
|
187
188
|
...overrideResponse,
|
|
188
189
|
});
|
|
189
190
|
|
|
191
|
+
export const getOpenedWebSocketsResponseMock = (
|
|
192
|
+
overrideResponse: Partial<EngineListOpenedWebSocket> = {},
|
|
193
|
+
): EngineListOpenedWebSocket => ({
|
|
194
|
+
items: faker.helpers.arrayElement([
|
|
195
|
+
Array.from(
|
|
196
|
+
{ length: faker.number.int({ min: 1, max: 10 }) },
|
|
197
|
+
(_, i) => i + 1,
|
|
198
|
+
).map(() => ({
|
|
199
|
+
client: faker.helpers.arrayElement([
|
|
200
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
201
|
+
undefined,
|
|
202
|
+
]),
|
|
203
|
+
createdAt: faker.helpers.arrayElement([
|
|
204
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
205
|
+
undefined,
|
|
206
|
+
]),
|
|
207
|
+
duration: faker.helpers.arrayElement([
|
|
208
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
209
|
+
undefined,
|
|
210
|
+
]),
|
|
211
|
+
id: faker.helpers.arrayElement([
|
|
212
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
213
|
+
undefined,
|
|
214
|
+
]),
|
|
215
|
+
ip: faker.helpers.arrayElement([
|
|
216
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
217
|
+
undefined,
|
|
218
|
+
]),
|
|
219
|
+
pong: faker.helpers.arrayElement([
|
|
220
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
221
|
+
undefined,
|
|
222
|
+
]),
|
|
223
|
+
updatedAt: faker.helpers.arrayElement([
|
|
224
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
225
|
+
undefined,
|
|
226
|
+
]),
|
|
227
|
+
userAgent: faker.helpers.arrayElement([
|
|
228
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
229
|
+
undefined,
|
|
230
|
+
]),
|
|
231
|
+
})),
|
|
232
|
+
undefined,
|
|
233
|
+
]),
|
|
234
|
+
next: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]),
|
|
235
|
+
...overrideResponse,
|
|
236
|
+
});
|
|
237
|
+
|
|
190
238
|
export const getDefaultDeviceConfigMockHandler = (
|
|
191
239
|
overrideResponse?:
|
|
192
240
|
| EngineDefaultDeviceConfigResponse
|
|
@@ -236,7 +284,31 @@ export const getActivityWorkspaceWidgetMockHandler = (
|
|
|
236
284
|
);
|
|
237
285
|
});
|
|
238
286
|
};
|
|
287
|
+
|
|
288
|
+
export const getOpenedWebSocketsMockHandler = (
|
|
289
|
+
overrideResponse?:
|
|
290
|
+
| EngineListOpenedWebSocket
|
|
291
|
+
| ((
|
|
292
|
+
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
293
|
+
) => Promise<EngineListOpenedWebSocket> | EngineListOpenedWebSocket),
|
|
294
|
+
) => {
|
|
295
|
+
return http.get('*/user/:userId/websockets', async (info) => {
|
|
296
|
+
await delay(1000);
|
|
297
|
+
|
|
298
|
+
return new HttpResponse(
|
|
299
|
+
JSON.stringify(
|
|
300
|
+
overrideResponse !== undefined
|
|
301
|
+
? typeof overrideResponse === 'function'
|
|
302
|
+
? await overrideResponse(info)
|
|
303
|
+
: overrideResponse
|
|
304
|
+
: getOpenedWebSocketsResponseMock(),
|
|
305
|
+
),
|
|
306
|
+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
307
|
+
);
|
|
308
|
+
});
|
|
309
|
+
};
|
|
239
310
|
export const getUserHelperServiceMock = () => [
|
|
240
311
|
getDefaultDeviceConfigMockHandler(),
|
|
241
312
|
getActivityWorkspaceWidgetMockHandler(),
|
|
313
|
+
getOpenedWebSocketsMockHandler(),
|
|
242
314
|
];
|
|
@@ -65,3 +65,33 @@ export const activityWorkspaceWidgetResponse = zod.object({
|
|
|
65
65
|
utilization: zod.number().optional(),
|
|
66
66
|
voiceMail: zod.number().optional(),
|
|
67
67
|
});
|
|
68
|
+
|
|
69
|
+
export const openedWebSocketsParams = zod.object({
|
|
70
|
+
user_id: zod.array(zod.string()).min(1),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const openedWebSocketsQueryParams = zod.object({
|
|
74
|
+
page: zod.number().optional(),
|
|
75
|
+
size: zod.number().optional(),
|
|
76
|
+
q: zod.string().optional(),
|
|
77
|
+
sort: zod.string().optional(),
|
|
78
|
+
fields: zod.array(zod.string()).optional(),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const openedWebSocketsResponse = zod.object({
|
|
82
|
+
items: zod
|
|
83
|
+
.array(
|
|
84
|
+
zod.object({
|
|
85
|
+
client: zod.string().optional(),
|
|
86
|
+
createdAt: zod.string().optional(),
|
|
87
|
+
duration: zod.string().optional(),
|
|
88
|
+
id: zod.string().optional(),
|
|
89
|
+
ip: zod.string().optional(),
|
|
90
|
+
pong: zod.string().optional(),
|
|
91
|
+
updatedAt: zod.string().optional(),
|
|
92
|
+
userAgent: zod.string().optional(),
|
|
93
|
+
}),
|
|
94
|
+
)
|
|
95
|
+
.optional(),
|
|
96
|
+
next: zod.boolean().optional(),
|
|
97
|
+
});
|
|
@@ -8,6 +8,7 @@ import type { EngineAgentChannel } from './engineAgentChannel';
|
|
|
8
8
|
import type { EngineLookup } from './engineLookup';
|
|
9
9
|
export interface EngineAgent {
|
|
10
10
|
allowChannels?: string[];
|
|
11
|
+
allowSetScreenControl?: boolean;
|
|
11
12
|
auditor?: EngineLookup[];
|
|
12
13
|
channel?: EngineAgentChannel[];
|
|
13
14
|
chatCount?: number;
|
|
@@ -20,6 +21,7 @@ export interface EngineAgent {
|
|
|
20
21
|
name?: string;
|
|
21
22
|
progressiveCount?: number;
|
|
22
23
|
region?: EngineLookup;
|
|
24
|
+
screenControl?: boolean;
|
|
23
25
|
skills?: EngineLookup[];
|
|
24
26
|
status?: string;
|
|
25
27
|
statusDuration?: string;
|
|
@@ -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 { EngineOpenedWebSocket } from './engineOpenedWebSocket';
|
|
8
|
+
export interface EngineListOpenedWebSocket {
|
|
9
|
+
items?: EngineOpenedWebSocket[];
|
|
10
|
+
next?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export interface EngineOpenedWebSocket {
|
|
8
|
+
client?: string;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
duration?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
ip?: string;
|
|
13
|
+
pong?: string;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
userAgent?: string;
|
|
16
|
+
}
|
|
@@ -33,4 +33,5 @@ export declare const EngineSystemSettingName: {
|
|
|
33
33
|
readonly AutolinkMailToContact: "autolink_mail_to_contact";
|
|
34
34
|
readonly NewMessageSoundNotification: "new_message_sound_notification";
|
|
35
35
|
readonly NewChatSoundNotification: "new_chat_sound_notification";
|
|
36
|
+
readonly ScreenshotInterval: "screenshot_interval";
|
|
36
37
|
};
|
|
@@ -33,4 +33,5 @@ export declare const SearchSystemSettingNameItem: {
|
|
|
33
33
|
readonly autolink_mail_to_contact: "autolink_mail_to_contact";
|
|
34
34
|
readonly new_message_sound_notification: "new_message_sound_notification";
|
|
35
35
|
readonly new_chat_sound_notification: "new_chat_sound_notification";
|
|
36
|
+
readonly screenshot_interval: "screenshot_interval";
|
|
36
37
|
};
|