@xiwebdesign/xicms-core 6.5.0 → 7.1.0
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/dist/SiteChrome.d.ts +12 -0
- package/dist/SiteChrome.js +24 -0
- package/dist/SiteChrome.js.map +1 -0
- package/dist/XiCMSProvider.d.ts +16 -8
- package/dist/XiCMSProvider.js +90 -61
- package/dist/XiCMSProvider.js.map +1 -1
- package/dist/admin/AdminApp.d.ts +1 -1
- package/dist/admin/AdminApp.js +81 -35
- package/dist/admin/AdminApp.js.map +1 -1
- package/dist/admin/AdminHelp.d.ts +8 -1
- package/dist/admin/AdminHelp.js +2 -2
- package/dist/admin/AdminHelp.js.map +1 -1
- package/dist/admin/CoreVersion.d.ts +13 -0
- package/dist/admin/CoreVersion.js +38 -0
- package/dist/admin/CoreVersion.js.map +1 -0
- package/dist/admin/NewsEditor.js +9 -9
- package/dist/admin/SuperadminPanel.js +5 -5
- package/dist/admin/blockEditors/GenericEditor.d.ts +2 -2
- package/dist/admin/blockEditors/GenericEditor.js +12 -11
- package/dist/admin/blockEditors/GenericEditor.js.map +1 -1
- package/dist/admin/blockEditors/StyleEditor.d.ts +1 -1
- package/dist/admin/blockEditors/StyleEditor.js +2 -2
- package/dist/admin/blockEditors/SymbolRefEditor.d.ts +1 -1
- package/dist/admin/blockEditors/SymbolRefEditor.js +5 -5
- package/dist/admin/blockEditors/index.d.ts +1 -1
- package/dist/admin/blockEditors/index.js +10 -10
- package/dist/admin/customBlocks/CustomBlocksPanel.js +7 -7
- package/dist/admin/editors/RichTextEditor.js +8 -7
- package/dist/admin/editors/RichTextEditor.js.map +1 -1
- package/dist/admin/editors/fontSizeExtension.js +1 -1
- package/dist/admin/editors/fontSizeExtension.js.map +1 -1
- package/dist/admin/forms/FormsPanel.js +9 -9
- package/dist/admin/index.d.ts +16 -16
- package/dist/admin/index.js +16 -16
- package/dist/admin/lib/mediaUsage.js +1 -1
- package/dist/admin/lib/pagesClient.d.ts +1 -1
- package/dist/admin/lib/pagesClient.js +11 -7
- package/dist/admin/lib/pagesClient.js.map +1 -1
- package/dist/admin/lib/sanitizeDraft.d.ts +9 -0
- package/dist/admin/lib/sanitizeDraft.js +28 -0
- package/dist/admin/lib/sanitizeDraft.js.map +1 -0
- package/dist/admin/lib/symbolsClient.d.ts +1 -1
- package/dist/admin/lib/symbolsClient.js +3 -3
- package/dist/admin/lib/upload.js +3 -3
- package/dist/admin/lib/useNestedDialog.d.ts +15 -0
- package/dist/admin/lib/useNestedDialog.js +23 -0
- package/dist/admin/lib/useNestedDialog.js.map +1 -0
- package/dist/admin/lib/zodFields.d.ts +4 -18
- package/dist/admin/lib/zodFields.js +54 -35
- package/dist/admin/lib/zodFields.js.map +1 -1
- package/dist/admin/media/MediaManager.js +7 -7
- package/dist/admin/media/MediaPicker.js +7 -7
- package/dist/admin/media/MediaPicker.js.map +1 -1
- package/dist/admin/pages/PageEditor.d.ts +1 -1
- package/dist/admin/pages/PageEditor.js +13 -13
- package/dist/admin/pages/PagesPanel.js +30 -30
- package/dist/admin/pages/PagesPanel.js.map +1 -1
- package/dist/admin/panelRegistry.js +7 -7
- package/dist/admin/patterns/PatternInserter.d.ts +1 -1
- package/dist/admin/patterns/PatternInserter.js +5 -5
- package/dist/admin/patterns/PatternInserter.js.map +1 -1
- package/dist/admin/settings/MailSettings.js +5 -5
- package/dist/admin/settings/MailTemplates.d.ts +1 -1
- package/dist/admin/settings/MailTemplates.js +5 -5
- package/dist/admin/settings/SettingsPanel.js +66 -20
- package/dist/admin/settings/SettingsPanel.js.map +1 -1
- package/dist/admin/settings/SnapshotsCard.js +5 -5
- package/dist/admin/settings/moduleSettingsForm.d.ts +1 -1
- package/dist/admin/settings/moduleSettingsForm.js +4 -4
- package/dist/admin/settings/moduleSettingsForm.js.map +1 -1
- package/dist/admin/shop/CategoriesTab.js +8 -8
- package/dist/admin/shop/ConnectionsTab.js +3 -3
- package/dist/admin/shop/DiscountsTab.js +8 -8
- package/dist/admin/shop/OrdersTab.js +10 -10
- package/dist/admin/shop/OrdersTab.js.map +1 -1
- package/dist/admin/shop/ProductsTab.js +10 -10
- package/dist/admin/shop/ShopPanel.js +9 -9
- package/dist/admin/shop/ShopSettingsTab.js +4 -4
- package/dist/admin/shop/index.d.ts +2 -2
- package/dist/admin/shop/index.js +2 -2
- package/dist/admin/shop/lib.js +2 -2
- package/dist/admin/stats/StatsPanel.js +2 -2
- package/dist/admin/ui/ArrayEditor.js +1 -1
- package/dist/admin/ui/PanelIcon.d.ts +3 -0
- package/dist/admin/ui/PanelIcon.js +34 -0
- package/dist/admin/ui/PanelIcon.js.map +1 -0
- package/dist/admin/ui/dialog.d.ts +21 -6
- package/dist/admin/ui/dialog.js +55 -34
- package/dist/admin/ui/dialog.js.map +1 -1
- package/dist/admin/ui/index.d.ts +7 -7
- package/dist/admin/ui/index.js +7 -7
- package/dist/admin/ui/primitives.js +1 -1
- package/dist/admin/ui/tabs.js +1 -1
- package/dist/admin/visual/TranslationPanel.d.ts +1 -1
- package/dist/admin/visual/TranslationPanel.js +3 -3
- package/dist/admin/visual/VisualEditor.js +47 -25
- package/dist/admin/visual/VisualEditor.js.map +1 -1
- package/dist/admin.css +2 -1
- package/dist/agentFiles/catalog.d.ts +2 -2
- package/dist/agentFiles/catalog.js +6 -5
- package/dist/agentFiles/catalog.js.map +1 -1
- package/dist/agentFiles/files.d.ts +5 -5
- package/dist/agentFiles/files.js +17 -17
- package/dist/agentFiles/files.js.map +1 -1
- package/dist/all.d.ts +4 -4
- package/dist/all.js +6 -6
- package/dist/auth/AuthProvider.d.ts +2 -2
- package/dist/auth/AuthProvider.js +51 -28
- package/dist/auth/AuthProvider.js.map +1 -1
- package/dist/auth/LoginForm.js +1 -1
- package/dist/auth/roles.js +4 -1
- package/dist/auth/roles.js.map +1 -1
- package/dist/blocks/BlockRenderer.d.ts +1 -1
- package/dist/blocks/BlockRenderer.js +3 -3
- package/dist/blocks/blockStyle.d.ts +1 -1
- package/dist/blocks/builtins/Accordion.d.ts +1 -1
- package/dist/blocks/builtins/Accordion.js +13 -6
- package/dist/blocks/builtins/Accordion.js.map +1 -1
- package/dist/blocks/builtins/Agenda.d.ts +1 -1
- package/dist/blocks/builtins/Agenda.js +5 -5
- package/dist/blocks/builtins/Banner.d.ts +1 -1
- package/dist/blocks/builtins/Banner.js +2 -2
- package/dist/blocks/builtins/BeforeAfter.d.ts +1 -1
- package/dist/blocks/builtins/BeforeAfter.js +4 -4
- package/dist/blocks/builtins/BeforeAfter.js.map +1 -1
- package/dist/blocks/builtins/Booking.d.ts +1 -1
- package/dist/blocks/builtins/Booking.js +5 -5
- package/dist/blocks/builtins/Breadcrumbs.d.ts +1 -1
- package/dist/blocks/builtins/Breadcrumbs.js +3 -3
- package/dist/blocks/builtins/Cards.d.ts +1 -1
- package/dist/blocks/builtins/Cards.js +5 -5
- package/dist/blocks/builtins/Cards.js.map +1 -1
- package/dist/blocks/builtins/Columns.d.ts +1 -1
- package/dist/blocks/builtins/Columns.js +4 -4
- package/dist/blocks/builtins/Contact.d.ts +3 -3
- package/dist/blocks/builtins/Contact.js +4 -4
- package/dist/blocks/builtins/Countdown.d.ts +1 -1
- package/dist/blocks/builtins/Countdown.js +4 -4
- package/dist/blocks/builtins/Countdown.js.map +1 -1
- package/dist/blocks/builtins/Cta.d.ts +1 -1
- package/dist/blocks/builtins/Cta.js +3 -3
- package/dist/blocks/builtins/Downloads.d.ts +1 -1
- package/dist/blocks/builtins/Downloads.js +4 -4
- package/dist/blocks/builtins/Elements.d.ts +3 -3
- package/dist/blocks/builtins/Elements.js +3 -3
- package/dist/blocks/builtins/Embed.d.ts +1 -1
- package/dist/blocks/builtins/Embed.js +3 -3
- package/dist/blocks/builtins/Faq.d.ts +1 -1
- package/dist/blocks/builtins/Faq.js +14 -6
- package/dist/blocks/builtins/Faq.js.map +1 -1
- package/dist/blocks/builtins/FormBlock.d.ts +1 -1
- package/dist/blocks/builtins/FormBlock.js +28 -18
- package/dist/blocks/builtins/FormBlock.js.map +1 -1
- package/dist/blocks/builtins/Gallery.d.ts +2 -2
- package/dist/blocks/builtins/Gallery.js +5 -5
- package/dist/blocks/builtins/Hero.d.ts +1 -1
- package/dist/blocks/builtins/Hero.js +4 -4
- package/dist/blocks/builtins/ImageBlock.d.ts +1 -1
- package/dist/blocks/builtins/ImageBlock.js +3 -3
- package/dist/blocks/builtins/Jobs.d.ts +2 -2
- package/dist/blocks/builtins/Jobs.js +5 -5
- package/dist/blocks/builtins/Layout.d.ts +2 -2
- package/dist/blocks/builtins/Layout.js +4 -4
- package/dist/blocks/builtins/MapBlock.d.ts +1 -1
- package/dist/blocks/builtins/MapBlock.js +3 -3
- package/dist/blocks/builtins/NewsListBlock.d.ts +1 -1
- package/dist/blocks/builtins/NewsListBlock.js +4 -4
- package/dist/blocks/builtins/Newsletter.d.ts +1 -1
- package/dist/blocks/builtins/Newsletter.js +7 -7
- package/dist/blocks/builtins/Newsletter.js.map +1 -1
- package/dist/blocks/builtins/OpenNowBadge.d.ts +1 -1
- package/dist/blocks/builtins/OpenNowBadge.js +8 -3
- package/dist/blocks/builtins/OpenNowBadge.js.map +1 -1
- package/dist/blocks/builtins/OpeningHours.d.ts +1 -1
- package/dist/blocks/builtins/OpeningHours.js +6 -6
- package/dist/blocks/builtins/PdfBlock.d.ts +1 -1
- package/dist/blocks/builtins/PdfBlock.js +3 -3
- package/dist/blocks/builtins/Portfolio.d.ts +1 -1
- package/dist/blocks/builtins/Portfolio.js +5 -5
- package/dist/blocks/builtins/Pricing.d.ts +2 -2
- package/dist/blocks/builtins/Pricing.js +5 -5
- package/dist/blocks/builtins/Pricing.js.map +1 -1
- package/dist/blocks/builtins/RichTextBlock.d.ts +1 -1
- package/dist/blocks/builtins/RichTextBlock.js +2 -2
- package/dist/blocks/builtins/RichTextBlock.js.map +1 -1
- package/dist/blocks/builtins/Search.d.ts +1 -1
- package/dist/blocks/builtins/Search.js +9 -7
- package/dist/blocks/builtins/Search.js.map +1 -1
- package/dist/blocks/builtins/Sections.d.ts +4 -4
- package/dist/blocks/builtins/Sections.js +4 -4
- package/dist/blocks/builtins/Slider.d.ts +1 -1
- package/dist/blocks/builtins/Slider.js +3 -3
- package/dist/blocks/builtins/Spacer.d.ts +1 -1
- package/dist/blocks/builtins/Spacer.js +2 -2
- package/dist/blocks/builtins/SymbolRef.d.ts +1 -1
- package/dist/blocks/builtins/SymbolRef.js +31 -17
- package/dist/blocks/builtins/SymbolRef.js.map +1 -1
- package/dist/blocks/builtins/Team.d.ts +1 -1
- package/dist/blocks/builtins/Team.js +4 -4
- package/dist/blocks/builtins/Testimonials.d.ts +2 -2
- package/dist/blocks/builtins/Testimonials.js +4 -4
- package/dist/blocks/builtins/Video.d.ts +2 -2
- package/dist/blocks/builtins/Video.js +4 -4
- package/dist/blocks/builtins/Video.js.map +1 -1
- package/dist/blocks/builtins/WhatsappChat.d.ts +1 -1
- package/dist/blocks/builtins/WhatsappChat.js +2 -2
- package/dist/blocks/builtins/Widgets.d.ts +12 -12
- package/dist/blocks/builtins/Widgets.js +19 -19
- package/dist/blocks/builtins/Widgets.js.map +1 -1
- package/dist/blocks/builtins/consentEmbed.js +2 -2
- package/dist/blocks/builtins/index.d.ts +40 -40
- package/dist/blocks/builtins/index.js +40 -40
- package/dist/blocks/builtins/lib/submitForm.js +5 -3
- package/dist/blocks/builtins/lib/submitForm.js.map +1 -1
- package/dist/blocks/context.d.ts +1 -1
- package/dist/blocks/customTemplate/definition.d.ts +3 -3
- package/dist/blocks/customTemplate/definition.js +6 -6
- package/dist/blocks/customTemplate/definition.js.map +1 -1
- package/dist/blocks/customTemplate/interpret.js +1 -1
- package/dist/blocks/index.d.ts +5 -5
- package/dist/blocks/index.js +5 -5
- package/dist/blocks/registry.d.ts +17 -7
- package/dist/blocks/registry.js +2 -1
- package/dist/blocks/registry.js.map +1 -1
- package/dist/components/EditBar.js +3 -3
- package/dist/components/FeedbackWidget.js +4 -4
- package/dist/components/News.d.ts +1 -1
- package/dist/components/News.js +50 -37
- package/dist/components/News.js.map +1 -1
- package/dist/components/PageView.js +11 -8
- package/dist/components/PageView.js.map +1 -1
- package/dist/components/ResponsiveImage.d.ts +1 -1
- package/dist/components/site/SiteFooter.d.ts +1 -1
- package/dist/components/site/SiteFooter.js +2 -2
- package/dist/config.d.ts +1 -1
- package/dist/demo/DemoStudio.js +3 -3
- package/dist/demo/demoStore.d.ts +3 -3
- package/dist/demo/index.d.ts +2 -2
- package/dist/demo/index.js +2 -2
- package/dist/editor/EditorProvider.js +1 -1
- package/dist/firebase/admin.d.ts +0 -2
- package/dist/firebase/admin.js +0 -6
- package/dist/firebase/admin.js.map +1 -1
- package/dist/firebase/appcheck.d.ts +1 -1
- package/dist/firebase/appcheck.js +5 -3
- package/dist/firebase/appcheck.js.map +1 -1
- package/dist/firebase/client.d.ts +2 -1
- package/dist/firebase/client.js +2 -14
- package/dist/firebase/client.js.map +1 -1
- package/dist/firebase/config.d.ts +31 -0
- package/dist/firebase/config.js +39 -0
- package/dist/firebase/config.js.map +1 -0
- package/dist/firebase/feedback.js +5 -3
- package/dist/firebase/feedback.js.map +1 -1
- package/dist/i18n/overlay.d.ts +2 -2
- package/dist/i18n/overlay.js +6 -4
- package/dist/i18n/overlay.js.map +1 -1
- package/dist/index.d.ts +46 -44
- package/dist/index.js +39 -33
- package/dist/index.js.map +1 -1
- package/dist/lock/DemoLock.js +1 -1
- package/dist/modules/builtins.d.ts +1 -1
- package/dist/modules/builtins.js +53 -55
- package/dist/modules/builtins.js.map +1 -1
- package/dist/modules/consent/ConsentBanner.js +1 -1
- package/dist/modules/consent/useConsent.js +1 -1
- package/dist/modules/context.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/defineModule.d.ts +1 -1
- package/dist/modules/index.d.ts +9 -9
- package/dist/modules/index.js +8 -8
- package/dist/modules/overrides.d.ts +1 -1
- package/dist/modules/registry.d.ts +2 -7
- package/dist/modules/registry.js +2 -1
- package/dist/modules/registry.js.map +1 -1
- package/dist/modules/shop/blocks/Cart.d.ts +1 -1
- package/dist/modules/shop/blocks/Cart.js +6 -6
- package/dist/modules/shop/blocks/Checkout.d.ts +1 -1
- package/dist/modules/shop/blocks/Checkout.js +6 -6
- package/dist/modules/shop/blocks/Donation.d.ts +1 -1
- package/dist/modules/shop/blocks/Donation.js +5 -5
- package/dist/modules/shop/blocks/OrderStatus.d.ts +1 -1
- package/dist/modules/shop/blocks/OrderStatus.js +5 -5
- package/dist/modules/shop/blocks/ProductDetail.d.ts +1 -1
- package/dist/modules/shop/blocks/ProductDetail.js +8 -8
- package/dist/modules/shop/blocks/ProductGrid.d.ts +3 -3
- package/dist/modules/shop/blocks/ProductGrid.js +7 -7
- package/dist/modules/shop/blocks/ShopCategories.d.ts +1 -1
- package/dist/modules/shop/blocks/ShopCategories.js +6 -6
- package/dist/modules/shop/index.d.ts +5 -5
- package/dist/modules/shop/index.js +5 -5
- package/dist/modules/shop/lib.d.ts +2 -2
- package/dist/modules/shop/lib.js +18 -13
- package/dist/modules/shop/lib.js.map +1 -1
- package/dist/modules/shop/module.d.ts +1 -1
- package/dist/modules/shop/module.js +9 -9
- package/dist/modules/shop/settings.d.ts +18 -50
- package/dist/modules/shop/settings.js +16 -16
- package/dist/modules/shop/settings.js.map +1 -1
- package/dist/modules/shop/strings.js +1 -1
- package/dist/modules/shop/types.d.ts +1 -1
- package/dist/modules/types.d.ts +2 -2
- package/dist/patterns/builtins.d.ts +1 -1
- package/dist/patterns/builtins.js +1 -1
- package/dist/patterns/index.d.ts +2 -2
- package/dist/patterns/index.js +2 -2
- package/dist/render/PageRenderer.d.ts +2 -2
- package/dist/render/PageRenderer.js +1 -1
- package/dist/render/PublishedPage.d.ts +1 -1
- package/dist/render/PublishedPage.js +2 -2
- package/dist/schema/blocks.d.ts +6793 -15095
- package/dist/schema/blocks.js +335 -355
- package/dist/schema/blocks.js.map +1 -1
- package/dist/schema/customBlocks.d.ts +10 -29
- package/dist/schema/customBlocks.js +14 -13
- package/dist/schema/customBlocks.js.map +1 -1
- package/dist/schema/fields.d.ts +10 -16
- package/dist/schema/fields.js +37 -37
- package/dist/schema/fields.js.map +1 -1
- package/dist/schema/forms.d.ts +62 -111
- package/dist/schema/forms.js +17 -17
- package/dist/schema/forms.js.map +1 -1
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +7 -7
- package/dist/schema/mail.d.ts +39 -87
- package/dist/schema/mail.js +4 -4
- package/dist/schema/mail.js.map +1 -1
- package/dist/schema/pages.d.ts +152 -674
- package/dist/schema/pages.js +26 -15
- package/dist/schema/pages.js.map +1 -1
- package/dist/schema/seo.d.ts +9 -27
- package/dist/schema/seo.js +7 -7
- package/dist/schema/seo.js.map +1 -1
- package/dist/schema/settings.d.ts +233 -1074
- package/dist/schema/settings.js +71 -56
- package/dist/schema/settings.js.map +1 -1
- package/dist/schema/shop.d.ts +470 -1214
- package/dist/schema/shop.js +124 -124
- package/dist/schema/shop.js.map +1 -1
- package/dist/schema/siteConfig.d.ts +78 -597
- package/dist/schema/siteConfig.js +17 -17
- package/dist/schema/siteConfig.js.map +1 -1
- package/dist/schema/symbols.d.ts +34 -191
- package/dist/schema/symbols.js +8 -8
- package/dist/schema/symbols.js.map +1 -1
- package/dist/server/auth.d.ts +17 -0
- package/dist/server/auth.js +11 -0
- package/dist/server/auth.js.map +1 -0
- package/dist/server/bundle.d.ts +15 -6
- package/dist/server/bundle.js +5 -1
- package/dist/server/bundle.js.map +1 -1
- package/dist/server/draft.d.ts +16 -0
- package/dist/server/draft.js +12 -0
- package/dist/server/draft.js.map +1 -0
- package/dist/server/env.js +8 -8
- package/dist/server/env.js.map +1 -1
- package/dist/server/index.d.ts +11 -9
- package/dist/server/index.js +13 -10
- package/dist/server/index.js.map +1 -1
- package/dist/server/pages.d.ts +11 -4
- package/dist/server/pages.js +43 -15
- package/dist/server/pages.js.map +1 -1
- package/dist/server/revalidate.js +11 -2
- package/dist/server/revalidate.js.map +1 -1
- package/dist/server/seo.d.ts +3 -3
- package/dist/server/seo.js +1 -1
- package/dist/server/shop.d.ts +3 -3
- package/dist/server/shop.js +6 -3
- package/dist/server/shop.js.map +1 -1
- package/dist/server/version.d.ts +16 -0
- package/dist/server/version.js +17 -0
- package/dist/server/version.js.map +1 -0
- package/dist/settings/useSiteSettings.d.ts +2 -2
- package/dist/settings/useSiteSettings.js +48 -28
- package/dist/settings/useSiteSettings.js.map +1 -1
- package/dist/styles.css +30 -4
- package/dist/theme/presets.d.ts +1 -1
- package/dist/version.d.ts +8 -0
- package/dist/version.js +16 -0
- package/dist/version.js.map +1 -0
- package/package.json +35 -34
package/dist/schema/shop.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
/**
|
|
3
3
|
* Shop-schema's (5.5) — webwinkel + donaties. Pure Zod: gedeeld door core, admin en Functions.
|
|
4
4
|
*
|
|
@@ -13,1253 +13,509 @@ import { z } from "zod";
|
|
|
13
13
|
* paden, donatie-grenzen) leeft in de module-settings van de `shop`-module
|
|
14
14
|
* (settings/public.modules.shop.config) — zie modules/shop/module.ts.
|
|
15
15
|
*/
|
|
16
|
-
export declare const ShopCategorySchema: z.
|
|
17
|
-
name: z.
|
|
18
|
-
slug: z.
|
|
19
|
-
description: z.
|
|
20
|
-
imageUrl: z.
|
|
21
|
-
order: z.
|
|
22
|
-
visible: z.
|
|
23
|
-
},
|
|
24
|
-
name: string;
|
|
25
|
-
slug: string;
|
|
26
|
-
order: number;
|
|
27
|
-
visible: boolean;
|
|
28
|
-
imageUrl?: string | undefined;
|
|
29
|
-
description?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
name: string;
|
|
32
|
-
slug: string;
|
|
33
|
-
imageUrl?: string | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
order?: number | undefined;
|
|
36
|
-
visible?: boolean | undefined;
|
|
37
|
-
}>;
|
|
16
|
+
export declare const ShopCategorySchema: z.ZodMiniObject<{
|
|
17
|
+
name: z.ZodMiniString<string>;
|
|
18
|
+
slug: z.ZodMiniString<string>;
|
|
19
|
+
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
20
|
+
imageUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
21
|
+
order: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
22
|
+
visible: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
38
24
|
export type ShopCategory = z.infer<typeof ShopCategorySchema>;
|
|
39
25
|
/** Optie-as, bv. { name: "Maat", values: ["56","62","68","74"] }. Max 3 assen per product. */
|
|
40
|
-
export declare const ProductOptionSchema: z.
|
|
41
|
-
name: z.
|
|
42
|
-
values: z.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* De detailpagina wisselt het hoofdbeeld mee met de keuze; bewust per as en niet per
|
|
46
|
-
* variant-combinatie (maat × kleur zou het aantal afbeeldingen laten exploderen).
|
|
47
|
-
*/
|
|
48
|
-
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
values: string[];
|
|
51
|
-
name: string;
|
|
52
|
-
images?: Record<string, string> | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
values: string[];
|
|
55
|
-
name: string;
|
|
56
|
-
images?: Record<string, string> | undefined;
|
|
57
|
-
}>;
|
|
26
|
+
export declare const ProductOptionSchema: z.ZodMiniObject<{
|
|
27
|
+
name: z.ZodMiniString<string>;
|
|
28
|
+
values: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
29
|
+
images: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
58
31
|
export type ProductOption = z.infer<typeof ProductOptionSchema>;
|
|
59
32
|
/**
|
|
60
33
|
* Personalisatie-veld (5.6): de klant geeft eigen tekst of een eigen afbeelding op
|
|
61
34
|
* (bv. "rompertje met naam"). Meerprijs telt server-side mee in `createOrder`.
|
|
62
35
|
*/
|
|
63
|
-
export declare const PersonalizationFieldSchema: z.
|
|
64
|
-
key: z.
|
|
65
|
-
label: z.
|
|
66
|
-
type: z.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
label: string;
|
|
76
|
-
maxLength: number;
|
|
77
|
-
key: string;
|
|
78
|
-
required: boolean;
|
|
79
|
-
priceCents: number;
|
|
80
|
-
helpText?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
type: "image" | "text";
|
|
83
|
-
label: string;
|
|
84
|
-
key: string;
|
|
85
|
-
maxLength?: number | undefined;
|
|
86
|
-
required?: boolean | undefined;
|
|
87
|
-
priceCents?: number | undefined;
|
|
88
|
-
helpText?: string | undefined;
|
|
89
|
-
}>;
|
|
36
|
+
export declare const PersonalizationFieldSchema: z.ZodMiniObject<{
|
|
37
|
+
key: z.ZodMiniString<string>;
|
|
38
|
+
label: z.ZodMiniString<string>;
|
|
39
|
+
type: z.ZodMiniEnum<{
|
|
40
|
+
image: "image";
|
|
41
|
+
text: "text";
|
|
42
|
+
}>;
|
|
43
|
+
required: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
44
|
+
maxLength: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
45
|
+
priceCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
46
|
+
helpText: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
90
48
|
export type PersonalizationField = z.infer<typeof PersonalizationFieldSchema>;
|
|
91
49
|
/** Ingevulde personalisatie op een orderregel/cartregel: per veld-key tekst of upload-pad. */
|
|
92
|
-
export declare const PersonalizationValueSchema: z.
|
|
93
|
-
text: z.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
text?: string | undefined;
|
|
100
|
-
imagePath?: string | undefined;
|
|
101
|
-
fileName?: string | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
text?: string | undefined;
|
|
104
|
-
imagePath?: string | undefined;
|
|
105
|
-
fileName?: string | undefined;
|
|
106
|
-
}>>;
|
|
50
|
+
export declare const PersonalizationValueSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
51
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
imagePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
+
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
107
55
|
export type PersonalizationValue = z.infer<typeof PersonalizationValueSchema>;
|
|
108
56
|
/**
|
|
109
57
|
* Variant = één combinatie van optiewaarden. `key` is de waarden gejoined met "|" in
|
|
110
58
|
* optie-volgorde (bv. "68|Roze"). Alleen aanwezig waar hij afwijkt van de product-defaults.
|
|
111
59
|
*/
|
|
112
|
-
export declare const ProductVariantSchema: z.
|
|
113
|
-
key: z.
|
|
114
|
-
priceCents: z.
|
|
115
|
-
stock: z.
|
|
116
|
-
sku: z.
|
|
117
|
-
active: z.
|
|
118
|
-
},
|
|
119
|
-
key: string;
|
|
120
|
-
active: boolean;
|
|
121
|
-
priceCents?: number | undefined;
|
|
122
|
-
stock?: number | undefined;
|
|
123
|
-
sku?: string | undefined;
|
|
124
|
-
}, {
|
|
125
|
-
key: string;
|
|
126
|
-
active?: boolean | undefined;
|
|
127
|
-
priceCents?: number | undefined;
|
|
128
|
-
stock?: number | undefined;
|
|
129
|
-
sku?: string | undefined;
|
|
130
|
-
}>;
|
|
60
|
+
export declare const ProductVariantSchema: z.ZodMiniObject<{
|
|
61
|
+
key: z.ZodMiniString<string>;
|
|
62
|
+
priceCents: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
63
|
+
stock: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
64
|
+
sku: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
65
|
+
active: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
131
67
|
export type ProductVariant = z.infer<typeof ProductVariantSchema>;
|
|
132
|
-
export declare const ProductStatusSchema: z.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
slug: z.ZodString;
|
|
137
|
-
/**
|
|
138
|
-
* Beschrijving als platte tekst (regeleinden blijven behouden). Bewust géén HTML:
|
|
139
|
-
* producten worden client-side door editors geschreven (rules-pad, niet via de
|
|
140
|
-
* publish-sanitizer), dus HTML zou hier een XSS-route zijn.
|
|
141
|
-
*/
|
|
142
|
-
description: z.ZodDefault<z.ZodString>;
|
|
143
|
-
categoryIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
144
|
-
/** Afbeeldings-URL's (via de mediabibliotheek). Eerste = hoofdbeeld. */
|
|
145
|
-
images: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
146
|
-
/** Prijs incl. btw, in centen. */
|
|
147
|
-
priceCents: z.ZodDefault<z.ZodNumber>;
|
|
148
|
-
/** Doorgestreepte "van"-prijs (optioneel). */
|
|
149
|
-
compareAtCents: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
/** Btw-tarief (NL): 21, 9 of 0. Prijzen zijn inclusief. */
|
|
151
|
-
vatRate: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<21>, z.ZodLiteral<9>, z.ZodLiteral<0>]>>;
|
|
152
|
-
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
153
|
-
name: z.ZodString;
|
|
154
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
155
|
-
/**
|
|
156
|
-
* 5.6: afbeelding per optieWAARDE (praktijk: de kleur-as) — `{ "Roze": "https://…" }`.
|
|
157
|
-
* De detailpagina wisselt het hoofdbeeld mee met de keuze; bewust per as en niet per
|
|
158
|
-
* variant-combinatie (maat × kleur zou het aantal afbeeldingen laten exploderen).
|
|
159
|
-
*/
|
|
160
|
-
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
values: string[];
|
|
163
|
-
name: string;
|
|
164
|
-
images?: Record<string, string> | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
values: string[];
|
|
167
|
-
name: string;
|
|
168
|
-
images?: Record<string, string> | undefined;
|
|
169
|
-
}>, "many">>;
|
|
170
|
-
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
171
|
-
key: z.ZodString;
|
|
172
|
-
priceCents: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
stock: z.ZodOptional<z.ZodNumber>;
|
|
174
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
175
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
-
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
key: string;
|
|
178
|
-
active: boolean;
|
|
179
|
-
priceCents?: number | undefined;
|
|
180
|
-
stock?: number | undefined;
|
|
181
|
-
sku?: string | undefined;
|
|
182
|
-
}, {
|
|
183
|
-
key: string;
|
|
184
|
-
active?: boolean | undefined;
|
|
185
|
-
priceCents?: number | undefined;
|
|
186
|
-
stock?: number | undefined;
|
|
187
|
-
sku?: string | undefined;
|
|
188
|
-
}>, "many">>;
|
|
189
|
-
/** Voorraad bijhouden? false = altijd bestelbaar (op-maat/print-on-demand). */
|
|
190
|
-
trackStock: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
-
/** Voorraad voor producten zónder varianten (met varianten telt de variant-stock). */
|
|
192
|
-
stock: z.ZodOptional<z.ZodNumber>;
|
|
193
|
-
status: z.ZodDefault<z.ZodEnum<["draft", "active", "archived"]>>;
|
|
194
|
-
/** Sorteervolgorde binnen een categorie (laag = eerst). */
|
|
195
|
-
order: z.ZodDefault<z.ZodNumber>;
|
|
196
|
-
featured: z.ZodDefault<z.ZodBoolean>;
|
|
197
|
-
/** 5.6: personalisatie-velden (eigen naam/logo) — max 3 per product. */
|
|
198
|
-
personalization: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
|
-
key: z.ZodString;
|
|
200
|
-
label: z.ZodString;
|
|
201
|
-
type: z.ZodEnum<["text", "image"]>;
|
|
202
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
-
/** Alleen voor type "text". */
|
|
204
|
-
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
205
|
-
/** Meerprijs in centen (per stuk). */
|
|
206
|
-
priceCents: z.ZodDefault<z.ZodNumber>;
|
|
207
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
208
|
-
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
type: "image" | "text";
|
|
210
|
-
label: string;
|
|
211
|
-
maxLength: number;
|
|
212
|
-
key: string;
|
|
213
|
-
required: boolean;
|
|
214
|
-
priceCents: number;
|
|
215
|
-
helpText?: string | undefined;
|
|
216
|
-
}, {
|
|
217
|
-
type: "image" | "text";
|
|
218
|
-
label: string;
|
|
219
|
-
key: string;
|
|
220
|
-
maxLength?: number | undefined;
|
|
221
|
-
required?: boolean | undefined;
|
|
222
|
-
priceCents?: number | undefined;
|
|
223
|
-
helpText?: string | undefined;
|
|
224
|
-
}>, "many">>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
options: {
|
|
227
|
-
values: string[];
|
|
228
|
-
name: string;
|
|
229
|
-
images?: Record<string, string> | undefined;
|
|
230
|
-
}[];
|
|
231
|
-
status: "active" | "draft" | "archived";
|
|
232
|
-
name: string;
|
|
233
|
-
description: string;
|
|
234
|
-
featured: boolean;
|
|
235
|
-
slug: string;
|
|
236
|
-
order: number;
|
|
237
|
-
variants: {
|
|
238
|
-
key: string;
|
|
239
|
-
active: boolean;
|
|
240
|
-
priceCents?: number | undefined;
|
|
241
|
-
stock?: number | undefined;
|
|
242
|
-
sku?: string | undefined;
|
|
243
|
-
}[];
|
|
244
|
-
images: string[];
|
|
245
|
-
priceCents: number;
|
|
246
|
-
categoryIds: string[];
|
|
247
|
-
vatRate: 0 | 9 | 21;
|
|
248
|
-
trackStock: boolean;
|
|
249
|
-
stock?: number | undefined;
|
|
250
|
-
compareAtCents?: number | undefined;
|
|
251
|
-
personalization?: {
|
|
252
|
-
type: "image" | "text";
|
|
253
|
-
label: string;
|
|
254
|
-
maxLength: number;
|
|
255
|
-
key: string;
|
|
256
|
-
required: boolean;
|
|
257
|
-
priceCents: number;
|
|
258
|
-
helpText?: string | undefined;
|
|
259
|
-
}[] | undefined;
|
|
260
|
-
}, {
|
|
261
|
-
name: string;
|
|
262
|
-
slug: string;
|
|
263
|
-
options?: {
|
|
264
|
-
values: string[];
|
|
265
|
-
name: string;
|
|
266
|
-
images?: Record<string, string> | undefined;
|
|
267
|
-
}[] | undefined;
|
|
268
|
-
status?: "active" | "draft" | "archived" | undefined;
|
|
269
|
-
description?: string | undefined;
|
|
270
|
-
featured?: boolean | undefined;
|
|
271
|
-
order?: number | undefined;
|
|
272
|
-
variants?: {
|
|
273
|
-
key: string;
|
|
274
|
-
active?: boolean | undefined;
|
|
275
|
-
priceCents?: number | undefined;
|
|
276
|
-
stock?: number | undefined;
|
|
277
|
-
sku?: string | undefined;
|
|
278
|
-
}[] | undefined;
|
|
279
|
-
images?: string[] | undefined;
|
|
280
|
-
priceCents?: number | undefined;
|
|
281
|
-
stock?: number | undefined;
|
|
282
|
-
categoryIds?: string[] | undefined;
|
|
283
|
-
compareAtCents?: number | undefined;
|
|
284
|
-
vatRate?: 0 | 9 | 21 | undefined;
|
|
285
|
-
trackStock?: boolean | undefined;
|
|
286
|
-
personalization?: {
|
|
287
|
-
type: "image" | "text";
|
|
288
|
-
label: string;
|
|
289
|
-
key: string;
|
|
290
|
-
maxLength?: number | undefined;
|
|
291
|
-
required?: boolean | undefined;
|
|
292
|
-
priceCents?: number | undefined;
|
|
293
|
-
helpText?: string | undefined;
|
|
294
|
-
}[] | undefined;
|
|
68
|
+
export declare const ProductStatusSchema: z.ZodMiniEnum<{
|
|
69
|
+
active: "active";
|
|
70
|
+
archived: "archived";
|
|
71
|
+
draft: "draft";
|
|
295
72
|
}>;
|
|
73
|
+
export type ProductStatus = z.infer<typeof ProductStatusSchema>;
|
|
74
|
+
export declare const ProductSchema: z.ZodMiniObject<{
|
|
75
|
+
name: z.ZodMiniString<string>;
|
|
76
|
+
slug: z.ZodMiniString<string>;
|
|
77
|
+
description: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
78
|
+
categoryIds: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
79
|
+
images: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
80
|
+
priceCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
81
|
+
compareAtCents: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
82
|
+
vatRate: z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<21>, z.ZodMiniLiteral<9>, z.ZodMiniLiteral<0>]>>;
|
|
83
|
+
options: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniObject<{
|
|
84
|
+
name: z.ZodMiniString<string>;
|
|
85
|
+
values: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
86
|
+
images: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
87
|
+
}, z.core.$strip>>>;
|
|
88
|
+
variants: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniObject<{
|
|
89
|
+
key: z.ZodMiniString<string>;
|
|
90
|
+
priceCents: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
91
|
+
stock: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
92
|
+
sku: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
93
|
+
active: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
trackStock: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
96
|
+
stock: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
97
|
+
status: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
98
|
+
active: "active";
|
|
99
|
+
archived: "archived";
|
|
100
|
+
draft: "draft";
|
|
101
|
+
}>>;
|
|
102
|
+
order: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
103
|
+
featured: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
104
|
+
personalization: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
105
|
+
key: z.ZodMiniString<string>;
|
|
106
|
+
label: z.ZodMiniString<string>;
|
|
107
|
+
type: z.ZodMiniEnum<{
|
|
108
|
+
image: "image";
|
|
109
|
+
text: "text";
|
|
110
|
+
}>;
|
|
111
|
+
required: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
112
|
+
maxLength: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
113
|
+
priceCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
114
|
+
helpText: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
}, z.core.$strip>;
|
|
296
117
|
export type Product = z.infer<typeof ProductSchema>;
|
|
297
118
|
/** `sites/{siteId}/discountCodes/{CODE}` (doc-id = code in hoofdletters; editor beheert). */
|
|
298
|
-
export declare const DiscountCodeSchema: z.
|
|
299
|
-
code: z.
|
|
300
|
-
type: z.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
maxUses: z.
|
|
311
|
-
usedCount: z.
|
|
312
|
-
},
|
|
313
|
-
value: number;
|
|
314
|
-
code: string;
|
|
315
|
-
type: "fixed" | "percent";
|
|
316
|
-
active: boolean;
|
|
317
|
-
minOrderCents: number;
|
|
318
|
-
freeShipping: boolean;
|
|
319
|
-
maxUses: number;
|
|
320
|
-
usedCount: number;
|
|
321
|
-
startsAt?: string | undefined;
|
|
322
|
-
endsAt?: string | undefined;
|
|
323
|
-
}, {
|
|
324
|
-
value: number;
|
|
325
|
-
code: string;
|
|
326
|
-
type: "fixed" | "percent";
|
|
327
|
-
active?: boolean | undefined;
|
|
328
|
-
minOrderCents?: number | undefined;
|
|
329
|
-
freeShipping?: boolean | undefined;
|
|
330
|
-
startsAt?: string | undefined;
|
|
331
|
-
endsAt?: string | undefined;
|
|
332
|
-
maxUses?: number | undefined;
|
|
333
|
-
usedCount?: number | undefined;
|
|
334
|
-
}>;
|
|
119
|
+
export declare const DiscountCodeSchema: z.ZodMiniObject<{
|
|
120
|
+
code: z.ZodMiniString<string>;
|
|
121
|
+
type: z.ZodMiniEnum<{
|
|
122
|
+
fixed: "fixed";
|
|
123
|
+
percent: "percent";
|
|
124
|
+
}>;
|
|
125
|
+
value: z.ZodMiniNumberFormat;
|
|
126
|
+
minOrderCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
127
|
+
freeShipping: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
128
|
+
active: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
129
|
+
startsAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
130
|
+
endsAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
+
maxUses: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
132
|
+
usedCount: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
133
|
+
}, z.core.$strip>;
|
|
335
134
|
export type DiscountCode = z.infer<typeof DiscountCodeSchema>;
|
|
336
|
-
export { MAIL_TEMPLATE_KEYS, MAIL_TEMPLATE_DEFS, MailTemplateSchema, MailTemplatesSchema, type MailTemplateKey, type MailTemplates, } from "./mail";
|
|
337
|
-
export declare const OrderStatusSchema: z.
|
|
135
|
+
export { MAIL_TEMPLATE_KEYS, MAIL_TEMPLATE_DEFS, MailTemplateSchema, MailTemplatesSchema, type MailTemplateKey, type MailTemplates, } from "./mail.js";
|
|
136
|
+
export declare const OrderStatusSchema: z.ZodMiniEnum<{
|
|
137
|
+
cancelled: "cancelled";
|
|
138
|
+
paid: "paid";
|
|
139
|
+
pending: "pending";
|
|
140
|
+
refunded: "refunded";
|
|
141
|
+
shipped: "shipped";
|
|
142
|
+
}>;
|
|
338
143
|
export type OrderStatus = z.infer<typeof OrderStatusSchema>;
|
|
339
144
|
/** Orderregel: snapshot van naam/prijs op besteldatum — blijft kloppen als het product wijzigt. */
|
|
340
|
-
export declare const OrderItemSchema: z.
|
|
341
|
-
kind: z.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
imagePath: z.
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
text?: string | undefined;
|
|
358
|
-
imagePath?: string | undefined;
|
|
359
|
-
fileName?: string | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
text?: string | undefined;
|
|
362
|
-
imagePath?: string | undefined;
|
|
363
|
-
fileName?: string | undefined;
|
|
364
|
-
}>>>;
|
|
365
|
-
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
name: string;
|
|
367
|
-
kind: "product" | "donation";
|
|
368
|
-
vatRate: 0 | 9 | 21;
|
|
369
|
-
qty: number;
|
|
370
|
-
unitPriceCents: number;
|
|
371
|
-
personalization?: Record<string, {
|
|
372
|
-
text?: string | undefined;
|
|
373
|
-
imagePath?: string | undefined;
|
|
374
|
-
fileName?: string | undefined;
|
|
375
|
-
}> | undefined;
|
|
376
|
-
productId?: string | undefined;
|
|
377
|
-
variantKey?: string | undefined;
|
|
378
|
-
}, {
|
|
379
|
-
name: string;
|
|
380
|
-
qty: number;
|
|
381
|
-
unitPriceCents: number;
|
|
382
|
-
kind?: "product" | "donation" | undefined;
|
|
383
|
-
vatRate?: 0 | 9 | 21 | undefined;
|
|
384
|
-
personalization?: Record<string, {
|
|
385
|
-
text?: string | undefined;
|
|
386
|
-
imagePath?: string | undefined;
|
|
387
|
-
fileName?: string | undefined;
|
|
388
|
-
}> | undefined;
|
|
389
|
-
productId?: string | undefined;
|
|
390
|
-
variantKey?: string | undefined;
|
|
391
|
-
}>;
|
|
145
|
+
export declare const OrderItemSchema: z.ZodMiniObject<{
|
|
146
|
+
kind: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
147
|
+
donation: "donation";
|
|
148
|
+
product: "product";
|
|
149
|
+
}>>;
|
|
150
|
+
productId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
151
|
+
name: z.ZodMiniString<string>;
|
|
152
|
+
variantKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
153
|
+
qty: z.ZodMiniNumberFormat;
|
|
154
|
+
unitPriceCents: z.ZodMiniNumberFormat;
|
|
155
|
+
vatRate: z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<21>, z.ZodMiniLiteral<9>, z.ZodMiniLiteral<0>]>>;
|
|
156
|
+
personalization: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
157
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
158
|
+
imagePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
159
|
+
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
392
162
|
export type OrderItem = z.infer<typeof OrderItemSchema>;
|
|
393
|
-
export declare const OrderAddressSchema: z.
|
|
394
|
-
address: z.
|
|
395
|
-
zip: z.
|
|
396
|
-
city: z.
|
|
397
|
-
country: z.
|
|
398
|
-
},
|
|
399
|
-
address: string;
|
|
400
|
-
country: string;
|
|
401
|
-
zip: string;
|
|
402
|
-
city: string;
|
|
403
|
-
}, {
|
|
404
|
-
address: string;
|
|
405
|
-
zip: string;
|
|
406
|
-
city: string;
|
|
407
|
-
country?: string | undefined;
|
|
408
|
-
}>;
|
|
163
|
+
export declare const OrderAddressSchema: z.ZodMiniObject<{
|
|
164
|
+
address: z.ZodMiniString<string>;
|
|
165
|
+
zip: z.ZodMiniString<string>;
|
|
166
|
+
city: z.ZodMiniString<string>;
|
|
167
|
+
country: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
409
169
|
export type OrderAddress = z.infer<typeof OrderAddressSchema>;
|
|
410
|
-
export declare const OrderCustomerSchema: z.
|
|
411
|
-
email: z.
|
|
412
|
-
name: z.
|
|
413
|
-
phone: z.
|
|
414
|
-
},
|
|
415
|
-
name: string;
|
|
416
|
-
email: string;
|
|
417
|
-
phone?: string | undefined;
|
|
418
|
-
}, {
|
|
419
|
-
name: string;
|
|
420
|
-
email: string;
|
|
421
|
-
phone?: string | undefined;
|
|
422
|
-
}>;
|
|
170
|
+
export declare const OrderCustomerSchema: z.ZodMiniObject<{
|
|
171
|
+
email: z.ZodMiniEmail;
|
|
172
|
+
name: z.ZodMiniString<string>;
|
|
173
|
+
phone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
423
175
|
export type OrderCustomer = z.infer<typeof OrderCustomerSchema>;
|
|
424
176
|
/** Volledige order zoals door Functions geschreven (timestamps komen daarbovenop). */
|
|
425
|
-
export declare const OrderSchema: z.
|
|
426
|
-
number: z.
|
|
427
|
-
status: z.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
qty: z.ZodNumber;
|
|
434
|
-
/** Incl. eventuele personalisatie-meerprijs. */
|
|
435
|
-
unitPriceCents: z.ZodNumber;
|
|
436
|
-
vatRate: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<21>, z.ZodLiteral<9>, z.ZodLiteral<0>]>>;
|
|
437
|
-
/** 5.6: ingevulde personalisatie ("Naam: Boaz", upload-pad). */
|
|
438
|
-
personalization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
439
|
-
text: z.ZodOptional<z.ZodString>;
|
|
440
|
-
/** Storage-pad uit de uploadPersonalization-callable (géén vrije URL). */
|
|
441
|
-
imagePath: z.ZodOptional<z.ZodString>;
|
|
442
|
-
/** Oorspronkelijke bestandsnaam (weergave in beheer/mail). */
|
|
443
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
444
|
-
}, "strip", z.ZodTypeAny, {
|
|
445
|
-
text?: string | undefined;
|
|
446
|
-
imagePath?: string | undefined;
|
|
447
|
-
fileName?: string | undefined;
|
|
448
|
-
}, {
|
|
449
|
-
text?: string | undefined;
|
|
450
|
-
imagePath?: string | undefined;
|
|
451
|
-
fileName?: string | undefined;
|
|
452
|
-
}>>>;
|
|
453
|
-
}, "strip", z.ZodTypeAny, {
|
|
454
|
-
name: string;
|
|
455
|
-
kind: "product" | "donation";
|
|
456
|
-
vatRate: 0 | 9 | 21;
|
|
457
|
-
qty: number;
|
|
458
|
-
unitPriceCents: number;
|
|
459
|
-
personalization?: Record<string, {
|
|
460
|
-
text?: string | undefined;
|
|
461
|
-
imagePath?: string | undefined;
|
|
462
|
-
fileName?: string | undefined;
|
|
463
|
-
}> | undefined;
|
|
464
|
-
productId?: string | undefined;
|
|
465
|
-
variantKey?: string | undefined;
|
|
466
|
-
}, {
|
|
467
|
-
name: string;
|
|
468
|
-
qty: number;
|
|
469
|
-
unitPriceCents: number;
|
|
470
|
-
kind?: "product" | "donation" | undefined;
|
|
471
|
-
vatRate?: 0 | 9 | 21 | undefined;
|
|
472
|
-
personalization?: Record<string, {
|
|
473
|
-
text?: string | undefined;
|
|
474
|
-
imagePath?: string | undefined;
|
|
475
|
-
fileName?: string | undefined;
|
|
476
|
-
}> | undefined;
|
|
477
|
-
productId?: string | undefined;
|
|
478
|
-
variantKey?: string | undefined;
|
|
479
|
-
}>, "many">;
|
|
480
|
-
amount: z.ZodObject<{
|
|
481
|
-
itemsCents: z.ZodNumber;
|
|
482
|
-
shippingCents: z.ZodNumber;
|
|
483
|
-
/** 5.6: toegepaste korting (0 = geen). */
|
|
484
|
-
discountCents: z.ZodDefault<z.ZodNumber>;
|
|
485
|
-
totalCents: z.ZodNumber;
|
|
486
|
-
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
itemsCents: number;
|
|
488
|
-
shippingCents: number;
|
|
489
|
-
discountCents: number;
|
|
490
|
-
totalCents: number;
|
|
491
|
-
}, {
|
|
492
|
-
itemsCents: number;
|
|
493
|
-
shippingCents: number;
|
|
494
|
-
totalCents: number;
|
|
495
|
-
discountCents?: number | undefined;
|
|
177
|
+
export declare const OrderSchema: z.ZodMiniObject<{
|
|
178
|
+
number: z.ZodMiniString<string>;
|
|
179
|
+
status: z.ZodMiniEnum<{
|
|
180
|
+
cancelled: "cancelled";
|
|
181
|
+
paid: "paid";
|
|
182
|
+
pending: "pending";
|
|
183
|
+
refunded: "refunded";
|
|
184
|
+
shipped: "shipped";
|
|
496
185
|
}>;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}>>;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
stripe: z.ZodDefault<z.ZodObject<{
|
|
549
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
550
|
-
paymentIntentId: z.ZodOptional<z.ZodString>;
|
|
551
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
sessionId?: string | undefined;
|
|
553
|
-
paymentIntentId?: string | undefined;
|
|
554
|
-
}, {
|
|
555
|
-
sessionId?: string | undefined;
|
|
556
|
-
paymentIntentId?: string | undefined;
|
|
557
|
-
}>>;
|
|
558
|
-
}, "strip", z.ZodTypeAny, {
|
|
559
|
-
number: string;
|
|
560
|
-
status: "pending" | "paid" | "shipped" | "cancelled" | "refunded";
|
|
561
|
-
items: {
|
|
562
|
-
name: string;
|
|
563
|
-
kind: "product" | "donation";
|
|
564
|
-
vatRate: 0 | 9 | 21;
|
|
565
|
-
qty: number;
|
|
566
|
-
unitPriceCents: number;
|
|
567
|
-
personalization?: Record<string, {
|
|
568
|
-
text?: string | undefined;
|
|
569
|
-
imagePath?: string | undefined;
|
|
570
|
-
fileName?: string | undefined;
|
|
571
|
-
}> | undefined;
|
|
572
|
-
productId?: string | undefined;
|
|
573
|
-
variantKey?: string | undefined;
|
|
574
|
-
}[];
|
|
575
|
-
amount: {
|
|
576
|
-
itemsCents: number;
|
|
577
|
-
shippingCents: number;
|
|
578
|
-
discountCents: number;
|
|
579
|
-
totalCents: number;
|
|
580
|
-
};
|
|
581
|
-
customer: {
|
|
582
|
-
name: string;
|
|
583
|
-
email: string;
|
|
584
|
-
phone?: string | undefined;
|
|
585
|
-
};
|
|
586
|
-
stripe: {
|
|
587
|
-
sessionId?: string | undefined;
|
|
588
|
-
paymentIntentId?: string | undefined;
|
|
589
|
-
};
|
|
590
|
-
note?: string | undefined;
|
|
591
|
-
shipping?: {
|
|
592
|
-
address: string;
|
|
593
|
-
country: string;
|
|
594
|
-
zip: string;
|
|
595
|
-
city: string;
|
|
596
|
-
} | undefined;
|
|
597
|
-
discount?: {
|
|
598
|
-
value: number;
|
|
599
|
-
code: string;
|
|
600
|
-
type: "fixed" | "percent";
|
|
601
|
-
freeShipping: boolean;
|
|
602
|
-
} | undefined;
|
|
603
|
-
trackingUrl?: string | undefined;
|
|
604
|
-
invoicePath?: string | undefined;
|
|
605
|
-
}, {
|
|
606
|
-
number: string;
|
|
607
|
-
status: "pending" | "paid" | "shipped" | "cancelled" | "refunded";
|
|
608
|
-
items: {
|
|
609
|
-
name: string;
|
|
610
|
-
qty: number;
|
|
611
|
-
unitPriceCents: number;
|
|
612
|
-
kind?: "product" | "donation" | undefined;
|
|
613
|
-
vatRate?: 0 | 9 | 21 | undefined;
|
|
614
|
-
personalization?: Record<string, {
|
|
615
|
-
text?: string | undefined;
|
|
616
|
-
imagePath?: string | undefined;
|
|
617
|
-
fileName?: string | undefined;
|
|
618
|
-
}> | undefined;
|
|
619
|
-
productId?: string | undefined;
|
|
620
|
-
variantKey?: string | undefined;
|
|
621
|
-
}[];
|
|
622
|
-
amount: {
|
|
623
|
-
itemsCents: number;
|
|
624
|
-
shippingCents: number;
|
|
625
|
-
totalCents: number;
|
|
626
|
-
discountCents?: number | undefined;
|
|
627
|
-
};
|
|
628
|
-
customer: {
|
|
629
|
-
name: string;
|
|
630
|
-
email: string;
|
|
631
|
-
phone?: string | undefined;
|
|
632
|
-
};
|
|
633
|
-
note?: string | undefined;
|
|
634
|
-
shipping?: {
|
|
635
|
-
address: string;
|
|
636
|
-
zip: string;
|
|
637
|
-
city: string;
|
|
638
|
-
country?: string | undefined;
|
|
639
|
-
} | undefined;
|
|
640
|
-
discount?: {
|
|
641
|
-
value: number;
|
|
642
|
-
code: string;
|
|
643
|
-
type: "fixed" | "percent";
|
|
644
|
-
freeShipping?: boolean | undefined;
|
|
645
|
-
} | undefined;
|
|
646
|
-
trackingUrl?: string | undefined;
|
|
647
|
-
invoicePath?: string | undefined;
|
|
648
|
-
stripe?: {
|
|
649
|
-
sessionId?: string | undefined;
|
|
650
|
-
paymentIntentId?: string | undefined;
|
|
651
|
-
} | undefined;
|
|
652
|
-
}>;
|
|
186
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
187
|
+
kind: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
188
|
+
donation: "donation";
|
|
189
|
+
product: "product";
|
|
190
|
+
}>>;
|
|
191
|
+
productId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
192
|
+
name: z.ZodMiniString<string>;
|
|
193
|
+
variantKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
194
|
+
qty: z.ZodMiniNumberFormat;
|
|
195
|
+
unitPriceCents: z.ZodMiniNumberFormat;
|
|
196
|
+
vatRate: z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<21>, z.ZodMiniLiteral<9>, z.ZodMiniLiteral<0>]>>;
|
|
197
|
+
personalization: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
198
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
199
|
+
imagePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
200
|
+
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
201
|
+
}, z.core.$strip>>>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
amount: z.ZodMiniObject<{
|
|
204
|
+
itemsCents: z.ZodMiniNumberFormat;
|
|
205
|
+
shippingCents: z.ZodMiniNumberFormat;
|
|
206
|
+
discountCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
207
|
+
totalCents: z.ZodMiniNumberFormat;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
discount: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
210
|
+
code: z.ZodMiniString<string>;
|
|
211
|
+
type: z.ZodMiniEnum<{
|
|
212
|
+
fixed: "fixed";
|
|
213
|
+
percent: "percent";
|
|
214
|
+
}>;
|
|
215
|
+
value: z.ZodMiniNumberFormat;
|
|
216
|
+
freeShipping: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
customer: z.ZodMiniObject<{
|
|
219
|
+
email: z.ZodMiniEmail;
|
|
220
|
+
name: z.ZodMiniString<string>;
|
|
221
|
+
phone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
shipping: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
224
|
+
address: z.ZodMiniString<string>;
|
|
225
|
+
zip: z.ZodMiniString<string>;
|
|
226
|
+
city: z.ZodMiniString<string>;
|
|
227
|
+
country: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
note: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
230
|
+
trackingUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
231
|
+
invoicePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
232
|
+
stripe: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
233
|
+
sessionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
234
|
+
paymentIntentId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
653
237
|
export type Order = z.infer<typeof OrderSchema>;
|
|
654
238
|
/**
|
|
655
239
|
* Input van de `createOrder`-callable. Client-prijzen worden NOOIT vertrouwd: de functie
|
|
656
240
|
* herrekent alles tegen de opgeslagen product-docs. Alleen `donationCents` komt van de
|
|
657
241
|
* client (binnen de per-site ingestelde min/max van het donatie-block).
|
|
658
242
|
*/
|
|
659
|
-
export declare const CreateOrderItemInputSchema: z.
|
|
660
|
-
productId: z.
|
|
661
|
-
variantKey: z.
|
|
662
|
-
qty: z.
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
donationCents?: number | undefined;
|
|
701
|
-
}>;
|
|
702
|
-
export declare const CreateOrderInputSchema: z.ZodObject<{
|
|
703
|
-
siteId: z.ZodString;
|
|
704
|
-
items: z.ZodArray<z.ZodObject<{
|
|
705
|
-
productId: z.ZodOptional<z.ZodString>;
|
|
706
|
-
variantKey: z.ZodOptional<z.ZodString>;
|
|
707
|
-
qty: z.ZodDefault<z.ZodNumber>;
|
|
708
|
-
/** Alleen voor donaties (zonder productId). */
|
|
709
|
-
donationCents: z.ZodOptional<z.ZodNumber>;
|
|
710
|
-
/** 5.6: personalisatie-invoer (gevalideerd tegen product.personalization). */
|
|
711
|
-
personalization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
712
|
-
text: z.ZodOptional<z.ZodString>;
|
|
713
|
-
/** Storage-pad uit de uploadPersonalization-callable (géén vrije URL). */
|
|
714
|
-
imagePath: z.ZodOptional<z.ZodString>;
|
|
715
|
-
/** Oorspronkelijke bestandsnaam (weergave in beheer/mail). */
|
|
716
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
717
|
-
}, "strip", z.ZodTypeAny, {
|
|
718
|
-
text?: string | undefined;
|
|
719
|
-
imagePath?: string | undefined;
|
|
720
|
-
fileName?: string | undefined;
|
|
721
|
-
}, {
|
|
722
|
-
text?: string | undefined;
|
|
723
|
-
imagePath?: string | undefined;
|
|
724
|
-
fileName?: string | undefined;
|
|
725
|
-
}>>>;
|
|
726
|
-
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
qty: number;
|
|
728
|
-
personalization?: Record<string, {
|
|
729
|
-
text?: string | undefined;
|
|
730
|
-
imagePath?: string | undefined;
|
|
731
|
-
fileName?: string | undefined;
|
|
732
|
-
}> | undefined;
|
|
733
|
-
productId?: string | undefined;
|
|
734
|
-
variantKey?: string | undefined;
|
|
735
|
-
donationCents?: number | undefined;
|
|
736
|
-
}, {
|
|
737
|
-
personalization?: Record<string, {
|
|
738
|
-
text?: string | undefined;
|
|
739
|
-
imagePath?: string | undefined;
|
|
740
|
-
fileName?: string | undefined;
|
|
741
|
-
}> | undefined;
|
|
742
|
-
productId?: string | undefined;
|
|
743
|
-
variantKey?: string | undefined;
|
|
744
|
-
qty?: number | undefined;
|
|
745
|
-
donationCents?: number | undefined;
|
|
746
|
-
}>, "many">;
|
|
747
|
-
customer: z.ZodObject<{
|
|
748
|
-
email: z.ZodString;
|
|
749
|
-
name: z.ZodString;
|
|
750
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
751
|
-
}, "strip", z.ZodTypeAny, {
|
|
752
|
-
name: string;
|
|
753
|
-
email: string;
|
|
754
|
-
phone?: string | undefined;
|
|
755
|
-
}, {
|
|
756
|
-
name: string;
|
|
757
|
-
email: string;
|
|
758
|
-
phone?: string | undefined;
|
|
759
|
-
}>;
|
|
760
|
-
shipping: z.ZodOptional<z.ZodObject<{
|
|
761
|
-
address: z.ZodString;
|
|
762
|
-
zip: z.ZodString;
|
|
763
|
-
city: z.ZodString;
|
|
764
|
-
country: z.ZodDefault<z.ZodString>;
|
|
765
|
-
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
address: string;
|
|
767
|
-
country: string;
|
|
768
|
-
zip: string;
|
|
769
|
-
city: string;
|
|
770
|
-
}, {
|
|
771
|
-
address: string;
|
|
772
|
-
zip: string;
|
|
773
|
-
city: string;
|
|
774
|
-
country?: string | undefined;
|
|
775
|
-
}>>;
|
|
776
|
-
note: z.ZodOptional<z.ZodString>;
|
|
777
|
-
/** 5.6: kortingscode (server-side gevalideerd en verrekend). */
|
|
778
|
-
discountCode: z.ZodOptional<z.ZodString>;
|
|
779
|
-
/** Paden op de klantsite waarheen Stripe terug redirect. */
|
|
780
|
-
successPath: z.ZodDefault<z.ZodString>;
|
|
781
|
-
cancelPath: z.ZodDefault<z.ZodString>;
|
|
782
|
-
/** Honeypot — moet leeg zijn (bot-detectie). */
|
|
783
|
-
_hp: z.ZodOptional<z.ZodString>;
|
|
784
|
-
}, "strip", z.ZodTypeAny, {
|
|
785
|
-
items: {
|
|
786
|
-
qty: number;
|
|
787
|
-
personalization?: Record<string, {
|
|
788
|
-
text?: string | undefined;
|
|
789
|
-
imagePath?: string | undefined;
|
|
790
|
-
fileName?: string | undefined;
|
|
791
|
-
}> | undefined;
|
|
792
|
-
productId?: string | undefined;
|
|
793
|
-
variantKey?: string | undefined;
|
|
794
|
-
donationCents?: number | undefined;
|
|
795
|
-
}[];
|
|
796
|
-
siteId: string;
|
|
797
|
-
successPath: string;
|
|
798
|
-
customer: {
|
|
799
|
-
name: string;
|
|
800
|
-
email: string;
|
|
801
|
-
phone?: string | undefined;
|
|
802
|
-
};
|
|
803
|
-
cancelPath: string;
|
|
804
|
-
note?: string | undefined;
|
|
805
|
-
_hp?: string | undefined;
|
|
806
|
-
shipping?: {
|
|
807
|
-
address: string;
|
|
808
|
-
country: string;
|
|
809
|
-
zip: string;
|
|
810
|
-
city: string;
|
|
811
|
-
} | undefined;
|
|
812
|
-
discountCode?: string | undefined;
|
|
813
|
-
}, {
|
|
814
|
-
items: {
|
|
815
|
-
personalization?: Record<string, {
|
|
816
|
-
text?: string | undefined;
|
|
817
|
-
imagePath?: string | undefined;
|
|
818
|
-
fileName?: string | undefined;
|
|
819
|
-
}> | undefined;
|
|
820
|
-
productId?: string | undefined;
|
|
821
|
-
variantKey?: string | undefined;
|
|
822
|
-
qty?: number | undefined;
|
|
823
|
-
donationCents?: number | undefined;
|
|
824
|
-
}[];
|
|
825
|
-
siteId: string;
|
|
826
|
-
customer: {
|
|
827
|
-
name: string;
|
|
828
|
-
email: string;
|
|
829
|
-
phone?: string | undefined;
|
|
830
|
-
};
|
|
831
|
-
note?: string | undefined;
|
|
832
|
-
_hp?: string | undefined;
|
|
833
|
-
shipping?: {
|
|
834
|
-
address: string;
|
|
835
|
-
zip: string;
|
|
836
|
-
city: string;
|
|
837
|
-
country?: string | undefined;
|
|
838
|
-
} | undefined;
|
|
839
|
-
successPath?: string | undefined;
|
|
840
|
-
discountCode?: string | undefined;
|
|
841
|
-
cancelPath?: string | undefined;
|
|
842
|
-
}>;
|
|
243
|
+
export declare const CreateOrderItemInputSchema: z.ZodMiniObject<{
|
|
244
|
+
productId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
245
|
+
variantKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
246
|
+
qty: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
247
|
+
donationCents: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
248
|
+
personalization: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
249
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
250
|
+
imagePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
251
|
+
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
252
|
+
}, z.core.$strip>>>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export declare const CreateOrderInputSchema: z.ZodMiniObject<{
|
|
255
|
+
siteId: z.ZodMiniString<string>;
|
|
256
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
257
|
+
productId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
258
|
+
variantKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
259
|
+
qty: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
260
|
+
donationCents: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
261
|
+
personalization: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
262
|
+
text: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
263
|
+
imagePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
|
+
fileName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
}, z.core.$strip>>;
|
|
267
|
+
customer: z.ZodMiniObject<{
|
|
268
|
+
email: z.ZodMiniEmail;
|
|
269
|
+
name: z.ZodMiniString<string>;
|
|
270
|
+
phone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
shipping: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
273
|
+
address: z.ZodMiniString<string>;
|
|
274
|
+
zip: z.ZodMiniString<string>;
|
|
275
|
+
city: z.ZodMiniString<string>;
|
|
276
|
+
country: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
note: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
279
|
+
discountCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
280
|
+
successPath: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
281
|
+
cancelPath: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
282
|
+
_hp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
283
|
+
}, z.core.$strip>;
|
|
843
284
|
export type CreateOrderInput = z.infer<typeof CreateOrderInputSchema>;
|
|
844
|
-
export declare const ShopCategoriesBlockSchema: z.
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
align
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}>>;
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
align
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
width: z.ZodOptional<z.ZodEnum<["container", "full", "narrow"]>>;
|
|
915
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
916
|
-
anchorId: z.ZodOptional<z.ZodString>;
|
|
917
|
-
animate: z.ZodOptional<z.ZodEnum<["fade", "up"]>>;
|
|
918
|
-
}, "strip", z.ZodTypeAny, {
|
|
919
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
920
|
-
background?: string | undefined;
|
|
921
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
922
|
-
align?: "left" | "center" | "right" | undefined;
|
|
923
|
-
anchorId?: string | undefined;
|
|
924
|
-
animate?: "fade" | "up" | undefined;
|
|
925
|
-
}, {
|
|
926
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
927
|
-
background?: string | undefined;
|
|
928
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
929
|
-
align?: "left" | "center" | "right" | undefined;
|
|
930
|
-
anchorId?: string | undefined;
|
|
931
|
-
animate?: "fade" | "up" | undefined;
|
|
932
|
-
}>>;
|
|
933
|
-
}, "strip", z.ZodTypeAny, {
|
|
934
|
-
sort: "name" | "order" | "priceAsc" | "priceDesc";
|
|
935
|
-
_type: "productGrid";
|
|
936
|
-
_key: string;
|
|
937
|
-
columns: number;
|
|
938
|
-
limit: number;
|
|
939
|
-
useQueryCategory: boolean;
|
|
940
|
-
featuredOnly: boolean;
|
|
941
|
-
showFilters: boolean;
|
|
942
|
-
_style?: {
|
|
943
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
944
|
-
background?: string | undefined;
|
|
945
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
946
|
-
align?: "left" | "center" | "right" | undefined;
|
|
947
|
-
anchorId?: string | undefined;
|
|
948
|
-
animate?: "fade" | "up" | undefined;
|
|
949
|
-
} | undefined;
|
|
950
|
-
heading?: string | undefined;
|
|
951
|
-
categorySlug?: string | undefined;
|
|
952
|
-
}, {
|
|
953
|
-
_type: "productGrid";
|
|
954
|
-
_key: string;
|
|
955
|
-
sort?: "name" | "order" | "priceAsc" | "priceDesc" | undefined;
|
|
956
|
-
_style?: {
|
|
957
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
958
|
-
background?: string | undefined;
|
|
959
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
960
|
-
align?: "left" | "center" | "right" | undefined;
|
|
961
|
-
anchorId?: string | undefined;
|
|
962
|
-
animate?: "fade" | "up" | undefined;
|
|
963
|
-
} | undefined;
|
|
964
|
-
columns?: number | undefined;
|
|
965
|
-
heading?: string | undefined;
|
|
966
|
-
limit?: number | undefined;
|
|
967
|
-
categorySlug?: string | undefined;
|
|
968
|
-
useQueryCategory?: boolean | undefined;
|
|
969
|
-
featuredOnly?: boolean | undefined;
|
|
970
|
-
showFilters?: boolean | undefined;
|
|
971
|
-
}>;
|
|
972
|
-
export declare const ProductDetailBlockSchema: z.ZodObject<{
|
|
973
|
-
_type: z.ZodLiteral<"productDetail">;
|
|
974
|
-
/** Vast product (slug); leeg → product uit `?p=` in de URL (één generieke detailpagina). */
|
|
975
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
976
|
-
/** 5.6: "Ook leuk"-rij met producten uit dezelfde categorie. */
|
|
977
|
-
showRelated: z.ZodDefault<z.ZodBoolean>;
|
|
978
|
-
_key: z.ZodString;
|
|
979
|
-
_style: z.ZodOptional<z.ZodObject<{
|
|
980
|
-
paddingY: z.ZodOptional<z.ZodEnum<["none", "sm", "md", "lg", "xl"]>>;
|
|
981
|
-
background: z.ZodOptional<z.ZodString>;
|
|
982
|
-
width: z.ZodOptional<z.ZodEnum<["container", "full", "narrow"]>>;
|
|
983
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
984
|
-
anchorId: z.ZodOptional<z.ZodString>;
|
|
985
|
-
animate: z.ZodOptional<z.ZodEnum<["fade", "up"]>>;
|
|
986
|
-
}, "strip", z.ZodTypeAny, {
|
|
987
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
988
|
-
background?: string | undefined;
|
|
989
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
990
|
-
align?: "left" | "center" | "right" | undefined;
|
|
991
|
-
anchorId?: string | undefined;
|
|
992
|
-
animate?: "fade" | "up" | undefined;
|
|
993
|
-
}, {
|
|
994
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
995
|
-
background?: string | undefined;
|
|
996
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
997
|
-
align?: "left" | "center" | "right" | undefined;
|
|
998
|
-
anchorId?: string | undefined;
|
|
999
|
-
animate?: "fade" | "up" | undefined;
|
|
285
|
+
export declare const ShopCategoriesBlockSchema: z.ZodMiniObject<{
|
|
286
|
+
_key: z.ZodMiniString<string>;
|
|
287
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
288
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
289
|
+
lg: "lg";
|
|
290
|
+
md: "md";
|
|
291
|
+
none: "none";
|
|
292
|
+
sm: "sm";
|
|
293
|
+
xl: "xl";
|
|
294
|
+
}>>;
|
|
295
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
296
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
297
|
+
container: "container";
|
|
298
|
+
full: "full";
|
|
299
|
+
narrow: "narrow";
|
|
300
|
+
}>>;
|
|
301
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
302
|
+
center: "center";
|
|
303
|
+
left: "left";
|
|
304
|
+
right: "right";
|
|
305
|
+
}>>;
|
|
306
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
307
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
308
|
+
fade: "fade";
|
|
309
|
+
up: "up";
|
|
310
|
+
}>>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
_type: z.ZodMiniLiteral<"shopCategories">;
|
|
313
|
+
heading: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
314
|
+
columns: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
export declare const ProductGridBlockSchema: z.ZodMiniObject<{
|
|
317
|
+
_key: z.ZodMiniString<string>;
|
|
318
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
319
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
320
|
+
lg: "lg";
|
|
321
|
+
md: "md";
|
|
322
|
+
none: "none";
|
|
323
|
+
sm: "sm";
|
|
324
|
+
xl: "xl";
|
|
325
|
+
}>>;
|
|
326
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
327
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
328
|
+
container: "container";
|
|
329
|
+
full: "full";
|
|
330
|
+
narrow: "narrow";
|
|
331
|
+
}>>;
|
|
332
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
333
|
+
center: "center";
|
|
334
|
+
left: "left";
|
|
335
|
+
right: "right";
|
|
336
|
+
}>>;
|
|
337
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
338
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
339
|
+
fade: "fade";
|
|
340
|
+
up: "up";
|
|
341
|
+
}>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
_type: z.ZodMiniLiteral<"productGrid">;
|
|
344
|
+
heading: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
345
|
+
categorySlug: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
346
|
+
useQueryCategory: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
347
|
+
featuredOnly: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
348
|
+
columns: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
349
|
+
limit: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
350
|
+
sort: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
351
|
+
name: "name";
|
|
352
|
+
order: "order";
|
|
353
|
+
priceAsc: "priceAsc";
|
|
354
|
+
priceDesc: "priceDesc";
|
|
1000
355
|
}>>;
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
_style
|
|
1006
|
-
paddingY
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
align
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
animate?: "fade" | "up" | undefined;
|
|
1165
|
-
}>>;
|
|
1166
|
-
}, "strip", z.ZodTypeAny, {
|
|
1167
|
-
_type: "donation";
|
|
1168
|
-
_key: string;
|
|
1169
|
-
buttonLabel: string;
|
|
1170
|
-
amountsCents: number[];
|
|
1171
|
-
allowCustom: boolean;
|
|
1172
|
-
customMinCents: number;
|
|
1173
|
-
customMaxCents: number;
|
|
1174
|
-
_style?: {
|
|
1175
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1176
|
-
background?: string | undefined;
|
|
1177
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1178
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1179
|
-
anchorId?: string | undefined;
|
|
1180
|
-
animate?: "fade" | "up" | undefined;
|
|
1181
|
-
} | undefined;
|
|
1182
|
-
heading?: string | undefined;
|
|
1183
|
-
introText?: string | undefined;
|
|
1184
|
-
}, {
|
|
1185
|
-
_type: "donation";
|
|
1186
|
-
_key: string;
|
|
1187
|
-
_style?: {
|
|
1188
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1189
|
-
background?: string | undefined;
|
|
1190
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1191
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1192
|
-
anchorId?: string | undefined;
|
|
1193
|
-
animate?: "fade" | "up" | undefined;
|
|
1194
|
-
} | undefined;
|
|
1195
|
-
buttonLabel?: string | undefined;
|
|
1196
|
-
heading?: string | undefined;
|
|
1197
|
-
introText?: string | undefined;
|
|
1198
|
-
amountsCents?: number[] | undefined;
|
|
1199
|
-
allowCustom?: boolean | undefined;
|
|
1200
|
-
customMinCents?: number | undefined;
|
|
1201
|
-
customMaxCents?: number | undefined;
|
|
1202
|
-
}>;
|
|
1203
|
-
export declare const OrderStatusBlockSchema: z.ZodObject<{
|
|
1204
|
-
_type: z.ZodLiteral<"orderStatus">;
|
|
1205
|
-
successTitle: z.ZodDefault<z.ZodString>;
|
|
1206
|
-
successText: z.ZodDefault<z.ZodString>;
|
|
1207
|
-
cancelledTitle: z.ZodDefault<z.ZodString>;
|
|
1208
|
-
cancelledText: z.ZodDefault<z.ZodString>;
|
|
1209
|
-
_key: z.ZodString;
|
|
1210
|
-
_style: z.ZodOptional<z.ZodObject<{
|
|
1211
|
-
paddingY: z.ZodOptional<z.ZodEnum<["none", "sm", "md", "lg", "xl"]>>;
|
|
1212
|
-
background: z.ZodOptional<z.ZodString>;
|
|
1213
|
-
width: z.ZodOptional<z.ZodEnum<["container", "full", "narrow"]>>;
|
|
1214
|
-
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1215
|
-
anchorId: z.ZodOptional<z.ZodString>;
|
|
1216
|
-
animate: z.ZodOptional<z.ZodEnum<["fade", "up"]>>;
|
|
1217
|
-
}, "strip", z.ZodTypeAny, {
|
|
1218
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1219
|
-
background?: string | undefined;
|
|
1220
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1221
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1222
|
-
anchorId?: string | undefined;
|
|
1223
|
-
animate?: "fade" | "up" | undefined;
|
|
1224
|
-
}, {
|
|
1225
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1226
|
-
background?: string | undefined;
|
|
1227
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1228
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1229
|
-
anchorId?: string | undefined;
|
|
1230
|
-
animate?: "fade" | "up" | undefined;
|
|
1231
|
-
}>>;
|
|
1232
|
-
}, "strip", z.ZodTypeAny, {
|
|
1233
|
-
_type: "orderStatus";
|
|
1234
|
-
_key: string;
|
|
1235
|
-
successTitle: string;
|
|
1236
|
-
successText: string;
|
|
1237
|
-
cancelledTitle: string;
|
|
1238
|
-
cancelledText: string;
|
|
1239
|
-
_style?: {
|
|
1240
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1241
|
-
background?: string | undefined;
|
|
1242
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1243
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1244
|
-
anchorId?: string | undefined;
|
|
1245
|
-
animate?: "fade" | "up" | undefined;
|
|
1246
|
-
} | undefined;
|
|
1247
|
-
}, {
|
|
1248
|
-
_type: "orderStatus";
|
|
1249
|
-
_key: string;
|
|
1250
|
-
_style?: {
|
|
1251
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1252
|
-
background?: string | undefined;
|
|
1253
|
-
width?: "container" | "full" | "narrow" | undefined;
|
|
1254
|
-
align?: "left" | "center" | "right" | undefined;
|
|
1255
|
-
anchorId?: string | undefined;
|
|
1256
|
-
animate?: "fade" | "up" | undefined;
|
|
1257
|
-
} | undefined;
|
|
1258
|
-
successTitle?: string | undefined;
|
|
1259
|
-
successText?: string | undefined;
|
|
1260
|
-
cancelledTitle?: string | undefined;
|
|
1261
|
-
cancelledText?: string | undefined;
|
|
1262
|
-
}>;
|
|
356
|
+
showFilters: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
export declare const ProductDetailBlockSchema: z.ZodMiniObject<{
|
|
359
|
+
_key: z.ZodMiniString<string>;
|
|
360
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
361
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
362
|
+
lg: "lg";
|
|
363
|
+
md: "md";
|
|
364
|
+
none: "none";
|
|
365
|
+
sm: "sm";
|
|
366
|
+
xl: "xl";
|
|
367
|
+
}>>;
|
|
368
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
369
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
370
|
+
container: "container";
|
|
371
|
+
full: "full";
|
|
372
|
+
narrow: "narrow";
|
|
373
|
+
}>>;
|
|
374
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
375
|
+
center: "center";
|
|
376
|
+
left: "left";
|
|
377
|
+
right: "right";
|
|
378
|
+
}>>;
|
|
379
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
380
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
381
|
+
fade: "fade";
|
|
382
|
+
up: "up";
|
|
383
|
+
}>>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
_type: z.ZodMiniLiteral<"productDetail">;
|
|
386
|
+
slug: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
387
|
+
showRelated: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
export declare const CartBlockSchema: z.ZodMiniObject<{
|
|
390
|
+
_key: z.ZodMiniString<string>;
|
|
391
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
392
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
393
|
+
lg: "lg";
|
|
394
|
+
md: "md";
|
|
395
|
+
none: "none";
|
|
396
|
+
sm: "sm";
|
|
397
|
+
xl: "xl";
|
|
398
|
+
}>>;
|
|
399
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
400
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
401
|
+
container: "container";
|
|
402
|
+
full: "full";
|
|
403
|
+
narrow: "narrow";
|
|
404
|
+
}>>;
|
|
405
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
406
|
+
center: "center";
|
|
407
|
+
left: "left";
|
|
408
|
+
right: "right";
|
|
409
|
+
}>>;
|
|
410
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
411
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
412
|
+
fade: "fade";
|
|
413
|
+
up: "up";
|
|
414
|
+
}>>;
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
|
+
_type: z.ZodMiniLiteral<"cart">;
|
|
417
|
+
heading: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export declare const CheckoutBlockSchema: z.ZodMiniObject<{
|
|
420
|
+
_key: z.ZodMiniString<string>;
|
|
421
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
422
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
423
|
+
lg: "lg";
|
|
424
|
+
md: "md";
|
|
425
|
+
none: "none";
|
|
426
|
+
sm: "sm";
|
|
427
|
+
xl: "xl";
|
|
428
|
+
}>>;
|
|
429
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
430
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
431
|
+
container: "container";
|
|
432
|
+
full: "full";
|
|
433
|
+
narrow: "narrow";
|
|
434
|
+
}>>;
|
|
435
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
436
|
+
center: "center";
|
|
437
|
+
left: "left";
|
|
438
|
+
right: "right";
|
|
439
|
+
}>>;
|
|
440
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
441
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
442
|
+
fade: "fade";
|
|
443
|
+
up: "up";
|
|
444
|
+
}>>;
|
|
445
|
+
}, z.core.$strip>>;
|
|
446
|
+
_type: z.ZodMiniLiteral<"checkout">;
|
|
447
|
+
heading: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
448
|
+
introText: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
449
|
+
}, z.core.$strip>;
|
|
450
|
+
export declare const DonationBlockSchema: z.ZodMiniObject<{
|
|
451
|
+
_key: z.ZodMiniString<string>;
|
|
452
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
453
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
454
|
+
lg: "lg";
|
|
455
|
+
md: "md";
|
|
456
|
+
none: "none";
|
|
457
|
+
sm: "sm";
|
|
458
|
+
xl: "xl";
|
|
459
|
+
}>>;
|
|
460
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
461
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
462
|
+
container: "container";
|
|
463
|
+
full: "full";
|
|
464
|
+
narrow: "narrow";
|
|
465
|
+
}>>;
|
|
466
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
467
|
+
center: "center";
|
|
468
|
+
left: "left";
|
|
469
|
+
right: "right";
|
|
470
|
+
}>>;
|
|
471
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
472
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
473
|
+
fade: "fade";
|
|
474
|
+
up: "up";
|
|
475
|
+
}>>;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
_type: z.ZodMiniLiteral<"donation">;
|
|
478
|
+
heading: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
479
|
+
introText: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
480
|
+
amountsCents: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniNumberFormat>>;
|
|
481
|
+
allowCustom: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
482
|
+
customMinCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
483
|
+
customMaxCents: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
|
|
484
|
+
buttonLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
export declare const OrderStatusBlockSchema: z.ZodMiniObject<{
|
|
487
|
+
_key: z.ZodMiniString<string>;
|
|
488
|
+
_style: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
489
|
+
paddingY: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
490
|
+
lg: "lg";
|
|
491
|
+
md: "md";
|
|
492
|
+
none: "none";
|
|
493
|
+
sm: "sm";
|
|
494
|
+
xl: "xl";
|
|
495
|
+
}>>;
|
|
496
|
+
background: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
497
|
+
width: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
498
|
+
container: "container";
|
|
499
|
+
full: "full";
|
|
500
|
+
narrow: "narrow";
|
|
501
|
+
}>>;
|
|
502
|
+
align: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
503
|
+
center: "center";
|
|
504
|
+
left: "left";
|
|
505
|
+
right: "right";
|
|
506
|
+
}>>;
|
|
507
|
+
anchorId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
508
|
+
animate: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
509
|
+
fade: "fade";
|
|
510
|
+
up: "up";
|
|
511
|
+
}>>;
|
|
512
|
+
}, z.core.$strip>>;
|
|
513
|
+
_type: z.ZodMiniLiteral<"orderStatus">;
|
|
514
|
+
successTitle: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
515
|
+
successText: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
516
|
+
cancelledTitle: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
517
|
+
cancelledText: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
518
|
+
}, z.core.$strip>;
|
|
1263
519
|
/** Variant-key uit gekozen optiewaarden, in optie-volgorde: ["68","Roze"] → "68|Roze". */
|
|
1264
520
|
export declare function variantKeyFor(values: string[]): string;
|
|
1265
521
|
/** Effectieve prijs van een product(-variant) in centen. */
|