@riverbankcms/sdk 0.85.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-4PH35ZIE.mjs → PreviewEditorSidebar-EVRS3C7T.mjs} +3 -3
- package/dist/{PreviewEditorUI-WHMCRJGM.mjs → PreviewEditorUI-54WD4IGE.mjs} +3 -3
- package/dist/SdkPreviewModeRuntime-ZALZDJEK.mjs +8 -0
- package/dist/_dts/api/src/endpoints.d.ts +58 -14
- package/dist/_dts/api/src/index.d.ts +3 -0
- 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/siteRuntimeEndpoints.d.ts +1 -13
- package/dist/_dts/api/src/types.d.ts +6 -3
- 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/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 +10 -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/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/utils.d.ts +11 -1
- 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/shared/components/ModalShell.d.ts +5 -1
- package/dist/_dts/blocks/src/system/runtime/shared/utils/formatting.d.ts +1 -1
- package/dist/_dts/content-model/src/referenceFields.d.ts +1 -1
- 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/db/src/generated/supabase/database.types.d.ts +549 -18
- package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -1
- package/dist/_dts/sdk/src/client/types.d.ts +9 -0
- 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/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-ZR2GQK2A.mjs → chunk-7KOO7RPP.mjs} +953 -315
- package/dist/{chunk-OCGTXHSO.mjs → chunk-ER4UIW4X.mjs} +7 -7
- package/dist/{chunk-WFPYN7KA.mjs → chunk-HVOBXA3Y.mjs} +2 -2
- package/dist/{chunk-NFWGLRZZ.mjs → chunk-K3JWH6HE.mjs} +37 -3
- package/dist/{chunk-4QNLOTES.mjs → chunk-O4LVYUVH.mjs} +58 -14
- package/dist/{chunk-PYDHOMEO.mjs → chunk-YDMBIIS5.mjs} +1 -1
- package/dist/cli/index.mjs +408 -109
- package/dist/client/{accordion-2UZPBMYM.mjs → accordion-PT5CGW5N.mjs} +2 -2
- package/dist/client/{bookingForm-36CWQUMV.mjs → bookingForm-2HLRTEYS.mjs} +7 -7
- package/dist/client/bookings.mjs +51 -6
- package/dist/client/{carousel-QH77HR6X.mjs → carousel-Z2LKYSWA.mjs} +3 -3
- package/dist/client/cart-ND5IK4A6.mjs +18 -0
- package/dist/client/checkout-EYUSGAY7.mjs +18 -0
- package/dist/client/{chunk-SYIJ5JO2.mjs → chunk-6DVPO44G.mjs} +1 -1
- package/dist/client/{chunk-3C2VTPWI.mjs → chunk-BAWHZ5GM.mjs} +176 -13
- package/dist/client/{chunk-52CGCQ7B.mjs → chunk-BL66UWGD.mjs} +10 -80
- package/dist/client/{chunk-VGDBVNOO.mjs → chunk-DIRW2LNG.mjs} +241 -210
- package/dist/client/{chunk-UDNSI5PY.mjs → chunk-GOFO7HRH.mjs} +1 -2
- package/dist/client/{chunk-ZKUO52W3.mjs → chunk-H4MHEXYS.mjs} +1 -1
- package/dist/client/{chunk-ZE5G642V.mjs → chunk-LI2C6M5O.mjs} +75 -1
- package/dist/client/{chunk-3DTWLTXM.mjs → chunk-MHBEWDT7.mjs} +117 -3
- package/dist/client/{chunk-4OXKTA3D.mjs → chunk-O5JNI3E4.mjs} +2 -2
- package/dist/client/{chunk-XSV6KW4D.mjs → chunk-S4G65LGR.mjs} +1 -1
- package/dist/client/{chunk-DVNUDUVT.mjs → chunk-WBQG7VJA.mjs} +4 -1
- package/dist/client/{chunk-F5VRX5Y6.mjs → chunk-WCVK4MBJ.mjs} +1 -1
- package/dist/client/{chunk-7UCLJ5SP.mjs → chunk-X7GVFB7Y.mjs} +4 -7
- package/dist/client/client.mjs +2125 -1403
- package/dist/client/{courseRegistration-TMKU6ABO.mjs → courseRegistration-H3AZBUEG.mjs} +7 -7
- package/dist/client/{eventCalendar-G6TI32X6.mjs → eventCalendar-FPKJGLGS.mjs} +10 -11
- package/dist/client/{eventCombined-SCKEMNAR.mjs → eventCombined-QCGIZBUY.mjs} +10 -11
- package/dist/client/{eventDetails-XPIFXXPK.mjs → eventDetails-HIT3BJWU.mjs} +10 -11
- package/dist/client/{eventListing-7QFMEMGT.mjs → eventListing-R4HNWJDN.mjs} +10 -11
- package/dist/client/{eventRegistration-TOODSZUI.mjs → eventRegistration-Q7BYY5HF.mjs} +10 -11
- package/dist/client/{form-MTCMVCZT.mjs → form-NI6YOG6S.mjs} +3 -3
- package/dist/client/{headerSection-Y5TMR3TW.mjs → headerSection-SDYGII36.mjs} +4 -4
- package/dist/client/hooks.mjs +1682 -1412
- package/dist/client/{locationMap-RH2LG7FZ.mjs → locationMap-BDETEUQD.mjs} +3 -4
- package/dist/client/{newsletterForm-PCAIPFMA.mjs → newsletterForm-EKYIU67X.mjs} +70 -22
- package/dist/client/{productDetail-OIGDR4YE.mjs → productDetail-5UTGNN76.mjs} +8 -9
- package/dist/client/{productList-4MA5S2CX.mjs → productList-7YA5KXZQ.mjs} +8 -9
- package/dist/client/rendering/client.mjs +753 -329
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +3786 -3034
- package/dist/client/shop-AIMUMZYC.mjs +20 -0
- package/dist/preview-next/before-render.mjs +58 -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 +58 -14
- package/dist/{sdk-runtime-QLOCYKVU.mjs → sdk-runtime-NW472WNT.mjs} +6 -6
- package/dist/server/components.mjs +1518 -1015
- package/dist/server/config-validation.mjs +1719 -1461
- package/dist/server/config.mjs +1719 -1461
- package/dist/server/data.mjs +1683 -1413
- package/dist/server/index.mjs +79 -17
- package/dist/server/next.mjs +1902 -1311
- package/dist/server/page-converter.mjs +2193 -1169
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1709 -1209
- package/dist/server/rendering.mjs +1894 -1347
- package/dist/server/routing.mjs +1872 -1499
- package/dist/server/server.mjs +1571 -1264
- package/dist/server/theme-bridge.mjs +234 -0
- package/dist/styles/index.css +232 -0
- package/package.json +1 -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-I2MMZO53.mjs +0 -6
- package/dist/client/shop-WXSYV5QO.mjs +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolvePreviewDashboardSetupHandoff, buildPreviewDashboardSetupUrl, resolvePreviewSidebarChromeModel, resolvePreviewEditorGuidanceModel, previewWidgetOverrides, canInspectSiteStyle, mapContentSchemaToFormFields, PreviewFormProvider, usePreviewBlockCustomizeSelectionOptional, BlockEditor, canApplySiteStyle, useBlockCustomizeControls, MAX_QUICK_MANIFEST_FIELDS } from './chunk-
|
|
3
|
-
import { useEntryController, useEditorUiStoreInstance, useUISelector, resolvePreviewSidebarTab, unsafeAsEditorBlockId, Tabs, TabsList, TabsTrigger, Button, X, TabsContent, useEditorUiStore, deriveRouteMetadataPresentation, resolvePageRouteSlug, createManifestValidation, createStoreBackend, ManifestForm, previewAssistantEnabled, Collapsible, CollapsibleTrigger, ChevronRight, CollapsibleContent, ContentFieldsForm, usePreviewDesignCoordinator, useSiteChromeCustomizeOptional, resolveStyleConfiguratorInitialSnapshot, createStyleConfiguratorState, isPreviewingChange, createOptimisticActionRunner, syncStyleConfiguratorState, getCuratedSiteStyle, planSiteStylePreviewChange, openRow, previewSiteStyle, applyResolvedSelections, previewButtonPersonality, previewHeaderLayout, previewHeaderStyle, planSiteChromeLookSelection, previewFooterLook, buildSiteChromeLookModels, planSiteChromeFooterLayoutSelection, previewPaletteVariant, previewTypographyPreset, setTypographyBodyFontOverride, setTypographyHeadingFontOverride, clearTypographyFontOverrides, paletteOverridesSchema, setPaletteOverrides, toggleRow, cancelPreview, dismissWarnings, dismissNotices, deriveStyleConfiguratorCapabilities, buildApplySiteStyleSelectionBody, markApplyFailed, selectionSnapshotFromApplySiteStyleSelectionResponse, styleConfiguratorHistoryEntryForPersistedSelection, markApplySaved, unwrapResponse, markApplySaving, findButtonPersonality, findPaletteVariant, findTypographyPreset, getHeaderLayout, getHeaderStyle, getFooterLayout, findFooterLook, cycleSiteChromeLookId, resolveContentTitle, foldSubroute, SUBROUTE_KINDS, Smartphone, Tablet, Monitor, Maximize2, cn, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, listEntryPageContentSlots, ContentSpinner, Callout, CalloutDescription, curatedSiteStyles, ChevronLeft, cycleableSiteChromeOptions, requireEntriesForCuratedChoices, buttonPersonalities, typographyPresets, paletteVariants, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, FormRenderer, evaluateTypographyFontSlot, Separator, Surface, ColorPicker, Input } from './chunk-
|
|
4
|
-
import { usePreviewAuth, getDashboardUrl } from './chunk-
|
|
2
|
+
import { resolvePreviewDashboardSetupHandoff, buildPreviewDashboardSetupUrl, resolvePreviewSidebarChromeModel, resolvePreviewEditorGuidanceModel, previewWidgetOverrides, canInspectSiteStyle, mapContentSchemaToFormFields, PreviewFormProvider, usePreviewBlockCustomizeSelectionOptional, BlockEditor, canApplySiteStyle, useBlockCustomizeControls, MAX_QUICK_MANIFEST_FIELDS } from './chunk-K3JWH6HE.mjs';
|
|
3
|
+
import { useEntryController, useEditorUiStoreInstance, useUISelector, resolvePreviewSidebarTab, unsafeAsEditorBlockId, Tabs, TabsList, TabsTrigger, Button, X, TabsContent, useEditorUiStore, deriveRouteMetadataPresentation, resolvePageRouteSlug, createManifestValidation, createStoreBackend, ManifestForm, previewAssistantEnabled, Collapsible, CollapsibleTrigger, ChevronRight, CollapsibleContent, ContentFieldsForm, usePreviewDesignCoordinator, useSiteChromeCustomizeOptional, resolveStyleConfiguratorInitialSnapshot, createStyleConfiguratorState, isPreviewingChange, createOptimisticActionRunner, syncStyleConfiguratorState, getCuratedSiteStyle, planSiteStylePreviewChange, openRow, previewSiteStyle, applyResolvedSelections, previewButtonPersonality, previewHeaderLayout, previewHeaderStyle, planSiteChromeLookSelection, previewFooterLook, buildSiteChromeLookModels, planSiteChromeFooterLayoutSelection, previewPaletteVariant, previewTypographyPreset, setTypographyBodyFontOverride, setTypographyHeadingFontOverride, clearTypographyFontOverrides, paletteOverridesSchema, setPaletteOverrides, toggleRow, cancelPreview, dismissWarnings, dismissNotices, deriveStyleConfiguratorCapabilities, buildApplySiteStyleSelectionBody, markApplyFailed, selectionSnapshotFromApplySiteStyleSelectionResponse, styleConfiguratorHistoryEntryForPersistedSelection, markApplySaved, unwrapResponse, markApplySaving, findButtonPersonality, findPaletteVariant, findTypographyPreset, getHeaderLayout, getHeaderStyle, getFooterLayout, findFooterLook, cycleSiteChromeLookId, resolveContentTitle, foldSubroute, SUBROUTE_KINDS, Smartphone, Tablet, Monitor, Maximize2, cn, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuItem, listEntryPageContentSlots, ContentSpinner, Callout, CalloutDescription, curatedSiteStyles, ChevronLeft, cycleableSiteChromeOptions, requireEntriesForCuratedChoices, buttonPersonalities, typographyPresets, paletteVariants, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, FormRenderer, evaluateTypographyFontSlot, Separator, Surface, ColorPicker, Input } from './chunk-7KOO7RPP.mjs';
|
|
4
|
+
import { usePreviewAuth, getDashboardUrl } from './chunk-O4LVYUVH.mjs';
|
|
5
5
|
import './chunk-R7POPVJR.mjs';
|
|
6
6
|
import { useMemo, useRef, useCallback, useEffect, useState, useTransition, useLayoutEffect, useSyncExternalStore, useId } from 'react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolvePreviewChromeSurface, usePreviewPageDesignEditorState, PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME, applyPreviewChromeSurfaceToElement, setPreviewSidebarTab } from './chunk-
|
|
3
|
-
import { useEntryEditorController, useEditorUiStore, useMultiAutosave, usePreviewDesignHistoryOrder, useSiteChromeCustomizeOptional, selectPreviewDesignHistoryDomain, EditorChrome, previewDesignHistoryDomainForCommand, classifyHistoryShortcut, previewAssistantEnabled, unwrapResponse, cn, Dialog, Button, Palette, DialogContent, DialogHeader, DialogTitle, DialogDescription, TriangleAlert, Pencil, Sparkles, useEditorUiStoreInstance } from './chunk-
|
|
4
|
-
import { usePreviewAuth } from './chunk-
|
|
2
|
+
import { resolvePreviewChromeSurface, usePreviewPageDesignEditorState, PREVIEW_CHROME_PORTAL_CLASS_NAME, PREVIEW_CHROME_THEME_CLASS_NAME, applyPreviewChromeSurfaceToElement, setPreviewSidebarTab } from './chunk-HVOBXA3Y.mjs';
|
|
3
|
+
import { useEntryEditorController, useEditorUiStore, useMultiAutosave, usePreviewDesignHistoryOrder, useSiteChromeCustomizeOptional, selectPreviewDesignHistoryDomain, EditorChrome, previewDesignHistoryDomainForCommand, classifyHistoryShortcut, previewAssistantEnabled, unwrapResponse, cn, Dialog, Button, Palette, DialogContent, DialogHeader, DialogTitle, DialogDescription, TriangleAlert, Pencil, Sparkles, useEditorUiStoreInstance } from './chunk-7KOO7RPP.mjs';
|
|
4
|
+
import { usePreviewAuth } from './chunk-O4LVYUVH.mjs';
|
|
5
5
|
import './chunk-R7POPVJR.mjs';
|
|
6
6
|
import { useState, useMemo, useCallback, useEffect, useTransition } from 'react';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export { SdkPreviewModeRuntime } from './chunk-ER4UIW4X.mjs';
|
|
3
|
+
import './chunk-YDMBIIS5.mjs';
|
|
4
|
+
import './chunk-K3JWH6HE.mjs';
|
|
5
|
+
import './chunk-HVOBXA3Y.mjs';
|
|
6
|
+
import './chunk-7KOO7RPP.mjs';
|
|
7
|
+
import './chunk-O4LVYUVH.mjs';
|
|
8
|
+
import './chunk-R7POPVJR.mjs';
|
|
@@ -639,6 +639,64 @@ export declare const API_ENDPOINTS: {
|
|
|
639
639
|
readonly auth: "user";
|
|
640
640
|
readonly responseKind: "json";
|
|
641
641
|
};
|
|
642
|
+
readonly listMailchimpAudiences: {
|
|
643
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/audiences";
|
|
644
|
+
readonly method: "GET";
|
|
645
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
646
|
+
readonly auth: "user";
|
|
647
|
+
readonly responseKind: "json";
|
|
648
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
649
|
+
};
|
|
650
|
+
readonly getMailchimpSignupSyncHealth: {
|
|
651
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/signup-sync-health";
|
|
652
|
+
readonly method: "GET";
|
|
653
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
654
|
+
readonly auth: "user";
|
|
655
|
+
readonly responseKind: "json";
|
|
656
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
657
|
+
};
|
|
658
|
+
readonly getMailchimpConnection: {
|
|
659
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/connection";
|
|
660
|
+
readonly method: "GET";
|
|
661
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
662
|
+
readonly auth: "user";
|
|
663
|
+
readonly responseKind: "json";
|
|
664
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
665
|
+
};
|
|
666
|
+
readonly startMailchimpOAuth: {
|
|
667
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/oauth/start";
|
|
668
|
+
readonly method: "POST";
|
|
669
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
670
|
+
readonly auth: "user";
|
|
671
|
+
readonly responseKind: "json";
|
|
672
|
+
readonly demoMutation: import("./apiEndpointTypes").ApiDemoMutationPolicy;
|
|
673
|
+
readonly errors: readonly ["auth:forbidden", "validation:invalid_input", "server:internal_error"];
|
|
674
|
+
};
|
|
675
|
+
readonly refreshMailchimpAudiences: {
|
|
676
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/audiences/refresh";
|
|
677
|
+
readonly method: "POST";
|
|
678
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
679
|
+
readonly auth: "user";
|
|
680
|
+
readonly responseKind: "json";
|
|
681
|
+
readonly demoMutation: import("./apiEndpointTypes").ApiDemoMutationPolicy;
|
|
682
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
683
|
+
};
|
|
684
|
+
readonly disconnectMailchimp: {
|
|
685
|
+
readonly path: "/sites/{siteId}/integrations/mailchimp/disconnect";
|
|
686
|
+
readonly method: "POST";
|
|
687
|
+
readonly tags: ["riverbank:site:{siteId}"];
|
|
688
|
+
readonly auth: "user";
|
|
689
|
+
readonly responseKind: "json";
|
|
690
|
+
readonly demoMutation: import("./apiEndpointTypes").ApiDemoMutationPolicy;
|
|
691
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
692
|
+
};
|
|
693
|
+
readonly mailchimpOAuthCallback: {
|
|
694
|
+
readonly path: "/auth/mailchimp/callback";
|
|
695
|
+
readonly method: "GET";
|
|
696
|
+
readonly auth: "public";
|
|
697
|
+
readonly responseKind: "void";
|
|
698
|
+
readonly errors: readonly [];
|
|
699
|
+
};
|
|
642
700
|
readonly createNewsletterList: {
|
|
643
701
|
readonly path: "/sites/{siteId}/newsletter/lists";
|
|
644
702
|
readonly method: "POST";
|
|
@@ -2483,20 +2541,6 @@ export declare const API_ENDPOINTS: {
|
|
|
2483
2541
|
readonly auth: "user";
|
|
2484
2542
|
readonly responseKind: "json";
|
|
2485
2543
|
};
|
|
2486
|
-
readonly instagramUploadZip: {
|
|
2487
|
-
readonly path: "/instagram/upload-zip";
|
|
2488
|
-
readonly method: "POST";
|
|
2489
|
-
readonly tags: ["instagram-import"];
|
|
2490
|
-
readonly auth: "user";
|
|
2491
|
-
readonly responseKind: "json";
|
|
2492
|
-
};
|
|
2493
|
-
readonly createInstagramZipUploadUrl: {
|
|
2494
|
-
readonly path: "/instagram/upload-zip-url";
|
|
2495
|
-
readonly method: "POST";
|
|
2496
|
-
readonly tags: ["instagram-import"];
|
|
2497
|
-
readonly auth: "user";
|
|
2498
|
-
readonly responseKind: "json";
|
|
2499
|
-
};
|
|
2500
2544
|
readonly getAnalyticsReport: {
|
|
2501
2545
|
readonly path: "/sites/{siteId}/analytics/report";
|
|
2502
2546
|
readonly method: "GET";
|
|
@@ -11,6 +11,9 @@ export { pushSdkConfigBodySchema, loaderFallbackScalarSchema, riverbankSiteConfi
|
|
|
11
11
|
export { formatIgnoredDocumentSyncSectionWarning } from "./sdkContracts";
|
|
12
12
|
export { createIncrementalJsonAccumulator } from "./incrementalJson";
|
|
13
13
|
export type { SaveSiteChromeLookSelectionBody, SaveSiteChromeLookSelectionResponse, SiteThemeSelectionsPayload, } from "./siteRuntimeEndpoints";
|
|
14
|
+
export type { NewsletterSubscribeTarget, NewsletterSignupPublicDestinationRef, } from "./publicExperienceEndpoints";
|
|
15
|
+
export type { ListMailchimpAudiencesResponse, MailchimpAudienceId, MailchimpAudienceCompatibilityIssue, MailchimpAudienceReferenceItem, MailchimpConnectionId, MailchimpIntegrationConnectionStatus, MailchimpIntegrationReauthReason, MailchimpOAuthReturnIntent, MailchimpSignupSyncHealthCounts, MailchimpSignupSyncHealthErrorCategory, MailchimpSignupSyncHealthGroup, MailchimpSignupSyncHealthResponse, MailchimpSignupSyncHealthState, MailchimpSignupSourceBlockId, StartMailchimpOAuthRequest, StartMailchimpOAuthResponse, } from "./mailchimpIntegration";
|
|
16
|
+
export { parseMailchimpAudienceId, parseMailchimpConnectionId, } from "./mailchimpIntegration";
|
|
14
17
|
export type { GeneratedIconSetApplyRequest, GeneratedIconSetApplyResponse, GeneratedIconSetCandidate, GeneratedIconSetGenerateRequest, GeneratedIconSetGenerateResponse, GeneratedIconRenderAsset, GeneratedIconRenderAssetRef, GeneratedIconRenderAssetsRequest, GeneratedIconRenderAssetsResponse, SiteIconStyleGuidePayload, SiteIconStyleGuideResponse, SiteIconStyleStrokeRule, SiteIconStyleGuideUpdateRequest, } from "./siteIcons";
|
|
15
18
|
export { DEFAULT_LAUNCH_READINESS_INPUT, deriveLaunchReadiness, } from "./launchReadiness";
|
|
16
19
|
export { getDashboardBaseUrl, getDashboardUrl, getAbsoluteDashboardUrl, getCmsApiUrl, resolveApiBaseUrl, normalizeDashboardOrigin, deriveCmsApiUrlFromDashboardUrl, } from "./url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as ApiTypes from
|
|
2
|
-
export { LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS } from
|
|
3
|
-
export type { AcknowledgeLaunchRequirementRequest, GoLiveDecision, LaunchReadiness, LaunchEmailPackState, LaunchReviewPackState, LaunchAppointmentsPackState, LaunchEventsPackState, LaunchCoursesPackState, LaunchPaymentsPackState, LaunchCustomDomainPackState, LaunchRequirement, LaunchRequirementAction, LaunchRequirementEvidence, LaunchRequirementId, LaunchRequirementOverride, LaunchRequirementOverrideDefinition, LaunchRequirementOverrideReason, LaunchRequirementOwner, LaunchRequirementPackId, LaunchRequirementPriority, SiteGenerationBookingOfferingKind, OnboardingPreviewStatusResponse, OnboardingPreviewThemeOption, OnboardingPreviewThemesResponse, ResendOnboardingPreviewConfirmationResponse, } from
|
|
1
|
+
import type * as ApiTypes from './types';
|
|
2
|
+
export { LAUNCH_REQUIREMENT_OVERRIDE_DEFINITIONS } from './siteOnboarding';
|
|
3
|
+
export type { AcknowledgeLaunchRequirementRequest, GoLiveDecision, LaunchReadiness, LaunchEmailPackState, LaunchReviewPackState, LaunchAppointmentsPackState, LaunchEventsPackState, LaunchCoursesPackState, LaunchPaymentsPackState, LaunchCustomDomainPackState, LaunchRequirement, LaunchRequirementAction, LaunchRequirementEvidence, LaunchRequirementId, LaunchRequirementOverride, LaunchRequirementOverrideDefinition, LaunchRequirementOverrideReason, LaunchRequirementOwner, LaunchRequirementPackId, LaunchRequirementPriority, SiteGenerationBookingOfferingKind, OnboardingPreviewStatusResponse, OnboardingPreviewThemeOption, OnboardingPreviewThemesResponse, ResendOnboardingPreviewConfirmationResponse, } from './types';
|
|
4
4
|
export type DeriveLaunchReadinessInput = Readonly<{
|
|
5
5
|
siteId?: string | null;
|
|
6
6
|
email: ApiTypes.LaunchEmailPackState;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { Brand } from '../../core/src/index';
|
|
2
|
+
import type { APIEndpoint } from './apiEndpointTypes';
|
|
3
|
+
export type MailchimpConnectionId = Brand<string, 'MailchimpConnectionId'>;
|
|
4
|
+
export type MailchimpAudienceId = Brand<string, 'MailchimpAudienceId'>;
|
|
5
|
+
export type MailchimpSignupSourceBlockId = Brand<string, 'NewsletterSignupBlockId'>;
|
|
6
|
+
export type MailchimpIntegrationConnectionStatus = Readonly<{
|
|
7
|
+
tag: 'not_connected';
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
tag: 'connected';
|
|
10
|
+
connectionId: MailchimpConnectionId;
|
|
11
|
+
accountName: string | null;
|
|
12
|
+
datacenter: string;
|
|
13
|
+
connectedAt: string | null;
|
|
14
|
+
refreshedAt: string | null;
|
|
15
|
+
}> | Readonly<{
|
|
16
|
+
tag: 'needs_reauth';
|
|
17
|
+
connectionId: MailchimpConnectionId;
|
|
18
|
+
accountName: string | null;
|
|
19
|
+
datacenter: string | null;
|
|
20
|
+
reason: MailchimpIntegrationReauthReason;
|
|
21
|
+
connectedAt: string | null;
|
|
22
|
+
refreshedAt: string | null;
|
|
23
|
+
}>;
|
|
24
|
+
export type MailchimpOAuthReturnIntent = 'newsletter_settings' | 'block_editor' | 'site_integrations_settings';
|
|
25
|
+
export type StartMailchimpOAuthRequest = Readonly<{
|
|
26
|
+
action: 'connect' | 'reauth';
|
|
27
|
+
returnIntent: MailchimpOAuthReturnIntent;
|
|
28
|
+
}>;
|
|
29
|
+
export type StartMailchimpOAuthResponse = Readonly<{
|
|
30
|
+
authorizationUrl: string;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type MailchimpIntegrationReauthReason = 'token_revoked' | 'account_access_lost' | 'permission_denied' | 'unknown_auth_failure';
|
|
34
|
+
export type MailchimpConnectionLifecycleStatus = MailchimpIntegrationConnectionStatus['tag'];
|
|
35
|
+
export type MailchimpConnectionLifecycleTransitionKind = 'stable_not_connected' | 'stable_connected' | 'stable_needs_reauth' | 'connect' | 'reauth_required' | 'reauth_resolved' | 'disconnect';
|
|
36
|
+
export type MailchimpConnectionConfiguredBlockPolicy = 'editable' | 'editable_with_warning' | 'unavailable_until_reconfigured';
|
|
37
|
+
export type MailchimpConnectionAudienceCacheAction = 'none' | 'refresh' | 'mark_stale_unavailable';
|
|
38
|
+
export type MailchimpConnectionSyncQueueAction = 'none' | 'pause_retryable_until_reconnect' | 'resume_retryable' | 'defer_to_disconnect_sync_policy';
|
|
39
|
+
export type MailchimpConnectionTokenAction = 'none' | 'revoke_and_delete_if_present';
|
|
40
|
+
export type MailchimpConnectionPublicSubmissionPolicy = 'available' | 'unavailable_until_reconfigured';
|
|
41
|
+
type MailchimpConnectionLifecyclePlanBase<TKind extends MailchimpConnectionLifecycleTransitionKind, TFrom extends MailchimpConnectionLifecycleStatus, TTo extends MailchimpConnectionLifecycleStatus> = Readonly<{
|
|
42
|
+
kind: TKind;
|
|
43
|
+
from: TFrom;
|
|
44
|
+
to: TTo;
|
|
45
|
+
}>;
|
|
46
|
+
export type MailchimpConnectionLifecycleTransitionPlan = MailchimpConnectionLifecyclePlanBase<'stable_not_connected', 'not_connected', 'not_connected'> & Readonly<{
|
|
47
|
+
configuredBlockPolicy: 'unavailable_until_reconfigured';
|
|
48
|
+
audienceCacheAction: 'none';
|
|
49
|
+
syncQueueAction: 'none';
|
|
50
|
+
tokenAction: 'none';
|
|
51
|
+
publicSubmissionPolicy: 'unavailable_until_reconfigured';
|
|
52
|
+
}> | MailchimpConnectionLifecyclePlanBase<'stable_connected', 'connected', 'connected'> & Readonly<{
|
|
53
|
+
configuredBlockPolicy: 'editable';
|
|
54
|
+
audienceCacheAction: 'none';
|
|
55
|
+
syncQueueAction: 'none';
|
|
56
|
+
tokenAction: 'none';
|
|
57
|
+
publicSubmissionPolicy: 'available';
|
|
58
|
+
}> | MailchimpConnectionLifecyclePlanBase<'stable_needs_reauth', 'needs_reauth', 'needs_reauth'> & Readonly<{
|
|
59
|
+
configuredBlockPolicy: 'editable_with_warning';
|
|
60
|
+
audienceCacheAction: 'none';
|
|
61
|
+
syncQueueAction: 'none';
|
|
62
|
+
tokenAction: 'none';
|
|
63
|
+
publicSubmissionPolicy: 'unavailable_until_reconfigured';
|
|
64
|
+
}> | MailchimpConnectionLifecyclePlanBase<'connect', 'not_connected', 'connected'> & Readonly<{
|
|
65
|
+
configuredBlockPolicy: 'editable';
|
|
66
|
+
audienceCacheAction: 'refresh';
|
|
67
|
+
syncQueueAction: 'none';
|
|
68
|
+
tokenAction: 'none';
|
|
69
|
+
publicSubmissionPolicy: 'available';
|
|
70
|
+
}> | MailchimpConnectionLifecyclePlanBase<'reauth_required', 'connected', 'needs_reauth'> & Readonly<{
|
|
71
|
+
configuredBlockPolicy: 'editable_with_warning';
|
|
72
|
+
audienceCacheAction: 'none';
|
|
73
|
+
syncQueueAction: 'pause_retryable_until_reconnect';
|
|
74
|
+
tokenAction: 'none';
|
|
75
|
+
publicSubmissionPolicy: 'unavailable_until_reconfigured';
|
|
76
|
+
}> | MailchimpConnectionLifecyclePlanBase<'reauth_resolved', 'needs_reauth', 'connected'> & Readonly<{
|
|
77
|
+
configuredBlockPolicy: 'editable';
|
|
78
|
+
audienceCacheAction: 'refresh';
|
|
79
|
+
syncQueueAction: 'resume_retryable';
|
|
80
|
+
tokenAction: 'none';
|
|
81
|
+
publicSubmissionPolicy: 'available';
|
|
82
|
+
}> | MailchimpConnectionLifecyclePlanBase<'disconnect', 'connected' | 'needs_reauth', 'not_connected'> & Readonly<{
|
|
83
|
+
configuredBlockPolicy: 'unavailable_until_reconfigured';
|
|
84
|
+
audienceCacheAction: 'mark_stale_unavailable';
|
|
85
|
+
syncQueueAction: 'defer_to_disconnect_sync_policy';
|
|
86
|
+
tokenAction: 'revoke_and_delete_if_present';
|
|
87
|
+
publicSubmissionPolicy: 'unavailable_until_reconfigured';
|
|
88
|
+
}>;
|
|
89
|
+
export type MailchimpConnectionLifecycleTransitionError = Readonly<{
|
|
90
|
+
tag: 'invalid_transition';
|
|
91
|
+
from: MailchimpConnectionLifecycleStatus;
|
|
92
|
+
to: MailchimpConnectionLifecycleStatus;
|
|
93
|
+
reason: 'disconnected_connection_cannot_need_reauth';
|
|
94
|
+
}> | Readonly<{
|
|
95
|
+
tag: 'connection_identity_changed';
|
|
96
|
+
from: 'connected' | 'needs_reauth';
|
|
97
|
+
to: 'connected' | 'needs_reauth';
|
|
98
|
+
previousConnectionId: MailchimpConnectionId;
|
|
99
|
+
nextConnectionId: MailchimpConnectionId;
|
|
100
|
+
}>;
|
|
101
|
+
export type MailchimpConnectionLifecycleTransitionResult = Readonly<{
|
|
102
|
+
success: true;
|
|
103
|
+
plan: MailchimpConnectionLifecycleTransitionPlan;
|
|
104
|
+
}> | Readonly<{
|
|
105
|
+
success: false;
|
|
106
|
+
error: MailchimpConnectionLifecycleTransitionError;
|
|
107
|
+
}>;
|
|
108
|
+
export type MailchimpAudienceCompatibilityIssue = Readonly<{
|
|
109
|
+
tag: 'required_merge_field';
|
|
110
|
+
fieldTag: string;
|
|
111
|
+
fieldType: string | null;
|
|
112
|
+
}> | Readonly<{
|
|
113
|
+
tag: 'unsupported_required_interest_group';
|
|
114
|
+
name: string | null;
|
|
115
|
+
}> | Readonly<{
|
|
116
|
+
tag: 'unsupported_marketing_permissions';
|
|
117
|
+
}> | Readonly<{
|
|
118
|
+
tag: 'unsupported_sms_field';
|
|
119
|
+
}>;
|
|
120
|
+
export type MailchimpAudienceReferenceItem = Readonly<{
|
|
121
|
+
id: MailchimpAudienceId;
|
|
122
|
+
name: string;
|
|
123
|
+
memberCount: number | null;
|
|
124
|
+
compatibilityIssues: readonly MailchimpAudienceCompatibilityIssue[];
|
|
125
|
+
}>;
|
|
126
|
+
export type ListMailchimpAudiencesResponse = Readonly<{
|
|
127
|
+
tag: 'not_connected';
|
|
128
|
+
audiences: readonly [];
|
|
129
|
+
}> | Readonly<{
|
|
130
|
+
tag: 'connected';
|
|
131
|
+
connection: Extract<MailchimpIntegrationConnectionStatus, {
|
|
132
|
+
tag: 'connected';
|
|
133
|
+
}>;
|
|
134
|
+
audiences: readonly MailchimpAudienceReferenceItem[];
|
|
135
|
+
}> | Readonly<{
|
|
136
|
+
tag: 'needs_reauth';
|
|
137
|
+
connection: Extract<MailchimpIntegrationConnectionStatus, {
|
|
138
|
+
tag: 'needs_reauth';
|
|
139
|
+
}>;
|
|
140
|
+
audiences: readonly [];
|
|
141
|
+
}>;
|
|
142
|
+
export type MailchimpSignupSyncHealthState = 'healthy' | 'work_pending' | 'needs_attention' | 'unknown';
|
|
143
|
+
export type MailchimpSignupSyncHealthErrorCategory = 'rate_limited' | 'temporarily_unavailable' | 'network' | 'auth' | 'audience_unavailable' | 'validation' | 'policy' | 'anonymized' | 'unknown';
|
|
144
|
+
export type MailchimpSignupSyncHealthCounts = Readonly<{
|
|
145
|
+
total: number;
|
|
146
|
+
queued: number;
|
|
147
|
+
processing: number;
|
|
148
|
+
synced: number;
|
|
149
|
+
pendingExternalConfirmation: number;
|
|
150
|
+
failedRetryable: number;
|
|
151
|
+
failedTerminal: number;
|
|
152
|
+
retryDue: number;
|
|
153
|
+
retryScheduled: number;
|
|
154
|
+
staleProcessing: number;
|
|
155
|
+
authBlocked: number;
|
|
156
|
+
audienceBlocked: number;
|
|
157
|
+
invalidIdentity: number;
|
|
158
|
+
unrecognizedErrorCategory: number;
|
|
159
|
+
}>;
|
|
160
|
+
export type MailchimpSignupSyncHealthGroup = Readonly<{
|
|
161
|
+
connectionId: MailchimpConnectionId;
|
|
162
|
+
audienceId: MailchimpAudienceId;
|
|
163
|
+
sourceBlockIds: readonly MailchimpSignupSourceBlockId[];
|
|
164
|
+
state: MailchimpSignupSyncHealthState;
|
|
165
|
+
counts: MailchimpSignupSyncHealthCounts;
|
|
166
|
+
lastSyncAttemptAt: string | null;
|
|
167
|
+
nextRetryAt: string | null;
|
|
168
|
+
lastErrorCategory: MailchimpSignupSyncHealthErrorCategory | null;
|
|
169
|
+
}>;
|
|
170
|
+
export type MailchimpSignupSyncHealthCoverage = Readonly<{
|
|
171
|
+
tag: 'complete';
|
|
172
|
+
totalMirrors: number;
|
|
173
|
+
}> | Readonly<{
|
|
174
|
+
tag: 'sampled';
|
|
175
|
+
sampleSize: number;
|
|
176
|
+
sampleLimit: number;
|
|
177
|
+
}>;
|
|
178
|
+
export type MailchimpSignupSyncHealthResponse = Readonly<{
|
|
179
|
+
tag: 'not_configured';
|
|
180
|
+
}> | Readonly<{
|
|
181
|
+
tag: 'available';
|
|
182
|
+
generatedAt: string;
|
|
183
|
+
coverage: MailchimpSignupSyncHealthCoverage;
|
|
184
|
+
state: MailchimpSignupSyncHealthState;
|
|
185
|
+
counts: MailchimpSignupSyncHealthCounts;
|
|
186
|
+
groups: readonly MailchimpSignupSyncHealthGroup[];
|
|
187
|
+
}>;
|
|
188
|
+
export type MailchimpIntegrationAPIEndpoints = {
|
|
189
|
+
listMailchimpAudiences: APIEndpoint<never, {
|
|
190
|
+
siteId: string;
|
|
191
|
+
}, ListMailchimpAudiencesResponse>;
|
|
192
|
+
getMailchimpSignupSyncHealth: APIEndpoint<never, {
|
|
193
|
+
siteId: string;
|
|
194
|
+
}, MailchimpSignupSyncHealthResponse>;
|
|
195
|
+
getMailchimpConnection: APIEndpoint<never, {
|
|
196
|
+
siteId: string;
|
|
197
|
+
}, MailchimpIntegrationConnectionStatus>;
|
|
198
|
+
startMailchimpOAuth: APIEndpoint<StartMailchimpOAuthRequest, {
|
|
199
|
+
siteId: string;
|
|
200
|
+
}, StartMailchimpOAuthResponse>;
|
|
201
|
+
refreshMailchimpAudiences: APIEndpoint<never, {
|
|
202
|
+
siteId: string;
|
|
203
|
+
}, ListMailchimpAudiencesResponse>;
|
|
204
|
+
disconnectMailchimp: APIEndpoint<never, {
|
|
205
|
+
siteId: string;
|
|
206
|
+
}, MailchimpIntegrationConnectionStatus>;
|
|
207
|
+
mailchimpOAuthCallback: APIEndpoint<never, never, void>;
|
|
208
|
+
};
|
|
209
|
+
export declare function parseMailchimpConnectionId(value: unknown): MailchimpConnectionId | null;
|
|
210
|
+
export declare function parseMailchimpAudienceId(value: unknown): MailchimpAudienceId | null;
|
|
211
|
+
export declare function deriveMailchimpConnectionLifecycleTransitionPlan(input: Readonly<{
|
|
212
|
+
previous: MailchimpIntegrationConnectionStatus;
|
|
213
|
+
next: MailchimpIntegrationConnectionStatus;
|
|
214
|
+
}>): MailchimpConnectionLifecycleTransitionResult;
|
|
215
|
+
export {};
|
|
@@ -31,6 +31,40 @@ export type PublicEventLoaderParams = {
|
|
|
31
31
|
detailLevel?: string;
|
|
32
32
|
readProfile?: string;
|
|
33
33
|
};
|
|
34
|
+
export type NewsletterSignupPublicDestinationRef = {
|
|
35
|
+
tag: "block_ref";
|
|
36
|
+
blockId: string;
|
|
37
|
+
} | {
|
|
38
|
+
tag: "signed_destination_ref";
|
|
39
|
+
token: string;
|
|
40
|
+
};
|
|
41
|
+
export type NewsletterSubscribeTarget = {
|
|
42
|
+
tag: "legacy_riverbank_list";
|
|
43
|
+
listId: string;
|
|
44
|
+
destinationRef?: NewsletterSignupPublicDestinationRef;
|
|
45
|
+
} | {
|
|
46
|
+
tag: "published_block_ref";
|
|
47
|
+
destinationRef: NewsletterSignupPublicDestinationRef;
|
|
48
|
+
};
|
|
49
|
+
type NewsletterSubscribeFields = {
|
|
50
|
+
email: string;
|
|
51
|
+
firstName?: string | null;
|
|
52
|
+
lastName?: string | null;
|
|
53
|
+
name?: string | null;
|
|
54
|
+
company?: string | null;
|
|
55
|
+
phone?: string | null;
|
|
56
|
+
tags?: string[];
|
|
57
|
+
meta?: {
|
|
58
|
+
honeypot?: string;
|
|
59
|
+
altchaSolution?: string | null;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type NewsletterSubscribeBody = NewsletterSubscribeFields & ({
|
|
63
|
+
target: NewsletterSubscribeTarget;
|
|
64
|
+
} | {
|
|
65
|
+
listId: string;
|
|
66
|
+
destinationRef?: NewsletterSignupPublicDestinationRef;
|
|
67
|
+
});
|
|
34
68
|
export type PublicEventScheduleScope = "any" | "recurring" | "oneOff";
|
|
35
69
|
export type PublicEventSurfaceScope = "all" | "regularClassSchedule" | "specialDatedEvents" | "custom";
|
|
36
70
|
export type PublicEventDetailsLoaderParams = Omit<PublicEventLoaderParams, "detailLevel" | "readProfile">;
|
|
@@ -856,21 +890,7 @@ export type PublicExperienceAPIEndpoints = {
|
|
|
856
890
|
siteId: string;
|
|
857
891
|
token: string;
|
|
858
892
|
}, string>;
|
|
859
|
-
subscribeNewsletter: APIEndpoint<{
|
|
860
|
-
email: string;
|
|
861
|
-
firstName?: string | null;
|
|
862
|
-
lastName?: string | null;
|
|
863
|
-
name?: string | null;
|
|
864
|
-
company?: string | null;
|
|
865
|
-
phone?: string | null;
|
|
866
|
-
tags?: string[];
|
|
867
|
-
listId: string;
|
|
868
|
-
blockId?: string | null;
|
|
869
|
-
meta?: {
|
|
870
|
-
honeypot?: string;
|
|
871
|
-
altchaSolution?: string | null;
|
|
872
|
-
};
|
|
873
|
-
}, {
|
|
893
|
+
subscribeNewsletter: APIEndpoint<NewsletterSubscribeBody, {
|
|
874
894
|
siteId: string;
|
|
875
895
|
}, {
|
|
876
896
|
subscribed: true;
|
|
@@ -378,20 +378,6 @@ export type MediaUploadFinalizeRequest = {
|
|
|
378
378
|
isThumbnail?: boolean;
|
|
379
379
|
identifier?: string;
|
|
380
380
|
};
|
|
381
|
-
export type CreateInstagramZipUploadUrlRequest = {
|
|
382
|
-
siteId: string;
|
|
383
|
-
filename: string;
|
|
384
|
-
bytes: number;
|
|
385
|
-
};
|
|
386
|
-
export type CreateInstagramZipUploadUrlResponse = {
|
|
387
|
-
signedUrl: string;
|
|
388
|
-
storagePath: string;
|
|
389
|
-
};
|
|
390
|
-
export type InstagramUploadZipRequest = {
|
|
391
|
-
siteId: string;
|
|
392
|
-
storagePath: string;
|
|
393
|
-
bucket?: string;
|
|
394
|
-
};
|
|
395
381
|
export type CreateSiteLogoUploadUrlRequest = {
|
|
396
382
|
siteId: string;
|
|
397
383
|
filename: string;
|
|
@@ -10,7 +10,7 @@ import type { CreateMediaAssetBody, MediaAssetResponse, MediaAssetFileFilterCont
|
|
|
10
10
|
import type { MediaUsageCheckResponse } from './shared-contracts';
|
|
11
11
|
import type { BlockWithContentResponse, BlockListItem, ContentEntryListStage, EntryPageContentSlotsResponse, ListPublishedEntriesResponse, PageDraftRecord, PublishedBlockBaseline, PublishedContentEntryPreviewResponse, PublishedPostPreviewResponse, SdkBlockContent, SdkRuntimeContentByPathResponse, SdkTemplate, SiteBySlugResponse, ThemeGenerationTurn, ThemePreferencesRecord, ThemeRow } from './contentRuntime';
|
|
12
12
|
import type { GetVersionHistoryResponse, ListVersionHistoryResponse, RestoreVersionHistoryRequest, RestoreVersionHistoryResponse, VersionHistoryListQuery } from './contentVersionHistory';
|
|
13
|
-
import type {
|
|
13
|
+
import type { CreateMediaUploadUrlRequest, CreateMediaUploadUrlResponse, CreateSiteLogoUploadUrlRequest, CreateSiteLogoUploadUrlResponse, MediaUploadFinalizeRequest, UploadSiteLogoRequest } from './siteInfrastructure';
|
|
14
14
|
import type { DevToolsGetSiteRoleDowngradeQuery, DevToolsImpersonationResponse, DevToolsSeedResponse, DevToolsSetSiteRoleDowngradeRequest, SiteRoleDowngradeState } from './siteOperations';
|
|
15
15
|
/**
|
|
16
16
|
* Round-trip shape for the Style configurator and site-chrome persisted selections on the
|
|
@@ -330,18 +330,6 @@ export type SiteRuntimeAPIEndpoints = {
|
|
|
330
330
|
blockId: string;
|
|
331
331
|
}, // Path parameters
|
|
332
332
|
BlockWithContentResponse>;
|
|
333
|
-
instagramUploadZip: APIEndpoint<InstagramUploadZipRequest, undefined, {
|
|
334
|
-
ok: boolean;
|
|
335
|
-
imported: number;
|
|
336
|
-
skipped: number;
|
|
337
|
-
failed: number;
|
|
338
|
-
totalPosts: number;
|
|
339
|
-
errors: Array<{
|
|
340
|
-
uri: string;
|
|
341
|
-
error: string;
|
|
342
|
-
}>;
|
|
343
|
-
}>;
|
|
344
|
-
createInstagramZipUploadUrl: APIEndpoint<CreateInstagramZipUploadUrlRequest, never, CreateInstagramZipUploadUrlResponse>;
|
|
345
333
|
getAnalyticsReport: APIEndpoint<never, AnalyticsReportQuery, AnalyticsReportResponse>;
|
|
346
334
|
createMediaAsset: APIEndpoint<CreateMediaAssetBody, undefined, MediaAssetResponse>;
|
|
347
335
|
mediaList: APIEndpoint<never, {
|
|
@@ -20,6 +20,7 @@ export type * from "./communications";
|
|
|
20
20
|
export type * from "./contentRuntime";
|
|
21
21
|
export type * from "./contentVersionHistory";
|
|
22
22
|
export type * from "./courses";
|
|
23
|
+
export type * from "./mailchimpIntegration";
|
|
23
24
|
export type * from "./participantMessaging";
|
|
24
25
|
export type * from "./publicExperienceEndpoints";
|
|
25
26
|
export type * from "./sdkContracts";
|
|
@@ -58,6 +59,7 @@ import type { API_ENDPOINTS } from "./endpoints";
|
|
|
58
59
|
import type { AiAndLaunchReadinessAPIEndpointDefinitions, AiAPIEndpointName, AiAPIEndpoints, LaunchReadinessAPIEndpointName, LaunchReadinessAPIEndpoints } from "./aiEndpoints";
|
|
59
60
|
import type { BookingManagementAPIEndpoints } from "./bookingManagementEndpoints";
|
|
60
61
|
import type { CommercePortalAPIEndpoints } from "./commercePortalEndpoints";
|
|
62
|
+
import type { MailchimpIntegrationAPIEndpoints } from "./mailchimpIntegration";
|
|
61
63
|
import type { PublicExperienceAPIEndpoints } from "./publicExperienceEndpoints";
|
|
62
64
|
import type { SeoEndpointDefinitions } from "./seoEndpoints";
|
|
63
65
|
import type { SiteManagementAPIEndpoints } from "./siteManagementEndpoints";
|
|
@@ -65,7 +67,7 @@ import type { SitePlatformAPIEndpoints } from "./sitePlatformEndpoints";
|
|
|
65
67
|
import type { SiteRuntimeAPIEndpoints } from "./siteRuntimeEndpoints";
|
|
66
68
|
type TableName = keyof DbDatabase["public"]["Tables"];
|
|
67
69
|
export type DTOType<K extends TableName> = Partial<CamelizeKeys<DbRow<K>>>;
|
|
68
|
-
type APIEndpointsMonolith = AiAndLaunchReadinessAPIEndpointDefinitions & SeoEndpointDefinitions & SiteManagementAPIEndpoints & PublicExperienceAPIEndpoints & SiteRuntimeAPIEndpoints & SitePlatformAPIEndpoints & BookingManagementAPIEndpoints & CommercePortalAPIEndpoints;
|
|
70
|
+
type APIEndpointsMonolith = AiAndLaunchReadinessAPIEndpointDefinitions & SeoEndpointDefinitions & SiteManagementAPIEndpoints & PublicExperienceAPIEndpoints & SiteRuntimeAPIEndpoints & SitePlatformAPIEndpoints & BookingManagementAPIEndpoints & CommercePortalAPIEndpoints & MailchimpIntegrationAPIEndpoints;
|
|
69
71
|
type ComposeEndpointMaps<Maps extends readonly object[], Acc extends object = {}> = Maps extends readonly [
|
|
70
72
|
infer Head extends object,
|
|
71
73
|
...infer Tail extends readonly object[]
|
|
@@ -77,7 +79,7 @@ type AvailabilityAPIEndpointName = "listAvailabilityRules" | "setWeeklyAvailabil
|
|
|
77
79
|
type CalendarAPIEndpointName = "getCalendarStatus" | "updateCalendarPreferences" | "disconnectCalendar";
|
|
78
80
|
type ContentTypesAPIEndpointName = "listContentTypes" | "createContentType" | "updateContentType" | "deleteContentType" | "duplicateContentType";
|
|
79
81
|
type MediaAPIEndpointName = "createMediaAsset" | "mediaList" | "mediaProductFileList" | "mediaGet" | "mediaUpdate" | "mediaCanonicalCrop" | "mediaAssignIdentifier" | "mediaDelete" | "mediaBulkDelete" | "mediaUsageCheck" | "mediaGetSignedUrl" | "createMediaUploadUrl" | "mediaUpload" | "getMediaLabels" | "getMediaSettings" | "updateMediaSettings" | "mediaSearch" | "classifyMediaAsset" | "classifyMediaBatch" | "enqueueMediaClassifyJob" | "runMediaClassifyJob" | "runAllMediaClassifyJobs" | "mediaJobsStatus";
|
|
80
|
-
type ComposedDomainEndpointNames = AiAPIEndpointName | LaunchReadinessAPIEndpointName | SiteMembersAPIEndpointName | SeoAPIEndpointName | RedirectsAPIEndpointName | AvailabilityAPIEndpointName | CalendarAPIEndpointName | ContentTypesAPIEndpointName | MediaAPIEndpointName;
|
|
82
|
+
type ComposedDomainEndpointNames = AiAPIEndpointName | LaunchReadinessAPIEndpointName | SiteMembersAPIEndpointName | SeoAPIEndpointName | RedirectsAPIEndpointName | AvailabilityAPIEndpointName | CalendarAPIEndpointName | ContentTypesAPIEndpointName | MediaAPIEndpointName | "listMailchimpAudiences" | "getMailchimpSignupSyncHealth";
|
|
81
83
|
export type SiteMembersAPIEndpoints = Pick<APIEndpointsMonolith, SiteMembersAPIEndpointName>;
|
|
82
84
|
export type SeoAPIEndpoints = Pick<APIEndpointsMonolith, SeoAPIEndpointName>;
|
|
83
85
|
export type RedirectsAPIEndpoints = Pick<APIEndpointsMonolith, RedirectsAPIEndpointName>;
|
|
@@ -95,7 +97,8 @@ type DomainAPIEndpointMaps = [
|
|
|
95
97
|
AvailabilityAPIEndpoints,
|
|
96
98
|
CalendarAPIEndpoints,
|
|
97
99
|
ContentTypesAPIEndpoints,
|
|
98
|
-
MediaAPIEndpoints
|
|
100
|
+
MediaAPIEndpoints,
|
|
101
|
+
Pick<APIEndpointsMonolith, "listMailchimpAudiences" | "getMailchimpSignupSyncHealth">
|
|
99
102
|
];
|
|
100
103
|
type ComposedAPIEndpointMaps = [...DomainAPIEndpointMaps, RemainingAPIEndpoints];
|
|
101
104
|
export type APIEndpoints = ComposeEndpointMaps<ComposedAPIEndpointMaps>;
|
|
@@ -57,6 +57,7 @@ type PageRendererDataContext = {
|
|
|
57
57
|
apiBaseUrl?: string;
|
|
58
58
|
portalToken?: string | null;
|
|
59
59
|
bookingOfferingPresets?: readonly BookingOfferingPresetSummary[];
|
|
60
|
+
eventRegistrationOverlayEnabled?: boolean;
|
|
60
61
|
};
|
|
61
62
|
/**
|
|
62
63
|
* Props passed to block override components.
|
|
@@ -530,6 +530,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
530
530
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
531
531
|
}>;
|
|
532
532
|
hydration: Readonly<{
|
|
533
|
+
destinationRef?: import("..").NewsletterSignupPublicDestinationRef | null;
|
|
533
534
|
listId?: string | null;
|
|
534
535
|
preset: import("../system/runtime/nodes/newsletter-form.types").NewsletterPreset;
|
|
535
536
|
includePhone: boolean;
|
|
@@ -555,6 +556,7 @@ export declare const proofBlockIslandCodecs: {
|
|
|
555
556
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
556
557
|
}>;
|
|
557
558
|
hydration: Readonly<{
|
|
559
|
+
destinationRef?: import("..").NewsletterSignupPublicDestinationRef | null;
|
|
558
560
|
listId?: string | null;
|
|
559
561
|
preset: import("../system/runtime/nodes/newsletter-form.types").NewsletterPreset;
|
|
560
562
|
includePhone: boolean;
|
|
@@ -1578,6 +1580,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1578
1580
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
1579
1581
|
}>;
|
|
1580
1582
|
hydration: Readonly<{
|
|
1583
|
+
destinationRef?: import("..").NewsletterSignupPublicDestinationRef | null;
|
|
1581
1584
|
listId?: string | null;
|
|
1582
1585
|
preset: import("../system/runtime/nodes/newsletter-form.types").NewsletterPreset;
|
|
1583
1586
|
includePhone: boolean;
|
|
@@ -1603,6 +1606,7 @@ export declare const runtimeIslandCodecs: {
|
|
|
1603
1606
|
fields: readonly import("../system/runtime/nodes/newsletter-form.types").NewsletterFieldDef[];
|
|
1604
1607
|
}>;
|
|
1605
1608
|
hydration: Readonly<{
|
|
1609
|
+
destinationRef?: import("..").NewsletterSignupPublicDestinationRef | null;
|
|
1606
1610
|
listId?: string | null;
|
|
1607
1611
|
preset: import("../system/runtime/nodes/newsletter-form.types").NewsletterPreset;
|
|
1608
1612
|
includePhone: boolean;
|
|
@@ -42,7 +42,8 @@ export { heroManifest } from './system/blocks/hero';
|
|
|
42
42
|
export type { HeroContent, HeroMedia } from './system/blocks/hero';
|
|
43
43
|
export { bodyTextManifest } from './system/blocks/body-text';
|
|
44
44
|
export type { BodyTextContent } from './system/blocks/body-text';
|
|
45
|
-
export
|
|
45
|
+
export { createRichTextDocFromMarkdown, parseRichTextInlineMarkdown, parseRichTextParagraphInlineMarkdown, } from './system/manifest/richTextSchema';
|
|
46
|
+
export type { RichTextHardBreakNode, RichTextInlineNode, RichTextTextNode, TipTapNode, } from './system/manifest/richTextSchema';
|
|
46
47
|
export { createManifestValidator } from './system/manifest/validation';
|
|
47
48
|
export { singleButtonManifest } from './system/blocks/single-button';
|
|
48
49
|
export { Text, RichText } from './primitives/content/primitives';
|