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,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as components from "../components/index.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type GetRecommendedProductsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* customer id
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type GetRecommendedProductsContent = {
|
|
16
|
+
products?: Array<components.RecommendedProduct> | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Success response
|
|
21
|
+
*/
|
|
22
|
+
export type GetRecommendedProductsResponseBody = {
|
|
23
|
+
message?: string | undefined;
|
|
24
|
+
success?: boolean | undefined;
|
|
25
|
+
content?: GetRecommendedProductsContent | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const GetRecommendedProductsRequest$inboundSchema: z.ZodType<
|
|
30
|
+
GetRecommendedProductsRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type GetRecommendedProductsRequest$Outbound = {
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GetRecommendedProductsRequest$outboundSchema: z.ZodType<
|
|
44
|
+
GetRecommendedProductsRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
GetRecommendedProductsRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
id: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace GetRecommendedProductsRequest$ {
|
|
56
|
+
/** @deprecated use `GetRecommendedProductsRequest$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = GetRecommendedProductsRequest$inboundSchema;
|
|
58
|
+
/** @deprecated use `GetRecommendedProductsRequest$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = GetRecommendedProductsRequest$outboundSchema;
|
|
60
|
+
/** @deprecated use `GetRecommendedProductsRequest$Outbound` instead. */
|
|
61
|
+
export type Outbound = GetRecommendedProductsRequest$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const GetRecommendedProductsContent$inboundSchema: z.ZodType<
|
|
66
|
+
GetRecommendedProductsContent,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
70
|
+
products: z.array(components.RecommendedProduct$inboundSchema).optional(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type GetRecommendedProductsContent$Outbound = {
|
|
75
|
+
products?: Array<components.RecommendedProduct$Outbound> | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const GetRecommendedProductsContent$outboundSchema: z.ZodType<
|
|
80
|
+
GetRecommendedProductsContent$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
GetRecommendedProductsContent
|
|
83
|
+
> = z.object({
|
|
84
|
+
products: z.array(components.RecommendedProduct$outboundSchema).optional(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace GetRecommendedProductsContent$ {
|
|
92
|
+
/** @deprecated use `GetRecommendedProductsContent$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = GetRecommendedProductsContent$inboundSchema;
|
|
94
|
+
/** @deprecated use `GetRecommendedProductsContent$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = GetRecommendedProductsContent$outboundSchema;
|
|
96
|
+
/** @deprecated use `GetRecommendedProductsContent$Outbound` instead. */
|
|
97
|
+
export type Outbound = GetRecommendedProductsContent$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const GetRecommendedProductsResponseBody$inboundSchema: z.ZodType<
|
|
102
|
+
GetRecommendedProductsResponseBody,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
message: z.string().optional(),
|
|
107
|
+
success: z.boolean().optional(),
|
|
108
|
+
content: z.lazy(() => GetRecommendedProductsContent$inboundSchema).optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type GetRecommendedProductsResponseBody$Outbound = {
|
|
113
|
+
message?: string | undefined;
|
|
114
|
+
success?: boolean | undefined;
|
|
115
|
+
content?: GetRecommendedProductsContent$Outbound | undefined;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const GetRecommendedProductsResponseBody$outboundSchema: z.ZodType<
|
|
120
|
+
GetRecommendedProductsResponseBody$Outbound,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
GetRecommendedProductsResponseBody
|
|
123
|
+
> = z.object({
|
|
124
|
+
message: z.string().optional(),
|
|
125
|
+
success: z.boolean().optional(),
|
|
126
|
+
content: z.lazy(() => GetRecommendedProductsContent$outboundSchema).optional(),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export namespace GetRecommendedProductsResponseBody$ {
|
|
134
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema = GetRecommendedProductsResponseBody$inboundSchema;
|
|
136
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$outboundSchema` instead. */
|
|
137
|
+
export const outboundSchema = GetRecommendedProductsResponseBody$outboundSchema;
|
|
138
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$Outbound` instead. */
|
|
139
|
+
export type Outbound = GetRecommendedProductsResponseBody$Outbound;
|
|
140
|
+
}
|
|
@@ -29,9 +29,6 @@ export * from "./getordersid.js";
|
|
|
29
29
|
export * from "./getordersidpayments.js";
|
|
30
30
|
export * from "./getordersidrefunds.js";
|
|
31
31
|
export * from "./getordersidshipments.js";
|
|
32
|
-
export * from "./getordersordernumberreturn.js";
|
|
33
|
-
export * from "./getordersordernumberreturnreturnid.js";
|
|
34
|
-
export * from "./getordersreturns.js";
|
|
35
32
|
export * from "./getpaymentspaymentmethods.js";
|
|
36
33
|
export * from "./getproductdetails.js";
|
|
37
34
|
export * from "./getproducts.js";
|
|
@@ -40,7 +37,7 @@ export * from "./getproductsidreviews.js";
|
|
|
40
37
|
export * from "./getproductvariantdetail.js";
|
|
41
38
|
export * from "./getproductvariants.js";
|
|
42
39
|
export * from "./getpromotions.js";
|
|
43
|
-
export * from "./
|
|
40
|
+
export * from "./getrecommendedproducts.js";
|
|
44
41
|
export * from "./getshipmentpincodeserviceability.js";
|
|
45
42
|
export * from "./getsimilar.js";
|
|
46
43
|
export * from "./getskus.js";
|
|
@@ -48,6 +45,7 @@ export * from "./getupsell.js";
|
|
|
48
45
|
export * from "./getwishtlist.js";
|
|
49
46
|
export * from "./postaddress.js";
|
|
50
47
|
export * from "./postapplycoupons.js";
|
|
48
|
+
export * from "./postauthanonymous.js";
|
|
51
49
|
export * from "./postauthchangepassword.js";
|
|
52
50
|
export * from "./postauthforgotpassword.js";
|
|
53
51
|
export * from "./postauthgenerateotp.js";
|
|
@@ -75,7 +73,6 @@ export * from "./postcustomersnewslettersubscription.js";
|
|
|
75
73
|
export * from "./postloyaltypoints.js";
|
|
76
74
|
export * from "./postorder.js";
|
|
77
75
|
export * from "./postordersordernumber.js";
|
|
78
|
-
export * from "./postordersordernumberreturn.js";
|
|
79
76
|
export * from "./postpaymentsgeneratehash.js";
|
|
80
77
|
export * from "./postproductsidreviews.js";
|
|
81
78
|
export * from "./postretrypaymentorderid.js";
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type PostAuthAnonymousSecurity = {
|
|
10
|
+
xApiKey: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* An object containing the response content.
|
|
15
|
+
*/
|
|
16
|
+
export type PostAuthAnonymousContent = {
|
|
17
|
+
user?: components.User | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* It is a string-based token utilized for authentication and authorization.
|
|
20
|
+
*/
|
|
21
|
+
accessToken?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* It is a string-based token designed for refreshing the user's access token.
|
|
24
|
+
*/
|
|
25
|
+
refreshToken?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* OK
|
|
30
|
+
*/
|
|
31
|
+
export type PostAuthAnonymousResponseBody = {
|
|
32
|
+
/**
|
|
33
|
+
* A string containing a descriptive message related to the success or failure of the anonymous user creation or authentication.
|
|
34
|
+
*/
|
|
35
|
+
message?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* A boolean value indicates the success or failure of the anonymous user operation.`true` for success `false` for failure.
|
|
38
|
+
*/
|
|
39
|
+
success?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* An object containing the response content.
|
|
42
|
+
*/
|
|
43
|
+
content?: PostAuthAnonymousContent | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const PostAuthAnonymousSecurity$inboundSchema: z.ZodType<
|
|
48
|
+
PostAuthAnonymousSecurity,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z
|
|
52
|
+
.object({
|
|
53
|
+
"X-Api-Key": z.string(),
|
|
54
|
+
})
|
|
55
|
+
.transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
"X-Api-Key": "xApiKey",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type PostAuthAnonymousSecurity$Outbound = {
|
|
63
|
+
"X-Api-Key": string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const PostAuthAnonymousSecurity$outboundSchema: z.ZodType<
|
|
68
|
+
PostAuthAnonymousSecurity$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
PostAuthAnonymousSecurity
|
|
71
|
+
> = z
|
|
72
|
+
.object({
|
|
73
|
+
xApiKey: z.string(),
|
|
74
|
+
})
|
|
75
|
+
.transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
xApiKey: "X-Api-Key",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace PostAuthAnonymousSecurity$ {
|
|
86
|
+
/** @deprecated use `PostAuthAnonymousSecurity$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema = PostAuthAnonymousSecurity$inboundSchema;
|
|
88
|
+
/** @deprecated use `PostAuthAnonymousSecurity$outboundSchema` instead. */
|
|
89
|
+
export const outboundSchema = PostAuthAnonymousSecurity$outboundSchema;
|
|
90
|
+
/** @deprecated use `PostAuthAnonymousSecurity$Outbound` instead. */
|
|
91
|
+
export type Outbound = PostAuthAnonymousSecurity$Outbound;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const PostAuthAnonymousContent$inboundSchema: z.ZodType<
|
|
96
|
+
PostAuthAnonymousContent,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z
|
|
100
|
+
.object({
|
|
101
|
+
user: components.User$inboundSchema.optional(),
|
|
102
|
+
access_token: z.string().optional(),
|
|
103
|
+
refresh_token: z.string().optional(),
|
|
104
|
+
})
|
|
105
|
+
.transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
access_token: "accessToken",
|
|
108
|
+
refresh_token: "refreshToken",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export type PostAuthAnonymousContent$Outbound = {
|
|
114
|
+
user?: components.User$Outbound | undefined;
|
|
115
|
+
access_token?: string | undefined;
|
|
116
|
+
refresh_token?: string | undefined;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const PostAuthAnonymousContent$outboundSchema: z.ZodType<
|
|
121
|
+
PostAuthAnonymousContent$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
PostAuthAnonymousContent
|
|
124
|
+
> = z
|
|
125
|
+
.object({
|
|
126
|
+
user: components.User$outboundSchema.optional(),
|
|
127
|
+
accessToken: z.string().optional(),
|
|
128
|
+
refreshToken: z.string().optional(),
|
|
129
|
+
})
|
|
130
|
+
.transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
accessToken: "access_token",
|
|
133
|
+
refreshToken: "refresh_token",
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
+
*/
|
|
141
|
+
export namespace PostAuthAnonymousContent$ {
|
|
142
|
+
/** @deprecated use `PostAuthAnonymousContent$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = PostAuthAnonymousContent$inboundSchema;
|
|
144
|
+
/** @deprecated use `PostAuthAnonymousContent$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = PostAuthAnonymousContent$outboundSchema;
|
|
146
|
+
/** @deprecated use `PostAuthAnonymousContent$Outbound` instead. */
|
|
147
|
+
export type Outbound = PostAuthAnonymousContent$Outbound;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const PostAuthAnonymousResponseBody$inboundSchema: z.ZodType<
|
|
152
|
+
PostAuthAnonymousResponseBody,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
unknown
|
|
155
|
+
> = z.object({
|
|
156
|
+
message: z.string().optional(),
|
|
157
|
+
success: z.boolean().optional(),
|
|
158
|
+
content: z.lazy(() => PostAuthAnonymousContent$inboundSchema).optional(),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export type PostAuthAnonymousResponseBody$Outbound = {
|
|
163
|
+
message?: string | undefined;
|
|
164
|
+
success?: boolean | undefined;
|
|
165
|
+
content?: PostAuthAnonymousContent$Outbound | undefined;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const PostAuthAnonymousResponseBody$outboundSchema: z.ZodType<
|
|
170
|
+
PostAuthAnonymousResponseBody$Outbound,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
PostAuthAnonymousResponseBody
|
|
173
|
+
> = z.object({
|
|
174
|
+
message: z.string().optional(),
|
|
175
|
+
success: z.boolean().optional(),
|
|
176
|
+
content: z.lazy(() => PostAuthAnonymousContent$outboundSchema).optional(),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
|
+
*/
|
|
183
|
+
export namespace PostAuthAnonymousResponseBody$ {
|
|
184
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$inboundSchema` instead. */
|
|
185
|
+
export const inboundSchema = PostAuthAnonymousResponseBody$inboundSchema;
|
|
186
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$outboundSchema` instead. */
|
|
187
|
+
export const outboundSchema = PostAuthAnonymousResponseBody$outboundSchema;
|
|
188
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$Outbound` instead. */
|
|
189
|
+
export type Outbound = PostAuthAnonymousResponseBody$Outbound;
|
|
190
|
+
}
|
|
@@ -48,7 +48,7 @@ export const PostCartItemIdRequestBody$inboundSchema: z.ZodType<
|
|
|
48
48
|
product_id: z.string(),
|
|
49
49
|
sku: z.string(),
|
|
50
50
|
quantity: z.number().int(),
|
|
51
|
-
on_subscription: z.boolean(),
|
|
51
|
+
on_subscription: z.boolean().default(false),
|
|
52
52
|
subscription_plan: z.nullable(z.string()).optional(),
|
|
53
53
|
})
|
|
54
54
|
.transform((v) => {
|
package/src/sdk/addresses.ts
CHANGED
|
@@ -5,12 +5,26 @@
|
|
|
5
5
|
import { customersAddressesAdd } from "../funcs/customersAddressesAdd.js";
|
|
6
6
|
import { customersAddressesDelete } from "../funcs/customersAddressesDelete.js";
|
|
7
7
|
import { customersAddressesGet } from "../funcs/customersAddressesGet.js";
|
|
8
|
+
import { customersAddressesList } from "../funcs/customersAddressesList.js";
|
|
8
9
|
import { customersAddressesUpdate } from "../funcs/customersAddressesUpdate.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
13
|
|
|
13
14
|
export class Addresses extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve all addresses
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Retrieve billing and shipping address of particular customer
|
|
20
|
+
*/
|
|
21
|
+
async list(
|
|
22
|
+
request: operations.GetAddressRequest,
|
|
23
|
+
options?: RequestOptions
|
|
24
|
+
): Promise<operations.GetAddressResponseBody> {
|
|
25
|
+
return unwrapAsync(customersAddressesList(this, request, options));
|
|
26
|
+
}
|
|
27
|
+
|
|
14
28
|
/**
|
|
15
29
|
* Add address
|
|
16
30
|
*
|
package/src/sdk/analytics.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 { analyticsTrack } from "../funcs/analyticsTrack.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as components from "../models/components/index.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
@@ -15,10 +15,10 @@ export class Analytics extends ClientSDK {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* Track event
|
|
17
17
|
*/
|
|
18
|
-
async
|
|
18
|
+
async track(
|
|
19
19
|
request?: components.AnalyticsEvent | undefined,
|
|
20
20
|
options?: RequestOptions
|
|
21
21
|
): Promise<operations.GetAnalyticsTrackResponseBody> {
|
|
22
|
-
return unwrapAsync(
|
|
22
|
+
return unwrapAsync(analyticsTrack(this, request, options));
|
|
23
23
|
}
|
|
24
24
|
}
|
package/src/sdk/auth.ts
CHANGED
|
@@ -2,39 +2,42 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { authGenerateOtp } from "../funcs/authGenerateOtp.js";
|
|
6
|
+
import { authLoginAnonymously } from "../funcs/authLoginAnonymously.js";
|
|
6
7
|
import { authLoginWithEmail } from "../funcs/authLoginWithEmail.js";
|
|
7
8
|
import { authLoginWithPassword } from "../funcs/authLoginWithPassword.js";
|
|
8
9
|
import { authLoginWithPhone } from "../funcs/authLoginWithPhone.js";
|
|
9
10
|
import { authLoginWithWhatsapp } from "../funcs/authLoginWithWhatsapp.js";
|
|
11
|
+
import { authRefreshToken } from "../funcs/authRefreshToken.js";
|
|
10
12
|
import { authRegisterWithEmail } from "../funcs/authRegisterWithEmail.js";
|
|
11
13
|
import { authRegisterWithPassword } from "../funcs/authRegisterWithPassword.js";
|
|
12
14
|
import { authRegisterWithPhone } from "../funcs/authRegisterWithPhone.js";
|
|
13
15
|
import { authRegisterWithWhatsapp } from "../funcs/authRegisterWithWhatsapp.js";
|
|
14
|
-
import { authUpdateUser } from "../funcs/authUpdateUser.js";
|
|
15
16
|
import { authVerifyEmailPhone } from "../funcs/authVerifyEmailPhone.js";
|
|
16
17
|
import { authVerifyOtp } from "../funcs/authVerifyOtp.js";
|
|
17
18
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
18
19
|
import * as operations from "../models/operations/index.js";
|
|
19
20
|
import { unwrapAsync } from "../types/fp.js";
|
|
20
|
-
import {
|
|
21
|
-
import { Token } from "./token.js";
|
|
22
|
-
import { User } from "./user.js";
|
|
21
|
+
import { CeStorefrontUser } from "./cestorefrontuser.js";
|
|
23
22
|
|
|
24
23
|
export class Auth extends ClientSDK {
|
|
25
|
-
private _user?:
|
|
26
|
-
get user():
|
|
27
|
-
return (this._user ??= new
|
|
24
|
+
private _user?: CeStorefrontUser;
|
|
25
|
+
get user(): CeStorefrontUser {
|
|
26
|
+
return (this._user ??= new CeStorefrontUser(this.options$));
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Anonymous user
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* This API’s focus is on anonymous users who have not undergone the formal account creation process. These anonymous users are associated with a unique identifier called a ULID, ensuring that even in the absence of a fully realized account, there is a distinct and trackable identity for each user.
|
|
34
|
+
* To interact with the system, each anonymous user is issued an access token. This access token plays a dual role in the system: it serves as a means of authenticating the user and it also acts as a tool for authorization, determining what actions the authenticated user is permitted to perform.
|
|
35
|
+
*/
|
|
36
|
+
async loginAnonymously(
|
|
37
|
+
security: operations.PostAuthAnonymousSecurity,
|
|
38
|
+
options?: RequestOptions
|
|
39
|
+
): Promise<operations.PostAuthAnonymousResponseBody> {
|
|
40
|
+
return unwrapAsync(authLoginAnonymously(this, security, options));
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
/**
|
|
@@ -159,29 +162,29 @@ export class Auth extends ClientSDK {
|
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
/**
|
|
162
|
-
*
|
|
165
|
+
* Refresh access token
|
|
163
166
|
*
|
|
164
167
|
* @remarks
|
|
165
|
-
* The
|
|
168
|
+
* 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.
|
|
166
169
|
*/
|
|
167
|
-
async
|
|
168
|
-
request
|
|
170
|
+
async refreshToken(
|
|
171
|
+
request?: operations.PostAuthRefreshTokenRequestBody | undefined,
|
|
169
172
|
options?: RequestOptions
|
|
170
|
-
): Promise<operations.
|
|
171
|
-
return unwrapAsync(
|
|
173
|
+
): Promise<operations.PostAuthRefreshTokenResponseBody> {
|
|
174
|
+
return unwrapAsync(authRefreshToken(this, request, options));
|
|
172
175
|
}
|
|
173
176
|
|
|
174
177
|
/**
|
|
175
|
-
*
|
|
178
|
+
* Generate OTP
|
|
176
179
|
*
|
|
177
180
|
* @remarks
|
|
178
|
-
*
|
|
181
|
+
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
179
182
|
*/
|
|
180
|
-
async
|
|
181
|
-
request
|
|
183
|
+
async generateOtp(
|
|
184
|
+
request?: operations.PostAuthGenerateOtpRequestBody | undefined,
|
|
182
185
|
options?: RequestOptions
|
|
183
|
-
): Promise<operations.
|
|
184
|
-
return unwrapAsync(
|
|
186
|
+
): Promise<operations.PostAuthGenerateOtpResponseBody> {
|
|
187
|
+
return unwrapAsync(authGenerateOtp(this, request, options));
|
|
185
188
|
}
|
|
186
189
|
|
|
187
190
|
/**
|
package/src/sdk/campaigns.ts
CHANGED
|
@@ -2,22 +2,12 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Newsletter } from "./newsletter.js";
|
|
9
7
|
|
|
10
8
|
export class Campaigns extends ClientSDK {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* @remarks
|
|
15
|
-
* Subscribe to newsletter
|
|
16
|
-
*/
|
|
17
|
-
async subscribeNewsletter(
|
|
18
|
-
request?: operations.PostCustomersNewsletterSubscriptionRequestBody | undefined,
|
|
19
|
-
options?: RequestOptions
|
|
20
|
-
): Promise<operations.PostCustomersNewsletterSubscriptionResponseBody> {
|
|
21
|
-
return unwrapAsync(campaignsSubscribeNewsletter(this, request, options));
|
|
9
|
+
private _newsletter?: Newsletter;
|
|
10
|
+
get newsletter(): Newsletter {
|
|
11
|
+
return (this._newsletter ??= new Newsletter(this.options$));
|
|
22
12
|
}
|
|
23
13
|
}
|