@webitel/api-services 0.0.24 → 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 (195) hide show
  1. package/package.json +13 -9
  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/engineTriggerObjectType.d.ts +0 -1
  172. package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +0 -2
  173. package/types/gen/_models/googleRpcStatus.d.ts +12 -0
  174. package/types/gen/_models/storageUploadFileChannel.d.ts +0 -2
  175. package/types/gen/_models/webitelCasesStatus.d.ts +16 -0
  176. package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +0 -18
  177. package/types/gen/file-service/file-service.api.gen.d.ts +1 -3
  178. package/types/gen/file-service/file-service.msw.api.gen.d.ts +1 -3
  179. package/types/gen/file-service/file-service.zod.gen.d.ts +0 -18
  180. package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +0 -9
  181. package/src/defaults/index.ts +0 -2
  182. package/src/gen/_docs/.nojekyll +0 -1
  183. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceBodyNameRegExp.html +0 -1
  184. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceResponseNameRegExp.html +0 -1
  185. package/src/gen/_docs/html/variables/sources_sources.zod.gen.deleteSourceResponseNameRegExp.html +0 -1
  186. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesResponseItemsItemNameRegExp.html +0 -1
  187. package/src/gen/_docs/html/variables/sources_sources.zod.gen.locateSourceResponseSourceNameRegExp.html +0 -1
  188. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2BodyNameRegExp.html +0 -1
  189. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2ResponseNameRegExp.html +0 -1
  190. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceBodyNameRegExp.html +0 -1
  191. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceResponseNameRegExp.html +0 -1
  192. package/types/gen/_models/casesCaseCustom.d.ts +0 -12
  193. package/types/gen/_models/casesInputCaseCustom.d.ts +0 -12
  194. package/types/gen/_models/casesInputCreateCaseCustom.d.ts +0 -12
  195. package/types/gen/_models/protobufNullValue.d.ts +0 -18
@@ -0,0 +1,13 @@
1
+ export declare const generatePermissionsApi: (baseUrl: any) => {
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
+ };
@@ -0,0 +1,8 @@
1
+ declare const AgentChatsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ markChatProcessed: (chatId: any) => Promise<any>;
7
+ };
8
+ export default AgentChatsAPI;
@@ -0,0 +1,44 @@
1
+ declare const AgentsAPI: {
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
+ getAgentHistory: (params: any) => Promise<{
28
+ items: any;
29
+ next: any;
30
+ }>;
31
+ getRegularAgentsOptions: (params: any) => Promise<{
32
+ items: any;
33
+ next: any;
34
+ }>;
35
+ getAgentUsersOptions: (params: any) => Promise<{
36
+ items: any;
37
+ next: any;
38
+ }>;
39
+ getSupervisorOptions: (params: any) => Promise<{
40
+ items: any;
41
+ next: any;
42
+ }>;
43
+ };
44
+ export default AgentsAPI;
@@ -0,0 +1,24 @@
1
+ declare const BucketsAPI: {
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 BucketsAPI;
@@ -0,0 +1,28 @@
1
+ declare const CalendarsAPI: {
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
+ getTimezonesLookup: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ };
28
+ export default CalendarsAPI;
@@ -0,0 +1,24 @@
1
+ declare const CaseCloseReasonGroupsAPI: {
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 CaseCloseReasonGroupsAPI;
@@ -0,0 +1,30 @@
1
+ declare const CaseCloseReasonsAPI: {
2
+ getList: ({ parentId, ...rest }: {
3
+ [x: string]: any;
4
+ parentId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ getLookup: (params: any) => Promise<{
10
+ items: any;
11
+ next: any;
12
+ }>;
13
+ get: ({ parentId, itemId: id }: {
14
+ parentId: any;
15
+ itemId: any;
16
+ }) => Promise<any>;
17
+ add: ({ itemInstance, parentId }: {
18
+ itemInstance: any;
19
+ parentId: any;
20
+ }) => Promise<any>;
21
+ update: ({ itemInstance, itemId: id }: {
22
+ itemInstance: any;
23
+ itemId: any;
24
+ }) => Promise<any>;
25
+ delete: ({ id, parentId }: {
26
+ id: any;
27
+ parentId: any;
28
+ }) => Promise<any>;
29
+ };
30
+ export default CaseCloseReasonsAPI;
@@ -0,0 +1,24 @@
1
+ declare const CasePrioritiesAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ update: ({ itemInstance, itemId: id }: {
10
+ itemInstance: any;
11
+ itemId: any;
12
+ }) => Promise<any>;
13
+ getLookup: (params: any) => Promise<{
14
+ items: any;
15
+ next: any;
16
+ }>;
17
+ delete: ({ id }: {
18
+ id: any;
19
+ }) => Promise<any>;
20
+ add: ({ itemInstance }: {
21
+ itemInstance: any;
22
+ }) => Promise<any>;
23
+ };
24
+ export default CasePrioritiesAPI;
@@ -0,0 +1,24 @@
1
+ declare const ServiceCatalogsAPI: {
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
+ patch: ({ 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 ServiceCatalogsAPI;
@@ -0,0 +1,35 @@
1
+ declare const ServicesAPI: {
2
+ getList: ({ rootId, ...rest }: {
3
+ [x: string]: any;
4
+ rootId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ get: ({ itemId: id }: {
10
+ itemId: any;
11
+ }) => Promise<any>;
12
+ add: ({ itemInstance, rootId, catalogId }: {
13
+ itemInstance: any;
14
+ rootId: any;
15
+ catalogId: any;
16
+ }) => Promise<any>;
17
+ update: ({ itemInstance, itemId: id, rootId, catalogId, }: {
18
+ itemInstance: any;
19
+ itemId: any;
20
+ rootId: any;
21
+ catalogId: any;
22
+ }) => Promise<any>;
23
+ patch: ({ changes, id }: {
24
+ changes: any;
25
+ id: any;
26
+ }) => Promise<any>;
27
+ delete: ({ id }: {
28
+ id: any;
29
+ }) => Promise<any>;
30
+ getLookup: (params: any) => Promise<{
31
+ items: any;
32
+ next: any;
33
+ }>;
34
+ };
35
+ export default ServicesAPI;
@@ -0,0 +1,24 @@
1
+ declare const CaseSourcesAPI: {
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 CaseSourcesAPI;
@@ -0,0 +1,36 @@
1
+ declare const CaseStatusConditionsAPI: {
2
+ getList: ({ parentId, ...rest }: {
3
+ [x: string]: any;
4
+ parentId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ getLookup: (params: any) => Promise<{
10
+ items: any;
11
+ next: any;
12
+ }>;
13
+ get: ({ parentId, itemId: id }: {
14
+ parentId: any;
15
+ itemId: any;
16
+ }) => Promise<any>;
17
+ update: ({ itemInstance, itemId: id, parentId, }: {
18
+ itemInstance: any;
19
+ itemId: any;
20
+ parentId: any;
21
+ }) => Promise<any>;
22
+ patch: ({ id, parentId, changes }: {
23
+ id: any;
24
+ parentId: any;
25
+ changes: any;
26
+ }) => Promise<any>;
27
+ delete: ({ id, parentId }: {
28
+ id: any;
29
+ parentId: any;
30
+ }) => Promise<any>;
31
+ add: ({ itemInstance, parentId }: {
32
+ itemInstance: any;
33
+ parentId: any;
34
+ }) => Promise<any>;
35
+ };
36
+ export default CaseStatusConditionsAPI;
@@ -0,0 +1,24 @@
1
+ declare const CaseStatusesApi: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ get: ({ itemId: id }: {
7
+ itemId: any;
8
+ }) => Promise<any>;
9
+ update: ({ itemInstance, itemId: id }: {
10
+ itemInstance: any;
11
+ itemId: any;
12
+ }) => Promise<any>;
13
+ getLookup: (params: any) => Promise<{
14
+ items: any;
15
+ next: any;
16
+ }>;
17
+ delete: ({ id }: {
18
+ id: any;
19
+ }) => Promise<any>;
20
+ add: ({ itemInstance }: {
21
+ itemInstance: any;
22
+ }) => Promise<any>;
23
+ };
24
+ export default CaseStatusesApi;
@@ -0,0 +1,9 @@
1
+ declare const CatalogAPI: {
2
+ getChatMessagesList: ({ chatId }: {
3
+ chatId: any;
4
+ }) => Promise<{
5
+ items: any;
6
+ peers: any;
7
+ }>;
8
+ };
9
+ export default CatalogAPI;
@@ -0,0 +1,28 @@
1
+ declare const ChatGatewaysAPI: {
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 ChatGatewaysAPI;
@@ -0,0 +1,15 @@
1
+ declare const defaultChatGateway: () => {
2
+ name: string;
3
+ uri: string;
4
+ flow: {};
5
+ enabled: boolean;
6
+ provider: string;
7
+ metadata: {};
8
+ updates: {
9
+ title: string;
10
+ close: string;
11
+ join: string;
12
+ left: string;
13
+ };
14
+ };
15
+ export default defaultChatGateway;
@@ -0,0 +1,64 @@
1
+ declare const webChatGateway: (_btnCodeDirty?: boolean) => {
2
+ provider: any;
3
+ metadata: {
4
+ allowOrigin: any[];
5
+ readTimeout: string;
6
+ writeTimeout: string;
7
+ handshakeTimeout: string;
8
+ mediaMaxSize: string;
9
+ _btnCodeDirty: boolean;
10
+ view: {
11
+ borderRadiusStyle: string;
12
+ lang: string;
13
+ btnOpacity: string;
14
+ logoUrl: string;
15
+ accentColor: string;
16
+ position: string;
17
+ };
18
+ captcha: {
19
+ enabled: boolean;
20
+ sitekey: string;
21
+ secret: string;
22
+ threshold: number;
23
+ showFlag: boolean;
24
+ };
25
+ chat: {
26
+ enabled: boolean;
27
+ timeoutIsActive: boolean;
28
+ openTimeout: string;
29
+ url: string;
30
+ };
31
+ appointment: {
32
+ enabled: boolean;
33
+ url: string;
34
+ queue: {};
35
+ communicationType: {};
36
+ duration: string;
37
+ days: number;
38
+ availableAgents: number;
39
+ successTitle: string;
40
+ successSubtitle: string;
41
+ showDefaultHeading: boolean;
42
+ showEmailField: boolean;
43
+ showMessageField: boolean;
44
+ };
45
+ call: {
46
+ enabled: boolean;
47
+ url: string;
48
+ flow: {};
49
+ id: string;
50
+ };
51
+ alternativeChannels: {};
52
+ };
53
+ name: string;
54
+ uri: string;
55
+ flow: {};
56
+ enabled: boolean;
57
+ updates: {
58
+ title: string;
59
+ close: string;
60
+ join: string;
61
+ left: string;
62
+ };
63
+ };
64
+ export default webChatGateway;
@@ -0,0 +1,8 @@
1
+ declare const WebchatAlternativeChannel: Readonly<{
2
+ VIBER: "viber";
3
+ WHATSAPP: "whatsapp";
4
+ TELEGRAM: "telegram";
5
+ MESSENGER: "messenger";
6
+ EMAIL: "email";
7
+ }>;
8
+ export default WebchatAlternativeChannel;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => string;
2
+ export default _default;
@@ -0,0 +1,28 @@
1
+ declare const CommunicationsAPI: {
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 CommunicationsAPI;
@@ -0,0 +1,28 @@
1
+ declare const ConfigurationsAPI: {
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
+ getObjectsList: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ };
28
+ export default ConfigurationsAPI;
@@ -0,0 +1,47 @@
1
+ declare const ContactGroupsAPI: {
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
+ update: ({ itemInstance, itemId: id }: {
24
+ itemInstance: any;
25
+ itemId: any;
26
+ }) => Promise<any>;
27
+ patch: ({ id, changes }: {
28
+ id: any;
29
+ changes: 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
+ addContactsToGroups: ({ contactIds, groupIds }: {
39
+ contactIds: any;
40
+ groupIds: any;
41
+ }) => Promise<any>;
42
+ removeContactsFromGroup: ({ id, contactIds }: {
43
+ id: any;
44
+ contactIds: any;
45
+ }) => Promise<any>;
46
+ };
47
+ export default ContactGroupsAPI;
@@ -0,0 +1,28 @@
1
+ declare const FlowsAPI: {
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
+ getFlowTags: (params: any) => Promise<{
24
+ items: any;
25
+ next: any;
26
+ }>;
27
+ };
28
+ export default FlowsAPI;
@@ -0,0 +1,8 @@
1
+ declare const defaultGateway: () => {
2
+ name: string;
3
+ usage: string;
4
+ proxy: string;
5
+ schema: {};
6
+ enable: boolean;
7
+ };
8
+ export default defaultGateway;
@@ -0,0 +1,13 @@
1
+ declare const registerGateway: () => {
2
+ register: boolean;
3
+ account: string;
4
+ username: string;
5
+ expires: number;
6
+ password: string;
7
+ name: string;
8
+ usage: string;
9
+ proxy: string;
10
+ schema: {};
11
+ enable: boolean;
12
+ };
13
+ export default registerGateway;
@@ -0,0 +1,11 @@
1
+ declare const trunkingGateway: () => {
2
+ register: boolean;
3
+ host: string;
4
+ ipacl: any[];
5
+ name: string;
6
+ usage: string;
7
+ proxy: string;
8
+ schema: {};
9
+ enable: boolean;
10
+ };
11
+ export default trunkingGateway;