Manage manual product compositions
This commit is contained in:
13
src/types.ts
13
src/types.ts
@@ -604,6 +604,19 @@ export interface ProductComposition {
|
||||
components: ProductCompositionComponent[];
|
||||
}
|
||||
|
||||
export interface ProductCompositionPayload {
|
||||
productSku: string;
|
||||
productDescription: string;
|
||||
productUnit: string;
|
||||
components: Array<{
|
||||
componentTinyId?: string;
|
||||
componentSku?: string;
|
||||
componentName: string;
|
||||
quantityPerUnit: number;
|
||||
unit: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface ProductCompositionImportSummary {
|
||||
imported: number;
|
||||
failed: number;
|
||||
|
||||
Reference in New Issue
Block a user