@voyantjs/bookings-react 0.35.0 → 0.37.0

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 (46) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +1 -0
  4. package/dist/hooks/use-booking-cancel-mutation.d.ts +9 -0
  5. package/dist/hooks/use-booking-cancel-mutation.d.ts.map +1 -1
  6. package/dist/hooks/use-booking-convert-mutation.d.ts +9 -0
  7. package/dist/hooks/use-booking-convert-mutation.d.ts.map +1 -1
  8. package/dist/hooks/use-booking-documents.d.ts +2 -2
  9. package/dist/hooks/use-booking-dual-create-mutation.d.ts +36 -0
  10. package/dist/hooks/use-booking-dual-create-mutation.d.ts.map +1 -1
  11. package/dist/hooks/use-booking-group.d.ts +9 -0
  12. package/dist/hooks/use-booking-group.d.ts.map +1 -1
  13. package/dist/hooks/use-booking-item-participants.d.ts +1 -1
  14. package/dist/hooks/use-booking-item-travelers.d.ts +2 -2
  15. package/dist/hooks/use-booking-mutation.d.ts +18 -0
  16. package/dist/hooks/use-booking-mutation.d.ts.map +1 -1
  17. package/dist/hooks/use-booking-quick-create-mutation.d.ts +21 -0
  18. package/dist/hooks/use-booking-quick-create-mutation.d.ts.map +1 -1
  19. package/dist/hooks/use-booking-status-mutation.d.ts +18 -0
  20. package/dist/hooks/use-booking-status-mutation.d.ts.map +1 -1
  21. package/dist/hooks/use-booking.d.ts +9 -0
  22. package/dist/hooks/use-booking.d.ts.map +1 -1
  23. package/dist/hooks/use-bookings.d.ts +9 -0
  24. package/dist/hooks/use-bookings.d.ts.map +1 -1
  25. package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +2 -2
  26. package/dist/hooks/use-public-booking-session.d.ts +2 -2
  27. package/dist/hooks/use-reveal-traveler.d.ts +4 -0
  28. package/dist/hooks/use-reveal-traveler.d.ts.map +1 -1
  29. package/dist/hooks/use-sharing-groups.d.ts +41 -0
  30. package/dist/hooks/use-sharing-groups.d.ts.map +1 -0
  31. package/dist/hooks/use-sharing-groups.js +20 -0
  32. package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts +12 -0
  33. package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts.map +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/query-keys.d.ts +7 -0
  38. package/dist/query-keys.d.ts.map +1 -1
  39. package/dist/query-keys.js +2 -0
  40. package/dist/query-options.d.ts +284 -16
  41. package/dist/query-options.d.ts.map +1 -1
  42. package/dist/query-options.js +23 -1
  43. package/dist/schemas.d.ts +177 -11
  44. package/dist/schemas.d.ts.map +1 -1
  45. package/dist/schemas.js +32 -0
  46. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,QAAQ,GACR,YAAY,GACZ,KAAK,GACL,WAAW,GACX,SAAS,GACT,WAAW,CAAA;AAEf,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,CAAA;AAEhD,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAA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7B,MAAM;wCACO,MAAM;6CAED,MAAM;gCAGnB,MAAM;wCACE,MAAM,UAAU,MAAM;2CAEnB,MAAM,UAAU,MAAM;oCAE7B,MAAM;4CACE,MAAM;+CAEH,MAAM,WAAW,MAAM;qCAEjC,MAAM;oCAEP,MAAM;2CACC,MAAM;mCAEd,MAAM;gCACT,MAAM;;mCAGH,wBAAwB;yBAElC,MAAM;gCACC,MAAM;0CACI,MAAM;uCAGT,qBAAqB;CAEvC,CAAA"}
@@ -10,6 +10,8 @@ export const bookingsQueryKeys = {
10
10
  itemTravelers: (bookingId, itemId) => [...bookingsQueryKeys.items(bookingId), itemId, "travelers"],
11
11
  itemParticipants: (bookingId, itemId) => [...bookingsQueryKeys.items(bookingId), itemId, "participants"],
12
12
  travelers: (bookingId) => [...bookingsQueryKeys.booking(bookingId), "travelers"],
13
+ sharingGroupsForSlot: (slotId) => [...bookingsQueryKeys.all, "sharing-groups", "slot", slotId],
14
+ travelersBySharingGroup: (slotId, groupId) => [...bookingsQueryKeys.sharingGroupsForSlot(slotId), groupId, "travelers"],
13
15
  passengers: (bookingId) => [...bookingsQueryKeys.booking(bookingId), "passengers"],
14
16
  documents: (bookingId) => [...bookingsQueryKeys.booking(bookingId), "documents"],
15
17
  supplierStatuses: (bookingId) => [...bookingsQueryKeys.booking(bookingId), "supplier-statuses"],
@@ -59,6 +59,15 @@ export declare function getBookingsQueryOptions(client: FetchWithValidationOptio
59
59
  balanceDueDaysBeforeDeparture: number;
60
60
  balanceDueMinDaysFromNow: number;
61
61
  } | null | undefined;
62
+ priceOverride?: {
63
+ isManual: true;
64
+ originalAmountCents: number | null;
65
+ overriddenAmountCents: number;
66
+ currency: string;
67
+ reason: string;
68
+ overriddenBy: string;
69
+ overriddenAt: string;
70
+ } | null | undefined;
62
71
  }[];
63
72
  total: number;
64
73
  limit: number;
@@ -110,6 +119,15 @@ export declare function getBookingsQueryOptions(client: FetchWithValidationOptio
110
119
  balanceDueDaysBeforeDeparture: number;
111
120
  balanceDueMinDaysFromNow: number;
112
121
  } | null | undefined;
122
+ priceOverride?: {
123
+ isManual: true;
124
+ originalAmountCents: number | null;
125
+ overriddenAmountCents: number;
126
+ currency: string;
127
+ reason: string;
128
+ overriddenBy: string;
129
+ overriddenAt: string;
130
+ } | null | undefined;
113
131
  }[];
114
132
  total: number;
115
133
  limit: number;
@@ -162,6 +180,15 @@ export declare function getBookingsQueryOptions(client: FetchWithValidationOptio
162
180
  balanceDueDaysBeforeDeparture: number;
163
181
  balanceDueMinDaysFromNow: number;
164
182
  } | null | undefined;
183
+ priceOverride?: {
184
+ isManual: true;
185
+ originalAmountCents: number | null;
186
+ overriddenAmountCents: number;
187
+ currency: string;
188
+ reason: string;
189
+ overriddenBy: string;
190
+ overriddenAt: string;
191
+ } | null | undefined;
165
192
  }[];
166
193
  total: number;
167
194
  limit: number;
@@ -216,6 +243,15 @@ export declare function getBookingsQueryOptions(client: FetchWithValidationOptio
216
243
  balanceDueDaysBeforeDeparture: number;
217
244
  balanceDueMinDaysFromNow: number;
218
245
  } | null | undefined;
246
+ priceOverride?: {
247
+ isManual: true;
248
+ originalAmountCents: number | null;
249
+ overriddenAmountCents: number;
250
+ currency: string;
251
+ reason: string;
252
+ overriddenBy: string;
253
+ overriddenAt: string;
254
+ } | null | undefined;
219
255
  }[];
220
256
  total: number;
221
257
  limit: number;
@@ -271,6 +307,15 @@ export declare function getBookingQueryOptions(client: FetchWithValidationOption
271
307
  balanceDueDaysBeforeDeparture: number;
272
308
  balanceDueMinDaysFromNow: number;
273
309
  } | null | undefined;
310
+ priceOverride?: {
311
+ isManual: true;
312
+ originalAmountCents: number | null;
313
+ overriddenAmountCents: number;
314
+ currency: string;
315
+ reason: string;
316
+ overriddenBy: string;
317
+ overriddenAt: string;
318
+ } | null | undefined;
274
319
  };
275
320
  }, Error, {
276
321
  data: {
@@ -319,6 +364,15 @@ export declare function getBookingQueryOptions(client: FetchWithValidationOption
319
364
  balanceDueDaysBeforeDeparture: number;
320
365
  balanceDueMinDaysFromNow: number;
321
366
  } | null | undefined;
367
+ priceOverride?: {
368
+ isManual: true;
369
+ originalAmountCents: number | null;
370
+ overriddenAmountCents: number;
371
+ currency: string;
372
+ reason: string;
373
+ overriddenBy: string;
374
+ overriddenAt: string;
375
+ } | null | undefined;
322
376
  };
323
377
  }, readonly ["voyant", "bookings", "bookings", "detail", string]>, "queryFn"> & {
324
378
  queryFn?: import("@tanstack/react-query").QueryFunction<{
@@ -368,6 +422,15 @@ export declare function getBookingQueryOptions(client: FetchWithValidationOption
368
422
  balanceDueDaysBeforeDeparture: number;
369
423
  balanceDueMinDaysFromNow: number;
370
424
  } | null | undefined;
425
+ priceOverride?: {
426
+ isManual: true;
427
+ originalAmountCents: number | null;
428
+ overriddenAmountCents: number;
429
+ currency: string;
430
+ reason: string;
431
+ overriddenBy: string;
432
+ overriddenAt: string;
433
+ } | null | undefined;
371
434
  };
372
435
  }, readonly ["voyant", "bookings", "bookings", "detail", string], never> | undefined;
373
436
  } & {
@@ -419,6 +482,15 @@ export declare function getBookingQueryOptions(client: FetchWithValidationOption
419
482
  balanceDueDaysBeforeDeparture: number;
420
483
  balanceDueMinDaysFromNow: number;
421
484
  } | null | undefined;
485
+ priceOverride?: {
486
+ isManual: true;
487
+ originalAmountCents: number | null;
488
+ overriddenAmountCents: number;
489
+ currency: string;
490
+ reason: string;
491
+ overriddenBy: string;
492
+ overriddenAt: string;
493
+ } | null | undefined;
422
494
  };
423
495
  };
424
496
  [dataTagErrorSymbol]: Error;
@@ -541,7 +613,7 @@ export declare function getBookingItemTravelersQueryOptions(client: FetchWithVal
541
613
  id: string;
542
614
  bookingItemId: string;
543
615
  travelerId: string;
544
- role: "traveler" | "occupant" | "other" | "beneficiary" | "service_assignee" | "primary_contact";
616
+ role: "other" | "traveler" | "occupant" | "beneficiary" | "service_assignee" | "primary_contact";
545
617
  isPrimary: boolean;
546
618
  createdAt: string;
547
619
  }[];
@@ -550,7 +622,7 @@ export declare function getBookingItemTravelersQueryOptions(client: FetchWithVal
550
622
  id: string;
551
623
  bookingItemId: string;
552
624
  travelerId: string;
553
- role: "traveler" | "occupant" | "other" | "beneficiary" | "service_assignee" | "primary_contact";
625
+ role: "other" | "traveler" | "occupant" | "beneficiary" | "service_assignee" | "primary_contact";
554
626
  isPrimary: boolean;
555
627
  createdAt: string;
556
628
  }[];
@@ -560,7 +632,7 @@ export declare function getBookingItemTravelersQueryOptions(client: FetchWithVal
560
632
  id: string;
561
633
  bookingItemId: string;
562
634
  travelerId: string;
563
- role: "traveler" | "occupant" | "other" | "beneficiary" | "service_assignee" | "primary_contact";
635
+ role: "other" | "traveler" | "occupant" | "beneficiary" | "service_assignee" | "primary_contact";
564
636
  isPrimary: boolean;
565
637
  createdAt: string;
566
638
  }[];
@@ -572,7 +644,7 @@ export declare function getBookingItemTravelersQueryOptions(client: FetchWithVal
572
644
  id: string;
573
645
  bookingItemId: string;
574
646
  travelerId: string;
575
- role: "traveler" | "occupant" | "other" | "beneficiary" | "service_assignee" | "primary_contact";
647
+ role: "other" | "traveler" | "occupant" | "beneficiary" | "service_assignee" | "primary_contact";
576
648
  isPrimary: boolean;
577
649
  createdAt: string;
578
650
  }[];
@@ -585,7 +657,7 @@ export declare function getBookingTravelerDocumentsQueryOptions(client: FetchWit
585
657
  id: string;
586
658
  bookingId: string;
587
659
  travelerId: string | null;
588
- type: "other" | "visa" | "insurance" | "health" | "passport_copy";
660
+ type: "visa" | "other" | "insurance" | "health" | "passport_copy";
589
661
  fileName: string;
590
662
  fileUrl: string;
591
663
  expiresAt: string | null;
@@ -597,7 +669,7 @@ export declare function getBookingTravelerDocumentsQueryOptions(client: FetchWit
597
669
  id: string;
598
670
  bookingId: string;
599
671
  travelerId: string | null;
600
- type: "other" | "visa" | "insurance" | "health" | "passport_copy";
672
+ type: "visa" | "other" | "insurance" | "health" | "passport_copy";
601
673
  fileName: string;
602
674
  fileUrl: string;
603
675
  expiresAt: string | null;
@@ -610,7 +682,7 @@ export declare function getBookingTravelerDocumentsQueryOptions(client: FetchWit
610
682
  id: string;
611
683
  bookingId: string;
612
684
  travelerId: string | null;
613
- type: "other" | "visa" | "insurance" | "health" | "passport_copy";
685
+ type: "visa" | "other" | "insurance" | "health" | "passport_copy";
614
686
  fileName: string;
615
687
  fileUrl: string;
616
688
  expiresAt: string | null;
@@ -625,7 +697,7 @@ export declare function getBookingTravelerDocumentsQueryOptions(client: FetchWit
625
697
  id: string;
626
698
  bookingId: string;
627
699
  travelerId: string | null;
628
- type: "other" | "visa" | "insurance" | "health" | "passport_copy";
700
+ type: "visa" | "other" | "insurance" | "health" | "passport_copy";
629
701
  fileName: string;
630
702
  fileUrl: string;
631
703
  expiresAt: string | null;
@@ -716,6 +788,150 @@ export declare function getTravelersQueryOptions(client: FetchWithValidationOpti
716
788
  [dataTagErrorSymbol]: Error;
717
789
  };
718
790
  };
791
+ export declare function getSharingGroupsForSlotQueryOptions(client: FetchWithValidationOptions, slotId: string | null | undefined): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
792
+ data: {
793
+ id: string;
794
+ label: string;
795
+ occupancy: number;
796
+ roomTypeId: string | null;
797
+ bookingIds: string[];
798
+ }[];
799
+ }, Error, {
800
+ data: {
801
+ id: string;
802
+ label: string;
803
+ occupancy: number;
804
+ roomTypeId: string | null;
805
+ bookingIds: string[];
806
+ }[];
807
+ }, readonly ["voyant", "bookings", "sharing-groups", "slot", string]>, "queryFn"> & {
808
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
809
+ data: {
810
+ id: string;
811
+ label: string;
812
+ occupancy: number;
813
+ roomTypeId: string | null;
814
+ bookingIds: string[];
815
+ }[];
816
+ }, readonly ["voyant", "bookings", "sharing-groups", "slot", string], never> | undefined;
817
+ } & {
818
+ queryKey: readonly ["voyant", "bookings", "sharing-groups", "slot", string] & {
819
+ [dataTagSymbol]: {
820
+ data: {
821
+ id: string;
822
+ label: string;
823
+ occupancy: number;
824
+ roomTypeId: string | null;
825
+ bookingIds: string[];
826
+ }[];
827
+ };
828
+ [dataTagErrorSymbol]: Error;
829
+ };
830
+ };
831
+ export declare function getBookingsBySharingGroupQueryOptions(client: FetchWithValidationOptions, slotId: string | null | undefined, groupId: string | null | undefined): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
832
+ data: {
833
+ id: string;
834
+ bookingId: string;
835
+ participantType: string;
836
+ firstName: string;
837
+ lastName: string;
838
+ email: string | null;
839
+ phone: string | null;
840
+ specialRequests: string | null;
841
+ isPrimary: boolean;
842
+ createdAt: string;
843
+ bookingNumber: string;
844
+ personId: string | null;
845
+ isLeadTraveler: boolean;
846
+ sharingGroupId: string;
847
+ roomTypeId: string | null;
848
+ bedPreference: string | null;
849
+ allocations: Record<string, string>;
850
+ travelerCategory?: string | null | undefined;
851
+ preferredLanguage?: string | null | undefined;
852
+ notes?: string | null | undefined;
853
+ updatedAt?: string | undefined;
854
+ }[];
855
+ }, Error, {
856
+ data: {
857
+ id: string;
858
+ bookingId: string;
859
+ participantType: string;
860
+ firstName: string;
861
+ lastName: string;
862
+ email: string | null;
863
+ phone: string | null;
864
+ specialRequests: string | null;
865
+ isPrimary: boolean;
866
+ createdAt: string;
867
+ bookingNumber: string;
868
+ personId: string | null;
869
+ isLeadTraveler: boolean;
870
+ sharingGroupId: string;
871
+ roomTypeId: string | null;
872
+ bedPreference: string | null;
873
+ allocations: Record<string, string>;
874
+ travelerCategory?: string | null | undefined;
875
+ preferredLanguage?: string | null | undefined;
876
+ notes?: string | null | undefined;
877
+ updatedAt?: string | undefined;
878
+ }[];
879
+ }, readonly ["voyant", "bookings", "sharing-groups", "slot", string, string, "travelers"]>, "queryFn"> & {
880
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
881
+ data: {
882
+ id: string;
883
+ bookingId: string;
884
+ participantType: string;
885
+ firstName: string;
886
+ lastName: string;
887
+ email: string | null;
888
+ phone: string | null;
889
+ specialRequests: string | null;
890
+ isPrimary: boolean;
891
+ createdAt: string;
892
+ bookingNumber: string;
893
+ personId: string | null;
894
+ isLeadTraveler: boolean;
895
+ sharingGroupId: string;
896
+ roomTypeId: string | null;
897
+ bedPreference: string | null;
898
+ allocations: Record<string, string>;
899
+ travelerCategory?: string | null | undefined;
900
+ preferredLanguage?: string | null | undefined;
901
+ notes?: string | null | undefined;
902
+ updatedAt?: string | undefined;
903
+ }[];
904
+ }, readonly ["voyant", "bookings", "sharing-groups", "slot", string, string, "travelers"], never> | undefined;
905
+ } & {
906
+ queryKey: readonly ["voyant", "bookings", "sharing-groups", "slot", string, string, "travelers"] & {
907
+ [dataTagSymbol]: {
908
+ data: {
909
+ id: string;
910
+ bookingId: string;
911
+ participantType: string;
912
+ firstName: string;
913
+ lastName: string;
914
+ email: string | null;
915
+ phone: string | null;
916
+ specialRequests: string | null;
917
+ isPrimary: boolean;
918
+ createdAt: string;
919
+ bookingNumber: string;
920
+ personId: string | null;
921
+ isLeadTraveler: boolean;
922
+ sharingGroupId: string;
923
+ roomTypeId: string | null;
924
+ bedPreference: string | null;
925
+ allocations: Record<string, string>;
926
+ travelerCategory?: string | null | undefined;
927
+ preferredLanguage?: string | null | undefined;
928
+ notes?: string | null | undefined;
929
+ updatedAt?: string | undefined;
930
+ }[];
931
+ };
932
+ [dataTagErrorSymbol]: Error;
933
+ };
934
+ };
719
935
  /**
720
936
  * Fetch a single traveler with PII unmasked. Backend authorizes via
721
937
  * the same policy as `/travel-details` (staff or `bookings-pii:read`)
@@ -747,6 +963,10 @@ export declare function getTravelerRevealQueryOptions(client: FetchWithValidatio
747
963
  dietaryRequirements: string | null;
748
964
  accessibilityNeeds: string | null;
749
965
  isLeadTraveler: boolean;
966
+ sharingGroupId: string | null;
967
+ roomTypeId: string | null;
968
+ bedPreference: "single" | "twin" | "double" | "no-preference" | null;
969
+ allocations: Record<string, string>;
750
970
  createdAt: string;
751
971
  updatedAt: string;
752
972
  } | null;
@@ -780,6 +1000,10 @@ export declare function getTravelerRevealQueryOptions(client: FetchWithValidatio
780
1000
  dietaryRequirements: string | null;
781
1001
  accessibilityNeeds: string | null;
782
1002
  isLeadTraveler: boolean;
1003
+ sharingGroupId: string | null;
1004
+ roomTypeId: string | null;
1005
+ bedPreference: "single" | "twin" | "double" | "no-preference" | null;
1006
+ allocations: Record<string, string>;
783
1007
  createdAt: string;
784
1008
  updatedAt: string;
785
1009
  } | null;
@@ -814,6 +1038,10 @@ export declare function getTravelerRevealQueryOptions(client: FetchWithValidatio
814
1038
  dietaryRequirements: string | null;
815
1039
  accessibilityNeeds: string | null;
816
1040
  isLeadTraveler: boolean;
1041
+ sharingGroupId: string | null;
1042
+ roomTypeId: string | null;
1043
+ bedPreference: "single" | "twin" | "double" | "no-preference" | null;
1044
+ allocations: Record<string, string>;
817
1045
  createdAt: string;
818
1046
  updatedAt: string;
819
1047
  } | null;
@@ -850,6 +1078,10 @@ export declare function getTravelerRevealQueryOptions(client: FetchWithValidatio
850
1078
  dietaryRequirements: string | null;
851
1079
  accessibilityNeeds: string | null;
852
1080
  isLeadTraveler: boolean;
1081
+ sharingGroupId: string | null;
1082
+ roomTypeId: string | null;
1083
+ bedPreference: "single" | "twin" | "double" | "no-preference" | null;
1084
+ allocations: Record<string, string>;
853
1085
  createdAt: string;
854
1086
  updatedAt: string;
855
1087
  } | null;
@@ -1040,7 +1272,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1040
1272
  completedAt: string | null;
1041
1273
  travelers: {
1042
1274
  id: string;
1043
- participantType: "traveler" | "occupant" | "other";
1275
+ participantType: "other" | "traveler" | "occupant";
1044
1276
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1045
1277
  firstName: string;
1046
1278
  lastName: string;
@@ -1075,7 +1307,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1075
1307
  travelerLinks: {
1076
1308
  id: string;
1077
1309
  travelerId: string;
1078
- role: "traveler" | "occupant" | "other" | "beneficiary";
1310
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1079
1311
  isPrimary: boolean;
1080
1312
  }[];
1081
1313
  }[];
@@ -1136,7 +1368,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1136
1368
  completedAt: string | null;
1137
1369
  travelers: {
1138
1370
  id: string;
1139
- participantType: "traveler" | "occupant" | "other";
1371
+ participantType: "other" | "traveler" | "occupant";
1140
1372
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1141
1373
  firstName: string;
1142
1374
  lastName: string;
@@ -1171,7 +1403,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1171
1403
  travelerLinks: {
1172
1404
  id: string;
1173
1405
  travelerId: string;
1174
- role: "traveler" | "occupant" | "other" | "beneficiary";
1406
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1175
1407
  isPrimary: boolean;
1176
1408
  }[];
1177
1409
  }[];
@@ -1233,7 +1465,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1233
1465
  completedAt: string | null;
1234
1466
  travelers: {
1235
1467
  id: string;
1236
- participantType: "traveler" | "occupant" | "other";
1468
+ participantType: "other" | "traveler" | "occupant";
1237
1469
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1238
1470
  firstName: string;
1239
1471
  lastName: string;
@@ -1268,7 +1500,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1268
1500
  travelerLinks: {
1269
1501
  id: string;
1270
1502
  travelerId: string;
1271
- role: "traveler" | "occupant" | "other" | "beneficiary";
1503
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1272
1504
  isPrimary: boolean;
1273
1505
  }[];
1274
1506
  }[];
@@ -1332,7 +1564,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1332
1564
  completedAt: string | null;
1333
1565
  travelers: {
1334
1566
  id: string;
1335
- participantType: "traveler" | "occupant" | "other";
1567
+ participantType: "other" | "traveler" | "occupant";
1336
1568
  travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
1337
1569
  firstName: string;
1338
1570
  lastName: string;
@@ -1367,7 +1599,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
1367
1599
  travelerLinks: {
1368
1600
  id: string;
1369
1601
  travelerId: string;
1370
- role: "traveler" | "occupant" | "other" | "beneficiary";
1602
+ role: "other" | "traveler" | "occupant" | "beneficiary";
1371
1603
  isPrimary: boolean;
1372
1604
  }[];
1373
1605
  }[];
@@ -1596,6 +1828,15 @@ export declare function getBookingGroupQueryOptions(client: FetchWithValidationO
1596
1828
  balanceDueDaysBeforeDeparture: number;
1597
1829
  balanceDueMinDaysFromNow: number;
1598
1830
  } | null | undefined;
1831
+ priceOverride?: {
1832
+ isManual: true;
1833
+ originalAmountCents: number | null;
1834
+ overriddenAmountCents: number;
1835
+ currency: string;
1836
+ reason: string;
1837
+ overriddenBy: string;
1838
+ overriddenAt: string;
1839
+ } | null | undefined;
1599
1840
  } | null;
1600
1841
  }[];
1601
1842
  };
@@ -1662,6 +1903,15 @@ export declare function getBookingGroupQueryOptions(client: FetchWithValidationO
1662
1903
  balanceDueDaysBeforeDeparture: number;
1663
1904
  balanceDueMinDaysFromNow: number;
1664
1905
  } | null | undefined;
1906
+ priceOverride?: {
1907
+ isManual: true;
1908
+ originalAmountCents: number | null;
1909
+ overriddenAmountCents: number;
1910
+ currency: string;
1911
+ reason: string;
1912
+ overriddenBy: string;
1913
+ overriddenAt: string;
1914
+ } | null | undefined;
1665
1915
  } | null;
1666
1916
  }[];
1667
1917
  };
@@ -1729,6 +1979,15 @@ export declare function getBookingGroupQueryOptions(client: FetchWithValidationO
1729
1979
  balanceDueDaysBeforeDeparture: number;
1730
1980
  balanceDueMinDaysFromNow: number;
1731
1981
  } | null | undefined;
1982
+ priceOverride?: {
1983
+ isManual: true;
1984
+ originalAmountCents: number | null;
1985
+ overriddenAmountCents: number;
1986
+ currency: string;
1987
+ reason: string;
1988
+ overriddenBy: string;
1989
+ overriddenAt: string;
1990
+ } | null | undefined;
1732
1991
  } | null;
1733
1992
  }[];
1734
1993
  };
@@ -1798,6 +2057,15 @@ export declare function getBookingGroupQueryOptions(client: FetchWithValidationO
1798
2057
  balanceDueDaysBeforeDeparture: number;
1799
2058
  balanceDueMinDaysFromNow: number;
1800
2059
  } | null | undefined;
2060
+ priceOverride?: {
2061
+ isManual: true;
2062
+ originalAmountCents: number | null;
2063
+ overriddenAmountCents: number;
2064
+ currency: string;
2065
+ reason: string;
2066
+ overriddenBy: string;
2067
+ overriddenAt: string;
2068
+ } | null | undefined;
1801
2069
  } | null;
1802
2070
  }[];
1803
2071
  };
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAA;AAChG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AAC3F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAqB,KAAK,qB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrC;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,gCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/C;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/B"}
@@ -2,7 +2,7 @@
2
2
  import { queryOptions } from "@tanstack/react-query";
3
3
  import { fetchWithValidation } from "./client.js";
4
4
  import { bookingsQueryKeys } from "./query-keys.js";
5
- import { bookingActivityResponse, bookingGroupDetailResponse, bookingGroupForBookingResponse, bookingGroupListResponse, bookingItemsResponse, bookingItemTravelersResponse, bookingListResponse, bookingNotesResponse, bookingSingleResponse, bookingSupplierStatusesResponse, bookingTravelerDocumentsResponse, bookingTravelerSingleResponse, bookingTravelersResponse, pricingPreviewResponse, publicBookingSessionResponse, publicBookingSessionStateResponse, } from "./schemas.js";
5
+ import { bookingActivityResponse, bookingGroupDetailResponse, bookingGroupForBookingResponse, bookingGroupListResponse, bookingItemsResponse, bookingItemTravelersResponse, bookingListResponse, bookingNotesResponse, bookingSingleResponse, bookingSupplierStatusesResponse, bookingTravelerDocumentsResponse, bookingTravelerSharingGroupsResponse, bookingTravelerSingleResponse, bookingTravelersBySharingGroupResponse, bookingTravelersResponse, pricingPreviewResponse, publicBookingSessionResponse, publicBookingSessionStateResponse, } from "./schemas.js";
6
6
  export function getBookingsQueryOptions(client, options = {}) {
7
7
  const { enabled: _enabled = true, ...filters } = options;
8
8
  return queryOptions({
@@ -15,6 +15,16 @@ export function getBookingsQueryOptions(client, options = {}) {
15
15
  params.set("search", filters.search);
16
16
  if (filters.productId)
17
17
  params.set("productId", filters.productId);
18
+ if (filters.optionId)
19
+ params.set("optionId", filters.optionId);
20
+ if (filters.supplierId)
21
+ params.set("supplierId", filters.supplierId);
22
+ if (filters.productCategoryId)
23
+ params.set("productCategoryId", filters.productCategoryId);
24
+ if (filters.personId)
25
+ params.set("personId", filters.personId);
26
+ if (filters.organizationId)
27
+ params.set("organizationId", filters.organizationId);
18
28
  if (filters.dateFrom)
19
29
  params.set("dateFrom", filters.dateFrom);
20
30
  if (filters.dateTo)
@@ -71,6 +81,18 @@ export function getTravelersQueryOptions(client, bookingId, options = {}) {
71
81
  queryFn: () => fetchWithValidation(`/v1/bookings/${bookingId}/travelers`, bookingTravelersResponse, client),
72
82
  });
73
83
  }
84
+ export function getSharingGroupsForSlotQueryOptions(client, slotId) {
85
+ return queryOptions({
86
+ queryKey: bookingsQueryKeys.sharingGroupsForSlot(slotId ?? ""),
87
+ queryFn: () => fetchWithValidation(`/v1/bookings/sharing-groups?slotId=${encodeURIComponent(slotId ?? "")}`, bookingTravelerSharingGroupsResponse, client),
88
+ });
89
+ }
90
+ export function getBookingsBySharingGroupQueryOptions(client, slotId, groupId) {
91
+ return queryOptions({
92
+ queryKey: bookingsQueryKeys.travelersBySharingGroup(slotId ?? "", groupId ?? ""),
93
+ queryFn: () => fetchWithValidation(`/v1/bookings/sharing-groups/${encodeURIComponent(groupId ?? "")}/travelers?slotId=${encodeURIComponent(slotId ?? "")}`, bookingTravelersBySharingGroupResponse, client),
94
+ });
95
+ }
74
96
  /**
75
97
  * Fetch a single traveler with PII unmasked. Backend authorizes via
76
98
  * the same policy as `/travel-details` (staff or `bookings-pii:read`)