@voyantjs/markets 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,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
+ name: string;
46
+ code: string;
47
+ status: "active" | "inactive" | "archived";
48
+ regionCode: string | null;
49
+ countryCode: string | null;
50
+ defaultLanguageTag: string;
51
+ defaultCurrency: string;
52
+ timezone: string | null;
53
+ taxContext: string | null;
54
+ metadata: {
55
+ [x: string]: import("hono/utils/types").JSONValue;
56
+ } | 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" | "manual" | "ecb" | "custom" | "channel" | "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
+ metadata: {
453
+ [x: string]: import("hono/utils/types").JSONValue;
454
+ } | null;
455
+ createdAt: string;
456
+ source: "supplier" | "manual" | "ecb" | "custom" | "channel" | "other";
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" | "manual" | "ecb" | "custom" | "channel" | "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" | "manual" | "ecb" | "custom" | "channel" | "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: "sellable" | "on_request" | "unavailable";
864
+ channelScope: "internal" | "all" | "b2c" | "b2b";
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
+ active: boolean;
895
+ createdAt: string;
896
+ updatedAt: string;
897
+ marketId: string;
898
+ notes: string | null;
899
+ priceCatalogId: string | null;
900
+ productId: string;
901
+ optionId: string | null;
902
+ visibility: "public" | "private" | "hidden";
903
+ sellability: "sellable" | "on_request" | "unavailable";
904
+ channelScope: "internal" | "all" | "b2c" | "b2b";
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: "sellable" | "on_request" | "unavailable";
941
+ channelScope: "internal" | "all" | "b2c" | "b2b";
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: "sellable" | "on_request" | "unavailable";
982
+ channelScope: "internal" | "all" | "b2c" | "b2b";
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: "sellable" | "on_request" | "unavailable";
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
+ active: boolean;
1062
+ createdAt: string;
1063
+ updatedAt: string;
1064
+ marketId: string;
1065
+ notes: string | null;
1066
+ priceCatalogId: string | null;
1067
+ priority: number;
1068
+ visibility: "public" | "private" | "hidden";
1069
+ sellability: "sellable" | "on_request" | "unavailable";
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: "sellable" | "on_request" | "unavailable";
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: "sellable" | "on_request" | "unavailable";
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