ce-storefront 0.5.6 → 0.7.0

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 (478) hide show
  1. package/README.md +8 -35
  2. package/docs/sdks/auth/README.md +0 -14
  3. package/docs/sdks/campaigns/README.md +0 -1
  4. package/docs/sdks/carts/README.md +0 -9
  5. package/docs/sdks/catalog/README.md +0 -12
  6. package/docs/sdks/common/README.md +0 -1
  7. package/docs/sdks/customers/README.md +0 -6
  8. package/docs/sdks/orders/README.md +0 -7
  9. package/docs/sdks/shipping/README.md +0 -1
  10. package/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
  11. package/esm/funcs/authCheckVerificationStatus.js +1 -8
  12. package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
  13. package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
  14. package/esm/funcs/authCreateNotificationPreferences.js +1 -8
  15. package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
  16. package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
  17. package/esm/funcs/authGenerateOtp.js +1 -6
  18. package/esm/funcs/authGenerateOtp.js.map +1 -1
  19. package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
  20. package/esm/funcs/authGetAnonymousToken.js +1 -6
  21. package/esm/funcs/authGetAnonymousToken.js.map +1 -1
  22. package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
  23. package/esm/funcs/authGetNotificationPreferences.js +1 -8
  24. package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
  25. package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
  26. package/esm/funcs/authGetUserDetail.js +1 -6
  27. package/esm/funcs/authGetUserDetail.js.map +1 -1
  28. package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
  29. package/esm/funcs/authLoginWithEmail.js +1 -6
  30. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  31. package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
  32. package/esm/funcs/authLoginWithPhone.js +1 -6
  33. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  34. package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
  35. package/esm/funcs/authLoginWithWhatsapp.js +1 -6
  36. package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
  37. package/esm/funcs/authLogout.d.ts.map +1 -1
  38. package/esm/funcs/authLogout.js +1 -6
  39. package/esm/funcs/authLogout.js.map +1 -1
  40. package/esm/funcs/authRefreshToken.d.ts.map +1 -1
  41. package/esm/funcs/authRefreshToken.js +1 -6
  42. package/esm/funcs/authRefreshToken.js.map +1 -1
  43. package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
  44. package/esm/funcs/authUpdateNotificationPreferences.js +1 -8
  45. package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
  46. package/esm/funcs/authUpdateUser.d.ts.map +1 -1
  47. package/esm/funcs/authUpdateUser.js +1 -6
  48. package/esm/funcs/authUpdateUser.js.map +1 -1
  49. package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
  50. package/esm/funcs/authVerifyOtp.js +1 -6
  51. package/esm/funcs/authVerifyOtp.js.map +1 -1
  52. package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
  53. package/esm/funcs/campaignsSubscribeNewsletter.js +1 -8
  54. package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
  55. package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
  56. package/esm/funcs/cartsApplyCoupon.js +1 -6
  57. package/esm/funcs/cartsApplyCoupon.js.map +1 -1
  58. package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
  59. package/esm/funcs/cartsCreateCart.js +1 -6
  60. package/esm/funcs/cartsCreateCart.js.map +1 -1
  61. package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
  62. package/esm/funcs/cartsCreateCartAddress.js +1 -6
  63. package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
  64. package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
  65. package/esm/funcs/cartsDeleteCart.js +1 -6
  66. package/esm/funcs/cartsDeleteCart.js.map +1 -1
  67. package/esm/funcs/cartsGetCart.d.ts.map +1 -1
  68. package/esm/funcs/cartsGetCart.js +1 -6
  69. package/esm/funcs/cartsGetCart.js.map +1 -1
  70. package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
  71. package/esm/funcs/cartsGetUserCart.js +1 -6
  72. package/esm/funcs/cartsGetUserCart.js.map +1 -1
  73. package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
  74. package/esm/funcs/cartsRemoveCoupon.js +1 -6
  75. package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
  76. package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
  77. package/esm/funcs/cartsRemoveUserCart.js +1 -6
  78. package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
  79. package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
  80. package/esm/funcs/cartsUpdateCart.js +1 -6
  81. package/esm/funcs/cartsUpdateCart.js.map +1 -1
  82. package/esm/funcs/catalogCreateProductReview.d.ts.map +1 -1
  83. package/esm/funcs/catalogCreateProductReview.js +1 -8
  84. package/esm/funcs/catalogCreateProductReview.js.map +1 -1
  85. package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
  86. package/esm/funcs/catalogGetProductDetail.js +1 -6
  87. package/esm/funcs/catalogGetProductDetail.js.map +1 -1
  88. package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
  89. package/esm/funcs/catalogGetVariantDetail.js +1 -6
  90. package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
  91. package/esm/funcs/catalogListCategories.d.ts.map +1 -1
  92. package/esm/funcs/catalogListCategories.js +1 -6
  93. package/esm/funcs/catalogListCategories.js.map +1 -1
  94. package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
  95. package/esm/funcs/catalogListCrosssellProducts.js +1 -8
  96. package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
  97. package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
  98. package/esm/funcs/catalogListProductReviews.js +1 -6
  99. package/esm/funcs/catalogListProductReviews.js.map +1 -1
  100. package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
  101. package/esm/funcs/catalogListProductVariants.js +1 -8
  102. package/esm/funcs/catalogListProductVariants.js.map +1 -1
  103. package/esm/funcs/catalogListProducts.d.ts.map +1 -1
  104. package/esm/funcs/catalogListProducts.js +1 -6
  105. package/esm/funcs/catalogListProducts.js.map +1 -1
  106. package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
  107. package/esm/funcs/catalogListSimilarProducts.js +1 -8
  108. package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
  109. package/esm/funcs/catalogListSkus.d.ts.map +1 -1
  110. package/esm/funcs/catalogListSkus.js +1 -6
  111. package/esm/funcs/catalogListSkus.js.map +1 -1
  112. package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
  113. package/esm/funcs/catalogListUpsellProducts.js +1 -6
  114. package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
  115. package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
  116. package/esm/funcs/catalogSearchProducts.js +1 -6
  117. package/esm/funcs/catalogSearchProducts.js.map +1 -1
  118. package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
  119. package/esm/funcs/commonListCountryPincodes.js +1 -8
  120. package/esm/funcs/commonListCountryPincodes.js.map +1 -1
  121. package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
  122. package/esm/funcs/customersCreateAddress.js +1 -6
  123. package/esm/funcs/customersCreateAddress.js.map +1 -1
  124. package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
  125. package/esm/funcs/customersDeleteAddress.js +1 -6
  126. package/esm/funcs/customersDeleteAddress.js.map +1 -1
  127. package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
  128. package/esm/funcs/customersGetAddressDetail.js +1 -6
  129. package/esm/funcs/customersGetAddressDetail.js.map +1 -1
  130. package/esm/funcs/customersListAddresses.d.ts.map +1 -1
  131. package/esm/funcs/customersListAddresses.js +1 -6
  132. package/esm/funcs/customersListAddresses.js.map +1 -1
  133. package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
  134. package/esm/funcs/customersListUserReviews.js +1 -6
  135. package/esm/funcs/customersListUserReviews.js.map +1 -1
  136. package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
  137. package/esm/funcs/customersUpdateAddressDetail.js +1 -8
  138. package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
  139. package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
  140. package/esm/funcs/ordersCancelOrder.js +1 -6
  141. package/esm/funcs/ordersCancelOrder.js.map +1 -1
  142. package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
  143. package/esm/funcs/ordersCreateOrder.js +1 -6
  144. package/esm/funcs/ordersCreateOrder.js.map +1 -1
  145. package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
  146. package/esm/funcs/ordersGetOrderDetail.js +1 -6
  147. package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
  148. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
  149. package/esm/funcs/ordersGetPaymentStatus.js +1 -6
  150. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
  151. package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
  152. package/esm/funcs/ordersListOrderShipments.js +1 -6
  153. package/esm/funcs/ordersListOrderShipments.js.map +1 -1
  154. package/esm/funcs/ordersListOrders.d.ts.map +1 -1
  155. package/esm/funcs/ordersListOrders.js +1 -6
  156. package/esm/funcs/ordersListOrders.js.map +1 -1
  157. package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
  158. package/esm/funcs/ordersRetryOrderPayment.js +1 -6
  159. package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
  160. package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
  161. package/esm/funcs/shippingCheckDeliveryAvailability.js +1 -8
  162. package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
  163. package/esm/lib/config.d.ts +16 -5
  164. package/esm/lib/config.d.ts.map +1 -1
  165. package/esm/lib/config.js +24 -25
  166. package/esm/lib/config.js.map +1 -1
  167. package/esm/models/components/orderitem.js +1 -1
  168. package/esm/models/components/orderitem.js.map +1 -1
  169. package/esm/models/operations/applycoupon.d.ts +0 -1
  170. package/esm/models/operations/applycoupon.d.ts.map +1 -1
  171. package/esm/models/operations/applycoupon.js +0 -10
  172. package/esm/models/operations/applycoupon.js.map +1 -1
  173. package/esm/models/operations/cancelorder.d.ts +0 -1
  174. package/esm/models/operations/cancelorder.d.ts.map +1 -1
  175. package/esm/models/operations/cancelorder.js +0 -10
  176. package/esm/models/operations/cancelorder.js.map +1 -1
  177. package/esm/models/operations/checkdeliveryavailability.d.ts +0 -1
  178. package/esm/models/operations/checkdeliveryavailability.d.ts.map +1 -1
  179. package/esm/models/operations/checkdeliveryavailability.js +0 -10
  180. package/esm/models/operations/checkdeliveryavailability.js.map +1 -1
  181. package/esm/models/operations/checkverificationstatus.d.ts +0 -1
  182. package/esm/models/operations/checkverificationstatus.d.ts.map +1 -1
  183. package/esm/models/operations/checkverificationstatus.js +0 -10
  184. package/esm/models/operations/checkverificationstatus.js.map +1 -1
  185. package/esm/models/operations/createaddress.d.ts +0 -1
  186. package/esm/models/operations/createaddress.d.ts.map +1 -1
  187. package/esm/models/operations/createaddress.js +0 -10
  188. package/esm/models/operations/createaddress.js.map +1 -1
  189. package/esm/models/operations/createcart.d.ts +0 -1
  190. package/esm/models/operations/createcart.d.ts.map +1 -1
  191. package/esm/models/operations/createcart.js +0 -10
  192. package/esm/models/operations/createcart.js.map +1 -1
  193. package/esm/models/operations/createcartaddress.d.ts +0 -1
  194. package/esm/models/operations/createcartaddress.d.ts.map +1 -1
  195. package/esm/models/operations/createcartaddress.js +0 -10
  196. package/esm/models/operations/createcartaddress.js.map +1 -1
  197. package/esm/models/operations/createnotificationpreferences.d.ts +0 -1
  198. package/esm/models/operations/createnotificationpreferences.d.ts.map +1 -1
  199. package/esm/models/operations/createnotificationpreferences.js +0 -10
  200. package/esm/models/operations/createnotificationpreferences.js.map +1 -1
  201. package/esm/models/operations/createorder.d.ts +0 -1
  202. package/esm/models/operations/createorder.d.ts.map +1 -1
  203. package/esm/models/operations/createorder.js +0 -10
  204. package/esm/models/operations/createorder.js.map +1 -1
  205. package/esm/models/operations/createproductreview.d.ts +0 -1
  206. package/esm/models/operations/createproductreview.d.ts.map +1 -1
  207. package/esm/models/operations/createproductreview.js +0 -10
  208. package/esm/models/operations/createproductreview.js.map +1 -1
  209. package/esm/models/operations/deleteaddress.d.ts +0 -1
  210. package/esm/models/operations/deleteaddress.d.ts.map +1 -1
  211. package/esm/models/operations/deleteaddress.js +0 -10
  212. package/esm/models/operations/deleteaddress.js.map +1 -1
  213. package/esm/models/operations/deletecart.d.ts +0 -1
  214. package/esm/models/operations/deletecart.d.ts.map +1 -1
  215. package/esm/models/operations/deletecart.js +0 -10
  216. package/esm/models/operations/deletecart.js.map +1 -1
  217. package/esm/models/operations/deleteusercart.d.ts +0 -1
  218. package/esm/models/operations/deleteusercart.d.ts.map +1 -1
  219. package/esm/models/operations/deleteusercart.js +0 -10
  220. package/esm/models/operations/deleteusercart.js.map +1 -1
  221. package/esm/models/operations/generateotp.d.ts +0 -1
  222. package/esm/models/operations/generateotp.d.ts.map +1 -1
  223. package/esm/models/operations/generateotp.js +0 -10
  224. package/esm/models/operations/generateotp.js.map +1 -1
  225. package/esm/models/operations/getaddressdetail.d.ts +0 -1
  226. package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
  227. package/esm/models/operations/getaddressdetail.js +0 -10
  228. package/esm/models/operations/getaddressdetail.js.map +1 -1
  229. package/esm/models/operations/getanonymoustoken.d.ts +0 -1
  230. package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
  231. package/esm/models/operations/getanonymoustoken.js +0 -10
  232. package/esm/models/operations/getanonymoustoken.js.map +1 -1
  233. package/esm/models/operations/getcart.d.ts +0 -1
  234. package/esm/models/operations/getcart.d.ts.map +1 -1
  235. package/esm/models/operations/getcart.js +0 -10
  236. package/esm/models/operations/getcart.js.map +1 -1
  237. package/esm/models/operations/getnotificationpreferences.d.ts +0 -1
  238. package/esm/models/operations/getnotificationpreferences.d.ts.map +1 -1
  239. package/esm/models/operations/getnotificationpreferences.js +0 -10
  240. package/esm/models/operations/getnotificationpreferences.js.map +1 -1
  241. package/esm/models/operations/getorderdetail.d.ts +0 -1
  242. package/esm/models/operations/getorderdetail.d.ts.map +1 -1
  243. package/esm/models/operations/getorderdetail.js +0 -10
  244. package/esm/models/operations/getorderdetail.js.map +1 -1
  245. package/esm/models/operations/getpaymentstatus.d.ts +0 -1
  246. package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
  247. package/esm/models/operations/getpaymentstatus.js +0 -10
  248. package/esm/models/operations/getpaymentstatus.js.map +1 -1
  249. package/esm/models/operations/getproductdetail.d.ts +0 -1
  250. package/esm/models/operations/getproductdetail.d.ts.map +1 -1
  251. package/esm/models/operations/getproductdetail.js +0 -10
  252. package/esm/models/operations/getproductdetail.js.map +1 -1
  253. package/esm/models/operations/getusercart.d.ts +0 -1
  254. package/esm/models/operations/getusercart.d.ts.map +1 -1
  255. package/esm/models/operations/getusercart.js +0 -10
  256. package/esm/models/operations/getusercart.js.map +1 -1
  257. package/esm/models/operations/getuserdetail.d.ts +0 -1
  258. package/esm/models/operations/getuserdetail.d.ts.map +1 -1
  259. package/esm/models/operations/getuserdetail.js +0 -10
  260. package/esm/models/operations/getuserdetail.js.map +1 -1
  261. package/esm/models/operations/getvariantdetail.d.ts +0 -1
  262. package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
  263. package/esm/models/operations/getvariantdetail.js +0 -10
  264. package/esm/models/operations/getvariantdetail.js.map +1 -1
  265. package/esm/models/operations/listaddresses.d.ts +0 -1
  266. package/esm/models/operations/listaddresses.d.ts.map +1 -1
  267. package/esm/models/operations/listaddresses.js +0 -10
  268. package/esm/models/operations/listaddresses.js.map +1 -1
  269. package/esm/models/operations/listcategories.d.ts +0 -1
  270. package/esm/models/operations/listcategories.d.ts.map +1 -1
  271. package/esm/models/operations/listcategories.js +0 -10
  272. package/esm/models/operations/listcategories.js.map +1 -1
  273. package/esm/models/operations/listcountrypincodes.d.ts +0 -1
  274. package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
  275. package/esm/models/operations/listcountrypincodes.js +0 -10
  276. package/esm/models/operations/listcountrypincodes.js.map +1 -1
  277. package/esm/models/operations/listcrosssellproducts.d.ts +0 -1
  278. package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
  279. package/esm/models/operations/listcrosssellproducts.js +0 -10
  280. package/esm/models/operations/listcrosssellproducts.js.map +1 -1
  281. package/esm/models/operations/listorders.d.ts +0 -1
  282. package/esm/models/operations/listorders.d.ts.map +1 -1
  283. package/esm/models/operations/listorders.js +0 -10
  284. package/esm/models/operations/listorders.js.map +1 -1
  285. package/esm/models/operations/listordershipments.d.ts +0 -1
  286. package/esm/models/operations/listordershipments.d.ts.map +1 -1
  287. package/esm/models/operations/listordershipments.js +0 -10
  288. package/esm/models/operations/listordershipments.js.map +1 -1
  289. package/esm/models/operations/listproductreviews.d.ts +0 -1
  290. package/esm/models/operations/listproductreviews.d.ts.map +1 -1
  291. package/esm/models/operations/listproductreviews.js +0 -10
  292. package/esm/models/operations/listproductreviews.js.map +1 -1
  293. package/esm/models/operations/listproducts.d.ts +0 -1
  294. package/esm/models/operations/listproducts.d.ts.map +1 -1
  295. package/esm/models/operations/listproducts.js +0 -10
  296. package/esm/models/operations/listproducts.js.map +1 -1
  297. package/esm/models/operations/listproductvariants.d.ts +0 -1
  298. package/esm/models/operations/listproductvariants.d.ts.map +1 -1
  299. package/esm/models/operations/listproductvariants.js +0 -10
  300. package/esm/models/operations/listproductvariants.js.map +1 -1
  301. package/esm/models/operations/listsimilarproducts.d.ts +0 -1
  302. package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
  303. package/esm/models/operations/listsimilarproducts.js +0 -10
  304. package/esm/models/operations/listsimilarproducts.js.map +1 -1
  305. package/esm/models/operations/listskus.d.ts +0 -1
  306. package/esm/models/operations/listskus.d.ts.map +1 -1
  307. package/esm/models/operations/listskus.js +0 -10
  308. package/esm/models/operations/listskus.js.map +1 -1
  309. package/esm/models/operations/listupsellproducts.d.ts +0 -1
  310. package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
  311. package/esm/models/operations/listupsellproducts.js +0 -10
  312. package/esm/models/operations/listupsellproducts.js.map +1 -1
  313. package/esm/models/operations/listuserreviews.d.ts +0 -1
  314. package/esm/models/operations/listuserreviews.d.ts.map +1 -1
  315. package/esm/models/operations/listuserreviews.js +0 -10
  316. package/esm/models/operations/listuserreviews.js.map +1 -1
  317. package/esm/models/operations/loginwithemail.d.ts +0 -1
  318. package/esm/models/operations/loginwithemail.d.ts.map +1 -1
  319. package/esm/models/operations/loginwithemail.js +0 -10
  320. package/esm/models/operations/loginwithemail.js.map +1 -1
  321. package/esm/models/operations/loginwithphone.d.ts +0 -1
  322. package/esm/models/operations/loginwithphone.d.ts.map +1 -1
  323. package/esm/models/operations/loginwithphone.js +0 -10
  324. package/esm/models/operations/loginwithphone.js.map +1 -1
  325. package/esm/models/operations/loginwithwhatsapp.d.ts +0 -1
  326. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  327. package/esm/models/operations/loginwithwhatsapp.js +0 -10
  328. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  329. package/esm/models/operations/logout.d.ts +0 -1
  330. package/esm/models/operations/logout.d.ts.map +1 -1
  331. package/esm/models/operations/logout.js +0 -10
  332. package/esm/models/operations/logout.js.map +1 -1
  333. package/esm/models/operations/refreshtoken.d.ts +0 -1
  334. package/esm/models/operations/refreshtoken.d.ts.map +1 -1
  335. package/esm/models/operations/refreshtoken.js +0 -10
  336. package/esm/models/operations/refreshtoken.js.map +1 -1
  337. package/esm/models/operations/removecoupon.d.ts +0 -1
  338. package/esm/models/operations/removecoupon.d.ts.map +1 -1
  339. package/esm/models/operations/removecoupon.js +0 -10
  340. package/esm/models/operations/removecoupon.js.map +1 -1
  341. package/esm/models/operations/retryorderpayment.d.ts +0 -1
  342. package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
  343. package/esm/models/operations/retryorderpayment.js +0 -10
  344. package/esm/models/operations/retryorderpayment.js.map +1 -1
  345. package/esm/models/operations/searchproducts.d.ts +0 -1
  346. package/esm/models/operations/searchproducts.d.ts.map +1 -1
  347. package/esm/models/operations/searchproducts.js +0 -10
  348. package/esm/models/operations/searchproducts.js.map +1 -1
  349. package/esm/models/operations/subscribenewsletter.d.ts +0 -1
  350. package/esm/models/operations/subscribenewsletter.d.ts.map +1 -1
  351. package/esm/models/operations/subscribenewsletter.js +0 -10
  352. package/esm/models/operations/subscribenewsletter.js.map +1 -1
  353. package/esm/models/operations/updateaddressdetail.d.ts +0 -1
  354. package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
  355. package/esm/models/operations/updateaddressdetail.js +0 -10
  356. package/esm/models/operations/updateaddressdetail.js.map +1 -1
  357. package/esm/models/operations/updatecart.d.ts +0 -1
  358. package/esm/models/operations/updatecart.d.ts.map +1 -1
  359. package/esm/models/operations/updatecart.js +0 -10
  360. package/esm/models/operations/updatecart.js.map +1 -1
  361. package/esm/models/operations/updatenotificationpreferences.d.ts +0 -1
  362. package/esm/models/operations/updatenotificationpreferences.d.ts.map +1 -1
  363. package/esm/models/operations/updatenotificationpreferences.js +0 -10
  364. package/esm/models/operations/updatenotificationpreferences.js.map +1 -1
  365. package/esm/models/operations/updateuser.d.ts +0 -1
  366. package/esm/models/operations/updateuser.d.ts.map +1 -1
  367. package/esm/models/operations/updateuser.js +0 -10
  368. package/esm/models/operations/updateuser.js.map +1 -1
  369. package/esm/models/operations/verifyotp.d.ts +0 -1
  370. package/esm/models/operations/verifyotp.d.ts.map +1 -1
  371. package/esm/models/operations/verifyotp.js +0 -10
  372. package/esm/models/operations/verifyotp.js.map +1 -1
  373. package/jsr.json +1 -1
  374. package/package.json +1 -1
  375. package/src/funcs/authCheckVerificationStatus.ts +1 -9
  376. package/src/funcs/authCreateNotificationPreferences.ts +1 -9
  377. package/src/funcs/authGenerateOtp.ts +1 -7
  378. package/src/funcs/authGetAnonymousToken.ts +1 -7
  379. package/src/funcs/authGetNotificationPreferences.ts +1 -9
  380. package/src/funcs/authGetUserDetail.ts +1 -7
  381. package/src/funcs/authLoginWithEmail.ts +1 -7
  382. package/src/funcs/authLoginWithPhone.ts +1 -7
  383. package/src/funcs/authLoginWithWhatsapp.ts +1 -7
  384. package/src/funcs/authLogout.ts +1 -7
  385. package/src/funcs/authRefreshToken.ts +1 -7
  386. package/src/funcs/authUpdateNotificationPreferences.ts +1 -9
  387. package/src/funcs/authUpdateUser.ts +1 -7
  388. package/src/funcs/authVerifyOtp.ts +1 -7
  389. package/src/funcs/campaignsSubscribeNewsletter.ts +1 -9
  390. package/src/funcs/cartsApplyCoupon.ts +1 -7
  391. package/src/funcs/cartsCreateCart.ts +1 -7
  392. package/src/funcs/cartsCreateCartAddress.ts +1 -7
  393. package/src/funcs/cartsDeleteCart.ts +1 -7
  394. package/src/funcs/cartsGetCart.ts +1 -7
  395. package/src/funcs/cartsGetUserCart.ts +1 -7
  396. package/src/funcs/cartsRemoveCoupon.ts +1 -7
  397. package/src/funcs/cartsRemoveUserCart.ts +1 -7
  398. package/src/funcs/cartsUpdateCart.ts +1 -7
  399. package/src/funcs/catalogCreateProductReview.ts +1 -9
  400. package/src/funcs/catalogGetProductDetail.ts +1 -7
  401. package/src/funcs/catalogGetVariantDetail.ts +1 -7
  402. package/src/funcs/catalogListCategories.ts +1 -7
  403. package/src/funcs/catalogListCrosssellProducts.ts +1 -9
  404. package/src/funcs/catalogListProductReviews.ts +1 -9
  405. package/src/funcs/catalogListProductVariants.ts +1 -9
  406. package/src/funcs/catalogListProducts.ts +1 -7
  407. package/src/funcs/catalogListSimilarProducts.ts +1 -9
  408. package/src/funcs/catalogListSkus.ts +1 -7
  409. package/src/funcs/catalogListUpsellProducts.ts +1 -9
  410. package/src/funcs/catalogSearchProducts.ts +1 -7
  411. package/src/funcs/commonListCountryPincodes.ts +1 -9
  412. package/src/funcs/customersCreateAddress.ts +1 -7
  413. package/src/funcs/customersDeleteAddress.ts +1 -7
  414. package/src/funcs/customersGetAddressDetail.ts +1 -7
  415. package/src/funcs/customersListAddresses.ts +1 -7
  416. package/src/funcs/customersListUserReviews.ts +1 -7
  417. package/src/funcs/customersUpdateAddressDetail.ts +1 -9
  418. package/src/funcs/ordersCancelOrder.ts +1 -7
  419. package/src/funcs/ordersCreateOrder.ts +1 -7
  420. package/src/funcs/ordersGetOrderDetail.ts +1 -7
  421. package/src/funcs/ordersGetPaymentStatus.ts +1 -7
  422. package/src/funcs/ordersListOrderShipments.ts +1 -9
  423. package/src/funcs/ordersListOrders.ts +1 -7
  424. package/src/funcs/ordersRetryOrderPayment.ts +1 -7
  425. package/src/funcs/shippingCheckDeliveryAvailability.ts +1 -9
  426. package/src/lib/config.ts +28 -26
  427. package/src/models/components/orderitem.ts +1 -1
  428. package/src/models/operations/applycoupon.ts +0 -11
  429. package/src/models/operations/cancelorder.ts +0 -11
  430. package/src/models/operations/checkdeliveryavailability.ts +0 -11
  431. package/src/models/operations/checkverificationstatus.ts +0 -11
  432. package/src/models/operations/createaddress.ts +0 -11
  433. package/src/models/operations/createcart.ts +0 -11
  434. package/src/models/operations/createcartaddress.ts +0 -11
  435. package/src/models/operations/createnotificationpreferences.ts +0 -11
  436. package/src/models/operations/createorder.ts +0 -11
  437. package/src/models/operations/createproductreview.ts +0 -11
  438. package/src/models/operations/deleteaddress.ts +0 -11
  439. package/src/models/operations/deletecart.ts +0 -11
  440. package/src/models/operations/deleteusercart.ts +0 -11
  441. package/src/models/operations/generateotp.ts +0 -11
  442. package/src/models/operations/getaddressdetail.ts +0 -11
  443. package/src/models/operations/getanonymoustoken.ts +0 -11
  444. package/src/models/operations/getcart.ts +0 -11
  445. package/src/models/operations/getnotificationpreferences.ts +0 -11
  446. package/src/models/operations/getorderdetail.ts +0 -11
  447. package/src/models/operations/getpaymentstatus.ts +0 -11
  448. package/src/models/operations/getproductdetail.ts +0 -11
  449. package/src/models/operations/getusercart.ts +0 -11
  450. package/src/models/operations/getuserdetail.ts +0 -11
  451. package/src/models/operations/getvariantdetail.ts +0 -11
  452. package/src/models/operations/listaddresses.ts +0 -11
  453. package/src/models/operations/listcategories.ts +0 -11
  454. package/src/models/operations/listcountrypincodes.ts +0 -11
  455. package/src/models/operations/listcrosssellproducts.ts +0 -11
  456. package/src/models/operations/listorders.ts +0 -11
  457. package/src/models/operations/listordershipments.ts +0 -11
  458. package/src/models/operations/listproductreviews.ts +0 -11
  459. package/src/models/operations/listproducts.ts +0 -11
  460. package/src/models/operations/listproductvariants.ts +0 -11
  461. package/src/models/operations/listsimilarproducts.ts +0 -11
  462. package/src/models/operations/listskus.ts +0 -11
  463. package/src/models/operations/listupsellproducts.ts +0 -11
  464. package/src/models/operations/listuserreviews.ts +0 -11
  465. package/src/models/operations/loginwithemail.ts +0 -11
  466. package/src/models/operations/loginwithphone.ts +0 -11
  467. package/src/models/operations/loginwithwhatsapp.ts +0 -11
  468. package/src/models/operations/logout.ts +0 -11
  469. package/src/models/operations/refreshtoken.ts +0 -11
  470. package/src/models/operations/removecoupon.ts +0 -11
  471. package/src/models/operations/retryorderpayment.ts +0 -11
  472. package/src/models/operations/searchproducts.ts +0 -11
  473. package/src/models/operations/subscribenewsletter.ts +0 -11
  474. package/src/models/operations/updateaddressdetail.ts +0 -11
  475. package/src/models/operations/updatecart.ts +0 -11
  476. package/src/models/operations/updatenotificationpreferences.ts +0 -11
  477. package/src/models/operations/updateuser.ts +0 -11
  478. package/src/models/operations/verifyotp.ts +0 -11
@@ -21,7 +21,6 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
- import { UpdateAddressDetailServerList } from "../models/operations/updateaddressdetail.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
27
26
  /**
@@ -61,13 +60,6 @@ export async function customersUpdateAddressDetail(
61
60
  const payload = parsed.value;
62
61
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
63
62
 
64
- const baseURL = options?.serverURL
65
- || pathToFunc(UpdateAddressDetailServerList[0], {
66
- charEncoding: "percent",
67
- })({
68
- store_id: "x2yh61zw4k",
69
- });
70
-
71
63
  const pathParams = {
72
64
  address_id: encodeSimple("address_id", payload.address_id, {
73
65
  explode: false,
@@ -108,7 +100,7 @@ export async function customersUpdateAddressDetail(
108
100
  const requestRes = client._createRequest(context, {
109
101
  security: requestSecurity,
110
102
  method: "PUT",
111
- baseURL: baseURL,
103
+ baseURL: options?.serverURL,
112
104
  path: path,
113
105
  headers: headers,
114
106
  body: body,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import { CancelOrderServerList } from "../models/operations/cancelorder.js";
24
23
  import * as operations from "../models/operations/index.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
@@ -59,11 +58,6 @@ export async function ordersCancelOrder(
59
58
  const payload = parsed.value;
60
59
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
61
60
 
62
- const baseURL = options?.serverURL
63
- || pathToFunc(CancelOrderServerList[0], { charEncoding: "percent" })({
64
- store_id: "x2yh61zw4k",
65
- });
66
-
67
61
  const pathParams = {
68
62
  order_number: encodeSimple("order_number", payload.order_number, {
69
63
  explode: false,
@@ -98,7 +92,7 @@ export async function ordersCancelOrder(
98
92
  const requestRes = client._createRequest(context, {
99
93
  security: requestSecurity,
100
94
  method: "POST",
101
- baseURL: baseURL,
95
+ baseURL: options?.serverURL,
102
96
  path: path,
103
97
  headers: headers,
104
98
  body: body,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import { CreateOrderServerList } from "../models/operations/createorder.js";
24
23
  import * as operations from "../models/operations/index.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
@@ -60,11 +59,6 @@ export async function ordersCreateOrder(
60
59
  const payload = parsed.value;
61
60
  const body = encodeJSON("body", payload, { explode: true });
62
61
 
63
- const baseURL = options?.serverURL
64
- || pathToFunc(CreateOrderServerList[0], { charEncoding: "percent" })({
65
- store_id: "x2yh61zw4k",
66
- });
67
-
68
62
  const path = pathToFunc("/orders")();
69
63
 
70
64
  const headers = new Headers(compactMap({
@@ -92,7 +86,7 @@ export async function ordersCreateOrder(
92
86
  const requestRes = client._createRequest(context, {
93
87
  security: requestSecurity,
94
88
  method: "POST",
95
- baseURL: baseURL,
89
+ baseURL: options?.serverURL,
96
90
  path: path,
97
91
  headers: headers,
98
92
  body: body,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import { GetOrderDetailServerList } from "../models/operations/getorderdetail.js";
24
23
  import * as operations from "../models/operations/index.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
@@ -59,11 +58,6 @@ export async function ordersGetOrderDetail(
59
58
  const payload = parsed.value;
60
59
  const body = null;
61
60
 
62
- const baseURL = options?.serverURL
63
- || pathToFunc(GetOrderDetailServerList[0], { charEncoding: "percent" })({
64
- store_id: "x2yh61zw4k",
65
- });
66
-
67
61
  const pathParams = {
68
62
  order_number: encodeSimple("order_number", payload.order_number, {
69
63
  explode: false,
@@ -97,7 +91,7 @@ export async function ordersGetOrderDetail(
97
91
  const requestRes = client._createRequest(context, {
98
92
  security: requestSecurity,
99
93
  method: "GET",
100
- baseURL: baseURL,
94
+ baseURL: options?.serverURL,
101
95
  path: path,
102
96
  headers: headers,
103
97
  body: body,
@@ -19,7 +19,6 @@ import {
19
19
  UnexpectedClientError,
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
- import { GetPaymentStatusServerList } from "../models/operations/getpaymentstatus.js";
23
22
  import * as operations from "../models/operations/index.js";
24
23
  import { Result } from "../types/fp.js";
25
24
 
@@ -56,11 +55,6 @@ export async function ordersGetPaymentStatus(
56
55
  const payload = parsed.value;
57
56
  const body = null;
58
57
 
59
- const baseURL = options?.serverURL
60
- || pathToFunc(GetPaymentStatusServerList[0], { charEncoding: "percent" })({
61
- store_id: "x2yh61zw4k",
62
- });
63
-
64
58
  const pathParams = {
65
59
  order_number: encodeSimple("order_number", payload.order_number, {
66
60
  explode: false,
@@ -94,7 +88,7 @@ export async function ordersGetPaymentStatus(
94
88
  const requestRes = client._createRequest(context, {
95
89
  security: requestSecurity,
96
90
  method: "GET",
97
- baseURL: baseURL,
91
+ baseURL: options?.serverURL,
98
92
  path: path,
99
93
  headers: headers,
100
94
  body: body,
@@ -21,7 +21,6 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
- import { ListOrderShipmentsServerList } from "../models/operations/listordershipments.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
27
26
  /**
@@ -59,13 +58,6 @@ export async function ordersListOrderShipments(
59
58
  const payload = parsed.value;
60
59
  const body = null;
61
60
 
62
- const baseURL = options?.serverURL
63
- || pathToFunc(ListOrderShipmentsServerList[0], { charEncoding: "percent" })(
64
- {
65
- store_id: "x2yh61zw4k",
66
- },
67
- );
68
-
69
61
  const pathParams = {
70
62
  order_number: encodeSimple("order_number", payload.order_number, {
71
63
  explode: false,
@@ -99,7 +91,7 @@ export async function ordersListOrderShipments(
99
91
  const requestRes = client._createRequest(context, {
100
92
  security: requestSecurity,
101
93
  method: "GET",
102
- baseURL: baseURL,
94
+ baseURL: options?.serverURL,
103
95
  path: path,
104
96
  headers: headers,
105
97
  body: body,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
22
  import * as operations from "../models/operations/index.js";
23
- import { ListOrdersServerList } from "../models/operations/listorders.js";
24
23
  import { Result } from "../types/fp.js";
25
24
 
26
25
  /**
@@ -56,11 +55,6 @@ export async function ordersListOrders(
56
55
  const payload = parsed.value;
57
56
  const body = null;
58
57
 
59
- const baseURL = options?.serverURL
60
- || pathToFunc(ListOrdersServerList[0], { charEncoding: "percent" })({
61
- store_id: "x2yh61zw4k",
62
- });
63
-
64
58
  const path = pathToFunc("/orders")();
65
59
 
66
60
  const query = encodeFormQuery({
@@ -95,7 +89,7 @@ export async function ordersListOrders(
95
89
  const requestRes = client._createRequest(context, {
96
90
  security: requestSecurity,
97
91
  method: "GET",
98
- baseURL: baseURL,
92
+ baseURL: options?.serverURL,
99
93
  path: path,
100
94
  headers: headers,
101
95
  query: query,
@@ -21,7 +21,6 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
- import { RetryOrderPaymentServerList } from "../models/operations/retryorderpayment.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
27
26
  /**
@@ -60,11 +59,6 @@ export async function ordersRetryOrderPayment(
60
59
  const payload = parsed.value;
61
60
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
62
61
 
63
- const baseURL = options?.serverURL
64
- || pathToFunc(RetryOrderPaymentServerList[0], { charEncoding: "percent" })({
65
- store_id: "x2yh61zw4k",
66
- });
67
-
68
62
  const pathParams = {
69
63
  order_number: encodeSimple("order_number", payload.order_number, {
70
64
  explode: false,
@@ -99,7 +93,7 @@ export async function ordersRetryOrderPayment(
99
93
  const requestRes = client._createRequest(context, {
100
94
  security: requestSecurity,
101
95
  method: "POST",
102
- baseURL: baseURL,
96
+ baseURL: options?.serverURL,
103
97
  path: path,
104
98
  headers: headers,
105
99
  body: body,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import { CheckDeliveryAvailabilityServerList } from "../models/operations/checkdeliveryavailability.js";
24
23
  import * as operations from "../models/operations/index.js";
25
24
  import { Result } from "../types/fp.js";
26
25
 
@@ -59,13 +58,6 @@ export async function shippingCheckDeliveryAvailability(
59
58
  const payload = parsed.value;
60
59
  const body = null;
61
60
 
62
- const baseURL = options?.serverURL
63
- || pathToFunc(CheckDeliveryAvailabilityServerList[0], {
64
- charEncoding: "percent",
65
- })({
66
- store_id: "x2yh61zw4k",
67
- });
68
-
69
61
  const pathParams = {
70
62
  pincode: encodeSimple("pincode", payload.pincode, {
71
63
  explode: false,
@@ -101,7 +93,7 @@ export async function shippingCheckDeliveryAvailability(
101
93
  const requestRes = client._createRequest(context, {
102
94
  security: requestSecurity,
103
95
  method: "GET",
104
- baseURL: baseURL,
96
+ baseURL: options?.serverURL,
105
97
  path: path,
106
98
  headers: headers,
107
99
  body: body,
package/src/lib/config.ts CHANGED
@@ -7,19 +7,23 @@ import { Logger } from "./logger.js";
7
7
  import { RetryConfig } from "./retries.js";
8
8
  import { Params, pathToFunc } from "./url.js";
9
9
 
10
+ /**
11
+ * Staging Server
12
+ */
13
+ export const ServerStaging = "staging";
14
+ /**
15
+ * Prod Server
16
+ */
17
+ export const ServerProd = "prod";
10
18
  /**
11
19
  * Contains the list of servers available to the SDK
12
20
  */
13
- export const ServerList = [
14
- /**
15
- * Staging Server
16
- */
17
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
18
- /**
19
- * Prod Server
20
- */
21
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
22
- ] as const;
21
+ export const ServerList = {
22
+ [ServerStaging]:
23
+ "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
24
+ [ServerProd]:
25
+ "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
26
+ } as const;
23
27
 
24
28
  export type SDKOptions = {
25
29
  authorization?: string | (() => Promise<string>);
@@ -28,7 +32,7 @@ export type SDKOptions = {
28
32
  /**
29
33
  * Allows overriding the default server used by the SDK
30
34
  */
31
- serverIdx?: number;
35
+ server?: keyof typeof ServerList;
32
36
  /**
33
37
  * Sets the store_id variable for url substitution
34
38
  */
@@ -48,23 +52,21 @@ export type SDKOptions = {
48
52
  export function serverURLFromOptions(options: SDKOptions): URL | null {
49
53
  let serverURL = options.serverURL;
50
54
 
51
- const serverParams: Params[] = [
52
- {
53
- "store_id": options.storeId ?? "x2yh61zw4k",
55
+ const serverParams: Record<string, Params> = {
56
+ "staging": {
57
+ "store_id": options.storeId ?? "store_id",
54
58
  },
55
- {
56
- "store_id": options.storeId ?? "x2yh61zw4k",
59
+ "prod": {
60
+ "store_id": options.storeId ?? "store_id",
57
61
  },
58
- ];
62
+ };
63
+
59
64
  let params: Params = {};
60
65
 
61
66
  if (!serverURL) {
62
- const serverIdx = options.serverIdx ?? 0;
63
- if (serverIdx < 0 || serverIdx >= ServerList.length) {
64
- throw new Error(`Invalid server index ${serverIdx}`);
65
- }
66
- serverURL = ServerList[serverIdx] || "";
67
- params = serverParams[serverIdx] || {};
67
+ const server = options.server ?? ServerStaging;
68
+ serverURL = ServerList[server] || "";
69
+ params = serverParams[server] || {};
68
70
  }
69
71
 
70
72
  const u = pathToFunc(serverURL)(params);
@@ -74,7 +76,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
74
76
  export const SDK_METADATA = {
75
77
  language: "typescript",
76
78
  openapiDocVersion: "1.0",
77
- sdkVersion: "0.5.6",
78
- genVersion: "2.503.2",
79
- userAgent: "speakeasy-sdk/typescript 0.5.6 2.503.2 1.0 ce-storefront",
79
+ sdkVersion: "0.7.0",
80
+ genVersion: "2.506.0",
81
+ userAgent: "speakeasy-sdk/typescript 0.7.0 2.506.0 1.0 ce-storefront",
80
82
  } as const;
@@ -55,7 +55,7 @@ export const OrderItem$inboundSchema: z.ZodType<
55
55
  listing_price: z.number().optional(),
56
56
  promotion_discount_amount: z.number().optional(),
57
57
  coupon_discount_amount: z.number().optional(),
58
- tax_type: z.literal("GST").optional(),
58
+ tax_type: z.literal("GST").default("GST"),
59
59
  tax_rate: z.number().optional(),
60
60
  tax_amount: z.number().optional(),
61
61
  shipping_additional_cost: z.number().optional(),
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const ApplyCouponServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  export type ApplyCouponRequestBody = {
24
13
  couponCode: string;
25
14
  };
@@ -10,17 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- export const CancelOrderServerList = [
14
- /**
15
- * Staging Server
16
- */
17
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
18
- /**
19
- * Prod Server
20
- */
21
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
22
- ] as const;
23
-
24
13
  export const RefundMode = {
25
14
  OriginalPaymentMode: "original_payment_mode",
26
15
  BankTransfer: "bank_transfer",
@@ -7,17 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export const CheckDeliveryAvailabilityServerList = [
11
- /**
12
- * Staging Server
13
- */
14
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
15
- /**
16
- * Prod Server
17
- */
18
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
19
- ] as const;
20
-
21
10
  export type CheckDeliveryAvailabilityRequest = {
22
11
  /**
23
12
  * delivery location pincode
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const CheckVerificationStatusServerList = [
12
- /**
13
- * Staging Server
14
- */
15
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
16
- /**
17
- * Prod Server
18
- */
19
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
20
- ] as const;
21
-
22
11
  export type CheckVerificationStatusRequestBody = {
23
12
  /**
24
13
  * A string representing the phone number.
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const CreateAddressServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  /**
24
13
  * payload for new address
25
14
  */
@@ -8,17 +8,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import * as components from "../components/index.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const CreateCartServerList = [
12
- /**
13
- * Staging Server
14
- */
15
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
16
- /**
17
- * Prod Server
18
- */
19
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
20
- ] as const;
21
-
22
11
  export type CreateCartRequestBody = {
23
12
  items: Array<components.UpdateCartItem>;
24
13
  };
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const CreateCartAddressServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  /**
24
13
  * For guest checkout where address is not saved
25
14
  */
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const CreateNotificationPreferencesServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  export type CreateNotificationPreferencesRequestBody = {
24
13
  /**
25
14
  * Set channel preferences for each type of
@@ -10,17 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- export const CreateOrderServerList = [
14
- /**
15
- * Staging Server
16
- */
17
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
18
- /**
19
- * Prod Server
20
- */
21
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
22
- ] as const;
23
-
24
13
  export const PaymentGateway = {
25
14
  Payu: "PAYU",
26
15
  Juspay: "JUSPAY",
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const CreateProductReviewServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  export type CreateProductReviewRequest = {
24
13
  /**
25
14
  * id of a particular product
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const DeleteAddressServerList = [
12
- /**
13
- * Staging Server
14
- */
15
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
16
- /**
17
- * Prod Server
18
- */
19
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
20
- ] as const;
21
-
22
11
  export type DeleteAddressRequest = {
23
12
  /**
24
13
  * user id
@@ -7,17 +7,6 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export const DeleteCartServerList = [
11
- /**
12
- * Staging Server
13
- */
14
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
15
- /**
16
- * Prod Server
17
- */
18
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
19
- ] as const;
20
-
21
10
  export type DeleteCartRequest = {
22
11
  /**
23
12
  * Cart ID
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const DeleteUserCartServerList = [
12
- /**
13
- * Staging Server
14
- */
15
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
16
- /**
17
- * Prod Server
18
- */
19
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
20
- ] as const;
21
-
22
11
  export type DeleteUserCartRequest = {
23
12
  /**
24
13
  * User ID
@@ -9,17 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const GenerateOtpServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  /**
24
13
  * The communication channel for sending the OTP.
25
14
  */
@@ -8,17 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const GetAddressDetailServerList = [
12
- /**
13
- * Staging Server
14
- */
15
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
16
- /**
17
- * Prod Server
18
- */
19
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
20
- ] as const;
21
-
22
11
  export type GetAddressDetailRequest = {
23
12
  /**
24
13
  * user id
@@ -9,17 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const GetAnonymousTokenServerList = [
13
- /**
14
- * Staging Server
15
- */
16
- "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
17
- /**
18
- * Prod Server
19
- */
20
- "https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
21
- ] as const;
22
-
23
12
  export type GetAnonymousTokenSecurity = {
24
13
  xApiKey: string;
25
14
  };