@webitel/api-services 0.0.23 → 0.0.25

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 (205) hide show
  1. package/package.json +14 -10
  2. package/src/api/axios/generateInstance.ts +30 -0
  3. package/src/api/axios/index.ts +2 -0
  4. package/src/api/clients/_shared/generatePermissionsApi.ts +97 -0
  5. package/src/api/clients/agents/agentChats.ts +74 -0
  6. package/src/api/clients/agents/agents.ts +265 -0
  7. package/src/api/clients/buckets/buckets.ts +112 -0
  8. package/src/api/clients/calendars/calendars.ts +214 -0
  9. package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +128 -0
  10. package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +128 -0
  11. package/src/api/clients/casePriorities/casePriorities.ts +139 -0
  12. package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +198 -0
  13. package/src/api/clients/caseServices/services.ts +181 -0
  14. package/src/api/clients/caseSources/caseSources.ts +121 -0
  15. package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +165 -0
  16. package/src/api/clients/caseStatuses/caseStatuses.ts +119 -0
  17. package/src/api/clients/catalog/catalog.ts +44 -0
  18. package/src/api/clients/chatGateways/chatGateways.ts +302 -0
  19. package/src/api/clients/chatGateways/defaults/defaultChatGateway.ts +18 -0
  20. package/src/api/clients/chatGateways/defaults/webChatGateway.ts +72 -0
  21. package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.ts +14 -0
  22. package/src/api/clients/chatGateways/scripts/generateUri.ts +9 -0
  23. package/src/api/clients/communications/communications.ts +141 -0
  24. package/src/api/clients/configurations/configurations.ts +144 -0
  25. package/src/api/clients/contactGroups/contactGroups.ts +187 -0
  26. package/src/api/clients/flows/flow.ts +225 -0
  27. package/src/api/clients/gateways/defaults/defaultGateway.ts +9 -0
  28. package/src/api/clients/gateways/defaults/registerGateway.ts +12 -0
  29. package/src/api/clients/gateways/defaults/trunkingGateway.ts +16 -0
  30. package/src/api/clients/gateways/gateways.ts +175 -0
  31. package/src/api/clients/index.ts +68 -0
  32. package/src/api/clients/labels/labels.ts +56 -0
  33. package/src/api/clients/lists/blacklists.ts +118 -0
  34. package/src/api/clients/media/media.ts +120 -0
  35. package/src/api/clients/object/object.ts +114 -0
  36. package/src/api/clients/queues/defaults/processing.ts +14 -0
  37. package/src/api/clients/queues/queues.ts +238 -0
  38. package/src/api/clients/quickReplies/quickReplies.ts +117 -0
  39. package/src/api/clients/roles/roles.ts +202 -0
  40. package/src/api/clients/skills/skills.ts +112 -0
  41. package/src/api/clients/slaConditions/slaConditions.ts +165 -0
  42. package/src/api/clients/slas/slas.ts +118 -0
  43. package/src/api/clients/teams/teams.ts +144 -0
  44. package/src/api/clients/users/__tests__/users.spec.ts +265 -0
  45. package/src/api/clients/users/users.ts +230 -0
  46. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +21 -0
  47. package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +64 -0
  48. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +122 -0
  49. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +98 -0
  50. package/src/api/clients//321/201ontacts/contacts.ts +339 -0
  51. package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +9 -0
  52. package/src/api/clients//321/201ontacts/index.ts +5 -0
  53. package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.ts +6 -0
  54. package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.ts +6 -0
  55. package/src/api/defaults/getDefaultInstance/getDefaultInstance.ts +21 -0
  56. package/src/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.ts +10 -0
  57. package/src/api/defaults/index.ts +11 -0
  58. package/src/api/index.ts +6 -0
  59. package/src/api/interceptors/index.ts +3 -0
  60. package/src/api/interceptors/request/index.ts +2 -0
  61. package/src/api/interceptors/request/updateToken.interceptor.ts +10 -0
  62. package/src/api/interceptors/response/handleUnauthorized.interceptor.ts +12 -0
  63. package/src/api/interceptors/response/index.ts +2 -0
  64. package/src/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.ts +19 -0
  65. package/src/api/transformers/applyTransform.ts +17 -0
  66. package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +5 -0
  67. package/src/api/transformers/generateUrl/generateUrl.transformer.ts +13 -0
  68. package/src/api/transformers/index.ts +28 -0
  69. package/src/api/transformers/log/log.transformer.ts +6 -0
  70. package/src/api/transformers/merge/merge.transformer.ts +8 -0
  71. package/src/api/transformers/mergeEach/mergeEach.transformer.ts +8 -0
  72. package/src/api/transformers/notify/notify.transformer.ts +39 -0
  73. package/src/api/transformers/sanitize/sanitize.transformer.ts +12 -0
  74. package/src/api/transformers/skipIf/skipIf.ts +11 -0
  75. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +5 -0
  76. package/src/api/transformers/starToSearch/starToSearch.transformer.ts +15 -0
  77. package/src/gen/_docs/html/assets/navigation.js +1 -1
  78. package/src/gen/_docs/html/assets/search.js +1 -1
  79. package/src/gen/_docs/html/interfaces/_models_webitelCasesInputSource.WebitelCasesInputSource.html +0 -1
  80. package/src/gen/_docs/html/interfaces/_models_webitelCasesSource.WebitelCasesSource.html +5 -6
  81. package/src/gen/_docs/html/modules/index.html +1 -1
  82. package/src/gen/_docs/html/modules/sources_sources.zod.gen.html +7 -7
  83. package/src/gen/_docs/html/types/_models_createCaseParams.CreateCaseParams.html +9 -3
  84. package/src/gen/_docs/html/types/_models_updateCase2Params.UpdateCase2Params.html +8 -3
  85. package/src/gen/_docs/html/types/_models_updateCaseParams.UpdateCaseParams.html +8 -3
  86. package/src/gen/_docs/html/variables/cases_cases.zod.gen.createCaseQueryParams.html +1 -1
  87. package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2QueryParams.html +1 -1
  88. package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseQueryParams.html +1 -1
  89. package/src/gen/_models/createCaseParams.ts +8 -0
  90. package/src/gen/_models/updateCase2Params.ts +8 -0
  91. package/src/gen/_models/updateCaseParams.ts +8 -0
  92. package/src/gen/_models/webitelCasesInputSource.ts +0 -1
  93. package/src/gen/_models/webitelCasesSource.ts +5 -6
  94. package/src/gen/cases/cases.zod.gen.ts +18 -0
  95. package/src/gen/sources/sources.msw.api.gen.ts +6 -6
  96. package/src/gen/sources/sources.zod.gen.ts +0 -27
  97. package/types/api/axios/generateInstance.d.ts +2 -0
  98. package/types/api/axios/index.d.ts +1 -0
  99. package/types/api/clients/_shared/generatePermissionsApi.d.ts +13 -0
  100. package/types/api/clients/agents/agentChats.d.ts +8 -0
  101. package/types/api/clients/agents/agents.d.ts +44 -0
  102. package/types/api/clients/buckets/buckets.d.ts +24 -0
  103. package/types/api/clients/calendars/calendars.d.ts +28 -0
  104. package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +24 -0
  105. package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +30 -0
  106. package/types/api/clients/casePriorities/casePriorities.d.ts +24 -0
  107. package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +24 -0
  108. package/types/api/clients/caseServices/services.d.ts +35 -0
  109. package/types/api/clients/caseSources/caseSources.d.ts +24 -0
  110. package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +36 -0
  111. package/types/api/clients/caseStatuses/caseStatuses.d.ts +24 -0
  112. package/types/api/clients/catalog/catalog.d.ts +9 -0
  113. package/types/api/clients/chatGateways/chatGateways.d.ts +28 -0
  114. package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +15 -0
  115. package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +64 -0
  116. package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +8 -0
  117. package/types/api/clients/chatGateways/scripts/generateUri.d.ts +2 -0
  118. package/types/api/clients/communications/communications.d.ts +28 -0
  119. package/types/api/clients/configurations/configurations.d.ts +28 -0
  120. package/types/api/clients/contactGroups/contactGroups.d.ts +47 -0
  121. package/types/api/clients/flows/flow.d.ts +28 -0
  122. package/types/api/clients/gateways/defaults/defaultGateway.d.ts +8 -0
  123. package/types/api/clients/gateways/defaults/registerGateway.d.ts +13 -0
  124. package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +11 -0
  125. package/types/api/clients/gateways/gateways.d.ts +28 -0
  126. package/types/api/clients/index.d.ts +33 -0
  127. package/types/api/clients/labels/labels.d.ts +11 -0
  128. package/types/api/clients/lists/blacklists.d.ts +24 -0
  129. package/types/api/clients/media/media.d.ts +19 -0
  130. package/types/api/clients/object/object.d.ts +11 -0
  131. package/types/api/clients/queues/defaults/processing.d.ts +7 -0
  132. package/types/api/clients/queues/queues.d.ts +32 -0
  133. package/types/api/clients/quickReplies/quickReplies.d.ts +24 -0
  134. package/types/api/clients/roles/roles.d.ts +32 -0
  135. package/types/api/clients/skills/skills.d.ts +24 -0
  136. package/types/api/clients/slaConditions/slaConditions.d.ts +30 -0
  137. package/types/api/clients/slas/slas.d.ts +24 -0
  138. package/types/api/clients/teams/teams.d.ts +24 -0
  139. package/types/api/clients/users/users.d.ts +46 -0
  140. package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +2 -0
  141. package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +30 -0
  142. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +32 -0
  143. package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +14 -0
  144. package/types/api/clients//321/201ontacts/contacts.d.ts +23 -0
  145. package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +8 -0
  146. package/types/api/clients//321/201ontacts/index.d.ts +4 -0
  147. package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +5 -0
  148. package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +8 -0
  149. package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +3 -0
  150. package/types/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.d.ts +3 -0
  151. package/types/api/defaults/index.d.ts +5 -0
  152. package/types/api/index.d.ts +5 -0
  153. package/types/api/interceptors/index.d.ts +2 -0
  154. package/types/api/interceptors/request/index.d.ts +1 -0
  155. package/types/api/interceptors/request/updateToken.interceptor.d.ts +2 -0
  156. package/types/api/interceptors/response/handleUnauthorized.interceptor.d.ts +2 -0
  157. package/types/api/interceptors/response/index.d.ts +1 -0
  158. package/types/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.d.ts +2 -0
  159. package/types/api/transformers/applyTransform.d.ts +5 -0
  160. package/types/api/transformers/camelToSnake/camelToSnake.transformer.d.ts +2 -0
  161. package/types/api/transformers/generateUrl/generateUrl.transformer.d.ts +2 -0
  162. package/types/api/transformers/index.d.ts +14 -0
  163. package/types/api/transformers/log/log.transformer.d.ts +2 -0
  164. package/types/api/transformers/merge/merge.transformer.d.ts +2 -0
  165. package/types/api/transformers/mergeEach/mergeEach.transformer.d.ts +2 -0
  166. package/types/api/transformers/notify/notify.transformer.d.ts +2 -0
  167. package/types/api/transformers/sanitize/sanitize.transformer.d.ts +2 -0
  168. package/types/api/transformers/skipIf/skipIf.d.ts +1 -0
  169. package/types/api/transformers/snakeToCamel/snakeToCamel.transformer.d.ts +2 -0
  170. package/types/api/transformers/starToSearch/starToSearch.transformer.d.ts +2 -0
  171. package/types/gen/_models/configServicePatchConfigBody.d.ts +15 -0
  172. package/types/gen/_models/configServiceUpdateConfigBody.d.ts +14 -0
  173. package/types/gen/_models/engineTriggerObjectType.d.ts +0 -1
  174. package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +0 -2
  175. package/types/gen/_models/googlerpcStatus.d.ts +4 -4
  176. package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +12 -0
  177. package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +9 -0
  178. package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +10 -0
  179. package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +9 -0
  180. package/types/gen/_models/readSystemObjectsParams.d.ts +9 -0
  181. package/types/gen/_models/searchConfigObjectItem.d.ts +25 -0
  182. package/types/gen/_models/searchConfigParams.d.ts +18 -0
  183. package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +14 -0
  184. package/types/gen/_models/searchLogByConfigIdParams.d.ts +19 -0
  185. package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +14 -0
  186. package/types/gen/_models/searchLogByRecordIdParams.d.ts +22 -0
  187. package/types/gen/_models/searchLogByUserIdActionItem.d.ts +14 -0
  188. package/types/gen/_models/searchLogByUserIdParams.d.ts +25 -0
  189. package/types/gen/_models/storageUploadFileChannel.d.ts +0 -2
  190. package/types/gen/_models/webitelcasesStatus.d.ts +2 -2
  191. package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +0 -18
  192. package/types/gen/file-service/file-service.api.gen.d.ts +1 -3
  193. package/types/gen/file-service/file-service.msw.api.gen.d.ts +1 -3
  194. package/types/gen/file-service/file-service.zod.gen.d.ts +0 -18
  195. package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +0 -9
  196. package/src/defaults/index.ts +0 -2
  197. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceBodyNameRegExp.html +0 -1
  198. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceResponseNameRegExp.html +0 -1
  199. package/src/gen/_docs/html/variables/sources_sources.zod.gen.deleteSourceResponseNameRegExp.html +0 -1
  200. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesResponseItemsItemNameRegExp.html +0 -1
  201. package/src/gen/_docs/html/variables/sources_sources.zod.gen.locateSourceResponseSourceNameRegExp.html +0 -1
  202. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2BodyNameRegExp.html +0 -1
  203. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2ResponseNameRegExp.html +0 -1
  204. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceBodyNameRegExp.html +0 -1
  205. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceResponseNameRegExp.html +0 -1
@@ -0,0 +1,28 @@
1
+ declare const GatewaysAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ patch: ({ changes, id }: {
13
+ changes: any;
14
+ id: any;
15
+ }) => Promise<any>;
16
+ update: ({ itemInstance, itemId: id }: {
17
+ itemInstance: any;
18
+ itemId: any;
19
+ }) => Promise<any>;
20
+ delete: ({ id }: {
21
+ id: any;
22
+ }) => Promise<any>;
23
+ getLookup: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ };
28
+ export default GatewaysAPI;
@@ -0,0 +1,33 @@
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, };
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ getLookup: (params: any) => Promise<{
7
+ items: any;
8
+ next: any;
9
+ }>;
10
+ };
11
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const BlacklistsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance, itemId: id }: {
13
+ itemInstance: any;
14
+ itemId: any;
15
+ }) => Promise<any>;
16
+ delete: ({ id }: {
17
+ id: any;
18
+ }) => Promise<any>;
19
+ getLookup: (params: any) => Promise<{
20
+ items: any;
21
+ next: any;
22
+ }>;
23
+ };
24
+ export default BlacklistsAPI;
@@ -0,0 +1,19 @@
1
+ export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any>>;
2
+ declare const MediaAPI: {
3
+ getList: (params: any) => Promise<{
4
+ items: any;
5
+ next: any;
6
+ }>;
7
+ get: ({ itemId }: {
8
+ itemId: any;
9
+ }) => Promise<import("axios").AxiosResponse<any, any>>;
10
+ add: (params: any) => Promise<import("axios").AxiosResponse<any, any>>;
11
+ delete: ({ id }: {
12
+ id: any;
13
+ }) => Promise<any>;
14
+ getLookup: (params: any) => Promise<{
15
+ items: any;
16
+ next: any;
17
+ }>;
18
+ };
19
+ export default MediaAPI;
@@ -0,0 +1,11 @@
1
+ declare const ObjectsApi: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ getLookup: (params: any) => Promise<{
7
+ items: any;
8
+ next: any;
9
+ }>;
10
+ };
11
+ export default ObjectsApi;
@@ -0,0 +1,7 @@
1
+ declare const processing: (processing?: {}) => {
2
+ enabled: boolean;
3
+ formSchema: {};
4
+ sec: number;
5
+ renewalSec: number;
6
+ };
7
+ export default processing;
@@ -0,0 +1,32 @@
1
+ declare const QueuesAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ patch: ({ id, changes }: {
13
+ id: any;
14
+ changes: any;
15
+ }) => Promise<any>;
16
+ update: ({ itemInstance, itemId: id }: {
17
+ itemInstance: any;
18
+ itemId: any;
19
+ }) => Promise<any>;
20
+ delete: ({ id }: {
21
+ id: any;
22
+ }) => Promise<any>;
23
+ getLookup: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ getQueuesTags: (params: any) => Promise<{
28
+ items: any;
29
+ next: any;
30
+ }>;
31
+ };
32
+ export default QueuesAPI;
@@ -0,0 +1,24 @@
1
+ declare const QuickRepliesApi: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance, itemId: id }: {
13
+ itemInstance: any;
14
+ itemId: any;
15
+ }) => Promise<any>;
16
+ delete: ({ id }: {
17
+ id: any;
18
+ }) => Promise<any>;
19
+ getLookup: (params: any) => Promise<{
20
+ items: any;
21
+ next: any;
22
+ }>;
23
+ };
24
+ export default QuickRepliesApi;
@@ -0,0 +1,32 @@
1
+ declare const RolesAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance, itemId: id }: {
13
+ itemInstance: any;
14
+ itemId: any;
15
+ }) => Promise<any>;
16
+ delete: ({ id }: {
17
+ id: any;
18
+ }) => Promise<any>;
19
+ getLookup: (params: any) => Promise<{
20
+ items: any;
21
+ next: any;
22
+ }>;
23
+ getExtendedRoles: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ getPermissionsOptions: (params: any) => Promise<{
28
+ items: any;
29
+ next: any;
30
+ }>;
31
+ };
32
+ export default RolesAPI;
@@ -0,0 +1,24 @@
1
+ declare const SkillsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance, itemId: id }: {
13
+ itemInstance: any;
14
+ itemId: any;
15
+ }) => Promise<any>;
16
+ delete: ({ id }: {
17
+ id: any;
18
+ }) => Promise<any>;
19
+ getLookup: (params: any) => Promise<{
20
+ items: any;
21
+ next: any;
22
+ }>;
23
+ };
24
+ export default SkillsAPI;
@@ -0,0 +1,30 @@
1
+ declare const SLAConditionsAPI: {
2
+ getList: ({ parentId, ...rest }: {
3
+ [x: string]: any;
4
+ parentId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ get: ({ parentId, itemId: id }: {
10
+ parentId: any;
11
+ itemId: any;
12
+ }) => Promise<any>;
13
+ update: ({ itemInstance, itemId: id }: {
14
+ itemInstance: any;
15
+ itemId: any;
16
+ }) => Promise<any>;
17
+ delete: ({ id, parentId }: {
18
+ id: any;
19
+ parentId: any;
20
+ }) => Promise<any>;
21
+ add: ({ itemInstance, parentId }: {
22
+ itemInstance: any;
23
+ parentId: any;
24
+ }) => Promise<any>;
25
+ getLookup: (params: any) => Promise<{
26
+ items: any;
27
+ next: any;
28
+ }>;
29
+ };
30
+ export default SLAConditionsAPI;
@@ -0,0 +1,24 @@
1
+ declare const SlasAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ getLookup: (params: any) => Promise<{
7
+ items: any;
8
+ next: any;
9
+ }>;
10
+ get: ({ itemId: id }: {
11
+ itemId: any;
12
+ }) => Promise<any>;
13
+ add: ({ itemInstance }: {
14
+ itemInstance: any;
15
+ }) => Promise<any>;
16
+ update: ({ itemInstance, itemId: id }: {
17
+ itemInstance: any;
18
+ itemId: any;
19
+ }) => Promise<any>;
20
+ delete: ({ id }: {
21
+ id: any;
22
+ }) => Promise<any>;
23
+ };
24
+ export default SlasAPI;
@@ -0,0 +1,24 @@
1
+ declare const TeamsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance, itemId: id }: {
13
+ itemInstance: any;
14
+ itemId: any;
15
+ }) => Promise<any>;
16
+ delete: ({ id }: {
17
+ id: any;
18
+ }) => Promise<any>;
19
+ getLookup: (params: any) => Promise<{
20
+ items: any;
21
+ next: any;
22
+ }>;
23
+ };
24
+ export default TeamsAPI;
@@ -0,0 +1,46 @@
1
+ declare const UsersAPI: {
2
+ getPermissionsList: ({ parentId, ...params }: {
3
+ [x: string]: any;
4
+ parentId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ patchPermissions: ({ changes, id }: {
10
+ changes: any;
11
+ id: any;
12
+ }) => Promise<any>;
13
+ getList: (params: any) => Promise<{
14
+ items: any;
15
+ next: any;
16
+ }>;
17
+ get: ({ itemId: id }: {
18
+ itemId: any;
19
+ }) => Promise<any>;
20
+ add: ({ itemInstance }: {
21
+ itemInstance: any;
22
+ }) => Promise<any>;
23
+ patch: ({ changes, id }: {
24
+ changes: any;
25
+ id: any;
26
+ }) => Promise<any>;
27
+ update: ({ itemInstance, itemId: id }: {
28
+ itemInstance: any;
29
+ itemId: any;
30
+ }) => Promise<any>;
31
+ delete: ({ id }: {
32
+ id: any;
33
+ }) => Promise<any>;
34
+ getLookup: (params: any) => Promise<{
35
+ items: any;
36
+ next: any;
37
+ }>;
38
+ patchUserPresence: ({ changes, id }: {
39
+ changes: any;
40
+ id: any;
41
+ }) => Promise<any>;
42
+ logoutUser: ({ id }: {
43
+ id: any;
44
+ }) => Promise<any>;
45
+ };
46
+ export default UsersAPI;
@@ -0,0 +1,2 @@
1
+ import { WebitelProtoDataStruct } from 'webitel-sdk';
2
+ export declare const sortDynamicFields: (item: WebitelProtoDataStruct) => WebitelProtoDataStruct;
@@ -0,0 +1,30 @@
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: {
15
+ getList: ({ path, display, primary, ...params }: {
16
+ [x: string]: any;
17
+ path: any;
18
+ display: any;
19
+ primary: any;
20
+ }) => Promise<{
21
+ items: any;
22
+ next: any;
23
+ }>;
24
+ getLookup: (params: any) => Promise<{
25
+ items: any;
26
+ next: any;
27
+ }>;
28
+ };
29
+ export { getSysTypeRecordsList, getSysTypeRecordsLookup };
30
+ export default SysTypesApi;
@@ -0,0 +1,32 @@
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: {
16
+ getList: ({ itemId: typeRepo }: {
17
+ itemId: any;
18
+ }) => Promise<any>;
19
+ add: ({ itemInstance, itemId: typeRepo }: {
20
+ itemInstance: any;
21
+ itemId: any;
22
+ }) => Promise<any>;
23
+ update: ({ itemInstance, itemId: typeRepo }: {
24
+ itemInstance: any;
25
+ itemId: any;
26
+ }) => Promise<any>;
27
+ delete: ({ itemId: typeRepo }: {
28
+ itemId: any;
29
+ }) => Promise<void>;
30
+ };
31
+ export { addTypeExtension, deleteTypeExtension, getTypeExtension, updateTypeExtension, };
32
+ export default WtTypeExtensionApi;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ getChat: ({ contactId, chatId }: {
3
+ contactId: any;
4
+ chatId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ peers: any;
8
+ }>;
9
+ getAllMessages: (params: any) => Promise<{
10
+ items: any;
11
+ next: any;
12
+ }>;
13
+ };
14
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const ContactsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ add: ({ itemInstance }: {
10
+ itemInstance: any;
11
+ }) => Promise<any>;
12
+ update: ({ itemInstance }: {
13
+ itemInstance: any;
14
+ }) => Promise<any>;
15
+ delete: ({ id }: {
16
+ id: any;
17
+ }) => Promise<any>;
18
+ getLookup: (params: any) => Promise<{
19
+ items: any;
20
+ next: any;
21
+ }>;
22
+ };
23
+ export default ContactsAPI;
@@ -0,0 +1,8 @@
1
+ declare const ContactsSearchMode: Readonly<{
2
+ NAME: "name";
3
+ LABELS: "labels";
4
+ ABOUT: "about";
5
+ VARIABLES: "variables";
6
+ DESTINATION: "destination";
7
+ }>;
8
+ export default ContactsSearchMode;
@@ -0,0 +1,4 @@
1
+ import contactChatMessagesHistory from './contactChatMessagesHistory';
2
+ import contacts from './contacts';
3
+ import ContactsSearchMode from './enums/ContactsSearchMode';
4
+ export { contactChatMessagesHistory, contacts, ContactsSearchMode };
@@ -0,0 +1,5 @@
1
+ declare const getDefaultGetListResponse: ({}?: {}) => {
2
+ items: any[];
3
+ next: boolean;
4
+ };
5
+ export default getDefaultGetListResponse;
@@ -0,0 +1,8 @@
1
+ declare const getDefaultGetParams: ({ page, size }?: {
2
+ page?: number;
3
+ size?: number;
4
+ }) => {
5
+ page: number;
6
+ size: number;
7
+ };
8
+ export default getDefaultGetParams;
@@ -0,0 +1,3 @@
1
+ declare const getDefaultInstance: () => import("@aliasedDeps/api-services/axios").AxiosInstance;
2
+ export { getDefaultInstance };
3
+ export default getDefaultInstance;
@@ -0,0 +1,3 @@
1
+ import { Configuration } from 'webitel-sdk';
2
+ declare const getDefaultOpenAPIConfig: () => Configuration;
3
+ export default getDefaultOpenAPIConfig;
@@ -0,0 +1,5 @@
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, };
@@ -0,0 +1,5 @@
1
+ export * from './axios';
2
+ export * from './clients';
3
+ export * from './defaults';
4
+ export * from './interceptors';
5
+ export * from './transformers';
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1 @@
1
+ export { default as updateTokenInterceptor } from './updateToken.interceptor';
@@ -0,0 +1,2 @@
1
+ declare const updateTokenInterceptor: ((config: any) => any)[];
2
+ export default updateTokenInterceptor;
@@ -0,0 +1,2 @@
1
+ declare const handleUnauthorizedInterceptor: ((response: any) => any)[];
2
+ export default handleUnauthorizedInterceptor;
@@ -0,0 +1 @@
1
+ export { default as handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
@@ -0,0 +1,2 @@
1
+ declare const addQueryParamsToUrl: (queryArray: any) => (url: any) => any;
2
+ export default addQueryParamsToUrl;
@@ -0,0 +1,5 @@
1
+ declare const applyTransform: (target: any, transformers: any, { debug, withContext }?: {
2
+ debug?: boolean;
3
+ withContext?: any;
4
+ }) => any;
5
+ export default applyTransform;
@@ -0,0 +1,2 @@
1
+ declare const camelToSnakeTransformer: (skipKeys: any) => (obj: any) => any;
2
+ export default camelToSnakeTransformer;
@@ -0,0 +1,2 @@
1
+ declare const generateUrlTransformer: (baseUrl: any) => (params: any) => string;
2
+ export default generateUrlTransformer;
@@ -0,0 +1,14 @@
1
+ import addQueryParamsToUrl from './addQueryParamsToUrl/addQueryParamsToUrl.transformer';
2
+ import applyTransform from './applyTransform';
3
+ import camelToSnake from './camelToSnake/camelToSnake.transformer';
4
+ import generateUrl from './generateUrl/generateUrl.transformer';
5
+ import log from './log/log.transformer';
6
+ import merge from './merge/merge.transformer';
7
+ import mergeEach from './mergeEach/mergeEach.transformer';
8
+ import notify from './notify/notify.transformer';
9
+ import sanitize from './sanitize/sanitize.transformer';
10
+ import { skipIf } from './skipIf/skipIf';
11
+ import snakeToCamel from './snakeToCamel/snakeToCamel.transformer';
12
+ import starToSearch from './starToSearch/starToSearch.transformer';
13
+ export { addQueryParamsToUrl, camelToSnake, generateUrl, log, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
14
+ export default applyTransform;
@@ -0,0 +1,2 @@
1
+ declare const logTransformer: (arg: any) => any;
2
+ export default logTransformer;
@@ -0,0 +1,2 @@
1
+ declare const mergeTransformer: (...args: any[]) => (main: any) => object;
2
+ export default mergeTransformer;
@@ -0,0 +1,2 @@
1
+ declare const mergeEachTransformer: (...args: any[]) => (main: any) => any;
2
+ export default mergeEachTransformer;
@@ -0,0 +1,2 @@
1
+ declare const notifyTransformer: (notificationObject: any) => any;
2
+ export default notifyTransformer;
@@ -0,0 +1,2 @@
1
+ declare const sanitizeTransformer: (fieldsToSend: any) => (item: any) => {};
2
+ export default sanitizeTransformer;
@@ -0,0 +1 @@
1
+ export declare const skipIf: (transformer: (...payload: unknown[]) => unknown, ifFn: boolean | ((...payload: unknown[]) => boolean)) => (payload: unknown) => unknown;
@@ -0,0 +1,2 @@
1
+ declare const snakeToCamelTransformer: (skipKeys: any) => (obj: any) => any;
2
+ export default snakeToCamelTransformer;
@@ -0,0 +1,2 @@
1
+ declare const starToSearchTransformer: (path?: string) => (params: any) => any;
2
+ export default starToSearchTransformer;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v7.9.0 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { LoggerLookup } from './loggerLookup';
8
+ export interface ConfigServicePatchConfigBody {
9
+ daysToStore?: number;
10
+ description?: string;
11
+ enabled?: boolean;
12
+ fields?: string[];
13
+ period?: number;
14
+ storage?: LoggerLookup;
15
+ }