@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
package/dist/server/index.mjs
CHANGED
|
@@ -18,6 +18,75 @@ function encodePublicProductCategorySelector(selector) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
+
//#region ../api/src/defineEndpointDefinitions.ts
|
|
22
|
+
/**
|
|
23
|
+
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
24
|
+
* method, and parameter contract for the typed URL builders.
|
|
25
|
+
*/
|
|
26
|
+
function defineEndpointDefinitions(definitions) {
|
|
27
|
+
return definitions;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
31
|
+
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
32
|
+
subscribeNewsletter: {
|
|
33
|
+
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
34
|
+
method: "POST",
|
|
35
|
+
tags: ["public-newsletter-{siteId}"],
|
|
36
|
+
auth: "public",
|
|
37
|
+
responseKind: "json"
|
|
38
|
+
},
|
|
39
|
+
confirmNewsletter: {
|
|
40
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
41
|
+
method: "GET",
|
|
42
|
+
tags: ["public-newsletter-{siteId}"],
|
|
43
|
+
auth: "public",
|
|
44
|
+
responseKind: "text"
|
|
45
|
+
},
|
|
46
|
+
unsubscribeNewsletter: {
|
|
47
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
48
|
+
method: "GET",
|
|
49
|
+
tags: ["public-newsletter-{siteId}"],
|
|
50
|
+
auth: "public",
|
|
51
|
+
responseKind: "text"
|
|
52
|
+
},
|
|
53
|
+
unsubscribeNewsletterPost: {
|
|
54
|
+
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
55
|
+
method: "POST",
|
|
56
|
+
tags: ["public-newsletter-{siteId}"],
|
|
57
|
+
auth: "public",
|
|
58
|
+
responseKind: "text"
|
|
59
|
+
},
|
|
60
|
+
confirmNewsletterPost: {
|
|
61
|
+
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
62
|
+
method: "POST",
|
|
63
|
+
tags: ["public-newsletter-{siteId}"],
|
|
64
|
+
auth: "public",
|
|
65
|
+
responseKind: "text"
|
|
66
|
+
},
|
|
67
|
+
getNewsletterPreferences: {
|
|
68
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
69
|
+
method: "GET",
|
|
70
|
+
tags: ["public-newsletter-{siteId}"],
|
|
71
|
+
auth: "public",
|
|
72
|
+
responseKind: "text"
|
|
73
|
+
},
|
|
74
|
+
saveNewsletterPreferences: {
|
|
75
|
+
path: "/public/sites/{siteId}/newsletter/preferences/{token}",
|
|
76
|
+
method: "POST",
|
|
77
|
+
tags: ["public-newsletter-{siteId}"],
|
|
78
|
+
auth: "public",
|
|
79
|
+
responseKind: "text"
|
|
80
|
+
},
|
|
81
|
+
getNewsletterArchive: {
|
|
82
|
+
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
83
|
+
method: "GET",
|
|
84
|
+
tags: ["public-newsletter-{siteId}"],
|
|
85
|
+
auth: "public",
|
|
86
|
+
responseKind: "text"
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
21
90
|
//#region ../api/src/apiEndpointTypes.ts
|
|
22
91
|
function allowedDemoMutationPolicy() {
|
|
23
92
|
return {
|
|
@@ -109,17 +178,85 @@ const SDK_ENTRY_READ_ENDPOINTS = {
|
|
|
109
178
|
}
|
|
110
179
|
};
|
|
111
180
|
//#endregion
|
|
112
|
-
//#region ../api/src/defineEndpointDefinitions.ts
|
|
113
|
-
/**
|
|
114
|
-
* Validates extracted endpoint descriptors while preserving each literal path,
|
|
115
|
-
* method, and parameter contract for the typed URL builders.
|
|
116
|
-
*/
|
|
117
|
-
function defineEndpointDefinitions(definitions) {
|
|
118
|
-
return definitions;
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
181
|
//#region ../api/src/appointmentEndpointDefinitions.ts
|
|
122
182
|
const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
183
|
+
...defineEndpointDefinitions({
|
|
184
|
+
listGroupedAppointmentServices: {
|
|
185
|
+
path: "/sites/{siteId}/bookings/services/grouped",
|
|
186
|
+
method: "GET",
|
|
187
|
+
auth: "user",
|
|
188
|
+
responseKind: "json",
|
|
189
|
+
errors: ["server:internal_error"]
|
|
190
|
+
},
|
|
191
|
+
reorderAppointmentServices: {
|
|
192
|
+
path: "/sites/{siteId}/bookings/services/order",
|
|
193
|
+
method: "PUT",
|
|
194
|
+
auth: "user",
|
|
195
|
+
responseKind: "json",
|
|
196
|
+
errors: [
|
|
197
|
+
"validation:invalid_input",
|
|
198
|
+
"auth:forbidden",
|
|
199
|
+
"resource:not_found",
|
|
200
|
+
"resource:conflict",
|
|
201
|
+
"server:internal_error"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
listAppointmentServiceCategories: {
|
|
205
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
206
|
+
method: "GET",
|
|
207
|
+
auth: "user",
|
|
208
|
+
responseKind: "json",
|
|
209
|
+
errors: ["server:internal_error"]
|
|
210
|
+
},
|
|
211
|
+
createAppointmentServiceCategory: {
|
|
212
|
+
path: "/sites/{siteId}/bookings/service-categories",
|
|
213
|
+
method: "POST",
|
|
214
|
+
auth: "user",
|
|
215
|
+
responseKind: "json",
|
|
216
|
+
errors: [
|
|
217
|
+
"validation:invalid_input",
|
|
218
|
+
"auth:forbidden",
|
|
219
|
+
"resource:conflict",
|
|
220
|
+
"server:internal_error"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
updateAppointmentServiceCategory: {
|
|
224
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
225
|
+
method: "PUT",
|
|
226
|
+
auth: "user",
|
|
227
|
+
responseKind: "json",
|
|
228
|
+
errors: [
|
|
229
|
+
"validation:invalid_input",
|
|
230
|
+
"auth:forbidden",
|
|
231
|
+
"resource:not_found",
|
|
232
|
+
"resource:conflict",
|
|
233
|
+
"server:internal_error"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
deleteAppointmentServiceCategory: {
|
|
237
|
+
path: "/sites/{siteId}/bookings/service-categories/{categoryId}",
|
|
238
|
+
method: "DELETE",
|
|
239
|
+
auth: "user",
|
|
240
|
+
responseKind: "json",
|
|
241
|
+
errors: [
|
|
242
|
+
"auth:forbidden",
|
|
243
|
+
"resource:not_found",
|
|
244
|
+
"server:internal_error"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
reorderAppointmentServiceCategories: {
|
|
248
|
+
path: "/sites/{siteId}/bookings/service-categories/order",
|
|
249
|
+
method: "PUT",
|
|
250
|
+
auth: "user",
|
|
251
|
+
responseKind: "json",
|
|
252
|
+
errors: [
|
|
253
|
+
"validation:invalid_input",
|
|
254
|
+
"auth:forbidden",
|
|
255
|
+
"resource:conflict",
|
|
256
|
+
"server:internal_error"
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
}),
|
|
123
260
|
listAppointmentResources: {
|
|
124
261
|
path: "/sites/{siteId}/bookings/resources",
|
|
125
262
|
method: "GET",
|
|
@@ -1267,39 +1404,6 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1267
1404
|
auth: "user",
|
|
1268
1405
|
responseKind: "json",
|
|
1269
1406
|
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
1270
|
-
},
|
|
1271
|
-
listNewsletterSendJobs: {
|
|
1272
|
-
path: "/sites/{siteId}/newsletter/jobs",
|
|
1273
|
-
method: "GET",
|
|
1274
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1275
|
-
auth: "user",
|
|
1276
|
-
responseKind: "json"
|
|
1277
|
-
},
|
|
1278
|
-
retryNewsletterSendJob: {
|
|
1279
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/retry",
|
|
1280
|
-
method: "POST",
|
|
1281
|
-
errors: [
|
|
1282
|
-
"validation:invalid_input",
|
|
1283
|
-
"resource:not_found",
|
|
1284
|
-
"auth:forbidden",
|
|
1285
|
-
"server:internal_error"
|
|
1286
|
-
],
|
|
1287
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1288
|
-
auth: "user",
|
|
1289
|
-
responseKind: "json"
|
|
1290
|
-
},
|
|
1291
|
-
cancelNewsletterSendJob: {
|
|
1292
|
-
path: "/sites/{siteId}/newsletter/jobs/{jobId}/cancel",
|
|
1293
|
-
method: "POST",
|
|
1294
|
-
errors: [
|
|
1295
|
-
"validation:invalid_input",
|
|
1296
|
-
"resource:not_found",
|
|
1297
|
-
"auth:forbidden",
|
|
1298
|
-
"server:internal_error"
|
|
1299
|
-
],
|
|
1300
|
-
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1301
|
-
auth: "user",
|
|
1302
|
-
responseKind: "json"
|
|
1303
1407
|
}
|
|
1304
1408
|
});
|
|
1305
1409
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -2118,6 +2222,7 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2118
2222
|
}
|
|
2119
2223
|
});
|
|
2120
2224
|
const API_ENDPOINTS$1 = {
|
|
2225
|
+
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2121
2226
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
2122
2227
|
...PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS,
|
|
2123
2228
|
...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
|
|
@@ -5252,41 +5357,6 @@ const API_ENDPOINTS$1 = {
|
|
|
5252
5357
|
"server:internal_error"
|
|
5253
5358
|
]
|
|
5254
5359
|
},
|
|
5255
|
-
subscribeNewsletter: {
|
|
5256
|
-
path: "/public/sites/{siteId}/newsletter/subscribe",
|
|
5257
|
-
method: "POST",
|
|
5258
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5259
|
-
auth: "public",
|
|
5260
|
-
responseKind: "json"
|
|
5261
|
-
},
|
|
5262
|
-
confirmNewsletter: {
|
|
5263
|
-
path: "/public/sites/{siteId}/newsletter/confirm/{token}",
|
|
5264
|
-
method: "GET",
|
|
5265
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5266
|
-
auth: "public",
|
|
5267
|
-
responseKind: "text"
|
|
5268
|
-
},
|
|
5269
|
-
unsubscribeNewsletter: {
|
|
5270
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5271
|
-
method: "GET",
|
|
5272
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5273
|
-
auth: "public",
|
|
5274
|
-
responseKind: "text"
|
|
5275
|
-
},
|
|
5276
|
-
unsubscribeNewsletterPost: {
|
|
5277
|
-
path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}",
|
|
5278
|
-
method: "POST",
|
|
5279
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5280
|
-
auth: "public",
|
|
5281
|
-
responseKind: "text"
|
|
5282
|
-
},
|
|
5283
|
-
getNewsletterArchive: {
|
|
5284
|
-
path: "/public/sites/{siteId}/newsletter/archive/{token}",
|
|
5285
|
-
method: "GET",
|
|
5286
|
-
tags: ["public-newsletter-{siteId}"],
|
|
5287
|
-
auth: "public",
|
|
5288
|
-
responseKind: "text"
|
|
5289
|
-
},
|
|
5290
5360
|
listSiteContentTypes: {
|
|
5291
5361
|
path: "/sites/{siteId}/content-types",
|
|
5292
5362
|
method: "GET",
|
|
@@ -8254,7 +8324,7 @@ var SimpleCache = class {
|
|
|
8254
8324
|
* 1. This constant
|
|
8255
8325
|
* 2. The "version" field in package.json
|
|
8256
8326
|
*/
|
|
8257
|
-
const SDK_VERSION = "0.
|
|
8327
|
+
const SDK_VERSION = "0.145.0";
|
|
8258
8328
|
//#endregion
|
|
8259
8329
|
//#region src/client/error.ts
|
|
8260
8330
|
let _Symbol$for;
|
|
@@ -8684,7 +8754,15 @@ function buildEndpointURL(baseURL, endpoint) {
|
|
|
8684
8754
|
}
|
|
8685
8755
|
//#endregion
|
|
8686
8756
|
//#region src/client/runtimeCacheKeys.ts
|
|
8687
|
-
|
|
8757
|
+
/**
|
|
8758
|
+
* Bump when a cached payload's shape changes incompatibly, so readers skip
|
|
8759
|
+
* entries written in the old shape until publish or a live success rewrites
|
|
8760
|
+
* them.
|
|
8761
|
+
*
|
|
8762
|
+
* - 2: pages carry intent-only `runtimeJoins` in place of compiled
|
|
8763
|
+
* `runtimeBoundaries` (issue 1422).
|
|
8764
|
+
*/
|
|
8765
|
+
const DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION = 2;
|
|
8688
8766
|
function toNonEmptyString(value) {
|
|
8689
8767
|
if (value === null || value === void 0) return null;
|
|
8690
8768
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") return null;
|
|
@@ -9907,7 +9985,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
9907
9985
|
const result = await reader({
|
|
9908
9986
|
cacheKey: plan.cacheKey,
|
|
9909
9987
|
endpoint: plan.endpoint,
|
|
9910
|
-
payloadSchemaVersion:
|
|
9988
|
+
payloadSchemaVersion: 2
|
|
9911
9989
|
});
|
|
9912
9990
|
if (result.kind === "miss") return {
|
|
9913
9991
|
kind: "miss",
|
|
@@ -9956,7 +10034,7 @@ function createRiverbankClientWithDeps(deps, config) {
|
|
|
9956
10034
|
siteId: plan.siteId ?? getRuntimePayloadSiteId(payload),
|
|
9957
10035
|
freshTtlSec: plan.freshTtlSec,
|
|
9958
10036
|
staleTtlSec: plan.staleTtlSec,
|
|
9959
|
-
payloadSchemaVersion:
|
|
10037
|
+
payloadSchemaVersion: 2,
|
|
9960
10038
|
writeReason: "live_success"
|
|
9961
10039
|
});
|
|
9962
10040
|
} catch {}
|