@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,981 @@
1
+ import { type Env } from "./routes-shared.js";
2
+ export declare const pricingCoreRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/pricing-categories": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ productId: string | null;
10
+ optionId: string | null;
11
+ unitId: string | null;
12
+ code: string | null;
13
+ name: string;
14
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
15
+ seatOccupancy: number;
16
+ groupSize: number | null;
17
+ isAgeQualified: boolean;
18
+ minAge: number | null;
19
+ maxAge: number | null;
20
+ internalUseOnly: boolean;
21
+ active: boolean;
22
+ sortOrder: number;
23
+ metadata: {
24
+ [x: string]: import("hono/utils/types").JSONValue;
25
+ } | null;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ }[];
29
+ total: number;
30
+ limit: number;
31
+ offset: number;
32
+ };
33
+ outputFormat: "json";
34
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35
+ };
36
+ };
37
+ } & {
38
+ "/pricing-categories": {
39
+ $post: {
40
+ input: {};
41
+ output: {
42
+ data: {
43
+ id: string;
44
+ code: string | null;
45
+ active: boolean;
46
+ metadata: {
47
+ [x: string]: import("hono/utils/types").JSONValue;
48
+ } | null;
49
+ name: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ sortOrder: number;
53
+ productId: string | null;
54
+ optionId: string | null;
55
+ unitId: string | null;
56
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
57
+ seatOccupancy: number;
58
+ groupSize: number | null;
59
+ isAgeQualified: boolean;
60
+ minAge: number | null;
61
+ maxAge: number | null;
62
+ internalUseOnly: boolean;
63
+ } | null;
64
+ };
65
+ outputFormat: "json";
66
+ status: 201;
67
+ };
68
+ };
69
+ } & {
70
+ "/pricing-categories/:id": {
71
+ $get: {
72
+ input: {
73
+ param: {
74
+ id: string;
75
+ };
76
+ };
77
+ output: {
78
+ error: string;
79
+ };
80
+ outputFormat: "json";
81
+ status: 404;
82
+ } | {
83
+ input: {
84
+ param: {
85
+ id: string;
86
+ };
87
+ };
88
+ output: {
89
+ data: {
90
+ id: string;
91
+ productId: string | null;
92
+ optionId: string | null;
93
+ unitId: string | null;
94
+ code: string | null;
95
+ name: string;
96
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
97
+ seatOccupancy: number;
98
+ groupSize: number | null;
99
+ isAgeQualified: boolean;
100
+ minAge: number | null;
101
+ maxAge: number | null;
102
+ internalUseOnly: boolean;
103
+ active: boolean;
104
+ sortOrder: number;
105
+ metadata: {
106
+ [x: string]: import("hono/utils/types").JSONValue;
107
+ } | null;
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ };
111
+ };
112
+ outputFormat: "json";
113
+ status: import("hono/utils/http-status").ContentfulStatusCode;
114
+ };
115
+ };
116
+ } & {
117
+ "/pricing-categories/:id": {
118
+ $patch: {
119
+ input: {
120
+ param: {
121
+ id: string;
122
+ };
123
+ };
124
+ output: {
125
+ error: string;
126
+ };
127
+ outputFormat: "json";
128
+ status: 404;
129
+ } | {
130
+ input: {
131
+ param: {
132
+ id: string;
133
+ };
134
+ };
135
+ output: {
136
+ data: {
137
+ id: string;
138
+ productId: string | null;
139
+ optionId: string | null;
140
+ unitId: string | null;
141
+ code: string | null;
142
+ name: string;
143
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
144
+ seatOccupancy: number;
145
+ groupSize: number | null;
146
+ isAgeQualified: boolean;
147
+ minAge: number | null;
148
+ maxAge: number | null;
149
+ internalUseOnly: boolean;
150
+ active: boolean;
151
+ sortOrder: number;
152
+ metadata: {
153
+ [x: string]: import("hono/utils/types").JSONValue;
154
+ } | null;
155
+ createdAt: string;
156
+ updatedAt: string;
157
+ };
158
+ };
159
+ outputFormat: "json";
160
+ status: import("hono/utils/http-status").ContentfulStatusCode;
161
+ };
162
+ };
163
+ } & {
164
+ "/pricing-categories/:id": {
165
+ $delete: {
166
+ input: {
167
+ param: {
168
+ id: string;
169
+ };
170
+ };
171
+ output: {
172
+ error: string;
173
+ };
174
+ outputFormat: "json";
175
+ status: 404;
176
+ } | {
177
+ input: {
178
+ param: {
179
+ id: string;
180
+ };
181
+ };
182
+ output: {
183
+ success: true;
184
+ };
185
+ outputFormat: "json";
186
+ status: import("hono/utils/http-status").ContentfulStatusCode;
187
+ };
188
+ };
189
+ } & {
190
+ "/pricing-category-dependencies": {
191
+ $get: {
192
+ input: {};
193
+ output: {
194
+ data: {
195
+ id: string;
196
+ pricingCategoryId: string;
197
+ masterPricingCategoryId: string;
198
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
199
+ maxPerMaster: number | null;
200
+ maxDependentSum: number | null;
201
+ active: boolean;
202
+ notes: string | null;
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ }[];
206
+ total: number;
207
+ limit: number;
208
+ offset: number;
209
+ };
210
+ outputFormat: "json";
211
+ status: import("hono/utils/http-status").ContentfulStatusCode;
212
+ };
213
+ };
214
+ } & {
215
+ "/pricing-category-dependencies": {
216
+ $post: {
217
+ input: {};
218
+ output: {
219
+ data: {
220
+ id: string;
221
+ active: boolean;
222
+ createdAt: string;
223
+ updatedAt: string;
224
+ notes: string | null;
225
+ pricingCategoryId: string;
226
+ masterPricingCategoryId: string;
227
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
228
+ maxPerMaster: number | null;
229
+ maxDependentSum: number | null;
230
+ } | null;
231
+ };
232
+ outputFormat: "json";
233
+ status: 201;
234
+ };
235
+ };
236
+ } & {
237
+ "/pricing-category-dependencies/:id": {
238
+ $get: {
239
+ input: {
240
+ param: {
241
+ id: string;
242
+ };
243
+ };
244
+ output: {
245
+ error: string;
246
+ };
247
+ outputFormat: "json";
248
+ status: 404;
249
+ } | {
250
+ input: {
251
+ param: {
252
+ id: string;
253
+ };
254
+ };
255
+ output: {
256
+ data: {
257
+ id: string;
258
+ pricingCategoryId: string;
259
+ masterPricingCategoryId: string;
260
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
261
+ maxPerMaster: number | null;
262
+ maxDependentSum: number | null;
263
+ active: boolean;
264
+ notes: string | null;
265
+ createdAt: string;
266
+ updatedAt: string;
267
+ };
268
+ };
269
+ outputFormat: "json";
270
+ status: import("hono/utils/http-status").ContentfulStatusCode;
271
+ };
272
+ };
273
+ } & {
274
+ "/pricing-category-dependencies/:id": {
275
+ $patch: {
276
+ input: {
277
+ param: {
278
+ id: string;
279
+ };
280
+ };
281
+ output: {
282
+ error: string;
283
+ };
284
+ outputFormat: "json";
285
+ status: 404;
286
+ } | {
287
+ input: {
288
+ param: {
289
+ id: string;
290
+ };
291
+ };
292
+ output: {
293
+ data: {
294
+ id: string;
295
+ pricingCategoryId: string;
296
+ masterPricingCategoryId: string;
297
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
298
+ maxPerMaster: number | null;
299
+ maxDependentSum: number | null;
300
+ active: boolean;
301
+ notes: string | null;
302
+ createdAt: string;
303
+ updatedAt: string;
304
+ };
305
+ };
306
+ outputFormat: "json";
307
+ status: import("hono/utils/http-status").ContentfulStatusCode;
308
+ };
309
+ };
310
+ } & {
311
+ "/pricing-category-dependencies/:id": {
312
+ $delete: {
313
+ input: {
314
+ param: {
315
+ id: string;
316
+ };
317
+ };
318
+ output: {
319
+ error: string;
320
+ };
321
+ outputFormat: "json";
322
+ status: 404;
323
+ } | {
324
+ input: {
325
+ param: {
326
+ id: string;
327
+ };
328
+ };
329
+ output: {
330
+ success: true;
331
+ };
332
+ outputFormat: "json";
333
+ status: import("hono/utils/http-status").ContentfulStatusCode;
334
+ };
335
+ };
336
+ } & {
337
+ "/cancellation-policies": {
338
+ $get: {
339
+ input: {};
340
+ output: {
341
+ data: {
342
+ id: string;
343
+ code: string | null;
344
+ name: string;
345
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
346
+ simpleCutoffHours: number | null;
347
+ isDefault: boolean;
348
+ active: boolean;
349
+ notes: string | null;
350
+ metadata: {
351
+ [x: string]: import("hono/utils/types").JSONValue;
352
+ } | null;
353
+ createdAt: string;
354
+ updatedAt: string;
355
+ }[];
356
+ total: number;
357
+ limit: number;
358
+ offset: number;
359
+ };
360
+ outputFormat: "json";
361
+ status: import("hono/utils/http-status").ContentfulStatusCode;
362
+ };
363
+ };
364
+ } & {
365
+ "/cancellation-policies": {
366
+ $post: {
367
+ input: {};
368
+ output: {
369
+ data: {
370
+ id: string;
371
+ code: string | null;
372
+ active: boolean;
373
+ metadata: {
374
+ [x: string]: import("hono/utils/types").JSONValue;
375
+ } | null;
376
+ name: string;
377
+ createdAt: string;
378
+ updatedAt: string;
379
+ isDefault: boolean;
380
+ notes: string | null;
381
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
382
+ simpleCutoffHours: number | null;
383
+ } | null;
384
+ };
385
+ outputFormat: "json";
386
+ status: 201;
387
+ };
388
+ };
389
+ } & {
390
+ "/cancellation-policies/:id": {
391
+ $get: {
392
+ input: {
393
+ param: {
394
+ id: string;
395
+ };
396
+ };
397
+ output: {
398
+ error: string;
399
+ };
400
+ outputFormat: "json";
401
+ status: 404;
402
+ } | {
403
+ input: {
404
+ param: {
405
+ id: string;
406
+ };
407
+ };
408
+ output: {
409
+ data: {
410
+ id: string;
411
+ code: string | null;
412
+ name: string;
413
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
414
+ simpleCutoffHours: number | null;
415
+ isDefault: boolean;
416
+ active: boolean;
417
+ notes: string | null;
418
+ metadata: {
419
+ [x: string]: import("hono/utils/types").JSONValue;
420
+ } | null;
421
+ createdAt: string;
422
+ updatedAt: string;
423
+ };
424
+ };
425
+ outputFormat: "json";
426
+ status: import("hono/utils/http-status").ContentfulStatusCode;
427
+ };
428
+ };
429
+ } & {
430
+ "/cancellation-policies/:id": {
431
+ $patch: {
432
+ input: {
433
+ param: {
434
+ id: string;
435
+ };
436
+ };
437
+ output: {
438
+ error: string;
439
+ };
440
+ outputFormat: "json";
441
+ status: 404;
442
+ } | {
443
+ input: {
444
+ param: {
445
+ id: string;
446
+ };
447
+ };
448
+ output: {
449
+ data: {
450
+ id: string;
451
+ code: string | null;
452
+ name: string;
453
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
454
+ simpleCutoffHours: number | null;
455
+ isDefault: boolean;
456
+ active: boolean;
457
+ notes: string | null;
458
+ metadata: {
459
+ [x: string]: import("hono/utils/types").JSONValue;
460
+ } | null;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ };
464
+ };
465
+ outputFormat: "json";
466
+ status: import("hono/utils/http-status").ContentfulStatusCode;
467
+ };
468
+ };
469
+ } & {
470
+ "/cancellation-policies/:id": {
471
+ $delete: {
472
+ input: {
473
+ param: {
474
+ id: string;
475
+ };
476
+ };
477
+ output: {
478
+ error: string;
479
+ };
480
+ outputFormat: "json";
481
+ status: 404;
482
+ } | {
483
+ input: {
484
+ param: {
485
+ id: string;
486
+ };
487
+ };
488
+ output: {
489
+ success: true;
490
+ };
491
+ outputFormat: "json";
492
+ status: import("hono/utils/http-status").ContentfulStatusCode;
493
+ };
494
+ };
495
+ } & {
496
+ "/cancellation-policy-rules": {
497
+ $get: {
498
+ input: {};
499
+ output: {
500
+ data: {
501
+ id: string;
502
+ cancellationPolicyId: string;
503
+ sortOrder: number;
504
+ cutoffMinutesBefore: number | null;
505
+ chargeType: "none" | "amount" | "percentage";
506
+ chargeAmountCents: number | null;
507
+ chargePercentBasisPoints: number | null;
508
+ active: boolean;
509
+ notes: string | null;
510
+ createdAt: string;
511
+ updatedAt: string;
512
+ }[];
513
+ total: number;
514
+ limit: number;
515
+ offset: number;
516
+ };
517
+ outputFormat: "json";
518
+ status: import("hono/utils/http-status").ContentfulStatusCode;
519
+ };
520
+ };
521
+ } & {
522
+ "/cancellation-policy-rules": {
523
+ $post: {
524
+ input: {};
525
+ output: {
526
+ data: {
527
+ id: string;
528
+ active: boolean;
529
+ createdAt: string;
530
+ updatedAt: string;
531
+ sortOrder: number;
532
+ notes: string | null;
533
+ cancellationPolicyId: string;
534
+ cutoffMinutesBefore: number | null;
535
+ chargeType: "none" | "amount" | "percentage";
536
+ chargeAmountCents: number | null;
537
+ chargePercentBasisPoints: number | null;
538
+ } | null;
539
+ };
540
+ outputFormat: "json";
541
+ status: 201;
542
+ };
543
+ };
544
+ } & {
545
+ "/cancellation-policy-rules/:id": {
546
+ $get: {
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
+ data: {
565
+ id: string;
566
+ cancellationPolicyId: string;
567
+ sortOrder: number;
568
+ cutoffMinutesBefore: number | null;
569
+ chargeType: "none" | "amount" | "percentage";
570
+ chargeAmountCents: number | null;
571
+ chargePercentBasisPoints: number | null;
572
+ active: boolean;
573
+ notes: string | null;
574
+ createdAt: string;
575
+ updatedAt: string;
576
+ };
577
+ };
578
+ outputFormat: "json";
579
+ status: import("hono/utils/http-status").ContentfulStatusCode;
580
+ };
581
+ };
582
+ } & {
583
+ "/cancellation-policy-rules/:id": {
584
+ $patch: {
585
+ input: {
586
+ param: {
587
+ id: string;
588
+ };
589
+ };
590
+ output: {
591
+ error: string;
592
+ };
593
+ outputFormat: "json";
594
+ status: 404;
595
+ } | {
596
+ input: {
597
+ param: {
598
+ id: string;
599
+ };
600
+ };
601
+ output: {
602
+ data: {
603
+ id: string;
604
+ cancellationPolicyId: string;
605
+ sortOrder: number;
606
+ cutoffMinutesBefore: number | null;
607
+ chargeType: "none" | "amount" | "percentage";
608
+ chargeAmountCents: number | null;
609
+ chargePercentBasisPoints: number | null;
610
+ active: boolean;
611
+ notes: string | null;
612
+ createdAt: string;
613
+ updatedAt: string;
614
+ };
615
+ };
616
+ outputFormat: "json";
617
+ status: import("hono/utils/http-status").ContentfulStatusCode;
618
+ };
619
+ };
620
+ } & {
621
+ "/cancellation-policy-rules/:id": {
622
+ $delete: {
623
+ input: {
624
+ param: {
625
+ id: string;
626
+ };
627
+ };
628
+ output: {
629
+ error: string;
630
+ };
631
+ outputFormat: "json";
632
+ status: 404;
633
+ } | {
634
+ input: {
635
+ param: {
636
+ id: string;
637
+ };
638
+ };
639
+ output: {
640
+ success: true;
641
+ };
642
+ outputFormat: "json";
643
+ status: import("hono/utils/http-status").ContentfulStatusCode;
644
+ };
645
+ };
646
+ } & {
647
+ "/price-catalogs": {
648
+ $get: {
649
+ input: {};
650
+ output: {
651
+ data: {
652
+ id: string;
653
+ code: string;
654
+ name: string;
655
+ currencyCode: string | null;
656
+ catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
657
+ isDefault: boolean;
658
+ active: boolean;
659
+ notes: string | null;
660
+ metadata: {
661
+ [x: string]: import("hono/utils/types").JSONValue;
662
+ } | null;
663
+ createdAt: string;
664
+ updatedAt: string;
665
+ }[];
666
+ total: number;
667
+ limit: number;
668
+ offset: number;
669
+ };
670
+ outputFormat: "json";
671
+ status: import("hono/utils/http-status").ContentfulStatusCode;
672
+ };
673
+ };
674
+ } & {
675
+ "/price-catalogs": {
676
+ $post: {
677
+ input: {};
678
+ output: {
679
+ data: {
680
+ id: string;
681
+ code: string;
682
+ active: boolean;
683
+ metadata: {
684
+ [x: string]: import("hono/utils/types").JSONValue;
685
+ } | null;
686
+ name: string;
687
+ createdAt: string;
688
+ updatedAt: string;
689
+ isDefault: boolean;
690
+ currencyCode: string | null;
691
+ notes: string | null;
692
+ catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
693
+ } | null;
694
+ };
695
+ outputFormat: "json";
696
+ status: 201;
697
+ };
698
+ };
699
+ } & {
700
+ "/price-catalogs/:id": {
701
+ $get: {
702
+ input: {
703
+ param: {
704
+ id: string;
705
+ };
706
+ };
707
+ output: {
708
+ error: string;
709
+ };
710
+ outputFormat: "json";
711
+ status: 404;
712
+ } | {
713
+ input: {
714
+ param: {
715
+ id: string;
716
+ };
717
+ };
718
+ output: {
719
+ data: {
720
+ id: string;
721
+ code: string;
722
+ name: string;
723
+ currencyCode: string | null;
724
+ catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
725
+ isDefault: boolean;
726
+ active: boolean;
727
+ notes: string | null;
728
+ metadata: {
729
+ [x: string]: import("hono/utils/types").JSONValue;
730
+ } | null;
731
+ createdAt: string;
732
+ updatedAt: string;
733
+ };
734
+ };
735
+ outputFormat: "json";
736
+ status: import("hono/utils/http-status").ContentfulStatusCode;
737
+ };
738
+ };
739
+ } & {
740
+ "/price-catalogs/:id": {
741
+ $patch: {
742
+ input: {
743
+ param: {
744
+ id: string;
745
+ };
746
+ };
747
+ output: {
748
+ error: string;
749
+ };
750
+ outputFormat: "json";
751
+ status: 404;
752
+ } | {
753
+ input: {
754
+ param: {
755
+ id: string;
756
+ };
757
+ };
758
+ output: {
759
+ data: {
760
+ id: string;
761
+ code: string;
762
+ name: string;
763
+ currencyCode: string | null;
764
+ catalogType: "other" | "public" | "internal" | "contract" | "net" | "gross" | "promo";
765
+ isDefault: boolean;
766
+ active: boolean;
767
+ notes: string | null;
768
+ metadata: {
769
+ [x: string]: import("hono/utils/types").JSONValue;
770
+ } | null;
771
+ createdAt: string;
772
+ updatedAt: string;
773
+ };
774
+ };
775
+ outputFormat: "json";
776
+ status: import("hono/utils/http-status").ContentfulStatusCode;
777
+ };
778
+ };
779
+ } & {
780
+ "/price-catalogs/:id": {
781
+ $delete: {
782
+ input: {
783
+ param: {
784
+ id: string;
785
+ };
786
+ };
787
+ output: {
788
+ error: string;
789
+ };
790
+ outputFormat: "json";
791
+ status: 404;
792
+ } | {
793
+ input: {
794
+ param: {
795
+ id: string;
796
+ };
797
+ };
798
+ output: {
799
+ success: true;
800
+ };
801
+ outputFormat: "json";
802
+ status: import("hono/utils/http-status").ContentfulStatusCode;
803
+ };
804
+ };
805
+ } & {
806
+ "/price-schedules": {
807
+ $get: {
808
+ input: {};
809
+ output: {
810
+ data: {
811
+ id: string;
812
+ priceCatalogId: string;
813
+ code: string | null;
814
+ name: string;
815
+ recurrenceRule: string;
816
+ timezone: string | null;
817
+ validFrom: string | null;
818
+ validTo: string | null;
819
+ weekdays: string[] | null;
820
+ priority: number;
821
+ active: boolean;
822
+ notes: string | null;
823
+ metadata: {
824
+ [x: string]: import("hono/utils/types").JSONValue;
825
+ } | null;
826
+ createdAt: string;
827
+ updatedAt: string;
828
+ }[];
829
+ total: number;
830
+ limit: number;
831
+ offset: number;
832
+ };
833
+ outputFormat: "json";
834
+ status: import("hono/utils/http-status").ContentfulStatusCode;
835
+ };
836
+ };
837
+ } & {
838
+ "/price-schedules": {
839
+ $post: {
840
+ input: {};
841
+ output: {
842
+ data: {
843
+ id: string;
844
+ code: string | null;
845
+ validFrom: string | null;
846
+ active: boolean;
847
+ metadata: {
848
+ [x: string]: import("hono/utils/types").JSONValue;
849
+ } | null;
850
+ name: string;
851
+ timezone: string | null;
852
+ createdAt: string;
853
+ updatedAt: string;
854
+ notes: string | null;
855
+ priceCatalogId: string;
856
+ priority: number;
857
+ recurrenceRule: string;
858
+ validTo: string | null;
859
+ weekdays: string[] | null;
860
+ } | null;
861
+ };
862
+ outputFormat: "json";
863
+ status: 201;
864
+ };
865
+ };
866
+ } & {
867
+ "/price-schedules/:id": {
868
+ $get: {
869
+ input: {
870
+ param: {
871
+ id: string;
872
+ };
873
+ };
874
+ output: {
875
+ error: string;
876
+ };
877
+ outputFormat: "json";
878
+ status: 404;
879
+ } | {
880
+ input: {
881
+ param: {
882
+ id: string;
883
+ };
884
+ };
885
+ output: {
886
+ data: {
887
+ id: string;
888
+ priceCatalogId: string;
889
+ code: string | null;
890
+ name: string;
891
+ recurrenceRule: string;
892
+ timezone: string | null;
893
+ validFrom: string | null;
894
+ validTo: string | null;
895
+ weekdays: string[] | null;
896
+ priority: number;
897
+ active: boolean;
898
+ notes: string | null;
899
+ metadata: {
900
+ [x: string]: import("hono/utils/types").JSONValue;
901
+ } | null;
902
+ createdAt: string;
903
+ updatedAt: string;
904
+ };
905
+ };
906
+ outputFormat: "json";
907
+ status: import("hono/utils/http-status").ContentfulStatusCode;
908
+ };
909
+ };
910
+ } & {
911
+ "/price-schedules/:id": {
912
+ $patch: {
913
+ input: {
914
+ param: {
915
+ id: string;
916
+ };
917
+ };
918
+ output: {
919
+ error: string;
920
+ };
921
+ outputFormat: "json";
922
+ status: 404;
923
+ } | {
924
+ input: {
925
+ param: {
926
+ id: string;
927
+ };
928
+ };
929
+ output: {
930
+ data: {
931
+ id: string;
932
+ priceCatalogId: string;
933
+ code: string | null;
934
+ name: string;
935
+ recurrenceRule: string;
936
+ timezone: string | null;
937
+ validFrom: string | null;
938
+ validTo: string | null;
939
+ weekdays: string[] | null;
940
+ priority: number;
941
+ active: boolean;
942
+ notes: string | null;
943
+ metadata: {
944
+ [x: string]: import("hono/utils/types").JSONValue;
945
+ } | null;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ };
949
+ };
950
+ outputFormat: "json";
951
+ status: import("hono/utils/http-status").ContentfulStatusCode;
952
+ };
953
+ };
954
+ } & {
955
+ "/price-schedules/:id": {
956
+ $delete: {
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
+ success: true;
975
+ };
976
+ outputFormat: "json";
977
+ status: import("hono/utils/http-status").ContentfulStatusCode;
978
+ };
979
+ };
980
+ }, "/", "/price-schedules/:id">;
981
+ //# sourceMappingURL=routes-core.d.ts.map