@voyant-travel/bookings-react 0.138.9 → 0.138.10
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 +2 -2
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts +3 -3
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts +1 -1
- package/dist/extras/query-options.d.ts +4 -4
- package/dist/extras/schemas.d.ts +3 -3
- package/dist/hooks/use-booking-action-ledger.d.ts +1 -1
- package/dist/hooks/use-supplier-status-mutation.d.ts +2 -2
- package/dist/hooks/use-supplier-statuses.d.ts +1 -1
- package/dist/journey/components/booking-journey.d.ts.map +1 -1
- package/dist/journey/components/booking-journey.js +10 -3
- package/dist/query-options.d.ts +4 -4
- package/dist/requirements/hooks/use-booking-questions.d.ts +1 -1
- package/dist/requirements/query-options.d.ts +4 -4
- package/dist/requirements/schemas.d.ts +3 -3
- package/dist/schemas.d.ts +6 -6
- package/package.json +15 -15
package/dist/admin/index.d.ts
CHANGED
|
@@ -134,8 +134,8 @@ export declare const bookingDetailTabSchema: z.ZodEnum<{
|
|
|
134
134
|
metadata: "metadata";
|
|
135
135
|
items: "items";
|
|
136
136
|
travelers: "travelers";
|
|
137
|
-
documents: "documents";
|
|
138
137
|
activity: "activity";
|
|
138
|
+
documents: "documents";
|
|
139
139
|
finance: "finance";
|
|
140
140
|
invoices: "invoices";
|
|
141
141
|
suppliers: "suppliers";
|
|
@@ -152,8 +152,8 @@ export declare const bookingDetailSearchSchema: z.ZodObject<{
|
|
|
152
152
|
metadata: "metadata";
|
|
153
153
|
items: "items";
|
|
154
154
|
travelers: "travelers";
|
|
155
|
-
documents: "documents";
|
|
156
155
|
activity: "activity";
|
|
156
|
+
documents: "documents";
|
|
157
157
|
finance: "finance";
|
|
158
158
|
invoices: "invoices";
|
|
159
159
|
suppliers: "suppliers";
|
|
@@ -12,7 +12,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
|
|
|
12
12
|
productExtraId: string;
|
|
13
13
|
optionExtraConfigId?: string | null | undefined;
|
|
14
14
|
status?: "selected" | "cancelled" | "fulfilled" | "no_show" | undefined;
|
|
15
|
-
collectionStatus?: "
|
|
15
|
+
collectionStatus?: "pending" | "not_required" | "collected" | "waived" | "refunded" | undefined;
|
|
16
16
|
collectionCurrency?: string | null | undefined;
|
|
17
17
|
collectionAmountCents?: number | null | undefined;
|
|
18
18
|
notes?: string | null | undefined;
|
|
@@ -27,7 +27,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
|
|
|
27
27
|
productExtraId: string;
|
|
28
28
|
optionExtraConfigId?: string | null | undefined;
|
|
29
29
|
status?: "selected" | "cancelled" | "fulfilled" | "no_show" | undefined;
|
|
30
|
-
collectionStatus?: "
|
|
30
|
+
collectionStatus?: "pending" | "not_required" | "collected" | "waived" | "refunded" | undefined;
|
|
31
31
|
collectionCurrency?: string | null | undefined;
|
|
32
32
|
collectionAmountCents?: number | null | undefined;
|
|
33
33
|
notes?: string | null | undefined;
|
|
@@ -39,7 +39,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
|
|
|
39
39
|
}, Error, {
|
|
40
40
|
productExtraId: string;
|
|
41
41
|
travelerIds: string[];
|
|
42
|
-
collectionStatus: "
|
|
42
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
43
43
|
collectionCurrency?: string | null | undefined;
|
|
44
44
|
collectionAmountCents?: number | null | undefined;
|
|
45
45
|
notes?: string | null | undefined;
|
|
@@ -55,7 +55,7 @@ export declare function useSlotExtraManifest(slotId: string | null | undefined,
|
|
|
55
55
|
status: "selected" | "cancelled" | "fulfilled" | "no_show";
|
|
56
56
|
selected: boolean;
|
|
57
57
|
collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
|
|
58
|
-
collectionStatus: "
|
|
58
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
59
59
|
collectionCurrency: string | null;
|
|
60
60
|
collectionAmountCents: number | null;
|
|
61
61
|
collectedAt: string | null;
|
|
@@ -243,7 +243,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
|
|
|
243
243
|
status: "selected" | "cancelled" | "fulfilled" | "no_show";
|
|
244
244
|
selected: boolean;
|
|
245
245
|
collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
|
|
246
|
-
collectionStatus: "
|
|
246
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
247
247
|
collectionCurrency: string | null;
|
|
248
248
|
collectionAmountCents: number | null;
|
|
249
249
|
collectedAt: string | null;
|
|
@@ -307,7 +307,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
|
|
|
307
307
|
status: "selected" | "cancelled" | "fulfilled" | "no_show";
|
|
308
308
|
selected: boolean;
|
|
309
309
|
collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
|
|
310
|
-
collectionStatus: "
|
|
310
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
311
311
|
collectionCurrency: string | null;
|
|
312
312
|
collectionAmountCents: number | null;
|
|
313
313
|
collectedAt: string | null;
|
|
@@ -372,7 +372,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
|
|
|
372
372
|
status: "selected" | "cancelled" | "fulfilled" | "no_show";
|
|
373
373
|
selected: boolean;
|
|
374
374
|
collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
|
|
375
|
-
collectionStatus: "
|
|
375
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
376
376
|
collectionCurrency: string | null;
|
|
377
377
|
collectionAmountCents: number | null;
|
|
378
378
|
collectedAt: string | null;
|
|
@@ -439,7 +439,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
|
|
|
439
439
|
status: "selected" | "cancelled" | "fulfilled" | "no_show";
|
|
440
440
|
selected: boolean;
|
|
441
441
|
collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
|
|
442
|
-
collectionStatus: "
|
|
442
|
+
collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
|
|
443
443
|
collectionCurrency: string | null;
|
|
444
444
|
collectionAmountCents: number | null;
|
|
445
445
|
collectedAt: string | null;
|
package/dist/extras/schemas.d.ts
CHANGED
|
@@ -175,8 +175,8 @@ export declare const slotExtraManifestSelectionSchema: z.ZodObject<{
|
|
|
175
175
|
booking_total: "booking_total";
|
|
176
176
|
}>;
|
|
177
177
|
collectionStatus: z.ZodEnum<{
|
|
178
|
-
not_required: "not_required";
|
|
179
178
|
pending: "pending";
|
|
179
|
+
not_required: "not_required";
|
|
180
180
|
collected: "collected";
|
|
181
181
|
waived: "waived";
|
|
182
182
|
refunded: "refunded";
|
|
@@ -278,8 +278,8 @@ export declare const slotExtraManifestSchema: z.ZodObject<{
|
|
|
278
278
|
booking_total: "booking_total";
|
|
279
279
|
}>;
|
|
280
280
|
collectionStatus: z.ZodEnum<{
|
|
281
|
-
not_required: "not_required";
|
|
282
281
|
pending: "pending";
|
|
282
|
+
not_required: "not_required";
|
|
283
283
|
collected: "collected";
|
|
284
284
|
waived: "waived";
|
|
285
285
|
refunded: "refunded";
|
|
@@ -383,8 +383,8 @@ export declare const slotExtraManifestResponse: z.ZodObject<{
|
|
|
383
383
|
booking_total: "booking_total";
|
|
384
384
|
}>;
|
|
385
385
|
collectionStatus: z.ZodEnum<{
|
|
386
|
-
not_required: "not_required";
|
|
387
386
|
pending: "pending";
|
|
387
|
+
not_required: "not_required";
|
|
388
388
|
collected: "collected";
|
|
389
389
|
waived: "waived";
|
|
390
390
|
refunded: "refunded";
|
|
@@ -18,7 +18,7 @@ export declare function useBookingActionLedger(bookingId: string | null | undefi
|
|
|
18
18
|
actionVersion: string;
|
|
19
19
|
actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
|
|
20
20
|
status: "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "superseded";
|
|
21
|
-
evaluatedRisk: "
|
|
21
|
+
evaluatedRisk: "high" | "low" | "medium" | "critical";
|
|
22
22
|
actorType: string | null;
|
|
23
23
|
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
24
24
|
principalId: string;
|
|
@@ -16,7 +16,7 @@ export declare function useSupplierStatusMutation(bookingId: string): {
|
|
|
16
16
|
bookingId: string;
|
|
17
17
|
supplierServiceId: string | null;
|
|
18
18
|
serviceName: string;
|
|
19
|
-
status: "
|
|
19
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
20
20
|
supplierReference: string | null;
|
|
21
21
|
costCurrency: string;
|
|
22
22
|
costAmountCents: number;
|
|
@@ -30,7 +30,7 @@ export declare function useSupplierStatusMutation(bookingId: string): {
|
|
|
30
30
|
bookingId: string;
|
|
31
31
|
supplierServiceId: string | null;
|
|
32
32
|
serviceName: string;
|
|
33
|
-
status: "
|
|
33
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
34
34
|
supplierReference: string | null;
|
|
35
35
|
costCurrency: string;
|
|
36
36
|
costAmountCents: number;
|
|
@@ -7,7 +7,7 @@ export declare function useSupplierStatuses(bookingId: string | null | undefined
|
|
|
7
7
|
bookingId: string;
|
|
8
8
|
supplierServiceId: string | null;
|
|
9
9
|
serviceName: string;
|
|
10
|
-
status: "
|
|
10
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
11
11
|
supplierReference: string | null;
|
|
12
12
|
costCurrency: string;
|
|
13
13
|
costAmountCents: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking-journey.d.ts","sourceRoot":"","sources":["../../../src/journey/components/booking-journey.tsx"],"names":[],"mappings":"AAgCA,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,aAAa,CAAA;AA8BpB,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"booking-journey.d.ts","sourceRoot":"","sources":["../../../src/journey/components/booking-journey.tsx"],"names":[],"mappings":"AAgCA,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,aAAa,CAAA;AA8BpB,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CA4wB7E"}
|
|
@@ -180,6 +180,7 @@ export function BookingJourney(props) {
|
|
|
180
180
|
(quote.data.available === false ||
|
|
181
181
|
(quote.data.invalidReason != null && quote.data.invalidReason !== ""));
|
|
182
182
|
const quoteBlocked = hasQuoteError || quoteUnpriceable;
|
|
183
|
+
const quoteReady = Boolean(quote.data?.quoteId);
|
|
183
184
|
// Step navigation only hard-blocks on a thrown quote error (a transient fetch
|
|
184
185
|
// failure that a retry fixes). An un-priceable quote (e.g. `rates_missing`
|
|
185
186
|
// from a preselected room) is *corrected by navigating* — often the room/rate
|
|
@@ -194,7 +195,9 @@ export function BookingJourney(props) {
|
|
|
194
195
|
stackedSteps[stackedSteps.length - 1] ??
|
|
195
196
|
stackedSteps[0] ??
|
|
196
197
|
"departure", [stackedSteps, draft, shape, available]);
|
|
197
|
-
const canCommit = useMemo(() => stackedSteps.every((s) => canAdvanceFromStep(s, draft, shape, available)) &&
|
|
198
|
+
const canCommit = useMemo(() => stackedSteps.every((s) => canAdvanceFromStep(s, draft, shape, available)) &&
|
|
199
|
+
quoteReady &&
|
|
200
|
+
!quoteBlocked, [stackedSteps, draft, shape, available, quoteReady, quoteBlocked]);
|
|
198
201
|
const [isAdvanceGuardPending, setIsAdvanceGuardPending] = useState(false);
|
|
199
202
|
const [advanceGuardError, setAdvanceGuardError] = useState(null);
|
|
200
203
|
// Set when Confirm can't proceed because there's no valid quote — makes the
|
|
@@ -278,8 +281,12 @@ export function BookingJourney(props) {
|
|
|
278
281
|
return contractConfig.resolveVariables({ draft, pricing: quote.data?.pricing ?? null });
|
|
279
282
|
}, [contractConfig, draft, quote.data?.pricing]);
|
|
280
283
|
const commitDraft = async () => {
|
|
281
|
-
if (!quote.data?.quoteId)
|
|
284
|
+
if (!quote.data?.quoteId || quoteBlocked) {
|
|
285
|
+
setConfirmError(quoteUnpriceable
|
|
286
|
+
? messages.bookingJourney.validation.pricingUnavailable
|
|
287
|
+
: messages.bookingJourney.validation.quoteUnavailable);
|
|
282
288
|
return;
|
|
289
|
+
}
|
|
283
290
|
await commit.mutateAsync({
|
|
284
291
|
draft: { ...draft, quoteId: quote.data.quoteId },
|
|
285
292
|
quoteId: quote.data.quoteId,
|
|
@@ -431,7 +438,7 @@ export function BookingJourney(props) {
|
|
|
431
438
|
// Disable Confirm when the live quote can't be priced (error or
|
|
432
439
|
// rates_missing) so contract acceptance / commit never fires
|
|
433
440
|
// against an unpriced booking (#2638).
|
|
434
|
-
canConfirm: !quoteBlocked, renderExtras: props.renderReviewExtras, surface: surface, pricing: quote.data?.pricing ?? null })) : null, warnings.length > 0 ? (_jsx("ul", { className: "space-y-1 rounded-md border border-amber-300 bg-amber-50 p-3 text-amber-900 text-sm dark:border-amber-700 dark:bg-amber-950 dark:text-amber-100", children: warnings.map((w) => (_jsxs("li", { children: ["\u26A0 ", w] }, w))) })) : null, _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { type: "button", variant: "outline", disabled: isAdvanceGuardPending, onClick: () => {
|
|
441
|
+
canConfirm: quoteReady && !quoteBlocked, renderExtras: props.renderReviewExtras, surface: surface, pricing: quote.data?.pricing ?? null })) : null, warnings.length > 0 ? (_jsx("ul", { className: "space-y-1 rounded-md border border-amber-300 bg-amber-50 p-3 text-amber-900 text-sm dark:border-amber-700 dark:bg-amber-950 dark:text-amber-100", children: warnings.map((w) => (_jsxs("li", { children: ["\u26A0 ", w] }, w))) })) : null, _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { type: "button", variant: "outline", disabled: isAdvanceGuardPending, onClick: () => {
|
|
435
442
|
if (prev)
|
|
436
443
|
goBack();
|
|
437
444
|
else
|
package/dist/query-options.d.ts
CHANGED
|
@@ -1505,7 +1505,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
|
|
|
1505
1505
|
bookingId: string;
|
|
1506
1506
|
supplierServiceId: string | null;
|
|
1507
1507
|
serviceName: string;
|
|
1508
|
-
status: "
|
|
1508
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
1509
1509
|
supplierReference: string | null;
|
|
1510
1510
|
costCurrency: string;
|
|
1511
1511
|
costAmountCents: number;
|
|
@@ -1520,7 +1520,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
|
|
|
1520
1520
|
bookingId: string;
|
|
1521
1521
|
supplierServiceId: string | null;
|
|
1522
1522
|
serviceName: string;
|
|
1523
|
-
status: "
|
|
1523
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
1524
1524
|
supplierReference: string | null;
|
|
1525
1525
|
costCurrency: string;
|
|
1526
1526
|
costAmountCents: number;
|
|
@@ -1536,7 +1536,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
|
|
|
1536
1536
|
bookingId: string;
|
|
1537
1537
|
supplierServiceId: string | null;
|
|
1538
1538
|
serviceName: string;
|
|
1539
|
-
status: "
|
|
1539
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
1540
1540
|
supplierReference: string | null;
|
|
1541
1541
|
costCurrency: string;
|
|
1542
1542
|
costAmountCents: number;
|
|
@@ -1554,7 +1554,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
|
|
|
1554
1554
|
bookingId: string;
|
|
1555
1555
|
supplierServiceId: string | null;
|
|
1556
1556
|
serviceName: string;
|
|
1557
|
-
status: "
|
|
1557
|
+
status: "pending" | "cancelled" | "confirmed" | "rejected";
|
|
1558
1558
|
supplierReference: string | null;
|
|
1559
1559
|
costCurrency: string;
|
|
1560
1560
|
costAmountCents: number;
|
|
@@ -10,7 +10,7 @@ export declare function useBookingQuestions(options?: UseBookingQuestionsOptions
|
|
|
10
10
|
label: string;
|
|
11
11
|
description: string | null;
|
|
12
12
|
target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
|
|
13
|
-
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "
|
|
13
|
+
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
|
|
14
14
|
placeholder: string | null;
|
|
15
15
|
helpText: string | null;
|
|
16
16
|
isRequired: boolean;
|
|
@@ -132,7 +132,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
|
|
|
132
132
|
label: string;
|
|
133
133
|
description: string | null;
|
|
134
134
|
target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
|
|
135
|
-
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "
|
|
135
|
+
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
|
|
136
136
|
placeholder: string | null;
|
|
137
137
|
helpText: string | null;
|
|
138
138
|
isRequired: boolean;
|
|
@@ -150,7 +150,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
|
|
|
150
150
|
label: string;
|
|
151
151
|
description: string | null;
|
|
152
152
|
target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
|
|
153
|
-
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "
|
|
153
|
+
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
|
|
154
154
|
placeholder: string | null;
|
|
155
155
|
helpText: string | null;
|
|
156
156
|
isRequired: boolean;
|
|
@@ -169,7 +169,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
|
|
|
169
169
|
label: string;
|
|
170
170
|
description: string | null;
|
|
171
171
|
target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
|
|
172
|
-
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "
|
|
172
|
+
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
|
|
173
173
|
placeholder: string | null;
|
|
174
174
|
helpText: string | null;
|
|
175
175
|
isRequired: boolean;
|
|
@@ -190,7 +190,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
|
|
|
190
190
|
label: string;
|
|
191
191
|
description: string | null;
|
|
192
192
|
target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
|
|
193
|
-
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "
|
|
193
|
+
fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
|
|
194
194
|
placeholder: string | null;
|
|
195
195
|
helpText: string | null;
|
|
196
196
|
isRequired: boolean;
|
|
@@ -26,9 +26,9 @@ export declare const questionFieldTypeSchema: z.ZodEnum<{
|
|
|
26
26
|
phone: "phone";
|
|
27
27
|
textarea: "textarea";
|
|
28
28
|
text: "text";
|
|
29
|
-
datetime: "datetime";
|
|
30
29
|
single_select: "single_select";
|
|
31
30
|
multi_select: "multi_select";
|
|
31
|
+
datetime: "datetime";
|
|
32
32
|
country: "country";
|
|
33
33
|
}>;
|
|
34
34
|
export declare const bookingQuestionSchema: z.ZodObject<{
|
|
@@ -55,9 +55,9 @@ export declare const bookingQuestionSchema: z.ZodObject<{
|
|
|
55
55
|
phone: "phone";
|
|
56
56
|
textarea: "textarea";
|
|
57
57
|
text: "text";
|
|
58
|
-
datetime: "datetime";
|
|
59
58
|
single_select: "single_select";
|
|
60
59
|
multi_select: "multi_select";
|
|
60
|
+
datetime: "datetime";
|
|
61
61
|
country: "country";
|
|
62
62
|
}>;
|
|
63
63
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -166,9 +166,9 @@ export declare const bookingQuestionListResponse: z.ZodObject<{
|
|
|
166
166
|
phone: "phone";
|
|
167
167
|
textarea: "textarea";
|
|
168
168
|
text: "text";
|
|
169
|
-
datetime: "datetime";
|
|
170
169
|
single_select: "single_select";
|
|
171
170
|
multi_select: "multi_select";
|
|
171
|
+
datetime: "datetime";
|
|
172
172
|
country: "country";
|
|
173
173
|
}>;
|
|
174
174
|
placeholder: z.ZodNullable<z.ZodString>;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export declare const bookingStatusSchema: z.ZodEnum<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export type BookingStatus = z.infer<typeof bookingStatusSchema>;
|
|
24
24
|
export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
|
|
25
|
-
cancelled: "cancelled";
|
|
26
25
|
pending: "pending";
|
|
26
|
+
cancelled: "cancelled";
|
|
27
27
|
confirmed: "confirmed";
|
|
28
28
|
rejected: "rejected";
|
|
29
29
|
}>;
|
|
@@ -277,8 +277,8 @@ export declare const bookingSupplierStatusRecordSchema: z.ZodObject<{
|
|
|
277
277
|
supplierServiceId: z.ZodNullable<z.ZodString>;
|
|
278
278
|
serviceName: z.ZodString;
|
|
279
279
|
status: z.ZodEnum<{
|
|
280
|
-
cancelled: "cancelled";
|
|
281
280
|
pending: "pending";
|
|
281
|
+
cancelled: "cancelled";
|
|
282
282
|
confirmed: "confirmed";
|
|
283
283
|
rejected: "rejected";
|
|
284
284
|
}>;
|
|
@@ -1699,8 +1699,8 @@ export declare const bookingSupplierStatusesResponse: z.ZodObject<{
|
|
|
1699
1699
|
supplierServiceId: z.ZodNullable<z.ZodString>;
|
|
1700
1700
|
serviceName: z.ZodString;
|
|
1701
1701
|
status: z.ZodEnum<{
|
|
1702
|
-
cancelled: "cancelled";
|
|
1703
1702
|
pending: "pending";
|
|
1703
|
+
cancelled: "cancelled";
|
|
1704
1704
|
confirmed: "confirmed";
|
|
1705
1705
|
rejected: "rejected";
|
|
1706
1706
|
}>;
|
|
@@ -2244,9 +2244,9 @@ export declare const bookingActionLedgerStatusSchema: z.ZodEnum<{
|
|
|
2244
2244
|
superseded: "superseded";
|
|
2245
2245
|
}>;
|
|
2246
2246
|
export declare const bookingActionLedgerRiskSchema: z.ZodEnum<{
|
|
2247
|
+
high: "high";
|
|
2247
2248
|
low: "low";
|
|
2248
2249
|
medium: "medium";
|
|
2249
|
-
high: "high";
|
|
2250
2250
|
critical: "critical";
|
|
2251
2251
|
}>;
|
|
2252
2252
|
export declare const bookingActionLedgerPrincipalTypeSchema: z.ZodEnum<{
|
|
@@ -2287,9 +2287,9 @@ export declare const bookingActionLedgerEntrySchema: z.ZodObject<{
|
|
|
2287
2287
|
superseded: "superseded";
|
|
2288
2288
|
}>;
|
|
2289
2289
|
evaluatedRisk: z.ZodEnum<{
|
|
2290
|
+
high: "high";
|
|
2290
2291
|
low: "low";
|
|
2291
2292
|
medium: "medium";
|
|
2292
|
-
high: "high";
|
|
2293
2293
|
critical: "critical";
|
|
2294
2294
|
}>;
|
|
2295
2295
|
actorType: z.ZodNullable<z.ZodString>;
|
|
@@ -2377,9 +2377,9 @@ export declare const bookingActionLedgerListResponse: z.ZodObject<{
|
|
|
2377
2377
|
superseded: "superseded";
|
|
2378
2378
|
}>;
|
|
2379
2379
|
evaluatedRisk: z.ZodEnum<{
|
|
2380
|
+
high: "high";
|
|
2380
2381
|
low: "low";
|
|
2381
2382
|
medium: "medium";
|
|
2382
|
-
high: "high";
|
|
2383
2383
|
critical: "critical";
|
|
2384
2384
|
}>;
|
|
2385
2385
|
actorType: z.ZodNullable<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/bookings-react",
|
|
3
|
-
"version": "0.138.
|
|
3
|
+
"version": "0.138.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -140,22 +140,22 @@
|
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"@tanstack/react-query": "^5.0.0",
|
|
142
142
|
"@tanstack/react-table": "^8.0.0",
|
|
143
|
-
"lucide-react": "^
|
|
143
|
+
"lucide-react": "^1.23.0",
|
|
144
144
|
"react": "^19.0.0",
|
|
145
145
|
"react-dom": "^19.0.0",
|
|
146
146
|
"react-hook-form": "^7.80.0",
|
|
147
147
|
"zod": "^4.0.0",
|
|
148
|
-
"@voyant-travel/
|
|
148
|
+
"@voyant-travel/admin": "^0.115.3",
|
|
149
|
+
"@voyant-travel/bookings": "^0.138.10",
|
|
150
|
+
"@voyant-travel/catalog-react": "^0.136.4",
|
|
149
151
|
"@voyant-travel/distribution-react": "^0.128.4",
|
|
150
|
-
"@voyant-travel/
|
|
151
|
-
"@voyant-travel/relationships-react": "^0.138.1",
|
|
152
|
+
"@voyant-travel/relationships-react": "^0.138.2",
|
|
152
153
|
"@voyant-travel/finance-react": "^0.138.9",
|
|
153
|
-
"@voyant-travel/admin": "^0.115.3",
|
|
154
|
-
"@voyant-travel/commerce-react": "^0.20.0",
|
|
155
154
|
"@voyant-travel/identity-react": "^0.138.3",
|
|
156
155
|
"@voyant-travel/legal-react": "^0.138.2",
|
|
157
|
-
"@voyant-travel/
|
|
156
|
+
"@voyant-travel/commerce-react": "^0.20.0",
|
|
158
157
|
"@voyant-travel/inventory-react": "^0.20.0",
|
|
158
|
+
"@voyant-travel/ui": "^0.108.10",
|
|
159
159
|
"@voyant-travel/operations-react": "^0.19.2"
|
|
160
160
|
},
|
|
161
161
|
"peerDependenciesMeta": {
|
|
@@ -205,16 +205,16 @@
|
|
|
205
205
|
"dependencies": {
|
|
206
206
|
"sonner": "^2.0.7",
|
|
207
207
|
"@voyant-travel/catalog-contracts": "^0.108.1",
|
|
208
|
-
"@voyant-travel/types": "^0.106.1",
|
|
209
208
|
"@voyant-travel/i18n": "^0.109.8",
|
|
210
|
-
"@voyant-travel/react": "^0.104.1"
|
|
209
|
+
"@voyant-travel/react": "^0.104.1",
|
|
210
|
+
"@voyant-travel/types": "^0.106.1"
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": {
|
|
213
213
|
"@tanstack/react-query": "^5.101.2",
|
|
214
214
|
"@tanstack/react-table": "^8.21.3",
|
|
215
215
|
"@types/react": "^19.2.17",
|
|
216
216
|
"@types/react-dom": "^19.2.3",
|
|
217
|
-
"lucide-react": "^
|
|
217
|
+
"lucide-react": "^1.23.0",
|
|
218
218
|
"react": "^19.2.7",
|
|
219
219
|
"react-dom": "^19.2.7",
|
|
220
220
|
"react-hook-form": "^7.80.0",
|
|
@@ -223,18 +223,18 @@
|
|
|
223
223
|
"vitest": "^4.1.9",
|
|
224
224
|
"zod": "^4.4.3",
|
|
225
225
|
"@voyant-travel/admin": "^0.115.3",
|
|
226
|
-
"@voyant-travel/
|
|
226
|
+
"@voyant-travel/bookings": "^0.138.10",
|
|
227
|
+
"@voyant-travel/catalog-react": "^0.136.4",
|
|
227
228
|
"@voyant-travel/distribution-react": "^0.128.4",
|
|
228
|
-
"@voyant-travel/relationships-react": "^0.138.
|
|
229
|
+
"@voyant-travel/relationships-react": "^0.138.2",
|
|
229
230
|
"@voyant-travel/finance-react": "^0.138.9",
|
|
230
231
|
"@voyant-travel/identity-react": "^0.138.3",
|
|
231
|
-
"@voyant-travel/bookings": "^0.138.9",
|
|
232
232
|
"@voyant-travel/legal-react": "^0.138.2",
|
|
233
233
|
"@voyant-travel/commerce-react": "^0.20.0",
|
|
234
234
|
"@voyant-travel/inventory-react": "^0.20.0",
|
|
235
235
|
"@voyant-travel/react": "^0.104.1",
|
|
236
|
-
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
237
236
|
"@voyant-travel/ui": "^0.108.10",
|
|
237
|
+
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
238
238
|
"@voyant-travel/operations-react": "^0.19.2"
|
|
239
239
|
},
|
|
240
240
|
"files": [
|