@riverbankcms/sdk 0.139.0 → 0.141.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/README.md +1 -1
- package/dist/{PreviewEditorSidebar-BDeenhi3.mjs → PreviewEditorSidebar-Q-fy9GYw.mjs} +4 -4
- package/dist/{PreviewEditorUI-DSRhgjF5.mjs → PreviewEditorUI-LYGzgk85.mjs} +3 -3
- package/dist/{PreviewQueryProvider-D2K8GLUG.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CL7wSnYu.mjs → SdkPreviewModeRuntime-CoPYI5Jq.mjs} +90 -50
- package/dist/{SiteChromeCustomizeContext-BhDn-5ir.mjs → SiteChromeCustomizeContext-D8LePX8x.mjs} +2731 -1303
- package/dist/_dts/ai/src/contracts/proposals.d.ts +165 -165
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +212 -212
- package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
- package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
- package/dist/_dts/api/src/authSubmission.d.ts +46 -0
- package/dist/_dts/api/src/billing.d.ts +8 -4
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
- package/dist/_dts/api/src/blocks.d.ts +2 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
- package/dist/_dts/api/src/communications.d.ts +0 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +17 -31
- package/dist/_dts/api/src/domainConnection.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +93 -64
- package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +25 -0
- package/dist/_dts/api/src/footerSettings.d.ts +9 -6
- package/dist/_dts/api/src/index.d.ts +6 -7
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -0
- package/dist/_dts/api/src/mailingListIntegration.d.ts +8 -2
- package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardSiteNav.d.ts +2 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +32 -32
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +3 -29
- package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
- package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -22
- package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +44 -44
- package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +10 -29
- package/dist/_dts/api/src/siteOnboarding.d.ts +9 -9
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -4
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +20 -7
- package/dist/_dts/api/src/types.d.ts +77 -77
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/billing/src/plans/types.d.ts +3 -0
- package/dist/_dts/billing/src/site-arrangements.d.ts +23 -3
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +20 -4
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +7 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
- package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +122 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/eventSelection.d.ts +11 -0
- 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/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +7 -1
- package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +27 -1
- package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +42 -186
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -93
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +48 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.state.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useDiscountCodeUi.state.d.ts +10 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +14 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.d.ts +37 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +4 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +11 -101
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +12 -0
- package/dist/_dts/commerce/src/purchase/bookingInstalmentSchedule.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +27 -4
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
- package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -0
- package/dist/_dts/core/src/branded.d.ts +0 -8
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +14 -1
- package/dist/_dts/core/src/mailing-list-submission.d.ts +7 -27
- package/dist/_dts/core/src/participants.d.ts +2 -29
- package/dist/_dts/core/src/public-experience.d.ts +4 -0
- package/dist/_dts/core/src/public-profile.d.ts +27 -1
- package/dist/_dts/core/src/site-route-target.d.ts +9 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +296 -606
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +3 -2
- package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +27 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +14 -20
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +17 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +17 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +16 -0
- package/dist/_dts/theme-core/src/buttons/generateButtonCss.d.ts +0 -6
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +4 -4
- package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
- package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +54 -12
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
- package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
- package/dist/_dts/theme-core/src/schema.d.ts +84 -84
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
- package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
- package/dist/_dts/ui/src/pending-button.d.ts +10 -0
- package/dist/client/{BookingConsentAgreement-CZvTDtsK.mjs → BookingConsentAgreement-xJeYNdnb.mjs} +4 -4
- package/dist/client/{DiscountCodeDisclosure-D-DsLCMU.mjs → DiscountCodeDisclosure-DdT6uzl9.mjs} +1 -1
- package/dist/client/{EventCombined.client-dWqgd5ZO.mjs → EventCombined.client-Cp28uYuM.mjs} +12 -16
- package/dist/client/{EventListing.client-BMRa9IYp.mjs → EventListing.client-CD6AJsMr.mjs} +4 -17
- package/dist/client/{LeafletStaticMap-D21W9kBZ.mjs → LeafletStaticMap-DBsAi9-e.mjs} +1 -1
- package/dist/client/{accordion-FxF_ta47.mjs → accordion-6dwbOKYR.mjs} +1 -1
- package/dist/client/{bookingForm-YnwW4TGw.mjs → bookingForm-CZE9_qPQ.mjs} +7 -7
- package/dist/client/bookings.mjs +500 -233
- package/dist/client/{carousel-vng7fFT5.mjs → carousel-7VHGQARz.mjs} +2 -2
- package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
- package/dist/client/{cart-DEPDsjNk.mjs → cart-Qg_mvQhh.mjs} +3 -3
- package/dist/client/{checkout-CZRWu9rW.mjs → checkout-D84rpgdr.mjs} +3 -3
- package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
- package/dist/client/client.mjs +2315 -1017
- package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
- package/dist/client/{context-DvU_WUmd.mjs → context-Ctp3T0Wr.mjs} +6 -19
- package/dist/client/{dates-wnPMiRl5.mjs → dates-DJKFcI_N.mjs} +2 -2
- package/dist/client/{eventCalendar-BA3Q5L15.mjs → eventCalendar-CK31z3vs.mjs} +12 -8
- package/dist/client/{eventCombined-51wgR-1R.mjs → eventCombined-DiXd-ewn.mjs} +3 -3
- package/dist/client/{eventDetails-modaetpm.mjs → eventDetails-CTRgt2DK.mjs} +4 -4
- package/dist/client/{eventListing-D8t2J3Kv.mjs → eventListing-Dy9vi_j_.mjs} +3 -3
- package/dist/client/{eventRegistration-CYqtkCE_.mjs → eventRegistration-CnalYMr2.mjs} +618 -177
- package/dist/client/{form-CBKXN5In.mjs → form-eUiMveTT.mjs} +3 -3
- package/dist/client/{headerSection-DylDqNrs.mjs → headerSection-Dy9kQpB1.mjs} +2 -2
- package/dist/client/hooks.mjs +692 -212
- package/dist/client/{locationMap-CvWrG0vZ.mjs → locationMap-DalCmWU0.mjs} +3 -3
- package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
- package/dist/client/{newsletterForm-Btwk70zw.mjs → newsletterForm-SDDPvhS0.mjs} +150 -94
- package/dist/client/{pricing-Uzw-GQ6Y.mjs → pricing-OcMz4SnX.mjs} +1 -1
- package/dist/client/{productDetail-JLcUYKnd.mjs → productDetail-BQrgHElM.mjs} +3 -3
- package/dist/client/{productList-FM0cbUzj.mjs → productList-OnPn_UJj.mjs} +3 -3
- package/dist/client/{propsDecoder-DYzafZb2.mjs → propsDecoder-zBdsnS-N.mjs} +168 -32
- package/dist/client/rendering/client.mjs +1355 -519
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2294 -953
- package/dist/client/{scrollToBlock-CvXszexS.mjs → scrollToBlock-BNM4Ob2Y.mjs} +28 -11
- package/dist/client/{shop-BIcjvy5a.mjs → shop-Bv1fPTwQ.mjs} +6 -6
- package/dist/client/{shop-commerce-BZQsy7xw.mjs → shop-commerce-D4KNGaW8.mjs} +7 -7
- package/dist/client/{shop-commerce-store-D5V7XAb5.mjs → shop-commerce-store-2N5EV0Rc.mjs} +1 -1
- package/dist/client/{shopShared-DowkXevB.mjs → shopShared-DvJGdHTV.mjs} +4 -4
- package/dist/client/{useEventFilters-oMoTw_JE.mjs → useEventFilters-BBBvGDHQ.mjs} +19 -13
- package/dist/preview-next/before-render.mjs +119 -64
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-chrome.css +4 -8
- package/dist/preview-next/keepAlive.mjs +119 -64
- package/dist/preview-next/middleware.mjs +119 -64
- package/dist/{previewAuthStore-COUyAKaX.mjs → previewAuthStore-Gjb6r6vz.mjs} +119 -64
- package/dist/{sdk-runtime-D4k2LSGF.mjs → sdk-runtime-Defnbfzw.mjs} +2 -2
- package/dist/{separator-UGtpag4Z.mjs → separator-CZXO3Sb0.mjs} +1 -1
- package/dist/server/components.mjs +1170 -384
- package/dist/server/config-validation.mjs +560 -105
- package/dist/server/config.mjs +564 -109
- package/dist/server/data.mjs +688 -212
- package/dist/server/index.mjs +126 -66
- package/dist/server/next.mjs +1429 -662
- package/dist/server/page-converter.mjs +372 -99
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1624 -817
- package/dist/server/rendering.mjs +1200 -391
- package/dist/server/routing.mjs +767 -247
- package/dist/server/server.mjs +715 -276
- package/dist/server/theme-bridge.mjs +475 -110
- package/dist/server/theme.mjs +9 -3
- package/dist/styles/index.css +265 -45
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asking for the register confirmation email again.
|
|
3
|
+
*
|
|
4
|
+
* The request carries nothing but the attempt token in its path. The address
|
|
5
|
+
* is resolved server-side from the account that claimed the attempt, which
|
|
6
|
+
* registration does before the confirmation screen is ever shown.
|
|
7
|
+
*
|
|
8
|
+
* That is a security property, not a convenience: a caller-supplied address
|
|
9
|
+
* would be handed to Supabase's admin link generation, which creates a user
|
|
10
|
+
* when none exists. Anyone holding an attempt token could then mint accounts
|
|
11
|
+
* for addresses they do not own and have branded mail sent to them.
|
|
12
|
+
*/
|
|
13
|
+
export type PublicOnboardingAttemptConfirmationResendRequest = Record<string, never>;
|
|
14
|
+
/**
|
|
15
|
+
* The answer is deliberately the same whether or not an email went out: a
|
|
16
|
+
* confirmed account, a missing user and a successful send all read as `sent`.
|
|
17
|
+
* This endpoint needs no credentials, so saying which is which would make it
|
|
18
|
+
* an oracle. `retryAfterSeconds` is the cool-down before another resend is
|
|
19
|
+
* worth asking for, returned on the happy path so the screen can hold the
|
|
20
|
+
* button without having to be refused first.
|
|
21
|
+
*/
|
|
22
|
+
export type PublicOnboardingAttemptConfirmationResendResponse = {
|
|
23
|
+
result: 'sent';
|
|
24
|
+
retryAfterSeconds: number;
|
|
25
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LogoFacts } from
|
|
2
|
-
import type { BillingPlanId } from
|
|
3
|
-
import type { SiteVerticalBookingConfig } from
|
|
1
|
+
import type { LogoFacts } from '../../../theme-core/src/site-styles/index';
|
|
2
|
+
import type { BillingPlanId } from '../../../billing/src/plans/types';
|
|
3
|
+
import type { PublicExperience, SiteVerticalBookingConfig } from '../../../core/src/index';
|
|
4
4
|
/**
|
|
5
5
|
* Macadamia public-onboarding surface data.
|
|
6
6
|
*
|
|
@@ -12,14 +12,14 @@ import type { SiteVerticalBookingConfig } from "../../../core/src/index";
|
|
|
12
12
|
* Note: Do NOT use these API types as validation schemas. They document wire
|
|
13
13
|
* contracts while the owning services validate and normalize inputs.
|
|
14
14
|
*/
|
|
15
|
-
export type MacadamiaOnboardingSiteMode =
|
|
15
|
+
export type MacadamiaOnboardingSiteMode = 'single_page' | 'fuller_starter';
|
|
16
16
|
export type MacadamiaOnboardingMappedPalette = {
|
|
17
|
-
palette: Record<
|
|
18
|
-
mode:
|
|
17
|
+
palette: Record<'primary' | 'secondary' | 'accent' | 'background' | 'surface' | 'text', string>;
|
|
18
|
+
mode: 'light' | 'dark';
|
|
19
19
|
};
|
|
20
20
|
export type MacadamiaOnboardingLogoPaletteRecommendation = {
|
|
21
21
|
title: string;
|
|
22
|
-
palette: MacadamiaOnboardingMappedPalette[
|
|
22
|
+
palette: MacadamiaOnboardingMappedPalette['palette'];
|
|
23
23
|
};
|
|
24
24
|
export type MacadamiaOnboardingLogoAnalysis = {
|
|
25
25
|
logoFacts: LogoFacts;
|
|
@@ -37,14 +37,14 @@ export type MacadamiaOnboardingVisualIdentity = {
|
|
|
37
37
|
selectedPaletteKey: string | null;
|
|
38
38
|
inspirationUrls: string[];
|
|
39
39
|
};
|
|
40
|
-
export type PublicOnboardingSurfaceId =
|
|
41
|
-
export type MacadamiaOnboardingTeamMode =
|
|
42
|
-
export type MacadamiaOnboardingOfferingKind =
|
|
43
|
-
export type MacadamiaOnboardingStyleMood =
|
|
44
|
-
export type MacadamiaOnboardingFirstOfferingKind =
|
|
45
|
-
export type MacadamiaOnboardingFirstOfferingDeliveryMode =
|
|
46
|
-
export type MacadamiaOnboardingFirstOfferingScheduleMode =
|
|
47
|
-
export type MacadamiaOnboardingWeekday =
|
|
40
|
+
export type PublicOnboardingSurfaceId = 'macadamia';
|
|
41
|
+
export type MacadamiaOnboardingTeamMode = 'solo' | 'team';
|
|
42
|
+
export type MacadamiaOnboardingOfferingKind = 'classes' | 'courses' | 'workshops' | 'retreats' | 'performances' | 'private_sessions';
|
|
43
|
+
export type MacadamiaOnboardingStyleMood = 'calm_grounding' | 'warm_welcoming' | 'modern_polished' | 'natural_earthy' | 'bright_uplifting' | 'luxury_retreat';
|
|
44
|
+
export type MacadamiaOnboardingFirstOfferingKind = 'class' | 'course' | 'workshop' | 'retreat' | 'performance' | 'private_session';
|
|
45
|
+
export type MacadamiaOnboardingFirstOfferingDeliveryMode = 'in_person' | 'online' | 'both';
|
|
46
|
+
export type MacadamiaOnboardingFirstOfferingScheduleMode = 'weekly' | 'one_off';
|
|
47
|
+
export type MacadamiaOnboardingWeekday = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
48
48
|
export type MacadamiaOnboardingEventSession = {
|
|
49
49
|
clientId: string;
|
|
50
50
|
startDate: string;
|
|
@@ -54,7 +54,7 @@ export type MacadamiaOnboardingEventSession = {
|
|
|
54
54
|
isMultiDay: boolean;
|
|
55
55
|
};
|
|
56
56
|
export type MacadamiaOnboardingFirstOffering = {
|
|
57
|
-
kind:
|
|
57
|
+
kind: 'class';
|
|
58
58
|
title: string;
|
|
59
59
|
description: string | null;
|
|
60
60
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
|
|
@@ -63,21 +63,21 @@ export type MacadamiaOnboardingFirstOffering = {
|
|
|
63
63
|
recurrenceRule: string;
|
|
64
64
|
startTime: string;
|
|
65
65
|
durationMinutes: number;
|
|
66
|
-
priceType:
|
|
66
|
+
priceType: 'free' | 'paid';
|
|
67
67
|
priceAmount: number | null;
|
|
68
68
|
capacity: number | null;
|
|
69
69
|
} | {
|
|
70
|
-
kind:
|
|
70
|
+
kind: 'course';
|
|
71
71
|
title: string;
|
|
72
72
|
description: string | null;
|
|
73
73
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
|
|
74
74
|
location: string | null;
|
|
75
|
-
priceType:
|
|
75
|
+
priceType: 'free' | 'paid';
|
|
76
76
|
priceAmount: number | null;
|
|
77
77
|
capacity: number | null;
|
|
78
78
|
sessions: MacadamiaOnboardingEventSession[];
|
|
79
79
|
} | {
|
|
80
|
-
kind:
|
|
80
|
+
kind: 'workshop' | 'retreat' | 'performance';
|
|
81
81
|
title: string;
|
|
82
82
|
description: string | null;
|
|
83
83
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
|
|
@@ -86,21 +86,21 @@ export type MacadamiaOnboardingFirstOffering = {
|
|
|
86
86
|
startDate: string;
|
|
87
87
|
startTime: string;
|
|
88
88
|
durationMinutes: number;
|
|
89
|
-
priceType:
|
|
89
|
+
priceType: 'free' | 'paid';
|
|
90
90
|
priceAmount: number | null;
|
|
91
91
|
capacity: number | null;
|
|
92
92
|
} | {
|
|
93
|
-
kind:
|
|
93
|
+
kind: 'private_session';
|
|
94
94
|
title: string;
|
|
95
95
|
description: string | null;
|
|
96
96
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
|
|
97
97
|
location: string | null;
|
|
98
98
|
durationMinutes: number;
|
|
99
|
-
priceType:
|
|
99
|
+
priceType: 'free' | 'paid';
|
|
100
100
|
priceAmount: number | null;
|
|
101
101
|
};
|
|
102
102
|
export type MacadamiaOnboardingDraftFirstOffering = {
|
|
103
|
-
kind:
|
|
103
|
+
kind: 'class';
|
|
104
104
|
title: string;
|
|
105
105
|
description: string | null;
|
|
106
106
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
|
|
@@ -109,21 +109,21 @@ export type MacadamiaOnboardingDraftFirstOffering = {
|
|
|
109
109
|
recurrenceRule: string | null;
|
|
110
110
|
startTime: string | null;
|
|
111
111
|
durationMinutes: number | null;
|
|
112
|
-
priceType:
|
|
112
|
+
priceType: 'free' | 'paid' | null;
|
|
113
113
|
priceAmount: number | null;
|
|
114
114
|
capacity: number | null;
|
|
115
115
|
} | {
|
|
116
|
-
kind:
|
|
116
|
+
kind: 'course';
|
|
117
117
|
title: string;
|
|
118
118
|
description: string | null;
|
|
119
119
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
|
|
120
120
|
location: string | null;
|
|
121
|
-
priceType:
|
|
121
|
+
priceType: 'free' | 'paid' | null;
|
|
122
122
|
priceAmount: number | null;
|
|
123
123
|
capacity: number | null;
|
|
124
124
|
sessions: MacadamiaOnboardingEventSession[];
|
|
125
125
|
} | {
|
|
126
|
-
kind:
|
|
126
|
+
kind: 'workshop' | 'retreat' | 'performance';
|
|
127
127
|
title: string;
|
|
128
128
|
description: string | null;
|
|
129
129
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
|
|
@@ -132,17 +132,17 @@ export type MacadamiaOnboardingDraftFirstOffering = {
|
|
|
132
132
|
startDate: string | null;
|
|
133
133
|
startTime: string | null;
|
|
134
134
|
durationMinutes: number | null;
|
|
135
|
-
priceType:
|
|
135
|
+
priceType: 'free' | 'paid' | null;
|
|
136
136
|
priceAmount: number | null;
|
|
137
137
|
capacity: number | null;
|
|
138
138
|
} | {
|
|
139
|
-
kind:
|
|
139
|
+
kind: 'private_session';
|
|
140
140
|
title: string;
|
|
141
141
|
description: string | null;
|
|
142
142
|
deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
|
|
143
143
|
location: string | null;
|
|
144
144
|
durationMinutes: number | null;
|
|
145
|
-
priceType:
|
|
145
|
+
priceType: 'free' | 'paid' | null;
|
|
146
146
|
priceAmount: number | null;
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
@@ -156,7 +156,7 @@ export type MacadamiaOnboardingDraftFirstOffering = {
|
|
|
156
156
|
* wizard (read as `website`), explicit `null` means the person has not chosen
|
|
157
157
|
* yet, and a value is the chosen mode.
|
|
158
158
|
*/
|
|
159
|
-
export type MacadamiaOnboardingPublicExperience =
|
|
159
|
+
export type MacadamiaOnboardingPublicExperience = PublicExperience;
|
|
160
160
|
/** Plan the person arrived with from pricing. Stored only; no billing action. */
|
|
161
161
|
export type MacadamiaOnboardingPlanPreference = BillingPlanId;
|
|
162
162
|
export type MacadamiaOnboardingSurfaceData = {
|
|
@@ -26,6 +26,14 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
|
|
|
26
26
|
auth: "public";
|
|
27
27
|
responseKind: "json";
|
|
28
28
|
};
|
|
29
|
+
getPublicBookingServiceBySlug: {
|
|
30
|
+
path: "/public/bookings/services/by-slug/{slug}";
|
|
31
|
+
method: "GET";
|
|
32
|
+
revalidate: number;
|
|
33
|
+
tags: "riverbank:site:{siteId}:public-booking-services"[];
|
|
34
|
+
auth: "public";
|
|
35
|
+
responseKind: "json";
|
|
36
|
+
};
|
|
29
37
|
getPublicBookingResourcesReference: {
|
|
30
38
|
path: "/public/bookings/resources/reference";
|
|
31
39
|
method: "GET";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Merged into `PublicExperienceAPIEndpoints` by `../publicExperienceEndpoints`.
|
|
5
5
|
*/
|
|
6
|
-
import type { APIEndpoint } from '../apiEndpointTypes';
|
|
7
6
|
import type { EventRegistrationOptionsRequest, EventRegistrationOptionsResponse } from '../../../blocks/src/system/blocks/event-registration';
|
|
8
7
|
import type { PublicWaitlistClaimResponse } from '../../../commerce/src/index';
|
|
8
|
+
import type { APIEndpoint } from '../apiEndpointTypes';
|
|
9
9
|
import type { DirectCheckoutCollectionOptionKind, EventAttendanceMode } from '../bookingConfig';
|
|
10
10
|
import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, PublicEventLoaderParams } from './sharedTypes';
|
|
11
11
|
/**
|
|
@@ -15,9 +15,9 @@ import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, Publi
|
|
|
15
15
|
* constituent shape) and surfaced here as the wire contract. Nothing restates
|
|
16
16
|
* it: the dashboard projection and every block consumer import these names.
|
|
17
17
|
*/
|
|
18
|
-
export type { PublicEvent, PublicEventBase, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility,
|
|
18
|
+
export type { PublicEvent, PublicEventBase, PublicRunSession, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility, } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
19
|
+
import type { CalendarWindowPage, CalendarWindowRequest } from '../../../blocks/src/contracts/index';
|
|
19
20
|
import type { PublicEvent } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
20
|
-
import type { CalendarWindowRequest, CalendarWindowPage } from '../../../blocks/src/contracts/index';
|
|
21
21
|
export type PublicEventAPIEndpoints = {
|
|
22
22
|
listPublicEventCalendarWindow: APIEndpoint<never, {
|
|
23
23
|
siteId: string;
|
|
@@ -118,6 +118,7 @@ export type PublicEventAPIEndpoints = {
|
|
|
118
118
|
customerMembershipId?: string;
|
|
119
119
|
bundleProductId?: string;
|
|
120
120
|
claimToken?: string;
|
|
121
|
+
waitlistEntryId?: string;
|
|
121
122
|
guests?: Array<{
|
|
122
123
|
name: string;
|
|
123
124
|
email?: string | null;
|
|
@@ -169,6 +170,7 @@ export type PublicEventAPIEndpoints = {
|
|
|
169
170
|
kind: 'occurrence';
|
|
170
171
|
attendeeId: string;
|
|
171
172
|
};
|
|
173
|
+
registrationCommandId?: string;
|
|
172
174
|
checkoutType?: 'event' | 'pass_bundle' | 'membership_bundle';
|
|
173
175
|
productId?: string;
|
|
174
176
|
discountCode?: string;
|
|
@@ -195,6 +197,7 @@ export type PublicEventAPIEndpoints = {
|
|
|
195
197
|
phone?: string | null;
|
|
196
198
|
}>;
|
|
197
199
|
claimToken?: string;
|
|
200
|
+
waitlistEntryId?: string;
|
|
198
201
|
discountCode?: string;
|
|
199
202
|
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
200
203
|
checkoutAttemptId: string;
|
|
@@ -211,6 +214,7 @@ export type PublicEventAPIEndpoints = {
|
|
|
211
214
|
} | {
|
|
212
215
|
scope: 'wholeSeries';
|
|
213
216
|
registrationId: string;
|
|
217
|
+
checkoutAttemptId: string;
|
|
214
218
|
checkoutUrl: string | null;
|
|
215
219
|
sessionId: string | null;
|
|
216
220
|
bypassed: boolean;
|
|
@@ -269,6 +273,10 @@ export type PublicEventAPIEndpoints = {
|
|
|
269
273
|
}, string>;
|
|
270
274
|
resolveWaitlistClaim: APIEndpoint<{
|
|
271
275
|
claimToken: string;
|
|
276
|
+
waitlistEntryId?: never;
|
|
277
|
+
} | {
|
|
278
|
+
waitlistEntryId: string;
|
|
279
|
+
claimToken?: never;
|
|
272
280
|
}, {
|
|
273
281
|
siteId: string;
|
|
274
282
|
}, PublicWaitlistClaimResponse>;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { AutoAppliedDiscountPreview } from '../bookingRecords';
|
|
7
7
|
import type { MailingListSignupSourceRef, MailingListVisitorSelection } from '../../../core/src/index';
|
|
8
|
+
import type { PublicEventLoaderParams } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
8
9
|
export type { MailingListSignupSourceRef } from '../../../core/src/index';
|
|
9
10
|
export declare const PUBLIC_EVENT_TICKET_SELECTION_CONTRACT_VERSION: "public-event-ticket-selection.v2";
|
|
10
11
|
export type EventTicketSelectionRequest = {
|
|
@@ -21,35 +22,8 @@ export type EventTicketLineSummaryResponse = {
|
|
|
21
22
|
currency: string;
|
|
22
23
|
};
|
|
23
24
|
export type { PublicEventPriceDisplay, PublicEventPricing, } from '../../../core/src/index';
|
|
24
|
-
/** Query parameters accepted by the public
|
|
25
|
-
export type PublicEventLoaderParams
|
|
26
|
-
limit?: string;
|
|
27
|
-
from?: string;
|
|
28
|
-
to?: string;
|
|
29
|
-
afterStartsAt?: string;
|
|
30
|
-
afterId?: string;
|
|
31
|
-
categoryIds?: string;
|
|
32
|
-
venueId?: string;
|
|
33
|
-
staffMemberId?: string;
|
|
34
|
-
eventSurface?: string;
|
|
35
|
-
eventPresets?: string;
|
|
36
|
-
scheduleScope?: string;
|
|
37
|
-
seriesId?: string;
|
|
38
|
-
seriesIds?: string;
|
|
39
|
-
runSeriesId?: string;
|
|
40
|
-
seriesSlug?: string;
|
|
41
|
-
includeOccurrenceId?: string;
|
|
42
|
-
/**
|
|
43
|
-
* What the read is asking for: `'occurrences'` (default) for a page of dates,
|
|
44
|
-
* `'runs'` for one row per whole-series run regardless of date, or
|
|
45
|
-
* `'catalogue'` for one representative occurrence per series. Catalogue
|
|
46
|
-
* reads are complete when `limit` is omitted; cursors and explicit limits
|
|
47
|
-
* apply after representative selection.
|
|
48
|
-
*/
|
|
49
|
-
readIntent?: string;
|
|
50
|
-
detailLevel?: string;
|
|
51
|
-
readProfile?: string;
|
|
52
|
-
};
|
|
25
|
+
/** Query parameters accepted by the public Event list loaders. */
|
|
26
|
+
export type { PublicEventLoaderParams } from '../../../blocks/src/system/blocks/events/shared/types';
|
|
53
27
|
export type NewsletterSubscribeBody = {
|
|
54
28
|
email: string;
|
|
55
29
|
firstName?: string | null;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The anonymous onboarding attempt, addressed by its opaque resume token.
|
|
3
|
+
*
|
|
4
|
+
* Every route here is reached before there is an account, so none of them can
|
|
5
|
+
* be scoped to a site or a user: the token is the whole credential. They are
|
|
6
|
+
* kept together so that stays obvious.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS: {
|
|
9
|
+
createPublicOnboardingAttempt: {
|
|
10
|
+
path: "/public/onboarding/attempts";
|
|
11
|
+
method: "POST";
|
|
12
|
+
auth: "public";
|
|
13
|
+
errors: never[];
|
|
14
|
+
responseKind: "json";
|
|
15
|
+
};
|
|
16
|
+
createPublicOnboardingLogoUploadUrl: {
|
|
17
|
+
path: "/public/onboarding/attempts/{attemptToken}/logo-upload-url";
|
|
18
|
+
method: "POST";
|
|
19
|
+
auth: "public";
|
|
20
|
+
errors: never[];
|
|
21
|
+
responseKind: "json";
|
|
22
|
+
};
|
|
23
|
+
uploadPublicOnboardingLogo: {
|
|
24
|
+
path: "/public/onboarding/attempts/{attemptToken}/logo";
|
|
25
|
+
method: "POST";
|
|
26
|
+
auth: "public";
|
|
27
|
+
errors: never[];
|
|
28
|
+
responseKind: "json";
|
|
29
|
+
};
|
|
30
|
+
getPublicOnboardingAttempt: {
|
|
31
|
+
path: "/public/onboarding/attempts/{attemptToken}";
|
|
32
|
+
method: "GET";
|
|
33
|
+
auth: "public";
|
|
34
|
+
errors: never[];
|
|
35
|
+
responseKind: "json";
|
|
36
|
+
};
|
|
37
|
+
getPublicOnboardingAttemptProgress: {
|
|
38
|
+
path: "/public/onboarding/attempts/{attemptToken}/status";
|
|
39
|
+
method: "GET";
|
|
40
|
+
auth: "public";
|
|
41
|
+
errors: never[];
|
|
42
|
+
responseKind: "json";
|
|
43
|
+
};
|
|
44
|
+
updatePublicOnboardingAttempt: {
|
|
45
|
+
path: "/public/onboarding/attempts/{attemptToken}";
|
|
46
|
+
method: "PATCH";
|
|
47
|
+
auth: "public";
|
|
48
|
+
errors: never[];
|
|
49
|
+
responseKind: "json";
|
|
50
|
+
};
|
|
51
|
+
runPublicOnboardingAttempt: {
|
|
52
|
+
path: "/public/onboarding/attempts/{attemptToken}/run";
|
|
53
|
+
method: "POST";
|
|
54
|
+
auth: "public";
|
|
55
|
+
errors: never[];
|
|
56
|
+
responseKind: "json";
|
|
57
|
+
};
|
|
58
|
+
resendPublicOnboardingAttemptConfirmation: {
|
|
59
|
+
path: "/public/onboarding/attempts/{attemptToken}/resend-confirmation";
|
|
60
|
+
method: "POST";
|
|
61
|
+
auth: "public";
|
|
62
|
+
errors: never[];
|
|
63
|
+
responseKind: "json";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Endpoints whose success status does not mean the write happened.
|
|
3
|
+
*
|
|
4
|
+
* A revision-guarded write answers a lost race with 200 and a response that
|
|
5
|
+
* says so, because the client needs the authoritative document back in order
|
|
6
|
+
* to recover. That is a sound contract, but it means HTTP status is no longer
|
|
7
|
+
* the whole story: save plumbing that reads 2xx as "saved" will tell someone
|
|
8
|
+
* their changes are stored when they were rejected.
|
|
9
|
+
*
|
|
10
|
+
* Listing an endpoint here makes that impossible to overlook. Save helpers
|
|
11
|
+
* require callers of these endpoints to say how to read the outcome, and
|
|
12
|
+
* forbid the question everywhere else, so the answer cannot drift away from
|
|
13
|
+
* the contract.
|
|
14
|
+
*
|
|
15
|
+
* Add an endpoint here in the same change that gives its response a
|
|
16
|
+
* non-writing variant.
|
|
17
|
+
*/
|
|
18
|
+
export type SaveOutcomeBearingEndpoint = 'updatePublicProfile' | 'updateFooterComposition';
|
|
19
|
+
/** Whether a completed request actually wrote what the caller sent. */
|
|
20
|
+
export type SaveOutcome = 'saved' | 'not-saved';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, Theme } from '../../blocks/src/index';
|
|
2
2
|
import type { ContentTypeSchema } from '../../content-model/src/index';
|
|
3
|
-
import type { FooterCompositionV1, RichTextDoc } from '../../core/src/index';
|
|
3
|
+
import type { EventPreset, FooterCompositionV1, RichTextDoc } from '../../core/src/index';
|
|
4
4
|
export type { SdkBlockAppearanceChoice, SdkBlockAppearanceOutcome, } from './sdkBlockUpsertContracts';
|
|
5
5
|
import type { LinkPayload } from './navigation/types';
|
|
6
6
|
import type { JsonValue } from './shared-contracts';
|
|
@@ -9,7 +9,6 @@ import type { ManagementMediaAsset } from './sdkMediaContracts';
|
|
|
9
9
|
export type { ManagementMediaAsset, SdkMediaDeleteApplyResponse, SdkMediaDeletePreviewResponse, SdkMediaDownloadResponse, SdkMediaListResponse, } from './sdkMediaContracts';
|
|
10
10
|
import type { SdkPullEventOccurrence } from './sdk-event-schedule';
|
|
11
11
|
import type { SiteCommandApplicationResult } from '@riverbankcms/site-commands';
|
|
12
|
-
import type { EventPreset } from '../../core/src/index';
|
|
13
12
|
import type { SdkThemeWire } from './sdkThemeWire';
|
|
14
13
|
import type { SdkCatalogButtonStyleControl } from './sdkThemeCatalogContracts';
|
|
15
14
|
export type { SdkCatalogButtonRole, SdkCatalogButtonStyleControl, } from './sdkThemeCatalogContracts';
|
|
@@ -201,11 +200,7 @@ export interface RiverbankSiteConfigInput extends Omit<RiverbankSiteConfig, 'cus
|
|
|
201
200
|
customBlocks?: SdkCustomBlockInput[];
|
|
202
201
|
blockFieldExtensions?: SdkBlockFieldExtensionsInputMap;
|
|
203
202
|
}
|
|
204
|
-
export type PushSdkConfigRequest
|
|
205
|
-
config: RiverbankSiteConfigInput;
|
|
206
|
-
forceContentTypes?: boolean;
|
|
207
|
-
mode?: 'apply' | 'preview';
|
|
208
|
-
};
|
|
203
|
+
export type { PushSdkConfigRequest } from './sdkPushContracts';
|
|
209
204
|
export type SyncCollectionResult = {
|
|
210
205
|
created: number;
|
|
211
206
|
updated: number;
|
|
@@ -243,21 +238,7 @@ export type SdkConfigSyncResult = {
|
|
|
243
238
|
footerBlocks: SyncFooterBlocksResult;
|
|
244
239
|
ignoredDocumentSections: IgnoredDocumentSyncSection[];
|
|
245
240
|
};
|
|
246
|
-
export type PushSdkConfigResponse
|
|
247
|
-
success: true;
|
|
248
|
-
mode: 'apply' | 'preview';
|
|
249
|
-
message: string;
|
|
250
|
-
/**
|
|
251
|
-
* Legacy all-content-shaped sync payload retained for published CLIs that
|
|
252
|
-
* still read document sync buckets such as `sync.pages.errors`.
|
|
253
|
-
*/
|
|
254
|
-
sync: SdkContentSyncResult | null;
|
|
255
|
-
/**
|
|
256
|
-
* Schema/config-only push-config result. New clients should prefer this over
|
|
257
|
-
* `sync` so document sections stay unrepresentable in the active contract.
|
|
258
|
-
*/
|
|
259
|
-
configSync: SdkConfigSyncResult | null;
|
|
260
|
-
};
|
|
241
|
+
export type { PushSdkConfigResponse } from './sdkPushContracts';
|
|
261
242
|
export interface SdkBackfillPageResult {
|
|
262
243
|
pagesUpdated: number;
|
|
263
244
|
identifiersAssigned: Record<string, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MailingListProviderScope } from '../../core/src/index';
|
|
2
|
+
import type { RiverbankSiteConfigInput, SdkConfigSyncResult, SdkContentSyncResult } from './sdkContracts';
|
|
3
|
+
export type PushSdkConfigRequest = {
|
|
4
|
+
config: RiverbankSiteConfigInput;
|
|
5
|
+
forceContentTypes?: boolean;
|
|
6
|
+
mode?: 'apply' | 'preview';
|
|
7
|
+
expectedMailingListProviderScope?: MailingListProviderScope;
|
|
8
|
+
};
|
|
9
|
+
export type PushSdkConfigResponse = {
|
|
10
|
+
success: true;
|
|
11
|
+
mode: 'apply' | 'preview';
|
|
12
|
+
message: string;
|
|
13
|
+
/** Legacy document-sync result read by already-published CLI versions. */
|
|
14
|
+
sync: SdkContentSyncResult | null;
|
|
15
|
+
/** Canonical schema/config-only result for current clients. */
|
|
16
|
+
configSync: SdkConfigSyncResult | null;
|
|
17
|
+
mailingListProviderScope: MailingListProviderScope | null;
|
|
18
|
+
};
|