ysyt-agent-sdk 1.0.132 → 1.0.134

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,4 +1,4 @@
1
- import { AgentItemType, AgentStateDataType, DeviceType, CallCrmObject, RequestBodyType, StateType, RecordItemType, AgentLogoutBodyType } from '@/types';
1
+ import { AgentItemType, AgentLogoutBodyType, AgentStateDataType, CallCrmObject, DeviceType, RecordItemType, RequestBodyType, StateType } from '@/types';
2
2
  export declare class ApiClient {
3
3
  private roleData;
4
4
  formatDate(date: Date): string;
@@ -1,5 +1,4 @@
1
- import { AgentObjectType } from '@/types';
2
- import { AgentStatus } from '@/types/Enum';
1
+ import { AgentObjectType, StateType } from '@/types';
3
2
  type InternalState = {
4
3
  agentInfo: AgentObjectType;
5
4
  isRtcReconnecting: boolean;
@@ -10,11 +9,11 @@ type InternalState = {
10
9
  logBuiltinEnabled: boolean;
11
10
  browserAlertTime: number;
12
11
  stateObject?: {
13
- state: AgentStatus;
12
+ state: StateType;
14
13
  state_name: string;
15
14
  };
16
15
  stateBeforeChange?: {
17
- state: AgentStatus;
16
+ state: StateType;
18
17
  state_name: string;
19
18
  };
20
19
  latency: number;
@@ -113,7 +113,8 @@ export declare enum EventName {
113
113
  WEBSITE_DELAY = "website_delay",
114
114
  SELECT_EXTERNAL_NUMBER = "select_external_number",
115
115
  FAIL_NOTIFICATION = "fail_notification",
116
- KICK_OFF = "kick_off"
116
+ KICK_OFF = "kick_off",
117
+ DESTROY = "destroy"
117
118
  }
118
119
  export declare enum DisplayTextEnum {
119
120
  RINGING = "\u5BA2\u6237\u632F\u94C3",
@@ -294,6 +294,7 @@ export interface Events {
294
294
  [EventName.WEBSITE_DELAY]: RttObjectType;
295
295
  [EventName.SELECT_EXTERNAL_NUMBER]: string;
296
296
  [EventName.FAIL_NOTIFICATION]: string;
297
+ [EventName.DESTROY]: unknown;
297
298
  [key: string]: unknown;
298
299
  [key: symbol]: unknown;
299
300
  }