@ray-js/api 1.7.56-beta.2 → 1.7.56
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/DeviceKit.d.ts +33 -0
- package/LICENSE.md +9 -0
- package/lib/DeviceKit-4.13.1.d.ts +2 -0
- package/lib/DeviceKit-4.13.1.js +8 -0
- package/package.json +5 -5
package/@types/DeviceKit.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ interface BackupNetworkContext {
|
|
|
144
144
|
}) => void;
|
|
145
145
|
}
|
|
146
146
|
declare namespace ty.device {
|
|
147
|
+
|
|
147
148
|
/**
|
|
148
149
|
*@description 创建内部 DeviceNetworkManager 上下文*/
|
|
149
150
|
export function getDeviceNetworkManager(params: {
|
|
@@ -1334,6 +1335,38 @@ declare namespace ty.device {
|
|
|
1334
1335
|
complete?: () => void
|
|
1335
1336
|
}): void
|
|
1336
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
*@description 使用设备密钥加密信息
|
|
1340
|
+
*/
|
|
1341
|
+
export function aes128EncryptedStringWithPassword(params: {
|
|
1342
|
+
/** 设备id */
|
|
1343
|
+
deviceId: string
|
|
1344
|
+
/** 内容 */
|
|
1345
|
+
password: string
|
|
1346
|
+
success?: (params: null) => void
|
|
1347
|
+
fail?: (params: {
|
|
1348
|
+
errorMsg: string
|
|
1349
|
+
errorCode: string | number
|
|
1350
|
+
}) => void
|
|
1351
|
+
complete?: () => void
|
|
1352
|
+
})
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* @description 使用设备密钥解密信息
|
|
1356
|
+
*/
|
|
1357
|
+
export function aes128DecryptedStringWithPassword(params: {
|
|
1358
|
+
/** 设备id */
|
|
1359
|
+
deviceId: string
|
|
1360
|
+
/** 内容 */
|
|
1361
|
+
password: string
|
|
1362
|
+
success?: (params: null) => void
|
|
1363
|
+
fail?: (params: {
|
|
1364
|
+
errorMsg: string
|
|
1365
|
+
errorCode: string | number
|
|
1366
|
+
}) => void
|
|
1367
|
+
complete?: () => void
|
|
1368
|
+
})
|
|
1369
|
+
|
|
1337
1370
|
/**
|
|
1338
1371
|
*@description 大禹通道单设备启用/关闭配置更新*/
|
|
1339
1372
|
export function yuChannelSaveState(params: {
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright © 2014-2022 Tuya.inc
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -244,4 +244,6 @@ export declare const subDeviceReplace: typeof ty.device.subDeviceReplace;
|
|
|
244
244
|
export declare const fetchReplacementOutcomeJobModel: typeof ty.device.fetchReplacementOutcomeJobModel;
|
|
245
245
|
export declare const getMeshDeviceIdHex: typeof ty.device.getMeshDeviceIdHex;
|
|
246
246
|
export declare const onSubDeviceReplaceResult: typeof ty.device.onSubDeviceReplaceResult;
|
|
247
|
+
export declare const aes128EncryptedStringWithPassword: typeof ty.device.aes128EncryptedStringWithPassword;
|
|
248
|
+
export declare const aes128DecryptedStringWithPassword: typeof ty.device.aes128DecryptedStringWithPassword;
|
|
247
249
|
export declare const getDeviceNetworkManager: typeof ty.device.getDeviceNetworkManager;
|
package/lib/DeviceKit-4.13.1.js
CHANGED
|
@@ -757,6 +757,14 @@ export const onSubDeviceReplaceResult = factory('onSubDeviceReplaceResult', {
|
|
|
757
757
|
"namespace": "device"
|
|
758
758
|
});
|
|
759
759
|
|
|
760
|
+
// 4.15.15 新增
|
|
761
|
+
export const aes128EncryptedStringWithPassword = factory('aes128EncryptedStringWithPassword', {
|
|
762
|
+
"namespace": "device"
|
|
763
|
+
});
|
|
764
|
+
export const aes128DecryptedStringWithPassword = factory('aes128DecryptedStringWithPassword', {
|
|
765
|
+
"namespace": "device"
|
|
766
|
+
});
|
|
767
|
+
|
|
760
768
|
// 4.20.7 新增
|
|
761
769
|
export const getDeviceNetworkManager = factory('getDeviceNetworkManager', {
|
|
762
770
|
"namespace": "device"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/api",
|
|
3
|
-
"version": "1.7.56
|
|
3
|
+
"version": "1.7.56",
|
|
4
4
|
"description": "Ray universal api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"watch": "ray start --type=component"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ray-js/framework": "1.7.56
|
|
33
|
-
"@ray-js/router": "1.7.56
|
|
32
|
+
"@ray-js/framework": "1.7.56",
|
|
33
|
+
"@ray-js/router": "1.7.56",
|
|
34
34
|
"base64-browser": "^1.0.1",
|
|
35
35
|
"query-string": "^7.1.3"
|
|
36
36
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ray-js/wechat": "^0.3.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@ray-js/cli": "1.7.56
|
|
41
|
+
"@ray-js/cli": "1.7.56",
|
|
42
42
|
"art-template": "^4.13.4",
|
|
43
43
|
"fs-extra": "^10.1.0",
|
|
44
44
|
"miniprogram-api-typings": "^3.12.3",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public",
|
|
49
49
|
"registry": "https://registry.npmjs.org"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1cea5f9cd86e0fcf170de355449135ed3773cc3d"
|
|
52
52
|
}
|