@webitel/api-services 0.0.25 → 0.0.28
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 +44 -27
- package/src/api/axios/generateInstance.ts +30 -25
- package/src/api/axios/index.ts +1 -1
- package/src/api/clients/_shared/generatePermissionsApi.ts +84 -83
- package/src/api/clients/agents/agentChats.ts +52 -57
- package/src/api/clients/agents/agents.ts +211 -212
- package/src/api/clients/buckets/buckets.ts +82 -83
- package/src/api/clients/calendars/calendars.ts +173 -178
- package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +96 -97
- package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +96 -101
- package/src/api/clients/casePriorities/casePriorities.ts +107 -108
- package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +162 -164
- package/src/api/clients/caseServices/services.ts +145 -146
- package/src/api/clients/caseSources/caseSources.ts +85 -94
- package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +133 -134
- package/src/api/clients/caseStatuses/caseStatuses.ts +91 -92
- package/src/api/clients/catalog/catalog.ts +24 -32
- package/src/api/clients/chatGateways/chatGateways.ts +237 -236
- package/src/api/clients/chatGateways/defaults/defaultChatGateway.ts +18 -16
- package/src/api/clients/chatGateways/defaults/webChatGateway.ts +71 -68
- package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.ts +9 -11
- package/src/api/clients/chatGateways/scripts/generateUri.ts +12 -8
- package/src/api/clients/communications/communications.ts +107 -107
- package/src/api/clients/configurations/configurations.ts +109 -110
- package/src/api/clients/contactGroups/contactGroups.ts +145 -147
- package/src/api/clients/flows/flow.ts +181 -186
- package/src/api/clients/gateways/defaults/defaultGateway.ts +5 -5
- package/src/api/clients/gateways/defaults/registerGateway.ts +6 -6
- package/src/api/clients/gateways/defaults/trunkingGateway.ts +10 -10
- package/src/api/clients/gateways/gateways.ts +144 -145
- package/src/api/clients/history/transcript/callTranscript.ts +79 -0
- package/src/api/clients/index.ts +34 -68
- package/src/api/clients/labels/labels.ts +42 -44
- package/src/api/clients/lists/blacklists.ts +88 -89
- package/src/api/clients/media/media.ts +80 -85
- package/src/api/clients/object/object.ts +91 -92
- package/src/api/clients/queues/defaults/processing.ts +9 -9
- package/src/api/clients/queues/queues.ts +191 -196
- package/src/api/clients/quickReplies/quickReplies.ts +81 -94
- package/src/api/clients/roles/roles.ts +161 -162
- package/src/api/clients/skills/skills.ts +82 -83
- package/src/api/clients/slaConditions/slaConditions.ts +135 -136
- package/src/api/clients/slas/slas.ts +86 -87
- package/src/api/clients/teams/teams.ts +112 -113
- package/src/api/clients/users/__tests__/users.spec.ts +226 -226
- package/src/api/clients/users/users.ts +188 -189
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +13 -13
- package/src/api/clients/wtTypes/index.ts +2 -0
- package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +50 -53
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +87 -94
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +76 -78
- package/src/api/clients//321/201ontacts/contacts.ts +291 -292
- package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +6 -8
- package/src/api/clients//321/201ontacts/index.ts +3 -5
- package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.ts +7 -5
- package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.ts +10 -5
- package/src/api/defaults/getDefaultInstance/getDefaultInstance.ts +18 -18
- package/src/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.ts +10 -8
- package/src/api/defaults/index.ts +4 -11
- package/src/api/index.ts +1 -1
- package/src/api/interceptors/index.ts +1 -1
- package/src/api/interceptors/request/index.ts +1 -1
- package/src/api/interceptors/request/updateToken.interceptor.ts +10 -9
- package/src/api/interceptors/response/handleUnauthorized.interceptor.ts +13 -11
- package/src/api/interceptors/response/index.ts +1 -1
- package/src/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.ts +9 -9
- package/src/api/transformers/applyTransform.ts +20 -13
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +2 -2
- package/src/api/transformers/generateUrl/generateUrl.transformer.ts +6 -6
- package/src/api/transformers/index.ts +13 -14
- package/src/api/transformers/log/log.transformer.ts +2 -2
- package/src/api/transformers/merge/merge.transformer.ts +3 -3
- package/src/api/transformers/mergeEach/mergeEach.transformer.ts +3 -3
- package/src/api/transformers/notify/notify.transformer.ts +25 -25
- package/src/api/transformers/sanitize/sanitize.transformer.ts +7 -7
- package/src/api/transformers/skipIf/skipIf.ts +10 -10
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +2 -2
- package/src/api/transformers/starToSearch/starToSearch.transformer.ts +8 -10
- package/src/config/config.ts +13 -0
- package/src/gen/_docs/.nojekyll +1 -0
- package/src/gen/_docs/html/assets/hierarchy.js +1 -1
- package/src/gen/_docs/html/assets/highlight.css +101 -76
- package/src/gen/_docs/html/assets/icons.js +20 -17
- package/src/gen/_docs/html/assets/main.js +2503 -6
- package/src/gen/_docs/html/assets/navigation.js +2 -1
- package/src/gen/_docs/html/assets/search.js +2 -1
- package/src/gen/_docs/html/assets/style.css +1623 -1634
- package/src/gen/_models/agentAbsenceServiceUpdateAgentAbsenceBodyItem.ts +2 -1
- package/src/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.ts +3 -2
- package/src/gen/_models/apiAccessStoreToggleDefaultAccessBody.ts +2 -1
- package/src/gen/_models/apiCustomer.ts +3 -2
- package/src/gen/_models/apiDevice.ts +2 -1
- package/src/gen/_models/apiLDAPCatalog.ts +5 -4
- package/src/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.ts +5 -4
- package/src/gen/_models/apiLDAProcess.ts +3 -2
- package/src/gen/_models/apiLicenseV1.ts +2 -1
- package/src/gen/_models/apiRole.ts +4 -3
- package/src/gen/_models/apiRolesUpdateRoleBodyRole.ts +4 -3
- package/src/gen/_models/apiUser.ts +2 -1
- package/src/gen/_models/apiUsersUpdateUserBodyUser.ts +2 -1
- package/src/gen/_models/contactsUpdateContactBody.ts +2 -1
- package/src/gen/_models/engineActiveCall.ts +3 -2
- package/src/gen/_models/engineAgent.ts +2 -1
- package/src/gen/_models/engineAgentInQueueStatistics.ts +2 -1
- package/src/gen/_models/engineAggregateHistoryCallRequest.ts +2 -1
- package/src/gen/_models/engineAttempt.ts +2 -1
- package/src/gen/_models/engineAttemptHistory.ts +2 -1
- package/src/gen/_models/engineAuditFormServicePatchAuditFormBody.ts +2 -1
- package/src/gen/_models/engineAuditFormServiceUpdateAuditFormBody.ts +2 -1
- package/src/gen/_models/engineAuditRate.ts +3 -2
- package/src/gen/_models/engineCreateAuditFormRequest.ts +2 -1
- package/src/gen/_models/engineCreateCallRequest.ts +2 -1
- package/src/gen/_models/engineCreateMemberBulkItem.ts +2 -1
- package/src/gen/_models/engineCreateOutboundResourceRequest.ts +3 -2
- package/src/gen/_models/engineCreateQueueRequest.ts +3 -2
- package/src/gen/_models/engineCreateRoutingSchemaRequest.ts +2 -1
- package/src/gen/_models/engineCreateTriggerRequest.ts +3 -2
- package/src/gen/_models/engineDeleteAllMembersRequest.ts +2 -1
- package/src/gen/_models/engineHistoryCall.ts +7 -6
- package/src/gen/_models/engineListReportGeneral.ts +2 -1
- package/src/gen/_models/engineOutboundResource.ts +2 -1
- package/src/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.ts +2 -1
- package/src/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.ts +2 -1
- package/src/gen/_models/engineQuestion.ts +2 -1
- package/src/gen/_models/engineQueue.ts +3 -2
- package/src/gen/_models/engineQueueReportGeneral.ts +2 -1
- package/src/gen/_models/engineQueueServicePatchQueueBody.ts +3 -2
- package/src/gen/_models/engineQueueServiceUpdateQueueBody.ts +3 -2
- package/src/gen/_models/engineRoutingSchema.ts +3 -2
- package/src/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.ts +2 -1
- package/src/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.ts +2 -1
- package/src/gen/_models/engineTeamHook.ts +2 -1
- package/src/gen/_models/engineTeamHookServiceCreateTeamHookBody.ts +2 -1
- package/src/gen/_models/engineTeamHookServicePatchTeamHookBody.ts +2 -1
- package/src/gen/_models/engineTeamHookServiceUpdateTeamHookBody.ts +2 -1
- package/src/gen/_models/engineTrigger.ts +2 -1
- package/src/gen/_models/engineTriggerJob.ts +2 -1
- package/src/gen/_models/engineTriggerServicePatchTriggerBody.ts +2 -1
- package/src/gen/_models/engineTriggerServiceUpdateTriggerBody.ts +2 -1
- package/src/gen/_models/index.ts +26 -26
- package/src/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.ts +2 -1
- package/src/gen/_models/storageCreateImportTemplateRequest.ts +2 -1
- package/src/gen/_models/storageFile.ts +3 -2
- package/src/gen/_models/storageFilePolicy.ts +2 -1
- package/src/gen/_models/storageImportTemplate.ts +3 -2
- package/src/gen/_models/storageSafeUploadFileResponseMetadata.ts +2 -1
- package/src/gen/_models/storageUpdateCognitiveProfileRequest.ts +3 -2
- package/src/gen/_models/storageUpdateImportTemplateRequest.ts +2 -1
- package/src/gen/_models/storageUploadFileResponse.ts +2 -1
- package/src/gen/_models/storageUploadFileUrlResponse.ts +2 -1
- package/src/gen/_models/updateRelatedCase2Body.ts +2 -1
- package/src/gen/_models/updateRelatedCaseBody.ts +2 -1
- package/src/gen/_models/updateRelatedCaseInputBody.ts +2 -1
- package/src/gen/_models/usersUpdateUser2Body.ts +2 -1
- package/src/gen/_models/usersUpdateUserBody.ts +2 -1
- package/src/gen/_models/usersUpdateUserUserBody.ts +2 -1
- package/src/gen/_models/webitelCasesCallEvent.ts +2 -1
- package/src/gen/_models/webitelCasesCase.ts +2 -1
- package/src/gen/_models/webitelCasesChatEvent.ts +2 -1
- package/src/gen/_models/webitelCasesEmailEvent.ts +2 -1
- package/src/gen/_models/webitelCasesInputCreateService.ts +2 -1
- package/src/gen/_models/webitelCasesInputService.ts +2 -1
- package/src/gen/_models/webitelCasesService.ts +2 -1
- package/src/gen/_models/webitelChatAgentChat.ts +2 -1
- package/src/gen/_models/webitelChatBroadcastMessageRequest.ts +2 -1
- package/src/gen/_models/webitelChatChatMessage.ts +3 -2
- package/src/gen/_models/webitelChatContactChat.ts +2 -1
- package/src/gen/_models/webitelChatDialog.ts +2 -1
- package/src/gen/_models/webitelChatGetContactChatHistoryResponse.ts +3 -2
- package/src/gen/_models/webitelContactsComment.ts +2 -1
- package/src/gen/_models/webitelProtoDataStruct.ts +2 -1
- package/src/gen/_models/wfmAbsence.ts +2 -1
- package/src/gen/_models/wfmAgentScheduleShift.ts +3 -2
- package/src/gen/_models/wfmAgentWorkingSchedule.ts +2 -1
- package/src/gen/_models/wfmPauseTemplate.ts +2 -1
- package/src/gen/_models/wfmSearchAgentsWorkingScheduleResponse.ts +2 -1
- package/src/gen/access-store/access-store.msw.api.gen.ts +1 -1
- package/src/gen/access-store/access-store.zod.gen.ts +2 -2
- package/src/gen/agent-absence-service/agent-absence-service.msw.api.gen.ts +2 -3
- package/src/gen/agent-chat-service/agent-chat-service.msw.api.gen.ts +2 -3
- package/src/gen/agent-pause-cause-service/agent-pause-cause-service.msw.api.gen.ts +1 -1
- package/src/gen/agent-service/agent-service.msw.api.gen.ts +1 -1
- package/src/gen/agent-skill-service/agent-skill-service.msw.api.gen.ts +1 -1
- package/src/gen/agent-team-service/agent-team-service.msw.api.gen.ts +1 -1
- package/src/gen/agent-working-conditions-service/agent-working-conditions-service.msw.api.gen.ts +1 -1
- package/src/gen/agent-working-schedule-service/agent-working-schedule-service.msw.api.gen.ts +2 -3
- package/src/gen/articles/articles.api.gen.ts +1 -1
- package/src/gen/articles/articles.msw.api.gen.ts +1 -1
- package/src/gen/audit-form-service/audit-form-service.msw.api.gen.ts +2 -3
- package/src/gen/auth/auth.msw.api.gen.ts +1 -1
- package/src/gen/auth/auth.zod.gen.ts +1 -1
- package/src/gen/backend-profile-service/backend-profile-service.msw.api.gen.ts +1 -1
- package/src/gen/bucket-service/bucket-service.msw.api.gen.ts +1 -1
- package/src/gen/calendar-service/calendar-service.msw.api.gen.ts +1 -1
- package/src/gen/call-service/call-service.msw.api.gen.ts +5 -6
- package/src/gen/call-service/call-service.zod.gen.ts +1 -1
- package/src/gen/case-comments/case-comments.msw.api.gen.ts +1 -1
- package/src/gen/case-communications/case-communications.msw.api.gen.ts +1 -1
- package/src/gen/case-files/case-files.msw.api.gen.ts +1 -1
- package/src/gen/case-links/case-links.msw.api.gen.ts +1 -1
- package/src/gen/case-timeline/case-timeline.msw.api.gen.ts +2 -3
- package/src/gen/cases/cases.msw.api.gen.ts +2 -3
- package/src/gen/cases-chat-catalog/cases-chat-catalog.msw.api.gen.ts +2 -3
- package/src/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.ts +1 -1
- package/src/gen/catalog/catalog.msw.api.gen.ts +2 -3
- package/src/gen/catalog/catalog.zod.gen.ts +3 -3
- package/src/gen/catalogs/catalogs.msw.api.gen.ts +1 -1
- package/src/gen/catalogs/catalogs.zod.gen.ts +4 -4
- package/src/gen/classes/classes.msw.api.gen.ts +1 -1
- package/src/gen/classes/classes.zod.gen.ts +1 -1
- package/src/gen/close-reason-groups/close-reason-groups.msw.api.gen.ts +1 -1
- package/src/gen/close-reasons/close-reasons.msw.api.gen.ts +1 -1
- package/src/gen/cognitive-profile-service/cognitive-profile-service.msw.api.gen.ts +2 -3
- package/src/gen/communication-type-service/communication-type-service.msw.api.gen.ts +2 -3
- package/src/gen/config-service/config-service.msw.api.gen.ts +1 -1
- package/src/gen/contact-groups/contact-groups.msw.api.gen.ts +1 -1
- package/src/gen/contact-linking-service/contact-linking-service.msw.api.gen.ts +1 -1
- package/src/gen/contacts/contacts.msw.api.gen.ts +1 -1
- package/src/gen/contacts/contacts.zod.gen.ts +2 -2
- package/src/gen/contacts-chat-catalog/contacts-chat-catalog.msw.api.gen.ts +2 -3
- package/src/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.ts +2 -2
- package/src/gen/customers/customers.msw.api.gen.ts +1 -1
- package/src/gen/customers/customers.zod.gen.ts +4 -4
- package/src/gen/devices/devices.msw.api.gen.ts +1 -1
- package/src/gen/devices/devices.zod.gen.ts +1 -1
- package/src/gen/dictionaries/dictionaries.msw.api.gen.ts +2 -3
- package/src/gen/dictionaries/dictionaries.zod.gen.ts +16 -16
- package/src/gen/domains/domains.msw.api.gen.ts +1 -1
- package/src/gen/dynamic-conditions/dynamic-conditions.msw.api.gen.ts +1 -1
- package/src/gen/dynamic-groups/dynamic-groups.msw.api.gen.ts +1 -1
- package/src/gen/email-profile-service/email-profile-service.msw.api.gen.ts +2 -3
- package/src/gen/emails/emails.msw.api.gen.ts +1 -1
- package/src/gen/extensions/extensions.msw.api.gen.ts +2 -3
- package/src/gen/extensions/extensions.zod.gen.ts +10 -10
- package/src/gen/file-policies-service/file-policies-service.msw.api.gen.ts +2 -3
- package/src/gen/file-service/file-service.msw.api.gen.ts +2 -3
- package/src/gen/file-transcript-service/file-transcript-service.msw.api.gen.ts +1 -1
- package/src/gen/forecast-calculation-service/forecast-calculation-service.msw.api.gen.ts +1 -1
- package/src/gen/ftsservice/ftsservice.msw.api.gen.ts +1 -1
- package/src/gen/groups/groups.msw.api.gen.ts +2 -3
- package/src/gen/imclients/imclients.msw.api.gen.ts +1 -1
- package/src/gen/import-template-service/import-template-service.msw.api.gen.ts +2 -3
- package/src/gen/index.ts +249 -249
- package/src/gen/knowledgebase-search/knowledgebase-search.msw.api.gen.ts +1 -1
- package/src/gen/labels/labels.msw.api.gen.ts +1 -1
- package/src/gen/ldap/ldap.api.gen.ts +4 -4
- package/src/gen/ldap/ldap.msw.api.gen.ts +3 -3
- package/src/gen/ldap/ldap.zod.gen.ts +6 -6
- package/src/gen/list-service/list-service.msw.api.gen.ts +1 -1
- package/src/gen/logger-service/logger-service.msw.api.gen.ts +1 -1
- package/src/gen/managers/managers.msw.api.gen.ts +1 -1
- package/src/gen/media-file-service/media-file-service.msw.api.gen.ts +1 -1
- package/src/gen/member-service/member-service.msw.api.gen.ts +1 -1
- package/src/gen/member-service/member-service.zod.gen.ts +1 -1
- package/src/gen/messages-service/messages-service.msw.api.gen.ts +1 -1
- package/src/gen/oauth2-federation/oauth2-federation.msw.api.gen.ts +1 -1
- package/src/gen/oauth2-federation/oauth2-federation.zod.gen.ts +2 -2
- package/src/gen/outbound-resource-group-service/outbound-resource-group-service.msw.api.gen.ts +1 -1
- package/src/gen/outbound-resource-service/outbound-resource-service.msw.api.gen.ts +1 -1
- package/src/gen/pause-template-service/pause-template-service.msw.api.gen.ts +1 -1
- package/src/gen/permissions/permissions.msw.api.gen.ts +1 -1
- package/src/gen/permissions/permissions.zod.gen.ts +1 -1
- package/src/gen/phones/phones.msw.api.gen.ts +1 -1
- package/src/gen/presence/presence.msw.api.gen.ts +1 -1
- package/src/gen/preset-query-service/preset-query-service.msw.api.gen.ts +1 -1
- package/src/gen/priorities/priorities.msw.api.gen.ts +1 -1
- package/src/gen/queue-bucket-service/queue-bucket-service.msw.api.gen.ts +1 -1
- package/src/gen/queue-hook-service/queue-hook-service.msw.api.gen.ts +1 -1
- package/src/gen/queue-resources-service/queue-resources-service.msw.api.gen.ts +1 -1
- package/src/gen/queue-service/queue-service.msw.api.gen.ts +1 -1
- package/src/gen/queue-skill-service/queue-skill-service.msw.api.gen.ts +1 -1
- package/src/gen/quick-replies-service/quick-replies-service.msw.api.gen.ts +1 -1
- package/src/gen/region-service/region-service.msw.api.gen.ts +1 -1
- package/src/gen/related-cases/related-cases.msw.api.gen.ts +2 -3
- package/src/gen/routing-chat-plan-service/routing-chat-plan-service.msw.api.gen.ts +1 -1
- package/src/gen/routing-outbound-call-service/routing-outbound-call-service.msw.api.gen.ts +1 -1
- package/src/gen/routing-schema-service/routing-schema-service.msw.api.gen.ts +2 -3
- package/src/gen/routing-variable-service/routing-variable-service.msw.api.gen.ts +1 -1
- package/src/gen/schema-variables-service/schema-variables-service.msw.api.gen.ts +1 -1
- package/src/gen/schema-version-service/schema-version-service.msw.api.gen.ts +1 -1
- package/src/gen/services/services.msw.api.gen.ts +1 -1
- package/src/gen/shift-template-service/shift-template-service.msw.api.gen.ts +1 -1
- package/src/gen/skill-service/skill-service.msw.api.gen.ts +1 -1
- package/src/gen/slaconditions/slaconditions.msw.api.gen.ts +1 -1
- package/src/gen/slas/slas.msw.api.gen.ts +1 -1
- package/src/gen/sources/sources.msw.api.gen.ts +2 -3
- package/src/gen/spaces/spaces.msw.api.gen.ts +1 -1
- package/src/gen/spaces/spaces.zod.gen.ts +1 -1
- package/src/gen/status-conditions/status-conditions.msw.api.gen.ts +1 -1
- package/src/gen/statuses/statuses.msw.api.gen.ts +1 -1
- package/src/gen/system-setting-service/system-setting-service.msw.api.gen.ts +2 -3
- package/src/gen/tags/tags.msw.api.gen.ts +1 -1
- package/src/gen/team-hook-service/team-hook-service.msw.api.gen.ts +2 -3
- package/src/gen/team-trigger-service/team-trigger-service.msw.api.gen.ts +1 -1
- package/src/gen/timeline/timeline.msw.api.gen.ts +2 -3
- package/src/gen/timezones/timezones.msw.api.gen.ts +1 -1
- package/src/gen/trigger-service/trigger-service.msw.api.gen.ts +7 -8
- package/src/gen/two-factor-authentication/two-factor-authentication.msw.api.gen.ts +1 -1
- package/src/gen/types/types.msw.api.gen.ts +2 -3
- package/src/gen/types/types.zod.gen.ts +4 -4
- package/src/gen/user-access-tokens/user-access-tokens.msw.api.gen.ts +1 -1
- package/src/gen/user-helper-service/user-helper-service.msw.api.gen.ts +1 -1
- package/src/gen/users/users.msw.api.gen.ts +1 -1
- package/src/gen/users/users.zod.gen.ts +12 -12
- package/src/gen/variables/variables.msw.api.gen.ts +1 -1
- package/src/gen/web-hook-service/web-hook-service.msw.api.gen.ts +1 -1
- package/src/gen/working-condition-service/working-condition-service.msw.api.gen.ts +1 -1
- package/src/gen/working-schedule-service/working-schedule-service.msw.api.gen.ts +2 -3
- package/src/index.ts +2 -2
- package/src/utils/api/caseConverters.ts +77 -0
- package/src/utils/api/index.ts +1 -0
- package/src/utils/gen/index.ts +54 -34
- package/src/utils/index.ts +1 -15
- package/src/validations/caseSource/caseSource.validations.ts +3 -5
- package/types/api/axios/generateInstance.d.ts +9 -2
- package/types/api/axios/index.d.ts +1 -1
- package/types/api/clients/agents/agentChats.d.ts +1 -2
- package/types/api/clients/agents/agents.d.ts +1 -2
- package/types/api/clients/buckets/buckets.d.ts +1 -2
- package/types/api/clients/calendars/calendars.d.ts +1 -2
- package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +1 -2
- package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +1 -2
- package/types/api/clients/casePriorities/casePriorities.d.ts +1 -2
- package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +1 -2
- package/types/api/clients/caseServices/services.d.ts +1 -2
- package/types/api/clients/caseSources/caseSources.d.ts +1 -2
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +3 -3
- package/types/api/clients/caseStatuses/caseStatuses.d.ts +1 -2
- package/types/api/clients/catalog/catalog.d.ts +1 -2
- package/types/api/clients/chatGateways/chatGateways.d.ts +4 -2
- package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +5 -2
- package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +6 -2
- package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +6 -2
- package/types/api/clients/chatGateways/scripts/generateUri.d.ts +5 -2
- package/types/api/clients/communications/communications.d.ts +1 -2
- package/types/api/clients/configurations/configurations.d.ts +1 -2
- package/types/api/clients/contactGroups/contactGroups.d.ts +1 -2
- package/types/api/clients/flows/flow.d.ts +1 -2
- package/types/api/clients/gateways/gateways.d.ts +1 -2
- package/types/api/clients/history/transcript/callTranscript.d.ts +11 -0
- package/types/api/clients/index.d.ts +31 -33
- package/types/api/clients/labels/labels.d.ts +1 -2
- package/types/api/clients/lists/blacklists.d.ts +1 -2
- package/types/api/clients/media/media.d.ts +1 -2
- package/types/api/clients/object/object.d.ts +1 -2
- package/types/api/clients/queues/queues.d.ts +1 -2
- package/types/api/clients/quickReplies/quickReplies.d.ts +1 -2
- package/types/api/clients/roles/roles.d.ts +1 -2
- package/types/api/clients/skills/skills.d.ts +1 -2
- package/types/api/clients/slaConditions/slaConditions.d.ts +1 -2
- package/types/api/clients/slas/slas.d.ts +1 -2
- package/types/api/clients/teams/teams.d.ts +1 -2
- package/types/api/clients/users/users.d.ts +1 -2
- package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +1 -1
- package/types/api/clients/wtTypes/index.d.ts +2 -0
- package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +1 -16
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -17
- package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +1 -2
- package/types/api/clients//321/201ontacts/contacts.d.ts +1 -2
- package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +1 -2
- package/types/api/clients//321/201ontacts/index.d.ts +3 -4
- package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +5 -2
- package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +8 -2
- package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +5 -3
- package/types/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.d.ts +5 -2
- package/types/api/defaults/index.d.ts +4 -5
- package/types/api/interceptors/request/index.d.ts +1 -1
- package/types/api/interceptors/request/updateToken.interceptor.d.ts +4 -2
- package/types/api/interceptors/response/handleUnauthorized.interceptor.d.ts +5 -2
- package/types/api/interceptors/response/index.d.ts +1 -1
- package/types/api/transformers/applyTransform.d.ts +10 -2
- package/types/api/transformers/index.d.ts +2 -3
- package/types/config/config.d.ts +7 -0
- package/types/gen/_models/casesCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCreateCaseCustom.d.ts +12 -0
- package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
- package/types/gen/_models/protobufNullValue.d.ts +18 -0
- package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
- 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/trigger-service/trigger-service.zod.gen.d.ts +9 -0
- package/types/index.d.ts +2 -2
- package/types/utils/api/caseConverters.d.ts +9 -0
- package/types/utils/api/index.d.ts +1 -0
- package/types/utils/index.d.ts +1 -7
- package/types/gen/_models/googleRpcStatus.d.ts +0 -12
- package/types/gen/_models/webitelCasesStatus.d.ts +0 -16
|
@@ -15,24 +15,24 @@ import type {
|
|
|
15
15
|
ApiLDAPDeleteLDAPTemplateBody,
|
|
16
16
|
ApiLDAPLDAPSearchBody,
|
|
17
17
|
ApiLDAPResyncLDAPCatalogBody,
|
|
18
|
+
ApiLDAProcess,
|
|
19
|
+
ApiLDAProcessResponse,
|
|
18
20
|
ApiLDAPSearchRequest,
|
|
19
21
|
ApiLDAPSearchResponse,
|
|
20
22
|
ApiLDAPTemplate,
|
|
21
23
|
ApiLDAPTemplateResponse,
|
|
22
24
|
ApiLDAPUpdateLDAPCatalogBody,
|
|
23
25
|
ApiLDAPUpdateLDAPTemplateBody,
|
|
24
|
-
ApiLDAProcess,
|
|
25
|
-
ApiLDAProcessResponse,
|
|
26
26
|
ApiSearchLDAPResponse,
|
|
27
27
|
LDAPDeleteLDAPCatalogParams,
|
|
28
28
|
LDAPLDAPSearch2Params,
|
|
29
29
|
LDAPLDAPSearch4Params,
|
|
30
30
|
LDAPLocateLDAPCatalogParams,
|
|
31
|
-
LDAPLocateLDAPTemplateParams,
|
|
32
31
|
LDAPLocateLDAProcessParams,
|
|
32
|
+
LDAPLocateLDAPTemplateParams,
|
|
33
33
|
LDAPSearchLDAPCatalogParams,
|
|
34
|
-
LDAPSearchLDAPTemplateParams,
|
|
35
34
|
LDAPSearchLDAProcessParams,
|
|
35
|
+
LDAPSearchLDAPTemplateParams,
|
|
36
36
|
} from '.././_models';
|
|
37
37
|
|
|
38
38
|
// --- header start
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
12
|
ApiLDAPCatalog,
|
|
13
|
+
ApiLDAProcess,
|
|
14
|
+
ApiLDAProcessResponse,
|
|
13
15
|
ApiLDAPSearchResponse,
|
|
14
16
|
ApiLDAPTemplate,
|
|
15
17
|
ApiLDAPTemplateResponse,
|
|
16
|
-
ApiLDAProcess,
|
|
17
|
-
ApiLDAProcessResponse,
|
|
18
18
|
ApiSearchLDAPResponse,
|
|
19
19
|
} from '.././_models';
|
|
20
20
|
|
|
@@ -164,7 +164,7 @@ export const lDAPSearchLDAPCatalogQueryParams = zod.object({
|
|
|
164
164
|
sort: zod
|
|
165
165
|
.array(zod.string())
|
|
166
166
|
.optional()
|
|
167
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
167
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
168
168
|
id: zod
|
|
169
169
|
.array(zod.string())
|
|
170
170
|
.optional()
|
|
@@ -1387,7 +1387,7 @@ export const lDAPSearchLDAProcessQueryParams = zod.object({
|
|
|
1387
1387
|
sort: zod
|
|
1388
1388
|
.array(zod.string())
|
|
1389
1389
|
.optional()
|
|
1390
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
1390
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
1391
1391
|
id: zod
|
|
1392
1392
|
.array(zod.string())
|
|
1393
1393
|
.optional()
|
|
@@ -1540,7 +1540,7 @@ export const lDAPLocateLDAProcessQueryParams = zod.object({
|
|
|
1540
1540
|
sort: zod
|
|
1541
1541
|
.array(zod.string())
|
|
1542
1542
|
.optional()
|
|
1543
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
1543
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
1544
1544
|
q: zod.string().optional().describe('OPTIONAL. Filter(s) SET'),
|
|
1545
1545
|
template: zod.string().optional(),
|
|
1546
1546
|
objclass: zod.array(zod.string()).optional(),
|
|
@@ -1796,7 +1796,7 @@ export const lDAPSearchLDAPTemplateQueryParams = zod.object({
|
|
|
1796
1796
|
sort: zod
|
|
1797
1797
|
.array(zod.string())
|
|
1798
1798
|
.optional()
|
|
1799
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
1799
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
1800
1800
|
id: zod
|
|
1801
1801
|
.array(zod.string())
|
|
1802
1802
|
.optional()
|
|
@@ -1939,7 +1939,7 @@ export const lDAPLocateLDAPTemplateQueryParams = zod.object({
|
|
|
1939
1939
|
sort: zod
|
|
1940
1940
|
.array(zod.string())
|
|
1941
1941
|
.optional()
|
|
1942
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
1942
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
1943
1943
|
q: zod.string().optional().describe('OPTIONAL. Filter(s) SET'),
|
|
1944
1944
|
name: zod.string().optional(),
|
|
1945
1945
|
baseDn: zod.string().optional(),
|
|
@@ -2152,7 +2152,7 @@ export const lDAPLocateLDAPCatalogQueryParams = zod.object({
|
|
|
2152
2152
|
sort: zod
|
|
2153
2153
|
.array(zod.string())
|
|
2154
2154
|
.optional()
|
|
2155
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
2155
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
2156
2156
|
q: zod.string().optional().describe('term-of-search: lookup[name]'),
|
|
2157
2157
|
name: zod
|
|
2158
2158
|
.string()
|
|
@@ -807,7 +807,7 @@ export const searchMemberInQueueQueryParams = zod.object({
|
|
|
807
807
|
.string()
|
|
808
808
|
.optional()
|
|
809
809
|
.describe(
|
|
810
|
-
'This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18',
|
|
810
|
+
'This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18',
|
|
811
811
|
),
|
|
812
812
|
});
|
|
813
813
|
|
|
@@ -23,7 +23,7 @@ export const oAuth2FederationSearchOAuthServiceQueryParams = zod.object({
|
|
|
23
23
|
sort: zod
|
|
24
24
|
.array(zod.string())
|
|
25
25
|
.optional()
|
|
26
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
26
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
27
27
|
id: zod
|
|
28
28
|
.array(zod.string())
|
|
29
29
|
.optional()
|
|
@@ -417,7 +417,7 @@ export const oAuth2FederationLocateOAuthServiceQueryParams = zod.object({
|
|
|
417
417
|
sort: zod
|
|
418
418
|
.array(zod.string())
|
|
419
419
|
.optional()
|
|
420
|
-
.describe('e.g.: "updated_at" - ASC; "!updated_at" - DESC;'),
|
|
420
|
+
.describe('e.g.: \"updated_at\" - ASC; \"!updated_at\" - DESC;'),
|
|
421
421
|
q: zod.string().optional().describe('term-of-search: lookup[name]'),
|
|
422
422
|
name: zod
|
|
423
423
|
.string()
|
|
@@ -17,7 +17,7 @@ export const permissionsGetPermissionsQueryParams = zod.object({
|
|
|
17
17
|
sort: zod
|
|
18
18
|
.array(zod.string())
|
|
19
19
|
.optional()
|
|
20
|
-
.describe('sort: "field" asc; "!field" desc'),
|
|
20
|
+
.describe('sort: \"field\" asc; \"!field\" desc'),
|
|
21
21
|
page: zod.number().optional().describe('page number'),
|
|
22
22
|
size: zod.number().optional().describe('page size'),
|
|
23
23
|
});
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { WebitelCasesRelationType } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type {
|
|
13
11
|
WebitelCasesRelatedCase,
|
|
14
12
|
WebitelCasesRelatedCaseList,
|
|
15
13
|
} from '.././_models';
|
|
14
|
+
import { WebitelCasesRelationType } from '.././_models';
|
|
16
15
|
|
|
17
16
|
export const getUpdateRelatedCase2ResponseMock = (
|
|
18
17
|
overrideResponse: Partial<WebitelCasesRelatedCase> = {},
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { EngineRoutingSchemaType } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type {
|
|
13
11
|
EngineListRoutingSchema,
|
|
14
12
|
EngineListRoutingSchemaTags,
|
|
15
13
|
EngineRoutingSchema,
|
|
16
14
|
} from '.././_models';
|
|
15
|
+
import { EngineRoutingSchemaType } from '.././_models';
|
|
17
16
|
|
|
18
17
|
export const getSearchRoutingSchemaResponseMock = (
|
|
19
18
|
overrideResponse: Partial<EngineListRoutingSchema> = {},
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { WebitelCasesSourceType } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type {
|
|
13
11
|
WebitelCasesLocateSourceResponse,
|
|
14
12
|
WebitelCasesSource,
|
|
15
13
|
WebitelCasesSourceList,
|
|
16
14
|
} from '.././_models';
|
|
15
|
+
import { WebitelCasesSourceType } from '.././_models';
|
|
17
16
|
|
|
18
17
|
export const getListSourcesResponseMock = (
|
|
19
18
|
overrideResponse: Partial<WebitelCasesSourceList> = {},
|
|
@@ -47,7 +47,7 @@ export const spacesListSpacesQueryParams = zod.object({
|
|
|
47
47
|
.array(zod.string().regex(spacesListSpacesQuerySortItemRegExp))
|
|
48
48
|
.optional()
|
|
49
49
|
.describe(
|
|
50
|
-
'Sort result dataset of records by fields.\n```\nsort ::= *( ORDER name )\n\nORDER = ASC / DESC\nDESC = "
|
|
50
|
+
'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- `state`',
|
|
51
51
|
),
|
|
52
52
|
fields: zod.array(zod.string()).optional(),
|
|
53
53
|
id: zod
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { EngineSystemSettingName } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type {
|
|
13
11
|
EngineListAvailableSystemSetting,
|
|
14
12
|
EngineListSystemSetting,
|
|
15
13
|
EngineSystemSetting,
|
|
16
14
|
} from '.././_models';
|
|
15
|
+
import { EngineSystemSettingName } from '.././_models';
|
|
17
16
|
|
|
18
17
|
export const getSearchSystemSettingResponseMock = (
|
|
19
18
|
overrideResponse: Partial<EngineListSystemSetting> = {},
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { EngineTeamHookEvent } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type { EngineListTeamHook, EngineTeamHook } from '.././_models';
|
|
11
|
+
import { EngineTeamHookEvent } from '.././_models';
|
|
13
12
|
|
|
14
13
|
export const getSearchTeamHookResponseMock = (
|
|
15
14
|
overrideResponse: Partial<EngineListTeamHook> = {},
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { WebitelContactsTimelineEventType } from '.././_models';
|
|
9
|
+
import { delay, HttpResponse, http } from 'msw';
|
|
12
10
|
import type {
|
|
13
11
|
WebitelContactsGetTimelineCounterResponse,
|
|
14
12
|
WebitelContactsGetTimelineResponse,
|
|
15
13
|
} from '.././_models';
|
|
14
|
+
import { WebitelContactsTimelineEventType } from '.././_models';
|
|
16
15
|
|
|
17
16
|
export const getTimelineGetTimelineResponseMock = (
|
|
18
17
|
overrideResponse: Partial<WebitelContactsGetTimelineResponse> = {},
|