aiVisualNeedCopyQuery(params: AiVisualNeedCopyQueryParams)
版本要求:
@tuya-miniapp/cloud-api≥1.0.5
描述
根据 stockId 查询其对应的视觉魔方是否有正在同步的配置
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 请求体 |
返回值
类型:Promise<AiVisualNeedCopyQueryResult>
scenesType、visionBoxId、needCopyEvent(见 AiVisualNeedCopyQueryResult)
引用对象
type
AiVisualNeedCopyQueryResult| 属性 | 类型 | 描述 |
|---|---|---|
scenesType | SceneType | 场景类型 |
visionBoxId | number | 视觉魔方 id(可选) |
needCopyEvent | boolean | 是否需要同步复制事件 |
enum
SceneType| 枚举值 | 实际值 | 描述 |
|---|---|---|
SceneType.security | 0 | 安防场景 |
SceneType.album | 1 | 相册场景 |
合法值
SceneType
| 值 | 说明 | 最低版本 |
|---|---|---|
0 | 安防场景 | - |
1 | 相册场景 | - |