@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.
- package/package.json +42 -26
- package/src/api/clients/_shared/generatePermissionsApi.ts +4 -3
- package/src/api/clients/agents/agentChats.ts +5 -7
- package/src/api/clients/agents/agents.ts +4 -3
- package/src/api/clients/buckets/buckets.ts +4 -3
- package/src/api/clients/calendars/calendars.ts +4 -3
- package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +4 -3
- package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +4 -3
- package/src/api/clients/casePriorities/casePriorities.ts +4 -3
- package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +9 -9
- package/src/api/clients/caseServices/services.ts +4 -3
- package/src/api/clients/caseSources/caseSources.ts +8 -12
- package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +6 -5
- package/src/api/clients/caseStatuses/caseStatuses.ts +4 -3
- package/src/api/clients/catalog/catalog.ts +2 -5
- package/src/api/clients/chatGateways/chatGateways.ts +2 -2
- package/src/api/clients/communications/communications.ts +9 -7
- package/src/api/clients/configurations/configurations.ts +4 -3
- package/src/api/clients/contactGroups/contactGroups.ts +4 -3
- package/src/api/clients/flows/flow.ts +4 -3
- package/src/api/clients/gateways/gateways.ts +4 -3
- package/src/api/clients/history/transcript/callTranscript.ts +79 -0
- package/src/api/clients/index.ts +34 -68
- package/src/api/clients/labels/labels.ts +4 -3
- package/src/api/clients/lists/blacklists.ts +4 -3
- package/src/api/clients/media/media.ts +4 -3
- package/src/api/clients/object/object.ts +4 -3
- package/src/api/clients/queues/queues.ts +5 -4
- package/src/api/clients/quickReplies/quickReplies.ts +8 -12
- package/src/api/clients/roles/roles.ts +4 -3
- package/src/api/clients/skills/skills.ts +4 -3
- package/src/api/clients/slaConditions/slaConditions.ts +4 -3
- package/src/api/clients/slas/slas.ts +4 -3
- package/src/api/clients/teams/teams.ts +4 -3
- package/src/api/clients/users/users.ts +4 -3
- package/src/api/clients/wtTypes/index.ts +2 -0
- package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +2 -1
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +3 -2
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +5 -7
- package/src/api/clients//321/201ontacts/contacts.ts +5 -4
- package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +1 -3
- package/src/api/clients//321/201ontacts/index.ts +3 -5
- package/src/api/defaults/index.ts +4 -11
- package/src/api/interceptors/request/index.ts +1 -1
- package/src/api/interceptors/response/index.ts +1 -1
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +1 -1
- package/src/api/transformers/notify/notify.transformer.ts +3 -3
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +1 -1
- package/src/api/transformers/starToSearch/starToSearch.transformer.ts +2 -4
- package/src/config/config.ts +13 -0
- package/src/gen/_docs/html/assets/hierarchy.js +1 -1
- package/src/gen/_docs/html/assets/highlight.css +101 -76
- package/src/gen/_docs/html/assets/icons.js +20 -17
- package/src/gen/_docs/html/assets/main.js +2503 -6
- package/src/gen/_docs/html/assets/navigation.js +2 -1
- package/src/gen/_docs/html/assets/search.js +2 -1
- package/src/gen/_docs/html/assets/style.css +1623 -1634
- package/src/index.ts +2 -2
- package/src/utils/api/caseConverters.ts +77 -0
- package/src/utils/api/index.ts +1 -0
- package/src/utils/gen/index.ts +19 -1
- package/src/utils/index.ts +1 -20
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +2 -1
- package/types/api/clients/history/transcript/callTranscript.d.ts +11 -0
- package/types/api/clients/index.d.ts +31 -33
- package/types/api/clients/media/media.d.ts +2 -2
- package/types/api/clients/wtTypes/index.d.ts +2 -0
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +1 -1
- package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +1 -2
- package/types/api/clients//321/201ontacts/index.d.ts +3 -4
- package/types/api/defaults/index.d.ts +4 -5
- package/types/api/interceptors/request/index.d.ts +1 -1
- package/types/api/interceptors/response/index.d.ts +1 -1
- package/types/config/config.d.ts +7 -0
- package/types/gen/_models/agentAbsenceServiceUpdateAgentAbsenceBodyItem.d.ts +1 -1
- package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts +2 -2
- package/types/gen/_models/apiAccessStoreToggleDefaultAccessBody.d.ts +1 -1
- package/types/gen/_models/apiCustomer.d.ts +2 -2
- package/types/gen/_models/apiDevice.d.ts +1 -1
- package/types/gen/_models/apiLDAPCatalog.d.ts +4 -4
- package/types/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.d.ts +4 -4
- package/types/gen/_models/apiLDAProcess.d.ts +2 -2
- package/types/gen/_models/apiLicenseV1.d.ts +1 -1
- package/types/gen/_models/apiRole.d.ts +3 -3
- package/types/gen/_models/apiRolesUpdateRoleBodyRole.d.ts +3 -3
- package/types/gen/_models/apiUser.d.ts +1 -1
- package/types/gen/_models/apiUsersUpdateUserBodyUser.d.ts +1 -1
- package/types/gen/_models/contactsUpdateContactBody.d.ts +1 -1
- package/types/gen/_models/engineActiveCall.d.ts +2 -2
- package/types/gen/_models/engineAgent.d.ts +1 -1
- package/types/gen/_models/engineAgentInQueueStatistics.d.ts +1 -1
- package/types/gen/_models/engineAggregateHistoryCallRequest.d.ts +1 -1
- package/types/gen/_models/engineAttempt.d.ts +1 -1
- package/types/gen/_models/engineAttemptHistory.d.ts +1 -1
- package/types/gen/_models/engineAuditFormServicePatchAuditFormBody.d.ts +1 -1
- package/types/gen/_models/engineAuditFormServiceUpdateAuditFormBody.d.ts +1 -1
- package/types/gen/_models/engineAuditRate.d.ts +2 -2
- package/types/gen/_models/engineCreateAuditFormRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateCallRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateMemberBulkItem.d.ts +1 -1
- package/types/gen/_models/engineCreateOutboundResourceRequest.d.ts +2 -2
- package/types/gen/_models/engineCreateQueueRequest.d.ts +2 -2
- package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -1
- package/types/gen/_models/engineCreateTriggerRequest.d.ts +2 -2
- package/types/gen/_models/engineDeleteAllMembersRequest.d.ts +1 -1
- package/types/gen/_models/engineHistoryCall.d.ts +6 -6
- package/types/gen/_models/engineListReportGeneral.d.ts +1 -1
- package/types/gen/_models/engineOutboundResource.d.ts +1 -1
- package/types/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.d.ts +1 -1
- package/types/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.d.ts +1 -1
- package/types/gen/_models/engineQuestion.d.ts +1 -1
- package/types/gen/_models/engineQueue.d.ts +2 -2
- package/types/gen/_models/engineQueueReportGeneral.d.ts +1 -1
- package/types/gen/_models/engineQueueServicePatchQueueBody.d.ts +2 -2
- package/types/gen/_models/engineQueueServiceUpdateQueueBody.d.ts +2 -2
- package/types/gen/_models/engineRoutingSchema.d.ts +2 -2
- package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -1
- package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -1
- package/types/gen/_models/engineTeamHook.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServiceCreateTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServicePatchTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTeamHookServiceUpdateTeamHookBody.d.ts +1 -1
- package/types/gen/_models/engineTrigger.d.ts +1 -1
- package/types/gen/_models/engineTriggerJob.d.ts +1 -1
- package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
- package/types/gen/_models/engineTriggerServicePatchTriggerBody.d.ts +1 -1
- package/types/gen/_models/engineTriggerServiceUpdateTriggerBody.d.ts +1 -1
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
- package/types/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.d.ts +1 -1
- package/types/gen/_models/storageCreateImportTemplateRequest.d.ts +1 -1
- package/types/gen/_models/storageFile.d.ts +2 -2
- package/types/gen/_models/storageFilePolicy.d.ts +1 -1
- package/types/gen/_models/storageImportTemplate.d.ts +2 -2
- package/types/gen/_models/storageSafeUploadFileResponseMetadata.d.ts +1 -1
- package/types/gen/_models/storageUpdateCognitiveProfileRequest.d.ts +2 -2
- package/types/gen/_models/storageUpdateImportTemplateRequest.d.ts +1 -1
- package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
- package/types/gen/_models/storageUploadFileResponse.d.ts +1 -1
- package/types/gen/_models/storageUploadFileUrlResponse.d.ts +1 -1
- package/types/gen/_models/usersUpdateUser2Body.d.ts +1 -1
- package/types/gen/_models/usersUpdateUserBody.d.ts +1 -1
- package/types/gen/_models/usersUpdateUserUserBody.d.ts +1 -1
- package/types/gen/_models/webitelCasesCallEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesCase.d.ts +1 -1
- package/types/gen/_models/webitelCasesChatEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesEmailEvent.d.ts +1 -1
- package/types/gen/_models/webitelCasesInputCreateService.d.ts +1 -1
- package/types/gen/_models/webitelCasesInputService.d.ts +1 -1
- package/types/gen/_models/webitelCasesInputSource.d.ts +0 -1
- package/types/gen/_models/webitelCasesService.d.ts +1 -1
- package/types/gen/_models/webitelCasesSource.d.ts +5 -6
- package/types/gen/_models/webitelChatAgentChat.d.ts +1 -1
- package/types/gen/_models/webitelChatBroadcastMessageRequest.d.ts +1 -1
- package/types/gen/_models/webitelChatChatMessage.d.ts +2 -2
- package/types/gen/_models/webitelChatContactChat.d.ts +1 -1
- package/types/gen/_models/webitelChatDialog.d.ts +1 -1
- package/types/gen/_models/webitelChatGetContactChatHistoryResponse.d.ts +2 -2
- package/types/gen/_models/webitelContactsComment.d.ts +1 -1
- package/types/gen/_models/webitelProtoDataStruct.d.ts +1 -1
- package/types/gen/_models/wfmAbsence.d.ts +1 -1
- package/types/gen/_models/wfmAgentScheduleShift.d.ts +2 -2
- package/types/gen/_models/wfmAgentWorkingSchedule.d.ts +1 -1
- package/types/gen/_models/wfmPauseTemplate.d.ts +1 -1
- package/types/gen/_models/wfmSearchAgentsWorkingScheduleResponse.d.ts +1 -1
- package/types/gen/agent-chat-service/agent-chat-service.zod.gen.d.ts +1 -1
- package/types/gen/articles/articles.api.gen.d.ts +1 -1
- package/types/gen/call-service/call-service.zod.gen.d.ts +6 -6
- package/types/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.d.ts +1 -1
- package/types/gen/catalog/catalog.zod.gen.d.ts +3 -3
- package/types/gen/config-service/config-service.zod.gen.d.ts +2 -2
- package/types/gen/contacts/contacts.zod.gen.d.ts +2 -2
- package/types/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.d.ts +2 -2
- package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +33 -33
- package/types/gen/extensions/extensions.zod.gen.d.ts +24 -24
- package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
- package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
- package/types/gen/ldap/ldap.api.gen.d.ts +1 -1
- package/types/gen/ldap/ldap.msw.api.gen.d.ts +1 -1
- package/types/gen/logger-service/logger-service.zod.gen.d.ts +5 -5
- package/types/gen/timeline/timeline.zod.gen.d.ts +2 -2
- package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +24 -15
- package/types/gen/types/types.zod.gen.d.ts +6 -6
- package/types/index.d.ts +2 -2
- package/types/utils/api/caseConverters.d.ts +9 -0
- package/types/utils/api/index.d.ts +1 -0
- package/types/utils/gen/index.d.ts +10 -4
- package/types/utils/index.d.ts +1 -7
- package/types/defaults/index.d.ts +0 -2
- package/types/gen/_models/configServicePatchConfigBody.d.ts +0 -15
- package/types/gen/_models/configServiceUpdateConfigBody.d.ts +0 -14
- package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +0 -12
- package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +0 -9
- package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +0 -10
- package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +0 -9
- package/types/gen/_models/readSystemObjectsParams.d.ts +0 -9
- package/types/gen/_models/searchConfigObjectItem.d.ts +0 -25
- package/types/gen/_models/searchConfigParams.d.ts +0 -18
- package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByConfigIdParams.d.ts +0 -19
- package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByRecordIdParams.d.ts +0 -22
- package/types/gen/_models/searchLogByUserIdActionItem.d.ts +0 -14
- package/types/gen/_models/searchLogByUserIdParams.d.ts +0 -25
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
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';
|
package/src/utils/gen/index.ts
CHANGED
|
@@ -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
|
+
};
|
package/src/utils/index.ts
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
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,33 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { contactChatMessagesHistory, contacts, ContactsSearchMode };
|
|
1
|
+
export * from './contactChatMessagesHistory';
|
|
2
|
+
export * from './contacts';
|
|
3
|
+
export * from './enums/ContactsSearchMode';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 {
|
|
1
|
+
export { updateTokenInterceptor } from './updateToken.interceptor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
|
|
@@ -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;
|
package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts
CHANGED
|
@@ -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[];
|