@ray-js/api 1.4.62 → 1.4.63

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 (54) hide show
  1. package/lib/cloud/device.js +1 -1
  2. package/lib/cloud/doorlock/README.md +3 -0
  3. package/lib/cloud/doorlock/auth.d.ts +235 -0
  4. package/lib/cloud/doorlock/auth.js +223 -0
  5. package/lib/cloud/doorlock/device.d.ts +137 -0
  6. package/lib/cloud/doorlock/device.js +187 -0
  7. package/lib/cloud/doorlock/index.d.ts +10 -0
  8. package/lib/cloud/doorlock/index.js +20 -0
  9. package/lib/cloud/doorlock/log.d.ts +113 -0
  10. package/lib/cloud/doorlock/log.js +53 -0
  11. package/lib/cloud/doorlock/member-opmode.d.ts +121 -0
  12. package/lib/cloud/doorlock/member-opmode.js +104 -0
  13. package/lib/cloud/doorlock/member.d.ts +110 -0
  14. package/lib/cloud/doorlock/member.js +72 -0
  15. package/lib/cloud/doorlock/offline-pwd.d.ts +61 -0
  16. package/lib/cloud/doorlock/offline-pwd.js +67 -0
  17. package/lib/cloud/{doorlock.js → doorlock/old.js} +3 -2
  18. package/lib/cloud/doorlock/temp-pwd.d.ts +194 -0
  19. package/lib/cloud/doorlock/temp-pwd.js +193 -0
  20. package/lib/cloud/doorlock/unlock-method.d.ts +62 -0
  21. package/lib/cloud/doorlock/unlock-method.js +85 -0
  22. package/lib/cloud/doorlock/unlock.d.ts +89 -0
  23. package/lib/cloud/doorlock/unlock.js +76 -0
  24. package/lib/cloud/index.d.ts +3 -1
  25. package/lib/cloud/index.js +7 -4
  26. package/lib/cloud/interface.d.ts +26 -0
  27. package/lib/cloud/recipe/basket.d.ts +220 -0
  28. package/lib/cloud/recipe/basket.js +328 -0
  29. package/lib/cloud/recipe/category-list.d.ts +71 -0
  30. package/lib/cloud/recipe/category-list.js +65 -0
  31. package/lib/cloud/recipe/custom.d.ts +177 -0
  32. package/lib/cloud/recipe/custom.js +172 -0
  33. package/lib/cloud/recipe/index.d.ts +8 -0
  34. package/lib/cloud/recipe/index.js +8 -0
  35. package/lib/cloud/recipe/menu.d.ts +170 -0
  36. package/lib/cloud/recipe/menu.js +76 -0
  37. package/lib/cloud/recipe/query.d.ts +87 -0
  38. package/lib/cloud/recipe/query.js +101 -0
  39. package/lib/cloud/recipe/record.d.ts +54 -0
  40. package/lib/cloud/recipe/record.js +87 -0
  41. package/lib/cloud/recipe/score.d.ts +69 -0
  42. package/lib/cloud/recipe/score.js +106 -0
  43. package/lib/cloud/recipe/star.d.ts +131 -0
  44. package/lib/cloud/recipe/star.js +151 -0
  45. package/lib/cloud/recipe/types.d.ts +7 -0
  46. package/lib/cloud/recipe/types.js +0 -0
  47. package/lib/cloud/remoteGroup.d.ts +10 -0
  48. package/lib/cloud/remoteGroup.js +31 -0
  49. package/lib/nativeRouters/index.d.ts +1 -0
  50. package/lib/nativeRouters/index.js +2 -1
  51. package/lib/nativeRouters/remoteGroup.d.ts +22 -0
  52. package/lib/nativeRouters/remoteGroup.js +11 -0
  53. package/package.json +5 -5
  54. /package/lib/cloud/{doorlock.d.ts → doorlock/old.d.ts} +0 -0
@@ -0,0 +1,187 @@
1
+ import { THING } from '../../constants';
2
+ import requestCloud from '../../requestCloud';
3
+
4
+ //#region 设置设备属性
5
+
6
+ /**
7
+ * SetDevicePropertiesParams - 设置设备属性参数
8
+ */
9
+
10
+ /**
11
+ * SetDevicePropertiesResponse - 设置设备属性响应
12
+ */
13
+
14
+ /**
15
+ * 设置设备属性
16
+ * @param {SetDevicePropertiesParams} params - 设置设备属性参数
17
+ * @returns {Promise<SetDevicePropertiesResponse>} - 设置结果的 Promise
18
+ */
19
+ export const setDeviceProperties = params => {
20
+ return requestCloud({
21
+ api: "".concat(THING, ".m.device.props.save"),
22
+ version: '1.0',
23
+ data: params
24
+ });
25
+ };
26
+
27
+ //#endregion
28
+
29
+ //#region 查看设置的设备属性
30
+
31
+ /**
32
+ * GetDevicePropertiesParams - 查看设置的设备属性参数
33
+ */
34
+
35
+ /**
36
+ * GetDevicePropertiesResponse - 查看设置的设备属性响应
37
+ */
38
+
39
+ // 返回参数,一个键值对,key为LOST_ALERTER_HELPER,值为对应状态字符串
40
+
41
+ /**
42
+ * 查看设置的设备属性
43
+ * @param {GetDevicePropertiesParams} params - 查看设备属性参数
44
+ * @returns {Promise<GetDevicePropertiesResponse>} - 查看结果的 Promise
45
+ */
46
+ export const getDeviceProperties = params => {
47
+ return requestCloud({
48
+ api: "".concat(THING, ".m.device.props.fetch"),
49
+ version: '1.0',
50
+ data: params
51
+ });
52
+ };
53
+
54
+ //#endregion
55
+
56
+ //#region 获取家庭成员基础信息列表
57
+
58
+ /**
59
+ * MemberListParams - 获取家庭成员基础信息列表参数
60
+ */
61
+
62
+ /**
63
+ * MemberListResponseItem - 家庭成员基础信息列表项
64
+ */
65
+
66
+ /**
67
+ * MemberListResponse - 获取家庭成员基础信息列表响应
68
+ */
69
+
70
+ /**
71
+ * 获取家庭成员基础信息列表
72
+ * @param {MemberListParams} params - 获取成员列表参数
73
+ * @returns {Promise<MemberListResponse>} - 成员列表的 Promise
74
+ */
75
+ export const getMemberList = params => {
76
+ return requestCloud({
77
+ api: "".concat(THING, ".m.device.member.list"),
78
+ version: '5.0',
79
+ data: params
80
+ });
81
+ };
82
+
83
+ //#endregion
84
+
85
+ //#region 解锁方式同步
86
+
87
+ /**
88
+ * UnlockSyncParams - 解锁方式同步参数
89
+ */
90
+
91
+ /**
92
+ * UnlockSyncResponse - 解锁方式同步响应
93
+ */
94
+
95
+ /**
96
+ * 解锁方式同步
97
+ * @param {UnlockSyncParams} params - 解锁方式同步参数
98
+ * @returns {Promise<UnlockSyncResponse>} - 同步结果的 Promise
99
+ */
100
+ export const syncUnlockMode = params => {
101
+ return requestCloud({
102
+ api: "".concat(THING, ".m.device.opmode.sync.rise"),
103
+ version: '2.0',
104
+ data: params
105
+ });
106
+ };
107
+
108
+ //#endregion
109
+
110
+ //#region 查询时间对应的格式
111
+
112
+ /**
113
+ * QueryDateFormatParams - 查询时间对应的格式参数
114
+ */
115
+
116
+ /**
117
+ * QueryDateFormatResponse - 查询时间对应的格式响应
118
+ */
119
+
120
+ // 日期格式化格式
121
+
122
+ /**
123
+ * 查询时间对应的格式
124
+ * @param {QueryDateFormatParams} params - 查询时间对应的格式参数
125
+ * @returns {Promise<QueryDateFormatResponse>} - 查询结果的 Promise
126
+ */
127
+ export const queryDateFormat = params => {
128
+ return requestCloud({
129
+ api: "".concat(THING, ".m.i18n.date.template.get"),
130
+ version: '1.0',
131
+ data: params
132
+ });
133
+ };
134
+
135
+ //#endregion
136
+
137
+ //#region 用户获取设备自身的激活时间(配网时间)
138
+
139
+ /**
140
+ * QueryActiveDateParams - 用户获取设备自身的激活时间参数
141
+ */
142
+
143
+ /**
144
+ * QueryActiveDateResponse - 用户获取设备自身的激活时间响应
145
+ */
146
+
147
+ // 64 dp password_offline_time 最新数据
148
+
149
+ /**
150
+ * 用户获取设备自身的激活时间(配网时间)
151
+ * @param {QueryActiveDateParams} params - 查询激活时间参数
152
+ * @returns {Promise<QueryActiveDateResponse>} - 查询结果的 Promise
153
+ */
154
+ export const queryDeviceActiveDate = params => {
155
+ return requestCloud({
156
+ api: "".concat(THING, ".m.device.active.date"),
157
+ version: '1.0',
158
+ data: params
159
+ });
160
+ };
161
+
162
+ //#endregion
163
+
164
+ //#region 获取设备位置
165
+
166
+ /**
167
+ * QueryTrackDetailsParams - 获取设备位置参数
168
+ */
169
+
170
+ /**
171
+ * QueryTrackDetailsResponse - 获取设备位置响应
172
+ */
173
+
174
+ /**
175
+ * 获取设备位置
176
+ * @param {QueryTrackDetailsParams} params - 获取设备位置参数
177
+ * @returns {Promise<QueryTrackDetailsResponse>} - 查询结果的 Promise
178
+ */
179
+ export const queryDeviceTrackDetails = params => {
180
+ return requestCloud({
181
+ api: "".concat(THING, ".m.device.track.details"),
182
+ version: '1.0',
183
+ data: params
184
+ });
185
+ };
186
+
187
+ //#endregion
@@ -0,0 +1,10 @@
1
+ export * from './old';
2
+ export * from './auth';
3
+ export * from './device';
4
+ export * from './log';
5
+ export * from './member-opmode';
6
+ export * from './member';
7
+ export * from './offline-pwd';
8
+ export * from './temp-pwd';
9
+ export * from './unlock';
10
+ export * from './unlock-method';
@@ -0,0 +1,20 @@
1
+ export * from './old';
2
+
3
+ // 授权相关
4
+ export * from './auth';
5
+ // 设备相关
6
+ export * from './device';
7
+ // 日志相关
8
+ export * from './log';
9
+ // 成员解锁相关
10
+ export * from './member-opmode';
11
+ // 用户相关
12
+ export * from './member';
13
+ // 离线临时密码相关
14
+ export * from './offline-pwd';
15
+ // 临时开锁相关
16
+ export * from './temp-pwd';
17
+ // 解锁相关
18
+ export * from './unlock';
19
+ // 解锁方式分配相关
20
+ export * from './unlock-method';
@@ -0,0 +1,113 @@
1
+ type LatestLogParams = {
2
+ devId: string;
3
+ };
4
+ type UnionUnlockInfo = {
5
+ userName?: string;
6
+ opMode?: string;
7
+ unlockName?: string;
8
+ currentUser?: boolean;
9
+ sn?: number;
10
+ };
11
+ type LatestLogResponse = {
12
+ exist: boolean;
13
+ logId: number;
14
+ logCategory: string;
15
+ logType: string;
16
+ recordType?: number;
17
+ unlockNameRosettaKey?: string;
18
+ currentUser?: boolean;
19
+ userId?: string;
20
+ userName?: string;
21
+ unlockName?: string;
22
+ time: number;
23
+ relateDevName?: string;
24
+ relateOpMode?: string;
25
+ unionUnlockInfo?: UnionUnlockInfo;
26
+ data?: string;
27
+ unReadCount?: number;
28
+ };
29
+ /**
30
+ * 查询最近一条日志记录
31
+ * @param {LatestLogParams} params - 包含设备Id的参数
32
+ * @returns {Promise<LatestLogResponse>} - 包含请求结果和状态的响应
33
+ */
34
+ export declare const getLatestLog: (params: LatestLogParams) => Promise<LatestLogResponse>;
35
+ type UserAction = {
36
+ userType: number;
37
+ userId: number;
38
+ operClassify: number;
39
+ operType: number;
40
+ operDetail: string;
41
+ toUserType: number;
42
+ toUserId: number;
43
+ };
44
+ type MediaInfo = {
45
+ fileUrl: string;
46
+ fileKey: string;
47
+ mediaPath: string;
48
+ mediaBucket: string;
49
+ mediaKey: string;
50
+ };
51
+ type LogRecord = {
52
+ logId: number;
53
+ logCategory: number;
54
+ logType: string;
55
+ recordType?: number;
56
+ unlockNameRosettaKey?: string;
57
+ currentUser?: boolean;
58
+ userId?: string;
59
+ userName?: string;
60
+ memberBindableFlag: boolean;
61
+ unlockName?: string;
62
+ time: number;
63
+ relateDevName?: string;
64
+ relateOpMode?: string;
65
+ unionUnlockInfo?: string;
66
+ mediaInfoList?: MediaInfo[];
67
+ localOperateRecordInfo?: UserAction;
68
+ };
69
+ type QueryLogRecordParams = {
70
+ devId: string;
71
+ logCategories?: string[];
72
+ userIds?: string[];
73
+ onlyShowMediaRecord: boolean;
74
+ startTime?: number;
75
+ endTime?: number;
76
+ lastRowKey?: string;
77
+ limit: number;
78
+ };
79
+ type QueryLogRecordResponse = LogRecord[];
80
+ /**
81
+ * 查询日志记录
82
+ * @param {QueryLogRecordParams} params
83
+ * @returns {Promise<QueryLogRecordResponse>} - 包含请求结果和状态的响应
84
+ */
85
+ export declare const queryLogRecord: (params: QueryLogRecordParams) => Promise<QueryLogRecordResponse>;
86
+ type UploadLogRecordResult = boolean;
87
+ type UploadLogRecordParams = {
88
+ devId: string;
89
+ logType: string;
90
+ data: string[];
91
+ };
92
+ /**
93
+ * 上报操作日志记录
94
+ * @param {UploadLogRecordParams} params
95
+ * @returns {Promise<UploadLogRecordResult>}
96
+ */
97
+ export declare const uploadLogRecord: (params: UploadLogRecordParams) => Promise<UploadLogRecordResult>;
98
+ type QueryAlbumRecordParams = {
99
+ devId: string;
100
+ offset: number;
101
+ limit: number;
102
+ };
103
+ type QueryAlbumRecordResponse = {
104
+ eventTypes: string;
105
+ albumList: any[];
106
+ };
107
+ /**
108
+ * 分页获取获取可以查看的相册列表
109
+ * @param {QueryAlbumRecordParams} params
110
+ * @returns {Promise<QueryAlbumRecordResponse>}
111
+ */
112
+ export declare const queryAlbumRecord: (params: QueryAlbumRecordParams) => Promise<QueryAlbumRecordResponse>;
113
+ export {};
@@ -0,0 +1,53 @@
1
+ import { THING } from '../../constants';
2
+ import requestCloud from '../../requestCloud';
3
+ /**
4
+ * 查询最近一条日志记录
5
+ * @param {LatestLogParams} params - 包含设备Id的参数
6
+ * @returns {Promise<LatestLogResponse>} - 包含请求结果和状态的响应
7
+ */
8
+ export const getLatestLog = params => {
9
+ return requestCloud({
10
+ api: "".concat(THING, ".m.device.lock.log.latest"),
11
+ version: '1.0',
12
+ data: params
13
+ });
14
+ };
15
+ /**
16
+ * 查询日志记录
17
+ * @param {QueryLogRecordParams} params
18
+ * @returns {Promise<QueryLogRecordResponse>} - 包含请求结果和状态的响应
19
+ */
20
+ export const queryLogRecord = params => {
21
+ return requestCloud({
22
+ api: "".concat(THING, ".m.device.lock.log.list"),
23
+ version: '1.0',
24
+ data: params
25
+ });
26
+ };
27
+ /**
28
+ * 上报操作日志记录
29
+ * @param {UploadLogRecordParams} params
30
+ * @returns {Promise<UploadLogRecordResult>}
31
+ */
32
+ export const uploadLogRecord = params => {
33
+ return requestCloud({
34
+ api: "".concat(THING, ".m.device.lock.log.upload"),
35
+ version: '1.0',
36
+ data: params
37
+ });
38
+ };
39
+
40
+ // 2.4. m.lock.album.media.list
41
+
42
+ /**
43
+ * 分页获取获取可以查看的相册列表
44
+ * @param {QueryAlbumRecordParams} params
45
+ * @returns {Promise<QueryAlbumRecordResponse>}
46
+ */
47
+ export const queryAlbumRecord = params => {
48
+ return requestCloud({
49
+ api: "".concat(THING, ".m.lock.album.media.list"),
50
+ version: '2.0',
51
+ data: params
52
+ });
53
+ };
@@ -0,0 +1,121 @@
1
+ type ValidatePwdMemberResult = {
2
+ valid: boolean;
3
+ errorCode?: string;
4
+ errorMsg?: string;
5
+ };
6
+ type ValidatePwdMemberParams = {
7
+ devId: string;
8
+ opModeId?: number;
9
+ password: string;
10
+ };
11
+ /**
12
+ * 校验成员密码是否存在(包括临时密码)
13
+ * @param {ValidatePwdMemberParams} params
14
+ * @returns {Promise<ValidatePwdMemberResult>}
15
+ */
16
+ export declare const validatePasswordForMember: (params: ValidatePwdMemberParams) => Promise<ValidatePwdMemberResult>;
17
+ type AddMemberUnlockMethodResult = {
18
+ opModeId: string;
19
+ unlockName: string;
20
+ };
21
+ type NotifyInfo = {
22
+ appSend?: boolean;
23
+ msgPhone?: string;
24
+ countryCode?: string;
25
+ msgPhoneVerifyCode?: string;
26
+ };
27
+ type AddMemberUnlockMethodParams = {
28
+ devId: string;
29
+ userId: string;
30
+ unlockId: number;
31
+ unlockName?: string;
32
+ unlockAttr: number;
33
+ notifyInfo?: NotifyInfo;
34
+ unlockDetail?: string;
35
+ };
36
+ /**
37
+ * 添加解锁方式
38
+ * @param {AddMemberUnlockMethodParams} params
39
+ * @returns {Promise<AddMemberUnlockMethodResult>}
40
+ */
41
+ export declare const addMemberUnlockMethod: (params: AddMemberUnlockMethodParams) => Promise<AddMemberUnlockMethodResult>;
42
+ type RemoveMemberUnlockMethodResult = boolean;
43
+ type RemoveMemberUnlockMethodParams = {
44
+ devId: string;
45
+ opmodeId: number;
46
+ };
47
+ /**
48
+ * 删除解锁方式
49
+ * @param {RemoveMemberUnlockMethodParams} params
50
+ * @returns {Promise<RemoveMemberUnlockMethodResult>}
51
+ */
52
+ export declare const removeMemberUnlockMethod: (params: RemoveMemberUnlockMethodParams) => Promise<RemoveMemberUnlockMethodResult>;
53
+ type SendSpecialUnlockVerifyCodeResult = boolean;
54
+ type SendSpecialUnlockVerifyCodeParams = {
55
+ account: string;
56
+ };
57
+ /**
58
+ * 发送设置特殊解锁方式的验证码
59
+ * @param {SendSpecialUnlockVerifyCodeParams} params
60
+ * @returns {Promise<SendSpecialUnlockVerifyCodeResult>}
61
+ */
62
+ export declare const sendSpecialUnlockVerifyCode: (params: SendSpecialUnlockVerifyCodeParams) => Promise<SendSpecialUnlockVerifyCodeResult>;
63
+ type UpdateMemberUnlockModeResult = boolean;
64
+ type UpdateMemberUnlockModeParams = {
65
+ devId: string;
66
+ opModeId: number;
67
+ unlockName?: string;
68
+ unlockAttr: number;
69
+ unlockDetail: string;
70
+ notifyInfo?: NotifyInfo;
71
+ };
72
+ /**
73
+ * 更新成员的解锁方式
74
+ * @param {UpdateMemberUnlockModeParams} params
75
+ * @returns {Promise<UpdateMemberUnlockModeResult>}
76
+ */
77
+ export declare const updateMemberUnlockMode: (params: UpdateMemberUnlockModeParams) => Promise<UpdateMemberUnlockModeResult>;
78
+ type UnlockMethodDetailResult = {
79
+ phase: number;
80
+ opmode: string;
81
+ unlockAttr: number;
82
+ unlockName: string;
83
+ userId: string;
84
+ opmodeValue: string;
85
+ unlockId: string;
86
+ lockUserId: number;
87
+ opmodeId: string;
88
+ voiceAttr: number;
89
+ userTimeSet: string;
90
+ userType: number;
91
+ sourceAttribute: number;
92
+ notifyInfo?: NotifyInfoDetail;
93
+ };
94
+ type NotifyInfoDetail = {
95
+ appSend?: boolean;
96
+ msgPhone?: string;
97
+ countryCode?: string;
98
+ targetUserId?: number;
99
+ };
100
+ type UnlockMethodDetailParams = {
101
+ devId: string;
102
+ opModeId: number;
103
+ };
104
+ /**
105
+ * 查询某个解锁方式的详情
106
+ * @param {UnlockMethodDetailParams} params
107
+ * @returns {Promise<UnlockMethodDetailResult>}
108
+ */
109
+ export declare const getUnlockMethodDetail: (params: UnlockMethodDetailParams) => Promise<UnlockMethodDetailResult>;
110
+ type GetPasswordSNResult = number;
111
+ type GetPasswordSNParams = {
112
+ devId: string;
113
+ dpId: number;
114
+ };
115
+ /**
116
+ * 获取创建密码时的序号
117
+ * @param {GetPasswordSNParams} params
118
+ * @returns {Promise<GetPasswordSNResult>}
119
+ */
120
+ export declare const getCreatePasswordSN: (params: GetPasswordSNParams) => Promise<GetPasswordSNResult>;
121
+ export {};
@@ -0,0 +1,104 @@
1
+ import { THING } from '../../constants';
2
+ import requestCloud from '../../requestCloud';
3
+
4
+ // 4.1. 校验成员密码是否存在(包括临时密码)
5
+
6
+ /**
7
+ * 校验成员密码是否存在(包括临时密码)
8
+ * @param {ValidatePwdMemberParams} params
9
+ * @returns {Promise<ValidatePwdMemberResult>}
10
+ */
11
+ export const validatePasswordForMember = params => {
12
+ return requestCloud({
13
+ api: "".concat(THING, ".m.device.member.opmode.pwd.validate"),
14
+ version: '1.0',
15
+ data: params
16
+ });
17
+ };
18
+
19
+ // 通知信息
20
+
21
+ /**
22
+ * 添加解锁方式
23
+ * @param {AddMemberUnlockMethodParams} params
24
+ * @returns {Promise<AddMemberUnlockMethodResult>}
25
+ */
26
+ export const addMemberUnlockMethod = params => {
27
+ return requestCloud({
28
+ api: "".concat(THING, ".m.device.member.opmode.add"),
29
+ version: '5.0',
30
+ data: params
31
+ });
32
+ };
33
+
34
+ // 4.3. 删除解锁方式
35
+
36
+ /**
37
+ * 删除解锁方式
38
+ * @param {RemoveMemberUnlockMethodParams} params
39
+ * @returns {Promise<RemoveMemberUnlockMethodResult>}
40
+ */
41
+ export const removeMemberUnlockMethod = params => {
42
+ return requestCloud({
43
+ api: "".concat(THING, ".m.device.member.opmode.remove"),
44
+ version: '2.0',
45
+ data: params
46
+ });
47
+ };
48
+ /**
49
+ * 发送设置特殊解锁方式的验证码
50
+ * @param {SendSpecialUnlockVerifyCodeParams} params
51
+ * @returns {Promise<SendSpecialUnlockVerifyCodeResult>}
52
+ */
53
+ export const sendSpecialUnlockVerifyCode = params => {
54
+ return requestCloud({
55
+ api: "".concat(THING, ".m.device.user.verifycode.send"),
56
+ version: '1.0',
57
+ data: params
58
+ });
59
+ };
60
+
61
+ // 4.5. 更新成员的解锁方式
62
+
63
+ /**
64
+ * 更新成员的解锁方式
65
+ * @param {UpdateMemberUnlockModeParams} params
66
+ * @returns {Promise<UpdateMemberUnlockModeResult>}
67
+ */
68
+ export const updateMemberUnlockMode = params => {
69
+ return requestCloud({
70
+ api: "".concat(THING, ".m.device.member.opmode.update"),
71
+ version: '5.0',
72
+ data: params
73
+ });
74
+ };
75
+
76
+ // 4.6. 查询某个解锁方式的详情
77
+
78
+ /**
79
+ * 查询某个解锁方式的详情
80
+ * @param {UnlockMethodDetailParams} params
81
+ * @returns {Promise<UnlockMethodDetailResult>}
82
+ */
83
+ export const getUnlockMethodDetail = params => {
84
+ return requestCloud({
85
+ api: "".concat(THING, ".m.device.member.opmode.detail"),
86
+ version: '1.0',
87
+ data: params
88
+ });
89
+ };
90
+
91
+ // 4.7. 获取创建密码时的序号
92
+
93
+ /**
94
+ * 获取创建密码时的序号
95
+ * @param {GetPasswordSNParams} params
96
+ * @returns {Promise<GetPasswordSNResult>}
97
+ */
98
+ export const getCreatePasswordSN = params => {
99
+ return requestCloud({
100
+ api: "".concat(THING, ".m.device.dp.sn.get"),
101
+ version: '1.0',
102
+ data: params
103
+ });
104
+ };