跳到主要内容

EntityDataPayload

Defined in: types.ts:283

实体查询结果载荷。

Properties​

_meta?​

optional _meta?: object;

Defined in: types.ts:293

附加诊断信息,仅在有内容时出现。

encryptedFields?​

optional encryptedFields?: string[];

本次结果中被遮罩的字段名。

errorCode?​

optional errorCode?:
| "ENTITY_NOT_FOUND"
| "ENTITY_AMBIGUOUS"
| "RXDB_NOT_READY"
| "KEYRING_LOCKED";

结构化错误码,供面板做分支处理而不必匹配文案。

类型收窄到 DevToolsEntityErrorCode,但运行时校验保持宽松 —— 面板可能连到比自己新的连接器,未知码必须能安全落地。


data​

data: unknown[];

Defined in: types.ts:291

已序列化且已遮罩的文档列表;失败时为空数组。


entityName​

entityName: string;

Defined in: types.ts:285

回显请求的实体名,便于面板把响应对回请求。


error​

error: string | null;

Defined in: types.ts:289

查询失败时的可读描述;成功为 null。


namespace?​

optional namespace?: string;

Defined in: types.ts:287

回显请求中的 namespace;旧客户端未传时省略。