fix: update product variant model to include variant_attribute_name and remove product_option_id
This commit is contained in:
parent
f63dd99e89
commit
d10b52924c
|
|
@ -18,7 +18,6 @@ export interface ProductVariant {
|
||||||
stock_managed: boolean;
|
stock_managed: boolean;
|
||||||
stock_number: number;
|
stock_number: number;
|
||||||
weight: number;
|
weight: number;
|
||||||
product_option_id?: number;
|
|
||||||
attributes?: Record<string, any>;
|
attributes?: Record<string, any>;
|
||||||
meta?: Record<string, any>;
|
meta?: Record<string, any>;
|
||||||
file_ids?: ProductImage[];
|
file_ids?: ProductImage[];
|
||||||
|
|
@ -60,7 +59,7 @@ export interface ProductFormData {
|
||||||
product_option_id?: number;
|
product_option_id?: number;
|
||||||
total_sold: number;
|
total_sold: number;
|
||||||
type: number;
|
type: number;
|
||||||
attributes: Record<string, any>;
|
variant_attribute_name?: string;
|
||||||
file_ids: ProductImage[];
|
file_ids: ProductImage[];
|
||||||
variants: ProductVariantFormData[];
|
variants: ProductVariantFormData[];
|
||||||
}
|
}
|
||||||
|
|
@ -74,7 +73,6 @@ export interface ProductVariantFormData {
|
||||||
stock_managed: boolean;
|
stock_managed: boolean;
|
||||||
stock_number: number;
|
stock_number: number;
|
||||||
weight: number;
|
weight: number;
|
||||||
product_option_id?: number;
|
|
||||||
attributes: Record<string, any>;
|
attributes: Record<string, any>;
|
||||||
meta: Record<string, any>;
|
meta: Record<string, any>;
|
||||||
file_ids: ProductImage[];
|
file_ids: ProductImage[];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue