@ray-js/api 1.5.30 → 1.5.32
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/@types/BaseKit.d.ts +8 -8
- package/@types/BizKit.d.ts +3 -3
- package/@types/MiniKit.d.ts +1 -1
- package/lib/cloud/device.d.ts +1 -1
- package/package.json +5 -5
package/@types/BaseKit.d.ts
CHANGED
@@ -10,7 +10,7 @@ declare namespace ty {
|
|
10
10
|
export function stopAccelerometer(params?: {
|
11
11
|
complete?: () => void
|
12
12
|
success?: (params: null) => void
|
13
|
-
|
13
|
+
fail?: (params: {
|
14
14
|
errorMsg: string
|
15
15
|
errorCode: string | number
|
16
16
|
innerError: {
|
@@ -28,7 +28,7 @@ declare namespace ty {
|
|
28
28
|
interval?: AccelerometerInterval
|
29
29
|
complete?: () => void
|
30
30
|
success?: (params: null) => void
|
31
|
-
|
31
|
+
fail?: (params: {
|
32
32
|
errorMsg: string
|
33
33
|
errorCode: string | number
|
34
34
|
innerError: {
|
@@ -261,7 +261,7 @@ declare namespace ty {
|
|
261
261
|
export function startCompass(params?: {
|
262
262
|
complete?: () => void
|
263
263
|
success?: (params: null) => void
|
264
|
-
|
264
|
+
fail?: (params: {
|
265
265
|
errorMsg: string
|
266
266
|
errorCode: string | number
|
267
267
|
innerError: {
|
@@ -277,7 +277,7 @@ declare namespace ty {
|
|
277
277
|
export function stopCompass(params?: {
|
278
278
|
complete?: () => void
|
279
279
|
success?: (params: null) => void
|
280
|
-
|
280
|
+
fail?: (params: {
|
281
281
|
errorMsg: string
|
282
282
|
errorCode: string | number
|
283
283
|
innerError: {
|
@@ -295,7 +295,7 @@ declare namespace ty {
|
|
295
295
|
interval?: DeviceMotionInterval
|
296
296
|
complete?: () => void
|
297
297
|
success?: (params: null) => void
|
298
|
-
|
298
|
+
fail?: (params: {
|
299
299
|
errorMsg: string
|
300
300
|
errorCode: string | number
|
301
301
|
innerError: {
|
@@ -311,7 +311,7 @@ declare namespace ty {
|
|
311
311
|
export function stopDeviceMotionListening(params?: {
|
312
312
|
complete?: () => void
|
313
313
|
success?: (params: null) => void
|
314
|
-
|
314
|
+
fail?: (params: {
|
315
315
|
errorMsg: string
|
316
316
|
errorCode: string | number
|
317
317
|
innerError: {
|
@@ -395,7 +395,7 @@ declare namespace ty {
|
|
395
395
|
interval?: GyroscopeInterval
|
396
396
|
complete?: () => void
|
397
397
|
success?: (params: null) => void
|
398
|
-
|
398
|
+
fail?: (params: {
|
399
399
|
errorMsg: string
|
400
400
|
errorCode: string | number
|
401
401
|
innerError: {
|
@@ -411,7 +411,7 @@ declare namespace ty {
|
|
411
411
|
export function stopGyroscope(params?: {
|
412
412
|
complete?: () => void
|
413
413
|
success?: (params: null) => void
|
414
|
-
|
414
|
+
fail?: (params: {
|
415
415
|
errorMsg: string
|
416
416
|
errorCode: string | number
|
417
417
|
innerError: {
|
package/@types/BizKit.d.ts
CHANGED
@@ -1752,7 +1752,7 @@ declare namespace ty {
|
|
1752
1752
|
/** 是否是临时用户 */
|
1753
1753
|
isTemporaryUser: boolean
|
1754
1754
|
}) => void
|
1755
|
-
|
1755
|
+
fail?: (params: {
|
1756
1756
|
errorMsg: string
|
1757
1757
|
errorCode: string | number
|
1758
1758
|
innerError: {
|
@@ -3135,7 +3135,7 @@ declare namespace ty {
|
|
3135
3135
|
/** 状态 */
|
3136
3136
|
isActive: boolean
|
3137
3137
|
}) => void
|
3138
|
-
|
3138
|
+
fail?: (params: {
|
3139
3139
|
errorMsg: string
|
3140
3140
|
errorCode: string | number
|
3141
3141
|
innerError: {
|
@@ -3222,7 +3222,7 @@ declare namespace ty {
|
|
3222
3222
|
options: string
|
3223
3223
|
complete?: () => void
|
3224
3224
|
success?: (params: null) => void
|
3225
|
-
|
3225
|
+
fail?: (params: {
|
3226
3226
|
errorMsg: string
|
3227
3227
|
errorCode: string | number
|
3228
3228
|
innerError: {
|
package/@types/MiniKit.d.ts
CHANGED
package/lib/cloud/device.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { IGetDpsInfos, IUpdateDpName, IUpdateGroupDpName, IGetWeatherQuality, IG
|
|
4
4
|
* @param {string} gwId 网关Id, 直连设备值同 devId,子设备则传网关的设备id
|
5
5
|
* @param {string} devId 设备Id
|
6
6
|
*/
|
7
|
-
declare const getDpsInfos: (params: IGetDpsInfos) => Promise<IGetDpsInfosResponse>;
|
7
|
+
declare const getDpsInfos: (params: IGetDpsInfos) => Promise<IGetDpsInfosResponse[]>;
|
8
8
|
/**
|
9
9
|
* 更新设备 DP 名称
|
10
10
|
* @param {string} devId 设备Id
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.32",
|
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.5.
|
33
|
-
"@ray-js/router": "1.5.
|
32
|
+
"@ray-js/framework": "1.5.32",
|
33
|
+
"@ray-js/router": "1.5.32",
|
34
34
|
"@ray-js/wechat": "^0.2.9",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.5.
|
39
|
+
"@ray-js/cli": "1.5.32",
|
40
40
|
"art-template": "^4.13.2",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.2",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "4225a4a527e311bb39efa30aec6284e923972d67"
|
50
50
|
}
|