@riverbankcms/sdk 0.148.0 → 0.149.0
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/README.md +1 -1
- package/dist/{PreviewEditorSidebar-DvEPG3Z2.mjs → PreviewEditorSidebar-DBKln68M.mjs} +103 -66
- package/dist/{PreviewEditorUI-D6eb6fkx.mjs → PreviewEditorUI-DpRX4Mum.mjs} +3 -6
- package/dist/{PreviewQueryProvider-5znTyJuz.mjs → PreviewQueryProvider-C0mndwHB.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-DJ6utQ_R.mjs → SdkPreviewModeRuntime-DJPmPY-r.mjs} +95 -67
- package/dist/{SiteChromeCustomizeContext-CFJYh6vo.mjs → SiteChromeCustomizeContext-JYA0cJ_Z.mjs} +982 -734
- package/dist/_dts/api/src/bookingConfig.d.ts +33 -48
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +2 -6
- package/dist/_dts/api/src/bookingOperations.d.ts +5 -7
- package/dist/_dts/api/src/bookingRecords.d.ts +15 -11
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +5 -5
- package/dist/_dts/api/src/clientErrorReporting.d.ts +11 -0
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +0 -2
- package/dist/_dts/api/src/common/cancellation.d.ts +23 -0
- package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +1 -1
- package/dist/_dts/api/src/endpoints.d.ts +2 -10
- package/dist/_dts/api/src/eventManagementContracts.d.ts +4 -7
- package/dist/_dts/api/src/index.d.ts +3 -3
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +2 -2
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -29
- package/dist/_dts/api/src/request.d.ts +1 -1
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +1 -1
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +1 -1
- package/dist/_dts/api/src/siteOperations.d.ts +6 -2
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +2 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +38 -10
- package/dist/_dts/blocks/src/portal/types.d.ts +9 -6
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +24 -24
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +84 -160
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +31 -4
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -3
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingNowIso.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +14 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventPaymentOptions.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +24 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -6
- package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptions.d.ts +7 -2
- package/dist/_dts/commerce/src/purchase/bookingPaymentSelection.d.ts +54 -0
- package/dist/_dts/commerce/src/purchase/checkoutCommitPlan.d.ts +58 -13
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutPaymentPlanPlanning.d.ts +16 -21
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTerms.d.ts +23 -40
- package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/checkoutStripeSessionPlanning.d.ts +5 -4
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -3
- package/dist/_dts/commerce/src/purchase/membershipOrderItemMetadata.d.ts +4 -0
- package/dist/_dts/commerce/src/purchase/oneTimeCheckoutPlanning.d.ts +9 -4
- package/dist/_dts/commerce/src/purchase/orderInstalmentClosure.d.ts +13 -1
- package/dist/_dts/commerce/src/purchase/orderInstalmentLifecycle.d.ts +5 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +3 -1
- package/dist/_dts/commerce/src/purchase/orderTypes.d.ts +7 -1
- package/dist/_dts/commerce/src/purchase/refundRailSplit.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +2 -2
- package/dist/_dts/commerce/src/purchase/stripeMinimumCharge.d.ts +6 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +2 -1
- package/dist/_dts/content-editor/src/controller/editLeaseHandover.d.ts +30 -0
- package/dist/_dts/content-editor/src/lib/browserStorage.d.ts +5 -0
- package/dist/_dts/core/src/booking-flexible-balance.d.ts +2 -2
- package/dist/_dts/core/src/booking-instalment-deposit.d.ts +20 -0
- package/dist/_dts/core/src/booking-live-payment-terms.d.ts +72 -0
- package/dist/_dts/core/src/booking-payment-options.d.ts +24 -0
- package/dist/_dts/core/src/booking-payment-schemas.d.ts +522 -0
- package/dist/_dts/core/src/branded.d.ts +3 -0
- package/dist/_dts/core/src/edit-lease.d.ts +5 -0
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +297 -36
- package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +3 -1
- package/dist/_dts/media-editor/src/MediaPickerMiniDialog.d.ts +10 -0
- package/dist/_dts/media-editor/src/index.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +0 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/previewAuthStore.d.ts +7 -0
- package/dist/_dts/preview-next/src/constants.d.ts +4 -0
- package/dist/_dts/preview-next/src/keepAlive.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -12
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +0 -5
- package/dist/_dts/ui/src/color-picker.d.ts +1 -1
- package/dist/_dts/ui/src/palette/useHexDraft.d.ts +7 -0
- package/dist/client/{BookingMailingListNote-CzRt2dF_.mjs → BookingMailingListNote-Cr3EeTP5.mjs} +408 -69
- package/dist/client/{DemoBookingPortalAccess-mxqwap3f.mjs → DemoBookingPortalAccess-BFGB1Fay.mjs} +2 -2
- package/dist/client/{EventCombined.client-CDb11igO.mjs → EventCombined.client-DKYV0_ft.mjs} +6 -6
- package/dist/client/{EventListing.client-EgYhzKPa.mjs → EventListing.client-B9UIcEYc.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-gtmtaA2b.mjs → LeafletStaticMap-CFLPkP0K.mjs} +1 -1
- package/dist/client/{TerminalPanel-DvNUP5ot.mjs → TerminalPanel-JjmgxEsR.mjs} +1 -1
- package/dist/client/{ThemedButton-C7CeUJjW.mjs → ThemedButton-CKV1Jh2m.mjs} +1 -1
- package/dist/client/{accordion-kjvt49rA.mjs → accordion-DXWIfT3T.mjs} +1 -1
- package/dist/client/{bookingForm-pbRZordh.mjs → bookingForm-CjZgHNvv.mjs} +11 -8
- package/dist/client/bookings.mjs +424 -320
- package/dist/client/{carousel-f4Zbmicv.mjs → carousel-DSLikmvZ.mjs} +1 -1
- package/dist/client/{cart-DO20An50.mjs → cart-HDjWReFt.mjs} +3 -3
- package/dist/client/{checkout-Du5amDR_.mjs → checkout-CUvRZA3W.mjs} +3 -3
- package/dist/client/client.mjs +963 -866
- package/dist/client/{context-eW97E945.mjs → context-DFmaZa-Q.mjs} +1 -1
- package/dist/client/{dates-jPCirRea.mjs → dates-BBep1JnF.mjs} +2 -2
- package/dist/client/{eventCalendar-C2M-iE4j.mjs → eventCalendar-zEobhxo4.mjs} +9 -9
- package/dist/client/{eventCombined-W6ns3LHg.mjs → eventCombined-Dp7bz5k-.mjs} +4 -4
- package/dist/client/{eventDetails-CR-GT0f0.mjs → eventDetails-FE-zqTt7.mjs} +4 -4
- package/dist/client/{eventListing-BK8AfYZz.mjs → eventListing-BMt5snal.mjs} +4 -4
- package/dist/client/{eventRegistration-BJSd4KUu.mjs → eventRegistration-O6ZxHfOb.mjs} +67 -342
- package/dist/client/{form-BvpfbQaT.mjs → form-DFa1D8vt.mjs} +3 -3
- package/dist/client/{headerSection-I5sUQ8x-.mjs → headerSection-CmjHLR-N.mjs} +3 -3
- package/dist/client/hooks.mjs +160 -129
- package/dist/client/{locationMap-BLvwf9_f.mjs → locationMap-BXKP_lGh.mjs} +3 -3
- package/dist/client/{newsletterForm-DrQ2weE8.mjs → newsletterForm-CU-HmxGx.mjs} +3 -3
- package/dist/client/{pricing-BES87mrR.mjs → pricing-KEAEsibq.mjs} +1 -1
- package/dist/client/{productDetail-Url9jcc5.mjs → productDetail-Ckp7MGnt.mjs} +3 -3
- package/dist/client/{productList-DE7ngEZJ.mjs → productList-D91V0sYa.mjs} +3 -3
- package/dist/client/{propsDecoder-D1OtGXDV.mjs → propsDecoder-DZd6RJeA.mjs} +155 -77
- package/dist/client/rendering/client.mjs +3356 -3192
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +956 -841
- package/dist/client/{routeIslandApiConfig-BG9Y-SHg.mjs → routeIslandApiConfig-E1EkhhYY.mjs} +1 -1
- package/dist/client/{shop-CJkuySJ3.mjs → shop-4F2jLQPI.mjs} +12 -13
- package/dist/client/{shop-commerce-4rKj5n9h.mjs → shop-commerce-BbfCJjB3.mjs} +6 -6
- package/dist/client/{shop-commerce-store-Bxm75Pg6.mjs → shop-commerce-store-vicweP2K.mjs} +1 -1
- package/dist/client/{shopShared-DpoQDWfz.mjs → shopShared-DlONJt0T.mjs} +4 -4
- package/dist/client/{useEventFilters-D8HliSqR.mjs → useEventFilters-COYyL3m7.mjs} +6 -6
- package/dist/preview-next/before-render.mjs +15 -22
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/constants.mjs +5 -1
- package/dist/preview-next/index.mjs +5 -1
- package/dist/preview-next/keepAlive.mjs +149 -82
- package/dist/preview-next/middleware.mjs +15 -22
- package/dist/{previewAuthStore-BXXF3hhW.mjs → previewAuthStore-BBmV7UsW.mjs} +49 -29
- package/dist/{sdk-runtime-C2a05WjL.mjs → sdk-runtime-CwvFFjB-.mjs} +2 -2
- package/dist/{separator-CuNhBAhS.mjs → separator-ByL72zUT.mjs} +1 -1
- package/dist/server/components.mjs +167 -131
- package/dist/server/config-validation.mjs +160 -129
- package/dist/server/config.mjs +160 -129
- package/dist/server/data.mjs +160 -129
- package/dist/server/index.mjs +20 -27
- package/dist/server/next.mjs +174 -156
- package/dist/server/page-converter.mjs +145 -65
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +169 -131
- package/dist/server/rendering.mjs +167 -131
- package/dist/server/routing.mjs +165 -118
- package/dist/server/server.mjs +167 -154
- package/package.json +1 -1
- package/dist/_dts/api/src/bookingPaymentTermSchemas.d.ts +0 -123
- package/dist/_dts/commerce/src/purchase/checkoutPaymentTermPlanning.d.ts +0 -10
- package/dist/_dts/commerce/src/purchase/checkoutValidatedItemPlanning.d.ts +0 -55
- package/dist/_dts/commerce/src/purchase/orderInstalmentPayoff.d.ts +0 -24
|
@@ -8818,12 +8818,10 @@ export type Database = {
|
|
|
8818
8818
|
dated_offering_metadata: Json;
|
|
8819
8819
|
default_start_time: string;
|
|
8820
8820
|
duration_minutes: number;
|
|
8821
|
-
event_category_id: string | null;
|
|
8822
8821
|
exceptions_json: Json;
|
|
8823
8822
|
first_live_at: string | null;
|
|
8824
8823
|
form_id: string | null;
|
|
8825
8824
|
id: string;
|
|
8826
|
-
presentation_json: Json | null;
|
|
8827
8825
|
preset: string;
|
|
8828
8826
|
price_display: string | null;
|
|
8829
8827
|
recurrence_rule: string | null;
|
|
@@ -8848,12 +8846,10 @@ export type Database = {
|
|
|
8848
8846
|
dated_offering_metadata?: Json;
|
|
8849
8847
|
default_start_time?: string;
|
|
8850
8848
|
duration_minutes?: number;
|
|
8851
|
-
event_category_id?: string | null;
|
|
8852
8849
|
exceptions_json?: Json;
|
|
8853
8850
|
first_live_at?: string | null;
|
|
8854
8851
|
form_id?: string | null;
|
|
8855
8852
|
id?: string;
|
|
8856
|
-
presentation_json?: Json | null;
|
|
8857
8853
|
preset?: string;
|
|
8858
8854
|
price_display?: string | null;
|
|
8859
8855
|
recurrence_rule?: string | null;
|
|
@@ -8878,12 +8874,10 @@ export type Database = {
|
|
|
8878
8874
|
dated_offering_metadata?: Json;
|
|
8879
8875
|
default_start_time?: string;
|
|
8880
8876
|
duration_minutes?: number;
|
|
8881
|
-
event_category_id?: string | null;
|
|
8882
8877
|
exceptions_json?: Json;
|
|
8883
8878
|
first_live_at?: string | null;
|
|
8884
8879
|
form_id?: string | null;
|
|
8885
8880
|
id?: string;
|
|
8886
|
-
presentation_json?: Json | null;
|
|
8887
8881
|
preset?: string;
|
|
8888
8882
|
price_display?: string | null;
|
|
8889
8883
|
recurrence_rule?: string | null;
|
|
@@ -8900,13 +8894,6 @@ export type Database = {
|
|
|
8900
8894
|
waitlist_mode?: string;
|
|
8901
8895
|
};
|
|
8902
8896
|
Relationships: [
|
|
8903
|
-
{
|
|
8904
|
-
foreignKeyName: "event_series_event_category_id_fkey";
|
|
8905
|
-
columns: ["event_category_id"];
|
|
8906
|
-
isOneToOne: false;
|
|
8907
|
-
referencedRelation: "booking_event_categories";
|
|
8908
|
-
referencedColumns: ["id"];
|
|
8909
|
-
},
|
|
8910
8897
|
{
|
|
8911
8898
|
foreignKeyName: "event_series_form_id_fkey";
|
|
8912
8899
|
columns: ["form_id"];
|
|
@@ -8985,7 +8972,6 @@ export type Database = {
|
|
|
8985
8972
|
customer_id: string;
|
|
8986
8973
|
customer_name: string | null;
|
|
8987
8974
|
enrolled_at: string | null;
|
|
8988
|
-
event_description: Json | null;
|
|
8989
8975
|
event_path: string | null;
|
|
8990
8976
|
event_series_id: string | null;
|
|
8991
8977
|
event_title: string;
|
|
@@ -9011,7 +8997,6 @@ export type Database = {
|
|
|
9011
8997
|
customer_id: string;
|
|
9012
8998
|
customer_name?: string | null;
|
|
9013
8999
|
enrolled_at?: string | null;
|
|
9014
|
-
event_description?: Json | null;
|
|
9015
9000
|
event_path?: string | null;
|
|
9016
9001
|
event_series_id?: string | null;
|
|
9017
9002
|
event_title: string;
|
|
@@ -9037,7 +9022,6 @@ export type Database = {
|
|
|
9037
9022
|
customer_id?: string;
|
|
9038
9023
|
customer_name?: string | null;
|
|
9039
9024
|
enrolled_at?: string | null;
|
|
9040
|
-
event_description?: Json | null;
|
|
9041
9025
|
event_path?: string | null;
|
|
9042
9026
|
event_series_id?: string | null;
|
|
9043
9027
|
event_title?: string;
|
|
@@ -11863,7 +11847,6 @@ export type Database = {
|
|
|
11863
11847
|
id: string;
|
|
11864
11848
|
last_paid_at: string | null;
|
|
11865
11849
|
order_id: string;
|
|
11866
|
-
order_item_id: string;
|
|
11867
11850
|
overdue_admin_notification_scheduled_at: string | null;
|
|
11868
11851
|
overdue_detected_at: string | null;
|
|
11869
11852
|
paid_amount_cents: number;
|
|
@@ -11897,7 +11880,6 @@ export type Database = {
|
|
|
11897
11880
|
id?: string;
|
|
11898
11881
|
last_paid_at?: string | null;
|
|
11899
11882
|
order_id: string;
|
|
11900
|
-
order_item_id: string;
|
|
11901
11883
|
overdue_admin_notification_scheduled_at?: string | null;
|
|
11902
11884
|
overdue_detected_at?: string | null;
|
|
11903
11885
|
paid_amount_cents: number;
|
|
@@ -11931,7 +11913,6 @@ export type Database = {
|
|
|
11931
11913
|
id?: string;
|
|
11932
11914
|
last_paid_at?: string | null;
|
|
11933
11915
|
order_id?: string;
|
|
11934
|
-
order_item_id?: string;
|
|
11935
11916
|
overdue_admin_notification_scheduled_at?: string | null;
|
|
11936
11917
|
overdue_detected_at?: string | null;
|
|
11937
11918
|
paid_amount_cents?: number;
|
|
@@ -11969,13 +11950,6 @@ export type Database = {
|
|
|
11969
11950
|
referencedRelation: "orders";
|
|
11970
11951
|
referencedColumns: ["id"];
|
|
11971
11952
|
},
|
|
11972
|
-
{
|
|
11973
|
-
foreignKeyName: "order_flexible_balance_contracts_order_item_id_fkey";
|
|
11974
|
-
columns: ["order_item_id"];
|
|
11975
|
-
isOneToOne: true;
|
|
11976
|
-
referencedRelation: "order_items";
|
|
11977
|
-
referencedColumns: ["id"];
|
|
11978
|
-
},
|
|
11979
11953
|
{
|
|
11980
11954
|
foreignKeyName: "order_flexible_balance_contracts_site_id_fkey";
|
|
11981
11955
|
columns: ["site_id"];
|
|
@@ -12088,6 +12062,7 @@ export type Database = {
|
|
|
12088
12062
|
fulfillment_claim_token: string | null;
|
|
12089
12063
|
fulfillment_claimed_at: string | null;
|
|
12090
12064
|
id: string;
|
|
12065
|
+
inventory_restored_at: string | null;
|
|
12091
12066
|
kind: string;
|
|
12092
12067
|
metadata: Json;
|
|
12093
12068
|
net_total_cents: number | null;
|
|
@@ -12121,6 +12096,7 @@ export type Database = {
|
|
|
12121
12096
|
fulfillment_claim_token?: string | null;
|
|
12122
12097
|
fulfillment_claimed_at?: string | null;
|
|
12123
12098
|
id?: string;
|
|
12099
|
+
inventory_restored_at?: string | null;
|
|
12124
12100
|
kind: string;
|
|
12125
12101
|
metadata?: Json;
|
|
12126
12102
|
net_total_cents?: number | null;
|
|
@@ -12154,6 +12130,7 @@ export type Database = {
|
|
|
12154
12130
|
fulfillment_claim_token?: string | null;
|
|
12155
12131
|
fulfillment_claimed_at?: string | null;
|
|
12156
12132
|
id?: string;
|
|
12133
|
+
inventory_restored_at?: string | null;
|
|
12157
12134
|
kind?: string;
|
|
12158
12135
|
metadata?: Json;
|
|
12159
12136
|
net_total_cents?: number | null;
|
|
@@ -12341,6 +12318,10 @@ export type Database = {
|
|
|
12341
12318
|
};
|
|
12342
12319
|
order_payment_plans: {
|
|
12343
12320
|
Row: {
|
|
12321
|
+
collection_closure_requested_at: string | null;
|
|
12322
|
+
collection_setup_accepted_at: string | null;
|
|
12323
|
+
collection_setup_attempted_at: string | null;
|
|
12324
|
+
collection_setup_command: Json | null;
|
|
12344
12325
|
commission_reconcile_attempts: number;
|
|
12345
12326
|
commission_reconcile_available_at: string | null;
|
|
12346
12327
|
commission_reconcile_requested_at: string | null;
|
|
@@ -12351,7 +12332,6 @@ export type Database = {
|
|
|
12351
12332
|
initial_payment_cents: number;
|
|
12352
12333
|
kind: string;
|
|
12353
12334
|
order_id: string;
|
|
12354
|
-
order_item_id: string;
|
|
12355
12335
|
plan_definition: Json;
|
|
12356
12336
|
remaining_balance_cents: number;
|
|
12357
12337
|
site_id: string;
|
|
@@ -12366,6 +12346,10 @@ export type Database = {
|
|
|
12366
12346
|
updated_at: string;
|
|
12367
12347
|
};
|
|
12368
12348
|
Insert: {
|
|
12349
|
+
collection_closure_requested_at?: string | null;
|
|
12350
|
+
collection_setup_accepted_at?: string | null;
|
|
12351
|
+
collection_setup_attempted_at?: string | null;
|
|
12352
|
+
collection_setup_command?: Json | null;
|
|
12369
12353
|
commission_reconcile_attempts?: number;
|
|
12370
12354
|
commission_reconcile_available_at?: string | null;
|
|
12371
12355
|
commission_reconcile_requested_at?: string | null;
|
|
@@ -12376,7 +12360,6 @@ export type Database = {
|
|
|
12376
12360
|
initial_payment_cents: number;
|
|
12377
12361
|
kind: string;
|
|
12378
12362
|
order_id: string;
|
|
12379
|
-
order_item_id: string;
|
|
12380
12363
|
plan_definition: Json;
|
|
12381
12364
|
remaining_balance_cents: number;
|
|
12382
12365
|
site_id: string;
|
|
@@ -12391,6 +12374,10 @@ export type Database = {
|
|
|
12391
12374
|
updated_at?: string;
|
|
12392
12375
|
};
|
|
12393
12376
|
Update: {
|
|
12377
|
+
collection_closure_requested_at?: string | null;
|
|
12378
|
+
collection_setup_accepted_at?: string | null;
|
|
12379
|
+
collection_setup_attempted_at?: string | null;
|
|
12380
|
+
collection_setup_command?: Json | null;
|
|
12394
12381
|
commission_reconcile_attempts?: number;
|
|
12395
12382
|
commission_reconcile_available_at?: string | null;
|
|
12396
12383
|
commission_reconcile_requested_at?: string | null;
|
|
@@ -12401,7 +12388,6 @@ export type Database = {
|
|
|
12401
12388
|
initial_payment_cents?: number;
|
|
12402
12389
|
kind?: string;
|
|
12403
12390
|
order_id?: string;
|
|
12404
|
-
order_item_id?: string;
|
|
12405
12391
|
plan_definition?: Json;
|
|
12406
12392
|
remaining_balance_cents?: number;
|
|
12407
12393
|
site_id?: string;
|
|
@@ -12430,13 +12416,6 @@ export type Database = {
|
|
|
12430
12416
|
referencedRelation: "orders";
|
|
12431
12417
|
referencedColumns: ["id"];
|
|
12432
12418
|
},
|
|
12433
|
-
{
|
|
12434
|
-
foreignKeyName: "order_payment_plans_order_item_id_fkey";
|
|
12435
|
-
columns: ["order_item_id"];
|
|
12436
|
-
isOneToOne: true;
|
|
12437
|
-
referencedRelation: "order_items";
|
|
12438
|
-
referencedColumns: ["id"];
|
|
12439
|
-
},
|
|
12440
12419
|
{
|
|
12441
12420
|
foreignKeyName: "order_payment_plans_site_id_fkey";
|
|
12442
12421
|
columns: ["site_id"];
|
|
@@ -12622,6 +12601,7 @@ export type Database = {
|
|
|
12622
12601
|
Row: {
|
|
12623
12602
|
amount_refunded_cents: number;
|
|
12624
12603
|
amount_requested_cents: number;
|
|
12604
|
+
booking_refund_command: Json | null;
|
|
12625
12605
|
cash_conversion_reserved_cents: number;
|
|
12626
12606
|
created_at: string;
|
|
12627
12607
|
currency: string;
|
|
@@ -12654,6 +12634,7 @@ export type Database = {
|
|
|
12654
12634
|
Insert: {
|
|
12655
12635
|
amount_refunded_cents: number;
|
|
12656
12636
|
amount_requested_cents: number;
|
|
12637
|
+
booking_refund_command?: Json | null;
|
|
12657
12638
|
cash_conversion_reserved_cents?: number;
|
|
12658
12639
|
created_at?: string;
|
|
12659
12640
|
currency: string;
|
|
@@ -12686,6 +12667,7 @@ export type Database = {
|
|
|
12686
12667
|
Update: {
|
|
12687
12668
|
amount_refunded_cents?: number;
|
|
12688
12669
|
amount_requested_cents?: number;
|
|
12670
|
+
booking_refund_command?: Json | null;
|
|
12689
12671
|
cash_conversion_reserved_cents?: number;
|
|
12690
12672
|
created_at?: string;
|
|
12691
12673
|
currency?: string;
|
|
@@ -12746,6 +12728,61 @@ export type Database = {
|
|
|
12746
12728
|
}
|
|
12747
12729
|
];
|
|
12748
12730
|
};
|
|
12731
|
+
order_retirements: {
|
|
12732
|
+
Row: {
|
|
12733
|
+
completed_at: string | null;
|
|
12734
|
+
created_at: string;
|
|
12735
|
+
effects_ready_at: string | null;
|
|
12736
|
+
id: string;
|
|
12737
|
+
intent: Json;
|
|
12738
|
+
notification: Json | null;
|
|
12739
|
+
order_id: string;
|
|
12740
|
+
site_id: string;
|
|
12741
|
+
};
|
|
12742
|
+
Insert: {
|
|
12743
|
+
completed_at?: string | null;
|
|
12744
|
+
created_at?: string;
|
|
12745
|
+
effects_ready_at?: string | null;
|
|
12746
|
+
id?: string;
|
|
12747
|
+
intent: Json;
|
|
12748
|
+
notification?: Json | null;
|
|
12749
|
+
order_id: string;
|
|
12750
|
+
site_id: string;
|
|
12751
|
+
};
|
|
12752
|
+
Update: {
|
|
12753
|
+
completed_at?: string | null;
|
|
12754
|
+
created_at?: string;
|
|
12755
|
+
effects_ready_at?: string | null;
|
|
12756
|
+
id?: string;
|
|
12757
|
+
intent?: Json;
|
|
12758
|
+
notification?: Json | null;
|
|
12759
|
+
order_id?: string;
|
|
12760
|
+
site_id?: string;
|
|
12761
|
+
};
|
|
12762
|
+
Relationships: [
|
|
12763
|
+
{
|
|
12764
|
+
foreignKeyName: "order_retirements_order_id_fkey";
|
|
12765
|
+
columns: ["order_id"];
|
|
12766
|
+
isOneToOne: false;
|
|
12767
|
+
referencedRelation: "orders";
|
|
12768
|
+
referencedColumns: ["id"];
|
|
12769
|
+
},
|
|
12770
|
+
{
|
|
12771
|
+
foreignKeyName: "order_retirements_order_site_fk";
|
|
12772
|
+
columns: ["order_id", "site_id"];
|
|
12773
|
+
isOneToOne: false;
|
|
12774
|
+
referencedRelation: "orders";
|
|
12775
|
+
referencedColumns: ["id", "site_id"];
|
|
12776
|
+
},
|
|
12777
|
+
{
|
|
12778
|
+
foreignKeyName: "order_retirements_site_id_fkey";
|
|
12779
|
+
columns: ["site_id"];
|
|
12780
|
+
isOneToOne: false;
|
|
12781
|
+
referencedRelation: "sites";
|
|
12782
|
+
referencedColumns: ["id"];
|
|
12783
|
+
}
|
|
12784
|
+
];
|
|
12785
|
+
};
|
|
12749
12786
|
order_sequences: {
|
|
12750
12787
|
Row: {
|
|
12751
12788
|
last_seq: number;
|
|
@@ -18050,6 +18087,13 @@ export type Database = {
|
|
|
18050
18087
|
isSetofReturn: false;
|
|
18051
18088
|
};
|
|
18052
18089
|
};
|
|
18090
|
+
accept_order_retirement: {
|
|
18091
|
+
Args: {
|
|
18092
|
+
p_command: string;
|
|
18093
|
+
p_order_id: string;
|
|
18094
|
+
};
|
|
18095
|
+
Returns: string;
|
|
18096
|
+
};
|
|
18053
18097
|
accept_site_invitation: {
|
|
18054
18098
|
Args: {
|
|
18055
18099
|
p_invitation_id: string;
|
|
@@ -18075,6 +18119,17 @@ export type Database = {
|
|
|
18075
18119
|
isSetofReturn: false;
|
|
18076
18120
|
};
|
|
18077
18121
|
};
|
|
18122
|
+
accept_staff_order_cancellation: {
|
|
18123
|
+
Args: {
|
|
18124
|
+
p_actor_id: string;
|
|
18125
|
+
p_category?: string;
|
|
18126
|
+
p_internal_note?: string;
|
|
18127
|
+
p_item_ids?: string[];
|
|
18128
|
+
p_order_id: string;
|
|
18129
|
+
p_site_id: string;
|
|
18130
|
+
};
|
|
18131
|
+
Returns: Json;
|
|
18132
|
+
};
|
|
18078
18133
|
acquire_demo_lifecycle_job_lease: {
|
|
18079
18134
|
Args: {
|
|
18080
18135
|
p_job_name: string;
|
|
@@ -18117,6 +18172,47 @@ export type Database = {
|
|
|
18117
18172
|
};
|
|
18118
18173
|
Returns: number;
|
|
18119
18174
|
};
|
|
18175
|
+
admit_order_payment_plan_collection_setup: {
|
|
18176
|
+
Args: {
|
|
18177
|
+
p_command: Json;
|
|
18178
|
+
p_plan_id: string;
|
|
18179
|
+
p_start_attempt?: boolean;
|
|
18180
|
+
};
|
|
18181
|
+
Returns: {
|
|
18182
|
+
collection_closure_requested_at: string | null;
|
|
18183
|
+
collection_setup_accepted_at: string | null;
|
|
18184
|
+
collection_setup_attempted_at: string | null;
|
|
18185
|
+
collection_setup_command: Json | null;
|
|
18186
|
+
commission_reconcile_attempts: number;
|
|
18187
|
+
commission_reconcile_available_at: string | null;
|
|
18188
|
+
commission_reconcile_requested_at: string | null;
|
|
18189
|
+
created_at: string;
|
|
18190
|
+
currency: string;
|
|
18191
|
+
customer_id: string;
|
|
18192
|
+
id: string;
|
|
18193
|
+
initial_payment_cents: number;
|
|
18194
|
+
kind: string;
|
|
18195
|
+
order_id: string;
|
|
18196
|
+
plan_definition: Json;
|
|
18197
|
+
remaining_balance_cents: number;
|
|
18198
|
+
site_id: string;
|
|
18199
|
+
status: string;
|
|
18200
|
+
stripe_account_id: string;
|
|
18201
|
+
stripe_checkout_session_id: string | null;
|
|
18202
|
+
stripe_customer_id: string | null;
|
|
18203
|
+
stripe_default_payment_method_id: string | null;
|
|
18204
|
+
stripe_subscription_id: string | null;
|
|
18205
|
+
stripe_subscription_schedule_id: string | null;
|
|
18206
|
+
total_cents: number;
|
|
18207
|
+
updated_at: string;
|
|
18208
|
+
}[];
|
|
18209
|
+
SetofOptions: {
|
|
18210
|
+
from: "*";
|
|
18211
|
+
to: "order_payment_plans";
|
|
18212
|
+
isOneToOne: false;
|
|
18213
|
+
isSetofReturn: true;
|
|
18214
|
+
};
|
|
18215
|
+
};
|
|
18120
18216
|
allocate_site_order_number_v1: {
|
|
18121
18217
|
Args: {
|
|
18122
18218
|
p_prefix: string;
|
|
@@ -18907,6 +19003,17 @@ export type Database = {
|
|
|
18907
19003
|
};
|
|
18908
19004
|
Returns: number;
|
|
18909
19005
|
};
|
|
19006
|
+
close_order_instalments_atomic: {
|
|
19007
|
+
Args: {
|
|
19008
|
+
p_expected_balance: number;
|
|
19009
|
+
p_expected_status: string;
|
|
19010
|
+
p_instalments: Json;
|
|
19011
|
+
p_next_balance: number;
|
|
19012
|
+
p_next_status: string;
|
|
19013
|
+
p_plan_id: string;
|
|
19014
|
+
};
|
|
19015
|
+
Returns: string;
|
|
19016
|
+
};
|
|
18910
19017
|
commit_authoritative_page_surface_draft_version: {
|
|
18911
19018
|
Args: {
|
|
18912
19019
|
p_data: Json;
|
|
@@ -19167,6 +19274,12 @@ export type Database = {
|
|
|
19167
19274
|
locked_until: string;
|
|
19168
19275
|
}[];
|
|
19169
19276
|
};
|
|
19277
|
+
complete_order_retirement: {
|
|
19278
|
+
Args: {
|
|
19279
|
+
p_operation_id: string;
|
|
19280
|
+
};
|
|
19281
|
+
Returns: boolean;
|
|
19282
|
+
};
|
|
19170
19283
|
connect_brevo_account_v1: {
|
|
19171
19284
|
Args: {
|
|
19172
19285
|
p_account_email: string;
|
|
@@ -19674,6 +19787,7 @@ export type Database = {
|
|
|
19674
19787
|
p_expected_site_id: string;
|
|
19675
19788
|
p_node_id: string;
|
|
19676
19789
|
p_node_type: Database["public"]["Enums"]["route_node_type"];
|
|
19790
|
+
p_previous_client_id?: string;
|
|
19677
19791
|
p_ttl_seconds: number;
|
|
19678
19792
|
};
|
|
19679
19793
|
Returns: Json;
|
|
@@ -20093,6 +20207,16 @@ export type Database = {
|
|
|
20093
20207
|
};
|
|
20094
20208
|
Returns: string;
|
|
20095
20209
|
};
|
|
20210
|
+
guard_site_stripe_account_change: {
|
|
20211
|
+
Args: {
|
|
20212
|
+
p_account_email?: string;
|
|
20213
|
+
p_action: string;
|
|
20214
|
+
p_expected_account_id?: string;
|
|
20215
|
+
p_new_account_id?: string;
|
|
20216
|
+
p_site_id: string;
|
|
20217
|
+
};
|
|
20218
|
+
Returns: string;
|
|
20219
|
+
};
|
|
20096
20220
|
has_admin_role: {
|
|
20097
20221
|
Args: {
|
|
20098
20222
|
required_role: Database["public"]["Enums"]["admin_role"];
|
|
@@ -20178,6 +20302,48 @@ export type Database = {
|
|
|
20178
20302
|
waitlist_entry_id: string;
|
|
20179
20303
|
}[];
|
|
20180
20304
|
};
|
|
20305
|
+
link_order_payment_plan_collection_schedule: {
|
|
20306
|
+
Args: {
|
|
20307
|
+
p_customer_id: string;
|
|
20308
|
+
p_payment_method_id: string;
|
|
20309
|
+
p_plan_id: string;
|
|
20310
|
+
p_schedule_id: string;
|
|
20311
|
+
};
|
|
20312
|
+
Returns: {
|
|
20313
|
+
collection_closure_requested_at: string | null;
|
|
20314
|
+
collection_setup_accepted_at: string | null;
|
|
20315
|
+
collection_setup_attempted_at: string | null;
|
|
20316
|
+
collection_setup_command: Json | null;
|
|
20317
|
+
commission_reconcile_attempts: number;
|
|
20318
|
+
commission_reconcile_available_at: string | null;
|
|
20319
|
+
commission_reconcile_requested_at: string | null;
|
|
20320
|
+
created_at: string;
|
|
20321
|
+
currency: string;
|
|
20322
|
+
customer_id: string;
|
|
20323
|
+
id: string;
|
|
20324
|
+
initial_payment_cents: number;
|
|
20325
|
+
kind: string;
|
|
20326
|
+
order_id: string;
|
|
20327
|
+
plan_definition: Json;
|
|
20328
|
+
remaining_balance_cents: number;
|
|
20329
|
+
site_id: string;
|
|
20330
|
+
status: string;
|
|
20331
|
+
stripe_account_id: string;
|
|
20332
|
+
stripe_checkout_session_id: string | null;
|
|
20333
|
+
stripe_customer_id: string | null;
|
|
20334
|
+
stripe_default_payment_method_id: string | null;
|
|
20335
|
+
stripe_subscription_id: string | null;
|
|
20336
|
+
stripe_subscription_schedule_id: string | null;
|
|
20337
|
+
total_cents: number;
|
|
20338
|
+
updated_at: string;
|
|
20339
|
+
}[];
|
|
20340
|
+
SetofOptions: {
|
|
20341
|
+
from: "*";
|
|
20342
|
+
to: "order_payment_plans";
|
|
20343
|
+
isOneToOne: false;
|
|
20344
|
+
isSetofReturn: true;
|
|
20345
|
+
};
|
|
20346
|
+
};
|
|
20181
20347
|
list_booking_people: {
|
|
20182
20348
|
Args: {
|
|
20183
20349
|
p_direction: string;
|
|
@@ -20317,6 +20483,15 @@ export type Database = {
|
|
|
20317
20483
|
included: number;
|
|
20318
20484
|
}[];
|
|
20319
20485
|
};
|
|
20486
|
+
membership_checkout_unresolved: {
|
|
20487
|
+
Args: {
|
|
20488
|
+
p_created_at: string;
|
|
20489
|
+
p_item_fulfilled_at: string;
|
|
20490
|
+
p_status: string;
|
|
20491
|
+
p_stripe_checkout_session_id: string;
|
|
20492
|
+
};
|
|
20493
|
+
Returns: boolean;
|
|
20494
|
+
};
|
|
20320
20495
|
minimize_mailing_list_signup_consent_metadata_v1: {
|
|
20321
20496
|
Args: {
|
|
20322
20497
|
p_consent_id: string;
|
|
@@ -20915,6 +21090,46 @@ export type Database = {
|
|
|
20915
21090
|
};
|
|
20916
21091
|
Returns: Json;
|
|
20917
21092
|
};
|
|
21093
|
+
remember_order_payment_plan_collection_schedule: {
|
|
21094
|
+
Args: {
|
|
21095
|
+
p_plan_id: string;
|
|
21096
|
+
p_schedule_id: string;
|
|
21097
|
+
};
|
|
21098
|
+
Returns: {
|
|
21099
|
+
collection_closure_requested_at: string | null;
|
|
21100
|
+
collection_setup_accepted_at: string | null;
|
|
21101
|
+
collection_setup_attempted_at: string | null;
|
|
21102
|
+
collection_setup_command: Json | null;
|
|
21103
|
+
commission_reconcile_attempts: number;
|
|
21104
|
+
commission_reconcile_available_at: string | null;
|
|
21105
|
+
commission_reconcile_requested_at: string | null;
|
|
21106
|
+
created_at: string;
|
|
21107
|
+
currency: string;
|
|
21108
|
+
customer_id: string;
|
|
21109
|
+
id: string;
|
|
21110
|
+
initial_payment_cents: number;
|
|
21111
|
+
kind: string;
|
|
21112
|
+
order_id: string;
|
|
21113
|
+
plan_definition: Json;
|
|
21114
|
+
remaining_balance_cents: number;
|
|
21115
|
+
site_id: string;
|
|
21116
|
+
status: string;
|
|
21117
|
+
stripe_account_id: string;
|
|
21118
|
+
stripe_checkout_session_id: string | null;
|
|
21119
|
+
stripe_customer_id: string | null;
|
|
21120
|
+
stripe_default_payment_method_id: string | null;
|
|
21121
|
+
stripe_subscription_id: string | null;
|
|
21122
|
+
stripe_subscription_schedule_id: string | null;
|
|
21123
|
+
total_cents: number;
|
|
21124
|
+
updated_at: string;
|
|
21125
|
+
}[];
|
|
21126
|
+
SetofOptions: {
|
|
21127
|
+
from: "*";
|
|
21128
|
+
to: "order_payment_plans";
|
|
21129
|
+
isOneToOne: false;
|
|
21130
|
+
isSetofReturn: true;
|
|
21131
|
+
};
|
|
21132
|
+
};
|
|
20918
21133
|
remove_category_from_memberships: {
|
|
20919
21134
|
Args: {
|
|
20920
21135
|
category_id: string;
|
|
@@ -21028,6 +21243,45 @@ export type Database = {
|
|
|
21028
21243
|
};
|
|
21029
21244
|
Returns: undefined;
|
|
21030
21245
|
};
|
|
21246
|
+
request_order_payment_plan_collection_closure: {
|
|
21247
|
+
Args: {
|
|
21248
|
+
p_plan_id: string;
|
|
21249
|
+
};
|
|
21250
|
+
Returns: {
|
|
21251
|
+
collection_closure_requested_at: string | null;
|
|
21252
|
+
collection_setup_accepted_at: string | null;
|
|
21253
|
+
collection_setup_attempted_at: string | null;
|
|
21254
|
+
collection_setup_command: Json | null;
|
|
21255
|
+
commission_reconcile_attempts: number;
|
|
21256
|
+
commission_reconcile_available_at: string | null;
|
|
21257
|
+
commission_reconcile_requested_at: string | null;
|
|
21258
|
+
created_at: string;
|
|
21259
|
+
currency: string;
|
|
21260
|
+
customer_id: string;
|
|
21261
|
+
id: string;
|
|
21262
|
+
initial_payment_cents: number;
|
|
21263
|
+
kind: string;
|
|
21264
|
+
order_id: string;
|
|
21265
|
+
plan_definition: Json;
|
|
21266
|
+
remaining_balance_cents: number;
|
|
21267
|
+
site_id: string;
|
|
21268
|
+
status: string;
|
|
21269
|
+
stripe_account_id: string;
|
|
21270
|
+
stripe_checkout_session_id: string | null;
|
|
21271
|
+
stripe_customer_id: string | null;
|
|
21272
|
+
stripe_default_payment_method_id: string | null;
|
|
21273
|
+
stripe_subscription_id: string | null;
|
|
21274
|
+
stripe_subscription_schedule_id: string | null;
|
|
21275
|
+
total_cents: number;
|
|
21276
|
+
updated_at: string;
|
|
21277
|
+
}[];
|
|
21278
|
+
SetofOptions: {
|
|
21279
|
+
from: "*";
|
|
21280
|
+
to: "order_payment_plans";
|
|
21281
|
+
isOneToOne: false;
|
|
21282
|
+
isSetofReturn: true;
|
|
21283
|
+
};
|
|
21284
|
+
};
|
|
21031
21285
|
reschedule_appointment_for_actor: {
|
|
21032
21286
|
Args: {
|
|
21033
21287
|
p_appointment_id: string;
|
|
@@ -21111,6 +21365,13 @@ export type Database = {
|
|
|
21111
21365
|
};
|
|
21112
21366
|
Returns: boolean;
|
|
21113
21367
|
};
|
|
21368
|
+
restore_cancelled_order_item_inventory_atomic: {
|
|
21369
|
+
Args: {
|
|
21370
|
+
p_order_item_id: string;
|
|
21371
|
+
p_site_id: string;
|
|
21372
|
+
};
|
|
21373
|
+
Returns: undefined;
|
|
21374
|
+
};
|
|
21114
21375
|
restore_course_run_session_v1: {
|
|
21115
21376
|
Args: {
|
|
21116
21377
|
p_actor_user_id: string;
|
|
@@ -6,6 +6,8 @@ export type MediaPickerDialogProps = {
|
|
|
6
6
|
onOpenChange: (open: boolean) => void;
|
|
7
7
|
assets: MediaAssetWithLabels[];
|
|
8
8
|
loading: boolean;
|
|
9
|
+
error?: Error | null;
|
|
10
|
+
retryLoad?: () => void;
|
|
9
11
|
hasMore: boolean;
|
|
10
12
|
selectAsset: (asset: MediaAssetWithLabels) => void;
|
|
11
13
|
loadMore: () => void;
|
|
@@ -33,4 +35,4 @@ export type MediaPickerAssetSelection = Readonly<{
|
|
|
33
35
|
tag: 'disabled';
|
|
34
36
|
reason: string;
|
|
35
37
|
}>;
|
|
36
|
-
export declare const MediaPickerDialog: ({ allowedKinds, open, onOpenChange, assets, loading, hasMore, selectAsset, loadMore, enqueueUploads, uploads, closeOnSelect, disableSelection, statusMessage, statusTone, title, dialogMaxWidth, uploadButtonLabel, uploadAccept, showCameraInput, policy, }: MediaPickerDialogProps) => import("react").JSX.Element;
|
|
38
|
+
export declare const MediaPickerDialog: ({ allowedKinds, open, onOpenChange, assets, loading, error, retryLoad, hasMore, selectAsset, loadMore, enqueueUploads, uploads, closeOnSelect, disableSelection, statusMessage, statusTone, title, dialogMaxWidth, uploadButtonLabel, uploadAccept, showCameraInput, policy, }: MediaPickerDialogProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { MediaPickerMiniRenderProps } from '../../media-react/src/index';
|
|
3
|
+
import { type MediaPickerDialogProps } from './MediaPickerDialog';
|
|
4
|
+
type LibraryDialogKeys = 'open' | 'onOpenChange' | 'assets' | 'loading' | 'error' | 'retryLoad' | 'hasMore' | 'selectAsset' | 'loadMore' | 'enqueueUploads' | 'uploads';
|
|
5
|
+
export type MediaPickerMiniDialogProps = Omit<MediaPickerDialogProps, LibraryDialogKeys> & {
|
|
6
|
+
picker: MediaPickerMiniRenderProps;
|
|
7
|
+
component?: ComponentType<MediaPickerDialogProps>;
|
|
8
|
+
};
|
|
9
|
+
export declare function MediaPickerMiniDialog({ picker, component: DialogComponent, ...props }: MediaPickerMiniDialogProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { MediaEditor } from './MediaEditor';
|
|
2
2
|
export type { MediaEditorProps } from './MediaEditor';
|
|
3
3
|
export { MediaPickerDialog } from './MediaPickerDialog';
|
|
4
|
+
export { MediaPickerMiniDialog } from './MediaPickerMiniDialog';
|
|
5
|
+
export type { MediaPickerMiniDialogProps } from './MediaPickerMiniDialog';
|
|
4
6
|
export type { MediaPickerAssetSelection, MediaPickerDialogProps, MediaPickerPolicy, } from './MediaPickerDialog';
|
|
5
7
|
export { FileAssetPreview, classifyMimeForPreview } from './FileAssetPreview';
|
|
6
8
|
export { CropDialog } from './CropDialog';
|
|
@@ -62,7 +62,6 @@ type PreviewEntryControllerProviderProps = {
|
|
|
62
62
|
*/
|
|
63
63
|
export type PreviewLiveDrafts = Readonly<{
|
|
64
64
|
client: LiveDraftsClient;
|
|
65
|
-
previewToken: string;
|
|
66
65
|
refreshBaselines: () => void;
|
|
67
66
|
}>;
|
|
68
67
|
export declare function PreviewEntryControllerProvider({ children, siteId, pageId, pageNodeType, routeId: providedRouteId, entryData, contentTypeSchema, initialStatus, initialBlocks, blockFieldExtensions, pageMetadata, apiClient, subscribeToLeaseChanges, onLeaseGranted, liveDrafts, }: PreviewEntryControllerProviderProps): React.JSX.Element;
|
|
@@ -33,7 +33,7 @@ type PreviewShellCommonProps = {
|
|
|
33
33
|
subscribeToLeaseChanges?: EditLeaseChangeSubscription;
|
|
34
34
|
onLeaseGranted?: () => void;
|
|
35
35
|
/** Live drafts between tabs; the host supplies a Supabase client dedicated to the preview token. */
|
|
36
|
-
liveDrafts?:
|
|
36
|
+
liveDrafts?: PreviewLiveDrafts | null;
|
|
37
37
|
previewSession: PreviewRuntimeSession | null;
|
|
38
38
|
previewToken: string;
|
|
39
39
|
dashboardBaseUrl?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ApiClient } from "../../../api/src/request";
|
|
1
2
|
import { type PreviewRuntimeSession, type PreviewSessionAuthMode } from "../auth-contract";
|
|
2
3
|
export type PreviewAuthState = "ok" | "expired";
|
|
3
4
|
export type PreviewAuthFailureSource = "keep-alive" | "inline-save" | "publish" | "block-editor" | "metadata" | "draft-action" | "query" | "unknown";
|
|
@@ -22,6 +23,8 @@ export declare function usePreviewAuth(): PreviewAuthSnapshot;
|
|
|
22
23
|
* Returns null if no token is available (falls back to proxy).
|
|
23
24
|
*/
|
|
24
25
|
export declare function usePreviewToken(): string | null;
|
|
26
|
+
export declare function getPreviewAccessToken(): string;
|
|
27
|
+
export declare function setPreviewAccessToken(token: string): void;
|
|
25
28
|
type PreviewAuthInitInput = {
|
|
26
29
|
siteId: string;
|
|
27
30
|
siteSlug: string;
|
|
@@ -38,5 +41,9 @@ export declare function initPreviewAuth(input: PreviewAuthInitInput): void;
|
|
|
38
41
|
export declare function __getPreviewAuthStateForTests(): Readonly<PreviewAuthSnapshot>;
|
|
39
42
|
export declare function __resetPreviewAuthStateForTests(): void;
|
|
40
43
|
export declare function markPreviewAuthExpired(source: PreviewAuthFailureSource): void;
|
|
44
|
+
/** Handle bearer 401s at the request boundary, including calls outside the query cache. */
|
|
45
|
+
export declare function createGuardedPreviewApiClient(baseUrl: string): ApiClient;
|
|
46
|
+
/** Query callbacks receive the same error after the request guard has decided auth state. */
|
|
47
|
+
export declare function wasPreviewApiAuthErrorHandled(error: unknown): boolean;
|
|
41
48
|
export declare function usePreviewAuthFetch(baseFetch: BaseFetch): PreviewAuthFetch;
|
|
42
49
|
export {};
|
|
@@ -3,3 +3,7 @@ export declare const PREVIEW_REFRESH_COOKIE_NAME = "preview_refresh_token";
|
|
|
3
3
|
export declare const PREVIEW_COOKIE_MAX_AGE: number;
|
|
4
4
|
export declare const PREVIEW_CODE_PARAM = "preview_code";
|
|
5
5
|
export declare const PREVIEW_THEME_COOKIE_NAME = "preview_theme_id";
|
|
6
|
+
export declare const PREVIEW_KEEP_ALIVE_INTERVAL_MS: number;
|
|
7
|
+
export declare const PREVIEW_KEEP_ALIVE_JITTER_RATIO = 0.1;
|
|
8
|
+
export declare const PREVIEW_KEEP_ALIVE_MAX_INTERVAL_MS: number;
|
|
9
|
+
export declare const PREVIEW_REFRESH_THRESHOLD_SECONDS: number;
|