@ray-js/api 1.7.9 → 1.7.11

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.
Files changed (47) hide show
  1. package/@types/api-cloud.d.ts +12 -24
  2. package/lib/AIKit-1.2.0.d.ts +1 -0
  3. package/lib/BaseKit-3.17.7.d.ts +1 -0
  4. package/lib/BizKit-4.10.4.d.ts +1 -0
  5. package/lib/DeviceKit-4.13.1.d.ts +1 -0
  6. package/lib/HealthKit-6.5.0.d.ts +1 -0
  7. package/lib/HomeKit-3.1.4.d.ts +1 -0
  8. package/lib/IPCKit-6.4.5.d.ts +1 -0
  9. package/lib/MapKit-3.4.13.d.ts +1 -0
  10. package/lib/MediaKit-3.4.1.d.ts +1 -0
  11. package/lib/MiniKit-3.14.1.d.ts +1 -0
  12. package/lib/OutdoorKit-1.0.4.d.ts +1 -0
  13. package/lib/P2PKit-2.0.3.d.ts +1 -0
  14. package/lib/PlayNetKit-1.3.30.d.ts +1 -0
  15. package/lib/cloud/doorlock/offline-pwd.d.ts +1 -1
  16. package/lib/cloud/energy.d.ts +1 -0
  17. package/lib/cloud/gateway.d.ts +1 -0
  18. package/lib/cloud/laser-clean/index.d.ts +1 -1
  19. package/lib/cloud/laser-clean/map.d.ts +1 -0
  20. package/lib/cloud/laser-clean/record.d.ts +1 -0
  21. package/lib/cloud/laser-clean/voice.d.ts +1 -0
  22. package/lib/hideTabBar/index.d.ts +1 -0
  23. package/lib/index.d.ts +1 -0
  24. package/lib/lifecycles/offAppEvent/index.d.ts +1 -0
  25. package/lib/lifecycles/offAppHide/index.d.ts +1 -0
  26. package/lib/lifecycles/offAppShow/index.d.ts +1 -0
  27. package/lib/lifecycles/offError/index.d.ts +1 -0
  28. package/lib/lifecycles/offThemeChange/index.d.ts +1 -0
  29. package/lib/lifecycles/offWindowResize/index.d.ts +1 -0
  30. package/lib/lifecycles/onAppEvent/index.d.ts +1 -0
  31. package/lib/lifecycles/onAppHide/index.d.ts +1 -0
  32. package/lib/lifecycles/onAppShow/index.d.ts +1 -0
  33. package/lib/lifecycles/onError/index.d.ts +1 -0
  34. package/lib/lifecycles/onPageNotFound/index.d.ts +1 -0
  35. package/lib/lifecycles/onThemeChange/index.d.ts +1 -0
  36. package/lib/lifecycles/onWindowResize/index.d.ts +1 -0
  37. package/lib/navigateBack/index.d.ts +1 -0
  38. package/lib/navigateTo/index.d.ts +1 -0
  39. package/lib/reLaunch/index.d.ts +1 -0
  40. package/lib/redirectTo/index.d.ts +1 -0
  41. package/lib/requestCloud/index.d.ts +1 -0
  42. package/lib/setNavigationBarColor/index.d.ts +1 -0
  43. package/lib/setNavigationBarTitle/index.d.ts +1 -0
  44. package/lib/showTabBar/index.d.ts +1 -0
  45. package/lib/switchTab/index.d.ts +1 -0
  46. package/lib/viewAPI.d.ts +1 -0
  47. package/package.json +5 -5
@@ -12,9 +12,7 @@ declare namespace ty {
12
12
  * 删除历史地图
13
13
  * @returns 删除历史地图结果的 Promise
14
14
  */
15
- function deleteMultipleMapFiles(
16
- params: DeleteMultipleMapFilesParams
17
- ): Promise<DeleteMultipleMapFilesResponse>;
15
+ export function deleteMultipleMapFiles(params: DeleteMultipleMapFilesParams): Promise<DeleteMultipleMapFilesResponse>;
18
16
 
19
17
  // #region 获取云存储配置
20
18
  type GetSweeperStorageConfigParams = {
@@ -48,8 +46,8 @@ declare namespace ty {
48
46
  * 获取云存储配置
49
47
  * @returns 获取云存储配置结果的 Promise
50
48
  */
51
- function getSweeperStorageConfig(
52
- params: GetSweeperStorageConfigParams
49
+ export function getSweeperStorageConfig(
50
+ params: GetSweeperStorageConfigParams,
53
51
  ): Promise<GetSweeperStorageConfigResponse>;
54
52
 
55
53
  // #region 获取扫地机的历史地图
@@ -75,9 +73,7 @@ declare namespace ty {
75
73
  * 获取扫地机的历史地图
76
74
  * @returns 获取扫地机的历史地图结果的 Promise
77
75
  */
78
- export function getMultipleMapFiles(
79
- params: GetMultipleMapFilesParams
80
- ): Promise<GetMultipleMapFilesResponse>;
76
+ export function getMultipleMapFiles(params: GetMultipleMapFilesParams): Promise<GetMultipleMapFilesResponse>;
81
77
 
82
78
  // #region 获取清扫记录列表
83
79
  type GetCleaningRecordsParams = {
@@ -102,9 +98,7 @@ declare namespace ty {
102
98
  totalCount: number; // 清扫记录总长度
103
99
  };
104
100
 
105
- export function getCleaningRecords(
106
- params: GetCleaningRecordsParams
107
- ): Promise<GetCleaningRecordsResponse>;
101
+ export function getCleaningRecords(params: GetCleaningRecordsParams): Promise<GetCleaningRecordsResponse>;
108
102
 
109
103
  // #region 删除清扫记录
110
104
  type DeleteCleaningRecordParams = {
@@ -118,9 +112,7 @@ declare namespace ty {
118
112
  * 删除清扫记录
119
113
  * @returns 删除清扫记录结果的 Promise
120
114
  */
121
- function deleteCleaningRecord(
122
- params: DeleteCleaningRecordParams
123
- ): Promise<DeleteCleaningRecordResponse>;
115
+ export function deleteCleaningRecord(params: DeleteCleaningRecordParams): Promise<DeleteCleaningRecordResponse>;
124
116
 
125
117
  // #region 获取扫地机的语音包列表
126
118
  type GetVoiceListParams = {
@@ -157,7 +149,7 @@ declare namespace ty {
157
149
  * 获取扫地机的语音包列表
158
150
  * @returns 获取扫地机的语音包列表结果的 Promise
159
151
  */
160
- function getVoiceList(params: GetVoiceListParams): Promise<GetVoiceListResponse>;
152
+ export function getVoiceList(params: GetVoiceListParams): Promise<GetVoiceListResponse>;
161
153
 
162
154
  // #region 获取陀螺仪扫地机的清扫记录
163
155
  type GetGyroCleanRecordsParams = {
@@ -179,9 +171,7 @@ declare namespace ty {
179
171
  * 获取陀螺仪扫地机的清扫记录
180
172
  * @returns 获取陀螺仪扫地机的清扫记录结果的 Promise
181
173
  */
182
- function getGyroCleanRecords(
183
- params: GetGyroCleanRecordsParams
184
- ): Promise<GetGyroCleanRecordsResponse>;
174
+ export function getGyroCleanRecords(params: GetGyroCleanRecordsParams): Promise<GetGyroCleanRecordsResponse>;
185
175
 
186
176
  // #endregion
187
177
 
@@ -207,8 +197,8 @@ declare namespace ty {
207
197
  * 获取陀螺仪扫地机的清扫记录详情
208
198
  * @returns 获取陀螺仪扫地机的清扫记录详情结果的 Promise
209
199
  */
210
- function getGyroCleanRecordDetail(
211
- params: GetGyroCleanRecordDetailParams
200
+ export function getGyroCleanRecordDetail(
201
+ params: GetGyroCleanRecordDetailParams,
212
202
  ): Promise<GetGyroCleanRecordDetailResponse>;
213
203
 
214
204
  // #region 获取扫地机的历史地图
@@ -233,9 +223,7 @@ declare namespace ty {
233
223
  * 获取陀螺仪扫地机的最新清扫地图
234
224
  * @returns 获取陀螺仪扫地机的最新清扫地图结果的 Promise
235
225
  */
236
- function getGyroLatestCleanMap(
237
- params: GetGyroLatestCleanMapParams
238
- ): Promise<GetGyroLatestCleanMapResponse>;
226
+ export function getGyroLatestCleanMap(params: GetGyroLatestCleanMapParams): Promise<GetGyroLatestCleanMapResponse>;
239
227
 
240
228
  // #endregion
241
229
 
@@ -252,7 +240,7 @@ declare namespace ty {
252
240
  * 修改扫地机历史地图名称
253
241
  * @returns 修改扫地机历史地图名称结果的 Promise
254
242
  */
255
- function renameHistoryMap(params: RenameHistoryMapParams): Promise<RenameHistoryMapResponse>;
243
+ export function renameHistoryMap(params: RenameHistoryMapParams): Promise<RenameHistoryMapResponse>;
256
244
 
257
245
  // #endregion
258
246
  }
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/AIKit.d.ts" />
1
2
  export declare const ai: {
2
3
  getTranslateRecords: typeof ty.ai.getTranslateRecords;
3
4
  getTranslateRecord: typeof ty.ai.getTranslateRecord;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/BaseKit.d.ts" />
1
2
  export declare const stopAccelerometer: typeof ty.stopAccelerometer;
2
3
  export declare const startAccelerometer: typeof ty.startAccelerometer;
3
4
  export declare const getAudioFileDuration: typeof ty.getAudioFileDuration;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/BizKit.d.ts" />
1
2
  export declare const apiRequestByAtop: typeof ty.apiRequestByAtop;
2
3
  export declare const event: typeof ty.event;
3
4
  export declare const beginEvent: typeof ty.beginEvent;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/DeviceKit.d.ts" />
1
2
  export declare const unregisterLeaveBeaconFenceEvent: typeof ty.device.unregisterLeaveBeaconFenceEvent;
2
3
  export declare const registerLeaveBeaconFenceEvent: typeof ty.device.registerLeaveBeaconFenceEvent;
3
4
  export declare const writeBeaconFenceConfig: typeof ty.device.writeBeaconFenceConfig;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/HealthKit.d.ts" />
1
2
  export declare const health: {
2
3
  getHealthConnectStatus: typeof ty.health.getHealthConnectStatus;
3
4
  getHealthConnectStatusSync: typeof ty.health.getHealthConnectStatusSync;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/HomeKit.d.ts" />
1
2
  export declare const home: {
2
3
  getCurrentHomeInfo: typeof ty.home.getCurrentHomeInfo;
3
4
  getDeviceIdList: typeof ty.home.getDeviceIdList;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/IPCKit.d.ts" />
1
2
  export declare const ipc: {
2
3
  acceptDoorbellCall: typeof ty.ipc.acceptDoorbellCall;
3
4
  cancelDownloadCloudPlayBack: typeof ty.ipc.cancelDownloadCloudPlayBack;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/MapKit.d.ts" />
1
2
  export declare const map: {
2
3
  chooseLocation: typeof ty.map.chooseLocation;
3
4
  getLocation: typeof ty.map.getLocation;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/MediaKit.d.ts" />
1
2
  export declare const media: {
2
3
  getRGBAudioManager: typeof ty.media.getRGBAudioManager;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/MiniKit.d.ts" />
1
2
  export declare const nativeDisabled: typeof ty.nativeDisabled;
2
3
  export declare const nativeInovke: typeof ty.nativeInovke;
3
4
  export declare const getPermissionConfig: typeof ty.getPermissionConfig;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/OutdoorKit.d.ts" />
1
2
  export declare const outdoor: {
2
3
  bindSlaveDevice: typeof ty.outdoor.bindSlaveDevice;
3
4
  currentDevice: typeof ty.outdoor.currentDevice;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/P2PKit.d.ts" />
1
2
  export declare const p2p: {
2
3
  P2PSDKInit: typeof ty.p2p.P2PSDKInit;
3
4
  deInitSDK: typeof ty.p2p.deInitSDK;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/PlayNetKit.d.ts" />
1
2
  export declare const playnet: {
2
3
  analysisMatterQRCode: typeof ty.playnet.analysisMatterQRCode;
3
4
  autoConnectToAp: typeof ty.playnet.autoConnectToAp;
@@ -58,4 +58,4 @@ type RevocablePwdResult = RevocablePwdResultEntry[];
58
58
  * @returns {Promise<RevocablePwdResult>} - 响应结果的 Promise
59
59
  */
60
60
  declare const getRevocableOfflinePasswords: (params: RevocablePwdParams) => Promise<RevocablePwdResult>;
61
- export { getOfflinePassword, revokeOfflinePassword, updateOfflinePasswordName, getRevocableOfflinePasswords, };
61
+ export { getOfflinePassword, revokeOfflinePassword, updateOfflinePasswordName, getRevocableOfflinePasswords };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/energy.d.ts" />
1
2
  export declare const energy: {
2
3
  getDeviceDataMultipleSum: typeof ty.energy.getDeviceDataMultipleSum;
3
4
  getInverterDeviceInfo: typeof ty.energy.getInverterDeviceInfo;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/gateway.d.ts" />
1
2
  export declare const gateway: {
2
3
  sendCmdForRefreshDeviceLQI: typeof ty.gateway.sendCmdForRefreshDeviceLQI;
3
4
  getLastDeviceLQI: typeof ty.gateway.getLastDeviceLQI;
@@ -1,3 +1,3 @@
1
- export { getCleaningRecords, deleteCleaningRecord, getGyroCleanRecords, getGyroCleanRecordDetail, } from './record';
1
+ export { getCleaningRecords, deleteCleaningRecord, getGyroCleanRecords, getGyroCleanRecordDetail } from './record';
2
2
  export { getVoiceList } from './voice';
3
3
  export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap, renameHistoryMap, } from './map';
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
1
2
  declare const getMultipleMapFiles: typeof ty.getMultipleMapFiles;
2
3
  declare const getSweeperStorageConfig: typeof ty.getSweeperStorageConfig;
3
4
  declare const deleteMultipleMapFiles: typeof ty.deleteMultipleMapFiles;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
1
2
  declare const getCleaningRecords: typeof ty.getCleaningRecords;
2
3
  declare const deleteCleaningRecord: typeof ty.deleteCleaningRecord;
3
4
  declare const getGyroCleanRecords: typeof ty.getGyroCleanRecords;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../../@types/api-cloud.d.ts" />
1
2
  declare const getVoiceList: typeof ty.getVoiceList;
2
3
  export { getVoiceList };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: (arg?: {
2
3
  animation?: boolean;
3
4
  } & {
package/lib/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/api.d.ts" />
1
2
  export * from './constants';
2
3
  export * from './all-kits';
3
4
  export declare const health: {
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offAppEvent: typeof ty.offAppEvent;
2
3
  export default offAppEvent;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offAppHide: typeof ty.offAppHide;
2
3
  export default offAppHide;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offAppShow: typeof ty.offAppShow;
2
3
  export default offAppShow;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offError: typeof ty.offError;
2
3
  export default offError;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offThemeChange: typeof ty.offThemeChange;
2
3
  export default offThemeChange;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const offWindowResize: typeof ty.offWindowResize;
2
3
  export default offWindowResize;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onAppEvent: typeof ty.onAppEvent;
2
3
  export default onAppEvent;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onAppHide: typeof ty.onAppHide;
2
3
  export default onAppHide;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onAppShow: typeof ty.onAppShow;
2
3
  export default onAppShow;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onError: typeof ty.onError;
2
3
  export default onError;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onPageNotFound: typeof ty.onPageNotFound;
2
3
  export default onPageNotFound;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onThemeChange: typeof ty.onThemeChange;
2
3
  export default onThemeChange;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const onWindowResize: typeof ty.onWindowResize;
2
3
  export default onWindowResize;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: typeof ty.navigateBack;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const navigateTo: typeof ty.navigateTo;
2
3
  export default navigateTo;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const reLaunch: typeof ty.reLaunch;
2
3
  export default reLaunch;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const redirectTo: typeof ty.redirectTo;
2
3
  export default redirectTo;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const requestCloud: typeof ty.requestCloud;
2
3
  export default requestCloud;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: typeof ty.setNavigationBarColor;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: typeof ty.setNavigationBarTitle;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: (arg?: {
2
3
  animation?: boolean;
3
4
  } & {
@@ -1,2 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: typeof ty.switchTab;
2
3
  export default _default;
package/lib/viewAPI.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/api.d.ts" />
1
2
  export declare const env: ty.env;
2
3
  export declare const createAnimation: typeof ty.createAnimation;
3
4
  export declare const pageScrollTo: typeof ty.pageScrollTo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.7.9",
3
+ "version": "1.7.11",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.7.9",
33
- "@ray-js/router": "1.7.9",
32
+ "@ray-js/framework": "1.7.11",
33
+ "@ray-js/router": "1.7.11",
34
34
  "@ray-js/wechat": "^0.3.8",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.7.9",
39
+ "@ray-js/cli": "1.7.11",
40
40
  "art-template": "^4.13.4",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.3",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "d39e56928dfec12ff41e0f9d81c3987334c2d650"
49
+ "gitHead": "cc1011f0c0f92cd5929ab2c80c555d46cb2fc6d1"
50
50
  }