@voyantjs/bookings 0.52.2 → 0.52.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.
package/dist/routes.d.ts CHANGED
@@ -1,5 +1,82 @@
1
+ import { type ActionApprovalResponse, type ActionLedgerEntry, type ActionLedgerEntryResponse } from "@voyantjs/action-ledger";
2
+ import { z } from "zod";
1
3
  import type { publicBookingRoutes } from "./routes-public.js";
2
4
  import type { Env } from "./routes-shared.js";
5
+ interface BookingActionLedgerTravelerTarget {
6
+ id: string;
7
+ firstName: string | null;
8
+ lastName: string | null;
9
+ }
10
+ export interface BookingActionLedgerListResponse {
11
+ data: ActionLedgerEntryResponse[];
12
+ travelers: BookingActionLedgerTravelerTarget[];
13
+ pageInfo: {
14
+ nextCursor: {
15
+ occurredAt: string;
16
+ id: string;
17
+ } | null;
18
+ };
19
+ }
20
+ export interface BookingActionApprovalDecisionResponse {
21
+ data: {
22
+ approval: ActionApprovalResponse;
23
+ decisionAction: ActionLedgerEntryResponse;
24
+ };
25
+ }
26
+ type BookingMutationAction = "create" | "update" | "delete";
27
+ declare function changedBookingMutationFields(input: Record<string, unknown>, before: Record<string, unknown> | null, after: Record<string, unknown> | null): string[];
28
+ declare function changedBookingTravelerFields(input: Record<string, unknown>, before: Record<string, unknown> | null, after: Record<string, unknown> | null): string[];
29
+ declare function changedBookingTravelDetailFields(input: Record<string, unknown>): string[];
30
+ declare function changedBookingItemFields(input: Record<string, unknown>, before: Record<string, unknown> | null, after: Record<string, unknown> | null): string[];
31
+ declare function bookingMutationSummary(action: BookingMutationAction, fields: string[], subject: string): string;
32
+ declare function buildBookingActionLedgerPage({ bookingEntries, travelerEntries, itemEntries, limit, }: {
33
+ bookingEntries: ActionLedgerEntry[];
34
+ travelerEntries: ActionLedgerEntry[];
35
+ itemEntries?: ActionLedgerEntry[];
36
+ limit: number;
37
+ }): {
38
+ entries: {
39
+ id: string;
40
+ occurredAt: Date;
41
+ actionName: string;
42
+ actionVersion: string;
43
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
44
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
45
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
46
+ actorType: string | null;
47
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
48
+ principalId: string;
49
+ principalSubtype: string | null;
50
+ sessionId: string | null;
51
+ apiTokenId: string | null;
52
+ internalRequest: boolean;
53
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
54
+ delegatedByPrincipalId: string | null;
55
+ delegationId: string | null;
56
+ callerType: string | null;
57
+ organizationId: string | null;
58
+ routeOrToolName: string | null;
59
+ workflowRunId: string | null;
60
+ workflowStepId: string | null;
61
+ correlationId: string | null;
62
+ causationActionId: string | null;
63
+ idempotencyScope: string | null;
64
+ idempotencyKey: string | null;
65
+ idempotencyFingerprint: string | null;
66
+ targetType: string;
67
+ targetId: string;
68
+ capabilityId: string | null;
69
+ capabilityVersion: string | null;
70
+ authorizationSource: string | null;
71
+ approvalId: string | null;
72
+ amendsActionId: string | null;
73
+ createdAt: Date;
74
+ }[];
75
+ nextCursor: {
76
+ occurredAt: string;
77
+ id: string;
78
+ } | null;
79
+ };
3
80
  export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
4
81
  "/": {
5
82
  $get: {
@@ -17,7 +94,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
17
94
  }[];
18
95
  id: string;
19
96
  bookingNumber: string;
20
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
97
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
21
98
  personId: string | null;
22
99
  organizationId: string | null;
23
100
  sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
@@ -184,7 +261,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
184
261
  data: {
185
262
  bookingId: string;
186
263
  bookingNumber: string;
187
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
264
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
188
265
  sellCurrency: string;
189
266
  sellAmountCents: number | null;
190
267
  startDate: string | null;
@@ -205,7 +282,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
205
282
  title: string;
206
283
  description: string | null;
207
284
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
208
- status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
285
+ status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
209
286
  serviceDate: string | null;
210
287
  startsAt: string | null;
211
288
  endsAt: string | null;
@@ -241,7 +318,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
241
318
  travelerId: string | null;
242
319
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
243
320
  deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
244
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
321
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
245
322
  artifactUrl: string | null;
246
323
  }[];
247
324
  };
@@ -329,7 +406,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
329
406
  data: {
330
407
  id: string;
331
408
  bookingNumber: string;
332
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
409
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
333
410
  personId: string | null;
334
411
  organizationId: string | null;
335
412
  sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
@@ -383,6 +460,94 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
383
460
  status: import("hono/utils/http-status").ContentfulStatusCode;
384
461
  };
385
462
  };
463
+ } & {
464
+ "/:id/action-ledger": {
465
+ $get: {
466
+ input: {
467
+ param: {
468
+ id: string;
469
+ };
470
+ };
471
+ output: {
472
+ error: string;
473
+ };
474
+ outputFormat: "json";
475
+ status: 404;
476
+ } | {
477
+ input: {
478
+ param: {
479
+ id: string;
480
+ };
481
+ };
482
+ output: {
483
+ data: {
484
+ id: string;
485
+ actionName: string;
486
+ actionVersion: string;
487
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
488
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
489
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
490
+ actorType: string | null;
491
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
492
+ principalId: string;
493
+ principalSubtype: string | null;
494
+ sessionId: string | null;
495
+ apiTokenId: string | null;
496
+ internalRequest: boolean;
497
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
498
+ delegatedByPrincipalId: string | null;
499
+ delegationId: string | null;
500
+ callerType: string | null;
501
+ organizationId: string | null;
502
+ routeOrToolName: string | null;
503
+ workflowRunId: string | null;
504
+ workflowStepId: string | null;
505
+ correlationId: string | null;
506
+ causationActionId: string | null;
507
+ idempotencyScope: string | null;
508
+ idempotencyKey: string | null;
509
+ idempotencyFingerprint: string | null;
510
+ targetType: string;
511
+ targetId: string;
512
+ capabilityId: string | null;
513
+ capabilityVersion: string | null;
514
+ authorizationSource: string | null;
515
+ approvalId: string | null;
516
+ amendsActionId: string | null;
517
+ occurredAt: string;
518
+ createdAt: string;
519
+ }[];
520
+ travelers: {
521
+ id: string;
522
+ firstName: string;
523
+ lastName: string;
524
+ }[];
525
+ pageInfo: {
526
+ nextCursor: {
527
+ occurredAt: string;
528
+ id: string;
529
+ } | null;
530
+ };
531
+ };
532
+ outputFormat: "json";
533
+ status: import("hono/utils/http-status").ContentfulStatusCode;
534
+ };
535
+ };
536
+ } & {
537
+ "/:id/action-approvals/:approvalId/decide": {
538
+ $post: {
539
+ input: {
540
+ param: {
541
+ id: string;
542
+ } & {
543
+ approvalId: string;
544
+ };
545
+ };
546
+ output: {};
547
+ outputFormat: string;
548
+ status: import("hono/utils/http-status").StatusCode;
549
+ };
550
+ };
386
551
  } & {
387
552
  "/reserve": {
388
553
  $post: {
@@ -390,10 +555,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
390
555
  output: {
391
556
  data: {
392
557
  id: string;
393
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
558
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
559
+ organizationId: string | null;
394
560
  createdAt: string;
395
561
  updatedAt: string;
396
- organizationId: string | null;
397
562
  redeemedAt: string | null;
398
563
  startDate: string | null;
399
564
  endDate: string | null;
@@ -480,10 +645,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
480
645
  output: {
481
646
  data: {
482
647
  id: string;
483
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
648
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
649
+ organizationId: string | null;
484
650
  createdAt: string;
485
651
  updatedAt: string;
486
- organizationId: string | null;
487
652
  redeemedAt: string | null;
488
653
  startDate: string | null;
489
654
  endDate: string | null;
@@ -610,547 +775,43 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
610
775
  } | {
611
776
  input: {
612
777
  param: {
613
- orderId: string;
614
- };
615
- };
616
- output: {
617
- data: import("hono/utils/types").JSONValue;
618
- };
619
- outputFormat: "json";
620
- status: 201;
621
- } | {
622
- input: {
623
- param: {
624
- orderId: string;
625
- };
626
- };
627
- output: {
628
- error: string;
629
- };
630
- outputFormat: "json";
631
- status: 400;
632
- };
633
- };
634
- } & {
635
- "/": {
636
- $post: {
637
- input: {};
638
- output: {
639
- data: {
640
- id: string;
641
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
642
- createdAt: string;
643
- updatedAt: string;
644
- organizationId: string | null;
645
- redeemedAt: string | null;
646
- startDate: string | null;
647
- endDate: string | null;
648
- bookingNumber: string;
649
- personId: string | null;
650
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
651
- externalBookingRef: string | null;
652
- communicationLanguage: string | null;
653
- contactFirstName: string | null;
654
- contactLastName: string | null;
655
- contactEmail: string | null;
656
- contactPhone: string | null;
657
- contactPreferredLanguage: string | null;
658
- contactCountry: string | null;
659
- contactRegion: string | null;
660
- contactCity: string | null;
661
- contactAddressLine1: string | null;
662
- contactPostalCode: string | null;
663
- sellCurrency: string;
664
- baseCurrency: string | null;
665
- fxRateSetId: string | null;
666
- sellAmountCents: number | null;
667
- baseSellAmountCents: number | null;
668
- costAmountCents: number | null;
669
- baseCostAmountCents: number | null;
670
- marginPercent: number | null;
671
- pax: number | null;
672
- internalNotes: string | null;
673
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
674
- priceOverride: {
675
- isManual: true;
676
- originalAmountCents: number | null;
677
- overriddenAmountCents: number;
678
- currency: string;
679
- reason: string;
680
- overriddenBy: string;
681
- overriddenAt: string;
682
- } | null;
683
- holdExpiresAt: string | null;
684
- confirmedAt: string | null;
685
- expiredAt: string | null;
686
- cancelledAt: string | null;
687
- completedAt: string | null;
688
- awaitingPaymentAt: string | null;
689
- paidAt: string | null;
690
- } | null;
691
- };
692
- outputFormat: "json";
693
- status: 201;
694
- } | {
695
- input: {};
696
- output: {
697
- error: string;
698
- details: undefined;
699
- };
700
- outputFormat: "json";
701
- status: 400;
702
- };
703
- };
704
- } & {
705
- "/:id": {
706
- $patch: {
707
- input: {
708
- param: {
709
- id: string;
710
- };
711
- };
712
- output: {
713
- error: string;
714
- };
715
- outputFormat: "json";
716
- status: 404;
717
- } | {
718
- input: {
719
- param: {
720
- id: string;
721
- };
722
- };
723
- output: {
724
- data: {
725
- id: string;
726
- bookingNumber: string;
727
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
728
- personId: string | null;
729
- organizationId: string | null;
730
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
731
- externalBookingRef: string | null;
732
- communicationLanguage: string | null;
733
- contactFirstName: string | null;
734
- contactLastName: string | null;
735
- contactEmail: string | null;
736
- contactPhone: string | null;
737
- contactPreferredLanguage: string | null;
738
- contactCountry: string | null;
739
- contactRegion: string | null;
740
- contactCity: string | null;
741
- contactAddressLine1: string | null;
742
- contactPostalCode: string | null;
743
- sellCurrency: string;
744
- baseCurrency: string | null;
745
- fxRateSetId: string | null;
746
- sellAmountCents: number | null;
747
- baseSellAmountCents: number | null;
748
- costAmountCents: number | null;
749
- baseCostAmountCents: number | null;
750
- marginPercent: number | null;
751
- startDate: string | null;
752
- endDate: string | null;
753
- pax: number | null;
754
- internalNotes: string | null;
755
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
756
- priceOverride: {
757
- isManual: true;
758
- originalAmountCents: number | null;
759
- overriddenAmountCents: number;
760
- currency: string;
761
- reason: string;
762
- overriddenBy: string;
763
- overriddenAt: string;
764
- } | null;
765
- holdExpiresAt: string | null;
766
- confirmedAt: string | null;
767
- expiredAt: string | null;
768
- cancelledAt: string | null;
769
- completedAt: string | null;
770
- awaitingPaymentAt: string | null;
771
- paidAt: string | null;
772
- redeemedAt: string | null;
773
- createdAt: string;
774
- updatedAt: string;
775
- };
776
- };
777
- outputFormat: "json";
778
- status: import("hono/utils/http-status").ContentfulStatusCode;
779
- };
780
- };
781
- } & {
782
- "/:id": {
783
- $delete: {
784
- input: {
785
- param: {
786
- id: string;
787
- };
788
- };
789
- output: {
790
- error: string;
791
- };
792
- outputFormat: "json";
793
- status: 404;
794
- } | {
795
- input: {
796
- param: {
797
- id: string;
798
- };
799
- };
800
- output: {
801
- success: true;
802
- };
803
- outputFormat: "json";
804
- status: 200;
805
- };
806
- };
807
- } & {
808
- "/:id/confirm": {
809
- $post: {
810
- input: {
811
- param: {
812
- id: string;
813
- };
814
- };
815
- output: {
816
- error: string;
817
- };
818
- outputFormat: "json";
819
- status: 404;
820
- } | {
821
- input: {
822
- param: {
823
- id: string;
824
- };
825
- };
826
- output: {
827
- error: string;
828
- };
829
- outputFormat: "json";
830
- status: 409;
831
- } | {
832
- input: {
833
- param: {
834
- id: string;
835
- };
836
- };
837
- output: {
838
- data: {
839
- id: string;
840
- bookingNumber: string;
841
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
842
- personId: string | null;
843
- organizationId: string | null;
844
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
845
- externalBookingRef: string | null;
846
- communicationLanguage: string | null;
847
- contactFirstName: string | null;
848
- contactLastName: string | null;
849
- contactEmail: string | null;
850
- contactPhone: string | null;
851
- contactPreferredLanguage: string | null;
852
- contactCountry: string | null;
853
- contactRegion: string | null;
854
- contactCity: string | null;
855
- contactAddressLine1: string | null;
856
- contactPostalCode: string | null;
857
- sellCurrency: string;
858
- baseCurrency: string | null;
859
- fxRateSetId: string | null;
860
- sellAmountCents: number | null;
861
- baseSellAmountCents: number | null;
862
- costAmountCents: number | null;
863
- baseCostAmountCents: number | null;
864
- marginPercent: number | null;
865
- startDate: string | null;
866
- endDate: string | null;
867
- pax: number | null;
868
- internalNotes: string | null;
869
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
870
- priceOverride: {
871
- isManual: true;
872
- originalAmountCents: number | null;
873
- overriddenAmountCents: number;
874
- currency: string;
875
- reason: string;
876
- overriddenBy: string;
877
- overriddenAt: string;
878
- } | null;
879
- holdExpiresAt: string | null;
880
- confirmedAt: string | null;
881
- expiredAt: string | null;
882
- cancelledAt: string | null;
883
- completedAt: string | null;
884
- awaitingPaymentAt: string | null;
885
- paidAt: string | null;
886
- redeemedAt: string | null;
887
- createdAt: string;
888
- updatedAt: string;
889
- } | null;
890
- };
891
- outputFormat: "json";
892
- status: import("hono/utils/http-status").ContentfulStatusCode;
893
- } | {
894
- input: {
895
- param: {
896
- id: string;
897
- };
898
- };
899
- output: {
900
- error: string;
901
- };
902
- outputFormat: "json";
903
- status: 400;
904
- };
905
- };
906
- } & {
907
- "/:id/extend-hold": {
908
- $post: {
909
- input: {
910
- param: {
911
- id: string;
912
- };
913
- };
914
- output: {
915
- error: string;
916
- };
917
- outputFormat: "json";
918
- status: 404;
919
- } | {
920
- input: {
921
- param: {
922
- id: string;
923
- };
924
- };
925
- output: {
926
- error: string;
927
- };
928
- outputFormat: "json";
929
- status: 409;
930
- } | {
931
- input: {
932
- param: {
933
- id: string;
934
- };
935
- };
936
- output: {
937
- data: {
938
- id: string;
939
- bookingNumber: string;
940
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
941
- personId: string | null;
942
- organizationId: string | null;
943
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
944
- externalBookingRef: string | null;
945
- communicationLanguage: string | null;
946
- contactFirstName: string | null;
947
- contactLastName: string | null;
948
- contactEmail: string | null;
949
- contactPhone: string | null;
950
- contactPreferredLanguage: string | null;
951
- contactCountry: string | null;
952
- contactRegion: string | null;
953
- contactCity: string | null;
954
- contactAddressLine1: string | null;
955
- contactPostalCode: string | null;
956
- sellCurrency: string;
957
- baseCurrency: string | null;
958
- fxRateSetId: string | null;
959
- sellAmountCents: number | null;
960
- baseSellAmountCents: number | null;
961
- costAmountCents: number | null;
962
- baseCostAmountCents: number | null;
963
- marginPercent: number | null;
964
- startDate: string | null;
965
- endDate: string | null;
966
- pax: number | null;
967
- internalNotes: string | null;
968
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
969
- priceOverride: {
970
- isManual: true;
971
- originalAmountCents: number | null;
972
- overriddenAmountCents: number;
973
- currency: string;
974
- reason: string;
975
- overriddenBy: string;
976
- overriddenAt: string;
977
- } | null;
978
- holdExpiresAt: string | null;
979
- confirmedAt: string | null;
980
- expiredAt: string | null;
981
- cancelledAt: string | null;
982
- completedAt: string | null;
983
- awaitingPaymentAt: string | null;
984
- paidAt: string | null;
985
- redeemedAt: string | null;
986
- createdAt: string;
987
- updatedAt: string;
988
- } | null;
989
- };
990
- outputFormat: "json";
991
- status: import("hono/utils/http-status").ContentfulStatusCode;
992
- } | {
993
- input: {
994
- param: {
995
- id: string;
996
- };
997
- };
998
- output: {
999
- error: string;
1000
- };
1001
- outputFormat: "json";
1002
- status: 400;
1003
- };
1004
- };
1005
- } & {
1006
- "/:id/expire": {
1007
- $post: {
1008
- input: {
1009
- param: {
1010
- id: string;
1011
- };
1012
- };
1013
- output: {
1014
- error: string;
1015
- };
1016
- outputFormat: "json";
1017
- status: 404;
1018
- } | {
1019
- input: {
1020
- param: {
1021
- id: string;
1022
- };
1023
- };
1024
- output: {
1025
- error: string;
1026
- };
1027
- outputFormat: "json";
1028
- status: 409;
1029
- } | {
1030
- input: {
1031
- param: {
1032
- id: string;
1033
- };
1034
- };
1035
- output: {
1036
- data: {
1037
- id: string;
1038
- bookingNumber: string;
1039
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
1040
- personId: string | null;
1041
- organizationId: string | null;
1042
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1043
- externalBookingRef: string | null;
1044
- communicationLanguage: string | null;
1045
- contactFirstName: string | null;
1046
- contactLastName: string | null;
1047
- contactEmail: string | null;
1048
- contactPhone: string | null;
1049
- contactPreferredLanguage: string | null;
1050
- contactCountry: string | null;
1051
- contactRegion: string | null;
1052
- contactCity: string | null;
1053
- contactAddressLine1: string | null;
1054
- contactPostalCode: string | null;
1055
- sellCurrency: string;
1056
- baseCurrency: string | null;
1057
- fxRateSetId: string | null;
1058
- sellAmountCents: number | null;
1059
- baseSellAmountCents: number | null;
1060
- costAmountCents: number | null;
1061
- baseCostAmountCents: number | null;
1062
- marginPercent: number | null;
1063
- startDate: string | null;
1064
- endDate: string | null;
1065
- pax: number | null;
1066
- internalNotes: string | null;
1067
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
1068
- priceOverride: {
1069
- isManual: true;
1070
- originalAmountCents: number | null;
1071
- overriddenAmountCents: number;
1072
- currency: string;
1073
- reason: string;
1074
- overriddenBy: string;
1075
- overriddenAt: string;
1076
- } | null;
1077
- holdExpiresAt: string | null;
1078
- confirmedAt: string | null;
1079
- expiredAt: string | null;
1080
- cancelledAt: string | null;
1081
- completedAt: string | null;
1082
- awaitingPaymentAt: string | null;
1083
- paidAt: string | null;
1084
- redeemedAt: string | null;
1085
- createdAt: string;
1086
- updatedAt: string;
1087
- } | null;
1088
- };
1089
- outputFormat: "json";
1090
- status: import("hono/utils/http-status").ContentfulStatusCode;
1091
- } | {
1092
- input: {
1093
- param: {
1094
- id: string;
1095
- };
1096
- };
1097
- output: {
1098
- error: string;
1099
- };
1100
- outputFormat: "json";
1101
- status: 400;
1102
- };
1103
- };
1104
- } & {
1105
- "/expire-stale": {
1106
- $post: {
1107
- input: {};
1108
- output: {
1109
- expiredIds: string[];
1110
- count: number;
1111
- cutoff: string;
1112
- };
1113
- outputFormat: "json";
1114
- status: import("hono/utils/http-status").ContentfulStatusCode;
1115
- };
1116
- };
1117
- } & {
1118
- "/:id/cancel": {
1119
- $post: {
1120
- input: {
1121
- param: {
1122
- id: string;
1123
- };
1124
- };
1125
- output: {
1126
- error: string;
1127
- };
1128
- outputFormat: "json";
1129
- status: 404;
1130
- } | {
1131
- input: {
1132
- param: {
1133
- id: string;
778
+ orderId: string;
1134
779
  };
1135
780
  };
1136
781
  output: {
1137
- error: string;
782
+ data: import("hono/utils/types").JSONValue;
1138
783
  };
1139
784
  outputFormat: "json";
1140
- status: 409;
785
+ status: 201;
1141
786
  } | {
1142
787
  input: {
1143
788
  param: {
1144
- id: string;
789
+ orderId: string;
1145
790
  };
1146
791
  };
792
+ output: {
793
+ error: string;
794
+ };
795
+ outputFormat: "json";
796
+ status: 400;
797
+ };
798
+ };
799
+ } & {
800
+ "/": {
801
+ $post: {
802
+ input: {};
1147
803
  output: {
1148
804
  data: {
1149
805
  id: string;
806
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
807
+ organizationId: string | null;
808
+ createdAt: string;
809
+ updatedAt: string;
810
+ redeemedAt: string | null;
811
+ startDate: string | null;
812
+ endDate: string | null;
1150
813
  bookingNumber: string;
1151
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
1152
814
  personId: string | null;
1153
- organizationId: string | null;
1154
815
  sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1155
816
  externalBookingRef: string | null;
1156
817
  communicationLanguage: string | null;
@@ -1172,8 +833,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1172
833
  costAmountCents: number | null;
1173
834
  baseCostAmountCents: number | null;
1174
835
  marginPercent: number | null;
1175
- startDate: string | null;
1176
- endDate: string | null;
1177
836
  pax: number | null;
1178
837
  internalNotes: string | null;
1179
838
  customerPaymentPolicy: import("hono/utils/types").JSONValue;
@@ -1193,29 +852,23 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1193
852
  completedAt: string | null;
1194
853
  awaitingPaymentAt: string | null;
1195
854
  paidAt: string | null;
1196
- redeemedAt: string | null;
1197
- createdAt: string;
1198
- updatedAt: string;
1199
- } | null | undefined;
855
+ } | null;
1200
856
  };
1201
857
  outputFormat: "json";
1202
- status: import("hono/utils/http-status").ContentfulStatusCode;
858
+ status: 201;
1203
859
  } | {
1204
- input: {
1205
- param: {
1206
- id: string;
1207
- };
1208
- };
860
+ input: {};
1209
861
  output: {
1210
862
  error: string;
863
+ details: undefined;
1211
864
  };
1212
865
  outputFormat: "json";
1213
866
  status: 400;
1214
867
  };
1215
868
  };
1216
869
  } & {
1217
- "/:id/start": {
1218
- $post: {
870
+ "/:id": {
871
+ $patch: {
1219
872
  input: {
1220
873
  param: {
1221
874
  id: string;
@@ -1226,17 +879,6 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1226
879
  };
1227
880
  outputFormat: "json";
1228
881
  status: 404;
1229
- } | {
1230
- input: {
1231
- param: {
1232
- id: string;
1233
- };
1234
- };
1235
- output: {
1236
- error: string;
1237
- };
1238
- outputFormat: "json";
1239
- status: 409;
1240
882
  } | {
1241
883
  input: {
1242
884
  param: {
@@ -1247,7 +889,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1247
889
  data: {
1248
890
  id: string;
1249
891
  bookingNumber: string;
1250
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
892
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
1251
893
  personId: string | null;
1252
894
  organizationId: string | null;
1253
895
  sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
@@ -1295,11 +937,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1295
937
  redeemedAt: string | null;
1296
938
  createdAt: string;
1297
939
  updatedAt: string;
1298
- } | null;
940
+ };
1299
941
  };
1300
942
  outputFormat: "json";
1301
943
  status: import("hono/utils/http-status").ContentfulStatusCode;
1302
- } | {
944
+ };
945
+ };
946
+ } & {
947
+ "/:id": {
948
+ $delete: {
1303
949
  input: {
1304
950
  param: {
1305
951
  id: string;
@@ -1309,11 +955,35 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1309
955
  error: string;
1310
956
  };
1311
957
  outputFormat: "json";
1312
- status: 400;
958
+ status: 404;
959
+ } | {
960
+ input: {
961
+ param: {
962
+ id: string;
963
+ };
964
+ };
965
+ output: {
966
+ success: true;
967
+ };
968
+ outputFormat: "json";
969
+ status: 200;
1313
970
  };
1314
971
  };
1315
972
  } & {
1316
- "/:id/complete": {
973
+ "/:id/confirm": {
974
+ $post: {
975
+ input: {
976
+ param: {
977
+ id: string;
978
+ };
979
+ };
980
+ output: {};
981
+ outputFormat: string;
982
+ status: import("hono/utils/http-status").StatusCode;
983
+ };
984
+ };
985
+ } & {
986
+ "/:id/extend-hold": {
1317
987
  $post: {
1318
988
  input: {
1319
989
  param: {
@@ -1346,7 +1016,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1346
1016
  data: {
1347
1017
  id: string;
1348
1018
  bookingNumber: string;
1349
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
1019
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
1350
1020
  personId: string | null;
1351
1021
  organizationId: string | null;
1352
1022
  sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
@@ -1412,91 +1082,81 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1412
1082
  };
1413
1083
  };
1414
1084
  } & {
1415
- "/:id/override-status": {
1085
+ "/:id/expire": {
1416
1086
  $post: {
1417
1087
  input: {
1418
1088
  param: {
1419
1089
  id: string;
1420
1090
  };
1421
1091
  };
1092
+ output: {};
1093
+ outputFormat: string;
1094
+ status: import("hono/utils/http-status").StatusCode;
1095
+ };
1096
+ };
1097
+ } & {
1098
+ "/expire-stale": {
1099
+ $post: {
1100
+ input: {};
1422
1101
  output: {
1423
- error: string;
1102
+ expiredIds: string[];
1103
+ count: number;
1104
+ cutoff: string;
1424
1105
  };
1425
1106
  outputFormat: "json";
1426
- status: 404;
1427
- } | {
1107
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1108
+ };
1109
+ };
1110
+ } & {
1111
+ "/:id/cancel": {
1112
+ $post: {
1428
1113
  input: {
1429
1114
  param: {
1430
1115
  id: string;
1431
1116
  };
1432
1117
  };
1433
- output: {
1434
- data: {
1118
+ output: {};
1119
+ outputFormat: string;
1120
+ status: import("hono/utils/http-status").StatusCode;
1121
+ };
1122
+ };
1123
+ } & {
1124
+ "/:id/start": {
1125
+ $post: {
1126
+ input: {
1127
+ param: {
1435
1128
  id: string;
1436
- bookingNumber: string;
1437
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
1438
- personId: string | null;
1439
- organizationId: string | null;
1440
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1441
- externalBookingRef: string | null;
1442
- communicationLanguage: string | null;
1443
- contactFirstName: string | null;
1444
- contactLastName: string | null;
1445
- contactEmail: string | null;
1446
- contactPhone: string | null;
1447
- contactPreferredLanguage: string | null;
1448
- contactCountry: string | null;
1449
- contactRegion: string | null;
1450
- contactCity: string | null;
1451
- contactAddressLine1: string | null;
1452
- contactPostalCode: string | null;
1453
- sellCurrency: string;
1454
- baseCurrency: string | null;
1455
- fxRateSetId: string | null;
1456
- sellAmountCents: number | null;
1457
- baseSellAmountCents: number | null;
1458
- costAmountCents: number | null;
1459
- baseCostAmountCents: number | null;
1460
- marginPercent: number | null;
1461
- startDate: string | null;
1462
- endDate: string | null;
1463
- pax: number | null;
1464
- internalNotes: string | null;
1465
- customerPaymentPolicy: import("hono/utils/types").JSONValue;
1466
- priceOverride: {
1467
- isManual: true;
1468
- originalAmountCents: number | null;
1469
- overriddenAmountCents: number;
1470
- currency: string;
1471
- reason: string;
1472
- overriddenBy: string;
1473
- overriddenAt: string;
1474
- } | null;
1475
- holdExpiresAt: string | null;
1476
- confirmedAt: string | null;
1477
- expiredAt: string | null;
1478
- cancelledAt: string | null;
1479
- completedAt: string | null;
1480
- awaitingPaymentAt: string | null;
1481
- paidAt: string | null;
1482
- redeemedAt: string | null;
1483
- createdAt: string;
1484
- updatedAt: string;
1485
- } | null | undefined;
1129
+ };
1486
1130
  };
1487
- outputFormat: "json";
1488
- status: import("hono/utils/http-status").ContentfulStatusCode;
1489
- } | {
1131
+ output: {};
1132
+ outputFormat: string;
1133
+ status: import("hono/utils/http-status").StatusCode;
1134
+ };
1135
+ };
1136
+ } & {
1137
+ "/:id/complete": {
1138
+ $post: {
1490
1139
  input: {
1491
1140
  param: {
1492
1141
  id: string;
1493
1142
  };
1494
1143
  };
1495
- output: {
1496
- error: string;
1144
+ output: {};
1145
+ outputFormat: string;
1146
+ status: import("hono/utils/http-status").StatusCode;
1147
+ };
1148
+ };
1149
+ } & {
1150
+ "/:id/override-status": {
1151
+ $post: {
1152
+ input: {
1153
+ param: {
1154
+ id: string;
1155
+ };
1497
1156
  };
1498
- outputFormat: "json";
1499
- status: 400;
1157
+ output: {};
1158
+ outputFormat: string;
1159
+ status: import("hono/utils/http-status").StatusCode;
1500
1160
  };
1501
1161
  };
1502
1162
  } & {
@@ -1519,7 +1179,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1519
1179
  availabilitySlotId: string | null;
1520
1180
  quantity: number;
1521
1181
  allocationType: "resource" | "unit" | "pickup";
1522
- status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
1182
+ status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
1523
1183
  holdExpiresAt: string | null;
1524
1184
  confirmedAt: string | null;
1525
1185
  releasedAt: string | null;
@@ -1669,10 +1329,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1669
1329
  data: {
1670
1330
  traveler: {
1671
1331
  id: string;
1672
- notes: string | null;
1673
1332
  createdAt: string;
1674
1333
  updatedAt: string;
1675
1334
  email: string | null;
1335
+ notes: string | null;
1676
1336
  firstName: string;
1677
1337
  lastName: string;
1678
1338
  bookingId: string;
@@ -1913,7 +1573,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1913
1573
  title: string;
1914
1574
  description: string | null;
1915
1575
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1916
- status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
1576
+ status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
1917
1577
  serviceDate: string | null;
1918
1578
  startsAt: string | null;
1919
1579
  endsAt: string | null;
@@ -1964,22 +1624,22 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
1964
1624
  output: {
1965
1625
  data: {
1966
1626
  id: string;
1967
- productId: string | null;
1968
- optionId: string | null;
1969
- startsAt: string | null;
1970
- endsAt: string | null;
1971
- status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
1972
- notes: string | null;
1627
+ description: string | null;
1628
+ status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
1973
1629
  createdAt: string;
1974
- updatedAt: string;
1975
1630
  metadata: {
1976
1631
  [x: string]: import("hono/utils/types").JSONValue;
1977
1632
  } | null;
1978
- description: string | null;
1633
+ updatedAt: string;
1634
+ notes: string | null;
1979
1635
  bookingId: string;
1636
+ title: string;
1980
1637
  sellCurrency: string;
1638
+ productId: string | null;
1981
1639
  optionUnitId: string | null;
1982
- title: string;
1640
+ optionId: string | null;
1641
+ startsAt: string | null;
1642
+ endsAt: string | null;
1983
1643
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
1984
1644
  serviceDate: string | null;
1985
1645
  quantity: number;
@@ -2027,7 +1687,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2027
1687
  title: string;
2028
1688
  description: string | null;
2029
1689
  itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
2030
- status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
1690
+ status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
2031
1691
  serviceDate: string | null;
2032
1692
  startsAt: string | null;
2033
1693
  endsAt: string | null;
@@ -2232,9 +1892,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2232
1892
  data: {
2233
1893
  id: string;
2234
1894
  status: "cancelled" | "pending" | "confirmed" | "rejected";
2235
- notes: string | null;
2236
1895
  createdAt: string;
2237
1896
  updatedAt: string;
1897
+ notes: string | null;
2238
1898
  bookingId: string;
2239
1899
  costAmountCents: number;
2240
1900
  confirmedAt: string | null;
@@ -2307,7 +1967,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2307
1967
  travelerId: string | null;
2308
1968
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
2309
1969
  deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
2310
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
1970
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
2311
1971
  artifactUrl: string | null;
2312
1972
  payload: {
2313
1973
  [x: string]: import("hono/utils/types").JSONValue;
@@ -2344,7 +2004,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2344
2004
  output: {
2345
2005
  data: {
2346
2006
  id: string;
2347
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
2007
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
2348
2008
  createdAt: string;
2349
2009
  updatedAt: string;
2350
2010
  revokedAt: string | null;
@@ -2395,7 +2055,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2395
2055
  travelerId: string | null;
2396
2056
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
2397
2057
  deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
2398
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
2058
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
2399
2059
  artifactUrl: string | null;
2400
2060
  payload: {
2401
2061
  [x: string]: import("hono/utils/types").JSONValue;
@@ -2466,11 +2126,11 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2466
2126
  } | null;
2467
2127
  redeemedAt: string;
2468
2128
  bookingId: string;
2469
- method: "api" | "other" | "manual" | "scan";
2470
2129
  travelerId: string | null;
2471
2130
  bookingItemId: string | null;
2472
2131
  redeemedBy: string | null;
2473
2132
  location: string | null;
2133
+ method: "api" | "other" | "manual" | "scan";
2474
2134
  };
2475
2135
  };
2476
2136
  outputFormat: "json";
@@ -2513,15 +2173,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2513
2173
  output: {
2514
2174
  data: {
2515
2175
  id: string;
2516
- productId: string | null;
2517
2176
  createdAt: string;
2518
- updatedAt: string;
2519
2177
  metadata: {
2520
2178
  [x: string]: import("hono/utils/types").JSONValue;
2521
2179
  } | null;
2180
+ updatedAt: string;
2522
2181
  kind: "other" | "shared_room" | "cruise_party";
2523
2182
  label: string;
2524
2183
  primaryBookingId: string | null;
2184
+ productId: string | null;
2525
2185
  optionUnitId: string | null;
2526
2186
  membership: {
2527
2187
  id: string;
@@ -2667,9 +2327,9 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2667
2327
  data: {
2668
2328
  type: "visa" | "other" | "insurance" | "health" | "passport_copy";
2669
2329
  id: string;
2670
- notes: string | null;
2671
2330
  createdAt: string;
2672
2331
  expiresAt: string | null;
2332
+ notes: string | null;
2673
2333
  bookingId: string;
2674
2334
  travelerId: string | null;
2675
2335
  fileName: string;
@@ -2717,15 +2377,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2717
2377
  output: {
2718
2378
  data: {
2719
2379
  id: string;
2720
- productId: string | null;
2721
2380
  createdAt: string;
2722
- updatedAt: string;
2723
2381
  metadata: {
2724
2382
  [x: string]: import("hono/utils/types").JSONValue;
2725
2383
  } | null;
2384
+ updatedAt: string;
2726
2385
  kind: "other" | "shared_room" | "cruise_party";
2727
2386
  label: string;
2728
2387
  primaryBookingId: string | null;
2388
+ productId: string | null;
2729
2389
  optionUnitId: string | null;
2730
2390
  }[];
2731
2391
  total: number;
@@ -2743,15 +2403,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2743
2403
  output: {
2744
2404
  data: {
2745
2405
  id: string;
2746
- productId: string | null;
2747
2406
  createdAt: string;
2748
- updatedAt: string;
2749
2407
  metadata: {
2750
2408
  [x: string]: import("hono/utils/types").JSONValue;
2751
2409
  } | null;
2410
+ updatedAt: string;
2752
2411
  kind: "other" | "shared_room" | "cruise_party";
2753
2412
  label: string;
2754
2413
  primaryBookingId: string | null;
2414
+ productId: string | null;
2755
2415
  optionUnitId: string | null;
2756
2416
  };
2757
2417
  };
@@ -2788,10 +2448,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2788
2448
  groupId: string;
2789
2449
  booking: {
2790
2450
  id: string;
2791
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
2451
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
2452
+ organizationId: string | null;
2792
2453
  createdAt: string;
2793
2454
  updatedAt: string;
2794
- organizationId: string | null;
2795
2455
  redeemedAt: string | null;
2796
2456
  startDate: string | null;
2797
2457
  endDate: string | null;
@@ -2840,15 +2500,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2840
2500
  } | null;
2841
2501
  }[];
2842
2502
  id: string;
2843
- productId: string | null;
2844
2503
  createdAt: string;
2845
- updatedAt: string;
2846
2504
  metadata: {
2847
2505
  [x: string]: import("hono/utils/types").JSONValue;
2848
2506
  } | null;
2507
+ updatedAt: string;
2849
2508
  kind: "other" | "shared_room" | "cruise_party";
2850
2509
  label: string;
2851
2510
  primaryBookingId: string | null;
2511
+ productId: string | null;
2852
2512
  optionUnitId: string | null;
2853
2513
  };
2854
2514
  };
@@ -2878,15 +2538,15 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2878
2538
  output: {
2879
2539
  data: {
2880
2540
  id: string;
2881
- productId: string | null;
2882
2541
  createdAt: string;
2883
- updatedAt: string;
2884
2542
  metadata: {
2885
2543
  [x: string]: import("hono/utils/types").JSONValue;
2886
2544
  } | null;
2545
+ updatedAt: string;
2887
2546
  kind: "other" | "shared_room" | "cruise_party";
2888
2547
  label: string;
2889
2548
  primaryBookingId: string | null;
2549
+ productId: string | null;
2890
2550
  optionUnitId: string | null;
2891
2551
  };
2892
2552
  };
@@ -2937,10 +2597,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
2937
2597
  groupId: string;
2938
2598
  booking: {
2939
2599
  id: string;
2940
- status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
2600
+ status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
2601
+ organizationId: string | null;
2941
2602
  createdAt: string;
2942
2603
  updatedAt: string;
2943
- organizationId: string | null;
2944
2604
  redeemedAt: string | null;
2945
2605
  startDate: string | null;
2946
2606
  endDate: string | null;
@@ -3078,10 +2738,10 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
3078
2738
  output: {
3079
2739
  data: {
3080
2740
  id: string;
3081
- notes: string | null;
3082
2741
  createdAt: string;
3083
2742
  updatedAt: string;
3084
2743
  email: string | null;
2744
+ notes: string | null;
3085
2745
  firstName: string;
3086
2746
  lastName: string;
3087
2747
  bookingId: string;
@@ -3101,4 +2761,28 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
3101
2761
  }, "/groups">, "/", "/:id/documents/:documentId">;
3102
2762
  export type BookingRoutes = typeof bookingRoutes;
3103
2763
  export type PublicBookingRoutes = typeof publicBookingRoutes;
2764
+ export declare const __test__: {
2765
+ bookingActionLedgerQuerySchema: z.ZodPipe<z.ZodObject<{
2766
+ cursorOccurredAt: z.ZodOptional<z.ZodString>;
2767
+ cursorId: z.ZodOptional<z.ZodString>;
2768
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2769
+ }, z.core.$strip>, z.ZodTransform<{
2770
+ cursor: {
2771
+ occurredAt: string;
2772
+ id: string;
2773
+ } | undefined;
2774
+ limit?: number | undefined;
2775
+ }, {
2776
+ cursorOccurredAt?: string | undefined;
2777
+ cursorId?: string | undefined;
2778
+ limit?: number | undefined;
2779
+ }>>;
2780
+ bookingMutationSummary: typeof bookingMutationSummary;
2781
+ buildBookingActionLedgerPage: typeof buildBookingActionLedgerPage;
2782
+ changedBookingItemFields: typeof changedBookingItemFields;
2783
+ changedBookingMutationFields: typeof changedBookingMutationFields;
2784
+ changedBookingTravelDetailFields: typeof changedBookingTravelDetailFields;
2785
+ changedBookingTravelerFields: typeof changedBookingTravelerFields;
2786
+ };
2787
+ export {};
3104
2788
  //# sourceMappingURL=routes.d.ts.map