@wxcc-desktop/sdk 2.0.13 → 2.0.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Axios v1.13.
|
|
1
|
+
/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { createConfigJsApi } from "./jsapi/config-jsapi";
|
|
|
5
5
|
import { createDialerJsApi } from "./jsapi/dialer-jsapi";
|
|
6
6
|
import { createI18NJsApi } from "./jsapi/i18n-jsapi";
|
|
7
7
|
import { createLoggerJsApi } from "./jsapi/logger-jsapi";
|
|
8
|
+
import { createScheduleCallbackJsApi } from "./jsapi/schedule-callback-jsapi";
|
|
8
9
|
import { createScreenPopJsApi } from "./jsapi/screenpop-jsapi";
|
|
9
10
|
import { createShortcutKeyJsApi } from "./jsapi/shortcut-key-jsapi";
|
|
10
11
|
import { createRTDWCJsApi } from "./jsapi/rtdwc-jsapi";
|
|
@@ -27,6 +28,7 @@ export type AgentXJsApi = {
|
|
|
27
28
|
logout: ReturnType<typeof stationLogoutJsApi>;
|
|
28
29
|
aiAssistant: ReturnType<typeof createAiAssistantJsApi>;
|
|
29
30
|
dataNotifsAiAssistant: ReturnType<typeof createAiAssistantDataNotifsJsApi>;
|
|
31
|
+
scheduleCallback: ReturnType<typeof createScheduleCallbackJsApi>;
|
|
30
32
|
i18n: ReturnType<typeof createI18NJsApi>;
|
|
31
33
|
actions: ReturnType<typeof createActionsJsApi>;
|
|
32
34
|
rtdwc: ReturnType<typeof createRTDWCJsApi>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AgentxService, Service } 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 ScheduleCallbackJsApi {
|
|
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
|
+
fetchByAssigneeAgentId(p: {
|
|
17
|
+
data: {
|
|
18
|
+
page: number;
|
|
19
|
+
assigneeAgent: string;
|
|
20
|
+
sortBy: string;
|
|
21
|
+
sortOrder: string;
|
|
22
|
+
};
|
|
23
|
+
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").GetScheduleCallback | undefined>;
|
|
24
|
+
fetchByCallbackPhoneNumber(p: {
|
|
25
|
+
data: {
|
|
26
|
+
page: number;
|
|
27
|
+
phoneNumber: string;
|
|
28
|
+
};
|
|
29
|
+
}): Promise<import("@agentx/agentx-services/dist/types/src/services/aqm/schedule-callback/types").GetScheduleCallback | undefined>;
|
|
30
|
+
createScheduleCallback(p: {
|
|
31
|
+
data: Service.routing.scheduleCallback.scheduleCallbackSubmittedFormData;
|
|
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
|
+
updateCallBackDetails(p: {
|
|
34
|
+
data: Service.routing.scheduleCallback.scheduleCallbackSubmittedFormData;
|
|
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
|
+
deleteScheduleCallback(p: {
|
|
37
|
+
data: {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
}): Promise<{} | undefined>;
|
|
41
|
+
getValidCampaignTimes(p: {
|
|
42
|
+
data: {
|
|
43
|
+
campaignId: string;
|
|
44
|
+
agentId: string;
|
|
45
|
+
};
|
|
46
|
+
}): Promise<any>;
|
|
47
|
+
}
|
|
48
|
+
export declare const createScheduleCallbackJsApi: () => ScheduleCallbackJsApi;
|
|
49
|
+
export {};
|
|
@@ -36,4 +36,8 @@ export declare namespace validationUtils {
|
|
|
36
36
|
const validatePreviewCampaignPayload: (value: Service.Aqm.Dialer.previewContact, functionName: string) => void;
|
|
37
37
|
const validateMonitoringRequest: (value: Service.Aqm.Supervisor.MonitoringRequest, functionName: string) => void;
|
|
38
38
|
const validateMultiConsultPayload: (value: any, functionName: string) => void;
|
|
39
|
+
const validateFetchByAssigneeAgentIdType: (page: number, assigneeAgent: string, functionName: string) => void;
|
|
40
|
+
const validatefetchByCallbackPhoneNumberType: (page: number, phoneNumber: string, functionName: string) => void;
|
|
41
|
+
const validateCreateOrUpdateScheduleCallbackType: (data: Service.routing.scheduleCallback.scheduleCallbackSubmittedFormData, functionName: string, isUpdateScheduleCallback?: boolean) => void;
|
|
42
|
+
const validateGetValidCampaignTimesType: (campaignId: string, agentId: string, functionName: string) => void;
|
|
39
43
|
}
|