@chopkola/common 1.0.138 → 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.
@@ -99,6 +99,11 @@ export interface InventoryItemWithProductI extends InventoryItemI {
99
99
  product?: ProductWithVariantsI | null;
100
100
  movements?: StockMovementI[];
101
101
  }
102
+ export interface InventoryItemWithProductAndVariantI extends InventoryItemI {
103
+ product?: ProductI | null;
104
+ variant?: ProductVariantI | null;
105
+ movements?: StockMovementI[];
106
+ }
102
107
  export type CreateProductInput = Omit<ProductI, "id" | "created_at" | "updated_at">;
103
108
  export type CreateProductVariantInput = Omit<ProductVariantI, "id" | "created_at" | "updated_at">;
104
109
  export type CreateInventoryItemInput = Omit<InventoryItemI, "id" | "created_at" | "updated_at" | "stock_status">;
@@ -111,7 +116,7 @@ export type InventoryLink = {
111
116
  product_variant_id: UUID;
112
117
  };
113
118
  export interface VendorProductsManagementData {
114
- inventoriesWithProducts: InventoryItemWithProductI[];
119
+ inventories: InventoryItemWithProductAndVariantI[];
115
120
  stats: VendorProductsStats;
116
121
  }
117
122
  export interface VendorCreateOrEditProductPageData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chopkola/common",
3
- "version": "1.0.138",
3
+ "version": "1.0.139",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "akrosoft technology ltd",