ce-storefront 0.3.11 → 0.3.17

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 (438) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +129 -108
  3. package/docs/sdks/addresses/README.md +4 -363
  4. package/docs/sdks/auth/README.md +72 -0
  5. package/docs/sdks/authuser/README.md +80 -0
  6. package/docs/sdks/{refunds → cards}/README.md +12 -11
  7. package/docs/sdks/catalogproductreviews/README.md +97 -0
  8. package/docs/sdks/{shipments → catalogproducts}/README.md +12 -12
  9. package/docs/sdks/{skus → catalogskus}/README.md +3 -3
  10. package/docs/sdks/{cestorefrontreviews → cestorefrontaddresses}/README.md +123 -34
  11. package/docs/sdks/cestorefrontproducts/README.md +6 -0
  12. package/docs/sdks/cestorefrontuser/README.md +6 -735
  13. package/docs/sdks/cestorefrontusers/README.md +92 -0
  14. package/docs/sdks/countries/README.md +79 -0
  15. package/docs/sdks/customers/README.md +192 -18
  16. package/docs/sdks/juspay/README.md +15 -15
  17. package/docs/sdks/loyalty/README.md +0 -81
  18. package/docs/sdks/loyaltypoints/README.md +88 -0
  19. package/docs/sdks/notificationpreferences/README.md +4 -162
  20. package/docs/sdks/orders/README.md +163 -5
  21. package/docs/sdks/payments/README.md +15 -95
  22. package/docs/sdks/products/README.md +15 -94
  23. package/docs/sdks/reviews/README.md +17 -13
  24. package/docs/sdks/{shipping → shipment}/README.md +5 -5
  25. package/docs/sdks/user/README.md +425 -0
  26. package/docs/sdks/users/README.md +240 -0
  27. package/docs/sdks/utils/README.md +0 -72
  28. package/docs/sdks/wishlist/README.md +5 -5
  29. package/esm/funcs/{catalogProductsGetCrossSells.d.ts → addressesGet.d.ts} +4 -4
  30. package/esm/funcs/addressesGet.d.ts.map +1 -0
  31. package/esm/funcs/{customersAddressesGet.js → addressesGet.js} +2 -2
  32. package/esm/funcs/addressesGet.js.map +1 -0
  33. package/esm/funcs/{authUserLogout.d.ts → authLogout.d.ts} +2 -2
  34. package/esm/funcs/authLogout.d.ts.map +1 -0
  35. package/esm/funcs/{authUserLogout.js → authLogout.js} +2 -2
  36. package/esm/funcs/authLogout.js.map +1 -0
  37. package/esm/funcs/{authUserDeactivateAccount.d.ts → authUserDeactivate.d.ts} +2 -2
  38. package/esm/funcs/{paymentsGetMethods.d.ts.map → authUserDeactivate.d.ts.map} +1 -1
  39. package/esm/funcs/{authUserDeactivateAccount.js → authUserDeactivate.js} +2 -2
  40. package/esm/funcs/authUserDeactivate.js.map +1 -0
  41. package/esm/funcs/{userNotificationPreferencesGet.d.ts → authUserNotificationPreferencesGet.d.ts} +2 -2
  42. package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +1 -0
  43. package/esm/funcs/{userNotificationPreferencesGet.js → authUserNotificationPreferencesGet.js} +2 -2
  44. package/esm/funcs/authUserNotificationPreferencesGet.js.map +1 -0
  45. package/esm/funcs/{authUserAddProfileImage.d.ts → authUsersAddProfileImage.d.ts} +2 -2
  46. package/esm/funcs/authUsersAddProfileImage.d.ts.map +1 -0
  47. package/esm/funcs/{authUserAddProfileImage.js → authUsersAddProfileImage.js} +2 -2
  48. package/esm/funcs/authUsersAddProfileImage.js.map +1 -0
  49. package/esm/funcs/{catalogProductsReviewsCreate.d.ts → catalogProductReviewsCreate.d.ts} +2 -2
  50. package/esm/funcs/catalogProductReviewsCreate.d.ts.map +1 -0
  51. package/esm/funcs/{catalogProductsReviewsCreate.js → catalogProductReviewsCreate.js} +2 -2
  52. package/esm/funcs/catalogProductReviewsCreate.js.map +1 -0
  53. package/esm/funcs/customersAddAddress.d.ts +16 -0
  54. package/esm/funcs/{catalogProductsList.d.ts.map → customersAddAddress.d.ts.map} +1 -1
  55. package/esm/funcs/{customersAddressesAdd.js → customersAddAddress.js} +2 -2
  56. package/esm/funcs/customersAddAddress.js.map +1 -0
  57. package/esm/funcs/{customersPostCustomers.d.ts → customersCreate.d.ts} +2 -2
  58. package/esm/funcs/customersCreate.d.ts.map +1 -0
  59. package/esm/funcs/{customersPostCustomers.js → customersCreate.js} +2 -2
  60. package/esm/funcs/customersCreate.js.map +1 -0
  61. package/esm/funcs/{customersGetCustomersId.d.ts → customersGet.d.ts} +2 -2
  62. package/esm/funcs/customersGet.d.ts.map +1 -0
  63. package/esm/funcs/{customersGetCustomersId.js → customersGet.js} +2 -2
  64. package/esm/funcs/customersGet.js.map +1 -0
  65. package/esm/funcs/customersGetReviews.d.ts +15 -0
  66. package/esm/funcs/customersGetReviews.d.ts.map +1 -0
  67. package/esm/funcs/{customersReviewsList.js → customersGetReviews.js} +2 -2
  68. package/esm/funcs/customersGetReviews.js.map +1 -0
  69. package/esm/funcs/{customersAddressesAdd.d.ts → customersUpdate.d.ts} +4 -4
  70. package/esm/funcs/customersUpdate.d.ts.map +1 -0
  71. package/esm/funcs/{customersPutCustomersId.js → customersUpdate.js} +2 -2
  72. package/esm/funcs/customersUpdate.js.map +1 -0
  73. package/esm/funcs/juspayCreateCustomer.d.ts +17 -0
  74. package/esm/funcs/juspayCreateCustomer.d.ts.map +1 -0
  75. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.js → juspayCreateCustomer.js} +2 -2
  76. package/esm/funcs/juspayCreateCustomer.js.map +1 -0
  77. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.d.ts → juspayCreateOrder.d.ts} +2 -2
  78. package/esm/funcs/juspayCreateOrder.d.ts.map +1 -0
  79. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js → juspayCreateOrder.js} +2 -2
  80. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js.map → juspayCreateOrder.js.map} +1 -1
  81. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.d.ts → juspayGetCustomer.d.ts} +2 -2
  82. package/esm/funcs/juspayGetCustomer.d.ts.map +1 -0
  83. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js → juspayGetCustomer.js} +2 -2
  84. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js.map → juspayGetCustomer.js.map} +1 -1
  85. package/esm/funcs/{customersLoyaltyListActivities.d.ts → loyaltyPointsListActivities.d.ts} +2 -2
  86. package/esm/funcs/loyaltyPointsListActivities.d.ts.map +1 -0
  87. package/esm/funcs/{customersLoyaltyListActivities.js → loyaltyPointsListActivities.js} +2 -2
  88. package/esm/funcs/loyaltyPointsListActivities.js.map +1 -0
  89. package/esm/funcs/{customersReviewsList.d.ts → ordersGetPaymentStatus.d.ts} +4 -4
  90. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -0
  91. package/esm/funcs/{ordersGetOrdersIdPaymentStatus.js → ordersGetPaymentStatus.js} +2 -2
  92. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -0
  93. package/esm/funcs/{ordersRefundsList.d.ts → ordersGetRefunds.d.ts} +2 -2
  94. package/esm/funcs/ordersGetRefunds.d.ts.map +1 -0
  95. package/esm/funcs/{ordersRefundsList.js → ordersGetRefunds.js} +2 -2
  96. package/esm/funcs/ordersGetRefunds.js.map +1 -0
  97. package/esm/funcs/{ordersShipmentsList.d.ts → ordersGetShipments.d.ts} +2 -2
  98. package/esm/funcs/ordersGetShipments.d.ts.map +1 -0
  99. package/esm/funcs/{ordersShipmentsList.js → ordersGetShipments.js} +2 -2
  100. package/esm/funcs/ordersGetShipments.js.map +1 -0
  101. package/esm/funcs/{paymentsPostPaymentsCards.d.ts → paymentsAddCard.d.ts} +2 -2
  102. package/esm/funcs/paymentsAddCard.d.ts.map +1 -0
  103. package/esm/funcs/{paymentsPostPaymentsCards.js → paymentsAddCard.js} +2 -2
  104. package/esm/funcs/paymentsAddCard.js.map +1 -0
  105. package/esm/funcs/{paymentsGetPaymentsCards.d.ts → paymentsCardsList.d.ts} +2 -2
  106. package/esm/funcs/paymentsCardsList.d.ts.map +1 -0
  107. package/esm/funcs/{paymentsGetPaymentsCards.js → paymentsCardsList.js} +2 -2
  108. package/esm/funcs/paymentsCardsList.js.map +1 -0
  109. package/esm/funcs/{paymentsGetMethods.d.ts → paymentsListMethods.d.ts} +2 -2
  110. package/esm/funcs/paymentsListMethods.d.ts.map +1 -0
  111. package/esm/funcs/{paymentsGetMethods.js → paymentsListMethods.js} +2 -2
  112. package/esm/funcs/paymentsListMethods.js.map +1 -0
  113. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.d.ts → paymentsVerifyVpa.d.ts} +2 -2
  114. package/esm/funcs/paymentsVerifyVpa.d.ts.map +1 -0
  115. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.js → paymentsVerifyVpa.js} +2 -2
  116. package/esm/funcs/paymentsVerifyVpa.js.map +1 -0
  117. package/esm/funcs/{catalogProductsGetSimilar.d.ts → productsGetSimilar.d.ts} +2 -2
  118. package/esm/funcs/productsGetSimilar.d.ts.map +1 -0
  119. package/esm/funcs/{catalogProductsGetSimilar.js → productsGetSimilar.js} +2 -2
  120. package/esm/funcs/productsGetSimilar.js.map +1 -0
  121. package/esm/funcs/{catalogProductsGetUpsells.d.ts → productsGetUpsells.d.ts} +2 -2
  122. package/esm/funcs/productsGetUpsells.d.ts.map +1 -0
  123. package/esm/funcs/{catalogProductsGetUpsells.js → productsGetUpsells.js} +2 -2
  124. package/esm/funcs/productsGetUpsells.js.map +1 -0
  125. package/esm/funcs/{catalogProductsList.d.ts → productsList.d.ts} +2 -2
  126. package/esm/funcs/productsList.d.ts.map +1 -0
  127. package/esm/funcs/{catalogProductsList.js → productsList.js} +2 -2
  128. package/esm/funcs/productsList.js.map +1 -0
  129. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.d.ts → productsListCrossSells.d.ts} +4 -5
  130. package/esm/funcs/productsListCrossSells.d.ts.map +1 -0
  131. package/esm/funcs/{catalogProductsGetCrossSells.js → productsListCrossSells.js} +2 -2
  132. package/esm/funcs/productsListCrossSells.js.map +1 -0
  133. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts → shipmentCheckPincodeServiceability.d.ts} +2 -2
  134. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts.map → shipmentCheckPincodeServiceability.d.ts.map} +1 -1
  135. package/esm/funcs/{shippingCheckPincodeServiceability.js → shipmentCheckPincodeServiceability.js} +2 -2
  136. package/esm/funcs/{shippingCheckPincodeServiceability.js.map → shipmentCheckPincodeServiceability.js.map} +1 -1
  137. package/esm/funcs/{authUserDeleteProfileImage.d.ts → userDeleteProfileImage.d.ts} +2 -2
  138. package/esm/funcs/userDeleteProfileImage.d.ts.map +1 -0
  139. package/esm/funcs/{authUserDeleteProfileImage.js → userDeleteProfileImage.js} +2 -2
  140. package/esm/funcs/userDeleteProfileImage.js.map +1 -0
  141. package/esm/funcs/{authUserResetPassword.d.ts → userResetPassword.d.ts} +2 -2
  142. package/esm/funcs/{ordersRefundsList.d.ts.map → userResetPassword.d.ts.map} +1 -1
  143. package/esm/funcs/{authUserResetPassword.js → userResetPassword.js} +2 -2
  144. package/esm/funcs/userResetPassword.js.map +1 -0
  145. package/esm/funcs/{authUserUpdate.d.ts → userUpdate.d.ts} +2 -2
  146. package/esm/funcs/userUpdate.d.ts.map +1 -0
  147. package/esm/funcs/{authUserUpdate.js → userUpdate.js} +2 -2
  148. package/esm/funcs/userUpdate.js.map +1 -0
  149. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts → userUpdateNotificationPreferences.d.ts} +2 -2
  150. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts.map → userUpdateNotificationPreferences.d.ts.map} +1 -1
  151. package/esm/funcs/{userNotificationPreferencesUpdate.js → userUpdateNotificationPreferences.js} +2 -2
  152. package/esm/funcs/{userNotificationPreferencesUpdate.js.map → userUpdateNotificationPreferences.js.map} +1 -1
  153. package/esm/funcs/{authUserUpdateProfileImage.d.ts → userUpdateProfileImage.d.ts} +2 -2
  154. package/esm/funcs/userUpdateProfileImage.d.ts.map +1 -0
  155. package/esm/funcs/{authUserUpdateProfileImage.js → userUpdateProfileImage.js} +2 -2
  156. package/esm/funcs/userUpdateProfileImage.js.map +1 -0
  157. package/esm/funcs/{userNotificationPreferencesCreate.d.ts → usersCreateNotificationPreferences.d.ts} +2 -2
  158. package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +1 -0
  159. package/esm/funcs/{userNotificationPreferencesCreate.js → usersCreateNotificationPreferences.js} +2 -2
  160. package/esm/funcs/usersCreateNotificationPreferences.js.map +1 -0
  161. package/esm/funcs/{authUserGet.d.ts → usersGet.d.ts} +2 -2
  162. package/esm/funcs/usersGet.d.ts.map +1 -0
  163. package/esm/funcs/{authUserGet.js → usersGet.js} +2 -2
  164. package/esm/funcs/usersGet.js.map +1 -0
  165. package/esm/funcs/{authUserGetProfileImage.d.ts → usersGetProfileImage.d.ts} +2 -2
  166. package/esm/funcs/{customersReviewsList.d.ts.map → usersGetProfileImage.d.ts.map} +1 -1
  167. package/esm/funcs/{authUserGetProfileImage.js → usersGetProfileImage.js} +2 -2
  168. package/esm/funcs/{customersReviewsList.js.map → usersGetProfileImage.js.map} +1 -1
  169. package/esm/funcs/{utilsGetCountries.d.ts → utilsCountriesGet.d.ts} +2 -2
  170. package/esm/funcs/{utilsGetCountries.d.ts.map → utilsCountriesGet.d.ts.map} +1 -1
  171. package/esm/funcs/{utilsGetCountries.js → utilsCountriesGet.js} +2 -2
  172. package/esm/funcs/{utilsGetCountries.js.map → utilsCountriesGet.js.map} +1 -1
  173. package/esm/funcs/{wishlistDelete.d.ts → wishlistRemoveItem.d.ts} +2 -2
  174. package/esm/funcs/wishlistRemoveItem.d.ts.map +1 -0
  175. package/esm/funcs/{wishlistDelete.js → wishlistRemoveItem.js} +2 -2
  176. package/esm/funcs/wishlistRemoveItem.js.map +1 -0
  177. package/esm/lib/config.d.ts +2 -2
  178. package/esm/lib/config.js +2 -2
  179. package/esm/sdk/addresses.d.ts +0 -28
  180. package/esm/sdk/addresses.d.ts.map +1 -1
  181. package/esm/sdk/addresses.js +2 -42
  182. package/esm/sdk/addresses.js.map +1 -1
  183. package/esm/sdk/auth.d.ts +10 -0
  184. package/esm/sdk/auth.d.ts.map +1 -1
  185. package/esm/sdk/auth.js +14 -0
  186. package/esm/sdk/auth.js.map +1 -1
  187. package/esm/sdk/authuser.d.ts +12 -0
  188. package/esm/sdk/authuser.d.ts.map +1 -0
  189. package/esm/sdk/authuser.js +18 -0
  190. package/esm/sdk/authuser.js.map +1 -0
  191. package/esm/sdk/cards.d.ts +12 -0
  192. package/esm/sdk/cards.d.ts.map +1 -0
  193. package/esm/sdk/cards.js +18 -0
  194. package/esm/sdk/cards.js.map +1 -0
  195. package/esm/sdk/catalog.d.ts +2 -5
  196. package/esm/sdk/catalog.d.ts.map +1 -1
  197. package/esm/sdk/catalog.js +2 -6
  198. package/esm/sdk/catalog.js.map +1 -1
  199. package/esm/sdk/catalogproductreviews.d.ts +12 -0
  200. package/esm/sdk/catalogproductreviews.d.ts.map +1 -0
  201. package/esm/sdk/catalogproductreviews.js +18 -0
  202. package/esm/sdk/catalogproductreviews.js.map +1 -0
  203. package/esm/sdk/catalogproducts.d.ts +12 -0
  204. package/esm/sdk/catalogproducts.d.ts.map +1 -0
  205. package/esm/sdk/catalogproducts.js +18 -0
  206. package/esm/sdk/catalogproducts.js.map +1 -0
  207. package/esm/sdk/{skus.d.ts → catalogskus.d.ts} +2 -2
  208. package/esm/sdk/catalogskus.d.ts.map +1 -0
  209. package/esm/sdk/{skus.js → catalogskus.js} +2 -2
  210. package/esm/sdk/catalogskus.js.map +1 -0
  211. package/esm/sdk/cestorefrontaddresses.d.ts +26 -0
  212. package/esm/sdk/cestorefrontaddresses.d.ts.map +1 -0
  213. package/esm/sdk/cestorefrontaddresses.js +38 -0
  214. package/esm/sdk/cestorefrontaddresses.js.map +1 -0
  215. package/esm/sdk/cestorefrontproducts.d.ts +10 -0
  216. package/esm/sdk/cestorefrontproducts.d.ts.map +1 -0
  217. package/esm/sdk/cestorefrontproducts.js +15 -0
  218. package/esm/sdk/cestorefrontproducts.js.map +1 -0
  219. package/esm/sdk/cestorefrontuser.d.ts +4 -64
  220. package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
  221. package/esm/sdk/cestorefrontuser.js +6 -92
  222. package/esm/sdk/cestorefrontuser.js.map +1 -1
  223. package/esm/sdk/cestorefrontusers.d.ts +12 -0
  224. package/esm/sdk/cestorefrontusers.d.ts.map +1 -0
  225. package/esm/sdk/cestorefrontusers.js +18 -0
  226. package/esm/sdk/cestorefrontusers.js.map +1 -0
  227. package/esm/sdk/countries.d.ts +12 -0
  228. package/esm/sdk/countries.d.ts.map +1 -0
  229. package/esm/sdk/countries.js +18 -0
  230. package/esm/sdk/countries.js.map +1 -0
  231. package/esm/sdk/customers.d.ts +19 -8
  232. package/esm/sdk/customers.d.ts.map +1 -1
  233. package/esm/sdk/customers.js +31 -15
  234. package/esm/sdk/customers.js.map +1 -1
  235. package/esm/sdk/juspay.d.ts +3 -3
  236. package/esm/sdk/juspay.d.ts.map +1 -1
  237. package/esm/sdk/juspay.js +9 -9
  238. package/esm/sdk/juspay.js.map +1 -1
  239. package/esm/sdk/loyalty.d.ts +0 -7
  240. package/esm/sdk/loyalty.d.ts.map +1 -1
  241. package/esm/sdk/loyalty.js +0 -10
  242. package/esm/sdk/loyalty.js.map +1 -1
  243. package/esm/sdk/loyaltypoints.d.ts +12 -0
  244. package/esm/sdk/loyaltypoints.d.ts.map +1 -0
  245. package/esm/sdk/loyaltypoints.js +18 -0
  246. package/esm/sdk/loyaltypoints.js.map +1 -0
  247. package/esm/sdk/notificationpreferences.d.ts +0 -14
  248. package/esm/sdk/notificationpreferences.d.ts.map +1 -1
  249. package/esm/sdk/notificationpreferences.js +2 -22
  250. package/esm/sdk/notificationpreferences.js.map +1 -1
  251. package/esm/sdk/orders.d.ts +15 -7
  252. package/esm/sdk/orders.d.ts.map +1 -1
  253. package/esm/sdk/orders.js +23 -11
  254. package/esm/sdk/orders.js.map +1 -1
  255. package/esm/sdk/payments.d.ts +6 -10
  256. package/esm/sdk/payments.d.ts.map +1 -1
  257. package/esm/sdk/payments.js +13 -19
  258. package/esm/sdk/payments.js.map +1 -1
  259. package/esm/sdk/products.d.ts +1 -14
  260. package/esm/sdk/products.d.ts.map +1 -1
  261. package/esm/sdk/products.js +9 -27
  262. package/esm/sdk/products.js.map +1 -1
  263. package/esm/sdk/reviews.d.ts +3 -3
  264. package/esm/sdk/reviews.d.ts.map +1 -1
  265. package/esm/sdk/reviews.js +4 -4
  266. package/esm/sdk/reviews.js.map +1 -1
  267. package/esm/sdk/sdk.d.ts +27 -3
  268. package/esm/sdk/sdk.d.ts.map +1 -1
  269. package/esm/sdk/sdk.js +35 -3
  270. package/esm/sdk/sdk.js.map +1 -1
  271. package/esm/sdk/{shipping.d.ts → shipment.d.ts} +2 -2
  272. package/esm/sdk/{shipping.d.ts.map → shipment.d.ts.map} +1 -1
  273. package/esm/sdk/{shipping.js → shipment.js} +4 -4
  274. package/esm/sdk/{shipping.js.map → shipment.js.map} +1 -1
  275. package/esm/sdk/user.d.ts +37 -4
  276. package/esm/sdk/user.d.ts.map +1 -1
  277. package/esm/sdk/user.js +50 -3
  278. package/esm/sdk/user.js.map +1 -1
  279. package/esm/sdk/users.d.ts +26 -0
  280. package/esm/sdk/users.d.ts.map +1 -0
  281. package/esm/sdk/users.js +38 -0
  282. package/esm/sdk/users.js.map +1 -0
  283. package/esm/sdk/utils.d.ts +3 -7
  284. package/esm/sdk/utils.d.ts.map +1 -1
  285. package/esm/sdk/utils.js +3 -9
  286. package/esm/sdk/utils.js.map +1 -1
  287. package/esm/sdk/wishlist.d.ts +1 -1
  288. package/esm/sdk/wishlist.d.ts.map +1 -1
  289. package/esm/sdk/wishlist.js +3 -3
  290. package/esm/sdk/wishlist.js.map +1 -1
  291. package/jsr.json +1 -1
  292. package/package.json +1 -1
  293. package/src/funcs/{customersAddressesGet.ts → addressesGet.ts} +1 -1
  294. package/src/funcs/{authUserLogout.ts → authLogout.ts} +1 -1
  295. package/src/funcs/{authUserDeactivateAccount.ts → authUserDeactivate.ts} +1 -1
  296. package/src/funcs/{userNotificationPreferencesGet.ts → authUserNotificationPreferencesGet.ts} +1 -1
  297. package/src/funcs/{authUserAddProfileImage.ts → authUsersAddProfileImage.ts} +1 -1
  298. package/src/funcs/{catalogProductsReviewsCreate.ts → catalogProductReviewsCreate.ts} +1 -1
  299. package/src/funcs/{customersAddressesAdd.ts → customersAddAddress.ts} +1 -1
  300. package/src/funcs/{customersPostCustomers.ts → customersCreate.ts} +1 -1
  301. package/src/funcs/{customersGetCustomersId.ts → customersGet.ts} +1 -1
  302. package/src/funcs/{customersReviewsList.ts → customersGetReviews.ts} +1 -1
  303. package/src/funcs/{customersPutCustomersId.ts → customersUpdate.ts} +1 -1
  304. package/src/funcs/{juspayPostPaymentsJuspayCreateCustomer.ts → juspayCreateCustomer.ts} +1 -1
  305. package/src/funcs/{juspayPostPaymentsJuspayCreateOrder.ts → juspayCreateOrder.ts} +1 -1
  306. package/src/funcs/{juspayGetPaymentsJuspayCustomer.ts → juspayGetCustomer.ts} +1 -1
  307. package/src/funcs/{customersLoyaltyListActivities.ts → loyaltyPointsListActivities.ts} +1 -1
  308. package/src/funcs/{ordersGetOrdersIdPaymentStatus.ts → ordersGetPaymentStatus.ts} +1 -1
  309. package/src/funcs/{ordersRefundsList.ts → ordersGetRefunds.ts} +1 -1
  310. package/src/funcs/{ordersShipmentsList.ts → ordersGetShipments.ts} +1 -1
  311. package/src/funcs/{paymentsPostPaymentsCards.ts → paymentsAddCard.ts} +1 -1
  312. package/src/funcs/{paymentsGetPaymentsCards.ts → paymentsCardsList.ts} +1 -1
  313. package/src/funcs/{paymentsGetMethods.ts → paymentsListMethods.ts} +1 -1
  314. package/src/funcs/{paymentsGetPaymentsVerifyVpa.ts → paymentsVerifyVpa.ts} +1 -1
  315. package/src/funcs/{catalogProductsGetSimilar.ts → productsGetSimilar.ts} +1 -1
  316. package/src/funcs/{catalogProductsGetUpsells.ts → productsGetUpsells.ts} +1 -1
  317. package/src/funcs/{catalogProductsList.ts → productsList.ts} +1 -1
  318. package/src/funcs/{catalogProductsGetCrossSells.ts → productsListCrossSells.ts} +1 -1
  319. package/src/funcs/{shippingCheckPincodeServiceability.ts → shipmentCheckPincodeServiceability.ts} +1 -1
  320. package/src/funcs/{authUserDeleteProfileImage.ts → userDeleteProfileImage.ts} +1 -1
  321. package/src/funcs/{authUserResetPassword.ts → userResetPassword.ts} +1 -1
  322. package/src/funcs/{authUserUpdate.ts → userUpdate.ts} +1 -1
  323. package/src/funcs/{userNotificationPreferencesUpdate.ts → userUpdateNotificationPreferences.ts} +1 -1
  324. package/src/funcs/{authUserUpdateProfileImage.ts → userUpdateProfileImage.ts} +1 -1
  325. package/src/funcs/{userNotificationPreferencesCreate.ts → usersCreateNotificationPreferences.ts} +1 -1
  326. package/src/funcs/{authUserGet.ts → usersGet.ts} +1 -1
  327. package/src/funcs/{authUserGetProfileImage.ts → usersGetProfileImage.ts} +1 -1
  328. package/src/funcs/{utilsGetCountries.ts → utilsCountriesGet.ts} +1 -1
  329. package/src/funcs/{wishlistDelete.ts → wishlistRemoveItem.ts} +1 -1
  330. package/src/lib/config.ts +2 -2
  331. package/src/sdk/addresses.ts +2 -74
  332. package/src/sdk/auth.ts +22 -0
  333. package/src/sdk/authuser.ts +27 -0
  334. package/src/sdk/{refunds.ts → cards.ts} +7 -7
  335. package/src/sdk/catalog.ts +4 -10
  336. package/src/sdk/catalogproductreviews.ts +27 -0
  337. package/src/sdk/catalogproducts.ts +27 -0
  338. package/src/sdk/{skus.ts → catalogskus.ts} +1 -1
  339. package/src/sdk/cestorefrontaddresses.ts +63 -0
  340. package/src/sdk/cestorefrontproducts.ts +19 -0
  341. package/src/sdk/cestorefrontuser.ts +8 -160
  342. package/src/sdk/cestorefrontusers.ts +27 -0
  343. package/src/sdk/countries.ts +25 -0
  344. package/src/sdk/customers.ts +49 -19
  345. package/src/sdk/juspay.ts +9 -9
  346. package/src/sdk/loyalty.ts +0 -18
  347. package/src/sdk/loyaltypoints.ts +27 -0
  348. package/src/sdk/notificationpreferences.ts +2 -38
  349. package/src/sdk/orders.ts +39 -15
  350. package/src/sdk/payments.ts +15 -27
  351. package/src/sdk/products.ts +9 -39
  352. package/src/sdk/reviews.ts +6 -6
  353. package/src/sdk/sdk.ts +54 -4
  354. package/src/sdk/{shipping.ts → shipment.ts} +3 -3
  355. package/src/sdk/user.ts +90 -6
  356. package/src/sdk/users.ts +63 -0
  357. package/src/sdk/utils.ts +4 -14
  358. package/src/sdk/wishlist.ts +3 -3
  359. package/esm/funcs/authUserAddProfileImage.d.ts.map +0 -1
  360. package/esm/funcs/authUserAddProfileImage.js.map +0 -1
  361. package/esm/funcs/authUserDeactivateAccount.d.ts.map +0 -1
  362. package/esm/funcs/authUserDeactivateAccount.js.map +0 -1
  363. package/esm/funcs/authUserDeleteProfileImage.d.ts.map +0 -1
  364. package/esm/funcs/authUserDeleteProfileImage.js.map +0 -1
  365. package/esm/funcs/authUserGet.d.ts.map +0 -1
  366. package/esm/funcs/authUserGet.js.map +0 -1
  367. package/esm/funcs/authUserGetProfileImage.d.ts.map +0 -1
  368. package/esm/funcs/authUserGetProfileImage.js.map +0 -1
  369. package/esm/funcs/authUserLogout.d.ts.map +0 -1
  370. package/esm/funcs/authUserLogout.js.map +0 -1
  371. package/esm/funcs/authUserResetPassword.d.ts.map +0 -1
  372. package/esm/funcs/authUserResetPassword.js.map +0 -1
  373. package/esm/funcs/authUserUpdate.d.ts.map +0 -1
  374. package/esm/funcs/authUserUpdate.js.map +0 -1
  375. package/esm/funcs/authUserUpdateProfileImage.d.ts.map +0 -1
  376. package/esm/funcs/authUserUpdateProfileImage.js.map +0 -1
  377. package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +0 -1
  378. package/esm/funcs/catalogProductsGetCrossSells.js.map +0 -1
  379. package/esm/funcs/catalogProductsGetSimilar.d.ts.map +0 -1
  380. package/esm/funcs/catalogProductsGetSimilar.js.map +0 -1
  381. package/esm/funcs/catalogProductsGetUpsells.d.ts.map +0 -1
  382. package/esm/funcs/catalogProductsGetUpsells.js.map +0 -1
  383. package/esm/funcs/catalogProductsList.js.map +0 -1
  384. package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +0 -1
  385. package/esm/funcs/catalogProductsReviewsCreate.js.map +0 -1
  386. package/esm/funcs/customersAddressesAdd.d.ts.map +0 -1
  387. package/esm/funcs/customersAddressesAdd.js.map +0 -1
  388. package/esm/funcs/customersAddressesGet.d.ts +0 -16
  389. package/esm/funcs/customersAddressesGet.d.ts.map +0 -1
  390. package/esm/funcs/customersAddressesGet.js.map +0 -1
  391. package/esm/funcs/customersGetCustomersId.d.ts.map +0 -1
  392. package/esm/funcs/customersGetCustomersId.js.map +0 -1
  393. package/esm/funcs/customersLoyaltyListActivities.d.ts.map +0 -1
  394. package/esm/funcs/customersLoyaltyListActivities.js.map +0 -1
  395. package/esm/funcs/customersPostCustomers.d.ts.map +0 -1
  396. package/esm/funcs/customersPostCustomers.js.map +0 -1
  397. package/esm/funcs/customersPutCustomersId.d.ts +0 -16
  398. package/esm/funcs/customersPutCustomersId.d.ts.map +0 -1
  399. package/esm/funcs/customersPutCustomersId.js.map +0 -1
  400. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  401. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  402. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  403. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  404. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +0 -15
  405. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +0 -1
  406. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +0 -1
  407. package/esm/funcs/ordersRefundsList.js.map +0 -1
  408. package/esm/funcs/ordersShipmentsList.d.ts.map +0 -1
  409. package/esm/funcs/ordersShipmentsList.js.map +0 -1
  410. package/esm/funcs/paymentsGetMethods.js.map +0 -1
  411. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +0 -1
  412. package/esm/funcs/paymentsGetPaymentsCards.js.map +0 -1
  413. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +0 -1
  414. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +0 -1
  415. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +0 -1
  416. package/esm/funcs/paymentsPostPaymentsCards.js.map +0 -1
  417. package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +0 -1
  418. package/esm/funcs/userNotificationPreferencesCreate.js.map +0 -1
  419. package/esm/funcs/userNotificationPreferencesGet.d.ts.map +0 -1
  420. package/esm/funcs/userNotificationPreferencesGet.js.map +0 -1
  421. package/esm/funcs/wishlistDelete.d.ts.map +0 -1
  422. package/esm/funcs/wishlistDelete.js.map +0 -1
  423. package/esm/sdk/cestorefrontreviews.d.ts +0 -19
  424. package/esm/sdk/cestorefrontreviews.d.ts.map +0 -1
  425. package/esm/sdk/cestorefrontreviews.js +0 -28
  426. package/esm/sdk/cestorefrontreviews.js.map +0 -1
  427. package/esm/sdk/refunds.d.ts +0 -12
  428. package/esm/sdk/refunds.d.ts.map +0 -1
  429. package/esm/sdk/refunds.js +0 -18
  430. package/esm/sdk/refunds.js.map +0 -1
  431. package/esm/sdk/shipments.d.ts +0 -12
  432. package/esm/sdk/shipments.d.ts.map +0 -1
  433. package/esm/sdk/shipments.js +0 -18
  434. package/esm/sdk/shipments.js.map +0 -1
  435. package/esm/sdk/skus.d.ts.map +0 -1
  436. package/esm/sdk/skus.js.map +0 -1
  437. package/src/sdk/cestorefrontreviews.ts +0 -45
  438. package/src/sdk/shipments.ts +0 -27
package/esm/sdk/utils.js CHANGED
@@ -1,20 +1,14 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { utilsGetCountries } from "../funcs/utilsGetCountries.js";
5
4
  import { utilsGetPincodes } from "../funcs/utilsGetPincodes.js";
6
5
  import { utilsGetStates } from "../funcs/utilsGetStates.js";
7
6
  import { ClientSDK } from "../lib/sdks.js";
8
7
  import { unwrapAsync } from "../types/fp.js";
8
+ import { Countries } from "./countries.js";
9
9
  export class Utils extends ClientSDK {
10
- /**
11
- * Retrieve all countries
12
- *
13
- * @remarks
14
- * Retrieve all countries
15
- */
16
- async getCountries(options) {
17
- return unwrapAsync(utilsGetCountries(this, options));
10
+ get countries() {
11
+ return (this._countries ?? (this._countries = new Countries(this._options)));
18
12
  }
19
13
  /**
20
14
  * Retrieve country wise states
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/sdk/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAA0D,EAC1D,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/sdk/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAElC,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAA0D,EAC1D,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAmE,EACnE,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -21,6 +21,6 @@ export declare class Wishlist extends ClientSDK {
21
21
  * @remarks
22
22
  * Remove product from wishlist
23
23
  */
24
- delete(request: operations.DeleteWishlistRequest, options?: RequestOptions): Promise<operations.DeleteWishlistResponseBody>;
24
+ removeItem(request: operations.DeleteWishlistRequest, options?: RequestOptions): Promise<operations.DeleteWishlistResponseBody>;
25
25
  }
26
26
  //# sourceMappingURL=wishlist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wishlist.d.ts","sourceRoot":"","sources":["../../src/sdk/wishlist.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
1
+ {"version":3,"file":"wishlist.d.ts","sourceRoot":"","sources":["../../src/sdk/wishlist.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
@@ -2,8 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { wishlistAdd } from "../funcs/wishlistAdd.js";
5
- import { wishlistDelete } from "../funcs/wishlistDelete.js";
6
5
  import { wishlistGet } from "../funcs/wishlistGet.js";
6
+ import { wishlistRemoveItem } from "../funcs/wishlistRemoveItem.js";
7
7
  import { ClientSDK } from "../lib/sdks.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
  export class Wishlist extends ClientSDK {
@@ -31,8 +31,8 @@ export class Wishlist extends ClientSDK {
31
31
  * @remarks
32
32
  * Remove product from wishlist
33
33
  */
34
- async delete(request, options) {
35
- return unwrapAsync(wishlistDelete(this, request, options));
34
+ async removeItem(request, options) {
35
+ return unwrapAsync(wishlistRemoveItem(this, request, options));
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=wishlist.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wishlist.js","sourceRoot":"","sources":["../../src/sdk/wishlist.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"wishlist.js","sourceRoot":"","sources":["../../src/sdk/wishlist.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "ce-storefront",
5
- "version": "0.3.11",
5
+ "version": "0.3.17",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ce-storefront",
3
- "version": "0.3.11",
3
+ "version": "0.3.17",
4
4
  "author": "TarkAI",
5
5
  "type": "module",
6
6
  "main": "./esm/index.js",
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieve address
31
31
  */
32
- export async function customersAddressesGet(
32
+ export async function addressesGet(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetCustomerAddressIdRequest,
35
35
  options?: RequestOptions,
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
26
26
  * @remarks
27
27
  * The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
28
28
  */
29
- export async function authUserLogout(
29
+ export async function authLogout(
30
30
  client: CeStorefrontCore,
31
31
  options?: RequestOptions,
32
32
  ): Promise<
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * The Deactivate Account API providing users with a straightforward method to deactivate their accounts. Upon successful deactivation, the API responds with a confirmation message. Error responses are detailed, aiding developers in addressing issues promptly.
30
30
  */
31
- export async function authUserDeactivateAccount(
31
+ export async function authUserDeactivate(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.PutAuthUserIdDeactivateRequest,
34
34
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
30
30
  */
31
- export async function userNotificationPreferencesGet(
31
+ export async function authUserNotificationPreferencesGet(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetAuthUserIdNotificationPreferencesRequest,
34
34
  options?: RequestOptions,
@@ -31,7 +31,7 @@ import { isReadableStream } from "../types/streams.js";
31
31
  * @remarks
32
32
  * The Profile Image API streamlines the process of uploading profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
33
33
  */
34
- export async function authUserAddProfileImage(
34
+ export async function authUsersAddProfileImage(
35
35
  client: CeStorefrontCore,
36
36
  request: operations.PostAuthUserIdProfileImageRequest,
37
37
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Create a product review
31
31
  */
32
- export async function catalogProductsReviewsCreate(
32
+ export async function catalogProductReviewsCreate(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PostProductsIdReviewsRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Add new address
31
31
  */
32
- export async function customersAddressesAdd(
32
+ export async function customersAddAddress(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PostAddressRequest,
35
35
  options?: RequestOptions,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * @remarks
31
31
  * Create customer
32
32
  */
33
- export async function customersPostCustomers(
33
+ export async function customersCreate(
34
34
  client: CeStorefrontCore,
35
35
  request: components.CreateCustomer,
36
36
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Retrieve customer detail.
30
30
  */
31
- export async function customersGetCustomersId(
31
+ export async function customersGet(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetCustomersIdRequest,
34
34
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Retrieve all reviews
30
30
  */
31
- export async function customersReviewsList(
31
+ export async function customersGetReviews(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetCustomersUserIdReviewsRequest,
34
34
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Update customer detail
31
31
  */
32
- export async function customersPutCustomersId(
32
+ export async function customersUpdate(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PutCustomersIdRequest,
35
35
  options?: RequestOptions,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * @remarks
31
31
  * Create customer in juspay.
32
32
  */
33
- export async function juspayPostPaymentsJuspayCreateCustomer(
33
+ export async function juspayCreateCustomer(
34
34
  client: CeStorefrontCore,
35
35
  request: components.JuspayCreateCustomerPayload,
36
36
  options?: RequestOptions,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Creates an order in the Juspay system and fetches the corresponding client_auth_token.
32
32
  * To be used for Express Checkout integration.
33
33
  */
34
- export async function juspayPostPaymentsJuspayCreateOrder(
34
+ export async function juspayCreateOrder(
35
35
  client: CeStorefrontCore,
36
36
  request: components.JuspayCreateOrderPayload,
37
37
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieve customer from juspay.
31
31
  */
32
- export async function juspayGetPaymentsJuspayCustomer(
32
+ export async function juspayGetCustomer(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetPaymentsJuspayCustomerRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * List all loyalty points activity
31
31
  */
32
- export async function customersLoyaltyListActivities(
32
+ export async function loyaltyPointsListActivities(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetLoyaltyPointActivityRequest,
35
35
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Retrieve payment status of a paricular order.
30
30
  */
31
- export async function ordersGetOrdersIdPaymentStatus(
31
+ export async function ordersGetPaymentStatus(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetOrdersIdPaymentStatusRequest,
34
34
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieve order refunds
31
31
  */
32
- export async function ordersRefundsList(
32
+ export async function ordersGetRefunds(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetOrdersIdRefundsRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieve order shipments
31
31
  */
32
- export async function ordersShipmentsList(
32
+ export async function ordersGetShipments(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetOrdersIdShipmentsRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Add a new card
31
31
  */
32
- export async function paymentsPostPaymentsCards(
32
+ export async function paymentsAddCard(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PostPaymentsCardsRequestBody,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * List all saved cards.
31
31
  */
32
- export async function paymentsGetPaymentsCards(
32
+ export async function paymentsCardsList(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetPaymentsCardsRequest,
35
35
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * List all payment methods
30
30
  */
31
- export async function paymentsGetMethods(
31
+ export async function paymentsListMethods(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetPaymentMethodsRequest,
34
34
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
30
30
  * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
31
31
  */
32
- export async function paymentsGetPaymentsVerifyVpa(
32
+ export async function paymentsVerifyVpa(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetPaymentsVerifyVpaRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieves a list of products similar to a specified product based on their attributes and category. The similar products are returned sorted by relevance, with the most closely matching products appearing first. Useful for providing product recommendations to your customers.
31
31
  */
32
- export async function catalogProductsGetSimilar(
32
+ export async function productsGetSimilar(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetSimilarRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
31
31
  */
32
- export async function catalogProductsGetUpsells(
32
+ export async function productsGetUpsells(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetUpSellRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
31
31
  */
32
- export async function catalogProductsList(
32
+ export async function productsList(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetProductsRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
31
31
  */
32
- export async function catalogProductsGetCrossSells(
32
+ export async function productsListCrossSells(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetCrossSellRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Check shipment delivery availability in an area by pincode
31
31
  */
32
- export async function shippingCheckPincodeServiceability(
32
+ export async function shipmentCheckPincodeServiceability(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetShipmentPincodeServiceabilityRequest,
35
35
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Delete profile image API streamlines the process of removing profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
30
30
  */
31
- export async function authUserDeleteProfileImage(
31
+ export async function userDeleteProfileImage(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.DeleteAuthUserIdProfileImageRequest,
34
34
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Reset password
31
31
  */
32
- export async function authUserResetPassword(
32
+ export async function userResetPassword(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PostAuthResetPasswordRequestBody,
35
35
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.
30
30
  */
31
- export async function authUserUpdate(
31
+ export async function userUpdate(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.PutAuthUserIdRequest,
34
34
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
30
30
  */
31
- export async function userNotificationPreferencesUpdate(
31
+ export async function userUpdateNotificationPreferences(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.PutAuthUserIdNotificationPreferencesRequest,
34
34
  options?: RequestOptions,
@@ -31,7 +31,7 @@ import { isReadableStream } from "../types/streams.js";
31
31
  * @remarks
32
32
  * The Profile Image API streamlines the process of updating profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
33
33
  */
34
- export async function authUserUpdateProfileImage(
34
+ export async function userUpdateProfileImage(
35
35
  client: CeStorefrontCore,
36
36
  request: operations.PutAuthUserIdProfileImageRequest,
37
37
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
30
30
  */
31
- export async function userNotificationPreferencesCreate(
31
+ export async function usersCreateNotificationPreferences(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.PostAuthUserIdNotificationPreferencesRequest,
34
34
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * The Retrieve User API is designed to facilitate the retrieval of comprehensive user information from the system. A required parameter is a user-id of the user whose information needs to be retrieved.
30
30
  */
31
- export async function authUserGet(
31
+ export async function usersGet(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetAuthUserIdRequest,
34
34
  options?: RequestOptions,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * @remarks
29
29
  * Retrieve user profile image API streamlines the process of retriving profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
30
30
  */
31
- export async function authUserGetProfileImage(
31
+ export async function usersGetProfileImage(
32
32
  client: CeStorefrontCore,
33
33
  request: operations.GetAuthUserIdProfileImageRequest,
34
34
  options?: RequestOptions,
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
26
26
  * @remarks
27
27
  * Retrieve all countries
28
28
  */
29
- export async function utilsGetCountries(
29
+ export async function utilsCountriesGet(
30
30
  client: CeStorefrontCore,
31
31
  options?: RequestOptions,
32
32
  ): Promise<
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Remove product from wishlist
31
31
  */
32
- export async function wishlistDelete(
32
+ export async function wishlistRemoveItem(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.DeleteWishlistRequest,
35
35
  options?: RequestOptions,
package/src/lib/config.ts CHANGED
@@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
74
74
  export const SDK_METADATA = {
75
75
  language: "typescript",
76
76
  openapiDocVersion: "1.0",
77
- sdkVersion: "0.3.11",
77
+ sdkVersion: "0.3.17",
78
78
  genVersion: "2.495.1",
79
- userAgent: "speakeasy-sdk/typescript 0.3.11 2.495.1 1.0 ce-storefront",
79
+ userAgent: "speakeasy-sdk/typescript 0.3.17 2.495.1 1.0 ce-storefront",
80
80
  } as const;
@@ -2,50 +2,12 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { customersAddressesAdd } from "../funcs/customersAddressesAdd.js";
6
- import { customersAddressesDelete } from "../funcs/customersAddressesDelete.js";
7
- import { customersAddressesGet } from "../funcs/customersAddressesGet.js";
8
- import { customersAddressesList } from "../funcs/customersAddressesList.js";
9
- import { customersAddressesUpdate } from "../funcs/customersAddressesUpdate.js";
5
+ import { addressesGet } from "../funcs/addressesGet.js";
10
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
7
  import * as operations from "../models/operations/index.js";
12
8
  import { unwrapAsync } from "../types/fp.js";
13
9
 
14
10
  export class Addresses extends ClientSDK {
15
- /**
16
- * Retrieve all addresses
17
- *
18
- * @remarks
19
- * Retrieve billing and shipping address of particular customer
20
- */
21
- async list(
22
- request: operations.GetAddressRequest,
23
- options?: RequestOptions,
24
- ): Promise<operations.GetAddressResponseBody> {
25
- return unwrapAsync(customersAddressesList(
26
- this,
27
- request,
28
- options,
29
- ));
30
- }
31
-
32
- /**
33
- * Add address
34
- *
35
- * @remarks
36
- * Add new address
37
- */
38
- async add(
39
- request: operations.PostAddressRequest,
40
- options?: RequestOptions,
41
- ): Promise<operations.PostAddressResponseBody> {
42
- return unwrapAsync(customersAddressesAdd(
43
- this,
44
- request,
45
- options,
46
- ));
47
- }
48
-
49
11
  /**
50
12
  * Retrieve particular address
51
13
  *
@@ -56,41 +18,7 @@ export class Addresses extends ClientSDK {
56
18
  request: operations.GetCustomerAddressIdRequest,
57
19
  options?: RequestOptions,
58
20
  ): Promise<operations.GetCustomerAddressIdResponseBody> {
59
- return unwrapAsync(customersAddressesGet(
60
- this,
61
- request,
62
- options,
63
- ));
64
- }
65
-
66
- /**
67
- * Update particular address
68
- *
69
- * @remarks
70
- * Update address
71
- */
72
- async update(
73
- request: operations.PutCustomerAddressIdRequest,
74
- options?: RequestOptions,
75
- ): Promise<operations.PutCustomerAddressIdResponseBody> {
76
- return unwrapAsync(customersAddressesUpdate(
77
- this,
78
- request,
79
- options,
80
- ));
81
- }
82
-
83
- /**
84
- * Remove particular address
85
- *
86
- * @remarks
87
- * Delete address
88
- */
89
- async delete(
90
- request: operations.DeleteCustomerAddressIdRequest,
91
- options?: RequestOptions,
92
- ): Promise<operations.DeleteCustomerAddressIdResponseBody> {
93
- return unwrapAsync(customersAddressesDelete(
21
+ return unwrapAsync(addressesGet(
94
22
  this,
95
23
  request,
96
24
  options,
package/src/sdk/auth.ts CHANGED
@@ -8,6 +8,7 @@ import { authLoginWithEmail } from "../funcs/authLoginWithEmail.js";
8
8
  import { authLoginWithPassword } from "../funcs/authLoginWithPassword.js";
9
9
  import { authLoginWithPhone } from "../funcs/authLoginWithPhone.js";
10
10
  import { authLoginWithWhatsapp } from "../funcs/authLoginWithWhatsapp.js";
11
+ import { authLogout } from "../funcs/authLogout.js";
11
12
  import { authRefreshToken } from "../funcs/authRefreshToken.js";
12
13
  import { authRegisterWithEmail } from "../funcs/authRegisterWithEmail.js";
13
14
  import { authRegisterWithPassword } from "../funcs/authRegisterWithPassword.js";
@@ -19,8 +20,14 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
19
20
  import * as operations from "../models/operations/index.js";
20
21
  import { unwrapAsync } from "../types/fp.js";
21
22
  import { CeStorefrontUser } from "./cestorefrontuser.js";
23
+ import { CeStorefrontUsers } from "./cestorefrontusers.js";
22
24
 
23
25
  export class Auth extends ClientSDK {
26
+ private _users?: CeStorefrontUsers;
27
+ get users(): CeStorefrontUsers {
28
+ return (this._users ??= new CeStorefrontUsers(this._options));
29
+ }
30
+
24
31
  private _user?: CeStorefrontUser;
25
32
  get user(): CeStorefrontUser {
26
33
  return (this._user ??= new CeStorefrontUser(this._options));
@@ -234,6 +241,21 @@ export class Auth extends ClientSDK {
234
241
  ));
235
242
  }
236
243
 
244
+ /**
245
+ * Logout user
246
+ *
247
+ * @remarks
248
+ * The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
249
+ */
250
+ async logout(
251
+ options?: RequestOptions,
252
+ ): Promise<operations.PostAuthLogoutResponseBody> {
253
+ return unwrapAsync(authLogout(
254
+ this,
255
+ options,
256
+ ));
257
+ }
258
+
237
259
  /**
238
260
  * Check verified email phone
239
261
  *