@webitel/api-services 0.0.1 → 0.0.2

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.
Files changed (250) hide show
  1. package/Readme.md +13 -0
  2. package/package.json +6 -5
  3. package/types/gen/_models/casesAttachment.d.ts +13 -0
  4. package/types/gen/_models/casesCallEvent.d.ts +24 -0
  5. package/types/gen/_models/casesCallFile.d.ts +14 -0
  6. package/types/gen/_models/casesCase.d.ts +90 -0
  7. package/types/gen/_models/casesCaseComment.d.ts +36 -0
  8. package/types/gen/_models/casesCaseCommentList.d.ts +18 -0
  9. package/types/gen/_models/casesCaseCommunication.d.ts +22 -0
  10. package/types/gen/_models/casesCaseCommunicationsTypes.d.ts +21 -0
  11. package/types/gen/_models/casesCaseFileList.d.ts +18 -0
  12. package/types/gen/_models/casesCaseLink.d.ts +19 -0
  13. package/types/gen/_models/casesCaseLinkList.d.ts +12 -0
  14. package/types/gen/_models/casesCaseList.d.ts +18 -0
  15. package/types/gen/_models/casesCaseTimelineEventType.d.ts +12 -0
  16. package/types/gen/_models/casesCatalog.d.ts +27 -0
  17. package/types/gen/_models/casesCatalogList.d.ts +12 -0
  18. package/types/gen/_models/casesChatEvent.d.ts +20 -0
  19. package/types/gen/_models/casesCloseInfo.d.ts +16 -0
  20. package/types/gen/_models/casesCloseReason.d.ts +17 -0
  21. package/types/gen/_models/casesCloseReasonGroup.d.ts +16 -0
  22. package/types/gen/_models/casesCloseReasonGroupList.d.ts +12 -0
  23. package/types/gen/_models/casesCloseReasonList.d.ts +12 -0
  24. package/types/gen/_models/casesCreateCaseCloseInput.d.ts +16 -0
  25. package/types/gen/_models/casesCreateCaseRelatedCaseInput.d.ts +18 -0
  26. package/types/gen/_models/casesCreateInputRelatedCase.d.ts +17 -0
  27. package/types/gen/_models/casesDayTimeline.d.ts +14 -0
  28. package/types/gen/_models/casesEmailEvent.d.ts +23 -0
  29. package/types/gen/_models/casesEvent.d.ts +17 -0
  30. package/types/gen/_models/casesFile.d.ts +26 -0
  31. package/types/gen/_models/casesGetTimelineCounterResponse.d.ts +13 -0
  32. package/types/gen/_models/casesGetTimelineResponse.d.ts +12 -0
  33. package/types/gen/_models/casesInputCase.d.ts +28 -0
  34. package/types/gen/_models/casesInputCaseComment.d.ts +15 -0
  35. package/types/gen/_models/casesInputCaseCommunication.d.ts +16 -0
  36. package/types/gen/_models/casesInputCaseLink.d.ts +11 -0
  37. package/types/gen/_models/casesInputCatalog.d.ts +19 -0
  38. package/types/gen/_models/casesInputCatalogBody.d.ts +11 -0
  39. package/types/gen/_models/casesInputCloseReason.d.ts +10 -0
  40. package/types/gen/_models/casesInputCloseReasonBody.d.ts +8 -0
  41. package/types/gen/_models/casesInputCloseReasonGroup.d.ts +10 -0
  42. package/types/gen/_models/casesInputCloseReasonGroupBody.d.ts +8 -0
  43. package/types/gen/_models/casesInputCreateCase.d.ts +48 -0
  44. package/types/gen/_models/casesInputCreateService.d.ts +19 -0
  45. package/types/gen/_models/casesInputCreateStatusCondition.d.ts +10 -0
  46. package/types/gen/_models/casesInputPriority.d.ts +11 -0
  47. package/types/gen/_models/casesInputPriorityBody.d.ts +8 -0
  48. package/types/gen/_models/casesInputRelatedCase.d.ts +19 -0
  49. package/types/gen/_models/casesInputSLA.d.ts +16 -0
  50. package/types/gen/_models/casesInputSLABody.d.ts +8 -0
  51. package/types/gen/_models/casesInputSLACondition.d.ts +13 -0
  52. package/types/gen/_models/casesInputSLAConditionBody.d.ts +8 -0
  53. package/types/gen/_models/casesInputService.d.ts +19 -0
  54. package/types/gen/_models/casesInputServiceBody.d.ts +11 -0
  55. package/types/gen/_models/casesInputSource.d.ts +15 -0
  56. package/types/gen/_models/casesInputSourceBody.d.ts +8 -0
  57. package/types/gen/_models/casesInputStatus.d.ts +10 -0
  58. package/types/gen/_models/casesInputStatusBody.d.ts +8 -0
  59. package/types/gen/_models/casesInputStatusCondition.d.ts +12 -0
  60. package/types/gen/_models/casesInputStatusConditionBody.d.ts +8 -0
  61. package/types/gen/_models/casesLinkCommunicationResponse.d.ts +14 -0
  62. package/types/gen/_models/casesListCommunicationsResponse.d.ts +17 -0
  63. package/types/gen/_models/casesLocateCatalogResponse.d.ts +10 -0
  64. package/types/gen/_models/casesLocateCloseReasonGroupResponse.d.ts +10 -0
  65. package/types/gen/_models/casesLocateCloseReasonResponse.d.ts +10 -0
  66. package/types/gen/_models/casesLocatePriorityResponse.d.ts +10 -0
  67. package/types/gen/_models/casesLocateSLAConditionResponse.d.ts +10 -0
  68. package/types/gen/_models/casesLocateSLAResponse.d.ts +10 -0
  69. package/types/gen/_models/casesLocateServiceResponse.d.ts +10 -0
  70. package/types/gen/_models/casesLocateSourceResponse.d.ts +14 -0
  71. package/types/gen/_models/casesLocateStatusConditionResponse.d.ts +10 -0
  72. package/types/gen/_models/casesLocateStatusResponse.d.ts +10 -0
  73. package/types/gen/_models/casesPriority.d.ts +17 -0
  74. package/types/gen/_models/casesPriorityList.d.ts +12 -0
  75. package/types/gen/_models/casesRateInfo.d.ts +15 -0
  76. package/types/gen/_models/casesRelatedCase.d.ts +34 -0
  77. package/types/gen/_models/casesRelatedCaseList.d.ts +18 -0
  78. package/types/gen/_models/casesRelatedCaseLookup.d.ts +17 -0
  79. package/types/gen/_models/casesRelationType.d.ts +22 -0
  80. package/types/gen/_models/casesSLA.d.ts +21 -0
  81. package/types/gen/_models/casesSLACondition.d.ts +19 -0
  82. package/types/gen/_models/casesSLAConditionList.d.ts +12 -0
  83. package/types/gen/_models/casesSLAList.d.ts +12 -0
  84. package/types/gen/_models/casesService.d.ts +26 -0
  85. package/types/gen/_models/casesServiceList.d.ts +12 -0
  86. package/types/gen/_models/casesSource.d.ts +26 -0
  87. package/types/gen/_models/casesSourceList.d.ts +18 -0
  88. package/types/gen/_models/casesSourceType.d.ts +27 -0
  89. package/types/gen/_models/casesSourceTypeLookup.d.ts +12 -0
  90. package/types/gen/_models/casesStatusCondition.d.ts +19 -0
  91. package/types/gen/_models/casesStatusConditionList.d.ts +12 -0
  92. package/types/gen/_models/casesStatusList.d.ts +12 -0
  93. package/types/gen/_models/casesTimingInfo.d.ts +19 -0
  94. package/types/gen/_models/casesTranscriptLookup.d.ts +12 -0
  95. package/types/gen/_models/casesUnlinkCommunicationResponse.d.ts +13 -0
  96. package/types/gen/_models/createCaseParams.d.ts +12 -0
  97. package/types/gen/_models/createCatalogParams.d.ts +9 -0
  98. package/types/gen/_models/createCloseReasonGroupParams.d.ts +12 -0
  99. package/types/gen/_models/createCloseReasonParams.d.ts +12 -0
  100. package/types/gen/_models/createLinkParams.d.ts +15 -0
  101. package/types/gen/_models/createPriorityParams.d.ts +12 -0
  102. package/types/gen/_models/createRelatedCaseParams.d.ts +12 -0
  103. package/types/gen/_models/createSLAConditionParams.d.ts +9 -0
  104. package/types/gen/_models/createSLAParams.d.ts +12 -0
  105. package/types/gen/_models/createServiceParams.d.ts +9 -0
  106. package/types/gen/_models/createSourceParams.d.ts +9 -0
  107. package/types/gen/_models/createStatusConditionParams.d.ts +9 -0
  108. package/types/gen/_models/createStatusParams.d.ts +12 -0
  109. package/types/gen/_models/deleteCaseParams.d.ts +12 -0
  110. package/types/gen/_models/deleteCommentParams.d.ts +12 -0
  111. package/types/gen/_models/generalExtendedLookup.d.ts +11 -0
  112. package/types/gen/_models/generalLookup.d.ts +10 -0
  113. package/types/gen/_models/getTimelineParams.d.ts +18 -0
  114. package/types/gen/_models/getTimelineTypeItem.d.ts +12 -0
  115. package/types/gen/_models/googlerpcStatus.d.ts +12 -0
  116. package/types/gen/_models/index.d.ts +199 -0
  117. package/types/gen/_models/linkCommunicationParams.d.ts +12 -0
  118. package/types/gen/_models/listCatalogsParams.d.ts +61 -0
  119. package/types/gen/_models/listCloseReasonGroupsParams.d.ts +14 -0
  120. package/types/gen/_models/listCloseReasonsParams.d.ts +32 -0
  121. package/types/gen/_models/listCommentsParams.d.ts +32 -0
  122. package/types/gen/_models/listCommunicationsParams.d.ts +28 -0
  123. package/types/gen/_models/listFilesParams.d.ts +32 -0
  124. package/types/gen/_models/listLinksParams.d.ts +14 -0
  125. package/types/gen/_models/listPrioritiesParams.d.ts +43 -0
  126. package/types/gen/_models/listRelatedCasesParams.d.ts +32 -0
  127. package/types/gen/_models/listSLAConditionsParams.d.ts +43 -0
  128. package/types/gen/_models/listSLAsParams.d.ts +35 -0
  129. package/types/gen/_models/listServicesParams.d.ts +43 -0
  130. package/types/gen/_models/listSourcesParams.d.ts +48 -0
  131. package/types/gen/_models/listSourcesTypeItem.d.ts +16 -0
  132. package/types/gen/_models/listStatusConditionsParams.d.ts +35 -0
  133. package/types/gen/_models/listStatusesParams.d.ts +35 -0
  134. package/types/gen/_models/locateCaseParams.d.ts +12 -0
  135. package/types/gen/_models/locateCatalogParams.d.ts +20 -0
  136. package/types/gen/_models/locateCloseReasonGroupParams.d.ts +9 -0
  137. package/types/gen/_models/locateCloseReasonParams.d.ts +9 -0
  138. package/types/gen/_models/locateCommentParams.d.ts +12 -0
  139. package/types/gen/_models/locateLinkParams.d.ts +9 -0
  140. package/types/gen/_models/locatePriorityParams.d.ts +12 -0
  141. package/types/gen/_models/locateRelatedCaseParams.d.ts +12 -0
  142. package/types/gen/_models/locateSLAConditionParams.d.ts +12 -0
  143. package/types/gen/_models/locateSLAParams.d.ts +9 -0
  144. package/types/gen/_models/locateServiceParams.d.ts +12 -0
  145. package/types/gen/_models/locateSourceParams.d.ts +12 -0
  146. package/types/gen/_models/locateStatusConditionParams.d.ts +12 -0
  147. package/types/gen/_models/locateStatusParams.d.ts +9 -0
  148. package/types/gen/_models/protobufAny.d.ts +10 -0
  149. package/types/gen/_models/publishCommentParams.d.ts +12 -0
  150. package/types/gen/_models/searchCases2Params.d.ts +36 -0
  151. package/types/gen/_models/searchCasesParams.d.ts +40 -0
  152. package/types/gen/_models/unlinkCommunicationParams.d.ts +12 -0
  153. package/types/gen/_models/updateCase2Body.d.ts +27 -0
  154. package/types/gen/_models/updateCase2Params.d.ts +16 -0
  155. package/types/gen/_models/updateCaseBody.d.ts +27 -0
  156. package/types/gen/_models/updateCaseInputBody.d.ts +27 -0
  157. package/types/gen/_models/updateCaseParams.d.ts +16 -0
  158. package/types/gen/_models/updateCatalog2Params.d.ts +9 -0
  159. package/types/gen/_models/updateCatalogParams.d.ts +9 -0
  160. package/types/gen/_models/updateCloseReason2Params.d.ts +12 -0
  161. package/types/gen/_models/updateCloseReasonGroup2Params.d.ts +12 -0
  162. package/types/gen/_models/updateCloseReasonGroupParams.d.ts +12 -0
  163. package/types/gen/_models/updateCloseReasonParams.d.ts +12 -0
  164. package/types/gen/_models/updateComment2Body.d.ts +10 -0
  165. package/types/gen/_models/updateComment2Params.d.ts +12 -0
  166. package/types/gen/_models/updateCommentBody.d.ts +10 -0
  167. package/types/gen/_models/updateCommentInputBody.d.ts +10 -0
  168. package/types/gen/_models/updateCommentParams.d.ts +12 -0
  169. package/types/gen/_models/updateLink2Body.d.ts +10 -0
  170. package/types/gen/_models/updateLink2Params.d.ts +12 -0
  171. package/types/gen/_models/updateLinkBody.d.ts +10 -0
  172. package/types/gen/_models/updateLinkInputBody.d.ts +10 -0
  173. package/types/gen/_models/updateLinkParams.d.ts +12 -0
  174. package/types/gen/_models/updatePriority2Params.d.ts +12 -0
  175. package/types/gen/_models/updatePriorityParams.d.ts +12 -0
  176. package/types/gen/_models/updateRelatedCase2Body.d.ts +17 -0
  177. package/types/gen/_models/updateRelatedCase2BodyPrimaryCase.d.ts +12 -0
  178. package/types/gen/_models/updateRelatedCase2Params.d.ts +12 -0
  179. package/types/gen/_models/updateRelatedCaseBody.d.ts +17 -0
  180. package/types/gen/_models/updateRelatedCaseBodyPrimaryCase.d.ts +12 -0
  181. package/types/gen/_models/updateRelatedCaseInputBody.d.ts +17 -0
  182. package/types/gen/_models/updateRelatedCaseInputBodyPrimaryCase.d.ts +12 -0
  183. package/types/gen/_models/updateRelatedCaseParams.d.ts +12 -0
  184. package/types/gen/_models/updateSLA2Params.d.ts +12 -0
  185. package/types/gen/_models/updateSLACondition2Params.d.ts +9 -0
  186. package/types/gen/_models/updateSLAConditionParams.d.ts +9 -0
  187. package/types/gen/_models/updateSLAParams.d.ts +12 -0
  188. package/types/gen/_models/updateService2Params.d.ts +9 -0
  189. package/types/gen/_models/updateServiceParams.d.ts +9 -0
  190. package/types/gen/_models/updateSource2Params.d.ts +9 -0
  191. package/types/gen/_models/updateSourceParams.d.ts +9 -0
  192. package/types/gen/_models/updateStatus2Params.d.ts +12 -0
  193. package/types/gen/_models/updateStatusCondition2Params.d.ts +9 -0
  194. package/types/gen/_models/updateStatusConditionParams.d.ts +9 -0
  195. package/types/gen/_models/updateStatusParams.d.ts +12 -0
  196. package/types/gen/_models/webitelcasesStatus.d.ts +16 -0
  197. package/types/gen/case-comments/case-comments.api.gen.d.ts +17 -0
  198. package/types/gen/case-comments/case-comments.msw.api.gen.d.ts +15 -0
  199. package/types/gen/case-comments/case-comments.zod.gen.d.ts +224 -0
  200. package/types/gen/case-communications/case-communications.api.gen.d.ts +11 -0
  201. package/types/gen/case-communications/case-communications.msw.api.gen.d.ts +9 -0
  202. package/types/gen/case-communications/case-communications.zod.gen.d.ts +85 -0
  203. package/types/gen/case-files/case-files.api.gen.d.ts +9 -0
  204. package/types/gen/case-files/case-files.msw.api.gen.d.ts +7 -0
  205. package/types/gen/case-files/case-files.zod.gen.d.ts +64 -0
  206. package/types/gen/case-links/case-links.api.gen.d.ts +17 -0
  207. package/types/gen/case-links/case-links.msw.api.gen.d.ts +15 -0
  208. package/types/gen/case-links/case-links.zod.gen.d.ts +193 -0
  209. package/types/gen/case-timeline/case-timeline.api.gen.d.ts +9 -0
  210. package/types/gen/case-timeline/case-timeline.msw.api.gen.d.ts +7 -0
  211. package/types/gen/case-timeline/case-timeline.zod.gen.d.ts +147 -0
  212. package/types/gen/cases/cases.api.gen.d.ts +19 -0
  213. package/types/gen/cases/cases.msw.api.gen.d.ts +17 -0
  214. package/types/gen/cases/cases.zod.gen.d.ts +2044 -0
  215. package/types/gen/catalogs/catalogs.api.gen.d.ts +17 -0
  216. package/types/gen/catalogs/catalogs.msw.api.gen.d.ts +15 -0
  217. package/types/gen/catalogs/catalogs.zod.gen.d.ts +591 -0
  218. package/types/gen/close-reason-groups/close-reason-groups.api.gen.d.ts +17 -0
  219. package/types/gen/close-reason-groups/close-reason-groups.msw.api.gen.d.ts +15 -0
  220. package/types/gen/close-reason-groups/close-reason-groups.zod.gen.d.ts +165 -0
  221. package/types/gen/close-reasons/close-reasons.api.gen.d.ts +17 -0
  222. package/types/gen/close-reasons/close-reasons.msw.api.gen.d.ts +15 -0
  223. package/types/gen/close-reasons/close-reasons.zod.gen.d.ts +181 -0
  224. package/types/gen/index.d.ts +52 -0
  225. package/types/gen/priorities/priorities.api.gen.d.ts +17 -0
  226. package/types/gen/priorities/priorities.msw.api.gen.d.ts +15 -0
  227. package/types/gen/priorities/priorities.zod.gen.d.ts +176 -0
  228. package/types/gen/related-cases/related-cases.api.gen.d.ts +17 -0
  229. package/types/gen/related-cases/related-cases.msw.api.gen.d.ts +15 -0
  230. package/types/gen/related-cases/related-cases.zod.gen.d.ts +397 -0
  231. package/types/gen/services/services.api.gen.d.ts +17 -0
  232. package/types/gen/services/services.msw.api.gen.d.ts +15 -0
  233. package/types/gen/services/services.zod.gen.d.ts +336 -0
  234. package/types/gen/slaconditions/slaconditions.api.gen.d.ts +17 -0
  235. package/types/gen/slaconditions/slaconditions.msw.api.gen.d.ts +15 -0
  236. package/types/gen/slaconditions/slaconditions.zod.gen.d.ts +228 -0
  237. package/types/gen/slas/slas.api.gen.d.ts +17 -0
  238. package/types/gen/slas/slas.msw.api.gen.d.ts +15 -0
  239. package/types/gen/slas/slas.zod.gen.d.ts +237 -0
  240. package/types/gen/sources/sources.api.gen.d.ts +17 -0
  241. package/types/gen/sources/sources.msw.api.gen.d.ts +15 -0
  242. package/types/gen/sources/sources.zod.gen.d.ts +276 -0
  243. package/types/gen/status-conditions/status-conditions.api.gen.d.ts +17 -0
  244. package/types/gen/status-conditions/status-conditions.msw.api.gen.d.ts +15 -0
  245. package/types/gen/status-conditions/status-conditions.zod.gen.d.ts +197 -0
  246. package/types/gen/statuses/statuses.api.gen.d.ts +17 -0
  247. package/types/gen/statuses/statuses.msw.api.gen.d.ts +15 -0
  248. package/types/gen/statuses/statuses.zod.gen.d.ts +165 -0
  249. package/types/index.d.ts +2 -0
  250. package/types/utils/index.d.ts +2 -0
@@ -0,0 +1,11 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import type { CasesInputCaseCommunication, CasesLinkCommunicationResponse, CasesListCommunicationsResponse, CasesUnlinkCommunicationResponse, LinkCommunicationParams, ListCommunicationsParams, UnlinkCommunicationParams } from '.././_models';
3
+ export declare const // --- title start
4
+ getCaseCommunications: () => {
5
+ listCommunications: <TData = AxiosResponse<CasesListCommunicationsResponse, any>>(caseEtag: string, params?: ListCommunicationsParams, options?: AxiosRequestConfig) => Promise<TData>;
6
+ linkCommunication: <TData = AxiosResponse<CasesLinkCommunicationResponse, any>>(caseEtag: string, casesInputCaseCommunication: CasesInputCaseCommunication, params?: LinkCommunicationParams, options?: AxiosRequestConfig) => Promise<TData>;
7
+ unlinkCommunication: <TData = AxiosResponse<CasesUnlinkCommunicationResponse, any>>(caseEtag: string, id: string, params?: UnlinkCommunicationParams, options?: AxiosRequestConfig) => Promise<TData>;
8
+ };
9
+ export type ListCommunicationsResult = AxiosResponse<CasesListCommunicationsResponse>;
10
+ export type LinkCommunicationResult = AxiosResponse<CasesLinkCommunicationResponse>;
11
+ export type UnlinkCommunicationResult = AxiosResponse<CasesUnlinkCommunicationResponse>;
@@ -0,0 +1,9 @@
1
+ import { http } from 'msw';
2
+ import type { CasesLinkCommunicationResponse, CasesListCommunicationsResponse, CasesUnlinkCommunicationResponse } from '.././_models';
3
+ export declare const getListCommunicationsResponseMock: (overrideResponse?: Partial<CasesListCommunicationsResponse>) => CasesListCommunicationsResponse;
4
+ export declare const getLinkCommunicationResponseMock: (overrideResponse?: Partial<CasesLinkCommunicationResponse>) => CasesLinkCommunicationResponse;
5
+ export declare const getUnlinkCommunicationResponseMock: (overrideResponse?: Partial<CasesUnlinkCommunicationResponse>) => CasesUnlinkCommunicationResponse;
6
+ export declare const getListCommunicationsMockHandler: (overrideResponse?: CasesListCommunicationsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesListCommunicationsResponse> | CasesListCommunicationsResponse)) => import("msw").HttpHandler;
7
+ export declare const getLinkCommunicationMockHandler: (overrideResponse?: CasesLinkCommunicationResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CasesLinkCommunicationResponse> | CasesLinkCommunicationResponse)) => import("msw").HttpHandler;
8
+ export declare const getUnlinkCommunicationMockHandler: (overrideResponse?: CasesUnlinkCommunicationResponse | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CasesUnlinkCommunicationResponse> | CasesUnlinkCommunicationResponse)) => import("msw").HttpHandler;
9
+ export declare const getCaseCommunicationsMock: () => import("msw").HttpHandler[];
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * service.proto
5
+ * OpenAPI spec version: version not set
6
+ */
7
+ import { z as zod } from 'zod';
8
+ /**
9
+ * @summary Lists all communications linked to a specific case.
10
+ Currently a feature for future development.
11
+ */
12
+ export declare const listCommunicationsParams: zod.ZodObject<{
13
+ case_etag: zod.ZodString;
14
+ }, {}, {}>;
15
+ export declare const listCommunicationsQueryParams: zod.ZodObject<{
16
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
17
+ q: zod.ZodOptional<zod.ZodString>;
18
+ size: zod.ZodOptional<zod.ZodNumber>;
19
+ page: zod.ZodOptional<zod.ZodNumber>;
20
+ sort: zod.ZodOptional<zod.ZodString>;
21
+ }, {}, {}>;
22
+ export declare const listCommunicationsResponseDataItemCommunicationTypeDefault = "NO_TYPE";
23
+ export declare const listCommunicationsResponse: zod.ZodObject<{
24
+ data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
25
+ communicationId: zod.ZodOptional<zod.ZodString>;
26
+ communicationType: zod.ZodDefault<zod.ZodEnum<{
27
+ NO_TYPE: "NO_TYPE";
28
+ COMMUNICATION_CHAT: "COMMUNICATION_CHAT";
29
+ COMMUNICATION_CALL: "COMMUNICATION_CALL";
30
+ COMMUNICATION_EMAIL: "COMMUNICATION_EMAIL";
31
+ }>>;
32
+ etag: zod.ZodOptional<zod.ZodString>;
33
+ id: zod.ZodOptional<zod.ZodString>;
34
+ ver: zod.ZodOptional<zod.ZodNumber>;
35
+ }, {}, {}>>>;
36
+ next: zod.ZodOptional<zod.ZodBoolean>;
37
+ page: zod.ZodOptional<zod.ZodNumber>;
38
+ }, {}, {}>;
39
+ /**
40
+ * @summary Links a communication to a specific case.
41
+ */
42
+ export declare const linkCommunicationParams: zod.ZodObject<{
43
+ case_etag: zod.ZodString;
44
+ }, {}, {}>;
45
+ export declare const linkCommunicationQueryParams: zod.ZodObject<{
46
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
47
+ }, {}, {}>;
48
+ export declare const linkCommunicationBodyCommunicationTypeDefault = "NO_TYPE";
49
+ export declare const linkCommunicationBody: zod.ZodObject<{
50
+ communicationId: zod.ZodOptional<zod.ZodString>;
51
+ communicationType: zod.ZodDefault<zod.ZodEnum<{
52
+ NO_TYPE: "NO_TYPE";
53
+ COMMUNICATION_CHAT: "COMMUNICATION_CHAT";
54
+ COMMUNICATION_CALL: "COMMUNICATION_CALL";
55
+ COMMUNICATION_EMAIL: "COMMUNICATION_EMAIL";
56
+ }>>;
57
+ }, {}, {}>;
58
+ export declare const linkCommunicationResponseDataItemCommunicationTypeDefault = "NO_TYPE";
59
+ export declare const linkCommunicationResponse: zod.ZodObject<{
60
+ data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
61
+ communicationId: zod.ZodOptional<zod.ZodString>;
62
+ communicationType: zod.ZodDefault<zod.ZodEnum<{
63
+ NO_TYPE: "NO_TYPE";
64
+ COMMUNICATION_CHAT: "COMMUNICATION_CHAT";
65
+ COMMUNICATION_CALL: "COMMUNICATION_CALL";
66
+ COMMUNICATION_EMAIL: "COMMUNICATION_EMAIL";
67
+ }>>;
68
+ etag: zod.ZodOptional<zod.ZodString>;
69
+ id: zod.ZodOptional<zod.ZodString>;
70
+ ver: zod.ZodOptional<zod.ZodNumber>;
71
+ }, {}, {}>>>;
72
+ }, {}, {}>;
73
+ /**
74
+ * @summary Unlinks a communication from a specific case.
75
+ */
76
+ export declare const unlinkCommunicationParams: zod.ZodObject<{
77
+ case_etag: zod.ZodString;
78
+ id: zod.ZodString;
79
+ }, {}, {}>;
80
+ export declare const unlinkCommunicationQueryParams: zod.ZodObject<{
81
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
82
+ }, {}, {}>;
83
+ export declare const unlinkCommunicationResponse: zod.ZodObject<{
84
+ affected: zod.ZodOptional<zod.ZodString>;
85
+ }, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import type { CasesCaseFileList, CasesFile, ListFilesParams } from '.././_models';
3
+ export declare const // --- title start
4
+ getCaseFiles: () => {
5
+ listFiles: <TData = AxiosResponse<CasesCaseFileList, any>>(caseEtag: string, params?: ListFilesParams, options?: AxiosRequestConfig) => Promise<TData>;
6
+ deleteFile: <TData = AxiosResponse<CasesFile, any>>(caseEtag: string, id: string, options?: AxiosRequestConfig) => Promise<TData>;
7
+ };
8
+ export type ListFilesResult = AxiosResponse<CasesCaseFileList>;
9
+ export type DeleteFileResult = AxiosResponse<CasesFile>;
@@ -0,0 +1,7 @@
1
+ import { http } from 'msw';
2
+ import type { CasesCaseFileList, CasesFile } from '.././_models';
3
+ export declare const getListFilesResponseMock: (overrideResponse?: Partial<CasesCaseFileList>) => CasesCaseFileList;
4
+ export declare const getDeleteFileResponseMock: (overrideResponse?: Partial<CasesFile>) => CasesFile;
5
+ export declare const getListFilesMockHandler: (overrideResponse?: CasesCaseFileList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCaseFileList> | CasesCaseFileList)) => import("msw").HttpHandler;
6
+ export declare const getDeleteFileMockHandler: (overrideResponse?: CasesFile | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CasesFile> | CasesFile)) => import("msw").HttpHandler;
7
+ export declare const getCaseFilesMock: () => import("msw").HttpHandler[];
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * service.proto
5
+ * OpenAPI spec version: version not set
6
+ */
7
+ import { z as zod } from 'zod';
8
+ /**
9
+ * @summary Retrieve a list of files associated with a case
10
+ */
11
+ export declare const listFilesParams: zod.ZodObject<{
12
+ case_etag: zod.ZodString;
13
+ }, {}, {}>;
14
+ export declare const listFilesQueryParams: zod.ZodObject<{
15
+ page: zod.ZodOptional<zod.ZodNumber>;
16
+ size: zod.ZodOptional<zod.ZodNumber>;
17
+ q: zod.ZodOptional<zod.ZodString>;
18
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
19
+ ids: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20
+ sort: zod.ZodOptional<zod.ZodString>;
21
+ }, {}, {}>;
22
+ export declare const listFilesResponse: zod.ZodObject<{
23
+ items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
24
+ author: zod.ZodOptional<zod.ZodObject<{
25
+ id: zod.ZodOptional<zod.ZodString>;
26
+ name: zod.ZodOptional<zod.ZodString>;
27
+ }, {}, {}>>;
28
+ createdAt: zod.ZodOptional<zod.ZodString>;
29
+ createdBy: zod.ZodOptional<zod.ZodObject<{
30
+ id: zod.ZodOptional<zod.ZodString>;
31
+ name: zod.ZodOptional<zod.ZodString>;
32
+ }, {}, {}>>;
33
+ id: zod.ZodOptional<zod.ZodString>;
34
+ mime: zod.ZodOptional<zod.ZodString>;
35
+ name: zod.ZodOptional<zod.ZodString>;
36
+ size: zod.ZodOptional<zod.ZodString>;
37
+ url: zod.ZodOptional<zod.ZodString>;
38
+ }, {}, {}>>>;
39
+ next: zod.ZodOptional<zod.ZodBoolean>;
40
+ page: zod.ZodOptional<zod.ZodString>;
41
+ }, {}, {}>;
42
+ /**
43
+ * @summary Delete a file
44
+ */
45
+ export declare const deleteFileParams: zod.ZodObject<{
46
+ case_etag: zod.ZodString;
47
+ id: zod.ZodString;
48
+ }, {}, {}>;
49
+ export declare const deleteFileResponse: zod.ZodObject<{
50
+ author: zod.ZodOptional<zod.ZodObject<{
51
+ id: zod.ZodOptional<zod.ZodString>;
52
+ name: zod.ZodOptional<zod.ZodString>;
53
+ }, {}, {}>>;
54
+ createdAt: zod.ZodOptional<zod.ZodString>;
55
+ createdBy: zod.ZodOptional<zod.ZodObject<{
56
+ id: zod.ZodOptional<zod.ZodString>;
57
+ name: zod.ZodOptional<zod.ZodString>;
58
+ }, {}, {}>>;
59
+ id: zod.ZodOptional<zod.ZodString>;
60
+ mime: zod.ZodOptional<zod.ZodString>;
61
+ name: zod.ZodOptional<zod.ZodString>;
62
+ size: zod.ZodOptional<zod.ZodString>;
63
+ url: zod.ZodOptional<zod.ZodString>;
64
+ }, {}, {}>;
@@ -0,0 +1,17 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import type { CasesCaseLink, CasesCaseLinkList, CreateLinkParams, ListLinksParams, LocateLinkParams, UpdateLink2Body, UpdateLink2Params, UpdateLinkBody, UpdateLinkParams } from '.././_models';
3
+ export declare const // --- title start
4
+ getCaseLinks: () => {
5
+ listLinks: <TData = AxiosResponse<CasesCaseLinkList, any>>(caseEtag: string, params?: ListLinksParams, options?: AxiosRequestConfig) => Promise<TData>;
6
+ createLink: <TData = AxiosResponse<CasesCaseLink, any>>(caseEtag: string, params?: CreateLinkParams, options?: AxiosRequestConfig) => Promise<TData>;
7
+ deleteLink: <TData = AxiosResponse<CasesCaseLink, any>>(caseEtag: string, etag: string, options?: AxiosRequestConfig) => Promise<TData>;
8
+ locateLink: <TData = AxiosResponse<CasesCaseLink, any>>(caseEtag: string, etag: string, params?: LocateLinkParams, options?: AxiosRequestConfig) => Promise<TData>;
9
+ updateLink2: <TData = AxiosResponse<CasesCaseLink, any>>(caseEtag: string, updateLink2Body: UpdateLink2Body, params?: UpdateLink2Params, options?: AxiosRequestConfig) => Promise<TData>;
10
+ updateLink: <TData = AxiosResponse<CasesCaseLink, any>>(caseEtag: string, updateLinkBody: UpdateLinkBody, params?: UpdateLinkParams, options?: AxiosRequestConfig) => Promise<TData>;
11
+ };
12
+ export type ListLinksResult = AxiosResponse<CasesCaseLinkList>;
13
+ export type CreateLinkResult = AxiosResponse<CasesCaseLink>;
14
+ export type DeleteLinkResult = AxiosResponse<CasesCaseLink>;
15
+ export type LocateLinkResult = AxiosResponse<CasesCaseLink>;
16
+ export type UpdateLink2Result = AxiosResponse<CasesCaseLink>;
17
+ export type UpdateLinkResult = AxiosResponse<CasesCaseLink>;
@@ -0,0 +1,15 @@
1
+ import { http } from 'msw';
2
+ import type { CasesCaseLink, CasesCaseLinkList } from '.././_models';
3
+ export declare const getListLinksResponseMock: (overrideResponse?: Partial<CasesCaseLinkList>) => CasesCaseLinkList;
4
+ export declare const getCreateLinkResponseMock: (overrideResponse?: Partial<CasesCaseLink>) => CasesCaseLink;
5
+ export declare const getDeleteLinkResponseMock: (overrideResponse?: Partial<CasesCaseLink>) => CasesCaseLink;
6
+ export declare const getLocateLinkResponseMock: (overrideResponse?: Partial<CasesCaseLink>) => CasesCaseLink;
7
+ export declare const getUpdateLink2ResponseMock: (overrideResponse?: Partial<CasesCaseLink>) => CasesCaseLink;
8
+ export declare const getUpdateLinkResponseMock: (overrideResponse?: Partial<CasesCaseLink>) => CasesCaseLink;
9
+ export declare const getListLinksMockHandler: (overrideResponse?: CasesCaseLinkList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCaseLinkList> | CasesCaseLinkList)) => import("msw").HttpHandler;
10
+ export declare const getCreateLinkMockHandler: (overrideResponse?: CasesCaseLink | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CasesCaseLink> | CasesCaseLink)) => import("msw").HttpHandler;
11
+ export declare const getDeleteLinkMockHandler: (overrideResponse?: CasesCaseLink | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CasesCaseLink> | CasesCaseLink)) => import("msw").HttpHandler;
12
+ export declare const getLocateLinkMockHandler: (overrideResponse?: CasesCaseLink | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCaseLink> | CasesCaseLink)) => import("msw").HttpHandler;
13
+ export declare const getUpdateLink2MockHandler: (overrideResponse?: CasesCaseLink | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<CasesCaseLink> | CasesCaseLink)) => import("msw").HttpHandler;
14
+ export declare const getUpdateLinkMockHandler: (overrideResponse?: CasesCaseLink | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<CasesCaseLink> | CasesCaseLink)) => import("msw").HttpHandler;
15
+ export declare const getCaseLinksMock: () => import("msw").HttpHandler[];
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * service.proto
5
+ * OpenAPI spec version: version not set
6
+ */
7
+ import { z as zod } from 'zod';
8
+ /**
9
+ * @summary With Case
10
+ */
11
+ export declare const listLinksParams: zod.ZodObject<{
12
+ case_etag: zod.ZodString;
13
+ }, {}, {}>;
14
+ export declare const listLinksQueryParams: zod.ZodObject<{
15
+ page: zod.ZodOptional<zod.ZodNumber>;
16
+ size: zod.ZodOptional<zod.ZodNumber>;
17
+ q: zod.ZodOptional<zod.ZodString>;
18
+ ids: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
19
+ sort: zod.ZodOptional<zod.ZodString>;
20
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21
+ }, {}, {}>;
22
+ export declare const listLinksResponse: zod.ZodObject<{
23
+ items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
24
+ author: zod.ZodOptional<zod.ZodObject<{
25
+ id: zod.ZodOptional<zod.ZodString>;
26
+ name: zod.ZodOptional<zod.ZodString>;
27
+ }, {}, {}>>;
28
+ createdAt: zod.ZodOptional<zod.ZodString>;
29
+ createdBy: zod.ZodOptional<zod.ZodObject<{
30
+ id: zod.ZodOptional<zod.ZodString>;
31
+ name: zod.ZodOptional<zod.ZodString>;
32
+ }, {}, {}>>;
33
+ etag: zod.ZodOptional<zod.ZodString>;
34
+ id: zod.ZodOptional<zod.ZodString>;
35
+ name: zod.ZodOptional<zod.ZodString>;
36
+ updatedAt: zod.ZodOptional<zod.ZodString>;
37
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
38
+ id: zod.ZodOptional<zod.ZodString>;
39
+ name: zod.ZodOptional<zod.ZodString>;
40
+ }, {}, {}>>;
41
+ url: zod.ZodOptional<zod.ZodString>;
42
+ ver: zod.ZodOptional<zod.ZodNumber>;
43
+ }, {}, {}>>>;
44
+ next: zod.ZodOptional<zod.ZodBoolean>;
45
+ page: zod.ZodOptional<zod.ZodString>;
46
+ }, {}, {}>;
47
+ export declare const createLinkParams: zod.ZodObject<{
48
+ case_etag: zod.ZodString;
49
+ }, {}, {}>;
50
+ export declare const createLinkQueryParams: zod.ZodObject<{
51
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
52
+ inputEtag: zod.ZodOptional<zod.ZodString>;
53
+ inputUrl: zod.ZodOptional<zod.ZodString>;
54
+ inputName: zod.ZodOptional<zod.ZodString>;
55
+ }, {}, {}>;
56
+ export declare const createLinkResponse: zod.ZodObject<{
57
+ author: zod.ZodOptional<zod.ZodObject<{
58
+ id: zod.ZodOptional<zod.ZodString>;
59
+ name: zod.ZodOptional<zod.ZodString>;
60
+ }, {}, {}>>;
61
+ createdAt: zod.ZodOptional<zod.ZodString>;
62
+ createdBy: zod.ZodOptional<zod.ZodObject<{
63
+ id: zod.ZodOptional<zod.ZodString>;
64
+ name: zod.ZodOptional<zod.ZodString>;
65
+ }, {}, {}>>;
66
+ etag: zod.ZodOptional<zod.ZodString>;
67
+ id: zod.ZodOptional<zod.ZodString>;
68
+ name: zod.ZodOptional<zod.ZodString>;
69
+ updatedAt: zod.ZodOptional<zod.ZodString>;
70
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
71
+ id: zod.ZodOptional<zod.ZodString>;
72
+ name: zod.ZodOptional<zod.ZodString>;
73
+ }, {}, {}>>;
74
+ url: zod.ZodOptional<zod.ZodString>;
75
+ ver: zod.ZodOptional<zod.ZodNumber>;
76
+ }, {}, {}>;
77
+ export declare const deleteLinkParams: zod.ZodObject<{
78
+ case_etag: zod.ZodString;
79
+ etag: zod.ZodString;
80
+ }, {}, {}>;
81
+ export declare const deleteLinkResponse: zod.ZodObject<{
82
+ author: zod.ZodOptional<zod.ZodObject<{
83
+ id: zod.ZodOptional<zod.ZodString>;
84
+ name: zod.ZodOptional<zod.ZodString>;
85
+ }, {}, {}>>;
86
+ createdAt: zod.ZodOptional<zod.ZodString>;
87
+ createdBy: zod.ZodOptional<zod.ZodObject<{
88
+ id: zod.ZodOptional<zod.ZodString>;
89
+ name: zod.ZodOptional<zod.ZodString>;
90
+ }, {}, {}>>;
91
+ etag: zod.ZodOptional<zod.ZodString>;
92
+ id: zod.ZodOptional<zod.ZodString>;
93
+ name: zod.ZodOptional<zod.ZodString>;
94
+ updatedAt: zod.ZodOptional<zod.ZodString>;
95
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
96
+ id: zod.ZodOptional<zod.ZodString>;
97
+ name: zod.ZodOptional<zod.ZodString>;
98
+ }, {}, {}>>;
99
+ url: zod.ZodOptional<zod.ZodString>;
100
+ ver: zod.ZodOptional<zod.ZodNumber>;
101
+ }, {}, {}>;
102
+ export declare const locateLinkParams: zod.ZodObject<{
103
+ case_etag: zod.ZodString;
104
+ etag: zod.ZodString;
105
+ }, {}, {}>;
106
+ export declare const locateLinkQueryParams: zod.ZodObject<{
107
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
108
+ }, {}, {}>;
109
+ export declare const locateLinkResponse: zod.ZodObject<{
110
+ author: zod.ZodOptional<zod.ZodObject<{
111
+ id: zod.ZodOptional<zod.ZodString>;
112
+ name: zod.ZodOptional<zod.ZodString>;
113
+ }, {}, {}>>;
114
+ createdAt: zod.ZodOptional<zod.ZodString>;
115
+ createdBy: zod.ZodOptional<zod.ZodObject<{
116
+ id: zod.ZodOptional<zod.ZodString>;
117
+ name: zod.ZodOptional<zod.ZodString>;
118
+ }, {}, {}>>;
119
+ etag: zod.ZodOptional<zod.ZodString>;
120
+ id: zod.ZodOptional<zod.ZodString>;
121
+ name: zod.ZodOptional<zod.ZodString>;
122
+ updatedAt: zod.ZodOptional<zod.ZodString>;
123
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
124
+ id: zod.ZodOptional<zod.ZodString>;
125
+ name: zod.ZodOptional<zod.ZodString>;
126
+ }, {}, {}>>;
127
+ url: zod.ZodOptional<zod.ZodString>;
128
+ ver: zod.ZodOptional<zod.ZodNumber>;
129
+ }, {}, {}>;
130
+ export declare const updateLink2Params: zod.ZodObject<{
131
+ case_etag: zod.ZodString;
132
+ 'input.etag': zod.ZodString;
133
+ }, {}, {}>;
134
+ export declare const updateLink2QueryParams: zod.ZodObject<{
135
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
136
+ }, {}, {}>;
137
+ export declare const updateLink2Body: zod.ZodObject<{
138
+ name: zod.ZodOptional<zod.ZodString>;
139
+ url: zod.ZodOptional<zod.ZodString>;
140
+ }, {}, {}>;
141
+ export declare const updateLink2Response: zod.ZodObject<{
142
+ author: zod.ZodOptional<zod.ZodObject<{
143
+ id: zod.ZodOptional<zod.ZodString>;
144
+ name: zod.ZodOptional<zod.ZodString>;
145
+ }, {}, {}>>;
146
+ createdAt: zod.ZodOptional<zod.ZodString>;
147
+ createdBy: zod.ZodOptional<zod.ZodObject<{
148
+ id: zod.ZodOptional<zod.ZodString>;
149
+ name: zod.ZodOptional<zod.ZodString>;
150
+ }, {}, {}>>;
151
+ etag: zod.ZodOptional<zod.ZodString>;
152
+ id: zod.ZodOptional<zod.ZodString>;
153
+ name: zod.ZodOptional<zod.ZodString>;
154
+ updatedAt: zod.ZodOptional<zod.ZodString>;
155
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
156
+ id: zod.ZodOptional<zod.ZodString>;
157
+ name: zod.ZodOptional<zod.ZodString>;
158
+ }, {}, {}>>;
159
+ url: zod.ZodOptional<zod.ZodString>;
160
+ ver: zod.ZodOptional<zod.ZodNumber>;
161
+ }, {}, {}>;
162
+ export declare const updateLinkParams: zod.ZodObject<{
163
+ case_etag: zod.ZodString;
164
+ 'input.etag': zod.ZodString;
165
+ }, {}, {}>;
166
+ export declare const updateLinkQueryParams: zod.ZodObject<{
167
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
168
+ }, {}, {}>;
169
+ export declare const updateLinkBody: zod.ZodObject<{
170
+ name: zod.ZodOptional<zod.ZodString>;
171
+ url: zod.ZodOptional<zod.ZodString>;
172
+ }, {}, {}>;
173
+ export declare const updateLinkResponse: zod.ZodObject<{
174
+ author: zod.ZodOptional<zod.ZodObject<{
175
+ id: zod.ZodOptional<zod.ZodString>;
176
+ name: zod.ZodOptional<zod.ZodString>;
177
+ }, {}, {}>>;
178
+ createdAt: zod.ZodOptional<zod.ZodString>;
179
+ createdBy: zod.ZodOptional<zod.ZodObject<{
180
+ id: zod.ZodOptional<zod.ZodString>;
181
+ name: zod.ZodOptional<zod.ZodString>;
182
+ }, {}, {}>>;
183
+ etag: zod.ZodOptional<zod.ZodString>;
184
+ id: zod.ZodOptional<zod.ZodString>;
185
+ name: zod.ZodOptional<zod.ZodString>;
186
+ updatedAt: zod.ZodOptional<zod.ZodString>;
187
+ updatedBy: zod.ZodOptional<zod.ZodObject<{
188
+ id: zod.ZodOptional<zod.ZodString>;
189
+ name: zod.ZodOptional<zod.ZodString>;
190
+ }, {}, {}>>;
191
+ url: zod.ZodOptional<zod.ZodString>;
192
+ ver: zod.ZodOptional<zod.ZodNumber>;
193
+ }, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import type { CasesGetTimelineCounterResponse, CasesGetTimelineResponse, GetTimelineParams } from '.././_models';
3
+ export declare const // --- title start
4
+ getCaseTimeline: () => {
5
+ getTimeline: <TData = AxiosResponse<CasesGetTimelineResponse, any>>(caseId: string, params?: GetTimelineParams, options?: AxiosRequestConfig) => Promise<TData>;
6
+ getTimelineCounter: <TData = AxiosResponse<CasesGetTimelineCounterResponse, any>>(caseId: string, options?: AxiosRequestConfig) => Promise<TData>;
7
+ };
8
+ export type GetTimelineResult = AxiosResponse<CasesGetTimelineResponse>;
9
+ export type GetTimelineCounterResult = AxiosResponse<CasesGetTimelineCounterResponse>;
@@ -0,0 +1,7 @@
1
+ import { http } from 'msw';
2
+ import type { CasesGetTimelineCounterResponse, CasesGetTimelineResponse } from '.././_models';
3
+ export declare const getGetTimelineResponseMock: (overrideResponse?: Partial<CasesGetTimelineResponse>) => CasesGetTimelineResponse;
4
+ export declare const getGetTimelineCounterResponseMock: (overrideResponse?: Partial<CasesGetTimelineCounterResponse>) => CasesGetTimelineCounterResponse;
5
+ export declare const getGetTimelineMockHandler: (overrideResponse?: CasesGetTimelineResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesGetTimelineResponse> | CasesGetTimelineResponse)) => import("msw").HttpHandler;
6
+ export declare const getGetTimelineCounterMockHandler: (overrideResponse?: CasesGetTimelineCounterResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesGetTimelineCounterResponse> | CasesGetTimelineCounterResponse)) => import("msw").HttpHandler;
7
+ export declare const getCaseTimelineMock: () => import("msw").HttpHandler[];
@@ -0,0 +1,147 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * service.proto
5
+ * OpenAPI spec version: version not set
6
+ */
7
+ import { z as zod } from 'zod';
8
+ export declare const getTimelineParams: zod.ZodObject<{
9
+ case_id: zod.ZodString;
10
+ }, {}, {}>;
11
+ export declare const getTimelineQueryParams: zod.ZodObject<{
12
+ page: zod.ZodOptional<zod.ZodNumber>;
13
+ size: zod.ZodOptional<zod.ZodNumber>;
14
+ q: zod.ZodOptional<zod.ZodString>;
15
+ sort: zod.ZodOptional<zod.ZodString>;
16
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
17
+ ids: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
18
+ dateFrom: zod.ZodOptional<zod.ZodString>;
19
+ dateTo: zod.ZodOptional<zod.ZodString>;
20
+ type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
21
+ chat: "chat";
22
+ call: "call";
23
+ email: "email";
24
+ }>>>;
25
+ }, {}, {}>;
26
+ export declare const getTimelineResponseDaysItemItemsItemTypeDefault = "chat";
27
+ export declare const getTimelineResponse: zod.ZodObject<{
28
+ days: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
29
+ callsCount: zod.ZodOptional<zod.ZodString>;
30
+ chatsCount: zod.ZodOptional<zod.ZodString>;
31
+ dayTimestamp: zod.ZodOptional<zod.ZodString>;
32
+ emailsCount: zod.ZodOptional<zod.ZodString>;
33
+ items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
34
+ call: zod.ZodOptional<zod.ZodObject<{
35
+ closedAt: zod.ZodOptional<zod.ZodString>;
36
+ duration: zod.ZodOptional<zod.ZodString>;
37
+ files: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
38
+ id: zod.ZodOptional<zod.ZodString>;
39
+ mimeType: zod.ZodOptional<zod.ZodString>;
40
+ name: zod.ZodOptional<zod.ZodString>;
41
+ size: zod.ZodOptional<zod.ZodString>;
42
+ startAt: zod.ZodOptional<zod.ZodString>;
43
+ stopAt: zod.ZodOptional<zod.ZodString>;
44
+ }, {}, {}>>>;
45
+ flowScheme: zod.ZodOptional<zod.ZodObject<{
46
+ id: zod.ZodOptional<zod.ZodString>;
47
+ name: zod.ZodOptional<zod.ZodString>;
48
+ }, {}, {}>>;
49
+ gateway: zod.ZodOptional<zod.ZodObject<{
50
+ id: zod.ZodOptional<zod.ZodString>;
51
+ name: zod.ZodOptional<zod.ZodString>;
52
+ }, {}, {}>>;
53
+ id: zod.ZodOptional<zod.ZodString>;
54
+ isDetailed: zod.ZodOptional<zod.ZodBoolean>;
55
+ isInbound: zod.ZodOptional<zod.ZodBoolean>;
56
+ isMissed: zod.ZodOptional<zod.ZodBoolean>;
57
+ participants: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
58
+ id: zod.ZodOptional<zod.ZodString>;
59
+ name: zod.ZodOptional<zod.ZodString>;
60
+ }, {}, {}>>>;
61
+ queue: zod.ZodOptional<zod.ZodObject<{
62
+ id: zod.ZodOptional<zod.ZodString>;
63
+ name: zod.ZodOptional<zod.ZodString>;
64
+ }, {}, {}>>;
65
+ totalDuration: zod.ZodOptional<zod.ZodString>;
66
+ transcripts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
67
+ file: zod.ZodOptional<zod.ZodObject<{
68
+ id: zod.ZodOptional<zod.ZodString>;
69
+ name: zod.ZodOptional<zod.ZodString>;
70
+ }, {}, {}>>;
71
+ id: zod.ZodOptional<zod.ZodString>;
72
+ locale: zod.ZodOptional<zod.ZodString>;
73
+ }, {}, {}>>>;
74
+ }, {}, {}>>;
75
+ chat: zod.ZodOptional<zod.ZodObject<{
76
+ closedAt: zod.ZodOptional<zod.ZodString>;
77
+ duration: zod.ZodOptional<zod.ZodString>;
78
+ flowScheme: zod.ZodOptional<zod.ZodObject<{
79
+ id: zod.ZodOptional<zod.ZodString>;
80
+ name: zod.ZodOptional<zod.ZodString>;
81
+ }, {}, {}>>;
82
+ gateway: zod.ZodOptional<zod.ZodObject<{
83
+ id: zod.ZodOptional<zod.ZodString>;
84
+ name: zod.ZodOptional<zod.ZodString>;
85
+ type: zod.ZodOptional<zod.ZodString>;
86
+ }, {}, {}>>;
87
+ id: zod.ZodOptional<zod.ZodString>;
88
+ isDetailed: zod.ZodOptional<zod.ZodBoolean>;
89
+ isInbound: zod.ZodOptional<zod.ZodBoolean>;
90
+ isMissed: zod.ZodOptional<zod.ZodBoolean>;
91
+ participants: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
92
+ id: zod.ZodOptional<zod.ZodString>;
93
+ name: zod.ZodOptional<zod.ZodString>;
94
+ }, {}, {}>>>;
95
+ queue: zod.ZodOptional<zod.ZodObject<{
96
+ id: zod.ZodOptional<zod.ZodString>;
97
+ name: zod.ZodOptional<zod.ZodString>;
98
+ }, {}, {}>>;
99
+ }, {}, {}>>;
100
+ createdAt: zod.ZodOptional<zod.ZodString>;
101
+ email: zod.ZodOptional<zod.ZodObject<{
102
+ attachments: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
103
+ id: zod.ZodOptional<zod.ZodString>;
104
+ mime: zod.ZodOptional<zod.ZodString>;
105
+ name: zod.ZodOptional<zod.ZodString>;
106
+ size: zod.ZodOptional<zod.ZodString>;
107
+ url: zod.ZodOptional<zod.ZodString>;
108
+ }, {}, {}>>>;
109
+ body: zod.ZodOptional<zod.ZodString>;
110
+ cc: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
111
+ from: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
112
+ html: zod.ZodOptional<zod.ZodString>;
113
+ id: zod.ZodOptional<zod.ZodString>;
114
+ isDetailed: zod.ZodOptional<zod.ZodBoolean>;
115
+ isInbound: zod.ZodOptional<zod.ZodBoolean>;
116
+ owner: zod.ZodOptional<zod.ZodObject<{
117
+ id: zod.ZodOptional<zod.ZodString>;
118
+ name: zod.ZodOptional<zod.ZodString>;
119
+ }, {}, {}>>;
120
+ profile: zod.ZodOptional<zod.ZodObject<{
121
+ id: zod.ZodOptional<zod.ZodString>;
122
+ name: zod.ZodOptional<zod.ZodString>;
123
+ }, {}, {}>>;
124
+ sender: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
125
+ subject: zod.ZodOptional<zod.ZodString>;
126
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
127
+ }, {}, {}>>;
128
+ type: zod.ZodDefault<zod.ZodEnum<{
129
+ chat: "chat";
130
+ call: "call";
131
+ email: "email";
132
+ }>>;
133
+ }, {}, {}>>>;
134
+ }, {}, {}>>>;
135
+ next: zod.ZodOptional<zod.ZodBoolean>;
136
+ page: zod.ZodOptional<zod.ZodNumber>;
137
+ }, {}, {}>;
138
+ export declare const getTimelineCounterParams: zod.ZodObject<{
139
+ case_id: zod.ZodString;
140
+ }, {}, {}>;
141
+ export declare const getTimelineCounterResponse: zod.ZodObject<{
142
+ callsCount: zod.ZodOptional<zod.ZodString>;
143
+ chatsCount: zod.ZodOptional<zod.ZodString>;
144
+ dateFrom: zod.ZodOptional<zod.ZodString>;
145
+ dateTo: zod.ZodOptional<zod.ZodString>;
146
+ emailsCount: zod.ZodOptional<zod.ZodString>;
147
+ }, {}, {}>;
@@ -0,0 +1,19 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import type { CasesCase, CasesCaseList, CasesInputCreateCase, CreateCaseParams, DeleteCaseParams, LocateCaseParams, SearchCases2Params, SearchCasesParams, UpdateCase2Body, UpdateCase2Params, UpdateCaseBody, UpdateCaseParams } from '.././_models';
3
+ export declare const // --- title start
4
+ getCases: () => {
5
+ searchCases: <TData = AxiosResponse<CasesCaseList, any>>(params?: SearchCasesParams, options?: AxiosRequestConfig) => Promise<TData>;
6
+ createCase: <TData = AxiosResponse<CasesCase, any>>(casesInputCreateCase: CasesInputCreateCase, params?: CreateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
7
+ deleteCase: <TData = AxiosResponse<CasesCase, any>>(etag: string, params?: DeleteCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
8
+ locateCase: <TData = AxiosResponse<CasesCase, any>>(etag: string, params?: LocateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
9
+ updateCase2: <TData = AxiosResponse<CasesCase, any>>(updateCase2Body: UpdateCase2Body, params?: UpdateCase2Params, options?: AxiosRequestConfig) => Promise<TData>;
10
+ updateCase: <TData = AxiosResponse<CasesCase, any>>(updateCaseBody: UpdateCaseBody, params?: UpdateCaseParams, options?: AxiosRequestConfig) => Promise<TData>;
11
+ searchCases2: <TData = AxiosResponse<CasesCaseList, any>>(contactId: string, params?: SearchCases2Params, options?: AxiosRequestConfig) => Promise<TData>;
12
+ };
13
+ export type SearchCasesResult = AxiosResponse<CasesCaseList>;
14
+ export type CreateCaseResult = AxiosResponse<CasesCase>;
15
+ export type DeleteCaseResult = AxiosResponse<CasesCase>;
16
+ export type LocateCaseResult = AxiosResponse<CasesCase>;
17
+ export type UpdateCase2Result = AxiosResponse<CasesCase>;
18
+ export type UpdateCaseResult = AxiosResponse<CasesCase>;
19
+ export type SearchCases2Result = AxiosResponse<CasesCaseList>;
@@ -0,0 +1,17 @@
1
+ import { http } from 'msw';
2
+ import type { CasesCase, CasesCaseList } from '.././_models';
3
+ export declare const getSearchCasesResponseMock: (overrideResponse?: Partial<CasesCaseList>) => CasesCaseList;
4
+ export declare const getCreateCaseResponseMock: (overrideResponse?: Partial<CasesCase>) => CasesCase;
5
+ export declare const getDeleteCaseResponseMock: (overrideResponse?: Partial<CasesCase>) => CasesCase;
6
+ export declare const getLocateCaseResponseMock: (overrideResponse?: Partial<CasesCase>) => CasesCase;
7
+ export declare const getUpdateCase2ResponseMock: (overrideResponse?: Partial<CasesCase>) => CasesCase;
8
+ export declare const getUpdateCaseResponseMock: (overrideResponse?: Partial<CasesCase>) => CasesCase;
9
+ export declare const getSearchCases2ResponseMock: (overrideResponse?: Partial<CasesCaseList>) => CasesCaseList;
10
+ export declare const getSearchCasesMockHandler: (overrideResponse?: CasesCaseList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCaseList> | CasesCaseList)) => import("msw").HttpHandler;
11
+ export declare const getCreateCaseMockHandler: (overrideResponse?: CasesCase | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CasesCase> | CasesCase)) => import("msw").HttpHandler;
12
+ export declare const getDeleteCaseMockHandler: (overrideResponse?: CasesCase | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CasesCase> | CasesCase)) => import("msw").HttpHandler;
13
+ export declare const getLocateCaseMockHandler: (overrideResponse?: CasesCase | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCase> | CasesCase)) => import("msw").HttpHandler;
14
+ export declare const getUpdateCase2MockHandler: (overrideResponse?: CasesCase | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<CasesCase> | CasesCase)) => import("msw").HttpHandler;
15
+ export declare const getUpdateCaseMockHandler: (overrideResponse?: CasesCase | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<CasesCase> | CasesCase)) => import("msw").HttpHandler;
16
+ export declare const getSearchCases2MockHandler: (overrideResponse?: CasesCaseList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CasesCaseList> | CasesCaseList)) => import("msw").HttpHandler;
17
+ export declare const getCasesMock: () => import("msw").HttpHandler[];