@ray-js/ray-ipc-utils 1.1.0-beta-16 → 1.1.0

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 CHANGED
@@ -1,50 +1,4 @@
1
- declare const IpcUtils: {
2
- getCameraConfigInfo: <T>(deviceId: string) => Promise<IRes<T>>;
3
- getCollectionPointsInfo: <T_1>(deviceId: string) => Promise<IRes<T_1>>;
4
- updateCollectionPointsInfo: <T_2>(deviceId: string, id: string, name: string) => Promise<IRes<T_2>>;
5
- delCollectionPointsInfo: <T_3>(deviceId: string, pointData: [{
6
- devId: string;
7
- mpId: string;
8
- }]) => Promise<IRes<T_3>>;
9
- addCollectionPointsInfo: <T_4>(deviceId: string, name: string) => Promise<IRes<T_4>>;
10
- getServiceUrl: <T_5>(deviceId: string, serveType: import("./interface").ServeTpe, paramData?: Record<string, any>, action?: boolean, utm_rtid?: string) => Promise<IRes<T_5>>;
11
- JsonUtil: any;
12
- getInitUtmTid: () => string;
13
- getDevInfo: <T_6>(deviceId: string) => Promise<import("./kit/interface").IRes<T_6>>;
14
- getNativeStorage: <T_7>(key: string) => Promise<import("./kit/interface").IRes<T_7>>;
15
- setNativeStorage: <T_8>(key: string, data: string) => Promise<import("./kit/interface").IRes<T_8>>;
16
- removeNativeStorage: <T_9>(key: string) => Promise<import("./kit/interface").IRes<T_9>>;
17
- publishDps: <T_10>(deviceId: string, dps: any) => Promise<import("./kit/interface").IRes<T_10>>;
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
- networkStatusDidChangedEvent: (callback: (res: any) => void) => void;
23
- offNetworkStatusDidChangedEvent: (callback: (res: any) => void) => void;
24
- getMobileOrientation: <T_15>() => Promise<import("./kit/interface").IRes<T_15>>;
25
- jumpToWebView: <T_16>(url: string) => Promise<import("./kit/interface").IRes<T_16>>;
26
- setScreenOrientation: <T_17>(pageOrientation: string) => Promise<import("./kit/interface").IRes<T_17>>;
27
- isSupportFloatWindow: <T_18>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_18>>;
28
- openFloatWindow: <T_19>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_19>>;
29
- isSupportedTalk: <T_20>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_20>>;
30
- getCurrentSupportedTalkMode: <T_21>(deviceId: string, extendParam?: {}) => Promise<import("./kit/interface").IRes<T_21>>;
31
- goToIpcPageNativeRoute: <T_22>(url: string, deviceId: string, theme?: "dark" | "light", extraParams?: {
32
- [key: string]: any;
33
- } | undefined, isGeneral?: false | undefined) => Promise<import("./kit/interface").IRes<T_22>>;
34
- goToGeneralHelpMini: <T_23>() => Promise<import("./kit/interface").IRes<T_23>>;
35
- goToIpcHelpMini: <T_24>(errCode: number, deviceId: string, helpNum: number, helpFeedBack: boolean, brandColor?: string) => Promise<import("./kit/interface").IRes<T_24>>;
36
- getIsSupportedCloudStorageSync: (deviceId: string) => Promise<{
37
- code: number;
38
- data: boolean;
39
- msg?: undefined;
40
- } | {
41
- code: number;
42
- data: boolean;
43
- msg: string | boolean | import("./kit/interface").IApiError | undefined;
44
- }>;
45
- ipcTTTOperatorLog: <T_25>(ipcLogString: string) => Promise<import("./kit/interface").IRes<T_25>>;
46
- requestWifiSignal: <T_26>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_26>>;
47
- wakeUpDevice: <T_27>(deviceId: string, dps?: {}) => Promise<import("./kit/interface").IRes<T_27>>;
48
- useTrafficViewTip: () => boolean;
49
- };
50
- export default IpcUtils;
1
+ export * from './hooks';
2
+ export * from './kit';
3
+ export * from './utils';
4
+ export * from './service';
package/lib/index.js CHANGED
@@ -1,7 +1,4 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import * as hooks from './hooks';
3
- import * as kit from './kit';
4
- import * as utils from './utils';
5
- import * as service from './service';
6
- const IpcUtils = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, hooks), kit), utils), service);
7
- export default IpcUtils;
1
+ export * from './hooks';
2
+ export * from './kit';
3
+ export * from './utils';
4
+ export * from './service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-utils",
3
- "version": "1.1.0-beta-16",
3
+ "version": "1.1.0",
4
4
  "description": "IPC 工具库",
5
5
  "main": "lib/index",
6
6
  "files": [