@webitel/api-services 1.0.9 → 1.0.11
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 +1 -1
- package/src/api/clients/__tests__/wireParamsCoverage.spec.ts +286 -0
- package/src/api/clients/activeCalls/activeCalls.ts +72 -0
- package/src/api/clients/agentPauseCauses/agentPauseCauses.ts +182 -0
- package/src/api/clients/agentSkills/agentSkills.ts +193 -0
- package/src/api/clients/agents/__tests__/agents.wireParams.spec.ts +51 -0
- package/src/api/clients/agents/agents.ts +203 -18
- package/src/api/clients/auditForms/auditForms.ts +6 -2
- package/src/api/clients/auditForms/auditRates.ts +91 -0
- package/src/api/clients/backendProfiles/backendProfiles.ts +194 -0
- package/src/api/clients/buckets/buckets.ts +21 -25
- package/src/api/clients/callHistory/callAnnotations.ts +91 -0
- package/src/api/clients/callHistory/callHistory.ts +76 -7
- package/src/api/clients/casePriorities/__tests__/casePriorities.spec.ts +50 -0
- package/src/api/clients/casePriorities/casePriorities.ts +25 -41
- package/src/api/clients/caseStatusConditions/caseStatusConditions.ts +21 -31
- package/src/api/clients/caseStatuses/caseStatuses.ts +10 -21
- package/src/api/clients/cases/cases.ts +6 -3
- package/src/api/clients/catalog/catalog.ts +2 -8
- package/src/api/clients/changelogs/changelogs.ts +8 -0
- package/src/api/clients/chatplans/chatplans.ts +173 -0
- package/src/api/clients/cognitiveProfiles/cognitiveProfiles.ts +209 -0
- package/src/api/clients/communications/communications.ts +38 -42
- package/src/api/clients/dialplans/dialplans.ts +197 -0
- package/src/api/clients/emailProfiles/emailProfiles.ts +222 -0
- package/src/api/clients/fileServices/fileServices.ts +7 -2
- package/src/api/clients/flows/flow.ts +54 -43
- package/src/api/clients/fts/fts.ts +61 -0
- package/src/api/clients/history/transcript/callTranscript.ts +10 -20
- package/src/api/clients/importTemplates/importTemplates.ts +180 -0
- package/src/api/clients/index.ts +30 -0
- package/src/api/clients/lists/blacklistNumbers.ts +155 -0
- package/src/api/clients/lists/blacklists.ts +20 -25
- package/src/api/clients/logs/logs.ts +157 -0
- package/src/api/clients/media/media.ts +19 -15
- package/src/api/clients/object/object.ts +3 -14
- package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +187 -0
- package/src/api/clients/outboundResourceGroups/resourcesInGroup.ts +169 -0
- package/src/api/clients/outboundResources/outboundResources.ts +225 -0
- package/src/api/clients/outboundResources/resourceDisplays.ts +165 -0
- package/src/api/clients/pauseTemplates/pauseTemplates.ts +203 -0
- package/src/api/clients/queues/__tests__/queueLogs.spec.ts +3 -3
- package/src/api/clients/queues/__tests__/queueMembers.spec.ts +4 -4
- package/src/api/clients/queues/queueLogs.ts +8 -3
- package/src/api/clients/queues/queueMembers.ts +3 -3
- package/src/api/clients/queues/queues.ts +52 -0
- package/src/api/clients/regions/regions.ts +21 -25
- package/src/api/clients/schemaVariables/schemaVariables.ts +167 -0
- package/src/api/clients/shiftTemplates/shiftTemplates.ts +176 -0
- package/src/api/clients/skills/skillAgents.ts +190 -0
- package/src/api/clients/skills/skills.ts +21 -25
- package/src/api/clients/storagePolicies/storagePolicies.ts +270 -0
- package/src/api/clients/teamHooks/teamHooks.ts +195 -0
- package/src/api/clients/teamTriggers/agentTriggers.ts +77 -0
- package/src/api/clients/teamTriggers/teamFlows.ts +194 -0
- package/src/api/clients/teams/teams.ts +31 -31
- package/src/api/clients/triggers/triggerJobs.ts +63 -0
- package/src/api/clients/triggers/triggers.ts +266 -0
- package/src/api/clients/userSettings/userSettings.ts +8 -9
- package/src/api/clients/users/users.ts +2 -0
- package/src/api/clients/workingConditions/workingConditions.ts +184 -0
- package/src/api/clients/workspaceWidgets/workspaceWidgets.ts +73 -0
- package/src/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.ts +3 -3
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +1 -1
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.ts +15 -26
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/activeCalls/activeCalls.d.ts +7 -0
- package/types/api/clients/agentPauseCauses/agentPauseCauses.d.ts +21 -0
- package/types/api/clients/agentSkills/agentSkills.d.ts +12 -0
- package/types/api/clients/agents/agents.d.ts +23 -2
- package/types/api/clients/auditForms/auditForms.d.ts +7 -0
- package/types/api/clients/auditForms/auditRates.d.ts +10 -0
- package/types/api/clients/backendProfiles/backendProfiles.d.ts +21 -0
- package/types/api/clients/callHistory/callAnnotations.d.ts +12 -0
- package/types/api/clients/callHistory/callHistory.d.ts +24 -3
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +4 -4
- package/types/api/clients/cases/cases.d.ts +5 -2
- package/types/api/clients/chatplans/chatplans.d.ts +21 -0
- package/types/api/clients/cognitiveProfiles/cognitiveProfiles.d.ts +21 -0
- package/types/api/clients/dialplans/dialplans.d.ts +16 -0
- package/types/api/clients/emailProfiles/emailProfiles.d.ts +27 -0
- package/types/api/clients/fileServices/fileServices.d.ts +1 -1
- package/types/api/clients/fts/fts.d.ts +7 -0
- package/types/api/clients/importTemplates/importTemplates.d.ts +21 -0
- package/types/api/clients/index.d.ts +30 -0
- package/types/api/clients/lists/blacklistNumbers.d.ts +11 -0
- package/types/api/clients/logs/logs.d.ts +15 -0
- package/types/api/clients/outboundResourceGroups/outboundResourceGroups.d.ts +20 -0
- package/types/api/clients/outboundResourceGroups/resourcesInGroup.d.ts +11 -0
- package/types/api/clients/outboundResources/outboundResources.d.ts +21 -0
- package/types/api/clients/outboundResources/resourceDisplays.d.ts +11 -0
- package/types/api/clients/pauseTemplates/pauseTemplates.d.ts +20 -0
- package/types/api/clients/queues/queues.d.ts +5 -0
- package/types/api/clients/schemaVariables/schemaVariables.d.ts +21 -0
- package/types/api/clients/shiftTemplates/shiftTemplates.d.ts +20 -0
- package/types/api/clients/skills/skillAgents.d.ts +13 -0
- package/types/api/clients/storagePolicies/storagePolicies.d.ts +26 -0
- package/types/api/clients/teamHooks/teamHooks.d.ts +12 -0
- package/types/api/clients/teamTriggers/agentTriggers.d.ts +23 -0
- package/types/api/clients/teamTriggers/teamFlows.d.ts +12 -0
- package/types/api/clients/triggers/triggerJobs.d.ts +7 -0
- package/types/api/clients/triggers/triggers.d.ts +22 -0
- package/types/api/clients/userSettings/userSettings.d.ts +2 -2
- package/types/api/clients/workingConditions/workingConditions.d.ts +20 -0
- package/types/api/clients/workspaceWidgets/workspaceWidgets.d.ts +3 -0
- package/types/api/clients/wtTypes/adjunctTypeRecords/adjunctTypeRecords.d.ts +2 -2
- package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getAgentPauseCausesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const AgentPauseCausesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getAgentPauseCausesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedPatchItemParams, NestedUpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const AgentSkillsAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ parentId, itemId: id }: NestedGetItemParams) => Promise<any>;
|
|
8
|
+
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
9
|
+
patch: ({ parentId, changes, id, }: NestedPatchItemParams) => Promise<any>;
|
|
10
|
+
update: ({ parentId, itemInstance, itemId: id, }: NestedUpdateItemParams) => Promise<any>;
|
|
11
|
+
delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
1
|
+
import type { AddItemParams, ApiId, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
2
|
declare const getAgentsList: (params: ApiParams) => Promise<{
|
|
3
3
|
items: any;
|
|
4
4
|
next: any;
|
|
@@ -8,7 +8,9 @@ export declare const AgentsAPI: {
|
|
|
8
8
|
items: any;
|
|
9
9
|
next: any;
|
|
10
10
|
}>;
|
|
11
|
-
get: ({ itemId: id }: GetItemParams
|
|
11
|
+
get: ({ itemId: id, defaultObject, }: GetItemParams & {
|
|
12
|
+
defaultObject?: ApiParams;
|
|
13
|
+
}) => Promise<any>;
|
|
12
14
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
15
|
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
16
|
update: ({ itemInstance, itemId: id }: UpdateItemParams) => Promise<any>;
|
|
@@ -37,5 +39,24 @@ export declare const AgentsAPI: {
|
|
|
37
39
|
items: any;
|
|
38
40
|
next: any;
|
|
39
41
|
}>;
|
|
42
|
+
getPauseCausesForAgent: ({ agentId }: {
|
|
43
|
+
agentId: ApiId;
|
|
44
|
+
}) => Promise<{
|
|
45
|
+
items: any;
|
|
46
|
+
next: any;
|
|
47
|
+
}>;
|
|
48
|
+
getAgentQueues: (params: ApiParams) => Promise<{
|
|
49
|
+
items: any;
|
|
50
|
+
next: any;
|
|
51
|
+
}>;
|
|
52
|
+
getStatusStatistics: (params: ApiParams) => Promise<{
|
|
53
|
+
items: any;
|
|
54
|
+
next: any;
|
|
55
|
+
}>;
|
|
56
|
+
getStatusStatisticsItem: ({ agentId, from, to, }: {
|
|
57
|
+
agentId: ApiId;
|
|
58
|
+
from?: string;
|
|
59
|
+
to?: string;
|
|
60
|
+
}) => Promise<any>;
|
|
40
61
|
};
|
|
41
62
|
export {};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* Fills in the defaults the backend omits for each question type. Shared with
|
|
4
|
+
* the audit rate client, whose payload embeds the same question list.
|
|
5
|
+
*/
|
|
6
|
+
export declare const auditFormQuestionsResponseHandler: (response: ApiParams) => {
|
|
7
|
+
questions: any;
|
|
8
|
+
};
|
|
2
9
|
declare const getAuditFormsList: (params: ApiParams) => Promise<{
|
|
3
10
|
items: any;
|
|
4
11
|
next: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EngineAuditRate } from '@webitel/api-services/gen/models';
|
|
2
|
+
export declare const AuditRatesAPI: {
|
|
3
|
+
get: (rateId: EngineAuditRate["id"]) => Promise<any>;
|
|
4
|
+
add: (itemInstance: EngineAuditRate) => Promise<any>;
|
|
5
|
+
update: ({ itemId, itemInstance, }: {
|
|
6
|
+
itemId: EngineAuditRate["id"];
|
|
7
|
+
itemInstance: EngineAuditRate;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
delete: (rateId: EngineAuditRate["id"]) => Promise<void>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getBackendProfilesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const BackendProfilesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getBackendProfilesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApiParams } from '../_shared/types';
|
|
2
|
+
export declare const CallAnnotationsAPI: {
|
|
3
|
+
add: ({ itemInstance, }: {
|
|
4
|
+
itemInstance: ApiParams;
|
|
5
|
+
}) => Promise<any>;
|
|
6
|
+
update: ({ itemInstance, }: {
|
|
7
|
+
itemInstance: ApiParams;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
delete: ({ itemInstance, }: {
|
|
10
|
+
itemInstance: ApiParams;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { applyTransform } from '../../transformers';
|
|
2
|
+
import type { ApiId, ApiParams } from '../_shared/types';
|
|
2
3
|
declare const getCallHistoryList: ({ options, ...params }: {
|
|
3
4
|
options: ApiParams;
|
|
4
5
|
} & ApiParams) => Promise<{
|
|
@@ -12,13 +13,33 @@ export declare const CallHistoryAPI: {
|
|
|
12
13
|
items: any;
|
|
13
14
|
next: any;
|
|
14
15
|
}>;
|
|
15
|
-
getListPost: ({ data, options, }: {
|
|
16
|
+
getListPost: ({ data, options, doNotConvertKeys, responseTransformers, }: {
|
|
16
17
|
data: ApiParams;
|
|
17
|
-
options
|
|
18
|
+
options?: ApiParams;
|
|
19
|
+
/**
|
|
20
|
+
* Keys whose contents are user data rather than API fields — `variables`,
|
|
21
|
+
* for instance — and must survive both case transformers untouched.
|
|
22
|
+
*/
|
|
23
|
+
doNotConvertKeys?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the default response pipeline. A CSV export, for one, wants the
|
|
26
|
+
* rows left in snake_case.
|
|
27
|
+
*/
|
|
28
|
+
responseTransformers?: Parameters<typeof applyTransform>[1];
|
|
18
29
|
}) => Promise<{
|
|
19
30
|
items: any;
|
|
20
31
|
next: any;
|
|
21
32
|
}>;
|
|
33
|
+
aggregate: ({ data, doNotConvertKeys, }: {
|
|
34
|
+
data: ApiParams;
|
|
35
|
+
doNotConvertKeys?: string[];
|
|
36
|
+
}) => Promise<any>;
|
|
37
|
+
redial: ({ callId }: {
|
|
38
|
+
callId: ApiId;
|
|
39
|
+
}) => Promise<import("../../../gen-wire").EngineCreateCallResponse>;
|
|
40
|
+
hideMissed: ({ callId }: {
|
|
41
|
+
callId: ApiId;
|
|
42
|
+
}) => Promise<import("../../../gen-wire").EngineHistoryCall>;
|
|
22
43
|
getLookup: (params: Parameters<typeof getCallHistoryList>[0]) => Promise<{
|
|
23
44
|
items: any;
|
|
24
45
|
next: any;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ApiId, ApiParams } from '../_shared/types';
|
|
2
2
|
declare const getStatusConditionsList: ({ statusId, parentId, ...rest }: {
|
|
3
|
-
statusId
|
|
4
|
-
parentId
|
|
3
|
+
statusId?: ApiId;
|
|
4
|
+
parentId?: ApiId;
|
|
5
5
|
} & ApiParams) => Promise<{
|
|
6
6
|
items: any;
|
|
7
7
|
next: any;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const CaseStatusConditionsAPI: {
|
|
10
10
|
getList: ({ statusId, parentId, ...rest }: {
|
|
11
|
-
statusId
|
|
12
|
-
parentId
|
|
11
|
+
statusId?: ApiId;
|
|
12
|
+
parentId?: ApiId;
|
|
13
13
|
} & ApiParams) => Promise<{
|
|
14
14
|
items: any;
|
|
15
15
|
next: any;
|
|
@@ -24,8 +24,11 @@ export declare const CasesAPI: {
|
|
|
24
24
|
update: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
25
25
|
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
26
26
|
patch: ({ changes, etag, }: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
id?: ApiId;
|
|
28
|
+
itemId?: ApiId;
|
|
29
|
+
changes?: ApiParams;
|
|
30
|
+
parentId?: ApiId;
|
|
31
|
+
etag?: ApiId;
|
|
29
32
|
}) => Promise<any>;
|
|
30
33
|
exportData: (params: ApiParams) => Promise<{
|
|
31
34
|
response: import("axios").AxiosResponse<import("../../../gen-wire").ExportCases200, any, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getChatplansList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ChatplansAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getChatplansList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getCognitiveProfilesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const CognitiveProfilesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getCognitiveProfilesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AddItemParams, ApiId, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const DialplansAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
8
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
9
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
10
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
11
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
12
|
+
moveDialplan: ({ fromId, toId, }: {
|
|
13
|
+
fromId: ApiId;
|
|
14
|
+
toId: ApiId;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AddItemParams, ApiId, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getEmailProfilesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const EmailProfilesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getEmailProfilesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
login: ({ id }: {
|
|
21
|
+
id: ApiId;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
logout: ({ id }: {
|
|
24
|
+
id: ApiId;
|
|
25
|
+
}) => Promise<any>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -7,7 +7,7 @@ export declare const FileServicesAPI: {
|
|
|
7
7
|
items: any;
|
|
8
8
|
next: any;
|
|
9
9
|
}>;
|
|
10
|
-
delete: (id: string[]) => Promise<any>;
|
|
10
|
+
delete: (id: string | string[]) => Promise<any>;
|
|
11
11
|
getScreenRecordingsByUser: (params: SearchScreenRecordingsParams & {
|
|
12
12
|
userId: ApiId;
|
|
13
13
|
search?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getImportTemplatesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ImportTemplatesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getImportTemplatesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export * from './_shared/generatePermissionsApi';
|
|
2
|
+
export * from './activeCalls/activeCalls';
|
|
3
|
+
export * from './agentPauseCauses/agentPauseCauses';
|
|
4
|
+
export * from './agentSkills/agentSkills';
|
|
2
5
|
export * from './agents/agentAbsence';
|
|
3
6
|
export * from './agents/agentChats';
|
|
4
7
|
export * from './agents/agents';
|
|
5
8
|
export * from './auditForms/auditForms';
|
|
9
|
+
export * from './auditForms/auditRates';
|
|
10
|
+
export * from './backendProfiles/backendProfiles';
|
|
6
11
|
export * from './buckets/buckets';
|
|
7
12
|
export * from './calendars/calendars';
|
|
13
|
+
export * from './callHistory/callAnnotations';
|
|
8
14
|
export * from './callHistory/callHistory';
|
|
9
15
|
export * from './caseCloseReasonGroups/caseCloseReasonGroups';
|
|
10
16
|
export * from './caseCloseReasons/caseCloseReasons';
|
|
@@ -24,25 +30,38 @@ export * from './changelogs/changelogs';
|
|
|
24
30
|
export * from './chatDialogs/chatDialogs';
|
|
25
31
|
export * from './chatGateways/chatGateways';
|
|
26
32
|
export * from './chatMessagesHistory/chatMessagesHistory';
|
|
33
|
+
export * from './chatplans/chatplans';
|
|
34
|
+
export * from './cognitiveProfiles/cognitiveProfiles';
|
|
27
35
|
export * from './communications/communications';
|
|
28
36
|
export * from './configurations/configurations';
|
|
29
37
|
export * from './contactCases/contactCases';
|
|
30
38
|
export * from './contactGroups/contactGroups';
|
|
39
|
+
export * from './dialplans/dialplans';
|
|
31
40
|
export * from './dynamicConditions/dynamicConditions';
|
|
32
41
|
export * from './dynamicGroups/dynamicGroups';
|
|
42
|
+
export * from './emailProfiles/emailProfiles';
|
|
33
43
|
export * from './emails/emails';
|
|
34
44
|
export * from './fileServices/fileServices';
|
|
35
45
|
export * from './flows/flow';
|
|
46
|
+
export * from './fts/fts';
|
|
36
47
|
export * from './gateways/gateways';
|
|
37
48
|
export * from './history/transcript/callTranscript';
|
|
38
49
|
export * from './imClients/imClients';
|
|
50
|
+
export * from './importTemplates/importTemplates';
|
|
39
51
|
export * from './labels/labels';
|
|
52
|
+
export * from './lists/blacklistNumbers';
|
|
40
53
|
export * from './lists/blacklists';
|
|
54
|
+
export * from './logs/logs';
|
|
41
55
|
export * from './media/media';
|
|
42
56
|
export * from './messageService/messageService';
|
|
43
57
|
export * from './oauthApps/oauthApps';
|
|
44
58
|
export * from './object/object';
|
|
45
59
|
export * from './onlineSkills/onlineSkills';
|
|
60
|
+
export * from './outboundResourceGroups/outboundResourceGroups';
|
|
61
|
+
export * from './outboundResourceGroups/resourcesInGroup';
|
|
62
|
+
export * from './outboundResources/outboundResources';
|
|
63
|
+
export * from './outboundResources/resourceDisplays';
|
|
64
|
+
export * from './pauseTemplates/pauseTemplates';
|
|
46
65
|
export * from './pdfServices/pdfServices';
|
|
47
66
|
export * from './phones/phones';
|
|
48
67
|
export * from './queues/queueAgents';
|
|
@@ -56,14 +75,25 @@ export * from './queues/queueState';
|
|
|
56
75
|
export * from './queues/queues';
|
|
57
76
|
export * from './quickReplies/quickReplies';
|
|
58
77
|
export * from './regions/regions';
|
|
78
|
+
export * from './schemaVariables/schemaVariables';
|
|
79
|
+
export * from './shiftTemplates/shiftTemplates';
|
|
80
|
+
export * from './skills/skillAgents';
|
|
59
81
|
export * from './skills/skills';
|
|
60
82
|
export * from './slaConditions/slaConditions';
|
|
61
83
|
export * from './slas/slas';
|
|
84
|
+
export * from './storagePolicies/storagePolicies';
|
|
85
|
+
export * from './teamHooks/teamHooks';
|
|
62
86
|
export * from './teams/teams';
|
|
87
|
+
export * from './teamTriggers/agentTriggers';
|
|
88
|
+
export * from './teamTriggers/teamFlows';
|
|
63
89
|
export * from './timeline/timeline';
|
|
90
|
+
export * from './triggers/triggerJobs';
|
|
91
|
+
export * from './triggers/triggers';
|
|
64
92
|
export * from './userSettings/userSettings';
|
|
65
93
|
export * from './users/users';
|
|
66
94
|
export * from './variables/variables';
|
|
95
|
+
export * from './workingConditions/workingConditions';
|
|
96
|
+
export * from './workspaceWidgets/workspaceWidgets';
|
|
67
97
|
export * from './wtTypes/adjunctTypeRecords/adjunctTypeRecords';
|
|
68
98
|
export * from './wtTypes/adjunctTypes/adjunctTypes';
|
|
69
99
|
export * from './wtTypes/sysTypes/sysTypes';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const BlacklistNumbersAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ parentId, itemId: id, }: NestedGetItemParams) => Promise<any>;
|
|
8
|
+
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
9
|
+
update: ({ parentId, itemInstance, itemId: id, }: NestedUpdateItemParams) => Promise<any>;
|
|
10
|
+
delete: ({ parentId, id, }: NestedDeleteItemParams) => Promise<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ApiParams } from '../_shared/types';
|
|
2
|
+
/** Audit log of everything one user did. */
|
|
3
|
+
export declare const UserLogsAPI: {
|
|
4
|
+
getList: (params: ApiParams) => Promise<{
|
|
5
|
+
items: any;
|
|
6
|
+
next: any;
|
|
7
|
+
}>;
|
|
8
|
+
};
|
|
9
|
+
/** Audit log of everything done to one logger config's object. */
|
|
10
|
+
export declare const ConfigLogsAPI: {
|
|
11
|
+
getList: (params: ApiParams) => Promise<{
|
|
12
|
+
items: any;
|
|
13
|
+
next: any;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getResourceGroupsList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const OutboundResourceGroupsAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
14
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
15
|
+
getLookup: (params: Parameters<typeof getResourceGroupsList>[0]) => Promise<{
|
|
16
|
+
items: any;
|
|
17
|
+
next: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const ResourcesInGroupAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ parentId, itemId: id, }: NestedGetItemParams) => Promise<any>;
|
|
8
|
+
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
9
|
+
update: ({ parentId, itemInstance, itemId: id, }: NestedUpdateItemParams) => Promise<any>;
|
|
10
|
+
delete: ({ parentId, id, }: NestedDeleteItemParams) => Promise<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getResourcesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const OutboundResourcesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
14
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getResourcesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const ResourceDisplaysAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
}>;
|
|
7
|
+
get: ({ parentId, itemId: id, }: NestedGetItemParams) => Promise<any>;
|
|
8
|
+
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
9
|
+
update: ({ parentId, itemInstance, itemId: id, }: NestedUpdateItemParams) => Promise<any>;
|
|
10
|
+
delete: ({ parentId, id, }: NestedDeleteItemParams) => Promise<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getPauseTemplatesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const PauseTemplatesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
14
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
15
|
+
getLookup: (params: Parameters<typeof getPauseTemplatesList>[0]) => Promise<{
|
|
16
|
+
items: any;
|
|
17
|
+
next: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getSchemaVariablesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const SchemaVariablesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
14
|
+
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
15
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
16
|
+
getLookup: (params: Parameters<typeof getSchemaVariablesList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getShiftTemplatesList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ShiftTemplatesAPI: {
|
|
7
|
+
getList: (params: ApiParams) => Promise<{
|
|
8
|
+
items: any;
|
|
9
|
+
next: any;
|
|
10
|
+
}>;
|
|
11
|
+
get: ({ itemId: id }: GetItemParams) => Promise<any>;
|
|
12
|
+
add: ({ itemInstance }: AddItemParams) => Promise<any>;
|
|
13
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<any>;
|
|
14
|
+
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
15
|
+
getLookup: (params: Parameters<typeof getShiftTemplatesList>[0]) => Promise<{
|
|
16
|
+
items: any;
|
|
17
|
+
next: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedPatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const SkillAgentsAPI: {
|
|
3
|
+
getList: (params: ApiParams) => Promise<{
|
|
4
|
+
items: any;
|
|
5
|
+
next: any;
|
|
6
|
+
aggs: any;
|
|
7
|
+
}>;
|
|
8
|
+
get: ({ itemId: id }: NestedGetItemParams) => Promise<any>;
|
|
9
|
+
add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
|
|
10
|
+
patch: ({ parentId, changes, id, }: NestedPatchItemParams) => Promise<any>;
|
|
11
|
+
update: ({ itemId: id, itemInstance, }: UpdateItemParams) => Promise<any>;
|
|
12
|
+
delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
|
|
13
|
+
};
|