@voyant-travel/distribution 0.109.8

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 (168) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +42 -0
  3. package/dist/booking-extension.d.ts +168 -0
  4. package/dist/booking-extension.d.ts.map +1 -0
  5. package/dist/booking-extension.js +102 -0
  6. package/dist/channel-push/admin-routes.d.ts +31 -0
  7. package/dist/channel-push/admin-routes.d.ts.map +1 -0
  8. package/dist/channel-push/admin-routes.js +165 -0
  9. package/dist/channel-push/availability-push.d.ts +76 -0
  10. package/dist/channel-push/availability-push.d.ts.map +1 -0
  11. package/dist/channel-push/availability-push.js +236 -0
  12. package/dist/channel-push/booking-push-helpers.d.ts +36 -0
  13. package/dist/channel-push/booking-push-helpers.d.ts.map +1 -0
  14. package/dist/channel-push/booking-push-helpers.js +169 -0
  15. package/dist/channel-push/booking-push.d.ts +108 -0
  16. package/dist/channel-push/booking-push.d.ts.map +1 -0
  17. package/dist/channel-push/booking-push.js +335 -0
  18. package/dist/channel-push/boundary-sql.d.ts +23 -0
  19. package/dist/channel-push/boundary-sql.d.ts.map +1 -0
  20. package/dist/channel-push/boundary-sql.js +75 -0
  21. package/dist/channel-push/content-push.d.ts +60 -0
  22. package/dist/channel-push/content-push.d.ts.map +1 -0
  23. package/dist/channel-push/content-push.js +252 -0
  24. package/dist/channel-push/index.d.ts +15 -0
  25. package/dist/channel-push/index.d.ts.map +1 -0
  26. package/dist/channel-push/index.js +18 -0
  27. package/dist/channel-push/plugin.d.ts +18 -0
  28. package/dist/channel-push/plugin.d.ts.map +1 -0
  29. package/dist/channel-push/plugin.js +21 -0
  30. package/dist/channel-push/reconciler.d.ts +85 -0
  31. package/dist/channel-push/reconciler.d.ts.map +1 -0
  32. package/dist/channel-push/reconciler.js +179 -0
  33. package/dist/channel-push/subscriber.d.ts +40 -0
  34. package/dist/channel-push/subscriber.d.ts.map +1 -0
  35. package/dist/channel-push/subscriber.js +199 -0
  36. package/dist/channel-push/types.d.ts +43 -0
  37. package/dist/channel-push/types.d.ts.map +1 -0
  38. package/dist/channel-push/types.js +32 -0
  39. package/dist/channel-push/workflows.d.ts +56 -0
  40. package/dist/channel-push/workflows.d.ts.map +1 -0
  41. package/dist/channel-push/workflows.js +100 -0
  42. package/dist/external-refs/index.d.ts +11 -0
  43. package/dist/external-refs/index.d.ts.map +1 -0
  44. package/dist/external-refs/index.js +12 -0
  45. package/dist/external-refs/routes.d.ts +253 -0
  46. package/dist/external-refs/routes.d.ts.map +1 -0
  47. package/dist/external-refs/routes.js +52 -0
  48. package/dist/external-refs/schema.d.ts +251 -0
  49. package/dist/external-refs/schema.d.ts.map +1 -0
  50. package/dist/external-refs/schema.js +32 -0
  51. package/dist/external-refs/service.d.ts +82 -0
  52. package/dist/external-refs/service.d.ts.map +1 -0
  53. package/dist/external-refs/service.js +112 -0
  54. package/dist/external-refs/validation.d.ts +91 -0
  55. package/dist/external-refs/validation.d.ts.map +1 -0
  56. package/dist/external-refs/validation.js +40 -0
  57. package/dist/index.d.ts +21 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +20 -0
  60. package/dist/interface-types.d.ts +128 -0
  61. package/dist/interface-types.d.ts.map +1 -0
  62. package/dist/interface-types.js +1 -0
  63. package/dist/interface.d.ts +10 -0
  64. package/dist/interface.d.ts.map +1 -0
  65. package/dist/interface.js +286 -0
  66. package/dist/rate-limit.d.ts +69 -0
  67. package/dist/rate-limit.d.ts.map +1 -0
  68. package/dist/rate-limit.js +135 -0
  69. package/dist/routes/batch.d.ts +200 -0
  70. package/dist/routes/batch.d.ts.map +1 -0
  71. package/dist/routes/batch.js +52 -0
  72. package/dist/routes/env.d.ts +8 -0
  73. package/dist/routes/env.d.ts.map +1 -0
  74. package/dist/routes/env.js +1 -0
  75. package/dist/routes/inventory.d.ts +604 -0
  76. package/dist/routes/inventory.d.ts.map +1 -0
  77. package/dist/routes/inventory.js +138 -0
  78. package/dist/routes/settlements.d.ts +1649 -0
  79. package/dist/routes/settlements.d.ts.map +1 -0
  80. package/dist/routes/settlements.js +265 -0
  81. package/dist/routes.d.ts +3909 -0
  82. package/dist/routes.d.ts.map +1 -0
  83. package/dist/routes.js +323 -0
  84. package/dist/schema-automation.d.ts +680 -0
  85. package/dist/schema-automation.d.ts.map +1 -0
  86. package/dist/schema-automation.js +76 -0
  87. package/dist/schema-core.d.ts +1674 -0
  88. package/dist/schema-core.d.ts.map +1 -0
  89. package/dist/schema-core.js +227 -0
  90. package/dist/schema-finance.d.ts +1372 -0
  91. package/dist/schema-finance.d.ts.map +1 -0
  92. package/dist/schema-finance.js +153 -0
  93. package/dist/schema-inventory.d.ts +855 -0
  94. package/dist/schema-inventory.d.ts.map +1 -0
  95. package/dist/schema-inventory.js +102 -0
  96. package/dist/schema-push-intents.d.ts +387 -0
  97. package/dist/schema-push-intents.d.ts.map +1 -0
  98. package/dist/schema-push-intents.js +77 -0
  99. package/dist/schema-relations.d.ts +95 -0
  100. package/dist/schema-relations.d.ts.map +1 -0
  101. package/dist/schema-relations.js +196 -0
  102. package/dist/schema-shared.d.ts +24 -0
  103. package/dist/schema-shared.d.ts.map +1 -0
  104. package/dist/schema-shared.js +123 -0
  105. package/dist/schema.d.ts +9 -0
  106. package/dist/schema.d.ts.map +1 -0
  107. package/dist/schema.js +8 -0
  108. package/dist/service/channels.d.ts +167 -0
  109. package/dist/service/channels.d.ts.map +1 -0
  110. package/dist/service/channels.js +305 -0
  111. package/dist/service/commercial.d.ts +385 -0
  112. package/dist/service/commercial.d.ts.map +1 -0
  113. package/dist/service/commercial.js +248 -0
  114. package/dist/service/helpers.d.ts +10 -0
  115. package/dist/service/helpers.d.ts.map +1 -0
  116. package/dist/service/helpers.js +7 -0
  117. package/dist/service/inventory.d.ts +193 -0
  118. package/dist/service/inventory.d.ts.map +1 -0
  119. package/dist/service/inventory.js +154 -0
  120. package/dist/service/settlement-policies.d.ts +325 -0
  121. package/dist/service/settlement-policies.d.ts.map +1 -0
  122. package/dist/service/settlement-policies.js +272 -0
  123. package/dist/service/settlements.d.ts +357 -0
  124. package/dist/service/settlements.d.ts.map +1 -0
  125. package/dist/service/settlements.js +319 -0
  126. package/dist/service/types.d.ts +60 -0
  127. package/dist/service/types.d.ts.map +1 -0
  128. package/dist/service/types.js +1 -0
  129. package/dist/service.d.ts +1418 -0
  130. package/dist/service.d.ts.map +1 -0
  131. package/dist/service.js +17 -0
  132. package/dist/suppliers/index.d.ts +15 -0
  133. package/dist/suppliers/index.d.ts.map +1 -0
  134. package/dist/suppliers/index.js +23 -0
  135. package/dist/suppliers/routes.d.ts +1202 -0
  136. package/dist/suppliers/routes.d.ts.map +1 -0
  137. package/dist/suppliers/routes.js +290 -0
  138. package/dist/suppliers/schema.d.ts +1272 -0
  139. package/dist/suppliers/schema.d.ts.map +1 -0
  140. package/dist/suppliers/schema.js +219 -0
  141. package/dist/suppliers/service-aggregates.d.ts +23 -0
  142. package/dist/suppliers/service-aggregates.d.ts.map +1 -0
  143. package/dist/suppliers/service-aggregates.js +51 -0
  144. package/dist/suppliers/service-core.d.ts +89 -0
  145. package/dist/suppliers/service-core.d.ts.map +1 -0
  146. package/dist/suppliers/service-core.js +164 -0
  147. package/dist/suppliers/service-identity.d.ts +162 -0
  148. package/dist/suppliers/service-identity.d.ts.map +1 -0
  149. package/dist/suppliers/service-identity.js +101 -0
  150. package/dist/suppliers/service-operations.d.ts +1500 -0
  151. package/dist/suppliers/service-operations.d.ts.map +1 -0
  152. package/dist/suppliers/service-operations.js +157 -0
  153. package/dist/suppliers/service-shared.d.ts +45 -0
  154. package/dist/suppliers/service-shared.d.ts.map +1 -0
  155. package/dist/suppliers/service-shared.js +294 -0
  156. package/dist/suppliers/service.d.ts +41 -0
  157. package/dist/suppliers/service.d.ts.map +1 -0
  158. package/dist/suppliers/service.js +40 -0
  159. package/dist/suppliers/validation.d.ts +2 -0
  160. package/dist/suppliers/validation.d.ts.map +1 -0
  161. package/dist/suppliers/validation.js +1 -0
  162. package/dist/validation.d.ts +1371 -0
  163. package/dist/validation.d.ts.map +1 -0
  164. package/dist/validation.js +445 -0
  165. package/dist/webhook-deliveries.d.ts +86 -0
  166. package/dist/webhook-deliveries.d.ts.map +1 -0
  167. package/dist/webhook-deliveries.js +296 -0
  168. package/package.json +71 -0
@@ -0,0 +1,1649 @@
1
+ import type { DistributionRouteEnv } from "./env.js";
2
+ export declare const settlementRoutes: import("hono/hono-base").HonoBase<DistributionRouteEnv, {
3
+ "/settlement-runs": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ channelId: string;
10
+ contractId: string | null;
11
+ status: "void" | "draft" | "open" | "posted" | "paid";
12
+ currencyCode: string | null;
13
+ periodStart: string | null;
14
+ periodEnd: string | null;
15
+ statementReference: string | null;
16
+ generatedAt: string | null;
17
+ postedAt: string | null;
18
+ paidAt: string | null;
19
+ notes: string | null;
20
+ metadata: {
21
+ [x: string]: import("hono/utils/types").JSONValue;
22
+ } | null;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }[];
26
+ total: number;
27
+ limit: number;
28
+ offset: number;
29
+ };
30
+ outputFormat: "json";
31
+ status: import("hono/utils/http-status").ContentfulStatusCode;
32
+ };
33
+ };
34
+ } & {
35
+ "/settlement-runs": {
36
+ $post: {
37
+ input: {};
38
+ output: {
39
+ data: {
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ metadata: {
43
+ [x: string]: import("hono/utils/types").JSONValue;
44
+ } | null;
45
+ id: string;
46
+ status: "void" | "draft" | "open" | "posted" | "paid";
47
+ channelId: string;
48
+ notes: string | null;
49
+ contractId: string | null;
50
+ paidAt: string | null;
51
+ currencyCode: string | null;
52
+ periodStart: string | null;
53
+ periodEnd: string | null;
54
+ statementReference: string | null;
55
+ generatedAt: string | null;
56
+ postedAt: string | null;
57
+ } | undefined;
58
+ };
59
+ outputFormat: "json";
60
+ status: 201;
61
+ };
62
+ };
63
+ } & {
64
+ "/settlement-runs/:id": {
65
+ $get: {
66
+ input: {
67
+ param: {
68
+ id: string;
69
+ };
70
+ };
71
+ output: {
72
+ error: string;
73
+ };
74
+ outputFormat: "json";
75
+ status: 404;
76
+ } | {
77
+ input: {
78
+ param: {
79
+ id: string;
80
+ };
81
+ };
82
+ output: {
83
+ data: {
84
+ id: string;
85
+ channelId: string;
86
+ contractId: string | null;
87
+ status: "void" | "draft" | "open" | "posted" | "paid";
88
+ currencyCode: string | null;
89
+ periodStart: string | null;
90
+ periodEnd: string | null;
91
+ statementReference: string | null;
92
+ generatedAt: string | null;
93
+ postedAt: string | null;
94
+ paidAt: string | null;
95
+ notes: string | null;
96
+ metadata: {
97
+ [x: string]: import("hono/utils/types").JSONValue;
98
+ } | null;
99
+ createdAt: string;
100
+ updatedAt: string;
101
+ };
102
+ };
103
+ outputFormat: "json";
104
+ status: import("hono/utils/http-status").ContentfulStatusCode;
105
+ };
106
+ };
107
+ } & {
108
+ "/settlement-runs/:id": {
109
+ $patch: {
110
+ input: {
111
+ param: {
112
+ id: string;
113
+ };
114
+ };
115
+ output: {
116
+ error: string;
117
+ };
118
+ outputFormat: "json";
119
+ status: 404;
120
+ } | {
121
+ input: {
122
+ param: {
123
+ id: string;
124
+ };
125
+ };
126
+ output: {
127
+ data: {
128
+ id: string;
129
+ channelId: string;
130
+ contractId: string | null;
131
+ status: "void" | "draft" | "open" | "posted" | "paid";
132
+ currencyCode: string | null;
133
+ periodStart: string | null;
134
+ periodEnd: string | null;
135
+ statementReference: string | null;
136
+ generatedAt: string | null;
137
+ postedAt: string | null;
138
+ paidAt: string | null;
139
+ notes: string | null;
140
+ metadata: {
141
+ [x: string]: import("hono/utils/types").JSONValue;
142
+ } | null;
143
+ createdAt: string;
144
+ updatedAt: string;
145
+ };
146
+ };
147
+ outputFormat: "json";
148
+ status: import("hono/utils/http-status").ContentfulStatusCode;
149
+ };
150
+ };
151
+ } & {
152
+ "/settlement-runs/:id": {
153
+ $delete: {
154
+ input: {
155
+ param: {
156
+ id: string;
157
+ };
158
+ };
159
+ output: {
160
+ error: string;
161
+ };
162
+ outputFormat: "json";
163
+ status: 404;
164
+ } | {
165
+ input: {
166
+ param: {
167
+ id: string;
168
+ };
169
+ };
170
+ output: {
171
+ success: true;
172
+ };
173
+ outputFormat: "json";
174
+ status: import("hono/utils/http-status").ContentfulStatusCode;
175
+ };
176
+ };
177
+ } & {
178
+ "/settlement-items": {
179
+ $get: {
180
+ input: {};
181
+ output: {
182
+ data: {
183
+ id: string;
184
+ settlementRunId: string;
185
+ bookingLinkId: string | null;
186
+ bookingId: string | null;
187
+ commissionRuleId: string | null;
188
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
189
+ grossAmountCents: number;
190
+ commissionAmountCents: number;
191
+ netRemittanceAmountCents: number;
192
+ currencyCode: string | null;
193
+ remittanceDueAt: string | null;
194
+ paidAt: string | null;
195
+ notes: string | null;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ }[];
199
+ total: number;
200
+ limit: number;
201
+ offset: number;
202
+ };
203
+ outputFormat: "json";
204
+ status: import("hono/utils/http-status").ContentfulStatusCode;
205
+ };
206
+ };
207
+ } & {
208
+ "/settlement-items": {
209
+ $post: {
210
+ input: {};
211
+ output: {
212
+ data: {
213
+ bookingId: string | null;
214
+ createdAt: string;
215
+ updatedAt: string;
216
+ id: string;
217
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
218
+ notes: string | null;
219
+ paidAt: string | null;
220
+ currencyCode: string | null;
221
+ settlementRunId: string;
222
+ bookingLinkId: string | null;
223
+ commissionRuleId: string | null;
224
+ grossAmountCents: number;
225
+ commissionAmountCents: number;
226
+ netRemittanceAmountCents: number;
227
+ remittanceDueAt: string | null;
228
+ } | undefined;
229
+ };
230
+ outputFormat: "json";
231
+ status: 201;
232
+ };
233
+ };
234
+ } & {
235
+ "/settlement-items/:id": {
236
+ $get: {
237
+ input: {
238
+ param: {
239
+ id: string;
240
+ };
241
+ };
242
+ output: {
243
+ error: string;
244
+ };
245
+ outputFormat: "json";
246
+ status: 404;
247
+ } | {
248
+ input: {
249
+ param: {
250
+ id: string;
251
+ };
252
+ };
253
+ output: {
254
+ data: {
255
+ id: string;
256
+ settlementRunId: string;
257
+ bookingLinkId: string | null;
258
+ bookingId: string | null;
259
+ commissionRuleId: string | null;
260
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
261
+ grossAmountCents: number;
262
+ commissionAmountCents: number;
263
+ netRemittanceAmountCents: number;
264
+ currencyCode: string | null;
265
+ remittanceDueAt: string | null;
266
+ paidAt: string | null;
267
+ notes: string | null;
268
+ createdAt: string;
269
+ updatedAt: string;
270
+ };
271
+ };
272
+ outputFormat: "json";
273
+ status: import("hono/utils/http-status").ContentfulStatusCode;
274
+ };
275
+ };
276
+ } & {
277
+ "/settlement-items/:id": {
278
+ $patch: {
279
+ input: {
280
+ param: {
281
+ id: string;
282
+ };
283
+ };
284
+ output: {
285
+ error: string;
286
+ };
287
+ outputFormat: "json";
288
+ status: 404;
289
+ } | {
290
+ input: {
291
+ param: {
292
+ id: string;
293
+ };
294
+ };
295
+ output: {
296
+ data: {
297
+ id: string;
298
+ settlementRunId: string;
299
+ bookingLinkId: string | null;
300
+ bookingId: string | null;
301
+ commissionRuleId: string | null;
302
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
303
+ grossAmountCents: number;
304
+ commissionAmountCents: number;
305
+ netRemittanceAmountCents: number;
306
+ currencyCode: string | null;
307
+ remittanceDueAt: string | null;
308
+ paidAt: string | null;
309
+ notes: string | null;
310
+ createdAt: string;
311
+ updatedAt: string;
312
+ };
313
+ };
314
+ outputFormat: "json";
315
+ status: import("hono/utils/http-status").ContentfulStatusCode;
316
+ };
317
+ };
318
+ } & {
319
+ "/settlement-items/:id": {
320
+ $delete: {
321
+ input: {
322
+ param: {
323
+ id: string;
324
+ };
325
+ };
326
+ output: {
327
+ error: string;
328
+ };
329
+ outputFormat: "json";
330
+ status: 404;
331
+ } | {
332
+ input: {
333
+ param: {
334
+ id: string;
335
+ };
336
+ };
337
+ output: {
338
+ success: true;
339
+ };
340
+ outputFormat: "json";
341
+ status: import("hono/utils/http-status").ContentfulStatusCode;
342
+ };
343
+ };
344
+ } & {
345
+ "/reconciliation-runs": {
346
+ $get: {
347
+ input: {};
348
+ output: {
349
+ data: {
350
+ id: string;
351
+ channelId: string;
352
+ contractId: string | null;
353
+ status: "archived" | "draft" | "completed" | "running";
354
+ periodStart: string | null;
355
+ periodEnd: string | null;
356
+ externalReportReference: string | null;
357
+ startedAt: string | null;
358
+ completedAt: string | null;
359
+ notes: string | null;
360
+ metadata: {
361
+ [x: string]: import("hono/utils/types").JSONValue;
362
+ } | null;
363
+ createdAt: string;
364
+ updatedAt: string;
365
+ }[];
366
+ total: number;
367
+ limit: number;
368
+ offset: number;
369
+ };
370
+ outputFormat: "json";
371
+ status: import("hono/utils/http-status").ContentfulStatusCode;
372
+ };
373
+ };
374
+ } & {
375
+ "/reconciliation-runs": {
376
+ $post: {
377
+ input: {};
378
+ output: {
379
+ data: {
380
+ createdAt: string;
381
+ updatedAt: string;
382
+ metadata: {
383
+ [x: string]: import("hono/utils/types").JSONValue;
384
+ } | null;
385
+ id: string;
386
+ status: "archived" | "draft" | "completed" | "running";
387
+ channelId: string;
388
+ startedAt: string | null;
389
+ notes: string | null;
390
+ contractId: string | null;
391
+ completedAt: string | null;
392
+ periodStart: string | null;
393
+ periodEnd: string | null;
394
+ externalReportReference: string | null;
395
+ } | undefined;
396
+ };
397
+ outputFormat: "json";
398
+ status: 201;
399
+ };
400
+ };
401
+ } & {
402
+ "/reconciliation-runs/:id": {
403
+ $get: {
404
+ input: {
405
+ param: {
406
+ id: string;
407
+ };
408
+ };
409
+ output: {
410
+ error: string;
411
+ };
412
+ outputFormat: "json";
413
+ status: 404;
414
+ } | {
415
+ input: {
416
+ param: {
417
+ id: string;
418
+ };
419
+ };
420
+ output: {
421
+ data: {
422
+ id: string;
423
+ channelId: string;
424
+ contractId: string | null;
425
+ status: "archived" | "draft" | "completed" | "running";
426
+ periodStart: string | null;
427
+ periodEnd: string | null;
428
+ externalReportReference: string | null;
429
+ startedAt: string | null;
430
+ completedAt: string | null;
431
+ notes: string | null;
432
+ metadata: {
433
+ [x: string]: import("hono/utils/types").JSONValue;
434
+ } | null;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ };
438
+ };
439
+ outputFormat: "json";
440
+ status: import("hono/utils/http-status").ContentfulStatusCode;
441
+ };
442
+ };
443
+ } & {
444
+ "/reconciliation-runs/:id": {
445
+ $patch: {
446
+ input: {
447
+ param: {
448
+ id: string;
449
+ };
450
+ };
451
+ output: {
452
+ error: string;
453
+ };
454
+ outputFormat: "json";
455
+ status: 404;
456
+ } | {
457
+ input: {
458
+ param: {
459
+ id: string;
460
+ };
461
+ };
462
+ output: {
463
+ data: {
464
+ id: string;
465
+ channelId: string;
466
+ contractId: string | null;
467
+ status: "archived" | "draft" | "completed" | "running";
468
+ periodStart: string | null;
469
+ periodEnd: string | null;
470
+ externalReportReference: string | null;
471
+ startedAt: string | null;
472
+ completedAt: string | null;
473
+ notes: string | null;
474
+ metadata: {
475
+ [x: string]: import("hono/utils/types").JSONValue;
476
+ } | null;
477
+ createdAt: string;
478
+ updatedAt: string;
479
+ };
480
+ };
481
+ outputFormat: "json";
482
+ status: import("hono/utils/http-status").ContentfulStatusCode;
483
+ };
484
+ };
485
+ } & {
486
+ "/reconciliation-runs/:id": {
487
+ $delete: {
488
+ input: {
489
+ param: {
490
+ id: string;
491
+ };
492
+ };
493
+ output: {
494
+ error: string;
495
+ };
496
+ outputFormat: "json";
497
+ status: 404;
498
+ } | {
499
+ input: {
500
+ param: {
501
+ id: string;
502
+ };
503
+ };
504
+ output: {
505
+ success: true;
506
+ };
507
+ outputFormat: "json";
508
+ status: import("hono/utils/http-status").ContentfulStatusCode;
509
+ };
510
+ };
511
+ } & {
512
+ "/reconciliation-items": {
513
+ $get: {
514
+ input: {};
515
+ output: {
516
+ data: {
517
+ id: string;
518
+ reconciliationRunId: string;
519
+ bookingLinkId: string | null;
520
+ bookingId: string | null;
521
+ externalBookingId: string | null;
522
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
523
+ severity: "error" | "info" | "warning";
524
+ resolutionStatus: "ignored" | "open" | "resolved";
525
+ notes: string | null;
526
+ resolvedAt: string | null;
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ }[];
530
+ total: number;
531
+ limit: number;
532
+ offset: number;
533
+ };
534
+ outputFormat: "json";
535
+ status: import("hono/utils/http-status").ContentfulStatusCode;
536
+ };
537
+ };
538
+ } & {
539
+ "/reconciliation-items": {
540
+ $post: {
541
+ input: {};
542
+ output: {
543
+ data: {
544
+ bookingId: string | null;
545
+ createdAt: string;
546
+ updatedAt: string;
547
+ id: string;
548
+ externalBookingId: string | null;
549
+ notes: string | null;
550
+ bookingLinkId: string | null;
551
+ reconciliationRunId: string;
552
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
553
+ resolutionStatus: "ignored" | "open" | "resolved";
554
+ severity: "error" | "info" | "warning";
555
+ resolvedAt: string | null;
556
+ } | undefined;
557
+ };
558
+ outputFormat: "json";
559
+ status: 201;
560
+ };
561
+ };
562
+ } & {
563
+ "/reconciliation-items/:id": {
564
+ $get: {
565
+ input: {
566
+ param: {
567
+ id: string;
568
+ };
569
+ };
570
+ output: {
571
+ error: string;
572
+ };
573
+ outputFormat: "json";
574
+ status: 404;
575
+ } | {
576
+ input: {
577
+ param: {
578
+ id: string;
579
+ };
580
+ };
581
+ output: {
582
+ data: {
583
+ id: string;
584
+ reconciliationRunId: string;
585
+ bookingLinkId: string | null;
586
+ bookingId: string | null;
587
+ externalBookingId: string | null;
588
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
589
+ severity: "error" | "info" | "warning";
590
+ resolutionStatus: "ignored" | "open" | "resolved";
591
+ notes: string | null;
592
+ resolvedAt: string | null;
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ };
596
+ };
597
+ outputFormat: "json";
598
+ status: import("hono/utils/http-status").ContentfulStatusCode;
599
+ };
600
+ };
601
+ } & {
602
+ "/reconciliation-items/:id": {
603
+ $patch: {
604
+ input: {
605
+ param: {
606
+ id: string;
607
+ };
608
+ };
609
+ output: {
610
+ error: string;
611
+ };
612
+ outputFormat: "json";
613
+ status: 404;
614
+ } | {
615
+ input: {
616
+ param: {
617
+ id: string;
618
+ };
619
+ };
620
+ output: {
621
+ data: {
622
+ id: string;
623
+ reconciliationRunId: string;
624
+ bookingLinkId: string | null;
625
+ bookingId: string | null;
626
+ externalBookingId: string | null;
627
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
628
+ severity: "error" | "info" | "warning";
629
+ resolutionStatus: "ignored" | "open" | "resolved";
630
+ notes: string | null;
631
+ resolvedAt: string | null;
632
+ createdAt: string;
633
+ updatedAt: string;
634
+ };
635
+ };
636
+ outputFormat: "json";
637
+ status: import("hono/utils/http-status").ContentfulStatusCode;
638
+ };
639
+ };
640
+ } & {
641
+ "/reconciliation-items/:id": {
642
+ $delete: {
643
+ input: {
644
+ param: {
645
+ id: string;
646
+ };
647
+ };
648
+ output: {
649
+ error: string;
650
+ };
651
+ outputFormat: "json";
652
+ status: 404;
653
+ } | {
654
+ input: {
655
+ param: {
656
+ id: string;
657
+ };
658
+ };
659
+ output: {
660
+ success: true;
661
+ };
662
+ outputFormat: "json";
663
+ status: import("hono/utils/http-status").ContentfulStatusCode;
664
+ };
665
+ };
666
+ } & {
667
+ "/inventory-release-executions": {
668
+ $get: {
669
+ input: {};
670
+ output: {
671
+ data: {
672
+ id: string;
673
+ allotmentId: string;
674
+ releaseRuleId: string | null;
675
+ targetId: string | null;
676
+ slotId: string | null;
677
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
678
+ status: "pending" | "failed" | "skipped" | "completed";
679
+ releasedCapacity: number | null;
680
+ executedAt: string | null;
681
+ notes: string | null;
682
+ metadata: {
683
+ [x: string]: import("hono/utils/types").JSONValue;
684
+ } | null;
685
+ createdAt: string;
686
+ updatedAt: string;
687
+ }[];
688
+ total: number;
689
+ limit: number;
690
+ offset: number;
691
+ };
692
+ outputFormat: "json";
693
+ status: import("hono/utils/http-status").ContentfulStatusCode;
694
+ };
695
+ };
696
+ } & {
697
+ "/inventory-release-executions": {
698
+ $post: {
699
+ input: {};
700
+ output: {
701
+ data: {
702
+ createdAt: string;
703
+ updatedAt: string;
704
+ metadata: {
705
+ [x: string]: import("hono/utils/types").JSONValue;
706
+ } | null;
707
+ id: string;
708
+ status: "pending" | "failed" | "skipped" | "completed";
709
+ notes: string | null;
710
+ slotId: string | null;
711
+ allotmentId: string;
712
+ releaseRuleId: string | null;
713
+ targetId: string | null;
714
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
715
+ releasedCapacity: number | null;
716
+ executedAt: string | null;
717
+ } | undefined;
718
+ };
719
+ outputFormat: "json";
720
+ status: 201;
721
+ };
722
+ };
723
+ } & {
724
+ "/inventory-release-executions/:id": {
725
+ $get: {
726
+ input: {
727
+ param: {
728
+ id: string;
729
+ };
730
+ };
731
+ output: {
732
+ error: string;
733
+ };
734
+ outputFormat: "json";
735
+ status: 404;
736
+ } | {
737
+ input: {
738
+ param: {
739
+ id: string;
740
+ };
741
+ };
742
+ output: {
743
+ data: {
744
+ id: string;
745
+ allotmentId: string;
746
+ releaseRuleId: string | null;
747
+ targetId: string | null;
748
+ slotId: string | null;
749
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
750
+ status: "pending" | "failed" | "skipped" | "completed";
751
+ releasedCapacity: number | null;
752
+ executedAt: string | null;
753
+ notes: string | null;
754
+ metadata: {
755
+ [x: string]: import("hono/utils/types").JSONValue;
756
+ } | null;
757
+ createdAt: string;
758
+ updatedAt: string;
759
+ };
760
+ };
761
+ outputFormat: "json";
762
+ status: import("hono/utils/http-status").ContentfulStatusCode;
763
+ };
764
+ };
765
+ } & {
766
+ "/inventory-release-executions/:id": {
767
+ $patch: {
768
+ input: {
769
+ param: {
770
+ id: string;
771
+ };
772
+ };
773
+ output: {
774
+ error: string;
775
+ };
776
+ outputFormat: "json";
777
+ status: 404;
778
+ } | {
779
+ input: {
780
+ param: {
781
+ id: string;
782
+ };
783
+ };
784
+ output: {
785
+ data: {
786
+ id: string;
787
+ allotmentId: string;
788
+ releaseRuleId: string | null;
789
+ targetId: string | null;
790
+ slotId: string | null;
791
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
792
+ status: "pending" | "failed" | "skipped" | "completed";
793
+ releasedCapacity: number | null;
794
+ executedAt: string | null;
795
+ notes: string | null;
796
+ metadata: {
797
+ [x: string]: import("hono/utils/types").JSONValue;
798
+ } | null;
799
+ createdAt: string;
800
+ updatedAt: string;
801
+ };
802
+ };
803
+ outputFormat: "json";
804
+ status: import("hono/utils/http-status").ContentfulStatusCode;
805
+ };
806
+ };
807
+ } & {
808
+ "/inventory-release-executions/:id": {
809
+ $delete: {
810
+ input: {
811
+ param: {
812
+ id: string;
813
+ };
814
+ };
815
+ output: {
816
+ error: string;
817
+ };
818
+ outputFormat: "json";
819
+ status: 404;
820
+ } | {
821
+ input: {
822
+ param: {
823
+ id: string;
824
+ };
825
+ };
826
+ output: {
827
+ success: true;
828
+ };
829
+ outputFormat: "json";
830
+ status: import("hono/utils/http-status").ContentfulStatusCode;
831
+ };
832
+ };
833
+ } & {
834
+ "/settlement-policies": {
835
+ $get: {
836
+ input: {};
837
+ output: {
838
+ data: {
839
+ id: string;
840
+ channelId: string;
841
+ contractId: string | null;
842
+ frequency: "manual" | "daily" | "weekly" | "monthly";
843
+ autoGenerate: boolean;
844
+ approvalRequired: boolean;
845
+ remittanceDaysAfterPeriodEnd: number | null;
846
+ minimumPayoutAmountCents: number | null;
847
+ currencyCode: string | null;
848
+ active: boolean;
849
+ notes: string | null;
850
+ metadata: {
851
+ [x: string]: import("hono/utils/types").JSONValue;
852
+ } | null;
853
+ createdAt: string;
854
+ updatedAt: string;
855
+ }[];
856
+ total: number;
857
+ limit: number;
858
+ offset: number;
859
+ };
860
+ outputFormat: "json";
861
+ status: import("hono/utils/http-status").ContentfulStatusCode;
862
+ };
863
+ };
864
+ } & {
865
+ "/settlement-policies": {
866
+ $post: {
867
+ input: {};
868
+ output: {
869
+ data: {
870
+ createdAt: string;
871
+ updatedAt: string;
872
+ metadata: {
873
+ [x: string]: import("hono/utils/types").JSONValue;
874
+ } | null;
875
+ id: string;
876
+ active: boolean;
877
+ channelId: string;
878
+ notes: string | null;
879
+ contractId: string | null;
880
+ currencyCode: string | null;
881
+ frequency: "manual" | "daily" | "weekly" | "monthly";
882
+ autoGenerate: boolean;
883
+ approvalRequired: boolean;
884
+ remittanceDaysAfterPeriodEnd: number | null;
885
+ minimumPayoutAmountCents: number | null;
886
+ } | undefined;
887
+ };
888
+ outputFormat: "json";
889
+ status: 201;
890
+ };
891
+ };
892
+ } & {
893
+ "/settlement-policies/:id": {
894
+ $get: {
895
+ input: {
896
+ param: {
897
+ id: string;
898
+ };
899
+ };
900
+ output: {
901
+ error: string;
902
+ };
903
+ outputFormat: "json";
904
+ status: 404;
905
+ } | {
906
+ input: {
907
+ param: {
908
+ id: string;
909
+ };
910
+ };
911
+ output: {
912
+ data: {
913
+ id: string;
914
+ channelId: string;
915
+ contractId: string | null;
916
+ frequency: "manual" | "daily" | "weekly" | "monthly";
917
+ autoGenerate: boolean;
918
+ approvalRequired: boolean;
919
+ remittanceDaysAfterPeriodEnd: number | null;
920
+ minimumPayoutAmountCents: number | null;
921
+ currencyCode: string | null;
922
+ active: boolean;
923
+ notes: string | null;
924
+ metadata: {
925
+ [x: string]: import("hono/utils/types").JSONValue;
926
+ } | null;
927
+ createdAt: string;
928
+ updatedAt: string;
929
+ };
930
+ };
931
+ outputFormat: "json";
932
+ status: import("hono/utils/http-status").ContentfulStatusCode;
933
+ };
934
+ };
935
+ } & {
936
+ "/settlement-policies/:id": {
937
+ $patch: {
938
+ input: {
939
+ param: {
940
+ id: string;
941
+ };
942
+ };
943
+ output: {
944
+ error: string;
945
+ };
946
+ outputFormat: "json";
947
+ status: 404;
948
+ } | {
949
+ input: {
950
+ param: {
951
+ id: string;
952
+ };
953
+ };
954
+ output: {
955
+ data: {
956
+ id: string;
957
+ channelId: string;
958
+ contractId: string | null;
959
+ frequency: "manual" | "daily" | "weekly" | "monthly";
960
+ autoGenerate: boolean;
961
+ approvalRequired: boolean;
962
+ remittanceDaysAfterPeriodEnd: number | null;
963
+ minimumPayoutAmountCents: number | null;
964
+ currencyCode: string | null;
965
+ active: boolean;
966
+ notes: string | null;
967
+ metadata: {
968
+ [x: string]: import("hono/utils/types").JSONValue;
969
+ } | null;
970
+ createdAt: string;
971
+ updatedAt: string;
972
+ };
973
+ };
974
+ outputFormat: "json";
975
+ status: import("hono/utils/http-status").ContentfulStatusCode;
976
+ };
977
+ };
978
+ } & {
979
+ "/settlement-policies/:id": {
980
+ $delete: {
981
+ input: {
982
+ param: {
983
+ id: string;
984
+ };
985
+ };
986
+ output: {
987
+ error: string;
988
+ };
989
+ outputFormat: "json";
990
+ status: 404;
991
+ } | {
992
+ input: {
993
+ param: {
994
+ id: string;
995
+ };
996
+ };
997
+ output: {
998
+ success: true;
999
+ };
1000
+ outputFormat: "json";
1001
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1002
+ };
1003
+ };
1004
+ } & {
1005
+ "/reconciliation-policies": {
1006
+ $get: {
1007
+ input: {};
1008
+ output: {
1009
+ data: {
1010
+ id: string;
1011
+ channelId: string;
1012
+ contractId: string | null;
1013
+ frequency: "manual" | "daily" | "weekly" | "monthly";
1014
+ autoRun: boolean;
1015
+ compareGrossAmounts: boolean;
1016
+ compareStatuses: boolean;
1017
+ compareCancellations: boolean;
1018
+ amountToleranceCents: number | null;
1019
+ active: boolean;
1020
+ notes: string | null;
1021
+ metadata: {
1022
+ [x: string]: import("hono/utils/types").JSONValue;
1023
+ } | null;
1024
+ createdAt: string;
1025
+ updatedAt: string;
1026
+ }[];
1027
+ total: number;
1028
+ limit: number;
1029
+ offset: number;
1030
+ };
1031
+ outputFormat: "json";
1032
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1033
+ };
1034
+ };
1035
+ } & {
1036
+ "/reconciliation-policies": {
1037
+ $post: {
1038
+ input: {};
1039
+ output: {
1040
+ data: {
1041
+ createdAt: string;
1042
+ updatedAt: string;
1043
+ metadata: {
1044
+ [x: string]: import("hono/utils/types").JSONValue;
1045
+ } | null;
1046
+ id: string;
1047
+ active: boolean;
1048
+ channelId: string;
1049
+ notes: string | null;
1050
+ contractId: string | null;
1051
+ frequency: "manual" | "daily" | "weekly" | "monthly";
1052
+ autoRun: boolean;
1053
+ compareGrossAmounts: boolean;
1054
+ compareStatuses: boolean;
1055
+ compareCancellations: boolean;
1056
+ amountToleranceCents: number | null;
1057
+ } | undefined;
1058
+ };
1059
+ outputFormat: "json";
1060
+ status: 201;
1061
+ };
1062
+ };
1063
+ } & {
1064
+ "/reconciliation-policies/:id": {
1065
+ $get: {
1066
+ input: {
1067
+ param: {
1068
+ id: string;
1069
+ };
1070
+ };
1071
+ output: {
1072
+ error: string;
1073
+ };
1074
+ outputFormat: "json";
1075
+ status: 404;
1076
+ } | {
1077
+ input: {
1078
+ param: {
1079
+ id: string;
1080
+ };
1081
+ };
1082
+ output: {
1083
+ data: {
1084
+ id: string;
1085
+ channelId: string;
1086
+ contractId: string | null;
1087
+ frequency: "manual" | "daily" | "weekly" | "monthly";
1088
+ autoRun: boolean;
1089
+ compareGrossAmounts: boolean;
1090
+ compareStatuses: boolean;
1091
+ compareCancellations: boolean;
1092
+ amountToleranceCents: number | null;
1093
+ active: boolean;
1094
+ notes: string | null;
1095
+ metadata: {
1096
+ [x: string]: import("hono/utils/types").JSONValue;
1097
+ } | null;
1098
+ createdAt: string;
1099
+ updatedAt: string;
1100
+ };
1101
+ };
1102
+ outputFormat: "json";
1103
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1104
+ };
1105
+ };
1106
+ } & {
1107
+ "/reconciliation-policies/:id": {
1108
+ $patch: {
1109
+ input: {
1110
+ param: {
1111
+ id: string;
1112
+ };
1113
+ };
1114
+ output: {
1115
+ error: string;
1116
+ };
1117
+ outputFormat: "json";
1118
+ status: 404;
1119
+ } | {
1120
+ input: {
1121
+ param: {
1122
+ id: string;
1123
+ };
1124
+ };
1125
+ output: {
1126
+ data: {
1127
+ id: string;
1128
+ channelId: string;
1129
+ contractId: string | null;
1130
+ frequency: "manual" | "daily" | "weekly" | "monthly";
1131
+ autoRun: boolean;
1132
+ compareGrossAmounts: boolean;
1133
+ compareStatuses: boolean;
1134
+ compareCancellations: boolean;
1135
+ amountToleranceCents: number | null;
1136
+ active: boolean;
1137
+ notes: string | null;
1138
+ metadata: {
1139
+ [x: string]: import("hono/utils/types").JSONValue;
1140
+ } | null;
1141
+ createdAt: string;
1142
+ updatedAt: string;
1143
+ };
1144
+ };
1145
+ outputFormat: "json";
1146
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1147
+ };
1148
+ };
1149
+ } & {
1150
+ "/reconciliation-policies/:id": {
1151
+ $delete: {
1152
+ input: {
1153
+ param: {
1154
+ id: string;
1155
+ };
1156
+ };
1157
+ output: {
1158
+ error: string;
1159
+ };
1160
+ outputFormat: "json";
1161
+ status: 404;
1162
+ } | {
1163
+ input: {
1164
+ param: {
1165
+ id: string;
1166
+ };
1167
+ };
1168
+ output: {
1169
+ success: true;
1170
+ };
1171
+ outputFormat: "json";
1172
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1173
+ };
1174
+ };
1175
+ } & {
1176
+ "/release-schedules": {
1177
+ $get: {
1178
+ input: {};
1179
+ output: {
1180
+ data: {
1181
+ id: string;
1182
+ releaseRuleId: string;
1183
+ scheduleKind: "manual" | "daily" | "hourly";
1184
+ nextRunAt: string | null;
1185
+ lastRunAt: string | null;
1186
+ active: boolean;
1187
+ notes: string | null;
1188
+ metadata: {
1189
+ [x: string]: import("hono/utils/types").JSONValue;
1190
+ } | null;
1191
+ createdAt: string;
1192
+ updatedAt: string;
1193
+ }[];
1194
+ total: number;
1195
+ limit: number;
1196
+ offset: number;
1197
+ };
1198
+ outputFormat: "json";
1199
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1200
+ };
1201
+ };
1202
+ } & {
1203
+ "/release-schedules": {
1204
+ $post: {
1205
+ input: {};
1206
+ output: {
1207
+ data: {
1208
+ createdAt: string;
1209
+ updatedAt: string;
1210
+ metadata: {
1211
+ [x: string]: import("hono/utils/types").JSONValue;
1212
+ } | null;
1213
+ id: string;
1214
+ active: boolean;
1215
+ notes: string | null;
1216
+ releaseRuleId: string;
1217
+ scheduleKind: "manual" | "daily" | "hourly";
1218
+ nextRunAt: string | null;
1219
+ lastRunAt: string | null;
1220
+ } | undefined;
1221
+ };
1222
+ outputFormat: "json";
1223
+ status: 201;
1224
+ };
1225
+ };
1226
+ } & {
1227
+ "/release-schedules/:id": {
1228
+ $get: {
1229
+ input: {
1230
+ param: {
1231
+ id: string;
1232
+ };
1233
+ };
1234
+ output: {
1235
+ error: string;
1236
+ };
1237
+ outputFormat: "json";
1238
+ status: 404;
1239
+ } | {
1240
+ input: {
1241
+ param: {
1242
+ id: string;
1243
+ };
1244
+ };
1245
+ output: {
1246
+ data: {
1247
+ id: string;
1248
+ releaseRuleId: string;
1249
+ scheduleKind: "manual" | "daily" | "hourly";
1250
+ nextRunAt: string | null;
1251
+ lastRunAt: string | null;
1252
+ active: boolean;
1253
+ notes: string | null;
1254
+ metadata: {
1255
+ [x: string]: import("hono/utils/types").JSONValue;
1256
+ } | null;
1257
+ createdAt: string;
1258
+ updatedAt: string;
1259
+ };
1260
+ };
1261
+ outputFormat: "json";
1262
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1263
+ };
1264
+ };
1265
+ } & {
1266
+ "/release-schedules/:id": {
1267
+ $patch: {
1268
+ input: {
1269
+ param: {
1270
+ id: string;
1271
+ };
1272
+ };
1273
+ output: {
1274
+ error: string;
1275
+ };
1276
+ outputFormat: "json";
1277
+ status: 404;
1278
+ } | {
1279
+ input: {
1280
+ param: {
1281
+ id: string;
1282
+ };
1283
+ };
1284
+ output: {
1285
+ data: {
1286
+ id: string;
1287
+ releaseRuleId: string;
1288
+ scheduleKind: "manual" | "daily" | "hourly";
1289
+ nextRunAt: string | null;
1290
+ lastRunAt: string | null;
1291
+ active: boolean;
1292
+ notes: string | null;
1293
+ metadata: {
1294
+ [x: string]: import("hono/utils/types").JSONValue;
1295
+ } | null;
1296
+ createdAt: string;
1297
+ updatedAt: string;
1298
+ };
1299
+ };
1300
+ outputFormat: "json";
1301
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1302
+ };
1303
+ };
1304
+ } & {
1305
+ "/release-schedules/:id": {
1306
+ $delete: {
1307
+ input: {
1308
+ param: {
1309
+ id: string;
1310
+ };
1311
+ };
1312
+ output: {
1313
+ error: string;
1314
+ };
1315
+ outputFormat: "json";
1316
+ status: 404;
1317
+ } | {
1318
+ input: {
1319
+ param: {
1320
+ id: string;
1321
+ };
1322
+ };
1323
+ output: {
1324
+ success: true;
1325
+ };
1326
+ outputFormat: "json";
1327
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1328
+ };
1329
+ };
1330
+ } & {
1331
+ "/remittance-exceptions": {
1332
+ $get: {
1333
+ input: {};
1334
+ output: {
1335
+ data: {
1336
+ id: string;
1337
+ channelId: string;
1338
+ settlementItemId: string | null;
1339
+ reconciliationItemId: string | null;
1340
+ exceptionType: string;
1341
+ severity: "error" | "info" | "warning";
1342
+ status: "ignored" | "open" | "resolved" | "investigating";
1343
+ openedAt: string;
1344
+ resolvedAt: string | null;
1345
+ notes: string | null;
1346
+ metadata: {
1347
+ [x: string]: import("hono/utils/types").JSONValue;
1348
+ } | null;
1349
+ createdAt: string;
1350
+ updatedAt: string;
1351
+ }[];
1352
+ total: number;
1353
+ limit: number;
1354
+ offset: number;
1355
+ };
1356
+ outputFormat: "json";
1357
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1358
+ };
1359
+ };
1360
+ } & {
1361
+ "/remittance-exceptions": {
1362
+ $post: {
1363
+ input: {};
1364
+ output: {
1365
+ data: {
1366
+ createdAt: string;
1367
+ updatedAt: string;
1368
+ metadata: {
1369
+ [x: string]: import("hono/utils/types").JSONValue;
1370
+ } | null;
1371
+ id: string;
1372
+ status: "ignored" | "open" | "resolved" | "investigating";
1373
+ channelId: string;
1374
+ notes: string | null;
1375
+ severity: "error" | "info" | "warning";
1376
+ resolvedAt: string | null;
1377
+ settlementItemId: string | null;
1378
+ reconciliationItemId: string | null;
1379
+ exceptionType: string;
1380
+ openedAt: string;
1381
+ } | undefined;
1382
+ };
1383
+ outputFormat: "json";
1384
+ status: 201;
1385
+ };
1386
+ };
1387
+ } & {
1388
+ "/remittance-exceptions/:id": {
1389
+ $get: {
1390
+ input: {
1391
+ param: {
1392
+ id: string;
1393
+ };
1394
+ };
1395
+ output: {
1396
+ error: string;
1397
+ };
1398
+ outputFormat: "json";
1399
+ status: 404;
1400
+ } | {
1401
+ input: {
1402
+ param: {
1403
+ id: string;
1404
+ };
1405
+ };
1406
+ output: {
1407
+ data: {
1408
+ id: string;
1409
+ channelId: string;
1410
+ settlementItemId: string | null;
1411
+ reconciliationItemId: string | null;
1412
+ exceptionType: string;
1413
+ severity: "error" | "info" | "warning";
1414
+ status: "ignored" | "open" | "resolved" | "investigating";
1415
+ openedAt: string;
1416
+ resolvedAt: string | null;
1417
+ notes: string | null;
1418
+ metadata: {
1419
+ [x: string]: import("hono/utils/types").JSONValue;
1420
+ } | null;
1421
+ createdAt: string;
1422
+ updatedAt: string;
1423
+ };
1424
+ };
1425
+ outputFormat: "json";
1426
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1427
+ };
1428
+ };
1429
+ } & {
1430
+ "/remittance-exceptions/:id": {
1431
+ $patch: {
1432
+ input: {
1433
+ param: {
1434
+ id: string;
1435
+ };
1436
+ };
1437
+ output: {
1438
+ error: string;
1439
+ };
1440
+ outputFormat: "json";
1441
+ status: 404;
1442
+ } | {
1443
+ input: {
1444
+ param: {
1445
+ id: string;
1446
+ };
1447
+ };
1448
+ output: {
1449
+ data: {
1450
+ id: string;
1451
+ channelId: string;
1452
+ settlementItemId: string | null;
1453
+ reconciliationItemId: string | null;
1454
+ exceptionType: string;
1455
+ severity: "error" | "info" | "warning";
1456
+ status: "ignored" | "open" | "resolved" | "investigating";
1457
+ openedAt: string;
1458
+ resolvedAt: string | null;
1459
+ notes: string | null;
1460
+ metadata: {
1461
+ [x: string]: import("hono/utils/types").JSONValue;
1462
+ } | null;
1463
+ createdAt: string;
1464
+ updatedAt: string;
1465
+ };
1466
+ };
1467
+ outputFormat: "json";
1468
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1469
+ };
1470
+ };
1471
+ } & {
1472
+ "/remittance-exceptions/:id": {
1473
+ $delete: {
1474
+ input: {
1475
+ param: {
1476
+ id: string;
1477
+ };
1478
+ };
1479
+ output: {
1480
+ error: string;
1481
+ };
1482
+ outputFormat: "json";
1483
+ status: 404;
1484
+ } | {
1485
+ input: {
1486
+ param: {
1487
+ id: string;
1488
+ };
1489
+ };
1490
+ output: {
1491
+ success: true;
1492
+ };
1493
+ outputFormat: "json";
1494
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1495
+ };
1496
+ };
1497
+ } & {
1498
+ "/settlement-approvals": {
1499
+ $get: {
1500
+ input: {};
1501
+ output: {
1502
+ data: {
1503
+ id: string;
1504
+ settlementRunId: string;
1505
+ approverUserId: string | null;
1506
+ status: "pending" | "approved" | "rejected";
1507
+ decidedAt: string | null;
1508
+ notes: string | null;
1509
+ metadata: {
1510
+ [x: string]: import("hono/utils/types").JSONValue;
1511
+ } | null;
1512
+ createdAt: string;
1513
+ updatedAt: string;
1514
+ }[];
1515
+ total: number;
1516
+ limit: number;
1517
+ offset: number;
1518
+ };
1519
+ outputFormat: "json";
1520
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1521
+ };
1522
+ };
1523
+ } & {
1524
+ "/settlement-approvals": {
1525
+ $post: {
1526
+ input: {};
1527
+ output: {
1528
+ data: {
1529
+ createdAt: string;
1530
+ updatedAt: string;
1531
+ metadata: {
1532
+ [x: string]: import("hono/utils/types").JSONValue;
1533
+ } | null;
1534
+ id: string;
1535
+ status: "pending" | "approved" | "rejected";
1536
+ notes: string | null;
1537
+ settlementRunId: string;
1538
+ approverUserId: string | null;
1539
+ decidedAt: string | null;
1540
+ } | undefined;
1541
+ };
1542
+ outputFormat: "json";
1543
+ status: 201;
1544
+ };
1545
+ };
1546
+ } & {
1547
+ "/settlement-approvals/:id": {
1548
+ $get: {
1549
+ input: {
1550
+ param: {
1551
+ id: string;
1552
+ };
1553
+ };
1554
+ output: {
1555
+ error: string;
1556
+ };
1557
+ outputFormat: "json";
1558
+ status: 404;
1559
+ } | {
1560
+ input: {
1561
+ param: {
1562
+ id: string;
1563
+ };
1564
+ };
1565
+ output: {
1566
+ data: {
1567
+ id: string;
1568
+ settlementRunId: string;
1569
+ approverUserId: string | null;
1570
+ status: "pending" | "approved" | "rejected";
1571
+ decidedAt: string | null;
1572
+ notes: string | null;
1573
+ metadata: {
1574
+ [x: string]: import("hono/utils/types").JSONValue;
1575
+ } | null;
1576
+ createdAt: string;
1577
+ updatedAt: string;
1578
+ };
1579
+ };
1580
+ outputFormat: "json";
1581
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1582
+ };
1583
+ };
1584
+ } & {
1585
+ "/settlement-approvals/:id": {
1586
+ $patch: {
1587
+ input: {
1588
+ param: {
1589
+ id: string;
1590
+ };
1591
+ };
1592
+ output: {
1593
+ error: string;
1594
+ };
1595
+ outputFormat: "json";
1596
+ status: 404;
1597
+ } | {
1598
+ input: {
1599
+ param: {
1600
+ id: string;
1601
+ };
1602
+ };
1603
+ output: {
1604
+ data: {
1605
+ id: string;
1606
+ settlementRunId: string;
1607
+ approverUserId: string | null;
1608
+ status: "pending" | "approved" | "rejected";
1609
+ decidedAt: string | null;
1610
+ notes: string | null;
1611
+ metadata: {
1612
+ [x: string]: import("hono/utils/types").JSONValue;
1613
+ } | null;
1614
+ createdAt: string;
1615
+ updatedAt: string;
1616
+ };
1617
+ };
1618
+ outputFormat: "json";
1619
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1620
+ };
1621
+ };
1622
+ } & {
1623
+ "/settlement-approvals/:id": {
1624
+ $delete: {
1625
+ input: {
1626
+ param: {
1627
+ id: string;
1628
+ };
1629
+ };
1630
+ output: {
1631
+ error: string;
1632
+ };
1633
+ outputFormat: "json";
1634
+ status: 404;
1635
+ } | {
1636
+ input: {
1637
+ param: {
1638
+ id: string;
1639
+ };
1640
+ };
1641
+ output: {
1642
+ success: true;
1643
+ };
1644
+ outputFormat: "json";
1645
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1646
+ };
1647
+ };
1648
+ }, "/", "/settlement-approvals/:id">;
1649
+ //# sourceMappingURL=settlements.d.ts.map