getPanelAgentSoulRecallEntryStatus(params: GetPanelAgentSoulRecallEntryStatusParams)

版本要求:
@tuya-miniapp/cloud-api≥1.x.x

描述

查询记忆找回入口状态。

参数

参数类型必填说明
是请求参数

返回值

类型:Promise<GetPanelAgentSoulRecallEntryStatusResult>
GetPanelAgentSoulRecallEntryStatusResult(字段含义见类型定义与 minituya 返回参数)

引用对象

interfaceGetPanelAgentSoulRecallEntryStatusResult
属性类型描述
action"GO_MAIN" | "IN_PROGRESS" | "SHOW_RECALL"入口动作:GO_MAIN(无需迁移)/ IN_PROGRESS(迁移中)/ SHOW_RECALL(可以迁移)
inProgressTaskIdstring进行中的迁移任务 ID(action=IN_PROGRESS 时)
hasMigrableboolean是否存在可迁移设备(action=SHOW_RECALL 时)
deviceCountnumber可迁移设备数量

合法值

GetPanelAgentSoulRecallEntryStatusResult.action
值说明最低版本
GO_MAIN--
IN_PROGRESS--
SHOW_RECALL--

示例代码

请求示例

import { getPanelAgentSoulRecallEntryStatus } from '@tuya-miniapp/cloud-api';

const params = {
  devId: 'your_device_id',
};

getPanelAgentSoulRecallEntryStatus(params)
  .then(result => {
    console.log('记忆找回入口状态:', result);
  })
  .catch(error => {
    console.error('查询记忆找回入口状态失败:', error);
  });

返回示例

{
  "action": "SHOW_RECALL",
  "hasMigrable": true,
  "deviceCount": 2
}