@voyantjs/ground 0.1.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.
@@ -0,0 +1,1955 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ type Env = {
3
+ Variables: {
4
+ db: PostgresJsDatabase;
5
+ userId?: string;
6
+ };
7
+ };
8
+ export declare const groundRoutes: import("hono/hono-base").HonoBase<Env, {
9
+ "/operators": {
10
+ $get: {
11
+ input: {};
12
+ output: {
13
+ data: {
14
+ id: string;
15
+ supplierId: string | null;
16
+ facilityId: string | null;
17
+ name: string;
18
+ code: string | null;
19
+ active: boolean;
20
+ notes: string | null;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ }[];
24
+ total: number;
25
+ limit: number;
26
+ offset: number;
27
+ };
28
+ outputFormat: "json";
29
+ status: import("hono/utils/http-status").ContentfulStatusCode;
30
+ };
31
+ };
32
+ } & {
33
+ "/operators": {
34
+ $post: {
35
+ input: {};
36
+ output: {
37
+ data: {
38
+ id: string;
39
+ name: string;
40
+ notes: string | null;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+ active: boolean;
44
+ code: string | null;
45
+ facilityId: string | null;
46
+ supplierId: string | null;
47
+ } | undefined;
48
+ };
49
+ outputFormat: "json";
50
+ status: 201;
51
+ };
52
+ };
53
+ } & {
54
+ "/operators/:id": {
55
+ $get: {
56
+ input: {
57
+ param: {
58
+ id: string;
59
+ };
60
+ };
61
+ output: {
62
+ error: string;
63
+ };
64
+ outputFormat: "json";
65
+ status: 404;
66
+ } | {
67
+ input: {
68
+ param: {
69
+ id: string;
70
+ };
71
+ };
72
+ output: {
73
+ data: {
74
+ id: string;
75
+ supplierId: string | null;
76
+ facilityId: string | null;
77
+ name: string;
78
+ code: string | null;
79
+ active: boolean;
80
+ notes: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ };
84
+ };
85
+ outputFormat: "json";
86
+ status: import("hono/utils/http-status").ContentfulStatusCode;
87
+ };
88
+ };
89
+ } & {
90
+ "/operators/:id": {
91
+ $patch: {
92
+ input: {
93
+ param: {
94
+ id: string;
95
+ };
96
+ };
97
+ output: {
98
+ error: string;
99
+ };
100
+ outputFormat: "json";
101
+ status: 404;
102
+ } | {
103
+ input: {
104
+ param: {
105
+ id: string;
106
+ };
107
+ };
108
+ output: {
109
+ data: {
110
+ id: string;
111
+ supplierId: string | null;
112
+ facilityId: string | null;
113
+ name: string;
114
+ code: string | null;
115
+ active: boolean;
116
+ notes: string | null;
117
+ createdAt: string;
118
+ updatedAt: string;
119
+ };
120
+ };
121
+ outputFormat: "json";
122
+ status: import("hono/utils/http-status").ContentfulStatusCode;
123
+ };
124
+ };
125
+ } & {
126
+ "/operators/:id": {
127
+ $delete: {
128
+ input: {
129
+ param: {
130
+ id: string;
131
+ };
132
+ };
133
+ output: {
134
+ error: string;
135
+ };
136
+ outputFormat: "json";
137
+ status: 404;
138
+ } | {
139
+ input: {
140
+ param: {
141
+ id: string;
142
+ };
143
+ };
144
+ output: {
145
+ success: true;
146
+ };
147
+ outputFormat: "json";
148
+ status: import("hono/utils/http-status").ContentfulStatusCode;
149
+ };
150
+ };
151
+ } & {
152
+ "/vehicles": {
153
+ $get: {
154
+ input: {};
155
+ output: {
156
+ data: {
157
+ id: string;
158
+ resourceId: string;
159
+ operatorId: string | null;
160
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
161
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
162
+ passengerCapacity: number | null;
163
+ checkedBagCapacity: number | null;
164
+ carryOnCapacity: number | null;
165
+ wheelchairCapacity: number | null;
166
+ childSeatCapacity: number | null;
167
+ isAccessible: boolean;
168
+ active: boolean;
169
+ notes: string | null;
170
+ createdAt: string;
171
+ updatedAt: string;
172
+ }[];
173
+ total: number;
174
+ limit: number;
175
+ offset: number;
176
+ };
177
+ outputFormat: "json";
178
+ status: import("hono/utils/http-status").ContentfulStatusCode;
179
+ };
180
+ };
181
+ } & {
182
+ "/vehicles": {
183
+ $post: {
184
+ input: {};
185
+ output: {
186
+ data: {
187
+ id: string;
188
+ notes: string | null;
189
+ createdAt: string;
190
+ updatedAt: string;
191
+ active: boolean;
192
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
193
+ resourceId: string;
194
+ operatorId: string | null;
195
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
196
+ passengerCapacity: number | null;
197
+ checkedBagCapacity: number | null;
198
+ carryOnCapacity: number | null;
199
+ wheelchairCapacity: number | null;
200
+ childSeatCapacity: number | null;
201
+ isAccessible: boolean;
202
+ } | undefined;
203
+ };
204
+ outputFormat: "json";
205
+ status: 201;
206
+ };
207
+ };
208
+ } & {
209
+ "/vehicles/:id": {
210
+ $get: {
211
+ input: {
212
+ param: {
213
+ id: string;
214
+ };
215
+ };
216
+ output: {
217
+ error: string;
218
+ };
219
+ outputFormat: "json";
220
+ status: 404;
221
+ } | {
222
+ input: {
223
+ param: {
224
+ id: string;
225
+ };
226
+ };
227
+ output: {
228
+ data: {
229
+ id: string;
230
+ resourceId: string;
231
+ operatorId: string | null;
232
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
233
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
234
+ passengerCapacity: number | null;
235
+ checkedBagCapacity: number | null;
236
+ carryOnCapacity: number | null;
237
+ wheelchairCapacity: number | null;
238
+ childSeatCapacity: number | null;
239
+ isAccessible: boolean;
240
+ active: boolean;
241
+ notes: string | null;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ };
245
+ };
246
+ outputFormat: "json";
247
+ status: import("hono/utils/http-status").ContentfulStatusCode;
248
+ };
249
+ };
250
+ } & {
251
+ "/vehicles/:id": {
252
+ $patch: {
253
+ input: {
254
+ param: {
255
+ id: string;
256
+ };
257
+ };
258
+ output: {
259
+ error: string;
260
+ };
261
+ outputFormat: "json";
262
+ status: 404;
263
+ } | {
264
+ input: {
265
+ param: {
266
+ id: string;
267
+ };
268
+ };
269
+ output: {
270
+ data: {
271
+ id: string;
272
+ resourceId: string;
273
+ operatorId: string | null;
274
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
275
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
276
+ passengerCapacity: number | null;
277
+ checkedBagCapacity: number | null;
278
+ carryOnCapacity: number | null;
279
+ wheelchairCapacity: number | null;
280
+ childSeatCapacity: number | null;
281
+ isAccessible: boolean;
282
+ active: boolean;
283
+ notes: string | null;
284
+ createdAt: string;
285
+ updatedAt: string;
286
+ };
287
+ };
288
+ outputFormat: "json";
289
+ status: import("hono/utils/http-status").ContentfulStatusCode;
290
+ };
291
+ };
292
+ } & {
293
+ "/vehicles/:id": {
294
+ $delete: {
295
+ input: {
296
+ param: {
297
+ id: string;
298
+ };
299
+ };
300
+ output: {
301
+ error: string;
302
+ };
303
+ outputFormat: "json";
304
+ status: 404;
305
+ } | {
306
+ input: {
307
+ param: {
308
+ id: string;
309
+ };
310
+ };
311
+ output: {
312
+ success: true;
313
+ };
314
+ outputFormat: "json";
315
+ status: import("hono/utils/http-status").ContentfulStatusCode;
316
+ };
317
+ };
318
+ } & {
319
+ "/drivers": {
320
+ $get: {
321
+ input: {};
322
+ output: {
323
+ data: {
324
+ id: string;
325
+ resourceId: string;
326
+ operatorId: string | null;
327
+ licenseNumber: string | null;
328
+ spokenLanguages: string[];
329
+ isGuide: boolean;
330
+ isMeetAndGreetCapable: boolean;
331
+ active: boolean;
332
+ notes: string | null;
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ }[];
336
+ total: number;
337
+ limit: number;
338
+ offset: number;
339
+ };
340
+ outputFormat: "json";
341
+ status: import("hono/utils/http-status").ContentfulStatusCode;
342
+ };
343
+ };
344
+ } & {
345
+ "/drivers": {
346
+ $post: {
347
+ input: {};
348
+ output: {
349
+ data: {
350
+ id: string;
351
+ notes: string | null;
352
+ createdAt: string;
353
+ updatedAt: string;
354
+ active: boolean;
355
+ resourceId: string;
356
+ operatorId: string | null;
357
+ licenseNumber: string | null;
358
+ spokenLanguages: string[];
359
+ isGuide: boolean;
360
+ isMeetAndGreetCapable: boolean;
361
+ } | undefined;
362
+ };
363
+ outputFormat: "json";
364
+ status: 201;
365
+ };
366
+ };
367
+ } & {
368
+ "/drivers/:id": {
369
+ $get: {
370
+ input: {
371
+ param: {
372
+ id: string;
373
+ };
374
+ };
375
+ output: {
376
+ error: string;
377
+ };
378
+ outputFormat: "json";
379
+ status: 404;
380
+ } | {
381
+ input: {
382
+ param: {
383
+ id: string;
384
+ };
385
+ };
386
+ output: {
387
+ data: {
388
+ id: string;
389
+ resourceId: string;
390
+ operatorId: string | null;
391
+ licenseNumber: string | null;
392
+ spokenLanguages: string[];
393
+ isGuide: boolean;
394
+ isMeetAndGreetCapable: boolean;
395
+ active: boolean;
396
+ notes: string | null;
397
+ createdAt: string;
398
+ updatedAt: string;
399
+ };
400
+ };
401
+ outputFormat: "json";
402
+ status: import("hono/utils/http-status").ContentfulStatusCode;
403
+ };
404
+ };
405
+ } & {
406
+ "/drivers/:id": {
407
+ $patch: {
408
+ input: {
409
+ param: {
410
+ id: string;
411
+ };
412
+ };
413
+ output: {
414
+ error: string;
415
+ };
416
+ outputFormat: "json";
417
+ status: 404;
418
+ } | {
419
+ input: {
420
+ param: {
421
+ id: string;
422
+ };
423
+ };
424
+ output: {
425
+ data: {
426
+ id: string;
427
+ resourceId: string;
428
+ operatorId: string | null;
429
+ licenseNumber: string | null;
430
+ spokenLanguages: string[];
431
+ isGuide: boolean;
432
+ isMeetAndGreetCapable: boolean;
433
+ active: boolean;
434
+ notes: string | null;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ };
438
+ };
439
+ outputFormat: "json";
440
+ status: import("hono/utils/http-status").ContentfulStatusCode;
441
+ };
442
+ };
443
+ } & {
444
+ "/drivers/:id": {
445
+ $delete: {
446
+ input: {
447
+ param: {
448
+ id: string;
449
+ };
450
+ };
451
+ output: {
452
+ error: string;
453
+ };
454
+ outputFormat: "json";
455
+ status: 404;
456
+ } | {
457
+ input: {
458
+ param: {
459
+ id: string;
460
+ };
461
+ };
462
+ output: {
463
+ success: true;
464
+ };
465
+ outputFormat: "json";
466
+ status: import("hono/utils/http-status").ContentfulStatusCode;
467
+ };
468
+ };
469
+ } & {
470
+ "/transfer-preferences": {
471
+ $get: {
472
+ input: {};
473
+ output: {
474
+ data: {
475
+ id: string;
476
+ bookingId: string;
477
+ bookingItemId: string | null;
478
+ pickupFacilityId: string | null;
479
+ dropoffFacilityId: string | null;
480
+ pickupAddressId: string | null;
481
+ dropoffAddressId: string | null;
482
+ requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null;
483
+ requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null;
484
+ serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle";
485
+ passengerCount: number | null;
486
+ checkedBags: number | null;
487
+ carryOnBags: number | null;
488
+ wheelchairCount: number | null;
489
+ childSeatCount: number | null;
490
+ driverLanguage: string | null;
491
+ meetAndGreet: boolean;
492
+ accessibilityNotes: string | null;
493
+ pickupNotes: string | null;
494
+ dropoffNotes: string | null;
495
+ notes: string | null;
496
+ createdAt: string;
497
+ updatedAt: string;
498
+ }[];
499
+ total: number;
500
+ limit: number;
501
+ offset: number;
502
+ };
503
+ outputFormat: "json";
504
+ status: import("hono/utils/http-status").ContentfulStatusCode;
505
+ };
506
+ };
507
+ } & {
508
+ "/transfer-preferences": {
509
+ $post: {
510
+ input: {};
511
+ output: {
512
+ data: {
513
+ id: string;
514
+ notes: string | null;
515
+ createdAt: string;
516
+ updatedAt: string;
517
+ bookingId: string;
518
+ bookingItemId: string | null;
519
+ pickupFacilityId: string | null;
520
+ dropoffFacilityId: string | null;
521
+ pickupAddressId: string | null;
522
+ dropoffAddressId: string | null;
523
+ requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null;
524
+ requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null;
525
+ serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle";
526
+ passengerCount: number | null;
527
+ checkedBags: number | null;
528
+ carryOnBags: number | null;
529
+ wheelchairCount: number | null;
530
+ childSeatCount: number | null;
531
+ driverLanguage: string | null;
532
+ meetAndGreet: boolean;
533
+ accessibilityNotes: string | null;
534
+ pickupNotes: string | null;
535
+ dropoffNotes: string | null;
536
+ } | undefined;
537
+ };
538
+ outputFormat: "json";
539
+ status: 201;
540
+ };
541
+ };
542
+ } & {
543
+ "/transfer-preferences/:id": {
544
+ $get: {
545
+ input: {
546
+ param: {
547
+ id: string;
548
+ };
549
+ };
550
+ output: {
551
+ error: string;
552
+ };
553
+ outputFormat: "json";
554
+ status: 404;
555
+ } | {
556
+ input: {
557
+ param: {
558
+ id: string;
559
+ };
560
+ };
561
+ output: {
562
+ data: {
563
+ id: string;
564
+ bookingId: string;
565
+ bookingItemId: string | null;
566
+ pickupFacilityId: string | null;
567
+ dropoffFacilityId: string | null;
568
+ pickupAddressId: string | null;
569
+ dropoffAddressId: string | null;
570
+ requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null;
571
+ requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null;
572
+ serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle";
573
+ passengerCount: number | null;
574
+ checkedBags: number | null;
575
+ carryOnBags: number | null;
576
+ wheelchairCount: number | null;
577
+ childSeatCount: number | null;
578
+ driverLanguage: string | null;
579
+ meetAndGreet: boolean;
580
+ accessibilityNotes: string | null;
581
+ pickupNotes: string | null;
582
+ dropoffNotes: string | null;
583
+ notes: string | null;
584
+ createdAt: string;
585
+ updatedAt: string;
586
+ };
587
+ };
588
+ outputFormat: "json";
589
+ status: import("hono/utils/http-status").ContentfulStatusCode;
590
+ };
591
+ };
592
+ } & {
593
+ "/transfer-preferences/:id": {
594
+ $patch: {
595
+ input: {
596
+ param: {
597
+ id: string;
598
+ };
599
+ };
600
+ output: {
601
+ error: string;
602
+ };
603
+ outputFormat: "json";
604
+ status: 404;
605
+ } | {
606
+ input: {
607
+ param: {
608
+ id: string;
609
+ };
610
+ };
611
+ output: {
612
+ data: {
613
+ id: string;
614
+ bookingId: string;
615
+ bookingItemId: string | null;
616
+ pickupFacilityId: string | null;
617
+ dropoffFacilityId: string | null;
618
+ pickupAddressId: string | null;
619
+ dropoffAddressId: string | null;
620
+ requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null;
621
+ requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null;
622
+ serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle";
623
+ passengerCount: number | null;
624
+ checkedBags: number | null;
625
+ carryOnBags: number | null;
626
+ wheelchairCount: number | null;
627
+ childSeatCount: number | null;
628
+ driverLanguage: string | null;
629
+ meetAndGreet: boolean;
630
+ accessibilityNotes: string | null;
631
+ pickupNotes: string | null;
632
+ dropoffNotes: string | null;
633
+ notes: string | null;
634
+ createdAt: string;
635
+ updatedAt: string;
636
+ };
637
+ };
638
+ outputFormat: "json";
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
+ };
641
+ };
642
+ } & {
643
+ "/transfer-preferences/:id": {
644
+ $delete: {
645
+ input: {
646
+ param: {
647
+ id: string;
648
+ };
649
+ };
650
+ output: {
651
+ error: string;
652
+ };
653
+ outputFormat: "json";
654
+ status: 404;
655
+ } | {
656
+ input: {
657
+ param: {
658
+ id: string;
659
+ };
660
+ };
661
+ output: {
662
+ success: true;
663
+ };
664
+ outputFormat: "json";
665
+ status: import("hono/utils/http-status").ContentfulStatusCode;
666
+ };
667
+ };
668
+ } & {
669
+ "/dispatches": {
670
+ $get: {
671
+ input: {};
672
+ output: {
673
+ data: {
674
+ id: string;
675
+ transferPreferenceId: string;
676
+ bookingId: string;
677
+ bookingItemId: string | null;
678
+ operatorId: string | null;
679
+ vehicleId: string | null;
680
+ driverId: string | null;
681
+ serviceDate: string | null;
682
+ scheduledPickupAt: string | null;
683
+ scheduledDropoffAt: string | null;
684
+ actualPickupAt: string | null;
685
+ actualDropoffAt: string | null;
686
+ status: "draft" | "scheduled" | "assigned" | "en_route" | "arrived" | "picked_up" | "completed" | "cancelled" | "no_show";
687
+ passengerCount: number | null;
688
+ checkedBags: number | null;
689
+ carryOnBags: number | null;
690
+ notes: string | null;
691
+ createdAt: string;
692
+ updatedAt: string;
693
+ }[];
694
+ total: number;
695
+ limit: number;
696
+ offset: number;
697
+ };
698
+ outputFormat: "json";
699
+ status: import("hono/utils/http-status").ContentfulStatusCode;
700
+ };
701
+ };
702
+ } & {
703
+ "/dispatches": {
704
+ $post: {
705
+ input: {};
706
+ output: {
707
+ data: {
708
+ id: string;
709
+ notes: string | null;
710
+ createdAt: string;
711
+ updatedAt: string;
712
+ status: "draft" | "scheduled" | "assigned" | "en_route" | "arrived" | "picked_up" | "completed" | "cancelled" | "no_show";
713
+ operatorId: string | null;
714
+ bookingId: string;
715
+ bookingItemId: string | null;
716
+ passengerCount: number | null;
717
+ checkedBags: number | null;
718
+ carryOnBags: number | null;
719
+ transferPreferenceId: string;
720
+ vehicleId: string | null;
721
+ driverId: string | null;
722
+ serviceDate: string | null;
723
+ scheduledPickupAt: string | null;
724
+ scheduledDropoffAt: string | null;
725
+ actualPickupAt: string | null;
726
+ actualDropoffAt: string | null;
727
+ } | undefined;
728
+ };
729
+ outputFormat: "json";
730
+ status: 201;
731
+ };
732
+ };
733
+ } & {
734
+ "/dispatches/:id": {
735
+ $get: {
736
+ input: {
737
+ param: {
738
+ id: string;
739
+ };
740
+ };
741
+ output: {
742
+ error: string;
743
+ };
744
+ outputFormat: "json";
745
+ status: 404;
746
+ } | {
747
+ input: {
748
+ param: {
749
+ id: string;
750
+ };
751
+ };
752
+ output: {
753
+ data: {
754
+ id: string;
755
+ transferPreferenceId: string;
756
+ bookingId: string;
757
+ bookingItemId: string | null;
758
+ operatorId: string | null;
759
+ vehicleId: string | null;
760
+ driverId: string | null;
761
+ serviceDate: string | null;
762
+ scheduledPickupAt: string | null;
763
+ scheduledDropoffAt: string | null;
764
+ actualPickupAt: string | null;
765
+ actualDropoffAt: string | null;
766
+ status: "draft" | "scheduled" | "assigned" | "en_route" | "arrived" | "picked_up" | "completed" | "cancelled" | "no_show";
767
+ passengerCount: number | null;
768
+ checkedBags: number | null;
769
+ carryOnBags: number | null;
770
+ notes: string | null;
771
+ createdAt: string;
772
+ updatedAt: string;
773
+ };
774
+ };
775
+ outputFormat: "json";
776
+ status: import("hono/utils/http-status").ContentfulStatusCode;
777
+ };
778
+ };
779
+ } & {
780
+ "/dispatches/:id": {
781
+ $patch: {
782
+ input: {
783
+ param: {
784
+ id: string;
785
+ };
786
+ };
787
+ output: {
788
+ error: string;
789
+ };
790
+ outputFormat: "json";
791
+ status: 404;
792
+ } | {
793
+ input: {
794
+ param: {
795
+ id: string;
796
+ };
797
+ };
798
+ output: {
799
+ data: {
800
+ id: string;
801
+ transferPreferenceId: string;
802
+ bookingId: string;
803
+ bookingItemId: string | null;
804
+ operatorId: string | null;
805
+ vehicleId: string | null;
806
+ driverId: string | null;
807
+ serviceDate: string | null;
808
+ scheduledPickupAt: string | null;
809
+ scheduledDropoffAt: string | null;
810
+ actualPickupAt: string | null;
811
+ actualDropoffAt: string | null;
812
+ status: "draft" | "scheduled" | "assigned" | "en_route" | "arrived" | "picked_up" | "completed" | "cancelled" | "no_show";
813
+ passengerCount: number | null;
814
+ checkedBags: number | null;
815
+ carryOnBags: number | null;
816
+ notes: string | null;
817
+ createdAt: string;
818
+ updatedAt: string;
819
+ };
820
+ };
821
+ outputFormat: "json";
822
+ status: import("hono/utils/http-status").ContentfulStatusCode;
823
+ };
824
+ };
825
+ } & {
826
+ "/dispatches/:id": {
827
+ $delete: {
828
+ input: {
829
+ param: {
830
+ id: string;
831
+ };
832
+ };
833
+ output: {
834
+ error: string;
835
+ };
836
+ outputFormat: "json";
837
+ status: 404;
838
+ } | {
839
+ input: {
840
+ param: {
841
+ id: string;
842
+ };
843
+ };
844
+ output: {
845
+ success: true;
846
+ };
847
+ outputFormat: "json";
848
+ status: import("hono/utils/http-status").ContentfulStatusCode;
849
+ };
850
+ };
851
+ } & {
852
+ "/execution-events": {
853
+ $get: {
854
+ input: {};
855
+ output: {
856
+ data: {
857
+ id: string;
858
+ dispatchId: string;
859
+ eventType: "scheduled" | "assigned" | "cancelled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note";
860
+ occurredAt: string;
861
+ facilityId: string | null;
862
+ addressId: string | null;
863
+ notes: string | null;
864
+ metadata: {
865
+ [x: string]: import("hono/utils/types").JSONValue;
866
+ } | null;
867
+ createdAt: string;
868
+ }[];
869
+ total: number;
870
+ limit: number;
871
+ offset: number;
872
+ };
873
+ outputFormat: "json";
874
+ status: import("hono/utils/http-status").ContentfulStatusCode;
875
+ };
876
+ };
877
+ } & {
878
+ "/execution-events": {
879
+ $post: {
880
+ input: {};
881
+ output: {
882
+ data: {
883
+ id: string;
884
+ notes: string | null;
885
+ metadata: {
886
+ [x: string]: import("hono/utils/types").JSONValue;
887
+ } | null;
888
+ createdAt: string;
889
+ facilityId: string | null;
890
+ dispatchId: string;
891
+ eventType: "scheduled" | "assigned" | "cancelled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note";
892
+ occurredAt: string;
893
+ addressId: string | null;
894
+ } | undefined;
895
+ };
896
+ outputFormat: "json";
897
+ status: 201;
898
+ };
899
+ };
900
+ } & {
901
+ "/execution-events/:id": {
902
+ $get: {
903
+ input: {
904
+ param: {
905
+ id: string;
906
+ };
907
+ };
908
+ output: {
909
+ error: string;
910
+ };
911
+ outputFormat: "json";
912
+ status: 404;
913
+ } | {
914
+ input: {
915
+ param: {
916
+ id: string;
917
+ };
918
+ };
919
+ output: {
920
+ data: {
921
+ id: string;
922
+ dispatchId: string;
923
+ eventType: "scheduled" | "assigned" | "cancelled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note";
924
+ occurredAt: string;
925
+ facilityId: string | null;
926
+ addressId: string | null;
927
+ notes: string | null;
928
+ metadata: {
929
+ [x: string]: import("hono/utils/types").JSONValue;
930
+ } | null;
931
+ createdAt: string;
932
+ };
933
+ };
934
+ outputFormat: "json";
935
+ status: import("hono/utils/http-status").ContentfulStatusCode;
936
+ };
937
+ };
938
+ } & {
939
+ "/execution-events/:id": {
940
+ $patch: {
941
+ input: {
942
+ param: {
943
+ id: string;
944
+ };
945
+ };
946
+ output: {
947
+ error: string;
948
+ };
949
+ outputFormat: "json";
950
+ status: 404;
951
+ } | {
952
+ input: {
953
+ param: {
954
+ id: string;
955
+ };
956
+ };
957
+ output: {
958
+ data: {
959
+ id: string;
960
+ dispatchId: string;
961
+ eventType: "scheduled" | "assigned" | "cancelled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note";
962
+ occurredAt: string;
963
+ facilityId: string | null;
964
+ addressId: string | null;
965
+ notes: string | null;
966
+ metadata: {
967
+ [x: string]: import("hono/utils/types").JSONValue;
968
+ } | null;
969
+ createdAt: string;
970
+ };
971
+ };
972
+ outputFormat: "json";
973
+ status: import("hono/utils/http-status").ContentfulStatusCode;
974
+ };
975
+ };
976
+ } & {
977
+ "/execution-events/:id": {
978
+ $delete: {
979
+ input: {
980
+ param: {
981
+ id: string;
982
+ };
983
+ };
984
+ output: {
985
+ error: string;
986
+ };
987
+ outputFormat: "json";
988
+ status: 404;
989
+ } | {
990
+ input: {
991
+ param: {
992
+ id: string;
993
+ };
994
+ };
995
+ output: {
996
+ success: true;
997
+ };
998
+ outputFormat: "json";
999
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1000
+ };
1001
+ };
1002
+ } & {
1003
+ "/dispatch-assignments": {
1004
+ $get: {
1005
+ input: {};
1006
+ output: {
1007
+ data: {
1008
+ id: string;
1009
+ dispatchId: string;
1010
+ operatorId: string | null;
1011
+ vehicleId: string | null;
1012
+ driverId: string | null;
1013
+ assignmentSource: "manual" | "suggested" | "auto";
1014
+ assignedAt: string;
1015
+ acceptedAt: string | null;
1016
+ notes: string | null;
1017
+ metadata: {
1018
+ [x: string]: import("hono/utils/types").JSONValue;
1019
+ } | null;
1020
+ createdAt: string;
1021
+ updatedAt: string;
1022
+ }[];
1023
+ total: number;
1024
+ limit: number;
1025
+ offset: number;
1026
+ };
1027
+ outputFormat: "json";
1028
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1029
+ };
1030
+ };
1031
+ } & {
1032
+ "/dispatch-assignments": {
1033
+ $post: {
1034
+ input: {};
1035
+ output: {
1036
+ data: {
1037
+ id: string;
1038
+ notes: string | null;
1039
+ metadata: {
1040
+ [x: string]: import("hono/utils/types").JSONValue;
1041
+ } | null;
1042
+ createdAt: string;
1043
+ updatedAt: string;
1044
+ operatorId: string | null;
1045
+ vehicleId: string | null;
1046
+ driverId: string | null;
1047
+ dispatchId: string;
1048
+ assignmentSource: "manual" | "suggested" | "auto";
1049
+ assignedAt: string;
1050
+ acceptedAt: string | null;
1051
+ } | undefined;
1052
+ };
1053
+ outputFormat: "json";
1054
+ status: 201;
1055
+ };
1056
+ };
1057
+ } & {
1058
+ "/dispatch-assignments/:id": {
1059
+ $get: {
1060
+ input: {
1061
+ param: {
1062
+ id: string;
1063
+ };
1064
+ };
1065
+ output: {
1066
+ error: string;
1067
+ };
1068
+ outputFormat: "json";
1069
+ status: 404;
1070
+ } | {
1071
+ input: {
1072
+ param: {
1073
+ id: string;
1074
+ };
1075
+ };
1076
+ output: {
1077
+ data: {
1078
+ id: string;
1079
+ dispatchId: string;
1080
+ operatorId: string | null;
1081
+ vehicleId: string | null;
1082
+ driverId: string | null;
1083
+ assignmentSource: "manual" | "suggested" | "auto";
1084
+ assignedAt: string;
1085
+ acceptedAt: string | null;
1086
+ notes: string | null;
1087
+ metadata: {
1088
+ [x: string]: import("hono/utils/types").JSONValue;
1089
+ } | null;
1090
+ createdAt: string;
1091
+ updatedAt: string;
1092
+ };
1093
+ };
1094
+ outputFormat: "json";
1095
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1096
+ };
1097
+ };
1098
+ } & {
1099
+ "/dispatch-assignments/:id": {
1100
+ $patch: {
1101
+ input: {
1102
+ param: {
1103
+ id: string;
1104
+ };
1105
+ };
1106
+ output: {
1107
+ error: string;
1108
+ };
1109
+ outputFormat: "json";
1110
+ status: 404;
1111
+ } | {
1112
+ input: {
1113
+ param: {
1114
+ id: string;
1115
+ };
1116
+ };
1117
+ output: {
1118
+ data: {
1119
+ id: string;
1120
+ dispatchId: string;
1121
+ operatorId: string | null;
1122
+ vehicleId: string | null;
1123
+ driverId: string | null;
1124
+ assignmentSource: "manual" | "suggested" | "auto";
1125
+ assignedAt: string;
1126
+ acceptedAt: string | null;
1127
+ notes: string | null;
1128
+ metadata: {
1129
+ [x: string]: import("hono/utils/types").JSONValue;
1130
+ } | null;
1131
+ createdAt: string;
1132
+ updatedAt: string;
1133
+ };
1134
+ };
1135
+ outputFormat: "json";
1136
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1137
+ };
1138
+ };
1139
+ } & {
1140
+ "/dispatch-assignments/:id": {
1141
+ $delete: {
1142
+ input: {
1143
+ param: {
1144
+ id: string;
1145
+ };
1146
+ };
1147
+ output: {
1148
+ error: string;
1149
+ };
1150
+ outputFormat: "json";
1151
+ status: 404;
1152
+ } | {
1153
+ input: {
1154
+ param: {
1155
+ id: string;
1156
+ };
1157
+ };
1158
+ output: {
1159
+ success: true;
1160
+ };
1161
+ outputFormat: "json";
1162
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1163
+ };
1164
+ };
1165
+ } & {
1166
+ "/dispatch-legs": {
1167
+ $get: {
1168
+ input: {};
1169
+ output: {
1170
+ data: {
1171
+ id: string;
1172
+ dispatchId: string;
1173
+ sequence: number;
1174
+ legType: "pickup" | "stop" | "dropoff" | "deadhead";
1175
+ facilityId: string | null;
1176
+ addressId: string | null;
1177
+ scheduledAt: string | null;
1178
+ actualAt: string | null;
1179
+ notes: string | null;
1180
+ metadata: {
1181
+ [x: string]: import("hono/utils/types").JSONValue;
1182
+ } | null;
1183
+ createdAt: string;
1184
+ updatedAt: string;
1185
+ }[];
1186
+ total: number;
1187
+ limit: number;
1188
+ offset: number;
1189
+ };
1190
+ outputFormat: "json";
1191
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1192
+ };
1193
+ };
1194
+ } & {
1195
+ "/dispatch-legs": {
1196
+ $post: {
1197
+ input: {};
1198
+ output: {
1199
+ data: {
1200
+ id: string;
1201
+ notes: string | null;
1202
+ metadata: {
1203
+ [x: string]: import("hono/utils/types").JSONValue;
1204
+ } | null;
1205
+ createdAt: string;
1206
+ updatedAt: string;
1207
+ facilityId: string | null;
1208
+ dispatchId: string;
1209
+ addressId: string | null;
1210
+ sequence: number;
1211
+ legType: "pickup" | "stop" | "dropoff" | "deadhead";
1212
+ scheduledAt: string | null;
1213
+ actualAt: string | null;
1214
+ } | undefined;
1215
+ };
1216
+ outputFormat: "json";
1217
+ status: 201;
1218
+ };
1219
+ };
1220
+ } & {
1221
+ "/dispatch-legs/:id": {
1222
+ $get: {
1223
+ input: {
1224
+ param: {
1225
+ id: string;
1226
+ };
1227
+ };
1228
+ output: {
1229
+ error: string;
1230
+ };
1231
+ outputFormat: "json";
1232
+ status: 404;
1233
+ } | {
1234
+ input: {
1235
+ param: {
1236
+ id: string;
1237
+ };
1238
+ };
1239
+ output: {
1240
+ data: {
1241
+ id: string;
1242
+ dispatchId: string;
1243
+ sequence: number;
1244
+ legType: "pickup" | "stop" | "dropoff" | "deadhead";
1245
+ facilityId: string | null;
1246
+ addressId: string | null;
1247
+ scheduledAt: string | null;
1248
+ actualAt: string | null;
1249
+ notes: string | null;
1250
+ metadata: {
1251
+ [x: string]: import("hono/utils/types").JSONValue;
1252
+ } | null;
1253
+ createdAt: string;
1254
+ updatedAt: string;
1255
+ };
1256
+ };
1257
+ outputFormat: "json";
1258
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1259
+ };
1260
+ };
1261
+ } & {
1262
+ "/dispatch-legs/:id": {
1263
+ $patch: {
1264
+ input: {
1265
+ param: {
1266
+ id: string;
1267
+ };
1268
+ };
1269
+ output: {
1270
+ error: string;
1271
+ };
1272
+ outputFormat: "json";
1273
+ status: 404;
1274
+ } | {
1275
+ input: {
1276
+ param: {
1277
+ id: string;
1278
+ };
1279
+ };
1280
+ output: {
1281
+ data: {
1282
+ id: string;
1283
+ dispatchId: string;
1284
+ sequence: number;
1285
+ legType: "pickup" | "stop" | "dropoff" | "deadhead";
1286
+ facilityId: string | null;
1287
+ addressId: string | null;
1288
+ scheduledAt: string | null;
1289
+ actualAt: string | null;
1290
+ notes: string | null;
1291
+ metadata: {
1292
+ [x: string]: import("hono/utils/types").JSONValue;
1293
+ } | null;
1294
+ createdAt: string;
1295
+ updatedAt: string;
1296
+ };
1297
+ };
1298
+ outputFormat: "json";
1299
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1300
+ };
1301
+ };
1302
+ } & {
1303
+ "/dispatch-legs/:id": {
1304
+ $delete: {
1305
+ input: {
1306
+ param: {
1307
+ id: string;
1308
+ };
1309
+ };
1310
+ output: {
1311
+ error: string;
1312
+ };
1313
+ outputFormat: "json";
1314
+ status: 404;
1315
+ } | {
1316
+ input: {
1317
+ param: {
1318
+ id: string;
1319
+ };
1320
+ };
1321
+ output: {
1322
+ success: true;
1323
+ };
1324
+ outputFormat: "json";
1325
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1326
+ };
1327
+ };
1328
+ } & {
1329
+ "/dispatch-passengers": {
1330
+ $get: {
1331
+ input: {};
1332
+ output: {
1333
+ data: {
1334
+ id: string;
1335
+ dispatchId: string;
1336
+ participantId: string | null;
1337
+ displayName: string | null;
1338
+ seatLabel: string | null;
1339
+ notes: string | null;
1340
+ createdAt: string;
1341
+ updatedAt: string;
1342
+ }[];
1343
+ total: number;
1344
+ limit: number;
1345
+ offset: number;
1346
+ };
1347
+ outputFormat: "json";
1348
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1349
+ };
1350
+ };
1351
+ } & {
1352
+ "/dispatch-passengers": {
1353
+ $post: {
1354
+ input: {};
1355
+ output: {
1356
+ data: {
1357
+ id: string;
1358
+ notes: string | null;
1359
+ createdAt: string;
1360
+ updatedAt: string;
1361
+ dispatchId: string;
1362
+ participantId: string | null;
1363
+ displayName: string | null;
1364
+ seatLabel: string | null;
1365
+ } | undefined;
1366
+ };
1367
+ outputFormat: "json";
1368
+ status: 201;
1369
+ };
1370
+ };
1371
+ } & {
1372
+ "/dispatch-passengers/:id": {
1373
+ $get: {
1374
+ input: {
1375
+ param: {
1376
+ id: string;
1377
+ };
1378
+ };
1379
+ output: {
1380
+ error: string;
1381
+ };
1382
+ outputFormat: "json";
1383
+ status: 404;
1384
+ } | {
1385
+ input: {
1386
+ param: {
1387
+ id: string;
1388
+ };
1389
+ };
1390
+ output: {
1391
+ data: {
1392
+ id: string;
1393
+ dispatchId: string;
1394
+ participantId: string | null;
1395
+ displayName: string | null;
1396
+ seatLabel: string | null;
1397
+ notes: string | null;
1398
+ createdAt: string;
1399
+ updatedAt: string;
1400
+ };
1401
+ };
1402
+ outputFormat: "json";
1403
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1404
+ };
1405
+ };
1406
+ } & {
1407
+ "/dispatch-passengers/:id": {
1408
+ $patch: {
1409
+ input: {
1410
+ param: {
1411
+ id: string;
1412
+ };
1413
+ };
1414
+ output: {
1415
+ error: string;
1416
+ };
1417
+ outputFormat: "json";
1418
+ status: 404;
1419
+ } | {
1420
+ input: {
1421
+ param: {
1422
+ id: string;
1423
+ };
1424
+ };
1425
+ output: {
1426
+ data: {
1427
+ id: string;
1428
+ dispatchId: string;
1429
+ participantId: string | null;
1430
+ displayName: string | null;
1431
+ seatLabel: string | null;
1432
+ notes: string | null;
1433
+ createdAt: string;
1434
+ updatedAt: string;
1435
+ };
1436
+ };
1437
+ outputFormat: "json";
1438
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1439
+ };
1440
+ };
1441
+ } & {
1442
+ "/dispatch-passengers/:id": {
1443
+ $delete: {
1444
+ input: {
1445
+ param: {
1446
+ id: string;
1447
+ };
1448
+ };
1449
+ output: {
1450
+ error: string;
1451
+ };
1452
+ outputFormat: "json";
1453
+ status: 404;
1454
+ } | {
1455
+ input: {
1456
+ param: {
1457
+ id: string;
1458
+ };
1459
+ };
1460
+ output: {
1461
+ success: true;
1462
+ };
1463
+ outputFormat: "json";
1464
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1465
+ };
1466
+ };
1467
+ } & {
1468
+ "/driver-shifts": {
1469
+ $get: {
1470
+ input: {};
1471
+ output: {
1472
+ data: {
1473
+ id: string;
1474
+ driverId: string;
1475
+ operatorId: string | null;
1476
+ facilityId: string | null;
1477
+ startsAt: string;
1478
+ endsAt: string;
1479
+ status: "scheduled" | "completed" | "cancelled" | "available" | "on_duty";
1480
+ notes: string | null;
1481
+ metadata: {
1482
+ [x: string]: import("hono/utils/types").JSONValue;
1483
+ } | null;
1484
+ createdAt: string;
1485
+ updatedAt: string;
1486
+ }[];
1487
+ total: number;
1488
+ limit: number;
1489
+ offset: number;
1490
+ };
1491
+ outputFormat: "json";
1492
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1493
+ };
1494
+ };
1495
+ } & {
1496
+ "/driver-shifts": {
1497
+ $post: {
1498
+ input: {};
1499
+ output: {
1500
+ data: {
1501
+ id: string;
1502
+ notes: string | null;
1503
+ metadata: {
1504
+ [x: string]: import("hono/utils/types").JSONValue;
1505
+ } | null;
1506
+ createdAt: string;
1507
+ updatedAt: string;
1508
+ status: "scheduled" | "completed" | "cancelled" | "available" | "on_duty";
1509
+ facilityId: string | null;
1510
+ operatorId: string | null;
1511
+ driverId: string;
1512
+ startsAt: string;
1513
+ endsAt: string;
1514
+ } | undefined;
1515
+ };
1516
+ outputFormat: "json";
1517
+ status: 201;
1518
+ };
1519
+ };
1520
+ } & {
1521
+ "/driver-shifts/:id": {
1522
+ $get: {
1523
+ input: {
1524
+ param: {
1525
+ id: string;
1526
+ };
1527
+ };
1528
+ output: {
1529
+ error: string;
1530
+ };
1531
+ outputFormat: "json";
1532
+ status: 404;
1533
+ } | {
1534
+ input: {
1535
+ param: {
1536
+ id: string;
1537
+ };
1538
+ };
1539
+ output: {
1540
+ data: {
1541
+ id: string;
1542
+ driverId: string;
1543
+ operatorId: string | null;
1544
+ facilityId: string | null;
1545
+ startsAt: string;
1546
+ endsAt: string;
1547
+ status: "scheduled" | "completed" | "cancelled" | "available" | "on_duty";
1548
+ notes: string | null;
1549
+ metadata: {
1550
+ [x: string]: import("hono/utils/types").JSONValue;
1551
+ } | null;
1552
+ createdAt: string;
1553
+ updatedAt: string;
1554
+ };
1555
+ };
1556
+ outputFormat: "json";
1557
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1558
+ };
1559
+ };
1560
+ } & {
1561
+ "/driver-shifts/:id": {
1562
+ $patch: {
1563
+ input: {
1564
+ param: {
1565
+ id: string;
1566
+ };
1567
+ };
1568
+ output: {
1569
+ error: string;
1570
+ };
1571
+ outputFormat: "json";
1572
+ status: 404;
1573
+ } | {
1574
+ input: {
1575
+ param: {
1576
+ id: string;
1577
+ };
1578
+ };
1579
+ output: {
1580
+ data: {
1581
+ id: string;
1582
+ driverId: string;
1583
+ operatorId: string | null;
1584
+ facilityId: string | null;
1585
+ startsAt: string;
1586
+ endsAt: string;
1587
+ status: "scheduled" | "completed" | "cancelled" | "available" | "on_duty";
1588
+ notes: string | null;
1589
+ metadata: {
1590
+ [x: string]: import("hono/utils/types").JSONValue;
1591
+ } | null;
1592
+ createdAt: string;
1593
+ updatedAt: string;
1594
+ };
1595
+ };
1596
+ outputFormat: "json";
1597
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1598
+ };
1599
+ };
1600
+ } & {
1601
+ "/driver-shifts/:id": {
1602
+ $delete: {
1603
+ input: {
1604
+ param: {
1605
+ id: string;
1606
+ };
1607
+ };
1608
+ output: {
1609
+ error: string;
1610
+ };
1611
+ outputFormat: "json";
1612
+ status: 404;
1613
+ } | {
1614
+ input: {
1615
+ param: {
1616
+ id: string;
1617
+ };
1618
+ };
1619
+ output: {
1620
+ success: true;
1621
+ };
1622
+ outputFormat: "json";
1623
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1624
+ };
1625
+ };
1626
+ } & {
1627
+ "/service-incidents": {
1628
+ $get: {
1629
+ input: {};
1630
+ output: {
1631
+ data: {
1632
+ id: string;
1633
+ dispatchId: string;
1634
+ severity: "info" | "warning" | "critical";
1635
+ incidentType: string;
1636
+ resolutionStatus: "cancelled" | "open" | "mitigated" | "resolved";
1637
+ openedAt: string;
1638
+ resolvedAt: string | null;
1639
+ notes: string | null;
1640
+ metadata: {
1641
+ [x: string]: import("hono/utils/types").JSONValue;
1642
+ } | null;
1643
+ createdAt: string;
1644
+ updatedAt: string;
1645
+ }[];
1646
+ total: number;
1647
+ limit: number;
1648
+ offset: number;
1649
+ };
1650
+ outputFormat: "json";
1651
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1652
+ };
1653
+ };
1654
+ } & {
1655
+ "/service-incidents": {
1656
+ $post: {
1657
+ input: {};
1658
+ output: {
1659
+ data: {
1660
+ id: string;
1661
+ notes: string | null;
1662
+ metadata: {
1663
+ [x: string]: import("hono/utils/types").JSONValue;
1664
+ } | null;
1665
+ createdAt: string;
1666
+ updatedAt: string;
1667
+ dispatchId: string;
1668
+ severity: "info" | "warning" | "critical";
1669
+ incidentType: string;
1670
+ resolutionStatus: "cancelled" | "open" | "mitigated" | "resolved";
1671
+ openedAt: string;
1672
+ resolvedAt: string | null;
1673
+ } | undefined;
1674
+ };
1675
+ outputFormat: "json";
1676
+ status: 201;
1677
+ };
1678
+ };
1679
+ } & {
1680
+ "/service-incidents/:id": {
1681
+ $get: {
1682
+ input: {
1683
+ param: {
1684
+ id: string;
1685
+ };
1686
+ };
1687
+ output: {
1688
+ error: string;
1689
+ };
1690
+ outputFormat: "json";
1691
+ status: 404;
1692
+ } | {
1693
+ input: {
1694
+ param: {
1695
+ id: string;
1696
+ };
1697
+ };
1698
+ output: {
1699
+ data: {
1700
+ id: string;
1701
+ dispatchId: string;
1702
+ severity: "info" | "warning" | "critical";
1703
+ incidentType: string;
1704
+ resolutionStatus: "cancelled" | "open" | "mitigated" | "resolved";
1705
+ openedAt: string;
1706
+ resolvedAt: string | null;
1707
+ notes: string | null;
1708
+ metadata: {
1709
+ [x: string]: import("hono/utils/types").JSONValue;
1710
+ } | null;
1711
+ createdAt: string;
1712
+ updatedAt: string;
1713
+ };
1714
+ };
1715
+ outputFormat: "json";
1716
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1717
+ };
1718
+ };
1719
+ } & {
1720
+ "/service-incidents/:id": {
1721
+ $patch: {
1722
+ input: {
1723
+ param: {
1724
+ id: string;
1725
+ };
1726
+ };
1727
+ output: {
1728
+ error: string;
1729
+ };
1730
+ outputFormat: "json";
1731
+ status: 404;
1732
+ } | {
1733
+ input: {
1734
+ param: {
1735
+ id: string;
1736
+ };
1737
+ };
1738
+ output: {
1739
+ data: {
1740
+ id: string;
1741
+ dispatchId: string;
1742
+ severity: "info" | "warning" | "critical";
1743
+ incidentType: string;
1744
+ resolutionStatus: "cancelled" | "open" | "mitigated" | "resolved";
1745
+ openedAt: string;
1746
+ resolvedAt: string | null;
1747
+ notes: string | null;
1748
+ metadata: {
1749
+ [x: string]: import("hono/utils/types").JSONValue;
1750
+ } | null;
1751
+ createdAt: string;
1752
+ updatedAt: string;
1753
+ };
1754
+ };
1755
+ outputFormat: "json";
1756
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1757
+ };
1758
+ };
1759
+ } & {
1760
+ "/service-incidents/:id": {
1761
+ $delete: {
1762
+ input: {
1763
+ param: {
1764
+ id: string;
1765
+ };
1766
+ };
1767
+ output: {
1768
+ error: string;
1769
+ };
1770
+ outputFormat: "json";
1771
+ status: 404;
1772
+ } | {
1773
+ input: {
1774
+ param: {
1775
+ id: string;
1776
+ };
1777
+ };
1778
+ output: {
1779
+ success: true;
1780
+ };
1781
+ outputFormat: "json";
1782
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1783
+ };
1784
+ };
1785
+ } & {
1786
+ "/dispatch-checkpoints": {
1787
+ $get: {
1788
+ input: {};
1789
+ output: {
1790
+ data: {
1791
+ id: string;
1792
+ dispatchId: string;
1793
+ sequence: number;
1794
+ checkpointType: string;
1795
+ status: "cancelled" | "pending" | "reached" | "missed";
1796
+ plannedAt: string | null;
1797
+ actualAt: string | null;
1798
+ facilityId: string | null;
1799
+ addressId: string | null;
1800
+ notes: string | null;
1801
+ metadata: {
1802
+ [x: string]: import("hono/utils/types").JSONValue;
1803
+ } | null;
1804
+ createdAt: string;
1805
+ updatedAt: string;
1806
+ }[];
1807
+ total: number;
1808
+ limit: number;
1809
+ offset: number;
1810
+ };
1811
+ outputFormat: "json";
1812
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1813
+ };
1814
+ };
1815
+ } & {
1816
+ "/dispatch-checkpoints": {
1817
+ $post: {
1818
+ input: {};
1819
+ output: {
1820
+ data: {
1821
+ id: string;
1822
+ notes: string | null;
1823
+ metadata: {
1824
+ [x: string]: import("hono/utils/types").JSONValue;
1825
+ } | null;
1826
+ createdAt: string;
1827
+ updatedAt: string;
1828
+ status: "cancelled" | "pending" | "reached" | "missed";
1829
+ facilityId: string | null;
1830
+ dispatchId: string;
1831
+ addressId: string | null;
1832
+ sequence: number;
1833
+ actualAt: string | null;
1834
+ checkpointType: string;
1835
+ plannedAt: string | null;
1836
+ } | undefined;
1837
+ };
1838
+ outputFormat: "json";
1839
+ status: 201;
1840
+ };
1841
+ };
1842
+ } & {
1843
+ "/dispatch-checkpoints/:id": {
1844
+ $get: {
1845
+ input: {
1846
+ param: {
1847
+ id: string;
1848
+ };
1849
+ };
1850
+ output: {
1851
+ error: string;
1852
+ };
1853
+ outputFormat: "json";
1854
+ status: 404;
1855
+ } | {
1856
+ input: {
1857
+ param: {
1858
+ id: string;
1859
+ };
1860
+ };
1861
+ output: {
1862
+ data: {
1863
+ id: string;
1864
+ dispatchId: string;
1865
+ sequence: number;
1866
+ checkpointType: string;
1867
+ status: "cancelled" | "pending" | "reached" | "missed";
1868
+ plannedAt: string | null;
1869
+ actualAt: string | null;
1870
+ facilityId: string | null;
1871
+ addressId: string | null;
1872
+ notes: string | null;
1873
+ metadata: {
1874
+ [x: string]: import("hono/utils/types").JSONValue;
1875
+ } | null;
1876
+ createdAt: string;
1877
+ updatedAt: string;
1878
+ };
1879
+ };
1880
+ outputFormat: "json";
1881
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1882
+ };
1883
+ };
1884
+ } & {
1885
+ "/dispatch-checkpoints/:id": {
1886
+ $patch: {
1887
+ input: {
1888
+ param: {
1889
+ id: string;
1890
+ };
1891
+ };
1892
+ output: {
1893
+ error: string;
1894
+ };
1895
+ outputFormat: "json";
1896
+ status: 404;
1897
+ } | {
1898
+ input: {
1899
+ param: {
1900
+ id: string;
1901
+ };
1902
+ };
1903
+ output: {
1904
+ data: {
1905
+ id: string;
1906
+ dispatchId: string;
1907
+ sequence: number;
1908
+ checkpointType: string;
1909
+ status: "cancelled" | "pending" | "reached" | "missed";
1910
+ plannedAt: string | null;
1911
+ actualAt: string | null;
1912
+ facilityId: string | null;
1913
+ addressId: string | null;
1914
+ notes: string | null;
1915
+ metadata: {
1916
+ [x: string]: import("hono/utils/types").JSONValue;
1917
+ } | null;
1918
+ createdAt: string;
1919
+ updatedAt: string;
1920
+ };
1921
+ };
1922
+ outputFormat: "json";
1923
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1924
+ };
1925
+ };
1926
+ } & {
1927
+ "/dispatch-checkpoints/:id": {
1928
+ $delete: {
1929
+ input: {
1930
+ param: {
1931
+ id: string;
1932
+ };
1933
+ };
1934
+ output: {
1935
+ error: string;
1936
+ };
1937
+ outputFormat: "json";
1938
+ status: 404;
1939
+ } | {
1940
+ input: {
1941
+ param: {
1942
+ id: string;
1943
+ };
1944
+ };
1945
+ output: {
1946
+ success: true;
1947
+ };
1948
+ outputFormat: "json";
1949
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1950
+ };
1951
+ };
1952
+ }, "/", "/dispatch-checkpoints/:id">;
1953
+ export type GroundRoutes = typeof groundRoutes;
1954
+ export {};
1955
+ //# sourceMappingURL=routes.d.ts.map