@ray-js/api 1.4.35 → 1.4.37
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/cloud/doorlock.d.ts +25 -5
- package/lib/cloud/doorlock.js +29 -5
- package/package.json +5 -5
package/lib/cloud/doorlock.d.ts
CHANGED
@@ -1,16 +1,36 @@
|
|
1
1
|
export declare const getUiConfig: (productId: any, productConfigTimestamp?: string, productPanelPowerTimestamp?: string) => void;
|
2
2
|
export declare const getUserRegion: () => void;
|
3
|
-
|
3
|
+
/**
|
4
|
+
* 获取门锁最新日志
|
5
|
+
* @param params {devId: string}
|
6
|
+
* @returns
|
7
|
+
*/
|
8
|
+
export declare const getLockLatestLog: (params: {
|
4
9
|
devId: string;
|
5
10
|
}) => void;
|
6
|
-
|
11
|
+
/**
|
12
|
+
* 获取门锁安全天数
|
13
|
+
* @param param {devId: string}
|
14
|
+
* @returns
|
15
|
+
*/
|
16
|
+
export declare const getLockActivePeriod: ({ devId }: {
|
7
17
|
devId: string;
|
8
18
|
}) => void;
|
9
|
-
|
19
|
+
/**
|
20
|
+
* 获取门锁成员信息
|
21
|
+
* @param param {devId: string, userId?: string}
|
22
|
+
* @returns
|
23
|
+
*/
|
24
|
+
export declare const getLockMemberInfo: ({ devId, userId }: {
|
10
25
|
devId: string;
|
11
|
-
userId
|
26
|
+
userId?: string | undefined;
|
12
27
|
}) => void;
|
13
|
-
|
28
|
+
/**
|
29
|
+
* 远程开门
|
30
|
+
* @param param { devId: string, open: boolean }
|
31
|
+
* @returns
|
32
|
+
*/
|
33
|
+
export declare const remoteLockExecute: ({ devId, open }: {
|
14
34
|
devId: string;
|
15
35
|
open: boolean;
|
16
36
|
}) => void;
|
package/lib/cloud/doorlock.js
CHANGED
@@ -26,7 +26,13 @@ export const getUserRegion = () => {
|
|
26
26
|
data: {}
|
27
27
|
});
|
28
28
|
};
|
29
|
-
|
29
|
+
|
30
|
+
/**
|
31
|
+
* 获取门锁最新日志
|
32
|
+
* @param params {devId: string}
|
33
|
+
* @returns
|
34
|
+
*/
|
35
|
+
export const getLockLatestLog = params => {
|
30
36
|
return requestCloud({
|
31
37
|
api: `${THING}.m.device.lock.log.latest`,
|
32
38
|
version: '1.0',
|
@@ -35,7 +41,13 @@ export const getLatestLog = params => {
|
|
35
41
|
}
|
36
42
|
});
|
37
43
|
};
|
38
|
-
|
44
|
+
|
45
|
+
/**
|
46
|
+
* 获取门锁安全天数
|
47
|
+
* @param param {devId: string}
|
48
|
+
* @returns
|
49
|
+
*/
|
50
|
+
export const getLockActivePeriod = _ref => {
|
39
51
|
let {
|
40
52
|
devId
|
41
53
|
} = _ref;
|
@@ -47,7 +59,13 @@ export const getDeviceInitDate = _ref => {
|
|
47
59
|
}
|
48
60
|
});
|
49
61
|
};
|
50
|
-
|
62
|
+
|
63
|
+
/**
|
64
|
+
* 获取门锁成员信息
|
65
|
+
* @param param {devId: string, userId?: string}
|
66
|
+
* @returns
|
67
|
+
*/
|
68
|
+
export const getLockMemberInfo = _ref2 => {
|
51
69
|
let {
|
52
70
|
devId,
|
53
71
|
userId
|
@@ -57,11 +75,17 @@ export const getUserInfo = _ref2 => {
|
|
57
75
|
version: '1.0',
|
58
76
|
data: {
|
59
77
|
devId: devId,
|
60
|
-
userId: userId
|
78
|
+
userId: userId || ''
|
61
79
|
}
|
62
80
|
});
|
63
81
|
};
|
64
|
-
|
82
|
+
|
83
|
+
/**
|
84
|
+
* 远程开门
|
85
|
+
* @param param { devId: string, open: boolean }
|
86
|
+
* @returns
|
87
|
+
*/
|
88
|
+
export const remoteLockExecute = _ref3 => {
|
65
89
|
let {
|
66
90
|
devId,
|
67
91
|
open
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.37",
|
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.4.
|
33
|
-
"@ray-js/router": "1.4.
|
32
|
+
"@ray-js/framework": "1.4.37",
|
33
|
+
"@ray-js/router": "1.4.37",
|
34
34
|
"@ray-js/wechat": "^0.0.33",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.4.
|
39
|
+
"@ray-js/cli": "1.4.37",
|
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.org"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "a09f10bf5222225ffeec5aabb27a4e6dff34bd6b"
|
50
50
|
}
|