ysyt-agent-sdk 1.0.35 → 1.0.36
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.
|
@@ -29,6 +29,10 @@ export interface Events {
|
|
|
29
29
|
[CallSipCallEvent.CONSULT_TRANSFER_FAILED]: string;
|
|
30
30
|
[CallSipCallEvent.CONSULT_TRANSFER_OFF_HOOK]: unknown;
|
|
31
31
|
[CallSipCallEvent.CONSULT_RINGING]: unknown;
|
|
32
|
+
[CallSipCallEvent.CONSULT_OFF_HOOK]: unknown;
|
|
33
|
+
[CallSipCallEvent.CONSULT_FAILED]: {
|
|
34
|
+
custom_reason: string;
|
|
35
|
+
};
|
|
32
36
|
[EventName.NOTIFICATION_CLICK]: NotificationClickType;
|
|
33
37
|
[CallSipCallEvent.CONSULT_INCOMING]: RtcEventDataType<ConsultInComingType>['data'];
|
|
34
38
|
[CallSipCallEvent.CONSULT_CALL_IN_SUCCESS]: unknown;
|
package/dist/src/types/Enum.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare enum AgentStatus {
|
|
|
7
7
|
export declare enum DirectionEnum {
|
|
8
8
|
OUTGOING = "outgoing",
|
|
9
9
|
INCOMING = "incoming",
|
|
10
|
-
CONSULT = "consult"
|
|
10
|
+
CONSULT = "consult",
|
|
11
|
+
MEETING = "meeting"
|
|
11
12
|
}
|
|
12
13
|
export declare enum WebRtcCallSipEventEnum {
|
|
13
14
|
WEB_RTC_CONNECTING = "connecting",
|
|
@@ -55,7 +56,8 @@ export declare enum CallSipCallEvent {
|
|
|
55
56
|
SATISFACTION_EVALUATION_SUCCESS = "satisfaction_evaluation_success",
|
|
56
57
|
SATISFACTION_EVALUATION_FAILED = "satisfaction_evaluation_failed",
|
|
57
58
|
CONSULT_THREE_WAY_SUCCESS = "consult_three_way_success",
|
|
58
|
-
CONSULT_THREE_WAY_FAILED = "consult_three_way_failed"
|
|
59
|
+
CONSULT_THREE_WAY_FAILED = "consult_three_way_failed",
|
|
60
|
+
THREE_WAY_OUR_SIDE_HANGUP = "three_way_our_side_hangup"
|
|
59
61
|
}
|
|
60
62
|
export declare enum WebsocketTypeEnum {
|
|
61
63
|
OUT_CALL = 100,
|
|
@@ -22,7 +22,7 @@ export type RttObjectType = {
|
|
|
22
22
|
};
|
|
23
23
|
export interface CallInfoType {
|
|
24
24
|
isCalling: boolean;
|
|
25
|
-
direction: DirectionEnum.OUTGOING | DirectionEnum.INCOMING | DirectionEnum.CONSULT | null;
|
|
25
|
+
direction: DirectionEnum.OUTGOING | DirectionEnum.INCOMING | DirectionEnum.CONSULT | DirectionEnum.MEETING | null;
|
|
26
26
|
outCallIsAnswer: boolean;
|
|
27
27
|
consultIsAnswer: boolean;
|
|
28
28
|
incomingIsAnswer: boolean;
|