ysyt-agent-sdk 2.0.6 → 2.0.8
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/src/types/Enum.d.ts
CHANGED
|
@@ -74,11 +74,13 @@ export declare enum CallSipCallEventEnum {
|
|
|
74
74
|
CUSTOMER_INFO = "customer_info",
|
|
75
75
|
CALL_PROGRESS = "call_progress",
|
|
76
76
|
OUT_INCOMING_CALL = "out_call_incoming_call",
|
|
77
|
+
INTERNAL_OUT_INCOMING_CALL = "internal_out_incoming_call",
|
|
77
78
|
PREVIEW_OUT_INCOMING_CALL = "preview_out_incoming_call",
|
|
78
79
|
OUT_SUCCESS = "out_call_success",
|
|
79
80
|
OUT_FAILED = "out_call_failed",
|
|
80
81
|
OUT_RINGING = "out_call_ringing",
|
|
81
82
|
OUT_OFF_ANSWER = "out_call_answer",
|
|
83
|
+
INTERNAL_OUT_OFF_ANSWER = "internal_out_call_answer",
|
|
82
84
|
HOLD_SUCCESS = "hold_success",
|
|
83
85
|
HOLD_FAILED = "hold_failed",
|
|
84
86
|
UNHOLD_SUCCESS = "unhold_success",
|
|
@@ -101,9 +103,11 @@ export declare enum CallSipCallEventEnum {
|
|
|
101
103
|
CONSULT_TRANSFER_FAILED = "consult_transfer_failed",
|
|
102
104
|
CONSULT_TRANSFER_OFF_HOOK = "consult_transfer_off_hook",
|
|
103
105
|
INCOMING_CALL = "incoming_call",
|
|
106
|
+
INCOMING_CALL_IN = "incoming_call_in",
|
|
104
107
|
PREDICT_INCOMING_CALL = "predict_incoming_call",
|
|
105
108
|
DUAL_CALL_INCOMING_CALL = "dual_call_incoming_call",
|
|
106
109
|
INCOMING_CALL_OFF_HOOK = "incoming_call_off_hook",
|
|
110
|
+
INCOMING_CALL_IN_OFF_HOOK = "incoming_call_in_off_hook",
|
|
107
111
|
INCOMING_CALL_END = "incoming_call_end",
|
|
108
112
|
SATISFACTION_EVALUATION_SUCCESS = "satisfaction_evaluation_success",
|
|
109
113
|
SATISFACTION_EVALUATION_FAILED = "satisfaction_evaluation_failed",
|
|
@@ -215,6 +215,11 @@ export interface Events {
|
|
|
215
215
|
session_id: string;
|
|
216
216
|
trace_id: string;
|
|
217
217
|
};
|
|
218
|
+
[CallSipCallEventEnum.INTERNAL_OUT_INCOMING_CALL]: {
|
|
219
|
+
customer_phone: string;
|
|
220
|
+
session_id: string;
|
|
221
|
+
trace_id: string;
|
|
222
|
+
};
|
|
218
223
|
[CallSipCallEventEnum.PREVIEW_OUT_INCOMING_CALL]: {
|
|
219
224
|
customer_phone: string;
|
|
220
225
|
session_id: string;
|
|
@@ -244,6 +249,12 @@ export interface Events {
|
|
|
244
249
|
[CallSipCallEventEnum.CONSULT_CALL_IN_SUCCESS]: {
|
|
245
250
|
session_id: string;
|
|
246
251
|
};
|
|
252
|
+
[CallSipCallEventEnum.INCOMING_CALL_IN_OFF_HOOK]: {
|
|
253
|
+
session_id: string;
|
|
254
|
+
};
|
|
255
|
+
[CallSipCallEventEnum.INCOMING_CALL_OFF_HOOK]: {
|
|
256
|
+
session_id: string;
|
|
257
|
+
};
|
|
247
258
|
[CallSipCallEventEnum.CONSULT_RETURN_CALL_SUCCESS]: unknown;
|
|
248
259
|
[CallSipCallEventEnum.AGENT_STATE]: AgentStateType;
|
|
249
260
|
[EventName.UPDATE_ANSWER_DEVICE]: DeviceType;
|
|
@@ -253,6 +264,11 @@ export interface Events {
|
|
|
253
264
|
session_id: string;
|
|
254
265
|
trace_id: string;
|
|
255
266
|
};
|
|
267
|
+
[CallSipCallEventEnum.INCOMING_CALL_IN]: {
|
|
268
|
+
customer_phone: string;
|
|
269
|
+
session_id: string;
|
|
270
|
+
trace_id: string;
|
|
271
|
+
};
|
|
256
272
|
[CallSipCallEventEnum.PREDICT_INCOMING_CALL]: {
|
|
257
273
|
customer_phone: string;
|
|
258
274
|
session_id: string;
|
|
@@ -292,6 +308,9 @@ export interface Events {
|
|
|
292
308
|
[CallSipCallEventEnum.OUT_OFF_ANSWER]: {
|
|
293
309
|
session_id: string;
|
|
294
310
|
};
|
|
311
|
+
[CallSipCallEventEnum.INTERNAL_OUT_OFF_ANSWER]: {
|
|
312
|
+
session_id: string;
|
|
313
|
+
};
|
|
295
314
|
[CallSipCallEventEnum.OUT_RINGING]: {
|
|
296
315
|
session_id: string;
|
|
297
316
|
type: 0 | 1;
|
|
@@ -4,6 +4,7 @@ export declare const initIdleConfig: ActionConfigsType;
|
|
|
4
4
|
export declare const initBusyConfig: ActionConfigsType;
|
|
5
5
|
export declare const incomingConfig: ActionConfigsType;
|
|
6
6
|
export declare const outgoingConfig: ActionConfigsType;
|
|
7
|
+
export declare const internalConfig: ActionConfigsType;
|
|
7
8
|
export declare const consultConfig: ActionConfigsType;
|
|
8
9
|
export declare const transferConfig: ActionConfigsType;
|
|
9
10
|
export declare const conferenceConfig: ActionConfigsType;
|