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
@@ -1,12 +1,6 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
- import { CeStorefrontReviews } from "./cestorefrontreviews.js";
4
- import { Variants } from "./variants.js";
5
3
  export declare class Products extends ClientSDK {
6
- private _variants?;
7
- get variants(): Variants;
8
- private _reviews?;
9
- get reviews(): CeStorefrontReviews;
10
4
  /**
11
5
  * List all products
12
6
  *
@@ -14,13 +8,6 @@ export declare class Products extends ClientSDK {
14
8
  * Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
15
9
  */
16
10
  list(request: operations.GetProductsRequest, options?: RequestOptions): Promise<operations.GetProductsResponseBody>;
17
- /**
18
- * Retrieve a product detail
19
- *
20
- * @remarks
21
- * Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
22
- */
23
- get(request: operations.GetProductDetailsRequest, options?: RequestOptions): Promise<operations.GetProductDetailsResponseBody>;
24
11
  /**
25
12
  * Retrieve similar products
26
13
  *
@@ -41,6 +28,6 @@ export declare class Products extends ClientSDK {
41
28
  * @remarks
42
29
  * Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
43
30
  */
44
- getCrossSells(request: operations.GetCrossSellRequest, options?: RequestOptions): Promise<operations.GetCrossSellResponseBody>;
31
+ listCrossSells(request: operations.GetCrossSellRequest, options?: RequestOptions): Promise<operations.GetCrossSellResponseBody>;
45
32
  }
46
33
  //# sourceMappingURL=products.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/sdk/products.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,QAAS,SAAQ,SAAS;IACrC,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAsB;IACvC,IAAI,OAAO,IAAI,mBAAmB,CAEjC;IAED;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,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,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
@@ -1,22 +1,13 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { catalogProductsGet } from "../funcs/catalogProductsGet.js";
5
- import { catalogProductsGetCrossSells } from "../funcs/catalogProductsGetCrossSells.js";
6
- import { catalogProductsGetSimilar } from "../funcs/catalogProductsGetSimilar.js";
7
- import { catalogProductsGetUpsells } from "../funcs/catalogProductsGetUpsells.js";
8
- import { catalogProductsList } from "../funcs/catalogProductsList.js";
4
+ import { productsGetSimilar } from "../funcs/productsGetSimilar.js";
5
+ import { productsGetUpsells } from "../funcs/productsGetUpsells.js";
6
+ import { productsList } from "../funcs/productsList.js";
7
+ import { productsListCrossSells } from "../funcs/productsListCrossSells.js";
9
8
  import { ClientSDK } from "../lib/sdks.js";
10
9
  import { unwrapAsync } from "../types/fp.js";
11
- import { CeStorefrontReviews } from "./cestorefrontreviews.js";
12
- import { Variants } from "./variants.js";
13
10
  export class Products extends ClientSDK {
14
- get variants() {
15
- return (this._variants ?? (this._variants = new Variants(this._options)));
16
- }
17
- get reviews() {
18
- return (this._reviews ?? (this._reviews = new CeStorefrontReviews(this._options)));
19
- }
20
11
  /**
21
12
  * List all products
22
13
  *
@@ -24,16 +15,7 @@ export class Products extends ClientSDK {
24
15
  * Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
25
16
  */
26
17
  async list(request, options) {
27
- return unwrapAsync(catalogProductsList(this, request, options));
28
- }
29
- /**
30
- * Retrieve a product detail
31
- *
32
- * @remarks
33
- * Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
34
- */
35
- async get(request, options) {
36
- return unwrapAsync(catalogProductsGet(this, request, options));
18
+ return unwrapAsync(productsList(this, request, options));
37
19
  }
38
20
  /**
39
21
  * Retrieve similar products
@@ -42,7 +24,7 @@ export class Products extends ClientSDK {
42
24
  * 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.
43
25
  */
44
26
  async getSimilar(request, options) {
45
- return unwrapAsync(catalogProductsGetSimilar(this, request, options));
27
+ return unwrapAsync(productsGetSimilar(this, request, options));
46
28
  }
47
29
  /**
48
30
  * Retrieve up-sell products
@@ -51,7 +33,7 @@ export class Products extends ClientSDK {
51
33
  * Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
52
34
  */
53
35
  async getUpsells(request, options) {
54
- return unwrapAsync(catalogProductsGetUpsells(this, request, options));
36
+ return unwrapAsync(productsGetUpsells(this, request, options));
55
37
  }
56
38
  /**
57
39
  * Retrieve cross-sell products
@@ -59,8 +41,8 @@ export class Products extends ClientSDK {
59
41
  * @remarks
60
42
  * Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
61
43
  */
62
- async getCrossSells(request, options) {
63
- return unwrapAsync(catalogProductsGetCrossSells(this, request, options));
44
+ async listCrossSells(request, options) {
45
+ return unwrapAsync(productsListCrossSells(this, request, options));
64
46
  }
65
47
  }
66
48
  //# sourceMappingURL=products.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/sdk/products.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC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ACjB,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/sdk/products.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,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,IAAI,CACR,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -2,11 +2,11 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
3
  export declare class Reviews extends ClientSDK {
4
4
  /**
5
- * Retrieve all reviews
5
+ * List all product reviews
6
6
  *
7
7
  * @remarks
8
- * Retrieve all reviews
8
+ * List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.
9
9
  */
10
- list(request: operations.GetCustomersUserIdReviewsRequest, options?: RequestOptions): Promise<operations.GetCustomersUserIdReviewsResponseBody>;
10
+ list(request: operations.GetProductsIdReviewsRequest, options?: RequestOptions): Promise<operations.GetProductsIdReviewsResponseBody>;
11
11
  }
12
12
  //# sourceMappingURL=reviews.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/sdk/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
1
+ {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/sdk/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
@@ -1,18 +1,18 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { customersReviewsList } from "../funcs/customersReviewsList.js";
4
+ import { catalogProductsReviewsList } from "../funcs/catalogProductsReviewsList.js";
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { unwrapAsync } from "../types/fp.js";
7
7
  export class Reviews extends ClientSDK {
8
8
  /**
9
- * Retrieve all reviews
9
+ * List all product reviews
10
10
  *
11
11
  * @remarks
12
- * Retrieve all reviews
12
+ * List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.
13
13
  */
14
14
  async list(request, options) {
15
- return unwrapAsync(customersReviewsList(this, request, options));
15
+ return unwrapAsync(catalogProductsReviewsList(this, request, options));
16
16
  }
17
17
  }
18
18
  //# sourceMappingURL=reviews.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../src/sdk/reviews.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"reviews.js","sourceRoot":"","sources":["../../src/sdk/reviews.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/esm/sdk/sdk.d.ts CHANGED
@@ -1,22 +1,38 @@
1
1
  import { ClientSDK } from "../lib/sdks.js";
2
+ import { Addresses } from "./addresses.js";
2
3
  import { Analytics } from "./analytics.js";
3
4
  import { Auth } from "./auth.js";
5
+ import { AuthUser } from "./authuser.js";
4
6
  import { Campaigns } from "./campaigns.js";
5
7
  import { Carts } from "./carts.js";
6
8
  import { Catalog } from "./catalog.js";
9
+ import { CatalogProductReviews } from "./catalogproductreviews.js";
10
+ import { CatalogProducts } from "./catalogproducts.js";
11
+ import { CatalogSkus } from "./catalogskus.js";
7
12
  import { Checkout } from "./checkout.js";
8
13
  import { Customers } from "./customers.js";
9
14
  import { Juspay } from "./juspay.js";
15
+ import { LoyaltyPoints } from "./loyaltypoints.js";
10
16
  import { Offers } from "./offers.js";
11
17
  import { Orders } from "./orders.js";
12
18
  import { Payments } from "./payments.js";
13
- import { Shipping } from "./shipping.js";
19
+ import { Products } from "./products.js";
20
+ import { Shipment } from "./shipment.js";
14
21
  import { User } from "./user.js";
22
+ import { Users } from "./users.js";
15
23
  import { Utils } from "./utils.js";
16
24
  import { Wishlist } from "./wishlist.js";
17
25
  export declare class CeStorefront extends ClientSDK {
26
+ private _products?;
27
+ get products(): Products;
28
+ private _catalogSkus?;
29
+ get catalogSkus(): CatalogSkus;
30
+ private _catalogProducts?;
31
+ get catalogProducts(): CatalogProducts;
18
32
  private _catalog?;
19
33
  get catalog(): Catalog;
34
+ private _catalogProductReviews?;
35
+ get catalogProductReviews(): CatalogProductReviews;
20
36
  private _carts?;
21
37
  get carts(): Carts;
22
38
  private _checkout?;
@@ -27,14 +43,22 @@ export declare class CeStorefront extends ClientSDK {
27
43
  get wishlist(): Wishlist;
28
44
  private _customers?;
29
45
  get customers(): Customers;
46
+ private _addresses?;
47
+ get addresses(): Addresses;
48
+ private _loyaltyPoints?;
49
+ get loyaltyPoints(): LoyaltyPoints;
30
50
  private _orders?;
31
51
  get orders(): Orders;
32
- private _shipping?;
33
- get shipping(): Shipping;
52
+ private _shipment?;
53
+ get shipment(): Shipment;
34
54
  private _auth?;
35
55
  get auth(): Auth;
56
+ private _users?;
57
+ get users(): Users;
36
58
  private _user?;
37
59
  get user(): User;
60
+ private _authUser?;
61
+ get authUser(): AuthUser;
38
62
  private _payments?;
39
63
  get payments(): Payments;
40
64
  private _juspay?;
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE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,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;CACF"}
package/esm/sdk/sdk.js CHANGED
@@ -2,25 +2,45 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { ClientSDK } from "../lib/sdks.js";
5
+ import { Addresses } from "./addresses.js";
5
6
  import { Analytics } from "./analytics.js";
6
7
  import { Auth } from "./auth.js";
8
+ import { AuthUser } from "./authuser.js";
7
9
  import { Campaigns } from "./campaigns.js";
8
10
  import { Carts } from "./carts.js";
9
11
  import { Catalog } from "./catalog.js";
12
+ import { CatalogProductReviews } from "./catalogproductreviews.js";
13
+ import { CatalogProducts } from "./catalogproducts.js";
14
+ import { CatalogSkus } from "./catalogskus.js";
10
15
  import { Checkout } from "./checkout.js";
11
16
  import { Customers } from "./customers.js";
12
17
  import { Juspay } from "./juspay.js";
18
+ import { LoyaltyPoints } from "./loyaltypoints.js";
13
19
  import { Offers } from "./offers.js";
14
20
  import { Orders } from "./orders.js";
15
21
  import { Payments } from "./payments.js";
16
- import { Shipping } from "./shipping.js";
22
+ import { Products } from "./products.js";
23
+ import { Shipment } from "./shipment.js";
17
24
  import { User } from "./user.js";
25
+ import { Users } from "./users.js";
18
26
  import { Utils } from "./utils.js";
19
27
  import { Wishlist } from "./wishlist.js";
20
28
  export class CeStorefront extends ClientSDK {
29
+ get products() {
30
+ return (this._products ?? (this._products = new Products(this._options)));
31
+ }
32
+ get catalogSkus() {
33
+ return (this._catalogSkus ?? (this._catalogSkus = new CatalogSkus(this._options)));
34
+ }
35
+ get catalogProducts() {
36
+ return (this._catalogProducts ?? (this._catalogProducts = new CatalogProducts(this._options)));
37
+ }
21
38
  get catalog() {
22
39
  return (this._catalog ?? (this._catalog = new Catalog(this._options)));
23
40
  }
41
+ get catalogProductReviews() {
42
+ return (this._catalogProductReviews ?? (this._catalogProductReviews = new CatalogProductReviews(this._options)));
43
+ }
24
44
  get carts() {
25
45
  return (this._carts ?? (this._carts = new Carts(this._options)));
26
46
  }
@@ -36,18 +56,30 @@ export class CeStorefront extends ClientSDK {
36
56
  get customers() {
37
57
  return (this._customers ?? (this._customers = new Customers(this._options)));
38
58
  }
59
+ get addresses() {
60
+ return (this._addresses ?? (this._addresses = new Addresses(this._options)));
61
+ }
62
+ get loyaltyPoints() {
63
+ return (this._loyaltyPoints ?? (this._loyaltyPoints = new LoyaltyPoints(this._options)));
64
+ }
39
65
  get orders() {
40
66
  return (this._orders ?? (this._orders = new Orders(this._options)));
41
67
  }
42
- get shipping() {
43
- return (this._shipping ?? (this._shipping = new Shipping(this._options)));
68
+ get shipment() {
69
+ return (this._shipment ?? (this._shipment = new Shipment(this._options)));
44
70
  }
45
71
  get auth() {
46
72
  return (this._auth ?? (this._auth = new Auth(this._options)));
47
73
  }
74
+ get users() {
75
+ return (this._users ?? (this._users = new Users(this._options)));
76
+ }
48
77
  get user() {
49
78
  return (this._user ?? (this._user = new User(this._options)));
50
79
  }
80
+ get authUser() {
81
+ return (this._authUser ?? (this._authUser = new AuthUser(this._options)));
82
+ }
51
83
  get payments() {
52
84
  return (this._payments ?? (this._payments = new Payments(this._options)));
53
85
  }
@@ -1 +1 @@
1
- {"version":3,"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,CAAC;IAC1D,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAGD,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
- export declare class Shipping extends ClientSDK {
3
+ export declare class Shipment extends ClientSDK {
4
4
  /**
5
5
  * Check pincode serviceability
6
6
  *
@@ -9,4 +9,4 @@ export declare class Shipping extends ClientSDK {
9
9
  */
10
10
  checkPincodeServiceability(request: operations.GetShipmentPincodeServiceabilityRequest, options?: RequestOptions): Promise<operations.GetShipmentPincodeServiceabilityResponseBody>;
11
11
  }
12
- //# sourceMappingURL=shipping.d.ts.map
12
+ //# sourceMappingURL=shipment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../../src/sdk/shipping.ts"],"names":[],"mappings":"AAKA,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,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;CAOpE"}
1
+ {"version":3,"file":"shipment.d.ts","sourceRoot":"","sources":["../../src/sdk/shipment.ts"],"names":[],"mappings":"AAKA,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,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;CAOpE"}
@@ -1,10 +1,10 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { shippingCheckPincodeServiceability } from "../funcs/shippingCheckPincodeServiceability.js";
4
+ import { shipmentCheckPincodeServiceability } from "../funcs/shipmentCheckPincodeServiceability.js";
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { unwrapAsync } from "../types/fp.js";
7
- export class Shipping extends ClientSDK {
7
+ export class Shipment extends ClientSDK {
8
8
  /**
9
9
  * Check pincode serviceability
10
10
  *
@@ -12,7 +12,7 @@ export class Shipping extends ClientSDK {
12
12
  * Check shipment delivery availability in an area by pincode
13
13
  */
14
14
  async checkPincodeServiceability(request, options) {
15
- return unwrapAsync(shippingCheckPincodeServiceability(this, request, options));
15
+ return unwrapAsync(shipmentCheckPincodeServiceability(this, request, options));
16
16
  }
17
17
  }
18
- //# sourceMappingURL=shipping.js.map
18
+ //# sourceMappingURL=shipment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipping.js","sourceRoot":"","sources":["../../src/sdk/shipping.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,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,0BAA0B,CAC9B,OAA2D,EAC3D,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"shipment.js","sourceRoot":"","sources":["../../src/sdk/shipment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,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,0BAA0B,CAC9B,OAA2D,EAC3D,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/esm/sdk/user.d.ts CHANGED
@@ -1,7 +1,40 @@
1
- import { ClientSDK } from "../lib/sdks.js";
2
- import { NotificationPreferences } from "./notificationpreferences.js";
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as operations from "../models/operations/index.js";
3
3
  export declare class User extends ClientSDK {
4
- private _notificationPreferences?;
5
- get notificationPreferences(): NotificationPreferences;
4
+ /**
5
+ * Update a user
6
+ *
7
+ * @remarks
8
+ * 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.
9
+ */
10
+ update(request: operations.PutAuthUserIdRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdResponseBody>;
11
+ /**
12
+ * Update profile image
13
+ *
14
+ * @remarks
15
+ * 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.
16
+ */
17
+ updateProfileImage(request: operations.PutAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdProfileImageResponseBody>;
18
+ /**
19
+ * Delete profile image
20
+ *
21
+ * @remarks
22
+ * 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.
23
+ */
24
+ deleteProfileImage(request: operations.DeleteAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.DeleteAuthUserIdProfileImageResponseBody>;
25
+ /**
26
+ * Reset password
27
+ *
28
+ * @remarks
29
+ * Reset password
30
+ */
31
+ resetPassword(request: operations.PostAuthResetPasswordRequestBody, options?: RequestOptions): Promise<operations.PostAuthResetPasswordResponseBody>;
32
+ /**
33
+ * Update user notification preferences
34
+ *
35
+ * @remarks
36
+ * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
37
+ */
38
+ updateNotificationPreferences(request: operations.PutAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody>;
6
39
  }
7
40
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/sdk/user.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,qBAAa,IAAK,SAAQ,SAAS;IACjC,OAAO,CAAC,wBAAwB,CAAC,CAA0B;IAC3D,IAAI,uBAAuB,IAAI,uBAAuB,CAIrD;CACF"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/sdk/user.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQ/D;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;OAKG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;CAOxE"}
package/esm/sdk/user.js CHANGED
@@ -1,11 +1,58 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
+ import { userDeleteProfileImage } from "../funcs/userDeleteProfileImage.js";
5
+ import { userResetPassword } from "../funcs/userResetPassword.js";
6
+ import { userUpdate } from "../funcs/userUpdate.js";
7
+ import { userUpdateNotificationPreferences } from "../funcs/userUpdateNotificationPreferences.js";
8
+ import { userUpdateProfileImage } from "../funcs/userUpdateProfileImage.js";
4
9
  import { ClientSDK } from "../lib/sdks.js";
5
- import { NotificationPreferences } from "./notificationpreferences.js";
10
+ import { unwrapAsync } from "../types/fp.js";
6
11
  export class User extends ClientSDK {
7
- get notificationPreferences() {
8
- return (this._notificationPreferences ?? (this._notificationPreferences = new NotificationPreferences(this._options)));
12
+ /**
13
+ * Update a user
14
+ *
15
+ * @remarks
16
+ * 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.
17
+ */
18
+ async update(request, options) {
19
+ return unwrapAsync(userUpdate(this, request, options));
20
+ }
21
+ /**
22
+ * Update profile image
23
+ *
24
+ * @remarks
25
+ * 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.
26
+ */
27
+ async updateProfileImage(request, options) {
28
+ return unwrapAsync(userUpdateProfileImage(this, request, options));
29
+ }
30
+ /**
31
+ * Delete profile image
32
+ *
33
+ * @remarks
34
+ * 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.
35
+ */
36
+ async deleteProfileImage(request, options) {
37
+ return unwrapAsync(userDeleteProfileImage(this, request, options));
38
+ }
39
+ /**
40
+ * Reset password
41
+ *
42
+ * @remarks
43
+ * Reset password
44
+ */
45
+ async resetPassword(request, options) {
46
+ return unwrapAsync(userResetPassword(this, request, options));
47
+ }
48
+ /**
49
+ * Update user notification preferences
50
+ *
51
+ * @remarks
52
+ * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
53
+ */
54
+ async updateNotificationPreferences(request, options) {
55
+ return unwrapAsync(userUpdateNotificationPreferences(this, request, options));
9
56
  }
10
57
  }
11
58
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/sdk/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,OAAO,IAAK,SAAQ,SAAS;IAEjC,IAAI,uBAAuB;QACzB,OAAO,CAAC,IAAI,CAAC,wBAAwB,KAA7B,IAAI,CAAC,wBAAwB,GAAK,IAAI,uBAAuB,CACnE,IAAI,CAAC,QAAQ,CACd,EAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/sdk/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,UAAU,CAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAA+D,EAC/D,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as operations from "../models/operations/index.js";
3
+ export declare class Users extends ClientSDK {
4
+ /**
5
+ * Retrieve a user
6
+ *
7
+ * @remarks
8
+ * 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.
9
+ */
10
+ get(request: operations.GetAuthUserIdRequest, options?: RequestOptions): Promise<operations.GetAuthUserIdResponseBody>;
11
+ /**
12
+ * Retrieve a profile image
13
+ *
14
+ * @remarks
15
+ * 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.
16
+ */
17
+ getProfileImage(request: operations.GetAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.GetAuthUserIdProfileImageResponseBody>;
18
+ /**
19
+ * Create user notification preferences
20
+ *
21
+ * @remarks
22
+ * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
23
+ */
24
+ createNotificationPreferences(request: operations.PostAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody>;
25
+ }
26
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iDAAiD,CAAC;CAOzE"}
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { usersCreateNotificationPreferences } from "../funcs/usersCreateNotificationPreferences.js";
5
+ import { usersGet } from "../funcs/usersGet.js";
6
+ import { usersGetProfileImage } from "../funcs/usersGetProfileImage.js";
7
+ import { ClientSDK } from "../lib/sdks.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+ export class Users extends ClientSDK {
10
+ /**
11
+ * Retrieve a user
12
+ *
13
+ * @remarks
14
+ * 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.
15
+ */
16
+ async get(request, options) {
17
+ return unwrapAsync(usersGet(this, request, options));
18
+ }
19
+ /**
20
+ * Retrieve a profile image
21
+ *
22
+ * @remarks
23
+ * 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.
24
+ */
25
+ async getProfileImage(request, options) {
26
+ return unwrapAsync(usersGetProfileImage(this, request, options));
27
+ }
28
+ /**
29
+ * Create user notification preferences
30
+ *
31
+ * @remarks
32
+ * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
33
+ */
34
+ async createNotificationPreferences(request, options) {
35
+ return unwrapAsync(usersCreateNotificationPreferences(this, request, options));
36
+ }
37
+ }
38
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/sdk/users.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,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,GAAG,CACP,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,QAAQ,CACzB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAgE,EAChE,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,13 +1,9 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
+ import { Countries } from "./countries.js";
3
4
  export declare class Utils extends ClientSDK {
4
- /**
5
- * Retrieve all countries
6
- *
7
- * @remarks
8
- * Retrieve all countries
9
- */
10
- getCountries(options?: RequestOptions): Promise<operations.GetCommonCountriesResponseBody>;
5
+ private _countries?;
6
+ get countries(): Countries;
11
7
  /**
12
8
  * Retrieve country wise states
13
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/sdk/utils.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAOrD;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2CAA2C,CAAC;IAQlE;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,+CAA+C,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oDAAoD,CAAC;CAO5E"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/sdk/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,KAAM,SAAQ,SAAS;IAClC,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2CAA2C,CAAC;IAQlE;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,+CAA+C,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oDAAoD,CAAC;CAO5E"}