ysyt-agent-sdk 1.0.79 → 1.0.81

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.
@@ -12,7 +12,6 @@ export declare class ApiClient {
12
12
  _getInCallCrmDetail(params: RequestBodyType<{
13
13
  phone: string;
14
14
  }, CallCrmObject>): Promise<void>;
15
- _getGlobalSetting(): Promise<void>;
16
15
  /**
17
16
  * 对外
18
17
  */
@@ -1,8 +1,7 @@
1
- import { AgentObjectType, EmployeeDetailType } from '@/types';
1
+ import { AgentObjectType } from '@/types';
2
2
  import { AgentStatus } from '@/types/Enum';
3
3
  type InternalState = {
4
4
  agentInfo: AgentObjectType;
5
- globalInfo: EmployeeDetailType;
6
5
  isRtcReconnecting: boolean;
7
6
  sessionId: string;
8
7
  enableBrowserAlert: boolean;
@@ -112,7 +112,8 @@ export declare enum EventName {
112
112
  PHONE_BAR_OPERATION = "phone_bar_operation",
113
113
  AGENT_INIT_STATUS = "agent_init_status",
114
114
  WEBSITE_DELAY = "website_delay",
115
- SELECT_EXTERNAL_NUMBER = "select_external_number"
115
+ SELECT_EXTERNAL_NUMBER = "select_external_number",
116
+ FAIL_NOTIFICATION = "fail_notification"
116
117
  }
117
118
  export declare enum DisplayTextEnum {
118
119
  RINGING = "\u5BA2\u6237\u632F\u94C3",
@@ -142,46 +142,6 @@ 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
- }
185
145
  export interface AgentDataType {
186
146
  agent_no: string;
187
147
  agent_name: string;
@@ -252,6 +212,7 @@ export interface Events {
252
212
  [CallSipCallEvent.CUSTOMER_INFO]: CallCrmObject;
253
213
  [EventName.WEBSITE_DELAY]: RttObjectType;
254
214
  [EventName.SELECT_EXTERNAL_NUMBER]: string;
215
+ [EventName.FAIL_NOTIFICATION]: string;
255
216
  [key: string]: unknown;
256
217
  [key: symbol]: unknown;
257
218
  }
@@ -23,4 +23,3 @@ export declare const setOutNumber: (params: {
23
23
  agent_id: number;
24
24
  out_display_number: string;
25
25
  }) => Promise<any>;
26
- export declare const queryEmployeeDetail: () => Promise<any>;