@riverbankcms/sdk 0.144.0 → 0.145.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.
Files changed (162) hide show
  1. package/dist/{PreviewEditorSidebar-CQZNnFiM.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +4 -4
  2. package/dist/{PreviewEditorUI-DCNxnmI0.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-BJolUbr1.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +419 -348
  5. package/dist/{SiteChromeCustomizeContext-CKgEpoxi.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +2081 -1313
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
  7. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
  8. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
  9. package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
  10. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
  12. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
  13. package/dist/_dts/api/src/communications.d.ts +14 -22
  14. package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
  15. package/dist/_dts/api/src/endpoints.d.ts +105 -58
  16. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  17. package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
  18. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
  19. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
  20. package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
  21. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
  22. package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
  23. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
  24. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
  25. package/dist/_dts/api/src/types.d.ts +2 -1
  26. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
  27. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  28. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -0
  29. package/dist/_dts/blocks/src/index.d.ts +1 -1
  30. package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
  31. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
  32. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
  33. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
  34. package/dist/_dts/blocks/src/server.d.ts +1 -1
  35. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
  36. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
  37. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
  39. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
  40. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
  41. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
  42. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
  43. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
  44. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
  45. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
  46. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
  47. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
  48. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
  49. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
  50. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -3
  51. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
  52. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
  53. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  54. package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
  55. package/dist/_dts/core/src/editor-state.d.ts +6 -0
  56. package/dist/_dts/core/src/index.d.ts +1 -0
  57. package/dist/_dts/core/src/public-profile.d.ts +9 -0
  58. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +663 -241
  59. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
  60. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
  61. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
  62. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
  63. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
  64. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  65. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
  66. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
  67. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  68. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
  69. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  70. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
  71. package/dist/_dts/sdk/src/client/types.d.ts +1 -1
  72. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  73. package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
  74. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  75. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
  76. package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -8
  77. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -2
  78. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
  79. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  80. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
  81. package/dist/_dts/sdk/src/version.d.ts +1 -1
  82. package/dist/_dts/surfaces/src/index.d.ts +1 -0
  83. package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
  84. package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
  85. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
  86. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
  87. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
  88. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  89. package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
  90. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
  91. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
  92. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  93. package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
  94. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
  95. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
  96. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
  97. package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
  98. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
  99. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
  100. package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
  101. package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
  102. package/dist/client/{BookingConsentAgreement-DoAILrkN.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +2 -2
  103. package/dist/client/{DiscountCodeDisclosure-X528hUTf.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +1 -1
  104. package/dist/client/{EventCombined.client-DSBVwq5m.mjs → EventCombined.client-DnsUeONl.mjs} +6 -6
  105. package/dist/client/{EventListing.client-DmFAX7Vb.mjs → EventListing.client-CNBFqJS4.mjs} +2 -2
  106. package/dist/client/{LeafletStaticMap-BAqXdfhq.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
  107. package/dist/client/{ThemedButton-BwNFVwi4.mjs → ThemedButton-LAJTNrS8.mjs} +1 -1
  108. package/dist/client/{accordion-DRhMdkbd.mjs → accordion-BcNF9TjX.mjs} +1 -1
  109. package/dist/client/{bookingForm-iJ_nCsNF.mjs → bookingForm-BUaQ3S03.mjs} +142 -50
  110. package/dist/client/bookings.mjs +191 -64
  111. package/dist/client/{carousel-D8zuffZr.mjs → carousel-CTdF6e0V.mjs} +1 -1
  112. package/dist/client/{cart-DeMGJViN.mjs → cart-pGtyf_XU.mjs} +3 -3
  113. package/dist/client/{checkout-DXc06Km2.mjs → checkout-Da9WSn7Y.mjs} +3 -3
  114. package/dist/client/client.mjs +1630 -816
  115. package/dist/client/{context-CDLCfDep.mjs → context-BFeY_Wbm.mjs} +1 -1
  116. package/dist/client/{dates-ClFx7Epy.mjs → dates-BhwVSxDg.mjs} +2 -2
  117. package/dist/client/{eventCalendar-BaGpnOGN.mjs → eventCalendar-BAtdnR4s.mjs} +9 -9
  118. package/dist/client/{eventCombined-ywONOx2m.mjs → eventCombined-RksA3tRC.mjs} +4 -4
  119. package/dist/client/{eventDetails-B2LlOTYY.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
  120. package/dist/client/{eventListing-CMgxWpqP.mjs → eventListing-BpJBkviM.mjs} +4 -4
  121. package/dist/client/{eventRegistration-BarLDNHR.mjs → eventRegistration-B18jFq_o.mjs} +8 -8
  122. package/dist/client/{form-BjqKaBJ7.mjs → form-Dodt8Y8t.mjs} +3 -3
  123. package/dist/client/{headerSection-CP4XDwz1.mjs → headerSection-B0qj9ttg.mjs} +3 -3
  124. package/dist/client/hooks.mjs +550 -99
  125. package/dist/client/{locationMap-C5gW-d-w.mjs → locationMap-gn-iMk7a.mjs} +3 -3
  126. package/dist/client/{newsletterForm-afXlVSA0.mjs → newsletterForm-oByLdFkr.mjs} +26 -5
  127. package/dist/client/{pricing-Bl1CAl28.mjs → pricing-BOU0_Hai.mjs} +1 -1
  128. package/dist/client/{productDetail-CvQ3jWQe.mjs → productDetail-D9v1zH2j.mjs} +3 -3
  129. package/dist/client/{productList-U874PGO7.mjs → productList-D-mItx1n.mjs} +3 -3
  130. package/dist/client/{propsDecoder-DPXtCZWP.mjs → propsDecoder-C3TP_z4x.mjs} +72 -33
  131. package/dist/client/rendering/client.mjs +900 -266
  132. package/dist/client/rendering/islands.mjs +17 -17
  133. package/dist/client/rendering.mjs +1637 -788
  134. package/dist/client/{routeIslandApiConfig-NGYiUWXu.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +1 -1
  135. package/dist/client/{scrollToBlock-0-C3DVhK.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
  136. package/dist/client/{shop-BXjXhM9P.mjs → shop-Dufw7N7o.mjs} +7 -7
  137. package/dist/client/{shop-commerce-BZ6UlWJ7.mjs → shop-commerce-gklw_hLF.mjs} +6 -6
  138. package/dist/client/{shop-commerce-store-DlSBXb3D.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
  139. package/dist/client/{shopShared-kkEOiLPA.mjs → shopShared-B5nyA41S.mjs} +4 -4
  140. package/dist/client/{useEventFilters-zvnnE1ro.mjs → useEventFilters-CLL829vy.mjs} +6 -6
  141. package/dist/preview-next/before-render.mjs +147 -77
  142. package/dist/preview-next/client/runtime.mjs +4 -4
  143. package/dist/preview-next/keepAlive.mjs +147 -77
  144. package/dist/preview-next/middleware.mjs +147 -77
  145. package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
  146. package/dist/{sdk-runtime-DFJlQt3q.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
  147. package/dist/{separator-o8GHb1xh.mjs → separator-EvdCAn4V.mjs} +1 -1
  148. package/dist/server/components.mjs +1727 -991
  149. package/dist/server/config-validation.mjs +537 -97
  150. package/dist/server/config.mjs +537 -97
  151. package/dist/server/data.mjs +549 -98
  152. package/dist/server/index.mjs +159 -81
  153. package/dist/server/next.mjs +1460 -748
  154. package/dist/server/page-converter.mjs +384 -54
  155. package/dist/server/prebuild.mjs +1 -1
  156. package/dist/server/rendering/server.mjs +1712 -973
  157. package/dist/server/rendering.mjs +1748 -1001
  158. package/dist/server/routing.mjs +624 -131
  159. package/dist/server/server.mjs +554 -138
  160. package/dist/server/theme-bridge.mjs +1192 -27
  161. package/dist/server/theme.mjs +6 -4
  162. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { U as createHostedBlockApiConfig } from "./propsDecoder-DPXtCZWP.mjs";
1
+ import { U as createHostedBlockApiConfig } from "./propsDecoder-C3TP_z4x.mjs";
2
2
  //#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
3
3
  function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
4
4
  if (readAuthority) return createHostedBlockApiConfig({
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-X528hUTf.mjs";
2
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-T9q623PQ.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, yn as assertNever$1, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
3
- import { n as useBlockApi } from "./context-CDLCfDep.mjs";
4
- import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-0-C3DVhK.mjs";
5
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-X528hUTf.mjs";
6
- import { t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
2
+ import { o as formatCommercePrice, s as formatInterval, t as defineIslandPropsDecoder, yn as assertNever$1, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
3
+ import { n as useBlockApi } from "./context-BFeY_Wbm.mjs";
4
+ import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-CWs8EIdo.mjs";
5
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-T9q623PQ.mjs";
6
+ import { t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
7
7
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
9
9
  import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
10
10
  import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
11
- import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-kkEOiLPA.mjs";
12
- import { t as addPassToCommerceCart } from "./shop-commerce-store-DlSBXb3D.mjs";
11
+ import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-B5nyA41S.mjs";
12
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-Sf1eyTaZ.mjs";
13
13
  import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
14
14
  import React, { useCallback, useEffect, useRef, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Bt as clearWorkflowFeedback, Lt as RichTextDocSchema, Wt as reportWorkflowError, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as logger, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
3
- import { n as useBlockApi } from "./context-CDLCfDep.mjs";
4
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-X528hUTf.mjs";
5
- import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
2
+ import { Bt as clearWorkflowFeedback, Lt as RichTextDocSchema, Wt as reportWorkflowError, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, vt as logger, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
3
+ import { n as useBlockApi } from "./context-BFeY_Wbm.mjs";
4
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-T9q623PQ.mjs";
5
+ import { n as ThemedButtonLink, t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
7
  import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-CW3-78uu.mjs";
8
8
  import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
9
9
  import { t as CarouselNodeClient } from "./carousel.client-jahpU9Vz.mjs";
10
10
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
11
- import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-kkEOiLPA.mjs";
12
- import { n as useCommerceCart } from "./shop-commerce-store-DlSBXb3D.mjs";
11
+ import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-B5nyA41S.mjs";
12
+ import { n as useCommerceCart } from "./shop-commerce-store-Sf1eyTaZ.mjs";
13
13
  import * as React$1 from "react";
14
14
  import { useEffect, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-DPXtCZWP.mjs";
2
+ import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-C3TP_z4x.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { D as ok, E as err } from "./colorStyles-CuJBiS-1.mjs";
3
- import { zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
4
- import { t as BlockApiProvider } from "./context-CDLCfDep.mjs";
5
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-X528hUTf.mjs";
3
+ import { zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
4
+ import { t as BlockApiProvider } from "./context-BFeY_Wbm.mjs";
5
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-T9q623PQ.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
7
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
8
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-NGYiUWXu.mjs";
8
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DzN1W0sq.mjs";
9
9
  import * as React$1 from "react";
10
10
  import { useCallback } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CuJBiS-1.mjs";
3
- import { J as normalizeCsvString, K as getEventRuntimeFiltersKey, M as isSemanticSpacing, N as resolveSpacing, W as getBlockApiReadStage, Y as normalizeOptionalId, _t as normalizeCardRole, dt as boxBackgroundSchema, ft as isCssColorLiteral, j as SEMANTIC_SPACING_VALUES, mt as resolveTokenOrCssColorValue, pt as resolveOnColorForThemeToken, q as normalizeCsvIds, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
3
+ import { J as normalizeCsvString, K as getEventRuntimeFiltersKey, M as isSemanticSpacing, N as resolveSpacing, W as getBlockApiReadStage, Y as normalizeOptionalId, _t as normalizeCardRole, dt as boxBackgroundSchema, ft as isCssColorLiteral, j as SEMANTIC_SPACING_VALUES, mt as resolveTokenOrCssColorValue, pt as resolveOnColorForThemeToken, q as normalizeCsvIds, zt as assertNever } from "./propsDecoder-C3TP_z4x.mjs";
4
4
  import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BtJ37tzS.mjs";
5
- import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-Bl1CAl28.mjs";
6
- import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-ClFx7Epy.mjs";
7
- import { n as useBlockApi } from "./context-CDLCfDep.mjs";
8
- import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
9
- import { t as LeafletStaticMap } from "./LeafletStaticMap-BAqXdfhq.mjs";
5
+ import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-BOU0_Hai.mjs";
6
+ import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-BhwVSxDg.mjs";
7
+ import { n as useBlockApi } from "./context-BFeY_Wbm.mjs";
8
+ import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-LAJTNrS8.mjs";
9
+ import { t as LeafletStaticMap } from "./LeafletStaticMap-C7higg52.mjs";
10
10
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region ../theme-core/src/palette/utils/textColor.ts
@@ -29,6 +29,75 @@ function resolvePreviewRuntimeSession(input) {
29
29
  };
30
30
  }
31
31
  //#endregion
32
+ //#region ../api/src/defineEndpointDefinitions.ts
33
+ /**
34
+ * Validates extracted endpoint descriptors while preserving each literal path,
35
+ * method, and parameter contract for the typed URL builders.
36
+ */
37
+ function defineEndpointDefinitions(definitions) {
38
+ return definitions;
39
+ }
40
+ //#endregion
41
+ //#region ../api/src/publicNewsletterEndpointDefinitions.ts
42
+ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
43
+ subscribeNewsletter: {
44
+ path: "/public/sites/{siteId}/newsletter/subscribe",
45
+ method: "POST",
46
+ tags: ["public-newsletter-{siteId}"],
47
+ auth: "public",
48
+ responseKind: "json"
49
+ },
50
+ confirmNewsletter: {
51
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}",
52
+ method: "GET",
53
+ tags: ["public-newsletter-{siteId}"],
54
+ auth: "public",
55
+ responseKind: "text"
56
+ },
57
+ unsubscribeNewsletter: {
58
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
59
+ method: "GET",
60
+ tags: ["public-newsletter-{siteId}"],
61
+ auth: "public",
62
+ responseKind: "text"
63
+ },
64
+ unsubscribeNewsletterPost: {
65
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
66
+ method: "POST",
67
+ tags: ["public-newsletter-{siteId}"],
68
+ auth: "public",
69
+ responseKind: "text"
70
+ },
71
+ confirmNewsletterPost: {
72
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}",
73
+ method: "POST",
74
+ tags: ["public-newsletter-{siteId}"],
75
+ auth: "public",
76
+ responseKind: "text"
77
+ },
78
+ getNewsletterPreferences: {
79
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}",
80
+ method: "GET",
81
+ tags: ["public-newsletter-{siteId}"],
82
+ auth: "public",
83
+ responseKind: "text"
84
+ },
85
+ saveNewsletterPreferences: {
86
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}",
87
+ method: "POST",
88
+ tags: ["public-newsletter-{siteId}"],
89
+ auth: "public",
90
+ responseKind: "text"
91
+ },
92
+ getNewsletterArchive: {
93
+ path: "/public/sites/{siteId}/newsletter/archive/{token}",
94
+ method: "GET",
95
+ tags: ["public-newsletter-{siteId}"],
96
+ auth: "public",
97
+ responseKind: "text"
98
+ }
99
+ });
100
+ //#endregion
32
101
  //#region ../api/src/apiEndpointTypes.ts
33
102
  function allowedDemoMutationPolicy() {
34
103
  return {
@@ -120,17 +189,85 @@ const SDK_ENTRY_READ_ENDPOINTS = {
120
189
  }
121
190
  };
122
191
  //#endregion
123
- //#region ../api/src/defineEndpointDefinitions.ts
124
- /**
125
- * Validates extracted endpoint descriptors while preserving each literal path,
126
- * method, and parameter contract for the typed URL builders.
127
- */
128
- function defineEndpointDefinitions(definitions) {
129
- return definitions;
130
- }
131
- //#endregion
132
192
  //#region ../api/src/appointmentEndpointDefinitions.ts
133
193
  const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
194
+ ...defineEndpointDefinitions({
195
+ listGroupedAppointmentServices: {
196
+ path: "/sites/{siteId}/bookings/services/grouped",
197
+ method: "GET",
198
+ auth: "user",
199
+ responseKind: "json",
200
+ errors: ["server:internal_error"]
201
+ },
202
+ reorderAppointmentServices: {
203
+ path: "/sites/{siteId}/bookings/services/order",
204
+ method: "PUT",
205
+ auth: "user",
206
+ responseKind: "json",
207
+ errors: [
208
+ "validation:invalid_input",
209
+ "auth:forbidden",
210
+ "resource:not_found",
211
+ "resource:conflict",
212
+ "server:internal_error"
213
+ ]
214
+ },
215
+ listAppointmentServiceCategories: {
216
+ path: "/sites/{siteId}/bookings/service-categories",
217
+ method: "GET",
218
+ auth: "user",
219
+ responseKind: "json",
220
+ errors: ["server:internal_error"]
221
+ },
222
+ createAppointmentServiceCategory: {
223
+ path: "/sites/{siteId}/bookings/service-categories",
224
+ method: "POST",
225
+ auth: "user",
226
+ responseKind: "json",
227
+ errors: [
228
+ "validation:invalid_input",
229
+ "auth:forbidden",
230
+ "resource:conflict",
231
+ "server:internal_error"
232
+ ]
233
+ },
234
+ updateAppointmentServiceCategory: {
235
+ path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
236
+ method: "PUT",
237
+ auth: "user",
238
+ responseKind: "json",
239
+ errors: [
240
+ "validation:invalid_input",
241
+ "auth:forbidden",
242
+ "resource:not_found",
243
+ "resource:conflict",
244
+ "server:internal_error"
245
+ ]
246
+ },
247
+ deleteAppointmentServiceCategory: {
248
+ path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
249
+ method: "DELETE",
250
+ auth: "user",
251
+ responseKind: "json",
252
+ errors: [
253
+ "auth:forbidden",
254
+ "resource:not_found",
255
+ "server:internal_error"
256
+ ]
257
+ },
258
+ reorderAppointmentServiceCategories: {
259
+ path: "/sites/{siteId}/bookings/service-categories/order",
260
+ method: "PUT",
261
+ auth: "user",
262
+ responseKind: "json",
263
+ errors: [
264
+ "validation:invalid_input",
265
+ "auth:forbidden",
266
+ "resource:conflict",
267
+ "server:internal_error"
268
+ ]
269
+ }
270
+ }),
134
271
  listAppointmentResources: {
135
272
  path: "/sites/{siteId}/bookings/resources",
136
273
  method: "GET",
@@ -1278,39 +1415,6 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1278
1415
  auth: "user",
1279
1416
  responseKind: "json",
1280
1417
  demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
1281
- },
1282
- listNewsletterSendJobs: {
1283
- path: "/sites/{siteId}/newsletter/jobs",
1284
- method: "GET",
1285
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1286
- auth: "user",
1287
- responseKind: "json"
1288
- },
1289
- retryNewsletterSendJob: {
1290
- path: "/sites/{siteId}/newsletter/jobs/{jobId}/retry",
1291
- method: "POST",
1292
- errors: [
1293
- "validation:invalid_input",
1294
- "resource:not_found",
1295
- "auth:forbidden",
1296
- "server:internal_error"
1297
- ],
1298
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1299
- auth: "user",
1300
- responseKind: "json"
1301
- },
1302
- cancelNewsletterSendJob: {
1303
- path: "/sites/{siteId}/newsletter/jobs/{jobId}/cancel",
1304
- method: "POST",
1305
- errors: [
1306
- "validation:invalid_input",
1307
- "resource:not_found",
1308
- "auth:forbidden",
1309
- "server:internal_error"
1310
- ],
1311
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1312
- auth: "user",
1313
- responseKind: "json"
1314
1418
  }
1315
1419
  });
1316
1420
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
@@ -2126,6 +2230,7 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2126
2230
  }
2127
2231
  });
2128
2232
  const API_ENDPOINTS = {
2233
+ ...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
2129
2234
  ...ACCOUNT_ENDPOINT_DEFINITIONS,
2130
2235
  ...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
2131
2236
  ...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
@@ -5260,41 +5365,6 @@ const API_ENDPOINTS = {
5260
5365
  "server:internal_error"
5261
5366
  ]
5262
5367
  },
5263
- subscribeNewsletter: {
5264
- path: "/public/sites/{siteId}/newsletter/subscribe",
5265
- method: "POST",
5266
- tags: ["public-newsletter-{siteId}"],
5267
- auth: "public",
5268
- responseKind: "json"
5269
- },
5270
- confirmNewsletter: {
5271
- path: "/public/sites/{siteId}/newsletter/confirm/{token}",
5272
- method: "GET",
5273
- tags: ["public-newsletter-{siteId}"],
5274
- auth: "public",
5275
- responseKind: "text"
5276
- },
5277
- unsubscribeNewsletter: {
5278
- path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
5279
- method: "GET",
5280
- tags: ["public-newsletter-{siteId}"],
5281
- auth: "public",
5282
- responseKind: "text"
5283
- },
5284
- unsubscribeNewsletterPost: {
5285
- path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
5286
- method: "POST",
5287
- tags: ["public-newsletter-{siteId}"],
5288
- auth: "public",
5289
- responseKind: "text"
5290
- },
5291
- getNewsletterArchive: {
5292
- path: "/public/sites/{siteId}/newsletter/archive/{token}",
5293
- method: "GET",
5294
- tags: ["public-newsletter-{siteId}"],
5295
- auth: "public",
5296
- responseKind: "text"
5297
- },
5298
5368
  listSiteContentTypes: {
5299
5369
  path: "/sites/{siteId}/content-types",
5300
5370
  method: "GET",
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-BCYICImX.mjs";
2
+ import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-BxGwdOCV.mjs";
3
3
  import React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/preview-next/client/runtime.tsx
6
6
  const LazySdkPreviewMode = React.lazy(async () => {
7
- return { default: (await import("../../SdkPreviewModeRuntime-BJolUbr1.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
7
+ return { default: (await import("../../SdkPreviewModeRuntime-DYbA_4iv.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
8
8
  });
9
9
  const LazyPreviewShell = React.lazy(async () => {
10
- return { default: (await import("../../sdk-runtime-DFJlQt3q.mjs")).PreviewShell };
10
+ return { default: (await import("../../sdk-runtime-D0uZFev7.mjs")).PreviewShell };
11
11
  });
12
12
  const LazyPreviewShellLayout = React.lazy(async () => {
13
- return { default: (await import("../../sdk-runtime-DFJlQt3q.mjs")).PreviewShellLayout };
13
+ return { default: (await import("../../sdk-runtime-D0uZFev7.mjs")).PreviewShellLayout };
14
14
  });
15
15
  function SdkPreviewMode(props) {
16
16
  return /* @__PURE__ */ jsx(React.Suspense, {
@@ -59,6 +59,75 @@ function decodeJwtPayload(token) {
59
59
  }
60
60
  }
61
61
  //#endregion
62
+ //#region ../api/src/defineEndpointDefinitions.ts
63
+ /**
64
+ * Validates extracted endpoint descriptors while preserving each literal path,
65
+ * method, and parameter contract for the typed URL builders.
66
+ */
67
+ function defineEndpointDefinitions(definitions) {
68
+ return definitions;
69
+ }
70
+ //#endregion
71
+ //#region ../api/src/publicNewsletterEndpointDefinitions.ts
72
+ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
73
+ subscribeNewsletter: {
74
+ path: "/public/sites/{siteId}/newsletter/subscribe",
75
+ method: "POST",
76
+ tags: ["public-newsletter-{siteId}"],
77
+ auth: "public",
78
+ responseKind: "json"
79
+ },
80
+ confirmNewsletter: {
81
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}",
82
+ method: "GET",
83
+ tags: ["public-newsletter-{siteId}"],
84
+ auth: "public",
85
+ responseKind: "text"
86
+ },
87
+ unsubscribeNewsletter: {
88
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
89
+ method: "GET",
90
+ tags: ["public-newsletter-{siteId}"],
91
+ auth: "public",
92
+ responseKind: "text"
93
+ },
94
+ unsubscribeNewsletterPost: {
95
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
96
+ method: "POST",
97
+ tags: ["public-newsletter-{siteId}"],
98
+ auth: "public",
99
+ responseKind: "text"
100
+ },
101
+ confirmNewsletterPost: {
102
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}",
103
+ method: "POST",
104
+ tags: ["public-newsletter-{siteId}"],
105
+ auth: "public",
106
+ responseKind: "text"
107
+ },
108
+ getNewsletterPreferences: {
109
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}",
110
+ method: "GET",
111
+ tags: ["public-newsletter-{siteId}"],
112
+ auth: "public",
113
+ responseKind: "text"
114
+ },
115
+ saveNewsletterPreferences: {
116
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}",
117
+ method: "POST",
118
+ tags: ["public-newsletter-{siteId}"],
119
+ auth: "public",
120
+ responseKind: "text"
121
+ },
122
+ getNewsletterArchive: {
123
+ path: "/public/sites/{siteId}/newsletter/archive/{token}",
124
+ method: "GET",
125
+ tags: ["public-newsletter-{siteId}"],
126
+ auth: "public",
127
+ responseKind: "text"
128
+ }
129
+ });
130
+ //#endregion
62
131
  //#region ../api/src/apiEndpointTypes.ts
63
132
  function allowedDemoMutationPolicy() {
64
133
  return {
@@ -150,17 +219,85 @@ const SDK_ENTRY_READ_ENDPOINTS = {
150
219
  }
151
220
  };
152
221
  //#endregion
153
- //#region ../api/src/defineEndpointDefinitions.ts
154
- /**
155
- * Validates extracted endpoint descriptors while preserving each literal path,
156
- * method, and parameter contract for the typed URL builders.
157
- */
158
- function defineEndpointDefinitions(definitions) {
159
- return definitions;
160
- }
161
- //#endregion
162
222
  //#region ../api/src/appointmentEndpointDefinitions.ts
163
223
  const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
224
+ ...defineEndpointDefinitions({
225
+ listGroupedAppointmentServices: {
226
+ path: "/sites/{siteId}/bookings/services/grouped",
227
+ method: "GET",
228
+ auth: "user",
229
+ responseKind: "json",
230
+ errors: ["server:internal_error"]
231
+ },
232
+ reorderAppointmentServices: {
233
+ path: "/sites/{siteId}/bookings/services/order",
234
+ method: "PUT",
235
+ auth: "user",
236
+ responseKind: "json",
237
+ errors: [
238
+ "validation:invalid_input",
239
+ "auth:forbidden",
240
+ "resource:not_found",
241
+ "resource:conflict",
242
+ "server:internal_error"
243
+ ]
244
+ },
245
+ listAppointmentServiceCategories: {
246
+ path: "/sites/{siteId}/bookings/service-categories",
247
+ method: "GET",
248
+ auth: "user",
249
+ responseKind: "json",
250
+ errors: ["server:internal_error"]
251
+ },
252
+ createAppointmentServiceCategory: {
253
+ path: "/sites/{siteId}/bookings/service-categories",
254
+ method: "POST",
255
+ auth: "user",
256
+ responseKind: "json",
257
+ errors: [
258
+ "validation:invalid_input",
259
+ "auth:forbidden",
260
+ "resource:conflict",
261
+ "server:internal_error"
262
+ ]
263
+ },
264
+ updateAppointmentServiceCategory: {
265
+ path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
266
+ method: "PUT",
267
+ auth: "user",
268
+ responseKind: "json",
269
+ errors: [
270
+ "validation:invalid_input",
271
+ "auth:forbidden",
272
+ "resource:not_found",
273
+ "resource:conflict",
274
+ "server:internal_error"
275
+ ]
276
+ },
277
+ deleteAppointmentServiceCategory: {
278
+ path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
279
+ method: "DELETE",
280
+ auth: "user",
281
+ responseKind: "json",
282
+ errors: [
283
+ "auth:forbidden",
284
+ "resource:not_found",
285
+ "server:internal_error"
286
+ ]
287
+ },
288
+ reorderAppointmentServiceCategories: {
289
+ path: "/sites/{siteId}/bookings/service-categories/order",
290
+ method: "PUT",
291
+ auth: "user",
292
+ responseKind: "json",
293
+ errors: [
294
+ "validation:invalid_input",
295
+ "auth:forbidden",
296
+ "resource:conflict",
297
+ "server:internal_error"
298
+ ]
299
+ }
300
+ }),
164
301
  listAppointmentResources: {
165
302
  path: "/sites/{siteId}/bookings/resources",
166
303
  method: "GET",
@@ -1308,39 +1445,6 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1308
1445
  auth: "user",
1309
1446
  responseKind: "json",
1310
1447
  demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
1311
- },
1312
- listNewsletterSendJobs: {
1313
- path: "/sites/{siteId}/newsletter/jobs",
1314
- method: "GET",
1315
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1316
- auth: "user",
1317
- responseKind: "json"
1318
- },
1319
- retryNewsletterSendJob: {
1320
- path: "/sites/{siteId}/newsletter/jobs/{jobId}/retry",
1321
- method: "POST",
1322
- errors: [
1323
- "validation:invalid_input",
1324
- "resource:not_found",
1325
- "auth:forbidden",
1326
- "server:internal_error"
1327
- ],
1328
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1329
- auth: "user",
1330
- responseKind: "json"
1331
- },
1332
- cancelNewsletterSendJob: {
1333
- path: "/sites/{siteId}/newsletter/jobs/{jobId}/cancel",
1334
- method: "POST",
1335
- errors: [
1336
- "validation:invalid_input",
1337
- "resource:not_found",
1338
- "auth:forbidden",
1339
- "server:internal_error"
1340
- ],
1341
- tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
1342
- auth: "user",
1343
- responseKind: "json"
1344
1448
  }
1345
1449
  });
1346
1450
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
@@ -2156,6 +2260,7 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2156
2260
  }
2157
2261
  });
2158
2262
  const API_ENDPOINTS = {
2263
+ ...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
2159
2264
  ...ACCOUNT_ENDPOINT_DEFINITIONS,
2160
2265
  ...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
2161
2266
  ...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
@@ -5290,41 +5395,6 @@ const API_ENDPOINTS = {
5290
5395
  "server:internal_error"
5291
5396
  ]
5292
5397
  },
5293
- subscribeNewsletter: {
5294
- path: "/public/sites/{siteId}/newsletter/subscribe",
5295
- method: "POST",
5296
- tags: ["public-newsletter-{siteId}"],
5297
- auth: "public",
5298
- responseKind: "json"
5299
- },
5300
- confirmNewsletter: {
5301
- path: "/public/sites/{siteId}/newsletter/confirm/{token}",
5302
- method: "GET",
5303
- tags: ["public-newsletter-{siteId}"],
5304
- auth: "public",
5305
- responseKind: "text"
5306
- },
5307
- unsubscribeNewsletter: {
5308
- path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
5309
- method: "GET",
5310
- tags: ["public-newsletter-{siteId}"],
5311
- auth: "public",
5312
- responseKind: "text"
5313
- },
5314
- unsubscribeNewsletterPost: {
5315
- path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
5316
- method: "POST",
5317
- tags: ["public-newsletter-{siteId}"],
5318
- auth: "public",
5319
- responseKind: "text"
5320
- },
5321
- getNewsletterArchive: {
5322
- path: "/public/sites/{siteId}/newsletter/archive/{token}",
5323
- method: "GET",
5324
- tags: ["public-newsletter-{siteId}"],
5325
- auth: "public",
5326
- responseKind: "text"
5327
- },
5328
5398
  listSiteContentTypes: {
5329
5399
  path: "/sites/{siteId}/content-types",
5330
5400
  method: "GET",