ce-storefront 0.3.17 → 0.3.19

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 +108 -129
  3. package/docs/sdks/addresses/README.md +363 -4
  4. package/docs/sdks/auth/README.md +0 -72
  5. package/docs/sdks/{cestorefrontaddresses → cestorefrontreviews}/README.md +34 -123
  6. package/docs/sdks/cestorefrontuser/README.md +735 -6
  7. package/docs/sdks/customers/README.md +18 -192
  8. package/docs/sdks/juspay/README.md +15 -15
  9. package/docs/sdks/loyalty/README.md +81 -0
  10. package/docs/sdks/notificationpreferences/README.md +162 -4
  11. package/docs/sdks/orders/README.md +5 -163
  12. package/docs/sdks/payments/README.md +95 -15
  13. package/docs/sdks/products/README.md +94 -15
  14. package/docs/sdks/{cards → refunds}/README.md +11 -12
  15. package/docs/sdks/reviews/README.md +13 -17
  16. package/docs/sdks/{catalogproducts → shipments}/README.md +12 -12
  17. package/docs/sdks/{shipment → shipping}/README.md +5 -5
  18. package/docs/sdks/{catalogskus → skus}/README.md +3 -3
  19. package/docs/sdks/user/README.md +0 -425
  20. package/docs/sdks/utils/README.md +72 -0
  21. package/docs/sdks/wishlist/README.md +5 -5
  22. package/esm/funcs/{authUsersAddProfileImage.d.ts → authUserAddProfileImage.d.ts} +2 -2
  23. package/esm/funcs/authUserAddProfileImage.d.ts.map +1 -0
  24. package/esm/funcs/{authUsersAddProfileImage.js → authUserAddProfileImage.js} +2 -2
  25. package/esm/funcs/authUserAddProfileImage.js.map +1 -0
  26. package/esm/funcs/{authUserDeactivate.d.ts → authUserDeactivateAccount.d.ts} +2 -2
  27. package/esm/funcs/authUserDeactivateAccount.d.ts.map +1 -0
  28. package/esm/funcs/{authUserDeactivate.js → authUserDeactivateAccount.js} +2 -2
  29. package/esm/funcs/authUserDeactivateAccount.js.map +1 -0
  30. package/esm/funcs/{userDeleteProfileImage.d.ts → authUserDeleteProfileImage.d.ts} +2 -2
  31. package/esm/funcs/authUserDeleteProfileImage.d.ts.map +1 -0
  32. package/esm/funcs/{userDeleteProfileImage.js → authUserDeleteProfileImage.js} +2 -2
  33. package/esm/funcs/authUserDeleteProfileImage.js.map +1 -0
  34. package/esm/funcs/{usersGet.d.ts → authUserGet.d.ts} +2 -2
  35. package/esm/funcs/authUserGet.d.ts.map +1 -0
  36. package/esm/funcs/{usersGet.js → authUserGet.js} +2 -2
  37. package/esm/funcs/authUserGet.js.map +1 -0
  38. package/esm/funcs/{usersGetProfileImage.d.ts → authUserGetProfileImage.d.ts} +2 -2
  39. package/esm/funcs/authUserGetProfileImage.d.ts.map +1 -0
  40. package/esm/funcs/{usersGetProfileImage.js → authUserGetProfileImage.js} +2 -2
  41. package/esm/funcs/authUserGetProfileImage.js.map +1 -0
  42. package/esm/funcs/{authLogout.d.ts → authUserLogout.d.ts} +2 -2
  43. package/esm/funcs/authUserLogout.d.ts.map +1 -0
  44. package/esm/funcs/{authLogout.js → authUserLogout.js} +2 -2
  45. package/esm/funcs/authUserLogout.js.map +1 -0
  46. package/esm/funcs/{userResetPassword.d.ts → authUserResetPassword.d.ts} +2 -2
  47. package/esm/funcs/authUserResetPassword.d.ts.map +1 -0
  48. package/esm/funcs/{userResetPassword.js → authUserResetPassword.js} +2 -2
  49. package/esm/funcs/authUserResetPassword.js.map +1 -0
  50. package/esm/funcs/{userUpdate.d.ts → authUserUpdate.d.ts} +2 -2
  51. package/esm/funcs/authUserUpdate.d.ts.map +1 -0
  52. package/esm/funcs/{userUpdate.js → authUserUpdate.js} +2 -2
  53. package/esm/funcs/authUserUpdate.js.map +1 -0
  54. package/esm/funcs/{userUpdateProfileImage.d.ts → authUserUpdateProfileImage.d.ts} +2 -2
  55. package/esm/funcs/authUserUpdateProfileImage.d.ts.map +1 -0
  56. package/esm/funcs/{userUpdateProfileImage.js → authUserUpdateProfileImage.js} +2 -2
  57. package/esm/funcs/authUserUpdateProfileImage.js.map +1 -0
  58. package/esm/funcs/{addressesGet.d.ts → catalogProductsGetCrossSells.d.ts} +4 -4
  59. package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +1 -0
  60. package/esm/funcs/{productsListCrossSells.js → catalogProductsGetCrossSells.js} +2 -2
  61. package/esm/funcs/catalogProductsGetCrossSells.js.map +1 -0
  62. package/esm/funcs/{productsGetSimilar.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
  63. package/esm/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
  64. package/esm/funcs/{productsGetSimilar.js → catalogProductsGetSimilar.js} +2 -2
  65. package/esm/funcs/catalogProductsGetSimilar.js.map +1 -0
  66. package/esm/funcs/{productsGetUpsells.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
  67. package/esm/funcs/catalogProductsGetUpsells.d.ts.map +1 -0
  68. package/esm/funcs/{productsGetUpsells.js → catalogProductsGetUpsells.js} +2 -2
  69. package/esm/funcs/catalogProductsGetUpsells.js.map +1 -0
  70. package/esm/funcs/{productsList.d.ts → catalogProductsList.d.ts} +2 -2
  71. package/esm/funcs/{customersAddAddress.d.ts.map → catalogProductsList.d.ts.map} +1 -1
  72. package/esm/funcs/{productsList.js → catalogProductsList.js} +2 -2
  73. package/esm/funcs/catalogProductsList.js.map +1 -0
  74. package/esm/funcs/{catalogProductReviewsCreate.d.ts → catalogProductsReviewsCreate.d.ts} +2 -2
  75. package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +1 -0
  76. package/esm/funcs/{catalogProductReviewsCreate.js → catalogProductsReviewsCreate.js} +2 -2
  77. package/esm/funcs/catalogProductsReviewsCreate.js.map +1 -0
  78. package/esm/funcs/{customersUpdate.d.ts → customersAddressesAdd.d.ts} +4 -4
  79. package/esm/funcs/customersAddressesAdd.d.ts.map +1 -0
  80. package/esm/funcs/{customersAddAddress.js → customersAddressesAdd.js} +2 -2
  81. package/esm/funcs/customersAddressesAdd.js.map +1 -0
  82. package/esm/funcs/customersAddressesGet.d.ts +16 -0
  83. package/esm/funcs/customersAddressesGet.d.ts.map +1 -0
  84. package/esm/funcs/{addressesGet.js → customersAddressesGet.js} +2 -2
  85. package/esm/funcs/customersAddressesGet.js.map +1 -0
  86. package/esm/funcs/{customersGet.d.ts → customersGetCustomersId.d.ts} +2 -2
  87. package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
  88. package/esm/funcs/{customersGet.js → customersGetCustomersId.js} +2 -2
  89. package/esm/funcs/customersGetCustomersId.js.map +1 -0
  90. package/esm/funcs/{loyaltyPointsListActivities.d.ts → customersLoyaltyListActivities.d.ts} +2 -2
  91. package/esm/funcs/customersLoyaltyListActivities.d.ts.map +1 -0
  92. package/esm/funcs/{loyaltyPointsListActivities.js → customersLoyaltyListActivities.js} +2 -2
  93. package/esm/funcs/customersLoyaltyListActivities.js.map +1 -0
  94. package/esm/funcs/{customersCreate.d.ts → customersPostCustomers.d.ts} +2 -2
  95. package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
  96. package/esm/funcs/{customersCreate.js → customersPostCustomers.js} +2 -2
  97. package/esm/funcs/customersPostCustomers.js.map +1 -0
  98. package/esm/funcs/customersPutCustomersId.d.ts +16 -0
  99. package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
  100. package/esm/funcs/{customersUpdate.js → customersPutCustomersId.js} +2 -2
  101. package/esm/funcs/customersPutCustomersId.js.map +1 -0
  102. package/esm/funcs/{ordersGetPaymentStatus.d.ts → customersReviewsList.d.ts} +4 -4
  103. package/esm/funcs/{usersGetProfileImage.d.ts.map → customersReviewsList.d.ts.map} +1 -1
  104. package/esm/funcs/{customersGetReviews.js → customersReviewsList.js} +2 -2
  105. package/esm/funcs/{usersGetProfileImage.js.map → customersReviewsList.js.map} +1 -1
  106. package/esm/funcs/{juspayGetCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
  107. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
  108. package/esm/funcs/{juspayGetCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
  109. package/esm/funcs/{juspayCreateOrder.js.map → juspayGetPaymentsJuspayCustomer.js.map} +1 -1
  110. package/esm/funcs/{wishlistRemoveItem.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +5 -4
  111. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
  112. package/esm/funcs/{juspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
  113. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
  114. package/esm/funcs/{juspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
  115. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
  116. package/esm/funcs/{juspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
  117. package/esm/funcs/{juspayGetCustomer.js.map → juspayPostPaymentsJuspayCreateOrder.js.map} +1 -1
  118. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +15 -0
  119. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
  120. package/esm/funcs/{ordersGetPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
  121. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
  122. package/esm/funcs/{ordersGetRefunds.d.ts → ordersRefundsList.d.ts} +2 -2
  123. package/esm/funcs/{userResetPassword.d.ts.map → ordersRefundsList.d.ts.map} +1 -1
  124. package/esm/funcs/{ordersGetRefunds.js → ordersRefundsList.js} +2 -2
  125. package/esm/funcs/ordersRefundsList.js.map +1 -0
  126. package/esm/funcs/{ordersGetShipments.d.ts → ordersShipmentsList.d.ts} +2 -2
  127. package/esm/funcs/ordersShipmentsList.d.ts.map +1 -0
  128. package/esm/funcs/{ordersGetShipments.js → ordersShipmentsList.js} +2 -2
  129. package/esm/funcs/ordersShipmentsList.js.map +1 -0
  130. package/esm/funcs/{paymentsListMethods.d.ts → paymentsGetMethods.d.ts} +2 -2
  131. package/esm/funcs/{authUserDeactivate.d.ts.map → paymentsGetMethods.d.ts.map} +1 -1
  132. package/esm/funcs/{paymentsListMethods.js → paymentsGetMethods.js} +2 -2
  133. package/esm/funcs/paymentsGetMethods.js.map +1 -0
  134. package/esm/funcs/{paymentsCardsList.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
  135. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
  136. package/esm/funcs/{paymentsCardsList.js → paymentsGetPaymentsCards.js} +2 -2
  137. package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
  138. package/esm/funcs/{paymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
  139. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
  140. package/esm/funcs/{paymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
  141. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
  142. package/esm/funcs/{paymentsAddCard.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
  143. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
  144. package/esm/funcs/{paymentsAddCard.js → paymentsPostPaymentsCards.js} +2 -2
  145. package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
  146. package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
  147. package/esm/funcs/{shipmentCheckPincodeServiceability.d.ts.map → shippingCheckPincodeServiceability.d.ts.map} +1 -1
  148. package/esm/funcs/{shipmentCheckPincodeServiceability.js → shippingCheckPincodeServiceability.js} +2 -2
  149. package/esm/funcs/{shipmentCheckPincodeServiceability.js.map → shippingCheckPincodeServiceability.js.map} +1 -1
  150. package/esm/funcs/{usersCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
  151. package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
  152. package/esm/funcs/{usersCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +2 -2
  153. package/esm/funcs/userNotificationPreferencesCreate.js.map +1 -0
  154. package/esm/funcs/{authUserNotificationPreferencesGet.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
  155. package/esm/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
  156. package/esm/funcs/{authUserNotificationPreferencesGet.js → userNotificationPreferencesGet.js} +2 -2
  157. package/esm/funcs/userNotificationPreferencesGet.js.map +1 -0
  158. package/esm/funcs/{userUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
  159. package/esm/funcs/{userUpdateNotificationPreferences.d.ts.map → userNotificationPreferencesUpdate.d.ts.map} +1 -1
  160. package/esm/funcs/{userUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +2 -2
  161. package/esm/funcs/{userUpdateNotificationPreferences.js.map → userNotificationPreferencesUpdate.js.map} +1 -1
  162. package/esm/funcs/{utilsCountriesGet.d.ts → utilsGetCountries.d.ts} +2 -2
  163. package/esm/funcs/{utilsCountriesGet.d.ts.map → utilsGetCountries.d.ts.map} +1 -1
  164. package/esm/funcs/{utilsCountriesGet.js → utilsGetCountries.js} +2 -2
  165. package/esm/funcs/{utilsCountriesGet.js.map → utilsGetCountries.js.map} +1 -1
  166. package/esm/funcs/{customersAddAddress.d.ts → wishlistDelete.d.ts} +4 -4
  167. package/esm/funcs/wishlistDelete.d.ts.map +1 -0
  168. package/esm/funcs/{wishlistRemoveItem.js → wishlistDelete.js} +2 -2
  169. package/esm/funcs/wishlistDelete.js.map +1 -0
  170. package/esm/lib/config.d.ts +2 -2
  171. package/esm/lib/config.js +2 -2
  172. package/esm/sdk/addresses.d.ts +28 -0
  173. package/esm/sdk/addresses.d.ts.map +1 -1
  174. package/esm/sdk/addresses.js +42 -2
  175. package/esm/sdk/addresses.js.map +1 -1
  176. package/esm/sdk/auth.d.ts +0 -10
  177. package/esm/sdk/auth.d.ts.map +1 -1
  178. package/esm/sdk/auth.js +0 -14
  179. package/esm/sdk/auth.js.map +1 -1
  180. package/esm/sdk/catalog.d.ts +5 -2
  181. package/esm/sdk/catalog.d.ts.map +1 -1
  182. package/esm/sdk/catalog.js +6 -2
  183. package/esm/sdk/catalog.js.map +1 -1
  184. package/esm/sdk/cestorefrontreviews.d.ts +19 -0
  185. package/esm/sdk/cestorefrontreviews.d.ts.map +1 -0
  186. package/esm/sdk/cestorefrontreviews.js +28 -0
  187. package/esm/sdk/cestorefrontreviews.js.map +1 -0
  188. package/esm/sdk/cestorefrontuser.d.ts +64 -4
  189. package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
  190. package/esm/sdk/cestorefrontuser.js +92 -6
  191. package/esm/sdk/cestorefrontuser.js.map +1 -1
  192. package/esm/sdk/customers.d.ts +8 -19
  193. package/esm/sdk/customers.d.ts.map +1 -1
  194. package/esm/sdk/customers.js +15 -31
  195. package/esm/sdk/customers.js.map +1 -1
  196. package/esm/sdk/juspay.d.ts +3 -3
  197. package/esm/sdk/juspay.d.ts.map +1 -1
  198. package/esm/sdk/juspay.js +9 -9
  199. package/esm/sdk/juspay.js.map +1 -1
  200. package/esm/sdk/loyalty.d.ts +7 -0
  201. package/esm/sdk/loyalty.d.ts.map +1 -1
  202. package/esm/sdk/loyalty.js +10 -0
  203. package/esm/sdk/loyalty.js.map +1 -1
  204. package/esm/sdk/notificationpreferences.d.ts +14 -0
  205. package/esm/sdk/notificationpreferences.d.ts.map +1 -1
  206. package/esm/sdk/notificationpreferences.js +22 -2
  207. package/esm/sdk/notificationpreferences.js.map +1 -1
  208. package/esm/sdk/orders.d.ts +7 -15
  209. package/esm/sdk/orders.d.ts.map +1 -1
  210. package/esm/sdk/orders.js +11 -23
  211. package/esm/sdk/orders.js.map +1 -1
  212. package/esm/sdk/payments.d.ts +10 -6
  213. package/esm/sdk/payments.d.ts.map +1 -1
  214. package/esm/sdk/payments.js +19 -13
  215. package/esm/sdk/payments.js.map +1 -1
  216. package/esm/sdk/products.d.ts +14 -1
  217. package/esm/sdk/products.d.ts.map +1 -1
  218. package/esm/sdk/products.js +27 -9
  219. package/esm/sdk/products.js.map +1 -1
  220. package/esm/sdk/refunds.d.ts +12 -0
  221. package/esm/sdk/refunds.d.ts.map +1 -0
  222. package/esm/sdk/refunds.js +18 -0
  223. package/esm/sdk/refunds.js.map +1 -0
  224. package/esm/sdk/reviews.d.ts +3 -3
  225. package/esm/sdk/reviews.d.ts.map +1 -1
  226. package/esm/sdk/reviews.js +4 -4
  227. package/esm/sdk/reviews.js.map +1 -1
  228. package/esm/sdk/sdk.d.ts +3 -27
  229. package/esm/sdk/sdk.d.ts.map +1 -1
  230. package/esm/sdk/sdk.js +3 -35
  231. package/esm/sdk/sdk.js.map +1 -1
  232. package/esm/sdk/shipments.d.ts +12 -0
  233. package/esm/sdk/shipments.d.ts.map +1 -0
  234. package/esm/sdk/shipments.js +18 -0
  235. package/esm/sdk/shipments.js.map +1 -0
  236. package/esm/sdk/{shipment.d.ts → shipping.d.ts} +2 -2
  237. package/esm/sdk/{shipment.d.ts.map → shipping.d.ts.map} +1 -1
  238. package/esm/sdk/{shipment.js → shipping.js} +4 -4
  239. package/esm/sdk/{shipment.js.map → shipping.js.map} +1 -1
  240. package/esm/sdk/{catalogskus.d.ts → skus.d.ts} +2 -2
  241. package/esm/sdk/skus.d.ts.map +1 -0
  242. package/esm/sdk/{catalogskus.js → skus.js} +2 -2
  243. package/esm/sdk/skus.js.map +1 -0
  244. package/esm/sdk/user.d.ts +4 -37
  245. package/esm/sdk/user.d.ts.map +1 -1
  246. package/esm/sdk/user.js +3 -50
  247. package/esm/sdk/user.js.map +1 -1
  248. package/esm/sdk/utils.d.ts +7 -3
  249. package/esm/sdk/utils.d.ts.map +1 -1
  250. package/esm/sdk/utils.js +9 -3
  251. package/esm/sdk/utils.js.map +1 -1
  252. package/esm/sdk/wishlist.d.ts +1 -1
  253. package/esm/sdk/wishlist.d.ts.map +1 -1
  254. package/esm/sdk/wishlist.js +3 -3
  255. package/esm/sdk/wishlist.js.map +1 -1
  256. package/jsr.json +1 -1
  257. package/package.json +1 -1
  258. package/src/funcs/{authUsersAddProfileImage.ts → authUserAddProfileImage.ts} +1 -1
  259. package/src/funcs/{authUserDeactivate.ts → authUserDeactivateAccount.ts} +1 -1
  260. package/src/funcs/{userDeleteProfileImage.ts → authUserDeleteProfileImage.ts} +1 -1
  261. package/src/funcs/{usersGet.ts → authUserGet.ts} +1 -1
  262. package/src/funcs/{usersGetProfileImage.ts → authUserGetProfileImage.ts} +1 -1
  263. package/src/funcs/{authLogout.ts → authUserLogout.ts} +1 -1
  264. package/src/funcs/{userResetPassword.ts → authUserResetPassword.ts} +1 -1
  265. package/src/funcs/{userUpdate.ts → authUserUpdate.ts} +1 -1
  266. package/src/funcs/{userUpdateProfileImage.ts → authUserUpdateProfileImage.ts} +1 -1
  267. package/src/funcs/{productsListCrossSells.ts → catalogProductsGetCrossSells.ts} +1 -1
  268. package/src/funcs/{productsGetSimilar.ts → catalogProductsGetSimilar.ts} +1 -1
  269. package/src/funcs/{productsGetUpsells.ts → catalogProductsGetUpsells.ts} +1 -1
  270. package/src/funcs/{productsList.ts → catalogProductsList.ts} +1 -1
  271. package/src/funcs/{catalogProductReviewsCreate.ts → catalogProductsReviewsCreate.ts} +1 -1
  272. package/src/funcs/{customersAddAddress.ts → customersAddressesAdd.ts} +1 -1
  273. package/src/funcs/{addressesGet.ts → customersAddressesGet.ts} +1 -1
  274. package/src/funcs/{customersGet.ts → customersGetCustomersId.ts} +1 -1
  275. package/src/funcs/{loyaltyPointsListActivities.ts → customersLoyaltyListActivities.ts} +1 -1
  276. package/src/funcs/{customersCreate.ts → customersPostCustomers.ts} +1 -1
  277. package/src/funcs/{customersUpdate.ts → customersPutCustomersId.ts} +1 -1
  278. package/src/funcs/{customersGetReviews.ts → customersReviewsList.ts} +1 -1
  279. package/src/funcs/{juspayGetCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  280. package/src/funcs/{juspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  281. package/src/funcs/{juspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  282. package/src/funcs/{ordersGetPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  283. package/src/funcs/{ordersGetRefunds.ts → ordersRefundsList.ts} +1 -1
  284. package/src/funcs/{ordersGetShipments.ts → ordersShipmentsList.ts} +1 -1
  285. package/src/funcs/{paymentsListMethods.ts → paymentsGetMethods.ts} +1 -1
  286. package/src/funcs/{paymentsCardsList.ts → paymentsGetPaymentsCards.ts} +1 -1
  287. package/src/funcs/{paymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  288. package/src/funcs/{paymentsAddCard.ts → paymentsPostPaymentsCards.ts} +1 -1
  289. package/src/funcs/{shipmentCheckPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
  290. package/src/funcs/{usersCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
  291. package/src/funcs/{authUserNotificationPreferencesGet.ts → userNotificationPreferencesGet.ts} +1 -1
  292. package/src/funcs/{userUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
  293. package/src/funcs/{utilsCountriesGet.ts → utilsGetCountries.ts} +1 -1
  294. package/src/funcs/{wishlistRemoveItem.ts → wishlistDelete.ts} +1 -1
  295. package/src/lib/config.ts +2 -2
  296. package/src/sdk/addresses.ts +74 -2
  297. package/src/sdk/auth.ts +0 -22
  298. package/src/sdk/catalog.ts +10 -4
  299. package/src/sdk/cestorefrontreviews.ts +45 -0
  300. package/src/sdk/cestorefrontuser.ts +160 -8
  301. package/src/sdk/customers.ts +19 -49
  302. package/src/sdk/juspay.ts +9 -9
  303. package/src/sdk/loyalty.ts +18 -0
  304. package/src/sdk/notificationpreferences.ts +38 -2
  305. package/src/sdk/orders.ts +15 -39
  306. package/src/sdk/payments.ts +27 -15
  307. package/src/sdk/products.ts +39 -9
  308. package/src/sdk/{cards.ts → refunds.ts} +7 -7
  309. package/src/sdk/reviews.ts +6 -6
  310. package/src/sdk/sdk.ts +4 -54
  311. package/src/sdk/shipments.ts +27 -0
  312. package/src/sdk/{shipment.ts → shipping.ts} +3 -3
  313. package/src/sdk/{catalogskus.ts → skus.ts} +1 -1
  314. package/src/sdk/user.ts +6 -90
  315. package/src/sdk/utils.ts +14 -4
  316. package/src/sdk/wishlist.ts +3 -3
  317. package/docs/sdks/authuser/README.md +0 -80
  318. package/docs/sdks/catalogproductreviews/README.md +0 -97
  319. package/docs/sdks/cestorefrontproducts/README.md +0 -6
  320. package/docs/sdks/cestorefrontusers/README.md +0 -92
  321. package/docs/sdks/countries/README.md +0 -79
  322. package/docs/sdks/loyaltypoints/README.md +0 -88
  323. package/docs/sdks/users/README.md +0 -240
  324. package/esm/funcs/addressesGet.d.ts.map +0 -1
  325. package/esm/funcs/addressesGet.js.map +0 -1
  326. package/esm/funcs/authLogout.d.ts.map +0 -1
  327. package/esm/funcs/authLogout.js.map +0 -1
  328. package/esm/funcs/authUserDeactivate.js.map +0 -1
  329. package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +0 -1
  330. package/esm/funcs/authUserNotificationPreferencesGet.js.map +0 -1
  331. package/esm/funcs/authUsersAddProfileImage.d.ts.map +0 -1
  332. package/esm/funcs/authUsersAddProfileImage.js.map +0 -1
  333. package/esm/funcs/catalogProductReviewsCreate.d.ts.map +0 -1
  334. package/esm/funcs/catalogProductReviewsCreate.js.map +0 -1
  335. package/esm/funcs/customersAddAddress.js.map +0 -1
  336. package/esm/funcs/customersCreate.d.ts.map +0 -1
  337. package/esm/funcs/customersCreate.js.map +0 -1
  338. package/esm/funcs/customersGet.d.ts.map +0 -1
  339. package/esm/funcs/customersGet.js.map +0 -1
  340. package/esm/funcs/customersGetReviews.d.ts +0 -15
  341. package/esm/funcs/customersGetReviews.d.ts.map +0 -1
  342. package/esm/funcs/customersGetReviews.js.map +0 -1
  343. package/esm/funcs/customersUpdate.d.ts.map +0 -1
  344. package/esm/funcs/customersUpdate.js.map +0 -1
  345. package/esm/funcs/juspayCreateCustomer.d.ts +0 -17
  346. package/esm/funcs/juspayCreateCustomer.d.ts.map +0 -1
  347. package/esm/funcs/juspayCreateCustomer.js.map +0 -1
  348. package/esm/funcs/juspayCreateOrder.d.ts.map +0 -1
  349. package/esm/funcs/juspayGetCustomer.d.ts.map +0 -1
  350. package/esm/funcs/loyaltyPointsListActivities.d.ts.map +0 -1
  351. package/esm/funcs/loyaltyPointsListActivities.js.map +0 -1
  352. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +0 -1
  353. package/esm/funcs/ordersGetPaymentStatus.js.map +0 -1
  354. package/esm/funcs/ordersGetRefunds.d.ts.map +0 -1
  355. package/esm/funcs/ordersGetRefunds.js.map +0 -1
  356. package/esm/funcs/ordersGetShipments.d.ts.map +0 -1
  357. package/esm/funcs/ordersGetShipments.js.map +0 -1
  358. package/esm/funcs/paymentsAddCard.d.ts.map +0 -1
  359. package/esm/funcs/paymentsAddCard.js.map +0 -1
  360. package/esm/funcs/paymentsCardsList.d.ts.map +0 -1
  361. package/esm/funcs/paymentsCardsList.js.map +0 -1
  362. package/esm/funcs/paymentsListMethods.d.ts.map +0 -1
  363. package/esm/funcs/paymentsListMethods.js.map +0 -1
  364. package/esm/funcs/paymentsVerifyVpa.d.ts.map +0 -1
  365. package/esm/funcs/paymentsVerifyVpa.js.map +0 -1
  366. package/esm/funcs/productsGetSimilar.d.ts.map +0 -1
  367. package/esm/funcs/productsGetSimilar.js.map +0 -1
  368. package/esm/funcs/productsGetUpsells.d.ts.map +0 -1
  369. package/esm/funcs/productsGetUpsells.js.map +0 -1
  370. package/esm/funcs/productsList.d.ts.map +0 -1
  371. package/esm/funcs/productsList.js.map +0 -1
  372. package/esm/funcs/productsListCrossSells.d.ts +0 -16
  373. package/esm/funcs/productsListCrossSells.d.ts.map +0 -1
  374. package/esm/funcs/productsListCrossSells.js.map +0 -1
  375. package/esm/funcs/userDeleteProfileImage.d.ts.map +0 -1
  376. package/esm/funcs/userDeleteProfileImage.js.map +0 -1
  377. package/esm/funcs/userResetPassword.js.map +0 -1
  378. package/esm/funcs/userUpdate.d.ts.map +0 -1
  379. package/esm/funcs/userUpdate.js.map +0 -1
  380. package/esm/funcs/userUpdateProfileImage.d.ts.map +0 -1
  381. package/esm/funcs/userUpdateProfileImage.js.map +0 -1
  382. package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +0 -1
  383. package/esm/funcs/usersCreateNotificationPreferences.js.map +0 -1
  384. package/esm/funcs/usersGet.d.ts.map +0 -1
  385. package/esm/funcs/usersGet.js.map +0 -1
  386. package/esm/funcs/wishlistRemoveItem.d.ts.map +0 -1
  387. package/esm/funcs/wishlistRemoveItem.js.map +0 -1
  388. package/esm/sdk/authuser.d.ts +0 -12
  389. package/esm/sdk/authuser.d.ts.map +0 -1
  390. package/esm/sdk/authuser.js +0 -18
  391. package/esm/sdk/authuser.js.map +0 -1
  392. package/esm/sdk/cards.d.ts +0 -12
  393. package/esm/sdk/cards.d.ts.map +0 -1
  394. package/esm/sdk/cards.js +0 -18
  395. package/esm/sdk/cards.js.map +0 -1
  396. package/esm/sdk/catalogproductreviews.d.ts +0 -12
  397. package/esm/sdk/catalogproductreviews.d.ts.map +0 -1
  398. package/esm/sdk/catalogproductreviews.js +0 -18
  399. package/esm/sdk/catalogproductreviews.js.map +0 -1
  400. package/esm/sdk/catalogproducts.d.ts +0 -12
  401. package/esm/sdk/catalogproducts.d.ts.map +0 -1
  402. package/esm/sdk/catalogproducts.js +0 -18
  403. package/esm/sdk/catalogproducts.js.map +0 -1
  404. package/esm/sdk/catalogskus.d.ts.map +0 -1
  405. package/esm/sdk/catalogskus.js.map +0 -1
  406. package/esm/sdk/cestorefrontaddresses.d.ts +0 -26
  407. package/esm/sdk/cestorefrontaddresses.d.ts.map +0 -1
  408. package/esm/sdk/cestorefrontaddresses.js +0 -38
  409. package/esm/sdk/cestorefrontaddresses.js.map +0 -1
  410. package/esm/sdk/cestorefrontproducts.d.ts +0 -10
  411. package/esm/sdk/cestorefrontproducts.d.ts.map +0 -1
  412. package/esm/sdk/cestorefrontproducts.js +0 -15
  413. package/esm/sdk/cestorefrontproducts.js.map +0 -1
  414. package/esm/sdk/cestorefrontusers.d.ts +0 -12
  415. package/esm/sdk/cestorefrontusers.d.ts.map +0 -1
  416. package/esm/sdk/cestorefrontusers.js +0 -18
  417. package/esm/sdk/cestorefrontusers.js.map +0 -1
  418. package/esm/sdk/countries.d.ts +0 -12
  419. package/esm/sdk/countries.d.ts.map +0 -1
  420. package/esm/sdk/countries.js +0 -18
  421. package/esm/sdk/countries.js.map +0 -1
  422. package/esm/sdk/loyaltypoints.d.ts +0 -12
  423. package/esm/sdk/loyaltypoints.d.ts.map +0 -1
  424. package/esm/sdk/loyaltypoints.js +0 -18
  425. package/esm/sdk/loyaltypoints.js.map +0 -1
  426. package/esm/sdk/users.d.ts +0 -26
  427. package/esm/sdk/users.d.ts.map +0 -1
  428. package/esm/sdk/users.js +0 -38
  429. package/esm/sdk/users.js.map +0 -1
  430. package/src/sdk/authuser.ts +0 -27
  431. package/src/sdk/catalogproductreviews.ts +0 -27
  432. package/src/sdk/catalogproducts.ts +0 -27
  433. package/src/sdk/cestorefrontaddresses.ts +0 -63
  434. package/src/sdk/cestorefrontproducts.ts +0 -19
  435. package/src/sdk/cestorefrontusers.ts +0 -27
  436. package/src/sdk/countries.ts +0 -25
  437. package/src/sdk/loyaltypoints.ts +0 -27
  438. package/src/sdk/users.ts +0 -63
@@ -2,18 +2,121 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { authUserAddProfileImage } from "../funcs/authUserAddProfileImage.js";
5
6
  import { authUserChangePassword } from "../funcs/authUserChangePassword.js";
6
- import { authUserDeactivate } from "../funcs/authUserDeactivate.js";
7
+ import { authUserDeactivateAccount } from "../funcs/authUserDeactivateAccount.js";
8
+ import { authUserDeleteProfileImage } from "../funcs/authUserDeleteProfileImage.js";
9
+ import { authUserForgotPassword } from "../funcs/authUserForgotPassword.js";
10
+ import { authUserGet } from "../funcs/authUserGet.js";
11
+ import { authUserGetProfileImage } from "../funcs/authUserGetProfileImage.js";
12
+ import { authUserLogout } from "../funcs/authUserLogout.js";
13
+ import { authUserResetPassword } from "../funcs/authUserResetPassword.js";
14
+ import { authUserUpdate } from "../funcs/authUserUpdate.js";
15
+ import { authUserUpdateProfileImage } from "../funcs/authUserUpdateProfileImage.js";
7
16
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
17
  import * as operations from "../models/operations/index.js";
9
18
  import { unwrapAsync } from "../types/fp.js";
10
- import { NotificationPreferences } from "./notificationpreferences.js";
11
19
 
12
20
  export class CeStorefrontUser extends ClientSDK {
13
- private _notificationPreferences?: NotificationPreferences;
14
- get notificationPreferences(): NotificationPreferences {
15
- return (this._notificationPreferences ??= new NotificationPreferences(
16
- this._options,
21
+ /**
22
+ * Retrieve a user
23
+ *
24
+ * @remarks
25
+ * 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.
26
+ */
27
+ async get(
28
+ request: operations.GetAuthUserIdRequest,
29
+ options?: RequestOptions,
30
+ ): Promise<operations.GetAuthUserIdResponseBody> {
31
+ return unwrapAsync(authUserGet(
32
+ this,
33
+ request,
34
+ options,
35
+ ));
36
+ }
37
+
38
+ /**
39
+ * Update a user
40
+ *
41
+ * @remarks
42
+ * 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.
43
+ */
44
+ async update(
45
+ request: operations.PutAuthUserIdRequest,
46
+ options?: RequestOptions,
47
+ ): Promise<operations.PutAuthUserIdResponseBody> {
48
+ return unwrapAsync(authUserUpdate(
49
+ this,
50
+ request,
51
+ options,
52
+ ));
53
+ }
54
+
55
+ /**
56
+ * Add profile image
57
+ *
58
+ * @remarks
59
+ * 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.
60
+ */
61
+ async addProfileImage(
62
+ request: operations.PostAuthUserIdProfileImageRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<operations.PostAuthUserIdProfileImageResponseBody> {
65
+ return unwrapAsync(authUserAddProfileImage(
66
+ this,
67
+ request,
68
+ options,
69
+ ));
70
+ }
71
+
72
+ /**
73
+ * Update profile image
74
+ *
75
+ * @remarks
76
+ * 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.
77
+ */
78
+ async updateProfileImage(
79
+ request: operations.PutAuthUserIdProfileImageRequest,
80
+ options?: RequestOptions,
81
+ ): Promise<operations.PutAuthUserIdProfileImageResponseBody> {
82
+ return unwrapAsync(authUserUpdateProfileImage(
83
+ this,
84
+ request,
85
+ options,
86
+ ));
87
+ }
88
+
89
+ /**
90
+ * Delete profile image
91
+ *
92
+ * @remarks
93
+ * 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.
94
+ */
95
+ async deleteProfileImage(
96
+ request: operations.DeleteAuthUserIdProfileImageRequest,
97
+ options?: RequestOptions,
98
+ ): Promise<operations.DeleteAuthUserIdProfileImageResponseBody> {
99
+ return unwrapAsync(authUserDeleteProfileImage(
100
+ this,
101
+ request,
102
+ options,
103
+ ));
104
+ }
105
+
106
+ /**
107
+ * Retrieve a profile image
108
+ *
109
+ * @remarks
110
+ * 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.
111
+ */
112
+ async getProfileImage(
113
+ request: operations.GetAuthUserIdProfileImageRequest,
114
+ options?: RequestOptions,
115
+ ): Promise<operations.GetAuthUserIdProfileImageResponseBody> {
116
+ return unwrapAsync(authUserGetProfileImage(
117
+ this,
118
+ request,
119
+ options,
17
120
  ));
18
121
  }
19
122
 
@@ -23,11 +126,11 @@ export class CeStorefrontUser extends ClientSDK {
23
126
  * @remarks
24
127
  * 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.
25
128
  */
26
- async deactivate(
129
+ async deactivateAccount(
27
130
  request: operations.PutAuthUserIdDeactivateRequest,
28
131
  options?: RequestOptions,
29
132
  ): Promise<operations.PutAuthUserIdDeactivateResponseBody> {
30
- return unwrapAsync(authUserDeactivate(
133
+ return unwrapAsync(authUserDeactivateAccount(
31
134
  this,
32
135
  request,
33
136
  options,
@@ -50,4 +153,53 @@ export class CeStorefrontUser extends ClientSDK {
50
153
  options,
51
154
  ));
52
155
  }
156
+
157
+ /**
158
+ * Forgot password
159
+ *
160
+ * @remarks
161
+ * The Forgot Password API provides a secure mechanism for users to initiate the password recovery process. This API provides one-time password (OTP) token, which facilitas the resetting of user’s account password.
162
+ */
163
+ async forgotPassword(
164
+ request: operations.PostAuthForgotPasswordRequestBody,
165
+ options?: RequestOptions,
166
+ ): Promise<operations.PostAuthForgotPasswordResponseBody> {
167
+ return unwrapAsync(authUserForgotPassword(
168
+ this,
169
+ request,
170
+ options,
171
+ ));
172
+ }
173
+
174
+ /**
175
+ * Reset password
176
+ *
177
+ * @remarks
178
+ * Reset password
179
+ */
180
+ async resetPassword(
181
+ request: operations.PostAuthResetPasswordRequestBody,
182
+ options?: RequestOptions,
183
+ ): Promise<operations.PostAuthResetPasswordResponseBody> {
184
+ return unwrapAsync(authUserResetPassword(
185
+ this,
186
+ request,
187
+ options,
188
+ ));
189
+ }
190
+
191
+ /**
192
+ * Logout user
193
+ *
194
+ * @remarks
195
+ * 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.
196
+ */
197
+ async logout(
198
+ options?: RequestOptions,
199
+ ): Promise<operations.PostAuthLogoutResponseBody> {
200
+ return unwrapAsync(authUserLogout(
201
+ this,
202
+ options,
203
+ ));
204
+ }
53
205
  }
@@ -2,22 +2,21 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { customersAddAddress } from "../funcs/customersAddAddress.js";
6
- import { customersCreate } from "../funcs/customersCreate.js";
7
- import { customersGet } from "../funcs/customersGet.js";
8
- import { customersGetReviews } from "../funcs/customersGetReviews.js";
9
- import { customersUpdate } from "../funcs/customersUpdate.js";
5
+ import { customersGetCustomersId } from "../funcs/customersGetCustomersId.js";
6
+ import { customersPostCustomers } from "../funcs/customersPostCustomers.js";
7
+ import { customersPutCustomersId } from "../funcs/customersPutCustomersId.js";
10
8
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
9
  import * as components from "../models/components/index.js";
12
10
  import * as operations from "../models/operations/index.js";
13
11
  import { unwrapAsync } from "../types/fp.js";
14
- import { CeStorefrontAddresses } from "./cestorefrontaddresses.js";
12
+ import { Addresses } from "./addresses.js";
15
13
  import { Loyalty } from "./loyalty.js";
14
+ import { Reviews } from "./reviews.js";
16
15
 
17
16
  export class Customers extends ClientSDK {
18
- private _addresses?: CeStorefrontAddresses;
19
- get addresses(): CeStorefrontAddresses {
20
- return (this._addresses ??= new CeStorefrontAddresses(this._options));
17
+ private _addresses?: Addresses;
18
+ get addresses(): Addresses {
19
+ return (this._addresses ??= new Addresses(this._options));
21
20
  }
22
21
 
23
22
  private _loyalty?: Loyalty;
@@ -25,17 +24,22 @@ export class Customers extends ClientSDK {
25
24
  return (this._loyalty ??= new Loyalty(this._options));
26
25
  }
27
26
 
27
+ private _reviews?: Reviews;
28
+ get reviews(): Reviews {
29
+ return (this._reviews ??= new Reviews(this._options));
30
+ }
31
+
28
32
  /**
29
33
  * Create customer
30
34
  *
31
35
  * @remarks
32
36
  * Create customer
33
37
  */
34
- async create(
38
+ async postCustomers(
35
39
  request: components.CreateCustomer,
36
40
  options?: RequestOptions,
37
41
  ): Promise<operations.PostCustomersResponseBody> {
38
- return unwrapAsync(customersCreate(
42
+ return unwrapAsync(customersPostCustomers(
39
43
  this,
40
44
  request,
41
45
  options,
@@ -48,11 +52,11 @@ export class Customers extends ClientSDK {
48
52
  * @remarks
49
53
  * Retrieve customer detail.
50
54
  */
51
- async get(
55
+ async getCustomersId(
52
56
  request: operations.GetCustomersIdRequest,
53
57
  options?: RequestOptions,
54
58
  ): Promise<operations.GetCustomersIdResponseBody> {
55
- return unwrapAsync(customersGet(
59
+ return unwrapAsync(customersGetCustomersId(
56
60
  this,
57
61
  request,
58
62
  options,
@@ -65,45 +69,11 @@ export class Customers extends ClientSDK {
65
69
  * @remarks
66
70
  * Update customer detail
67
71
  */
68
- async update(
72
+ async putCustomersId(
69
73
  request: operations.PutCustomersIdRequest,
70
74
  options?: RequestOptions,
71
75
  ): Promise<operations.PutCustomersIdResponseBody> {
72
- return unwrapAsync(customersUpdate(
73
- this,
74
- request,
75
- options,
76
- ));
77
- }
78
-
79
- /**
80
- * Add address
81
- *
82
- * @remarks
83
- * Add new address
84
- */
85
- async addAddress(
86
- request: operations.PostAddressRequest,
87
- options?: RequestOptions,
88
- ): Promise<operations.PostAddressResponseBody> {
89
- return unwrapAsync(customersAddAddress(
90
- this,
91
- request,
92
- options,
93
- ));
94
- }
95
-
96
- /**
97
- * Retrieve all reviews
98
- *
99
- * @remarks
100
- * Retrieve all reviews
101
- */
102
- async getReviews(
103
- request: operations.GetCustomersUserIdReviewsRequest,
104
- options?: RequestOptions,
105
- ): Promise<operations.GetCustomersUserIdReviewsResponseBody> {
106
- return unwrapAsync(customersGetReviews(
76
+ return unwrapAsync(customersPutCustomersId(
107
77
  this,
108
78
  request,
109
79
  options,
package/src/sdk/juspay.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { juspayCreateCustomer } from "../funcs/juspayCreateCustomer.js";
6
- import { juspayCreateOrder } from "../funcs/juspayCreateOrder.js";
7
- import { juspayGetCustomer } from "../funcs/juspayGetCustomer.js";
5
+ import { juspayGetPaymentsJuspayCustomer } from "../funcs/juspayGetPaymentsJuspayCustomer.js";
6
+ import { juspayPostPaymentsJuspayCreateCustomer } from "../funcs/juspayPostPaymentsJuspayCreateCustomer.js";
7
+ import { juspayPostPaymentsJuspayCreateOrder } from "../funcs/juspayPostPaymentsJuspayCreateOrder.js";
8
8
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
9
  import * as components from "../models/components/index.js";
10
10
  import * as operations from "../models/operations/index.js";
@@ -18,11 +18,11 @@ export class Juspay extends ClientSDK {
18
18
  * Creates an order in the Juspay system and fetches the corresponding client_auth_token.
19
19
  * To be used for Express Checkout integration.
20
20
  */
21
- async createOrder(
21
+ async postPaymentsJuspayCreateOrder(
22
22
  request: components.JuspayCreateOrderPayload,
23
23
  options?: RequestOptions,
24
24
  ): Promise<operations.PostPaymentsJuspayCreateOrderResponseBody> {
25
- return unwrapAsync(juspayCreateOrder(
25
+ return unwrapAsync(juspayPostPaymentsJuspayCreateOrder(
26
26
  this,
27
27
  request,
28
28
  options,
@@ -35,11 +35,11 @@ export class Juspay extends ClientSDK {
35
35
  * @remarks
36
36
  * Create customer in juspay.
37
37
  */
38
- async createCustomer(
38
+ async postPaymentsJuspayCreateCustomer(
39
39
  request: components.JuspayCreateCustomerPayload,
40
40
  options?: RequestOptions,
41
41
  ): Promise<operations.PostPaymentsJuspayCreateCustomerResponseBody> {
42
- return unwrapAsync(juspayCreateCustomer(
42
+ return unwrapAsync(juspayPostPaymentsJuspayCreateCustomer(
43
43
  this,
44
44
  request,
45
45
  options,
@@ -52,11 +52,11 @@ export class Juspay extends ClientSDK {
52
52
  * @remarks
53
53
  * Retrieve customer from juspay.
54
54
  */
55
- async getCustomer(
55
+ async getPaymentsJuspayCustomer(
56
56
  request: operations.GetPaymentsJuspayCustomerRequest,
57
57
  options?: RequestOptions,
58
58
  ): Promise<operations.GetPaymentsJuspayCustomerResponseBody> {
59
- return unwrapAsync(juspayGetCustomer(
59
+ return unwrapAsync(juspayGetPaymentsJuspayCustomer(
60
60
  this,
61
61
  request,
62
62
  options,
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { customersLoyaltyGet } from "../funcs/customersLoyaltyGet.js";
6
+ import { customersLoyaltyListActivities } from "../funcs/customersLoyaltyListActivities.js";
6
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
8
  import * as operations from "../models/operations/index.js";
8
9
  import { unwrapAsync } from "../types/fp.js";
@@ -24,4 +25,21 @@ export class Loyalty extends ClientSDK {
24
25
  options,
25
26
  ));
26
27
  }
28
+
29
+ /**
30
+ * List all loyalty points activity
31
+ *
32
+ * @remarks
33
+ * List all loyalty points activity
34
+ */
35
+ async listActivities(
36
+ request: operations.GetLoyaltyPointActivityRequest,
37
+ options?: RequestOptions,
38
+ ): Promise<operations.GetLoyaltyPointActivityResponseBody> {
39
+ return unwrapAsync(customersLoyaltyListActivities(
40
+ this,
41
+ request,
42
+ options,
43
+ ));
44
+ }
27
45
  }
@@ -2,7 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { authUserNotificationPreferencesGet } from "../funcs/authUserNotificationPreferencesGet.js";
5
+ import { userNotificationPreferencesCreate } from "../funcs/userNotificationPreferencesCreate.js";
6
+ import { userNotificationPreferencesGet } from "../funcs/userNotificationPreferencesGet.js";
7
+ import { userNotificationPreferencesUpdate } from "../funcs/userNotificationPreferencesUpdate.js";
6
8
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
9
  import * as operations from "../models/operations/index.js";
8
10
  import { unwrapAsync } from "../types/fp.js";
@@ -18,7 +20,41 @@ export class NotificationPreferences extends ClientSDK {
18
20
  request: operations.GetAuthUserIdNotificationPreferencesRequest,
19
21
  options?: RequestOptions,
20
22
  ): Promise<operations.GetAuthUserIdNotificationPreferencesResponseBody> {
21
- return unwrapAsync(authUserNotificationPreferencesGet(
23
+ return unwrapAsync(userNotificationPreferencesGet(
24
+ this,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Create user notification preferences
32
+ *
33
+ * @remarks
34
+ * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
35
+ */
36
+ async create(
37
+ request: operations.PostAuthUserIdNotificationPreferencesRequest,
38
+ options?: RequestOptions,
39
+ ): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody> {
40
+ return unwrapAsync(userNotificationPreferencesCreate(
41
+ this,
42
+ request,
43
+ options,
44
+ ));
45
+ }
46
+
47
+ /**
48
+ * Update user notification preferences
49
+ *
50
+ * @remarks
51
+ * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
52
+ */
53
+ async update(
54
+ request: operations.PutAuthUserIdNotificationPreferencesRequest,
55
+ options?: RequestOptions,
56
+ ): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody> {
57
+ return unwrapAsync(userNotificationPreferencesUpdate(
22
58
  this,
23
59
  request,
24
60
  options,
package/src/sdk/orders.ts CHANGED
@@ -5,17 +5,27 @@
5
5
  import { ordersCancel } from "../funcs/ordersCancel.js";
6
6
  import { ordersCreate } from "../funcs/ordersCreate.js";
7
7
  import { ordersGet } from "../funcs/ordersGet.js";
8
- import { ordersGetPaymentStatus } from "../funcs/ordersGetPaymentStatus.js";
9
- import { ordersGetRefunds } from "../funcs/ordersGetRefunds.js";
10
- import { ordersGetShipments } from "../funcs/ordersGetShipments.js";
8
+ import { ordersGetOrdersIdPaymentStatus } from "../funcs/ordersGetOrdersIdPaymentStatus.js";
11
9
  import { ordersList } from "../funcs/ordersList.js";
12
10
  import { ordersRetryPayment } from "../funcs/ordersRetryPayment.js";
13
11
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
14
12
  import * as operations from "../models/operations/index.js";
15
13
  import { unwrapAsync } from "../types/fp.js";
16
14
  import { CeStorefrontOrdersPayments } from "./cestorefrontorderspayments.js";
15
+ import { Refunds } from "./refunds.js";
16
+ import { Shipments } from "./shipments.js";
17
17
 
18
18
  export class Orders extends ClientSDK {
19
+ private _shipments?: Shipments;
20
+ get shipments(): Shipments {
21
+ return (this._shipments ??= new Shipments(this._options));
22
+ }
23
+
24
+ private _refunds?: Refunds;
25
+ get refunds(): Refunds {
26
+ return (this._refunds ??= new Refunds(this._options));
27
+ }
28
+
19
29
  private _payments?: CeStorefrontOrdersPayments;
20
30
  get payments(): CeStorefrontOrdersPayments {
21
31
  return (this._payments ??= new CeStorefrontOrdersPayments(this._options));
@@ -72,40 +82,6 @@ export class Orders extends ClientSDK {
72
82
  ));
73
83
  }
74
84
 
75
- /**
76
- * Retrieve order shipments
77
- *
78
- * @remarks
79
- * Retrieve order shipments
80
- */
81
- async getShipments(
82
- request: operations.GetOrdersIdShipmentsRequest,
83
- options?: RequestOptions,
84
- ): Promise<operations.GetOrdersIdShipmentsResponseBody> {
85
- return unwrapAsync(ordersGetShipments(
86
- this,
87
- request,
88
- options,
89
- ));
90
- }
91
-
92
- /**
93
- * Retrieve order refunds
94
- *
95
- * @remarks
96
- * Retrieve order refunds
97
- */
98
- async getRefunds(
99
- request: operations.GetOrdersIdRefundsRequest,
100
- options?: RequestOptions,
101
- ): Promise<operations.GetOrdersIdRefundsResponseBody> {
102
- return unwrapAsync(ordersGetRefunds(
103
- this,
104
- request,
105
- options,
106
- ));
107
- }
108
-
109
85
  /**
110
86
  * Cancel order
111
87
  *
@@ -146,11 +122,11 @@ export class Orders extends ClientSDK {
146
122
  * @remarks
147
123
  * Retrieve payment status of a paricular order.
148
124
  */
149
- async getPaymentStatus(
125
+ async getOrdersIdPaymentStatus(
150
126
  request: operations.GetOrdersIdPaymentStatusRequest,
151
127
  options?: RequestOptions,
152
128
  ): Promise<operations.GetOrdersIdPaymentStatusResponseBody> {
153
- return unwrapAsync(ordersGetPaymentStatus(
129
+ return unwrapAsync(ordersGetOrdersIdPaymentStatus(
154
130
  this,
155
131
  request,
156
132
  options,
@@ -2,21 +2,16 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { paymentsAddCard } from "../funcs/paymentsAddCard.js";
6
5
  import { paymentsGenerateHash } from "../funcs/paymentsGenerateHash.js";
7
- import { paymentsListMethods } from "../funcs/paymentsListMethods.js";
8
- import { paymentsVerifyVpa } from "../funcs/paymentsVerifyVpa.js";
6
+ import { paymentsGetMethods } from "../funcs/paymentsGetMethods.js";
7
+ import { paymentsGetPaymentsCards } from "../funcs/paymentsGetPaymentsCards.js";
8
+ import { paymentsGetPaymentsVerifyVpa } from "../funcs/paymentsGetPaymentsVerifyVpa.js";
9
+ import { paymentsPostPaymentsCards } from "../funcs/paymentsPostPaymentsCards.js";
9
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
11
  import * as operations from "../models/operations/index.js";
11
12
  import { unwrapAsync } from "../types/fp.js";
12
- import { Cards } from "./cards.js";
13
13
 
14
14
  export class Payments extends ClientSDK {
15
- private _cards?: Cards;
16
- get cards(): Cards {
17
- return (this._cards ??= new Cards(this._options));
18
- }
19
-
20
15
  /**
21
16
  * Generate hash
22
17
  *
@@ -40,11 +35,28 @@ export class Payments extends ClientSDK {
40
35
  * @remarks
41
36
  * List all payment methods
42
37
  */
43
- async listMethods(
38
+ async getMethods(
44
39
  request: operations.GetPaymentMethodsRequest,
45
40
  options?: RequestOptions,
46
41
  ): Promise<operations.GetPaymentMethodsResponseBody> {
47
- return unwrapAsync(paymentsListMethods(
42
+ return unwrapAsync(paymentsGetMethods(
43
+ this,
44
+ request,
45
+ options,
46
+ ));
47
+ }
48
+
49
+ /**
50
+ * List all saved cards
51
+ *
52
+ * @remarks
53
+ * List all saved cards.
54
+ */
55
+ async getPaymentsCards(
56
+ request: operations.GetPaymentsCardsRequest,
57
+ options?: RequestOptions,
58
+ ): Promise<operations.GetPaymentsCardsResponseBody> {
59
+ return unwrapAsync(paymentsGetPaymentsCards(
48
60
  this,
49
61
  request,
50
62
  options,
@@ -57,11 +69,11 @@ export class Payments extends ClientSDK {
57
69
  * @remarks
58
70
  * Add a new card
59
71
  */
60
- async addCard(
72
+ async postPaymentsCards(
61
73
  request: operations.PostPaymentsCardsRequestBody,
62
74
  options?: RequestOptions,
63
75
  ): Promise<operations.PostPaymentsCardsResponseBody> {
64
- return unwrapAsync(paymentsAddCard(
76
+ return unwrapAsync(paymentsPostPaymentsCards(
65
77
  this,
66
78
  request,
67
79
  options,
@@ -75,11 +87,11 @@ export class Payments extends ClientSDK {
75
87
  * 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.
76
88
  * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
77
89
  */
78
- async verifyVpa(
90
+ async getPaymentsVerifyVpa(
79
91
  request: operations.GetPaymentsVerifyVpaRequest,
80
92
  options?: RequestOptions,
81
93
  ): Promise<operations.GetPaymentsVerifyVpaResponseBody> {
82
- return unwrapAsync(paymentsVerifyVpa(
94
+ return unwrapAsync(paymentsGetPaymentsVerifyVpa(
83
95
  this,
84
96
  request,
85
97
  options,