@riverbankcms/sdk 0.142.0 → 0.143.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.
Files changed (90) hide show
  1. package/dist/{PreviewEditorSidebar-Dk6Dt11f.mjs → PreviewEditorSidebar-DROGfMKi.mjs} +4 -4
  2. package/dist/{PreviewEditorUI-D6EQTsCA.mjs → PreviewEditorUI-BaRjhFu-.mjs} +3 -3
  3. package/dist/{PreviewQueryProvider-CC-EPkyQ.mjs → PreviewQueryProvider-BCYICImX.mjs} +1 -1
  4. package/dist/{SdkPreviewModeRuntime-DH1n4ytY.mjs → SdkPreviewModeRuntime-OIABYLES.mjs} +5 -5
  5. package/dist/{SiteChromeCustomizeContext-DunIzY0K.mjs → SiteChromeCustomizeContext-ohjTvZbc.mjs} +491 -525
  6. package/dist/_dts/api/src/endpoints.d.ts +7 -0
  7. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
  8. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +48 -41
  9. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -1
  10. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
  11. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +95 -35
  12. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentStatusStep.d.ts +10 -0
  13. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +0 -2
  14. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +12 -1
  15. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +2 -2
  16. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +1 -4
  17. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +12 -0
  18. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -1
  19. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +1 -0
  20. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +4 -5
  21. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +9 -11
  22. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +56 -2
  23. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +10 -4
  24. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +23 -0
  25. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +1 -1
  26. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -4
  27. package/dist/_dts/commerce/src/purchase/eventCheckoutRecoveryWindow.d.ts +8 -0
  28. package/dist/_dts/commerce/src/purchase/index.d.ts +2 -1
  29. package/dist/_dts/commerce/src/purchase/stateTransitions.d.ts +1 -13
  30. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +3113 -3077
  31. package/dist/_dts/sdk/src/version.d.ts +1 -1
  32. package/dist/client/{BookingConsentAgreement-CnJeq3_r.mjs → BookingConsentAgreement-BoCtvzzu.mjs} +2 -2
  33. package/dist/client/{DiscountCodeDisclosure-BINEO6J9.mjs → DiscountCodeDisclosure-B5S30nZk.mjs} +1 -1
  34. package/dist/client/{EventCombined.client-srxNQ6sZ.mjs → EventCombined.client-CeZ2-zSt.mjs} +5 -5
  35. package/dist/client/{EventListing.client-DbyVyGkX.mjs → EventListing.client-DJN3j8B3.mjs} +2 -2
  36. package/dist/client/{LeafletStaticMap-B-wpijzL.mjs → LeafletStaticMap-RjtGzDQT.mjs} +1 -1
  37. package/dist/client/{accordion-B-iUXU7n.mjs → accordion-DOmnDoyg.mjs} +1 -1
  38. package/dist/client/{bookingForm-BXYPke5q.mjs → bookingForm-C0vk7pgS.mjs} +5 -5
  39. package/dist/client/bookings.mjs +449 -525
  40. package/dist/client/{carousel-Cr4aj63H.mjs → carousel-BZJ7pno3.mjs} +1 -1
  41. package/dist/client/{cart-DibP9WWa.mjs → cart-CaeVAHJl.mjs} +3 -3
  42. package/dist/client/{checkout-CrSBVnL8.mjs → checkout-7wmoNDtG.mjs} +3 -3
  43. package/dist/client/client.mjs +518 -540
  44. package/dist/client/{context-Ces-AgdR.mjs → context-BOimxE3U.mjs} +12 -1
  45. package/dist/client/{dates-BXyNeNhB.mjs → dates-BnzVksi4.mjs} +2 -2
  46. package/dist/client/{eventCalendar-HwpPeqrH.mjs → eventCalendar-l-fpaslC.mjs} +7 -7
  47. package/dist/client/{eventCombined-BpFUkuEI.mjs → eventCombined-DGGvssK6.mjs} +3 -3
  48. package/dist/client/{eventDetails-DK_agiWy.mjs → eventDetails-DRiCm_hL.mjs} +4 -4
  49. package/dist/client/{eventListing-DhzHqP1c.mjs → eventListing-dph8loYX.mjs} +3 -3
  50. package/dist/client/{eventRegistration-BdQ_Dn2d.mjs → eventRegistration-ClBohmbY.mjs} +472 -530
  51. package/dist/client/{form-B1frcuzy.mjs → form-BLVVAnd3.mjs} +2 -2
  52. package/dist/client/{headerSection-CT5z460s.mjs → headerSection-DHy4C8Ix.mjs} +2 -2
  53. package/dist/client/hooks.mjs +12 -0
  54. package/dist/client/{locationMap-CIQXB9i2.mjs → locationMap-6HuS28ck.mjs} +2 -2
  55. package/dist/client/{newsletterForm-BYNYZSes.mjs → newsletterForm-xOdcOhZP.mjs} +2 -2
  56. package/dist/client/{pricing-CbTlAsmt.mjs → pricing-ChinRYFt.mjs} +1 -1
  57. package/dist/client/{productDetail-CR7Z3yjS.mjs → productDetail-0chA5gbK.mjs} +3 -3
  58. package/dist/client/{productList-DXj00vzR.mjs → productList-OoINA0h1.mjs} +3 -3
  59. package/dist/client/{propsDecoder-DiLiBdek.mjs → propsDecoder-CIZ-hbIG.mjs} +14 -1
  60. package/dist/client/rendering/client.mjs +506 -539
  61. package/dist/client/rendering/islands.mjs +17 -17
  62. package/dist/client/rendering.mjs +517 -539
  63. package/dist/client/{scrollToBlock-CrcbBf0h.mjs → scrollToBlock-BPZl0gPZ.mjs} +1 -1
  64. package/dist/client/{shop-DgqiB_1b.mjs → shop-CLJFqNIq.mjs} +6 -6
  65. package/dist/client/{shop-commerce-D_J781in.mjs → shop-commerce-PpANg5wB.mjs} +5 -5
  66. package/dist/client/{shop-commerce-store-PGUbDwqe.mjs → shop-commerce-store-TA_Kz2ku.mjs} +1 -1
  67. package/dist/client/{shopShared-C_Bb2zwG.mjs → shopShared-DzcFcA5g.mjs} +3 -3
  68. package/dist/client/{useEventFilters-CM17Xpr1.mjs → useEventFilters-CFU21QZo.mjs} +5 -5
  69. package/dist/preview-next/before-render.mjs +11 -0
  70. package/dist/preview-next/client/runtime.mjs +4 -4
  71. package/dist/preview-next/keepAlive.mjs +11 -0
  72. package/dist/preview-next/middleware.mjs +11 -0
  73. package/dist/{previewAuthStore-oVttoRDO.mjs → previewAuthStore-JA6-I_sL.mjs} +11 -0
  74. package/dist/{sdk-runtime-DhmuRhIX.mjs → sdk-runtime-CDKl0Fr7.mjs} +2 -2
  75. package/dist/{separator-C3hlg9LH.mjs → separator-BTp96X32.mjs} +1 -1
  76. package/dist/server/components.mjs +12 -2
  77. package/dist/server/config-validation.mjs +12 -0
  78. package/dist/server/config.mjs +12 -0
  79. package/dist/server/data.mjs +12 -0
  80. package/dist/server/index.mjs +12 -1
  81. package/dist/server/next.mjs +13 -3
  82. package/dist/server/page-converter.mjs +1 -0
  83. package/dist/server/prebuild.mjs +1 -1
  84. package/dist/server/rendering/server.mjs +12 -0
  85. package/dist/server/rendering.mjs +12 -2
  86. package/dist/server/routing.mjs +12 -0
  87. package/dist/server/server.mjs +13 -1
  88. package/package.json +1 -1
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +0 -14
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +0 -8
@@ -1,9 +1,9 @@
1
1
  import type { EventRegistrationErrorAction } from '../../../../../../commerce/src/purchase/index';
2
2
  import type { BlockApiClient } from '../../api';
3
3
  import type { EventRegistrationStatusReference, PaymentMethod } from '../../api/types';
4
- import type { RegistrationTarget } from './registrationDerivations';
4
+ import { type RegistrationTarget } from './registrationDerivations';
5
5
  import { savePendingRegistration } from './sessionStorage';
6
- import type { EventTicketSelectionLine, FormData, Guest, PaymentSelection, RegistrationResult, RegistrationStep } from './types';
6
+ import type { EventTicketSelectionLine, FormData, Guest, PaymentSelection, PaymentStatusRecoveryState, RegistrationResult, RegistrationStep } from './types';
7
7
  export type EventRegistrationSubmitOptions = Readonly<{
8
8
  redirect?: 'auto' | 'manual';
9
9
  }>;
@@ -12,6 +12,11 @@ export type EventRegistrationSubmitResult = Readonly<{
12
12
  outcome: {
13
13
  kind: 'completed';
14
14
  };
15
+ }> | Readonly<{
16
+ ok: true;
17
+ outcome: {
18
+ kind: 'payment_status';
19
+ };
15
20
  }> | Readonly<{
16
21
  ok: true;
17
22
  outcome: {
@@ -25,6 +30,7 @@ export type EventRegistrationSubmitResult = Readonly<{
25
30
  }>;
26
31
  export type EventRegistrationSubmit = (method: PaymentMethod, passId?: string, membershipId?: string, selection?: PaymentSelection, submitOptions?: EventRegistrationSubmitOptions) => Promise<EventRegistrationSubmitResult>;
27
32
  export type UseEventRegistrationSubmitInput = {
33
+ commandRef: EventRegistrationCommandRef;
28
34
  api: BlockApiClient;
29
35
  registrationTarget: RegistrationTarget | null;
30
36
  selectedAttendanceMode: 'in_person' | 'online' | null;
@@ -42,6 +48,14 @@ export type UseEventRegistrationSubmitInput = {
42
48
  setErrorAction?: (action: EventRegistrationErrorAction) => void;
43
49
  setRegistrationResult: (result: RegistrationResult) => void;
44
50
  setErrorMessage: (message: string) => void;
51
+ setPaymentStatusRecovery: (state: PaymentStatusRecoveryState | null) => void;
52
+ };
53
+ /** Shared only with explicit start-again actions; uncertainty alone retains identity. */
54
+ export type EventRegistrationCommandRef = {
55
+ current: Readonly<{
56
+ id: string;
57
+ intentKey: string;
58
+ }> | null;
45
59
  };
46
60
  export type EventRegistrationSubmitDeps = Readonly<{
47
61
  savePendingRegistration: typeof savePendingRegistration;
@@ -57,5 +71,45 @@ type ClientCommandIdCryptoSource = Readonly<{
57
71
  }>;
58
72
  export declare function createClientCommandId(cryptoSource?: ClientCommandIdCryptoSource): string;
59
73
  export declare function useEventRegistrationSubmit(options: UseEventRegistrationSubmitInput): EventRegistrationSubmit;
74
+ /**
75
+ * Describe a completed registration to the success step.
76
+ *
77
+ * Only pass redemptions adopt the server's message: it names the credits spent
78
+ * and the balance left, which the block's copy cannot. Every other method keeps
79
+ * whatever success message the site configured.
80
+ */
60
81
  export declare function useEventRegistrationSubmitWithDeps(options: UseEventRegistrationSubmitInput, deps: EventRegistrationSubmitDeps): EventRegistrationSubmit;
82
+ type SelectionSnapshot = Exclude<PaymentSelection, Readonly<{
83
+ method: null;
84
+ }>>;
85
+ /**
86
+ * Freeze everything this submission is about to send, including the command
87
+ * identity the server keys the commit on.
88
+ */
89
+ declare function prepareSubmitContext(options: UseEventRegistrationSubmitInput, registrationCommandId: string, target: RegistrationTarget, method: PaymentMethod, passId: string | undefined, membershipId: string | undefined, selection: PaymentSelection | undefined): {
90
+ registrationCommandId: string;
91
+ ticketSelections: Readonly<{
92
+ pricingOptionId: string | null;
93
+ quantity: number;
94
+ }>[];
95
+ bundleProductId: string | undefined;
96
+ selectionSnapshot: SelectionSnapshot;
97
+ guestsPayload: {
98
+ name: string;
99
+ email: string | undefined;
100
+ phone: string | undefined;
101
+ }[] | undefined;
102
+ subject: {
103
+ kind: "occurrence";
104
+ occurrenceId: string;
105
+ attendanceMode: "in_person" | "online" | undefined;
106
+ eventSeriesId?: undefined;
107
+ } | {
108
+ kind: "wholeSeries";
109
+ eventSeriesId: string;
110
+ attendanceMode: "in_person" | "online" | undefined;
111
+ occurrenceId?: undefined;
112
+ };
113
+ };
114
+ export type PreparedSubmit = ReturnType<typeof prepareSubmitContext>;
61
115
  export {};
@@ -51,8 +51,6 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
51
51
  scopedEvents: RegistrationEvent[];
52
52
  preSelectedEvent: RegistrationEvent | null;
53
53
  hasPreSelectedContext: boolean;
54
- checkoutRecovery: boolean;
55
- startCheckoutRecovery: () => void;
56
54
  step: RegistrationStep;
57
55
  setStep: (nextStep: RegistrationStep) => void;
58
56
  selectedEvent: RegistrationEvent | null;
@@ -147,6 +145,11 @@ export declare function useEventRegistrationWizard(options: UseEventRegistration
147
145
  discountContext: import("../../api").DiscountContext | null;
148
146
  shouldShowDiscountToggle: boolean;
149
147
  verification: import("./useEventRegistrationStripeReturn").EventRegistrationStripeReturnResult;
148
+ paymentStatusRecovery: import("./types").PaymentStatusRecoveryState | null;
149
+ handleCheckPaymentStatus: () => void;
150
+ handleContinueExistingPayment: () => void;
151
+ handleReturnToPayment: () => void;
152
+ handleReturnToBooking: () => void;
150
153
  handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
151
154
  handlePaymentSelect: () => Promise<void>;
152
155
  handleUseCardInsteadOfPass: () => void;
@@ -177,8 +180,6 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
177
180
  scopedEvents: RegistrationEvent[];
178
181
  preSelectedEvent: RegistrationEvent | null;
179
182
  hasPreSelectedContext: boolean;
180
- checkoutRecovery: boolean;
181
- startCheckoutRecovery: () => void;
182
183
  step: RegistrationStep;
183
184
  setStep: (nextStep: RegistrationStep) => void;
184
185
  selectedEvent: RegistrationEvent | null;
@@ -273,6 +274,11 @@ export declare function useEventRegistrationWizardWithDeps(options: UseEventRegi
273
274
  discountContext: import("../../api").DiscountContext | null;
274
275
  shouldShowDiscountToggle: boolean;
275
276
  verification: import("./useEventRegistrationStripeReturn").EventRegistrationStripeReturnResult;
277
+ paymentStatusRecovery: import("./types").PaymentStatusRecoveryState | null;
278
+ handleCheckPaymentStatus: () => void;
279
+ handleContinueExistingPayment: () => void;
280
+ handleReturnToPayment: () => void;
281
+ handleReturnToBooking: () => void;
276
282
  handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
277
283
  handlePaymentSelect: () => Promise<void>;
278
284
  handleUseCardInsteadOfPass: () => void;
@@ -0,0 +1,23 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import type { BlockApiClient } from '../../api/client';
3
+ import type { EventRegistrationStatusReference } from '../../api/types';
4
+ import type { PaymentStatusRecoveryState, RegistrationResult, RegistrationStep } from './types';
5
+ type PaymentStatusSetters = Readonly<{
6
+ setPendingRegistrationReference: Dispatch<SetStateAction<EventRegistrationStatusReference | null>>;
7
+ setRegistrationResult: Dispatch<SetStateAction<RegistrationResult | null>>;
8
+ setOptionsRefreshKey: Dispatch<SetStateAction<number>>;
9
+ setStep: (step: RegistrationStep) => void;
10
+ }>;
11
+ type UsePaymentStatusRecoveryOptions = PaymentStatusSetters & Readonly<{
12
+ api: BlockApiClient;
13
+ beginNewSubmission: () => void;
14
+ }>;
15
+ export declare function usePaymentStatusRecovery(options: UsePaymentStatusRecoveryOptions): {
16
+ recovery: PaymentStatusRecoveryState | null;
17
+ showRecovery: (next: PaymentStatusRecoveryState | null) => void;
18
+ check: () => void;
19
+ continuePayment: () => void;
20
+ returnToPayment: () => void;
21
+ returnToBooking: () => void;
22
+ };
23
+ export {};
@@ -59,7 +59,7 @@ export declare function getVisibleTicketTypes(input: {
59
59
  eligibility: EligibilityData | null;
60
60
  selectedAttendanceMode?: 'in_person' | 'online' | null;
61
61
  }): SelectableEventTicketType[];
62
- export declare function getImplicitSingleAvailableTicketType(ticketTypes: readonly SelectableEventTicketType[]): SelectableEventTicketType | null;
62
+ export declare function getImplicitSingleTicketType(ticketTypes: readonly SelectableEventTicketType[]): SelectableEventTicketType | null;
63
63
  export declare function findSelectedTicketType(input: {
64
64
  event: TicketTypeSourceEvent | null;
65
65
  eligibility: EligibilityData | null;
@@ -1,12 +1,12 @@
1
- export type EventRegistrationErrorAction = 'none' | 'retry' | 'places' | 'start' | 'details' | 'payment-options' | 'payment-status' | 'portal' | 'event';
1
+ export type EventRegistrationErrorAction = 'none' | 'retry' | 'places' | 'start' | 'details' | 'payment-options' | 'portal' | 'event';
2
2
  export declare const eventRegistrationErrors: {
3
3
  readonly registrationClosed: {
4
4
  readonly message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.";
5
5
  readonly action: "none";
6
6
  };
7
- readonly paymentUncertain: {
8
- readonly message: "We’re checking your booking and payment. Please don’t try to book again yet. If you’ve already paid, you don’t need to pay again.";
9
- readonly action: "payment-status";
7
+ readonly paymentInvestigationRequired: {
8
+ readonly message: "We still can’t confirm your payment. Please don’t make another payment. Contact the organiser so they can check your booking.";
9
+ readonly action: "none";
10
10
  };
11
11
  readonly paymentProviderUnavailable: {
12
12
  readonly message: "We couldn’t reach the payment provider. Please try again in a minute.";
@@ -0,0 +1,8 @@
1
+ export declare const EVENT_CHECKOUT_HOLD_DURATION_MS: number;
2
+ export declare const EVENT_CHECKOUT_RECOVERY_GRACE_MS: number;
3
+ export declare function eventCheckoutProvisionalRecoverableUntil(now: Date): string;
4
+ export declare function eventCheckoutRecoverableUntil(input: Readonly<{
5
+ holdExpiresAt: string;
6
+ sessionExpiresAtEpochSeconds: number;
7
+ }>): string | null;
8
+ export declare function eventCheckoutRecoveryIsDiscoverable(recoverableUntil: string, now: Date): boolean;
@@ -56,4 +56,5 @@ export * from './stripeMinimumCharge';
56
56
  export * from './stripeCheckoutReturnUrl';
57
57
  export * from './stateTransitions';
58
58
  export * from './event-registration-errors';
59
- export { STRIPE_COMMISSION_FREE_REASONS, type StripeCommissionFreeReason } from './stripeCommissionMetadata';
59
+ export * from './eventCheckoutRecoveryWindow';
60
+ export { STRIPE_COMMISSION_FREE_REASONS, type StripeCommissionFreeReason, } from './stripeCommissionMetadata';
@@ -1,18 +1,8 @@
1
1
  import { type Result } from '../../../core/src/index';
2
- import type { CheckoutCommitFailureStep, CheckoutCommitState, CheckoutCompensationDecision, CheckoutPaymentRail, OrderCheckoutReconciliationState, OrderItemReconciliationState, DiscountRedemptionStatus, OrderItemCommitState, OrderStatus } from './orderTypes';
2
+ import type { CheckoutCommitFailureStep, CheckoutCompensationDecision, CheckoutPaymentRail, DiscountRedemptionStatus, OrderStatus } from './orderTypes';
3
3
  export type OrderStatusEvent = 'checkout_failed' | 'stripe_payment_completed' | 'cancel' | 'partial_refund' | 'full_refund';
4
4
  export declare function advanceOrderStatus(from: OrderStatus, event: OrderStatusEvent): Result<OrderStatus, string>;
5
5
  export declare function transitionOrderStatusTo(from: OrderStatus, to: OrderStatus): Result<OrderStatus, string>;
6
- export type CheckoutCommitEvent = 'start' | 'complete' | 'compensate' | 'release';
7
- export declare function advanceCheckoutCommitState(from: CheckoutCommitState, event: CheckoutCommitEvent): Result<CheckoutCommitState, string>;
8
- export declare function transitionCheckoutCommitStateTo(from: CheckoutCommitState, to: CheckoutCommitState): Result<CheckoutCommitState, string>;
9
- export type OrderItemCommitEvent = 'commit' | 'compensate';
10
- export declare function advanceOrderItemCommitState(from: OrderItemCommitState, event: OrderItemCommitEvent): Result<OrderItemCommitState, string>;
11
- export declare function transitionOrderItemCommitStateTo(from: OrderItemCommitState, to: OrderItemCommitState): Result<OrderItemCommitState, string>;
12
- export type OrderCheckoutReconciliationEvent = 'defer_settlement_evidence' | 'commit_verified_settlement' | 'mark_needed';
13
- export declare function advanceOrderCheckoutReconciliationState(from: OrderCheckoutReconciliationState, event: OrderCheckoutReconciliationEvent): Result<OrderCheckoutReconciliationState, string>;
14
- export declare function transitionOrderCheckoutReconciliationStateTo(from: OrderCheckoutReconciliationState, to: OrderCheckoutReconciliationState): Result<OrderCheckoutReconciliationState, string>;
15
- export declare function transitionOrderItemReconciliationStateTo(from: OrderItemReconciliationState, to: OrderItemReconciliationState): Result<OrderItemReconciliationState, string>;
16
6
  export declare function classifyCheckoutCompensationDecision(input: {
17
7
  paymentRail: CheckoutPaymentRail;
18
8
  failedStep: CheckoutCommitFailureStep;
@@ -23,8 +13,6 @@ export type DiscountRedemptionEvent = 'redeem' | 'release' | 'expire';
23
13
  export declare function advanceDiscountRedemptionStatus(from: DiscountRedemptionStatus, event: DiscountRedemptionEvent): Result<DiscountRedemptionStatus, string>;
24
14
  export declare function transitionDiscountRedemptionStatusTo(from: DiscountRedemptionStatus, to: DiscountRedemptionStatus): Result<DiscountRedemptionStatus, string>;
25
15
  export type FulfillmentClaimState = 'unclaimed' | 'claimed' | 'claimed_stale' | 'fulfilled' | 'missing';
26
- export type FulfillmentClaimEvent = 'claim' | 'reclaim' | 'complete' | 'release';
27
- export declare function advanceFulfillmentClaimState(from: FulfillmentClaimState, event: FulfillmentClaimEvent): Result<FulfillmentClaimState, string>;
28
16
  export type OrderRefundStatus = 'pending' | 'succeeded' | 'failed' | 'reconciliation_needed';
29
17
  export type OrderRefundEvent = 'succeed' | 'fail' | 'mark_reconciliation_needed';
30
18
  export declare function advanceOrderRefundStatus(from: OrderRefundStatus, event: OrderRefundEvent): Result<OrderRefundStatus, string>;