@voyantjs/octo 0.104.17 → 0.104.18

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
@@ -386,7 +386,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
386
386
  redeemedAt: string;
387
387
  redeemedBy: string | null;
388
388
  location: string | null;
389
- method: "other" | "manual" | "api" | "scan";
389
+ method: "manual" | "other" | "api" | "scan";
390
390
  metadata: {
391
391
  [x: string]: import("hono/utils/types").JSONValue;
392
392
  } | null;
@@ -412,7 +412,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
412
412
  expiredAt: string | null;
413
413
  utcRedeemedAt: string | null;
414
414
  extensions: {
415
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
415
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
416
416
  externalBookingRef: string | null;
417
417
  communicationLanguage: string | null;
418
418
  personId: string | null;
@@ -522,7 +522,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
522
522
  redeemedAt: string;
523
523
  redeemedBy: string | null;
524
524
  location: string | null;
525
- method: "other" | "manual" | "api" | "scan";
525
+ method: "manual" | "other" | "api" | "scan";
526
526
  metadata: {
527
527
  [x: string]: import("hono/utils/types").JSONValue;
528
528
  } | null;
@@ -548,7 +548,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
548
548
  expiredAt: string | null;
549
549
  utcRedeemedAt: string | null;
550
550
  extensions: {
551
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
551
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
552
552
  externalBookingRef: string | null;
553
553
  communicationLanguage: string | null;
554
554
  personId: string | null;
@@ -655,7 +655,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
655
655
  redeemedAt: string;
656
656
  redeemedBy: string | null;
657
657
  location: string | null;
658
- method: "other" | "manual" | "api" | "scan";
658
+ method: "manual" | "other" | "api" | "scan";
659
659
  metadata: {
660
660
  [x: string]: import("hono/utils/types").JSONValue;
661
661
  } | null;
@@ -681,7 +681,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
681
681
  expiredAt: string | null;
682
682
  utcRedeemedAt: string | null;
683
683
  extensions: {
684
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
684
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
685
685
  externalBookingRef: string | null;
686
686
  communicationLanguage: string | null;
687
687
  personId: string | null;
@@ -774,7 +774,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
774
774
  redeemedAt: string;
775
775
  redeemedBy: string | null;
776
776
  location: string | null;
777
- method: "other" | "manual" | "api" | "scan";
777
+ method: "manual" | "other" | "api" | "scan";
778
778
  metadata: {
779
779
  [x: string]: import("hono/utils/types").JSONValue;
780
780
  } | null;
@@ -800,7 +800,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
800
800
  expiredAt: string | null;
801
801
  utcRedeemedAt: string | null;
802
802
  extensions: {
803
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
803
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
804
804
  externalBookingRef: string | null;
805
805
  communicationLanguage: string | null;
806
806
  personId: string | null;
@@ -926,7 +926,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
926
926
  redeemedAt: string;
927
927
  redeemedBy: string | null;
928
928
  location: string | null;
929
- method: "other" | "manual" | "api" | "scan";
929
+ method: "manual" | "other" | "api" | "scan";
930
930
  metadata: {
931
931
  [x: string]: import("hono/utils/types").JSONValue;
932
932
  } | null;
@@ -952,7 +952,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
952
952
  expiredAt: string | null;
953
953
  utcRedeemedAt: string | null;
954
954
  extensions: {
955
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
955
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
956
956
  externalBookingRef: string | null;
957
957
  communicationLanguage: string | null;
958
958
  personId: string | null;
@@ -1078,7 +1078,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1078
1078
  redeemedAt: string;
1079
1079
  redeemedBy: string | null;
1080
1080
  location: string | null;
1081
- method: "other" | "manual" | "api" | "scan";
1081
+ method: "manual" | "other" | "api" | "scan";
1082
1082
  metadata: {
1083
1083
  [x: string]: import("hono/utils/types").JSONValue;
1084
1084
  } | null;
@@ -1104,7 +1104,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1104
1104
  expiredAt: string | null;
1105
1105
  utcRedeemedAt: string | null;
1106
1106
  extensions: {
1107
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1107
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
1108
1108
  externalBookingRef: string | null;
1109
1109
  communicationLanguage: string | null;
1110
1110
  personId: string | null;
@@ -1230,7 +1230,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1230
1230
  redeemedAt: string;
1231
1231
  redeemedBy: string | null;
1232
1232
  location: string | null;
1233
- method: "other" | "manual" | "api" | "scan";
1233
+ method: "manual" | "other" | "api" | "scan";
1234
1234
  metadata: {
1235
1235
  [x: string]: import("hono/utils/types").JSONValue;
1236
1236
  } | null;
@@ -1256,7 +1256,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1256
1256
  expiredAt: string | null;
1257
1257
  utcRedeemedAt: string | null;
1258
1258
  extensions: {
1259
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1259
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
1260
1260
  externalBookingRef: string | null;
1261
1261
  communicationLanguage: string | null;
1262
1262
  personId: string | null;
@@ -1330,7 +1330,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1330
1330
  redeemedAt: string;
1331
1331
  redeemedBy: string | null;
1332
1332
  location: string | null;
1333
- method: "other" | "manual" | "api" | "scan";
1333
+ method: "manual" | "other" | "api" | "scan";
1334
1334
  metadata: {
1335
1335
  [x: string]: import("hono/utils/types").JSONValue;
1336
1336
  } | null;
@@ -1367,7 +1367,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1367
1367
  redeemedAt: string;
1368
1368
  redeemedBy: string | null;
1369
1369
  location: string | null;
1370
- method: "other" | "manual" | "api" | "scan";
1370
+ method: "manual" | "other" | "api" | "scan";
1371
1371
  metadata: {
1372
1372
  [x: string]: import("hono/utils/types").JSONValue;
1373
1373
  } | null;
@@ -1442,7 +1442,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1442
1442
  redeemedAt: string;
1443
1443
  redeemedBy: string | null;
1444
1444
  location: string | null;
1445
- method: "other" | "manual" | "api" | "scan";
1445
+ method: "manual" | "other" | "api" | "scan";
1446
1446
  metadata: {
1447
1447
  [x: string]: import("hono/utils/types").JSONValue;
1448
1448
  } | null;
@@ -1468,7 +1468,7 @@ export declare const octoRoutes: import("hono/hono-base").HonoBase<Env, {
1468
1468
  expiredAt: string | null;
1469
1469
  utcRedeemedAt: string | null;
1470
1470
  extensions: {
1471
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
1471
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
1472
1472
  externalBookingRef: string | null;
1473
1473
  communicationLanguage: string | null;
1474
1474
  personId: string | null;
@@ -69,7 +69,7 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
69
69
  redeemedAt: string;
70
70
  redeemedBy: string | null;
71
71
  location: string | null;
72
- method: "other" | "manual" | "api" | "scan";
72
+ method: "manual" | "other" | "api" | "scan";
73
73
  metadata: Record<string, unknown> | null;
74
74
  }[];
75
75
  references: {
@@ -93,7 +93,7 @@ export declare function getProjectedBookingById(db: PostgresJsDatabase, id: stri
93
93
  expiredAt: string | null;
94
94
  utcRedeemedAt: string | null;
95
95
  extensions: {
96
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
96
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
97
97
  externalBookingRef: string | null;
98
98
  communicationLanguage: string | null;
99
99
  personId: string | null;
@@ -171,7 +171,7 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
171
171
  redeemedAt: string;
172
172
  redeemedBy: string | null;
173
173
  location: string | null;
174
- method: "other" | "manual" | "api" | "scan";
174
+ method: "manual" | "other" | "api" | "scan";
175
175
  metadata: Record<string, unknown> | null;
176
176
  }[];
177
177
  references: {
@@ -195,7 +195,7 @@ export declare function listProjectedBookings(db: PostgresJsDatabase, query: Oct
195
195
  expiredAt: string | null;
196
196
  utcRedeemedAt: string | null;
197
197
  extensions: {
198
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
198
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
199
199
  externalBookingRef: string | null;
200
200
  communicationLanguage: string | null;
201
201
  personId: string | null;
@@ -280,7 +280,7 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
280
280
  redeemedAt: string;
281
281
  redeemedBy: string | null;
282
282
  location: string | null;
283
- method: "other" | "manual" | "api" | "scan";
283
+ method: "manual" | "other" | "api" | "scan";
284
284
  metadata: Record<string, unknown> | null;
285
285
  }[];
286
286
  references: {
@@ -304,7 +304,7 @@ export declare function reserveProjectedBooking(db: PostgresJsDatabase, data: Pa
304
304
  expiredAt: string | null;
305
305
  utcRedeemedAt: string | null;
306
306
  extensions: {
307
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
307
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
308
308
  externalBookingRef: string | null;
309
309
  communicationLanguage: string | null;
310
310
  personId: string | null;
@@ -386,7 +386,7 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
386
386
  redeemedAt: string;
387
387
  redeemedBy: string | null;
388
388
  location: string | null;
389
- method: "other" | "manual" | "api" | "scan";
389
+ method: "manual" | "other" | "api" | "scan";
390
390
  metadata: Record<string, unknown> | null;
391
391
  }[];
392
392
  references: {
@@ -410,7 +410,7 @@ export declare function confirmProjectedBooking(db: PostgresJsDatabase, id: stri
410
410
  expiredAt: string | null;
411
411
  utcRedeemedAt: string | null;
412
412
  extensions: {
413
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
413
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
414
414
  externalBookingRef: string | null;
415
415
  communicationLanguage: string | null;
416
416
  personId: string | null;
@@ -492,7 +492,7 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
492
492
  redeemedAt: string;
493
493
  redeemedBy: string | null;
494
494
  location: string | null;
495
- method: "other" | "manual" | "api" | "scan";
495
+ method: "manual" | "other" | "api" | "scan";
496
496
  metadata: Record<string, unknown> | null;
497
497
  }[];
498
498
  references: {
@@ -516,7 +516,7 @@ export declare function extendProjectedBookingHold(db: PostgresJsDatabase, id: s
516
516
  expiredAt: string | null;
517
517
  utcRedeemedAt: string | null;
518
518
  extensions: {
519
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
519
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
520
520
  externalBookingRef: string | null;
521
521
  communicationLanguage: string | null;
522
522
  personId: string | null;
@@ -598,7 +598,7 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
598
598
  redeemedAt: string;
599
599
  redeemedBy: string | null;
600
600
  location: string | null;
601
- method: "other" | "manual" | "api" | "scan";
601
+ method: "manual" | "other" | "api" | "scan";
602
602
  metadata: Record<string, unknown> | null;
603
603
  }[];
604
604
  references: {
@@ -622,7 +622,7 @@ export declare function expireProjectedBooking(db: PostgresJsDatabase, id: strin
622
622
  expiredAt: string | null;
623
623
  utcRedeemedAt: string | null;
624
624
  extensions: {
625
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
625
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
626
626
  externalBookingRef: string | null;
627
627
  communicationLanguage: string | null;
628
628
  personId: string | null;
@@ -704,7 +704,7 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
704
704
  redeemedAt: string;
705
705
  redeemedBy: string | null;
706
706
  location: string | null;
707
- method: "other" | "manual" | "api" | "scan";
707
+ method: "manual" | "other" | "api" | "scan";
708
708
  metadata: Record<string, unknown> | null;
709
709
  }[];
710
710
  references: {
@@ -728,7 +728,7 @@ export declare function cancelProjectedBooking(db: PostgresJsDatabase, id: strin
728
728
  expiredAt: string | null;
729
729
  utcRedeemedAt: string | null;
730
730
  extensions: {
731
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
731
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
732
732
  externalBookingRef: string | null;
733
733
  communicationLanguage: string | null;
734
734
  personId: string | null;
@@ -745,7 +745,7 @@ export declare function listProjectedRedemptions(db: PostgresJsDatabase, booking
745
745
  redeemedAt: string;
746
746
  redeemedBy: string | null;
747
747
  location: string | null;
748
- method: "other" | "manual" | "api" | "scan";
748
+ method: "manual" | "other" | "api" | "scan";
749
749
  metadata: Record<string, unknown> | null;
750
750
  }[]>;
751
751
  export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookingId: string, data: Parameters<typeof bookingsService.recordRedemption>[2], userId?: string): Promise<{
@@ -756,7 +756,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
756
756
  redeemedAt: string;
757
757
  redeemedBy: string | null;
758
758
  location: string | null;
759
- method: "other" | "manual" | "api" | "scan";
759
+ method: "manual" | "other" | "api" | "scan";
760
760
  metadata: Record<string, unknown> | null;
761
761
  };
762
762
  booking: {
@@ -827,7 +827,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
827
827
  redeemedAt: string;
828
828
  redeemedBy: string | null;
829
829
  location: string | null;
830
- method: "other" | "manual" | "api" | "scan";
830
+ method: "manual" | "other" | "api" | "scan";
831
831
  metadata: Record<string, unknown> | null;
832
832
  }[];
833
833
  references: {
@@ -851,7 +851,7 @@ export declare function recordProjectedRedemption(db: PostgresJsDatabase, bookin
851
851
  expiredAt: string | null;
852
852
  utcRedeemedAt: string | null;
853
853
  extensions: {
854
- sourceType: "internal" | "direct" | "manual" | "affiliate" | "ota" | "reseller" | "api_partner";
854
+ sourceType: "internal" | "manual" | "direct" | "affiliate" | "ota" | "reseller" | "api_partner";
855
855
  externalBookingRef: string | null;
856
856
  communicationLanguage: string | null;
857
857
  personId: string | null;
@@ -8,9 +8,9 @@ export declare const octoProductListQuerySchema: z.ZodObject<{
8
8
  archived: "archived";
9
9
  }>>;
10
10
  bookingMode: z.ZodOptional<z.ZodEnum<{
11
+ open: "open";
11
12
  date: "date";
12
13
  other: "other";
13
- open: "open";
14
14
  date_time: "date_time";
15
15
  stay: "stay";
16
16
  transfer: "transfer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/octo",
3
- "version": "0.104.17",
3
+ "version": "0.104.18",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,13 +34,13 @@
34
34
  "drizzle-orm": "^0.45.2",
35
35
  "hono": "^4.12.10",
36
36
  "zod": "^4.3.6",
37
- "@voyantjs/availability": "^0.115.0",
38
- "@voyantjs/bookings": "^0.118.0",
37
+ "@voyantjs/availability": "^0.116.0",
38
+ "@voyantjs/bookings": "^0.119.0",
39
39
  "@voyantjs/core": "^0.109.0",
40
40
  "@voyantjs/db": "^0.107.0",
41
- "@voyantjs/hono": "^0.108.0",
42
- "@voyantjs/products": "^0.118.0",
43
- "@voyantjs/transactions": "^0.105.5"
41
+ "@voyantjs/hono": "^0.109.0",
42
+ "@voyantjs/products": "^0.119.0",
43
+ "@voyantjs/transactions": "^0.105.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^6.0.2",