@voyantjs/hospitality 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/routes-accommodation.d.ts +1196 -0
  2. package/dist/routes-accommodation.d.ts.map +1 -0
  3. package/dist/routes-accommodation.js +194 -0
  4. package/dist/routes-inventory.d.ts +981 -0
  5. package/dist/routes-inventory.d.ts.map +1 -0
  6. package/dist/routes-inventory.js +159 -0
  7. package/dist/routes-operations.d.ts +2349 -0
  8. package/dist/routes-operations.d.ts.map +1 -0
  9. package/dist/routes-operations.js +6 -0
  10. package/dist/routes-shared.d.ts +11 -0
  11. package/dist/routes-shared.d.ts.map +1 -0
  12. package/dist/routes-shared.js +3 -0
  13. package/dist/routes-stays.d.ts +1371 -0
  14. package/dist/routes-stays.d.ts.map +1 -0
  15. package/dist/routes-stays.js +211 -0
  16. package/dist/routes.d.ts +520 -527
  17. package/dist/routes.d.ts.map +1 -1
  18. package/dist/routes.js +4 -551
  19. package/dist/schema-bookings.d.ts +1476 -0
  20. package/dist/schema-bookings.d.ts.map +1 -0
  21. package/dist/schema-bookings.js +156 -0
  22. package/dist/schema-inventory.d.ts +1593 -0
  23. package/dist/schema-inventory.d.ts.map +1 -0
  24. package/dist/schema-inventory.js +154 -0
  25. package/dist/schema-operations.d.ts +1076 -0
  26. package/dist/schema-operations.d.ts.map +1 -0
  27. package/dist/schema-operations.js +114 -0
  28. package/dist/schema-pricing.d.ts +1065 -0
  29. package/dist/schema-pricing.d.ts.map +1 -0
  30. package/dist/schema-pricing.js +107 -0
  31. package/dist/schema-relations.d.ts +118 -0
  32. package/dist/schema-relations.d.ts.map +1 -0
  33. package/dist/schema-relations.js +199 -0
  34. package/dist/schema-shared.d.ts +13 -0
  35. package/dist/schema-shared.d.ts.map +1 -0
  36. package/dist/schema-shared.js +73 -0
  37. package/dist/schema.d.ts +6 -5335
  38. package/dist/schema.d.ts.map +1 -1
  39. package/dist/schema.js +6 -779
  40. package/dist/service.d.ts +37 -37
  41. package/dist/validation-accommodation.d.ts +438 -0
  42. package/dist/validation-accommodation.d.ts.map +1 -0
  43. package/dist/validation-accommodation.js +151 -0
  44. package/dist/validation-operations.d.ts +860 -0
  45. package/dist/validation-operations.d.ts.map +1 -0
  46. package/dist/validation-operations.js +293 -0
  47. package/dist/validation-shared.d.ts +94 -0
  48. package/dist/validation-shared.d.ts.map +1 -0
  49. package/dist/validation-shared.js +79 -0
  50. package/dist/validation.d.ts +3 -1377
  51. package/dist/validation.d.ts.map +1 -1
  52. package/dist/validation.js +3 -520
  53. package/package.json +6 -6
@@ -0,0 +1,981 @@
1
+ import type { Env } from "./routes-shared.js";
2
+ export declare const hospitalityInventoryRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/room-inventory": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ propertyId: string;
10
+ roomTypeId: string;
11
+ date: string;
12
+ totalUnits: number;
13
+ availableUnits: number;
14
+ heldUnits: number;
15
+ soldUnits: number;
16
+ outOfOrderUnits: number;
17
+ overbookLimit: number | null;
18
+ stopSell: boolean;
19
+ notes: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }[];
23
+ total: number;
24
+ limit: number;
25
+ offset: number;
26
+ };
27
+ outputFormat: "json";
28
+ status: import("hono/utils/http-status").ContentfulStatusCode;
29
+ };
30
+ };
31
+ } & {
32
+ "/room-inventory": {
33
+ $post: {
34
+ input: {};
35
+ output: {
36
+ data: {
37
+ id: string;
38
+ date: string;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ notes: string | null;
42
+ propertyId: string;
43
+ roomTypeId: string;
44
+ totalUnits: number;
45
+ availableUnits: number;
46
+ heldUnits: number;
47
+ soldUnits: number;
48
+ outOfOrderUnits: number;
49
+ overbookLimit: number | null;
50
+ stopSell: boolean;
51
+ } | null;
52
+ };
53
+ outputFormat: "json";
54
+ status: 201;
55
+ };
56
+ };
57
+ } & {
58
+ "/room-inventory/:id": {
59
+ $get: {
60
+ input: {
61
+ param: {
62
+ id: string;
63
+ };
64
+ };
65
+ output: {
66
+ readonly error: `${string} not found`;
67
+ };
68
+ outputFormat: "json";
69
+ status: 404;
70
+ } | {
71
+ input: {
72
+ param: {
73
+ id: string;
74
+ };
75
+ };
76
+ output: {
77
+ data: {
78
+ id: string;
79
+ propertyId: string;
80
+ roomTypeId: string;
81
+ date: string;
82
+ totalUnits: number;
83
+ availableUnits: number;
84
+ heldUnits: number;
85
+ soldUnits: number;
86
+ outOfOrderUnits: number;
87
+ overbookLimit: number | null;
88
+ stopSell: boolean;
89
+ notes: string | null;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ };
93
+ };
94
+ outputFormat: "json";
95
+ status: import("hono/utils/http-status").ContentfulStatusCode;
96
+ };
97
+ };
98
+ } & {
99
+ "/room-inventory/:id": {
100
+ $patch: {
101
+ input: {
102
+ param: {
103
+ id: string;
104
+ };
105
+ };
106
+ output: {
107
+ readonly error: `${string} not found`;
108
+ };
109
+ outputFormat: "json";
110
+ status: 404;
111
+ } | {
112
+ input: {
113
+ param: {
114
+ id: string;
115
+ };
116
+ };
117
+ output: {
118
+ data: {
119
+ id: string;
120
+ propertyId: string;
121
+ roomTypeId: string;
122
+ date: string;
123
+ totalUnits: number;
124
+ availableUnits: number;
125
+ heldUnits: number;
126
+ soldUnits: number;
127
+ outOfOrderUnits: number;
128
+ overbookLimit: number | null;
129
+ stopSell: boolean;
130
+ notes: string | null;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ };
134
+ };
135
+ outputFormat: "json";
136
+ status: import("hono/utils/http-status").ContentfulStatusCode;
137
+ };
138
+ };
139
+ } & {
140
+ "/room-inventory/:id": {
141
+ $delete: {
142
+ input: {
143
+ param: {
144
+ id: string;
145
+ };
146
+ };
147
+ output: {
148
+ readonly error: `${string} not found`;
149
+ };
150
+ outputFormat: "json";
151
+ status: 404;
152
+ } | {
153
+ input: {
154
+ param: {
155
+ id: string;
156
+ };
157
+ };
158
+ output: {
159
+ success: true;
160
+ };
161
+ outputFormat: "json";
162
+ status: import("hono/utils/http-status").ContentfulStatusCode;
163
+ };
164
+ };
165
+ } & {
166
+ "/rate-plan-inventory-overrides": {
167
+ $get: {
168
+ input: {};
169
+ output: {
170
+ data: {
171
+ id: string;
172
+ ratePlanId: string;
173
+ roomTypeId: string;
174
+ date: string;
175
+ stopSell: boolean;
176
+ closedToArrival: boolean;
177
+ closedToDeparture: boolean;
178
+ minNightsOverride: number | null;
179
+ maxNightsOverride: number | null;
180
+ notes: string | null;
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ }[];
184
+ total: number;
185
+ limit: number;
186
+ offset: number;
187
+ };
188
+ outputFormat: "json";
189
+ status: import("hono/utils/http-status").ContentfulStatusCode;
190
+ };
191
+ };
192
+ } & {
193
+ "/rate-plan-inventory-overrides": {
194
+ $post: {
195
+ input: {};
196
+ output: {
197
+ data: {
198
+ id: string;
199
+ date: string;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ notes: string | null;
203
+ roomTypeId: string;
204
+ ratePlanId: string;
205
+ closedToArrival: boolean;
206
+ closedToDeparture: boolean;
207
+ stopSell: boolean;
208
+ minNightsOverride: number | null;
209
+ maxNightsOverride: number | null;
210
+ } | null;
211
+ };
212
+ outputFormat: "json";
213
+ status: 201;
214
+ };
215
+ };
216
+ } & {
217
+ "/rate-plan-inventory-overrides/:id": {
218
+ $get: {
219
+ input: {
220
+ param: {
221
+ id: string;
222
+ };
223
+ };
224
+ output: {
225
+ readonly error: `${string} not found`;
226
+ };
227
+ outputFormat: "json";
228
+ status: 404;
229
+ } | {
230
+ input: {
231
+ param: {
232
+ id: string;
233
+ };
234
+ };
235
+ output: {
236
+ data: {
237
+ id: string;
238
+ ratePlanId: string;
239
+ roomTypeId: string;
240
+ date: string;
241
+ stopSell: boolean;
242
+ closedToArrival: boolean;
243
+ closedToDeparture: boolean;
244
+ minNightsOverride: number | null;
245
+ maxNightsOverride: number | null;
246
+ notes: string | null;
247
+ createdAt: string;
248
+ updatedAt: string;
249
+ };
250
+ };
251
+ outputFormat: "json";
252
+ status: import("hono/utils/http-status").ContentfulStatusCode;
253
+ };
254
+ };
255
+ } & {
256
+ "/rate-plan-inventory-overrides/:id": {
257
+ $patch: {
258
+ input: {
259
+ param: {
260
+ id: string;
261
+ };
262
+ };
263
+ output: {
264
+ readonly error: `${string} not found`;
265
+ };
266
+ outputFormat: "json";
267
+ status: 404;
268
+ } | {
269
+ input: {
270
+ param: {
271
+ id: string;
272
+ };
273
+ };
274
+ output: {
275
+ data: {
276
+ id: string;
277
+ ratePlanId: string;
278
+ roomTypeId: string;
279
+ date: string;
280
+ stopSell: boolean;
281
+ closedToArrival: boolean;
282
+ closedToDeparture: boolean;
283
+ minNightsOverride: number | null;
284
+ maxNightsOverride: number | null;
285
+ notes: string | null;
286
+ createdAt: string;
287
+ updatedAt: string;
288
+ };
289
+ };
290
+ outputFormat: "json";
291
+ status: import("hono/utils/http-status").ContentfulStatusCode;
292
+ };
293
+ };
294
+ } & {
295
+ "/rate-plan-inventory-overrides/:id": {
296
+ $delete: {
297
+ input: {
298
+ param: {
299
+ id: string;
300
+ };
301
+ };
302
+ output: {
303
+ readonly error: `${string} not found`;
304
+ };
305
+ outputFormat: "json";
306
+ status: 404;
307
+ } | {
308
+ input: {
309
+ param: {
310
+ id: string;
311
+ };
312
+ };
313
+ output: {
314
+ success: true;
315
+ };
316
+ outputFormat: "json";
317
+ status: import("hono/utils/http-status").ContentfulStatusCode;
318
+ };
319
+ };
320
+ } & {
321
+ "/room-blocks": {
322
+ $get: {
323
+ input: {};
324
+ output: {
325
+ data: {
326
+ id: string;
327
+ propertyId: string;
328
+ roomTypeId: string | null;
329
+ roomUnitId: string | null;
330
+ startsOn: string;
331
+ endsOn: string;
332
+ status: "draft" | "confirmed" | "cancelled" | "held" | "released";
333
+ blockReason: string | null;
334
+ quantity: number;
335
+ releaseAt: string | null;
336
+ notes: string | null;
337
+ metadata: {
338
+ [x: string]: import("hono/utils/types").JSONValue;
339
+ } | null;
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ }[];
343
+ total: number;
344
+ limit: number;
345
+ offset: number;
346
+ };
347
+ outputFormat: "json";
348
+ status: import("hono/utils/http-status").ContentfulStatusCode;
349
+ };
350
+ };
351
+ } & {
352
+ "/room-blocks": {
353
+ $post: {
354
+ input: {};
355
+ output: {
356
+ data: {
357
+ id: string;
358
+ status: "draft" | "confirmed" | "cancelled" | "held" | "released";
359
+ createdAt: string;
360
+ updatedAt: string;
361
+ notes: string | null;
362
+ metadata: {
363
+ [x: string]: import("hono/utils/types").JSONValue;
364
+ } | null;
365
+ quantity: number;
366
+ propertyId: string;
367
+ roomTypeId: string | null;
368
+ roomUnitId: string | null;
369
+ startsOn: string;
370
+ endsOn: string;
371
+ blockReason: string | null;
372
+ releaseAt: string | null;
373
+ } | null;
374
+ };
375
+ outputFormat: "json";
376
+ status: 201;
377
+ };
378
+ };
379
+ } & {
380
+ "/room-blocks/:id": {
381
+ $get: {
382
+ input: {
383
+ param: {
384
+ id: string;
385
+ };
386
+ };
387
+ output: {
388
+ readonly error: `${string} not found`;
389
+ };
390
+ outputFormat: "json";
391
+ status: 404;
392
+ } | {
393
+ input: {
394
+ param: {
395
+ id: string;
396
+ };
397
+ };
398
+ output: {
399
+ data: {
400
+ id: string;
401
+ propertyId: string;
402
+ roomTypeId: string | null;
403
+ roomUnitId: string | null;
404
+ startsOn: string;
405
+ endsOn: string;
406
+ status: "draft" | "confirmed" | "cancelled" | "held" | "released";
407
+ blockReason: string | null;
408
+ quantity: number;
409
+ releaseAt: string | null;
410
+ notes: string | null;
411
+ metadata: {
412
+ [x: string]: import("hono/utils/types").JSONValue;
413
+ } | null;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ };
417
+ };
418
+ outputFormat: "json";
419
+ status: import("hono/utils/http-status").ContentfulStatusCode;
420
+ };
421
+ };
422
+ } & {
423
+ "/room-blocks/:id": {
424
+ $patch: {
425
+ input: {
426
+ param: {
427
+ id: string;
428
+ };
429
+ };
430
+ output: {
431
+ readonly error: `${string} not found`;
432
+ };
433
+ outputFormat: "json";
434
+ status: 404;
435
+ } | {
436
+ input: {
437
+ param: {
438
+ id: string;
439
+ };
440
+ };
441
+ output: {
442
+ data: {
443
+ id: string;
444
+ propertyId: string;
445
+ roomTypeId: string | null;
446
+ roomUnitId: string | null;
447
+ startsOn: string;
448
+ endsOn: string;
449
+ status: "draft" | "confirmed" | "cancelled" | "held" | "released";
450
+ blockReason: string | null;
451
+ quantity: number;
452
+ releaseAt: string | null;
453
+ notes: string | null;
454
+ metadata: {
455
+ [x: string]: import("hono/utils/types").JSONValue;
456
+ } | null;
457
+ createdAt: string;
458
+ updatedAt: string;
459
+ };
460
+ };
461
+ outputFormat: "json";
462
+ status: import("hono/utils/http-status").ContentfulStatusCode;
463
+ };
464
+ };
465
+ } & {
466
+ "/room-blocks/:id": {
467
+ $delete: {
468
+ input: {
469
+ param: {
470
+ id: string;
471
+ };
472
+ };
473
+ output: {
474
+ readonly error: `${string} not found`;
475
+ };
476
+ outputFormat: "json";
477
+ status: 404;
478
+ } | {
479
+ input: {
480
+ param: {
481
+ id: string;
482
+ };
483
+ };
484
+ output: {
485
+ success: true;
486
+ };
487
+ outputFormat: "json";
488
+ status: import("hono/utils/http-status").ContentfulStatusCode;
489
+ };
490
+ };
491
+ } & {
492
+ "/room-unit-status-events": {
493
+ $get: {
494
+ input: {};
495
+ output: {
496
+ data: {
497
+ id: string;
498
+ roomUnitId: string;
499
+ statusCode: string;
500
+ housekeepingStatus: string | null;
501
+ effectiveFrom: string;
502
+ effectiveTo: string | null;
503
+ notes: string | null;
504
+ metadata: {
505
+ [x: string]: import("hono/utils/types").JSONValue;
506
+ } | null;
507
+ createdAt: string;
508
+ }[];
509
+ total: number;
510
+ limit: number;
511
+ offset: number;
512
+ };
513
+ outputFormat: "json";
514
+ status: import("hono/utils/http-status").ContentfulStatusCode;
515
+ };
516
+ };
517
+ } & {
518
+ "/room-unit-status-events": {
519
+ $post: {
520
+ input: {};
521
+ output: {
522
+ data: {
523
+ id: string;
524
+ createdAt: string;
525
+ notes: string | null;
526
+ metadata: {
527
+ [x: string]: import("hono/utils/types").JSONValue;
528
+ } | null;
529
+ roomUnitId: string;
530
+ statusCode: string;
531
+ housekeepingStatus: string | null;
532
+ effectiveFrom: string;
533
+ effectiveTo: string | null;
534
+ } | null;
535
+ };
536
+ outputFormat: "json";
537
+ status: 201;
538
+ };
539
+ };
540
+ } & {
541
+ "/room-unit-status-events/:id": {
542
+ $get: {
543
+ input: {
544
+ param: {
545
+ id: string;
546
+ };
547
+ };
548
+ output: {
549
+ readonly error: `${string} not found`;
550
+ };
551
+ outputFormat: "json";
552
+ status: 404;
553
+ } | {
554
+ input: {
555
+ param: {
556
+ id: string;
557
+ };
558
+ };
559
+ output: {
560
+ data: {
561
+ id: string;
562
+ roomUnitId: string;
563
+ statusCode: string;
564
+ housekeepingStatus: string | null;
565
+ effectiveFrom: string;
566
+ effectiveTo: string | null;
567
+ notes: string | null;
568
+ metadata: {
569
+ [x: string]: import("hono/utils/types").JSONValue;
570
+ } | null;
571
+ createdAt: string;
572
+ };
573
+ };
574
+ outputFormat: "json";
575
+ status: import("hono/utils/http-status").ContentfulStatusCode;
576
+ };
577
+ };
578
+ } & {
579
+ "/room-unit-status-events/:id": {
580
+ $patch: {
581
+ input: {
582
+ param: {
583
+ id: string;
584
+ };
585
+ };
586
+ output: {
587
+ readonly error: `${string} not found`;
588
+ };
589
+ outputFormat: "json";
590
+ status: 404;
591
+ } | {
592
+ input: {
593
+ param: {
594
+ id: string;
595
+ };
596
+ };
597
+ output: {
598
+ data: {
599
+ id: string;
600
+ roomUnitId: string;
601
+ statusCode: string;
602
+ housekeepingStatus: string | null;
603
+ effectiveFrom: string;
604
+ effectiveTo: string | null;
605
+ notes: string | null;
606
+ metadata: {
607
+ [x: string]: import("hono/utils/types").JSONValue;
608
+ } | null;
609
+ createdAt: string;
610
+ };
611
+ };
612
+ outputFormat: "json";
613
+ status: import("hono/utils/http-status").ContentfulStatusCode;
614
+ };
615
+ };
616
+ } & {
617
+ "/room-unit-status-events/:id": {
618
+ $delete: {
619
+ input: {
620
+ param: {
621
+ id: string;
622
+ };
623
+ };
624
+ output: {
625
+ readonly error: `${string} not found`;
626
+ };
627
+ outputFormat: "json";
628
+ status: 404;
629
+ } | {
630
+ input: {
631
+ param: {
632
+ id: string;
633
+ };
634
+ };
635
+ output: {
636
+ success: true;
637
+ };
638
+ outputFormat: "json";
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
+ };
641
+ };
642
+ } & {
643
+ "/maintenance-blocks": {
644
+ $get: {
645
+ input: {};
646
+ output: {
647
+ data: {
648
+ id: string;
649
+ propertyId: string;
650
+ roomTypeId: string | null;
651
+ roomUnitId: string | null;
652
+ startsOn: string;
653
+ endsOn: string;
654
+ status: "in_progress" | "cancelled" | "open" | "resolved";
655
+ reason: string | null;
656
+ notes: string | null;
657
+ metadata: {
658
+ [x: string]: import("hono/utils/types").JSONValue;
659
+ } | null;
660
+ createdAt: string;
661
+ updatedAt: string;
662
+ }[];
663
+ total: number;
664
+ limit: number;
665
+ offset: number;
666
+ };
667
+ outputFormat: "json";
668
+ status: import("hono/utils/http-status").ContentfulStatusCode;
669
+ };
670
+ };
671
+ } & {
672
+ "/maintenance-blocks": {
673
+ $post: {
674
+ input: {};
675
+ output: {
676
+ data: {
677
+ id: string;
678
+ status: "in_progress" | "cancelled" | "open" | "resolved";
679
+ createdAt: string;
680
+ updatedAt: string;
681
+ notes: string | null;
682
+ reason: string | null;
683
+ metadata: {
684
+ [x: string]: import("hono/utils/types").JSONValue;
685
+ } | null;
686
+ propertyId: string;
687
+ roomTypeId: string | null;
688
+ roomUnitId: string | null;
689
+ startsOn: string;
690
+ endsOn: string;
691
+ } | null;
692
+ };
693
+ outputFormat: "json";
694
+ status: 201;
695
+ };
696
+ };
697
+ } & {
698
+ "/maintenance-blocks/:id": {
699
+ $get: {
700
+ input: {
701
+ param: {
702
+ id: string;
703
+ };
704
+ };
705
+ output: {
706
+ readonly error: `${string} not found`;
707
+ };
708
+ outputFormat: "json";
709
+ status: 404;
710
+ } | {
711
+ input: {
712
+ param: {
713
+ id: string;
714
+ };
715
+ };
716
+ output: {
717
+ data: {
718
+ id: string;
719
+ propertyId: string;
720
+ roomTypeId: string | null;
721
+ roomUnitId: string | null;
722
+ startsOn: string;
723
+ endsOn: string;
724
+ status: "in_progress" | "cancelled" | "open" | "resolved";
725
+ reason: string | null;
726
+ notes: string | null;
727
+ metadata: {
728
+ [x: string]: import("hono/utils/types").JSONValue;
729
+ } | null;
730
+ createdAt: string;
731
+ updatedAt: string;
732
+ };
733
+ };
734
+ outputFormat: "json";
735
+ status: import("hono/utils/http-status").ContentfulStatusCode;
736
+ };
737
+ };
738
+ } & {
739
+ "/maintenance-blocks/:id": {
740
+ $patch: {
741
+ input: {
742
+ param: {
743
+ id: string;
744
+ };
745
+ };
746
+ output: {
747
+ readonly error: `${string} not found`;
748
+ };
749
+ outputFormat: "json";
750
+ status: 404;
751
+ } | {
752
+ input: {
753
+ param: {
754
+ id: string;
755
+ };
756
+ };
757
+ output: {
758
+ data: {
759
+ id: string;
760
+ propertyId: string;
761
+ roomTypeId: string | null;
762
+ roomUnitId: string | null;
763
+ startsOn: string;
764
+ endsOn: string;
765
+ status: "in_progress" | "cancelled" | "open" | "resolved";
766
+ reason: string | null;
767
+ notes: string | null;
768
+ metadata: {
769
+ [x: string]: import("hono/utils/types").JSONValue;
770
+ } | null;
771
+ createdAt: string;
772
+ updatedAt: string;
773
+ };
774
+ };
775
+ outputFormat: "json";
776
+ status: import("hono/utils/http-status").ContentfulStatusCode;
777
+ };
778
+ };
779
+ } & {
780
+ "/maintenance-blocks/:id": {
781
+ $delete: {
782
+ input: {
783
+ param: {
784
+ id: string;
785
+ };
786
+ };
787
+ output: {
788
+ readonly error: `${string} not found`;
789
+ };
790
+ outputFormat: "json";
791
+ status: 404;
792
+ } | {
793
+ input: {
794
+ param: {
795
+ id: string;
796
+ };
797
+ };
798
+ output: {
799
+ success: true;
800
+ };
801
+ outputFormat: "json";
802
+ status: import("hono/utils/http-status").ContentfulStatusCode;
803
+ };
804
+ };
805
+ } & {
806
+ "/housekeeping-tasks": {
807
+ $get: {
808
+ input: {};
809
+ output: {
810
+ data: {
811
+ id: string;
812
+ propertyId: string;
813
+ roomUnitId: string;
814
+ stayBookingItemId: string | null;
815
+ taskType: string;
816
+ status: "in_progress" | "completed" | "cancelled" | "open";
817
+ priority: number;
818
+ dueAt: string | null;
819
+ startedAt: string | null;
820
+ completedAt: string | null;
821
+ assignedTo: string | null;
822
+ notes: string | null;
823
+ metadata: {
824
+ [x: string]: import("hono/utils/types").JSONValue;
825
+ } | null;
826
+ createdAt: string;
827
+ updatedAt: string;
828
+ }[];
829
+ total: number;
830
+ limit: number;
831
+ offset: number;
832
+ };
833
+ outputFormat: "json";
834
+ status: import("hono/utils/http-status").ContentfulStatusCode;
835
+ };
836
+ };
837
+ } & {
838
+ "/housekeeping-tasks": {
839
+ $post: {
840
+ input: {};
841
+ output: {
842
+ data: {
843
+ id: string;
844
+ status: "in_progress" | "completed" | "cancelled" | "open";
845
+ completedAt: string | null;
846
+ createdAt: string;
847
+ updatedAt: string;
848
+ notes: string | null;
849
+ metadata: {
850
+ [x: string]: import("hono/utils/types").JSONValue;
851
+ } | null;
852
+ propertyId: string;
853
+ roomUnitId: string;
854
+ stayBookingItemId: string | null;
855
+ taskType: string;
856
+ priority: number;
857
+ dueAt: string | null;
858
+ startedAt: string | null;
859
+ assignedTo: string | null;
860
+ } | null;
861
+ };
862
+ outputFormat: "json";
863
+ status: 201;
864
+ };
865
+ };
866
+ } & {
867
+ "/housekeeping-tasks/:id": {
868
+ $get: {
869
+ input: {
870
+ param: {
871
+ id: string;
872
+ };
873
+ };
874
+ output: {
875
+ readonly error: `${string} not found`;
876
+ };
877
+ outputFormat: "json";
878
+ status: 404;
879
+ } | {
880
+ input: {
881
+ param: {
882
+ id: string;
883
+ };
884
+ };
885
+ output: {
886
+ data: {
887
+ id: string;
888
+ propertyId: string;
889
+ roomUnitId: string;
890
+ stayBookingItemId: string | null;
891
+ taskType: string;
892
+ status: "in_progress" | "completed" | "cancelled" | "open";
893
+ priority: number;
894
+ dueAt: string | null;
895
+ startedAt: string | null;
896
+ completedAt: string | null;
897
+ assignedTo: string | null;
898
+ notes: string | null;
899
+ metadata: {
900
+ [x: string]: import("hono/utils/types").JSONValue;
901
+ } | null;
902
+ createdAt: string;
903
+ updatedAt: string;
904
+ };
905
+ };
906
+ outputFormat: "json";
907
+ status: import("hono/utils/http-status").ContentfulStatusCode;
908
+ };
909
+ };
910
+ } & {
911
+ "/housekeeping-tasks/:id": {
912
+ $patch: {
913
+ input: {
914
+ param: {
915
+ id: string;
916
+ };
917
+ };
918
+ output: {
919
+ readonly error: `${string} not found`;
920
+ };
921
+ outputFormat: "json";
922
+ status: 404;
923
+ } | {
924
+ input: {
925
+ param: {
926
+ id: string;
927
+ };
928
+ };
929
+ output: {
930
+ data: {
931
+ id: string;
932
+ propertyId: string;
933
+ roomUnitId: string;
934
+ stayBookingItemId: string | null;
935
+ taskType: string;
936
+ status: "in_progress" | "completed" | "cancelled" | "open";
937
+ priority: number;
938
+ dueAt: string | null;
939
+ startedAt: string | null;
940
+ completedAt: string | null;
941
+ assignedTo: string | null;
942
+ notes: string | null;
943
+ metadata: {
944
+ [x: string]: import("hono/utils/types").JSONValue;
945
+ } | null;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ };
949
+ };
950
+ outputFormat: "json";
951
+ status: import("hono/utils/http-status").ContentfulStatusCode;
952
+ };
953
+ };
954
+ } & {
955
+ "/housekeeping-tasks/:id": {
956
+ $delete: {
957
+ input: {
958
+ param: {
959
+ id: string;
960
+ };
961
+ };
962
+ output: {
963
+ readonly error: `${string} not found`;
964
+ };
965
+ outputFormat: "json";
966
+ status: 404;
967
+ } | {
968
+ input: {
969
+ param: {
970
+ id: string;
971
+ };
972
+ };
973
+ output: {
974
+ success: true;
975
+ };
976
+ outputFormat: "json";
977
+ status: import("hono/utils/http-status").ContentfulStatusCode;
978
+ };
979
+ };
980
+ }, "/", "/housekeeping-tasks/:id">;
981
+ //# sourceMappingURL=routes-inventory.d.ts.map