@webitel/api-services 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +14 -10
- package/src/api/axios/generateInstance.ts +30 -0
- package/src/api/axios/index.ts +2 -0
- package/src/api/clients/_shared/generatePermissionsApi.ts +97 -0
- package/src/api/clients/agents/agentChats.ts +74 -0
- package/src/api/clients/agents/agents.ts +265 -0
- package/src/api/clients/buckets/buckets.ts +112 -0
- package/src/api/clients/calendars/calendars.ts +214 -0
- package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.ts +128 -0
- package/src/api/clients/caseCloseReasons/caseCloseReasons.ts +128 -0
- package/src/api/clients/casePriorities/casePriorities.ts +139 -0
- package/src/api/clients/caseServiceCatalogs/serviceCatalogs.ts +198 -0
- package/src/api/clients/caseServices/services.ts +181 -0
- package/src/api/clients/caseSources/caseSources.ts +121 -0
- package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +165 -0
- package/src/api/clients/caseStatuses/caseStatuses.ts +119 -0
- package/src/api/clients/catalog/catalog.ts +44 -0
- package/src/api/clients/chatGateways/chatGateways.ts +302 -0
- package/src/api/clients/chatGateways/defaults/defaultChatGateway.ts +18 -0
- package/src/api/clients/chatGateways/defaults/webChatGateway.ts +72 -0
- package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.ts +14 -0
- package/src/api/clients/chatGateways/scripts/generateUri.ts +9 -0
- package/src/api/clients/communications/communications.ts +141 -0
- package/src/api/clients/configurations/configurations.ts +144 -0
- package/src/api/clients/contactGroups/contactGroups.ts +187 -0
- package/src/api/clients/flows/flow.ts +225 -0
- package/src/api/clients/gateways/defaults/defaultGateway.ts +9 -0
- package/src/api/clients/gateways/defaults/registerGateway.ts +12 -0
- package/src/api/clients/gateways/defaults/trunkingGateway.ts +16 -0
- package/src/api/clients/gateways/gateways.ts +175 -0
- package/src/api/clients/index.ts +68 -0
- package/src/api/clients/labels/labels.ts +56 -0
- package/src/api/clients/lists/blacklists.ts +118 -0
- package/src/api/clients/media/media.ts +120 -0
- package/src/api/clients/object/object.ts +114 -0
- package/src/api/clients/queues/defaults/processing.ts +14 -0
- package/src/api/clients/queues/queues.ts +238 -0
- package/src/api/clients/quickReplies/quickReplies.ts +117 -0
- package/src/api/clients/roles/roles.ts +202 -0
- package/src/api/clients/skills/skills.ts +112 -0
- package/src/api/clients/slaConditions/slaConditions.ts +165 -0
- package/src/api/clients/slas/slas.ts +118 -0
- package/src/api/clients/teams/teams.ts +144 -0
- package/src/api/clients/users/__tests__/users.spec.ts +265 -0
- package/src/api/clients/users/users.ts +230 -0
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +21 -0
- package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +64 -0
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +122 -0
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +98 -0
- package/src/api/clients//321/201ontacts/contacts.ts +339 -0
- package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.ts +9 -0
- package/src/api/clients//321/201ontacts/index.ts +5 -0
- package/src/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.ts +6 -0
- package/src/api/defaults/getDefaultGetParams/getDefaultGetParams.ts +6 -0
- package/src/api/defaults/getDefaultInstance/getDefaultInstance.ts +21 -0
- package/src/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.ts +10 -0
- package/src/api/defaults/index.ts +11 -0
- package/src/api/index.ts +6 -0
- package/src/api/interceptors/index.ts +3 -0
- package/src/api/interceptors/request/index.ts +2 -0
- package/src/api/interceptors/request/updateToken.interceptor.ts +10 -0
- package/src/api/interceptors/response/handleUnauthorized.interceptor.ts +12 -0
- package/src/api/interceptors/response/index.ts +2 -0
- package/src/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.ts +19 -0
- package/src/api/transformers/applyTransform.ts +17 -0
- package/src/api/transformers/camelToSnake/camelToSnake.transformer.ts +5 -0
- package/src/api/transformers/generateUrl/generateUrl.transformer.ts +13 -0
- package/src/api/transformers/index.ts +28 -0
- package/src/api/transformers/log/log.transformer.ts +6 -0
- package/src/api/transformers/merge/merge.transformer.ts +8 -0
- package/src/api/transformers/mergeEach/mergeEach.transformer.ts +8 -0
- package/src/api/transformers/notify/notify.transformer.ts +39 -0
- package/src/api/transformers/sanitize/sanitize.transformer.ts +12 -0
- package/src/api/transformers/skipIf/skipIf.ts +11 -0
- package/src/api/transformers/snakeToCamel/snakeToCamel.transformer.ts +5 -0
- package/src/api/transformers/starToSearch/starToSearch.transformer.ts +15 -0
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/interfaces/_models_webitelCasesInputSource.WebitelCasesInputSource.html +0 -1
- package/src/gen/_docs/html/interfaces/_models_webitelCasesSource.WebitelCasesSource.html +5 -6
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/sources_sources.zod.gen.html +7 -7
- package/src/gen/_docs/html/types/_models_createCaseParams.CreateCaseParams.html +9 -3
- package/src/gen/_docs/html/types/_models_updateCase2Params.UpdateCase2Params.html +8 -3
- package/src/gen/_docs/html/types/_models_updateCaseParams.UpdateCaseParams.html +8 -3
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.createCaseQueryParams.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2QueryParams.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseQueryParams.html +1 -1
- package/src/gen/_models/createCaseParams.ts +8 -0
- package/src/gen/_models/updateCase2Params.ts +8 -0
- package/src/gen/_models/updateCaseParams.ts +8 -0
- package/src/gen/_models/webitelCasesInputSource.ts +0 -1
- package/src/gen/_models/webitelCasesSource.ts +5 -6
- package/src/gen/cases/cases.zod.gen.ts +18 -0
- package/src/gen/sources/sources.msw.api.gen.ts +6 -6
- package/src/gen/sources/sources.zod.gen.ts +0 -27
- package/types/api/axios/generateInstance.d.ts +2 -0
- package/types/api/axios/index.d.ts +1 -0
- package/types/api/clients/_shared/generatePermissionsApi.d.ts +13 -0
- package/types/api/clients/agents/agentChats.d.ts +8 -0
- package/types/api/clients/agents/agents.d.ts +44 -0
- package/types/api/clients/buckets/buckets.d.ts +24 -0
- package/types/api/clients/calendars/calendars.d.ts +28 -0
- package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +24 -0
- package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +30 -0
- package/types/api/clients/casePriorities/casePriorities.d.ts +24 -0
- package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +24 -0
- package/types/api/clients/caseServices/services.d.ts +35 -0
- package/types/api/clients/caseSources/caseSources.d.ts +24 -0
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +36 -0
- package/types/api/clients/caseStatuses/caseStatuses.d.ts +24 -0
- package/types/api/clients/catalog/catalog.d.ts +9 -0
- package/types/api/clients/chatGateways/chatGateways.d.ts +28 -0
- package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +15 -0
- package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +64 -0
- package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +8 -0
- package/types/api/clients/chatGateways/scripts/generateUri.d.ts +2 -0
- package/types/api/clients/communications/communications.d.ts +28 -0
- package/types/api/clients/configurations/configurations.d.ts +28 -0
- package/types/api/clients/contactGroups/contactGroups.d.ts +47 -0
- package/types/api/clients/flows/flow.d.ts +28 -0
- package/types/api/clients/gateways/defaults/defaultGateway.d.ts +8 -0
- package/types/api/clients/gateways/defaults/registerGateway.d.ts +13 -0
- package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +11 -0
- package/types/api/clients/gateways/gateways.d.ts +28 -0
- package/types/api/clients/index.d.ts +33 -0
- package/types/api/clients/labels/labels.d.ts +11 -0
- package/types/api/clients/lists/blacklists.d.ts +24 -0
- package/types/api/clients/media/media.d.ts +19 -0
- package/types/api/clients/object/object.d.ts +11 -0
- package/types/api/clients/queues/defaults/processing.d.ts +7 -0
- package/types/api/clients/queues/queues.d.ts +32 -0
- package/types/api/clients/quickReplies/quickReplies.d.ts +24 -0
- package/types/api/clients/roles/roles.d.ts +32 -0
- package/types/api/clients/skills/skills.d.ts +24 -0
- package/types/api/clients/slaConditions/slaConditions.d.ts +30 -0
- package/types/api/clients/slas/slas.d.ts +24 -0
- package/types/api/clients/teams/teams.d.ts +24 -0
- package/types/api/clients/users/users.d.ts +46 -0
- package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +2 -0
- package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +30 -0
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +32 -0
- package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +14 -0
- package/types/api/clients//321/201ontacts/contacts.d.ts +23 -0
- package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +8 -0
- package/types/api/clients//321/201ontacts/index.d.ts +4 -0
- package/types/api/defaults/getDefaultGetListResponse/getDefaultGetListResponse.d.ts +5 -0
- package/types/api/defaults/getDefaultGetParams/getDefaultGetParams.d.ts +8 -0
- package/types/api/defaults/getDefaultInstance/getDefaultInstance.d.ts +3 -0
- package/types/api/defaults/getDefaultOpenAPIConfig/getDefaultOpenAPIConfig.d.ts +3 -0
- package/types/api/defaults/index.d.ts +5 -0
- package/types/api/index.d.ts +5 -0
- package/types/api/interceptors/index.d.ts +2 -0
- package/types/api/interceptors/request/index.d.ts +1 -0
- package/types/api/interceptors/request/updateToken.interceptor.d.ts +2 -0
- package/types/api/interceptors/response/handleUnauthorized.interceptor.d.ts +2 -0
- package/types/api/interceptors/response/index.d.ts +1 -0
- package/types/api/transformers/addQueryParamsToUrl/addQueryParamsToUrl.transformer.d.ts +2 -0
- package/types/api/transformers/applyTransform.d.ts +5 -0
- package/types/api/transformers/camelToSnake/camelToSnake.transformer.d.ts +2 -0
- package/types/api/transformers/generateUrl/generateUrl.transformer.d.ts +2 -0
- package/types/api/transformers/index.d.ts +14 -0
- package/types/api/transformers/log/log.transformer.d.ts +2 -0
- package/types/api/transformers/merge/merge.transformer.d.ts +2 -0
- package/types/api/transformers/mergeEach/mergeEach.transformer.d.ts +2 -0
- package/types/api/transformers/notify/notify.transformer.d.ts +2 -0
- package/types/api/transformers/sanitize/sanitize.transformer.d.ts +2 -0
- package/types/api/transformers/skipIf/skipIf.d.ts +1 -0
- package/types/api/transformers/snakeToCamel/snakeToCamel.transformer.d.ts +2 -0
- package/types/api/transformers/starToSearch/starToSearch.transformer.d.ts +2 -0
- package/types/gen/_models/configServicePatchConfigBody.d.ts +15 -0
- package/types/gen/_models/configServiceUpdateConfigBody.d.ts +14 -0
- package/types/gen/_models/engineTriggerObjectType.d.ts +0 -1
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +0 -2
- package/types/gen/_models/googlerpcStatus.d.ts +4 -4
- package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +12 -0
- package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +9 -0
- package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +10 -0
- package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +9 -0
- package/types/gen/_models/readSystemObjectsParams.d.ts +9 -0
- package/types/gen/_models/searchConfigObjectItem.d.ts +25 -0
- package/types/gen/_models/searchConfigParams.d.ts +18 -0
- package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +14 -0
- package/types/gen/_models/searchLogByConfigIdParams.d.ts +19 -0
- package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +14 -0
- package/types/gen/_models/searchLogByRecordIdParams.d.ts +22 -0
- package/types/gen/_models/searchLogByUserIdActionItem.d.ts +14 -0
- package/types/gen/_models/searchLogByUserIdParams.d.ts +25 -0
- package/types/gen/_models/storageUploadFileChannel.d.ts +0 -2
- package/types/gen/_models/webitelcasesStatus.d.ts +2 -2
- package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +0 -18
- package/types/gen/file-service/file-service.api.gen.d.ts +1 -3
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +1 -3
- package/types/gen/file-service/file-service.zod.gen.d.ts +0 -18
- package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +0 -9
- package/src/defaults/index.ts +0 -2
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceBodyNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceResponseNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.deleteSourceResponseNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesResponseItemsItemNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.locateSourceResponseSourceNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2BodyNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2ResponseNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceBodyNameRegExp.html +0 -1
- package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceResponseNameRegExp.html +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const GatewaysAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
patch: ({ changes, id }: {
|
|
13
|
+
changes: any;
|
|
14
|
+
id: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default GatewaysAPI;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import agentChats from './agents/agentChats';
|
|
2
|
+
import agents from './agents/agents';
|
|
3
|
+
import buckets from './buckets/buckets';
|
|
4
|
+
import calendars from './calendars/calendars';
|
|
5
|
+
import caseCloseReasonGroups from './caseCloseReasonGroups/caseCloseReasonGroups';
|
|
6
|
+
import caseCloseReasons from './caseCloseReasons/caseCloseReasons';
|
|
7
|
+
import casePriorities from './casePriorities/casePriorities';
|
|
8
|
+
import caseServiceCatalogs from './caseServiceCatalogs/serviceCatalogs';
|
|
9
|
+
import caseSources from './caseSources/caseSources';
|
|
10
|
+
import caseStatusConditions from './caseStatusConditions/caseStatusConditions';
|
|
11
|
+
import caseStatuses from './caseStatuses/caseStatuses';
|
|
12
|
+
import catalog from './catalog/catalog';
|
|
13
|
+
import chatGateways from './chatGateways/chatGateways';
|
|
14
|
+
import communications from './communications/communications';
|
|
15
|
+
import configurations from './configurations/configurations';
|
|
16
|
+
import contactGroups from './contactGroups/contactGroups';
|
|
17
|
+
import flows from './flows/flow';
|
|
18
|
+
import gateways from './gateways/gateways';
|
|
19
|
+
import labels from './labels/labels';
|
|
20
|
+
import lists from './lists/blacklists';
|
|
21
|
+
import media from './media/media';
|
|
22
|
+
import object from './object/object';
|
|
23
|
+
import queues from './queues/queues';
|
|
24
|
+
import roles from './roles/roles';
|
|
25
|
+
import skills from './skills/skills';
|
|
26
|
+
import slas from './slas/slas';
|
|
27
|
+
import teams from './teams/teams';
|
|
28
|
+
import users from './users/users';
|
|
29
|
+
import sysTypes from './wtTypes/sysTypes/sysTypes';
|
|
30
|
+
import typeExtensions from './wtTypes/typeExtensions/typeExtensions';
|
|
31
|
+
import { contactChatMessagesHistory, contacts } from './сontacts/index';
|
|
32
|
+
import quickReplies from './quickReplies/quickReplies';
|
|
33
|
+
export { agentChats, agents, buckets, calendars, caseCloseReasonGroups, caseCloseReasons, casePriorities, caseServiceCatalogs, caseSources, caseStatusConditions, caseStatuses, catalog, chatGateways, communications, configurations, contactChatMessagesHistory, contactGroups, contacts, flows, gateways, labels, lists, media, object, queues, quickReplies, roles, skills, slas, sysTypes, teams, typeExtensions, users, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const BlacklistsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default BlacklistsAPI;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const downloadMedia: (id: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
2
|
+
declare const MediaAPI: {
|
|
3
|
+
getList: (params: any) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ itemId }: {
|
|
8
|
+
itemId: any;
|
|
9
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
add: (params: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
delete: ({ id }: {
|
|
12
|
+
id: any;
|
|
13
|
+
}) => Promise<any>;
|
|
14
|
+
getLookup: (params: any) => Promise<{
|
|
15
|
+
items: any;
|
|
16
|
+
next: any;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export default MediaAPI;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const QueuesAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
patch: ({ id, changes }: {
|
|
13
|
+
id: any;
|
|
14
|
+
changes: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
getQueuesTags: (params: any) => Promise<{
|
|
28
|
+
items: any;
|
|
29
|
+
next: any;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
export default QueuesAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const QuickRepliesApi: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default QuickRepliesApi;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const RolesAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
getExtendedRoles: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
getPermissionsOptions: (params: any) => Promise<{
|
|
28
|
+
items: any;
|
|
29
|
+
next: any;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
export default RolesAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const SkillsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default SkillsAPI;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const SLAConditionsAPI: {
|
|
2
|
+
getList: ({ parentId, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
get: ({ parentId, itemId: id }: {
|
|
10
|
+
parentId: any;
|
|
11
|
+
itemId: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
update: ({ itemInstance, itemId: id }: {
|
|
14
|
+
itemInstance: any;
|
|
15
|
+
itemId: any;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
delete: ({ id, parentId }: {
|
|
18
|
+
id: any;
|
|
19
|
+
parentId: any;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
add: ({ itemInstance, parentId }: {
|
|
22
|
+
itemInstance: any;
|
|
23
|
+
parentId: any;
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
getLookup: (params: any) => Promise<{
|
|
26
|
+
items: any;
|
|
27
|
+
next: any;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export default SLAConditionsAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const SlasAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
getLookup: (params: any) => Promise<{
|
|
7
|
+
items: any;
|
|
8
|
+
next: any;
|
|
9
|
+
}>;
|
|
10
|
+
get: ({ itemId: id }: {
|
|
11
|
+
itemId: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
add: ({ itemInstance }: {
|
|
14
|
+
itemInstance: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
export default SlasAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const TeamsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default TeamsAPI;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const UsersAPI: {
|
|
2
|
+
getPermissionsList: ({ parentId, ...params }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
patchPermissions: ({ changes, id }: {
|
|
10
|
+
changes: any;
|
|
11
|
+
id: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
getList: (params: any) => Promise<{
|
|
14
|
+
items: any;
|
|
15
|
+
next: any;
|
|
16
|
+
}>;
|
|
17
|
+
get: ({ itemId: id }: {
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
add: ({ itemInstance }: {
|
|
21
|
+
itemInstance: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
patch: ({ changes, id }: {
|
|
24
|
+
changes: any;
|
|
25
|
+
id: any;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
update: ({ itemInstance, itemId: id }: {
|
|
28
|
+
itemInstance: any;
|
|
29
|
+
itemId: any;
|
|
30
|
+
}) => Promise<any>;
|
|
31
|
+
delete: ({ id }: {
|
|
32
|
+
id: any;
|
|
33
|
+
}) => Promise<any>;
|
|
34
|
+
getLookup: (params: any) => Promise<{
|
|
35
|
+
items: any;
|
|
36
|
+
next: any;
|
|
37
|
+
}>;
|
|
38
|
+
patchUserPresence: ({ changes, id }: {
|
|
39
|
+
changes: any;
|
|
40
|
+
id: any;
|
|
41
|
+
}) => Promise<any>;
|
|
42
|
+
logoutUser: ({ id }: {
|
|
43
|
+
id: any;
|
|
44
|
+
}) => Promise<any>;
|
|
45
|
+
};
|
|
46
|
+
export default UsersAPI;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const getSysTypeRecordsList: ({ path, display, primary, ...params }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
path: any;
|
|
4
|
+
display: any;
|
|
5
|
+
primary: any;
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
items: any;
|
|
8
|
+
next: any;
|
|
9
|
+
}>;
|
|
10
|
+
declare const getSysTypeRecordsLookup: (params: any) => Promise<{
|
|
11
|
+
items: any;
|
|
12
|
+
next: any;
|
|
13
|
+
}>;
|
|
14
|
+
declare const SysTypesApi: {
|
|
15
|
+
getList: ({ path, display, primary, ...params }: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
path: any;
|
|
18
|
+
display: any;
|
|
19
|
+
primary: any;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
items: any;
|
|
22
|
+
next: any;
|
|
23
|
+
}>;
|
|
24
|
+
getLookup: (params: any) => Promise<{
|
|
25
|
+
items: any;
|
|
26
|
+
next: any;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
export { getSysTypeRecordsList, getSysTypeRecordsLookup };
|
|
30
|
+
export default SysTypesApi;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const getTypeExtension: ({ itemId: typeRepo }: {
|
|
2
|
+
itemId: any;
|
|
3
|
+
}) => Promise<any>;
|
|
4
|
+
declare const addTypeExtension: ({ itemInstance, itemId: typeRepo }: {
|
|
5
|
+
itemInstance: any;
|
|
6
|
+
itemId: any;
|
|
7
|
+
}) => Promise<any>;
|
|
8
|
+
declare const deleteTypeExtension: ({ itemId: typeRepo }: {
|
|
9
|
+
itemId: any;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
declare const updateTypeExtension: ({ itemInstance, itemId: typeRepo }: {
|
|
12
|
+
itemInstance: any;
|
|
13
|
+
itemId: any;
|
|
14
|
+
}) => Promise<any>;
|
|
15
|
+
declare const WtTypeExtensionApi: {
|
|
16
|
+
getList: ({ itemId: typeRepo }: {
|
|
17
|
+
itemId: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
add: ({ itemInstance, itemId: typeRepo }: {
|
|
20
|
+
itemInstance: any;
|
|
21
|
+
itemId: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
update: ({ itemInstance, itemId: typeRepo }: {
|
|
24
|
+
itemInstance: any;
|
|
25
|
+
itemId: any;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
delete: ({ itemId: typeRepo }: {
|
|
28
|
+
itemId: any;
|
|
29
|
+
}) => Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
export { addTypeExtension, deleteTypeExtension, getTypeExtension, updateTypeExtension, };
|
|
32
|
+
export default WtTypeExtensionApi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
getChat: ({ contactId, chatId }: {
|
|
3
|
+
contactId: any;
|
|
4
|
+
chatId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
peers: any;
|
|
8
|
+
}>;
|
|
9
|
+
getAllMessages: (params: any) => Promise<{
|
|
10
|
+
items: any;
|
|
11
|
+
next: any;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const ContactsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
}) => Promise<any>;
|
|
15
|
+
delete: ({ id }: {
|
|
16
|
+
id: any;
|
|
17
|
+
}) => Promise<any>;
|
|
18
|
+
getLookup: (params: any) => Promise<{
|
|
19
|
+
items: any;
|
|
20
|
+
next: any;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export default ContactsAPI;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import getDefaultGetListResponse from './getDefaultGetListResponse/getDefaultGetListResponse';
|
|
2
|
+
import getDefaultGetParams from './getDefaultGetParams/getDefaultGetParams';
|
|
3
|
+
import getDefaultInstance from './getDefaultInstance/getDefaultInstance';
|
|
4
|
+
import getDefaultOpenAPIConfig from './getDefaultOpenAPIConfig/getDefaultOpenAPIConfig';
|
|
5
|
+
export { getDefaultGetListResponse, getDefaultGetParams, getDefaultInstance, getDefaultOpenAPIConfig, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as updateTokenInterceptor } from './updateToken.interceptor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as handleUnauthorizedInterceptor } from './handleUnauthorized.interceptor';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import addQueryParamsToUrl from './addQueryParamsToUrl/addQueryParamsToUrl.transformer';
|
|
2
|
+
import applyTransform from './applyTransform';
|
|
3
|
+
import camelToSnake from './camelToSnake/camelToSnake.transformer';
|
|
4
|
+
import generateUrl from './generateUrl/generateUrl.transformer';
|
|
5
|
+
import log from './log/log.transformer';
|
|
6
|
+
import merge from './merge/merge.transformer';
|
|
7
|
+
import mergeEach from './mergeEach/mergeEach.transformer';
|
|
8
|
+
import notify from './notify/notify.transformer';
|
|
9
|
+
import sanitize from './sanitize/sanitize.transformer';
|
|
10
|
+
import { skipIf } from './skipIf/skipIf';
|
|
11
|
+
import snakeToCamel from './snakeToCamel/snakeToCamel.transformer';
|
|
12
|
+
import starToSearch from './starToSearch/starToSearch.transformer';
|
|
13
|
+
export { addQueryParamsToUrl, camelToSnake, generateUrl, log, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
|
|
14
|
+
export default applyTransform;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const skipIf: (transformer: (...payload: unknown[]) => unknown, ifFn: boolean | ((...payload: unknown[]) => boolean)) => (payload: unknown) => unknown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.9.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { LoggerLookup } from './loggerLookup';
|
|
8
|
+
export interface ConfigServicePatchConfigBody {
|
|
9
|
+
daysToStore?: number;
|
|
10
|
+
description?: string;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
fields?: string[];
|
|
13
|
+
period?: number;
|
|
14
|
+
storage?: LoggerLookup;
|
|
15
|
+
}
|