@ray-js/api 1.2.1 → 1.2.2

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/all-kits.d.ts CHANGED
@@ -3,7 +3,5 @@ export * from './BizKit-3.2.7';
3
3
  export * from './DeviceKit-3.3.1';
4
4
  export * from './MiniKit-3.1.0';
5
5
  export * from './PlayNetKit-1.1.3';
6
- export * from './MapKit-3.0.7';
7
- export * from './HomeKit-3.1.4';
8
6
  import * as device from './DeviceKit-3.3.1';
9
7
  export { device };
@@ -1,18 +1,6 @@
1
1
  import { publishDpsBase } from '../';
2
2
  import { GetTTTAllParams, DpState } from './types';
3
3
  declare type PublishDpsOptions = Omit<GetTTTAllParams<typeof publishDpsBase>, 'deviceId' | 'dps'>;
4
- /**
5
- * 下发 DP 点控制设备
6
- *
7
- * @param data - 当前要下发的 DP 数据,同时支持 key 为 dp code 或 dp id
8
- * @param options - publishDps 的高阶配置
9
-
10
- * @example
11
- *
12
- * publishDps({ switch: false });
13
- * publishDps({ '1': false })
14
- */
15
- export declare function sendDps(data: DpState, options?: PublishDpsOptions): Promise<boolean>;
16
4
  /**
17
5
  * 兼容新旧 publishDps,可以使用原有小程序提供的调用方式,也可以使用 SDK 提供的调用方式。
18
6
  * @param data ty.device.publishDps的参数 或 当前要下发的 DP 数据,同时支持 key 为 dp code 或 dp id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,13 +26,13 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^1.2.1",
30
- "@ray-js/router": "^1.2.1",
29
+ "@ray-js/framework": "^1.2.2",
30
+ "@ray-js/router": "^1.2.2",
31
31
  "@ray-js/wechat": "^0.0.16",
32
32
  "base64-browser": "^1.0.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@ray-js/cli": "^1.2.1",
35
+ "@ray-js/cli": "^1.2.2",
36
36
  "art-template": "^4.13.2",
37
37
  "fs-extra": "^10.1.0",
38
38
  "miniprogram-api-typings": "^3.4.3",
@@ -44,6 +44,6 @@
44
44
  "email": "tuyafe@tuya.com"
45
45
  }
46
46
  ],
47
- "gitHead": "2bfdb0b62fdd4fa36e82f661712fc57eccb51f4c",
47
+ "gitHead": "e517fe5da418e0caa4c69c9331499d510472dc5e",
48
48
  "repository": {}
49
49
  }
@@ -1,7 +0,0 @@
1
- /// <reference path="../@types/PlayNetKit.d.ts" />
2
- export declare const home: {
3
- getCurrentHomeInfo: typeof ty.home.getCurrentHomeInfo;
4
- getDeviceIdList: typeof ty.home.getDeviceIdList;
5
- getRoomList: typeof ty.home.getRoomList;
6
- getDeviceRoomInfo: typeof ty.home.getDeviceRoomInfo;
7
- };
@@ -1,12 +0,0 @@
1
- /// <reference path="../@types/PlayNetKit.d.ts" />
2
- export declare const map: {
3
- chooseLocation: typeof ty.map.chooseLocation;
4
- getLocation: typeof ty.map.getLocation;
5
- getMapList: typeof ty.map.getMapList;
6
- isGeofenceReachLimit: typeof ty.map.isGeofenceReachLimit;
7
- openGeofenceMap: typeof ty.map.openGeofenceMap;
8
- openMapAppLocation: typeof ty.map.openMapAppLocation;
9
- registerGeofence: typeof ty.map.registerGeofence;
10
- unregisterGeofence: typeof ty.map.unregisterGeofence;
11
- updateGeofence: typeof ty.map.updateGeofence;
12
- };