xinyao-agent-call-sdk 1.1.63 → 1.1.66

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.
@@ -100,6 +100,11 @@ export interface GetQueueDataType extends ParamsType {
100
100
  skill_id_list: string[];
101
101
  };
102
102
  }
103
+ export interface SetTleTime extends ParamsType{
104
+ params: {
105
+ settle_time: number;
106
+ };
107
+ }
103
108
  export interface GetSkillAllList {
104
109
  // 技能组名称,支持模糊查询
105
110
  skill_name?: string;
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.63",
3
+ "version": "1.1.66",
4
4
  "main": "xy_call_sdk.esm.js",
5
5
  "types": "index.d.ts",
6
6
  "author": "",
package/utils/agent.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { AgentCheckSkillType, AgentStateAndCheckinSkillData, AgentStateData, ConsultData, GetQueueDataType, IvrMenuData, SkillItemType, TransferAgentData, TransferSkillIData, UpdateAgentStateType } from '../@types/agent_return';
2
- import { agentDataType, OnCallBackType, ParamsType, StoreInfoType } from '../@types/call';
1
+ import { AgentCheckSkillType, AgentStateAndCheckinSkillData, AgentStateData, ConsultData, GetQueueDataType, IvrMenuData, SetTleTime, SkillItemType, TransferAgentData, TransferSkillIData, UpdateAgentStateType } from '../@types/agent_return';
2
+ import { agentDataType, InCallSettingType, OnCallBackType, ParamsType, StoreInfoType } from '../@types/call';
3
3
  import { LogType } from '../index';
4
4
  declare class Agent {
5
5
  #private;
6
6
  private readonly onCallBack;
7
- constructor(info: agentDataType, storeInfo: StoreInfoType, onCallBack: OnCallBackType, saveLog: (log: LogType) => void);
7
+ constructor(info: agentDataType, storeInfo: StoreInfoType, inCallConfig: InCallSettingType, onCallBack: OnCallBackType, saveLog: (log: LogType) => void);
8
8
  query_skill_list({ success, error }: ParamsType<SkillItemType>, is_sdk?: boolean): Promise<void>;
9
9
  query_state_skill({ success, error }: ParamsType<AgentStateAndCheckinSkillData>): Promise<void>;
10
10
  query_transfer_skill_list({ success, error }: ParamsType<TransferSkillIData>): Promise<void>;
@@ -17,6 +17,7 @@ declare class Agent {
17
17
  checkin_skill({ success, error, params: { skill_group_id_list } }: AgentCheckSkillType, is_sdk?: boolean): Promise<void>;
18
18
  checkout_skill({ success, error, params: { skill_group_id_list } }: AgentCheckSkillType, is_sdk?: boolean): Promise<void>;
19
19
  get_queue_info({ success, error, params: { skill_id_list } }: GetQueueDataType): Promise<void>;
20
+ set_settle_time({ success, error, params: { settle_time } }: SetTleTime): Promise<void>;
20
21
  }
21
22
  export default Agent;
22
23
  //# sourceMappingURL=agent.d.ts.map
@@ -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;