ce-storefront 0.3.5 → 0.3.7

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.
Files changed (158) hide show
  1. package/esm/lib/config.d.ts +3 -3
  2. package/esm/lib/config.js +3 -3
  3. package/esm/models/components/analyticsevent.d.ts +8 -8
  4. package/esm/models/components/analyticsevent.d.ts.map +1 -1
  5. package/esm/models/components/analyticsevent.js +12 -12
  6. package/esm/models/components/analyticsevent.js.map +1 -1
  7. package/esm/models/components/associatedoption.d.ts +125 -0
  8. package/esm/models/components/associatedoption.d.ts.map +1 -0
  9. package/esm/models/components/associatedoption.js +107 -0
  10. package/esm/models/components/associatedoption.js.map +1 -0
  11. package/esm/models/components/bundleproduct.d.ts +236 -0
  12. package/esm/models/components/bundleproduct.d.ts.map +1 -0
  13. package/esm/models/components/bundleproduct.js +262 -0
  14. package/esm/models/components/bundleproduct.js.map +1 -0
  15. package/esm/models/components/bundleproductdetail.d.ts +265 -0
  16. package/esm/models/components/bundleproductdetail.d.ts.map +1 -0
  17. package/esm/models/components/bundleproductdetail.js +288 -0
  18. package/esm/models/components/bundleproductdetail.js.map +1 -0
  19. package/esm/models/components/cart.d.ts +15 -15
  20. package/esm/models/components/cart.d.ts.map +1 -1
  21. package/esm/models/components/cart.js +15 -15
  22. package/esm/models/components/cart.js.map +1 -1
  23. package/esm/models/components/discountbasedpromotion.d.ts +0 -2
  24. package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
  25. package/esm/models/components/discountbasedpromotion.js +0 -4
  26. package/esm/models/components/discountbasedpromotion.js.map +1 -1
  27. package/esm/models/components/fixedpricepromotion.d.ts +0 -2
  28. package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
  29. package/esm/models/components/fixedpricepromotion.js +0 -4
  30. package/esm/models/components/fixedpricepromotion.js.map +1 -1
  31. package/esm/models/components/freegoodspromotion.d.ts +0 -5
  32. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  33. package/esm/models/components/freegoodspromotion.js +0 -4
  34. package/esm/models/components/freegoodspromotion.js.map +1 -1
  35. package/esm/models/components/index.d.ts +8 -6
  36. package/esm/models/components/index.d.ts.map +1 -1
  37. package/esm/models/components/index.js +8 -6
  38. package/esm/models/components/index.js.map +1 -1
  39. package/esm/models/components/productattribute.d.ts +97 -64
  40. package/esm/models/components/productattribute.d.ts.map +1 -1
  41. package/esm/models/components/productattribute.js +67 -128
  42. package/esm/models/components/productattribute.js.map +1 -1
  43. package/esm/models/components/productcategory.d.ts +2 -2
  44. package/esm/models/components/productcategory.d.ts.map +1 -1
  45. package/esm/models/components/productcategory.js +2 -2
  46. package/esm/models/components/productcategory.js.map +1 -1
  47. package/esm/models/components/productdetail.d.ts +16 -188
  48. package/esm/models/components/productdetail.d.ts.map +1 -1
  49. package/esm/models/components/productdetail.js +26 -228
  50. package/esm/models/components/productdetail.js.map +1 -1
  51. package/esm/models/components/productlistresponse.d.ts +49 -3
  52. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  53. package/esm/models/components/productlistresponse.js +65 -3
  54. package/esm/models/components/productlistresponse.js.map +1 -1
  55. package/esm/models/components/productshipping.d.ts +13 -15
  56. package/esm/models/components/productshipping.d.ts.map +1 -1
  57. package/esm/models/components/productshipping.js +14 -18
  58. package/esm/models/components/productshipping.js.map +1 -1
  59. package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
  60. package/esm/models/components/promotiondetail.d.ts.map +1 -0
  61. package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
  62. package/esm/models/components/promotiondetail.js.map +1 -0
  63. package/esm/models/components/seo.d.ts +6 -6
  64. package/esm/models/components/seo.d.ts.map +1 -1
  65. package/esm/models/components/seo.js +6 -19
  66. package/esm/models/components/seo.js.map +1 -1
  67. package/esm/models/components/{product.d.ts → singleproduct.d.ts} +52 -75
  68. package/esm/models/components/singleproduct.d.ts.map +1 -0
  69. package/esm/models/components/{product.js → singleproduct.js} +37 -95
  70. package/esm/models/components/singleproduct.js.map +1 -0
  71. package/esm/models/components/singleproductdetail.d.ts +159 -0
  72. package/esm/models/components/singleproductdetail.d.ts.map +1 -0
  73. package/esm/models/components/singleproductdetail.js +156 -0
  74. package/esm/models/components/singleproductdetail.js.map +1 -0
  75. package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +59 -48
  76. package/esm/models/components/sku.d.ts.map +1 -0
  77. package/esm/models/components/{skuinfo.js → sku.js} +67 -57
  78. package/esm/models/components/sku.js.map +1 -0
  79. package/esm/models/components/variant.d.ts +42 -72
  80. package/esm/models/components/variant.d.ts.map +1 -1
  81. package/esm/models/components/variant.js +39 -82
  82. package/esm/models/components/variant.js.map +1 -1
  83. package/esm/models/components/variantdetail.d.ts +101 -68
  84. package/esm/models/components/variantdetail.d.ts.map +1 -1
  85. package/esm/models/components/variantdetail.js +99 -71
  86. package/esm/models/components/variantdetail.js.map +1 -1
  87. package/esm/models/components/variantoption.d.ts +118 -0
  88. package/esm/models/components/variantoption.d.ts.map +1 -0
  89. package/esm/models/components/variantoption.js +114 -0
  90. package/esm/models/components/variantoption.js.map +1 -0
  91. package/esm/models/components/volumebasedpromotion.d.ts +0 -5
  92. package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
  93. package/esm/models/components/volumebasedpromotion.js +0 -4
  94. package/esm/models/components/volumebasedpromotion.js.map +1 -1
  95. package/esm/models/operations/getpromotions.d.ts +2 -2
  96. package/esm/models/operations/getpromotions.d.ts.map +1 -1
  97. package/esm/models/operations/getpromotions.js +2 -2
  98. package/esm/models/operations/getpromotions.js.map +1 -1
  99. package/esm/models/operations/getskus.d.ts +2 -2
  100. package/esm/models/operations/getskus.d.ts.map +1 -1
  101. package/esm/models/operations/getskus.js +2 -2
  102. package/esm/models/operations/getskus.js.map +1 -1
  103. package/esm/models/operations/getwishtlist.d.ts +2 -2
  104. package/esm/models/operations/getwishtlist.d.ts.map +1 -1
  105. package/esm/models/operations/getwishtlist.js +2 -2
  106. package/esm/models/operations/getwishtlist.js.map +1 -1
  107. package/jsr.json +1 -1
  108. package/package.json +1 -1
  109. package/src/lib/config.ts +3 -3
  110. package/src/models/components/analyticsevent.ts +16 -15
  111. package/src/models/components/associatedoption.ts +217 -0
  112. package/src/models/components/bundleproduct.ts +501 -0
  113. package/src/models/components/bundleproductdetail.ts +567 -0
  114. package/src/models/components/cart.ts +24 -24
  115. package/src/models/components/discountbasedpromotion.ts +0 -6
  116. package/src/models/components/fixedpricepromotion.ts +0 -6
  117. package/src/models/components/freegoodspromotion.ts +0 -9
  118. package/src/models/components/index.ts +8 -6
  119. package/src/models/components/productattribute.ts +162 -188
  120. package/src/models/components/productcategory.ts +4 -4
  121. package/src/models/components/productdetail.ts +52 -475
  122. package/src/models/components/productlistresponse.ts +147 -9
  123. package/src/models/components/productshipping.ts +27 -33
  124. package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
  125. package/src/models/components/seo.ts +12 -25
  126. package/src/models/components/singleproduct.ts +269 -0
  127. package/src/models/components/singleproductdetail.ts +339 -0
  128. package/src/models/components/sku.ts +252 -0
  129. package/src/models/components/variant.ts +81 -170
  130. package/src/models/components/variantdetail.ts +189 -168
  131. package/src/models/components/variantoption.ts +214 -0
  132. package/src/models/components/volumebasedpromotion.ts +0 -9
  133. package/src/models/operations/getpromotions.ts +4 -4
  134. package/src/models/operations/getskus.ts +4 -4
  135. package/src/models/operations/getwishtlist.ts +4 -4
  136. package/esm/models/components/product.d.ts.map +0 -1
  137. package/esm/models/components/product.js.map +0 -1
  138. package/esm/models/components/productbundleitem.d.ts +0 -47
  139. package/esm/models/components/productbundleitem.d.ts.map +0 -1
  140. package/esm/models/components/productbundleitem.js +0 -66
  141. package/esm/models/components/productbundleitem.js.map +0 -1
  142. package/esm/models/components/productpackaging.d.ts +0 -68
  143. package/esm/models/components/productpackaging.d.ts.map +0 -1
  144. package/esm/models/components/productpackaging.js +0 -88
  145. package/esm/models/components/productpackaging.js.map +0 -1
  146. package/esm/models/components/promotion.d.ts.map +0 -1
  147. package/esm/models/components/promotion.js.map +0 -1
  148. package/esm/models/components/saleschannel.d.ts +0 -39
  149. package/esm/models/components/saleschannel.d.ts.map +0 -1
  150. package/esm/models/components/saleschannel.js +0 -53
  151. package/esm/models/components/saleschannel.js.map +0 -1
  152. package/esm/models/components/skuinfo.d.ts.map +0 -1
  153. package/esm/models/components/skuinfo.js.map +0 -1
  154. package/src/models/components/product.ts +0 -363
  155. package/src/models/components/productbundleitem.ts +0 -127
  156. package/src/models/components/productpackaging.ts +0 -162
  157. package/src/models/components/saleschannel.ts +0 -96
  158. package/src/models/components/skuinfo.ts +0 -237
@@ -26,7 +26,6 @@ export type DiscountBasedPromotion = {
26
26
  * '> 0' if discount_type = fixed-amount, otherwise set 0.
27
27
  */
28
28
  discountFixedAmount?: number | undefined;
29
- customerGroupId?: string | null | undefined;
30
29
  };
31
30
 
32
31
  /** @internal */
@@ -58,14 +57,12 @@ export const DiscountBasedPromotion$inboundSchema: z.ZodType<
58
57
  discount_type: DiscountType$inboundSchema,
59
58
  discount_percent: z.number().optional(),
60
59
  discount_fixed_amount: z.number().int().optional(),
61
- customer_group_id: z.nullable(z.string()).optional(),
62
60
  }).transform((v) => {
63
61
  return remap$(v, {
64
62
  "promotion_type": "promotionType",
65
63
  "discount_type": "discountType",
66
64
  "discount_percent": "discountPercent",
67
65
  "discount_fixed_amount": "discountFixedAmount",
68
- "customer_group_id": "customerGroupId",
69
66
  });
70
67
  });
71
68
 
@@ -75,7 +72,6 @@ export type DiscountBasedPromotion$Outbound = {
75
72
  discount_type: string;
76
73
  discount_percent?: number | undefined;
77
74
  discount_fixed_amount?: number | undefined;
78
- customer_group_id?: string | null | undefined;
79
75
  };
80
76
 
81
77
  /** @internal */
@@ -88,14 +84,12 @@ export const DiscountBasedPromotion$outboundSchema: z.ZodType<
88
84
  discountType: DiscountType$outboundSchema,
89
85
  discountPercent: z.number().optional(),
90
86
  discountFixedAmount: z.number().int().optional(),
91
- customerGroupId: z.nullable(z.string()).optional(),
92
87
  }).transform((v) => {
93
88
  return remap$(v, {
94
89
  promotionType: "promotion_type",
95
90
  discountType: "discount_type",
96
91
  discountPercent: "discount_percent",
97
92
  discountFixedAmount: "discount_fixed_amount",
98
- customerGroupId: "customer_group_id",
99
93
  });
100
94
  });
101
95
 
@@ -11,7 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  export type FixedPricePromotion = {
12
12
  promotionType?: "discount" | undefined;
13
13
  offerPrice: number;
14
- customerGroupId?: string | null | undefined;
15
14
  };
16
15
 
17
16
  /** @internal */
@@ -22,12 +21,10 @@ export const FixedPricePromotion$inboundSchema: z.ZodType<
22
21
  > = z.object({
23
22
  promotion_type: z.literal("discount").optional(),
24
23
  offer_price: z.number(),
25
- customer_group_id: z.nullable(z.string()).optional(),
26
24
  }).transform((v) => {
27
25
  return remap$(v, {
28
26
  "promotion_type": "promotionType",
29
27
  "offer_price": "offerPrice",
30
- "customer_group_id": "customerGroupId",
31
28
  });
32
29
  });
33
30
 
@@ -35,7 +32,6 @@ export const FixedPricePromotion$inboundSchema: z.ZodType<
35
32
  export type FixedPricePromotion$Outbound = {
36
33
  promotion_type: "discount";
37
34
  offer_price: number;
38
- customer_group_id?: string | null | undefined;
39
35
  };
40
36
 
41
37
  /** @internal */
@@ -46,12 +42,10 @@ export const FixedPricePromotion$outboundSchema: z.ZodType<
46
42
  > = z.object({
47
43
  promotionType: z.literal("discount").default("discount" as const),
48
44
  offerPrice: z.number(),
49
- customerGroupId: z.nullable(z.string()).optional(),
50
45
  }).transform((v) => {
51
46
  return remap$(v, {
52
47
  promotionType: "promotion_type",
53
48
  offerPrice: "offer_price",
54
- customerGroupId: "customer_group_id",
55
49
  });
56
50
  });
57
51
 
@@ -18,10 +18,6 @@ export type FreeGoodsPromotion = {
18
18
  * The quantity of free goods the customer receives.
19
19
  */
20
20
  getQuantity: number;
21
- /**
22
- * Optional ID for a specific customer group.
23
- */
24
- customerGroupId?: string | null | undefined;
25
21
  };
26
22
 
27
23
  /** @internal */
@@ -33,13 +29,11 @@ export const FreeGoodsPromotion$inboundSchema: z.ZodType<
33
29
  promotion_type: z.literal("free-goods").optional(),
34
30
  buy_quantity: z.number().int(),
35
31
  get_quantity: z.number().int(),
36
- customer_group_id: z.nullable(z.string()).optional(),
37
32
  }).transform((v) => {
38
33
  return remap$(v, {
39
34
  "promotion_type": "promotionType",
40
35
  "buy_quantity": "buyQuantity",
41
36
  "get_quantity": "getQuantity",
42
- "customer_group_id": "customerGroupId",
43
37
  });
44
38
  });
45
39
 
@@ -48,7 +42,6 @@ export type FreeGoodsPromotion$Outbound = {
48
42
  promotion_type: "free-goods";
49
43
  buy_quantity: number;
50
44
  get_quantity: number;
51
- customer_group_id?: string | null | undefined;
52
45
  };
53
46
 
54
47
  /** @internal */
@@ -60,13 +53,11 @@ export const FreeGoodsPromotion$outboundSchema: z.ZodType<
60
53
  promotionType: z.literal("free-goods").default("free-goods" as const),
61
54
  buyQuantity: z.number().int(),
62
55
  getQuantity: z.number().int(),
63
- customerGroupId: z.nullable(z.string()).optional(),
64
56
  }).transform((v) => {
65
57
  return remap$(v, {
66
58
  promotionType: "promotion_type",
67
59
  buyQuantity: "buy_quantity",
68
60
  getQuantity: "get_quantity",
69
- customerGroupId: "customer_group_id",
70
61
  });
71
62
  });
72
63
 
@@ -4,7 +4,10 @@
4
4
 
5
5
  export * from "./analyticsevent.js";
6
6
  export * from "./anonymoususer.js";
7
+ export * from "./associatedoption.js";
7
8
  export * from "./banktransfer.js";
9
+ export * from "./bundleproduct.js";
10
+ export * from "./bundleproductdetail.js";
8
11
  export * from "./business.js";
9
12
  export * from "./cardpayment.js";
10
13
  export * from "./cart.js";
@@ -51,31 +54,30 @@ export * from "./payupaymentinfo.js";
51
54
  export * from "./payupaymentmethod.js";
52
55
  export * from "./payusavedcard.js";
53
56
  export * from "./pincode.js";
54
- export * from "./product.js";
55
57
  export * from "./productattribute.js";
56
- export * from "./productbundleitem.js";
57
58
  export * from "./productcategory.js";
58
59
  export * from "./productdetail.js";
59
60
  export * from "./productimage.js";
60
61
  export * from "./productlistresponse.js";
61
- export * from "./productpackaging.js";
62
62
  export * from "./productpricing.js";
63
63
  export * from "./productpromotion.js";
64
64
  export * from "./productreview.js";
65
65
  export * from "./productshipping.js";
66
66
  export * from "./productsubscription.js";
67
67
  export * from "./productvideo.js";
68
- export * from "./promotion.js";
69
- export * from "./saleschannel.js";
68
+ export * from "./promotiondetail.js";
70
69
  export * from "./security.js";
71
70
  export * from "./seo.js";
72
71
  export * from "./shipmentitem.js";
73
- export * from "./skuinfo.js";
72
+ export * from "./singleproduct.js";
73
+ export * from "./singleproductdetail.js";
74
+ export * from "./sku.js";
74
75
  export * from "./updatecustomer.js";
75
76
  export * from "./upipayment.js";
76
77
  export * from "./user.js";
77
78
  export * from "./userinput.js";
78
79
  export * from "./variant.js";
79
80
  export * from "./variantdetail.js";
81
+ export * from "./variantoption.js";
80
82
  export * from "./volumebasedpromotion.js";
81
83
  export * from "./walletpayment.js";