ce-storefront 0.3.9 → 0.3.11

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 (208) hide show
  1. package/docs/sdks/auth/README.md +2 -0
  2. package/docs/sdks/carts/README.md +22 -12
  3. package/docs/sdks/cestorefrontuser/README.md +30 -2
  4. package/docs/sdks/checkout/README.md +4 -0
  5. package/esm/funcs/cartsAddItem.js +1 -1
  6. package/esm/funcs/cartsAddItem.js.map +1 -1
  7. package/esm/lib/config.d.ts +2 -2
  8. package/esm/lib/config.js +2 -2
  9. package/esm/lib/config.js.map +1 -1
  10. package/esm/models/components/anonymoususer.d.ts +14 -14
  11. package/esm/models/components/anonymoususer.d.ts.map +1 -1
  12. package/esm/models/components/anonymoususer.js +14 -14
  13. package/esm/models/components/anonymoususer.js.map +1 -1
  14. package/esm/models/components/associatedoption.d.ts +4 -102
  15. package/esm/models/components/associatedoption.d.ts.map +1 -1
  16. package/esm/models/components/associatedoption.js +4 -82
  17. package/esm/models/components/associatedoption.js.map +1 -1
  18. package/esm/models/components/bundleproduct.d.ts +48 -48
  19. package/esm/models/components/bundleproduct.d.ts.map +1 -1
  20. package/esm/models/components/bundleproduct.js +46 -50
  21. package/esm/models/components/bundleproduct.js.map +1 -1
  22. package/esm/models/components/bundleproductdetail.d.ts +66 -66
  23. package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
  24. package/esm/models/components/bundleproductdetail.js +62 -66
  25. package/esm/models/components/bundleproductdetail.js.map +1 -1
  26. package/esm/models/components/coloroption.d.ts +72 -0
  27. package/esm/models/components/coloroption.d.ts.map +1 -0
  28. package/esm/models/components/coloroption.js +62 -0
  29. package/esm/models/components/coloroption.js.map +1 -0
  30. package/esm/models/components/currency.d.ts +6 -6
  31. package/esm/models/components/currency.d.ts.map +1 -1
  32. package/esm/models/components/currency.js +6 -6
  33. package/esm/models/components/currency.js.map +1 -1
  34. package/esm/models/components/index.d.ts +3 -1
  35. package/esm/models/components/index.d.ts.map +1 -1
  36. package/esm/models/components/index.js +3 -1
  37. package/esm/models/components/index.js.map +1 -1
  38. package/esm/models/components/notificationpreferences.d.ts +6 -6
  39. package/esm/models/components/notificationpreferences.d.ts.map +1 -1
  40. package/esm/models/components/notificationpreferences.js +6 -6
  41. package/esm/models/components/notificationpreferences.js.map +1 -1
  42. package/esm/models/components/pagination.d.ts +8 -8
  43. package/esm/models/components/pagination.d.ts.map +1 -1
  44. package/esm/models/components/pagination.js +8 -8
  45. package/esm/models/components/pagination.js.map +1 -1
  46. package/esm/models/components/productattribute.d.ts +2 -2
  47. package/esm/models/components/productattribute.d.ts.map +1 -1
  48. package/esm/models/components/productattribute.js +2 -2
  49. package/esm/models/components/productattribute.js.map +1 -1
  50. package/esm/models/components/productcategory.d.ts +20 -20
  51. package/esm/models/components/productcategory.d.ts.map +1 -1
  52. package/esm/models/components/productcategory.js +20 -20
  53. package/esm/models/components/productcategory.js.map +1 -1
  54. package/esm/models/components/productdetail.d.ts +2 -14
  55. package/esm/models/components/productdetail.d.ts.map +1 -1
  56. package/esm/models/components/productdetail.js +4 -18
  57. package/esm/models/components/productdetail.js.map +1 -1
  58. package/esm/models/components/productimage.d.ts +14 -14
  59. package/esm/models/components/productimage.d.ts.map +1 -1
  60. package/esm/models/components/productimage.js +14 -14
  61. package/esm/models/components/productimage.js.map +1 -1
  62. package/esm/models/components/productpricing.d.ts +4 -4
  63. package/esm/models/components/productpricing.d.ts.map +1 -1
  64. package/esm/models/components/productpricing.js +4 -4
  65. package/esm/models/components/productpricing.js.map +1 -1
  66. package/esm/models/components/productshipping.d.ts +12 -12
  67. package/esm/models/components/productshipping.d.ts.map +1 -1
  68. package/esm/models/components/productshipping.js +12 -12
  69. package/esm/models/components/productshipping.js.map +1 -1
  70. package/esm/models/components/productvideo.d.ts +16 -16
  71. package/esm/models/components/productvideo.d.ts.map +1 -1
  72. package/esm/models/components/productvideo.js +16 -16
  73. package/esm/models/components/productvideo.js.map +1 -1
  74. package/esm/models/components/seo.d.ts +8 -8
  75. package/esm/models/components/seo.d.ts.map +1 -1
  76. package/esm/models/components/seo.js +8 -8
  77. package/esm/models/components/seo.js.map +1 -1
  78. package/esm/models/components/singleproduct.d.ts +18 -18
  79. package/esm/models/components/singleproduct.d.ts.map +1 -1
  80. package/esm/models/components/singleproduct.js +18 -18
  81. package/esm/models/components/singleproduct.js.map +1 -1
  82. package/esm/models/components/singleproductdetail.d.ts +36 -36
  83. package/esm/models/components/singleproductdetail.d.ts.map +1 -1
  84. package/esm/models/components/singleproductdetail.js +34 -34
  85. package/esm/models/components/singleproductdetail.js.map +1 -1
  86. package/esm/models/components/singleselectoption.d.ts +42 -0
  87. package/esm/models/components/singleselectoption.d.ts.map +1 -0
  88. package/esm/models/components/singleselectoption.js +35 -0
  89. package/esm/models/components/singleselectoption.js.map +1 -0
  90. package/esm/models/components/sku.d.ts +30 -30
  91. package/esm/models/components/sku.d.ts.map +1 -1
  92. package/esm/models/components/sku.js +28 -30
  93. package/esm/models/components/sku.js.map +1 -1
  94. package/esm/models/components/updatecartitem.d.ts +45 -0
  95. package/esm/models/components/updatecartitem.d.ts.map +1 -0
  96. package/esm/models/components/updatecartitem.js +46 -0
  97. package/esm/models/components/updatecartitem.js.map +1 -0
  98. package/esm/models/components/user.d.ts +116 -26
  99. package/esm/models/components/user.d.ts.map +1 -1
  100. package/esm/models/components/user.js +104 -30
  101. package/esm/models/components/user.js.map +1 -1
  102. package/esm/models/components/variant.d.ts +15 -12
  103. package/esm/models/components/variant.d.ts.map +1 -1
  104. package/esm/models/components/variant.js +12 -12
  105. package/esm/models/components/variant.js.map +1 -1
  106. package/esm/models/components/variantdetail.d.ts +41 -38
  107. package/esm/models/components/variantdetail.d.ts.map +1 -1
  108. package/esm/models/components/variantdetail.js +36 -36
  109. package/esm/models/components/variantdetail.js.map +1 -1
  110. package/esm/models/components/variantoption.d.ts +34 -26
  111. package/esm/models/components/variantoption.d.ts.map +1 -1
  112. package/esm/models/components/variantoption.js +32 -45
  113. package/esm/models/components/variantoption.js.map +1 -1
  114. package/esm/models/operations/getcrosssell.d.ts +6 -6
  115. package/esm/models/operations/getcrosssell.d.ts.map +1 -1
  116. package/esm/models/operations/getcrosssell.js +6 -6
  117. package/esm/models/operations/getcrosssell.js.map +1 -1
  118. package/esm/models/operations/getproductscategories.d.ts +4 -4
  119. package/esm/models/operations/getproductscategories.d.ts.map +1 -1
  120. package/esm/models/operations/getproductscategories.js +4 -4
  121. package/esm/models/operations/getproductscategories.js.map +1 -1
  122. package/esm/models/operations/getproductsidreviews.d.ts +4 -4
  123. package/esm/models/operations/getproductsidreviews.d.ts.map +1 -1
  124. package/esm/models/operations/getproductsidreviews.js +4 -4
  125. package/esm/models/operations/getproductsidreviews.js.map +1 -1
  126. package/esm/models/operations/getsimilar.d.ts +6 -6
  127. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  128. package/esm/models/operations/getsimilar.js +6 -6
  129. package/esm/models/operations/getsimilar.js.map +1 -1
  130. package/esm/models/operations/getskus.d.ts +4 -4
  131. package/esm/models/operations/getskus.d.ts.map +1 -1
  132. package/esm/models/operations/getskus.js +4 -4
  133. package/esm/models/operations/getskus.js.map +1 -1
  134. package/esm/models/operations/getupsell.d.ts +6 -6
  135. package/esm/models/operations/getupsell.d.ts.map +1 -1
  136. package/esm/models/operations/getupsell.js +6 -6
  137. package/esm/models/operations/getupsell.js.map +1 -1
  138. package/esm/models/operations/postauthanonymous.d.ts +12 -12
  139. package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
  140. package/esm/models/operations/postauthanonymous.js +12 -12
  141. package/esm/models/operations/postauthanonymous.js.map +1 -1
  142. package/esm/models/operations/postauthgenerateotp.d.ts +2 -2
  143. package/esm/models/operations/postauthgenerateotp.d.ts.map +1 -1
  144. package/esm/models/operations/postauthgenerateotp.js +2 -2
  145. package/esm/models/operations/postauthgenerateotp.js.map +1 -1
  146. package/esm/models/operations/postcartaddress.d.ts +8 -8
  147. package/esm/models/operations/postcartaddress.d.ts.map +1 -1
  148. package/esm/models/operations/postcartaddress.js +8 -12
  149. package/esm/models/operations/postcartaddress.js.map +1 -1
  150. package/esm/models/operations/postcartitemid.d.ts +2 -35
  151. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  152. package/esm/models/operations/postcartitemid.js +4 -49
  153. package/esm/models/operations/postcartitemid.js.map +1 -1
  154. package/esm/models/operations/postcartsid.d.ts +5 -31
  155. package/esm/models/operations/postcartsid.d.ts.map +1 -1
  156. package/esm/models/operations/postcartsid.js +2 -41
  157. package/esm/models/operations/postcartsid.js.map +1 -1
  158. package/esm/models/operations/postproductsidreviews.d.ts +4 -4
  159. package/esm/models/operations/postproductsidreviews.d.ts.map +1 -1
  160. package/esm/models/operations/postproductsidreviews.js +4 -4
  161. package/esm/models/operations/postproductsidreviews.js.map +1 -1
  162. package/jsr.json +1 -1
  163. package/package.json +1 -1
  164. package/src/funcs/cartsAddItem.ts +1 -1
  165. package/src/lib/config.ts +2 -2
  166. package/src/models/components/anonymoususer.ts +28 -28
  167. package/src/models/components/associatedoption.ts +19 -164
  168. package/src/models/components/bundleproduct.ts +92 -99
  169. package/src/models/components/bundleproductdetail.ts +124 -131
  170. package/src/models/components/coloroption.ts +144 -0
  171. package/src/models/components/currency.ts +12 -12
  172. package/src/models/components/index.ts +3 -1
  173. package/src/models/components/notificationpreferences.ts +12 -12
  174. package/src/models/components/pagination.ts +16 -16
  175. package/src/models/components/productattribute.ts +4 -4
  176. package/src/models/components/productcategory.ts +40 -40
  177. package/src/models/components/productdetail.ts +7 -37
  178. package/src/models/components/productimage.ts +28 -28
  179. package/src/models/components/productpricing.ts +8 -8
  180. package/src/models/components/productshipping.ts +24 -24
  181. package/src/models/components/productvideo.ts +32 -32
  182. package/src/models/components/seo.ts +16 -16
  183. package/src/models/components/singleproduct.ts +36 -36
  184. package/src/models/components/singleproductdetail.ts +68 -68
  185. package/src/models/components/singleselectoption.ts +83 -0
  186. package/src/models/components/sku.ts +56 -61
  187. package/src/models/components/updatecartitem.ts +93 -0
  188. package/src/models/components/user.ts +199 -56
  189. package/src/models/components/variant.ts +27 -24
  190. package/src/models/components/variantdetail.ts +75 -72
  191. package/src/models/components/variantoption.ts +54 -61
  192. package/src/models/operations/getcrosssell.ts +12 -12
  193. package/src/models/operations/getproductscategories.ts +8 -8
  194. package/src/models/operations/getproductsidreviews.ts +8 -8
  195. package/src/models/operations/getsimilar.ts +12 -12
  196. package/src/models/operations/getskus.ts +8 -8
  197. package/src/models/operations/getupsell.ts +12 -12
  198. package/src/models/operations/postauthanonymous.ts +24 -24
  199. package/src/models/operations/postauthgenerateotp.ts +4 -4
  200. package/src/models/operations/postcartaddress.ts +16 -23
  201. package/src/models/operations/postcartitemid.ts +6 -94
  202. package/src/models/operations/postcartsid.ts +7 -72
  203. package/src/models/operations/postproductsidreviews.ts +8 -8
  204. package/esm/models/components/userinput.d.ts +0 -63
  205. package/esm/models/components/userinput.d.ts.map +0 -1
  206. package/esm/models/components/userinput.js +0 -61
  207. package/esm/models/components/userinput.js.map +0 -1
  208. package/src/models/components/userinput.ts +0 -130
@@ -72,13 +72,13 @@ export type BundleProductBundleItemsProductType = ClosedEnum<
72
72
  export type BundleProductSKU = {
73
73
  quantity: number;
74
74
  productId: string;
75
- variantId?: string | null | undefined;
75
+ variantId: string | null;
76
76
  sku: string;
77
- slug?: string | undefined;
77
+ slug: string | null;
78
78
  productName: string;
79
- variantName?: string | null | undefined;
79
+ variantName: string | null;
80
80
  productType: BundleProductBundleItemsProductType;
81
- shortDescription?: string | undefined;
81
+ shortDescription: string | null;
82
82
  active?: boolean | undefined;
83
83
  stockAvailable?: boolean | undefined;
84
84
  /**
@@ -87,16 +87,16 @@ export type BundleProductSKU = {
87
87
  onOffer?: boolean | undefined;
88
88
  onSubscription?: boolean | undefined;
89
89
  onPromotion?: boolean | undefined;
90
- categoryIds?: Array<string> | undefined;
91
- tags?: Array<string> | undefined;
92
- reviewsCount?: number | undefined;
93
- reviewsRatingSum?: number | undefined;
94
- attributes?: Array<ProductAttribute> | undefined;
95
- images?: Array<ProductImage> | undefined;
96
- pricing?: ProductPricing | undefined;
97
- promotion?: ProductPromotion | null | undefined;
98
- subscription?: Array<ProductSubscription> | undefined;
99
- associatedOptions?: { [k: string]: AssociatedOption } | null | undefined;
90
+ categoryIds: Array<string>;
91
+ tags: Array<string> | null;
92
+ reviewsCount: number;
93
+ reviewsRatingSum: number | null;
94
+ attributes: Array<ProductAttribute>;
95
+ images: Array<ProductImage>;
96
+ pricing: ProductPricing;
97
+ promotion: ProductPromotion | null;
98
+ subscription: Array<ProductSubscription>;
99
+ associatedOptions: { [k: string]: AssociatedOption } | null;
100
100
  };
101
101
 
102
102
  export type BundleProduct = {
@@ -104,10 +104,10 @@ export type BundleProduct = {
104
104
  * The ULID of the product
105
105
  */
106
106
  id: string;
107
- sku?: string | undefined;
107
+ sku: string | null;
108
108
  name: string;
109
- slug: string;
110
- shortDescription?: string | undefined;
109
+ slug: string | null;
110
+ shortDescription: string | null;
111
111
  productType: BundleProductProductType;
112
112
  active?: boolean | undefined;
113
113
  /**
@@ -130,11 +130,11 @@ export type BundleProduct = {
130
130
  * Indicates whether the product has variants
131
131
  */
132
132
  hasVariant?: boolean | undefined;
133
- tags?: Array<string> | null | undefined;
134
- categoryIds?: Array<string> | undefined;
135
- reviewsRatingSum?: number | undefined;
136
- reviewsCount?: number | undefined;
137
- attributes?: Array<ProductAttribute> | undefined;
133
+ tags: Array<string> | null;
134
+ categoryIds: Array<string>;
135
+ reviewsRatingSum: number;
136
+ reviewsCount: number;
137
+ attributes: Array<ProductAttribute>;
138
138
  pricing: ProductPricing;
139
139
  /**
140
140
  * this will be used if has_variant is true, to auto set default values.
@@ -143,7 +143,7 @@ export type BundleProduct = {
143
143
  promotion: ProductPromotion | null;
144
144
  images: Array<ProductImage>;
145
145
  subscription: Array<ProductSubscription>;
146
- bundleItems?: Array<BundleProductSKU> | undefined;
146
+ bundleItems: Array<BundleProductSKU>;
147
147
  };
148
148
 
149
149
  /** @internal */
@@ -198,29 +198,28 @@ export const BundleProductSKU$inboundSchema: z.ZodType<
198
198
  > = z.object({
199
199
  quantity: z.number().int(),
200
200
  product_id: z.string(),
201
- variant_id: z.nullable(z.string()).optional(),
201
+ variant_id: z.nullable(z.string()),
202
202
  sku: z.string(),
203
- slug: z.string().optional(),
203
+ slug: z.nullable(z.string()),
204
204
  product_name: z.string(),
205
- variant_name: z.nullable(z.string()).optional(),
205
+ variant_name: z.nullable(z.string()),
206
206
  product_type: BundleProductBundleItemsProductType$inboundSchema,
207
- short_description: z.string().optional(),
207
+ short_description: z.nullable(z.string()),
208
208
  active: z.boolean().default(true),
209
209
  stock_available: z.boolean().default(true),
210
210
  on_offer: z.boolean().default(false),
211
211
  on_subscription: z.boolean().default(false),
212
212
  on_promotion: z.boolean().default(false),
213
- category_ids: z.array(z.string()).optional(),
214
- tags: z.array(z.string()).optional(),
215
- reviews_count: z.number().int().optional(),
216
- reviews_rating_sum: z.number().optional(),
217
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
218
- images: z.array(ProductImage$inboundSchema).optional(),
219
- pricing: ProductPricing$inboundSchema.optional(),
220
- promotion: z.nullable(ProductPromotion$inboundSchema).optional(),
221
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
222
- associated_options: z.nullable(z.record(AssociatedOption$inboundSchema))
223
- .optional(),
213
+ category_ids: z.array(z.string()),
214
+ tags: z.nullable(z.array(z.string())),
215
+ reviews_count: z.number().int(),
216
+ reviews_rating_sum: z.nullable(z.number()),
217
+ attributes: z.array(ProductAttribute$inboundSchema),
218
+ images: z.array(ProductImage$inboundSchema),
219
+ pricing: ProductPricing$inboundSchema,
220
+ promotion: z.nullable(ProductPromotion$inboundSchema),
221
+ subscription: z.array(ProductSubscription$inboundSchema),
222
+ associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
224
223
  }).transform((v) => {
225
224
  return remap$(v, {
226
225
  "product_id": "productId",
@@ -244,31 +243,28 @@ export const BundleProductSKU$inboundSchema: z.ZodType<
244
243
  export type BundleProductSKU$Outbound = {
245
244
  quantity: number;
246
245
  product_id: string;
247
- variant_id?: string | null | undefined;
246
+ variant_id: string | null;
248
247
  sku: string;
249
- slug?: string | undefined;
248
+ slug: string | null;
250
249
  product_name: string;
251
- variant_name?: string | null | undefined;
250
+ variant_name: string | null;
252
251
  product_type: string;
253
- short_description?: string | undefined;
252
+ short_description: string | null;
254
253
  active: boolean;
255
254
  stock_available: boolean;
256
255
  on_offer: boolean;
257
256
  on_subscription: boolean;
258
257
  on_promotion: boolean;
259
- category_ids?: Array<string> | undefined;
260
- tags?: Array<string> | undefined;
261
- reviews_count?: number | undefined;
262
- reviews_rating_sum?: number | undefined;
263
- attributes?: Array<ProductAttribute$Outbound> | undefined;
264
- images?: Array<ProductImage$Outbound> | undefined;
265
- pricing?: ProductPricing$Outbound | undefined;
266
- promotion?: ProductPromotion$Outbound | null | undefined;
267
- subscription?: Array<ProductSubscription$Outbound> | undefined;
268
- associated_options?:
269
- | { [k: string]: AssociatedOption$Outbound }
270
- | null
271
- | undefined;
258
+ category_ids: Array<string>;
259
+ tags: Array<string> | null;
260
+ reviews_count: number;
261
+ reviews_rating_sum: number | null;
262
+ attributes: Array<ProductAttribute$Outbound>;
263
+ images: Array<ProductImage$Outbound>;
264
+ pricing: ProductPricing$Outbound;
265
+ promotion: ProductPromotion$Outbound | null;
266
+ subscription: Array<ProductSubscription$Outbound>;
267
+ associated_options: { [k: string]: AssociatedOption$Outbound } | null;
272
268
  };
273
269
 
274
270
  /** @internal */
@@ -279,29 +275,28 @@ export const BundleProductSKU$outboundSchema: z.ZodType<
279
275
  > = z.object({
280
276
  quantity: z.number().int(),
281
277
  productId: z.string(),
282
- variantId: z.nullable(z.string()).optional(),
278
+ variantId: z.nullable(z.string()),
283
279
  sku: z.string(),
284
- slug: z.string().optional(),
280
+ slug: z.nullable(z.string()),
285
281
  productName: z.string(),
286
- variantName: z.nullable(z.string()).optional(),
282
+ variantName: z.nullable(z.string()),
287
283
  productType: BundleProductBundleItemsProductType$outboundSchema,
288
- shortDescription: z.string().optional(),
284
+ shortDescription: z.nullable(z.string()),
289
285
  active: z.boolean().default(true),
290
286
  stockAvailable: z.boolean().default(true),
291
287
  onOffer: z.boolean().default(false),
292
288
  onSubscription: z.boolean().default(false),
293
289
  onPromotion: z.boolean().default(false),
294
- categoryIds: z.array(z.string()).optional(),
295
- tags: z.array(z.string()).optional(),
296
- reviewsCount: z.number().int().optional(),
297
- reviewsRatingSum: z.number().optional(),
298
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
299
- images: z.array(ProductImage$outboundSchema).optional(),
300
- pricing: ProductPricing$outboundSchema.optional(),
301
- promotion: z.nullable(ProductPromotion$outboundSchema).optional(),
302
- subscription: z.array(ProductSubscription$outboundSchema).optional(),
303
- associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema))
304
- .optional(),
290
+ categoryIds: z.array(z.string()),
291
+ tags: z.nullable(z.array(z.string())),
292
+ reviewsCount: z.number().int(),
293
+ reviewsRatingSum: z.nullable(z.number()),
294
+ attributes: z.array(ProductAttribute$outboundSchema),
295
+ images: z.array(ProductImage$outboundSchema),
296
+ pricing: ProductPricing$outboundSchema,
297
+ promotion: z.nullable(ProductPromotion$outboundSchema),
298
+ subscription: z.array(ProductSubscription$outboundSchema),
299
+ associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
305
300
  }).transform((v) => {
306
301
  return remap$(v, {
307
302
  productId: "product_id",
@@ -359,10 +354,10 @@ export const BundleProduct$inboundSchema: z.ZodType<
359
354
  unknown
360
355
  > = z.object({
361
356
  id: z.string(),
362
- sku: z.string().optional(),
357
+ sku: z.nullable(z.string()),
363
358
  name: z.string(),
364
- slug: z.string(),
365
- short_description: z.string().optional(),
359
+ slug: z.nullable(z.string()),
360
+ short_description: z.nullable(z.string()),
366
361
  product_type: BundleProductProductType$inboundSchema,
367
362
  active: z.boolean().default(true),
368
363
  stock_available: z.boolean().default(true),
@@ -370,18 +365,17 @@ export const BundleProduct$inboundSchema: z.ZodType<
370
365
  on_subscription: z.boolean().default(false),
371
366
  on_promotion: z.boolean().default(false),
372
367
  has_variant: z.boolean().default(false),
373
- tags: z.nullable(z.array(z.string())).optional(),
374
- category_ids: z.array(z.string()).optional(),
375
- reviews_rating_sum: z.number().optional(),
376
- reviews_count: z.number().int().optional(),
377
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
368
+ tags: z.nullable(z.array(z.string())),
369
+ category_ids: z.array(z.string()),
370
+ reviews_rating_sum: z.number(),
371
+ reviews_count: z.number().int(),
372
+ attributes: z.array(ProductAttribute$inboundSchema),
378
373
  pricing: ProductPricing$inboundSchema,
379
374
  variant_options: z.nullable(z.array(VariantOption$inboundSchema)),
380
375
  promotion: z.nullable(ProductPromotion$inboundSchema),
381
376
  images: z.array(ProductImage$inboundSchema),
382
377
  subscription: z.array(ProductSubscription$inboundSchema),
383
- bundle_items: z.array(z.lazy(() => BundleProductSKU$inboundSchema))
384
- .optional(),
378
+ bundle_items: z.array(z.lazy(() => BundleProductSKU$inboundSchema)),
385
379
  }).transform((v) => {
386
380
  return remap$(v, {
387
381
  "short_description": "shortDescription",
@@ -402,10 +396,10 @@ export const BundleProduct$inboundSchema: z.ZodType<
402
396
  /** @internal */
403
397
  export type BundleProduct$Outbound = {
404
398
  id: string;
405
- sku?: string | undefined;
399
+ sku: string | null;
406
400
  name: string;
407
- slug: string;
408
- short_description?: string | undefined;
401
+ slug: string | null;
402
+ short_description: string | null;
409
403
  product_type: string;
410
404
  active: boolean;
411
405
  stock_available: boolean;
@@ -413,17 +407,17 @@ export type BundleProduct$Outbound = {
413
407
  on_subscription: boolean;
414
408
  on_promotion: boolean;
415
409
  has_variant: boolean;
416
- tags?: Array<string> | null | undefined;
417
- category_ids?: Array<string> | undefined;
418
- reviews_rating_sum?: number | undefined;
419
- reviews_count?: number | undefined;
420
- attributes?: Array<ProductAttribute$Outbound> | undefined;
410
+ tags: Array<string> | null;
411
+ category_ids: Array<string>;
412
+ reviews_rating_sum: number;
413
+ reviews_count: number;
414
+ attributes: Array<ProductAttribute$Outbound>;
421
415
  pricing: ProductPricing$Outbound;
422
416
  variant_options: Array<VariantOption$Outbound> | null;
423
417
  promotion: ProductPromotion$Outbound | null;
424
418
  images: Array<ProductImage$Outbound>;
425
419
  subscription: Array<ProductSubscription$Outbound>;
426
- bundle_items?: Array<BundleProductSKU$Outbound> | undefined;
420
+ bundle_items: Array<BundleProductSKU$Outbound>;
427
421
  };
428
422
 
429
423
  /** @internal */
@@ -433,10 +427,10 @@ export const BundleProduct$outboundSchema: z.ZodType<
433
427
  BundleProduct
434
428
  > = z.object({
435
429
  id: z.string(),
436
- sku: z.string().optional(),
430
+ sku: z.nullable(z.string()),
437
431
  name: z.string(),
438
- slug: z.string(),
439
- shortDescription: z.string().optional(),
432
+ slug: z.nullable(z.string()),
433
+ shortDescription: z.nullable(z.string()),
440
434
  productType: BundleProductProductType$outboundSchema,
441
435
  active: z.boolean().default(true),
442
436
  stockAvailable: z.boolean().default(true),
@@ -444,18 +438,17 @@ export const BundleProduct$outboundSchema: z.ZodType<
444
438
  onSubscription: z.boolean().default(false),
445
439
  onPromotion: z.boolean().default(false),
446
440
  hasVariant: z.boolean().default(false),
447
- tags: z.nullable(z.array(z.string())).optional(),
448
- categoryIds: z.array(z.string()).optional(),
449
- reviewsRatingSum: z.number().optional(),
450
- reviewsCount: z.number().int().optional(),
451
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
441
+ tags: z.nullable(z.array(z.string())),
442
+ categoryIds: z.array(z.string()),
443
+ reviewsRatingSum: z.number(),
444
+ reviewsCount: z.number().int(),
445
+ attributes: z.array(ProductAttribute$outboundSchema),
452
446
  pricing: ProductPricing$outboundSchema,
453
447
  variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
454
448
  promotion: z.nullable(ProductPromotion$outboundSchema),
455
449
  images: z.array(ProductImage$outboundSchema),
456
450
  subscription: z.array(ProductSubscription$outboundSchema),
457
- bundleItems: z.array(z.lazy(() => BundleProductSKU$outboundSchema))
458
- .optional(),
451
+ bundleItems: z.array(z.lazy(() => BundleProductSKU$outboundSchema)),
459
452
  }).transform((v) => {
460
453
  return remap$(v, {
461
454
  shortDescription: "short_description",