ysyt-agent-sdk 1.0.75 → 1.0.77
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 +2 -1
- package/dist/src/internal/_internalStore.d.ts +2 -1
- package/dist/src/types/index.d.ts +40 -0
- package/dist/src/utils/http.d.ts +1 -0
- package/dist/ysyt-agent-sdk.cjs.js +4 -4
- package/dist/ysyt-agent-sdk.esm.js +4 -4
- package/dist/ysyt-agent-sdk.umd.js +4 -4
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AgentDataType, AgentItemType, AgentStateDataType, DeviceType, InitInfoType, RequestBodyType, StateType, Events } from './types';
|
|
2
2
|
export type * from './types';
|
|
3
3
|
export * from './types/Enum';
|
|
4
4
|
declare class YSYTAgentSdk {
|
|
@@ -8,6 +8,7 @@ declare class YSYTAgentSdk {
|
|
|
8
8
|
static get instance(): YSYTAgentSdk;
|
|
9
9
|
static destroyInstance(): Promise<void>;
|
|
10
10
|
static getInstance(): YSYTAgentSdk;
|
|
11
|
+
getInit(): boolean;
|
|
11
12
|
initWebRtc(): Promise<void>;
|
|
12
13
|
/**
|
|
13
14
|
* 初始化SDK
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AgentObjectType } from '@/types';
|
|
1
|
+
import { AgentObjectType, EmployeeDetailType } from '@/types';
|
|
2
2
|
import { AgentStatus } from '@/types/Enum';
|
|
3
3
|
type InternalState = {
|
|
4
4
|
agentInfo: AgentObjectType;
|
|
5
|
+
globalInfo: EmployeeDetailType;
|
|
5
6
|
isRtcReconnecting: boolean;
|
|
6
7
|
sessionId: string;
|
|
7
8
|
enableBrowserAlert: boolean;
|
|
@@ -142,6 +142,46 @@ export interface CallCrmObject {
|
|
|
142
142
|
*/
|
|
143
143
|
province: string;
|
|
144
144
|
}
|
|
145
|
+
export interface EmployeeDetailType {
|
|
146
|
+
/**
|
|
147
|
+
* 自动切换状态,0:关闭 1:开启
|
|
148
|
+
*/
|
|
149
|
+
auto_switch_state: 0 | 1;
|
|
150
|
+
/**
|
|
151
|
+
* 默认登录设备,1:软电话 2:手机模式 3:SIP 话机
|
|
152
|
+
*/
|
|
153
|
+
default_device: DeviceType;
|
|
154
|
+
/**
|
|
155
|
+
* 座席手机号禁止重复,0:关闭 1:开启
|
|
156
|
+
*/
|
|
157
|
+
forbid_agent_phone_repeat: 0 | 1;
|
|
158
|
+
/**
|
|
159
|
+
* 禁止话机摘机外呼,0:关闭 1:开启
|
|
160
|
+
*/
|
|
161
|
+
forbid_sip_call: 0 | 1;
|
|
162
|
+
/**
|
|
163
|
+
* 初始状态,1:空闲 2:忙碌
|
|
164
|
+
*/
|
|
165
|
+
init_state: 1 | 2;
|
|
166
|
+
/**
|
|
167
|
+
* 登出自动迁离线接听,0:关闭 1:开启
|
|
168
|
+
*/
|
|
169
|
+
logout_auto_offline_answer: 0 | 1;
|
|
170
|
+
/**
|
|
171
|
+
* 未接次数
|
|
172
|
+
*/
|
|
173
|
+
missed_calls_count: number;
|
|
174
|
+
/**
|
|
175
|
+
* 话后处理时间,单位秒
|
|
176
|
+
*/
|
|
177
|
+
post_call_process_time: number;
|
|
178
|
+
/**
|
|
179
|
+
* 电话条是否显示满意度,0:否 1:是
|
|
180
|
+
*/
|
|
181
|
+
show_satisfaction: 0 | 1;
|
|
182
|
+
enable_default_device_selection: 0 | 1;
|
|
183
|
+
enable_init_state_selection: 0 | 1;
|
|
184
|
+
}
|
|
145
185
|
export interface AgentDataType {
|
|
146
186
|
agent_no: string;
|
|
147
187
|
agent_name: string;
|
package/dist/src/utils/http.d.ts
CHANGED