@riverbankcms/sdk 0.60.3 → 0.60.7
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/bookingVerticals.d.ts +1 -0
- 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/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/siteManagementEndpoints.d.ts +3 -39
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/teamMembers.d.ts +27 -0
- 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/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -0
- 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/runtime/shared/themedButtonClass.d.ts +11 -0
- 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/content-editor/src/ui/editorUiStore.d.ts +10 -2
- 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/core/src/participants.d.ts +32 -1
- package/dist/_dts/core/src/rectification.d.ts +79 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +130 -14
- package/dist/_dts/db/src/schemas/forms.d.ts +61 -61
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +17 -15
- package/dist/_dts/sdk/src/client/types.d.ts +10 -2
- 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/system-block-content.d.ts +17 -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/brushed-wash.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +86 -5
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +20 -20
- 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/brand-led.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +200 -4
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +25 -25
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +33 -9
- 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/curatedChoices.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +48 -194
- 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/index.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +12 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +46 -0
- 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/palette/ColorChooserDialog.d.ts +47 -0
- package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +50 -0
- package/dist/_dts/ui/src/palette/hex.d.ts +23 -0
- package/dist/_dts/ui/src/palette/index.d.ts +14 -0
- 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 +1535 -1183
- package/dist/client/client.mjs +3944 -3454
- package/dist/client/hooks.mjs +2053 -1743
- package/dist/client/rendering/client.mjs +311 -167
- package/dist/client/rendering/islands.mjs +159 -73
- package/dist/client/rendering.mjs +1918 -1447
- package/dist/preview-next/before-render.mjs +147 -1
- package/dist/preview-next/client/runtime.mjs +2828 -2174
- package/dist/preview-next/middleware.mjs +147 -1
- package/dist/server/components.mjs +4311 -3928
- package/dist/server/config-validation.mjs +2201 -1906
- package/dist/server/config.mjs +2201 -1906
- package/dist/server/data.mjs +2053 -1743
- package/dist/server/index.mjs +171 -4
- package/dist/server/next.mjs +3442 -3024
- package/dist/server/page-converter.mjs +2109 -1962
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4021 -3622
- package/dist/server/rendering.mjs +4021 -3622
- package/dist/server/routing.mjs +2377 -2058
- package/dist/server/server.mjs +2244 -1915
- package/dist/server/theme-bridge.mjs +130 -126
- package/dist/server/theme.mjs +131 -129
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/site-styles/compatibility.d.ts +0 -109
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RectificationIssueUrl, RectificationSurface } from "@riverbankcms/core";
|
|
1
|
+
import type { RectificationHistoryPropagationPlan, RectificationIdentityBoundary, RectificationIssueUrl, RectificationSurface } from "@riverbankcms/core";
|
|
2
2
|
import type { CamelizeKeys, DbRow, DbJson } from "@riverbankcms/db";
|
|
3
3
|
import type { APIEndpoint } from "./apiEndpointTypes";
|
|
4
4
|
import type { AcceptAdminInviteRequest, AcceptAdminInviteResponse, AcceptSiteInvitationRequest, AcceptSiteInvitationResponse, AddCustomDomainRequest, AddCustomDomainResponse, AdminChangePlanRequest, AdminChangePlanResponse, AdminDeleteUserResponse, AuthInviteContinueRequest, AuthInviteContinueResponse, AuthInviteRegisterRequest, AuthInviteRegisterResponse, AuthResetCompleteRequest, AuthResetCompleteResponse, AuthSubmissionResult, BulkOperationResult, ChangePlanRequest, ChangePlanResponse, CreateAdminInviteRequest, CreateAdminInviteResponse, CreateAdminUserRequest, CreateAdminUserResponse, CreateAllowedDomainRequest, CreateAllowedDomainResponse, DeleteAllowedDomainResponse, DomainConfigResult, DomainSearchResultResponse, InviteSiteMemberRequest, InviteSiteMemberResponse, ListAdminInvitesResponse, ListAllowedDomainsResponse, ListSiteMembersResponse, LookupSiteDomainRequest, LookupSiteDomainResponse, MfaBackupCodesOverviewResponse, MfaBackupCodesRotateResponse, MfaOverviewResponse, MfaPhoneChallengeRequest, MfaPhoneChallengeResponse, MfaPhoneEnrollRequest, MfaPhoneEnrollResponse, MfaPhoneVerifyRequest, MfaTotpActivateRequest, MfaTotpEnrollResponse, MfaTotpVerifyRequest, MfaTotpVerifyResponse, ReauthSubmissionResult, RegisterDomainRequestPayload, RegisterDomainResponse, RegisterSiteDomainRequest, RegisterSiteDomainResponse, RemoveSiteMemberResponse, RevokeAdminInviteResponse, RevokeSiteInvitationResponse, SetHomepageRequest, SetHomepageResponse, SiteDomainRecord, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse } from "./accessAdmin";
|
|
@@ -60,44 +60,8 @@ type DsarRectificationTreatmentApi = {
|
|
|
60
60
|
title: string;
|
|
61
61
|
decisionLabel: string;
|
|
62
62
|
actionLabel: string;
|
|
63
|
-
identityBoundary:
|
|
64
|
-
|
|
65
|
-
} | {
|
|
66
|
-
kind: "customer_backed_participant_current_identity";
|
|
67
|
-
} | {
|
|
68
|
-
kind: "person_record_current_note";
|
|
69
|
-
} | {
|
|
70
|
-
kind: "immutable_subject_snapshot";
|
|
71
|
-
} | {
|
|
72
|
-
kind: "newsletter_current_subscription_identity";
|
|
73
|
-
} | {
|
|
74
|
-
kind: "finance_integrity_record";
|
|
75
|
-
} | {
|
|
76
|
-
kind: "immutable_audit_history";
|
|
77
|
-
} | {
|
|
78
|
-
kind: "derived_history_projection_or_ledger";
|
|
79
|
-
};
|
|
80
|
-
historyPropagation: {
|
|
81
|
-
kind: "update_current_identity_only";
|
|
82
|
-
audit: "required";
|
|
83
|
-
immutableSnapshots: "retain";
|
|
84
|
-
} | {
|
|
85
|
-
kind: "append_correction_note";
|
|
86
|
-
audit: "required";
|
|
87
|
-
immutableSnapshots: "retain_original";
|
|
88
|
-
} | {
|
|
89
|
-
kind: "annotate_immutable_snapshot";
|
|
90
|
-
audit: "required";
|
|
91
|
-
immutableSnapshots: "retain_original";
|
|
92
|
-
} | {
|
|
93
|
-
kind: "manual_review_required";
|
|
94
|
-
audit: "request_only";
|
|
95
|
-
immutableSnapshots: "retain_until_review";
|
|
96
|
-
} | {
|
|
97
|
-
kind: "blocked_immutable_history";
|
|
98
|
-
audit: "blocked_event";
|
|
99
|
-
immutableSnapshots: "retain_original";
|
|
100
|
-
};
|
|
63
|
+
identityBoundary: RectificationIdentityBoundary;
|
|
64
|
+
historyPropagation: RectificationHistoryPropagationPlan;
|
|
101
65
|
operatorSummary: string;
|
|
102
66
|
dataSubjectSummary: string;
|
|
103
67
|
trackingIssue: {
|
|
@@ -379,6 +379,7 @@ export type MacadamiaOnboardingDraftFirstOffering = {
|
|
|
379
379
|
};
|
|
380
380
|
export type MacadamiaOnboardingSurfaceData = {
|
|
381
381
|
teamMode: MacadamiaOnboardingTeamMode;
|
|
382
|
+
ownerName: string | null;
|
|
382
383
|
offeringKinds: MacadamiaOnboardingOfferingKind[];
|
|
383
384
|
bookingVerticalConfig?: BookingVerticalConfig | null;
|
|
384
385
|
siteMode: MacadamiaOnboardingSiteMode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ImageMedia } from "@riverbankcms/blocks";
|
|
2
|
+
/**
|
|
3
|
+
* Team member public contracts
|
|
4
|
+
*
|
|
5
|
+
* These types cover the compact staff identity payloads used by public team,
|
|
6
|
+
* event, and course surfaces.
|
|
7
|
+
*
|
|
8
|
+
* Note: Do NOT use these API types as validation schemas. They document wire
|
|
9
|
+
* contracts while the owning services validate and normalize inputs.
|
|
10
|
+
*/
|
|
11
|
+
export type PublicTeamMemberSummary = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
roleLabel: string | null;
|
|
15
|
+
summary: string | null;
|
|
16
|
+
profilePath: string | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Public avatar image payload for dynamic team-member blocks.
|
|
20
|
+
*/
|
|
21
|
+
export type PublicTeamMemberPhoto = ImageMedia | null;
|
|
22
|
+
export type PublicTeamMemberBlockItem = PublicTeamMemberSummary & {
|
|
23
|
+
_type: "teamMember";
|
|
24
|
+
role: string | null;
|
|
25
|
+
bio: string | null;
|
|
26
|
+
photo: PublicTeamMemberPhoto;
|
|
27
|
+
};
|
|
@@ -21,7 +21,9 @@ export declare const courseSessionSchema: z.ZodObject<{
|
|
|
21
21
|
export declare const courseTeamMemberSummarySchema: z.ZodObject<{
|
|
22
22
|
id: z.ZodString;
|
|
23
23
|
name: z.ZodString;
|
|
24
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
24
25
|
summary: z.ZodNullable<z.ZodString>;
|
|
26
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
25
27
|
}, z.core.$strip>;
|
|
26
28
|
export declare const coursePricingOptionSchema: z.ZodObject<{
|
|
27
29
|
id: z.ZodString;
|
|
@@ -34,19 +36,19 @@ export declare const coursePricingOptionSchema: z.ZodObject<{
|
|
|
34
36
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
35
37
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
36
38
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
37
|
-
both: "both";
|
|
38
39
|
in_person: "in_person";
|
|
40
|
+
both: "both";
|
|
39
41
|
online: "online";
|
|
40
42
|
}>>>;
|
|
41
43
|
}, z.core.$strip>;
|
|
42
44
|
export declare const coursePricingSchema: z.ZodObject<{
|
|
43
45
|
bookingRequirement: z.ZodEnum<{
|
|
44
|
-
none: "none";
|
|
45
46
|
required: "required";
|
|
47
|
+
none: "none";
|
|
46
48
|
}>;
|
|
47
49
|
pricingStrategy: z.ZodEnum<{
|
|
48
|
-
single: "single";
|
|
49
50
|
free: "free";
|
|
51
|
+
single: "single";
|
|
50
52
|
tiered: "tiered";
|
|
51
53
|
}>;
|
|
52
54
|
currency: z.ZodString;
|
|
@@ -67,9 +69,9 @@ export declare const coursePricingSchema: z.ZodObject<{
|
|
|
67
69
|
}>;
|
|
68
70
|
remainderDueCount: z.ZodNumber;
|
|
69
71
|
intervalUnit: z.ZodEnum<{
|
|
72
|
+
month: "month";
|
|
70
73
|
day: "day";
|
|
71
74
|
week: "week";
|
|
72
|
-
month: "month";
|
|
73
75
|
}>;
|
|
74
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
77
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -81,18 +83,18 @@ export declare const coursePricingSchema: z.ZodObject<{
|
|
|
81
83
|
instalmentCount: z.ZodNumber;
|
|
82
84
|
intervalCount: z.ZodNumber;
|
|
83
85
|
intervalUnit: z.ZodEnum<{
|
|
86
|
+
month: "month";
|
|
84
87
|
day: "day";
|
|
85
88
|
week: "week";
|
|
86
|
-
month: "month";
|
|
87
89
|
}>;
|
|
88
90
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
91
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
90
92
|
instalmentCount: z.ZodNumber;
|
|
91
93
|
intervalCount: z.ZodNumber;
|
|
92
94
|
intervalUnit: z.ZodEnum<{
|
|
95
|
+
month: "month";
|
|
93
96
|
day: "day";
|
|
94
97
|
week: "week";
|
|
95
|
-
month: "month";
|
|
96
98
|
}>;
|
|
97
99
|
}, z.core.$strip>]>;
|
|
98
100
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -124,8 +126,8 @@ export declare const coursePricingSchema: z.ZodObject<{
|
|
|
124
126
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
125
127
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
126
128
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
127
|
-
both: "both";
|
|
128
129
|
in_person: "in_person";
|
|
130
|
+
both: "both";
|
|
129
131
|
online: "online";
|
|
130
132
|
}>>>;
|
|
131
133
|
}, z.core.$strip>>;
|
|
@@ -141,17 +143,19 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
141
143
|
teamMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
144
|
id: z.ZodString;
|
|
143
145
|
name: z.ZodString;
|
|
146
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
144
147
|
summary: z.ZodNullable<z.ZodString>;
|
|
148
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
145
149
|
}, z.core.$strip>>>;
|
|
146
150
|
enrollmentOpen: z.ZodBoolean;
|
|
147
151
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
148
152
|
bookingRequirement: z.ZodEnum<{
|
|
149
|
-
none: "none";
|
|
150
153
|
required: "required";
|
|
154
|
+
none: "none";
|
|
151
155
|
}>;
|
|
152
156
|
pricingStrategy: z.ZodEnum<{
|
|
153
|
-
single: "single";
|
|
154
157
|
free: "free";
|
|
158
|
+
single: "single";
|
|
155
159
|
tiered: "tiered";
|
|
156
160
|
}>;
|
|
157
161
|
currency: z.ZodString;
|
|
@@ -172,9 +176,9 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
172
176
|
}>;
|
|
173
177
|
remainderDueCount: z.ZodNumber;
|
|
174
178
|
intervalUnit: z.ZodEnum<{
|
|
179
|
+
month: "month";
|
|
175
180
|
day: "day";
|
|
176
181
|
week: "week";
|
|
177
|
-
month: "month";
|
|
178
182
|
}>;
|
|
179
183
|
}, z.core.$strip>, z.ZodObject<{
|
|
180
184
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -186,18 +190,18 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
186
190
|
instalmentCount: z.ZodNumber;
|
|
187
191
|
intervalCount: z.ZodNumber;
|
|
188
192
|
intervalUnit: z.ZodEnum<{
|
|
193
|
+
month: "month";
|
|
189
194
|
day: "day";
|
|
190
195
|
week: "week";
|
|
191
|
-
month: "month";
|
|
192
196
|
}>;
|
|
193
197
|
}, z.core.$strip>, z.ZodObject<{
|
|
194
198
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
195
199
|
instalmentCount: z.ZodNumber;
|
|
196
200
|
intervalCount: z.ZodNumber;
|
|
197
201
|
intervalUnit: z.ZodEnum<{
|
|
202
|
+
month: "month";
|
|
198
203
|
day: "day";
|
|
199
204
|
week: "week";
|
|
200
|
-
month: "month";
|
|
201
205
|
}>;
|
|
202
206
|
}, z.core.$strip>]>;
|
|
203
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -229,8 +233,8 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
229
233
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
230
234
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
231
235
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
232
|
-
both: "both";
|
|
233
236
|
in_person: "in_person";
|
|
237
|
+
both: "both";
|
|
234
238
|
online: "online";
|
|
235
239
|
}>>>;
|
|
236
240
|
}, z.core.$strip>>;
|
|
@@ -253,9 +257,9 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
253
257
|
}>;
|
|
254
258
|
remainderDueCount: z.ZodNumber;
|
|
255
259
|
intervalUnit: z.ZodEnum<{
|
|
260
|
+
month: "month";
|
|
256
261
|
day: "day";
|
|
257
262
|
week: "week";
|
|
258
|
-
month: "month";
|
|
259
263
|
}>;
|
|
260
264
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
265
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -267,18 +271,18 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
267
271
|
instalmentCount: z.ZodNumber;
|
|
268
272
|
intervalCount: z.ZodNumber;
|
|
269
273
|
intervalUnit: z.ZodEnum<{
|
|
274
|
+
month: "month";
|
|
270
275
|
day: "day";
|
|
271
276
|
week: "week";
|
|
272
|
-
month: "month";
|
|
273
277
|
}>;
|
|
274
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
279
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
276
280
|
instalmentCount: z.ZodNumber;
|
|
277
281
|
intervalCount: z.ZodNumber;
|
|
278
282
|
intervalUnit: z.ZodEnum<{
|
|
283
|
+
month: "month";
|
|
279
284
|
day: "day";
|
|
280
285
|
week: "week";
|
|
281
|
-
month: "month";
|
|
282
286
|
}>;
|
|
283
287
|
}, z.core.$strip>]>;
|
|
284
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -302,9 +306,9 @@ export declare const publicCourseSchema: z.ZodObject<{
|
|
|
302
306
|
enrollmentCapacity: z.ZodNullable<z.ZodNumber>;
|
|
303
307
|
acceptsMemberships: z.ZodBoolean;
|
|
304
308
|
status: z.ZodEnum<{
|
|
305
|
-
active: "active";
|
|
306
|
-
cancelled: "cancelled";
|
|
307
309
|
draft: "draft";
|
|
310
|
+
cancelled: "cancelled";
|
|
311
|
+
active: "active";
|
|
308
312
|
}>;
|
|
309
313
|
sessionsCount: z.ZodNumber;
|
|
310
314
|
enrolledCount: z.ZodNumber;
|
|
@@ -335,17 +339,19 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
335
339
|
teamMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
340
|
id: z.ZodString;
|
|
337
341
|
name: z.ZodString;
|
|
342
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
338
343
|
summary: z.ZodNullable<z.ZodString>;
|
|
344
|
+
profilePath: z.ZodNullable<z.ZodString>;
|
|
339
345
|
}, z.core.$strip>>>;
|
|
340
346
|
enrollmentOpen: z.ZodBoolean;
|
|
341
347
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
342
348
|
bookingRequirement: z.ZodEnum<{
|
|
343
|
-
none: "none";
|
|
344
349
|
required: "required";
|
|
350
|
+
none: "none";
|
|
345
351
|
}>;
|
|
346
352
|
pricingStrategy: z.ZodEnum<{
|
|
347
|
-
single: "single";
|
|
348
353
|
free: "free";
|
|
354
|
+
single: "single";
|
|
349
355
|
tiered: "tiered";
|
|
350
356
|
}>;
|
|
351
357
|
currency: z.ZodString;
|
|
@@ -366,9 +372,9 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
366
372
|
}>;
|
|
367
373
|
remainderDueCount: z.ZodNumber;
|
|
368
374
|
intervalUnit: z.ZodEnum<{
|
|
375
|
+
month: "month";
|
|
369
376
|
day: "day";
|
|
370
377
|
week: "week";
|
|
371
|
-
month: "month";
|
|
372
378
|
}>;
|
|
373
379
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
380
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -380,18 +386,18 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
380
386
|
instalmentCount: z.ZodNumber;
|
|
381
387
|
intervalCount: z.ZodNumber;
|
|
382
388
|
intervalUnit: z.ZodEnum<{
|
|
389
|
+
month: "month";
|
|
383
390
|
day: "day";
|
|
384
391
|
week: "week";
|
|
385
|
-
month: "month";
|
|
386
392
|
}>;
|
|
387
393
|
}, z.core.$strip>, z.ZodObject<{
|
|
388
394
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
389
395
|
instalmentCount: z.ZodNumber;
|
|
390
396
|
intervalCount: z.ZodNumber;
|
|
391
397
|
intervalUnit: z.ZodEnum<{
|
|
398
|
+
month: "month";
|
|
392
399
|
day: "day";
|
|
393
400
|
week: "week";
|
|
394
|
-
month: "month";
|
|
395
401
|
}>;
|
|
396
402
|
}, z.core.$strip>]>;
|
|
397
403
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -423,8 +429,8 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
423
429
|
saleStartsAt: z.ZodNullable<z.ZodString>;
|
|
424
430
|
saleEndsAt: z.ZodNullable<z.ZodString>;
|
|
425
431
|
attendanceScope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
426
|
-
both: "both";
|
|
427
432
|
in_person: "in_person";
|
|
433
|
+
both: "both";
|
|
428
434
|
online: "online";
|
|
429
435
|
}>>>;
|
|
430
436
|
}, z.core.$strip>>;
|
|
@@ -447,9 +453,9 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
447
453
|
}>;
|
|
448
454
|
remainderDueCount: z.ZodNumber;
|
|
449
455
|
intervalUnit: z.ZodEnum<{
|
|
456
|
+
month: "month";
|
|
450
457
|
day: "day";
|
|
451
458
|
week: "week";
|
|
452
|
-
month: "month";
|
|
453
459
|
}>;
|
|
454
460
|
}, z.core.$strip>, z.ZodObject<{
|
|
455
461
|
kind: z.ZodLiteral<"deposit_plus_scheduled_instalments">;
|
|
@@ -461,18 +467,18 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
461
467
|
instalmentCount: z.ZodNumber;
|
|
462
468
|
intervalCount: z.ZodNumber;
|
|
463
469
|
intervalUnit: z.ZodEnum<{
|
|
470
|
+
month: "month";
|
|
464
471
|
day: "day";
|
|
465
472
|
week: "week";
|
|
466
|
-
month: "month";
|
|
467
473
|
}>;
|
|
468
474
|
}, z.core.$strip>, z.ZodObject<{
|
|
469
475
|
kind: z.ZodLiteral<"equal_scheduled_instalments">;
|
|
470
476
|
instalmentCount: z.ZodNumber;
|
|
471
477
|
intervalCount: z.ZodNumber;
|
|
472
478
|
intervalUnit: z.ZodEnum<{
|
|
479
|
+
month: "month";
|
|
473
480
|
day: "day";
|
|
474
481
|
week: "week";
|
|
475
|
-
month: "month";
|
|
476
482
|
}>;
|
|
477
483
|
}, z.core.$strip>]>;
|
|
478
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -496,9 +502,9 @@ export declare const publicCoursesArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
496
502
|
enrollmentCapacity: z.ZodNullable<z.ZodNumber>;
|
|
497
503
|
acceptsMemberships: z.ZodBoolean;
|
|
498
504
|
status: z.ZodEnum<{
|
|
499
|
-
active: "active";
|
|
500
|
-
cancelled: "cancelled";
|
|
501
505
|
draft: "draft";
|
|
506
|
+
cancelled: "cancelled";
|
|
507
|
+
active: "active";
|
|
502
508
|
}>;
|
|
503
509
|
sessionsCount: z.ZodNumber;
|
|
504
510
|
enrolledCount: z.ZodNumber;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Shared types for course display blocks
|
|
3
3
|
*/
|
|
4
4
|
import type { BlockBookingPaymentTerms } from '../../shared/bookingPaymentTerms';
|
|
5
|
+
import type { PublicTeamMemberSummary } from '../../shared/teamMembers';
|
|
5
6
|
/**
|
|
6
7
|
* Course status values
|
|
7
8
|
*/
|
|
@@ -25,11 +26,6 @@ export type CourseSession = {
|
|
|
25
26
|
capacityOverride?: number | null;
|
|
26
27
|
overrides?: Record<string, unknown> | null;
|
|
27
28
|
};
|
|
28
|
-
export type PublicTeamMemberSummary = {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
summary: string | null;
|
|
32
|
-
};
|
|
33
29
|
export type CoursePricingOption = {
|
|
34
30
|
id: string;
|
|
35
31
|
name: string;
|