@voyantjs/distribution 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,3756 @@
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 distributionRoutes: import("hono/hono-base").HonoBase<Env, {
9
+ "/channels": {
10
+ $get: {
11
+ input: {};
12
+ output: {
13
+ data: {
14
+ id: string;
15
+ name: string;
16
+ description: string | null;
17
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
18
+ status: "active" | "archived" | "inactive" | "pending";
19
+ metadata: {
20
+ [x: string]: import("hono/utils/types").JSONValue;
21
+ } | null;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ website: string | null;
25
+ contactName: string | null;
26
+ contactEmail: string | null;
27
+ }[];
28
+ total: number;
29
+ limit: number;
30
+ offset: number;
31
+ };
32
+ outputFormat: "json";
33
+ status: import("hono/utils/http-status").ContentfulStatusCode;
34
+ };
35
+ };
36
+ } & {
37
+ "/channels": {
38
+ $post: {
39
+ input: {};
40
+ output: {
41
+ data: {
42
+ id: string;
43
+ name: string;
44
+ description: string | null;
45
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
46
+ status: "active" | "archived" | "inactive" | "pending";
47
+ metadata: {
48
+ [x: string]: import("hono/utils/types").JSONValue;
49
+ } | null;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ website: string | null;
53
+ contactName: string | null;
54
+ contactEmail: string | null;
55
+ } | null;
56
+ };
57
+ outputFormat: "json";
58
+ status: 201;
59
+ };
60
+ };
61
+ } & {
62
+ "/channels/batch-update": {
63
+ $post: {
64
+ input: {};
65
+ output: {
66
+ data: {
67
+ id: string;
68
+ name: string;
69
+ description: string | null;
70
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
71
+ status: "active" | "archived" | "inactive" | "pending";
72
+ metadata: {
73
+ [x: string]: import("hono/utils/types").JSONValue;
74
+ } | null;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ website: string | null;
78
+ contactName: string | null;
79
+ contactEmail: string | null;
80
+ }[];
81
+ total: number;
82
+ succeeded: number;
83
+ failed: {
84
+ id: string;
85
+ error: string;
86
+ }[];
87
+ };
88
+ outputFormat: "json";
89
+ status: import("hono/utils/http-status").ContentfulStatusCode;
90
+ };
91
+ };
92
+ } & {
93
+ "/channels/batch-delete": {
94
+ $post: {
95
+ input: {};
96
+ output: {
97
+ deletedIds: string[];
98
+ total: number;
99
+ succeeded: number;
100
+ failed: {
101
+ id: string;
102
+ error: string;
103
+ }[];
104
+ };
105
+ outputFormat: "json";
106
+ status: import("hono/utils/http-status").ContentfulStatusCode;
107
+ };
108
+ };
109
+ } & {
110
+ "/channels/:id": {
111
+ $get: {
112
+ input: {
113
+ param: {
114
+ id: string;
115
+ };
116
+ };
117
+ output: {
118
+ error: string;
119
+ };
120
+ outputFormat: "json";
121
+ status: 404;
122
+ } | {
123
+ input: {
124
+ param: {
125
+ id: string;
126
+ };
127
+ };
128
+ output: {
129
+ data: {
130
+ id: string;
131
+ name: string;
132
+ description: string | null;
133
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
134
+ status: "active" | "archived" | "inactive" | "pending";
135
+ metadata: {
136
+ [x: string]: import("hono/utils/types").JSONValue;
137
+ } | null;
138
+ createdAt: string;
139
+ updatedAt: string;
140
+ website: string | null;
141
+ contactName: string | null;
142
+ contactEmail: string | null;
143
+ };
144
+ };
145
+ outputFormat: "json";
146
+ status: import("hono/utils/http-status").ContentfulStatusCode;
147
+ };
148
+ };
149
+ } & {
150
+ "/channels/:id": {
151
+ $patch: {
152
+ input: {
153
+ param: {
154
+ id: string;
155
+ };
156
+ };
157
+ output: {
158
+ error: string;
159
+ };
160
+ outputFormat: "json";
161
+ status: 404;
162
+ } | {
163
+ input: {
164
+ param: {
165
+ id: string;
166
+ };
167
+ };
168
+ output: {
169
+ data: {
170
+ id: string;
171
+ name: string;
172
+ description: string | null;
173
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner";
174
+ status: "active" | "archived" | "inactive" | "pending";
175
+ metadata: {
176
+ [x: string]: import("hono/utils/types").JSONValue;
177
+ } | null;
178
+ createdAt: string;
179
+ updatedAt: string;
180
+ website: string | null;
181
+ contactName: string | null;
182
+ contactEmail: string | null;
183
+ };
184
+ };
185
+ outputFormat: "json";
186
+ status: import("hono/utils/http-status").ContentfulStatusCode;
187
+ };
188
+ };
189
+ } & {
190
+ "/channels/:id": {
191
+ $delete: {
192
+ input: {
193
+ param: {
194
+ id: string;
195
+ };
196
+ };
197
+ output: {
198
+ error: string;
199
+ };
200
+ outputFormat: "json";
201
+ status: 404;
202
+ } | {
203
+ input: {
204
+ param: {
205
+ id: string;
206
+ };
207
+ };
208
+ output: {
209
+ success: true;
210
+ };
211
+ outputFormat: "json";
212
+ status: import("hono/utils/http-status").ContentfulStatusCode;
213
+ };
214
+ };
215
+ } & {
216
+ "/channels/:id/contact-points": {
217
+ $get: {
218
+ input: {
219
+ param: {
220
+ id: string;
221
+ };
222
+ };
223
+ output: {
224
+ error: string;
225
+ };
226
+ outputFormat: "json";
227
+ status: 404;
228
+ } | {
229
+ input: {
230
+ param: {
231
+ id: string;
232
+ };
233
+ };
234
+ output: {
235
+ data: {
236
+ id: string;
237
+ entityType: string;
238
+ entityId: string;
239
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
240
+ label: string | null;
241
+ value: string;
242
+ normalizedValue: string | null;
243
+ isPrimary: boolean;
244
+ notes: string | null;
245
+ metadata: {
246
+ [x: string]: import("hono/utils/types").JSONValue;
247
+ } | null;
248
+ createdAt: string;
249
+ updatedAt: string;
250
+ }[];
251
+ };
252
+ outputFormat: "json";
253
+ status: import("hono/utils/http-status").ContentfulStatusCode;
254
+ };
255
+ };
256
+ } & {
257
+ "/channels/:id/contact-points": {
258
+ $post: {
259
+ input: {
260
+ param: {
261
+ id: string;
262
+ };
263
+ };
264
+ output: {
265
+ error: string;
266
+ };
267
+ outputFormat: "json";
268
+ status: 404;
269
+ } | {
270
+ input: {
271
+ param: {
272
+ id: string;
273
+ };
274
+ };
275
+ output: {
276
+ data: {
277
+ value: string;
278
+ createdAt: string;
279
+ updatedAt: string;
280
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
281
+ entityType: string;
282
+ entityId: string;
283
+ label: string | null;
284
+ normalizedValue: string | null;
285
+ isPrimary: boolean;
286
+ notes: string | null;
287
+ metadata: {
288
+ [x: string]: import("hono/utils/types").JSONValue;
289
+ } | null;
290
+ id: string;
291
+ };
292
+ };
293
+ outputFormat: "json";
294
+ status: 201;
295
+ };
296
+ };
297
+ } & {
298
+ "/channel-contact-points/:contactPointId": {
299
+ $patch: {
300
+ input: {
301
+ param: {
302
+ contactPointId: string;
303
+ };
304
+ };
305
+ output: {
306
+ error: string;
307
+ };
308
+ outputFormat: "json";
309
+ status: 404;
310
+ } | {
311
+ input: {
312
+ param: {
313
+ contactPointId: string;
314
+ };
315
+ };
316
+ output: {
317
+ data: {
318
+ id: string;
319
+ entityType: string;
320
+ entityId: string;
321
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
322
+ label: string | null;
323
+ value: string;
324
+ normalizedValue: string | null;
325
+ isPrimary: boolean;
326
+ notes: string | null;
327
+ metadata: {
328
+ [x: string]: import("hono/utils/types").JSONValue;
329
+ } | null;
330
+ createdAt: string;
331
+ updatedAt: string;
332
+ };
333
+ };
334
+ outputFormat: "json";
335
+ status: import("hono/utils/http-status").ContentfulStatusCode;
336
+ };
337
+ };
338
+ } & {
339
+ "/channel-contact-points/:contactPointId": {
340
+ $delete: {
341
+ input: {
342
+ param: {
343
+ contactPointId: string;
344
+ };
345
+ };
346
+ output: {
347
+ error: string;
348
+ };
349
+ outputFormat: "json";
350
+ status: 404;
351
+ } | {
352
+ input: {
353
+ param: {
354
+ contactPointId: string;
355
+ };
356
+ };
357
+ output: {
358
+ success: true;
359
+ };
360
+ outputFormat: "json";
361
+ status: import("hono/utils/http-status").ContentfulStatusCode;
362
+ };
363
+ };
364
+ } & {
365
+ "/channels/:id/contacts": {
366
+ $get: {
367
+ input: {
368
+ param: {
369
+ id: string;
370
+ };
371
+ };
372
+ output: {
373
+ error: string;
374
+ };
375
+ outputFormat: "json";
376
+ status: 404;
377
+ } | {
378
+ input: {
379
+ param: {
380
+ id: string;
381
+ };
382
+ };
383
+ output: {
384
+ data: {
385
+ id: string;
386
+ entityType: string;
387
+ entityId: string;
388
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
389
+ name: string;
390
+ title: string | null;
391
+ email: string | null;
392
+ phone: string | null;
393
+ isPrimary: boolean;
394
+ notes: string | null;
395
+ metadata: {
396
+ [x: string]: import("hono/utils/types").JSONValue;
397
+ } | null;
398
+ createdAt: string;
399
+ updatedAt: string;
400
+ }[];
401
+ };
402
+ outputFormat: "json";
403
+ status: import("hono/utils/http-status").ContentfulStatusCode;
404
+ };
405
+ };
406
+ } & {
407
+ "/channels/:id/contacts": {
408
+ $post: {
409
+ input: {
410
+ param: {
411
+ id: string;
412
+ };
413
+ };
414
+ output: {
415
+ error: string;
416
+ };
417
+ outputFormat: "json";
418
+ status: 404;
419
+ } | {
420
+ input: {
421
+ param: {
422
+ id: string;
423
+ };
424
+ };
425
+ output: {
426
+ data: {
427
+ name: string;
428
+ createdAt: string;
429
+ updatedAt: string;
430
+ email: string | null;
431
+ phone: string | null;
432
+ entityType: string;
433
+ entityId: string;
434
+ isPrimary: boolean;
435
+ notes: string | null;
436
+ metadata: {
437
+ [x: string]: import("hono/utils/types").JSONValue;
438
+ } | null;
439
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
440
+ title: string | null;
441
+ id: string;
442
+ };
443
+ };
444
+ outputFormat: "json";
445
+ status: 201;
446
+ };
447
+ };
448
+ } & {
449
+ "/channel-contacts/:contactId": {
450
+ $patch: {
451
+ input: {
452
+ param: {
453
+ contactId: string;
454
+ };
455
+ };
456
+ output: {
457
+ error: string;
458
+ };
459
+ outputFormat: "json";
460
+ status: 404;
461
+ } | {
462
+ input: {
463
+ param: {
464
+ contactId: string;
465
+ };
466
+ };
467
+ output: {
468
+ data: {
469
+ id: string;
470
+ entityType: string;
471
+ entityId: string;
472
+ role: "primary" | "other" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
473
+ name: string;
474
+ title: string | null;
475
+ email: string | null;
476
+ phone: string | null;
477
+ isPrimary: boolean;
478
+ notes: string | null;
479
+ metadata: {
480
+ [x: string]: import("hono/utils/types").JSONValue;
481
+ } | null;
482
+ createdAt: string;
483
+ updatedAt: string;
484
+ };
485
+ };
486
+ outputFormat: "json";
487
+ status: import("hono/utils/http-status").ContentfulStatusCode;
488
+ };
489
+ };
490
+ } & {
491
+ "/channel-contacts/:contactId": {
492
+ $delete: {
493
+ input: {
494
+ param: {
495
+ contactId: string;
496
+ };
497
+ };
498
+ output: {
499
+ error: string;
500
+ };
501
+ outputFormat: "json";
502
+ status: 404;
503
+ } | {
504
+ input: {
505
+ param: {
506
+ contactId: string;
507
+ };
508
+ };
509
+ output: {
510
+ success: true;
511
+ };
512
+ outputFormat: "json";
513
+ status: import("hono/utils/http-status").ContentfulStatusCode;
514
+ };
515
+ };
516
+ } & {
517
+ "/contracts": {
518
+ $get: {
519
+ input: {};
520
+ output: {
521
+ data: {
522
+ id: string;
523
+ channelId: string;
524
+ supplierId: string | null;
525
+ status: "active" | "draft" | "expired" | "terminated";
526
+ startsAt: string;
527
+ endsAt: string | null;
528
+ paymentOwner: "operator" | "channel" | "split";
529
+ cancellationOwner: "operator" | "channel" | "mixed";
530
+ settlementTerms: string | null;
531
+ notes: string | null;
532
+ createdAt: string;
533
+ updatedAt: string;
534
+ }[];
535
+ total: number;
536
+ limit: number;
537
+ offset: number;
538
+ };
539
+ outputFormat: "json";
540
+ status: import("hono/utils/http-status").ContentfulStatusCode;
541
+ };
542
+ };
543
+ } & {
544
+ "/contracts": {
545
+ $post: {
546
+ input: {};
547
+ output: {
548
+ data: {
549
+ paymentOwner: "operator" | "channel" | "split";
550
+ createdAt: string;
551
+ updatedAt: string;
552
+ notes: string | null;
553
+ id: string;
554
+ startsAt: string;
555
+ endsAt: string | null;
556
+ status: "active" | "draft" | "expired" | "terminated";
557
+ supplierId: string | null;
558
+ channelId: string;
559
+ cancellationOwner: "operator" | "channel" | "mixed";
560
+ settlementTerms: string | null;
561
+ } | undefined;
562
+ };
563
+ outputFormat: "json";
564
+ status: 201;
565
+ };
566
+ };
567
+ } & {
568
+ "/contracts/batch-update": {
569
+ $post: {
570
+ input: {};
571
+ output: {
572
+ data: {
573
+ id: string;
574
+ channelId: string;
575
+ supplierId: string | null;
576
+ status: "active" | "draft" | "expired" | "terminated";
577
+ startsAt: string;
578
+ endsAt: string | null;
579
+ paymentOwner: "operator" | "channel" | "split";
580
+ cancellationOwner: "operator" | "channel" | "mixed";
581
+ settlementTerms: string | null;
582
+ notes: string | null;
583
+ createdAt: string;
584
+ updatedAt: string;
585
+ }[];
586
+ total: number;
587
+ succeeded: number;
588
+ failed: {
589
+ id: string;
590
+ error: string;
591
+ }[];
592
+ };
593
+ outputFormat: "json";
594
+ status: import("hono/utils/http-status").ContentfulStatusCode;
595
+ };
596
+ };
597
+ } & {
598
+ "/contracts/batch-delete": {
599
+ $post: {
600
+ input: {};
601
+ output: {
602
+ deletedIds: string[];
603
+ total: number;
604
+ succeeded: number;
605
+ failed: {
606
+ id: string;
607
+ error: string;
608
+ }[];
609
+ };
610
+ outputFormat: "json";
611
+ status: import("hono/utils/http-status").ContentfulStatusCode;
612
+ };
613
+ };
614
+ } & {
615
+ "/contracts/:id": {
616
+ $get: {
617
+ input: {
618
+ param: {
619
+ id: string;
620
+ };
621
+ };
622
+ output: {
623
+ error: string;
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
+ channelId: string;
637
+ supplierId: string | null;
638
+ status: "active" | "draft" | "expired" | "terminated";
639
+ startsAt: string;
640
+ endsAt: string | null;
641
+ paymentOwner: "operator" | "channel" | "split";
642
+ cancellationOwner: "operator" | "channel" | "mixed";
643
+ settlementTerms: string | null;
644
+ notes: string | null;
645
+ createdAt: string;
646
+ updatedAt: string;
647
+ };
648
+ };
649
+ outputFormat: "json";
650
+ status: import("hono/utils/http-status").ContentfulStatusCode;
651
+ };
652
+ };
653
+ } & {
654
+ "/contracts/:id": {
655
+ $patch: {
656
+ input: {
657
+ param: {
658
+ id: string;
659
+ };
660
+ };
661
+ output: {
662
+ error: string;
663
+ };
664
+ outputFormat: "json";
665
+ status: 404;
666
+ } | {
667
+ input: {
668
+ param: {
669
+ id: string;
670
+ };
671
+ };
672
+ output: {
673
+ data: {
674
+ id: string;
675
+ channelId: string;
676
+ supplierId: string | null;
677
+ status: "active" | "draft" | "expired" | "terminated";
678
+ startsAt: string;
679
+ endsAt: string | null;
680
+ paymentOwner: "operator" | "channel" | "split";
681
+ cancellationOwner: "operator" | "channel" | "mixed";
682
+ settlementTerms: string | null;
683
+ notes: string | null;
684
+ createdAt: string;
685
+ updatedAt: string;
686
+ };
687
+ };
688
+ outputFormat: "json";
689
+ status: import("hono/utils/http-status").ContentfulStatusCode;
690
+ };
691
+ };
692
+ } & {
693
+ "/contracts/:id": {
694
+ $delete: {
695
+ input: {
696
+ param: {
697
+ id: string;
698
+ };
699
+ };
700
+ output: {
701
+ error: string;
702
+ };
703
+ outputFormat: "json";
704
+ status: 404;
705
+ } | {
706
+ input: {
707
+ param: {
708
+ id: string;
709
+ };
710
+ };
711
+ output: {
712
+ success: true;
713
+ };
714
+ outputFormat: "json";
715
+ status: import("hono/utils/http-status").ContentfulStatusCode;
716
+ };
717
+ };
718
+ } & {
719
+ "/commission-rules": {
720
+ $get: {
721
+ input: {};
722
+ output: {
723
+ data: {
724
+ id: string;
725
+ contractId: string;
726
+ scope: "product" | "category" | "booking" | "rate";
727
+ productId: string | null;
728
+ externalRateId: string | null;
729
+ externalCategoryId: string | null;
730
+ commissionType: "fixed" | "percentage";
731
+ amountCents: number | null;
732
+ percentBasisPoints: number | null;
733
+ validFrom: string | null;
734
+ validTo: string | null;
735
+ createdAt: string;
736
+ updatedAt: string;
737
+ }[];
738
+ total: number;
739
+ limit: number;
740
+ offset: number;
741
+ };
742
+ outputFormat: "json";
743
+ status: import("hono/utils/http-status").ContentfulStatusCode;
744
+ };
745
+ };
746
+ } & {
747
+ "/commission-rules": {
748
+ $post: {
749
+ input: {};
750
+ output: {
751
+ data: {
752
+ createdAt: string;
753
+ updatedAt: string;
754
+ id: string;
755
+ productId: string | null;
756
+ validFrom: string | null;
757
+ validTo: string | null;
758
+ amountCents: number | null;
759
+ contractId: string;
760
+ scope: "product" | "category" | "booking" | "rate";
761
+ externalRateId: string | null;
762
+ externalCategoryId: string | null;
763
+ commissionType: "fixed" | "percentage";
764
+ percentBasisPoints: number | null;
765
+ } | undefined;
766
+ };
767
+ outputFormat: "json";
768
+ status: 201;
769
+ };
770
+ };
771
+ } & {
772
+ "/commission-rules/batch-update": {
773
+ $post: {
774
+ input: {};
775
+ output: {
776
+ data: {
777
+ id: string;
778
+ contractId: string;
779
+ scope: "product" | "category" | "booking" | "rate";
780
+ productId: string | null;
781
+ externalRateId: string | null;
782
+ externalCategoryId: string | null;
783
+ commissionType: "fixed" | "percentage";
784
+ amountCents: number | null;
785
+ percentBasisPoints: number | null;
786
+ validFrom: string | null;
787
+ validTo: string | null;
788
+ createdAt: string;
789
+ updatedAt: string;
790
+ }[];
791
+ total: number;
792
+ succeeded: number;
793
+ failed: {
794
+ id: string;
795
+ error: string;
796
+ }[];
797
+ };
798
+ outputFormat: "json";
799
+ status: import("hono/utils/http-status").ContentfulStatusCode;
800
+ };
801
+ };
802
+ } & {
803
+ "/commission-rules/batch-delete": {
804
+ $post: {
805
+ input: {};
806
+ output: {
807
+ deletedIds: string[];
808
+ total: number;
809
+ succeeded: number;
810
+ failed: {
811
+ id: string;
812
+ error: string;
813
+ }[];
814
+ };
815
+ outputFormat: "json";
816
+ status: import("hono/utils/http-status").ContentfulStatusCode;
817
+ };
818
+ };
819
+ } & {
820
+ "/commission-rules/:id": {
821
+ $get: {
822
+ input: {
823
+ param: {
824
+ id: string;
825
+ };
826
+ };
827
+ output: {
828
+ error: string;
829
+ };
830
+ outputFormat: "json";
831
+ status: 404;
832
+ } | {
833
+ input: {
834
+ param: {
835
+ id: string;
836
+ };
837
+ };
838
+ output: {
839
+ data: {
840
+ id: string;
841
+ contractId: string;
842
+ scope: "product" | "category" | "booking" | "rate";
843
+ productId: string | null;
844
+ externalRateId: string | null;
845
+ externalCategoryId: string | null;
846
+ commissionType: "fixed" | "percentage";
847
+ amountCents: number | null;
848
+ percentBasisPoints: number | null;
849
+ validFrom: string | null;
850
+ validTo: string | null;
851
+ createdAt: string;
852
+ updatedAt: string;
853
+ };
854
+ };
855
+ outputFormat: "json";
856
+ status: import("hono/utils/http-status").ContentfulStatusCode;
857
+ };
858
+ };
859
+ } & {
860
+ "/commission-rules/:id": {
861
+ $patch: {
862
+ input: {
863
+ param: {
864
+ id: string;
865
+ };
866
+ };
867
+ output: {
868
+ error: string;
869
+ };
870
+ outputFormat: "json";
871
+ status: 404;
872
+ } | {
873
+ input: {
874
+ param: {
875
+ id: string;
876
+ };
877
+ };
878
+ output: {
879
+ data: {
880
+ id: string;
881
+ contractId: string;
882
+ scope: "product" | "category" | "booking" | "rate";
883
+ productId: string | null;
884
+ externalRateId: string | null;
885
+ externalCategoryId: string | null;
886
+ commissionType: "fixed" | "percentage";
887
+ amountCents: number | null;
888
+ percentBasisPoints: number | null;
889
+ validFrom: string | null;
890
+ validTo: string | null;
891
+ createdAt: string;
892
+ updatedAt: string;
893
+ };
894
+ };
895
+ outputFormat: "json";
896
+ status: import("hono/utils/http-status").ContentfulStatusCode;
897
+ };
898
+ };
899
+ } & {
900
+ "/commission-rules/:id": {
901
+ $delete: {
902
+ input: {
903
+ param: {
904
+ id: string;
905
+ };
906
+ };
907
+ output: {
908
+ error: string;
909
+ };
910
+ outputFormat: "json";
911
+ status: 404;
912
+ } | {
913
+ input: {
914
+ param: {
915
+ id: string;
916
+ };
917
+ };
918
+ output: {
919
+ success: true;
920
+ };
921
+ outputFormat: "json";
922
+ status: import("hono/utils/http-status").ContentfulStatusCode;
923
+ };
924
+ };
925
+ } & {
926
+ "/product-mappings": {
927
+ $get: {
928
+ input: {};
929
+ output: {
930
+ data: {
931
+ id: string;
932
+ channelId: string;
933
+ productId: string;
934
+ externalProductId: string | null;
935
+ externalRateId: string | null;
936
+ externalCategoryId: string | null;
937
+ active: boolean;
938
+ createdAt: string;
939
+ updatedAt: string;
940
+ }[];
941
+ total: number;
942
+ limit: number;
943
+ offset: number;
944
+ };
945
+ outputFormat: "json";
946
+ status: import("hono/utils/http-status").ContentfulStatusCode;
947
+ };
948
+ };
949
+ } & {
950
+ "/product-mappings": {
951
+ $post: {
952
+ input: {};
953
+ output: {
954
+ data: {
955
+ createdAt: string;
956
+ updatedAt: string;
957
+ id: string;
958
+ productId: string;
959
+ active: boolean;
960
+ channelId: string;
961
+ externalRateId: string | null;
962
+ externalCategoryId: string | null;
963
+ externalProductId: string | null;
964
+ } | undefined;
965
+ };
966
+ outputFormat: "json";
967
+ status: 201;
968
+ };
969
+ };
970
+ } & {
971
+ "/product-mappings/batch-update": {
972
+ $post: {
973
+ input: {};
974
+ output: {
975
+ data: {
976
+ id: string;
977
+ channelId: string;
978
+ productId: string;
979
+ externalProductId: string | null;
980
+ externalRateId: string | null;
981
+ externalCategoryId: string | null;
982
+ active: boolean;
983
+ createdAt: string;
984
+ updatedAt: string;
985
+ }[];
986
+ total: number;
987
+ succeeded: number;
988
+ failed: {
989
+ id: string;
990
+ error: string;
991
+ }[];
992
+ };
993
+ outputFormat: "json";
994
+ status: import("hono/utils/http-status").ContentfulStatusCode;
995
+ };
996
+ };
997
+ } & {
998
+ "/product-mappings/batch-delete": {
999
+ $post: {
1000
+ input: {};
1001
+ output: {
1002
+ deletedIds: string[];
1003
+ total: number;
1004
+ succeeded: number;
1005
+ failed: {
1006
+ id: string;
1007
+ error: string;
1008
+ }[];
1009
+ };
1010
+ outputFormat: "json";
1011
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1012
+ };
1013
+ };
1014
+ } & {
1015
+ "/product-mappings/:id": {
1016
+ $get: {
1017
+ input: {
1018
+ param: {
1019
+ id: string;
1020
+ };
1021
+ };
1022
+ output: {
1023
+ error: string;
1024
+ };
1025
+ outputFormat: "json";
1026
+ status: 404;
1027
+ } | {
1028
+ input: {
1029
+ param: {
1030
+ id: string;
1031
+ };
1032
+ };
1033
+ output: {
1034
+ data: {
1035
+ id: string;
1036
+ channelId: string;
1037
+ productId: string;
1038
+ externalProductId: string | null;
1039
+ externalRateId: string | null;
1040
+ externalCategoryId: string | null;
1041
+ active: boolean;
1042
+ createdAt: string;
1043
+ updatedAt: string;
1044
+ };
1045
+ };
1046
+ outputFormat: "json";
1047
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1048
+ };
1049
+ };
1050
+ } & {
1051
+ "/product-mappings/:id": {
1052
+ $patch: {
1053
+ input: {
1054
+ param: {
1055
+ id: string;
1056
+ };
1057
+ };
1058
+ output: {
1059
+ error: string;
1060
+ };
1061
+ outputFormat: "json";
1062
+ status: 404;
1063
+ } | {
1064
+ input: {
1065
+ param: {
1066
+ id: string;
1067
+ };
1068
+ };
1069
+ output: {
1070
+ data: {
1071
+ id: string;
1072
+ channelId: string;
1073
+ productId: string;
1074
+ externalProductId: string | null;
1075
+ externalRateId: string | null;
1076
+ externalCategoryId: string | null;
1077
+ active: boolean;
1078
+ createdAt: string;
1079
+ updatedAt: string;
1080
+ };
1081
+ };
1082
+ outputFormat: "json";
1083
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1084
+ };
1085
+ };
1086
+ } & {
1087
+ "/product-mappings/:id": {
1088
+ $delete: {
1089
+ input: {
1090
+ param: {
1091
+ id: string;
1092
+ };
1093
+ };
1094
+ output: {
1095
+ error: string;
1096
+ };
1097
+ outputFormat: "json";
1098
+ status: 404;
1099
+ } | {
1100
+ input: {
1101
+ param: {
1102
+ id: string;
1103
+ };
1104
+ };
1105
+ output: {
1106
+ success: true;
1107
+ };
1108
+ outputFormat: "json";
1109
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1110
+ };
1111
+ };
1112
+ } & {
1113
+ "/booking-links": {
1114
+ $get: {
1115
+ input: {};
1116
+ output: {
1117
+ data: {
1118
+ id: string;
1119
+ channelId: string;
1120
+ bookingId: string;
1121
+ externalBookingId: string | null;
1122
+ externalReference: string | null;
1123
+ externalStatus: string | null;
1124
+ bookedAtExternal: string | null;
1125
+ lastSyncedAt: string | null;
1126
+ createdAt: string;
1127
+ updatedAt: string;
1128
+ }[];
1129
+ total: number;
1130
+ limit: number;
1131
+ offset: number;
1132
+ };
1133
+ outputFormat: "json";
1134
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1135
+ };
1136
+ };
1137
+ } & {
1138
+ "/booking-links": {
1139
+ $post: {
1140
+ input: {};
1141
+ output: {
1142
+ data: {
1143
+ bookingId: string;
1144
+ createdAt: string;
1145
+ updatedAt: string;
1146
+ id: string;
1147
+ channelId: string;
1148
+ externalBookingId: string | null;
1149
+ externalReference: string | null;
1150
+ externalStatus: string | null;
1151
+ bookedAtExternal: string | null;
1152
+ lastSyncedAt: string | null;
1153
+ } | undefined;
1154
+ };
1155
+ outputFormat: "json";
1156
+ status: 201;
1157
+ };
1158
+ };
1159
+ } & {
1160
+ "/booking-links/batch-update": {
1161
+ $post: {
1162
+ input: {};
1163
+ output: {
1164
+ data: {
1165
+ id: string;
1166
+ channelId: string;
1167
+ bookingId: string;
1168
+ externalBookingId: string | null;
1169
+ externalReference: string | null;
1170
+ externalStatus: string | null;
1171
+ bookedAtExternal: string | null;
1172
+ lastSyncedAt: string | null;
1173
+ createdAt: string;
1174
+ updatedAt: string;
1175
+ }[];
1176
+ total: number;
1177
+ succeeded: number;
1178
+ failed: {
1179
+ id: string;
1180
+ error: string;
1181
+ }[];
1182
+ };
1183
+ outputFormat: "json";
1184
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1185
+ };
1186
+ };
1187
+ } & {
1188
+ "/booking-links/batch-delete": {
1189
+ $post: {
1190
+ input: {};
1191
+ output: {
1192
+ deletedIds: string[];
1193
+ total: number;
1194
+ succeeded: number;
1195
+ failed: {
1196
+ id: string;
1197
+ error: string;
1198
+ }[];
1199
+ };
1200
+ outputFormat: "json";
1201
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1202
+ };
1203
+ };
1204
+ } & {
1205
+ "/booking-links/:id": {
1206
+ $get: {
1207
+ input: {
1208
+ param: {
1209
+ id: string;
1210
+ };
1211
+ };
1212
+ output: {
1213
+ error: string;
1214
+ };
1215
+ outputFormat: "json";
1216
+ status: 404;
1217
+ } | {
1218
+ input: {
1219
+ param: {
1220
+ id: string;
1221
+ };
1222
+ };
1223
+ output: {
1224
+ data: {
1225
+ id: string;
1226
+ channelId: string;
1227
+ bookingId: string;
1228
+ externalBookingId: string | null;
1229
+ externalReference: string | null;
1230
+ externalStatus: string | null;
1231
+ bookedAtExternal: string | null;
1232
+ lastSyncedAt: string | null;
1233
+ createdAt: string;
1234
+ updatedAt: string;
1235
+ };
1236
+ };
1237
+ outputFormat: "json";
1238
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1239
+ };
1240
+ };
1241
+ } & {
1242
+ "/booking-links/:id": {
1243
+ $patch: {
1244
+ input: {
1245
+ param: {
1246
+ id: string;
1247
+ };
1248
+ };
1249
+ output: {
1250
+ error: string;
1251
+ };
1252
+ outputFormat: "json";
1253
+ status: 404;
1254
+ } | {
1255
+ input: {
1256
+ param: {
1257
+ id: string;
1258
+ };
1259
+ };
1260
+ output: {
1261
+ data: {
1262
+ id: string;
1263
+ channelId: string;
1264
+ bookingId: string;
1265
+ externalBookingId: string | null;
1266
+ externalReference: string | null;
1267
+ externalStatus: string | null;
1268
+ bookedAtExternal: string | null;
1269
+ lastSyncedAt: string | null;
1270
+ createdAt: string;
1271
+ updatedAt: string;
1272
+ };
1273
+ };
1274
+ outputFormat: "json";
1275
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1276
+ };
1277
+ };
1278
+ } & {
1279
+ "/booking-links/:id": {
1280
+ $delete: {
1281
+ input: {
1282
+ param: {
1283
+ id: string;
1284
+ };
1285
+ };
1286
+ output: {
1287
+ error: string;
1288
+ };
1289
+ outputFormat: "json";
1290
+ status: 404;
1291
+ } | {
1292
+ input: {
1293
+ param: {
1294
+ id: string;
1295
+ };
1296
+ };
1297
+ output: {
1298
+ success: true;
1299
+ };
1300
+ outputFormat: "json";
1301
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1302
+ };
1303
+ };
1304
+ } & {
1305
+ "/webhook-events": {
1306
+ $get: {
1307
+ input: {};
1308
+ output: {
1309
+ data: {
1310
+ id: string;
1311
+ channelId: string;
1312
+ eventType: string;
1313
+ externalEventId: string | null;
1314
+ payload: {
1315
+ [x: string]: import("hono/utils/types").JSONValue;
1316
+ };
1317
+ receivedAt: string;
1318
+ processedAt: string | null;
1319
+ status: "pending" | "processed" | "failed" | "ignored";
1320
+ errorMessage: string | null;
1321
+ createdAt: string;
1322
+ }[];
1323
+ total: number;
1324
+ limit: number;
1325
+ offset: number;
1326
+ };
1327
+ outputFormat: "json";
1328
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1329
+ };
1330
+ };
1331
+ } & {
1332
+ "/webhook-events": {
1333
+ $post: {
1334
+ input: {};
1335
+ output: {
1336
+ data: {
1337
+ createdAt: string;
1338
+ id: string;
1339
+ status: "pending" | "processed" | "failed" | "ignored";
1340
+ channelId: string;
1341
+ eventType: string;
1342
+ externalEventId: string | null;
1343
+ payload: {
1344
+ [x: string]: import("hono/utils/types").JSONValue;
1345
+ };
1346
+ receivedAt: string;
1347
+ processedAt: string | null;
1348
+ errorMessage: string | null;
1349
+ } | undefined;
1350
+ };
1351
+ outputFormat: "json";
1352
+ status: 201;
1353
+ };
1354
+ };
1355
+ } & {
1356
+ "/webhook-events/batch-update": {
1357
+ $post: {
1358
+ input: {};
1359
+ output: {
1360
+ data: {
1361
+ id: string;
1362
+ channelId: string;
1363
+ eventType: string;
1364
+ externalEventId: string | null;
1365
+ payload: {
1366
+ [x: string]: import("hono/utils/types").JSONValue;
1367
+ };
1368
+ receivedAt: string;
1369
+ processedAt: string | null;
1370
+ status: "pending" | "processed" | "failed" | "ignored";
1371
+ errorMessage: string | null;
1372
+ createdAt: string;
1373
+ }[];
1374
+ total: number;
1375
+ succeeded: number;
1376
+ failed: {
1377
+ id: string;
1378
+ error: string;
1379
+ }[];
1380
+ };
1381
+ outputFormat: "json";
1382
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1383
+ };
1384
+ };
1385
+ } & {
1386
+ "/webhook-events/batch-delete": {
1387
+ $post: {
1388
+ input: {};
1389
+ output: {
1390
+ deletedIds: string[];
1391
+ total: number;
1392
+ succeeded: number;
1393
+ failed: {
1394
+ id: string;
1395
+ error: string;
1396
+ }[];
1397
+ };
1398
+ outputFormat: "json";
1399
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1400
+ };
1401
+ };
1402
+ } & {
1403
+ "/webhook-events/:id": {
1404
+ $get: {
1405
+ input: {
1406
+ param: {
1407
+ id: string;
1408
+ };
1409
+ };
1410
+ output: {
1411
+ error: string;
1412
+ };
1413
+ outputFormat: "json";
1414
+ status: 404;
1415
+ } | {
1416
+ input: {
1417
+ param: {
1418
+ id: string;
1419
+ };
1420
+ };
1421
+ output: {
1422
+ data: {
1423
+ id: string;
1424
+ channelId: string;
1425
+ eventType: string;
1426
+ externalEventId: string | null;
1427
+ payload: {
1428
+ [x: string]: import("hono/utils/types").JSONValue;
1429
+ };
1430
+ receivedAt: string;
1431
+ processedAt: string | null;
1432
+ status: "pending" | "processed" | "failed" | "ignored";
1433
+ errorMessage: string | null;
1434
+ createdAt: string;
1435
+ };
1436
+ };
1437
+ outputFormat: "json";
1438
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1439
+ };
1440
+ };
1441
+ } & {
1442
+ "/webhook-events/:id": {
1443
+ $patch: {
1444
+ input: {
1445
+ param: {
1446
+ id: string;
1447
+ };
1448
+ };
1449
+ output: {
1450
+ error: string;
1451
+ };
1452
+ outputFormat: "json";
1453
+ status: 404;
1454
+ } | {
1455
+ input: {
1456
+ param: {
1457
+ id: string;
1458
+ };
1459
+ };
1460
+ output: {
1461
+ data: {
1462
+ id: string;
1463
+ channelId: string;
1464
+ eventType: string;
1465
+ externalEventId: string | null;
1466
+ payload: {
1467
+ [x: string]: import("hono/utils/types").JSONValue;
1468
+ };
1469
+ receivedAt: string;
1470
+ processedAt: string | null;
1471
+ status: "pending" | "processed" | "failed" | "ignored";
1472
+ errorMessage: string | null;
1473
+ createdAt: string;
1474
+ };
1475
+ };
1476
+ outputFormat: "json";
1477
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1478
+ };
1479
+ };
1480
+ } & {
1481
+ "/webhook-events/:id": {
1482
+ $delete: {
1483
+ input: {
1484
+ param: {
1485
+ id: string;
1486
+ };
1487
+ };
1488
+ output: {
1489
+ error: string;
1490
+ };
1491
+ outputFormat: "json";
1492
+ status: 404;
1493
+ } | {
1494
+ input: {
1495
+ param: {
1496
+ id: string;
1497
+ };
1498
+ };
1499
+ output: {
1500
+ success: true;
1501
+ };
1502
+ outputFormat: "json";
1503
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1504
+ };
1505
+ };
1506
+ } & {
1507
+ "/inventory-allotments": {
1508
+ $get: {
1509
+ input: {};
1510
+ output: {
1511
+ data: {
1512
+ id: string;
1513
+ channelId: string;
1514
+ contractId: string | null;
1515
+ productId: string;
1516
+ optionId: string | null;
1517
+ startTimeId: string | null;
1518
+ validFrom: string | null;
1519
+ validTo: string | null;
1520
+ guaranteedCapacity: number | null;
1521
+ maxCapacity: number | null;
1522
+ active: boolean;
1523
+ notes: string | null;
1524
+ createdAt: string;
1525
+ updatedAt: string;
1526
+ }[];
1527
+ total: number;
1528
+ limit: number;
1529
+ offset: number;
1530
+ };
1531
+ outputFormat: "json";
1532
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1533
+ };
1534
+ };
1535
+ } & {
1536
+ "/inventory-allotments": {
1537
+ $post: {
1538
+ input: {};
1539
+ output: {
1540
+ data: {
1541
+ createdAt: string;
1542
+ updatedAt: string;
1543
+ notes: string | null;
1544
+ id: string;
1545
+ productId: string;
1546
+ optionId: string | null;
1547
+ maxCapacity: number | null;
1548
+ active: boolean;
1549
+ startTimeId: string | null;
1550
+ validFrom: string | null;
1551
+ validTo: string | null;
1552
+ channelId: string;
1553
+ contractId: string | null;
1554
+ guaranteedCapacity: number | null;
1555
+ } | undefined;
1556
+ };
1557
+ outputFormat: "json";
1558
+ status: 201;
1559
+ };
1560
+ };
1561
+ } & {
1562
+ "/inventory-allotments/batch-update": {
1563
+ $post: {
1564
+ input: {};
1565
+ output: {
1566
+ data: {
1567
+ id: string;
1568
+ channelId: string;
1569
+ contractId: string | null;
1570
+ productId: string;
1571
+ optionId: string | null;
1572
+ startTimeId: string | null;
1573
+ validFrom: string | null;
1574
+ validTo: string | null;
1575
+ guaranteedCapacity: number | null;
1576
+ maxCapacity: number | null;
1577
+ active: boolean;
1578
+ notes: string | null;
1579
+ createdAt: string;
1580
+ updatedAt: string;
1581
+ }[];
1582
+ total: number;
1583
+ succeeded: number;
1584
+ failed: {
1585
+ id: string;
1586
+ error: string;
1587
+ }[];
1588
+ };
1589
+ outputFormat: "json";
1590
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1591
+ };
1592
+ };
1593
+ } & {
1594
+ "/inventory-allotments/batch-delete": {
1595
+ $post: {
1596
+ input: {};
1597
+ output: {
1598
+ deletedIds: string[];
1599
+ total: number;
1600
+ succeeded: number;
1601
+ failed: {
1602
+ id: string;
1603
+ error: string;
1604
+ }[];
1605
+ };
1606
+ outputFormat: "json";
1607
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1608
+ };
1609
+ };
1610
+ } & {
1611
+ "/inventory-allotments/:id": {
1612
+ $get: {
1613
+ input: {
1614
+ param: {
1615
+ id: string;
1616
+ };
1617
+ };
1618
+ output: {
1619
+ error: string;
1620
+ };
1621
+ outputFormat: "json";
1622
+ status: 404;
1623
+ } | {
1624
+ input: {
1625
+ param: {
1626
+ id: string;
1627
+ };
1628
+ };
1629
+ output: {
1630
+ data: {
1631
+ id: string;
1632
+ channelId: string;
1633
+ contractId: string | null;
1634
+ productId: string;
1635
+ optionId: string | null;
1636
+ startTimeId: string | null;
1637
+ validFrom: string | null;
1638
+ validTo: string | null;
1639
+ guaranteedCapacity: number | null;
1640
+ maxCapacity: number | null;
1641
+ active: boolean;
1642
+ notes: string | null;
1643
+ createdAt: string;
1644
+ updatedAt: string;
1645
+ };
1646
+ };
1647
+ outputFormat: "json";
1648
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1649
+ };
1650
+ };
1651
+ } & {
1652
+ "/inventory-allotments/:id": {
1653
+ $patch: {
1654
+ input: {
1655
+ param: {
1656
+ id: string;
1657
+ };
1658
+ };
1659
+ output: {
1660
+ error: string;
1661
+ };
1662
+ outputFormat: "json";
1663
+ status: 404;
1664
+ } | {
1665
+ input: {
1666
+ param: {
1667
+ id: string;
1668
+ };
1669
+ };
1670
+ output: {
1671
+ data: {
1672
+ id: string;
1673
+ channelId: string;
1674
+ contractId: string | null;
1675
+ productId: string;
1676
+ optionId: string | null;
1677
+ startTimeId: string | null;
1678
+ validFrom: string | null;
1679
+ validTo: string | null;
1680
+ guaranteedCapacity: number | null;
1681
+ maxCapacity: number | null;
1682
+ active: boolean;
1683
+ notes: string | null;
1684
+ createdAt: string;
1685
+ updatedAt: string;
1686
+ };
1687
+ };
1688
+ outputFormat: "json";
1689
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1690
+ };
1691
+ };
1692
+ } & {
1693
+ "/inventory-allotments/:id": {
1694
+ $delete: {
1695
+ input: {
1696
+ param: {
1697
+ id: string;
1698
+ };
1699
+ };
1700
+ output: {
1701
+ error: string;
1702
+ };
1703
+ outputFormat: "json";
1704
+ status: 404;
1705
+ } | {
1706
+ input: {
1707
+ param: {
1708
+ id: string;
1709
+ };
1710
+ };
1711
+ output: {
1712
+ success: true;
1713
+ };
1714
+ outputFormat: "json";
1715
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1716
+ };
1717
+ };
1718
+ } & {
1719
+ "/inventory-allotment-targets": {
1720
+ $get: {
1721
+ input: {};
1722
+ output: {
1723
+ data: {
1724
+ id: string;
1725
+ allotmentId: string;
1726
+ slotId: string | null;
1727
+ startTimeId: string | null;
1728
+ dateLocal: string | null;
1729
+ guaranteedCapacity: number | null;
1730
+ maxCapacity: number | null;
1731
+ soldCapacity: number | null;
1732
+ remainingCapacity: number | null;
1733
+ active: boolean;
1734
+ createdAt: string;
1735
+ updatedAt: string;
1736
+ }[];
1737
+ total: number;
1738
+ limit: number;
1739
+ offset: number;
1740
+ };
1741
+ outputFormat: "json";
1742
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1743
+ };
1744
+ };
1745
+ } & {
1746
+ "/inventory-allotment-targets": {
1747
+ $post: {
1748
+ input: {};
1749
+ output: {
1750
+ data: {
1751
+ createdAt: string;
1752
+ updatedAt: string;
1753
+ id: string;
1754
+ maxCapacity: number | null;
1755
+ active: boolean;
1756
+ startTimeId: string | null;
1757
+ dateLocal: string | null;
1758
+ slotId: string | null;
1759
+ remainingCapacity: number | null;
1760
+ guaranteedCapacity: number | null;
1761
+ allotmentId: string;
1762
+ soldCapacity: number | null;
1763
+ } | undefined;
1764
+ };
1765
+ outputFormat: "json";
1766
+ status: 201;
1767
+ };
1768
+ };
1769
+ } & {
1770
+ "/inventory-allotment-targets/batch-update": {
1771
+ $post: {
1772
+ input: {};
1773
+ output: {
1774
+ data: {
1775
+ id: string;
1776
+ allotmentId: string;
1777
+ slotId: string | null;
1778
+ startTimeId: string | null;
1779
+ dateLocal: string | null;
1780
+ guaranteedCapacity: number | null;
1781
+ maxCapacity: number | null;
1782
+ soldCapacity: number | null;
1783
+ remainingCapacity: number | null;
1784
+ active: boolean;
1785
+ createdAt: string;
1786
+ updatedAt: string;
1787
+ }[];
1788
+ total: number;
1789
+ succeeded: number;
1790
+ failed: {
1791
+ id: string;
1792
+ error: string;
1793
+ }[];
1794
+ };
1795
+ outputFormat: "json";
1796
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1797
+ };
1798
+ };
1799
+ } & {
1800
+ "/inventory-allotment-targets/batch-delete": {
1801
+ $post: {
1802
+ input: {};
1803
+ output: {
1804
+ deletedIds: string[];
1805
+ total: number;
1806
+ succeeded: number;
1807
+ failed: {
1808
+ id: string;
1809
+ error: string;
1810
+ }[];
1811
+ };
1812
+ outputFormat: "json";
1813
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1814
+ };
1815
+ };
1816
+ } & {
1817
+ "/inventory-allotment-targets/:id": {
1818
+ $get: {
1819
+ input: {
1820
+ param: {
1821
+ id: string;
1822
+ };
1823
+ };
1824
+ output: {
1825
+ error: string;
1826
+ };
1827
+ outputFormat: "json";
1828
+ status: 404;
1829
+ } | {
1830
+ input: {
1831
+ param: {
1832
+ id: string;
1833
+ };
1834
+ };
1835
+ output: {
1836
+ data: {
1837
+ id: string;
1838
+ allotmentId: string;
1839
+ slotId: string | null;
1840
+ startTimeId: string | null;
1841
+ dateLocal: string | null;
1842
+ guaranteedCapacity: number | null;
1843
+ maxCapacity: number | null;
1844
+ soldCapacity: number | null;
1845
+ remainingCapacity: number | null;
1846
+ active: boolean;
1847
+ createdAt: string;
1848
+ updatedAt: string;
1849
+ };
1850
+ };
1851
+ outputFormat: "json";
1852
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1853
+ };
1854
+ };
1855
+ } & {
1856
+ "/inventory-allotment-targets/:id": {
1857
+ $patch: {
1858
+ input: {
1859
+ param: {
1860
+ id: string;
1861
+ };
1862
+ };
1863
+ output: {
1864
+ error: string;
1865
+ };
1866
+ outputFormat: "json";
1867
+ status: 404;
1868
+ } | {
1869
+ input: {
1870
+ param: {
1871
+ id: string;
1872
+ };
1873
+ };
1874
+ output: {
1875
+ data: {
1876
+ id: string;
1877
+ allotmentId: string;
1878
+ slotId: string | null;
1879
+ startTimeId: string | null;
1880
+ dateLocal: string | null;
1881
+ guaranteedCapacity: number | null;
1882
+ maxCapacity: number | null;
1883
+ soldCapacity: number | null;
1884
+ remainingCapacity: number | null;
1885
+ active: boolean;
1886
+ createdAt: string;
1887
+ updatedAt: string;
1888
+ };
1889
+ };
1890
+ outputFormat: "json";
1891
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1892
+ };
1893
+ };
1894
+ } & {
1895
+ "/inventory-allotment-targets/:id": {
1896
+ $delete: {
1897
+ input: {
1898
+ param: {
1899
+ id: string;
1900
+ };
1901
+ };
1902
+ output: {
1903
+ error: string;
1904
+ };
1905
+ outputFormat: "json";
1906
+ status: 404;
1907
+ } | {
1908
+ input: {
1909
+ param: {
1910
+ id: string;
1911
+ };
1912
+ };
1913
+ output: {
1914
+ success: true;
1915
+ };
1916
+ outputFormat: "json";
1917
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1918
+ };
1919
+ };
1920
+ } & {
1921
+ "/inventory-release-rules": {
1922
+ $get: {
1923
+ input: {};
1924
+ output: {
1925
+ data: {
1926
+ id: string;
1927
+ allotmentId: string;
1928
+ releaseMode: "manual" | "automatic";
1929
+ releaseDaysBeforeStart: number | null;
1930
+ releaseHoursBeforeStart: number | null;
1931
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
1932
+ notes: string | null;
1933
+ createdAt: string;
1934
+ updatedAt: string;
1935
+ }[];
1936
+ total: number;
1937
+ limit: number;
1938
+ offset: number;
1939
+ };
1940
+ outputFormat: "json";
1941
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1942
+ };
1943
+ };
1944
+ } & {
1945
+ "/inventory-release-rules": {
1946
+ $post: {
1947
+ input: {};
1948
+ output: {
1949
+ data: {
1950
+ createdAt: string;
1951
+ updatedAt: string;
1952
+ notes: string | null;
1953
+ id: string;
1954
+ allotmentId: string;
1955
+ releaseMode: "manual" | "automatic";
1956
+ releaseDaysBeforeStart: number | null;
1957
+ releaseHoursBeforeStart: number | null;
1958
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
1959
+ } | undefined;
1960
+ };
1961
+ outputFormat: "json";
1962
+ status: 201;
1963
+ };
1964
+ };
1965
+ } & {
1966
+ "/inventory-release-rules/batch-update": {
1967
+ $post: {
1968
+ input: {};
1969
+ output: {
1970
+ data: {
1971
+ id: string;
1972
+ allotmentId: string;
1973
+ releaseMode: "manual" | "automatic";
1974
+ releaseDaysBeforeStart: number | null;
1975
+ releaseHoursBeforeStart: number | null;
1976
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
1977
+ notes: string | null;
1978
+ createdAt: string;
1979
+ updatedAt: string;
1980
+ }[];
1981
+ total: number;
1982
+ succeeded: number;
1983
+ failed: {
1984
+ id: string;
1985
+ error: string;
1986
+ }[];
1987
+ };
1988
+ outputFormat: "json";
1989
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1990
+ };
1991
+ };
1992
+ } & {
1993
+ "/inventory-release-rules/batch-delete": {
1994
+ $post: {
1995
+ input: {};
1996
+ output: {
1997
+ deletedIds: string[];
1998
+ total: number;
1999
+ succeeded: number;
2000
+ failed: {
2001
+ id: string;
2002
+ error: string;
2003
+ }[];
2004
+ };
2005
+ outputFormat: "json";
2006
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2007
+ };
2008
+ };
2009
+ } & {
2010
+ "/inventory-release-rules/:id": {
2011
+ $get: {
2012
+ input: {
2013
+ param: {
2014
+ id: string;
2015
+ };
2016
+ };
2017
+ output: {
2018
+ error: string;
2019
+ };
2020
+ outputFormat: "json";
2021
+ status: 404;
2022
+ } | {
2023
+ input: {
2024
+ param: {
2025
+ id: string;
2026
+ };
2027
+ };
2028
+ output: {
2029
+ data: {
2030
+ id: string;
2031
+ allotmentId: string;
2032
+ releaseMode: "manual" | "automatic";
2033
+ releaseDaysBeforeStart: number | null;
2034
+ releaseHoursBeforeStart: number | null;
2035
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2036
+ notes: string | null;
2037
+ createdAt: string;
2038
+ updatedAt: string;
2039
+ };
2040
+ };
2041
+ outputFormat: "json";
2042
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2043
+ };
2044
+ };
2045
+ } & {
2046
+ "/inventory-release-rules/:id": {
2047
+ $patch: {
2048
+ input: {
2049
+ param: {
2050
+ id: string;
2051
+ };
2052
+ };
2053
+ output: {
2054
+ error: string;
2055
+ };
2056
+ outputFormat: "json";
2057
+ status: 404;
2058
+ } | {
2059
+ input: {
2060
+ param: {
2061
+ id: string;
2062
+ };
2063
+ };
2064
+ output: {
2065
+ data: {
2066
+ id: string;
2067
+ allotmentId: string;
2068
+ releaseMode: "manual" | "automatic";
2069
+ releaseDaysBeforeStart: number | null;
2070
+ releaseHoursBeforeStart: number | null;
2071
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2072
+ notes: string | null;
2073
+ createdAt: string;
2074
+ updatedAt: string;
2075
+ };
2076
+ };
2077
+ outputFormat: "json";
2078
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2079
+ };
2080
+ };
2081
+ } & {
2082
+ "/inventory-release-rules/:id": {
2083
+ $delete: {
2084
+ input: {
2085
+ param: {
2086
+ id: string;
2087
+ };
2088
+ };
2089
+ output: {
2090
+ error: string;
2091
+ };
2092
+ outputFormat: "json";
2093
+ status: 404;
2094
+ } | {
2095
+ input: {
2096
+ param: {
2097
+ id: string;
2098
+ };
2099
+ };
2100
+ output: {
2101
+ success: true;
2102
+ };
2103
+ outputFormat: "json";
2104
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2105
+ };
2106
+ };
2107
+ } & {
2108
+ "/settlement-runs": {
2109
+ $get: {
2110
+ input: {};
2111
+ output: {
2112
+ data: {
2113
+ id: string;
2114
+ channelId: string;
2115
+ contractId: string | null;
2116
+ status: "void" | "open" | "draft" | "posted" | "paid";
2117
+ currencyCode: string | null;
2118
+ periodStart: string | null;
2119
+ periodEnd: string | null;
2120
+ statementReference: string | null;
2121
+ generatedAt: string | null;
2122
+ postedAt: string | null;
2123
+ paidAt: string | null;
2124
+ notes: string | null;
2125
+ metadata: {
2126
+ [x: string]: import("hono/utils/types").JSONValue;
2127
+ } | null;
2128
+ createdAt: string;
2129
+ updatedAt: string;
2130
+ }[];
2131
+ total: number;
2132
+ limit: number;
2133
+ offset: number;
2134
+ };
2135
+ outputFormat: "json";
2136
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2137
+ };
2138
+ };
2139
+ } & {
2140
+ "/settlement-runs": {
2141
+ $post: {
2142
+ input: {};
2143
+ output: {
2144
+ data: {
2145
+ createdAt: string;
2146
+ updatedAt: string;
2147
+ notes: string | null;
2148
+ metadata: {
2149
+ [x: string]: import("hono/utils/types").JSONValue;
2150
+ } | null;
2151
+ id: string;
2152
+ status: "void" | "open" | "draft" | "posted" | "paid";
2153
+ channelId: string;
2154
+ contractId: string | null;
2155
+ currencyCode: string | null;
2156
+ periodStart: string | null;
2157
+ periodEnd: string | null;
2158
+ statementReference: string | null;
2159
+ generatedAt: string | null;
2160
+ postedAt: string | null;
2161
+ paidAt: string | null;
2162
+ } | undefined;
2163
+ };
2164
+ outputFormat: "json";
2165
+ status: 201;
2166
+ };
2167
+ };
2168
+ } & {
2169
+ "/settlement-runs/:id": {
2170
+ $get: {
2171
+ input: {
2172
+ param: {
2173
+ id: string;
2174
+ };
2175
+ };
2176
+ output: {
2177
+ error: string;
2178
+ };
2179
+ outputFormat: "json";
2180
+ status: 404;
2181
+ } | {
2182
+ input: {
2183
+ param: {
2184
+ id: string;
2185
+ };
2186
+ };
2187
+ output: {
2188
+ data: {
2189
+ id: string;
2190
+ channelId: string;
2191
+ contractId: string | null;
2192
+ status: "void" | "open" | "draft" | "posted" | "paid";
2193
+ currencyCode: string | null;
2194
+ periodStart: string | null;
2195
+ periodEnd: string | null;
2196
+ statementReference: string | null;
2197
+ generatedAt: string | null;
2198
+ postedAt: string | null;
2199
+ paidAt: string | null;
2200
+ notes: string | null;
2201
+ metadata: {
2202
+ [x: string]: import("hono/utils/types").JSONValue;
2203
+ } | null;
2204
+ createdAt: string;
2205
+ updatedAt: string;
2206
+ };
2207
+ };
2208
+ outputFormat: "json";
2209
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2210
+ };
2211
+ };
2212
+ } & {
2213
+ "/settlement-runs/:id": {
2214
+ $patch: {
2215
+ input: {
2216
+ param: {
2217
+ id: string;
2218
+ };
2219
+ };
2220
+ output: {
2221
+ error: string;
2222
+ };
2223
+ outputFormat: "json";
2224
+ status: 404;
2225
+ } | {
2226
+ input: {
2227
+ param: {
2228
+ id: string;
2229
+ };
2230
+ };
2231
+ output: {
2232
+ data: {
2233
+ id: string;
2234
+ channelId: string;
2235
+ contractId: string | null;
2236
+ status: "void" | "open" | "draft" | "posted" | "paid";
2237
+ currencyCode: string | null;
2238
+ periodStart: string | null;
2239
+ periodEnd: string | null;
2240
+ statementReference: string | null;
2241
+ generatedAt: string | null;
2242
+ postedAt: string | null;
2243
+ paidAt: string | null;
2244
+ notes: string | null;
2245
+ metadata: {
2246
+ [x: string]: import("hono/utils/types").JSONValue;
2247
+ } | null;
2248
+ createdAt: string;
2249
+ updatedAt: string;
2250
+ };
2251
+ };
2252
+ outputFormat: "json";
2253
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2254
+ };
2255
+ };
2256
+ } & {
2257
+ "/settlement-runs/:id": {
2258
+ $delete: {
2259
+ input: {
2260
+ param: {
2261
+ id: string;
2262
+ };
2263
+ };
2264
+ output: {
2265
+ error: string;
2266
+ };
2267
+ outputFormat: "json";
2268
+ status: 404;
2269
+ } | {
2270
+ input: {
2271
+ param: {
2272
+ id: string;
2273
+ };
2274
+ };
2275
+ output: {
2276
+ success: true;
2277
+ };
2278
+ outputFormat: "json";
2279
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2280
+ };
2281
+ };
2282
+ } & {
2283
+ "/settlement-items": {
2284
+ $get: {
2285
+ input: {};
2286
+ output: {
2287
+ data: {
2288
+ id: string;
2289
+ settlementRunId: string;
2290
+ bookingLinkId: string | null;
2291
+ bookingId: string | null;
2292
+ commissionRuleId: string | null;
2293
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2294
+ grossAmountCents: number;
2295
+ commissionAmountCents: number;
2296
+ netRemittanceAmountCents: number;
2297
+ currencyCode: string | null;
2298
+ remittanceDueAt: string | null;
2299
+ paidAt: string | null;
2300
+ notes: string | null;
2301
+ createdAt: string;
2302
+ updatedAt: string;
2303
+ }[];
2304
+ total: number;
2305
+ limit: number;
2306
+ offset: number;
2307
+ };
2308
+ outputFormat: "json";
2309
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2310
+ };
2311
+ };
2312
+ } & {
2313
+ "/settlement-items": {
2314
+ $post: {
2315
+ input: {};
2316
+ output: {
2317
+ data: {
2318
+ bookingId: string | null;
2319
+ createdAt: string;
2320
+ updatedAt: string;
2321
+ notes: string | null;
2322
+ id: string;
2323
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2324
+ currencyCode: string | null;
2325
+ paidAt: string | null;
2326
+ settlementRunId: string;
2327
+ bookingLinkId: string | null;
2328
+ commissionRuleId: string | null;
2329
+ grossAmountCents: number;
2330
+ commissionAmountCents: number;
2331
+ netRemittanceAmountCents: number;
2332
+ remittanceDueAt: string | null;
2333
+ } | undefined;
2334
+ };
2335
+ outputFormat: "json";
2336
+ status: 201;
2337
+ };
2338
+ };
2339
+ } & {
2340
+ "/settlement-items/:id": {
2341
+ $get: {
2342
+ input: {
2343
+ param: {
2344
+ id: string;
2345
+ };
2346
+ };
2347
+ output: {
2348
+ error: string;
2349
+ };
2350
+ outputFormat: "json";
2351
+ status: 404;
2352
+ } | {
2353
+ input: {
2354
+ param: {
2355
+ id: string;
2356
+ };
2357
+ };
2358
+ output: {
2359
+ data: {
2360
+ id: string;
2361
+ settlementRunId: string;
2362
+ bookingLinkId: string | null;
2363
+ bookingId: string | null;
2364
+ commissionRuleId: string | null;
2365
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2366
+ grossAmountCents: number;
2367
+ commissionAmountCents: number;
2368
+ netRemittanceAmountCents: number;
2369
+ currencyCode: string | null;
2370
+ remittanceDueAt: string | null;
2371
+ paidAt: string | null;
2372
+ notes: string | null;
2373
+ createdAt: string;
2374
+ updatedAt: string;
2375
+ };
2376
+ };
2377
+ outputFormat: "json";
2378
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2379
+ };
2380
+ };
2381
+ } & {
2382
+ "/settlement-items/:id": {
2383
+ $patch: {
2384
+ input: {
2385
+ param: {
2386
+ id: string;
2387
+ };
2388
+ };
2389
+ output: {
2390
+ error: string;
2391
+ };
2392
+ outputFormat: "json";
2393
+ status: 404;
2394
+ } | {
2395
+ input: {
2396
+ param: {
2397
+ id: string;
2398
+ };
2399
+ };
2400
+ output: {
2401
+ data: {
2402
+ id: string;
2403
+ settlementRunId: string;
2404
+ bookingLinkId: string | null;
2405
+ bookingId: string | null;
2406
+ commissionRuleId: string | null;
2407
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2408
+ grossAmountCents: number;
2409
+ commissionAmountCents: number;
2410
+ netRemittanceAmountCents: number;
2411
+ currencyCode: string | null;
2412
+ remittanceDueAt: string | null;
2413
+ paidAt: string | null;
2414
+ notes: string | null;
2415
+ createdAt: string;
2416
+ updatedAt: string;
2417
+ };
2418
+ };
2419
+ outputFormat: "json";
2420
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2421
+ };
2422
+ };
2423
+ } & {
2424
+ "/settlement-items/:id": {
2425
+ $delete: {
2426
+ input: {
2427
+ param: {
2428
+ id: string;
2429
+ };
2430
+ };
2431
+ output: {
2432
+ error: string;
2433
+ };
2434
+ outputFormat: "json";
2435
+ status: 404;
2436
+ } | {
2437
+ input: {
2438
+ param: {
2439
+ id: string;
2440
+ };
2441
+ };
2442
+ output: {
2443
+ success: true;
2444
+ };
2445
+ outputFormat: "json";
2446
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2447
+ };
2448
+ };
2449
+ } & {
2450
+ "/reconciliation-runs": {
2451
+ $get: {
2452
+ input: {};
2453
+ output: {
2454
+ data: {
2455
+ id: string;
2456
+ channelId: string;
2457
+ contractId: string | null;
2458
+ status: "draft" | "archived" | "running" | "completed";
2459
+ periodStart: string | null;
2460
+ periodEnd: string | null;
2461
+ externalReportReference: string | null;
2462
+ startedAt: string | null;
2463
+ completedAt: string | null;
2464
+ notes: string | null;
2465
+ metadata: {
2466
+ [x: string]: import("hono/utils/types").JSONValue;
2467
+ } | null;
2468
+ createdAt: string;
2469
+ updatedAt: string;
2470
+ }[];
2471
+ total: number;
2472
+ limit: number;
2473
+ offset: number;
2474
+ };
2475
+ outputFormat: "json";
2476
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2477
+ };
2478
+ };
2479
+ } & {
2480
+ "/reconciliation-runs": {
2481
+ $post: {
2482
+ input: {};
2483
+ output: {
2484
+ data: {
2485
+ createdAt: string;
2486
+ updatedAt: string;
2487
+ notes: string | null;
2488
+ metadata: {
2489
+ [x: string]: import("hono/utils/types").JSONValue;
2490
+ } | null;
2491
+ id: string;
2492
+ status: "draft" | "archived" | "running" | "completed";
2493
+ channelId: string;
2494
+ contractId: string | null;
2495
+ periodStart: string | null;
2496
+ periodEnd: string | null;
2497
+ externalReportReference: string | null;
2498
+ startedAt: string | null;
2499
+ completedAt: string | null;
2500
+ } | undefined;
2501
+ };
2502
+ outputFormat: "json";
2503
+ status: 201;
2504
+ };
2505
+ };
2506
+ } & {
2507
+ "/reconciliation-runs/:id": {
2508
+ $get: {
2509
+ input: {
2510
+ param: {
2511
+ id: string;
2512
+ };
2513
+ };
2514
+ output: {
2515
+ error: string;
2516
+ };
2517
+ outputFormat: "json";
2518
+ status: 404;
2519
+ } | {
2520
+ input: {
2521
+ param: {
2522
+ id: string;
2523
+ };
2524
+ };
2525
+ output: {
2526
+ data: {
2527
+ id: string;
2528
+ channelId: string;
2529
+ contractId: string | null;
2530
+ status: "draft" | "archived" | "running" | "completed";
2531
+ periodStart: string | null;
2532
+ periodEnd: string | null;
2533
+ externalReportReference: string | null;
2534
+ startedAt: string | null;
2535
+ completedAt: string | null;
2536
+ notes: string | null;
2537
+ metadata: {
2538
+ [x: string]: import("hono/utils/types").JSONValue;
2539
+ } | null;
2540
+ createdAt: string;
2541
+ updatedAt: string;
2542
+ };
2543
+ };
2544
+ outputFormat: "json";
2545
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2546
+ };
2547
+ };
2548
+ } & {
2549
+ "/reconciliation-runs/:id": {
2550
+ $patch: {
2551
+ input: {
2552
+ param: {
2553
+ id: string;
2554
+ };
2555
+ };
2556
+ output: {
2557
+ error: string;
2558
+ };
2559
+ outputFormat: "json";
2560
+ status: 404;
2561
+ } | {
2562
+ input: {
2563
+ param: {
2564
+ id: string;
2565
+ };
2566
+ };
2567
+ output: {
2568
+ data: {
2569
+ id: string;
2570
+ channelId: string;
2571
+ contractId: string | null;
2572
+ status: "draft" | "archived" | "running" | "completed";
2573
+ periodStart: string | null;
2574
+ periodEnd: string | null;
2575
+ externalReportReference: string | null;
2576
+ startedAt: string | null;
2577
+ completedAt: string | null;
2578
+ notes: string | null;
2579
+ metadata: {
2580
+ [x: string]: import("hono/utils/types").JSONValue;
2581
+ } | null;
2582
+ createdAt: string;
2583
+ updatedAt: string;
2584
+ };
2585
+ };
2586
+ outputFormat: "json";
2587
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2588
+ };
2589
+ };
2590
+ } & {
2591
+ "/reconciliation-runs/:id": {
2592
+ $delete: {
2593
+ input: {
2594
+ param: {
2595
+ id: string;
2596
+ };
2597
+ };
2598
+ output: {
2599
+ error: string;
2600
+ };
2601
+ outputFormat: "json";
2602
+ status: 404;
2603
+ } | {
2604
+ input: {
2605
+ param: {
2606
+ id: string;
2607
+ };
2608
+ };
2609
+ output: {
2610
+ success: true;
2611
+ };
2612
+ outputFormat: "json";
2613
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2614
+ };
2615
+ };
2616
+ } & {
2617
+ "/reconciliation-items": {
2618
+ $get: {
2619
+ input: {};
2620
+ output: {
2621
+ data: {
2622
+ id: string;
2623
+ reconciliationRunId: string;
2624
+ bookingLinkId: string | null;
2625
+ bookingId: string | null;
2626
+ externalBookingId: string | null;
2627
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2628
+ severity: "error" | "info" | "warning";
2629
+ resolutionStatus: "open" | "ignored" | "resolved";
2630
+ notes: string | null;
2631
+ resolvedAt: string | null;
2632
+ createdAt: string;
2633
+ updatedAt: string;
2634
+ }[];
2635
+ total: number;
2636
+ limit: number;
2637
+ offset: number;
2638
+ };
2639
+ outputFormat: "json";
2640
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2641
+ };
2642
+ };
2643
+ } & {
2644
+ "/reconciliation-items": {
2645
+ $post: {
2646
+ input: {};
2647
+ output: {
2648
+ data: {
2649
+ bookingId: string | null;
2650
+ createdAt: string;
2651
+ updatedAt: string;
2652
+ notes: string | null;
2653
+ id: string;
2654
+ externalBookingId: string | null;
2655
+ bookingLinkId: string | null;
2656
+ reconciliationRunId: string;
2657
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2658
+ severity: "error" | "info" | "warning";
2659
+ resolutionStatus: "open" | "ignored" | "resolved";
2660
+ resolvedAt: string | null;
2661
+ } | undefined;
2662
+ };
2663
+ outputFormat: "json";
2664
+ status: 201;
2665
+ };
2666
+ };
2667
+ } & {
2668
+ "/reconciliation-items/:id": {
2669
+ $get: {
2670
+ input: {
2671
+ param: {
2672
+ id: string;
2673
+ };
2674
+ };
2675
+ output: {
2676
+ error: string;
2677
+ };
2678
+ outputFormat: "json";
2679
+ status: 404;
2680
+ } | {
2681
+ input: {
2682
+ param: {
2683
+ id: string;
2684
+ };
2685
+ };
2686
+ output: {
2687
+ data: {
2688
+ id: string;
2689
+ reconciliationRunId: string;
2690
+ bookingLinkId: string | null;
2691
+ bookingId: string | null;
2692
+ externalBookingId: string | null;
2693
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2694
+ severity: "error" | "info" | "warning";
2695
+ resolutionStatus: "open" | "ignored" | "resolved";
2696
+ notes: string | null;
2697
+ resolvedAt: string | null;
2698
+ createdAt: string;
2699
+ updatedAt: string;
2700
+ };
2701
+ };
2702
+ outputFormat: "json";
2703
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2704
+ };
2705
+ };
2706
+ } & {
2707
+ "/reconciliation-items/:id": {
2708
+ $patch: {
2709
+ input: {
2710
+ param: {
2711
+ id: string;
2712
+ };
2713
+ };
2714
+ output: {
2715
+ error: string;
2716
+ };
2717
+ outputFormat: "json";
2718
+ status: 404;
2719
+ } | {
2720
+ input: {
2721
+ param: {
2722
+ id: string;
2723
+ };
2724
+ };
2725
+ output: {
2726
+ data: {
2727
+ id: string;
2728
+ reconciliationRunId: string;
2729
+ bookingLinkId: string | null;
2730
+ bookingId: string | null;
2731
+ externalBookingId: string | null;
2732
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2733
+ severity: "error" | "info" | "warning";
2734
+ resolutionStatus: "open" | "ignored" | "resolved";
2735
+ notes: string | null;
2736
+ resolvedAt: string | null;
2737
+ createdAt: string;
2738
+ updatedAt: string;
2739
+ };
2740
+ };
2741
+ outputFormat: "json";
2742
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2743
+ };
2744
+ };
2745
+ } & {
2746
+ "/reconciliation-items/:id": {
2747
+ $delete: {
2748
+ input: {
2749
+ param: {
2750
+ id: string;
2751
+ };
2752
+ };
2753
+ output: {
2754
+ error: string;
2755
+ };
2756
+ outputFormat: "json";
2757
+ status: 404;
2758
+ } | {
2759
+ input: {
2760
+ param: {
2761
+ id: string;
2762
+ };
2763
+ };
2764
+ output: {
2765
+ success: true;
2766
+ };
2767
+ outputFormat: "json";
2768
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2769
+ };
2770
+ };
2771
+ } & {
2772
+ "/inventory-release-executions": {
2773
+ $get: {
2774
+ input: {};
2775
+ output: {
2776
+ data: {
2777
+ id: string;
2778
+ allotmentId: string;
2779
+ releaseRuleId: string | null;
2780
+ targetId: string | null;
2781
+ slotId: string | null;
2782
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2783
+ status: "pending" | "failed" | "completed" | "skipped";
2784
+ releasedCapacity: number | null;
2785
+ executedAt: string | null;
2786
+ notes: string | null;
2787
+ metadata: {
2788
+ [x: string]: import("hono/utils/types").JSONValue;
2789
+ } | null;
2790
+ createdAt: string;
2791
+ updatedAt: string;
2792
+ }[];
2793
+ total: number;
2794
+ limit: number;
2795
+ offset: number;
2796
+ };
2797
+ outputFormat: "json";
2798
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2799
+ };
2800
+ };
2801
+ } & {
2802
+ "/inventory-release-executions": {
2803
+ $post: {
2804
+ input: {};
2805
+ output: {
2806
+ data: {
2807
+ createdAt: string;
2808
+ updatedAt: string;
2809
+ notes: string | null;
2810
+ metadata: {
2811
+ [x: string]: import("hono/utils/types").JSONValue;
2812
+ } | null;
2813
+ id: string;
2814
+ status: "pending" | "failed" | "completed" | "skipped";
2815
+ slotId: string | null;
2816
+ allotmentId: string;
2817
+ releaseRuleId: string | null;
2818
+ targetId: string | null;
2819
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2820
+ releasedCapacity: number | null;
2821
+ executedAt: string | null;
2822
+ } | undefined;
2823
+ };
2824
+ outputFormat: "json";
2825
+ status: 201;
2826
+ };
2827
+ };
2828
+ } & {
2829
+ "/inventory-release-executions/:id": {
2830
+ $get: {
2831
+ input: {
2832
+ param: {
2833
+ id: string;
2834
+ };
2835
+ };
2836
+ output: {
2837
+ error: string;
2838
+ };
2839
+ outputFormat: "json";
2840
+ status: 404;
2841
+ } | {
2842
+ input: {
2843
+ param: {
2844
+ id: string;
2845
+ };
2846
+ };
2847
+ output: {
2848
+ data: {
2849
+ id: string;
2850
+ allotmentId: string;
2851
+ releaseRuleId: string | null;
2852
+ targetId: string | null;
2853
+ slotId: string | null;
2854
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2855
+ status: "pending" | "failed" | "completed" | "skipped";
2856
+ releasedCapacity: number | null;
2857
+ executedAt: string | null;
2858
+ notes: string | null;
2859
+ metadata: {
2860
+ [x: string]: import("hono/utils/types").JSONValue;
2861
+ } | null;
2862
+ createdAt: string;
2863
+ updatedAt: string;
2864
+ };
2865
+ };
2866
+ outputFormat: "json";
2867
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2868
+ };
2869
+ };
2870
+ } & {
2871
+ "/inventory-release-executions/:id": {
2872
+ $patch: {
2873
+ input: {
2874
+ param: {
2875
+ id: string;
2876
+ };
2877
+ };
2878
+ output: {
2879
+ error: string;
2880
+ };
2881
+ outputFormat: "json";
2882
+ status: 404;
2883
+ } | {
2884
+ input: {
2885
+ param: {
2886
+ id: string;
2887
+ };
2888
+ };
2889
+ output: {
2890
+ data: {
2891
+ id: string;
2892
+ allotmentId: string;
2893
+ releaseRuleId: string | null;
2894
+ targetId: string | null;
2895
+ slotId: string | null;
2896
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2897
+ status: "pending" | "failed" | "completed" | "skipped";
2898
+ releasedCapacity: number | null;
2899
+ executedAt: string | null;
2900
+ notes: string | null;
2901
+ metadata: {
2902
+ [x: string]: import("hono/utils/types").JSONValue;
2903
+ } | null;
2904
+ createdAt: string;
2905
+ updatedAt: string;
2906
+ };
2907
+ };
2908
+ outputFormat: "json";
2909
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2910
+ };
2911
+ };
2912
+ } & {
2913
+ "/inventory-release-executions/:id": {
2914
+ $delete: {
2915
+ input: {
2916
+ param: {
2917
+ id: string;
2918
+ };
2919
+ };
2920
+ output: {
2921
+ error: string;
2922
+ };
2923
+ outputFormat: "json";
2924
+ status: 404;
2925
+ } | {
2926
+ input: {
2927
+ param: {
2928
+ id: string;
2929
+ };
2930
+ };
2931
+ output: {
2932
+ success: true;
2933
+ };
2934
+ outputFormat: "json";
2935
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2936
+ };
2937
+ };
2938
+ } & {
2939
+ "/settlement-policies": {
2940
+ $get: {
2941
+ input: {};
2942
+ output: {
2943
+ data: {
2944
+ id: string;
2945
+ channelId: string;
2946
+ contractId: string | null;
2947
+ frequency: "manual" | "daily" | "weekly" | "monthly";
2948
+ autoGenerate: boolean;
2949
+ approvalRequired: boolean;
2950
+ remittanceDaysAfterPeriodEnd: number | null;
2951
+ minimumPayoutAmountCents: number | null;
2952
+ currencyCode: string | null;
2953
+ active: boolean;
2954
+ notes: string | null;
2955
+ metadata: {
2956
+ [x: string]: import("hono/utils/types").JSONValue;
2957
+ } | null;
2958
+ createdAt: string;
2959
+ updatedAt: string;
2960
+ }[];
2961
+ total: number;
2962
+ limit: number;
2963
+ offset: number;
2964
+ };
2965
+ outputFormat: "json";
2966
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2967
+ };
2968
+ };
2969
+ } & {
2970
+ "/settlement-policies": {
2971
+ $post: {
2972
+ input: {};
2973
+ output: {
2974
+ data: {
2975
+ createdAt: string;
2976
+ updatedAt: string;
2977
+ notes: string | null;
2978
+ metadata: {
2979
+ [x: string]: import("hono/utils/types").JSONValue;
2980
+ } | null;
2981
+ id: string;
2982
+ active: boolean;
2983
+ channelId: string;
2984
+ contractId: string | null;
2985
+ currencyCode: string | null;
2986
+ frequency: "manual" | "daily" | "weekly" | "monthly";
2987
+ autoGenerate: boolean;
2988
+ approvalRequired: boolean;
2989
+ remittanceDaysAfterPeriodEnd: number | null;
2990
+ minimumPayoutAmountCents: number | null;
2991
+ } | undefined;
2992
+ };
2993
+ outputFormat: "json";
2994
+ status: 201;
2995
+ };
2996
+ };
2997
+ } & {
2998
+ "/settlement-policies/:id": {
2999
+ $get: {
3000
+ input: {
3001
+ param: {
3002
+ id: string;
3003
+ };
3004
+ };
3005
+ output: {
3006
+ error: string;
3007
+ };
3008
+ outputFormat: "json";
3009
+ status: 404;
3010
+ } | {
3011
+ input: {
3012
+ param: {
3013
+ id: string;
3014
+ };
3015
+ };
3016
+ output: {
3017
+ data: {
3018
+ id: string;
3019
+ channelId: string;
3020
+ contractId: string | null;
3021
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3022
+ autoGenerate: boolean;
3023
+ approvalRequired: boolean;
3024
+ remittanceDaysAfterPeriodEnd: number | null;
3025
+ minimumPayoutAmountCents: number | null;
3026
+ currencyCode: string | null;
3027
+ active: boolean;
3028
+ notes: string | null;
3029
+ metadata: {
3030
+ [x: string]: import("hono/utils/types").JSONValue;
3031
+ } | null;
3032
+ createdAt: string;
3033
+ updatedAt: string;
3034
+ };
3035
+ };
3036
+ outputFormat: "json";
3037
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3038
+ };
3039
+ };
3040
+ } & {
3041
+ "/settlement-policies/:id": {
3042
+ $patch: {
3043
+ input: {
3044
+ param: {
3045
+ id: string;
3046
+ };
3047
+ };
3048
+ output: {
3049
+ error: string;
3050
+ };
3051
+ outputFormat: "json";
3052
+ status: 404;
3053
+ } | {
3054
+ input: {
3055
+ param: {
3056
+ id: string;
3057
+ };
3058
+ };
3059
+ output: {
3060
+ data: {
3061
+ id: string;
3062
+ channelId: string;
3063
+ contractId: string | null;
3064
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3065
+ autoGenerate: boolean;
3066
+ approvalRequired: boolean;
3067
+ remittanceDaysAfterPeriodEnd: number | null;
3068
+ minimumPayoutAmountCents: number | null;
3069
+ currencyCode: string | null;
3070
+ active: boolean;
3071
+ notes: string | null;
3072
+ metadata: {
3073
+ [x: string]: import("hono/utils/types").JSONValue;
3074
+ } | null;
3075
+ createdAt: string;
3076
+ updatedAt: string;
3077
+ };
3078
+ };
3079
+ outputFormat: "json";
3080
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3081
+ };
3082
+ };
3083
+ } & {
3084
+ "/settlement-policies/:id": {
3085
+ $delete: {
3086
+ input: {
3087
+ param: {
3088
+ id: string;
3089
+ };
3090
+ };
3091
+ output: {
3092
+ error: string;
3093
+ };
3094
+ outputFormat: "json";
3095
+ status: 404;
3096
+ } | {
3097
+ input: {
3098
+ param: {
3099
+ id: string;
3100
+ };
3101
+ };
3102
+ output: {
3103
+ success: true;
3104
+ };
3105
+ outputFormat: "json";
3106
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3107
+ };
3108
+ };
3109
+ } & {
3110
+ "/reconciliation-policies": {
3111
+ $get: {
3112
+ input: {};
3113
+ output: {
3114
+ data: {
3115
+ id: string;
3116
+ channelId: string;
3117
+ contractId: string | null;
3118
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3119
+ autoRun: boolean;
3120
+ compareGrossAmounts: boolean;
3121
+ compareStatuses: boolean;
3122
+ compareCancellations: boolean;
3123
+ amountToleranceCents: number | null;
3124
+ active: boolean;
3125
+ notes: string | null;
3126
+ metadata: {
3127
+ [x: string]: import("hono/utils/types").JSONValue;
3128
+ } | null;
3129
+ createdAt: string;
3130
+ updatedAt: string;
3131
+ }[];
3132
+ total: number;
3133
+ limit: number;
3134
+ offset: number;
3135
+ };
3136
+ outputFormat: "json";
3137
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3138
+ };
3139
+ };
3140
+ } & {
3141
+ "/reconciliation-policies": {
3142
+ $post: {
3143
+ input: {};
3144
+ output: {
3145
+ data: {
3146
+ createdAt: string;
3147
+ updatedAt: string;
3148
+ notes: string | null;
3149
+ metadata: {
3150
+ [x: string]: import("hono/utils/types").JSONValue;
3151
+ } | null;
3152
+ id: string;
3153
+ active: boolean;
3154
+ channelId: string;
3155
+ contractId: string | null;
3156
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3157
+ autoRun: boolean;
3158
+ compareGrossAmounts: boolean;
3159
+ compareStatuses: boolean;
3160
+ compareCancellations: boolean;
3161
+ amountToleranceCents: number | null;
3162
+ } | undefined;
3163
+ };
3164
+ outputFormat: "json";
3165
+ status: 201;
3166
+ };
3167
+ };
3168
+ } & {
3169
+ "/reconciliation-policies/:id": {
3170
+ $get: {
3171
+ input: {
3172
+ param: {
3173
+ id: string;
3174
+ };
3175
+ };
3176
+ output: {
3177
+ error: string;
3178
+ };
3179
+ outputFormat: "json";
3180
+ status: 404;
3181
+ } | {
3182
+ input: {
3183
+ param: {
3184
+ id: string;
3185
+ };
3186
+ };
3187
+ output: {
3188
+ data: {
3189
+ id: string;
3190
+ channelId: string;
3191
+ contractId: string | null;
3192
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3193
+ autoRun: boolean;
3194
+ compareGrossAmounts: boolean;
3195
+ compareStatuses: boolean;
3196
+ compareCancellations: boolean;
3197
+ amountToleranceCents: number | null;
3198
+ active: boolean;
3199
+ notes: string | null;
3200
+ metadata: {
3201
+ [x: string]: import("hono/utils/types").JSONValue;
3202
+ } | null;
3203
+ createdAt: string;
3204
+ updatedAt: string;
3205
+ };
3206
+ };
3207
+ outputFormat: "json";
3208
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3209
+ };
3210
+ };
3211
+ } & {
3212
+ "/reconciliation-policies/:id": {
3213
+ $patch: {
3214
+ input: {
3215
+ param: {
3216
+ id: string;
3217
+ };
3218
+ };
3219
+ output: {
3220
+ error: string;
3221
+ };
3222
+ outputFormat: "json";
3223
+ status: 404;
3224
+ } | {
3225
+ input: {
3226
+ param: {
3227
+ id: string;
3228
+ };
3229
+ };
3230
+ output: {
3231
+ data: {
3232
+ id: string;
3233
+ channelId: string;
3234
+ contractId: string | null;
3235
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3236
+ autoRun: boolean;
3237
+ compareGrossAmounts: boolean;
3238
+ compareStatuses: boolean;
3239
+ compareCancellations: boolean;
3240
+ amountToleranceCents: number | null;
3241
+ active: boolean;
3242
+ notes: string | null;
3243
+ metadata: {
3244
+ [x: string]: import("hono/utils/types").JSONValue;
3245
+ } | null;
3246
+ createdAt: string;
3247
+ updatedAt: string;
3248
+ };
3249
+ };
3250
+ outputFormat: "json";
3251
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3252
+ };
3253
+ };
3254
+ } & {
3255
+ "/reconciliation-policies/:id": {
3256
+ $delete: {
3257
+ input: {
3258
+ param: {
3259
+ id: string;
3260
+ };
3261
+ };
3262
+ output: {
3263
+ error: string;
3264
+ };
3265
+ outputFormat: "json";
3266
+ status: 404;
3267
+ } | {
3268
+ input: {
3269
+ param: {
3270
+ id: string;
3271
+ };
3272
+ };
3273
+ output: {
3274
+ success: true;
3275
+ };
3276
+ outputFormat: "json";
3277
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3278
+ };
3279
+ };
3280
+ } & {
3281
+ "/release-schedules": {
3282
+ $get: {
3283
+ input: {};
3284
+ output: {
3285
+ data: {
3286
+ id: string;
3287
+ releaseRuleId: string;
3288
+ scheduleKind: "manual" | "daily" | "hourly";
3289
+ nextRunAt: string | null;
3290
+ lastRunAt: string | null;
3291
+ active: boolean;
3292
+ notes: string | null;
3293
+ metadata: {
3294
+ [x: string]: import("hono/utils/types").JSONValue;
3295
+ } | null;
3296
+ createdAt: string;
3297
+ updatedAt: string;
3298
+ }[];
3299
+ total: number;
3300
+ limit: number;
3301
+ offset: number;
3302
+ };
3303
+ outputFormat: "json";
3304
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3305
+ };
3306
+ };
3307
+ } & {
3308
+ "/release-schedules": {
3309
+ $post: {
3310
+ input: {};
3311
+ output: {
3312
+ data: {
3313
+ createdAt: string;
3314
+ updatedAt: string;
3315
+ notes: string | null;
3316
+ metadata: {
3317
+ [x: string]: import("hono/utils/types").JSONValue;
3318
+ } | null;
3319
+ id: string;
3320
+ active: boolean;
3321
+ releaseRuleId: string;
3322
+ scheduleKind: "manual" | "daily" | "hourly";
3323
+ nextRunAt: string | null;
3324
+ lastRunAt: string | null;
3325
+ } | undefined;
3326
+ };
3327
+ outputFormat: "json";
3328
+ status: 201;
3329
+ };
3330
+ };
3331
+ } & {
3332
+ "/release-schedules/:id": {
3333
+ $get: {
3334
+ input: {
3335
+ param: {
3336
+ id: string;
3337
+ };
3338
+ };
3339
+ output: {
3340
+ error: string;
3341
+ };
3342
+ outputFormat: "json";
3343
+ status: 404;
3344
+ } | {
3345
+ input: {
3346
+ param: {
3347
+ id: string;
3348
+ };
3349
+ };
3350
+ output: {
3351
+ data: {
3352
+ id: string;
3353
+ releaseRuleId: string;
3354
+ scheduleKind: "manual" | "daily" | "hourly";
3355
+ nextRunAt: string | null;
3356
+ lastRunAt: string | null;
3357
+ active: boolean;
3358
+ notes: string | null;
3359
+ metadata: {
3360
+ [x: string]: import("hono/utils/types").JSONValue;
3361
+ } | null;
3362
+ createdAt: string;
3363
+ updatedAt: string;
3364
+ };
3365
+ };
3366
+ outputFormat: "json";
3367
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3368
+ };
3369
+ };
3370
+ } & {
3371
+ "/release-schedules/:id": {
3372
+ $patch: {
3373
+ input: {
3374
+ param: {
3375
+ id: string;
3376
+ };
3377
+ };
3378
+ output: {
3379
+ error: string;
3380
+ };
3381
+ outputFormat: "json";
3382
+ status: 404;
3383
+ } | {
3384
+ input: {
3385
+ param: {
3386
+ id: string;
3387
+ };
3388
+ };
3389
+ output: {
3390
+ data: {
3391
+ id: string;
3392
+ releaseRuleId: string;
3393
+ scheduleKind: "manual" | "daily" | "hourly";
3394
+ nextRunAt: string | null;
3395
+ lastRunAt: string | null;
3396
+ active: boolean;
3397
+ notes: string | null;
3398
+ metadata: {
3399
+ [x: string]: import("hono/utils/types").JSONValue;
3400
+ } | null;
3401
+ createdAt: string;
3402
+ updatedAt: string;
3403
+ };
3404
+ };
3405
+ outputFormat: "json";
3406
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3407
+ };
3408
+ };
3409
+ } & {
3410
+ "/release-schedules/:id": {
3411
+ $delete: {
3412
+ input: {
3413
+ param: {
3414
+ id: string;
3415
+ };
3416
+ };
3417
+ output: {
3418
+ error: string;
3419
+ };
3420
+ outputFormat: "json";
3421
+ status: 404;
3422
+ } | {
3423
+ input: {
3424
+ param: {
3425
+ id: string;
3426
+ };
3427
+ };
3428
+ output: {
3429
+ success: true;
3430
+ };
3431
+ outputFormat: "json";
3432
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3433
+ };
3434
+ };
3435
+ } & {
3436
+ "/remittance-exceptions": {
3437
+ $get: {
3438
+ input: {};
3439
+ output: {
3440
+ data: {
3441
+ id: string;
3442
+ channelId: string;
3443
+ settlementItemId: string | null;
3444
+ reconciliationItemId: string | null;
3445
+ exceptionType: string;
3446
+ severity: "error" | "info" | "warning";
3447
+ status: "open" | "ignored" | "resolved" | "investigating";
3448
+ openedAt: string;
3449
+ resolvedAt: string | null;
3450
+ notes: string | null;
3451
+ metadata: {
3452
+ [x: string]: import("hono/utils/types").JSONValue;
3453
+ } | null;
3454
+ createdAt: string;
3455
+ updatedAt: string;
3456
+ }[];
3457
+ total: number;
3458
+ limit: number;
3459
+ offset: number;
3460
+ };
3461
+ outputFormat: "json";
3462
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3463
+ };
3464
+ };
3465
+ } & {
3466
+ "/remittance-exceptions": {
3467
+ $post: {
3468
+ input: {};
3469
+ output: {
3470
+ data: {
3471
+ createdAt: string;
3472
+ updatedAt: string;
3473
+ notes: string | null;
3474
+ metadata: {
3475
+ [x: string]: import("hono/utils/types").JSONValue;
3476
+ } | null;
3477
+ id: string;
3478
+ status: "open" | "ignored" | "resolved" | "investigating";
3479
+ channelId: string;
3480
+ severity: "error" | "info" | "warning";
3481
+ resolvedAt: string | null;
3482
+ settlementItemId: string | null;
3483
+ reconciliationItemId: string | null;
3484
+ exceptionType: string;
3485
+ openedAt: string;
3486
+ } | undefined;
3487
+ };
3488
+ outputFormat: "json";
3489
+ status: 201;
3490
+ };
3491
+ };
3492
+ } & {
3493
+ "/remittance-exceptions/:id": {
3494
+ $get: {
3495
+ input: {
3496
+ param: {
3497
+ id: string;
3498
+ };
3499
+ };
3500
+ output: {
3501
+ error: string;
3502
+ };
3503
+ outputFormat: "json";
3504
+ status: 404;
3505
+ } | {
3506
+ input: {
3507
+ param: {
3508
+ id: string;
3509
+ };
3510
+ };
3511
+ output: {
3512
+ data: {
3513
+ id: string;
3514
+ channelId: string;
3515
+ settlementItemId: string | null;
3516
+ reconciliationItemId: string | null;
3517
+ exceptionType: string;
3518
+ severity: "error" | "info" | "warning";
3519
+ status: "open" | "ignored" | "resolved" | "investigating";
3520
+ openedAt: string;
3521
+ resolvedAt: string | null;
3522
+ notes: string | null;
3523
+ metadata: {
3524
+ [x: string]: import("hono/utils/types").JSONValue;
3525
+ } | null;
3526
+ createdAt: string;
3527
+ updatedAt: string;
3528
+ };
3529
+ };
3530
+ outputFormat: "json";
3531
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3532
+ };
3533
+ };
3534
+ } & {
3535
+ "/remittance-exceptions/:id": {
3536
+ $patch: {
3537
+ input: {
3538
+ param: {
3539
+ id: string;
3540
+ };
3541
+ };
3542
+ output: {
3543
+ error: string;
3544
+ };
3545
+ outputFormat: "json";
3546
+ status: 404;
3547
+ } | {
3548
+ input: {
3549
+ param: {
3550
+ id: string;
3551
+ };
3552
+ };
3553
+ output: {
3554
+ data: {
3555
+ id: string;
3556
+ channelId: string;
3557
+ settlementItemId: string | null;
3558
+ reconciliationItemId: string | null;
3559
+ exceptionType: string;
3560
+ severity: "error" | "info" | "warning";
3561
+ status: "open" | "ignored" | "resolved" | "investigating";
3562
+ openedAt: string;
3563
+ resolvedAt: string | null;
3564
+ notes: string | null;
3565
+ metadata: {
3566
+ [x: string]: import("hono/utils/types").JSONValue;
3567
+ } | null;
3568
+ createdAt: string;
3569
+ updatedAt: string;
3570
+ };
3571
+ };
3572
+ outputFormat: "json";
3573
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3574
+ };
3575
+ };
3576
+ } & {
3577
+ "/remittance-exceptions/:id": {
3578
+ $delete: {
3579
+ input: {
3580
+ param: {
3581
+ id: string;
3582
+ };
3583
+ };
3584
+ output: {
3585
+ error: string;
3586
+ };
3587
+ outputFormat: "json";
3588
+ status: 404;
3589
+ } | {
3590
+ input: {
3591
+ param: {
3592
+ id: string;
3593
+ };
3594
+ };
3595
+ output: {
3596
+ success: true;
3597
+ };
3598
+ outputFormat: "json";
3599
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3600
+ };
3601
+ };
3602
+ } & {
3603
+ "/settlement-approvals": {
3604
+ $get: {
3605
+ input: {};
3606
+ output: {
3607
+ data: {
3608
+ id: string;
3609
+ settlementRunId: string;
3610
+ approverUserId: string | null;
3611
+ status: "pending" | "approved" | "rejected";
3612
+ decidedAt: string | null;
3613
+ notes: string | null;
3614
+ metadata: {
3615
+ [x: string]: import("hono/utils/types").JSONValue;
3616
+ } | null;
3617
+ createdAt: string;
3618
+ updatedAt: string;
3619
+ }[];
3620
+ total: number;
3621
+ limit: number;
3622
+ offset: number;
3623
+ };
3624
+ outputFormat: "json";
3625
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3626
+ };
3627
+ };
3628
+ } & {
3629
+ "/settlement-approvals": {
3630
+ $post: {
3631
+ input: {};
3632
+ output: {
3633
+ data: {
3634
+ createdAt: string;
3635
+ updatedAt: string;
3636
+ notes: string | null;
3637
+ metadata: {
3638
+ [x: string]: import("hono/utils/types").JSONValue;
3639
+ } | null;
3640
+ id: string;
3641
+ status: "pending" | "approved" | "rejected";
3642
+ settlementRunId: string;
3643
+ approverUserId: string | null;
3644
+ decidedAt: string | null;
3645
+ } | undefined;
3646
+ };
3647
+ outputFormat: "json";
3648
+ status: 201;
3649
+ };
3650
+ };
3651
+ } & {
3652
+ "/settlement-approvals/:id": {
3653
+ $get: {
3654
+ input: {
3655
+ param: {
3656
+ id: string;
3657
+ };
3658
+ };
3659
+ output: {
3660
+ error: string;
3661
+ };
3662
+ outputFormat: "json";
3663
+ status: 404;
3664
+ } | {
3665
+ input: {
3666
+ param: {
3667
+ id: string;
3668
+ };
3669
+ };
3670
+ output: {
3671
+ data: {
3672
+ id: string;
3673
+ settlementRunId: string;
3674
+ approverUserId: string | null;
3675
+ status: "pending" | "approved" | "rejected";
3676
+ decidedAt: string | null;
3677
+ notes: string | null;
3678
+ metadata: {
3679
+ [x: string]: import("hono/utils/types").JSONValue;
3680
+ } | null;
3681
+ createdAt: string;
3682
+ updatedAt: string;
3683
+ };
3684
+ };
3685
+ outputFormat: "json";
3686
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3687
+ };
3688
+ };
3689
+ } & {
3690
+ "/settlement-approvals/:id": {
3691
+ $patch: {
3692
+ input: {
3693
+ param: {
3694
+ id: string;
3695
+ };
3696
+ };
3697
+ output: {
3698
+ error: string;
3699
+ };
3700
+ outputFormat: "json";
3701
+ status: 404;
3702
+ } | {
3703
+ input: {
3704
+ param: {
3705
+ id: string;
3706
+ };
3707
+ };
3708
+ output: {
3709
+ data: {
3710
+ id: string;
3711
+ settlementRunId: string;
3712
+ approverUserId: string | null;
3713
+ status: "pending" | "approved" | "rejected";
3714
+ decidedAt: string | null;
3715
+ notes: string | null;
3716
+ metadata: {
3717
+ [x: string]: import("hono/utils/types").JSONValue;
3718
+ } | null;
3719
+ createdAt: string;
3720
+ updatedAt: string;
3721
+ };
3722
+ };
3723
+ outputFormat: "json";
3724
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3725
+ };
3726
+ };
3727
+ } & {
3728
+ "/settlement-approvals/:id": {
3729
+ $delete: {
3730
+ input: {
3731
+ param: {
3732
+ id: string;
3733
+ };
3734
+ };
3735
+ output: {
3736
+ error: string;
3737
+ };
3738
+ outputFormat: "json";
3739
+ status: 404;
3740
+ } | {
3741
+ input: {
3742
+ param: {
3743
+ id: string;
3744
+ };
3745
+ };
3746
+ output: {
3747
+ success: true;
3748
+ };
3749
+ outputFormat: "json";
3750
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3751
+ };
3752
+ };
3753
+ }, "/", "/settlement-approvals/:id">;
3754
+ export type DistributionRoutes = typeof distributionRoutes;
3755
+ export {};
3756
+ //# sourceMappingURL=routes.d.ts.map