ce-storefront 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +5 -0
- package/README.md +89 -124
- package/docs/sdks/addresses/README.md +78 -0
- package/docs/sdks/analytics/README.md +5 -5
- package/docs/sdks/auth/README.md +16 -24
- package/docs/sdks/campaigns/README.md +1 -79
- package/docs/sdks/cestorefrontuser/README.md +850 -0
- package/docs/sdks/{common → coupons}/README.md +9 -9
- package/docs/sdks/customers/README.md +12 -15
- package/docs/sdks/{otp → newsletter}/README.md +10 -10
- package/docs/sdks/notificationpreferences/README.md +240 -0
- package/docs/sdks/offers/README.md +1 -152
- package/docs/sdks/orders/README.md +0 -73
- package/docs/sdks/products/README.md +228 -0
- package/docs/sdks/{recommended → promotions}/README.md +8 -9
- package/docs/sdks/returns/README.md +0 -160
- package/docs/sdks/reviews/README.md +5 -5
- package/docs/sdks/shipping/README.md +5 -5
- package/docs/sdks/user/README.md +1 -927
- package/docs/sdks/{countries → utils}/README.md +81 -8
- package/funcs/{analyticsTrackEvent.d.ts → analyticsTrack.d.ts} +2 -2
- package/funcs/analyticsTrack.d.ts.map +1 -0
- package/funcs/{analyticsTrackEvent.js → analyticsTrack.js} +3 -3
- package/funcs/analyticsTrack.js.map +1 -0
- package/funcs/{authOtpGenerate.d.ts → authGenerateOtp.d.ts} +2 -2
- package/funcs/{authOtpGenerate.d.ts.map → authGenerateOtp.d.ts.map} +1 -1
- package/funcs/{authOtpGenerate.js → authGenerateOtp.js} +3 -3
- package/funcs/{authOtpGenerate.js.map → authGenerateOtp.js.map} +1 -1
- package/funcs/{authTokenRefresh.d.ts → authRefreshToken.d.ts} +2 -2
- package/funcs/{authTokenRefresh.d.ts.map → authRefreshToken.d.ts.map} +1 -1
- package/funcs/{authTokenRefresh.js → authRefreshToken.js} +3 -3
- package/funcs/{authTokenRefresh.js.map → authRefreshToken.js.map} +1 -1
- package/funcs/{authGetUser.d.ts → authUserGet.d.ts} +2 -2
- package/funcs/{authGetUser.d.ts.map → authUserGet.d.ts.map} +1 -1
- package/funcs/{authGetUser.js → authUserGet.js} +3 -3
- package/funcs/{authGetUser.js.map → authUserGet.js.map} +1 -1
- package/funcs/{authUpdateUser.d.ts → authUserUpdate.d.ts} +2 -2
- package/funcs/{authUpdateUser.d.ts.map → authUserUpdate.d.ts.map} +1 -1
- package/funcs/{authUpdateUser.js → authUserUpdate.js} +3 -3
- package/funcs/{authUpdateUser.js.map → authUserUpdate.js.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.d.ts → campaignsNewsletterSubscribe.d.ts} +2 -2
- package/funcs/{campaignsSubscribeNewsletter.d.ts.map → campaignsNewsletterSubscribe.d.ts.map} +1 -1
- package/funcs/{campaignsSubscribeNewsletter.js → campaignsNewsletterSubscribe.js} +3 -3
- package/funcs/{campaignsSubscribeNewsletter.js.map → campaignsNewsletterSubscribe.js.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.d.ts → catalogProductsGetCrossSells.d.ts} +2 -2
- package/funcs/{catalogProductsCrossSellList.d.ts.map → catalogProductsGetCrossSells.d.ts.map} +1 -1
- package/funcs/{catalogProductsCrossSellList.js → catalogProductsGetCrossSells.js} +3 -3
- package/funcs/{catalogProductsCrossSellList.js.map → catalogProductsGetCrossSells.js.map} +1 -1
- package/funcs/{catalogProductsSimilarList.d.ts → catalogProductsGetSimilar.d.ts} +2 -2
- package/funcs/catalogProductsGetSimilar.d.ts.map +1 -0
- package/funcs/{catalogProductsSimilarList.js → catalogProductsGetSimilar.js} +3 -3
- package/funcs/catalogProductsGetSimilar.js.map +1 -0
- package/funcs/{catalogProductsUpSellList.d.ts → catalogProductsGetUpsells.d.ts} +2 -2
- package/funcs/{catalogProductsUpSellList.d.ts.map → catalogProductsGetUpsells.d.ts.map} +1 -1
- package/funcs/{catalogProductsUpSellList.js → catalogProductsGetUpsells.js} +3 -3
- package/funcs/{catalogProductsUpSellList.js.map → catalogProductsGetUpsells.js.map} +1 -1
- package/funcs/{commonCountriesGetPincodes.d.ts → customersAddressesList.d.ts} +4 -4
- package/funcs/customersAddressesList.d.ts.map +1 -0
- package/funcs/{customersGetAddresses.js → customersAddressesList.js} +3 -3
- package/funcs/customersAddressesList.js.map +1 -0
- package/funcs/{catalogProductsRecommendedList.d.ts → customersGetRecommendedProducts.d.ts} +2 -2
- package/funcs/customersGetRecommendedProducts.d.ts.map +1 -0
- package/funcs/{catalogProductsRecommendedList.js → customersGetRecommendedProducts.js} +3 -3
- package/funcs/customersGetRecommendedProducts.js.map +1 -0
- package/funcs/{customersReviewsGetAll.d.ts → customersReviewsList.d.ts} +2 -2
- package/funcs/customersReviewsList.d.ts.map +1 -0
- package/funcs/{customersReviewsGetAll.js → customersReviewsList.js} +3 -3
- package/funcs/customersReviewsList.js.map +1 -0
- package/funcs/{offersGetCoupons.d.ts → offersCouponsList.d.ts} +2 -2
- package/funcs/offersCouponsList.d.ts.map +1 -0
- package/funcs/{offersGetCoupons.js → offersCouponsList.js} +3 -3
- package/funcs/{ordersGetReturns.js.map → offersCouponsList.js.map} +1 -1
- package/funcs/{offersGetPromotions.d.ts → offersPromotionsList.d.ts} +2 -2
- package/funcs/offersPromotionsList.d.ts.map +1 -0
- package/funcs/{offersGetPromotions.js → offersPromotionsList.js} +3 -3
- package/funcs/offersPromotionsList.js.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.d.ts → shippingCheckPincodeServiceability.d.ts} +2 -2
- package/funcs/shippingCheckPincodeServiceability.d.ts.map +1 -0
- package/funcs/{shippingGetPincodeServiceability.js → shippingCheckPincodeServiceability.js} +3 -3
- package/funcs/shippingCheckPincodeServiceability.js.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.d.ts → userNotificationPreferencesCreate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesCreate.d.ts.map +1 -0
- package/funcs/{authUserCreateNotificationPreferences.js → userNotificationPreferencesCreate.js} +3 -3
- package/funcs/userNotificationPreferencesCreate.js.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.d.ts → userNotificationPreferencesGet.d.ts} +2 -2
- package/funcs/userNotificationPreferencesGet.d.ts.map +1 -0
- package/funcs/{authUserGetNotificationPreferences.js → userNotificationPreferencesGet.js} +3 -3
- package/funcs/userNotificationPreferencesGet.js.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.d.ts → userNotificationPreferencesUpdate.d.ts} +2 -2
- package/funcs/userNotificationPreferencesUpdate.d.ts.map +1 -0
- package/funcs/{authUserUpdateNotificationPreferences.js → userNotificationPreferencesUpdate.js} +3 -3
- package/funcs/userNotificationPreferencesUpdate.js.map +1 -0
- package/funcs/{commonGetCountries.d.ts → utilsGetCountries.d.ts} +2 -2
- package/funcs/utilsGetCountries.d.ts.map +1 -0
- package/funcs/{commonGetCountries.js → utilsGetCountries.js} +3 -3
- package/funcs/utilsGetCountries.js.map +1 -0
- package/funcs/{customersGetAddresses.d.ts → utilsGetPincodes.d.ts} +4 -4
- package/funcs/utilsGetPincodes.d.ts.map +1 -0
- package/funcs/{commonCountriesGetPincodes.js → utilsGetPincodes.js} +3 -3
- package/funcs/utilsGetPincodes.js.map +1 -0
- package/funcs/{commonCountriesGetStates.d.ts → utilsGetStates.d.ts} +2 -2
- package/funcs/utilsGetStates.d.ts.map +1 -0
- package/funcs/{commonCountriesGetStates.js → utilsGetStates.js} +3 -3
- package/funcs/utilsGetStates.js.map +1 -0
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -8
- package/lib/config.js.map +1 -1
- package/models/components/cartitem.js +4 -4
- package/models/components/cartitem.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/orderreturnitem.d.ts +0 -31
- package/models/components/orderreturnitem.d.ts.map +1 -1
- package/models/components/orderreturnitem.js +1 -42
- package/models/components/orderreturnitem.js.map +1 -1
- package/models/components/productattribute.js +1 -1
- package/models/components/productattribute.js.map +1 -1
- package/models/components/productdetail.js +5 -5
- package/models/components/productdetail.js.map +1 -1
- package/models/components/productlist.js +5 -5
- package/models/components/productlist.js.map +1 -1
- package/models/components/productreview.js +1 -1
- package/models/components/productreview.js.map +1 -1
- package/models/components/productshipping.js +2 -2
- package/models/components/productshipping.js.map +1 -1
- package/models/components/productsubscription.js +1 -1
- package/models/components/productsubscription.js.map +1 -1
- package/models/components/skuinfo.js +4 -4
- package/models/components/skuinfo.js.map +1 -1
- package/models/errors/unauthorized.js +1 -1
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/index.d.ts +0 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -3
- package/models/operations/index.js.map +1 -1
- package/models/operations/postcartitemid.js +1 -1
- package/models/operations/postcartitemid.js.map +1 -1
- package/package.json +5 -1
- package/sdk/addresses.d.ts +7 -0
- package/sdk/addresses.d.ts.map +1 -1
- package/sdk/addresses.js +10 -0
- package/sdk/addresses.js.map +1 -1
- package/sdk/analytics.d.ts +1 -1
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +3 -3
- package/sdk/analytics.js.map +1 -1
- package/sdk/auth.d.ts +8 -14
- package/sdk/auth.d.ts.map +1 -1
- package/sdk/auth.js +12 -22
- package/sdk/auth.js.map +1 -1
- package/sdk/campaigns.d.ts +4 -9
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/campaigns.js +4 -10
- package/sdk/campaigns.js.map +1 -1
- package/sdk/cestorefrontuser.d.ts +82 -0
- package/sdk/cestorefrontuser.d.ts.map +1 -0
- package/sdk/cestorefrontuser.js +122 -0
- package/sdk/cestorefrontuser.js.map +1 -0
- package/sdk/coupons.d.ts +12 -0
- package/sdk/coupons.d.ts.map +1 -0
- package/sdk/coupons.js +22 -0
- package/sdk/coupons.js.map +1 -0
- package/sdk/customers.d.ts +3 -3
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +5 -5
- package/sdk/customers.js.map +1 -1
- package/sdk/newsletter.d.ts +12 -0
- package/sdk/newsletter.d.ts.map +1 -0
- package/sdk/newsletter.js +22 -0
- package/sdk/newsletter.js.map +1 -0
- package/sdk/notificationpreferences.d.ts +26 -0
- package/sdk/notificationpreferences.d.ts.map +1 -0
- package/sdk/notificationpreferences.js +42 -0
- package/sdk/notificationpreferences.js.map +1 -0
- package/sdk/offers.d.ts +7 -16
- package/sdk/offers.d.ts.map +1 -1
- package/sdk/offers.js +8 -19
- package/sdk/offers.js.map +1 -1
- package/sdk/orders.d.ts +0 -7
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +0 -10
- package/sdk/orders.js.map +1 -1
- package/sdk/products.d.ts +21 -12
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +30 -20
- package/sdk/products.js.map +1 -1
- package/sdk/promotions.d.ts +12 -0
- package/sdk/promotions.d.ts.map +1 -0
- package/sdk/promotions.js +22 -0
- package/sdk/promotions.js.map +1 -0
- package/sdk/returns.d.ts +0 -14
- package/sdk/returns.d.ts.map +1 -1
- package/sdk/returns.js +0 -20
- package/sdk/returns.js.map +1 -1
- package/sdk/reviews.d.ts +1 -1
- package/sdk/reviews.d.ts.map +1 -1
- package/sdk/reviews.js +3 -3
- package/sdk/reviews.js.map +1 -1
- package/sdk/sdk.d.ts +8 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -7
- package/sdk/sdk.js.map +1 -1
- package/sdk/shipping.d.ts +1 -1
- package/sdk/shipping.d.ts.map +1 -1
- package/sdk/shipping.js +3 -3
- package/sdk/shipping.js.map +1 -1
- package/sdk/user.d.ts +4 -86
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +4 -120
- package/sdk/user.js.map +1 -1
- package/sdk/{countries.d.ts → utils.d.ts} +9 -2
- package/sdk/utils.d.ts.map +1 -0
- package/sdk/utils.js +42 -0
- package/sdk/utils.js.map +1 -0
- package/src/funcs/{analyticsTrackEvent.ts → analyticsTrack.ts} +1 -1
- package/src/funcs/{authOtpGenerate.ts → authGenerateOtp.ts} +1 -1
- package/src/funcs/{authTokenRefresh.ts → authRefreshToken.ts} +1 -1
- package/src/funcs/{authGetUser.ts → authUserGet.ts} +1 -1
- package/src/funcs/{authUpdateUser.ts → authUserUpdate.ts} +1 -1
- package/src/funcs/{campaignsSubscribeNewsletter.ts → campaignsNewsletterSubscribe.ts} +1 -1
- package/src/funcs/{catalogProductsCrossSellList.ts → catalogProductsGetCrossSells.ts} +1 -1
- package/src/funcs/{catalogProductsSimilarList.ts → catalogProductsGetSimilar.ts} +1 -1
- package/src/funcs/{catalogProductsUpSellList.ts → catalogProductsGetUpsells.ts} +1 -1
- package/src/funcs/{customersGetAddresses.ts → customersAddressesList.ts} +1 -1
- package/src/funcs/{catalogProductsRecommendedList.ts → customersGetRecommendedProducts.ts} +1 -1
- package/src/funcs/{customersReviewsGetAll.ts → customersReviewsList.ts} +1 -1
- package/src/funcs/{offersGetCoupons.ts → offersCouponsList.ts} +1 -1
- package/src/funcs/{offersGetPromotions.ts → offersPromotionsList.ts} +1 -1
- package/src/funcs/{shippingGetPincodeServiceability.ts → shippingCheckPincodeServiceability.ts} +1 -1
- package/src/funcs/{authUserCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts} +1 -1
- package/src/funcs/{authUserGetNotificationPreferences.ts → userNotificationPreferencesGet.ts} +1 -1
- package/src/funcs/{authUserUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts} +1 -1
- package/src/funcs/{commonGetCountries.ts → utilsGetCountries.ts} +1 -1
- package/src/funcs/{commonCountriesGetPincodes.ts → utilsGetPincodes.ts} +1 -1
- package/src/funcs/{commonCountriesGetStates.ts → utilsGetStates.ts} +1 -1
- package/src/lib/config.ts +3 -8
- package/src/models/components/cartitem.ts +4 -4
- package/src/models/components/index.ts +0 -1
- package/src/models/components/orderreturnitem.ts +0 -70
- package/src/models/components/productattribute.ts +1 -1
- package/src/models/components/productdetail.ts +5 -5
- package/src/models/components/productlist.ts +5 -5
- package/src/models/components/productreview.ts +1 -1
- package/src/models/components/productshipping.ts +2 -2
- package/src/models/components/productsubscription.ts +1 -1
- package/src/models/components/skuinfo.ts +4 -4
- package/src/models/errors/unauthorized.ts +1 -1
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/postcartitemid.ts +1 -1
- package/src/sdk/addresses.ts +14 -0
- package/src/sdk/analytics.ts +3 -3
- package/src/sdk/auth.ts +18 -30
- package/src/sdk/campaigns.ts +5 -15
- package/src/sdk/cestorefrontuser.ts +160 -0
- package/src/sdk/coupons.ts +20 -0
- package/src/sdk/customers.ts +6 -7
- package/src/sdk/newsletter.ts +23 -0
- package/src/sdk/notificationpreferences.ts +51 -0
- package/src/sdk/offers.ts +9 -21
- package/src/sdk/orders.ts +0 -11
- package/src/sdk/products.ts +42 -24
- package/src/sdk/promotions.ts +20 -0
- package/src/sdk/returns.ts +0 -28
- package/src/sdk/reviews.ts +3 -3
- package/src/sdk/sdk.ts +15 -9
- package/src/sdk/shipping.ts +3 -3
- package/src/sdk/user.ts +5 -166
- package/src/sdk/{countries.ts → utils.ts} +18 -5
- package/docs/sdks/crosssell/README.md +0 -82
- package/docs/sdks/similar/README.md +0 -82
- package/docs/sdks/token/README.md +0 -80
- package/docs/sdks/upsell/README.md +0 -82
- package/funcs/analyticsTrackEvent.d.ts.map +0 -1
- package/funcs/analyticsTrackEvent.js.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserCreateNotificationPreferences.js.map +0 -1
- package/funcs/authUserGetNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserGetNotificationPreferences.js.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.d.ts.map +0 -1
- package/funcs/authUserUpdateNotificationPreferences.js.map +0 -1
- package/funcs/catalogProductsRecommendedList.d.ts.map +0 -1
- package/funcs/catalogProductsRecommendedList.js.map +0 -1
- package/funcs/catalogProductsSimilarList.d.ts.map +0 -1
- package/funcs/catalogProductsSimilarList.js.map +0 -1
- package/funcs/commonCountriesGetPincodes.d.ts.map +0 -1
- package/funcs/commonCountriesGetPincodes.js.map +0 -1
- package/funcs/commonCountriesGetStates.d.ts.map +0 -1
- package/funcs/commonCountriesGetStates.js.map +0 -1
- package/funcs/commonGetCountries.d.ts.map +0 -1
- package/funcs/commonGetCountries.js.map +0 -1
- package/funcs/customersGetAddresses.d.ts.map +0 -1
- package/funcs/customersGetAddresses.js.map +0 -1
- package/funcs/customersReviewsGetAll.d.ts.map +0 -1
- package/funcs/customersReviewsGetAll.js.map +0 -1
- package/funcs/offersGetCoupons.d.ts.map +0 -1
- package/funcs/offersGetCoupons.js.map +0 -1
- package/funcs/offersGetPromotions.d.ts.map +0 -1
- package/funcs/offersGetPromotions.js.map +0 -1
- package/funcs/ordersGetReturns.d.ts +0 -15
- package/funcs/ordersGetReturns.d.ts.map +0 -1
- package/funcs/ordersGetReturns.js +0 -80
- package/funcs/ordersReturnsCreate.d.ts +0 -16
- package/funcs/ordersReturnsCreate.d.ts.map +0 -1
- package/funcs/ordersReturnsCreate.js +0 -101
- package/funcs/ordersReturnsCreate.js.map +0 -1
- package/funcs/ordersReturnsGet.d.ts +0 -15
- package/funcs/ordersReturnsGet.d.ts.map +0 -1
- package/funcs/ordersReturnsGet.js +0 -100
- package/funcs/ordersReturnsGet.js.map +0 -1
- package/funcs/shippingGetPincodeServiceability.d.ts.map +0 -1
- package/funcs/shippingGetPincodeServiceability.js.map +0 -1
- package/models/components/createorderreturn.d.ts +0 -29
- package/models/components/createorderreturn.d.ts.map +0 -1
- package/models/components/createorderreturn.js +0 -69
- package/models/components/createorderreturn.js.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.d.ts +0 -87
- package/models/operations/getordersordernumberreturnreturnid.d.ts.map +0 -1
- package/models/operations/getordersordernumberreturnreturnid.js +0 -122
- package/models/operations/getordersordernumberreturnreturnid.js.map +0 -1
- package/models/operations/getordersreturns.d.ts +0 -56
- package/models/operations/getordersreturns.d.ts.map +0 -1
- package/models/operations/getordersreturns.js +0 -74
- package/models/operations/getordersreturns.js.map +0 -1
- package/models/operations/postordersordernumberreturn.d.ts +0 -84
- package/models/operations/postordersordernumberreturn.d.ts.map +0 -1
- package/models/operations/postordersordernumberreturn.js +0 -122
- package/models/operations/postordersordernumberreturn.js.map +0 -1
- package/sdk/common.d.ts +0 -15
- package/sdk/common.d.ts.map +0 -1
- package/sdk/common.js +0 -27
- package/sdk/common.js.map +0 -1
- package/sdk/countries.d.ts.map +0 -1
- package/sdk/countries.js +0 -32
- package/sdk/countries.js.map +0 -1
- package/sdk/crosssell.d.ts +0 -12
- package/sdk/crosssell.d.ts.map +0 -1
- package/sdk/crosssell.js +0 -22
- package/sdk/crosssell.js.map +0 -1
- package/sdk/otp.d.ts +0 -12
- package/sdk/otp.d.ts.map +0 -1
- package/sdk/otp.js +0 -22
- package/sdk/otp.js.map +0 -1
- package/sdk/recommended.d.ts +0 -12
- package/sdk/recommended.d.ts.map +0 -1
- package/sdk/recommended.js +0 -22
- package/sdk/recommended.js.map +0 -1
- package/sdk/similar.d.ts +0 -12
- package/sdk/similar.d.ts.map +0 -1
- package/sdk/similar.js +0 -22
- package/sdk/similar.js.map +0 -1
- package/sdk/token.d.ts +0 -12
- package/sdk/token.d.ts.map +0 -1
- package/sdk/token.js +0 -22
- package/sdk/token.js.map +0 -1
- package/sdk/upsell.d.ts +0 -12
- package/sdk/upsell.d.ts.map +0 -1
- package/sdk/upsell.js +0 -22
- package/sdk/upsell.js.map +0 -1
- package/src/funcs/ordersGetReturns.ts +0 -103
- package/src/funcs/ordersReturnsCreate.ts +0 -139
- package/src/funcs/ordersReturnsGet.ts +0 -132
- package/src/models/components/createorderreturn.ts +0 -73
- package/src/models/operations/getordersordernumberreturnreturnid.ts +0 -174
- package/src/models/operations/getordersreturns.ts +0 -97
- package/src/models/operations/postordersordernumberreturn.ts +0 -171
- package/src/sdk/common.ts +0 -28
- package/src/sdk/crosssell.ts +0 -23
- package/src/sdk/otp.ts +0 -23
- package/src/sdk/recommended.ts +0 -20
- package/src/sdk/similar.ts +0 -23
- package/src/sdk/token.ts +0 -23
- package/src/sdk/upsell.ts +0 -23
package/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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
|
|
|
26
26
|
* @remarks
|
|
27
27
|
* 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.
|
|
28
28
|
*/
|
|
29
|
-
export async function
|
|
29
|
+
export async function customersGetRecommendedProducts(
|
|
30
30
|
client$: CeStorefrontCore,
|
|
31
31
|
options?: RequestOptions
|
|
32
32
|
): Promise<
|
|
@@ -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
|
package/src/funcs/{shippingGetPincodeServiceability.ts → shippingCheckPincodeServiceability.ts}
RENAMED
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Check shipment delivery availability in an area by pincode
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function shippingCheckPincodeServiceability(
|
|
32
32
|
client$: CeStorefrontCore,
|
|
33
33
|
request: operations.GetShipmentPincodeServiceabilityRequest,
|
|
34
34
|
options?: RequestOptions
|
package/src/funcs/{authUserCreateNotificationPreferences.ts → userNotificationPreferencesCreate.ts}
RENAMED
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Create user notification preferences API allows clients to create a user's notification preferences based on their unique user identifier (user_id).
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function userNotificationPreferencesCreate(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.PostAuthUserIdNotificationPreferencesRequest,
|
|
33
33
|
options?: RequestOptions
|
package/src/funcs/{authUserGetNotificationPreferences.ts → userNotificationPreferencesGet.ts}
RENAMED
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function userNotificationPreferencesGet(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.GetAuthUserIdNotificationPreferencesRequest,
|
|
33
33
|
options?: RequestOptions
|
package/src/funcs/{authUserUpdateNotificationPreferences.ts → userNotificationPreferencesUpdate.ts}
RENAMED
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function userNotificationPreferencesUpdate(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.PutAuthUserIdNotificationPreferencesRequest,
|
|
33
33
|
options?: RequestOptions
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieve pincodes
|
|
32
32
|
*/
|
|
33
|
-
export async function
|
|
33
|
+
export async function utilsGetPincodes(
|
|
34
34
|
client$: CeStorefrontCore,
|
|
35
35
|
request: operations.GetCommonCountriesCountryIsoCodePincodesRequest,
|
|
36
36
|
options?: RequestOptions
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Retrieve country wise states
|
|
29
29
|
*/
|
|
30
|
-
export async function
|
|
30
|
+
export async function utilsGetStates(
|
|
31
31
|
client$: CeStorefrontCore,
|
|
32
32
|
request: operations.GetCommonCountriesIsoCodeStatesRequest,
|
|
33
33
|
options?: RequestOptions
|
package/src/lib/config.ts
CHANGED
|
@@ -19,10 +19,6 @@ export const ServerList = [
|
|
|
19
19
|
* Prod Server
|
|
20
20
|
*/
|
|
21
21
|
"https://prod.api.commercengine.io/api/v1/{store_id}/storefront",
|
|
22
|
-
/**
|
|
23
|
-
* Mock Server
|
|
24
|
-
*/
|
|
25
|
-
"https://stoplight.io/mocks/tarkaikaman/ce-apis/217963442",
|
|
26
22
|
] as const;
|
|
27
23
|
|
|
28
24
|
export type SDKOptions = {
|
|
@@ -59,7 +55,6 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
55
|
{
|
|
60
56
|
store_id: options.storeId ?? "x2yh61zw4k",
|
|
61
57
|
},
|
|
62
|
-
{},
|
|
63
58
|
];
|
|
64
59
|
let params: Params = {};
|
|
65
60
|
|
|
@@ -79,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
79
74
|
export const SDK_METADATA = {
|
|
80
75
|
language: "typescript",
|
|
81
76
|
openapiDocVersion: "1.0",
|
|
82
|
-
sdkVersion: "0.0.
|
|
83
|
-
genVersion: "2.404.
|
|
84
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
77
|
+
sdkVersion: "0.0.2",
|
|
78
|
+
genVersion: "2.404.3",
|
|
79
|
+
userAgent: "speakeasy-sdk/typescript 0.0.2 2.404.3 1.0 ce-storefront",
|
|
85
80
|
} as const;
|
|
@@ -137,10 +137,10 @@ export const CartItem$inboundSchema: z.ZodType<CartItem, z.ZodTypeDef, unknown>
|
|
|
137
137
|
product_name: z.string().optional(),
|
|
138
138
|
product_image_url: z.string().optional(),
|
|
139
139
|
sku: z.string().optional(),
|
|
140
|
-
on_offer: z.boolean(),
|
|
141
|
-
on_promotion: z.boolean(),
|
|
142
|
-
subscription_eligibility: z.boolean(),
|
|
143
|
-
on_subscription: z.boolean(),
|
|
140
|
+
on_offer: z.boolean().default(false),
|
|
141
|
+
on_promotion: z.boolean().default(false),
|
|
142
|
+
subscription_eligibility: z.boolean().default(false),
|
|
143
|
+
on_subscription: z.boolean().default(false),
|
|
144
144
|
subscription_plan: z.nullable(z.string()).optional(),
|
|
145
145
|
subscription_interval: z.nullable(z.number().int()).optional(),
|
|
146
146
|
subscription_frequency: z.nullable(z.string()).optional(),
|
|
@@ -10,7 +10,6 @@ export * from "./cartitem.js";
|
|
|
10
10
|
export * from "./country.js";
|
|
11
11
|
export * from "./countrystate.js";
|
|
12
12
|
export * from "./coupon.js";
|
|
13
|
-
export * from "./createorderreturn.js";
|
|
14
13
|
export * from "./createreview.js";
|
|
15
14
|
export * from "./currency.js";
|
|
16
15
|
export * from "./customeraddress.js";
|
|
@@ -30,14 +30,6 @@ export type OrderReturnItem = {
|
|
|
30
30
|
returnReason: string;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export type OrderReturnItemInput = {
|
|
34
|
-
productId: string;
|
|
35
|
-
sku: string;
|
|
36
|
-
quantity: number;
|
|
37
|
-
resolution: Resolution;
|
|
38
|
-
returnReason: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
33
|
/** @internal */
|
|
42
34
|
export const OrderReturnItemTaxType$inboundSchema: z.ZodNativeEnum<typeof OrderReturnItemTaxType> =
|
|
43
35
|
z.nativeEnum(OrderReturnItemTaxType);
|
|
@@ -158,65 +150,3 @@ export namespace OrderReturnItem$ {
|
|
|
158
150
|
/** @deprecated use `OrderReturnItem$Outbound` instead. */
|
|
159
151
|
export type Outbound = OrderReturnItem$Outbound;
|
|
160
152
|
}
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export const OrderReturnItemInput$inboundSchema: z.ZodType<
|
|
164
|
-
OrderReturnItemInput,
|
|
165
|
-
z.ZodTypeDef,
|
|
166
|
-
unknown
|
|
167
|
-
> = z
|
|
168
|
-
.object({
|
|
169
|
-
product_id: z.string(),
|
|
170
|
-
sku: z.string(),
|
|
171
|
-
quantity: z.number().int(),
|
|
172
|
-
resolution: Resolution$inboundSchema,
|
|
173
|
-
return_reason: z.string(),
|
|
174
|
-
})
|
|
175
|
-
.transform((v) => {
|
|
176
|
-
return remap$(v, {
|
|
177
|
-
product_id: "productId",
|
|
178
|
-
return_reason: "returnReason",
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
/** @internal */
|
|
183
|
-
export type OrderReturnItemInput$Outbound = {
|
|
184
|
-
product_id: string;
|
|
185
|
-
sku: string;
|
|
186
|
-
quantity: number;
|
|
187
|
-
resolution: string;
|
|
188
|
-
return_reason: string;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/** @internal */
|
|
192
|
-
export const OrderReturnItemInput$outboundSchema: z.ZodType<
|
|
193
|
-
OrderReturnItemInput$Outbound,
|
|
194
|
-
z.ZodTypeDef,
|
|
195
|
-
OrderReturnItemInput
|
|
196
|
-
> = z
|
|
197
|
-
.object({
|
|
198
|
-
productId: z.string(),
|
|
199
|
-
sku: z.string(),
|
|
200
|
-
quantity: z.number().int(),
|
|
201
|
-
resolution: Resolution$outboundSchema,
|
|
202
|
-
returnReason: z.string(),
|
|
203
|
-
})
|
|
204
|
-
.transform((v) => {
|
|
205
|
-
return remap$(v, {
|
|
206
|
-
productId: "product_id",
|
|
207
|
-
returnReason: "return_reason",
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @internal
|
|
213
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
214
|
-
*/
|
|
215
|
-
export namespace OrderReturnItemInput$ {
|
|
216
|
-
/** @deprecated use `OrderReturnItemInput$inboundSchema` instead. */
|
|
217
|
-
export const inboundSchema = OrderReturnItemInput$inboundSchema;
|
|
218
|
-
/** @deprecated use `OrderReturnItemInput$outboundSchema` instead. */
|
|
219
|
-
export const outboundSchema = OrderReturnItemInput$outboundSchema;
|
|
220
|
-
/** @deprecated use `OrderReturnItemInput$Outbound` instead. */
|
|
221
|
-
export type Outbound = OrderReturnItemInput$Outbound;
|
|
222
|
-
}
|
|
@@ -158,7 +158,7 @@ export const ProductAttribute$inboundSchema: z.ZodType<ProductAttribute, z.ZodTy
|
|
|
158
158
|
])
|
|
159
159
|
.optional(),
|
|
160
160
|
is_visible: z.boolean().default(true),
|
|
161
|
-
is_filterable: z.boolean(),
|
|
161
|
+
is_filterable: z.boolean().default(false),
|
|
162
162
|
})
|
|
163
163
|
.transform((v) => {
|
|
164
164
|
return remap$(v, {
|
|
@@ -273,11 +273,11 @@ export const ProductDetail$inboundSchema: z.ZodType<ProductDetail, z.ZodTypeDef,
|
|
|
273
273
|
active: z.boolean().default(true),
|
|
274
274
|
sku: z.string().optional(),
|
|
275
275
|
stock_available: z.boolean().default(true),
|
|
276
|
-
is_featured: z.boolean(),
|
|
277
|
-
on_offer: z.boolean(),
|
|
278
|
-
on_subscription: z.boolean(),
|
|
279
|
-
on_promotion: z.boolean(),
|
|
280
|
-
has_variant: z.boolean(),
|
|
276
|
+
is_featured: z.boolean().default(false),
|
|
277
|
+
on_offer: z.boolean().default(false),
|
|
278
|
+
on_subscription: z.boolean().default(false),
|
|
279
|
+
on_promotion: z.boolean().default(false),
|
|
280
|
+
has_variant: z.boolean().default(false),
|
|
281
281
|
variant_options: z
|
|
282
282
|
.array(z.lazy(() => ProductDetailVariantOptions$inboundSchema))
|
|
283
283
|
.optional(),
|
|
@@ -183,11 +183,11 @@ export const ProductList$inboundSchema: z.ZodType<ProductList, z.ZodTypeDef, unk
|
|
|
183
183
|
active: z.boolean().default(true),
|
|
184
184
|
sku: z.string().optional(),
|
|
185
185
|
stock_available: z.boolean().default(true),
|
|
186
|
-
is_featured: z.boolean(),
|
|
187
|
-
on_offer: z.boolean(),
|
|
188
|
-
on_subscription: z.boolean(),
|
|
189
|
-
on_promotion: z.boolean(),
|
|
190
|
-
has_variant: z.boolean(),
|
|
186
|
+
is_featured: z.boolean().default(false),
|
|
187
|
+
on_offer: z.boolean().default(false),
|
|
188
|
+
on_subscription: z.boolean().default(false),
|
|
189
|
+
on_promotion: z.boolean().default(false),
|
|
190
|
+
has_variant: z.boolean().default(false),
|
|
191
191
|
variant_options: z.array(z.lazy(() => VariantOptions$inboundSchema)).optional(),
|
|
192
192
|
attributes: z.array(ProductAttribute$inboundSchema).optional(),
|
|
193
193
|
images: z.array(ProductImage$inboundSchema).optional(),
|
|
@@ -245,7 +245,7 @@ export const ProductReview$inboundSchema: z.ZodType<ProductReview, z.ZodTypeDef,
|
|
|
245
245
|
name: z.string().optional(),
|
|
246
246
|
email: z.string().optional(),
|
|
247
247
|
status: Status$inboundSchema.default("pending"),
|
|
248
|
-
is_featured: z.boolean(),
|
|
248
|
+
is_featured: z.boolean().default(false),
|
|
249
249
|
tags: z.array(z.string()).optional(),
|
|
250
250
|
review_date: z
|
|
251
251
|
.string()
|
|
@@ -22,8 +22,8 @@ export type ProductShipping = {
|
|
|
22
22
|
/** @internal */
|
|
23
23
|
export const ProductShipping$inboundSchema: z.ZodType<ProductShipping, z.ZodTypeDef, unknown> = z
|
|
24
24
|
.object({
|
|
25
|
-
is_free_shipping: z.boolean(),
|
|
26
|
-
is_fixed_cost_shipping: z.boolean(),
|
|
25
|
+
is_free_shipping: z.boolean().default(false),
|
|
26
|
+
is_fixed_cost_shipping: z.boolean().default(false),
|
|
27
27
|
fixed_cost_shipping_price: z.number().optional(),
|
|
28
28
|
shipping_price_including_tax: z.boolean().optional(),
|
|
29
29
|
availability_description: z.string().optional(),
|
|
@@ -102,7 +102,7 @@ export const ProductSubscription$inboundSchema: z.ZodType<
|
|
|
102
102
|
billing_interval: z.number().int().optional(),
|
|
103
103
|
billing_frequency: BillingFrequency$inboundSchema.optional(),
|
|
104
104
|
billing_limit: z.number().int().optional(),
|
|
105
|
-
fulfill_separately: z.boolean(),
|
|
105
|
+
fulfill_separately: z.boolean().default(false),
|
|
106
106
|
order_interval: z.number().int().optional(),
|
|
107
107
|
order_frequency: OrderFrequency$inboundSchema.optional(),
|
|
108
108
|
order_limit: z.number().int().optional(),
|
|
@@ -102,10 +102,10 @@ export const SkuInfo$inboundSchema: z.ZodType<SkuInfo, z.ZodTypeDef, unknown> =
|
|
|
102
102
|
product_type: SkuInfoProductType$inboundSchema.optional(),
|
|
103
103
|
sku: z.string().optional(),
|
|
104
104
|
stock_available: z.boolean().default(true),
|
|
105
|
-
is_featured: z.boolean(),
|
|
106
|
-
on_offer: z.boolean(),
|
|
107
|
-
on_subscription: z.boolean(),
|
|
108
|
-
on_promotion: z.boolean(),
|
|
105
|
+
is_featured: z.boolean().default(false),
|
|
106
|
+
on_offer: z.boolean().default(false),
|
|
107
|
+
on_subscription: z.boolean().default(false),
|
|
108
|
+
on_promotion: z.boolean().default(false),
|
|
109
109
|
attributes: z.array(ProductAttribute$inboundSchema).optional(),
|
|
110
110
|
images: z.array(ProductImage$inboundSchema).optional(),
|
|
111
111
|
pricing: ProductPricing$inboundSchema.optional(),
|
|
@@ -44,7 +44,7 @@ export class Unauthorized extends Error {
|
|
|
44
44
|
export const Unauthorized$inboundSchema: z.ZodType<Unauthorized, z.ZodTypeDef, unknown> = z
|
|
45
45
|
.object({
|
|
46
46
|
message: z.string().optional(),
|
|
47
|
-
success: z.boolean(),
|
|
47
|
+
success: z.boolean().default(false),
|
|
48
48
|
code: z.string().optional(),
|
|
49
49
|
})
|
|
50
50
|
.transform((v) => {
|
|
@@ -30,8 +30,6 @@ export * from "./getordersidpayments.js";
|
|
|
30
30
|
export * from "./getordersidrefunds.js";
|
|
31
31
|
export * from "./getordersidshipments.js";
|
|
32
32
|
export * from "./getordersordernumberreturn.js";
|
|
33
|
-
export * from "./getordersordernumberreturnreturnid.js";
|
|
34
|
-
export * from "./getordersreturns.js";
|
|
35
33
|
export * from "./getpaymentspaymentmethods.js";
|
|
36
34
|
export * from "./getproductdetails.js";
|
|
37
35
|
export * from "./getproducts.js";
|
|
@@ -75,7 +73,6 @@ export * from "./postcustomersnewslettersubscription.js";
|
|
|
75
73
|
export * from "./postloyaltypoints.js";
|
|
76
74
|
export * from "./postorder.js";
|
|
77
75
|
export * from "./postordersordernumber.js";
|
|
78
|
-
export * from "./postordersordernumberreturn.js";
|
|
79
76
|
export * from "./postpaymentsgeneratehash.js";
|
|
80
77
|
export * from "./postproductsidreviews.js";
|
|
81
78
|
export * from "./postretrypaymentorderid.js";
|
|
@@ -48,7 +48,7 @@ export const PostCartItemIdRequestBody$inboundSchema: z.ZodType<
|
|
|
48
48
|
product_id: z.string(),
|
|
49
49
|
sku: z.string(),
|
|
50
50
|
quantity: z.number().int(),
|
|
51
|
-
on_subscription: z.boolean(),
|
|
51
|
+
on_subscription: z.boolean().default(false),
|
|
52
52
|
subscription_plan: z.nullable(z.string()).optional(),
|
|
53
53
|
})
|
|
54
54
|
.transform((v) => {
|
package/src/sdk/addresses.ts
CHANGED
|
@@ -5,12 +5,26 @@
|
|
|
5
5
|
import { customersAddressesAdd } from "../funcs/customersAddressesAdd.js";
|
|
6
6
|
import { customersAddressesDelete } from "../funcs/customersAddressesDelete.js";
|
|
7
7
|
import { customersAddressesGet } from "../funcs/customersAddressesGet.js";
|
|
8
|
+
import { customersAddressesList } from "../funcs/customersAddressesList.js";
|
|
8
9
|
import { customersAddressesUpdate } from "../funcs/customersAddressesUpdate.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
13
|
|
|
13
14
|
export class Addresses extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve all addresses
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Retrieve billing and shipping address of particular customer
|
|
20
|
+
*/
|
|
21
|
+
async list(
|
|
22
|
+
request: operations.GetAddressRequest,
|
|
23
|
+
options?: RequestOptions
|
|
24
|
+
): Promise<operations.GetAddressResponseBody> {
|
|
25
|
+
return unwrapAsync(customersAddressesList(this, request, options));
|
|
26
|
+
}
|
|
27
|
+
|
|
14
28
|
/**
|
|
15
29
|
* Add address
|
|
16
30
|
*
|
package/src/sdk/analytics.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { analyticsTrack } from "../funcs/analyticsTrack.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as components from "../models/components/index.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
@@ -15,10 +15,10 @@ export class Analytics extends ClientSDK {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* Track event
|
|
17
17
|
*/
|
|
18
|
-
async
|
|
18
|
+
async track(
|
|
19
19
|
request?: components.AnalyticsEvent | undefined,
|
|
20
20
|
options?: RequestOptions
|
|
21
21
|
): Promise<operations.GetAnalyticsTrackResponseBody> {
|
|
22
|
-
return unwrapAsync(
|
|
22
|
+
return unwrapAsync(analyticsTrack(this, request, options));
|
|
23
23
|
}
|
|
24
24
|
}
|