xinyao-agent-call-sdk 1.1.64 → 1.1.65

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/@types/call.d.ts CHANGED
@@ -52,6 +52,7 @@ export interface StoreInfoType {
52
52
  janusHangup: boolean
53
53
  is_log: boolean;
54
54
  initNumber: number
55
+ janus_register: boolean
55
56
  }
56
57
 
57
58
  export interface OutCallSettingType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xinyao-agent-call-sdk",
3
- "version": "1.1.64",
3
+ "version": "1.1.65",
4
4
  "main": "xy_call_sdk.esm.js",
5
5
  "types": "index.d.ts",
6
6
  "author": "",
@@ -23,6 +23,7 @@ interface Props {
23
23
  outCallConfig: OutCallSettingType;
24
24
  Agent: Agent;
25
25
  hangupInit: () => void;
26
+ autoCheckIn: () => void;
26
27
  saveLog: (log: LogType) => void;
27
28
  }
28
29
  declare class Call_Api {
@@ -32,7 +33,7 @@ declare class Call_Api {
32
33
  account: string;
33
34
  password: string;
34
35
  };
35
- constructor({ onCallBack, params, element, callInfoData, storeInfo, agentInfo, outCallConfig, Agent, hangupInit, saveLog, }: Props);
36
+ constructor({ onCallBack, params, element, callInfoData, storeInfo, agentInfo, outCallConfig, Agent, hangupInit, saveLog, autoCheckIn, }: Props);
36
37
  /**
37
38
  call_event = ({ useName }: { useName: string }) => {
38
39
  if (!useName) {
@@ -10,7 +10,7 @@ declare class Websocket {
10
10
  private msgTimerRef;
11
11
  private startTime;
12
12
  private readonly onCallBack;
13
- constructor(agentInfo: agentDataType, onCallBack: OnCallBackType, callInfoData: CallInfoMsgType, storeInfo: StoreInfoType, Agent: Agent, onAnswer: () => void, URL: string, inCallConfig: InCallSettingType, onDetach: (is_sdk?: boolean) => void, hangupInit: () => void, saveLog: (log: LogType) => void, hangupJanus: () => void);
13
+ constructor(agentInfo: agentDataType, onCallBack: OnCallBackType, callInfoData: CallInfoMsgType, storeInfo: StoreInfoType, Agent: Agent, onAnswer: () => void, URL: string, inCallConfig: InCallSettingType, onDetach: (is_sdk?: boolean) => void, hangupInit: () => void, saveLog: (log: LogType) => void, hangupJanus: () => void, autoCheckIn: () => void);
14
14
  createWorker(): Worker;
15
15
  private initWebSocket;
16
16
  private onWsMes;