@webitel/api-services 0.0.33 → 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/api/defaults/getDefaultInstance/getDefaultInstance.ts +6 -1
- package/src/api/transformers/generateUrl/generateUrl.transformer.ts +3 -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/interfaces/_models_webitelCasesFile.WebitelCasesFile.html +3 -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/case-files_case-files.zod.gen.deleteFileResponse.html +1 -1
- package/src/gen/_docs/html/variables/case-files_case-files.zod.gen.listFilesResponse.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 +4 -0
- package/src/gen/_models/index.ts +3 -0
- package/src/gen/_models/openedWebSocketsParams.ts +14 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +4 -0
- package/src/gen/_models/webitelCasesCase.ts +2 -1
- package/src/gen/_models/webitelCasesFile.ts +1 -0
- 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/case-files/case-files.msw.api.gen.ts +8 -0
- package/src/gen/case-files/case-files.zod.gen.ts +2 -0
- package/src/gen/cases/cases.msw.api.gen.ts +749 -16
- package/src/gen/cases/cases.zod.gen.ts +287 -0
- package/src/gen/system-setting-service/system-setting-service.zod.gen.ts +32 -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/agentAbsenceServiceUpdateAgentAbsenceBodyItem.d.ts +1 -1
- package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts +2 -2
- package/types/gen/_models/apiAccessStoreToggleDefaultAccessBody.d.ts +1 -1
- package/types/gen/_models/apiCustomer.d.ts +2 -2
- package/types/gen/_models/apiDevice.d.ts +1 -1
- package/types/gen/_models/apiLDAPCatalog.d.ts +4 -4
- package/types/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.d.ts +4 -4
- package/types/gen/_models/apiLDAProcess.d.ts +2 -2
- package/types/gen/_models/apiLicenseV1.d.ts +1 -1
- package/types/gen/_models/apiRole.d.ts +3 -3
- package/types/gen/_models/apiRolesUpdateRoleBodyRole.d.ts +3 -3
- package/types/gen/_models/apiUser.d.ts +1 -1
- package/types/gen/_models/apiUsersUpdateUserBodyUser.d.ts +1 -1
- package/types/gen/_models/contactsUpdateContactBody.d.ts +1 -1
- package/types/gen/_models/engineActiveCall.d.ts +2 -2
- package/types/gen/_models/engineAgent.d.ts +3 -1
- package/types/gen/_models/engineAgentInQueueStatistics.d.ts +1 -1
- 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/engineAggregateHistoryCallRequest.d.ts +1 -1
- package/types/gen/_models/engineAttempt.d.ts +1 -1
- package/types/gen/_models/engineAttemptHistory.d.ts +1 -1
- package/types/gen/_models/engineAuditFormServicePatchAuditFormBody.d.ts +1 -1
- package/types/gen/_models/engineAuditFormServiceUpdateAuditFormBody.d.ts +1 -1
- package/types/gen/_models/engineAuditRate.d.ts +2 -2
- package/types/gen/_models/engineCreateAgentRequest.d.ts +1 -0
- package/types/gen/_models/engineCreateAgentTeamRequest.d.ts +1 -0
- package/types/gen/_models/engineCreateAuditFormRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateCallRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateMemberBulkItem.d.ts +1 -1
- package/types/gen/_models/engineCreateOutboundResourceRequest.d.ts +2 -2
- package/types/gen/_models/engineCreateQueueRequest.d.ts +2 -2
- package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateTriggerRequest.d.ts +2 -2
- package/types/gen/_models/engineDeleteAllMembersRequest.d.ts +1 -1
- package/types/gen/_models/engineHistoryCall.d.ts +6 -6
- package/types/gen/_models/engineListOpenedWebSocket.d.ts +11 -0
- package/types/gen/_models/engineListReportGeneral.d.ts +1 -1
- package/types/gen/_models/engineOpenedWebSocket.d.ts +16 -0
- package/types/gen/_models/engineOutboundResource.d.ts +1 -1
- package/types/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.d.ts +1 -1
- package/types/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.d.ts +1 -1
- package/types/gen/_models/engineQuestion.d.ts +1 -1
- package/types/gen/_models/engineQueue.d.ts +2 -2
- package/types/gen/_models/engineQueueReportGeneral.d.ts +1 -1
- package/types/gen/_models/engineQueueServicePatchQueueBody.d.ts +2 -2
- package/types/gen/_models/engineQueueServiceUpdateQueueBody.d.ts +2 -2
- package/types/gen/_models/engineRoutingSchema.d.ts +2 -2
- package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -1
- package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -1
- package/types/gen/_models/engineSystemSettingName.d.ts +4 -0
- package/types/gen/_models/engineTeamHook.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServiceCreateTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServicePatchTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServiceUpdateTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTrigger.d.ts +1 -1
- package/types/gen/_models/engineTriggerJob.d.ts +1 -1
- package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
- package/types/gen/_models/engineTriggerServicePatchTriggerBody.d.ts +1 -1
- package/types/gen/_models/engineTriggerServiceUpdateTriggerBody.d.ts +1 -1
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
- package/types/gen/_models/openedWebSocketsParams.d.ts +13 -0
- package/types/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.d.ts +1 -1
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +4 -0
- package/types/gen/_models/storageCreateImportTemplateRequest.d.ts +1 -1
- package/types/gen/_models/storageFile.d.ts +2 -2
- package/types/gen/_models/storageFilePolicy.d.ts +1 -1
- package/types/gen/_models/storageImportTemplate.d.ts +2 -2
- package/types/gen/_models/storageSafeUploadFileResponseMetadata.d.ts +1 -1
- package/types/gen/_models/storageUpdateCognitiveProfileRequest.d.ts +2 -2
- package/types/gen/_models/storageUpdateImportTemplateRequest.d.ts +1 -1
- package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
- package/types/gen/_models/storageUploadFileResponse.d.ts +1 -1
- package/types/gen/_models/storageUploadFileUrlResponse.d.ts +1 -1
- package/types/gen/_models/usersUpdateUser2Body.d.ts +1 -1
- package/types/gen/_models/usersUpdateUserBody.d.ts +1 -1
- package/types/gen/_models/usersUpdateUserUserBody.d.ts +1 -1
- package/types/gen/_models/webitelCasesCallEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesCase.d.ts +3 -2
- package/types/gen/_models/webitelCasesChatEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesEmailEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesFile.d.ts +3 -3
- package/types/gen/_models/webitelCasesInputCreateService.d.ts +1 -1
- package/types/gen/_models/webitelCasesInputService.d.ts +1 -1
- package/types/gen/_models/webitelCasesInputSource.d.ts +0 -1
- package/types/gen/_models/webitelCasesService.d.ts +1 -1
- package/types/gen/_models/webitelCasesSource.d.ts +5 -6
- package/types/gen/_models/webitelChatAgentChat.d.ts +1 -1
- package/types/gen/_models/webitelChatBroadcastMessageRequest.d.ts +1 -1
- package/types/gen/_models/webitelChatChatMessage.d.ts +2 -2
- package/types/gen/_models/webitelChatContactChat.d.ts +1 -1
- package/types/gen/_models/webitelChatDialog.d.ts +1 -1
- package/types/gen/_models/webitelChatGetContactChatHistoryResponse.d.ts +2 -2
- package/types/gen/_models/webitelContactsComment.d.ts +1 -1
- package/types/gen/_models/webitelContactsIMClient.d.ts +2 -0
- package/types/gen/_models/webitelProtoDataStruct.d.ts +1 -1
- package/types/gen/_models/wfmAbsence.d.ts +1 -1
- package/types/gen/_models/wfmAgentScheduleShift.d.ts +2 -2
- package/types/gen/_models/wfmAgentWorkingSchedule.d.ts +1 -1
- package/types/gen/_models/wfmPauseTemplate.d.ts +1 -1
- package/types/gen/_models/wfmSearchAgentsWorkingScheduleResponse.d.ts +1 -1
- package/types/gen/agent-chat-service/agent-chat-service.zod.gen.d.ts +1 -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/articles/articles.api.gen.d.ts +1 -1
- package/types/gen/call-service/call-service.zod.gen.d.ts +6 -6
- package/types/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.d.ts +1 -1
- package/types/gen/catalog/catalog.zod.gen.d.ts +3 -3
- package/types/gen/config-service/config-service.zod.gen.d.ts +2 -2
- package/types/gen/contacts/contacts.zod.gen.d.ts +7 -2
- package/types/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.d.ts +2 -2
- package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +33 -33
- package/types/gen/extensions/extensions.zod.gen.d.ts +24 -24
- package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
- package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
- package/types/gen/groups/groups.zod.gen.d.ts +2 -0
- package/types/gen/imclients/imclients.zod.gen.d.ts +1 -0
- package/types/gen/ldap/ldap.api.gen.d.ts +1 -1
- package/types/gen/ldap/ldap.msw.api.gen.d.ts +1 -1
- package/types/gen/logger-service/logger-service.zod.gen.d.ts +5 -5
- package/types/gen/system-setting-service/system-setting-service.zod.gen.d.ts +32 -0
- package/types/gen/timeline/timeline.zod.gen.d.ts +2 -2
- package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +24 -15
- package/types/gen/types/types.zod.gen.d.ts +6 -6
- 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
- package/types/defaults/index.d.ts +0 -2
- package/types/gen/_models/configServicePatchConfigBody.d.ts +0 -15
- package/types/gen/_models/configServiceUpdateConfigBody.d.ts +0 -14
- package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +0 -12
- package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +0 -9
- package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +0 -10
- package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +0 -9
- package/types/gen/_models/readSystemObjectsParams.d.ts +0 -9
- package/types/gen/_models/searchConfigObjectItem.d.ts +0 -25
- package/types/gen/_models/searchConfigParams.d.ts +0 -18
- package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByConfigIdParams.d.ts +0 -19
- package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByRecordIdParams.d.ts +0 -22
- package/types/gen/_models/searchLogByUserIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByUserIdParams.d.ts +0 -25
|
@@ -214,6 +214,7 @@ export const searchCasesResponse = zod
|
|
|
214
214
|
.string()
|
|
215
215
|
.optional()
|
|
216
216
|
.describe('File size in bytes.'),
|
|
217
|
+
source: zod.string().optional(),
|
|
217
218
|
url: zod.string().optional(),
|
|
218
219
|
})
|
|
219
220
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -428,8 +429,48 @@ export const searchCasesResponse = zod
|
|
|
428
429
|
roleIds: zod.array(zod.string()).optional(),
|
|
429
430
|
service: zod
|
|
430
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(),
|
|
431
455
|
id: zod.string().optional(),
|
|
432
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(),
|
|
433
474
|
})
|
|
434
475
|
.optional(),
|
|
435
476
|
sla: zod
|
|
@@ -849,6 +890,7 @@ export const createCaseResponse = zod
|
|
|
849
890
|
.describe('MIME type of the file.'),
|
|
850
891
|
name: zod.string().optional().describe('File name.'),
|
|
851
892
|
size: zod.string().optional().describe('File size in bytes.'),
|
|
893
|
+
source: zod.string().optional(),
|
|
852
894
|
url: zod.string().optional(),
|
|
853
895
|
})
|
|
854
896
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -1059,8 +1101,48 @@ export const createCaseResponse = zod
|
|
|
1059
1101
|
roleIds: zod.array(zod.string()).optional(),
|
|
1060
1102
|
service: zod
|
|
1061
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(),
|
|
1062
1127
|
id: zod.string().optional(),
|
|
1063
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(),
|
|
1064
1146
|
})
|
|
1065
1147
|
.optional(),
|
|
1066
1148
|
sla: zod
|
|
@@ -1316,6 +1398,7 @@ export const deleteCaseResponse = zod
|
|
|
1316
1398
|
.describe('MIME type of the file.'),
|
|
1317
1399
|
name: zod.string().optional().describe('File name.'),
|
|
1318
1400
|
size: zod.string().optional().describe('File size in bytes.'),
|
|
1401
|
+
source: zod.string().optional(),
|
|
1319
1402
|
url: zod.string().optional(),
|
|
1320
1403
|
})
|
|
1321
1404
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -1526,8 +1609,48 @@ export const deleteCaseResponse = zod
|
|
|
1526
1609
|
roleIds: zod.array(zod.string()).optional(),
|
|
1527
1610
|
service: zod
|
|
1528
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(),
|
|
1529
1635
|
id: zod.string().optional(),
|
|
1530
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(),
|
|
1531
1654
|
})
|
|
1532
1655
|
.optional(),
|
|
1533
1656
|
sla: zod
|
|
@@ -1783,6 +1906,7 @@ export const locateCaseResponse = zod
|
|
|
1783
1906
|
.describe('MIME type of the file.'),
|
|
1784
1907
|
name: zod.string().optional().describe('File name.'),
|
|
1785
1908
|
size: zod.string().optional().describe('File size in bytes.'),
|
|
1909
|
+
source: zod.string().optional(),
|
|
1786
1910
|
url: zod.string().optional(),
|
|
1787
1911
|
})
|
|
1788
1912
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -1993,8 +2117,48 @@ export const locateCaseResponse = zod
|
|
|
1993
2117
|
roleIds: zod.array(zod.string()).optional(),
|
|
1994
2118
|
service: zod
|
|
1995
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(),
|
|
1996
2143
|
id: zod.string().optional(),
|
|
1997
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(),
|
|
1998
2162
|
})
|
|
1999
2163
|
.optional(),
|
|
2000
2164
|
sla: zod
|
|
@@ -2357,6 +2521,7 @@ export const updateCase2Response = zod.object({
|
|
|
2357
2521
|
.describe('MIME type of the file.'),
|
|
2358
2522
|
name: zod.string().optional().describe('File name.'),
|
|
2359
2523
|
size: zod.string().optional().describe('File size in bytes.'),
|
|
2524
|
+
source: zod.string().optional(),
|
|
2360
2525
|
url: zod.string().optional(),
|
|
2361
2526
|
})
|
|
2362
2527
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -2571,8 +2736,48 @@ export const updateCase2Response = zod.object({
|
|
|
2571
2736
|
roleIds: zod.array(zod.string()).optional(),
|
|
2572
2737
|
service: zod
|
|
2573
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(),
|
|
2574
2762
|
id: zod.string().optional(),
|
|
2575
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(),
|
|
2576
2781
|
})
|
|
2577
2782
|
.optional(),
|
|
2578
2783
|
sla: zod
|
|
@@ -2946,6 +3151,7 @@ export const updateCaseResponse = zod.object({
|
|
|
2946
3151
|
.describe('MIME type of the file.'),
|
|
2947
3152
|
name: zod.string().optional().describe('File name.'),
|
|
2948
3153
|
size: zod.string().optional().describe('File size in bytes.'),
|
|
3154
|
+
source: zod.string().optional(),
|
|
2949
3155
|
url: zod.string().optional(),
|
|
2950
3156
|
})
|
|
2951
3157
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -3160,8 +3366,48 @@ export const updateCaseResponse = zod.object({
|
|
|
3160
3366
|
roleIds: zod.array(zod.string()).optional(),
|
|
3161
3367
|
service: zod
|
|
3162
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(),
|
|
3163
3392
|
id: zod.string().optional(),
|
|
3164
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(),
|
|
3165
3411
|
})
|
|
3166
3412
|
.optional(),
|
|
3167
3413
|
sla: zod
|
|
@@ -3461,6 +3707,7 @@ export const searchCases2Response = zod
|
|
|
3461
3707
|
.string()
|
|
3462
3708
|
.optional()
|
|
3463
3709
|
.describe('File size in bytes.'),
|
|
3710
|
+
source: zod.string().optional(),
|
|
3464
3711
|
url: zod.string().optional(),
|
|
3465
3712
|
})
|
|
3466
3713
|
.describe('Metadata for a file associated with a case.'),
|
|
@@ -3675,8 +3922,48 @@ export const searchCases2Response = zod
|
|
|
3675
3922
|
roleIds: zod.array(zod.string()).optional(),
|
|
3676
3923
|
service: zod
|
|
3677
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(),
|
|
3678
3948
|
id: zod.string().optional(),
|
|
3679
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(),
|
|
3680
3967
|
})
|
|
3681
3968
|
.optional(),
|
|
3682
3969
|
sla: zod
|
|
@@ -39,6 +39,10 @@ export const searchSystemSettingQueryParams = zod.object({
|
|
|
39
39
|
'task_end_push_notification',
|
|
40
40
|
'push_notification_timeout',
|
|
41
41
|
'labels_to_limit_contacts',
|
|
42
|
+
'autolink_mail_to_contact',
|
|
43
|
+
'new_message_sound_notification',
|
|
44
|
+
'new_chat_sound_notification',
|
|
45
|
+
'screenshot_interval',
|
|
42
46
|
]),
|
|
43
47
|
)
|
|
44
48
|
.optional()
|
|
@@ -79,6 +83,10 @@ export const searchSystemSettingResponse = zod.object({
|
|
|
79
83
|
'task_end_push_notification',
|
|
80
84
|
'push_notification_timeout',
|
|
81
85
|
'labels_to_limit_contacts',
|
|
86
|
+
'autolink_mail_to_contact',
|
|
87
|
+
'new_message_sound_notification',
|
|
88
|
+
'new_chat_sound_notification',
|
|
89
|
+
'screenshot_interval',
|
|
82
90
|
])
|
|
83
91
|
.default(searchSystemSettingResponseItemsItemNameDefault),
|
|
84
92
|
}),
|
|
@@ -116,6 +124,10 @@ export const createSystemSettingBody = zod.object({
|
|
|
116
124
|
'task_end_push_notification',
|
|
117
125
|
'push_notification_timeout',
|
|
118
126
|
'labels_to_limit_contacts',
|
|
127
|
+
'autolink_mail_to_contact',
|
|
128
|
+
'new_message_sound_notification',
|
|
129
|
+
'new_chat_sound_notification',
|
|
130
|
+
'screenshot_interval',
|
|
119
131
|
])
|
|
120
132
|
.default(createSystemSettingBodyNameDefault),
|
|
121
133
|
});
|
|
@@ -151,6 +163,10 @@ export const createSystemSettingResponse = zod.object({
|
|
|
151
163
|
'task_end_push_notification',
|
|
152
164
|
'push_notification_timeout',
|
|
153
165
|
'labels_to_limit_contacts',
|
|
166
|
+
'autolink_mail_to_contact',
|
|
167
|
+
'new_message_sound_notification',
|
|
168
|
+
'new_chat_sound_notification',
|
|
169
|
+
'screenshot_interval',
|
|
154
170
|
])
|
|
155
171
|
.default(createSystemSettingResponseNameDefault),
|
|
156
172
|
});
|
|
@@ -209,6 +225,10 @@ export const deleteSystemSettingResponse = zod.object({
|
|
|
209
225
|
'task_end_push_notification',
|
|
210
226
|
'push_notification_timeout',
|
|
211
227
|
'labels_to_limit_contacts',
|
|
228
|
+
'autolink_mail_to_contact',
|
|
229
|
+
'new_message_sound_notification',
|
|
230
|
+
'new_chat_sound_notification',
|
|
231
|
+
'screenshot_interval',
|
|
212
232
|
])
|
|
213
233
|
.default(deleteSystemSettingResponseNameDefault),
|
|
214
234
|
});
|
|
@@ -248,6 +268,10 @@ export const readSystemSettingResponse = zod.object({
|
|
|
248
268
|
'task_end_push_notification',
|
|
249
269
|
'push_notification_timeout',
|
|
250
270
|
'labels_to_limit_contacts',
|
|
271
|
+
'autolink_mail_to_contact',
|
|
272
|
+
'new_message_sound_notification',
|
|
273
|
+
'new_chat_sound_notification',
|
|
274
|
+
'screenshot_interval',
|
|
251
275
|
])
|
|
252
276
|
.default(readSystemSettingResponseNameDefault),
|
|
253
277
|
});
|
|
@@ -291,6 +315,10 @@ export const patchSystemSettingResponse = zod.object({
|
|
|
291
315
|
'task_end_push_notification',
|
|
292
316
|
'push_notification_timeout',
|
|
293
317
|
'labels_to_limit_contacts',
|
|
318
|
+
'autolink_mail_to_contact',
|
|
319
|
+
'new_message_sound_notification',
|
|
320
|
+
'new_chat_sound_notification',
|
|
321
|
+
'screenshot_interval',
|
|
294
322
|
])
|
|
295
323
|
.default(patchSystemSettingResponseNameDefault),
|
|
296
324
|
});
|
|
@@ -332,6 +360,10 @@ export const updateSystemSettingResponse = zod.object({
|
|
|
332
360
|
'task_end_push_notification',
|
|
333
361
|
'push_notification_timeout',
|
|
334
362
|
'labels_to_limit_contacts',
|
|
363
|
+
'autolink_mail_to_contact',
|
|
364
|
+
'new_message_sound_notification',
|
|
365
|
+
'new_chat_sound_notification',
|
|
366
|
+
'screenshot_interval',
|
|
335
367
|
])
|
|
336
368
|
.default(updateSystemSettingResponseNameDefault),
|
|
337
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
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { WfmAbsenceType } from './wfmAbsenceType';
|
|
2
1
|
/**
|
|
3
2
|
* Generated by orval v7.10.0 🍺
|
|
4
3
|
* Do not edit manually.
|
|
5
4
|
* Webitel API
|
|
6
5
|
* OpenAPI spec version: 24.04.0
|
|
7
6
|
*/
|
|
7
|
+
import type { WfmAbsenceType } from './wfmAbsenceType';
|
|
8
8
|
import type { WfmLookupEntity } from './wfmLookupEntity';
|
|
9
9
|
export type AgentAbsenceServiceUpdateAgentAbsenceBodyItem = {
|
|
10
10
|
absentAt?: string;
|
package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
|
|
2
|
-
import type { WfmFilterBetween } from './wfmFilterBetween';
|
|
3
1
|
/**
|
|
4
2
|
* Generated by orval v7.10.0 🍺
|
|
5
3
|
* Do not edit manually.
|
|
6
4
|
* Webitel API
|
|
7
5
|
* OpenAPI spec version: 24.04.0
|
|
8
6
|
*/
|
|
7
|
+
import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
|
|
8
|
+
import type { WfmFilterBetween } from './wfmFilterBetween';
|
|
9
9
|
import type { WfmLookupEntity } from './wfmLookupEntity';
|
|
10
10
|
export type AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody = {
|
|
11
11
|
agents?: WfmLookupEntity[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
|
|
2
1
|
/**
|
|
3
2
|
* Generated by orval v7.10.0 🍺
|
|
4
3
|
* Do not edit manually.
|
|
5
4
|
* Webitel API
|
|
6
5
|
* OpenAPI spec version: 24.04.0
|
|
7
6
|
*/
|
|
7
|
+
import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
|
|
8
8
|
import type { ApiGrantAccessRequestV1 } from './apiGrantAccessRequestV1';
|
|
9
9
|
export interface ApiAccessStoreToggleDefaultAccessBody {
|
|
10
10
|
/** list of changes ...
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ApiCustomerLimit } from './apiCustomerLimit';
|
|
2
|
-
import type { ApiLicenseV1 } from './apiLicenseV1';
|
|
3
1
|
/**
|
|
4
2
|
* Generated by orval v7.10.0 🍺
|
|
5
3
|
* Do not edit manually.
|
|
6
4
|
* Webitel API
|
|
7
5
|
* OpenAPI spec version: 24.04.0
|
|
8
6
|
*/
|
|
7
|
+
import type { ApiCustomerLimit } from './apiCustomerLimit';
|
|
8
|
+
import type { ApiLicenseV1 } from './apiLicenseV1';
|
|
9
9
|
import type { ApiObjectId } from './apiObjectId';
|
|
10
10
|
import type { ApiVerification } from './apiVerification';
|
|
11
11
|
export interface ApiCustomer {
|