@riverbankcms/sdk 0.178.0 → 0.180.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-
|
|
1
|
+
import { A as sectionOptionsSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, E as sdkWorkflowIdSchema, F as validateFieldIdConflicts, K as contentConfigSchema, M as siteStyleConfigSchema, N as syncConfigSchema, O as sdkWorkflowsSchema, P as themeSourceSchema, S as sdkThemePaletteSchema, T as sdkWorkflowEndpointSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, b as sdkSiteUrlSchema, c as containerOptionsSchema, d as layoutConfigSchema, f as loaderParamBindingSchema, g as sdkConfigLoaderSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, l as deployConfigSchema, m as loaderWhenValueSchema, n as blockFieldConfigSchema, o as containerAlignmentSchema, p as loaderParamValueSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, t as activeThemeSchema, u as fieldSelectOptionSchema, v as sdkDataLoadersSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, y as sdkLoaderEndpointSchema } from "./validation-DCl-FCk_.mjs";
|
|
2
2
|
export { activeThemeSchema, blockFieldConfigSchema, blockFieldExtensionSchema, blockFieldExtensionsSchema, blockFieldOptionsSchema, containerAlignmentSchema, containerMaxWidthSchema, containerOptionsSchema, contentConfigSchema, deployConfigSchema, fieldSelectOptionSchema, layoutConfigSchema, loaderParamBindingSchema, loaderParamValueSchema, loaderWhenValueSchema, riverbankSiteConfigSchema, sdkConfigLoaderSchema, sdkCustomBlockSchema, sdkDataLoadersSchema, sdkLoaderEndpointSchema, sdkSiteUrlSchema, sdkThemeConfigSchema, sdkThemePaletteSchema, sdkWorkflowConfigSchema, sdkWorkflowConfirmationSchema, sdkWorkflowEndpointSchema, sdkWorkflowIdSchema, sdkWorkflowTriggerSchema, sdkWorkflowsSchema, sectionBackgroundSchema, sectionOptionsSchema, sectionSpacingSchema, siteStyleConfigSchema, syncConfigSchema, themeSourceSchema, validateFieldIdConflicts };
|
package/dist/server/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-
|
|
1
|
+
import { Hs as isCanonicalRichTextDoc } from "./registry-CvhFwbXJ.mjs";
|
|
2
|
+
import { $ as templateBlockConfigSchema, A as sectionOptionsSchema, B as dashboardNavigationConfigSchema, C as sdkWorkflowConfigSchema, D as sdkWorkflowTriggerSchema, G as blockConfigSchema, H as validateLayoutNodeTypes, I as dashboardConfigSchema, J as entryConfigSchema, K as contentConfigSchema, L as dashboardNavVisibilityBaseSchema, M as siteStyleConfigSchema, O as sdkWorkflowsSchema, Q as siteSettingsConfigSchema, R as dashboardNavVisibilityRolesSchema, S as sdkThemePaletteSchema, U as validateTransformIds, V as validateLayout, W as bindingSourceSchema, X as navigationMenuConfigSchema, Y as navigationItemConfigSchema, Z as pageConfigSchema, _ as sdkCustomBlockSchema, a as blockFieldOptionsSchema, c as containerOptionsSchema, et as templateConfigSchema, h as riverbankSiteConfigSchema, i as blockFieldExtensionsSchema, j as sectionSpacingSchema, k as sectionBackgroundSchema, n as blockFieldConfigSchema, nt as describeInvalidTemplateBindingMetaPath, o as containerAlignmentSchema, q as contentTypeConfigSchema, r as blockFieldExtensionSchema, s as containerMaxWidthSchema, tt as TEMPLATE_BINDING_META_PATHS, u as fieldSelectOptionSchema, w as sdkWorkflowConfirmationSchema, x as sdkThemeConfigSchema, z as dashboardNavVisibilitySchema } from "./validation-DCl-FCk_.mjs";
|
|
3
3
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
4
|
//#region src/config/bindings.ts
|
|
5
5
|
function fieldBinding(path) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/routing/contentTypeResolver.ts
|
|
2
|
+
/**
|
|
3
|
+
* Convert local SDK ContentTypeConfig to ContentTypeRoutingInfo.
|
|
4
|
+
*
|
|
5
|
+
* Used to transform local SDK config content types into the minimal
|
|
6
|
+
* format needed for routing decisions.
|
|
7
|
+
*
|
|
8
|
+
* @param ct - ContentTypeConfig from SDK config
|
|
9
|
+
* @returns ContentTypeRoutingInfo for routing
|
|
10
|
+
*/
|
|
11
|
+
function toRoutingInfo(ct) {
|
|
12
|
+
return {
|
|
13
|
+
key: ct.key,
|
|
14
|
+
hasPages: ct.hasPages,
|
|
15
|
+
routePattern: ct.routePattern ?? null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { toRoutingInfo as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as resolveDataLoaderBlockContent, n as getDataLoaderOwnerPageId, r as normalizeDataLoaderSearchParams, t as createDataLoaderContext } from "../dataLoaderContext-
|
|
1
|
+
import { i as resolveDataLoaderBlockContent, n as getDataLoaderOwnerPageId, r as normalizeDataLoaderSearchParams, t as createDataLoaderContext } from "../dataLoaderContext-lMRTfG5Z.mjs";
|
|
2
2
|
export { createDataLoaderContext, getDataLoaderOwnerPageId, normalizeDataLoaderSearchParams, resolveDataLoaderBlockContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-
|
|
1
|
+
import { a as resolveBlockData, i as hasRegisteredDataLoaders, n as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, o as resolveBlockDataWithDeps, r as createBlockDataLoadPolicy, s as warnHostDataLoaderFailure, t as CONFIG_ONLY_BLOCK_DATA_POLICY } from "../resolveBlockData-Cv_W1LVB.mjs";
|
|
2
2
|
export { CONFIG_ONLY_BLOCK_DATA_POLICY, DEFAULT_RESOLVE_BLOCK_DATA_DEPS, createBlockDataLoadPolicy, hasRegisteredDataLoaders, resolveBlockData, resolveBlockDataWithDeps, warnHostDataLoaderFailure };
|
|
@@ -15,6 +15,7 @@ function assertNever(value) {
|
|
|
15
15
|
}
|
|
16
16
|
function getDataLoaderOwnerPageId(target) {
|
|
17
17
|
switch (target.kind) {
|
|
18
|
+
case "system-page": return target.path;
|
|
18
19
|
case "page": return target.pageId;
|
|
19
20
|
case "entry-template":
|
|
20
21
|
case "page-surface-template": return target.templateId;
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region ../api/src/defineEndpointDefinitions.ts
|
|
3
|
+
/**
|
|
4
|
+
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
5
|
+
* method, and parameter contract for the typed URL builders.
|
|
6
|
+
*/
|
|
7
|
+
function defineEndpointDefinitions(definitions) {
|
|
8
|
+
return definitions;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../api/src/clientErrorReporting.ts
|
|
12
|
+
const CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({ reportClientError: {
|
|
13
|
+
path: "/client/error-report",
|
|
14
|
+
method: "POST",
|
|
15
|
+
auth: "user",
|
|
16
|
+
errors: [],
|
|
17
|
+
responseKind: "json"
|
|
18
|
+
} });
|
|
19
|
+
const CLIENT_ERROR_REPORT_LIMITS = {
|
|
20
|
+
pathname: 1024,
|
|
21
|
+
name: 120,
|
|
22
|
+
message: 2e3,
|
|
23
|
+
stack: 8e3,
|
|
24
|
+
digest: 128,
|
|
25
|
+
componentStack: 8e3,
|
|
26
|
+
sourceLocation: 1024,
|
|
27
|
+
navigationAgeMs: 6e4
|
|
28
|
+
};
|
|
29
|
+
const clientErrorEventSchema = z.enum([
|
|
30
|
+
"dashboard:route-error",
|
|
31
|
+
"dashboard:app-error",
|
|
32
|
+
"client:error-boundary",
|
|
33
|
+
"client:window-error",
|
|
34
|
+
"client:unhandled-rejection"
|
|
35
|
+
]);
|
|
36
|
+
z.object({
|
|
37
|
+
event: clientErrorEventSchema,
|
|
38
|
+
pathname: z.string().startsWith("/").max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
39
|
+
name: z.string().max(CLIENT_ERROR_REPORT_LIMITS.name),
|
|
40
|
+
message: z.string().max(CLIENT_ERROR_REPORT_LIMITS.message),
|
|
41
|
+
stack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.stack).nullable(),
|
|
42
|
+
digest: z.string().max(CLIENT_ERROR_REPORT_LIMITS.digest).nullable(),
|
|
43
|
+
componentStack: z.string().max(CLIENT_ERROR_REPORT_LIMITS.componentStack).nullable(),
|
|
44
|
+
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable(),
|
|
45
|
+
navigation: z.object({
|
|
46
|
+
fromPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
47
|
+
toPathname: z.string().regex(/^\/[^?#]*$/).max(CLIENT_ERROR_REPORT_LIMITS.pathname),
|
|
48
|
+
type: z.enum([
|
|
49
|
+
"push",
|
|
50
|
+
"replace",
|
|
51
|
+
"traverse"
|
|
52
|
+
]),
|
|
53
|
+
ageMs: z.number().int().min(0).max(CLIENT_ERROR_REPORT_LIMITS.navigationAgeMs)
|
|
54
|
+
}).strict().nullable().optional()
|
|
55
|
+
}).strict();
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../api/src/common/capacityOverride.ts
|
|
58
|
+
const capacityOverrideRefusalSchema = z.object({
|
|
59
|
+
booked: z.number().int().nonnegative(),
|
|
60
|
+
held: z.number().int().nonnegative(),
|
|
61
|
+
capacity: z.number().int().nonnegative(),
|
|
62
|
+
name: z.string(),
|
|
63
|
+
retryPersonId: z.string().optional()
|
|
64
|
+
});
|
|
65
|
+
function isCapacityOverrideRefusal(value) {
|
|
66
|
+
return capacityOverrideRefusalSchema.safeParse(value).success;
|
|
67
|
+
}
|
|
68
|
+
const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
69
|
+
"auth:unauthenticated",
|
|
70
|
+
"auth:token_expired",
|
|
71
|
+
"auth:token_invalid",
|
|
72
|
+
"auth:forbidden",
|
|
73
|
+
"auth:mfa_required",
|
|
74
|
+
"auth:mfa_setup_required",
|
|
75
|
+
"auth:sudo_required",
|
|
76
|
+
"auth:insufficient_permissions",
|
|
77
|
+
"auth:impersonation_restricted",
|
|
78
|
+
"auth:lease_required",
|
|
79
|
+
"auth:lease_lost",
|
|
80
|
+
"client:editing_held",
|
|
81
|
+
"site_terms_changed",
|
|
82
|
+
"site_terms_agreement_missing",
|
|
83
|
+
"validation:invalid_input",
|
|
84
|
+
"validation:missing_field",
|
|
85
|
+
"validation:invalid_format",
|
|
86
|
+
"validation:payload_too_large",
|
|
87
|
+
"resource:not_found",
|
|
88
|
+
"resource:already_exists",
|
|
89
|
+
"resource:conflict",
|
|
90
|
+
"resource:gone",
|
|
91
|
+
"rate_limit:exceeded",
|
|
92
|
+
"billing:payment_required",
|
|
93
|
+
"billing:plan_limit_exceeded",
|
|
94
|
+
"billing:pass_redemption_failed",
|
|
95
|
+
"server:internal_error",
|
|
96
|
+
"server:unavailable",
|
|
97
|
+
"external:service_error",
|
|
98
|
+
"external:registrar_orphaned_contact_profile",
|
|
99
|
+
"network:connection_error",
|
|
100
|
+
"network:timeout",
|
|
101
|
+
"network:dns_error"
|
|
102
|
+
]);
|
|
103
|
+
function isApiErrorCode(value) {
|
|
104
|
+
return typeof value === "string" && API_ERROR_CODE_SET.has(value);
|
|
105
|
+
}
|
|
106
|
+
function isApiError(result) {
|
|
107
|
+
return result.success === false;
|
|
108
|
+
}
|
|
109
|
+
function isApiSuccess(result) {
|
|
110
|
+
return result.success === true;
|
|
111
|
+
}
|
|
112
|
+
function isRecord(value) {
|
|
113
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
114
|
+
}
|
|
115
|
+
function isFieldError(value) {
|
|
116
|
+
return isRecord(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
|
|
117
|
+
}
|
|
118
|
+
function fieldErrorsFromUnknown(value) {
|
|
119
|
+
if (!Array.isArray(value)) return null;
|
|
120
|
+
return value.every(isFieldError) ? value : null;
|
|
121
|
+
}
|
|
122
|
+
function extractEnvelopeErrorObject(body) {
|
|
123
|
+
if (!isRecord(body)) return null;
|
|
124
|
+
const error = body.error;
|
|
125
|
+
if (!isRecord(error)) return null;
|
|
126
|
+
if ("success" in body && body.success !== false) return null;
|
|
127
|
+
return error;
|
|
128
|
+
}
|
|
129
|
+
function extractApiEnvelopeErrorDetails(body) {
|
|
130
|
+
const error = extractEnvelopeErrorObject(body);
|
|
131
|
+
if (!error) return {
|
|
132
|
+
rawCode: null,
|
|
133
|
+
code: null,
|
|
134
|
+
tag: null,
|
|
135
|
+
message: null,
|
|
136
|
+
status: null,
|
|
137
|
+
fieldErrors: null
|
|
138
|
+
};
|
|
139
|
+
const rawCode = typeof error.code === "string" ? error.code : null;
|
|
140
|
+
const message = typeof error.message === "string" && error.message.trim().length > 0 ? error.message : null;
|
|
141
|
+
return {
|
|
142
|
+
rawCode,
|
|
143
|
+
code: isApiErrorCode(rawCode) ? rawCode : null,
|
|
144
|
+
tag: typeof error.tag === "string" ? error.tag : null,
|
|
145
|
+
message,
|
|
146
|
+
status: typeof error.status === "number" && Number.isFinite(error.status) ? error.status : null,
|
|
147
|
+
fieldErrors: fieldErrorsFromUnknown(error.fieldErrors)
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Error class for API failures that can be thrown from unwrapResponse.
|
|
152
|
+
* Preserves all error metadata from the envelope.
|
|
153
|
+
*/
|
|
154
|
+
var ApiEnvelopeError = class extends Error {
|
|
155
|
+
constructor(error) {
|
|
156
|
+
super(error.message);
|
|
157
|
+
this.name = "ApiEnvelopeError";
|
|
158
|
+
this.code = error.code;
|
|
159
|
+
this.requestId = error.requestId;
|
|
160
|
+
this.timestamp = error.timestamp;
|
|
161
|
+
this.status = error.status;
|
|
162
|
+
this.tag = error.tag;
|
|
163
|
+
this.fieldErrors = error.fieldErrors;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Unwrap a successful API response or throw on error.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```typescript
|
|
171
|
+
* const response = await apiClient({ endpoint: 'getUser', params: { id } });
|
|
172
|
+
* const user = unwrapResponse(response); // Throws if not success
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
function unwrapResponse(result) {
|
|
176
|
+
if (isApiSuccess(result)) return result.data;
|
|
177
|
+
throw new ApiEnvelopeError(result.error);
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region ../api/src/request-error.ts
|
|
181
|
+
var ApiRequestError = class extends Error {
|
|
182
|
+
constructor(message, options) {
|
|
183
|
+
super(message);
|
|
184
|
+
this.name = "ApiRequestError";
|
|
185
|
+
this.endpoint = options.endpoint;
|
|
186
|
+
this.status = options.status;
|
|
187
|
+
this.method = options.method;
|
|
188
|
+
this.auth = options.auth;
|
|
189
|
+
this.requestId = options.requestId;
|
|
190
|
+
this.body = options.body;
|
|
191
|
+
this.cause = options.cause;
|
|
192
|
+
this.errorCode = options.errorCode;
|
|
193
|
+
this.tag = options.tag;
|
|
194
|
+
this.retryAfterMs = options.retryAfterMs;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/client/error.ts
|
|
199
|
+
let _Symbol$for;
|
|
200
|
+
_Symbol$for = Symbol.for("nodejs.util.inspect.custom");
|
|
201
|
+
/**
|
|
202
|
+
* Error thrown by SDK when API returns an error response
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```ts
|
|
206
|
+
* try {
|
|
207
|
+
* await client.getSite({ slug: 'my-site' });
|
|
208
|
+
* } catch (error) {
|
|
209
|
+
* if (error instanceof RiverbankApiError) {
|
|
210
|
+
* console.log('Error code:', error.code);
|
|
211
|
+
* console.log('Request ID:', error.requestId);
|
|
212
|
+
*
|
|
213
|
+
* if (error.isAuthError()) {
|
|
214
|
+
* // Handle authentication error
|
|
215
|
+
* }
|
|
216
|
+
*
|
|
217
|
+
* if (error.isValidationError() && error.fieldErrors) {
|
|
218
|
+
* // Handle field-level validation errors
|
|
219
|
+
* error.fieldErrors.forEach(fe => {
|
|
220
|
+
* console.log(`${fe.field}: ${fe.message}`);
|
|
221
|
+
* });
|
|
222
|
+
* }
|
|
223
|
+
*
|
|
224
|
+
* // Check if error can be retried
|
|
225
|
+
* if (error.isRetryable) {
|
|
226
|
+
* const delay = error.retryAfterMs ?? 1000;
|
|
227
|
+
* console.log(`Retrying after ${delay}ms...`);
|
|
228
|
+
* }
|
|
229
|
+
* }
|
|
230
|
+
* }
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
var RiverbankApiError = class RiverbankApiError extends Error {
|
|
234
|
+
constructor(apiError) {
|
|
235
|
+
super(apiError.message);
|
|
236
|
+
this.name = "RiverbankApiError";
|
|
237
|
+
if ("cause" in apiError && apiError.cause) this.cause = apiError.cause;
|
|
238
|
+
this.code = apiError.code;
|
|
239
|
+
this.requestId = apiError.requestId;
|
|
240
|
+
this.status = apiError.status;
|
|
241
|
+
this.tag = apiError.tag;
|
|
242
|
+
this.fieldErrors = apiError.fieldErrors;
|
|
243
|
+
this.timestamp = apiError.timestamp;
|
|
244
|
+
this.retryAfterMs = "retryAfterMs" in apiError ? apiError.retryAfterMs : void 0;
|
|
245
|
+
this.isRetryable = this.computeRetryable();
|
|
246
|
+
Object.setPrototypeOf(this, RiverbankApiError.prototype);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Compute whether this error is retryable based on HTTP status code.
|
|
250
|
+
* - 0 (network errors - no HTTP response): retryable
|
|
251
|
+
* - 429 (rate limit): retryable
|
|
252
|
+
* - 5xx (server errors): retryable
|
|
253
|
+
* - 4xx (client errors, except 429): NOT retryable
|
|
254
|
+
*/
|
|
255
|
+
computeRetryable() {
|
|
256
|
+
if (this.status === 0) return true;
|
|
257
|
+
if (this.status === 429) return true;
|
|
258
|
+
if (this.status >= 500) return true;
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Check if this is a network error (no HTTP response received)
|
|
263
|
+
*
|
|
264
|
+
* Matches: network:connection_error, network:timeout, network:dns_error
|
|
265
|
+
*/
|
|
266
|
+
isNetworkError() {
|
|
267
|
+
return this.code.startsWith("network:");
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Check if this error matches a specific error code
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```ts
|
|
274
|
+
* if (error.is('auth:unauthenticated')) {
|
|
275
|
+
* // Redirect to login
|
|
276
|
+
* }
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
is(code) {
|
|
280
|
+
return this.code === code;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Check if this is an authentication or authorization error
|
|
284
|
+
*
|
|
285
|
+
* Matches: auth:unauthenticated, auth:token_expired, auth:token_invalid,
|
|
286
|
+
* auth:forbidden, auth:mfa_required, auth:insufficient_permissions
|
|
287
|
+
*/
|
|
288
|
+
isAuthError() {
|
|
289
|
+
return this.code.startsWith("auth:");
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Check if this is a validation error
|
|
293
|
+
*
|
|
294
|
+
* Matches: validation:invalid_input, validation:missing_field, validation:invalid_format
|
|
295
|
+
*/
|
|
296
|
+
isValidationError() {
|
|
297
|
+
return this.code.startsWith("validation:");
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Check if this is a resource error (not found, conflict, etc.)
|
|
301
|
+
*
|
|
302
|
+
* Matches: resource:not_found, resource:already_exists, resource:conflict, resource:gone
|
|
303
|
+
*/
|
|
304
|
+
isResourceError() {
|
|
305
|
+
return this.code.startsWith("resource:");
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Check if this is a rate limiting error
|
|
309
|
+
*/
|
|
310
|
+
isRateLimitError() {
|
|
311
|
+
return this.code.startsWith("rate_limit:");
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Check if this is a billing/payment error
|
|
315
|
+
*/
|
|
316
|
+
isBillingError() {
|
|
317
|
+
return this.code.startsWith("billing:");
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Check if this is a server error
|
|
321
|
+
*/
|
|
322
|
+
isServerError() {
|
|
323
|
+
return this.code.startsWith("server:");
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Returns a human-readable string representation of the error.
|
|
327
|
+
* Includes all key details for debugging.
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* "RiverbankApiError: Content keys cannot access preview content | Code: auth:forbidden | Status: 401 | RequestId: req-abc123"
|
|
331
|
+
*/
|
|
332
|
+
toString() {
|
|
333
|
+
const parts = [`RiverbankApiError: ${this.message}`];
|
|
334
|
+
if (this.code) parts.push(`Code: ${this.code}`);
|
|
335
|
+
if (this.status) parts.push(`Status: ${this.status}`);
|
|
336
|
+
if (this.requestId) parts.push(`RequestId: ${this.requestId}`);
|
|
337
|
+
return parts.join(" | ");
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Custom Node.js inspect output for better console.log display.
|
|
341
|
+
* This ensures that console.log(error) shows all relevant details
|
|
342
|
+
* instead of just "[Object]" for nested properties.
|
|
343
|
+
*/
|
|
344
|
+
[_Symbol$for]() {
|
|
345
|
+
return this.toDetailedString();
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns a detailed multi-line string for debugging.
|
|
349
|
+
* Used by the Node.js inspect symbol for console output.
|
|
350
|
+
*/
|
|
351
|
+
toDetailedString() {
|
|
352
|
+
const lines = [
|
|
353
|
+
`RiverbankApiError: ${this.message}`,
|
|
354
|
+
` Code: ${this.code}`,
|
|
355
|
+
` Status: ${this.status}`,
|
|
356
|
+
` RequestId: ${this.requestId}`,
|
|
357
|
+
` Timestamp: ${this.timestamp}`
|
|
358
|
+
];
|
|
359
|
+
if (this.isRetryable) {
|
|
360
|
+
lines.push(` Retryable: true`);
|
|
361
|
+
if (this.retryAfterMs) lines.push(` RetryAfter: ${this.retryAfterMs}ms`);
|
|
362
|
+
}
|
|
363
|
+
if (this.fieldErrors && this.fieldErrors.length > 0) {
|
|
364
|
+
lines.push(" FieldErrors:");
|
|
365
|
+
this.fieldErrors.forEach((fe) => {
|
|
366
|
+
lines.push(` - ${fe.field}: ${fe.message}`);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
return lines.join("\n");
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
const resilienceStatusSymbol = Symbol.for("riverbankcms.sdk.resilienceStatus");
|
|
373
|
+
function attachResilienceStatusToError(error, resilienceStatus) {
|
|
374
|
+
const target = error !== null && (typeof error === "object" || typeof error === "function") ? error : new Error(typeof error === "string" || typeof error === "number" || typeof error === "boolean" || typeof error === "bigint" ? String(error) : "Unknown error");
|
|
375
|
+
Object.defineProperty(target, resilienceStatusSymbol, {
|
|
376
|
+
configurable: true,
|
|
377
|
+
enumerable: false,
|
|
378
|
+
value: resilienceStatus
|
|
379
|
+
});
|
|
380
|
+
return target;
|
|
381
|
+
}
|
|
382
|
+
function getResilienceStatusFromError(error) {
|
|
383
|
+
if (error === null || typeof error !== "object" && typeof error !== "function") return;
|
|
384
|
+
return error[resilienceStatusSymbol];
|
|
385
|
+
}
|
|
386
|
+
//#endregion
|
|
387
|
+
export { ApiEnvelopeError as a, unwrapResponse as c, ApiRequestError as i, CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS as l, attachResilienceStatusToError as n, extractApiEnvelopeErrorDetails as o, getResilienceStatusFromError as r, isApiError as s, RiverbankApiError as t, defineEndpointDefinitions as u };
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { _ as parseMediaIdentifier, a as persistableMediaSchema, c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, g as parseCanonicalMediaIdentifier, h as mediaIdentifierSchema, i as mediaSchema, l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
2
|
-
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL,
|
|
2
|
+
import { a as DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION, c as parsePublishedRuntimeCacheKey, d as API_ENDPOINTS, f as buildEndpointURL, i as resolveRuntimeCachePolicy, l as parsePublishedRuntimeCacheKeyDetails, n as classifyPublishedRuntimeCacheFreshness, o as isPublishedRuntimeCacheKeyEndpoint, r as derivePublishedRuntimeCacheKey, s as normalizeRuntimePublicPath, t as createRiverbankClient, u as parsePublishedRuntimeCachePayloadSchemaVersion } from "./client-m0ylCj_f.mjs";
|
|
3
|
+
import { r as getResilienceStatusFromError, t as RiverbankApiError } from "./error-f4g44bKx.mjs";
|
|
3
4
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-BCY9z3oB.mjs";
|
|
4
5
|
import { t as SDK_CORRELATION_HEADER_NAMES } from "./types-C2eBBV6E.mjs";
|
|
5
|
-
import { t as prebuildCache } from "./prebuild-
|
|
6
|
+
import { t as prebuildCache } from "./prebuild-Cr8p8T7V.mjs";
|
|
6
7
|
import * as path from "path";
|
|
7
8
|
import * as fs from "fs";
|
|
8
9
|
//#region src/prebuild/loader.ts
|