@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,13 @@
|
|
|
1
|
+
export declare const generatePermissionsApi: (baseUrl: any) => {
|
|
2
|
+
getPermissionsList: ({ parentId, ...params }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
patchPermissions: ({ changes, id }: {
|
|
10
|
+
changes: any;
|
|
11
|
+
id: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const AgentsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
patch: ({ changes, id }: {
|
|
13
|
+
changes: any;
|
|
14
|
+
id: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
getAgentHistory: (params: any) => Promise<{
|
|
28
|
+
items: any;
|
|
29
|
+
next: any;
|
|
30
|
+
}>;
|
|
31
|
+
getRegularAgentsOptions: (params: any) => Promise<{
|
|
32
|
+
items: any;
|
|
33
|
+
next: any;
|
|
34
|
+
}>;
|
|
35
|
+
getAgentUsersOptions: (params: any) => Promise<{
|
|
36
|
+
items: any;
|
|
37
|
+
next: any;
|
|
38
|
+
}>;
|
|
39
|
+
getSupervisorOptions: (params: any) => Promise<{
|
|
40
|
+
items: any;
|
|
41
|
+
next: any;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
export default AgentsAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const BucketsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default BucketsAPI;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const CalendarsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
getTimezonesLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default CalendarsAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const CaseCloseReasonGroupsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default CaseCloseReasonGroupsAPI;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const CaseCloseReasonsAPI: {
|
|
2
|
+
getList: ({ parentId, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
getLookup: (params: any) => Promise<{
|
|
10
|
+
items: any;
|
|
11
|
+
next: any;
|
|
12
|
+
}>;
|
|
13
|
+
get: ({ parentId, itemId: id }: {
|
|
14
|
+
parentId: any;
|
|
15
|
+
itemId: any;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
add: ({ itemInstance, parentId }: {
|
|
18
|
+
itemInstance: any;
|
|
19
|
+
parentId: any;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
update: ({ itemInstance, itemId: id }: {
|
|
22
|
+
itemInstance: any;
|
|
23
|
+
itemId: any;
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
delete: ({ id, parentId }: {
|
|
26
|
+
id: any;
|
|
27
|
+
parentId: any;
|
|
28
|
+
}) => Promise<any>;
|
|
29
|
+
};
|
|
30
|
+
export default CaseCloseReasonsAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const CasePrioritiesAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
update: ({ itemInstance, itemId: id }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
itemId: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
getLookup: (params: any) => Promise<{
|
|
14
|
+
items: any;
|
|
15
|
+
next: any;
|
|
16
|
+
}>;
|
|
17
|
+
delete: ({ id }: {
|
|
18
|
+
id: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
add: ({ itemInstance }: {
|
|
21
|
+
itemInstance: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
export default CasePrioritiesAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const ServiceCatalogsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
patch: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
export default ServiceCatalogsAPI;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const ServicesAPI: {
|
|
2
|
+
getList: ({ rootId, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
rootId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
get: ({ itemId: id }: {
|
|
10
|
+
itemId: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance, rootId, catalogId }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
rootId: any;
|
|
15
|
+
catalogId: any;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
update: ({ itemInstance, itemId: id, rootId, catalogId, }: {
|
|
18
|
+
itemInstance: any;
|
|
19
|
+
itemId: any;
|
|
20
|
+
rootId: any;
|
|
21
|
+
catalogId: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
patch: ({ changes, id }: {
|
|
24
|
+
changes: any;
|
|
25
|
+
id: any;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
delete: ({ id }: {
|
|
28
|
+
id: any;
|
|
29
|
+
}) => Promise<any>;
|
|
30
|
+
getLookup: (params: any) => Promise<{
|
|
31
|
+
items: any;
|
|
32
|
+
next: any;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
export default ServicesAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const CaseSourcesAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export default CaseSourcesAPI;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const CaseStatusConditionsAPI: {
|
|
2
|
+
getList: ({ parentId, ...rest }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
getLookup: (params: any) => Promise<{
|
|
10
|
+
items: any;
|
|
11
|
+
next: any;
|
|
12
|
+
}>;
|
|
13
|
+
get: ({ parentId, itemId: id }: {
|
|
14
|
+
parentId: any;
|
|
15
|
+
itemId: any;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
update: ({ itemInstance, itemId: id, parentId, }: {
|
|
18
|
+
itemInstance: any;
|
|
19
|
+
itemId: any;
|
|
20
|
+
parentId: any;
|
|
21
|
+
}) => Promise<any>;
|
|
22
|
+
patch: ({ id, parentId, changes }: {
|
|
23
|
+
id: any;
|
|
24
|
+
parentId: any;
|
|
25
|
+
changes: any;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
delete: ({ id, parentId }: {
|
|
28
|
+
id: any;
|
|
29
|
+
parentId: any;
|
|
30
|
+
}) => Promise<any>;
|
|
31
|
+
add: ({ itemInstance, parentId }: {
|
|
32
|
+
itemInstance: any;
|
|
33
|
+
parentId: any;
|
|
34
|
+
}) => Promise<any>;
|
|
35
|
+
};
|
|
36
|
+
export default CaseStatusConditionsAPI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const CaseStatusesApi: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
update: ({ itemInstance, itemId: id }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
itemId: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
getLookup: (params: any) => Promise<{
|
|
14
|
+
items: any;
|
|
15
|
+
next: any;
|
|
16
|
+
}>;
|
|
17
|
+
delete: ({ id }: {
|
|
18
|
+
id: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
add: ({ itemInstance }: {
|
|
21
|
+
itemInstance: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
};
|
|
24
|
+
export default CaseStatusesApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const ChatGatewaysAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
patch: ({ changes, id }: {
|
|
13
|
+
changes: any;
|
|
14
|
+
id: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default ChatGatewaysAPI;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const defaultChatGateway: () => {
|
|
2
|
+
name: string;
|
|
3
|
+
uri: string;
|
|
4
|
+
flow: {};
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
provider: string;
|
|
7
|
+
metadata: {};
|
|
8
|
+
updates: {
|
|
9
|
+
title: string;
|
|
10
|
+
close: string;
|
|
11
|
+
join: string;
|
|
12
|
+
left: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default defaultChatGateway;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const webChatGateway: (_btnCodeDirty?: boolean) => {
|
|
2
|
+
provider: any;
|
|
3
|
+
metadata: {
|
|
4
|
+
allowOrigin: any[];
|
|
5
|
+
readTimeout: string;
|
|
6
|
+
writeTimeout: string;
|
|
7
|
+
handshakeTimeout: string;
|
|
8
|
+
mediaMaxSize: string;
|
|
9
|
+
_btnCodeDirty: boolean;
|
|
10
|
+
view: {
|
|
11
|
+
borderRadiusStyle: string;
|
|
12
|
+
lang: string;
|
|
13
|
+
btnOpacity: string;
|
|
14
|
+
logoUrl: string;
|
|
15
|
+
accentColor: string;
|
|
16
|
+
position: string;
|
|
17
|
+
};
|
|
18
|
+
captcha: {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
sitekey: string;
|
|
21
|
+
secret: string;
|
|
22
|
+
threshold: number;
|
|
23
|
+
showFlag: boolean;
|
|
24
|
+
};
|
|
25
|
+
chat: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
timeoutIsActive: boolean;
|
|
28
|
+
openTimeout: string;
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
appointment: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
url: string;
|
|
34
|
+
queue: {};
|
|
35
|
+
communicationType: {};
|
|
36
|
+
duration: string;
|
|
37
|
+
days: number;
|
|
38
|
+
availableAgents: number;
|
|
39
|
+
successTitle: string;
|
|
40
|
+
successSubtitle: string;
|
|
41
|
+
showDefaultHeading: boolean;
|
|
42
|
+
showEmailField: boolean;
|
|
43
|
+
showMessageField: boolean;
|
|
44
|
+
};
|
|
45
|
+
call: {
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
url: string;
|
|
48
|
+
flow: {};
|
|
49
|
+
id: string;
|
|
50
|
+
};
|
|
51
|
+
alternativeChannels: {};
|
|
52
|
+
};
|
|
53
|
+
name: string;
|
|
54
|
+
uri: string;
|
|
55
|
+
flow: {};
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
updates: {
|
|
58
|
+
title: string;
|
|
59
|
+
close: string;
|
|
60
|
+
join: string;
|
|
61
|
+
left: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default webChatGateway;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const CommunicationsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
patch: ({ changes, id }: {
|
|
13
|
+
changes: any;
|
|
14
|
+
id: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
update: ({ itemInstance, itemId: id }: {
|
|
17
|
+
itemInstance: any;
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
delete: ({ id }: {
|
|
21
|
+
id: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
getLookup: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default CommunicationsAPI;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const ConfigurationsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
getObjectsList: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default ConfigurationsAPI;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const ContactGroupsAPI: {
|
|
2
|
+
getPermissionsList: ({ parentId, ...params }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
parentId: any;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
items: any;
|
|
7
|
+
next: any;
|
|
8
|
+
}>;
|
|
9
|
+
patchPermissions: ({ changes, id }: {
|
|
10
|
+
changes: any;
|
|
11
|
+
id: any;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
getList: (params: any) => Promise<{
|
|
14
|
+
items: any;
|
|
15
|
+
next: any;
|
|
16
|
+
}>;
|
|
17
|
+
get: ({ itemId: id }: {
|
|
18
|
+
itemId: any;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
add: ({ itemInstance }: {
|
|
21
|
+
itemInstance: any;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
update: ({ itemInstance, itemId: id }: {
|
|
24
|
+
itemInstance: any;
|
|
25
|
+
itemId: any;
|
|
26
|
+
}) => Promise<any>;
|
|
27
|
+
patch: ({ id, changes }: {
|
|
28
|
+
id: any;
|
|
29
|
+
changes: any;
|
|
30
|
+
}) => Promise<any>;
|
|
31
|
+
delete: ({ id }: {
|
|
32
|
+
id: any;
|
|
33
|
+
}) => Promise<any>;
|
|
34
|
+
getLookup: (params: any) => Promise<{
|
|
35
|
+
items: any;
|
|
36
|
+
next: any;
|
|
37
|
+
}>;
|
|
38
|
+
addContactsToGroups: ({ contactIds, groupIds }: {
|
|
39
|
+
contactIds: any;
|
|
40
|
+
groupIds: any;
|
|
41
|
+
}) => Promise<any>;
|
|
42
|
+
removeContactsFromGroup: ({ id, contactIds }: {
|
|
43
|
+
id: any;
|
|
44
|
+
contactIds: any;
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
};
|
|
47
|
+
export default ContactGroupsAPI;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const FlowsAPI: {
|
|
2
|
+
getList: (params: any) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
get: ({ itemId: id }: {
|
|
7
|
+
itemId: any;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
add: ({ itemInstance }: {
|
|
10
|
+
itemInstance: any;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
update: ({ itemInstance, itemId: id }: {
|
|
13
|
+
itemInstance: any;
|
|
14
|
+
itemId: any;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
delete: ({ id }: {
|
|
17
|
+
id: any;
|
|
18
|
+
}) => Promise<any>;
|
|
19
|
+
getLookup: (params: any) => Promise<{
|
|
20
|
+
items: any;
|
|
21
|
+
next: any;
|
|
22
|
+
}>;
|
|
23
|
+
getFlowTags: (params: any) => Promise<{
|
|
24
|
+
items: any;
|
|
25
|
+
next: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export default FlowsAPI;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const registerGateway: () => {
|
|
2
|
+
register: boolean;
|
|
3
|
+
account: string;
|
|
4
|
+
username: string;
|
|
5
|
+
expires: number;
|
|
6
|
+
password: string;
|
|
7
|
+
name: string;
|
|
8
|
+
usage: string;
|
|
9
|
+
proxy: string;
|
|
10
|
+
schema: {};
|
|
11
|
+
enable: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default registerGateway;
|