@ray-js/api 1.7.78 → 1.7.80

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 (56) hide show
  1. package/@types/AIKit.d.ts +1140 -1009
  2. package/@types/AVideoKit.d.ts +26 -101
  3. package/@types/BaseKit.d.ts +234 -210
  4. package/@types/BizKit.d.ts +271 -296
  5. package/@types/DeviceKit.d.ts +57 -88
  6. package/@types/GroupCITestKit.d.ts +1 -3
  7. package/@types/HealthKit.d.ts +273 -230
  8. package/@types/HomeKit.d.ts +1062 -891
  9. package/@types/IPCKit.d.ts +23 -50
  10. package/@types/LightKit.d.ts +2 -2
  11. package/@types/MapKit.d.ts +592 -381
  12. package/@types/MediaPlayerKit.d.ts +4 -28
  13. package/@types/MiniKit.d.ts +198 -375
  14. package/@types/P2PKit.d.ts +139 -205
  15. package/@types/PayKit.d.ts +10 -79
  16. package/@types/SweeperKit.d.ts +10 -10
  17. package/@types/ThirdAuthKit.d.ts +28 -252
  18. package/@types/WearKit.d.ts +630 -1593
  19. package/@types/api-extend.d.ts +15 -63
  20. package/lib/AIKit-1.6.0.d.ts +732 -35
  21. package/lib/AIKit-1.6.0.js +732 -51
  22. package/lib/BaseKit-3.17.7.d.ts +0 -214
  23. package/lib/BaseKit-3.17.7.js +1 -227
  24. package/lib/DeviceKit-4.13.1.d.ts +3666 -0
  25. package/lib/DeviceKit-4.13.1.js +3666 -0
  26. package/lib/HealthKit-6.5.0.d.ts +603 -0
  27. package/lib/HealthKit-6.5.0.js +603 -0
  28. package/lib/HomeKit-3.1.4.d.ts +4 -0
  29. package/lib/HomeKit-3.1.4.js +4 -0
  30. package/lib/IPCKit-6.4.5.d.ts +0 -1
  31. package/lib/IPCKit-6.4.5.js +0 -1
  32. package/lib/MapKit-3.4.13.d.ts +251 -0
  33. package/lib/MapKit-3.4.13.js +251 -0
  34. package/lib/MediaKit-3.4.1.d.ts +16 -0
  35. package/lib/MediaKit-3.4.1.js +16 -0
  36. package/lib/PlayNetKit-1.3.30.d.ts +930 -0
  37. package/lib/PlayNetKit-1.3.30.js +930 -0
  38. package/lib/cloud/alarm.d.ts +38 -5
  39. package/lib/cloud/alarm.js +38 -5
  40. package/lib/cloud/device.d.ts +42 -6
  41. package/lib/cloud/device.js +42 -6
  42. package/lib/cloud/gateway.d.ts +16 -0
  43. package/lib/cloud/gateway.js +16 -0
  44. package/lib/cloud/health.d.ts +1 -0
  45. package/lib/cloud/health.js +272 -0
  46. package/lib/cloud/interface.d.ts +161 -0
  47. package/lib/cloud/interface.js +18 -0
  48. package/lib/cloud/statistic.d.ts +112 -26
  49. package/lib/cloud/statistic.js +112 -26
  50. package/lib/cloud/timer.d.ts +2 -4
  51. package/lib/nativeRouters/outdoors.d.ts +2 -0
  52. package/lib/nativeRouters/outdoors.js +2 -0
  53. package/lib/nativeRouters/remoteGroup.d.ts +2 -0
  54. package/lib/nativeRouters/remoteGroup.js +2 -0
  55. package/lib/panel/publishDps.js +1 -1
  56. package/package.json +5 -5
@@ -265,6 +265,21 @@ interface IpcContext {
265
265
  verticalStripAspect: number;
266
266
  },
267
267
  ): void;
268
+ /**
269
+ * 设置是否锁定 VR 球面画面(重力感应)
270
+ * @param options.locked - 是否锁定重力感应
271
+ */
272
+ setVRViewLocked(options: Callback & { locked: boolean }): void;
273
+ /**
274
+ * 获取 VR 球面画面锁定状态
275
+ */
276
+ getVRViewLocked(options: Callback): void;
277
+ /**
278
+ * 图片展示(VR)
279
+ * @param options.path - 图片远程路径
280
+ * @param options.encryptKey - 图片加密 key
281
+ */
282
+ displayVRImage(options: Callback & { path: string; encryptKey: string }): void;
268
283
  }
269
284
 
270
285
  interface CameraContext {
@@ -376,12 +391,6 @@ declare namespace ty {
376
391
  }
377
392
  export function connectSocket(param: ConnectSocketProps): SocketTask
378
393
 
379
- /**
380
- * 判断小程序的API,回调,组件等是否可用 (BaseKit 需要 3.15.1 及以上版本)
381
- * @param schema 使用 ${API}.${method}.${param}.${option} 或者 ${component}.${attribute}.${option} 方式来调用
382
- * @returns 是否可用
383
- */
384
- export function canIUse(schema: string): boolean
385
394
  type IRegionCode = 'AY' | 'AZ' | 'EU' | 'IN' | 'UE' | 'WE' | 'RU'
386
395
 
387
396
  /**
@@ -390,63 +399,6 @@ declare namespace ty {
390
399
  */
391
400
  export function getRegionCode(): IRegionCode
392
401
 
393
- export type StorageDataBean = {
394
- /** 本地缓存中指定的 key */
395
- key: string
396
- /** 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。 */
397
- data: any
398
- }
399
- /**
400
- *@description 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
401
- *@error {6: 'The parameter format is incorrect'} | {7: 'API Internal processing failed'} | {10010: 'storage json syntax error'}*/
402
- export function setStorage(params: {
403
- /** 本地缓存中指定的 key */
404
- key: string
405
- /** 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。 */
406
- data: any
407
- success?: (params: null) => void
408
- fail?: (params: {
409
- errorMsg: string
410
- errorCode: string | number
411
- innerError: {
412
- errorCode: string | number
413
- errorMsg: string
414
- }
415
- }) => void
416
- complete?: () => void
417
- }): void
418
-
419
- /**
420
- *@description 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
421
- *@error {6: 'The parameter format is incorrect'} | {7: 'API Internal processing failed'} | {10010: 'storage json syntax error'}*/
422
- export function setStorageSync(storageDataBean?: StorageDataBean): null
423
-
424
- /**
425
- *@description 从本地缓存中异步获取指定 key 的内容
426
- *@error {6: 'The parameter format is incorrect'}*/
427
- export function getStorage(params: {
428
- /** 本地缓存中指定的 key */
429
- key: string
430
- success?: (params: {
431
- /** key对应的内容 */
432
- data: any
433
- }) => void
434
- fail?: (params: {
435
- errorMsg: string
436
- errorCode: string | number
437
- innerError: {
438
- errorCode: string | number
439
- errorMsg: string
440
- }
441
- }) => void
442
- complete?: () => void
443
- }): void
444
-
445
- /**
446
- *@description 从本地缓存中异步获取指定 key 的内容
447
- *@error {6: 'The parameter format is incorrect'}*/
448
- export function getStorageSync(storageKeyBean?: StorageKeyBean): any
449
-
450
402
  /**
451
403
  * @description对页面内的唯一元素进行截图
452
404
  * 基础库 2.23.0 开始支持