@voyantjs/transactions 0.2.0 → 0.3.1

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 (43) hide show
  1. package/dist/routes-offers.d.ts +885 -0
  2. package/dist/routes-offers.d.ts.map +1 -0
  3. package/dist/routes-offers.js +161 -0
  4. package/dist/routes-orders.d.ts +1056 -0
  5. package/dist/routes-orders.d.ts.map +1 -0
  6. package/dist/routes-orders.js +180 -0
  7. package/dist/routes-shared.d.ts +103 -0
  8. package/dist/routes-shared.d.ts.map +1 -0
  9. package/dist/routes-shared.js +97 -0
  10. package/dist/routes.d.ts +3 -1979
  11. package/dist/routes.d.ts.map +1 -1
  12. package/dist/routes.js +5 -604
  13. package/dist/schema-audit.d.ts +216 -0
  14. package/dist/schema-audit.d.ts.map +1 -0
  15. package/dist/schema-audit.js +22 -0
  16. package/dist/schema-offers.d.ts +1301 -0
  17. package/dist/schema-offers.d.ts.map +1 -0
  18. package/dist/schema-offers.js +120 -0
  19. package/dist/schema-orders.d.ts +1582 -0
  20. package/dist/schema-orders.d.ts.map +1 -0
  21. package/dist/schema-orders.js +149 -0
  22. package/dist/schema-relations.d.ts +42 -0
  23. package/dist/schema-relations.d.ts.map +1 -0
  24. package/dist/schema-relations.js +56 -0
  25. package/dist/schema-shared.d.ts +12 -0
  26. package/dist/schema-shared.d.ts.map +1 -0
  27. package/dist/schema-shared.js +84 -0
  28. package/dist/schema.d.ts +5 -3148
  29. package/dist/schema.d.ts.map +1 -1
  30. package/dist/schema.js +5 -420
  31. package/dist/service-offers.d.ts +447 -0
  32. package/dist/service-offers.d.ts.map +1 -0
  33. package/dist/service-offers.js +262 -0
  34. package/dist/service-orders.d.ts +443 -0
  35. package/dist/service-orders.d.ts.map +1 -0
  36. package/dist/service-orders.js +278 -0
  37. package/dist/service-shared.d.ts +86 -0
  38. package/dist/service-shared.d.ts.map +1 -0
  39. package/dist/service-shared.js +49 -0
  40. package/dist/service.d.ts +48 -927
  41. package/dist/service.d.ts.map +1 -1
  42. package/dist/service.js +48 -595
  43. package/package.json +5 -5
@@ -0,0 +1,1056 @@
1
+ import { type Env } from "./routes-shared.js";
2
+ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/orders": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ orderNumber: string;
10
+ offerId: string | null;
11
+ title: string;
12
+ status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
13
+ personId: string | null;
14
+ organizationId: string | null;
15
+ opportunityId: string | null;
16
+ quoteId: string | null;
17
+ marketId: string | null;
18
+ sourceChannelId: string | null;
19
+ currency: string;
20
+ baseCurrency: string | null;
21
+ fxRateSetId: string | null;
22
+ subtotalAmountCents: number;
23
+ taxAmountCents: number;
24
+ feeAmountCents: number;
25
+ totalAmountCents: number;
26
+ costAmountCents: number;
27
+ orderedAt: string | null;
28
+ confirmedAt: string | null;
29
+ cancelledAt: string | null;
30
+ expiresAt: string | null;
31
+ notes: string | null;
32
+ metadata: import("hono/utils/types").JSONValue;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ }[];
36
+ total: number;
37
+ limit: number;
38
+ offset: number;
39
+ };
40
+ outputFormat: "json";
41
+ status: import("hono/utils/http-status").ContentfulStatusCode;
42
+ };
43
+ };
44
+ } & {
45
+ "/orders": {
46
+ $post: {
47
+ input: {};
48
+ output: {
49
+ data: {
50
+ offerId: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ currency: string;
54
+ notes: string | null;
55
+ id: string;
56
+ metadata: import("hono/utils/types").JSONValue;
57
+ title: string;
58
+ status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
59
+ personId: string | null;
60
+ organizationId: string | null;
61
+ opportunityId: string | null;
62
+ quoteId: string | null;
63
+ marketId: string | null;
64
+ sourceChannelId: string | null;
65
+ baseCurrency: string | null;
66
+ fxRateSetId: string | null;
67
+ subtotalAmountCents: number;
68
+ taxAmountCents: number;
69
+ feeAmountCents: number;
70
+ totalAmountCents: number;
71
+ costAmountCents: number;
72
+ orderNumber: string;
73
+ orderedAt: string | null;
74
+ confirmedAt: string | null;
75
+ cancelledAt: string | null;
76
+ expiresAt: string | null;
77
+ } | null;
78
+ };
79
+ outputFormat: "json";
80
+ status: 201;
81
+ };
82
+ };
83
+ } & {
84
+ "/orders/:id": {
85
+ $get: {
86
+ input: {
87
+ param: {
88
+ id: string;
89
+ };
90
+ };
91
+ output: {
92
+ error: string;
93
+ };
94
+ outputFormat: "json";
95
+ status: 404;
96
+ } | {
97
+ input: {
98
+ param: {
99
+ id: string;
100
+ };
101
+ };
102
+ output: {
103
+ data: {
104
+ id: string;
105
+ orderNumber: string;
106
+ offerId: string | null;
107
+ title: string;
108
+ status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
109
+ personId: string | null;
110
+ organizationId: string | null;
111
+ opportunityId: string | null;
112
+ quoteId: string | null;
113
+ marketId: string | null;
114
+ sourceChannelId: string | null;
115
+ currency: string;
116
+ baseCurrency: string | null;
117
+ fxRateSetId: string | null;
118
+ subtotalAmountCents: number;
119
+ taxAmountCents: number;
120
+ feeAmountCents: number;
121
+ totalAmountCents: number;
122
+ costAmountCents: number;
123
+ orderedAt: string | null;
124
+ confirmedAt: string | null;
125
+ cancelledAt: string | null;
126
+ expiresAt: string | null;
127
+ notes: string | null;
128
+ metadata: import("hono/utils/types").JSONValue;
129
+ createdAt: string;
130
+ updatedAt: string;
131
+ };
132
+ };
133
+ outputFormat: "json";
134
+ status: import("hono/utils/http-status").ContentfulStatusCode;
135
+ };
136
+ };
137
+ } & {
138
+ "/orders/:id": {
139
+ $patch: {
140
+ input: {
141
+ param: {
142
+ id: string;
143
+ };
144
+ };
145
+ output: {
146
+ error: string;
147
+ };
148
+ outputFormat: "json";
149
+ status: 404;
150
+ } | {
151
+ input: {
152
+ param: {
153
+ id: string;
154
+ };
155
+ };
156
+ output: {
157
+ data: {
158
+ id: string;
159
+ orderNumber: string;
160
+ offerId: string | null;
161
+ title: string;
162
+ status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
163
+ personId: string | null;
164
+ organizationId: string | null;
165
+ opportunityId: string | null;
166
+ quoteId: string | null;
167
+ marketId: string | null;
168
+ sourceChannelId: string | null;
169
+ currency: string;
170
+ baseCurrency: string | null;
171
+ fxRateSetId: string | null;
172
+ subtotalAmountCents: number;
173
+ taxAmountCents: number;
174
+ feeAmountCents: number;
175
+ totalAmountCents: number;
176
+ costAmountCents: number;
177
+ orderedAt: string | null;
178
+ confirmedAt: string | null;
179
+ cancelledAt: string | null;
180
+ expiresAt: string | null;
181
+ notes: string | null;
182
+ metadata: import("hono/utils/types").JSONValue;
183
+ createdAt: string;
184
+ updatedAt: string;
185
+ };
186
+ };
187
+ outputFormat: "json";
188
+ status: import("hono/utils/http-status").ContentfulStatusCode;
189
+ };
190
+ };
191
+ } & {
192
+ "/orders/:id": {
193
+ $delete: {
194
+ input: {
195
+ param: {
196
+ id: string;
197
+ };
198
+ };
199
+ output: {
200
+ error: string;
201
+ };
202
+ outputFormat: "json";
203
+ status: 404;
204
+ } | {
205
+ input: {
206
+ param: {
207
+ id: string;
208
+ };
209
+ };
210
+ output: {
211
+ success: true;
212
+ };
213
+ outputFormat: "json";
214
+ status: import("hono/utils/http-status").ContentfulStatusCode;
215
+ };
216
+ };
217
+ } & {
218
+ "/order-participants": {
219
+ $get: {
220
+ input: {};
221
+ output: {
222
+ data: {
223
+ id: string;
224
+ orderId: string;
225
+ personId: string | null;
226
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
227
+ travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
228
+ firstName: string;
229
+ lastName: string;
230
+ email: string | null;
231
+ phone: string | null;
232
+ preferredLanguage: string | null;
233
+ isPrimary: boolean;
234
+ notes: string | null;
235
+ hasTravelIdentity: boolean;
236
+ createdAt: string;
237
+ updatedAt: string;
238
+ }[];
239
+ total: number;
240
+ limit: number;
241
+ offset: number;
242
+ };
243
+ outputFormat: "json";
244
+ status: import("hono/utils/http-status").ContentfulStatusCode;
245
+ };
246
+ };
247
+ } & {
248
+ "/order-participants": {
249
+ $post: {
250
+ input: {};
251
+ output: {
252
+ data: {
253
+ id: string;
254
+ orderId: string;
255
+ personId: string | null;
256
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
257
+ travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
258
+ firstName: string;
259
+ lastName: string;
260
+ email: string | null;
261
+ phone: string | null;
262
+ preferredLanguage: string | null;
263
+ isPrimary: boolean;
264
+ notes: string | null;
265
+ hasTravelIdentity: boolean;
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ } | null;
269
+ };
270
+ outputFormat: "json";
271
+ status: 201;
272
+ };
273
+ };
274
+ } & {
275
+ "/order-participants/:id": {
276
+ $get: {
277
+ input: {
278
+ param: {
279
+ id: string;
280
+ };
281
+ };
282
+ output: {
283
+ error: string;
284
+ };
285
+ outputFormat: "json";
286
+ status: 404;
287
+ } | {
288
+ input: {
289
+ param: {
290
+ id: string;
291
+ };
292
+ };
293
+ output: {
294
+ data: {
295
+ id: string;
296
+ orderId: string;
297
+ personId: string | null;
298
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
299
+ travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
300
+ firstName: string;
301
+ lastName: string;
302
+ email: string | null;
303
+ phone: string | null;
304
+ preferredLanguage: string | null;
305
+ isPrimary: boolean;
306
+ notes: string | null;
307
+ hasTravelIdentity: boolean;
308
+ createdAt: string;
309
+ updatedAt: string;
310
+ };
311
+ };
312
+ outputFormat: "json";
313
+ status: import("hono/utils/http-status").ContentfulStatusCode;
314
+ };
315
+ };
316
+ } & {
317
+ "/order-participants/:id": {
318
+ $patch: {
319
+ input: {
320
+ param: {
321
+ id: string;
322
+ };
323
+ };
324
+ output: {
325
+ error: string;
326
+ };
327
+ outputFormat: "json";
328
+ status: 404;
329
+ } | {
330
+ input: {
331
+ param: {
332
+ id: string;
333
+ };
334
+ };
335
+ output: {
336
+ data: {
337
+ id: string;
338
+ orderId: string;
339
+ personId: string | null;
340
+ participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
341
+ travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
342
+ firstName: string;
343
+ lastName: string;
344
+ email: string | null;
345
+ phone: string | null;
346
+ preferredLanguage: string | null;
347
+ isPrimary: boolean;
348
+ notes: string | null;
349
+ hasTravelIdentity: boolean;
350
+ createdAt: string;
351
+ updatedAt: string;
352
+ } | null;
353
+ };
354
+ outputFormat: "json";
355
+ status: import("hono/utils/http-status").ContentfulStatusCode;
356
+ };
357
+ };
358
+ } & {
359
+ "/order-participants/:id/travel-details": {
360
+ $get: {
361
+ input: {
362
+ param: {
363
+ id: string;
364
+ };
365
+ };
366
+ output: {
367
+ error: string;
368
+ };
369
+ outputFormat: "json";
370
+ status: 404;
371
+ } | {
372
+ input: {
373
+ param: {
374
+ id: string;
375
+ };
376
+ };
377
+ output: {
378
+ error: string;
379
+ };
380
+ outputFormat: "json";
381
+ status: 401;
382
+ } | {
383
+ input: {
384
+ param: {
385
+ id: string;
386
+ };
387
+ };
388
+ output: {
389
+ error: string;
390
+ };
391
+ outputFormat: "json";
392
+ status: 403;
393
+ } | {
394
+ input: {
395
+ param: {
396
+ id: string;
397
+ };
398
+ };
399
+ output: {
400
+ data: {
401
+ participantId: string;
402
+ participantKind: "offer" | "order";
403
+ dateOfBirth: string | null;
404
+ nationality: string | null;
405
+ createdAt: string;
406
+ updatedAt: string;
407
+ };
408
+ };
409
+ outputFormat: "json";
410
+ status: import("hono/utils/http-status").ContentfulStatusCode;
411
+ };
412
+ };
413
+ } & {
414
+ "/order-participants/:id/travel-details": {
415
+ $patch: {
416
+ input: {
417
+ param: {
418
+ id: string;
419
+ };
420
+ };
421
+ output: {
422
+ error: string;
423
+ };
424
+ outputFormat: "json";
425
+ status: 404;
426
+ } | {
427
+ input: {
428
+ param: {
429
+ id: string;
430
+ };
431
+ };
432
+ output: {
433
+ error: string;
434
+ };
435
+ outputFormat: "json";
436
+ status: 401;
437
+ } | {
438
+ input: {
439
+ param: {
440
+ id: string;
441
+ };
442
+ };
443
+ output: {
444
+ error: string;
445
+ };
446
+ outputFormat: "json";
447
+ status: 403;
448
+ } | {
449
+ input: {
450
+ param: {
451
+ id: string;
452
+ };
453
+ };
454
+ output: {
455
+ data: {
456
+ participantId: string;
457
+ participantKind: "offer" | "order";
458
+ dateOfBirth: string | null;
459
+ nationality: string | null;
460
+ createdAt: string;
461
+ updatedAt: string;
462
+ };
463
+ };
464
+ outputFormat: "json";
465
+ status: import("hono/utils/http-status").ContentfulStatusCode;
466
+ };
467
+ };
468
+ } & {
469
+ "/order-participants/:id/travel-details": {
470
+ $delete: {
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
+ error: string;
489
+ };
490
+ outputFormat: "json";
491
+ status: 401;
492
+ } | {
493
+ input: {
494
+ param: {
495
+ id: string;
496
+ };
497
+ };
498
+ output: {
499
+ error: string;
500
+ };
501
+ outputFormat: "json";
502
+ status: 403;
503
+ } | {
504
+ input: {
505
+ param: {
506
+ id: string;
507
+ };
508
+ };
509
+ output: {
510
+ success: true;
511
+ };
512
+ outputFormat: "json";
513
+ status: import("hono/utils/http-status").ContentfulStatusCode;
514
+ };
515
+ };
516
+ } & {
517
+ "/order-participants/:id": {
518
+ $delete: {
519
+ input: {
520
+ param: {
521
+ id: string;
522
+ };
523
+ };
524
+ output: {
525
+ error: string;
526
+ };
527
+ outputFormat: "json";
528
+ status: 404;
529
+ } | {
530
+ input: {
531
+ param: {
532
+ id: string;
533
+ };
534
+ };
535
+ output: {
536
+ success: true;
537
+ };
538
+ outputFormat: "json";
539
+ status: import("hono/utils/http-status").ContentfulStatusCode;
540
+ };
541
+ };
542
+ } & {
543
+ "/order-items": {
544
+ $get: {
545
+ input: {};
546
+ output: {
547
+ data: {
548
+ id: string;
549
+ orderId: string;
550
+ offerItemId: string | null;
551
+ productId: string | null;
552
+ optionId: string | null;
553
+ unitId: string | null;
554
+ slotId: string | null;
555
+ title: string;
556
+ description: string | null;
557
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
558
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
559
+ serviceDate: string | null;
560
+ startsAt: string | null;
561
+ endsAt: string | null;
562
+ quantity: number;
563
+ sellCurrency: string;
564
+ unitSellAmountCents: number | null;
565
+ totalSellAmountCents: number | null;
566
+ taxAmountCents: number | null;
567
+ feeAmountCents: number | null;
568
+ costCurrency: string | null;
569
+ unitCostAmountCents: number | null;
570
+ totalCostAmountCents: number | null;
571
+ notes: string | null;
572
+ metadata: import("hono/utils/types").JSONValue;
573
+ createdAt: string;
574
+ updatedAt: string;
575
+ }[];
576
+ total: number;
577
+ limit: number;
578
+ offset: number;
579
+ };
580
+ outputFormat: "json";
581
+ status: import("hono/utils/http-status").ContentfulStatusCode;
582
+ };
583
+ };
584
+ } & {
585
+ "/order-items": {
586
+ $post: {
587
+ input: {};
588
+ output: {
589
+ data: {
590
+ orderId: string;
591
+ createdAt: string;
592
+ updatedAt: string;
593
+ description: string | null;
594
+ notes: string | null;
595
+ id: string;
596
+ metadata: import("hono/utils/types").JSONValue;
597
+ title: string;
598
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
599
+ taxAmountCents: number | null;
600
+ feeAmountCents: number | null;
601
+ productId: string | null;
602
+ optionId: string | null;
603
+ unitId: string | null;
604
+ slotId: string | null;
605
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
606
+ serviceDate: string | null;
607
+ startsAt: string | null;
608
+ endsAt: string | null;
609
+ quantity: number;
610
+ sellCurrency: string;
611
+ unitSellAmountCents: number | null;
612
+ totalSellAmountCents: number | null;
613
+ costCurrency: string | null;
614
+ unitCostAmountCents: number | null;
615
+ totalCostAmountCents: number | null;
616
+ offerItemId: string | null;
617
+ } | null;
618
+ };
619
+ outputFormat: "json";
620
+ status: 201;
621
+ };
622
+ };
623
+ } & {
624
+ "/order-items/:id": {
625
+ $get: {
626
+ input: {
627
+ param: {
628
+ id: string;
629
+ };
630
+ };
631
+ output: {
632
+ error: string;
633
+ };
634
+ outputFormat: "json";
635
+ status: 404;
636
+ } | {
637
+ input: {
638
+ param: {
639
+ id: string;
640
+ };
641
+ };
642
+ output: {
643
+ data: {
644
+ id: string;
645
+ orderId: string;
646
+ offerItemId: string | null;
647
+ productId: string | null;
648
+ optionId: string | null;
649
+ unitId: string | null;
650
+ slotId: string | null;
651
+ title: string;
652
+ description: string | null;
653
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
654
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
655
+ serviceDate: string | null;
656
+ startsAt: string | null;
657
+ endsAt: string | null;
658
+ quantity: number;
659
+ sellCurrency: string;
660
+ unitSellAmountCents: number | null;
661
+ totalSellAmountCents: number | null;
662
+ taxAmountCents: number | null;
663
+ feeAmountCents: number | null;
664
+ costCurrency: string | null;
665
+ unitCostAmountCents: number | null;
666
+ totalCostAmountCents: number | null;
667
+ notes: string | null;
668
+ metadata: import("hono/utils/types").JSONValue;
669
+ createdAt: string;
670
+ updatedAt: string;
671
+ };
672
+ };
673
+ outputFormat: "json";
674
+ status: import("hono/utils/http-status").ContentfulStatusCode;
675
+ };
676
+ };
677
+ } & {
678
+ "/order-items/:id": {
679
+ $patch: {
680
+ input: {
681
+ param: {
682
+ id: string;
683
+ };
684
+ };
685
+ output: {
686
+ error: string;
687
+ };
688
+ outputFormat: "json";
689
+ status: 404;
690
+ } | {
691
+ input: {
692
+ param: {
693
+ id: string;
694
+ };
695
+ };
696
+ output: {
697
+ data: {
698
+ id: string;
699
+ orderId: string;
700
+ offerItemId: string | null;
701
+ productId: string | null;
702
+ optionId: string | null;
703
+ unitId: string | null;
704
+ slotId: string | null;
705
+ title: string;
706
+ description: string | null;
707
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
708
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
709
+ serviceDate: string | null;
710
+ startsAt: string | null;
711
+ endsAt: string | null;
712
+ quantity: number;
713
+ sellCurrency: string;
714
+ unitSellAmountCents: number | null;
715
+ totalSellAmountCents: number | null;
716
+ taxAmountCents: number | null;
717
+ feeAmountCents: number | null;
718
+ costCurrency: string | null;
719
+ unitCostAmountCents: number | null;
720
+ totalCostAmountCents: number | null;
721
+ notes: string | null;
722
+ metadata: import("hono/utils/types").JSONValue;
723
+ createdAt: string;
724
+ updatedAt: string;
725
+ };
726
+ };
727
+ outputFormat: "json";
728
+ status: import("hono/utils/http-status").ContentfulStatusCode;
729
+ };
730
+ };
731
+ } & {
732
+ "/order-items/:id": {
733
+ $delete: {
734
+ input: {
735
+ param: {
736
+ id: string;
737
+ };
738
+ };
739
+ output: {
740
+ error: string;
741
+ };
742
+ outputFormat: "json";
743
+ status: 404;
744
+ } | {
745
+ input: {
746
+ param: {
747
+ id: string;
748
+ };
749
+ };
750
+ output: {
751
+ success: true;
752
+ };
753
+ outputFormat: "json";
754
+ status: import("hono/utils/http-status").ContentfulStatusCode;
755
+ };
756
+ };
757
+ } & {
758
+ "/order-item-participants": {
759
+ $get: {
760
+ input: {};
761
+ output: {
762
+ data: {
763
+ id: string;
764
+ orderItemId: string;
765
+ participantId: string;
766
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
767
+ isPrimary: boolean;
768
+ createdAt: string;
769
+ }[];
770
+ total: number;
771
+ limit: number;
772
+ offset: number;
773
+ };
774
+ outputFormat: "json";
775
+ status: import("hono/utils/http-status").ContentfulStatusCode;
776
+ };
777
+ };
778
+ } & {
779
+ "/order-item-participants": {
780
+ $post: {
781
+ input: {};
782
+ output: {
783
+ data: {
784
+ createdAt: string;
785
+ participantId: string;
786
+ id: string;
787
+ isPrimary: boolean;
788
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
789
+ orderItemId: string;
790
+ } | null;
791
+ };
792
+ outputFormat: "json";
793
+ status: 201;
794
+ };
795
+ };
796
+ } & {
797
+ "/order-item-participants/:id": {
798
+ $get: {
799
+ input: {
800
+ param: {
801
+ id: string;
802
+ };
803
+ };
804
+ output: {
805
+ error: string;
806
+ };
807
+ outputFormat: "json";
808
+ status: 404;
809
+ } | {
810
+ input: {
811
+ param: {
812
+ id: string;
813
+ };
814
+ };
815
+ output: {
816
+ data: {
817
+ id: string;
818
+ orderItemId: string;
819
+ participantId: string;
820
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
821
+ isPrimary: boolean;
822
+ createdAt: string;
823
+ };
824
+ };
825
+ outputFormat: "json";
826
+ status: import("hono/utils/http-status").ContentfulStatusCode;
827
+ };
828
+ };
829
+ } & {
830
+ "/order-item-participants/:id": {
831
+ $patch: {
832
+ input: {
833
+ param: {
834
+ id: string;
835
+ };
836
+ };
837
+ output: {
838
+ error: string;
839
+ };
840
+ outputFormat: "json";
841
+ status: 404;
842
+ } | {
843
+ input: {
844
+ param: {
845
+ id: string;
846
+ };
847
+ };
848
+ output: {
849
+ data: {
850
+ id: string;
851
+ orderItemId: string;
852
+ participantId: string;
853
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
854
+ isPrimary: boolean;
855
+ createdAt: string;
856
+ };
857
+ };
858
+ outputFormat: "json";
859
+ status: import("hono/utils/http-status").ContentfulStatusCode;
860
+ };
861
+ };
862
+ } & {
863
+ "/order-item-participants/:id": {
864
+ $delete: {
865
+ input: {
866
+ param: {
867
+ id: string;
868
+ };
869
+ };
870
+ output: {
871
+ error: string;
872
+ };
873
+ outputFormat: "json";
874
+ status: 404;
875
+ } | {
876
+ input: {
877
+ param: {
878
+ id: string;
879
+ };
880
+ };
881
+ output: {
882
+ success: true;
883
+ };
884
+ outputFormat: "json";
885
+ status: import("hono/utils/http-status").ContentfulStatusCode;
886
+ };
887
+ };
888
+ } & {
889
+ "/order-terms": {
890
+ $get: {
891
+ input: {};
892
+ output: {
893
+ data: {
894
+ id: string;
895
+ offerId: string | null;
896
+ orderId: string | null;
897
+ termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
898
+ title: string;
899
+ body: string;
900
+ language: string | null;
901
+ required: boolean;
902
+ sortOrder: number;
903
+ acceptanceStatus: "accepted" | "pending" | "not_required" | "declined";
904
+ acceptedAt: string | null;
905
+ acceptedBy: string | null;
906
+ metadata: import("hono/utils/types").JSONValue;
907
+ createdAt: string;
908
+ updatedAt: string;
909
+ }[];
910
+ total: number;
911
+ limit: number;
912
+ offset: number;
913
+ };
914
+ outputFormat: "json";
915
+ status: import("hono/utils/http-status").ContentfulStatusCode;
916
+ };
917
+ };
918
+ } & {
919
+ "/order-terms": {
920
+ $post: {
921
+ input: {};
922
+ output: {
923
+ data: {
924
+ offerId: string | null;
925
+ orderId: string | null;
926
+ createdAt: string;
927
+ updatedAt: string;
928
+ body: string;
929
+ id: string;
930
+ metadata: import("hono/utils/types").JSONValue;
931
+ title: string;
932
+ acceptedAt: string | null;
933
+ termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
934
+ language: string | null;
935
+ required: boolean;
936
+ sortOrder: number;
937
+ acceptanceStatus: "accepted" | "pending" | "not_required" | "declined";
938
+ acceptedBy: string | null;
939
+ } | null;
940
+ };
941
+ outputFormat: "json";
942
+ status: 201;
943
+ };
944
+ };
945
+ } & {
946
+ "/order-terms/:id": {
947
+ $get: {
948
+ input: {
949
+ param: {
950
+ id: string;
951
+ };
952
+ };
953
+ output: {
954
+ error: string;
955
+ };
956
+ outputFormat: "json";
957
+ status: 404;
958
+ } | {
959
+ input: {
960
+ param: {
961
+ id: string;
962
+ };
963
+ };
964
+ output: {
965
+ data: {
966
+ id: string;
967
+ offerId: string | null;
968
+ orderId: string | null;
969
+ termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
970
+ title: string;
971
+ body: string;
972
+ language: string | null;
973
+ required: boolean;
974
+ sortOrder: number;
975
+ acceptanceStatus: "accepted" | "pending" | "not_required" | "declined";
976
+ acceptedAt: string | null;
977
+ acceptedBy: string | null;
978
+ metadata: import("hono/utils/types").JSONValue;
979
+ createdAt: string;
980
+ updatedAt: string;
981
+ };
982
+ };
983
+ outputFormat: "json";
984
+ status: import("hono/utils/http-status").ContentfulStatusCode;
985
+ };
986
+ };
987
+ } & {
988
+ "/order-terms/:id": {
989
+ $patch: {
990
+ input: {
991
+ param: {
992
+ id: string;
993
+ };
994
+ };
995
+ output: {
996
+ error: string;
997
+ };
998
+ outputFormat: "json";
999
+ status: 404;
1000
+ } | {
1001
+ input: {
1002
+ param: {
1003
+ id: string;
1004
+ };
1005
+ };
1006
+ output: {
1007
+ data: {
1008
+ id: string;
1009
+ offerId: string | null;
1010
+ orderId: string | null;
1011
+ termType: "other" | "terms_and_conditions" | "cancellation" | "guarantee" | "payment" | "pricing" | "commission";
1012
+ title: string;
1013
+ body: string;
1014
+ language: string | null;
1015
+ required: boolean;
1016
+ sortOrder: number;
1017
+ acceptanceStatus: "accepted" | "pending" | "not_required" | "declined";
1018
+ acceptedAt: string | null;
1019
+ acceptedBy: string | null;
1020
+ metadata: import("hono/utils/types").JSONValue;
1021
+ createdAt: string;
1022
+ updatedAt: string;
1023
+ };
1024
+ };
1025
+ outputFormat: "json";
1026
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/order-terms/:id": {
1031
+ $delete: {
1032
+ input: {
1033
+ param: {
1034
+ id: string;
1035
+ };
1036
+ };
1037
+ output: {
1038
+ error: string;
1039
+ };
1040
+ outputFormat: "json";
1041
+ status: 404;
1042
+ } | {
1043
+ input: {
1044
+ param: {
1045
+ id: string;
1046
+ };
1047
+ };
1048
+ output: {
1049
+ success: true;
1050
+ };
1051
+ outputFormat: "json";
1052
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1053
+ };
1054
+ };
1055
+ }, "/", "/order-terms/:id">;
1056
+ //# sourceMappingURL=routes-orders.d.ts.map