ysyt-agent-sdk 1.0.94 → 1.0.96

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 { AgentDataType, AgentItemType, AgentStateDataType, DeviceType, InitInfoType, RequestBodyType, StateType, Events } from './types';
1
+ import { AgentDataType, AgentItemType, AgentStateDataType, DeviceType, InitInfoType, RequestBodyType, StateType, Events, CallCrmObject } from './types';
2
2
  export type * from './types';
3
3
  export * from './types/Enum';
4
4
  declare class YSYTAgentSdk {
@@ -66,5 +66,6 @@ declare class YSYTAgentSdk {
66
66
  }>) => Promise<void>;
67
67
  };
68
68
  getAgentData(): AgentDataType;
69
+ getRealTimeCustomerInfo(): Promise<CallCrmObject>;
69
70
  }
70
71
  export default YSYTAgentSdk;
@@ -1,4 +1,4 @@
1
- import { CallInfoType } from '@/types';
1
+ import { CallCrmObject, CallInfoType } from '@/types';
2
2
  import { ReactiveStore } from './reactive-store';
3
3
  declare class CallInfoStore extends ReactiveStore<CallInfoType> {
4
4
  updateIsCalling(isCalling: boolean): void;
@@ -14,6 +14,7 @@ declare class CallInfoStore extends ReactiveStore<CallInfoType> {
14
14
  updateIsMeeting(isMeeting: boolean): void;
15
15
  updateTransferIsAnswer(transferIsAnswer: boolean): void;
16
16
  updateSelectOutNumber(selectOutNumber: string): void;
17
+ updateCustomerInfo(customerObject: CallCrmObject): void;
17
18
  reset(): void;
18
19
  getCallInfo(): CallInfoType;
19
20
  get<K extends keyof CallInfoType>(key: K): CallInfoType[K];
@@ -33,6 +33,7 @@ export interface CallInfoType {
33
33
  actionConfigs: ActionConfigsType;
34
34
  answerDevice: DeviceType;
35
35
  selectOutNumber: string;
36
+ customerObject?: CallCrmObject;
36
37
  }
37
38
  export interface InitInfoType {
38
39
  enableBrowserAlert?: boolean;
@@ -137,6 +138,7 @@ export interface CallCrmObject {
137
138
  * 号码归属地省份
138
139
  */
139
140
  province: string;
141
+ is_vip: 0 | 1;
140
142
  }
141
143
  export interface AgentDataType {
142
144
  agent_no: string;