@riverbankcms/sdk 0.70.0 → 0.70.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +8 -0
- package/dist/_dts/ai/src/contracts/feedback.d.ts +55 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +34764 -0
- package/dist/_dts/ai/src/contracts.d.ts +5 -0
- package/dist/_dts/ai/src/designer/rfc6902.d.ts +16 -0
- package/dist/_dts/ai/src/designer/themePatch.d.ts +50 -0
- package/dist/_dts/api/src/aiPlayground.d.ts +1 -1
- package/dist/_dts/api/src/appointmentSetup.d.ts +19 -0
- package/dist/_dts/api/src/availability.d.ts +84 -2
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +10 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
- package/dist/_dts/api/src/endpoints.d.ts +29 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +29 -1
- package/dist/_dts/api/src/types.d.ts +1 -1
- package/dist/_dts/billing/src/components/index.d.ts +41 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +219 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +37 -0
- package/dist/_dts/sdk/src/cli/helpers.d.ts +8 -33
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +81 -0
- package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/theme.d.ts +3 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +23 -0
- package/dist/_dts/sdk/src/components.d.ts +2 -1
- package/dist/_dts/sdk/src/next/types.d.ts +4 -2
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/overrideResolution.d.ts +10 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +12 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commands.d.ts +25 -7
- package/dist/_dts/site-commands/src/metadata.d.ts +2 -2
- package/dist/cli/index.mjs +844 -108
- package/dist/client/client.mjs +256 -202
- package/dist/client/hooks.mjs +55 -1
- package/dist/client/rendering.mjs +25467 -25403
- package/dist/preview-next/before-render.mjs +39 -0
- package/dist/preview-next/client/runtime.mjs +160 -39
- package/dist/preview-next/middleware.mjs +39 -0
- package/dist/server/components.mjs +65 -1
- package/dist/server/config-validation.mjs +55 -1
- package/dist/server/config.mjs +55 -1
- package/dist/server/data.mjs +55 -1
- package/dist/server/index.mjs +40 -1
- package/dist/server/next.mjs +137 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +55 -1
- package/dist/server/rendering.mjs +65 -1
- package/dist/server/routing.mjs +56 -2
- package/dist/server/server.mjs +56 -2
- package/package.json +4 -3
|
@@ -50480,6 +50480,24 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
50480
50480
|
"server:internal_error"
|
|
50481
50481
|
]
|
|
50482
50482
|
},
|
|
50483
|
+
setServiceSpecificAvailability: {
|
|
50484
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
50485
|
+
method: "PUT",
|
|
50486
|
+
auth: "user",
|
|
50487
|
+
responseKind: "json",
|
|
50488
|
+
errors: [
|
|
50489
|
+
"validation:invalid_input",
|
|
50490
|
+
"resource:not_found",
|
|
50491
|
+
"server:internal_error"
|
|
50492
|
+
]
|
|
50493
|
+
},
|
|
50494
|
+
deleteServiceSpecificAvailability: {
|
|
50495
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
|
|
50496
|
+
method: "DELETE",
|
|
50497
|
+
auth: "user",
|
|
50498
|
+
responseKind: "json",
|
|
50499
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
50500
|
+
},
|
|
50483
50501
|
listBlackouts: {
|
|
50484
50502
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
|
|
50485
50503
|
method: "GET",
|
|
@@ -52115,6 +52133,20 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
52115
52133
|
auth: "user",
|
|
52116
52134
|
responseKind: "json"
|
|
52117
52135
|
},
|
|
52136
|
+
applySiteStyleSelection: {
|
|
52137
|
+
path: "/sites/{siteId}/theme/style-selection/apply",
|
|
52138
|
+
method: "POST",
|
|
52139
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
|
|
52140
|
+
auth: "user",
|
|
52141
|
+
errors: [
|
|
52142
|
+
"validation:invalid_input",
|
|
52143
|
+
"auth:forbidden",
|
|
52144
|
+
"resource:not_found",
|
|
52145
|
+
"resource:conflict",
|
|
52146
|
+
"server:internal_error"
|
|
52147
|
+
],
|
|
52148
|
+
responseKind: "json"
|
|
52149
|
+
},
|
|
52118
52150
|
saveSiteChromeLookSelection: {
|
|
52119
52151
|
path: "/sites/{siteId}/theme/site-chrome-look",
|
|
52120
52152
|
method: "POST",
|
|
@@ -54858,6 +54890,13 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
54858
54890
|
auth: "service",
|
|
54859
54891
|
responseKind: "json"
|
|
54860
54892
|
},
|
|
54893
|
+
sdkApplySiteStyleSelection: {
|
|
54894
|
+
path: "/sdk/{siteId}/theme/style-selection/apply",
|
|
54895
|
+
method: "POST",
|
|
54896
|
+
auth: "service",
|
|
54897
|
+
responseKind: "json",
|
|
54898
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
|
|
54899
|
+
},
|
|
54861
54900
|
sdkUpsertFooter: {
|
|
54862
54901
|
path: "/sdk/{siteId}/footer",
|
|
54863
54902
|
method: "POST",
|
|
@@ -56132,11 +56171,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z69.object({
|
|
|
56132
56171
|
startTime: z69.string(),
|
|
56133
56172
|
endTime: z69.string()
|
|
56134
56173
|
});
|
|
56174
|
+
var appointmentSetupStartTimePolicyDraftSchema = z69.discriminatedUnion("kind", [
|
|
56175
|
+
z69.object({ kind: z69.literal("automatic_spacing") }),
|
|
56176
|
+
z69.object({
|
|
56177
|
+
kind: z69.literal("regular_interval"),
|
|
56178
|
+
intervalMinutes: z69.union([
|
|
56179
|
+
z69.literal(10),
|
|
56180
|
+
z69.literal(15),
|
|
56181
|
+
z69.literal(20),
|
|
56182
|
+
z69.literal(30),
|
|
56183
|
+
z69.literal(45),
|
|
56184
|
+
z69.literal(60)
|
|
56185
|
+
])
|
|
56186
|
+
})
|
|
56187
|
+
]);
|
|
56135
56188
|
var appointmentSetupAvailabilityDraftSchema = z69.object({
|
|
56136
56189
|
kind: z69.literal("weekly_windows"),
|
|
56137
56190
|
resourceRef: appointmentSetupRefSchema,
|
|
56138
56191
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
56139
|
-
windows: z69.array(appointmentSetupWeeklyWindowDraftSchema)
|
|
56192
|
+
windows: z69.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
56193
|
+
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
56140
56194
|
});
|
|
56141
56195
|
var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
56142
56196
|
var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
|
@@ -50503,6 +50503,24 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
50503
50503
|
"server:internal_error"
|
|
50504
50504
|
]
|
|
50505
50505
|
},
|
|
50506
|
+
setServiceSpecificAvailability: {
|
|
50507
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
50508
|
+
method: "PUT",
|
|
50509
|
+
auth: "user",
|
|
50510
|
+
responseKind: "json",
|
|
50511
|
+
errors: [
|
|
50512
|
+
"validation:invalid_input",
|
|
50513
|
+
"resource:not_found",
|
|
50514
|
+
"server:internal_error"
|
|
50515
|
+
]
|
|
50516
|
+
},
|
|
50517
|
+
deleteServiceSpecificAvailability: {
|
|
50518
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
|
|
50519
|
+
method: "DELETE",
|
|
50520
|
+
auth: "user",
|
|
50521
|
+
responseKind: "json",
|
|
50522
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
50523
|
+
},
|
|
50506
50524
|
listBlackouts: {
|
|
50507
50525
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
|
|
50508
50526
|
method: "GET",
|
|
@@ -52138,6 +52156,20 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
52138
52156
|
auth: "user",
|
|
52139
52157
|
responseKind: "json"
|
|
52140
52158
|
},
|
|
52159
|
+
applySiteStyleSelection: {
|
|
52160
|
+
path: "/sites/{siteId}/theme/style-selection/apply",
|
|
52161
|
+
method: "POST",
|
|
52162
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
|
|
52163
|
+
auth: "user",
|
|
52164
|
+
errors: [
|
|
52165
|
+
"validation:invalid_input",
|
|
52166
|
+
"auth:forbidden",
|
|
52167
|
+
"resource:not_found",
|
|
52168
|
+
"resource:conflict",
|
|
52169
|
+
"server:internal_error"
|
|
52170
|
+
],
|
|
52171
|
+
responseKind: "json"
|
|
52172
|
+
},
|
|
52141
52173
|
saveSiteChromeLookSelection: {
|
|
52142
52174
|
path: "/sites/{siteId}/theme/site-chrome-look",
|
|
52143
52175
|
method: "POST",
|
|
@@ -54881,6 +54913,13 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
54881
54913
|
auth: "service",
|
|
54882
54914
|
responseKind: "json"
|
|
54883
54915
|
},
|
|
54916
|
+
sdkApplySiteStyleSelection: {
|
|
54917
|
+
path: "/sdk/{siteId}/theme/style-selection/apply",
|
|
54918
|
+
method: "POST",
|
|
54919
|
+
auth: "service",
|
|
54920
|
+
responseKind: "json",
|
|
54921
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
|
|
54922
|
+
},
|
|
54884
54923
|
sdkUpsertFooter: {
|
|
54885
54924
|
path: "/sdk/{siteId}/footer",
|
|
54886
54925
|
method: "POST",
|
|
@@ -56155,11 +56194,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z69.object({
|
|
|
56155
56194
|
startTime: z69.string(),
|
|
56156
56195
|
endTime: z69.string()
|
|
56157
56196
|
});
|
|
56197
|
+
var appointmentSetupStartTimePolicyDraftSchema = z69.discriminatedUnion("kind", [
|
|
56198
|
+
z69.object({ kind: z69.literal("automatic_spacing") }),
|
|
56199
|
+
z69.object({
|
|
56200
|
+
kind: z69.literal("regular_interval"),
|
|
56201
|
+
intervalMinutes: z69.union([
|
|
56202
|
+
z69.literal(10),
|
|
56203
|
+
z69.literal(15),
|
|
56204
|
+
z69.literal(20),
|
|
56205
|
+
z69.literal(30),
|
|
56206
|
+
z69.literal(45),
|
|
56207
|
+
z69.literal(60)
|
|
56208
|
+
])
|
|
56209
|
+
})
|
|
56210
|
+
]);
|
|
56158
56211
|
var appointmentSetupAvailabilityDraftSchema = z69.object({
|
|
56159
56212
|
kind: z69.literal("weekly_windows"),
|
|
56160
56213
|
resourceRef: appointmentSetupRefSchema,
|
|
56161
56214
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
56162
|
-
windows: z69.array(appointmentSetupWeeklyWindowDraftSchema)
|
|
56215
|
+
windows: z69.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
56216
|
+
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
56163
56217
|
});
|
|
56164
56218
|
var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
56165
56219
|
var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
|
@@ -57557,6 +57611,15 @@ function resolveImageUrlWithContext2(value, options, context, transformAspectRat
|
|
|
57557
57611
|
function resolveImageSourceSetWithContext2(value, options, context) {
|
|
57558
57612
|
return resolveImageSourceSetWithContext(value, options, context);
|
|
57559
57613
|
}
|
|
57614
|
+
|
|
57615
|
+
// src/rendering/overrides.ts
|
|
57616
|
+
var lazyBlockOverrideSymbol = /* @__PURE__ */ Symbol.for("riverbankcms.sdk.lazyBlockOverride");
|
|
57617
|
+
function defineLazyBlockOverride(load) {
|
|
57618
|
+
return {
|
|
57619
|
+
[lazyBlockOverrideSymbol]: true,
|
|
57620
|
+
load
|
|
57621
|
+
};
|
|
57622
|
+
}
|
|
57560
57623
|
export {
|
|
57561
57624
|
Block,
|
|
57562
57625
|
ImagePresets2 as ImagePresets,
|
|
@@ -57566,6 +57629,7 @@ export {
|
|
|
57566
57629
|
RichText3 as RichText,
|
|
57567
57630
|
ThemeScope2 as ThemeScope,
|
|
57568
57631
|
buildThemeRuntime2 as buildThemeRuntime,
|
|
57632
|
+
defineLazyBlockOverride,
|
|
57569
57633
|
isEntryContent,
|
|
57570
57634
|
isPageContent,
|
|
57571
57635
|
loadContent,
|
package/dist/server/routing.mjs
CHANGED
|
@@ -1222,6 +1222,24 @@ var init_endpoints = __esm({
|
|
|
1222
1222
|
"server:internal_error"
|
|
1223
1223
|
]
|
|
1224
1224
|
},
|
|
1225
|
+
setServiceSpecificAvailability: {
|
|
1226
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
1227
|
+
method: "PUT",
|
|
1228
|
+
auth: "user",
|
|
1229
|
+
responseKind: "json",
|
|
1230
|
+
errors: [
|
|
1231
|
+
"validation:invalid_input",
|
|
1232
|
+
"resource:not_found",
|
|
1233
|
+
"server:internal_error"
|
|
1234
|
+
]
|
|
1235
|
+
},
|
|
1236
|
+
deleteServiceSpecificAvailability: {
|
|
1237
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
|
|
1238
|
+
method: "DELETE",
|
|
1239
|
+
auth: "user",
|
|
1240
|
+
responseKind: "json",
|
|
1241
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
1242
|
+
},
|
|
1225
1243
|
listBlackouts: {
|
|
1226
1244
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
|
|
1227
1245
|
method: "GET",
|
|
@@ -2857,6 +2875,20 @@ var init_endpoints = __esm({
|
|
|
2857
2875
|
auth: "user",
|
|
2858
2876
|
responseKind: "json"
|
|
2859
2877
|
},
|
|
2878
|
+
applySiteStyleSelection: {
|
|
2879
|
+
path: "/sites/{siteId}/theme/style-selection/apply",
|
|
2880
|
+
method: "POST",
|
|
2881
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
|
|
2882
|
+
auth: "user",
|
|
2883
|
+
errors: [
|
|
2884
|
+
"validation:invalid_input",
|
|
2885
|
+
"auth:forbidden",
|
|
2886
|
+
"resource:not_found",
|
|
2887
|
+
"resource:conflict",
|
|
2888
|
+
"server:internal_error"
|
|
2889
|
+
],
|
|
2890
|
+
responseKind: "json"
|
|
2891
|
+
},
|
|
2860
2892
|
saveSiteChromeLookSelection: {
|
|
2861
2893
|
path: "/sites/{siteId}/theme/site-chrome-look",
|
|
2862
2894
|
method: "POST",
|
|
@@ -5600,6 +5632,13 @@ var init_endpoints = __esm({
|
|
|
5600
5632
|
auth: "service",
|
|
5601
5633
|
responseKind: "json"
|
|
5602
5634
|
},
|
|
5635
|
+
sdkApplySiteStyleSelection: {
|
|
5636
|
+
path: "/sdk/{siteId}/theme/style-selection/apply",
|
|
5637
|
+
method: "POST",
|
|
5638
|
+
auth: "service",
|
|
5639
|
+
responseKind: "json",
|
|
5640
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
|
|
5641
|
+
},
|
|
5603
5642
|
sdkUpsertFooter: {
|
|
5604
5643
|
path: "/sdk/{siteId}/footer",
|
|
5605
5644
|
method: "POST",
|
|
@@ -36629,7 +36668,7 @@ var init_error_propagation = __esm({
|
|
|
36629
36668
|
|
|
36630
36669
|
// ../api/src/appointmentSetup.ts
|
|
36631
36670
|
import { z as z67 } from "zod";
|
|
36632
|
-
var APPOINTMENT_SETUP_MAX_MINUTES, appointmentSetupRefSchema, appointmentSetupVenueChoiceSchema, appointmentSetupPaymentDraftSchema, appointmentSetupServiceAssignmentDraftSchema, appointmentSetupServiceDraftSchema, appointmentSetupPractitionerDraftSchema, appointmentSetupWeeklyWindowDraftSchema, appointmentSetupAvailabilityDraftSchema, APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX, APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX, appointmentSetupBookingNoticeSchema, applyAppointmentSetupRequestSchema;
|
|
36671
|
+
var APPOINTMENT_SETUP_MAX_MINUTES, appointmentSetupRefSchema, appointmentSetupVenueChoiceSchema, appointmentSetupPaymentDraftSchema, appointmentSetupServiceAssignmentDraftSchema, appointmentSetupServiceDraftSchema, appointmentSetupPractitionerDraftSchema, appointmentSetupWeeklyWindowDraftSchema, appointmentSetupStartTimePolicyDraftSchema, appointmentSetupAvailabilityDraftSchema, APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX, APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX, appointmentSetupBookingNoticeSchema, applyAppointmentSetupRequestSchema;
|
|
36633
36672
|
var init_appointmentSetup = __esm({
|
|
36634
36673
|
"../api/src/appointmentSetup.ts"() {
|
|
36635
36674
|
"use strict";
|
|
@@ -36709,11 +36748,26 @@ var init_appointmentSetup = __esm({
|
|
|
36709
36748
|
startTime: z67.string(),
|
|
36710
36749
|
endTime: z67.string()
|
|
36711
36750
|
});
|
|
36751
|
+
appointmentSetupStartTimePolicyDraftSchema = z67.discriminatedUnion("kind", [
|
|
36752
|
+
z67.object({ kind: z67.literal("automatic_spacing") }),
|
|
36753
|
+
z67.object({
|
|
36754
|
+
kind: z67.literal("regular_interval"),
|
|
36755
|
+
intervalMinutes: z67.union([
|
|
36756
|
+
z67.literal(10),
|
|
36757
|
+
z67.literal(15),
|
|
36758
|
+
z67.literal(20),
|
|
36759
|
+
z67.literal(30),
|
|
36760
|
+
z67.literal(45),
|
|
36761
|
+
z67.literal(60)
|
|
36762
|
+
])
|
|
36763
|
+
})
|
|
36764
|
+
]);
|
|
36712
36765
|
appointmentSetupAvailabilityDraftSchema = z67.object({
|
|
36713
36766
|
kind: z67.literal("weekly_windows"),
|
|
36714
36767
|
resourceRef: appointmentSetupRefSchema,
|
|
36715
36768
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
36716
|
-
windows: z67.array(appointmentSetupWeeklyWindowDraftSchema)
|
|
36769
|
+
windows: z67.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
36770
|
+
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
36717
36771
|
});
|
|
36718
36772
|
APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
36719
36773
|
APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
package/dist/server/server.mjs
CHANGED
|
@@ -1250,6 +1250,24 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
1250
1250
|
"server:internal_error"
|
|
1251
1251
|
]
|
|
1252
1252
|
},
|
|
1253
|
+
setServiceSpecificAvailability: {
|
|
1254
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
1255
|
+
method: "PUT",
|
|
1256
|
+
auth: "user",
|
|
1257
|
+
responseKind: "json",
|
|
1258
|
+
errors: [
|
|
1259
|
+
"validation:invalid_input",
|
|
1260
|
+
"resource:not_found",
|
|
1261
|
+
"server:internal_error"
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
deleteServiceSpecificAvailability: {
|
|
1265
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
|
|
1266
|
+
method: "DELETE",
|
|
1267
|
+
auth: "user",
|
|
1268
|
+
responseKind: "json",
|
|
1269
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
1270
|
+
},
|
|
1253
1271
|
listBlackouts: {
|
|
1254
1272
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
|
|
1255
1273
|
method: "GET",
|
|
@@ -2885,6 +2903,20 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
2885
2903
|
auth: "user",
|
|
2886
2904
|
responseKind: "json"
|
|
2887
2905
|
},
|
|
2906
|
+
applySiteStyleSelection: {
|
|
2907
|
+
path: "/sites/{siteId}/theme/style-selection/apply",
|
|
2908
|
+
method: "POST",
|
|
2909
|
+
tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
|
|
2910
|
+
auth: "user",
|
|
2911
|
+
errors: [
|
|
2912
|
+
"validation:invalid_input",
|
|
2913
|
+
"auth:forbidden",
|
|
2914
|
+
"resource:not_found",
|
|
2915
|
+
"resource:conflict",
|
|
2916
|
+
"server:internal_error"
|
|
2917
|
+
],
|
|
2918
|
+
responseKind: "json"
|
|
2919
|
+
},
|
|
2888
2920
|
saveSiteChromeLookSelection: {
|
|
2889
2921
|
path: "/sites/{siteId}/theme/site-chrome-look",
|
|
2890
2922
|
method: "POST",
|
|
@@ -5628,6 +5660,13 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
5628
5660
|
auth: "service",
|
|
5629
5661
|
responseKind: "json"
|
|
5630
5662
|
},
|
|
5663
|
+
sdkApplySiteStyleSelection: {
|
|
5664
|
+
path: "/sdk/{siteId}/theme/style-selection/apply",
|
|
5665
|
+
method: "POST",
|
|
5666
|
+
auth: "service",
|
|
5667
|
+
responseKind: "json",
|
|
5668
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
|
|
5669
|
+
},
|
|
5631
5670
|
sdkUpsertFooter: {
|
|
5632
5671
|
path: "/sdk/{siteId}/footer",
|
|
5633
5672
|
method: "POST",
|
|
@@ -6791,7 +6830,7 @@ var SimpleCache = class {
|
|
|
6791
6830
|
};
|
|
6792
6831
|
|
|
6793
6832
|
// src/version.ts
|
|
6794
|
-
var SDK_VERSION = "0.70.
|
|
6833
|
+
var SDK_VERSION = "0.70.3";
|
|
6795
6834
|
|
|
6796
6835
|
// src/client/error.ts
|
|
6797
6836
|
var RiverbankApiError = class _RiverbankApiError extends Error {
|
|
@@ -33281,11 +33320,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z64.object({
|
|
|
33281
33320
|
startTime: z64.string(),
|
|
33282
33321
|
endTime: z64.string()
|
|
33283
33322
|
});
|
|
33323
|
+
var appointmentSetupStartTimePolicyDraftSchema = z64.discriminatedUnion("kind", [
|
|
33324
|
+
z64.object({ kind: z64.literal("automatic_spacing") }),
|
|
33325
|
+
z64.object({
|
|
33326
|
+
kind: z64.literal("regular_interval"),
|
|
33327
|
+
intervalMinutes: z64.union([
|
|
33328
|
+
z64.literal(10),
|
|
33329
|
+
z64.literal(15),
|
|
33330
|
+
z64.literal(20),
|
|
33331
|
+
z64.literal(30),
|
|
33332
|
+
z64.literal(45),
|
|
33333
|
+
z64.literal(60)
|
|
33334
|
+
])
|
|
33335
|
+
})
|
|
33336
|
+
]);
|
|
33284
33337
|
var appointmentSetupAvailabilityDraftSchema = z64.object({
|
|
33285
33338
|
kind: z64.literal("weekly_windows"),
|
|
33286
33339
|
resourceRef: appointmentSetupRefSchema,
|
|
33287
33340
|
serviceRef: appointmentSetupRefSchema.nullable(),
|
|
33288
|
-
windows: z64.array(appointmentSetupWeeklyWindowDraftSchema)
|
|
33341
|
+
windows: z64.array(appointmentSetupWeeklyWindowDraftSchema),
|
|
33342
|
+
startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
|
|
33289
33343
|
});
|
|
33290
33344
|
var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
|
|
33291
33345
|
var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.3",
|
|
4
4
|
"description": "Riverbank CMS SDK for headless content consumption",
|
|
5
5
|
"main": "./dist/server/index.mjs",
|
|
6
6
|
"module": "./dist/server/index.mjs",
|
|
7
7
|
"types": "./dist/_dts/sdk/src/index.d.ts",
|
|
8
8
|
"imports": {
|
|
9
9
|
"#sdk-rendering-client": {
|
|
10
|
-
"types": "./dist/_dts/sdk/src/rendering/client.d.ts",
|
|
11
|
-
"import": "./dist/client/rendering/
|
|
10
|
+
"types": "./dist/_dts/sdk/src/rendering/islands/client.d.ts",
|
|
11
|
+
"import": "./dist/client/rendering/islands.mjs"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"bin": {
|
|
@@ -224,6 +224,7 @@
|
|
|
224
224
|
"lint": "eslint --cache --cache-location node_modules/.cache/eslint/.eslintcache src",
|
|
225
225
|
"test": "vitest run",
|
|
226
226
|
"test:edge-smoke": "sh -c \"cd src/next/__fixtures__/edge-theme-smoke && mkdir -p node_modules/@riverbankcms && ln -sfn ../../../../../.. node_modules/@riverbankcms/sdk && NEXT_TELEMETRY_DISABLED=1 next build\"",
|
|
227
|
+
"test:lazy-overrides-smoke": "node scripts/lazy-overrides-smoke.mjs",
|
|
227
228
|
"test:layout-page-hydration-smoke": "node scripts/layout-page-hydration-smoke.mjs",
|
|
228
229
|
"verify": "./verify.sh",
|
|
229
230
|
"cli": "tsx src/cli/index.ts"
|