@ray-js/api 1.6.0-beta.8 → 1.6.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.
Files changed (81) hide show
  1. package/@types/BaseKit.d.ts +837 -37
  2. package/@types/BizKit.d.ts +1831 -85
  3. package/@types/DeviceKit.d.ts +581 -58
  4. package/@types/HomeKit.d.ts +0 -74
  5. package/@types/MiniKit.d.ts +411 -8
  6. package/@types/api-cloud.d.ts +145 -0
  7. package/@types/api-extend.d.ts +42 -10
  8. package/@types/api.d.ts +3 -0
  9. package/@types/gateway.d.ts +146 -0
  10. package/@types/health.d.ts +309 -0
  11. package/lib/{BaseKit-3.11.0.d.ts → BaseKit-3.14.3.d.ts} +29 -1
  12. package/lib/{BaseKit-3.11.0.js → BaseKit-3.14.3.js} +32 -1
  13. package/lib/BizKit-4.10.4.d.ts +84 -0
  14. package/lib/{BizKit-3.2.7.js → BizKit-4.10.4.js} +46 -5
  15. package/lib/{DeviceKit-3.3.1.d.ts → DeviceKit-4.9.0.d.ts} +22 -1
  16. package/lib/{DeviceKit-3.3.1.js → DeviceKit-4.9.0.js} +66 -0
  17. package/lib/HomeKit-3.1.4.d.ts +0 -1
  18. package/lib/MapKit-3.4.13.d.ts +0 -1
  19. package/lib/{MiniKit-3.1.0.d.ts → MiniKit-3.12.1.d.ts} +11 -1
  20. package/lib/{MiniKit-3.1.0.js → MiniKit-3.12.1.js} +12 -1
  21. package/lib/OutdoorKit-1.0.4.d.ts +0 -1
  22. package/lib/P2PKit-2.0.3.d.ts +0 -1
  23. package/lib/PlayNetKit-1.1.3.d.ts +24 -24
  24. package/lib/all-kits.d.ts +5 -5
  25. package/lib/all-kits.js +5 -5
  26. package/lib/cloud/device.d.ts +3 -3
  27. package/lib/cloud/gateway.d.ts +11 -0
  28. package/lib/cloud/gateway.js +39 -0
  29. package/lib/cloud/health.d.ts +19 -0
  30. package/lib/cloud/health.js +71 -0
  31. package/lib/cloud/index.d.ts +3 -0
  32. package/lib/cloud/index.js +6 -1
  33. package/lib/cloud/interface.d.ts +40 -1
  34. package/lib/cloud/laser-clean/index.d.ts +3 -0
  35. package/lib/cloud/laser-clean/index.js +3 -0
  36. package/lib/cloud/laser-clean/map.d.ts +3 -0
  37. package/lib/cloud/laser-clean/map.js +4 -0
  38. package/lib/cloud/laser-clean/record.d.ts +3 -0
  39. package/lib/cloud/laser-clean/record.js +4 -0
  40. package/lib/cloud/laser-clean/voice.d.ts +2 -0
  41. package/lib/cloud/laser-clean/voice.js +3 -0
  42. package/lib/cloud/recipe/basket.js +1 -0
  43. package/lib/cloud/recipe/custom.js +1 -0
  44. package/lib/cloud/recipe/menu.js +1 -0
  45. package/lib/cloud/recipe/query.js +1 -0
  46. package/lib/cloud/recipe/score.js +1 -0
  47. package/lib/cloud/recipe/star.js +1 -0
  48. package/lib/getBoundingClientRect/index.thing.js +1 -0
  49. package/lib/getBoundingClientRect/index.wechat.js +1 -0
  50. package/lib/getCdnUrl/index.thing.js +13 -8
  51. package/lib/hideTabBar/index.d.ts +4 -5
  52. package/lib/index.d.ts +0 -1
  53. package/lib/navigateBack/index.d.ts +0 -1
  54. package/lib/navigateTo/index.d.ts +0 -1
  55. package/lib/panel/devInfo/index.js +7 -1
  56. package/lib/panel/i18n/index.js +4 -0
  57. package/lib/panel/i18n/index.wechat.js +4 -0
  58. package/lib/panel/publishDps.js +2 -0
  59. package/lib/reLaunch/index.d.ts +0 -1
  60. package/lib/redirectTo/index.d.ts +0 -1
  61. package/lib/redirectTo/index.js +1 -0
  62. package/lib/requestCloud/index.d.ts +0 -1
  63. package/lib/setNavigationBarColor/index.d.ts +0 -1
  64. package/lib/setNavigationBarTitle/index.d.ts +0 -1
  65. package/lib/showTabBar/index.d.ts +4 -5
  66. package/lib/switchTab/index.d.ts +0 -1
  67. package/lib/utils.wechat.js +1 -0
  68. package/lib/viewAPI.d.ts +1 -1
  69. package/lib/viewAPI.js +2 -1
  70. package/package.json +8 -8
  71. package/lib/BizKit-3.2.7.d.ts +0 -46
  72. package/lib/cloud/doorlock/README.md +0 -62
  73. package/lib/cloud/doorlock/auth.md +0 -323
  74. package/lib/cloud/doorlock/device.md +0 -265
  75. package/lib/cloud/doorlock/log.md +0 -153
  76. package/lib/cloud/doorlock/member-opmode.md +0 -279
  77. package/lib/cloud/doorlock/member.md +0 -276
  78. package/lib/cloud/doorlock/offline-pwd.md +0 -155
  79. package/lib/cloud/doorlock/temp-pwd.md +0 -362
  80. package/lib/cloud/doorlock/unlock-method.md +0 -121
  81. package/lib/cloud/doorlock/unlock.md +0 -222
@@ -8,3 +8,6 @@ export * from './remoteGroup';
8
8
  export * from './outdoor';
9
9
  export * from './doorlock';
10
10
  export * from './recipe';
11
+ export * from './laser-clean';
12
+ export * from './health';
13
+ export * from './gateway';
@@ -12,4 +12,9 @@ export * from './outdoor';
12
12
  // 门锁
13
13
  export * from './doorlock';
14
14
  // 菜谱
15
- export * from './recipe';
15
+ export * from './recipe';
16
+
17
+ // 激光清洁
18
+ export * from './laser-clean';
19
+ export * from './health';
20
+ export * from './gateway';
@@ -1268,7 +1268,40 @@ export interface IGetDevProperty {
1268
1268
  */
1269
1269
  code: string;
1270
1270
  }
1271
- export type IGetDevPropertyResponse = string;
1271
+ export type IGetDevPropertyResponse = Array<{
1272
+ /**
1273
+ * 业务类型
1274
+ */
1275
+ bizType: number;
1276
+ /**
1277
+ * 设备自定义属性 key
1278
+ */
1279
+ code: string;
1280
+ /**
1281
+ * 设备 ID
1282
+ */
1283
+ devId: string;
1284
+ /**
1285
+ * 创建时间
1286
+ */
1287
+ gmtCreate: number;
1288
+ /**
1289
+ * 修改时间
1290
+ */
1291
+ gmtModified: number;
1292
+ /**
1293
+ * 唯一标识
1294
+ */
1295
+ id: string;
1296
+ /**
1297
+ * 保存设备属性时的配置规则
1298
+ */
1299
+ type: string;
1300
+ /**
1301
+ * 属性值
1302
+ */
1303
+ value: string;
1304
+ }>;
1272
1305
  export interface ISaveDevProperty {
1273
1306
  /**
1274
1307
  * 设备 ID
@@ -1282,6 +1315,12 @@ export interface ISaveDevProperty {
1282
1315
  * 设备自定义属性列表,string 结构详见 @type{DeviceProperty}
1283
1316
  */
1284
1317
  propertyList: string;
1318
+ /**
1319
+ * 保存设备属性的配置规则,仅针对当前写入的属性有效,
1320
+ * 默认在设备重置和设备重置并清除数据时均会移除
1321
+ * 可以配置成 `remainAfterReset` 代表在设备重置时保留数据,仅在设备重置并清除数据时移除
1322
+ */
1323
+ type?: 'remainAfterReset' | string;
1285
1324
  }
1286
1325
  export interface DeviceProperty {
1287
1326
  /**
@@ -0,0 +1,3 @@
1
+ export { getCleaningRecords, deleteCleaningRecord } from './record';
2
+ export { getVoiceList } from './voice';
3
+ export { getMultipleMapFiles, getSweeperStorageConfig } from './map';
@@ -0,0 +1,3 @@
1
+ export { getCleaningRecords, deleteCleaningRecord } from './record';
2
+ export { getVoiceList } from './voice';
3
+ export { getMultipleMapFiles, getSweeperStorageConfig } from './map';
@@ -0,0 +1,3 @@
1
+ declare const getMultipleMapFiles: typeof ty.getMultipleMapFiles;
2
+ declare const getSweeperStorageConfig: typeof ty.getSweeperStorageConfig;
3
+ export { getMultipleMapFiles, getSweeperStorageConfig };
@@ -0,0 +1,4 @@
1
+ import { factory } from '../../utils';
2
+ const getMultipleMapFiles = factory('getMultipleMapFiles');
3
+ const getSweeperStorageConfig = factory('getSweeperStorageConfig');
4
+ export { getMultipleMapFiles, getSweeperStorageConfig };
@@ -0,0 +1,3 @@
1
+ declare const getCleaningRecords: typeof ty.getCleaningRecords;
2
+ declare const deleteCleaningRecord: typeof ty.deleteCleaningRecord;
3
+ export { getCleaningRecords, deleteCleaningRecord };
@@ -0,0 +1,4 @@
1
+ import { factory } from '../../utils';
2
+ const getCleaningRecords = factory('getCleaningRecords');
3
+ const deleteCleaningRecord = factory('deleteCleaningRecord');
4
+ export { getCleaningRecords, deleteCleaningRecord };
@@ -0,0 +1,2 @@
1
+ declare const getVoiceList: typeof ty.getVoiceList;
2
+ export { getVoiceList };
@@ -0,0 +1,3 @@
1
+ import { factory } from '../../utils';
2
+ const getVoiceList = factory('getVoiceList');
3
+ export { getVoiceList };
@@ -5,6 +5,7 @@ const _excluded = ["foodList"],
5
5
  _excluded3 = ["foodList"],
6
6
  _excluded4 = ["foodList"],
7
7
  _excluded5 = ["foodList"];
8
+ import "core-js/modules/es.json.stringify.js";
8
9
  // #region 获取菜篮子开关
9
10
 
10
11
  import { THING } from '../../constants';
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
3
3
  const _excluded = ["query"],
4
4
  _excluded2 = ["menuCustom"],
5
5
  _excluded3 = ["menuCustom"];
6
+ import "core-js/modules/es.json.stringify.js";
6
7
  import { THING } from '../../constants';
7
8
  import requestCloud from '../../requestCloud';
8
9
  // #region 自定义食谱列表
@@ -2,6 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["query"],
4
4
  _excluded2 = ["like"];
5
+ import "core-js/modules/es.json.stringify.js";
5
6
  import { THING } from '../../constants';
6
7
  import requestCloud from '../../requestCloud';
7
8
  // #region 食谱列表
@@ -1,6 +1,7 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["query"];
4
+ import "core-js/modules/es.json.stringify.js";
4
5
  import { THING } from '../../constants';
5
6
  import requestCloud from '../../requestCloud';
6
7
 
@@ -2,6 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["scoreInfo"],
4
4
  _excluded2 = ["query"];
5
+ import "core-js/modules/es.json.stringify.js";
5
6
  import { THING } from '../../constants';
6
7
  import requestCloud from '../../requestCloud';
7
8
  // #region 用户添加评分
@@ -1,6 +1,7 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  const _excluded = ["query"];
4
+ import "core-js/modules/es.json.stringify.js";
4
5
  import { THING } from '../../constants';
5
6
  import requestCloud from '../../requestCloud';
6
7
  // #region 获取食谱收藏列表
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.regexp.exec.js";
1
2
  export default function getBoundingClientRect(ref) {
2
3
  return new Promise(resolve => {
3
4
  ref.boundingClientRect(rect => {
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.regexp.exec.js";
1
2
  export default function getBoundingClientRect(ref) {
2
3
  return new Promise(resolve => {
3
4
  ref.boundingClientRect(rect => {
@@ -7,11 +7,22 @@ const regionMap = {
7
7
  WE: 'd2h2yqnfpu4gl5.cdn5th.com',
8
8
  UE: 'usimagesd1448c85ulz2o4.cdn5th.com'
9
9
  };
10
- let regionCode = 'EU';
10
+ let _regionCode;
11
+ let getInternalRegionCode = () => {
12
+ if (!_regionCode) {
13
+ ty.getAppInfo({
14
+ success: function (res) {
15
+ _regionCode = res.regionCode;
16
+ }
17
+ });
18
+ }
19
+ return 'EU';
20
+ };
11
21
  export function getRegionCode() {
12
22
  return new Promise((resolve, reject) => {
13
23
  ty.getAppInfo({
14
24
  success: function (res) {
25
+ _regionCode = res.regionCode;
15
26
  resolve(res.regionCode);
16
27
  },
17
28
  fail: function (err) {
@@ -20,11 +31,6 @@ export function getRegionCode() {
20
31
  });
21
32
  });
22
33
  }
23
- ty.getAppInfo({
24
- success: function (res) {
25
- regionCode = res.regionCode;
26
- }
27
- });
28
34
  export default function getCdnUrl(path, cdnMap, region) {
29
35
  if (!cdnMap) {
30
36
  console.warn('请传入cdnMap');
@@ -35,8 +41,7 @@ export default function getCdnUrl(path, cdnMap, region) {
35
41
  console.warn('[App] cdn "' + path + '" is not exist.');
36
42
  return path;
37
43
  }
38
- const cdnPath = 'https://' + regionMap[region || regionCode] + '/' + cdnShortPath;
39
- return cdnPath;
44
+ return 'https://' + regionMap[region || getInternalRegionCode()] + '/' + cdnShortPath;
40
45
  }
41
46
  export async function getCdnUrlAsync(path, cdnMap, region) {
42
47
  if (!cdnMap) {
@@ -1,9 +1,8 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: (arg?: {
3
- animation?: boolean | undefined;
2
+ animation?: boolean;
4
3
  } & {
5
- success?: ((S?: any) => void) | undefined;
6
- fail?: ((F?: any) => void) | undefined;
7
- complete?: ((C?: any) => void) | undefined;
4
+ success?: (S?: any) => void;
5
+ fail?: (F?: any) => void;
6
+ complete?: (C?: any) => void;
8
7
  } & import("../core").PromisifyArgs<any, any>) => Promise<any>;
9
8
  export default _default;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="../@types/api.d.ts" />
2
1
  export * from './constants';
3
2
  export * from './all-kits';
4
3
  export * from './lifecycles';
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: typeof ty.navigateBack;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const navigateTo: typeof ty.navigateTo;
3
2
  export default navigateTo;
@@ -1,4 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import "core-js/modules/esnext.iterator.constructor.js";
3
+ import "core-js/modules/esnext.iterator.for-each.js";
2
4
  import { getDeviceInfo, getLaunchOptionsSync, getGroupInfo, registerDeviceListListener, registerGroupChange, exitMiniProgram, subscribeDeviceRemoved, onDeviceRemoved } from '../../all-kits';
3
5
  import { useEffect } from 'react';
4
6
  import getApp from '../../getApp';
@@ -166,11 +168,15 @@ export async function initPanelEnvironment() {
166
168
  initPanel(getLaunchOptionsSync());
167
169
  }, 3000);
168
170
  // 基础库版本需要大于 2.6.0
171
+
172
+ // @ts-ignore
173
+ const __AppOnReady = App.onReady;
169
174
  // @ts-ignore
170
175
  App.onReady = event => {
176
+ typeof __AppOnReady === 'function' && __AppOnReady(event);
171
177
  init = true;
172
178
  clearTimeout(timeout);
173
- initPanel(event);
179
+ initPanel(getLaunchOptionsSync());
174
180
  };
175
181
 
176
182
  // 使用 Promise 确保业务可以通过 initPanelEnvironment 的正常调用明确设备信息初始化完成
@@ -1,4 +1,8 @@
1
+ import "core-js/modules/es.regexp.constructor.js";
2
+ import "core-js/modules/es.regexp.dot-all.js";
3
+ import "core-js/modules/es.regexp.exec.js";
1
4
  import "core-js/modules/es.string.replace.js";
5
+ import "core-js/modules/esnext.iterator.map.js";
2
6
  import { requestCloud, getSystemInfoSync, THING } from '../..';
3
7
  import { getBitValue } from '../utils';
4
8
 
@@ -1,4 +1,8 @@
1
+ import "core-js/modules/es.regexp.constructor.js";
2
+ import "core-js/modules/es.regexp.dot-all.js";
3
+ import "core-js/modules/es.regexp.exec.js";
1
4
  import "core-js/modules/es.string.replace.js";
5
+ import "core-js/modules/esnext.iterator.map.js";
2
6
  import { requestCloud, getSystemInfoSync, THING } from '../..';
3
7
  import { getBitValue } from '../utils';
4
8
 
@@ -1,4 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import "core-js/modules/esnext.iterator.constructor.js";
3
+ import "core-js/modules/esnext.iterator.for-each.js";
2
4
  import { publishDpsBase } from '../..';
3
5
  import { getDevInfo } from './devInfo';
4
6
  const DEFAULT_OPTIONS = {
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const reLaunch: typeof ty.reLaunch;
3
2
  export default reLaunch;
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const redirectTo: typeof ty.redirectTo;
3
2
  export default redirectTo;
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.regexp.exec.js";
1
2
  import "core-js/modules/es.string.replace.js";
2
3
  /// <reference path="../../@types/api.d.ts" />
3
4
 
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const requestCloud: typeof ty.requestCloud;
3
2
  export default requestCloud;
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: typeof ty.setNavigationBarColor;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: typeof ty.setNavigationBarTitle;
3
2
  export default _default;
@@ -1,9 +1,8 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: (arg?: {
3
- animation?: boolean | undefined;
2
+ animation?: boolean;
4
3
  } & {
5
- success?: ((S?: any) => void) | undefined;
6
- fail?: ((F?: any) => void) | undefined;
7
- complete?: ((C?: any) => void) | undefined;
4
+ success?: (S?: any) => void;
5
+ fail?: (F?: any) => void;
6
+ complete?: (C?: any) => void;
8
7
  } & import("../core").PromisifyArgs<any, any>) => Promise<any>;
9
8
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference path="../../@types/api.d.ts" />
2
1
  declare const _default: typeof ty.switchTab;
3
2
  export default _default;
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.regexp.exec.js";
1
2
  // @ts-ignore
2
3
  import * as tyWx from '@ray-js/wechat';
3
4
  import { stringifyUrl as _stringifyUrl, parseUrl as _parseUrl } from 'query-string';
package/lib/viewAPI.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="../@types/api.d.ts" />
2
1
  export declare const env: ty.env;
3
2
  export declare const createAnimation: typeof ty.createAnimation;
4
3
  export declare const pageScrollTo: typeof ty.pageScrollTo;
@@ -13,3 +12,4 @@ export declare const createMapContext: typeof ty.createMapContext;
13
12
  export declare const createIpcPlayerContext: typeof ty.createIpcPlayerContext;
14
13
  export declare const createCameraContext: typeof ty.createCameraContext;
15
14
  export declare const createWebviewContext: typeof ty.createWebviewContext;
15
+ export declare const connectSocket: typeof ty.connectSocket;
package/lib/viewAPI.js CHANGED
@@ -14,4 +14,5 @@ export const createNativeVideoContext = factory('createNativeVideoContext');
14
14
  export const createMapContext = factory('createMapContext');
15
15
  export const createIpcPlayerContext = factory('createIpcPlayerContext');
16
16
  export const createCameraContext = factory('createCameraContext');
17
- export const createWebviewContext = factory('createWebviewContext');
17
+ export const createWebviewContext = factory('createWebviewContext');
18
+ export const connectSocket = factory('connectSocket');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.0-beta.8",
3
+ "version": "1.6.0",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,22 +29,22 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "^1.6.0-beta.8",
33
- "@ray-js/router": "^1.6.0-beta.8",
34
- "@ray-js/wechat": "^0.2.9",
32
+ "@ray-js/framework": "1.6.0",
33
+ "@ray-js/router": "1.6.0",
34
+ "@ray-js/wechat": "^0.2.19",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "^1.6.0-beta.8",
39
+ "@ray-js/cli": "1.6.0",
40
40
  "art-template": "^4.13.2",
41
41
  "fs-extra": "^10.1.0",
42
- "miniprogram-api-typings": "^3.12.2",
42
+ "miniprogram-api-typings": "^3.12.3",
43
43
  "react": "^17.0.2"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
47
- "registry": "https://registry.npmjs.org"
47
+ "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "b1d4118961bba4f3f2a889ec5bb9444d165df0dc"
49
+ "gitHead": "b5b10947abcec036f88b73320491fb4e0a4cbe52"
50
50
  }
@@ -1,46 +0,0 @@
1
- /// <reference path="../@types/BizKit.d.ts" />
2
- export declare const apiRequestByAtop: typeof ty.apiRequestByAtop;
3
- export declare const event: typeof ty.event;
4
- export declare const beginEvent: typeof ty.beginEvent;
5
- export declare const trackEvent: typeof ty.trackEvent;
6
- export declare const endEvent: typeof ty.endEvent;
7
- export declare const getAppInfo: typeof ty.getAppInfo;
8
- export declare const getCurrentWifiSSID: typeof ty.getCurrentWifiSSID;
9
- export declare const openCountrySelectPage: typeof ty.openCountrySelectPage;
10
- export declare const getIconfontInfo: typeof ty.getIconfontInfo;
11
- export declare const uploadImage: typeof ty.uploadImage;
12
- export declare const getLangKey: typeof ty.getLangKey;
13
- export declare const getLangContent: typeof ty.getLangContent;
14
- export declare const openRNPanel: typeof ty.openRNPanel;
15
- export declare const openPanel: typeof ty.openPanel;
16
- export declare const preloadPanel: typeof ty.preloadPanel;
17
- export declare const openInnerH5: typeof ty.openInnerH5;
18
- export declare const openAppSystemSettingPage: typeof ty.openAppSystemSettingPage;
19
- export declare const openSystemSettingPage: typeof ty.openSystemSettingPage;
20
- export declare const emitChannel: typeof ty.emitChannel;
21
- export declare const router: typeof ty.router;
22
- export declare const canIUseRouter: typeof ty.canIUseRouter;
23
- export declare const goDeviceDetail: typeof ty.goDeviceDetail;
24
- export declare const goDeviceAlarm: typeof ty.goDeviceAlarm;
25
- export declare const share: typeof ty.share;
26
- export declare const getShareChannelList: typeof ty.getShareChannelList;
27
- export declare const getUserInfo: typeof ty.getUserInfo;
28
- export declare const resizeImage: typeof ty.resizeImage;
29
- export declare const rotateImage: typeof ty.rotateImage;
30
- export declare const saveToAlbum: typeof ty.saveToAlbum;
31
- export declare const onCountrySelectResult: typeof ty.onCountrySelectResult;
32
- export declare const offCountrySelectResult: typeof ty.offCountrySelectResult;
33
- export declare const onUploadProgressUpdate: typeof ty.onUploadProgressUpdate;
34
- export declare const offUploadProgressUpdate: typeof ty.offUploadProgressUpdate;
35
- export declare const onReceiveMessage: typeof ty.onReceiveMessage;
36
- export declare const offReceiveMessage: typeof ty.offReceiveMessage;
37
- export declare const onRouterEvent: typeof ty.onRouterEvent;
38
- export declare const offRouterEvent: typeof ty.offRouterEvent;
39
- export declare const onRouterResult: typeof ty.onRouterResult;
40
- export declare const offRouterResult: typeof ty.offRouterResult;
41
- export declare const registerChannel: typeof ty.registerChannel;
42
- export declare const getTempDirectory: typeof ty.getTempDirectory;
43
- export declare const handleShortcut: typeof ty.handleShortcut;
44
- export declare const isAssociatedShortcut: typeof ty.isAssociatedShortcut;
45
- export declare const isSupportedShortcut: typeof ty.isSupportedShortcut;
46
- export declare const backToHomeAndOpenPanel: typeof ty.backToHomeAndOpenPanel;
@@ -1,62 +0,0 @@
1
- ## 门锁 API
2
-
3
- > https://wiki.tuya-inc.com:7799/page/1782299639387521068#90E8B7
4
-
5
- ````
6
- ```javascript
7
- let apis = [
8
- 'tuya.m.zigbee.lock.remotepwd.execute',
9
- 'tuya.m.device.lock.remote.unlock',
10
- 'tuya.m.device.lock.remote.unlock.available',
11
- 'tuya.m.device.lock.history.latest',
12
- 'tuya.m.device.lock.history.list',
13
- 'tuya.m.device.lock.log.latest',
14
- 'tuya.m.device.lock.log.list',
15
- 'tuya.m.device.lock.log.upload',
16
- 'tuya.m.lock.album.media.list',
17
- 'tuya.m.device.member.get',
18
- 'tuya.m.device.member.detail.list',
19
- 'tuya.m.device.member.remove',
20
- 'tuya.m.device.member.removed',
21
- 'tuya.m.device.lock.sync.batch',
22
- 'tuya.m.device.user.time.schedule.update',
23
- 'tuya.m.device.user.unlock.offline',
24
- 'tuya.m.device.member.opmode.pwd.validate',
25
- 'tuya.m.device.member.opmode.add',
26
- 'tuya.m.device.member.opmode.remove',
27
- 'tuya.m.device.user.verifycode.send',
28
- 'tuya.m.device.member.opmode.update',
29
- 'tuya.m.device.member.opmode.detail',
30
- 'tuya.m.device.dp.sn.get',
31
- 'tuya.m.device.lock.dynapwd.get',
32
- 'tuya.m.device.lock.temppwd.validate',
33
- 'tuya.m.device.lock.temppwd.validate_2.0',
34
- 'tuya.m.device.lock.temppwd.create',
35
- 'tuya.m.device.lock.temppwd.update',
36
- 'tuya.m.device.lock.temppwd.name',
37
- 'tuya.m.device.lock.temppwd.remove',
38
- 'tuya.m.device.lock.share.available',
39
- 'tuya.m.device.lock.offlinepwd.get',
40
- 'tuya.m.device.lock.offlinepwd.revoke',
41
- 'tuya.m.device.lock.offlinepwd.name.update',
42
- 'tuya.m.device.lock.offlinepwd.revocable',
43
- 'tuya.m.device.lock.auth.list',
44
- 'tuya.m.device.lock.auth.list.invalid',
45
- 'tuya.m.device.lock.auth.list.clear',
46
- 'tuya.m.device.lock.key.virtual.add',
47
- 'tuya.m.device.lock.key.virtual.update',
48
- 'tuya.m.device.lock.key.virtual.phase',
49
- 'tuya.m.device.lock.key.virtual.name',
50
- 'tuya.m.device.lock.key.virtual.remove',
51
- 'tuya.m.device.unlock.waitassign',
52
- 'tuya.m.device.unlock.assignlist',
53
- 'tuya.m.device.user.unlock.allocate',
54
- 'tuya.m.device.props.save',
55
- 'tuya.m.device.props.fetch',
56
- 'tuya.m.device.member.list',
57
- 'tuya.m.device.opmode.sync.rise',
58
- 'tuya.m.i18n.date.template.get',
59
- 'tuya.m.device.active.date',
60
- 'tuya.m.device.track.details'
61
- ]
62
- ````