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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationpreferences.d.ts","sourceRoot":"","sources":["../src/sdk/notificationpreferences.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,SAAS;IAClD;;;;;OAKG;IACG,GAAG,CACL,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;IAIvE;;;;;OAKG;IACG,MAAM,CACR,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,iDAAiD,CAAC;IAIxE;;;;;OAKG;IACG,MAAM,CACR,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;CAG1E"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NotificationPreferences = void 0;
|
|
7
|
+
const userNotificationPreferencesCreate_js_1 = require("../funcs/userNotificationPreferencesCreate.js");
|
|
8
|
+
const userNotificationPreferencesGet_js_1 = require("../funcs/userNotificationPreferencesGet.js");
|
|
9
|
+
const userNotificationPreferencesUpdate_js_1 = require("../funcs/userNotificationPreferencesUpdate.js");
|
|
10
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
|
+
const fp_js_1 = require("../types/fp.js");
|
|
12
|
+
class NotificationPreferences extends sdks_js_1.ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve user notification preferences
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
18
|
+
*/
|
|
19
|
+
async get(request, options) {
|
|
20
|
+
return (0, fp_js_1.unwrapAsync)((0, userNotificationPreferencesGet_js_1.userNotificationPreferencesGet)(this, request, options));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create user notification preferences
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
27
|
+
*/
|
|
28
|
+
async create(request, options) {
|
|
29
|
+
return (0, fp_js_1.unwrapAsync)((0, userNotificationPreferencesCreate_js_1.userNotificationPreferencesCreate)(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Update user notification preferences
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
36
|
+
*/
|
|
37
|
+
async update(request, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, userNotificationPreferencesUpdate_js_1.userNotificationPreferencesUpdate)(this, request, options));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.NotificationPreferences = NotificationPreferences;
|
|
42
|
+
//# sourceMappingURL=notificationpreferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationpreferences.js","sourceRoot":"","sources":["../src/sdk/notificationpreferences.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wGAAkG;AAClG,kGAA4F;AAC5F,wGAAkG;AAClG,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,uBAAwB,SAAQ,mBAAS;IAClD;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACL,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACR,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wEAAiC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACR,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wEAAiC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC;CACJ;AAvCD,0DAuCC"}
|
package/sdk/offers.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { ClientSDK
|
|
2
|
-
import
|
|
1
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
2
|
+
import { Coupons } from "./coupons.js";
|
|
3
|
+
import { Promotions } from "./promotions.js";
|
|
3
4
|
export declare class Offers extends ClientSDK {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* Retrieve active coupons
|
|
9
|
-
*/
|
|
10
|
-
getCoupons(options?: RequestOptions): Promise<operations.GetCouponsResponseBody>;
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve all promotions
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* All active promotions
|
|
16
|
-
*/
|
|
17
|
-
getPromotions(options?: RequestOptions): Promise<operations.GetPromotionsResponseBody>;
|
|
5
|
+
private _coupons?;
|
|
6
|
+
get coupons(): Coupons;
|
|
7
|
+
private _promotions?;
|
|
8
|
+
get promotions(): Promotions;
|
|
18
9
|
}
|
|
19
10
|
//# sourceMappingURL=offers.d.ts.map
|
package/sdk/offers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../src/sdk/offers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../src/sdk/offers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBAAa,MAAO,SAAQ,SAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,IAAI,UAAU,IAAI,UAAU,CAE3B;CACJ"}
|
package/sdk/offers.js
CHANGED
|
@@ -4,28 +4,17 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Offers = void 0;
|
|
7
|
-
const offersGetCoupons_js_1 = require("../funcs/offersGetCoupons.js");
|
|
8
|
-
const offersGetPromotions_js_1 = require("../funcs/offersGetPromotions.js");
|
|
9
7
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const
|
|
8
|
+
const coupons_js_1 = require("./coupons.js");
|
|
9
|
+
const promotions_js_1 = require("./promotions.js");
|
|
11
10
|
class Offers extends sdks_js_1.ClientSDK {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* @remarks
|
|
16
|
-
* Retrieve active coupons
|
|
17
|
-
*/
|
|
18
|
-
async getCoupons(options) {
|
|
19
|
-
return (0, fp_js_1.unwrapAsync)((0, offersGetCoupons_js_1.offersGetCoupons)(this, options));
|
|
11
|
+
get coupons() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._coupons) !== null && _a !== void 0 ? _a : (this._coupons = new coupons_js_1.Coupons(this.options$)));
|
|
20
14
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* @remarks
|
|
25
|
-
* All active promotions
|
|
26
|
-
*/
|
|
27
|
-
async getPromotions(options) {
|
|
28
|
-
return (0, fp_js_1.unwrapAsync)((0, offersGetPromotions_js_1.offersGetPromotions)(this, options));
|
|
15
|
+
get promotions() {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = this._promotions) !== null && _a !== void 0 ? _a : (this._promotions = new promotions_js_1.Promotions(this.options$)));
|
|
29
18
|
}
|
|
30
19
|
}
|
|
31
20
|
exports.Offers = Offers;
|
package/sdk/offers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.js","sourceRoot":"","sources":["../src/sdk/offers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"offers.js","sourceRoot":"","sources":["../src/sdk/offers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6CAAuC;AACvC,mDAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IAEjC,IAAI,OAAO;;QACP,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,UAAU;;QACV,OAAO,OAAC,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;CACJ;AAVD,wBAUC"}
|
package/sdk/orders.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
import { CeStorefrontPayments } from "./cestorefrontpayments.js";
|
|
4
4
|
import { Refunds } from "./refunds.js";
|
|
5
|
-
import { Returns } from "./returns.js";
|
|
6
5
|
import { Shipments } from "./shipments.js";
|
|
7
6
|
export declare class Orders extends ClientSDK {
|
|
8
7
|
private _shipments?;
|
|
@@ -11,8 +10,6 @@ export declare class Orders extends ClientSDK {
|
|
|
11
10
|
get refunds(): Refunds;
|
|
12
11
|
private _payments?;
|
|
13
12
|
get payments(): CeStorefrontPayments;
|
|
14
|
-
private _returns?;
|
|
15
|
-
get returns(): Returns;
|
|
16
13
|
/**
|
|
17
14
|
* Create order
|
|
18
15
|
*
|
|
@@ -48,12 +45,5 @@ export declare class Orders extends ClientSDK {
|
|
|
48
45
|
* to generate new payment request
|
|
49
46
|
*/
|
|
50
47
|
retryPayment(request: operations.PostRetryPaymentOrderIdRequest, options?: RequestOptions): Promise<operations.PostRetryPaymentOrderIdResponseBody>;
|
|
51
|
-
/**
|
|
52
|
-
* Retrieve all order returns
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* Retrieve all order returns
|
|
56
|
-
*/
|
|
57
|
-
getReturns(options?: RequestOptions): Promise<operations.GetOrdersReturnsResponseBody>;
|
|
58
48
|
}
|
|
59
49
|
//# sourceMappingURL=orders.d.ts.map
|
package/sdk/orders.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../src/sdk/orders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../src/sdk/orders.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EA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const ordersCreate_js_1 = require("../funcs/ordersCreate.js");
|
|
9
9
|
const ordersGet_js_1 = require("../funcs/ordersGet.js");
|
|
10
|
-
const ordersGetReturns_js_1 = require("../funcs/ordersGetReturns.js");
|
|
11
10
|
const ordersList_js_1 = require("../funcs/ordersList.js");
|
|
12
11
|
const ordersRetryPayment_js_1 = require("../funcs/ordersRetryPayment.js");
|
|
13
12
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
14
13
|
const fp_js_1 = require("../types/fp.js");
|
|
15
14
|
const cestorefrontpayments_js_1 = require("./cestorefrontpayments.js");
|
|
16
15
|
const refunds_js_1 = require("./refunds.js");
|
|
17
|
-
const returns_js_1 = require("./returns.js");
|
|
18
16
|
const shipments_js_1 = require("./shipments.js");
|
|
19
17
|
class Orders extends sdks_js_1.ClientSDK {
|
|
20
18
|
get shipments() {
|
|
@@ -29,10 +27,6 @@ class Orders extends sdks_js_1.ClientSDK {
|
|
|
29
27
|
var _a;
|
|
30
28
|
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new cestorefrontpayments_js_1.CeStorefrontPayments(this.options$)));
|
|
31
29
|
}
|
|
32
|
-
get returns() {
|
|
33
|
-
var _a;
|
|
34
|
-
return ((_a = this._returns) !== null && _a !== void 0 ? _a : (this._returns = new returns_js_1.Returns(this.options$)));
|
|
35
|
-
}
|
|
36
30
|
/**
|
|
37
31
|
* Create order
|
|
38
32
|
*
|
|
@@ -78,15 +72,6 @@ class Orders extends sdks_js_1.ClientSDK {
|
|
|
78
72
|
async retryPayment(request, options) {
|
|
79
73
|
return (0, fp_js_1.unwrapAsync)((0, ordersRetryPayment_js_1.ordersRetryPayment)(this, request, options));
|
|
80
74
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Retrieve all order returns
|
|
83
|
-
*
|
|
84
|
-
* @remarks
|
|
85
|
-
* Retrieve all order returns
|
|
86
|
-
*/
|
|
87
|
-
async getReturns(options) {
|
|
88
|
-
return (0, fp_js_1.unwrapAsync)((0, ordersGetReturns_js_1.ordersGetReturns)(this, options));
|
|
89
|
-
}
|
|
90
75
|
}
|
|
91
76
|
exports.Orders = Orders;
|
|
92
77
|
//# sourceMappingURL=orders.js.map
|
package/sdk/orders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../src/sdk/orders.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,wDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../src/sdk/orders.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,wDAAkD;AAClD,0DAAoD;AACpD,0EAAoE;AACpE,4CAA2D;AAE3D,0CAA6C;AAC7C,uEAAiE;AACjE,6CAAuC;AACvC,iDAA2C;AAE3C,MAAa,MAAO,SAAQ,mBAAS;IAEjC,IAAI,SAAS;;QACT,OAAO,OAAC,IAAI,CAAC,UAAU,oCAAf,IAAI,CAAC,UAAU,GAAK,IAAI,wBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,OAAO;;QACP,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,QAAQ;;QACR,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,8CAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACR,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACL,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACR,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CACd,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,CAAC;CACJ;AAhFD,wBAgFC"}
|
package/sdk/products.d.ts
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
import { CeStorefrontReviews } from "./cestorefrontreviews.js";
|
|
4
|
-
import { CrossSell } from "./crosssell.js";
|
|
5
|
-
import { Recommended } from "./recommended.js";
|
|
6
|
-
import { Similar } from "./similar.js";
|
|
7
|
-
import { UpSell } from "./upsell.js";
|
|
8
4
|
import { Variants } from "./variants.js";
|
|
9
5
|
export declare class Products extends ClientSDK {
|
|
10
6
|
private _variants?;
|
|
11
7
|
get variants(): Variants;
|
|
12
8
|
private _reviews?;
|
|
13
9
|
get reviews(): CeStorefrontReviews;
|
|
14
|
-
private _similar?;
|
|
15
|
-
get similar(): Similar;
|
|
16
|
-
private _upSell?;
|
|
17
|
-
get upSell(): UpSell;
|
|
18
|
-
private _crossSell?;
|
|
19
|
-
get crossSell(): CrossSell;
|
|
20
|
-
private _recommended?;
|
|
21
|
-
get recommended(): Recommended;
|
|
22
10
|
/**
|
|
23
11
|
* List all products
|
|
24
12
|
*
|
|
@@ -33,5 +21,26 @@ export declare class Products extends ClientSDK {
|
|
|
33
21
|
* Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
|
|
34
22
|
*/
|
|
35
23
|
get(request: operations.GetProductDetailsRequest, options?: RequestOptions): Promise<operations.GetProductDetailsResponseBody>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve similar products
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* 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.
|
|
29
|
+
*/
|
|
30
|
+
getSimilar(request: operations.GetSimilarRequest, options?: RequestOptions): Promise<operations.GetSimilarResponseBody>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve up-sell products
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
36
|
+
*/
|
|
37
|
+
getUpsells(request: operations.GetUpSellRequest, options?: RequestOptions): Promise<operations.GetUpSellResponseBody>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve cross-sell products
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
43
|
+
*/
|
|
44
|
+
getCrossSells(request: operations.GetCrossSellRequest, options?: RequestOptions): Promise<operations.GetCrossSellResponseBody>;
|
|
36
45
|
}
|
|
37
46
|
//# sourceMappingURL=products.d.ts.map
|
package/sdk/products.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../src/sdk/products.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../src/sdk/products.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,QAAS,SAAQ,SAAS;IACnC,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAsB;IACvC,IAAI,OAAO,IAAI,mBAAmB,CAEjC;IAED;;;;;OAKG;IACG,IAAI,CACN,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAI9C;;;;;OAKG;IACG,GAAG,CACL,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAIpD;;;;;OAKG;IACG,UAAU,CACZ,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI7C;;;;;OAKG;IACG,UAAU,CACZ,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAI5C;;;;;OAKG;IACG,aAAa,CACf,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGlD"}
|
package/sdk/products.js
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Products = void 0;
|
|
7
7
|
const catalogProductsGet_js_1 = require("../funcs/catalogProductsGet.js");
|
|
8
|
+
const catalogProductsGetCrossSells_js_1 = require("../funcs/catalogProductsGetCrossSells.js");
|
|
9
|
+
const catalogProductsGetSimilar_js_1 = require("../funcs/catalogProductsGetSimilar.js");
|
|
10
|
+
const catalogProductsGetUpsells_js_1 = require("../funcs/catalogProductsGetUpsells.js");
|
|
8
11
|
const catalogProductsList_js_1 = require("../funcs/catalogProductsList.js");
|
|
9
12
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
13
|
const fp_js_1 = require("../types/fp.js");
|
|
11
14
|
const cestorefrontreviews_js_1 = require("./cestorefrontreviews.js");
|
|
12
|
-
const crosssell_js_1 = require("./crosssell.js");
|
|
13
|
-
const recommended_js_1 = require("./recommended.js");
|
|
14
|
-
const similar_js_1 = require("./similar.js");
|
|
15
|
-
const upsell_js_1 = require("./upsell.js");
|
|
16
15
|
const variants_js_1 = require("./variants.js");
|
|
17
16
|
class Products extends sdks_js_1.ClientSDK {
|
|
18
17
|
get variants() {
|
|
@@ -23,22 +22,6 @@ class Products extends sdks_js_1.ClientSDK {
|
|
|
23
22
|
var _a;
|
|
24
23
|
return ((_a = this._reviews) !== null && _a !== void 0 ? _a : (this._reviews = new cestorefrontreviews_js_1.CeStorefrontReviews(this.options$)));
|
|
25
24
|
}
|
|
26
|
-
get similar() {
|
|
27
|
-
var _a;
|
|
28
|
-
return ((_a = this._similar) !== null && _a !== void 0 ? _a : (this._similar = new similar_js_1.Similar(this.options$)));
|
|
29
|
-
}
|
|
30
|
-
get upSell() {
|
|
31
|
-
var _a;
|
|
32
|
-
return ((_a = this._upSell) !== null && _a !== void 0 ? _a : (this._upSell = new upsell_js_1.UpSell(this.options$)));
|
|
33
|
-
}
|
|
34
|
-
get crossSell() {
|
|
35
|
-
var _a;
|
|
36
|
-
return ((_a = this._crossSell) !== null && _a !== void 0 ? _a : (this._crossSell = new crosssell_js_1.CrossSell(this.options$)));
|
|
37
|
-
}
|
|
38
|
-
get recommended() {
|
|
39
|
-
var _a;
|
|
40
|
-
return ((_a = this._recommended) !== null && _a !== void 0 ? _a : (this._recommended = new recommended_js_1.Recommended(this.options$)));
|
|
41
|
-
}
|
|
42
25
|
/**
|
|
43
26
|
* List all products
|
|
44
27
|
*
|
|
@@ -57,6 +40,33 @@ class Products extends sdks_js_1.ClientSDK {
|
|
|
57
40
|
async get(request, options) {
|
|
58
41
|
return (0, fp_js_1.unwrapAsync)((0, catalogProductsGet_js_1.catalogProductsGet)(this, request, options));
|
|
59
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve similar products
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* 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.
|
|
48
|
+
*/
|
|
49
|
+
async getSimilar(request, options) {
|
|
50
|
+
return (0, fp_js_1.unwrapAsync)((0, catalogProductsGetSimilar_js_1.catalogProductsGetSimilar)(this, request, options));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve up-sell products
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
57
|
+
*/
|
|
58
|
+
async getUpsells(request, options) {
|
|
59
|
+
return (0, fp_js_1.unwrapAsync)((0, catalogProductsGetUpsells_js_1.catalogProductsGetUpsells)(this, request, options));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve cross-sell products
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
66
|
+
*/
|
|
67
|
+
async getCrossSells(request, options) {
|
|
68
|
+
return (0, fp_js_1.unwrapAsync)((0, catalogProductsGetCrossSells_js_1.catalogProductsGetCrossSells)(this, request, options));
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
exports.Products = Products;
|
|
62
72
|
//# sourceMappingURL=products.js.map
|
package/sdk/products.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../src/sdk/products.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAC7C,qEAA+D;AAC/D
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../src/sdk/products.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,8FAAwF;AACxF,wFAAkF;AAClF,wFAAkF;AAClF,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAC7C,qEAA+D;AAC/D,+CAAyC;AAEzC,MAAa,QAAS,SAAQ,mBAAS;IAEnC,IAAI,QAAQ;;QACR,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAGD,IAAI,OAAO;;QACP,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,4CAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACpE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACL,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACZ,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACZ,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACf,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;CACJ;AA3ED,4BA2EC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as operations from "../models/operations/index.js";
|
|
3
|
+
export declare class Promotions extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve all promotions
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* All active promotions
|
|
9
|
+
*/
|
|
10
|
+
list(options?: RequestOptions): Promise<operations.GetPromotionsResponseBody>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=promotions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotions.d.ts","sourceRoot":"","sources":["../src/sdk/promotions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAGtF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Promotions = void 0;
|
|
7
|
+
const offersPromotionsList_js_1 = require("../funcs/offersPromotionsList.js");
|
|
8
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
+
const fp_js_1 = require("../types/fp.js");
|
|
10
|
+
class Promotions extends sdks_js_1.ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve all promotions
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* All active promotions
|
|
16
|
+
*/
|
|
17
|
+
async list(options) {
|
|
18
|
+
return (0, fp_js_1.unwrapAsync)((0, offersPromotionsList_js_1.offersPromotionsList)(this, options));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Promotions = Promotions;
|
|
22
|
+
//# sourceMappingURL=promotions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotions.js","sourceRoot":"","sources":["../src/sdk/promotions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,UAAW,SAAQ,mBAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,OAAwB;QAC/B,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC;CACJ;AAVD,gCAUC"}
|
package/sdk/reviews.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare class Reviews extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* Retrieve all reviews
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
list(request: operations.GetCustomersUserIdReviewsRequest, options?: RequestOptions): Promise<operations.GetCustomersUserIdReviewsResponseBody>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=reviews.d.ts.map
|
package/sdk/reviews.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../src/sdk/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,
|
|
1
|
+
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../src/sdk/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,IAAI,CACN,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAG/D"}
|
package/sdk/reviews.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Reviews = void 0;
|
|
7
|
-
const
|
|
7
|
+
const customersReviewsList_js_1 = require("../funcs/customersReviewsList.js");
|
|
8
8
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
9
|
const fp_js_1 = require("../types/fp.js");
|
|
10
10
|
class Reviews extends sdks_js_1.ClientSDK {
|
|
@@ -14,8 +14,8 @@ class Reviews extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Retrieve all reviews
|
|
16
16
|
*/
|
|
17
|
-
async
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
17
|
+
async list(request, options) {
|
|
18
|
+
return (0, fp_js_1.unwrapAsync)((0, customersReviewsList_js_1.customersReviewsList)(this, request, options));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.Reviews = Reviews;
|
package/sdk/reviews.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../src/sdk/reviews.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"reviews.js","sourceRoot":"","sources":["../src/sdk/reviews.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ;AAbD,0BAaC"}
|
package/sdk/sdk.d.ts
CHANGED
|
@@ -5,16 +5,20 @@ import { Campaigns } from "./campaigns.js";
|
|
|
5
5
|
import { Carts } from "./carts.js";
|
|
6
6
|
import { Catalog } from "./catalog.js";
|
|
7
7
|
import { Checkout } from "./checkout.js";
|
|
8
|
-
import { Common } from "./common.js";
|
|
9
8
|
import { Customers } from "./customers.js";
|
|
9
|
+
import { CustomersAPI } from "./customersapi.js";
|
|
10
10
|
import { Offers } from "./offers.js";
|
|
11
11
|
import { Orders } from "./orders.js";
|
|
12
12
|
import { Payments } from "./payments.js";
|
|
13
13
|
import { Shipping } from "./shipping.js";
|
|
14
|
+
import { User } from "./user.js";
|
|
15
|
+
import { Utils } from "./utils.js";
|
|
14
16
|
import { Wishlist } from "./wishlist.js";
|
|
15
17
|
export declare class CeStorefront extends ClientSDK {
|
|
16
18
|
private _catalog?;
|
|
17
19
|
get catalog(): Catalog;
|
|
20
|
+
private _customersAPI?;
|
|
21
|
+
get customersAPI(): CustomersAPI;
|
|
18
22
|
private _carts?;
|
|
19
23
|
get carts(): Carts;
|
|
20
24
|
private _checkout?;
|
|
@@ -31,10 +35,12 @@ export declare class CeStorefront extends ClientSDK {
|
|
|
31
35
|
get shipping(): Shipping;
|
|
32
36
|
private _auth?;
|
|
33
37
|
get auth(): Auth;
|
|
38
|
+
private _user?;
|
|
39
|
+
get user(): User;
|
|
34
40
|
private _payments?;
|
|
35
41
|
get payments(): Payments;
|
|
36
|
-
private
|
|
37
|
-
get
|
|
42
|
+
private _utils?;
|
|
43
|
+
get utils(): Utils;
|
|
38
44
|
private _analytics?;
|
|
39
45
|
get analytics(): Analytics;
|
|
40
46
|
private _campaigns?;
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SA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I,QAAQ,CAEvB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;CACJ"}
|
package/sdk/sdk.js
CHANGED
|
@@ -11,18 +11,24 @@ const campaigns_js_1 = require("./campaigns.js");
|
|
|
11
11
|
const carts_js_1 = require("./carts.js");
|
|
12
12
|
const catalog_js_1 = require("./catalog.js");
|
|
13
13
|
const checkout_js_1 = require("./checkout.js");
|
|
14
|
-
const common_js_1 = require("./common.js");
|
|
15
14
|
const customers_js_1 = require("./customers.js");
|
|
15
|
+
const customersapi_js_1 = require("./customersapi.js");
|
|
16
16
|
const offers_js_1 = require("./offers.js");
|
|
17
17
|
const orders_js_1 = require("./orders.js");
|
|
18
18
|
const payments_js_1 = require("./payments.js");
|
|
19
19
|
const shipping_js_1 = require("./shipping.js");
|
|
20
|
+
const user_js_1 = require("./user.js");
|
|
21
|
+
const utils_js_1 = require("./utils.js");
|
|
20
22
|
const wishlist_js_1 = require("./wishlist.js");
|
|
21
23
|
class CeStorefront extends sdks_js_1.ClientSDK {
|
|
22
24
|
get catalog() {
|
|
23
25
|
var _a;
|
|
24
26
|
return ((_a = this._catalog) !== null && _a !== void 0 ? _a : (this._catalog = new catalog_js_1.Catalog(this.options$)));
|
|
25
27
|
}
|
|
28
|
+
get customersAPI() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._customersAPI) !== null && _a !== void 0 ? _a : (this._customersAPI = new customersapi_js_1.CustomersAPI(this.options$)));
|
|
31
|
+
}
|
|
26
32
|
get carts() {
|
|
27
33
|
var _a;
|
|
28
34
|
return ((_a = this._carts) !== null && _a !== void 0 ? _a : (this._carts = new carts_js_1.Carts(this.options$)));
|
|
@@ -55,13 +61,17 @@ class CeStorefront extends sdks_js_1.ClientSDK {
|
|
|
55
61
|
var _a;
|
|
56
62
|
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new auth_js_1.Auth(this.options$)));
|
|
57
63
|
}
|
|
64
|
+
get user() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new user_js_1.User(this.options$)));
|
|
67
|
+
}
|
|
58
68
|
get payments() {
|
|
59
69
|
var _a;
|
|
60
70
|
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new payments_js_1.Payments(this.options$)));
|
|
61
71
|
}
|
|
62
|
-
get
|
|
72
|
+
get utils() {
|
|
63
73
|
var _a;
|
|
64
|
-
return ((_a = this.
|
|
74
|
+
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new utils_js_1.Utils(this.options$)));
|
|
65
75
|
}
|
|
66
76
|
get analytics() {
|
|
67
77
|
var _a;
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,iDAA2C;AAC3C,uCAAiC;AACjC,iDAA2C;AAC3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AO,OAAC,IAAI,CAAC,UAAU,oCAAf,IAAI,CAAC,UAAU,GAAK,IAAI,wBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,SAAS;;QACT,OAAO,OAAC,IAAI,CAAC,UAAU,oCAAf,IAAI,CAAC,UAAU,GAAK,IAAI,wBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;CACJ;AA3ED,oCA2EC"}
|
package/sdk/shipping.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare class Shipping extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* Check shipment delivery availability in an area by pincode
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
checkPincodeServiceability(request: operations.GetShipmentPincodeServiceabilityRequest, options?: RequestOptions): Promise<operations.GetShipmentPincodeServiceabilityResponseBody>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=shipping.d.ts.map
|
package/sdk/shipping.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../src/sdk/shipping.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,
|
|
1
|
+
{"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../src/sdk/shipping.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,0BAA0B,CAC5B,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;CAGtE"}
|
package/sdk/shipping.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Shipping = void 0;
|
|
7
|
-
const
|
|
7
|
+
const shippingCheckPincodeServiceability_js_1 = require("../funcs/shippingCheckPincodeServiceability.js");
|
|
8
8
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
9
|
const fp_js_1 = require("../types/fp.js");
|
|
10
10
|
class Shipping extends sdks_js_1.ClientSDK {
|
|
@@ -14,8 +14,8 @@ class Shipping extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Check shipment delivery availability in an area by pincode
|
|
16
16
|
*/
|
|
17
|
-
async
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
17
|
+
async checkPincodeServiceability(request, options) {
|
|
18
|
+
return (0, fp_js_1.unwrapAsync)((0, shippingCheckPincodeServiceability_js_1.shippingCheckPincodeServiceability)(this, request, options));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.Shipping = Shipping;
|
package/sdk/shipping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping.js","sourceRoot":"","sources":["../src/sdk/shipping.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"shipping.js","sourceRoot":"","sources":["../src/sdk/shipping.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0GAAoG;AACpG,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACnC;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC5B,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACnF,CAAC;CACJ;AAbD,4BAaC"}
|