ce-storefront 0.3.4 → 0.3.6

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 (338) hide show
  1. package/README.md +26 -37
  2. package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
  3. package/docs/sdks/customers/README.md +236 -0
  4. package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
  5. package/docs/sdks/orders/README.md +80 -1
  6. package/docs/sdks/payments/README.md +242 -2
  7. package/docs/sdks/products/README.md +1 -1
  8. package/esm/funcs/catalogProductsGet.d.ts +1 -1
  9. package/esm/funcs/catalogProductsGet.js +1 -1
  10. package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
  11. package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
  12. package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
  13. package/esm/funcs/customersGetCustomersId.js.map +1 -0
  14. package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
  15. package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
  16. package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
  17. package/esm/funcs/customersPostCustomers.js.map +1 -0
  18. package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
  19. package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
  20. package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
  21. package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
  22. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
  23. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
  24. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
  25. package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
  26. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
  27. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
  28. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
  29. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
  30. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
  31. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
  32. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
  33. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
  34. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
  35. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
  36. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
  37. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
  38. package/esm/funcs/paymentsGetMethods.d.ts +1 -1
  39. package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
  40. package/esm/funcs/paymentsGetMethods.js +3 -3
  41. package/esm/funcs/paymentsGetMethods.js.map +1 -1
  42. package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
  43. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
  44. package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
  45. package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
  46. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
  47. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
  48. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
  49. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
  50. package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
  51. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
  52. package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
  53. package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
  54. package/esm/lib/config.d.ts +3 -3
  55. package/esm/lib/config.js +3 -3
  56. package/esm/models/components/analyticsevent.d.ts +8 -8
  57. package/esm/models/components/analyticsevent.d.ts.map +1 -1
  58. package/esm/models/components/analyticsevent.js +12 -12
  59. package/esm/models/components/analyticsevent.js.map +1 -1
  60. package/esm/models/components/associatedoption.d.ts +125 -0
  61. package/esm/models/components/associatedoption.d.ts.map +1 -0
  62. package/esm/models/components/associatedoption.js +107 -0
  63. package/esm/models/components/associatedoption.js.map +1 -0
  64. package/esm/models/components/cart.d.ts +16 -16
  65. package/esm/models/components/cart.d.ts.map +1 -1
  66. package/esm/models/components/cart.js +16 -16
  67. package/esm/models/components/cart.js.map +1 -1
  68. package/esm/models/components/createcustomer.d.ts +1 -1
  69. package/esm/models/components/createcustomer.d.ts.map +1 -1
  70. package/esm/models/components/createcustomer.js +1 -1
  71. package/esm/models/components/createcustomer.js.map +1 -1
  72. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  73. package/esm/models/components/customeraddress.d.ts.map +1 -0
  74. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  75. package/esm/models/components/customeraddress.js.map +1 -0
  76. package/esm/models/components/discountbasedpromotion.d.ts +0 -2
  77. package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
  78. package/esm/models/components/discountbasedpromotion.js +0 -4
  79. package/esm/models/components/discountbasedpromotion.js.map +1 -1
  80. package/esm/models/components/fixedpricepromotion.d.ts +0 -2
  81. package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
  82. package/esm/models/components/fixedpricepromotion.js +0 -4
  83. package/esm/models/components/fixedpricepromotion.js.map +1 -1
  84. package/esm/models/components/freegoodspromotion.d.ts +2 -7
  85. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  86. package/esm/models/components/freegoodspromotion.js +2 -6
  87. package/esm/models/components/freegoodspromotion.js.map +1 -1
  88. package/esm/models/components/index.d.ts +6 -8
  89. package/esm/models/components/index.d.ts.map +1 -1
  90. package/esm/models/components/index.js +6 -8
  91. package/esm/models/components/index.js.map +1 -1
  92. package/esm/models/components/orderdetail.d.ts +1 -1
  93. package/esm/models/components/orderdetail.d.ts.map +1 -1
  94. package/esm/models/components/orderdetail.js +1 -1
  95. package/esm/models/components/orderdetail.js.map +1 -1
  96. package/esm/models/components/{productlist.d.ts → product.d.ts} +38 -78
  97. package/esm/models/components/product.d.ts.map +1 -0
  98. package/esm/models/components/{productlist.js → product.js} +37 -98
  99. package/esm/models/components/product.js.map +1 -0
  100. package/esm/models/components/productattribute.d.ts +97 -64
  101. package/esm/models/components/productattribute.d.ts.map +1 -1
  102. package/esm/models/components/productattribute.js +67 -128
  103. package/esm/models/components/productattribute.js.map +1 -1
  104. package/esm/models/components/productcategory.d.ts +2 -2
  105. package/esm/models/components/productcategory.d.ts.map +1 -1
  106. package/esm/models/components/productcategory.js +2 -2
  107. package/esm/models/components/productcategory.js.map +1 -1
  108. package/esm/models/components/productdetail.d.ts +63 -165
  109. package/esm/models/components/productdetail.d.ts.map +1 -1
  110. package/esm/models/components/productdetail.js +70 -204
  111. package/esm/models/components/productdetail.js.map +1 -1
  112. package/esm/models/components/productlistresponse.d.ts +24 -3
  113. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  114. package/esm/models/components/productlistresponse.js +24 -3
  115. package/esm/models/components/productlistresponse.js.map +1 -1
  116. package/esm/models/components/productpromotion.d.ts +11 -5
  117. package/esm/models/components/productpromotion.d.ts.map +1 -1
  118. package/esm/models/components/productshipping.d.ts +0 -2
  119. package/esm/models/components/productshipping.d.ts.map +1 -1
  120. package/esm/models/components/productshipping.js +0 -4
  121. package/esm/models/components/productshipping.js.map +1 -1
  122. package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
  123. package/esm/models/components/promotiondetail.d.ts.map +1 -0
  124. package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
  125. package/esm/models/components/promotiondetail.js.map +1 -0
  126. package/esm/models/components/seo.d.ts +6 -6
  127. package/esm/models/components/seo.d.ts.map +1 -1
  128. package/esm/models/components/seo.js +6 -19
  129. package/esm/models/components/seo.js.map +1 -1
  130. package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +56 -48
  131. package/esm/models/components/sku.d.ts.map +1 -0
  132. package/esm/models/components/{skuinfo.js → sku.js} +65 -57
  133. package/esm/models/components/sku.js.map +1 -0
  134. package/esm/models/components/variant.d.ts +13 -52
  135. package/esm/models/components/variant.d.ts.map +1 -1
  136. package/esm/models/components/variant.js +5 -55
  137. package/esm/models/components/variant.js.map +1 -1
  138. package/esm/models/components/variantdetail.d.ts +31 -60
  139. package/esm/models/components/variantdetail.d.ts.map +1 -1
  140. package/esm/models/components/variantdetail.js +20 -57
  141. package/esm/models/components/variantdetail.js.map +1 -1
  142. package/esm/models/components/variantoption.d.ts +118 -0
  143. package/esm/models/components/variantoption.d.ts.map +1 -0
  144. package/esm/models/components/variantoption.js +114 -0
  145. package/esm/models/components/variantoption.js.map +1 -0
  146. package/esm/models/components/volumebasedpromotion.d.ts +0 -5
  147. package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
  148. package/esm/models/components/volumebasedpromotion.js +0 -4
  149. package/esm/models/components/volumebasedpromotion.js.map +1 -1
  150. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  151. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  152. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  153. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  154. package/esm/models/operations/getpromotions.d.ts +2 -2
  155. package/esm/models/operations/getpromotions.d.ts.map +1 -1
  156. package/esm/models/operations/getpromotions.js +2 -2
  157. package/esm/models/operations/getpromotions.js.map +1 -1
  158. package/esm/models/operations/getsimilar.d.ts +2 -27
  159. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  160. package/esm/models/operations/getsimilar.js +2 -27
  161. package/esm/models/operations/getsimilar.js.map +1 -1
  162. package/esm/models/operations/getskus.d.ts +2 -2
  163. package/esm/models/operations/getskus.d.ts.map +1 -1
  164. package/esm/models/operations/getskus.js +2 -2
  165. package/esm/models/operations/getskus.js.map +1 -1
  166. package/esm/models/operations/getwishtlist.d.ts +2 -2
  167. package/esm/models/operations/getwishtlist.d.ts.map +1 -1
  168. package/esm/models/operations/getwishtlist.js +2 -2
  169. package/esm/models/operations/getwishtlist.js.map +1 -1
  170. package/esm/models/operations/index.d.ts +1 -2
  171. package/esm/models/operations/index.d.ts.map +1 -1
  172. package/esm/models/operations/index.js +1 -2
  173. package/esm/models/operations/index.js.map +1 -1
  174. package/esm/models/operations/postcartitemid.d.ts +15 -15
  175. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  176. package/esm/models/operations/postcartitemid.js +15 -15
  177. package/esm/models/operations/postcartitemid.js.map +1 -1
  178. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  179. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  180. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  181. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  182. package/esm/sdk/customers.d.ts +24 -1
  183. package/esm/sdk/customers.d.ts.map +1 -1
  184. package/esm/sdk/customers.js +31 -0
  185. package/esm/sdk/customers.js.map +1 -1
  186. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  187. package/esm/sdk/juspay.d.ts.map +1 -0
  188. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  189. package/esm/sdk/juspay.js.map +1 -0
  190. package/esm/sdk/orders.d.ts +9 -2
  191. package/esm/sdk/orders.d.ts.map +1 -1
  192. package/esm/sdk/orders.js +12 -2
  193. package/esm/sdk/orders.js.map +1 -1
  194. package/esm/sdk/payments.d.ts +23 -1
  195. package/esm/sdk/payments.d.ts.map +1 -1
  196. package/esm/sdk/payments.js +31 -0
  197. package/esm/sdk/payments.js.map +1 -1
  198. package/esm/sdk/products.d.ts +1 -1
  199. package/esm/sdk/products.js +1 -1
  200. package/esm/sdk/sdk.d.ts +3 -12
  201. package/esm/sdk/sdk.d.ts.map +1 -1
  202. package/esm/sdk/sdk.js +3 -15
  203. package/esm/sdk/sdk.js.map +1 -1
  204. package/jsr.json +1 -1
  205. package/package.json +1 -1
  206. package/src/funcs/catalogProductsGet.ts +1 -1
  207. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  208. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  209. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  210. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  211. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  212. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  213. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  214. package/src/funcs/paymentsGetMethods.ts +6 -7
  215. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  216. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  217. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  218. package/src/lib/config.ts +3 -3
  219. package/src/models/components/analyticsevent.ts +16 -15
  220. package/src/models/components/associatedoption.ts +217 -0
  221. package/src/models/components/cart.ts +25 -25
  222. package/src/models/components/createcustomer.ts +1 -1
  223. package/src/models/components/discountbasedpromotion.ts +0 -6
  224. package/src/models/components/fixedpricepromotion.ts +0 -6
  225. package/src/models/components/freegoodspromotion.ts +4 -13
  226. package/src/models/components/index.ts +6 -8
  227. package/src/models/components/orderdetail.ts +1 -1
  228. package/src/models/components/{skuinfo.ts → product.ts} +111 -96
  229. package/src/models/components/productattribute.ts +162 -188
  230. package/src/models/components/productcategory.ts +4 -4
  231. package/src/models/components/productdetail.ts +143 -418
  232. package/src/models/components/productlistresponse.ts +55 -9
  233. package/src/models/components/productshipping.ts +0 -6
  234. package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
  235. package/src/models/components/seo.ts +12 -25
  236. package/src/models/components/sku.ts +244 -0
  237. package/src/models/components/variant.ts +14 -119
  238. package/src/models/components/variantdetail.ts +51 -143
  239. package/src/models/components/variantoption.ts +214 -0
  240. package/src/models/components/volumebasedpromotion.ts +0 -9
  241. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  242. package/src/models/operations/getpromotions.ts +4 -4
  243. package/src/models/operations/getsimilar.ts +4 -62
  244. package/src/models/operations/getskus.ts +4 -4
  245. package/src/models/operations/getwishtlist.ts +4 -4
  246. package/src/models/operations/index.ts +1 -2
  247. package/src/models/operations/postcartitemid.ts +27 -25
  248. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  249. package/src/sdk/customers.ts +58 -1
  250. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  251. package/src/sdk/orders.ts +22 -4
  252. package/src/sdk/payments.ts +57 -2
  253. package/src/sdk/products.ts +1 -1
  254. package/src/sdk/sdk.ts +4 -22
  255. package/docs/sdks/customersapi/README.md +0 -321
  256. package/docs/sdks/ordersapi/README.md +0 -86
  257. package/docs/sdks/paymentsapi/README.md +0 -247
  258. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  259. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  260. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  261. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  262. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  263. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  264. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  265. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  266. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  267. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  268. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  269. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  270. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  271. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  272. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  273. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  274. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  275. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  276. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  277. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  278. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  279. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  280. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  281. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  282. package/esm/models/components/customeraddressinput.js.map +0 -1
  283. package/esm/models/components/productbundleitem.d.ts +0 -47
  284. package/esm/models/components/productbundleitem.d.ts.map +0 -1
  285. package/esm/models/components/productbundleitem.js +0 -66
  286. package/esm/models/components/productbundleitem.js.map +0 -1
  287. package/esm/models/components/productlist.d.ts.map +0 -1
  288. package/esm/models/components/productlist.js.map +0 -1
  289. package/esm/models/components/productpackaging.d.ts +0 -68
  290. package/esm/models/components/productpackaging.d.ts.map +0 -1
  291. package/esm/models/components/productpackaging.js +0 -88
  292. package/esm/models/components/productpackaging.js.map +0 -1
  293. package/esm/models/components/promotion.d.ts.map +0 -1
  294. package/esm/models/components/promotion.js.map +0 -1
  295. package/esm/models/components/recommendedproduct.d.ts +0 -155
  296. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  297. package/esm/models/components/recommendedproduct.js +0 -193
  298. package/esm/models/components/recommendedproduct.js.map +0 -1
  299. package/esm/models/components/saleschannel.d.ts +0 -39
  300. package/esm/models/components/saleschannel.d.ts.map +0 -1
  301. package/esm/models/components/saleschannel.js +0 -53
  302. package/esm/models/components/saleschannel.js.map +0 -1
  303. package/esm/models/components/skuinfo.d.ts.map +0 -1
  304. package/esm/models/components/skuinfo.js.map +0 -1
  305. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  306. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  307. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  308. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  309. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  310. package/esm/models/operations/getrecommendedproducts.js +0 -87
  311. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  312. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  313. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  314. package/esm/sdk/customersapi.d.ts +0 -34
  315. package/esm/sdk/customersapi.d.ts.map +0 -1
  316. package/esm/sdk/customersapi.js +0 -48
  317. package/esm/sdk/customersapi.js.map +0 -1
  318. package/esm/sdk/ordersapi.d.ts +0 -12
  319. package/esm/sdk/ordersapi.d.ts.map +0 -1
  320. package/esm/sdk/ordersapi.js +0 -18
  321. package/esm/sdk/ordersapi.js.map +0 -1
  322. package/esm/sdk/paymentsapi.d.ts +0 -27
  323. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  324. package/esm/sdk/paymentsapi.js +0 -39
  325. package/esm/sdk/paymentsapi.js.map +0 -1
  326. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  327. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  328. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  329. package/src/models/components/productbundleitem.ts +0 -127
  330. package/src/models/components/productlist.ts +0 -368
  331. package/src/models/components/productpackaging.ts +0 -162
  332. package/src/models/components/recommendedproduct.ts +0 -385
  333. package/src/models/components/saleschannel.ts +0 -96
  334. package/src/models/operations/getrecommendedproducts.ts +0 -206
  335. package/src/sdk/customersapi.ts +0 -82
  336. package/src/sdk/ordersapi.ts +0 -27
  337. package/src/sdk/paymentsapi.ts +0 -64
  338. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -3,306 +3,197 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
7
  import { Result as SafeParseResult } from "../../types/fp.js";
10
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
- import {
12
- ProductAttribute,
13
- ProductAttribute$inboundSchema,
14
- ProductAttribute$Outbound,
15
- ProductAttribute$outboundSchema,
16
- } from "./productattribute.js";
17
- import {
18
- ProductBundleItem,
19
- ProductBundleItem$inboundSchema,
20
- ProductBundleItem$Outbound,
21
- ProductBundleItem$outboundSchema,
22
- } from "./productbundleitem.js";
23
- import {
24
- ProductImage,
25
- ProductImage$inboundSchema,
26
- ProductImage$Outbound,
27
- ProductImage$outboundSchema,
28
- } from "./productimage.js";
29
- import {
30
- ProductPackaging,
31
- ProductPackaging$inboundSchema,
32
- ProductPackaging$Outbound,
33
- ProductPackaging$outboundSchema,
34
- } from "./productpackaging.js";
35
- import {
36
- ProductPricing,
37
- ProductPricing$inboundSchema,
38
- ProductPricing$Outbound,
39
- ProductPricing$outboundSchema,
40
- } from "./productpricing.js";
41
- import {
42
- ProductPromotion,
43
- ProductPromotion$inboundSchema,
44
- ProductPromotion$Outbound,
45
- ProductPromotion$outboundSchema,
46
- } from "./productpromotion.js";
47
- import {
48
- ProductReview,
49
- ProductReview$inboundSchema,
50
- ProductReview$Outbound,
51
- ProductReview$outboundSchema,
52
- } from "./productreview.js";
53
- import {
54
- ProductShipping,
55
- ProductShipping$inboundSchema,
56
- ProductShipping$Outbound,
57
- ProductShipping$outboundSchema,
58
- } from "./productshipping.js";
59
- import {
60
- ProductSubscription,
61
- ProductSubscription$inboundSchema,
62
- ProductSubscription$Outbound,
63
- ProductSubscription$outboundSchema,
64
- } from "./productsubscription.js";
65
- import {
66
- ProductVideo,
67
- ProductVideo$inboundSchema,
68
- ProductVideo$Outbound,
69
- ProductVideo$outboundSchema,
70
- } from "./productvideo.js";
71
- import {
72
- SalesChannel,
73
- SalesChannel$inboundSchema,
74
- SalesChannel$Outbound,
75
- SalesChannel$outboundSchema,
76
- } from "./saleschannel.js";
77
- import {
78
- Seo,
79
- Seo$inboundSchema,
80
- Seo$Outbound,
81
- Seo$outboundSchema,
82
- } from "./seo.js";
83
- import {
84
- Variant,
85
- Variant$inboundSchema,
86
- Variant$Outbound,
87
- Variant$outboundSchema,
88
- } from "./variant.js";
89
-
90
- export const ProductDetailProductType = {
91
- Physical: "physical",
92
- Digital: "digital",
93
- Bundle: "bundle",
94
- } as const;
95
- export type ProductDetailProductType = ClosedEnum<
96
- typeof ProductDetailProductType
97
- >;
98
-
99
- export type ProductDetailVariantOptions = {
100
- optionName?: string | undefined;
101
- optionValue?: Array<string> | undefined;
102
- };
103
-
104
- export type ProductDetailMetadata = {
105
- name?: string | undefined;
106
- value?: string | undefined;
107
- };
108
-
109
- export type ProductDetail = {
110
- /**
111
- * The ULID of the product
112
- */
113
- id?: string | undefined;
114
- name?: string | undefined;
115
- description?: string | undefined;
116
- shortDescription?: string | undefined;
117
- productType?: ProductDetailProductType | undefined;
118
- active?: boolean | undefined;
119
- sku?: string | undefined;
120
- stockAvailable?: boolean | undefined;
121
- isFeatured?: boolean | undefined;
122
- onOffer?: boolean | undefined;
123
- onSubscription?: boolean | undefined;
124
- onPromotion?: boolean | undefined;
125
- hasVariant?: boolean | undefined;
126
- /**
127
- * this will be used if has_variant is true, to auto set default values.
128
- */
129
- variantOptions?: Array<ProductDetailVariantOptions> | null | undefined;
130
- attributes?: Array<ProductAttribute> | undefined;
131
- images?: Array<ProductImage> | undefined;
132
- pricing?: ProductPricing | undefined;
133
- shipping?: ProductShipping | undefined;
134
- tags?: Array<string> | null | undefined;
135
- categoryIds?: Array<string> | undefined;
136
- reviewsRatingSum?: number | undefined;
137
- reviewsCount?: number | undefined;
138
- hsnCode?: string | undefined;
139
- createdAt?: Date | undefined;
140
- modifiedAt?: Date | undefined;
141
- videos?: Array<ProductVideo> | undefined;
142
- promotion?: Array<ProductPromotion> | undefined;
143
- subscription?: Array<ProductSubscription> | undefined;
144
- packaging?: ProductPackaging | undefined;
145
- variants?: Array<Variant> | undefined;
146
- /**
147
- * An array of product ULIDs
148
- */
149
- upsellingProductIds?: Array<string> | undefined;
150
- /**
151
- * An array of product ULIDs
152
- */
153
- crosssellingProductIds?: Array<string> | undefined;
154
- reviews?: Array<ProductReview> | undefined;
155
- bundleItems?: Array<ProductBundleItem> | undefined;
156
- salesChannels?: Array<SalesChannel> | undefined;
157
- metadata?: Array<ProductDetailMetadata> | null | undefined;
158
- seo?: Seo | undefined;
159
- reviewsTags?: Array<string> | undefined;
160
- };
9
+
10
+ export type BundleProduct2 = {};
11
+
12
+ export type BundleProduct = BundleProduct2 | Array<any>;
13
+
14
+ export type Product2 = {};
15
+
16
+ export type ProductDetailProduct = Product2 | Array<any>;
17
+
18
+ export type ProductDetail = Product2 | Array<any> | BundleProduct2 | Array<any>;
161
19
 
162
20
  /** @internal */
163
- export const ProductDetailProductType$inboundSchema: z.ZodNativeEnum<
164
- typeof ProductDetailProductType
165
- > = z.nativeEnum(ProductDetailProductType);
21
+ export const BundleProduct2$inboundSchema: z.ZodType<
22
+ BundleProduct2,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({});
166
26
 
167
27
  /** @internal */
168
- export const ProductDetailProductType$outboundSchema: z.ZodNativeEnum<
169
- typeof ProductDetailProductType
170
- > = ProductDetailProductType$inboundSchema;
28
+ export type BundleProduct2$Outbound = {};
29
+
30
+ /** @internal */
31
+ export const BundleProduct2$outboundSchema: z.ZodType<
32
+ BundleProduct2$Outbound,
33
+ z.ZodTypeDef,
34
+ BundleProduct2
35
+ > = z.object({});
171
36
 
172
37
  /**
173
38
  * @internal
174
39
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
40
  */
176
- export namespace ProductDetailProductType$ {
177
- /** @deprecated use `ProductDetailProductType$inboundSchema` instead. */
178
- export const inboundSchema = ProductDetailProductType$inboundSchema;
179
- /** @deprecated use `ProductDetailProductType$outboundSchema` instead. */
180
- export const outboundSchema = ProductDetailProductType$outboundSchema;
41
+ export namespace BundleProduct2$ {
42
+ /** @deprecated use `BundleProduct2$inboundSchema` instead. */
43
+ export const inboundSchema = BundleProduct2$inboundSchema;
44
+ /** @deprecated use `BundleProduct2$outboundSchema` instead. */
45
+ export const outboundSchema = BundleProduct2$outboundSchema;
46
+ /** @deprecated use `BundleProduct2$Outbound` instead. */
47
+ export type Outbound = BundleProduct2$Outbound;
48
+ }
49
+
50
+ export function bundleProduct2ToJSON(bundleProduct2: BundleProduct2): string {
51
+ return JSON.stringify(BundleProduct2$outboundSchema.parse(bundleProduct2));
52
+ }
53
+
54
+ export function bundleProduct2FromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<BundleProduct2, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => BundleProduct2$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'BundleProduct2' from JSON`,
61
+ );
181
62
  }
182
63
 
183
64
  /** @internal */
184
- export const ProductDetailVariantOptions$inboundSchema: z.ZodType<
185
- ProductDetailVariantOptions,
65
+ export const BundleProduct$inboundSchema: z.ZodType<
66
+ BundleProduct,
186
67
  z.ZodTypeDef,
187
68
  unknown
188
- > = z.object({
189
- option_name: z.string().optional(),
190
- option_value: z.array(z.string()).optional(),
191
- }).transform((v) => {
192
- return remap$(v, {
193
- "option_name": "optionName",
194
- "option_value": "optionValue",
195
- });
196
- });
69
+ > = z.union([z.lazy(() => BundleProduct2$inboundSchema), z.array(z.any())]);
197
70
 
198
71
  /** @internal */
199
- export type ProductDetailVariantOptions$Outbound = {
200
- option_name?: string | undefined;
201
- option_value?: Array<string> | undefined;
202
- };
72
+ export type BundleProduct$Outbound = BundleProduct2$Outbound | Array<any>;
203
73
 
204
74
  /** @internal */
205
- export const ProductDetailVariantOptions$outboundSchema: z.ZodType<
206
- ProductDetailVariantOptions$Outbound,
75
+ export const BundleProduct$outboundSchema: z.ZodType<
76
+ BundleProduct$Outbound,
207
77
  z.ZodTypeDef,
208
- ProductDetailVariantOptions
209
- > = z.object({
210
- optionName: z.string().optional(),
211
- optionValue: z.array(z.string()).optional(),
212
- }).transform((v) => {
213
- return remap$(v, {
214
- optionName: "option_name",
215
- optionValue: "option_value",
216
- });
217
- });
78
+ BundleProduct
79
+ > = z.union([z.lazy(() => BundleProduct2$outboundSchema), z.array(z.any())]);
218
80
 
219
81
  /**
220
82
  * @internal
221
83
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
222
84
  */
223
- export namespace ProductDetailVariantOptions$ {
224
- /** @deprecated use `ProductDetailVariantOptions$inboundSchema` instead. */
225
- export const inboundSchema = ProductDetailVariantOptions$inboundSchema;
226
- /** @deprecated use `ProductDetailVariantOptions$outboundSchema` instead. */
227
- export const outboundSchema = ProductDetailVariantOptions$outboundSchema;
228
- /** @deprecated use `ProductDetailVariantOptions$Outbound` instead. */
229
- export type Outbound = ProductDetailVariantOptions$Outbound;
85
+ export namespace BundleProduct$ {
86
+ /** @deprecated use `BundleProduct$inboundSchema` instead. */
87
+ export const inboundSchema = BundleProduct$inboundSchema;
88
+ /** @deprecated use `BundleProduct$outboundSchema` instead. */
89
+ export const outboundSchema = BundleProduct$outboundSchema;
90
+ /** @deprecated use `BundleProduct$Outbound` instead. */
91
+ export type Outbound = BundleProduct$Outbound;
230
92
  }
231
93
 
232
- export function productDetailVariantOptionsToJSON(
233
- productDetailVariantOptions: ProductDetailVariantOptions,
234
- ): string {
235
- return JSON.stringify(
236
- ProductDetailVariantOptions$outboundSchema.parse(
237
- productDetailVariantOptions,
238
- ),
94
+ export function bundleProductToJSON(bundleProduct: BundleProduct): string {
95
+ return JSON.stringify(BundleProduct$outboundSchema.parse(bundleProduct));
96
+ }
97
+
98
+ export function bundleProductFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<BundleProduct, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => BundleProduct$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'BundleProduct' from JSON`,
239
105
  );
240
106
  }
241
107
 
242
- export function productDetailVariantOptionsFromJSON(
108
+ /** @internal */
109
+ export const Product2$inboundSchema: z.ZodType<
110
+ Product2,
111
+ z.ZodTypeDef,
112
+ unknown
113
+ > = z.object({});
114
+
115
+ /** @internal */
116
+ export type Product2$Outbound = {};
117
+
118
+ /** @internal */
119
+ export const Product2$outboundSchema: z.ZodType<
120
+ Product2$Outbound,
121
+ z.ZodTypeDef,
122
+ Product2
123
+ > = z.object({});
124
+
125
+ /**
126
+ * @internal
127
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
128
+ */
129
+ export namespace Product2$ {
130
+ /** @deprecated use `Product2$inboundSchema` instead. */
131
+ export const inboundSchema = Product2$inboundSchema;
132
+ /** @deprecated use `Product2$outboundSchema` instead. */
133
+ export const outboundSchema = Product2$outboundSchema;
134
+ /** @deprecated use `Product2$Outbound` instead. */
135
+ export type Outbound = Product2$Outbound;
136
+ }
137
+
138
+ export function product2ToJSON(product2: Product2): string {
139
+ return JSON.stringify(Product2$outboundSchema.parse(product2));
140
+ }
141
+
142
+ export function product2FromJSON(
243
143
  jsonString: string,
244
- ): SafeParseResult<ProductDetailVariantOptions, SDKValidationError> {
144
+ ): SafeParseResult<Product2, SDKValidationError> {
245
145
  return safeParse(
246
146
  jsonString,
247
- (x) => ProductDetailVariantOptions$inboundSchema.parse(JSON.parse(x)),
248
- `Failed to parse 'ProductDetailVariantOptions' from JSON`,
147
+ (x) => Product2$inboundSchema.parse(JSON.parse(x)),
148
+ `Failed to parse 'Product2' from JSON`,
249
149
  );
250
150
  }
251
151
 
252
152
  /** @internal */
253
- export const ProductDetailMetadata$inboundSchema: z.ZodType<
254
- ProductDetailMetadata,
153
+ export const ProductDetailProduct$inboundSchema: z.ZodType<
154
+ ProductDetailProduct,
255
155
  z.ZodTypeDef,
256
156
  unknown
257
- > = z.object({
258
- name: z.string().optional(),
259
- value: z.string().optional(),
260
- });
157
+ > = z.union([z.lazy(() => Product2$inboundSchema), z.array(z.any())]);
261
158
 
262
159
  /** @internal */
263
- export type ProductDetailMetadata$Outbound = {
264
- name?: string | undefined;
265
- value?: string | undefined;
266
- };
160
+ export type ProductDetailProduct$Outbound = Product2$Outbound | Array<any>;
267
161
 
268
162
  /** @internal */
269
- export const ProductDetailMetadata$outboundSchema: z.ZodType<
270
- ProductDetailMetadata$Outbound,
163
+ export const ProductDetailProduct$outboundSchema: z.ZodType<
164
+ ProductDetailProduct$Outbound,
271
165
  z.ZodTypeDef,
272
- ProductDetailMetadata
273
- > = z.object({
274
- name: z.string().optional(),
275
- value: z.string().optional(),
276
- });
166
+ ProductDetailProduct
167
+ > = z.union([z.lazy(() => Product2$outboundSchema), z.array(z.any())]);
277
168
 
278
169
  /**
279
170
  * @internal
280
171
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
281
172
  */
282
- export namespace ProductDetailMetadata$ {
283
- /** @deprecated use `ProductDetailMetadata$inboundSchema` instead. */
284
- export const inboundSchema = ProductDetailMetadata$inboundSchema;
285
- /** @deprecated use `ProductDetailMetadata$outboundSchema` instead. */
286
- export const outboundSchema = ProductDetailMetadata$outboundSchema;
287
- /** @deprecated use `ProductDetailMetadata$Outbound` instead. */
288
- export type Outbound = ProductDetailMetadata$Outbound;
173
+ export namespace ProductDetailProduct$ {
174
+ /** @deprecated use `ProductDetailProduct$inboundSchema` instead. */
175
+ export const inboundSchema = ProductDetailProduct$inboundSchema;
176
+ /** @deprecated use `ProductDetailProduct$outboundSchema` instead. */
177
+ export const outboundSchema = ProductDetailProduct$outboundSchema;
178
+ /** @deprecated use `ProductDetailProduct$Outbound` instead. */
179
+ export type Outbound = ProductDetailProduct$Outbound;
289
180
  }
290
181
 
291
- export function productDetailMetadataToJSON(
292
- productDetailMetadata: ProductDetailMetadata,
182
+ export function productDetailProductToJSON(
183
+ productDetailProduct: ProductDetailProduct,
293
184
  ): string {
294
185
  return JSON.stringify(
295
- ProductDetailMetadata$outboundSchema.parse(productDetailMetadata),
186
+ ProductDetailProduct$outboundSchema.parse(productDetailProduct),
296
187
  );
297
188
  }
298
189
 
299
- export function productDetailMetadataFromJSON(
190
+ export function productDetailProductFromJSON(
300
191
  jsonString: string,
301
- ): SafeParseResult<ProductDetailMetadata, SDKValidationError> {
192
+ ): SafeParseResult<ProductDetailProduct, SDKValidationError> {
302
193
  return safeParse(
303
194
  jsonString,
304
- (x) => ProductDetailMetadata$inboundSchema.parse(JSON.parse(x)),
305
- `Failed to parse 'ProductDetailMetadata' from JSON`,
195
+ (x) => ProductDetailProduct$inboundSchema.parse(JSON.parse(x)),
196
+ `Failed to parse 'ProductDetailProduct' from JSON`,
306
197
  );
307
198
  }
308
199
 
@@ -311,193 +202,27 @@ export const ProductDetail$inboundSchema: z.ZodType<
311
202
  ProductDetail,
312
203
  z.ZodTypeDef,
313
204
  unknown
314
- > = z.object({
315
- id: z.string().optional(),
316
- name: z.string().optional(),
317
- description: z.string().optional(),
318
- short_description: z.string().optional(),
319
- product_type: ProductDetailProductType$inboundSchema.optional(),
320
- active: z.boolean().default(true),
321
- sku: z.string().optional(),
322
- stock_available: z.boolean().default(true),
323
- is_featured: z.boolean().default(false),
324
- on_offer: z.boolean().default(false),
325
- on_subscription: z.boolean().default(false),
326
- on_promotion: z.boolean().default(false),
327
- has_variant: z.boolean().default(false),
328
- variant_options: z.nullable(
329
- z.array(z.lazy(() => ProductDetailVariantOptions$inboundSchema)),
330
- ).optional(),
331
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
332
- images: z.array(ProductImage$inboundSchema).optional(),
333
- pricing: ProductPricing$inboundSchema.optional(),
334
- shipping: ProductShipping$inboundSchema.optional(),
335
- tags: z.nullable(z.array(z.string())).optional(),
336
- category_ids: z.array(z.string()).optional(),
337
- reviews_rating_sum: z.number().optional(),
338
- reviews_count: z.number().int().optional(),
339
- hsn_code: z.string().optional(),
340
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
341
- .optional(),
342
- modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
343
- .optional(),
344
- videos: z.array(ProductVideo$inboundSchema).optional(),
345
- promotion: z.array(ProductPromotion$inboundSchema).optional(),
346
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
347
- packaging: ProductPackaging$inboundSchema.optional(),
348
- variants: z.array(Variant$inboundSchema).optional(),
349
- upselling_product_ids: z.array(z.string()).optional(),
350
- crossselling_product_ids: z.array(z.string()).optional(),
351
- reviews: z.array(ProductReview$inboundSchema).optional(),
352
- bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
353
- sales_channels: z.array(SalesChannel$inboundSchema).optional(),
354
- metadata: z.nullable(
355
- z.array(z.lazy(() => ProductDetailMetadata$inboundSchema)),
356
- ).optional(),
357
- seo: Seo$inboundSchema.optional(),
358
- reviews_tags: z.array(z.string()).optional(),
359
- }).transform((v) => {
360
- return remap$(v, {
361
- "short_description": "shortDescription",
362
- "product_type": "productType",
363
- "stock_available": "stockAvailable",
364
- "is_featured": "isFeatured",
365
- "on_offer": "onOffer",
366
- "on_subscription": "onSubscription",
367
- "on_promotion": "onPromotion",
368
- "has_variant": "hasVariant",
369
- "variant_options": "variantOptions",
370
- "category_ids": "categoryIds",
371
- "reviews_rating_sum": "reviewsRatingSum",
372
- "reviews_count": "reviewsCount",
373
- "hsn_code": "hsnCode",
374
- "created_at": "createdAt",
375
- "modified_at": "modifiedAt",
376
- "upselling_product_ids": "upsellingProductIds",
377
- "crossselling_product_ids": "crosssellingProductIds",
378
- "bundle_items": "bundleItems",
379
- "sales_channels": "salesChannels",
380
- "reviews_tags": "reviewsTags",
381
- });
382
- });
205
+ > = z.union([
206
+ z.union([z.lazy(() => Product2$inboundSchema), z.array(z.any())]),
207
+ z.union([z.lazy(() => BundleProduct2$inboundSchema), z.array(z.any())]),
208
+ ]);
383
209
 
384
210
  /** @internal */
385
- export type ProductDetail$Outbound = {
386
- id?: string | undefined;
387
- name?: string | undefined;
388
- description?: string | undefined;
389
- short_description?: string | undefined;
390
- product_type?: string | undefined;
391
- active: boolean;
392
- sku?: string | undefined;
393
- stock_available: boolean;
394
- is_featured: boolean;
395
- on_offer: boolean;
396
- on_subscription: boolean;
397
- on_promotion: boolean;
398
- has_variant: boolean;
399
- variant_options?:
400
- | Array<ProductDetailVariantOptions$Outbound>
401
- | null
402
- | undefined;
403
- attributes?: Array<ProductAttribute$Outbound> | undefined;
404
- images?: Array<ProductImage$Outbound> | undefined;
405
- pricing?: ProductPricing$Outbound | undefined;
406
- shipping?: ProductShipping$Outbound | undefined;
407
- tags?: Array<string> | null | undefined;
408
- category_ids?: Array<string> | undefined;
409
- reviews_rating_sum?: number | undefined;
410
- reviews_count?: number | undefined;
411
- hsn_code?: string | undefined;
412
- created_at?: string | undefined;
413
- modified_at?: string | undefined;
414
- videos?: Array<ProductVideo$Outbound> | undefined;
415
- promotion?: Array<ProductPromotion$Outbound> | undefined;
416
- subscription?: Array<ProductSubscription$Outbound> | undefined;
417
- packaging?: ProductPackaging$Outbound | undefined;
418
- variants?: Array<Variant$Outbound> | undefined;
419
- upselling_product_ids?: Array<string> | undefined;
420
- crossselling_product_ids?: Array<string> | undefined;
421
- reviews?: Array<ProductReview$Outbound> | undefined;
422
- bundle_items?: Array<ProductBundleItem$Outbound> | undefined;
423
- sales_channels?: Array<SalesChannel$Outbound> | undefined;
424
- metadata?: Array<ProductDetailMetadata$Outbound> | null | undefined;
425
- seo?: Seo$Outbound | undefined;
426
- reviews_tags?: Array<string> | undefined;
427
- };
211
+ export type ProductDetail$Outbound =
212
+ | Product2$Outbound
213
+ | Array<any>
214
+ | BundleProduct2$Outbound
215
+ | Array<any>;
428
216
 
429
217
  /** @internal */
430
218
  export const ProductDetail$outboundSchema: z.ZodType<
431
219
  ProductDetail$Outbound,
432
220
  z.ZodTypeDef,
433
221
  ProductDetail
434
- > = z.object({
435
- id: z.string().optional(),
436
- name: z.string().optional(),
437
- description: z.string().optional(),
438
- shortDescription: z.string().optional(),
439
- productType: ProductDetailProductType$outboundSchema.optional(),
440
- active: z.boolean().default(true),
441
- sku: z.string().optional(),
442
- stockAvailable: z.boolean().default(true),
443
- isFeatured: z.boolean().default(false),
444
- onOffer: z.boolean().default(false),
445
- onSubscription: z.boolean().default(false),
446
- onPromotion: z.boolean().default(false),
447
- hasVariant: z.boolean().default(false),
448
- variantOptions: z.nullable(
449
- z.array(z.lazy(() => ProductDetailVariantOptions$outboundSchema)),
450
- ).optional(),
451
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
452
- images: z.array(ProductImage$outboundSchema).optional(),
453
- pricing: ProductPricing$outboundSchema.optional(),
454
- shipping: ProductShipping$outboundSchema.optional(),
455
- tags: z.nullable(z.array(z.string())).optional(),
456
- categoryIds: z.array(z.string()).optional(),
457
- reviewsRatingSum: z.number().optional(),
458
- reviewsCount: z.number().int().optional(),
459
- hsnCode: z.string().optional(),
460
- createdAt: z.date().transform(v => v.toISOString()).optional(),
461
- modifiedAt: z.date().transform(v => v.toISOString()).optional(),
462
- videos: z.array(ProductVideo$outboundSchema).optional(),
463
- promotion: z.array(ProductPromotion$outboundSchema).optional(),
464
- subscription: z.array(ProductSubscription$outboundSchema).optional(),
465
- packaging: ProductPackaging$outboundSchema.optional(),
466
- variants: z.array(Variant$outboundSchema).optional(),
467
- upsellingProductIds: z.array(z.string()).optional(),
468
- crosssellingProductIds: z.array(z.string()).optional(),
469
- reviews: z.array(ProductReview$outboundSchema).optional(),
470
- bundleItems: z.array(ProductBundleItem$outboundSchema).optional(),
471
- salesChannels: z.array(SalesChannel$outboundSchema).optional(),
472
- metadata: z.nullable(
473
- z.array(z.lazy(() => ProductDetailMetadata$outboundSchema)),
474
- ).optional(),
475
- seo: Seo$outboundSchema.optional(),
476
- reviewsTags: z.array(z.string()).optional(),
477
- }).transform((v) => {
478
- return remap$(v, {
479
- shortDescription: "short_description",
480
- productType: "product_type",
481
- stockAvailable: "stock_available",
482
- isFeatured: "is_featured",
483
- onOffer: "on_offer",
484
- onSubscription: "on_subscription",
485
- onPromotion: "on_promotion",
486
- hasVariant: "has_variant",
487
- variantOptions: "variant_options",
488
- categoryIds: "category_ids",
489
- reviewsRatingSum: "reviews_rating_sum",
490
- reviewsCount: "reviews_count",
491
- hsnCode: "hsn_code",
492
- createdAt: "created_at",
493
- modifiedAt: "modified_at",
494
- upsellingProductIds: "upselling_product_ids",
495
- crosssellingProductIds: "crossselling_product_ids",
496
- bundleItems: "bundle_items",
497
- salesChannels: "sales_channels",
498
- reviewsTags: "reviews_tags",
499
- });
500
- });
222
+ > = z.union([
223
+ z.union([z.lazy(() => Product2$outboundSchema), z.array(z.any())]),
224
+ z.union([z.lazy(() => BundleProduct2$outboundSchema), z.array(z.any())]),
225
+ ]);
501
226
 
502
227
  /**
503
228
  * @internal