@webitel/api-services 0.0.49 → 0.0.50
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/dictionaries_dictionaries.api.gen.getDictionaries.html +1 -1
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getSearchTypeMixin3MockHandler.html +1 -0
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getSearchTypeMixin3ResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/extensions_extensions.api.gen.getExtensions.html +1 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getSearchTypeMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getSearchTypeResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.api.gen.getFileService.html +1 -1
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getDeleteScreenRecordingsByAgentMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getDeleteScreenRecordingsByAgentResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getSearchScreenRecordingsByAgentMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getSearchScreenRecordingsByAgentResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/records_records.api.gen.getRecords.html +1 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMixin3MockHandler.html +1 -0
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMixin3ResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/types_types.api.gen.getTypes.html +1 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateResponseMock.html +1 -0
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_engineAgentStatsStatistic.EngineAgentStatsStatistic.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_engineAgentStatusStatisticItem.EngineAgentStatusStatisticItem.html +3 -2
- package/src/gen/_docs/html/interfaces/_models_storageFileServiceDeleteScreenRecordingsByAgentBody.StorageFileServiceDeleteScreenRecordingsByAgentBody.html +5 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_locateMixin3200.html +1 -0
- package/src/gen/_docs/html/modules/_models_locateMixin3Params.html +1 -0
- package/src/gen/_docs/html/modules/_models_searchScreenRecordingsByAgentChannel.html +1 -0
- package/src/gen/_docs/html/modules/_models_searchScreenRecordingsByAgentParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_storageFileServiceDeleteScreenRecordingsByAgentBody.html +1 -0
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/extensions_extensions.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/extensions_extensions.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/extensions_extensions.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/file-service_file-service.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.zod.gen.html +1 -1
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/records_records.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/records_records.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/records_records.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/types_types.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/types_types.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/types_types.zod.gen.html +3 -3
- package/src/gen/_docs/html/types/{_models_locate200.Locate200.html → _models_locateMixin3200.LocateMixin3200.html} +1 -1
- package/src/gen/_docs/html/types/{_models_locateParams.LocateParams.html → _models_locateMixin3Params.LocateMixin3Params.html} +2 -2
- package/src/gen/_docs/html/{variables/extensions_extensions.zod.gen.searchTypeMixin3QuerySortItemDefault.html → types/_models_searchScreenRecordingsByAgentChannel.SearchScreenRecordingsByAgentChannel.html} +4 -1
- package/src/gen/_docs/html/types/_models_searchScreenRecordingsByAgentParams.SearchScreenRecordingsByAgentParams.html +13 -0
- package/src/gen/_docs/html/types/_models_searchTypeMixin3Params.SearchTypeMixin3Params.html +20 -4
- package/src/gen/_docs/html/types/_models_searchTypeParams.SearchTypeParams.html +4 -20
- package/src/gen/_docs/html/types/dictionaries_dictionaries.api.gen.SearchTypeMixin3Result.html +1 -0
- package/src/gen/_docs/html/types/extensions_extensions.api.gen.SearchTypeResult.html +1 -0
- package/src/gen/_docs/html/types/file-service_file-service.api.gen.DeleteScreenRecordingsByAgentResult.html +1 -0
- package/src/gen/_docs/html/types/file-service_file-service.api.gen.SearchScreenRecordingsByAgentResult.html +1 -0
- package/src/gen/_docs/html/types/records_records.api.gen.LocateMixin3Result.html +1 -0
- package/src/gen/_docs/html/types/types_types.api.gen.LocateResult.html +1 -0
- package/src/gen/_docs/html/variables/_models_engineSystemSettingName.EngineSystemSettingName.html +1 -1
- package/src/gen/_docs/html/variables/_models_searchScreenRecordingsByAgentChannel.SearchScreenRecordingsByAgentChannel.html +1 -0
- package/src/gen/_docs/html/variables/_models_searchSystemSettingNameItem.SearchSystemSettingNameItem.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.searchAgentStatusStatisticItemResponse.html +1 -1
- package/src/gen/_docs/html/variables/agent-service_agent-service.zod.gen.searchAgentStatusStatisticResponse.html +1 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3QueryFieldsItemDefault.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3QueryParams.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3QuerySortItemDefault.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3QuerySortItemRegExp.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3Response.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeMixin3ResponseDataItemFieldsItemKindDefault.html +1 -0
- package/src/gen/_docs/html/{types/types_types.api.gen.LocateMixin3Result.html → variables/extensions_extensions.zod.gen.searchTypeQueryFieldsItemDefault.html} +1 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeQuerySortItemDefault.html +2 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeQuerySortItemRegExp.html +1 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeResponse.html +1 -0
- package/src/gen/_docs/html/variables/{records_records.zod.gen.locateResponse.html → extensions_extensions.zod.gen.searchTypeResponseDataItemFieldsItemKindDefault.html} +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.deleteScreenRecordingsByAgentBody.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.deleteScreenRecordingsByAgentParams.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.deleteScreenRecordingsByAgentResponse.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.searchScreenRecordingsByAgentParams.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.searchScreenRecordingsByAgentQueryChannelDefault.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.searchScreenRecordingsByAgentQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.searchScreenRecordingsByAgentResponse.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.searchScreenRecordingsByAgentResponseItemsItemChannelDefault.html +1 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3Params.html +2 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3QueryFieldsItemDefault.html +1 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3QueryParams.html +1 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3Response.html +1 -0
- 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/types_types.zod.gen.locateParams.html +1 -0
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateResponse.html +1 -0
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateResponseFieldsItemKindDefault.html +1 -0
- package/src/gen/_models/engineAgentStatsStatistic.ts +1 -0
- package/src/gen/_models/engineAgentStatusStatisticItem.ts +1 -0
- package/src/gen/_models/engineSystemSettingName.ts +2 -1
- package/src/gen/_models/index.ts +5 -2
- package/src/gen/_models/{locate200.ts → locateMixin3200.ts} +1 -1
- package/src/gen/_models/{locateParams.ts → locateMixin3Params.ts} +1 -1
- package/src/gen/_models/searchScreenRecordingsByAgentChannel.ts +23 -0
- package/src/gen/_models/searchScreenRecordingsByAgentParams.ts +22 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +2 -1
- package/src/gen/_models/searchTypeMixin3Params.ts +43 -11
- package/src/gen/_models/searchTypeParams.ts +11 -43
- package/src/gen/_models/storageFileServiceDeleteScreenRecordingsByAgentBody.ts +10 -0
- package/src/gen/agent-service/agent-service.msw.api.gen.ts +8 -0
- package/src/gen/agent-service/agent-service.zod.gen.ts +2 -0
- package/src/gen/dictionaries/dictionaries.api.gen.ts +5 -5
- package/src/gen/dictionaries/dictionaries.msw.api.gen.ts +4 -4
- package/src/gen/dictionaries/dictionaries.zod.gen.ts +10 -8
- package/src/gen/extensions/extensions.api.gen.ts +5 -5
- package/src/gen/extensions/extensions.msw.api.gen.ts +4 -4
- package/src/gen/extensions/extensions.zod.gen.ts +8 -10
- package/src/gen/file-service/file-service.api.gen.ts +33 -0
- package/src/gen/file-service/file-service.msw.api.gen.ts +140 -0
- package/src/gen/file-service/file-service.zod.gen.ts +96 -0
- package/src/gen/records/records.api.gen.ts +6 -6
- package/src/gen/records/records.msw.api.gen.ts +7 -7
- package/src/gen/records/records.zod.gen.ts +4 -4
- package/src/gen/system-setting-service/system-setting-service.zod.gen.ts +16 -8
- package/src/gen/types/types.api.gen.ts +3 -3
- package/src/gen/types/types.msw.api.gen.ts +4 -4
- package/src/gen/types/types.zod.gen.ts +4 -4
- package/types/gen/_models/engineAgentStatsStatistic.d.ts +1 -0
- package/types/gen/_models/engineAgentStatusStatisticItem.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +2 -1
- package/types/gen/_models/{locate200.d.ts → locateMixin3200.d.ts} +1 -1
- package/types/gen/_models/{locateParams.d.ts → locateMixin3Params.d.ts} +1 -1
- package/types/gen/_models/searchScreenRecordingsByAgentChannel.d.ts +19 -0
- package/types/gen/_models/searchScreenRecordingsByAgentParams.d.ts +21 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +2 -1
- package/types/gen/_models/searchTypeMixin3Params.d.ts +43 -11
- package/types/gen/_models/searchTypeParams.d.ts +11 -43
- package/types/gen/_models/storageFileServiceDeleteScreenRecordingsByAgentBody.d.ts +9 -0
- package/types/gen/agent-service/agent-service.zod.gen.d.ts +2 -0
- package/types/gen/dictionaries/dictionaries.api.gen.d.ts +3 -3
- package/types/gen/dictionaries/dictionaries.msw.api.gen.d.ts +2 -2
- package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +6 -6
- package/types/gen/extensions/extensions.api.gen.d.ts +3 -3
- package/types/gen/extensions/extensions.msw.api.gen.d.ts +2 -2
- package/types/gen/extensions/extensions.zod.gen.d.ts +6 -6
- package/types/gen/file-service/file-service.api.gen.d.ts +5 -1
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +4 -0
- package/types/gen/file-service/file-service.zod.gen.d.ts +72 -0
- package/types/gen/records/records.api.gen.d.ts +3 -3
- package/types/gen/records/records.msw.api.gen.d.ts +3 -3
- package/types/gen/records/records.zod.gen.d.ts +4 -4
- package/types/gen/system-setting-service/system-setting-service.zod.gen.d.ts +16 -8
- package/types/gen/types/types.api.gen.d.ts +2 -2
- package/types/gen/types/types.msw.api.gen.d.ts +2 -2
- package/types/gen/types/types.zod.gen.d.ts +3 -3
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getSearchTypeMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getSearchTypeResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getSearchTypeMixin3MockHandler.html +0 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getSearchTypeMixin3ResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMixin3MockHandler.html +0 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMixin3ResponseMock.html +0 -1
- package/src/gen/_docs/html/modules/_models_locate200.html +0 -1
- package/src/gen/_docs/html/modules/_models_locateParams.html +0 -1
- package/src/gen/_docs/html/types/dictionaries_dictionaries.api.gen.SearchTypeResult.html +0 -1
- package/src/gen/_docs/html/types/extensions_extensions.api.gen.SearchTypeMixin3Result.html +0 -1
- package/src/gen/_docs/html/types/records_records.api.gen.LocateResult.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeQueryFieldsItemDefault.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeQueryParams.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeQuerySortItemDefault.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeQuerySortItemRegExp.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeResponse.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.searchTypeResponseDataItemFieldsItemKindDefault.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeMixin3QueryFieldsItemDefault.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeMixin3QueryParams.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeMixin3QuerySortItemRegExp.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeMixin3Response.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.searchTypeMixin3ResponseDataItemFieldsItemKindDefault.html +0 -1
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateParams.html +0 -2
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateQueryFieldsItemDefault.html +0 -1
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateQueryParams.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3Params.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3Response.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3ResponseFieldsItemKindDefault.html +0 -1
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
LocateDataParams,
|
|
23
23
|
ProtodataStruct,
|
|
24
24
|
SearchDataParams,
|
|
25
|
-
|
|
25
|
+
SearchTypeMixin3Params,
|
|
26
26
|
UpdateData2Body,
|
|
27
27
|
UpdateData2Params,
|
|
28
28
|
UpdateData200,
|
|
@@ -168,8 +168,8 @@ export const // --- title start
|
|
|
168
168
|
/**
|
|
169
169
|
* @summary Lookup dictionaries data types.
|
|
170
170
|
*/
|
|
171
|
-
const
|
|
172
|
-
params?:
|
|
171
|
+
const searchTypeMixin3 = <TData = AxiosResponse<DataStructList>>(
|
|
172
|
+
params?: SearchTypeMixin3Params,
|
|
173
173
|
options?: AxiosRequestConfig,
|
|
174
174
|
): Promise<TData> => {
|
|
175
175
|
return axios.get('/types/dictionaries', {
|
|
@@ -229,7 +229,7 @@ export const // --- title start
|
|
|
229
229
|
updateData,
|
|
230
230
|
updateData2,
|
|
231
231
|
deleteType,
|
|
232
|
-
|
|
232
|
+
searchTypeMixin3,
|
|
233
233
|
locateType,
|
|
234
234
|
createType,
|
|
235
235
|
updateType,
|
|
@@ -244,7 +244,7 @@ export type LocateDataResult = AxiosResponse<LocateData200>;
|
|
|
244
244
|
export type UpdateDataResult = AxiosResponse<UpdateData200>;
|
|
245
245
|
export type UpdateData2Result = AxiosResponse<UpdateData2200>;
|
|
246
246
|
export type DeleteTypeResult = AxiosResponse<DataStructList>;
|
|
247
|
-
export type
|
|
247
|
+
export type SearchTypeMixin3Result = AxiosResponse<DataStructList>;
|
|
248
248
|
export type LocateTypeResult = AxiosResponse<ProtodataStruct>;
|
|
249
249
|
export type CreateTypeResult = AxiosResponse<ProtodataStruct>;
|
|
250
250
|
export type UpdateTypeResult = AxiosResponse<ProtodataStruct>;
|
|
@@ -2942,7 +2942,7 @@ export const getDeleteTypeResponseMock = (
|
|
|
2942
2942
|
...overrideResponse,
|
|
2943
2943
|
});
|
|
2944
2944
|
|
|
2945
|
-
export const
|
|
2945
|
+
export const getSearchTypeMixin3ResponseMock = (
|
|
2946
2946
|
overrideResponse: Partial<DataStructList> = {},
|
|
2947
2947
|
): DataStructList => ({
|
|
2948
2948
|
data: faker.helpers.arrayElement([
|
|
@@ -5403,7 +5403,7 @@ export const getDeleteTypeMockHandler = (
|
|
|
5403
5403
|
});
|
|
5404
5404
|
};
|
|
5405
5405
|
|
|
5406
|
-
export const
|
|
5406
|
+
export const getSearchTypeMixin3MockHandler = (
|
|
5407
5407
|
overrideResponse?:
|
|
5408
5408
|
| DataStructList
|
|
5409
5409
|
| ((
|
|
@@ -5419,7 +5419,7 @@ export const getSearchTypeMockHandler = (
|
|
|
5419
5419
|
? typeof overrideResponse === 'function'
|
|
5420
5420
|
? await overrideResponse(info)
|
|
5421
5421
|
: overrideResponse
|
|
5422
|
-
:
|
|
5422
|
+
: getSearchTypeMixin3ResponseMock(),
|
|
5423
5423
|
),
|
|
5424
5424
|
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
5425
5425
|
);
|
|
@@ -5504,7 +5504,7 @@ export const getDictionariesMock = () => [
|
|
|
5504
5504
|
getUpdateDataMockHandler(),
|
|
5505
5505
|
getUpdateData2MockHandler(),
|
|
5506
5506
|
getDeleteTypeMockHandler(),
|
|
5507
|
-
|
|
5507
|
+
getSearchTypeMixin3MockHandler(),
|
|
5508
5508
|
getLocateTypeMockHandler(),
|
|
5509
5509
|
getCreateTypeMockHandler(),
|
|
5510
5510
|
getUpdateTypeMockHandler(),
|
|
@@ -1981,11 +1981,11 @@ export const deleteTypeResponse = zod
|
|
|
1981
1981
|
/**
|
|
1982
1982
|
* @summary Lookup dictionaries data types.
|
|
1983
1983
|
*/
|
|
1984
|
-
export const
|
|
1985
|
-
export const
|
|
1986
|
-
export const
|
|
1984
|
+
export const searchTypeMixin3QuerySortItemDefault = '*';
|
|
1985
|
+
export const searchTypeMixin3QuerySortItemRegExp = /^[+|-|!]?\w+$/;
|
|
1986
|
+
export const searchTypeMixin3QueryFieldsItemDefault = '*';
|
|
1987
1987
|
|
|
1988
|
-
export const
|
|
1988
|
+
export const searchTypeMixin3QueryParams = zod.object({
|
|
1989
1989
|
q: zod
|
|
1990
1990
|
.string()
|
|
1991
1991
|
.optional()
|
|
@@ -2022,7 +2022,7 @@ export const searchTypeQueryParams = zod.object({
|
|
|
2022
2022
|
.optional()
|
|
2023
2023
|
.describe('Page number of result set of records.\nDefault: 1.'),
|
|
2024
2024
|
sort: zod
|
|
2025
|
-
.array(zod.string().regex(
|
|
2025
|
+
.array(zod.string().regex(searchTypeMixin3QuerySortItemRegExp))
|
|
2026
2026
|
.optional()
|
|
2027
2027
|
.describe(
|
|
2028
2028
|
'Sort result dataset of records by fields.\n```\nsort ::= *( ORDER name )\n\nORDER = ASC / DESC\nDESC = \"-\" / \"!\"\nASC = [ \"+\" ] ; Default\n```\n\nFields available\n\n- `id`(seq)\n- `domain`{name}\n- `created_at`\n- `created_by`{name}\n- `updated_at`\n- `updated_by`{name}\n\nUse ?fields=`field.sort()` option to sort Edge fields.',
|
|
@@ -2035,9 +2035,9 @@ export const searchTypeQueryParams = zod.object({
|
|
|
2035
2035
|
),
|
|
2036
2036
|
});
|
|
2037
2037
|
|
|
2038
|
-
export const
|
|
2038
|
+
export const searchTypeMixin3ResponseDataItemFieldsItemKindDefault = 'none';
|
|
2039
2039
|
|
|
2040
|
-
export const
|
|
2040
|
+
export const searchTypeMixin3Response = zod
|
|
2041
2041
|
.object({
|
|
2042
2042
|
data: zod
|
|
2043
2043
|
.array(
|
|
@@ -2218,7 +2218,9 @@ export const searchTypeResponse = zod
|
|
|
2218
2218
|
'datetime',
|
|
2219
2219
|
'duration',
|
|
2220
2220
|
])
|
|
2221
|
-
.default(
|
|
2221
|
+
.default(
|
|
2222
|
+
searchTypeMixin3ResponseDataItemFieldsItemKindDefault,
|
|
2223
|
+
)
|
|
2222
2224
|
.describe(
|
|
2223
2225
|
'Kind of primitive data types.\n\n - none: option allow_alias = true;\n - list: [array]\n - int: int32\n - uint: uint32\n - float: float32\n - datetime: date &| time',
|
|
2224
2226
|
),
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
DeleteType2Params,
|
|
15
15
|
DeleteTypeMixin3Params,
|
|
16
16
|
ProtodataStruct,
|
|
17
|
-
|
|
17
|
+
SearchTypeParams,
|
|
18
18
|
} from '.././_models';
|
|
19
19
|
|
|
20
20
|
// --- header start
|
|
@@ -42,8 +42,8 @@ export const // --- title start
|
|
|
42
42
|
* (ExtensionList) {
|
|
43
43
|
* @summary Search for type extensions.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
46
|
-
params?:
|
|
45
|
+
const searchType = <TData = AxiosResponse<DataStructList>>(
|
|
46
|
+
params?: SearchTypeParams,
|
|
47
47
|
options?: AxiosRequestConfig,
|
|
48
48
|
): Promise<TData> => {
|
|
49
49
|
return axios.get('/types/extensions', {
|
|
@@ -109,7 +109,7 @@ export const // --- title start
|
|
|
109
109
|
// --- footer start
|
|
110
110
|
return {
|
|
111
111
|
deleteType2,
|
|
112
|
-
|
|
112
|
+
searchType,
|
|
113
113
|
deleteTypeMixin3,
|
|
114
114
|
locateTypeMixin3,
|
|
115
115
|
createTypeMixin3,
|
|
@@ -117,7 +117,7 @@ export const // --- title start
|
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
119
|
export type DeleteType2Result = AxiosResponse<DataStructList>;
|
|
120
|
-
export type
|
|
120
|
+
export type SearchTypeResult = AxiosResponse<DataStructList>;
|
|
121
121
|
export type DeleteTypeMixin3Result = AxiosResponse<DataStructList>;
|
|
122
122
|
export type LocateTypeMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
123
123
|
export type CreateTypeMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
@@ -590,7 +590,7 @@ export const getDeleteType2ResponseMock = (
|
|
|
590
590
|
...overrideResponse,
|
|
591
591
|
});
|
|
592
592
|
|
|
593
|
-
export const
|
|
593
|
+
export const getSearchTypeResponseMock = (
|
|
594
594
|
overrideResponse: Partial<DataStructList> = {},
|
|
595
595
|
): DataStructList => ({
|
|
596
596
|
data: faker.helpers.arrayElement([
|
|
@@ -3447,7 +3447,7 @@ export const getDeleteType2MockHandler = (
|
|
|
3447
3447
|
});
|
|
3448
3448
|
};
|
|
3449
3449
|
|
|
3450
|
-
export const
|
|
3450
|
+
export const getSearchTypeMockHandler = (
|
|
3451
3451
|
overrideResponse?:
|
|
3452
3452
|
| DataStructList
|
|
3453
3453
|
| ((
|
|
@@ -3463,7 +3463,7 @@ export const getSearchTypeMixin3MockHandler = (
|
|
|
3463
3463
|
? typeof overrideResponse === 'function'
|
|
3464
3464
|
? await overrideResponse(info)
|
|
3465
3465
|
: overrideResponse
|
|
3466
|
-
:
|
|
3466
|
+
: getSearchTypeResponseMock(),
|
|
3467
3467
|
),
|
|
3468
3468
|
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
3469
3469
|
);
|
|
@@ -3563,7 +3563,7 @@ export const getUpdateTypeMixin3MockHandler = (
|
|
|
3563
3563
|
};
|
|
3564
3564
|
export const getExtensionsMock = () => [
|
|
3565
3565
|
getDeleteType2MockHandler(),
|
|
3566
|
-
|
|
3566
|
+
getSearchTypeMockHandler(),
|
|
3567
3567
|
getDeleteTypeMixin3MockHandler(),
|
|
3568
3568
|
getLocateTypeMixin3MockHandler(),
|
|
3569
3569
|
getCreateTypeMixin3MockHandler(),
|
|
@@ -392,11 +392,11 @@ export const deleteType2Response = zod
|
|
|
392
392
|
* (ExtensionList) {
|
|
393
393
|
* @summary Search for type extensions.
|
|
394
394
|
*/
|
|
395
|
-
export const
|
|
396
|
-
export const
|
|
397
|
-
export const
|
|
395
|
+
export const searchTypeQuerySortItemDefault = '*';
|
|
396
|
+
export const searchTypeQuerySortItemRegExp = /^[+|-|!]?\w+$/;
|
|
397
|
+
export const searchTypeQueryFieldsItemDefault = '*';
|
|
398
398
|
|
|
399
|
-
export const
|
|
399
|
+
export const searchTypeQueryParams = zod.object({
|
|
400
400
|
size: zod
|
|
401
401
|
.number()
|
|
402
402
|
.optional()
|
|
@@ -406,7 +406,7 @@ export const searchTypeMixin3QueryParams = zod.object({
|
|
|
406
406
|
.optional()
|
|
407
407
|
.describe('Page number of result set of records.\nDefault: 1.'),
|
|
408
408
|
sort: zod
|
|
409
|
-
.array(zod.string().regex(
|
|
409
|
+
.array(zod.string().regex(searchTypeQuerySortItemRegExp))
|
|
410
410
|
.optional()
|
|
411
411
|
.describe(
|
|
412
412
|
'Sort result dataset of records by fields.\n```\nsort ::= *( ORDER name )\n\nORDER = ASC / DESC\nDESC = \"-\" / \"!\"\nASC = [ \"+\" ] ; Default\n```\n\nFields available\n\n- `id`(seq)\n- `domain`{name}\n- `created_at`\n- `created_by`{name}\n- `updated_at`\n- `updated_by`{name}\n\nUse ?fields=`field.sort()` option to sort Edge fields.',
|
|
@@ -426,9 +426,9 @@ export const searchTypeMixin3QueryParams = zod.object({
|
|
|
426
426
|
id: zod.array(zod.string()).optional().describe('extension.type.id'),
|
|
427
427
|
});
|
|
428
428
|
|
|
429
|
-
export const
|
|
429
|
+
export const searchTypeResponseDataItemFieldsItemKindDefault = 'none';
|
|
430
430
|
|
|
431
|
-
export const
|
|
431
|
+
export const searchTypeResponse = zod
|
|
432
432
|
.object({
|
|
433
433
|
data: zod
|
|
434
434
|
.array(
|
|
@@ -609,9 +609,7 @@ export const searchTypeMixin3Response = zod
|
|
|
609
609
|
'datetime',
|
|
610
610
|
'duration',
|
|
611
611
|
])
|
|
612
|
-
.default(
|
|
613
|
-
searchTypeMixin3ResponseDataItemFieldsItemKindDefault,
|
|
614
|
-
)
|
|
612
|
+
.default(searchTypeResponseDataItemFieldsItemKindDefault)
|
|
615
613
|
.describe(
|
|
616
614
|
'Kind of primitive data types.\n\n - none: option allow_alias = true;\n - list: [array]\n - int: int32\n - uint: uint32\n - float: float32\n - datetime: date &| time',
|
|
617
615
|
),
|
|
@@ -10,10 +10,12 @@ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
12
|
SearchFilesParams,
|
|
13
|
+
SearchScreenRecordingsByAgentParams,
|
|
13
14
|
SearchScreenRecordingsParams,
|
|
14
15
|
StorageDeleteFilesRequest,
|
|
15
16
|
StorageDeleteFilesResponse,
|
|
16
17
|
StorageFileServiceDeleteScreenRecordingsBody,
|
|
18
|
+
StorageFileServiceDeleteScreenRecordingsByAgentBody,
|
|
17
19
|
StorageListFile,
|
|
18
20
|
} from '.././_models';
|
|
19
21
|
|
|
@@ -25,6 +27,31 @@ export const // --- title start
|
|
|
25
27
|
// --- title end
|
|
26
28
|
() => {
|
|
27
29
|
// --- header end
|
|
30
|
+
const searchScreenRecordingsByAgent = <
|
|
31
|
+
TData = AxiosResponse<StorageListFile>,
|
|
32
|
+
>(
|
|
33
|
+
agentId: string,
|
|
34
|
+
params?: SearchScreenRecordingsByAgentParams,
|
|
35
|
+
options?: AxiosRequestConfig,
|
|
36
|
+
): Promise<TData> => {
|
|
37
|
+
return axios.get(`/storage/agent/${agentId}`, {
|
|
38
|
+
...options,
|
|
39
|
+
params: { ...params, ...options?.params },
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const deleteScreenRecordingsByAgent = <
|
|
43
|
+
TData = AxiosResponse<StorageDeleteFilesResponse>,
|
|
44
|
+
>(
|
|
45
|
+
agentId: string,
|
|
46
|
+
id: string[],
|
|
47
|
+
storageFileServiceDeleteScreenRecordingsByAgentBody: StorageFileServiceDeleteScreenRecordingsByAgentBody,
|
|
48
|
+
options?: AxiosRequestConfig,
|
|
49
|
+
): Promise<TData> => {
|
|
50
|
+
return axios.delete(`/storage/agent/${agentId}/${id}`, {
|
|
51
|
+
data: storageFileServiceDeleteScreenRecordingsByAgentBody,
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
28
55
|
const deleteFiles = <TData = AxiosResponse<StorageDeleteFilesResponse>>(
|
|
29
56
|
storageDeleteFilesRequest: StorageDeleteFilesRequest,
|
|
30
57
|
options?: AxiosRequestConfig,
|
|
@@ -69,12 +96,18 @@ export const // --- title start
|
|
|
69
96
|
|
|
70
97
|
// --- footer start
|
|
71
98
|
return {
|
|
99
|
+
searchScreenRecordingsByAgent,
|
|
100
|
+
deleteScreenRecordingsByAgent,
|
|
72
101
|
deleteFiles,
|
|
73
102
|
searchFiles,
|
|
74
103
|
searchScreenRecordings,
|
|
75
104
|
deleteScreenRecordings,
|
|
76
105
|
};
|
|
77
106
|
};
|
|
107
|
+
export type SearchScreenRecordingsByAgentResult =
|
|
108
|
+
AxiosResponse<StorageListFile>;
|
|
109
|
+
export type DeleteScreenRecordingsByAgentResult =
|
|
110
|
+
AxiosResponse<StorageDeleteFilesResponse>;
|
|
78
111
|
export type DeleteFilesResult = AxiosResponse<StorageDeleteFilesResponse>;
|
|
79
112
|
export type SearchFilesResult = AxiosResponse<StorageListFile>;
|
|
80
113
|
export type SearchScreenRecordingsResult = AxiosResponse<StorageListFile>;
|
|
@@ -10,6 +10,98 @@ import { delay, HttpResponse, http } from 'msw';
|
|
|
10
10
|
import type { StorageDeleteFilesResponse, StorageListFile } from '.././_models';
|
|
11
11
|
import { StorageUploadFileChannel } from '.././_models';
|
|
12
12
|
|
|
13
|
+
export const getSearchScreenRecordingsByAgentResponseMock = (
|
|
14
|
+
overrideResponse: Partial<StorageListFile> = {},
|
|
15
|
+
): StorageListFile => ({
|
|
16
|
+
items: faker.helpers.arrayElement([
|
|
17
|
+
Array.from(
|
|
18
|
+
{ length: faker.number.int({ min: 1, max: 10 }) },
|
|
19
|
+
(_, i) => i + 1,
|
|
20
|
+
).map(() => ({
|
|
21
|
+
channel: faker.helpers.arrayElement([
|
|
22
|
+
faker.helpers.arrayElement(Object.values(StorageUploadFileChannel)),
|
|
23
|
+
undefined,
|
|
24
|
+
]),
|
|
25
|
+
id: faker.helpers.arrayElement([
|
|
26
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
27
|
+
undefined,
|
|
28
|
+
]),
|
|
29
|
+
mimeType: faker.helpers.arrayElement([
|
|
30
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
31
|
+
undefined,
|
|
32
|
+
]),
|
|
33
|
+
name: faker.helpers.arrayElement([
|
|
34
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
35
|
+
undefined,
|
|
36
|
+
]),
|
|
37
|
+
referenceId: faker.helpers.arrayElement([
|
|
38
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
39
|
+
undefined,
|
|
40
|
+
]),
|
|
41
|
+
retentionUntil: faker.helpers.arrayElement([
|
|
42
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
43
|
+
undefined,
|
|
44
|
+
]),
|
|
45
|
+
sha256Sum: faker.helpers.arrayElement([
|
|
46
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
47
|
+
undefined,
|
|
48
|
+
]),
|
|
49
|
+
size: faker.helpers.arrayElement([
|
|
50
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
51
|
+
undefined,
|
|
52
|
+
]),
|
|
53
|
+
thumbnail: faker.helpers.arrayElement([
|
|
54
|
+
{
|
|
55
|
+
mimeType: faker.helpers.arrayElement([
|
|
56
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
57
|
+
undefined,
|
|
58
|
+
]),
|
|
59
|
+
scale: faker.helpers.arrayElement([
|
|
60
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
61
|
+
undefined,
|
|
62
|
+
]),
|
|
63
|
+
size: faker.helpers.arrayElement([
|
|
64
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
65
|
+
undefined,
|
|
66
|
+
]),
|
|
67
|
+
},
|
|
68
|
+
undefined,
|
|
69
|
+
]),
|
|
70
|
+
uploadedAt: faker.helpers.arrayElement([
|
|
71
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
72
|
+
undefined,
|
|
73
|
+
]),
|
|
74
|
+
uploadedBy: faker.helpers.arrayElement([
|
|
75
|
+
{
|
|
76
|
+
id: faker.helpers.arrayElement([
|
|
77
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
78
|
+
undefined,
|
|
79
|
+
]),
|
|
80
|
+
name: faker.helpers.arrayElement([
|
|
81
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
82
|
+
undefined,
|
|
83
|
+
]),
|
|
84
|
+
},
|
|
85
|
+
undefined,
|
|
86
|
+
]),
|
|
87
|
+
uuid: faker.helpers.arrayElement([
|
|
88
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
89
|
+
undefined,
|
|
90
|
+
]),
|
|
91
|
+
viewName: faker.helpers.arrayElement([
|
|
92
|
+
faker.string.alpha({ length: { min: 10, max: 20 } }),
|
|
93
|
+
undefined,
|
|
94
|
+
]),
|
|
95
|
+
})),
|
|
96
|
+
undefined,
|
|
97
|
+
]),
|
|
98
|
+
next: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]),
|
|
99
|
+
...overrideResponse,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export const getDeleteScreenRecordingsByAgentResponseMock =
|
|
103
|
+
(): StorageDeleteFilesResponse => ({});
|
|
104
|
+
|
|
13
105
|
export const getDeleteFilesResponseMock =
|
|
14
106
|
(): StorageDeleteFilesResponse => ({});
|
|
15
107
|
|
|
@@ -194,6 +286,52 @@ export const getSearchScreenRecordingsResponseMock = (
|
|
|
194
286
|
export const getDeleteScreenRecordingsResponseMock =
|
|
195
287
|
(): StorageDeleteFilesResponse => ({});
|
|
196
288
|
|
|
289
|
+
export const getSearchScreenRecordingsByAgentMockHandler = (
|
|
290
|
+
overrideResponse?:
|
|
291
|
+
| StorageListFile
|
|
292
|
+
| ((
|
|
293
|
+
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
294
|
+
) => Promise<StorageListFile> | StorageListFile),
|
|
295
|
+
) => {
|
|
296
|
+
return http.get('*/storage/agent/:agentId', async (info) => {
|
|
297
|
+
await delay(1000);
|
|
298
|
+
|
|
299
|
+
return new HttpResponse(
|
|
300
|
+
JSON.stringify(
|
|
301
|
+
overrideResponse !== undefined
|
|
302
|
+
? typeof overrideResponse === 'function'
|
|
303
|
+
? await overrideResponse(info)
|
|
304
|
+
: overrideResponse
|
|
305
|
+
: getSearchScreenRecordingsByAgentResponseMock(),
|
|
306
|
+
),
|
|
307
|
+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
308
|
+
);
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export const getDeleteScreenRecordingsByAgentMockHandler = (
|
|
313
|
+
overrideResponse?:
|
|
314
|
+
| StorageDeleteFilesResponse
|
|
315
|
+
| ((
|
|
316
|
+
info: Parameters<Parameters<typeof http.delete>[1]>[0],
|
|
317
|
+
) => Promise<StorageDeleteFilesResponse> | StorageDeleteFilesResponse),
|
|
318
|
+
) => {
|
|
319
|
+
return http.delete('*/storage/agent/:agentId/:id', async (info) => {
|
|
320
|
+
await delay(1000);
|
|
321
|
+
|
|
322
|
+
return new HttpResponse(
|
|
323
|
+
JSON.stringify(
|
|
324
|
+
overrideResponse !== undefined
|
|
325
|
+
? typeof overrideResponse === 'function'
|
|
326
|
+
? await overrideResponse(info)
|
|
327
|
+
: overrideResponse
|
|
328
|
+
: getDeleteScreenRecordingsByAgentResponseMock(),
|
|
329
|
+
),
|
|
330
|
+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
331
|
+
);
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
|
|
197
335
|
export const getDeleteFilesMockHandler = (
|
|
198
336
|
overrideResponse?:
|
|
199
337
|
| StorageDeleteFilesResponse
|
|
@@ -286,6 +424,8 @@ export const getDeleteScreenRecordingsMockHandler = (
|
|
|
286
424
|
});
|
|
287
425
|
};
|
|
288
426
|
export const getFileServiceMock = () => [
|
|
427
|
+
getSearchScreenRecordingsByAgentMockHandler(),
|
|
428
|
+
getDeleteScreenRecordingsByAgentMockHandler(),
|
|
289
429
|
getDeleteFilesMockHandler(),
|
|
290
430
|
getSearchFilesMockHandler(),
|
|
291
431
|
getSearchScreenRecordingsMockHandler(),
|
|
@@ -6,6 +6,102 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { z as zod } from 'zod/v4';
|
|
8
8
|
|
|
9
|
+
export const searchScreenRecordingsByAgentParams = zod.object({
|
|
10
|
+
agent_id: zod.string(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const searchScreenRecordingsByAgentQueryChannelDefault =
|
|
14
|
+
'UnknownChannel';
|
|
15
|
+
|
|
16
|
+
export const searchScreenRecordingsByAgentQueryParams = zod.object({
|
|
17
|
+
page: zod.number().optional(),
|
|
18
|
+
size: zod.number().optional(),
|
|
19
|
+
q: zod.string().optional(),
|
|
20
|
+
sort: zod.string().optional(),
|
|
21
|
+
fields: zod.array(zod.string()).optional(),
|
|
22
|
+
id: zod.array(zod.string()).optional(),
|
|
23
|
+
uploadedAtFrom: zod.string().optional(),
|
|
24
|
+
uploadedAtTo: zod.string().optional(),
|
|
25
|
+
referenceId: zod.array(zod.string()).optional(),
|
|
26
|
+
retentionUntilFrom: zod.string().optional(),
|
|
27
|
+
retentionUntilTo: zod.string().optional(),
|
|
28
|
+
channel: zod
|
|
29
|
+
.enum([
|
|
30
|
+
'UnknownChannel',
|
|
31
|
+
'ChatChannel',
|
|
32
|
+
'MailChannel',
|
|
33
|
+
'CallChannel',
|
|
34
|
+
'LogChannel',
|
|
35
|
+
'MediaChannel',
|
|
36
|
+
'KnowledgebaseChannel',
|
|
37
|
+
'CasesChannel',
|
|
38
|
+
'ScreenshotChannel',
|
|
39
|
+
'ScreenSharingChannel',
|
|
40
|
+
])
|
|
41
|
+
.default(searchScreenRecordingsByAgentQueryChannelDefault),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export const searchScreenRecordingsByAgentResponseItemsItemChannelDefault =
|
|
45
|
+
'UnknownChannel';
|
|
46
|
+
|
|
47
|
+
export const searchScreenRecordingsByAgentResponse = zod.object({
|
|
48
|
+
items: zod
|
|
49
|
+
.array(
|
|
50
|
+
zod.object({
|
|
51
|
+
channel: zod
|
|
52
|
+
.enum([
|
|
53
|
+
'UnknownChannel',
|
|
54
|
+
'ChatChannel',
|
|
55
|
+
'MailChannel',
|
|
56
|
+
'CallChannel',
|
|
57
|
+
'LogChannel',
|
|
58
|
+
'MediaChannel',
|
|
59
|
+
'KnowledgebaseChannel',
|
|
60
|
+
'CasesChannel',
|
|
61
|
+
'ScreenshotChannel',
|
|
62
|
+
'ScreenSharingChannel',
|
|
63
|
+
])
|
|
64
|
+
.default(
|
|
65
|
+
searchScreenRecordingsByAgentResponseItemsItemChannelDefault,
|
|
66
|
+
),
|
|
67
|
+
id: zod.string().optional(),
|
|
68
|
+
mimeType: zod.string().optional(),
|
|
69
|
+
name: zod.string().optional(),
|
|
70
|
+
referenceId: zod.string().optional(),
|
|
71
|
+
retentionUntil: zod.string().optional(),
|
|
72
|
+
sha256Sum: zod.string().optional(),
|
|
73
|
+
size: zod.string().optional(),
|
|
74
|
+
thumbnail: zod
|
|
75
|
+
.object({
|
|
76
|
+
mimeType: zod.string().optional(),
|
|
77
|
+
scale: zod.string().optional(),
|
|
78
|
+
size: zod.string().optional(),
|
|
79
|
+
})
|
|
80
|
+
.optional(),
|
|
81
|
+
uploadedAt: zod.string().optional(),
|
|
82
|
+
uploadedBy: zod
|
|
83
|
+
.object({
|
|
84
|
+
id: zod.string().optional(),
|
|
85
|
+
name: zod.string().optional(),
|
|
86
|
+
})
|
|
87
|
+
.optional(),
|
|
88
|
+
uuid: zod.string().optional(),
|
|
89
|
+
viewName: zod.string().optional(),
|
|
90
|
+
}),
|
|
91
|
+
)
|
|
92
|
+
.optional(),
|
|
93
|
+
next: zod.boolean().optional(),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const deleteScreenRecordingsByAgentParams = zod.object({
|
|
97
|
+
agent_id: zod.string(),
|
|
98
|
+
id: zod.array(zod.string()).min(1),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export const deleteScreenRecordingsByAgentBody = zod.object({});
|
|
102
|
+
|
|
103
|
+
export const deleteScreenRecordingsByAgentResponse = zod.object({});
|
|
104
|
+
|
|
9
105
|
export const deleteFilesBody = zod.object({
|
|
10
106
|
id: zod.array(zod.string()).optional(),
|
|
11
107
|
});
|
|
@@ -13,8 +13,8 @@ import type {
|
|
|
13
13
|
Create200,
|
|
14
14
|
CreateBody,
|
|
15
15
|
DataDataset,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
LocateMixin3Params,
|
|
17
|
+
LocateMixin3200,
|
|
18
18
|
SearchParams,
|
|
19
19
|
Update2Body,
|
|
20
20
|
Update2Params,
|
|
@@ -73,10 +73,10 @@ export const // --- title start
|
|
|
73
73
|
* (Record) {
|
|
74
74
|
* @summary Locate dataset record
|
|
75
75
|
*/
|
|
76
|
-
const
|
|
76
|
+
const locateMixin3 = <TData = AxiosResponse<LocateMixin3200>>(
|
|
77
77
|
repo: string,
|
|
78
78
|
id: string,
|
|
79
|
-
params?:
|
|
79
|
+
params?: LocateMixin3Params,
|
|
80
80
|
options?: AxiosRequestConfig,
|
|
81
81
|
): Promise<TData> => {
|
|
82
82
|
return axios.get(`/v2/dataset/${repo}/${id}`, {
|
|
@@ -118,12 +118,12 @@ export const // --- title start
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
// --- footer start
|
|
121
|
-
return { _delete, search, create,
|
|
121
|
+
return { _delete, search, create, locateMixin3, update, update2 };
|
|
122
122
|
};
|
|
123
123
|
export type _DeleteResult = AxiosResponse<DataDataset>;
|
|
124
124
|
export type SearchResult = AxiosResponse<DataDataset>;
|
|
125
125
|
export type CreateResult = AxiosResponse<Create200>;
|
|
126
|
-
export type
|
|
126
|
+
export type LocateMixin3Result = AxiosResponse<LocateMixin3200>;
|
|
127
127
|
export type UpdateResult = AxiosResponse<Update200>;
|
|
128
128
|
export type Update2Result = AxiosResponse<Update2200>;
|
|
129
129
|
|
|
@@ -10,7 +10,7 @@ import { delay, HttpResponse, http } from 'msw';
|
|
|
10
10
|
import type {
|
|
11
11
|
Create200,
|
|
12
12
|
DataDataset,
|
|
13
|
-
|
|
13
|
+
LocateMixin3200,
|
|
14
14
|
Update200,
|
|
15
15
|
Update2200,
|
|
16
16
|
} from '.././_models';
|
|
@@ -1186,7 +1186,7 @@ export const getSearchResponseMock = (
|
|
|
1186
1186
|
|
|
1187
1187
|
export const getCreateResponseMock = (): Create200 => ({});
|
|
1188
1188
|
|
|
1189
|
-
export const
|
|
1189
|
+
export const getLocateMixin3ResponseMock = (): LocateMixin3200 => ({});
|
|
1190
1190
|
|
|
1191
1191
|
export const getUpdateResponseMock = (): Update200 => ({});
|
|
1192
1192
|
|
|
@@ -1261,12 +1261,12 @@ export const getCreateMockHandler = (
|
|
|
1261
1261
|
});
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
|
-
export const
|
|
1264
|
+
export const getLocateMixin3MockHandler = (
|
|
1265
1265
|
overrideResponse?:
|
|
1266
|
-
|
|
|
1266
|
+
| LocateMixin3200
|
|
1267
1267
|
| ((
|
|
1268
1268
|
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
1269
|
-
) => Promise<
|
|
1269
|
+
) => Promise<LocateMixin3200> | LocateMixin3200),
|
|
1270
1270
|
) => {
|
|
1271
1271
|
return http.get('*/v2/dataset/:repo/:id', async (info) => {
|
|
1272
1272
|
await delay(1000);
|
|
@@ -1277,7 +1277,7 @@ export const getLocateMockHandler = (
|
|
|
1277
1277
|
? typeof overrideResponse === 'function'
|
|
1278
1278
|
? await overrideResponse(info)
|
|
1279
1279
|
: overrideResponse
|
|
1280
|
-
:
|
|
1280
|
+
: getLocateMixin3ResponseMock(),
|
|
1281
1281
|
),
|
|
1282
1282
|
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
1283
1283
|
);
|
|
@@ -1333,7 +1333,7 @@ export const getRecordsMock = () => [
|
|
|
1333
1333
|
getDeleteMockHandler(),
|
|
1334
1334
|
getSearchMockHandler(),
|
|
1335
1335
|
getCreateMockHandler(),
|
|
1336
|
-
|
|
1336
|
+
getLocateMixin3MockHandler(),
|
|
1337
1337
|
getUpdateMockHandler(),
|
|
1338
1338
|
getUpdate2MockHandler(),
|
|
1339
1339
|
];
|
|
@@ -787,14 +787,14 @@ export const createResponse = zod.object({});
|
|
|
787
787
|
* (Record) {
|
|
788
788
|
* @summary Locate dataset record
|
|
789
789
|
*/
|
|
790
|
-
export const
|
|
790
|
+
export const locateMixin3Params = zod.object({
|
|
791
791
|
repo: zod.string().describe('[`types.repo`]'),
|
|
792
792
|
id: zod.string().describe('[`record.id`]'),
|
|
793
793
|
});
|
|
794
794
|
|
|
795
|
-
export const
|
|
795
|
+
export const locateMixin3QueryFieldsItemDefault = '*';
|
|
796
796
|
|
|
797
|
-
export const
|
|
797
|
+
export const locateMixin3QueryParams = zod.object({
|
|
798
798
|
fields: zod
|
|
799
799
|
.array(zod.string())
|
|
800
800
|
.optional()
|
|
@@ -803,7 +803,7 @@ export const locateQueryParams = zod.object({
|
|
|
803
803
|
),
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
export const
|
|
806
|
+
export const locateMixin3Response = zod.object({});
|
|
807
807
|
|
|
808
808
|
/**
|
|
809
809
|
* (Record) {
|