@riverbankcms/sdk 0.85.0 → 0.89.1
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/{PreviewEditorSidebar-4PH35ZIE.mjs → PreviewEditorSidebar-JDR64FEC.mjs} +3 -3
- package/dist/{PreviewEditorUI-WHMCRJGM.mjs → PreviewEditorUI-67TMJMAF.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-ZBEMRV7N.mjs +8 -0
- package/dist/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/endpoints.d.ts +66 -14
- package/dist/_dts/api/src/index.d.ts +5 -2
- package/dist/_dts/api/src/launchReadiness.d.ts +3 -3
- package/dist/_dts/api/src/mailchimpIntegration.d.ts +215 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +35 -15
- package/dist/_dts/api/src/siteInfrastructure.d.ts +0 -14
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/siteMembers.d.ts +6 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -13
- package/dist/_dts/api/src/types.d.ts +7 -4
- package/dist/_dts/blocks/src/PageRenderer.d.ts +1 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +42 -42
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +300 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +63 -3
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +288 -288
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +288 -288
- package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +53 -1
- package/dist/_dts/blocks/src/system/icons/cta.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -2
- package/dist/_dts/blocks/src/system/icons/semantic.d.ts +3 -3
- package/dist/_dts/blocks/src/system/icons/svg.d.ts +72 -0
- package/dist/_dts/blocks/src/system/manifest/richTextSchema.d.ts +27 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +23 -23
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +11 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/loadStateError.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.state.d.ts +55 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.d.ts +4 -27
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFormConfig.state.d.ts +40 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +20 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.state.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.state.d.ts +39 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +11 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +24 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/MagicLinkForm.state.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ModalShell.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.state.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/formatting.d.ts +1 -1
- package/dist/_dts/content-model/src/entry-slots/types.d.ts +54 -0
- package/dist/_dts/content-model/src/referenceFields.d.ts +1 -1
- package/dist/_dts/core/src/branded.d.ts +7 -0
- package/dist/_dts/core/src/currency-format.d.ts +37 -2
- package/dist/_dts/core/src/event-pricing.d.ts +24 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/site-route-target.d.ts +40 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +705 -17
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -1
- package/dist/_dts/media-core/src/fileDomain.d.ts +4 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +160 -0
- package/dist/_dts/sdk/src/client/types.d.ts +35 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +3 -9
- package/dist/_dts/sdk/src/index.d.ts +3 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/three-pass-converter.d.ts +7 -18
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -3
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +4 -24
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +45 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +9 -9
- package/dist/_dts/theme-core/src/schema.d.ts +11 -11
- package/dist/{chunk-PYDHOMEO.mjs → chunk-7N46MZHI.mjs} +1 -1
- package/dist/{chunk-ZR2GQK2A.mjs → chunk-7YUAXONX.mjs} +1880 -588
- package/dist/{chunk-4QNLOTES.mjs → chunk-F645A5UV.mjs} +76 -14
- package/dist/{chunk-OCGTXHSO.mjs → chunk-HKJQERFR.mjs} +7 -7
- package/dist/{chunk-NFWGLRZZ.mjs → chunk-TGBJWKMP.mjs} +37 -3
- package/dist/{chunk-WFPYN7KA.mjs → chunk-ZQRBLCW5.mjs} +2 -2
- package/dist/cli/index.mjs +1075 -126
- package/dist/client/{accordion-2UZPBMYM.mjs → accordion-MUCVNGQ7.mjs} +2 -2
- package/dist/client/{bookingForm-36CWQUMV.mjs → bookingForm-PKD6EFIE.mjs} +193 -77
- package/dist/client/bookings.mjs +487 -197
- package/dist/client/{carousel-QH77HR6X.mjs → carousel-3TKQSNJC.mjs} +4 -3
- package/dist/client/cart-6XHSZK23.mjs +19 -0
- package/dist/client/checkout-FVSPM6FI.mjs +19 -0
- package/dist/client/{chunk-ZE5G642V.mjs → chunk-25W2EQUN.mjs} +75 -1
- package/dist/client/chunk-6N7YRNYU.mjs +183 -0
- package/dist/client/{chunk-4OXKTA3D.mjs → chunk-7DH35FGA.mjs} +2 -2
- package/dist/client/{chunk-3C2VTPWI.mjs → chunk-CQKKFEQD.mjs} +363 -66
- package/dist/client/{chunk-7UCLJ5SP.mjs → chunk-EY42X22F.mjs} +4 -7
- package/dist/client/{chunk-SYIJ5JO2.mjs → chunk-FHU6PFPM.mjs} +1 -1
- package/dist/client/{chunk-ZKUO52W3.mjs → chunk-LQFDYWPJ.mjs} +1 -1
- package/dist/client/chunk-RSQWWUAD.mjs +390 -0
- package/dist/client/{chunk-UDNSI5PY.mjs → chunk-STJ2NCQM.mjs} +2 -3
- package/dist/client/{chunk-VGDBVNOO.mjs → chunk-UQFY4AHX.mjs} +511 -406
- package/dist/client/{chunk-F5VRX5Y6.mjs → chunk-VGLXACVK.mjs} +1 -1
- package/dist/client/{chunk-DVNUDUVT.mjs → chunk-WBQG7VJA.mjs} +4 -1
- package/dist/client/{chunk-52CGCQ7B.mjs → chunk-ZJZZA5EP.mjs} +10 -80
- package/dist/client/{chunk-XSV6KW4D.mjs → chunk-ZT5XE7FK.mjs} +1 -1
- package/dist/client/client.mjs +5820 -4782
- package/dist/client/{courseRegistration-TMKU6ABO.mjs → courseRegistration-ATZSYDHM.mjs} +7 -7
- package/dist/client/{eventCalendar-G6TI32X6.mjs → eventCalendar-6T2UGKKP.mjs} +11 -11
- package/dist/client/{eventCombined-SCKEMNAR.mjs → eventCombined-Q4VANXVF.mjs} +11 -11
- package/dist/client/{eventDetails-XPIFXXPK.mjs → eventDetails-DW37E7VW.mjs} +11 -11
- package/dist/client/{eventListing-7QFMEMGT.mjs → eventListing-XURTSAUW.mjs} +11 -11
- package/dist/client/{eventRegistration-TOODSZUI.mjs → eventRegistration-MRKEVAXW.mjs} +11 -11
- package/dist/client/{form-MTCMVCZT.mjs → form-WZZFFGMU.mjs} +3 -3
- package/dist/client/{headerSection-Y5TMR3TW.mjs → headerSection-EQYVQBLM.mjs} +4 -4
- package/dist/client/hooks.mjs +1700 -1412
- package/dist/client/{locationMap-RH2LG7FZ.mjs → locationMap-MFF5VAZR.mjs} +3 -4
- package/dist/client/{newsletterForm-PCAIPFMA.mjs → newsletterForm-JQ77UYIE.mjs} +127 -43
- package/dist/client/{productDetail-OIGDR4YE.mjs → productDetail-25LMT3IZ.mjs} +9 -9
- package/dist/client/{productList-4MA5S2CX.mjs → productList-5ABEMKUG.mjs} +9 -9
- package/dist/client/rendering/client.mjs +3884 -3722
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +6774 -6331
- package/dist/client/shop-OMMQZ6YO.mjs +21 -0
- package/dist/preview-next/before-render.mjs +76 -14
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/preview-next/editor-chrome.css +56 -9
- package/dist/preview-next/middleware.mjs +76 -14
- package/dist/{sdk-runtime-QLOCYKVU.mjs → sdk-runtime-WNLBZ3ZH.mjs} +6 -6
- package/dist/server/components.mjs +2579 -2548
- package/dist/server/config-validation.mjs +1737 -1461
- package/dist/server/config.mjs +1737 -1461
- package/dist/server/data.mjs +1701 -1413
- package/dist/server/index.mjs +1048 -400
- package/dist/server/next.mjs +3602 -2858
- package/dist/server/page-converter.mjs +2193 -1169
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2770 -2742
- package/dist/server/rendering.mjs +2961 -2886
- package/dist/server/routing.mjs +2186 -1508
- package/dist/server/server.mjs +2237 -1287
- package/dist/server/theme-bridge.mjs +260 -0
- package/dist/styles/index.css +258 -0
- package/package.json +2 -1
- package/dist/SdkPreviewModeRuntime-4FGSVUYI.mjs +0 -8
- package/dist/client/cart-X4YK4FTW.mjs +0 -19
- package/dist/client/checkout-OM2BEPWD.mjs +0 -19
- package/dist/client/chunk-3DTWLTXM.mjs +0 -204
- package/dist/client/chunk-I2MMZO53.mjs +0 -6
- package/dist/client/shop-WXSYV5QO.mjs +0 -21
package/dist/server/data.mjs
CHANGED
|
@@ -751,6 +751,64 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
751
751
|
auth: "user",
|
|
752
752
|
responseKind: "json"
|
|
753
753
|
},
|
|
754
|
+
listMailchimpAudiences: {
|
|
755
|
+
path: "/sites/{siteId}/integrations/mailchimp/audiences",
|
|
756
|
+
method: "GET",
|
|
757
|
+
tags: [TAG_TEMPLATES.site],
|
|
758
|
+
auth: "user",
|
|
759
|
+
responseKind: "json",
|
|
760
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
761
|
+
},
|
|
762
|
+
getMailchimpSignupSyncHealth: {
|
|
763
|
+
path: "/sites/{siteId}/integrations/mailchimp/signup-sync-health",
|
|
764
|
+
method: "GET",
|
|
765
|
+
tags: [TAG_TEMPLATES.site],
|
|
766
|
+
auth: "user",
|
|
767
|
+
responseKind: "json",
|
|
768
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
769
|
+
},
|
|
770
|
+
getMailchimpConnection: {
|
|
771
|
+
path: "/sites/{siteId}/integrations/mailchimp/connection",
|
|
772
|
+
method: "GET",
|
|
773
|
+
tags: [TAG_TEMPLATES.site],
|
|
774
|
+
auth: "user",
|
|
775
|
+
responseKind: "json",
|
|
776
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
777
|
+
},
|
|
778
|
+
startMailchimpOAuth: {
|
|
779
|
+
path: "/sites/{siteId}/integrations/mailchimp/oauth/start",
|
|
780
|
+
method: "POST",
|
|
781
|
+
tags: [TAG_TEMPLATES.site],
|
|
782
|
+
auth: "user",
|
|
783
|
+
responseKind: "json",
|
|
784
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
785
|
+
errors: ["auth:forbidden", "validation:invalid_input", "server:internal_error"]
|
|
786
|
+
},
|
|
787
|
+
refreshMailchimpAudiences: {
|
|
788
|
+
path: "/sites/{siteId}/integrations/mailchimp/audiences/refresh",
|
|
789
|
+
method: "POST",
|
|
790
|
+
tags: [TAG_TEMPLATES.site],
|
|
791
|
+
auth: "user",
|
|
792
|
+
responseKind: "json",
|
|
793
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
794
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
795
|
+
},
|
|
796
|
+
disconnectMailchimp: {
|
|
797
|
+
path: "/sites/{siteId}/integrations/mailchimp/disconnect",
|
|
798
|
+
method: "POST",
|
|
799
|
+
tags: [TAG_TEMPLATES.site],
|
|
800
|
+
auth: "user",
|
|
801
|
+
responseKind: "json",
|
|
802
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
803
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
804
|
+
},
|
|
805
|
+
mailchimpOAuthCallback: {
|
|
806
|
+
path: "/auth/mailchimp/callback",
|
|
807
|
+
method: "GET",
|
|
808
|
+
auth: "public",
|
|
809
|
+
responseKind: "void",
|
|
810
|
+
errors: []
|
|
811
|
+
},
|
|
754
812
|
createNewsletterList: {
|
|
755
813
|
path: "/sites/{siteId}/newsletter/lists",
|
|
756
814
|
method: "POST",
|
|
@@ -1752,6 +1810,24 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
1752
1810
|
auth: "user",
|
|
1753
1811
|
responseKind: "json"
|
|
1754
1812
|
},
|
|
1813
|
+
resendSiteInvitation: {
|
|
1814
|
+
path: "/sites/{siteId}/members/invitations/{invitationId}/resend",
|
|
1815
|
+
method: "POST",
|
|
1816
|
+
errors: [
|
|
1817
|
+
"auth:forbidden",
|
|
1818
|
+
"resource:not_found",
|
|
1819
|
+
"validation:invalid_input",
|
|
1820
|
+
"external:service_error",
|
|
1821
|
+
"server:internal_error"
|
|
1822
|
+
],
|
|
1823
|
+
tags: [
|
|
1824
|
+
"site-{siteId}",
|
|
1825
|
+
"site-members-{siteId}",
|
|
1826
|
+
"site-invite-{invitationId}"
|
|
1827
|
+
],
|
|
1828
|
+
auth: "user",
|
|
1829
|
+
responseKind: "json"
|
|
1830
|
+
},
|
|
1755
1831
|
transferSiteOwnership: {
|
|
1756
1832
|
path: "/sites/{siteId}/members/transfer-ownership",
|
|
1757
1833
|
method: "POST",
|
|
@@ -2975,20 +3051,6 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
2975
3051
|
auth: "user",
|
|
2976
3052
|
responseKind: "json"
|
|
2977
3053
|
},
|
|
2978
|
-
instagramUploadZip: {
|
|
2979
|
-
path: "/instagram/upload-zip",
|
|
2980
|
-
method: "POST",
|
|
2981
|
-
tags: ["instagram-import"],
|
|
2982
|
-
auth: "user",
|
|
2983
|
-
responseKind: "json"
|
|
2984
|
-
},
|
|
2985
|
-
createInstagramZipUploadUrl: {
|
|
2986
|
-
path: "/instagram/upload-zip-url",
|
|
2987
|
-
method: "POST",
|
|
2988
|
-
tags: ["instagram-import"],
|
|
2989
|
-
auth: "user",
|
|
2990
|
-
responseKind: "json"
|
|
2991
|
-
},
|
|
2992
3054
|
getAnalyticsReport: {
|
|
2993
3055
|
path: "/sites/{siteId}/analytics/report",
|
|
2994
3056
|
method: "GET",
|
|
@@ -6383,6 +6445,48 @@ function err(error) {
|
|
|
6383
6445
|
return { ok: false, error };
|
|
6384
6446
|
}
|
|
6385
6447
|
|
|
6448
|
+
// ../core/src/assert-never.ts
|
|
6449
|
+
function assertNever(value, message = "Unexpected variant") {
|
|
6450
|
+
throw new Error(`${message}: ${String(value)}`);
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6453
|
+
// ../core/src/currency-format.ts
|
|
6454
|
+
var CURRENCY_LOCALE_BY_CODE = {
|
|
6455
|
+
USD: "en-US",
|
|
6456
|
+
GBP: "en-GB",
|
|
6457
|
+
EUR: "de-DE",
|
|
6458
|
+
AUD: "en-AU",
|
|
6459
|
+
CAD: "en-CA",
|
|
6460
|
+
NZD: "en-NZ",
|
|
6461
|
+
JPY: "ja-JP",
|
|
6462
|
+
CNY: "zh-CN",
|
|
6463
|
+
CHF: "de-CH"
|
|
6464
|
+
};
|
|
6465
|
+
function resolveCurrencyLocale(currencyCode, override) {
|
|
6466
|
+
return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
|
|
6467
|
+
}
|
|
6468
|
+
function formatCurrencyAmount(amountCents, currency, options) {
|
|
6469
|
+
const currencyCode = currency.toUpperCase();
|
|
6470
|
+
const locale = resolveCurrencyLocale(currencyCode, options?.locale);
|
|
6471
|
+
try {
|
|
6472
|
+
const exactFormatter = new Intl.NumberFormat(locale, {
|
|
6473
|
+
style: "currency",
|
|
6474
|
+
currency: currencyCode
|
|
6475
|
+
});
|
|
6476
|
+
const fractionDigits = options?.decimals === "auto" ? {
|
|
6477
|
+
minimumFractionDigits: 0,
|
|
6478
|
+
maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
|
|
6479
|
+
} : {};
|
|
6480
|
+
return new Intl.NumberFormat(locale, {
|
|
6481
|
+
style: "currency",
|
|
6482
|
+
currency: currencyCode,
|
|
6483
|
+
...fractionDigits
|
|
6484
|
+
}).format(amountCents / 100);
|
|
6485
|
+
} catch {
|
|
6486
|
+
return `${(amountCents / 100).toFixed(2)} ${currencyCode}`;
|
|
6487
|
+
}
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6386
6490
|
// ../core/src/event-pricing.ts
|
|
6387
6491
|
function publicEventPricingType(pricing) {
|
|
6388
6492
|
switch (pricing.kind) {
|
|
@@ -6403,6 +6507,7 @@ function isFreePublicEventPriceDisplay(display) {
|
|
|
6403
6507
|
return display.display.kind === "free";
|
|
6404
6508
|
case "exact":
|
|
6405
6509
|
case "from":
|
|
6510
|
+
case "range":
|
|
6406
6511
|
case "mixed":
|
|
6407
6512
|
case "unavailable":
|
|
6408
6513
|
return false;
|
|
@@ -6561,11 +6666,6 @@ function toLocationCoordinates(value) {
|
|
|
6561
6666
|
};
|
|
6562
6667
|
}
|
|
6563
6668
|
|
|
6564
|
-
// ../core/src/assert-never.ts
|
|
6565
|
-
function assertNever(value, message = "Unexpected variant") {
|
|
6566
|
-
throw new Error(`${message}: ${String(value)}`);
|
|
6567
|
-
}
|
|
6568
|
-
|
|
6569
6669
|
// ../api/src/accessAdmin.ts
|
|
6570
6670
|
import { z } from "zod";
|
|
6571
6671
|
var managedDomainAddOnPricingSnapshotSchema = z.object({
|
|
@@ -6670,7 +6770,7 @@ var navigationLinkInputSchema = z2.discriminatedUnion(
|
|
|
6670
6770
|
);
|
|
6671
6771
|
|
|
6672
6772
|
// ../api/src/sdkConfig/contracts.ts
|
|
6673
|
-
import { z as
|
|
6773
|
+
import { z as z65 } from "zod";
|
|
6674
6774
|
|
|
6675
6775
|
// ../blocks/src/system/manifest/augmentManifest.ts
|
|
6676
6776
|
function augmentManifest(manifest) {
|
|
@@ -21807,15 +21907,53 @@ var newsletterFormFragment = defineFragment({
|
|
|
21807
21907
|
title: "Newsletter Form",
|
|
21808
21908
|
description: "Newsletter subscription form with preset field configurations.",
|
|
21809
21909
|
fields: [
|
|
21910
|
+
{
|
|
21911
|
+
id: "destinationProvider",
|
|
21912
|
+
type: "select",
|
|
21913
|
+
label: "Send signups to",
|
|
21914
|
+
description: "Choose where new subscribers from this form should go.",
|
|
21915
|
+
defaultValue: "riverbank",
|
|
21916
|
+
required: true,
|
|
21917
|
+
ui: { intent: "behavior" },
|
|
21918
|
+
options: [
|
|
21919
|
+
{ value: "riverbank", label: "Riverbank newsletter" }
|
|
21920
|
+
]
|
|
21921
|
+
},
|
|
21810
21922
|
{
|
|
21811
21923
|
id: "listId",
|
|
21812
21924
|
type: "reference",
|
|
21813
21925
|
label: "Newsletter list",
|
|
21814
21926
|
description: "Select the list new subscribers should be added to.",
|
|
21815
|
-
required:
|
|
21927
|
+
required: false,
|
|
21816
21928
|
referenceKind: "newsletterList",
|
|
21817
21929
|
allowManualEntry: false,
|
|
21818
|
-
ui: {
|
|
21930
|
+
ui: {
|
|
21931
|
+
intent: "behavior",
|
|
21932
|
+
visibleWhen: { field: "destinationProvider", equals: "riverbank" }
|
|
21933
|
+
}
|
|
21934
|
+
},
|
|
21935
|
+
{
|
|
21936
|
+
id: "mailchimpAudienceId",
|
|
21937
|
+
type: "reference",
|
|
21938
|
+
label: "Mailchimp audience",
|
|
21939
|
+
description: "Choose the Mailchimp audience for new subscribers.",
|
|
21940
|
+
required: false,
|
|
21941
|
+
referenceKind: "mailchimpAudience",
|
|
21942
|
+
allowManualEntry: false,
|
|
21943
|
+
ui: {
|
|
21944
|
+
intent: "behavior",
|
|
21945
|
+
visibleWhen: { field: "destinationProvider", equals: "mailchimp" }
|
|
21946
|
+
}
|
|
21947
|
+
},
|
|
21948
|
+
{
|
|
21949
|
+
id: "mailchimpTags",
|
|
21950
|
+
type: "text",
|
|
21951
|
+
label: "Mailchimp tags",
|
|
21952
|
+
description: "Optional tags to apply in Mailchimp, separated by commas or semicolons.",
|
|
21953
|
+
ui: {
|
|
21954
|
+
intent: "behavior",
|
|
21955
|
+
visibleWhen: { field: "destinationProvider", equals: "mailchimp" }
|
|
21956
|
+
}
|
|
21819
21957
|
},
|
|
21820
21958
|
{
|
|
21821
21959
|
id: "preset",
|
|
@@ -21862,13 +22000,18 @@ var newsletterFormFragment = defineFragment({
|
|
|
21862
22000
|
id: "tags",
|
|
21863
22001
|
type: "text",
|
|
21864
22002
|
label: "Tags (optional)",
|
|
21865
|
-
description: "Optional tags to apply on subscribe (comma or semicolon separated)."
|
|
22003
|
+
description: "Optional tags to apply on subscribe (comma or semicolon separated).",
|
|
22004
|
+
ui: {
|
|
22005
|
+
intent: "behavior",
|
|
22006
|
+
visibleWhen: { field: "destinationProvider", equals: "riverbank" }
|
|
22007
|
+
}
|
|
21866
22008
|
}
|
|
21867
22009
|
],
|
|
21868
22010
|
layout: [
|
|
21869
22011
|
el(
|
|
21870
22012
|
"newsletter-form",
|
|
21871
22013
|
withApiBindings({
|
|
22014
|
+
destinationProvider: { $bind: { from: "destinationProvider" } },
|
|
21872
22015
|
listId: { $bind: { from: "listId" } },
|
|
21873
22016
|
preset: { $bind: { from: "preset" } },
|
|
21874
22017
|
includePhone: { $bind: { from: "includePhone" } },
|
|
@@ -27712,10 +27855,10 @@ var appointmentBookingBlockDefinition = {
|
|
|
27712
27855
|
};
|
|
27713
27856
|
|
|
27714
27857
|
// ../blocks/src/system/blocks/event-registration.ts
|
|
27715
|
-
import { z as
|
|
27858
|
+
import { z as z47 } from "zod";
|
|
27716
27859
|
|
|
27717
27860
|
// ../blocks/src/system/blocks/events/shared/schemas.ts
|
|
27718
|
-
import { z as
|
|
27861
|
+
import { z as z43 } from "zod";
|
|
27719
27862
|
|
|
27720
27863
|
// ../blocks/src/lib/media.ts
|
|
27721
27864
|
import z39 from "zod";
|
|
@@ -27793,296 +27936,339 @@ var mediaSchema2 = z39.discriminatedUnion("type", [
|
|
|
27793
27936
|
archiveMediaSchema
|
|
27794
27937
|
]);
|
|
27795
27938
|
|
|
27796
|
-
// ../blocks/src/system/
|
|
27939
|
+
// ../blocks/src/system/manifest/richTextSchema.ts
|
|
27797
27940
|
import { z as z40 } from "zod";
|
|
27798
|
-
var
|
|
27941
|
+
var TipTapMarkSchema = z40.object({
|
|
27942
|
+
type: z40.string(),
|
|
27943
|
+
attrs: z40.record(z40.string(), z40.unknown()).optional()
|
|
27944
|
+
});
|
|
27945
|
+
var TipTapNodeSchema = z40.lazy(
|
|
27946
|
+
() => z40.object({
|
|
27947
|
+
type: z40.string(),
|
|
27948
|
+
content: z40.array(TipTapNodeSchema).optional(),
|
|
27949
|
+
text: z40.string().optional(),
|
|
27950
|
+
attrs: z40.record(z40.string(), z40.unknown()).optional(),
|
|
27951
|
+
marks: z40.array(TipTapMarkSchema).optional()
|
|
27952
|
+
})
|
|
27953
|
+
);
|
|
27954
|
+
var RichTextValueSchema = z40.union([
|
|
27955
|
+
// Canonical: TipTap document directly
|
|
27956
|
+
TipTapNodeSchema,
|
|
27957
|
+
// Legacy (read-tolerance only): wrapped in { doc: {...} }
|
|
27958
|
+
z40.object({
|
|
27959
|
+
doc: TipTapNodeSchema
|
|
27960
|
+
})
|
|
27961
|
+
]);
|
|
27962
|
+
var RichTextDocSchema = z40.object({
|
|
27963
|
+
type: z40.literal("doc"),
|
|
27964
|
+
content: z40.array(TipTapNodeSchema)
|
|
27965
|
+
});
|
|
27966
|
+
|
|
27967
|
+
// ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
|
|
27968
|
+
import { z as z41 } from "zod";
|
|
27969
|
+
var bookingDepositRefundPolicySchema = z41.enum([
|
|
27799
27970
|
"refundable",
|
|
27800
27971
|
"non_refundable"
|
|
27801
27972
|
]);
|
|
27802
|
-
var bookingInstalmentPlanSchema =
|
|
27803
|
-
|
|
27804
|
-
kind:
|
|
27805
|
-
depositAmountCents:
|
|
27973
|
+
var bookingInstalmentPlanSchema = z41.union([
|
|
27974
|
+
z41.object({
|
|
27975
|
+
kind: z41.literal("deposit_plus_one_remainder"),
|
|
27976
|
+
depositAmountCents: z41.number().int().min(0),
|
|
27806
27977
|
depositRefundability: bookingDepositRefundPolicySchema,
|
|
27807
|
-
remainderDueCount:
|
|
27808
|
-
intervalUnit:
|
|
27978
|
+
remainderDueCount: z41.number().int().positive(),
|
|
27979
|
+
intervalUnit: z41.enum(["day", "week", "month"])
|
|
27809
27980
|
}),
|
|
27810
|
-
|
|
27811
|
-
kind:
|
|
27812
|
-
depositAmountCents:
|
|
27981
|
+
z41.object({
|
|
27982
|
+
kind: z41.literal("deposit_plus_scheduled_instalments"),
|
|
27983
|
+
depositAmountCents: z41.number().int().min(0),
|
|
27813
27984
|
depositRefundability: bookingDepositRefundPolicySchema,
|
|
27814
|
-
instalmentCount:
|
|
27815
|
-
intervalCount:
|
|
27816
|
-
intervalUnit:
|
|
27985
|
+
instalmentCount: z41.number().int().positive(),
|
|
27986
|
+
intervalCount: z41.number().int().positive(),
|
|
27987
|
+
intervalUnit: z41.enum(["day", "week", "month"])
|
|
27817
27988
|
}),
|
|
27818
|
-
|
|
27819
|
-
kind:
|
|
27820
|
-
instalmentCount:
|
|
27821
|
-
intervalCount:
|
|
27822
|
-
intervalUnit:
|
|
27989
|
+
z41.object({
|
|
27990
|
+
kind: z41.literal("equal_scheduled_instalments"),
|
|
27991
|
+
instalmentCount: z41.number().int().positive(),
|
|
27992
|
+
intervalCount: z41.number().int().positive(),
|
|
27993
|
+
intervalUnit: z41.enum(["day", "week", "month"])
|
|
27823
27994
|
})
|
|
27824
27995
|
]);
|
|
27825
|
-
var bookingFlexibleBalanceDueDateRuleSchema =
|
|
27826
|
-
|
|
27827
|
-
kind:
|
|
27828
|
-
daysBeforeStart:
|
|
27996
|
+
var bookingFlexibleBalanceDueDateRuleSchema = z41.union([
|
|
27997
|
+
z41.object({
|
|
27998
|
+
kind: z41.literal("relative_to_start_date"),
|
|
27999
|
+
daysBeforeStart: z41.number().int().positive()
|
|
27829
28000
|
}),
|
|
27830
|
-
|
|
27831
|
-
kind:
|
|
27832
|
-
dueAt:
|
|
28001
|
+
z41.object({
|
|
28002
|
+
kind: z41.literal("fixed_calendar_date"),
|
|
28003
|
+
dueAt: z41.string().datetime()
|
|
27833
28004
|
})
|
|
27834
28005
|
]);
|
|
27835
|
-
var bookingFlexibleBalanceConfigSchema =
|
|
27836
|
-
upfrontAmountCents:
|
|
28006
|
+
var bookingFlexibleBalanceConfigSchema = z41.object({
|
|
28007
|
+
upfrontAmountCents: z41.number().int().min(0),
|
|
27837
28008
|
dueDateRule: bookingFlexibleBalanceDueDateRuleSchema,
|
|
27838
28009
|
depositRefundability: bookingDepositRefundPolicySchema
|
|
27839
28010
|
});
|
|
27840
|
-
var blockBookingPaymentCollectionOptionSchema =
|
|
27841
|
-
|
|
27842
|
-
kind:
|
|
28011
|
+
var blockBookingPaymentCollectionOptionSchema = z41.union([
|
|
28012
|
+
z41.object({
|
|
28013
|
+
kind: z41.literal("upfront")
|
|
27843
28014
|
}),
|
|
27844
|
-
|
|
27845
|
-
kind:
|
|
28015
|
+
z41.object({
|
|
28016
|
+
kind: z41.literal("deferred_manual")
|
|
27846
28017
|
}),
|
|
27847
|
-
|
|
27848
|
-
kind:
|
|
28018
|
+
z41.object({
|
|
28019
|
+
kind: z41.literal("instalment_plan"),
|
|
27849
28020
|
plan: bookingInstalmentPlanSchema
|
|
27850
28021
|
}),
|
|
27851
|
-
|
|
27852
|
-
kind:
|
|
28022
|
+
z41.object({
|
|
28023
|
+
kind: z41.literal("flexible_balance"),
|
|
27853
28024
|
config: bookingFlexibleBalanceConfigSchema
|
|
27854
28025
|
})
|
|
27855
28026
|
]);
|
|
27856
|
-
var blockBookingPaymentTermsSchema =
|
|
27857
|
-
allowedOptions:
|
|
28027
|
+
var blockBookingPaymentTermsSchema = z41.object({
|
|
28028
|
+
allowedOptions: z41.array(blockBookingPaymentCollectionOptionSchema).min(1)
|
|
27858
28029
|
});
|
|
27859
28030
|
|
|
27860
28031
|
// ../blocks/src/system/blocks/courses/shared/schemas.ts
|
|
27861
|
-
import { z as
|
|
27862
|
-
var courseVenueSchema =
|
|
27863
|
-
id:
|
|
27864
|
-
name:
|
|
27865
|
-
address:
|
|
27866
|
-
});
|
|
27867
|
-
var courseSessionSchema =
|
|
27868
|
-
id:
|
|
27869
|
-
startsAt:
|
|
27870
|
-
endsAt:
|
|
27871
|
-
timeZone:
|
|
27872
|
-
capacityOverride:
|
|
27873
|
-
overrides:
|
|
27874
|
-
});
|
|
27875
|
-
var courseTeamMemberSummarySchema =
|
|
27876
|
-
id:
|
|
27877
|
-
name:
|
|
27878
|
-
roleLabel:
|
|
27879
|
-
summary:
|
|
27880
|
-
profilePath:
|
|
27881
|
-
});
|
|
27882
|
-
var coursePricingOptionSchema =
|
|
27883
|
-
id:
|
|
27884
|
-
name:
|
|
27885
|
-
description:
|
|
27886
|
-
priceAmount:
|
|
27887
|
-
isActive:
|
|
27888
|
-
sortOrder:
|
|
27889
|
-
capacityLimit:
|
|
27890
|
-
saleStartsAt:
|
|
27891
|
-
saleEndsAt:
|
|
27892
|
-
attendanceScope:
|
|
27893
|
-
});
|
|
27894
|
-
var coursePricingSchema =
|
|
27895
|
-
bookingRequirement:
|
|
27896
|
-
pricingStrategy:
|
|
27897
|
-
currency:
|
|
27898
|
-
singlePriceAmount:
|
|
28032
|
+
import { z as z42 } from "zod";
|
|
28033
|
+
var courseVenueSchema = z42.object({
|
|
28034
|
+
id: z42.string(),
|
|
28035
|
+
name: z42.string(),
|
|
28036
|
+
address: z42.string().nullable()
|
|
28037
|
+
});
|
|
28038
|
+
var courseSessionSchema = z42.object({
|
|
28039
|
+
id: z42.string(),
|
|
28040
|
+
startsAt: z42.string(),
|
|
28041
|
+
endsAt: z42.string(),
|
|
28042
|
+
timeZone: z42.string(),
|
|
28043
|
+
capacityOverride: z42.number().nullable().optional(),
|
|
28044
|
+
overrides: z42.record(z42.string(), z42.unknown()).nullable().optional()
|
|
28045
|
+
});
|
|
28046
|
+
var courseTeamMemberSummarySchema = z42.object({
|
|
28047
|
+
id: z42.string(),
|
|
28048
|
+
name: z42.string(),
|
|
28049
|
+
roleLabel: z42.string().nullable(),
|
|
28050
|
+
summary: z42.string().nullable(),
|
|
28051
|
+
profilePath: z42.string().nullable()
|
|
28052
|
+
});
|
|
28053
|
+
var coursePricingOptionSchema = z42.object({
|
|
28054
|
+
id: z42.string(),
|
|
28055
|
+
name: z42.string(),
|
|
28056
|
+
description: z42.string().nullable(),
|
|
28057
|
+
priceAmount: z42.number(),
|
|
28058
|
+
isActive: z42.boolean(),
|
|
28059
|
+
sortOrder: z42.number(),
|
|
28060
|
+
capacityLimit: z42.number().nullable(),
|
|
28061
|
+
saleStartsAt: z42.string().nullable(),
|
|
28062
|
+
saleEndsAt: z42.string().nullable(),
|
|
28063
|
+
attendanceScope: z42.enum(["in_person", "online", "both"]).nullable().optional()
|
|
28064
|
+
});
|
|
28065
|
+
var coursePricingSchema = z42.object({
|
|
28066
|
+
bookingRequirement: z42.enum(["none", "required"]),
|
|
28067
|
+
pricingStrategy: z42.enum(["free", "single", "tiered"]),
|
|
28068
|
+
currency: z42.string(),
|
|
28069
|
+
singlePriceAmount: z42.number().nullable(),
|
|
27899
28070
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
27900
|
-
options:
|
|
27901
|
-
});
|
|
27902
|
-
var publicCourseSchema =
|
|
27903
|
-
id:
|
|
27904
|
-
title:
|
|
27905
|
-
slug:
|
|
27906
|
-
description:
|
|
27907
|
-
teamMembers:
|
|
27908
|
-
enrollmentOpen:
|
|
28071
|
+
options: z42.array(coursePricingOptionSchema)
|
|
28072
|
+
});
|
|
28073
|
+
var publicCourseSchema = z42.object({
|
|
28074
|
+
id: z42.string(),
|
|
28075
|
+
title: z42.string(),
|
|
28076
|
+
slug: z42.string(),
|
|
28077
|
+
description: z42.unknown().nullable(),
|
|
28078
|
+
teamMembers: z42.array(courseTeamMemberSummarySchema).optional(),
|
|
28079
|
+
enrollmentOpen: z42.boolean(),
|
|
27909
28080
|
pricing: coursePricingSchema.optional(),
|
|
27910
|
-
priceCents:
|
|
27911
|
-
currency:
|
|
28081
|
+
priceCents: z42.number().nullable(),
|
|
28082
|
+
currency: z42.string(),
|
|
27912
28083
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
27913
|
-
enrollmentCapacity:
|
|
27914
|
-
acceptsMemberships:
|
|
27915
|
-
status:
|
|
27916
|
-
sessionsCount:
|
|
27917
|
-
enrolledCount:
|
|
27918
|
-
availableSpots:
|
|
27919
|
-
sessions:
|
|
28084
|
+
enrollmentCapacity: z42.number().nullable(),
|
|
28085
|
+
acceptsMemberships: z42.boolean(),
|
|
28086
|
+
status: z42.enum(["active", "draft", "cancelled"]),
|
|
28087
|
+
sessionsCount: z42.number(),
|
|
28088
|
+
enrolledCount: z42.number(),
|
|
28089
|
+
availableSpots: z42.number().nullable(),
|
|
28090
|
+
sessions: z42.array(courseSessionSchema),
|
|
27920
28091
|
venue: courseVenueSchema.nullable(),
|
|
27921
|
-
contentEntryId:
|
|
28092
|
+
contentEntryId: z42.string().nullable()
|
|
27922
28093
|
});
|
|
27923
|
-
var publicCoursesArraySchema =
|
|
28094
|
+
var publicCoursesArraySchema = z42.array(publicCourseSchema);
|
|
27924
28095
|
|
|
27925
28096
|
// ../blocks/src/system/blocks/events/shared/schemas.ts
|
|
27926
|
-
var eventPresetSchema =
|
|
27927
|
-
var eventScheduleScopeSchema =
|
|
27928
|
-
var eventDestinationModeSchema =
|
|
27929
|
-
var eventVenueSchema =
|
|
27930
|
-
id:
|
|
27931
|
-
name:
|
|
27932
|
-
address:
|
|
27933
|
-
location:
|
|
27934
|
-
lat:
|
|
27935
|
-
lng:
|
|
28097
|
+
var eventPresetSchema = z43.enum(["event", "class", "workshop", "retreat", "performance"]);
|
|
28098
|
+
var eventScheduleScopeSchema = z43.enum(["recurring", "oneOff"]);
|
|
28099
|
+
var eventDestinationModeSchema = z43.enum(["cms-managed", "system-managed"]);
|
|
28100
|
+
var eventVenueSchema = z43.object({
|
|
28101
|
+
id: z43.string(),
|
|
28102
|
+
name: z43.string(),
|
|
28103
|
+
address: z43.string().nullable(),
|
|
28104
|
+
location: z43.object({
|
|
28105
|
+
lat: z43.number(),
|
|
28106
|
+
lng: z43.number()
|
|
27936
28107
|
}).nullable()
|
|
27937
28108
|
});
|
|
27938
|
-
var eventCategorySchema =
|
|
27939
|
-
id:
|
|
27940
|
-
name:
|
|
27941
|
-
color:
|
|
27942
|
-
});
|
|
27943
|
-
var pricingTypeSchema =
|
|
27944
|
-
var accessRestrictionSchema =
|
|
27945
|
-
var eventPricingModeSchema =
|
|
27946
|
-
var publicCoursePriceDisplaySchema =
|
|
27947
|
-
|
|
27948
|
-
|
|
27949
|
-
|
|
27950
|
-
|
|
28109
|
+
var eventCategorySchema = z43.object({
|
|
28110
|
+
id: z43.string(),
|
|
28111
|
+
name: z43.string(),
|
|
28112
|
+
color: z43.string().nullable()
|
|
28113
|
+
});
|
|
28114
|
+
var pricingTypeSchema = z43.enum(["free", "paid"]);
|
|
28115
|
+
var accessRestrictionSchema = z43.enum(["none", "category"]);
|
|
28116
|
+
var eventPricingModeSchema = z43.enum(["single", "ticket_types"]);
|
|
28117
|
+
var publicCoursePriceDisplaySchema = z43.discriminatedUnion("kind", [
|
|
28118
|
+
z43.object({ kind: z43.literal("free"), currency: z43.string() }),
|
|
28119
|
+
z43.object({ kind: z43.literal("exact"), amount: z43.number(), currency: z43.string() }),
|
|
28120
|
+
z43.object({ kind: z43.literal("from"), amount: z43.number(), currency: z43.string() }),
|
|
28121
|
+
z43.object({ kind: z43.literal("unavailable"), currency: z43.string() })
|
|
27951
28122
|
]);
|
|
27952
|
-
var publicEventPriceDisplaySchema =
|
|
27953
|
-
|
|
27954
|
-
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
28123
|
+
var publicEventPriceDisplaySchema = z43.discriminatedUnion("kind", [
|
|
28124
|
+
z43.object({ kind: z43.literal("free"), currency: z43.string() }),
|
|
28125
|
+
z43.object({ kind: z43.literal("exact"), amount: z43.number(), currency: z43.string() }),
|
|
28126
|
+
z43.object({ kind: z43.literal("from"), amount: z43.number(), currency: z43.string() }),
|
|
28127
|
+
z43.object({ kind: z43.literal("range"), minAmount: z43.number(), maxAmount: z43.number(), currency: z43.string() }),
|
|
28128
|
+
z43.object({
|
|
28129
|
+
kind: z43.literal("mixed"),
|
|
28130
|
+
paidFromAmount: z43.number(),
|
|
28131
|
+
paidToAmount: z43.number(),
|
|
28132
|
+
currency: z43.string()
|
|
28133
|
+
}),
|
|
28134
|
+
z43.object({ kind: z43.literal("unavailable"), currency: z43.string() }),
|
|
28135
|
+
z43.object({ kind: z43.literal("course"), display: publicCoursePriceDisplaySchema })
|
|
27959
28136
|
]);
|
|
27960
|
-
var publicEventTicketTypePriceDisplaySchema =
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
|
|
27965
|
-
|
|
28137
|
+
var publicEventTicketTypePriceDisplaySchema = z43.union([
|
|
28138
|
+
z43.object({ kind: z43.literal("free"), currency: z43.string() }),
|
|
28139
|
+
z43.object({ kind: z43.literal("exact"), amount: z43.number(), currency: z43.string() }),
|
|
28140
|
+
z43.object({ kind: z43.literal("from"), amount: z43.number(), currency: z43.string() }),
|
|
28141
|
+
z43.object({ kind: z43.literal("range"), minAmount: z43.number(), maxAmount: z43.number(), currency: z43.string() }),
|
|
28142
|
+
z43.object({
|
|
28143
|
+
kind: z43.literal("mixed"),
|
|
28144
|
+
paidFromAmount: z43.number(),
|
|
28145
|
+
paidToAmount: z43.number(),
|
|
28146
|
+
currency: z43.string()
|
|
28147
|
+
}),
|
|
28148
|
+
z43.object({ kind: z43.literal("unavailable"), currency: z43.string() })
|
|
27966
28149
|
]);
|
|
27967
|
-
var publicEventAttendanceModeSchema =
|
|
27968
|
-
var publicEventAttendanceModeAvailabilitySchema =
|
|
28150
|
+
var publicEventAttendanceModeSchema = z43.enum(["in_person", "online"]);
|
|
28151
|
+
var publicEventAttendanceModeAvailabilitySchema = z43.object({
|
|
27969
28152
|
mode: publicEventAttendanceModeSchema,
|
|
27970
|
-
capacity:
|
|
27971
|
-
registeredCount:
|
|
27972
|
-
availableSpots:
|
|
27973
|
-
waitlistEnabled:
|
|
27974
|
-
});
|
|
27975
|
-
var publicEventTicketTypeAvailabilitySchema =
|
|
27976
|
-
|
|
27977
|
-
kind:
|
|
27978
|
-
remainingCapacity:
|
|
28153
|
+
capacity: z43.number().nullable(),
|
|
28154
|
+
registeredCount: z43.number(),
|
|
28155
|
+
availableSpots: z43.number().nullable(),
|
|
28156
|
+
waitlistEnabled: z43.boolean()
|
|
28157
|
+
});
|
|
28158
|
+
var publicEventTicketTypeAvailabilitySchema = z43.union([
|
|
28159
|
+
z43.object({
|
|
28160
|
+
kind: z43.literal("available"),
|
|
28161
|
+
remainingCapacity: z43.number().nullable()
|
|
27979
28162
|
}),
|
|
27980
|
-
|
|
27981
|
-
kind:
|
|
27982
|
-
reason:
|
|
27983
|
-
remainingCapacity:
|
|
28163
|
+
z43.object({
|
|
28164
|
+
kind: z43.literal("unavailable"),
|
|
28165
|
+
reason: z43.enum(["inactive", "not_on_sale_yet", "sale_ended", "sold_out", "event_sold_out"]),
|
|
28166
|
+
remainingCapacity: z43.number().nullable()
|
|
27984
28167
|
})
|
|
27985
28168
|
]);
|
|
27986
|
-
var publicEventTicketTypeSchema =
|
|
27987
|
-
id:
|
|
27988
|
-
siteId:
|
|
27989
|
-
eventSeriesId:
|
|
27990
|
-
name:
|
|
27991
|
-
description:
|
|
27992
|
-
priceAmount:
|
|
27993
|
-
isActive:
|
|
27994
|
-
sortOrder:
|
|
27995
|
-
capacityMode:
|
|
27996
|
-
capacityLimit:
|
|
27997
|
-
attendanceScope:
|
|
27998
|
-
saleStartsAt:
|
|
27999
|
-
saleEndsAt:
|
|
28169
|
+
var publicEventTicketTypeSchema = z43.object({
|
|
28170
|
+
id: z43.string(),
|
|
28171
|
+
siteId: z43.string(),
|
|
28172
|
+
eventSeriesId: z43.string(),
|
|
28173
|
+
name: z43.string(),
|
|
28174
|
+
description: z43.string().nullable(),
|
|
28175
|
+
priceAmount: z43.number(),
|
|
28176
|
+
isActive: z43.boolean(),
|
|
28177
|
+
sortOrder: z43.number(),
|
|
28178
|
+
capacityMode: z43.enum(["limited", "unlimited"]),
|
|
28179
|
+
capacityLimit: z43.number().nullable(),
|
|
28180
|
+
attendanceScope: z43.enum(["in_person", "online", "both"]).optional(),
|
|
28181
|
+
saleStartsAt: z43.string().nullable(),
|
|
28182
|
+
saleEndsAt: z43.string().nullable(),
|
|
28000
28183
|
availability: publicEventTicketTypeAvailabilitySchema,
|
|
28001
|
-
createdAt:
|
|
28002
|
-
updatedAt:
|
|
28003
|
-
});
|
|
28004
|
-
var publicEventPricingSchema =
|
|
28005
|
-
|
|
28006
|
-
kind:
|
|
28007
|
-
currency:
|
|
28008
|
-
display:
|
|
28184
|
+
createdAt: z43.string(),
|
|
28185
|
+
updatedAt: z43.string()
|
|
28186
|
+
});
|
|
28187
|
+
var publicEventPricingSchema = z43.discriminatedUnion("kind", [
|
|
28188
|
+
z43.object({
|
|
28189
|
+
kind: z43.literal("drop_in"),
|
|
28190
|
+
currency: z43.string(),
|
|
28191
|
+
display: z43.object({ kind: z43.literal("free"), currency: z43.string() })
|
|
28009
28192
|
}),
|
|
28010
|
-
|
|
28011
|
-
kind:
|
|
28012
|
-
currency:
|
|
28013
|
-
display:
|
|
28193
|
+
z43.object({
|
|
28194
|
+
kind: z43.literal("free_registration"),
|
|
28195
|
+
currency: z43.string(),
|
|
28196
|
+
display: z43.object({ kind: z43.literal("free"), currency: z43.string() })
|
|
28014
28197
|
}),
|
|
28015
|
-
|
|
28016
|
-
kind:
|
|
28017
|
-
amount:
|
|
28018
|
-
currency:
|
|
28019
|
-
display:
|
|
28198
|
+
z43.object({
|
|
28199
|
+
kind: z43.literal("single_paid"),
|
|
28200
|
+
amount: z43.number(),
|
|
28201
|
+
currency: z43.string(),
|
|
28202
|
+
display: z43.object({ kind: z43.literal("exact"), amount: z43.number(), currency: z43.string() })
|
|
28020
28203
|
}),
|
|
28021
|
-
|
|
28022
|
-
kind:
|
|
28023
|
-
currency:
|
|
28024
|
-
ticketTypes:
|
|
28204
|
+
z43.object({
|
|
28205
|
+
kind: z43.literal("ticket_types"),
|
|
28206
|
+
currency: z43.string(),
|
|
28207
|
+
ticketTypes: z43.array(publicEventTicketTypeSchema),
|
|
28025
28208
|
display: publicEventTicketTypePriceDisplaySchema
|
|
28026
28209
|
}),
|
|
28027
|
-
|
|
28028
|
-
kind:
|
|
28029
|
-
display:
|
|
28210
|
+
z43.object({
|
|
28211
|
+
kind: z43.literal("course"),
|
|
28212
|
+
display: z43.object({ kind: z43.literal("course"), display: publicCoursePriceDisplaySchema })
|
|
28030
28213
|
})
|
|
28031
28214
|
]);
|
|
28032
|
-
var publicTeamMemberSummarySchema =
|
|
28033
|
-
id:
|
|
28034
|
-
name:
|
|
28035
|
-
roleLabel:
|
|
28036
|
-
summary:
|
|
28037
|
-
profilePath:
|
|
28215
|
+
var publicTeamMemberSummarySchema = z43.object({
|
|
28216
|
+
id: z43.string(),
|
|
28217
|
+
name: z43.string(),
|
|
28218
|
+
roleLabel: z43.string().nullable(),
|
|
28219
|
+
summary: z43.string().nullable(),
|
|
28220
|
+
profilePath: z43.string().nullable()
|
|
28038
28221
|
});
|
|
28039
|
-
var publicEventSchema =
|
|
28040
|
-
kind:
|
|
28222
|
+
var publicEventSchema = z43.object({
|
|
28223
|
+
kind: z43.enum(["event", "course_session"]).optional(),
|
|
28041
28224
|
eventPreset: eventPresetSchema.optional(),
|
|
28042
28225
|
eventDestinationMode: eventDestinationModeSchema.optional(),
|
|
28043
28226
|
scheduleScope: eventScheduleScopeSchema.optional(),
|
|
28044
|
-
id:
|
|
28045
|
-
occurrenceId:
|
|
28046
|
-
seriesId:
|
|
28047
|
-
title:
|
|
28048
|
-
description:
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28227
|
+
id: z43.string(),
|
|
28228
|
+
occurrenceId: z43.string(),
|
|
28229
|
+
seriesId: z43.string(),
|
|
28230
|
+
title: z43.string(),
|
|
28231
|
+
description: z43.string().nullable(),
|
|
28232
|
+
content: z43.object({
|
|
28233
|
+
body: RichTextDocSchema.nullable().optional()
|
|
28234
|
+
}).optional(),
|
|
28235
|
+
presentation: z43.object({
|
|
28236
|
+
cardTitleOverride: z43.string().nullable().optional(),
|
|
28237
|
+
summary: z43.string().nullable().optional(),
|
|
28052
28238
|
image: mediaSchema2.nullable().optional()
|
|
28053
28239
|
}).optional(),
|
|
28054
|
-
slug:
|
|
28055
|
-
path:
|
|
28056
|
-
requiresRegistration:
|
|
28057
|
-
deliveryMode:
|
|
28058
|
-
attendanceModes:
|
|
28059
|
-
startsAt:
|
|
28060
|
-
endsAt:
|
|
28061
|
-
capacity:
|
|
28062
|
-
registeredCount:
|
|
28063
|
-
availableSpots:
|
|
28064
|
-
waitlistEnabled:
|
|
28240
|
+
slug: z43.string(),
|
|
28241
|
+
path: z43.string(),
|
|
28242
|
+
requiresRegistration: z43.boolean(),
|
|
28243
|
+
deliveryMode: z43.enum(["in_person", "online", "hybrid"]),
|
|
28244
|
+
attendanceModes: z43.array(publicEventAttendanceModeAvailabilitySchema),
|
|
28245
|
+
startsAt: z43.string(),
|
|
28246
|
+
endsAt: z43.string(),
|
|
28247
|
+
capacity: z43.number().nullable(),
|
|
28248
|
+
registeredCount: z43.number(),
|
|
28249
|
+
availableSpots: z43.number().nullable(),
|
|
28250
|
+
waitlistEnabled: z43.boolean(),
|
|
28065
28251
|
venue: eventVenueSchema.nullable(),
|
|
28066
28252
|
eventCategory: eventCategorySchema.nullable(),
|
|
28067
|
-
teamMembers:
|
|
28068
|
-
status:
|
|
28069
|
-
timeZone:
|
|
28253
|
+
teamMembers: z43.array(publicTeamMemberSummarySchema).optional(),
|
|
28254
|
+
status: z43.enum(["active", "draft", "archived"]).optional(),
|
|
28255
|
+
timeZone: z43.string(),
|
|
28070
28256
|
pricing: publicEventPricingSchema,
|
|
28071
28257
|
paymentTerms: blockBookingPaymentTermsSchema,
|
|
28072
28258
|
accessRestriction: accessRestrictionSchema,
|
|
28073
|
-
allowedCategoryIds:
|
|
28074
|
-
requireGuestDetails:
|
|
28075
|
-
acceptsPasses:
|
|
28076
|
-
acceptsMemberships:
|
|
28077
|
-
course:
|
|
28078
|
-
id:
|
|
28259
|
+
allowedCategoryIds: z43.array(z43.string()),
|
|
28260
|
+
requireGuestDetails: z43.boolean().optional(),
|
|
28261
|
+
acceptsPasses: z43.boolean().optional(),
|
|
28262
|
+
acceptsMemberships: z43.boolean().optional(),
|
|
28263
|
+
course: z43.object({
|
|
28264
|
+
id: z43.string(),
|
|
28079
28265
|
pricing: coursePricingSchema.optional(),
|
|
28080
|
-
priceCents:
|
|
28081
|
-
currency:
|
|
28082
|
-
enrollmentOpen:
|
|
28266
|
+
priceCents: z43.number().nullable(),
|
|
28267
|
+
currency: z43.string(),
|
|
28268
|
+
enrollmentOpen: z43.boolean()
|
|
28083
28269
|
}).nullable().optional()
|
|
28084
28270
|
});
|
|
28085
|
-
var publicEventsArraySchema =
|
|
28271
|
+
var publicEventsArraySchema = z43.array(publicEventSchema);
|
|
28086
28272
|
|
|
28087
28273
|
// ../blocks/src/system/blocks/events/shared/fields.ts
|
|
28088
28274
|
var cardVariantOptions2 = cardVariantRoleValues.map((value) => ({
|
|
@@ -28286,19 +28472,19 @@ function normalizeEventStaffMemberId(value) {
|
|
|
28286
28472
|
}
|
|
28287
28473
|
|
|
28288
28474
|
// ../blocks/src/system/blocks/event-registration.shared.ts
|
|
28289
|
-
import { z as
|
|
28290
|
-
var occurrenceContextSchema =
|
|
28291
|
-
id:
|
|
28292
|
-
seriesId:
|
|
28293
|
-
startsAt:
|
|
28294
|
-
endsAt:
|
|
28295
|
-
timeZone:
|
|
28296
|
-
capacityOverride:
|
|
28297
|
-
overrides:
|
|
28475
|
+
import { z as z44 } from "zod";
|
|
28476
|
+
var occurrenceContextSchema = z44.object({
|
|
28477
|
+
id: z44.string(),
|
|
28478
|
+
seriesId: z44.string(),
|
|
28479
|
+
startsAt: z44.string(),
|
|
28480
|
+
endsAt: z44.string(),
|
|
28481
|
+
timeZone: z44.string(),
|
|
28482
|
+
capacityOverride: z44.number().nullable().optional(),
|
|
28483
|
+
overrides: z44.record(z44.string(), z44.unknown()).nullable().optional()
|
|
28298
28484
|
}).nullable();
|
|
28299
28485
|
|
|
28300
28486
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
28301
|
-
import { z as
|
|
28487
|
+
import { z as z46 } from "zod";
|
|
28302
28488
|
|
|
28303
28489
|
// ../blocks/src/system/constants/events.ts
|
|
28304
28490
|
var EVENT_CONTENT_TYPE_SLUGS = ["event", "events"];
|
|
@@ -28396,10 +28582,21 @@ function readLegacyPriceDisplay(value, currency) {
|
|
|
28396
28582
|
amount: readAmount(value.amount) ?? 0,
|
|
28397
28583
|
currency: displayCurrency
|
|
28398
28584
|
} : { kind: "unavailable", currency };
|
|
28585
|
+
case "range": {
|
|
28586
|
+
const minAmount = readAmount(value.minAmount);
|
|
28587
|
+
const maxAmount = readAmount(value.maxAmount);
|
|
28588
|
+
return minAmount !== null && maxAmount !== null ? {
|
|
28589
|
+
kind: "range",
|
|
28590
|
+
minAmount,
|
|
28591
|
+
maxAmount,
|
|
28592
|
+
currency: displayCurrency
|
|
28593
|
+
} : { kind: "unavailable", currency };
|
|
28594
|
+
}
|
|
28399
28595
|
case "mixed":
|
|
28400
28596
|
return readAmount(value.paidFromAmount) !== null ? {
|
|
28401
28597
|
kind: "mixed",
|
|
28402
28598
|
paidFromAmount: readAmount(value.paidFromAmount) ?? 0,
|
|
28599
|
+
paidToAmount: readAmount(value.paidToAmount) ?? readAmount(value.paidFromAmount) ?? 0,
|
|
28403
28600
|
currency: displayCurrency
|
|
28404
28601
|
} : { kind: "unavailable", currency };
|
|
28405
28602
|
case "unavailable":
|
|
@@ -28441,16 +28638,16 @@ function readAmount(value) {
|
|
|
28441
28638
|
}
|
|
28442
28639
|
|
|
28443
28640
|
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
28444
|
-
import { z as
|
|
28445
|
-
var previewStageSchema =
|
|
28446
|
-
var registrationButtonVariantSchema =
|
|
28447
|
-
var eventButtonVariantSchema =
|
|
28448
|
-
var eventLayoutSchema =
|
|
28449
|
-
var eventCalendarDisplayModeSchema =
|
|
28450
|
-
var columnOptionSchema =
|
|
28451
|
-
var weekStartSchema =
|
|
28452
|
-
var filterAutoShowSchema =
|
|
28453
|
-
var calendarTabViewsSchema =
|
|
28641
|
+
import { z as z45 } from "zod";
|
|
28642
|
+
var previewStageSchema = z45.enum(["preview", "published"]);
|
|
28643
|
+
var registrationButtonVariantSchema = z45.enum(["primary", "secondary", "outline"]);
|
|
28644
|
+
var eventButtonVariantSchema = z45.enum(["primary", "secondary", "outline", "link"]);
|
|
28645
|
+
var eventLayoutSchema = z45.enum(eventCalendarListLayoutValues);
|
|
28646
|
+
var eventCalendarDisplayModeSchema = z45.enum(eventCalendarDisplayModeValues);
|
|
28647
|
+
var columnOptionSchema = z45.enum(["2", "3", "4"]);
|
|
28648
|
+
var weekStartSchema = z45.enum(["sunday", "monday"]);
|
|
28649
|
+
var filterAutoShowSchema = z45.enum(["auto", "always", "never"]);
|
|
28650
|
+
var calendarTabViewsSchema = z45.enum(["both", "month", "week"]);
|
|
28454
28651
|
|
|
28455
28652
|
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
28456
28653
|
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
@@ -28510,66 +28707,68 @@ function toRegistrationEvents(events) {
|
|
|
28510
28707
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
28511
28708
|
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
28512
28709
|
var EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
28513
|
-
var contentEntrySchema =
|
|
28514
|
-
id:
|
|
28515
|
-
slug:
|
|
28516
|
-
contentTypeSlug:
|
|
28710
|
+
var contentEntrySchema = z46.object({
|
|
28711
|
+
id: z46.string(),
|
|
28712
|
+
slug: z46.string(),
|
|
28713
|
+
contentTypeSlug: z46.string()
|
|
28517
28714
|
});
|
|
28518
|
-
var eventRegistrationPublicEventSchema =
|
|
28715
|
+
var eventRegistrationPublicEventSchema = z46.preprocess(
|
|
28519
28716
|
normalizeEventRegistrationEventInput,
|
|
28520
28717
|
publicEventSchema
|
|
28521
28718
|
);
|
|
28522
|
-
var eventRegistrationSourceSchema =
|
|
28523
|
-
siteId:
|
|
28524
|
-
apiBaseUrl:
|
|
28525
|
-
portalToken:
|
|
28526
|
-
previewToken:
|
|
28719
|
+
var eventRegistrationSourceSchema = z46.object({
|
|
28720
|
+
siteId: z46.string().optional(),
|
|
28721
|
+
apiBaseUrl: z46.string().optional(),
|
|
28722
|
+
portalToken: z46.string().nullable().optional(),
|
|
28723
|
+
previewToken: z46.string().nullable().optional(),
|
|
28527
28724
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
28528
28725
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
28529
|
-
events:
|
|
28530
|
-
className:
|
|
28531
|
-
buttonText:
|
|
28532
|
-
maxTickets:
|
|
28533
|
-
showVenue:
|
|
28534
|
-
showCapacity:
|
|
28535
|
-
successMessage:
|
|
28536
|
-
waitlistMessage:
|
|
28726
|
+
events: z46.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
28727
|
+
className: z46.string().nullable().optional(),
|
|
28728
|
+
buttonText: z46.string().nullable().optional(),
|
|
28729
|
+
maxTickets: z46.string().nullable().optional(),
|
|
28730
|
+
showVenue: z46.boolean().optional(),
|
|
28731
|
+
showCapacity: z46.boolean().optional(),
|
|
28732
|
+
successMessage: z46.string().optional(),
|
|
28733
|
+
waitlistMessage: z46.string().optional(),
|
|
28537
28734
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
28538
|
-
|
|
28735
|
+
overlayEnabled: z46.boolean().optional(),
|
|
28736
|
+
spamProtectionEnabled: z46.boolean().optional(),
|
|
28539
28737
|
stage: previewStageSchema.optional(),
|
|
28540
|
-
supportEmail:
|
|
28541
|
-
});
|
|
28542
|
-
var eventRegistrationDisplaySchema =
|
|
28543
|
-
kind:
|
|
28544
|
-
state:
|
|
28545
|
-
className:
|
|
28546
|
-
titleText:
|
|
28547
|
-
bodyText:
|
|
28548
|
-
stepLabels:
|
|
28549
|
-
summaryButtonText:
|
|
28550
|
-
});
|
|
28551
|
-
var eventRegistrationHydrationSchema =
|
|
28738
|
+
supportEmail: z46.string().optional()
|
|
28739
|
+
});
|
|
28740
|
+
var eventRegistrationDisplaySchema = z46.object({
|
|
28741
|
+
kind: z46.literal("event-registration"),
|
|
28742
|
+
state: z46.literal("generic-shell"),
|
|
28743
|
+
className: z46.string().nullable(),
|
|
28744
|
+
titleText: z46.string(),
|
|
28745
|
+
bodyText: z46.string(),
|
|
28746
|
+
stepLabels: z46.array(z46.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
28747
|
+
summaryButtonText: z46.string()
|
|
28748
|
+
});
|
|
28749
|
+
var eventRegistrationHydrationSchema = z46.object({
|
|
28552
28750
|
occurrenceContext: occurrenceContextSchema.optional(),
|
|
28553
28751
|
contentEntry: contentEntrySchema.nullable().optional(),
|
|
28554
|
-
events:
|
|
28555
|
-
maxTickets:
|
|
28556
|
-
showVenue:
|
|
28557
|
-
showCapacity:
|
|
28558
|
-
successMessage:
|
|
28559
|
-
waitlistMessage:
|
|
28752
|
+
events: z46.array(eventRegistrationPublicEventSchema).nullable().optional(),
|
|
28753
|
+
maxTickets: z46.string().optional(),
|
|
28754
|
+
showVenue: z46.boolean().optional(),
|
|
28755
|
+
showCapacity: z46.boolean().optional(),
|
|
28756
|
+
successMessage: z46.string().optional(),
|
|
28757
|
+
waitlistMessage: z46.string().optional(),
|
|
28560
28758
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
28561
|
-
|
|
28562
|
-
|
|
28759
|
+
overlayEnabled: z46.boolean().optional(),
|
|
28760
|
+
spamProtectionEnabled: z46.boolean().optional(),
|
|
28761
|
+
supportEmail: z46.string().optional()
|
|
28563
28762
|
});
|
|
28564
|
-
var eventRegistrationRenderSchema =
|
|
28763
|
+
var eventRegistrationRenderSchema = z46.object({
|
|
28565
28764
|
display: eventRegistrationDisplaySchema,
|
|
28566
28765
|
hydration: eventRegistrationHydrationSchema
|
|
28567
28766
|
});
|
|
28568
|
-
var eventRegistrationIslandMetaCodec = createZodCodec(
|
|
28569
|
-
siteId:
|
|
28570
|
-
apiBaseUrl:
|
|
28571
|
-
portalToken:
|
|
28572
|
-
previewToken:
|
|
28767
|
+
var eventRegistrationIslandMetaCodec = createZodCodec(z46.object({
|
|
28768
|
+
siteId: z46.string().optional(),
|
|
28769
|
+
apiBaseUrl: z46.string().optional(),
|
|
28770
|
+
portalToken: z46.string().nullable().optional(),
|
|
28771
|
+
previewToken: z46.string().nullable().optional(),
|
|
28573
28772
|
stage: previewStageSchema.optional()
|
|
28574
28773
|
}));
|
|
28575
28774
|
var eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
@@ -28673,6 +28872,7 @@ var eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
28673
28872
|
successMessage: source.successMessage,
|
|
28674
28873
|
waitlistMessage: source.waitlistMessage,
|
|
28675
28874
|
buttonVariant: source.buttonVariant,
|
|
28875
|
+
overlayEnabled: source.overlayEnabled,
|
|
28676
28876
|
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
28677
28877
|
supportEmail: source.supportEmail
|
|
28678
28878
|
}
|
|
@@ -28848,6 +29048,12 @@ var eventRegistrationManifest = createBlockManifest({
|
|
|
28848
29048
|
buttonVariant: {
|
|
28849
29049
|
$bind: { from: "content.buttonVariant", fallback: "primary" }
|
|
28850
29050
|
},
|
|
29051
|
+
overlayEnabled: {
|
|
29052
|
+
$bind: {
|
|
29053
|
+
from: "$root.eventRegistrationOverlayEnabled",
|
|
29054
|
+
fallback: false
|
|
29055
|
+
}
|
|
29056
|
+
},
|
|
28851
29057
|
// Event data from loader
|
|
28852
29058
|
events: { $bind: { from: "data.events" } },
|
|
28853
29059
|
// Stage for preview mode (allows registering for draft events)
|
|
@@ -28868,7 +29074,7 @@ var eventRegistrationBlockDefinition = {
|
|
|
28868
29074
|
manifest: eventRegistrationManifest,
|
|
28869
29075
|
runtime: eventRegistrationBlockRuntime,
|
|
28870
29076
|
dataSchemas: {
|
|
28871
|
-
events:
|
|
29077
|
+
events: z47.array(publicEventSchema).optional(),
|
|
28872
29078
|
occurrenceContext: occurrenceContextSchema.optional()
|
|
28873
29079
|
},
|
|
28874
29080
|
dataLoaders: {
|
|
@@ -28892,73 +29098,73 @@ var eventRegistrationBlockDefinition = {
|
|
|
28892
29098
|
};
|
|
28893
29099
|
|
|
28894
29100
|
// ../blocks/src/system/runtime/nodes/course-registration.interactive.ts
|
|
28895
|
-
import { z as
|
|
28896
|
-
var contentEntrySchema2 =
|
|
28897
|
-
id:
|
|
28898
|
-
slug:
|
|
28899
|
-
contentTypeSlug:
|
|
28900
|
-
});
|
|
28901
|
-
var courseEntrySubrouteContextSchema =
|
|
28902
|
-
|
|
28903
|
-
kind:
|
|
28904
|
-
run:
|
|
28905
|
-
courseId:
|
|
28906
|
-
seriesId:
|
|
28907
|
-
runSlug:
|
|
28908
|
-
runName:
|
|
29101
|
+
import { z as z48 } from "zod";
|
|
29102
|
+
var contentEntrySchema2 = z48.object({
|
|
29103
|
+
id: z48.string(),
|
|
29104
|
+
slug: z48.string(),
|
|
29105
|
+
contentTypeSlug: z48.string()
|
|
29106
|
+
});
|
|
29107
|
+
var courseEntrySubrouteContextSchema = z48.union([
|
|
29108
|
+
z48.object({
|
|
29109
|
+
kind: z48.literal("course-run"),
|
|
29110
|
+
run: z48.object({
|
|
29111
|
+
courseId: z48.string(),
|
|
29112
|
+
seriesId: z48.string(),
|
|
29113
|
+
runSlug: z48.string(),
|
|
29114
|
+
runName: z48.string().nullable()
|
|
28909
29115
|
})
|
|
28910
29116
|
}),
|
|
28911
|
-
|
|
28912
|
-
kind:
|
|
29117
|
+
z48.object({
|
|
29118
|
+
kind: z48.literal("event-occurrence"),
|
|
28913
29119
|
occurrence: occurrenceContextSchema
|
|
28914
29120
|
})
|
|
28915
29121
|
]);
|
|
28916
|
-
var courseRegistrationSourceSchema =
|
|
28917
|
-
siteId:
|
|
28918
|
-
apiBaseUrl:
|
|
28919
|
-
portalToken:
|
|
29122
|
+
var courseRegistrationSourceSchema = z48.object({
|
|
29123
|
+
siteId: z48.string().optional(),
|
|
29124
|
+
apiBaseUrl: z48.string().optional(),
|
|
29125
|
+
portalToken: z48.string().nullable().optional(),
|
|
28920
29126
|
contentEntry: contentEntrySchema2.nullable().optional(),
|
|
28921
29127
|
entrySubrouteContext: courseEntrySubrouteContextSchema.nullable().optional(),
|
|
28922
|
-
courses:
|
|
28923
|
-
className:
|
|
28924
|
-
showSessions:
|
|
28925
|
-
showPrice:
|
|
28926
|
-
showCapacity:
|
|
28927
|
-
showVenue:
|
|
28928
|
-
successMessage:
|
|
28929
|
-
waitlistMessage:
|
|
28930
|
-
membershipMessage:
|
|
28931
|
-
buttonText:
|
|
29128
|
+
courses: z48.array(publicCourseSchema).nullable().optional(),
|
|
29129
|
+
className: z48.string().nullable().optional(),
|
|
29130
|
+
showSessions: z48.boolean().optional(),
|
|
29131
|
+
showPrice: z48.boolean().optional(),
|
|
29132
|
+
showCapacity: z48.boolean().optional(),
|
|
29133
|
+
showVenue: z48.boolean().optional(),
|
|
29134
|
+
successMessage: z48.string().optional(),
|
|
29135
|
+
waitlistMessage: z48.string().optional(),
|
|
29136
|
+
membershipMessage: z48.string().optional(),
|
|
29137
|
+
buttonText: z48.string().nullable().optional(),
|
|
28932
29138
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
28933
29139
|
stage: previewStageSchema.optional()
|
|
28934
29140
|
});
|
|
28935
|
-
var courseRegistrationDisplaySchema =
|
|
28936
|
-
kind:
|
|
28937
|
-
state:
|
|
28938
|
-
className:
|
|
28939
|
-
summaryButtonText:
|
|
29141
|
+
var courseRegistrationDisplaySchema = z48.object({
|
|
29142
|
+
kind: z48.literal("course-registration"),
|
|
29143
|
+
state: z48.literal("shell"),
|
|
29144
|
+
className: z48.string().nullable(),
|
|
29145
|
+
summaryButtonText: z48.string()
|
|
28940
29146
|
});
|
|
28941
|
-
var courseRegistrationHydrationSchema =
|
|
29147
|
+
var courseRegistrationHydrationSchema = z48.object({
|
|
28942
29148
|
contentEntry: contentEntrySchema2.nullable().optional(),
|
|
28943
29149
|
entrySubrouteContext: courseEntrySubrouteContextSchema.nullable().optional(),
|
|
28944
|
-
courses:
|
|
28945
|
-
showSessions:
|
|
28946
|
-
showPrice:
|
|
28947
|
-
showCapacity:
|
|
28948
|
-
showVenue:
|
|
28949
|
-
successMessage:
|
|
28950
|
-
waitlistMessage:
|
|
28951
|
-
membershipMessage:
|
|
29150
|
+
courses: z48.array(publicCourseSchema).nullable().optional(),
|
|
29151
|
+
showSessions: z48.boolean().optional(),
|
|
29152
|
+
showPrice: z48.boolean().optional(),
|
|
29153
|
+
showCapacity: z48.boolean().optional(),
|
|
29154
|
+
showVenue: z48.boolean().optional(),
|
|
29155
|
+
successMessage: z48.string().optional(),
|
|
29156
|
+
waitlistMessage: z48.string().optional(),
|
|
29157
|
+
membershipMessage: z48.string().optional(),
|
|
28952
29158
|
buttonVariant: registrationButtonVariantSchema.optional()
|
|
28953
29159
|
});
|
|
28954
|
-
var courseRegistrationRenderSchema =
|
|
29160
|
+
var courseRegistrationRenderSchema = z48.object({
|
|
28955
29161
|
display: courseRegistrationDisplaySchema,
|
|
28956
29162
|
hydration: courseRegistrationHydrationSchema
|
|
28957
29163
|
});
|
|
28958
|
-
var courseRegistrationIslandMetaCodec = createZodCodec(
|
|
28959
|
-
siteId:
|
|
28960
|
-
apiBaseUrl:
|
|
28961
|
-
portalToken:
|
|
29164
|
+
var courseRegistrationIslandMetaCodec = createZodCodec(z48.object({
|
|
29165
|
+
siteId: z48.string().optional(),
|
|
29166
|
+
apiBaseUrl: z48.string().optional(),
|
|
29167
|
+
portalToken: z48.string().nullable().optional(),
|
|
28962
29168
|
stage: previewStageSchema.optional()
|
|
28963
29169
|
}));
|
|
28964
29170
|
var courseRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
@@ -29218,32 +29424,32 @@ var courseRegistrationBlockDefinition = {
|
|
|
29218
29424
|
};
|
|
29219
29425
|
|
|
29220
29426
|
// ../blocks/src/system/blocks/event-details.ts
|
|
29221
|
-
import { z as
|
|
29427
|
+
import { z as z50 } from "zod";
|
|
29222
29428
|
|
|
29223
29429
|
// ../blocks/src/system/blocks/shop.shared.ts
|
|
29224
|
-
import { z as
|
|
29225
|
-
var publicPassProductSchema =
|
|
29226
|
-
id:
|
|
29227
|
-
productUseCase:
|
|
29228
|
-
name:
|
|
29229
|
-
description:
|
|
29230
|
-
price:
|
|
29231
|
-
currency:
|
|
29232
|
-
creditsTotal:
|
|
29233
|
-
pricePerCredit:
|
|
29234
|
-
validDays:
|
|
29235
|
-
eligibleCategoryIds:
|
|
29236
|
-
eligibleCategoryNames:
|
|
29237
|
-
});
|
|
29238
|
-
var publicMembershipProductSchema =
|
|
29239
|
-
id:
|
|
29240
|
-
name:
|
|
29241
|
-
description:
|
|
29242
|
-
price:
|
|
29243
|
-
currency:
|
|
29244
|
-
billingInterval:
|
|
29245
|
-
eligibleCategoryIds:
|
|
29246
|
-
eligibleCategoryNames:
|
|
29430
|
+
import { z as z49 } from "zod";
|
|
29431
|
+
var publicPassProductSchema = z49.object({
|
|
29432
|
+
id: z49.string(),
|
|
29433
|
+
productUseCase: z49.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
29434
|
+
name: z49.string(),
|
|
29435
|
+
description: z49.string().nullable(),
|
|
29436
|
+
price: z49.number(),
|
|
29437
|
+
currency: z49.string(),
|
|
29438
|
+
creditsTotal: z49.number(),
|
|
29439
|
+
pricePerCredit: z49.number(),
|
|
29440
|
+
validDays: z49.number().nullable(),
|
|
29441
|
+
eligibleCategoryIds: z49.array(z49.string()),
|
|
29442
|
+
eligibleCategoryNames: z49.array(z49.string())
|
|
29443
|
+
});
|
|
29444
|
+
var publicMembershipProductSchema = z49.object({
|
|
29445
|
+
id: z49.string(),
|
|
29446
|
+
name: z49.string(),
|
|
29447
|
+
description: z49.string().nullable(),
|
|
29448
|
+
price: z49.number(),
|
|
29449
|
+
currency: z49.string(),
|
|
29450
|
+
billingInterval: z49.enum(["month", "year"]),
|
|
29451
|
+
eligibleCategoryIds: z49.array(z49.string()),
|
|
29452
|
+
eligibleCategoryNames: z49.array(z49.string())
|
|
29247
29453
|
});
|
|
29248
29454
|
|
|
29249
29455
|
// ../blocks/src/system/blocks/event-details.ts
|
|
@@ -29378,40 +29584,40 @@ var eventDetailsManifest = createBlockManifest({
|
|
|
29378
29584
|
})
|
|
29379
29585
|
]
|
|
29380
29586
|
});
|
|
29381
|
-
var occurrenceContextSchema2 =
|
|
29382
|
-
id:
|
|
29383
|
-
seriesId:
|
|
29384
|
-
startsAt:
|
|
29385
|
-
endsAt:
|
|
29386
|
-
timeZone:
|
|
29387
|
-
capacityOverride:
|
|
29388
|
-
overrides:
|
|
29587
|
+
var occurrenceContextSchema2 = z50.object({
|
|
29588
|
+
id: z50.string(),
|
|
29589
|
+
seriesId: z50.string(),
|
|
29590
|
+
startsAt: z50.string(),
|
|
29591
|
+
endsAt: z50.string(),
|
|
29592
|
+
timeZone: z50.string(),
|
|
29593
|
+
capacityOverride: z50.number().nullable().optional(),
|
|
29594
|
+
overrides: z50.record(z50.string(), z50.unknown()).nullable().optional()
|
|
29389
29595
|
}).nullable();
|
|
29390
|
-
var eventAutoApplyDiscountPreviewBaseSchema =
|
|
29391
|
-
id:
|
|
29392
|
-
publicLabel:
|
|
29393
|
-
description:
|
|
29394
|
-
minTicketsRequired:
|
|
29596
|
+
var eventAutoApplyDiscountPreviewBaseSchema = z50.object({
|
|
29597
|
+
id: z50.string(),
|
|
29598
|
+
publicLabel: z50.string(),
|
|
29599
|
+
description: z50.string().nullable(),
|
|
29600
|
+
minTicketsRequired: z50.number().nullable()
|
|
29395
29601
|
});
|
|
29396
|
-
var eventAutoApplyDiscountPreviewSchema =
|
|
29602
|
+
var eventAutoApplyDiscountPreviewSchema = z50.discriminatedUnion("discountType", [
|
|
29397
29603
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
29398
|
-
discountType:
|
|
29399
|
-
discountPercent:
|
|
29400
|
-
discountAmountCents:
|
|
29604
|
+
discountType: z50.literal("percent"),
|
|
29605
|
+
discountPercent: z50.number(),
|
|
29606
|
+
discountAmountCents: z50.null()
|
|
29401
29607
|
}),
|
|
29402
29608
|
eventAutoApplyDiscountPreviewBaseSchema.extend({
|
|
29403
|
-
discountType:
|
|
29404
|
-
discountPercent:
|
|
29405
|
-
discountAmountCents:
|
|
29609
|
+
discountType: z50.literal("fixed"),
|
|
29610
|
+
discountPercent: z50.null(),
|
|
29611
|
+
discountAmountCents: z50.number()
|
|
29406
29612
|
})
|
|
29407
29613
|
]);
|
|
29408
29614
|
var eventDetailsBlockDefinition = {
|
|
29409
29615
|
manifest: eventDetailsManifest,
|
|
29410
29616
|
dataSchemas: {
|
|
29411
|
-
eventDetailsData:
|
|
29617
|
+
eventDetailsData: z50.object({
|
|
29412
29618
|
events: publicEventsArraySchema,
|
|
29413
|
-
sitePasses:
|
|
29414
|
-
siteMemberships:
|
|
29619
|
+
sitePasses: z50.object({ passes: z50.array(publicPassProductSchema) }),
|
|
29620
|
+
siteMemberships: z50.object({ memberships: z50.array(publicMembershipProductSchema) }),
|
|
29415
29621
|
autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional().default(null)
|
|
29416
29622
|
}).optional(),
|
|
29417
29623
|
occurrenceContext: occurrenceContextSchema2.optional()
|
|
@@ -29735,7 +29941,7 @@ var eventSpotlightBlockDefinition = {
|
|
|
29735
29941
|
};
|
|
29736
29942
|
|
|
29737
29943
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
29738
|
-
import { z as
|
|
29944
|
+
import { z as z52 } from "zod";
|
|
29739
29945
|
|
|
29740
29946
|
// ../blocks/src/system/runtime/nodes/events/shared/utils.ts
|
|
29741
29947
|
var COLUMN_CLASSES = {
|
|
@@ -29843,16 +30049,16 @@ function computeMediaTransformStyle(value, style, targetAspectRatio, options) {
|
|
|
29843
30049
|
}
|
|
29844
30050
|
|
|
29845
30051
|
// ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
|
|
29846
|
-
import { z as
|
|
30052
|
+
import { z as z51 } from "zod";
|
|
29847
30053
|
var eventPageSizeValues = [3, 6, 10, 12, 20, 24, 30];
|
|
29848
|
-
var eventPageSizeSchema =
|
|
29849
|
-
|
|
29850
|
-
|
|
29851
|
-
|
|
29852
|
-
|
|
29853
|
-
|
|
29854
|
-
|
|
29855
|
-
|
|
30054
|
+
var eventPageSizeSchema = z51.union([
|
|
30055
|
+
z51.literal(3),
|
|
30056
|
+
z51.literal(6),
|
|
30057
|
+
z51.literal(10),
|
|
30058
|
+
z51.literal(12),
|
|
30059
|
+
z51.literal(20),
|
|
30060
|
+
z51.literal(24),
|
|
30061
|
+
z51.literal(30)
|
|
29856
30062
|
]);
|
|
29857
30063
|
var eventPageSizeSet = new Set(eventPageSizeValues);
|
|
29858
30064
|
function resolveEventPageSize(value, fallback = 12) {
|
|
@@ -29862,15 +30068,15 @@ function resolveEventPageSize(value, fallback = 12) {
|
|
|
29862
30068
|
function resolveEventCalendarListPageSize(input) {
|
|
29863
30069
|
return resolveEventPageSize(input.eventsPerPage);
|
|
29864
30070
|
}
|
|
29865
|
-
var eventListPaginationActionSchema =
|
|
29866
|
-
|
|
29867
|
-
kind:
|
|
29868
|
-
label:
|
|
30071
|
+
var eventListPaginationActionSchema = z51.discriminatedUnion("kind", [
|
|
30072
|
+
z51.object({
|
|
30073
|
+
kind: z51.literal("loadMore"),
|
|
30074
|
+
label: z51.string()
|
|
29869
30075
|
}),
|
|
29870
|
-
|
|
29871
|
-
kind:
|
|
29872
|
-
label:
|
|
29873
|
-
href:
|
|
30076
|
+
z51.object({
|
|
30077
|
+
kind: z51.literal("seeAllLink"),
|
|
30078
|
+
label: z51.string(),
|
|
30079
|
+
href: z51.string()
|
|
29874
30080
|
})
|
|
29875
30081
|
]);
|
|
29876
30082
|
function resolveEventListPaginationAction(input) {
|
|
@@ -29883,89 +30089,89 @@ function resolveEventListPaginationAction(input) {
|
|
|
29883
30089
|
}
|
|
29884
30090
|
|
|
29885
30091
|
// ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
29886
|
-
var legacyEventCardVariantSchema =
|
|
29887
|
-
var eventCardVariantInputSchema =
|
|
30092
|
+
var legacyEventCardVariantSchema = z52.enum(["variant1", "variant2"]);
|
|
30093
|
+
var eventCardVariantInputSchema = z52.union([
|
|
29888
30094
|
cardVariantRoleSchema,
|
|
29889
30095
|
legacyEventCardVariantSchema
|
|
29890
30096
|
]);
|
|
29891
|
-
var cardOrientationSchema =
|
|
29892
|
-
var eventBlockKindSchema =
|
|
29893
|
-
var eventSurfaceScopeSchema =
|
|
29894
|
-
var eventScheduleScopeSchema2 =
|
|
29895
|
-
var eventListingSourceSchema =
|
|
29896
|
-
events:
|
|
29897
|
-
siteId:
|
|
29898
|
-
apiBaseUrl:
|
|
30097
|
+
var cardOrientationSchema = z52.enum(["vertical", "horizontal"]);
|
|
30098
|
+
var eventBlockKindSchema = z52.enum(eventBlockKindValues);
|
|
30099
|
+
var eventSurfaceScopeSchema = z52.enum(eventSurfaceScopeValues);
|
|
30100
|
+
var eventScheduleScopeSchema2 = z52.enum(eventScheduleScopeValues);
|
|
30101
|
+
var eventListingSourceSchema = z52.object({
|
|
30102
|
+
events: z52.array(publicEventSchema).nullable().optional(),
|
|
30103
|
+
siteId: z52.string(),
|
|
30104
|
+
apiBaseUrl: z52.string().optional(),
|
|
29899
30105
|
stage: previewStageSchema.optional(),
|
|
29900
30106
|
layout: eventLayoutSchema.optional(),
|
|
29901
30107
|
columns: columnOptionSchema.optional(),
|
|
29902
|
-
eventsPerPage:
|
|
29903
|
-
paginationMode:
|
|
29904
|
-
seeAllUrl:
|
|
29905
|
-
loadMoreText:
|
|
30108
|
+
eventsPerPage: z52.string().optional(),
|
|
30109
|
+
paginationMode: z52.enum(["loadMore", "seeAllLink"]).optional(),
|
|
30110
|
+
seeAllUrl: z52.string().optional(),
|
|
30111
|
+
loadMoreText: z52.string().optional(),
|
|
29906
30112
|
cardVariant: eventCardVariantInputSchema.optional(),
|
|
29907
30113
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
29908
|
-
buttonText:
|
|
29909
|
-
showVenue:
|
|
29910
|
-
showMap:
|
|
29911
|
-
showCapacity:
|
|
29912
|
-
emptyMessage:
|
|
29913
|
-
className:
|
|
29914
|
-
showFilters:
|
|
30114
|
+
buttonText: z52.string().optional(),
|
|
30115
|
+
showVenue: z52.boolean().optional(),
|
|
30116
|
+
showMap: z52.boolean().optional(),
|
|
30117
|
+
showCapacity: z52.boolean().optional(),
|
|
30118
|
+
emptyMessage: z52.string().optional(),
|
|
30119
|
+
className: z52.string().optional(),
|
|
30120
|
+
showFilters: z52.boolean().nullable().optional(),
|
|
29915
30121
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
29916
|
-
showVenueFilter:
|
|
29917
|
-
showStaffFilter:
|
|
30122
|
+
showVenueFilter: z52.boolean().nullable().optional(),
|
|
30123
|
+
showStaffFilter: z52.boolean().nullable().optional(),
|
|
29918
30124
|
eventKind: eventBlockKindSchema.nullable().optional(),
|
|
29919
30125
|
eventSurface: eventSurfaceScopeSchema.nullable().optional(),
|
|
29920
|
-
filterEventPresets:
|
|
30126
|
+
filterEventPresets: z52.union([z52.string(), z52.array(z52.string())]).nullable().optional(),
|
|
29921
30127
|
scheduleScope: eventScheduleScopeSchema2.nullable().optional(),
|
|
29922
|
-
filterCategoryIds:
|
|
29923
|
-
filterStaffMemberId:
|
|
29924
|
-
filterVenueId:
|
|
30128
|
+
filterCategoryIds: z52.string().nullable().optional(),
|
|
30129
|
+
filterStaffMemberId: z52.string().nullable().optional(),
|
|
30130
|
+
filterVenueId: z52.string().nullable().optional()
|
|
29925
30131
|
});
|
|
29926
|
-
var eventListingDisplaySchema =
|
|
29927
|
-
kind:
|
|
29928
|
-
state:
|
|
30132
|
+
var eventListingDisplaySchema = z52.object({
|
|
30133
|
+
kind: z52.literal("event-listing"),
|
|
30134
|
+
state: z52.enum(["loading", "empty", "ready"]),
|
|
29929
30135
|
listLayout: eventLayoutSchema,
|
|
29930
|
-
className:
|
|
29931
|
-
emptyMessage:
|
|
29932
|
-
loadingMessage:
|
|
29933
|
-
containerClass:
|
|
30136
|
+
className: z52.string().nullable(),
|
|
30137
|
+
emptyMessage: z52.string(),
|
|
30138
|
+
loadingMessage: z52.string(),
|
|
30139
|
+
containerClass: z52.string(),
|
|
29934
30140
|
cardVariant: cardVariantRoleSchema,
|
|
29935
30141
|
buttonVariant: eventButtonVariantSchema,
|
|
29936
|
-
buttonText:
|
|
29937
|
-
showVenue:
|
|
29938
|
-
showMap:
|
|
29939
|
-
showCapacity:
|
|
30142
|
+
buttonText: z52.string(),
|
|
30143
|
+
showVenue: z52.boolean(),
|
|
30144
|
+
showMap: z52.boolean(),
|
|
30145
|
+
showCapacity: z52.boolean(),
|
|
29940
30146
|
orientation: cardOrientationSchema,
|
|
29941
|
-
events:
|
|
30147
|
+
events: z52.array(publicEventSchema)
|
|
29942
30148
|
});
|
|
29943
|
-
var eventListingHydrationSchema =
|
|
29944
|
-
siteId:
|
|
30149
|
+
var eventListingHydrationSchema = z52.object({
|
|
30150
|
+
siteId: z52.string(),
|
|
29945
30151
|
stage: previewStageSchema.optional(),
|
|
29946
30152
|
eventsPerPage: eventPageSizeSchema,
|
|
29947
30153
|
paginationAction: eventListPaginationActionSchema,
|
|
29948
|
-
showFilters:
|
|
30154
|
+
showFilters: z52.boolean(),
|
|
29949
30155
|
showCategoryFilter: filterAutoShowSchema,
|
|
29950
|
-
showVenueFilter:
|
|
29951
|
-
showStaffFilter:
|
|
30156
|
+
showVenueFilter: z52.boolean(),
|
|
30157
|
+
showStaffFilter: z52.boolean(),
|
|
29952
30158
|
eventKind: eventBlockKindSchema,
|
|
29953
30159
|
eventSurface: eventSurfaceScopeSchema,
|
|
29954
|
-
filterEventPresets:
|
|
30160
|
+
filterEventPresets: z52.string().nullable(),
|
|
29955
30161
|
scheduleScope: eventScheduleScopeSchema2,
|
|
29956
|
-
filterCategoryIds:
|
|
29957
|
-
filterStaffMemberId:
|
|
29958
|
-
filterVenueId:
|
|
29959
|
-
fetchInitialEventsOnMount:
|
|
30162
|
+
filterCategoryIds: z52.string().nullable().optional(),
|
|
30163
|
+
filterStaffMemberId: z52.string().nullable().optional(),
|
|
30164
|
+
filterVenueId: z52.string().nullable().optional(),
|
|
30165
|
+
fetchInitialEventsOnMount: z52.boolean()
|
|
29960
30166
|
});
|
|
29961
|
-
var eventListingRenderSchema =
|
|
30167
|
+
var eventListingRenderSchema = z52.object({
|
|
29962
30168
|
display: eventListingDisplaySchema,
|
|
29963
30169
|
hydration: eventListingHydrationSchema
|
|
29964
30170
|
});
|
|
29965
30171
|
var eventListingIslandMetaCodec = createZodCodec(
|
|
29966
|
-
|
|
29967
|
-
siteId:
|
|
29968
|
-
apiBaseUrl:
|
|
30172
|
+
z52.object({
|
|
30173
|
+
siteId: z52.string(),
|
|
30174
|
+
apiBaseUrl: z52.string().optional(),
|
|
29969
30175
|
stage: previewStageSchema.optional()
|
|
29970
30176
|
})
|
|
29971
30177
|
);
|
|
@@ -30332,15 +30538,15 @@ var eventListingBlockDefinition = {
|
|
|
30332
30538
|
};
|
|
30333
30539
|
|
|
30334
30540
|
// ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
|
|
30335
|
-
import { z as
|
|
30336
|
-
var eventBlockKindSchema2 =
|
|
30337
|
-
var eventSurfaceScopeSchema2 =
|
|
30338
|
-
var eventScheduleScopeSchema3 =
|
|
30339
|
-
var eventCalendarSourceSchema =
|
|
30541
|
+
import { z as z53 } from "zod";
|
|
30542
|
+
var eventBlockKindSchema2 = z53.enum(eventBlockKindValues);
|
|
30543
|
+
var eventSurfaceScopeSchema2 = z53.enum(eventSurfaceScopeValues);
|
|
30544
|
+
var eventScheduleScopeSchema3 = z53.enum(eventScheduleScopeValues);
|
|
30545
|
+
var eventCalendarSourceSchema = z53.object(
|
|
30340
30546
|
{
|
|
30341
|
-
events:
|
|
30342
|
-
siteId:
|
|
30343
|
-
apiBaseUrl:
|
|
30547
|
+
events: z53.array(publicEventSchema).nullable().optional(),
|
|
30548
|
+
siteId: z53.string(),
|
|
30549
|
+
apiBaseUrl: z53.string().optional(),
|
|
30344
30550
|
stage: previewStageSchema.optional(),
|
|
30345
30551
|
variant: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
30346
30552
|
displayMode: eventCalendarDisplayModeSchema.nullable().optional(),
|
|
@@ -30348,78 +30554,78 @@ var eventCalendarSourceSchema = z52.object(
|
|
|
30348
30554
|
listColumns: columnOptionSchema.optional(),
|
|
30349
30555
|
layout: eventLayoutSchema.optional(),
|
|
30350
30556
|
columns: columnOptionSchema.optional(),
|
|
30351
|
-
eventsPerPage:
|
|
30352
|
-
paginationMode:
|
|
30353
|
-
seeAllUrl:
|
|
30354
|
-
loadMoreText:
|
|
30557
|
+
eventsPerPage: z53.string().optional(),
|
|
30558
|
+
paginationMode: z53.enum(["loadMore", "seeAllLink"]).optional(),
|
|
30559
|
+
seeAllUrl: z53.string().optional(),
|
|
30560
|
+
loadMoreText: z53.string().optional(),
|
|
30355
30561
|
startOfWeek: weekStartSchema.optional(),
|
|
30356
30562
|
calendarTabViews: calendarTabViewsSchema.optional(),
|
|
30357
|
-
showFilters:
|
|
30563
|
+
showFilters: z53.boolean().nullable().optional(),
|
|
30358
30564
|
showCategoryFilter: filterAutoShowSchema.optional(),
|
|
30359
|
-
showVenueFilter:
|
|
30360
|
-
showStaffFilter:
|
|
30565
|
+
showVenueFilter: z53.boolean().nullable().optional(),
|
|
30566
|
+
showStaffFilter: z53.boolean().nullable().optional(),
|
|
30361
30567
|
kind: eventBlockKindSchema2.nullable().optional(),
|
|
30362
30568
|
eventSurface: eventSurfaceScopeSchema2.nullable().optional(),
|
|
30363
|
-
filterEventPresets:
|
|
30569
|
+
filterEventPresets: z53.union([z53.string(), z53.array(z53.string())]).nullable().optional(),
|
|
30364
30570
|
scheduleScope: eventScheduleScopeSchema3.nullable().optional(),
|
|
30365
|
-
filterCategoryIds:
|
|
30366
|
-
filterStaffMemberId:
|
|
30367
|
-
filterVenueId:
|
|
30571
|
+
filterCategoryIds: z53.union([z53.string(), z53.array(z53.string())]).nullable().optional(),
|
|
30572
|
+
filterStaffMemberId: z53.string().nullable().optional(),
|
|
30573
|
+
filterVenueId: z53.string().nullable().optional(),
|
|
30368
30574
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
30369
|
-
buttonText:
|
|
30370
|
-
showVenue:
|
|
30371
|
-
showMap:
|
|
30372
|
-
showCapacity:
|
|
30373
|
-
emptyMessage:
|
|
30374
|
-
className:
|
|
30575
|
+
buttonText: z53.string().optional(),
|
|
30576
|
+
showVenue: z53.boolean().nullable().optional(),
|
|
30577
|
+
showMap: z53.boolean().nullable().optional(),
|
|
30578
|
+
showCapacity: z53.boolean().nullable().optional(),
|
|
30579
|
+
emptyMessage: z53.string().optional(),
|
|
30580
|
+
className: z53.string().optional()
|
|
30375
30581
|
}
|
|
30376
30582
|
);
|
|
30377
|
-
var eventCalendarDisplaySchema =
|
|
30378
|
-
kind:
|
|
30583
|
+
var eventCalendarDisplaySchema = z53.object({
|
|
30584
|
+
kind: z53.literal("event-calendar"),
|
|
30379
30585
|
displayMode: eventCalendarDisplayModeSchema,
|
|
30380
|
-
className:
|
|
30381
|
-
events:
|
|
30586
|
+
className: z53.string().nullable(),
|
|
30587
|
+
events: z53.array(publicEventSchema),
|
|
30382
30588
|
listLayout: eventLayoutSchema,
|
|
30383
30589
|
listColumns: columnOptionSchema,
|
|
30384
30590
|
eventsPerPage: eventPageSizeSchema,
|
|
30385
30591
|
paginationAction: eventListPaginationActionSchema,
|
|
30386
30592
|
startOfWeek: weekStartSchema,
|
|
30387
30593
|
calendarTabViews: calendarTabViewsSchema,
|
|
30388
|
-
showFilters:
|
|
30594
|
+
showFilters: z53.boolean(),
|
|
30389
30595
|
showCategoryFilter: filterAutoShowSchema,
|
|
30390
|
-
showVenueFilter:
|
|
30391
|
-
showStaffFilter:
|
|
30596
|
+
showVenueFilter: z53.boolean(),
|
|
30597
|
+
showStaffFilter: z53.boolean(),
|
|
30392
30598
|
eventKind: eventBlockKindSchema2,
|
|
30393
30599
|
eventSurface: eventSurfaceScopeSchema2,
|
|
30394
|
-
filterEventPresets:
|
|
30600
|
+
filterEventPresets: z53.string().nullable(),
|
|
30395
30601
|
scheduleScope: eventScheduleScopeSchema3,
|
|
30396
|
-
filterCategoryIds:
|
|
30397
|
-
filterStaffMemberId:
|
|
30398
|
-
filterVenueId:
|
|
30602
|
+
filterCategoryIds: z53.string().nullable(),
|
|
30603
|
+
filterStaffMemberId: z53.string().nullable(),
|
|
30604
|
+
filterVenueId: z53.string().nullable(),
|
|
30399
30605
|
buttonVariant: eventButtonVariantSchema,
|
|
30400
|
-
buttonText:
|
|
30401
|
-
showVenue:
|
|
30402
|
-
showMap:
|
|
30403
|
-
showCapacity:
|
|
30404
|
-
emptyMessage:
|
|
30405
|
-
});
|
|
30406
|
-
var eventCalendarHydrationSchema =
|
|
30407
|
-
siteId:
|
|
30606
|
+
buttonText: z53.string(),
|
|
30607
|
+
showVenue: z53.boolean(),
|
|
30608
|
+
showMap: z53.boolean(),
|
|
30609
|
+
showCapacity: z53.boolean(),
|
|
30610
|
+
emptyMessage: z53.string()
|
|
30611
|
+
});
|
|
30612
|
+
var eventCalendarHydrationSchema = z53.object({
|
|
30613
|
+
siteId: z53.string(),
|
|
30408
30614
|
stage: previewStageSchema.optional(),
|
|
30409
|
-
prefetchedEvents:
|
|
30615
|
+
prefetchedEvents: z53.boolean(),
|
|
30410
30616
|
eventKind: eventBlockKindSchema2,
|
|
30411
30617
|
eventSurface: eventSurfaceScopeSchema2,
|
|
30412
|
-
filterEventPresets:
|
|
30618
|
+
filterEventPresets: z53.string().nullable(),
|
|
30413
30619
|
scheduleScope: eventScheduleScopeSchema3
|
|
30414
30620
|
});
|
|
30415
|
-
var eventCalendarRenderSchema =
|
|
30621
|
+
var eventCalendarRenderSchema = z53.object({
|
|
30416
30622
|
display: eventCalendarDisplaySchema,
|
|
30417
30623
|
hydration: eventCalendarHydrationSchema
|
|
30418
30624
|
});
|
|
30419
30625
|
var eventCalendarIslandMetaCodec = createZodCodec(
|
|
30420
|
-
|
|
30421
|
-
siteId:
|
|
30422
|
-
apiBaseUrl:
|
|
30626
|
+
z53.object({
|
|
30627
|
+
siteId: z53.string(),
|
|
30628
|
+
apiBaseUrl: z53.string().optional(),
|
|
30423
30629
|
stage: previewStageSchema.optional()
|
|
30424
30630
|
})
|
|
30425
30631
|
);
|
|
@@ -31128,7 +31334,7 @@ var eventCalendarBlockDefinition = {
|
|
|
31128
31334
|
};
|
|
31129
31335
|
|
|
31130
31336
|
// ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
31131
|
-
import { z as
|
|
31337
|
+
import { z as z54 } from "zod";
|
|
31132
31338
|
|
|
31133
31339
|
// ../blocks/src/system/blocks/offerings-preview/model.ts
|
|
31134
31340
|
var OFFERINGS_PREVIEW_DEFAULT_ITEM_LIMIT = "3";
|
|
@@ -31220,13 +31426,13 @@ function isRecord5(value) {
|
|
|
31220
31426
|
}
|
|
31221
31427
|
|
|
31222
31428
|
// ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
31223
|
-
var publicRouteCandidatesSchema =
|
|
31224
|
-
routes:
|
|
31225
|
-
entityId:
|
|
31226
|
-
path:
|
|
31227
|
-
title:
|
|
31228
|
-
kind:
|
|
31229
|
-
contentTypeKey:
|
|
31429
|
+
var publicRouteCandidatesSchema = z54.object({
|
|
31430
|
+
routes: z54.array(z54.object({
|
|
31431
|
+
entityId: z54.string(),
|
|
31432
|
+
path: z54.string(),
|
|
31433
|
+
title: z54.string(),
|
|
31434
|
+
kind: z54.enum(["page", "content"]),
|
|
31435
|
+
contentTypeKey: z54.string().nullable().optional()
|
|
31230
31436
|
}))
|
|
31231
31437
|
});
|
|
31232
31438
|
var groupOverrideFields = [
|
|
@@ -31624,7 +31830,7 @@ function isRecord6(value) {
|
|
|
31624
31830
|
}
|
|
31625
31831
|
|
|
31626
31832
|
// ../blocks/src/system/blocks/embed.ts
|
|
31627
|
-
import { z as
|
|
31833
|
+
import { z as z55 } from "zod";
|
|
31628
31834
|
var embedFields = [
|
|
31629
31835
|
// Section heading
|
|
31630
31836
|
parseFieldDefinition({
|
|
@@ -31855,18 +32061,18 @@ var embedManifest = createBlockManifest({
|
|
|
31855
32061
|
spacing: "lg"
|
|
31856
32062
|
}
|
|
31857
32063
|
});
|
|
31858
|
-
var embedEntrySchema =
|
|
31859
|
-
id:
|
|
31860
|
-
identifier:
|
|
31861
|
-
title:
|
|
31862
|
-
slug:
|
|
31863
|
-
content:
|
|
31864
|
-
publishedAt:
|
|
32064
|
+
var embedEntrySchema = z55.object({
|
|
32065
|
+
id: z55.string(),
|
|
32066
|
+
identifier: z55.string(),
|
|
32067
|
+
title: z55.string(),
|
|
32068
|
+
slug: z55.string().nullable().optional(),
|
|
32069
|
+
content: z55.record(z55.string(), z55.unknown()).optional(),
|
|
32070
|
+
publishedAt: z55.string().nullable().optional()
|
|
31865
32071
|
});
|
|
31866
32072
|
var embedBlockDefinition = {
|
|
31867
32073
|
manifest: embedManifest,
|
|
31868
32074
|
dataSchemas: {
|
|
31869
|
-
entries:
|
|
32075
|
+
entries: z55.array(embedEntrySchema).optional()
|
|
31870
32076
|
},
|
|
31871
32077
|
dataLoaders: {
|
|
31872
32078
|
entries: {
|
|
@@ -33050,52 +33256,52 @@ var fileDownloadBlockDefinition = {
|
|
|
33050
33256
|
};
|
|
33051
33257
|
|
|
33052
33258
|
// ../blocks/src/system/blocks/shop.ts
|
|
33053
|
-
import { z as
|
|
33259
|
+
import { z as z59 } from "zod";
|
|
33054
33260
|
|
|
33055
33261
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
33056
|
-
import { z as
|
|
33262
|
+
import { z as z58 } from "zod";
|
|
33057
33263
|
|
|
33058
33264
|
// ../blocks/src/system/blocks/products/shared.ts
|
|
33059
|
-
import { z as
|
|
33060
|
-
var publicProductVariantSchema =
|
|
33061
|
-
id:
|
|
33062
|
-
title:
|
|
33063
|
-
sku:
|
|
33064
|
-
priceCents:
|
|
33065
|
-
stockQuantity:
|
|
33066
|
-
soldOut:
|
|
33067
|
-
});
|
|
33068
|
-
var publicProductSchema =
|
|
33069
|
-
id:
|
|
33070
|
-
contentEntryId:
|
|
33071
|
-
title:
|
|
33072
|
-
slug:
|
|
33073
|
-
path:
|
|
33074
|
-
status:
|
|
33075
|
-
priceCents:
|
|
33076
|
-
currency:
|
|
33077
|
-
productType:
|
|
33078
|
-
requiresShipping:
|
|
33079
|
-
hasVariants:
|
|
33080
|
-
trackInventory:
|
|
33081
|
-
soldOut:
|
|
33082
|
-
category:
|
|
33083
|
-
id:
|
|
33084
|
-
name:
|
|
33085
|
-
slug:
|
|
33265
|
+
import { z as z56 } from "zod";
|
|
33266
|
+
var publicProductVariantSchema = z56.object({
|
|
33267
|
+
id: z56.string(),
|
|
33268
|
+
title: z56.string(),
|
|
33269
|
+
sku: z56.string().nullable(),
|
|
33270
|
+
priceCents: z56.number(),
|
|
33271
|
+
stockQuantity: z56.number().nullable(),
|
|
33272
|
+
soldOut: z56.boolean()
|
|
33273
|
+
});
|
|
33274
|
+
var publicProductSchema = z56.object({
|
|
33275
|
+
id: z56.string(),
|
|
33276
|
+
contentEntryId: z56.string().nullable(),
|
|
33277
|
+
title: z56.string(),
|
|
33278
|
+
slug: z56.string(),
|
|
33279
|
+
path: z56.string().nullable(),
|
|
33280
|
+
status: z56.enum(["draft", "active"]),
|
|
33281
|
+
priceCents: z56.number(),
|
|
33282
|
+
currency: z56.string(),
|
|
33283
|
+
productType: z56.enum(["physical", "digital"]),
|
|
33284
|
+
requiresShipping: z56.boolean(),
|
|
33285
|
+
hasVariants: z56.boolean(),
|
|
33286
|
+
trackInventory: z56.boolean(),
|
|
33287
|
+
soldOut: z56.boolean(),
|
|
33288
|
+
category: z56.object({
|
|
33289
|
+
id: z56.string(),
|
|
33290
|
+
name: z56.string(),
|
|
33291
|
+
slug: z56.string()
|
|
33086
33292
|
}).nullable(),
|
|
33087
|
-
summary:
|
|
33088
|
-
body:
|
|
33089
|
-
gallery:
|
|
33090
|
-
|
|
33091
|
-
url:
|
|
33092
|
-
alt:
|
|
33293
|
+
summary: z56.string().nullable(),
|
|
33294
|
+
body: z56.unknown().nullable(),
|
|
33295
|
+
gallery: z56.array(
|
|
33296
|
+
z56.object({
|
|
33297
|
+
url: z56.string(),
|
|
33298
|
+
alt: z56.string().nullable()
|
|
33093
33299
|
})
|
|
33094
33300
|
),
|
|
33095
|
-
variants:
|
|
33301
|
+
variants: z56.array(publicProductVariantSchema)
|
|
33096
33302
|
});
|
|
33097
|
-
var publicProductsResponseSchema =
|
|
33098
|
-
products:
|
|
33303
|
+
var publicProductsResponseSchema = z56.object({
|
|
33304
|
+
products: z56.array(publicProductSchema)
|
|
33099
33305
|
});
|
|
33100
33306
|
|
|
33101
33307
|
// ../blocks/src/system/runtime/api/creditProducts.ts
|
|
@@ -33159,27 +33365,27 @@ function deriveCreditProductLabels(products, options = {}) {
|
|
|
33159
33365
|
}
|
|
33160
33366
|
|
|
33161
33367
|
// ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
|
|
33162
|
-
import { z as
|
|
33163
|
-
var storedProductCartItemSchema =
|
|
33164
|
-
kind:
|
|
33165
|
-
productId:
|
|
33166
|
-
productCategoryId:
|
|
33167
|
-
variantId:
|
|
33168
|
-
title:
|
|
33169
|
-
variantTitle:
|
|
33170
|
-
quantity:
|
|
33171
|
-
unitPriceCents:
|
|
33172
|
-
currency:
|
|
33173
|
-
imageUrl:
|
|
33174
|
-
soldOut:
|
|
33175
|
-
});
|
|
33176
|
-
var storedPassCartItemSchema =
|
|
33177
|
-
kind:
|
|
33178
|
-
passId:
|
|
33179
|
-
title:
|
|
33180
|
-
quantity:
|
|
33181
|
-
unitPriceCents:
|
|
33182
|
-
currency:
|
|
33368
|
+
import { z as z57 } from "zod";
|
|
33369
|
+
var storedProductCartItemSchema = z57.object({
|
|
33370
|
+
kind: z57.literal("product"),
|
|
33371
|
+
productId: z57.string().min(1),
|
|
33372
|
+
productCategoryId: z57.string().min(1).optional().nullable(),
|
|
33373
|
+
variantId: z57.string().min(1).optional().nullable(),
|
|
33374
|
+
title: z57.string().min(1),
|
|
33375
|
+
variantTitle: z57.string().optional().nullable(),
|
|
33376
|
+
quantity: z57.number().finite(),
|
|
33377
|
+
unitPriceCents: z57.number().finite(),
|
|
33378
|
+
currency: z57.string().min(1),
|
|
33379
|
+
imageUrl: z57.string().optional().nullable(),
|
|
33380
|
+
soldOut: z57.boolean().optional()
|
|
33381
|
+
});
|
|
33382
|
+
var storedPassCartItemSchema = z57.object({
|
|
33383
|
+
kind: z57.literal("pass"),
|
|
33384
|
+
passId: z57.string().min(1),
|
|
33385
|
+
title: z57.string().min(1),
|
|
33386
|
+
quantity: z57.number().finite().optional(),
|
|
33387
|
+
unitPriceCents: z57.number().finite(),
|
|
33388
|
+
currency: z57.string().min(1)
|
|
33183
33389
|
});
|
|
33184
33390
|
function deriveCommerceCheckoutState(state) {
|
|
33185
33391
|
if (state.items.length === 0) {
|
|
@@ -33218,10 +33424,7 @@ function resolveSelectedProduct(products, contentEntry, productSlug) {
|
|
|
33218
33424
|
|
|
33219
33425
|
// ../blocks/src/system/runtime/nodes/commerce/shared/display.ts
|
|
33220
33426
|
function formatCommercePrice(cents, currency) {
|
|
33221
|
-
return
|
|
33222
|
-
style: "currency",
|
|
33223
|
-
currency: currency.toUpperCase()
|
|
33224
|
-
}).format(cents / 100);
|
|
33427
|
+
return formatCurrencyAmount(cents, currency);
|
|
33225
33428
|
}
|
|
33226
33429
|
function getPassesHeading(passes, explicitHeading) {
|
|
33227
33430
|
if (explicitHeading) return explicitHeading;
|
|
@@ -33416,214 +33619,214 @@ function formatValidity(days) {
|
|
|
33416
33619
|
}
|
|
33417
33620
|
|
|
33418
33621
|
// ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
33419
|
-
var shopModeSchema =
|
|
33420
|
-
var contentEntrySchema3 =
|
|
33421
|
-
id:
|
|
33422
|
-
slug:
|
|
33622
|
+
var shopModeSchema = z58.enum(["passes-memberships", "product-list", "product-detail", "cart", "checkout"]);
|
|
33623
|
+
var contentEntrySchema3 = z58.object({
|
|
33624
|
+
id: z58.string().nullable().optional(),
|
|
33625
|
+
slug: z58.string().nullable().optional()
|
|
33423
33626
|
}).nullable();
|
|
33424
|
-
var shopSourceSchema =
|
|
33425
|
-
className:
|
|
33627
|
+
var shopSourceSchema = z58.object({
|
|
33628
|
+
className: z58.string().nullable().optional(),
|
|
33426
33629
|
mode: shopModeSchema.optional(),
|
|
33427
|
-
heading:
|
|
33428
|
-
productSlug:
|
|
33429
|
-
showPasses:
|
|
33430
|
-
showMemberships:
|
|
33431
|
-
layout:
|
|
33432
|
-
columns:
|
|
33433
|
-
showDescriptions:
|
|
33434
|
-
showSummary:
|
|
33435
|
-
showBody:
|
|
33436
|
-
showPrices:
|
|
33437
|
-
showValidityPeriod:
|
|
33438
|
-
showPricePerCredit:
|
|
33439
|
-
passesHeading:
|
|
33440
|
-
membershipsHeading:
|
|
33441
|
-
buyButtonText:
|
|
33442
|
-
addButtonText:
|
|
33443
|
-
passPurchaseMode:
|
|
33444
|
-
subscribeButtonText:
|
|
33445
|
-
emptyStateText:
|
|
33446
|
-
checkoutButtonText:
|
|
33447
|
-
clearButtonText:
|
|
33448
|
-
submitButtonText:
|
|
33630
|
+
heading: z58.string().nullable().optional(),
|
|
33631
|
+
productSlug: z58.string().nullable().optional(),
|
|
33632
|
+
showPasses: z58.boolean().optional(),
|
|
33633
|
+
showMemberships: z58.boolean().optional(),
|
|
33634
|
+
layout: z58.enum(["grid", "list"]).optional(),
|
|
33635
|
+
columns: z58.string().optional(),
|
|
33636
|
+
showDescriptions: z58.boolean().optional(),
|
|
33637
|
+
showSummary: z58.boolean().optional(),
|
|
33638
|
+
showBody: z58.boolean().optional(),
|
|
33639
|
+
showPrices: z58.boolean().optional(),
|
|
33640
|
+
showValidityPeriod: z58.boolean().optional(),
|
|
33641
|
+
showPricePerCredit: z58.boolean().nullable().optional(),
|
|
33642
|
+
passesHeading: z58.string().optional(),
|
|
33643
|
+
membershipsHeading: z58.string().optional(),
|
|
33644
|
+
buyButtonText: z58.string().optional(),
|
|
33645
|
+
addButtonText: z58.string().optional(),
|
|
33646
|
+
passPurchaseMode: z58.enum(["add_to_cart", "buy_now"]).optional(),
|
|
33647
|
+
subscribeButtonText: z58.string().optional(),
|
|
33648
|
+
emptyStateText: z58.string().optional(),
|
|
33649
|
+
checkoutButtonText: z58.string().optional(),
|
|
33650
|
+
clearButtonText: z58.string().optional(),
|
|
33651
|
+
submitButtonText: z58.string().optional(),
|
|
33449
33652
|
contentEntry: contentEntrySchema3.optional(),
|
|
33450
|
-
passes:
|
|
33451
|
-
memberships:
|
|
33452
|
-
products:
|
|
33453
|
-
siteId:
|
|
33454
|
-
apiBaseUrl:
|
|
33653
|
+
passes: z58.array(publicPassProductSchema).nullable().optional(),
|
|
33654
|
+
memberships: z58.array(publicMembershipProductSchema).nullable().optional(),
|
|
33655
|
+
products: z58.array(publicProductSchema).nullable().optional(),
|
|
33656
|
+
siteId: z58.string().optional(),
|
|
33657
|
+
apiBaseUrl: z58.string().optional(),
|
|
33455
33658
|
stage: previewStageSchema.optional()
|
|
33456
33659
|
});
|
|
33457
|
-
var productVariantOptionDisplaySchema =
|
|
33458
|
-
id:
|
|
33459
|
-
label:
|
|
33460
|
-
soldOut:
|
|
33461
|
-
});
|
|
33462
|
-
var productCardDisplaySchema =
|
|
33463
|
-
productId:
|
|
33464
|
-
title:
|
|
33465
|
-
path:
|
|
33466
|
-
summary:
|
|
33467
|
-
priceLabel:
|
|
33468
|
-
image:
|
|
33469
|
-
url:
|
|
33470
|
-
alt:
|
|
33660
|
+
var productVariantOptionDisplaySchema = z58.object({
|
|
33661
|
+
id: z58.string(),
|
|
33662
|
+
label: z58.string(),
|
|
33663
|
+
soldOut: z58.boolean()
|
|
33664
|
+
});
|
|
33665
|
+
var productCardDisplaySchema = z58.object({
|
|
33666
|
+
productId: z58.string(),
|
|
33667
|
+
title: z58.string(),
|
|
33668
|
+
path: z58.string().nullable(),
|
|
33669
|
+
summary: z58.string().nullable(),
|
|
33670
|
+
priceLabel: z58.string().nullable(),
|
|
33671
|
+
image: z58.object({
|
|
33672
|
+
url: z58.string(),
|
|
33673
|
+
alt: z58.string().nullable()
|
|
33471
33674
|
}).nullable(),
|
|
33472
|
-
variantOptions:
|
|
33473
|
-
selectedVariantId:
|
|
33474
|
-
selectionLabel:
|
|
33475
|
-
actionLabel:
|
|
33476
|
-
soldOut:
|
|
33477
|
-
});
|
|
33478
|
-
var productListDisplaySchema =
|
|
33479
|
-
kind:
|
|
33480
|
-
state:
|
|
33481
|
-
heading:
|
|
33482
|
-
className:
|
|
33483
|
-
layout:
|
|
33484
|
-
columns:
|
|
33485
|
-
emptyMessage:
|
|
33486
|
-
cards:
|
|
33487
|
-
});
|
|
33488
|
-
var productDetailDisplaySchema =
|
|
33489
|
-
|
|
33490
|
-
kind:
|
|
33491
|
-
state:
|
|
33492
|
-
heading:
|
|
33493
|
-
className:
|
|
33494
|
-
emptyMessage:
|
|
33675
|
+
variantOptions: z58.array(productVariantOptionDisplaySchema),
|
|
33676
|
+
selectedVariantId: z58.string().nullable(),
|
|
33677
|
+
selectionLabel: z58.string(),
|
|
33678
|
+
actionLabel: z58.string(),
|
|
33679
|
+
soldOut: z58.boolean()
|
|
33680
|
+
});
|
|
33681
|
+
var productListDisplaySchema = z58.object({
|
|
33682
|
+
kind: z58.literal("product-list"),
|
|
33683
|
+
state: z58.enum(["empty", "ready"]),
|
|
33684
|
+
heading: z58.string().nullable(),
|
|
33685
|
+
className: z58.string().nullable(),
|
|
33686
|
+
layout: z58.enum(["grid", "list"]),
|
|
33687
|
+
columns: z58.string(),
|
|
33688
|
+
emptyMessage: z58.string(),
|
|
33689
|
+
cards: z58.array(productCardDisplaySchema)
|
|
33690
|
+
});
|
|
33691
|
+
var productDetailDisplaySchema = z58.discriminatedUnion("state", [
|
|
33692
|
+
z58.object({
|
|
33693
|
+
kind: z58.literal("product-detail"),
|
|
33694
|
+
state: z58.literal("empty"),
|
|
33695
|
+
heading: z58.string().nullable(),
|
|
33696
|
+
className: z58.string().nullable(),
|
|
33697
|
+
emptyMessage: z58.string()
|
|
33495
33698
|
}),
|
|
33496
|
-
|
|
33497
|
-
kind:
|
|
33498
|
-
state:
|
|
33499
|
-
heading:
|
|
33500
|
-
className:
|
|
33501
|
-
title:
|
|
33502
|
-
priceLabel:
|
|
33503
|
-
summary:
|
|
33504
|
-
categoryLabel:
|
|
33505
|
-
gallery:
|
|
33506
|
-
url:
|
|
33507
|
-
alt:
|
|
33699
|
+
z58.object({
|
|
33700
|
+
kind: z58.literal("product-detail"),
|
|
33701
|
+
state: z58.literal("ready"),
|
|
33702
|
+
heading: z58.string().nullable(),
|
|
33703
|
+
className: z58.string().nullable(),
|
|
33704
|
+
title: z58.string(),
|
|
33705
|
+
priceLabel: z58.string(),
|
|
33706
|
+
summary: z58.string().nullable(),
|
|
33707
|
+
categoryLabel: z58.string().nullable(),
|
|
33708
|
+
gallery: z58.array(z58.object({
|
|
33709
|
+
url: z58.string(),
|
|
33710
|
+
alt: z58.string().nullable()
|
|
33508
33711
|
})),
|
|
33509
|
-
variantOptions:
|
|
33510
|
-
selectedVariantId:
|
|
33511
|
-
selectionLabel:
|
|
33512
|
-
actionLabel:
|
|
33513
|
-
soldOut:
|
|
33514
|
-
body:
|
|
33712
|
+
variantOptions: z58.array(productVariantOptionDisplaySchema),
|
|
33713
|
+
selectedVariantId: z58.string().nullable(),
|
|
33714
|
+
selectionLabel: z58.string(),
|
|
33715
|
+
actionLabel: z58.string(),
|
|
33716
|
+
soldOut: z58.boolean(),
|
|
33717
|
+
body: z58.unknown().nullable()
|
|
33515
33718
|
})
|
|
33516
33719
|
]);
|
|
33517
|
-
var passCardDisplaySchema =
|
|
33518
|
-
id:
|
|
33519
|
-
title:
|
|
33520
|
-
description:
|
|
33521
|
-
priceLabel:
|
|
33522
|
-
creditsLabel:
|
|
33523
|
-
perCreditLabel:
|
|
33524
|
-
validityLabel:
|
|
33525
|
-
actionLabel:
|
|
33526
|
-
});
|
|
33527
|
-
var membershipCardDisplaySchema =
|
|
33528
|
-
id:
|
|
33529
|
-
title:
|
|
33530
|
-
description:
|
|
33531
|
-
priceLabel:
|
|
33532
|
-
intervalLabel:
|
|
33533
|
-
actionLabel:
|
|
33534
|
-
});
|
|
33535
|
-
var passesMembershipsDisplaySchema =
|
|
33536
|
-
kind:
|
|
33537
|
-
state:
|
|
33538
|
-
className:
|
|
33539
|
-
layout:
|
|
33540
|
-
columns:
|
|
33541
|
-
emptyMessage:
|
|
33542
|
-
passesHeading:
|
|
33543
|
-
membershipsHeading:
|
|
33544
|
-
passes:
|
|
33545
|
-
memberships:
|
|
33546
|
-
});
|
|
33547
|
-
var cartLineDisplaySchema =
|
|
33548
|
-
key:
|
|
33549
|
-
title:
|
|
33550
|
-
priceLabel:
|
|
33551
|
-
quantity:
|
|
33552
|
-
quantityEditable:
|
|
33553
|
-
});
|
|
33554
|
-
var cartDisplaySchema =
|
|
33555
|
-
kind:
|
|
33556
|
-
state:
|
|
33557
|
-
heading:
|
|
33558
|
-
className:
|
|
33559
|
-
emptyMessage:
|
|
33560
|
-
supportText:
|
|
33561
|
-
items:
|
|
33562
|
-
subtotalLabel:
|
|
33563
|
-
checkoutButtonText:
|
|
33564
|
-
clearButtonText:
|
|
33565
|
-
});
|
|
33566
|
-
var checkoutDisplaySchema =
|
|
33567
|
-
kind:
|
|
33568
|
-
state:
|
|
33569
|
-
heading:
|
|
33570
|
-
className:
|
|
33571
|
-
message:
|
|
33572
|
-
submitButtonText:
|
|
33573
|
-
});
|
|
33574
|
-
var passesMembershipsHydrationSchema =
|
|
33575
|
-
passes:
|
|
33576
|
-
memberships:
|
|
33577
|
-
passPurchaseMode:
|
|
33578
|
-
});
|
|
33579
|
-
var productListHydrationSchema =
|
|
33580
|
-
products:
|
|
33581
|
-
showSummary:
|
|
33582
|
-
showPrices:
|
|
33583
|
-
addButtonText:
|
|
33584
|
-
});
|
|
33585
|
-
var productDetailHydrationSchema =
|
|
33586
|
-
products:
|
|
33587
|
-
productId:
|
|
33588
|
-
showSummary:
|
|
33589
|
-
showBody:
|
|
33590
|
-
addButtonText:
|
|
33591
|
-
});
|
|
33592
|
-
var cartHydrationSchema =
|
|
33593
|
-
emptyStateText:
|
|
33594
|
-
checkoutButtonText:
|
|
33595
|
-
clearButtonText:
|
|
33596
|
-
});
|
|
33597
|
-
var checkoutHydrationSchema =
|
|
33598
|
-
emptyStateText:
|
|
33599
|
-
submitButtonText:
|
|
33600
|
-
});
|
|
33601
|
-
var passesMembershipsRenderSchema =
|
|
33720
|
+
var passCardDisplaySchema = z58.object({
|
|
33721
|
+
id: z58.string(),
|
|
33722
|
+
title: z58.string(),
|
|
33723
|
+
description: z58.string().nullable(),
|
|
33724
|
+
priceLabel: z58.string(),
|
|
33725
|
+
creditsLabel: z58.string(),
|
|
33726
|
+
perCreditLabel: z58.string().nullable(),
|
|
33727
|
+
validityLabel: z58.string().nullable(),
|
|
33728
|
+
actionLabel: z58.string()
|
|
33729
|
+
});
|
|
33730
|
+
var membershipCardDisplaySchema = z58.object({
|
|
33731
|
+
id: z58.string(),
|
|
33732
|
+
title: z58.string(),
|
|
33733
|
+
description: z58.string().nullable(),
|
|
33734
|
+
priceLabel: z58.string(),
|
|
33735
|
+
intervalLabel: z58.string(),
|
|
33736
|
+
actionLabel: z58.string()
|
|
33737
|
+
});
|
|
33738
|
+
var passesMembershipsDisplaySchema = z58.object({
|
|
33739
|
+
kind: z58.literal("passes-memberships"),
|
|
33740
|
+
state: z58.enum(["empty", "ready"]),
|
|
33741
|
+
className: z58.string().nullable(),
|
|
33742
|
+
layout: z58.enum(["grid", "list"]),
|
|
33743
|
+
columns: z58.string(),
|
|
33744
|
+
emptyMessage: z58.string(),
|
|
33745
|
+
passesHeading: z58.string(),
|
|
33746
|
+
membershipsHeading: z58.string(),
|
|
33747
|
+
passes: z58.array(passCardDisplaySchema),
|
|
33748
|
+
memberships: z58.array(membershipCardDisplaySchema)
|
|
33749
|
+
});
|
|
33750
|
+
var cartLineDisplaySchema = z58.object({
|
|
33751
|
+
key: z58.string(),
|
|
33752
|
+
title: z58.string(),
|
|
33753
|
+
priceLabel: z58.string(),
|
|
33754
|
+
quantity: z58.number(),
|
|
33755
|
+
quantityEditable: z58.boolean()
|
|
33756
|
+
});
|
|
33757
|
+
var cartDisplaySchema = z58.object({
|
|
33758
|
+
kind: z58.literal("cart"),
|
|
33759
|
+
state: z58.enum(["empty", "ready"]),
|
|
33760
|
+
heading: z58.string().nullable(),
|
|
33761
|
+
className: z58.string().nullable(),
|
|
33762
|
+
emptyMessage: z58.string(),
|
|
33763
|
+
supportText: z58.string().nullable(),
|
|
33764
|
+
items: z58.array(cartLineDisplaySchema),
|
|
33765
|
+
subtotalLabel: z58.string().nullable(),
|
|
33766
|
+
checkoutButtonText: z58.string(),
|
|
33767
|
+
clearButtonText: z58.string()
|
|
33768
|
+
});
|
|
33769
|
+
var checkoutDisplaySchema = z58.object({
|
|
33770
|
+
kind: z58.literal("checkout"),
|
|
33771
|
+
state: z58.enum(["empty", "blocked", "ready"]),
|
|
33772
|
+
heading: z58.string().nullable(),
|
|
33773
|
+
className: z58.string().nullable(),
|
|
33774
|
+
message: z58.string().nullable(),
|
|
33775
|
+
submitButtonText: z58.string()
|
|
33776
|
+
});
|
|
33777
|
+
var passesMembershipsHydrationSchema = z58.object({
|
|
33778
|
+
passes: z58.array(publicPassProductSchema),
|
|
33779
|
+
memberships: z58.array(publicMembershipProductSchema),
|
|
33780
|
+
passPurchaseMode: z58.enum(["add_to_cart", "buy_now"])
|
|
33781
|
+
});
|
|
33782
|
+
var productListHydrationSchema = z58.object({
|
|
33783
|
+
products: z58.array(publicProductSchema),
|
|
33784
|
+
showSummary: z58.boolean(),
|
|
33785
|
+
showPrices: z58.boolean(),
|
|
33786
|
+
addButtonText: z58.string()
|
|
33787
|
+
});
|
|
33788
|
+
var productDetailHydrationSchema = z58.object({
|
|
33789
|
+
products: z58.array(publicProductSchema),
|
|
33790
|
+
productId: z58.string().nullable(),
|
|
33791
|
+
showSummary: z58.boolean(),
|
|
33792
|
+
showBody: z58.boolean(),
|
|
33793
|
+
addButtonText: z58.string()
|
|
33794
|
+
});
|
|
33795
|
+
var cartHydrationSchema = z58.object({
|
|
33796
|
+
emptyStateText: z58.string(),
|
|
33797
|
+
checkoutButtonText: z58.string(),
|
|
33798
|
+
clearButtonText: z58.string()
|
|
33799
|
+
});
|
|
33800
|
+
var checkoutHydrationSchema = z58.object({
|
|
33801
|
+
emptyStateText: z58.string(),
|
|
33802
|
+
submitButtonText: z58.string()
|
|
33803
|
+
});
|
|
33804
|
+
var passesMembershipsRenderSchema = z58.object({
|
|
33602
33805
|
display: passesMembershipsDisplaySchema,
|
|
33603
33806
|
hydration: passesMembershipsHydrationSchema
|
|
33604
33807
|
});
|
|
33605
|
-
var productListRenderSchema =
|
|
33808
|
+
var productListRenderSchema = z58.object({
|
|
33606
33809
|
display: productListDisplaySchema,
|
|
33607
33810
|
hydration: productListHydrationSchema
|
|
33608
33811
|
});
|
|
33609
|
-
var productDetailRenderSchema =
|
|
33812
|
+
var productDetailRenderSchema = z58.object({
|
|
33610
33813
|
display: productDetailDisplaySchema,
|
|
33611
33814
|
hydration: productDetailHydrationSchema
|
|
33612
33815
|
});
|
|
33613
|
-
var cartRenderSchema =
|
|
33816
|
+
var cartRenderSchema = z58.object({
|
|
33614
33817
|
display: cartDisplaySchema,
|
|
33615
33818
|
hydration: cartHydrationSchema
|
|
33616
33819
|
});
|
|
33617
|
-
var checkoutRenderSchema =
|
|
33820
|
+
var checkoutRenderSchema = z58.object({
|
|
33618
33821
|
display: checkoutDisplaySchema,
|
|
33619
33822
|
hydration: checkoutHydrationSchema
|
|
33620
33823
|
});
|
|
33621
33824
|
function resolveShowPricePerCredit(source) {
|
|
33622
33825
|
return source.showPricePerCredit ?? true;
|
|
33623
33826
|
}
|
|
33624
|
-
var shopIslandMetaCodec = createZodCodec(
|
|
33625
|
-
siteId:
|
|
33626
|
-
apiBaseUrl:
|
|
33827
|
+
var shopIslandMetaCodec = createZodCodec(z58.object({
|
|
33828
|
+
siteId: z58.string().optional(),
|
|
33829
|
+
apiBaseUrl: z58.string().optional(),
|
|
33627
33830
|
stage: previewStageSchema.optional()
|
|
33628
33831
|
}));
|
|
33629
33832
|
var shopIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl", "stage");
|
|
@@ -34001,9 +34204,9 @@ var shopBlockDefinition = {
|
|
|
34001
34204
|
runtime: shopBlockRuntime,
|
|
34002
34205
|
dataSchemas: {
|
|
34003
34206
|
// listPublicPasses returns { passes: [...] }
|
|
34004
|
-
passes:
|
|
34207
|
+
passes: z59.object({ passes: z59.array(publicPassProductSchema) }).optional(),
|
|
34005
34208
|
// listPublicMemberships returns { memberships: [...] }
|
|
34006
|
-
memberships:
|
|
34209
|
+
memberships: z59.object({ memberships: z59.array(publicMembershipProductSchema) }).optional()
|
|
34007
34210
|
},
|
|
34008
34211
|
dataLoaders: {
|
|
34009
34212
|
// Load passes for display
|
|
@@ -34026,7 +34229,7 @@ var shopBlockDefinition = {
|
|
|
34026
34229
|
};
|
|
34027
34230
|
|
|
34028
34231
|
// ../blocks/src/system/blocks/product-list.ts
|
|
34029
|
-
import { z as
|
|
34232
|
+
import { z as z60 } from "zod";
|
|
34030
34233
|
var productListManifest = createBlockManifest({
|
|
34031
34234
|
id: "block.product-list",
|
|
34032
34235
|
version: "1.0.0",
|
|
@@ -34159,7 +34362,7 @@ var productListBlockDefinition = {
|
|
|
34159
34362
|
}
|
|
34160
34363
|
}
|
|
34161
34364
|
};
|
|
34162
|
-
var productListDataSchema =
|
|
34365
|
+
var productListDataSchema = z60.object({
|
|
34163
34366
|
products: publicProductsResponseSchema.optional()
|
|
34164
34367
|
});
|
|
34165
34368
|
|
|
@@ -34420,72 +34623,72 @@ var checkoutBlockDefinition = {
|
|
|
34420
34623
|
};
|
|
34421
34624
|
|
|
34422
34625
|
// ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
34423
|
-
import { z as
|
|
34424
|
-
var publicGiftCardOfferSchema =
|
|
34425
|
-
id:
|
|
34426
|
-
kind:
|
|
34427
|
-
title:
|
|
34428
|
-
description:
|
|
34429
|
-
sortOrder:
|
|
34430
|
-
giftCard:
|
|
34431
|
-
fixedDenominations:
|
|
34432
|
-
customAmountEnabled:
|
|
34433
|
-
customAmountMinCents:
|
|
34434
|
-
customAmountMaxCents:
|
|
34626
|
+
import { z as z61 } from "zod";
|
|
34627
|
+
var publicGiftCardOfferSchema = z61.object({
|
|
34628
|
+
id: z61.string(),
|
|
34629
|
+
kind: z61.literal("gift_card"),
|
|
34630
|
+
title: z61.string(),
|
|
34631
|
+
description: z61.string().nullable(),
|
|
34632
|
+
sortOrder: z61.number().int(),
|
|
34633
|
+
giftCard: z61.object({
|
|
34634
|
+
fixedDenominations: z61.array(z61.number().int().positive()),
|
|
34635
|
+
customAmountEnabled: z61.boolean(),
|
|
34636
|
+
customAmountMinCents: z61.number().int().positive(),
|
|
34637
|
+
customAmountMaxCents: z61.number().int().positive()
|
|
34435
34638
|
}),
|
|
34436
|
-
voucher:
|
|
34437
|
-
});
|
|
34438
|
-
var publicVoucherOfferSchema =
|
|
34439
|
-
id:
|
|
34440
|
-
kind:
|
|
34441
|
-
title:
|
|
34442
|
-
description:
|
|
34443
|
-
sortOrder:
|
|
34444
|
-
giftCard:
|
|
34445
|
-
voucher:
|
|
34446
|
-
purchaseAmountCents:
|
|
34639
|
+
voucher: z61.null()
|
|
34640
|
+
});
|
|
34641
|
+
var publicVoucherOfferSchema = z61.object({
|
|
34642
|
+
id: z61.string(),
|
|
34643
|
+
kind: z61.literal("voucher"),
|
|
34644
|
+
title: z61.string(),
|
|
34645
|
+
description: z61.string().nullable(),
|
|
34646
|
+
sortOrder: z61.number().int(),
|
|
34647
|
+
giftCard: z61.null(),
|
|
34648
|
+
voucher: z61.object({
|
|
34649
|
+
purchaseAmountCents: z61.number().int().positive()
|
|
34447
34650
|
})
|
|
34448
34651
|
});
|
|
34449
|
-
var publicGiftingOffersResponseSchema =
|
|
34450
|
-
currency:
|
|
34451
|
-
giftCards:
|
|
34452
|
-
vouchers:
|
|
34652
|
+
var publicGiftingOffersResponseSchema = z61.object({
|
|
34653
|
+
currency: z61.string(),
|
|
34654
|
+
giftCards: z61.array(publicGiftCardOfferSchema),
|
|
34655
|
+
vouchers: z61.array(publicVoucherOfferSchema)
|
|
34453
34656
|
});
|
|
34454
|
-
var giftingSourceSchema =
|
|
34455
|
-
siteId:
|
|
34456
|
-
apiBaseUrl:
|
|
34657
|
+
var giftingSourceSchema = z61.object({
|
|
34658
|
+
siteId: z61.string().optional(),
|
|
34659
|
+
apiBaseUrl: z61.string().optional(),
|
|
34457
34660
|
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
34458
|
-
className:
|
|
34459
|
-
heading:
|
|
34460
|
-
intro:
|
|
34461
|
-
giftCardsHeading:
|
|
34462
|
-
vouchersHeading:
|
|
34463
|
-
emptyStateText:
|
|
34464
|
-
checkoutButtonText:
|
|
34465
|
-
successMessage:
|
|
34466
|
-
});
|
|
34467
|
-
var giftingDisplaySchema =
|
|
34468
|
-
kind:
|
|
34469
|
-
state:
|
|
34470
|
-
className:
|
|
34471
|
-
heading:
|
|
34472
|
-
intro:
|
|
34473
|
-
giftCardsHeading:
|
|
34474
|
-
vouchersHeading:
|
|
34475
|
-
emptyStateText:
|
|
34476
|
-
});
|
|
34477
|
-
var giftingHydrationSchema =
|
|
34661
|
+
className: z61.string().nullable().optional(),
|
|
34662
|
+
heading: z61.string().nullable().optional(),
|
|
34663
|
+
intro: z61.string().nullable().optional(),
|
|
34664
|
+
giftCardsHeading: z61.string().nullable().optional(),
|
|
34665
|
+
vouchersHeading: z61.string().nullable().optional(),
|
|
34666
|
+
emptyStateText: z61.string().nullable().optional(),
|
|
34667
|
+
checkoutButtonText: z61.string().nullable().optional(),
|
|
34668
|
+
successMessage: z61.string().nullable().optional()
|
|
34669
|
+
});
|
|
34670
|
+
var giftingDisplaySchema = z61.object({
|
|
34671
|
+
kind: z61.literal("gifting"),
|
|
34672
|
+
state: z61.literal("ready"),
|
|
34673
|
+
className: z61.string().nullable(),
|
|
34674
|
+
heading: z61.string(),
|
|
34675
|
+
intro: z61.string().nullable(),
|
|
34676
|
+
giftCardsHeading: z61.string(),
|
|
34677
|
+
vouchersHeading: z61.string(),
|
|
34678
|
+
emptyStateText: z61.string()
|
|
34679
|
+
});
|
|
34680
|
+
var giftingHydrationSchema = z61.object({
|
|
34478
34681
|
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
34479
|
-
checkoutButtonText:
|
|
34480
|
-
successMessage:
|
|
34682
|
+
checkoutButtonText: z61.string(),
|
|
34683
|
+
successMessage: z61.string()
|
|
34481
34684
|
});
|
|
34482
|
-
var giftingRenderSchema =
|
|
34685
|
+
var giftingRenderSchema = z61.object({
|
|
34483
34686
|
display: giftingDisplaySchema,
|
|
34484
34687
|
hydration: giftingHydrationSchema
|
|
34485
34688
|
});
|
|
34486
|
-
var giftingIslandMetaCodec = createZodCodec(
|
|
34487
|
-
siteId:
|
|
34488
|
-
apiBaseUrl:
|
|
34689
|
+
var giftingIslandMetaCodec = createZodCodec(z61.object({
|
|
34690
|
+
siteId: z61.string().optional(),
|
|
34691
|
+
apiBaseUrl: z61.string().optional()
|
|
34489
34692
|
}));
|
|
34490
34693
|
var giftingIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
34491
34694
|
"siteId",
|
|
@@ -34656,7 +34859,61 @@ var giftingBlockDefinition = {
|
|
|
34656
34859
|
};
|
|
34657
34860
|
|
|
34658
34861
|
// ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
34659
|
-
import { z as
|
|
34862
|
+
import { z as z62 } from "zod";
|
|
34863
|
+
|
|
34864
|
+
// ../blocks/src/system/blocks/newsletter-signup-destination.ts
|
|
34865
|
+
function parseNewsletterSignupBlockId(value) {
|
|
34866
|
+
const trimmed = parseTrimmedString(value);
|
|
34867
|
+
return trimmed && BLOCK_ID_PATTERN.test(trimmed) ? trimmed : null;
|
|
34868
|
+
}
|
|
34869
|
+
function parseSignedNewsletterDestinationRef(value) {
|
|
34870
|
+
const trimmed = parseTrimmedString(value);
|
|
34871
|
+
return trimmed && SIGNED_DESTINATION_REF_PATTERN.test(trimmed) ? trimmed : null;
|
|
34872
|
+
}
|
|
34873
|
+
function parseNewsletterSignupDestinationProvider(value) {
|
|
34874
|
+
return value === "riverbank" || value === "mailchimp" ? value : null;
|
|
34875
|
+
}
|
|
34876
|
+
function buildNewsletterSignupBlockRef(blockId) {
|
|
34877
|
+
const parsed = parseNewsletterSignupBlockId(blockId);
|
|
34878
|
+
return parsed ? { tag: "block_ref", blockId: parsed } : null;
|
|
34879
|
+
}
|
|
34880
|
+
function normalizeNewsletterSignupEditorValuesForDestination(values) {
|
|
34881
|
+
const destinationProvider = parseNewsletterSignupDestinationProvider(values.destinationProvider) ?? "riverbank";
|
|
34882
|
+
if (destinationProvider === "mailchimp") {
|
|
34883
|
+
return {
|
|
34884
|
+
destinationProvider,
|
|
34885
|
+
mailchimpAudienceId: values.mailchimpAudienceId,
|
|
34886
|
+
mailchimpTags: values.mailchimpTags
|
|
34887
|
+
};
|
|
34888
|
+
}
|
|
34889
|
+
return {
|
|
34890
|
+
destinationProvider,
|
|
34891
|
+
listId: values.listId,
|
|
34892
|
+
tags: values.tags
|
|
34893
|
+
};
|
|
34894
|
+
}
|
|
34895
|
+
function deriveNewsletterSignupRuntimeSource(values) {
|
|
34896
|
+
const normalized = normalizeNewsletterSignupEditorValuesForDestination(values);
|
|
34897
|
+
if (normalized.destinationProvider === "mailchimp") {
|
|
34898
|
+
return {
|
|
34899
|
+
destinationProvider: "mailchimp",
|
|
34900
|
+
listId: null,
|
|
34901
|
+
tags: null
|
|
34902
|
+
};
|
|
34903
|
+
}
|
|
34904
|
+
return {
|
|
34905
|
+
destinationProvider: "riverbank",
|
|
34906
|
+
listId: parseTrimmedString(normalized.listId),
|
|
34907
|
+
tags: parseTrimmedString(normalized.tags)
|
|
34908
|
+
};
|
|
34909
|
+
}
|
|
34910
|
+
var BLOCK_ID_PATTERN = /^[A-Za-z0-9._:-]{1,200}$/;
|
|
34911
|
+
var SIGNED_DESTINATION_REF_PATTERN = /^[A-Za-z0-9._~-]{16,1000}$/;
|
|
34912
|
+
function parseTrimmedString(value) {
|
|
34913
|
+
if (typeof value !== "string") return null;
|
|
34914
|
+
const trimmed = value.trim();
|
|
34915
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
34916
|
+
}
|
|
34660
34917
|
|
|
34661
34918
|
// ../blocks/src/system/runtime/nodes/newsletter-form.types.ts
|
|
34662
34919
|
function getPresetFields(preset2, options) {
|
|
@@ -34709,49 +34966,65 @@ function withOptionalPhone(fields3, includePhone) {
|
|
|
34709
34966
|
}
|
|
34710
34967
|
|
|
34711
34968
|
// ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
34712
|
-
var newsletterPresetSchema =
|
|
34713
|
-
var
|
|
34714
|
-
|
|
34715
|
-
|
|
34716
|
-
|
|
34717
|
-
|
|
34718
|
-
|
|
34719
|
-
|
|
34720
|
-
|
|
34721
|
-
|
|
34722
|
-
|
|
34723
|
-
|
|
34969
|
+
var newsletterPresetSchema = z62.enum(["emailOnly", "emailName", "emailFirstLast", "emailNameCompany"]);
|
|
34970
|
+
var newsletterDestinationProviderSchema = z62.enum(["riverbank", "mailchimp"]);
|
|
34971
|
+
var newsletterFieldSchema = z62.object({
|
|
34972
|
+
id: z62.string(),
|
|
34973
|
+
type: z62.enum(["email", "text"]),
|
|
34974
|
+
label: z62.string(),
|
|
34975
|
+
required: z62.boolean(),
|
|
34976
|
+
placeholder: z62.string().optional()
|
|
34977
|
+
});
|
|
34978
|
+
var newsletterSignupBlockIdSchema = z62.string().trim().min(1).transform(parseRequiredNewsletterSignupBlockId);
|
|
34979
|
+
var signedNewsletterDestinationRefSchema = z62.string().trim().min(1).transform(parseRequiredSignedNewsletterDestinationRef);
|
|
34980
|
+
var newsletterPublicDestinationRefSchema = z62.discriminatedUnion("tag", [
|
|
34981
|
+
z62.object({
|
|
34982
|
+
tag: z62.literal("block_ref"),
|
|
34983
|
+
blockId: newsletterSignupBlockIdSchema
|
|
34984
|
+
}),
|
|
34985
|
+
z62.object({
|
|
34986
|
+
tag: z62.literal("signed_destination_ref"),
|
|
34987
|
+
token: signedNewsletterDestinationRefSchema
|
|
34988
|
+
})
|
|
34989
|
+
]);
|
|
34990
|
+
var newsletterSourceSchema = z62.object({
|
|
34991
|
+
blockId: z62.string().nullable().optional(),
|
|
34992
|
+
siteId: z62.string().optional(),
|
|
34993
|
+
apiBaseUrl: z62.string().optional(),
|
|
34994
|
+
listId: z62.string().nullable().optional(),
|
|
34995
|
+
destinationProvider: newsletterDestinationProviderSchema.nullable().optional(),
|
|
34724
34996
|
preset: newsletterPresetSchema.optional(),
|
|
34725
|
-
includePhone:
|
|
34726
|
-
buttonLabel:
|
|
34727
|
-
successMessage:
|
|
34728
|
-
privacyNote:
|
|
34729
|
-
tags:
|
|
34730
|
-
spamProtectionEnabled:
|
|
34731
|
-
className:
|
|
34732
|
-
});
|
|
34733
|
-
var newsletterDisplaySchema =
|
|
34734
|
-
kind:
|
|
34735
|
-
className:
|
|
34736
|
-
buttonLabel:
|
|
34737
|
-
successMessage:
|
|
34738
|
-
privacyNote:
|
|
34739
|
-
fields:
|
|
34740
|
-
});
|
|
34741
|
-
var newsletterHydrationSchema =
|
|
34742
|
-
|
|
34997
|
+
includePhone: z62.boolean().optional(),
|
|
34998
|
+
buttonLabel: z62.string().nullable().optional(),
|
|
34999
|
+
successMessage: z62.string().nullable().optional(),
|
|
35000
|
+
privacyNote: z62.string().nullable().optional(),
|
|
35001
|
+
tags: z62.string().nullable().optional(),
|
|
35002
|
+
spamProtectionEnabled: z62.boolean().optional(),
|
|
35003
|
+
className: z62.string().nullable().optional()
|
|
35004
|
+
});
|
|
35005
|
+
var newsletterDisplaySchema = z62.object({
|
|
35006
|
+
kind: z62.literal("newsletter-form"),
|
|
35007
|
+
className: z62.string().nullable(),
|
|
35008
|
+
buttonLabel: z62.string(),
|
|
35009
|
+
successMessage: z62.string().nullable(),
|
|
35010
|
+
privacyNote: z62.string().nullable(),
|
|
35011
|
+
fields: z62.array(newsletterFieldSchema)
|
|
35012
|
+
});
|
|
35013
|
+
var newsletterHydrationSchema = z62.object({
|
|
35014
|
+
destinationRef: newsletterPublicDestinationRefSchema.nullable().optional(),
|
|
35015
|
+
listId: z62.string().nullable().optional(),
|
|
34743
35016
|
preset: newsletterPresetSchema,
|
|
34744
|
-
includePhone:
|
|
34745
|
-
tags:
|
|
34746
|
-
spamProtectionEnabled:
|
|
35017
|
+
includePhone: z62.boolean(),
|
|
35018
|
+
tags: z62.string().nullable().optional(),
|
|
35019
|
+
spamProtectionEnabled: z62.boolean().optional()
|
|
34747
35020
|
});
|
|
34748
|
-
var newsletterRenderSchema =
|
|
35021
|
+
var newsletterRenderSchema = z62.object({
|
|
34749
35022
|
display: newsletterDisplaySchema,
|
|
34750
35023
|
hydration: newsletterHydrationSchema
|
|
34751
35024
|
});
|
|
34752
|
-
var newsletterIslandMetaCodec = createZodCodec(
|
|
34753
|
-
siteId:
|
|
34754
|
-
apiBaseUrl:
|
|
35025
|
+
var newsletterIslandMetaCodec = createZodCodec(z62.object({
|
|
35026
|
+
siteId: z62.string().optional(),
|
|
35027
|
+
apiBaseUrl: z62.string().optional()
|
|
34755
35028
|
}));
|
|
34756
35029
|
var newsletterIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
34757
35030
|
function buildNewsletterDisplay(source) {
|
|
@@ -34772,16 +35045,20 @@ var newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
34772
35045
|
source: createZodCodec(newsletterSourceSchema),
|
|
34773
35046
|
render: createZodCodec(newsletterRenderSchema)
|
|
34774
35047
|
},
|
|
34775
|
-
buildRender: (source) =>
|
|
34776
|
-
|
|
34777
|
-
|
|
34778
|
-
|
|
34779
|
-
|
|
34780
|
-
|
|
34781
|
-
|
|
34782
|
-
|
|
34783
|
-
|
|
34784
|
-
|
|
35048
|
+
buildRender: (source) => {
|
|
35049
|
+
const runtimeSource = deriveNewsletterSignupRuntimeSource(source);
|
|
35050
|
+
return {
|
|
35051
|
+
display: buildNewsletterDisplay(source),
|
|
35052
|
+
hydration: {
|
|
35053
|
+
destinationRef: buildNewsletterSignupBlockRef(source.blockId),
|
|
35054
|
+
listId: runtimeSource.listId,
|
|
35055
|
+
preset: source.preset ?? "emailOnly",
|
|
35056
|
+
includePhone: source.includePhone ?? false,
|
|
35057
|
+
tags: runtimeSource.tags,
|
|
35058
|
+
spamProtectionEnabled: source.spamProtectionEnabled
|
|
35059
|
+
}
|
|
35060
|
+
};
|
|
35061
|
+
}
|
|
34785
35062
|
});
|
|
34786
35063
|
var newsletterFormInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
34787
35064
|
runtime: newsletterFormBlockRuntime,
|
|
@@ -34793,6 +35070,20 @@ var newsletterFormInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
|
34793
35070
|
apiBaseUrl: value.apiBaseUrl
|
|
34794
35071
|
})
|
|
34795
35072
|
});
|
|
35073
|
+
function parseRequiredNewsletterSignupBlockId(value) {
|
|
35074
|
+
const parsed = parseNewsletterSignupBlockId(value);
|
|
35075
|
+
if (!parsed) {
|
|
35076
|
+
throw new Error("Newsletter signup block destination ref requires blockId");
|
|
35077
|
+
}
|
|
35078
|
+
return parsed;
|
|
35079
|
+
}
|
|
35080
|
+
function parseRequiredSignedNewsletterDestinationRef(value) {
|
|
35081
|
+
const parsed = parseSignedNewsletterDestinationRef(value);
|
|
35082
|
+
if (!parsed) {
|
|
35083
|
+
throw new Error("Newsletter signup signed destination ref requires token");
|
|
35084
|
+
}
|
|
35085
|
+
return parsed;
|
|
35086
|
+
}
|
|
34796
35087
|
|
|
34797
35088
|
// ../blocks/src/system/blocks/newsletter-signup.ts
|
|
34798
35089
|
var stackedComposition = composeFragments([
|
|
@@ -34872,23 +35163,23 @@ var newsletterSignupBlockDefinition = {
|
|
|
34872
35163
|
};
|
|
34873
35164
|
|
|
34874
35165
|
// ../blocks/src/system/blocks/team-members.ts
|
|
34875
|
-
import { z as
|
|
35166
|
+
import { z as z63 } from "zod";
|
|
34876
35167
|
var ITEM_NAME2 = "member";
|
|
34877
35168
|
var teamMemberPhotoSchema = mediaSchema2.refine((media2) => media2.type === "image", {
|
|
34878
35169
|
message: "Team member photos must be image media"
|
|
34879
35170
|
}).nullable();
|
|
34880
|
-
var teamMemberDataSchema =
|
|
34881
|
-
_type:
|
|
34882
|
-
id:
|
|
34883
|
-
name:
|
|
34884
|
-
role:
|
|
34885
|
-
roleLabel:
|
|
34886
|
-
bio:
|
|
34887
|
-
summary:
|
|
35171
|
+
var teamMemberDataSchema = z63.object({
|
|
35172
|
+
_type: z63.literal("teamMember"),
|
|
35173
|
+
id: z63.string(),
|
|
35174
|
+
name: z63.string(),
|
|
35175
|
+
role: z63.string().nullable(),
|
|
35176
|
+
roleLabel: z63.string().nullable(),
|
|
35177
|
+
bio: z63.string().nullable(),
|
|
35178
|
+
summary: z63.string().nullable(),
|
|
34888
35179
|
photo: teamMemberPhotoSchema,
|
|
34889
|
-
profilePath:
|
|
35180
|
+
profilePath: z63.string().nullable()
|
|
34890
35181
|
});
|
|
34891
|
-
var teamMembersDataSchema =
|
|
35182
|
+
var teamMembersDataSchema = z63.array(teamMemberDataSchema);
|
|
34892
35183
|
var dynamicSourceWhen = { equals: "site_staff" };
|
|
34893
35184
|
var manualSourceWhen = { equals: "site_staff", not: true };
|
|
34894
35185
|
var headingNode = text(
|
|
@@ -37692,34 +37983,34 @@ import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
|
37692
37983
|
var MAX_FONT_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
37693
37984
|
|
|
37694
37985
|
// ../theme-core/src/runtime/buildThemeRuntimeFromBridge.ts
|
|
37695
|
-
import { z as
|
|
37696
|
-
var themeBridgeConfigSchema =
|
|
37697
|
-
tokens:
|
|
37698
|
-
typography:
|
|
37699
|
-
headingFamily:
|
|
37700
|
-
bodyFamily:
|
|
37701
|
-
headingWeight:
|
|
37702
|
-
bodyWeight:
|
|
37986
|
+
import { z as z64 } from "zod";
|
|
37987
|
+
var themeBridgeConfigSchema = z64.object({
|
|
37988
|
+
tokens: z64.record(z64.string(), z64.string()),
|
|
37989
|
+
typography: z64.object({
|
|
37990
|
+
headingFamily: z64.string().optional(),
|
|
37991
|
+
bodyFamily: z64.string().optional(),
|
|
37992
|
+
headingWeight: z64.number().optional(),
|
|
37993
|
+
bodyWeight: z64.number().optional()
|
|
37703
37994
|
}).optional(),
|
|
37704
|
-
spacing:
|
|
37705
|
-
corners:
|
|
37706
|
-
shadows:
|
|
37707
|
-
components:
|
|
37708
|
-
buttons:
|
|
37709
|
-
|
|
37710
|
-
|
|
37711
|
-
variants:
|
|
37995
|
+
spacing: z64.enum(["comfortable", "standard", "dense"]).optional(),
|
|
37996
|
+
corners: z64.enum(["square", "soft", "rounded", "pill"]).optional(),
|
|
37997
|
+
shadows: z64.enum(["none", "low", "medium", "high"]).optional(),
|
|
37998
|
+
components: z64.object({
|
|
37999
|
+
buttons: z64.union([
|
|
38000
|
+
z64.boolean(),
|
|
38001
|
+
z64.object({
|
|
38002
|
+
variants: z64.array(z64.enum(["primary", "secondary", "outline", "ghost"])).optional()
|
|
37712
38003
|
})
|
|
37713
38004
|
]).optional(),
|
|
37714
|
-
cards:
|
|
37715
|
-
|
|
37716
|
-
|
|
37717
|
-
variants:
|
|
38005
|
+
cards: z64.union([
|
|
38006
|
+
z64.boolean(),
|
|
38007
|
+
z64.object({
|
|
38008
|
+
variants: z64.array(z64.enum(["default", "elevated", "outlined"])).optional()
|
|
37718
38009
|
})
|
|
37719
38010
|
]).optional(),
|
|
37720
|
-
inputs:
|
|
38011
|
+
inputs: z64.boolean().optional()
|
|
37721
38012
|
}).optional(),
|
|
37722
|
-
overrides:
|
|
38013
|
+
overrides: z64.record(z64.string(), z64.string()).optional()
|
|
37723
38014
|
}).passthrough();
|
|
37724
38015
|
|
|
37725
38016
|
// ../theme-core/src/siteChrome.tsx
|
|
@@ -38088,17 +38379,17 @@ function normalizeLoaderParams(endpoint, params, context) {
|
|
|
38088
38379
|
function unsafeRetypeZodSchema(schema) {
|
|
38089
38380
|
return schema;
|
|
38090
38381
|
}
|
|
38091
|
-
var navIdListSchema =
|
|
38382
|
+
var navIdListSchema = z65.preprocess((value) => {
|
|
38092
38383
|
if (!Array.isArray(value)) return void 0;
|
|
38093
38384
|
const filtered = value.filter((v) => typeof v === "string" && v.trim().length > 0);
|
|
38094
38385
|
return filtered.length > 0 ? filtered : void 0;
|
|
38095
|
-
},
|
|
38096
|
-
var dashboardNavVisibilityBaseSchema =
|
|
38097
|
-
mode:
|
|
38386
|
+
}, z65.array(z65.string()).max(200).optional());
|
|
38387
|
+
var dashboardNavVisibilityBaseSchema = z65.object({
|
|
38388
|
+
mode: z65.enum(["augment", "restrict"]).optional(),
|
|
38098
38389
|
allowIds: navIdListSchema,
|
|
38099
38390
|
denyIds: navIdListSchema
|
|
38100
38391
|
}).strip();
|
|
38101
|
-
var dashboardNavVisibilityRolesSchema =
|
|
38392
|
+
var dashboardNavVisibilityRolesSchema = z65.object({
|
|
38102
38393
|
administrator: dashboardNavVisibilityBaseSchema.optional(),
|
|
38103
38394
|
editor: dashboardNavVisibilityBaseSchema.optional(),
|
|
38104
38395
|
team_member: dashboardNavVisibilityBaseSchema.optional()
|
|
@@ -38106,63 +38397,63 @@ var dashboardNavVisibilityRolesSchema = z64.object({
|
|
|
38106
38397
|
var dashboardNavVisibilitySchema = dashboardNavVisibilityBaseSchema.extend({
|
|
38107
38398
|
roles: dashboardNavVisibilityRolesSchema
|
|
38108
38399
|
}).strip();
|
|
38109
|
-
var dashboardNavigationConfigSchema =
|
|
38400
|
+
var dashboardNavigationConfigSchema = z65.object({
|
|
38110
38401
|
siteNav: dashboardNavVisibilitySchema.optional(),
|
|
38111
38402
|
settingsNav: dashboardNavVisibilitySchema.optional()
|
|
38112
38403
|
}).strip();
|
|
38113
|
-
var dashboardConfigSchema =
|
|
38114
|
-
previewEditingEnabled:
|
|
38404
|
+
var dashboardConfigSchema = z65.object({
|
|
38405
|
+
previewEditingEnabled: z65.boolean().optional(),
|
|
38115
38406
|
navigation: dashboardNavigationConfigSchema.optional()
|
|
38116
38407
|
}).strip();
|
|
38117
38408
|
var fieldDefinitionInputSchema = unsafeRetypeZodSchema(fieldSchema);
|
|
38118
38409
|
var nodeDefinitionSchema = unsafeRetypeZodSchema(NodeSchema);
|
|
38119
|
-
var sdkLoaderEndpointSchema =
|
|
38120
|
-
var loaderFallbackScalarSchema =
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38410
|
+
var sdkLoaderEndpointSchema = z65.enum(SUPPORTED_LOADER_ENDPOINTS);
|
|
38411
|
+
var loaderFallbackScalarSchema = z65.union([
|
|
38412
|
+
z65.string(),
|
|
38413
|
+
z65.number(),
|
|
38414
|
+
z65.boolean(),
|
|
38415
|
+
z65.null()
|
|
38125
38416
|
]);
|
|
38126
|
-
var loaderParamBindingSchema =
|
|
38127
|
-
$bind:
|
|
38128
|
-
from:
|
|
38417
|
+
var loaderParamBindingSchema = z65.object({
|
|
38418
|
+
$bind: z65.object({
|
|
38419
|
+
from: z65.string().min(1, "Binding path is required"),
|
|
38129
38420
|
fallback: loaderFallbackScalarSchema.optional()
|
|
38130
38421
|
})
|
|
38131
38422
|
});
|
|
38132
|
-
var loaderParamValueSchema =
|
|
38133
|
-
|
|
38134
|
-
|
|
38135
|
-
|
|
38423
|
+
var loaderParamValueSchema = z65.union([
|
|
38424
|
+
z65.string(),
|
|
38425
|
+
z65.number(),
|
|
38426
|
+
z65.boolean(),
|
|
38136
38427
|
loaderParamBindingSchema
|
|
38137
38428
|
]);
|
|
38138
|
-
var sdkConfigLoaderSchema =
|
|
38429
|
+
var sdkConfigLoaderSchema = z65.object({
|
|
38139
38430
|
endpoint: sdkLoaderEndpointSchema,
|
|
38140
|
-
params:
|
|
38141
|
-
mode:
|
|
38431
|
+
params: z65.record(z65.string(), loaderParamValueSchema),
|
|
38432
|
+
mode: z65.enum(["server", "client"]).default("server")
|
|
38142
38433
|
});
|
|
38143
|
-
var sdkDataLoadersSchema =
|
|
38144
|
-
var sdkCustomBlockIdSchema =
|
|
38434
|
+
var sdkDataLoadersSchema = z65.record(z65.string(), sdkConfigLoaderSchema).refine((loaders) => Object.keys(loaders).length <= 5, { message: "Maximum 5 data loaders per block" }).optional();
|
|
38435
|
+
var sdkCustomBlockIdSchema = z65.string().min(8).regex(/^custom\.[a-z][a-z0-9-]*$/, {
|
|
38145
38436
|
message: "Block ID must start with 'custom.' followed by lowercase letters, numbers, or hyphens"
|
|
38146
38437
|
}).transform((value) => value);
|
|
38147
|
-
var sdkCustomBlockInputSchema =
|
|
38438
|
+
var sdkCustomBlockInputSchema = z65.object({
|
|
38148
38439
|
id: sdkCustomBlockIdSchema,
|
|
38149
|
-
title:
|
|
38150
|
-
titleSource:
|
|
38151
|
-
description:
|
|
38440
|
+
title: z65.string().min(1),
|
|
38441
|
+
titleSource: z65.union([z65.string().min(1), z65.array(z65.string().min(1)).min(1)]).optional(),
|
|
38442
|
+
description: z65.string().optional(),
|
|
38152
38443
|
category: blockCategoryEnum,
|
|
38153
|
-
icon:
|
|
38154
|
-
tags:
|
|
38444
|
+
icon: z65.string().optional(),
|
|
38445
|
+
tags: z65.array(z65.string()).optional(),
|
|
38155
38446
|
fields: fieldDefinitionInputSchema.array().min(1),
|
|
38156
38447
|
dataLoaders: sdkDataLoadersSchema,
|
|
38157
38448
|
layout: NodeSchema.optional(),
|
|
38158
|
-
variants:
|
|
38159
|
-
defaultVariant:
|
|
38160
|
-
variantOptions:
|
|
38161
|
-
|
|
38162
|
-
|
|
38163
|
-
label:
|
|
38164
|
-
description:
|
|
38165
|
-
icon:
|
|
38449
|
+
variants: z65.record(z65.string().min(1), NodeSchema).optional(),
|
|
38450
|
+
defaultVariant: z65.string().min(1).optional(),
|
|
38451
|
+
variantOptions: z65.record(
|
|
38452
|
+
z65.string().min(1),
|
|
38453
|
+
z65.object({
|
|
38454
|
+
label: z65.string().min(1).optional(),
|
|
38455
|
+
description: z65.string().min(1).optional(),
|
|
38456
|
+
icon: z65.string().min(1).optional()
|
|
38166
38457
|
})
|
|
38167
38458
|
).optional(),
|
|
38168
38459
|
previewCustomize: previewCustomizeManifestCurationSchema.optional()
|
|
@@ -38173,7 +38464,7 @@ var sdkCustomBlockInputSchema = z64.object({
|
|
|
38173
38464
|
const exists = data.fields.some((field) => field.id === source);
|
|
38174
38465
|
if (!exists) {
|
|
38175
38466
|
ctx.addIssue({
|
|
38176
|
-
code:
|
|
38467
|
+
code: z65.ZodIssueCode.custom,
|
|
38177
38468
|
message: `titleSource must reference a valid field ID (got "${source}")`,
|
|
38178
38469
|
path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
|
|
38179
38470
|
});
|
|
@@ -38182,7 +38473,7 @@ var sdkCustomBlockInputSchema = z64.object({
|
|
|
38182
38473
|
}
|
|
38183
38474
|
if (data.layout && data.variants) {
|
|
38184
38475
|
ctx.addIssue({
|
|
38185
|
-
code:
|
|
38476
|
+
code: z65.ZodIssueCode.custom,
|
|
38186
38477
|
message: "Custom block must define either `layout` or `variants`, not both",
|
|
38187
38478
|
path: ["variants"]
|
|
38188
38479
|
});
|
|
@@ -38191,14 +38482,14 @@ var sdkCustomBlockInputSchema = z64.object({
|
|
|
38191
38482
|
const keys = Object.keys(data.variants);
|
|
38192
38483
|
if (keys.length === 0) {
|
|
38193
38484
|
ctx.addIssue({
|
|
38194
|
-
code:
|
|
38485
|
+
code: z65.ZodIssueCode.custom,
|
|
38195
38486
|
message: "`variants` must contain at least one variant key",
|
|
38196
38487
|
path: ["variants"]
|
|
38197
38488
|
});
|
|
38198
38489
|
}
|
|
38199
38490
|
if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(data.variants, data.defaultVariant)) {
|
|
38200
38491
|
ctx.addIssue({
|
|
38201
|
-
code:
|
|
38492
|
+
code: z65.ZodIssueCode.custom,
|
|
38202
38493
|
message: "`defaultVariant` must be a key present in `variants`",
|
|
38203
38494
|
path: ["defaultVariant"]
|
|
38204
38495
|
});
|
|
@@ -38207,7 +38498,7 @@ var sdkCustomBlockInputSchema = z64.object({
|
|
|
38207
38498
|
for (const key of Object.keys(data.variantOptions)) {
|
|
38208
38499
|
if (!Object.prototype.hasOwnProperty.call(data.variants, key)) {
|
|
38209
38500
|
ctx.addIssue({
|
|
38210
|
-
code:
|
|
38501
|
+
code: z65.ZodIssueCode.custom,
|
|
38211
38502
|
message: "`variantOptions` key must exist in `variants`",
|
|
38212
38503
|
path: ["variantOptions", key]
|
|
38213
38504
|
});
|
|
@@ -38216,78 +38507,78 @@ var sdkCustomBlockInputSchema = z64.object({
|
|
|
38216
38507
|
}
|
|
38217
38508
|
}
|
|
38218
38509
|
});
|
|
38219
|
-
var sdkBlockFieldExtensionInputSchema =
|
|
38510
|
+
var sdkBlockFieldExtensionInputSchema = z65.object({
|
|
38220
38511
|
fields: fieldDefinitionInputSchema.array().min(1)
|
|
38221
38512
|
});
|
|
38222
|
-
var sdkBlockFieldExtensionsInputSchema =
|
|
38223
|
-
|
|
38513
|
+
var sdkBlockFieldExtensionsInputSchema = z65.record(
|
|
38514
|
+
z65.string().min(1),
|
|
38224
38515
|
sdkBlockFieldExtensionInputSchema
|
|
38225
38516
|
);
|
|
38226
|
-
var sdkThemePaletteSchema =
|
|
38227
|
-
var sdkThemeConfigSchema =
|
|
38517
|
+
var sdkThemePaletteSchema = z65.record(z65.string(), z65.string());
|
|
38518
|
+
var sdkThemeConfigSchema = z65.object({
|
|
38228
38519
|
palette: sdkThemePaletteSchema
|
|
38229
38520
|
});
|
|
38230
|
-
var sdkSectionBackgroundSchema =
|
|
38231
|
-
id:
|
|
38232
|
-
label:
|
|
38233
|
-
token:
|
|
38521
|
+
var sdkSectionBackgroundSchema = z65.object({
|
|
38522
|
+
id: z65.string().min(1),
|
|
38523
|
+
label: z65.string().min(1),
|
|
38524
|
+
token: z65.string().min(1)
|
|
38234
38525
|
});
|
|
38235
|
-
var sdkSectionOptionsConfigSchema =
|
|
38236
|
-
backgroundColor:
|
|
38237
|
-
backgroundImage:
|
|
38238
|
-
backgroundGradient:
|
|
38239
|
-
spacing:
|
|
38240
|
-
textColor:
|
|
38526
|
+
var sdkSectionOptionsConfigSchema = z65.object({
|
|
38527
|
+
backgroundColor: z65.boolean().optional(),
|
|
38528
|
+
backgroundImage: z65.boolean().optional(),
|
|
38529
|
+
backgroundGradient: z65.boolean().optional(),
|
|
38530
|
+
spacing: z65.union([z65.array(z65.enum(["compact", "default", "spacious"])), z65.boolean()]).optional(),
|
|
38531
|
+
textColor: z65.boolean().optional()
|
|
38241
38532
|
});
|
|
38242
|
-
var sdkContainerOptionsConfigSchema =
|
|
38243
|
-
maxWidth:
|
|
38244
|
-
alignment:
|
|
38533
|
+
var sdkContainerOptionsConfigSchema = z65.object({
|
|
38534
|
+
maxWidth: z65.union([z65.array(z65.enum(["narrow", "default", "wide", "full"])), z65.boolean()]).optional(),
|
|
38535
|
+
alignment: z65.union([z65.array(z65.enum(["left", "center", "right"])), z65.boolean()]).optional()
|
|
38245
38536
|
});
|
|
38246
|
-
var sdkSiteStyleConfigSchema =
|
|
38247
|
-
sectionBackgrounds:
|
|
38537
|
+
var sdkSiteStyleConfigSchema = z65.object({
|
|
38538
|
+
sectionBackgrounds: z65.array(sdkSectionBackgroundSchema).optional(),
|
|
38248
38539
|
sectionOptions: sdkSectionOptionsConfigSchema.optional(),
|
|
38249
38540
|
containerOptions: sdkContainerOptionsConfigSchema.optional()
|
|
38250
38541
|
});
|
|
38251
|
-
var sdkSiteLayoutConfigSchema =
|
|
38252
|
-
footerBlocks:
|
|
38253
|
-
|
|
38254
|
-
id:
|
|
38255
|
-
kind:
|
|
38256
|
-
content:
|
|
38542
|
+
var sdkSiteLayoutConfigSchema = z65.object({
|
|
38543
|
+
footerBlocks: z65.array(
|
|
38544
|
+
z65.object({
|
|
38545
|
+
id: z65.string().min(1).optional(),
|
|
38546
|
+
kind: z65.string().min(1),
|
|
38547
|
+
content: z65.record(z65.string(), z65.unknown()).optional()
|
|
38257
38548
|
})
|
|
38258
38549
|
).optional()
|
|
38259
38550
|
});
|
|
38260
|
-
var sdkFieldSelectOptionSchema =
|
|
38261
|
-
value:
|
|
38262
|
-
label:
|
|
38551
|
+
var sdkFieldSelectOptionSchema = z65.object({
|
|
38552
|
+
value: z65.string(),
|
|
38553
|
+
label: z65.string()
|
|
38263
38554
|
});
|
|
38264
|
-
var sdkBlockFieldConfigSchema =
|
|
38265
|
-
options:
|
|
38555
|
+
var sdkBlockFieldConfigSchema = z65.object({
|
|
38556
|
+
options: z65.array(sdkFieldSelectOptionSchema).optional()
|
|
38266
38557
|
});
|
|
38267
|
-
var sdkBlockFieldOptionsMapSchema =
|
|
38268
|
-
|
|
38558
|
+
var sdkBlockFieldOptionsMapSchema = z65.record(
|
|
38559
|
+
z65.string().regex(/^(block\.|custom\.)[a-z][a-z0-9-]*$/, {
|
|
38269
38560
|
message: "Block ID must be 'block.*' or 'custom.*' format"
|
|
38270
38561
|
}),
|
|
38271
|
-
|
|
38562
|
+
z65.record(z65.string().min(1), sdkBlockFieldConfigSchema)
|
|
38272
38563
|
).optional();
|
|
38273
|
-
var sdkContentTypeTemplateConfigSchema =
|
|
38274
|
-
blocks:
|
|
38564
|
+
var sdkContentTypeTemplateConfigSchema = z65.object({
|
|
38565
|
+
blocks: z65.array(z65.unknown())
|
|
38275
38566
|
}).passthrough();
|
|
38276
|
-
var sdkContentTypeOrderingConfigSchema =
|
|
38277
|
-
mode:
|
|
38567
|
+
var sdkContentTypeOrderingConfigSchema = z65.object({
|
|
38568
|
+
mode: z65.enum(["default", "manual"]).optional()
|
|
38278
38569
|
}).optional();
|
|
38279
|
-
var sdkContentTypeConfigSchema =
|
|
38280
|
-
key:
|
|
38281
|
-
fields:
|
|
38570
|
+
var sdkContentTypeConfigSchema = z65.object({
|
|
38571
|
+
key: z65.string().min(1),
|
|
38572
|
+
fields: z65.array(z65.unknown()),
|
|
38282
38573
|
ordering: sdkContentTypeOrderingConfigSchema,
|
|
38283
38574
|
template: sdkContentTypeTemplateConfigSchema.nullable().optional()
|
|
38284
38575
|
}).passthrough();
|
|
38285
|
-
var sdkContentConfigSchema =
|
|
38286
|
-
contentTypes:
|
|
38287
|
-
pages:
|
|
38288
|
-
entries:
|
|
38289
|
-
navigationMenus:
|
|
38290
|
-
settings:
|
|
38576
|
+
var sdkContentConfigSchema = z65.object({
|
|
38577
|
+
contentTypes: z65.array(sdkContentTypeConfigSchema).optional(),
|
|
38578
|
+
pages: z65.array(z65.unknown()).optional(),
|
|
38579
|
+
entries: z65.array(z65.unknown()).optional(),
|
|
38580
|
+
navigationMenus: z65.array(z65.unknown()).optional(),
|
|
38581
|
+
settings: z65.unknown().optional()
|
|
38291
38582
|
}).passthrough();
|
|
38292
38583
|
var SDK_WORKFLOW_ID_MAX_LENGTH = 120;
|
|
38293
38584
|
var SDK_WORKFLOW_TITLE_MAX_LENGTH = 120;
|
|
@@ -38302,62 +38593,62 @@ var SDK_WORKFLOW_CONFIRMATION_TITLE_MAX_LENGTH = 120;
|
|
|
38302
38593
|
var SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH = 500;
|
|
38303
38594
|
var SDK_WORKFLOW_ID_PATTERN = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
38304
38595
|
var SDK_WORKFLOW_ENDPOINT_PATTERN = /^\//;
|
|
38305
|
-
var sdkWorkflowIdSchema =
|
|
38596
|
+
var sdkWorkflowIdSchema = z65.string().min(1).max(SDK_WORKFLOW_ID_MAX_LENGTH).regex(SDK_WORKFLOW_ID_PATTERN, {
|
|
38306
38597
|
message: "Workflow ID must start with a lowercase letter and use lowercase letters, numbers, dots, underscores, or hyphens"
|
|
38307
38598
|
});
|
|
38308
|
-
var sdkWorkflowEndpointSchema =
|
|
38309
|
-
var sdkWorkflowManualTriggerSchema =
|
|
38310
|
-
type:
|
|
38599
|
+
var sdkWorkflowEndpointSchema = z65.string().min(1).max(SDK_WORKFLOW_ENDPOINT_MAX_LENGTH).regex(SDK_WORKFLOW_ENDPOINT_PATTERN, { message: 'Workflow endpoint must be a site-relative path starting with "/"' });
|
|
38600
|
+
var sdkWorkflowManualTriggerSchema = z65.object({
|
|
38601
|
+
type: z65.literal("manual")
|
|
38311
38602
|
}).strict();
|
|
38312
|
-
var sdkWorkflowTriggerFieldSchema =
|
|
38603
|
+
var sdkWorkflowTriggerFieldSchema = z65.string().trim().min(1).max(SDK_WORKFLOW_TRIGGER_FIELD_MAX_LENGTH).refine((field) => !field.includes("."), {
|
|
38313
38604
|
message: "Workflow trigger fields must be top-level content field IDs, not paths"
|
|
38314
38605
|
});
|
|
38315
|
-
var sdkWorkflowFieldChangedConditionSchema =
|
|
38606
|
+
var sdkWorkflowFieldChangedConditionSchema = z65.object({
|
|
38316
38607
|
field: sdkWorkflowTriggerFieldSchema,
|
|
38317
|
-
changed:
|
|
38608
|
+
changed: z65.literal(true)
|
|
38318
38609
|
}).strict();
|
|
38319
|
-
var sdkWorkflowFieldEmptyConditionSchema =
|
|
38610
|
+
var sdkWorkflowFieldEmptyConditionSchema = z65.object({
|
|
38320
38611
|
field: sdkWorkflowTriggerFieldSchema,
|
|
38321
|
-
isEmpty:
|
|
38612
|
+
isEmpty: z65.boolean()
|
|
38322
38613
|
}).strict();
|
|
38323
|
-
var sdkWorkflowEntryDraftUpdatedTriggerSchema =
|
|
38324
|
-
type:
|
|
38325
|
-
when:
|
|
38326
|
-
|
|
38614
|
+
var sdkWorkflowEntryDraftUpdatedTriggerSchema = z65.object({
|
|
38615
|
+
type: z65.literal("entry.draft.updated"),
|
|
38616
|
+
when: z65.array(
|
|
38617
|
+
z65.union([
|
|
38327
38618
|
sdkWorkflowFieldChangedConditionSchema,
|
|
38328
38619
|
sdkWorkflowFieldEmptyConditionSchema
|
|
38329
38620
|
])
|
|
38330
38621
|
).min(1).max(SDK_WORKFLOW_TRIGGER_CONDITION_MAX_COUNT)
|
|
38331
38622
|
}).strict();
|
|
38332
|
-
var sdkWorkflowTriggerSchema =
|
|
38623
|
+
var sdkWorkflowTriggerSchema = z65.discriminatedUnion("type", [
|
|
38333
38624
|
sdkWorkflowManualTriggerSchema,
|
|
38334
38625
|
sdkWorkflowEntryDraftUpdatedTriggerSchema
|
|
38335
38626
|
]);
|
|
38336
|
-
var sdkWorkflowConfirmationSchema =
|
|
38337
|
-
title:
|
|
38338
|
-
body:
|
|
38627
|
+
var sdkWorkflowConfirmationSchema = z65.object({
|
|
38628
|
+
title: z65.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_TITLE_MAX_LENGTH),
|
|
38629
|
+
body: z65.string().trim().min(1).max(SDK_WORKFLOW_CONFIRMATION_BODY_MAX_LENGTH).optional()
|
|
38339
38630
|
}).strict();
|
|
38340
|
-
var sdkWorkflowConfigSchema =
|
|
38631
|
+
var sdkWorkflowConfigSchema = z65.object({
|
|
38341
38632
|
id: sdkWorkflowIdSchema,
|
|
38342
|
-
title:
|
|
38343
|
-
description:
|
|
38344
|
-
contentType:
|
|
38633
|
+
title: z65.string().trim().min(1).max(SDK_WORKFLOW_TITLE_MAX_LENGTH),
|
|
38634
|
+
description: z65.string().trim().min(1).max(SDK_WORKFLOW_DESCRIPTION_MAX_LENGTH).optional(),
|
|
38635
|
+
contentType: z65.string().trim().min(1).max(SDK_WORKFLOW_CONTENT_TYPE_MAX_LENGTH),
|
|
38345
38636
|
endpoint: sdkWorkflowEndpointSchema,
|
|
38346
|
-
triggers:
|
|
38637
|
+
triggers: z65.array(sdkWorkflowTriggerSchema).min(1).max(SDK_WORKFLOW_TRIGGER_MAX_COUNT),
|
|
38347
38638
|
confirmation: sdkWorkflowConfirmationSchema.optional()
|
|
38348
38639
|
}).strict();
|
|
38349
|
-
var sdkWorkflowsSchema =
|
|
38640
|
+
var sdkWorkflowsSchema = z65.array(sdkWorkflowConfigSchema).max(SDK_WORKFLOW_MAX_COUNT, "Maximum 50 workflows per site").refine((workflows) => {
|
|
38350
38641
|
const ids = workflows.map((workflow) => workflow.id);
|
|
38351
38642
|
return ids.length === new Set(ids).size;
|
|
38352
38643
|
}, { message: "Workflow IDs must be unique" }).optional();
|
|
38353
|
-
var riverbankSiteConfigInputSchema =
|
|
38354
|
-
siteId:
|
|
38355
|
-
previewUrl:
|
|
38356
|
-
liveUrl:
|
|
38644
|
+
var riverbankSiteConfigInputSchema = z65.object({
|
|
38645
|
+
siteId: z65.string().uuid(),
|
|
38646
|
+
previewUrl: z65.string().url().optional(),
|
|
38647
|
+
liveUrl: z65.string().url().optional(),
|
|
38357
38648
|
theme: sdkThemeConfigSchema.optional(),
|
|
38358
38649
|
styles: sdkSiteStyleConfigSchema.optional(),
|
|
38359
38650
|
layout: sdkSiteLayoutConfigSchema.optional(),
|
|
38360
|
-
customBlocks:
|
|
38651
|
+
customBlocks: z65.array(sdkCustomBlockInputSchema).max(100, "Maximum 100 custom blocks per site").refine((blocks) => {
|
|
38361
38652
|
const ids = blocks.map((b) => b.id);
|
|
38362
38653
|
return ids.length === new Set(ids).size;
|
|
38363
38654
|
}, { message: "Block IDs must be unique" }).optional(),
|
|
@@ -38365,50 +38656,50 @@ var riverbankSiteConfigInputSchema = z64.object({
|
|
|
38365
38656
|
blockFieldExtensions: sdkBlockFieldExtensionsInputSchema.optional(),
|
|
38366
38657
|
workflows: sdkWorkflowsSchema,
|
|
38367
38658
|
content: sdkContentConfigSchema.optional(),
|
|
38368
|
-
contentDir:
|
|
38369
|
-
sync:
|
|
38370
|
-
existingEntries:
|
|
38659
|
+
contentDir: z65.string().optional(),
|
|
38660
|
+
sync: z65.object({
|
|
38661
|
+
existingEntries: z65.enum(["skip", "update"]).optional()
|
|
38371
38662
|
}).optional(),
|
|
38372
|
-
deploy:
|
|
38373
|
-
verifyCommand:
|
|
38374
|
-
prebuildOutput:
|
|
38663
|
+
deploy: z65.object({
|
|
38664
|
+
verifyCommand: z65.string().optional(),
|
|
38665
|
+
prebuildOutput: z65.string().optional()
|
|
38375
38666
|
}).optional(),
|
|
38376
|
-
themeSource:
|
|
38377
|
-
activeTheme:
|
|
38378
|
-
enablePortal:
|
|
38667
|
+
themeSource: z65.enum(["local", "cms"]).optional(),
|
|
38668
|
+
activeTheme: z65.string().optional(),
|
|
38669
|
+
enablePortal: z65.boolean().optional(),
|
|
38379
38670
|
dashboard: dashboardConfigSchema.optional()
|
|
38380
38671
|
}).strict();
|
|
38381
|
-
var pushSdkConfigBodySchema =
|
|
38672
|
+
var pushSdkConfigBodySchema = z65.object({
|
|
38382
38673
|
config: riverbankSiteConfigInputSchema,
|
|
38383
|
-
forceContentTypes:
|
|
38674
|
+
forceContentTypes: z65.boolean().optional()
|
|
38384
38675
|
}).strict();
|
|
38385
38676
|
|
|
38386
38677
|
// ../api/src/siteOnboarding.ts
|
|
38387
|
-
import { z as
|
|
38678
|
+
import { z as z66 } from "zod";
|
|
38388
38679
|
var LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS = {
|
|
38389
38680
|
configure_appointments: {
|
|
38390
38681
|
requirementId: "configure_appointments",
|
|
38391
38682
|
reason: "launch_anyway"
|
|
38392
38683
|
}
|
|
38393
38684
|
};
|
|
38394
|
-
var acknowledgeLaunchRequirementRequestSchema =
|
|
38685
|
+
var acknowledgeLaunchRequirementRequestSchema = z66.discriminatedUnion(
|
|
38395
38686
|
"requirementId",
|
|
38396
38687
|
[
|
|
38397
|
-
|
|
38398
|
-
requirementId:
|
|
38688
|
+
z66.object({
|
|
38689
|
+
requirementId: z66.literal("review_generated_site")
|
|
38399
38690
|
}),
|
|
38400
|
-
|
|
38401
|
-
requirementId:
|
|
38691
|
+
z66.object({
|
|
38692
|
+
requirementId: z66.literal(
|
|
38402
38693
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.requirementId
|
|
38403
38694
|
),
|
|
38404
|
-
overrideReason:
|
|
38695
|
+
overrideReason: z66.literal(
|
|
38405
38696
|
LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS.configure_appointments.reason
|
|
38406
38697
|
)
|
|
38407
38698
|
})
|
|
38408
38699
|
]
|
|
38409
38700
|
);
|
|
38410
|
-
var goLiveSiteRequestSchema =
|
|
38411
|
-
acceptExtraSiteCharge:
|
|
38701
|
+
var goLiveSiteRequestSchema = z66.object({
|
|
38702
|
+
acceptExtraSiteCharge: z66.boolean().optional()
|
|
38412
38703
|
});
|
|
38413
38704
|
|
|
38414
38705
|
// ../surfaces/src/index.ts
|
|
@@ -38492,7 +38783,7 @@ var COURSE_ENROLLMENT_REFUND_FAILED_CODES = [
|
|
|
38492
38783
|
];
|
|
38493
38784
|
|
|
38494
38785
|
// ../api/src/bookingVerticals.ts
|
|
38495
|
-
import { z as
|
|
38786
|
+
import { z as z67 } from "zod";
|
|
38496
38787
|
var VERTICAL_IDS = [
|
|
38497
38788
|
"yoga_wellness",
|
|
38498
38789
|
"fitness_pt",
|
|
@@ -38657,39 +38948,39 @@ function getSiteVerticalConfigIssues(rawConfig, config) {
|
|
|
38657
38948
|
}
|
|
38658
38949
|
return [...issues];
|
|
38659
38950
|
}
|
|
38660
|
-
var VerticalIdSchema =
|
|
38951
|
+
var VerticalIdSchema = z67.string().trim().transform((value, ctx) => {
|
|
38661
38952
|
const parsed = parseVerticalId(value);
|
|
38662
38953
|
if (!parsed) {
|
|
38663
38954
|
ctx.addIssue({
|
|
38664
|
-
code:
|
|
38955
|
+
code: z67.ZodIssueCode.custom,
|
|
38665
38956
|
message: "Unknown booking vertical"
|
|
38666
38957
|
});
|
|
38667
|
-
return
|
|
38958
|
+
return z67.NEVER;
|
|
38668
38959
|
}
|
|
38669
38960
|
return parsed;
|
|
38670
38961
|
});
|
|
38671
|
-
var VerticalPresetIdSchema =
|
|
38962
|
+
var VerticalPresetIdSchema = z67.string().trim().transform((value, ctx) => {
|
|
38672
38963
|
const parsed = parseVerticalPresetId(value);
|
|
38673
38964
|
if (!parsed) {
|
|
38674
38965
|
ctx.addIssue({
|
|
38675
|
-
code:
|
|
38966
|
+
code: z67.ZodIssueCode.custom,
|
|
38676
38967
|
message: "Unknown booking preset"
|
|
38677
38968
|
});
|
|
38678
|
-
return
|
|
38969
|
+
return z67.NEVER;
|
|
38679
38970
|
}
|
|
38680
38971
|
return parsed;
|
|
38681
38972
|
});
|
|
38682
|
-
var BookingVerticalConfigSchema =
|
|
38973
|
+
var BookingVerticalConfigSchema = z67.object({
|
|
38683
38974
|
verticalId: VerticalIdSchema.nullable(),
|
|
38684
|
-
selectedPresetIds:
|
|
38975
|
+
selectedPresetIds: z67.array(VerticalPresetIdSchema).max(20)
|
|
38685
38976
|
}).transform((value, ctx) => {
|
|
38686
38977
|
const resolved = resolveSiteVerticalBookingConfig(value);
|
|
38687
38978
|
if (resolved.kind === "invalid") {
|
|
38688
38979
|
ctx.addIssue({
|
|
38689
|
-
code:
|
|
38980
|
+
code: z67.ZodIssueCode.custom,
|
|
38690
38981
|
message: `Invalid booking vertical config: ${resolved.issues.join(", ")}`
|
|
38691
38982
|
});
|
|
38692
|
-
return
|
|
38983
|
+
return z67.NEVER;
|
|
38693
38984
|
}
|
|
38694
38985
|
return resolved.config;
|
|
38695
38986
|
});
|
|
@@ -38716,51 +39007,51 @@ function isRecord8(value) {
|
|
|
38716
39007
|
}
|
|
38717
39008
|
|
|
38718
39009
|
// ../api/src/appointmentSetup.ts
|
|
38719
|
-
import { z as
|
|
39010
|
+
import { z as z68 } from "zod";
|
|
38720
39011
|
var APPOINTMENT_SETUP_MAX_MINUTES = 1440;
|
|
38721
|
-
var appointmentSetupRefSchema =
|
|
38722
|
-
|
|
38723
|
-
|
|
39012
|
+
var appointmentSetupRefSchema = z68.discriminatedUnion("kind", [
|
|
39013
|
+
z68.object({ kind: z68.literal("existing"), id: z68.string().min(1) }),
|
|
39014
|
+
z68.object({ kind: z68.literal("new"), draftId: z68.string().min(1) })
|
|
38724
39015
|
]);
|
|
38725
|
-
var appointmentSetupVenueChoiceSchema =
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38729
|
-
kind:
|
|
38730
|
-
draftId:
|
|
38731
|
-
title:
|
|
38732
|
-
description:
|
|
38733
|
-
timezone:
|
|
38734
|
-
addressJson:
|
|
38735
|
-
locationJson:
|
|
39016
|
+
var appointmentSetupVenueChoiceSchema = z68.discriminatedUnion("kind", [
|
|
39017
|
+
z68.object({ kind: z68.literal("none") }),
|
|
39018
|
+
z68.object({ kind: z68.literal("existing"), venueId: z68.string().min(1) }),
|
|
39019
|
+
z68.object({
|
|
39020
|
+
kind: z68.literal("create"),
|
|
39021
|
+
draftId: z68.string().min(1),
|
|
39022
|
+
title: z68.string().trim().min(1),
|
|
39023
|
+
description: z68.string().nullable(),
|
|
39024
|
+
timezone: z68.string().trim().min(1).nullable(),
|
|
39025
|
+
addressJson: z68.record(z68.string(), z68.unknown()),
|
|
39026
|
+
locationJson: z68.object({ lat: z68.number(), lng: z68.number() }).nullable()
|
|
38736
39027
|
})
|
|
38737
39028
|
]);
|
|
38738
|
-
var appointmentSetupPaymentDraftSchema =
|
|
38739
|
-
priceType:
|
|
38740
|
-
});
|
|
38741
|
-
var appointmentSetupServiceAssignmentDraftSchema =
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
kind:
|
|
38745
|
-
resourceRefs:
|
|
39029
|
+
var appointmentSetupPaymentDraftSchema = z68.object({
|
|
39030
|
+
priceType: z68.union([z68.literal("free"), z68.literal("paid")])
|
|
39031
|
+
});
|
|
39032
|
+
var appointmentSetupServiceAssignmentDraftSchema = z68.discriminatedUnion("kind", [
|
|
39033
|
+
z68.object({ kind: z68.literal("all_practitioners") }),
|
|
39034
|
+
z68.object({
|
|
39035
|
+
kind: z68.literal("selected_practitioners"),
|
|
39036
|
+
resourceRefs: z68.array(appointmentSetupRefSchema)
|
|
38746
39037
|
})
|
|
38747
39038
|
]);
|
|
38748
|
-
var appointmentSetupServiceDraftSchema =
|
|
39039
|
+
var appointmentSetupServiceDraftSchema = z68.object({
|
|
38749
39040
|
ref: appointmentSetupRefSchema,
|
|
38750
|
-
title:
|
|
38751
|
-
description:
|
|
38752
|
-
durationMinutes:
|
|
38753
|
-
prepMinutes:
|
|
38754
|
-
cleanupMinutes:
|
|
38755
|
-
priceAmount:
|
|
38756
|
-
isActive:
|
|
38757
|
-
locationType:
|
|
38758
|
-
|
|
38759
|
-
|
|
38760
|
-
|
|
39041
|
+
title: z68.string().trim().min(1),
|
|
39042
|
+
description: z68.string().nullable(),
|
|
39043
|
+
durationMinutes: z68.number().int().positive().max(APPOINTMENT_SETUP_MAX_MINUTES),
|
|
39044
|
+
prepMinutes: z68.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
39045
|
+
cleanupMinutes: z68.number().int().nonnegative().max(APPOINTMENT_SETUP_MAX_MINUTES).default(0),
|
|
39046
|
+
priceAmount: z68.number().int().nonnegative().nullable(),
|
|
39047
|
+
isActive: z68.boolean(),
|
|
39048
|
+
locationType: z68.union([
|
|
39049
|
+
z68.literal("virtual"),
|
|
39050
|
+
z68.literal("in_person"),
|
|
39051
|
+
z68.literal("hybrid")
|
|
38761
39052
|
]),
|
|
38762
39053
|
venue: appointmentSetupVenueChoiceSchema,
|
|
38763
|
-
timezone:
|
|
39054
|
+
timezone: z68.string().trim().min(1).nullable(),
|
|
38764
39055
|
payment: appointmentSetupPaymentDraftSchema,
|
|
38765
39056
|
assignment: appointmentSetupServiceAssignmentDraftSchema
|
|
38766
39057
|
}).superRefine((service, ctx) => {
|
|
@@ -38779,49 +39070,49 @@ var appointmentSetupServiceDraftSchema = z67.object({
|
|
|
38779
39070
|
});
|
|
38780
39071
|
}
|
|
38781
39072
|
});
|
|
38782
|
-
var appointmentSetupPractitionerDraftSchema =
|
|
39073
|
+
var appointmentSetupPractitionerDraftSchema = z68.object({
|
|
38783
39074
|
ref: appointmentSetupRefSchema,
|
|
38784
|
-
displayName:
|
|
38785
|
-
bio:
|
|
38786
|
-
timezone:
|
|
38787
|
-
colorHex:
|
|
38788
|
-
});
|
|
38789
|
-
var appointmentSetupWeeklyWindowDraftSchema =
|
|
38790
|
-
weekday:
|
|
38791
|
-
startTime:
|
|
38792
|
-
endTime:
|
|
38793
|
-
});
|
|
38794
|
-
var appointmentSetupStartTimePolicyDraftSchema =
|
|
38795
|
-
|
|
38796
|
-
|
|
38797
|
-
kind:
|
|
38798
|
-
intervalMinutes:
|
|
38799
|
-
|
|
38800
|
-
|
|
38801
|
-
|
|
38802
|
-
|
|
38803
|
-
|
|
38804
|
-
|
|
39075
|
+
displayName: z68.string().trim().min(1),
|
|
39076
|
+
bio: z68.string().nullable(),
|
|
39077
|
+
timezone: z68.string().trim().min(1),
|
|
39078
|
+
colorHex: z68.string().nullable()
|
|
39079
|
+
});
|
|
39080
|
+
var appointmentSetupWeeklyWindowDraftSchema = z68.object({
|
|
39081
|
+
weekday: z68.number().int().min(0).max(6),
|
|
39082
|
+
startTime: z68.string(),
|
|
39083
|
+
endTime: z68.string()
|
|
39084
|
+
});
|
|
39085
|
+
var appointmentSetupStartTimePolicyDraftSchema = z68.discriminatedUnion("kind", [
|
|
39086
|
+
z68.object({ kind: z68.literal("automatic_spacing") }),
|
|
39087
|
+
z68.object({
|
|
39088
|
+
kind: z68.literal("regular_interval"),
|
|
39089
|
+
intervalMinutes: z68.union([
|
|
39090
|
+
z68.literal(10),
|
|
39091
|
+
z68.literal(15),
|
|
39092
|
+
z68.literal(20),
|
|
39093
|
+
z68.literal(30),
|
|
39094
|
+
z68.literal(45),
|
|
39095
|
+
z68.literal(60)
|
|
38805
39096
|
])
|
|
38806
39097
|
})
|
|
38807
39098
|
]);
|
|
38808
|
-
var appointmentSetupAvailabilityDraftSchema =
|
|
38809
|
-
kind:
|
|
39099
|
+
var appointmentSetupAvailabilityDraftSchema = z68.object({
|
|
39100
|
+
kind: z68.literal("weekly_windows"),
|
|
38810
39101
|
resourceRef: appointmentSetupRefSchema,
|
|
38811
39102
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
38812
|
-
windows:
|
|
39103
|
+
windows: z68.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
38813
39104
|
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
38814
39105
|
});
|
|
38815
39106
|
var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
38816
39107
|
var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
|
38817
|
-
var appointmentSetupBookingNoticeSchema =
|
|
38818
|
-
minLeadMinutes:
|
|
38819
|
-
maxBookingNoticeMinutes:
|
|
38820
|
-
});
|
|
38821
|
-
var applyAppointmentSetupRequestSchema =
|
|
38822
|
-
services:
|
|
38823
|
-
practitioners:
|
|
38824
|
-
availability:
|
|
39108
|
+
var appointmentSetupBookingNoticeSchema = z68.object({
|
|
39109
|
+
minLeadMinutes: z68.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX),
|
|
39110
|
+
maxBookingNoticeMinutes: z68.number().int().nonnegative().max(APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX)
|
|
39111
|
+
});
|
|
39112
|
+
var applyAppointmentSetupRequestSchema = z68.object({
|
|
39113
|
+
services: z68.array(appointmentSetupServiceDraftSchema),
|
|
39114
|
+
practitioners: z68.array(appointmentSetupPractitionerDraftSchema),
|
|
39115
|
+
availability: z68.array(appointmentSetupAvailabilityDraftSchema),
|
|
38825
39116
|
bookingNotice: appointmentSetupBookingNoticeSchema
|
|
38826
39117
|
});
|
|
38827
39118
|
|
|
@@ -38854,24 +39145,24 @@ var STAFF_CANCELLATION_CONTEXT_CATEGORIES = [
|
|
|
38854
39145
|
];
|
|
38855
39146
|
|
|
38856
39147
|
// ../api/src/siteBanner.ts
|
|
38857
|
-
import { z as
|
|
39148
|
+
import { z as z69 } from "zod";
|
|
38858
39149
|
var SITE_BANNER_SCOPE_VALUES = ["homepage", "all-pages"];
|
|
38859
39150
|
var SITE_BANNER_TONE_VALUES = ["announcement", "promotion", "notice", "warning"];
|
|
38860
39151
|
var SITE_BANNER_MAX_TEXT_LENGTH = 320;
|
|
38861
39152
|
var SITE_BANNER_MAX_PARAGRAPHS = 2;
|
|
38862
|
-
var siteBannerScopeSchema =
|
|
38863
|
-
var siteBannerToneSchema =
|
|
38864
|
-
var siteBannerBodySchema =
|
|
38865
|
-
var siteBannerCtaSchema =
|
|
38866
|
-
label:
|
|
39153
|
+
var siteBannerScopeSchema = z69.enum(SITE_BANNER_SCOPE_VALUES);
|
|
39154
|
+
var siteBannerToneSchema = z69.enum(SITE_BANNER_TONE_VALUES);
|
|
39155
|
+
var siteBannerBodySchema = z69.unknown().transform(unwrapRichTextValue);
|
|
39156
|
+
var siteBannerCtaSchema = z69.object({
|
|
39157
|
+
label: z69.string().trim().min(1),
|
|
38867
39158
|
link: linkPayloadSchema
|
|
38868
39159
|
});
|
|
38869
|
-
var siteBannerSettingsSchema =
|
|
38870
|
-
|
|
38871
|
-
enabled:
|
|
39160
|
+
var siteBannerSettingsSchema = z69.discriminatedUnion("enabled", [
|
|
39161
|
+
z69.object({
|
|
39162
|
+
enabled: z69.literal(false)
|
|
38872
39163
|
}),
|
|
38873
|
-
|
|
38874
|
-
enabled:
|
|
39164
|
+
z69.object({
|
|
39165
|
+
enabled: z69.literal(true),
|
|
38875
39166
|
scope: siteBannerScopeSchema,
|
|
38876
39167
|
tone: siteBannerToneSchema,
|
|
38877
39168
|
body: siteBannerBodySchema,
|
|
@@ -38885,7 +39176,7 @@ var siteBannerSettingsInputSchema = siteBannerSettingsSchema.superRefine((value,
|
|
|
38885
39176
|
const analysis = analyzeSiteBannerBody(value.body);
|
|
38886
39177
|
for (const issue of analysis.issues) {
|
|
38887
39178
|
ctx.addIssue({
|
|
38888
|
-
code:
|
|
39179
|
+
code: z69.ZodIssueCode.custom,
|
|
38889
39180
|
path: ["body"],
|
|
38890
39181
|
message: siteBannerBodyIssueMessage(issue)
|
|
38891
39182
|
});
|
|
@@ -39147,89 +39438,76 @@ function unsafeAsNavigationMenuIdentifier(identifier) {
|
|
|
39147
39438
|
var MAIN_NAVIGATION_MENU_IDENTIFIER = unsafeAsNavigationMenuIdentifier("main");
|
|
39148
39439
|
|
|
39149
39440
|
// ../api/src/aiPlayground.ts
|
|
39150
|
-
import { z as
|
|
39151
|
-
var Rfc6902PatchOp =
|
|
39441
|
+
import { z as z70 } from "zod";
|
|
39442
|
+
var Rfc6902PatchOp = z70.discriminatedUnion("op", [
|
|
39152
39443
|
// Standard RFC-6902 operations
|
|
39153
|
-
|
|
39154
|
-
op:
|
|
39155
|
-
path:
|
|
39156
|
-
value:
|
|
39444
|
+
z70.object({
|
|
39445
|
+
op: z70.literal("add"),
|
|
39446
|
+
path: z70.string(),
|
|
39447
|
+
value: z70.unknown()
|
|
39157
39448
|
}),
|
|
39158
|
-
|
|
39159
|
-
op:
|
|
39160
|
-
path:
|
|
39449
|
+
z70.object({
|
|
39450
|
+
op: z70.literal("remove"),
|
|
39451
|
+
path: z70.string()
|
|
39161
39452
|
}),
|
|
39162
|
-
|
|
39163
|
-
op:
|
|
39164
|
-
path:
|
|
39165
|
-
value:
|
|
39453
|
+
z70.object({
|
|
39454
|
+
op: z70.literal("replace"),
|
|
39455
|
+
path: z70.string(),
|
|
39456
|
+
value: z70.unknown()
|
|
39166
39457
|
}),
|
|
39167
|
-
|
|
39168
|
-
op:
|
|
39169
|
-
from:
|
|
39170
|
-
path:
|
|
39458
|
+
z70.object({
|
|
39459
|
+
op: z70.literal("move"),
|
|
39460
|
+
from: z70.string(),
|
|
39461
|
+
path: z70.string()
|
|
39171
39462
|
}),
|
|
39172
|
-
|
|
39173
|
-
op:
|
|
39174
|
-
from:
|
|
39175
|
-
path:
|
|
39463
|
+
z70.object({
|
|
39464
|
+
op: z70.literal("copy"),
|
|
39465
|
+
from: z70.string(),
|
|
39466
|
+
path: z70.string()
|
|
39176
39467
|
}),
|
|
39177
39468
|
// Block-level operations (Phase 2)
|
|
39178
|
-
|
|
39179
|
-
op:
|
|
39180
|
-
blockKind:
|
|
39181
|
-
afterBlockId:
|
|
39182
|
-
content:
|
|
39183
|
-
rationale:
|
|
39469
|
+
z70.object({
|
|
39470
|
+
op: z70.literal("add_block"),
|
|
39471
|
+
blockKind: z70.string(),
|
|
39472
|
+
afterBlockId: z70.string().nullable(),
|
|
39473
|
+
content: z70.record(z70.string(), z70.unknown()),
|
|
39474
|
+
rationale: z70.string()
|
|
39184
39475
|
}),
|
|
39185
|
-
|
|
39186
|
-
op:
|
|
39187
|
-
blockId:
|
|
39188
|
-
rationale:
|
|
39476
|
+
z70.object({
|
|
39477
|
+
op: z70.literal("delete_block"),
|
|
39478
|
+
blockId: z70.string(),
|
|
39479
|
+
rationale: z70.string()
|
|
39189
39480
|
}),
|
|
39190
|
-
|
|
39191
|
-
op:
|
|
39192
|
-
blockId:
|
|
39193
|
-
afterBlockId:
|
|
39194
|
-
rationale:
|
|
39481
|
+
z70.object({
|
|
39482
|
+
op: z70.literal("reorder_block"),
|
|
39483
|
+
blockId: z70.string(),
|
|
39484
|
+
afterBlockId: z70.string().nullable(),
|
|
39485
|
+
rationale: z70.string()
|
|
39195
39486
|
})
|
|
39196
39487
|
]);
|
|
39197
|
-
var PlaygroundProposeRequest =
|
|
39198
|
-
request:
|
|
39488
|
+
var PlaygroundProposeRequest = z70.object({
|
|
39489
|
+
request: z70.string().min(1).max(2e3)
|
|
39199
39490
|
});
|
|
39200
|
-
var MultiPagePatchEnvelope =
|
|
39201
|
-
pageId:
|
|
39202
|
-
blockId:
|
|
39491
|
+
var MultiPagePatchEnvelope = z70.object({
|
|
39492
|
+
pageId: z70.string(),
|
|
39493
|
+
blockId: z70.string().optional(),
|
|
39203
39494
|
// Not present for page-level ops
|
|
39204
|
-
blockKind:
|
|
39205
|
-
blockPurpose:
|
|
39206
|
-
ops:
|
|
39207
|
-
rationale:
|
|
39208
|
-
currentContent:
|
|
39495
|
+
blockKind: z70.string().optional(),
|
|
39496
|
+
blockPurpose: z70.string().optional().nullable(),
|
|
39497
|
+
ops: z70.array(Rfc6902PatchOp),
|
|
39498
|
+
rationale: z70.string(),
|
|
39499
|
+
currentContent: z70.record(z70.string(), z70.unknown()).optional()
|
|
39209
39500
|
});
|
|
39210
|
-
var MultiPageUpdateResponse =
|
|
39211
|
-
patches:
|
|
39212
|
-
assistantMessage:
|
|
39213
|
-
pagesModified:
|
|
39214
|
-
toolCallsUsed:
|
|
39501
|
+
var MultiPageUpdateResponse = z70.object({
|
|
39502
|
+
patches: z70.array(MultiPagePatchEnvelope),
|
|
39503
|
+
assistantMessage: z70.string(),
|
|
39504
|
+
pagesModified: z70.number(),
|
|
39505
|
+
toolCallsUsed: z70.number()
|
|
39215
39506
|
});
|
|
39216
39507
|
|
|
39217
39508
|
// src/data/prefetchBlockData.ts
|
|
39218
|
-
var SUPPORTED_LOADER_ENDPOINTS2 = [
|
|
39219
|
-
"listPublishedEntries",
|
|
39220
|
-
"getPublishedEntryPreview",
|
|
39221
|
-
"listPublicEvents",
|
|
39222
|
-
"listPublicCourses",
|
|
39223
|
-
"listPublicTeamMembers",
|
|
39224
|
-
"listPublicProducts",
|
|
39225
|
-
"listPublicPasses",
|
|
39226
|
-
"listPublicMemberships",
|
|
39227
|
-
"getPublicFormById",
|
|
39228
|
-
"getPublicBookingServices",
|
|
39229
|
-
"getPublicEventDetails"
|
|
39230
|
-
];
|
|
39231
39509
|
function isSupportedLoaderEndpoint2(endpoint) {
|
|
39232
|
-
return
|
|
39510
|
+
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
39233
39511
|
}
|
|
39234
39512
|
var ENTRY_REF_KEYS = [
|
|
39235
39513
|
"identifier",
|
|
@@ -39294,6 +39572,194 @@ function parseManualEntryRefs(...values) {
|
|
|
39294
39572
|
}
|
|
39295
39573
|
return void 0;
|
|
39296
39574
|
}
|
|
39575
|
+
var loaderAdapters = {
|
|
39576
|
+
listPublishedEntries: listPublishedEntries2,
|
|
39577
|
+
getPublishedEntryPreview,
|
|
39578
|
+
listPublicEvents,
|
|
39579
|
+
getPublicEventDetails,
|
|
39580
|
+
listPublicCourses,
|
|
39581
|
+
listPublicRouteCandidates,
|
|
39582
|
+
listPublicTeamMembers,
|
|
39583
|
+
listPublicProducts,
|
|
39584
|
+
listPublicPasses,
|
|
39585
|
+
listPublicMemberships,
|
|
39586
|
+
getPublicFormById,
|
|
39587
|
+
getPublicBookingServices
|
|
39588
|
+
};
|
|
39589
|
+
function readStringParam(params, key) {
|
|
39590
|
+
const value = params[key];
|
|
39591
|
+
return value && value.length > 0 ? value : void 0;
|
|
39592
|
+
}
|
|
39593
|
+
function requireStringParam(params, key, endpoint) {
|
|
39594
|
+
const value = readStringParam(params, key);
|
|
39595
|
+
if (!value) {
|
|
39596
|
+
throw new Error(`${endpoint} requires ${key} param`);
|
|
39597
|
+
}
|
|
39598
|
+
return value;
|
|
39599
|
+
}
|
|
39600
|
+
function parsePositiveIntegerParam(params, key) {
|
|
39601
|
+
const value = params[key];
|
|
39602
|
+
const parsed = value === void 0 ? void 0 : Number.parseInt(value, 10);
|
|
39603
|
+
return typeof parsed === "number" && Number.isInteger(parsed) && parsed > 0 ? parsed : void 0;
|
|
39604
|
+
}
|
|
39605
|
+
function parseEntryOrder(value) {
|
|
39606
|
+
if (value === void 0) return void 0;
|
|
39607
|
+
switch (value) {
|
|
39608
|
+
case "order":
|
|
39609
|
+
return "manual";
|
|
39610
|
+
case "newest":
|
|
39611
|
+
case "oldest":
|
|
39612
|
+
case "title":
|
|
39613
|
+
return value;
|
|
39614
|
+
default:
|
|
39615
|
+
return void 0;
|
|
39616
|
+
}
|
|
39617
|
+
}
|
|
39618
|
+
function parsePublicEventKind(value) {
|
|
39619
|
+
if (value === void 0) return void 0;
|
|
39620
|
+
switch (value) {
|
|
39621
|
+
case "all":
|
|
39622
|
+
case "courses":
|
|
39623
|
+
case "events":
|
|
39624
|
+
return value;
|
|
39625
|
+
default:
|
|
39626
|
+
return void 0;
|
|
39627
|
+
}
|
|
39628
|
+
}
|
|
39629
|
+
async function listPublishedEntries2({ client, params }) {
|
|
39630
|
+
const siteId = requireStringParam(params, "siteId", "listPublishedEntries");
|
|
39631
|
+
const type = requireStringParam(params, "type", "listPublishedEntries");
|
|
39632
|
+
const stage = readStringParam(params, "stage");
|
|
39633
|
+
const mode = readStringParam(params, "mode");
|
|
39634
|
+
const parsedEntryRefs = mode === "manual" ? parseManualEntryRefs(params.identifiers, params.entryRefs, params.entryIds) : void 0;
|
|
39635
|
+
if (mode === "manual" && (!parsedEntryRefs || parsedEntryRefs.length === 0)) {
|
|
39636
|
+
return { entries: [] };
|
|
39637
|
+
}
|
|
39638
|
+
if (mode === "manual" && parsedEntryRefs) {
|
|
39639
|
+
return await client.getEntriesByIdentifiers({
|
|
39640
|
+
siteId,
|
|
39641
|
+
contentType: type,
|
|
39642
|
+
identifiers: parsedEntryRefs,
|
|
39643
|
+
preview: stage === "preview"
|
|
39644
|
+
});
|
|
39645
|
+
}
|
|
39646
|
+
return await client.getEntries({
|
|
39647
|
+
siteId,
|
|
39648
|
+
contentType: type,
|
|
39649
|
+
limit: parsePositiveIntegerParam(params, "limit"),
|
|
39650
|
+
order: parseEntryOrder(readStringParam(params, "orderBy")),
|
|
39651
|
+
preview: stage === "preview"
|
|
39652
|
+
});
|
|
39653
|
+
}
|
|
39654
|
+
async function getPublishedEntryPreview({ client, params }) {
|
|
39655
|
+
return await client.getEntry({
|
|
39656
|
+
siteId: requireStringParam(params, "siteId", "getPublishedEntryPreview"),
|
|
39657
|
+
contentType: requireStringParam(params, "type", "getPublishedEntryPreview"),
|
|
39658
|
+
slug: requireStringParam(params, "slug", "getPublishedEntryPreview")
|
|
39659
|
+
});
|
|
39660
|
+
}
|
|
39661
|
+
async function listPublicEvents({ client, params }) {
|
|
39662
|
+
return await client.listPublicEvents({
|
|
39663
|
+
siteId: requireStringParam(params, "siteId", "listPublicEvents"),
|
|
39664
|
+
limit: parsePositiveIntegerParam(params, "limit"),
|
|
39665
|
+
from: readStringParam(params, "from"),
|
|
39666
|
+
to: readStringParam(params, "to"),
|
|
39667
|
+
afterStartsAt: readStringParam(params, "afterStartsAt"),
|
|
39668
|
+
afterId: readStringParam(params, "afterId"),
|
|
39669
|
+
stage: readStringParam(params, "stage"),
|
|
39670
|
+
categoryIds: readStringParam(params, "categoryIds"),
|
|
39671
|
+
venueId: readStringParam(params, "venueId"),
|
|
39672
|
+
staffMemberId: readStringParam(params, "staffMemberId"),
|
|
39673
|
+
kind: parsePublicEventKind(readStringParam(params, "kind")),
|
|
39674
|
+
eventSurface: readStringParam(params, "eventSurface"),
|
|
39675
|
+
eventPresets: readStringParam(params, "eventPresets"),
|
|
39676
|
+
scheduleScope: readStringParam(params, "scheduleScope"),
|
|
39677
|
+
entryId: readStringParam(params, "entryId"),
|
|
39678
|
+
seriesId: readStringParam(params, "seriesId"),
|
|
39679
|
+
includeOccurrenceId: readStringParam(params, "includeOccurrenceId")
|
|
39680
|
+
});
|
|
39681
|
+
}
|
|
39682
|
+
async function getPublicEventDetails({ client, params }) {
|
|
39683
|
+
return await client.getPublicEventDetails({
|
|
39684
|
+
siteId: requireStringParam(params, "siteId", "getPublicEventDetails"),
|
|
39685
|
+
limit: parsePositiveIntegerParam(params, "limit"),
|
|
39686
|
+
from: readStringParam(params, "from"),
|
|
39687
|
+
to: readStringParam(params, "to"),
|
|
39688
|
+
afterStartsAt: readStringParam(params, "afterStartsAt"),
|
|
39689
|
+
afterId: readStringParam(params, "afterId"),
|
|
39690
|
+
stage: readStringParam(params, "stage"),
|
|
39691
|
+
categoryIds: readStringParam(params, "categoryIds"),
|
|
39692
|
+
venueId: readStringParam(params, "venueId"),
|
|
39693
|
+
staffMemberId: readStringParam(params, "staffMemberId"),
|
|
39694
|
+
kind: readStringParam(params, "kind"),
|
|
39695
|
+
eventSurface: readStringParam(params, "eventSurface"),
|
|
39696
|
+
eventPresets: readStringParam(params, "eventPresets"),
|
|
39697
|
+
scheduleScope: readStringParam(params, "scheduleScope"),
|
|
39698
|
+
entryId: readStringParam(params, "entryId"),
|
|
39699
|
+
seriesId: readStringParam(params, "seriesId"),
|
|
39700
|
+
includeOccurrenceId: readStringParam(params, "includeOccurrenceId")
|
|
39701
|
+
});
|
|
39702
|
+
}
|
|
39703
|
+
async function listPublicCourses({ client, params }) {
|
|
39704
|
+
return await client.listPublicCourses({
|
|
39705
|
+
siteId: requireStringParam(params, "siteId", "listPublicCourses"),
|
|
39706
|
+
limit: parsePositiveIntegerParam(params, "limit"),
|
|
39707
|
+
stage: readStringParam(params, "stage")
|
|
39708
|
+
});
|
|
39709
|
+
}
|
|
39710
|
+
async function listPublicRouteCandidates({ client, params }) {
|
|
39711
|
+
const siteId = requireStringParam(params, "siteId", "listPublicRouteCandidates");
|
|
39712
|
+
const response = await client.getAllPublishedRoutes({ siteId });
|
|
39713
|
+
return {
|
|
39714
|
+
routes: response.items.flatMap((item) => {
|
|
39715
|
+
if (!item.path) return [];
|
|
39716
|
+
return [{
|
|
39717
|
+
entityId: item.entityId,
|
|
39718
|
+
path: item.path,
|
|
39719
|
+
title: item.title,
|
|
39720
|
+
kind: item.entityType,
|
|
39721
|
+
contentTypeKey: item.contentTypeKey ?? null
|
|
39722
|
+
}];
|
|
39723
|
+
})
|
|
39724
|
+
};
|
|
39725
|
+
}
|
|
39726
|
+
async function listPublicTeamMembers({ client, params }) {
|
|
39727
|
+
return await client.listPublicTeamMembers({
|
|
39728
|
+
siteId: requireStringParam(params, "siteId", "listPublicTeamMembers"),
|
|
39729
|
+
stage: readStringParam(params, "stage")
|
|
39730
|
+
});
|
|
39731
|
+
}
|
|
39732
|
+
async function listPublicProducts({ client, params }) {
|
|
39733
|
+
return await client.listPublicProducts({
|
|
39734
|
+
siteId: requireStringParam(params, "siteId", "listPublicProducts"),
|
|
39735
|
+
stage: readStringParam(params, "stage") === "preview" ? "preview" : "published",
|
|
39736
|
+
categorySelector: parsePublicProductCategorySelector(params.categorySelector)
|
|
39737
|
+
});
|
|
39738
|
+
}
|
|
39739
|
+
async function listPublicPasses({ client, params }) {
|
|
39740
|
+
return await client.listPublicPasses({
|
|
39741
|
+
siteId: requireStringParam(params, "siteId", "listPublicPasses"),
|
|
39742
|
+
categories: readStringParam(params, "categories")
|
|
39743
|
+
});
|
|
39744
|
+
}
|
|
39745
|
+
async function listPublicMemberships({ client, params }) {
|
|
39746
|
+
return await client.listPublicMemberships({
|
|
39747
|
+
siteId: requireStringParam(params, "siteId", "listPublicMemberships"),
|
|
39748
|
+
categories: readStringParam(params, "categories")
|
|
39749
|
+
});
|
|
39750
|
+
}
|
|
39751
|
+
async function getPublicFormById({ client, params }) {
|
|
39752
|
+
return await client.getPublicFormById({
|
|
39753
|
+
formId: requireStringParam(params, "formId", "getPublicFormById"),
|
|
39754
|
+
siteId: requireStringParam(params, "siteId", "getPublicFormById")
|
|
39755
|
+
});
|
|
39756
|
+
}
|
|
39757
|
+
async function getPublicBookingServices({ client, params }) {
|
|
39758
|
+
return await client.getPublicBookingServices({
|
|
39759
|
+
siteId: requireStringParam(params, "siteId", "getPublicBookingServices"),
|
|
39760
|
+
ids: readStringParam(params, "ids")
|
|
39761
|
+
});
|
|
39762
|
+
}
|
|
39297
39763
|
async function prefetchBlockData2(page, context, client, options) {
|
|
39298
39764
|
const { customBlocks } = options ?? {};
|
|
39299
39765
|
const customBlockMap = new Map(
|
|
@@ -39303,189 +39769,11 @@ async function prefetchBlockData2(page, context, client, options) {
|
|
|
39303
39769
|
apiClient: async ({ endpoint, params }) => {
|
|
39304
39770
|
if (!isSupportedLoaderEndpoint2(endpoint)) {
|
|
39305
39771
|
throw new Error(
|
|
39306
|
-
`Unsupported loader endpoint: ${endpoint}. SDK only supports: ${
|
|
39772
|
+
`Unsupported loader endpoint: ${endpoint}. SDK only supports: ${SUPPORTED_LOADER_ENDPOINTS.join(", ")}`
|
|
39307
39773
|
);
|
|
39308
39774
|
}
|
|
39309
39775
|
const resolvedParams = normalizeLoaderParams(endpoint, params, context);
|
|
39310
|
-
|
|
39311
|
-
case "listPublishedEntries": {
|
|
39312
|
-
const {
|
|
39313
|
-
siteId,
|
|
39314
|
-
type,
|
|
39315
|
-
orderBy,
|
|
39316
|
-
limit,
|
|
39317
|
-
stage,
|
|
39318
|
-
mode,
|
|
39319
|
-
entryIds,
|
|
39320
|
-
identifiers,
|
|
39321
|
-
entryRefs
|
|
39322
|
-
} = resolvedParams ?? {};
|
|
39323
|
-
if (!siteId || !type) {
|
|
39324
|
-
throw new Error("listPublishedEntries requires siteId and type params");
|
|
39325
|
-
}
|
|
39326
|
-
const parsedLimit = typeof limit === "string" ? Number.parseInt(limit, 10) : typeof limit === "number" ? limit : void 0;
|
|
39327
|
-
const order = orderBy === "order" ? "manual" : orderBy === "newest" || orderBy === "oldest" || orderBy === "title" ? orderBy : void 0;
|
|
39328
|
-
const parsedEntryRefs = mode === "manual" ? parseManualEntryRefs(identifiers, entryRefs, entryIds) : void 0;
|
|
39329
|
-
if (mode === "manual" && (!parsedEntryRefs || parsedEntryRefs.length === 0)) {
|
|
39330
|
-
return { entries: [] };
|
|
39331
|
-
}
|
|
39332
|
-
if (mode === "manual" && parsedEntryRefs) {
|
|
39333
|
-
return await client.getEntriesByIdentifiers({
|
|
39334
|
-
siteId,
|
|
39335
|
-
contentType: type,
|
|
39336
|
-
identifiers: parsedEntryRefs,
|
|
39337
|
-
preview: stage === "preview"
|
|
39338
|
-
});
|
|
39339
|
-
}
|
|
39340
|
-
return await client.getEntries({
|
|
39341
|
-
siteId,
|
|
39342
|
-
contentType: type,
|
|
39343
|
-
limit: parsedLimit,
|
|
39344
|
-
order,
|
|
39345
|
-
preview: stage === "preview"
|
|
39346
|
-
});
|
|
39347
|
-
}
|
|
39348
|
-
case "getPublishedEntryPreview": {
|
|
39349
|
-
const { siteId, type, slug } = resolvedParams ?? {};
|
|
39350
|
-
if (!siteId || !type || !slug) {
|
|
39351
|
-
throw new Error("getPublishedEntryPreview requires siteId, type, and slug params");
|
|
39352
|
-
}
|
|
39353
|
-
return await client.getEntry({ siteId, contentType: type, slug });
|
|
39354
|
-
}
|
|
39355
|
-
case "listPublicEvents": {
|
|
39356
|
-
const {
|
|
39357
|
-
siteId,
|
|
39358
|
-
limit,
|
|
39359
|
-
from,
|
|
39360
|
-
to,
|
|
39361
|
-
stage,
|
|
39362
|
-
categoryIds,
|
|
39363
|
-
venueId,
|
|
39364
|
-
kind,
|
|
39365
|
-
entryId,
|
|
39366
|
-
seriesId,
|
|
39367
|
-
includeOccurrenceId
|
|
39368
|
-
} = resolvedParams ?? {};
|
|
39369
|
-
if (!siteId) {
|
|
39370
|
-
throw new Error("listPublicEvents requires siteId param");
|
|
39371
|
-
}
|
|
39372
|
-
const parsedLimit = typeof limit === "string" ? Number.parseInt(limit, 10) : typeof limit === "number" ? limit : void 0;
|
|
39373
|
-
return await client.listPublicEvents({
|
|
39374
|
-
siteId,
|
|
39375
|
-
limit: parsedLimit,
|
|
39376
|
-
from,
|
|
39377
|
-
to,
|
|
39378
|
-
stage,
|
|
39379
|
-
categoryIds: typeof categoryIds === "string" ? categoryIds : void 0,
|
|
39380
|
-
venueId: typeof venueId === "string" ? venueId : void 0,
|
|
39381
|
-
kind: kind === "all" || kind === "courses" || kind === "events" ? kind : void 0,
|
|
39382
|
-
entryId: typeof entryId === "string" ? entryId : void 0,
|
|
39383
|
-
seriesId: typeof seriesId === "string" ? seriesId : void 0,
|
|
39384
|
-
includeOccurrenceId: typeof includeOccurrenceId === "string" ? includeOccurrenceId : void 0
|
|
39385
|
-
});
|
|
39386
|
-
}
|
|
39387
|
-
case "getPublicEventDetails": {
|
|
39388
|
-
const {
|
|
39389
|
-
siteId,
|
|
39390
|
-
limit,
|
|
39391
|
-
from,
|
|
39392
|
-
to,
|
|
39393
|
-
afterStartsAt,
|
|
39394
|
-
afterId,
|
|
39395
|
-
stage,
|
|
39396
|
-
categoryIds,
|
|
39397
|
-
venueId,
|
|
39398
|
-
staffMemberId,
|
|
39399
|
-
kind,
|
|
39400
|
-
entryId,
|
|
39401
|
-
seriesId,
|
|
39402
|
-
includeOccurrenceId
|
|
39403
|
-
} = resolvedParams ?? {};
|
|
39404
|
-
if (!siteId) {
|
|
39405
|
-
throw new Error("getPublicEventDetails requires siteId param");
|
|
39406
|
-
}
|
|
39407
|
-
const parsedLimit = typeof limit === "string" ? Number.parseInt(limit, 10) : typeof limit === "number" ? limit : void 0;
|
|
39408
|
-
return await client.getPublicEventDetails({
|
|
39409
|
-
siteId,
|
|
39410
|
-
limit: parsedLimit,
|
|
39411
|
-
from: typeof from === "string" ? from : void 0,
|
|
39412
|
-
to: typeof to === "string" ? to : void 0,
|
|
39413
|
-
afterStartsAt: typeof afterStartsAt === "string" ? afterStartsAt : void 0,
|
|
39414
|
-
afterId: typeof afterId === "string" ? afterId : void 0,
|
|
39415
|
-
stage: typeof stage === "string" ? stage : void 0,
|
|
39416
|
-
categoryIds: typeof categoryIds === "string" ? categoryIds : void 0,
|
|
39417
|
-
venueId: typeof venueId === "string" ? venueId : void 0,
|
|
39418
|
-
staffMemberId: typeof staffMemberId === "string" ? staffMemberId : void 0,
|
|
39419
|
-
kind: typeof kind === "string" ? kind : void 0,
|
|
39420
|
-
entryId: typeof entryId === "string" ? entryId : void 0,
|
|
39421
|
-
seriesId: typeof seriesId === "string" ? seriesId : void 0,
|
|
39422
|
-
includeOccurrenceId: typeof includeOccurrenceId === "string" ? includeOccurrenceId : void 0
|
|
39423
|
-
});
|
|
39424
|
-
}
|
|
39425
|
-
case "listPublicCourses": {
|
|
39426
|
-
const { siteId, limit, stage } = resolvedParams ?? {};
|
|
39427
|
-
if (!siteId) {
|
|
39428
|
-
throw new Error("listPublicCourses requires siteId param");
|
|
39429
|
-
}
|
|
39430
|
-
const parsedLimit = typeof limit === "string" ? Number.parseInt(limit, 10) : typeof limit === "number" ? limit : void 0;
|
|
39431
|
-
return await client.listPublicCourses({ siteId, limit: parsedLimit, stage });
|
|
39432
|
-
}
|
|
39433
|
-
case "listPublicTeamMembers": {
|
|
39434
|
-
const { siteId, stage } = resolvedParams ?? {};
|
|
39435
|
-
if (!siteId) {
|
|
39436
|
-
throw new Error("listPublicTeamMembers requires siteId param");
|
|
39437
|
-
}
|
|
39438
|
-
return await client.listPublicTeamMembers({
|
|
39439
|
-
siteId,
|
|
39440
|
-
stage: typeof stage === "string" ? stage : void 0
|
|
39441
|
-
});
|
|
39442
|
-
}
|
|
39443
|
-
case "listPublicProducts": {
|
|
39444
|
-
const { siteId, stage, categorySelector } = resolvedParams ?? {};
|
|
39445
|
-
if (!siteId) {
|
|
39446
|
-
throw new Error("listPublicProducts requires siteId param");
|
|
39447
|
-
}
|
|
39448
|
-
return await client.listPublicProducts({
|
|
39449
|
-
siteId,
|
|
39450
|
-
stage: stage === "preview" ? "preview" : "published",
|
|
39451
|
-
categorySelector: parsePublicProductCategorySelector(categorySelector)
|
|
39452
|
-
});
|
|
39453
|
-
}
|
|
39454
|
-
case "getPublicFormById": {
|
|
39455
|
-
const { formId, siteId } = resolvedParams ?? {};
|
|
39456
|
-
if (!formId) {
|
|
39457
|
-
throw new Error("getPublicFormById requires formId param");
|
|
39458
|
-
}
|
|
39459
|
-
if (!siteId) {
|
|
39460
|
-
throw new Error("getPublicFormById requires siteId param");
|
|
39461
|
-
}
|
|
39462
|
-
return await client.getPublicFormById({ formId, siteId });
|
|
39463
|
-
}
|
|
39464
|
-
case "getPublicBookingServices": {
|
|
39465
|
-
const { siteId, ids } = resolvedParams ?? {};
|
|
39466
|
-
if (!siteId) {
|
|
39467
|
-
throw new Error("getPublicBookingServices requires siteId param");
|
|
39468
|
-
}
|
|
39469
|
-
return await client.getPublicBookingServices({ siteId, ids });
|
|
39470
|
-
}
|
|
39471
|
-
case "listPublicPasses": {
|
|
39472
|
-
const { siteId, categories } = resolvedParams ?? {};
|
|
39473
|
-
if (!siteId) {
|
|
39474
|
-
throw new Error("listPublicPasses requires siteId param");
|
|
39475
|
-
}
|
|
39476
|
-
return await client.listPublicPasses({ siteId, categories });
|
|
39477
|
-
}
|
|
39478
|
-
case "listPublicMemberships": {
|
|
39479
|
-
const { siteId, categories } = resolvedParams ?? {};
|
|
39480
|
-
if (!siteId) {
|
|
39481
|
-
throw new Error("listPublicMemberships requires siteId param");
|
|
39482
|
-
}
|
|
39483
|
-
return await client.listPublicMemberships({ siteId, categories });
|
|
39484
|
-
}
|
|
39485
|
-
default: {
|
|
39486
|
-
throw new Error("Unhandled endpoint");
|
|
39487
|
-
}
|
|
39488
|
-
}
|
|
39776
|
+
return await loaderAdapters[endpoint]({ client, params: resolvedParams });
|
|
39489
39777
|
},
|
|
39490
39778
|
isValidEndpoint: isSupportedLoaderEndpoint2,
|
|
39491
39779
|
onError: (error, { block, loader }) => {
|
|
@@ -39564,7 +39852,7 @@ function mergeLoaderResults(configResults, codeResults) {
|
|
|
39564
39852
|
return merged;
|
|
39565
39853
|
}
|
|
39566
39854
|
export {
|
|
39567
|
-
|
|
39855
|
+
SUPPORTED_LOADER_ENDPOINTS,
|
|
39568
39856
|
executeCodeLoaders,
|
|
39569
39857
|
mergeLoaderResults,
|
|
39570
39858
|
prefetchBlockData2 as prefetchBlockData
|