@webitel/api-services 0.0.27 → 0.0.29

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 +42 -26
  2. package/src/api/clients/_shared/generatePermissionsApi.ts +4 -3
  3. package/src/api/clients/agents/agentChats.ts +5 -7
  4. package/src/api/clients/agents/agents.ts +4 -3
  5. package/src/api/clients/buckets/buckets.ts +4 -3
  6. package/src/api/clients/calendars/calendars.ts +4 -3
  7. package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +4 -3
  8. package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +4 -3
  9. package/src/api/clients/casePriorities/casePriorities.ts +4 -3
  10. package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +9 -9
  11. package/src/api/clients/caseServices/services.ts +4 -3
  12. package/src/api/clients/caseSources/caseSources.ts +8 -12
  13. package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +6 -5
  14. package/src/api/clients/caseStatuses/caseStatuses.ts +4 -3
  15. package/src/api/clients/catalog/catalog.ts +2 -5
  16. package/src/api/clients/chatGateways/chatGateways.ts +2 -2
  17. package/src/api/clients/communications/communications.ts +9 -7
  18. package/src/api/clients/configurations/configurations.ts +4 -3
  19. package/src/api/clients/contactGroups/contactGroups.ts +4 -3
  20. package/src/api/clients/flows/flow.ts +4 -3
  21. package/src/api/clients/gateways/gateways.ts +4 -3
  22. package/src/api/clients/history/transcript/callTranscript.ts +79 -0
  23. package/src/api/clients/index.ts +34 -68
  24. package/src/api/clients/labels/labels.ts +4 -3
  25. package/src/api/clients/lists/blacklists.ts +4 -3
  26. package/src/api/clients/media/media.ts +4 -3
  27. package/src/api/clients/object/object.ts +4 -3
  28. package/src/api/clients/queues/queues.ts +5 -4
  29. package/src/api/clients/quickReplies/quickReplies.ts +8 -12
  30. package/src/api/clients/roles/roles.ts +4 -3
  31. package/src/api/clients/skills/skills.ts +4 -3
  32. package/src/api/clients/slaConditions/slaConditions.ts +4 -3
  33. package/src/api/clients/slas/slas.ts +4 -3
  34. package/src/api/clients/teams/teams.ts +4 -3
  35. package/src/api/clients/users/users.ts +4 -3
  36. package/src/api/clients/wtTypes/index.ts +2 -0
  37. package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +2 -1
  38. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +3 -2
  39. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +5 -7
  40. package/src/api/clients//321/201ontacts/contacts.ts +5 -4
  41. package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +1 -3
  42. package/src/api/clients//321/201ontacts/index.ts +3 -5
  43. package/src/api/defaults/index.ts +4 -11
  44. package/src/api/interceptors/request/index.ts +1 -1
  45. package/src/api/interceptors/response/index.ts +1 -1
  46. package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +1 -1
  47. package/src/api/transformers/notify/notify.transformer.ts +3 -3
  48. package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +1 -1
  49. package/src/api/transformers/starToSearch/starToSearch.transformer.ts +2 -4
  50. package/src/config/config.ts +13 -0
  51. package/src/gen/_docs/html/assets/hierarchy.js +1 -1
  52. package/src/gen/_docs/html/assets/highlight.css +101 -76
  53. package/src/gen/_docs/html/assets/icons.js +20 -17
  54. package/src/gen/_docs/html/assets/main.js +2503 -6
  55. package/src/gen/_docs/html/assets/navigation.js +2 -1
  56. package/src/gen/_docs/html/assets/search.js +2 -1
  57. package/src/gen/_docs/html/assets/style.css +1623 -1634
  58. package/src/index.ts +2 -2
  59. package/src/utils/api/caseConverters.ts +77 -0
  60. package/src/utils/api/index.ts +1 -0
  61. package/src/utils/gen/index.ts +19 -1
  62. package/src/utils/index.ts +1 -20
  63. package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +2 -1
  64. package/types/api/clients/history/transcript/callTranscript.d.ts +11 -0
  65. package/types/api/clients/index.d.ts +31 -33
  66. package/types/api/clients/media/media.d.ts +2 -2
  67. package/types/api/clients/wtTypes/index.d.ts +2 -0
  68. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -1
  69. package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +1 -2
  70. package/types/api/clients//321/201ontacts/index.d.ts +3 -4
  71. package/types/api/defaults/index.d.ts +4 -5
  72. package/types/api/interceptors/request/index.d.ts +1 -1
  73. package/types/api/interceptors/response/index.d.ts +1 -1
  74. package/types/config/config.d.ts +7 -0
  75. package/types/gen/_models/agentAbsenceServiceUpdateAgentAbsenceBodyItem.d.ts +1 -1
  76. package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts +2 -2
  77. package/types/gen/_models/apiAccessStoreToggleDefaultAccessBody.d.ts +1 -1
  78. package/types/gen/_models/apiCustomer.d.ts +2 -2
  79. package/types/gen/_models/apiDevice.d.ts +1 -1
  80. package/types/gen/_models/apiLDAPCatalog.d.ts +4 -4
  81. package/types/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.d.ts +4 -4
  82. package/types/gen/_models/apiLDAProcess.d.ts +2 -2
  83. package/types/gen/_models/apiLicenseV1.d.ts +1 -1
  84. package/types/gen/_models/apiRole.d.ts +3 -3
  85. package/types/gen/_models/apiRolesUpdateRoleBodyRole.d.ts +3 -3
  86. package/types/gen/_models/apiUser.d.ts +1 -1
  87. package/types/gen/_models/apiUsersUpdateUserBodyUser.d.ts +1 -1
  88. package/types/gen/_models/contactsUpdateContactBody.d.ts +1 -1
  89. package/types/gen/_models/engineActiveCall.d.ts +2 -2
  90. package/types/gen/_models/engineAgent.d.ts +1 -1
  91. package/types/gen/_models/engineAgentInQueueStatistics.d.ts +1 -1
  92. package/types/gen/_models/engineAggregateHistoryCallRequest.d.ts +1 -1
  93. package/types/gen/_models/engineAttempt.d.ts +1 -1
  94. package/types/gen/_models/engineAttemptHistory.d.ts +1 -1
  95. package/types/gen/_models/engineAuditFormServicePatchAuditFormBody.d.ts +1 -1
  96. package/types/gen/_models/engineAuditFormServiceUpdateAuditFormBody.d.ts +1 -1
  97. package/types/gen/_models/engineAuditRate.d.ts +2 -2
  98. package/types/gen/_models/engineCreateAuditFormRequest.d.ts +1 -1
  99. package/types/gen/_models/engineCreateCallRequest.d.ts +1 -1
  100. package/types/gen/_models/engineCreateMemberBulkItem.d.ts +1 -1
  101. package/types/gen/_models/engineCreateOutboundResourceRequest.d.ts +2 -2
  102. package/types/gen/_models/engineCreateQueueRequest.d.ts +2 -2
  103. package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -1
  104. package/types/gen/_models/engineCreateTriggerRequest.d.ts +2 -2
  105. package/types/gen/_models/engineDeleteAllMembersRequest.d.ts +1 -1
  106. package/types/gen/_models/engineHistoryCall.d.ts +6 -6
  107. package/types/gen/_models/engineListReportGeneral.d.ts +1 -1
  108. package/types/gen/_models/engineOutboundResource.d.ts +1 -1
  109. package/types/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.d.ts +1 -1
  110. package/types/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.d.ts +1 -1
  111. package/types/gen/_models/engineQuestion.d.ts +1 -1
  112. package/types/gen/_models/engineQueue.d.ts +2 -2
  113. package/types/gen/_models/engineQueueReportGeneral.d.ts +1 -1
  114. package/types/gen/_models/engineQueueServicePatchQueueBody.d.ts +2 -2
  115. package/types/gen/_models/engineQueueServiceUpdateQueueBody.d.ts +2 -2
  116. package/types/gen/_models/engineRoutingSchema.d.ts +2 -2
  117. package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -1
  118. package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -1
  119. package/types/gen/_models/engineTeamHook.d.ts +1 -1
  120. package/types/gen/_models/engineTeamHookServiceCreateTeamHookBody.d.ts +1 -1
  121. package/types/gen/_models/engineTeamHookServicePatchTeamHookBody.d.ts +1 -1
  122. package/types/gen/_models/engineTeamHookServiceUpdateTeamHookBody.d.ts +1 -1
  123. package/types/gen/_models/engineTrigger.d.ts +1 -1
  124. package/types/gen/_models/engineTriggerJob.d.ts +1 -1
  125. package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
  126. package/types/gen/_models/engineTriggerServicePatchTriggerBody.d.ts +1 -1
  127. package/types/gen/_models/engineTriggerServiceUpdateTriggerBody.d.ts +1 -1
  128. package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
  129. package/types/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.d.ts +1 -1
  130. package/types/gen/_models/storageCreateImportTemplateRequest.d.ts +1 -1
  131. package/types/gen/_models/storageFile.d.ts +2 -2
  132. package/types/gen/_models/storageFilePolicy.d.ts +1 -1
  133. package/types/gen/_models/storageImportTemplate.d.ts +2 -2
  134. package/types/gen/_models/storageSafeUploadFileResponseMetadata.d.ts +1 -1
  135. package/types/gen/_models/storageUpdateCognitiveProfileRequest.d.ts +2 -2
  136. package/types/gen/_models/storageUpdateImportTemplateRequest.d.ts +1 -1
  137. package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
  138. package/types/gen/_models/storageUploadFileResponse.d.ts +1 -1
  139. package/types/gen/_models/storageUploadFileUrlResponse.d.ts +1 -1
  140. package/types/gen/_models/usersUpdateUser2Body.d.ts +1 -1
  141. package/types/gen/_models/usersUpdateUserBody.d.ts +1 -1
  142. package/types/gen/_models/usersUpdateUserUserBody.d.ts +1 -1
  143. package/types/gen/_models/webitelCasesCallEvent.d.ts +1 -1
  144. package/types/gen/_models/webitelCasesCase.d.ts +1 -1
  145. package/types/gen/_models/webitelCasesChatEvent.d.ts +1 -1
  146. package/types/gen/_models/webitelCasesEmailEvent.d.ts +1 -1
  147. package/types/gen/_models/webitelCasesInputCreateService.d.ts +1 -1
  148. package/types/gen/_models/webitelCasesInputService.d.ts +1 -1
  149. package/types/gen/_models/webitelCasesInputSource.d.ts +0 -1
  150. package/types/gen/_models/webitelCasesService.d.ts +1 -1
  151. package/types/gen/_models/webitelCasesSource.d.ts +5 -6
  152. package/types/gen/_models/webitelChatAgentChat.d.ts +1 -1
  153. package/types/gen/_models/webitelChatBroadcastMessageRequest.d.ts +1 -1
  154. package/types/gen/_models/webitelChatChatMessage.d.ts +2 -2
  155. package/types/gen/_models/webitelChatContactChat.d.ts +1 -1
  156. package/types/gen/_models/webitelChatDialog.d.ts +1 -1
  157. package/types/gen/_models/webitelChatGetContactChatHistoryResponse.d.ts +2 -2
  158. package/types/gen/_models/webitelContactsComment.d.ts +1 -1
  159. package/types/gen/_models/webitelProtoDataStruct.d.ts +1 -1
  160. package/types/gen/_models/wfmAbsence.d.ts +1 -1
  161. package/types/gen/_models/wfmAgentScheduleShift.d.ts +2 -2
  162. package/types/gen/_models/wfmAgentWorkingSchedule.d.ts +1 -1
  163. package/types/gen/_models/wfmPauseTemplate.d.ts +1 -1
  164. package/types/gen/_models/wfmSearchAgentsWorkingScheduleResponse.d.ts +1 -1
  165. package/types/gen/agent-chat-service/agent-chat-service.zod.gen.d.ts +1 -1
  166. package/types/gen/articles/articles.api.gen.d.ts +1 -1
  167. package/types/gen/call-service/call-service.zod.gen.d.ts +6 -6
  168. package/types/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.d.ts +1 -1
  169. package/types/gen/catalog/catalog.zod.gen.d.ts +3 -3
  170. package/types/gen/config-service/config-service.zod.gen.d.ts +2 -2
  171. package/types/gen/contacts/contacts.zod.gen.d.ts +2 -2
  172. package/types/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.d.ts +2 -2
  173. package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +33 -33
  174. package/types/gen/extensions/extensions.zod.gen.d.ts +24 -24
  175. package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
  176. package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
  177. package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
  178. package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
  179. package/types/gen/ldap/ldap.api.gen.d.ts +1 -1
  180. package/types/gen/ldap/ldap.msw.api.gen.d.ts +1 -1
  181. package/types/gen/logger-service/logger-service.zod.gen.d.ts +5 -5
  182. package/types/gen/timeline/timeline.zod.gen.d.ts +2 -2
  183. package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +24 -15
  184. package/types/gen/types/types.zod.gen.d.ts +6 -6
  185. package/types/index.d.ts +2 -2
  186. package/types/utils/api/caseConverters.d.ts +9 -0
  187. package/types/utils/api/index.d.ts +1 -0
  188. package/types/utils/gen/index.d.ts +10 -4
  189. package/types/utils/index.d.ts +1 -7
  190. package/types/defaults/index.d.ts +0 -2
  191. package/types/gen/_models/configServicePatchConfigBody.d.ts +0 -15
  192. package/types/gen/_models/configServiceUpdateConfigBody.d.ts +0 -14
  193. package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +0 -12
  194. package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +0 -9
  195. package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +0 -10
  196. package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +0 -9
  197. package/types/gen/_models/readSystemObjectsParams.d.ts +0 -9
  198. package/types/gen/_models/searchConfigObjectItem.d.ts +0 -25
  199. package/types/gen/_models/searchConfigParams.d.ts +0 -18
  200. package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +0 -14
  201. package/types/gen/_models/searchLogByConfigIdParams.d.ts +0 -19
  202. package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +0 -14
  203. package/types/gen/_models/searchLogByRecordIdParams.d.ts +0 -22
  204. package/types/gen/_models/searchLogByUserIdActionItem.d.ts +0 -14
  205. package/types/gen/_models/searchLogByUserIdParams.d.ts +0 -25
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './gen';
2
- export * from './utils/gen';
1
+ export type { ApiServicesConfig } from './config/config';
2
+ export { setConfig } from './config/config';
@@ -0,0 +1,77 @@
1
+ export const snakeToCamel = (str) =>
2
+ str.replace(/([a-z])([_])([a-z])/g, (_group, p1, _p2, p3) =>
3
+ [p1, p3.toUpperCase()].join(''),
4
+ );
5
+
6
+ export const camelToSnake = (str) =>
7
+ str.replace(/([a-z])([A-Z])/g, (_group, p1, p2) =>
8
+ [p1, '_', p2.toLowerCase()].join(''),
9
+ );
10
+
11
+ export const kebabToCamel = (str) =>
12
+ str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', ''));
13
+
14
+ export const camelToKebab = (str) =>
15
+ str.replace(/([A-Z])/g, (group) => group.toLowerCase().replace('', '-'));
16
+
17
+ export const kebabToSnake = (str) =>
18
+ str.replace(/([-_][a-z])/g, (group) => group.replace('-', '_'));
19
+
20
+ export const snakeToKebab = (str) =>
21
+ str.replace(/([-_][a-z])/g, (group) => group.replace('_', '-'));
22
+
23
+ const convertObject =
24
+ ({ self, converter }) =>
25
+ (obj, skipKeys) => {
26
+ if (!obj) return obj;
27
+ const newObj = {};
28
+ if (Array.isArray(obj)) {
29
+ return obj.map((value) => {
30
+ if (typeof value === 'object') {
31
+ return self(value, skipKeys);
32
+ }
33
+ if (typeof value === 'string') return converter(value);
34
+ return value; // number
35
+ });
36
+ }
37
+ Object.keys(obj).forEach((oldKey) => {
38
+ if (skipKeys.includes(oldKey)) {
39
+ newObj[oldKey] = obj[oldKey];
40
+ } else {
41
+ const newKey = converter(oldKey);
42
+ let value = obj[oldKey];
43
+ if (
44
+ Array.isArray(value) ||
45
+ (value !== null &&
46
+ value !== undefined &&
47
+ value.constructor === Object)
48
+ ) {
49
+ value = self(value, skipKeys);
50
+ }
51
+ newObj[newKey] = value;
52
+ }
53
+ });
54
+
55
+ return newObj;
56
+ };
57
+
58
+ export const objSnakeToCamel = (obj, skipKeys = []) => {
59
+ return convertObject({
60
+ self: objSnakeToCamel,
61
+ converter: snakeToCamel,
62
+ })(obj, skipKeys);
63
+ };
64
+
65
+ export const objCamelToSnake = (obj, skipKeys = []) => {
66
+ return convertObject({
67
+ self: objCamelToSnake,
68
+ converter: camelToSnake,
69
+ })(obj, skipKeys);
70
+ };
71
+
72
+ export const objCamelToKebab = (obj, skipKeys = []) => {
73
+ return convertObject({
74
+ self: objCamelToKebab,
75
+ converter: camelToKebab,
76
+ })(obj, skipKeys);
77
+ };
@@ -0,0 +1 @@
1
+ export * from './caseConverters';
@@ -1,4 +1,4 @@
1
- import z from 'zod';
1
+ import { z } from 'zod/v4';
2
2
 
3
3
  /**
4
4
  * @description
@@ -47,3 +47,21 @@ export const getFieldsToSendFromZodSchema = <T extends z.ZodTypeAny>(
47
47
  // return empty array
48
48
  return [];
49
49
  };
50
+
51
+ /**
52
+ * @author @dlohvinov
53
+ * @description
54
+ * Get default value for schema. Could be anything: object with default fields values, or primitive.
55
+ */
56
+ export const getDefaultsFromZodSchema = (
57
+ schema: z.ZodType,
58
+ value?: unknown,
59
+ ): unknown => {
60
+ return (
61
+ schema
62
+ /* zod validates passed value and throws err before returning defaults,
63
+ so we should skip error throwing and return value instead */
64
+ .catch(({ value: validatedValue }) => validatedValue)
65
+ .parse(value)
66
+ );
67
+ };
@@ -1,21 +1,2 @@
1
- import type { z } from 'zod/v4';
2
-
1
+ export * from './api';
3
2
  export * from './gen';
4
-
5
- /**
6
- * @author @dlohvinov
7
- * @description
8
- * Get default value for schema. Could be anything: object with default fields values, or primitive.
9
- */
10
- export const getDefaultsFromZodSchema = (
11
- schema: z.ZodType,
12
- value?: unknown,
13
- ): unknown => {
14
- return (
15
- schema
16
- /* zod validates passed value and throws err before returning defaults,
17
- so we should skip error throwing and return value instead */
18
- .catch(({ value: validatedValue }) => validatedValue)
19
- .parse(value)
20
- );
21
- };
@@ -1,6 +1,7 @@
1
1
  export declare const CaseStatusConditionsAPI: {
2
- getList: ({ parentId, ...rest }: {
2
+ getList: ({ statusId, parentId, ...rest }: {
3
3
  [x: string]: any;
4
+ statusId: any;
4
5
  parentId: any;
5
6
  }) => Promise<{
6
7
  items: any;
@@ -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 quickReplies from './quickReplies/quickReplies';
25
- import roles from './roles/roles';
26
- import skills from './skills/skills';
27
- import slas from './slas/slas';
28
- import teams from './teams/teams';
29
- import users from './users/users';
30
- import sysTypes from './wtTypes/sysTypes/sysTypes';
31
- import typeExtensions from './wtTypes/typeExtensions/typeExtensions';
32
- import { contactChatMessagesHistory, contacts } from './сontacts/index';
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
- export declare const downloadMedia: (id: any) => Promise<any>;
1
+ export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any>>;
2
2
  export declare const MediaAPI: {
3
3
  getList: (params: any) => Promise<{
4
4
  items: any;
@@ -6,7 +6,7 @@ export declare const MediaAPI: {
6
6
  }>;
7
7
  get: ({ itemId }: {
8
8
  itemId: any;
9
- }) => Promise<any>;
9
+ }) => Promise<import("axios").AxiosResponse<any, any>>;
10
10
  add: (params: any) => Promise<import("axios").AxiosResponse<any, any>>;
11
11
  delete: ({ id }: {
12
12
  id: any;
@@ -0,0 +1,2 @@
1
+ export * from './sysTypes/sysTypes';
2
+ export * from './typeExtensions/typeExtensions';
@@ -1,4 +1,4 @@
1
- export declare const WtTypeExtensionApi: {
1
+ export declare const WtTypeExtensionAPI: {
2
2
  getList: ({ itemId: typeRepo }: {
3
3
  itemId: any;
4
4
  }) => Promise<any>;
@@ -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,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 +1 @@
1
- export { default as handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
1
+ export { handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
@@ -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;
@@ -1,10 +1,10 @@
1
- import type { WfmAbsenceType } from './wfmAbsenceType';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { WfmAbsenceType } from './wfmAbsenceType';
8
8
  import type { WfmLookupEntity } from './wfmLookupEntity';
9
9
  export type AgentAbsenceServiceUpdateAgentAbsenceBodyItem = {
10
10
  absentAt?: string;
@@ -1,11 +1,11 @@
1
- import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
2
- import type { WfmFilterBetween } from './wfmFilterBetween';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
8
+ import type { WfmFilterBetween } from './wfmFilterBetween';
9
9
  import type { WfmLookupEntity } from './wfmLookupEntity';
10
10
  export type AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody = {
11
11
  agents?: WfmLookupEntity[];
@@ -1,10 +1,10 @@
1
- import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
8
8
  import type { ApiGrantAccessRequestV1 } from './apiGrantAccessRequestV1';
9
9
  export interface ApiAccessStoreToggleDefaultAccessBody {
10
10
  /** list of changes ...
@@ -1,11 +1,11 @@
1
- import type { ApiCustomerLimit } from './apiCustomerLimit';
2
- import type { ApiLicenseV1 } from './apiLicenseV1';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { ApiCustomerLimit } from './apiCustomerLimit';
8
+ import type { ApiLicenseV1 } from './apiLicenseV1';
9
9
  import type { ApiObjectId } from './apiObjectId';
10
10
  import type { ApiVerification } from './apiVerification';
11
11
  export interface ApiCustomer {
@@ -1,10 +1,10 @@
1
- import type { ApiDeviceProvision } from './apiDeviceProvision';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiDeviceProvision } from './apiDeviceProvision';
8
8
  import type { ApiUserId } from './apiUserId';
9
9
  export interface ApiDevice {
10
10
  /** username */
@@ -1,13 +1,13 @@
1
- import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
2
- import type { ApiLDAPTemplate } from './apiLDAPTemplate';
3
- import type { ApiLDAProcess } from './apiLDAProcess';
4
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
5
1
  /**
6
2
  * Generated by orval v7.10.0 🍺
7
3
  * Do not edit manually.
8
4
  * Webitel API
9
5
  * OpenAPI spec version: 24.04.0
10
6
  */
7
+ import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
8
+ import type { ApiLDAProcess } from './apiLDAProcess';
9
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
10
+ import type { ApiLDAPTemplate } from './apiLDAPTemplate';
11
11
  import type { ApiUserId } from './apiUserId';
12
12
  export interface ApiLDAPCatalog {
13
13
  baseDn?: string;
@@ -1,13 +1,13 @@
1
- import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
2
- import type { ApiLDAPTemplate } from './apiLDAPTemplate';
3
- import type { ApiLDAProcess } from './apiLDAProcess';
4
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
5
1
  /**
6
2
  * Generated by orval v7.10.0 🍺
7
3
  * Do not edit manually.
8
4
  * Webitel API
9
5
  * OpenAPI spec version: 24.04.0
10
6
  */
7
+ import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
8
+ import type { ApiLDAProcess } from './apiLDAProcess';
9
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
10
+ import type { ApiLDAPTemplate } from './apiLDAPTemplate';
11
11
  import type { ApiUserId } from './apiUserId';
12
12
  /**
13
13
  * LDAP Catalog changes.
@@ -1,11 +1,11 @@
1
- import type { ApiLDAPObjentry } from './apiLDAPObjentry';
2
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { ApiLDAPObjentry } from './apiLDAPObjentry';
8
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
9
9
  import type { ApiRoleId } from './apiRoleId';
10
10
  export interface ApiLDAProcess {
11
11
  /** Optional. If not <zero> indicates that this process is completed. */
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiVerification } from './apiVerification';
9
9
  export interface ApiLicenseV1 {
10
10
  competitive?: boolean;
@@ -1,12 +1,12 @@
1
- import type { ApiObjectId } from './apiObjectId';
2
- import type { ApiPermission } from './apiPermission';
3
- import type { ApiRoleMetadata } from './apiRoleMetadata';
4
1
  /**
5
2
  * Generated by orval v7.10.0 🍺
6
3
  * Do not edit manually.
7
4
  * Webitel API
8
5
  * OpenAPI spec version: 24.04.0
9
6
  */
7
+ import type { ApiObjectId } from './apiObjectId';
8
+ import type { ApiPermission } from './apiPermission';
9
+ import type { ApiRoleMetadata } from './apiRoleMetadata';
10
10
  import type { ApiUserId } from './apiUserId';
11
11
  export interface ApiRole {
12
12
  createdAt?: string;
@@ -1,12 +1,12 @@
1
- import type { ApiObjectId } from './apiObjectId';
2
- import type { ApiPermission } from './apiPermission';
3
- import type { ApiRolesUpdateRoleBodyRoleMetadata } from './apiRolesUpdateRoleBodyRoleMetadata';
4
1
  /**
5
2
  * Generated by orval v7.10.0 🍺
6
3
  * Do not edit manually.
7
4
  * Webitel API
8
5
  * OpenAPI spec version: 24.04.0
9
6
  */
7
+ import type { ApiObjectId } from './apiObjectId';
8
+ import type { ApiPermission } from './apiPermission';
9
+ import type { ApiRolesUpdateRoleBodyRoleMetadata } from './apiRolesUpdateRoleBodyRoleMetadata';
10
10
  import type { ApiUserId } from './apiUserId';
11
11
  export type ApiRolesUpdateRoleBodyRole = {
12
12
  createdAt?: string;
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiObjectId } from './apiObjectId';
9
9
  import type { ApiPermission } from './apiPermission';
10
10
  import type { ApiUserId } from './apiUserId';
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiObjectId } from './apiObjectId';
9
9
  import type { ApiPermission } from './apiPermission';
10
10
  import type { ApiUserId } from './apiUserId';
@@ -1,10 +1,10 @@
1
- import type { ContactsUpdateContactBodyCustom } from './contactsUpdateContactBodyCustom';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ContactsUpdateContactBodyCustom } from './contactsUpdateContactBodyCustom';
8
8
  import type { WebitelContactsInputComment } from './webitelContactsInputComment';
9
9
  import type { WebitelContactsInputContactGroup } from './webitelContactsInputContactGroup';
10
10
  import type { WebitelContactsInputEmailAddress } from './webitelContactsInputEmailAddress';
@@ -1,11 +1,11 @@
1
- import type { EngineActiveCallVariables } from './engineActiveCallVariables';
2
- import type { EngineEndpoint } from './engineEndpoint';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { EngineActiveCallVariables } from './engineActiveCallVariables';
8
+ import type { EngineEndpoint } from './engineEndpoint';
9
9
  import type { EngineLookup } from './engineLookup';
10
10
  export interface EngineActiveCall {
11
11
  agent?: EngineLookup;
@@ -1,10 +1,10 @@
1
- import type { EngineAgentChannel } from './engineAgentChannel';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAgentChannel } from './engineAgentChannel';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  export interface EngineAgent {
10
10
  allowChannels?: string[];
@@ -1,10 +1,10 @@
1
- import type { EngineAgentInQueueStatisticsAgentInQueueStatisticsItem } from './engineAgentInQueueStatisticsAgentInQueueStatisticsItem';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAgentInQueueStatisticsAgentInQueueStatisticsItem } from './engineAgentInQueueStatisticsAgentInQueueStatisticsItem';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  export interface EngineAgentInQueueStatistics {
10
10
  queue?: EngineLookup;
@@ -1,10 +1,10 @@
1
- import type { EngineAggregateHistoryCallRequestVariables } from './engineAggregateHistoryCallRequestVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAggregateHistoryCallRequestVariables } from './engineAggregateHistoryCallRequestVariables';
8
8
  import type { EngineAggregateRequest } from './engineAggregateRequest';
9
9
  import type { EngineFilterBetween } from './engineFilterBetween';
10
10
  export interface EngineAggregateHistoryCallRequest {
@@ -1,10 +1,10 @@
1
- import type { EngineAttemptVariables } from './engineAttemptVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAttemptVariables } from './engineAttemptVariables';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineMemberCommunication } from './engineMemberCommunication';
10
10
  export interface EngineAttempt {
@@ -1,10 +1,10 @@
1
- import type { EngineAttemptHistoryVariables } from './engineAttemptHistoryVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAttemptHistoryVariables } from './engineAttemptHistoryVariables';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineMemberCommunication } from './engineMemberCommunication';
10
10
  export interface EngineAttemptHistory {
@@ -1,10 +1,10 @@
1
- import type { EngineLookup } from './engineLookup';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
8
  import type { EngineQuestion } from './engineQuestion';
9
9
  export interface EngineAuditFormServicePatchAuditFormBody {
10
10
  description?: string;
@@ -1,10 +1,10 @@
1
- import type { EngineLookup } from './engineLookup';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
8
  import type { EngineQuestion } from './engineQuestion';
9
9
  export interface EngineAuditFormServiceUpdateAuditFormBody {
10
10
  description?: string;
@@ -1,11 +1,11 @@
1
- import type { EngineLookup } from './engineLookup';
2
- import type { EngineQuestion } from './engineQuestion';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
+ import type { EngineQuestion } from './engineQuestion';
9
9
  import type { EngineQuestionAnswer } from './engineQuestionAnswer';
10
10
  export interface EngineAuditRate {
11
11
  answers?: EngineQuestionAnswer[];