ysyt-agent-sdk 1.0.127 → 1.0.129
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 +4 -2
- package/dist/src/types/index.d.ts +3 -3
- package/dist/src/utils/ReconnectingWebSocket.d.ts +1 -0
- package/dist/src/utils/phone-style-config.d.ts +1 -0
- package/dist/ysyt-agent-sdk.cjs.js +26 -26
- package/dist/ysyt-agent-sdk.esm.js +26 -26
- package/dist/ysyt-agent-sdk.umd.js +25 -25
- package/package.json +1 -1
package/dist/src/types/Enum.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export declare enum AgentStatus {
|
|
|
2
2
|
IDLE = 1,
|
|
3
3
|
BUSY = 2,
|
|
4
4
|
RINGING = 3,
|
|
5
|
-
OFFLINE = 0
|
|
5
|
+
OFFLINE = 0,
|
|
6
|
+
UNREGISTERED = 4
|
|
6
7
|
}
|
|
7
8
|
export declare enum DirectionEnum {
|
|
8
9
|
OUTGOING = "outgoing",
|
|
@@ -44,7 +45,8 @@ export declare enum WebsocketTypeEnum {
|
|
|
44
45
|
TRANSFER_INCOMING_CALL = 129,
|
|
45
46
|
TRANSFER_OFF_HOOK = 130,
|
|
46
47
|
AGENT_HANGUP = 131,
|
|
47
|
-
KICK_OFFLINE = 132
|
|
48
|
+
KICK_OFFLINE = 132,
|
|
49
|
+
CONTINUOUS_NOT_ANSWER = 133
|
|
48
50
|
}
|
|
49
51
|
export declare enum WebRtcCallSipEventEnum {
|
|
50
52
|
WEB_RTC_CONNECTING = "connecting",
|
|
@@ -61,12 +61,12 @@ export interface StyleType {
|
|
|
61
61
|
[AgentStatus.RINGING]: string;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
export type DeviceType = 1 | 2 | 3;
|
|
65
|
+
export type StateType = AgentStatus.OFFLINE | AgentStatus.IDLE | AgentStatus.BUSY | AgentStatus.RINGING | AgentStatus.UNREGISTERED;
|
|
64
66
|
export interface StatusType {
|
|
65
|
-
state:
|
|
67
|
+
state: StateType;
|
|
66
68
|
statusName: string;
|
|
67
69
|
}
|
|
68
|
-
export type DeviceType = 1 | 2 | 3;
|
|
69
|
-
export type StateType = AgentStatus.OFFLINE | AgentStatus.IDLE | AgentStatus.BUSY | AgentStatus.RINGING;
|
|
70
70
|
export type ActionType = 'call_number' | 'answer' | 'reject' | 'hangup' | 'dtmf' | 'unhold' | 'hold' | 'mute' | 'unmute' | 'satisfaction' | 'consult' | 'consult_transfer' | 'consult_retrieve' | 'conference' | 'transfer';
|
|
71
71
|
export type ActionConfigsType = Array<ActionType>;
|
|
72
72
|
export interface AgentObjectType {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionConfigsType, StatusType, StyleType } from '@/types';
|
|
2
2
|
export declare const phoneStyleConfig: StyleType;
|
|
3
3
|
export declare const IdleNode: ({ state, statusName }: StatusType) => import("lit").TemplateResult<1>;
|
|
4
|
+
export declare const unregisteredConfig: ActionConfigsType;
|
|
4
5
|
export declare const initIdleConfig: ActionConfigsType;
|
|
5
6
|
export declare const initBusyConfig: ActionConfigsType;
|
|
6
7
|
export declare const incomingConfig: ActionConfigsType;
|