@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import type { BlockManifest, FieldDefinition } from "./schema";
|
|
3
3
|
type ValidatorOptions = {
|
|
4
4
|
allowNull?: boolean;
|
|
5
5
|
/**
|
|
@@ -15,89 +15,7 @@ type ValidatorOptions = {
|
|
|
15
15
|
* Use 'draft' mode in preview/editing contexts where users need to temporarily
|
|
16
16
|
* have empty fields without validation errors causing blocks to disappear.
|
|
17
17
|
*/
|
|
18
|
-
mode?:
|
|
18
|
+
mode?: "strict" | "draft";
|
|
19
19
|
};
|
|
20
20
|
export declare function createManifestValidator(manifestOrFields: BlockManifest | FieldDefinition[], options?: ValidatorOptions): z.ZodType<Record<string, unknown>>;
|
|
21
|
-
/**
|
|
22
|
-
* Schema for internal links (created via dashboard link picker).
|
|
23
|
-
* These have pre-resolved hrefs from the route map.
|
|
24
|
-
*/
|
|
25
|
-
export declare const internalLinkSchema: z.ZodObject<{
|
|
26
|
-
kind: z.ZodLiteral<"internal">;
|
|
27
|
-
routeId: z.ZodString;
|
|
28
|
-
entityId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
entityType: z.ZodOptional<z.ZodEnum<{
|
|
30
|
-
page: "page";
|
|
31
|
-
content: "content";
|
|
32
|
-
}>>;
|
|
33
|
-
href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
34
|
-
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
35
|
-
typeLabel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
36
|
-
contentTypeKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
37
|
-
contentTypeName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
38
|
-
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
39
|
-
}, z.core.$loose>;
|
|
40
|
-
/**
|
|
41
|
-
* Schema for external links (absolute URLs).
|
|
42
|
-
*/
|
|
43
|
-
export declare const externalLinkSchema: z.ZodObject<{
|
|
44
|
-
kind: z.ZodLiteral<"external">;
|
|
45
|
-
href: z.ZodString;
|
|
46
|
-
}, z.core.$loose>;
|
|
47
|
-
/**
|
|
48
|
-
* Schema for custom URL links (relative or absolute paths).
|
|
49
|
-
*/
|
|
50
|
-
export declare const customLinkSchema: z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"url">;
|
|
52
|
-
href: z.ZodString;
|
|
53
|
-
}, z.core.$loose>;
|
|
54
|
-
/**
|
|
55
|
-
* Schema for SDK page links (resolved at render time via pagesByIdentifier).
|
|
56
|
-
* Used in SDK content configs to link to pages by identifier.
|
|
57
|
-
*/
|
|
58
|
-
export declare const pageLinkSchema: z.ZodObject<{
|
|
59
|
-
kind: z.ZodLiteral<"page">;
|
|
60
|
-
identifier: z.ZodString;
|
|
61
|
-
}, z.core.$loose>;
|
|
62
|
-
/**
|
|
63
|
-
* Schema for SDK entry links (resolved at render time via entriesByIdentifier).
|
|
64
|
-
* Used in SDK content configs to link to content entries by type and identifier.
|
|
65
|
-
*/
|
|
66
|
-
export declare const entryLinkSchema: z.ZodObject<{
|
|
67
|
-
kind: z.ZodLiteral<"entry">;
|
|
68
|
-
contentType: z.ZodString;
|
|
69
|
-
identifier: z.ZodString;
|
|
70
|
-
}, z.core.$loose>;
|
|
71
|
-
/**
|
|
72
|
-
* Composite schema for all link types.
|
|
73
|
-
* Use this for validating link fields in block content.
|
|
74
|
-
*/
|
|
75
|
-
export declare const linkSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
76
|
-
kind: z.ZodLiteral<"internal">;
|
|
77
|
-
routeId: z.ZodString;
|
|
78
|
-
entityId: z.ZodOptional<z.ZodString>;
|
|
79
|
-
entityType: z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
page: "page";
|
|
81
|
-
content: "content";
|
|
82
|
-
}>>;
|
|
83
|
-
href: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
84
|
-
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
85
|
-
typeLabel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
86
|
-
contentTypeKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
87
|
-
contentTypeName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
88
|
-
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
89
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
90
|
-
kind: z.ZodLiteral<"external">;
|
|
91
|
-
href: z.ZodString;
|
|
92
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
93
|
-
kind: z.ZodLiteral<"url">;
|
|
94
|
-
href: z.ZodString;
|
|
95
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
96
|
-
kind: z.ZodLiteral<"page">;
|
|
97
|
-
identifier: z.ZodString;
|
|
98
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
99
|
-
kind: z.ZodLiteral<"entry">;
|
|
100
|
-
contentType: z.ZodString;
|
|
101
|
-
identifier: z.ZodString;
|
|
102
|
-
}, z.core.$loose>]>;
|
|
103
21
|
export {};
|
|
@@ -9,8 +9,8 @@ export declare const bindingSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>>>;
|
|
10
10
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
11
11
|
value: "value";
|
|
12
|
-
collection: "collection";
|
|
13
12
|
context: "context";
|
|
13
|
+
collection: "collection";
|
|
14
14
|
}>>;
|
|
15
15
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
string: "string";
|
|
@@ -29,8 +29,8 @@ export declare const repeatSchema: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>>>;
|
|
30
30
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
31
31
|
value: "value";
|
|
32
|
-
collection: "collection";
|
|
33
32
|
context: "context";
|
|
33
|
+
collection: "collection";
|
|
34
34
|
}>>;
|
|
35
35
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
36
36
|
string: "string";
|
|
@@ -44,8 +44,8 @@ export declare const repeatSchema: z.ZodObject<{
|
|
|
44
44
|
sortBy: z.ZodOptional<z.ZodObject<{
|
|
45
45
|
path: z.ZodString;
|
|
46
46
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
47
|
-
desc: "desc";
|
|
48
47
|
asc: "asc";
|
|
48
|
+
desc: "desc";
|
|
49
49
|
}>>;
|
|
50
50
|
}, z.core.$strip>>;
|
|
51
51
|
}, z.core.$strip>;
|
|
@@ -60,8 +60,8 @@ export declare const conditionSchema: z.ZodObject<{
|
|
|
60
60
|
}, z.core.$strip>>>;
|
|
61
61
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
62
62
|
value: "value";
|
|
63
|
-
collection: "collection";
|
|
64
63
|
context: "context";
|
|
64
|
+
collection: "collection";
|
|
65
65
|
}>>;
|
|
66
66
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
67
67
|
string: "string";
|
|
@@ -84,8 +84,8 @@ export declare const dataScopeSchema: z.ZodObject<{
|
|
|
84
84
|
}, z.core.$strip>>>;
|
|
85
85
|
pick: z.ZodDefault<z.ZodEnum<{
|
|
86
86
|
value: "value";
|
|
87
|
-
collection: "collection";
|
|
88
87
|
context: "context";
|
|
88
|
+
collection: "collection";
|
|
89
89
|
}>>;
|
|
90
90
|
coerce: z.ZodOptional<z.ZodEnum<{
|
|
91
91
|
string: "string";
|
|
@@ -1409,7 +1409,7 @@ export declare const runtimeBackedBlockModes: {
|
|
|
1409
1409
|
readonly shop: "passes-memberships";
|
|
1410
1410
|
};
|
|
1411
1411
|
export type RuntimeBackedBlockMode<TKind extends RuntimeBackedBlockKind> = typeof runtimeBackedBlockModes[TKind];
|
|
1412
|
-
export declare const runtimeBackedBlockKinds: readonly ("
|
|
1412
|
+
export declare const runtimeBackedBlockKinds: readonly ("cart" | "event-registration" | "form" | "event-listing" | "event-calendar" | "shop" | "product-list" | "product-detail" | "checkout" | "gifting" | "course-registration" | "newsletter-form")[];
|
|
1413
1413
|
export declare const runtimeBackedBlockServerRegistry: Readonly<{
|
|
1414
1414
|
readonly form: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
1415
1415
|
readonly 'event-listing': React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const previewStageSchema: z.ZodEnum<{
|
|
3
|
-
published: "published";
|
|
4
3
|
preview: "preview";
|
|
4
|
+
published: "published";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const registrationButtonVariantSchema: z.ZodEnum<{
|
|
7
7
|
primary: "primary";
|
|
@@ -16,8 +16,8 @@ export declare const eventButtonVariantSchema: z.ZodEnum<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export declare const eventLayoutSchema: z.ZodEnum<{
|
|
18
18
|
compact: "compact";
|
|
19
|
-
grid: "grid";
|
|
20
19
|
stack: "stack";
|
|
20
|
+
grid: "grid";
|
|
21
21
|
}>;
|
|
22
22
|
export declare const columnOptionSchema: z.ZodEnum<{
|
|
23
23
|
2: "2";
|
|
@@ -29,12 +29,12 @@ export declare const weekStartSchema: z.ZodEnum<{
|
|
|
29
29
|
monday: "monday";
|
|
30
30
|
}>;
|
|
31
31
|
export declare const filterAutoShowSchema: z.ZodEnum<{
|
|
32
|
+
never: "never";
|
|
32
33
|
auto: "auto";
|
|
33
34
|
always: "always";
|
|
34
|
-
never: "never";
|
|
35
35
|
}>;
|
|
36
36
|
export declare const calendarTabViewsSchema: z.ZodEnum<{
|
|
37
|
-
week: "week";
|
|
38
37
|
month: "month";
|
|
39
38
|
both: "both";
|
|
39
|
+
week: "week";
|
|
40
40
|
}>;
|
|
@@ -45,8 +45,8 @@ declare const twoColumnContainerClassOptionsSchema: z.ZodObject<{
|
|
|
45
45
|
export declare const twoColumnContainerClassTransform: TransformDefinition<z.infer<typeof twoColumnContainerClassOptionsSchema>>;
|
|
46
46
|
declare const twoColumnFlexBasisOptionsSchema: z.ZodObject<{
|
|
47
47
|
side: z.ZodEnum<{
|
|
48
|
-
image: "image";
|
|
49
48
|
text: "text";
|
|
49
|
+
image: "image";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
52
|
export declare const twoColumnFlexBasisTransform: TransformDefinition<z.infer<typeof twoColumnFlexBasisOptionsSchema>>;
|
|
@@ -68,7 +68,7 @@ export declare const transformDefinitions: {
|
|
|
68
68
|
reverseClass: string;
|
|
69
69
|
}>;
|
|
70
70
|
readonly "ui.twoColumnFlexBasis": TransformDefinition<{
|
|
71
|
-
side: "
|
|
71
|
+
side: "text" | "image";
|
|
72
72
|
}>;
|
|
73
73
|
readonly "media.fromUrl": TransformDefinition<{
|
|
74
74
|
width?: number;
|
|
@@ -104,9 +104,9 @@ export declare function bindProp(from: string, opts?: {
|
|
|
104
104
|
pick?: "value" | "collection" | "context";
|
|
105
105
|
}): {
|
|
106
106
|
readonly $bind: {
|
|
107
|
-
readonly pick?: "value" | "
|
|
107
|
+
readonly pick?: "value" | "context" | "collection" | undefined;
|
|
108
108
|
readonly fallback?: {} | null | undefined;
|
|
109
|
-
readonly transforms?: TransformStep<"
|
|
109
|
+
readonly transforms?: TransformStep<"string.uppercase" | "value.fallback" | "date.formatShort" | "layout.maxWidthClass" | "layout.headerRootClass" | "layout.footerRootClass" | "layout.headerRootStyle" | "layout.footerRootStyle" | "ui.headerNavLinkClass" | "ui.headingClassFromAlignment" | "ui.bodyClassFromAlignment" | "ui.stackAlignFromAlignment" | "ui.sectionStateTone" | "ui.heroContentWrapperClass" | "ui.heroCtaJustify" | "ui.heroStackJustifyFromVerticalAlignment" | "ui.heroGridClassFromVerticalAlignment" | "ui.conditionalClass" | "ui.twoColumnContainerClass" | "ui.twoColumnFlexBasis" | "media.fromUrl" | "content.interpolateRichTextTokens" | "boxStyles.semanticGap" | "boxStyles.semanticGapValue" | "layout.footerBottomBarClass" | "layout.footerBottomBarContainerClass" | "layout.footerBottomBarStyle" | "layout.footerSplitNavSingleClass" | "layout.footerLogoClass" | "layout.footerLogoMediaClass" | "layout.footerLogoTextVisible">[] | undefined;
|
|
110
110
|
readonly from: string;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type InternalRouteOnlyLinkValue = {
|
|
3
|
+
kind: 'internal';
|
|
4
|
+
routeId: string;
|
|
5
|
+
};
|
|
6
|
+
export type InternalResolvedLinkValue = {
|
|
2
7
|
kind: 'internal';
|
|
3
8
|
routeId: string;
|
|
4
9
|
entityId: string;
|
|
@@ -10,6 +15,7 @@ export type InternalLinkValue = {
|
|
|
10
15
|
contentTypeName?: string | null;
|
|
11
16
|
updatedAt?: string | null;
|
|
12
17
|
};
|
|
18
|
+
export type InternalLinkValue = InternalRouteOnlyLinkValue | InternalResolvedLinkValue;
|
|
13
19
|
export type ExternalLinkValue = {
|
|
14
20
|
kind: 'external';
|
|
15
21
|
href: string;
|
|
@@ -36,3 +42,89 @@ export type EntryLinkValue = {
|
|
|
36
42
|
identifier: string;
|
|
37
43
|
};
|
|
38
44
|
export type LinkValue = InternalLinkValue | ExternalLinkValue | CustomLinkValue | PageLinkValue | EntryLinkValue;
|
|
45
|
+
export declare const internalRouteOnlyLinkSchema: z.ZodObject<{
|
|
46
|
+
kind: z.ZodLiteral<"internal">;
|
|
47
|
+
routeId: z.ZodString;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
|
+
export declare const internalResolvedLinkSchema: z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"internal">;
|
|
51
|
+
routeId: z.ZodString;
|
|
52
|
+
entityId: z.ZodString;
|
|
53
|
+
entityType: z.ZodEnum<{
|
|
54
|
+
content: "content";
|
|
55
|
+
page: "page";
|
|
56
|
+
}>;
|
|
57
|
+
href: z.ZodString;
|
|
58
|
+
title: z.ZodString;
|
|
59
|
+
typeLabel: z.ZodString;
|
|
60
|
+
contentTypeKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
61
|
+
contentTypeName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
62
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
|
+
export declare const internalLinkSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"internal">;
|
|
66
|
+
routeId: z.ZodString;
|
|
67
|
+
entityId: z.ZodString;
|
|
68
|
+
entityType: z.ZodEnum<{
|
|
69
|
+
content: "content";
|
|
70
|
+
page: "page";
|
|
71
|
+
}>;
|
|
72
|
+
href: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
typeLabel: z.ZodString;
|
|
75
|
+
contentTypeKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
76
|
+
contentTypeName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
77
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
78
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"internal">;
|
|
80
|
+
routeId: z.ZodString;
|
|
81
|
+
}, z.core.$loose>]>;
|
|
82
|
+
export declare const externalLinkSchema: z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"external">;
|
|
84
|
+
href: z.ZodString;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
export declare const customLinkSchema: z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"url">;
|
|
88
|
+
href: z.ZodString;
|
|
89
|
+
}, z.core.$loose>;
|
|
90
|
+
export declare const pageLinkSchema: z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"page">;
|
|
92
|
+
identifier: z.ZodString;
|
|
93
|
+
}, z.core.$loose>;
|
|
94
|
+
export declare const entryLinkSchema: z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"entry">;
|
|
96
|
+
contentType: z.ZodString;
|
|
97
|
+
identifier: z.ZodString;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
|
+
export declare const linkSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"internal">;
|
|
101
|
+
routeId: z.ZodString;
|
|
102
|
+
entityId: z.ZodString;
|
|
103
|
+
entityType: z.ZodEnum<{
|
|
104
|
+
content: "content";
|
|
105
|
+
page: "page";
|
|
106
|
+
}>;
|
|
107
|
+
href: z.ZodString;
|
|
108
|
+
title: z.ZodString;
|
|
109
|
+
typeLabel: z.ZodString;
|
|
110
|
+
contentTypeKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
111
|
+
contentTypeName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
112
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
113
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"internal">;
|
|
115
|
+
routeId: z.ZodString;
|
|
116
|
+
}, z.core.$loose>]>, z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"external">;
|
|
118
|
+
href: z.ZodString;
|
|
119
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"url">;
|
|
121
|
+
href: z.ZodString;
|
|
122
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
123
|
+
kind: z.ZodLiteral<"page">;
|
|
124
|
+
identifier: z.ZodString;
|
|
125
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
126
|
+
kind: z.ZodLiteral<"entry">;
|
|
127
|
+
contentType: z.ZodString;
|
|
128
|
+
identifier: z.ZodString;
|
|
129
|
+
}, z.core.$loose>]>;
|
|
130
|
+
export declare function isInternalResolvedLinkValue(value: LinkValue | null | undefined): value is InternalResolvedLinkValue;
|
|
@@ -7,19 +7,19 @@ declare const BaseContentFieldSchema: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodEnum<{
|
|
8
8
|
number: "number";
|
|
9
9
|
boolean: "boolean";
|
|
10
|
-
|
|
10
|
+
link: "link";
|
|
11
11
|
url: "url";
|
|
12
|
+
date: "date";
|
|
13
|
+
text: "text";
|
|
14
|
+
textarea: "textarea";
|
|
15
|
+
select: "select";
|
|
12
16
|
media: "media";
|
|
13
17
|
button: "button";
|
|
14
|
-
|
|
15
|
-
select: "select";
|
|
16
|
-
textarea: "textarea";
|
|
17
|
-
text: "text";
|
|
18
|
-
richText: "richText";
|
|
18
|
+
group: "group";
|
|
19
19
|
datetime: "datetime";
|
|
20
20
|
reference: "reference";
|
|
21
|
+
richText: "richText";
|
|
21
22
|
repeater: "repeater";
|
|
22
|
-
group: "group";
|
|
23
23
|
}>;
|
|
24
24
|
label: z.ZodOptional<z.ZodString>;
|
|
25
25
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -51,8 +51,8 @@ declare const BaseContentFieldSchema: z.ZodObject<{
|
|
|
51
51
|
}, z.core.$strip>>;
|
|
52
52
|
valueFrom: z.ZodOptional<z.ZodEnum<{
|
|
53
53
|
id: "id";
|
|
54
|
-
identifier: "identifier";
|
|
55
54
|
slug: "slug";
|
|
55
|
+
identifier: "identifier";
|
|
56
56
|
}>>;
|
|
57
57
|
ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
58
|
itemLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -77,6 +77,7 @@ export declare const ROUTE_METADATA_MANAGED_FIELDS_BY_TYPE: {
|
|
|
77
77
|
readonly course: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
78
78
|
readonly product: readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
79
79
|
readonly "product-category": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
80
|
+
readonly "team-member": readonly ["draftTitle", "draftSlug", "draftStatus", "scheduledPublishAt"];
|
|
80
81
|
};
|
|
81
82
|
export declare function getManagedRouteMetadataFieldIdsForType(typeKey: string | null | undefined): ReadonlyArray<RouteMetadataFieldId>;
|
|
82
83
|
export declare function isRouteMetadataFieldEditableForType(typeKey: string | null | undefined, fieldId: string): boolean;
|
|
@@ -60,6 +60,7 @@ export type AppointmentId = Brand<string, 'AppointmentId'>;
|
|
|
60
60
|
export type AppointmentServiceId = Brand<string, 'AppointmentServiceId'>;
|
|
61
61
|
export type AppointmentResourceId = Brand<string, 'AppointmentResourceId'>;
|
|
62
62
|
export type StaffMemberId = Brand<string, 'StaffMemberId'>;
|
|
63
|
+
export type ContentEntryId = Brand<string, 'ContentEntryId'>;
|
|
63
64
|
export type StripeInvoiceId = Brand<string, 'StripeInvoiceId'>;
|
|
64
65
|
export type NewsletterSubscriberId = Brand<string, 'NewsletterSubscriberId'>;
|
|
65
66
|
export type EmailAuditRowId = Brand<string, 'EmailAuditRowId'>;
|
|
@@ -134,6 +135,7 @@ export declare const asAppointmentId: (id: string) => AppointmentId;
|
|
|
134
135
|
export declare const asAppointmentServiceId: (id: string) => AppointmentServiceId;
|
|
135
136
|
export declare const asAppointmentResourceId: (id: string) => AppointmentResourceId;
|
|
136
137
|
export declare const asStaffMemberId: (id: string) => StaffMemberId;
|
|
138
|
+
export declare const asContentEntryId: (id: string) => ContentEntryId;
|
|
137
139
|
export declare const asStripeInvoiceId: (id: string) => StripeInvoiceId;
|
|
138
140
|
export declare const asNewsletterSubscriberId: (id: string) => NewsletterSubscriberId;
|
|
139
141
|
export declare const asEmailAuditRowId: (id: string) => EmailAuditRowId;
|
|
@@ -461,7 +461,7 @@ export type Database = {
|
|
|
461
461
|
foreignKeyName: "appointment_availability_rules_resource_id_fkey";
|
|
462
462
|
columns: ["resource_id"];
|
|
463
463
|
isOneToOne: false;
|
|
464
|
-
referencedRelation: "
|
|
464
|
+
referencedRelation: "staff_members";
|
|
465
465
|
referencedColumns: ["id"];
|
|
466
466
|
},
|
|
467
467
|
{
|
|
@@ -513,7 +513,7 @@ export type Database = {
|
|
|
513
513
|
foreignKeyName: "appointment_blackouts_resource_id_fkey";
|
|
514
514
|
columns: ["resource_id"];
|
|
515
515
|
isOneToOne: false;
|
|
516
|
-
referencedRelation: "
|
|
516
|
+
referencedRelation: "staff_members";
|
|
517
517
|
referencedColumns: ["id"];
|
|
518
518
|
},
|
|
519
519
|
{
|
|
@@ -579,7 +579,7 @@ export type Database = {
|
|
|
579
579
|
foreignKeyName: "appointment_calendar_connections_resource_id_fkey";
|
|
580
580
|
columns: ["resource_id"];
|
|
581
581
|
isOneToOne: false;
|
|
582
|
-
referencedRelation: "
|
|
582
|
+
referencedRelation: "staff_members";
|
|
583
583
|
referencedColumns: ["id"];
|
|
584
584
|
},
|
|
585
585
|
{
|
|
@@ -722,6 +722,7 @@ export type Database = {
|
|
|
722
722
|
};
|
|
723
723
|
appointment_resources: {
|
|
724
724
|
Row: {
|
|
725
|
+
archived_at: string | null;
|
|
725
726
|
avatar_asset_id: string | null;
|
|
726
727
|
bio: string | null;
|
|
727
728
|
calendar_sync_enabled: boolean;
|
|
@@ -735,6 +736,7 @@ export type Database = {
|
|
|
735
736
|
user_id: string | null;
|
|
736
737
|
};
|
|
737
738
|
Insert: {
|
|
739
|
+
archived_at?: string | null;
|
|
738
740
|
avatar_asset_id?: string | null;
|
|
739
741
|
bio?: string | null;
|
|
740
742
|
calendar_sync_enabled?: boolean;
|
|
@@ -748,6 +750,7 @@ export type Database = {
|
|
|
748
750
|
user_id?: string | null;
|
|
749
751
|
};
|
|
750
752
|
Update: {
|
|
753
|
+
archived_at?: string | null;
|
|
751
754
|
avatar_asset_id?: string | null;
|
|
752
755
|
bio?: string | null;
|
|
753
756
|
calendar_sync_enabled?: boolean;
|
|
@@ -954,7 +957,7 @@ export type Database = {
|
|
|
954
957
|
foreignKeyName: "appointments_resource_id_fkey";
|
|
955
958
|
columns: ["resource_id"];
|
|
956
959
|
isOneToOne: false;
|
|
957
|
-
referencedRelation: "
|
|
960
|
+
referencedRelation: "staff_members";
|
|
958
961
|
referencedColumns: ["id"];
|
|
959
962
|
},
|
|
960
963
|
{
|
|
@@ -3615,6 +3618,7 @@ export type Database = {
|
|
|
3615
3618
|
sdk_content_hash: string | null;
|
|
3616
3619
|
sdk_synced_at: string | null;
|
|
3617
3620
|
site_id: string;
|
|
3621
|
+
staff_member_owner_id: string | null;
|
|
3618
3622
|
updated_at: string;
|
|
3619
3623
|
updated_by: string | null;
|
|
3620
3624
|
};
|
|
@@ -3632,6 +3636,7 @@ export type Database = {
|
|
|
3632
3636
|
sdk_content_hash?: string | null;
|
|
3633
3637
|
sdk_synced_at?: string | null;
|
|
3634
3638
|
site_id: string;
|
|
3639
|
+
staff_member_owner_id?: string | null;
|
|
3635
3640
|
updated_at?: string;
|
|
3636
3641
|
updated_by?: string | null;
|
|
3637
3642
|
};
|
|
@@ -3649,6 +3654,7 @@ export type Database = {
|
|
|
3649
3654
|
sdk_content_hash?: string | null;
|
|
3650
3655
|
sdk_synced_at?: string | null;
|
|
3651
3656
|
site_id?: string;
|
|
3657
|
+
staff_member_owner_id?: string | null;
|
|
3652
3658
|
updated_at?: string;
|
|
3653
3659
|
updated_by?: string | null;
|
|
3654
3660
|
};
|
|
@@ -3687,6 +3693,13 @@ export type Database = {
|
|
|
3687
3693
|
isOneToOne: false;
|
|
3688
3694
|
referencedRelation: "sites";
|
|
3689
3695
|
referencedColumns: ["id"];
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
foreignKeyName: "content_entries_staff_member_owner_id_fkey";
|
|
3699
|
+
columns: ["staff_member_owner_id"];
|
|
3700
|
+
isOneToOne: false;
|
|
3701
|
+
referencedRelation: "staff_members";
|
|
3702
|
+
referencedColumns: ["id"];
|
|
3690
3703
|
}
|
|
3691
3704
|
];
|
|
3692
3705
|
};
|
|
@@ -6151,7 +6164,7 @@ export type Database = {
|
|
|
6151
6164
|
foreignKeyName: "event_occurrence_staff_members_staff_member_id_fkey";
|
|
6152
6165
|
columns: ["staff_member_id"];
|
|
6153
6166
|
isOneToOne: false;
|
|
6154
|
-
referencedRelation: "
|
|
6167
|
+
referencedRelation: "staff_members";
|
|
6155
6168
|
referencedColumns: ["id"];
|
|
6156
6169
|
}
|
|
6157
6170
|
];
|
|
@@ -6582,7 +6595,7 @@ export type Database = {
|
|
|
6582
6595
|
foreignKeyName: "event_series_staff_members_staff_member_id_fkey";
|
|
6583
6596
|
columns: ["staff_member_id"];
|
|
6584
6597
|
isOneToOne: false;
|
|
6585
|
-
referencedRelation: "
|
|
6598
|
+
referencedRelation: "staff_members";
|
|
6586
6599
|
referencedColumns: ["id"];
|
|
6587
6600
|
}
|
|
6588
6601
|
];
|
|
@@ -10651,7 +10664,7 @@ export type Database = {
|
|
|
10651
10664
|
foreignKeyName: "service_resources_resource_id_fkey";
|
|
10652
10665
|
columns: ["resource_id"];
|
|
10653
10666
|
isOneToOne: false;
|
|
10654
|
-
referencedRelation: "
|
|
10667
|
+
referencedRelation: "staff_members";
|
|
10655
10668
|
referencedColumns: ["id"];
|
|
10656
10669
|
},
|
|
10657
10670
|
{
|
|
@@ -11537,7 +11550,7 @@ export type Database = {
|
|
|
11537
11550
|
foreignKeyName: "site_memberships_linked_staff_member_id_fkey";
|
|
11538
11551
|
columns: ["linked_staff_member_id"];
|
|
11539
11552
|
isOneToOne: false;
|
|
11540
|
-
referencedRelation: "
|
|
11553
|
+
referencedRelation: "staff_members";
|
|
11541
11554
|
referencedColumns: ["id"];
|
|
11542
11555
|
},
|
|
11543
11556
|
{
|
|
@@ -12137,6 +12150,85 @@ export type Database = {
|
|
|
12137
12150
|
};
|
|
12138
12151
|
Relationships: [];
|
|
12139
12152
|
};
|
|
12153
|
+
staff_members: {
|
|
12154
|
+
Row: {
|
|
12155
|
+
archived_at: string | null;
|
|
12156
|
+
archived_by: string | null;
|
|
12157
|
+
avatar_asset_id: string | null;
|
|
12158
|
+
bio: string | null;
|
|
12159
|
+
calendar_sync_enabled: boolean;
|
|
12160
|
+
color_hex: string | null;
|
|
12161
|
+
content_entry_id: string | null;
|
|
12162
|
+
created_at: string;
|
|
12163
|
+
display_name: string;
|
|
12164
|
+
id: string;
|
|
12165
|
+
role_label: string | null;
|
|
12166
|
+
short_bio: string | null;
|
|
12167
|
+
site_id: string;
|
|
12168
|
+
timezone: string;
|
|
12169
|
+
updated_at: string;
|
|
12170
|
+
user_id: string | null;
|
|
12171
|
+
};
|
|
12172
|
+
Insert: {
|
|
12173
|
+
archived_at?: string | null;
|
|
12174
|
+
archived_by?: string | null;
|
|
12175
|
+
avatar_asset_id?: string | null;
|
|
12176
|
+
bio?: string | null;
|
|
12177
|
+
calendar_sync_enabled?: boolean;
|
|
12178
|
+
color_hex?: string | null;
|
|
12179
|
+
content_entry_id?: string | null;
|
|
12180
|
+
created_at?: string;
|
|
12181
|
+
display_name: string;
|
|
12182
|
+
id?: string;
|
|
12183
|
+
role_label?: string | null;
|
|
12184
|
+
short_bio?: string | null;
|
|
12185
|
+
site_id: string;
|
|
12186
|
+
timezone?: string;
|
|
12187
|
+
updated_at?: string;
|
|
12188
|
+
user_id?: string | null;
|
|
12189
|
+
};
|
|
12190
|
+
Update: {
|
|
12191
|
+
archived_at?: string | null;
|
|
12192
|
+
archived_by?: string | null;
|
|
12193
|
+
avatar_asset_id?: string | null;
|
|
12194
|
+
bio?: string | null;
|
|
12195
|
+
calendar_sync_enabled?: boolean;
|
|
12196
|
+
color_hex?: string | null;
|
|
12197
|
+
content_entry_id?: string | null;
|
|
12198
|
+
created_at?: string;
|
|
12199
|
+
display_name?: string;
|
|
12200
|
+
id?: string;
|
|
12201
|
+
role_label?: string | null;
|
|
12202
|
+
short_bio?: string | null;
|
|
12203
|
+
site_id?: string;
|
|
12204
|
+
timezone?: string;
|
|
12205
|
+
updated_at?: string;
|
|
12206
|
+
user_id?: string | null;
|
|
12207
|
+
};
|
|
12208
|
+
Relationships: [
|
|
12209
|
+
{
|
|
12210
|
+
foreignKeyName: "staff_members_avatar_asset_id_fkey";
|
|
12211
|
+
columns: ["avatar_asset_id"];
|
|
12212
|
+
isOneToOne: false;
|
|
12213
|
+
referencedRelation: "media_assets";
|
|
12214
|
+
referencedColumns: ["id"];
|
|
12215
|
+
},
|
|
12216
|
+
{
|
|
12217
|
+
foreignKeyName: "staff_members_content_entry_id_fkey";
|
|
12218
|
+
columns: ["content_entry_id"];
|
|
12219
|
+
isOneToOne: true;
|
|
12220
|
+
referencedRelation: "content_entries";
|
|
12221
|
+
referencedColumns: ["id"];
|
|
12222
|
+
},
|
|
12223
|
+
{
|
|
12224
|
+
foreignKeyName: "staff_members_site_id_fkey";
|
|
12225
|
+
columns: ["site_id"];
|
|
12226
|
+
isOneToOne: false;
|
|
12227
|
+
referencedRelation: "sites";
|
|
12228
|
+
referencedColumns: ["id"];
|
|
12229
|
+
}
|
|
12230
|
+
];
|
|
12231
|
+
};
|
|
12140
12232
|
themes: {
|
|
12141
12233
|
Row: {
|
|
12142
12234
|
created_at: string;
|
|
@@ -13523,6 +13615,30 @@ export type Database = {
|
|
|
13523
13615
|
};
|
|
13524
13616
|
};
|
|
13525
13617
|
Functions: {
|
|
13618
|
+
accept_site_invitation: {
|
|
13619
|
+
Args: {
|
|
13620
|
+
p_invitation_id: string;
|
|
13621
|
+
p_user?: string;
|
|
13622
|
+
};
|
|
13623
|
+
Returns: {
|
|
13624
|
+
accepted_at: string | null;
|
|
13625
|
+
created_at: string;
|
|
13626
|
+
id: string;
|
|
13627
|
+
invited_by: string | null;
|
|
13628
|
+
linked_staff_member_id: string | null;
|
|
13629
|
+
removed_at: string | null;
|
|
13630
|
+
role: Database["public"]["Enums"]["site_role"];
|
|
13631
|
+
site_id: string;
|
|
13632
|
+
updated_at: string;
|
|
13633
|
+
user_id: string;
|
|
13634
|
+
};
|
|
13635
|
+
SetofOptions: {
|
|
13636
|
+
from: "*";
|
|
13637
|
+
to: "site_memberships";
|
|
13638
|
+
isOneToOne: true;
|
|
13639
|
+
isSetofReturn: false;
|
|
13640
|
+
};
|
|
13641
|
+
};
|
|
13526
13642
|
adjust_product_inventory: {
|
|
13527
13643
|
Args: {
|
|
13528
13644
|
p_enforce_available?: boolean;
|