@voyantjs/bookings 0.81.7 → 0.81.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.
@@ -39,6 +39,7 @@ const bookingCoreSchema = z.object({
39
39
  contactRegion: z.string().max(255).optional().nullable(),
40
40
  contactCity: z.string().max(255).optional().nullable(),
41
41
  contactAddressLine1: z.string().max(255).optional().nullable(),
42
+ contactAddressLine2: z.string().max(255).optional().nullable(),
42
43
  contactPostalCode: z.string().max(50).optional().nullable(),
43
44
  sellCurrency: z.string().min(3).max(3),
44
45
  baseCurrency: z.string().min(3).max(3).optional().nullable(),
@@ -180,6 +181,7 @@ export const convertProductSchema = z
180
181
  contactRegion: z.string().max(100).optional().nullable(),
181
182
  contactCity: z.string().max(100).optional().nullable(),
182
183
  contactAddressLine1: z.string().max(500).optional().nullable(),
184
+ contactAddressLine2: z.string().max(500).optional().nullable(),
183
185
  contactPostalCode: z.string().max(20).optional().nullable(),
184
186
  itemLines: z
185
187
  .array(z.object({
@@ -348,6 +350,7 @@ export const reserveBookingFromTransactionSchema = bookingCoreSchema
348
350
  contactRegion: true,
349
351
  contactCity: true,
350
352
  contactAddressLine1: true,
353
+ contactAddressLine2: true,
351
354
  contactPostalCode: true,
352
355
  internalNotes: true,
353
356
  })
@@ -396,12 +399,16 @@ export const updateTravelerRecordSchema = travelerRecordCoreSchema.partial();
396
399
  // ---------- traveler travel details ----------
397
400
  export const upsertTravelerTravelDetailsSchema = z.object({
398
401
  nationality: z.string().max(100).optional().nullable(),
399
- passportNumber: z.string().max(255).optional().nullable(),
400
- passportExpiry: z.string().optional().nullable(),
401
- passportIssuingCountry: z.string().max(255).optional().nullable(),
402
- passportIssuingAuthority: z.string().max(255).optional().nullable(),
402
+ documentType: z
403
+ .enum(["passport", "id_card", "driver_license", "visa", "other"])
404
+ .optional()
405
+ .nullable(),
406
+ documentNumber: z.string().max(255).optional().nullable(),
407
+ documentExpiry: z.string().optional().nullable(),
408
+ documentIssuingCountry: z.string().max(255).optional().nullable(),
409
+ documentIssuingAuthority: z.string().max(255).optional().nullable(),
403
410
  /** Provenance pointer to the seeding `crm.person_documents` row. */
404
- passportPersonDocumentId: z.string().optional().nullable(),
411
+ documentPersonDocumentId: z.string().optional().nullable(),
405
412
  dateOfBirth: z.string().optional().nullable(),
406
413
  dietaryRequirements: z.string().optional().nullable(),
407
414
  accessibilityNeeds: z.string().optional().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/bookings",
3
- "version": "0.81.7",
3
+ "version": "0.81.9",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -84,15 +84,15 @@
84
84
  "drizzle-orm": "^0.45.2",
85
85
  "hono": "^4.12.10",
86
86
  "zod": "^4.3.6",
87
- "@voyantjs/action-ledger": "0.81.7",
88
- "@voyantjs/core": "0.81.7",
89
- "@voyantjs/db": "0.81.7",
90
- "@voyantjs/hono": "0.81.7",
91
- "@voyantjs/utils": "0.81.7"
87
+ "@voyantjs/action-ledger": "0.81.9",
88
+ "@voyantjs/core": "0.81.9",
89
+ "@voyantjs/db": "0.81.9",
90
+ "@voyantjs/hono": "0.81.9",
91
+ "@voyantjs/utils": "0.81.9"
92
92
  },
93
93
  "devDependencies": {
94
94
  "typescript": "^6.0.2",
95
- "@voyantjs/products": "0.81.7",
95
+ "@voyantjs/products": "0.81.9",
96
96
  "@voyantjs/voyant-typescript-config": "0.1.0"
97
97
  },
98
98
  "files": [