ce-storefront 0.16.1 → 0.16.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 (389) hide show
  1. package/docs/sdks/auth/README.md +10 -10
  2. package/docs/sdks/carts/README.md +17 -15
  3. package/docs/sdks/catalog/README.md +11 -11
  4. package/docs/sdks/common/README.md +1 -1
  5. package/docs/sdks/customers/README.md +7 -7
  6. package/docs/sdks/orders/README.md +7 -7
  7. package/docs/sdks/shipping/README.md +3 -3
  8. package/esm/funcs/authGenerateOtp.d.ts +1 -1
  9. package/esm/funcs/authGenerateOtp.js +1 -1
  10. package/esm/funcs/authGetAnonymousToken.d.ts +1 -1
  11. package/esm/funcs/authGetAnonymousToken.js +1 -1
  12. package/esm/funcs/authGetUserDetail.d.ts +1 -1
  13. package/esm/funcs/authGetUserDetail.js +1 -1
  14. package/esm/funcs/authLoginWithEmail.d.ts +1 -1
  15. package/esm/funcs/authLoginWithEmail.js +1 -1
  16. package/esm/funcs/authLoginWithPhone.d.ts +1 -1
  17. package/esm/funcs/authLoginWithPhone.js +1 -1
  18. package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
  19. package/esm/funcs/authLoginWithWhatsapp.js +1 -1
  20. package/esm/funcs/authLogout.d.ts +1 -1
  21. package/esm/funcs/authLogout.js +1 -1
  22. package/esm/funcs/authRefreshToken.d.ts +1 -1
  23. package/esm/funcs/authRefreshToken.js +1 -1
  24. package/esm/funcs/authUpdateUser.d.ts +1 -1
  25. package/esm/funcs/authUpdateUser.js +1 -1
  26. package/esm/funcs/authVerifyOtp.d.ts +1 -1
  27. package/esm/funcs/authVerifyOtp.js +1 -1
  28. package/esm/funcs/cartsAddShippingMethod.d.ts +1 -1
  29. package/esm/funcs/cartsAddShippingMethod.js +1 -1
  30. package/esm/funcs/cartsApplyCoupon.d.ts +1 -1
  31. package/esm/funcs/cartsApplyCoupon.js +1 -1
  32. package/esm/funcs/cartsCreateCart.d.ts +1 -1
  33. package/esm/funcs/cartsCreateCart.js +1 -1
  34. package/esm/funcs/cartsCreateCartAddress.d.ts +1 -1
  35. package/esm/funcs/cartsCreateCartAddress.js +1 -1
  36. package/esm/funcs/cartsDeleteCart.d.ts +1 -1
  37. package/esm/funcs/cartsDeleteCart.js +1 -1
  38. package/esm/funcs/cartsGetCart.d.ts +1 -1
  39. package/esm/funcs/cartsGetCart.js +1 -1
  40. package/esm/funcs/cartsGetUserCart.d.ts +1 -1
  41. package/esm/funcs/cartsGetUserCart.js +1 -1
  42. package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +1 -1
  43. package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
  44. package/esm/funcs/cartsRemoveCoupon.d.ts +1 -1
  45. package/esm/funcs/cartsRemoveCoupon.js +1 -1
  46. package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +1 -1
  47. package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
  48. package/esm/funcs/cartsRemoveUserCart.d.ts +1 -1
  49. package/esm/funcs/cartsRemoveUserCart.js +1 -1
  50. package/esm/funcs/cartsUpdateCart.d.ts +1 -1
  51. package/esm/funcs/cartsUpdateCart.js +1 -1
  52. package/esm/funcs/cartsUpdateFulfillmentPreference.d.ts +1 -1
  53. package/esm/funcs/cartsUpdateFulfillmentPreference.js +4 -2
  54. package/esm/funcs/cartsUpdateFulfillmentPreference.js.map +1 -1
  55. package/esm/funcs/catalogGetProductDetail.d.ts +1 -1
  56. package/esm/funcs/catalogGetProductDetail.js +1 -1
  57. package/esm/funcs/catalogGetVariantDetail.d.ts +1 -1
  58. package/esm/funcs/catalogGetVariantDetail.js +1 -1
  59. package/esm/funcs/catalogListCategories.d.ts +1 -1
  60. package/esm/funcs/catalogListCategories.js +1 -1
  61. package/esm/funcs/catalogListCrosssellProducts.d.ts +1 -1
  62. package/esm/funcs/catalogListCrosssellProducts.js +1 -1
  63. package/esm/funcs/catalogListProductReviews.d.ts +1 -1
  64. package/esm/funcs/catalogListProductReviews.js +1 -1
  65. package/esm/funcs/catalogListProductVariants.d.ts +1 -1
  66. package/esm/funcs/catalogListProductVariants.js +1 -1
  67. package/esm/funcs/catalogListProducts.d.ts +1 -1
  68. package/esm/funcs/catalogListProducts.js +1 -1
  69. package/esm/funcs/catalogListSimilarProducts.d.ts +1 -1
  70. package/esm/funcs/catalogListSimilarProducts.js +1 -1
  71. package/esm/funcs/catalogListSkus.d.ts +1 -1
  72. package/esm/funcs/catalogListSkus.js +1 -1
  73. package/esm/funcs/catalogListUpsellProducts.d.ts +1 -1
  74. package/esm/funcs/catalogListUpsellProducts.js +1 -1
  75. package/esm/funcs/catalogSearchProducts.d.ts +1 -1
  76. package/esm/funcs/catalogSearchProducts.js +1 -1
  77. package/esm/funcs/commonListCountryPincodes.d.ts +1 -1
  78. package/esm/funcs/commonListCountryPincodes.js +1 -1
  79. package/esm/funcs/customersCreateAddress.d.ts +1 -1
  80. package/esm/funcs/customersCreateAddress.js +1 -1
  81. package/esm/funcs/customersDeleteAddress.d.ts +1 -1
  82. package/esm/funcs/customersDeleteAddress.js +1 -1
  83. package/esm/funcs/customersGetAddressDetail.d.ts +1 -1
  84. package/esm/funcs/customersGetAddressDetail.js +1 -1
  85. package/esm/funcs/customersGetLoyaltyDetails.d.ts +1 -1
  86. package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
  87. package/esm/funcs/customersListAddresses.d.ts +1 -1
  88. package/esm/funcs/customersListAddresses.js +1 -1
  89. package/esm/funcs/customersListUserReviews.d.ts +1 -1
  90. package/esm/funcs/customersListUserReviews.js +1 -1
  91. package/esm/funcs/customersUpdateAddressDetail.d.ts +1 -1
  92. package/esm/funcs/customersUpdateAddressDetail.js +1 -1
  93. package/esm/funcs/ordersCancelOrder.d.ts +1 -1
  94. package/esm/funcs/ordersCancelOrder.js +1 -1
  95. package/esm/funcs/ordersCreateOrder.d.ts +1 -1
  96. package/esm/funcs/ordersCreateOrder.js +1 -1
  97. package/esm/funcs/ordersGetOrderDetail.d.ts +1 -1
  98. package/esm/funcs/ordersGetOrderDetail.js +1 -1
  99. package/esm/funcs/ordersGetPaymentStatus.d.ts +1 -1
  100. package/esm/funcs/ordersGetPaymentStatus.js +1 -1
  101. package/esm/funcs/ordersListOrderShipments.d.ts +1 -1
  102. package/esm/funcs/ordersListOrderShipments.js +1 -1
  103. package/esm/funcs/ordersListOrders.d.ts +1 -1
  104. package/esm/funcs/ordersListOrders.js +1 -1
  105. package/esm/funcs/ordersRetryOrderPayment.d.ts +1 -1
  106. package/esm/funcs/ordersRetryOrderPayment.js +1 -1
  107. package/esm/funcs/shippingCheckServiceability.d.ts +1 -1
  108. package/esm/funcs/shippingCheckServiceability.js +1 -1
  109. package/esm/funcs/shippingFulfillmentOptions.d.ts +1 -1
  110. package/esm/funcs/shippingFulfillmentOptions.js +1 -1
  111. package/esm/funcs/shippingShippingMethods.d.ts +1 -1
  112. package/esm/funcs/shippingShippingMethods.js +1 -1
  113. package/esm/lib/config.d.ts +2 -2
  114. package/esm/lib/config.js +2 -2
  115. package/esm/models/components/anonymoususer.d.ts +1 -1
  116. package/esm/models/components/appliedcoupon.d.ts +1 -1
  117. package/esm/models/components/appliedpromotion.d.ts +1 -1
  118. package/esm/models/components/banktransfer.d.ts +1 -1
  119. package/esm/models/components/booleanattribute.d.ts +1 -1
  120. package/esm/models/components/cardpayment.d.ts +1 -1
  121. package/esm/models/components/cart.d.ts +1 -1
  122. package/esm/models/components/cartbasedserviceabilitycheck.d.ts +1 -1
  123. package/esm/models/components/cartitem.d.ts +1 -1
  124. package/esm/models/components/category.d.ts +1 -1
  125. package/esm/models/components/collectinstore.d.ts +1 -1
  126. package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
  127. package/esm/models/components/colorattribute.d.ts +1 -1
  128. package/esm/models/components/coloroption.d.ts +1 -1
  129. package/esm/models/components/currency.d.ts +1 -1
  130. package/esm/models/components/customeraddress.d.ts +1 -1
  131. package/esm/models/components/customeraddressinput.d.ts +1 -1
  132. package/esm/models/components/customerloyalty.d.ts +1 -1
  133. package/esm/models/components/customerreadyforreview.d.ts +1 -1
  134. package/esm/models/components/customerreview.d.ts +1 -1
  135. package/esm/models/components/dateattribute.d.ts +1 -1
  136. package/esm/models/components/deliveryfulfillment.d.ts +3 -3
  137. package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
  138. package/esm/models/components/deliveryfulfillment.js +2 -2
  139. package/esm/models/components/deliveryfulfillment.js.map +1 -1
  140. package/esm/models/components/deliveryfulfillmentinput.d.ts +36 -0
  141. package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -0
  142. package/esm/models/components/deliveryfulfillmentinput.js +48 -0
  143. package/esm/models/components/deliveryfulfillmentinput.js.map +1 -0
  144. package/esm/models/components/discountbasedpromotion.d.ts +1 -1
  145. package/esm/models/components/fixedpricepromotion.d.ts +1 -1
  146. package/esm/models/components/freegoodspromotion.d.ts +1 -1
  147. package/esm/models/components/fulfillmentitem.d.ts +1 -1
  148. package/esm/models/components/fulfillmentiteminput.d.ts +1 -1
  149. package/esm/models/components/fulfillmentpreference.d.ts +15 -3
  150. package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
  151. package/esm/models/components/fulfillmentpreference.js +12 -6
  152. package/esm/models/components/fulfillmentpreference.js.map +1 -1
  153. package/esm/models/components/fulfillmentpreferenceinput.d.ts +43 -0
  154. package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -0
  155. package/esm/models/components/fulfillmentpreferenceinput.js +44 -0
  156. package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -0
  157. package/esm/models/components/generateotpwithemail.d.ts +1 -1
  158. package/esm/models/components/generateotpwithphone.d.ts +1 -1
  159. package/esm/models/components/index.d.ts +2 -0
  160. package/esm/models/components/index.d.ts.map +1 -1
  161. package/esm/models/components/index.js +2 -0
  162. package/esm/models/components/index.js.map +1 -1
  163. package/esm/models/components/item.d.ts +1 -1
  164. package/esm/models/components/juspaypaymentgatewayparams.d.ts +1 -1
  165. package/esm/models/components/juspaypaymentinfo.d.ts +1 -1
  166. package/esm/models/components/lotbatchdetail.d.ts +1 -1
  167. package/esm/models/components/multiselectattribute.d.ts +1 -1
  168. package/esm/models/components/netbankingpayment.d.ts +1 -1
  169. package/esm/models/components/notificationchannelpreferences.d.ts +1 -1
  170. package/esm/models/components/notificationpreferences.d.ts +1 -1
  171. package/esm/models/components/numberattribute.d.ts +1 -1
  172. package/esm/models/components/order.d.ts +1 -1
  173. package/esm/models/components/orderdetail.d.ts +1 -1
  174. package/esm/models/components/orderitem.d.ts +1 -1
  175. package/esm/models/components/orderlist.d.ts +1 -1
  176. package/esm/models/components/orderpayment.d.ts +1 -1
  177. package/esm/models/components/ordershipment.d.ts +1 -1
  178. package/esm/models/components/pagination.d.ts +1 -1
  179. package/esm/models/components/partialcollectanddelivery.d.ts +3 -3
  180. package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
  181. package/esm/models/components/partialcollectanddelivery.js +2 -2
  182. package/esm/models/components/partialcollectanddelivery.js.map +1 -1
  183. package/esm/models/components/partialcollectanddeliveryinput.d.ts +1 -1
  184. package/esm/models/components/paymentgateway.d.ts +2 -2
  185. package/esm/models/components/paymentgateway.js +1 -1
  186. package/esm/models/components/paymentgatewayparams.d.ts +1 -1
  187. package/esm/models/components/payupaymentgatewayparams.d.ts +1 -1
  188. package/esm/models/components/payupaymentinfo.d.ts +1 -1
  189. package/esm/models/components/pincode.d.ts +1 -1
  190. package/esm/models/components/pincodeserviceability.d.ts +1 -1
  191. package/esm/models/components/product.d.ts +1 -1
  192. package/esm/models/components/productattribute.d.ts +1 -1
  193. package/esm/models/components/productbundleitem.d.ts +1 -1
  194. package/esm/models/components/productcategory.d.ts +1 -1
  195. package/esm/models/components/productdetail.d.ts +1 -1
  196. package/esm/models/components/productimage.d.ts +1 -1
  197. package/esm/models/components/productpricing.d.ts +1 -1
  198. package/esm/models/components/productpromotion.d.ts +1 -1
  199. package/esm/models/components/productreview.d.ts +1 -1
  200. package/esm/models/components/productshipping.d.ts +1 -1
  201. package/esm/models/components/productsubscription.d.ts +1 -1
  202. package/esm/models/components/productvideo.d.ts +1 -1
  203. package/esm/models/components/searchproduct.d.ts +1 -1
  204. package/esm/models/components/seo.d.ts +1 -1
  205. package/esm/models/components/shipmentitem.d.ts +1 -1
  206. package/esm/models/components/singleselectattribute.d.ts +1 -1
  207. package/esm/models/components/singleselectoption.d.ts +1 -1
  208. package/esm/models/components/textattribute.d.ts +1 -1
  209. package/esm/models/components/updatecartitem.d.ts +1 -1
  210. package/esm/models/components/upipayment.d.ts +1 -1
  211. package/esm/models/components/user.d.ts +2 -2
  212. package/esm/models/components/variant.d.ts +1 -1
  213. package/esm/models/components/variantdetail.d.ts +1 -1
  214. package/esm/models/components/variantoption.d.ts +1 -1
  215. package/esm/models/components/volumebasedpromotion.d.ts +1 -1
  216. package/esm/models/components/walletpayment.d.ts +1 -1
  217. package/esm/models/operations/createaddress.d.ts +1 -1
  218. package/esm/models/operations/getaddressdetail.d.ts +1 -1
  219. package/esm/models/operations/listaddresses.d.ts +1 -1
  220. package/esm/models/operations/updateaddressdetail.d.ts +1 -1
  221. package/esm/models/operations/updatefulfillmentpreference.d.ts +32 -23
  222. package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
  223. package/esm/models/operations/updatefulfillmentpreference.js +31 -41
  224. package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
  225. package/esm/sdk/auth.d.ts +10 -10
  226. package/esm/sdk/auth.js +10 -10
  227. package/esm/sdk/carts.d.ts +13 -13
  228. package/esm/sdk/carts.js +13 -13
  229. package/esm/sdk/catalog.d.ts +11 -11
  230. package/esm/sdk/catalog.js +11 -11
  231. package/esm/sdk/common.d.ts +1 -1
  232. package/esm/sdk/common.js +1 -1
  233. package/esm/sdk/customers.d.ts +7 -7
  234. package/esm/sdk/customers.js +7 -7
  235. package/esm/sdk/orders.d.ts +7 -7
  236. package/esm/sdk/orders.js +7 -7
  237. package/esm/sdk/shipping.d.ts +3 -3
  238. package/esm/sdk/shipping.js +3 -3
  239. package/examples/package-lock.json +1 -1
  240. package/jsr.json +1 -1
  241. package/package.json +1 -1
  242. package/src/funcs/authGenerateOtp.ts +1 -1
  243. package/src/funcs/authGetAnonymousToken.ts +1 -1
  244. package/src/funcs/authGetUserDetail.ts +1 -1
  245. package/src/funcs/authLoginWithEmail.ts +1 -1
  246. package/src/funcs/authLoginWithPhone.ts +1 -1
  247. package/src/funcs/authLoginWithWhatsapp.ts +1 -1
  248. package/src/funcs/authLogout.ts +1 -1
  249. package/src/funcs/authRefreshToken.ts +1 -1
  250. package/src/funcs/authUpdateUser.ts +1 -1
  251. package/src/funcs/authVerifyOtp.ts +1 -1
  252. package/src/funcs/cartsAddShippingMethod.ts +1 -1
  253. package/src/funcs/cartsApplyCoupon.ts +1 -1
  254. package/src/funcs/cartsCreateCart.ts +1 -1
  255. package/src/funcs/cartsCreateCartAddress.ts +1 -1
  256. package/src/funcs/cartsDeleteCart.ts +1 -1
  257. package/src/funcs/cartsGetCart.ts +1 -1
  258. package/src/funcs/cartsGetUserCart.ts +1 -1
  259. package/src/funcs/cartsRedeemLoyaltyPoints.ts +1 -1
  260. package/src/funcs/cartsRemoveCoupon.ts +1 -1
  261. package/src/funcs/cartsRemoveLoyaltyPoints.ts +1 -1
  262. package/src/funcs/cartsRemoveUserCart.ts +1 -1
  263. package/src/funcs/cartsUpdateCart.ts +1 -1
  264. package/src/funcs/cartsUpdateFulfillmentPreference.ts +4 -2
  265. package/src/funcs/catalogGetProductDetail.ts +1 -1
  266. package/src/funcs/catalogGetVariantDetail.ts +1 -1
  267. package/src/funcs/catalogListCategories.ts +1 -1
  268. package/src/funcs/catalogListCrosssellProducts.ts +1 -1
  269. package/src/funcs/catalogListProductReviews.ts +1 -1
  270. package/src/funcs/catalogListProductVariants.ts +1 -1
  271. package/src/funcs/catalogListProducts.ts +1 -1
  272. package/src/funcs/catalogListSimilarProducts.ts +1 -1
  273. package/src/funcs/catalogListSkus.ts +1 -1
  274. package/src/funcs/catalogListUpsellProducts.ts +1 -1
  275. package/src/funcs/catalogSearchProducts.ts +1 -1
  276. package/src/funcs/commonListCountryPincodes.ts +1 -1
  277. package/src/funcs/customersCreateAddress.ts +1 -1
  278. package/src/funcs/customersDeleteAddress.ts +1 -1
  279. package/src/funcs/customersGetAddressDetail.ts +1 -1
  280. package/src/funcs/customersGetLoyaltyDetails.ts +1 -1
  281. package/src/funcs/customersListAddresses.ts +1 -1
  282. package/src/funcs/customersListUserReviews.ts +1 -1
  283. package/src/funcs/customersUpdateAddressDetail.ts +1 -1
  284. package/src/funcs/ordersCancelOrder.ts +1 -1
  285. package/src/funcs/ordersCreateOrder.ts +1 -1
  286. package/src/funcs/ordersGetOrderDetail.ts +1 -1
  287. package/src/funcs/ordersGetPaymentStatus.ts +1 -1
  288. package/src/funcs/ordersListOrderShipments.ts +1 -1
  289. package/src/funcs/ordersListOrders.ts +1 -1
  290. package/src/funcs/ordersRetryOrderPayment.ts +1 -1
  291. package/src/funcs/shippingCheckServiceability.ts +1 -1
  292. package/src/funcs/shippingFulfillmentOptions.ts +1 -1
  293. package/src/funcs/shippingShippingMethods.ts +1 -1
  294. package/src/lib/config.ts +2 -2
  295. package/src/models/components/anonymoususer.ts +1 -1
  296. package/src/models/components/appliedcoupon.ts +1 -1
  297. package/src/models/components/appliedpromotion.ts +1 -1
  298. package/src/models/components/banktransfer.ts +1 -1
  299. package/src/models/components/booleanattribute.ts +1 -1
  300. package/src/models/components/cardpayment.ts +1 -1
  301. package/src/models/components/cart.ts +1 -1
  302. package/src/models/components/cartbasedserviceabilitycheck.ts +1 -1
  303. package/src/models/components/cartitem.ts +1 -1
  304. package/src/models/components/category.ts +1 -1
  305. package/src/models/components/collectinstore.ts +1 -1
  306. package/src/models/components/collectinstorefulfillment.ts +1 -1
  307. package/src/models/components/colorattribute.ts +1 -1
  308. package/src/models/components/coloroption.ts +1 -1
  309. package/src/models/components/currency.ts +1 -1
  310. package/src/models/components/customeraddress.ts +1 -1
  311. package/src/models/components/customeraddressinput.ts +1 -1
  312. package/src/models/components/customerloyalty.ts +1 -1
  313. package/src/models/components/customerreadyforreview.ts +1 -1
  314. package/src/models/components/customerreview.ts +1 -1
  315. package/src/models/components/dateattribute.ts +1 -1
  316. package/src/models/components/deliveryfulfillment.ts +5 -5
  317. package/src/models/components/deliveryfulfillmentinput.ts +90 -0
  318. package/src/models/components/discountbasedpromotion.ts +1 -1
  319. package/src/models/components/fixedpricepromotion.ts +1 -1
  320. package/src/models/components/freegoodspromotion.ts +1 -1
  321. package/src/models/components/fulfillmentitem.ts +1 -1
  322. package/src/models/components/fulfillmentiteminput.ts +1 -1
  323. package/src/models/components/fulfillmentpreference.ts +41 -13
  324. package/src/models/components/fulfillmentpreferenceinput.ts +121 -0
  325. package/src/models/components/generateotpwithemail.ts +1 -1
  326. package/src/models/components/generateotpwithphone.ts +1 -1
  327. package/src/models/components/index.ts +2 -0
  328. package/src/models/components/item.ts +1 -1
  329. package/src/models/components/juspaypaymentgatewayparams.ts +1 -1
  330. package/src/models/components/juspaypaymentinfo.ts +1 -1
  331. package/src/models/components/lotbatchdetail.ts +1 -1
  332. package/src/models/components/multiselectattribute.ts +1 -1
  333. package/src/models/components/netbankingpayment.ts +1 -1
  334. package/src/models/components/notificationchannelpreferences.ts +1 -1
  335. package/src/models/components/notificationpreferences.ts +1 -1
  336. package/src/models/components/numberattribute.ts +1 -1
  337. package/src/models/components/order.ts +1 -1
  338. package/src/models/components/orderdetail.ts +1 -1
  339. package/src/models/components/orderitem.ts +1 -1
  340. package/src/models/components/orderlist.ts +1 -1
  341. package/src/models/components/orderpayment.ts +1 -1
  342. package/src/models/components/ordershipment.ts +1 -1
  343. package/src/models/components/pagination.ts +1 -1
  344. package/src/models/components/partialcollectanddelivery.ts +5 -5
  345. package/src/models/components/partialcollectanddeliveryinput.ts +1 -1
  346. package/src/models/components/paymentgateway.ts +2 -2
  347. package/src/models/components/paymentgatewayparams.ts +1 -1
  348. package/src/models/components/payupaymentgatewayparams.ts +1 -1
  349. package/src/models/components/payupaymentinfo.ts +1 -1
  350. package/src/models/components/pincode.ts +1 -1
  351. package/src/models/components/pincodeserviceability.ts +1 -1
  352. package/src/models/components/product.ts +1 -1
  353. package/src/models/components/productattribute.ts +1 -1
  354. package/src/models/components/productbundleitem.ts +1 -1
  355. package/src/models/components/productcategory.ts +1 -1
  356. package/src/models/components/productdetail.ts +1 -1
  357. package/src/models/components/productimage.ts +1 -1
  358. package/src/models/components/productpricing.ts +1 -1
  359. package/src/models/components/productpromotion.ts +1 -1
  360. package/src/models/components/productreview.ts +1 -1
  361. package/src/models/components/productshipping.ts +1 -1
  362. package/src/models/components/productsubscription.ts +1 -1
  363. package/src/models/components/productvideo.ts +1 -1
  364. package/src/models/components/searchproduct.ts +1 -1
  365. package/src/models/components/seo.ts +1 -1
  366. package/src/models/components/shipmentitem.ts +1 -1
  367. package/src/models/components/singleselectattribute.ts +1 -1
  368. package/src/models/components/singleselectoption.ts +1 -1
  369. package/src/models/components/textattribute.ts +1 -1
  370. package/src/models/components/updatecartitem.ts +1 -1
  371. package/src/models/components/upipayment.ts +1 -1
  372. package/src/models/components/user.ts +2 -2
  373. package/src/models/components/variant.ts +1 -1
  374. package/src/models/components/variantdetail.ts +1 -1
  375. package/src/models/components/variantoption.ts +1 -1
  376. package/src/models/components/volumebasedpromotion.ts +1 -1
  377. package/src/models/components/walletpayment.ts +1 -1
  378. package/src/models/operations/createaddress.ts +1 -1
  379. package/src/models/operations/getaddressdetail.ts +1 -1
  380. package/src/models/operations/listaddresses.ts +1 -1
  381. package/src/models/operations/updateaddressdetail.ts +1 -1
  382. package/src/models/operations/updatefulfillmentpreference.ts +75 -90
  383. package/src/sdk/auth.ts +10 -10
  384. package/src/sdk/carts.ts +13 -13
  385. package/src/sdk/catalog.ts +11 -11
  386. package/src/sdk/common.ts +1 -1
  387. package/src/sdk/customers.ts +7 -7
  388. package/src/sdk/orders.ts +7 -7
  389. package/src/sdk/shipping.ts +3 -3
@@ -21,7 +21,7 @@ export type PromotionType = ClosedEnum<typeof PromotionType>;
21
21
  /**
22
22
  * Details about an active promotion applied to a cart/order
23
23
  *
24
- * @see {@link https://llm-docs.commercengine.io/schemas/AppliedPromotion} - API reference for the AppliedPromotion schema
24
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/AppliedPromotion} - API reference for the AppliedPromotion schema
25
25
  */
26
26
  export type AppliedPromotion = {
27
27
  promotionId: string;
@@ -31,7 +31,7 @@ export type BankTransferPaymentStatus = ClosedEnum<
31
31
  /**
32
32
  * Bank transfer payment - IMPS, NEFT, RTGS
33
33
  *
34
- * @see {@link https://llm-docs.commercengine.io/schemas/BankTransfer} - API reference for the BankTransfer schema
34
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/BankTransfer} - API reference for the BankTransfer schema
35
35
  */
36
36
  export type BankTransfer = {
37
37
  transactionType?: BankTransferTransactionType | undefined;
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  /**
11
11
  * Attribute for boolean values
12
12
  *
13
- * @see {@link https://llm-docs.commercengine.io/schemas/BooleanAttribute} - API reference for the BooleanAttribute schema
13
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/BooleanAttribute} - API reference for the BooleanAttribute schema
14
14
  */
15
15
  export type BooleanAttribute = {
16
16
  id: string;
@@ -37,7 +37,7 @@ export type CardType = ClosedEnum<typeof CardType>;
37
37
  /**
38
38
  * Payments using credit card, debit card
39
39
  *
40
- * @see {@link https://llm-docs.commercengine.io/schemas/CardPayment} - API reference for the CardPayment schema
40
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CardPayment} - API reference for the CardPayment schema
41
41
  */
42
42
  export type CardPayment = {
43
43
  transactionType?: TransactionType | undefined;
@@ -47,7 +47,7 @@ import {
47
47
  /**
48
48
  * This cart model is structured to capture a wide range of details, facilitating accurate representation and management of user shopping carts in an e-commerce platform.
49
49
  *
50
- * @see {@link https://llm-docs.commercengine.io/schemas/Cart} - API reference for the Cart schema
50
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/Cart} - API reference for the Cart schema
51
51
  */
52
52
  export type Cart = {
53
53
  /**
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CartBasedServiceabilityCheck} - API reference for the CartBasedServiceabilityCheck schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CartBasedServiceabilityCheck} - API reference for the CartBasedServiceabilityCheck schema
13
13
  */
14
14
  export type CartBasedServiceabilityCheck = {
15
15
  deliveryPincode: string;
@@ -37,7 +37,7 @@ export type ProductType = ClosedEnum<typeof ProductType>;
37
37
  /**
38
38
  * This Cart Item model captures the attributes of a cart item, including product details, pricing information, subscription details, and other relevant information related to Cart Item.
39
39
  *
40
- * @see {@link https://llm-docs.commercengine.io/schemas/CartItem} - API reference for the CartItem schema
40
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CartItem} - API reference for the CartItem schema
41
41
  */
42
42
  export type CartItem = {
43
43
  /**
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/Category} - API reference for the Category schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/Category} - API reference for the Category schema
13
13
  */
14
14
  export type Category = {
15
15
  id: string;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CollectInStore} - API reference for the CollectInStore schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CollectInStore} - API reference for the CollectInStore schema
13
13
  */
14
14
  export type CollectInStore = {
15
15
  id?: string | undefined;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CollectInStoreFulfillment} - API reference for the CollectInStoreFulfillment schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CollectInStoreFulfillment} - API reference for the CollectInStoreFulfillment schema
13
13
  */
14
14
  export type CollectInStoreFulfillment = {
15
15
  fulfillmentType?: "collect-in-store" | undefined;
@@ -18,7 +18,7 @@ export type ColorAttributeValue = {
18
18
  /**
19
19
  * Attribute for colors
20
20
  *
21
- * @see {@link https://llm-docs.commercengine.io/schemas/ColorAttribute} - API reference for the ColorAttribute schema
21
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/ColorAttribute} - API reference for the ColorAttribute schema
22
22
  */
23
23
  export type ColorAttribute = {
24
24
  id: string;
@@ -19,7 +19,7 @@ export type Value = {
19
19
  };
20
20
 
21
21
  /**
22
- * @see {@link https://llm-docs.commercengine.io/schemas/ColorOption} - API reference for the ColorOption schema
22
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/ColorOption} - API reference for the ColorOption schema
23
23
  */
24
24
  export type ColorOption = {
25
25
  /**
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  /**
11
- * @see {@link https://llm-docs.commercengine.io/schemas/Currency} - API reference for the Currency schema
11
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/Currency} - API reference for the Currency schema
12
12
  */
13
13
  export type Currency = {
14
14
  name: string;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CustomerAddress} - API reference for the CustomerAddress schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CustomerAddress} - API reference for the CustomerAddress schema
13
13
  */
14
14
  export type CustomerAddress = {
15
15
  /**
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CustomerAddress} - API reference for the CustomerAddress schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CustomerAddress} - API reference for the CustomerAddress schema
13
13
  */
14
14
  export type CustomerAddressInput = {
15
15
  /**
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/CustomerLoyalty} - API reference for the CustomerLoyalty schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CustomerLoyalty} - API reference for the CustomerLoyalty schema
13
13
  */
14
14
  export type CustomerLoyalty = {
15
15
  membershipNumber?: string | null | undefined;
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * List of products and orders for which customer can write review.
13
13
  *
14
- * @see {@link https://llm-docs.commercengine.io/schemas/CustomerReadyForReview} - API reference for the CustomerReadyForReview schema
14
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CustomerReadyForReview} - API reference for the CustomerReadyForReview schema
15
15
  */
16
16
  export type CustomerReadyForReview = {
17
17
  productId?: string | undefined;
@@ -30,7 +30,7 @@ export type CustomerReviewVideos = {
30
30
  /**
31
31
  * List of reviews posted by the user.
32
32
  *
33
- * @see {@link https://llm-docs.commercengine.io/schemas/CustomerReview} - API reference for the CustomerReview schema
33
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/CustomerReview} - API reference for the CustomerReview schema
34
34
  */
35
35
  export type CustomerReview = {
36
36
  id?: string | undefined;
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  /**
11
11
  * Attribute for date values
12
12
  *
13
- * @see {@link https://llm-docs.commercengine.io/schemas/DateAttribute} - API reference for the DateAttribute schema
13
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/DateAttribute} - API reference for the DateAttribute schema
14
14
  */
15
15
  export type DateAttribute = {
16
16
  id: string;
@@ -9,11 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/DeliveryFulfillment} - API reference for the DeliveryFulfillment schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/DeliveryFulfillment} - API reference for the DeliveryFulfillment schema
13
13
  */
14
14
  export type DeliveryFulfillment = {
15
15
  fulfillmentType?: "delivery" | undefined;
16
- shippingProviderId?: string | null | undefined;
16
+ shippingProviderId: string | null;
17
17
  shippingProviderName?: string | null | undefined;
18
18
  courierCompanyId?: string | null | undefined;
19
19
  courierCompanyName?: string | null | undefined;
@@ -26,7 +26,7 @@ export const DeliveryFulfillment$inboundSchema: z.ZodType<
26
26
  unknown
27
27
  > = z.object({
28
28
  fulfillment_type: z.literal("delivery").default("delivery").optional(),
29
- shipping_provider_id: z.nullable(z.string()).optional(),
29
+ shipping_provider_id: z.nullable(z.string()),
30
30
  shipping_provider_name: z.nullable(z.string()).optional(),
31
31
  courier_company_id: z.nullable(z.string()).optional(),
32
32
  courier_company_name: z.nullable(z.string()).optional(),
@@ -43,7 +43,7 @@ export const DeliveryFulfillment$inboundSchema: z.ZodType<
43
43
  /** @internal */
44
44
  export type DeliveryFulfillment$Outbound = {
45
45
  fulfillment_type: "delivery";
46
- shipping_provider_id?: string | null | undefined;
46
+ shipping_provider_id: string | null;
47
47
  shipping_provider_name?: string | null | undefined;
48
48
  courier_company_id?: string | null | undefined;
49
49
  courier_company_name?: string | null | undefined;
@@ -56,7 +56,7 @@ export const DeliveryFulfillment$outboundSchema: z.ZodType<
56
56
  DeliveryFulfillment
57
57
  > = z.object({
58
58
  fulfillmentType: z.literal("delivery").default("delivery" as const),
59
- shippingProviderId: z.nullable(z.string()).optional(),
59
+ shippingProviderId: z.nullable(z.string()),
60
60
  shippingProviderName: z.nullable(z.string()).optional(),
61
61
  courierCompanyId: z.nullable(z.string()).optional(),
62
62
  courierCompanyName: z.nullable(z.string()).optional(),
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/DeliveryFulfillment} - API reference for the DeliveryFulfillment schema
13
+ */
14
+ export type DeliveryFulfillmentInput = {
15
+ fulfillmentType?: "delivery" | undefined;
16
+ shippingProviderId: string | null;
17
+ courierCompanyId?: string | null | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const DeliveryFulfillmentInput$inboundSchema: z.ZodType<
22
+ DeliveryFulfillmentInput,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ fulfillment_type: z.literal("delivery").default("delivery").optional(),
27
+ shipping_provider_id: z.nullable(z.string()),
28
+ courier_company_id: z.nullable(z.string()).optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "fulfillment_type": "fulfillmentType",
32
+ "shipping_provider_id": "shippingProviderId",
33
+ "courier_company_id": "courierCompanyId",
34
+ });
35
+ });
36
+
37
+ /** @internal */
38
+ export type DeliveryFulfillmentInput$Outbound = {
39
+ fulfillment_type: "delivery";
40
+ shipping_provider_id: string | null;
41
+ courier_company_id?: string | null | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const DeliveryFulfillmentInput$outboundSchema: z.ZodType<
46
+ DeliveryFulfillmentInput$Outbound,
47
+ z.ZodTypeDef,
48
+ DeliveryFulfillmentInput
49
+ > = z.object({
50
+ fulfillmentType: z.literal("delivery").default("delivery" as const),
51
+ shippingProviderId: z.nullable(z.string()),
52
+ courierCompanyId: z.nullable(z.string()).optional(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ fulfillmentType: "fulfillment_type",
56
+ shippingProviderId: "shipping_provider_id",
57
+ courierCompanyId: "courier_company_id",
58
+ });
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace DeliveryFulfillmentInput$ {
66
+ /** @deprecated use `DeliveryFulfillmentInput$inboundSchema` instead. */
67
+ export const inboundSchema = DeliveryFulfillmentInput$inboundSchema;
68
+ /** @deprecated use `DeliveryFulfillmentInput$outboundSchema` instead. */
69
+ export const outboundSchema = DeliveryFulfillmentInput$outboundSchema;
70
+ /** @deprecated use `DeliveryFulfillmentInput$Outbound` instead. */
71
+ export type Outbound = DeliveryFulfillmentInput$Outbound;
72
+ }
73
+
74
+ export function deliveryFulfillmentInputToJSON(
75
+ deliveryFulfillmentInput: DeliveryFulfillmentInput,
76
+ ): string {
77
+ return JSON.stringify(
78
+ DeliveryFulfillmentInput$outboundSchema.parse(deliveryFulfillmentInput),
79
+ );
80
+ }
81
+
82
+ export function deliveryFulfillmentInputFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<DeliveryFulfillmentInput, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => DeliveryFulfillmentInput$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'DeliveryFulfillmentInput' from JSON`,
89
+ );
90
+ }
@@ -26,7 +26,7 @@ export const DiscountType = {
26
26
  export type DiscountType = ClosedEnum<typeof DiscountType>;
27
27
 
28
28
  /**
29
- * @see {@link https://llm-docs.commercengine.io/schemas/DiscountBasedPromotion} - API reference for the DiscountBasedPromotion schema
29
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/DiscountBasedPromotion} - API reference for the DiscountBasedPromotion schema
30
30
  */
31
31
  export type DiscountBasedPromotion = {
32
32
  promotionType?: "discount" | undefined;
@@ -20,7 +20,7 @@ export type FixedPricePromotionPromotionType = ClosedEnum<
20
20
  >;
21
21
 
22
22
  /**
23
- * @see {@link https://llm-docs.commercengine.io/schemas/FixedPricePromotion} - API reference for the FixedPricePromotion schema
23
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FixedPricePromotion} - API reference for the FixedPricePromotion schema
24
24
  */
25
25
  export type FixedPricePromotion = {
26
26
  promotionType?: "fixed-price" | undefined;
@@ -20,7 +20,7 @@ export type FreeGoodsPromotionPromotionType = ClosedEnum<
20
20
  >;
21
21
 
22
22
  /**
23
- * @see {@link https://llm-docs.commercengine.io/schemas/FreeGoodsPromotion} - API reference for the FreeGoodsPromotion schema
23
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FreeGoodsPromotion} - API reference for the FreeGoodsPromotion schema
24
24
  */
25
25
  export type FreeGoodsPromotion = {
26
26
  promotionType?: "free-goods" | undefined;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentItem} - API reference for the FulfillmentItem schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FulfillmentItem} - API reference for the FulfillmentItem schema
13
13
  */
14
14
  export type FulfillmentItem = {
15
15
  productId: string;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentItem} - API reference for the FulfillmentItem schema
12
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FulfillmentItem} - API reference for the FulfillmentItem schema
13
13
  */
14
14
  export type FulfillmentItemInput = {
15
15
  productId: string;
@@ -26,12 +26,14 @@ import {
26
26
  } from "./partialcollectanddelivery.js";
27
27
 
28
28
  /**
29
- * @see {@link https://llm-docs.commercengine.io/schemas/FulfillmentPreference} - API reference for the FulfillmentPreference schema
29
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FulfillmentPreference} - API reference for the FulfillmentPreference schema
30
30
  */
31
31
  export type FulfillmentPreference =
32
- | PartialCollectAndDelivery
33
- | CollectInStoreFulfillment
34
- | DeliveryFulfillment;
32
+ | (PartialCollectAndDelivery & {
33
+ fulfillmentType: "partial-collect-and-delivery";
34
+ })
35
+ | (CollectInStoreFulfillment & { fulfillmentType: "collect-in-store" })
36
+ | (DeliveryFulfillment & { fulfillmentType: "delivery" });
35
37
 
36
38
  /** @internal */
37
39
  export const FulfillmentPreference$inboundSchema: z.ZodType<
@@ -39,16 +41,31 @@ export const FulfillmentPreference$inboundSchema: z.ZodType<
39
41
  z.ZodTypeDef,
40
42
  unknown
41
43
  > = z.union([
42
- PartialCollectAndDelivery$inboundSchema,
43
- CollectInStoreFulfillment$inboundSchema,
44
- DeliveryFulfillment$inboundSchema,
44
+ PartialCollectAndDelivery$inboundSchema.and(
45
+ z.object({ fulfillment_type: z.literal("partial-collect-and-delivery") })
46
+ .transform((v) => ({ fulfillmentType: v.fulfillment_type })),
47
+ ),
48
+ CollectInStoreFulfillment$inboundSchema.and(
49
+ z.object({ fulfillment_type: z.literal("collect-in-store") }).transform((
50
+ v,
51
+ ) => ({ fulfillmentType: v.fulfillment_type })),
52
+ ),
53
+ DeliveryFulfillment$inboundSchema.and(
54
+ z.object({ fulfillment_type: z.literal("delivery") }).transform((v) => ({
55
+ fulfillmentType: v.fulfillment_type,
56
+ })),
57
+ ),
45
58
  ]);
46
59
 
47
60
  /** @internal */
48
61
  export type FulfillmentPreference$Outbound =
49
- | PartialCollectAndDelivery$Outbound
50
- | CollectInStoreFulfillment$Outbound
51
- | DeliveryFulfillment$Outbound;
62
+ | (PartialCollectAndDelivery$Outbound & {
63
+ fulfillment_type: "partial-collect-and-delivery";
64
+ })
65
+ | (CollectInStoreFulfillment$Outbound & {
66
+ fulfillment_type: "collect-in-store";
67
+ })
68
+ | (DeliveryFulfillment$Outbound & { fulfillment_type: "delivery" });
52
69
 
53
70
  /** @internal */
54
71
  export const FulfillmentPreference$outboundSchema: z.ZodType<
@@ -56,9 +73,20 @@ export const FulfillmentPreference$outboundSchema: z.ZodType<
56
73
  z.ZodTypeDef,
57
74
  FulfillmentPreference
58
75
  > = z.union([
59
- PartialCollectAndDelivery$outboundSchema,
60
- CollectInStoreFulfillment$outboundSchema,
61
- DeliveryFulfillment$outboundSchema,
76
+ PartialCollectAndDelivery$outboundSchema.and(
77
+ z.object({ fulfillmentType: z.literal("partial-collect-and-delivery") })
78
+ .transform((v) => ({ fulfillment_type: v.fulfillmentType })),
79
+ ),
80
+ CollectInStoreFulfillment$outboundSchema.and(
81
+ z.object({ fulfillmentType: z.literal("collect-in-store") }).transform((
82
+ v,
83
+ ) => ({ fulfillment_type: v.fulfillmentType })),
84
+ ),
85
+ DeliveryFulfillment$outboundSchema.and(
86
+ z.object({ fulfillmentType: z.literal("delivery") }).transform((v) => ({
87
+ fulfillment_type: v.fulfillmentType,
88
+ })),
89
+ ),
62
90
  ]);
63
91
 
64
92
  /**
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CollectInStoreFulfillment,
11
+ CollectInStoreFulfillment$inboundSchema,
12
+ CollectInStoreFulfillment$Outbound,
13
+ CollectInStoreFulfillment$outboundSchema,
14
+ } from "./collectinstorefulfillment.js";
15
+ import {
16
+ DeliveryFulfillmentInput,
17
+ DeliveryFulfillmentInput$inboundSchema,
18
+ DeliveryFulfillmentInput$Outbound,
19
+ DeliveryFulfillmentInput$outboundSchema,
20
+ } from "./deliveryfulfillmentinput.js";
21
+ import {
22
+ PartialCollectAndDeliveryInput,
23
+ PartialCollectAndDeliveryInput$inboundSchema,
24
+ PartialCollectAndDeliveryInput$Outbound,
25
+ PartialCollectAndDeliveryInput$outboundSchema,
26
+ } from "./partialcollectanddeliveryinput.js";
27
+
28
+ /**
29
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/FulfillmentPreference} - API reference for the FulfillmentPreference schema
30
+ */
31
+ export type FulfillmentPreferenceInput =
32
+ | (PartialCollectAndDeliveryInput & {
33
+ fulfillmentType: "partial-collect-and-delivery";
34
+ })
35
+ | (CollectInStoreFulfillment & { fulfillmentType: "collect-in-store" })
36
+ | (DeliveryFulfillmentInput & { fulfillmentType: "delivery" });
37
+
38
+ /** @internal */
39
+ export const FulfillmentPreferenceInput$inboundSchema: z.ZodType<
40
+ FulfillmentPreferenceInput,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.union([
44
+ PartialCollectAndDeliveryInput$inboundSchema.and(
45
+ z.object({ fulfillment_type: z.literal("partial-collect-and-delivery") })
46
+ .transform((v) => ({ fulfillmentType: v.fulfillment_type })),
47
+ ),
48
+ CollectInStoreFulfillment$inboundSchema.and(
49
+ z.object({ fulfillment_type: z.literal("collect-in-store") }).transform((
50
+ v,
51
+ ) => ({ fulfillmentType: v.fulfillment_type })),
52
+ ),
53
+ DeliveryFulfillmentInput$inboundSchema.and(
54
+ z.object({ fulfillment_type: z.literal("delivery") }).transform((v) => ({
55
+ fulfillmentType: v.fulfillment_type,
56
+ })),
57
+ ),
58
+ ]);
59
+
60
+ /** @internal */
61
+ export type FulfillmentPreferenceInput$Outbound =
62
+ | (PartialCollectAndDeliveryInput$Outbound & {
63
+ fulfillment_type: "partial-collect-and-delivery";
64
+ })
65
+ | (CollectInStoreFulfillment$Outbound & {
66
+ fulfillment_type: "collect-in-store";
67
+ })
68
+ | (DeliveryFulfillmentInput$Outbound & { fulfillment_type: "delivery" });
69
+
70
+ /** @internal */
71
+ export const FulfillmentPreferenceInput$outboundSchema: z.ZodType<
72
+ FulfillmentPreferenceInput$Outbound,
73
+ z.ZodTypeDef,
74
+ FulfillmentPreferenceInput
75
+ > = z.union([
76
+ PartialCollectAndDeliveryInput$outboundSchema.and(
77
+ z.object({ fulfillmentType: z.literal("partial-collect-and-delivery") })
78
+ .transform((v) => ({ fulfillment_type: v.fulfillmentType })),
79
+ ),
80
+ CollectInStoreFulfillment$outboundSchema.and(
81
+ z.object({ fulfillmentType: z.literal("collect-in-store") }).transform((
82
+ v,
83
+ ) => ({ fulfillment_type: v.fulfillmentType })),
84
+ ),
85
+ DeliveryFulfillmentInput$outboundSchema.and(
86
+ z.object({ fulfillmentType: z.literal("delivery") }).transform((v) => ({
87
+ fulfillment_type: v.fulfillmentType,
88
+ })),
89
+ ),
90
+ ]);
91
+
92
+ /**
93
+ * @internal
94
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
+ */
96
+ export namespace FulfillmentPreferenceInput$ {
97
+ /** @deprecated use `FulfillmentPreferenceInput$inboundSchema` instead. */
98
+ export const inboundSchema = FulfillmentPreferenceInput$inboundSchema;
99
+ /** @deprecated use `FulfillmentPreferenceInput$outboundSchema` instead. */
100
+ export const outboundSchema = FulfillmentPreferenceInput$outboundSchema;
101
+ /** @deprecated use `FulfillmentPreferenceInput$Outbound` instead. */
102
+ export type Outbound = FulfillmentPreferenceInput$Outbound;
103
+ }
104
+
105
+ export function fulfillmentPreferenceInputToJSON(
106
+ fulfillmentPreferenceInput: FulfillmentPreferenceInput,
107
+ ): string {
108
+ return JSON.stringify(
109
+ FulfillmentPreferenceInput$outboundSchema.parse(fulfillmentPreferenceInput),
110
+ );
111
+ }
112
+
113
+ export function fulfillmentPreferenceInputFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<FulfillmentPreferenceInput, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => FulfillmentPreferenceInput$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'FulfillmentPreferenceInput' from JSON`,
120
+ );
121
+ }
@@ -20,7 +20,7 @@ export type GenerateOtpWithEmailOtpAction = ClosedEnum<
20
20
  >;
21
21
 
22
22
  /**
23
- * @see {@link https://llm-docs.commercengine.io/schemas/GenerateOtpWithEmail} - API reference for the GenerateOtpWithEmail schema
23
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/GenerateOtpWithEmail} - API reference for the GenerateOtpWithEmail schema
24
24
  */
25
25
  export type GenerateOtpWithEmail = {
26
26
  channel?: "email" | undefined;
@@ -24,7 +24,7 @@ export const OtpAction = {
24
24
  export type OtpAction = ClosedEnum<typeof OtpAction>;
25
25
 
26
26
  /**
27
- * @see {@link https://llm-docs.commercengine.io/schemas/GenerateOtpWithPhone} - API reference for the GenerateOtpWithPhone schema
27
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/GenerateOtpWithPhone} - API reference for the GenerateOtpWithPhone schema
28
28
  */
29
29
  export type GenerateOtpWithPhone = {
30
30
  channel: Channel;
@@ -25,12 +25,14 @@ export * from "./customerreadyforreview.js";
25
25
  export * from "./customerreview.js";
26
26
  export * from "./dateattribute.js";
27
27
  export * from "./deliveryfulfillment.js";
28
+ export * from "./deliveryfulfillmentinput.js";
28
29
  export * from "./discountbasedpromotion.js";
29
30
  export * from "./fixedpricepromotion.js";
30
31
  export * from "./freegoodspromotion.js";
31
32
  export * from "./fulfillmentitem.js";
32
33
  export * from "./fulfillmentiteminput.js";
33
34
  export * from "./fulfillmentpreference.js";
35
+ export * from "./fulfillmentpreferenceinput.js";
34
36
  export * from "./generateotpwithemail.js";
35
37
  export * from "./generateotpwithphone.js";
36
38
  export * from "./item.js";
@@ -65,7 +65,7 @@ export const ItemProductType = {
65
65
  export type ItemProductType = ClosedEnum<typeof ItemProductType>;
66
66
 
67
67
  /**
68
- * @see {@link https://llm-docs.commercengine.io/schemas/Item} - API reference for the Item schema
68
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/Item} - API reference for the Item schema
69
69
  */
70
70
  export type Item = {
71
71
  productId: string;
@@ -34,7 +34,7 @@ export const IntegrationType = {
34
34
  export type IntegrationType = ClosedEnum<typeof IntegrationType>;
35
35
 
36
36
  /**
37
- * @see {@link https://llm-docs.commercengine.io/schemas/JuspayPaymentGatewayParams} - API reference for the JuspayPaymentGatewayParams schema
37
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayPaymentGatewayParams} - API reference for the JuspayPaymentGatewayParams schema
38
38
  */
39
39
  export type JuspayPaymentGatewayParams = {
40
40
  paymentGateway?: "JUSPAY" | undefined;
@@ -103,7 +103,7 @@ export type SDKPayload = {
103
103
  };
104
104
 
105
105
  /**
106
- * @see {@link https://llm-docs.commercengine.io/schemas/JuspayPaymentInfo} - API reference for the JuspayPaymentInfo schema
106
+ * @see {@link https://llm-docs.commercengine.io/storefront/schemas/JuspayPaymentInfo} - API reference for the JuspayPaymentInfo schema
107
107
  */
108
108
  export type JuspayPaymentInfo = {
109
109
  id?: string | undefined;