@webitel/api-services 1.0.10 → 1.0.12
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 +19 -29
- package/src/api/clients/caseStatuses/caseStatuses.ts +10 -21
- 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//321/201ontacts/contactChatMessagesHistory.ts +15 -26
- package/src/validations/calendar/__tests__/calendar.validations.spec.ts +85 -0
- package/src/validations/calendar/calendar.validations.ts +1 -1
- 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/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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ApiId, ApiParams } from '../_shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* Triggers visible to the signed-in agent, across every team they belong to.
|
|
4
|
+
* `TeamFlowsAPI` is the admin-side view of the same entity, scoped to one team.
|
|
5
|
+
*/
|
|
6
|
+
declare const getAgentTriggersList: (params: ApiParams) => Promise<{
|
|
7
|
+
items: any;
|
|
8
|
+
next: any;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const AgentTriggersAPI: {
|
|
11
|
+
getList: (params: ApiParams) => Promise<{
|
|
12
|
+
items: any;
|
|
13
|
+
next: any;
|
|
14
|
+
}>;
|
|
15
|
+
run: ({ id }: {
|
|
16
|
+
id: ApiId;
|
|
17
|
+
}) => Promise<any>;
|
|
18
|
+
getLookup: (params: Parameters<typeof getAgentTriggersList>[0]) => Promise<{
|
|
19
|
+
items: any;
|
|
20
|
+
next: any;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedPatchItemParams, NestedUpdateItemParams } from '../_shared/types';
|
|
2
|
+
export declare const TeamFlowsAPI: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, PatchItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getTriggersList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const TriggersAPI: {
|
|
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 getTriggersList>[0]) => Promise<{
|
|
17
|
+
items: any;
|
|
18
|
+
next: any;
|
|
19
|
+
}>;
|
|
20
|
+
start: (_params: ApiParams, item: ApiParams) => Promise<any>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AddItemParams, ApiParams, DeleteItemParams, GetItemParams, UpdateItemParams } from '../_shared/types';
|
|
2
|
+
declare const getWorkingConditionsList: (params: ApiParams) => Promise<{
|
|
3
|
+
items: any;
|
|
4
|
+
next: any;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const WorkingConditionsAPI: {
|
|
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 getWorkingConditionsList>[0]) => Promise<{
|
|
16
|
+
items: any;
|
|
17
|
+
next: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|