chore: 对齐运行时工作空间客户端类型
This commit is contained in:
1 parent
c3df77e227
commit
7dc72b4a48
2 files changed
+19
-4
No files matched your search
@@ -24,7 +24,7 @@
|
||||
- [x] 增加公开工作空间契约结构测试。
|
||||
- [x] 集成测试覆盖运行时 schemaVersion、导航、模块、Offering、表单、能力和主题。
|
||||
- [ ] 增加 API 授权、品牌隔离和 schema 版本测试。
|
||||
- [ ] 让 Admin 与小程序读取同一运行时契约。
|
||||
- [ ] 让 Admin 工作空间预览读取同一运行时契约。
|
||||
- [x] 小程序首页和案例列表优先消费 `/public/workspace`,保留静态降级基线。
|
||||
|
||||
### 后续阶段
|
||||
|
||||
@@ -191,6 +191,14 @@ export interface InquirySubmission {
|
||||
offering?: { id: string; name: string } | null;
|
||||
}
|
||||
export interface PublicWorkspace {
|
||||
schemaVersion?: string;
|
||||
navigation?: { tabs: Array<{ key: string; label: string; page: string }> };
|
||||
theme?: {
|
||||
colors: Record<string, string>;
|
||||
typography?: Record<string, string>;
|
||||
spacing?: Record<string, string>;
|
||||
radius?: Record<string, string>;
|
||||
};
|
||||
contractVersion: string;
|
||||
brand: BrandProfile | null;
|
||||
template: { key: BrandTemplateKey; version: string; name: string } | null;
|
||||
@@ -199,14 +207,21 @@ export interface PublicWorkspace {
|
||||
runtimeModules: Array<{
|
||||
key: string;
|
||||
type: string;
|
||||
title: string;
|
||||
schemaVersion: string;
|
||||
sortOrder: number;
|
||||
version?: string;
|
||||
propsSchema?: string;
|
||||
dataSource?: string;
|
||||
source?: string;
|
||||
title?: string;
|
||||
schemaVersion?: string;
|
||||
sortOrder?: number;
|
||||
config?: Record<string, unknown> | null;
|
||||
}>;
|
||||
fields: BrandFieldDefinition[];
|
||||
offerings: Offering[];
|
||||
inquiryForm: InquiryForm | null;
|
||||
runtimeOfferings?: Array<Record<string, unknown>>;
|
||||
inquiryForms?: Array<Record<string, unknown>>;
|
||||
runtimeCapabilities?: Array<{ key: string; version: string; status?: string }>;
|
||||
}
|
||||
export interface Offering {
|
||||
id: string;
|
||||
|
||||
Reference in new issue
Block a user