ce-storefront 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +5 -0
- package/README.md +89 -124
- package/docs/sdks/addresses/README.md +78 -0
- package/docs/sdks/analytics/README.md +5 -5
- package/docs/sdks/auth/README.md +16 -24
- package/docs/sdks/campaigns/README.md +1 -79
- package/docs/sdks/cestorefrontuser/README.md +850 -0
- package/docs/sdks/{common → coupons}/README.md +9 -9
- package/docs/sdks/customers/README.md +12 -15
- package/docs/sdks/{otp → newsletter}/README.md +10 -10
- package/docs/sdks/notificationpreferences/README.md +240 -0
- package/docs/sdks/offers/README.md +1 -152
- package/docs/sdks/orders/README.md +0 -73
- package/docs/sdks/products/README.md +228 -0
- package/docs/sdks/{recommended → promotions}/README.md +8 -9
- package/docs/sdks/returns/README.md +0 -160
- package/docs/sdks/reviews/README.md +5 -5
- package/docs/sdks/shipping/README.md +5 -5
- package/docs/sdks/user/README.md +1 -927
- package/docs/sdks/{countries → utils}/README.md +81 -8
- package/funcs/{analyticsTrackEvent.d.ts → analyticsTrack.d.ts} +2 -2
- package/funcs/analyticsTrack.d.ts.map +1 -0
- package/funcs/{analyticsTrackEvent.js → analyticsTrack.js} +3 -3
- package/funcs/analyticsTrack.js.map +1 -0
- package/funcs/{authOtpGenerate.d.ts → authGenerateOtp.d.ts} +2 -2
- package/funcs/{authOtpGenerate.d.ts.map → authGenerateOtp.d.ts.map} +1 -1
- package/funcs/{authOtpGenerate.js → authGenerateOtp.js} +3 -3
- package/funcs/{authOtpGenerate.js.map → authGenerateOtp.js.map} +1 -1
- package/funcs/{authTokenRefresh.d.ts → authRefreshToken.d.ts} +2 -2
- package/funcs/{authTokenRefresh.d.ts.map → authRefreshToken.d.ts.map} +1 -1
- package/funcs/{authTokenRefresh.js → authRefreshToken.js} +3 -3
- package/funcs/{authTokenRefresh.js.map → authRefreshToken.js.map} +1 -1
- package/funcs/{authGetUser.d.ts → authUserGet.d.ts} +2 -2
- package/funcs/{authGetUser.d.ts.map → authUserGet.d.ts.map} +1 -1
- package/funcs/{authGetUser.js → authUserGet.js} +3 -3
- package/funcs/{authGetUser.js.map → authUserGet.js.map} +1 -1
- package/funcs/{authUpdateUser.d.ts → authUserUpdate.d.ts} +2 -2
- package/funcs/{authUpdateUser.d.ts.map → authUserUpdate.d.ts.map} +1 -1
- package/funcs/{authUpdateUser.js → authUserUpdate.js} +3 -3
- package/funcs/{authUpdateUser.js.map → authUserUpdate.js.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.d.ts → campaignsNewsletterSubscribe.d.ts} +2 -2
- package/funcs/{campaignsSubscribeNewsletter.d.ts.map → campaignsNewsletterSubscribe.d.ts.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.js → campaignsNewsletterSubscribe.js} +3 -3
- package/funcs/{campaignsSubscribeNewsletter.js.map → campaignsNewsletterSubscribe.js.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.d.ts → catalogProductsGetCrossSells.d.ts} +2 -2
- package/funcs/{catalogProductsCrossSellList.d.ts.map → catalogProductsGetCrossSells.d.ts.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.js → catalogProductsGetCrossSells.js} +3 -3
- package/funcs/{catalogProductsCrossSellList.js.map → catalogProductsGetCrossSells.js.map} +1 -1
- package/funcs/{catalogProductsSimilarList.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
- package/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
- package/funcs/{catalogProductsSimilarList.js → catalogProductsGetSimilar.js} +3 -3
- package/funcs/catalogProductsGetSimilar.js.map +1 -0
- package/funcs/{catalogProductsUpSellList.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
- package/funcs/{catalogProductsUpSellList.d.ts.map → catalogProductsGetUpsells.d.ts.map} +1 -1
- package/funcs/{catalogProductsUpSellList.js → catalogProductsGetUpsells.js} +3 -3
- package/funcs/{catalogProductsUpSellList.js.map → catalogProductsGetUpsells.js.map} +1 -1
- package/funcs/{commonCountriesGetPincodes.d.ts → customersAddressesList.d.ts} +4 -4
- package/funcs/customersAddressesList.d.ts.map +1 -0
- package/funcs/{customersGetAddresses.js → customersAddressesList.js} +3 -3
- package/funcs/customersAddressesList.js.map +1 -0
- package/funcs/{catalogProductsRecommendedList.d.ts → customersGetRecommendedProducts.d.ts} +2 -2
- package/funcs/customersGetRecommendedProducts.d.ts.map +1 -0
- package/funcs/{catalogProductsRecommendedList.js → customersGetRecommendedProducts.js} +3 -3
- package/funcs/customersGetRecommendedProducts.js.map +1 -0
- package/funcs/{customersReviewsGetAll.d.ts → customersReviewsList.d.ts} +2 -2
- package/funcs/customersReviewsList.d.ts.map +1 -0
- package/funcs/{customersReviewsGetAll.js → customersReviewsList.js} +3 -3
- package/funcs/customersReviewsList.js.map +1 -0
- package/funcs/{offersGetCoupons.d.ts → offersCouponsList.d.ts} +2 -2
- package/funcs/offersCouponsList.d.ts.map +1 -0
- package/funcs/{offersGetCoupons.js → offersCouponsList.js} +3 -3
- package/funcs/{ordersGetReturns.js.map → offersCouponsList.js.map} +1 -1
- package/funcs/{offersGetPromotions.d.ts → offersPromotionsList.d.ts} +2 -2
- package/funcs/offersPromotionsList.d.ts.map +1 -0
- package/funcs/{offersGetPromotions.js → offersPromotionsList.js} +3 -3
- package/funcs/offersPromotionsList.js.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
- package/funcs/shippingCheckPincodeServiceability.d.ts.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.js → shippingCheckPincodeServiceability.js} +3 -3
- package/funcs/shippingCheckPincodeServiceability.js.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +3 -3
- package/funcs/userNotificationPreferencesCreate.js.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
- package/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.js → userNotificationPreferencesGet.js} +3 -3
- package/funcs/userNotificationPreferencesGet.js.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesUpdate.d.ts.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +3 -3
- package/funcs/userNotificationPreferencesUpdate.js.map +1 -0
- package/funcs/{commonGetCountries.d.ts → utilsGetCountries.d.ts} +2 -2
- package/funcs/utilsGetCountries.d.ts.map +1 -0
- package/funcs/{commonGetCountries.js → utilsGetCountries.js} +3 -3
- package/funcs/utilsGetCountries.js.map +1 -0
- package/funcs/{customersGetAddresses.d.ts → utilsGetPincodes.d.ts} +4 -4
- package/funcs/utilsGetPincodes.d.ts.map +1 -0
- package/funcs/{commonCountriesGetPincodes.js → utilsGetPincodes.js} +3 -3
- package/funcs/utilsGetPincodes.js.map +1 -0
- package/funcs/{commonCountriesGetStates.d.ts → utilsGetStates.d.ts} +2 -2
- package/funcs/utilsGetStates.d.ts.map +1 -0
- package/funcs/{commonCountriesGetStates.js → utilsGetStates.js} +3 -3
- package/funcs/utilsGetStates.js.map +1 -0
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -8
- package/lib/config.js.map +1 -1
- package/models/components/cartitem.js +4 -4
- package/models/components/cartitem.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/orderreturnitem.d.ts +0 -31
- package/models/components/orderreturnitem.d.ts.map +1 -1
- package/models/components/orderreturnitem.js +1 -42
- package/models/components/orderreturnitem.js.map +1 -1
- package/models/components/productattribute.js +1 -1
- package/models/components/productattribute.js.map +1 -1
- package/models/components/productdetail.js +5 -5
- package/models/components/productdetail.js.map +1 -1
- package/models/components/productlist.js +5 -5
- package/models/components/productlist.js.map +1 -1
- package/models/components/productreview.js +1 -1
- package/models/components/productreview.js.map +1 -1
- package/models/components/productshipping.js +2 -2
- package/models/components/productshipping.js.map +1 -1
- package/models/components/productsubscription.js +1 -1
- package/models/components/productsubscription.js.map +1 -1
- package/models/components/skuinfo.js +4 -4
- package/models/components/skuinfo.js.map +1 -1
- package/models/errors/unauthorized.js +1 -1
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- package/models/operations/postcartitemid.js +1 -1
- package/models/operations/postcartitemid.js.map +1 -1
- package/package.json +5 -1
- package/sdk/addresses.d.ts +7 -0
- package/sdk/addresses.d.ts.map +1 -1
- package/sdk/addresses.js +10 -0
- package/sdk/addresses.js.map +1 -1
- package/sdk/analytics.d.ts +1 -1
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +3 -3
- package/sdk/analytics.js.map +1 -1
- package/sdk/auth.d.ts +8 -14
- package/sdk/auth.d.ts.map +1 -1
- package/sdk/auth.js +12 -22
- package/sdk/auth.js.map +1 -1
- package/sdk/campaigns.d.ts +4 -9
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/campaigns.js +4 -10
- package/sdk/campaigns.js.map +1 -1
- package/sdk/cestorefrontuser.d.ts +82 -0
- package/sdk/cestorefrontuser.d.ts.map +1 -0
- package/sdk/cestorefrontuser.js +122 -0
- package/sdk/cestorefrontuser.js.map +1 -0
- package/sdk/coupons.d.ts +12 -0
- package/sdk/coupons.d.ts.map +1 -0
- package/sdk/coupons.js +22 -0
- package/sdk/coupons.js.map +1 -0
- package/sdk/customers.d.ts +3 -3
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +5 -5
- package/sdk/customers.js.map +1 -1
- package/sdk/newsletter.d.ts +12 -0
- package/sdk/newsletter.d.ts.map +1 -0
- package/sdk/newsletter.js +22 -0
- package/sdk/newsletter.js.map +1 -0
- package/sdk/notificationpreferences.d.ts +26 -0
- package/sdk/notificationpreferences.d.ts.map +1 -0
- package/sdk/notificationpreferences.js +42 -0
- package/sdk/notificationpreferences.js.map +1 -0
- package/sdk/offers.d.ts +7 -16
- package/sdk/offers.d.ts.map +1 -1
- package/sdk/offers.js +8 -19
- package/sdk/offers.js.map +1 -1
- package/sdk/orders.d.ts +0 -7
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +0 -10
- package/sdk/orders.js.map +1 -1
- package/sdk/products.d.ts +21 -12
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +30 -20
- package/sdk/products.js.map +1 -1
- package/sdk/promotions.d.ts +12 -0
- package/sdk/promotions.d.ts.map +1 -0
- package/sdk/promotions.js +22 -0
- package/sdk/promotions.js.map +1 -0
- package/sdk/returns.d.ts +0 -14
- package/sdk/returns.d.ts.map +1 -1
- package/sdk/returns.js +0 -20
- package/sdk/returns.js.map +1 -1
- package/sdk/reviews.d.ts +1 -1
- package/sdk/reviews.d.ts.map +1 -1
- package/sdk/reviews.js +3 -3
- package/sdk/reviews.js.map +1 -1
- package/sdk/sdk.d.ts +8 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -7
- package/sdk/sdk.js.map +1 -1
- package/sdk/shipping.d.ts +1 -1
- package/sdk/shipping.d.ts.map +1 -1
- package/sdk/shipping.js +3 -3
- package/sdk/shipping.js.map +1 -1
- package/sdk/user.d.ts +4 -86
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +4 -120
- package/sdk/user.js.map +1 -1
- package/sdk/{countries.d.ts → utils.d.ts} +9 -2
- package/sdk/utils.d.ts.map +1 -0
- package/sdk/utils.js +42 -0
- package/sdk/utils.js.map +1 -0
- package/src/funcs/{analyticsTrackEvent.ts → analyticsTrack.ts} +1 -1
- package/src/funcs/{authOtpGenerate.ts → authGenerateOtp.ts} +1 -1
- package/src/funcs/{authTokenRefresh.ts → authRefreshToken.ts} +1 -1
- package/src/funcs/{authGetUser.ts → authUserGet.ts} +1 -1
- package/src/funcs/{authUpdateUser.ts → authUserUpdate.ts} +1 -1
- package/src/funcs/{campaignsSubscribeNewsletter.ts → campaignsNewsletterSubscribe.ts} +1 -1
- package/src/funcs/{catalogProductsCrossSellList.ts → catalogProductsGetCrossSells.ts} +1 -1
- package/src/funcs/{catalogProductsSimilarList.ts → catalogProductsGetSimilar.ts} +1 -1
- package/src/funcs/{catalogProductsUpSellList.ts → catalogProductsGetUpsells.ts} +1 -1
- package/src/funcs/{customersGetAddresses.ts → customersAddressesList.ts} +1 -1
- package/src/funcs/{catalogProductsRecommendedList.ts → customersGetRecommendedProducts.ts} +1 -1
- package/src/funcs/{customersReviewsGetAll.ts → customersReviewsList.ts} +1 -1
- package/src/funcs/{offersGetCoupons.ts → offersCouponsList.ts} +1 -1
- package/src/funcs/{offersGetPromotions.ts → offersPromotionsList.ts} +1 -1
- package/src/funcs/{shippingGetPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{authUserCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
- package/src/funcs/{authUserGetNotificationPreferences.ts → userNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{authUserUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
- package/src/funcs/{commonGetCountries.ts → utilsGetCountries.ts} +1 -1
- package/src/funcs/{commonCountriesGetPincodes.ts → utilsGetPincodes.ts} +1 -1
- package/src/funcs/{commonCountriesGetStates.ts → utilsGetStates.ts} +1 -1
- package/src/lib/config.ts +3 -8
- package/src/models/components/cartitem.ts +4 -4
- package/src/models/components/index.ts +0 -1
- package/src/models/components/orderreturnitem.ts +0 -70
- package/src/models/components/productattribute.ts +1 -1
- package/src/models/components/productdetail.ts +5 -5
- package/src/models/components/productlist.ts +5 -5
- package/src/models/components/productreview.ts +1 -1
- package/src/models/components/productshipping.ts +2 -2
- package/src/models/components/productsubscription.ts +1 -1
- package/src/models/components/skuinfo.ts +4 -4
- package/src/models/errors/unauthorized.ts +1 -1
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/postcartitemid.ts +1 -1
- package/src/sdk/addresses.ts +14 -0
- package/src/sdk/analytics.ts +3 -3
- package/src/sdk/auth.ts +18 -30
- package/src/sdk/campaigns.ts +5 -15
- package/src/sdk/cestorefrontuser.ts +160 -0
- package/src/sdk/coupons.ts +20 -0
- package/src/sdk/customers.ts +6 -7
- package/src/sdk/newsletter.ts +23 -0
- package/src/sdk/notificationpreferences.ts +51 -0
- package/src/sdk/offers.ts +9 -21
- package/src/sdk/orders.ts +0 -11
- package/src/sdk/products.ts +42 -24
- package/src/sdk/promotions.ts +20 -0
- package/src/sdk/returns.ts +0 -28
- package/src/sdk/reviews.ts +3 -3
- package/src/sdk/sdk.ts +15 -9
- package/src/sdk/shipping.ts +3 -3
- package/src/sdk/user.ts +5 -166
- package/src/sdk/{countries.ts → utils.ts} +18 -5
- package/docs/sdks/crosssell/README.md +0 -82
- package/docs/sdks/similar/README.md +0 -82
- package/docs/sdks/token/README.md +0 -80
- package/docs/sdks/upsell/README.md +0 -82
- package/funcs/analyticsTrackEvent.d.ts.map +0 -1
- package/funcs/analyticsTrackEvent.js.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.js.map +0 -1
- package/funcs/authUserGetNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserGetNotificationPreferences.js.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.js.map +0 -1
- package/funcs/catalogProductsRecommendedList.d.ts.map +0 -1
- package/funcs/catalogProductsRecommendedList.js.map +0 -1
- package/funcs/catalogProductsSimilarList.d.ts.map +0 -1
- package/funcs/catalogProductsSimilarList.js.map +0 -1
- package/funcs/commonCountriesGetPincodes.d.ts.map +0 -1
- package/funcs/commonCountriesGetPincodes.js.map +0 -1
- package/funcs/commonCountriesGetStates.d.ts.map +0 -1
- package/funcs/commonCountriesGetStates.js.map +0 -1
- package/funcs/commonGetCountries.d.ts.map +0 -1
- package/funcs/commonGetCountries.js.map +0 -1
- package/funcs/customersGetAddresses.d.ts.map +0 -1
- package/funcs/customersGetAddresses.js.map +0 -1
- package/funcs/customersReviewsGetAll.d.ts.map +0 -1
- package/funcs/customersReviewsGetAll.js.map +0 -1
- package/funcs/offersGetCoupons.d.ts.map +0 -1
- package/funcs/offersGetCoupons.js.map +0 -1
- package/funcs/offersGetPromotions.d.ts.map +0 -1
- package/funcs/offersGetPromotions.js.map +0 -1
- package/funcs/ordersGetReturns.d.ts +0 -15
- package/funcs/ordersGetReturns.d.ts.map +0 -1
- package/funcs/ordersGetReturns.js +0 -80
- package/funcs/ordersReturnsCreate.d.ts +0 -16
- package/funcs/ordersReturnsCreate.d.ts.map +0 -1
- package/funcs/ordersReturnsCreate.js +0 -101
- package/funcs/ordersReturnsCreate.js.map +0 -1
- package/funcs/ordersReturnsGet.d.ts +0 -15
- package/funcs/ordersReturnsGet.d.ts.map +0 -1
- package/funcs/ordersReturnsGet.js +0 -100
- package/funcs/ordersReturnsGet.js.map +0 -1
- package/funcs/shippingGetPincodeServiceability.d.ts.map +0 -1
- package/funcs/shippingGetPincodeServiceability.js.map +0 -1
- package/models/components/createorderreturn.d.ts +0 -29
- package/models/components/createorderreturn.d.ts.map +0 -1
- package/models/components/createorderreturn.js +0 -69
- package/models/components/createorderreturn.js.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.d.ts +0 -87
- package/models/operations/getordersordernumberreturnreturnid.d.ts.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.js +0 -122
- package/models/operations/getordersordernumberreturnreturnid.js.map +0 -1
- package/models/operations/getordersreturns.d.ts +0 -56
- package/models/operations/getordersreturns.d.ts.map +0 -1
- package/models/operations/getordersreturns.js +0 -74
- package/models/operations/getordersreturns.js.map +0 -1
- package/models/operations/postordersordernumberreturn.d.ts +0 -84
- package/models/operations/postordersordernumberreturn.d.ts.map +0 -1
- package/models/operations/postordersordernumberreturn.js +0 -122
- package/models/operations/postordersordernumberreturn.js.map +0 -1
- package/sdk/common.d.ts +0 -15
- package/sdk/common.d.ts.map +0 -1
- package/sdk/common.js +0 -27
- package/sdk/common.js.map +0 -1
- package/sdk/countries.d.ts.map +0 -1
- package/sdk/countries.js +0 -32
- package/sdk/countries.js.map +0 -1
- package/sdk/crosssell.d.ts +0 -12
- package/sdk/crosssell.d.ts.map +0 -1
- package/sdk/crosssell.js +0 -22
- package/sdk/crosssell.js.map +0 -1
- package/sdk/otp.d.ts +0 -12
- package/sdk/otp.d.ts.map +0 -1
- package/sdk/otp.js +0 -22
- package/sdk/otp.js.map +0 -1
- package/sdk/recommended.d.ts +0 -12
- package/sdk/recommended.d.ts.map +0 -1
- package/sdk/recommended.js +0 -22
- package/sdk/recommended.js.map +0 -1
- package/sdk/similar.d.ts +0 -12
- package/sdk/similar.d.ts.map +0 -1
- package/sdk/similar.js +0 -22
- package/sdk/similar.js.map +0 -1
- package/sdk/token.d.ts +0 -12
- package/sdk/token.d.ts.map +0 -1
- package/sdk/token.js +0 -22
- package/sdk/token.js.map +0 -1
- package/sdk/upsell.d.ts +0 -12
- package/sdk/upsell.d.ts.map +0 -1
- package/sdk/upsell.js +0 -22
- package/sdk/upsell.js.map +0 -1
- package/src/funcs/ordersGetReturns.ts +0 -103
- package/src/funcs/ordersReturnsCreate.ts +0 -139
- package/src/funcs/ordersReturnsGet.ts +0 -132
- package/src/models/components/createorderreturn.ts +0 -73
- package/src/models/operations/getordersordernumberreturnreturnid.ts +0 -174
- package/src/models/operations/getordersreturns.ts +0 -97
- package/src/models/operations/postordersordernumberreturn.ts +0 -171
- package/src/sdk/common.ts +0 -28
- package/src/sdk/crosssell.ts +0 -23
- package/src/sdk/otp.ts +0 -23
- package/src/sdk/recommended.ts +0 -20
- package/src/sdk/similar.ts +0 -23
- package/src/sdk/token.ts +0 -23
- package/src/sdk/upsell.ts +0 -23
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.PostOrdersOrderNumberReturnResponseBody$ = exports.PostOrdersOrderNumberReturnResponseBody$outboundSchema = exports.PostOrdersOrderNumberReturnResponseBody$inboundSchema = exports.PostOrdersOrderNumberReturnContent$ = exports.PostOrdersOrderNumberReturnContent$outboundSchema = exports.PostOrdersOrderNumberReturnContent$inboundSchema = exports.PostOrdersOrderNumberReturnRequest$ = exports.PostOrdersOrderNumberReturnRequest$outboundSchema = exports.PostOrdersOrderNumberReturnRequest$inboundSchema = void 0;
|
|
30
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
31
|
-
const components = __importStar(require("../components/index.js"));
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
/** @internal */
|
|
34
|
-
exports.PostOrdersOrderNumberReturnRequest$inboundSchema = z
|
|
35
|
-
.object({
|
|
36
|
-
order_number: z.string(),
|
|
37
|
-
CreateOrderReturn: components.CreateOrderReturn$inboundSchema.optional(),
|
|
38
|
-
})
|
|
39
|
-
.transform((v) => {
|
|
40
|
-
return (0, primitives_js_1.remap)(v, {
|
|
41
|
-
order_number: "orderNumber",
|
|
42
|
-
CreateOrderReturn: "createOrderReturn",
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.PostOrdersOrderNumberReturnRequest$outboundSchema = z
|
|
47
|
-
.object({
|
|
48
|
-
orderNumber: z.string(),
|
|
49
|
-
createOrderReturn: components.CreateOrderReturn$outboundSchema.optional(),
|
|
50
|
-
})
|
|
51
|
-
.transform((v) => {
|
|
52
|
-
return (0, primitives_js_1.remap)(v, {
|
|
53
|
-
orderNumber: "order_number",
|
|
54
|
-
createOrderReturn: "CreateOrderReturn",
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
var PostOrdersOrderNumberReturnRequest$;
|
|
62
|
-
(function (PostOrdersOrderNumberReturnRequest$) {
|
|
63
|
-
/** @deprecated use `PostOrdersOrderNumberReturnRequest$inboundSchema` instead. */
|
|
64
|
-
PostOrdersOrderNumberReturnRequest$.inboundSchema = exports.PostOrdersOrderNumberReturnRequest$inboundSchema;
|
|
65
|
-
/** @deprecated use `PostOrdersOrderNumberReturnRequest$outboundSchema` instead. */
|
|
66
|
-
PostOrdersOrderNumberReturnRequest$.outboundSchema = exports.PostOrdersOrderNumberReturnRequest$outboundSchema;
|
|
67
|
-
})(PostOrdersOrderNumberReturnRequest$ || (exports.PostOrdersOrderNumberReturnRequest$ = PostOrdersOrderNumberReturnRequest$ = {}));
|
|
68
|
-
/** @internal */
|
|
69
|
-
exports.PostOrdersOrderNumberReturnContent$inboundSchema = z
|
|
70
|
-
.object({
|
|
71
|
-
order_return: components.OrderReturn$inboundSchema.optional(),
|
|
72
|
-
})
|
|
73
|
-
.transform((v) => {
|
|
74
|
-
return (0, primitives_js_1.remap)(v, {
|
|
75
|
-
order_return: "orderReturn",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
/** @internal */
|
|
79
|
-
exports.PostOrdersOrderNumberReturnContent$outboundSchema = z
|
|
80
|
-
.object({
|
|
81
|
-
orderReturn: components.OrderReturn$outboundSchema.optional(),
|
|
82
|
-
})
|
|
83
|
-
.transform((v) => {
|
|
84
|
-
return (0, primitives_js_1.remap)(v, {
|
|
85
|
-
orderReturn: "order_return",
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
-
*/
|
|
92
|
-
var PostOrdersOrderNumberReturnContent$;
|
|
93
|
-
(function (PostOrdersOrderNumberReturnContent$) {
|
|
94
|
-
/** @deprecated use `PostOrdersOrderNumberReturnContent$inboundSchema` instead. */
|
|
95
|
-
PostOrdersOrderNumberReturnContent$.inboundSchema = exports.PostOrdersOrderNumberReturnContent$inboundSchema;
|
|
96
|
-
/** @deprecated use `PostOrdersOrderNumberReturnContent$outboundSchema` instead. */
|
|
97
|
-
PostOrdersOrderNumberReturnContent$.outboundSchema = exports.PostOrdersOrderNumberReturnContent$outboundSchema;
|
|
98
|
-
})(PostOrdersOrderNumberReturnContent$ || (exports.PostOrdersOrderNumberReturnContent$ = PostOrdersOrderNumberReturnContent$ = {}));
|
|
99
|
-
/** @internal */
|
|
100
|
-
exports.PostOrdersOrderNumberReturnResponseBody$inboundSchema = z.object({
|
|
101
|
-
message: z.string().default("order details"),
|
|
102
|
-
success: z.boolean().optional(),
|
|
103
|
-
content: z.lazy(() => exports.PostOrdersOrderNumberReturnContent$inboundSchema).optional(),
|
|
104
|
-
});
|
|
105
|
-
/** @internal */
|
|
106
|
-
exports.PostOrdersOrderNumberReturnResponseBody$outboundSchema = z.object({
|
|
107
|
-
message: z.string().default("order details"),
|
|
108
|
-
success: z.boolean().optional(),
|
|
109
|
-
content: z.lazy(() => exports.PostOrdersOrderNumberReturnContent$outboundSchema).optional(),
|
|
110
|
-
});
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
113
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
|
-
*/
|
|
115
|
-
var PostOrdersOrderNumberReturnResponseBody$;
|
|
116
|
-
(function (PostOrdersOrderNumberReturnResponseBody$) {
|
|
117
|
-
/** @deprecated use `PostOrdersOrderNumberReturnResponseBody$inboundSchema` instead. */
|
|
118
|
-
PostOrdersOrderNumberReturnResponseBody$.inboundSchema = exports.PostOrdersOrderNumberReturnResponseBody$inboundSchema;
|
|
119
|
-
/** @deprecated use `PostOrdersOrderNumberReturnResponseBody$outboundSchema` instead. */
|
|
120
|
-
PostOrdersOrderNumberReturnResponseBody$.outboundSchema = exports.PostOrdersOrderNumberReturnResponseBody$outboundSchema;
|
|
121
|
-
})(PostOrdersOrderNumberReturnResponseBody$ || (exports.PostOrdersOrderNumberReturnResponseBody$ = PostOrdersOrderNumberReturnResponseBody$ = {}));
|
|
122
|
-
//# sourceMappingURL=postordersordernumberreturn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postordersordernumberreturn.js","sourceRoot":"","sources":["../../src/models/operations/postordersordernumberreturn.ts"],"names":[],"mappings":"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"}
|
package/sdk/common.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
import { Countries } from "./countries.js";
|
|
4
|
-
export declare class Common extends ClientSDK {
|
|
5
|
-
private _countries?;
|
|
6
|
-
get countries(): Countries;
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve all countries
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* Retrieve all countries
|
|
12
|
-
*/
|
|
13
|
-
getCountries(options?: RequestOptions): Promise<operations.GetCommonCountriesResponseBody>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=common.d.ts.map
|
package/sdk/common.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/sdk/common.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAO,SAAQ,SAAS;IACjC,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED;;;;;OAKG;IACG,YAAY,CACd,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;CAGxD"}
|
package/sdk/common.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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.Common = void 0;
|
|
7
|
-
const commonGetCountries_js_1 = require("../funcs/commonGetCountries.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
const countries_js_1 = require("./countries.js");
|
|
11
|
-
class Common extends sdks_js_1.ClientSDK {
|
|
12
|
-
get countries() {
|
|
13
|
-
var _a;
|
|
14
|
-
return ((_a = this._countries) !== null && _a !== void 0 ? _a : (this._countries = new countries_js_1.Countries(this.options$)));
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Retrieve all countries
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* Retrieve all countries
|
|
21
|
-
*/
|
|
22
|
-
async getCountries(options) {
|
|
23
|
-
return (0, fp_js_1.unwrapAsync)((0, commonGetCountries_js_1.commonGetCountries)(this, options));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.Common = Common;
|
|
27
|
-
//# sourceMappingURL=common.js.map
|
package/sdk/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/sdk/common.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,4CAA2D;AAE3D,0CAA6C;AAC7C,iDAA2C;AAE3C,MAAa,MAAO,SAAQ,mBAAS;IAEjC,IAAI,SAAS;;QACT,OAAO,OAAC,IAAI,CAAC,UAAU,oCAAf,IAAI,CAAC,UAAU,GAAK,IAAI,wBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CACd,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,CAAC;CACJ;AAjBD,wBAiBC"}
|
package/sdk/countries.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../src/sdk/countries.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACpC;;;;;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/countries.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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.Countries = void 0;
|
|
7
|
-
const commonCountriesGetPincodes_js_1 = require("../funcs/commonCountriesGetPincodes.js");
|
|
8
|
-
const commonCountriesGetStates_js_1 = require("../funcs/commonCountriesGetStates.js");
|
|
9
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const fp_js_1 = require("../types/fp.js");
|
|
11
|
-
class Countries extends sdks_js_1.ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* Retrieve country wise states
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Retrieve country wise states
|
|
17
|
-
*/
|
|
18
|
-
async getStates(request, options) {
|
|
19
|
-
return (0, fp_js_1.unwrapAsync)((0, commonCountriesGetStates_js_1.commonCountriesGetStates)(this, request, options));
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Retrieve pincodes
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* Retrieve pincodes
|
|
26
|
-
*/
|
|
27
|
-
async getPincodes(request, options) {
|
|
28
|
-
return (0, fp_js_1.unwrapAsync)((0, commonCountriesGetPincodes_js_1.commonCountriesGetPincodes)(this, request, options));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.Countries = Countries;
|
|
32
|
-
//# sourceMappingURL=countries.js.map
|
package/sdk/countries.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"countries.js","sourceRoot":"","sources":["../src/sdk/countries.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACX,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACb,OAAmE,EACnE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ;AA1BD,8BA0BC"}
|
package/sdk/crosssell.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class CrossSell extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve cross-sell products
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
9
|
-
*/
|
|
10
|
-
list(request: operations.GetCrossSellRequest, options?: RequestOptions): Promise<operations.GetCrossSellResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=crosssell.d.ts.map
|
package/sdk/crosssell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crosssell.d.ts","sourceRoot":"","sources":["../src/sdk/crosssell.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACN,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGlD"}
|
package/sdk/crosssell.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.CrossSell = void 0;
|
|
7
|
-
const catalogProductsCrossSellList_js_1 = require("../funcs/catalogProductsCrossSellList.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class CrossSell extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve cross-sell products
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
16
|
-
*/
|
|
17
|
-
async list(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, catalogProductsCrossSellList_js_1.catalogProductsCrossSellList)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.CrossSell = CrossSell;
|
|
22
|
-
//# sourceMappingURL=crosssell.js.map
|
package/sdk/crosssell.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crosssell.js","sourceRoot":"","sources":["../src/sdk/crosssell.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;CACJ;AAbD,8BAaC"}
|
package/sdk/otp.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Otp extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Generate OTP
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
9
|
-
*/
|
|
10
|
-
generate(request?: operations.PostAuthGenerateOtpRequestBody | undefined, options?: RequestOptions): Promise<operations.PostAuthGenerateOtpResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=otp.d.ts.map
|
package/sdk/otp.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp.d.ts","sourceRoot":"","sources":["../src/sdk/otp.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,GAAI,SAAQ,SAAS;IAC9B;;;;;OAKG;IACG,QAAQ,CACV,OAAO,CAAC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGzD"}
|
package/sdk/otp.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.Otp = void 0;
|
|
7
|
-
const authOtpGenerate_js_1 = require("../funcs/authOtpGenerate.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Otp extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Generate OTP
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
16
|
-
*/
|
|
17
|
-
async generate(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, authOtpGenerate_js_1.authOtpGenerate)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Otp = Otp;
|
|
22
|
-
//# sourceMappingURL=otp.js.map
|
package/sdk/otp.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp.js","sourceRoot":"","sources":["../src/sdk/otp.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,GAAI,SAAQ,mBAAS;IAC9B;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACV,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ;AAbD,kBAaC"}
|
package/sdk/recommended.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Recommended extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve recommended products
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* 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.
|
|
9
|
-
*/
|
|
10
|
-
list(options?: RequestOptions): Promise<operations.GetRecommendedResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=recommended.d.ts.map
|
package/sdk/recommended.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../src/sdk/recommended.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,WAAY,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAGvF"}
|
package/sdk/recommended.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.Recommended = void 0;
|
|
7
|
-
const catalogProductsRecommendedList_js_1 = require("../funcs/catalogProductsRecommendedList.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Recommended extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve recommended products
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* 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.
|
|
16
|
-
*/
|
|
17
|
-
async list(options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, catalogProductsRecommendedList_js_1.catalogProductsRecommendedList)(this, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Recommended = Recommended;
|
|
22
|
-
//# sourceMappingURL=recommended.js.map
|
package/sdk/recommended.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../src/sdk/recommended.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kGAA4F;AAC5F,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,WAAY,SAAQ,mBAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,OAAwB;QAC/B,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;CACJ;AAVD,kCAUC"}
|
package/sdk/similar.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Similar extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve similar products
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* 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.
|
|
9
|
-
*/
|
|
10
|
-
list(request: operations.GetSimilarRequest, options?: RequestOptions): Promise<operations.GetSimilarResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=similar.d.ts.map
|
package/sdk/similar.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"similar.d.ts","sourceRoot":"","sources":["../src/sdk/similar.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,IAAI,CACN,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAGhD"}
|
package/sdk/similar.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.Similar = void 0;
|
|
7
|
-
const catalogProductsSimilarList_js_1 = require("../funcs/catalogProductsSimilarList.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Similar extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve similar products
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* 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.
|
|
16
|
-
*/
|
|
17
|
-
async list(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, catalogProductsSimilarList_js_1.catalogProductsSimilarList)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Similar = Similar;
|
|
22
|
-
//# sourceMappingURL=similar.js.map
|
package/sdk/similar.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"similar.js","sourceRoot":"","sources":["../src/sdk/similar.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ;AAbD,0BAaC"}
|
package/sdk/token.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Token extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Refresh access token
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* 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.
|
|
9
|
-
*/
|
|
10
|
-
refresh(request?: operations.PostAuthRefreshTokenRequestBody | undefined, options?: RequestOptions): Promise<operations.PostAuthRefreshTokenResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=token.d.ts.map
|
package/sdk/token.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../src/sdk/token.ts"],"names":[],"mappings":"AAKA,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,OAAO,CACT,OAAO,CAAC,EAAE,UAAU,CAAC,+BAA+B,GAAG,SAAS,EAChE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAG1D"}
|
package/sdk/token.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.Token = void 0;
|
|
7
|
-
const authTokenRefresh_js_1 = require("../funcs/authTokenRefresh.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Token extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Refresh access token
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* 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.
|
|
16
|
-
*/
|
|
17
|
-
async refresh(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, authTokenRefresh_js_1.authTokenRefresh)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Token = Token;
|
|
22
|
-
//# sourceMappingURL=token.js.map
|
package/sdk/token.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../src/sdk/token.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sEAAgE;AAChE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAChC;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACT,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;CACJ;AAbD,sBAaC"}
|
package/sdk/upsell.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class UpSell extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve up-sell products
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
9
|
-
*/
|
|
10
|
-
list(request: operations.GetUpSellRequest, options?: RequestOptions): Promise<operations.GetUpSellResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=upsell.d.ts.map
|
package/sdk/upsell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsell.d.ts","sourceRoot":"","sources":["../src/sdk/upsell.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACjC;;;;;OAKG;IACG,IAAI,CACN,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAG/C"}
|
package/sdk/upsell.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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.UpSell = void 0;
|
|
7
|
-
const catalogProductsUpSellList_js_1 = require("../funcs/catalogProductsUpSellList.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class UpSell extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve up-sell products
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
16
|
-
*/
|
|
17
|
-
async list(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, catalogProductsUpSellList_js_1.catalogProductsUpSellList)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.UpSell = UpSell;
|
|
22
|
-
//# sourceMappingURL=upsell.js.map
|
package/sdk/upsell.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsell.js","sourceRoot":"","sources":["../src/sdk/upsell.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wFAAkF;AAClF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACN,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ;AAbD,wBAaC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import * as m$ from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve all order returns
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Retrieve all order returns
|
|
27
|
-
*/
|
|
28
|
-
export async function ordersGetReturns(
|
|
29
|
-
client$: CeStorefrontCore,
|
|
30
|
-
options?: RequestOptions
|
|
31
|
-
): Promise<
|
|
32
|
-
Result<
|
|
33
|
-
operations.GetOrdersReturnsResponseBody,
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path$ = pathToFunc("/orders/returns")();
|
|
44
|
-
|
|
45
|
-
const headers$ = new Headers({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const authorization$ = await extractSecurity(client$.options$.authorization);
|
|
50
|
-
const security$ = authorization$ == null ? {} : { authorization: authorization$ };
|
|
51
|
-
const context = {
|
|
52
|
-
operationID: "get-orders-returns",
|
|
53
|
-
oAuth2Scopes: [],
|
|
54
|
-
securitySource: client$.options$.authorization,
|
|
55
|
-
};
|
|
56
|
-
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
57
|
-
|
|
58
|
-
const requestRes = client$.createRequest$(
|
|
59
|
-
context,
|
|
60
|
-
{
|
|
61
|
-
security: securitySettings$,
|
|
62
|
-
method: "GET",
|
|
63
|
-
path: path$,
|
|
64
|
-
headers: headers$,
|
|
65
|
-
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
66
|
-
},
|
|
67
|
-
options
|
|
68
|
-
);
|
|
69
|
-
if (!requestRes.ok) {
|
|
70
|
-
return requestRes;
|
|
71
|
-
}
|
|
72
|
-
const request$ = requestRes.value;
|
|
73
|
-
|
|
74
|
-
const doResult = await client$.do$(request$, {
|
|
75
|
-
context,
|
|
76
|
-
errorCodes: ["4XX", "5XX"],
|
|
77
|
-
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
78
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
79
|
-
});
|
|
80
|
-
if (!doResult.ok) {
|
|
81
|
-
return doResult;
|
|
82
|
-
}
|
|
83
|
-
const response = doResult.value;
|
|
84
|
-
|
|
85
|
-
const [result$] = await m$.match<
|
|
86
|
-
operations.GetOrdersReturnsResponseBody,
|
|
87
|
-
| SDKError
|
|
88
|
-
| SDKValidationError
|
|
89
|
-
| UnexpectedClientError
|
|
90
|
-
| InvalidRequestError
|
|
91
|
-
| RequestAbortedError
|
|
92
|
-
| RequestTimeoutError
|
|
93
|
-
| ConnectionError
|
|
94
|
-
>(
|
|
95
|
-
m$.json(200, operations.GetOrdersReturnsResponseBody$inboundSchema),
|
|
96
|
-
m$.fail(["4XX", "5XX"])
|
|
97
|
-
)(response);
|
|
98
|
-
if (!result$.ok) {
|
|
99
|
-
return result$;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return result$;
|
|
103
|
-
}
|