feat(edit|extension): 编辑页类目采集开发
This commit is contained in:
@@ -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
Reference in New Issue
Block a user