@riverbankcms/sdk 0.132.0 → 0.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/{PreviewEditorSidebar-DKQ5eFK9.mjs → PreviewEditorSidebar-DfRhJPFQ.mjs} +3 -3
- package/dist/{PreviewEditorUI-CNTcOjCC.mjs → PreviewEditorUI-Dppxcr_g.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-DJu3qu33.mjs → SdkPreviewModeRuntime-8CyGCXir.mjs} +46 -15
- package/dist/{SiteChromeCustomizeContext-2TzT3vbj.mjs → SiteChromeCustomizeContext-DVMTMvqA.mjs} +497 -169
- package/dist/_dts/ai/src/contracts/proposals.d.ts +384 -384
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +219 -219
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -14
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -1
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +2 -2
- package/dist/_dts/api/src/endpoints.d.ts +3 -3
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -6
- package/dist/_dts/api/src/navigation/linkResolver.d.ts +6 -2
- package/dist/_dts/api/src/navigation/types.d.ts +23 -6
- package/dist/_dts/api/src/navigation.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingService.d.ts +15 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkThemeWire.d.ts +50 -50
- package/dist/_dts/api/src/siteBanner.d.ts +4 -2
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/api/src/webhooks.d.ts +12 -12
- package/dist/_dts/blocks/src/client.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +28 -72
- package/dist/_dts/blocks/src/index.d.ts +3 -2
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +2 -2
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +36 -14
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +4 -4
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +148 -148
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingConsent.d.ts +36 -0
- package/dist/_dts/blocks/src/system/manifest/hydrateLinks.d.ts +9 -2
- package/dist/_dts/blocks/src/system/manifest/resolveBlockData.d.ts +8 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +79 -79
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -11
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/components/multi-step/DynamicFormFields.d.ts +3 -19
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useSelectedAppointmentConsentForm.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.consent.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.field-values.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.fields.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +38 -144
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +5 -19
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +18 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/validation.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/components.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/whole-series/whole-series-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +34 -12
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingConsentAgreement.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/types/link.d.ts +7 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -4
- package/dist/_dts/core/src/booking-consent.d.ts +8 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +9 -3
- package/dist/_dts/db/src/schemas/forms.d.ts +21 -21
- package/dist/_dts/db/src/types/jsonb.d.ts +1 -1
- package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/config.d.ts +2 -1
- package/dist/_dts/editor/src/primitives/rich-text/toolbar/linkPopoverUtils.d.ts +3 -2
- package/dist/_dts/editor/src/primitives/rich-text/useRichTextEditor.d.ts +3 -4
- package/dist/_dts/media-core/src/usageScanner.d.ts +1 -1
- package/dist/_dts/sdk/src/bookings/types.d.ts +7 -89
- package/dist/_dts/sdk/src/config/validation.d.ts +30 -30
- package/dist/_dts/sdk/src/contracts/content.d.ts +10 -36
- package/dist/_dts/sdk/src/contracts/rendering.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +9 -9
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -19
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/types.d.ts +12 -12
- package/dist/_dts/theme-core/src/cards/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +72 -72
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +82 -82
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/logoBranding.d.ts +4 -4
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/client/{StepIndicator-CGixP_LW.mjs → BookingConsentAgreement-BxgpGEFD.mjs} +26 -4
- package/dist/client/{DiscountCodeDisclosure-DO7llLxm.mjs → DiscountCodeDisclosure-CfuPOHD0.mjs} +1 -1
- package/dist/client/{EventCombined.client-xID7zN__.mjs → EventCombined.client-DB8Qfzi-.mjs} +3 -3
- package/dist/client/{EventListing.client-CriBslp0.mjs → EventListing.client-DD4X8hp4.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-DYmHnM8g.mjs → LeafletStaticMap-QhgIBQbv.mjs} +1 -1
- package/dist/client/{WholeSeriesRegistrationWizard-BEjzSiOA.mjs → WholeSeriesRegistrationWizard-DwtC7bCs.mjs} +72 -22
- package/dist/client/{accordion-CgFbnnnQ.mjs → accordion-DFXpLvwg.mjs} +1 -1
- package/dist/client/{bookingForm-dUyGpbxc.mjs → bookingForm-sI05d3lk.mjs} +73 -47
- package/dist/client/bookings.mjs +989 -140
- package/dist/client/{carousel-BvBwkUzx.mjs → carousel-wjyWTZCh.mjs} +1 -1
- package/dist/client/{cart-DiZENT2E.mjs → cart-DCwdpA4i.mjs} +3 -3
- package/dist/client/{checkout-Dq13KIgR.mjs → checkout-DTDW3l0R.mjs} +3 -3
- package/dist/client/checkoutUrls-DQYC_Br-.mjs +187 -0
- package/dist/client/client.mjs +556 -237
- package/dist/client/{context-B83PiNzm.mjs → context-TSK1CGx8.mjs} +1 -14
- package/dist/client/{courseRegistration-CKC5NmyH.mjs → courseRegistration-A-Tg7qw_.mjs} +3 -3
- package/dist/client/{eventCalendar-BF0Jatfw.mjs → eventCalendar-B0Zg-i_w.mjs} +5 -5
- package/dist/client/{eventCombined-BuoCF8je.mjs → eventCombined-B8Y2wizd.mjs} +3 -3
- package/dist/client/{eventDetails-CKwh0S9s.mjs → eventDetails-DPDOwURJ.mjs} +3 -3
- package/dist/client/{eventListing-eUxaWFaB.mjs → eventListing-CjBcmSLn.mjs} +3 -3
- package/dist/client/{eventRegistration-CfkNOkPb.mjs → eventRegistration-CK30HsAq.mjs} +111 -64
- package/dist/client/{form-C17H1c_H.mjs → form-CUXfsABE.mjs} +2 -2
- package/dist/client/{headerSection-DEwUmrtt.mjs → headerSection-N-mN3rjr.mjs} +2 -2
- package/dist/client/hooks.mjs +106 -3
- package/dist/client/{locationMap-Pf2QwuvW.mjs → locationMap-oiIDQMBt.mjs} +2 -2
- package/dist/client/{newsletterForm-BWQAH5Sv.mjs → newsletterForm-CkQ2tTrM.mjs} +2 -2
- package/dist/client/{pricing-CVdvbopJ.mjs → pricing-Caa0QWzh.mjs} +1 -1
- package/dist/client/{productDetail-BZi1Fa_G.mjs → productDetail-CnidyrsN.mjs} +3 -3
- package/dist/client/{productList-qq-55DNk.mjs → productList-CttYcS_S.mjs} +3 -3
- package/dist/client/{propsDecoder-BxmqPKdP.mjs → propsDecoder-CeUMxI9a.mjs} +211 -100
- package/dist/client/rendering/client.mjs +428 -151
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +643 -324
- package/dist/client/{scrollToBlock-B3CcKdtG.mjs → scrollToBlock-lPr1oqxB.mjs} +1 -1
- package/dist/client/{shop-DNWJPut5.mjs → shop-DXQtMo2O.mjs} +6 -6
- package/dist/client/{shop-commerce-BhvQCosS.mjs → shop-commerce-quDL411J.mjs} +7 -164
- package/dist/client/{shop-commerce-store-B04sCNnW.mjs → shop-commerce-store-Dnu-8Iub.mjs} +1 -1
- package/dist/client/{shopShared-DNNgZlmW.mjs → shopShared-BWPUURvG.mjs} +3 -3
- package/dist/client/{useEventFilters-CUmhE24_.mjs → useEventFilters-DRhWp2_5.mjs} +3 -3
- package/dist/client/{usePolling-M5jG675x.mjs → usePolling-UN4WKnaM.mjs} +2 -2
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-BEXb1wqo.mjs → sdk-runtime-Ca5RD78X.mjs} +1 -1
- package/dist/{separator-DGMuip1D.mjs → separator-CMhj6BTi.mjs} +1 -1
- package/dist/server/components.mjs +117 -37
- package/dist/server/config-validation.mjs +106 -3
- package/dist/server/config.mjs +106 -3
- package/dist/server/data.mjs +106 -3
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +186 -106
- package/dist/server/page-converter.mjs +105 -2
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +119 -37
- package/dist/server/rendering.mjs +117 -37
- package/dist/server/routing.mjs +132 -73
- package/dist/server/server.mjs +107 -4
- package/dist/server/theme-bridge.mjs +4 -4
- package/package.json +2 -2
- package/dist/client/checkoutUrls-Ct8Mxna3.mjs +0 -26
|
@@ -37,8 +37,8 @@ export { type GeneratedIconAssetId, type GeneratedIconSetId, parseSiteIconStyleG
|
|
|
37
37
|
export { isSemanticIconId, type SemanticIconId } from './system/icons/semantic';
|
|
38
38
|
export { getGeneratedBlockIconStyleState, parseBlockIconValue, type GeneratedBlockIconValue, type GeneratedBlockIconStyleState, } from './system/icons/value';
|
|
39
39
|
export { SUPPORTED_LOADER_ENDPOINTS, isSupportedLoaderEndpoint, type SupportedLoaderEndpoint, } from './system/data';
|
|
40
|
-
export type { AuthoredLinkValue, LinkValue, InternalLinkValue, InternalResolvedLinkValue, InternalRouteOnlyLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, } from './system/types/link';
|
|
41
|
-
export { linkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, externalLinkSchema, customLinkSchema, pageLinkSchema, entryLinkSchema, isInternalResolvedLinkValue, } from './system/types/link';
|
|
40
|
+
export type { AuthoredLinkValue, LinkValue, InternalLinkValue, InternalResolvedLinkValue, InternalRouteOnlyLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, ResolvedInternalLinkEntityType, } from './system/types/link';
|
|
41
|
+
export { RESOLVED_INTERNAL_LINK_ENTITY_TYPES, isResolvedInternalLinkEntityType, linkSchema, internalLinkSchema, internalResolvedLinkSchema, internalRouteOnlyLinkSchema, externalLinkSchema, customLinkSchema, pageLinkSchema, entryLinkSchema, isInternalResolvedLinkValue, } from './system/types/link';
|
|
42
42
|
export { heroManifest } from './system/blocks/hero';
|
|
43
43
|
export type { HeroContent, HeroMedia } from './system/blocks/hero';
|
|
44
44
|
export { bodyTextManifest } from './system/blocks/body-text';
|
|
@@ -68,6 +68,7 @@ export type { BookingOfferingPresetSummary, OfferingsPreviewContent, OfferingsPr
|
|
|
68
68
|
export type { FormRecord, FormFieldDef, } from './system/runtime/nodes/form.types';
|
|
69
69
|
export { APPOINTMENT_BOOKING_BLOCK_ID, BOOKING_FORM_DATA_RESERVED_KEYS, BOOKING_FORM_DATA_RESERVED_KEY_VALUES, collectBookingReservedFieldCollisions, findBookingFormDataReservedFieldCollisions, formatBookingReservedFieldCollisionMessages, formatBookingFormDataReservedFieldMessage, isBookingFormDataReservedKey, type BookingFormDataReservedKey, type BookingReservedFieldCollision, } from './system/runtime/nodes/booking-form.reserved-fields';
|
|
70
70
|
export type { ShopDisplayConfig } from './system/runtime/nodes/shop.types';
|
|
71
|
+
export { BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX, blockBookingConsentSchema, bookingConsentCarrierSchema, isBookingRequirementConsentFieldId, toBookingRequirementConsentField, toBookingRequirementConsentFieldId, type BlockBookingConsent, type BookingConsentCarrier, type BookingRequirementConsentField, } from './system/blocks/shared/bookingConsent';
|
|
71
72
|
export type { SemanticSpacing } from './system/spacing';
|
|
72
73
|
export { defineFrameCapability, flushPanelFrame, panelFrame, plainFrame, resolveFrameStyles, } from './system/frame/frameStyles';
|
|
73
74
|
export type { ContentFrameIntent, FlushFrameTreatment, FlushPanelFrameIntent, FrameBleedEdge, FrameCapability, FrameDecisionFor, FrameKind, PanelFrameIntent, PanelFrameTreatment, PlainFrameIntent, ResolvedFlushPanelFrame, ResolvedFrameStyles, ResolvedPanelFrame, ResolvedPlainFrame, SectionPaddingX, FrameSurfaceOwner, } from './system/frame/frameStyles';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
import type { RichTextPrimitiveProps } from "../primitives";
|
|
3
|
-
export default function RichText({ as: Comp, className, doc, path }: RichTextPrimitiveProps): React.JSX.Element;
|
|
3
|
+
export default function RichText({ as: Comp, className, doc, path, linkTarget, }: RichTextPrimitiveProps): React.JSX.Element;
|
|
@@ -22,6 +22,7 @@ export type RichTextPrimitiveProps = {
|
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
ariaLabel?: string;
|
|
24
24
|
blockData?: Record<string, unknown> | null;
|
|
25
|
+
linkTarget?: "stored" | "new-tab";
|
|
25
26
|
};
|
|
26
27
|
export type RichTextVariant = "full" | "inline" | "limited" | "media" | "notes";
|
|
27
28
|
export type PrimitiveAPI = {
|
|
@@ -168,13 +168,13 @@ export declare const publicEventTicketTypePriceDisplaySchema: z.ZodUnion<readonl
|
|
|
168
168
|
currency: z.ZodString;
|
|
169
169
|
}, z.core.$strip>]>;
|
|
170
170
|
export declare const publicEventAttendanceModeSchema: z.ZodEnum<{
|
|
171
|
-
in_person: "in_person";
|
|
172
171
|
online: "online";
|
|
172
|
+
in_person: "in_person";
|
|
173
173
|
}>;
|
|
174
174
|
export declare const publicEventAttendanceModeAvailabilitySchema: z.ZodObject<{
|
|
175
175
|
mode: z.ZodEnum<{
|
|
176
|
-
in_person: "in_person";
|
|
177
176
|
online: "online";
|
|
177
|
+
in_person: "in_person";
|
|
178
178
|
}>;
|
|
179
179
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
180
180
|
registeredCount: z.ZodNumber;
|
|
@@ -210,9 +210,9 @@ export declare const publicEventTicketTypeSchema: z.ZodObject<{
|
|
|
210
210
|
}>;
|
|
211
211
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
212
212
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
213
|
-
in_person: "in_person";
|
|
214
213
|
both: "both";
|
|
215
214
|
online: "online";
|
|
215
|
+
in_person: "in_person";
|
|
216
216
|
}>>;
|
|
217
217
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
218
218
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -274,9 +274,9 @@ export declare const publicEventPricingSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
274
274
|
}>;
|
|
275
275
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
276
276
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
in_person: "in_person";
|
|
278
277
|
both: "both";
|
|
279
278
|
online: "online";
|
|
279
|
+
in_person: "in_person";
|
|
280
280
|
}>>;
|
|
281
281
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
282
282
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -731,14 +731,14 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
731
731
|
}>;
|
|
732
732
|
}, z.core.$strip>], "kind">;
|
|
733
733
|
deliveryMode: z.ZodEnum<{
|
|
734
|
+
online: "online";
|
|
734
735
|
in_person: "in_person";
|
|
735
736
|
hybrid: "hybrid";
|
|
736
|
-
online: "online";
|
|
737
737
|
}>;
|
|
738
738
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
739
739
|
mode: z.ZodEnum<{
|
|
740
|
-
in_person: "in_person";
|
|
741
740
|
online: "online";
|
|
741
|
+
in_person: "in_person";
|
|
742
742
|
}>;
|
|
743
743
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
744
744
|
registeredCount: z.ZodNumber;
|
|
@@ -821,9 +821,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
821
821
|
}>;
|
|
822
822
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
823
823
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
824
|
-
in_person: "in_person";
|
|
825
824
|
both: "both";
|
|
826
825
|
online: "online";
|
|
826
|
+
in_person: "in_person";
|
|
827
827
|
}>>;
|
|
828
828
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
829
829
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -970,6 +970,17 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
970
970
|
}, z.core.$strip>;
|
|
971
971
|
}, z.core.$strip>]>>;
|
|
972
972
|
}, z.core.$strip>;
|
|
973
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
974
|
+
requirementId: string;
|
|
975
|
+
title: string;
|
|
976
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
977
|
+
checkboxLabel: string;
|
|
978
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
979
|
+
requirementId: string;
|
|
980
|
+
title: string;
|
|
981
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
982
|
+
checkboxLabel: string;
|
|
983
|
+
}>, unknown>>>;
|
|
973
984
|
accessRestriction: z.ZodEnum<{
|
|
974
985
|
none: "none";
|
|
975
986
|
category: "category";
|
|
@@ -982,8 +993,8 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
982
993
|
eventSeriesId: z.ZodString;
|
|
983
994
|
pricing: z.ZodObject<{
|
|
984
995
|
bookingRequirement: z.ZodEnum<{
|
|
985
|
-
required: "required";
|
|
986
996
|
none: "none";
|
|
997
|
+
required: "required";
|
|
987
998
|
}>;
|
|
988
999
|
pricingStrategy: z.ZodEnum<{
|
|
989
1000
|
single: "single";
|
|
@@ -1069,9 +1080,9 @@ export declare const publicEventSchema: z.ZodObject<{
|
|
|
1069
1080
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1070
1081
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
1071
1082
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1072
|
-
in_person: "in_person";
|
|
1073
1083
|
both: "both";
|
|
1074
1084
|
online: "online";
|
|
1085
|
+
in_person: "in_person";
|
|
1075
1086
|
}>>>;
|
|
1076
1087
|
}, z.core.$strip>>;
|
|
1077
1088
|
}, z.core.$strip>;
|
|
@@ -1424,14 +1435,14 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1424
1435
|
}>;
|
|
1425
1436
|
}, z.core.$strip>], "kind">;
|
|
1426
1437
|
deliveryMode: z.ZodEnum<{
|
|
1438
|
+
online: "online";
|
|
1427
1439
|
in_person: "in_person";
|
|
1428
1440
|
hybrid: "hybrid";
|
|
1429
|
-
online: "online";
|
|
1430
1441
|
}>;
|
|
1431
1442
|
attendanceModes: z.ZodArray<z.ZodObject<{
|
|
1432
1443
|
mode: z.ZodEnum<{
|
|
1433
|
-
in_person: "in_person";
|
|
1434
1444
|
online: "online";
|
|
1445
|
+
in_person: "in_person";
|
|
1435
1446
|
}>;
|
|
1436
1447
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1437
1448
|
registeredCount: z.ZodNumber;
|
|
@@ -1514,9 +1525,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1514
1525
|
}>;
|
|
1515
1526
|
capacityLimit: z.ZodNullable<z.ZodNumber>;
|
|
1516
1527
|
attendanceScope: z.ZodOptional<z.ZodEnum<{
|
|
1517
|
-
in_person: "in_person";
|
|
1518
1528
|
both: "both";
|
|
1519
1529
|
online: "online";
|
|
1530
|
+
in_person: "in_person";
|
|
1520
1531
|
}>>;
|
|
1521
1532
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1522
1533
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1663,6 +1674,17 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1663
1674
|
}, z.core.$strip>;
|
|
1664
1675
|
}, z.core.$strip>]>>;
|
|
1665
1676
|
}, z.core.$strip>;
|
|
1677
|
+
consent: z.ZodNullable<z.ZodType<Readonly<{
|
|
1678
|
+
requirementId: string;
|
|
1679
|
+
title: string;
|
|
1680
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
1681
|
+
checkboxLabel: string;
|
|
1682
|
+
}>, unknown, z.core.$ZodTypeInternals<Readonly<{
|
|
1683
|
+
requirementId: string;
|
|
1684
|
+
title: string;
|
|
1685
|
+
agreement: import("../../../../../../core/src/index").RichTextDoc;
|
|
1686
|
+
checkboxLabel: string;
|
|
1687
|
+
}>, unknown>>>;
|
|
1666
1688
|
accessRestriction: z.ZodEnum<{
|
|
1667
1689
|
none: "none";
|
|
1668
1690
|
category: "category";
|
|
@@ -1675,8 +1697,8 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1675
1697
|
eventSeriesId: z.ZodString;
|
|
1676
1698
|
pricing: z.ZodObject<{
|
|
1677
1699
|
bookingRequirement: z.ZodEnum<{
|
|
1678
|
-
required: "required";
|
|
1679
1700
|
none: "none";
|
|
1701
|
+
required: "required";
|
|
1680
1702
|
}>;
|
|
1681
1703
|
pricingStrategy: z.ZodEnum<{
|
|
1682
1704
|
single: "single";
|
|
@@ -1762,9 +1784,9 @@ export declare const publicEventsArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
1762
1784
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
1763
1785
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
1764
1786
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1765
|
-
in_person: "in_person";
|
|
1766
1787
|
both: "both";
|
|
1767
1788
|
online: "online";
|
|
1789
|
+
in_person: "in_person";
|
|
1768
1790
|
}>>>;
|
|
1769
1791
|
}, z.core.$strip>>;
|
|
1770
1792
|
}, z.core.$strip>;
|
|
@@ -5,6 +5,7 @@ import type { LocationCoordinates, PublicEventPricing, PublicEventPricingType, P
|
|
|
5
5
|
import type { Media } from '../../../../lib/media';
|
|
6
6
|
import type { RichTextDoc } from '../../../manifest/richTextSchema';
|
|
7
7
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
8
|
+
import type { BlockBookingConsent } from '../../shared/bookingConsent';
|
|
8
9
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
9
10
|
import type { WholeSeriesPricing } from '../whole-series';
|
|
10
11
|
import type { eventCalendarDefaultViewValues, eventCalendarDisplayModeValues, eventCalendarListLayoutValues } from '../../../constants/events';
|
|
@@ -151,6 +152,8 @@ export type PublicEvent = {
|
|
|
151
152
|
pricing: PublicEventPricing<PublicEventTicketType>;
|
|
152
153
|
/** Shared booking payment-terms model for appointments/events/courses. */
|
|
153
154
|
paymentTerms: BlockBookingPaymentTerms;
|
|
155
|
+
/** Consent that must be accepted before registration, when configured. */
|
|
156
|
+
consent: BlockBookingConsent | null;
|
|
154
157
|
/** Access restriction type */
|
|
155
158
|
accessRestriction: AccessRestriction;
|
|
156
159
|
/** Event category IDs when accessRestriction is 'category' */
|
|
@@ -31,15 +31,15 @@ export declare const wholeSeriesPricingOptionSchema: z.ZodObject<{
|
|
|
31
31
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
32
32
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
33
33
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
34
|
-
in_person: "in_person";
|
|
35
34
|
both: "both";
|
|
36
35
|
online: "online";
|
|
36
|
+
in_person: "in_person";
|
|
37
37
|
}>>>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export declare const wholeSeriesPricingSchema: z.ZodObject<{
|
|
40
40
|
bookingRequirement: z.ZodEnum<{
|
|
41
|
-
required: "required";
|
|
42
41
|
none: "none";
|
|
42
|
+
required: "required";
|
|
43
43
|
}>;
|
|
44
44
|
pricingStrategy: z.ZodEnum<{
|
|
45
45
|
single: "single";
|
|
@@ -125,9 +125,9 @@ export declare const wholeSeriesPricingSchema: z.ZodObject<{
|
|
|
125
125
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
126
126
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
127
127
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
128
|
-
in_person: "in_person";
|
|
129
128
|
both: "both";
|
|
130
129
|
online: "online";
|
|
130
|
+
in_person: "in_person";
|
|
131
131
|
}>>>;
|
|
132
132
|
}, z.core.$strip>>;
|
|
133
133
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Canonical public model for Events booked as one complete run. */
|
|
2
2
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
3
|
+
import type { BlockBookingConsent } from '../../shared/bookingConsent';
|
|
3
4
|
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
4
5
|
import type { BlockButtonRole } from '../../../constants/buttonRoles';
|
|
5
6
|
export type WholeSeriesOfferingStatus = 'active' | 'draft' | 'cancelled';
|
|
@@ -61,6 +62,8 @@ export type PublicWholeSeriesOffering = {
|
|
|
61
62
|
currency: string;
|
|
62
63
|
/** Shared booking payment-terms model for appointments and Events. */
|
|
63
64
|
paymentTerms: BlockBookingPaymentTerms;
|
|
65
|
+
/** Consent that must be accepted before registering for this run. */
|
|
66
|
+
consent: BlockBookingConsent | null;
|
|
64
67
|
/** Maximum enrollment capacity (null = unlimited) */
|
|
65
68
|
enrollmentCapacity: number | null;
|
|
66
69
|
/** Whether memberships can be used for free enrollment */
|
|
@@ -71,7 +71,7 @@ export declare const locationMapManifest: import("..").DefinedBlockManifest<{
|
|
|
71
71
|
strategy?: "default" | "columnsAuto" | "imageGalleryVariant" | undefined;
|
|
72
72
|
strategyOptions?: Record<string, unknown> | undefined;
|
|
73
73
|
}> | undefined;
|
|
74
|
-
inputType?: "number" | "
|
|
74
|
+
inputType?: "number" | "text" | "email" | "tel" | undefined;
|
|
75
75
|
min?: number | undefined;
|
|
76
76
|
max?: number | undefined;
|
|
77
77
|
step?: number | undefined;
|
|
@@ -124,8 +124,8 @@ export declare const locationMapManifest: import("..").DefinedBlockManifest<{
|
|
|
124
124
|
iconPickerPreset?: "cta" | "feature" | undefined;
|
|
125
125
|
contentTypeField?: string | undefined;
|
|
126
126
|
fixedContentType?: string | undefined;
|
|
127
|
-
valueFrom?: "id" | "
|
|
128
|
-
siteOptionSource?: "
|
|
127
|
+
valueFrom?: "id" | "identifier" | "slug" | undefined;
|
|
128
|
+
siteOptionSource?: "eventCategories" | "venues" | "staffMembers" | undefined;
|
|
129
129
|
searchThreshold?: number | undefined;
|
|
130
130
|
renderInHeader?: boolean | undefined;
|
|
131
131
|
intent?: "style" | "display" | "content" | "behavior" | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const locationMapManifest: import("..").DefinedBlockManifest<{
|
|
|
135
135
|
kind: "static";
|
|
136
136
|
} | {
|
|
137
137
|
kind: "site";
|
|
138
|
-
optionSource: "
|
|
138
|
+
optionSource: "eventCategories" | "venues" | "staffMembers";
|
|
139
139
|
} | {
|
|
140
140
|
kind: "sdk";
|
|
141
141
|
} | undefined;
|