@riverbankcms/sdk 0.60.6 → 0.60.9
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/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +6 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +45 -3
- package/dist/_dts/api/src/bookingOperations.d.ts +40 -3
- package/dist/_dts/api/src/courses.d.ts +1 -5
- package/dist/_dts/api/src/endpoints.d.ts +80 -1
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -1
- package/dist/_dts/api/src/resources.d.ts +1 -1
- package/dist/_dts/api/src/siteBanner.d.ts +8 -8
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
- package/dist/_dts/api/src/teamMembers.d.ts +27 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +35 -29
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +40 -34
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -5
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +24 -0
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +18 -8
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +185 -0
- package/dist/_dts/blocks/src/system/manifest/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -84
- package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
- package/dist/_dts/blocks/src/system/types/link.d.ts +93 -1
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/content-model/src/metadataConfig.d.ts +1 -0
- package/dist/_dts/core/src/branded.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +124 -8
- package/dist/_dts/db/src/schemas/forms.d.ts +85 -64
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +1 -1
- package/dist/_dts/sdk/src/client/types.d.ts +9 -2
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +36 -1
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +40 -37
- package/dist/_dts/sdk/src/contracts/content.d.ts +6 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +18 -8
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +87 -69
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -5
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +11 -11
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +10 -10
- package/dist/_dts/theme-core/src/buttons/types.d.ts +27 -27
- package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/inputs/types.d.ts +14 -14
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +438 -438
- package/dist/_dts/theme-core/src/navigation/types.d.ts +16 -16
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/schema.d.ts +662 -662
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +15 -15
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +5 -5
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button-group.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +4 -4
- package/dist/cli/index.mjs +951 -451
- package/dist/client/client.mjs +39490 -38952
- package/dist/client/hooks.mjs +1992 -1741
- package/dist/client/rendering/client.mjs +179 -130
- package/dist/client/rendering/islands.mjs +68 -43
- package/dist/client/rendering.mjs +1812 -1292
- package/dist/preview-next/before-render.mjs +147 -1
- package/dist/preview-next/client/runtime.mjs +1377 -829
- package/dist/preview-next/middleware.mjs +147 -1
- package/dist/server/components.mjs +3246 -2751
- package/dist/server/config-validation.mjs +2198 -1962
- package/dist/server/config.mjs +2198 -1962
- package/dist/server/data.mjs +1992 -1741
- package/dist/server/index.mjs +168 -2
- package/dist/server/next.mjs +3230 -2701
- package/dist/server/page-converter.mjs +345 -259
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3274 -2763
- package/dist/server/rendering.mjs +3274 -2763
- package/dist/server/routing.mjs +530 -309
- package/dist/server/server.mjs +2011 -1742
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ import { z } from 'zod';
|
|
|
11
11
|
* Used for general inquiry forms that send notifications to site owners
|
|
12
12
|
*/
|
|
13
13
|
export declare const contactFormSettingsSchema: z.ZodObject<{
|
|
14
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
type: z.ZodLiteral<"contact">;
|
|
15
17
|
successMessage: z.ZodOptional<z.ZodString>;
|
|
16
18
|
sensitiveCollectionMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -55,6 +57,8 @@ export declare const contactFormSettingsSchema: z.ZodObject<{
|
|
|
55
57
|
* XOR validation enforces this constraint.
|
|
56
58
|
*/
|
|
57
59
|
export declare const bookingFormSettingsSchema: z.ZodObject<{
|
|
60
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
62
|
type: z.ZodLiteral<"booking">;
|
|
59
63
|
serviceId: z.ZodOptional<z.ZodString>;
|
|
60
64
|
serviceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -80,6 +84,8 @@ export declare const bookingFormSettingsSchema: z.ZodObject<{
|
|
|
80
84
|
* - If not provided: Block must specify series or get from context
|
|
81
85
|
*/
|
|
82
86
|
export declare const eventRegistrationFormSettingsSchema: z.ZodObject<{
|
|
87
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
89
|
type: z.ZodLiteral<"event-registration">;
|
|
84
90
|
seriesId: z.ZodOptional<z.ZodString>;
|
|
85
91
|
maxTickets: z.ZodDefault<z.ZodNumber>;
|
|
@@ -100,6 +106,8 @@ export declare const eventRegistrationFormSettingsSchema: z.ZodObject<{
|
|
|
100
106
|
* Used for reusable short forms / detailed questionnaires attached through booking requirements.
|
|
101
107
|
*/
|
|
102
108
|
export declare const bookingQuestionsFormSettingsSchema: z.ZodObject<{
|
|
109
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
111
|
type: z.ZodLiteral<"booking-questions">;
|
|
104
112
|
schemaVersion: z.ZodDefault<z.ZodLiteral<2>>;
|
|
105
113
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
@@ -115,12 +123,11 @@ export declare const bookingQuestionsFormSettingsSchema: z.ZodObject<{
|
|
|
115
123
|
enabledByUserId: z.ZodNullable<z.ZodString>;
|
|
116
124
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
117
125
|
}, z.core.$strict>>;
|
|
118
|
-
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
126
|
audienceHint: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
appointments: "appointments";
|
|
120
128
|
courses: "courses";
|
|
121
129
|
events: "events";
|
|
122
130
|
mixed: "mixed";
|
|
123
|
-
appointments: "appointments";
|
|
124
131
|
}>>;
|
|
125
132
|
customerTitle: z.ZodOptional<z.ZodString>;
|
|
126
133
|
introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -135,6 +142,8 @@ export declare const bookingQuestionsFormSettingsSchema: z.ZodObject<{
|
|
|
135
142
|
* Use this schema to validate form settings in API routes
|
|
136
143
|
*/
|
|
137
144
|
export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
147
|
type: z.ZodLiteral<"contact">;
|
|
139
148
|
successMessage: z.ZodOptional<z.ZodString>;
|
|
140
149
|
sensitiveCollectionMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -166,6 +175,8 @@ export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
166
175
|
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
176
|
}, z.core.$strict>>;
|
|
168
177
|
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
180
|
type: z.ZodLiteral<"booking">;
|
|
170
181
|
serviceId: z.ZodOptional<z.ZodString>;
|
|
171
182
|
serviceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -182,6 +193,8 @@ export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
193
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
183
194
|
}, z.core.$strict>>;
|
|
184
195
|
}, z.core.$strict>, z.ZodObject<{
|
|
196
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
198
|
type: z.ZodLiteral<"event-registration">;
|
|
186
199
|
seriesId: z.ZodOptional<z.ZodString>;
|
|
187
200
|
maxTickets: z.ZodDefault<z.ZodNumber>;
|
|
@@ -197,6 +210,8 @@ export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
197
210
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
198
211
|
}, z.core.$strict>>;
|
|
199
212
|
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
215
|
type: z.ZodLiteral<"booking-questions">;
|
|
201
216
|
schemaVersion: z.ZodDefault<z.ZodLiteral<2>>;
|
|
202
217
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
@@ -212,12 +227,11 @@ export declare const formSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
212
227
|
enabledByUserId: z.ZodNullable<z.ZodString>;
|
|
213
228
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
214
229
|
}, z.core.$strict>>;
|
|
215
|
-
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
230
|
audienceHint: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
appointments: "appointments";
|
|
217
232
|
courses: "courses";
|
|
218
233
|
events: "events";
|
|
219
234
|
mixed: "mixed";
|
|
220
|
-
appointments: "appointments";
|
|
221
235
|
}>>;
|
|
222
236
|
customerTitle: z.ZodOptional<z.ZodString>;
|
|
223
237
|
introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -240,17 +254,17 @@ export declare const formFieldSchema: z.ZodObject<{
|
|
|
240
254
|
label: z.ZodString;
|
|
241
255
|
type: z.ZodEnum<{
|
|
242
256
|
number: "number";
|
|
257
|
+
url: "url";
|
|
243
258
|
date: "date";
|
|
244
|
-
time: "time";
|
|
245
259
|
email: "email";
|
|
246
|
-
url: "url";
|
|
247
|
-
select: "select";
|
|
248
|
-
textarea: "textarea";
|
|
249
260
|
text: "text";
|
|
250
|
-
|
|
261
|
+
textarea: "textarea";
|
|
262
|
+
select: "select";
|
|
251
263
|
radio: "radio";
|
|
252
264
|
checkbox: "checkbox";
|
|
253
265
|
consent: "consent";
|
|
266
|
+
tel: "tel";
|
|
267
|
+
time: "time";
|
|
254
268
|
}>;
|
|
255
269
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
256
270
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -273,8 +287,8 @@ export declare const formFieldSchema: z.ZodObject<{
|
|
|
273
287
|
}, z.core.$strict>>;
|
|
274
288
|
}, z.core.$strict>;
|
|
275
289
|
export declare const bookingQuestionDocumentFileTypeSchema: z.ZodEnum<{
|
|
276
|
-
image: "image";
|
|
277
290
|
pdf: "pdf";
|
|
291
|
+
image: "image";
|
|
278
292
|
docx: "docx";
|
|
279
293
|
}>;
|
|
280
294
|
declare const bookingQuestionScalarFieldSchema: z.ZodObject<{
|
|
@@ -301,16 +315,16 @@ declare const bookingQuestionScalarFieldSchema: z.ZodObject<{
|
|
|
301
315
|
}, z.core.$strict>>;
|
|
302
316
|
type: z.ZodEnum<{
|
|
303
317
|
number: "number";
|
|
318
|
+
url: "url";
|
|
304
319
|
date: "date";
|
|
305
|
-
time: "time";
|
|
306
320
|
email: "email";
|
|
307
|
-
url: "url";
|
|
308
|
-
select: "select";
|
|
309
|
-
textarea: "textarea";
|
|
310
321
|
text: "text";
|
|
311
|
-
|
|
322
|
+
textarea: "textarea";
|
|
323
|
+
select: "select";
|
|
312
324
|
radio: "radio";
|
|
313
325
|
checkbox: "checkbox";
|
|
326
|
+
tel: "tel";
|
|
327
|
+
time: "time";
|
|
314
328
|
}>;
|
|
315
329
|
}, z.core.$strict>;
|
|
316
330
|
declare const bookingQuestionDocumentUploadFieldSchema: z.ZodObject<{
|
|
@@ -327,8 +341,8 @@ declare const bookingQuestionDocumentUploadFieldSchema: z.ZodObject<{
|
|
|
327
341
|
}>>;
|
|
328
342
|
}, z.core.$strict>>;
|
|
329
343
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
330
|
-
image: "image";
|
|
331
344
|
pdf: "pdf";
|
|
345
|
+
image: "image";
|
|
332
346
|
docx: "docx";
|
|
333
347
|
}>>>;
|
|
334
348
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -357,16 +371,16 @@ export declare const bookingQuestionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
357
371
|
}, z.core.$strict>>;
|
|
358
372
|
type: z.ZodEnum<{
|
|
359
373
|
number: "number";
|
|
374
|
+
url: "url";
|
|
360
375
|
date: "date";
|
|
361
|
-
time: "time";
|
|
362
376
|
email: "email";
|
|
363
|
-
url: "url";
|
|
364
|
-
select: "select";
|
|
365
|
-
textarea: "textarea";
|
|
366
377
|
text: "text";
|
|
367
|
-
|
|
378
|
+
textarea: "textarea";
|
|
379
|
+
select: "select";
|
|
368
380
|
radio: "radio";
|
|
369
381
|
checkbox: "checkbox";
|
|
382
|
+
tel: "tel";
|
|
383
|
+
time: "time";
|
|
370
384
|
}>;
|
|
371
385
|
}, z.core.$strict>, z.ZodObject<{
|
|
372
386
|
id: z.ZodString;
|
|
@@ -382,8 +396,8 @@ export declare const bookingQuestionFieldSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
382
396
|
}>>;
|
|
383
397
|
}, z.core.$strict>>;
|
|
384
398
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
385
|
-
image: "image";
|
|
386
399
|
pdf: "pdf";
|
|
400
|
+
image: "image";
|
|
387
401
|
docx: "docx";
|
|
388
402
|
}>>>;
|
|
389
403
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -416,16 +430,16 @@ export declare const bookingQuestionsSectionSchema: z.ZodObject<{
|
|
|
416
430
|
}, z.core.$strict>>;
|
|
417
431
|
type: z.ZodEnum<{
|
|
418
432
|
number: "number";
|
|
433
|
+
url: "url";
|
|
419
434
|
date: "date";
|
|
420
|
-
time: "time";
|
|
421
435
|
email: "email";
|
|
422
|
-
url: "url";
|
|
423
|
-
select: "select";
|
|
424
|
-
textarea: "textarea";
|
|
425
436
|
text: "text";
|
|
426
|
-
|
|
437
|
+
textarea: "textarea";
|
|
438
|
+
select: "select";
|
|
427
439
|
radio: "radio";
|
|
428
440
|
checkbox: "checkbox";
|
|
441
|
+
tel: "tel";
|
|
442
|
+
time: "time";
|
|
429
443
|
}>;
|
|
430
444
|
}, z.core.$strict>, z.ZodObject<{
|
|
431
445
|
id: z.ZodString;
|
|
@@ -441,8 +455,8 @@ export declare const bookingQuestionsSectionSchema: z.ZodObject<{
|
|
|
441
455
|
}>>;
|
|
442
456
|
}, z.core.$strict>>;
|
|
443
457
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
444
|
-
image: "image";
|
|
445
458
|
pdf: "pdf";
|
|
459
|
+
image: "image";
|
|
446
460
|
docx: "docx";
|
|
447
461
|
}>>>;
|
|
448
462
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -478,16 +492,16 @@ export declare const bookingQuestionsDetailedSchemaSchema: z.ZodObject<{
|
|
|
478
492
|
}, z.core.$strict>>;
|
|
479
493
|
type: z.ZodEnum<{
|
|
480
494
|
number: "number";
|
|
495
|
+
url: "url";
|
|
481
496
|
date: "date";
|
|
482
|
-
time: "time";
|
|
483
497
|
email: "email";
|
|
484
|
-
url: "url";
|
|
485
|
-
select: "select";
|
|
486
|
-
textarea: "textarea";
|
|
487
498
|
text: "text";
|
|
488
|
-
|
|
499
|
+
textarea: "textarea";
|
|
500
|
+
select: "select";
|
|
489
501
|
radio: "radio";
|
|
490
502
|
checkbox: "checkbox";
|
|
503
|
+
tel: "tel";
|
|
504
|
+
time: "time";
|
|
491
505
|
}>;
|
|
492
506
|
}, z.core.$strict>, z.ZodObject<{
|
|
493
507
|
id: z.ZodString;
|
|
@@ -503,8 +517,8 @@ export declare const bookingQuestionsDetailedSchemaSchema: z.ZodObject<{
|
|
|
503
517
|
}>>;
|
|
504
518
|
}, z.core.$strict>>;
|
|
505
519
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
506
|
-
image: "image";
|
|
507
520
|
pdf: "pdf";
|
|
521
|
+
image: "image";
|
|
508
522
|
docx: "docx";
|
|
509
523
|
}>>>;
|
|
510
524
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -522,17 +536,17 @@ export declare const formSchemaSchema: z.ZodObject<{
|
|
|
522
536
|
label: z.ZodString;
|
|
523
537
|
type: z.ZodEnum<{
|
|
524
538
|
number: "number";
|
|
539
|
+
url: "url";
|
|
525
540
|
date: "date";
|
|
526
|
-
time: "time";
|
|
527
541
|
email: "email";
|
|
528
|
-
url: "url";
|
|
529
|
-
select: "select";
|
|
530
|
-
textarea: "textarea";
|
|
531
542
|
text: "text";
|
|
532
|
-
|
|
543
|
+
textarea: "textarea";
|
|
544
|
+
select: "select";
|
|
533
545
|
radio: "radio";
|
|
534
546
|
checkbox: "checkbox";
|
|
535
547
|
consent: "consent";
|
|
548
|
+
tel: "tel";
|
|
549
|
+
time: "time";
|
|
536
550
|
}>;
|
|
537
551
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
538
552
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -581,16 +595,16 @@ export declare const bookingQuestionsFlatSchemaSchema: z.ZodObject<{
|
|
|
581
595
|
}, z.core.$strict>>;
|
|
582
596
|
type: z.ZodEnum<{
|
|
583
597
|
number: "number";
|
|
598
|
+
url: "url";
|
|
584
599
|
date: "date";
|
|
585
|
-
time: "time";
|
|
586
600
|
email: "email";
|
|
587
|
-
url: "url";
|
|
588
|
-
select: "select";
|
|
589
|
-
textarea: "textarea";
|
|
590
601
|
text: "text";
|
|
591
|
-
|
|
602
|
+
textarea: "textarea";
|
|
603
|
+
select: "select";
|
|
592
604
|
radio: "radio";
|
|
593
605
|
checkbox: "checkbox";
|
|
606
|
+
tel: "tel";
|
|
607
|
+
time: "time";
|
|
594
608
|
}>;
|
|
595
609
|
}, z.core.$strict>, z.ZodObject<{
|
|
596
610
|
id: z.ZodString;
|
|
@@ -606,8 +620,8 @@ export declare const bookingQuestionsFlatSchemaSchema: z.ZodObject<{
|
|
|
606
620
|
}>>;
|
|
607
621
|
}, z.core.$strict>>;
|
|
608
622
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
609
|
-
image: "image";
|
|
610
623
|
pdf: "pdf";
|
|
624
|
+
image: "image";
|
|
611
625
|
docx: "docx";
|
|
612
626
|
}>>>;
|
|
613
627
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -639,16 +653,16 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
639
653
|
}, z.core.$strict>>;
|
|
640
654
|
type: z.ZodEnum<{
|
|
641
655
|
number: "number";
|
|
656
|
+
url: "url";
|
|
642
657
|
date: "date";
|
|
643
|
-
time: "time";
|
|
644
658
|
email: "email";
|
|
645
|
-
url: "url";
|
|
646
|
-
select: "select";
|
|
647
|
-
textarea: "textarea";
|
|
648
659
|
text: "text";
|
|
649
|
-
|
|
660
|
+
textarea: "textarea";
|
|
661
|
+
select: "select";
|
|
650
662
|
radio: "radio";
|
|
651
663
|
checkbox: "checkbox";
|
|
664
|
+
tel: "tel";
|
|
665
|
+
time: "time";
|
|
652
666
|
}>;
|
|
653
667
|
}, z.core.$strict>, z.ZodObject<{
|
|
654
668
|
id: z.ZodString;
|
|
@@ -664,8 +678,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
664
678
|
}>>;
|
|
665
679
|
}, z.core.$strict>>;
|
|
666
680
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
667
|
-
image: "image";
|
|
668
681
|
pdf: "pdf";
|
|
682
|
+
image: "image";
|
|
669
683
|
docx: "docx";
|
|
670
684
|
}>>>;
|
|
671
685
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -700,16 +714,16 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
700
714
|
}, z.core.$strict>>;
|
|
701
715
|
type: z.ZodEnum<{
|
|
702
716
|
number: "number";
|
|
717
|
+
url: "url";
|
|
703
718
|
date: "date";
|
|
704
|
-
time: "time";
|
|
705
719
|
email: "email";
|
|
706
|
-
url: "url";
|
|
707
|
-
select: "select";
|
|
708
|
-
textarea: "textarea";
|
|
709
720
|
text: "text";
|
|
710
|
-
|
|
721
|
+
textarea: "textarea";
|
|
722
|
+
select: "select";
|
|
711
723
|
radio: "radio";
|
|
712
724
|
checkbox: "checkbox";
|
|
725
|
+
tel: "tel";
|
|
726
|
+
time: "time";
|
|
713
727
|
}>;
|
|
714
728
|
}, z.core.$strict>, z.ZodObject<{
|
|
715
729
|
id: z.ZodString;
|
|
@@ -725,8 +739,8 @@ export declare const bookingQuestionsStoredSchemaSchema: z.ZodUnion<readonly [z.
|
|
|
725
739
|
}>>;
|
|
726
740
|
}, z.core.$strict>>;
|
|
727
741
|
allowedFileTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
728
|
-
image: "image";
|
|
729
742
|
pdf: "pdf";
|
|
743
|
+
image: "image";
|
|
730
744
|
docx: "docx";
|
|
731
745
|
}>>>;
|
|
732
746
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -775,17 +789,17 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
775
789
|
label: z.ZodString;
|
|
776
790
|
type: z.ZodEnum<{
|
|
777
791
|
number: "number";
|
|
792
|
+
url: "url";
|
|
778
793
|
date: "date";
|
|
779
|
-
time: "time";
|
|
780
794
|
email: "email";
|
|
781
|
-
url: "url";
|
|
782
|
-
select: "select";
|
|
783
|
-
textarea: "textarea";
|
|
784
795
|
text: "text";
|
|
785
|
-
|
|
796
|
+
textarea: "textarea";
|
|
797
|
+
select: "select";
|
|
786
798
|
radio: "radio";
|
|
787
799
|
checkbox: "checkbox";
|
|
788
800
|
consent: "consent";
|
|
801
|
+
tel: "tel";
|
|
802
|
+
time: "time";
|
|
789
803
|
}>;
|
|
790
804
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
791
805
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
@@ -809,6 +823,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
809
823
|
}, z.core.$strict>>;
|
|
810
824
|
}, z.core.$strict>;
|
|
811
825
|
settings: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
826
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
827
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
828
|
type: z.ZodLiteral<"contact">;
|
|
813
829
|
successMessage: z.ZodOptional<z.ZodString>;
|
|
814
830
|
sensitiveCollectionMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -840,6 +856,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
840
856
|
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
857
|
}, z.core.$strict>>;
|
|
842
858
|
}, z.core.$strict>, z.ZodObject<{
|
|
859
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
861
|
type: z.ZodLiteral<"booking">;
|
|
844
862
|
serviceId: z.ZodOptional<z.ZodString>;
|
|
845
863
|
serviceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -856,6 +874,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
856
874
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
857
875
|
}, z.core.$strict>>;
|
|
858
876
|
}, z.core.$strict>, z.ZodObject<{
|
|
877
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
878
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
859
879
|
type: z.ZodLiteral<"event-registration">;
|
|
860
880
|
seriesId: z.ZodOptional<z.ZodString>;
|
|
861
881
|
maxTickets: z.ZodDefault<z.ZodNumber>;
|
|
@@ -871,6 +891,8 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
871
891
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
872
892
|
}, z.core.$strict>>;
|
|
873
893
|
}, z.core.$strict>, z.ZodObject<{
|
|
894
|
+
submitLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
895
|
+
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
874
896
|
type: z.ZodLiteral<"booking-questions">;
|
|
875
897
|
schemaVersion: z.ZodDefault<z.ZodLiteral<2>>;
|
|
876
898
|
shape: z.ZodDefault<z.ZodEnum<{
|
|
@@ -886,12 +908,11 @@ export declare const createFormPayloadSchema: z.ZodObject<{
|
|
|
886
908
|
enabledByUserId: z.ZodNullable<z.ZodString>;
|
|
887
909
|
confirmationVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodNull]>;
|
|
888
910
|
}, z.core.$strict>>;
|
|
889
|
-
templateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
911
|
audienceHint: z.ZodOptional<z.ZodEnum<{
|
|
912
|
+
appointments: "appointments";
|
|
891
913
|
courses: "courses";
|
|
892
914
|
events: "events";
|
|
893
915
|
mixed: "mixed";
|
|
894
|
-
appointments: "appointments";
|
|
895
916
|
}>>;
|
|
896
917
|
customerTitle: z.ZodOptional<z.ZodString>;
|
|
897
918
|
introTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type LinkValue } from '@riverbankcms/blocks';
|
|
3
3
|
import type { RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
4
4
|
import type { LinkWidgetAdapters } from './types';
|
|
5
5
|
type LinkWidgetProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RoutableContentItem } from '@riverbankcms/api/navigation';
|
|
2
|
-
import type
|
|
2
|
+
import { type LinkValue } from '@riverbankcms/blocks';
|
|
3
3
|
export declare function toInternalLinkValue(item: RoutableContentItem): LinkValue;
|
|
4
4
|
export declare function getMatchingInternalItem(items: RoutableContentItem[], value: LinkValue | null): RoutableContentItem | null;
|
|
5
5
|
export declare function isSameLinkValue(a: LinkValue | null, b: LinkValue | null): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicCoursesResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, ResolveEntrySubrouteResponse, ResolveEventOccurrenceResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
2
|
-
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicCoursesResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, ResolveEntrySubrouteResponse, ResolveEventOccurrenceResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
1
|
+
import type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicCoursesResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, PublicEventsResponse, ResolveEntrySubrouteResponse, ResolveEventOccurrenceResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, PublicProductCategorySelector } from '../public-api/contracts';
|
|
2
|
+
export type { CheckRedirectResponse, EntriesResponse, EntryResponse, PageResponse, PublicBookingServicesResponse, PublicCoursesResponse, PublicEventsResponse, PublicFormResponse, PublicFormsResponse, PublicProductsResponse, PublicTeamMembersResponse, PublicMembershipsResponse, PublicPassesResponse, PublicEventDetailsResponse, ResolveEntrySubrouteResponse, ResolveEventOccurrenceResponse, RoutableContentResponse, SiteResponse, SitemapRoutesResponse, } from '../public-api/contracts';
|
|
3
3
|
/**
|
|
4
4
|
* Pagination metadata returned when `includeMeta: true`
|
|
5
5
|
*/
|
|
@@ -418,6 +418,13 @@ export interface RiverbankClient {
|
|
|
418
418
|
limit?: number;
|
|
419
419
|
stage?: string;
|
|
420
420
|
} & SdkMethodOptions): Promise<PublicCoursesResponse>;
|
|
421
|
+
/**
|
|
422
|
+
* List public team members for a site (for Team Members block)
|
|
423
|
+
*/
|
|
424
|
+
listPublicTeamMembers(params: {
|
|
425
|
+
siteId: string;
|
|
426
|
+
stage?: string;
|
|
427
|
+
} & SdkMethodOptions): Promise<PublicTeamMembersResponse>;
|
|
421
428
|
/**
|
|
422
429
|
* List public products for a site (for product list/detail blocks)
|
|
423
430
|
*/
|
|
@@ -56,7 +56,42 @@ type InferDataFromTabs<Tabs extends readonly {
|
|
|
56
56
|
* - Repeater: monomorphic (array) and polymorphic (discriminated union array)
|
|
57
57
|
* - TabGroup: flattened fields from all tabs
|
|
58
58
|
*/
|
|
59
|
-
export type FieldValueType<F extends FieldDefinition> = F extends
|
|
59
|
+
export type FieldValueType<F extends FieldDefinition> = F extends {
|
|
60
|
+
type: 'text';
|
|
61
|
+
} ? string : F extends {
|
|
62
|
+
type: 'boolean';
|
|
63
|
+
} ? boolean : F extends {
|
|
64
|
+
type: 'number';
|
|
65
|
+
} ? number : F extends {
|
|
66
|
+
type: 'richText';
|
|
67
|
+
} ? TipTapNode : F extends {
|
|
68
|
+
type: 'media';
|
|
69
|
+
} ? Media | null : F extends {
|
|
70
|
+
type: 'link';
|
|
71
|
+
} ? LinkValue | null : F extends {
|
|
72
|
+
type: 'date';
|
|
73
|
+
} ? string : F extends {
|
|
74
|
+
type: 'time';
|
|
75
|
+
} ? string : F extends {
|
|
76
|
+
type: 'datetime';
|
|
77
|
+
} ? string : F extends {
|
|
78
|
+
type: 'slug';
|
|
79
|
+
} ? string : F extends {
|
|
80
|
+
type: 'url';
|
|
81
|
+
} ? string : F extends {
|
|
82
|
+
type: 'reference';
|
|
83
|
+
} ? string : F extends {
|
|
84
|
+
type: 'presetOrCustom';
|
|
85
|
+
} ? string : F extends {
|
|
86
|
+
type: 'contentTypeSelect';
|
|
87
|
+
} ? string : F extends {
|
|
88
|
+
type: 'select';
|
|
89
|
+
multiple: true;
|
|
90
|
+
} ? string[] : F extends {
|
|
91
|
+
type: 'select';
|
|
92
|
+
} ? string : F extends {
|
|
93
|
+
type: 'entryPicker';
|
|
94
|
+
} ? string | null : F extends TextFieldDefinition ? string : F extends BooleanFieldDefinition ? boolean : F extends NumberFieldDefinition ? number : F extends RichTextFieldDefinition ? TipTapNode : F extends MediaFieldDefinition ? Media | null : F extends LinkFieldDefinition ? LinkValue | null : F extends DateFieldDefinition ? string : F extends TimeFieldDefinition ? string : F extends DateTimeFieldDefinition ? string : F extends SlugFieldDefinition ? string : F extends UrlFieldDefinition ? string : F extends ReferenceFieldDefinition ? string : F extends PresetOrCustomFieldDefinition ? string : F extends ContentTypeSelectFieldDefinition ? string : F extends SelectFieldDefinition & {
|
|
60
95
|
multiple: true;
|
|
61
96
|
} ? string[] : F extends SelectFieldDefinition ? string : F extends EntryPickerFieldDefinition ? string | null : F extends GroupFieldDefinition & {
|
|
62
97
|
schema: {
|
|
@@ -45,7 +45,7 @@ export type BlockCategory = 'marketing' | 'content' | 'blog' | 'media' | 'layout
|
|
|
45
45
|
*
|
|
46
46
|
* Re-exported from `@riverbankcms/blocks` (single source of truth).
|
|
47
47
|
*/
|
|
48
|
-
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "getPublicEventDetails", "listPublicCourses", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "getPublicFormById", "getPublicBookingServices"];
|
|
48
|
+
export declare const SUPPORTED_LOADER_ENDPOINTS: readonly ["listPublishedEntries", "getPublishedEntryPreview", "listPublicEvents", "getPublicEventDetails", "listPublicCourses", "listPublicTeamMembers", "listPublicProducts", "listPublicPasses", "listPublicMemberships", "getPublicFormById", "getPublicBookingServices"];
|
|
49
49
|
export type SdkLoaderEndpoint = (typeof SUPPORTED_LOADER_ENDPOINTS)[number];
|
|
50
50
|
export type LoaderParamBinding = {
|
|
51
51
|
$bind: {
|