ysyt-agent-sdk 1.0.67 → 1.0.69

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.
@@ -1 +1 @@
1
- @font-face{font-family:ysyt;src:url(../fonts/iconfont.woff2?t=1750839875482) format("woff2"),url(../fonts/iconfont.woff?t=1750839875482) format("woff"),url(../fonts/iconfont.ttf?t=1750839875482) format("truetype")}.ysyt{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:ysyt,serif!important;font-size:18px;font-style:normal}.icon-fanhui:before{content:"\e63b"}.icon-huiyi:before{content:"\e6eb"}.icon-ic_liebiao_bohaopan:before{content:"\e602"}.icon-shouji:before{content:"\e692"}.icon-20gl-phoneSip:before{content:"\e924"}.icon-dianhua:before{content:"\e842"}.icon-quxiao:before{content:"\e676"}.icon-jieting:before{content:"\e60a"}.icon-boda:before{content:"\e679"}.icon-kaishi:before{content:"\e800"}.icon-guaji:before{content:"\e732"}.icon-manyidu:before{content:"\e600"}.icon-zixun:before{content:"\e71f"}.icon-zanting:before{content:"\ea81"}.icon-zhuanjie1:before{content:"\e601"}.icon-microphone:before{content:"\e661"}.icon-guanbimaikefeng:before{content:"\e603"}.icon-manglu:before{content:"\e65d"}.icon-shang:before{content:"\e60f"}.icon-xia:before{content:"\e64c"}.icon-kongxian:before{content:"\ed94"}#ysyt-body{position:relative}#ysyt-body,.ysyt-phone-body{align-items:center;display:flex;height:30px}.ysyt-phone-body{border-radius:30px 10px 0 30px;padding:0 10px;user-select:none}.ysyt-phone-body .ysyt-title{color:#fff;cursor:pointer;font-size:14px;padding-right:10px;position:relative;width:100px}.ysyt-phone-body .select-icon{color:#fff;display:none;font-size:10px;left:calc(50% - 4px);position:absolute;top:100%;z-index:9999999}.ysyt-select{background:#fff;border-radius:4px;box-shadow:0 4px 8px rgba(0,0,0,.1);height:0;overflow:hidden;position:absolute;top:calc(100% + 8px);transition:height .1s ease-in;width:100%;z-index:9999999}.ysyt-select-body{position:relative}.ysyt-select-body>div{color:rgba(0,0,0,.6);padding:5px 4px;text-align:center}.ysyt-select-body>div:hover{background:#ecf5ff;color:#2b96ea}.ysyt-action-body{align-items:center;color:#3356ec;display:flex;font-size:25px;gap:0 10px;height:30px;padding:0 10px}.ysyt-action-body>*{cursor:pointer}.content-call-key{color:rgba(0,0,0,.6);font-size:16px;padding:10px 5px;width:250px}.content-call-key>my-input::part(wrapper){--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);border:none;border-radius:30px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:25px;width:100%}.content-call-key>my-input::part(wrapper-input){text-align:center}#wifi-body>img{width:18px}.network-body{color:rgba(0,0,0,.7);font-size:12px;padding:5px 10px}.network-body>div{align-items:center;display:flex;margin-bottom:5px}.network-body>div>div{color:#000;width:50px}.my-icon{font-size:22px}.agent-list-item{align-items:center;display:flex;justify-content:space-between;padding:10px}#ysyt-devices-body{align-items:center;display:flex;justify-content:center;margin-right:15px;position:relative;width:130px}.ysyt-customer-card{background:#fff;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.1);color:#797979;font-size:14px;left:140px;padding:10px;position:absolute;top:32px;width:250px;z-index:9999}
1
+ @font-face{font-family:ysyt;src:url(../fonts/iconfont.woff2?t=1750839875482) format("woff2"),url(../fonts/iconfont.woff?t=1750839875482) format("woff"),url(../fonts/iconfont.ttf?t=1750839875482) format("truetype")}.ysyt{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:ysyt,serif!important;font-size:18px;font-style:normal}.icon-fanhui:before{content:"\e63b"}.icon-huiyi:before{content:"\e6eb"}.icon-ic_liebiao_bohaopan:before{content:"\e602"}.icon-shouji:before{content:"\e692"}.icon-20gl-phoneSip:before{content:"\e924"}.icon-dianhua:before{content:"\e842"}.icon-quxiao:before{content:"\e676"}.icon-jieting:before{content:"\e60a"}.icon-boda:before{content:"\e679"}.icon-kaishi:before{content:"\e800"}.icon-guaji:before{content:"\e732"}.icon-manyidu:before{content:"\e600"}.icon-zixun:before{content:"\e71f"}.icon-zanting:before{content:"\ea81"}.icon-zhuanjie1:before{content:"\e601"}.icon-microphone:before{content:"\e661"}.icon-guanbimaikefeng:before{content:"\e603"}.icon-manglu:before{content:"\e65d"}.icon-shang:before{content:"\e60f"}.icon-xia:before{content:"\e64c"}.icon-kongxian:before{content:"\ed94"}#ysyt-body{position:relative}#ysyt-body,.ysyt-phone-body{align-items:center;display:flex;height:30px}.ysyt-phone-body{border-radius:30px 10px 0 30px;padding:0 10px;user-select:none}.ysyt-phone-body .ysyt-title{color:#fff;cursor:pointer;font-size:14px;padding-right:10px;position:relative;width:100px}.ysyt-phone-body .select-icon{color:#fff;display:none;font-size:10px;left:calc(50% - 4px);position:absolute;top:100%;z-index:9999999}.ysyt-select{background:#fff;border-radius:4px;box-shadow:0 4px 8px rgba(0,0,0,.1);height:0;overflow:hidden;position:absolute;top:calc(100% + 8px);transition:height .1s ease-in;width:100%;z-index:9999999}.ysyt-select-body{position:relative}.ysyt-select-body>div{color:rgba(0,0,0,.6);padding:5px 4px;text-align:center}.ysyt-select-body>div:hover{background:#ecf5ff;color:#2b96ea}.ysyt-action-body{align-items:center;color:#3356ec;display:flex;font-size:25px;gap:0 10px;height:30px;padding:0 10px}.ysyt-action-body>*{cursor:pointer}.content-call-key{color:rgba(0,0,0,.6);font-size:16px;padding:10px 5px;width:250px}.content-call-key>my-input::part(wrapper){--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);border:none;border-radius:30px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:25px;width:100%}.content-call-key>my-input::part(wrapper-input){text-align:center}#wifi-body>img{width:18px}.network-body{color:rgba(0,0,0,.7);font-size:12px;padding:5px 10px}.network-body>div{align-items:center;display:flex;margin-bottom:5px}.network-body>div>div{color:#000;width:50px}.my-icon{font-size:22px}.agent-list-item{align-items:center;display:flex;justify-content:space-between;padding:10px}#ysyt-devices-body{align-items:center;display:flex;justify-content:center;margin-right:15px;position:relative;width:130px}.ysyt-customer-card{background:#fff;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.1);color:#797979;font-size:14px;left:140px;padding:10px;position:absolute;top:32px;width:250px;z-index:9999}.out-display-body{align-items:center;display:flex;margin-left:10px}.ysyt-out-display-content{width:250px}.ysyt-out-display-input{border-bottom:1px solid rgba(0,0,0,.2);padding:5px}.ysyt-out-display-number{padding:5px}.number-item{border-radius:2px;color:#555;cursor:pointer;font-size:14px;margin-bottom:2px;padding:2px}.number-item-select,.number-item:hover{background:#eee}
@@ -24,4 +24,7 @@ export declare class ApiClient {
24
24
  }>): Promise<void>;
25
25
  getIdleAgentList(params: RequestBodyType<any, AgentItemType[]>): Promise<void>;
26
26
  getAgentState(params: RequestBodyType<any, AgentStateDataType>): Promise<void>;
27
+ setAgentExplicit(params: RequestBodyType<{
28
+ number: string;
29
+ }>): Promise<void>;
27
30
  }
@@ -32,6 +32,7 @@ export declare class PhoneView {
32
32
  private readonly waitAudio;
33
33
  customerInfo: CallCrmObject;
34
34
  transferType: string;
35
+ selectNumber: string;
35
36
  constructor({ container, rttHTML, statusParams }: Props, VoiceSDKInstance: YSYTAgentSdk, callApi: CallApi);
36
37
  private play;
37
38
  private playFromStart;
@@ -39,6 +40,7 @@ export declare class PhoneView {
39
40
  private eventHandle;
40
41
  private handleNetworkInfoChange;
41
42
  private handleCallInfoChange;
43
+ private setOutNumber;
42
44
  private getAgentStateList;
43
45
  private hiddenSelect;
44
46
  private toggle;
@@ -13,6 +13,7 @@ declare class CallInfoStore extends ReactiveStore<CallInfoType> {
13
13
  updateAnswerDevice(answerDevice: CallInfoType['answerDevice']): void;
14
14
  updateIsMeeting(isMeeting: boolean): void;
15
15
  updateTransferIsAnswer(transferIsAnswer: boolean): void;
16
+ updateSelectOutNumber(selectOutNumber: string): void;
16
17
  reset(): void;
17
18
  getCallInfo(): CallInfoType;
18
19
  get<K extends keyof CallInfoType>(key: K): CallInfoType[K];
@@ -110,8 +110,9 @@ export declare enum EventName {
110
110
  NOTIFICATION_CLICK = "notification_click",
111
111
  UPDATE_ANSWER_DEVICE = "update_answer_device",
112
112
  PHONE_BAR_OPERATION = "phone_bar_operation",
113
- AGENT_INIT_SUCCESS = "agent_init_success",
114
- WEBSITE_DELAY = "website_delay"
113
+ AGENT_INIT_STATUS = "agent_init_success",
114
+ WEBSITE_DELAY = "website_delay",
115
+ SELECT_EXTERNAL_NUMBER = "select_external_number"
115
116
  }
116
117
  export declare enum DisplayTextEnum {
117
118
  RINGING = "\u5BA2\u6237\u632F\u94C3",
@@ -32,6 +32,7 @@ export interface CallInfoType {
32
32
  isMuted: boolean;
33
33
  actionConfigs: ActionConfigsType;
34
34
  answerDevice: DeviceType;
35
+ selectOutNumber: string;
35
36
  }
36
37
  export interface InitInfoType {
37
38
  url?: string;
@@ -61,7 +62,7 @@ export type StateType = AgentStatus.OFFLINE | AgentStatus.IDLE | AgentStatus.BUS
61
62
  export type ActionType = 'call_number' | 'answer' | 'reject' | 'hangup' | 'dtmf' | 'unhold' | 'hold' | 'mute' | 'unmute' | 'satisfaction' | 'consult' | 'consult_transfer' | 'consult_retrieve' | 'conference' | 'transfer';
62
63
  export type ActionConfigsType = Array<ActionType>;
63
64
  export interface AgentObjectType {
64
- app_id: string;
65
+ agent_id: number;
65
66
  agent_no: string;
66
67
  state: 0 | 1;
67
68
  agent_name: string;
@@ -85,6 +86,9 @@ export interface AgentObjectType {
85
86
  current_state: StateType;
86
87
  current_state_name: string;
87
88
  current_answer_device: DeviceType;
89
+ out_display_select_switch: 0 | 1;
90
+ out_display_number: string;
91
+ out_display_data: string;
88
92
  sip_account_list: {
89
93
  sip_account: string;
90
94
  sip_password: string;
@@ -140,6 +144,8 @@ export interface CallCrmObject {
140
144
  export interface AgentDataType {
141
145
  agent_no: string;
142
146
  agent_name: string;
147
+ out_display_data: string;
148
+ out_display_select_switch: 0 | 1;
143
149
  answer_devices: {
144
150
  value: number;
145
151
  label: string;
@@ -156,7 +162,7 @@ type EventObject<T> = {
156
162
  data: T;
157
163
  };
158
164
  export interface Events {
159
- [EventName.AGENT_INIT_SUCCESS]: unknown;
165
+ [EventName.AGENT_INIT_STATUS]: boolean;
160
166
  [CallSipCallEvent.CALL_PROGRESS]: string;
161
167
  [WebRtcCallSipEventEnum.WEB_RTC_CONNECTING]: unknown;
162
168
  [WebRtcCallSipEventEnum.WEB_RTC_CONNECTED]: unknown;
@@ -204,6 +210,7 @@ export interface Events {
204
210
  };
205
211
  [CallSipCallEvent.CUSTOMER_INFO]: CallCrmObject;
206
212
  [EventName.WEBSITE_DELAY]: RttObjectType;
213
+ [EventName.SELECT_EXTERNAL_NUMBER]: string;
207
214
  [key: string]: unknown;
208
215
  [key: symbol]: unknown;
209
216
  }
@@ -19,3 +19,7 @@ export declare const querySeatStatusAll: () => Promise<any>;
19
19
  export declare const queryInCallCrmDetail: (params: {
20
20
  phone: string;
21
21
  }) => Promise<any>;
22
+ export declare const setOutNumber: (params: {
23
+ agent_id: number;
24
+ out_display_number: string;
25
+ }) => Promise<any>;