ce-storefront 0.0.1 → 0.0.4

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 (415) hide show
  1. package/.devcontainer/README.md +5 -0
  2. package/README.md +101 -117
  3. package/docs/sdks/addresses/README.md +78 -0
  4. package/docs/sdks/analytics/README.md +5 -5
  5. package/docs/sdks/auth/README.md +91 -24
  6. package/docs/sdks/campaigns/README.md +1 -79
  7. package/docs/sdks/cestorefrontuser/README.md +850 -0
  8. package/docs/sdks/{common → coupons}/README.md +9 -9
  9. package/docs/sdks/customers/README.md +1 -83
  10. package/docs/sdks/{upsell → customersapi}/README.md +16 -10
  11. package/docs/sdks/{otp → newsletter}/README.md +10 -10
  12. package/docs/sdks/{returns → notificationpreferences}/README.md +35 -39
  13. package/docs/sdks/offers/README.md +1 -152
  14. package/docs/sdks/orders/README.md +0 -73
  15. package/docs/sdks/products/README.md +228 -0
  16. package/docs/sdks/{recommended → promotions}/README.md +8 -9
  17. package/docs/sdks/reviews/README.md +5 -5
  18. package/docs/sdks/shipping/README.md +5 -5
  19. package/docs/sdks/user/README.md +1 -927
  20. package/docs/sdks/{countries → utils}/README.md +81 -8
  21. package/funcs/{analyticsTrackEvent.d.ts → analyticsTrack.d.ts} +2 -2
  22. package/funcs/analyticsTrack.d.ts.map +1 -0
  23. package/funcs/{analyticsTrackEvent.js → analyticsTrack.js} +3 -3
  24. package/funcs/analyticsTrack.js.map +1 -0
  25. package/funcs/{authOtpGenerate.d.ts → authGenerateOtp.d.ts} +2 -2
  26. package/funcs/{authOtpGenerate.d.ts.map → authGenerateOtp.d.ts.map} +1 -1
  27. package/funcs/{authOtpGenerate.js → authGenerateOtp.js} +3 -3
  28. package/funcs/{authOtpGenerate.js.map → authGenerateOtp.js.map} +1 -1
  29. package/funcs/authLoginAnonymously.d.ts +16 -0
  30. package/funcs/authLoginAnonymously.d.ts.map +1 -0
  31. package/funcs/{ordersGetReturns.js → authLoginAnonymously.js} +21 -13
  32. package/funcs/authLoginAnonymously.js.map +1 -0
  33. package/funcs/{authTokenRefresh.d.ts → authRefreshToken.d.ts} +2 -2
  34. package/funcs/{authTokenRefresh.d.ts.map → authRefreshToken.d.ts.map} +1 -1
  35. package/funcs/{authTokenRefresh.js → authRefreshToken.js} +3 -3
  36. package/funcs/{authTokenRefresh.js.map → authRefreshToken.js.map} +1 -1
  37. package/funcs/{authGetUser.d.ts → authUserGet.d.ts} +2 -2
  38. package/funcs/{authGetUser.d.ts.map → authUserGet.d.ts.map} +1 -1
  39. package/funcs/{authGetUser.js → authUserGet.js} +3 -3
  40. package/funcs/{authGetUser.js.map → authUserGet.js.map} +1 -1
  41. package/funcs/{authUpdateUser.d.ts → authUserUpdate.d.ts} +2 -2
  42. package/funcs/{authUpdateUser.d.ts.map → authUserUpdate.d.ts.map} +1 -1
  43. package/funcs/{authUpdateUser.js → authUserUpdate.js} +3 -3
  44. package/funcs/{authUpdateUser.js.map → authUserUpdate.js.map} +1 -1
  45. package/funcs/{campaignsSubscribeNewsletter.d.ts → campaignsNewsletterSubscribe.d.ts} +2 -2
  46. package/funcs/{campaignsSubscribeNewsletter.d.ts.map → campaignsNewsletterSubscribe.d.ts.map} +1 -1
  47. package/funcs/{campaignsSubscribeNewsletter.js → campaignsNewsletterSubscribe.js} +3 -3
  48. package/funcs/{campaignsSubscribeNewsletter.js.map → campaignsNewsletterSubscribe.js.map} +1 -1
  49. package/funcs/{catalogProductsCrossSellList.d.ts → catalogProductsGetCrossSells.d.ts} +2 -2
  50. package/funcs/{catalogProductsCrossSellList.d.ts.map → catalogProductsGetCrossSells.d.ts.map} +1 -1
  51. package/funcs/{catalogProductsCrossSellList.js → catalogProductsGetCrossSells.js} +3 -3
  52. package/funcs/{catalogProductsCrossSellList.js.map → catalogProductsGetCrossSells.js.map} +1 -1
  53. package/funcs/{catalogProductsSimilarList.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
  54. package/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
  55. package/funcs/{catalogProductsSimilarList.js → catalogProductsGetSimilar.js} +3 -3
  56. package/funcs/catalogProductsGetSimilar.js.map +1 -0
  57. package/funcs/{catalogProductsUpSellList.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
  58. package/funcs/{catalogProductsUpSellList.d.ts.map → catalogProductsGetUpsells.d.ts.map} +1 -1
  59. package/funcs/{catalogProductsUpSellList.js → catalogProductsGetUpsells.js} +3 -3
  60. package/funcs/{catalogProductsUpSellList.js.map → catalogProductsGetUpsells.js.map} +1 -1
  61. package/funcs/{catalogProductsRecommendedList.d.ts → customersAPIGetRecommendedProducts.d.ts} +3 -3
  62. package/funcs/customersAPIGetRecommendedProducts.d.ts.map +1 -0
  63. package/funcs/customersAPIGetRecommendedProducts.js +97 -0
  64. package/funcs/customersAPIGetRecommendedProducts.js.map +1 -0
  65. package/funcs/{commonCountriesGetPincodes.d.ts → customersAddressesList.d.ts} +4 -4
  66. package/funcs/customersAddressesList.d.ts.map +1 -0
  67. package/funcs/{customersGetAddresses.js → customersAddressesList.js} +3 -3
  68. package/funcs/customersAddressesList.js.map +1 -0
  69. package/funcs/{customersReviewsGetAll.d.ts → customersReviewsList.d.ts} +2 -2
  70. package/funcs/customersReviewsList.d.ts.map +1 -0
  71. package/funcs/{customersReviewsGetAll.js → customersReviewsList.js} +3 -3
  72. package/funcs/customersReviewsList.js.map +1 -0
  73. package/funcs/{offersGetCoupons.d.ts → offersCouponsList.d.ts} +2 -2
  74. package/funcs/offersCouponsList.d.ts.map +1 -0
  75. package/funcs/{offersGetCoupons.js → offersCouponsList.js} +3 -3
  76. package/funcs/{ordersGetReturns.js.map → offersCouponsList.js.map} +1 -1
  77. package/funcs/{offersGetPromotions.d.ts → offersPromotionsList.d.ts} +2 -2
  78. package/funcs/offersPromotionsList.d.ts.map +1 -0
  79. package/funcs/{offersGetPromotions.js → offersPromotionsList.js} +3 -3
  80. package/funcs/offersPromotionsList.js.map +1 -0
  81. package/funcs/{shippingGetPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
  82. package/funcs/shippingCheckPincodeServiceability.d.ts.map +1 -0
  83. package/funcs/{shippingGetPincodeServiceability.js → shippingCheckPincodeServiceability.js} +3 -3
  84. package/funcs/shippingCheckPincodeServiceability.js.map +1 -0
  85. package/funcs/{authUserCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
  86. package/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
  87. package/funcs/{authUserCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +3 -3
  88. package/funcs/userNotificationPreferencesCreate.js.map +1 -0
  89. package/funcs/{authUserGetNotificationPreferences.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
  90. package/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
  91. package/funcs/{authUserGetNotificationPreferences.js → userNotificationPreferencesGet.js} +3 -3
  92. package/funcs/userNotificationPreferencesGet.js.map +1 -0
  93. package/funcs/{authUserUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
  94. package/funcs/userNotificationPreferencesUpdate.d.ts.map +1 -0
  95. package/funcs/{authUserUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +3 -3
  96. package/funcs/userNotificationPreferencesUpdate.js.map +1 -0
  97. package/funcs/{commonGetCountries.d.ts → utilsGetCountries.d.ts} +2 -2
  98. package/funcs/utilsGetCountries.d.ts.map +1 -0
  99. package/funcs/{commonGetCountries.js → utilsGetCountries.js} +3 -3
  100. package/funcs/utilsGetCountries.js.map +1 -0
  101. package/funcs/{customersGetAddresses.d.ts → utilsGetPincodes.d.ts} +4 -4
  102. package/funcs/utilsGetPincodes.d.ts.map +1 -0
  103. package/funcs/{commonCountriesGetPincodes.js → utilsGetPincodes.js} +3 -3
  104. package/funcs/utilsGetPincodes.js.map +1 -0
  105. package/funcs/{commonCountriesGetStates.d.ts → utilsGetStates.d.ts} +2 -2
  106. package/funcs/utilsGetStates.d.ts.map +1 -0
  107. package/funcs/{commonCountriesGetStates.js → utilsGetStates.js} +3 -3
  108. package/funcs/utilsGetStates.js.map +1 -0
  109. package/lib/config.d.ts +4 -4
  110. package/lib/config.d.ts.map +1 -1
  111. package/lib/config.js +3 -8
  112. package/lib/config.js.map +1 -1
  113. package/models/components/cartitem.js +4 -4
  114. package/models/components/cartitem.js.map +1 -1
  115. package/models/components/index.d.ts +1 -3
  116. package/models/components/index.d.ts.map +1 -1
  117. package/models/components/index.js +1 -3
  118. package/models/components/index.js.map +1 -1
  119. package/models/components/productattribute.js +1 -1
  120. package/models/components/productattribute.js.map +1 -1
  121. package/models/components/productdetail.js +5 -5
  122. package/models/components/productdetail.js.map +1 -1
  123. package/models/components/productlist.js +5 -5
  124. package/models/components/productlist.js.map +1 -1
  125. package/models/components/productreview.js +1 -1
  126. package/models/components/productreview.js.map +1 -1
  127. package/models/components/productshipping.js +2 -2
  128. package/models/components/productshipping.js.map +1 -1
  129. package/models/components/productsubscription.js +1 -1
  130. package/models/components/productsubscription.js.map +1 -1
  131. package/models/components/recommendedproduct.d.ts +149 -0
  132. package/models/components/recommendedproduct.d.ts.map +1 -0
  133. package/models/components/recommendedproduct.js +230 -0
  134. package/models/components/recommendedproduct.js.map +1 -0
  135. package/models/components/skuinfo.js +4 -4
  136. package/models/components/skuinfo.js.map +1 -1
  137. package/models/errors/unauthorized.js +1 -1
  138. package/models/errors/unauthorized.js.map +1 -1
  139. package/models/operations/getrecommendedproducts.d.ts +82 -0
  140. package/models/operations/getrecommendedproducts.d.ts.map +1 -0
  141. package/models/operations/getrecommendedproducts.js +93 -0
  142. package/models/operations/getrecommendedproducts.js.map +1 -0
  143. package/models/operations/index.d.ts +2 -5
  144. package/models/operations/index.d.ts.map +1 -1
  145. package/models/operations/index.js +2 -5
  146. package/models/operations/index.js.map +1 -1
  147. package/models/operations/postauthanonymous.d.ts +101 -0
  148. package/models/operations/postauthanonymous.d.ts.map +1 -0
  149. package/models/operations/postauthanonymous.js +124 -0
  150. package/models/operations/postauthanonymous.js.map +1 -0
  151. package/models/operations/postcartitemid.js +1 -1
  152. package/models/operations/postcartitemid.js.map +1 -1
  153. package/package.json +5 -1
  154. package/sdk/addresses.d.ts +7 -0
  155. package/sdk/addresses.d.ts.map +1 -1
  156. package/sdk/addresses.js +10 -0
  157. package/sdk/addresses.js.map +1 -1
  158. package/sdk/analytics.d.ts +1 -1
  159. package/sdk/analytics.d.ts.map +1 -1
  160. package/sdk/analytics.js +3 -3
  161. package/sdk/analytics.js.map +1 -1
  162. package/sdk/auth.d.ts +16 -14
  163. package/sdk/auth.d.ts.map +1 -1
  164. package/sdk/auth.js +22 -21
  165. package/sdk/auth.js.map +1 -1
  166. package/sdk/campaigns.d.ts +4 -9
  167. package/sdk/campaigns.d.ts.map +1 -1
  168. package/sdk/campaigns.js +4 -10
  169. package/sdk/campaigns.js.map +1 -1
  170. package/sdk/cestorefrontuser.d.ts +82 -0
  171. package/sdk/cestorefrontuser.d.ts.map +1 -0
  172. package/sdk/cestorefrontuser.js +122 -0
  173. package/sdk/cestorefrontuser.js.map +1 -0
  174. package/sdk/coupons.d.ts +12 -0
  175. package/sdk/coupons.d.ts.map +1 -0
  176. package/sdk/coupons.js +22 -0
  177. package/sdk/coupons.js.map +1 -0
  178. package/sdk/customers.d.ts +1 -9
  179. package/sdk/customers.d.ts.map +1 -1
  180. package/sdk/customers.js +0 -11
  181. package/sdk/customers.js.map +1 -1
  182. package/sdk/{recommended.d.ts → customersapi.d.ts} +4 -4
  183. package/sdk/customersapi.d.ts.map +1 -0
  184. package/sdk/{recommended.js → customersapi.js} +8 -8
  185. package/sdk/customersapi.js.map +1 -0
  186. package/sdk/newsletter.d.ts +12 -0
  187. package/sdk/newsletter.d.ts.map +1 -0
  188. package/sdk/newsletter.js +22 -0
  189. package/sdk/newsletter.js.map +1 -0
  190. package/sdk/notificationpreferences.d.ts +26 -0
  191. package/sdk/notificationpreferences.d.ts.map +1 -0
  192. package/sdk/notificationpreferences.js +42 -0
  193. package/sdk/notificationpreferences.js.map +1 -0
  194. package/sdk/offers.d.ts +7 -16
  195. package/sdk/offers.d.ts.map +1 -1
  196. package/sdk/offers.js +8 -19
  197. package/sdk/offers.js.map +1 -1
  198. package/sdk/orders.d.ts +0 -10
  199. package/sdk/orders.d.ts.map +1 -1
  200. package/sdk/orders.js +0 -15
  201. package/sdk/orders.js.map +1 -1
  202. package/sdk/products.d.ts +21 -12
  203. package/sdk/products.d.ts.map +1 -1
  204. package/sdk/products.js +30 -20
  205. package/sdk/products.js.map +1 -1
  206. package/sdk/promotions.d.ts +12 -0
  207. package/sdk/promotions.d.ts.map +1 -0
  208. package/sdk/promotions.js +22 -0
  209. package/sdk/promotions.js.map +1 -0
  210. package/sdk/reviews.d.ts +1 -1
  211. package/sdk/reviews.d.ts.map +1 -1
  212. package/sdk/reviews.js +3 -3
  213. package/sdk/reviews.js.map +1 -1
  214. package/sdk/sdk.d.ts +9 -3
  215. package/sdk/sdk.d.ts.map +1 -1
  216. package/sdk/sdk.js +13 -3
  217. package/sdk/sdk.js.map +1 -1
  218. package/sdk/shipping.d.ts +1 -1
  219. package/sdk/shipping.d.ts.map +1 -1
  220. package/sdk/shipping.js +3 -3
  221. package/sdk/shipping.js.map +1 -1
  222. package/sdk/user.d.ts +4 -86
  223. package/sdk/user.d.ts.map +1 -1
  224. package/sdk/user.js +4 -120
  225. package/sdk/user.js.map +1 -1
  226. package/sdk/{countries.d.ts → utils.d.ts} +9 -2
  227. package/sdk/utils.d.ts.map +1 -0
  228. package/sdk/utils.js +42 -0
  229. package/sdk/utils.js.map +1 -0
  230. package/src/funcs/{analyticsTrackEvent.ts → analyticsTrack.ts} +1 -1
  231. package/src/funcs/{authOtpGenerate.ts → authGenerateOtp.ts} +1 -1
  232. package/src/funcs/{ordersGetReturns.ts → authLoginAnonymously.ts} +23 -14
  233. package/src/funcs/{authTokenRefresh.ts → authRefreshToken.ts} +1 -1
  234. package/src/funcs/{authGetUser.ts → authUserGet.ts} +1 -1
  235. package/src/funcs/{authUpdateUser.ts → authUserUpdate.ts} +1 -1
  236. package/src/funcs/{campaignsSubscribeNewsletter.ts → campaignsNewsletterSubscribe.ts} +1 -1
  237. package/src/funcs/{catalogProductsCrossSellList.ts → catalogProductsGetCrossSells.ts} +1 -1
  238. package/src/funcs/{catalogProductsSimilarList.ts → catalogProductsGetSimilar.ts} +1 -1
  239. package/src/funcs/{catalogProductsUpSellList.ts → catalogProductsGetUpsells.ts} +1 -1
  240. package/src/funcs/{ordersReturnsCreate.ts → customersAPIGetRecommendedProducts.ts} +14 -18
  241. package/src/funcs/{customersGetAddresses.ts → customersAddressesList.ts} +1 -1
  242. package/src/funcs/{customersReviewsGetAll.ts → customersReviewsList.ts} +1 -1
  243. package/src/funcs/{offersGetCoupons.ts → offersCouponsList.ts} +1 -1
  244. package/src/funcs/{offersGetPromotions.ts → offersPromotionsList.ts} +1 -1
  245. package/src/funcs/{shippingGetPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
  246. package/src/funcs/{authUserCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
  247. package/src/funcs/{authUserGetNotificationPreferences.ts → userNotificationPreferencesGet.ts} +1 -1
  248. package/src/funcs/{authUserUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
  249. package/src/funcs/{commonGetCountries.ts → utilsGetCountries.ts} +1 -1
  250. package/src/funcs/{commonCountriesGetPincodes.ts → utilsGetPincodes.ts} +1 -1
  251. package/src/funcs/{commonCountriesGetStates.ts → utilsGetStates.ts} +1 -1
  252. package/src/lib/config.ts +3 -8
  253. package/src/models/components/cartitem.ts +4 -4
  254. package/src/models/components/index.ts +1 -3
  255. package/src/models/components/productattribute.ts +1 -1
  256. package/src/models/components/productdetail.ts +5 -5
  257. package/src/models/components/productlist.ts +5 -5
  258. package/src/models/components/productreview.ts +1 -1
  259. package/src/models/components/productshipping.ts +2 -2
  260. package/src/models/components/productsubscription.ts +1 -1
  261. package/src/models/components/recommendedproduct.ts +359 -0
  262. package/src/models/components/skuinfo.ts +4 -4
  263. package/src/models/errors/unauthorized.ts +1 -1
  264. package/src/models/operations/getrecommendedproducts.ts +140 -0
  265. package/src/models/operations/index.ts +2 -5
  266. package/src/models/operations/postauthanonymous.ts +190 -0
  267. package/src/models/operations/postcartitemid.ts +1 -1
  268. package/src/sdk/addresses.ts +14 -0
  269. package/src/sdk/analytics.ts +3 -3
  270. package/src/sdk/auth.ts +31 -28
  271. package/src/sdk/campaigns.ts +5 -15
  272. package/src/sdk/cestorefrontuser.ts +160 -0
  273. package/src/sdk/coupons.ts +20 -0
  274. package/src/sdk/customers.ts +1 -17
  275. package/src/sdk/{recommended.ts → customersapi.ts} +8 -5
  276. package/src/sdk/newsletter.ts +23 -0
  277. package/src/sdk/notificationpreferences.ts +51 -0
  278. package/src/sdk/offers.ts +9 -21
  279. package/src/sdk/orders.ts +0 -17
  280. package/src/sdk/products.ts +42 -24
  281. package/src/sdk/promotions.ts +20 -0
  282. package/src/sdk/reviews.ts +3 -3
  283. package/src/sdk/sdk.ts +16 -4
  284. package/src/sdk/shipping.ts +3 -3
  285. package/src/sdk/user.ts +5 -166
  286. package/src/sdk/{countries.ts → utils.ts} +18 -5
  287. package/docs/sdks/crosssell/README.md +0 -82
  288. package/docs/sdks/similar/README.md +0 -82
  289. package/docs/sdks/token/README.md +0 -80
  290. package/funcs/analyticsTrackEvent.d.ts.map +0 -1
  291. package/funcs/analyticsTrackEvent.js.map +0 -1
  292. package/funcs/authUserCreateNotificationPreferences.d.ts.map +0 -1
  293. package/funcs/authUserCreateNotificationPreferences.js.map +0 -1
  294. package/funcs/authUserGetNotificationPreferences.d.ts.map +0 -1
  295. package/funcs/authUserGetNotificationPreferences.js.map +0 -1
  296. package/funcs/authUserUpdateNotificationPreferences.d.ts.map +0 -1
  297. package/funcs/authUserUpdateNotificationPreferences.js.map +0 -1
  298. package/funcs/catalogProductsRecommendedList.d.ts.map +0 -1
  299. package/funcs/catalogProductsRecommendedList.js +0 -84
  300. package/funcs/catalogProductsRecommendedList.js.map +0 -1
  301. package/funcs/catalogProductsSimilarList.d.ts.map +0 -1
  302. package/funcs/catalogProductsSimilarList.js.map +0 -1
  303. package/funcs/commonCountriesGetPincodes.d.ts.map +0 -1
  304. package/funcs/commonCountriesGetPincodes.js.map +0 -1
  305. package/funcs/commonCountriesGetStates.d.ts.map +0 -1
  306. package/funcs/commonCountriesGetStates.js.map +0 -1
  307. package/funcs/commonGetCountries.d.ts.map +0 -1
  308. package/funcs/commonGetCountries.js.map +0 -1
  309. package/funcs/customersGetAddresses.d.ts.map +0 -1
  310. package/funcs/customersGetAddresses.js.map +0 -1
  311. package/funcs/customersReviewsGetAll.d.ts.map +0 -1
  312. package/funcs/customersReviewsGetAll.js.map +0 -1
  313. package/funcs/offersGetCoupons.d.ts.map +0 -1
  314. package/funcs/offersGetCoupons.js.map +0 -1
  315. package/funcs/offersGetPromotions.d.ts.map +0 -1
  316. package/funcs/offersGetPromotions.js.map +0 -1
  317. package/funcs/ordersGetReturns.d.ts +0 -15
  318. package/funcs/ordersGetReturns.d.ts.map +0 -1
  319. package/funcs/ordersReturnsCreate.d.ts +0 -16
  320. package/funcs/ordersReturnsCreate.d.ts.map +0 -1
  321. package/funcs/ordersReturnsCreate.js +0 -101
  322. package/funcs/ordersReturnsCreate.js.map +0 -1
  323. package/funcs/ordersReturnsGet.d.ts +0 -15
  324. package/funcs/ordersReturnsGet.d.ts.map +0 -1
  325. package/funcs/ordersReturnsGet.js +0 -100
  326. package/funcs/ordersReturnsGet.js.map +0 -1
  327. package/funcs/ordersReturnsList.d.ts +0 -15
  328. package/funcs/ordersReturnsList.d.ts.map +0 -1
  329. package/funcs/ordersReturnsList.js +0 -96
  330. package/funcs/ordersReturnsList.js.map +0 -1
  331. package/funcs/shippingGetPincodeServiceability.d.ts.map +0 -1
  332. package/funcs/shippingGetPincodeServiceability.js.map +0 -1
  333. package/models/components/createorderreturn.d.ts +0 -29
  334. package/models/components/createorderreturn.d.ts.map +0 -1
  335. package/models/components/createorderreturn.js +0 -69
  336. package/models/components/createorderreturn.js.map +0 -1
  337. package/models/components/orderreturn.d.ts +0 -59
  338. package/models/components/orderreturn.d.ts.map +0 -1
  339. package/models/components/orderreturn.js +0 -165
  340. package/models/components/orderreturn.js.map +0 -1
  341. package/models/components/orderreturnitem.d.ts +0 -122
  342. package/models/components/orderreturnitem.d.ts.map +0 -1
  343. package/models/components/orderreturnitem.js +0 -171
  344. package/models/components/orderreturnitem.js.map +0 -1
  345. package/models/operations/getordersordernumberreturn.d.ts +0 -59
  346. package/models/operations/getordersordernumberreturn.d.ts.map +0 -1
  347. package/models/operations/getordersordernumberreturn.js +0 -99
  348. package/models/operations/getordersordernumberreturn.js.map +0 -1
  349. package/models/operations/getordersordernumberreturnreturnid.d.ts +0 -87
  350. package/models/operations/getordersordernumberreturnreturnid.d.ts.map +0 -1
  351. package/models/operations/getordersordernumberreturnreturnid.js +0 -122
  352. package/models/operations/getordersordernumberreturnreturnid.js.map +0 -1
  353. package/models/operations/getordersreturns.d.ts +0 -56
  354. package/models/operations/getordersreturns.d.ts.map +0 -1
  355. package/models/operations/getordersreturns.js +0 -74
  356. package/models/operations/getordersreturns.js.map +0 -1
  357. package/models/operations/getrecommended.d.ts +0 -56
  358. package/models/operations/getrecommended.d.ts.map +0 -1
  359. package/models/operations/getrecommended.js +0 -74
  360. package/models/operations/getrecommended.js.map +0 -1
  361. package/models/operations/postordersordernumberreturn.d.ts +0 -84
  362. package/models/operations/postordersordernumberreturn.d.ts.map +0 -1
  363. package/models/operations/postordersordernumberreturn.js +0 -122
  364. package/models/operations/postordersordernumberreturn.js.map +0 -1
  365. package/sdk/common.d.ts +0 -15
  366. package/sdk/common.d.ts.map +0 -1
  367. package/sdk/common.js +0 -27
  368. package/sdk/common.js.map +0 -1
  369. package/sdk/countries.d.ts.map +0 -1
  370. package/sdk/countries.js +0 -32
  371. package/sdk/countries.js.map +0 -1
  372. package/sdk/crosssell.d.ts +0 -12
  373. package/sdk/crosssell.d.ts.map +0 -1
  374. package/sdk/crosssell.js +0 -22
  375. package/sdk/crosssell.js.map +0 -1
  376. package/sdk/otp.d.ts +0 -12
  377. package/sdk/otp.d.ts.map +0 -1
  378. package/sdk/otp.js +0 -22
  379. package/sdk/otp.js.map +0 -1
  380. package/sdk/recommended.d.ts.map +0 -1
  381. package/sdk/recommended.js.map +0 -1
  382. package/sdk/returns.d.ts +0 -26
  383. package/sdk/returns.d.ts.map +0 -1
  384. package/sdk/returns.js +0 -42
  385. package/sdk/returns.js.map +0 -1
  386. package/sdk/similar.d.ts +0 -12
  387. package/sdk/similar.d.ts.map +0 -1
  388. package/sdk/similar.js +0 -22
  389. package/sdk/similar.js.map +0 -1
  390. package/sdk/token.d.ts +0 -12
  391. package/sdk/token.d.ts.map +0 -1
  392. package/sdk/token.js +0 -22
  393. package/sdk/token.js.map +0 -1
  394. package/sdk/upsell.d.ts +0 -12
  395. package/sdk/upsell.d.ts.map +0 -1
  396. package/sdk/upsell.js +0 -22
  397. package/sdk/upsell.js.map +0 -1
  398. package/src/funcs/catalogProductsRecommendedList.ts +0 -114
  399. package/src/funcs/ordersReturnsGet.ts +0 -132
  400. package/src/funcs/ordersReturnsList.ts +0 -127
  401. package/src/models/components/createorderreturn.ts +0 -73
  402. package/src/models/components/orderreturn.ts +0 -198
  403. package/src/models/components/orderreturnitem.ts +0 -222
  404. package/src/models/operations/getordersordernumberreturn.ts +0 -125
  405. package/src/models/operations/getordersordernumberreturnreturnid.ts +0 -174
  406. package/src/models/operations/getordersreturns.ts +0 -97
  407. package/src/models/operations/getrecommended.ts +0 -97
  408. package/src/models/operations/postordersordernumberreturn.ts +0 -171
  409. package/src/sdk/common.ts +0 -28
  410. package/src/sdk/crosssell.ts +0 -23
  411. package/src/sdk/otp.ts +0 -23
  412. package/src/sdk/returns.ts +0 -51
  413. package/src/sdk/similar.ts +0 -23
  414. package/src/sdk/token.ts +0 -23
  415. package/src/sdk/upsell.ts +0 -23
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { authUserAddProfileImage } from "../funcs/authUserAddProfileImage.js";
6
+ import { authUserChangePassword } from "../funcs/authUserChangePassword.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";
16
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
17
+ import * as operations from "../models/operations/index.js";
18
+ import { unwrapAsync } from "../types/fp.js";
19
+
20
+ export class CeStorefrontUser extends ClientSDK {
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(this, request, options));
32
+ }
33
+
34
+ /**
35
+ * Update a user
36
+ *
37
+ * @remarks
38
+ * 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.
39
+ */
40
+ async update(
41
+ request: operations.PutAuthUserIdRequest,
42
+ options?: RequestOptions
43
+ ): Promise<operations.PutAuthUserIdResponseBody> {
44
+ return unwrapAsync(authUserUpdate(this, request, options));
45
+ }
46
+
47
+ /**
48
+ * Add profile image
49
+ *
50
+ * @remarks
51
+ * 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.
52
+ */
53
+ async addProfileImage(
54
+ request: operations.PostAuthUserIdProfileImageRequest,
55
+ options?: RequestOptions
56
+ ): Promise<operations.PostAuthUserIdProfileImageResponseBody> {
57
+ return unwrapAsync(authUserAddProfileImage(this, request, options));
58
+ }
59
+
60
+ /**
61
+ * Update profile image
62
+ *
63
+ * @remarks
64
+ * 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.
65
+ */
66
+ async updateProfileImage(
67
+ request: operations.PutAuthUserIdProfileImageRequest,
68
+ options?: RequestOptions
69
+ ): Promise<operations.PutAuthUserIdProfileImageResponseBody> {
70
+ return unwrapAsync(authUserUpdateProfileImage(this, request, options));
71
+ }
72
+
73
+ /**
74
+ * Delete profile image
75
+ *
76
+ * @remarks
77
+ * 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.
78
+ */
79
+ async deleteProfileImage(
80
+ request: operations.DeleteAuthUserIdProfileImageRequest,
81
+ options?: RequestOptions
82
+ ): Promise<operations.DeleteAuthUserIdProfileImageResponseBody> {
83
+ return unwrapAsync(authUserDeleteProfileImage(this, request, options));
84
+ }
85
+
86
+ /**
87
+ * Retrieve a profile image
88
+ *
89
+ * @remarks
90
+ * 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.
91
+ */
92
+ async getProfileImage(
93
+ request: operations.GetAuthUserIdProfileImageRequest,
94
+ options?: RequestOptions
95
+ ): Promise<operations.GetAuthUserIdProfileImageResponseBody> {
96
+ return unwrapAsync(authUserGetProfileImage(this, request, options));
97
+ }
98
+
99
+ /**
100
+ * Deactivate account
101
+ *
102
+ * @remarks
103
+ * 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.
104
+ */
105
+ async deactivateAccount(
106
+ request: operations.PutAuthUserIdDeactivateRequest,
107
+ options?: RequestOptions
108
+ ): Promise<operations.PutAuthUserIdDeactivateResponseBody> {
109
+ return unwrapAsync(authUserDeactivateAccount(this, request, options));
110
+ }
111
+
112
+ /**
113
+ * Change password
114
+ *
115
+ * @remarks
116
+ * The Change Password API is a key feature designed to provide a secure and standardized method for users to update their passwords.
117
+ */
118
+ async changePassword(
119
+ request?: operations.PostAuthChangePasswordRequestBody | undefined,
120
+ options?: RequestOptions
121
+ ): Promise<operations.PostAuthChangePasswordResponseBody> {
122
+ return unwrapAsync(authUserChangePassword(this, request, options));
123
+ }
124
+
125
+ /**
126
+ * Forgot password
127
+ *
128
+ * @remarks
129
+ * 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.
130
+ */
131
+ async forgotPassword(
132
+ request?: operations.PostAuthForgotPasswordRequestBody | undefined,
133
+ options?: RequestOptions
134
+ ): Promise<operations.PostAuthForgotPasswordResponseBody> {
135
+ return unwrapAsync(authUserForgotPassword(this, request, options));
136
+ }
137
+
138
+ /**
139
+ * Reset password
140
+ *
141
+ * @remarks
142
+ * Reset password
143
+ */
144
+ async resetPassword(
145
+ request?: operations.PostAuthResetPasswordRequestBody | undefined,
146
+ options?: RequestOptions
147
+ ): Promise<operations.PostAuthResetPasswordResponseBody> {
148
+ return unwrapAsync(authUserResetPassword(this, request, options));
149
+ }
150
+
151
+ /**
152
+ * Logout user
153
+ *
154
+ * @remarks
155
+ * 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.
156
+ */
157
+ async logout(options?: RequestOptions): Promise<operations.PostAuthLogoutResponseBody> {
158
+ return unwrapAsync(authUserLogout(this, options));
159
+ }
160
+ }
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { offersCouponsList } from "../funcs/offersCouponsList.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Coupons extends ClientSDK {
11
+ /**
12
+ * Retrieve all coupons
13
+ *
14
+ * @remarks
15
+ * Retrieve active coupons
16
+ */
17
+ async list(options?: RequestOptions): Promise<operations.GetCouponsResponseBody> {
18
+ return unwrapAsync(offersCouponsList(this, options));
19
+ }
20
+ }
@@ -2,10 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { customersGetAddresses } from "../funcs/customersGetAddresses.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { unwrapAsync } from "../types/fp.js";
5
+ import { ClientSDK } from "../lib/sdks.js";
9
6
  import { Addresses } from "./addresses.js";
10
7
  import { Loyalty } from "./loyalty.js";
11
8
  import { Reviews } from "./reviews.js";
@@ -25,17 +22,4 @@ export class Customers extends ClientSDK {
25
22
  get reviews(): Reviews {
26
23
  return (this._reviews ??= new Reviews(this.options$));
27
24
  }
28
-
29
- /**
30
- * Retrieve all addresses
31
- *
32
- * @remarks
33
- * Retrieve billing and shipping address of particular customer
34
- */
35
- async getAddresses(
36
- request: operations.GetAddressRequest,
37
- options?: RequestOptions
38
- ): Promise<operations.GetAddressResponseBody> {
39
- return unwrapAsync(customersGetAddresses(this, request, options));
40
- }
41
25
  }
@@ -2,19 +2,22 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { catalogProductsRecommendedList } from "../funcs/catalogProductsRecommendedList.js";
5
+ import { customersAPIGetRecommendedProducts } from "../funcs/customersAPIGetRecommendedProducts.js";
6
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
 
10
- export class Recommended extends ClientSDK {
10
+ export class CustomersAPI extends ClientSDK {
11
11
  /**
12
- * Retrieve recommended products
12
+ * List all recommended products
13
13
  *
14
14
  * @remarks
15
15
  * Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
16
16
  */
17
- async list(options?: RequestOptions): Promise<operations.GetRecommendedResponseBody> {
18
- return unwrapAsync(catalogProductsRecommendedList(this, options));
17
+ async getRecommendedProducts(
18
+ request: operations.GetRecommendedProductsRequest,
19
+ options?: RequestOptions
20
+ ): Promise<operations.GetRecommendedProductsResponseBody> {
21
+ return unwrapAsync(customersAPIGetRecommendedProducts(this, request, options));
19
22
  }
20
23
  }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { campaignsNewsletterSubscribe } from "../funcs/campaignsNewsletterSubscribe.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Newsletter extends ClientSDK {
11
+ /**
12
+ * Subscribe to newsletter
13
+ *
14
+ * @remarks
15
+ * Subscribe to newsletter
16
+ */
17
+ async subscribe(
18
+ request?: operations.PostCustomersNewsletterSubscriptionRequestBody | undefined,
19
+ options?: RequestOptions
20
+ ): Promise<operations.PostCustomersNewsletterSubscriptionResponseBody> {
21
+ return unwrapAsync(campaignsNewsletterSubscribe(this, request, options));
22
+ }
23
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { userNotificationPreferencesCreate } from "../funcs/userNotificationPreferencesCreate.js";
6
+ import { userNotificationPreferencesGet } from "../funcs/userNotificationPreferencesGet.js";
7
+ import { userNotificationPreferencesUpdate } from "../funcs/userNotificationPreferencesUpdate.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class NotificationPreferences extends ClientSDK {
13
+ /**
14
+ * Retrieve user notification preferences
15
+ *
16
+ * @remarks
17
+ * The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
18
+ */
19
+ async get(
20
+ request: operations.GetAuthUserIdNotificationPreferencesRequest,
21
+ options?: RequestOptions
22
+ ): Promise<operations.GetAuthUserIdNotificationPreferencesResponseBody> {
23
+ return unwrapAsync(userNotificationPreferencesGet(this, request, options));
24
+ }
25
+
26
+ /**
27
+ * Create user notification preferences
28
+ *
29
+ * @remarks
30
+ * Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
31
+ */
32
+ async create(
33
+ request: operations.PostAuthUserIdNotificationPreferencesRequest,
34
+ options?: RequestOptions
35
+ ): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody> {
36
+ return unwrapAsync(userNotificationPreferencesCreate(this, request, options));
37
+ }
38
+
39
+ /**
40
+ * Update user notification preferences
41
+ *
42
+ * @remarks
43
+ * Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
44
+ */
45
+ async update(
46
+ request: operations.PutAuthUserIdNotificationPreferencesRequest,
47
+ options?: RequestOptions
48
+ ): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody> {
49
+ return unwrapAsync(userNotificationPreferencesUpdate(this, request, options));
50
+ }
51
+ }
package/src/sdk/offers.ts CHANGED
@@ -2,30 +2,18 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { offersGetCoupons } from "../funcs/offersGetCoupons.js";
6
- import { offersGetPromotions } from "../funcs/offersGetPromotions.js";
7
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { unwrapAsync } from "../types/fp.js";
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { Coupons } from "./coupons.js";
7
+ import { Promotions } from "./promotions.js";
10
8
 
11
9
  export class Offers extends ClientSDK {
12
- /**
13
- * Retrieve all coupons
14
- *
15
- * @remarks
16
- * Retrieve active coupons
17
- */
18
- async getCoupons(options?: RequestOptions): Promise<operations.GetCouponsResponseBody> {
19
- return unwrapAsync(offersGetCoupons(this, options));
10
+ private _coupons?: Coupons;
11
+ get coupons(): Coupons {
12
+ return (this._coupons ??= new Coupons(this.options$));
20
13
  }
21
14
 
22
- /**
23
- * Retrieve all promotions
24
- *
25
- * @remarks
26
- * All active promotions
27
- */
28
- async getPromotions(options?: RequestOptions): Promise<operations.GetPromotionsResponseBody> {
29
- return unwrapAsync(offersGetPromotions(this, options));
15
+ private _promotions?: Promotions;
16
+ get promotions(): Promotions {
17
+ return (this._promotions ??= new Promotions(this.options$));
30
18
  }
31
19
  }
package/src/sdk/orders.ts CHANGED
@@ -5,7 +5,6 @@
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 { ordersGetReturns } from "../funcs/ordersGetReturns.js";
9
8
  import { ordersList } from "../funcs/ordersList.js";
10
9
  import { ordersRetryPayment } from "../funcs/ordersRetryPayment.js";
11
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -13,7 +12,6 @@ import * as operations from "../models/operations/index.js";
13
12
  import { unwrapAsync } from "../types/fp.js";
14
13
  import { CeStorefrontPayments } from "./cestorefrontpayments.js";
15
14
  import { Refunds } from "./refunds.js";
16
- import { Returns } from "./returns.js";
17
15
  import { Shipments } from "./shipments.js";
18
16
 
19
17
  export class Orders extends ClientSDK {
@@ -32,11 +30,6 @@ export class Orders extends ClientSDK {
32
30
  return (this._payments ??= new CeStorefrontPayments(this.options$));
33
31
  }
34
32
 
35
- private _returns?: Returns;
36
- get returns(): Returns {
37
- return (this._returns ??= new Returns(this.options$));
38
- }
39
-
40
33
  /**
41
34
  * Create order
42
35
  *
@@ -101,14 +94,4 @@ export class Orders extends ClientSDK {
101
94
  ): Promise<operations.PostRetryPaymentOrderIdResponseBody> {
102
95
  return unwrapAsync(ordersRetryPayment(this, request, options));
103
96
  }
104
-
105
- /**
106
- * Retrieve all order returns
107
- *
108
- * @remarks
109
- * Retrieve all order returns
110
- */
111
- async getReturns(options?: RequestOptions): Promise<operations.GetOrdersReturnsResponseBody> {
112
- return unwrapAsync(ordersGetReturns(this, options));
113
- }
114
97
  }
@@ -3,15 +3,14 @@
3
3
  */
4
4
 
5
5
  import { catalogProductsGet } from "../funcs/catalogProductsGet.js";
6
+ import { catalogProductsGetCrossSells } from "../funcs/catalogProductsGetCrossSells.js";
7
+ import { catalogProductsGetSimilar } from "../funcs/catalogProductsGetSimilar.js";
8
+ import { catalogProductsGetUpsells } from "../funcs/catalogProductsGetUpsells.js";
6
9
  import { catalogProductsList } from "../funcs/catalogProductsList.js";
7
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
11
  import * as operations from "../models/operations/index.js";
9
12
  import { unwrapAsync } from "../types/fp.js";
10
13
  import { CeStorefrontReviews } from "./cestorefrontreviews.js";
11
- import { CrossSell } from "./crosssell.js";
12
- import { Recommended } from "./recommended.js";
13
- import { Similar } from "./similar.js";
14
- import { UpSell } from "./upsell.js";
15
14
  import { Variants } from "./variants.js";
16
15
 
17
16
  export class Products extends ClientSDK {
@@ -25,26 +24,6 @@ export class Products extends ClientSDK {
25
24
  return (this._reviews ??= new CeStorefrontReviews(this.options$));
26
25
  }
27
26
 
28
- private _similar?: Similar;
29
- get similar(): Similar {
30
- return (this._similar ??= new Similar(this.options$));
31
- }
32
-
33
- private _upSell?: UpSell;
34
- get upSell(): UpSell {
35
- return (this._upSell ??= new UpSell(this.options$));
36
- }
37
-
38
- private _crossSell?: CrossSell;
39
- get crossSell(): CrossSell {
40
- return (this._crossSell ??= new CrossSell(this.options$));
41
- }
42
-
43
- private _recommended?: Recommended;
44
- get recommended(): Recommended {
45
- return (this._recommended ??= new Recommended(this.options$));
46
- }
47
-
48
27
  /**
49
28
  * List all products
50
29
  *
@@ -70,4 +49,43 @@ export class Products extends ClientSDK {
70
49
  ): Promise<operations.GetProductDetailsResponseBody> {
71
50
  return unwrapAsync(catalogProductsGet(this, request, options));
72
51
  }
52
+
53
+ /**
54
+ * Retrieve similar products
55
+ *
56
+ * @remarks
57
+ * 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.
58
+ */
59
+ async getSimilar(
60
+ request: operations.GetSimilarRequest,
61
+ options?: RequestOptions
62
+ ): Promise<operations.GetSimilarResponseBody> {
63
+ return unwrapAsync(catalogProductsGetSimilar(this, request, options));
64
+ }
65
+
66
+ /**
67
+ * Retrieve up-sell products
68
+ *
69
+ * @remarks
70
+ * Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
71
+ */
72
+ async getUpsells(
73
+ request: operations.GetUpSellRequest,
74
+ options?: RequestOptions
75
+ ): Promise<operations.GetUpSellResponseBody> {
76
+ return unwrapAsync(catalogProductsGetUpsells(this, request, options));
77
+ }
78
+
79
+ /**
80
+ * Retrieve cross-sell products
81
+ *
82
+ * @remarks
83
+ * Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
84
+ */
85
+ async getCrossSells(
86
+ request: operations.GetCrossSellRequest,
87
+ options?: RequestOptions
88
+ ): Promise<operations.GetCrossSellResponseBody> {
89
+ return unwrapAsync(catalogProductsGetCrossSells(this, request, options));
90
+ }
73
91
  }
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { offersPromotionsList } from "../funcs/offersPromotionsList.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Promotions extends ClientSDK {
11
+ /**
12
+ * Retrieve all promotions
13
+ *
14
+ * @remarks
15
+ * All active promotions
16
+ */
17
+ async list(options?: RequestOptions): Promise<operations.GetPromotionsResponseBody> {
18
+ return unwrapAsync(offersPromotionsList(this, options));
19
+ }
20
+ }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { customersReviewsGetAll } from "../funcs/customersReviewsGetAll.js";
5
+ import { customersReviewsList } from "../funcs/customersReviewsList.js";
6
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
@@ -14,10 +14,10 @@ export class Reviews extends ClientSDK {
14
14
  * @remarks
15
15
  * Retrieve all reviews
16
16
  */
17
- async getAll(
17
+ async list(
18
18
  request: operations.GetCustomersUserIdReviewsRequest,
19
19
  options?: RequestOptions
20
20
  ): Promise<operations.GetCustomersUserIdReviewsResponseBody> {
21
- return unwrapAsync(customersReviewsGetAll(this, request, options));
21
+ return unwrapAsync(customersReviewsList(this, request, options));
22
22
  }
23
23
  }
package/src/sdk/sdk.ts CHANGED
@@ -9,12 +9,14 @@ import { Campaigns } from "./campaigns.js";
9
9
  import { Carts } from "./carts.js";
10
10
  import { Catalog } from "./catalog.js";
11
11
  import { Checkout } from "./checkout.js";
12
- import { Common } from "./common.js";
13
12
  import { Customers } from "./customers.js";
13
+ import { CustomersAPI } from "./customersapi.js";
14
14
  import { Offers } from "./offers.js";
15
15
  import { Orders } from "./orders.js";
16
16
  import { Payments } from "./payments.js";
17
17
  import { Shipping } from "./shipping.js";
18
+ import { User } from "./user.js";
19
+ import { Utils } from "./utils.js";
18
20
  import { Wishlist } from "./wishlist.js";
19
21
 
20
22
  export class CeStorefront extends ClientSDK {
@@ -23,6 +25,11 @@ export class CeStorefront extends ClientSDK {
23
25
  return (this._catalog ??= new Catalog(this.options$));
24
26
  }
25
27
 
28
+ private _customersAPI?: CustomersAPI;
29
+ get customersAPI(): CustomersAPI {
30
+ return (this._customersAPI ??= new CustomersAPI(this.options$));
31
+ }
32
+
26
33
  private _carts?: Carts;
27
34
  get carts(): Carts {
28
35
  return (this._carts ??= new Carts(this.options$));
@@ -63,14 +70,19 @@ export class CeStorefront extends ClientSDK {
63
70
  return (this._auth ??= new Auth(this.options$));
64
71
  }
65
72
 
73
+ private _user?: User;
74
+ get user(): User {
75
+ return (this._user ??= new User(this.options$));
76
+ }
77
+
66
78
  private _payments?: Payments;
67
79
  get payments(): Payments {
68
80
  return (this._payments ??= new Payments(this.options$));
69
81
  }
70
82
 
71
- private _common?: Common;
72
- get common(): Common {
73
- return (this._common ??= new Common(this.options$));
83
+ private _utils?: Utils;
84
+ get utils(): Utils {
85
+ return (this._utils ??= new Utils(this.options$));
74
86
  }
75
87
 
76
88
  private _analytics?: Analytics;
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { shippingGetPincodeServiceability } from "../funcs/shippingGetPincodeServiceability.js";
5
+ import { shippingCheckPincodeServiceability } from "../funcs/shippingCheckPincodeServiceability.js";
6
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
@@ -14,10 +14,10 @@ export class Shipping extends ClientSDK {
14
14
  * @remarks
15
15
  * Check shipment delivery availability in an area by pincode
16
16
  */
17
- async getPincodeServiceability(
17
+ async checkPincodeServiceability(
18
18
  request: operations.GetShipmentPincodeServiceabilityRequest,
19
19
  options?: RequestOptions
20
20
  ): Promise<operations.GetShipmentPincodeServiceabilityResponseBody> {
21
- return unwrapAsync(shippingGetPincodeServiceability(this, request, options));
21
+ return unwrapAsync(shippingCheckPincodeServiceability(this, request, options));
22
22
  }
23
23
  }