ce-storefront 0.11.0 → 0.11.2

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 (443) hide show
  1. package/README.md +28 -18
  2. package/docs/sdks/carts/README.md +69 -44
  3. package/docs/sdks/catalog/README.md +59 -40
  4. package/docs/sdks/customers/README.md +31 -20
  5. package/docs/sdks/orders/README.md +32 -20
  6. package/docs/sdks/shipping/README.md +5 -4
  7. package/esm/funcs/authGenerateOtp.js +2 -2
  8. package/esm/funcs/authGenerateOtp.js.map +1 -1
  9. package/esm/funcs/authGetAnonymousToken.js +2 -2
  10. package/esm/funcs/authGetAnonymousToken.js.map +1 -1
  11. package/esm/funcs/authGetUserDetail.js +2 -2
  12. package/esm/funcs/authGetUserDetail.js.map +1 -1
  13. package/esm/funcs/authLoginWithEmail.js +2 -2
  14. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  15. package/esm/funcs/authLoginWithPhone.js +2 -2
  16. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  17. package/esm/funcs/authLoginWithWhatsapp.js +2 -2
  18. package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
  19. package/esm/funcs/authLogout.js +2 -2
  20. package/esm/funcs/authLogout.js.map +1 -1
  21. package/esm/funcs/authRefreshToken.js +2 -2
  22. package/esm/funcs/authRefreshToken.js.map +1 -1
  23. package/esm/funcs/authUpdateUser.js +2 -2
  24. package/esm/funcs/authUpdateUser.js.map +1 -1
  25. package/esm/funcs/authVerifyOtp.js +2 -2
  26. package/esm/funcs/authVerifyOtp.js.map +1 -1
  27. package/esm/funcs/cartsAddShippingMethod.d.ts +2 -1
  28. package/esm/funcs/cartsAddShippingMethod.d.ts.map +1 -1
  29. package/esm/funcs/cartsAddShippingMethod.js +6 -2
  30. package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
  31. package/esm/funcs/cartsApplyCoupon.d.ts +2 -1
  32. package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
  33. package/esm/funcs/cartsApplyCoupon.js +6 -2
  34. package/esm/funcs/cartsApplyCoupon.js.map +1 -1
  35. package/esm/funcs/cartsCreateCart.js +2 -2
  36. package/esm/funcs/cartsCreateCart.js.map +1 -1
  37. package/esm/funcs/cartsCreateCartAddress.d.ts +2 -1
  38. package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
  39. package/esm/funcs/cartsCreateCartAddress.js +6 -2
  40. package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
  41. package/esm/funcs/cartsDeleteCart.d.ts +2 -1
  42. package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
  43. package/esm/funcs/cartsDeleteCart.js +6 -2
  44. package/esm/funcs/cartsDeleteCart.js.map +1 -1
  45. package/esm/funcs/cartsGetCart.d.ts +2 -1
  46. package/esm/funcs/cartsGetCart.d.ts.map +1 -1
  47. package/esm/funcs/cartsGetCart.js +6 -2
  48. package/esm/funcs/cartsGetCart.js.map +1 -1
  49. package/esm/funcs/cartsGetUserCart.d.ts +2 -1
  50. package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
  51. package/esm/funcs/cartsGetUserCart.js +6 -2
  52. package/esm/funcs/cartsGetUserCart.js.map +1 -1
  53. package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +2 -1
  54. package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -1
  55. package/esm/funcs/cartsRedeemLoyaltyPoints.js +6 -2
  56. package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
  57. package/esm/funcs/cartsRemoveCoupon.d.ts +2 -1
  58. package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
  59. package/esm/funcs/cartsRemoveCoupon.js +6 -2
  60. package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
  61. package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +2 -1
  62. package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -1
  63. package/esm/funcs/cartsRemoveLoyaltyPoints.js +6 -2
  64. package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
  65. package/esm/funcs/cartsRemoveUserCart.d.ts +2 -1
  66. package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
  67. package/esm/funcs/cartsRemoveUserCart.js +6 -2
  68. package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
  69. package/esm/funcs/cartsUpdateCart.d.ts +2 -1
  70. package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
  71. package/esm/funcs/cartsUpdateCart.js +6 -2
  72. package/esm/funcs/cartsUpdateCart.js.map +1 -1
  73. package/esm/funcs/catalogGetProductDetail.d.ts +2 -1
  74. package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
  75. package/esm/funcs/catalogGetProductDetail.js +6 -2
  76. package/esm/funcs/catalogGetProductDetail.js.map +1 -1
  77. package/esm/funcs/catalogGetVariantDetail.d.ts +2 -1
  78. package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
  79. package/esm/funcs/catalogGetVariantDetail.js +6 -2
  80. package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
  81. package/esm/funcs/catalogListCategories.js +2 -2
  82. package/esm/funcs/catalogListCategories.js.map +1 -1
  83. package/esm/funcs/catalogListCrosssellProducts.d.ts +2 -1
  84. package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
  85. package/esm/funcs/catalogListCrosssellProducts.js +6 -2
  86. package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
  87. package/esm/funcs/catalogListProductReviews.d.ts +2 -1
  88. package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
  89. package/esm/funcs/catalogListProductReviews.js +6 -2
  90. package/esm/funcs/catalogListProductReviews.js.map +1 -1
  91. package/esm/funcs/catalogListProductVariants.d.ts +2 -1
  92. package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
  93. package/esm/funcs/catalogListProductVariants.js +6 -2
  94. package/esm/funcs/catalogListProductVariants.js.map +1 -1
  95. package/esm/funcs/catalogListProducts.d.ts +2 -1
  96. package/esm/funcs/catalogListProducts.d.ts.map +1 -1
  97. package/esm/funcs/catalogListProducts.js +6 -2
  98. package/esm/funcs/catalogListProducts.js.map +1 -1
  99. package/esm/funcs/catalogListSimilarProducts.d.ts +2 -1
  100. package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
  101. package/esm/funcs/catalogListSimilarProducts.js +6 -2
  102. package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
  103. package/esm/funcs/catalogListSkus.d.ts +2 -1
  104. package/esm/funcs/catalogListSkus.d.ts.map +1 -1
  105. package/esm/funcs/catalogListSkus.js +6 -2
  106. package/esm/funcs/catalogListSkus.js.map +1 -1
  107. package/esm/funcs/catalogListUpsellProducts.d.ts +2 -1
  108. package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
  109. package/esm/funcs/catalogListUpsellProducts.js +6 -2
  110. package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
  111. package/esm/funcs/catalogSearchProducts.d.ts +2 -1
  112. package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
  113. package/esm/funcs/catalogSearchProducts.js +6 -2
  114. package/esm/funcs/catalogSearchProducts.js.map +1 -1
  115. package/esm/funcs/commonListCountryPincodes.js +2 -2
  116. package/esm/funcs/commonListCountryPincodes.js.map +1 -1
  117. package/esm/funcs/customersCreateAddress.d.ts +2 -1
  118. package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
  119. package/esm/funcs/customersCreateAddress.js +6 -2
  120. package/esm/funcs/customersCreateAddress.js.map +1 -1
  121. package/esm/funcs/customersDeleteAddress.d.ts +2 -1
  122. package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
  123. package/esm/funcs/customersDeleteAddress.js +6 -2
  124. package/esm/funcs/customersDeleteAddress.js.map +1 -1
  125. package/esm/funcs/customersGetAddressDetail.d.ts +2 -1
  126. package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
  127. package/esm/funcs/customersGetAddressDetail.js +6 -2
  128. package/esm/funcs/customersGetAddressDetail.js.map +1 -1
  129. package/esm/funcs/customersGetLoyaltyDetails.d.ts +2 -1
  130. package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -1
  131. package/esm/funcs/customersGetLoyaltyDetails.js +6 -2
  132. package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
  133. package/esm/funcs/customersListAddresses.js +2 -2
  134. package/esm/funcs/customersListAddresses.js.map +1 -1
  135. package/esm/funcs/customersListUserReviews.js +2 -2
  136. package/esm/funcs/customersListUserReviews.js.map +1 -1
  137. package/esm/funcs/customersUpdateAddressDetail.d.ts +2 -1
  138. package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
  139. package/esm/funcs/customersUpdateAddressDetail.js +6 -2
  140. package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
  141. package/esm/funcs/ordersCancelOrder.d.ts +2 -1
  142. package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
  143. package/esm/funcs/ordersCancelOrder.js +6 -2
  144. package/esm/funcs/ordersCancelOrder.js.map +1 -1
  145. package/esm/funcs/ordersCreateOrder.d.ts +2 -1
  146. package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
  147. package/esm/funcs/ordersCreateOrder.js +6 -2
  148. package/esm/funcs/ordersCreateOrder.js.map +1 -1
  149. package/esm/funcs/ordersGetOrderDetail.d.ts +2 -1
  150. package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
  151. package/esm/funcs/ordersGetOrderDetail.js +6 -2
  152. package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
  153. package/esm/funcs/ordersGetPaymentStatus.js +2 -2
  154. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
  155. package/esm/funcs/ordersListOrderShipments.d.ts +2 -1
  156. package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
  157. package/esm/funcs/ordersListOrderShipments.js +6 -2
  158. package/esm/funcs/ordersListOrderShipments.js.map +1 -1
  159. package/esm/funcs/ordersListOrders.d.ts +1 -1
  160. package/esm/funcs/ordersListOrders.d.ts.map +1 -1
  161. package/esm/funcs/ordersListOrders.js +2 -2
  162. package/esm/funcs/ordersListOrders.js.map +1 -1
  163. package/esm/funcs/ordersRetryOrderPayment.d.ts +2 -1
  164. package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
  165. package/esm/funcs/ordersRetryOrderPayment.js +6 -2
  166. package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
  167. package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +2 -1
  168. package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
  169. package/esm/funcs/shippingCheckDeliveryAvailability.js +6 -2
  170. package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
  171. package/esm/funcs/shippingCheckServiceability.js +2 -2
  172. package/esm/funcs/shippingCheckServiceability.js.map +1 -1
  173. package/esm/lib/config.d.ts +3 -3
  174. package/esm/lib/config.js +3 -3
  175. package/esm/models/components/cart.d.ts +9 -6
  176. package/esm/models/components/cart.d.ts.map +1 -1
  177. package/esm/models/components/cart.js +12 -12
  178. package/esm/models/components/cart.js.map +1 -1
  179. package/esm/models/components/cartitem.d.ts +12 -2
  180. package/esm/models/components/cartitem.d.ts.map +1 -1
  181. package/esm/models/components/cartitem.js +12 -4
  182. package/esm/models/components/cartitem.js.map +1 -1
  183. package/esm/models/components/index.d.ts +0 -3
  184. package/esm/models/components/index.d.ts.map +1 -1
  185. package/esm/models/components/index.js +0 -3
  186. package/esm/models/components/index.js.map +1 -1
  187. package/esm/models/{components → errors}/badrequest.d.ts +13 -4
  188. package/esm/models/errors/badrequest.d.ts.map +1 -0
  189. package/esm/models/{components → errors}/badrequest.js +26 -8
  190. package/esm/models/errors/badrequest.js.map +1 -0
  191. package/esm/models/errors/index.d.ts +3 -0
  192. package/esm/models/errors/index.d.ts.map +1 -1
  193. package/esm/models/errors/index.js +3 -0
  194. package/esm/models/errors/index.js.map +1 -1
  195. package/esm/models/{components → errors}/notfound.d.ts +11 -5
  196. package/esm/models/errors/notfound.d.ts.map +1 -0
  197. package/esm/models/{components → errors}/notfound.js +24 -9
  198. package/esm/models/errors/notfound.js.map +1 -0
  199. package/esm/models/{components → errors}/unauthorized.d.ts +13 -7
  200. package/esm/models/errors/unauthorized.d.ts.map +1 -0
  201. package/esm/models/{components → errors}/unauthorized.js +24 -9
  202. package/esm/models/errors/unauthorized.js.map +1 -0
  203. package/esm/models/operations/applycoupon.d.ts +0 -21
  204. package/esm/models/operations/applycoupon.d.ts.map +1 -1
  205. package/esm/models/operations/applycoupon.js +0 -29
  206. package/esm/models/operations/applycoupon.js.map +1 -1
  207. package/esm/models/operations/cancelorder.d.ts +0 -21
  208. package/esm/models/operations/cancelorder.d.ts.map +1 -1
  209. package/esm/models/operations/cancelorder.js +0 -29
  210. package/esm/models/operations/cancelorder.js.map +1 -1
  211. package/esm/models/operations/checkdeliveryavailability.d.ts +0 -22
  212. package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
  213. package/esm/models/operations/checkdeliveryavailability.js +0 -28
  214. package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
  215. package/esm/models/operations/createaddress.d.ts +0 -21
  216. package/esm/models/operations/createaddress.d.ts.map +1 -1
  217. package/esm/models/operations/createaddress.js +0 -29
  218. package/esm/models/operations/createaddress.js.map +1 -1
  219. package/esm/models/operations/createcartaddress.d.ts +0 -21
  220. package/esm/models/operations/createcartaddress.d.ts.map +1 -1
  221. package/esm/models/operations/createcartaddress.js +0 -31
  222. package/esm/models/operations/createcartaddress.js.map +1 -1
  223. package/esm/models/operations/createorder.d.ts +0 -21
  224. package/esm/models/operations/createorder.d.ts.map +1 -1
  225. package/esm/models/operations/createorder.js +0 -31
  226. package/esm/models/operations/createorder.js.map +1 -1
  227. package/esm/models/operations/deleteaddress.d.ts +0 -22
  228. package/esm/models/operations/deleteaddress.d.ts.map +1 -1
  229. package/esm/models/operations/deleteaddress.js +0 -30
  230. package/esm/models/operations/deleteaddress.js.map +1 -1
  231. package/esm/models/operations/deletecart.d.ts +0 -22
  232. package/esm/models/operations/deletecart.d.ts.map +1 -1
  233. package/esm/models/operations/deletecart.js +0 -30
  234. package/esm/models/operations/deletecart.js.map +1 -1
  235. package/esm/models/operations/deleteusercart.d.ts +0 -22
  236. package/esm/models/operations/deleteusercart.d.ts.map +1 -1
  237. package/esm/models/operations/deleteusercart.js +0 -30
  238. package/esm/models/operations/deleteusercart.js.map +1 -1
  239. package/esm/models/operations/getaddressdetail.d.ts +0 -22
  240. package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
  241. package/esm/models/operations/getaddressdetail.js +0 -30
  242. package/esm/models/operations/getaddressdetail.js.map +1 -1
  243. package/esm/models/operations/getcart.d.ts +0 -21
  244. package/esm/models/operations/getcart.d.ts.map +1 -1
  245. package/esm/models/operations/getcart.js +0 -29
  246. package/esm/models/operations/getcart.js.map +1 -1
  247. package/esm/models/operations/getloyaltydetails.d.ts +0 -21
  248. package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
  249. package/esm/models/operations/getloyaltydetails.js +0 -29
  250. package/esm/models/operations/getloyaltydetails.js.map +1 -1
  251. package/esm/models/operations/getorderdetail.d.ts +0 -21
  252. package/esm/models/operations/getorderdetail.d.ts.map +1 -1
  253. package/esm/models/operations/getorderdetail.js +0 -29
  254. package/esm/models/operations/getorderdetail.js.map +1 -1
  255. package/esm/models/operations/getproductdetail.d.ts +0 -21
  256. package/esm/models/operations/getproductdetail.d.ts.map +1 -1
  257. package/esm/models/operations/getproductdetail.js +0 -29
  258. package/esm/models/operations/getproductdetail.js.map +1 -1
  259. package/esm/models/operations/getusercart.d.ts +0 -21
  260. package/esm/models/operations/getusercart.d.ts.map +1 -1
  261. package/esm/models/operations/getusercart.js +0 -29
  262. package/esm/models/operations/getusercart.js.map +1 -1
  263. package/esm/models/operations/getvariantdetail.d.ts +0 -21
  264. package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
  265. package/esm/models/operations/getvariantdetail.js +0 -29
  266. package/esm/models/operations/getvariantdetail.js.map +1 -1
  267. package/esm/models/operations/listcrosssellproducts.d.ts +0 -21
  268. package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
  269. package/esm/models/operations/listcrosssellproducts.js +0 -29
  270. package/esm/models/operations/listcrosssellproducts.js.map +1 -1
  271. package/esm/models/operations/listordershipments.d.ts +0 -21
  272. package/esm/models/operations/listordershipments.d.ts.map +1 -1
  273. package/esm/models/operations/listordershipments.js +0 -29
  274. package/esm/models/operations/listordershipments.js.map +1 -1
  275. package/esm/models/operations/listproductreviews.d.ts +0 -21
  276. package/esm/models/operations/listproductreviews.d.ts.map +1 -1
  277. package/esm/models/operations/listproductreviews.js +0 -29
  278. package/esm/models/operations/listproductreviews.js.map +1 -1
  279. package/esm/models/operations/listproducts.d.ts +0 -21
  280. package/esm/models/operations/listproducts.d.ts.map +1 -1
  281. package/esm/models/operations/listproducts.js +0 -29
  282. package/esm/models/operations/listproducts.js.map +1 -1
  283. package/esm/models/operations/listproductvariants.d.ts +0 -21
  284. package/esm/models/operations/listproductvariants.d.ts.map +1 -1
  285. package/esm/models/operations/listproductvariants.js +0 -29
  286. package/esm/models/operations/listproductvariants.js.map +1 -1
  287. package/esm/models/operations/listsimilarproducts.d.ts +0 -21
  288. package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
  289. package/esm/models/operations/listsimilarproducts.js +0 -29
  290. package/esm/models/operations/listsimilarproducts.js.map +1 -1
  291. package/esm/models/operations/listskus.d.ts +0 -21
  292. package/esm/models/operations/listskus.d.ts.map +1 -1
  293. package/esm/models/operations/listskus.js +0 -29
  294. package/esm/models/operations/listskus.js.map +1 -1
  295. package/esm/models/operations/listupsellproducts.d.ts +0 -21
  296. package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
  297. package/esm/models/operations/listupsellproducts.js +0 -29
  298. package/esm/models/operations/listupsellproducts.js.map +1 -1
  299. package/esm/models/operations/redeemloyaltypoints.d.ts +0 -21
  300. package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
  301. package/esm/models/operations/redeemloyaltypoints.js +0 -29
  302. package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
  303. package/esm/models/operations/removecoupon.d.ts +0 -21
  304. package/esm/models/operations/removecoupon.d.ts.map +1 -1
  305. package/esm/models/operations/removecoupon.js +0 -29
  306. package/esm/models/operations/removecoupon.js.map +1 -1
  307. package/esm/models/operations/removeloyaltypoints.d.ts +0 -21
  308. package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
  309. package/esm/models/operations/removeloyaltypoints.js +0 -29
  310. package/esm/models/operations/removeloyaltypoints.js.map +1 -1
  311. package/esm/models/operations/retryorderpayment.d.ts +0 -21
  312. package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
  313. package/esm/models/operations/retryorderpayment.js +0 -31
  314. package/esm/models/operations/retryorderpayment.js.map +1 -1
  315. package/esm/models/operations/searchproducts.d.ts +0 -21
  316. package/esm/models/operations/searchproducts.d.ts.map +1 -1
  317. package/esm/models/operations/searchproducts.js +0 -27
  318. package/esm/models/operations/searchproducts.js.map +1 -1
  319. package/esm/models/operations/updateaddressdetail.d.ts +0 -21
  320. package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
  321. package/esm/models/operations/updateaddressdetail.js +0 -31
  322. package/esm/models/operations/updateaddressdetail.js.map +1 -1
  323. package/esm/models/operations/updatecart.d.ts +0 -21
  324. package/esm/models/operations/updatecart.d.ts.map +1 -1
  325. package/esm/models/operations/updatecart.js +0 -31
  326. package/esm/models/operations/updatecart.js.map +1 -1
  327. package/esm/models/operations/updateshippingmethod.d.ts +0 -21
  328. package/esm/models/operations/updateshippingmethod.d.ts.map +1 -1
  329. package/esm/models/operations/updateshippingmethod.js +0 -31
  330. package/esm/models/operations/updateshippingmethod.js.map +1 -1
  331. package/esm/sdk/carts.d.ts +11 -11
  332. package/esm/sdk/carts.d.ts.map +1 -1
  333. package/esm/sdk/catalog.d.ts +10 -10
  334. package/esm/sdk/catalog.d.ts.map +1 -1
  335. package/esm/sdk/customers.d.ts +5 -5
  336. package/esm/sdk/customers.d.ts.map +1 -1
  337. package/esm/sdk/orders.d.ts +6 -6
  338. package/esm/sdk/orders.d.ts.map +1 -1
  339. package/esm/sdk/shipping.d.ts +1 -1
  340. package/esm/sdk/shipping.d.ts.map +1 -1
  341. package/jsr.json +1 -1
  342. package/package.json +2 -2
  343. package/src/funcs/authGenerateOtp.ts +3 -1
  344. package/src/funcs/authGetAnonymousToken.ts +3 -1
  345. package/src/funcs/authGetUserDetail.ts +3 -1
  346. package/src/funcs/authLoginWithEmail.ts +3 -1
  347. package/src/funcs/authLoginWithPhone.ts +3 -1
  348. package/src/funcs/authLoginWithWhatsapp.ts +3 -1
  349. package/src/funcs/authLogout.ts +3 -1
  350. package/src/funcs/authRefreshToken.ts +3 -1
  351. package/src/funcs/authUpdateUser.ts +3 -1
  352. package/src/funcs/authVerifyOtp.ts +3 -1
  353. package/src/funcs/cartsAddShippingMethod.ts +25 -9
  354. package/src/funcs/cartsApplyCoupon.ts +21 -8
  355. package/src/funcs/cartsCreateCart.ts +3 -1
  356. package/src/funcs/cartsCreateCartAddress.ts +25 -9
  357. package/src/funcs/cartsDeleteCart.ts +21 -8
  358. package/src/funcs/cartsGetCart.ts +21 -8
  359. package/src/funcs/cartsGetUserCart.ts +21 -8
  360. package/src/funcs/cartsRedeemLoyaltyPoints.ts +21 -8
  361. package/src/funcs/cartsRemoveCoupon.ts +21 -9
  362. package/src/funcs/cartsRemoveLoyaltyPoints.ts +21 -18
  363. package/src/funcs/cartsRemoveUserCart.ts +21 -8
  364. package/src/funcs/cartsUpdateCart.ts +25 -9
  365. package/src/funcs/catalogGetProductDetail.ts +21 -8
  366. package/src/funcs/catalogGetVariantDetail.ts +21 -8
  367. package/src/funcs/catalogListCategories.ts +3 -1
  368. package/src/funcs/catalogListCrosssellProducts.ts +21 -8
  369. package/src/funcs/catalogListProductReviews.ts +21 -8
  370. package/src/funcs/catalogListProductVariants.ts +21 -8
  371. package/src/funcs/catalogListProducts.ts +21 -8
  372. package/src/funcs/catalogListSimilarProducts.ts +21 -8
  373. package/src/funcs/catalogListSkus.ts +21 -8
  374. package/src/funcs/catalogListUpsellProducts.ts +21 -8
  375. package/src/funcs/catalogSearchProducts.ts +17 -7
  376. package/src/funcs/commonListCountryPincodes.ts +3 -1
  377. package/src/funcs/customersCreateAddress.ts +21 -8
  378. package/src/funcs/customersDeleteAddress.ts +21 -8
  379. package/src/funcs/customersGetAddressDetail.ts +21 -8
  380. package/src/funcs/customersGetLoyaltyDetails.ts +21 -8
  381. package/src/funcs/customersListAddresses.ts +3 -1
  382. package/src/funcs/customersListUserReviews.ts +3 -1
  383. package/src/funcs/customersUpdateAddressDetail.ts +25 -9
  384. package/src/funcs/ordersCancelOrder.ts +21 -8
  385. package/src/funcs/ordersCreateOrder.ts +25 -9
  386. package/src/funcs/ordersGetOrderDetail.ts +21 -8
  387. package/src/funcs/ordersGetPaymentStatus.ts +3 -1
  388. package/src/funcs/ordersListOrderShipments.ts +21 -8
  389. package/src/funcs/ordersListOrders.ts +7 -6
  390. package/src/funcs/ordersRetryOrderPayment.ts +25 -9
  391. package/src/funcs/shippingCheckDeliveryAvailability.ts +17 -7
  392. package/src/funcs/shippingCheckServiceability.ts +3 -1
  393. package/src/lib/config.ts +3 -3
  394. package/src/models/components/cart.ts +21 -18
  395. package/src/models/components/cartitem.ts +24 -6
  396. package/src/models/components/index.ts +0 -3
  397. package/src/models/{components → errors}/badrequest.ts +40 -23
  398. package/src/models/errors/index.ts +3 -0
  399. package/src/models/{components → errors}/notfound.ts +36 -24
  400. package/src/models/{components → errors}/unauthorized.ts +38 -26
  401. package/src/models/operations/applycoupon.ts +0 -64
  402. package/src/models/operations/cancelorder.ts +0 -64
  403. package/src/models/operations/checkdeliveryavailability.ts +0 -64
  404. package/src/models/operations/createaddress.ts +0 -64
  405. package/src/models/operations/createcartaddress.ts +0 -68
  406. package/src/models/operations/createorder.ts +0 -68
  407. package/src/models/operations/deleteaddress.ts +0 -65
  408. package/src/models/operations/deletecart.ts +0 -65
  409. package/src/models/operations/deleteusercart.ts +0 -65
  410. package/src/models/operations/getaddressdetail.ts +0 -65
  411. package/src/models/operations/getcart.ts +0 -62
  412. package/src/models/operations/getloyaltydetails.ts +0 -64
  413. package/src/models/operations/getorderdetail.ts +0 -64
  414. package/src/models/operations/getproductdetail.ts +0 -64
  415. package/src/models/operations/getusercart.ts +0 -64
  416. package/src/models/operations/getvariantdetail.ts +0 -64
  417. package/src/models/operations/listcrosssellproducts.ts +0 -66
  418. package/src/models/operations/listordershipments.ts +0 -64
  419. package/src/models/operations/listproductreviews.ts +0 -64
  420. package/src/models/operations/listproducts.ts +0 -64
  421. package/src/models/operations/listproductvariants.ts +0 -66
  422. package/src/models/operations/listsimilarproducts.ts +0 -66
  423. package/src/models/operations/listskus.ts +0 -64
  424. package/src/models/operations/listupsellproducts.ts +0 -64
  425. package/src/models/operations/redeemloyaltypoints.ts +0 -66
  426. package/src/models/operations/removecoupon.ts +0 -64
  427. package/src/models/operations/removeloyaltypoints.ts +0 -66
  428. package/src/models/operations/retryorderpayment.ts +0 -68
  429. package/src/models/operations/searchproducts.ts +0 -60
  430. package/src/models/operations/updateaddressdetail.ts +0 -70
  431. package/src/models/operations/updatecart.ts +0 -68
  432. package/src/models/operations/updateshippingmethod.ts +0 -70
  433. package/src/sdk/carts.ts +11 -11
  434. package/src/sdk/catalog.ts +10 -10
  435. package/src/sdk/customers.ts +5 -5
  436. package/src/sdk/orders.ts +6 -6
  437. package/src/sdk/shipping.ts +1 -1
  438. package/esm/models/components/badrequest.d.ts.map +0 -1
  439. package/esm/models/components/badrequest.js.map +0 -1
  440. package/esm/models/components/notfound.d.ts.map +0 -1
  441. package/esm/models/components/notfound.js.map +0 -1
  442. package/esm/models/components/unauthorized.d.ts.map +0 -1
  443. package/esm/models/components/unauthorized.js.map +0 -1
@@ -37,11 +37,6 @@ export type RedeemLoyaltyPointsResponseBody = {
37
37
  content: RedeemLoyaltyPointsContent;
38
38
  };
39
39
 
40
- export type RedeemLoyaltyPointsResponse =
41
- | RedeemLoyaltyPointsResponseBody
42
- | components.Unauthorized
43
- | components.BadRequest;
44
-
45
40
  /** @internal */
46
41
  export const RedeemLoyaltyPointsRequestBody$inboundSchema: z.ZodType<
47
42
  RedeemLoyaltyPointsRequestBody,
@@ -286,64 +281,3 @@ export function redeemLoyaltyPointsResponseBodyFromJSON(
286
281
  `Failed to parse 'RedeemLoyaltyPointsResponseBody' from JSON`,
287
282
  );
288
283
  }
289
-
290
- /** @internal */
291
- export const RedeemLoyaltyPointsResponse$inboundSchema: z.ZodType<
292
- RedeemLoyaltyPointsResponse,
293
- z.ZodTypeDef,
294
- unknown
295
- > = z.union([
296
- z.lazy(() => RedeemLoyaltyPointsResponseBody$inboundSchema),
297
- components.Unauthorized$inboundSchema,
298
- components.BadRequest$inboundSchema,
299
- ]);
300
-
301
- /** @internal */
302
- export type RedeemLoyaltyPointsResponse$Outbound =
303
- | RedeemLoyaltyPointsResponseBody$Outbound
304
- | components.Unauthorized$Outbound
305
- | components.BadRequest$Outbound;
306
-
307
- /** @internal */
308
- export const RedeemLoyaltyPointsResponse$outboundSchema: z.ZodType<
309
- RedeemLoyaltyPointsResponse$Outbound,
310
- z.ZodTypeDef,
311
- RedeemLoyaltyPointsResponse
312
- > = z.union([
313
- z.lazy(() => RedeemLoyaltyPointsResponseBody$outboundSchema),
314
- components.Unauthorized$outboundSchema,
315
- components.BadRequest$outboundSchema,
316
- ]);
317
-
318
- /**
319
- * @internal
320
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
321
- */
322
- export namespace RedeemLoyaltyPointsResponse$ {
323
- /** @deprecated use `RedeemLoyaltyPointsResponse$inboundSchema` instead. */
324
- export const inboundSchema = RedeemLoyaltyPointsResponse$inboundSchema;
325
- /** @deprecated use `RedeemLoyaltyPointsResponse$outboundSchema` instead. */
326
- export const outboundSchema = RedeemLoyaltyPointsResponse$outboundSchema;
327
- /** @deprecated use `RedeemLoyaltyPointsResponse$Outbound` instead. */
328
- export type Outbound = RedeemLoyaltyPointsResponse$Outbound;
329
- }
330
-
331
- export function redeemLoyaltyPointsResponseToJSON(
332
- redeemLoyaltyPointsResponse: RedeemLoyaltyPointsResponse,
333
- ): string {
334
- return JSON.stringify(
335
- RedeemLoyaltyPointsResponse$outboundSchema.parse(
336
- redeemLoyaltyPointsResponse,
337
- ),
338
- );
339
- }
340
-
341
- export function redeemLoyaltyPointsResponseFromJSON(
342
- jsonString: string,
343
- ): SafeParseResult<RedeemLoyaltyPointsResponse, SDKValidationError> {
344
- return safeParse(
345
- jsonString,
346
- (x) => RedeemLoyaltyPointsResponse$inboundSchema.parse(JSON.parse(x)),
347
- `Failed to parse 'RedeemLoyaltyPointsResponse' from JSON`,
348
- );
349
- }
@@ -31,11 +31,6 @@ export type RemoveCouponResponseBody = {
31
31
  content: RemoveCouponContent;
32
32
  };
33
33
 
34
- export type RemoveCouponResponse =
35
- | RemoveCouponResponseBody
36
- | components.Unauthorized
37
- | components.BadRequest;
38
-
39
34
  /** @internal */
40
35
  export const RemoveCouponRequest$inboundSchema: z.ZodType<
41
36
  RemoveCouponRequest,
@@ -203,62 +198,3 @@ export function removeCouponResponseBodyFromJSON(
203
198
  `Failed to parse 'RemoveCouponResponseBody' from JSON`,
204
199
  );
205
200
  }
206
-
207
- /** @internal */
208
- export const RemoveCouponResponse$inboundSchema: z.ZodType<
209
- RemoveCouponResponse,
210
- z.ZodTypeDef,
211
- unknown
212
- > = z.union([
213
- z.lazy(() => RemoveCouponResponseBody$inboundSchema),
214
- components.Unauthorized$inboundSchema,
215
- components.BadRequest$inboundSchema,
216
- ]);
217
-
218
- /** @internal */
219
- export type RemoveCouponResponse$Outbound =
220
- | RemoveCouponResponseBody$Outbound
221
- | components.Unauthorized$Outbound
222
- | components.BadRequest$Outbound;
223
-
224
- /** @internal */
225
- export const RemoveCouponResponse$outboundSchema: z.ZodType<
226
- RemoveCouponResponse$Outbound,
227
- z.ZodTypeDef,
228
- RemoveCouponResponse
229
- > = z.union([
230
- z.lazy(() => RemoveCouponResponseBody$outboundSchema),
231
- components.Unauthorized$outboundSchema,
232
- components.BadRequest$outboundSchema,
233
- ]);
234
-
235
- /**
236
- * @internal
237
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
238
- */
239
- export namespace RemoveCouponResponse$ {
240
- /** @deprecated use `RemoveCouponResponse$inboundSchema` instead. */
241
- export const inboundSchema = RemoveCouponResponse$inboundSchema;
242
- /** @deprecated use `RemoveCouponResponse$outboundSchema` instead. */
243
- export const outboundSchema = RemoveCouponResponse$outboundSchema;
244
- /** @deprecated use `RemoveCouponResponse$Outbound` instead. */
245
- export type Outbound = RemoveCouponResponse$Outbound;
246
- }
247
-
248
- export function removeCouponResponseToJSON(
249
- removeCouponResponse: RemoveCouponResponse,
250
- ): string {
251
- return JSON.stringify(
252
- RemoveCouponResponse$outboundSchema.parse(removeCouponResponse),
253
- );
254
- }
255
-
256
- export function removeCouponResponseFromJSON(
257
- jsonString: string,
258
- ): SafeParseResult<RemoveCouponResponse, SDKValidationError> {
259
- return safeParse(
260
- jsonString,
261
- (x) => RemoveCouponResponse$inboundSchema.parse(JSON.parse(x)),
262
- `Failed to parse 'RemoveCouponResponse' from JSON`,
263
- );
264
- }
@@ -31,11 +31,6 @@ export type RemoveLoyaltyPointsResponseBody = {
31
31
  content: RemoveLoyaltyPointsContent;
32
32
  };
33
33
 
34
- export type RemoveLoyaltyPointsResponse =
35
- | RemoveLoyaltyPointsResponseBody
36
- | components.Unauthorized
37
- | components.BadRequest;
38
-
39
34
  /** @internal */
40
35
  export const RemoveLoyaltyPointsRequest$inboundSchema: z.ZodType<
41
36
  RemoveLoyaltyPointsRequest,
@@ -205,64 +200,3 @@ export function removeLoyaltyPointsResponseBodyFromJSON(
205
200
  `Failed to parse 'RemoveLoyaltyPointsResponseBody' from JSON`,
206
201
  );
207
202
  }
208
-
209
- /** @internal */
210
- export const RemoveLoyaltyPointsResponse$inboundSchema: z.ZodType<
211
- RemoveLoyaltyPointsResponse,
212
- z.ZodTypeDef,
213
- unknown
214
- > = z.union([
215
- z.lazy(() => RemoveLoyaltyPointsResponseBody$inboundSchema),
216
- components.Unauthorized$inboundSchema,
217
- components.BadRequest$inboundSchema,
218
- ]);
219
-
220
- /** @internal */
221
- export type RemoveLoyaltyPointsResponse$Outbound =
222
- | RemoveLoyaltyPointsResponseBody$Outbound
223
- | components.Unauthorized$Outbound
224
- | components.BadRequest$Outbound;
225
-
226
- /** @internal */
227
- export const RemoveLoyaltyPointsResponse$outboundSchema: z.ZodType<
228
- RemoveLoyaltyPointsResponse$Outbound,
229
- z.ZodTypeDef,
230
- RemoveLoyaltyPointsResponse
231
- > = z.union([
232
- z.lazy(() => RemoveLoyaltyPointsResponseBody$outboundSchema),
233
- components.Unauthorized$outboundSchema,
234
- components.BadRequest$outboundSchema,
235
- ]);
236
-
237
- /**
238
- * @internal
239
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
240
- */
241
- export namespace RemoveLoyaltyPointsResponse$ {
242
- /** @deprecated use `RemoveLoyaltyPointsResponse$inboundSchema` instead. */
243
- export const inboundSchema = RemoveLoyaltyPointsResponse$inboundSchema;
244
- /** @deprecated use `RemoveLoyaltyPointsResponse$outboundSchema` instead. */
245
- export const outboundSchema = RemoveLoyaltyPointsResponse$outboundSchema;
246
- /** @deprecated use `RemoveLoyaltyPointsResponse$Outbound` instead. */
247
- export type Outbound = RemoveLoyaltyPointsResponse$Outbound;
248
- }
249
-
250
- export function removeLoyaltyPointsResponseToJSON(
251
- removeLoyaltyPointsResponse: RemoveLoyaltyPointsResponse,
252
- ): string {
253
- return JSON.stringify(
254
- RemoveLoyaltyPointsResponse$outboundSchema.parse(
255
- removeLoyaltyPointsResponse,
256
- ),
257
- );
258
- }
259
-
260
- export function removeLoyaltyPointsResponseFromJSON(
261
- jsonString: string,
262
- ): SafeParseResult<RemoveLoyaltyPointsResponse, SDKValidationError> {
263
- return safeParse(
264
- jsonString,
265
- (x) => RemoveLoyaltyPointsResponse$inboundSchema.parse(JSON.parse(x)),
266
- `Failed to parse 'RemoveLoyaltyPointsResponse' from JSON`,
267
- );
268
- }
@@ -44,12 +44,6 @@ export type RetryOrderPaymentResponseBody = {
44
44
  content: RetryOrderPaymentContent;
45
45
  };
46
46
 
47
- export type RetryOrderPaymentResponse =
48
- | RetryOrderPaymentResponseBody
49
- | components.Unauthorized
50
- | components.NotFound
51
- | components.BadRequest;
52
-
53
47
  /** @internal */
54
48
  export const RetryOrderPaymentPaymentGatewayParams$inboundSchema: z.ZodType<
55
49
  RetryOrderPaymentPaymentGatewayParams,
@@ -477,65 +471,3 @@ export function retryOrderPaymentResponseBodyFromJSON(
477
471
  `Failed to parse 'RetryOrderPaymentResponseBody' from JSON`,
478
472
  );
479
473
  }
480
-
481
- /** @internal */
482
- export const RetryOrderPaymentResponse$inboundSchema: z.ZodType<
483
- RetryOrderPaymentResponse,
484
- z.ZodTypeDef,
485
- unknown
486
- > = z.union([
487
- z.lazy(() => RetryOrderPaymentResponseBody$inboundSchema),
488
- components.Unauthorized$inboundSchema,
489
- components.NotFound$inboundSchema,
490
- components.BadRequest$inboundSchema,
491
- ]);
492
-
493
- /** @internal */
494
- export type RetryOrderPaymentResponse$Outbound =
495
- | RetryOrderPaymentResponseBody$Outbound
496
- | components.Unauthorized$Outbound
497
- | components.NotFound$Outbound
498
- | components.BadRequest$Outbound;
499
-
500
- /** @internal */
501
- export const RetryOrderPaymentResponse$outboundSchema: z.ZodType<
502
- RetryOrderPaymentResponse$Outbound,
503
- z.ZodTypeDef,
504
- RetryOrderPaymentResponse
505
- > = z.union([
506
- z.lazy(() => RetryOrderPaymentResponseBody$outboundSchema),
507
- components.Unauthorized$outboundSchema,
508
- components.NotFound$outboundSchema,
509
- components.BadRequest$outboundSchema,
510
- ]);
511
-
512
- /**
513
- * @internal
514
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
515
- */
516
- export namespace RetryOrderPaymentResponse$ {
517
- /** @deprecated use `RetryOrderPaymentResponse$inboundSchema` instead. */
518
- export const inboundSchema = RetryOrderPaymentResponse$inboundSchema;
519
- /** @deprecated use `RetryOrderPaymentResponse$outboundSchema` instead. */
520
- export const outboundSchema = RetryOrderPaymentResponse$outboundSchema;
521
- /** @deprecated use `RetryOrderPaymentResponse$Outbound` instead. */
522
- export type Outbound = RetryOrderPaymentResponse$Outbound;
523
- }
524
-
525
- export function retryOrderPaymentResponseToJSON(
526
- retryOrderPaymentResponse: RetryOrderPaymentResponse,
527
- ): string {
528
- return JSON.stringify(
529
- RetryOrderPaymentResponse$outboundSchema.parse(retryOrderPaymentResponse),
530
- );
531
- }
532
-
533
- export function retryOrderPaymentResponseFromJSON(
534
- jsonString: string,
535
- ): SafeParseResult<RetryOrderPaymentResponse, SDKValidationError> {
536
- return safeParse(
537
- jsonString,
538
- (x) => RetryOrderPaymentResponse$inboundSchema.parse(JSON.parse(x)),
539
- `Failed to parse 'RetryOrderPaymentResponse' from JSON`,
540
- );
541
- }
@@ -33,10 +33,6 @@ export type SearchProductsResponseBody = {
33
33
  content: SearchProductsContent;
34
34
  };
35
35
 
36
- export type SearchProductsResponse =
37
- | SearchProductsResponseBody
38
- | components.Unauthorized;
39
-
40
36
  /** @internal */
41
37
  export const FacetStats$inboundSchema: z.ZodType<
42
38
  FacetStats,
@@ -222,59 +218,3 @@ export function searchProductsResponseBodyFromJSON(
222
218
  `Failed to parse 'SearchProductsResponseBody' from JSON`,
223
219
  );
224
220
  }
225
-
226
- /** @internal */
227
- export const SearchProductsResponse$inboundSchema: z.ZodType<
228
- SearchProductsResponse,
229
- z.ZodTypeDef,
230
- unknown
231
- > = z.union([
232
- z.lazy(() => SearchProductsResponseBody$inboundSchema),
233
- components.Unauthorized$inboundSchema,
234
- ]);
235
-
236
- /** @internal */
237
- export type SearchProductsResponse$Outbound =
238
- | SearchProductsResponseBody$Outbound
239
- | components.Unauthorized$Outbound;
240
-
241
- /** @internal */
242
- export const SearchProductsResponse$outboundSchema: z.ZodType<
243
- SearchProductsResponse$Outbound,
244
- z.ZodTypeDef,
245
- SearchProductsResponse
246
- > = z.union([
247
- z.lazy(() => SearchProductsResponseBody$outboundSchema),
248
- components.Unauthorized$outboundSchema,
249
- ]);
250
-
251
- /**
252
- * @internal
253
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
254
- */
255
- export namespace SearchProductsResponse$ {
256
- /** @deprecated use `SearchProductsResponse$inboundSchema` instead. */
257
- export const inboundSchema = SearchProductsResponse$inboundSchema;
258
- /** @deprecated use `SearchProductsResponse$outboundSchema` instead. */
259
- export const outboundSchema = SearchProductsResponse$outboundSchema;
260
- /** @deprecated use `SearchProductsResponse$Outbound` instead. */
261
- export type Outbound = SearchProductsResponse$Outbound;
262
- }
263
-
264
- export function searchProductsResponseToJSON(
265
- searchProductsResponse: SearchProductsResponse,
266
- ): string {
267
- return JSON.stringify(
268
- SearchProductsResponse$outboundSchema.parse(searchProductsResponse),
269
- );
270
- }
271
-
272
- export function searchProductsResponseFromJSON(
273
- jsonString: string,
274
- ): SafeParseResult<SearchProductsResponse, SDKValidationError> {
275
- return safeParse(
276
- jsonString,
277
- (x) => SearchProductsResponse$inboundSchema.parse(JSON.parse(x)),
278
- `Failed to parse 'SearchProductsResponse' from JSON`,
279
- );
280
- }
@@ -77,12 +77,6 @@ export type UpdateAddressDetailResponseBody = {
77
77
  content?: UpdateAddressDetailContent | undefined;
78
78
  };
79
79
 
80
- export type UpdateAddressDetailResponse =
81
- | UpdateAddressDetailResponseBody
82
- | components.Unauthorized
83
- | components.NotFound
84
- | components.BadRequest;
85
-
86
80
  /** @internal */
87
81
  export const UpdateAddressDetailRequestBody$inboundSchema: z.ZodType<
88
82
  UpdateAddressDetailRequestBody,
@@ -402,67 +396,3 @@ export function updateAddressDetailResponseBodyFromJSON(
402
396
  `Failed to parse 'UpdateAddressDetailResponseBody' from JSON`,
403
397
  );
404
398
  }
405
-
406
- /** @internal */
407
- export const UpdateAddressDetailResponse$inboundSchema: z.ZodType<
408
- UpdateAddressDetailResponse,
409
- z.ZodTypeDef,
410
- unknown
411
- > = z.union([
412
- z.lazy(() => UpdateAddressDetailResponseBody$inboundSchema),
413
- components.Unauthorized$inboundSchema,
414
- components.NotFound$inboundSchema,
415
- components.BadRequest$inboundSchema,
416
- ]);
417
-
418
- /** @internal */
419
- export type UpdateAddressDetailResponse$Outbound =
420
- | UpdateAddressDetailResponseBody$Outbound
421
- | components.Unauthorized$Outbound
422
- | components.NotFound$Outbound
423
- | components.BadRequest$Outbound;
424
-
425
- /** @internal */
426
- export const UpdateAddressDetailResponse$outboundSchema: z.ZodType<
427
- UpdateAddressDetailResponse$Outbound,
428
- z.ZodTypeDef,
429
- UpdateAddressDetailResponse
430
- > = z.union([
431
- z.lazy(() => UpdateAddressDetailResponseBody$outboundSchema),
432
- components.Unauthorized$outboundSchema,
433
- components.NotFound$outboundSchema,
434
- components.BadRequest$outboundSchema,
435
- ]);
436
-
437
- /**
438
- * @internal
439
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
440
- */
441
- export namespace UpdateAddressDetailResponse$ {
442
- /** @deprecated use `UpdateAddressDetailResponse$inboundSchema` instead. */
443
- export const inboundSchema = UpdateAddressDetailResponse$inboundSchema;
444
- /** @deprecated use `UpdateAddressDetailResponse$outboundSchema` instead. */
445
- export const outboundSchema = UpdateAddressDetailResponse$outboundSchema;
446
- /** @deprecated use `UpdateAddressDetailResponse$Outbound` instead. */
447
- export type Outbound = UpdateAddressDetailResponse$Outbound;
448
- }
449
-
450
- export function updateAddressDetailResponseToJSON(
451
- updateAddressDetailResponse: UpdateAddressDetailResponse,
452
- ): string {
453
- return JSON.stringify(
454
- UpdateAddressDetailResponse$outboundSchema.parse(
455
- updateAddressDetailResponse,
456
- ),
457
- );
458
- }
459
-
460
- export function updateAddressDetailResponseFromJSON(
461
- jsonString: string,
462
- ): SafeParseResult<UpdateAddressDetailResponse, SDKValidationError> {
463
- return safeParse(
464
- jsonString,
465
- (x) => UpdateAddressDetailResponse$inboundSchema.parse(JSON.parse(x)),
466
- `Failed to parse 'UpdateAddressDetailResponse' from JSON`,
467
- );
468
- }
@@ -33,12 +33,6 @@ export type UpdateCartResponseBody = {
33
33
  content: UpdateCartContent;
34
34
  };
35
35
 
36
- export type UpdateCartResponse =
37
- | UpdateCartResponseBody
38
- | components.Unauthorized
39
- | components.NotFound
40
- | components.BadRequest;
41
-
42
36
  /** @internal */
43
37
  export const UpdateCartRequest$inboundSchema: z.ZodType<
44
38
  UpdateCartRequest,
@@ -217,65 +211,3 @@ export function updateCartResponseBodyFromJSON(
217
211
  `Failed to parse 'UpdateCartResponseBody' from JSON`,
218
212
  );
219
213
  }
220
-
221
- /** @internal */
222
- export const UpdateCartResponse$inboundSchema: z.ZodType<
223
- UpdateCartResponse,
224
- z.ZodTypeDef,
225
- unknown
226
- > = z.union([
227
- z.lazy(() => UpdateCartResponseBody$inboundSchema),
228
- components.Unauthorized$inboundSchema,
229
- components.NotFound$inboundSchema,
230
- components.BadRequest$inboundSchema,
231
- ]);
232
-
233
- /** @internal */
234
- export type UpdateCartResponse$Outbound =
235
- | UpdateCartResponseBody$Outbound
236
- | components.Unauthorized$Outbound
237
- | components.NotFound$Outbound
238
- | components.BadRequest$Outbound;
239
-
240
- /** @internal */
241
- export const UpdateCartResponse$outboundSchema: z.ZodType<
242
- UpdateCartResponse$Outbound,
243
- z.ZodTypeDef,
244
- UpdateCartResponse
245
- > = z.union([
246
- z.lazy(() => UpdateCartResponseBody$outboundSchema),
247
- components.Unauthorized$outboundSchema,
248
- components.NotFound$outboundSchema,
249
- components.BadRequest$outboundSchema,
250
- ]);
251
-
252
- /**
253
- * @internal
254
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
255
- */
256
- export namespace UpdateCartResponse$ {
257
- /** @deprecated use `UpdateCartResponse$inboundSchema` instead. */
258
- export const inboundSchema = UpdateCartResponse$inboundSchema;
259
- /** @deprecated use `UpdateCartResponse$outboundSchema` instead. */
260
- export const outboundSchema = UpdateCartResponse$outboundSchema;
261
- /** @deprecated use `UpdateCartResponse$Outbound` instead. */
262
- export type Outbound = UpdateCartResponse$Outbound;
263
- }
264
-
265
- export function updateCartResponseToJSON(
266
- updateCartResponse: UpdateCartResponse,
267
- ): string {
268
- return JSON.stringify(
269
- UpdateCartResponse$outboundSchema.parse(updateCartResponse),
270
- );
271
- }
272
-
273
- export function updateCartResponseFromJSON(
274
- jsonString: string,
275
- ): SafeParseResult<UpdateCartResponse, SDKValidationError> {
276
- return safeParse(
277
- jsonString,
278
- (x) => UpdateCartResponse$inboundSchema.parse(JSON.parse(x)),
279
- `Failed to parse 'UpdateCartResponse' from JSON`,
280
- );
281
- }
@@ -43,12 +43,6 @@ export type UpdateShippingMethodResponseBody = {
43
43
  content: UpdateShippingMethodContent;
44
44
  };
45
45
 
46
- export type UpdateShippingMethodResponse =
47
- | UpdateShippingMethodResponseBody
48
- | components.Unauthorized
49
- | components.NotFound
50
- | components.BadRequest;
51
-
52
46
  /** @internal */
53
47
  export const RequestBodyRegisteredUser$inboundSchema: z.ZodType<
54
48
  RequestBodyRegisteredUser,
@@ -351,67 +345,3 @@ export function updateShippingMethodResponseBodyFromJSON(
351
345
  `Failed to parse 'UpdateShippingMethodResponseBody' from JSON`,
352
346
  );
353
347
  }
354
-
355
- /** @internal */
356
- export const UpdateShippingMethodResponse$inboundSchema: z.ZodType<
357
- UpdateShippingMethodResponse,
358
- z.ZodTypeDef,
359
- unknown
360
- > = z.union([
361
- z.lazy(() => UpdateShippingMethodResponseBody$inboundSchema),
362
- components.Unauthorized$inboundSchema,
363
- components.NotFound$inboundSchema,
364
- components.BadRequest$inboundSchema,
365
- ]);
366
-
367
- /** @internal */
368
- export type UpdateShippingMethodResponse$Outbound =
369
- | UpdateShippingMethodResponseBody$Outbound
370
- | components.Unauthorized$Outbound
371
- | components.NotFound$Outbound
372
- | components.BadRequest$Outbound;
373
-
374
- /** @internal */
375
- export const UpdateShippingMethodResponse$outboundSchema: z.ZodType<
376
- UpdateShippingMethodResponse$Outbound,
377
- z.ZodTypeDef,
378
- UpdateShippingMethodResponse
379
- > = z.union([
380
- z.lazy(() => UpdateShippingMethodResponseBody$outboundSchema),
381
- components.Unauthorized$outboundSchema,
382
- components.NotFound$outboundSchema,
383
- components.BadRequest$outboundSchema,
384
- ]);
385
-
386
- /**
387
- * @internal
388
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
389
- */
390
- export namespace UpdateShippingMethodResponse$ {
391
- /** @deprecated use `UpdateShippingMethodResponse$inboundSchema` instead. */
392
- export const inboundSchema = UpdateShippingMethodResponse$inboundSchema;
393
- /** @deprecated use `UpdateShippingMethodResponse$outboundSchema` instead. */
394
- export const outboundSchema = UpdateShippingMethodResponse$outboundSchema;
395
- /** @deprecated use `UpdateShippingMethodResponse$Outbound` instead. */
396
- export type Outbound = UpdateShippingMethodResponse$Outbound;
397
- }
398
-
399
- export function updateShippingMethodResponseToJSON(
400
- updateShippingMethodResponse: UpdateShippingMethodResponse,
401
- ): string {
402
- return JSON.stringify(
403
- UpdateShippingMethodResponse$outboundSchema.parse(
404
- updateShippingMethodResponse,
405
- ),
406
- );
407
- }
408
-
409
- export function updateShippingMethodResponseFromJSON(
410
- jsonString: string,
411
- ): SafeParseResult<UpdateShippingMethodResponse, SDKValidationError> {
412
- return safeParse(
413
- jsonString,
414
- (x) => UpdateShippingMethodResponse$inboundSchema.parse(JSON.parse(x)),
415
- `Failed to parse 'UpdateShippingMethodResponse' from JSON`,
416
- );
417
- }