@voyantjs/pricing 0.2.0 → 0.3.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 (58) hide show
  1. package/dist/routes-core.d.ts +981 -0
  2. package/dist/routes-core.d.ts.map +1 -0
  3. package/dist/routes-core.js +101 -0
  4. package/dist/routes-rules.d.ts +1176 -0
  5. package/dist/routes-rules.d.ts.map +1 -0
  6. package/dist/routes-rules.js +117 -0
  7. package/dist/routes-shared.d.ts +12 -0
  8. package/dist/routes-shared.d.ts.map +1 -0
  9. package/dist/routes-shared.js +3 -0
  10. package/dist/routes.d.ts +3 -2160
  11. package/dist/routes.d.ts.map +1 -1
  12. package/dist/routes.js +5 -354
  13. package/dist/schema-catalogs.d.ts +467 -0
  14. package/dist/schema-catalogs.d.ts.map +1 -0
  15. package/dist/schema-catalogs.js +44 -0
  16. package/dist/schema-categories.d.ts +497 -0
  17. package/dist/schema-categories.d.ts.map +1 -0
  18. package/dist/schema-categories.js +50 -0
  19. package/dist/schema-option-rules.d.ts +1770 -0
  20. package/dist/schema-option-rules.d.ts.map +1 -0
  21. package/dist/schema-option-rules.js +174 -0
  22. package/dist/schema-policies.d.ts +395 -0
  23. package/dist/schema-policies.d.ts.map +1 -0
  24. package/dist/schema-policies.js +38 -0
  25. package/dist/schema-relations.d.ts +55 -0
  26. package/dist/schema-relations.d.ts.map +1 -0
  27. package/dist/schema-relations.js +103 -0
  28. package/dist/schema-shared.d.ts +11 -0
  29. package/dist/schema-shared.d.ts.map +1 -0
  30. package/dist/schema-shared.js +67 -0
  31. package/dist/schema.d.ts +6 -3189
  32. package/dist/schema.d.ts.map +1 -1
  33. package/dist/schema.js +6 -458
  34. package/dist/service-catalogs.d.ts +139 -0
  35. package/dist/service-catalogs.d.ts.map +1 -0
  36. package/dist/service-catalogs.js +89 -0
  37. package/dist/service-categories.d.ts +147 -0
  38. package/dist/service-categories.d.ts.map +1 -0
  39. package/dist/service-categories.js +105 -0
  40. package/dist/service-option-rules.d.ts +307 -0
  41. package/dist/service-option-rules.d.ts.map +1 -0
  42. package/dist/service-option-rules.js +188 -0
  43. package/dist/service-policies.d.ts +123 -0
  44. package/dist/service-policies.d.ts.map +1 -0
  45. package/dist/service-policies.js +95 -0
  46. package/dist/service-shared.d.ts +50 -0
  47. package/dist/service-shared.d.ts.map +1 -0
  48. package/dist/service-shared.js +4 -0
  49. package/dist/service-transfer-rules.d.ts +211 -0
  50. package/dist/service-transfer-rules.d.ts.map +1 -0
  51. package/dist/service-transfer-rules.js +139 -0
  52. package/dist/service.d.ts +70 -955
  53. package/dist/service.d.ts.map +1 -1
  54. package/dist/service.js +70 -595
  55. package/dist/validation.d.ts +2 -0
  56. package/dist/validation.d.ts.map +1 -1
  57. package/dist/validation.js +2 -0
  58. package/package.json +8 -8
@@ -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: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service" | "other";
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
+ name: string;
45
+ code: string | null;
46
+ active: boolean;
47
+ metadata: {
48
+ [x: string]: import("hono/utils/types").JSONValue;
49
+ } | null;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ productId: string | null;
53
+ optionId: string | null;
54
+ unitId: string | null;
55
+ categoryType: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service" | "other";
56
+ seatOccupancy: number;
57
+ groupSize: number | null;
58
+ isAgeQualified: boolean;
59
+ minAge: number | null;
60
+ maxAge: number | null;
61
+ internalUseOnly: boolean;
62
+ sortOrder: number;
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: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service" | "other";
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: "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service" | "other";
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
+ notes: string | null;
223
+ createdAt: string;
224
+ updatedAt: string;
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: "simple" | "advanced" | "non_refundable" | "custom";
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
+ name: string;
372
+ code: string | null;
373
+ isDefault: boolean;
374
+ active: boolean;
375
+ notes: string | null;
376
+ metadata: {
377
+ [x: string]: import("hono/utils/types").JSONValue;
378
+ } | null;
379
+ createdAt: string;
380
+ updatedAt: string;
381
+ policyType: "simple" | "advanced" | "non_refundable" | "custom";
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: "simple" | "advanced" | "non_refundable" | "custom";
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: "simple" | "advanced" | "non_refundable" | "custom";
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
+ notes: string | null;
530
+ createdAt: string;
531
+ updatedAt: string;
532
+ sortOrder: number;
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: "internal" | "other" | "public" | "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
+ name: string;
682
+ code: string;
683
+ currencyCode: string | null;
684
+ catalogType: "internal" | "other" | "public" | "contract" | "net" | "gross" | "promo";
685
+ isDefault: boolean;
686
+ active: boolean;
687
+ notes: string | null;
688
+ metadata: {
689
+ [x: string]: import("hono/utils/types").JSONValue;
690
+ } | null;
691
+ createdAt: string;
692
+ updatedAt: string;
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: "internal" | "other" | "public" | "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: "internal" | "other" | "public" | "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
+ name: string;
845
+ code: string | null;
846
+ active: boolean;
847
+ notes: string | null;
848
+ metadata: {
849
+ [x: string]: import("hono/utils/types").JSONValue;
850
+ } | null;
851
+ createdAt: string;
852
+ updatedAt: string;
853
+ priceCatalogId: string;
854
+ recurrenceRule: string;
855
+ timezone: string | null;
856
+ validFrom: string | null;
857
+ validTo: string | null;
858
+ weekdays: string[] | null;
859
+ priority: number;
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