@ray-js/api 1.7.4-beta.0 → 1.7.5
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/HealthKit.d.ts +121 -1
- package/lib/{HealthKit-5.18.4.d.ts → HealthKit-6.5.0.d.ts} +2 -0
- package/lib/{HealthKit-5.18.4.js → HealthKit-6.5.0.js} +6 -2
- package/lib/cloud/index.d.ts +0 -1
- package/lib/cloud/index.js +0 -1
- package/lib/cloud/interface.d.ts +0 -471
- package/lib/cloud/interface.js +1 -47
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +5 -5
- package/lib/cloud/highlights.d.ts +0 -120
- package/lib/cloud/highlights.js +0 -257
package/@types/HealthKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* HealthKit
|
3
3
|
*
|
4
|
-
* @version 5.
|
4
|
+
* @version 6.5.0
|
5
5
|
*/
|
6
6
|
declare namespace ty.health {
|
7
7
|
/**
|
@@ -1068,6 +1068,111 @@ declare namespace ty.health {
|
|
1068
1068
|
value: Object[]
|
1069
1069
|
}
|
1070
1070
|
|
1071
|
+
/**
|
1072
|
+
*@description 获取体脂秤算法数据*/
|
1073
|
+
export function queryBodyFatScaleAlgorithm(params: {
|
1074
|
+
/** 性别(1-男、2-女) */
|
1075
|
+
sex: number
|
1076
|
+
/** 体重(单位kg) */
|
1077
|
+
weight: number
|
1078
|
+
/** 阻抗 */
|
1079
|
+
imp: number
|
1080
|
+
/** 身高(单位cm) */
|
1081
|
+
height: number
|
1082
|
+
/** 生日(13位、毫秒) */
|
1083
|
+
birthday: number
|
1084
|
+
/** 测量时间(13位、毫秒) */
|
1085
|
+
time: number
|
1086
|
+
success?: (params: {
|
1087
|
+
/** bmi */
|
1088
|
+
bmi: string
|
1089
|
+
/** 体脂率 */
|
1090
|
+
fat: string
|
1091
|
+
/** 水份率 */
|
1092
|
+
water: string
|
1093
|
+
/** 肌肉量 */
|
1094
|
+
muscle: string
|
1095
|
+
/** 蛋白率 */
|
1096
|
+
protein: string
|
1097
|
+
/** 骨量 */
|
1098
|
+
bones: string
|
1099
|
+
/** 基础代谢率 */
|
1100
|
+
metabolism: string
|
1101
|
+
/** 身体年龄 */
|
1102
|
+
bodyAge: string
|
1103
|
+
/** 身体得分 */
|
1104
|
+
bodyScore: string
|
1105
|
+
/** 内脂肪等级 */
|
1106
|
+
visceralFat: string
|
1107
|
+
/** 体型 */
|
1108
|
+
bodyType: string
|
1109
|
+
/** 去脂指数 */
|
1110
|
+
ffm: string
|
1111
|
+
/** 脂肪量 */
|
1112
|
+
fatMass: string
|
1113
|
+
/** 体脂指数 */
|
1114
|
+
bodyFatIndex: string
|
1115
|
+
/** 肥胖等级 */
|
1116
|
+
fatLevel: string
|
1117
|
+
/** 标准体重 */
|
1118
|
+
standardWeight: string
|
1119
|
+
/** 体重控制 */
|
1120
|
+
weightControl: string
|
1121
|
+
/** 肌肉率 */
|
1122
|
+
muscleRatio: string
|
1123
|
+
}) => void
|
1124
|
+
fail?: (params: {
|
1125
|
+
errorMsg: string
|
1126
|
+
errorCode: string | number
|
1127
|
+
innerError: {
|
1128
|
+
errorCode: string | number
|
1129
|
+
errorMsg: string
|
1130
|
+
}
|
1131
|
+
}) => void
|
1132
|
+
complete?: () => void
|
1133
|
+
}): void
|
1134
|
+
|
1135
|
+
/**
|
1136
|
+
*@description 获取体脂秤算法数据*/
|
1137
|
+
export function queryBodyFatScaleAlgorithmSync(request?: BodyScaleParam): {
|
1138
|
+
/** bmi */
|
1139
|
+
bmi: string
|
1140
|
+
/** 体脂率 */
|
1141
|
+
fat: string
|
1142
|
+
/** 水份率 */
|
1143
|
+
water: string
|
1144
|
+
/** 肌肉量 */
|
1145
|
+
muscle: string
|
1146
|
+
/** 蛋白率 */
|
1147
|
+
protein: string
|
1148
|
+
/** 骨量 */
|
1149
|
+
bones: string
|
1150
|
+
/** 基础代谢率 */
|
1151
|
+
metabolism: string
|
1152
|
+
/** 身体年龄 */
|
1153
|
+
bodyAge: string
|
1154
|
+
/** 身体得分 */
|
1155
|
+
bodyScore: string
|
1156
|
+
/** 内脂肪等级 */
|
1157
|
+
visceralFat: string
|
1158
|
+
/** 体型 */
|
1159
|
+
bodyType: string
|
1160
|
+
/** 去脂指数 */
|
1161
|
+
ffm: string
|
1162
|
+
/** 脂肪量 */
|
1163
|
+
fatMass: string
|
1164
|
+
/** 体脂指数 */
|
1165
|
+
bodyFatIndex: string
|
1166
|
+
/** 肥胖等级 */
|
1167
|
+
fatLevel: string
|
1168
|
+
/** 标准体重 */
|
1169
|
+
standardWeight: string
|
1170
|
+
/** 体重控制 */
|
1171
|
+
weightControl: string
|
1172
|
+
/** 肌肉率 */
|
1173
|
+
muscleRatio: string
|
1174
|
+
}
|
1175
|
+
|
1071
1176
|
export type RecordParams = {
|
1072
1177
|
/** RecordData数据列表的json array字符串 */
|
1073
1178
|
request: string
|
@@ -1118,4 +1223,19 @@ declare namespace ty.health {
|
|
1118
1223
|
}
|
1119
1224
|
|
1120
1225
|
export type Object = {}
|
1226
|
+
|
1227
|
+
export type BodyScaleParam = {
|
1228
|
+
/** 性别(1-男、2-女) */
|
1229
|
+
sex: number
|
1230
|
+
/** 体重(单位kg) */
|
1231
|
+
weight: number
|
1232
|
+
/** 阻抗 */
|
1233
|
+
imp: number
|
1234
|
+
/** 身高(单位cm) */
|
1235
|
+
height: number
|
1236
|
+
/** 生日(13位、毫秒) */
|
1237
|
+
birthday: number
|
1238
|
+
/** 测量时间(13位、毫秒) */
|
1239
|
+
time: number
|
1240
|
+
}
|
1121
1241
|
}
|
@@ -39,4 +39,6 @@ export declare const health: {
|
|
39
39
|
saveCategoryNoTimeWithDataSync: typeof ty.health.saveCategoryNoTimeWithDataSync;
|
40
40
|
readCategoryDataWithType: typeof ty.health.readCategoryDataWithType;
|
41
41
|
readCategoryDataWithTypeSync: typeof ty.health.readCategoryDataWithTypeSync;
|
42
|
+
queryBodyFatScaleAlgorithm: typeof ty.health.queryBodyFatScaleAlgorithm;
|
43
|
+
queryBodyFatScaleAlgorithmSync: typeof ty.health.queryBodyFatScaleAlgorithmSync;
|
42
44
|
};
|
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
import { createFactory } from './utils';
|
4
4
|
const factory = createFactory('HealthKit');
|
5
|
-
|
6
|
-
// ray 1.6.17 集成
|
7
5
|
export const health = {
|
8
6
|
getHealthConnectStatus: factory('getHealthConnectStatus', {
|
9
7
|
namespace: 'health'
|
@@ -124,5 +122,11 @@ export const health = {
|
|
124
122
|
}),
|
125
123
|
readCategoryDataWithTypeSync: factory('readCategoryDataWithTypeSync', {
|
126
124
|
namespace: 'health'
|
125
|
+
}),
|
126
|
+
queryBodyFatScaleAlgorithm: factory('queryBodyFatScaleAlgorithm', {
|
127
|
+
namespace: 'health'
|
128
|
+
}),
|
129
|
+
queryBodyFatScaleAlgorithmSync: factory('queryBodyFatScaleAlgorithmSync', {
|
130
|
+
namespace: 'health'
|
127
131
|
})
|
128
132
|
};
|
package/lib/cloud/index.d.ts
CHANGED
package/lib/cloud/index.js
CHANGED
package/lib/cloud/interface.d.ts
CHANGED
@@ -1421,475 +1421,4 @@ export type IGetZigbeeLocalGroupDeviceListResponse = Array<{
|
|
1421
1421
|
*/
|
1422
1422
|
gwOnline: boolean;
|
1423
1423
|
}>;
|
1424
|
-
export type QueryGetMessageList = {
|
1425
|
-
sourceIds: string[];
|
1426
|
-
limit: number;
|
1427
|
-
offset: number;
|
1428
|
-
};
|
1429
|
-
export interface VisionBoxMessage {
|
1430
|
-
msgTypeContent: string;
|
1431
|
-
msgContent: string;
|
1432
|
-
time: number;
|
1433
|
-
msgTitle: string;
|
1434
|
-
dateTime: string;
|
1435
|
-
attachPics: string;
|
1436
|
-
id: number;
|
1437
|
-
idStr: string;
|
1438
|
-
homeId: number;
|
1439
|
-
msgSrcId: string;
|
1440
|
-
businessKey: string;
|
1441
|
-
}
|
1442
|
-
export type GetMessageListRes = {
|
1443
|
-
pageNo: number;
|
1444
|
-
datas: VisionBoxMessage[];
|
1445
|
-
totalCount: number;
|
1446
|
-
class: string;
|
1447
|
-
};
|
1448
|
-
export type Options = {
|
1449
|
-
toastError?: boolean;
|
1450
|
-
transError?: boolean;
|
1451
|
-
};
|
1452
|
-
export type GetAiVisualMessageKey = {
|
1453
|
-
businessNo: string;
|
1454
|
-
deviceId: string;
|
1455
|
-
time: number;
|
1456
|
-
homeId: string;
|
1457
|
-
};
|
1458
|
-
export type GetAiVisualMessageKeyRes = {
|
1459
|
-
businessNo: string;
|
1460
|
-
businessKey: string;
|
1461
|
-
};
|
1462
|
-
export type QueryGetAiVisualReportList = {
|
1463
|
-
gid: string;
|
1464
|
-
visionBoxId: string;
|
1465
|
-
offset: number;
|
1466
|
-
limit: number;
|
1467
|
-
};
|
1468
|
-
export declare const enum ReportType {
|
1469
|
-
DAILY = 1,
|
1470
|
-
WEEKLY = 2
|
1471
|
-
}
|
1472
|
-
export interface EventInfo {
|
1473
|
-
eventOrderValue: number;
|
1474
|
-
eventCode: string;
|
1475
|
-
eventName: string;
|
1476
|
-
eventNum: number;
|
1477
|
-
eventAverageNumPerDay?: number;
|
1478
|
-
}
|
1479
|
-
export interface relatedFileList {
|
1480
|
-
bucket: string;
|
1481
|
-
filePath: string;
|
1482
|
-
signUrl: string;
|
1483
|
-
uuid: string;
|
1484
|
-
}
|
1485
|
-
export interface VisionBoxReport {
|
1486
|
-
visionBoxId: string;
|
1487
|
-
modelName: string;
|
1488
|
-
reportId: string;
|
1489
|
-
reportType: ReportType;
|
1490
|
-
reportTitleName: string;
|
1491
|
-
reportContent?: {
|
1492
|
-
totalEventNum: number;
|
1493
|
-
eventInfoList: EventInfo[];
|
1494
|
-
};
|
1495
|
-
summaryAndSuggestion: string;
|
1496
|
-
detailTitle: string;
|
1497
|
-
totalNumTitle: string;
|
1498
|
-
reportState: number;
|
1499
|
-
reportStateName: string;
|
1500
|
-
relatedFileList?: relatedFileList[];
|
1501
|
-
reportKey?: string;
|
1502
|
-
}
|
1503
|
-
export type DeleteAiVisualMessageList = {
|
1504
|
-
msgType: number;
|
1505
|
-
ids?: string;
|
1506
|
-
msgSrcIds?: string;
|
1507
|
-
};
|
1508
|
-
export type GetAiVisualBoxInfoParams = {
|
1509
|
-
stockId: string;
|
1510
|
-
visionBoxId?: string;
|
1511
|
-
gid: string;
|
1512
|
-
};
|
1513
|
-
export declare const enum VisionEventType {
|
1514
|
-
PRESET = 0,
|
1515
|
-
CUSTOM = 1
|
1516
|
-
}
|
1517
|
-
export declare const enum SceneType {
|
1518
|
-
security = 0,
|
1519
|
-
album = 1
|
1520
|
-
}
|
1521
|
-
export interface VisionBoxEvent {
|
1522
|
-
eventCode: string;
|
1523
|
-
eventValue: string;
|
1524
|
-
eventType: VisionEventType;
|
1525
|
-
}
|
1526
|
-
export interface AiVisualBox {
|
1527
|
-
visionBoxId: string;
|
1528
|
-
visionBoxName: string;
|
1529
|
-
serviceStockId: string;
|
1530
|
-
visionBoxState: 0 | 1;
|
1531
|
-
generateDescState: 0 | 1;
|
1532
|
-
reportTypeList: ReportType[];
|
1533
|
-
reportLangType: string;
|
1534
|
-
visionBoxEventList: VisionBoxEvent[];
|
1535
|
-
sceneType: SceneType;
|
1536
|
-
}
|
1537
|
-
export interface SaveAiVisualBoxInfoParams {
|
1538
|
-
gid: string;
|
1539
|
-
stockId: string;
|
1540
|
-
visionBoxId?: string;
|
1541
|
-
visionBoxInfoContent: Omit<AiVisualBox, 'visionBoxId' | 'serviceStockId'>;
|
1542
|
-
}
|
1543
|
-
export type AiVisualNeedCopyQueryParams = {
|
1544
|
-
stockId: string;
|
1545
|
-
gid: string;
|
1546
|
-
};
|
1547
|
-
export type AiVisualNeedCopyQueryResult = {
|
1548
|
-
scenesType: SceneType;
|
1549
|
-
visionBoxId?: number;
|
1550
|
-
needCopyEvent: boolean;
|
1551
|
-
};
|
1552
|
-
export type QueryGetDeviceDetailsById = {
|
1553
|
-
homeId: string;
|
1554
|
-
uuid: string;
|
1555
|
-
categoryCode: string;
|
1556
|
-
};
|
1557
|
-
export declare const enum PlanStatus {
|
1558
|
-
USING = 1
|
1559
|
-
}
|
1560
|
-
export declare const enum DeviceBindStatus {
|
1561
|
-
BINDING = 1,// 已绑定
|
1562
|
-
NOT_SUPPORT = 2,// 不支持
|
1563
|
-
NOT_BIND = 3
|
1564
|
-
}
|
1565
|
-
export interface DeviceBaseInfo {
|
1566
|
-
icon: string;
|
1567
|
-
name: string;
|
1568
|
-
ownerId: string;
|
1569
|
-
uuid: string;
|
1570
|
-
roomName: string;
|
1571
|
-
deviceId: string;
|
1572
|
-
isBind: DeviceBindStatus;
|
1573
|
-
status: boolean;
|
1574
|
-
aiSmartFreeDev: boolean;
|
1575
|
-
}
|
1576
|
-
export interface PlanInfoDto {
|
1577
|
-
commodityCode: string;
|
1578
|
-
commodityName: string;
|
1579
|
-
env: number;
|
1580
|
-
instanceId: string;
|
1581
|
-
isSubscribe: 0 | 1;
|
1582
|
-
orderNo: number;
|
1583
|
-
planStatus: PlanStatus;
|
1584
|
-
serviceBeginTime: number;
|
1585
|
-
serviceEndTime: number;
|
1586
|
-
stockId: string;
|
1587
|
-
isCanceled: 0 | 1;
|
1588
|
-
isAdditional: 0 | 1;
|
1589
|
-
}
|
1590
|
-
export interface DeviceInfo extends DeviceBaseInfo {
|
1591
|
-
productId: string;
|
1592
|
-
planList?: PlanInfoDto[];
|
1593
|
-
isUseFreeService: 0 | 1;
|
1594
|
-
isUseCommonUserTrail: 0 | 1;
|
1595
|
-
isUseCommonDeviceTrail: 0 | 1;
|
1596
|
-
isTried?: 0 | 1;
|
1597
|
-
hasServiceOrder?: boolean;
|
1598
|
-
}
|
1599
|
-
export interface DeviceDetails extends DeviceInfo {
|
1600
|
-
haveAvailableService: 0 | 1;
|
1601
|
-
activeStockIdList: string[];
|
1602
|
-
}
|
1603
|
-
export type QueryCameraListDto = {
|
1604
|
-
homeId: string;
|
1605
|
-
stockId?: string;
|
1606
|
-
pids?: string;
|
1607
|
-
/** 0 设备级,1 账号级 */
|
1608
|
-
ownerType?: 1 | 0;
|
1609
|
-
serviceCode?: string;
|
1610
|
-
commodityCode?: string;
|
1611
|
-
categoryCode: string;
|
1612
|
-
};
|
1613
|
-
export type BindDeviceInfo = DeviceInfo & {
|
1614
|
-
isBindCurrentService: boolean;
|
1615
|
-
};
|
1616
|
-
export type ResBindDeviceDto = {
|
1617
|
-
totalDevices: number;
|
1618
|
-
bindDeviceNum: number;
|
1619
|
-
list: BindDeviceInfo[];
|
1620
|
-
};
|
1621
|
-
export type QueryBindDeviceDto = {
|
1622
|
-
homeId: string;
|
1623
|
-
stockId: string;
|
1624
|
-
bindUuidList?: string[];
|
1625
|
-
unBindUuidList?: string[];
|
1626
|
-
};
|
1627
|
-
export type ServiceBusinessType = 'aiSmartFreeEvent' | 'aiSmartFreeEventImage2Text';
|
1628
|
-
export type CustomEventCheckParams = {
|
1629
|
-
eventValue: string;
|
1630
|
-
devId: string;
|
1631
|
-
serviceBusinessType: ServiceBusinessType;
|
1632
|
-
};
|
1633
|
-
export type CustomEventCheckResult = {
|
1634
|
-
available: boolean;
|
1635
|
-
recommend?: string[];
|
1636
|
-
};
|
1637
|
-
export type GetSmartEventSwitchStateParams = {
|
1638
|
-
devId: string;
|
1639
|
-
serviceBusinessType: ServiceBusinessType;
|
1640
|
-
};
|
1641
|
-
export type GetSmartEventSwitchStateResult = {
|
1642
|
-
hadService: boolean;
|
1643
|
-
switchState: 0 | 1;
|
1644
|
-
extContent: string;
|
1645
|
-
};
|
1646
|
-
export type UpdateSwitchStateParams = {
|
1647
|
-
devId: string;
|
1648
|
-
switchState: 0 | 1;
|
1649
|
-
serviceBusinessType: ServiceBusinessType;
|
1650
|
-
extContent: string;
|
1651
|
-
};
|
1652
|
-
export type GetDeviceConfigParams = {
|
1653
|
-
devId: string;
|
1654
|
-
serviceBusinessType: ServiceBusinessType;
|
1655
|
-
};
|
1656
|
-
export declare const enum DeviceServiceConfigState {
|
1657
|
-
Delete = 0,
|
1658
|
-
Available = 1,
|
1659
|
-
Unavailable = 2
|
1660
|
-
}
|
1661
|
-
export interface DeviceServiceConfigItemDto {
|
1662
|
-
configId: number;
|
1663
|
-
configCode: string;
|
1664
|
-
configType: VisionEventType;
|
1665
|
-
configValue: string;
|
1666
|
-
configCodeIcon?: string;
|
1667
|
-
configState: DeviceServiceConfigState;
|
1668
|
-
}
|
1669
|
-
export type GetDeviceConfigResult = {
|
1670
|
-
hadService: boolean;
|
1671
|
-
switchState: 0 | 1;
|
1672
|
-
configItemList: DeviceServiceConfigItemDto[];
|
1673
|
-
};
|
1674
|
-
export type UpdateDeviceConfigParams = {
|
1675
|
-
devId: string;
|
1676
|
-
configId?: DeviceServiceConfigItemDto['configId'];
|
1677
|
-
configCode: DeviceServiceConfigItemDto['configCode'];
|
1678
|
-
configValue?: DeviceServiceConfigItemDto['configValue'];
|
1679
|
-
configType: DeviceServiceConfigItemDto['configType'];
|
1680
|
-
enableState: DeviceServiceConfigItemDto['configState'];
|
1681
|
-
serviceBusinessType: ServiceBusinessType;
|
1682
|
-
};
|
1683
|
-
export type QueryServiceDetailDto = {
|
1684
|
-
homeId: string;
|
1685
|
-
stockId: string;
|
1686
|
-
};
|
1687
|
-
export declare const enum StockStatus {
|
1688
|
-
NO_ENABLE = 1,// 未启用
|
1689
|
-
ENABLED = 2
|
1690
|
-
}
|
1691
|
-
export interface BaseServiceInfo {
|
1692
|
-
/**
|
1693
|
-
* 封面
|
1694
|
-
*/
|
1695
|
-
cover: string;
|
1696
|
-
/**
|
1697
|
-
* 套餐名
|
1698
|
-
*/
|
1699
|
-
commodityName: string;
|
1700
|
-
/**
|
1701
|
-
* 购买库存 ID
|
1702
|
-
*/
|
1703
|
-
stockId: string;
|
1704
|
-
/**
|
1705
|
-
* 套餐编码
|
1706
|
-
*/
|
1707
|
-
commodityCode: string;
|
1708
|
-
/**
|
1709
|
-
* 服务周期
|
1710
|
-
*/
|
1711
|
-
duration: number;
|
1712
|
-
/**
|
1713
|
-
* 服务周期的字符串表示
|
1714
|
-
*/
|
1715
|
-
durationDesc: string;
|
1716
|
-
/**
|
1717
|
-
* 服务开始时间
|
1718
|
-
*/
|
1719
|
-
serviceBeginTime?: number;
|
1720
|
-
/**
|
1721
|
-
* 服务到期时间
|
1722
|
-
*/
|
1723
|
-
serviceEndTime?: number;
|
1724
|
-
/**
|
1725
|
-
* 是否为订阅商品
|
1726
|
-
*/
|
1727
|
-
isSubscribe: 0 | 1;
|
1728
|
-
/**
|
1729
|
-
* 是否未来支付
|
1730
|
-
*/
|
1731
|
-
isFuturePayments: 0 | 1;
|
1732
|
-
/**
|
1733
|
-
* 是否已退订
|
1734
|
-
* 0 未退订; 1 已退订
|
1735
|
-
*/
|
1736
|
-
isCanceled?: 0 | 1;
|
1737
|
-
/**
|
1738
|
-
* 启用状态
|
1739
|
-
* 1 未启用 2 启用中
|
1740
|
-
*/
|
1741
|
-
stockStatus: StockStatus;
|
1742
|
-
/**
|
1743
|
-
* 是否随机服务
|
1744
|
-
*/
|
1745
|
-
isAdditional?: 1 | 0;
|
1746
|
-
}
|
1747
|
-
export interface ServiceDetailDto extends BaseServiceInfo {
|
1748
|
-
/**
|
1749
|
-
* 订阅 ID
|
1750
|
-
*/
|
1751
|
-
subscribeId?: string;
|
1752
|
-
/**
|
1753
|
-
* 未来支付计划 ID
|
1754
|
-
*/
|
1755
|
-
planId?: string;
|
1756
|
-
/**
|
1757
|
-
* 云存储已绑定设备列表
|
1758
|
-
*/
|
1759
|
-
instanceList?: DeviceInfo[];
|
1760
|
-
/**
|
1761
|
-
* 是否支持退订
|
1762
|
-
* 0 不支持; 1 支持
|
1763
|
-
*/
|
1764
|
-
supportCancel?: 0 | 1;
|
1765
|
-
/**
|
1766
|
-
* 服务对应的商品的上架状态
|
1767
|
-
*/
|
1768
|
-
isPublish: 0 | 1;
|
1769
|
-
/**
|
1770
|
-
* 根机服务绑定的 uuid
|
1771
|
-
*/
|
1772
|
-
additionalUuid: string;
|
1773
|
-
/**
|
1774
|
-
* 是否允许智能魔方能力的服务
|
1775
|
-
*/
|
1776
|
-
hasAigcProtectService?: boolean;
|
1777
|
-
/**
|
1778
|
-
* 服务大类
|
1779
|
-
*/
|
1780
|
-
categoryCode: string;
|
1781
|
-
cloudService?: {
|
1782
|
-
/**
|
1783
|
-
* 绑定设备数量
|
1784
|
-
*/
|
1785
|
-
bindDeviceNum: number;
|
1786
|
-
/**
|
1787
|
-
* 总数量
|
1788
|
-
*/
|
1789
|
-
totalDevices: number;
|
1790
|
-
};
|
1791
|
-
}
|
1792
|
-
export interface IAlbumVideoDateCountReq {
|
1793
|
-
stockId: number;
|
1794
|
-
gid: string;
|
1795
|
-
timeAlbumId: number;
|
1796
|
-
type?: string;
|
1797
|
-
}
|
1798
|
-
interface IFileUrl {
|
1799
|
-
fileUrl: string;
|
1800
|
-
fileName?: string;
|
1801
|
-
}
|
1802
|
-
export interface IAlbumVideoDateCountRes {
|
1803
|
-
type: string;
|
1804
|
-
description: string;
|
1805
|
-
startTime: number;
|
1806
|
-
endTime: number;
|
1807
|
-
coverInfo: IFileUrl;
|
1808
|
-
}
|
1809
|
-
export interface IAlbumVideoFileListRes {
|
1810
|
-
total: number;
|
1811
|
-
list: IAlbumVideoFileList[];
|
1812
|
-
}
|
1813
|
-
export interface IAlbumVideoFileList {
|
1814
|
-
id: number;
|
1815
|
-
captureTime?: number;
|
1816
|
-
type?: 0 | 1 | 2;
|
1817
|
-
coverInfo?: IFileUrl;
|
1818
|
-
mediaInfo?: IFileUrl;
|
1819
|
-
}
|
1820
|
-
export interface IAlbumVideoFileListReq {
|
1821
|
-
stockId: number;
|
1822
|
-
gid: string;
|
1823
|
-
timeAlbumId: number;
|
1824
|
-
beginTime?: number;
|
1825
|
-
endTime?: number;
|
1826
|
-
pageNum?: number;
|
1827
|
-
pageSize?: number;
|
1828
|
-
queryIdFlag?: boolean;
|
1829
|
-
}
|
1830
|
-
export interface IAlbumFileDeleteReq {
|
1831
|
-
stockId: number;
|
1832
|
-
gid: string;
|
1833
|
-
timeAlbumId: number;
|
1834
|
-
albumRecordIds: string;
|
1835
|
-
}
|
1836
|
-
export interface IAlbumFileDeleteRes {
|
1837
|
-
result: boolean;
|
1838
|
-
}
|
1839
|
-
export interface TimeAlbumSettingDto {
|
1840
|
-
id: string;
|
1841
|
-
albumName: string;
|
1842
|
-
enableStatus: 0 | 1;
|
1843
|
-
timedCaptureConfig: string[];
|
1844
|
-
smartCaptureConfig: VisionBoxEvent[];
|
1845
|
-
}
|
1846
|
-
export type AlbumSettingSaveReq = {
|
1847
|
-
stockId: string;
|
1848
|
-
gid: string;
|
1849
|
-
} & Omit<TimeAlbumSettingDto, 'id'>;
|
1850
|
-
export type AlbumSettingEditReq = {
|
1851
|
-
albumId: TimeAlbumSettingDto['id'];
|
1852
|
-
stockId: string;
|
1853
|
-
gid: string;
|
1854
|
-
} & Omit<TimeAlbumSettingDto, 'id'>;
|
1855
|
-
export type GetAlbumSettingReq = {
|
1856
|
-
stockId: string;
|
1857
|
-
gid: string;
|
1858
|
-
};
|
1859
|
-
export type QueryGetAiVisualList = {
|
1860
|
-
gid: string;
|
1861
|
-
};
|
1862
|
-
export interface VisionBoxDto {
|
1863
|
-
visionBoxId: string;
|
1864
|
-
visionBoxName: string;
|
1865
|
-
gmtCreate: string;
|
1866
|
-
serviceStockId: string;
|
1867
|
-
serviceName: string;
|
1868
|
-
enableState: number;
|
1869
|
-
expiredTime: number;
|
1870
|
-
scenesType: SceneType;
|
1871
|
-
}
|
1872
|
-
export declare const enum BusinessType {
|
1873
|
-
aigcProtect = "aigcProtect",
|
1874
|
-
aiTimePhotoAlbumDetect = "aiTimePhotoAlbumDetect",
|
1875
|
-
aiSmartFreeEvent = "aiSmartFreeEvent"
|
1876
|
-
}
|
1877
|
-
export type GetAiVisualPresetEventParams = {
|
1878
|
-
gid: string;
|
1879
|
-
businessType: BusinessType;
|
1880
|
-
};
|
1881
|
-
export interface PresetEvent {
|
1882
|
-
configCode: string;
|
1883
|
-
configCodeIcon: string;
|
1884
|
-
configCodeDesc: string;
|
1885
|
-
}
|
1886
|
-
export type CustomVisionEventCheckParams = {
|
1887
|
-
eventValue: string;
|
1888
|
-
gid: string;
|
1889
|
-
stockId: string;
|
1890
|
-
};
|
1891
|
-
export type CustomVisionEventCheckRet = {
|
1892
|
-
available: boolean;
|
1893
|
-
recommend?: string[];
|
1894
|
-
};
|
1895
1424
|
export {};
|
package/lib/cloud/interface.js
CHANGED
@@ -20,50 +20,4 @@ var EntityType = /*#__PURE__*/function (EntityType) {
|
|
20
20
|
EntityType[EntityType["RULE"] = 2] = "RULE"; // 关联实体为联动规则
|
21
21
|
return EntityType;
|
22
22
|
}(EntityType || {});
|
23
|
-
export
|
24
|
-
ReportType[ReportType["DAILY"] = 1] = "DAILY";
|
25
|
-
ReportType[ReportType["WEEKLY"] = 2] = "WEEKLY";
|
26
|
-
return ReportType;
|
27
|
-
}({});
|
28
|
-
export let VisionEventType = /*#__PURE__*/function (VisionEventType) {
|
29
|
-
VisionEventType[VisionEventType["PRESET"] = 0] = "PRESET";
|
30
|
-
VisionEventType[VisionEventType["CUSTOM"] = 1] = "CUSTOM";
|
31
|
-
return VisionEventType;
|
32
|
-
}({});
|
33
|
-
export let SceneType = /*#__PURE__*/function (SceneType) {
|
34
|
-
SceneType[SceneType["security"] = 0] = "security";
|
35
|
-
SceneType[SceneType["album"] = 1] = "album";
|
36
|
-
return SceneType;
|
37
|
-
}({});
|
38
|
-
export let PlanStatus = /*#__PURE__*/function (PlanStatus) {
|
39
|
-
PlanStatus[PlanStatus["USING"] = 1] = "USING"; // 使用中
|
40
|
-
return PlanStatus;
|
41
|
-
}({});
|
42
|
-
export let DeviceBindStatus = /*#__PURE__*/function (DeviceBindStatus) {
|
43
|
-
DeviceBindStatus[DeviceBindStatus["BINDING"] = 1] = "BINDING";
|
44
|
-
// 已绑定
|
45
|
-
DeviceBindStatus[DeviceBindStatus["NOT_SUPPORT"] = 2] = "NOT_SUPPORT";
|
46
|
-
// 不支持
|
47
|
-
DeviceBindStatus[DeviceBindStatus["NOT_BIND"] = 3] = "NOT_BIND"; // 未绑定
|
48
|
-
return DeviceBindStatus;
|
49
|
-
}({});
|
50
|
-
export let DeviceServiceConfigState = /*#__PURE__*/function (DeviceServiceConfigState) {
|
51
|
-
DeviceServiceConfigState[DeviceServiceConfigState["Delete"] = 0] = "Delete";
|
52
|
-
DeviceServiceConfigState[DeviceServiceConfigState["Available"] = 1] = "Available";
|
53
|
-
DeviceServiceConfigState[DeviceServiceConfigState["Unavailable"] = 2] = "Unavailable";
|
54
|
-
return DeviceServiceConfigState;
|
55
|
-
}({});
|
56
|
-
export let StockStatus = /*#__PURE__*/function (StockStatus) {
|
57
|
-
StockStatus[StockStatus["NO_ENABLE"] = 1] = "NO_ENABLE";
|
58
|
-
// 未启用
|
59
|
-
StockStatus[StockStatus["ENABLED"] = 2] = "ENABLED"; // 已启用
|
60
|
-
return StockStatus;
|
61
|
-
}({});
|
62
|
-
export let BusinessType = /*#__PURE__*/function (BusinessType) {
|
63
|
-
BusinessType["aigcProtect"] = "aigcProtect";
|
64
|
-
BusinessType["aiTimePhotoAlbumDetect"] = "aiTimePhotoAlbumDetect";
|
65
|
-
BusinessType["aiSmartFreeEvent"] = "aiSmartFreeEvent";
|
66
|
-
return BusinessType;
|
67
|
-
}({});
|
68
|
-
|
69
|
-
// 预制检测事件
|
23
|
+
export {};
|
package/lib/index.d.ts
CHANGED
@@ -41,6 +41,8 @@ export declare const health: {
|
|
41
41
|
saveCategoryNoTimeWithDataSync: typeof ty.health.saveCategoryNoTimeWithDataSync;
|
42
42
|
readCategoryDataWithType: typeof ty.health.readCategoryDataWithType;
|
43
43
|
readCategoryDataWithTypeSync: typeof ty.health.readCategoryDataWithTypeSync;
|
44
|
+
queryBodyFatScaleAlgorithm: typeof ty.health.queryBodyFatScaleAlgorithm;
|
45
|
+
queryBodyFatScaleAlgorithmSync: typeof ty.health.queryBodyFatScaleAlgorithmSync;
|
44
46
|
addPanelUser: typeof ty.health.addPanelUser;
|
45
47
|
updatePanelUser: typeof ty.health.updatePanelUser;
|
46
48
|
deletePanelUser: typeof ty.health.deletePanelUser;
|
package/lib/index.js
CHANGED
@@ -4,7 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import { factory } from './utils';
|
5
5
|
export * from './constants';
|
6
6
|
export * from './all-kits';
|
7
|
-
import { health as healthKit } from './HealthKit-5.
|
7
|
+
import { health as healthKit } from './HealthKit-6.5.0';
|
8
8
|
import { healthCloudApi } from './cloud';
|
9
9
|
export const health = _objectSpread(_objectSpread({}, healthCloudApi), healthKit);
|
10
10
|
export * from './lifecycles';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.7.
|
3
|
+
"version": "1.7.5",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.7.
|
33
|
-
"@ray-js/router": "1.7.
|
32
|
+
"@ray-js/framework": "1.7.5",
|
33
|
+
"@ray-js/router": "1.7.5",
|
34
34
|
"@ray-js/wechat": "^0.3.8",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.7.
|
39
|
+
"@ray-js/cli": "1.7.5",
|
40
40
|
"art-template": "^4.13.4",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.3",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "2e2f09127313b1b49ad905555e83d805a43f52e1"
|
50
50
|
}
|
@@ -1,120 +0,0 @@
|
|
1
|
-
import { AiVisualBox, AiVisualNeedCopyQueryParams, AiVisualNeedCopyQueryResult, AlbumSettingEditReq, AlbumSettingSaveReq, CustomEventCheckParams, CustomEventCheckResult, CustomVisionEventCheckParams, CustomVisionEventCheckRet, DeleteAiVisualMessageList, DeviceDetails, DeviceServiceConfigItemDto, GetAiVisualBoxInfoParams, GetAiVisualMessageKey, GetAiVisualMessageKeyRes, GetAiVisualPresetEventParams, GetAlbumSettingReq, GetDeviceConfigParams, GetDeviceConfigResult, GetMessageListRes, GetSmartEventSwitchStateParams, GetSmartEventSwitchStateResult, IAlbumFileDeleteReq, IAlbumFileDeleteRes, IAlbumVideoDateCountReq, IAlbumVideoDateCountRes, IAlbumVideoFileListReq, IAlbumVideoFileListRes, Options, PresetEvent, QueryBindDeviceDto, QueryCameraListDto, QueryGetAiVisualList, QueryGetAiVisualReportList, QueryGetDeviceDetailsById, QueryGetMessageList, QueryServiceDetailDto, ResBindDeviceDto, SaveAiVisualBoxInfoParams, ServiceDetailDto, TimeAlbumSettingDto, UpdateDeviceConfigParams, UpdateSwitchStateParams, VisionBoxDto, VisionBoxReport } from './interface';
|
2
|
-
/**
|
3
|
-
transError 为 true 的情况下走到
|
4
|
-
apiRequestByAtop 的 fail 回调时
|
5
|
-
会 resolve false
|
6
|
-
为 false 的情况下则 reject 错误信息
|
7
|
-
*/
|
8
|
-
export declare const request: <T = any>(a: any, postData: any, v?: string, options?: Options) => Promise<T>;
|
9
|
-
/**
|
10
|
-
* 获取 App 面板内静态资源地址
|
11
|
-
*/
|
12
|
-
declare function getMessageList(params: QueryGetMessageList): Promise<GetMessageListRes>;
|
13
|
-
/**
|
14
|
-
* 获取ipc业务数据密钥 获取消息图片的密钥
|
15
|
-
*/
|
16
|
-
declare function getAiVisualMessageKey(params: GetAiVisualMessageKey[]): Promise<GetAiVisualMessageKeyRes[]>;
|
17
|
-
/**
|
18
|
-
* 查询智能视觉魔方报告列表
|
19
|
-
*/
|
20
|
-
declare function getAiVisualReportList(params: QueryGetAiVisualReportList): Promise<VisionBoxReport[]>;
|
21
|
-
/**
|
22
|
-
* 刪除消息,用于批量删除分类消息,也可用于批量删除消息
|
23
|
-
*/
|
24
|
-
declare function deleteAiVisualMessage(params: DeleteAiVisualMessageList): Promise<{
|
25
|
-
result: string;
|
26
|
-
success: boolean;
|
27
|
-
}>;
|
28
|
-
/**
|
29
|
-
* 查询视觉魔方信息
|
30
|
-
*/
|
31
|
-
declare function getAiVisualBoxInfo(params: GetAiVisualBoxInfoParams): Promise<AiVisualBox>;
|
32
|
-
/**
|
33
|
-
* 保存视觉魔方信息
|
34
|
-
*/
|
35
|
-
declare function saveAiVisualBoxInfo(params: SaveAiVisualBoxInfoParams, atopOptions?: Options): Promise<string | number>;
|
36
|
-
/**
|
37
|
-
* 查询其对应的视觉魔方是否有正在同步的配置
|
38
|
-
*/
|
39
|
-
declare function aiVisualNeedCopyQuery(params: AiVisualNeedCopyQueryParams): Promise<AiVisualNeedCopyQueryResult>;
|
40
|
-
/**
|
41
|
-
* 以家庭维度获取文件解密密钥接口
|
42
|
-
*/
|
43
|
-
declare function getStorageSecret(params: {
|
44
|
-
gid: string;
|
45
|
-
}): Promise<string>;
|
46
|
-
/**
|
47
|
-
* 查看单个设备设备详情
|
48
|
-
*/
|
49
|
-
declare function getDeviceDetailsById(params: QueryGetDeviceDetailsById): Promise<DeviceDetails>;
|
50
|
-
/**
|
51
|
-
* 获取家庭摄像头设备列表
|
52
|
-
*/
|
53
|
-
declare function getCameraList(params: QueryCameraListDto): Promise<ResBindDeviceDto>;
|
54
|
-
/**
|
55
|
-
* 绑定或解绑设备
|
56
|
-
*/
|
57
|
-
declare function bindDevice(params: QueryBindDeviceDto): Promise<boolean>;
|
58
|
-
/**
|
59
|
-
* 自定义事件校验
|
60
|
-
*/
|
61
|
-
declare function customEventCheck(params: CustomEventCheckParams): Promise<CustomEventCheckResult>;
|
62
|
-
/**
|
63
|
-
* 查询智能事件开关
|
64
|
-
*/
|
65
|
-
declare function getSmartEventSwitchState(params: GetSmartEventSwitchStateParams): Promise<GetSmartEventSwitchStateResult>;
|
66
|
-
/**
|
67
|
-
* 查询智能事件开关
|
68
|
-
*/
|
69
|
-
declare function updateSmartEventSwitchState(params: UpdateSwitchStateParams): Promise<boolean>;
|
70
|
-
/**
|
71
|
-
* 获取设备服务配置项
|
72
|
-
*/
|
73
|
-
declare function getDeviceConfig(params: GetDeviceConfigParams): Promise<GetDeviceConfigResult & {
|
74
|
-
uuid: string;
|
75
|
-
}>;
|
76
|
-
/**
|
77
|
-
* 设备服务配置项修改
|
78
|
-
*/
|
79
|
-
declare function updateDeviceConfig(params: UpdateDeviceConfigParams): Promise<DeviceServiceConfigItemDto['configId']>;
|
80
|
-
/**
|
81
|
-
* 服务详情信息
|
82
|
-
*/
|
83
|
-
declare function getServiceDetail(params: QueryServiceDetailDto): Promise<ServiceDetailDto>;
|
84
|
-
/**
|
85
|
-
* 时光相册智能视频日期统计
|
86
|
-
*/
|
87
|
-
declare function albumVideoDateCount(params: IAlbumVideoDateCountReq): Promise<IAlbumVideoDateCountRes[]>;
|
88
|
-
/**
|
89
|
-
* 时光相册录像文件列表
|
90
|
-
*/
|
91
|
-
declare function albumVideoFileList(params: IAlbumVideoFileListReq): Promise<IAlbumVideoFileListRes>;
|
92
|
-
/**
|
93
|
-
* 删除时光相册相簿文件
|
94
|
-
*/
|
95
|
-
declare function albumFileDelete(params: IAlbumFileDeleteReq): Promise<IAlbumFileDeleteRes>;
|
96
|
-
/**
|
97
|
-
* 时光相册配置保存
|
98
|
-
*/
|
99
|
-
declare function albumSettingSave(params: AlbumSettingSaveReq): Promise<boolean>;
|
100
|
-
/**
|
101
|
-
* 时光相册配置修改
|
102
|
-
*/
|
103
|
-
declare function albumSettingEdit(params: AlbumSettingEditReq): Promise<boolean>;
|
104
|
-
/**
|
105
|
-
* 时光相册配置查询
|
106
|
-
*/
|
107
|
-
declare function getAlbumSetting(params: GetAlbumSettingReq): Promise<TimeAlbumSettingDto>;
|
108
|
-
/**
|
109
|
-
* 查询智能视觉魔方列表(关联服务)
|
110
|
-
*/
|
111
|
-
declare function getVisualBoxList(params: QueryGetAiVisualList): Promise<VisionBoxDto[]>;
|
112
|
-
/**
|
113
|
-
* 查询智能视觉魔方列表预置事件
|
114
|
-
*/
|
115
|
-
declare function getPresetEvent(params: GetAiVisualPresetEventParams): Promise<PresetEvent[]>;
|
116
|
-
/**
|
117
|
-
* 视觉魔方自定义语义校验
|
118
|
-
*/
|
119
|
-
declare function visualBoxEventCheck(params: CustomVisionEventCheckParams): Promise<CustomVisionEventCheckRet>;
|
120
|
-
export { getMessageList, getAiVisualMessageKey, getAiVisualReportList, deleteAiVisualMessage, getAiVisualBoxInfo, saveAiVisualBoxInfo, aiVisualNeedCopyQuery, getStorageSecret, getDeviceDetailsById, getCameraList, bindDevice, customEventCheck, getSmartEventSwitchState, updateSmartEventSwitchState, getDeviceConfig, updateDeviceConfig, getServiceDetail, albumVideoDateCount, albumVideoFileList, albumFileDelete, albumSettingSave, albumSettingEdit, getAlbumSetting, getVisualBoxList, getPresetEvent, visualBoxEventCheck, };
|
package/lib/cloud/highlights.js
DELETED
@@ -1,257 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
// 通用核心接口
|
3
|
-
|
4
|
-
import { THING } from '../constants';
|
5
|
-
const JsonUtil = {
|
6
|
-
parseJSON(str) {
|
7
|
-
let rst;
|
8
|
-
if (str && {}.toString.call(str) === '[object String]') {
|
9
|
-
try {
|
10
|
-
rst = JSON.parse(str);
|
11
|
-
} catch (e) {
|
12
|
-
try {
|
13
|
-
// eslint-disable-next-line
|
14
|
-
rst = eval(`(${str})`);
|
15
|
-
} catch (e2) {
|
16
|
-
rst = str;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
} else {
|
20
|
-
rst = typeof str === 'undefined' ? {} : str;
|
21
|
-
}
|
22
|
-
return rst;
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
/**
|
27
|
-
transError 为 true 的情况下走到
|
28
|
-
apiRequestByAtop 的 fail 回调时
|
29
|
-
会 resolve false
|
30
|
-
为 false 的情况下则 reject 错误信息
|
31
|
-
*/
|
32
|
-
export const request = function (a, postData) {
|
33
|
-
let v = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '1.0';
|
34
|
-
let options = arguments.length > 3 ? arguments[3] : undefined;
|
35
|
-
return new Promise((resolve, reject) => {
|
36
|
-
ty.apiRequestByAtop(_objectSpread(_objectSpread({}, {
|
37
|
-
api: a,
|
38
|
-
postData: postData,
|
39
|
-
version: v
|
40
|
-
}), {}, {
|
41
|
-
success: d => {
|
42
|
-
const data = typeof d === 'string' ? JsonUtil.parseJSON(d) : d;
|
43
|
-
resolve(data);
|
44
|
-
},
|
45
|
-
fail: err => {
|
46
|
-
const errObj = err.innerError || err;
|
47
|
-
const {
|
48
|
-
toastError = true,
|
49
|
-
transError = true
|
50
|
-
} = options || {};
|
51
|
-
console.log('api fail', errObj);
|
52
|
-
console.log(a);
|
53
|
-
if (transError) {
|
54
|
-
resolve(false);
|
55
|
-
} else {
|
56
|
-
reject(errObj);
|
57
|
-
}
|
58
|
-
if (toastError) {
|
59
|
-
ty.showToast({
|
60
|
-
title: errObj.errorMsg,
|
61
|
-
icon: 'error'
|
62
|
-
});
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}));
|
66
|
-
});
|
67
|
-
};
|
68
|
-
|
69
|
-
/**
|
70
|
-
* 获取 App 面板内静态资源地址
|
71
|
-
*/
|
72
|
-
function getMessageList(params) {
|
73
|
-
const _params = {
|
74
|
-
json: JSON.stringify(_objectSpread({
|
75
|
-
keepOrig: true,
|
76
|
-
msgType: 4
|
77
|
-
}, params))
|
78
|
-
};
|
79
|
-
return request(`${THING}.m.msg.list.by.json`, _params, '2.0');
|
80
|
-
}
|
81
|
-
/**
|
82
|
-
* 获取ipc业务数据密钥 获取消息图片的密钥
|
83
|
-
*/
|
84
|
-
function getAiVisualMessageKey(params) {
|
85
|
-
return request(`${THING}.m.ipc.biz.key.get`, {
|
86
|
-
input: JSON.stringify(params)
|
87
|
-
}, '1.0');
|
88
|
-
}
|
89
|
-
|
90
|
-
/**
|
91
|
-
* 查询智能视觉魔方报告列表
|
92
|
-
*/
|
93
|
-
function getAiVisualReportList(params) {
|
94
|
-
return request('m.ipc.smart.vision.box.report.list', params, '1.0');
|
95
|
-
}
|
96
|
-
|
97
|
-
/**
|
98
|
-
* 刪除消息,用于批量删除分类消息,也可用于批量删除消息
|
99
|
-
*/
|
100
|
-
function deleteAiVisualMessage(params) {
|
101
|
-
return request(`${THING}.m.msg.remove`, params, '2.0');
|
102
|
-
}
|
103
|
-
|
104
|
-
/**
|
105
|
-
* 查询视觉魔方信息
|
106
|
-
*/
|
107
|
-
function getAiVisualBoxInfo(params) {
|
108
|
-
return request('m.ipc.smart.vision.box.info.query', params, '1.0');
|
109
|
-
}
|
110
|
-
|
111
|
-
/**
|
112
|
-
* 保存视觉魔方信息
|
113
|
-
*/
|
114
|
-
function saveAiVisualBoxInfo(params, atopOptions) {
|
115
|
-
return request('m.ipc.smart.vision.box.info.save', params, '1.0', atopOptions);
|
116
|
-
}
|
117
|
-
|
118
|
-
/**
|
119
|
-
* 查询其对应的视觉魔方是否有正在同步的配置
|
120
|
-
*/
|
121
|
-
function aiVisualNeedCopyQuery(params) {
|
122
|
-
return request('m.ipc.smart.vision.box.record.query', params, '1.0');
|
123
|
-
}
|
124
|
-
|
125
|
-
/**
|
126
|
-
* 以家庭维度获取文件解密密钥接口
|
127
|
-
*/
|
128
|
-
function getStorageSecret(params) {
|
129
|
-
return request('m.ipc.storage.secret.get', params, '1.0');
|
130
|
-
}
|
131
|
-
|
132
|
-
/**
|
133
|
-
* 查看单个设备设备详情
|
134
|
-
*/
|
135
|
-
function getDeviceDetailsById(params) {
|
136
|
-
return request('m.ecm.cvas.camera.bind.detail', params, '2.0');
|
137
|
-
}
|
138
|
-
|
139
|
-
/**
|
140
|
-
* 获取家庭摄像头设备列表
|
141
|
-
*/
|
142
|
-
function getCameraList(params) {
|
143
|
-
return request('m.ecm.cvas.h5.home.camera.list', params, '1.0');
|
144
|
-
}
|
145
|
-
|
146
|
-
/**
|
147
|
-
* 绑定或解绑设备
|
148
|
-
*/
|
149
|
-
function bindDevice(params) {
|
150
|
-
return request('m.ecm.cvas.device.bind', params, '1.0');
|
151
|
-
}
|
152
|
-
|
153
|
-
/**
|
154
|
-
* 自定义事件校验
|
155
|
-
*/
|
156
|
-
function customEventCheck(params) {
|
157
|
-
return request('m.ipc.smart.event.check', params, '1.0');
|
158
|
-
}
|
159
|
-
|
160
|
-
/**
|
161
|
-
* 查询智能事件开关
|
162
|
-
*/
|
163
|
-
function getSmartEventSwitchState(params) {
|
164
|
-
return request('m.ipc.service.device.config.switch.query', params, '1.0');
|
165
|
-
}
|
166
|
-
|
167
|
-
/**
|
168
|
-
* 查询智能事件开关
|
169
|
-
*/
|
170
|
-
function updateSmartEventSwitchState(params) {
|
171
|
-
return request('m.ipc.service.device.config.switch.update', params, '2.0');
|
172
|
-
}
|
173
|
-
|
174
|
-
/**
|
175
|
-
* 获取设备服务配置项
|
176
|
-
*/
|
177
|
-
function getDeviceConfig(params) {
|
178
|
-
return request('m.ipc.service.device.config.query', params, '1.0');
|
179
|
-
}
|
180
|
-
|
181
|
-
/**
|
182
|
-
* 设备服务配置项修改
|
183
|
-
*/
|
184
|
-
function updateDeviceConfig(params) {
|
185
|
-
return request('m.ipc.service.device.config.update', params, '2.0');
|
186
|
-
}
|
187
|
-
|
188
|
-
/**
|
189
|
-
* 服务详情信息
|
190
|
-
*/
|
191
|
-
function getServiceDetail(params) {
|
192
|
-
return request('m.ecm.cvas.my.service.detail', params, '1.0');
|
193
|
-
}
|
194
|
-
|
195
|
-
/**
|
196
|
-
* 时光相册智能视频日期统计
|
197
|
-
*/
|
198
|
-
function albumVideoDateCount(params) {
|
199
|
-
return request('m.ipc.time.album.video.date.count', params, '1.0');
|
200
|
-
}
|
201
|
-
|
202
|
-
/**
|
203
|
-
* 时光相册录像文件列表
|
204
|
-
*/
|
205
|
-
function albumVideoFileList(params) {
|
206
|
-
return request('m.ipc.time.album.video.file.list', params, '1.0');
|
207
|
-
}
|
208
|
-
|
209
|
-
/**
|
210
|
-
* 删除时光相册相簿文件
|
211
|
-
*/
|
212
|
-
function albumFileDelete(params) {
|
213
|
-
return request('m.ipc.time.album.file.delete', params, '1.0');
|
214
|
-
}
|
215
|
-
|
216
|
-
/**
|
217
|
-
* 时光相册配置保存
|
218
|
-
*/
|
219
|
-
function albumSettingSave(params) {
|
220
|
-
return request('m.ipc.time.album.config.save', params, '1.0');
|
221
|
-
}
|
222
|
-
|
223
|
-
/**
|
224
|
-
* 时光相册配置修改
|
225
|
-
*/
|
226
|
-
function albumSettingEdit(params) {
|
227
|
-
return request('m.ipc.time.album.config.edit', params, '1.0');
|
228
|
-
}
|
229
|
-
|
230
|
-
/**
|
231
|
-
* 时光相册配置查询
|
232
|
-
*/
|
233
|
-
function getAlbumSetting(params) {
|
234
|
-
return request('m.ipc.time.album.config.get', params, '1.0');
|
235
|
-
}
|
236
|
-
|
237
|
-
/**
|
238
|
-
* 查询智能视觉魔方列表(关联服务)
|
239
|
-
*/
|
240
|
-
function getVisualBoxList(params) {
|
241
|
-
return request('m.ipc.smart.vision.box.list', params, '1.0');
|
242
|
-
}
|
243
|
-
|
244
|
-
/**
|
245
|
-
* 查询智能视觉魔方列表预置事件
|
246
|
-
*/
|
247
|
-
function getPresetEvent(params) {
|
248
|
-
return request('m.ipc.service.business.config.query', params, '1.0');
|
249
|
-
}
|
250
|
-
|
251
|
-
/**
|
252
|
-
* 视觉魔方自定义语义校验
|
253
|
-
*/
|
254
|
-
function visualBoxEventCheck(params) {
|
255
|
-
return request('m.ipc.smart.vision.box.event.check', params, '1.0');
|
256
|
-
}
|
257
|
-
export { getMessageList, getAiVisualMessageKey, getAiVisualReportList, deleteAiVisualMessage, getAiVisualBoxInfo, saveAiVisualBoxInfo, aiVisualNeedCopyQuery, getStorageSecret, getDeviceDetailsById, getCameraList, bindDevice, customEventCheck, getSmartEventSwitchState, updateSmartEventSwitchState, getDeviceConfig, updateDeviceConfig, getServiceDetail, albumVideoDateCount, albumVideoFileList, albumFileDelete, albumSettingSave, albumSettingEdit, getAlbumSetting, getVisualBoxList, getPresetEvent, visualBoxEventCheck };
|