@voyant-travel/bookings-react 0.136.2 → 0.137.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.
Files changed (62) hide show
  1. package/dist/admin/index.d.ts +10 -10
  2. package/dist/components/booking-create-sheet.d.ts +1 -1
  3. package/dist/components/booking-create-sheet.js +1 -1
  4. package/dist/components/file-dropzone.d.ts +1 -1
  5. package/dist/components/file-dropzone.d.ts.map +1 -1
  6. package/dist/components/file-dropzone.js +1 -1
  7. package/dist/components/option-units-stepper-section.d.ts +1 -1
  8. package/dist/components/option-units-stepper-section.js +1 -1
  9. package/dist/components/voucher-picker-section.d.ts +1 -1
  10. package/dist/components/voucher-picker-section.js +1 -1
  11. package/dist/extras/hooks/use-product-extra.d.ts +3 -3
  12. package/dist/extras/hooks/use-product-extras.d.ts +3 -3
  13. package/dist/extras/hooks/use-slot-extra-manifest-mutation.js +3 -3
  14. package/dist/extras/hooks/use-slot-extra-manifest.d.ts +5 -5
  15. package/dist/extras/query-options.d.ts +44 -44
  16. package/dist/extras/query-options.js +3 -3
  17. package/dist/extras/schemas.d.ts +34 -34
  18. package/dist/hooks/use-booking-action-ledger.d.ts +4 -4
  19. package/dist/hooks/use-booking-cancel-mutation.d.ts +2 -2
  20. package/dist/hooks/use-booking-cancel-mutation.js +2 -2
  21. package/dist/hooks/use-booking-convert-mutation.d.ts +2 -2
  22. package/dist/hooks/use-booking-convert-mutation.js +2 -2
  23. package/dist/hooks/use-booking-create-mutation.d.ts +5 -5
  24. package/dist/hooks/use-booking-create-mutation.js +2 -2
  25. package/dist/hooks/use-booking-documents.js +2 -2
  26. package/dist/hooks/use-booking-dual-create-mutation.d.ts +9 -9
  27. package/dist/hooks/use-booking-dual-create-mutation.js +2 -2
  28. package/dist/hooks/use-booking-group-for-booking.d.ts +1 -1
  29. package/dist/hooks/use-booking-group-member-mutation.d.ts +1 -1
  30. package/dist/hooks/use-booking-group-member-mutation.js +2 -2
  31. package/dist/hooks/use-booking-group-mutation.js +3 -3
  32. package/dist/hooks/use-booking-group.d.ts +2 -2
  33. package/dist/hooks/use-booking-item-mutation.d.ts +6 -6
  34. package/dist/hooks/use-booking-item-mutation.js +3 -3
  35. package/dist/hooks/use-booking-item-travelers.d.ts +2 -2
  36. package/dist/hooks/use-booking-item-travelers.js +2 -2
  37. package/dist/hooks/use-booking-items.d.ts +2 -2
  38. package/dist/hooks/use-booking-mutation.d.ts +2 -2
  39. package/dist/hooks/use-booking-mutation.js +3 -3
  40. package/dist/hooks/use-booking-note-mutation.js +3 -3
  41. package/dist/hooks/use-booking-status-mutation.d.ts +2 -2
  42. package/dist/hooks/use-booking.d.ts +1 -1
  43. package/dist/hooks/use-bookings.d.ts +1 -1
  44. package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +4 -4
  45. package/dist/hooks/use-public-booking-session.d.ts +4 -4
  46. package/dist/hooks/use-reveal-traveler.d.ts +1 -1
  47. package/dist/hooks/use-supplier-status-mutation.js +2 -2
  48. package/dist/hooks/use-traveler-mutation.js +3 -3
  49. package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts +2 -2
  50. package/dist/hooks/use-traveler-with-travel-details-mutation.js +2 -2
  51. package/dist/query-options.d.ts +52 -52
  52. package/dist/query-options.d.ts.map +1 -1
  53. package/dist/query-options.js +16 -16
  54. package/dist/requirements/hooks/use-booking-questions.d.ts +2 -2
  55. package/dist/requirements/hooks/use-contact-requirements.d.ts +2 -2
  56. package/dist/requirements/hooks/use-transport-requirements.d.ts +1 -1
  57. package/dist/requirements/query-options.d.ts +20 -20
  58. package/dist/requirements/query-options.js +4 -4
  59. package/dist/requirements/schemas.d.ts +32 -32
  60. package/dist/schemas.d.ts +110 -110
  61. package/dist/status-presentation.d.ts +1 -1
  62. package/package.json +24 -24
@@ -107,12 +107,12 @@ export declare const bookingsIndexSearchSchema: z.ZodObject<{
107
107
  paxMax: z.ZodOptional<z.ZodString>;
108
108
  sortBy: z.ZodOptional<z.ZodEnum<{
109
109
  status: "status";
110
- sellAmount: "sellAmount";
111
- pax: "pax";
112
110
  startDate: "startDate";
113
111
  endDate: "endDate";
112
+ pax: "pax";
114
113
  createdAt: "createdAt";
115
114
  bookingNumber: "bookingNumber";
115
+ sellAmount: "sellAmount";
116
116
  }>>;
117
117
  sortDir: z.ZodOptional<z.ZodEnum<{
118
118
  desc: "desc";
@@ -133,12 +133,12 @@ export declare function bookingsFiltersToSearch(filters: BookingListFiltersState
133
133
  export declare const bookingDetailTabSchema: z.ZodEnum<{
134
134
  metadata: "metadata";
135
135
  items: "items";
136
- suppliers: "suppliers";
137
- invoices: "invoices";
138
- finance: "finance";
139
- activity: "activity";
140
136
  travelers: "travelers";
137
+ activity: "activity";
141
138
  documents: "documents";
139
+ finance: "finance";
140
+ invoices: "invoices";
141
+ suppliers: "suppliers";
142
142
  }>;
143
143
  /**
144
144
  * Search contract for the booking detail page. `productId`/`slotId` only
@@ -151,12 +151,12 @@ export declare const bookingDetailSearchSchema: z.ZodObject<{
151
151
  tab: z.ZodOptional<z.ZodEnum<{
152
152
  metadata: "metadata";
153
153
  items: "items";
154
- suppliers: "suppliers";
155
- invoices: "invoices";
156
- finance: "finance";
157
- activity: "activity";
158
154
  travelers: "travelers";
155
+ activity: "activity";
159
156
  documents: "documents";
157
+ finance: "finance";
158
+ invoices: "invoices";
159
+ suppliers: "suppliers";
160
160
  }>>;
161
161
  }, z.core.$strip>;
162
162
  export type BookingDetailSearchParams = z.infer<typeof bookingDetailSearchSchema>;
@@ -22,7 +22,7 @@ export interface BookingCreateFormProps {
22
22
  * Operator booking-create sheet. Composes the booking-create picker
23
23
  * sections — product, departure, rooms, person, shared-room, travelers,
24
24
  * price breakdown, voucher, payment schedule — and submits via the atomic
25
- * `POST /v1/bookings/create` endpoint so partial failures can't
25
+ * `POST /v1/admin/bookings/create` endpoint so partial failures can't
26
26
  * leave orphan state.
27
27
  *
28
28
  * Normally consumed via `BookingDialog` which delegates here when no
@@ -29,7 +29,7 @@ import { emptyVoucherPickerValue, VoucherPickerSection, } from "./voucher-picker
29
29
  * Operator booking-create sheet. Composes the booking-create picker
30
30
  * sections — product, departure, rooms, person, shared-room, travelers,
31
31
  * price breakdown, voucher, payment schedule — and submits via the atomic
32
- * `POST /v1/bookings/create` endpoint so partial failures can't
32
+ * `POST /v1/admin/bookings/create` endpoint so partial failures can't
33
33
  * leave orphan state.
34
34
  *
35
35
  * Normally consumed via `BookingDialog` which delegates here when no
@@ -6,7 +6,7 @@ export interface UploadedFile {
6
6
  name: string;
7
7
  }
8
8
  export interface FileDropzoneProps {
9
- /** URL of the upload endpoint (defaults to /api/v1/uploads). */
9
+ /** URL of the upload endpoint (defaults to /api/v1/admin/uploads). */
10
10
  uploadUrl?: string;
11
11
  /** MIME types or extensions to accept (same format as <input accept>). */
12
12
  accept?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"file-dropzone.d.ts","sourceRoot":"","sources":["../../src/components/file-dropzone.tsx"],"names":[],"mappings":"AAUA,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,gEAAgE;IAChE,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,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,SAA6B,EAC7B,MAAM,EACN,OAAO,EACP,UAAU,EACV,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,iBAAiB,2CA8KnB"}
1
+ {"version":3,"file":"file-dropzone.d.ts","sourceRoot":"","sources":["../../src/components/file-dropzone.tsx"],"names":[],"mappings":"AAUA,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,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,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,iBAAiB,2CA8KnB"}
@@ -3,7 +3,7 @@ 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/uploads", accept, maxSize, onUploaded, onError, helperText, disabled, }) {
6
+ export function FileDropzone({ uploadUrl = "/api/v1/admin/uploads", accept, maxSize, onUploaded, onError, helperText, disabled, }) {
7
7
  const inputRef = React.useRef(null);
8
8
  const [isDragging, setIsDragging] = React.useState(false);
9
9
  const [isUploading, setIsUploading] = React.useState(false);
@@ -60,7 +60,7 @@ export interface OptionUnitsStepperSectionProps {
60
60
  }
61
61
  /**
62
62
  * Rooms / per-unit stepper for booking-create flows. Drives
63
- * `GET /v1/operations/availability/slots/:id/unit-availability` from #235 when a
63
+ * `GET /v1/admin/operations/availability/slots/:id/unit-availability` from #235 when a
64
64
  * departure is selected, and product option-level units before departure
65
65
  * selection, so operators can build "2 double rooms and 1 single" drafts.
66
66
  *
@@ -10,7 +10,7 @@ import { useBookingsUiMessagesOrDefault } from "../i18n/provider.js";
10
10
  export const emptyOptionUnitsStepperValue = { quantities: {} };
11
11
  /**
12
12
  * Rooms / per-unit stepper for booking-create flows. Drives
13
- * `GET /v1/operations/availability/slots/:id/unit-availability` from #235 when a
13
+ * `GET /v1/admin/operations/availability/slots/:id/unit-availability` from #235 when a
14
14
  * departure is selected, and product option-level units before departure
15
15
  * selection, so operators can build "2 double rooms and 1 single" drafts.
16
16
  *
@@ -41,7 +41,7 @@ export interface VoucherPickerSectionProps {
41
41
  * usual guards (status, expiry, currency, booking-assignment, balance).
42
42
  *
43
43
  * The section only *validates* — it doesn't redeem. Redemption happens when
44
- * the parent calls `POST /v1/finance/vouchers/:id/redeem` at submit time,
44
+ * the parent calls `POST /v1/admin/finance/vouchers/:id/redeem` at submit time,
45
45
  * after the booking exists and the final amount is known. Validate being
46
46
  * idempotent means the operator can try a code, correct a typo, and try
47
47
  * again without leaving a trail.
@@ -15,7 +15,7 @@ export const emptyVoucherPickerValue = {
15
15
  * usual guards (status, expiry, currency, booking-assignment, balance).
16
16
  *
17
17
  * The section only *validates* — it doesn't redeem. Redemption happens when
18
- * the parent calls `POST /v1/finance/vouchers/:id/redeem` at submit time,
18
+ * the parent calls `POST /v1/admin/finance/vouchers/:id/redeem` at submit time,
19
19
  * after the booking exists and the final amount is known. Validate being
20
20
  * idempotent means the operator can try a code, correct a typo, and try
21
21
  * again without leaving a trail.
@@ -7,10 +7,10 @@ export declare function useProductExtra(id: string | null | undefined, options?:
7
7
  code: string | null;
8
8
  name: string;
9
9
  description: string | null;
10
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
11
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
10
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
11
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
12
12
  pricedPerPerson: boolean;
13
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
13
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
14
14
  showOnSlotManifest: boolean;
15
15
  minQuantity: number | null;
16
16
  maxQuantity: number | null;
@@ -9,10 +9,10 @@ export declare function useProductExtras(options?: UseProductExtrasOptions): imp
9
9
  code: string | null;
10
10
  name: string;
11
11
  description: string | null;
12
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
13
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
12
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
13
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
14
14
  pricedPerPerson: boolean;
15
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
15
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
16
16
  showOnSlotManifest: boolean;
17
17
  minQuantity: number | null;
18
18
  maxQuantity: number | null;
@@ -11,15 +11,15 @@ export function useSlotExtraManifestMutation(slotId) {
11
11
  void queryClient.invalidateQueries({ queryKey: extrasQueryKeys.slotManifest(slotId) });
12
12
  };
13
13
  const setSelection = useMutation({
14
- mutationFn: (input) => fetchWithValidation(`/v1/extras/slot-manifests/${slotId}/selections`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) }),
14
+ mutationFn: (input) => fetchWithValidation(`/v1/admin/extras/slot-manifests/${slotId}/selections`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) }),
15
15
  onSuccess: invalidate,
16
16
  });
17
17
  const bulkSetSelections = useMutation({
18
- mutationFn: (input) => fetchWithValidation(`/v1/extras/slot-manifests/${slotId}/selections/bulk`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) }),
18
+ mutationFn: (input) => fetchWithValidation(`/v1/admin/extras/slot-manifests/${slotId}/selections/bulk`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) }),
19
19
  onSuccess: invalidate,
20
20
  });
21
21
  const bulkUpdateCollections = useMutation({
22
- mutationFn: (input) => fetchWithValidation(`/v1/extras/slot-manifests/${slotId}/collections/bulk`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) }),
22
+ mutationFn: (input) => fetchWithValidation(`/v1/admin/extras/slot-manifests/${slotId}/collections/bulk`, slotExtraManifestMutationResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) }),
23
23
  onSuccess: invalidate,
24
24
  });
25
25
  return { setSelection, bulkSetSelections, bulkUpdateCollections };
@@ -17,10 +17,10 @@ export declare function useSlotExtraManifest(slotId: string | null | undefined,
17
17
  code: string | null;
18
18
  name: string;
19
19
  description: string | null;
20
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
21
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
20
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
21
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
22
22
  pricedPerPerson: boolean;
23
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
23
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
24
24
  showOnSlotManifest: boolean;
25
25
  minQuantity: number | null;
26
26
  maxQuantity: number | null;
@@ -54,7 +54,7 @@ export declare function useSlotExtraManifest(slotId: string | null | undefined,
54
54
  bookingItemId: string | null;
55
55
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
56
56
  selected: boolean;
57
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
57
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
58
58
  collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
59
59
  collectionCurrency: string | null;
60
60
  collectionAmountCents: number | null;
@@ -62,7 +62,7 @@ export declare function useSlotExtraManifest(slotId: string | null | undefined,
62
62
  collectedBy: string | null;
63
63
  notes: string | null;
64
64
  metadata: Record<string, unknown> | null;
65
- source: "empty" | "selection" | "booking_item";
65
+ source: "selection" | "booking_item" | "empty";
66
66
  }[];
67
67
  }, Error>;
68
68
  //# sourceMappingURL=use-slot-extra-manifest.d.ts.map
@@ -7,10 +7,10 @@ export declare function getProductExtrasQueryOptions(client: FetchWithValidation
7
7
  code: string | null;
8
8
  name: string;
9
9
  description: string | null;
10
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
11
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
10
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
11
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
12
12
  pricedPerPerson: boolean;
13
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
13
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
14
14
  showOnSlotManifest: boolean;
15
15
  minQuantity: number | null;
16
16
  maxQuantity: number | null;
@@ -31,10 +31,10 @@ export declare function getProductExtrasQueryOptions(client: FetchWithValidation
31
31
  code: string | null;
32
32
  name: string;
33
33
  description: string | null;
34
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
35
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
34
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
35
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
36
36
  pricedPerPerson: boolean;
37
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
37
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
38
38
  showOnSlotManifest: boolean;
39
39
  minQuantity: number | null;
40
40
  maxQuantity: number | null;
@@ -56,10 +56,10 @@ export declare function getProductExtrasQueryOptions(client: FetchWithValidation
56
56
  code: string | null;
57
57
  name: string;
58
58
  description: string | null;
59
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
60
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
59
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
60
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
61
61
  pricedPerPerson: boolean;
62
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
62
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
63
63
  showOnSlotManifest: boolean;
64
64
  minQuantity: number | null;
65
65
  maxQuantity: number | null;
@@ -83,10 +83,10 @@ export declare function getProductExtrasQueryOptions(client: FetchWithValidation
83
83
  code: string | null;
84
84
  name: string;
85
85
  description: string | null;
86
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
87
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
86
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
87
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
88
88
  pricedPerPerson: boolean;
89
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
89
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
90
90
  showOnSlotManifest: boolean;
91
91
  minQuantity: number | null;
92
92
  maxQuantity: number | null;
@@ -110,10 +110,10 @@ export declare function getProductExtraQueryOptions(client: FetchWithValidationO
110
110
  code: string | null;
111
111
  name: string;
112
112
  description: string | null;
113
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
114
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
113
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
114
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
115
115
  pricedPerPerson: boolean;
116
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
116
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
117
117
  showOnSlotManifest: boolean;
118
118
  minQuantity: number | null;
119
119
  maxQuantity: number | null;
@@ -129,10 +129,10 @@ export declare function getProductExtraQueryOptions(client: FetchWithValidationO
129
129
  code: string | null;
130
130
  name: string;
131
131
  description: string | null;
132
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
133
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
132
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
133
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
134
134
  pricedPerPerson: boolean;
135
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
135
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
136
136
  showOnSlotManifest: boolean;
137
137
  minQuantity: number | null;
138
138
  maxQuantity: number | null;
@@ -149,10 +149,10 @@ export declare function getProductExtraQueryOptions(client: FetchWithValidationO
149
149
  code: string | null;
150
150
  name: string;
151
151
  description: string | null;
152
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
153
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
152
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
153
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
154
154
  pricedPerPerson: boolean;
155
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
155
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
156
156
  showOnSlotManifest: boolean;
157
157
  minQuantity: number | null;
158
158
  maxQuantity: number | null;
@@ -171,10 +171,10 @@ export declare function getProductExtraQueryOptions(client: FetchWithValidationO
171
171
  code: string | null;
172
172
  name: string;
173
173
  description: string | null;
174
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
175
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
174
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
175
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
176
176
  pricedPerPerson: boolean;
177
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
177
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
178
178
  showOnSlotManifest: boolean;
179
179
  minQuantity: number | null;
180
180
  maxQuantity: number | null;
@@ -205,10 +205,10 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
205
205
  code: string | null;
206
206
  name: string;
207
207
  description: string | null;
208
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
209
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
208
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
209
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
210
210
  pricedPerPerson: boolean;
211
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
211
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
212
212
  showOnSlotManifest: boolean;
213
213
  minQuantity: number | null;
214
214
  maxQuantity: number | null;
@@ -242,7 +242,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
242
242
  bookingItemId: string | null;
243
243
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
244
244
  selected: boolean;
245
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
245
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
246
246
  collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
247
247
  collectionCurrency: string | null;
248
248
  collectionAmountCents: number | null;
@@ -250,7 +250,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
250
250
  collectedBy: string | null;
251
251
  notes: string | null;
252
252
  metadata: Record<string, unknown> | null;
253
- source: "empty" | "selection" | "booking_item";
253
+ source: "selection" | "booking_item" | "empty";
254
254
  }[];
255
255
  }, Error, {
256
256
  slot: {
@@ -269,10 +269,10 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
269
269
  code: string | null;
270
270
  name: string;
271
271
  description: string | null;
272
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
273
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
272
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
273
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
274
274
  pricedPerPerson: boolean;
275
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
275
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
276
276
  showOnSlotManifest: boolean;
277
277
  minQuantity: number | null;
278
278
  maxQuantity: number | null;
@@ -306,7 +306,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
306
306
  bookingItemId: string | null;
307
307
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
308
308
  selected: boolean;
309
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
309
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
310
310
  collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
311
311
  collectionCurrency: string | null;
312
312
  collectionAmountCents: number | null;
@@ -314,7 +314,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
314
314
  collectedBy: string | null;
315
315
  notes: string | null;
316
316
  metadata: Record<string, unknown> | null;
317
- source: "empty" | "selection" | "booking_item";
317
+ source: "selection" | "booking_item" | "empty";
318
318
  }[];
319
319
  }, readonly ["voyant", "extras", "slot-manifests", string]>, "queryFn"> & {
320
320
  queryFn?: import("@tanstack/react-query").QueryFunction<{
@@ -334,10 +334,10 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
334
334
  code: string | null;
335
335
  name: string;
336
336
  description: string | null;
337
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
338
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
337
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
338
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
339
339
  pricedPerPerson: boolean;
340
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
340
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
341
341
  showOnSlotManifest: boolean;
342
342
  minQuantity: number | null;
343
343
  maxQuantity: number | null;
@@ -371,7 +371,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
371
371
  bookingItemId: string | null;
372
372
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
373
373
  selected: boolean;
374
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
374
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
375
375
  collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
376
376
  collectionCurrency: string | null;
377
377
  collectionAmountCents: number | null;
@@ -379,7 +379,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
379
379
  collectedBy: string | null;
380
380
  notes: string | null;
381
381
  metadata: Record<string, unknown> | null;
382
- source: "empty" | "selection" | "booking_item";
382
+ source: "selection" | "booking_item" | "empty";
383
383
  }[];
384
384
  }, readonly ["voyant", "extras", "slot-manifests", string], never> | undefined;
385
385
  } & {
@@ -401,10 +401,10 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
401
401
  code: string | null;
402
402
  name: string;
403
403
  description: string | null;
404
- selectionType: "required" | "optional" | "unavailable" | "default_selected";
405
- pricingMode: "on_request" | "per_booking" | "included" | "per_person" | "quantity_based" | "free";
404
+ selectionType: "optional" | "required" | "default_selected" | "unavailable";
405
+ pricingMode: "on_request" | "included" | "per_person" | "per_booking" | "quantity_based" | "free";
406
406
  pricedPerPerson: boolean;
407
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
407
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
408
408
  showOnSlotManifest: boolean;
409
409
  minQuantity: number | null;
410
410
  maxQuantity: number | null;
@@ -438,7 +438,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
438
438
  bookingItemId: string | null;
439
439
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
440
440
  selected: boolean;
441
- collectionMode: "none" | "external" | "cash_on_trip" | "included" | "booking_total";
441
+ collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
442
442
  collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
443
443
  collectionCurrency: string | null;
444
444
  collectionAmountCents: number | null;
@@ -446,7 +446,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
446
446
  collectedBy: string | null;
447
447
  notes: string | null;
448
448
  metadata: Record<string, unknown> | null;
449
- source: "empty" | "selection" | "booking_item";
449
+ source: "selection" | "booking_item" | "empty";
450
450
  }[];
451
451
  };
452
452
  [dataTagErrorSymbol]: Error;
@@ -20,7 +20,7 @@ export function getProductExtrasQueryOptions(client, options = {}) {
20
20
  if (filters.offset !== undefined)
21
21
  params.set("offset", String(filters.offset));
22
22
  const qs = params.toString();
23
- return fetchWithValidation(`/v1/extras/product-extras${qs ? `?${qs}` : ""}`, productExtraListResponse, client);
23
+ return fetchWithValidation(`/v1/admin/extras/product-extras${qs ? `?${qs}` : ""}`, productExtraListResponse, client);
24
24
  },
25
25
  });
26
26
  }
@@ -28,7 +28,7 @@ export function getProductExtraQueryOptions(client, id) {
28
28
  return queryOptions({
29
29
  queryKey: extrasQueryKeys.productExtra(id),
30
30
  queryFn: async () => {
31
- const { data } = await fetchWithValidation(`/v1/extras/product-extras/${id}`, productExtraSingleResponse, client);
31
+ const { data } = await fetchWithValidation(`/v1/admin/extras/product-extras/${id}`, productExtraSingleResponse, client);
32
32
  return data;
33
33
  },
34
34
  });
@@ -37,7 +37,7 @@ export function getSlotExtraManifestQueryOptions(client, slotId) {
37
37
  return queryOptions({
38
38
  queryKey: extrasQueryKeys.slotManifest(slotId),
39
39
  queryFn: async () => {
40
- const { data } = await fetchWithValidation(`/v1/extras/slot-manifests/${slotId}`, slotExtraManifestResponse, client);
40
+ const { data } = await fetchWithValidation(`/v1/admin/extras/slot-manifests/${slotId}`, slotExtraManifestResponse, client);
41
41
  return data;
42
42
  },
43
43
  });