@voyant-travel/bookings-react 0.141.0 → 0.141.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 +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/i18n/en-journey.d.ts +1 -0
- package/dist/i18n/en-journey.d.ts.map +1 -1
- package/dist/i18n/en-journey.js +1 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/messages-journey.d.ts +1 -0
- package/dist/i18n/messages-journey.d.ts.map +1 -1
- package/dist/i18n/provider.d.ts +2 -0
- package/dist/i18n/provider.d.ts.map +1 -1
- package/dist/i18n/ro-journey.d.ts +1 -0
- package/dist/i18n/ro-journey.d.ts.map +1 -1
- package/dist/i18n/ro-journey.js +1 -0
- package/dist/i18n/ro.d.ts +1 -0
- package/dist/i18n/ro.d.ts.map +1 -1
- package/dist/journey/components/booking-journey-rules.d.ts +1 -0
- package/dist/journey/components/booking-journey-rules.d.ts.map +1 -1
- package/dist/journey/components/booking-journey-rules.js +20 -2
- package/dist/journey/components/booking-journey.d.ts.map +1 -1
- package/dist/journey/components/booking-journey.js +3 -3
- package/dist/journey/components/journey-steps/billing-step.d.ts +2 -1
- package/dist/journey/components/journey-steps/billing-step.d.ts.map +1 -1
- package/dist/journey/components/journey-steps/billing-step.js +8 -4
- package/dist/journey/components/journey-steps/shared.d.ts +5 -1
- package/dist/journey/components/journey-steps/shared.d.ts.map +1 -1
- package/dist/journey/components/journey-steps/shared.js +8 -2
- package/dist/journey/components/journey-steps/travelers-step.d.ts +2 -1
- package/dist/journey/components/journey-steps/travelers-step.d.ts.map +1 -1
- package/dist/journey/components/journey-steps/travelers-step.js +8 -4
- package/dist/journey/lib/email-validation.d.ts +3 -0
- package/dist/journey/lib/email-validation.d.ts.map +1 -0
- package/dist/journey/lib/email-validation.js +8 -0
- 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 +6 -6
- package/dist/schemas.d.ts +6 -6
- package/package.json +10 -10
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
|
-
activity: "activity";
|
|
138
137
|
documents: "documents";
|
|
138
|
+
activity: "activity";
|
|
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
|
-
activity: "activity";
|
|
156
155
|
documents: "documents";
|
|
156
|
+
activity: "activity";
|
|
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?: "not_required" | "pending" | "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?: "not_required" | "pending" | "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: "not_required" | "pending" | "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: "not_required" | "pending" | "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: "not_required" | "pending" | "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: "not_required" | "pending" | "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: "not_required" | "pending" | "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: "not_required" | "pending" | "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
|
-
pending: "pending";
|
|
179
178
|
not_required: "not_required";
|
|
179
|
+
pending: "pending";
|
|
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
|
-
pending: "pending";
|
|
282
281
|
not_required: "not_required";
|
|
282
|
+
pending: "pending";
|
|
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
|
-
pending: "pending";
|
|
387
386
|
not_required: "not_required";
|
|
387
|
+
pending: "pending";
|
|
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: "low" | "medium" | "high" | "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: "cancelled" | "pending" | "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: "cancelled" | "pending" | "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: "cancelled" | "pending" | "confirmed" | "rejected";
|
|
11
11
|
supplierReference: string | null;
|
|
12
12
|
costCurrency: string;
|
|
13
13
|
costAmountCents: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-journey.d.ts","sourceRoot":"","sources":["../../src/i18n/en-journey.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"en-journey.d.ts","sourceRoot":"","sources":["../../src/i18n/en-journey.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PK,CAAA"}
|
package/dist/i18n/en-journey.js
CHANGED
|
@@ -44,6 +44,7 @@ export const bookingsUiEnJourney = {
|
|
|
44
44
|
dependencyExcludes: "{dependent} can't be combined with {master}.",
|
|
45
45
|
dependencyLimitPerMaster: "At most {limit} {dependent} per {master}.",
|
|
46
46
|
dependencyLimitSum: "At most {limit} {dependent} allowed.",
|
|
47
|
+
invalidEmail: "Enter a valid email address.",
|
|
47
48
|
},
|
|
48
49
|
warnings: {
|
|
49
50
|
phoneMissing: "Phone number not set — useful for last-minute supplier contact.",
|
package/dist/i18n/en.d.ts
CHANGED
package/dist/i18n/en.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAA;YACjB,cAAc,EAAE,MAAM,CAAA;YACtB,eAAe,EAAE,MAAM,CAAA;SACxB,CAAA;KACF,CAAA;CACF,CAAA"}
|
package/dist/i18n/provider.d.ts
CHANGED
|
@@ -756,6 +756,7 @@ export declare const bookingsUiMessageDefinitions: {
|
|
|
756
756
|
dependencyExcludes: string;
|
|
757
757
|
dependencyLimitPerMaster: string;
|
|
758
758
|
dependencyLimitSum: string;
|
|
759
|
+
invalidEmail: string;
|
|
759
760
|
};
|
|
760
761
|
warnings: {
|
|
761
762
|
phoneMissing: string;
|
|
@@ -2358,6 +2359,7 @@ export declare const bookingsUiMessageDefinitions: {
|
|
|
2358
2359
|
dependencyExcludes: string;
|
|
2359
2360
|
dependencyLimitPerMaster: string;
|
|
2360
2361
|
dependencyLimitSum: string;
|
|
2362
|
+
invalidEmail: string;
|
|
2361
2363
|
};
|
|
2362
2364
|
warnings: {
|
|
2363
2365
|
phoneMissing: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,EAEb,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAKvD,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,EAEb,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAKvD,eAAO,MAAM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ot":"","sources":["../../src/i18n/ro-journey.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8PK,CAAA"}
|
package/dist/i18n/ro-journey.js
CHANGED
|
@@ -44,6 +44,7 @@ export const bookingsUiRoJourney = {
|
|
|
44
44
|
dependencyExcludes: "{dependent} nu poate fi combinat cu {master}.",
|
|
45
45
|
dependencyLimitPerMaster: "Maximum {limit} {dependent} per {master}.",
|
|
46
46
|
dependencyLimitSum: "Maximum {limit} {dependent} permis.",
|
|
47
|
+
invalidEmail: "Introdu o adresa de email valida.",
|
|
47
48
|
},
|
|
48
49
|
warnings: {
|
|
49
50
|
phoneMissing: "Numarul de telefon lipseste - util pentru contact furnizor in ultimul moment.",
|
package/dist/i18n/ro.d.ts
CHANGED
package/dist/i18n/ro.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMK,CAAA"}
|
|
@@ -26,6 +26,7 @@ export declare function buildCommitPaymentIntent(draft: Draft): {
|
|
|
26
26
|
};
|
|
27
27
|
export declare function isStepVisible(step: JourneyStep, shape: BookingDraftShape): boolean;
|
|
28
28
|
export declare function canAdvanceFromStep(step: JourneyStep, draft: Draft, shape: BookingDraftShape, available: boolean): boolean;
|
|
29
|
+
export declare function validationErrorsForStep(step: JourneyStep, draft: Draft, messages: BookingsUiMessages): ReadonlyArray<string>;
|
|
29
30
|
/**
|
|
30
31
|
* Completeness for the stacked admin accordion's AUTO-advance — stricter
|
|
31
32
|
* than `canAdvanceFromStep` so the flow pauses on sections that need a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking-journey-rules.d.ts","sourceRoot":"","sources":["../../../src/journey/components/booking-journey-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAOvB,MAAM,6DAA6D,CAAA;AACpE,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,qBAAqB,CAAA;AAC5E,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"booking-journey-rules.d.ts","sourceRoot":"","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E,iBAAiB,EACxB,QAAQ,EAAE,kBAAkB,GAC3B,aAAa,CAAC,MAAM,CAAC,CA4DvB;AAMD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,IAAI,CAMf;AAED,wBAAgB,mBAAmB,IAAI,iBAAiB,CAavD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_PAX_BANDS, DEFAULT_PAYMENT_INTENTS, defaultBookingFields, defaultDraftShapeFlags, defaultTravelerFields, paxBandsAllowedTotalFrom, } from "@voyant-travel/catalog-contracts/booking-engine/draft-shape";
|
|
2
2
|
import { formatMessage } from "../../i18n/index.js";
|
|
3
3
|
import { totalPax } from "../lib/draft-state.js";
|
|
4
|
+
import { isValidOptionalEmail } from "../lib/email-validation.js";
|
|
4
5
|
import { evaluatePaxBandDependencies } from "../lib/pax-band-dependencies.js";
|
|
5
6
|
import { findPaidScheduleRowsMissingPaymentDate } from "../lib/payment-schedule.js";
|
|
6
7
|
/**
|
|
@@ -114,11 +115,12 @@ export function canAdvanceFromStep(step, draft, shape, available) {
|
|
|
114
115
|
// collect an individual contact name (and the manual contact inputs are
|
|
115
116
|
// hidden), so requiring one would lock the step with no way to satisfy it.
|
|
116
117
|
if (draft.billing.buyerType === "B2B") {
|
|
117
|
-
return Boolean(draft.billing.organizationId);
|
|
118
|
+
return (Boolean(draft.billing.organizationId) && isValidOptionalEmail(draft.billing.contact.email));
|
|
118
119
|
}
|
|
119
120
|
const c = draft.billing.contact;
|
|
120
121
|
return (c.firstName.length > 0 &&
|
|
121
122
|
c.lastName.length > 0 &&
|
|
123
|
+
isValidOptionalEmail(c.email) &&
|
|
122
124
|
(c.email.length > 0 || Boolean(c.phone?.trim())));
|
|
123
125
|
}
|
|
124
126
|
case "travelers": {
|
|
@@ -134,7 +136,7 @@ export function canAdvanceFromStep(step, draft, shape, available) {
|
|
|
134
136
|
}
|
|
135
137
|
// Hard-reject only on canonical traveler fields (firstName, lastName);
|
|
136
138
|
// other required fields surface as warnings, fillable later.
|
|
137
|
-
return draft.travelers.every((t) => t.firstName && t.lastName);
|
|
139
|
+
return draft.travelers.every((t) => t.firstName && t.lastName && isValidOptionalEmail(t.email));
|
|
138
140
|
}
|
|
139
141
|
case "payment":
|
|
140
142
|
return findPaidScheduleRowsMissingPaymentDate(draft.paymentSchedules) === null;
|
|
@@ -142,6 +144,22 @@ export function canAdvanceFromStep(step, draft, shape, available) {
|
|
|
142
144
|
return true;
|
|
143
145
|
}
|
|
144
146
|
}
|
|
147
|
+
export function validationErrorsForStep(step, draft, messages) {
|
|
148
|
+
const errors = [];
|
|
149
|
+
switch (step) {
|
|
150
|
+
case "billing":
|
|
151
|
+
if (!isValidOptionalEmail(draft.billing.contact.email)) {
|
|
152
|
+
errors.push(messages.bookingJourney.validation.invalidEmail);
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
case "travelers":
|
|
156
|
+
if (draft.travelers.some((t) => !isValidOptionalEmail(t.email))) {
|
|
157
|
+
errors.push(messages.bookingJourney.validation.invalidEmail);
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
return errors;
|
|
162
|
+
}
|
|
145
163
|
/**
|
|
146
164
|
* Completeness for the stacked admin accordion's AUTO-advance — stricter
|
|
147
165
|
* than `canAdvanceFromStep` so the flow pauses on sections that need a
|
|
@@ -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;
|
|
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;AA+BpB,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CA8wB7E"}
|
|
@@ -8,7 +8,7 @@ import { useBookingsUiMessagesOrDefault } from "../../i18n/index.js";
|
|
|
8
8
|
import { emptyDraft, totalPax } from "../lib/draft-state.js";
|
|
9
9
|
import { findPaidScheduleRowsMissingPaymentDate } from "../lib/payment-schedule.js";
|
|
10
10
|
import { JOURNEY_STEP_ORDER, } from "../types.js";
|
|
11
|
-
import { buildCommitParty, buildCommitPaymentIntent, canAdvanceFromStep, defaultMinimalShape, isStepVisible, makeHoldSignature, resolveInitialStatus, stackedStepComplete, warningsForStep, } from "./booking-journey-rules.js";
|
|
11
|
+
import { buildCommitParty, buildCommitPaymentIntent, canAdvanceFromStep, defaultMinimalShape, isStepVisible, makeHoldSignature, resolveInitialStatus, stackedStepComplete, validationErrorsForStep, warningsForStep, } from "./booking-journey-rules.js";
|
|
12
12
|
import { ConfigureStepSkeleton } from "./configure-step-skeleton.js";
|
|
13
13
|
import { ContractPreviewDialog } from "./contract-preview-dialog.js";
|
|
14
14
|
import { AccommodationStep, AddonsStep, BillingStep, DepartureStep, DocumentsStep, FinalizeControls, OptionsStep, PaymentStep, ReviewStep, TravelersStep, } from "./journey-steps.js";
|
|
@@ -396,9 +396,9 @@ export function BookingJourney(props) {
|
|
|
396
396
|
case "options":
|
|
397
397
|
return (_jsx(OptionsStep, { draft: draft, setDraft: setDraft, shape: shape, productId: props.entityId, renderUnitsPicker: props.renderUnitsPicker }));
|
|
398
398
|
case "billing":
|
|
399
|
-
return (_jsx(BillingStep, { draft: draft, setDraft: setDraft, shape: shape, renderLeadContactPicker: props.renderLeadContactPicker, renderExtras: billingExtrasSlot, warnings: warningsForStep("billing", draft, shape, messages) }));
|
|
399
|
+
return (_jsx(BillingStep, { draft: draft, setDraft: setDraft, shape: shape, renderLeadContactPicker: props.renderLeadContactPicker, renderExtras: billingExtrasSlot, errors: validationErrorsForStep("billing", draft, messages), warnings: warningsForStep("billing", draft, shape, messages) }));
|
|
400
400
|
case "travelers":
|
|
401
|
-
return (_jsx(TravelersStep, { draft: draft, setDraft: setDraft, shape: shape, renderTravelerContactPicker: props.renderTravelerContactPicker, warnings: warningsForStep("travelers", draft, shape, messages) }));
|
|
401
|
+
return (_jsx(TravelersStep, { draft: draft, setDraft: setDraft, shape: shape, renderTravelerContactPicker: props.renderTravelerContactPicker, errors: validationErrorsForStep("travelers", draft, messages), warnings: warningsForStep("travelers", draft, shape, messages) }));
|
|
402
402
|
case "accommodation":
|
|
403
403
|
return _jsx(AccommodationStep, { draft: draft, setDraft: setDraft, shape: shape });
|
|
404
404
|
case "addons":
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { LeadContactPickerProps } from "../../types.js";
|
|
2
2
|
import { type StepCommonProps } from "./shared.js";
|
|
3
|
-
export declare function BillingStep({ draft, setDraft, renderLeadContactPicker, renderExtras, warnings, }: StepCommonProps & {
|
|
3
|
+
export declare function BillingStep({ draft, setDraft, renderLeadContactPicker, renderExtras, warnings, errors, }: StepCommonProps & {
|
|
4
4
|
renderLeadContactPicker?: (props: LeadContactPickerProps) => React.ReactNode;
|
|
5
5
|
renderExtras?: () => React.ReactNode;
|
|
6
6
|
warnings?: ReadonlyArray<string>;
|
|
7
|
+
errors?: ReadonlyArray<string>;
|
|
7
8
|
}): React.ReactElement;
|
|
8
9
|
//# sourceMappingURL=billing-step.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-step.d.ts","sourceRoot":"","sources":["../../../../src/journey/components/journey-steps/billing-step.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billing-step.d.ts","sourceRoot":"","sources":["../../../../src/journey/components/journey-steps/billing-step.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,aAAa,CAAA;AAMpB,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,uBAAuB,EACvB,YAAY,EACZ,QAAQ,EACR,MAAM,GACP,EAAE,eAAe,GAAG;IACnB,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,SAAS,CAAA;IAC5E,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAC/B,GAAG,KAAK,CAAC,YAAY,CA8OrB"}
|
|
@@ -7,13 +7,17 @@ import { Label } from "@voyant-travel/ui/components/label";
|
|
|
7
7
|
import { RadioGroup, RadioGroupItem } from "@voyant-travel/ui/components/radio-group";
|
|
8
8
|
import { useBookingsUiMessagesOrDefault } from "../../../i18n/index.js";
|
|
9
9
|
import { patchBilling, setBillingBuyerType } from "../../lib/draft-state.js";
|
|
10
|
-
import {
|
|
10
|
+
import { isValidOptionalEmail } from "../../lib/email-validation.js";
|
|
11
|
+
import { Field, JourneyErrors, JourneyWarnings, PhoneField, } from "./shared.js";
|
|
11
12
|
// ─────────────────────────────────────────────────────────────────
|
|
12
13
|
// Billing
|
|
13
14
|
// ─────────────────────────────────────────────────────────────────
|
|
14
|
-
export function BillingStep({ draft, setDraft, renderLeadContactPicker, renderExtras, warnings, }) {
|
|
15
|
+
export function BillingStep({ draft, setDraft, renderLeadContactPicker, renderExtras, warnings, errors, }) {
|
|
15
16
|
const messages = useBookingsUiMessagesOrDefault();
|
|
16
17
|
const billing = draft.billing;
|
|
18
|
+
const emailError = isValidOptionalEmail(billing.contact.email)
|
|
19
|
+
? undefined
|
|
20
|
+
: messages.bookingJourney.validation.invalidEmail;
|
|
17
21
|
// Merge each partial from the picker (person record, org record, address
|
|
18
22
|
// lookup) into the billing draft without clobbering the other slices.
|
|
19
23
|
const apply = (next) => {
|
|
@@ -50,7 +54,7 @@ export function BillingStep({ draft, setDraft, renderLeadContactPicker, renderEx
|
|
|
50
54
|
contact: { ...billing.contact, firstName: v },
|
|
51
55
|
})) }), _jsx(Field, { id: "bj-billing-lastName", label: messages.bookingJourney.billing.lastName, value: billing.contact.lastName, onChange: (v) => setDraft(patchBilling(draft, {
|
|
52
56
|
contact: { ...billing.contact, lastName: v },
|
|
53
|
-
})) }), _jsx(Field, { id: "bj-billing-email", label: messages.bookingJourney.billing.email, type: "email", value: billing.contact.email, onChange: (v) => setDraft(patchBilling(draft, {
|
|
57
|
+
})) }), _jsx(Field, { id: "bj-billing-email", label: messages.bookingJourney.billing.email, type: "email", value: billing.contact.email, error: emailError, onChange: (v) => setDraft(patchBilling(draft, {
|
|
54
58
|
contact: { ...billing.contact, email: v },
|
|
55
59
|
})) }), _jsx(PhoneField, { id: "bj-billing-phone", label: messages.bookingJourney.billing.phone, value: billing.contact.phone ?? "", onChange: (v) => setDraft(patchBilling(draft, {
|
|
56
60
|
contact: { ...billing.contact, phone: v },
|
|
@@ -74,5 +78,5 @@ export function BillingStep({ draft, setDraft, renderLeadContactPicker, renderEx
|
|
|
74
78
|
...(billing.company ?? { name: "" }),
|
|
75
79
|
vatId: v,
|
|
76
80
|
},
|
|
77
|
-
})) })] })) : null] })), renderExtras ? _jsx("div", { children: renderExtras() }) : null, _jsx(JourneyWarnings, { warnings: warnings })] })] }));
|
|
81
|
+
})) })] })) : null] })), renderExtras ? _jsx("div", { children: renderExtras() }) : null, _jsx(JourneyErrors, { errors: errors }), _jsx(JourneyWarnings, { warnings: warnings })] })] }));
|
|
78
82
|
}
|
|
@@ -22,13 +22,17 @@ export interface StepCommonProps {
|
|
|
22
22
|
export declare function JourneyWarnings({ warnings, }: {
|
|
23
23
|
warnings?: ReadonlyArray<string>;
|
|
24
24
|
}): React.ReactElement | null;
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function JourneyErrors({ errors, }: {
|
|
26
|
+
errors?: ReadonlyArray<string>;
|
|
27
|
+
}): React.ReactElement | null;
|
|
28
|
+
export declare function Field({ id, label, value, onChange, type, placeholder, error, }: {
|
|
26
29
|
id: string;
|
|
27
30
|
label: string;
|
|
28
31
|
value: string;
|
|
29
32
|
onChange: (v: string) => void;
|
|
30
33
|
type?: string;
|
|
31
34
|
placeholder?: string;
|
|
35
|
+
error?: string;
|
|
32
36
|
}): React.ReactElement;
|
|
33
37
|
export declare function PhoneField({ id, label, value, onChange, }: {
|
|
34
38
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/journey/components/journey-steps/shared.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAA;AAYpG,OAAO,EAAiB,8BAA8B,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAE5E,kFAAkF;AAClF,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,oBAAoB,KAAK,KAAK,CAAC,SAAS,CAAA;AACpF,+EAA+E;AAC/E,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAA;AAE5E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;IAIZ,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,KAAK,CAAC,KAAK,IAAI,CAAA;IAC1D,KAAK,EAAE,iBAAiB,CAAA;CACzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CACjC,GAAG,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,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACxD,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9B,GAAG,KAAK,CAAC,YAAY,CAmBrB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQrD;AAED,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,QAAQ,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,GAC1D,MAAM,CAkBR;AAGD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAYjG;AAED,wBAAgB,WAAW,IAAI,MAAM,CAKpC"}
|
|
@@ -15,8 +15,14 @@ export function JourneyWarnings({ warnings, }) {
|
|
|
15
15
|
return null;
|
|
16
16
|
return (_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))) }));
|
|
17
17
|
}
|
|
18
|
-
export function
|
|
19
|
-
|
|
18
|
+
export function JourneyErrors({ errors, }) {
|
|
19
|
+
if (!errors || errors.length === 0)
|
|
20
|
+
return null;
|
|
21
|
+
return (_jsx("ul", { className: "space-y-1 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-destructive text-sm", children: errors.map((error) => (_jsx("li", { children: error }, error))) }));
|
|
22
|
+
}
|
|
23
|
+
export function Field({ id, label, value, onChange, type, placeholder, error, }) {
|
|
24
|
+
const errorId = `${id}-error`;
|
|
25
|
+
return (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { htmlFor: id, children: label }), _jsx(Input, { id: id, type: type ?? "text", value: value, placeholder: placeholder, "aria-invalid": error ? true : undefined, "aria-describedby": error ? errorId : undefined, onChange: (e) => onChange(e.target.value) }), error ? (_jsx("p", { id: errorId, className: "text-destructive text-xs", role: "alert", children: error })) : null] }));
|
|
20
26
|
}
|
|
21
27
|
export function PhoneField({ id, label, value, onChange, }) {
|
|
22
28
|
return (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { htmlFor: id, children: label }), _jsx(PhoneInput, { id: id, defaultCountry: "GB", international: true, value: value || undefined, onChange: (v) => onChange(v ? String(v) : "") })] }));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { TravelerContactPickerProps } from "../../types.js";
|
|
2
2
|
import { type StepCommonProps } from "./shared.js";
|
|
3
|
-
export declare function TravelersStep({ draft, setDraft, shape, renderTravelerContactPicker, warnings, }: StepCommonProps & {
|
|
3
|
+
export declare function TravelersStep({ draft, setDraft, shape, renderTravelerContactPicker, warnings, errors, }: StepCommonProps & {
|
|
4
4
|
renderTravelerContactPicker?: (props: TravelerContactPickerProps) => React.ReactNode;
|
|
5
5
|
warnings?: ReadonlyArray<string>;
|
|
6
|
+
errors?: ReadonlyArray<string>;
|
|
6
7
|
}): React.ReactElement;
|
|
7
8
|
//# sourceMappingURL=travelers-step.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"travelers-step.d.ts","sourceRoot":"","sources":["../../../../src/journey/components/journey-steps/travelers-step.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"travelers-step.d.ts","sourceRoot":"","sources":["../../../../src/journey/components/journey-steps/travelers-step.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,EASL,KAAK,eAAe,EACrB,MAAM,aAAa,CAAA;AA+BpB,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,2BAA2B,EAC3B,QAAQ,EACR,MAAM,GACP,EAAE,eAAe,GAAG;IACnB,2BAA2B,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,KAAK,CAAC,SAAS,CAAA;IACpF,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAC/B,GAAG,KAAK,CAAC,YAAY,CAyGrB"}
|
|
@@ -7,8 +7,9 @@ import { Plus } from "lucide-react";
|
|
|
7
7
|
import { useEffect, useRef } from "react";
|
|
8
8
|
import { formatMessage, useBookingsUiMessagesOrDefault } from "../../../i18n/index.js";
|
|
9
9
|
import { canCopyBillingContactToTraveler, patchConfigure, setTravelers, totalPax, } from "../../lib/draft-state.js";
|
|
10
|
+
import { isValidOptionalEmail } from "../../lib/email-validation.js";
|
|
10
11
|
import { PaxDependencyWarnings, PaxValidation } from "./configure-steps.js";
|
|
11
|
-
import { computeAge, cryptoRowId, DateField, Field, JourneyWarnings, PhoneField, SelectField, } from "./shared.js";
|
|
12
|
+
import { computeAge, cryptoRowId, DateField, Field, JourneyErrors, JourneyWarnings, PhoneField, SelectField, } from "./shared.js";
|
|
12
13
|
/** Pax counts are DERIVED from the traveler rows — each row's band is the
|
|
13
14
|
* source of truth, so the quote always matches who's actually in the list. */
|
|
14
15
|
function paxFromTravelers(travelers, bands) {
|
|
@@ -24,7 +25,7 @@ function paxFromTravelers(travelers, bands) {
|
|
|
24
25
|
function applyTravelers(draft, next, bands) {
|
|
25
26
|
return patchConfigure(setTravelers(draft, next), { pax: paxFromTravelers(next, bands) });
|
|
26
27
|
}
|
|
27
|
-
export function TravelersStep({ draft, setDraft, shape, renderTravelerContactPicker, warnings, }) {
|
|
28
|
+
export function TravelersStep({ draft, setDraft, shape, renderTravelerContactPicker, warnings, errors, }) {
|
|
28
29
|
const messages = useBookingsUiMessagesOrDefault();
|
|
29
30
|
const travelers = draft.travelers;
|
|
30
31
|
const bands = shape.paxBands;
|
|
@@ -80,7 +81,7 @@ export function TravelersStep({ draft, setDraft, shape, renderTravelerContactPic
|
|
|
80
81
|
setDraft(applyTravelers(draft, next, bands));
|
|
81
82
|
};
|
|
82
83
|
return (_jsx(TravelerCard, { idx: idx, traveler: traveler, shape: shape, draft: draft, setDraft: setDraft, renderTravelerContactPicker: renderTravelerContactPicker, apply: apply, showBandSelect: hasBandChoice, onRemove: travelers.length > 1 ? () => removeTraveler(idx) : undefined }, traveler.rowId ?? idx));
|
|
83
|
-
}), _jsxs(Button, { type: "button", variant: "outline", size: "sm", onClick: addTraveler, disabled: atMax, className: "w-full", children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), messages.bookingJourney.travelers.addTraveler] }), _jsx(PaxValidation, { draft: draft, shape: shape }), _jsx(PaxDependencyWarnings, { draft: draft, shape: shape }), _jsx(JourneyWarnings, { warnings: warnings })] })] }));
|
|
84
|
+
}), _jsxs(Button, { type: "button", variant: "outline", size: "sm", onClick: addTraveler, disabled: atMax, className: "w-full", children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), messages.bookingJourney.travelers.addTraveler] }), _jsx(PaxValidation, { draft: draft, shape: shape }), _jsx(PaxDependencyWarnings, { draft: draft, shape: shape }), _jsx(JourneyErrors, { errors: errors }), _jsx(JourneyWarnings, { warnings: warnings })] })] }));
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
86
87
|
* One traveler block — type (band) selector, name, optional contact, age, and
|
|
@@ -106,6 +107,9 @@ function TravelerCard({ idx, traveler, shape, draft, setDraft, renderTravelerCon
|
|
|
106
107
|
// documents) always show.
|
|
107
108
|
const showIdentity = !renderTravelerContactPicker;
|
|
108
109
|
const gridHasContent = showIdentity || Boolean(dobField) || dynamicFields.length > 0;
|
|
110
|
+
const emailError = isValidOptionalEmail(traveler.email)
|
|
111
|
+
? undefined
|
|
112
|
+
: messages.bookingJourney.validation.invalidEmail;
|
|
109
113
|
// Live age from DOB — surfaces in the header so the user gets feedback as
|
|
110
114
|
// they pick a date.
|
|
111
115
|
const computedAge = traveler.dateOfBirth ? computeAge(traveler.dateOfBirth) : null;
|
|
@@ -166,7 +170,7 @@ function TravelerCard({ idx, traveler, shape, draft, setDraft, renderTravelerCon
|
|
|
166
170
|
rowIndex: idx,
|
|
167
171
|
apply,
|
|
168
172
|
selectedPersonId: traveler.personId,
|
|
169
|
-
}) })) : null, gridHasContent ? (_jsxs("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: [showIdentity ? (_jsxs(_Fragment, { children: [_jsx(Field, { id: `bj-trav-${idx}-first`, label: messages.bookingJourney.billing.firstName, value: traveler.firstName, onChange: (v) => patchRow({ firstName: v }) }), _jsx(Field, { id: `bj-trav-${idx}-last`, label: messages.bookingJourney.billing.lastName, value: traveler.lastName, onChange: (v) => patchRow({ lastName: v }) }), applicableFields.some((f) => f.key === "email") ? (_jsx(Field, { id: `bj-trav-${idx}-email`, label: messages.bookingJourney.billing.email, type: "email", value: traveler.email ?? "", onChange: (v) => patchRow({ email: v }) })) : null, phoneField ? (_jsx(PhoneField, { id: `bj-trav-${idx}-phone`,
|
|
173
|
+
}) })) : null, gridHasContent ? (_jsxs("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2", children: [showIdentity ? (_jsxs(_Fragment, { children: [_jsx(Field, { id: `bj-trav-${idx}-first`, label: messages.bookingJourney.billing.firstName, value: traveler.firstName, onChange: (v) => patchRow({ firstName: v }) }), _jsx(Field, { id: `bj-trav-${idx}-last`, label: messages.bookingJourney.billing.lastName, value: traveler.lastName, onChange: (v) => patchRow({ lastName: v }) }), applicableFields.some((f) => f.key === "email") ? (_jsx(Field, { id: `bj-trav-${idx}-email`, label: messages.bookingJourney.billing.email, type: "email", value: traveler.email ?? "", error: emailError, onChange: (v) => patchRow({ email: v }) })) : null, phoneField ? (_jsx(PhoneField, { id: `bj-trav-${idx}-phone`,
|
|
170
174
|
// i18n-literal-ok Required marker appended to a descriptor-supplied field label.
|
|
171
175
|
label: phoneField.label + (phoneField.required ? " *" : ""), value: traveler.phone ?? "", onChange: (v) => patchRow({ phone: v }) })) : null] })) : null, dobField ? (_jsxs("div", { className: "space-y-1", children: [_jsx(DateField, { id: `bj-trav-${idx}-dob`,
|
|
172
176
|
// i18n-literal-ok Required marker appended to a descriptor-supplied field label.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-validation.d.ts","sourceRoot":"","sources":["../../../src/journey/lib/email-validation.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE9E"}
|
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: "cancelled" | "pending" | "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: "cancelled" | "pending" | "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: "cancelled" | "pending" | "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: "cancelled" | "pending" | "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" | "country" | "datetime" | "single_select" | "multi_select";
|
|
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" | "country" | "datetime" | "single_select" | "multi_select";
|
|
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" | "country" | "datetime" | "single_select" | "multi_select";
|
|
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" | "country" | "datetime" | "single_select" | "multi_select";
|
|
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" | "country" | "datetime" | "single_select" | "multi_select";
|
|
194
194
|
placeholder: string | null;
|
|
195
195
|
helpText: string | null;
|
|
196
196
|
isRequired: boolean;
|
|
@@ -26,10 +26,10 @@ export declare const questionFieldTypeSchema: z.ZodEnum<{
|
|
|
26
26
|
phone: "phone";
|
|
27
27
|
textarea: "textarea";
|
|
28
28
|
text: "text";
|
|
29
|
+
country: "country";
|
|
30
|
+
datetime: "datetime";
|
|
29
31
|
single_select: "single_select";
|
|
30
32
|
multi_select: "multi_select";
|
|
31
|
-
datetime: "datetime";
|
|
32
|
-
country: "country";
|
|
33
33
|
}>;
|
|
34
34
|
export declare const bookingQuestionSchema: z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
@@ -55,10 +55,10 @@ export declare const bookingQuestionSchema: z.ZodObject<{
|
|
|
55
55
|
phone: "phone";
|
|
56
56
|
textarea: "textarea";
|
|
57
57
|
text: "text";
|
|
58
|
+
country: "country";
|
|
59
|
+
datetime: "datetime";
|
|
58
60
|
single_select: "single_select";
|
|
59
61
|
multi_select: "multi_select";
|
|
60
|
-
datetime: "datetime";
|
|
61
|
-
country: "country";
|
|
62
62
|
}>;
|
|
63
63
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
64
64
|
helpText: z.ZodNullable<z.ZodString>;
|
|
@@ -166,10 +166,10 @@ export declare const bookingQuestionListResponse: z.ZodObject<{
|
|
|
166
166
|
phone: "phone";
|
|
167
167
|
textarea: "textarea";
|
|
168
168
|
text: "text";
|
|
169
|
+
country: "country";
|
|
170
|
+
datetime: "datetime";
|
|
169
171
|
single_select: "single_select";
|
|
170
172
|
multi_select: "multi_select";
|
|
171
|
-
datetime: "datetime";
|
|
172
|
-
country: "country";
|
|
173
173
|
}>;
|
|
174
174
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
175
175
|
helpText: 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
|
-
pending: "pending";
|
|
26
25
|
cancelled: "cancelled";
|
|
26
|
+
pending: "pending";
|
|
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
|
-
pending: "pending";
|
|
281
280
|
cancelled: "cancelled";
|
|
281
|
+
pending: "pending";
|
|
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
|
-
pending: "pending";
|
|
1703
1702
|
cancelled: "cancelled";
|
|
1703
|
+
pending: "pending";
|
|
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";
|
|
2248
2247
|
low: "low";
|
|
2249
2248
|
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";
|
|
2291
2290
|
low: "low";
|
|
2292
2291
|
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";
|
|
2381
2380
|
low: "low";
|
|
2382
2381
|
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.141.
|
|
3
|
+
"version": "0.141.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"react-hook-form": "^7.80.0",
|
|
147
147
|
"zod": "^4.0.0",
|
|
148
148
|
"@voyant-travel/admin": "^0.116.0",
|
|
149
|
-
"@voyant-travel/bookings": "^0.141.
|
|
150
|
-
"@voyant-travel/catalog-react": "^0.139.0",
|
|
149
|
+
"@voyant-travel/bookings": "^0.141.1",
|
|
151
150
|
"@voyant-travel/distribution-react": "^0.131.0",
|
|
152
151
|
"@voyant-travel/relationships-react": "^0.141.0",
|
|
152
|
+
"@voyant-travel/catalog-react": "^0.139.0",
|
|
153
153
|
"@voyant-travel/finance-react": "^0.141.0",
|
|
154
154
|
"@voyant-travel/identity-react": "^0.141.0",
|
|
155
155
|
"@voyant-travel/legal-react": "^0.141.0",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
},
|
|
205
205
|
"dependencies": {
|
|
206
206
|
"sonner": "^2.0.7",
|
|
207
|
-
"@voyant-travel/catalog-contracts": "^0.108.
|
|
207
|
+
"@voyant-travel/catalog-contracts": "^0.108.2",
|
|
208
208
|
"@voyant-travel/i18n": "^0.110.0",
|
|
209
209
|
"@voyant-travel/react": "^0.104.1",
|
|
210
210
|
"@voyant-travel/types": "^0.107.0"
|
|
@@ -223,18 +223,18 @@
|
|
|
223
223
|
"vitest": "^4.1.9",
|
|
224
224
|
"zod": "^4.4.3",
|
|
225
225
|
"@voyant-travel/admin": "^0.116.0",
|
|
226
|
-
"@voyant-travel/bookings": "^0.141.
|
|
226
|
+
"@voyant-travel/bookings": "^0.141.1",
|
|
227
227
|
"@voyant-travel/catalog-react": "^0.139.0",
|
|
228
|
-
"@voyant-travel/distribution-react": "^0.131.0",
|
|
229
228
|
"@voyant-travel/relationships-react": "^0.141.0",
|
|
230
|
-
"@voyant-travel/
|
|
231
|
-
"@voyant-travel/identity-react": "^0.141.0",
|
|
229
|
+
"@voyant-travel/distribution-react": "^0.131.0",
|
|
232
230
|
"@voyant-travel/legal-react": "^0.141.0",
|
|
233
|
-
"@voyant-travel/
|
|
231
|
+
"@voyant-travel/identity-react": "^0.141.0",
|
|
234
232
|
"@voyant-travel/inventory-react": "^0.23.0",
|
|
235
233
|
"@voyant-travel/react": "^0.104.1",
|
|
236
|
-
"@voyant-travel/
|
|
234
|
+
"@voyant-travel/commerce-react": "^0.23.0",
|
|
235
|
+
"@voyant-travel/finance-react": "^0.141.0",
|
|
237
236
|
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
237
|
+
"@voyant-travel/ui": "^0.108.10",
|
|
238
238
|
"@voyant-travel/operations-react": "^0.22.0"
|
|
239
239
|
},
|
|
240
240
|
"files": [
|