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