@ray-js/api 0.5.6-beta-1 → 0.5.7-beta-2
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 +1 -25
- package/@types/BizKit.d.ts +38 -2
- package/@types/DeviceKit.d.ts +2197 -85
- package/@types/MiniKit.d.ts +1 -1
- package/lib/{BaseKit-2.5.1-anonymize.2.d.ts → BaseKit-3.0.0.d.ts} +0 -1
- package/lib/{BaseKit-2.5.1-anonymize.2.js → BaseKit-3.0.0.js} +0 -1
- package/lib/BizKit-3.0.1.d.ts +41 -0
- package/lib/{BizKit-2.4.6-rc.101.js → BizKit-3.0.1.js} +1 -0
- package/lib/{DeviceKit-2.5.2-anonymize.1.d.ts → DeviceKit-3.0.0.d.ts} +54 -1
- package/lib/{DeviceKit-2.5.2-anonymize.1.js → DeviceKit-3.0.0.js} +162 -3
- package/lib/{MiniKit-4.4.0-anonymize.4.d.ts → MiniKit-3.0.0.d.ts} +0 -0
- package/lib/{MiniKit-4.4.0-anonymize.4.js → MiniKit-3.0.0.js} +0 -0
- package/lib/all-kits.d.ts +5 -5
- package/lib/all-kits.js +5 -5
- package/lib/getApp/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getApp/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getBoundingClientRect/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getBoundingClientRect/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getCurrentPages/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getCurrentPages/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getElementById/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getElementById/{index.tuya.js → index.thing.js} +0 -0
- package/lib/getI18nInfo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/getI18nInfo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/hideTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/hideTabBar/{index.tuya.js → index.thing.js} +0 -0
- package/lib/navigateBack/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/navigateBack/{index.tuya.js → index.thing.js} +0 -0
- package/lib/navigateTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/navigateTo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/reLaunch/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/reLaunch/{index.tuya.js → index.thing.js} +0 -0
- package/lib/readFileSync/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/readFileSync/{index.tuya.js → index.thing.js} +0 -0
- package/lib/redirectTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/redirectTo/{index.tuya.js → index.thing.js} +0 -0
- package/lib/requestCloud/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/requestCloud/{index.tuya.js → index.thing.js} +0 -0
- package/lib/setNavigationBarColor/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/setNavigationBarColor/{index.tuya.js → index.thing.js} +0 -0
- package/lib/setNavigationBarTitle/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/setNavigationBarTitle/{index.tuya.js → index.thing.js} +0 -0
- package/lib/showTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/showTabBar/{index.tuya.js → index.thing.js} +0 -0
- package/lib/switchTab/{index.tuya.d.ts → index.thing.d.ts} +0 -0
- package/lib/switchTab/{index.tuya.js → index.thing.js} +0 -0
- package/package.json +8 -12
- package/lib/BizKit-2.4.6-rc.101.d.ts +0 -40
package/@types/BaseKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* BaseKit
|
3
3
|
*
|
4
|
-
* @version
|
4
|
+
* @version 3.0.0
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -209,25 +209,6 @@ declare namespace ty {
|
|
209
209
|
}) => void
|
210
210
|
}): void
|
211
211
|
|
212
|
-
/**
|
213
|
-
* 获取通用缓存路径
|
214
|
-
*/
|
215
|
-
export function getTempDirectory(params?: {
|
216
|
-
complete?: () => void
|
217
|
-
success?: (params: {
|
218
|
-
/** 【待废弃, 不建议使用】临时文件夹路径 */
|
219
|
-
tempDirectory: string
|
220
|
-
}) => void
|
221
|
-
fail?: (params: {
|
222
|
-
errorMsg: string
|
223
|
-
errorCode: string | number
|
224
|
-
innerError: {
|
225
|
-
errorCode: string | number
|
226
|
-
errorMsg: string
|
227
|
-
}
|
228
|
-
}) => void
|
229
|
-
}): void
|
230
|
-
|
231
212
|
/**
|
232
213
|
* 开始监听陀螺仪数据。
|
233
214
|
*/
|
@@ -1818,11 +1799,6 @@ declare namespace ty {
|
|
1818
1799
|
savedFilePath: string
|
1819
1800
|
}
|
1820
1801
|
|
1821
|
-
export type GetTempDirectoryCallback = {
|
1822
|
-
/** 【待废弃, 不建议使用】临时文件夹路径 */
|
1823
|
-
tempDirectory: string
|
1824
|
-
}
|
1825
|
-
|
1826
1802
|
export type FileStatsResponse = {
|
1827
1803
|
/** 文件列表 */
|
1828
1804
|
fileStatsList: FileStats[]
|
package/@types/BizKit.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* BizKit
|
3
3
|
*
|
4
|
-
* @version
|
4
|
+
* @version 3.0.1
|
5
5
|
*/
|
6
|
-
declare namespace ty
|
6
|
+
declare namespace ty {
|
7
7
|
/**
|
8
8
|
* atop接口
|
9
9
|
*/
|
@@ -657,6 +657,31 @@ declare namespace ty.biz {
|
|
657
657
|
}) => void
|
658
658
|
}): void
|
659
659
|
|
660
|
+
/**
|
661
|
+
* 获取用户信息
|
662
|
+
*/
|
663
|
+
export function getUserInfo(params?: {
|
664
|
+
complete?: () => void
|
665
|
+
success?: (params: {
|
666
|
+
/** nickName 用户昵称 */
|
667
|
+
nickName: string
|
668
|
+
/** 用户头像 */
|
669
|
+
avatarUrl: string
|
670
|
+
/** 国家代码 */
|
671
|
+
phoneCode: string
|
672
|
+
/** 是否是临时用户 */
|
673
|
+
isTemporaryUser: boolean
|
674
|
+
}) => void
|
675
|
+
failure?: (params: {
|
676
|
+
errorMsg: string
|
677
|
+
errorCode: string | number
|
678
|
+
innerError: {
|
679
|
+
errorCode: string | number
|
680
|
+
errorMsg: string
|
681
|
+
}
|
682
|
+
}) => void
|
683
|
+
}): void
|
684
|
+
|
660
685
|
/**
|
661
686
|
* 压缩图片, 在保持原图长宽比基础上先裁剪至目标尺寸, 然后根据文件大小限制去执行质量压缩
|
662
687
|
*/
|
@@ -1159,6 +1184,17 @@ declare namespace ty.biz {
|
|
1159
1184
|
shareChannelList: string[]
|
1160
1185
|
}
|
1161
1186
|
|
1187
|
+
export type UserInfoResult = {
|
1188
|
+
/** nickName 用户昵称 */
|
1189
|
+
nickName: string
|
1190
|
+
/** 用户头像 */
|
1191
|
+
avatarUrl: string
|
1192
|
+
/** 国家代码 */
|
1193
|
+
phoneCode: string
|
1194
|
+
/** 是否是临时用户 */
|
1195
|
+
isTemporaryUser: boolean
|
1196
|
+
}
|
1197
|
+
|
1162
1198
|
export type ImageResizeBean = {
|
1163
1199
|
/**
|
1164
1200
|
* 压缩参数
|