feat(edit|extension): 编辑页类目采集开发

This commit is contained in:
R524809
2026-09-22 13:47:24 +08:00
parent 2b06ef0692
commit 95a2a37f1b
12 changed files with 30302 additions and 51 deletions
+15
View File
@@ -32,6 +32,20 @@ export type ProductAiSourceMaterialState = {
has_source_updates: boolean;
};
/** Ozon 来源一级类目和商品类型在平台目录中的只读匹配结果。 */
export type CapturedCategoryMatch = {
status: 'unavailable' | 'unmatched' | 'matched' | 'ambiguous';
root_category_name: string | null;
type_name: string | null;
candidates: Array<{
id: string;
name: string;
path: string;
external_category_id: string;
external_type_id: string;
}>;
};
export type ProductAiInput = {
source_material: ProductAiSourceMaterial;
default_physical_spec: PhysicalSpec;
@@ -266,6 +280,7 @@ export type ProductEditorSnapshot = {
}>;
source_material: ProductAiSourceMaterial;
source_material_state: ProductAiSourceMaterialState;
captured_category_match: CapturedCategoryMatch;
ai_input: ProductAiInput;
warnings: Array<{ code: string; message: string }>;
};
File diff suppressed because one or more lines are too long