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.
- package/.devcontainer/README.md +5 -0
- package/README.md +101 -117
- package/docs/sdks/addresses/README.md +78 -0
- package/docs/sdks/analytics/README.md +5 -5
- package/docs/sdks/auth/README.md +91 -24
- package/docs/sdks/campaigns/README.md +1 -79
- package/docs/sdks/cestorefrontuser/README.md +850 -0
- package/docs/sdks/{common → coupons}/README.md +9 -9
- package/docs/sdks/customers/README.md +1 -83
- package/docs/sdks/{upsell → customersapi}/README.md +16 -10
- package/docs/sdks/{otp → newsletter}/README.md +10 -10
- package/docs/sdks/{returns → notificationpreferences}/README.md +35 -39
- package/docs/sdks/offers/README.md +1 -152
- package/docs/sdks/orders/README.md +0 -73
- package/docs/sdks/products/README.md +228 -0
- package/docs/sdks/{recommended → promotions}/README.md +8 -9
- package/docs/sdks/reviews/README.md +5 -5
- package/docs/sdks/shipping/README.md +5 -5
- package/docs/sdks/user/README.md +1 -927
- package/docs/sdks/{countries → utils}/README.md +81 -8
- package/funcs/{analyticsTrackEvent.d.ts → analyticsTrack.d.ts} +2 -2
- package/funcs/analyticsTrack.d.ts.map +1 -0
- package/funcs/{analyticsTrackEvent.js → analyticsTrack.js} +3 -3
- package/funcs/analyticsTrack.js.map +1 -0
- package/funcs/{authOtpGenerate.d.ts → authGenerateOtp.d.ts} +2 -2
- package/funcs/{authOtpGenerate.d.ts.map → authGenerateOtp.d.ts.map} +1 -1
- package/funcs/{authOtpGenerate.js → authGenerateOtp.js} +3 -3
- package/funcs/{authOtpGenerate.js.map → authGenerateOtp.js.map} +1 -1
- package/funcs/authLoginAnonymously.d.ts +16 -0
- package/funcs/authLoginAnonymously.d.ts.map +1 -0
- package/funcs/{ordersGetReturns.js → authLoginAnonymously.js} +21 -13
- package/funcs/authLoginAnonymously.js.map +1 -0
- package/funcs/{authTokenRefresh.d.ts → authRefreshToken.d.ts} +2 -2
- package/funcs/{authTokenRefresh.d.ts.map → authRefreshToken.d.ts.map} +1 -1
- package/funcs/{authTokenRefresh.js → authRefreshToken.js} +3 -3
- package/funcs/{authTokenRefresh.js.map → authRefreshToken.js.map} +1 -1
- package/funcs/{authGetUser.d.ts → authUserGet.d.ts} +2 -2
- package/funcs/{authGetUser.d.ts.map → authUserGet.d.ts.map} +1 -1
- package/funcs/{authGetUser.js → authUserGet.js} +3 -3
- package/funcs/{authGetUser.js.map → authUserGet.js.map} +1 -1
- package/funcs/{authUpdateUser.d.ts → authUserUpdate.d.ts} +2 -2
- package/funcs/{authUpdateUser.d.ts.map → authUserUpdate.d.ts.map} +1 -1
- package/funcs/{authUpdateUser.js → authUserUpdate.js} +3 -3
- package/funcs/{authUpdateUser.js.map → authUserUpdate.js.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.d.ts → campaignsNewsletterSubscribe.d.ts} +2 -2
- package/funcs/{campaignsSubscribeNewsletter.d.ts.map → campaignsNewsletterSubscribe.d.ts.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.js → campaignsNewsletterSubscribe.js} +3 -3
- package/funcs/{campaignsSubscribeNewsletter.js.map → campaignsNewsletterSubscribe.js.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.d.ts → catalogProductsGetCrossSells.d.ts} +2 -2
- package/funcs/{catalogProductsCrossSellList.d.ts.map → catalogProductsGetCrossSells.d.ts.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.js → catalogProductsGetCrossSells.js} +3 -3
- package/funcs/{catalogProductsCrossSellList.js.map → catalogProductsGetCrossSells.js.map} +1 -1
- package/funcs/{catalogProductsSimilarList.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
- package/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
- package/funcs/{catalogProductsSimilarList.js → catalogProductsGetSimilar.js} +3 -3
- package/funcs/catalogProductsGetSimilar.js.map +1 -0
- package/funcs/{catalogProductsUpSellList.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
- package/funcs/{catalogProductsUpSellList.d.ts.map → catalogProductsGetUpsells.d.ts.map} +1 -1
- package/funcs/{catalogProductsUpSellList.js → catalogProductsGetUpsells.js} +3 -3
- package/funcs/{catalogProductsUpSellList.js.map → catalogProductsGetUpsells.js.map} +1 -1
- package/funcs/{catalogProductsRecommendedList.d.ts → customersAPIGetRecommendedProducts.d.ts} +3 -3
- package/funcs/customersAPIGetRecommendedProducts.d.ts.map +1 -0
- package/funcs/customersAPIGetRecommendedProducts.js +97 -0
- package/funcs/customersAPIGetRecommendedProducts.js.map +1 -0
- package/funcs/{commonCountriesGetPincodes.d.ts → customersAddressesList.d.ts} +4 -4
- package/funcs/customersAddressesList.d.ts.map +1 -0
- package/funcs/{customersGetAddresses.js → customersAddressesList.js} +3 -3
- package/funcs/customersAddressesList.js.map +1 -0
- package/funcs/{customersReviewsGetAll.d.ts → customersReviewsList.d.ts} +2 -2
- package/funcs/customersReviewsList.d.ts.map +1 -0
- package/funcs/{customersReviewsGetAll.js → customersReviewsList.js} +3 -3
- package/funcs/customersReviewsList.js.map +1 -0
- package/funcs/{offersGetCoupons.d.ts → offersCouponsList.d.ts} +2 -2
- package/funcs/offersCouponsList.d.ts.map +1 -0
- package/funcs/{offersGetCoupons.js → offersCouponsList.js} +3 -3
- package/funcs/{ordersGetReturns.js.map → offersCouponsList.js.map} +1 -1
- package/funcs/{offersGetPromotions.d.ts → offersPromotionsList.d.ts} +2 -2
- package/funcs/offersPromotionsList.d.ts.map +1 -0
- package/funcs/{offersGetPromotions.js → offersPromotionsList.js} +3 -3
- package/funcs/offersPromotionsList.js.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
- package/funcs/shippingCheckPincodeServiceability.d.ts.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.js → shippingCheckPincodeServiceability.js} +3 -3
- package/funcs/shippingCheckPincodeServiceability.js.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +3 -3
- package/funcs/userNotificationPreferencesCreate.js.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
- package/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.js → userNotificationPreferencesGet.js} +3 -3
- package/funcs/userNotificationPreferencesGet.js.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesUpdate.d.ts.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +3 -3
- package/funcs/userNotificationPreferencesUpdate.js.map +1 -0
- package/funcs/{commonGetCountries.d.ts → utilsGetCountries.d.ts} +2 -2
- package/funcs/utilsGetCountries.d.ts.map +1 -0
- package/funcs/{commonGetCountries.js → utilsGetCountries.js} +3 -3
- package/funcs/utilsGetCountries.js.map +1 -0
- package/funcs/{customersGetAddresses.d.ts → utilsGetPincodes.d.ts} +4 -4
- package/funcs/utilsGetPincodes.d.ts.map +1 -0
- package/funcs/{commonCountriesGetPincodes.js → utilsGetPincodes.js} +3 -3
- package/funcs/utilsGetPincodes.js.map +1 -0
- package/funcs/{commonCountriesGetStates.d.ts → utilsGetStates.d.ts} +2 -2
- package/funcs/utilsGetStates.d.ts.map +1 -0
- package/funcs/{commonCountriesGetStates.js → utilsGetStates.js} +3 -3
- package/funcs/utilsGetStates.js.map +1 -0
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -8
- package/lib/config.js.map +1 -1
- package/models/components/cartitem.js +4 -4
- package/models/components/cartitem.js.map +1 -1
- package/models/components/index.d.ts +1 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -3
- package/models/components/index.js.map +1 -1
- package/models/components/productattribute.js +1 -1
- package/models/components/productattribute.js.map +1 -1
- package/models/components/productdetail.js +5 -5
- package/models/components/productdetail.js.map +1 -1
- package/models/components/productlist.js +5 -5
- package/models/components/productlist.js.map +1 -1
- package/models/components/productreview.js +1 -1
- package/models/components/productreview.js.map +1 -1
- package/models/components/productshipping.js +2 -2
- package/models/components/productshipping.js.map +1 -1
- package/models/components/productsubscription.js +1 -1
- package/models/components/productsubscription.js.map +1 -1
- package/models/components/recommendedproduct.d.ts +149 -0
- package/models/components/recommendedproduct.d.ts.map +1 -0
- package/models/components/recommendedproduct.js +230 -0
- package/models/components/recommendedproduct.js.map +1 -0
- package/models/components/skuinfo.js +4 -4
- package/models/components/skuinfo.js.map +1 -1
- package/models/errors/unauthorized.js +1 -1
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/getrecommendedproducts.d.ts +82 -0
- package/models/operations/getrecommendedproducts.d.ts.map +1 -0
- package/models/operations/getrecommendedproducts.js +93 -0
- package/models/operations/getrecommendedproducts.js.map +1 -0
- package/models/operations/index.d.ts +2 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/postauthanonymous.d.ts +101 -0
- package/models/operations/postauthanonymous.d.ts.map +1 -0
- package/models/operations/postauthanonymous.js +124 -0
- package/models/operations/postauthanonymous.js.map +1 -0
- package/models/operations/postcartitemid.js +1 -1
- package/models/operations/postcartitemid.js.map +1 -1
- package/package.json +5 -1
- package/sdk/addresses.d.ts +7 -0
- package/sdk/addresses.d.ts.map +1 -1
- package/sdk/addresses.js +10 -0
- package/sdk/addresses.js.map +1 -1
- package/sdk/analytics.d.ts +1 -1
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +3 -3
- package/sdk/analytics.js.map +1 -1
- package/sdk/auth.d.ts +16 -14
- package/sdk/auth.d.ts.map +1 -1
- package/sdk/auth.js +22 -21
- package/sdk/auth.js.map +1 -1
- package/sdk/campaigns.d.ts +4 -9
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/campaigns.js +4 -10
- package/sdk/campaigns.js.map +1 -1
- package/sdk/cestorefrontuser.d.ts +82 -0
- package/sdk/cestorefrontuser.d.ts.map +1 -0
- package/sdk/cestorefrontuser.js +122 -0
- package/sdk/cestorefrontuser.js.map +1 -0
- package/sdk/coupons.d.ts +12 -0
- package/sdk/coupons.d.ts.map +1 -0
- package/sdk/coupons.js +22 -0
- package/sdk/coupons.js.map +1 -0
- package/sdk/customers.d.ts +1 -9
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +0 -11
- package/sdk/customers.js.map +1 -1
- package/sdk/{recommended.d.ts → customersapi.d.ts} +4 -4
- package/sdk/customersapi.d.ts.map +1 -0
- package/sdk/{recommended.js → customersapi.js} +8 -8
- package/sdk/customersapi.js.map +1 -0
- package/sdk/newsletter.d.ts +12 -0
- package/sdk/newsletter.d.ts.map +1 -0
- package/sdk/newsletter.js +22 -0
- package/sdk/newsletter.js.map +1 -0
- package/sdk/notificationpreferences.d.ts +26 -0
- package/sdk/notificationpreferences.d.ts.map +1 -0
- package/sdk/notificationpreferences.js +42 -0
- package/sdk/notificationpreferences.js.map +1 -0
- package/sdk/offers.d.ts +7 -16
- package/sdk/offers.d.ts.map +1 -1
- package/sdk/offers.js +8 -19
- package/sdk/offers.js.map +1 -1
- package/sdk/orders.d.ts +0 -10
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +0 -15
- package/sdk/orders.js.map +1 -1
- package/sdk/products.d.ts +21 -12
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +30 -20
- package/sdk/products.js.map +1 -1
- package/sdk/promotions.d.ts +12 -0
- package/sdk/promotions.d.ts.map +1 -0
- package/sdk/promotions.js +22 -0
- package/sdk/promotions.js.map +1 -0
- package/sdk/reviews.d.ts +1 -1
- package/sdk/reviews.d.ts.map +1 -1
- package/sdk/reviews.js +3 -3
- package/sdk/reviews.js.map +1 -1
- package/sdk/sdk.d.ts +9 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +13 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/shipping.d.ts +1 -1
- package/sdk/shipping.d.ts.map +1 -1
- package/sdk/shipping.js +3 -3
- package/sdk/shipping.js.map +1 -1
- package/sdk/user.d.ts +4 -86
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +4 -120
- package/sdk/user.js.map +1 -1
- package/sdk/{countries.d.ts → utils.d.ts} +9 -2
- package/sdk/utils.d.ts.map +1 -0
- package/sdk/utils.js +42 -0
- package/sdk/utils.js.map +1 -0
- package/src/funcs/{analyticsTrackEvent.ts → analyticsTrack.ts} +1 -1
- package/src/funcs/{authOtpGenerate.ts → authGenerateOtp.ts} +1 -1
- package/src/funcs/{ordersGetReturns.ts → authLoginAnonymously.ts} +23 -14
- package/src/funcs/{authTokenRefresh.ts → authRefreshToken.ts} +1 -1
- package/src/funcs/{authGetUser.ts → authUserGet.ts} +1 -1
- package/src/funcs/{authUpdateUser.ts → authUserUpdate.ts} +1 -1
- package/src/funcs/{campaignsSubscribeNewsletter.ts → campaignsNewsletterSubscribe.ts} +1 -1
- package/src/funcs/{catalogProductsCrossSellList.ts → catalogProductsGetCrossSells.ts} +1 -1
- package/src/funcs/{catalogProductsSimilarList.ts → catalogProductsGetSimilar.ts} +1 -1
- package/src/funcs/{catalogProductsUpSellList.ts → catalogProductsGetUpsells.ts} +1 -1
- package/src/funcs/{ordersReturnsCreate.ts → customersAPIGetRecommendedProducts.ts} +14 -18
- package/src/funcs/{customersGetAddresses.ts → customersAddressesList.ts} +1 -1
- package/src/funcs/{customersReviewsGetAll.ts → customersReviewsList.ts} +1 -1
- package/src/funcs/{offersGetCoupons.ts → offersCouponsList.ts} +1 -1
- package/src/funcs/{offersGetPromotions.ts → offersPromotionsList.ts} +1 -1
- package/src/funcs/{shippingGetPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{authUserCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
- package/src/funcs/{authUserGetNotificationPreferences.ts → userNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{authUserUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
- package/src/funcs/{commonGetCountries.ts → utilsGetCountries.ts} +1 -1
- package/src/funcs/{commonCountriesGetPincodes.ts → utilsGetPincodes.ts} +1 -1
- package/src/funcs/{commonCountriesGetStates.ts → utilsGetStates.ts} +1 -1
- package/src/lib/config.ts +3 -8
- package/src/models/components/cartitem.ts +4 -4
- package/src/models/components/index.ts +1 -3
- package/src/models/components/productattribute.ts +1 -1
- package/src/models/components/productdetail.ts +5 -5
- package/src/models/components/productlist.ts +5 -5
- package/src/models/components/productreview.ts +1 -1
- package/src/models/components/productshipping.ts +2 -2
- package/src/models/components/productsubscription.ts +1 -1
- package/src/models/components/recommendedproduct.ts +359 -0
- package/src/models/components/skuinfo.ts +4 -4
- package/src/models/errors/unauthorized.ts +1 -1
- package/src/models/operations/getrecommendedproducts.ts +140 -0
- package/src/models/operations/index.ts +2 -5
- package/src/models/operations/postauthanonymous.ts +190 -0
- package/src/models/operations/postcartitemid.ts +1 -1
- package/src/sdk/addresses.ts +14 -0
- package/src/sdk/analytics.ts +3 -3
- package/src/sdk/auth.ts +31 -28
- package/src/sdk/campaigns.ts +5 -15
- package/src/sdk/cestorefrontuser.ts +160 -0
- package/src/sdk/coupons.ts +20 -0
- package/src/sdk/customers.ts +1 -17
- package/src/sdk/{recommended.ts → customersapi.ts} +8 -5
- package/src/sdk/newsletter.ts +23 -0
- package/src/sdk/notificationpreferences.ts +51 -0
- package/src/sdk/offers.ts +9 -21
- package/src/sdk/orders.ts +0 -17
- package/src/sdk/products.ts +42 -24
- package/src/sdk/promotions.ts +20 -0
- package/src/sdk/reviews.ts +3 -3
- package/src/sdk/sdk.ts +16 -4
- package/src/sdk/shipping.ts +3 -3
- package/src/sdk/user.ts +5 -166
- package/src/sdk/{countries.ts → utils.ts} +18 -5
- package/docs/sdks/crosssell/README.md +0 -82
- package/docs/sdks/similar/README.md +0 -82
- package/docs/sdks/token/README.md +0 -80
- package/funcs/analyticsTrackEvent.d.ts.map +0 -1
- package/funcs/analyticsTrackEvent.js.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.js.map +0 -1
- package/funcs/authUserGetNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserGetNotificationPreferences.js.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.js.map +0 -1
- package/funcs/catalogProductsRecommendedList.d.ts.map +0 -1
- package/funcs/catalogProductsRecommendedList.js +0 -84
- package/funcs/catalogProductsRecommendedList.js.map +0 -1
- package/funcs/catalogProductsSimilarList.d.ts.map +0 -1
- package/funcs/catalogProductsSimilarList.js.map +0 -1
- package/funcs/commonCountriesGetPincodes.d.ts.map +0 -1
- package/funcs/commonCountriesGetPincodes.js.map +0 -1
- package/funcs/commonCountriesGetStates.d.ts.map +0 -1
- package/funcs/commonCountriesGetStates.js.map +0 -1
- package/funcs/commonGetCountries.d.ts.map +0 -1
- package/funcs/commonGetCountries.js.map +0 -1
- package/funcs/customersGetAddresses.d.ts.map +0 -1
- package/funcs/customersGetAddresses.js.map +0 -1
- package/funcs/customersReviewsGetAll.d.ts.map +0 -1
- package/funcs/customersReviewsGetAll.js.map +0 -1
- package/funcs/offersGetCoupons.d.ts.map +0 -1
- package/funcs/offersGetCoupons.js.map +0 -1
- package/funcs/offersGetPromotions.d.ts.map +0 -1
- package/funcs/offersGetPromotions.js.map +0 -1
- package/funcs/ordersGetReturns.d.ts +0 -15
- package/funcs/ordersGetReturns.d.ts.map +0 -1
- package/funcs/ordersReturnsCreate.d.ts +0 -16
- package/funcs/ordersReturnsCreate.d.ts.map +0 -1
- package/funcs/ordersReturnsCreate.js +0 -101
- package/funcs/ordersReturnsCreate.js.map +0 -1
- package/funcs/ordersReturnsGet.d.ts +0 -15
- package/funcs/ordersReturnsGet.d.ts.map +0 -1
- package/funcs/ordersReturnsGet.js +0 -100
- package/funcs/ordersReturnsGet.js.map +0 -1
- package/funcs/ordersReturnsList.d.ts +0 -15
- package/funcs/ordersReturnsList.d.ts.map +0 -1
- package/funcs/ordersReturnsList.js +0 -96
- package/funcs/ordersReturnsList.js.map +0 -1
- package/funcs/shippingGetPincodeServiceability.d.ts.map +0 -1
- package/funcs/shippingGetPincodeServiceability.js.map +0 -1
- package/models/components/createorderreturn.d.ts +0 -29
- package/models/components/createorderreturn.d.ts.map +0 -1
- package/models/components/createorderreturn.js +0 -69
- package/models/components/createorderreturn.js.map +0 -1
- package/models/components/orderreturn.d.ts +0 -59
- package/models/components/orderreturn.d.ts.map +0 -1
- package/models/components/orderreturn.js +0 -165
- package/models/components/orderreturn.js.map +0 -1
- package/models/components/orderreturnitem.d.ts +0 -122
- package/models/components/orderreturnitem.d.ts.map +0 -1
- package/models/components/orderreturnitem.js +0 -171
- package/models/components/orderreturnitem.js.map +0 -1
- package/models/operations/getordersordernumberreturn.d.ts +0 -59
- package/models/operations/getordersordernumberreturn.d.ts.map +0 -1
- package/models/operations/getordersordernumberreturn.js +0 -99
- package/models/operations/getordersordernumberreturn.js.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.d.ts +0 -87
- package/models/operations/getordersordernumberreturnreturnid.d.ts.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.js +0 -122
- package/models/operations/getordersordernumberreturnreturnid.js.map +0 -1
- package/models/operations/getordersreturns.d.ts +0 -56
- package/models/operations/getordersreturns.d.ts.map +0 -1
- package/models/operations/getordersreturns.js +0 -74
- package/models/operations/getordersreturns.js.map +0 -1
- package/models/operations/getrecommended.d.ts +0 -56
- package/models/operations/getrecommended.d.ts.map +0 -1
- package/models/operations/getrecommended.js +0 -74
- package/models/operations/getrecommended.js.map +0 -1
- package/models/operations/postordersordernumberreturn.d.ts +0 -84
- package/models/operations/postordersordernumberreturn.d.ts.map +0 -1
- package/models/operations/postordersordernumberreturn.js +0 -122
- package/models/operations/postordersordernumberreturn.js.map +0 -1
- package/sdk/common.d.ts +0 -15
- package/sdk/common.d.ts.map +0 -1
- package/sdk/common.js +0 -27
- package/sdk/common.js.map +0 -1
- package/sdk/countries.d.ts.map +0 -1
- package/sdk/countries.js +0 -32
- package/sdk/countries.js.map +0 -1
- package/sdk/crosssell.d.ts +0 -12
- package/sdk/crosssell.d.ts.map +0 -1
- package/sdk/crosssell.js +0 -22
- package/sdk/crosssell.js.map +0 -1
- package/sdk/otp.d.ts +0 -12
- package/sdk/otp.d.ts.map +0 -1
- package/sdk/otp.js +0 -22
- package/sdk/otp.js.map +0 -1
- package/sdk/recommended.d.ts.map +0 -1
- package/sdk/recommended.js.map +0 -1
- package/sdk/returns.d.ts +0 -26
- package/sdk/returns.d.ts.map +0 -1
- package/sdk/returns.js +0 -42
- package/sdk/returns.js.map +0 -1
- package/sdk/similar.d.ts +0 -12
- package/sdk/similar.d.ts.map +0 -1
- package/sdk/similar.js +0 -22
- package/sdk/similar.js.map +0 -1
- package/sdk/token.d.ts +0 -12
- package/sdk/token.d.ts.map +0 -1
- package/sdk/token.js +0 -22
- package/sdk/token.js.map +0 -1
- package/sdk/upsell.d.ts +0 -12
- package/sdk/upsell.d.ts.map +0 -1
- package/sdk/upsell.js +0 -22
- package/sdk/upsell.js.map +0 -1
- package/src/funcs/catalogProductsRecommendedList.ts +0 -114
- package/src/funcs/ordersReturnsGet.ts +0 -132
- package/src/funcs/ordersReturnsList.ts +0 -127
- package/src/models/components/createorderreturn.ts +0 -73
- package/src/models/components/orderreturn.ts +0 -198
- package/src/models/components/orderreturnitem.ts +0 -222
- package/src/models/operations/getordersordernumberreturn.ts +0 -125
- package/src/models/operations/getordersordernumberreturnreturnid.ts +0 -174
- package/src/models/operations/getordersreturns.ts +0 -97
- package/src/models/operations/getrecommended.ts +0 -97
- package/src/models/operations/postordersordernumberreturn.ts +0 -171
- package/src/sdk/common.ts +0 -28
- package/src/sdk/crosssell.ts +0 -23
- package/src/sdk/otp.ts +0 -23
- package/src/sdk/returns.ts +0 -51
- package/src/sdk/similar.ts +0 -23
- package/src/sdk/token.ts +0 -23
- package/src/sdk/upsell.ts +0 -23
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# Coupons
|
|
2
|
+
(*offers.coupons*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
8
|
+
* [list](#list) - Retrieve all coupons
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## list
|
|
11
11
|
|
|
12
|
-
Retrieve
|
|
12
|
+
Retrieve active coupons
|
|
13
13
|
|
|
14
14
|
### Example Usage
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ const ceStorefront = new CeStorefront({
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
24
|
-
const result = await ceStorefront.
|
|
24
|
+
const result = await ceStorefront.offers.coupons.list();
|
|
25
25
|
|
|
26
26
|
// Handle the result
|
|
27
27
|
console.log(result)
|
|
@@ -36,7 +36,7 @@ The standalone function version of this method:
|
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import {
|
|
39
|
+
import { offersCouponsList } from "ce-storefront/funcs/offersCouponsList.js";
|
|
40
40
|
|
|
41
41
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
42
|
// You can create one instance of it to use across an application.
|
|
@@ -45,7 +45,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
async function run() {
|
|
48
|
-
const res = await
|
|
48
|
+
const res = await offersCouponsList(ceStorefront);
|
|
49
49
|
|
|
50
50
|
if (!res.ok) {
|
|
51
51
|
throw res.error;
|
|
@@ -70,7 +70,7 @@ run();
|
|
|
70
70
|
|
|
71
71
|
### Response
|
|
72
72
|
|
|
73
|
-
**Promise\<[operations.
|
|
73
|
+
**Promise\<[operations.GetCouponsResponseBody](../../models/operations/getcouponsresponsebody.md)\>**
|
|
74
74
|
|
|
75
75
|
### Errors
|
|
76
76
|
|
|
@@ -1,84 +1,2 @@
|
|
|
1
1
|
# Customers
|
|
2
|
-
(*customers*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [getAddresses](#getaddresses) - Retrieve all addresses
|
|
9
|
-
|
|
10
|
-
## getAddresses
|
|
11
|
-
|
|
12
|
-
Retrieve billing and shipping address of particular customer
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { CeStorefront } from "ce-storefront";
|
|
18
|
-
|
|
19
|
-
const ceStorefront = new CeStorefront({
|
|
20
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
async function run() {
|
|
24
|
-
const result = await ceStorefront.customers.getAddresses({
|
|
25
|
-
userId: "<value>",
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// Handle the result
|
|
29
|
-
console.log(result)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
run();
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Standalone function
|
|
36
|
-
|
|
37
|
-
The standalone function version of this method:
|
|
38
|
-
|
|
39
|
-
```typescript
|
|
40
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
41
|
-
import { customersGetAddresses } from "ce-storefront/funcs/customersGetAddresses.js";
|
|
42
|
-
|
|
43
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
44
|
-
// You can create one instance of it to use across an application.
|
|
45
|
-
const ceStorefront = new CeStorefrontCore({
|
|
46
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
async function run() {
|
|
50
|
-
const res = await customersGetAddresses(ceStorefront, {
|
|
51
|
-
userId: "<value>",
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
if (!res.ok) {
|
|
55
|
-
throw res.error;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const { value: result } = res;
|
|
59
|
-
|
|
60
|
-
// Handle the result
|
|
61
|
-
console.log(result)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
run();
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
| Parameter | Type | Required | Description |
|
|
70
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
71
|
-
| `request` | [operations.GetAddressRequest](../../models/operations/getaddressrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
72
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
73
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
74
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
75
|
-
|
|
76
|
-
### Response
|
|
77
|
-
|
|
78
|
-
**Promise\<[operations.GetAddressResponseBody](../../models/operations/getaddressresponsebody.md)\>**
|
|
79
|
-
|
|
80
|
-
### Errors
|
|
81
|
-
|
|
82
|
-
| Error Object | Status Code | Content Type |
|
|
83
|
-
| --------------- | --------------- | --------------- |
|
|
84
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
2
|
+
(*customers*)
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# CustomersAPI
|
|
2
|
+
(*customersAPI*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
+
Customers API
|
|
7
|
+
|
|
6
8
|
### Available Operations
|
|
7
9
|
|
|
8
|
-
* [
|
|
10
|
+
* [getRecommendedProducts](#getrecommendedproducts) - List all recommended products
|
|
9
11
|
|
|
10
|
-
##
|
|
12
|
+
## getRecommendedProducts
|
|
11
13
|
|
|
12
|
-
Retrieves a list of products specified
|
|
14
|
+
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.
|
|
13
15
|
|
|
14
16
|
### Example Usage
|
|
15
17
|
|
|
@@ -21,7 +23,9 @@ const ceStorefront = new CeStorefront({
|
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
async function run() {
|
|
24
|
-
const result = await ceStorefront.
|
|
26
|
+
const result = await ceStorefront.customersAPI.getRecommendedProducts({
|
|
27
|
+
id: "<id>",
|
|
28
|
+
});
|
|
25
29
|
|
|
26
30
|
// Handle the result
|
|
27
31
|
console.log(result)
|
|
@@ -36,7 +40,7 @@ The standalone function version of this method:
|
|
|
36
40
|
|
|
37
41
|
```typescript
|
|
38
42
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import {
|
|
43
|
+
import { customersAPIGetRecommendedProducts } from "ce-storefront/funcs/customersAPIGetRecommendedProducts.js";
|
|
40
44
|
|
|
41
45
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
46
|
// You can create one instance of it to use across an application.
|
|
@@ -45,7 +49,9 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
45
49
|
});
|
|
46
50
|
|
|
47
51
|
async function run() {
|
|
48
|
-
const res = await
|
|
52
|
+
const res = await customersAPIGetRecommendedProducts(ceStorefront, {
|
|
53
|
+
id: "<id>",
|
|
54
|
+
});
|
|
49
55
|
|
|
50
56
|
if (!res.ok) {
|
|
51
57
|
throw res.error;
|
|
@@ -64,14 +70,14 @@ run();
|
|
|
64
70
|
|
|
65
71
|
| Parameter | Type | Required | Description |
|
|
66
72
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.
|
|
73
|
+
| `request` | [operations.GetRecommendedProductsRequest](../../models/operations/getrecommendedproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
74
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
75
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
70
76
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
77
|
|
|
72
78
|
### Response
|
|
73
79
|
|
|
74
|
-
**Promise\<[operations.
|
|
80
|
+
**Promise\<[operations.GetRecommendedProductsResponseBody](../../models/operations/getrecommendedproductsresponsebody.md)\>**
|
|
75
81
|
|
|
76
82
|
### Errors
|
|
77
83
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# Newsletter
|
|
2
|
+
(*campaigns.newsletter*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
8
|
+
* [subscribe](#subscribe) - Subscribe to newsletter
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## subscribe
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Subscribe to newsletter
|
|
13
13
|
|
|
14
14
|
### Example Usage
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ const ceStorefront = new CeStorefront({
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
24
|
-
const result = await ceStorefront.
|
|
24
|
+
const result = await ceStorefront.campaigns.newsletter.subscribe();
|
|
25
25
|
|
|
26
26
|
// Handle the result
|
|
27
27
|
console.log(result)
|
|
@@ -36,7 +36,7 @@ The standalone function version of this method:
|
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import {
|
|
39
|
+
import { campaignsNewsletterSubscribe } from "ce-storefront/funcs/campaignsNewsletterSubscribe.js";
|
|
40
40
|
|
|
41
41
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
42
|
// You can create one instance of it to use across an application.
|
|
@@ -45,7 +45,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
async function run() {
|
|
48
|
-
const res = await
|
|
48
|
+
const res = await campaignsNewsletterSubscribe(ceStorefront);
|
|
49
49
|
|
|
50
50
|
if (!res.ok) {
|
|
51
51
|
throw res.error;
|
|
@@ -64,14 +64,14 @@ run();
|
|
|
64
64
|
|
|
65
65
|
| Parameter | Type | Required | Description |
|
|
66
66
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.
|
|
67
|
+
| `request` | [operations.PostCustomersNewsletterSubscriptionRequestBody](../../models/operations/postcustomersnewslettersubscriptionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
68
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
69
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
70
70
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
71
|
|
|
72
72
|
### Response
|
|
73
73
|
|
|
74
|
-
**Promise\<[operations.
|
|
74
|
+
**Promise\<[operations.PostCustomersNewsletterSubscriptionResponseBody](../../models/operations/postcustomersnewslettersubscriptionresponsebody.md)\>**
|
|
75
75
|
|
|
76
76
|
### Errors
|
|
77
77
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# NotificationPreferences
|
|
2
|
+
(*user.notificationPreferences*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
9
|
-
* [
|
|
10
|
-
* [
|
|
8
|
+
* [get](#get) - Retrieve user notification preferences
|
|
9
|
+
* [create](#create) - Create user notification preferences
|
|
10
|
+
* [update](#update) - Update user notification preferences
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## get
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
15
15
|
|
|
16
16
|
### Example Usage
|
|
17
17
|
|
|
@@ -23,8 +23,8 @@ const ceStorefront = new CeStorefront({
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
26
|
-
const result = await ceStorefront.
|
|
27
|
-
|
|
26
|
+
const result = await ceStorefront.user.notificationPreferences.get({
|
|
27
|
+
id: "<id>",
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
// Handle the result
|
|
@@ -40,7 +40,7 @@ The standalone function version of this method:
|
|
|
40
40
|
|
|
41
41
|
```typescript
|
|
42
42
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
43
|
-
import {
|
|
43
|
+
import { userNotificationPreferencesGet } from "ce-storefront/funcs/userNotificationPreferencesGet.js";
|
|
44
44
|
|
|
45
45
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
46
46
|
// You can create one instance of it to use across an application.
|
|
@@ -49,8 +49,8 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
async function run() {
|
|
52
|
-
const res = await
|
|
53
|
-
|
|
52
|
+
const res = await userNotificationPreferencesGet(ceStorefront, {
|
|
53
|
+
id: "<id>",
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
if (!res.ok) {
|
|
@@ -70,27 +70,25 @@ run();
|
|
|
70
70
|
|
|
71
71
|
| Parameter | Type | Required | Description |
|
|
72
72
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
73
|
-
| `request` | [operations.
|
|
73
|
+
| `request` | [operations.GetAuthUserIdNotificationPreferencesRequest](../../models/operations/getauthuseridnotificationpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
74
74
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
75
75
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
76
76
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
77
77
|
|
|
78
78
|
### Response
|
|
79
79
|
|
|
80
|
-
**Promise\<[operations.
|
|
80
|
+
**Promise\<[operations.GetAuthUserIdNotificationPreferencesResponseBody](../../models/operations/getauthuseridnotificationpreferencesresponsebody.md)\>**
|
|
81
81
|
|
|
82
82
|
### Errors
|
|
83
83
|
|
|
84
|
-
| Error Object
|
|
85
|
-
|
|
|
86
|
-
| errors.
|
|
87
|
-
| errors.NotFound | 404 | application/json |
|
|
88
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
84
|
+
| Error Object | Status Code | Content Type |
|
|
85
|
+
| --------------- | --------------- | --------------- |
|
|
86
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
89
87
|
|
|
90
88
|
|
|
91
|
-
##
|
|
89
|
+
## create
|
|
92
90
|
|
|
93
|
-
|
|
91
|
+
Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
94
92
|
|
|
95
93
|
### Example Usage
|
|
96
94
|
|
|
@@ -102,8 +100,8 @@ const ceStorefront = new CeStorefront({
|
|
|
102
100
|
});
|
|
103
101
|
|
|
104
102
|
async function run() {
|
|
105
|
-
const result = await ceStorefront.
|
|
106
|
-
|
|
103
|
+
const result = await ceStorefront.user.notificationPreferences.create({
|
|
104
|
+
id: "<id>",
|
|
107
105
|
});
|
|
108
106
|
|
|
109
107
|
// Handle the result
|
|
@@ -119,7 +117,7 @@ The standalone function version of this method:
|
|
|
119
117
|
|
|
120
118
|
```typescript
|
|
121
119
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
122
|
-
import {
|
|
120
|
+
import { userNotificationPreferencesCreate } from "ce-storefront/funcs/userNotificationPreferencesCreate.js";
|
|
123
121
|
|
|
124
122
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
125
123
|
// You can create one instance of it to use across an application.
|
|
@@ -128,8 +126,8 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
128
126
|
});
|
|
129
127
|
|
|
130
128
|
async function run() {
|
|
131
|
-
const res = await
|
|
132
|
-
|
|
129
|
+
const res = await userNotificationPreferencesCreate(ceStorefront, {
|
|
130
|
+
id: "<id>",
|
|
133
131
|
});
|
|
134
132
|
|
|
135
133
|
if (!res.ok) {
|
|
@@ -149,14 +147,14 @@ run();
|
|
|
149
147
|
|
|
150
148
|
| Parameter | Type | Required | Description |
|
|
151
149
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
152
|
-
| `request` | [operations.
|
|
150
|
+
| `request` | [operations.PostAuthUserIdNotificationPreferencesRequest](../../models/operations/postauthuseridnotificationpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
153
151
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
154
152
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
155
153
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
156
154
|
|
|
157
155
|
### Response
|
|
158
156
|
|
|
159
|
-
**Promise\<[operations.
|
|
157
|
+
**Promise\<[operations.PostAuthUserIdNotificationPreferencesResponseBody](../../models/operations/postauthuseridnotificationpreferencesresponsebody.md)\>**
|
|
160
158
|
|
|
161
159
|
### Errors
|
|
162
160
|
|
|
@@ -165,9 +163,9 @@ run();
|
|
|
165
163
|
| errors.SDKError | 4xx-5xx | */* |
|
|
166
164
|
|
|
167
165
|
|
|
168
|
-
##
|
|
166
|
+
## update
|
|
169
167
|
|
|
170
|
-
|
|
168
|
+
Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
171
169
|
|
|
172
170
|
### Example Usage
|
|
173
171
|
|
|
@@ -179,9 +177,8 @@ const ceStorefront = new CeStorefront({
|
|
|
179
177
|
});
|
|
180
178
|
|
|
181
179
|
async function run() {
|
|
182
|
-
const result = await ceStorefront.
|
|
183
|
-
|
|
184
|
-
returnId: "<value>",
|
|
180
|
+
const result = await ceStorefront.user.notificationPreferences.update({
|
|
181
|
+
id: "<id>",
|
|
185
182
|
});
|
|
186
183
|
|
|
187
184
|
// Handle the result
|
|
@@ -197,7 +194,7 @@ The standalone function version of this method:
|
|
|
197
194
|
|
|
198
195
|
```typescript
|
|
199
196
|
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
200
|
-
import {
|
|
197
|
+
import { userNotificationPreferencesUpdate } from "ce-storefront/funcs/userNotificationPreferencesUpdate.js";
|
|
201
198
|
|
|
202
199
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
203
200
|
// You can create one instance of it to use across an application.
|
|
@@ -206,9 +203,8 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
206
203
|
});
|
|
207
204
|
|
|
208
205
|
async function run() {
|
|
209
|
-
const res = await
|
|
210
|
-
|
|
211
|
-
returnId: "<value>",
|
|
206
|
+
const res = await userNotificationPreferencesUpdate(ceStorefront, {
|
|
207
|
+
id: "<id>",
|
|
212
208
|
});
|
|
213
209
|
|
|
214
210
|
if (!res.ok) {
|
|
@@ -228,14 +224,14 @@ run();
|
|
|
228
224
|
|
|
229
225
|
| Parameter | Type | Required | Description |
|
|
230
226
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
231
|
-
| `request` | [operations.
|
|
227
|
+
| `request` | [operations.PutAuthUserIdNotificationPreferencesRequest](../../models/operations/putauthuseridnotificationpreferencesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
232
228
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
233
229
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
234
230
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
235
231
|
|
|
236
232
|
### Response
|
|
237
233
|
|
|
238
|
-
**Promise\<[operations.
|
|
234
|
+
**Promise\<[operations.PutAuthUserIdNotificationPreferencesResponseBody](../../models/operations/putauthuseridnotificationpreferencesresponsebody.md)\>**
|
|
239
235
|
|
|
240
236
|
### Errors
|
|
241
237
|
|