@riverbankcms/sdk 0.62.2 → 0.62.4
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/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
- package/dist/_dts/api/src/calendar.d.ts +11 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
- package/dist/_dts/api/src/endpoints.d.ts +110 -6
- package/dist/_dts/api/src/index.d.ts +4 -1
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
- package/dist/_dts/api/src/siteMembers.d.ts +10 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -12
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/api/src/url.d.ts +3 -3
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +208 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +13 -2
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -67
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -62
- package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
- package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +1 -2
- package/dist/_dts/theme-core/src/siteChrome.d.ts +44 -2
- package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
- package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
- package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
- package/dist/cli/index.mjs +1139 -471
- package/dist/client/bookings.mjs +519 -368
- package/dist/client/client.mjs +4507 -3535
- package/dist/client/hooks.mjs +2634 -2035
- package/dist/client/rendering/client.mjs +4413 -3549
- package/dist/client/rendering/islands.mjs +3456 -2589
- package/dist/client/rendering.mjs +4921 -3949
- package/dist/preview-next/before-render.mjs +138 -6
- package/dist/preview-next/client/runtime.mjs +3541 -1573
- package/dist/preview-next/editor-base.css +31 -0
- package/dist/preview-next/middleware.mjs +131 -6
- package/dist/server/components.mjs +3214 -2560
- package/dist/server/config-validation.mjs +2859 -2260
- package/dist/server/config.mjs +2859 -2260
- package/dist/server/data.mjs +2634 -2035
- package/dist/server/index.mjs +132 -7
- package/dist/server/next.mjs +2983 -2329
- package/dist/server/page-converter.mjs +2478 -2029
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3214 -2560
- package/dist/server/rendering.mjs +3233 -2579
- package/dist/server/routing.mjs +2725 -2028
- package/dist/server/server.mjs +2636 -2037
- package/dist/server/theme-bridge.mjs +1250 -767
- package/dist/server/theme.mjs +623 -498
- package/dist/styles/index.css +33 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
- package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
- package/dist/_dts/theme-core/src/site-styles/siteChromeAppearancePresets.d.ts +0 -67
|
@@ -320,6 +320,13 @@ export type UpdateSiteMemberRoleRequest = {
|
|
|
320
320
|
export type UpdateSiteMemberRoleResponse = {
|
|
321
321
|
member: SiteMember;
|
|
322
322
|
};
|
|
323
|
+
export type LinkCurrentUserPractitionerRequest = {
|
|
324
|
+
resourceId: string;
|
|
325
|
+
};
|
|
326
|
+
export type CurrentUserPractitionerLinkResponse = {
|
|
327
|
+
linkedStaffMemberId: string | null;
|
|
328
|
+
ownAppointmentResourceId: string | null;
|
|
329
|
+
};
|
|
323
330
|
export type RemoveSiteMemberResponse = {
|
|
324
331
|
success: boolean;
|
|
325
332
|
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export type BookingClosureScope = {
|
|
2
|
+
kind: "site";
|
|
3
|
+
} | {
|
|
4
|
+
kind: "venue";
|
|
5
|
+
venueId: string;
|
|
6
|
+
};
|
|
7
|
+
export type BookingClosureRecord = {
|
|
8
|
+
id: string;
|
|
9
|
+
siteId: string;
|
|
10
|
+
scope: BookingClosureScope;
|
|
11
|
+
startsOn: string;
|
|
12
|
+
endsOn: string;
|
|
13
|
+
timezone: string;
|
|
14
|
+
reason: string;
|
|
15
|
+
name: string | null;
|
|
16
|
+
createdByUserId: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
deletedAt: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type BookingClosureImpactConfirmation = {
|
|
22
|
+
token: string;
|
|
23
|
+
};
|
|
24
|
+
export type BookingClosureManualReviewReason = "spans_closure" | "partial_overlap" | "hybrid_venue_scope" | "existing_appointment" | "appointment_scope_unclear" | "in_progress";
|
|
25
|
+
export type BookingClosureAutoCancelReason = "fully_contained_site_closure" | "fully_contained_venue_closure";
|
|
26
|
+
export type BookingClosureAffectedItemKind = "event_occurrence" | "course_session" | "appointment";
|
|
27
|
+
export type BookingClosureAutoCancelItem = {
|
|
28
|
+
disposition: "auto_cancel";
|
|
29
|
+
itemKind: "event_occurrence" | "course_session";
|
|
30
|
+
itemId: string;
|
|
31
|
+
occurrenceId: string;
|
|
32
|
+
seriesId: string;
|
|
33
|
+
title: string;
|
|
34
|
+
startsAt: string;
|
|
35
|
+
endsAt: string;
|
|
36
|
+
venueId: string | null;
|
|
37
|
+
venueName: string | null;
|
|
38
|
+
attendeeCount: number;
|
|
39
|
+
reason: BookingClosureAutoCancelReason;
|
|
40
|
+
href: string;
|
|
41
|
+
};
|
|
42
|
+
export type BookingClosureManualReviewItem = {
|
|
43
|
+
disposition: "manual_review";
|
|
44
|
+
itemKind: BookingClosureAffectedItemKind;
|
|
45
|
+
itemId: string;
|
|
46
|
+
title: string;
|
|
47
|
+
startsAt: string;
|
|
48
|
+
endsAt: string;
|
|
49
|
+
venueId: string | null;
|
|
50
|
+
venueName: string | null;
|
|
51
|
+
reason: BookingClosureManualReviewReason;
|
|
52
|
+
href: string;
|
|
53
|
+
};
|
|
54
|
+
export type BookingClosureImpactSummary = {
|
|
55
|
+
autoCancelCount: number;
|
|
56
|
+
manualReviewCount: number;
|
|
57
|
+
affectedAttendeeCount: number;
|
|
58
|
+
courseSessionCount: number;
|
|
59
|
+
eventOccurrenceCount: number;
|
|
60
|
+
appointmentCount: number;
|
|
61
|
+
};
|
|
62
|
+
export type BookingClosureImpactPlan = {
|
|
63
|
+
summary: BookingClosureImpactSummary;
|
|
64
|
+
confirmation: BookingClosureImpactConfirmation;
|
|
65
|
+
autoCancel: BookingClosureAutoCancelItem[];
|
|
66
|
+
manualReview: BookingClosureManualReviewItem[];
|
|
67
|
+
};
|
|
68
|
+
export type BookingClosureRequest = {
|
|
69
|
+
scope: BookingClosureScope;
|
|
70
|
+
startsOn: string;
|
|
71
|
+
endsOn: string;
|
|
72
|
+
reason: string;
|
|
73
|
+
name?: string | null;
|
|
74
|
+
};
|
|
75
|
+
export type PreviewBookingClosureResponse = {
|
|
76
|
+
impact: BookingClosureImpactPlan;
|
|
77
|
+
};
|
|
78
|
+
export type CreateBookingClosureRequest = BookingClosureRequest & {
|
|
79
|
+
confirmedSummary: BookingClosureImpactSummary;
|
|
80
|
+
confirmation: BookingClosureImpactConfirmation;
|
|
81
|
+
};
|
|
82
|
+
export type CreateBookingClosureResponse = {
|
|
83
|
+
closure: BookingClosureRecord;
|
|
84
|
+
impact: BookingClosureImpactPlan;
|
|
85
|
+
execution: {
|
|
86
|
+
cancelledOccurrences: number;
|
|
87
|
+
cancelledInstances: number;
|
|
88
|
+
notificationJobs: number;
|
|
89
|
+
notificationFailures: number;
|
|
90
|
+
notificationError?: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type BookingClosureConflictResponse = {
|
|
94
|
+
reason: "impact_changed";
|
|
95
|
+
impact: BookingClosureImpactPlan;
|
|
96
|
+
};
|
|
97
|
+
export type ListBookingClosuresResponse = {
|
|
98
|
+
closures: BookingClosureRecord[];
|
|
99
|
+
};
|
|
100
|
+
export type GetBookingClosureResponse = {
|
|
101
|
+
closure: BookingClosureRecord;
|
|
102
|
+
impact: BookingClosureImpactPlan;
|
|
103
|
+
};
|
|
104
|
+
export type DeleteBookingClosureResponse = {
|
|
105
|
+
closure: BookingClosureRecord;
|
|
106
|
+
};
|
|
@@ -2,6 +2,7 @@ import type { APIEndpoint } from "./apiEndpointTypes";
|
|
|
2
2
|
import type { CreateBlackoutRequest, CreateBlackoutResponse, DeleteBlackoutResponse, GetAvailableSlotsQuery, GetAvailableSlotsResponse, ListAvailabilityRulesResponse, ListBlackoutsResponse, SetWeeklyAvailabilityRequest, SetWeeklyAvailabilityResponse } from "./availability";
|
|
3
3
|
import type { CalendarStatusResponse, BookingCalendarFeedMutationResponse, BookingCalendarFeedStatusResponse, DisconnectCalendarResponse, UpdateCalendarPreferencesRequest, UpdateCalendarPreferencesResponse } from "./calendar";
|
|
4
4
|
import type { BookingRequirementConfigRequest, BookingRequirementConfigResponse, CreateAppointmentRequest, CreateAppointmentResponse } from "./bookings";
|
|
5
|
+
import type { BookingClosureConflictResponse, CreateBookingClosureRequest, CreateBookingClosureResponse, DeleteBookingClosureResponse, GetBookingClosureResponse, ListBookingClosuresResponse, PreviewBookingClosureResponse, BookingClosureRequest } from "./bookingClosures";
|
|
5
6
|
import type { BookingSettingsResponse, CreateEventSeriesRequest, EventSeriesRecord, UpdateBookingSettingsRequest, UpdateEventSeriesRequest } from "./bookingConfig";
|
|
6
7
|
import type { AdjustCustomerPassDetailsRequest, AdjustCustomerPassDetailsResponse, AssignCustomerMembershipRequest, AssignCustomerMembershipResponse, AssignCustomerPassRequest, AssignCustomerPassResponse, CancelCustomerMembershipAtPeriodEndRequest, CancelCustomerMembershipAtPeriodEndResponse, ConvertCreditRefundToCashRequest, ConvertCreditRefundToCashResponse, ListCustomerMembershipPaymentRefundsResponse, ListCustomerMembershipPaymentsResponse, ListCustomerPassRefundsResponse, RefundCustomerMembershipPaymentRequest, RefundCustomerMembershipPaymentResponse, RefundCustomerPassRequest, RefundCustomerPassResponse } from "./bookingAdjustments";
|
|
7
8
|
import type { AppointmentResourceResponse, AppointmentServiceResponse, BookingAppointmentWithDetails, CreateAppointmentResourceRequest, CreateAppointmentServiceRequest, CreateTeamMemberProfileResponse, DiscardTeamMemberProfileDraftResponse, DeleteServiceResponse, ListAppointmentResourcesResponse, ListAppointmentServicesResponse, ListCourseEnrollmentRefundsResponse, ListEventAttendeeRefundsResponse, ListEventAttendeeTransfersResponse, OpsCancelEventAttendeeRequest, OpsCancelEventAttendeeResponse, OpsEventAttendeeDetailsResponse, OpsListUpcomingEventOccurrencesResponse, OpsOccurrenceAttendeesResponse, OpsRefundEventAttendeeResponse, OpsUpdateEventAttendeeCheckinRequest, OpsUpdateEventAttendeeCheckinResponse, OpsValidateEventTicketRequest, OpsValidateEventTicketResponse, ReferenceOptionsResponse, RemoveAppointmentResourceResponse, RefundCourseEnrollmentRequest, RefundCourseEnrollmentResponse, RefundEventAttendeeRequest, RefundEventAttendeeResponse, TransferEventAttendeeRequest, TransferEventAttendeeResponse, UpdateAppointmentResourceRequest, UpdateAppointmentServiceRequest, PublishTeamMemberProfileRequest, PublishTeamMemberProfileResponse, CancelScheduledTeamMemberProfileResponse, ScheduleTeamMemberProfileRequest, ScheduleTeamMemberProfileResponse, TeamMemberProfileContentResponse, UnpublishTeamMemberProfileResponse, UpdateTeamMemberProfileContentRequest, UpdateTeamMemberProfilePolicyRequest, UpdateTeamMemberProfilePolicyResponse, UpdateTeamMemberProfileRouteMetadataRequest, UpdateTeamMemberProfileRouteMetadataResponse } from "./bookingOperations";
|
|
@@ -25,6 +26,23 @@ export type BookingManagementAPIEndpoints = {
|
|
|
25
26
|
updateBookingSettings: APIEndpoint<UpdateBookingSettingsRequest, {
|
|
26
27
|
siteId: string;
|
|
27
28
|
}, BookingSettingsResponse>;
|
|
29
|
+
listBookingClosures: APIEndpoint<never, {
|
|
30
|
+
siteId: string;
|
|
31
|
+
}, ListBookingClosuresResponse>;
|
|
32
|
+
previewBookingClosure: APIEndpoint<BookingClosureRequest, {
|
|
33
|
+
siteId: string;
|
|
34
|
+
}, PreviewBookingClosureResponse>;
|
|
35
|
+
createBookingClosure: APIEndpoint<CreateBookingClosureRequest, {
|
|
36
|
+
siteId: string;
|
|
37
|
+
}, CreateBookingClosureResponse | BookingClosureConflictResponse>;
|
|
38
|
+
getBookingClosure: APIEndpoint<never, {
|
|
39
|
+
siteId: string;
|
|
40
|
+
closureId: string;
|
|
41
|
+
}, GetBookingClosureResponse>;
|
|
42
|
+
deleteBookingClosure: APIEndpoint<never, {
|
|
43
|
+
siteId: string;
|
|
44
|
+
closureId: string;
|
|
45
|
+
}, DeleteBookingClosureResponse>;
|
|
28
46
|
opsListUpcomingEventOccurrences: APIEndpoint<never, {
|
|
29
47
|
siteId: string;
|
|
30
48
|
}, OpsListUpcomingEventOccurrencesResponse>;
|
|
@@ -757,7 +757,7 @@ export type EventCategoryResponse = {
|
|
|
757
757
|
category: EventCategoryRecord;
|
|
758
758
|
};
|
|
759
759
|
export type BookingActivityCategory = "booking" | "purchase" | "cancellation" | "refund" | "transfer" | "failure";
|
|
760
|
-
export type BookingActivityType = "appointment_booked" | "appointment_cancelled" | "event_registration" | "event_registration_cancelled" | "course_enrollment" | "course_enrollment_cancelled" | "pass_purchased" | "membership_started" | "membership_paused" | "membership_cancelled" | "event_refund" | "pass_refund" | "membership_refund" | "course_refund" | "ticket_transfer" | "payment_failed";
|
|
760
|
+
export type BookingActivityType = "appointment_booked" | "appointment_cancelled" | "booking_closure_created" | "booking_closure_removed" | "event_registration" | "event_registration_cancelled" | "course_enrollment" | "course_enrollment_cancelled" | "pass_purchased" | "membership_started" | "membership_paused" | "membership_cancelled" | "event_refund" | "pass_refund" | "membership_refund" | "course_refund" | "ticket_transfer" | "payment_failed";
|
|
761
761
|
export type BookingActivityCursor = {
|
|
762
762
|
occurredAt: string;
|
|
763
763
|
id: string;
|
|
@@ -11,7 +11,8 @@ export type CalendarPreferences = {
|
|
|
11
11
|
allDayEventsBlockAvailability: boolean;
|
|
12
12
|
};
|
|
13
13
|
export type CalendarConnectionStatus = "connected" | "needs_reauth" | "disconnected";
|
|
14
|
-
export type
|
|
14
|
+
export type PrivateCalendarStatusResponse = {
|
|
15
|
+
accessLevel: "private";
|
|
15
16
|
connected: boolean;
|
|
16
17
|
provider: string | null;
|
|
17
18
|
status?: CalendarConnectionStatus;
|
|
@@ -19,6 +20,15 @@ export type CalendarStatusResponse = {
|
|
|
19
20
|
preferences: CalendarPreferences;
|
|
20
21
|
error?: string;
|
|
21
22
|
};
|
|
23
|
+
export type AdminCalendarStatusResponse = {
|
|
24
|
+
accessLevel: "admin_status";
|
|
25
|
+
connected: boolean;
|
|
26
|
+
provider: string | null;
|
|
27
|
+
status?: CalendarConnectionStatus;
|
|
28
|
+
calendars: [];
|
|
29
|
+
preferences: CalendarPreferences;
|
|
30
|
+
};
|
|
31
|
+
export type CalendarStatusResponse = PrivateCalendarStatusResponse | AdminCalendarStatusResponse;
|
|
22
32
|
export type UpdateCalendarPreferencesRequest = {
|
|
23
33
|
busyTimeCalendars?: string[];
|
|
24
34
|
destinationCalendar?: string | null;
|
|
@@ -349,6 +349,8 @@ export type SiteBySlugResponse = {
|
|
|
349
349
|
selectionButtonPersonalityId?: string | null;
|
|
350
350
|
selectionPaletteVariantId?: string | null;
|
|
351
351
|
selectionPaletteOverrides?: Record<string, string> | null;
|
|
352
|
+
selectionHeaderLookId?: string | null;
|
|
353
|
+
selectionFooterLookId?: string | null;
|
|
352
354
|
navigation: NavigationMenuWithItems[];
|
|
353
355
|
/** Whether portal navigation links should be rendered for this site. */
|
|
354
356
|
portalEnabled?: boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type VersionHistoryOwnerKind = "entry" | "page";
|
|
2
|
+
export type DraftVersionPrecondition = {
|
|
3
|
+
kind: "none";
|
|
4
|
+
} | {
|
|
5
|
+
kind: "draft";
|
|
6
|
+
contentVersionId: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
};
|
|
9
|
+
export type VersionHistoryListQuery = {
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
};
|
|
13
|
+
export type VersionHistoryItem = {
|
|
14
|
+
id: string;
|
|
15
|
+
version: number;
|
|
16
|
+
publishedAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
ownerKind: VersionHistoryOwnerKind;
|
|
19
|
+
isCurrentPublished: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type VersionHistoryWarning = {
|
|
22
|
+
kind: "missing_reference";
|
|
23
|
+
fieldPath: string;
|
|
24
|
+
contentType: string;
|
|
25
|
+
valueFrom: "id" | "identifier";
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
export type VersionHistoryDetail = VersionHistoryItem & {
|
|
30
|
+
data: Record<string, unknown>;
|
|
31
|
+
designState: Record<string, unknown> | null;
|
|
32
|
+
warnings: VersionHistoryWarning[];
|
|
33
|
+
};
|
|
34
|
+
export type ListVersionHistoryResponse = {
|
|
35
|
+
versions: VersionHistoryItem[];
|
|
36
|
+
nextCursor: string | null;
|
|
37
|
+
currentDraft: DraftVersionPrecondition;
|
|
38
|
+
};
|
|
39
|
+
export type GetVersionHistoryResponse = {
|
|
40
|
+
version: VersionHistoryDetail;
|
|
41
|
+
};
|
|
42
|
+
export type RestoreVersionHistoryRequest = {
|
|
43
|
+
expectedDraft: DraftVersionPrecondition;
|
|
44
|
+
};
|
|
45
|
+
export type RestoreVersionHistoryResponse = {
|
|
46
|
+
status: "restored";
|
|
47
|
+
draftVersionId: string;
|
|
48
|
+
warnings: VersionHistoryWarning[];
|
|
49
|
+
} | {
|
|
50
|
+
status: "noop";
|
|
51
|
+
reason: "current_published";
|
|
52
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { GetVersionHistoryResponse, ListVersionHistoryResponse, RestoreVersionHistoryRequest, RestoreVersionHistoryResponse } from "./contentVersionHistory";
|
|
2
|
+
import type { ApiClient } from "./request";
|
|
3
|
+
export declare function listContentEntryVersions(apiClient: ApiClient, input: {
|
|
4
|
+
siteId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
entryId: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
options?: RequestInit;
|
|
10
|
+
}): Promise<ListVersionHistoryResponse>;
|
|
11
|
+
export declare function getContentEntryVersion(apiClient: ApiClient, input: {
|
|
12
|
+
siteId: string;
|
|
13
|
+
type: string;
|
|
14
|
+
entryId: string;
|
|
15
|
+
versionId: string;
|
|
16
|
+
options?: RequestInit;
|
|
17
|
+
}): Promise<GetVersionHistoryResponse>;
|
|
18
|
+
export declare function restoreContentEntryVersion(apiClient: ApiClient, input: {
|
|
19
|
+
siteId: string;
|
|
20
|
+
type: string;
|
|
21
|
+
entryId: string;
|
|
22
|
+
versionId: string;
|
|
23
|
+
body: RestoreVersionHistoryRequest;
|
|
24
|
+
options?: RequestInit;
|
|
25
|
+
}): Promise<RestoreVersionHistoryResponse>;
|
|
26
|
+
export declare function listPageVersions(apiClient: ApiClient, input: {
|
|
27
|
+
siteId: string;
|
|
28
|
+
pageId: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
cursor?: string;
|
|
31
|
+
options?: RequestInit;
|
|
32
|
+
}): Promise<ListVersionHistoryResponse>;
|
|
33
|
+
export declare function getPageVersion(apiClient: ApiClient, input: {
|
|
34
|
+
siteId: string;
|
|
35
|
+
pageId: string;
|
|
36
|
+
versionId: string;
|
|
37
|
+
options?: RequestInit;
|
|
38
|
+
}): Promise<GetVersionHistoryResponse>;
|
|
39
|
+
export declare function restorePageVersion(apiClient: ApiClient, input: {
|
|
40
|
+
siteId: string;
|
|
41
|
+
pageId: string;
|
|
42
|
+
versionId: string;
|
|
43
|
+
body: RestoreVersionHistoryRequest;
|
|
44
|
+
options?: RequestInit;
|
|
45
|
+
}): Promise<RestoreVersionHistoryResponse>;
|
|
@@ -375,6 +375,46 @@ export declare const API_ENDPOINTS: {
|
|
|
375
375
|
readonly responseKind: "json";
|
|
376
376
|
readonly errors: readonly ["validation:invalid_input", "auth:forbidden", "server:internal_error"];
|
|
377
377
|
};
|
|
378
|
+
readonly listBookingClosures: {
|
|
379
|
+
readonly path: "/sites/{siteId}/bookings/closures";
|
|
380
|
+
readonly method: "GET";
|
|
381
|
+
readonly auth: "user";
|
|
382
|
+
readonly tags: ["site-{siteId}", "bookings", "closures-{siteId}"];
|
|
383
|
+
readonly responseKind: "json";
|
|
384
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
385
|
+
};
|
|
386
|
+
readonly previewBookingClosure: {
|
|
387
|
+
readonly path: "/sites/{siteId}/bookings/closures/preview";
|
|
388
|
+
readonly method: "POST";
|
|
389
|
+
readonly auth: "user";
|
|
390
|
+
readonly tags: ["site-{siteId}", "bookings", "closures-{siteId}"];
|
|
391
|
+
readonly responseKind: "json";
|
|
392
|
+
readonly errors: readonly ["validation:invalid_input", "auth:forbidden", "server:internal_error"];
|
|
393
|
+
};
|
|
394
|
+
readonly createBookingClosure: {
|
|
395
|
+
readonly path: "/sites/{siteId}/bookings/closures";
|
|
396
|
+
readonly method: "POST";
|
|
397
|
+
readonly auth: "user";
|
|
398
|
+
readonly tags: ["site-{siteId}", "bookings", "closures-{siteId}"];
|
|
399
|
+
readonly responseKind: "json";
|
|
400
|
+
readonly errors: readonly ["validation:invalid_input", "resource:conflict", "auth:forbidden", "server:internal_error"];
|
|
401
|
+
};
|
|
402
|
+
readonly getBookingClosure: {
|
|
403
|
+
readonly path: "/sites/{siteId}/bookings/closures/{closureId}";
|
|
404
|
+
readonly method: "GET";
|
|
405
|
+
readonly auth: "user";
|
|
406
|
+
readonly tags: ["site-{siteId}", "bookings", "closures-{siteId}"];
|
|
407
|
+
readonly responseKind: "json";
|
|
408
|
+
readonly errors: readonly ["resource:not_found", "server:internal_error"];
|
|
409
|
+
};
|
|
410
|
+
readonly deleteBookingClosure: {
|
|
411
|
+
readonly path: "/sites/{siteId}/bookings/closures/{closureId}";
|
|
412
|
+
readonly method: "DELETE";
|
|
413
|
+
readonly auth: "user";
|
|
414
|
+
readonly tags: ["site-{siteId}", "bookings", "closures-{siteId}"];
|
|
415
|
+
readonly responseKind: "json";
|
|
416
|
+
readonly errors: readonly ["resource:not_found", "server:internal_error"];
|
|
417
|
+
};
|
|
378
418
|
readonly opsListUpcomingEventOccurrences: {
|
|
379
419
|
readonly path: "/ops/sites/{siteId}/events";
|
|
380
420
|
readonly method: "GET";
|
|
@@ -744,7 +784,7 @@ export declare const API_ENDPOINTS: {
|
|
|
744
784
|
readonly method: "POST";
|
|
745
785
|
readonly auth: "user";
|
|
746
786
|
readonly responseKind: "json";
|
|
747
|
-
readonly errors: readonly ["validation:invalid_input", "server:internal_error"];
|
|
787
|
+
readonly errors: readonly ["validation:invalid_input", "billing:plan_limit_exceeded", "server:internal_error"];
|
|
748
788
|
};
|
|
749
789
|
readonly getAppointmentResource: {
|
|
750
790
|
readonly path: "/sites/{siteId}/bookings/resources/{resourceId}";
|
|
@@ -1260,6 +1300,22 @@ export declare const API_ENDPOINTS: {
|
|
|
1260
1300
|
readonly auth: "user";
|
|
1261
1301
|
readonly responseKind: "json";
|
|
1262
1302
|
};
|
|
1303
|
+
readonly linkCurrentUserPractitioner: {
|
|
1304
|
+
readonly path: "/sites/{siteId}/members/practitioner-link";
|
|
1305
|
+
readonly method: "POST";
|
|
1306
|
+
readonly tags: ["site-{siteId}", "site-members-{siteId}"];
|
|
1307
|
+
readonly auth: "user";
|
|
1308
|
+
readonly responseKind: "json";
|
|
1309
|
+
readonly errors: readonly ["validation:invalid_input", "auth:forbidden", "resource:not_found", "resource:already_exists", "server:internal_error"];
|
|
1310
|
+
};
|
|
1311
|
+
readonly unlinkCurrentUserPractitioner: {
|
|
1312
|
+
readonly path: "/sites/{siteId}/members/practitioner-link";
|
|
1313
|
+
readonly method: "DELETE";
|
|
1314
|
+
readonly tags: ["site-{siteId}", "site-members-{siteId}"];
|
|
1315
|
+
readonly auth: "user";
|
|
1316
|
+
readonly responseKind: "json";
|
|
1317
|
+
readonly errors: readonly ["auth:forbidden", "server:internal_error"];
|
|
1318
|
+
};
|
|
1263
1319
|
readonly authLogin: {
|
|
1264
1320
|
readonly path: "/auth/login/submit";
|
|
1265
1321
|
readonly method: "POST";
|
|
@@ -1426,6 +1482,30 @@ export declare const API_ENDPOINTS: {
|
|
|
1426
1482
|
readonly auth: "user";
|
|
1427
1483
|
readonly responseKind: "json";
|
|
1428
1484
|
};
|
|
1485
|
+
readonly listContentEntryVersions: {
|
|
1486
|
+
readonly path: "/sites/{siteId}/content/{type}/{entryId}/versions";
|
|
1487
|
+
readonly method: "GET";
|
|
1488
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found"];
|
|
1489
|
+
readonly tags: ["site-{siteId}", "content-{siteId}-{type}", "content-entry-{entryId}"];
|
|
1490
|
+
readonly auth: "user";
|
|
1491
|
+
readonly responseKind: "json";
|
|
1492
|
+
};
|
|
1493
|
+
readonly getContentEntryVersion: {
|
|
1494
|
+
readonly path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}";
|
|
1495
|
+
readonly method: "GET";
|
|
1496
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found"];
|
|
1497
|
+
readonly tags: ["site-{siteId}", "content-{siteId}-{type}", "content-entry-{entryId}"];
|
|
1498
|
+
readonly auth: "user";
|
|
1499
|
+
readonly responseKind: "json";
|
|
1500
|
+
};
|
|
1501
|
+
readonly restoreContentEntryVersion: {
|
|
1502
|
+
readonly path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}/restore";
|
|
1503
|
+
readonly method: "POST";
|
|
1504
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"];
|
|
1505
|
+
readonly tags: ["site-{siteId}", "content-{siteId}-{type}", "content-entry-{entryId}"];
|
|
1506
|
+
readonly auth: "user";
|
|
1507
|
+
readonly responseKind: "json";
|
|
1508
|
+
};
|
|
1429
1509
|
readonly updateContentEntryContent: {
|
|
1430
1510
|
readonly path: "/sites/{siteId}/content/{type}/{entryId}/content";
|
|
1431
1511
|
readonly method: "PUT";
|
|
@@ -2627,6 +2707,30 @@ export declare const API_ENDPOINTS: {
|
|
|
2627
2707
|
readonly responseKind: "json";
|
|
2628
2708
|
readonly errors: readonly ["resource:not_found", "validation:invalid_input", "resource:conflict", "server:internal_error"];
|
|
2629
2709
|
};
|
|
2710
|
+
readonly listPageVersions: {
|
|
2711
|
+
readonly path: "/sites/{siteId}/pages/{pageId}/versions";
|
|
2712
|
+
readonly method: "GET";
|
|
2713
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found"];
|
|
2714
|
+
readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:page:{pageId}"];
|
|
2715
|
+
readonly auth: "user";
|
|
2716
|
+
readonly responseKind: "json";
|
|
2717
|
+
};
|
|
2718
|
+
readonly getPageVersion: {
|
|
2719
|
+
readonly path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}";
|
|
2720
|
+
readonly method: "GET";
|
|
2721
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found"];
|
|
2722
|
+
readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:page:{pageId}"];
|
|
2723
|
+
readonly auth: "user";
|
|
2724
|
+
readonly responseKind: "json";
|
|
2725
|
+
};
|
|
2726
|
+
readonly restorePageVersion: {
|
|
2727
|
+
readonly path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}/restore";
|
|
2728
|
+
readonly method: "POST";
|
|
2729
|
+
readonly errors: readonly ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"];
|
|
2730
|
+
readonly tags: ["riverbank:site:{siteId}:routable-content", "riverbank:page:{pageId}"];
|
|
2731
|
+
readonly auth: "user";
|
|
2732
|
+
readonly responseKind: "json";
|
|
2733
|
+
};
|
|
2630
2734
|
readonly applyPageDesignEditorAction: {
|
|
2631
2735
|
readonly path: "/sites/{siteId}/pages/{pageId}/design/actions";
|
|
2632
2736
|
readonly method: "POST";
|
|
@@ -2671,21 +2775,21 @@ export declare const API_ENDPOINTS: {
|
|
|
2671
2775
|
readonly responseKind: "json";
|
|
2672
2776
|
};
|
|
2673
2777
|
readonly updateForm: {
|
|
2674
|
-
readonly path: "/sites/{siteId}/forms/{
|
|
2778
|
+
readonly path: "/sites/{siteId}/forms/{formId}";
|
|
2675
2779
|
readonly method: "PATCH";
|
|
2676
2780
|
readonly tags: ["riverbank:site:{siteId}:forms"];
|
|
2677
2781
|
readonly auth: "user";
|
|
2678
2782
|
readonly responseKind: "json";
|
|
2679
2783
|
};
|
|
2680
2784
|
readonly deleteForm: {
|
|
2681
|
-
readonly path: "/sites/{siteId}/forms/{
|
|
2785
|
+
readonly path: "/sites/{siteId}/forms/{formId}";
|
|
2682
2786
|
readonly method: "DELETE";
|
|
2683
2787
|
readonly tags: ["riverbank:site:{siteId}:forms"];
|
|
2684
2788
|
readonly auth: "user";
|
|
2685
2789
|
readonly responseKind: "json";
|
|
2686
2790
|
};
|
|
2687
2791
|
readonly listFormSubmissions: {
|
|
2688
|
-
readonly path: "/sites/{siteId}/forms/{
|
|
2792
|
+
readonly path: "/sites/{siteId}/forms/{formId}/submissions";
|
|
2689
2793
|
readonly method: "GET";
|
|
2690
2794
|
readonly revalidate: 30;
|
|
2691
2795
|
readonly tags: ["riverbank:site:{siteId}:forms", "riverbank:form-submissions:{slug}"];
|
|
@@ -2693,7 +2797,7 @@ export declare const API_ENDPOINTS: {
|
|
|
2693
2797
|
readonly responseKind: "json";
|
|
2694
2798
|
};
|
|
2695
2799
|
readonly createFormSubmissionRectificationAnnotation: {
|
|
2696
|
-
readonly path: "/sites/{siteId}/forms/{
|
|
2800
|
+
readonly path: "/sites/{siteId}/forms/{formId}/submissions/{submissionId}/annotations";
|
|
2697
2801
|
readonly method: "POST";
|
|
2698
2802
|
readonly tags: ["riverbank:site:{siteId}:forms", "riverbank:form-submissions:{slug}"];
|
|
2699
2803
|
readonly auth: "user";
|
|
@@ -2701,7 +2805,7 @@ export declare const API_ENDPOINTS: {
|
|
|
2701
2805
|
readonly errors: readonly ["auth:forbidden", "resource:not_found", "validation:invalid_input", "server:internal_error"];
|
|
2702
2806
|
};
|
|
2703
2807
|
readonly exportFormSubmissionsCsv: {
|
|
2704
|
-
readonly path: "/sites/{siteId}/forms/{
|
|
2808
|
+
readonly path: "/sites/{siteId}/forms/{formId}/submissions/export.csv";
|
|
2705
2809
|
readonly method: "GET";
|
|
2706
2810
|
readonly tags: ["riverbank:site:{siteId}:forms", "riverbank:form-submissions:{slug}"];
|
|
2707
2811
|
readonly auth: "user";
|
|
@@ -16,6 +16,7 @@ export * from "./bookingVerticals";
|
|
|
16
16
|
export { APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX, APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX, applyAppointmentSetupRequestSchema, applyAppointmentSetupRequest, appointmentSetupAvailabilityDraftSchema, appointmentSetupBookingNoticeSchema, appointmentSetupPaymentDraftSchema, appointmentSetupPractitionerDraftSchema, appointmentSetupRefSchema, appointmentSetupServiceAssignmentDraftSchema, appointmentSetupServiceDraftSchema, appointmentSetupVenueChoiceSchema, appointmentSetupWeeklyWindowDraftSchema, getAppointmentSetupRequest, } from "./appointmentSetup";
|
|
17
17
|
export type { ApplyAppointmentSetupRequest, ApplyAppointmentSetupResponse, AppointmentPractitionerMode, AppointmentSetupAvailabilityDraft, AppointmentSetupAvailabilityWindowInvalidReason, AppointmentSetupBookingNotice, AppointmentSetupDraftMapping, AppointmentSetupPaymentDraft, AppointmentSetupPlanIssue, AppointmentSetupPractitionerDraft, AppointmentSetupReadiness, AppointmentSetupRef, AppointmentSetupResponse, AppointmentSetupSeedCandidate, AppointmentSetupSeedInvalidMetadata, AppointmentSetupSeedSelection, AppointmentSetupServiceAssignmentDraft, AppointmentSetupServiceDraft, AppointmentSetupServiceResourceLink, AppointmentSetupTargetStep, AppointmentSetupVenueChoice, AppointmentSetupWeeklyWindowDraft, } from "./appointmentSetup";
|
|
18
18
|
export type { BookingSessionCreateAppointmentRequest, BookingSessionCreateAppointmentResponse, BookingSessionEligibleAppointmentPackage, BookingSessionListEligibleAppointmentPackagesResponse, } from "./bookingOperations";
|
|
19
|
+
export type { BookingClosureAffectedItemKind, BookingClosureAutoCancelItem, BookingClosureAutoCancelReason, BookingClosureConflictResponse, BookingClosureImpactPlan, BookingClosureImpactSummary, BookingClosureManualReviewItem, BookingClosureManualReviewReason, BookingClosureRecord, BookingClosureRequest, BookingClosureScope, CreateBookingClosureRequest, CreateBookingClosureResponse, DeleteBookingClosureResponse, GetBookingClosureResponse, ListBookingClosuresResponse, PreviewBookingClosureResponse, } from "./bookingClosures";
|
|
19
20
|
export type { PublicTeamMemberBlockItem, PublicTeamMemberPhoto, PublicTeamMemberSummary, } from "./teamMembers";
|
|
20
21
|
export { BOOKING_QUESTION_REQUIREMENT_SCOPES, isAfterBookingQuestionRequirementScope, isBeforeBookingQuestionRequirementScope, } from "./bookings";
|
|
21
22
|
export type { ApiClient, ApiClientStrict } from "./request";
|
|
@@ -34,6 +35,8 @@ export type { AnalyticsCollectBody } from "./analytics";
|
|
|
34
35
|
export { encodePublicProductCategorySelector, decodePublicProductCategorySelectorQuery, parsePublicProductCategorySelector, } from "./publicProducts";
|
|
35
36
|
export type { PublicProductCategorySelector, PublicProductCategorySelectorQuery, } from "./publicProducts";
|
|
36
37
|
export { publishContentEntry, discardContentDraft, deleteContentEntry, createContentEntry, updateContentEntryContent, mutateContentEntryUnified, listPublishedEntries, } from "./contentEntries";
|
|
38
|
+
export { getContentEntryVersion, getPageVersion, listContentEntryVersions, listPageVersions, restoreContentEntryVersion, restorePageVersion, } from "./contentVersionHistoryClient";
|
|
39
|
+
export type { DraftVersionPrecondition, GetVersionHistoryResponse, ListVersionHistoryResponse, RestoreVersionHistoryRequest, RestoreVersionHistoryResponse, VersionHistoryDetail, VersionHistoryItem, VersionHistoryListQuery, VersionHistoryOwnerKind, VersionHistoryWarning, } from "./contentVersionHistory";
|
|
37
40
|
export { mutateBlockContent, createBlock, reorderBlocks, deleteBlock, listBlocks, } from "./blocks";
|
|
38
41
|
export { blocksKeys } from "./blocksKeys";
|
|
39
42
|
export { contentKeys } from "./contentKeys";
|
|
@@ -75,7 +78,7 @@ export { applySeoChanges, getSeoOverview, getSeoPages, getSeoQueries, } from "./
|
|
|
75
78
|
export { getPerformanceOverview } from "./performance";
|
|
76
79
|
export { listContentTypes, enableContentType, setupContentType, getContentTemplate, updateContentTemplateBlock, applyContentTemplateAddon, updateContentTemplateBlockBindings, getTransforms, createTemplateBlock, deleteTemplateBlock, reorderTemplateBlocks, } from "./contentTypes";
|
|
77
80
|
export { getAnalyticsReport } from "./analytics";
|
|
78
|
-
export { getSiteMembers, inviteSiteMember, updateSiteMemberRole, removeSiteMember, revokeSiteInvitation, transferSiteOwnership, acceptSiteInvitation, } from "./siteMembers";
|
|
81
|
+
export { getSiteMembers, inviteSiteMember, linkCurrentUserPractitioner, updateSiteMemberRole, unlinkCurrentUserPractitioner, removeSiteMember, revokeSiteInvitation, transferSiteOwnership, acceptSiteInvitation, } from "./siteMembers";
|
|
79
82
|
export { listAccountDomains, searchDomainsRequest, registerDomainRequest, assignDomainToSiteRequest, removeDomainRequest, retryDomainConfigRequest, getDomainDnsRequest, verifyDomainDnsRequest, retryNameserversRequest, updateRegisteredDomainContactRequest, setRegisteredDomainPrivacyRequest, setRegisteredDomainAutoRenewRequest, retryVercelRequest, retryResendRequest, } from "./domains";
|
|
80
83
|
export { startImpersonation, stopImpersonation, assignAdminRole, revokeAdminRole, adminChangePlan, listAdminInvites, createAdminInvite, revokeAdminInvite, createAdminUser, adminDeleteSite, adminDeleteUser, listAllowedDomains, addAllowedDomain, deleteAllowedDomain, listGscPropertiesAdmin, setGscPersistEnabled, startGscVerification, confirmGscVerification, runGscIngestionForSite, getPriceOverride, upsertPriceOverride, deletePriceOverride, } from "./admin";
|
|
81
84
|
export { enrollTotpFactor, verifyTotpFactor, activateTotpFactor, deleteMfaFactor, rotateBackupCodes, getBackupCodesOverview, enrollPhoneFactor, challengePhoneFactor, verifyPhoneFactor, acceptAdminInvite, } from "./auth";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
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
|
-
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, RegistrarBooleanMutationRequest, RegistrarLifecycleResponse, RegistrarRenewalPostureResponse, RegisterSiteDomainRequest, RegisterSiteDomainResponse, RemoveSiteMemberResponse, RevokeAdminInviteResponse, RevokeSiteInvitationResponse, SetHomepageRequest, SetHomepageResponse, SiteDomainContactPayload, SiteDomainRecord, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse } from "./accessAdmin";
|
|
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, CurrentUserPractitionerLinkResponse, InviteSiteMemberRequest, InviteSiteMemberResponse, LinkCurrentUserPractitionerRequest, ListAdminInvitesResponse, ListAllowedDomainsResponse, ListSiteMembersResponse, LookupSiteDomainRequest, LookupSiteDomainResponse, MfaBackupCodesOverviewResponse, MfaBackupCodesRotateResponse, MfaOverviewResponse, MfaPhoneChallengeRequest, MfaPhoneChallengeResponse, MfaPhoneEnrollRequest, MfaPhoneEnrollResponse, MfaPhoneVerifyRequest, MfaTotpActivateRequest, MfaTotpEnrollResponse, MfaTotpVerifyRequest, MfaTotpVerifyResponse, ReauthSubmissionResult, RegisterDomainRequestPayload, RegisterDomainResponse, RegistrarBooleanMutationRequest, RegistrarLifecycleResponse, RegistrarRenewalPostureResponse, RegisterSiteDomainRequest, RegisterSiteDomainResponse, RemoveSiteMemberResponse, RevokeAdminInviteResponse, RevokeSiteInvitationResponse, SetHomepageRequest, SetHomepageResponse, SiteDomainContactPayload, SiteDomainRecord, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse } from "./accessAdmin";
|
|
5
5
|
import type { AdminRoleMutationResponse, RevokeAdminRoleRequest, StartImpersonationRequest, StartImpersonationResponse, StopImpersonationRequest, StopImpersonationResponse, UpsertAdminRoleRequest } from "./admin/types";
|
|
6
6
|
import type { AccountRevokeSessionsBody, AccountRevokeSessionsResponse, AccountUpdatePasswordBody, AccountUpdatePasswordResponse, CreateManualSiteRequest, CreateManualSiteResponse } from "./siteOperations";
|
|
7
7
|
import type { BookingSessionCancelAppointmentRequest, BookingSessionCancelAppointmentResponse, BookingSessionCreateAppointmentRequest, BookingSessionCreateAppointmentResponse, BookingSessionGetAppointmentResponse, BookingSessionListEligibleAppointmentPackagesResponse, BookingSessionGetEventResponse, BookingSessionListAppointmentsResponse, BookingSessionListEventsResponse, BookingSessionListMembershipsResponse, BookingSessionListPassesResponse, BookingSessionMeResponse, BookingSessionUpdateMeRequest, BookingSessionUpdateMeResponse, PublicBookingAppointmentStatusResponse, PublicBookingAvailabilityQuery, PublicBookingAvailableDatesResponse, PublicBookingAvailableSlotsResponse, PublicBookingService, PublicCreateBookingAppointmentRequest, PublicCreateBookingAppointmentResponse, ReferenceOptionsResponse } from "./bookingOperations";
|
|
8
8
|
import type { ContentEntryOrPageResponse, ContentEntrySummary, ExportFormSubmissionsCsvQuery, ExportFormSubmissionsCsvResponse, CreateFormSubmissionRectificationAnnotationRequest, CreateFormSubmissionRectificationAnnotationResponse, FormRecord, FormSubmissionWithRectificationAnnotations, FormSummary, NavigationItemRecord, NavigationMenuWithItems, PublicFormRecord, PublishedContentEntryOrPageResponse, RunSdkWorkflowResponse, ScheduledContentEntryOrPageResponse, WorkflowRunStatusResponse } from "./contentRuntime";
|
|
9
|
+
import type { GetVersionHistoryResponse, ListVersionHistoryResponse, RestoreVersionHistoryRequest, RestoreVersionHistoryResponse, VersionHistoryListQuery } from "./contentVersionHistory";
|
|
9
10
|
import type { ApplyContentTemplateAddonRequest, ContentTemplateDetailsResponse, CreateTemplateBlockRequest, GetTransformsResponse, ReorderTemplateBlocksRequest, SerializedContentTypeSummary, UpdateContentTemplateBlockBindingsRequest, UpdateContentTemplateBlockRequest } from "./contentTypes";
|
|
10
11
|
import type { LinkPayload, RoutableContentItem, SitemapRouteItem } from "./navigation/types";
|
|
11
12
|
import type { RouteMetadataPayload, RouteMetadataResponse } from "./routes";
|
|
@@ -174,6 +175,23 @@ export type SiteManagementAPIEndpoints = {
|
|
|
174
175
|
type: string;
|
|
175
176
|
entryId: string;
|
|
176
177
|
}, ContentEntryOrPageResponse>;
|
|
178
|
+
listContentEntryVersions: APIEndpoint<never, VersionHistoryListQuery & {
|
|
179
|
+
siteId: string;
|
|
180
|
+
type: string;
|
|
181
|
+
entryId: string;
|
|
182
|
+
}, ListVersionHistoryResponse>;
|
|
183
|
+
getContentEntryVersion: APIEndpoint<never, {
|
|
184
|
+
siteId: string;
|
|
185
|
+
type: string;
|
|
186
|
+
entryId: string;
|
|
187
|
+
versionId: string;
|
|
188
|
+
}, GetVersionHistoryResponse>;
|
|
189
|
+
restoreContentEntryVersion: APIEndpoint<RestoreVersionHistoryRequest, {
|
|
190
|
+
siteId: string;
|
|
191
|
+
type: string;
|
|
192
|
+
entryId: string;
|
|
193
|
+
versionId: string;
|
|
194
|
+
}, RestoreVersionHistoryResponse>;
|
|
177
195
|
updateContentEntryContent: APIEndpoint<{
|
|
178
196
|
data: Record<string, unknown>;
|
|
179
197
|
optimistic_hash?: string | null;
|
|
@@ -264,6 +282,12 @@ export type SiteManagementAPIEndpoints = {
|
|
|
264
282
|
siteId: string;
|
|
265
283
|
memberId: string;
|
|
266
284
|
}, UpdateSiteMemberRoleResponse>;
|
|
285
|
+
linkCurrentUserPractitioner: APIEndpoint<LinkCurrentUserPractitionerRequest, {
|
|
286
|
+
siteId: string;
|
|
287
|
+
}, CurrentUserPractitionerLinkResponse>;
|
|
288
|
+
unlinkCurrentUserPractitioner: APIEndpoint<never, {
|
|
289
|
+
siteId: string;
|
|
290
|
+
}, CurrentUserPractitionerLinkResponse>;
|
|
267
291
|
authLogin: APIEndpoint<FormData, never, AuthSubmissionResult>;
|
|
268
292
|
authForgotPassword: APIEndpoint<FormData, never, AuthSubmissionResult>;
|
|
269
293
|
authRegister: APIEndpoint<FormData, never, AuthSubmissionResult>;
|
|
@@ -824,7 +848,7 @@ export type SiteManagementAPIEndpoints = {
|
|
|
824
848
|
}>;
|
|
825
849
|
createForm: APIEndpoint<{
|
|
826
850
|
name: string;
|
|
827
|
-
slug
|
|
851
|
+
slug?: string;
|
|
828
852
|
schema: DbJson;
|
|
829
853
|
settings?: DbJson;
|
|
830
854
|
presentation?: DbJson;
|
|
@@ -840,19 +864,19 @@ export type SiteManagementAPIEndpoints = {
|
|
|
840
864
|
presentation?: DbJson;
|
|
841
865
|
}, {
|
|
842
866
|
siteId: string;
|
|
843
|
-
|
|
867
|
+
formId: string;
|
|
844
868
|
}, {
|
|
845
869
|
form: FormRecord;
|
|
846
870
|
}>;
|
|
847
871
|
deleteForm: APIEndpoint<never, {
|
|
848
872
|
siteId: string;
|
|
849
|
-
|
|
873
|
+
formId: string;
|
|
850
874
|
}, {
|
|
851
875
|
ok: boolean;
|
|
852
876
|
}>;
|
|
853
877
|
listFormSubmissions: APIEndpoint<never, {
|
|
854
878
|
siteId: string;
|
|
855
|
-
|
|
879
|
+
formId: string;
|
|
856
880
|
page?: string;
|
|
857
881
|
perPage?: string;
|
|
858
882
|
since?: string;
|
|
@@ -867,12 +891,12 @@ export type SiteManagementAPIEndpoints = {
|
|
|
867
891
|
}>;
|
|
868
892
|
createFormSubmissionRectificationAnnotation: APIEndpoint<CreateFormSubmissionRectificationAnnotationRequest, {
|
|
869
893
|
siteId: string;
|
|
870
|
-
|
|
894
|
+
formId: string;
|
|
871
895
|
submissionId: string;
|
|
872
896
|
}, CreateFormSubmissionRectificationAnnotationResponse>;
|
|
873
897
|
exportFormSubmissionsCsv: APIEndpoint<never, {
|
|
874
898
|
siteId: string;
|
|
875
|
-
|
|
899
|
+
formId: string;
|
|
876
900
|
} & ExportFormSubmissionsCsvQuery, ExportFormSubmissionsCsvResponse>;
|
|
877
901
|
submitForm: APIEndpoint<{
|
|
878
902
|
formId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ListSiteMembersResponse, InviteSiteMemberRequest, InviteSiteMemberResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse, RemoveSiteMemberResponse, RevokeSiteInvitationResponse, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, AcceptSiteInvitationRequest, AcceptSiteInvitationResponse } from './types';
|
|
1
|
+
import type { ListSiteMembersResponse, InviteSiteMemberRequest, InviteSiteMemberResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse, LinkCurrentUserPractitionerRequest, CurrentUserPractitionerLinkResponse, RemoveSiteMemberResponse, RevokeSiteInvitationResponse, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, AcceptSiteInvitationRequest, AcceptSiteInvitationResponse } from './types';
|
|
2
2
|
import type { ApiClient } from './request';
|
|
3
3
|
export type SiteRole = "owner" | "administrator" | "editor" | "event_host" | "team_member";
|
|
4
4
|
/**
|
|
@@ -24,6 +24,15 @@ export declare function updateSiteMemberRole(apiClient: ApiClient, { siteId, mem
|
|
|
24
24
|
body: UpdateSiteMemberRoleRequest;
|
|
25
25
|
options?: RequestInit;
|
|
26
26
|
}): Promise<UpdateSiteMemberRoleResponse>;
|
|
27
|
+
export declare function linkCurrentUserPractitioner(apiClient: ApiClient, { siteId, body, options, }: {
|
|
28
|
+
siteId: string;
|
|
29
|
+
body: LinkCurrentUserPractitionerRequest;
|
|
30
|
+
options?: RequestInit;
|
|
31
|
+
}): Promise<CurrentUserPractitionerLinkResponse>;
|
|
32
|
+
export declare function unlinkCurrentUserPractitioner(apiClient: ApiClient, { siteId, options, }: {
|
|
33
|
+
siteId: string;
|
|
34
|
+
options?: RequestInit;
|
|
35
|
+
}): Promise<CurrentUserPractitionerLinkResponse>;
|
|
27
36
|
export declare function removeSiteMember(apiClient: ApiClient, { siteId, memberId, options, }: {
|
|
28
37
|
siteId: string;
|
|
29
38
|
memberId: string;
|