@wxcc-desktop/sdk 2.0.3 → 2.0.5
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 +619 -595
- package/dist/index.js +3 -3
- package/dist/types/index.d.ts +33 -33
- package/dist/types/jsapi/actions-jsapi.d.ts +39 -39
- package/dist/types/jsapi/agent-config-jsapi.d.ts +19 -19
- package/dist/types/jsapi/agent-contact-jsapi.d.ts +190 -186
- package/dist/types/jsapi/agent-state-info-jsapi.d.ts +83 -83
- package/dist/types/jsapi/agent-station-logout-jsapi.d.ts +34 -34
- package/dist/types/jsapi/call-monitoring-jsapi.d.ts +56 -56
- package/dist/types/jsapi/common/_logger.d.ts +4 -4
- package/dist/types/jsapi/common/_service-checker.d.ts +12 -12
- package/dist/types/jsapi/common/_service-events.d.ts +31 -31
- package/dist/types/jsapi/config-jsapi.d.ts +66 -66
- package/dist/types/jsapi/constants.d.ts +53 -0
- package/dist/types/jsapi/dialer-jsapi.d.ts +52 -40
- package/dist/types/jsapi/i18n-jsapi.d.ts +23 -23
- package/dist/types/jsapi/logger-jsapi.d.ts +19 -19
- package/dist/types/jsapi/post-interaction-jsapi.d.ts +26 -26
- package/dist/types/jsapi/rtdwc-jsapi.d.ts +24 -24
- package/dist/types/jsapi/screenpop-jsapi.d.ts +29 -29
- package/dist/types/jsapi/shortcut-key-jsapi.d.ts +70 -70
- package/dist/types/jsapi/validationUtils.d.ts +38 -0
- package/dist/types/jsapi/webex-metrics-internal-jsapi.d.ts +19 -19
- package/dist/types/sdk.d.ts +1 -1
- package/package.json +4 -4
@@ -1,40 +1,52 @@
|
|
1
|
-
import { AgentxService, Service } from "@wxcc-desktop/sdk-types";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
import { createServiceChecker } from "./common/_service-checker";
|
4
|
-
import { AqmServiceEntityEvents } from "./common/_service-events";
|
5
|
-
type Listeners = {
|
6
|
-
eOutdialFailed: Parameters<AgentxService["aqm"]["dialer"]["eOutdialFailed"]["listen"]>[0];
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
private
|
19
|
-
private
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
1
|
+
import { AgentxService, Service } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
import { AqmServiceEntityEvents } from "./common/_service-events";
|
5
|
+
type Listeners = {
|
6
|
+
eOutdialFailed: Parameters<AgentxService["aqm"]["dialer"]["eOutdialFailed"]["listen"]>[0];
|
7
|
+
eCampaignPreviewAcceptFailed: Parameters<AgentxService["aqm"]["dialer"]["eCampaignPreviewAcceptFailed"]["listen"]>[0];
|
8
|
+
eCampaignPreviewSkipFailed: Parameters<AgentxService["aqm"]["dialer"]["eCampaignPreviewSkipFailed"]["listen"]>[0];
|
9
|
+
eCampaignPreviewRemoveFailed: Parameters<AgentxService["aqm"]["dialer"]["eCampaignPreviewRemoveFailed"]["listen"]>[0];
|
10
|
+
};
|
11
|
+
type AqmDialerEvents = AqmServiceEntityEvents<Listeners>;
|
12
|
+
type Config = {
|
13
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
14
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
15
|
+
aqmEvents: AqmDialerEvents;
|
16
|
+
};
|
17
|
+
export declare class DialerJsApi {
|
18
|
+
private readonly logger;
|
19
|
+
private readonly serviceChecker;
|
20
|
+
private readonly aqmEvents;
|
21
|
+
private SERVICE?;
|
22
|
+
private checkService;
|
23
|
+
constructor(config: Config);
|
24
|
+
init(SERVICE?: AgentxService): void;
|
25
|
+
cleanup(): void;
|
26
|
+
startOutdial(p: {
|
27
|
+
data: Service.Aqm.Dialer.tasks;
|
28
|
+
}): Promise<Service.Aqm.Contact.AgentContact | undefined>;
|
29
|
+
previewCampaignAccept(p: {
|
30
|
+
data: Service.Aqm.Dialer.previewContact;
|
31
|
+
}): Promise<Service.Aqm.Contact.AgentContact | undefined>;
|
32
|
+
previewCampaignSkip(p: {
|
33
|
+
data: Service.Aqm.Dialer.previewContact;
|
34
|
+
}): Promise<Service.Aqm.Contact.AgentContact | undefined>;
|
35
|
+
removePreviewContact(p: {
|
36
|
+
data: Service.Aqm.Dialer.previewContact;
|
37
|
+
}): Promise<Service.Aqm.Contact.AgentContact | undefined>;
|
38
|
+
updateCadVariables(p: {
|
39
|
+
interactionId: string;
|
40
|
+
data: Service.Aqm.Dialer.updateCadPayLoad;
|
41
|
+
secureCad?: Array<string>;
|
42
|
+
keyId: string | null;
|
43
|
+
keyVersion: number | null;
|
44
|
+
}): Promise<any>;
|
45
|
+
addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
46
|
+
addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
47
|
+
removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
48
|
+
removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
49
|
+
removeAllEventListeners(): void;
|
50
|
+
}
|
51
|
+
export declare const createDialerJsApi: () => DialerJsApi;
|
52
|
+
export {};
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import { I18N } from "@uuip/unified-ui-platform-sdk";
|
2
|
-
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
3
|
-
import { createJsApiLogger } from "./common/_logger";
|
4
|
-
import { createServiceChecker } from "./common/_service-checker";
|
5
|
-
type Config = {
|
6
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
7
|
-
serviceChecker: ReturnType<typeof createServiceChecker>;
|
8
|
-
};
|
9
|
-
export declare class I18NJsApi {
|
10
|
-
private readonly logger;
|
11
|
-
private readonly serviceChecker;
|
12
|
-
private SERVICE?;
|
13
|
-
private checkService;
|
14
|
-
constructor(config: Config);
|
15
|
-
init(SERVICE?: AgentxService): void;
|
16
|
-
cleanup(): void;
|
17
|
-
createInstance(createServiceOptions?: I18N.CreateServiceOptions): import("i18next").i18n;
|
18
|
-
createMixin(createMixinOptions: I18N.CreateMixinOptions): <T extends new (...args: any[]) => HTMLElement & I18N.UpdatingElement>(baseElement: T) => T & (new (...args: any[]) => I18N.I18nElement);
|
19
|
-
get DEFAULT_INIT_OPTIONS(): import("i18next").InitOptions | undefined;
|
20
|
-
getMergedInitOptions(...initOptions: I18N.InitOptions[]): import("i18next").InitOptions;
|
21
|
-
}
|
22
|
-
export declare const createI18NJsApi: () => I18NJsApi;
|
23
|
-
export {};
|
1
|
+
import { I18N } from "@uuip/unified-ui-platform-sdk";
|
2
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
3
|
+
import { createJsApiLogger } from "./common/_logger";
|
4
|
+
import { createServiceChecker } from "./common/_service-checker";
|
5
|
+
type Config = {
|
6
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
7
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
8
|
+
};
|
9
|
+
export declare class I18NJsApi {
|
10
|
+
private readonly logger;
|
11
|
+
private readonly serviceChecker;
|
12
|
+
private SERVICE?;
|
13
|
+
private checkService;
|
14
|
+
constructor(config: Config);
|
15
|
+
init(SERVICE?: AgentxService): void;
|
16
|
+
cleanup(): void;
|
17
|
+
createInstance(createServiceOptions?: I18N.CreateServiceOptions): import("i18next").i18n;
|
18
|
+
createMixin(createMixinOptions: I18N.CreateMixinOptions): <T extends new (...args: any[]) => HTMLElement & I18N.UpdatingElement>(baseElement: T) => T & (new (...args: any[]) => I18N.I18nElement);
|
19
|
+
get DEFAULT_INIT_OPTIONS(): import("i18next").InitOptions | undefined;
|
20
|
+
getMergedInitOptions(...initOptions: I18N.InitOptions[]): import("i18next").InitOptions;
|
21
|
+
}
|
22
|
+
export declare const createI18NJsApi: () => I18NJsApi;
|
23
|
+
export {};
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import { Logger } from "@uuip/unified-ui-platform-sdk";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
type Config = {
|
4
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
5
|
-
};
|
6
|
-
export declare class LoggerJsApi {
|
7
|
-
private readonly logger;
|
8
|
-
private readonly clientLoggers;
|
9
|
-
constructor(config: Config);
|
10
|
-
createLogger(prefix: string): Logger.Service;
|
11
|
-
cleanupLogs(prefix: string): void;
|
12
|
-
browserDownloadLogsJson(prefix: string): void;
|
13
|
-
browserDownloadLogsText(prefix: string): void;
|
14
|
-
getLogsCollection(prefix: string): Logger.LogRecord[] | undefined;
|
15
|
-
getLogsJsonUrl(prefix: string): string | undefined;
|
16
|
-
getLogsTextUrl(prefix: string): string | undefined;
|
17
|
-
}
|
18
|
-
export declare const createLoggerJsApi: () => LoggerJsApi;
|
19
|
-
export {};
|
1
|
+
import { Logger } from "@uuip/unified-ui-platform-sdk";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
type Config = {
|
4
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
5
|
+
};
|
6
|
+
export declare class LoggerJsApi {
|
7
|
+
private readonly logger;
|
8
|
+
private readonly clientLoggers;
|
9
|
+
constructor(config: Config);
|
10
|
+
createLogger(prefix: string): Logger.Service;
|
11
|
+
cleanupLogs(prefix: string): void;
|
12
|
+
browserDownloadLogsJson(prefix: string): void;
|
13
|
+
browserDownloadLogsText(prefix: string): void;
|
14
|
+
getLogsCollection(prefix: string): Logger.LogRecord[] | undefined;
|
15
|
+
getLogsJsonUrl(prefix: string): string | undefined;
|
16
|
+
getLogsTextUrl(prefix: string): string | undefined;
|
17
|
+
}
|
18
|
+
export declare const createLoggerJsApi: () => LoggerJsApi;
|
19
|
+
export {};
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
import { createServiceChecker } from "./common/_service-checker";
|
4
|
-
type Config = {
|
5
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
-
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
-
};
|
8
|
-
export declare class PostInteractionJsApi {
|
9
|
-
private readonly logger;
|
10
|
-
private readonly serviceChecker;
|
11
|
-
private SERVICE?;
|
12
|
-
private checkService;
|
13
|
-
constructor(config: Config);
|
14
|
-
init(SERVICE?: AgentxService): void;
|
15
|
-
cleanup(): void;
|
16
|
-
fetchTasks(p: {
|
17
|
-
startTime: number;
|
18
|
-
endTime: number;
|
19
|
-
pageNumber: number;
|
20
|
-
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.SearchResults | undefined>;
|
21
|
-
fetchCapture(p: {
|
22
|
-
taskId: string;
|
23
|
-
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.CaptureResults | undefined>;
|
24
|
-
}
|
25
|
-
export declare const createPostInteractionJsApi: () => PostInteractionJsApi;
|
26
|
-
export {};
|
1
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
type Config = {
|
5
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
+
};
|
8
|
+
export declare class PostInteractionJsApi {
|
9
|
+
private readonly logger;
|
10
|
+
private readonly serviceChecker;
|
11
|
+
private SERVICE?;
|
12
|
+
private checkService;
|
13
|
+
constructor(config: Config);
|
14
|
+
init(SERVICE?: AgentxService): void;
|
15
|
+
cleanup(): void;
|
16
|
+
fetchTasks(p: {
|
17
|
+
startTime: number;
|
18
|
+
endTime: number;
|
19
|
+
pageNumber: number;
|
20
|
+
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.SearchResults | undefined>;
|
21
|
+
fetchCapture(p: {
|
22
|
+
taskId: string;
|
23
|
+
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.CaptureResults | undefined>;
|
24
|
+
}
|
25
|
+
export declare const createPostInteractionJsApi: () => PostInteractionJsApi;
|
26
|
+
export {};
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import { createJsApiLogger } from "./common/_logger";
|
2
|
-
type Config = {
|
3
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
4
|
-
};
|
5
|
-
declare global {
|
6
|
-
interface Window {
|
7
|
-
wxcc: any;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
export declare class RTDWCJsApi {
|
11
|
-
private readonly logger;
|
12
|
-
private readonly emitter;
|
13
|
-
private waitUntil;
|
14
|
-
private checkService;
|
15
|
-
constructor(config: Config);
|
16
|
-
init(): Promise<void>;
|
17
|
-
subscribe({ datasetName, update, error }: {
|
18
|
-
datasetName: string;
|
19
|
-
update: any;
|
20
|
-
error: any;
|
21
|
-
}): Promise<any>;
|
22
|
-
}
|
23
|
-
export declare const createRTDWCJsApi: () => RTDWCJsApi;
|
24
|
-
export {};
|
1
|
+
import { createJsApiLogger } from "./common/_logger";
|
2
|
+
type Config = {
|
3
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
4
|
+
};
|
5
|
+
declare global {
|
6
|
+
interface Window {
|
7
|
+
wxcc: any;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
export declare class RTDWCJsApi {
|
11
|
+
private readonly logger;
|
12
|
+
private readonly emitter;
|
13
|
+
private waitUntil;
|
14
|
+
private checkService;
|
15
|
+
constructor(config: Config);
|
16
|
+
init(): Promise<void>;
|
17
|
+
subscribe({ datasetName, update, error }: {
|
18
|
+
datasetName: string;
|
19
|
+
update: any;
|
20
|
+
error: any;
|
21
|
+
}): Promise<any>;
|
22
|
+
}
|
23
|
+
export declare const createRTDWCJsApi: () => RTDWCJsApi;
|
24
|
+
export {};
|
@@ -1,29 +1,29 @@
|
|
1
|
-
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
import { createServiceChecker } from "./common/_service-checker";
|
4
|
-
import { AqmServiceEntityEvents } from "./common/_service-events";
|
5
|
-
type Listeners = {
|
6
|
-
eScreenPop: Parameters<AgentxService["aqm"]["screenpop"]["eScreenPop"]["listen"]>[0];
|
7
|
-
};
|
8
|
-
type Config = {
|
9
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
10
|
-
aqmEvents: AqmServiceEntityEvents<Listeners>;
|
11
|
-
serviceChecker: ReturnType<typeof createServiceChecker>;
|
12
|
-
};
|
13
|
-
export declare class ScreenPopJsApi {
|
14
|
-
private readonly logger;
|
15
|
-
private readonly serviceChecker;
|
16
|
-
private readonly aqmEvents;
|
17
|
-
private SERVICE?;
|
18
|
-
private checkService;
|
19
|
-
constructor(config: Config);
|
20
|
-
init(SERVICE?: AgentxService): void;
|
21
|
-
cleanup(): void;
|
22
|
-
addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
23
|
-
addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
24
|
-
removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
25
|
-
removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
26
|
-
removeAllEventListeners(): void;
|
27
|
-
}
|
28
|
-
export declare const createScreenPopJsApi: () => ScreenPopJsApi;
|
29
|
-
export {};
|
1
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
import { AqmServiceEntityEvents } from "./common/_service-events";
|
5
|
+
type Listeners = {
|
6
|
+
eScreenPop: Parameters<AgentxService["aqm"]["screenpop"]["eScreenPop"]["listen"]>[0];
|
7
|
+
};
|
8
|
+
type Config = {
|
9
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
10
|
+
aqmEvents: AqmServiceEntityEvents<Listeners>;
|
11
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
12
|
+
};
|
13
|
+
export declare class ScreenPopJsApi {
|
14
|
+
private readonly logger;
|
15
|
+
private readonly serviceChecker;
|
16
|
+
private readonly aqmEvents;
|
17
|
+
private SERVICE?;
|
18
|
+
private checkService;
|
19
|
+
constructor(config: Config);
|
20
|
+
init(SERVICE?: AgentxService): void;
|
21
|
+
cleanup(): void;
|
22
|
+
addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
23
|
+
addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
24
|
+
removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
25
|
+
removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
26
|
+
removeAllEventListeners(): void;
|
27
|
+
}
|
28
|
+
export declare const createScreenPopJsApi: () => ScreenPopJsApi;
|
29
|
+
export {};
|
@@ -1,70 +1,70 @@
|
|
1
|
-
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
import { createServiceChecker } from "./common/_service-checker";
|
4
|
-
type Config = {
|
5
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
-
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
-
};
|
8
|
-
export declare class ShortcutKeyJsApi {
|
9
|
-
private readonly logger;
|
10
|
-
private readonly serviceChecker;
|
11
|
-
private SERVICE?;
|
12
|
-
private checkService;
|
13
|
-
constructor(config: Config);
|
14
|
-
init(SERVICE?: AgentxService): void;
|
15
|
-
cleanup(): void;
|
16
|
-
listenKeyPress(...args: Parameters<AgentxService["shortcut"]["event"]["listenKeyPress"]>): void;
|
17
|
-
listenKeyConflict(...args: Parameters<AgentxService["shortcut"]["event"]["listenKeyConflict"]>): void;
|
18
|
-
listenConflictResolved(...args: Parameters<AgentxService["shortcut"]["event"]["listenConflictResolved"]>): void;
|
19
|
-
register(...args: Parameters<AgentxService["shortcut"]["register"]>): void;
|
20
|
-
unregisterKeys(...args: Parameters<AgentxService["shortcut"]["unregisterKeys"]>): void;
|
21
|
-
getRegisteredKeys(): Map<string, import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo> | undefined;
|
22
|
-
get DEFAULT_SHORTCUT_KEYS(): {
|
23
|
-
[key: string]: import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo[];
|
24
|
-
} | undefined;
|
25
|
-
get MODIFIERS(): {
|
26
|
-
CTRL_SHIFT: string;
|
27
|
-
ALT_SHIFT: string;
|
28
|
-
CTRL_ALT: string;
|
29
|
-
SHIFT: string;
|
30
|
-
CTRL: string;
|
31
|
-
ALT: string;
|
32
|
-
} | undefined;
|
33
|
-
get REGISTERED_KEYS(): {
|
34
|
-
EXPAND_COLLAPSE_INTERACTION_PANEL_KEY: string;
|
35
|
-
SAVE_EDITED_CAD_KEY: string;
|
36
|
-
REVERT_EDITED_CAD_KEY: string;
|
37
|
-
HOLD_RESUME_CALL_KEY: string;
|
38
|
-
TRANSFER_KEY: string;
|
39
|
-
CONSULT_KEY: string;
|
40
|
-
END_KEY: string;
|
41
|
-
CONFERENCE_KEY: string;
|
42
|
-
PAUSE_RESUME_RECORDING_KEY: string;
|
43
|
-
GO_TO_AVAILABLE_KEY: string;
|
44
|
-
OPEN_STATE_SELECTOR_KEY: string;
|
45
|
-
SEND_EMAIL_KEY: string;
|
46
|
-
REPLY_EMAIL_KEY: string;
|
47
|
-
REPLY_ALL_EMAIL_KEY: string;
|
48
|
-
OPEN_USER_PROFILE_KEY: string;
|
49
|
-
ENABLE_SILENT_NOTIFICATION_KEY: string;
|
50
|
-
OPEN_SHORTCUT_KEY_MODAL_KEY: string;
|
51
|
-
DOWNLOAD_ERROR_REPORT_KEY: string;
|
52
|
-
SIGNOUT_KEY: string;
|
53
|
-
ACCEPT_TASK_KEY: string;
|
54
|
-
SWITCH_POPOVER_KEY: string;
|
55
|
-
EXPAND_COLLAPSE_POPOVER_KEY: string;
|
56
|
-
OPEN_OUTDIAL_KEY: string;
|
57
|
-
OPEN_WRAP_UP_KEY: string;
|
58
|
-
EXPAND_COLLAPSE_TASK_LIST_PANEL_KEY: string;
|
59
|
-
OPEN_NOTIFICATION_CENTER_KEY: string;
|
60
|
-
OPEN_NAVIGATION_TAB_KEY: string;
|
61
|
-
REFRESH_KEY: string;
|
62
|
-
SWITCH_TASK_KEY: string;
|
63
|
-
ACCEPT_ALL_TASK_KEY: string;
|
64
|
-
EXPAND_COLLAPSE_WEBEX: string;
|
65
|
-
MINIMIZE_RESTORE_WEBEX: string;
|
66
|
-
OPEN_DTMF_KEYPAD: string;
|
67
|
-
} | undefined;
|
68
|
-
}
|
69
|
-
export declare const createShortcutKeyJsApi: () => ShortcutKeyJsApi;
|
70
|
-
export {};
|
1
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
type Config = {
|
5
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
+
};
|
8
|
+
export declare class ShortcutKeyJsApi {
|
9
|
+
private readonly logger;
|
10
|
+
private readonly serviceChecker;
|
11
|
+
private SERVICE?;
|
12
|
+
private checkService;
|
13
|
+
constructor(config: Config);
|
14
|
+
init(SERVICE?: AgentxService): void;
|
15
|
+
cleanup(): void;
|
16
|
+
listenKeyPress(...args: Parameters<AgentxService["shortcut"]["event"]["listenKeyPress"]>): void;
|
17
|
+
listenKeyConflict(...args: Parameters<AgentxService["shortcut"]["event"]["listenKeyConflict"]>): void;
|
18
|
+
listenConflictResolved(...args: Parameters<AgentxService["shortcut"]["event"]["listenConflictResolved"]>): void;
|
19
|
+
register(...args: Parameters<AgentxService["shortcut"]["register"]>): void;
|
20
|
+
unregisterKeys(...args: Parameters<AgentxService["shortcut"]["unregisterKeys"]>): void;
|
21
|
+
getRegisteredKeys(): Map<string, import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo> | undefined;
|
22
|
+
get DEFAULT_SHORTCUT_KEYS(): {
|
23
|
+
[key: string]: import("@wxcc-desktop/sdk-types").Service.shortcut.KeyInfo[];
|
24
|
+
} | undefined;
|
25
|
+
get MODIFIERS(): {
|
26
|
+
CTRL_SHIFT: string;
|
27
|
+
ALT_SHIFT: string;
|
28
|
+
CTRL_ALT: string;
|
29
|
+
SHIFT: string;
|
30
|
+
CTRL: string;
|
31
|
+
ALT: string;
|
32
|
+
} | undefined;
|
33
|
+
get REGISTERED_KEYS(): {
|
34
|
+
EXPAND_COLLAPSE_INTERACTION_PANEL_KEY: string;
|
35
|
+
SAVE_EDITED_CAD_KEY: string;
|
36
|
+
REVERT_EDITED_CAD_KEY: string;
|
37
|
+
HOLD_RESUME_CALL_KEY: string;
|
38
|
+
TRANSFER_KEY: string;
|
39
|
+
CONSULT_KEY: string;
|
40
|
+
END_KEY: string;
|
41
|
+
CONFERENCE_KEY: string;
|
42
|
+
PAUSE_RESUME_RECORDING_KEY: string;
|
43
|
+
GO_TO_AVAILABLE_KEY: string;
|
44
|
+
OPEN_STATE_SELECTOR_KEY: string;
|
45
|
+
SEND_EMAIL_KEY: string;
|
46
|
+
REPLY_EMAIL_KEY: string;
|
47
|
+
REPLY_ALL_EMAIL_KEY: string;
|
48
|
+
OPEN_USER_PROFILE_KEY: string;
|
49
|
+
ENABLE_SILENT_NOTIFICATION_KEY: string;
|
50
|
+
OPEN_SHORTCUT_KEY_MODAL_KEY: string;
|
51
|
+
DOWNLOAD_ERROR_REPORT_KEY: string;
|
52
|
+
SIGNOUT_KEY: string;
|
53
|
+
ACCEPT_TASK_KEY: string;
|
54
|
+
SWITCH_POPOVER_KEY: string;
|
55
|
+
EXPAND_COLLAPSE_POPOVER_KEY: string;
|
56
|
+
OPEN_OUTDIAL_KEY: string;
|
57
|
+
OPEN_WRAP_UP_KEY: string;
|
58
|
+
EXPAND_COLLAPSE_TASK_LIST_PANEL_KEY: string;
|
59
|
+
OPEN_NOTIFICATION_CENTER_KEY: string;
|
60
|
+
OPEN_NAVIGATION_TAB_KEY: string;
|
61
|
+
REFRESH_KEY: string;
|
62
|
+
SWITCH_TASK_KEY: string;
|
63
|
+
ACCEPT_ALL_TASK_KEY: string;
|
64
|
+
EXPAND_COLLAPSE_WEBEX: string;
|
65
|
+
MINIMIZE_RESTORE_WEBEX: string;
|
66
|
+
OPEN_DTMF_KEYPAD: string;
|
67
|
+
} | undefined;
|
68
|
+
}
|
69
|
+
export declare const createShortcutKeyJsApi: () => ShortcutKeyJsApi;
|
70
|
+
export {};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Service } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { ChangeAgentStateDataType } from "./agent-state-info-jsapi";
|
3
|
+
export declare namespace validationUtils {
|
4
|
+
const validateAgentState: (value: any) => boolean;
|
5
|
+
const validateURL: (value: string) => boolean;
|
6
|
+
const validateChannelName: (value: any) => boolean;
|
7
|
+
const validateDestinationType: (value: any) => boolean;
|
8
|
+
const validateMediaType: (value: any) => boolean;
|
9
|
+
const validateUTCTimeStampNumberFormat: (value: number) => boolean;
|
10
|
+
const validateNumber: (value: number) => boolean;
|
11
|
+
const validateBoolean: (value: any) => boolean;
|
12
|
+
const validateStringToBoolean: (value: string) => boolean;
|
13
|
+
const validatePropValueNotNullAndEmpty: (value: any) => boolean;
|
14
|
+
const validateChannelType: (value: any) => boolean;
|
15
|
+
const validateMonitorType: (value: any) => boolean;
|
16
|
+
const validateUUID: (value: string) => boolean;
|
17
|
+
const validateStringNumberOnly: (value: string) => boolean;
|
18
|
+
const validateBuddyAgents: (value: Service.Aqm.Contact.BuddyAgents, functionName: string) => void;
|
19
|
+
const validateAuxCodeType: (value: Service.Aqm.Configs.AuxCodeType, functionName: string) => void;
|
20
|
+
const validateAuxCodePayload: (value: Service.Aqm.Configs.AuxCodePayload, functionName: string) => void;
|
21
|
+
const validateCancelCtq: (value: Service.Aqm.Contact.cancelCtq, functionName: string) => void;
|
22
|
+
const validateWrapupPayload: (value: Service.Aqm.Contact.WrapupPayLoad, functionName: string) => void;
|
23
|
+
const validateVTeamTransferPayload: (value: Service.Aqm.Contact.vteamTransferPayLoad, functionName: string) => void;
|
24
|
+
const validateBlindTransferPayload: (value: Service.Aqm.Contact.blindTransferPayLoad, functionName: string) => void;
|
25
|
+
const validateConsultPayload: (value: Service.Aqm.Contact.ConsultPayload, functionName: string) => void;
|
26
|
+
const validateConsultTransferPayLoad: (value: Service.Aqm.Contact.consultTransferPayLoad, functionName: string) => void;
|
27
|
+
const validateWrapUpV2Payload: (value: Service.Aqm.Contact.WrapupV2PayLoad, functionName: string) => void;
|
28
|
+
const validateChangeAgentStateType: (data: ChangeAgentStateDataType, functionName: string) => void;
|
29
|
+
const validateConsultDataV2Payload: (value: Service.Aqm.Contact.consultDataV2, functionName: string) => void;
|
30
|
+
const validateConsultConferenceDataV2Payload: (value: Service.Aqm.Contact.consultConferenceDataV2, functionName: string) => void;
|
31
|
+
const validateTransferV2Payload: (value: Service.Aqm.Contact.transferV2Payload, functionName: string) => void;
|
32
|
+
const validateBuddyAgentsV2Payload: (value: Service.Aqm.Contact.BuddyAgentsV2, functionName: string) => void;
|
33
|
+
const validateVTeam: (value: Service.Aqm.Contact.VTeam, functionName: string) => void;
|
34
|
+
const validateDialerTasks: (value: Service.Aqm.Dialer.tasks, functionName: string) => void;
|
35
|
+
const validatePreviewCampaignPayload: (value: Service.Aqm.Dialer.previewContact, functionName: string) => void;
|
36
|
+
const validateMonitoringRequest: (value: Service.Aqm.Supervisor.MonitoringRequest, functionName: string) => void;
|
37
|
+
const validateMultiConsultPayload: (value: any, functionName: string) => void;
|
38
|
+
}
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
-
import { createJsApiLogger } from "./common/_logger";
|
3
|
-
import { createServiceChecker } from "./common/_service-checker";
|
4
|
-
type Config = {
|
5
|
-
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
-
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
-
};
|
8
|
-
export declare class WebexMetricsInternalJSApi {
|
9
|
-
private readonly logger;
|
10
|
-
private readonly serviceChecker;
|
11
|
-
private SERVICE?;
|
12
|
-
private checkService;
|
13
|
-
constructor(config: Config);
|
14
|
-
init(SERVICE?: AgentxService): void;
|
15
|
-
cleanup(): void;
|
16
|
-
trackBehavioralEvent(...args: Parameters<AgentxService["webexMetrics"]["trackBehavioralEvent"]>): void;
|
17
|
-
}
|
18
|
-
export declare const createWebexMetricsInternalJsApi: () => WebexMetricsInternalJSApi;
|
19
|
-
export {};
|
1
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
type Config = {
|
5
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
+
};
|
8
|
+
export declare class WebexMetricsInternalJSApi {
|
9
|
+
private readonly logger;
|
10
|
+
private readonly serviceChecker;
|
11
|
+
private SERVICE?;
|
12
|
+
private checkService;
|
13
|
+
constructor(config: Config);
|
14
|
+
init(SERVICE?: AgentxService): void;
|
15
|
+
cleanup(): void;
|
16
|
+
trackBehavioralEvent(...args: Parameters<AgentxService["webexMetrics"]["trackBehavioralEvent"]>): void;
|
17
|
+
}
|
18
|
+
export declare const createWebexMetricsInternalJsApi: () => WebexMetricsInternalJSApi;
|
19
|
+
export {};
|
package/dist/types/sdk.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const logger: import("@uuip/unified-ui-platform-sdk").Logger.Service;
|
1
|
+
export declare const logger: import("@uuip/unified-ui-platform-sdk").Logger.Service;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wxcc-desktop/sdk",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.5",
|
4
4
|
"author": "Roman Manchenko",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "git@sqbu-github.cisco.com:CBABU/agentx-js-api.git",
|
@@ -8,12 +8,12 @@
|
|
8
8
|
"types": "./dist/types/index.d.ts",
|
9
9
|
"dependencies": {
|
10
10
|
"@babel/runtime": "^7.25.6",
|
11
|
-
"@uuip/unified-ui-platform-sdk": "^1.3.
|
12
|
-
"@wxcc-desktop/sdk-types": "^1.0.
|
11
|
+
"@uuip/unified-ui-platform-sdk": "^1.3.27",
|
12
|
+
"@wxcc-desktop/sdk-types": "^1.0.17",
|
13
13
|
"event-emitter": "^0.3.5",
|
14
14
|
"js-cookie": "^3.0.1"
|
15
15
|
},
|
16
16
|
"publishConfig": {
|
17
17
|
"registry": "https://registry.npmjs.org"
|
18
18
|
}
|
19
|
-
}
|
19
|
+
}
|