@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.
- package/dist/pii-redaction.d.ts +1 -0
- package/dist/pii-redaction.d.ts.map +1 -1
- package/dist/pii-redaction.js +1 -0
- package/dist/pii.d.ts +13 -11
- package/dist/pii.d.ts.map +1 -1
- package/dist/pii.js +57 -43
- package/dist/routes-groups.d.ts +2 -0
- package/dist/routes-groups.d.ts.map +1 -1
- package/dist/routes.d.ts +21 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -5
- package/dist/schema/travel-details.d.ts +58 -13
- package/dist/schema/travel-details.d.ts.map +1 -1
- package/dist/schema/travel-details.js +37 -9
- package/dist/schema-core.d.ts +17 -0
- package/dist/schema-core.d.ts.map +1 -1
- package/dist/schema-core.js +1 -0
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +1 -0
- package/dist/service.d.ts +27 -10
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +14 -5
- package/dist/transactions-ref.d.ts +34 -0
- package/dist/transactions-ref.d.ts.map +1 -1
- package/dist/transactions-ref.js +2 -0
- package/dist/validation.d.ts +42 -15
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +12 -5
- package/package.json +7 -7
package/dist/validation.js
CHANGED
|
@@ -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
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
88
|
-
"@voyantjs/core": "0.81.
|
|
89
|
-
"@voyantjs/db": "0.81.
|
|
90
|
-
"@voyantjs/hono": "0.81.
|
|
91
|
-
"@voyantjs/utils": "0.81.
|
|
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.
|
|
95
|
+
"@voyantjs/products": "0.81.9",
|
|
96
96
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
97
97
|
},
|
|
98
98
|
"files": [
|