@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.
- package/dist/{PreviewEditorSidebar-CQZNnFiM.mjs → PreviewEditorSidebar-O-V6Pl5a.mjs} +4 -4
- package/dist/{PreviewEditorUI-DCNxnmI0.mjs → PreviewEditorUI-1UlX_9cw.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-BxGwdOCV.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJolUbr1.mjs → SdkPreviewModeRuntime-DYbA_4iv.mjs} +419 -348
- package/dist/{SiteChromeCustomizeContext-CKgEpoxi.mjs → SiteChromeCustomizeContext-CNTKQ9nx.mjs} +2081 -1313
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4719 -66
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +429 -6
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
- package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -12
- package/dist/_dts/api/src/communications.d.ts +14 -22
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/endpoints.d.ts +105 -58
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +2 -0
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +0 -23
- package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
- package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -0
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -0
- package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
- package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
- package/dist/_dts/core/src/editor-state.d.ts +6 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/core/src/public-profile.d.ts +9 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +663 -241
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +6 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
- package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
- package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
- package/dist/_dts/sdk/src/client/types.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -8
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
- package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
- package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
- package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
- package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
- package/dist/client/{BookingConsentAgreement-DoAILrkN.mjs → BookingConsentAgreement-DlVOmpW4.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-X528hUTf.mjs → DiscountCodeDisclosure-T9q623PQ.mjs} +1 -1
- package/dist/client/{EventCombined.client-DSBVwq5m.mjs → EventCombined.client-DnsUeONl.mjs} +6 -6
- package/dist/client/{EventListing.client-DmFAX7Vb.mjs → EventListing.client-CNBFqJS4.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BAqXdfhq.mjs → LeafletStaticMap-C7higg52.mjs} +1 -1
- package/dist/client/{ThemedButton-BwNFVwi4.mjs → ThemedButton-LAJTNrS8.mjs} +1 -1
- package/dist/client/{accordion-DRhMdkbd.mjs → accordion-BcNF9TjX.mjs} +1 -1
- package/dist/client/{bookingForm-iJ_nCsNF.mjs → bookingForm-BUaQ3S03.mjs} +142 -50
- package/dist/client/bookings.mjs +191 -64
- package/dist/client/{carousel-D8zuffZr.mjs → carousel-CTdF6e0V.mjs} +1 -1
- package/dist/client/{cart-DeMGJViN.mjs → cart-pGtyf_XU.mjs} +3 -3
- package/dist/client/{checkout-DXc06Km2.mjs → checkout-Da9WSn7Y.mjs} +3 -3
- package/dist/client/client.mjs +1630 -816
- package/dist/client/{context-CDLCfDep.mjs → context-BFeY_Wbm.mjs} +1 -1
- package/dist/client/{dates-ClFx7Epy.mjs → dates-BhwVSxDg.mjs} +2 -2
- package/dist/client/{eventCalendar-BaGpnOGN.mjs → eventCalendar-BAtdnR4s.mjs} +9 -9
- package/dist/client/{eventCombined-ywONOx2m.mjs → eventCombined-RksA3tRC.mjs} +4 -4
- package/dist/client/{eventDetails-B2LlOTYY.mjs → eventDetails-BB9hB4wR.mjs} +4 -4
- package/dist/client/{eventListing-CMgxWpqP.mjs → eventListing-BpJBkviM.mjs} +4 -4
- package/dist/client/{eventRegistration-BarLDNHR.mjs → eventRegistration-B18jFq_o.mjs} +8 -8
- package/dist/client/{form-BjqKaBJ7.mjs → form-Dodt8Y8t.mjs} +3 -3
- package/dist/client/{headerSection-CP4XDwz1.mjs → headerSection-B0qj9ttg.mjs} +3 -3
- package/dist/client/hooks.mjs +550 -99
- package/dist/client/{locationMap-C5gW-d-w.mjs → locationMap-gn-iMk7a.mjs} +3 -3
- package/dist/client/{newsletterForm-afXlVSA0.mjs → newsletterForm-oByLdFkr.mjs} +26 -5
- package/dist/client/{pricing-Bl1CAl28.mjs → pricing-BOU0_Hai.mjs} +1 -1
- package/dist/client/{productDetail-CvQ3jWQe.mjs → productDetail-D9v1zH2j.mjs} +3 -3
- package/dist/client/{productList-U874PGO7.mjs → productList-D-mItx1n.mjs} +3 -3
- package/dist/client/{propsDecoder-DPXtCZWP.mjs → propsDecoder-C3TP_z4x.mjs} +72 -33
- package/dist/client/rendering/client.mjs +900 -266
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +1637 -788
- package/dist/client/{routeIslandApiConfig-NGYiUWXu.mjs → routeIslandApiConfig-DzN1W0sq.mjs} +1 -1
- package/dist/client/{scrollToBlock-0-C3DVhK.mjs → scrollToBlock-CWs8EIdo.mjs} +1 -1
- package/dist/client/{shop-BXjXhM9P.mjs → shop-Dufw7N7o.mjs} +7 -7
- package/dist/client/{shop-commerce-BZ6UlWJ7.mjs → shop-commerce-gklw_hLF.mjs} +6 -6
- package/dist/client/{shop-commerce-store-DlSBXb3D.mjs → shop-commerce-store-Sf1eyTaZ.mjs} +1 -1
- package/dist/client/{shopShared-kkEOiLPA.mjs → shopShared-B5nyA41S.mjs} +4 -4
- package/dist/client/{useEventFilters-zvnnE1ro.mjs → useEventFilters-CLL829vy.mjs} +6 -6
- package/dist/preview-next/before-render.mjs +147 -77
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +147 -77
- package/dist/preview-next/middleware.mjs +147 -77
- package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-BxAFlu-j.mjs} +147 -77
- package/dist/{sdk-runtime-DFJlQt3q.mjs → sdk-runtime-D0uZFev7.mjs} +2 -2
- package/dist/{separator-o8GHb1xh.mjs → separator-EvdCAn4V.mjs} +1 -1
- package/dist/server/components.mjs +1727 -991
- package/dist/server/config-validation.mjs +537 -97
- package/dist/server/config.mjs +537 -97
- package/dist/server/data.mjs +549 -98
- package/dist/server/index.mjs +159 -81
- package/dist/server/next.mjs +1460 -748
- package/dist/server/page-converter.mjs +384 -54
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1712 -973
- package/dist/server/rendering.mjs +1748 -1001
- package/dist/server/routing.mjs +624 -131
- package/dist/server/server.mjs +554 -138
- package/dist/server/theme-bridge.mjs +1192 -27
- package/dist/server/theme.mjs +6 -4
- package/package.json +2 -1
|
@@ -30,6 +30,75 @@ function setPreviewAuthCookies(res, { accessToken, refreshToken }, options) {
|
|
|
30
30
|
return res;
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region ../api/src/defineEndpointDefinitions.ts
|
|
34
|
+
/**
|
|
35
|
+
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
36
|
+
* method, and parameter contract for the typed URL builders.
|
|
37
|
+
*/
|
|
38
|
+
function defineEndpointDefinitions(definitions) {
|
|
39
|
+
return definitions;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
43
|
+
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
44
|
+
subscribeNewsletter: {
|
|
45
|
+
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
46
|
+
method: "POST",
|
|
47
|
+
tags: ["public-newsletter-{siteId}"],
|
|
48
|
+
auth: "public",
|
|
49
|
+
responseKind: "json"
|
|
50
|
+
},
|
|
51
|
+
confirmNewsletter: {
|
|
52
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
53
|
+
method: "GET",
|
|
54
|
+
tags: ["public-newsletter-{siteId}"],
|
|
55
|
+
auth: "public",
|
|
56
|
+
responseKind: "text"
|
|
57
|
+
},
|
|
58
|
+
unsubscribeNewsletter: {
|
|
59
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
60
|
+
method: "GET",
|
|
61
|
+
tags: ["public-newsletter-{siteId}"],
|
|
62
|
+
auth: "public",
|
|
63
|
+
responseKind: "text"
|
|
64
|
+
},
|
|
65
|
+
unsubscribeNewsletterPost: {
|
|
66
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
67
|
+
method: "POST",
|
|
68
|
+
tags: ["public-newsletter-{siteId}"],
|
|
69
|
+
auth: "public",
|
|
70
|
+
responseKind: "text"
|
|
71
|
+
},
|
|
72
|
+
confirmNewsletterPost: {
|
|
73
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
74
|
+
method: "POST",
|
|
75
|
+
tags: ["public-newsletter-{siteId}"],
|
|
76
|
+
auth: "public",
|
|
77
|
+
responseKind: "text"
|
|
78
|
+
},
|
|
79
|
+
getNewsletterPreferences: {
|
|
80
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
81
|
+
method: "GET",
|
|
82
|
+
tags: ["public-newsletter-{siteId}"],
|
|
83
|
+
auth: "public",
|
|
84
|
+
responseKind: "text"
|
|
85
|
+
},
|
|
86
|
+
saveNewsletterPreferences: {
|
|
87
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
88
|
+
method: "POST",
|
|
89
|
+
tags: ["public-newsletter-{siteId}"],
|
|
90
|
+
auth: "public",
|
|
91
|
+
responseKind: "text"
|
|
92
|
+
},
|
|
93
|
+
getNewsletterArchive: {
|
|
94
|
+
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
95
|
+
method: "GET",
|
|
96
|
+
tags: ["public-newsletter-{siteId}"],
|
|
97
|
+
auth: "public",
|
|
98
|
+
responseKind: "text"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
33
102
|
//#region ../api/src/apiEndpointTypes.ts
|
|
34
103
|
function allowedDemoMutationPolicy() {
|
|
35
104
|
return {
|
|
@@ -121,17 +190,85 @@ const SDK_ENTRY_READ_ENDPOINTS = {
|
|
|
121
190
|
}
|
|
122
191
|
};
|
|
123
192
|
//#endregion
|
|
124
|
-
//#region ../api/src/defineEndpointDefinitions.ts
|
|
125
|
-
/**
|
|
126
|
-
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
127
|
-
* method, and parameter contract for the typed URL builders.
|
|
128
|
-
*/
|
|
129
|
-
function defineEndpointDefinitions(definitions) {
|
|
130
|
-
return definitions;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
193
|
//#region ../api/src/appointmentEndpointDefinitions.ts
|
|
134
194
|
const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
195
|
+
...defineEndpointDefinitions({
|
|
196
|
+
listGroupedAppointmentServices: {
|
|
197
|
+
path: "/sites/{siteId}/bookings/services/grouped",
|
|
198
|
+
method: "GET",
|
|
199
|
+
auth: "user",
|
|
200
|
+
responseKind: "json",
|
|
201
|
+
errors: ["server:internal_error"]
|
|
202
|
+
},
|
|
203
|
+
reorderAppointmentServices: {
|
|
204
|
+
path: "/sites/{siteId}/bookings/services/order",
|
|
205
|
+
method: "PUT",
|
|
206
|
+
auth: "user",
|
|
207
|
+
responseKind: "json",
|
|
208
|
+
errors: [
|
|
209
|
+
"validation:invalid_input",
|
|
210
|
+
"auth:forbidden",
|
|
211
|
+
"resource:not_found",
|
|
212
|
+
"resource:conflict",
|
|
213
|
+
"server:internal_error"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
listAppointmentServiceCategories: {
|
|
217
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
218
|
+
method: "GET",
|
|
219
|
+
auth: "user",
|
|
220
|
+
responseKind: "json",
|
|
221
|
+
errors: ["server:internal_error"]
|
|
222
|
+
},
|
|
223
|
+
createAppointmentServiceCategory: {
|
|
224
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
225
|
+
method: "POST",
|
|
226
|
+
auth: "user",
|
|
227
|
+
responseKind: "json",
|
|
228
|
+
errors: [
|
|
229
|
+
"validation:invalid_input",
|
|
230
|
+
"auth:forbidden",
|
|
231
|
+
"resource:conflict",
|
|
232
|
+
"server:internal_error"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
updateAppointmentServiceCategory: {
|
|
236
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
237
|
+
method: "PUT",
|
|
238
|
+
auth: "user",
|
|
239
|
+
responseKind: "json",
|
|
240
|
+
errors: [
|
|
241
|
+
"validation:invalid_input",
|
|
242
|
+
"auth:forbidden",
|
|
243
|
+
"resource:not_found",
|
|
244
|
+
"resource:conflict",
|
|
245
|
+
"server:internal_error"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
deleteAppointmentServiceCategory: {
|
|
249
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
250
|
+
method: "DELETE",
|
|
251
|
+
auth: "user",
|
|
252
|
+
responseKind: "json",
|
|
253
|
+
errors: [
|
|
254
|
+
"auth:forbidden",
|
|
255
|
+
"resource:not_found",
|
|
256
|
+
"server:internal_error"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
reorderAppointmentServiceCategories: {
|
|
260
|
+
path: "/sites/{siteId}/bookings/service-categories/order",
|
|
261
|
+
method: "PUT",
|
|
262
|
+
auth: "user",
|
|
263
|
+
responseKind: "json",
|
|
264
|
+
errors: [
|
|
265
|
+
"validation:invalid_input",
|
|
266
|
+
"auth:forbidden",
|
|
267
|
+
"resource:conflict",
|
|
268
|
+
"server:internal_error"
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
}),
|
|
135
272
|
listAppointmentResources: {
|
|
136
273
|
path: "/sites/{siteId}/bookings/resources",
|
|
137
274
|
method: "GET",
|
|
@@ -1279,39 +1416,6 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1279
1416
|
auth: "user",
|
|
1280
1417
|
responseKind: "json",
|
|
1281
1418
|
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
1282
|
-
},
|
|
1283
|
-
listNewsletterSendJobs: {
|
|
1284
|
-
path: "/sites/{siteId}/newsletter/jobs",
|
|
1285
|
-
method: "GET",
|
|
1286
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1287
|
-
auth: "user",
|
|
1288
|
-
responseKind: "json"
|
|
1289
|
-
},
|
|
1290
|
-
retryNewsletterSendJob: {
|
|
1291
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/retry",
|
|
1292
|
-
method: "POST",
|
|
1293
|
-
errors: [
|
|
1294
|
-
"validation:invalid_input",
|
|
1295
|
-
"resource:not_found",
|
|
1296
|
-
"auth:forbidden",
|
|
1297
|
-
"server:internal_error"
|
|
1298
|
-
],
|
|
1299
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1300
|
-
auth: "user",
|
|
1301
|
-
responseKind: "json"
|
|
1302
|
-
},
|
|
1303
|
-
cancelNewsletterSendJob: {
|
|
1304
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/cancel",
|
|
1305
|
-
method: "POST",
|
|
1306
|
-
errors: [
|
|
1307
|
-
"validation:invalid_input",
|
|
1308
|
-
"resource:not_found",
|
|
1309
|
-
"auth:forbidden",
|
|
1310
|
-
"server:internal_error"
|
|
1311
|
-
],
|
|
1312
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1313
|
-
auth: "user",
|
|
1314
|
-
responseKind: "json"
|
|
1315
1419
|
}
|
|
1316
1420
|
});
|
|
1317
1421
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -2127,6 +2231,7 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2127
2231
|
}
|
|
2128
2232
|
});
|
|
2129
2233
|
const API_ENDPOINTS = {
|
|
2234
|
+
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2130
2235
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
2131
2236
|
...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
|
|
2132
2237
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
@@ -5261,41 +5366,6 @@ const API_ENDPOINTS = {
|
|
|
5261
5366
|
"server:internal_error"
|
|
5262
5367
|
]
|
|
5263
5368
|
},
|
|
5264
|
-
subscribeNewsletter: {
|
|
5265
|
-
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
5266
|
-
method: "POST",
|
|
5267
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5268
|
-
auth: "public",
|
|
5269
|
-
responseKind: "json"
|
|
5270
|
-
},
|
|
5271
|
-
confirmNewsletter: {
|
|
5272
|
-
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
5273
|
-
method: "GET",
|
|
5274
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5275
|
-
auth: "public",
|
|
5276
|
-
responseKind: "text"
|
|
5277
|
-
},
|
|
5278
|
-
unsubscribeNewsletter: {
|
|
5279
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5280
|
-
method: "GET",
|
|
5281
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5282
|
-
auth: "public",
|
|
5283
|
-
responseKind: "text"
|
|
5284
|
-
},
|
|
5285
|
-
unsubscribeNewsletterPost: {
|
|
5286
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5287
|
-
method: "POST",
|
|
5288
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5289
|
-
auth: "public",
|
|
5290
|
-
responseKind: "text"
|
|
5291
|
-
},
|
|
5292
|
-
getNewsletterArchive: {
|
|
5293
|
-
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
5294
|
-
method: "GET",
|
|
5295
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5296
|
-
auth: "public",
|
|
5297
|
-
responseKind: "text"
|
|
5298
|
-
},
|
|
5299
5369
|
listSiteContentTypes: {
|
|
5300
5370
|
path: "/sites/{siteId}/content-types",
|
|
5301
5371
|
method: "GET",
|
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { useSyncExternalStore } from "react";
|
|
4
|
+
//#region ../api/src/defineEndpointDefinitions.ts
|
|
5
|
+
/**
|
|
6
|
+
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
7
|
+
* method, and parameter contract for the typed URL builders.
|
|
8
|
+
*/
|
|
9
|
+
function defineEndpointDefinitions(definitions) {
|
|
10
|
+
return definitions;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
14
|
+
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
15
|
+
subscribeNewsletter: {
|
|
16
|
+
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
17
|
+
method: "POST",
|
|
18
|
+
tags: ["public-newsletter-{siteId}"],
|
|
19
|
+
auth: "public",
|
|
20
|
+
responseKind: "json"
|
|
21
|
+
},
|
|
22
|
+
confirmNewsletter: {
|
|
23
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
24
|
+
method: "GET",
|
|
25
|
+
tags: ["public-newsletter-{siteId}"],
|
|
26
|
+
auth: "public",
|
|
27
|
+
responseKind: "text"
|
|
28
|
+
},
|
|
29
|
+
unsubscribeNewsletter: {
|
|
30
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
31
|
+
method: "GET",
|
|
32
|
+
tags: ["public-newsletter-{siteId}"],
|
|
33
|
+
auth: "public",
|
|
34
|
+
responseKind: "text"
|
|
35
|
+
},
|
|
36
|
+
unsubscribeNewsletterPost: {
|
|
37
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
38
|
+
method: "POST",
|
|
39
|
+
tags: ["public-newsletter-{siteId}"],
|
|
40
|
+
auth: "public",
|
|
41
|
+
responseKind: "text"
|
|
42
|
+
},
|
|
43
|
+
confirmNewsletterPost: {
|
|
44
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
45
|
+
method: "POST",
|
|
46
|
+
tags: ["public-newsletter-{siteId}"],
|
|
47
|
+
auth: "public",
|
|
48
|
+
responseKind: "text"
|
|
49
|
+
},
|
|
50
|
+
getNewsletterPreferences: {
|
|
51
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
52
|
+
method: "GET",
|
|
53
|
+
tags: ["public-newsletter-{siteId}"],
|
|
54
|
+
auth: "public",
|
|
55
|
+
responseKind: "text"
|
|
56
|
+
},
|
|
57
|
+
saveNewsletterPreferences: {
|
|
58
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
59
|
+
method: "POST",
|
|
60
|
+
tags: ["public-newsletter-{siteId}"],
|
|
61
|
+
auth: "public",
|
|
62
|
+
responseKind: "text"
|
|
63
|
+
},
|
|
64
|
+
getNewsletterArchive: {
|
|
65
|
+
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
66
|
+
method: "GET",
|
|
67
|
+
tags: ["public-newsletter-{siteId}"],
|
|
68
|
+
auth: "public",
|
|
69
|
+
responseKind: "text"
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
4
73
|
//#region ../api/src/apiEndpointTypes.ts
|
|
5
74
|
function allowedDemoMutationPolicy() {
|
|
6
75
|
return {
|
|
@@ -92,17 +161,85 @@ const SDK_ENTRY_READ_ENDPOINTS = {
|
|
|
92
161
|
}
|
|
93
162
|
};
|
|
94
163
|
//#endregion
|
|
95
|
-
//#region ../api/src/defineEndpointDefinitions.ts
|
|
96
|
-
/**
|
|
97
|
-
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
98
|
-
* method, and parameter contract for the typed URL builders.
|
|
99
|
-
*/
|
|
100
|
-
function defineEndpointDefinitions(definitions) {
|
|
101
|
-
return definitions;
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
164
|
//#region ../api/src/appointmentEndpointDefinitions.ts
|
|
105
165
|
const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
166
|
+
...defineEndpointDefinitions({
|
|
167
|
+
listGroupedAppointmentServices: {
|
|
168
|
+
path: "/sites/{siteId}/bookings/services/grouped",
|
|
169
|
+
method: "GET",
|
|
170
|
+
auth: "user",
|
|
171
|
+
responseKind: "json",
|
|
172
|
+
errors: ["server:internal_error"]
|
|
173
|
+
},
|
|
174
|
+
reorderAppointmentServices: {
|
|
175
|
+
path: "/sites/{siteId}/bookings/services/order",
|
|
176
|
+
method: "PUT",
|
|
177
|
+
auth: "user",
|
|
178
|
+
responseKind: "json",
|
|
179
|
+
errors: [
|
|
180
|
+
"validation:invalid_input",
|
|
181
|
+
"auth:forbidden",
|
|
182
|
+
"resource:not_found",
|
|
183
|
+
"resource:conflict",
|
|
184
|
+
"server:internal_error"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
listAppointmentServiceCategories: {
|
|
188
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
189
|
+
method: "GET",
|
|
190
|
+
auth: "user",
|
|
191
|
+
responseKind: "json",
|
|
192
|
+
errors: ["server:internal_error"]
|
|
193
|
+
},
|
|
194
|
+
createAppointmentServiceCategory: {
|
|
195
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
196
|
+
method: "POST",
|
|
197
|
+
auth: "user",
|
|
198
|
+
responseKind: "json",
|
|
199
|
+
errors: [
|
|
200
|
+
"validation:invalid_input",
|
|
201
|
+
"auth:forbidden",
|
|
202
|
+
"resource:conflict",
|
|
203
|
+
"server:internal_error"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
updateAppointmentServiceCategory: {
|
|
207
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
208
|
+
method: "PUT",
|
|
209
|
+
auth: "user",
|
|
210
|
+
responseKind: "json",
|
|
211
|
+
errors: [
|
|
212
|
+
"validation:invalid_input",
|
|
213
|
+
"auth:forbidden",
|
|
214
|
+
"resource:not_found",
|
|
215
|
+
"resource:conflict",
|
|
216
|
+
"server:internal_error"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
deleteAppointmentServiceCategory: {
|
|
220
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
221
|
+
method: "DELETE",
|
|
222
|
+
auth: "user",
|
|
223
|
+
responseKind: "json",
|
|
224
|
+
errors: [
|
|
225
|
+
"auth:forbidden",
|
|
226
|
+
"resource:not_found",
|
|
227
|
+
"server:internal_error"
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
reorderAppointmentServiceCategories: {
|
|
231
|
+
path: "/sites/{siteId}/bookings/service-categories/order",
|
|
232
|
+
method: "PUT",
|
|
233
|
+
auth: "user",
|
|
234
|
+
responseKind: "json",
|
|
235
|
+
errors: [
|
|
236
|
+
"validation:invalid_input",
|
|
237
|
+
"auth:forbidden",
|
|
238
|
+
"resource:conflict",
|
|
239
|
+
"server:internal_error"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}),
|
|
106
243
|
listAppointmentResources: {
|
|
107
244
|
path: "/sites/{siteId}/bookings/resources",
|
|
108
245
|
method: "GET",
|
|
@@ -1250,39 +1387,6 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1250
1387
|
auth: "user",
|
|
1251
1388
|
responseKind: "json",
|
|
1252
1389
|
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
1253
|
-
},
|
|
1254
|
-
listNewsletterSendJobs: {
|
|
1255
|
-
path: "/sites/{siteId}/newsletter/jobs",
|
|
1256
|
-
method: "GET",
|
|
1257
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1258
|
-
auth: "user",
|
|
1259
|
-
responseKind: "json"
|
|
1260
|
-
},
|
|
1261
|
-
retryNewsletterSendJob: {
|
|
1262
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/retry",
|
|
1263
|
-
method: "POST",
|
|
1264
|
-
errors: [
|
|
1265
|
-
"validation:invalid_input",
|
|
1266
|
-
"resource:not_found",
|
|
1267
|
-
"auth:forbidden",
|
|
1268
|
-
"server:internal_error"
|
|
1269
|
-
],
|
|
1270
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1271
|
-
auth: "user",
|
|
1272
|
-
responseKind: "json"
|
|
1273
|
-
},
|
|
1274
|
-
cancelNewsletterSendJob: {
|
|
1275
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/cancel",
|
|
1276
|
-
method: "POST",
|
|
1277
|
-
errors: [
|
|
1278
|
-
"validation:invalid_input",
|
|
1279
|
-
"resource:not_found",
|
|
1280
|
-
"auth:forbidden",
|
|
1281
|
-
"server:internal_error"
|
|
1282
|
-
],
|
|
1283
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1284
|
-
auth: "user",
|
|
1285
|
-
responseKind: "json"
|
|
1286
1390
|
}
|
|
1287
1391
|
});
|
|
1288
1392
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -2098,6 +2202,7 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2098
2202
|
}
|
|
2099
2203
|
});
|
|
2100
2204
|
const API_ENDPOINTS = {
|
|
2205
|
+
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2101
2206
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
2102
2207
|
...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
|
|
2103
2208
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
@@ -5232,41 +5337,6 @@ const API_ENDPOINTS = {
|
|
|
5232
5337
|
"server:internal_error"
|
|
5233
5338
|
]
|
|
5234
5339
|
},
|
|
5235
|
-
subscribeNewsletter: {
|
|
5236
|
-
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
5237
|
-
method: "POST",
|
|
5238
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5239
|
-
auth: "public",
|
|
5240
|
-
responseKind: "json"
|
|
5241
|
-
},
|
|
5242
|
-
confirmNewsletter: {
|
|
5243
|
-
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
5244
|
-
method: "GET",
|
|
5245
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5246
|
-
auth: "public",
|
|
5247
|
-
responseKind: "text"
|
|
5248
|
-
},
|
|
5249
|
-
unsubscribeNewsletter: {
|
|
5250
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5251
|
-
method: "GET",
|
|
5252
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5253
|
-
auth: "public",
|
|
5254
|
-
responseKind: "text"
|
|
5255
|
-
},
|
|
5256
|
-
unsubscribeNewsletterPost: {
|
|
5257
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5258
|
-
method: "POST",
|
|
5259
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5260
|
-
auth: "public",
|
|
5261
|
-
responseKind: "text"
|
|
5262
|
-
},
|
|
5263
|
-
getNewsletterArchive: {
|
|
5264
|
-
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
5265
|
-
method: "GET",
|
|
5266
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5267
|
-
auth: "public",
|
|
5268
|
-
responseKind: "text"
|
|
5269
|
-
},
|
|
5270
5340
|
listSiteContentTypes: {
|
|
5271
5341
|
path: "/sites/{siteId}/content-types",
|
|
5272
5342
|
method: "GET",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./PreviewQueryProvider-
|
|
3
|
-
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import "./PreviewQueryProvider-BxGwdOCV.mjs";
|
|
3
|
+
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-DYbA_4iv.mjs";
|
|
4
4
|
export { PreviewShell, PreviewShellLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Ga as Primitive, Ja as cn } from "./SiteChromeCustomizeContext-CNTKQ9nx.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|