@voyantjs/transactions 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 (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,885 @@
1
+ import { type Env } from "./routes-shared.js";
2
+ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<Env, {
3
+ "/offers": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ offerNumber: string;
10
+ title: string;
11
+ status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
12
+ personId: string | null;
13
+ organizationId: string | null;
14
+ opportunityId: string | null;
15
+ quoteId: string | null;
16
+ marketId: string | null;
17
+ sourceChannelId: string | null;
18
+ currency: string;
19
+ baseCurrency: string | null;
20
+ fxRateSetId: string | null;
21
+ subtotalAmountCents: number;
22
+ taxAmountCents: number;
23
+ feeAmountCents: number;
24
+ totalAmountCents: number;
25
+ costAmountCents: number;
26
+ validFrom: string | null;
27
+ validUntil: string | null;
28
+ sentAt: string | null;
29
+ acceptedAt: string | null;
30
+ convertedAt: 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
+ "/offers": {
46
+ $post: {
47
+ input: {};
48
+ output: {
49
+ data: {
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ currency: string;
53
+ notes: string | null;
54
+ id: string;
55
+ metadata: import("hono/utils/types").JSONValue;
56
+ offerNumber: string;
57
+ title: string;
58
+ status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
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
+ validFrom: string | null;
73
+ validUntil: string | null;
74
+ sentAt: string | null;
75
+ acceptedAt: string | null;
76
+ convertedAt: string | null;
77
+ } | null;
78
+ };
79
+ outputFormat: "json";
80
+ status: 201;
81
+ };
82
+ };
83
+ } & {
84
+ "/offers/: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
+ offerNumber: string;
106
+ title: string;
107
+ status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
108
+ personId: string | null;
109
+ organizationId: string | null;
110
+ opportunityId: string | null;
111
+ quoteId: string | null;
112
+ marketId: string | null;
113
+ sourceChannelId: string | null;
114
+ currency: string;
115
+ baseCurrency: string | null;
116
+ fxRateSetId: string | null;
117
+ subtotalAmountCents: number;
118
+ taxAmountCents: number;
119
+ feeAmountCents: number;
120
+ totalAmountCents: number;
121
+ costAmountCents: number;
122
+ validFrom: string | null;
123
+ validUntil: string | null;
124
+ sentAt: string | null;
125
+ acceptedAt: string | null;
126
+ convertedAt: 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
+ "/offers/: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
+ offerNumber: string;
160
+ title: string;
161
+ status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
162
+ personId: string | null;
163
+ organizationId: string | null;
164
+ opportunityId: string | null;
165
+ quoteId: string | null;
166
+ marketId: string | null;
167
+ sourceChannelId: string | null;
168
+ currency: string;
169
+ baseCurrency: string | null;
170
+ fxRateSetId: string | null;
171
+ subtotalAmountCents: number;
172
+ taxAmountCents: number;
173
+ feeAmountCents: number;
174
+ totalAmountCents: number;
175
+ costAmountCents: number;
176
+ validFrom: string | null;
177
+ validUntil: string | null;
178
+ sentAt: string | null;
179
+ acceptedAt: string | null;
180
+ convertedAt: 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
+ "/offers/: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
+ "/offer-participants": {
219
+ $get: {
220
+ input: {};
221
+ output: {
222
+ data: {
223
+ id: string;
224
+ offerId: 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
+ "/offer-participants": {
249
+ $post: {
250
+ input: {};
251
+ output: {
252
+ data: {
253
+ id: string;
254
+ offerId: 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
+ "/offer-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
+ offerId: 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
+ "/offer-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
+ offerId: 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
+ "/offer-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
+ "/offer-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
+ "/offer-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
+ "/offer-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
+ "/offer-items": {
544
+ $get: {
545
+ input: {};
546
+ output: {
547
+ data: {
548
+ id: string;
549
+ offerId: string;
550
+ productId: string | null;
551
+ optionId: string | null;
552
+ unitId: string | null;
553
+ slotId: string | null;
554
+ title: string;
555
+ description: string | null;
556
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
557
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
558
+ serviceDate: string | null;
559
+ startsAt: string | null;
560
+ endsAt: string | null;
561
+ quantity: number;
562
+ sellCurrency: string;
563
+ unitSellAmountCents: number | null;
564
+ totalSellAmountCents: number | null;
565
+ taxAmountCents: number | null;
566
+ feeAmountCents: number | null;
567
+ costCurrency: string | null;
568
+ unitCostAmountCents: number | null;
569
+ totalCostAmountCents: number | null;
570
+ notes: string | null;
571
+ metadata: import("hono/utils/types").JSONValue;
572
+ createdAt: string;
573
+ updatedAt: string;
574
+ }[];
575
+ total: number;
576
+ limit: number;
577
+ offset: number;
578
+ };
579
+ outputFormat: "json";
580
+ status: import("hono/utils/http-status").ContentfulStatusCode;
581
+ };
582
+ };
583
+ } & {
584
+ "/offer-items": {
585
+ $post: {
586
+ input: {};
587
+ output: {
588
+ data: {
589
+ offerId: string;
590
+ createdAt: string;
591
+ updatedAt: string;
592
+ description: string | null;
593
+ notes: string | null;
594
+ id: string;
595
+ metadata: import("hono/utils/types").JSONValue;
596
+ title: string;
597
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
598
+ taxAmountCents: number | null;
599
+ feeAmountCents: number | null;
600
+ productId: string | null;
601
+ optionId: string | null;
602
+ unitId: string | null;
603
+ slotId: string | null;
604
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
605
+ serviceDate: string | null;
606
+ startsAt: string | null;
607
+ endsAt: string | null;
608
+ quantity: number;
609
+ sellCurrency: string;
610
+ unitSellAmountCents: number | null;
611
+ totalSellAmountCents: number | null;
612
+ costCurrency: string | null;
613
+ unitCostAmountCents: number | null;
614
+ totalCostAmountCents: number | null;
615
+ } | null;
616
+ };
617
+ outputFormat: "json";
618
+ status: 201;
619
+ };
620
+ };
621
+ } & {
622
+ "/offer-items/:id": {
623
+ $get: {
624
+ input: {
625
+ param: {
626
+ id: string;
627
+ };
628
+ };
629
+ output: {
630
+ error: string;
631
+ };
632
+ outputFormat: "json";
633
+ status: 404;
634
+ } | {
635
+ input: {
636
+ param: {
637
+ id: string;
638
+ };
639
+ };
640
+ output: {
641
+ data: {
642
+ id: string;
643
+ offerId: string;
644
+ productId: string | null;
645
+ optionId: string | null;
646
+ unitId: string | null;
647
+ slotId: string | null;
648
+ title: string;
649
+ description: string | null;
650
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
651
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
652
+ serviceDate: string | null;
653
+ startsAt: string | null;
654
+ endsAt: string | null;
655
+ quantity: number;
656
+ sellCurrency: string;
657
+ unitSellAmountCents: number | null;
658
+ totalSellAmountCents: number | null;
659
+ taxAmountCents: number | null;
660
+ feeAmountCents: number | null;
661
+ costCurrency: string | null;
662
+ unitCostAmountCents: number | null;
663
+ totalCostAmountCents: number | null;
664
+ notes: string | null;
665
+ metadata: import("hono/utils/types").JSONValue;
666
+ createdAt: string;
667
+ updatedAt: string;
668
+ };
669
+ };
670
+ outputFormat: "json";
671
+ status: import("hono/utils/http-status").ContentfulStatusCode;
672
+ };
673
+ };
674
+ } & {
675
+ "/offer-items/:id": {
676
+ $patch: {
677
+ input: {
678
+ param: {
679
+ id: string;
680
+ };
681
+ };
682
+ output: {
683
+ error: string;
684
+ };
685
+ outputFormat: "json";
686
+ status: 404;
687
+ } | {
688
+ input: {
689
+ param: {
690
+ id: string;
691
+ };
692
+ };
693
+ output: {
694
+ data: {
695
+ id: string;
696
+ offerId: string;
697
+ productId: string | null;
698
+ optionId: string | null;
699
+ unitId: string | null;
700
+ slotId: string | null;
701
+ title: string;
702
+ description: string | null;
703
+ itemType: "other" | "unit" | "service" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
704
+ status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
705
+ serviceDate: string | null;
706
+ startsAt: string | null;
707
+ endsAt: string | null;
708
+ quantity: number;
709
+ sellCurrency: string;
710
+ unitSellAmountCents: number | null;
711
+ totalSellAmountCents: number | null;
712
+ taxAmountCents: number | null;
713
+ feeAmountCents: number | null;
714
+ costCurrency: string | null;
715
+ unitCostAmountCents: number | null;
716
+ totalCostAmountCents: number | null;
717
+ notes: string | null;
718
+ metadata: import("hono/utils/types").JSONValue;
719
+ createdAt: string;
720
+ updatedAt: string;
721
+ };
722
+ };
723
+ outputFormat: "json";
724
+ status: import("hono/utils/http-status").ContentfulStatusCode;
725
+ };
726
+ };
727
+ } & {
728
+ "/offer-items/:id": {
729
+ $delete: {
730
+ input: {
731
+ param: {
732
+ id: string;
733
+ };
734
+ };
735
+ output: {
736
+ error: string;
737
+ };
738
+ outputFormat: "json";
739
+ status: 404;
740
+ } | {
741
+ input: {
742
+ param: {
743
+ id: string;
744
+ };
745
+ };
746
+ output: {
747
+ success: true;
748
+ };
749
+ outputFormat: "json";
750
+ status: import("hono/utils/http-status").ContentfulStatusCode;
751
+ };
752
+ };
753
+ } & {
754
+ "/offer-item-participants": {
755
+ $get: {
756
+ input: {};
757
+ output: {
758
+ data: {
759
+ id: string;
760
+ offerItemId: string;
761
+ participantId: string;
762
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
763
+ isPrimary: boolean;
764
+ createdAt: string;
765
+ }[];
766
+ total: number;
767
+ limit: number;
768
+ offset: number;
769
+ };
770
+ outputFormat: "json";
771
+ status: import("hono/utils/http-status").ContentfulStatusCode;
772
+ };
773
+ };
774
+ } & {
775
+ "/offer-item-participants": {
776
+ $post: {
777
+ input: {};
778
+ output: {
779
+ data: {
780
+ createdAt: string;
781
+ participantId: string;
782
+ id: string;
783
+ isPrimary: boolean;
784
+ offerItemId: string;
785
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
786
+ } | null;
787
+ };
788
+ outputFormat: "json";
789
+ status: 201;
790
+ };
791
+ };
792
+ } & {
793
+ "/offer-item-participants/:id": {
794
+ $get: {
795
+ input: {
796
+ param: {
797
+ id: string;
798
+ };
799
+ };
800
+ output: {
801
+ error: string;
802
+ };
803
+ outputFormat: "json";
804
+ status: 404;
805
+ } | {
806
+ input: {
807
+ param: {
808
+ id: string;
809
+ };
810
+ };
811
+ output: {
812
+ data: {
813
+ id: string;
814
+ offerItemId: string;
815
+ participantId: string;
816
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
817
+ isPrimary: boolean;
818
+ createdAt: string;
819
+ };
820
+ };
821
+ outputFormat: "json";
822
+ status: import("hono/utils/http-status").ContentfulStatusCode;
823
+ };
824
+ };
825
+ } & {
826
+ "/offer-item-participants/:id": {
827
+ $patch: {
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
+ data: {
846
+ id: string;
847
+ offerItemId: string;
848
+ participantId: string;
849
+ role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
850
+ isPrimary: boolean;
851
+ createdAt: string;
852
+ };
853
+ };
854
+ outputFormat: "json";
855
+ status: import("hono/utils/http-status").ContentfulStatusCode;
856
+ };
857
+ };
858
+ } & {
859
+ "/offer-item-participants/:id": {
860
+ $delete: {
861
+ input: {
862
+ param: {
863
+ id: string;
864
+ };
865
+ };
866
+ output: {
867
+ error: string;
868
+ };
869
+ outputFormat: "json";
870
+ status: 404;
871
+ } | {
872
+ input: {
873
+ param: {
874
+ id: string;
875
+ };
876
+ };
877
+ output: {
878
+ success: true;
879
+ };
880
+ outputFormat: "json";
881
+ status: import("hono/utils/http-status").ContentfulStatusCode;
882
+ };
883
+ };
884
+ }, "/", "/offer-item-participants/:id">;
885
+ //# sourceMappingURL=routes-offers.d.ts.map