@voyantjs/resources 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,1214 @@
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 resourcesRoutes: import("hono/hono-base").HonoBase<Env, {
9
+ "/resources": {
10
+ $get: {
11
+ input: {};
12
+ output: {
13
+ data: {
14
+ id: string;
15
+ supplierId: string | null;
16
+ facilityId: string | null;
17
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
18
+ name: string;
19
+ code: string | null;
20
+ capacity: number | null;
21
+ active: boolean;
22
+ notes: string | null;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }[];
26
+ total: number;
27
+ limit: number;
28
+ offset: number;
29
+ };
30
+ outputFormat: "json";
31
+ status: import("hono/utils/http-status").ContentfulStatusCode;
32
+ };
33
+ };
34
+ } & {
35
+ "/resources": {
36
+ $post: {
37
+ input: {};
38
+ output: {
39
+ data: {
40
+ id: string;
41
+ name: string;
42
+ supplierId: string | null;
43
+ facilityId: string | null;
44
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
45
+ code: string | null;
46
+ capacity: number | null;
47
+ active: boolean;
48
+ notes: string | null;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ } | undefined;
52
+ };
53
+ outputFormat: "json";
54
+ status: 201;
55
+ };
56
+ };
57
+ } & {
58
+ "/resources/batch-update": {
59
+ $post: {
60
+ input: {};
61
+ output: {
62
+ data: {
63
+ id: string;
64
+ supplierId: string | null;
65
+ facilityId: string | null;
66
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
67
+ name: string;
68
+ code: string | null;
69
+ capacity: number | null;
70
+ active: boolean;
71
+ notes: string | null;
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ }[];
75
+ total: number;
76
+ succeeded: number;
77
+ failed: {
78
+ id: string;
79
+ error: string;
80
+ }[];
81
+ };
82
+ outputFormat: "json";
83
+ status: import("hono/utils/http-status").ContentfulStatusCode;
84
+ };
85
+ };
86
+ } & {
87
+ "/resources/batch-delete": {
88
+ $post: {
89
+ input: {};
90
+ output: {
91
+ deletedIds: string[];
92
+ total: number;
93
+ succeeded: number;
94
+ failed: {
95
+ id: string;
96
+ error: string;
97
+ }[];
98
+ };
99
+ outputFormat: "json";
100
+ status: import("hono/utils/http-status").ContentfulStatusCode;
101
+ };
102
+ };
103
+ } & {
104
+ "/resources/:id": {
105
+ $get: {
106
+ input: {
107
+ param: {
108
+ id: string;
109
+ };
110
+ };
111
+ output: {
112
+ error: string;
113
+ };
114
+ outputFormat: "json";
115
+ status: 404;
116
+ } | {
117
+ input: {
118
+ param: {
119
+ id: string;
120
+ };
121
+ };
122
+ output: {
123
+ data: {
124
+ id: string;
125
+ supplierId: string | null;
126
+ facilityId: string | null;
127
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
128
+ name: string;
129
+ code: string | null;
130
+ capacity: number | null;
131
+ active: boolean;
132
+ notes: string | null;
133
+ createdAt: string;
134
+ updatedAt: string;
135
+ };
136
+ };
137
+ outputFormat: "json";
138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
139
+ };
140
+ };
141
+ } & {
142
+ "/resources/:id": {
143
+ $patch: {
144
+ input: {
145
+ param: {
146
+ id: string;
147
+ };
148
+ };
149
+ output: {
150
+ error: string;
151
+ };
152
+ outputFormat: "json";
153
+ status: 404;
154
+ } | {
155
+ input: {
156
+ param: {
157
+ id: string;
158
+ };
159
+ };
160
+ output: {
161
+ data: {
162
+ id: string;
163
+ supplierId: string | null;
164
+ facilityId: string | null;
165
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
166
+ name: string;
167
+ code: string | null;
168
+ capacity: number | null;
169
+ active: boolean;
170
+ notes: string | null;
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ };
174
+ };
175
+ outputFormat: "json";
176
+ status: import("hono/utils/http-status").ContentfulStatusCode;
177
+ };
178
+ };
179
+ } & {
180
+ "/resources/:id": {
181
+ $delete: {
182
+ input: {
183
+ param: {
184
+ id: string;
185
+ };
186
+ };
187
+ output: {
188
+ error: string;
189
+ };
190
+ outputFormat: "json";
191
+ status: 404;
192
+ } | {
193
+ input: {
194
+ param: {
195
+ id: string;
196
+ };
197
+ };
198
+ output: {
199
+ success: true;
200
+ };
201
+ outputFormat: "json";
202
+ status: import("hono/utils/http-status").ContentfulStatusCode;
203
+ };
204
+ };
205
+ } & {
206
+ "/pools": {
207
+ $get: {
208
+ input: {};
209
+ output: {
210
+ data: {
211
+ id: string;
212
+ productId: string | null;
213
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
214
+ name: string;
215
+ sharedCapacity: number | null;
216
+ active: boolean;
217
+ notes: string | null;
218
+ createdAt: string;
219
+ updatedAt: string;
220
+ }[];
221
+ total: number;
222
+ limit: number;
223
+ offset: number;
224
+ };
225
+ outputFormat: "json";
226
+ status: import("hono/utils/http-status").ContentfulStatusCode;
227
+ };
228
+ };
229
+ } & {
230
+ "/pools": {
231
+ $post: {
232
+ input: {};
233
+ output: {
234
+ data: {
235
+ id: string;
236
+ name: string;
237
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
238
+ active: boolean;
239
+ notes: string | null;
240
+ createdAt: string;
241
+ updatedAt: string;
242
+ productId: string | null;
243
+ sharedCapacity: number | null;
244
+ } | undefined;
245
+ };
246
+ outputFormat: "json";
247
+ status: 201;
248
+ };
249
+ };
250
+ } & {
251
+ "/pools/batch-update": {
252
+ $post: {
253
+ input: {};
254
+ output: {
255
+ data: {
256
+ id: string;
257
+ productId: string | null;
258
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
259
+ name: string;
260
+ sharedCapacity: number | null;
261
+ active: boolean;
262
+ notes: string | null;
263
+ createdAt: string;
264
+ updatedAt: string;
265
+ }[];
266
+ total: number;
267
+ succeeded: number;
268
+ failed: {
269
+ id: string;
270
+ error: string;
271
+ }[];
272
+ };
273
+ outputFormat: "json";
274
+ status: import("hono/utils/http-status").ContentfulStatusCode;
275
+ };
276
+ };
277
+ } & {
278
+ "/pools/batch-delete": {
279
+ $post: {
280
+ input: {};
281
+ output: {
282
+ deletedIds: string[];
283
+ total: number;
284
+ succeeded: number;
285
+ failed: {
286
+ id: string;
287
+ error: string;
288
+ }[];
289
+ };
290
+ outputFormat: "json";
291
+ status: import("hono/utils/http-status").ContentfulStatusCode;
292
+ };
293
+ };
294
+ } & {
295
+ "/pools/:id": {
296
+ $get: {
297
+ input: {
298
+ param: {
299
+ id: string;
300
+ };
301
+ };
302
+ output: {
303
+ error: string;
304
+ };
305
+ outputFormat: "json";
306
+ status: 404;
307
+ } | {
308
+ input: {
309
+ param: {
310
+ id: string;
311
+ };
312
+ };
313
+ output: {
314
+ data: {
315
+ id: string;
316
+ productId: string | null;
317
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
318
+ name: string;
319
+ sharedCapacity: number | null;
320
+ active: boolean;
321
+ notes: string | null;
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ };
325
+ };
326
+ outputFormat: "json";
327
+ status: import("hono/utils/http-status").ContentfulStatusCode;
328
+ };
329
+ };
330
+ } & {
331
+ "/pools/:id": {
332
+ $patch: {
333
+ input: {
334
+ param: {
335
+ id: string;
336
+ };
337
+ };
338
+ output: {
339
+ error: string;
340
+ };
341
+ outputFormat: "json";
342
+ status: 404;
343
+ } | {
344
+ input: {
345
+ param: {
346
+ id: string;
347
+ };
348
+ };
349
+ output: {
350
+ data: {
351
+ id: string;
352
+ productId: string | null;
353
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
354
+ name: string;
355
+ sharedCapacity: number | null;
356
+ active: boolean;
357
+ notes: string | null;
358
+ createdAt: string;
359
+ updatedAt: string;
360
+ };
361
+ };
362
+ outputFormat: "json";
363
+ status: import("hono/utils/http-status").ContentfulStatusCode;
364
+ };
365
+ };
366
+ } & {
367
+ "/pools/:id": {
368
+ $delete: {
369
+ input: {
370
+ param: {
371
+ id: string;
372
+ };
373
+ };
374
+ output: {
375
+ error: string;
376
+ };
377
+ outputFormat: "json";
378
+ status: 404;
379
+ } | {
380
+ input: {
381
+ param: {
382
+ id: string;
383
+ };
384
+ };
385
+ output: {
386
+ success: true;
387
+ };
388
+ outputFormat: "json";
389
+ status: import("hono/utils/http-status").ContentfulStatusCode;
390
+ };
391
+ };
392
+ } & {
393
+ "/pool-members": {
394
+ $get: {
395
+ input: {};
396
+ output: {
397
+ data: {
398
+ id: string;
399
+ poolId: string;
400
+ resourceId: string;
401
+ createdAt: string;
402
+ }[];
403
+ total: number;
404
+ limit: number;
405
+ offset: number;
406
+ };
407
+ outputFormat: "json";
408
+ status: import("hono/utils/http-status").ContentfulStatusCode;
409
+ };
410
+ };
411
+ } & {
412
+ "/pool-members": {
413
+ $post: {
414
+ input: {};
415
+ output: {
416
+ data: {
417
+ id: string;
418
+ createdAt: string;
419
+ poolId: string;
420
+ resourceId: string;
421
+ } | undefined;
422
+ };
423
+ outputFormat: "json";
424
+ status: 201;
425
+ };
426
+ };
427
+ } & {
428
+ "/pool-members/:id": {
429
+ $delete: {
430
+ input: {
431
+ param: {
432
+ id: string;
433
+ };
434
+ };
435
+ output: {
436
+ error: string;
437
+ };
438
+ outputFormat: "json";
439
+ status: 404;
440
+ } | {
441
+ input: {
442
+ param: {
443
+ id: string;
444
+ };
445
+ };
446
+ output: {
447
+ success: true;
448
+ };
449
+ outputFormat: "json";
450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
451
+ };
452
+ };
453
+ } & {
454
+ "/requirements": {
455
+ $get: {
456
+ input: {};
457
+ output: {
458
+ data: {
459
+ id: string;
460
+ poolId: string;
461
+ productId: string;
462
+ availabilityRuleId: string | null;
463
+ startTimeId: string | null;
464
+ quantityRequired: number;
465
+ allocationMode: "shared" | "exclusive";
466
+ priority: number;
467
+ createdAt: string;
468
+ updatedAt: string;
469
+ }[];
470
+ total: number;
471
+ limit: number;
472
+ offset: number;
473
+ };
474
+ outputFormat: "json";
475
+ status: import("hono/utils/http-status").ContentfulStatusCode;
476
+ };
477
+ };
478
+ } & {
479
+ "/requirements": {
480
+ $post: {
481
+ input: {};
482
+ output: {
483
+ data: {
484
+ id: string;
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ productId: string;
488
+ poolId: string;
489
+ availabilityRuleId: string | null;
490
+ startTimeId: string | null;
491
+ quantityRequired: number;
492
+ allocationMode: "shared" | "exclusive";
493
+ priority: number;
494
+ } | undefined;
495
+ };
496
+ outputFormat: "json";
497
+ status: 201;
498
+ };
499
+ };
500
+ } & {
501
+ "/requirements/batch-update": {
502
+ $post: {
503
+ input: {};
504
+ output: {
505
+ data: {
506
+ id: string;
507
+ poolId: string;
508
+ productId: string;
509
+ availabilityRuleId: string | null;
510
+ startTimeId: string | null;
511
+ quantityRequired: number;
512
+ allocationMode: "shared" | "exclusive";
513
+ priority: number;
514
+ createdAt: string;
515
+ updatedAt: string;
516
+ }[];
517
+ total: number;
518
+ succeeded: number;
519
+ failed: {
520
+ id: string;
521
+ error: string;
522
+ }[];
523
+ };
524
+ outputFormat: "json";
525
+ status: import("hono/utils/http-status").ContentfulStatusCode;
526
+ };
527
+ };
528
+ } & {
529
+ "/requirements/batch-delete": {
530
+ $post: {
531
+ input: {};
532
+ output: {
533
+ deletedIds: string[];
534
+ total: number;
535
+ succeeded: number;
536
+ failed: {
537
+ id: string;
538
+ error: string;
539
+ }[];
540
+ };
541
+ outputFormat: "json";
542
+ status: import("hono/utils/http-status").ContentfulStatusCode;
543
+ };
544
+ };
545
+ } & {
546
+ "/requirements/:id": {
547
+ $get: {
548
+ input: {
549
+ param: {
550
+ id: string;
551
+ };
552
+ };
553
+ output: {
554
+ error: string;
555
+ };
556
+ outputFormat: "json";
557
+ status: 404;
558
+ } | {
559
+ input: {
560
+ param: {
561
+ id: string;
562
+ };
563
+ };
564
+ output: {
565
+ data: {
566
+ id: string;
567
+ poolId: string;
568
+ productId: string;
569
+ availabilityRuleId: string | null;
570
+ startTimeId: string | null;
571
+ quantityRequired: number;
572
+ allocationMode: "shared" | "exclusive";
573
+ priority: number;
574
+ createdAt: string;
575
+ updatedAt: string;
576
+ };
577
+ };
578
+ outputFormat: "json";
579
+ status: import("hono/utils/http-status").ContentfulStatusCode;
580
+ };
581
+ };
582
+ } & {
583
+ "/requirements/:id": {
584
+ $patch: {
585
+ input: {
586
+ param: {
587
+ id: string;
588
+ };
589
+ };
590
+ output: {
591
+ error: string;
592
+ };
593
+ outputFormat: "json";
594
+ status: 404;
595
+ } | {
596
+ input: {
597
+ param: {
598
+ id: string;
599
+ };
600
+ };
601
+ output: {
602
+ data: {
603
+ id: string;
604
+ poolId: string;
605
+ productId: string;
606
+ availabilityRuleId: string | null;
607
+ startTimeId: string | null;
608
+ quantityRequired: number;
609
+ allocationMode: "shared" | "exclusive";
610
+ priority: number;
611
+ createdAt: string;
612
+ updatedAt: string;
613
+ };
614
+ };
615
+ outputFormat: "json";
616
+ status: import("hono/utils/http-status").ContentfulStatusCode;
617
+ };
618
+ };
619
+ } & {
620
+ "/requirements/:id": {
621
+ $delete: {
622
+ input: {
623
+ param: {
624
+ id: string;
625
+ };
626
+ };
627
+ output: {
628
+ error: string;
629
+ };
630
+ outputFormat: "json";
631
+ status: 404;
632
+ } | {
633
+ input: {
634
+ param: {
635
+ id: string;
636
+ };
637
+ };
638
+ output: {
639
+ success: true;
640
+ };
641
+ outputFormat: "json";
642
+ status: import("hono/utils/http-status").ContentfulStatusCode;
643
+ };
644
+ };
645
+ } & {
646
+ "/allocations": {
647
+ $get: {
648
+ input: {};
649
+ output: {
650
+ data: {
651
+ id: string;
652
+ poolId: string;
653
+ productId: string;
654
+ availabilityRuleId: string | null;
655
+ startTimeId: string | null;
656
+ quantityRequired: number;
657
+ allocationMode: "shared" | "exclusive";
658
+ priority: number;
659
+ createdAt: string;
660
+ updatedAt: string;
661
+ }[];
662
+ total: number;
663
+ limit: number;
664
+ offset: number;
665
+ };
666
+ outputFormat: "json";
667
+ status: import("hono/utils/http-status").ContentfulStatusCode;
668
+ };
669
+ };
670
+ } & {
671
+ "/allocations": {
672
+ $post: {
673
+ input: {};
674
+ output: {
675
+ data: {
676
+ id: string;
677
+ createdAt: string;
678
+ updatedAt: string;
679
+ productId: string;
680
+ poolId: string;
681
+ availabilityRuleId: string | null;
682
+ startTimeId: string | null;
683
+ quantityRequired: number;
684
+ allocationMode: "shared" | "exclusive";
685
+ priority: number;
686
+ } | undefined;
687
+ };
688
+ outputFormat: "json";
689
+ status: 201;
690
+ };
691
+ };
692
+ } & {
693
+ "/allocations/batch-update": {
694
+ $post: {
695
+ input: {};
696
+ output: {
697
+ data: {
698
+ id: string;
699
+ poolId: string;
700
+ productId: string;
701
+ availabilityRuleId: string | null;
702
+ startTimeId: string | null;
703
+ quantityRequired: number;
704
+ allocationMode: "shared" | "exclusive";
705
+ priority: number;
706
+ createdAt: string;
707
+ updatedAt: string;
708
+ }[];
709
+ total: number;
710
+ succeeded: number;
711
+ failed: {
712
+ id: string;
713
+ error: string;
714
+ }[];
715
+ };
716
+ outputFormat: "json";
717
+ status: import("hono/utils/http-status").ContentfulStatusCode;
718
+ };
719
+ };
720
+ } & {
721
+ "/allocations/batch-delete": {
722
+ $post: {
723
+ input: {};
724
+ output: {
725
+ deletedIds: string[];
726
+ total: number;
727
+ succeeded: number;
728
+ failed: {
729
+ id: string;
730
+ error: string;
731
+ }[];
732
+ };
733
+ outputFormat: "json";
734
+ status: import("hono/utils/http-status").ContentfulStatusCode;
735
+ };
736
+ };
737
+ } & {
738
+ "/allocations/:id": {
739
+ $get: {
740
+ input: {
741
+ param: {
742
+ id: string;
743
+ };
744
+ };
745
+ output: {
746
+ error: string;
747
+ };
748
+ outputFormat: "json";
749
+ status: 404;
750
+ } | {
751
+ input: {
752
+ param: {
753
+ id: string;
754
+ };
755
+ };
756
+ output: {
757
+ data: {
758
+ id: string;
759
+ poolId: string;
760
+ productId: string;
761
+ availabilityRuleId: string | null;
762
+ startTimeId: string | null;
763
+ quantityRequired: number;
764
+ allocationMode: "shared" | "exclusive";
765
+ priority: number;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ };
769
+ };
770
+ outputFormat: "json";
771
+ status: import("hono/utils/http-status").ContentfulStatusCode;
772
+ };
773
+ };
774
+ } & {
775
+ "/allocations/:id": {
776
+ $patch: {
777
+ input: {
778
+ param: {
779
+ id: string;
780
+ };
781
+ };
782
+ output: {
783
+ error: string;
784
+ };
785
+ outputFormat: "json";
786
+ status: 404;
787
+ } | {
788
+ input: {
789
+ param: {
790
+ id: string;
791
+ };
792
+ };
793
+ output: {
794
+ data: {
795
+ id: string;
796
+ poolId: string;
797
+ productId: string;
798
+ availabilityRuleId: string | null;
799
+ startTimeId: string | null;
800
+ quantityRequired: number;
801
+ allocationMode: "shared" | "exclusive";
802
+ priority: number;
803
+ createdAt: string;
804
+ updatedAt: string;
805
+ };
806
+ };
807
+ outputFormat: "json";
808
+ status: import("hono/utils/http-status").ContentfulStatusCode;
809
+ };
810
+ };
811
+ } & {
812
+ "/allocations/:id": {
813
+ $delete: {
814
+ input: {
815
+ param: {
816
+ id: string;
817
+ };
818
+ };
819
+ output: {
820
+ error: string;
821
+ };
822
+ outputFormat: "json";
823
+ status: 404;
824
+ } | {
825
+ input: {
826
+ param: {
827
+ id: string;
828
+ };
829
+ };
830
+ output: {
831
+ success: true;
832
+ };
833
+ outputFormat: "json";
834
+ status: import("hono/utils/http-status").ContentfulStatusCode;
835
+ };
836
+ };
837
+ } & {
838
+ "/slot-assignments": {
839
+ $get: {
840
+ input: {};
841
+ output: {
842
+ data: {
843
+ id: string;
844
+ slotId: string;
845
+ poolId: string | null;
846
+ resourceId: string | null;
847
+ bookingId: string | null;
848
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
849
+ assignedAt: string;
850
+ assignedBy: string | null;
851
+ releasedAt: string | null;
852
+ notes: string | null;
853
+ }[];
854
+ total: number;
855
+ limit: number;
856
+ offset: number;
857
+ };
858
+ outputFormat: "json";
859
+ status: import("hono/utils/http-status").ContentfulStatusCode;
860
+ };
861
+ };
862
+ } & {
863
+ "/slot-assignments": {
864
+ $post: {
865
+ input: {};
866
+ output: {
867
+ data: {
868
+ id: string;
869
+ notes: string | null;
870
+ poolId: string | null;
871
+ resourceId: string | null;
872
+ slotId: string;
873
+ bookingId: string | null;
874
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
875
+ assignedAt: string;
876
+ assignedBy: string | null;
877
+ releasedAt: string | null;
878
+ } | undefined;
879
+ };
880
+ outputFormat: "json";
881
+ status: 201;
882
+ };
883
+ };
884
+ } & {
885
+ "/slot-assignments/batch-update": {
886
+ $post: {
887
+ input: {};
888
+ output: {
889
+ data: {
890
+ id: string;
891
+ slotId: string;
892
+ poolId: string | null;
893
+ resourceId: string | null;
894
+ bookingId: string | null;
895
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
896
+ assignedAt: string;
897
+ assignedBy: string | null;
898
+ releasedAt: string | null;
899
+ notes: string | null;
900
+ }[];
901
+ total: number;
902
+ succeeded: number;
903
+ failed: {
904
+ id: string;
905
+ error: string;
906
+ }[];
907
+ };
908
+ outputFormat: "json";
909
+ status: import("hono/utils/http-status").ContentfulStatusCode;
910
+ };
911
+ };
912
+ } & {
913
+ "/slot-assignments/batch-delete": {
914
+ $post: {
915
+ input: {};
916
+ output: {
917
+ deletedIds: string[];
918
+ total: number;
919
+ succeeded: number;
920
+ failed: {
921
+ id: string;
922
+ error: string;
923
+ }[];
924
+ };
925
+ outputFormat: "json";
926
+ status: import("hono/utils/http-status").ContentfulStatusCode;
927
+ };
928
+ };
929
+ } & {
930
+ "/slot-assignments/:id": {
931
+ $get: {
932
+ input: {
933
+ param: {
934
+ id: string;
935
+ };
936
+ };
937
+ output: {
938
+ error: string;
939
+ };
940
+ outputFormat: "json";
941
+ status: 404;
942
+ } | {
943
+ input: {
944
+ param: {
945
+ id: string;
946
+ };
947
+ };
948
+ output: {
949
+ data: {
950
+ id: string;
951
+ slotId: string;
952
+ poolId: string | null;
953
+ resourceId: string | null;
954
+ bookingId: string | null;
955
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
956
+ assignedAt: string;
957
+ assignedBy: string | null;
958
+ releasedAt: string | null;
959
+ notes: string | null;
960
+ };
961
+ };
962
+ outputFormat: "json";
963
+ status: import("hono/utils/http-status").ContentfulStatusCode;
964
+ };
965
+ };
966
+ } & {
967
+ "/slot-assignments/:id": {
968
+ $patch: {
969
+ input: {
970
+ param: {
971
+ id: string;
972
+ };
973
+ };
974
+ output: {
975
+ error: string;
976
+ };
977
+ outputFormat: "json";
978
+ status: 404;
979
+ } | {
980
+ input: {
981
+ param: {
982
+ id: string;
983
+ };
984
+ };
985
+ output: {
986
+ data: {
987
+ id: string;
988
+ slotId: string;
989
+ poolId: string | null;
990
+ resourceId: string | null;
991
+ bookingId: string | null;
992
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
993
+ assignedAt: string;
994
+ assignedBy: string | null;
995
+ releasedAt: string | null;
996
+ notes: string | null;
997
+ };
998
+ };
999
+ outputFormat: "json";
1000
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1001
+ };
1002
+ };
1003
+ } & {
1004
+ "/slot-assignments/:id": {
1005
+ $delete: {
1006
+ input: {
1007
+ param: {
1008
+ id: string;
1009
+ };
1010
+ };
1011
+ output: {
1012
+ error: string;
1013
+ };
1014
+ outputFormat: "json";
1015
+ status: 404;
1016
+ } | {
1017
+ input: {
1018
+ param: {
1019
+ id: string;
1020
+ };
1021
+ };
1022
+ output: {
1023
+ success: true;
1024
+ };
1025
+ outputFormat: "json";
1026
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/closeouts": {
1031
+ $get: {
1032
+ input: {};
1033
+ output: {
1034
+ data: {
1035
+ id: string;
1036
+ resourceId: string;
1037
+ dateLocal: string;
1038
+ startsAt: string | null;
1039
+ endsAt: string | null;
1040
+ reason: string | null;
1041
+ createdBy: string | null;
1042
+ createdAt: string;
1043
+ }[];
1044
+ total: number;
1045
+ limit: number;
1046
+ offset: number;
1047
+ };
1048
+ outputFormat: "json";
1049
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1050
+ };
1051
+ };
1052
+ } & {
1053
+ "/closeouts": {
1054
+ $post: {
1055
+ input: {};
1056
+ output: {
1057
+ data: {
1058
+ id: string;
1059
+ createdAt: string;
1060
+ resourceId: string;
1061
+ dateLocal: string;
1062
+ startsAt: string | null;
1063
+ endsAt: string | null;
1064
+ reason: string | null;
1065
+ createdBy: string | null;
1066
+ } | undefined;
1067
+ };
1068
+ outputFormat: "json";
1069
+ status: 201;
1070
+ };
1071
+ };
1072
+ } & {
1073
+ "/closeouts/batch-update": {
1074
+ $post: {
1075
+ input: {};
1076
+ output: {
1077
+ data: {
1078
+ id: string;
1079
+ resourceId: string;
1080
+ dateLocal: string;
1081
+ startsAt: string | null;
1082
+ endsAt: string | null;
1083
+ reason: string | null;
1084
+ createdBy: string | null;
1085
+ createdAt: string;
1086
+ }[];
1087
+ total: number;
1088
+ succeeded: number;
1089
+ failed: {
1090
+ id: string;
1091
+ error: string;
1092
+ }[];
1093
+ };
1094
+ outputFormat: "json";
1095
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1096
+ };
1097
+ };
1098
+ } & {
1099
+ "/closeouts/batch-delete": {
1100
+ $post: {
1101
+ input: {};
1102
+ output: {
1103
+ deletedIds: string[];
1104
+ total: number;
1105
+ succeeded: number;
1106
+ failed: {
1107
+ id: string;
1108
+ error: string;
1109
+ }[];
1110
+ };
1111
+ outputFormat: "json";
1112
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1113
+ };
1114
+ };
1115
+ } & {
1116
+ "/closeouts/:id": {
1117
+ $get: {
1118
+ input: {
1119
+ param: {
1120
+ id: string;
1121
+ };
1122
+ };
1123
+ output: {
1124
+ error: string;
1125
+ };
1126
+ outputFormat: "json";
1127
+ status: 404;
1128
+ } | {
1129
+ input: {
1130
+ param: {
1131
+ id: string;
1132
+ };
1133
+ };
1134
+ output: {
1135
+ data: {
1136
+ id: string;
1137
+ resourceId: string;
1138
+ dateLocal: string;
1139
+ startsAt: string | null;
1140
+ endsAt: string | null;
1141
+ reason: string | null;
1142
+ createdBy: string | null;
1143
+ createdAt: string;
1144
+ };
1145
+ };
1146
+ outputFormat: "json";
1147
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1148
+ };
1149
+ };
1150
+ } & {
1151
+ "/closeouts/:id": {
1152
+ $patch: {
1153
+ input: {
1154
+ param: {
1155
+ id: string;
1156
+ };
1157
+ };
1158
+ output: {
1159
+ error: string;
1160
+ };
1161
+ outputFormat: "json";
1162
+ status: 404;
1163
+ } | {
1164
+ input: {
1165
+ param: {
1166
+ id: string;
1167
+ };
1168
+ };
1169
+ output: {
1170
+ data: {
1171
+ id: string;
1172
+ resourceId: string;
1173
+ dateLocal: string;
1174
+ startsAt: string | null;
1175
+ endsAt: string | null;
1176
+ reason: string | null;
1177
+ createdBy: string | null;
1178
+ createdAt: string;
1179
+ };
1180
+ };
1181
+ outputFormat: "json";
1182
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1183
+ };
1184
+ };
1185
+ } & {
1186
+ "/closeouts/:id": {
1187
+ $delete: {
1188
+ input: {
1189
+ param: {
1190
+ id: string;
1191
+ };
1192
+ };
1193
+ output: {
1194
+ error: string;
1195
+ };
1196
+ outputFormat: "json";
1197
+ status: 404;
1198
+ } | {
1199
+ input: {
1200
+ param: {
1201
+ id: string;
1202
+ };
1203
+ };
1204
+ output: {
1205
+ success: true;
1206
+ };
1207
+ outputFormat: "json";
1208
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1209
+ };
1210
+ };
1211
+ }, "/", "/closeouts/:id">;
1212
+ export type ResourcesRoutes = typeof resourcesRoutes;
1213
+ export {};
1214
+ //# sourceMappingURL=routes.d.ts.map