refactor: 退役运行时视觉模块并泛化模板门禁
This commit is contained in:
1 parent
25d1fe983c
commit
e2e2340bfe
56 files changed
+290
-1037
No files matched your search
@@ -7,7 +7,6 @@ import type {
|
||||
BrandTemplateKey,
|
||||
RuntimeCapability,
|
||||
RuntimeInquiryForm,
|
||||
RuntimeModule,
|
||||
RuntimeOffering,
|
||||
ThemeManifest,
|
||||
} from "@personal-brand/types";
|
||||
@@ -219,15 +218,6 @@ export interface OfferingCta {
|
||||
label: string;
|
||||
config?: Record<string, unknown>;
|
||||
}
|
||||
export interface BrandModule {
|
||||
id: string;
|
||||
type: string;
|
||||
title: string;
|
||||
isEnabled: boolean;
|
||||
sortOrder: number;
|
||||
source: string;
|
||||
config?: Record<string, unknown> | null;
|
||||
}
|
||||
export interface BrandFieldDefinition {
|
||||
id: string;
|
||||
scope: string;
|
||||
@@ -325,7 +315,6 @@ export interface PublicWorkspace {
|
||||
capabilities: string[];
|
||||
};
|
||||
capabilities: RuntimeCapability[];
|
||||
modules: RuntimeModule[];
|
||||
offerings: RuntimeOffering[];
|
||||
inquiryForms: RuntimeInquiryForm[];
|
||||
navigation: { tabs: Array<{ key: string; label: string; page: string }> };
|
||||
@@ -624,7 +613,6 @@ export class ApiClient {
|
||||
};
|
||||
runtime: {
|
||||
schemaVersion: string;
|
||||
modules: Array<{ key: string; type: string; title: string; variant: string }>;
|
||||
capabilities: Array<{ key: string; version: string }>;
|
||||
theme: unknown;
|
||||
};
|
||||
@@ -649,7 +637,6 @@ export class ApiClient {
|
||||
variants: Record<string, string>;
|
||||
} | null;
|
||||
installations: Array<{ id: string; templateKey: BrandTemplateKey; templateVersion: string }>;
|
||||
modules: BrandModule[];
|
||||
fields: BrandFieldDefinition[];
|
||||
offerings: Offering[];
|
||||
forms: unknown[];
|
||||
@@ -734,12 +721,6 @@ export class ApiClient {
|
||||
rollbackAdminTemplate(): Promise<unknown> {
|
||||
return this.request("/admin/workspace/template/rollback", { method: "POST" });
|
||||
}
|
||||
updateAdminModule(id: string, body: Partial<BrandModule>): Promise<BrandModule> {
|
||||
return this.request(`/admin/workspace/modules/${encodeURIComponent(id)}`, {
|
||||
method: "PATCH",
|
||||
body,
|
||||
});
|
||||
}
|
||||
createAdminField(
|
||||
body: Omit<BrandFieldDefinition, "id" | "source">,
|
||||
): Promise<BrandFieldDefinition> {
|
||||
|
||||
Reference in new issue
Block a user