ce-storefront 0.0.1 → 0.0.2
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 +89 -124
- package/docs/sdks/addresses/README.md +78 -0
- package/docs/sdks/analytics/README.md +5 -5
- package/docs/sdks/auth/README.md +16 -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 +12 -15
- package/docs/sdks/{otp → newsletter}/README.md +10 -10
- package/docs/sdks/notificationpreferences/README.md +240 -0
- 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/returns/README.md +0 -160
- 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/{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/{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/{catalogProductsRecommendedList.d.ts → customersGetRecommendedProducts.d.ts} +2 -2
- package/funcs/customersGetRecommendedProducts.d.ts.map +1 -0
- package/funcs/{catalogProductsRecommendedList.js → customersGetRecommendedProducts.js} +3 -3
- package/funcs/customersGetRecommendedProducts.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 +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/orderreturnitem.d.ts +0 -31
- package/models/components/orderreturnitem.d.ts.map +1 -1
- package/models/components/orderreturnitem.js +1 -42
- package/models/components/orderreturnitem.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/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/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- 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 +8 -14
- package/sdk/auth.d.ts.map +1 -1
- package/sdk/auth.js +12 -22
- 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 +3 -3
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +5 -5
- package/sdk/customers.js.map +1 -1
- 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 -7
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +0 -10
- 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/returns.d.ts +0 -14
- package/sdk/returns.d.ts.map +1 -1
- package/sdk/returns.js +0 -20
- package/sdk/returns.js.map +1 -1
- 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 +8 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -7
- 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/{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/{customersGetAddresses.ts → customersAddressesList.ts} +1 -1
- package/src/funcs/{catalogProductsRecommendedList.ts → customersGetRecommendedProducts.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 +0 -1
- package/src/models/components/orderreturnitem.ts +0 -70
- 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/skuinfo.ts +4 -4
- package/src/models/errors/unauthorized.ts +1 -1
- package/src/models/operations/index.ts +0 -3
- 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 +18 -30
- 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 +6 -7
- 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 -11
- package/src/sdk/products.ts +42 -24
- package/src/sdk/promotions.ts +20 -0
- package/src/sdk/returns.ts +0 -28
- package/src/sdk/reviews.ts +3 -3
- package/src/sdk/sdk.ts +15 -9
- 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/docs/sdks/upsell/README.md +0 -82
- 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.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/ordersGetReturns.js +0 -80
- 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/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/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/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 +0 -12
- package/sdk/recommended.d.ts.map +0 -1
- package/sdk/recommended.js +0 -22
- package/sdk/recommended.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/ordersGetReturns.ts +0 -103
- package/src/funcs/ordersReturnsCreate.ts +0 -139
- package/src/funcs/ordersReturnsGet.ts +0 -132
- package/src/models/components/createorderreturn.ts +0 -73
- package/src/models/operations/getordersordernumberreturnreturnid.ts +0 -174
- package/src/models/operations/getordersreturns.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/recommended.ts +0 -20
- package/src/sdk/similar.ts +0 -23
- package/src/sdk/token.ts +0 -23
- package/src/sdk/upsell.ts +0 -23
package/src/sdk/sdk.ts
CHANGED
|
@@ -9,12 +9,13 @@ 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";
|
|
14
13
|
import { Offers } from "./offers.js";
|
|
15
14
|
import { Orders } from "./orders.js";
|
|
16
15
|
import { Payments } from "./payments.js";
|
|
17
16
|
import { Shipping } from "./shipping.js";
|
|
17
|
+
import { User } from "./user.js";
|
|
18
|
+
import { Utils } from "./utils.js";
|
|
18
19
|
import { Wishlist } from "./wishlist.js";
|
|
19
20
|
|
|
20
21
|
export class CeStorefront extends ClientSDK {
|
|
@@ -23,6 +24,11 @@ export class CeStorefront extends ClientSDK {
|
|
|
23
24
|
return (this._catalog ??= new Catalog(this.options$));
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
private _customers?: Customers;
|
|
28
|
+
get customers(): Customers {
|
|
29
|
+
return (this._customers ??= new Customers(this.options$));
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
private _carts?: Carts;
|
|
27
33
|
get carts(): Carts {
|
|
28
34
|
return (this._carts ??= new Carts(this.options$));
|
|
@@ -43,11 +49,6 @@ export class CeStorefront extends ClientSDK {
|
|
|
43
49
|
return (this._wishlist ??= new Wishlist(this.options$));
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
private _customers?: Customers;
|
|
47
|
-
get customers(): Customers {
|
|
48
|
-
return (this._customers ??= new Customers(this.options$));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
52
|
private _orders?: Orders;
|
|
52
53
|
get orders(): Orders {
|
|
53
54
|
return (this._orders ??= new Orders(this.options$));
|
|
@@ -63,14 +64,19 @@ export class CeStorefront extends ClientSDK {
|
|
|
63
64
|
return (this._auth ??= new Auth(this.options$));
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
private _user?: User;
|
|
68
|
+
get user(): User {
|
|
69
|
+
return (this._user ??= new User(this.options$));
|
|
70
|
+
}
|
|
71
|
+
|
|
66
72
|
private _payments?: Payments;
|
|
67
73
|
get payments(): Payments {
|
|
68
74
|
return (this._payments ??= new Payments(this.options$));
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
private
|
|
72
|
-
get
|
|
73
|
-
return (this.
|
|
77
|
+
private _utils?: Utils;
|
|
78
|
+
get utils(): Utils {
|
|
79
|
+
return (this._utils ??= new Utils(this.options$));
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
private _analytics?: Analytics;
|
package/src/sdk/shipping.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
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
|
|
17
|
+
async checkPincodeServiceability(
|
|
18
18
|
request: operations.GetShipmentPincodeServiceabilityRequest,
|
|
19
19
|
options?: RequestOptions
|
|
20
20
|
): Promise<operations.GetShipmentPincodeServiceabilityResponseBody> {
|
|
21
|
-
return unwrapAsync(
|
|
21
|
+
return unwrapAsync(shippingCheckPincodeServiceability(this, request, options));
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sdk/user.ts
CHANGED
|
@@ -2,173 +2,12 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { authUserCreateNotificationPreferences } from "../funcs/authUserCreateNotificationPreferences.js";
|
|
8
|
-
import { authUserDeactivateAccount } from "../funcs/authUserDeactivateAccount.js";
|
|
9
|
-
import { authUserDeleteProfileImage } from "../funcs/authUserDeleteProfileImage.js";
|
|
10
|
-
import { authUserForgotPassword } from "../funcs/authUserForgotPassword.js";
|
|
11
|
-
import { authUserGetNotificationPreferences } from "../funcs/authUserGetNotificationPreferences.js";
|
|
12
|
-
import { authUserGetProfileImage } from "../funcs/authUserGetProfileImage.js";
|
|
13
|
-
import { authUserLogout } from "../funcs/authUserLogout.js";
|
|
14
|
-
import { authUserResetPassword } from "../funcs/authUserResetPassword.js";
|
|
15
|
-
import { authUserUpdateNotificationPreferences } from "../funcs/authUserUpdateNotificationPreferences.js";
|
|
16
|
-
import { authUserUpdateProfileImage } from "../funcs/authUserUpdateProfileImage.js";
|
|
17
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
18
|
-
import * as operations from "../models/operations/index.js";
|
|
19
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { NotificationPreferences } from "./notificationpreferences.js";
|
|
20
7
|
|
|
21
8
|
export class User extends ClientSDK {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* @remarks
|
|
26
|
-
* 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.
|
|
27
|
-
*/
|
|
28
|
-
async addProfileImage(
|
|
29
|
-
request: operations.PostAuthUserIdProfileImageRequest,
|
|
30
|
-
options?: RequestOptions
|
|
31
|
-
): Promise<operations.PostAuthUserIdProfileImageResponseBody> {
|
|
32
|
-
return unwrapAsync(authUserAddProfileImage(this, request, options));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Update profile image
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* 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.
|
|
40
|
-
*/
|
|
41
|
-
async updateProfileImage(
|
|
42
|
-
request: operations.PutAuthUserIdProfileImageRequest,
|
|
43
|
-
options?: RequestOptions
|
|
44
|
-
): Promise<operations.PutAuthUserIdProfileImageResponseBody> {
|
|
45
|
-
return unwrapAsync(authUserUpdateProfileImage(this, request, options));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Delete profile image
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* 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.
|
|
53
|
-
*/
|
|
54
|
-
async deleteProfileImage(
|
|
55
|
-
request: operations.DeleteAuthUserIdProfileImageRequest,
|
|
56
|
-
options?: RequestOptions
|
|
57
|
-
): Promise<operations.DeleteAuthUserIdProfileImageResponseBody> {
|
|
58
|
-
return unwrapAsync(authUserDeleteProfileImage(this, request, options));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Retrieve a profile image
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* 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.
|
|
66
|
-
*/
|
|
67
|
-
async getProfileImage(
|
|
68
|
-
request: operations.GetAuthUserIdProfileImageRequest,
|
|
69
|
-
options?: RequestOptions
|
|
70
|
-
): Promise<operations.GetAuthUserIdProfileImageResponseBody> {
|
|
71
|
-
return unwrapAsync(authUserGetProfileImage(this, request, options));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Deactivate account
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
78
|
-
* 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.
|
|
79
|
-
*/
|
|
80
|
-
async deactivateAccount(
|
|
81
|
-
request: operations.PutAuthUserIdDeactivateRequest,
|
|
82
|
-
options?: RequestOptions
|
|
83
|
-
): Promise<operations.PutAuthUserIdDeactivateResponseBody> {
|
|
84
|
-
return unwrapAsync(authUserDeactivateAccount(this, request, options));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Change password
|
|
89
|
-
*
|
|
90
|
-
* @remarks
|
|
91
|
-
* The Change Password API is a key feature designed to provide a secure and standardized method for users to update their passwords.
|
|
92
|
-
*/
|
|
93
|
-
async changePassword(
|
|
94
|
-
request?: operations.PostAuthChangePasswordRequestBody | undefined,
|
|
95
|
-
options?: RequestOptions
|
|
96
|
-
): Promise<operations.PostAuthChangePasswordResponseBody> {
|
|
97
|
-
return unwrapAsync(authUserChangePassword(this, request, options));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Forgot password
|
|
102
|
-
*
|
|
103
|
-
* @remarks
|
|
104
|
-
* 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.
|
|
105
|
-
*/
|
|
106
|
-
async forgotPassword(
|
|
107
|
-
request?: operations.PostAuthForgotPasswordRequestBody | undefined,
|
|
108
|
-
options?: RequestOptions
|
|
109
|
-
): Promise<operations.PostAuthForgotPasswordResponseBody> {
|
|
110
|
-
return unwrapAsync(authUserForgotPassword(this, request, options));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Reset password
|
|
115
|
-
*
|
|
116
|
-
* @remarks
|
|
117
|
-
* Reset password
|
|
118
|
-
*/
|
|
119
|
-
async resetPassword(
|
|
120
|
-
request?: operations.PostAuthResetPasswordRequestBody | undefined,
|
|
121
|
-
options?: RequestOptions
|
|
122
|
-
): Promise<operations.PostAuthResetPasswordResponseBody> {
|
|
123
|
-
return unwrapAsync(authUserResetPassword(this, request, options));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Retrieve user notification preferences
|
|
128
|
-
*
|
|
129
|
-
* @remarks
|
|
130
|
-
* The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
131
|
-
*/
|
|
132
|
-
async getNotificationPreferences(
|
|
133
|
-
request: operations.GetAuthUserIdNotificationPreferencesRequest,
|
|
134
|
-
options?: RequestOptions
|
|
135
|
-
): Promise<operations.GetAuthUserIdNotificationPreferencesResponseBody> {
|
|
136
|
-
return unwrapAsync(authUserGetNotificationPreferences(this, request, options));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Create user notification preferences
|
|
141
|
-
*
|
|
142
|
-
* @remarks
|
|
143
|
-
* Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
144
|
-
*/
|
|
145
|
-
async createNotificationPreferences(
|
|
146
|
-
request: operations.PostAuthUserIdNotificationPreferencesRequest,
|
|
147
|
-
options?: RequestOptions
|
|
148
|
-
): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody> {
|
|
149
|
-
return unwrapAsync(authUserCreateNotificationPreferences(this, request, options));
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Update user notification preferences
|
|
154
|
-
*
|
|
155
|
-
* @remarks
|
|
156
|
-
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
157
|
-
*/
|
|
158
|
-
async updateNotificationPreferences(
|
|
159
|
-
request: operations.PutAuthUserIdNotificationPreferencesRequest,
|
|
160
|
-
options?: RequestOptions
|
|
161
|
-
): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody> {
|
|
162
|
-
return unwrapAsync(authUserUpdateNotificationPreferences(this, request, options));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Logout user
|
|
167
|
-
*
|
|
168
|
-
* @remarks
|
|
169
|
-
* 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.
|
|
170
|
-
*/
|
|
171
|
-
async logout(options?: RequestOptions): Promise<operations.PostAuthLogoutResponseBody> {
|
|
172
|
-
return unwrapAsync(authUserLogout(this, options));
|
|
9
|
+
private _notificationPreferences?: NotificationPreferences;
|
|
10
|
+
get notificationPreferences(): NotificationPreferences {
|
|
11
|
+
return (this._notificationPreferences ??= new NotificationPreferences(this.options$));
|
|
173
12
|
}
|
|
174
13
|
}
|
|
@@ -2,13 +2,26 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { utilsGetCountries } from "../funcs/utilsGetCountries.js";
|
|
6
|
+
import { utilsGetPincodes } from "../funcs/utilsGetPincodes.js";
|
|
7
|
+
import { utilsGetStates } from "../funcs/utilsGetStates.js";
|
|
7
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
9
|
import * as operations from "../models/operations/index.js";
|
|
9
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
11
|
|
|
11
|
-
export class
|
|
12
|
+
export class Utils extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve all countries
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Retrieve all countries
|
|
18
|
+
*/
|
|
19
|
+
async getCountries(
|
|
20
|
+
options?: RequestOptions
|
|
21
|
+
): Promise<operations.GetCommonCountriesResponseBody> {
|
|
22
|
+
return unwrapAsync(utilsGetCountries(this, options));
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
/**
|
|
13
26
|
* Retrieve country wise states
|
|
14
27
|
*
|
|
@@ -19,7 +32,7 @@ export class Countries extends ClientSDK {
|
|
|
19
32
|
request: operations.GetCommonCountriesIsoCodeStatesRequest,
|
|
20
33
|
options?: RequestOptions
|
|
21
34
|
): Promise<operations.GetCommonCountriesIsoCodeStatesResponseBody> {
|
|
22
|
-
return unwrapAsync(
|
|
35
|
+
return unwrapAsync(utilsGetStates(this, request, options));
|
|
23
36
|
}
|
|
24
37
|
|
|
25
38
|
/**
|
|
@@ -32,6 +45,6 @@ export class Countries extends ClientSDK {
|
|
|
32
45
|
request: operations.GetCommonCountriesCountryIsoCodePincodesRequest,
|
|
33
46
|
options?: RequestOptions
|
|
34
47
|
): Promise<operations.GetCommonCountriesCountryIsoCodePincodesResponseBody> {
|
|
35
|
-
return unwrapAsync(
|
|
48
|
+
return unwrapAsync(utilsGetPincodes(this, request, options));
|
|
36
49
|
}
|
|
37
50
|
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# CrossSell
|
|
2
|
-
(*catalog.products.crossSell*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [list](#list) - Retrieve cross-sell products
|
|
9
|
-
|
|
10
|
-
## list
|
|
11
|
-
|
|
12
|
-
Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
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.catalog.products.crossSell.list({});
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import { catalogProductsCrossSellList } from "ce-storefront/funcs/catalogProductsCrossSellList.js";
|
|
40
|
-
|
|
41
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const ceStorefront = new CeStorefrontCore({
|
|
44
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await catalogProductsCrossSellList(ceStorefront, {});
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.GetCrossSellRequest](../../models/operations/getcrosssellrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
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
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.GetCrossSellResponseBody](../../models/operations/getcrosssellresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Object | Status Code | Content Type |
|
|
79
|
-
| ------------------- | ------------------- | ------------------- |
|
|
80
|
-
| errors.Unauthorized | 401 | application/json |
|
|
81
|
-
| errors.NotFound | 404 | application/json |
|
|
82
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Similar
|
|
2
|
-
(*catalog.products.similar*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [list](#list) - Retrieve similar products
|
|
9
|
-
|
|
10
|
-
## list
|
|
11
|
-
|
|
12
|
-
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.
|
|
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.catalog.products.similar.list({});
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import { catalogProductsSimilarList } from "ce-storefront/funcs/catalogProductsSimilarList.js";
|
|
40
|
-
|
|
41
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const ceStorefront = new CeStorefrontCore({
|
|
44
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await catalogProductsSimilarList(ceStorefront, {});
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.GetSimilarRequest](../../models/operations/getsimilarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
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
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.GetSimilarResponseBody](../../models/operations/getsimilarresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Object | Status Code | Content Type |
|
|
79
|
-
| ------------------- | ------------------- | ------------------- |
|
|
80
|
-
| errors.Unauthorized | 401 | application/json |
|
|
81
|
-
| errors.NotFound | 404 | application/json |
|
|
82
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# Token
|
|
2
|
-
(*auth.token*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [refresh](#refresh) - Refresh access token
|
|
9
|
-
|
|
10
|
-
## refresh
|
|
11
|
-
|
|
12
|
-
The Refresh Access Token API is an integral component designed to enhance security and user experience. It enables clients to refresh their access tokens seamlessly, extending user sessions without compromising security.
|
|
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.auth.token.refresh();
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import { authTokenRefresh } from "ce-storefront/funcs/authTokenRefresh.js";
|
|
40
|
-
|
|
41
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const ceStorefront = new CeStorefrontCore({
|
|
44
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await authTokenRefresh(ceStorefront);
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.PostAuthRefreshTokenRequestBody](../../models/operations/postauthrefreshtokenrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
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
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.PostAuthRefreshTokenResponseBody](../../models/operations/postauthrefreshtokenresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Object | Status Code | Content Type |
|
|
79
|
-
| --------------- | --------------- | --------------- |
|
|
80
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# UpSell
|
|
2
|
-
(*catalog.products.upSell*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [list](#list) - Retrieve up-sell products
|
|
9
|
-
|
|
10
|
-
## list
|
|
11
|
-
|
|
12
|
-
Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
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.catalog.products.upSell.list({});
|
|
25
|
-
|
|
26
|
-
// Handle the result
|
|
27
|
-
console.log(result)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
run();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Standalone function
|
|
34
|
-
|
|
35
|
-
The standalone function version of this method:
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
39
|
-
import { catalogProductsUpSellList } from "ce-storefront/funcs/catalogProductsUpSellList.js";
|
|
40
|
-
|
|
41
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
42
|
-
// You can create one instance of it to use across an application.
|
|
43
|
-
const ceStorefront = new CeStorefrontCore({
|
|
44
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
async function run() {
|
|
48
|
-
const res = await catalogProductsUpSellList(ceStorefront, {});
|
|
49
|
-
|
|
50
|
-
if (!res.ok) {
|
|
51
|
-
throw res.error;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { value: result } = res;
|
|
55
|
-
|
|
56
|
-
// Handle the result
|
|
57
|
-
console.log(result)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
run();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Parameters
|
|
64
|
-
|
|
65
|
-
| Parameter | Type | Required | Description |
|
|
66
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
67
|
-
| `request` | [operations.GetUpSellRequest](../../models/operations/getupsellrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
68
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
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
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
-
|
|
72
|
-
### Response
|
|
73
|
-
|
|
74
|
-
**Promise\<[operations.GetUpSellResponseBody](../../models/operations/getupsellresponsebody.md)\>**
|
|
75
|
-
|
|
76
|
-
### Errors
|
|
77
|
-
|
|
78
|
-
| Error Object | Status Code | Content Type |
|
|
79
|
-
| ------------------- | ------------------- | ------------------- |
|
|
80
|
-
| errors.Unauthorized | 401 | application/json |
|
|
81
|
-
| errors.NotFound | 404 | application/json |
|
|
82
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyticsTrackEvent.d.ts","sourceRoot":"","sources":["../src/funcs/analyticsTrackEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAI9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACrC,OAAO,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,UAAU,CAAC,cAAc,GAAG,SAAS,EAC/C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CACN,MAAM,CACF,UAAU,CAAC,6BAA6B,EACtC,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CACpB,CACJ,CA4EA"}
|