ysyt-agent-sdk 1.1.9 → 1.1.11
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/core/api-client.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/types/Enum.d.ts +5 -2
- package/dist/src/types/index.d.ts +6 -1
- package/dist/src/utils/http.d.ts +1 -0
- package/dist/src/utils/phone-style-config.d.ts +1 -0
- package/dist/ysyt-agent-sdk.cjs.js +24 -24
- package/dist/ysyt-agent-sdk.esm.js +20 -20
- package/dist/ysyt-agent-sdk.umd.js +23 -23
- package/package.json +1 -1
|
@@ -38,4 +38,5 @@ export declare class ApiClient {
|
|
|
38
38
|
listenCall(params: RequestBodyType<Omit<ListenAgentCallType, 'monitor_agent_no'>, any>): Promise<void>;
|
|
39
39
|
earCall(params: RequestBodyType<any, any>): Promise<void>;
|
|
40
40
|
stopEarCall(params: RequestBodyType<any, any>): Promise<void>;
|
|
41
|
+
forceInsert(params: RequestBodyType<any, any>): Promise<void>;
|
|
41
42
|
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare class YSYTAgentSdk {
|
|
|
49
49
|
transferOutline: (number: string) => Promise<void>;
|
|
50
50
|
earSpeakStart: (params: RequestBodyType<any, any>) => Promise<void>;
|
|
51
51
|
earSpeakStop: (params: RequestBodyType<any, any>) => Promise<void>;
|
|
52
|
+
forceInsert: (params: RequestBodyType<any, any>) => Promise<void>;
|
|
52
53
|
};
|
|
53
54
|
get agent_api(): {
|
|
54
55
|
changeDevice: (params: RequestBodyType<{
|
package/dist/src/types/Enum.d.ts
CHANGED
|
@@ -55,7 +55,8 @@ export declare enum WebsocketTypeEnum {
|
|
|
55
55
|
LISTEN_INCOMING_CALL = 138,
|
|
56
56
|
LISTEN_INCOMING_CALL_OFF_HOOK = 139,
|
|
57
57
|
EAR_SPEECH = 140,
|
|
58
|
-
STOP_EAR_SPEECH = 141
|
|
58
|
+
STOP_EAR_SPEECH = 141,
|
|
59
|
+
CALL_FORCE_INSERT = 142
|
|
59
60
|
}
|
|
60
61
|
export declare enum WebRtcCallSipEventEnum {
|
|
61
62
|
WEB_RTC_CONNECTING = "connecting",
|
|
@@ -121,7 +122,9 @@ export declare enum CallSipCallEventEnum {
|
|
|
121
122
|
EAR_SPEECH_SUCCESS = "ear_speech_success",
|
|
122
123
|
EAR_SPEECH_FAILED = "ear_speech_failed",
|
|
123
124
|
STOP_EAR_SPEECH_SUCCESS = "stop_ear_speech_success",
|
|
124
|
-
STOP_EAR_SPEECH_FAILED = "stop_ear_speech_failed"
|
|
125
|
+
STOP_EAR_SPEECH_FAILED = "stop_ear_speech_failed",
|
|
126
|
+
CALL_FORCE_INSERT_SUCCESS = "call_force_insert_success",
|
|
127
|
+
CALL_FORCE_INSERT_FAILED = "call_force_insert_failed"
|
|
125
128
|
}
|
|
126
129
|
export declare enum EventName {
|
|
127
130
|
EVENT_ALL = "event_all",
|
|
@@ -68,7 +68,7 @@ export interface StatusType {
|
|
|
68
68
|
state: StateType;
|
|
69
69
|
statusName: string;
|
|
70
70
|
}
|
|
71
|
-
export type ActionType = 'call_number' | 'answer' | 'reject' | 'hangup' | 'dtmf' | 'unhold' | 'hold' | 'mute' | 'unmute' | 'satisfaction' | 'consult' | 'consult_transfer' | 'consult_retrieve' | 'conference' | 'whisper' | 'cancel_whisper' | 'transfer';
|
|
71
|
+
export type ActionType = 'call_number' | 'answer' | 'reject' | 'hangup' | 'dtmf' | 'unhold' | 'hold' | 'mute' | 'unmute' | 'satisfaction' | 'consult' | 'consult_transfer' | 'consult_retrieve' | 'conference' | 'whisper' | 'cancel_whisper' | 'force_insert' | 'transfer';
|
|
72
72
|
export type ActionConfigsType = Array<ActionType>;
|
|
73
73
|
export interface AgentObjectType {
|
|
74
74
|
agent_id: number;
|
|
@@ -334,6 +334,11 @@ export interface Events {
|
|
|
334
334
|
[CallSipCallEventEnum.EAR_SPEECH_FAILED]: unknown;
|
|
335
335
|
[CallSipCallEventEnum.STOP_EAR_SPEECH_SUCCESS]: unknown;
|
|
336
336
|
[CallSipCallEventEnum.STOP_EAR_SPEECH_FAILED]: unknown;
|
|
337
|
+
[CallSipCallEventEnum.CALL_FORCE_INSERT_FAILED]: unknown;
|
|
338
|
+
[CallSipCallEventEnum.CALL_FORCE_INSERT_SUCCESS]: {
|
|
339
|
+
monitored_agent_no: string;
|
|
340
|
+
monitor_agent_no: string;
|
|
341
|
+
};
|
|
337
342
|
[key: string]: unknown;
|
|
338
343
|
[key: symbol]: unknown;
|
|
339
344
|
}
|
package/dist/src/utils/http.d.ts
CHANGED
|
@@ -38,3 +38,4 @@ export declare const ping: () => Promise<any>;
|
|
|
38
38
|
export declare const listenAgentCall: (params: ListenAgentCallType) => Promise<any>;
|
|
39
39
|
export declare const earSpeak: (params: ListenAgentCallType) => Promise<any>;
|
|
40
40
|
export declare const stopEarSpeak: (params: ListenAgentCallType) => Promise<any>;
|
|
41
|
+
export declare const bargeinSpeak: (params: ListenAgentCallType) => Promise<any>;
|
|
@@ -14,3 +14,4 @@ export declare const incomingCallAnswerConfig: ActionConfigsType;
|
|
|
14
14
|
export declare const listenSuccessConfig: ActionConfigsType;
|
|
15
15
|
export declare const earSpeakConfig: ActionConfigsType;
|
|
16
16
|
export declare const earSpeakAgentConfig: ActionConfigsType;
|
|
17
|
+
export declare const forceInsertConfig: ActionConfigsType;
|