@chopkola/common 1.0.137 → 1.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,9 +96,13 @@ export interface ProductWithVariantsI extends ProductI {
96
96
  variants: ProductVariantI[];
97
97
  }
98
98
  export interface InventoryItemWithProductI extends InventoryItemI {
99
+ product?: ProductWithVariantsI | null;
100
+ movements?: StockMovementI[];
101
+ }
102
+ export interface InventoryItemWithProductAndVariantI extends InventoryItemI {
99
103
  product?: ProductI | null;
100
- product_variant?: ProductVariantI | null;
101
- movements: StockMovementI[];
104
+ variant?: ProductVariantI | null;
105
+ movements?: StockMovementI[];
102
106
  }
103
107
  export type CreateProductInput = Omit<ProductI, "id" | "created_at" | "updated_at">;
104
108
  export type CreateProductVariantInput = Omit<ProductVariantI, "id" | "created_at" | "updated_at">;
@@ -112,7 +116,7 @@ export type InventoryLink = {
112
116
  product_variant_id: UUID;
113
117
  };
114
118
  export interface VendorProductsManagementData {
115
- inventoriesWithProducts: InventoryItemWithProductI[];
119
+ inventories: InventoryItemWithProductAndVariantI[];
116
120
  stats: VendorProductsStats;
117
121
  }
118
122
  export interface VendorCreateOrEditProductPageData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.137",
3
+ "version": "1.0.139",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",