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