@ray-js/api 1.4.35 → 1.4.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- export declare const getLatestLog: (params: {
3
+ /**
4
+ * 获取门锁最新日志
5
+ * @param params {devId: string}
6
+ * @returns
7
+ */
8
+ export declare const getLockLatestLog: (params: {
4
9
  devId: string;
5
10
  }) => void;
6
- export declare const getDeviceInitDate: ({ devId }: {
11
+ /**
12
+ * 获取门锁安全天数
13
+ * @param param {devId: string}
14
+ * @returns
15
+ */
16
+ export declare const getLockActivePeriod: ({ devId }: {
7
17
  devId: string;
8
18
  }) => void;
9
- export declare const getUserInfo: ({ devId, userId }: {
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: string;
26
+ userId?: string | undefined;
12
27
  }) => void;
13
- export declare const remoteOpen: ({ devId, open }: {
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;
@@ -26,7 +26,13 @@ export const getUserRegion = () => {
26
26
  data: {}
27
27
  });
28
28
  };
29
- export const getLatestLog = params => {
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
- export const getDeviceInitDate = _ref => {
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
- export const getUserInfo = _ref2 => {
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
- export const remoteOpen = _ref3 => {
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.35",
3
+ "version": "1.4.36",
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.35",
33
- "@ray-js/router": "1.4.35",
32
+ "@ray-js/framework": "1.4.36",
33
+ "@ray-js/router": "1.4.36",
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.35",
39
+ "@ray-js/cli": "1.4.36",
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": "32c9788fbddcdf7e998b217999ba79b0f4d1d120"
49
+ "gitHead": "9037ef50343f4364daff62e5d2beee13117dc8b3"
50
50
  }