refactor: 收敛公开工作区运行时契约
This commit is contained in:
1 parent
d5e63be074
commit
9b61047ec6
13 files changed
+93
-64
No files matched your search
@@ -5,6 +5,11 @@ import type {
|
||||
FulfillmentType,
|
||||
PublicOffering,
|
||||
BrandTemplateKey,
|
||||
RuntimeCapability,
|
||||
RuntimeInquiryForm,
|
||||
RuntimeModule,
|
||||
RuntimeOffering,
|
||||
ThemeManifest,
|
||||
} from "@personal-brand/types";
|
||||
export type { PublicOffering } from "@personal-brand/types";
|
||||
export type { BookingStatus } from "@personal-brand/types";
|
||||
@@ -273,19 +278,16 @@ export interface CapabilityInstallation {
|
||||
source?: "template" | "brand";
|
||||
}
|
||||
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>;
|
||||
};
|
||||
layout?: { home: string[]; offerings: string[]; detail: string[]; profile: string[] };
|
||||
schemaVersion: string;
|
||||
contractVersion: string;
|
||||
brand: BrandProfile | null;
|
||||
publication: {
|
||||
status: "published" | "unpublished";
|
||||
version: number | null;
|
||||
publishedAt?: string;
|
||||
};
|
||||
brand: (BrandProfile & Record<string, unknown>) | null;
|
||||
template: { key: BrandTemplateKey; version: string; name: string } | null;
|
||||
visualTemplate?: {
|
||||
visualTemplate: {
|
||||
key: string;
|
||||
version: string;
|
||||
name: string;
|
||||
@@ -322,27 +324,14 @@ export interface PublicWorkspace {
|
||||
dataSlots: Array<Record<string, unknown>>;
|
||||
capabilities: string[];
|
||||
};
|
||||
capabilities: string[];
|
||||
modules: BrandModule[];
|
||||
runtimeModules: Array<{
|
||||
key: string;
|
||||
type: string;
|
||||
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>>;
|
||||
trustPresentation?: Record<string, unknown>;
|
||||
runtimeCapabilities?: Array<{ key: string; version: string; status?: string }>;
|
||||
capabilities: RuntimeCapability[];
|
||||
modules: RuntimeModule[];
|
||||
offerings: RuntimeOffering[];
|
||||
inquiryForms: RuntimeInquiryForm[];
|
||||
navigation: { tabs: Array<{ key: string; label: string; page: string }> };
|
||||
trustPresentation: Record<string, unknown>;
|
||||
theme: ThemeManifest;
|
||||
layout?: { home: string[]; offerings: string[]; detail: string[]; profile: string[] };
|
||||
plugins?: Array<{
|
||||
key: string;
|
||||
version: string;
|
||||
|
||||
Reference in new issue
Block a user