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