ysyt-agent-sdk 2.0.21 → 2.0.23

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,7 +11,7 @@ export declare class ApiClient {
11
11
  _changeState(params: RequestBodyType<{
12
12
  state: StateType;
13
13
  state_name: string;
14
- }>): Promise<void>;
14
+ }>, suffix: string): Promise<void>;
15
15
  _getInCallCrmDetail(params: RequestBodyType<{
16
16
  phone: string;
17
17
  }, CallCrmObject>): Promise<void>;
@@ -24,7 +24,7 @@ export declare class ApiClient {
24
24
  changeState(params: RequestBodyType<{
25
25
  state: StateType;
26
26
  state_name: string;
27
- }>): Promise<void>;
27
+ }>, suffix: string): Promise<void>;
28
28
  getIdleAgentList(params: RequestBodyType<any, AgentItemType[]>): Promise<void>;
29
29
  getAgentState(params: RequestBodyType<any, AgentStateDataType>): Promise<void>;
30
30
  setAgentExplicit(params: RequestBodyType<{
@@ -1,4 +1,4 @@
1
- import { AgentDataType, AgentItemType, AgentStateDataType, DeviceType, InitInfoType, RequestBodyType, StateType, Events, CallCrmObject, RecordItemType, AgentLogoutBodyType, ListenAgentCallType } from './types';
1
+ import { AgentDataType, AgentItemType, AgentLogoutBodyType, AgentStateDataType, CallCrmObject, DeviceType, Events, InitInfoType, ListenAgentCallType, RecordItemType, RequestBodyType, StateType } from './types';
2
2
  export type * from './types';
3
3
  export * from './types/Enum';
4
4
  declare class YSYTAgentSdk {
@@ -6,7 +6,7 @@ export declare const changeState: (params: {
6
6
  agent_no: string;
7
7
  state: StateType;
8
8
  state_name: string;
9
- }) => Promise<any>;
9
+ }, suffix: string) => Promise<any>;
10
10
  export declare const changeDevice: (params: {
11
11
  agent_no: string;
12
12
  answer_device: DeviceType;
@@ -17,8 +17,9 @@ export declare function SET_AGENT_NO(newAgentNo: string): void;
17
17
  * POST 请求封装
18
18
  * @param url 相对接口路径,如 /user/login
19
19
  * @param params 请求体参数对象
20
+ * @param headers
20
21
  */
21
- export declare function $POST<T extends object = any, R = any>(url: string, params: T): Promise<R>;
22
+ export declare function $POST<T extends object = any, R = any>(url: string, params: T, headers?: any): Promise<R>;
22
23
  /**
23
24
  * POST 请求封装
24
25
  * @param url 相对接口路径,如 /user/login