@wxcc-desktop/sdk 1.3.2 → 1.3.3
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/dist/index.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/jsapi/rtdwc-jsapi.d.ts +24 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ import { createI18NJsApi } from "./jsapi/i18n-jsapi";
|
|
7
7
|
import { createLoggerJsApi } from "./jsapi/logger-jsapi";
|
8
8
|
import { createScreenPopJsApi } from "./jsapi/screenpop-jsapi";
|
9
9
|
import { createShortcutKeyJsApi } from "./jsapi/shortcut-key-jsapi";
|
10
|
+
import { createRTDWCJsApi } from "./jsapi/rtdwc-jsapi";
|
10
11
|
import { createMonitoringJsApi } from "./jsapi/call-monitoring-jsapi";
|
11
12
|
export declare type AgentXJsApi = {
|
12
13
|
config: ReturnType<typeof createConfigJsApi>;
|
@@ -19,5 +20,6 @@ export declare type AgentXJsApi = {
|
|
19
20
|
screenpop: ReturnType<typeof createScreenPopJsApi>;
|
20
21
|
i18n: ReturnType<typeof createI18NJsApi>;
|
21
22
|
actions: ReturnType<typeof createActionsJsApi>;
|
23
|
+
rtdwc: ReturnType<typeof createRTDWCJsApi>;
|
22
24
|
};
|
23
25
|
export declare const Desktop: AgentXJsApi;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { createJsApiLogger } from "./common/_logger";
|
2
|
+
declare 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 {};
|