ysyt-agent-sdk 1.0.152 → 1.0.154

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.
@@ -151,6 +151,7 @@ export interface CallCrmObject {
151
151
  */
152
152
  province: string;
153
153
  is_vip: 0 | 1;
154
+ trace_id?: string;
154
155
  }
155
156
  export interface AgentDataType {
156
157
  agent_no: string;
@@ -183,6 +184,7 @@ export interface RecordItemType {
183
184
  card_type: string;
184
185
  start_time: string;
185
186
  call_state: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
187
+ trace_id?: string;
186
188
  }
187
189
  export interface AgentLogoutBodyType {
188
190
  agent_no: string;
@@ -210,11 +212,13 @@ export interface Events {
210
212
  [CallSipCallEventEnum.OUT_INCOMING_CALL]: {
211
213
  customer_phone: string;
212
214
  session_id: string;
215
+ trace_id: string;
213
216
  };
214
217
  [CallSipCallEventEnum.PREVIEW_OUT_INCOMING_CALL]: {
215
218
  customer_phone: string;
216
219
  session_id: string;
217
220
  preview_task_id: number;
221
+ trace_id: string;
218
222
  };
219
223
  [CallSipCallEventEnum.OUT_SUCCESS]: unknown;
220
224
  [CallSipCallEventEnum.OUT_FAILED]: string;
@@ -7,7 +7,6 @@ export declare class ReconnectingWebSocket {
7
7
  private manualClose;
8
8
  private apiClient;
9
9
  sipClient: SIPClient | null;
10
- private outNumber;
11
10
  private pendingMessages;
12
11
  private constructor();
13
12
  static getInstance({ url, sipClient }: {
@@ -16,7 +16,8 @@ export declare const getIdleAgents: (params: {
16
16
  }) => Promise<any>;
17
17
  export declare const querySeatStatusAll: () => Promise<any>;
18
18
  export declare const queryInCallCrmDetail: (params: {
19
- phone: string;
19
+ phone?: string;
20
+ trace_id?: string;
20
21
  }) => Promise<any>;
21
22
  export declare const setOutNumber: (params: {
22
23
  agent_id: number;