@wizai/agent-sip-sdk 0.1.6-alpha → 0.1.7-alpha

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.
@@ -11,6 +11,9 @@ declare class AgentSipSDK {
11
11
  private agentResponseTime;
12
12
  private timer;
13
13
  private callDetails;
14
+ private unloadingHandled;
15
+ private pageHideHandler;
16
+ private visibilityChangeHandler;
14
17
  constructor(props: IAgentSipSDKOptions);
15
18
  private init;
16
19
  getAgentStatusList(): Promise<IGetAgentStatusList>;
@@ -19,6 +22,7 @@ declare class AgentSipSDK {
19
22
  private processSSEMessage;
20
23
  private resetSSE;
21
24
  private createSSEAndOpensips;
25
+ private waitSIPRegistered;
22
26
  getAgentStatus(): Promise<IGetAgentStatus>;
23
27
  private onlineAgent;
24
28
  private offlineAgent;
@@ -33,6 +37,7 @@ declare class AgentSipSDK {
33
37
  private sessionFailed;
34
38
  private openOnunload;
35
39
  private cancelOnunload;
40
+ private doForceOfflineCleanup;
36
41
  private saveAgentResponseTime;
37
42
  hangup(): void;
38
43
  private timingResTime;
@@ -1,6 +1,10 @@
1
1
  import { ECode } from './enums/common';
2
2
  import { EAgentStatus } from './enums/agent';
3
3
  import type { IAgentStatusListResponse, IOutboundCallResponse } from './api/types';
4
+ export declare class SDKError extends Error {
5
+ code: ECode;
6
+ constructor(code: ECode, message: string);
7
+ }
4
8
  export interface IResponse<T = any> {
5
9
  code: ECode;
6
10
  data: T;
@@ -28,6 +32,8 @@ export interface ICallDetails {
28
32
  callType: string;
29
33
  taskName: string;
30
34
  afterCallProcessTime: string;
35
+ phone: string;
36
+ contactId: string;
31
37
  extraJson: any;
32
38
  }
33
39
  export interface IGetAgentStatusSuccess {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizai/agent-sip-sdk",
3
- "version": "0.1.6-alpha",
3
+ "version": "0.1.7-alpha",
4
4
  "description": "Manages SIP clients and agent status, simplifying calls and events.",
5
5
  "main": "lib/agent-sip-sdk-cjs.js",
6
6
  "module": "lib/agent-sip-sdk-es.js",