@voyant-travel/bookings-react 0.194.0 → 0.194.1
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/admin/index.d.ts
CHANGED
|
@@ -135,9 +135,9 @@ export declare const bookingDetailTabSchema: z.ZodEnum<{
|
|
|
135
135
|
travelers: "travelers";
|
|
136
136
|
activity: "activity";
|
|
137
137
|
documents: "documents";
|
|
138
|
-
finance: "finance";
|
|
139
|
-
invoices: "invoices";
|
|
140
138
|
suppliers: "suppliers";
|
|
139
|
+
invoices: "invoices";
|
|
140
|
+
finance: "finance";
|
|
141
141
|
}>;
|
|
142
142
|
/**
|
|
143
143
|
* Search contract for the booking detail page. `productId`/`slotId` only
|
|
@@ -153,9 +153,9 @@ export declare const bookingDetailSearchSchema: z.ZodObject<{
|
|
|
153
153
|
travelers: "travelers";
|
|
154
154
|
activity: "activity";
|
|
155
155
|
documents: "documents";
|
|
156
|
-
finance: "finance";
|
|
157
|
-
invoices: "invoices";
|
|
158
156
|
suppliers: "suppliers";
|
|
157
|
+
invoices: "invoices";
|
|
158
|
+
finance: "finance";
|
|
159
159
|
}>>;
|
|
160
160
|
}, z.core.$strip>;
|
|
161
161
|
export type BookingDetailSearchParams = z.infer<typeof bookingDetailSearchSchema>;
|
|
@@ -25,7 +25,7 @@ export declare function buildCommitPaymentIntent(draft: Draft): {
|
|
|
25
25
|
type: "hold";
|
|
26
26
|
};
|
|
27
27
|
export declare function isStepVisible(step: JourneyStep, shape: BookingDraftShape): boolean;
|
|
28
|
-
export declare function canAdvanceFromStep(step: JourneyStep, draft: Draft, shape: BookingDraftShape,
|
|
28
|
+
export declare function canAdvanceFromStep(step: JourneyStep, draft: Draft, shape: BookingDraftShape, _available: boolean): boolean;
|
|
29
29
|
export declare function validationErrorsForStep(step: JourneyStep, draft: Draft, messages: BookingsUiMessages): ReadonlyArray<string>;
|
|
30
30
|
/**
|
|
31
31
|
* Completeness for the stacked admin accordion's AUTO-advance — stricter
|
|
@@ -89,9 +89,7 @@ export function isStepVisible(step, shape) {
|
|
|
89
89
|
return shape.showsReview;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
export function canAdvanceFromStep(step, draft, shape,
|
|
93
|
-
if (!available)
|
|
94
|
-
return false;
|
|
92
|
+
export function canAdvanceFromStep(step, draft, shape, _available) {
|
|
95
93
|
switch (step) {
|
|
96
94
|
case "departure": {
|
|
97
95
|
// Require a departure when the descriptor marks it required.
|
|
@@ -31,6 +31,6 @@ export declare function buildStorefrontCheckoutStartBody(input: {
|
|
|
31
31
|
renderedHtml: string;
|
|
32
32
|
} | undefined;
|
|
33
33
|
bookingId: string;
|
|
34
|
-
paymentIntent: "hold" | "
|
|
34
|
+
paymentIntent: "hold" | "card" | "bank_transfer" | "inquiry";
|
|
35
35
|
};
|
|
36
36
|
export declare function buildStorefrontCommitParty(draft: Draft): Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/bookings-react",
|
|
3
|
-
"version": "0.194.
|
|
3
|
+
"version": "0.194.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
"zod": "^4.0.0",
|
|
153
153
|
"@voyant-travel/accommodations": "^0.154.0",
|
|
154
154
|
"@voyant-travel/admin": "^0.129.0",
|
|
155
|
-
"@voyant-travel/bookings": "^0.194.
|
|
156
|
-
"@voyant-travel/catalog": "^0.192.
|
|
157
|
-
"@voyant-travel/catalog-react": "^0.192.
|
|
155
|
+
"@voyant-travel/bookings": "^0.194.1",
|
|
156
|
+
"@voyant-travel/catalog": "^0.192.1",
|
|
157
|
+
"@voyant-travel/catalog-react": "^0.192.1",
|
|
158
158
|
"@voyant-travel/distribution-react": "^0.184.0",
|
|
159
159
|
"@voyant-travel/relationships-react": "^0.194.0",
|
|
160
160
|
"@voyant-travel/finance": "^0.194.0",
|
|
@@ -253,9 +253,9 @@
|
|
|
253
253
|
"zod": "^4.4.3",
|
|
254
254
|
"@voyant-travel/accommodations": "^0.154.0",
|
|
255
255
|
"@voyant-travel/admin": "^0.129.0",
|
|
256
|
-
"@voyant-travel/bookings": "^0.194.
|
|
257
|
-
"@voyant-travel/catalog": "^0.192.
|
|
258
|
-
"@voyant-travel/catalog-react": "^0.192.
|
|
256
|
+
"@voyant-travel/bookings": "^0.194.1",
|
|
257
|
+
"@voyant-travel/catalog": "^0.192.1",
|
|
258
|
+
"@voyant-travel/catalog-react": "^0.192.1",
|
|
259
259
|
"@voyant-travel/distribution-react": "^0.184.0",
|
|
260
260
|
"@voyant-travel/relationships-react": "^0.194.0",
|
|
261
261
|
"@voyant-travel/finance": "^0.194.0",
|