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
package/sdk/user.d.ts
CHANGED
|
@@ -1,89 +1,7 @@
|
|
|
1
|
-
import { ClientSDK
|
|
2
|
-
import
|
|
1
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
2
|
+
import { NotificationPreferences } from "./notificationpreferences.js";
|
|
3
3
|
export declare class User extends ClientSDK {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* The Profile Image API streamlines the process of uploading profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
9
|
-
*/
|
|
10
|
-
addProfileImage(request: operations.PostAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.PostAuthUserIdProfileImageResponseBody>;
|
|
11
|
-
/**
|
|
12
|
-
* Update profile image
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* The Profile Image API streamlines the process of updating profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
16
|
-
*/
|
|
17
|
-
updateProfileImage(request: operations.PutAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdProfileImageResponseBody>;
|
|
18
|
-
/**
|
|
19
|
-
* Delete profile image
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Delete profile image API streamlines the process of removing profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
23
|
-
*/
|
|
24
|
-
deleteProfileImage(request: operations.DeleteAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.DeleteAuthUserIdProfileImageResponseBody>;
|
|
25
|
-
/**
|
|
26
|
-
* Retrieve a profile image
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Retrieve user profile image API streamlines the process of retriving profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
30
|
-
*/
|
|
31
|
-
getProfileImage(request: operations.GetAuthUserIdProfileImageRequest, options?: RequestOptions): Promise<operations.GetAuthUserIdProfileImageResponseBody>;
|
|
32
|
-
/**
|
|
33
|
-
* Deactivate account
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* The Deactivate Account API providing users with a straightforward method to deactivate their accounts. Upon successful deactivation, the API responds with a confirmation message. Error responses are detailed, aiding developers in addressing issues promptly.
|
|
37
|
-
*/
|
|
38
|
-
deactivateAccount(request: operations.PutAuthUserIdDeactivateRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdDeactivateResponseBody>;
|
|
39
|
-
/**
|
|
40
|
-
* Change password
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* The Change Password API is a key feature designed to provide a secure and standardized method for users to update their passwords.
|
|
44
|
-
*/
|
|
45
|
-
changePassword(request?: operations.PostAuthChangePasswordRequestBody | undefined, options?: RequestOptions): Promise<operations.PostAuthChangePasswordResponseBody>;
|
|
46
|
-
/**
|
|
47
|
-
* Forgot password
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* The Forgot Password API provides a secure mechanism for users to initiate the password recovery process. This API provides one-time password (OTP) token, which facilitas the resetting of user’s account password.
|
|
51
|
-
*/
|
|
52
|
-
forgotPassword(request?: operations.PostAuthForgotPasswordRequestBody | undefined, options?: RequestOptions): Promise<operations.PostAuthForgotPasswordResponseBody>;
|
|
53
|
-
/**
|
|
54
|
-
* Reset password
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* Reset password
|
|
58
|
-
*/
|
|
59
|
-
resetPassword(request?: operations.PostAuthResetPasswordRequestBody | undefined, options?: RequestOptions): Promise<operations.PostAuthResetPasswordResponseBody>;
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve user notification preferences
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
65
|
-
*/
|
|
66
|
-
getNotificationPreferences(request: operations.GetAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.GetAuthUserIdNotificationPreferencesResponseBody>;
|
|
67
|
-
/**
|
|
68
|
-
* Create user notification preferences
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
72
|
-
*/
|
|
73
|
-
createNotificationPreferences(request: operations.PostAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PostAuthUserIdNotificationPreferencesResponseBody>;
|
|
74
|
-
/**
|
|
75
|
-
* Update user notification preferences
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
78
|
-
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
79
|
-
*/
|
|
80
|
-
updateNotificationPreferences(request: operations.PutAuthUserIdNotificationPreferencesRequest, options?: RequestOptions): Promise<operations.PutAuthUserIdNotificationPreferencesResponseBody>;
|
|
81
|
-
/**
|
|
82
|
-
* Logout user
|
|
83
|
-
*
|
|
84
|
-
* @remarks
|
|
85
|
-
* The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
|
|
86
|
-
*/
|
|
87
|
-
logout(options?: RequestOptions): Promise<operations.PostAuthLogoutResponseBody>;
|
|
4
|
+
private _notificationPreferences?;
|
|
5
|
+
get notificationPreferences(): NotificationPreferences;
|
|
88
6
|
}
|
|
89
7
|
//# sourceMappingURL=user.d.ts.map
|
package/sdk/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,qBAAa,IAAK,SAAQ,SAAS;IAC/B,OAAO,CAAC,wBAAwB,CAAC,CAA0B;IAC3D,IAAI,uBAAuB,IAAI,uBAAuB,CAErD;CACJ"}
|
package/sdk/user.js
CHANGED
|
@@ -4,128 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.User = void 0;
|
|
7
|
-
const authUserAddProfileImage_js_1 = require("../funcs/authUserAddProfileImage.js");
|
|
8
|
-
const authUserChangePassword_js_1 = require("../funcs/authUserChangePassword.js");
|
|
9
|
-
const authUserCreateNotificationPreferences_js_1 = require("../funcs/authUserCreateNotificationPreferences.js");
|
|
10
|
-
const authUserDeactivateAccount_js_1 = require("../funcs/authUserDeactivateAccount.js");
|
|
11
|
-
const authUserDeleteProfileImage_js_1 = require("../funcs/authUserDeleteProfileImage.js");
|
|
12
|
-
const authUserForgotPassword_js_1 = require("../funcs/authUserForgotPassword.js");
|
|
13
|
-
const authUserGetNotificationPreferences_js_1 = require("../funcs/authUserGetNotificationPreferences.js");
|
|
14
|
-
const authUserGetProfileImage_js_1 = require("../funcs/authUserGetProfileImage.js");
|
|
15
|
-
const authUserLogout_js_1 = require("../funcs/authUserLogout.js");
|
|
16
|
-
const authUserResetPassword_js_1 = require("../funcs/authUserResetPassword.js");
|
|
17
|
-
const authUserUpdateNotificationPreferences_js_1 = require("../funcs/authUserUpdateNotificationPreferences.js");
|
|
18
|
-
const authUserUpdateProfileImage_js_1 = require("../funcs/authUserUpdateProfileImage.js");
|
|
19
7
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
20
|
-
const
|
|
8
|
+
const notificationpreferences_js_1 = require("./notificationpreferences.js");
|
|
21
9
|
class User extends sdks_js_1.ClientSDK {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* @remarks
|
|
26
|
-
* The Profile Image API streamlines the process of uploading profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
27
|
-
*/
|
|
28
|
-
async addProfileImage(request, options) {
|
|
29
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserAddProfileImage_js_1.authUserAddProfileImage)(this, request, options));
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Update profile image
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* The Profile Image API streamlines the process of updating profile images associating with user accounts, offering a user-centric approach to visual identity customization. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution. Overall, the Profile Image API enhances user engagement by seamlessly integrating personalized visual elements into digital platforms.
|
|
36
|
-
*/
|
|
37
|
-
async updateProfileImage(request, options) {
|
|
38
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserUpdateProfileImage_js_1.authUserUpdateProfileImage)(this, request, options));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Delete profile image
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* Delete profile image API streamlines the process of removing profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
45
|
-
*/
|
|
46
|
-
async deleteProfileImage(request, options) {
|
|
47
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserDeleteProfileImage_js_1.authUserDeleteProfileImage)(this, request, options));
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Retrieve a profile image
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Retrieve user profile image API streamlines the process of retriving profile images associating with user accounts. Upon success, the API responds with a confirmation message. In case of errors, clear error messages facilitate quick issue resolution.
|
|
54
|
-
*/
|
|
55
|
-
async getProfileImage(request, options) {
|
|
56
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserGetProfileImage_js_1.authUserGetProfileImage)(this, request, options));
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Deactivate account
|
|
60
|
-
*
|
|
61
|
-
* @remarks
|
|
62
|
-
* The Deactivate Account API providing users with a straightforward method to deactivate their accounts. Upon successful deactivation, the API responds with a confirmation message. Error responses are detailed, aiding developers in addressing issues promptly.
|
|
63
|
-
*/
|
|
64
|
-
async deactivateAccount(request, options) {
|
|
65
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserDeactivateAccount_js_1.authUserDeactivateAccount)(this, request, options));
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Change password
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* The Change Password API is a key feature designed to provide a secure and standardized method for users to update their passwords.
|
|
72
|
-
*/
|
|
73
|
-
async changePassword(request, options) {
|
|
74
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserChangePassword_js_1.authUserChangePassword)(this, request, options));
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Forgot password
|
|
78
|
-
*
|
|
79
|
-
* @remarks
|
|
80
|
-
* The Forgot Password API provides a secure mechanism for users to initiate the password recovery process. This API provides one-time password (OTP) token, which facilitas the resetting of user’s account password.
|
|
81
|
-
*/
|
|
82
|
-
async forgotPassword(request, options) {
|
|
83
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserForgotPassword_js_1.authUserForgotPassword)(this, request, options));
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Reset password
|
|
87
|
-
*
|
|
88
|
-
* @remarks
|
|
89
|
-
* Reset password
|
|
90
|
-
*/
|
|
91
|
-
async resetPassword(request, options) {
|
|
92
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserResetPassword_js_1.authUserResetPassword)(this, request, options));
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Retrieve user notification preferences
|
|
96
|
-
*
|
|
97
|
-
* @remarks
|
|
98
|
-
* The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
99
|
-
*/
|
|
100
|
-
async getNotificationPreferences(request, options) {
|
|
101
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserGetNotificationPreferences_js_1.authUserGetNotificationPreferences)(this, request, options));
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Create user notification preferences
|
|
105
|
-
*
|
|
106
|
-
* @remarks
|
|
107
|
-
* Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
108
|
-
*/
|
|
109
|
-
async createNotificationPreferences(request, options) {
|
|
110
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserCreateNotificationPreferences_js_1.authUserCreateNotificationPreferences)(this, request, options));
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Update user notification preferences
|
|
114
|
-
*
|
|
115
|
-
* @remarks
|
|
116
|
-
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
117
|
-
*/
|
|
118
|
-
async updateNotificationPreferences(request, options) {
|
|
119
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserUpdateNotificationPreferences_js_1.authUserUpdateNotificationPreferences)(this, request, options));
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Logout user
|
|
123
|
-
*
|
|
124
|
-
* @remarks
|
|
125
|
-
* The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.
|
|
126
|
-
*/
|
|
127
|
-
async logout(options) {
|
|
128
|
-
return (0, fp_js_1.unwrapAsync)((0, authUserLogout_js_1.authUserLogout)(this, options));
|
|
10
|
+
get notificationPreferences() {
|
|
11
|
+
var _a;
|
|
12
|
+
return ((_a = this._notificationPreferences) !== null && _a !== void 0 ? _a : (this._notificationPreferences = new notificationpreferences_js_1.NotificationPreferences(this.options$)));
|
|
129
13
|
}
|
|
130
14
|
}
|
|
131
15
|
exports.User = User;
|
package/sdk/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6EAAuE;AAEvE,MAAa,IAAK,SAAQ,mBAAS;IAE/B,IAAI,uBAAuB;;QACvB,OAAO,OAAC,IAAI,CAAC,wBAAwB,oCAA7B,IAAI,CAAC,wBAAwB,GAAK,IAAI,oDAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1F,CAAC;CACJ;AALD,oBAKC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class Utils extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve all countries
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Retrieve all countries
|
|
9
|
+
*/
|
|
10
|
+
getCountries(options?: RequestOptions): Promise<operations.GetCommonCountriesResponseBody>;
|
|
4
11
|
/**
|
|
5
12
|
* Retrieve country wise states
|
|
6
13
|
*
|
|
@@ -16,4 +23,4 @@ export declare class Countries extends ClientSDK {
|
|
|
16
23
|
*/
|
|
17
24
|
getPincodes(request: operations.GetCommonCountriesCountryIsoCodePincodesRequest, options?: RequestOptions): Promise<operations.GetCommonCountriesCountryIsoCodePincodesResponseBody>;
|
|
18
25
|
}
|
|
19
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/sdk/utils.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAChC;;;;;OAKG;IACG,YAAY,CACd,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAIrD;;;;;OAKG;IACG,SAAS,CACX,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,2CAA2C,CAAC;IAIlE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,UAAU,CAAC,+CAA+C,EACnE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,oDAAoD,CAAC;CAG9E"}
|
package/sdk/utils.js
ADDED
|
@@ -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.Utils = void 0;
|
|
7
|
+
const utilsGetCountries_js_1 = require("../funcs/utilsGetCountries.js");
|
|
8
|
+
const utilsGetPincodes_js_1 = require("../funcs/utilsGetPincodes.js");
|
|
9
|
+
const utilsGetStates_js_1 = require("../funcs/utilsGetStates.js");
|
|
10
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
|
+
const fp_js_1 = require("../types/fp.js");
|
|
12
|
+
class Utils extends sdks_js_1.ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve all countries
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Retrieve all countries
|
|
18
|
+
*/
|
|
19
|
+
async getCountries(options) {
|
|
20
|
+
return (0, fp_js_1.unwrapAsync)((0, utilsGetCountries_js_1.utilsGetCountries)(this, options));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve country wise states
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Retrieve country wise states
|
|
27
|
+
*/
|
|
28
|
+
async getStates(request, options) {
|
|
29
|
+
return (0, fp_js_1.unwrapAsync)((0, utilsGetStates_js_1.utilsGetStates)(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve pincodes
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Retrieve pincodes
|
|
36
|
+
*/
|
|
37
|
+
async getPincodes(request, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, utilsGetPincodes_js_1.utilsGetPincodes)(this, request, options));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Utils = Utils;
|
|
42
|
+
//# sourceMappingURL=utils.js.map
|
package/sdk/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/sdk/utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wEAAkE;AAClE,sEAAgE;AAChE,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAChC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CACd,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACX,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACb,OAAmE,EACnE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;CACJ;AAtCD,sBAsCC"}
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Track event
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function analyticsTrack(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
33
|
request?: components.AnalyticsEvent | undefined,
|
|
34
34
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function authGenerateOtp(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request?: operations.PostAuthGenerateOtpRequestBody | undefined,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
6
|
import * as m$ from "../lib/matchers.js";
|
|
7
7
|
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveSecurity, SecurityInput } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
10
|
import {
|
|
11
11
|
ConnectionError,
|
|
@@ -20,17 +20,19 @@ import * as operations from "../models/operations/index.js";
|
|
|
20
20
|
import { Result } from "../types/fp.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Anonymous user
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
*
|
|
26
|
+
* 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.
|
|
27
|
+
* 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.
|
|
27
28
|
*/
|
|
28
|
-
export async function
|
|
29
|
+
export async function authLoginAnonymously(
|
|
29
30
|
client$: CeStorefrontCore,
|
|
31
|
+
security: operations.PostAuthAnonymousSecurity,
|
|
30
32
|
options?: RequestOptions
|
|
31
33
|
): Promise<
|
|
32
34
|
Result<
|
|
33
|
-
operations.
|
|
35
|
+
operations.PostAuthAnonymousResponseBody,
|
|
34
36
|
| SDKError
|
|
35
37
|
| SDKValidationError
|
|
36
38
|
| UnexpectedClientError
|
|
@@ -40,26 +42,33 @@ export async function ordersGetReturns(
|
|
|
40
42
|
| ConnectionError
|
|
41
43
|
>
|
|
42
44
|
> {
|
|
43
|
-
const path$ = pathToFunc("/
|
|
45
|
+
const path$ = pathToFunc("/auth/anonymous")();
|
|
44
46
|
|
|
45
47
|
const headers$ = new Headers({
|
|
46
48
|
Accept: "application/json",
|
|
47
49
|
});
|
|
48
50
|
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
+
const security$: SecurityInput[][] = [
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
fieldName: "X-Api-Key",
|
|
55
|
+
type: "apiKey:header",
|
|
56
|
+
value: security?.xApiKey,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
];
|
|
60
|
+
const securitySettings$ = resolveSecurity(...security$);
|
|
51
61
|
const context = {
|
|
52
|
-
operationID: "
|
|
62
|
+
operationID: "post-auth-anonymous",
|
|
53
63
|
oAuth2Scopes: [],
|
|
54
|
-
securitySource:
|
|
64
|
+
securitySource: security$,
|
|
55
65
|
};
|
|
56
|
-
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
57
66
|
|
|
58
67
|
const requestRes = client$.createRequest$(
|
|
59
68
|
context,
|
|
60
69
|
{
|
|
61
70
|
security: securitySettings$,
|
|
62
|
-
method: "
|
|
71
|
+
method: "POST",
|
|
63
72
|
path: path$,
|
|
64
73
|
headers: headers$,
|
|
65
74
|
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
@@ -83,7 +92,7 @@ export async function ordersGetReturns(
|
|
|
83
92
|
const response = doResult.value;
|
|
84
93
|
|
|
85
94
|
const [result$] = await m$.match<
|
|
86
|
-
operations.
|
|
95
|
+
operations.PostAuthAnonymousResponseBody,
|
|
87
96
|
| SDKError
|
|
88
97
|
| SDKValidationError
|
|
89
98
|
| UnexpectedClientError
|
|
@@ -92,7 +101,7 @@ export async function ordersGetReturns(
|
|
|
92
101
|
| RequestTimeoutError
|
|
93
102
|
| ConnectionError
|
|
94
103
|
>(
|
|
95
|
-
m$.json(200, operations.
|
|
104
|
+
m$.json(200, operations.PostAuthAnonymousResponseBody$inboundSchema),
|
|
96
105
|
m$.fail(["4XX", "5XX"])
|
|
97
106
|
)(response);
|
|
98
107
|
if (!result$.ok) {
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* 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.
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function authRefreshToken(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request?: operations.PostAuthRefreshTokenRequestBody | undefined,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* The Retrieve User API is designed to facilitate the retrieval of comprehensive user information from the system. A required parameter is a user-id of the user whose information needs to be retrieved.
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function authUserGet(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.GetAuthUserIdRequest,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function authUserUpdate(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.PutAuthUserIdRequest,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Subscribe to newsletter
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function campaignsNewsletterSubscribe(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request?: operations.PostCustomersNewsletterSubscriptionRequestBody | undefined,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function catalogProductsGetCrossSells(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
33
|
request: operations.GetCrossSellRequest,
|
|
34
34
|
options?: RequestOptions
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* 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.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function catalogProductsGetSimilar(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
33
|
request: operations.GetSimilarRequest,
|
|
34
34
|
options?: RequestOptions
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function catalogProductsGetUpsells(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
33
|
request: operations.GetUpSellRequest,
|
|
34
34
|
options?: RequestOptions
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
|
|
7
7
|
import * as m$ from "../lib/matchers.js";
|
|
8
8
|
import * as schemas$ from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -23,18 +23,18 @@ import * as operations from "../models/operations/index.js";
|
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* List all recommended products
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
*
|
|
29
|
+
* Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function customersAPIGetRecommendedProducts(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
|
-
request: operations.
|
|
33
|
+
request: operations.GetRecommendedProductsRequest,
|
|
34
34
|
options?: RequestOptions
|
|
35
35
|
): Promise<
|
|
36
36
|
Result<
|
|
37
|
-
operations.
|
|
37
|
+
operations.GetRecommendedProductsResponseBody,
|
|
38
38
|
| errors.Unauthorized
|
|
39
39
|
| errors.NotFound
|
|
40
40
|
| SDKError
|
|
@@ -50,33 +50,29 @@ export async function ordersReturnsCreate(
|
|
|
50
50
|
|
|
51
51
|
const parsed$ = schemas$.safeParse(
|
|
52
52
|
input$,
|
|
53
|
-
(value$) => operations.
|
|
53
|
+
(value$) => operations.GetRecommendedProductsRequest$outboundSchema.parse(value$),
|
|
54
54
|
"Input validation failed"
|
|
55
55
|
);
|
|
56
56
|
if (!parsed$.ok) {
|
|
57
57
|
return parsed$;
|
|
58
58
|
}
|
|
59
59
|
const payload$ = parsed$.value;
|
|
60
|
-
const body$ =
|
|
60
|
+
const body$ = null;
|
|
61
61
|
|
|
62
62
|
const pathParams$ = {
|
|
63
|
-
|
|
64
|
-
explode: false,
|
|
65
|
-
charEncoding: "percent",
|
|
66
|
-
}),
|
|
63
|
+
id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
67
64
|
};
|
|
68
65
|
|
|
69
|
-
const path$ = pathToFunc("/
|
|
66
|
+
const path$ = pathToFunc("/customer/{id}/recommended-products")(pathParams$);
|
|
70
67
|
|
|
71
68
|
const headers$ = new Headers({
|
|
72
|
-
"Content-Type": "application/json",
|
|
73
69
|
Accept: "application/json",
|
|
74
70
|
});
|
|
75
71
|
|
|
76
72
|
const authorization$ = await extractSecurity(client$.options$.authorization);
|
|
77
73
|
const security$ = authorization$ == null ? {} : { authorization: authorization$ };
|
|
78
74
|
const context = {
|
|
79
|
-
operationID: "
|
|
75
|
+
operationID: "get-recommended-products",
|
|
80
76
|
oAuth2Scopes: [],
|
|
81
77
|
securitySource: client$.options$.authorization,
|
|
82
78
|
};
|
|
@@ -86,7 +82,7 @@ export async function ordersReturnsCreate(
|
|
|
86
82
|
context,
|
|
87
83
|
{
|
|
88
84
|
security: securitySettings$,
|
|
89
|
-
method: "
|
|
85
|
+
method: "GET",
|
|
90
86
|
path: path$,
|
|
91
87
|
headers: headers$,
|
|
92
88
|
body: body$,
|
|
@@ -115,7 +111,7 @@ export async function ordersReturnsCreate(
|
|
|
115
111
|
};
|
|
116
112
|
|
|
117
113
|
const [result$] = await m$.match<
|
|
118
|
-
operations.
|
|
114
|
+
operations.GetRecommendedProductsResponseBody,
|
|
119
115
|
| errors.Unauthorized
|
|
120
116
|
| errors.NotFound
|
|
121
117
|
| SDKError
|
|
@@ -126,7 +122,7 @@ export async function ordersReturnsCreate(
|
|
|
126
122
|
| RequestTimeoutError
|
|
127
123
|
| ConnectionError
|
|
128
124
|
>(
|
|
129
|
-
m$.json(200, operations.
|
|
125
|
+
m$.json(200, operations.GetRecommendedProductsResponseBody$inboundSchema),
|
|
130
126
|
m$.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
131
127
|
m$.jsonErr(404, errors.NotFound$inboundSchema),
|
|
132
128
|
m$.fail(["4XX", "5XX"])
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieve billing and shipping address of particular customer
|
|
32
32
|
*/
|
|
33
|
-
export async function
|
|
33
|
+
export async function customersAddressesList(
|
|
34
34
|
client$: CeStorefrontCore,
|
|
35
35
|
request: operations.GetAddressRequest,
|
|
36
36
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Retrieve all reviews
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function customersReviewsList(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.GetCustomersUserIdReviewsRequest,
|
|
33
33
|
options?: RequestOptions
|