@rebuy/rebuy-hydrogen 3.0.0-beta.2 → 3.0.0-beta.20
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/README.md +988 -16
- package/dist/assets/Close.d.ts +2 -0
- package/dist/assets/Close.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/types.d.ts +5 -0
- package/dist/components/AddToCartBtn/types.d.ts.map +1 -1
- package/dist/components/ProductCard/ProductCard.d.ts +1 -1
- package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
- package/dist/components/ProductCard/defaultSettings.d.ts +3 -0
- package/dist/components/ProductCard/defaultSettings.d.ts.map +1 -0
- package/dist/components/ProductCard/index.d.ts +1 -0
- package/dist/components/ProductCard/index.d.ts.map +1 -1
- package/dist/components/ProductCard/types.d.ts +46 -0
- package/dist/components/ProductCard/types.d.ts.map +1 -1
- package/dist/components/ProductCarousel/ProductCarousel.d.ts +3 -0
- package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -0
- package/dist/components/ProductCarousel/index.d.ts +2 -0
- package/dist/components/ProductCarousel/index.d.ts.map +1 -0
- package/dist/components/ProductCarousel/types.d.ts +18 -0
- package/dist/components/ProductCarousel/types.d.ts.map +1 -0
- package/dist/components/ProductPrice/ProductPrice.d.ts +2 -4
- package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -1
- package/dist/components/ProductPrice/types.d.ts +23 -0
- package/dist/components/ProductPrice/types.d.ts.map +1 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts +3 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -0
- package/dist/components/QuantityInput/index.d.ts +3 -0
- package/dist/components/QuantityInput/index.d.ts.map +1 -0
- package/dist/components/QuantityInput/types.d.ts +7 -0
- package/dist/components/QuantityInput/types.d.ts.map +1 -0
- package/dist/components/RebuyLink/RebuyLink.d.ts +3 -0
- package/dist/components/RebuyLink/RebuyLink.d.ts.map +1 -0
- package/dist/components/RebuyLink/index.d.ts +2 -0
- package/dist/components/RebuyLink/index.d.ts.map +1 -0
- package/dist/components/RebuyLink/types.d.ts +10 -0
- package/dist/components/RebuyLink/types.d.ts.map +1 -0
- package/dist/components/Timer/Timer.d.ts +3 -0
- package/dist/components/Timer/Timer.d.ts.map +1 -0
- package/dist/components/Timer/index.d.ts +3 -0
- package/dist/components/Timer/index.d.ts.map +1 -0
- package/dist/components/Timer/types.d.ts +20 -0
- package/dist/components/Timer/types.d.ts.map +1 -0
- package/dist/components/Title/Title.d.ts +1 -1
- package/dist/components/Title/Title.d.ts.map +1 -1
- package/dist/components/Title/types.d.ts +1 -0
- package/dist/components/Title/types.d.ts.map +1 -1
- package/dist/components/VariantSelect/VariantSelect.d.ts +1 -1
- package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -1
- package/dist/components/VariantSelect/types.d.ts +2 -0
- package/dist/components/VariantSelect/types.d.ts.map +1 -1
- package/dist/constants/api.d.ts +2 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/debug.d.ts +28 -0
- package/dist/constants/debug.d.ts.map +1 -0
- package/dist/context/RebuyConfigContext.d.ts +23 -0
- package/dist/context/RebuyConfigContext.d.ts.map +1 -0
- package/dist/context/RebuyWidgetContext.d.ts +7 -0
- package/dist/context/RebuyWidgetContext.d.ts.map +1 -0
- package/dist/hooks/titleLevel.d.ts.map +1 -1
- package/dist/hooks/useBFCacheReset.d.ts +7 -0
- package/dist/hooks/useBFCacheReset.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +5 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/usePopupTrigger.d.ts +3 -0
- package/dist/hooks/usePopupTrigger.d.ts.map +1 -0
- package/dist/index.css +2680 -99
- package/dist/index.css.map +4 -4
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9756 -1461
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +9768 -1482
- package/dist/index.mjs.map +4 -4
- package/dist/providers/RebuyHydrogenContextProvider.d.ts +1 -1
- package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -1
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +6 -1
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -1
- package/dist/providers/types.d.ts +29 -14
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/queries/cart.queries.d.ts +4 -4
- package/dist/queries/cart.queries.d.ts.map +1 -1
- package/dist/smart-cart/RebuySmartCart.d.ts +10 -0
- package/dist/smart-cart/RebuySmartCart.d.ts.map +1 -0
- package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts +10 -0
- package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts.map +1 -0
- package/dist/smart-cart/components/CartItem/CartItem.d.ts +7 -0
- package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -0
- package/dist/smart-cart/components/CartItemList/CartItemList.d.ts +10 -0
- package/dist/smart-cart/components/CartItemList/CartItemList.d.ts.map +1 -0
- package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts +10 -0
- package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts.map +1 -0
- package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts +11 -0
- package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts.map +1 -0
- package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts +7 -0
- package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts.map +1 -0
- package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts +10 -0
- package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts.map +1 -0
- package/dist/smart-cart/components/CrossSell/CrossSell.d.ts +10 -0
- package/dist/smart-cart/components/CrossSell/CrossSell.d.ts.map +1 -0
- package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts +21 -0
- package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts.map +1 -0
- package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts +13 -0
- package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts.map +1 -0
- package/dist/smart-cart/components/DebugPanel/index.d.ts +11 -0
- package/dist/smart-cart/components/DebugPanel/index.d.ts.map +1 -0
- package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts +10 -0
- package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts.map +1 -0
- package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts +3 -0
- package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts.map +1 -0
- package/dist/smart-cart/components/LoginButton/LoginButton.d.ts +3 -0
- package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -0
- package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts +8 -0
- package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts.map +1 -0
- package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts +20 -0
- package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts.map +1 -0
- package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts +8 -0
- package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts +5 -0
- package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts +21 -0
- package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts +11 -0
- package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts +173 -0
- package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/types.d.ts +261 -0
- package/dist/smart-cart/components/TieredProgressBar/types.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts +13 -0
- package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts +9 -0
- package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts +8 -0
- package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts.map +1 -0
- package/dist/smart-cart/components/componentRegistry.d.ts +3 -0
- package/dist/smart-cart/components/componentRegistry.d.ts.map +1 -0
- package/dist/smart-cart/constants.d.ts +58 -0
- package/dist/smart-cart/constants.d.ts.map +1 -0
- package/dist/smart-cart/context/SmartCartContext.d.ts +62 -0
- package/dist/smart-cart/context/SmartCartContext.d.ts.map +1 -0
- package/dist/smart-cart/context/StorefrontCartContext.d.ts +32 -0
- package/dist/smart-cart/context/StorefrontCartContext.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useCartItemFeatures.d.ts +84 -0
- package/dist/smart-cart/hooks/useCartItemFeatures.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useDiscountManager.d.ts +28 -0
- package/dist/smart-cart/hooks/useDiscountManager.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useGeolocation.d.ts +12 -0
- package/dist/smart-cart/hooks/useGeolocation.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useIsScrolled.d.ts +14 -0
- package/dist/smart-cart/hooks/useIsScrolled.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useSmartCartApps.d.ts +17 -0
- package/dist/smart-cart/hooks/useSmartCartApps.d.ts.map +1 -0
- package/dist/smart-cart/store/tieredProgressBarStore.d.ts +76 -0
- package/dist/smart-cart/store/tieredProgressBarStore.d.ts.map +1 -0
- package/dist/smart-cart/types/rebuy-storefront-cart.d.ts +142 -0
- package/dist/smart-cart/types/rebuy-storefront-cart.d.ts.map +1 -0
- package/dist/smart-cart/types/rebuy.d.ts +15 -0
- package/dist/smart-cart/types/rebuy.d.ts.map +1 -0
- package/dist/smart-cart/types/shop.d.ts +26 -0
- package/dist/smart-cart/types/shop.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart-app.d.ts +103 -0
- package/dist/smart-cart/types/smart-cart-app.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart-component.d.ts +1350 -0
- package/dist/smart-cart/types/smart-cart-component.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart.d.ts +82 -0
- package/dist/smart-cart/types/smart-cart.d.ts.map +1 -0
- package/dist/smart-cart/utils/cartItemUtils.d.ts +292 -0
- package/dist/smart-cart/utils/cartItemUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/debugLog.d.ts +77 -0
- package/dist/smart-cart/utils/debugLog.d.ts.map +1 -0
- package/dist/smart-cart/utils/debugStyles.d.ts +3342 -0
- package/dist/smart-cart/utils/debugStyles.d.ts.map +1 -0
- package/dist/smart-cart/utils/executeScriptsInContainer.d.ts +14 -0
- package/dist/smart-cart/utils/executeScriptsInContainer.d.ts.map +1 -0
- package/dist/smart-cart/utils/imageUtils.d.ts +2 -0
- package/dist/smart-cart/utils/imageUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts +14 -0
- package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts.map +1 -0
- package/dist/smart-cart/utils/moneyUtils.d.ts +24 -0
- package/dist/smart-cart/utils/moneyUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/safeJsonParse.d.ts +2 -0
- package/dist/smart-cart/utils/safeJsonParse.d.ts.map +1 -0
- package/dist/types/common.d.ts +16 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/rebuyCustom.d.ts +133 -17
- package/dist/types/rebuyCustom.d.ts.map +1 -1
- package/dist/types/shopify.d.ts +1 -2
- package/dist/types/shopify.d.ts.map +1 -1
- package/dist/types/widgets.d.ts +20078 -7
- package/dist/types/widgets.d.ts.map +1 -1
- package/dist/utils/convertToRebuyProduct.d.ts.map +1 -1
- package/dist/utils/createContextParameters.d.ts +1 -1
- package/dist/utils/createContextParameters.d.ts.map +1 -1
- package/dist/utils/filterContextUtils.d.ts +3 -0
- package/dist/utils/filterContextUtils.d.ts.map +1 -0
- package/dist/utils/getEncodedAttributes.d.ts.map +1 -1
- package/dist/utils/getRebuyConfig.d.ts +1 -1
- package/dist/utils/getRebuyConfig.d.ts.map +1 -1
- package/dist/utils/nonceManager.d.ts +10 -0
- package/dist/utils/nonceManager.d.ts.map +1 -0
- package/dist/utils/theme.d.ts +20 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts +1 -1
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
- package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -1
- package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts +11 -0
- package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/index.d.ts +3 -0
- package/dist/widgets/RebuyGiftWithPurchase/index.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts +31 -0
- package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/types.d.ts +12 -0
- package/dist/widgets/RebuyGiftWithPurchase/types.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts +35 -0
- package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -1
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
- package/dist/widgets/RebuyProductAddOns/types.d.ts.map +1 -1
- package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -1
- package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts +3 -0
- package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts.map +1 -0
- package/dist/widgets/RebuyProductViewed/index.d.ts +2 -0
- package/dist/widgets/RebuyProductViewed/index.d.ts.map +1 -0
- package/dist/widgets/RebuyProductViewed/types.d.ts +8 -0
- package/dist/widgets/RebuyProductViewed/types.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts +3 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts +2 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts +11 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/RebuyWidget.d.ts +3 -0
- package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts +3 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/index.d.ts +2 -0
- package/dist/widgets/RebuyWidget/index.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/types.d.ts +28 -0
- package/dist/widgets/RebuyWidget/types.d.ts.map +1 -0
- package/dist/zustandStores/productViewed.d.ts +9 -0
- package/dist/zustandStores/productViewed.d.ts.map +1 -0
- package/package.json +57 -41
- package/dist/types/rebuySmartCart.d.ts +0 -184
- package/dist/types/rebuySmartCart.d.ts.map +0 -1
- package/src/components/AddToCartBtn/AddToCartBtn.tsx +0 -45
- package/src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx +0 -43
- package/src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx +0 -35
- package/src/components/AddToCartBtn/index.ts +0 -1
- package/src/components/AddToCartBtn/types.ts +0 -27
- package/src/components/ProductCard/ProductCard.tsx +0 -70
- package/src/components/ProductCard/index.ts +0 -1
- package/src/components/ProductCard/types.ts +0 -10
- package/src/components/ProductPrice/ProductPrice.tsx +0 -49
- package/src/components/ProductPrice/index.ts +0 -1
- package/src/components/Title/Title.tsx +0 -19
- package/src/components/Title/index.ts +0 -1
- package/src/components/Title/types.ts +0 -7
- package/src/components/VariantSelect/VariantSelect.tsx +0 -45
- package/src/components/VariantSelect/index.ts +0 -1
- package/src/components/VariantSelect/types.ts +0 -6
- package/src/context/RebuyContext.tsx +0 -9
- package/src/hooks/titleLevel.tsx +0 -42
- package/src/index.ts +0 -7
- package/src/providers/RebuyHydrogenContextProvider.tsx +0 -112
- package/src/providers/RebuyHydrogenReactContextProvider.tsx +0 -192
- package/src/providers/types.ts +0 -58
- package/src/queries/cart.queries.ts +0 -467
- package/src/types/common.ts +0 -8
- package/src/types/css.d.ts +0 -11
- package/src/types/env.d.ts +0 -12
- package/src/types/rebuy.d.ts +0 -31
- package/src/types/rebuyCustom.ts +0 -263
- package/src/types/rebuySmartCart.ts +0 -188
- package/src/types/shopify.ts +0 -142
- package/src/types/widgets.ts +0 -29
- package/src/utils/convertToRebuyProduct.tsx +0 -319
- package/src/utils/createContextParameters.ts +0 -142
- package/src/utils/getEncodedAttributes.ts +0 -11
- package/src/utils/getRebuyConfig.ts +0 -31
- package/src/widgetContainer/RebuyWidgetContainer.tsx +0 -183
- package/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx +0 -50
- package/src/widgets/RebuyCompleteTheLook/index.ts +0 -1
- package/src/widgets/RebuyCompleteTheLook/types.ts +0 -5
- package/src/widgets/RebuyDynamicBundleProducts/BundleImages.tsx +0 -62
- package/src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx +0 -93
- package/src/widgets/RebuyDynamicBundleProducts/BundleSelection.tsx +0 -65
- package/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.tsx +0 -118
- package/src/widgets/RebuyDynamicBundleProducts/Select.tsx +0 -41
- package/src/widgets/RebuyDynamicBundleProducts/index.ts +0 -1
- package/src/widgets/RebuyDynamicBundleProducts/types.ts +0 -23
- package/src/widgets/RebuyProductAddOns/RebuyProductAddOnCard.tsx +0 -66
- package/src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx +0 -218
- package/src/widgets/RebuyProductAddOns/index.ts +0 -1
- package/src/widgets/RebuyProductAddOns/types.ts +0 -24
- package/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.tsx +0 -50
- package/src/widgets/RebuyProductRecommendations/index.ts +0 -1
- package/src/widgets/RebuyProductRecommendations/types.ts +0 -5
@@ -0,0 +1,1350 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
declare const componentAnchorSchema: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
3
|
+
declare const visibilityStatusSchema: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
4
|
+
declare const baseComponentSchema: z.ZodObject<{
|
5
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
6
|
+
anchor_order: z.ZodNumber;
|
7
|
+
component_id: z.ZodString;
|
8
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
9
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
10
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
11
|
+
version: z.ZodString;
|
12
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
15
|
+
anchor_order: number;
|
16
|
+
component_id: string;
|
17
|
+
custom_template: string | null;
|
18
|
+
use_custom_template: number | boolean;
|
19
|
+
version: string;
|
20
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
21
|
+
previous_templates?: (string | null)[] | undefined;
|
22
|
+
}, {
|
23
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
24
|
+
anchor_order: number;
|
25
|
+
component_id: string;
|
26
|
+
custom_template: string | null;
|
27
|
+
use_custom_template: number | boolean;
|
28
|
+
version: string;
|
29
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
30
|
+
previous_templates?: (string | null)[] | undefined;
|
31
|
+
}>;
|
32
|
+
declare const announcementBarSettingsSchema: z.ZodObject<{
|
33
|
+
messages: z.ZodArray<z.ZodString, "many">;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
messages: string[];
|
36
|
+
}, {
|
37
|
+
messages: string[];
|
38
|
+
}>;
|
39
|
+
declare const cartItemsSettingsSchema: z.ZodNull;
|
40
|
+
declare const cartSubtotalSettingsSchema: z.ZodObject<{
|
41
|
+
discount_summary_count_label: z.ZodString;
|
42
|
+
discount_summary_count_label_plural: z.ZodString;
|
43
|
+
show_discount_summary: z.ZodBoolean;
|
44
|
+
subtotal_plural_text: z.ZodString;
|
45
|
+
subtotal_singular_text: z.ZodString;
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
47
|
+
discount_summary_count_label: string;
|
48
|
+
discount_summary_count_label_plural: string;
|
49
|
+
show_discount_summary: boolean;
|
50
|
+
subtotal_plural_text: string;
|
51
|
+
subtotal_singular_text: string;
|
52
|
+
}, {
|
53
|
+
discount_summary_count_label: string;
|
54
|
+
discount_summary_count_label_plural: string;
|
55
|
+
show_discount_summary: boolean;
|
56
|
+
subtotal_plural_text: string;
|
57
|
+
subtotal_singular_text: string;
|
58
|
+
}>;
|
59
|
+
declare const checkoutSettingsSchema: z.ZodObject<{
|
60
|
+
accelerated_checkout: z.ZodObject<{
|
61
|
+
enabled: z.ZodBoolean;
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
63
|
+
enabled: boolean;
|
64
|
+
}, {
|
65
|
+
enabled: boolean;
|
66
|
+
}>;
|
67
|
+
checkout_button: z.ZodObject<{
|
68
|
+
enabled: z.ZodBoolean;
|
69
|
+
routing: z.ZodString;
|
70
|
+
routing_link: z.ZodString;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
enabled: boolean;
|
73
|
+
routing: string;
|
74
|
+
routing_link: string;
|
75
|
+
}, {
|
76
|
+
enabled: boolean;
|
77
|
+
routing: string;
|
78
|
+
routing_link: string;
|
79
|
+
}>;
|
80
|
+
continue_shopping_button: z.ZodObject<{
|
81
|
+
enabled: z.ZodBoolean;
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
83
|
+
enabled: boolean;
|
84
|
+
}, {
|
85
|
+
enabled: boolean;
|
86
|
+
}>;
|
87
|
+
installments: z.ZodObject<{
|
88
|
+
enabled: z.ZodBoolean;
|
89
|
+
payment_count: z.ZodString;
|
90
|
+
provider: z.ZodString;
|
91
|
+
terms_url: z.ZodString;
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
93
|
+
enabled: boolean;
|
94
|
+
payment_count: string;
|
95
|
+
provider: string;
|
96
|
+
terms_url: string;
|
97
|
+
}, {
|
98
|
+
enabled: boolean;
|
99
|
+
payment_count: string;
|
100
|
+
provider: string;
|
101
|
+
terms_url: string;
|
102
|
+
}>;
|
103
|
+
language: z.ZodObject<{
|
104
|
+
checking_out_label: z.ZodString;
|
105
|
+
checkout_label: z.ZodString;
|
106
|
+
continue_shopping_label: z.ZodString;
|
107
|
+
terms_and_conditions_label: z.ZodString;
|
108
|
+
view_cart_label: z.ZodString;
|
109
|
+
view_cart_working_label: z.ZodString;
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
111
|
+
checking_out_label: string;
|
112
|
+
checkout_label: string;
|
113
|
+
continue_shopping_label: string;
|
114
|
+
terms_and_conditions_label: string;
|
115
|
+
view_cart_label: string;
|
116
|
+
view_cart_working_label: string;
|
117
|
+
}, {
|
118
|
+
checking_out_label: string;
|
119
|
+
checkout_label: string;
|
120
|
+
continue_shopping_label: string;
|
121
|
+
terms_and_conditions_label: string;
|
122
|
+
view_cart_label: string;
|
123
|
+
view_cart_working_label: string;
|
124
|
+
}>;
|
125
|
+
pre_purchase: z.ZodObject<{
|
126
|
+
enabled: z.ZodBoolean;
|
127
|
+
widget_id: z.ZodString;
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
129
|
+
enabled: boolean;
|
130
|
+
widget_id: string;
|
131
|
+
}, {
|
132
|
+
enabled: boolean;
|
133
|
+
widget_id: string;
|
134
|
+
}>;
|
135
|
+
shop_pay: z.ZodObject<{
|
136
|
+
enabled: z.ZodBoolean;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
enabled: boolean;
|
139
|
+
}, {
|
140
|
+
enabled: boolean;
|
141
|
+
}>;
|
142
|
+
terms: z.ZodObject<{
|
143
|
+
enabled: z.ZodBoolean;
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
145
|
+
enabled: boolean;
|
146
|
+
}, {
|
147
|
+
enabled: boolean;
|
148
|
+
}>;
|
149
|
+
view_cart_button: z.ZodObject<{
|
150
|
+
enabled: z.ZodBoolean;
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
152
|
+
enabled: boolean;
|
153
|
+
}, {
|
154
|
+
enabled: boolean;
|
155
|
+
}>;
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
157
|
+
accelerated_checkout: {
|
158
|
+
enabled: boolean;
|
159
|
+
};
|
160
|
+
checkout_button: {
|
161
|
+
enabled: boolean;
|
162
|
+
routing: string;
|
163
|
+
routing_link: string;
|
164
|
+
};
|
165
|
+
continue_shopping_button: {
|
166
|
+
enabled: boolean;
|
167
|
+
};
|
168
|
+
installments: {
|
169
|
+
enabled: boolean;
|
170
|
+
payment_count: string;
|
171
|
+
provider: string;
|
172
|
+
terms_url: string;
|
173
|
+
};
|
174
|
+
language: {
|
175
|
+
checking_out_label: string;
|
176
|
+
checkout_label: string;
|
177
|
+
continue_shopping_label: string;
|
178
|
+
terms_and_conditions_label: string;
|
179
|
+
view_cart_label: string;
|
180
|
+
view_cart_working_label: string;
|
181
|
+
};
|
182
|
+
pre_purchase: {
|
183
|
+
enabled: boolean;
|
184
|
+
widget_id: string;
|
185
|
+
};
|
186
|
+
shop_pay: {
|
187
|
+
enabled: boolean;
|
188
|
+
};
|
189
|
+
terms: {
|
190
|
+
enabled: boolean;
|
191
|
+
};
|
192
|
+
view_cart_button: {
|
193
|
+
enabled: boolean;
|
194
|
+
};
|
195
|
+
}, {
|
196
|
+
accelerated_checkout: {
|
197
|
+
enabled: boolean;
|
198
|
+
};
|
199
|
+
checkout_button: {
|
200
|
+
enabled: boolean;
|
201
|
+
routing: string;
|
202
|
+
routing_link: string;
|
203
|
+
};
|
204
|
+
continue_shopping_button: {
|
205
|
+
enabled: boolean;
|
206
|
+
};
|
207
|
+
installments: {
|
208
|
+
enabled: boolean;
|
209
|
+
payment_count: string;
|
210
|
+
provider: string;
|
211
|
+
terms_url: string;
|
212
|
+
};
|
213
|
+
language: {
|
214
|
+
checking_out_label: string;
|
215
|
+
checkout_label: string;
|
216
|
+
continue_shopping_label: string;
|
217
|
+
terms_and_conditions_label: string;
|
218
|
+
view_cart_label: string;
|
219
|
+
view_cart_working_label: string;
|
220
|
+
};
|
221
|
+
pre_purchase: {
|
222
|
+
enabled: boolean;
|
223
|
+
widget_id: string;
|
224
|
+
};
|
225
|
+
shop_pay: {
|
226
|
+
enabled: boolean;
|
227
|
+
};
|
228
|
+
terms: {
|
229
|
+
enabled: boolean;
|
230
|
+
};
|
231
|
+
view_cart_button: {
|
232
|
+
enabled: boolean;
|
233
|
+
};
|
234
|
+
}>;
|
235
|
+
declare const crossSellWidgetSettingsSchema: z.ZodObject<{
|
236
|
+
widget_id: z.ZodNullable<z.ZodString>;
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
238
|
+
widget_id: string | null;
|
239
|
+
}, {
|
240
|
+
widget_id: string | null;
|
241
|
+
}>;
|
242
|
+
declare const customCodeBlockSettingsSchema: z.ZodObject<{
|
243
|
+
html_code: z.ZodNullable<z.ZodString>;
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
245
|
+
html_code: string | null;
|
246
|
+
}, {
|
247
|
+
html_code: string | null;
|
248
|
+
}>;
|
249
|
+
declare const discountCodeSettingsSchema: z.ZodObject<{
|
250
|
+
language: z.ZodObject<{
|
251
|
+
discount_button_label: z.ZodString;
|
252
|
+
discount_code_label: z.ZodString;
|
253
|
+
discount_invalid_message: z.ZodString;
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
255
|
+
discount_button_label: string;
|
256
|
+
discount_code_label: string;
|
257
|
+
discount_invalid_message: string;
|
258
|
+
}, {
|
259
|
+
discount_button_label: string;
|
260
|
+
discount_code_label: string;
|
261
|
+
discount_invalid_message: string;
|
262
|
+
}>;
|
263
|
+
use_message_only: z.ZodBoolean;
|
264
|
+
use_storefront_api: z.ZodBoolean;
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
266
|
+
language: {
|
267
|
+
discount_button_label: string;
|
268
|
+
discount_code_label: string;
|
269
|
+
discount_invalid_message: string;
|
270
|
+
};
|
271
|
+
use_message_only: boolean;
|
272
|
+
use_storefront_api: boolean;
|
273
|
+
}, {
|
274
|
+
language: {
|
275
|
+
discount_button_label: string;
|
276
|
+
discount_code_label: string;
|
277
|
+
discount_invalid_message: string;
|
278
|
+
};
|
279
|
+
use_message_only: boolean;
|
280
|
+
use_storefront_api: boolean;
|
281
|
+
}>;
|
282
|
+
declare const notesSettingsSchema: z.ZodObject<{
|
283
|
+
language: z.ZodObject<{
|
284
|
+
notes_label: z.ZodString;
|
285
|
+
notes_placeholder: z.ZodString;
|
286
|
+
notes_remaining_characters: z.ZodString;
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
288
|
+
notes_label: string;
|
289
|
+
notes_placeholder: string;
|
290
|
+
notes_remaining_characters: string;
|
291
|
+
}, {
|
292
|
+
notes_label: string;
|
293
|
+
notes_placeholder: string;
|
294
|
+
notes_remaining_characters: string;
|
295
|
+
}>;
|
296
|
+
limit_characters: z.ZodBoolean;
|
297
|
+
max_length: z.ZodNumber;
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
299
|
+
language: {
|
300
|
+
notes_label: string;
|
301
|
+
notes_placeholder: string;
|
302
|
+
notes_remaining_characters: string;
|
303
|
+
};
|
304
|
+
limit_characters: boolean;
|
305
|
+
max_length: number;
|
306
|
+
}, {
|
307
|
+
language: {
|
308
|
+
notes_label: string;
|
309
|
+
notes_placeholder: string;
|
310
|
+
notes_remaining_characters: string;
|
311
|
+
};
|
312
|
+
limit_characters: boolean;
|
313
|
+
max_length: number;
|
314
|
+
}>;
|
315
|
+
declare const tieredProgressBarSettingsSchema: z.ZodObject<{
|
316
|
+
bars: z.ZodArray<z.ZodAny, "many">;
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
318
|
+
bars: any[];
|
319
|
+
}, {
|
320
|
+
bars: any[];
|
321
|
+
}>;
|
322
|
+
declare const titleBarSettingsSchema: z.ZodObject<{
|
323
|
+
heading_tag: z.ZodString;
|
324
|
+
screen_reader_only: z.ZodBoolean;
|
325
|
+
title: z.ZodString;
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
327
|
+
heading_tag: string;
|
328
|
+
screen_reader_only: boolean;
|
329
|
+
title: string;
|
330
|
+
}, {
|
331
|
+
heading_tag: string;
|
332
|
+
screen_reader_only: boolean;
|
333
|
+
title: string;
|
334
|
+
}>;
|
335
|
+
declare const loginComponentSettingsSchema: z.ZodObject<{
|
336
|
+
language: z.ZodObject<{
|
337
|
+
title: z.ZodString;
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
339
|
+
title: string;
|
340
|
+
}, {
|
341
|
+
title: string;
|
342
|
+
}>;
|
343
|
+
url: z.ZodString;
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
345
|
+
url: string;
|
346
|
+
language: {
|
347
|
+
title: string;
|
348
|
+
};
|
349
|
+
}, {
|
350
|
+
url: string;
|
351
|
+
language: {
|
352
|
+
title: string;
|
353
|
+
};
|
354
|
+
}>;
|
355
|
+
declare const smartCartAppSettingsSchema: z.ZodObject<{
|
356
|
+
app_id: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
358
|
+
app_id: string | number | null;
|
359
|
+
}, {
|
360
|
+
app_id: string | number | null;
|
361
|
+
}>;
|
362
|
+
declare const smartCartComponentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
363
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
364
|
+
anchor_order: z.ZodNumber;
|
365
|
+
component_id: z.ZodString;
|
366
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
367
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
368
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
369
|
+
version: z.ZodString;
|
370
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
371
|
+
} & {
|
372
|
+
settings: z.ZodObject<{
|
373
|
+
heading_tag: z.ZodString;
|
374
|
+
screen_reader_only: z.ZodBoolean;
|
375
|
+
title: z.ZodString;
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
377
|
+
heading_tag: string;
|
378
|
+
screen_reader_only: boolean;
|
379
|
+
title: string;
|
380
|
+
}, {
|
381
|
+
heading_tag: string;
|
382
|
+
screen_reader_only: boolean;
|
383
|
+
title: string;
|
384
|
+
}>;
|
385
|
+
title: z.ZodString;
|
386
|
+
type: z.ZodLiteral<"title_bar">;
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
388
|
+
type: "title_bar";
|
389
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
390
|
+
anchor_order: number;
|
391
|
+
component_id: string;
|
392
|
+
custom_template: string | null;
|
393
|
+
use_custom_template: number | boolean;
|
394
|
+
version: string;
|
395
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
396
|
+
title: string;
|
397
|
+
settings: {
|
398
|
+
heading_tag: string;
|
399
|
+
screen_reader_only: boolean;
|
400
|
+
title: string;
|
401
|
+
};
|
402
|
+
previous_templates?: (string | null)[] | undefined;
|
403
|
+
}, {
|
404
|
+
type: "title_bar";
|
405
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
406
|
+
anchor_order: number;
|
407
|
+
component_id: string;
|
408
|
+
custom_template: string | null;
|
409
|
+
use_custom_template: number | boolean;
|
410
|
+
version: string;
|
411
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
412
|
+
title: string;
|
413
|
+
settings: {
|
414
|
+
heading_tag: string;
|
415
|
+
screen_reader_only: boolean;
|
416
|
+
title: string;
|
417
|
+
};
|
418
|
+
previous_templates?: (string | null)[] | undefined;
|
419
|
+
}>, z.ZodObject<{
|
420
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
421
|
+
anchor_order: z.ZodNumber;
|
422
|
+
component_id: z.ZodString;
|
423
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
424
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
425
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
426
|
+
version: z.ZodString;
|
427
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
428
|
+
} & {
|
429
|
+
settings: z.ZodObject<{
|
430
|
+
messages: z.ZodArray<z.ZodString, "many">;
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
432
|
+
messages: string[];
|
433
|
+
}, {
|
434
|
+
messages: string[];
|
435
|
+
}>;
|
436
|
+
title: z.ZodString;
|
437
|
+
type: z.ZodLiteral<"announcement_bar">;
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
439
|
+
type: "announcement_bar";
|
440
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
441
|
+
anchor_order: number;
|
442
|
+
component_id: string;
|
443
|
+
custom_template: string | null;
|
444
|
+
use_custom_template: number | boolean;
|
445
|
+
version: string;
|
446
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
447
|
+
title: string;
|
448
|
+
settings: {
|
449
|
+
messages: string[];
|
450
|
+
};
|
451
|
+
previous_templates?: (string | null)[] | undefined;
|
452
|
+
}, {
|
453
|
+
type: "announcement_bar";
|
454
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
455
|
+
anchor_order: number;
|
456
|
+
component_id: string;
|
457
|
+
custom_template: string | null;
|
458
|
+
use_custom_template: number | boolean;
|
459
|
+
version: string;
|
460
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
461
|
+
title: string;
|
462
|
+
settings: {
|
463
|
+
messages: string[];
|
464
|
+
};
|
465
|
+
previous_templates?: (string | null)[] | undefined;
|
466
|
+
}>, z.ZodObject<{
|
467
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
468
|
+
anchor_order: z.ZodNumber;
|
469
|
+
component_id: z.ZodString;
|
470
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
471
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
472
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
473
|
+
version: z.ZodString;
|
474
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
475
|
+
} & {
|
476
|
+
settings: z.ZodNull;
|
477
|
+
title: z.ZodString;
|
478
|
+
type: z.ZodLiteral<"cart_items">;
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
480
|
+
type: "cart_items";
|
481
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
482
|
+
anchor_order: number;
|
483
|
+
component_id: string;
|
484
|
+
custom_template: string | null;
|
485
|
+
use_custom_template: number | boolean;
|
486
|
+
version: string;
|
487
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
488
|
+
title: string;
|
489
|
+
settings: null;
|
490
|
+
previous_templates?: (string | null)[] | undefined;
|
491
|
+
}, {
|
492
|
+
type: "cart_items";
|
493
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
494
|
+
anchor_order: number;
|
495
|
+
component_id: string;
|
496
|
+
custom_template: string | null;
|
497
|
+
use_custom_template: number | boolean;
|
498
|
+
version: string;
|
499
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
500
|
+
title: string;
|
501
|
+
settings: null;
|
502
|
+
previous_templates?: (string | null)[] | undefined;
|
503
|
+
}>, z.ZodObject<{
|
504
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
505
|
+
anchor_order: z.ZodNumber;
|
506
|
+
component_id: z.ZodString;
|
507
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
508
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
509
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
510
|
+
version: z.ZodString;
|
511
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
512
|
+
} & {
|
513
|
+
settings: z.ZodObject<{
|
514
|
+
discount_summary_count_label: z.ZodString;
|
515
|
+
discount_summary_count_label_plural: z.ZodString;
|
516
|
+
show_discount_summary: z.ZodBoolean;
|
517
|
+
subtotal_plural_text: z.ZodString;
|
518
|
+
subtotal_singular_text: z.ZodString;
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
520
|
+
discount_summary_count_label: string;
|
521
|
+
discount_summary_count_label_plural: string;
|
522
|
+
show_discount_summary: boolean;
|
523
|
+
subtotal_plural_text: string;
|
524
|
+
subtotal_singular_text: string;
|
525
|
+
}, {
|
526
|
+
discount_summary_count_label: string;
|
527
|
+
discount_summary_count_label_plural: string;
|
528
|
+
show_discount_summary: boolean;
|
529
|
+
subtotal_plural_text: string;
|
530
|
+
subtotal_singular_text: string;
|
531
|
+
}>;
|
532
|
+
title: z.ZodString;
|
533
|
+
type: z.ZodLiteral<"cart_subtotal">;
|
534
|
+
}, "strip", z.ZodTypeAny, {
|
535
|
+
type: "cart_subtotal";
|
536
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
537
|
+
anchor_order: number;
|
538
|
+
component_id: string;
|
539
|
+
custom_template: string | null;
|
540
|
+
use_custom_template: number | boolean;
|
541
|
+
version: string;
|
542
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
543
|
+
title: string;
|
544
|
+
settings: {
|
545
|
+
discount_summary_count_label: string;
|
546
|
+
discount_summary_count_label_plural: string;
|
547
|
+
show_discount_summary: boolean;
|
548
|
+
subtotal_plural_text: string;
|
549
|
+
subtotal_singular_text: string;
|
550
|
+
};
|
551
|
+
previous_templates?: (string | null)[] | undefined;
|
552
|
+
}, {
|
553
|
+
type: "cart_subtotal";
|
554
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
555
|
+
anchor_order: number;
|
556
|
+
component_id: string;
|
557
|
+
custom_template: string | null;
|
558
|
+
use_custom_template: number | boolean;
|
559
|
+
version: string;
|
560
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
561
|
+
title: string;
|
562
|
+
settings: {
|
563
|
+
discount_summary_count_label: string;
|
564
|
+
discount_summary_count_label_plural: string;
|
565
|
+
show_discount_summary: boolean;
|
566
|
+
subtotal_plural_text: string;
|
567
|
+
subtotal_singular_text: string;
|
568
|
+
};
|
569
|
+
previous_templates?: (string | null)[] | undefined;
|
570
|
+
}>, z.ZodObject<{
|
571
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
572
|
+
anchor_order: z.ZodNumber;
|
573
|
+
component_id: z.ZodString;
|
574
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
575
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
576
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
577
|
+
version: z.ZodString;
|
578
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
579
|
+
} & {
|
580
|
+
settings: z.ZodObject<{
|
581
|
+
accelerated_checkout: z.ZodObject<{
|
582
|
+
enabled: z.ZodBoolean;
|
583
|
+
}, "strip", z.ZodTypeAny, {
|
584
|
+
enabled: boolean;
|
585
|
+
}, {
|
586
|
+
enabled: boolean;
|
587
|
+
}>;
|
588
|
+
checkout_button: z.ZodObject<{
|
589
|
+
enabled: z.ZodBoolean;
|
590
|
+
routing: z.ZodString;
|
591
|
+
routing_link: z.ZodString;
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
593
|
+
enabled: boolean;
|
594
|
+
routing: string;
|
595
|
+
routing_link: string;
|
596
|
+
}, {
|
597
|
+
enabled: boolean;
|
598
|
+
routing: string;
|
599
|
+
routing_link: string;
|
600
|
+
}>;
|
601
|
+
continue_shopping_button: z.ZodObject<{
|
602
|
+
enabled: z.ZodBoolean;
|
603
|
+
}, "strip", z.ZodTypeAny, {
|
604
|
+
enabled: boolean;
|
605
|
+
}, {
|
606
|
+
enabled: boolean;
|
607
|
+
}>;
|
608
|
+
installments: z.ZodObject<{
|
609
|
+
enabled: z.ZodBoolean;
|
610
|
+
payment_count: z.ZodString;
|
611
|
+
provider: z.ZodString;
|
612
|
+
terms_url: z.ZodString;
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
614
|
+
enabled: boolean;
|
615
|
+
payment_count: string;
|
616
|
+
provider: string;
|
617
|
+
terms_url: string;
|
618
|
+
}, {
|
619
|
+
enabled: boolean;
|
620
|
+
payment_count: string;
|
621
|
+
provider: string;
|
622
|
+
terms_url: string;
|
623
|
+
}>;
|
624
|
+
language: z.ZodObject<{
|
625
|
+
checking_out_label: z.ZodString;
|
626
|
+
checkout_label: z.ZodString;
|
627
|
+
continue_shopping_label: z.ZodString;
|
628
|
+
terms_and_conditions_label: z.ZodString;
|
629
|
+
view_cart_label: z.ZodString;
|
630
|
+
view_cart_working_label: z.ZodString;
|
631
|
+
}, "strip", z.ZodTypeAny, {
|
632
|
+
checking_out_label: string;
|
633
|
+
checkout_label: string;
|
634
|
+
continue_shopping_label: string;
|
635
|
+
terms_and_conditions_label: string;
|
636
|
+
view_cart_label: string;
|
637
|
+
view_cart_working_label: string;
|
638
|
+
}, {
|
639
|
+
checking_out_label: string;
|
640
|
+
checkout_label: string;
|
641
|
+
continue_shopping_label: string;
|
642
|
+
terms_and_conditions_label: string;
|
643
|
+
view_cart_label: string;
|
644
|
+
view_cart_working_label: string;
|
645
|
+
}>;
|
646
|
+
pre_purchase: z.ZodObject<{
|
647
|
+
enabled: z.ZodBoolean;
|
648
|
+
widget_id: z.ZodString;
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
650
|
+
enabled: boolean;
|
651
|
+
widget_id: string;
|
652
|
+
}, {
|
653
|
+
enabled: boolean;
|
654
|
+
widget_id: string;
|
655
|
+
}>;
|
656
|
+
shop_pay: z.ZodObject<{
|
657
|
+
enabled: z.ZodBoolean;
|
658
|
+
}, "strip", z.ZodTypeAny, {
|
659
|
+
enabled: boolean;
|
660
|
+
}, {
|
661
|
+
enabled: boolean;
|
662
|
+
}>;
|
663
|
+
terms: z.ZodObject<{
|
664
|
+
enabled: z.ZodBoolean;
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
666
|
+
enabled: boolean;
|
667
|
+
}, {
|
668
|
+
enabled: boolean;
|
669
|
+
}>;
|
670
|
+
view_cart_button: z.ZodObject<{
|
671
|
+
enabled: z.ZodBoolean;
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
673
|
+
enabled: boolean;
|
674
|
+
}, {
|
675
|
+
enabled: boolean;
|
676
|
+
}>;
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
678
|
+
accelerated_checkout: {
|
679
|
+
enabled: boolean;
|
680
|
+
};
|
681
|
+
checkout_button: {
|
682
|
+
enabled: boolean;
|
683
|
+
routing: string;
|
684
|
+
routing_link: string;
|
685
|
+
};
|
686
|
+
continue_shopping_button: {
|
687
|
+
enabled: boolean;
|
688
|
+
};
|
689
|
+
installments: {
|
690
|
+
enabled: boolean;
|
691
|
+
payment_count: string;
|
692
|
+
provider: string;
|
693
|
+
terms_url: string;
|
694
|
+
};
|
695
|
+
language: {
|
696
|
+
checking_out_label: string;
|
697
|
+
checkout_label: string;
|
698
|
+
continue_shopping_label: string;
|
699
|
+
terms_and_conditions_label: string;
|
700
|
+
view_cart_label: string;
|
701
|
+
view_cart_working_label: string;
|
702
|
+
};
|
703
|
+
pre_purchase: {
|
704
|
+
enabled: boolean;
|
705
|
+
widget_id: string;
|
706
|
+
};
|
707
|
+
shop_pay: {
|
708
|
+
enabled: boolean;
|
709
|
+
};
|
710
|
+
terms: {
|
711
|
+
enabled: boolean;
|
712
|
+
};
|
713
|
+
view_cart_button: {
|
714
|
+
enabled: boolean;
|
715
|
+
};
|
716
|
+
}, {
|
717
|
+
accelerated_checkout: {
|
718
|
+
enabled: boolean;
|
719
|
+
};
|
720
|
+
checkout_button: {
|
721
|
+
enabled: boolean;
|
722
|
+
routing: string;
|
723
|
+
routing_link: string;
|
724
|
+
};
|
725
|
+
continue_shopping_button: {
|
726
|
+
enabled: boolean;
|
727
|
+
};
|
728
|
+
installments: {
|
729
|
+
enabled: boolean;
|
730
|
+
payment_count: string;
|
731
|
+
provider: string;
|
732
|
+
terms_url: string;
|
733
|
+
};
|
734
|
+
language: {
|
735
|
+
checking_out_label: string;
|
736
|
+
checkout_label: string;
|
737
|
+
continue_shopping_label: string;
|
738
|
+
terms_and_conditions_label: string;
|
739
|
+
view_cart_label: string;
|
740
|
+
view_cart_working_label: string;
|
741
|
+
};
|
742
|
+
pre_purchase: {
|
743
|
+
enabled: boolean;
|
744
|
+
widget_id: string;
|
745
|
+
};
|
746
|
+
shop_pay: {
|
747
|
+
enabled: boolean;
|
748
|
+
};
|
749
|
+
terms: {
|
750
|
+
enabled: boolean;
|
751
|
+
};
|
752
|
+
view_cart_button: {
|
753
|
+
enabled: boolean;
|
754
|
+
};
|
755
|
+
}>;
|
756
|
+
title: z.ZodString;
|
757
|
+
type: z.ZodLiteral<"checkout">;
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
759
|
+
type: "checkout";
|
760
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
761
|
+
anchor_order: number;
|
762
|
+
component_id: string;
|
763
|
+
custom_template: string | null;
|
764
|
+
use_custom_template: number | boolean;
|
765
|
+
version: string;
|
766
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
767
|
+
title: string;
|
768
|
+
settings: {
|
769
|
+
accelerated_checkout: {
|
770
|
+
enabled: boolean;
|
771
|
+
};
|
772
|
+
checkout_button: {
|
773
|
+
enabled: boolean;
|
774
|
+
routing: string;
|
775
|
+
routing_link: string;
|
776
|
+
};
|
777
|
+
continue_shopping_button: {
|
778
|
+
enabled: boolean;
|
779
|
+
};
|
780
|
+
installments: {
|
781
|
+
enabled: boolean;
|
782
|
+
payment_count: string;
|
783
|
+
provider: string;
|
784
|
+
terms_url: string;
|
785
|
+
};
|
786
|
+
language: {
|
787
|
+
checking_out_label: string;
|
788
|
+
checkout_label: string;
|
789
|
+
continue_shopping_label: string;
|
790
|
+
terms_and_conditions_label: string;
|
791
|
+
view_cart_label: string;
|
792
|
+
view_cart_working_label: string;
|
793
|
+
};
|
794
|
+
pre_purchase: {
|
795
|
+
enabled: boolean;
|
796
|
+
widget_id: string;
|
797
|
+
};
|
798
|
+
shop_pay: {
|
799
|
+
enabled: boolean;
|
800
|
+
};
|
801
|
+
terms: {
|
802
|
+
enabled: boolean;
|
803
|
+
};
|
804
|
+
view_cart_button: {
|
805
|
+
enabled: boolean;
|
806
|
+
};
|
807
|
+
};
|
808
|
+
previous_templates?: (string | null)[] | undefined;
|
809
|
+
}, {
|
810
|
+
type: "checkout";
|
811
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
812
|
+
anchor_order: number;
|
813
|
+
component_id: string;
|
814
|
+
custom_template: string | null;
|
815
|
+
use_custom_template: number | boolean;
|
816
|
+
version: string;
|
817
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
818
|
+
title: string;
|
819
|
+
settings: {
|
820
|
+
accelerated_checkout: {
|
821
|
+
enabled: boolean;
|
822
|
+
};
|
823
|
+
checkout_button: {
|
824
|
+
enabled: boolean;
|
825
|
+
routing: string;
|
826
|
+
routing_link: string;
|
827
|
+
};
|
828
|
+
continue_shopping_button: {
|
829
|
+
enabled: boolean;
|
830
|
+
};
|
831
|
+
installments: {
|
832
|
+
enabled: boolean;
|
833
|
+
payment_count: string;
|
834
|
+
provider: string;
|
835
|
+
terms_url: string;
|
836
|
+
};
|
837
|
+
language: {
|
838
|
+
checking_out_label: string;
|
839
|
+
checkout_label: string;
|
840
|
+
continue_shopping_label: string;
|
841
|
+
terms_and_conditions_label: string;
|
842
|
+
view_cart_label: string;
|
843
|
+
view_cart_working_label: string;
|
844
|
+
};
|
845
|
+
pre_purchase: {
|
846
|
+
enabled: boolean;
|
847
|
+
widget_id: string;
|
848
|
+
};
|
849
|
+
shop_pay: {
|
850
|
+
enabled: boolean;
|
851
|
+
};
|
852
|
+
terms: {
|
853
|
+
enabled: boolean;
|
854
|
+
};
|
855
|
+
view_cart_button: {
|
856
|
+
enabled: boolean;
|
857
|
+
};
|
858
|
+
};
|
859
|
+
previous_templates?: (string | null)[] | undefined;
|
860
|
+
}>, z.ZodObject<{
|
861
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
862
|
+
anchor_order: z.ZodNumber;
|
863
|
+
component_id: z.ZodString;
|
864
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
865
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
866
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
867
|
+
version: z.ZodString;
|
868
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
869
|
+
} & {
|
870
|
+
settings: z.ZodObject<{
|
871
|
+
widget_id: z.ZodNullable<z.ZodString>;
|
872
|
+
}, "strip", z.ZodTypeAny, {
|
873
|
+
widget_id: string | null;
|
874
|
+
}, {
|
875
|
+
widget_id: string | null;
|
876
|
+
}>;
|
877
|
+
title: z.ZodString;
|
878
|
+
type: z.ZodLiteral<"cross_sell_widget">;
|
879
|
+
}, "strip", z.ZodTypeAny, {
|
880
|
+
type: "cross_sell_widget";
|
881
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
882
|
+
anchor_order: number;
|
883
|
+
component_id: string;
|
884
|
+
custom_template: string | null;
|
885
|
+
use_custom_template: number | boolean;
|
886
|
+
version: string;
|
887
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
888
|
+
title: string;
|
889
|
+
settings: {
|
890
|
+
widget_id: string | null;
|
891
|
+
};
|
892
|
+
previous_templates?: (string | null)[] | undefined;
|
893
|
+
}, {
|
894
|
+
type: "cross_sell_widget";
|
895
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
896
|
+
anchor_order: number;
|
897
|
+
component_id: string;
|
898
|
+
custom_template: string | null;
|
899
|
+
use_custom_template: number | boolean;
|
900
|
+
version: string;
|
901
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
902
|
+
title: string;
|
903
|
+
settings: {
|
904
|
+
widget_id: string | null;
|
905
|
+
};
|
906
|
+
previous_templates?: (string | null)[] | undefined;
|
907
|
+
}>, z.ZodObject<{
|
908
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
909
|
+
anchor_order: z.ZodNumber;
|
910
|
+
component_id: z.ZodString;
|
911
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
912
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
913
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
914
|
+
version: z.ZodString;
|
915
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
916
|
+
} & {
|
917
|
+
settings: z.ZodObject<{
|
918
|
+
language: z.ZodObject<{
|
919
|
+
title: z.ZodString;
|
920
|
+
}, "strip", z.ZodTypeAny, {
|
921
|
+
title: string;
|
922
|
+
}, {
|
923
|
+
title: string;
|
924
|
+
}>;
|
925
|
+
url: z.ZodString;
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
927
|
+
url: string;
|
928
|
+
language: {
|
929
|
+
title: string;
|
930
|
+
};
|
931
|
+
}, {
|
932
|
+
url: string;
|
933
|
+
language: {
|
934
|
+
title: string;
|
935
|
+
};
|
936
|
+
}>;
|
937
|
+
title: z.ZodString;
|
938
|
+
type: z.ZodLiteral<"login">;
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
940
|
+
type: "login";
|
941
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
942
|
+
anchor_order: number;
|
943
|
+
component_id: string;
|
944
|
+
custom_template: string | null;
|
945
|
+
use_custom_template: number | boolean;
|
946
|
+
version: string;
|
947
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
948
|
+
title: string;
|
949
|
+
settings: {
|
950
|
+
url: string;
|
951
|
+
language: {
|
952
|
+
title: string;
|
953
|
+
};
|
954
|
+
};
|
955
|
+
previous_templates?: (string | null)[] | undefined;
|
956
|
+
}, {
|
957
|
+
type: "login";
|
958
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
959
|
+
anchor_order: number;
|
960
|
+
component_id: string;
|
961
|
+
custom_template: string | null;
|
962
|
+
use_custom_template: number | boolean;
|
963
|
+
version: string;
|
964
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
965
|
+
title: string;
|
966
|
+
settings: {
|
967
|
+
url: string;
|
968
|
+
language: {
|
969
|
+
title: string;
|
970
|
+
};
|
971
|
+
};
|
972
|
+
previous_templates?: (string | null)[] | undefined;
|
973
|
+
}>, z.ZodObject<{
|
974
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
975
|
+
anchor_order: z.ZodNumber;
|
976
|
+
component_id: z.ZodString;
|
977
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
978
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
979
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
980
|
+
version: z.ZodString;
|
981
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
982
|
+
} & {
|
983
|
+
settings: z.ZodObject<{
|
984
|
+
html_code: z.ZodNullable<z.ZodString>;
|
985
|
+
}, "strip", z.ZodTypeAny, {
|
986
|
+
html_code: string | null;
|
987
|
+
}, {
|
988
|
+
html_code: string | null;
|
989
|
+
}>;
|
990
|
+
title: z.ZodString;
|
991
|
+
type: z.ZodLiteral<"custom_code_block">;
|
992
|
+
}, "strip", z.ZodTypeAny, {
|
993
|
+
type: "custom_code_block";
|
994
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
995
|
+
anchor_order: number;
|
996
|
+
component_id: string;
|
997
|
+
custom_template: string | null;
|
998
|
+
use_custom_template: number | boolean;
|
999
|
+
version: string;
|
1000
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1001
|
+
title: string;
|
1002
|
+
settings: {
|
1003
|
+
html_code: string | null;
|
1004
|
+
};
|
1005
|
+
previous_templates?: (string | null)[] | undefined;
|
1006
|
+
}, {
|
1007
|
+
type: "custom_code_block";
|
1008
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1009
|
+
anchor_order: number;
|
1010
|
+
component_id: string;
|
1011
|
+
custom_template: string | null;
|
1012
|
+
use_custom_template: number | boolean;
|
1013
|
+
version: string;
|
1014
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1015
|
+
title: string;
|
1016
|
+
settings: {
|
1017
|
+
html_code: string | null;
|
1018
|
+
};
|
1019
|
+
previous_templates?: (string | null)[] | undefined;
|
1020
|
+
}>, z.ZodObject<{
|
1021
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
1022
|
+
anchor_order: z.ZodNumber;
|
1023
|
+
component_id: z.ZodString;
|
1024
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
1025
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
1026
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
1027
|
+
version: z.ZodString;
|
1028
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
1029
|
+
} & {
|
1030
|
+
settings: z.ZodObject<{
|
1031
|
+
language: z.ZodObject<{
|
1032
|
+
discount_button_label: z.ZodString;
|
1033
|
+
discount_code_label: z.ZodString;
|
1034
|
+
discount_invalid_message: z.ZodString;
|
1035
|
+
}, "strip", z.ZodTypeAny, {
|
1036
|
+
discount_button_label: string;
|
1037
|
+
discount_code_label: string;
|
1038
|
+
discount_invalid_message: string;
|
1039
|
+
}, {
|
1040
|
+
discount_button_label: string;
|
1041
|
+
discount_code_label: string;
|
1042
|
+
discount_invalid_message: string;
|
1043
|
+
}>;
|
1044
|
+
use_message_only: z.ZodBoolean;
|
1045
|
+
use_storefront_api: z.ZodBoolean;
|
1046
|
+
}, "strip", z.ZodTypeAny, {
|
1047
|
+
language: {
|
1048
|
+
discount_button_label: string;
|
1049
|
+
discount_code_label: string;
|
1050
|
+
discount_invalid_message: string;
|
1051
|
+
};
|
1052
|
+
use_message_only: boolean;
|
1053
|
+
use_storefront_api: boolean;
|
1054
|
+
}, {
|
1055
|
+
language: {
|
1056
|
+
discount_button_label: string;
|
1057
|
+
discount_code_label: string;
|
1058
|
+
discount_invalid_message: string;
|
1059
|
+
};
|
1060
|
+
use_message_only: boolean;
|
1061
|
+
use_storefront_api: boolean;
|
1062
|
+
}>;
|
1063
|
+
title: z.ZodString;
|
1064
|
+
type: z.ZodLiteral<"discount_code">;
|
1065
|
+
}, "strip", z.ZodTypeAny, {
|
1066
|
+
type: "discount_code";
|
1067
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1068
|
+
anchor_order: number;
|
1069
|
+
component_id: string;
|
1070
|
+
custom_template: string | null;
|
1071
|
+
use_custom_template: number | boolean;
|
1072
|
+
version: string;
|
1073
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1074
|
+
title: string;
|
1075
|
+
settings: {
|
1076
|
+
language: {
|
1077
|
+
discount_button_label: string;
|
1078
|
+
discount_code_label: string;
|
1079
|
+
discount_invalid_message: string;
|
1080
|
+
};
|
1081
|
+
use_message_only: boolean;
|
1082
|
+
use_storefront_api: boolean;
|
1083
|
+
};
|
1084
|
+
previous_templates?: (string | null)[] | undefined;
|
1085
|
+
}, {
|
1086
|
+
type: "discount_code";
|
1087
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1088
|
+
anchor_order: number;
|
1089
|
+
component_id: string;
|
1090
|
+
custom_template: string | null;
|
1091
|
+
use_custom_template: number | boolean;
|
1092
|
+
version: string;
|
1093
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1094
|
+
title: string;
|
1095
|
+
settings: {
|
1096
|
+
language: {
|
1097
|
+
discount_button_label: string;
|
1098
|
+
discount_code_label: string;
|
1099
|
+
discount_invalid_message: string;
|
1100
|
+
};
|
1101
|
+
use_message_only: boolean;
|
1102
|
+
use_storefront_api: boolean;
|
1103
|
+
};
|
1104
|
+
previous_templates?: (string | null)[] | undefined;
|
1105
|
+
}>, z.ZodObject<{
|
1106
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
1107
|
+
anchor_order: z.ZodNumber;
|
1108
|
+
component_id: z.ZodString;
|
1109
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
1110
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
1111
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
1112
|
+
version: z.ZodString;
|
1113
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
1114
|
+
} & {
|
1115
|
+
settings: z.ZodObject<{
|
1116
|
+
language: z.ZodObject<{
|
1117
|
+
notes_label: z.ZodString;
|
1118
|
+
notes_placeholder: z.ZodString;
|
1119
|
+
notes_remaining_characters: z.ZodString;
|
1120
|
+
}, "strip", z.ZodTypeAny, {
|
1121
|
+
notes_label: string;
|
1122
|
+
notes_placeholder: string;
|
1123
|
+
notes_remaining_characters: string;
|
1124
|
+
}, {
|
1125
|
+
notes_label: string;
|
1126
|
+
notes_placeholder: string;
|
1127
|
+
notes_remaining_characters: string;
|
1128
|
+
}>;
|
1129
|
+
limit_characters: z.ZodBoolean;
|
1130
|
+
max_length: z.ZodNumber;
|
1131
|
+
}, "strip", z.ZodTypeAny, {
|
1132
|
+
language: {
|
1133
|
+
notes_label: string;
|
1134
|
+
notes_placeholder: string;
|
1135
|
+
notes_remaining_characters: string;
|
1136
|
+
};
|
1137
|
+
limit_characters: boolean;
|
1138
|
+
max_length: number;
|
1139
|
+
}, {
|
1140
|
+
language: {
|
1141
|
+
notes_label: string;
|
1142
|
+
notes_placeholder: string;
|
1143
|
+
notes_remaining_characters: string;
|
1144
|
+
};
|
1145
|
+
limit_characters: boolean;
|
1146
|
+
max_length: number;
|
1147
|
+
}>;
|
1148
|
+
title: z.ZodString;
|
1149
|
+
type: z.ZodLiteral<"notes">;
|
1150
|
+
}, "strip", z.ZodTypeAny, {
|
1151
|
+
type: "notes";
|
1152
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1153
|
+
anchor_order: number;
|
1154
|
+
component_id: string;
|
1155
|
+
custom_template: string | null;
|
1156
|
+
use_custom_template: number | boolean;
|
1157
|
+
version: string;
|
1158
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1159
|
+
title: string;
|
1160
|
+
settings: {
|
1161
|
+
language: {
|
1162
|
+
notes_label: string;
|
1163
|
+
notes_placeholder: string;
|
1164
|
+
notes_remaining_characters: string;
|
1165
|
+
};
|
1166
|
+
limit_characters: boolean;
|
1167
|
+
max_length: number;
|
1168
|
+
};
|
1169
|
+
previous_templates?: (string | null)[] | undefined;
|
1170
|
+
}, {
|
1171
|
+
type: "notes";
|
1172
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1173
|
+
anchor_order: number;
|
1174
|
+
component_id: string;
|
1175
|
+
custom_template: string | null;
|
1176
|
+
use_custom_template: number | boolean;
|
1177
|
+
version: string;
|
1178
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1179
|
+
title: string;
|
1180
|
+
settings: {
|
1181
|
+
language: {
|
1182
|
+
notes_label: string;
|
1183
|
+
notes_placeholder: string;
|
1184
|
+
notes_remaining_characters: string;
|
1185
|
+
};
|
1186
|
+
limit_characters: boolean;
|
1187
|
+
max_length: number;
|
1188
|
+
};
|
1189
|
+
previous_templates?: (string | null)[] | undefined;
|
1190
|
+
}>, z.ZodObject<{
|
1191
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
1192
|
+
anchor_order: z.ZodNumber;
|
1193
|
+
component_id: z.ZodString;
|
1194
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
1195
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
1196
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
1197
|
+
version: z.ZodString;
|
1198
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
1199
|
+
} & {
|
1200
|
+
settings: z.ZodObject<{
|
1201
|
+
bars: z.ZodArray<z.ZodAny, "many">;
|
1202
|
+
}, "strip", z.ZodTypeAny, {
|
1203
|
+
bars: any[];
|
1204
|
+
}, {
|
1205
|
+
bars: any[];
|
1206
|
+
}>;
|
1207
|
+
title: z.ZodString;
|
1208
|
+
type: z.ZodLiteral<"tiered_progress_bar">;
|
1209
|
+
}, "strip", z.ZodTypeAny, {
|
1210
|
+
type: "tiered_progress_bar";
|
1211
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1212
|
+
anchor_order: number;
|
1213
|
+
component_id: string;
|
1214
|
+
custom_template: string | null;
|
1215
|
+
use_custom_template: number | boolean;
|
1216
|
+
version: string;
|
1217
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1218
|
+
title: string;
|
1219
|
+
settings: {
|
1220
|
+
bars: any[];
|
1221
|
+
};
|
1222
|
+
previous_templates?: (string | null)[] | undefined;
|
1223
|
+
}, {
|
1224
|
+
type: "tiered_progress_bar";
|
1225
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1226
|
+
anchor_order: number;
|
1227
|
+
component_id: string;
|
1228
|
+
custom_template: string | null;
|
1229
|
+
use_custom_template: number | boolean;
|
1230
|
+
version: string;
|
1231
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1232
|
+
title: string;
|
1233
|
+
settings: {
|
1234
|
+
bars: any[];
|
1235
|
+
};
|
1236
|
+
previous_templates?: (string | null)[] | undefined;
|
1237
|
+
}>, z.ZodObject<{
|
1238
|
+
anchor: z.ZodEnum<["header", "goalBox", "body", "footer", "crossSells", "needsAttention"]>;
|
1239
|
+
anchor_order: z.ZodNumber;
|
1240
|
+
component_id: z.ZodString;
|
1241
|
+
custom_template: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
1242
|
+
previous_templates: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNull, z.ZodString]>, "many">>;
|
1243
|
+
use_custom_template: z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>;
|
1244
|
+
version: z.ZodString;
|
1245
|
+
visibility_status: z.ZodEnum<["visible", "hidden", "always_visible"]>;
|
1246
|
+
} & {
|
1247
|
+
settings: z.ZodObject<{
|
1248
|
+
app_id: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
|
1249
|
+
}, "strip", z.ZodTypeAny, {
|
1250
|
+
app_id: string | number | null;
|
1251
|
+
}, {
|
1252
|
+
app_id: string | number | null;
|
1253
|
+
}>;
|
1254
|
+
title: z.ZodString;
|
1255
|
+
type: z.ZodLiteral<"smart_cart_app">;
|
1256
|
+
}, "strip", z.ZodTypeAny, {
|
1257
|
+
type: "smart_cart_app";
|
1258
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1259
|
+
anchor_order: number;
|
1260
|
+
component_id: string;
|
1261
|
+
custom_template: string | null;
|
1262
|
+
use_custom_template: number | boolean;
|
1263
|
+
version: string;
|
1264
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1265
|
+
title: string;
|
1266
|
+
settings: {
|
1267
|
+
app_id: string | number | null;
|
1268
|
+
};
|
1269
|
+
previous_templates?: (string | null)[] | undefined;
|
1270
|
+
}, {
|
1271
|
+
type: "smart_cart_app";
|
1272
|
+
anchor: "header" | "goalBox" | "body" | "footer" | "crossSells" | "needsAttention";
|
1273
|
+
anchor_order: number;
|
1274
|
+
component_id: string;
|
1275
|
+
custom_template: string | null;
|
1276
|
+
use_custom_template: number | boolean;
|
1277
|
+
version: string;
|
1278
|
+
visibility_status: "visible" | "hidden" | "always_visible";
|
1279
|
+
title: string;
|
1280
|
+
settings: {
|
1281
|
+
app_id: string | number | null;
|
1282
|
+
};
|
1283
|
+
previous_templates?: (string | null)[] | undefined;
|
1284
|
+
}>]>;
|
1285
|
+
export type ComponentAnchor = z.infer<typeof componentAnchorSchema>;
|
1286
|
+
export type VisibilityStatus = z.infer<typeof visibilityStatusSchema>;
|
1287
|
+
export type BaseComponentConfig = z.infer<typeof baseComponentSchema>;
|
1288
|
+
export type AnnouncementBarSettings = z.infer<typeof announcementBarSettingsSchema>;
|
1289
|
+
export type CartItemsSettings = z.infer<typeof cartItemsSettingsSchema>;
|
1290
|
+
export type CartSubtotalSettings = z.infer<typeof cartSubtotalSettingsSchema>;
|
1291
|
+
export type CheckoutSettings = z.infer<typeof checkoutSettingsSchema>;
|
1292
|
+
export type CrossSellWidgetSettings = z.infer<typeof crossSellWidgetSettingsSchema>;
|
1293
|
+
export type CustomCodeBlockSettings = z.infer<typeof customCodeBlockSettingsSchema>;
|
1294
|
+
export type DiscountCodeSettings = z.infer<typeof discountCodeSettingsSchema>;
|
1295
|
+
export type NotesSettings = z.infer<typeof notesSettingsSchema>;
|
1296
|
+
export type TieredProgressBarSettings = z.infer<typeof tieredProgressBarSettingsSchema>;
|
1297
|
+
export type TitleBarSettings = z.infer<typeof titleBarSettingsSchema>;
|
1298
|
+
export type LoginComponentSettings = z.infer<typeof loginComponentSettingsSchema>;
|
1299
|
+
export type SmartCartAppSettings = z.infer<typeof smartCartAppSettingsSchema>;
|
1300
|
+
export type TitleBarComponent = BaseComponentConfig & {
|
1301
|
+
settings: TitleBarSettings;
|
1302
|
+
type: 'title_bar';
|
1303
|
+
};
|
1304
|
+
export type AnnouncementBarComponent = BaseComponentConfig & {
|
1305
|
+
settings: AnnouncementBarSettings;
|
1306
|
+
type: 'announcement_bar';
|
1307
|
+
};
|
1308
|
+
export type CartItemsComponent = BaseComponentConfig & {
|
1309
|
+
settings: CartItemsSettings;
|
1310
|
+
type: 'cart_items';
|
1311
|
+
};
|
1312
|
+
export type CartSubtotalComponent = BaseComponentConfig & {
|
1313
|
+
settings: CartSubtotalSettings;
|
1314
|
+
type: 'cart_subtotal';
|
1315
|
+
};
|
1316
|
+
export type CheckoutComponent = BaseComponentConfig & {
|
1317
|
+
settings: CheckoutSettings;
|
1318
|
+
type: 'checkout';
|
1319
|
+
};
|
1320
|
+
export type CrossSellWidgetComponent = BaseComponentConfig & {
|
1321
|
+
settings: CrossSellWidgetSettings;
|
1322
|
+
type: 'cross_sell_widget';
|
1323
|
+
};
|
1324
|
+
export type LoginComponent = BaseComponentConfig & {
|
1325
|
+
settings: LoginComponentSettings;
|
1326
|
+
type: 'login';
|
1327
|
+
};
|
1328
|
+
export type CustomCodeBlockComponent = BaseComponentConfig & {
|
1329
|
+
settings: CustomCodeBlockSettings;
|
1330
|
+
type: 'custom_code_block';
|
1331
|
+
};
|
1332
|
+
export type DiscountCodeComponent = BaseComponentConfig & {
|
1333
|
+
settings: DiscountCodeSettings;
|
1334
|
+
type: 'discount_code';
|
1335
|
+
};
|
1336
|
+
export type NotesComponent = BaseComponentConfig & {
|
1337
|
+
settings: NotesSettings;
|
1338
|
+
type: 'notes';
|
1339
|
+
};
|
1340
|
+
export type TieredProgressBarComponent = BaseComponentConfig & {
|
1341
|
+
settings: TieredProgressBarSettings;
|
1342
|
+
type: 'tiered_progress_bar';
|
1343
|
+
};
|
1344
|
+
export type SmartCartAppComponent = BaseComponentConfig & {
|
1345
|
+
settings: SmartCartAppSettings;
|
1346
|
+
type: 'smart_cart_app';
|
1347
|
+
};
|
1348
|
+
export type SmartCartComponentConfig = z.infer<typeof smartCartComponentSchema>;
|
1349
|
+
export { announcementBarSettingsSchema, baseComponentSchema, cartItemsSettingsSchema, cartSubtotalSettingsSchema, checkoutSettingsSchema, componentAnchorSchema, crossSellWidgetSettingsSchema, customCodeBlockSettingsSchema, discountCodeSettingsSchema, loginComponentSettingsSchema, notesSettingsSchema, smartCartAppSettingsSchema, smartCartComponentSchema, tieredProgressBarSettingsSchema, titleBarSettingsSchema, visibilityStatusSchema, };
|
1350
|
+
//# sourceMappingURL=smart-cart-component.d.ts.map
|