@ray-js/ray-ipc-utils 1.1.0-beta-8 → 1.1.0-beta-9
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/lib/index.d.ts +17 -17
- package/lib/kit/device/index.js +1 -0
- package/lib/kit/ipc/index.d.ts +5 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -15,23 +15,23 @@ declare const IpcUtils: {
|
|
|
15
15
|
setNativeStorage: <T_8>(key: string, data: T_8) => Promise<import("./kit/interface").IRes<T_8>>;
|
|
16
16
|
removeNativeStorage: <T_9>(key: string) => Promise<import("./kit/interface").IRes<T_9>>;
|
|
17
17
|
publishDps: <T_10>(deviceId: string, dps: any) => Promise<import("./kit/interface").IRes<T_10>>;
|
|
18
|
-
getDpStateValue: (deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<
|
|
19
|
-
getDpIdByCode: (deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<
|
|
20
|
-
goToMiniProgramByShortLink: <
|
|
21
|
-
getVideoBitrateKbps: <
|
|
18
|
+
getDpStateValue: <T_11>(deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<T_11>>;
|
|
19
|
+
getDpIdByCode: <T_12>(deviceId: string, dpCode: string) => Promise<import("./kit/interface").IRes<T_12>>;
|
|
20
|
+
goToMiniProgramByShortLink: <T_13>(url: string, position?: string) => Promise<import("./kit/interface").IRes<T_13>>;
|
|
21
|
+
getVideoBitrateKbps: <T_14>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_14>>;
|
|
22
22
|
networkStatusDidChangedEvent: (callback: any) => void;
|
|
23
|
-
getMobileOrientation: <
|
|
24
|
-
jumpToWebView: <
|
|
25
|
-
setScreenOrientation: <
|
|
26
|
-
isSupportFloatWindow: <
|
|
27
|
-
openFloatWindow: <
|
|
28
|
-
isSupportedTalk: <
|
|
29
|
-
getCurrentSupportedTalkMode: <
|
|
30
|
-
goToIpcPageNativeRoute: (url: string, deviceId: string, theme?: "dark" | "light", extraParams?: {
|
|
23
|
+
getMobileOrientation: <T_15>() => Promise<import("./kit/interface").IRes<T_15>>;
|
|
24
|
+
jumpToWebView: <T_16>(url: string) => Promise<import("./kit/interface").IRes<T_16>>;
|
|
25
|
+
setScreenOrientation: <T_17>(pageOrientation: string) => Promise<import("./kit/interface").IRes<T_17>>;
|
|
26
|
+
isSupportFloatWindow: <T_18>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_18>>;
|
|
27
|
+
openFloatWindow: <T_19>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_19>>;
|
|
28
|
+
isSupportedTalk: <T_20>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_20>>;
|
|
29
|
+
getCurrentSupportedTalkMode: <T_21>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_21>>;
|
|
30
|
+
goToIpcPageNativeRoute: <T_22>(url: string, deviceId: string, theme?: "dark" | "light", extraParams?: {
|
|
31
31
|
[key: string]: any;
|
|
32
|
-
} | undefined, isGeneral?: false | undefined) => Promise<import("./kit/interface").IRes<
|
|
33
|
-
goToGeneralHelpMini: () => Promise<import("./kit/interface").IRes<
|
|
34
|
-
goToIpcHelpMini: (errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<import("./kit/interface").IRes<
|
|
32
|
+
} | undefined, isGeneral?: false | undefined) => Promise<import("./kit/interface").IRes<T_22>>;
|
|
33
|
+
goToGeneralHelpMini: <T_23>() => Promise<import("./kit/interface").IRes<T_23>>;
|
|
34
|
+
goToIpcHelpMini: <T_24>(errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<import("./kit/interface").IRes<T_24>>;
|
|
35
35
|
getIsSupportedCloudStorageSync: (deviceId: string) => Promise<{
|
|
36
36
|
code: number;
|
|
37
37
|
data: boolean;
|
|
@@ -41,8 +41,8 @@ declare const IpcUtils: {
|
|
|
41
41
|
data: boolean;
|
|
42
42
|
msg: string | boolean | import("./kit/interface").IApiError | undefined;
|
|
43
43
|
}>;
|
|
44
|
-
requestWifiSignal: <
|
|
45
|
-
wakeUpDevice: <
|
|
44
|
+
requestWifiSignal: <T_25>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_25>>;
|
|
45
|
+
wakeUpDevice: <T_26>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_26>>;
|
|
46
46
|
useTrafficViewTip: () => boolean;
|
|
47
47
|
};
|
|
48
48
|
export default IpcUtils;
|
package/lib/kit/device/index.js
CHANGED
package/lib/kit/ipc/index.d.ts
CHANGED
|
@@ -34,13 +34,13 @@ export declare const publishDps: <T>(deviceId: string, dps: any) => Promise<IRes
|
|
|
34
34
|
* @param key 保存的key属性
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
export declare const getDpStateValue: (deviceId: string, dpCode: string) => Promise<IRes<T>>;
|
|
37
|
+
export declare const getDpStateValue: <T>(deviceId: string, dpCode: string) => Promise<IRes<T>>;
|
|
38
38
|
/**
|
|
39
39
|
* 根据DPCode获取DpId
|
|
40
40
|
* @param key 保存的key属性
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
|
-
export declare const getDpIdByCode: (deviceId: string, dpCode: string) => Promise<IRes<T>>;
|
|
43
|
+
export declare const getDpIdByCode: <T>(deviceId: string, dpCode: string) => Promise<IRes<T>>;
|
|
44
44
|
/**
|
|
45
45
|
* 通过短链形式跳转小程序
|
|
46
46
|
* @param url 小程序链接
|
|
@@ -106,13 +106,13 @@ export declare const getCurrentSupportedTalkMode: <T>(deviceId: string, extendPa
|
|
|
106
106
|
* @param {boolean} isGeneral 是否为通用页面,IPC原生业务页面不用传, 默认false
|
|
107
107
|
*
|
|
108
108
|
*/
|
|
109
|
-
export declare const goToIpcPageNativeRoute: (url: string, deviceId: string, theme?: 'dark' | 'light', extraParams?: {
|
|
109
|
+
export declare const goToIpcPageNativeRoute: <T>(url: string, deviceId: string, theme?: 'dark' | 'light', extraParams?: {
|
|
110
110
|
[key: string]: any;
|
|
111
111
|
} | undefined, isGeneral?: false) => Promise<IRes<T>>;
|
|
112
112
|
/**
|
|
113
113
|
* 跳转 通用帮助反馈小程序
|
|
114
114
|
*/
|
|
115
|
-
export declare const goToGeneralHelpMini: () => Promise<IRes<T>>;
|
|
115
|
+
export declare const goToGeneralHelpMini: <T>() => Promise<IRes<T>>;
|
|
116
116
|
/**
|
|
117
117
|
* 跳转 Ipc帮助反馈小程序
|
|
118
118
|
* @param {number} errCode 错误码
|
|
@@ -121,7 +121,7 @@ export declare const goToGeneralHelpMini: () => Promise<IRes<T>>;
|
|
|
121
121
|
* @param {boolean} helpFeedBack 是否是反馈
|
|
122
122
|
* @param {string} brandColor 品牌色
|
|
123
123
|
*/
|
|
124
|
-
export declare const goToIpcHelpMini: (errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<IRes<T>>;
|
|
124
|
+
export declare const goToIpcHelpMini: <T>(errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<IRes<T>>;
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
* @param deviceId 设备id
|