@voyant-travel/trips 0.110.2 → 0.111.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.
@@ -18,7 +18,6 @@ declare const createTripArgs: z.ZodObject<{
18
18
  createdBy: z.ZodOptional<z.ZodString>;
19
19
  components: z.ZodDefault<z.ZodArray<z.ZodObject<{
20
20
  description: z.ZodOptional<z.ZodString>;
21
- sequence: z.ZodDefault<z.ZodNumber>;
22
21
  kind: z.ZodEnum<{
23
22
  catalog_booking: "catalog_booking";
24
23
  manual_placeholder: "manual_placeholder";
@@ -26,6 +25,7 @@ declare const createTripArgs: z.ZodObject<{
26
25
  flight_order: "flight_order";
27
26
  external_order: "external_order";
28
27
  }>;
28
+ sequence: z.ZodDefault<z.ZodNumber>;
29
29
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
30
  catalogRef: z.ZodOptional<z.ZodObject<{
31
31
  entityModule: z.ZodString;
@@ -50,7 +50,6 @@ declare const reviseTripArgs: z.ZodObject<{
50
50
  envelopeId: z.ZodString;
51
51
  addComponents: z.ZodDefault<z.ZodArray<z.ZodObject<{
52
52
  description: z.ZodOptional<z.ZodString>;
53
- sequence: z.ZodDefault<z.ZodNumber>;
54
53
  kind: z.ZodEnum<{
55
54
  catalog_booking: "catalog_booking";
56
55
  manual_placeholder: "manual_placeholder";
@@ -58,6 +57,7 @@ declare const reviseTripArgs: z.ZodObject<{
58
57
  flight_order: "flight_order";
59
58
  external_order: "external_order";
60
59
  }>;
60
+ sequence: z.ZodDefault<z.ZodNumber>;
61
61
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
62
62
  catalogRef: z.ZodOptional<z.ZodObject<{
63
63
  entityModule: z.ZodString;
@@ -87,8 +87,8 @@ export declare const tripsMcpTools: readonly [McpToolDefinition<{
87
87
  travelerParty: Record<string, unknown>;
88
88
  constraints: Record<string, unknown>;
89
89
  components: {
90
- sequence: number;
91
90
  kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
91
+ sequence: number;
92
92
  metadata: Record<string, unknown>;
93
93
  description?: string | undefined;
94
94
  catalogRef?: {
@@ -113,8 +113,8 @@ export declare const tripsMcpTools: readonly [McpToolDefinition<{
113
113
  }, McpToolResult>, McpToolDefinition<{
114
114
  envelopeId: string;
115
115
  addComponents: {
116
- sequence: number;
117
116
  kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
117
+ sequence: number;
118
118
  metadata: Record<string, unknown>;
119
119
  description?: string | undefined;
120
120
  catalogRef?: {
package/dist/routes.d.ts CHANGED
@@ -37,9 +37,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
37
37
  data: {
38
38
  envelope: {
39
39
  id: string;
40
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
41
- title: string | null;
42
40
  description: string | null;
41
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
42
+ title: string | null;
43
43
  travelerParty: {
44
44
  [x: string]: import("hono/utils/types").JSONValue;
45
45
  };
@@ -75,12 +75,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
75
75
  };
76
76
  components: {
77
77
  id: string;
78
+ description: string | null;
79
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
80
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
78
81
  sourceKind: string | null;
79
82
  sourceConnectionId: string | null;
80
83
  sourceRef: string | null;
81
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
84
+ entityModule: string | null;
85
+ entityId: string | null;
86
+ bookingId: string | null;
87
+ holdToken: string | null;
82
88
  title: string | null;
83
- description: string | null;
84
89
  bookingGroupId: string | null;
85
90
  orderId: string | null;
86
91
  paymentSessionId: string | null;
@@ -88,12 +93,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
88
93
  updatedAt: string;
89
94
  envelopeId: string;
90
95
  sequence: number;
91
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
92
- entityModule: string | null;
93
- entityId: string | null;
94
96
  bookingDraftId: string | null;
95
97
  catalogQuoteId: string | null;
96
- bookingId: string | null;
97
98
  providerRef: string | null;
98
99
  supplierRef: string | null;
99
100
  componentCurrency: string | null;
@@ -121,7 +122,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
121
122
  cancellationSnapshot: {
122
123
  [x: string]: import("hono/utils/types").JSONValue;
123
124
  } | null;
124
- holdToken: string | null;
125
125
  holdExpiresAt: string | null;
126
126
  priceExpiresAt: string | null;
127
127
  warningCodes: string[];
@@ -146,9 +146,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
146
146
  data: {
147
147
  envelope: {
148
148
  id: string;
149
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
150
- title: string | null;
151
149
  description: string | null;
150
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
151
+ title: string | null;
152
152
  travelerParty: {
153
153
  [x: string]: import("hono/utils/types").JSONValue;
154
154
  };
@@ -184,12 +184,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
184
184
  };
185
185
  components: {
186
186
  id: string;
187
+ description: string | null;
188
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
189
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
187
190
  sourceKind: string | null;
188
191
  sourceConnectionId: string | null;
189
192
  sourceRef: string | null;
190
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
193
+ entityModule: string | null;
194
+ entityId: string | null;
195
+ bookingId: string | null;
196
+ holdToken: string | null;
191
197
  title: string | null;
192
- description: string | null;
193
198
  bookingGroupId: string | null;
194
199
  orderId: string | null;
195
200
  paymentSessionId: string | null;
@@ -197,12 +202,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
197
202
  updatedAt: string;
198
203
  envelopeId: string;
199
204
  sequence: number;
200
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
201
- entityModule: string | null;
202
- entityId: string | null;
203
205
  bookingDraftId: string | null;
204
206
  catalogQuoteId: string | null;
205
- bookingId: string | null;
206
207
  providerRef: string | null;
207
208
  supplierRef: string | null;
208
209
  componentCurrency: string | null;
@@ -230,7 +231,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
230
231
  cancellationSnapshot: {
231
232
  [x: string]: import("hono/utils/types").JSONValue;
232
233
  } | null;
233
- holdToken: string | null;
234
234
  holdExpiresAt: string | null;
235
235
  priceExpiresAt: string | null;
236
236
  warningCodes: string[];
@@ -248,7 +248,7 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
248
248
  error: string;
249
249
  };
250
250
  outputFormat: "json";
251
- status: 400 | 404 | 409;
251
+ status: 404 | 400 | 409;
252
252
  };
253
253
  };
254
254
  } & {
@@ -274,9 +274,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
274
274
  data: {
275
275
  envelope: {
276
276
  id: string;
277
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
278
- title: string | null;
279
277
  description: string | null;
278
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
279
+ title: string | null;
280
280
  travelerParty: {
281
281
  [x: string]: import("hono/utils/types").JSONValue;
282
282
  };
@@ -312,12 +312,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
312
312
  };
313
313
  components: {
314
314
  id: string;
315
+ description: string | null;
316
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
317
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
315
318
  sourceKind: string | null;
316
319
  sourceConnectionId: string | null;
317
320
  sourceRef: string | null;
318
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
321
+ entityModule: string | null;
322
+ entityId: string | null;
323
+ bookingId: string | null;
324
+ holdToken: string | null;
319
325
  title: string | null;
320
- description: string | null;
321
326
  bookingGroupId: string | null;
322
327
  orderId: string | null;
323
328
  paymentSessionId: string | null;
@@ -325,12 +330,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
325
330
  updatedAt: string;
326
331
  envelopeId: string;
327
332
  sequence: number;
328
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
329
- entityModule: string | null;
330
- entityId: string | null;
331
333
  bookingDraftId: string | null;
332
334
  catalogQuoteId: string | null;
333
- bookingId: string | null;
334
335
  providerRef: string | null;
335
336
  supplierRef: string | null;
336
337
  componentCurrency: string | null;
@@ -358,7 +359,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
358
359
  cancellationSnapshot: {
359
360
  [x: string]: import("hono/utils/types").JSONValue;
360
361
  } | null;
361
- holdToken: string | null;
362
362
  holdExpiresAt: string | null;
363
363
  priceExpiresAt: string | null;
364
364
  warningCodes: string[];
@@ -435,12 +435,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
435
435
  output: {
436
436
  data: {
437
437
  id: string;
438
+ description: string | null;
439
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
440
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
438
441
  sourceKind: string | null;
439
442
  sourceConnectionId: string | null;
440
443
  sourceRef: string | null;
441
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
444
+ entityModule: string | null;
445
+ entityId: string | null;
446
+ bookingId: string | null;
447
+ holdToken: string | null;
442
448
  title: string | null;
443
- description: string | null;
444
449
  bookingGroupId: string | null;
445
450
  orderId: string | null;
446
451
  paymentSessionId: string | null;
@@ -448,12 +453,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
448
453
  updatedAt: string;
449
454
  envelopeId: string;
450
455
  sequence: number;
451
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
452
- entityModule: string | null;
453
- entityId: string | null;
454
456
  bookingDraftId: string | null;
455
457
  catalogQuoteId: string | null;
456
- bookingId: string | null;
457
458
  providerRef: string | null;
458
459
  supplierRef: string | null;
459
460
  componentCurrency: string | null;
@@ -481,7 +482,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
481
482
  cancellationSnapshot: {
482
483
  [x: string]: import("hono/utils/types").JSONValue;
483
484
  } | null;
484
- holdToken: string | null;
485
485
  holdExpiresAt: string | null;
486
486
  priceExpiresAt: string | null;
487
487
  warningCodes: string[];
@@ -502,7 +502,7 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
502
502
  error: string;
503
503
  };
504
504
  outputFormat: "json";
505
- status: 400 | 404 | 409;
505
+ status: 404 | 400 | 409;
506
506
  };
507
507
  };
508
508
  } & {
@@ -541,9 +541,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
541
541
  data: {
542
542
  envelope: {
543
543
  id: string;
544
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
545
- title: string | null;
546
544
  description: string | null;
545
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
546
+ title: string | null;
547
547
  travelerParty: {
548
548
  [x: string]: import("hono/utils/types").JSONValue;
549
549
  };
@@ -579,12 +579,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
579
579
  };
580
580
  components: {
581
581
  id: string;
582
+ description: string | null;
583
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
584
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
582
585
  sourceKind: string | null;
583
586
  sourceConnectionId: string | null;
584
587
  sourceRef: string | null;
585
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
588
+ entityModule: string | null;
589
+ entityId: string | null;
590
+ bookingId: string | null;
591
+ holdToken: string | null;
586
592
  title: string | null;
587
- description: string | null;
588
593
  bookingGroupId: string | null;
589
594
  orderId: string | null;
590
595
  paymentSessionId: string | null;
@@ -592,12 +597,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
592
597
  updatedAt: string;
593
598
  envelopeId: string;
594
599
  sequence: number;
595
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
596
- entityModule: string | null;
597
- entityId: string | null;
598
600
  bookingDraftId: string | null;
599
601
  catalogQuoteId: string | null;
600
- bookingId: string | null;
601
602
  providerRef: string | null;
602
603
  supplierRef: string | null;
603
604
  componentCurrency: string | null;
@@ -625,7 +626,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
625
626
  cancellationSnapshot: {
626
627
  [x: string]: import("hono/utils/types").JSONValue;
627
628
  } | null;
628
- holdToken: string | null;
629
629
  holdExpiresAt: string | null;
630
630
  priceExpiresAt: string | null;
631
631
  warningCodes: string[];
@@ -661,7 +661,7 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
661
661
  error: string;
662
662
  };
663
663
  outputFormat: "json";
664
- status: 400 | 404 | 409;
664
+ status: 404 | 400 | 409;
665
665
  };
666
666
  };
667
667
  } & {
@@ -687,9 +687,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
687
687
  data: {
688
688
  envelope: {
689
689
  id: string;
690
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
691
- title: string | null;
692
690
  description: string | null;
691
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
692
+ title: string | null;
693
693
  travelerParty: {
694
694
  [x: string]: import("hono/utils/types").JSONValue;
695
695
  };
@@ -725,12 +725,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
725
725
  };
726
726
  components: {
727
727
  id: string;
728
+ description: string | null;
729
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
730
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
728
731
  sourceKind: string | null;
729
732
  sourceConnectionId: string | null;
730
733
  sourceRef: string | null;
731
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
734
+ entityModule: string | null;
735
+ entityId: string | null;
736
+ bookingId: string | null;
737
+ holdToken: string | null;
732
738
  title: string | null;
733
- description: string | null;
734
739
  bookingGroupId: string | null;
735
740
  orderId: string | null;
736
741
  paymentSessionId: string | null;
@@ -738,12 +743,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
738
743
  updatedAt: string;
739
744
  envelopeId: string;
740
745
  sequence: number;
741
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
742
- entityModule: string | null;
743
- entityId: string | null;
744
746
  bookingDraftId: string | null;
745
747
  catalogQuoteId: string | null;
746
- bookingId: string | null;
747
748
  providerRef: string | null;
748
749
  supplierRef: string | null;
749
750
  componentCurrency: string | null;
@@ -771,7 +772,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
771
772
  cancellationSnapshot: {
772
773
  [x: string]: import("hono/utils/types").JSONValue;
773
774
  } | null;
774
- holdToken: string | null;
775
775
  holdExpiresAt: string | null;
776
776
  priceExpiresAt: string | null;
777
777
  warningCodes: string[];
@@ -812,7 +812,7 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
812
812
  error: string;
813
813
  };
814
814
  outputFormat: "json";
815
- status: 400 | 404 | 409;
815
+ status: 404 | 400 | 409;
816
816
  };
817
817
  };
818
818
  } & {
@@ -838,9 +838,9 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
838
838
  data: {
839
839
  envelope: {
840
840
  id: string;
841
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
842
- title: string | null;
843
841
  description: string | null;
842
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
843
+ title: string | null;
844
844
  travelerParty: {
845
845
  [x: string]: import("hono/utils/types").JSONValue;
846
846
  };
@@ -876,12 +876,17 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
876
876
  };
877
877
  components: {
878
878
  id: string;
879
+ description: string | null;
880
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
881
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
879
882
  sourceKind: string | null;
880
883
  sourceConnectionId: string | null;
881
884
  sourceRef: string | null;
882
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
885
+ entityModule: string | null;
886
+ entityId: string | null;
887
+ bookingId: string | null;
888
+ holdToken: string | null;
883
889
  title: string | null;
884
- description: string | null;
885
890
  bookingGroupId: string | null;
886
891
  orderId: string | null;
887
892
  paymentSessionId: string | null;
@@ -889,12 +894,8 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
889
894
  updatedAt: string;
890
895
  envelopeId: string;
891
896
  sequence: number;
892
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
893
- entityModule: string | null;
894
- entityId: string | null;
895
897
  bookingDraftId: string | null;
896
898
  catalogQuoteId: string | null;
897
- bookingId: string | null;
898
899
  providerRef: string | null;
899
900
  supplierRef: string | null;
900
901
  componentCurrency: string | null;
@@ -922,7 +923,6 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
922
923
  cancellationSnapshot: {
923
924
  [x: string]: import("hono/utils/types").JSONValue;
924
925
  } | null;
925
- holdToken: string | null;
926
926
  holdExpiresAt: string | null;
927
927
  priceExpiresAt: string | null;
928
928
  warningCodes: string[];
@@ -970,7 +970,7 @@ export declare function createTripsRoutes(options?: TripsRoutesOptions): import(
970
970
  error: string;
971
971
  };
972
972
  outputFormat: "json";
973
- status: 400 | 404 | 409;
973
+ status: 404 | 400 | 409;
974
974
  };
975
975
  };
976
976
  } & {
@@ -1061,9 +1061,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1061
1061
  data: {
1062
1062
  envelope: {
1063
1063
  id: string;
1064
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1065
- title: string | null;
1066
1064
  description: string | null;
1065
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1066
+ title: string | null;
1067
1067
  travelerParty: {
1068
1068
  [x: string]: import("hono/utils/types").JSONValue;
1069
1069
  };
@@ -1099,12 +1099,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1099
1099
  };
1100
1100
  components: {
1101
1101
  id: string;
1102
+ description: string | null;
1103
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1104
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1102
1105
  sourceKind: string | null;
1103
1106
  sourceConnectionId: string | null;
1104
1107
  sourceRef: string | null;
1105
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1108
+ entityModule: string | null;
1109
+ entityId: string | null;
1110
+ bookingId: string | null;
1111
+ holdToken: string | null;
1106
1112
  title: string | null;
1107
- description: string | null;
1108
1113
  bookingGroupId: string | null;
1109
1114
  orderId: string | null;
1110
1115
  paymentSessionId: string | null;
@@ -1112,12 +1117,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1112
1117
  updatedAt: string;
1113
1118
  envelopeId: string;
1114
1119
  sequence: number;
1115
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1116
- entityModule: string | null;
1117
- entityId: string | null;
1118
1120
  bookingDraftId: string | null;
1119
1121
  catalogQuoteId: string | null;
1120
- bookingId: string | null;
1121
1122
  providerRef: string | null;
1122
1123
  supplierRef: string | null;
1123
1124
  componentCurrency: string | null;
@@ -1145,7 +1146,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1145
1146
  cancellationSnapshot: {
1146
1147
  [x: string]: import("hono/utils/types").JSONValue;
1147
1148
  } | null;
1148
- holdToken: string | null;
1149
1149
  holdExpiresAt: string | null;
1150
1150
  priceExpiresAt: string | null;
1151
1151
  warningCodes: string[];
@@ -1170,9 +1170,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1170
1170
  data: {
1171
1171
  envelope: {
1172
1172
  id: string;
1173
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1174
- title: string | null;
1175
1173
  description: string | null;
1174
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1175
+ title: string | null;
1176
1176
  travelerParty: {
1177
1177
  [x: string]: import("hono/utils/types").JSONValue;
1178
1178
  };
@@ -1208,12 +1208,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1208
1208
  };
1209
1209
  components: {
1210
1210
  id: string;
1211
+ description: string | null;
1212
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1213
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1211
1214
  sourceKind: string | null;
1212
1215
  sourceConnectionId: string | null;
1213
1216
  sourceRef: string | null;
1214
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1217
+ entityModule: string | null;
1218
+ entityId: string | null;
1219
+ bookingId: string | null;
1220
+ holdToken: string | null;
1215
1221
  title: string | null;
1216
- description: string | null;
1217
1222
  bookingGroupId: string | null;
1218
1223
  orderId: string | null;
1219
1224
  paymentSessionId: string | null;
@@ -1221,12 +1226,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1221
1226
  updatedAt: string;
1222
1227
  envelopeId: string;
1223
1228
  sequence: number;
1224
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1225
- entityModule: string | null;
1226
- entityId: string | null;
1227
1229
  bookingDraftId: string | null;
1228
1230
  catalogQuoteId: string | null;
1229
- bookingId: string | null;
1230
1231
  providerRef: string | null;
1231
1232
  supplierRef: string | null;
1232
1233
  componentCurrency: string | null;
@@ -1254,7 +1255,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1254
1255
  cancellationSnapshot: {
1255
1256
  [x: string]: import("hono/utils/types").JSONValue;
1256
1257
  } | null;
1257
- holdToken: string | null;
1258
1258
  holdExpiresAt: string | null;
1259
1259
  priceExpiresAt: string | null;
1260
1260
  warningCodes: string[];
@@ -1272,7 +1272,7 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1272
1272
  error: string;
1273
1273
  };
1274
1274
  outputFormat: "json";
1275
- status: 400 | 404 | 409;
1275
+ status: 404 | 400 | 409;
1276
1276
  };
1277
1277
  };
1278
1278
  } & {
@@ -1298,9 +1298,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1298
1298
  data: {
1299
1299
  envelope: {
1300
1300
  id: string;
1301
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1302
- title: string | null;
1303
1301
  description: string | null;
1302
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1303
+ title: string | null;
1304
1304
  travelerParty: {
1305
1305
  [x: string]: import("hono/utils/types").JSONValue;
1306
1306
  };
@@ -1336,12 +1336,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1336
1336
  };
1337
1337
  components: {
1338
1338
  id: string;
1339
+ description: string | null;
1340
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1341
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1339
1342
  sourceKind: string | null;
1340
1343
  sourceConnectionId: string | null;
1341
1344
  sourceRef: string | null;
1342
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1345
+ entityModule: string | null;
1346
+ entityId: string | null;
1347
+ bookingId: string | null;
1348
+ holdToken: string | null;
1343
1349
  title: string | null;
1344
- description: string | null;
1345
1350
  bookingGroupId: string | null;
1346
1351
  orderId: string | null;
1347
1352
  paymentSessionId: string | null;
@@ -1349,12 +1354,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1349
1354
  updatedAt: string;
1350
1355
  envelopeId: string;
1351
1356
  sequence: number;
1352
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1353
- entityModule: string | null;
1354
- entityId: string | null;
1355
1357
  bookingDraftId: string | null;
1356
1358
  catalogQuoteId: string | null;
1357
- bookingId: string | null;
1358
1359
  providerRef: string | null;
1359
1360
  supplierRef: string | null;
1360
1361
  componentCurrency: string | null;
@@ -1382,7 +1383,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1382
1383
  cancellationSnapshot: {
1383
1384
  [x: string]: import("hono/utils/types").JSONValue;
1384
1385
  } | null;
1385
- holdToken: string | null;
1386
1386
  holdExpiresAt: string | null;
1387
1387
  priceExpiresAt: string | null;
1388
1388
  warningCodes: string[];
@@ -1459,12 +1459,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1459
1459
  output: {
1460
1460
  data: {
1461
1461
  id: string;
1462
+ description: string | null;
1463
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1464
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1462
1465
  sourceKind: string | null;
1463
1466
  sourceConnectionId: string | null;
1464
1467
  sourceRef: string | null;
1465
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1468
+ entityModule: string | null;
1469
+ entityId: string | null;
1470
+ bookingId: string | null;
1471
+ holdToken: string | null;
1466
1472
  title: string | null;
1467
- description: string | null;
1468
1473
  bookingGroupId: string | null;
1469
1474
  orderId: string | null;
1470
1475
  paymentSessionId: string | null;
@@ -1472,12 +1477,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1472
1477
  updatedAt: string;
1473
1478
  envelopeId: string;
1474
1479
  sequence: number;
1475
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1476
- entityModule: string | null;
1477
- entityId: string | null;
1478
1480
  bookingDraftId: string | null;
1479
1481
  catalogQuoteId: string | null;
1480
- bookingId: string | null;
1481
1482
  providerRef: string | null;
1482
1483
  supplierRef: string | null;
1483
1484
  componentCurrency: string | null;
@@ -1505,7 +1506,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1505
1506
  cancellationSnapshot: {
1506
1507
  [x: string]: import("hono/utils/types").JSONValue;
1507
1508
  } | null;
1508
- holdToken: string | null;
1509
1509
  holdExpiresAt: string | null;
1510
1510
  priceExpiresAt: string | null;
1511
1511
  warningCodes: string[];
@@ -1526,7 +1526,7 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1526
1526
  error: string;
1527
1527
  };
1528
1528
  outputFormat: "json";
1529
- status: 400 | 404 | 409;
1529
+ status: 404 | 400 | 409;
1530
1530
  };
1531
1531
  };
1532
1532
  } & {
@@ -1565,9 +1565,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1565
1565
  data: {
1566
1566
  envelope: {
1567
1567
  id: string;
1568
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1569
- title: string | null;
1570
1568
  description: string | null;
1569
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1570
+ title: string | null;
1571
1571
  travelerParty: {
1572
1572
  [x: string]: import("hono/utils/types").JSONValue;
1573
1573
  };
@@ -1603,12 +1603,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1603
1603
  };
1604
1604
  components: {
1605
1605
  id: string;
1606
+ description: string | null;
1607
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1608
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1606
1609
  sourceKind: string | null;
1607
1610
  sourceConnectionId: string | null;
1608
1611
  sourceRef: string | null;
1609
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1612
+ entityModule: string | null;
1613
+ entityId: string | null;
1614
+ bookingId: string | null;
1615
+ holdToken: string | null;
1610
1616
  title: string | null;
1611
- description: string | null;
1612
1617
  bookingGroupId: string | null;
1613
1618
  orderId: string | null;
1614
1619
  paymentSessionId: string | null;
@@ -1616,12 +1621,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1616
1621
  updatedAt: string;
1617
1622
  envelopeId: string;
1618
1623
  sequence: number;
1619
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1620
- entityModule: string | null;
1621
- entityId: string | null;
1622
1624
  bookingDraftId: string | null;
1623
1625
  catalogQuoteId: string | null;
1624
- bookingId: string | null;
1625
1626
  providerRef: string | null;
1626
1627
  supplierRef: string | null;
1627
1628
  componentCurrency: string | null;
@@ -1649,7 +1650,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1649
1650
  cancellationSnapshot: {
1650
1651
  [x: string]: import("hono/utils/types").JSONValue;
1651
1652
  } | null;
1652
- holdToken: string | null;
1653
1653
  holdExpiresAt: string | null;
1654
1654
  priceExpiresAt: string | null;
1655
1655
  warningCodes: string[];
@@ -1685,7 +1685,7 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1685
1685
  error: string;
1686
1686
  };
1687
1687
  outputFormat: "json";
1688
- status: 400 | 404 | 409;
1688
+ status: 404 | 400 | 409;
1689
1689
  };
1690
1690
  };
1691
1691
  } & {
@@ -1711,9 +1711,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1711
1711
  data: {
1712
1712
  envelope: {
1713
1713
  id: string;
1714
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1715
- title: string | null;
1716
1714
  description: string | null;
1715
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1716
+ title: string | null;
1717
1717
  travelerParty: {
1718
1718
  [x: string]: import("hono/utils/types").JSONValue;
1719
1719
  };
@@ -1749,12 +1749,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1749
1749
  };
1750
1750
  components: {
1751
1751
  id: string;
1752
+ description: string | null;
1753
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1754
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1752
1755
  sourceKind: string | null;
1753
1756
  sourceConnectionId: string | null;
1754
1757
  sourceRef: string | null;
1755
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1758
+ entityModule: string | null;
1759
+ entityId: string | null;
1760
+ bookingId: string | null;
1761
+ holdToken: string | null;
1756
1762
  title: string | null;
1757
- description: string | null;
1758
1763
  bookingGroupId: string | null;
1759
1764
  orderId: string | null;
1760
1765
  paymentSessionId: string | null;
@@ -1762,12 +1767,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1762
1767
  updatedAt: string;
1763
1768
  envelopeId: string;
1764
1769
  sequence: number;
1765
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1766
- entityModule: string | null;
1767
- entityId: string | null;
1768
1770
  bookingDraftId: string | null;
1769
1771
  catalogQuoteId: string | null;
1770
- bookingId: string | null;
1771
1772
  providerRef: string | null;
1772
1773
  supplierRef: string | null;
1773
1774
  componentCurrency: string | null;
@@ -1795,7 +1796,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1795
1796
  cancellationSnapshot: {
1796
1797
  [x: string]: import("hono/utils/types").JSONValue;
1797
1798
  } | null;
1798
- holdToken: string | null;
1799
1799
  holdExpiresAt: string | null;
1800
1800
  priceExpiresAt: string | null;
1801
1801
  warningCodes: string[];
@@ -1836,7 +1836,7 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1836
1836
  error: string;
1837
1837
  };
1838
1838
  outputFormat: "json";
1839
- status: 400 | 404 | 409;
1839
+ status: 404 | 400 | 409;
1840
1840
  };
1841
1841
  };
1842
1842
  } & {
@@ -1862,9 +1862,9 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1862
1862
  data: {
1863
1863
  envelope: {
1864
1864
  id: string;
1865
- status: "cancelled" | "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed";
1866
- title: string | null;
1867
1865
  description: string | null;
1866
+ status: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
1867
+ title: string | null;
1868
1868
  travelerParty: {
1869
1869
  [x: string]: import("hono/utils/types").JSONValue;
1870
1870
  };
@@ -1900,12 +1900,17 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1900
1900
  };
1901
1901
  components: {
1902
1902
  id: string;
1903
+ description: string | null;
1904
+ kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1905
+ status: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1903
1906
  sourceKind: string | null;
1904
1907
  sourceConnectionId: string | null;
1905
1908
  sourceRef: string | null;
1906
- status: "cancelled" | "draft" | "priced" | "checkout_started" | "booked" | "failed" | "unavailable" | "held" | "removed";
1909
+ entityModule: string | null;
1910
+ entityId: string | null;
1911
+ bookingId: string | null;
1912
+ holdToken: string | null;
1907
1913
  title: string | null;
1908
- description: string | null;
1909
1914
  bookingGroupId: string | null;
1910
1915
  orderId: string | null;
1911
1916
  paymentSessionId: string | null;
@@ -1913,12 +1918,8 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1913
1918
  updatedAt: string;
1914
1919
  envelopeId: string;
1915
1920
  sequence: number;
1916
- kind: "catalog_booking" | "manual_placeholder" | "flight_placeholder" | "flight_order" | "external_order";
1917
- entityModule: string | null;
1918
- entityId: string | null;
1919
1921
  bookingDraftId: string | null;
1920
1922
  catalogQuoteId: string | null;
1921
- bookingId: string | null;
1922
1923
  providerRef: string | null;
1923
1924
  supplierRef: string | null;
1924
1925
  componentCurrency: string | null;
@@ -1946,7 +1947,6 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1946
1947
  cancellationSnapshot: {
1947
1948
  [x: string]: import("hono/utils/types").JSONValue;
1948
1949
  } | null;
1949
- holdToken: string | null;
1950
1950
  holdExpiresAt: string | null;
1951
1951
  priceExpiresAt: string | null;
1952
1952
  warningCodes: string[];
@@ -1994,7 +1994,7 @@ export declare const tripsRoutes: import("hono/hono-base").HonoBase<Env, {
1994
1994
  error: string;
1995
1995
  };
1996
1996
  outputFormat: "json";
1997
- status: 400 | 404 | 409;
1997
+ status: 404 | 400 | 409;
1998
1998
  };
1999
1999
  };
2000
2000
  } & {
package/dist/schema.d.ts CHANGED
@@ -116,7 +116,7 @@ export declare const tripEnvelopes: import("drizzle-orm/pg-core").PgTableWithCol
116
116
  tableName: "trip_envelopes";
117
117
  dataType: "string";
118
118
  columnType: "PgEnumColumn";
119
- data: "draft" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked" | "failed" | "cancelled";
119
+ data: "cancelled" | "draft" | "failed" | "priced" | "reserve_in_progress" | "reserved" | "checkout_started" | "booked";
120
120
  driverParam: string;
121
121
  notNull: true;
122
122
  hasDefault: true;
@@ -588,7 +588,7 @@ export declare const tripComponents: import("drizzle-orm/pg-core").PgTableWithCo
588
588
  tableName: "trip_components";
589
589
  dataType: "string";
590
590
  columnType: "PgEnumColumn";
591
- data: "draft" | "priced" | "checkout_started" | "booked" | "failed" | "cancelled" | "unavailable" | "held" | "removed";
591
+ data: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
592
592
  driverParam: string;
593
593
  notNull: true;
594
594
  hasDefault: true;
@@ -1166,7 +1166,7 @@ export declare const tripComponentEvents: import("drizzle-orm/pg-core").PgTableW
1166
1166
  tableName: "trip_component_events";
1167
1167
  dataType: "string";
1168
1168
  columnType: "PgEnumColumn";
1169
- data: "priced" | "checkout_started" | "booked" | "failed" | "cancelled" | "removed" | "created" | "updated" | "hold_placed" | "staff_remediation_required";
1169
+ data: "cancelled" | "failed" | "priced" | "checkout_started" | "booked" | "removed" | "created" | "updated" | "hold_placed" | "staff_remediation_required";
1170
1170
  driverParam: string;
1171
1171
  notNull: true;
1172
1172
  hasDefault: false;
@@ -1183,7 +1183,7 @@ export declare const tripComponentEvents: import("drizzle-orm/pg-core").PgTableW
1183
1183
  tableName: "trip_component_events";
1184
1184
  dataType: "string";
1185
1185
  columnType: "PgEnumColumn";
1186
- data: "draft" | "priced" | "checkout_started" | "booked" | "failed" | "cancelled" | "unavailable" | "held" | "removed";
1186
+ data: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1187
1187
  driverParam: string;
1188
1188
  notNull: false;
1189
1189
  hasDefault: false;
@@ -1200,7 +1200,7 @@ export declare const tripComponentEvents: import("drizzle-orm/pg-core").PgTableW
1200
1200
  tableName: "trip_component_events";
1201
1201
  dataType: "string";
1202
1202
  columnType: "PgEnumColumn";
1203
- data: "draft" | "priced" | "checkout_started" | "booked" | "failed" | "cancelled" | "unavailable" | "held" | "removed";
1203
+ data: "unavailable" | "cancelled" | "draft" | "held" | "failed" | "priced" | "checkout_started" | "booked" | "removed";
1204
1204
  driverParam: string;
1205
1205
  notNull: false;
1206
1206
  hasDefault: false;
@@ -1651,7 +1651,7 @@ export declare const tripReservationPlans: import("drizzle-orm/pg-core").PgTable
1651
1651
  tableName: "trip_reservation_plans";
1652
1652
  dataType: "string";
1653
1653
  columnType: "PgEnumColumn";
1654
- data: "reserved" | "failed" | "cancelled" | "pending" | "submitted";
1654
+ data: "pending" | "cancelled" | "failed" | "reserved" | "submitted";
1655
1655
  driverParam: string;
1656
1656
  notNull: true;
1657
1657
  hasDefault: true;
@@ -2,12 +2,12 @@ import { z } from "zod";
2
2
  export declare const tripEnvelopeStatusSchema: z.ZodEnum<{
3
3
  cancelled: "cancelled";
4
4
  draft: "draft";
5
+ failed: "failed";
5
6
  priced: "priced";
6
7
  reserve_in_progress: "reserve_in_progress";
7
8
  reserved: "reserved";
8
9
  checkout_started: "checkout_started";
9
10
  booked: "booked";
10
- failed: "failed";
11
11
  }>;
12
12
  export type TripEnvelopeStatus = z.infer<typeof tripEnvelopeStatusSchema>;
13
13
  export declare const tripComponentKindSchema: z.ZodEnum<{
@@ -19,27 +19,27 @@ export declare const tripComponentKindSchema: z.ZodEnum<{
19
19
  }>;
20
20
  export type TripComponentKind = z.infer<typeof tripComponentKindSchema>;
21
21
  export declare const tripComponentStatusSchema: z.ZodEnum<{
22
+ unavailable: "unavailable";
22
23
  cancelled: "cancelled";
23
24
  draft: "draft";
25
+ held: "held";
26
+ failed: "failed";
24
27
  priced: "priced";
25
28
  checkout_started: "checkout_started";
26
29
  booked: "booked";
27
- failed: "failed";
28
- unavailable: "unavailable";
29
- held: "held";
30
30
  removed: "removed";
31
31
  }>;
32
32
  export type TripComponentStatus = z.infer<typeof tripComponentStatusSchema>;
33
33
  export declare const tripComponentEventTypeSchema: z.ZodEnum<{
34
34
  cancelled: "cancelled";
35
+ failed: "failed";
35
36
  priced: "priced";
36
37
  checkout_started: "checkout_started";
37
38
  booked: "booked";
38
- failed: "failed";
39
39
  removed: "removed";
40
- hold_placed: "hold_placed";
41
40
  created: "created";
42
41
  updated: "updated";
42
+ hold_placed: "hold_placed";
43
43
  staff_remediation_required: "staff_remediation_required";
44
44
  }>;
45
45
  export type TripComponentEventType = z.infer<typeof tripComponentEventTypeSchema>;
@@ -99,10 +99,10 @@ export declare const createTripEnvelopeSchema: z.ZodObject<{
99
99
  }, z.core.$strip>;
100
100
  export type CreateTripEnvelopeInput = z.infer<typeof createTripEnvelopeSchema>;
101
101
  export declare const tripsListSortFieldSchema: z.ZodEnum<{
102
+ total: "total";
102
103
  status: "status";
103
104
  createdAt: "createdAt";
104
105
  updatedAt: "updatedAt";
105
- total: "total";
106
106
  }>;
107
107
  export type TripsListSortField = z.infer<typeof tripsListSortFieldSchema>;
108
108
  export declare const tripsListSortDirSchema: z.ZodEnum<{
@@ -114,12 +114,12 @@ export declare const listTripsQuerySchema: z.ZodObject<{
114
114
  status: z.ZodOptional<z.ZodEnum<{
115
115
  cancelled: "cancelled";
116
116
  draft: "draft";
117
+ failed: "failed";
117
118
  priced: "priced";
118
119
  reserve_in_progress: "reserve_in_progress";
119
120
  reserved: "reserved";
120
121
  checkout_started: "checkout_started";
121
122
  booked: "booked";
122
- failed: "failed";
123
123
  }>>;
124
124
  search: z.ZodOptional<z.ZodString>;
125
125
  productId: z.ZodOptional<z.ZodString>;
@@ -131,10 +131,10 @@ export declare const listTripsQuerySchema: z.ZodObject<{
131
131
  createdFrom: z.ZodOptional<z.ZodString>;
132
132
  createdTo: z.ZodOptional<z.ZodString>;
133
133
  sortBy: z.ZodDefault<z.ZodEnum<{
134
+ total: "total";
134
135
  status: "status";
135
136
  createdAt: "createdAt";
136
137
  updatedAt: "updatedAt";
137
- total: "total";
138
138
  }>>;
139
139
  sortDir: z.ZodDefault<z.ZodEnum<{
140
140
  asc: "asc";
@@ -155,14 +155,14 @@ export declare const tripSnapshotProposalLineSchema: z.ZodObject<{
155
155
  external_order: "external_order";
156
156
  }>;
157
157
  status: z.ZodEnum<{
158
+ unavailable: "unavailable";
158
159
  cancelled: "cancelled";
159
160
  draft: "draft";
161
+ held: "held";
162
+ failed: "failed";
160
163
  priced: "priced";
161
164
  checkout_started: "checkout_started";
162
165
  booked: "booked";
163
- failed: "failed";
164
- unavailable: "unavailable";
165
- held: "held";
166
166
  removed: "removed";
167
167
  }>;
168
168
  title: z.ZodNullable<z.ZodString>;
@@ -201,14 +201,14 @@ export declare const tripSnapshotProposalSchema: z.ZodObject<{
201
201
  external_order: "external_order";
202
202
  }>;
203
203
  status: z.ZodEnum<{
204
+ unavailable: "unavailable";
204
205
  cancelled: "cancelled";
205
206
  draft: "draft";
207
+ held: "held";
208
+ failed: "failed";
206
209
  priced: "priced";
207
210
  checkout_started: "checkout_started";
208
211
  booked: "booked";
209
- failed: "failed";
210
- unavailable: "unavailable";
211
- held: "held";
212
212
  removed: "removed";
213
213
  }>;
214
214
  title: z.ZodNullable<z.ZodString>;
@@ -238,12 +238,12 @@ export declare const updateTripEnvelopeSchema: z.ZodObject<{
238
238
  status: z.ZodOptional<z.ZodEnum<{
239
239
  cancelled: "cancelled";
240
240
  draft: "draft";
241
+ failed: "failed";
241
242
  priced: "priced";
242
243
  reserve_in_progress: "reserve_in_progress";
243
244
  reserved: "reserved";
244
245
  checkout_started: "checkout_started";
245
246
  booked: "booked";
246
- failed: "failed";
247
247
  }>>;
248
248
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
249
  }, z.core.$strip>;
@@ -279,7 +279,6 @@ export declare const createTripComponentSchema: z.ZodObject<{
279
279
  export type CreateTripComponentInput = z.infer<typeof createTripComponentSchema>;
280
280
  export declare const createTripComponentBodySchema: z.ZodObject<{
281
281
  description: z.ZodOptional<z.ZodString>;
282
- sequence: z.ZodDefault<z.ZodNumber>;
283
282
  kind: z.ZodEnum<{
284
283
  catalog_booking: "catalog_booking";
285
284
  manual_placeholder: "manual_placeholder";
@@ -287,6 +286,7 @@ export declare const createTripComponentBodySchema: z.ZodObject<{
287
286
  flight_order: "flight_order";
288
287
  external_order: "external_order";
289
288
  }>;
289
+ sequence: z.ZodDefault<z.ZodNumber>;
290
290
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
291
291
  catalogRef: z.ZodOptional<z.ZodObject<{
292
292
  entityModule: z.ZodString;
@@ -308,14 +308,14 @@ export type CreateTripComponentBodyInput = z.infer<typeof createTripComponentBod
308
308
  export declare const updateTripComponentSchema: z.ZodObject<{
309
309
  sequence: z.ZodOptional<z.ZodNumber>;
310
310
  status: z.ZodOptional<z.ZodEnum<{
311
+ unavailable: "unavailable";
311
312
  cancelled: "cancelled";
312
313
  draft: "draft";
314
+ held: "held";
315
+ failed: "failed";
313
316
  priced: "priced";
314
317
  checkout_started: "checkout_started";
315
318
  booked: "booked";
316
- failed: "failed";
317
- unavailable: "unavailable";
318
- held: "held";
319
319
  removed: "removed";
320
320
  }>>;
321
321
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -412,25 +412,25 @@ export type CancelTripComponentsInput = z.infer<typeof cancelTripComponentsSchem
412
412
  export declare function isAllowedTripComponentStatusTransition(from: TripComponentStatus, to: TripComponentStatus): boolean;
413
413
  export declare const tripComponentStatusTransitionSchema: z.ZodObject<{
414
414
  from: z.ZodEnum<{
415
+ unavailable: "unavailable";
415
416
  cancelled: "cancelled";
416
417
  draft: "draft";
418
+ held: "held";
419
+ failed: "failed";
417
420
  priced: "priced";
418
421
  checkout_started: "checkout_started";
419
422
  booked: "booked";
420
- failed: "failed";
421
- unavailable: "unavailable";
422
- held: "held";
423
423
  removed: "removed";
424
424
  }>;
425
425
  to: z.ZodEnum<{
426
+ unavailable: "unavailable";
426
427
  cancelled: "cancelled";
427
428
  draft: "draft";
429
+ held: "held";
430
+ failed: "failed";
428
431
  priced: "priced";
429
432
  checkout_started: "checkout_started";
430
433
  booked: "booked";
431
- failed: "failed";
432
- unavailable: "unavailable";
433
- held: "held";
434
434
  removed: "removed";
435
435
  }>;
436
436
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/trips",
3
- "version": "0.110.2",
3
+ "version": "0.111.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -51,9 +51,9 @@
51
51
  "hono": "^4.12.10",
52
52
  "zod": "^4.3.6",
53
53
  "@voyant-travel/core": "^0.109.0",
54
+ "@voyant-travel/catalog": "^0.118.0",
54
55
  "@voyant-travel/db": "^0.108.0",
55
- "@voyant-travel/hono": "^0.109.1",
56
- "@voyant-travel/catalog": "^0.117.2"
56
+ "@voyant-travel/hono": "^0.110.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "typescript": "^6.0.2",