@mamindom/contracts 1.0.133 → 1.0.134

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.
@@ -16,6 +16,7 @@ export interface CartItem {
16
16
  lineSubtotal: number;
17
17
  lineDiscount: number;
18
18
  lineTotal: number;
19
+ size: string;
19
20
  }
20
21
  export interface AppliedPromotion {
21
22
  promotionId: string;
@@ -26,6 +26,7 @@ export interface OrderItem {
26
26
  lineDiscount: number;
27
27
  lineTotal: number;
28
28
  inStock: boolean;
29
+ size: string;
29
30
  }
30
31
  export interface OrderRecipient {
31
32
  isDifferentFromCustomer: boolean;
@@ -898,6 +898,8 @@ export interface VariantLookupResult {
898
898
  colorId?: string | undefined;
899
899
  /** Вага у кг (variant.weight_kg ?? product.weight_kg ?? 0). */
900
900
  weightKg: number;
901
+ /** Розмір з variant.options.size — для відображення у замовленнях. */
902
+ size: string;
901
903
  }
902
904
  export interface BulkLookupVariantsRequest {
903
905
  variantIds: string[];
@@ -53,6 +53,7 @@ message CartItem {
53
53
  double line_subtotal = 13;
54
54
  double line_discount = 14;
55
55
  double line_total = 15;
56
+ string size = 16;
56
57
  }
57
58
 
58
59
  message AppliedPromotion {
@@ -66,6 +66,7 @@ message OrderItem {
66
66
  double line_discount = 9;
67
67
  double line_total = 10;
68
68
  bool in_stock = 11;
69
+ string size = 12;
69
70
  }
70
71
 
71
72
  message OrderRecipient {
@@ -790,6 +790,8 @@ message VariantLookupResult {
790
790
  optional string color_id = 11;
791
791
  // Вага у кг (variant.weight_kg ?? product.weight_kg ?? 0).
792
792
  double weight_kg = 12;
793
+ // Розмір з variant.options.size — для відображення у замовленнях.
794
+ string size = 13;
793
795
  }
794
796
 
795
797
  message BulkLookupVariantsRequest {
package/gen/cart.ts CHANGED
@@ -26,6 +26,7 @@ export interface CartItem {
26
26
  lineSubtotal: number;
27
27
  lineDiscount: number;
28
28
  lineTotal: number;
29
+ size: string;
29
30
  }
30
31
 
31
32
  export interface AppliedPromotion {
package/gen/order.ts CHANGED
@@ -39,6 +39,7 @@ export interface OrderItem {
39
39
  lineDiscount: number;
40
40
  lineTotal: number;
41
41
  inStock: boolean;
42
+ size: string;
42
43
  }
43
44
 
44
45
  export interface OrderRecipient {
package/gen/product.ts CHANGED
@@ -929,6 +929,8 @@ export interface VariantLookupResult {
929
929
  | undefined;
930
930
  /** Вага у кг (variant.weight_kg ?? product.weight_kg ?? 0). */
931
931
  weightKg: number;
932
+ /** Розмір з variant.options.size — для відображення у замовленнях. */
933
+ size: string;
932
934
  }
933
935
 
934
936
  export interface BulkLookupVariantsRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.133",
4
+ "version": "1.0.134",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
package/proto/cart.proto CHANGED
@@ -53,6 +53,7 @@ message CartItem {
53
53
  double line_subtotal = 13;
54
54
  double line_discount = 14;
55
55
  double line_total = 15;
56
+ string size = 16;
56
57
  }
57
58
 
58
59
  message AppliedPromotion {
package/proto/order.proto CHANGED
@@ -66,6 +66,7 @@ message OrderItem {
66
66
  double line_discount = 9;
67
67
  double line_total = 10;
68
68
  bool in_stock = 11;
69
+ string size = 12;
69
70
  }
70
71
 
71
72
  message OrderRecipient {
@@ -790,6 +790,8 @@ message VariantLookupResult {
790
790
  optional string color_id = 11;
791
791
  // Вага у кг (variant.weight_kg ?? product.weight_kg ?? 0).
792
792
  double weight_kg = 12;
793
+ // Розмір з variant.options.size — для відображення у замовленнях.
794
+ string size = 13;
793
795
  }
794
796
 
795
797
  message BulkLookupVariantsRequest {