@riverbankcms/sdk 0.146.0 → 0.147.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/CHANGELOG.md +12 -0
- package/dist/{PreviewEditorSidebar-kg2r2Fyi.mjs → PreviewEditorSidebar-DtpB3_sS.mjs} +51 -33
- package/dist/{PreviewEditorUI-sWMLp5dT.mjs → PreviewEditorUI-DxTLgaHo.mjs} +3 -3
- package/dist/{PreviewQueryProvider-Cg51xq1w.mjs → PreviewQueryProvider-Dd4dxOiU.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-h2ti3Hch.mjs → SdkPreviewModeRuntime-DMMNCngt.mjs} +39 -12
- package/dist/{SiteChromeCustomizeContext-DEACFH9m.mjs → SiteChromeCustomizeContext-DQXZXiqS.mjs} +2499 -1682
- package/dist/_dts/ai/src/contracts/proposals.d.ts +198 -0
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +18 -0
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/bookingConfig.d.ts +16 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -13
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -44
- package/dist/_dts/api/src/bookingPeople.d.ts +92 -0
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +38 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +11 -49
- package/dist/_dts/api/src/bookingSettingsSections.d.ts +1 -1
- package/dist/_dts/api/src/bookings.d.ts +1 -0
- package/dist/_dts/api/src/endpoints.d.ts +587 -561
- package/dist/_dts/api/src/eventManagementContracts.d.ts +23 -8
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/launchReadiness.d.ts +1 -6
- package/dist/_dts/api/src/mailingListIntegration.d.ts +6 -0
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +1 -1
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +15 -0
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +19 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +48 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +7 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +15 -0
- package/dist/_dts/api/src/sdkCourseBooking.d.ts +4 -4
- package/dist/_dts/api/src/siteLifecycleEndpoints.d.ts +61 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +5 -18
- package/dist/_dts/api/src/siteOnboarding.d.ts +2 -14
- package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -4
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -0
- package/dist/_dts/blocks/src/index.d.ts +1 -1
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +22 -4
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +4 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-choice.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-state.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-success.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.block-submission.d.ts +2 -4
- package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/BookingMailingListNote.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/mailingListSignupCopy.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -2
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -3
- package/dist/_dts/core/src/index.d.ts +1 -1
- package/dist/_dts/core/src/mailing-list-runtime.d.ts +15 -0
- package/dist/_dts/core/src/mailing-list-setup.d.ts +2 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -0
- package/dist/_dts/core/src/navigation-portal-labels.d.ts +9 -0
- package/dist/_dts/core/src/participants.d.ts +0 -38
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +102 -22
- package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +4 -3
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +2 -2
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +13 -0
- package/dist/_dts/theme-core/src/footer/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/effectiveNavLinkStyle.d.ts +17 -0
- package/dist/_dts/theme-core/src/header/generateHeaderLogoStyles.d.ts +15 -0
- package/dist/_dts/theme-core/src/header/generateHeaderNavLinkStyles.d.ts +4 -0
- package/dist/_dts/theme-core/src/header/index.d.ts +3 -0
- package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/openingForegroundProjection.d.ts +7 -0
- package/dist/_dts/theme-core/src/header/rootPaint.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/effectPolicy.d.ts +38 -0
- package/dist/_dts/theme-core/src/navigation/generateNavLinkCSS.d.ts +4 -0
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/foregroundContract.d.ts +7 -0
- package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +29 -22
- package/dist/_dts/theme-core/src/surfaces/foregroundRoles.d.ts +10 -2
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +9 -0
- package/dist/_dts/theme-core/src/utils/cssDeclarations.d.ts +2 -0
- package/dist/_dts/ui/src/badge.d.ts +2 -1
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/combobox-keys.d.ts +23 -0
- package/dist/_dts/ui/src/combobox-rows.d.ts +34 -0
- package/dist/_dts/ui/src/combobox.d.ts +26 -1
- package/dist/_dts/ui/src/date-picker.d.ts +5 -8
- package/dist/_dts/ui/src/editor-item-card.d.ts +1 -0
- package/dist/_dts/ui/src/field-trigger.d.ts +39 -0
- package/dist/_dts/ui/src/fieldControl.d.ts +27 -0
- package/dist/_dts/ui/src/index.d.ts +4 -1
- package/dist/_dts/ui/src/native-select.d.ts +8 -0
- package/dist/_dts/ui/src/popover.d.ts +7 -1
- package/dist/_dts/ui/src/segmented-control.d.ts +4 -0
- package/dist/_dts/ui/src/surface.d.ts +1 -1
- package/dist/client/{BookingConsentAgreement-BQKL045f.mjs → BookingMailingListNote-1n4Ch_u_.mjs} +15 -4
- package/dist/client/{CheckboxChoice--W2n6yKs.mjs → CheckboxChoice-B33MqoUo.mjs} +1 -1
- package/dist/client/{DiscountCodeDisclosure-CsOtjFY7.mjs → DiscountCodeDisclosure-CKJtz0mY.mjs} +1 -1
- package/dist/client/{EventCombined.client-BdRjVbhH.mjs → EventCombined.client-C0pgma9y.mjs} +7 -7
- package/dist/client/{EventListing.client-DBxC6xOU.mjs → EventListing.client-4fhLOvHP.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-mHEJKrTs.mjs → LeafletStaticMap-DScC4F3w.mjs} +1 -1
- package/dist/client/{scrollToBlock-BNgaEUpo.mjs → TerminalPanel-B5ZUsYhe.mjs} +77 -77
- package/dist/client/{ThemedButton-CE5KYT6z.mjs → ThemedButton-DoVIV1Ao.mjs} +2 -2
- package/dist/client/{accordion-BEQNSptH.mjs → accordion-CoT5g7zo.mjs} +1 -1
- package/dist/client/{bookingForm-AMr-s5vw.mjs → bookingForm-BWxB46xD.mjs} +226 -106
- package/dist/client/bookings.mjs +367 -188
- package/dist/client/{carousel-Bbt_QgJy.mjs → carousel-DtNYWFd3.mjs} +2 -2
- package/dist/client/{carousel.client-jahpU9Vz.mjs → carousel.client-A2lG-9od.mjs} +1 -1
- package/dist/client/{cart-CnWi30zJ.mjs → cart-z4qZih1Y.mjs} +3 -3
- package/dist/client/{checkout-f3nkWgd4.mjs → checkout-DpL7euFH.mjs} +3 -3
- package/dist/client/{checkoutUrls-CW3-78uu.mjs → checkoutUrls-BEfR7kVu.mjs} +1 -1
- package/dist/client/client.mjs +2125 -1420
- package/dist/client/{colorStyles-CuJBiS-1.mjs → colorStyles-j5U9v5JA.mjs} +5 -1
- package/dist/client/{context-Bc8T6pCe.mjs → context-C8TinPJc.mjs} +1 -1
- package/dist/client/{dates-DUsCEzLb.mjs → dates-vwwxTeB0.mjs} +2 -2
- package/dist/client/{eventCalendar-CKwgXui5.mjs → eventCalendar-DIbHfJXO.mjs} +10 -10
- package/dist/client/{eventCombined-CBAOSTGR.mjs → eventCombined-DoGMJ6cg.mjs} +4 -4
- package/dist/client/{eventDetails-Dh-_WiBD.mjs → eventDetails-BjN9v6a1.mjs} +4 -4
- package/dist/client/{eventListing-CA3frIH5.mjs → eventListing-DajjWgOv.mjs} +4 -4
- package/dist/client/{eventRegistration-BHtsgdcg.mjs → eventRegistration-DMq9gMA-.mjs} +109 -41
- package/dist/client/{form-C2h3YAcg.mjs → form-Qf6qTbos.mjs} +5 -5
- package/dist/client/{headerSection-lwMuMTH9.mjs → headerSection-D7qJrqFX.mjs} +3 -3
- package/dist/client/hooks.mjs +661 -116
- package/dist/client/{locationMap-DJ2bLODV.mjs → locationMap-CCF9-t_0.mjs} +4 -4
- package/dist/client/{FieldValidationMessage-AYanWFb-.mjs → mailingListSignupCopy-DZSHZrm6.mjs} +14 -1
- package/dist/client/{media-BtJ37tzS.mjs → media-CwBGetqC.mjs} +1 -1
- package/dist/client/{newsletterForm-8Pu5K32g.mjs → newsletterForm-DzCLSP4S.mjs} +6 -6
- package/dist/client/{pricing-HHx3IgBz.mjs → pricing-Cgxv2KLC.mjs} +1 -1
- package/dist/client/{productDetail-C_1odnAf.mjs → productDetail-ru9w5GHx.mjs} +3 -3
- package/dist/client/{productList-CtCv-Nmx.mjs → productList-zaapKSl-.mjs} +3 -3
- package/dist/client/{propsDecoder-Dcgsncxb.mjs → propsDecoder-CwvvNOHx.mjs} +52 -6
- package/dist/client/rendering/client.mjs +951 -369
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2153 -1393
- package/dist/client/{routeIslandApiConfig-CWLP7wu3.mjs → routeIslandApiConfig-BwVFo0Y4.mjs} +1 -1
- package/dist/client/{shop-commerce-B88zmWWo.mjs → shop-commerce-De7gEnkA.mjs} +8 -8
- package/dist/client/{shop-commerce-store-DtSfkKuX.mjs → shop-commerce-store-B3MCxIBW.mjs} +1 -1
- package/dist/client/{shop-DQXrQ8kJ.mjs → shop-mktkXvbV.mjs} +7 -7
- package/dist/client/{shopShared-cuaONpkJ.mjs → shopShared-TqExh235.mjs} +5 -5
- package/dist/client/{useEventFilters-Bukew6Gb.mjs → useEventFilters-n_OjkIjX.mjs} +8 -8
- package/dist/preview-next/before-render.mjs +122 -50
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/editor-base.css +53 -2
- package/dist/preview-next/editor-chrome.css +7 -4
- package/dist/preview-next/keepAlive.mjs +122 -50
- package/dist/preview-next/middleware.mjs +122 -50
- package/dist/{previewAuthStore-h5IgbSp4.mjs → previewAuthStore-C_EHQ5XA.mjs} +122 -50
- package/dist/{sdk-runtime-DTc1uIXn.mjs → sdk-runtime-BIkJg5y1.mjs} +2 -2
- package/dist/{separator-BpHS1KZK.mjs → separator-C9qDP95Z.mjs} +1 -1
- package/dist/server/components.mjs +25345 -24942
- package/dist/server/config-validation.mjs +711 -163
- package/dist/server/config.mjs +711 -163
- package/dist/server/data.mjs +709 -162
- package/dist/server/index.mjs +123 -51
- package/dist/server/navigation.mjs +13 -2
- package/dist/server/next.mjs +4538 -4169
- package/dist/server/page-converter.mjs +107 -64
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2509 -2104
- package/dist/server/rendering.mjs +25526 -25104
- package/dist/server/routing.mjs +750 -289
- package/dist/server/server.mjs +671 -148
- package/dist/server/theme-bridge.mjs +66 -17
- package/dist/server/theme.mjs +5 -1
- package/dist/styles/index.css +32 -4
- package/package.json +1 -1
- package/dist/_dts/core/src/participant-identity.d.ts +0 -135
|
@@ -68,6 +68,64 @@ function defineEndpointDefinitions(definitions) {
|
|
|
68
68
|
return definitions;
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
|
+
//#region ../api/src/apiEndpointTypes.ts
|
|
72
|
+
function allowedDemoMutationPolicy() {
|
|
73
|
+
return {
|
|
74
|
+
classification: "allowed",
|
|
75
|
+
publicMessage: ""
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
79
|
+
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
80
|
+
return {
|
|
81
|
+
classification,
|
|
82
|
+
publicMessage
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../api/src/demoMutationPolicies.ts
|
|
87
|
+
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
88
|
+
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
89
|
+
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
90
|
+
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region ../api/src/siteLifecycleEndpoints.ts
|
|
93
|
+
const SITE_LIFECYCLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
94
|
+
createSite: {
|
|
95
|
+
path: "/sites/manage",
|
|
96
|
+
method: "POST",
|
|
97
|
+
tags: ["site"],
|
|
98
|
+
auth: "user",
|
|
99
|
+
responseKind: "json",
|
|
100
|
+
errors: []
|
|
101
|
+
},
|
|
102
|
+
createSiteManual: {
|
|
103
|
+
path: "/sites/manual",
|
|
104
|
+
method: "POST",
|
|
105
|
+
tags: ["site"],
|
|
106
|
+
auth: "user",
|
|
107
|
+
responseKind: "json",
|
|
108
|
+
errors: []
|
|
109
|
+
},
|
|
110
|
+
updateSite: {
|
|
111
|
+
path: "/sites/manage",
|
|
112
|
+
method: "PUT",
|
|
113
|
+
tags: ["site"],
|
|
114
|
+
auth: "user",
|
|
115
|
+
responseKind: "json",
|
|
116
|
+
errors: []
|
|
117
|
+
},
|
|
118
|
+
deleteSite: {
|
|
119
|
+
path: "/sites/{siteId}",
|
|
120
|
+
method: "DELETE",
|
|
121
|
+
tags: ["site", "site-{siteId}"],
|
|
122
|
+
auth: "user",
|
|
123
|
+
responseKind: "json",
|
|
124
|
+
errors: [],
|
|
125
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
71
129
|
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
72
130
|
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
73
131
|
subscribeNewsletter: {
|
|
@@ -128,27 +186,6 @@ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
128
186
|
}
|
|
129
187
|
});
|
|
130
188
|
//#endregion
|
|
131
|
-
//#region ../api/src/apiEndpointTypes.ts
|
|
132
|
-
function allowedDemoMutationPolicy() {
|
|
133
|
-
return {
|
|
134
|
-
classification: "allowed",
|
|
135
|
-
publicMessage: ""
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
139
|
-
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
140
|
-
return {
|
|
141
|
-
classification,
|
|
142
|
-
publicMessage
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region ../api/src/demoMutationPolicies.ts
|
|
147
|
-
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
148
|
-
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
149
|
-
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
150
|
-
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
151
|
-
//#endregion
|
|
152
189
|
//#region ../api/src/cache-tags.ts
|
|
153
190
|
/**
|
|
154
191
|
* Tag templates for endpoint definitions (support `{param}` placeholders).
|
|
@@ -1175,6 +1212,20 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1175
1212
|
responseKind: "json",
|
|
1176
1213
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
1177
1214
|
},
|
|
1215
|
+
setMailingListBookingOptIn: {
|
|
1216
|
+
path: "/sites/{siteId}/mailing-list/setup/booking-opt-in",
|
|
1217
|
+
method: "PUT",
|
|
1218
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1219
|
+
auth: "user",
|
|
1220
|
+
responseKind: "json",
|
|
1221
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
1222
|
+
errors: [
|
|
1223
|
+
"auth:forbidden",
|
|
1224
|
+
"validation:invalid_input",
|
|
1225
|
+
"resource:conflict",
|
|
1226
|
+
"server:internal_error"
|
|
1227
|
+
]
|
|
1228
|
+
},
|
|
1178
1229
|
getMailingListAuthoringContext: {
|
|
1179
1230
|
path: "/sites/{siteId}/mailing-list/authoring-context",
|
|
1180
1231
|
method: "GET",
|
|
@@ -2549,6 +2600,54 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2549
2600
|
}
|
|
2550
2601
|
});
|
|
2551
2602
|
//#endregion
|
|
2603
|
+
//#region ../api/src/bookingPeopleEndpointDefinitions.ts
|
|
2604
|
+
/**
|
|
2605
|
+
* People endpoints (#1356): the People list, its CSV export, and deleting a
|
|
2606
|
+
* person when nothing is attached to them.
|
|
2607
|
+
*/
|
|
2608
|
+
const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2609
|
+
listPeople: {
|
|
2610
|
+
path: "/sites/{siteId}/bookings/people",
|
|
2611
|
+
method: "GET",
|
|
2612
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2613
|
+
auth: "user",
|
|
2614
|
+
responseKind: "json",
|
|
2615
|
+
errors: ["server:internal_error"]
|
|
2616
|
+
},
|
|
2617
|
+
exportPeopleCsv: {
|
|
2618
|
+
path: "/sites/{siteId}/bookings/people/export.csv",
|
|
2619
|
+
method: "GET",
|
|
2620
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2621
|
+
auth: "user",
|
|
2622
|
+
errors: [],
|
|
2623
|
+
responseKind: "blob"
|
|
2624
|
+
},
|
|
2625
|
+
checkPersonDeletion: {
|
|
2626
|
+
path: "/sites/{siteId}/bookings/people/{personId}/deletion-check",
|
|
2627
|
+
method: "GET",
|
|
2628
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2629
|
+
auth: "user",
|
|
2630
|
+
responseKind: "json",
|
|
2631
|
+
errors: [
|
|
2632
|
+
"auth:forbidden",
|
|
2633
|
+
"resource:not_found",
|
|
2634
|
+
"server:internal_error"
|
|
2635
|
+
]
|
|
2636
|
+
},
|
|
2637
|
+
deletePerson: {
|
|
2638
|
+
path: "/sites/{siteId}/bookings/people/{personId}",
|
|
2639
|
+
method: "DELETE",
|
|
2640
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2641
|
+
auth: "user",
|
|
2642
|
+
responseKind: "json",
|
|
2643
|
+
errors: [
|
|
2644
|
+
"auth:forbidden",
|
|
2645
|
+
"resource:not_found",
|
|
2646
|
+
"server:internal_error"
|
|
2647
|
+
]
|
|
2648
|
+
}
|
|
2649
|
+
});
|
|
2650
|
+
//#endregion
|
|
2552
2651
|
//#region ../api/src/clientErrorReporting.ts
|
|
2553
2652
|
const CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({ reportClientError: {
|
|
2554
2653
|
path: "/client/error-report",
|
|
@@ -2584,6 +2683,7 @@ z.object({
|
|
|
2584
2683
|
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable()
|
|
2585
2684
|
}).strict();
|
|
2586
2685
|
const API_ENDPOINTS = {
|
|
2686
|
+
...SITE_LIFECYCLE_ENDPOINT_DEFINITIONS,
|
|
2587
2687
|
...CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS,
|
|
2588
2688
|
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2589
2689
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
@@ -3119,13 +3219,6 @@ const API_ENDPOINTS = {
|
|
|
3119
3219
|
auth: "user",
|
|
3120
3220
|
responseKind: "json"
|
|
3121
3221
|
},
|
|
3122
|
-
createSiteManual: {
|
|
3123
|
-
path: "/sites/manual",
|
|
3124
|
-
method: "POST",
|
|
3125
|
-
tags: ["site"],
|
|
3126
|
-
auth: "user",
|
|
3127
|
-
responseKind: "json"
|
|
3128
|
-
},
|
|
3129
3222
|
listSiteMembers: {
|
|
3130
3223
|
path: "/sites/{siteId}/members",
|
|
3131
3224
|
method: "GET",
|
|
@@ -6631,21 +6724,7 @@ const API_ENDPOINTS = {
|
|
|
6631
6724
|
responseKind: "json",
|
|
6632
6725
|
errors: []
|
|
6633
6726
|
},
|
|
6634
|
-
|
|
6635
|
-
path: "/sites/{siteId}/bookings/customers",
|
|
6636
|
-
method: "GET",
|
|
6637
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6638
|
-
auth: "user",
|
|
6639
|
-
responseKind: "json"
|
|
6640
|
-
},
|
|
6641
|
-
exportBookingCustomersCsv: {
|
|
6642
|
-
path: "/sites/{siteId}/bookings/customers/export.csv",
|
|
6643
|
-
method: "GET",
|
|
6644
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6645
|
-
auth: "user",
|
|
6646
|
-
errors: [],
|
|
6647
|
-
responseKind: "blob"
|
|
6648
|
-
},
|
|
6727
|
+
...BOOKING_PEOPLE_ENDPOINT_DEFINITIONS,
|
|
6649
6728
|
createBookingCustomer: {
|
|
6650
6729
|
path: "/sites/{siteId}/bookings/customers",
|
|
6651
6730
|
method: "POST",
|
|
@@ -6736,13 +6815,6 @@ const API_ENDPOINTS = {
|
|
|
6736
6815
|
"server:internal_error"
|
|
6737
6816
|
]
|
|
6738
6817
|
},
|
|
6739
|
-
listCustomerAttendances: {
|
|
6740
|
-
path: "/sites/{siteId}/bookings/customers/{customerId}/attendances",
|
|
6741
|
-
method: "GET",
|
|
6742
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6743
|
-
auth: "user",
|
|
6744
|
-
responseKind: "json"
|
|
6745
|
-
},
|
|
6746
6818
|
createPersonRecordEntry: {
|
|
6747
6819
|
path: "/sites/{siteId}/bookings/person-records/entries",
|
|
6748
6820
|
method: "POST",
|
|
@@ -40,6 +40,64 @@ function defineEndpointDefinitions(definitions) {
|
|
|
40
40
|
return definitions;
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
+
//#region ../api/src/apiEndpointTypes.ts
|
|
44
|
+
function allowedDemoMutationPolicy() {
|
|
45
|
+
return {
|
|
46
|
+
classification: "allowed",
|
|
47
|
+
publicMessage: ""
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
51
|
+
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
52
|
+
return {
|
|
53
|
+
classification,
|
|
54
|
+
publicMessage
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../api/src/demoMutationPolicies.ts
|
|
59
|
+
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
60
|
+
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
61
|
+
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
62
|
+
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../api/src/siteLifecycleEndpoints.ts
|
|
65
|
+
const SITE_LIFECYCLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
66
|
+
createSite: {
|
|
67
|
+
path: "/sites/manage",
|
|
68
|
+
method: "POST",
|
|
69
|
+
tags: ["site"],
|
|
70
|
+
auth: "user",
|
|
71
|
+
responseKind: "json",
|
|
72
|
+
errors: []
|
|
73
|
+
},
|
|
74
|
+
createSiteManual: {
|
|
75
|
+
path: "/sites/manual",
|
|
76
|
+
method: "POST",
|
|
77
|
+
tags: ["site"],
|
|
78
|
+
auth: "user",
|
|
79
|
+
responseKind: "json",
|
|
80
|
+
errors: []
|
|
81
|
+
},
|
|
82
|
+
updateSite: {
|
|
83
|
+
path: "/sites/manage",
|
|
84
|
+
method: "PUT",
|
|
85
|
+
tags: ["site"],
|
|
86
|
+
auth: "user",
|
|
87
|
+
responseKind: "json",
|
|
88
|
+
errors: []
|
|
89
|
+
},
|
|
90
|
+
deleteSite: {
|
|
91
|
+
path: "/sites/{siteId}",
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
tags: ["site", "site-{siteId}"],
|
|
94
|
+
auth: "user",
|
|
95
|
+
responseKind: "json",
|
|
96
|
+
errors: [],
|
|
97
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
43
101
|
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
44
102
|
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
45
103
|
subscribeNewsletter: {
|
|
@@ -100,27 +158,6 @@ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
100
158
|
}
|
|
101
159
|
});
|
|
102
160
|
//#endregion
|
|
103
|
-
//#region ../api/src/apiEndpointTypes.ts
|
|
104
|
-
function allowedDemoMutationPolicy() {
|
|
105
|
-
return {
|
|
106
|
-
classification: "allowed",
|
|
107
|
-
publicMessage: ""
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
111
|
-
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
112
|
-
return {
|
|
113
|
-
classification,
|
|
114
|
-
publicMessage
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region ../api/src/demoMutationPolicies.ts
|
|
119
|
-
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
120
|
-
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
121
|
-
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
122
|
-
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
123
|
-
//#endregion
|
|
124
161
|
//#region ../api/src/cache-tags.ts
|
|
125
162
|
/**
|
|
126
163
|
* Tag templates for endpoint definitions (support `{param}` placeholders).
|
|
@@ -1147,6 +1184,20 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1147
1184
|
responseKind: "json",
|
|
1148
1185
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
1149
1186
|
},
|
|
1187
|
+
setMailingListBookingOptIn: {
|
|
1188
|
+
path: "/sites/{siteId}/mailing-list/setup/booking-opt-in",
|
|
1189
|
+
method: "PUT",
|
|
1190
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1191
|
+
auth: "user",
|
|
1192
|
+
responseKind: "json",
|
|
1193
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
1194
|
+
errors: [
|
|
1195
|
+
"auth:forbidden",
|
|
1196
|
+
"validation:invalid_input",
|
|
1197
|
+
"resource:conflict",
|
|
1198
|
+
"server:internal_error"
|
|
1199
|
+
]
|
|
1200
|
+
},
|
|
1150
1201
|
getMailingListAuthoringContext: {
|
|
1151
1202
|
path: "/sites/{siteId}/mailing-list/authoring-context",
|
|
1152
1203
|
method: "GET",
|
|
@@ -2521,6 +2572,54 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2521
2572
|
}
|
|
2522
2573
|
});
|
|
2523
2574
|
//#endregion
|
|
2575
|
+
//#region ../api/src/bookingPeopleEndpointDefinitions.ts
|
|
2576
|
+
/**
|
|
2577
|
+
* People endpoints (#1356): the People list, its CSV export, and deleting a
|
|
2578
|
+
* person when nothing is attached to them.
|
|
2579
|
+
*/
|
|
2580
|
+
const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2581
|
+
listPeople: {
|
|
2582
|
+
path: "/sites/{siteId}/bookings/people",
|
|
2583
|
+
method: "GET",
|
|
2584
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2585
|
+
auth: "user",
|
|
2586
|
+
responseKind: "json",
|
|
2587
|
+
errors: ["server:internal_error"]
|
|
2588
|
+
},
|
|
2589
|
+
exportPeopleCsv: {
|
|
2590
|
+
path: "/sites/{siteId}/bookings/people/export.csv",
|
|
2591
|
+
method: "GET",
|
|
2592
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2593
|
+
auth: "user",
|
|
2594
|
+
errors: [],
|
|
2595
|
+
responseKind: "blob"
|
|
2596
|
+
},
|
|
2597
|
+
checkPersonDeletion: {
|
|
2598
|
+
path: "/sites/{siteId}/bookings/people/{personId}/deletion-check",
|
|
2599
|
+
method: "GET",
|
|
2600
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2601
|
+
auth: "user",
|
|
2602
|
+
responseKind: "json",
|
|
2603
|
+
errors: [
|
|
2604
|
+
"auth:forbidden",
|
|
2605
|
+
"resource:not_found",
|
|
2606
|
+
"server:internal_error"
|
|
2607
|
+
]
|
|
2608
|
+
},
|
|
2609
|
+
deletePerson: {
|
|
2610
|
+
path: "/sites/{siteId}/bookings/people/{personId}",
|
|
2611
|
+
method: "DELETE",
|
|
2612
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2613
|
+
auth: "user",
|
|
2614
|
+
responseKind: "json",
|
|
2615
|
+
errors: [
|
|
2616
|
+
"auth:forbidden",
|
|
2617
|
+
"resource:not_found",
|
|
2618
|
+
"server:internal_error"
|
|
2619
|
+
]
|
|
2620
|
+
}
|
|
2621
|
+
});
|
|
2622
|
+
//#endregion
|
|
2524
2623
|
//#region ../api/src/clientErrorReporting.ts
|
|
2525
2624
|
const CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({ reportClientError: {
|
|
2526
2625
|
path: "/client/error-report",
|
|
@@ -2556,6 +2655,7 @@ z.object({
|
|
|
2556
2655
|
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable()
|
|
2557
2656
|
}).strict();
|
|
2558
2657
|
const API_ENDPOINTS = {
|
|
2658
|
+
...SITE_LIFECYCLE_ENDPOINT_DEFINITIONS,
|
|
2559
2659
|
...CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS,
|
|
2560
2660
|
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2561
2661
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
@@ -3091,13 +3191,6 @@ const API_ENDPOINTS = {
|
|
|
3091
3191
|
auth: "user",
|
|
3092
3192
|
responseKind: "json"
|
|
3093
3193
|
},
|
|
3094
|
-
createSiteManual: {
|
|
3095
|
-
path: "/sites/manual",
|
|
3096
|
-
method: "POST",
|
|
3097
|
-
tags: ["site"],
|
|
3098
|
-
auth: "user",
|
|
3099
|
-
responseKind: "json"
|
|
3100
|
-
},
|
|
3101
3194
|
listSiteMembers: {
|
|
3102
3195
|
path: "/sites/{siteId}/members",
|
|
3103
3196
|
method: "GET",
|
|
@@ -6603,21 +6696,7 @@ const API_ENDPOINTS = {
|
|
|
6603
6696
|
responseKind: "json",
|
|
6604
6697
|
errors: []
|
|
6605
6698
|
},
|
|
6606
|
-
|
|
6607
|
-
path: "/sites/{siteId}/bookings/customers",
|
|
6608
|
-
method: "GET",
|
|
6609
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6610
|
-
auth: "user",
|
|
6611
|
-
responseKind: "json"
|
|
6612
|
-
},
|
|
6613
|
-
exportBookingCustomersCsv: {
|
|
6614
|
-
path: "/sites/{siteId}/bookings/customers/export.csv",
|
|
6615
|
-
method: "GET",
|
|
6616
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6617
|
-
auth: "user",
|
|
6618
|
-
errors: [],
|
|
6619
|
-
responseKind: "blob"
|
|
6620
|
-
},
|
|
6699
|
+
...BOOKING_PEOPLE_ENDPOINT_DEFINITIONS,
|
|
6621
6700
|
createBookingCustomer: {
|
|
6622
6701
|
path: "/sites/{siteId}/bookings/customers",
|
|
6623
6702
|
method: "POST",
|
|
@@ -6708,13 +6787,6 @@ const API_ENDPOINTS = {
|
|
|
6708
6787
|
"server:internal_error"
|
|
6709
6788
|
]
|
|
6710
6789
|
},
|
|
6711
|
-
listCustomerAttendances: {
|
|
6712
|
-
path: "/sites/{siteId}/bookings/customers/{customerId}/attendances",
|
|
6713
|
-
method: "GET",
|
|
6714
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6715
|
-
auth: "user",
|
|
6716
|
-
responseKind: "json"
|
|
6717
|
-
},
|
|
6718
6790
|
createPersonRecordEntry: {
|
|
6719
6791
|
path: "/sites/{siteId}/bookings/person-records/entries",
|
|
6720
6792
|
method: "POST",
|
|
@@ -11,6 +11,64 @@ function defineEndpointDefinitions(definitions) {
|
|
|
11
11
|
return definitions;
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
|
+
//#region ../api/src/apiEndpointTypes.ts
|
|
15
|
+
function allowedDemoMutationPolicy() {
|
|
16
|
+
return {
|
|
17
|
+
classification: "allowed",
|
|
18
|
+
publicMessage: ""
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
22
|
+
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
23
|
+
return {
|
|
24
|
+
classification,
|
|
25
|
+
publicMessage
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../api/src/demoMutationPolicies.ts
|
|
30
|
+
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
31
|
+
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
32
|
+
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
33
|
+
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../api/src/siteLifecycleEndpoints.ts
|
|
36
|
+
const SITE_LIFECYCLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
37
|
+
createSite: {
|
|
38
|
+
path: "/sites/manage",
|
|
39
|
+
method: "POST",
|
|
40
|
+
tags: ["site"],
|
|
41
|
+
auth: "user",
|
|
42
|
+
responseKind: "json",
|
|
43
|
+
errors: []
|
|
44
|
+
},
|
|
45
|
+
createSiteManual: {
|
|
46
|
+
path: "/sites/manual",
|
|
47
|
+
method: "POST",
|
|
48
|
+
tags: ["site"],
|
|
49
|
+
auth: "user",
|
|
50
|
+
responseKind: "json",
|
|
51
|
+
errors: []
|
|
52
|
+
},
|
|
53
|
+
updateSite: {
|
|
54
|
+
path: "/sites/manage",
|
|
55
|
+
method: "PUT",
|
|
56
|
+
tags: ["site"],
|
|
57
|
+
auth: "user",
|
|
58
|
+
responseKind: "json",
|
|
59
|
+
errors: []
|
|
60
|
+
},
|
|
61
|
+
deleteSite: {
|
|
62
|
+
path: "/sites/{siteId}",
|
|
63
|
+
method: "DELETE",
|
|
64
|
+
tags: ["site", "site-{siteId}"],
|
|
65
|
+
auth: "user",
|
|
66
|
+
responseKind: "json",
|
|
67
|
+
errors: [],
|
|
68
|
+
demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
14
72
|
//#region ../api/src/publicNewsletterEndpointDefinitions.ts
|
|
15
73
|
const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
16
74
|
subscribeNewsletter: {
|
|
@@ -71,27 +129,6 @@ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
71
129
|
}
|
|
72
130
|
});
|
|
73
131
|
//#endregion
|
|
74
|
-
//#region ../api/src/apiEndpointTypes.ts
|
|
75
|
-
function allowedDemoMutationPolicy() {
|
|
76
|
-
return {
|
|
77
|
-
classification: "allowed",
|
|
78
|
-
publicMessage: ""
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function blockedDemoMutationPolicy(classification, publicMessage) {
|
|
82
|
-
if (publicMessage.trim() === "") throw new Error(`Demo mutation policy ${classification} requires publicMessage.`);
|
|
83
|
-
return {
|
|
84
|
-
classification,
|
|
85
|
-
publicMessage
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region ../api/src/demoMutationPolicies.ts
|
|
90
|
-
const DEMO_MUTATION_BLOCKED_HIDDEN = blockedDemoMutationPolicy("blocked-hidden", "This action is not available in demo sites.");
|
|
91
|
-
const DEMO_MUTATION_BLOCKED_DISABLED = blockedDemoMutationPolicy("blocked-disabled", "This setting is disabled in demo sites.");
|
|
92
|
-
const DEMO_MUTATION_INTERNAL_ONLY = blockedDemoMutationPolicy("internal-only", "This internal operation is not available in demo sites.");
|
|
93
|
-
const DEMO_MUTATION_ALLOWED = allowedDemoMutationPolicy();
|
|
94
|
-
//#endregion
|
|
95
132
|
//#region ../api/src/cache-tags.ts
|
|
96
133
|
/**
|
|
97
134
|
* Tag templates for endpoint definitions (support `{param}` placeholders).
|
|
@@ -1118,6 +1155,20 @@ const NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1118
1155
|
responseKind: "json",
|
|
1119
1156
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
1120
1157
|
},
|
|
1158
|
+
setMailingListBookingOptIn: {
|
|
1159
|
+
path: "/sites/{siteId}/mailing-list/setup/booking-opt-in",
|
|
1160
|
+
method: "PUT",
|
|
1161
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNewsletter],
|
|
1162
|
+
auth: "user",
|
|
1163
|
+
responseKind: "json",
|
|
1164
|
+
demoMutation: DEMO_MUTATION_BLOCKED_DISABLED,
|
|
1165
|
+
errors: [
|
|
1166
|
+
"auth:forbidden",
|
|
1167
|
+
"validation:invalid_input",
|
|
1168
|
+
"resource:conflict",
|
|
1169
|
+
"server:internal_error"
|
|
1170
|
+
]
|
|
1171
|
+
},
|
|
1121
1172
|
getMailingListAuthoringContext: {
|
|
1122
1173
|
path: "/sites/{siteId}/mailing-list/authoring-context",
|
|
1123
1174
|
method: "GET",
|
|
@@ -2492,6 +2543,54 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2492
2543
|
}
|
|
2493
2544
|
});
|
|
2494
2545
|
//#endregion
|
|
2546
|
+
//#region ../api/src/bookingPeopleEndpointDefinitions.ts
|
|
2547
|
+
/**
|
|
2548
|
+
* People endpoints (#1356): the People list, its CSV export, and deleting a
|
|
2549
|
+
* person when nothing is attached to them.
|
|
2550
|
+
*/
|
|
2551
|
+
const BOOKING_PEOPLE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2552
|
+
listPeople: {
|
|
2553
|
+
path: "/sites/{siteId}/bookings/people",
|
|
2554
|
+
method: "GET",
|
|
2555
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2556
|
+
auth: "user",
|
|
2557
|
+
responseKind: "json",
|
|
2558
|
+
errors: ["server:internal_error"]
|
|
2559
|
+
},
|
|
2560
|
+
exportPeopleCsv: {
|
|
2561
|
+
path: "/sites/{siteId}/bookings/people/export.csv",
|
|
2562
|
+
method: "GET",
|
|
2563
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2564
|
+
auth: "user",
|
|
2565
|
+
errors: [],
|
|
2566
|
+
responseKind: "blob"
|
|
2567
|
+
},
|
|
2568
|
+
checkPersonDeletion: {
|
|
2569
|
+
path: "/sites/{siteId}/bookings/people/{personId}/deletion-check",
|
|
2570
|
+
method: "GET",
|
|
2571
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2572
|
+
auth: "user",
|
|
2573
|
+
responseKind: "json",
|
|
2574
|
+
errors: [
|
|
2575
|
+
"auth:forbidden",
|
|
2576
|
+
"resource:not_found",
|
|
2577
|
+
"server:internal_error"
|
|
2578
|
+
]
|
|
2579
|
+
},
|
|
2580
|
+
deletePerson: {
|
|
2581
|
+
path: "/sites/{siteId}/bookings/people/{personId}",
|
|
2582
|
+
method: "DELETE",
|
|
2583
|
+
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
2584
|
+
auth: "user",
|
|
2585
|
+
responseKind: "json",
|
|
2586
|
+
errors: [
|
|
2587
|
+
"auth:forbidden",
|
|
2588
|
+
"resource:not_found",
|
|
2589
|
+
"server:internal_error"
|
|
2590
|
+
]
|
|
2591
|
+
}
|
|
2592
|
+
});
|
|
2593
|
+
//#endregion
|
|
2495
2594
|
//#region ../api/src/clientErrorReporting.ts
|
|
2496
2595
|
const CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({ reportClientError: {
|
|
2497
2596
|
path: "/client/error-report",
|
|
@@ -2527,6 +2626,7 @@ z.object({
|
|
|
2527
2626
|
sourceLocation: z.string().max(CLIENT_ERROR_REPORT_LIMITS.sourceLocation).nullable()
|
|
2528
2627
|
}).strict();
|
|
2529
2628
|
const API_ENDPOINTS = {
|
|
2629
|
+
...SITE_LIFECYCLE_ENDPOINT_DEFINITIONS,
|
|
2530
2630
|
...CLIENT_ERROR_REPORT_ENDPOINT_DEFINITIONS,
|
|
2531
2631
|
...PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS,
|
|
2532
2632
|
...ACCOUNT_ENDPOINT_DEFINITIONS,
|
|
@@ -3062,13 +3162,6 @@ const API_ENDPOINTS = {
|
|
|
3062
3162
|
auth: "user",
|
|
3063
3163
|
responseKind: "json"
|
|
3064
3164
|
},
|
|
3065
|
-
createSiteManual: {
|
|
3066
|
-
path: "/sites/manual",
|
|
3067
|
-
method: "POST",
|
|
3068
|
-
tags: ["site"],
|
|
3069
|
-
auth: "user",
|
|
3070
|
-
responseKind: "json"
|
|
3071
|
-
},
|
|
3072
3165
|
listSiteMembers: {
|
|
3073
3166
|
path: "/sites/{siteId}/members",
|
|
3074
3167
|
method: "GET",
|
|
@@ -6574,21 +6667,7 @@ const API_ENDPOINTS = {
|
|
|
6574
6667
|
responseKind: "json",
|
|
6575
6668
|
errors: []
|
|
6576
6669
|
},
|
|
6577
|
-
|
|
6578
|
-
path: "/sites/{siteId}/bookings/customers",
|
|
6579
|
-
method: "GET",
|
|
6580
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6581
|
-
auth: "user",
|
|
6582
|
-
responseKind: "json"
|
|
6583
|
-
},
|
|
6584
|
-
exportBookingCustomersCsv: {
|
|
6585
|
-
path: "/sites/{siteId}/bookings/customers/export.csv",
|
|
6586
|
-
method: "GET",
|
|
6587
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6588
|
-
auth: "user",
|
|
6589
|
-
errors: [],
|
|
6590
|
-
responseKind: "blob"
|
|
6591
|
-
},
|
|
6670
|
+
...BOOKING_PEOPLE_ENDPOINT_DEFINITIONS,
|
|
6592
6671
|
createBookingCustomer: {
|
|
6593
6672
|
path: "/sites/{siteId}/bookings/customers",
|
|
6594
6673
|
method: "POST",
|
|
@@ -6679,13 +6758,6 @@ const API_ENDPOINTS = {
|
|
|
6679
6758
|
"server:internal_error"
|
|
6680
6759
|
]
|
|
6681
6760
|
},
|
|
6682
|
-
listCustomerAttendances: {
|
|
6683
|
-
path: "/sites/{siteId}/bookings/customers/{customerId}/attendances",
|
|
6684
|
-
method: "GET",
|
|
6685
|
-
tags: ["site-{siteId}", "customers-{siteId}"],
|
|
6686
|
-
auth: "user",
|
|
6687
|
-
responseKind: "json"
|
|
6688
|
-
},
|
|
6689
6761
|
createPersonRecordEntry: {
|
|
6690
6762
|
path: "/sites/{siteId}/bookings/person-records/entries",
|
|
6691
6763
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./PreviewQueryProvider-
|
|
3
|
-
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-
|
|
2
|
+
import "./PreviewQueryProvider-Dd4dxOiU.mjs";
|
|
3
|
+
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-DMMNCngt.mjs";
|
|
4
4
|
export { PreviewShell, PreviewShellLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ka as Primitive, Ya as cn } from "./SiteChromeCustomizeContext-
|
|
2
|
+
import { Ka as Primitive, Ya as cn } from "./SiteChromeCustomizeContext-DQXZXiqS.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
|