@ray-js/api 1.7.69 → 1.7.71
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 +5509 -610
- package/@types/AIStreamKit.d.ts +2641 -0
- package/@types/AVideoKit.d.ts +1827 -0
- package/@types/BaseKit.d.ts +8682 -1893
- package/@types/BizKit.d.ts +6639 -1038
- package/@types/CategoryCommonBizKit.d.ts +1459 -0
- package/@types/CommunityKit.d.ts +154 -0
- package/@types/DeviceKit.d.ts +18475 -5662
- package/@types/GroupCITestKit.d.ts +651 -0
- package/@types/HealthKit.d.ts +2290 -357
- package/@types/HomeKit.d.ts +4068 -182
- package/@types/IPCKit.d.ts +4327 -1227
- package/@types/LightKit.d.ts +125 -0
- package/@types/MapKit.d.ts +1560 -204
- package/@types/MediaKit.d.ts +136 -16
- package/@types/MediaPlayerKit.d.ts +47 -0
- package/@types/MiniKit.d.ts +2976 -628
- package/@types/OutdoorKit.d.ts +1337 -24
- package/@types/P2PKit.d.ts +622 -103
- package/@types/PayKit.d.ts +115 -0
- package/@types/PlayNetKit.d.ts +3454 -1309
- package/@types/SweeperKit.d.ts +154 -0
- package/@types/ThirdAuthKit.d.ts +324 -0
- package/@types/ThirdPartyDeviceKit.d.ts +410 -0
- package/@types/WearKit.d.ts +10177 -375
- package/@types/gateway.d.ts +349 -61
- package/@types/health.d.ts +486 -304
- package/lib/AIKit-1.6.0.d.ts +265 -41
- package/lib/AIKit-1.6.0.js +374 -120
- package/lib/BaseKit-3.17.7.d.ts +704 -0
- package/lib/BaseKit-3.17.7.js +720 -1
- package/lib/BizKit-4.10.4.d.ts +336 -0
- package/lib/BizKit-4.10.4.js +342 -5
- package/lib/DeviceKit-4.13.1.d.ts +996 -0
- package/lib/DeviceKit-4.13.1.js +1247 -249
- package/lib/HealthKit-6.5.0.d.ts +210 -44
- package/lib/HealthKit-6.5.0.js +295 -128
- package/lib/HomeKit-3.1.4.d.ts +20 -6
- package/lib/HomeKit-3.1.4.js +29 -14
- package/lib/IPCKit-6.4.5.d.ts +375 -77
- package/lib/IPCKit-6.4.5.js +525 -228
- package/lib/MapKit-3.4.13.d.ts +70 -16
- package/lib/MapKit-3.4.13.js +98 -47
- package/lib/MediaKit-3.4.1.d.ts +5 -3
- package/lib/MediaKit-3.4.1.js +7 -6
- package/lib/MiniKit-3.14.1.d.ts +300 -0
- package/lib/MiniKit-3.14.1.js +302 -0
- package/lib/OutdoorKit-1.0.4.d.ts +55 -13
- package/lib/OutdoorKit-1.0.4.js +78 -35
- package/lib/P2PKit-2.0.3.d.ts +125 -27
- package/lib/P2PKit-2.0.3.js +175 -78
- package/lib/PlayNetKit-1.3.30.d.ts +290 -60
- package/lib/PlayNetKit-1.3.30.js +407 -176
- package/lib/WearKit-1.1.6.d.ts +125 -27
- package/lib/WearKit-1.1.6.js +176 -77
- package/lib/all-kits.d.ts +10 -10
- package/lib/all-kits.js +10 -10
- package/lib/cloud/core.d.ts +31 -1
- package/lib/cloud/core.js +31 -1
- package/lib/cloud/device.d.ts +155 -24
- package/lib/cloud/device.js +153 -22
- package/lib/cloud/gateway.d.ts +254 -0
- package/lib/cloud/gateway.js +269 -9
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +121 -0
- package/lib/cloud/interface.d.ts +222 -44
- package/lib/cloud/interface.js +15 -2
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.js +28 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.d.ts +30 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.js +31 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.d.ts +39 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.d.ts +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.d.ts +35 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.js +29 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.js +1 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.js +25 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.d.ts +29 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.js +25 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.d.ts +26 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.js +1 -0
- package/lib/cloud/laser-clean/getVoiceList/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getVoiceList/index.js +29 -0
- package/lib/cloud/laser-clean/getVoiceList/type.d.ts +48 -0
- package/lib/cloud/laser-clean/getVoiceList/type.js +1 -0
- package/lib/cloud/laser-clean/index.d.ts +1 -1
- package/lib/cloud/laser-clean/index.js +1 -1
- package/lib/cloud/laser-clean/map.d.ts +5 -7
- package/lib/cloud/laser-clean/map.js +5 -9
- package/lib/cloud/laser-clean/record.d.ts +5 -6
- package/lib/cloud/laser-clean/record.js +5 -7
- package/lib/cloud/laser-clean/renameHistoryMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/renameHistoryMap/index.js +29 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.d.ts +9 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.js +1 -0
- package/lib/cloud/laser-clean/voice.d.ts +1 -3
- package/lib/cloud/laser-clean/voice.js +1 -4
- package/lib/cloud/linkage.d.ts +271 -53
- package/lib/cloud/linkage.js +256 -51
- package/lib/cloud/remoteGroup.d.ts +37 -0
- package/lib/cloud/remoteGroup.js +37 -0
- package/lib/cloud/timer.d.ts +104 -26
- package/lib/cloud/timer.js +104 -26
- package/lib/getApp/index.thing.d.ts +47 -1
- package/lib/getApp/index.thing.js +40 -2
- package/lib/getBoundingClientRect/index.thing.d.ts +101 -1
- package/lib/getBoundingClientRect/index.thing.js +59 -0
- package/lib/getCurrentPages/index.thing.d.ts +40 -15
- package/lib/getCurrentPages/index.thing.js +36 -15
- package/lib/getCustomConfig/index.d.ts +5 -2
- package/lib/getCustomConfig/index.thing.d.ts +68 -2
- package/lib/getCustomConfig/index.thing.js +62 -0
- package/lib/getCustomConfig/index.wechat.d.ts +5 -2
- package/lib/getCustomConfig/type.d.ts +26 -15
- package/lib/getElementById/index.thing.d.ts +42 -1
- package/lib/getElementById/index.thing.js +40 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -2
- package/lib/nativeRouters/common.d.ts +8 -0
- package/lib/nativeRouters/device.d.ts +137 -5
- package/lib/nativeRouters/device.js +138 -6
- package/lib/nativeRouters/gw.d.ts +58 -8
- package/lib/nativeRouters/gw.js +57 -8
- package/lib/nativeRouters/outdoors.d.ts +16 -3
- package/lib/nativeRouters/outdoors.js +16 -3
- package/lib/nativeRouters/remoteGroup.d.ts +23 -0
- package/lib/nativeRouters/remoteGroup.js +23 -0
- package/lib/nativeRouters/root.d.ts +19 -0
- package/lib/nativeRouters/root.js +17 -0
- package/lib/openGroupCreate/index.d.ts +45 -0
- package/lib/openGroupCreate/index.js +32 -0
- package/package.json +5 -5
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DeleteMultipleMapFilesParams } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 删除扫地机的历史地图文件
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.36
|
|
6
|
+
* @since 基础库 2.21.0
|
|
7
|
+
* @param params - 请求参数,包含设备 ID 和要删除的文件 ID 数组
|
|
8
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, deleteMultipleMapFiles } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleDelete = async () => {
|
|
16
|
+
* const success = await deleteMultipleMapFiles({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* fileIds: [2001, 2002],
|
|
19
|
+
* });
|
|
20
|
+
* console.log('删除结果:', success);
|
|
21
|
+
* };
|
|
22
|
+
* return <Button onClick={handleDelete}>删除历史地图</Button>;
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const deleteMultipleMapFiles: (params: DeleteMultipleMapFilesParams) => Promise<boolean>;
|
|
27
|
+
export default deleteMultipleMapFiles;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 删除扫地机的历史地图文件
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.5.36
|
|
5
|
+
* @since 基础库 2.21.0
|
|
6
|
+
* @param params - 请求参数,包含设备 ID 和要删除的文件 ID 数组
|
|
7
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, deleteMultipleMapFiles } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleDelete = async () => {
|
|
15
|
+
* const success = await deleteMultipleMapFiles({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* fileIds: [2001, 2002],
|
|
18
|
+
* });
|
|
19
|
+
* console.log('删除结果:', success);
|
|
20
|
+
* };
|
|
21
|
+
* return <Button onClick={handleDelete}>删除历史地图</Button>;
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const deleteMultipleMapFiles = function (params) {
|
|
26
|
+
return ty.deleteMultipleMapFiles(params);
|
|
27
|
+
};
|
|
28
|
+
export default deleteMultipleMapFiles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { GetCleaningRecordsParams, GetCleaningRecordsResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取清扫记录列表
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.36
|
|
6
|
+
* @since 基础库 2.21.0
|
|
7
|
+
* @param params - 查询参数,包含设备 ID、时间范围和分页信息
|
|
8
|
+
* @returns Promise,resolve 值为清扫记录列表和总数
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getCleaningRecords } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const result = await getCleaningRecords({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* startTime: '1700000000',
|
|
19
|
+
* endTime: '1700086400',
|
|
20
|
+
* offset: 0,
|
|
21
|
+
* limit: 10,
|
|
22
|
+
* });
|
|
23
|
+
* console.log(result.datas, result.totalCount);
|
|
24
|
+
* };
|
|
25
|
+
* return <Button onClick={handleFetch}>获取清扫记录</Button>;
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const getCleaningRecords: (params: GetCleaningRecordsParams) => Promise<GetCleaningRecordsResponse>;
|
|
30
|
+
export default getCleaningRecords;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取清扫记录列表
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.5.36
|
|
5
|
+
* @since 基础库 2.21.0
|
|
6
|
+
* @param params - 查询参数,包含设备 ID、时间范围和分页信息
|
|
7
|
+
* @returns Promise,resolve 值为清扫记录列表和总数
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getCleaningRecords } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const result = await getCleaningRecords({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* startTime: '1700000000',
|
|
18
|
+
* endTime: '1700086400',
|
|
19
|
+
* offset: 0,
|
|
20
|
+
* limit: 10,
|
|
21
|
+
* });
|
|
22
|
+
* console.log(result.datas, result.totalCount);
|
|
23
|
+
* };
|
|
24
|
+
* return <Button onClick={handleFetch}>获取清扫记录</Button>;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
const getCleaningRecords = function (params) {
|
|
29
|
+
return ty.getCleaningRecords(params);
|
|
30
|
+
};
|
|
31
|
+
export default getCleaningRecords;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** 单条清扫记录 */
|
|
2
|
+
export interface CleaningRecord {
|
|
3
|
+
/** 清扫记录唯一 ID */
|
|
4
|
+
id: number;
|
|
5
|
+
/** 清扫时间戳 */
|
|
6
|
+
time: number;
|
|
7
|
+
/** 清扫记录文件路径 */
|
|
8
|
+
file: string;
|
|
9
|
+
/** 文件所在存储桶 */
|
|
10
|
+
bucket: string;
|
|
11
|
+
/** 清扫信息(扩展字段) */
|
|
12
|
+
extend: string;
|
|
13
|
+
/** 设备 ID */
|
|
14
|
+
devId: string;
|
|
15
|
+
/** 文件类型 */
|
|
16
|
+
fileType: string;
|
|
17
|
+
}
|
|
18
|
+
/** 获取清扫记录列表的请求参数 */
|
|
19
|
+
export interface GetCleaningRecordsParams {
|
|
20
|
+
/** 设备 ID */
|
|
21
|
+
devId: string;
|
|
22
|
+
/** 开始时间(时间戳字符串) */
|
|
23
|
+
startTime: string;
|
|
24
|
+
/** 结束时间(时间戳字符串) */
|
|
25
|
+
endTime: string;
|
|
26
|
+
/** 返回的数据长度限制 */
|
|
27
|
+
limit: number;
|
|
28
|
+
/** 分页偏移量 */
|
|
29
|
+
offset: number;
|
|
30
|
+
/** 文件类型,默认 'pic' */
|
|
31
|
+
fileType?: string;
|
|
32
|
+
}
|
|
33
|
+
/** 获取清扫记录列表的返回值 */
|
|
34
|
+
export interface GetCleaningRecordsResponse {
|
|
35
|
+
/** 清扫记录列表 */
|
|
36
|
+
datas: CleaningRecord[];
|
|
37
|
+
/** 记录总数 */
|
|
38
|
+
totalCount: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GetGyroCleanRecordDetailParams, GetGyroCleanRecordDetailResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取陀螺仪扫地机的清扫记录详情
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.7.14
|
|
6
|
+
* @since 基础库 2.29.0
|
|
7
|
+
* @param params - 查询参数,包含设备 ID、子记录 ID 和分页信息
|
|
8
|
+
* @returns Promise,resolve 值为清扫记录的地图数据和分页信息
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getGyroCleanRecordDetail } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const detail = await getGyroCleanRecordDetail({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* subRecordId: 12345,
|
|
19
|
+
* start: 0,
|
|
20
|
+
* size: 100,
|
|
21
|
+
* });
|
|
22
|
+
* console.log(detail.dataList, detail.hasNext);
|
|
23
|
+
* };
|
|
24
|
+
* return <Button onClick={handleFetch}>获取记录详情</Button>;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const getGyroCleanRecordDetail: (params: GetGyroCleanRecordDetailParams) => Promise<GetGyroCleanRecordDetailResponse>;
|
|
29
|
+
export default getGyroCleanRecordDetail;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取陀螺仪扫地机的清扫记录详情
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.7.14
|
|
5
|
+
* @since 基础库 2.29.0
|
|
6
|
+
* @param params - 查询参数,包含设备 ID、子记录 ID 和分页信息
|
|
7
|
+
* @returns Promise,resolve 值为清扫记录的地图数据和分页信息
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getGyroCleanRecordDetail } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const detail = await getGyroCleanRecordDetail({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* subRecordId: 12345,
|
|
18
|
+
* start: 0,
|
|
19
|
+
* size: 100,
|
|
20
|
+
* });
|
|
21
|
+
* console.log(detail.dataList, detail.hasNext);
|
|
22
|
+
* };
|
|
23
|
+
* return <Button onClick={handleFetch}>获取记录详情</Button>;
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
const getGyroCleanRecordDetail = function (params) {
|
|
28
|
+
return ty.getGyroCleanRecordDetail(params);
|
|
29
|
+
};
|
|
30
|
+
export default getGyroCleanRecordDetail;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** 获取陀螺仪清扫记录详情的请求参数 */
|
|
2
|
+
export interface GetGyroCleanRecordDetailParams {
|
|
3
|
+
/** 设备 ID */
|
|
4
|
+
devId: string;
|
|
5
|
+
/** 子记录 ID */
|
|
6
|
+
subRecordId: number;
|
|
7
|
+
/** 起始行(startRow) */
|
|
8
|
+
start: number;
|
|
9
|
+
/** 每次获取的数据量 */
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
/** 获取陀螺仪清扫记录详情的返回值 */
|
|
13
|
+
export interface GetGyroCleanRecordDetailResponse {
|
|
14
|
+
/** 地图数据列表 */
|
|
15
|
+
dataList: string[];
|
|
16
|
+
/** 起始行标识 */
|
|
17
|
+
startRow: string;
|
|
18
|
+
/** 设备 ID */
|
|
19
|
+
devId: string;
|
|
20
|
+
/** 地图 ID */
|
|
21
|
+
mapId: number;
|
|
22
|
+
/** 清扫开始时间戳 */
|
|
23
|
+
startTime: number;
|
|
24
|
+
/** 清扫结束时间戳 */
|
|
25
|
+
endTime: number;
|
|
26
|
+
/** 子记录 ID */
|
|
27
|
+
subRecordId: number;
|
|
28
|
+
/** 是否有下一页 */
|
|
29
|
+
hasNext: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GetGyroCleanRecordsParams, GetGyroCleanRecordsResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取陀螺仪扫地机的清扫记录列表
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.7.14
|
|
6
|
+
* @since 基础库 2.29.0
|
|
7
|
+
* @param params - 查询参数,包含设备 ID、DP 点集合和分页信息
|
|
8
|
+
* @returns Promise,resolve 值为陀螺仪清扫记录列表和总数
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getGyroCleanRecords } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const result = await getGyroCleanRecords({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* dpIds: [101, 102],
|
|
19
|
+
* offset: 0,
|
|
20
|
+
* limit: 10,
|
|
21
|
+
* });
|
|
22
|
+
* console.log(result.datas, result.totalCount);
|
|
23
|
+
* };
|
|
24
|
+
* return <Button onClick={handleFetch}>获取陀螺仪记录</Button>;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const getGyroCleanRecords: (params: GetGyroCleanRecordsParams) => Promise<GetGyroCleanRecordsResponse>;
|
|
29
|
+
export default getGyroCleanRecords;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取陀螺仪扫地机的清扫记录列表
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.7.14
|
|
5
|
+
* @since 基础库 2.29.0
|
|
6
|
+
* @param params - 查询参数,包含设备 ID、DP 点集合和分页信息
|
|
7
|
+
* @returns Promise,resolve 值为陀螺仪清扫记录列表和总数
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getGyroCleanRecords } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const result = await getGyroCleanRecords({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* dpIds: [101, 102],
|
|
18
|
+
* offset: 0,
|
|
19
|
+
* limit: 10,
|
|
20
|
+
* });
|
|
21
|
+
* console.log(result.datas, result.totalCount);
|
|
22
|
+
* };
|
|
23
|
+
* return <Button onClick={handleFetch}>获取陀螺仪记录</Button>;
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
const getGyroCleanRecords = function (params) {
|
|
28
|
+
return ty.getGyroCleanRecords(params);
|
|
29
|
+
};
|
|
30
|
+
export default getGyroCleanRecords;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** 单条陀螺仪清扫记录 */
|
|
2
|
+
export interface GyroCleanRecord {
|
|
3
|
+
/** DP 点 ID */
|
|
4
|
+
dpId: number;
|
|
5
|
+
/** 地图 ID */
|
|
6
|
+
gid: number;
|
|
7
|
+
/** 记录创建时间戳 */
|
|
8
|
+
gmtCreate: number;
|
|
9
|
+
/** 记录 ID */
|
|
10
|
+
recordId: string;
|
|
11
|
+
/** 设备 UUID */
|
|
12
|
+
uuid: string;
|
|
13
|
+
/** 记录值 */
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
/** 获取陀螺仪扫地机清扫记录的请求参数 */
|
|
17
|
+
export interface GetGyroCleanRecordsParams {
|
|
18
|
+
/** 设备 ID */
|
|
19
|
+
devId: string;
|
|
20
|
+
/** DP 点 ID 集合 */
|
|
21
|
+
dpIds: number[];
|
|
22
|
+
/** 分页偏移量 */
|
|
23
|
+
offset: number;
|
|
24
|
+
/** 每页数量 */
|
|
25
|
+
limit: number;
|
|
26
|
+
/** 用户 ID,默认传 '0' */
|
|
27
|
+
userId?: string;
|
|
28
|
+
}
|
|
29
|
+
/** 获取陀螺仪扫地机清扫记录的返回值 */
|
|
30
|
+
export interface GetGyroCleanRecordsResponse {
|
|
31
|
+
/** 清扫记录列表 */
|
|
32
|
+
datas: GyroCleanRecord[];
|
|
33
|
+
/** 记录总数 */
|
|
34
|
+
totalCount: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GetGyroLatestCleanMapParams, GetGyroLatestCleanMapResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取陀螺仪扫地机的最新清扫地图数据
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.7.14
|
|
6
|
+
* @since 基础库 2.29.0
|
|
7
|
+
* @param params - 查询参数,包含设备 ID 和分页信息
|
|
8
|
+
* @returns Promise,resolve 值为最新一次清扫的地图数据和分页信息
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getGyroLatestCleanMap } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const map = await getGyroLatestCleanMap({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* start: 0,
|
|
19
|
+
* size: 100,
|
|
20
|
+
* });
|
|
21
|
+
* console.log(map.dataList, map.hasNext);
|
|
22
|
+
* };
|
|
23
|
+
* return <Button onClick={handleFetch}>获取最新地图</Button>;
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const getGyroLatestCleanMap: (params: GetGyroLatestCleanMapParams) => Promise<GetGyroLatestCleanMapResponse>;
|
|
28
|
+
export default getGyroLatestCleanMap;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取陀螺仪扫地机的最新清扫地图数据
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.7.14
|
|
5
|
+
* @since 基础库 2.29.0
|
|
6
|
+
* @param params - 查询参数,包含设备 ID 和分页信息
|
|
7
|
+
* @returns Promise,resolve 值为最新一次清扫的地图数据和分页信息
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getGyroLatestCleanMap } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const map = await getGyroLatestCleanMap({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* start: 0,
|
|
18
|
+
* size: 100,
|
|
19
|
+
* });
|
|
20
|
+
* console.log(map.dataList, map.hasNext);
|
|
21
|
+
* };
|
|
22
|
+
* return <Button onClick={handleFetch}>获取最新地图</Button>;
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
const getGyroLatestCleanMap = function (params) {
|
|
27
|
+
return ty.getGyroLatestCleanMap(params);
|
|
28
|
+
};
|
|
29
|
+
export default getGyroLatestCleanMap;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** 获取陀螺仪扫地机最新清扫地图的请求参数 */
|
|
2
|
+
export interface GetGyroLatestCleanMapParams {
|
|
3
|
+
/** 设备 ID */
|
|
4
|
+
devId: string;
|
|
5
|
+
/** 起始行(startRow) */
|
|
6
|
+
start: number;
|
|
7
|
+
/** 每次获取的数据量 */
|
|
8
|
+
size: number;
|
|
9
|
+
}
|
|
10
|
+
/** 获取陀螺仪扫地机最新清扫地图的返回值 */
|
|
11
|
+
export interface GetGyroLatestCleanMapResponse {
|
|
12
|
+
/** 地图数据列表 */
|
|
13
|
+
dataList: string[];
|
|
14
|
+
/** 起始行标识 */
|
|
15
|
+
startRow: string;
|
|
16
|
+
/** 设备 ID */
|
|
17
|
+
devId: string;
|
|
18
|
+
/** 地图 ID */
|
|
19
|
+
mapId: number;
|
|
20
|
+
/** 清扫开始时间戳 */
|
|
21
|
+
startTime: number;
|
|
22
|
+
/** 清扫结束时间戳 */
|
|
23
|
+
endTime: number;
|
|
24
|
+
/** 子记录 ID */
|
|
25
|
+
subRecordId: number;
|
|
26
|
+
/** 是否有下一页 */
|
|
27
|
+
hasNext: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GetMultipleMapFilesParams, GetMultipleMapFilesResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取扫地机的历史地图列表
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.36
|
|
6
|
+
* @since 基础库 2.21.0
|
|
7
|
+
* @param params - 请求参数,包含设备 ID
|
|
8
|
+
* @returns Promise,resolve 值为历史地图列表和总数
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getMultipleMapFiles } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const result = await getMultipleMapFiles({ devId: 'your-device-id' });
|
|
17
|
+
* console.log(result.datas, result.totalCount);
|
|
18
|
+
* };
|
|
19
|
+
* return <Button onClick={handleFetch}>获取历史地图</Button>;
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const getMultipleMapFiles: (params: GetMultipleMapFilesParams) => Promise<GetMultipleMapFilesResponse>;
|
|
24
|
+
export default getMultipleMapFiles;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取扫地机的历史地图列表
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.5.36
|
|
5
|
+
* @since 基础库 2.21.0
|
|
6
|
+
* @param params - 请求参数,包含设备 ID
|
|
7
|
+
* @returns Promise,resolve 值为历史地图列表和总数
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getMultipleMapFiles } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const result = await getMultipleMapFiles({ devId: 'your-device-id' });
|
|
16
|
+
* console.log(result.datas, result.totalCount);
|
|
17
|
+
* };
|
|
18
|
+
* return <Button onClick={handleFetch}>获取历史地图</Button>;
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const getMultipleMapFiles = function (params) {
|
|
23
|
+
return ty.getMultipleMapFiles(params);
|
|
24
|
+
};
|
|
25
|
+
export default getMultipleMapFiles;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** 单个历史地图文件信息 */
|
|
2
|
+
export interface MapFile {
|
|
3
|
+
/** 文件所在存储桶 */
|
|
4
|
+
bucket: string;
|
|
5
|
+
/** 文件附加信息 */
|
|
6
|
+
extend: string;
|
|
7
|
+
/** 文件时间戳 */
|
|
8
|
+
time: number;
|
|
9
|
+
/** 文件唯一标识符 */
|
|
10
|
+
id: number;
|
|
11
|
+
/** 文件路径或地址 */
|
|
12
|
+
file: string;
|
|
13
|
+
/** 关联设备 ID */
|
|
14
|
+
devId: string;
|
|
15
|
+
/** 文件类型 */
|
|
16
|
+
fileType: string;
|
|
17
|
+
}
|
|
18
|
+
/** 获取扫地机历史地图的请求参数 */
|
|
19
|
+
export interface GetMultipleMapFilesParams {
|
|
20
|
+
/** 设备 ID */
|
|
21
|
+
devId: string;
|
|
22
|
+
}
|
|
23
|
+
/** 获取扫地机历史地图的返回值 */
|
|
24
|
+
export interface GetMultipleMapFilesResponse {
|
|
25
|
+
/** 历史地图列表 */
|
|
26
|
+
datas: MapFile[];
|
|
27
|
+
/** 数据总数 */
|
|
28
|
+
totalCount: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GetSweeperStorageConfigParams, GetSweeperStorageConfigResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取扫地机云存储配置
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.40
|
|
6
|
+
* @since 基础库 2.23.0
|
|
7
|
+
* @param params - 请求参数,包含设备 ID 和可选的存储类型
|
|
8
|
+
* @returns Promise,resolve 值为云存储凭证(ak/sk/token)及桶信息
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getSweeperStorageConfig } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const config = await getSweeperStorageConfig({ devId: 'your-device-id' });
|
|
17
|
+
* console.log(config.bucket, config.endpoint, config.expiration);
|
|
18
|
+
* };
|
|
19
|
+
* return <Button onClick={handleFetch}>获取云存储配置</Button>;
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const getSweeperStorageConfig: (params: GetSweeperStorageConfigParams) => Promise<GetSweeperStorageConfigResponse>;
|
|
24
|
+
export default getSweeperStorageConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取扫地机云存储配置
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.5.40
|
|
5
|
+
* @since 基础库 2.23.0
|
|
6
|
+
* @param params - 请求参数,包含设备 ID 和可选的存储类型
|
|
7
|
+
* @returns Promise,resolve 值为云存储凭证(ak/sk/token)及桶信息
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, getSweeperStorageConfig } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleFetch = async () => {
|
|
15
|
+
* const config = await getSweeperStorageConfig({ devId: 'your-device-id' });
|
|
16
|
+
* console.log(config.bucket, config.endpoint, config.expiration);
|
|
17
|
+
* };
|
|
18
|
+
* return <Button onClick={handleFetch}>获取云存储配置</Button>;
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
const getSweeperStorageConfig = function (params) {
|
|
23
|
+
return ty.getSweeperStorageConfig(params);
|
|
24
|
+
};
|
|
25
|
+
export default getSweeperStorageConfig;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** 获取云存储配置的请求参数 */
|
|
2
|
+
export interface GetSweeperStorageConfigParams {
|
|
3
|
+
/** 设备 ID */
|
|
4
|
+
devId: string;
|
|
5
|
+
/** 存储类型,默认 'Common' */
|
|
6
|
+
type?: string;
|
|
7
|
+
}
|
|
8
|
+
/** 云存储配置信息 */
|
|
9
|
+
export interface GetSweeperStorageConfigResponse {
|
|
10
|
+
/** 访问密钥 ID */
|
|
11
|
+
ak: string;
|
|
12
|
+
/** 存储桶名称 */
|
|
13
|
+
bucket: string;
|
|
14
|
+
/** 访问密钥 Secret */
|
|
15
|
+
sk: string;
|
|
16
|
+
/** 临时令牌 */
|
|
17
|
+
token: string;
|
|
18
|
+
/** 服务端点 */
|
|
19
|
+
endpoint: string;
|
|
20
|
+
/** 令牌过期时间 */
|
|
21
|
+
expiration: string;
|
|
22
|
+
/** 生命周期(秒) */
|
|
23
|
+
lifeCycle: number;
|
|
24
|
+
/** 存储区域 */
|
|
25
|
+
region: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GetVoiceListParams, GetVoiceListResponse } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 获取扫地机的语音包列表
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.36
|
|
6
|
+
* @since 基础库 2.21.0
|
|
7
|
+
* @param params - 查询参数,包含设备 ID 和分页信息
|
|
8
|
+
* @returns Promise,resolve 值为语音包列表、当前页码和总数
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, getVoiceList } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleFetch = async () => {
|
|
16
|
+
* const result = await getVoiceList({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* offset: 0,
|
|
19
|
+
* limit: 100,
|
|
20
|
+
* });
|
|
21
|
+
* console.log(result.datas, result.totalCount);
|
|
22
|
+
* };
|
|
23
|
+
* return <Button onClick={handleFetch}>获取语音包列表</Button>;
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare const getVoiceList: (params: GetVoiceListParams) => Promise<GetVoiceListResponse>;
|
|
28
|
+
export default getVoiceList;
|