@webitel/api-services 0.1.9 → 0.1.10
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/_models/addUserAccessTokenBody.ts +0 -6
- package/src/gen/_models/addUserAccessTokenBody.zod.ts +0 -6
- package/src/gen/_models/apiLicenseV1.ts +0 -1
- package/src/gen/_models/apiLicenseV1.zod.ts +0 -1
- package/src/gen/_models/contactsCallEvent.ts +5 -5
- package/src/gen/_models/contactsCallEvent.zod.ts +5 -5
- package/src/gen/_models/contactsChatEvent.ts +5 -5
- package/src/gen/_models/contactsChatEvent.zod.ts +5 -5
- package/src/gen/_models/contactsComment.ts +3 -3
- package/src/gen/_models/contactsComment.zod.ts +3 -3
- package/src/gen/_models/contactsCondition.ts +5 -5
- package/src/gen/_models/contactsCondition.zod.ts +5 -5
- package/src/gen/_models/contactsContactGroup.ts +4 -4
- package/src/gen/_models/contactsContactGroup.zod.ts +4 -4
- package/src/gen/_models/contactsContactList.ts +2 -2
- package/src/gen/_models/contactsContactList.zod.ts +2 -2
- package/src/gen/_models/contactsCreateDynamicGroupRequest.ts +2 -2
- package/src/gen/_models/contactsCreateDynamicGroupRequest.zod.ts +2 -2
- package/src/gen/_models/contactsDynamicCondition.ts +3 -3
- package/src/gen/_models/contactsDynamicCondition.zod.ts +3 -3
- package/src/gen/_models/contactsDynamicGroup.ts +4 -4
- package/src/gen/_models/contactsDynamicGroup.zod.ts +4 -4
- package/src/gen/_models/contactsDynamicGroupInput.ts +2 -2
- package/src/gen/_models/contactsDynamicGroupInput.zod.ts +2 -2
- package/src/gen/_models/contactsEmailAddress.ts +4 -4
- package/src/gen/_models/contactsEmailAddress.zod.ts +4 -4
- package/src/gen/_models/contactsEmailEvent.ts +5 -5
- package/src/gen/_models/contactsEmailEvent.zod.ts +5 -5
- package/src/gen/_models/contactsGroup.ts +4 -4
- package/src/gen/_models/contactsGroup.zod.ts +4 -4
- package/src/gen/_models/contactsIMClient.ts +5 -5
- package/src/gen/_models/contactsIMClient.zod.ts +5 -5
- package/src/gen/_models/contactsInputCondition.ts +2 -2
- package/src/gen/_models/contactsInputCondition.zod.ts +2 -2
- package/src/gen/_models/contactsInputContactGroup.ts +2 -2
- package/src/gen/_models/contactsInputContactGroup.zod.ts +2 -2
- package/src/gen/_models/contactsInputDynamicCondition.ts +3 -3
- package/src/gen/_models/contactsInputDynamicCondition.zod.ts +3 -3
- package/src/gen/_models/contactsInputEmailAddress.ts +2 -2
- package/src/gen/_models/contactsInputEmailAddress.zod.ts +2 -2
- package/src/gen/_models/contactsInputManager.ts +2 -2
- package/src/gen/_models/contactsInputManager.zod.ts +2 -2
- package/src/gen/_models/contactsInputPhoneNumber.ts +2 -2
- package/src/gen/_models/contactsInputPhoneNumber.zod.ts +2 -2
- package/src/gen/_models/contactsInputTimezone.ts +2 -2
- package/src/gen/_models/contactsInputTimezone.zod.ts +2 -2
- package/src/gen/_models/contactsLabelList.ts +2 -2
- package/src/gen/_models/contactsLabelList.zod.ts +2 -2
- package/src/gen/_models/contactsLabelTags.ts +2 -2
- package/src/gen/_models/contactsLabelTags.zod.ts +2 -2
- package/src/gen/_models/contactsLanguage.ts +3 -3
- package/src/gen/_models/contactsLanguage.zod.ts +3 -3
- package/src/gen/_models/contactsManager.ts +4 -4
- package/src/gen/_models/contactsManager.zod.ts +4 -4
- package/src/gen/_models/contactsPhoneNumber.ts +4 -4
- package/src/gen/_models/contactsPhoneNumber.zod.ts +4 -4
- package/src/gen/_models/contactsPhoto.ts +3 -3
- package/src/gen/_models/contactsPhoto.zod.ts +3 -3
- package/src/gen/_models/contactsTimezone.ts +4 -4
- package/src/gen/_models/contactsTimezone.zod.ts +4 -4
- package/src/gen/_models/contactsTranscriptLookup.ts +2 -2
- package/src/gen/_models/contactsTranscriptLookup.zod.ts +2 -2
- package/src/gen/_models/contactsVariable.ts +3 -3
- package/src/gen/_models/contactsVariable.zod.ts +3 -3
- package/src/gen/_models/dataDataset.ts +2 -2
- package/src/gen/_models/dataDataset.zod.ts +2 -2
- package/src/gen/_models/dataField.ts +2 -2
- package/src/gen/_models/dataField.zod.ts +2 -2
- package/src/gen/_models/dataStructList.ts +2 -2
- package/src/gen/_models/dataStructList.zod.ts +2 -2
- package/src/gen/_models/datatypeLookup.ts +5 -5
- package/src/gen/_models/datatypeLookup.zod.ts +5 -5
- package/src/gen/_models/datatypeLookupQuery.ts +1 -1
- package/src/gen/_models/datatypeLookupQuery.zod.ts +1 -1
- package/src/gen/_models/datatypeLookupViolation.ts +1 -1
- package/src/gen/_models/datatypeLookupViolation.zod.ts +1 -1
- package/src/gen/_models/dictionariesImportCSVBody.ts +3 -3
- package/src/gen/_models/dictionariesImportCSVBody.zod.ts +3 -3
- package/src/gen/_models/dynamicConditionsCreateConditionBody.ts +3 -3
- package/src/gen/_models/dynamicConditionsCreateConditionBody.zod.ts +3 -3
- package/src/gen/_models/engineAgentInQueue.ts +0 -14
- package/src/gen/_models/engineAgentInQueue.zod.ts +0 -14
- package/src/gen/_models/engineAgentInQueueAgentsInQueue.ts +0 -13
- package/src/gen/_models/engineAgentInQueueAgentsInQueue.zod.ts +0 -13
- package/src/gen/_models/engineCreateCallRequestCallSettings.ts +4 -0
- package/src/gen/_models/engineCreateCallRequestCallSettings.zod.ts +4 -0
- package/src/gen/_models/engineListAgentInQueue.ts +0 -6
- package/src/gen/_models/engineListAgentInQueue.zod.ts +0 -6
- package/src/gen/_models/engineQueueReportGeneralAgentStatus.ts +0 -1
- package/src/gen/_models/engineQueueReportGeneralAgentStatus.zod.ts +0 -1
- package/src/gen/_models/importCSVRequestaction.ts +3 -3
- package/src/gen/_models/importCSVRequestaction.zod.ts +3 -3
- package/src/gen/_models/index.ts +13 -71
- package/src/gen/_models/index.zod.ts +13 -71
- package/src/gen/_models/knowledgebaseArticle.ts +3 -3
- package/src/gen/_models/knowledgebaseArticle.zod.ts +3 -3
- package/src/gen/_models/knowledgebaseArticleVersion.ts +2 -2
- package/src/gen/_models/knowledgebaseArticleVersion.zod.ts +2 -2
- package/src/gen/_models/knowledgebaseAttachmentList.ts +2 -2
- package/src/gen/_models/knowledgebaseAttachmentList.zod.ts +2 -2
- package/src/gen/_models/knowledgebaseSpace.ts +4 -4
- package/src/gen/_models/knowledgebaseSpace.zod.ts +4 -4
- package/src/gen/_models/knowledgebaseTagsList.ts +2 -2
- package/src/gen/_models/knowledgebaseTagsList.zod.ts +2 -2
- package/src/gen/_models/protodataStruct.ts +3 -3
- package/src/gen/_models/protodataStruct.zod.ts +3 -3
- package/src/gen/_models/protodataStructIndexes.ts +1 -1
- package/src/gen/_models/protodataStructIndexes.zod.ts +1 -1
- package/src/gen/_models/searchAgentInQueueParams.ts +0 -17
- package/src/gen/_models/searchAgentInQueueParams.zod.ts +0 -17
- package/src/gen/_models/searchContactsParams.ts +0 -31
- package/src/gen/_models/searchContactsParams.zod.ts +0 -31
- package/src/gen/_models/setContactLanguage2Body.ts +0 -4
- package/src/gen/_models/setContactLanguage2Body.zod.ts +0 -4
- package/src/gen/_models/setContactLanguageBody.ts +0 -4
- package/src/gen/_models/setContactLanguageBody.zod.ts +0 -4
- package/src/gen/_models/setContactLanguageInputBody.ts +0 -4
- package/src/gen/_models/setContactLanguageInputBody.zod.ts +0 -4
- package/src/gen/_models/updateContactGroup2Body.ts +2 -2
- package/src/gen/_models/updateContactGroup2Body.zod.ts +2 -2
- package/src/gen/_models/updateContactGroupBody.ts +2 -2
- package/src/gen/_models/updateContactGroupBody.zod.ts +2 -2
- package/src/gen/_models/updateContactGroupInputBody.ts +2 -2
- package/src/gen/_models/updateContactGroupInputBody.zod.ts +2 -2
- package/src/gen/_models/updateEmail2Body.ts +2 -2
- package/src/gen/_models/updateEmail2Body.zod.ts +2 -2
- package/src/gen/_models/updateEmailBody.ts +2 -2
- package/src/gen/_models/updateEmailBody.zod.ts +2 -2
- package/src/gen/_models/updateEmailInputBody.ts +2 -2
- package/src/gen/_models/updateEmailInputBody.zod.ts +2 -2
- package/src/gen/_models/updateManager2Body.ts +2 -2
- package/src/gen/_models/updateManager2Body.zod.ts +2 -2
- package/src/gen/_models/updateManagerBody.ts +2 -2
- package/src/gen/_models/updateManagerBody.zod.ts +2 -2
- package/src/gen/_models/updateManagerInputBody.ts +2 -2
- package/src/gen/_models/updateManagerInputBody.zod.ts +2 -2
- package/src/gen/_models/updatePhone2Body.ts +2 -2
- package/src/gen/_models/updatePhone2Body.zod.ts +2 -2
- package/src/gen/_models/updatePhoneBody.ts +2 -2
- package/src/gen/_models/updatePhoneBody.zod.ts +2 -2
- package/src/gen/_models/updatePhoneInputBody.ts +2 -2
- package/src/gen/_models/updatePhoneInputBody.zod.ts +2 -2
- package/src/gen/_models/updateTimezone2Body.ts +2 -2
- package/src/gen/_models/updateTimezone2Body.zod.ts +2 -2
- package/src/gen/_models/updateTimezoneBody.ts +2 -2
- package/src/gen/_models/updateTimezoneBody.zod.ts +2 -2
- package/src/gen/_models/updateTimezoneInputBody.ts +2 -2
- package/src/gen/_models/updateTimezoneInputBody.zod.ts +2 -2
- package/src/gen/_models/webitelcontactsAttachment.ts +1 -1
- package/src/gen/_models/webitelcontactsAttachment.zod.ts +1 -1
- package/src/gen/_models/webitelcontactsContact.ts +6 -6
- package/src/gen/_models/webitelcontactsContact.zod.ts +6 -6
- package/src/gen/_models/webitelcontactsLabel.ts +4 -4
- package/src/gen/_models/webitelcontactsLabel.zod.ts +4 -4
- package/src/gen/_models/webitelcontactsLookup.ts +1 -1
- package/src/gen/_models/webitelcontactsLookup.zod.ts +1 -1
- package/src/gen/_models/webitelknowledgebaseAttachment.ts +3 -3
- package/src/gen/_models/webitelknowledgebaseAttachment.zod.ts +3 -3
- package/src/gen/_models/webitelknowledgebaseLookup.ts +1 -1
- package/src/gen/_models/webitelknowledgebaseLookup.zod.ts +1 -1
- package/src/gen/_models/webitelknowledgebaseTag.ts +1 -1
- package/src/gen/_models/webitelknowledgebaseTag.zod.ts +1 -1
- package/src/gen/agent-service/agent-service.msw.ts +0 -7
- package/src/gen/agent-service/agent-service.ts +0 -4
- package/src/gen/agent-service/agent-service.zod.ts +37 -111
- package/src/gen/call-service/call-service.ts +6 -54
- package/src/gen/call-service/call-service.zod.ts +8 -52
- package/src/gen/cases/cases.msw.ts +0 -96
- package/src/gen/cases/cases.ts +0 -19
- package/src/gen/cases/cases.zod.ts +0 -36
- package/src/gen/contacts/contacts.msw.ts +17 -175
- package/src/gen/contacts/contacts.ts +10 -32
- package/src/gen/contacts/contacts.zod.ts +0 -100
- package/src/gen/customers/customers.msw.ts +0 -54
- package/src/gen/customers/customers.zod.ts +0 -6
- package/src/gen/dictionaries/dictionaries.msw.ts +13 -13
- package/src/gen/dictionaries/dictionaries.ts +7 -7
- package/src/gen/extensions/extensions.msw.ts +13 -13
- package/src/gen/extensions/extensions.ts +7 -7
- package/src/gen/index.ts +0 -10
- package/src/gen/languages/languages.zod.ts +18 -26
- package/src/gen/queue-service/queue-service.msw.ts +0 -14
- package/src/gen/queue-service/queue-service.zod.ts +0 -2
- package/src/gen/types/types.msw.ts +5 -5
- package/src/gen/types/types.ts +3 -3
- package/src/gen/user-access-tokens/user-access-tokens.zod.ts +31 -35
- package/types/gen/_models/addUserAccessTokenBody.d.ts +0 -6
- package/types/gen/_models/addUserAccessTokenBody.zod.d.ts +0 -6
- package/types/gen/_models/apiLicenseV1.d.ts +0 -1
- package/types/gen/_models/apiLicenseV1.zod.d.ts +0 -1
- package/types/gen/_models/contactsCallEvent.d.ts +5 -5
- package/types/gen/_models/contactsCallEvent.zod.d.ts +5 -5
- package/types/gen/_models/contactsChatEvent.d.ts +5 -5
- package/types/gen/_models/contactsChatEvent.zod.d.ts +5 -5
- package/types/gen/_models/contactsComment.d.ts +3 -3
- package/types/gen/_models/contactsComment.zod.d.ts +3 -3
- package/types/gen/_models/contactsCondition.d.ts +5 -5
- package/types/gen/_models/contactsCondition.zod.d.ts +5 -5
- package/types/gen/_models/contactsContactGroup.d.ts +4 -4
- package/types/gen/_models/contactsContactGroup.zod.d.ts +4 -4
- package/types/gen/_models/contactsContactList.d.ts +2 -2
- package/types/gen/_models/contactsContactList.zod.d.ts +2 -2
- package/types/gen/_models/contactsCreateDynamicGroupRequest.d.ts +2 -2
- package/types/gen/_models/contactsCreateDynamicGroupRequest.zod.d.ts +2 -2
- package/types/gen/_models/contactsDynamicCondition.d.ts +3 -3
- package/types/gen/_models/contactsDynamicCondition.zod.d.ts +3 -3
- package/types/gen/_models/contactsDynamicGroup.d.ts +4 -4
- package/types/gen/_models/contactsDynamicGroup.zod.d.ts +4 -4
- package/types/gen/_models/contactsDynamicGroupInput.d.ts +2 -2
- package/types/gen/_models/contactsDynamicGroupInput.zod.d.ts +2 -2
- package/types/gen/_models/contactsEmailAddress.d.ts +4 -4
- package/types/gen/_models/contactsEmailAddress.zod.d.ts +4 -4
- package/types/gen/_models/contactsEmailEvent.d.ts +5 -5
- package/types/gen/_models/contactsEmailEvent.zod.d.ts +5 -5
- package/types/gen/_models/contactsGroup.d.ts +4 -4
- package/types/gen/_models/contactsGroup.zod.d.ts +4 -4
- package/types/gen/_models/contactsIMClient.d.ts +5 -5
- package/types/gen/_models/contactsIMClient.zod.d.ts +5 -5
- package/types/gen/_models/contactsInputCondition.d.ts +2 -2
- package/types/gen/_models/contactsInputCondition.zod.d.ts +2 -2
- package/types/gen/_models/contactsInputContactGroup.d.ts +2 -2
- package/types/gen/_models/contactsInputContactGroup.zod.d.ts +2 -2
- package/types/gen/_models/contactsInputDynamicCondition.d.ts +3 -3
- package/types/gen/_models/contactsInputDynamicCondition.zod.d.ts +3 -3
- package/types/gen/_models/contactsInputEmailAddress.d.ts +2 -2
- package/types/gen/_models/contactsInputEmailAddress.zod.d.ts +2 -2
- package/types/gen/_models/contactsInputManager.d.ts +2 -2
- package/types/gen/_models/contactsInputManager.zod.d.ts +2 -2
- package/types/gen/_models/contactsInputPhoneNumber.d.ts +2 -2
- package/types/gen/_models/contactsInputPhoneNumber.zod.d.ts +2 -2
- package/types/gen/_models/contactsInputTimezone.d.ts +2 -2
- package/types/gen/_models/contactsInputTimezone.zod.d.ts +2 -2
- package/types/gen/_models/contactsLabelList.d.ts +2 -2
- package/types/gen/_models/contactsLabelList.zod.d.ts +2 -2
- package/types/gen/_models/contactsLabelTags.d.ts +2 -2
- package/types/gen/_models/contactsLabelTags.zod.d.ts +2 -2
- package/types/gen/_models/contactsLanguage.d.ts +3 -3
- package/types/gen/_models/contactsLanguage.zod.d.ts +3 -3
- package/types/gen/_models/contactsManager.d.ts +4 -4
- package/types/gen/_models/contactsManager.zod.d.ts +4 -4
- package/types/gen/_models/contactsPhoneNumber.d.ts +4 -4
- package/types/gen/_models/contactsPhoneNumber.zod.d.ts +4 -4
- package/types/gen/_models/contactsPhoto.d.ts +3 -3
- package/types/gen/_models/contactsPhoto.zod.d.ts +3 -3
- package/types/gen/_models/contactsTimezone.d.ts +4 -4
- package/types/gen/_models/contactsTimezone.zod.d.ts +4 -4
- package/types/gen/_models/contactsTranscriptLookup.d.ts +2 -2
- package/types/gen/_models/contactsTranscriptLookup.zod.d.ts +2 -2
- package/types/gen/_models/contactsVariable.d.ts +3 -3
- package/types/gen/_models/contactsVariable.zod.d.ts +3 -3
- package/types/gen/_models/dataDataset.d.ts +2 -2
- package/types/gen/_models/dataDataset.zod.d.ts +2 -2
- package/types/gen/_models/dataField.d.ts +2 -2
- package/types/gen/_models/dataField.zod.d.ts +2 -2
- package/types/gen/_models/dataStructList.d.ts +2 -2
- package/types/gen/_models/dataStructList.zod.d.ts +2 -2
- package/types/gen/_models/datatypeLookup.d.ts +5 -5
- package/types/gen/_models/datatypeLookup.zod.d.ts +5 -5
- package/types/gen/_models/datatypeLookupQuery.d.ts +1 -1
- package/types/gen/_models/datatypeLookupQuery.zod.d.ts +1 -1
- package/types/gen/_models/datatypeLookupViolation.d.ts +1 -1
- package/types/gen/_models/datatypeLookupViolation.zod.d.ts +1 -1
- package/types/gen/_models/dictionariesImportCSVBody.d.ts +3 -3
- package/types/gen/_models/dictionariesImportCSVBody.zod.d.ts +3 -3
- package/types/gen/_models/dynamicConditionsCreateConditionBody.d.ts +3 -3
- package/types/gen/_models/dynamicConditionsCreateConditionBody.zod.d.ts +3 -3
- package/types/gen/_models/engineAgentInQueue.d.ts +0 -14
- package/types/gen/_models/engineAgentInQueue.zod.d.ts +0 -14
- package/types/gen/_models/engineAgentInQueueAgentsInQueue.d.ts +0 -13
- package/types/gen/_models/engineAgentInQueueAgentsInQueue.zod.d.ts +0 -13
- package/types/gen/_models/engineCreateCallRequestCallSettings.d.ts +4 -0
- package/types/gen/_models/engineCreateCallRequestCallSettings.zod.d.ts +4 -0
- package/types/gen/_models/engineListAgentInQueue.d.ts +0 -6
- package/types/gen/_models/engineListAgentInQueue.zod.d.ts +0 -6
- package/types/gen/_models/engineQueueReportGeneralAgentStatus.d.ts +0 -1
- package/types/gen/_models/engineQueueReportGeneralAgentStatus.zod.d.ts +0 -1
- package/types/gen/_models/importCSVRequestaction.d.ts +2 -2
- package/types/gen/_models/importCSVRequestaction.zod.d.ts +2 -2
- package/types/gen/_models/index.zod.d.ts +19 -77
- package/types/gen/_models/knowledgebaseArticle.d.ts +3 -3
- package/types/gen/_models/knowledgebaseArticle.zod.d.ts +3 -3
- package/types/gen/_models/knowledgebaseArticleVersion.d.ts +2 -2
- package/types/gen/_models/knowledgebaseArticleVersion.zod.d.ts +2 -2
- package/types/gen/_models/knowledgebaseAttachmentList.d.ts +2 -2
- package/types/gen/_models/knowledgebaseAttachmentList.zod.d.ts +2 -2
- package/types/gen/_models/knowledgebaseSpace.d.ts +4 -4
- package/types/gen/_models/knowledgebaseSpace.zod.d.ts +4 -4
- package/types/gen/_models/knowledgebaseTagsList.d.ts +2 -2
- package/types/gen/_models/knowledgebaseTagsList.zod.d.ts +2 -2
- package/types/gen/_models/protodataStruct.d.ts +3 -3
- package/types/gen/_models/protodataStruct.zod.d.ts +3 -3
- package/types/gen/_models/protodataStructIndexes.d.ts +1 -1
- package/types/gen/_models/protodataStructIndexes.zod.d.ts +1 -1
- package/types/gen/_models/searchAgentInQueueParams.d.ts +0 -17
- package/types/gen/_models/searchAgentInQueueParams.zod.d.ts +0 -17
- package/types/gen/_models/searchContactsParams.d.ts +0 -30
- package/types/gen/_models/searchContactsParams.zod.d.ts +0 -30
- package/types/gen/_models/setContactLanguage2Body.d.ts +0 -4
- package/types/gen/_models/setContactLanguage2Body.zod.d.ts +0 -4
- package/types/gen/_models/setContactLanguageBody.d.ts +0 -4
- package/types/gen/_models/setContactLanguageBody.zod.d.ts +0 -4
- package/types/gen/_models/setContactLanguageInputBody.d.ts +0 -4
- package/types/gen/_models/setContactLanguageInputBody.zod.d.ts +0 -4
- package/types/gen/_models/updateContactGroup2Body.d.ts +2 -2
- package/types/gen/_models/updateContactGroup2Body.zod.d.ts +2 -2
- package/types/gen/_models/updateContactGroupBody.d.ts +2 -2
- package/types/gen/_models/updateContactGroupBody.zod.d.ts +2 -2
- package/types/gen/_models/updateContactGroupInputBody.d.ts +2 -2
- package/types/gen/_models/updateContactGroupInputBody.zod.d.ts +2 -2
- package/types/gen/_models/updateEmail2Body.d.ts +2 -2
- package/types/gen/_models/updateEmail2Body.zod.d.ts +2 -2
- package/types/gen/_models/updateEmailBody.d.ts +2 -2
- package/types/gen/_models/updateEmailBody.zod.d.ts +2 -2
- package/types/gen/_models/updateEmailInputBody.d.ts +2 -2
- package/types/gen/_models/updateEmailInputBody.zod.d.ts +2 -2
- package/types/gen/_models/updateManager2Body.d.ts +2 -2
- package/types/gen/_models/updateManager2Body.zod.d.ts +2 -2
- package/types/gen/_models/updateManagerBody.d.ts +2 -2
- package/types/gen/_models/updateManagerBody.zod.d.ts +2 -2
- package/types/gen/_models/updateManagerInputBody.d.ts +2 -2
- package/types/gen/_models/updateManagerInputBody.zod.d.ts +2 -2
- package/types/gen/_models/updatePhone2Body.d.ts +2 -2
- package/types/gen/_models/updatePhone2Body.zod.d.ts +2 -2
- package/types/gen/_models/updatePhoneBody.d.ts +2 -2
- package/types/gen/_models/updatePhoneBody.zod.d.ts +2 -2
- package/types/gen/_models/updatePhoneInputBody.d.ts +2 -2
- package/types/gen/_models/updatePhoneInputBody.zod.d.ts +2 -2
- package/types/gen/_models/updateTimezone2Body.d.ts +2 -2
- package/types/gen/_models/updateTimezone2Body.zod.d.ts +2 -2
- package/types/gen/_models/updateTimezoneBody.d.ts +2 -2
- package/types/gen/_models/updateTimezoneBody.zod.d.ts +2 -2
- package/types/gen/_models/updateTimezoneInputBody.d.ts +2 -2
- package/types/gen/_models/updateTimezoneInputBody.zod.d.ts +2 -2
- package/types/gen/_models/webitelcontactsAttachment.d.ts +1 -1
- package/types/gen/_models/webitelcontactsAttachment.zod.d.ts +1 -1
- package/types/gen/_models/webitelcontactsContact.d.ts +6 -6
- package/types/gen/_models/webitelcontactsContact.zod.d.ts +6 -6
- package/types/gen/_models/webitelcontactsLabel.d.ts +4 -4
- package/types/gen/_models/webitelcontactsLabel.zod.d.ts +4 -4
- package/types/gen/_models/webitelcontactsLookup.d.ts +1 -1
- package/types/gen/_models/webitelcontactsLookup.zod.d.ts +1 -1
- package/types/gen/_models/webitelknowledgebaseAttachment.d.ts +3 -3
- package/types/gen/_models/webitelknowledgebaseAttachment.zod.d.ts +3 -3
- package/types/gen/_models/webitelknowledgebaseLookup.d.ts +1 -1
- package/types/gen/_models/webitelknowledgebaseLookup.zod.d.ts +1 -1
- package/types/gen/_models/webitelknowledgebaseTag.d.ts +1 -1
- package/types/gen/_models/webitelknowledgebaseTag.zod.d.ts +1 -1
- package/types/gen/access-store/access-store.msw.d.ts +1 -1
- package/types/gen/account/account.msw.d.ts +1 -1
- package/types/gen/agent-absence-service/agent-absence-service.msw.d.ts +1 -1
- package/types/gen/agent-chat-service/agent-chat-service.msw.d.ts +1 -1
- package/types/gen/agent-pause-cause-service/agent-pause-cause-service.msw.d.ts +1 -1
- package/types/gen/agent-service/agent-service.msw.d.ts +1 -1
- package/types/gen/agent-service/agent-service.zod.d.ts +0 -5
- package/types/gen/agent-skill-service/agent-skill-service.msw.d.ts +1 -1
- package/types/gen/agent-team-service/agent-team-service.msw.d.ts +1 -1
- package/types/gen/agent-working-conditions-service/agent-working-conditions-service.msw.d.ts +1 -1
- package/types/gen/agent-working-schedule-service/agent-working-schedule-service.msw.d.ts +1 -1
- package/types/gen/articles/articles.d.ts +1 -1
- package/types/gen/articles/articles.msw.d.ts +1 -1
- package/types/gen/audit-form-service/audit-form-service.msw.d.ts +1 -1
- package/types/gen/auth/auth.msw.d.ts +1 -1
- package/types/gen/backend-profile-service/backend-profile-service.msw.d.ts +1 -1
- package/types/gen/bots/bots.msw.d.ts +1 -1
- package/types/gen/bucket-service/bucket-service.msw.d.ts +1 -1
- package/types/gen/calendar-service/calendar-service.msw.d.ts +1 -1
- package/types/gen/call-service/call-service.msw.d.ts +1 -1
- package/types/gen/call-service/call-service.zod.d.ts +8 -52
- package/types/gen/case-comments/case-comments.msw.d.ts +1 -1
- package/types/gen/case-communications/case-communications.msw.d.ts +1 -1
- package/types/gen/case-files/case-files.msw.d.ts +1 -1
- package/types/gen/case-links/case-links.msw.d.ts +1 -1
- package/types/gen/case-timeline/case-timeline.msw.d.ts +1 -1
- package/types/gen/cases/cases.d.ts +1 -3
- package/types/gen/cases/cases.msw.d.ts +2 -4
- package/types/gen/cases/cases.zod.d.ts +0 -26
- package/types/gen/cases-chat-catalog/cases-chat-catalog.msw.d.ts +1 -1
- package/types/gen/catalogs/catalogs.msw.d.ts +1 -1
- package/types/gen/classes/classes.msw.d.ts +1 -1
- package/types/gen/close-reason-groups/close-reason-groups.msw.d.ts +1 -1
- package/types/gen/close-reasons/close-reasons.msw.d.ts +1 -1
- package/types/gen/cognitive-profile-service/cognitive-profile-service.msw.d.ts +1 -1
- package/types/gen/comments/comments.msw.d.ts +1 -1
- package/types/gen/communication-type-service/communication-type-service.msw.d.ts +1 -1
- package/types/gen/config-service/config-service.msw.d.ts +1 -1
- package/types/gen/contact-groups/contact-groups.msw.d.ts +1 -1
- package/types/gen/contact-linking-service/contact-linking-service.msw.d.ts +1 -1
- package/types/gen/contacts/contacts.d.ts +10 -11
- package/types/gen/contacts/contacts.msw.d.ts +10 -12
- package/types/gen/contacts/contacts.zod.d.ts +0 -28
- package/types/gen/contacts-chat-catalog/contacts-chat-catalog.msw.d.ts +1 -1
- package/types/gen/customers/customers.msw.d.ts +1 -1
- package/types/gen/customers/customers.zod.d.ts +0 -6
- package/types/gen/devices/devices.msw.d.ts +1 -1
- package/types/gen/dictionaries/dictionaries.d.ts +7 -7
- package/types/gen/dictionaries/dictionaries.msw.d.ts +8 -8
- package/types/gen/domains/domains.msw.d.ts +1 -1
- package/types/gen/dynamic-conditions/dynamic-conditions.msw.d.ts +1 -1
- package/types/gen/dynamic-groups/dynamic-groups.msw.d.ts +1 -1
- package/types/gen/email-profile-service/email-profile-service.msw.d.ts +1 -1
- package/types/gen/emails/emails.msw.d.ts +1 -1
- package/types/gen/extensions/extensions.d.ts +7 -7
- package/types/gen/extensions/extensions.msw.d.ts +7 -7
- package/types/gen/feedback-service/feedback-service.msw.d.ts +1 -1
- package/types/gen/file-policies-service/file-policies-service.msw.d.ts +1 -1
- package/types/gen/file-service/file-service.msw.d.ts +1 -1
- package/types/gen/file-transcript-service/file-transcript-service.msw.d.ts +1 -1
- package/types/gen/forecast-calculation-service/forecast-calculation-service.msw.d.ts +1 -1
- package/types/gen/ftsservice/ftsservice.msw.d.ts +1 -1
- package/types/gen/groups/groups.msw.d.ts +1 -1
- package/types/gen/imclients/imclients.msw.d.ts +1 -1
- package/types/gen/import-template-service/import-template-service.msw.d.ts +1 -1
- package/types/gen/knowledgebase-search/knowledgebase-search.msw.d.ts +1 -1
- package/types/gen/labels/labels.msw.d.ts +1 -1
- package/types/gen/languages/languages.msw.d.ts +1 -1
- package/types/gen/ldap/ldap.d.ts +1 -1
- package/types/gen/ldap/ldap.msw.d.ts +2 -2
- package/types/gen/list-service/list-service.msw.d.ts +1 -1
- package/types/gen/logger-service/logger-service.msw.d.ts +1 -1
- package/types/gen/managers/managers.msw.d.ts +1 -1
- package/types/gen/media-file-service/media-file-service.msw.d.ts +1 -1
- package/types/gen/meeting-service/meeting-service.msw.d.ts +1 -1
- package/types/gen/member-service/member-service.msw.d.ts +1 -1
- package/types/gen/message/message.msw.d.ts +1 -1
- package/types/gen/message-history/message-history.msw.d.ts +1 -1
- package/types/gen/messages/messages.msw.d.ts +1 -1
- package/types/gen/oauth2-federation/oauth2-federation.msw.d.ts +1 -1
- package/types/gen/outbound-resource-group-service/outbound-resource-group-service.msw.d.ts +1 -1
- package/types/gen/outbound-resource-service/outbound-resource-service.msw.d.ts +1 -1
- package/types/gen/pause-template-service/pause-template-service.msw.d.ts +1 -1
- package/types/gen/pdf-service/pdf-service.msw.d.ts +1 -1
- package/types/gen/permissions/permissions.msw.d.ts +1 -1
- package/types/gen/phones/phones.msw.d.ts +1 -1
- package/types/gen/photos/photos.msw.d.ts +1 -1
- package/types/gen/presence/presence.msw.d.ts +1 -1
- package/types/gen/preset-query-service/preset-query-service.msw.d.ts +1 -1
- package/types/gen/priorities/priorities.msw.d.ts +1 -1
- package/types/gen/queue-bucket-service/queue-bucket-service.msw.d.ts +1 -1
- package/types/gen/queue-hook-service/queue-hook-service.msw.d.ts +1 -1
- package/types/gen/queue-resources-service/queue-resources-service.msw.d.ts +1 -1
- package/types/gen/queue-service/queue-service.msw.d.ts +1 -1
- package/types/gen/queue-service/queue-service.zod.d.ts +0 -2
- package/types/gen/queue-skill-service/queue-skill-service.msw.d.ts +1 -1
- package/types/gen/quick-replies-service/quick-replies-service.msw.d.ts +1 -1
- package/types/gen/records/records.d.ts +1 -1
- package/types/gen/records/records.msw.d.ts +1 -1
- package/types/gen/region-service/region-service.msw.d.ts +1 -1
- package/types/gen/related-cases/related-cases.msw.d.ts +1 -1
- package/types/gen/routing-chat-plan-service/routing-chat-plan-service.msw.d.ts +1 -1
- package/types/gen/routing-outbound-call-service/routing-outbound-call-service.msw.d.ts +1 -1
- package/types/gen/routing-schema-service/routing-schema-service.msw.d.ts +1 -1
- package/types/gen/routing-variable-service/routing-variable-service.msw.d.ts +1 -1
- package/types/gen/schema-variables-service/schema-variables-service.msw.d.ts +1 -1
- package/types/gen/schema-version-service/schema-version-service.msw.d.ts +1 -1
- package/types/gen/services/services.msw.d.ts +1 -1
- package/types/gen/shift-template-service/shift-template-service.msw.d.ts +1 -1
- package/types/gen/skill-service/skill-service.msw.d.ts +1 -1
- package/types/gen/slaconditions/slaconditions.msw.d.ts +1 -1
- package/types/gen/slas/slas.msw.d.ts +1 -1
- package/types/gen/sources/sources.msw.d.ts +1 -1
- package/types/gen/spaces/spaces.msw.d.ts +1 -1
- package/types/gen/status-conditions/status-conditions.msw.d.ts +1 -1
- package/types/gen/statuses/statuses.msw.d.ts +1 -1
- package/types/gen/system-setting-service/system-setting-service.msw.d.ts +1 -1
- package/types/gen/tags/tags.msw.d.ts +1 -1
- package/types/gen/team-hook-service/team-hook-service.msw.d.ts +1 -1
- package/types/gen/team-trigger-service/team-trigger-service.msw.d.ts +1 -1
- package/types/gen/thread-management/thread-management.msw.d.ts +1 -1
- package/types/gen/timeline/timeline.msw.d.ts +1 -1
- package/types/gen/timezones/timezones.msw.d.ts +1 -1
- package/types/gen/trigger-service/trigger-service.msw.d.ts +1 -1
- package/types/gen/two-factor-authentication/two-factor-authentication.msw.d.ts +1 -1
- package/types/gen/types/types.d.ts +3 -3
- package/types/gen/types/types.msw.d.ts +3 -3
- package/types/gen/user-access-tokens/user-access-tokens.msw.d.ts +1 -1
- package/types/gen/user-helper-service/user-helper-service.msw.d.ts +1 -1
- package/types/gen/users/users.msw.d.ts +1 -1
- package/types/gen/variables/variables.msw.d.ts +1 -1
- package/types/gen/web-hook-service/web-hook-service.msw.d.ts +1 -1
- package/types/gen/working-condition-service/working-condition-service.msw.d.ts +1 -1
- package/types/gen/working-schedule-service/working-schedule-service.msw.d.ts +1 -1
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as zod from 'zod';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @summary CreateCall initiates a new outbound call with specified parameters.
|
|
11
|
-
*/
|
|
12
9
|
export const CreateCallBody = zod.object({
|
|
13
10
|
destination: zod.string().optional(),
|
|
14
11
|
domainId: zod.string().optional(),
|
|
@@ -22,6 +19,7 @@ export const CreateCallBody = zod.object({
|
|
|
22
19
|
.optional(),
|
|
23
20
|
params: zod
|
|
24
21
|
.object({
|
|
22
|
+
audio: zod.boolean().optional(),
|
|
25
23
|
cancelDistribute: zod.boolean().optional(),
|
|
26
24
|
contactId: zod.string().optional(),
|
|
27
25
|
disableAutoAnswer: zod.boolean().optional(),
|
|
@@ -29,8 +27,11 @@ export const CreateCallBody = zod.object({
|
|
|
29
27
|
display: zod.string().optional(),
|
|
30
28
|
hideNumber: zod.boolean().optional(),
|
|
31
29
|
isOnline: zod.boolean().optional(),
|
|
30
|
+
record: zod.boolean().optional(),
|
|
31
|
+
screen: zod.boolean().optional(),
|
|
32
32
|
timeout: zod.number().optional(),
|
|
33
33
|
variables: zod.record(zod.string(), zod.string()).optional(),
|
|
34
|
+
video: zod.boolean().optional(),
|
|
34
35
|
})
|
|
35
36
|
.optional(),
|
|
36
37
|
to: zod
|
|
@@ -47,9 +48,6 @@ export const CreateCallResponse = zod.object({
|
|
|
47
48
|
id: zod.string().optional(),
|
|
48
49
|
});
|
|
49
50
|
|
|
50
|
-
/**
|
|
51
|
-
* @summary SearchActiveCall returns a list of all calls currently in progress.
|
|
52
|
-
*/
|
|
53
51
|
export const SearchActiveCallQueryParams = zod.object({
|
|
54
52
|
page: zod.number().optional(),
|
|
55
53
|
size: zod.number().optional(),
|
|
@@ -179,9 +177,6 @@ export const SearchActiveCallResponse = zod.object({
|
|
|
179
177
|
next: zod.boolean().optional(),
|
|
180
178
|
});
|
|
181
179
|
|
|
182
|
-
/**
|
|
183
|
-
* @summary HangupCall terminates an active call session.
|
|
184
|
-
*/
|
|
185
180
|
export const HangupCallParams = zod.object({
|
|
186
181
|
id: zod.string(),
|
|
187
182
|
});
|
|
@@ -195,7 +190,7 @@ export const HangupCallBody = zod.object({
|
|
|
195
190
|
export const HangupCallResponse = zod.object({});
|
|
196
191
|
|
|
197
192
|
/**
|
|
198
|
-
* @summary
|
|
193
|
+
* @summary Call item
|
|
199
194
|
*/
|
|
200
195
|
export const ReadCallParams = zod.object({
|
|
201
196
|
id: zod.string(),
|
|
@@ -296,7 +291,7 @@ export const ReadCallResponse = zod.object({
|
|
|
296
291
|
});
|
|
297
292
|
|
|
298
293
|
/**
|
|
299
|
-
* @summary
|
|
294
|
+
* @summary Call item
|
|
300
295
|
*/
|
|
301
296
|
export const ConfirmPushParams = zod.object({
|
|
302
297
|
id: zod.string(),
|
|
@@ -304,9 +299,6 @@ export const ConfirmPushParams = zod.object({
|
|
|
304
299
|
|
|
305
300
|
export const ConfirmPushResponse = zod.object({});
|
|
306
301
|
|
|
307
|
-
/**
|
|
308
|
-
* @summary DtmfCall sends DTMF digits to an active call.
|
|
309
|
-
*/
|
|
310
302
|
export const DtmfCallParams = zod.object({
|
|
311
303
|
id: zod.string(),
|
|
312
304
|
});
|
|
@@ -319,9 +311,6 @@ export const DtmfCallBody = zod.object({
|
|
|
319
311
|
|
|
320
312
|
export const DtmfCallResponse = zod.object({});
|
|
321
313
|
|
|
322
|
-
/**
|
|
323
|
-
* @summary EavesdropCall allows a supervisor to listen, whisper, or join an active call.
|
|
324
|
-
*/
|
|
325
314
|
export const EavesdropCallParams = zod.object({
|
|
326
315
|
id: zod.string(),
|
|
327
316
|
});
|
|
@@ -347,9 +336,6 @@ export const EavesdropCallResponse = zod.object({
|
|
|
347
336
|
id: zod.string().optional(),
|
|
348
337
|
});
|
|
349
338
|
|
|
350
|
-
/**
|
|
351
|
-
* @summary HoldCall puts an active call on hold.
|
|
352
|
-
*/
|
|
353
339
|
export const HoldCallParams = zod.object({
|
|
354
340
|
id: zod.string(),
|
|
355
341
|
});
|
|
@@ -363,9 +349,6 @@ export const HoldCallResponse = zod.object({
|
|
|
363
349
|
state: zod.string().optional(),
|
|
364
350
|
});
|
|
365
351
|
|
|
366
|
-
/**
|
|
367
|
-
* @summary BlindTransferCall redirects an active call to another destination.
|
|
368
|
-
*/
|
|
369
352
|
export const BlindTransferCallParams = zod.object({
|
|
370
353
|
id: zod.string(),
|
|
371
354
|
});
|
|
@@ -378,9 +361,6 @@ export const BlindTransferCallBody = zod.object({
|
|
|
378
361
|
|
|
379
362
|
export const BlindTransferCallResponse = zod.object({});
|
|
380
363
|
|
|
381
|
-
/**
|
|
382
|
-
* @summary UnHoldCall resumes a call from hold state.
|
|
383
|
-
*/
|
|
384
364
|
export const UnHoldCallParams = zod.object({
|
|
385
365
|
id: zod.string(),
|
|
386
366
|
});
|
|
@@ -394,9 +374,6 @@ export const UnHoldCallResponse = zod.object({
|
|
|
394
374
|
state: zod.string().optional(),
|
|
395
375
|
});
|
|
396
376
|
|
|
397
|
-
/**
|
|
398
|
-
* @summary SetVariablesCall updates call channel variables in real-time.
|
|
399
|
-
*/
|
|
400
377
|
export const SetVariablesCallParams = zod.object({
|
|
401
378
|
id: zod.string(),
|
|
402
379
|
});
|
|
@@ -408,8 +385,7 @@ export const SetVariablesCallBody = zod.object({
|
|
|
408
385
|
export const SetVariablesCallResponse = zod.object({});
|
|
409
386
|
|
|
410
387
|
/**
|
|
411
|
-
* @summary
|
|
412
|
-
Supports advanced filtering by participants, duration, causes, and custom variables.
|
|
388
|
+
* @summary List of call
|
|
413
389
|
*/
|
|
414
390
|
export const SearchHistoryCallQueryParams = zod.object({
|
|
415
391
|
page: zod.number().optional(),
|
|
@@ -756,8 +732,7 @@ export const SearchHistoryCallResponse = zod.object({
|
|
|
756
732
|
});
|
|
757
733
|
|
|
758
734
|
/**
|
|
759
|
-
* @summary
|
|
760
|
-
Ideal for large filter sets that exceed URL length limits.
|
|
735
|
+
* @summary List of call
|
|
761
736
|
*/
|
|
762
737
|
export const SearchHistoryCallPostBody = zod.object({
|
|
763
738
|
tags: zod.array(zod.string()).optional(),
|
|
@@ -1126,10 +1101,6 @@ export const SearchHistoryCallPostResponse = zod.object({
|
|
|
1126
1101
|
next: zod.boolean().optional(),
|
|
1127
1102
|
});
|
|
1128
1103
|
|
|
1129
|
-
/**
|
|
1130
|
-
* @summary AggregateHistoryCall performs statistical analysis on historical data.
|
|
1131
|
-
Group and aggregate metrics like average duration, call counts, or peak hours.
|
|
1132
|
-
*/
|
|
1133
1104
|
export const AggregateHistoryCallBody = zod.object({
|
|
1134
1105
|
tags: zod.array(zod.string()).optional(),
|
|
1135
1106
|
agentDescription: zod.string().optional(),
|
|
@@ -1222,9 +1193,6 @@ export const AggregateHistoryCallResponse = zod.object({
|
|
|
1222
1193
|
.optional(),
|
|
1223
1194
|
});
|
|
1224
1195
|
|
|
1225
|
-
/**
|
|
1226
|
-
* @summary CreateCallAnnotation adds a text note to a specific timeframe of a historical call.
|
|
1227
|
-
*/
|
|
1228
1196
|
export const CreateCallAnnotationParams = zod.object({
|
|
1229
1197
|
call_id: zod.string(),
|
|
1230
1198
|
});
|
|
@@ -1257,9 +1225,6 @@ export const CreateCallAnnotationResponse = zod.object({
|
|
|
1257
1225
|
.optional(),
|
|
1258
1226
|
});
|
|
1259
1227
|
|
|
1260
|
-
/**
|
|
1261
|
-
* @summary DeleteCallAnnotation removes an annotation from a historical call.
|
|
1262
|
-
*/
|
|
1263
1228
|
export const DeleteCallAnnotationParams = zod.object({
|
|
1264
1229
|
call_id: zod.string(),
|
|
1265
1230
|
id: zod.string(),
|
|
@@ -1287,9 +1252,6 @@ export const DeleteCallAnnotationResponse = zod.object({
|
|
|
1287
1252
|
.optional(),
|
|
1288
1253
|
});
|
|
1289
1254
|
|
|
1290
|
-
/**
|
|
1291
|
-
* @summary UpdateCallAnnotation modifies an existing call note.
|
|
1292
|
-
*/
|
|
1293
1255
|
export const UpdateCallAnnotationParams = zod.object({
|
|
1294
1256
|
call_id: zod.string(),
|
|
1295
1257
|
id: zod.string(),
|
|
@@ -1323,9 +1285,6 @@ export const UpdateCallAnnotationResponse = zod.object({
|
|
|
1323
1285
|
.optional(),
|
|
1324
1286
|
});
|
|
1325
1287
|
|
|
1326
|
-
/**
|
|
1327
|
-
* @summary RedialCall quickly initiates a new call using data from a previous history record.
|
|
1328
|
-
*/
|
|
1329
1288
|
export const RedialCallParams = zod.object({
|
|
1330
1289
|
call_id: zod.string(),
|
|
1331
1290
|
});
|
|
@@ -1336,9 +1295,6 @@ export const RedialCallResponse = zod.object({
|
|
|
1336
1295
|
id: zod.string().optional(),
|
|
1337
1296
|
});
|
|
1338
1297
|
|
|
1339
|
-
/**
|
|
1340
|
-
* @summary PatchHistoryCall updates metadata for a completed call (e.g., variables or visibility).
|
|
1341
|
-
*/
|
|
1342
1298
|
export const PatchHistoryCallParams = zod.object({
|
|
1343
1299
|
id: zod.string(),
|
|
1344
1300
|
});
|
|
@@ -8,7 +8,6 @@ import { faker } from '@faker-js/faker';
|
|
|
8
8
|
import type { RequestHandlerOptions } from 'msw';
|
|
9
9
|
import { HttpResponse, http } from 'msw';
|
|
10
10
|
import type {
|
|
11
|
-
ExportCases200,
|
|
12
11
|
WebitelCasesCase,
|
|
13
12
|
WebitelCasesCaseList,
|
|
14
13
|
WebitelCasesUpdateCaseResponse,
|
|
@@ -3351,69 +3350,6 @@ export const getCreateCaseResponseMock = (
|
|
|
3351
3350
|
...overrideResponse,
|
|
3352
3351
|
});
|
|
3353
3352
|
|
|
3354
|
-
export const getExportCasesResponseMock = (
|
|
3355
|
-
overrideResponse: Partial<ExportCases200> = {},
|
|
3356
|
-
): ExportCases200 => ({
|
|
3357
|
-
error: faker.helpers.arrayElement([
|
|
3358
|
-
{
|
|
3359
|
-
code: faker.helpers.arrayElement([
|
|
3360
|
-
faker.number.int({
|
|
3361
|
-
min: undefined,
|
|
3362
|
-
max: undefined,
|
|
3363
|
-
}),
|
|
3364
|
-
undefined,
|
|
3365
|
-
]),
|
|
3366
|
-
details: faker.helpers.arrayElement([
|
|
3367
|
-
Array.from(
|
|
3368
|
-
{
|
|
3369
|
-
length: faker.number.int({
|
|
3370
|
-
min: 1,
|
|
3371
|
-
max: 10,
|
|
3372
|
-
}),
|
|
3373
|
-
},
|
|
3374
|
-
(_, i) => i + 1,
|
|
3375
|
-
).map(() => ({
|
|
3376
|
-
'@type': faker.helpers.arrayElement([
|
|
3377
|
-
faker.string.alpha({
|
|
3378
|
-
length: {
|
|
3379
|
-
min: 10,
|
|
3380
|
-
max: 20,
|
|
3381
|
-
},
|
|
3382
|
-
}),
|
|
3383
|
-
undefined,
|
|
3384
|
-
]),
|
|
3385
|
-
})),
|
|
3386
|
-
undefined,
|
|
3387
|
-
]),
|
|
3388
|
-
message: faker.helpers.arrayElement([
|
|
3389
|
-
faker.string.alpha({
|
|
3390
|
-
length: {
|
|
3391
|
-
min: 10,
|
|
3392
|
-
max: 20,
|
|
3393
|
-
},
|
|
3394
|
-
}),
|
|
3395
|
-
undefined,
|
|
3396
|
-
]),
|
|
3397
|
-
},
|
|
3398
|
-
undefined,
|
|
3399
|
-
]),
|
|
3400
|
-
result: faker.helpers.arrayElement([
|
|
3401
|
-
{
|
|
3402
|
-
data: faker.helpers.arrayElement([
|
|
3403
|
-
faker.string.alpha({
|
|
3404
|
-
length: {
|
|
3405
|
-
min: 10,
|
|
3406
|
-
max: 20,
|
|
3407
|
-
},
|
|
3408
|
-
}),
|
|
3409
|
-
undefined,
|
|
3410
|
-
]),
|
|
3411
|
-
},
|
|
3412
|
-
undefined,
|
|
3413
|
-
]),
|
|
3414
|
-
...overrideResponse,
|
|
3415
|
-
});
|
|
3416
|
-
|
|
3417
3353
|
export const getDeleteCaseResponseMock = (
|
|
3418
3354
|
overrideResponse: Partial<WebitelCasesCase> = {},
|
|
3419
3355
|
): WebitelCasesCase => ({
|
|
@@ -11848,37 +11784,6 @@ export const getCreateCaseMockHandler = (
|
|
|
11848
11784
|
);
|
|
11849
11785
|
};
|
|
11850
11786
|
|
|
11851
|
-
export const getExportCasesMockHandler = (
|
|
11852
|
-
overrideResponse?:
|
|
11853
|
-
| ExportCases200
|
|
11854
|
-
| ((
|
|
11855
|
-
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
11856
|
-
) => Promise<ExportCases200> | ExportCases200),
|
|
11857
|
-
options?: RequestHandlerOptions,
|
|
11858
|
-
) => {
|
|
11859
|
-
return http.get(
|
|
11860
|
-
'*/cases/export',
|
|
11861
|
-
async (info) => {
|
|
11862
|
-
return new HttpResponse(
|
|
11863
|
-
JSON.stringify(
|
|
11864
|
-
overrideResponse !== undefined
|
|
11865
|
-
? typeof overrideResponse === 'function'
|
|
11866
|
-
? await overrideResponse(info)
|
|
11867
|
-
: overrideResponse
|
|
11868
|
-
: getExportCasesResponseMock(),
|
|
11869
|
-
),
|
|
11870
|
-
{
|
|
11871
|
-
status: 200,
|
|
11872
|
-
headers: {
|
|
11873
|
-
'Content-Type': 'application/json',
|
|
11874
|
-
},
|
|
11875
|
-
},
|
|
11876
|
-
);
|
|
11877
|
-
},
|
|
11878
|
-
options,
|
|
11879
|
-
);
|
|
11880
|
-
};
|
|
11881
|
-
|
|
11882
11787
|
export const getDeleteCaseMockHandler = (
|
|
11883
11788
|
overrideResponse?:
|
|
11884
11789
|
| WebitelCasesCase
|
|
@@ -12040,7 +11945,6 @@ export const getSearchCases2MockHandler = (
|
|
|
12040
11945
|
export const getCasesMock = () => [
|
|
12041
11946
|
getSearchCasesMockHandler(),
|
|
12042
11947
|
getCreateCaseMockHandler(),
|
|
12043
|
-
getExportCasesMockHandler(),
|
|
12044
11948
|
getDeleteCaseMockHandler(),
|
|
12045
11949
|
getLocateCaseMockHandler(),
|
|
12046
11950
|
getUpdateCase2MockHandler(),
|
package/src/gen/cases/cases.ts
CHANGED
|
@@ -11,8 +11,6 @@ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
11
11
|
import type {
|
|
12
12
|
CreateCaseParams,
|
|
13
13
|
DeleteCaseParams,
|
|
14
|
-
ExportCases200,
|
|
15
|
-
ExportCasesParams,
|
|
16
14
|
LocateCaseParams,
|
|
17
15
|
SearchCases2Params,
|
|
18
16
|
SearchCasesParams,
|
|
@@ -65,21 +63,6 @@ export const // --- title start
|
|
|
65
63
|
},
|
|
66
64
|
});
|
|
67
65
|
};
|
|
68
|
-
/**
|
|
69
|
-
* @summary RPC method for exporting cases to CSV or XLSX format (server-side streaming).
|
|
70
|
-
*/
|
|
71
|
-
const exportCases = <TData = AxiosResponse<ExportCases200>>(
|
|
72
|
-
params?: ExportCasesParams,
|
|
73
|
-
options?: AxiosRequestConfig,
|
|
74
|
-
): Promise<TData> => {
|
|
75
|
-
return axiosInstance.get(`/cases/export`, {
|
|
76
|
-
...options,
|
|
77
|
-
params: {
|
|
78
|
-
...params,
|
|
79
|
-
...options?.params,
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
66
|
/**
|
|
84
67
|
* @summary RPC method for deleting an existing case by its etag.
|
|
85
68
|
*/
|
|
@@ -169,7 +152,6 @@ export const // --- title start
|
|
|
169
152
|
return {
|
|
170
153
|
searchCases,
|
|
171
154
|
createCase,
|
|
172
|
-
exportCases,
|
|
173
155
|
deleteCase,
|
|
174
156
|
locateCase,
|
|
175
157
|
updateCase2,
|
|
@@ -179,7 +161,6 @@ export const // --- title start
|
|
|
179
161
|
};
|
|
180
162
|
export type SearchCasesResult = AxiosResponse<WebitelCasesCaseList>;
|
|
181
163
|
export type CreateCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
182
|
-
export type ExportCasesResult = AxiosResponse<ExportCases200>;
|
|
183
164
|
export type DeleteCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
184
165
|
export type LocateCaseResult = AxiosResponse<WebitelCasesCase>;
|
|
185
166
|
export type UpdateCase2Result = AxiosResponse<WebitelCasesUpdateCaseResponse>;
|
|
@@ -1223,42 +1223,6 @@ export const CreateCaseResponse = zod
|
|
|
1223
1223
|
})
|
|
1224
1224
|
.describe('Message representing a case.');
|
|
1225
1225
|
|
|
1226
|
-
/**
|
|
1227
|
-
* @summary RPC method for exporting cases to CSV or XLSX format (server-side streaming).
|
|
1228
|
-
*/
|
|
1229
|
-
export const ExportCasesQueryParams = zod.object({
|
|
1230
|
-
q: zod.string().optional(),
|
|
1231
|
-
ids: zod.array(zod.string()).optional(),
|
|
1232
|
-
sort: zod.string().optional(),
|
|
1233
|
-
fields: zod.array(zod.string()).optional(),
|
|
1234
|
-
filters: zod.array(zod.string()).optional(),
|
|
1235
|
-
contactId: zod.string().optional(),
|
|
1236
|
-
qin: zod.string().optional(),
|
|
1237
|
-
filtersV1: zod.string().optional(),
|
|
1238
|
-
format: zod.string().optional(),
|
|
1239
|
-
});
|
|
1240
|
-
|
|
1241
|
-
export const ExportCasesResponse = zod.object({
|
|
1242
|
-
error: zod
|
|
1243
|
-
.object({
|
|
1244
|
-
code: zod.number().optional(),
|
|
1245
|
-
details: zod
|
|
1246
|
-
.array(
|
|
1247
|
-
zod.object({
|
|
1248
|
-
'@type': zod.string().optional(),
|
|
1249
|
-
}),
|
|
1250
|
-
)
|
|
1251
|
-
.optional(),
|
|
1252
|
-
message: zod.string().optional(),
|
|
1253
|
-
})
|
|
1254
|
-
.optional(),
|
|
1255
|
-
result: zod
|
|
1256
|
-
.object({
|
|
1257
|
-
data: zod.string().optional(),
|
|
1258
|
-
})
|
|
1259
|
-
.optional(),
|
|
1260
|
-
});
|
|
1261
|
-
|
|
1262
1226
|
/**
|
|
1263
1227
|
* @summary RPC method for deleting an existing case by its etag.
|
|
1264
1228
|
*/
|
|
@@ -8,11 +8,7 @@ import { faker } from '@faker-js/faker';
|
|
|
8
8
|
import type { RequestHandlerOptions } from 'msw';
|
|
9
9
|
import { HttpResponse, http } from 'msw';
|
|
10
10
|
|
|
11
|
-
import type {
|
|
12
|
-
ContactsContactList,
|
|
13
|
-
WebitelContactsContact,
|
|
14
|
-
WebitelImApiGatewayV1ContactList,
|
|
15
|
-
} from '.././_models';
|
|
11
|
+
import type { ContactsContactList, WebitelcontactsContact } from '.././_models';
|
|
16
12
|
|
|
17
13
|
export const getSearchContactsResponseMock = (
|
|
18
14
|
overrideResponse: Partial<ContactsContactList> = {},
|
|
@@ -2254,8 +2250,8 @@ export const getSearchContactsResponseMock = (
|
|
|
2254
2250
|
});
|
|
2255
2251
|
|
|
2256
2252
|
export const getCreateContactResponseMock = (
|
|
2257
|
-
overrideResponse: Partial<
|
|
2258
|
-
):
|
|
2253
|
+
overrideResponse: Partial<WebitelcontactsContact> = {},
|
|
2254
|
+
): WebitelcontactsContact => ({
|
|
2259
2255
|
about: faker.helpers.arrayElement([
|
|
2260
2256
|
faker.string.alpha({
|
|
2261
2257
|
length: {
|
|
@@ -4469,8 +4465,8 @@ export const getCreateContactResponseMock = (
|
|
|
4469
4465
|
});
|
|
4470
4466
|
|
|
4471
4467
|
export const getDeleteContactResponseMock = (
|
|
4472
|
-
overrideResponse: Partial<
|
|
4473
|
-
):
|
|
4468
|
+
overrideResponse: Partial<WebitelcontactsContact> = {},
|
|
4469
|
+
): WebitelcontactsContact => ({
|
|
4474
4470
|
about: faker.helpers.arrayElement([
|
|
4475
4471
|
faker.string.alpha({
|
|
4476
4472
|
length: {
|
|
@@ -6684,8 +6680,8 @@ export const getDeleteContactResponseMock = (
|
|
|
6684
6680
|
});
|
|
6685
6681
|
|
|
6686
6682
|
export const getLocateContactResponseMock = (
|
|
6687
|
-
overrideResponse: Partial<
|
|
6688
|
-
):
|
|
6683
|
+
overrideResponse: Partial<WebitelcontactsContact> = {},
|
|
6684
|
+
): WebitelcontactsContact => ({
|
|
6689
6685
|
about: faker.helpers.arrayElement([
|
|
6690
6686
|
faker.string.alpha({
|
|
6691
6687
|
length: {
|
|
@@ -8899,8 +8895,8 @@ export const getLocateContactResponseMock = (
|
|
|
8899
8895
|
});
|
|
8900
8896
|
|
|
8901
8897
|
export const getUpdateContactResponseMock = (
|
|
8902
|
-
overrideResponse: Partial<
|
|
8903
|
-
):
|
|
8898
|
+
overrideResponse: Partial<WebitelcontactsContact> = {},
|
|
8899
|
+
): WebitelcontactsContact => ({
|
|
8904
8900
|
about: faker.helpers.arrayElement([
|
|
8905
8901
|
faker.string.alpha({
|
|
8906
8902
|
length: {
|
|
@@ -11113,126 +11109,6 @@ export const getUpdateContactResponseMock = (
|
|
|
11113
11109
|
...overrideResponse,
|
|
11114
11110
|
});
|
|
11115
11111
|
|
|
11116
|
-
export const getSearchContactsResponseMock = (
|
|
11117
|
-
overrideResponse: Partial<WebitelImApiGatewayV1ContactList> = {},
|
|
11118
|
-
): WebitelImApiGatewayV1ContactList => ({
|
|
11119
|
-
items: faker.helpers.arrayElement([
|
|
11120
|
-
Array.from(
|
|
11121
|
-
{
|
|
11122
|
-
length: faker.number.int({
|
|
11123
|
-
min: 1,
|
|
11124
|
-
max: 10,
|
|
11125
|
-
}),
|
|
11126
|
-
},
|
|
11127
|
-
(_, i) => i + 1,
|
|
11128
|
-
).map(() => ({
|
|
11129
|
-
appId: faker.helpers.arrayElement([
|
|
11130
|
-
faker.string.alpha({
|
|
11131
|
-
length: {
|
|
11132
|
-
min: 10,
|
|
11133
|
-
max: 20,
|
|
11134
|
-
},
|
|
11135
|
-
}),
|
|
11136
|
-
undefined,
|
|
11137
|
-
]),
|
|
11138
|
-
createdAt: faker.helpers.arrayElement([
|
|
11139
|
-
faker.string.alpha({
|
|
11140
|
-
length: {
|
|
11141
|
-
min: 10,
|
|
11142
|
-
max: 20,
|
|
11143
|
-
},
|
|
11144
|
-
}),
|
|
11145
|
-
undefined,
|
|
11146
|
-
]),
|
|
11147
|
-
issId: faker.helpers.arrayElement([
|
|
11148
|
-
faker.string.alpha({
|
|
11149
|
-
length: {
|
|
11150
|
-
min: 10,
|
|
11151
|
-
max: 20,
|
|
11152
|
-
},
|
|
11153
|
-
}),
|
|
11154
|
-
undefined,
|
|
11155
|
-
]),
|
|
11156
|
-
metadata: faker.helpers.arrayElement([
|
|
11157
|
-
{
|
|
11158
|
-
[faker.string.alphanumeric(5)]: faker.string.alpha({
|
|
11159
|
-
length: {
|
|
11160
|
-
min: 10,
|
|
11161
|
-
max: 20,
|
|
11162
|
-
},
|
|
11163
|
-
}),
|
|
11164
|
-
},
|
|
11165
|
-
undefined,
|
|
11166
|
-
]),
|
|
11167
|
-
name: faker.helpers.arrayElement([
|
|
11168
|
-
faker.string.alpha({
|
|
11169
|
-
length: {
|
|
11170
|
-
min: 10,
|
|
11171
|
-
max: 20,
|
|
11172
|
-
},
|
|
11173
|
-
}),
|
|
11174
|
-
undefined,
|
|
11175
|
-
]),
|
|
11176
|
-
subject: faker.helpers.arrayElement([
|
|
11177
|
-
faker.string.alpha({
|
|
11178
|
-
length: {
|
|
11179
|
-
min: 10,
|
|
11180
|
-
max: 20,
|
|
11181
|
-
},
|
|
11182
|
-
}),
|
|
11183
|
-
undefined,
|
|
11184
|
-
]),
|
|
11185
|
-
type: faker.helpers.arrayElement([
|
|
11186
|
-
faker.string.alpha({
|
|
11187
|
-
length: {
|
|
11188
|
-
min: 10,
|
|
11189
|
-
max: 20,
|
|
11190
|
-
},
|
|
11191
|
-
}),
|
|
11192
|
-
undefined,
|
|
11193
|
-
]),
|
|
11194
|
-
updatedAt: faker.helpers.arrayElement([
|
|
11195
|
-
faker.string.alpha({
|
|
11196
|
-
length: {
|
|
11197
|
-
min: 10,
|
|
11198
|
-
max: 20,
|
|
11199
|
-
},
|
|
11200
|
-
}),
|
|
11201
|
-
undefined,
|
|
11202
|
-
]),
|
|
11203
|
-
username: faker.helpers.arrayElement([
|
|
11204
|
-
faker.string.alpha({
|
|
11205
|
-
length: {
|
|
11206
|
-
min: 10,
|
|
11207
|
-
max: 20,
|
|
11208
|
-
},
|
|
11209
|
-
}),
|
|
11210
|
-
undefined,
|
|
11211
|
-
]),
|
|
11212
|
-
})),
|
|
11213
|
-
undefined,
|
|
11214
|
-
]),
|
|
11215
|
-
next: faker.helpers.arrayElement([
|
|
11216
|
-
faker.datatype.boolean(),
|
|
11217
|
-
undefined,
|
|
11218
|
-
]),
|
|
11219
|
-
page: faker.helpers.arrayElement([
|
|
11220
|
-
faker.number.int({
|
|
11221
|
-
min: undefined,
|
|
11222
|
-
max: undefined,
|
|
11223
|
-
}),
|
|
11224
|
-
undefined,
|
|
11225
|
-
]),
|
|
11226
|
-
size: faker.helpers.arrayElement([
|
|
11227
|
-
faker.number.int({
|
|
11228
|
-
min: undefined,
|
|
11229
|
-
max: undefined,
|
|
11230
|
-
}),
|
|
11231
|
-
undefined,
|
|
11232
|
-
]),
|
|
11233
|
-
...overrideResponse,
|
|
11234
|
-
});
|
|
11235
|
-
|
|
11236
11112
|
export const getSearchContactsMockHandler = (
|
|
11237
11113
|
overrideResponse?:
|
|
11238
11114
|
| ContactsContactList
|
|
@@ -11266,10 +11142,10 @@ export const getSearchContactsMockHandler = (
|
|
|
11266
11142
|
|
|
11267
11143
|
export const getCreateContactMockHandler = (
|
|
11268
11144
|
overrideResponse?:
|
|
11269
|
-
|
|
|
11145
|
+
| WebitelcontactsContact
|
|
11270
11146
|
| ((
|
|
11271
11147
|
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
11272
|
-
) => Promise<
|
|
11148
|
+
) => Promise<WebitelcontactsContact> | WebitelcontactsContact),
|
|
11273
11149
|
options?: RequestHandlerOptions,
|
|
11274
11150
|
) => {
|
|
11275
11151
|
return http.post(
|
|
@@ -11297,10 +11173,10 @@ export const getCreateContactMockHandler = (
|
|
|
11297
11173
|
|
|
11298
11174
|
export const getDeleteContactMockHandler = (
|
|
11299
11175
|
overrideResponse?:
|
|
11300
|
-
|
|
|
11176
|
+
| WebitelcontactsContact
|
|
11301
11177
|
| ((
|
|
11302
11178
|
info: Parameters<Parameters<typeof http.delete>[1]>[0],
|
|
11303
|
-
) => Promise<
|
|
11179
|
+
) => Promise<WebitelcontactsContact> | WebitelcontactsContact),
|
|
11304
11180
|
options?: RequestHandlerOptions,
|
|
11305
11181
|
) => {
|
|
11306
11182
|
return http.delete(
|
|
@@ -11328,10 +11204,10 @@ export const getDeleteContactMockHandler = (
|
|
|
11328
11204
|
|
|
11329
11205
|
export const getLocateContactMockHandler = (
|
|
11330
11206
|
overrideResponse?:
|
|
11331
|
-
|
|
|
11207
|
+
| WebitelcontactsContact
|
|
11332
11208
|
| ((
|
|
11333
11209
|
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
11334
|
-
) => Promise<
|
|
11210
|
+
) => Promise<WebitelcontactsContact> | WebitelcontactsContact),
|
|
11335
11211
|
options?: RequestHandlerOptions,
|
|
11336
11212
|
) => {
|
|
11337
11213
|
return http.get(
|
|
@@ -11359,10 +11235,10 @@ export const getLocateContactMockHandler = (
|
|
|
11359
11235
|
|
|
11360
11236
|
export const getUpdateContactMockHandler = (
|
|
11361
11237
|
overrideResponse?:
|
|
11362
|
-
|
|
|
11238
|
+
| WebitelcontactsContact
|
|
11363
11239
|
| ((
|
|
11364
11240
|
info: Parameters<Parameters<typeof http.patch>[1]>[0],
|
|
11365
|
-
) => Promise<
|
|
11241
|
+
) => Promise<WebitelcontactsContact> | WebitelcontactsContact),
|
|
11366
11242
|
options?: RequestHandlerOptions,
|
|
11367
11243
|
) => {
|
|
11368
11244
|
return http.patch(
|
|
@@ -11387,44 +11263,10 @@ export const getUpdateContactMockHandler = (
|
|
|
11387
11263
|
options,
|
|
11388
11264
|
);
|
|
11389
11265
|
};
|
|
11390
|
-
|
|
11391
|
-
export const getSearchContactsMockHandler = (
|
|
11392
|
-
overrideResponse?:
|
|
11393
|
-
| WebitelImApiGatewayV1ContactList
|
|
11394
|
-
| ((
|
|
11395
|
-
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
11396
|
-
) =>
|
|
11397
|
-
| Promise<WebitelImApiGatewayV1ContactList>
|
|
11398
|
-
| WebitelImApiGatewayV1ContactList),
|
|
11399
|
-
options?: RequestHandlerOptions,
|
|
11400
|
-
) => {
|
|
11401
|
-
return http.get(
|
|
11402
|
-
'*/v1/contacts',
|
|
11403
|
-
async (info) => {
|
|
11404
|
-
return new HttpResponse(
|
|
11405
|
-
JSON.stringify(
|
|
11406
|
-
overrideResponse !== undefined
|
|
11407
|
-
? typeof overrideResponse === 'function'
|
|
11408
|
-
? await overrideResponse(info)
|
|
11409
|
-
: overrideResponse
|
|
11410
|
-
: getSearchContactsResponseMock(),
|
|
11411
|
-
),
|
|
11412
|
-
{
|
|
11413
|
-
status: 200,
|
|
11414
|
-
headers: {
|
|
11415
|
-
'Content-Type': 'application/json',
|
|
11416
|
-
},
|
|
11417
|
-
},
|
|
11418
|
-
);
|
|
11419
|
-
},
|
|
11420
|
-
options,
|
|
11421
|
-
);
|
|
11422
|
-
};
|
|
11423
11266
|
export const getContactsMock = () => [
|
|
11424
11267
|
getSearchContactsMockHandler(),
|
|
11425
11268
|
getCreateContactMockHandler(),
|
|
11426
11269
|
getDeleteContactMockHandler(),
|
|
11427
11270
|
getLocateContactMockHandler(),
|
|
11428
11271
|
getUpdateContactMockHandler(),
|
|
11429
|
-
getSearchContactsMockHandler(),
|
|
11430
11272
|
];
|