@wxcc-desktop/sdk 2.0.14 → 3.0.0
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/README.md +4 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/internal-types/index.d.ts +1 -0
- package/dist/types/jsapi/actions-jsapi.d.ts +2 -2
- package/dist/types/jsapi/agent-config-jsapi.d.ts +1 -1
- package/dist/types/jsapi/agent-contact-jsapi.d.ts +2 -2
- package/dist/types/jsapi/agent-state-info-jsapi.d.ts +1 -1
- package/dist/types/jsapi/agent-station-logout-jsapi.d.ts +1 -1
- package/dist/types/jsapi/ai-assistant-jsapi.d.ts +1 -1
- package/dist/types/jsapi/call-monitoring-jsapi.d.ts +1 -1
- package/dist/types/jsapi/common/_service-checker.d.ts +1 -1
- package/dist/types/jsapi/common/_service-events.d.ts +1 -1
- package/dist/types/jsapi/common/js-api-utils.d.ts +1 -1
- package/dist/types/jsapi/config-jsapi.d.ts +1 -1
- package/dist/types/jsapi/data-notifs-jsapi.d.ts +1 -1
- package/dist/types/jsapi/dialer-jsapi.d.ts +1 -1
- package/dist/types/jsapi/i18n-jsapi.d.ts +1 -1
- package/dist/types/jsapi/post-interaction-jsapi.d.ts +1 -1
- package/dist/types/jsapi/schedule-callback-jsapi.d.ts +5 -4
- package/dist/types/jsapi/screenpop-jsapi.d.ts +1 -1
- package/dist/types/jsapi/shortcut-key-jsapi.d.ts +1 -1
- package/dist/types/jsapi/validationUtils.d.ts +3 -3
- package/dist/types/jsapi/webex-metrics-internal-jsapi.d.ts +1 -1
- package/package.json +3 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -37,3 +37,5 @@ export type AgentXJsApi = {
|
|
|
37
37
|
webexMetricsInternal: ReturnType<typeof createWebexMetricsInternalJsApi>;
|
|
38
38
|
};
|
|
39
39
|
export declare const Desktop: AgentXJsApi;
|
|
40
|
+
export type { Service, AgentxService, AgentxServices } from "./internal-types";
|
|
41
|
+
export type { AgentSharedActions, AgentContactSharedActions, AuthSharedActions, GeneralNotificationsSharedActions } from "./internal-types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./upstream-types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentContactSharedActions, GeneralNotificationsSharedActions } from "
|
|
2
|
-
import { AgentxService } from "
|
|
1
|
+
import type { AgentContactSharedActions, GeneralNotificationsSharedActions } from "../internal-types";
|
|
2
|
+
import { AgentxService } from "../internal-types";
|
|
3
3
|
import { createJsApiLogger } from "./common/_logger";
|
|
4
4
|
import { createServiceChecker } from "./common/_service-checker";
|
|
5
5
|
type Config = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -52,7 +52,7 @@ export declare class AgentContactJsApi {
|
|
|
52
52
|
constructor(config: Config);
|
|
53
53
|
init(SERVICE?: AgentxService): undefined;
|
|
54
54
|
cleanup(): undefined;
|
|
55
|
-
sendDtmf(digit: string): undefined;
|
|
55
|
+
sendDtmf(digit: string | number): undefined;
|
|
56
56
|
accept(p: {
|
|
57
57
|
interactionId: string;
|
|
58
58
|
}): Promise<Service.Aqm.Contact.AgentContact | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
type IdleCodeData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService } from "
|
|
1
|
+
import { AgentxService } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService } from "
|
|
1
|
+
import { AgentxService } from "../../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./_logger";
|
|
3
3
|
type AqmServiceEntities = AgentxService["aqm"]["agent"] | AgentxService["aqm"]["configs"] | AgentxService["aqm"]["contact"] | AgentxService["aqm"]["dialer"] | AgentxService["aqm"]["supervisor"] | AgentxService["aqm"]["screenpop"] | AgentxService["aqm"]["aiAssistant"] | AgentxService["dataNotifs"]["aiAssistant"];
|
|
4
4
|
type Events<Listeners> = keyof Listeners;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Service } from "
|
|
1
|
+
import { Service } from "../../internal-types";
|
|
2
2
|
export declare const checkIfTelephony: (interactionId: string) => Promise<boolean>;
|
|
3
3
|
export declare const acceptV2: (interactionId: string) => Promise<void>;
|
|
4
4
|
export declare const endV2: (interactionId: string) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService } from "
|
|
1
|
+
import { AgentxService } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18N } from "@uuip/unified-ui-platform-sdk";
|
|
2
|
-
import { AgentxService } from "
|
|
2
|
+
import { AgentxService } from "../internal-types";
|
|
3
3
|
import { createJsApiLogger } from "./common/_logger";
|
|
4
4
|
import { createServiceChecker } from "./common/_service-checker";
|
|
5
5
|
type Config = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService, Service } from "
|
|
1
|
+
import { AgentxService, Service } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
type Config = {
|
|
@@ -28,10 +28,10 @@ export declare class ScheduleCallbackJsApi {
|
|
|
28
28
|
};
|
|
29
29
|
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").GetScheduleCallback | undefined>;
|
|
30
30
|
createScheduleCallback(p: {
|
|
31
|
-
data: Service.routing.scheduleCallback.
|
|
31
|
+
data: Service.routing.scheduleCallback.scheduleCallbackFormData;
|
|
32
32
|
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").GetScheduleCallbackById | import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").ScheduleCallbackResp | undefined>;
|
|
33
33
|
updateCallBackDetails(p: {
|
|
34
|
-
data: Service.routing.scheduleCallback.
|
|
34
|
+
data: Service.routing.scheduleCallback.scheduleCallbackFormData;
|
|
35
35
|
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").GetScheduleCallbackById | import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").ScheduleCallbackResp | undefined>;
|
|
36
36
|
deleteScheduleCallback(p: {
|
|
37
37
|
data: {
|
|
@@ -42,8 +42,9 @@ export declare class ScheduleCallbackJsApi {
|
|
|
42
42
|
data: {
|
|
43
43
|
campaignId: string;
|
|
44
44
|
agentId: string;
|
|
45
|
+
interactionId: string;
|
|
45
46
|
};
|
|
46
|
-
}): Promise<
|
|
47
|
+
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").CampaignValidTimesResponse | undefined>;
|
|
47
48
|
}
|
|
48
49
|
export declare const createScheduleCallbackJsApi: () => ScheduleCallbackJsApi;
|
|
49
50
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentxService } from "
|
|
1
|
+
import { AgentxService } from "../internal-types";
|
|
2
2
|
import { createJsApiLogger } from "./common/_logger";
|
|
3
3
|
import { createServiceChecker } from "./common/_service-checker";
|
|
4
4
|
import { AqmServiceEntityEvents } from "./common/_service-events";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Service } from "
|
|
1
|
+
import { Service } from "../internal-types";
|
|
2
2
|
import { ChangeAgentStateDataType } from "./agent-state-info-jsapi";
|
|
3
3
|
export declare namespace validationUtils {
|
|
4
4
|
const validatePropValueNotNullAndEmpty: (value: any) => boolean;
|
|
@@ -38,6 +38,6 @@ export declare namespace validationUtils {
|
|
|
38
38
|
const validateMultiConsultPayload: (value: any, functionName: string) => void;
|
|
39
39
|
const validateFetchByAssigneeAgentIdType: (page: number, assigneeAgent: string, functionName: string) => void;
|
|
40
40
|
const validatefetchByCallbackPhoneNumberType: (page: number, phoneNumber: string, functionName: string) => void;
|
|
41
|
-
const validateCreateOrUpdateScheduleCallbackType: (data: Service.routing.scheduleCallback.
|
|
42
|
-
const validateGetValidCampaignTimesType: (campaignId: string, agentId: string, functionName: string) => void;
|
|
41
|
+
const validateCreateOrUpdateScheduleCallbackType: (data: Service.routing.scheduleCallback.scheduleCallbackFormData, functionName: string, isUpdateScheduleCallback?: boolean) => void;
|
|
42
|
+
const validateGetValidCampaignTimesType: (campaignId: string, agentId: string, interactionId: string, functionName: string) => void;
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxcc-desktop/sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"author": "Roman Manchenko",
|
|
3
|
+
"version": "3.0.0",
|
|
5
4
|
"license": "ISC",
|
|
6
|
-
"repository": "git@sqbu-github.cisco.com:CBABU/agentx-js-api.git",
|
|
7
5
|
"main": "./dist/index.js",
|
|
8
6
|
"types": "./dist/types/index.d.ts",
|
|
9
7
|
"dependencies": {
|
|
10
8
|
"@babel/runtime": "^7.25.6",
|
|
11
|
-
"@uuip/unified-ui-platform-sdk": "
|
|
12
|
-
"@wxcc-desktop/sdk-types": "workspace:^",
|
|
9
|
+
"@uuip/unified-ui-platform-sdk": "^1.3.28",
|
|
13
10
|
"event-emitter": "^0.3.5",
|
|
14
|
-
"js-cookie": "^3.0.
|
|
11
|
+
"js-cookie": "^3.0.5"
|
|
15
12
|
},
|
|
16
13
|
"publishConfig": {
|
|
17
14
|
"registry": "https://registry.npmjs.org",
|