@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
package/dist/server/routing.mjs
CHANGED
|
@@ -871,13 +871,150 @@ var init_endpoints = __esm({
|
|
|
871
871
|
"server:internal_error"
|
|
872
872
|
]
|
|
873
873
|
},
|
|
874
|
-
|
|
874
|
+
removeAppointmentResource: {
|
|
875
875
|
path: "/sites/{siteId}/bookings/resources/{resourceId}",
|
|
876
876
|
method: "DELETE",
|
|
877
877
|
auth: "user",
|
|
878
878
|
responseKind: "json",
|
|
879
879
|
errors: ["resource:not_found", "server:internal_error"]
|
|
880
880
|
},
|
|
881
|
+
createTeamMemberProfile: {
|
|
882
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
883
|
+
method: "POST",
|
|
884
|
+
auth: "user",
|
|
885
|
+
responseKind: "json",
|
|
886
|
+
errors: [
|
|
887
|
+
"validation:invalid_input",
|
|
888
|
+
"resource:not_found",
|
|
889
|
+
"resource:conflict",
|
|
890
|
+
"server:internal_error"
|
|
891
|
+
]
|
|
892
|
+
},
|
|
893
|
+
updateTeamMemberProfilePolicy: {
|
|
894
|
+
path: "/sites/{siteId}/bookings/resources/profile-policy",
|
|
895
|
+
method: "PUT",
|
|
896
|
+
auth: "user",
|
|
897
|
+
responseKind: "json",
|
|
898
|
+
errors: ["validation:invalid_input", "server:internal_error"]
|
|
899
|
+
},
|
|
900
|
+
updateTeamMemberProfileContent: {
|
|
901
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/content",
|
|
902
|
+
method: "PUT",
|
|
903
|
+
tags: [
|
|
904
|
+
"site-{siteId}",
|
|
905
|
+
"content-{siteId}-team-member",
|
|
906
|
+
"content-entry-{entryId}"
|
|
907
|
+
],
|
|
908
|
+
auth: "user",
|
|
909
|
+
responseKind: "json",
|
|
910
|
+
errors: [
|
|
911
|
+
"validation:invalid_input",
|
|
912
|
+
"resource:not_found",
|
|
913
|
+
"resource:conflict",
|
|
914
|
+
"server:internal_error"
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
publishTeamMemberProfile: {
|
|
918
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/publish",
|
|
919
|
+
method: "POST",
|
|
920
|
+
tags: [
|
|
921
|
+
"site-{siteId}",
|
|
922
|
+
"content-{siteId}-team-member",
|
|
923
|
+
"content-entry-{entryId}"
|
|
924
|
+
],
|
|
925
|
+
auth: "user",
|
|
926
|
+
responseKind: "json",
|
|
927
|
+
errors: [
|
|
928
|
+
"validation:invalid_input",
|
|
929
|
+
"resource:not_found",
|
|
930
|
+
"server:internal_error"
|
|
931
|
+
]
|
|
932
|
+
},
|
|
933
|
+
discardTeamMemberProfileDraft: {
|
|
934
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/discard",
|
|
935
|
+
method: "POST",
|
|
936
|
+
tags: [
|
|
937
|
+
"site-{siteId}",
|
|
938
|
+
"content-{siteId}-team-member",
|
|
939
|
+
"content-entry-{entryId}"
|
|
940
|
+
],
|
|
941
|
+
auth: "user",
|
|
942
|
+
responseKind: "json",
|
|
943
|
+
errors: [
|
|
944
|
+
"validation:invalid_input",
|
|
945
|
+
"resource:not_found",
|
|
946
|
+
"resource:conflict",
|
|
947
|
+
"server:internal_error"
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
unpublishTeamMemberProfile: {
|
|
951
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/unpublish",
|
|
952
|
+
method: "POST",
|
|
953
|
+
tags: [
|
|
954
|
+
"site-{siteId}",
|
|
955
|
+
"content-{siteId}-team-member",
|
|
956
|
+
"content-entry-{entryId}"
|
|
957
|
+
],
|
|
958
|
+
auth: "user",
|
|
959
|
+
responseKind: "json",
|
|
960
|
+
errors: [
|
|
961
|
+
"validation:invalid_input",
|
|
962
|
+
"resource:not_found",
|
|
963
|
+
"resource:conflict",
|
|
964
|
+
"server:internal_error"
|
|
965
|
+
]
|
|
966
|
+
},
|
|
967
|
+
scheduleTeamMemberProfile: {
|
|
968
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/schedule",
|
|
969
|
+
method: "POST",
|
|
970
|
+
tags: [
|
|
971
|
+
"site-{siteId}",
|
|
972
|
+
"content-{siteId}-team-member",
|
|
973
|
+
"content-entry-{entryId}"
|
|
974
|
+
],
|
|
975
|
+
auth: "user",
|
|
976
|
+
responseKind: "json",
|
|
977
|
+
errors: [
|
|
978
|
+
"validation:invalid_input",
|
|
979
|
+
"resource:not_found",
|
|
980
|
+
"resource:conflict",
|
|
981
|
+
"server:internal_error"
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
cancelScheduledTeamMemberProfile: {
|
|
985
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/schedule",
|
|
986
|
+
method: "DELETE",
|
|
987
|
+
tags: [
|
|
988
|
+
"site-{siteId}",
|
|
989
|
+
"content-{siteId}-team-member",
|
|
990
|
+
"content-entry-{entryId}"
|
|
991
|
+
],
|
|
992
|
+
auth: "user",
|
|
993
|
+
responseKind: "json",
|
|
994
|
+
errors: [
|
|
995
|
+
"validation:invalid_input",
|
|
996
|
+
"resource:not_found",
|
|
997
|
+
"resource:conflict",
|
|
998
|
+
"server:internal_error"
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
updateTeamMemberProfileRouteMetadata: {
|
|
1002
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/routes/{routeId}/metadata",
|
|
1003
|
+
method: "PATCH",
|
|
1004
|
+
tags: [
|
|
1005
|
+
TAG_TEMPLATES.siteCollection,
|
|
1006
|
+
TAG_TEMPLATES.siteRoutableContent,
|
|
1007
|
+
TAG_TEMPLATES.routeById
|
|
1008
|
+
],
|
|
1009
|
+
auth: "user",
|
|
1010
|
+
responseKind: "json",
|
|
1011
|
+
errors: [
|
|
1012
|
+
"validation:invalid_input",
|
|
1013
|
+
"resource:not_found",
|
|
1014
|
+
"resource:conflict",
|
|
1015
|
+
"server:internal_error"
|
|
1016
|
+
]
|
|
1017
|
+
},
|
|
881
1018
|
listAppointmentServices: {
|
|
882
1019
|
path: "/sites/{siteId}/bookings/services",
|
|
883
1020
|
method: "GET",
|
|
@@ -3251,6 +3388,15 @@ var init_endpoints = __esm({
|
|
|
3251
3388
|
auth: "public",
|
|
3252
3389
|
responseKind: "json"
|
|
3253
3390
|
},
|
|
3391
|
+
listPublicTeamMembers: {
|
|
3392
|
+
path: "/public/sites/{siteId}/team-members",
|
|
3393
|
+
method: "GET",
|
|
3394
|
+
revalidate: 60,
|
|
3395
|
+
tags: ["public-team-members-{siteId}"],
|
|
3396
|
+
errors: [],
|
|
3397
|
+
auth: "public",
|
|
3398
|
+
responseKind: "json"
|
|
3399
|
+
},
|
|
3254
3400
|
getPublicCourse: {
|
|
3255
3401
|
path: "/public/sites/{siteId}/courses/{courseId}",
|
|
3256
3402
|
method: "GET",
|
|
@@ -7089,6 +7235,7 @@ var init_loaderEndpoints = __esm({
|
|
|
7089
7235
|
"listPublicEvents",
|
|
7090
7236
|
"getPublicEventDetails",
|
|
7091
7237
|
"listPublicCourses",
|
|
7238
|
+
"listPublicTeamMembers",
|
|
7092
7239
|
"listPublicProducts",
|
|
7093
7240
|
"listPublicPasses",
|
|
7094
7241
|
"listPublicMemberships",
|
|
@@ -8271,233 +8418,6 @@ var init_visibility = __esm({
|
|
|
8271
8418
|
}
|
|
8272
8419
|
});
|
|
8273
8420
|
|
|
8274
|
-
// ../api/src/navigation/linkValue.ts
|
|
8275
|
-
var init_linkValue = __esm({
|
|
8276
|
-
"../api/src/navigation/linkValue.ts"() {
|
|
8277
|
-
"use strict";
|
|
8278
|
-
init_routableLink();
|
|
8279
|
-
}
|
|
8280
|
-
});
|
|
8281
|
-
|
|
8282
|
-
// ../api/src/redirects.ts
|
|
8283
|
-
var init_redirects = __esm({
|
|
8284
|
-
"../api/src/redirects.ts"() {
|
|
8285
|
-
"use strict";
|
|
8286
|
-
init_envelope();
|
|
8287
|
-
init_error_propagation();
|
|
8288
|
-
}
|
|
8289
|
-
});
|
|
8290
|
-
|
|
8291
|
-
// ../api/src/billing.ts
|
|
8292
|
-
var init_billing = __esm({
|
|
8293
|
-
"../api/src/billing.ts"() {
|
|
8294
|
-
"use strict";
|
|
8295
|
-
init_envelope();
|
|
8296
|
-
init_error_propagation();
|
|
8297
|
-
}
|
|
8298
|
-
});
|
|
8299
|
-
|
|
8300
|
-
// ../api/src/aiPatch.ts
|
|
8301
|
-
var init_aiPatch = __esm({
|
|
8302
|
-
"../api/src/aiPatch.ts"() {
|
|
8303
|
-
"use strict";
|
|
8304
|
-
init_envelope();
|
|
8305
|
-
}
|
|
8306
|
-
});
|
|
8307
|
-
|
|
8308
|
-
// ../api/src/aiPlayground.ts
|
|
8309
|
-
import { z as z8 } from "zod";
|
|
8310
|
-
var Rfc6902PatchOp, PlaygroundProposeRequest, MultiPagePatchEnvelope, MultiPageUpdateResponse;
|
|
8311
|
-
var init_aiPlayground = __esm({
|
|
8312
|
-
"../api/src/aiPlayground.ts"() {
|
|
8313
|
-
"use strict";
|
|
8314
|
-
Rfc6902PatchOp = z8.discriminatedUnion("op", [
|
|
8315
|
-
// Standard RFC-6902 operations
|
|
8316
|
-
z8.object({
|
|
8317
|
-
op: z8.literal("add"),
|
|
8318
|
-
path: z8.string(),
|
|
8319
|
-
value: z8.unknown()
|
|
8320
|
-
}),
|
|
8321
|
-
z8.object({
|
|
8322
|
-
op: z8.literal("remove"),
|
|
8323
|
-
path: z8.string()
|
|
8324
|
-
}),
|
|
8325
|
-
z8.object({
|
|
8326
|
-
op: z8.literal("replace"),
|
|
8327
|
-
path: z8.string(),
|
|
8328
|
-
value: z8.unknown()
|
|
8329
|
-
}),
|
|
8330
|
-
z8.object({
|
|
8331
|
-
op: z8.literal("move"),
|
|
8332
|
-
from: z8.string(),
|
|
8333
|
-
path: z8.string()
|
|
8334
|
-
}),
|
|
8335
|
-
z8.object({
|
|
8336
|
-
op: z8.literal("copy"),
|
|
8337
|
-
from: z8.string(),
|
|
8338
|
-
path: z8.string()
|
|
8339
|
-
}),
|
|
8340
|
-
// Block-level operations (Phase 2)
|
|
8341
|
-
z8.object({
|
|
8342
|
-
op: z8.literal("add_block"),
|
|
8343
|
-
blockKind: z8.string(),
|
|
8344
|
-
afterBlockId: z8.string().nullable(),
|
|
8345
|
-
content: z8.record(z8.string(), z8.unknown()),
|
|
8346
|
-
rationale: z8.string()
|
|
8347
|
-
}),
|
|
8348
|
-
z8.object({
|
|
8349
|
-
op: z8.literal("delete_block"),
|
|
8350
|
-
blockId: z8.string(),
|
|
8351
|
-
rationale: z8.string()
|
|
8352
|
-
}),
|
|
8353
|
-
z8.object({
|
|
8354
|
-
op: z8.literal("reorder_block"),
|
|
8355
|
-
blockId: z8.string(),
|
|
8356
|
-
afterBlockId: z8.string().nullable(),
|
|
8357
|
-
rationale: z8.string()
|
|
8358
|
-
})
|
|
8359
|
-
]);
|
|
8360
|
-
PlaygroundProposeRequest = z8.object({
|
|
8361
|
-
request: z8.string().min(1).max(2e3)
|
|
8362
|
-
});
|
|
8363
|
-
MultiPagePatchEnvelope = z8.object({
|
|
8364
|
-
pageId: z8.string(),
|
|
8365
|
-
blockId: z8.string().optional(),
|
|
8366
|
-
// Not present for page-level ops
|
|
8367
|
-
blockKind: z8.string().optional(),
|
|
8368
|
-
blockPurpose: z8.string().optional().nullable(),
|
|
8369
|
-
ops: z8.array(Rfc6902PatchOp),
|
|
8370
|
-
rationale: z8.string(),
|
|
8371
|
-
currentContent: z8.record(z8.string(), z8.unknown()).optional()
|
|
8372
|
-
});
|
|
8373
|
-
MultiPageUpdateResponse = z8.object({
|
|
8374
|
-
patches: z8.array(MultiPagePatchEnvelope),
|
|
8375
|
-
assistantMessage: z8.string(),
|
|
8376
|
-
pagesModified: z8.number(),
|
|
8377
|
-
toolCallsUsed: z8.number()
|
|
8378
|
-
});
|
|
8379
|
-
}
|
|
8380
|
-
});
|
|
8381
|
-
|
|
8382
|
-
// ../api/src/seo.ts
|
|
8383
|
-
var init_seo = __esm({
|
|
8384
|
-
"../api/src/seo.ts"() {
|
|
8385
|
-
"use strict";
|
|
8386
|
-
init_envelope();
|
|
8387
|
-
}
|
|
8388
|
-
});
|
|
8389
|
-
|
|
8390
|
-
// ../api/src/performance.ts
|
|
8391
|
-
var init_performance = __esm({
|
|
8392
|
-
"../api/src/performance.ts"() {
|
|
8393
|
-
"use strict";
|
|
8394
|
-
init_envelope();
|
|
8395
|
-
}
|
|
8396
|
-
});
|
|
8397
|
-
|
|
8398
|
-
// ../api/src/contentTypes.ts
|
|
8399
|
-
var init_contentTypes = __esm({
|
|
8400
|
-
"../api/src/contentTypes.ts"() {
|
|
8401
|
-
"use strict";
|
|
8402
|
-
init_envelope();
|
|
8403
|
-
init_error_propagation();
|
|
8404
|
-
}
|
|
8405
|
-
});
|
|
8406
|
-
|
|
8407
|
-
// ../api/src/domains.ts
|
|
8408
|
-
var init_domains = __esm({
|
|
8409
|
-
"../api/src/domains.ts"() {
|
|
8410
|
-
"use strict";
|
|
8411
|
-
init_envelope();
|
|
8412
|
-
init_error_propagation();
|
|
8413
|
-
}
|
|
8414
|
-
});
|
|
8415
|
-
|
|
8416
|
-
// ../api/src/admin.ts
|
|
8417
|
-
var init_admin = __esm({
|
|
8418
|
-
"../api/src/admin.ts"() {
|
|
8419
|
-
"use strict";
|
|
8420
|
-
init_envelope();
|
|
8421
|
-
init_error_propagation();
|
|
8422
|
-
}
|
|
8423
|
-
});
|
|
8424
|
-
|
|
8425
|
-
// ../api/src/auth.ts
|
|
8426
|
-
var init_auth = __esm({
|
|
8427
|
-
"../api/src/auth.ts"() {
|
|
8428
|
-
"use strict";
|
|
8429
|
-
init_request();
|
|
8430
|
-
init_envelope();
|
|
8431
|
-
init_error_propagation();
|
|
8432
|
-
}
|
|
8433
|
-
});
|
|
8434
|
-
|
|
8435
|
-
// ../api/src/index.ts
|
|
8436
|
-
var init_src3 = __esm({
|
|
8437
|
-
"../api/src/index.ts"() {
|
|
8438
|
-
"use strict";
|
|
8439
|
-
init_endpoints();
|
|
8440
|
-
init_media();
|
|
8441
|
-
init_contracts();
|
|
8442
|
-
init_contracts2();
|
|
8443
|
-
init_sdkContracts();
|
|
8444
|
-
init_incrementalJson();
|
|
8445
|
-
init_launchReadiness();
|
|
8446
|
-
init_url();
|
|
8447
|
-
init_envelope();
|
|
8448
|
-
init_request();
|
|
8449
|
-
init_env();
|
|
8450
|
-
init_bookingRefundOutcomes();
|
|
8451
|
-
init_customerMembershipOutcomes();
|
|
8452
|
-
init_bookingVerticals();
|
|
8453
|
-
init_appointmentSetup();
|
|
8454
|
-
init_bookings();
|
|
8455
|
-
init_cache_tags();
|
|
8456
|
-
init_streamReader();
|
|
8457
|
-
init_siteAnalytics();
|
|
8458
|
-
init_types2();
|
|
8459
|
-
init_eventAttendanceLabels();
|
|
8460
|
-
init_siteBanner();
|
|
8461
|
-
init_siteOnboarding();
|
|
8462
|
-
init_privacyPolicy();
|
|
8463
|
-
init_analytics();
|
|
8464
|
-
init_publicProducts();
|
|
8465
|
-
init_contentEntries();
|
|
8466
|
-
init_blocks();
|
|
8467
|
-
init_blocksKeys();
|
|
8468
|
-
init_contentKeys();
|
|
8469
|
-
init_pages();
|
|
8470
|
-
init_routes();
|
|
8471
|
-
init_bookings();
|
|
8472
|
-
init_emailSettings();
|
|
8473
|
-
init_eventEmailTemplates();
|
|
8474
|
-
init_resources();
|
|
8475
|
-
init_services();
|
|
8476
|
-
init_availability();
|
|
8477
|
-
init_calendar();
|
|
8478
|
-
init_navigation();
|
|
8479
|
-
init_navigationMenuValidation();
|
|
8480
|
-
init_routableLink();
|
|
8481
|
-
init_linkResolver();
|
|
8482
|
-
init_matcher();
|
|
8483
|
-
init_visibility();
|
|
8484
|
-
init_linkValue();
|
|
8485
|
-
init_redirects();
|
|
8486
|
-
init_billing();
|
|
8487
|
-
init_aiPatch();
|
|
8488
|
-
init_aiPlayground();
|
|
8489
|
-
init_seo();
|
|
8490
|
-
init_performance();
|
|
8491
|
-
init_contentTypes();
|
|
8492
|
-
init_analytics();
|
|
8493
|
-
init_siteMembers();
|
|
8494
|
-
init_domains();
|
|
8495
|
-
init_admin();
|
|
8496
|
-
init_auth();
|
|
8497
|
-
init_types2();
|
|
8498
|
-
}
|
|
8499
|
-
});
|
|
8500
|
-
|
|
8501
8421
|
// ../blocks/src/system/manifest/augmentManifest.ts
|
|
8502
8422
|
function augmentManifest(manifest) {
|
|
8503
8423
|
let augmentedFields = manifest.fields ?? [];
|
|
@@ -8557,6 +8477,14 @@ var init_fieldPath = __esm({
|
|
|
8557
8477
|
}
|
|
8558
8478
|
});
|
|
8559
8479
|
|
|
8480
|
+
// ../blocks/src/system/manifest/fieldValidation/index.ts
|
|
8481
|
+
import { z as z8 } from "zod";
|
|
8482
|
+
var init_fieldValidation = __esm({
|
|
8483
|
+
"../blocks/src/system/manifest/fieldValidation/index.ts"() {
|
|
8484
|
+
"use strict";
|
|
8485
|
+
}
|
|
8486
|
+
});
|
|
8487
|
+
|
|
8560
8488
|
// ../blocks/src/system/manifest/registry.ts
|
|
8561
8489
|
function registerManifest(manifest) {
|
|
8562
8490
|
manifestStore.set(manifest.name, manifest);
|
|
@@ -8573,62 +8501,11 @@ var init_registry = __esm({
|
|
|
8573
8501
|
}
|
|
8574
8502
|
});
|
|
8575
8503
|
|
|
8576
|
-
// ../blocks/src/lib/typeGuards.ts
|
|
8577
|
-
function isRecord2(value) {
|
|
8578
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8579
|
-
}
|
|
8580
|
-
function isObjectRecord(value) {
|
|
8581
|
-
return typeof value === "object" && value !== null;
|
|
8582
|
-
}
|
|
8583
|
-
var init_typeGuards = __esm({
|
|
8584
|
-
"../blocks/src/lib/typeGuards.ts"() {
|
|
8585
|
-
"use strict";
|
|
8586
|
-
}
|
|
8587
|
-
});
|
|
8588
|
-
|
|
8589
8504
|
// ../blocks/src/system/manifest/validation.ts
|
|
8590
8505
|
import { z as z9 } from "zod";
|
|
8591
|
-
var nullableString, internalLinkSchema, externalLinkSchema2, customLinkSchema2, pageLinkSchema2, entryLinkSchema2, linkSchema;
|
|
8592
8506
|
var init_validation = __esm({
|
|
8593
8507
|
"../blocks/src/system/manifest/validation.ts"() {
|
|
8594
8508
|
"use strict";
|
|
8595
|
-
nullableString = z9.union([z9.string().min(1), z9.null()]);
|
|
8596
|
-
internalLinkSchema = z9.object({
|
|
8597
|
-
kind: z9.literal("internal"),
|
|
8598
|
-
routeId: z9.string().min(1),
|
|
8599
|
-
entityId: z9.string().min(1).optional(),
|
|
8600
|
-
entityType: z9.enum(["page", "content"]).optional(),
|
|
8601
|
-
href: nullableString.optional(),
|
|
8602
|
-
title: nullableString.optional(),
|
|
8603
|
-
typeLabel: nullableString.optional(),
|
|
8604
|
-
contentTypeKey: nullableString.optional(),
|
|
8605
|
-
contentTypeName: nullableString.optional(),
|
|
8606
|
-
updatedAt: nullableString.optional()
|
|
8607
|
-
}).passthrough();
|
|
8608
|
-
externalLinkSchema2 = z9.object({
|
|
8609
|
-
kind: z9.literal("external"),
|
|
8610
|
-
href: z9.string().min(1)
|
|
8611
|
-
}).passthrough();
|
|
8612
|
-
customLinkSchema2 = z9.object({
|
|
8613
|
-
kind: z9.literal("url"),
|
|
8614
|
-
href: z9.string().min(1)
|
|
8615
|
-
}).passthrough();
|
|
8616
|
-
pageLinkSchema2 = z9.object({
|
|
8617
|
-
kind: z9.literal("page"),
|
|
8618
|
-
identifier: z9.string().min(1)
|
|
8619
|
-
}).passthrough();
|
|
8620
|
-
entryLinkSchema2 = z9.object({
|
|
8621
|
-
kind: z9.literal("entry"),
|
|
8622
|
-
contentType: z9.string().min(1),
|
|
8623
|
-
identifier: z9.string().min(1)
|
|
8624
|
-
}).passthrough();
|
|
8625
|
-
linkSchema = z9.union([
|
|
8626
|
-
internalLinkSchema,
|
|
8627
|
-
externalLinkSchema2,
|
|
8628
|
-
customLinkSchema2,
|
|
8629
|
-
pageLinkSchema2,
|
|
8630
|
-
entryLinkSchema2
|
|
8631
|
-
]);
|
|
8632
8509
|
}
|
|
8633
8510
|
});
|
|
8634
8511
|
|
|
@@ -8645,6 +8522,7 @@ var init_manifest = __esm({
|
|
|
8645
8522
|
"use strict";
|
|
8646
8523
|
init_augmentManifest();
|
|
8647
8524
|
init_fieldPath();
|
|
8525
|
+
init_fieldValidation();
|
|
8648
8526
|
init_registry();
|
|
8649
8527
|
init_schema2();
|
|
8650
8528
|
init_validation();
|
|
@@ -17987,7 +17865,19 @@ var init_teamMember = __esm({
|
|
|
17987
17865
|
bind("photo")
|
|
17988
17866
|
)
|
|
17989
17867
|
]),
|
|
17990
|
-
|
|
17868
|
+
link(
|
|
17869
|
+
{
|
|
17870
|
+
href: { $bind: { from: "profilePath" } },
|
|
17871
|
+
className: "rb-team-member-name-link"
|
|
17872
|
+
},
|
|
17873
|
+
[text({ as: "h3" }, bind("name"))],
|
|
17874
|
+
when("profilePath")
|
|
17875
|
+
),
|
|
17876
|
+
text(
|
|
17877
|
+
{ as: "h3" },
|
|
17878
|
+
when("profilePath", { not: true }),
|
|
17879
|
+
bind("name")
|
|
17880
|
+
),
|
|
17991
17881
|
text({ as: "p", className: "rb-team-member-role" }, when("role"), bind("role")),
|
|
17992
17882
|
richText(
|
|
17993
17883
|
{ className: "rb-prose rb-max-w-none" },
|
|
@@ -18902,14 +18792,14 @@ var init_runtime = __esm({
|
|
|
18902
18792
|
});
|
|
18903
18793
|
|
|
18904
18794
|
// ../blocks/src/contracts/islands.ts
|
|
18905
|
-
function
|
|
18795
|
+
function isObjectRecord(value) {
|
|
18906
18796
|
return typeof value === "object" && value !== null;
|
|
18907
18797
|
}
|
|
18908
18798
|
function pickRecordKeys(source, keys) {
|
|
18909
18799
|
return Object.fromEntries(keys.map((key) => [key, source[key]]));
|
|
18910
18800
|
}
|
|
18911
18801
|
function expectEncodedRecord(value, label) {
|
|
18912
|
-
if (
|
|
18802
|
+
if (isObjectRecord(value)) {
|
|
18913
18803
|
return value;
|
|
18914
18804
|
}
|
|
18915
18805
|
throw new Error(`Expected ${label} codec to encode an object`);
|
|
@@ -18941,7 +18831,7 @@ function createInteractiveIslandCodec(options) {
|
|
|
18941
18831
|
};
|
|
18942
18832
|
},
|
|
18943
18833
|
decode: (input) => {
|
|
18944
|
-
if (!
|
|
18834
|
+
if (!isObjectRecord(input)) {
|
|
18945
18835
|
return decodeFailure([{ path: [], message: "Expected island props object" }]);
|
|
18946
18836
|
}
|
|
18947
18837
|
const metaResult = options.meta.decode(pickRecordKeys(input, options.metaKeys));
|
|
@@ -18953,7 +18843,7 @@ function createInteractiveIslandCodec(options) {
|
|
|
18953
18843
|
});
|
|
18954
18844
|
}
|
|
18955
18845
|
const renderInput = input.render;
|
|
18956
|
-
if (!
|
|
18846
|
+
if (!isObjectRecord(renderInput)) {
|
|
18957
18847
|
renderIssues.push({
|
|
18958
18848
|
path: ["render"],
|
|
18959
18849
|
message: "Expected render object"
|
|
@@ -20405,6 +20295,19 @@ var init_media3 = __esm({
|
|
|
20405
20295
|
}
|
|
20406
20296
|
});
|
|
20407
20297
|
|
|
20298
|
+
// ../blocks/src/lib/typeGuards.ts
|
|
20299
|
+
function isRecord2(value) {
|
|
20300
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20301
|
+
}
|
|
20302
|
+
function isObjectRecord2(value) {
|
|
20303
|
+
return typeof value === "object" && value !== null;
|
|
20304
|
+
}
|
|
20305
|
+
var init_typeGuards = __esm({
|
|
20306
|
+
"../blocks/src/lib/typeGuards.ts"() {
|
|
20307
|
+
"use strict";
|
|
20308
|
+
}
|
|
20309
|
+
});
|
|
20310
|
+
|
|
20408
20311
|
// ../blocks/src/system/transforms/registry/content.ts
|
|
20409
20312
|
import { z as z39 } from "zod";
|
|
20410
20313
|
function getSiteName(context) {
|
|
@@ -22639,7 +22542,9 @@ var init_schemas = __esm({
|
|
|
22639
22542
|
courseTeamMemberSummarySchema = z43.object({
|
|
22640
22543
|
id: z43.string(),
|
|
22641
22544
|
name: z43.string(),
|
|
22642
|
-
|
|
22545
|
+
roleLabel: z43.string().nullable(),
|
|
22546
|
+
summary: z43.string().nullable(),
|
|
22547
|
+
profilePath: z43.string().nullable()
|
|
22643
22548
|
});
|
|
22644
22549
|
coursePricingOptionSchema = z43.object({
|
|
22645
22550
|
id: z43.string(),
|
|
@@ -22754,7 +22659,9 @@ var init_schemas2 = __esm({
|
|
|
22754
22659
|
publicTeamMemberSummarySchema = z44.object({
|
|
22755
22660
|
id: z44.string(),
|
|
22756
22661
|
name: z44.string(),
|
|
22757
|
-
|
|
22662
|
+
roleLabel: z44.string().nullable(),
|
|
22663
|
+
summary: z44.string().nullable(),
|
|
22664
|
+
profilePath: z44.string().nullable()
|
|
22758
22665
|
});
|
|
22759
22666
|
publicEventSchema = z44.object({
|
|
22760
22667
|
kind: z44.enum(["event", "course_session"]).optional(),
|
|
@@ -29054,7 +28961,8 @@ var init_newsletter_signup = __esm({
|
|
|
29054
28961
|
});
|
|
29055
28962
|
|
|
29056
28963
|
// ../blocks/src/system/blocks/team-members.ts
|
|
29057
|
-
|
|
28964
|
+
import { z as z62 } from "zod";
|
|
28965
|
+
var ITEM_NAME2, teamMemberPhotoSchema, teamMemberDataSchema, teamMembersDataSchema, dynamicSourceWhen, manualSourceWhen, headingNode, wrapVariant3, teamMemberStackLayout, manualGridMembersNode, dynamicGridMembersNode, gridVariant, manualStackMembersNode, dynamicStackMembersNode, stackVariant, teamMembersManifest, teamMembersBlockDefinition;
|
|
29058
28966
|
var init_team_members = __esm({
|
|
29059
28967
|
"../blocks/src/system/blocks/team-members.ts"() {
|
|
29060
28968
|
"use strict";
|
|
@@ -29065,7 +28973,25 @@ var init_team_members = __esm({
|
|
|
29065
28973
|
init_fragments();
|
|
29066
28974
|
init_fragmentCollection();
|
|
29067
28975
|
init_imageLayout();
|
|
28976
|
+
init_media4();
|
|
29068
28977
|
ITEM_NAME2 = "member";
|
|
28978
|
+
teamMemberPhotoSchema = mediaSchema2.refine((media2) => media2.type === "image", {
|
|
28979
|
+
message: "Team member photos must be image media"
|
|
28980
|
+
}).nullable();
|
|
28981
|
+
teamMemberDataSchema = z62.object({
|
|
28982
|
+
_type: z62.literal("teamMember"),
|
|
28983
|
+
id: z62.string(),
|
|
28984
|
+
name: z62.string(),
|
|
28985
|
+
role: z62.string().nullable(),
|
|
28986
|
+
roleLabel: z62.string().nullable(),
|
|
28987
|
+
bio: z62.string().nullable(),
|
|
28988
|
+
summary: z62.string().nullable(),
|
|
28989
|
+
photo: teamMemberPhotoSchema,
|
|
28990
|
+
profilePath: z62.string().nullable()
|
|
28991
|
+
});
|
|
28992
|
+
teamMembersDataSchema = z62.array(teamMemberDataSchema);
|
|
28993
|
+
dynamicSourceWhen = { equals: "site_staff" };
|
|
28994
|
+
manualSourceWhen = { equals: "site_staff", not: true };
|
|
29069
28995
|
headingNode = text(
|
|
29070
28996
|
{ as: "h2" },
|
|
29071
28997
|
bind("content.heading"),
|
|
@@ -29155,7 +29081,15 @@ var init_team_members = __esm({
|
|
|
29155
29081
|
]
|
|
29156
29082
|
),
|
|
29157
29083
|
stack({ gap: "sm", className: "rb-team-member-body rb-flex-1 rb-min-w-0" }, [
|
|
29158
|
-
|
|
29084
|
+
link(
|
|
29085
|
+
{
|
|
29086
|
+
href: { $bind: { from: "profilePath" } },
|
|
29087
|
+
className: "rb-team-member-name-link"
|
|
29088
|
+
},
|
|
29089
|
+
[text({ as: "h3" }, bind("name"))],
|
|
29090
|
+
when("profilePath")
|
|
29091
|
+
),
|
|
29092
|
+
text({ as: "h3" }, when("profilePath", { not: true }), bind("name")),
|
|
29159
29093
|
text(
|
|
29160
29094
|
{ as: "p", className: "rb-team-member-role" },
|
|
29161
29095
|
when("role"),
|
|
@@ -29169,12 +29103,18 @@ var init_team_members = __esm({
|
|
|
29169
29103
|
])
|
|
29170
29104
|
]
|
|
29171
29105
|
);
|
|
29172
|
-
|
|
29106
|
+
manualGridMembersNode = when("content.source", manualSourceWhen)(repeaterFragmentLayout({
|
|
29173
29107
|
collectionPath: "content.members",
|
|
29174
29108
|
itemName: ITEM_NAME2,
|
|
29175
29109
|
fragments: { teamMember: teamMemberFragment },
|
|
29176
29110
|
itemGap: "sm"
|
|
29177
|
-
});
|
|
29111
|
+
}));
|
|
29112
|
+
dynamicGridMembersNode = when("content.source", dynamicSourceWhen)(repeaterFragmentLayout({
|
|
29113
|
+
collectionPath: "data.members",
|
|
29114
|
+
itemName: ITEM_NAME2,
|
|
29115
|
+
fragments: { teamMember: teamMemberFragment },
|
|
29116
|
+
itemGap: "sm"
|
|
29117
|
+
}));
|
|
29178
29118
|
gridVariant = wrapVariant3(
|
|
29179
29119
|
el(
|
|
29180
29120
|
"grid",
|
|
@@ -29188,22 +29128,29 @@ var init_team_members = __esm({
|
|
|
29188
29128
|
},
|
|
29189
29129
|
gap: { $bind: { from: "content.gap", fallback: "medium" } }
|
|
29190
29130
|
},
|
|
29191
|
-
[
|
|
29131
|
+
[manualGridMembersNode, dynamicGridMembersNode]
|
|
29192
29132
|
)
|
|
29193
29133
|
);
|
|
29194
|
-
|
|
29134
|
+
manualStackMembersNode = when("content.source", manualSourceWhen)(repeaterFragmentLayout({
|
|
29195
29135
|
collectionPath: "content.members",
|
|
29196
29136
|
itemName: ITEM_NAME2,
|
|
29197
29137
|
fragments: { teamMember: teamMemberFragment },
|
|
29198
29138
|
layoutOverrides: { teamMember: teamMemberStackLayout },
|
|
29199
29139
|
itemGap: "sm"
|
|
29200
|
-
});
|
|
29140
|
+
}));
|
|
29141
|
+
dynamicStackMembersNode = when("content.source", dynamicSourceWhen)(repeaterFragmentLayout({
|
|
29142
|
+
collectionPath: "data.members",
|
|
29143
|
+
itemName: ITEM_NAME2,
|
|
29144
|
+
fragments: { teamMember: teamMemberFragment },
|
|
29145
|
+
layoutOverrides: { teamMember: teamMemberStackLayout },
|
|
29146
|
+
itemGap: "sm"
|
|
29147
|
+
}));
|
|
29201
29148
|
stackVariant = wrapVariant3({
|
|
29202
29149
|
type: "stack",
|
|
29203
29150
|
props: {
|
|
29204
29151
|
gap: { $bind: { from: "content.gap", fallback: "medium" } }
|
|
29205
29152
|
},
|
|
29206
|
-
children: [
|
|
29153
|
+
children: [manualStackMembersNode, dynamicStackMembersNode]
|
|
29207
29154
|
});
|
|
29208
29155
|
teamMembersManifest = createBlockManifest({
|
|
29209
29156
|
id: "block.team-members",
|
|
@@ -29218,6 +29165,18 @@ var init_team_members = __esm({
|
|
|
29218
29165
|
required: false,
|
|
29219
29166
|
maxLength: 120
|
|
29220
29167
|
}),
|
|
29168
|
+
parseFieldDefinition({
|
|
29169
|
+
id: "source",
|
|
29170
|
+
type: "select",
|
|
29171
|
+
label: "Team members",
|
|
29172
|
+
description: "Choose whether to use the site-wide team or a hand-picked list.",
|
|
29173
|
+
defaultValue: "manual",
|
|
29174
|
+
options: [
|
|
29175
|
+
{ value: "manual", label: "Choose manually" },
|
|
29176
|
+
{ value: "site_staff", label: "Use all site team members" }
|
|
29177
|
+
],
|
|
29178
|
+
ui: { intent: "behavior" }
|
|
29179
|
+
}),
|
|
29221
29180
|
parseFieldDefinition({
|
|
29222
29181
|
id: "layoutAlign",
|
|
29223
29182
|
type: "select",
|
|
@@ -29320,18 +29279,24 @@ var init_team_members = __esm({
|
|
|
29320
29279
|
],
|
|
29321
29280
|
ui: { intent: "display" }
|
|
29322
29281
|
}),
|
|
29323
|
-
|
|
29324
|
-
|
|
29325
|
-
|
|
29326
|
-
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
|
|
29330
|
-
|
|
29331
|
-
|
|
29332
|
-
|
|
29282
|
+
{
|
|
29283
|
+
...fragmentsToRepeaterField(
|
|
29284
|
+
"members",
|
|
29285
|
+
"Team members",
|
|
29286
|
+
{ teamMember: teamMemberFragment },
|
|
29287
|
+
{
|
|
29288
|
+
minItems: 0,
|
|
29289
|
+
maxItems: 50,
|
|
29290
|
+
itemLabel: "Team member",
|
|
29291
|
+
itemLabelSource: "name",
|
|
29292
|
+
description: "Add people to this section."
|
|
29293
|
+
}
|
|
29294
|
+
),
|
|
29295
|
+
ui: {
|
|
29296
|
+
intent: "content",
|
|
29297
|
+
visibleWhen: { field: "source", equals: "manual" }
|
|
29333
29298
|
}
|
|
29334
|
-
|
|
29299
|
+
}
|
|
29335
29300
|
],
|
|
29336
29301
|
layout: gridVariant,
|
|
29337
29302
|
variants: {
|
|
@@ -29357,7 +29322,20 @@ var init_team_members = __esm({
|
|
|
29357
29322
|
styleTokens: { spacing: "lg" }
|
|
29358
29323
|
});
|
|
29359
29324
|
teamMembersBlockDefinition = {
|
|
29360
|
-
manifest: teamMembersManifest
|
|
29325
|
+
manifest: teamMembersManifest,
|
|
29326
|
+
dataSchemas: {
|
|
29327
|
+
members: teamMembersDataSchema
|
|
29328
|
+
},
|
|
29329
|
+
dataLoaders: {
|
|
29330
|
+
members: {
|
|
29331
|
+
endpoint: "listPublicTeamMembers",
|
|
29332
|
+
params: {
|
|
29333
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
29334
|
+
stage: { $bind: { from: "$root.previewStage", fallback: "published" } }
|
|
29335
|
+
},
|
|
29336
|
+
mode: "server"
|
|
29337
|
+
}
|
|
29338
|
+
}
|
|
29361
29339
|
};
|
|
29362
29340
|
}
|
|
29363
29341
|
});
|
|
@@ -30987,10 +30965,10 @@ function normalizeDataLoaders(def) {
|
|
|
30987
30965
|
}
|
|
30988
30966
|
function normalizeContent(block) {
|
|
30989
30967
|
const source = block.draftContent ?? block.content ?? block.publishedContent ?? {};
|
|
30990
|
-
if (!
|
|
30968
|
+
if (!isObjectRecord2(source)) return {};
|
|
30991
30969
|
if ("data" in source) {
|
|
30992
30970
|
const data = source.data;
|
|
30993
|
-
if (
|
|
30971
|
+
if (isObjectRecord2(data)) {
|
|
30994
30972
|
return data;
|
|
30995
30973
|
}
|
|
30996
30974
|
if (data === null || data === void 0) {
|
|
@@ -31039,6 +31017,7 @@ function coercePayload(payload) {
|
|
|
31039
31017
|
if ("form" in record && typeof record.form !== "function") return record.form;
|
|
31040
31018
|
if ("entries" in record && typeof record.entries !== "function") return record.entries;
|
|
31041
31019
|
if ("services" in record && typeof record.services !== "function") return record.services;
|
|
31020
|
+
if ("teamMembers" in record && typeof record.teamMembers !== "function") return record.teamMembers;
|
|
31042
31021
|
}
|
|
31043
31022
|
return payload;
|
|
31044
31023
|
}
|
|
@@ -31128,7 +31107,7 @@ var init_prefetchBlockData = __esm({
|
|
|
31128
31107
|
|
|
31129
31108
|
// ../blocks/src/system/data/normalizeLoaderParams.ts
|
|
31130
31109
|
function toStringParams(value) {
|
|
31131
|
-
if (!
|
|
31110
|
+
if (!isObjectRecord2(value)) return {};
|
|
31132
31111
|
const out = {};
|
|
31133
31112
|
for (const [k, v] of Object.entries(value)) {
|
|
31134
31113
|
if (typeof v === "string") out[k] = v;
|
|
@@ -31174,6 +31153,10 @@ function normalizeLoaderParams(endpoint, params, context) {
|
|
|
31174
31153
|
ensureSiteId(out, context);
|
|
31175
31154
|
return out;
|
|
31176
31155
|
}
|
|
31156
|
+
if (endpoint === "listPublicTeamMembers") {
|
|
31157
|
+
ensureSiteId(out, context);
|
|
31158
|
+
return out;
|
|
31159
|
+
}
|
|
31177
31160
|
if (endpoint === "getPublishedEntryPreview") {
|
|
31178
31161
|
ensureSiteId(out, context);
|
|
31179
31162
|
return out;
|
|
@@ -31197,6 +31180,233 @@ var init_data = __esm({
|
|
|
31197
31180
|
}
|
|
31198
31181
|
});
|
|
31199
31182
|
|
|
31183
|
+
// ../api/src/navigation/linkValue.ts
|
|
31184
|
+
var init_linkValue = __esm({
|
|
31185
|
+
"../api/src/navigation/linkValue.ts"() {
|
|
31186
|
+
"use strict";
|
|
31187
|
+
init_routableLink();
|
|
31188
|
+
}
|
|
31189
|
+
});
|
|
31190
|
+
|
|
31191
|
+
// ../api/src/redirects.ts
|
|
31192
|
+
var init_redirects = __esm({
|
|
31193
|
+
"../api/src/redirects.ts"() {
|
|
31194
|
+
"use strict";
|
|
31195
|
+
init_envelope();
|
|
31196
|
+
init_error_propagation();
|
|
31197
|
+
}
|
|
31198
|
+
});
|
|
31199
|
+
|
|
31200
|
+
// ../api/src/billing.ts
|
|
31201
|
+
var init_billing = __esm({
|
|
31202
|
+
"../api/src/billing.ts"() {
|
|
31203
|
+
"use strict";
|
|
31204
|
+
init_envelope();
|
|
31205
|
+
init_error_propagation();
|
|
31206
|
+
}
|
|
31207
|
+
});
|
|
31208
|
+
|
|
31209
|
+
// ../api/src/aiPatch.ts
|
|
31210
|
+
var init_aiPatch = __esm({
|
|
31211
|
+
"../api/src/aiPatch.ts"() {
|
|
31212
|
+
"use strict";
|
|
31213
|
+
init_envelope();
|
|
31214
|
+
}
|
|
31215
|
+
});
|
|
31216
|
+
|
|
31217
|
+
// ../api/src/aiPlayground.ts
|
|
31218
|
+
import { z as z63 } from "zod";
|
|
31219
|
+
var Rfc6902PatchOp, PlaygroundProposeRequest, MultiPagePatchEnvelope, MultiPageUpdateResponse;
|
|
31220
|
+
var init_aiPlayground = __esm({
|
|
31221
|
+
"../api/src/aiPlayground.ts"() {
|
|
31222
|
+
"use strict";
|
|
31223
|
+
Rfc6902PatchOp = z63.discriminatedUnion("op", [
|
|
31224
|
+
// Standard RFC-6902 operations
|
|
31225
|
+
z63.object({
|
|
31226
|
+
op: z63.literal("add"),
|
|
31227
|
+
path: z63.string(),
|
|
31228
|
+
value: z63.unknown()
|
|
31229
|
+
}),
|
|
31230
|
+
z63.object({
|
|
31231
|
+
op: z63.literal("remove"),
|
|
31232
|
+
path: z63.string()
|
|
31233
|
+
}),
|
|
31234
|
+
z63.object({
|
|
31235
|
+
op: z63.literal("replace"),
|
|
31236
|
+
path: z63.string(),
|
|
31237
|
+
value: z63.unknown()
|
|
31238
|
+
}),
|
|
31239
|
+
z63.object({
|
|
31240
|
+
op: z63.literal("move"),
|
|
31241
|
+
from: z63.string(),
|
|
31242
|
+
path: z63.string()
|
|
31243
|
+
}),
|
|
31244
|
+
z63.object({
|
|
31245
|
+
op: z63.literal("copy"),
|
|
31246
|
+
from: z63.string(),
|
|
31247
|
+
path: z63.string()
|
|
31248
|
+
}),
|
|
31249
|
+
// Block-level operations (Phase 2)
|
|
31250
|
+
z63.object({
|
|
31251
|
+
op: z63.literal("add_block"),
|
|
31252
|
+
blockKind: z63.string(),
|
|
31253
|
+
afterBlockId: z63.string().nullable(),
|
|
31254
|
+
content: z63.record(z63.string(), z63.unknown()),
|
|
31255
|
+
rationale: z63.string()
|
|
31256
|
+
}),
|
|
31257
|
+
z63.object({
|
|
31258
|
+
op: z63.literal("delete_block"),
|
|
31259
|
+
blockId: z63.string(),
|
|
31260
|
+
rationale: z63.string()
|
|
31261
|
+
}),
|
|
31262
|
+
z63.object({
|
|
31263
|
+
op: z63.literal("reorder_block"),
|
|
31264
|
+
blockId: z63.string(),
|
|
31265
|
+
afterBlockId: z63.string().nullable(),
|
|
31266
|
+
rationale: z63.string()
|
|
31267
|
+
})
|
|
31268
|
+
]);
|
|
31269
|
+
PlaygroundProposeRequest = z63.object({
|
|
31270
|
+
request: z63.string().min(1).max(2e3)
|
|
31271
|
+
});
|
|
31272
|
+
MultiPagePatchEnvelope = z63.object({
|
|
31273
|
+
pageId: z63.string(),
|
|
31274
|
+
blockId: z63.string().optional(),
|
|
31275
|
+
// Not present for page-level ops
|
|
31276
|
+
blockKind: z63.string().optional(),
|
|
31277
|
+
blockPurpose: z63.string().optional().nullable(),
|
|
31278
|
+
ops: z63.array(Rfc6902PatchOp),
|
|
31279
|
+
rationale: z63.string(),
|
|
31280
|
+
currentContent: z63.record(z63.string(), z63.unknown()).optional()
|
|
31281
|
+
});
|
|
31282
|
+
MultiPageUpdateResponse = z63.object({
|
|
31283
|
+
patches: z63.array(MultiPagePatchEnvelope),
|
|
31284
|
+
assistantMessage: z63.string(),
|
|
31285
|
+
pagesModified: z63.number(),
|
|
31286
|
+
toolCallsUsed: z63.number()
|
|
31287
|
+
});
|
|
31288
|
+
}
|
|
31289
|
+
});
|
|
31290
|
+
|
|
31291
|
+
// ../api/src/seo.ts
|
|
31292
|
+
var init_seo = __esm({
|
|
31293
|
+
"../api/src/seo.ts"() {
|
|
31294
|
+
"use strict";
|
|
31295
|
+
init_envelope();
|
|
31296
|
+
}
|
|
31297
|
+
});
|
|
31298
|
+
|
|
31299
|
+
// ../api/src/performance.ts
|
|
31300
|
+
var init_performance = __esm({
|
|
31301
|
+
"../api/src/performance.ts"() {
|
|
31302
|
+
"use strict";
|
|
31303
|
+
init_envelope();
|
|
31304
|
+
}
|
|
31305
|
+
});
|
|
31306
|
+
|
|
31307
|
+
// ../api/src/contentTypes.ts
|
|
31308
|
+
var init_contentTypes = __esm({
|
|
31309
|
+
"../api/src/contentTypes.ts"() {
|
|
31310
|
+
"use strict";
|
|
31311
|
+
init_envelope();
|
|
31312
|
+
init_error_propagation();
|
|
31313
|
+
}
|
|
31314
|
+
});
|
|
31315
|
+
|
|
31316
|
+
// ../api/src/domains.ts
|
|
31317
|
+
var init_domains = __esm({
|
|
31318
|
+
"../api/src/domains.ts"() {
|
|
31319
|
+
"use strict";
|
|
31320
|
+
init_envelope();
|
|
31321
|
+
init_error_propagation();
|
|
31322
|
+
}
|
|
31323
|
+
});
|
|
31324
|
+
|
|
31325
|
+
// ../api/src/admin.ts
|
|
31326
|
+
var init_admin = __esm({
|
|
31327
|
+
"../api/src/admin.ts"() {
|
|
31328
|
+
"use strict";
|
|
31329
|
+
init_envelope();
|
|
31330
|
+
init_error_propagation();
|
|
31331
|
+
}
|
|
31332
|
+
});
|
|
31333
|
+
|
|
31334
|
+
// ../api/src/auth.ts
|
|
31335
|
+
var init_auth = __esm({
|
|
31336
|
+
"../api/src/auth.ts"() {
|
|
31337
|
+
"use strict";
|
|
31338
|
+
init_request();
|
|
31339
|
+
init_envelope();
|
|
31340
|
+
init_error_propagation();
|
|
31341
|
+
}
|
|
31342
|
+
});
|
|
31343
|
+
|
|
31344
|
+
// ../api/src/index.ts
|
|
31345
|
+
var init_src3 = __esm({
|
|
31346
|
+
"../api/src/index.ts"() {
|
|
31347
|
+
"use strict";
|
|
31348
|
+
init_endpoints();
|
|
31349
|
+
init_media();
|
|
31350
|
+
init_contracts();
|
|
31351
|
+
init_contracts2();
|
|
31352
|
+
init_sdkContracts();
|
|
31353
|
+
init_incrementalJson();
|
|
31354
|
+
init_launchReadiness();
|
|
31355
|
+
init_url();
|
|
31356
|
+
init_envelope();
|
|
31357
|
+
init_request();
|
|
31358
|
+
init_env();
|
|
31359
|
+
init_bookingRefundOutcomes();
|
|
31360
|
+
init_customerMembershipOutcomes();
|
|
31361
|
+
init_bookingVerticals();
|
|
31362
|
+
init_appointmentSetup();
|
|
31363
|
+
init_bookings();
|
|
31364
|
+
init_cache_tags();
|
|
31365
|
+
init_streamReader();
|
|
31366
|
+
init_siteAnalytics();
|
|
31367
|
+
init_types2();
|
|
31368
|
+
init_eventAttendanceLabels();
|
|
31369
|
+
init_siteBanner();
|
|
31370
|
+
init_siteOnboarding();
|
|
31371
|
+
init_privacyPolicy();
|
|
31372
|
+
init_analytics();
|
|
31373
|
+
init_publicProducts();
|
|
31374
|
+
init_contentEntries();
|
|
31375
|
+
init_blocks();
|
|
31376
|
+
init_blocksKeys();
|
|
31377
|
+
init_contentKeys();
|
|
31378
|
+
init_pages();
|
|
31379
|
+
init_routes();
|
|
31380
|
+
init_bookings();
|
|
31381
|
+
init_emailSettings();
|
|
31382
|
+
init_eventEmailTemplates();
|
|
31383
|
+
init_resources();
|
|
31384
|
+
init_services();
|
|
31385
|
+
init_availability();
|
|
31386
|
+
init_calendar();
|
|
31387
|
+
init_navigation();
|
|
31388
|
+
init_navigationMenuValidation();
|
|
31389
|
+
init_routableLink();
|
|
31390
|
+
init_linkResolver();
|
|
31391
|
+
init_matcher();
|
|
31392
|
+
init_visibility();
|
|
31393
|
+
init_linkValue();
|
|
31394
|
+
init_redirects();
|
|
31395
|
+
init_billing();
|
|
31396
|
+
init_aiPatch();
|
|
31397
|
+
init_aiPlayground();
|
|
31398
|
+
init_seo();
|
|
31399
|
+
init_performance();
|
|
31400
|
+
init_contentTypes();
|
|
31401
|
+
init_analytics();
|
|
31402
|
+
init_siteMembers();
|
|
31403
|
+
init_domains();
|
|
31404
|
+
init_admin();
|
|
31405
|
+
init_auth();
|
|
31406
|
+
init_types2();
|
|
31407
|
+
}
|
|
31408
|
+
});
|
|
31409
|
+
|
|
31200
31410
|
// src/data/prefetchBlockData.ts
|
|
31201
31411
|
function isSupportedLoaderEndpoint(endpoint) {
|
|
31202
31412
|
return SUPPORTED_LOADER_ENDPOINTS2.includes(endpoint);
|
|
@@ -31355,6 +31565,16 @@ async function prefetchBlockData2(page, context, client, options) {
|
|
|
31355
31565
|
const parsedLimit = typeof limit === "string" ? Number.parseInt(limit, 10) : typeof limit === "number" ? limit : void 0;
|
|
31356
31566
|
return await client.listPublicCourses({ siteId, limit: parsedLimit, stage });
|
|
31357
31567
|
}
|
|
31568
|
+
case "listPublicTeamMembers": {
|
|
31569
|
+
const { siteId, stage } = resolvedParams ?? {};
|
|
31570
|
+
if (!siteId) {
|
|
31571
|
+
throw new Error("listPublicTeamMembers requires siteId param");
|
|
31572
|
+
}
|
|
31573
|
+
return await client.listPublicTeamMembers({
|
|
31574
|
+
siteId,
|
|
31575
|
+
stage: typeof stage === "string" ? stage : void 0
|
|
31576
|
+
});
|
|
31577
|
+
}
|
|
31358
31578
|
case "listPublicProducts": {
|
|
31359
31579
|
const { siteId, stage, categorySelector } = resolvedParams ?? {};
|
|
31360
31580
|
if (!siteId) {
|
|
@@ -31440,6 +31660,7 @@ var init_prefetchBlockData2 = __esm({
|
|
|
31440
31660
|
"getPublishedEntryPreview",
|
|
31441
31661
|
"listPublicEvents",
|
|
31442
31662
|
"listPublicCourses",
|
|
31663
|
+
"listPublicTeamMembers",
|
|
31443
31664
|
"listPublicProducts",
|
|
31444
31665
|
"listPublicPasses",
|
|
31445
31666
|
"listPublicMemberships",
|