@voyantjs/octo 0.6.7 → 0.6.9

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.
package/dist/routes.d.ts CHANGED
@@ -322,7 +322,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
322
322
  status: import("./types.js").OctoBookingStatus;
323
323
  availabilityId: string | null;
324
324
  contact: {
325
- participantId: string;
325
+ travelerId: null;
326
+ firstName: string | null;
327
+ lastName: string | null;
328
+ email: string | null;
329
+ phone: string | null;
330
+ language: string | null;
331
+ } | {
332
+ travelerId: string;
326
333
  firstName: string | null;
327
334
  lastName: string | null;
328
335
  email: string | null;
@@ -340,12 +347,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
340
347
  unitId: string | null;
341
348
  pricingCategoryId: string | null;
342
349
  availabilityId: string | null;
343
- participantIds: string[];
350
+ travelerIds: string[];
344
351
  }[];
345
352
  fulfillments: {
346
353
  id: string;
347
354
  bookingItemId: string | null;
348
- participantId: string | null;
355
+ travelerId: string | null;
349
356
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
350
357
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
351
358
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -359,7 +366,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
359
366
  artifacts: {
360
367
  fulfillmentId: string;
361
368
  bookingItemId: string | null;
362
- participantId: string | null;
369
+ travelerId: string | null;
363
370
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
364
371
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
365
372
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -375,7 +382,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
375
382
  redemptions: {
376
383
  id: string;
377
384
  bookingItemId: string | null;
378
- participantId: string | null;
385
+ travelerId: string | null;
379
386
  redeemedAt: string;
380
387
  redeemedBy: string | null;
381
388
  location: string | null;
@@ -451,7 +458,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
451
458
  status: import("./types.js").OctoBookingStatus;
452
459
  availabilityId: string | null;
453
460
  contact: {
454
- participantId: string;
461
+ travelerId: null;
462
+ firstName: string | null;
463
+ lastName: string | null;
464
+ email: string | null;
465
+ phone: string | null;
466
+ language: string | null;
467
+ } | {
468
+ travelerId: string;
455
469
  firstName: string | null;
456
470
  lastName: string | null;
457
471
  email: string | null;
@@ -469,12 +483,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
469
483
  unitId: string | null;
470
484
  pricingCategoryId: string | null;
471
485
  availabilityId: string | null;
472
- participantIds: string[];
486
+ travelerIds: string[];
473
487
  }[];
474
488
  fulfillments: {
475
489
  id: string;
476
490
  bookingItemId: string | null;
477
- participantId: string | null;
491
+ travelerId: string | null;
478
492
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
479
493
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
480
494
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -488,7 +502,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
488
502
  artifacts: {
489
503
  fulfillmentId: string;
490
504
  bookingItemId: string | null;
491
- participantId: string | null;
505
+ travelerId: string | null;
492
506
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
493
507
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
494
508
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -504,7 +518,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
504
518
  redemptions: {
505
519
  id: string;
506
520
  bookingItemId: string | null;
507
- participantId: string | null;
521
+ travelerId: string | null;
508
522
  redeemedAt: string;
509
523
  redeemedBy: string | null;
510
524
  location: string | null;
@@ -577,7 +591,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
577
591
  status: import("./types.js").OctoBookingStatus;
578
592
  availabilityId: string | null;
579
593
  contact: {
580
- participantId: string;
594
+ travelerId: null;
595
+ firstName: string | null;
596
+ lastName: string | null;
597
+ email: string | null;
598
+ phone: string | null;
599
+ language: string | null;
600
+ } | {
601
+ travelerId: string;
581
602
  firstName: string | null;
582
603
  lastName: string | null;
583
604
  email: string | null;
@@ -595,12 +616,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
595
616
  unitId: string | null;
596
617
  pricingCategoryId: string | null;
597
618
  availabilityId: string | null;
598
- participantIds: string[];
619
+ travelerIds: string[];
599
620
  }[];
600
621
  fulfillments: {
601
622
  id: string;
602
623
  bookingItemId: string | null;
603
- participantId: string | null;
624
+ travelerId: string | null;
604
625
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
605
626
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
606
627
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -614,7 +635,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
614
635
  artifacts: {
615
636
  fulfillmentId: string;
616
637
  bookingItemId: string | null;
617
- participantId: string | null;
638
+ travelerId: string | null;
618
639
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
619
640
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
620
641
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -630,7 +651,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
630
651
  redemptions: {
631
652
  id: string;
632
653
  bookingItemId: string | null;
633
- participantId: string | null;
654
+ travelerId: string | null;
634
655
  redeemedAt: string;
635
656
  redeemedBy: string | null;
636
657
  location: string | null;
@@ -689,7 +710,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
689
710
  status: import("./types.js").OctoBookingStatus;
690
711
  availabilityId: string | null;
691
712
  contact: {
692
- participantId: string;
713
+ travelerId: null;
714
+ firstName: string | null;
715
+ lastName: string | null;
716
+ email: string | null;
717
+ phone: string | null;
718
+ language: string | null;
719
+ } | {
720
+ travelerId: string;
693
721
  firstName: string | null;
694
722
  lastName: string | null;
695
723
  email: string | null;
@@ -707,12 +735,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
707
735
  unitId: string | null;
708
736
  pricingCategoryId: string | null;
709
737
  availabilityId: string | null;
710
- participantIds: string[];
738
+ travelerIds: string[];
711
739
  }[];
712
740
  fulfillments: {
713
741
  id: string;
714
742
  bookingItemId: string | null;
715
- participantId: string | null;
743
+ travelerId: string | null;
716
744
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
717
745
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
718
746
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -726,7 +754,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
726
754
  artifacts: {
727
755
  fulfillmentId: string;
728
756
  bookingItemId: string | null;
729
- participantId: string | null;
757
+ travelerId: string | null;
730
758
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
731
759
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
732
760
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -742,7 +770,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
742
770
  redemptions: {
743
771
  id: string;
744
772
  bookingItemId: string | null;
745
- participantId: string | null;
773
+ travelerId: string | null;
746
774
  redeemedAt: string;
747
775
  redeemedBy: string | null;
748
776
  location: string | null;
@@ -834,7 +862,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
834
862
  status: import("./types.js").OctoBookingStatus;
835
863
  availabilityId: string | null;
836
864
  contact: {
837
- participantId: string;
865
+ travelerId: null;
866
+ firstName: string | null;
867
+ lastName: string | null;
868
+ email: string | null;
869
+ phone: string | null;
870
+ language: string | null;
871
+ } | {
872
+ travelerId: string;
838
873
  firstName: string | null;
839
874
  lastName: string | null;
840
875
  email: string | null;
@@ -852,12 +887,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
852
887
  unitId: string | null;
853
888
  pricingCategoryId: string | null;
854
889
  availabilityId: string | null;
855
- participantIds: string[];
890
+ travelerIds: string[];
856
891
  }[];
857
892
  fulfillments: {
858
893
  id: string;
859
894
  bookingItemId: string | null;
860
- participantId: string | null;
895
+ travelerId: string | null;
861
896
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
862
897
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
863
898
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -871,7 +906,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
871
906
  artifacts: {
872
907
  fulfillmentId: string;
873
908
  bookingItemId: string | null;
874
- participantId: string | null;
909
+ travelerId: string | null;
875
910
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
876
911
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
877
912
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -887,7 +922,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
887
922
  redemptions: {
888
923
  id: string;
889
924
  bookingItemId: string | null;
890
- participantId: string | null;
925
+ travelerId: string | null;
891
926
  redeemedAt: string;
892
927
  redeemedBy: string | null;
893
928
  location: string | null;
@@ -979,7 +1014,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
979
1014
  status: import("./types.js").OctoBookingStatus;
980
1015
  availabilityId: string | null;
981
1016
  contact: {
982
- participantId: string;
1017
+ travelerId: null;
1018
+ firstName: string | null;
1019
+ lastName: string | null;
1020
+ email: string | null;
1021
+ phone: string | null;
1022
+ language: string | null;
1023
+ } | {
1024
+ travelerId: string;
983
1025
  firstName: string | null;
984
1026
  lastName: string | null;
985
1027
  email: string | null;
@@ -997,12 +1039,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
997
1039
  unitId: string | null;
998
1040
  pricingCategoryId: string | null;
999
1041
  availabilityId: string | null;
1000
- participantIds: string[];
1042
+ travelerIds: string[];
1001
1043
  }[];
1002
1044
  fulfillments: {
1003
1045
  id: string;
1004
1046
  bookingItemId: string | null;
1005
- participantId: string | null;
1047
+ travelerId: string | null;
1006
1048
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1007
1049
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1008
1050
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1016,7 +1058,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1016
1058
  artifacts: {
1017
1059
  fulfillmentId: string;
1018
1060
  bookingItemId: string | null;
1019
- participantId: string | null;
1061
+ travelerId: string | null;
1020
1062
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1021
1063
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1022
1064
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1032,7 +1074,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1032
1074
  redemptions: {
1033
1075
  id: string;
1034
1076
  bookingItemId: string | null;
1035
- participantId: string | null;
1077
+ travelerId: string | null;
1036
1078
  redeemedAt: string;
1037
1079
  redeemedBy: string | null;
1038
1080
  location: string | null;
@@ -1124,7 +1166,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1124
1166
  status: import("./types.js").OctoBookingStatus;
1125
1167
  availabilityId: string | null;
1126
1168
  contact: {
1127
- participantId: string;
1169
+ travelerId: null;
1170
+ firstName: string | null;
1171
+ lastName: string | null;
1172
+ email: string | null;
1173
+ phone: string | null;
1174
+ language: string | null;
1175
+ } | {
1176
+ travelerId: string;
1128
1177
  firstName: string | null;
1129
1178
  lastName: string | null;
1130
1179
  email: string | null;
@@ -1142,12 +1191,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1142
1191
  unitId: string | null;
1143
1192
  pricingCategoryId: string | null;
1144
1193
  availabilityId: string | null;
1145
- participantIds: string[];
1194
+ travelerIds: string[];
1146
1195
  }[];
1147
1196
  fulfillments: {
1148
1197
  id: string;
1149
1198
  bookingItemId: string | null;
1150
- participantId: string | null;
1199
+ travelerId: string | null;
1151
1200
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1152
1201
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1153
1202
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1161,7 +1210,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1161
1210
  artifacts: {
1162
1211
  fulfillmentId: string;
1163
1212
  bookingItemId: string | null;
1164
- participantId: string | null;
1213
+ travelerId: string | null;
1165
1214
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1166
1215
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1167
1216
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1177,7 +1226,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1177
1226
  redemptions: {
1178
1227
  id: string;
1179
1228
  bookingItemId: string | null;
1180
- participantId: string | null;
1229
+ travelerId: string | null;
1181
1230
  redeemedAt: string;
1182
1231
  redeemedBy: string | null;
1183
1232
  location: string | null;
@@ -1277,7 +1326,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1277
1326
  data: {
1278
1327
  id: string;
1279
1328
  bookingItemId: string | null;
1280
- participantId: string | null;
1329
+ travelerId: string | null;
1281
1330
  redeemedAt: string;
1282
1331
  redeemedBy: string | null;
1283
1332
  location: string | null;
@@ -1314,7 +1363,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1314
1363
  data: {
1315
1364
  id: string;
1316
1365
  bookingItemId: string | null;
1317
- participantId: string | null;
1366
+ travelerId: string | null;
1318
1367
  redeemedAt: string;
1319
1368
  redeemedBy: string | null;
1320
1369
  location: string | null;
@@ -1329,7 +1378,14 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1329
1378
  status: import("./types.js").OctoBookingStatus;
1330
1379
  availabilityId: string | null;
1331
1380
  contact: {
1332
- participantId: string;
1381
+ travelerId: null;
1382
+ firstName: string | null;
1383
+ lastName: string | null;
1384
+ email: string | null;
1385
+ phone: string | null;
1386
+ language: string | null;
1387
+ } | {
1388
+ travelerId: string;
1333
1389
  firstName: string | null;
1334
1390
  lastName: string | null;
1335
1391
  email: string | null;
@@ -1347,12 +1403,12 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1347
1403
  unitId: string | null;
1348
1404
  pricingCategoryId: string | null;
1349
1405
  availabilityId: string | null;
1350
- participantIds: string[];
1406
+ travelerIds: string[];
1351
1407
  }[];
1352
1408
  fulfillments: {
1353
1409
  id: string;
1354
1410
  bookingItemId: string | null;
1355
- participantId: string | null;
1411
+ travelerId: string | null;
1356
1412
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1357
1413
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1358
1414
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1366,7 +1422,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1366
1422
  artifacts: {
1367
1423
  fulfillmentId: string;
1368
1424
  bookingItemId: string | null;
1369
- participantId: string | null;
1425
+ travelerId: string | null;
1370
1426
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
1371
1427
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
1372
1428
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1382,7 +1438,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1382
1438
  redemptions: {
1383
1439
  id: string;
1384
1440
  bookingItemId: string | null;
1385
- participantId: string | null;
1441
+ travelerId: string | null;
1386
1442
  redeemedAt: string;
1387
1443
  redeemedBy: string | null;
1388
1444
  location: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAWjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA8InB,CAAA;AAEJ,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA"}
@@ -7,7 +7,14 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
7
7
  status: import("./types.js").OctoBookingStatus;
8
8
  availabilityId: string | null;
9
9
  contact: {
10
- participantId: string;
10
+ travelerId: null;
11
+ firstName: string | null;
12
+ lastName: string | null;
13
+ email: string | null;
14
+ phone: string | null;
15
+ language: string | null;
16
+ } | {
17
+ travelerId: string;
11
18
  firstName: string | null;
12
19
  lastName: string | null;
13
20
  email: string | null;
@@ -25,12 +32,12 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
25
32
  unitId: string | null;
26
33
  pricingCategoryId: string | null;
27
34
  availabilityId: string | null;
28
- participantIds: string[];
35
+ travelerIds: string[];
29
36
  }[];
30
37
  fulfillments: {
31
38
  id: string;
32
39
  bookingItemId: string | null;
33
- participantId: string | null;
40
+ travelerId: string | null;
34
41
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
35
42
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
36
43
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -42,7 +49,7 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
42
49
  artifacts: {
43
50
  fulfillmentId: string;
44
51
  bookingItemId: string | null;
45
- participantId: string | null;
52
+ travelerId: string | null;
46
53
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
47
54
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
48
55
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -58,7 +65,7 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
58
65
  redemptions: {
59
66
  id: string;
60
67
  bookingItemId: string | null;
61
- participantId: string | null;
68
+ travelerId: string | null;
62
69
  redeemedAt: string;
63
70
  redeemedBy: string | null;
64
71
  location: string | null;
@@ -102,7 +109,14 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
102
109
  status: import("./types.js").OctoBookingStatus;
103
110
  availabilityId: string | null;
104
111
  contact: {
105
- participantId: string;
112
+ travelerId: null;
113
+ firstName: string | null;
114
+ lastName: string | null;
115
+ email: string | null;
116
+ phone: string | null;
117
+ language: string | null;
118
+ } | {
119
+ travelerId: string;
106
120
  firstName: string | null;
107
121
  lastName: string | null;
108
122
  email: string | null;
@@ -120,12 +134,12 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
120
134
  unitId: string | null;
121
135
  pricingCategoryId: string | null;
122
136
  availabilityId: string | null;
123
- participantIds: string[];
137
+ travelerIds: string[];
124
138
  }[];
125
139
  fulfillments: {
126
140
  id: string;
127
141
  bookingItemId: string | null;
128
- participantId: string | null;
142
+ travelerId: string | null;
129
143
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
130
144
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
131
145
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -137,7 +151,7 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
137
151
  artifacts: {
138
152
  fulfillmentId: string;
139
153
  bookingItemId: string | null;
140
- participantId: string | null;
154
+ travelerId: string | null;
141
155
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
142
156
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
143
157
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -153,7 +167,7 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
153
167
  redemptions: {
154
168
  id: string;
155
169
  bookingItemId: string | null;
156
- participantId: string | null;
170
+ travelerId: string | null;
157
171
  redeemedAt: string;
158
172
  redeemedBy: string | null;
159
173
  location: string | null;
@@ -204,7 +218,14 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
204
218
  status: import("./types.js").OctoBookingStatus;
205
219
  availabilityId: string | null;
206
220
  contact: {
207
- participantId: string;
221
+ travelerId: null;
222
+ firstName: string | null;
223
+ lastName: string | null;
224
+ email: string | null;
225
+ phone: string | null;
226
+ language: string | null;
227
+ } | {
228
+ travelerId: string;
208
229
  firstName: string | null;
209
230
  lastName: string | null;
210
231
  email: string | null;
@@ -222,12 +243,12 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
222
243
  unitId: string | null;
223
244
  pricingCategoryId: string | null;
224
245
  availabilityId: string | null;
225
- participantIds: string[];
246
+ travelerIds: string[];
226
247
  }[];
227
248
  fulfillments: {
228
249
  id: string;
229
250
  bookingItemId: string | null;
230
- participantId: string | null;
251
+ travelerId: string | null;
231
252
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
232
253
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
233
254
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -239,7 +260,7 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
239
260
  artifacts: {
240
261
  fulfillmentId: string;
241
262
  bookingItemId: string | null;
242
- participantId: string | null;
263
+ travelerId: string | null;
243
264
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
244
265
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
245
266
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -255,7 +276,7 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
255
276
  redemptions: {
256
277
  id: string;
257
278
  bookingItemId: string | null;
258
- participantId: string | null;
279
+ travelerId: string | null;
259
280
  redeemedAt: string;
260
281
  redeemedBy: string | null;
261
282
  location: string | null;
@@ -303,7 +324,14 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
303
324
  status: import("./types.js").OctoBookingStatus;
304
325
  availabilityId: string | null;
305
326
  contact: {
306
- participantId: string;
327
+ travelerId: null;
328
+ firstName: string | null;
329
+ lastName: string | null;
330
+ email: string | null;
331
+ phone: string | null;
332
+ language: string | null;
333
+ } | {
334
+ travelerId: string;
307
335
  firstName: string | null;
308
336
  lastName: string | null;
309
337
  email: string | null;
@@ -321,12 +349,12 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
321
349
  unitId: string | null;
322
350
  pricingCategoryId: string | null;
323
351
  availabilityId: string | null;
324
- participantIds: string[];
352
+ travelerIds: string[];
325
353
  }[];
326
354
  fulfillments: {
327
355
  id: string;
328
356
  bookingItemId: string | null;
329
- participantId: string | null;
357
+ travelerId: string | null;
330
358
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
331
359
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
332
360
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -338,7 +366,7 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
338
366
  artifacts: {
339
367
  fulfillmentId: string;
340
368
  bookingItemId: string | null;
341
- participantId: string | null;
369
+ travelerId: string | null;
342
370
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
343
371
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
344
372
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -354,7 +382,7 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
354
382
  redemptions: {
355
383
  id: string;
356
384
  bookingItemId: string | null;
357
- participantId: string | null;
385
+ travelerId: string | null;
358
386
  redeemedAt: string;
359
387
  redeemedBy: string | null;
360
388
  location: string | null;
@@ -402,7 +430,14 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
402
430
  status: import("./types.js").OctoBookingStatus;
403
431
  availabilityId: string | null;
404
432
  contact: {
405
- participantId: string;
433
+ travelerId: null;
434
+ firstName: string | null;
435
+ lastName: string | null;
436
+ email: string | null;
437
+ phone: string | null;
438
+ language: string | null;
439
+ } | {
440
+ travelerId: string;
406
441
  firstName: string | null;
407
442
  lastName: string | null;
408
443
  email: string | null;
@@ -420,12 +455,12 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
420
455
  unitId: string | null;
421
456
  pricingCategoryId: string | null;
422
457
  availabilityId: string | null;
423
- participantIds: string[];
458
+ travelerIds: string[];
424
459
  }[];
425
460
  fulfillments: {
426
461
  id: string;
427
462
  bookingItemId: string | null;
428
- participantId: string | null;
463
+ travelerId: string | null;
429
464
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
430
465
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
431
466
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -437,7 +472,7 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
437
472
  artifacts: {
438
473
  fulfillmentId: string;
439
474
  bookingItemId: string | null;
440
- participantId: string | null;
475
+ travelerId: string | null;
441
476
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
442
477
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
443
478
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -453,7 +488,7 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
453
488
  redemptions: {
454
489
  id: string;
455
490
  bookingItemId: string | null;
456
- participantId: string | null;
491
+ travelerId: string | null;
457
492
  redeemedAt: string;
458
493
  redeemedBy: string | null;
459
494
  location: string | null;
@@ -501,7 +536,14 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
501
536
  status: import("./types.js").OctoBookingStatus;
502
537
  availabilityId: string | null;
503
538
  contact: {
504
- participantId: string;
539
+ travelerId: null;
540
+ firstName: string | null;
541
+ lastName: string | null;
542
+ email: string | null;
543
+ phone: string | null;
544
+ language: string | null;
545
+ } | {
546
+ travelerId: string;
505
547
  firstName: string | null;
506
548
  lastName: string | null;
507
549
  email: string | null;
@@ -519,12 +561,12 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
519
561
  unitId: string | null;
520
562
  pricingCategoryId: string | null;
521
563
  availabilityId: string | null;
522
- participantIds: string[];
564
+ travelerIds: string[];
523
565
  }[];
524
566
  fulfillments: {
525
567
  id: string;
526
568
  bookingItemId: string | null;
527
- participantId: string | null;
569
+ travelerId: string | null;
528
570
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
529
571
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
530
572
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -536,7 +578,7 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
536
578
  artifacts: {
537
579
  fulfillmentId: string;
538
580
  bookingItemId: string | null;
539
- participantId: string | null;
581
+ travelerId: string | null;
540
582
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
541
583
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
542
584
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -552,7 +594,7 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
552
594
  redemptions: {
553
595
  id: string;
554
596
  bookingItemId: string | null;
555
- participantId: string | null;
597
+ travelerId: string | null;
556
598
  redeemedAt: string;
557
599
  redeemedBy: string | null;
558
600
  location: string | null;
@@ -600,7 +642,14 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
600
642
  status: import("./types.js").OctoBookingStatus;
601
643
  availabilityId: string | null;
602
644
  contact: {
603
- participantId: string;
645
+ travelerId: null;
646
+ firstName: string | null;
647
+ lastName: string | null;
648
+ email: string | null;
649
+ phone: string | null;
650
+ language: string | null;
651
+ } | {
652
+ travelerId: string;
604
653
  firstName: string | null;
605
654
  lastName: string | null;
606
655
  email: string | null;
@@ -618,12 +667,12 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
618
667
  unitId: string | null;
619
668
  pricingCategoryId: string | null;
620
669
  availabilityId: string | null;
621
- participantIds: string[];
670
+ travelerIds: string[];
622
671
  }[];
623
672
  fulfillments: {
624
673
  id: string;
625
674
  bookingItemId: string | null;
626
- participantId: string | null;
675
+ travelerId: string | null;
627
676
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
628
677
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
629
678
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -635,7 +684,7 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
635
684
  artifacts: {
636
685
  fulfillmentId: string;
637
686
  bookingItemId: string | null;
638
- participantId: string | null;
687
+ travelerId: string | null;
639
688
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
640
689
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
641
690
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -651,7 +700,7 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
651
700
  redemptions: {
652
701
  id: string;
653
702
  bookingItemId: string | null;
654
- participantId: string | null;
703
+ travelerId: string | null;
655
704
  redeemedAt: string;
656
705
  redeemedBy: string | null;
657
706
  location: string | null;
@@ -692,7 +741,7 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
692
741
  export declare function listProjectedRedemptions(db: PostgresJsDatabase, bookingId: string): Promise<{
693
742
  id: string;
694
743
  bookingItemId: string | null;
695
- participantId: string | null;
744
+ travelerId: string | null;
696
745
  redeemedAt: string;
697
746
  redeemedBy: string | null;
698
747
  location: string | null;
@@ -703,7 +752,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
703
752
  event: {
704
753
  id: string;
705
754
  bookingItemId: string | null;
706
- participantId: string | null;
755
+ travelerId: string | null;
707
756
  redeemedAt: string;
708
757
  redeemedBy: string | null;
709
758
  location: string | null;
@@ -716,7 +765,14 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
716
765
  status: import("./types.js").OctoBookingStatus;
717
766
  availabilityId: string | null;
718
767
  contact: {
719
- participantId: string;
768
+ travelerId: null;
769
+ firstName: string | null;
770
+ lastName: string | null;
771
+ email: string | null;
772
+ phone: string | null;
773
+ language: string | null;
774
+ } | {
775
+ travelerId: string;
720
776
  firstName: string | null;
721
777
  lastName: string | null;
722
778
  email: string | null;
@@ -734,12 +790,12 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
734
790
  unitId: string | null;
735
791
  pricingCategoryId: string | null;
736
792
  availabilityId: string | null;
737
- participantIds: string[];
793
+ travelerIds: string[];
738
794
  }[];
739
795
  fulfillments: {
740
796
  id: string;
741
797
  bookingItemId: string | null;
742
- participantId: string | null;
798
+ travelerId: string | null;
743
799
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
744
800
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
745
801
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -751,7 +807,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
751
807
  artifacts: {
752
808
  fulfillmentId: string;
753
809
  bookingItemId: string | null;
754
- participantId: string | null;
810
+ travelerId: string | null;
755
811
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
756
812
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
757
813
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -767,7 +823,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
767
823
  redemptions: {
768
824
  id: string;
769
825
  bookingItemId: string | null;
770
- participantId: string | null;
826
+ travelerId: string | null;
771
827
  redeemedAt: string;
772
828
  redeemedBy: string | null;
773
829
  location: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"service-bookings.d.ts","sourceRoot":"","sources":["../src/service-bookings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAapD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAGL,KAAK,oBAAoB,EAG1B,MAAM,qBAAqB,CAAA;AAG5B,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuK/E;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAY9F;AAmBD,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,kBAAkB,EACtB,IAAI,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAC1D,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGhB;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM;;;;;;;;;KAYvF;AAED,wBAAsB,yBAAyB,CAC7C,EAAE,EAAE,kBAAkB,EACtB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAC5D,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBhB"}
@@ -1,5 +1,5 @@
1
1
  import { bookingsService } from "@voyantjs/bookings";
2
- import { bookingAllocations, bookingFulfillments, bookingItemParticipants, bookingItems, bookingParticipants, bookingRedemptionEvents, bookingSupplierStatuses, bookings, } from "@voyantjs/bookings/schema";
2
+ import { bookingAllocations, bookingFulfillments, bookingItems, bookingItemTravelers, bookingRedemptionEvents, bookingSupplierStatuses, bookings, bookingTravelers, } from "@voyantjs/bookings/schema";
3
3
  import { offers, orders } from "@voyantjs/transactions/schema";
4
4
  import { asc, eq, inArray } from "drizzle-orm";
5
5
  import { mapBookingArtifact, mapBookingStatus, pickBookingContact, toIsoString, } from "./service-shared.js";
@@ -11,9 +11,9 @@ export async function getProjectedBookingById(db, id) {
11
11
  const [participants, items, allocations, fulfillments, redemptions, supplierStatuses, transactionLink,] = await Promise.all([
12
12
  db
13
13
  .select()
14
- .from(bookingParticipants)
15
- .where(eq(bookingParticipants.bookingId, booking.id))
16
- .orderBy(asc(bookingParticipants.createdAt)),
14
+ .from(bookingTravelers)
15
+ .where(eq(bookingTravelers.bookingId, booking.id))
16
+ .orderBy(asc(bookingTravelers.createdAt)),
17
17
  db
18
18
  .select()
19
19
  .from(bookingItems)
@@ -49,9 +49,9 @@ export async function getProjectedBookingById(db, id) {
49
49
  const itemParticipants = items.length > 0
50
50
  ? await db
51
51
  .select()
52
- .from(bookingItemParticipants)
53
- .where(inArray(bookingItemParticipants.bookingItemId, items.map((item) => item.id)))
54
- .orderBy(asc(bookingItemParticipants.createdAt))
52
+ .from(bookingItemTravelers)
53
+ .where(inArray(bookingItemTravelers.bookingItemId, items.map((item) => item.id)))
54
+ .orderBy(asc(bookingItemTravelers.createdAt))
55
55
  : [];
56
56
  const activeAllocation = allocations.find((allocation) => allocation.status === "confirmed") ??
57
57
  allocations.find((allocation) => allocation.status === "held") ??
@@ -79,7 +79,7 @@ export async function getProjectedBookingById(db, id) {
79
79
  bookingNumber: booking.bookingNumber,
80
80
  status: mapBookingStatus(booking.status),
81
81
  availabilityId: activeAllocation?.availabilitySlotId ?? null,
82
- contact: pickBookingContact(participants),
82
+ contact: pickBookingContact({ booking, participants }),
83
83
  unitItems: items.map((item) => {
84
84
  const itemAllocation = allocations.find((allocation) => allocation.bookingItemId === item.id) ?? null;
85
85
  return {
@@ -93,15 +93,15 @@ export async function getProjectedBookingById(db, id) {
93
93
  unitId: item.optionUnitId,
94
94
  pricingCategoryId: item.pricingCategoryId,
95
95
  availabilityId: itemAllocation?.availabilitySlotId ?? null,
96
- participantIds: itemParticipants
96
+ travelerIds: itemParticipants
97
97
  .filter((link) => link.bookingItemId === item.id)
98
- .map((link) => link.participantId),
98
+ .map((link) => link.travelerId),
99
99
  };
100
100
  }),
101
101
  fulfillments: fulfillments.map((fulfillment) => ({
102
102
  id: fulfillment.id,
103
103
  bookingItemId: fulfillment.bookingItemId,
104
- participantId: fulfillment.participantId,
104
+ travelerId: fulfillment.travelerId,
105
105
  type: fulfillment.fulfillmentType,
106
106
  deliveryChannel: fulfillment.deliveryChannel,
107
107
  status: fulfillment.status,
@@ -114,7 +114,7 @@ export async function getProjectedBookingById(db, id) {
114
114
  redemptions: redemptions.map((event) => ({
115
115
  id: event.id,
116
116
  bookingItemId: event.bookingItemId,
117
- participantId: event.participantId,
117
+ travelerId: event.travelerId,
118
118
  redeemedAt: event.redeemedAt.toISOString(),
119
119
  redeemedBy: event.redeemedBy,
120
120
  location: event.location,
@@ -189,7 +189,7 @@ export async function listProjectedRedemptions(db, bookingId) {
189
189
  return events.map((event) => ({
190
190
  id: event.id,
191
191
  bookingItemId: event.bookingItemId,
192
- participantId: event.participantId,
192
+ travelerId: event.travelerId,
193
193
  redeemedAt: event.redeemedAt.toISOString(),
194
194
  redeemedBy: event.redeemedBy,
195
195
  location: event.location,
@@ -207,7 +207,7 @@ export async function recordProjectedRedemption(db, bookingId, data, userId) {
207
207
  event: {
208
208
  id: event.id,
209
209
  bookingItemId: event.bookingItemId,
210
- participantId: event.participantId,
210
+ travelerId: event.travelerId,
211
211
  redeemedAt: event.redeemedAt.toISOString(),
212
212
  redeemedBy: event.redeemedBy,
213
213
  location: event.location,
@@ -26,17 +26,33 @@ export declare function buildProductContent({ features, faqs, locations, }: {
26
26
  locations: Array<typeof productLocations.$inferSelect>;
27
27
  }): OctoProjectedProductContent;
28
28
  export declare function pickOptionStartTimes(option: OptionRow, startTimes: Array<typeof availabilityStartTimes.$inferSelect>): string[];
29
- export declare function pickBookingContact(participants: Array<{
30
- participantType: string | null;
31
- isPrimary: boolean | null;
32
- id: string;
29
+ export declare function pickBookingContact(params: {
30
+ booking: {
31
+ contactFirstName: string | null;
32
+ contactLastName: string | null;
33
+ contactEmail: string | null;
34
+ contactPhone: string | null;
35
+ contactPreferredLanguage: string | null;
36
+ };
37
+ participants: Array<{
38
+ participantType: string | null;
39
+ isPrimary: boolean | null;
40
+ id: string;
41
+ firstName: string | null;
42
+ lastName: string | null;
43
+ email: string | null;
44
+ phone: string | null;
45
+ preferredLanguage: string | null;
46
+ }>;
47
+ }): {
48
+ travelerId: null;
33
49
  firstName: string | null;
34
50
  lastName: string | null;
35
51
  email: string | null;
36
52
  phone: string | null;
37
- preferredLanguage: string | null;
38
- }>): {
39
- participantId: string;
53
+ language: string | null;
54
+ } | {
55
+ travelerId: string;
40
56
  firstName: string | null;
41
57
  lastName: string | null;
42
58
  email: string | null;
@@ -47,7 +63,7 @@ export declare function pickPayloadString(payload: Record<string, unknown> | nul
47
63
  export declare function mapBookingArtifact(fulfillment: typeof bookingFulfillments.$inferSelect): {
48
64
  fulfillmentId: string;
49
65
  bookingItemId: string | null;
50
- participantId: string | null;
66
+ travelerId: string | null;
51
67
  type: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
52
68
  deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
53
69
  status: "pending" | "issued" | "reissued" | "revoked" | "failed";
@@ -1 +1 @@
1
- {"version":3,"file":"service-shared.d.ts","sourceRoot":"","sources":["../src/service-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACb,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,iBAAiB,CAAA;AAExB,MAAM,MAAM,UAAU,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAA;AACrD,MAAM,MAAM,SAAS,GAAG,OAAO,c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zC,OAAO,EAAE;QACP,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;QAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAA;KACxC,CAAA;IACD,YAAY,EAAE,KAAK,CAAC;QAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,SAAS,EAAE,OAAO,GAAG,IAAI,CAAA;QACzB,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;QACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;KACjC,CAAC,CAAA;CACH;;;;;;;;;;;;;;SA2CA;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACnD,IAAI,EAAE,MAAM,EAAE,iBAYf;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,OAAO,mBAAmB,CAAC,YAAY;;;;;;;;;;;;;;;EAoCtF;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,IAAI,GAAG,SAAS,GACxE,yBAAyB,CAc3B"}
@@ -140,15 +140,33 @@ export function pickOptionStartTimes(option, startTimes) {
140
140
  const source = optionTimes.length > 0 ? optionTimes : sharedTimes;
141
141
  return source.map((startTime) => startTime.startTimeLocal);
142
142
  }
143
- export function pickBookingContact(participants) {
144
- const preferred = participants.find((participant) => participant.participantType === "booker") ??
145
- participants.find((participant) => participant.participantType === "contact") ??
143
+ export function pickBookingContact(params) {
144
+ const { booking, participants } = params;
145
+ const hasBookingContact = Boolean(booking.contactFirstName ??
146
+ booking.contactLastName ??
147
+ booking.contactEmail ??
148
+ booking.contactPhone ??
149
+ booking.contactPreferredLanguage);
150
+ if (hasBookingContact) {
151
+ return {
152
+ travelerId: null,
153
+ firstName: booking.contactFirstName,
154
+ lastName: booking.contactLastName,
155
+ email: booking.contactEmail,
156
+ phone: booking.contactPhone,
157
+ language: booking.contactPreferredLanguage,
158
+ };
159
+ }
160
+ const nonStaffParticipants = participants.filter((participant) => participant.participantType !== "staff");
161
+ const preferred = nonStaffParticipants.find((participant) => participant.isPrimary) ??
162
+ nonStaffParticipants.find((participant) => ["traveler", "occupant"].includes(participant.participantType ?? "")) ??
163
+ nonStaffParticipants[0] ??
146
164
  participants.find((participant) => participant.isPrimary) ??
147
165
  participants[0];
148
166
  if (!preferred)
149
167
  return null;
150
168
  return {
151
- participantId: preferred.id,
169
+ travelerId: preferred.id,
152
170
  firstName: preferred.firstName,
153
171
  lastName: preferred.lastName,
154
172
  email: preferred.email,
@@ -185,7 +203,7 @@ export function mapBookingArtifact(fulfillment) {
185
203
  return {
186
204
  fulfillmentId: fulfillment.id,
187
205
  bookingItemId: fulfillment.bookingItemId,
188
- participantId: fulfillment.participantId,
206
+ travelerId: fulfillment.travelerId,
189
207
  type: fulfillment.fulfillmentType,
190
208
  deliveryChannel: fulfillment.deliveryChannel,
191
209
  status: fulfillment.status,
package/dist/types.d.ts CHANGED
@@ -97,7 +97,7 @@ export interface OctoProjectedAvailability {
97
97
  capacity: number | null;
98
98
  }
99
99
  export interface OctoProjectedBookingContact {
100
- participantId: string;
100
+ travelerId: string | null;
101
101
  firstName: string;
102
102
  lastName: string;
103
103
  email: string | null;
@@ -115,12 +115,12 @@ export interface OctoProjectedBookingUnitItem {
115
115
  unitId: string | null;
116
116
  pricingCategoryId: string | null;
117
117
  availabilityId: string | null;
118
- participantIds: string[];
118
+ travelerIds: string[];
119
119
  }
120
120
  export interface OctoProjectedBookingFulfillment {
121
121
  id: string;
122
122
  bookingItemId: string | null;
123
- participantId: string | null;
123
+ travelerId: string | null;
124
124
  type: string;
125
125
  deliveryChannel: string;
126
126
  status: string;
@@ -132,7 +132,7 @@ export interface OctoProjectedBookingFulfillment {
132
132
  export interface OctoProjectedBookingArtifact {
133
133
  fulfillmentId: string;
134
134
  bookingItemId: string | null;
135
- participantId: string | null;
135
+ travelerId: string | null;
136
136
  type: string;
137
137
  deliveryChannel: string;
138
138
  status: string;
@@ -156,7 +156,7 @@ export interface OctoProjectedBookingSupplierReference {
156
156
  export interface OctoProjectedBookingRedemptionEvent {
157
157
  id: string;
158
158
  bookingItemId: string | null;
159
- participantId: string | null;
159
+ travelerId: string | null;
160
160
  redeemedAt: string;
161
161
  redeemedBy: string | null;
162
162
  location: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,eAAe,CAAA;AAEjE,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,OAAO,CAAA;AAEX,MAAM,MAAM,sBAAsB,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEjG,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAA;AAEjF,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;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G,IAAI,CAAA;IAC7B,OAAO,EAAE,2BAA2B,GAAG,IAAI,CAAA;IAC3C,SAAS,EAAE,4BAA4B,EAAE,CAAA;IACzC,YAAY,EAAE,+BAA+B,EAAE,CAAA;IAC/C,SAAS,EAAE,4BAA4B,EAAE,CAAA;IACzC,WAAW,EAAE,mCAAmC,EAAE,CAAA;IAClD,UAAU,EAAE,8BAA8B,CAAA;IAC1C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAA;QAClB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;QACjC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAA;QACpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;QACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B,YAAY,EAAE,MAAM,CAAA;QACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAC5B,CAAA;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/octo",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,13 +29,13 @@
29
29
  "drizzle-orm": "^0.45.2",
30
30
  "hono": "^4.12.10",
31
31
  "zod": "^4.3.6",
32
- "@voyantjs/availability": "0.6.7",
33
- "@voyantjs/bookings": "0.6.7",
34
- "@voyantjs/core": "0.6.7",
35
- "@voyantjs/db": "0.6.7",
36
- "@voyantjs/hono": "0.6.7",
37
- "@voyantjs/products": "0.6.7",
38
- "@voyantjs/transactions": "0.6.7"
32
+ "@voyantjs/availability": "0.6.9",
33
+ "@voyantjs/bookings": "0.6.9",
34
+ "@voyantjs/core": "0.6.9",
35
+ "@voyantjs/db": "0.6.9",
36
+ "@voyantjs/hono": "0.6.9",
37
+ "@voyantjs/products": "0.6.9",
38
+ "@voyantjs/transactions": "0.6.9"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "^6.0.2",