@ray-js/api 1.7.79 → 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.
- package/@types/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/@types/api-extend.d.ts
CHANGED
|
@@ -391,12 +391,6 @@ declare namespace ty {
|
|
|
391
391
|
}
|
|
392
392
|
export function connectSocket(param: ConnectSocketProps): SocketTask
|
|
393
393
|
|
|
394
|
-
/**
|
|
395
|
-
* 判断小程序的API,回调,组件等是否可用 (BaseKit 需要 3.15.1 及以上版本)
|
|
396
|
-
* @param schema 使用 ${API}.${method}.${param}.${option} 或者 ${component}.${attribute}.${option} 方式来调用
|
|
397
|
-
* @returns 是否可用
|
|
398
|
-
*/
|
|
399
|
-
export function canIUse(schema: string): boolean
|
|
400
394
|
type IRegionCode = 'AY' | 'AZ' | 'EU' | 'IN' | 'UE' | 'WE' | 'RU'
|
|
401
395
|
|
|
402
396
|
/**
|
|
@@ -405,63 +399,6 @@ declare namespace ty {
|
|
|
405
399
|
*/
|
|
406
400
|
export function getRegionCode(): IRegionCode
|
|
407
401
|
|
|
408
|
-
export type StorageDataBean = {
|
|
409
|
-
/** 本地缓存中指定的 key */
|
|
410
|
-
key: string
|
|
411
|
-
/** 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。 */
|
|
412
|
-
data: any
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
*@description 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
|
|
416
|
-
*@error {6: 'The parameter format is incorrect'} | {7: 'API Internal processing failed'} | {10010: 'storage json syntax error'}*/
|
|
417
|
-
export function setStorage(params: {
|
|
418
|
-
/** 本地缓存中指定的 key */
|
|
419
|
-
key: string
|
|
420
|
-
/** 需要存储的内容。只支持原生类型、Date、及能够通过JSON.stringify序列化的对象。 */
|
|
421
|
-
data: any
|
|
422
|
-
success?: (params: null) => void
|
|
423
|
-
fail?: (params: {
|
|
424
|
-
errorMsg: string
|
|
425
|
-
errorCode: string | number
|
|
426
|
-
innerError: {
|
|
427
|
-
errorCode: string | number
|
|
428
|
-
errorMsg: string
|
|
429
|
-
}
|
|
430
|
-
}) => void
|
|
431
|
-
complete?: () => void
|
|
432
|
-
}): void
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
*@description 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
|
|
436
|
-
*@error {6: 'The parameter format is incorrect'} | {7: 'API Internal processing failed'} | {10010: 'storage json syntax error'}*/
|
|
437
|
-
export function setStorageSync(storageDataBean?: StorageDataBean): null
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
*@description 从本地缓存中异步获取指定 key 的内容
|
|
441
|
-
*@error {6: 'The parameter format is incorrect'}*/
|
|
442
|
-
export function getStorage(params: {
|
|
443
|
-
/** 本地缓存中指定的 key */
|
|
444
|
-
key: string
|
|
445
|
-
success?: (params: {
|
|
446
|
-
/** key对应的内容 */
|
|
447
|
-
data: any
|
|
448
|
-
}) => void
|
|
449
|
-
fail?: (params: {
|
|
450
|
-
errorMsg: string
|
|
451
|
-
errorCode: string | number
|
|
452
|
-
innerError: {
|
|
453
|
-
errorCode: string | number
|
|
454
|
-
errorMsg: string
|
|
455
|
-
}
|
|
456
|
-
}) => void
|
|
457
|
-
complete?: () => void
|
|
458
|
-
}): void
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
*@description 从本地缓存中异步获取指定 key 的内容
|
|
462
|
-
*@error {6: 'The parameter format is incorrect'}*/
|
|
463
|
-
export function getStorageSync(storageKeyBean?: StorageKeyBean): any
|
|
464
|
-
|
|
465
402
|
/**
|
|
466
403
|
* @description对页面内的唯一元素进行截图
|
|
467
404
|
* 基础库 2.23.0 开始支持
|