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.
- package/dist/src/core/api-client.d.ts +2 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/http.d.ts +1 -1
- package/dist/src/utils/request.d.ts +2 -1
- package/dist/ysyt-agent-sdk.cjs.js +3 -3
- package/dist/ysyt-agent-sdk.esm.js +1 -1
- package/dist/ysyt-agent-sdk.umd.js +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export declare class ApiClient {
|
|
|
11
11
|
_changeState(params: RequestBodyType<{
|
|
12
12
|
state: StateType;
|
|
13
13
|
state_name: string;
|
|
14
|
-
}
|
|
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
|
-
}
|
|
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<{
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentDataType, AgentItemType,
|
|
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 {
|
package/dist/src/utils/http.d.ts
CHANGED
|
@@ -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
|