@voyantjs/bookings 0.52.1 → 0.52.3

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.
@@ -11,6 +11,7 @@ export declare const bookingPriceOverrideSchema: z.ZodObject<{
11
11
  export declare const insertBookingSchema: z.ZodObject<{
12
12
  bookingNumber: z.ZodString;
13
13
  status: z.ZodDefault<z.ZodEnum<{
14
+ expired: "expired";
14
15
  cancelled: "cancelled";
15
16
  completed: "completed";
16
17
  draft: "draft";
@@ -18,7 +19,6 @@ export declare const insertBookingSchema: z.ZodObject<{
18
19
  awaiting_payment: "awaiting_payment";
19
20
  confirmed: "confirmed";
20
21
  in_progress: "in_progress";
21
- expired: "expired";
22
22
  }>>;
23
23
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
24
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -57,8 +57,8 @@ export declare const insertBookingSchema: z.ZodObject<{
57
57
  customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
58
58
  deposit: z.ZodObject<{
59
59
  kind: z.ZodEnum<{
60
- percent: "percent";
61
60
  none: "none";
61
+ percent: "percent";
62
62
  fixed_cents: "fixed_cents";
63
63
  }>;
64
64
  percent: z.ZodOptional<z.ZodNumber>;
@@ -87,6 +87,7 @@ export declare const insertBookingSchema: z.ZodObject<{
87
87
  export declare const updateBookingSchema: z.ZodObject<{
88
88
  bookingNumber: z.ZodOptional<z.ZodString>;
89
89
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
90
+ expired: "expired";
90
91
  cancelled: "cancelled";
91
92
  completed: "completed";
92
93
  draft: "draft";
@@ -94,7 +95,6 @@ export declare const updateBookingSchema: z.ZodObject<{
94
95
  awaiting_payment: "awaiting_payment";
95
96
  confirmed: "confirmed";
96
97
  in_progress: "in_progress";
97
- expired: "expired";
98
98
  }>>>;
99
99
  personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
100
100
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -133,8 +133,8 @@ export declare const updateBookingSchema: z.ZodObject<{
133
133
  customerPaymentPolicy: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
134
134
  deposit: z.ZodObject<{
135
135
  kind: z.ZodEnum<{
136
- percent: "percent";
137
136
  none: "none";
137
+ percent: "percent";
138
138
  fixed_cents: "fixed_cents";
139
139
  }>;
140
140
  percent: z.ZodOptional<z.ZodNumber>;
@@ -163,6 +163,7 @@ export declare const updateBookingSchema: z.ZodObject<{
163
163
  export declare const createBookingSchema: z.ZodObject<{
164
164
  bookingNumber: z.ZodString;
165
165
  status: z.ZodDefault<z.ZodEnum<{
166
+ expired: "expired";
166
167
  cancelled: "cancelled";
167
168
  completed: "completed";
168
169
  draft: "draft";
@@ -170,7 +171,6 @@ export declare const createBookingSchema: z.ZodObject<{
170
171
  awaiting_payment: "awaiting_payment";
171
172
  confirmed: "confirmed";
172
173
  in_progress: "in_progress";
173
- expired: "expired";
174
174
  }>>;
175
175
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
176
176
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -200,8 +200,8 @@ export declare const createBookingSchema: z.ZodObject<{
200
200
  customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
201
201
  deposit: z.ZodObject<{
202
202
  kind: z.ZodEnum<{
203
- percent: "percent";
204
203
  none: "none";
204
+ percent: "percent";
205
205
  fixed_cents: "fixed_cents";
206
206
  }>;
207
207
  percent: z.ZodOptional<z.ZodNumber>;
@@ -246,6 +246,7 @@ export declare const bookingListSortDirSchema: z.ZodEnum<{
246
246
  }>;
247
247
  export declare const bookingListQuerySchema: z.ZodObject<{
248
248
  status: z.ZodOptional<z.ZodEnum<{
249
+ expired: "expired";
249
250
  cancelled: "cancelled";
250
251
  completed: "completed";
251
252
  draft: "draft";
@@ -253,7 +254,6 @@ export declare const bookingListQuerySchema: z.ZodObject<{
253
254
  awaiting_payment: "awaiting_payment";
254
255
  confirmed: "confirmed";
255
256
  in_progress: "in_progress";
256
- expired: "expired";
257
257
  }>>;
258
258
  search: z.ZodOptional<z.ZodString>;
259
259
  productId: z.ZodOptional<z.ZodString>;
@@ -302,6 +302,26 @@ export declare const convertProductSchema: z.ZodObject<{
302
302
  catalogSellAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
303
303
  confirmedSellAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
304
304
  priceOverrideReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
+ initialStatus: z.ZodOptional<z.ZodEnum<{
306
+ expired: "expired";
307
+ cancelled: "cancelled";
308
+ completed: "completed";
309
+ draft: "draft";
310
+ on_hold: "on_hold";
311
+ awaiting_payment: "awaiting_payment";
312
+ confirmed: "confirmed";
313
+ in_progress: "in_progress";
314
+ }>>;
315
+ contactFirstName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
316
+ contactLastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
317
+ contactEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
318
+ contactPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
319
+ contactPreferredLanguage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
320
+ contactCountry: z.ZodNullable<z.ZodOptional<z.ZodString>>;
321
+ contactRegion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
322
+ contactCity: z.ZodNullable<z.ZodOptional<z.ZodString>>;
323
+ contactAddressLine1: z.ZodNullable<z.ZodOptional<z.ZodString>>;
324
+ contactPostalCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
325
  itemLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
326
  optionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
307
327
  optionUnitId: z.ZodString;
@@ -398,8 +418,8 @@ export declare const reserveBookingSchema: z.ZodObject<{
398
418
  customerPaymentPolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
399
419
  deposit: z.ZodObject<{
400
420
  kind: z.ZodEnum<{
401
- percent: "percent";
402
421
  none: "none";
422
+ percent: "percent";
403
423
  fixed_cents: "fixed_cents";
404
424
  }>;
405
425
  percent: z.ZodOptional<z.ZodNumber>;
@@ -464,6 +484,7 @@ export declare const extendBookingHoldSchema: z.ZodObject<{
464
484
  }, z.core.$strip>;
465
485
  export declare const confirmBookingSchema: z.ZodObject<{
466
486
  note: z.ZodNullable<z.ZodOptional<z.ZodString>>;
487
+ suppressNotifications: z.ZodOptional<z.ZodBoolean>;
467
488
  }, z.core.$strip>;
468
489
  export declare const cancelBookingSchema: z.ZodObject<{
469
490
  note: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -489,6 +510,7 @@ export declare const completeBookingSchema: z.ZodObject<{
489
510
  */
490
511
  export declare const overrideBookingStatusSchema: z.ZodObject<{
491
512
  status: z.ZodEnum<{
513
+ expired: "expired";
492
514
  cancelled: "cancelled";
493
515
  completed: "completed";
494
516
  draft: "draft";
@@ -496,10 +518,10 @@ export declare const overrideBookingStatusSchema: z.ZodObject<{
496
518
  awaiting_payment: "awaiting_payment";
497
519
  confirmed: "confirmed";
498
520
  in_progress: "in_progress";
499
- expired: "expired";
500
521
  }>;
501
522
  reason: z.ZodString;
502
523
  note: z.ZodNullable<z.ZodOptional<z.ZodString>>;
524
+ suppressNotifications: z.ZodOptional<z.ZodBoolean>;
503
525
  }, z.core.$strip>;
504
526
  export declare const reserveBookingFromTransactionSchema: z.ZodObject<{
505
527
  bookingNumber: z.ZodString;
@@ -729,11 +751,11 @@ export declare const insertBookingItemSchema: z.ZodObject<{
729
751
  transport: "transport";
730
752
  }>>;
731
753
  status: z.ZodDefault<z.ZodEnum<{
754
+ expired: "expired";
732
755
  cancelled: "cancelled";
733
756
  draft: "draft";
734
757
  on_hold: "on_hold";
735
758
  confirmed: "confirmed";
736
- expired: "expired";
737
759
  fulfilled: "fulfilled";
738
760
  }>>;
739
761
  serviceDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -771,11 +793,11 @@ export declare const updateBookingItemSchema: z.ZodObject<{
771
793
  transport: "transport";
772
794
  }>>>;
773
795
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
796
+ expired: "expired";
774
797
  cancelled: "cancelled";
775
798
  draft: "draft";
776
799
  on_hold: "on_hold";
777
800
  confirmed: "confirmed";
778
- expired: "expired";
779
801
  fulfilled: "fulfilled";
780
802
  }>>>;
781
803
  serviceDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -811,9 +833,9 @@ export declare const insertBookingAllocationSchema: z.ZodObject<{
811
833
  pickup: "pickup";
812
834
  }>>;
813
835
  status: z.ZodDefault<z.ZodEnum<{
836
+ expired: "expired";
814
837
  cancelled: "cancelled";
815
838
  confirmed: "confirmed";
816
- expired: "expired";
817
839
  fulfilled: "fulfilled";
818
840
  held: "held";
819
841
  released: "released";
@@ -837,9 +859,9 @@ export declare const updateBookingAllocationSchema: z.ZodObject<{
837
859
  pickup: "pickup";
838
860
  }>>>;
839
861
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
862
+ expired: "expired";
840
863
  cancelled: "cancelled";
841
864
  confirmed: "confirmed";
842
- expired: "expired";
843
865
  fulfilled: "fulfilled";
844
866
  held: "held";
845
867
  released: "released";
@@ -869,8 +891,8 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
869
891
  wallet: "wallet";
870
892
  }>;
871
893
  status: z.ZodDefault<z.ZodEnum<{
872
- pending: "pending";
873
894
  failed: "failed";
895
+ pending: "pending";
874
896
  issued: "issued";
875
897
  reissued: "reissued";
876
898
  revoked: "revoked";
@@ -883,7 +905,7 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
883
905
  travelerId: string | null;
884
906
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
885
907
  deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
886
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
908
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
887
909
  bookingItemId?: string | null | undefined;
888
910
  artifactUrl?: string | null | undefined;
889
911
  payload?: Record<string, unknown> | null | undefined;
@@ -892,7 +914,7 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
892
914
  }, {
893
915
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
894
916
  deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
895
- status: "pending" | "failed" | "issued" | "reissued" | "revoked";
917
+ status: "failed" | "pending" | "issued" | "reissued" | "revoked";
896
918
  bookingItemId?: string | null | undefined;
897
919
  travelerId?: string | null | undefined;
898
920
  artifactUrl?: string | null | undefined;
@@ -920,8 +942,8 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
920
942
  wallet: "wallet";
921
943
  }>>;
922
944
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
923
- pending: "pending";
924
945
  failed: "failed";
946
+ pending: "pending";
925
947
  issued: "issued";
926
948
  reissued: "reissued";
927
949
  revoked: "revoked";
@@ -935,7 +957,7 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
935
957
  bookingItemId?: string | null | undefined;
936
958
  fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
937
959
  deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
938
- status?: "pending" | "failed" | "issued" | "reissued" | "revoked" | undefined;
960
+ status?: "failed" | "pending" | "issued" | "reissued" | "revoked" | undefined;
939
961
  artifactUrl?: string | null | undefined;
940
962
  payload?: Record<string, unknown> | null | undefined;
941
963
  issuedAt?: string | null | undefined;
@@ -945,7 +967,7 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
945
967
  travelerId?: string | null | undefined;
946
968
  fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
947
969
  deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
948
- status?: "pending" | "failed" | "issued" | "reissued" | "revoked" | undefined;
970
+ status?: "failed" | "pending" | "issued" | "reissued" | "revoked" | undefined;
949
971
  artifactUrl?: string | null | undefined;
950
972
  payload?: Record<string, unknown> | null | undefined;
951
973
  issuedAt?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuCvB,eAAO,MAAM,0BAA0B;;;;;;;;iBAQrC,CAAA;AAyCF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoB,CAAA;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAA;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW5B,CAAA;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;EAQrC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;EAA0B,CAAA;AAE/D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBjC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;iBASvC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAyD7B,CAAA;AAEJ;;;;GAIG;AACH,eAAO,M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  priceOverrideReason: z.string().trim().min(1).max(1000).optional().nullable(),
150
+ /**
151
+ * Initial status to insert with — defaults to `draft`. Lets the booking-
152
+ * create flow commit straight to `confirmed` or `awaiting_payment` in
153
+ * one transaction instead of doing a `create-then-flip` dance that's
154
+ * vulnerable to a window where the second request can't see the just-
155
+ * committed booking row. When set to `confirmed`, the caller is
156
+ * responsible for emitting the matching `booking.confirmed` event.
157
+ */
158
+ initialStatus: bookingStatusSchema.optional(),
159
+ /**
160
+ * Billing-contact snapshot. Captures who the operator was billing
161
+ * at create time so the booking detail page renders the right
162
+ * payer even if the linked CRM person/organization changes later
163
+ * (or is hard-deleted). All fields optional — the create flow can
164
+ * pass a partial snapshot when only some details are known.
165
+ */
166
+ contactFirstName: z.string().max(255).optional().nullable(),
167
+ contactLastName: z.string().max(255).optional().nullable(),
168
+ contactEmail: z.string().max(255).optional().nullable(),
169
+ contactPhone: z.string().max(50).optional().nullable(),
170
+ contactPreferredLanguage: z.string().max(35).optional().nullable(),
171
+ contactCountry: z.string().max(2).optional().nullable(),
172
+ contactRegion: z.string().max(100).optional().nullable(),
173
+ contactCity: z.string().max(100).optional().nullable(),
174
+ contactAddressLine1: z.string().max(500).optional().nullable(),
175
+ contactPostalCode: z.string().max(20).optional().nullable(),
150
176
  itemLines: z
151
177
  .array(z.object({
152
178
  optionId: z.string().min(1).optional().nullable(),
@@ -239,6 +265,13 @@ export const extendBookingHoldSchema = z
239
265
  });
240
266
  export const confirmBookingSchema = z.object({
241
267
  note: z.string().optional().nullable(),
268
+ /**
269
+ * When true, downstream subscribers that send customer-facing
270
+ * notifications (e.g. notifications module's `autoConfirmAndDispatch`)
271
+ * skip dispatching for this confirmation. Lets the operator confirm a
272
+ * booking internally without auto-sending a confirmation email.
273
+ */
274
+ suppressNotifications: z.boolean().optional(),
242
275
  });
243
276
  export const cancelBookingSchema = z.object({
244
277
  note: z.string().optional().nullable(),
@@ -266,6 +299,12 @@ export const overrideBookingStatusSchema = z.object({
266
299
  status: bookingStatusSchema,
267
300
  reason: z.string().min(1).max(2000),
268
301
  note: z.string().optional().nullable(),
302
+ /**
303
+ * Same opt-out as `confirmBookingSchema.suppressNotifications`. The
304
+ * override-status path also emits `booking.confirmed` when the target
305
+ * is `confirmed`, so subscribers need the same hint.
306
+ */
307
+ suppressNotifications: z.boolean().optional(),
269
308
  });
270
309
  export const reserveBookingFromTransactionSchema = bookingCoreSchema
271
310
  .pick({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/bookings",
3
- "version": "0.52.1",
3
+ "version": "0.52.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,6 +34,21 @@
34
34
  "import": "./dist/routes.js",
35
35
  "default": "./dist/routes.js"
36
36
  },
37
+ "./action-ledger-drift": {
38
+ "types": "./dist/action-ledger-drift.d.ts",
39
+ "import": "./dist/action-ledger-drift.js",
40
+ "default": "./dist/action-ledger-drift.js"
41
+ },
42
+ "./action-ledger-drift-remediation": {
43
+ "types": "./dist/action-ledger-drift-remediation.d.ts",
44
+ "import": "./dist/action-ledger-drift-remediation.js",
45
+ "default": "./dist/action-ledger-drift-remediation.js"
46
+ },
47
+ "./action-ledger-capabilities": {
48
+ "types": "./dist/action-ledger-capabilities.d.ts",
49
+ "import": "./dist/action-ledger-capabilities.js",
50
+ "default": "./dist/action-ledger-capabilities.js"
51
+ },
37
52
  "./public-routes": {
38
53
  "types": "./dist/routes-public.d.ts",
39
54
  "import": "./dist/routes-public.js",
@@ -64,14 +79,15 @@
64
79
  "drizzle-orm": "^0.45.2",
65
80
  "hono": "^4.12.10",
66
81
  "zod": "^4.3.6",
67
- "@voyantjs/core": "0.52.1",
68
- "@voyantjs/db": "0.52.1",
69
- "@voyantjs/hono": "0.52.1",
70
- "@voyantjs/utils": "0.52.1"
82
+ "@voyantjs/action-ledger": "0.52.3",
83
+ "@voyantjs/core": "0.52.3",
84
+ "@voyantjs/db": "0.52.3",
85
+ "@voyantjs/hono": "0.52.3",
86
+ "@voyantjs/utils": "0.52.3"
71
87
  },
72
88
  "devDependencies": {
73
89
  "typescript": "^6.0.2",
74
- "@voyantjs/products": "0.52.1",
90
+ "@voyantjs/products": "0.52.3",
75
91
  "@voyantjs/voyant-typescript-config": "0.1.0"
76
92
  },
77
93
  "files": [