@voyantjs/products 0.52.2 → 0.52.4

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 (62) hide show
  1. package/dist/action-ledger-drift.d.ts +29 -0
  2. package/dist/action-ledger-drift.d.ts.map +1 -0
  3. package/dist/action-ledger-drift.js +335 -0
  4. package/dist/action-ledger.d.ts +104 -0
  5. package/dist/action-ledger.d.ts.map +1 -0
  6. package/dist/action-ledger.js +100 -0
  7. package/dist/booking-extension.d.ts +3 -3
  8. package/dist/events.d.ts +1 -1
  9. package/dist/events.d.ts.map +1 -1
  10. package/dist/route-env.d.ts +22 -0
  11. package/dist/route-env.d.ts.map +1 -0
  12. package/dist/route-env.js +1 -0
  13. package/dist/routes-associations.d.ts +164 -0
  14. package/dist/routes-associations.d.ts.map +1 -0
  15. package/dist/routes-associations.js +100 -0
  16. package/dist/routes-catalog.d.ts +436 -0
  17. package/dist/routes-catalog.d.ts.map +1 -0
  18. package/dist/routes-catalog.js +104 -0
  19. package/dist/routes-configuration.d.ts +773 -0
  20. package/dist/routes-configuration.d.ts.map +1 -0
  21. package/dist/routes-configuration.js +364 -0
  22. package/dist/routes-core.d.ts +302 -0
  23. package/dist/routes-core.d.ts.map +1 -0
  24. package/dist/routes-core.js +79 -0
  25. package/dist/routes-itinerary.d.ts +614 -0
  26. package/dist/routes-itinerary.d.ts.map +1 -0
  27. package/dist/routes-itinerary.js +309 -0
  28. package/dist/routes-maintenance.d.ts +32 -0
  29. package/dist/routes-maintenance.d.ts.map +1 -0
  30. package/dist/routes-maintenance.js +14 -0
  31. package/dist/routes-media.d.ts +634 -0
  32. package/dist/routes-media.d.ts.map +1 -0
  33. package/dist/routes-media.js +245 -0
  34. package/dist/routes-merchandising.d.ts +1108 -0
  35. package/dist/routes-merchandising.d.ts.map +1 -0
  36. package/dist/routes-merchandising.js +376 -0
  37. package/dist/routes-options.d.ts +363 -0
  38. package/dist/routes-options.d.ts.map +1 -0
  39. package/dist/routes-options.js +173 -0
  40. package/dist/routes-public.d.ts +4 -4
  41. package/dist/routes-translations.d.ts +477 -0
  42. package/dist/routes-translations.d.ts.map +1 -0
  43. package/dist/routes-translations.js +258 -0
  44. package/dist/routes.d.ts +417 -355
  45. package/dist/routes.d.ts.map +1 -1
  46. package/dist/routes.js +21 -1133
  47. package/dist/schema-core.d.ts +3 -3
  48. package/dist/schema-itinerary.d.ts +1 -1
  49. package/dist/schema-settings.d.ts +4 -4
  50. package/dist/service-catalog.d.ts +2 -2
  51. package/dist/service-public.d.ts +4 -4
  52. package/dist/service.d.ts +225 -97
  53. package/dist/service.d.ts.map +1 -1
  54. package/dist/service.js +91 -0
  55. package/dist/tasks/brochures.d.ts +1 -1
  56. package/dist/validation-catalog.d.ts +10 -10
  57. package/dist/validation-config.d.ts +17 -17
  58. package/dist/validation-content.d.ts +26 -26
  59. package/dist/validation-core.d.ts +21 -21
  60. package/dist/validation-public.d.ts +25 -25
  61. package/dist/validation-shared.d.ts +11 -11
  62. package/package.json +13 -7
@@ -0,0 +1,773 @@
1
+ import type { Env } from "./route-env.js";
2
+ export declare const productConfigurationRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/activation-settings": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ productId: string;
10
+ activationMode: "manual" | "scheduled" | "channel_controlled";
11
+ activateAt: string | null;
12
+ deactivateAt: string | null;
13
+ sellAt: string | null;
14
+ stopSellAt: string | null;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ }[];
18
+ total: number;
19
+ limit: number;
20
+ offset: number;
21
+ };
22
+ outputFormat: "json";
23
+ status: import("hono/utils/http-status").ContentfulStatusCode;
24
+ };
25
+ };
26
+ } & {
27
+ "/activation-settings/:id": {
28
+ $get: {
29
+ input: {
30
+ param: {
31
+ id: string;
32
+ };
33
+ };
34
+ output: {
35
+ error: string;
36
+ };
37
+ outputFormat: "json";
38
+ status: 404;
39
+ } | {
40
+ input: {
41
+ param: {
42
+ id: string;
43
+ };
44
+ };
45
+ output: {
46
+ data: {
47
+ id: string;
48
+ productId: string;
49
+ activationMode: "manual" | "scheduled" | "channel_controlled";
50
+ activateAt: string | null;
51
+ deactivateAt: string | null;
52
+ sellAt: string | null;
53
+ stopSellAt: string | null;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ };
57
+ };
58
+ outputFormat: "json";
59
+ status: import("hono/utils/http-status").ContentfulStatusCode;
60
+ };
61
+ };
62
+ } & {
63
+ "/:id/activation-settings": {
64
+ $post: {
65
+ input: {
66
+ param: {
67
+ id: string;
68
+ };
69
+ };
70
+ output: {
71
+ error: string;
72
+ };
73
+ outputFormat: "json";
74
+ status: 404;
75
+ } | {
76
+ input: {
77
+ param: {
78
+ id: string;
79
+ };
80
+ };
81
+ output: {
82
+ data: {
83
+ id: string;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ productId: string;
87
+ activationMode: "manual" | "scheduled" | "channel_controlled";
88
+ activateAt: string | null;
89
+ deactivateAt: string | null;
90
+ sellAt: string | null;
91
+ stopSellAt: string | null;
92
+ };
93
+ };
94
+ outputFormat: "json";
95
+ status: 201;
96
+ };
97
+ };
98
+ } & {
99
+ "/activation-settings/:id": {
100
+ $patch: {
101
+ input: {
102
+ param: {
103
+ id: string;
104
+ };
105
+ };
106
+ output: {
107
+ error: string;
108
+ };
109
+ outputFormat: "json";
110
+ status: 404;
111
+ } | {
112
+ input: {
113
+ param: {
114
+ id: string;
115
+ };
116
+ };
117
+ output: {
118
+ data: {
119
+ id: string;
120
+ productId: string;
121
+ activationMode: "manual" | "scheduled" | "channel_controlled";
122
+ activateAt: string | null;
123
+ deactivateAt: string | null;
124
+ sellAt: string | null;
125
+ stopSellAt: string | null;
126
+ createdAt: string;
127
+ updatedAt: string;
128
+ };
129
+ };
130
+ outputFormat: "json";
131
+ status: import("hono/utils/http-status").ContentfulStatusCode;
132
+ };
133
+ };
134
+ } & {
135
+ "/activation-settings/:id": {
136
+ $delete: {
137
+ input: {
138
+ param: {
139
+ id: string;
140
+ };
141
+ };
142
+ output: {
143
+ error: string;
144
+ };
145
+ outputFormat: "json";
146
+ status: 404;
147
+ } | {
148
+ input: {
149
+ param: {
150
+ id: string;
151
+ };
152
+ };
153
+ output: {
154
+ success: true;
155
+ };
156
+ outputFormat: "json";
157
+ status: 200;
158
+ };
159
+ };
160
+ } & {
161
+ "/ticket-settings": {
162
+ $get: {
163
+ input: {};
164
+ output: {
165
+ data: {
166
+ id: string;
167
+ productId: string;
168
+ fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
169
+ defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
170
+ ticketPerUnit: boolean;
171
+ barcodeFormat: string | null;
172
+ voucherMessage: string | null;
173
+ ticketMessage: string | null;
174
+ createdAt: string;
175
+ updatedAt: string;
176
+ }[];
177
+ total: number;
178
+ limit: number;
179
+ offset: number;
180
+ };
181
+ outputFormat: "json";
182
+ status: import("hono/utils/http-status").ContentfulStatusCode;
183
+ };
184
+ };
185
+ } & {
186
+ "/ticket-settings/:id": {
187
+ $get: {
188
+ input: {
189
+ param: {
190
+ id: string;
191
+ };
192
+ };
193
+ output: {
194
+ error: string;
195
+ };
196
+ outputFormat: "json";
197
+ status: 404;
198
+ } | {
199
+ input: {
200
+ param: {
201
+ id: string;
202
+ };
203
+ };
204
+ output: {
205
+ data: {
206
+ id: string;
207
+ productId: string;
208
+ fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
209
+ defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
210
+ ticketPerUnit: boolean;
211
+ barcodeFormat: string | null;
212
+ voucherMessage: string | null;
213
+ ticketMessage: string | null;
214
+ createdAt: string;
215
+ updatedAt: string;
216
+ };
217
+ };
218
+ outputFormat: "json";
219
+ status: import("hono/utils/http-status").ContentfulStatusCode;
220
+ };
221
+ };
222
+ } & {
223
+ "/:id/ticket-settings": {
224
+ $post: {
225
+ input: {
226
+ param: {
227
+ id: string;
228
+ };
229
+ };
230
+ output: {
231
+ error: string;
232
+ };
233
+ outputFormat: "json";
234
+ status: 404;
235
+ } | {
236
+ input: {
237
+ param: {
238
+ id: string;
239
+ };
240
+ };
241
+ output: {
242
+ data: {
243
+ id: string;
244
+ createdAt: string;
245
+ updatedAt: string;
246
+ productId: string;
247
+ fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
248
+ defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
249
+ ticketPerUnit: boolean;
250
+ barcodeFormat: string | null;
251
+ voucherMessage: string | null;
252
+ ticketMessage: string | null;
253
+ };
254
+ };
255
+ outputFormat: "json";
256
+ status: 201;
257
+ };
258
+ };
259
+ } & {
260
+ "/ticket-settings/:id": {
261
+ $patch: {
262
+ input: {
263
+ param: {
264
+ id: string;
265
+ };
266
+ };
267
+ output: {
268
+ error: string;
269
+ };
270
+ outputFormat: "json";
271
+ status: 404;
272
+ } | {
273
+ input: {
274
+ param: {
275
+ id: string;
276
+ };
277
+ };
278
+ output: {
279
+ data: {
280
+ id: string;
281
+ productId: string;
282
+ fulfillmentMode: "none" | "per_booking" | "per_participant" | "per_item";
283
+ defaultDeliveryFormat: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
284
+ ticketPerUnit: boolean;
285
+ barcodeFormat: string | null;
286
+ voucherMessage: string | null;
287
+ ticketMessage: string | null;
288
+ createdAt: string;
289
+ updatedAt: string;
290
+ };
291
+ };
292
+ outputFormat: "json";
293
+ status: import("hono/utils/http-status").ContentfulStatusCode;
294
+ };
295
+ };
296
+ } & {
297
+ "/ticket-settings/:id": {
298
+ $delete: {
299
+ input: {
300
+ param: {
301
+ id: string;
302
+ };
303
+ };
304
+ output: {
305
+ error: string;
306
+ };
307
+ outputFormat: "json";
308
+ status: 404;
309
+ } | {
310
+ input: {
311
+ param: {
312
+ id: string;
313
+ };
314
+ };
315
+ output: {
316
+ success: true;
317
+ };
318
+ outputFormat: "json";
319
+ status: 200;
320
+ };
321
+ };
322
+ } & {
323
+ "/visibility-settings": {
324
+ $get: {
325
+ input: {};
326
+ output: {
327
+ data: {
328
+ id: string;
329
+ productId: string;
330
+ isSearchable: boolean;
331
+ isBookable: boolean;
332
+ isFeatured: boolean;
333
+ requiresAuthentication: boolean;
334
+ createdAt: string;
335
+ updatedAt: string;
336
+ }[];
337
+ total: number;
338
+ limit: number;
339
+ offset: number;
340
+ };
341
+ outputFormat: "json";
342
+ status: import("hono/utils/http-status").ContentfulStatusCode;
343
+ };
344
+ };
345
+ } & {
346
+ "/visibility-settings/:id": {
347
+ $get: {
348
+ input: {
349
+ param: {
350
+ id: string;
351
+ };
352
+ };
353
+ output: {
354
+ error: string;
355
+ };
356
+ outputFormat: "json";
357
+ status: 404;
358
+ } | {
359
+ input: {
360
+ param: {
361
+ id: string;
362
+ };
363
+ };
364
+ output: {
365
+ data: {
366
+ id: string;
367
+ productId: string;
368
+ isSearchable: boolean;
369
+ isBookable: boolean;
370
+ isFeatured: boolean;
371
+ requiresAuthentication: boolean;
372
+ createdAt: string;
373
+ updatedAt: string;
374
+ };
375
+ };
376
+ outputFormat: "json";
377
+ status: import("hono/utils/http-status").ContentfulStatusCode;
378
+ };
379
+ };
380
+ } & {
381
+ "/:id/visibility-settings": {
382
+ $post: {
383
+ input: {
384
+ param: {
385
+ id: string;
386
+ };
387
+ };
388
+ output: {
389
+ error: string;
390
+ };
391
+ outputFormat: "json";
392
+ status: 404;
393
+ } | {
394
+ input: {
395
+ param: {
396
+ id: string;
397
+ };
398
+ };
399
+ output: {
400
+ data: {
401
+ id: string;
402
+ createdAt: string;
403
+ updatedAt: string;
404
+ productId: string;
405
+ isSearchable: boolean;
406
+ isBookable: boolean;
407
+ isFeatured: boolean;
408
+ requiresAuthentication: boolean;
409
+ };
410
+ };
411
+ outputFormat: "json";
412
+ status: 201;
413
+ };
414
+ };
415
+ } & {
416
+ "/visibility-settings/:id": {
417
+ $patch: {
418
+ input: {
419
+ param: {
420
+ id: string;
421
+ };
422
+ };
423
+ output: {
424
+ error: string;
425
+ };
426
+ outputFormat: "json";
427
+ status: 404;
428
+ } | {
429
+ input: {
430
+ param: {
431
+ id: string;
432
+ };
433
+ };
434
+ output: {
435
+ data: {
436
+ id: string;
437
+ productId: string;
438
+ isSearchable: boolean;
439
+ isBookable: boolean;
440
+ isFeatured: boolean;
441
+ requiresAuthentication: boolean;
442
+ createdAt: string;
443
+ updatedAt: string;
444
+ };
445
+ };
446
+ outputFormat: "json";
447
+ status: import("hono/utils/http-status").ContentfulStatusCode;
448
+ };
449
+ };
450
+ } & {
451
+ "/visibility-settings/:id": {
452
+ $delete: {
453
+ input: {
454
+ param: {
455
+ id: string;
456
+ };
457
+ };
458
+ output: {
459
+ error: string;
460
+ };
461
+ outputFormat: "json";
462
+ status: 404;
463
+ } | {
464
+ input: {
465
+ param: {
466
+ id: string;
467
+ };
468
+ };
469
+ output: {
470
+ success: true;
471
+ };
472
+ outputFormat: "json";
473
+ status: 200;
474
+ };
475
+ };
476
+ } & {
477
+ "/capabilities": {
478
+ $get: {
479
+ input: {};
480
+ output: {
481
+ data: {
482
+ id: string;
483
+ productId: string;
484
+ capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
485
+ enabled: boolean;
486
+ notes: string | null;
487
+ createdAt: string;
488
+ updatedAt: string;
489
+ }[];
490
+ total: number;
491
+ limit: number;
492
+ offset: number;
493
+ };
494
+ outputFormat: "json";
495
+ status: import("hono/utils/http-status").ContentfulStatusCode;
496
+ };
497
+ };
498
+ } & {
499
+ "/capabilities/:id": {
500
+ $get: {
501
+ input: {
502
+ param: {
503
+ id: string;
504
+ };
505
+ };
506
+ output: {
507
+ error: string;
508
+ };
509
+ outputFormat: "json";
510
+ status: 404;
511
+ } | {
512
+ input: {
513
+ param: {
514
+ id: string;
515
+ };
516
+ };
517
+ output: {
518
+ data: {
519
+ id: string;
520
+ productId: string;
521
+ capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
522
+ enabled: boolean;
523
+ notes: string | null;
524
+ createdAt: string;
525
+ updatedAt: string;
526
+ };
527
+ };
528
+ outputFormat: "json";
529
+ status: import("hono/utils/http-status").ContentfulStatusCode;
530
+ };
531
+ };
532
+ } & {
533
+ "/:id/capabilities": {
534
+ $post: {
535
+ input: {
536
+ param: {
537
+ id: string;
538
+ };
539
+ };
540
+ output: {
541
+ error: string;
542
+ };
543
+ outputFormat: "json";
544
+ status: 404;
545
+ } | {
546
+ input: {
547
+ param: {
548
+ id: string;
549
+ };
550
+ };
551
+ output: {
552
+ data: {
553
+ id: string;
554
+ createdAt: string;
555
+ updatedAt: string;
556
+ productId: string;
557
+ notes: string | null;
558
+ capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
559
+ enabled: boolean;
560
+ };
561
+ };
562
+ outputFormat: "json";
563
+ status: 201;
564
+ };
565
+ };
566
+ } & {
567
+ "/capabilities/:id": {
568
+ $patch: {
569
+ input: {
570
+ param: {
571
+ id: string;
572
+ };
573
+ };
574
+ output: {
575
+ error: string;
576
+ };
577
+ outputFormat: "json";
578
+ status: 404;
579
+ } | {
580
+ input: {
581
+ param: {
582
+ id: string;
583
+ };
584
+ };
585
+ output: {
586
+ data: {
587
+ id: string;
588
+ productId: string;
589
+ capability: "on_request" | "private" | "instant_confirmation" | "pickup_available" | "dropoff_available" | "guided" | "shared" | "digital_ticket" | "voucher_required" | "external_inventory" | "multi_day" | "accommodation" | "transport";
590
+ enabled: boolean;
591
+ notes: string | null;
592
+ createdAt: string;
593
+ updatedAt: string;
594
+ };
595
+ };
596
+ outputFormat: "json";
597
+ status: import("hono/utils/http-status").ContentfulStatusCode;
598
+ };
599
+ };
600
+ } & {
601
+ "/capabilities/:id": {
602
+ $delete: {
603
+ input: {
604
+ param: {
605
+ id: string;
606
+ };
607
+ };
608
+ output: {
609
+ error: string;
610
+ };
611
+ outputFormat: "json";
612
+ status: 404;
613
+ } | {
614
+ input: {
615
+ param: {
616
+ id: string;
617
+ };
618
+ };
619
+ output: {
620
+ success: true;
621
+ };
622
+ outputFormat: "json";
623
+ status: 200;
624
+ };
625
+ };
626
+ } & {
627
+ "/delivery-formats": {
628
+ $get: {
629
+ input: {};
630
+ output: {
631
+ data: {
632
+ id: string;
633
+ productId: string;
634
+ format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
635
+ isDefault: boolean;
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ }[];
639
+ total: number;
640
+ limit: number;
641
+ offset: number;
642
+ };
643
+ outputFormat: "json";
644
+ status: import("hono/utils/http-status").ContentfulStatusCode;
645
+ };
646
+ };
647
+ } & {
648
+ "/delivery-formats/:id": {
649
+ $get: {
650
+ input: {
651
+ param: {
652
+ id: string;
653
+ };
654
+ };
655
+ output: {
656
+ error: string;
657
+ };
658
+ outputFormat: "json";
659
+ status: 404;
660
+ } | {
661
+ input: {
662
+ param: {
663
+ id: string;
664
+ };
665
+ };
666
+ output: {
667
+ data: {
668
+ id: string;
669
+ productId: string;
670
+ format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
671
+ isDefault: boolean;
672
+ createdAt: string;
673
+ updatedAt: string;
674
+ };
675
+ };
676
+ outputFormat: "json";
677
+ status: import("hono/utils/http-status").ContentfulStatusCode;
678
+ };
679
+ };
680
+ } & {
681
+ "/:id/delivery-formats": {
682
+ $post: {
683
+ input: {
684
+ param: {
685
+ id: string;
686
+ };
687
+ };
688
+ output: {
689
+ error: string;
690
+ };
691
+ outputFormat: "json";
692
+ status: 404;
693
+ } | {
694
+ input: {
695
+ param: {
696
+ id: string;
697
+ };
698
+ };
699
+ output: {
700
+ data: {
701
+ format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
702
+ id: string;
703
+ createdAt: string;
704
+ updatedAt: string;
705
+ productId: string;
706
+ isDefault: boolean;
707
+ };
708
+ };
709
+ outputFormat: "json";
710
+ status: 201;
711
+ };
712
+ };
713
+ } & {
714
+ "/delivery-formats/:id": {
715
+ $patch: {
716
+ input: {
717
+ param: {
718
+ id: string;
719
+ };
720
+ };
721
+ output: {
722
+ error: string;
723
+ };
724
+ outputFormat: "json";
725
+ status: 404;
726
+ } | {
727
+ input: {
728
+ param: {
729
+ id: string;
730
+ };
731
+ };
732
+ output: {
733
+ data: {
734
+ id: string;
735
+ productId: string;
736
+ format: "none" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "email" | "mobile";
737
+ isDefault: boolean;
738
+ createdAt: string;
739
+ updatedAt: string;
740
+ };
741
+ };
742
+ outputFormat: "json";
743
+ status: import("hono/utils/http-status").ContentfulStatusCode;
744
+ };
745
+ };
746
+ } & {
747
+ "/delivery-formats/:id": {
748
+ $delete: {
749
+ input: {
750
+ param: {
751
+ id: string;
752
+ };
753
+ };
754
+ output: {
755
+ error: string;
756
+ };
757
+ outputFormat: "json";
758
+ status: 404;
759
+ } | {
760
+ input: {
761
+ param: {
762
+ id: string;
763
+ };
764
+ };
765
+ output: {
766
+ success: true;
767
+ };
768
+ outputFormat: "json";
769
+ status: 200;
770
+ };
771
+ };
772
+ }, "/", "/delivery-formats/:id">;
773
+ //# sourceMappingURL=routes-configuration.d.ts.map