@webitel/api-services 0.0.25 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/package.json +44 -27
  2. package/src/api/axios/generateInstance.ts +30 -25
  3. package/src/api/axios/index.ts +1 -1
  4. package/src/api/clients/_shared/generatePermissionsApi.ts +84 -83
  5. package/src/api/clients/agents/agentChats.ts +52 -57
  6. package/src/api/clients/agents/agents.ts +211 -212
  7. package/src/api/clients/buckets/buckets.ts +82 -83
  8. package/src/api/clients/calendars/calendars.ts +173 -178
  9. package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +96 -97
  10. package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +96 -101
  11. package/src/api/clients/casePriorities/casePriorities.ts +107 -108
  12. package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +162 -164
  13. package/src/api/clients/caseServices/services.ts +145 -146
  14. package/src/api/clients/caseSources/caseSources.ts +85 -94
  15. package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +133 -134
  16. package/src/api/clients/caseStatuses/caseStatuses.ts +91 -92
  17. package/src/api/clients/catalog/catalog.ts +24 -32
  18. package/src/api/clients/chatGateways/chatGateways.ts +237 -236
  19. package/src/api/clients/chatGateways/defaults/defaultChatGateway.ts +18 -16
  20. package/src/api/clients/chatGateways/defaults/webChatGateway.ts +71 -68
  21. package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.ts +9 -11
  22. package/src/api/clients/chatGateways/scripts/generateUri.ts +12 -8
  23. package/src/api/clients/communications/communications.ts +107 -107
  24. package/src/api/clients/configurations/configurations.ts +109 -110
  25. package/src/api/clients/contactGroups/contactGroups.ts +145 -147
  26. package/src/api/clients/flows/flow.ts +181 -186
  27. package/src/api/clients/gateways/defaults/defaultGateway.ts +5 -5
  28. package/src/api/clients/gateways/defaults/registerGateway.ts +6 -6
  29. package/src/api/clients/gateways/defaults/trunkingGateway.ts +10 -10
  30. package/src/api/clients/gateways/gateways.ts +144 -145
  31. package/src/api/clients/history/transcript/callTranscript.ts +79 -0
  32. package/src/api/clients/index.ts +34 -68
  33. package/src/api/clients/labels/labels.ts +42 -44
  34. package/src/api/clients/lists/blacklists.ts +88 -89
  35. package/src/api/clients/media/media.ts +80 -85
  36. package/src/api/clients/object/object.ts +91 -92
  37. package/src/api/clients/queues/defaults/processing.ts +9 -9
  38. package/src/api/clients/queues/queues.ts +191 -196
  39. package/src/api/clients/quickReplies/quickReplies.ts +81 -94
  40. package/src/api/clients/roles/roles.ts +161 -162
  41. package/src/api/clients/skills/skills.ts +82 -83
  42. package/src/api/clients/slaConditions/slaConditions.ts +135 -136
  43. package/src/api/clients/slas/slas.ts +86 -87
  44. package/src/api/clients/teams/teams.ts +112 -113
  45. package/src/api/clients/users/__tests__/users.spec.ts +226 -226
  46. package/src/api/clients/users/users.ts +188 -189
  47. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +13 -13
  48. package/src/api/clients/wtTypes/index.ts +2 -0
  49. package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +50 -53
  50. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +87 -94
  51. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +76 -78
  52. package/src/api/clients//321/201ontacts/contacts.ts +291 -292
  53. package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +6 -8
  54. package/src/api/clients//321/201ontacts/index.ts +3 -5
  55. package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.ts +7 -5
  56. package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.ts +10 -5
  57. package/src/api/defaults/getDefaultInstance/getDefaultInstance.ts +18 -18
  58. package/src/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.ts +10 -8
  59. package/src/api/defaults/index.ts +4 -11
  60. package/src/api/index.ts +1 -1
  61. package/src/api/interceptors/index.ts +1 -1
  62. package/src/api/interceptors/request/index.ts +1 -1
  63. package/src/api/interceptors/request/updateToken.interceptor.ts +10 -9
  64. package/src/api/interceptors/response/handleUnauthorized.interceptor.ts +13 -11
  65. package/src/api/interceptors/response/index.ts +1 -1
  66. package/src/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.ts +9 -9
  67. package/src/api/transformers/applyTransform.ts +20 -13
  68. package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +2 -2
  69. package/src/api/transformers/generateUrl/generateUrl.transformer.ts +6 -6
  70. package/src/api/transformers/index.ts +13 -14
  71. package/src/api/transformers/log/log.transformer.ts +2 -2
  72. package/src/api/transformers/merge/merge.transformer.ts +3 -3
  73. package/src/api/transformers/mergeEach/mergeEach.transformer.ts +3 -3
  74. package/src/api/transformers/notify/notify.transformer.ts +25 -25
  75. package/src/api/transformers/sanitize/sanitize.transformer.ts +7 -7
  76. package/src/api/transformers/skipIf/skipIf.ts +10 -10
  77. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +2 -2
  78. package/src/api/transformers/starToSearch/starToSearch.transformer.ts +8 -10
  79. package/src/config/config.ts +13 -0
  80. package/src/gen/_docs/.nojekyll +1 -0
  81. package/src/gen/_docs/html/assets/hierarchy.js +1 -1
  82. package/src/gen/_docs/html/assets/highlight.css +101 -76
  83. package/src/gen/_docs/html/assets/icons.js +20 -17
  84. package/src/gen/_docs/html/assets/main.js +2503 -6
  85. package/src/gen/_docs/html/assets/navigation.js +2 -1
  86. package/src/gen/_docs/html/assets/search.js +2 -1
  87. package/src/gen/_docs/html/assets/style.css +1623 -1634
  88. package/src/gen/_models/agentAbsenceServiceUpdateAgentAbsenceBodyItem.ts +2 -1
  89. package/src/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.ts +3 -2
  90. package/src/gen/_models/apiAccessStoreToggleDefaultAccessBody.ts +2 -1
  91. package/src/gen/_models/apiCustomer.ts +3 -2
  92. package/src/gen/_models/apiDevice.ts +2 -1
  93. package/src/gen/_models/apiLDAPCatalog.ts +5 -4
  94. package/src/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.ts +5 -4
  95. package/src/gen/_models/apiLDAProcess.ts +3 -2
  96. package/src/gen/_models/apiLicenseV1.ts +2 -1
  97. package/src/gen/_models/apiRole.ts +4 -3
  98. package/src/gen/_models/apiRolesUpdateRoleBodyRole.ts +4 -3
  99. package/src/gen/_models/apiUser.ts +2 -1
  100. package/src/gen/_models/apiUsersUpdateUserBodyUser.ts +2 -1
  101. package/src/gen/_models/contactsUpdateContactBody.ts +2 -1
  102. package/src/gen/_models/engineActiveCall.ts +3 -2
  103. package/src/gen/_models/engineAgent.ts +2 -1
  104. package/src/gen/_models/engineAgentInQueueStatistics.ts +2 -1
  105. package/src/gen/_models/engineAggregateHistoryCallRequest.ts +2 -1
  106. package/src/gen/_models/engineAttempt.ts +2 -1
  107. package/src/gen/_models/engineAttemptHistory.ts +2 -1
  108. package/src/gen/_models/engineAuditFormServicePatchAuditFormBody.ts +2 -1
  109. package/src/gen/_models/engineAuditFormServiceUpdateAuditFormBody.ts +2 -1
  110. package/src/gen/_models/engineAuditRate.ts +3 -2
  111. package/src/gen/_models/engineCreateAuditFormRequest.ts +2 -1
  112. package/src/gen/_models/engineCreateCallRequest.ts +2 -1
  113. package/src/gen/_models/engineCreateMemberBulkItem.ts +2 -1
  114. package/src/gen/_models/engineCreateOutboundResourceRequest.ts +3 -2
  115. package/src/gen/_models/engineCreateQueueRequest.ts +3 -2
  116. package/src/gen/_models/engineCreateRoutingSchemaRequest.ts +2 -1
  117. package/src/gen/_models/engineCreateTriggerRequest.ts +3 -2
  118. package/src/gen/_models/engineDeleteAllMembersRequest.ts +2 -1
  119. package/src/gen/_models/engineHistoryCall.ts +7 -6
  120. package/src/gen/_models/engineListReportGeneral.ts +2 -1
  121. package/src/gen/_models/engineOutboundResource.ts +2 -1
  122. package/src/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.ts +2 -1
  123. package/src/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.ts +2 -1
  124. package/src/gen/_models/engineQuestion.ts +2 -1
  125. package/src/gen/_models/engineQueue.ts +3 -2
  126. package/src/gen/_models/engineQueueReportGeneral.ts +2 -1
  127. package/src/gen/_models/engineQueueServicePatchQueueBody.ts +3 -2
  128. package/src/gen/_models/engineQueueServiceUpdateQueueBody.ts +3 -2
  129. package/src/gen/_models/engineRoutingSchema.ts +3 -2
  130. package/src/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.ts +2 -1
  131. package/src/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.ts +2 -1
  132. package/src/gen/_models/engineTeamHook.ts +2 -1
  133. package/src/gen/_models/engineTeamHookServiceCreateTeamHookBody.ts +2 -1
  134. package/src/gen/_models/engineTeamHookServicePatchTeamHookBody.ts +2 -1
  135. package/src/gen/_models/engineTeamHookServiceUpdateTeamHookBody.ts +2 -1
  136. package/src/gen/_models/engineTrigger.ts +2 -1
  137. package/src/gen/_models/engineTriggerJob.ts +2 -1
  138. package/src/gen/_models/engineTriggerServicePatchTriggerBody.ts +2 -1
  139. package/src/gen/_models/engineTriggerServiceUpdateTriggerBody.ts +2 -1
  140. package/src/gen/_models/index.ts +26 -26
  141. package/src/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.ts +2 -1
  142. package/src/gen/_models/storageCreateImportTemplateRequest.ts +2 -1
  143. package/src/gen/_models/storageFile.ts +3 -2
  144. package/src/gen/_models/storageFilePolicy.ts +2 -1
  145. package/src/gen/_models/storageImportTemplate.ts +3 -2
  146. package/src/gen/_models/storageSafeUploadFileResponseMetadata.ts +2 -1
  147. package/src/gen/_models/storageUpdateCognitiveProfileRequest.ts +3 -2
  148. package/src/gen/_models/storageUpdateImportTemplateRequest.ts +2 -1
  149. package/src/gen/_models/storageUploadFileResponse.ts +2 -1
  150. package/src/gen/_models/storageUploadFileUrlResponse.ts +2 -1
  151. package/src/gen/_models/updateRelatedCase2Body.ts +2 -1
  152. package/src/gen/_models/updateRelatedCaseBody.ts +2 -1
  153. package/src/gen/_models/updateRelatedCaseInputBody.ts +2 -1
  154. package/src/gen/_models/usersUpdateUser2Body.ts +2 -1
  155. package/src/gen/_models/usersUpdateUserBody.ts +2 -1
  156. package/src/gen/_models/usersUpdateUserUserBody.ts +2 -1
  157. package/src/gen/_models/webitelCasesCallEvent.ts +2 -1
  158. package/src/gen/_models/webitelCasesCase.ts +2 -1
  159. package/src/gen/_models/webitelCasesChatEvent.ts +2 -1
  160. package/src/gen/_models/webitelCasesEmailEvent.ts +2 -1
  161. package/src/gen/_models/webitelCasesInputCreateService.ts +2 -1
  162. package/src/gen/_models/webitelCasesInputService.ts +2 -1
  163. package/src/gen/_models/webitelCasesService.ts +2 -1
  164. package/src/gen/_models/webitelChatAgentChat.ts +2 -1
  165. package/src/gen/_models/webitelChatBroadcastMessageRequest.ts +2 -1
  166. package/src/gen/_models/webitelChatChatMessage.ts +3 -2
  167. package/src/gen/_models/webitelChatContactChat.ts +2 -1
  168. package/src/gen/_models/webitelChatDialog.ts +2 -1
  169. package/src/gen/_models/webitelChatGetContactChatHistoryResponse.ts +3 -2
  170. package/src/gen/_models/webitelContactsComment.ts +2 -1
  171. package/src/gen/_models/webitelProtoDataStruct.ts +2 -1
  172. package/src/gen/_models/wfmAbsence.ts +2 -1
  173. package/src/gen/_models/wfmAgentScheduleShift.ts +3 -2
  174. package/src/gen/_models/wfmAgentWorkingSchedule.ts +2 -1
  175. package/src/gen/_models/wfmPauseTemplate.ts +2 -1
  176. package/src/gen/_models/wfmSearchAgentsWorkingScheduleResponse.ts +2 -1
  177. package/src/gen/access-store/access-store.msw.api.gen.ts +1 -1
  178. package/src/gen/access-store/access-store.zod.gen.ts +2 -2
  179. package/src/gen/agent-absence-service/agent-absence-service.msw.api.gen.ts +2 -3
  180. package/src/gen/agent-chat-service/agent-chat-service.msw.api.gen.ts +2 -3
  181. package/src/gen/agent-pause-cause-service/agent-pause-cause-service.msw.api.gen.ts +1 -1
  182. package/src/gen/agent-service/agent-service.msw.api.gen.ts +1 -1
  183. package/src/gen/agent-skill-service/agent-skill-service.msw.api.gen.ts +1 -1
  184. package/src/gen/agent-team-service/agent-team-service.msw.api.gen.ts +1 -1
  185. package/src/gen/agent-working-conditions-service/agent-working-conditions-service.msw.api.gen.ts +1 -1
  186. package/src/gen/agent-working-schedule-service/agent-working-schedule-service.msw.api.gen.ts +2 -3
  187. package/src/gen/articles/articles.api.gen.ts +1 -1
  188. package/src/gen/articles/articles.msw.api.gen.ts +1 -1
  189. package/src/gen/audit-form-service/audit-form-service.msw.api.gen.ts +2 -3
  190. package/src/gen/auth/auth.msw.api.gen.ts +1 -1
  191. package/src/gen/auth/auth.zod.gen.ts +1 -1
  192. package/src/gen/backend-profile-service/backend-profile-service.msw.api.gen.ts +1 -1
  193. package/src/gen/bucket-service/bucket-service.msw.api.gen.ts +1 -1
  194. package/src/gen/calendar-service/calendar-service.msw.api.gen.ts +1 -1
  195. package/src/gen/call-service/call-service.msw.api.gen.ts +5 -6
  196. package/src/gen/call-service/call-service.zod.gen.ts +1 -1
  197. package/src/gen/case-comments/case-comments.msw.api.gen.ts +1 -1
  198. package/src/gen/case-communications/case-communications.msw.api.gen.ts +1 -1
  199. package/src/gen/case-files/case-files.msw.api.gen.ts +1 -1
  200. package/src/gen/case-links/case-links.msw.api.gen.ts +1 -1
  201. package/src/gen/case-timeline/case-timeline.msw.api.gen.ts +2 -3
  202. package/src/gen/cases/cases.msw.api.gen.ts +2 -3
  203. package/src/gen/cases-chat-catalog/cases-chat-catalog.msw.api.gen.ts +2 -3
  204. package/src/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.ts +1 -1
  205. package/src/gen/catalog/catalog.msw.api.gen.ts +2 -3
  206. package/src/gen/catalog/catalog.zod.gen.ts +3 -3
  207. package/src/gen/catalogs/catalogs.msw.api.gen.ts +1 -1
  208. package/src/gen/catalogs/catalogs.zod.gen.ts +4 -4
  209. package/src/gen/classes/classes.msw.api.gen.ts +1 -1
  210. package/src/gen/classes/classes.zod.gen.ts +1 -1
  211. package/src/gen/close-reason-groups/close-reason-groups.msw.api.gen.ts +1 -1
  212. package/src/gen/close-reasons/close-reasons.msw.api.gen.ts +1 -1
  213. package/src/gen/cognitive-profile-service/cognitive-profile-service.msw.api.gen.ts +2 -3
  214. package/src/gen/communication-type-service/communication-type-service.msw.api.gen.ts +2 -3
  215. package/src/gen/config-service/config-service.msw.api.gen.ts +1 -1
  216. package/src/gen/contact-groups/contact-groups.msw.api.gen.ts +1 -1
  217. package/src/gen/contact-linking-service/contact-linking-service.msw.api.gen.ts +1 -1
  218. package/src/gen/contacts/contacts.msw.api.gen.ts +1 -1
  219. package/src/gen/contacts/contacts.zod.gen.ts +2 -2
  220. package/src/gen/contacts-chat-catalog/contacts-chat-catalog.msw.api.gen.ts +2 -3
  221. package/src/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.ts +2 -2
  222. package/src/gen/customers/customers.msw.api.gen.ts +1 -1
  223. package/src/gen/customers/customers.zod.gen.ts +4 -4
  224. package/src/gen/devices/devices.msw.api.gen.ts +1 -1
  225. package/src/gen/devices/devices.zod.gen.ts +1 -1
  226. package/src/gen/dictionaries/dictionaries.msw.api.gen.ts +2 -3
  227. package/src/gen/dictionaries/dictionaries.zod.gen.ts +16 -16
  228. package/src/gen/domains/domains.msw.api.gen.ts +1 -1
  229. package/src/gen/dynamic-conditions/dynamic-conditions.msw.api.gen.ts +1 -1
  230. package/src/gen/dynamic-groups/dynamic-groups.msw.api.gen.ts +1 -1
  231. package/src/gen/email-profile-service/email-profile-service.msw.api.gen.ts +2 -3
  232. package/src/gen/emails/emails.msw.api.gen.ts +1 -1
  233. package/src/gen/extensions/extensions.msw.api.gen.ts +2 -3
  234. package/src/gen/extensions/extensions.zod.gen.ts +10 -10
  235. package/src/gen/file-policies-service/file-policies-service.msw.api.gen.ts +2 -3
  236. package/src/gen/file-service/file-service.msw.api.gen.ts +2 -3
  237. package/src/gen/file-transcript-service/file-transcript-service.msw.api.gen.ts +1 -1
  238. package/src/gen/forecast-calculation-service/forecast-calculation-service.msw.api.gen.ts +1 -1
  239. package/src/gen/ftsservice/ftsservice.msw.api.gen.ts +1 -1
  240. package/src/gen/groups/groups.msw.api.gen.ts +2 -3
  241. package/src/gen/imclients/imclients.msw.api.gen.ts +1 -1
  242. package/src/gen/import-template-service/import-template-service.msw.api.gen.ts +2 -3
  243. package/src/gen/index.ts +249 -249
  244. package/src/gen/knowledgebase-search/knowledgebase-search.msw.api.gen.ts +1 -1
  245. package/src/gen/labels/labels.msw.api.gen.ts +1 -1
  246. package/src/gen/ldap/ldap.api.gen.ts +4 -4
  247. package/src/gen/ldap/ldap.msw.api.gen.ts +3 -3
  248. package/src/gen/ldap/ldap.zod.gen.ts +6 -6
  249. package/src/gen/list-service/list-service.msw.api.gen.ts +1 -1
  250. package/src/gen/logger-service/logger-service.msw.api.gen.ts +1 -1
  251. package/src/gen/managers/managers.msw.api.gen.ts +1 -1
  252. package/src/gen/media-file-service/media-file-service.msw.api.gen.ts +1 -1
  253. package/src/gen/member-service/member-service.msw.api.gen.ts +1 -1
  254. package/src/gen/member-service/member-service.zod.gen.ts +1 -1
  255. package/src/gen/messages-service/messages-service.msw.api.gen.ts +1 -1
  256. package/src/gen/oauth2-federation/oauth2-federation.msw.api.gen.ts +1 -1
  257. package/src/gen/oauth2-federation/oauth2-federation.zod.gen.ts +2 -2
  258. package/src/gen/outbound-resource-group-service/outbound-resource-group-service.msw.api.gen.ts +1 -1
  259. package/src/gen/outbound-resource-service/outbound-resource-service.msw.api.gen.ts +1 -1
  260. package/src/gen/pause-template-service/pause-template-service.msw.api.gen.ts +1 -1
  261. package/src/gen/permissions/permissions.msw.api.gen.ts +1 -1
  262. package/src/gen/permissions/permissions.zod.gen.ts +1 -1
  263. package/src/gen/phones/phones.msw.api.gen.ts +1 -1
  264. package/src/gen/presence/presence.msw.api.gen.ts +1 -1
  265. package/src/gen/preset-query-service/preset-query-service.msw.api.gen.ts +1 -1
  266. package/src/gen/priorities/priorities.msw.api.gen.ts +1 -1
  267. package/src/gen/queue-bucket-service/queue-bucket-service.msw.api.gen.ts +1 -1
  268. package/src/gen/queue-hook-service/queue-hook-service.msw.api.gen.ts +1 -1
  269. package/src/gen/queue-resources-service/queue-resources-service.msw.api.gen.ts +1 -1
  270. package/src/gen/queue-service/queue-service.msw.api.gen.ts +1 -1
  271. package/src/gen/queue-skill-service/queue-skill-service.msw.api.gen.ts +1 -1
  272. package/src/gen/quick-replies-service/quick-replies-service.msw.api.gen.ts +1 -1
  273. package/src/gen/region-service/region-service.msw.api.gen.ts +1 -1
  274. package/src/gen/related-cases/related-cases.msw.api.gen.ts +2 -3
  275. package/src/gen/routing-chat-plan-service/routing-chat-plan-service.msw.api.gen.ts +1 -1
  276. package/src/gen/routing-outbound-call-service/routing-outbound-call-service.msw.api.gen.ts +1 -1
  277. package/src/gen/routing-schema-service/routing-schema-service.msw.api.gen.ts +2 -3
  278. package/src/gen/routing-variable-service/routing-variable-service.msw.api.gen.ts +1 -1
  279. package/src/gen/schema-variables-service/schema-variables-service.msw.api.gen.ts +1 -1
  280. package/src/gen/schema-version-service/schema-version-service.msw.api.gen.ts +1 -1
  281. package/src/gen/services/services.msw.api.gen.ts +1 -1
  282. package/src/gen/shift-template-service/shift-template-service.msw.api.gen.ts +1 -1
  283. package/src/gen/skill-service/skill-service.msw.api.gen.ts +1 -1
  284. package/src/gen/slaconditions/slaconditions.msw.api.gen.ts +1 -1
  285. package/src/gen/slas/slas.msw.api.gen.ts +1 -1
  286. package/src/gen/sources/sources.msw.api.gen.ts +2 -3
  287. package/src/gen/spaces/spaces.msw.api.gen.ts +1 -1
  288. package/src/gen/spaces/spaces.zod.gen.ts +1 -1
  289. package/src/gen/status-conditions/status-conditions.msw.api.gen.ts +1 -1
  290. package/src/gen/statuses/statuses.msw.api.gen.ts +1 -1
  291. package/src/gen/system-setting-service/system-setting-service.msw.api.gen.ts +2 -3
  292. package/src/gen/tags/tags.msw.api.gen.ts +1 -1
  293. package/src/gen/team-hook-service/team-hook-service.msw.api.gen.ts +2 -3
  294. package/src/gen/team-trigger-service/team-trigger-service.msw.api.gen.ts +1 -1
  295. package/src/gen/timeline/timeline.msw.api.gen.ts +2 -3
  296. package/src/gen/timezones/timezones.msw.api.gen.ts +1 -1
  297. package/src/gen/trigger-service/trigger-service.msw.api.gen.ts +7 -8
  298. package/src/gen/two-factor-authentication/two-factor-authentication.msw.api.gen.ts +1 -1
  299. package/src/gen/types/types.msw.api.gen.ts +2 -3
  300. package/src/gen/types/types.zod.gen.ts +4 -4
  301. package/src/gen/user-access-tokens/user-access-tokens.msw.api.gen.ts +1 -1
  302. package/src/gen/user-helper-service/user-helper-service.msw.api.gen.ts +1 -1
  303. package/src/gen/users/users.msw.api.gen.ts +1 -1
  304. package/src/gen/users/users.zod.gen.ts +12 -12
  305. package/src/gen/variables/variables.msw.api.gen.ts +1 -1
  306. package/src/gen/web-hook-service/web-hook-service.msw.api.gen.ts +1 -1
  307. package/src/gen/working-condition-service/working-condition-service.msw.api.gen.ts +1 -1
  308. package/src/gen/working-schedule-service/working-schedule-service.msw.api.gen.ts +2 -3
  309. package/src/index.ts +2 -2
  310. package/src/utils/api/caseConverters.ts +77 -0
  311. package/src/utils/api/index.ts +1 -0
  312. package/src/utils/gen/index.ts +54 -34
  313. package/src/utils/index.ts +1 -15
  314. package/src/validations/caseSource/caseSource.validations.ts +3 -5
  315. package/types/api/axios/generateInstance.d.ts +9 -2
  316. package/types/api/axios/index.d.ts +1 -1
  317. package/types/api/clients/agents/agentChats.d.ts +1 -2
  318. package/types/api/clients/agents/agents.d.ts +1 -2
  319. package/types/api/clients/buckets/buckets.d.ts +1 -2
  320. package/types/api/clients/calendars/calendars.d.ts +1 -2
  321. package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +1 -2
  322. package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +1 -2
  323. package/types/api/clients/casePriorities/casePriorities.d.ts +1 -2
  324. package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +1 -2
  325. package/types/api/clients/caseServices/services.d.ts +1 -2
  326. package/types/api/clients/caseSources/caseSources.d.ts +1 -2
  327. package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +3 -3
  328. package/types/api/clients/caseStatuses/caseStatuses.d.ts +1 -2
  329. package/types/api/clients/catalog/catalog.d.ts +1 -2
  330. package/types/api/clients/chatGateways/chatGateways.d.ts +4 -2
  331. package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +5 -2
  332. package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +6 -2
  333. package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +6 -2
  334. package/types/api/clients/chatGateways/scripts/generateUri.d.ts +5 -2
  335. package/types/api/clients/communications/communications.d.ts +1 -2
  336. package/types/api/clients/configurations/configurations.d.ts +1 -2
  337. package/types/api/clients/contactGroups/contactGroups.d.ts +1 -2
  338. package/types/api/clients/flows/flow.d.ts +1 -2
  339. package/types/api/clients/gateways/gateways.d.ts +1 -2
  340. package/types/api/clients/history/transcript/callTranscript.d.ts +11 -0
  341. package/types/api/clients/index.d.ts +31 -33
  342. package/types/api/clients/labels/labels.d.ts +1 -2
  343. package/types/api/clients/lists/blacklists.d.ts +1 -2
  344. package/types/api/clients/media/media.d.ts +1 -2
  345. package/types/api/clients/object/object.d.ts +1 -2
  346. package/types/api/clients/queues/queues.d.ts +1 -2
  347. package/types/api/clients/quickReplies/quickReplies.d.ts +1 -2
  348. package/types/api/clients/roles/roles.d.ts +1 -2
  349. package/types/api/clients/skills/skills.d.ts +1 -2
  350. package/types/api/clients/slaConditions/slaConditions.d.ts +1 -2
  351. package/types/api/clients/slas/slas.d.ts +1 -2
  352. package/types/api/clients/teams/teams.d.ts +1 -2
  353. package/types/api/clients/users/users.d.ts +1 -2
  354. package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +1 -1
  355. package/types/api/clients/wtTypes/index.d.ts +2 -0
  356. package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +1 -16
  357. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -17
  358. package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +1 -2
  359. package/types/api/clients//321/201ontacts/contacts.d.ts +1 -2
  360. package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +1 -2
  361. package/types/api/clients//321/201ontacts/index.d.ts +3 -4
  362. package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +5 -2
  363. package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +8 -2
  364. package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +5 -3
  365. package/types/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.d.ts +5 -2
  366. package/types/api/defaults/index.d.ts +4 -5
  367. package/types/api/interceptors/request/index.d.ts +1 -1
  368. package/types/api/interceptors/request/updateToken.interceptor.d.ts +4 -2
  369. package/types/api/interceptors/response/handleUnauthorized.interceptor.d.ts +5 -2
  370. package/types/api/interceptors/response/index.d.ts +1 -1
  371. package/types/api/transformers/applyTransform.d.ts +10 -2
  372. package/types/api/transformers/index.d.ts +2 -3
  373. package/types/config/config.d.ts +7 -0
  374. package/types/gen/_models/casesCaseCustom.d.ts +12 -0
  375. package/types/gen/_models/casesInputCaseCustom.d.ts +12 -0
  376. package/types/gen/_models/casesInputCreateCaseCustom.d.ts +12 -0
  377. package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
  378. package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
  379. package/types/gen/_models/protobufNullValue.d.ts +18 -0
  380. package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
  381. package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
  382. package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
  383. package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
  384. package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
  385. package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +9 -0
  386. package/types/index.d.ts +2 -2
  387. package/types/utils/api/caseConverters.d.ts +9 -0
  388. package/types/utils/api/index.d.ts +1 -0
  389. package/types/utils/index.d.ts +1 -7
  390. package/types/gen/_models/googleRpcStatus.d.ts +0 -12
  391. package/types/gen/_models/webitelCasesStatus.d.ts +0 -16
@@ -1,4 +1,4 @@
1
- declare const CaseStatusesApi: {
1
+ export declare const CaseStatusesAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const CaseStatusesApi: {
21
21
  itemInstance: any;
22
22
  }) => Promise<any>;
23
23
  };
24
- export default CaseStatusesApi;
@@ -1,4 +1,4 @@
1
- declare const CatalogAPI: {
1
+ export declare const CatalogAPI: {
2
2
  getChatMessagesList: ({ chatId }: {
3
3
  chatId: any;
4
4
  }) => Promise<{
@@ -6,4 +6,3 @@ declare const CatalogAPI: {
6
6
  peers: any;
7
7
  }>;
8
8
  };
9
- export default CatalogAPI;
@@ -1,4 +1,7 @@
1
- declare const ChatGatewaysAPI: {
1
+ /**
2
+ * Chat Gateways API for managing chat gateway configurations
3
+ */
4
+ export declare const ChatGatewaysAPI: {
2
5
  getList: (params: any) => Promise<{
3
6
  items: any;
4
7
  next: any;
@@ -25,4 +28,3 @@ declare const ChatGatewaysAPI: {
25
28
  next: any;
26
29
  }>;
27
30
  };
28
- export default ChatGatewaysAPI;
@@ -1,4 +1,8 @@
1
- declare const defaultChatGateway: () => {
1
+ /**
2
+ * Creates a default chat gateway configuration
3
+ * @returns Default chat gateway object
4
+ */
5
+ export declare const defaultChatGateway: () => {
2
6
  name: string;
3
7
  uri: string;
4
8
  flow: {};
@@ -12,4 +16,3 @@ declare const defaultChatGateway: () => {
12
16
  left: string;
13
17
  };
14
18
  };
15
- export default defaultChatGateway;
@@ -1,4 +1,9 @@
1
- declare const webChatGateway: (_btnCodeDirty?: boolean) => {
1
+ /**
2
+ * Creates a default webchat gateway configuration
3
+ * @param _btnCodeDirty - Flag indicating if the "copy code" button should be highlighted
4
+ * @returns Default webchat gateway object
5
+ */
6
+ export declare const webChatGateway: (_btnCodeDirty?: boolean) => {
2
7
  provider: any;
3
8
  metadata: {
4
9
  allowOrigin: any[];
@@ -61,4 +66,3 @@ declare const webChatGateway: (_btnCodeDirty?: boolean) => {
61
66
  left: string;
62
67
  };
63
68
  };
64
- export default webChatGateway;
@@ -1,8 +1,12 @@
1
- declare const WebchatAlternativeChannel: Readonly<{
1
+ /**
2
+ * Difference between MessangerType enum and WebchatAlternativeChannel:
3
+ * MessangerType - backend fields naming, provider
4
+ * WebchatAlternativeChannel - front-end only "simple" channel naming
5
+ */
6
+ export declare const WebchatAlternativeChannel: Readonly<{
2
7
  VIBER: "viber";
3
8
  WHATSAPP: "whatsapp";
4
9
  TELEGRAM: "telegram";
5
10
  MESSENGER: "messenger";
6
11
  EMAIL: "email";
7
12
  }>;
8
- export default WebchatAlternativeChannel;
@@ -1,2 +1,5 @@
1
- declare const _default: () => string;
2
- export default _default;
1
+ /**
2
+ * Generates a random URI for chat gateways
3
+ * @returns A random URI string
4
+ */
5
+ export declare const generateUri: () => string;
@@ -1,4 +1,4 @@
1
- declare const CommunicationsAPI: {
1
+ export declare const CommunicationsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -25,4 +25,3 @@ declare const CommunicationsAPI: {
25
25
  next: any;
26
26
  }>;
27
27
  };
28
- export default CommunicationsAPI;
@@ -1,4 +1,4 @@
1
- declare const ConfigurationsAPI: {
1
+ export declare const ConfigurationsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -25,4 +25,3 @@ declare const ConfigurationsAPI: {
25
25
  next: any;
26
26
  }>;
27
27
  };
28
- export default ConfigurationsAPI;
@@ -1,4 +1,4 @@
1
- declare const ContactGroupsAPI: {
1
+ export declare const ContactGroupsAPI: {
2
2
  getPermissionsList: ({ parentId, ...params }: {
3
3
  [x: string]: any;
4
4
  parentId: any;
@@ -44,4 +44,3 @@ declare const ContactGroupsAPI: {
44
44
  contactIds: any;
45
45
  }) => Promise<any>;
46
46
  };
47
- export default ContactGroupsAPI;
@@ -1,4 +1,4 @@
1
- declare const FlowsAPI: {
1
+ export declare const FlowsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -25,4 +25,3 @@ declare const FlowsAPI: {
25
25
  next: any;
26
26
  }>;
27
27
  };
28
- export default FlowsAPI;
@@ -1,4 +1,4 @@
1
- declare const GatewaysAPI: {
1
+ export declare const GatewaysAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -25,4 +25,3 @@ declare const GatewaysAPI: {
25
25
  next: any;
26
26
  }>;
27
27
  };
28
- export default GatewaysAPI;
@@ -0,0 +1,11 @@
1
+ export declare const CallTranscriptAPI: {
2
+ create: ({ callId }: {
3
+ callId: any;
4
+ }) => Promise<any>;
5
+ get: ({ id, page, size }: {
6
+ id: any;
7
+ page?: number;
8
+ size?: number;
9
+ }) => Promise<any>;
10
+ delete: (item: any) => Promise<any>;
11
+ };
@@ -1,33 +1,31 @@
1
- import agentChats from './agents/agentChats';
2
- import agents from './agents/agents';
3
- import buckets from './buckets/buckets';
4
- import calendars from './calendars/calendars';
5
- import caseCloseReasonGroups from './caseCloseReasonGroups/caseCloseReasonGroups';
6
- import caseCloseReasons from './caseCloseReasons/caseCloseReasons';
7
- import casePriorities from './casePriorities/casePriorities';
8
- import caseServiceCatalogs from './caseServiceCatalogs/serviceCatalogs';
9
- import caseSources from './caseSources/caseSources';
10
- import caseStatusConditions from './caseStatusConditions/caseStatusConditions';
11
- import caseStatuses from './caseStatuses/caseStatuses';
12
- import catalog from './catalog/catalog';
13
- import chatGateways from './chatGateways/chatGateways';
14
- import communications from './communications/communications';
15
- import configurations from './configurations/configurations';
16
- import contactGroups from './contactGroups/contactGroups';
17
- import flows from './flows/flow';
18
- import gateways from './gateways/gateways';
19
- import labels from './labels/labels';
20
- import lists from './lists/blacklists';
21
- import media from './media/media';
22
- import object from './object/object';
23
- import queues from './queues/queues';
24
- import roles from './roles/roles';
25
- import skills from './skills/skills';
26
- import slas from './slas/slas';
27
- import teams from './teams/teams';
28
- import users from './users/users';
29
- import sysTypes from './wtTypes/sysTypes/sysTypes';
30
- import typeExtensions from './wtTypes/typeExtensions/typeExtensions';
31
- import { contactChatMessagesHistory, contacts } from './сontacts/index';
32
- import quickReplies from './quickReplies/quickReplies';
33
- export { agentChats, agents, buckets, calendars, caseCloseReasonGroups, caseCloseReasons, casePriorities, caseServiceCatalogs, caseSources, caseStatusConditions, caseStatuses, catalog, chatGateways, communications, configurations, contactChatMessagesHistory, contactGroups, contacts, flows, gateways, labels, lists, media, object, queues, quickReplies, roles, skills, slas, sysTypes, teams, typeExtensions, users, };
1
+ export * from './_shared/generatePermissionsApi';
2
+ export * from './agents/agentChats';
3
+ export * from './buckets/buckets';
4
+ export * from './calendars/calendars';
5
+ export * from './caseCloseReasonGroups/caseCloseReasonGroups';
6
+ export * from './caseCloseReasons/caseCloseReasons';
7
+ export * from './casePriorities/casePriorities';
8
+ export * from './caseServiceCatalogs/serviceCatalogs';
9
+ export * from './caseSources/caseSources';
10
+ export * from './caseStatusConditions/caseStatusConditions';
11
+ export * from './caseStatuses/caseStatuses';
12
+ export * from './catalog/catalog';
13
+ export * from './communications/communications';
14
+ export * from './configurations/configurations';
15
+ export * from './contactGroups/contactGroups';
16
+ export * from './flows/flow';
17
+ export * from './gateways/gateways';
18
+ export * from './history/transcript/callTranscript';
19
+ export * from './labels/labels';
20
+ export * from './lists/blacklists';
21
+ export * from './media/media';
22
+ export * from './object/object';
23
+ export * from './queues/queues';
24
+ export * from './quickReplies/quickReplies';
25
+ export * from './skills/skills';
26
+ export * from './slas/slas';
27
+ export * from './teams/teams';
28
+ export * from './users/users';
29
+ export * from './wtTypes/sysTypes/sysTypes';
30
+ export * from './wtTypes/typeExtensions/typeExtensions';
31
+ export * from './сontacts';
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const LabelsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -8,4 +8,3 @@ declare const _default: {
8
8
  next: any;
9
9
  }>;
10
10
  };
11
- export default _default;
@@ -1,4 +1,4 @@
1
- declare const BlacklistsAPI: {
1
+ export declare const BlacklistsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const BlacklistsAPI: {
21
21
  next: any;
22
22
  }>;
23
23
  };
24
- export default BlacklistsAPI;
@@ -1,5 +1,5 @@
1
1
  export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any>>;
2
- declare const MediaAPI: {
2
+ export declare const MediaAPI: {
3
3
  getList: (params: any) => Promise<{
4
4
  items: any;
5
5
  next: any;
@@ -16,4 +16,3 @@ declare const MediaAPI: {
16
16
  next: any;
17
17
  }>;
18
18
  };
19
- export default MediaAPI;
@@ -1,4 +1,4 @@
1
- declare const ObjectsApi: {
1
+ export declare const ObjectsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -8,4 +8,3 @@ declare const ObjectsApi: {
8
8
  next: any;
9
9
  }>;
10
10
  };
11
- export default ObjectsApi;
@@ -1,4 +1,4 @@
1
- declare const QueuesAPI: {
1
+ export declare const QueuesAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -29,4 +29,3 @@ declare const QueuesAPI: {
29
29
  next: any;
30
30
  }>;
31
31
  };
32
- export default QueuesAPI;
@@ -1,4 +1,4 @@
1
- declare const QuickRepliesApi: {
1
+ export declare const QuickRepliesAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const QuickRepliesApi: {
21
21
  next: any;
22
22
  }>;
23
23
  };
24
- export default QuickRepliesApi;
@@ -1,4 +1,4 @@
1
- declare const RolesAPI: {
1
+ export declare const RolesAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -29,4 +29,3 @@ declare const RolesAPI: {
29
29
  next: any;
30
30
  }>;
31
31
  };
32
- export default RolesAPI;
@@ -1,4 +1,4 @@
1
- declare const SkillsAPI: {
1
+ export declare const SkillsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const SkillsAPI: {
21
21
  next: any;
22
22
  }>;
23
23
  };
24
- export default SkillsAPI;
@@ -1,4 +1,4 @@
1
- declare const SLAConditionsAPI: {
1
+ export declare const SLAConditionsAPI: {
2
2
  getList: ({ parentId, ...rest }: {
3
3
  [x: string]: any;
4
4
  parentId: any;
@@ -27,4 +27,3 @@ declare const SLAConditionsAPI: {
27
27
  next: any;
28
28
  }>;
29
29
  };
30
- export default SLAConditionsAPI;
@@ -1,4 +1,4 @@
1
- declare const SlasAPI: {
1
+ export declare const SlasAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const SlasAPI: {
21
21
  id: any;
22
22
  }) => Promise<any>;
23
23
  };
24
- export default SlasAPI;
@@ -1,4 +1,4 @@
1
- declare const TeamsAPI: {
1
+ export declare const TeamsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -21,4 +21,3 @@ declare const TeamsAPI: {
21
21
  next: any;
22
22
  }>;
23
23
  };
24
- export default TeamsAPI;
@@ -1,4 +1,4 @@
1
- declare const UsersAPI: {
1
+ export declare const UsersAPI: {
2
2
  getPermissionsList: ({ parentId, ...params }: {
3
3
  [x: string]: any;
4
4
  parentId: any;
@@ -43,4 +43,3 @@ declare const UsersAPI: {
43
43
  id: any;
44
44
  }) => Promise<any>;
45
45
  };
46
- export default UsersAPI;
@@ -1,2 +1,2 @@
1
- import { WebitelProtoDataStruct } from 'webitel-sdk';
1
+ import type { WebitelProtoDataStruct } from 'webitel-sdk';
2
2
  export declare const sortDynamicFields: (item: WebitelProtoDataStruct) => WebitelProtoDataStruct;
@@ -0,0 +1,2 @@
1
+ export * from './sysTypes/sysTypes';
2
+ export * from './typeExtensions/typeExtensions';
@@ -1,17 +1,4 @@
1
- declare const getSysTypeRecordsList: ({ path, display, primary, ...params }: {
2
- [x: string]: any;
3
- path: any;
4
- display: any;
5
- primary: any;
6
- }) => Promise<{
7
- items: any;
8
- next: any;
9
- }>;
10
- declare const getSysTypeRecordsLookup: (params: any) => Promise<{
11
- items: any;
12
- next: any;
13
- }>;
14
- declare const SysTypesApi: {
1
+ export declare const SysTypesAPI: {
15
2
  getList: ({ path, display, primary, ...params }: {
16
3
  [x: string]: any;
17
4
  path: any;
@@ -26,5 +13,3 @@ declare const SysTypesApi: {
26
13
  next: any;
27
14
  }>;
28
15
  };
29
- export { getSysTypeRecordsList, getSysTypeRecordsLookup };
30
- export default SysTypesApi;
@@ -1,18 +1,4 @@
1
- declare const getTypeExtension: ({ itemId: typeRepo }: {
2
- itemId: any;
3
- }) => Promise<any>;
4
- declare const addTypeExtension: ({ itemInstance, itemId: typeRepo }: {
5
- itemInstance: any;
6
- itemId: any;
7
- }) => Promise<any>;
8
- declare const deleteTypeExtension: ({ itemId: typeRepo }: {
9
- itemId: any;
10
- }) => Promise<void>;
11
- declare const updateTypeExtension: ({ itemInstance, itemId: typeRepo }: {
12
- itemInstance: any;
13
- itemId: any;
14
- }) => Promise<any>;
15
- declare const WtTypeExtensionApi: {
1
+ export declare const WtTypeExtensionAPI: {
16
2
  getList: ({ itemId: typeRepo }: {
17
3
  itemId: any;
18
4
  }) => Promise<any>;
@@ -28,5 +14,3 @@ declare const WtTypeExtensionApi: {
28
14
  itemId: any;
29
15
  }) => Promise<void>;
30
16
  };
31
- export { addTypeExtension, deleteTypeExtension, getTypeExtension, updateTypeExtension, };
32
- export default WtTypeExtensionApi;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const ContactChatMessagesAPI: {
2
2
  getChat: ({ contactId, chatId }: {
3
3
  contactId: any;
4
4
  chatId: any;
@@ -11,4 +11,3 @@ declare const _default: {
11
11
  next: any;
12
12
  }>;
13
13
  };
14
- export default _default;
@@ -1,4 +1,4 @@
1
- declare const ContactsAPI: {
1
+ export declare const ContactsAPI: {
2
2
  getList: (params: any) => Promise<{
3
3
  items: any;
4
4
  next: any;
@@ -20,4 +20,3 @@ declare const ContactsAPI: {
20
20
  next: any;
21
21
  }>;
22
22
  };
23
- export default ContactsAPI;
@@ -1,8 +1,7 @@
1
- declare const ContactsSearchMode: Readonly<{
1
+ export declare const ContactsSearchMode: Readonly<{
2
2
  NAME: "name";
3
3
  LABELS: "labels";
4
4
  ABOUT: "about";
5
5
  VARIABLES: "variables";
6
6
  DESTINATION: "destination";
7
7
  }>;
8
- export default ContactsSearchMode;
@@ -1,4 +1,3 @@
1
- import contactChatMessagesHistory from './contactChatMessagesHistory';
2
- import contacts from './contacts';
3
- import ContactsSearchMode from './enums/ContactsSearchMode';
4
- export { contactChatMessagesHistory, contacts, ContactsSearchMode };
1
+ export * from './contactChatMessagesHistory';
2
+ export * from './contacts';
3
+ export * from './enums/ContactsSearchMode';
@@ -1,5 +1,8 @@
1
- declare const getDefaultGetListResponse: ({}?: {}) => {
1
+ /**
2
+ * Creates a default response object for list operations
3
+ * @returns Default list response object with empty items array and next=false
4
+ */
5
+ export declare const getDefaultGetListResponse: ({}?: {}) => {
2
6
  items: any[];
3
7
  next: boolean;
4
8
  };
5
- export default getDefaultGetListResponse;
@@ -1,8 +1,14 @@
1
- declare const getDefaultGetParams: ({ page, size }?: {
1
+ /**
2
+ * Creates default parameters for get operations with pagination
3
+ * @param options - Options for the parameters
4
+ * @param options.page - Page number (default: 1)
5
+ * @param options.size - Page size (default: 10)
6
+ * @returns Default parameters object with page and size
7
+ */
8
+ export declare const getDefaultGetParams: ({ page, size }?: {
2
9
  page?: number;
3
10
  size?: number;
4
11
  }) => {
5
12
  page: number;
6
13
  size: number;
7
14
  };
8
- export default getDefaultGetParams;
@@ -1,3 +1,5 @@
1
- declare const getDefaultInstance: () => import("@aliasedDeps/api-services/axios").AxiosInstance;
2
- export { getDefaultInstance };
3
- export default getDefaultInstance;
1
+ /**
2
+ * Creates a default Axios instance with standard configuration
3
+ * @returns Configured Axios instance
4
+ */
5
+ export declare const getDefaultInstance: () => import("@aliasedDeps/api-services/axios").AxiosInstance;
@@ -1,3 +1,6 @@
1
1
  import { Configuration } from 'webitel-sdk';
2
- declare const getDefaultOpenAPIConfig: () => Configuration;
3
- export default getDefaultOpenAPIConfig;
2
+ /**
3
+ * Creates a default configuration for OpenAPI clients
4
+ * @returns Configuration object with basePath, apiKey, and accessToken
5
+ */
6
+ export declare const getDefaultOpenAPIConfig: () => Configuration;
@@ -1,5 +1,4 @@
1
- import getDefaultGetListResponse from './getDefaultGetListResponse/getDefaultGetListResponse';
2
- import getDefaultGetParams from './getDefaultGetParams/getDefaultGetParams';
3
- import getDefaultInstance from './getDefaultInstance/getDefaultInstance';
4
- import getDefaultOpenAPIConfig from './getDefaultOpenAPIConfig/getDefaultOpenAPIConfig';
5
- export { getDefaultGetListResponse, getDefaultGetParams, getDefaultInstance, getDefaultOpenAPIConfig, };
1
+ export * from './getDefaultGetListResponse/getDefaultGetListResponse';
2
+ export * from './getDefaultGetParams/getDefaultGetParams';
3
+ export * from './getDefaultInstance/getDefaultInstance';
4
+ export * from './getDefaultOpenAPIConfig/getDefaultOpenAPIConfig';
@@ -1 +1 @@
1
- export { default as updateTokenInterceptor } from './updateToken.interceptor';
1
+ export { updateTokenInterceptor } from './updateToken.interceptor';
@@ -1,2 +1,4 @@
1
- declare const updateTokenInterceptor: ((config: any) => any)[];
2
- export default updateTokenInterceptor;
1
+ /**
2
+ * Axios request interceptor that updates the X-Webitel-Access header with the current access token
3
+ */
4
+ export declare const updateTokenInterceptor: ((config: any) => any)[];
@@ -1,2 +1,5 @@
1
- declare const handleUnauthorizedInterceptor: ((response: any) => any)[];
2
- export default handleUnauthorizedInterceptor;
1
+ /**
2
+ * Axios response interceptor that handles 401 Unauthorized responses
3
+ * by removing the access token from localStorage
4
+ */
5
+ export declare const handleUnauthorizedInterceptor: ((response: any) => any)[];
@@ -1 +1 @@
1
- export { default as handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
1
+ export { handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
@@ -1,5 +1,13 @@
1
- declare const applyTransform: (target: any, transformers: any, { debug, withContext }?: {
1
+ /**
2
+ * Applies a series of transformers to a target object
3
+ * @param target - The object to transform
4
+ * @param transformers - Array of transformer functions to apply
5
+ * @param options - Configuration options
6
+ * @param options.debug - Whether to log debug information
7
+ * @param options.withContext - Context to pass to transformers
8
+ * @returns The transformed object
9
+ */
10
+ export declare const applyTransform: (target: any, transformers: any, { debug, withContext }?: {
2
11
  debug?: boolean;
3
12
  withContext?: any;
4
13
  }) => any;
5
- export default applyTransform;
@@ -1,5 +1,5 @@
1
1
  import addQueryParamsToUrl from './addQueryParamsToUrl/addQueryParamsToUrl.transformer';
2
- import applyTransform from './applyTransform';
2
+ import { applyTransform } from './applyTransform';
3
3
  import camelToSnake from './camelToSnake/camelToSnake.transformer';
4
4
  import generateUrl from './generateUrl/generateUrl.transformer';
5
5
  import log from './log/log.transformer';
@@ -10,5 +10,4 @@ import sanitize from './sanitize/sanitize.transformer';
10
10
  import { skipIf } from './skipIf/skipIf';
11
11
  import snakeToCamel from './snakeToCamel/snakeToCamel.transformer';
12
12
  import starToSearch from './starToSearch/starToSearch.transformer';
13
- export { addQueryParamsToUrl, camelToSnake, generateUrl, log, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
14
- export default applyTransform;
13
+ export { addQueryParamsToUrl, applyTransform, camelToSnake, generateUrl, log, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
@@ -0,0 +1,7 @@
1
+ export type ApiServicesConfig = {
2
+ eventBus?: {
3
+ $emit: (event: string, payload: unknown) => unknown;
4
+ };
5
+ };
6
+ export declare const config: ApiServicesConfig;
7
+ export declare const setConfig: (conf: ApiServicesConfig) => void;
@@ -0,0 +1,12 @@
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
+ /**
8
+ * Custom data extension fields ..
9
+ */
10
+ export type CasesCaseCustom = {
11
+ [key: string]: unknown;
12
+ };
@@ -0,0 +1,12 @@
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
+ /**
8
+ * Custom data extension fields ..
9
+ */
10
+ export type CasesInputCaseCustom = {
11
+ [key: string]: unknown;
12
+ };