@ray-js/api 0.5.6-beta-1 → 0.5.7-beta-1

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * BaseKit
3
3
  *
4
- * @version 2.5.1-anonymize.2
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[]
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * BizKit
3
3
  *
4
- * @version 2.4.6-rc.101
4
+ * @version 3.0.1
5
5
  */
6
- declare namespace ty.biz {
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
  * 压缩参数