@voyant-travel/bookings-react 0.141.1 → 0.141.3

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.
@@ -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";
@@ -7,7 +7,7 @@ export interface UploadedFile {
7
7
  name: string;
8
8
  }
9
9
  export interface FileDropzoneProps {
10
- /** URL of the upload endpoint (defaults to /api/v1/admin/uploads). */
10
+ /** URL of the upload endpoint. Defaults to the Voyant provider API base. */
11
11
  uploadUrl?: string;
12
12
  /** MIME types or extensions to accept (same format as <input accept>). */
13
13
  accept?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"file-dropzone.d.ts","sourceRoot":"","sources":["../../src/components/file-dropzone.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wCAAwC;IACxC,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,gEAAgE;IAChE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAmC,EACnC,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,iBAAiB,qBA+KnB"}
1
+ {"version":3,"file":"file-dropzone.d.ts","sourceRoot":"","sources":["../../src/components/file-dropzone.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wCAAwC;IACxC,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,gEAAgE;IAChE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,iBAAiB,qBAgLnB"}
@@ -3,7 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
3
3
  import { File as FileIcon, Loader2, Upload, X } from "lucide-react";
4
4
  import * as React from "react";
5
5
  import { formatMessage, useBookingsUiI18nOrDefault, useBookingsUiMessagesOrDefault, } from "../i18n/provider.js";
6
- export function FileDropzone({ uploadUrl = "/api/v1/admin/uploads", accept, maxSize, onUploaded, onCleared, onError, helperText, disabled, }) {
6
+ import { useVoyantBookingsContext } from "../provider.js";
7
+ export function FileDropzone({ uploadUrl, accept, maxSize, onUploaded, onCleared, onError, helperText, disabled, }) {
8
+ const client = useVoyantBookingsContext();
7
9
  const inputRef = React.useRef(null);
8
10
  const [isDragging, setIsDragging] = React.useState(false);
9
11
  const [isUploading, setIsUploading] = React.useState(false);
@@ -12,6 +14,7 @@ export function FileDropzone({ uploadUrl = "/api/v1/admin/uploads", accept, maxS
12
14
  const { formatNumber } = useBookingsUiI18nOrDefault();
13
15
  const messages = useBookingsUiMessagesOrDefault();
14
16
  const resolvedHelperText = helperText ?? messages.fileDropzone.helperText;
17
+ const resolvedUploadUrl = uploadUrl ?? joinUrl(client.baseUrl, "/v1/admin/uploads");
15
18
  const formatSize = React.useCallback((bytes) => {
16
19
  if (bytes < 1024)
17
20
  return `${formatNumber(bytes)} B`;
@@ -36,10 +39,9 @@ export function FileDropzone({ uploadUrl = "/api/v1/admin/uploads", accept, maxS
36
39
  try {
37
40
  const formData = new FormData();
38
41
  formData.append("file", file);
39
- const res = await fetch(uploadUrl, {
42
+ const res = await client.fetcher(resolvedUploadUrl, {
40
43
  method: "POST", // i18n-literal-ok HTTP method
41
44
  body: formData,
42
- credentials: "include", // i18n-literal-ok fetch credentials mode
43
45
  });
44
46
  if (!res.ok) {
45
47
  const body = await res.text();
@@ -101,3 +103,8 @@ export function FileDropzone({ uploadUrl = "/api/v1/admin/uploads", accept, maxS
101
103
  }
102
104
  return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("button", { type: "button", onClick: () => inputRef.current?.click(), onDrop: handleDrop, onDragOver: handleDragOver, onDragLeave: handleDragLeave, disabled: disabled || isUploading, "data-dragging": isDragging, className: "flex flex-col items-center justify-center gap-2 rounded-md border border-dashed px-4 py-8 text-center transition-colors hover:border-foreground/30 hover:bg-muted/30 data-[dragging=true]:border-primary data-[dragging=true]:bg-primary/5 disabled:cursor-not-allowed disabled:opacity-60", children: isUploading ? (_jsxs(_Fragment, { children: [_jsx(Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" }), _jsx("p", { className: "text-sm text-muted-foreground", children: messages.fileDropzone.uploading })] })) : (_jsxs(_Fragment, { children: [_jsx(Upload, { className: "h-6 w-6 text-muted-foreground" }), _jsx("p", { className: "text-sm text-muted-foreground", children: resolvedHelperText }), accept && (_jsxs("p", { className: "text-xs text-muted-foreground", children: [messages.fileDropzone.acceptedPrefix, " ", accept] }))] })) }), _jsx("input", { ref: inputRef, type: "file", className: "hidden", accept: accept, onChange: handleChange, disabled: disabled || isUploading }), error && _jsx("p", { className: "text-xs text-destructive", children: error })] }));
103
105
  }
106
+ function joinUrl(baseUrl, path) {
107
+ const trimmedBase = baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl;
108
+ const trimmedPath = path.startsWith("/") ? path : `/${path}`;
109
+ return `${trimmedBase}${trimmedPath}`;
110
+ }
@@ -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?: "not_required" | "pending" | "collected" | "waived" | "refunded" | undefined;
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?: "not_required" | "pending" | "collected" | "waived" | "refunded" | undefined;
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
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: "not_required" | "pending" | "collected" | "waived" | "refunded";
442
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
443
443
  collectionCurrency: string | null;
444
444
  collectionAmountCents: number | null;
445
445
  collectedAt: string | null;
@@ -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: "low" | "medium" | "high" | "critical";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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":"side-panel.d.ts","sourceRoot":"","sources":["../../../src/journey/components/side-panel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAiB,8BAA8B,EAAE,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAwB,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEpF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,SAAS,EACT,aAAa,EACb,aAAa,EACb,WAAW,EACX,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,aAAa,GACd,EAAE,cAAc,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;kDAC8C;IAC9C,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC,GAAG,KAAK,CAAC,YAAY,CA2FrB;AAoFD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAC3C,QAAQ,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,GAC1D,MAAM,CAkER"}
1
+ {"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../src/journey/components/side-panel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAiB,8BAA8B,EAAE,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAwB,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEpF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,SAAS,EACT,aAAa,EACb,aAAa,EACb,WAAW,EACX,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,aAAa,GACd,EAAE,cAAc,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;kDAC8C;IAC9C,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC,GAAG,KAAK,CAAC,YAAY,CA2FrB;AAoFD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAC3C,QAAQ,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,GAC1D,MAAM,CAmER"}
@@ -63,7 +63,7 @@ export function stepHeadline(step, draft, messages) {
63
63
  case "departure": {
64
64
  const range = draft.configure?.dateRange;
65
65
  if (range?.checkIn && range?.checkOut)
66
- return `${range.checkIn} → ${range.checkOut}`;
66
+ return `${formatConfigureDate(range.checkIn)} → ${formatConfigureDate(range.checkOut)}`;
67
67
  // Never surface the raw slot id — show the departure date.
68
68
  return draft.configure?.departureDate
69
69
  ? formatConfigureDate(draft.configure.departureDate)
@@ -149,7 +149,7 @@ function DepartureDetails({ draft, }) {
149
149
  const messages = useBookingsUiMessagesOrDefault();
150
150
  const cfg = draft.configure ?? {};
151
151
  const range = cfg.dateRange;
152
- return (_jsxs("dl", { className: "space-y-1 text-xs", children: [cfg.departureDate ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.departure, value: formatConfigureDate(cfg.departureDate) })) : null, range?.checkIn ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.checkIn, value: range.checkIn })) : null, range?.checkOut ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.checkOut, value: range.checkOut })) : null] }));
152
+ return (_jsxs("dl", { className: "space-y-1 text-xs", children: [cfg.departureDate ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.departure, value: formatConfigureDate(cfg.departureDate) })) : null, range?.checkIn ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.checkIn, value: formatConfigureDate(range.checkIn) })) : null, range?.checkOut ? (_jsx(Row, { label: messages.bookingJourney.sidePanel.checkOut, value: formatConfigureDate(range.checkOut) })) : null] }));
153
153
  }
154
154
  function OptionsDetails({ draft, }) {
155
155
  const messages = useBookingsUiMessagesOrDefault();
@@ -239,9 +239,13 @@ function formatConfigureDate(iso) {
239
239
  const date = new Date(iso);
240
240
  if (Number.isNaN(date.getTime()))
241
241
  return iso;
242
+ // Date-only strings parse as UTC midnight; render them in UTC so the
243
+ // calendar date is not shifted for viewers in timezones west of UTC.
244
+ const timeZone = /^\d{4}-\d{2}-\d{2}$/.test(iso) ? "UTC" : undefined;
242
245
  return new Intl.DateTimeFormat(undefined, {
243
246
  year: "numeric",
244
247
  month: "short",
245
248
  day: "numeric",
249
+ timeZone,
246
250
  }).format(date);
247
251
  }
@@ -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: "cancelled" | "pending" | "confirmed" | "rejected";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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: "cancelled" | "pending" | "confirmed" | "rejected";
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" | "country" | "datetime" | "single_select" | "multi_select";
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" | "country" | "datetime" | "single_select" | "multi_select";
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" | "country" | "datetime" | "single_select" | "multi_select";
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" | "country" | "datetime" | "single_select" | "multi_select";
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" | "country" | "datetime" | "single_select" | "multi_select";
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,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";
31
29
  single_select: "single_select";
32
30
  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";
60
58
  single_select: "single_select";
61
59
  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";
171
169
  single_select: "single_select";
172
170
  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
- 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.141.1",
3
+ "version": "0.141.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -146,17 +146,17 @@
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.1",
150
- "@voyant-travel/distribution-react": "^0.131.0",
151
- "@voyant-travel/relationships-react": "^0.141.0",
149
+ "@voyant-travel/bookings": "^0.141.3",
152
150
  "@voyant-travel/catalog-react": "^0.139.0",
153
- "@voyant-travel/finance-react": "^0.141.0",
154
- "@voyant-travel/identity-react": "^0.141.0",
151
+ "@voyant-travel/relationships-react": "^0.141.0",
152
+ "@voyant-travel/distribution-react": "^0.131.0",
153
+ "@voyant-travel/finance-react": "^0.141.1",
155
154
  "@voyant-travel/legal-react": "^0.141.0",
155
+ "@voyant-travel/identity-react": "^0.141.0",
156
156
  "@voyant-travel/commerce-react": "^0.23.0",
157
- "@voyant-travel/inventory-react": "^0.23.0",
158
- "@voyant-travel/ui": "^0.108.10",
159
- "@voyant-travel/operations-react": "^0.22.0"
157
+ "@voyant-travel/operations-react": "^0.22.0",
158
+ "@voyant-travel/inventory-react": "^0.23.1",
159
+ "@voyant-travel/ui": "^0.108.10"
160
160
  },
161
161
  "peerDependenciesMeta": {
162
162
  "@tanstack/react-table": {
@@ -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.1",
227
226
  "@voyant-travel/catalog-react": "^0.139.0",
228
- "@voyant-travel/relationships-react": "^0.141.0",
229
- "@voyant-travel/distribution-react": "^0.131.0",
227
+ "@voyant-travel/bookings": "^0.141.3",
230
228
  "@voyant-travel/legal-react": "^0.141.0",
229
+ "@voyant-travel/finance-react": "^0.141.1",
231
230
  "@voyant-travel/identity-react": "^0.141.0",
232
- "@voyant-travel/inventory-react": "^0.23.0",
233
231
  "@voyant-travel/react": "^0.104.1",
234
232
  "@voyant-travel/commerce-react": "^0.23.0",
235
- "@voyant-travel/finance-react": "^0.141.0",
236
- "@voyant-travel/voyant-typescript-config": "^0.1.0",
233
+ "@voyant-travel/inventory-react": "^0.23.1",
234
+ "@voyant-travel/distribution-react": "^0.131.0",
235
+ "@voyant-travel/relationships-react": "^0.141.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.22.0"
239
239
  },
240
240
  "files": [