@voyantjs/booking-requirements 0.9.0 → 0.10.0
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
|
@@ -43,12 +43,12 @@ export declare const bookingRequirementsRoutes: import("hono/hono-base").HonoBas
|
|
|
43
43
|
updatedAt: string;
|
|
44
44
|
scope: "booking" | "lead_traveler" | "traveler" | "booker";
|
|
45
45
|
notes: string | null;
|
|
46
|
+
active: boolean;
|
|
46
47
|
productId: string;
|
|
47
48
|
optionId: string | null;
|
|
48
49
|
fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
|
|
49
50
|
isRequired: boolean;
|
|
50
51
|
perTraveler: boolean;
|
|
51
|
-
active: boolean;
|
|
52
52
|
sortOrder: number;
|
|
53
53
|
} | null;
|
|
54
54
|
};
|
|
@@ -206,9 +206,9 @@ export declare const bookingRequirementsRoutes: import("hono/hono-base").HonoBas
|
|
|
206
206
|
updatedAt: string;
|
|
207
207
|
description: string | null;
|
|
208
208
|
code: string | null;
|
|
209
|
+
active: boolean;
|
|
209
210
|
productId: string;
|
|
210
211
|
isRequired: boolean;
|
|
211
|
-
active: boolean;
|
|
212
212
|
sortOrder: number;
|
|
213
213
|
label: string;
|
|
214
214
|
target: "service" | "booking" | "lead_traveler" | "traveler" | "booker" | "extra";
|
|
@@ -369,8 +369,8 @@ export declare const bookingRequirementsRoutes: import("hono/hono-base").HonoBas
|
|
|
369
369
|
createdAt: string;
|
|
370
370
|
updatedAt: string;
|
|
371
371
|
notes: string | null;
|
|
372
|
-
optionId: string;
|
|
373
372
|
active: boolean;
|
|
373
|
+
optionId: string;
|
|
374
374
|
sortOrder: number;
|
|
375
375
|
productBookingQuestionId: string;
|
|
376
376
|
isRequiredOverride: boolean | null;
|
|
@@ -791,8 +791,8 @@ export declare const bookingRequirementsRoutes: import("hono/hono-base").HonoBas
|
|
|
791
791
|
id: string;
|
|
792
792
|
createdAt: string;
|
|
793
793
|
updatedAt: string;
|
|
794
|
-
optionId: string;
|
|
795
794
|
active: boolean;
|
|
795
|
+
optionId: string;
|
|
796
796
|
productBookingQuestionId: string;
|
|
797
797
|
triggerMode: "optional" | "required" | "hidden";
|
|
798
798
|
} | null;
|
|
@@ -1078,9 +1078,9 @@ export declare const bookingRequirementsRoutes: import("hono/hono-base").HonoBas
|
|
|
1078
1078
|
createdAt: string;
|
|
1079
1079
|
updatedAt: string;
|
|
1080
1080
|
notes: string | null;
|
|
1081
|
+
bookingId: string;
|
|
1081
1082
|
target: "booking" | "traveler" | "extra";
|
|
1082
1083
|
productBookingQuestionId: string;
|
|
1083
|
-
bookingId: string;
|
|
1084
1084
|
bookingTravelerId: string | null;
|
|
1085
1085
|
bookingExtraId: string | null;
|
|
1086
1086
|
valueText: string | null;
|
|
@@ -40,9 +40,9 @@ export declare function createBookingAnswer(db: PostgresJsDatabase, data: Create
|
|
|
40
40
|
createdAt: Date;
|
|
41
41
|
updatedAt: Date;
|
|
42
42
|
notes: string | null;
|
|
43
|
+
bookingId: string;
|
|
43
44
|
target: "booking" | "traveler" | "extra";
|
|
44
45
|
productBookingQuestionId: string;
|
|
45
|
-
bookingId: string;
|
|
46
46
|
bookingTravelerId: string | null;
|
|
47
47
|
bookingExtraId: string | null;
|
|
48
48
|
valueText: string | null;
|
|
@@ -39,12 +39,12 @@ export declare function createProductContactRequirement(db: PostgresJsDatabase,
|
|
|
39
39
|
updatedAt: Date;
|
|
40
40
|
scope: "booking" | "lead_traveler" | "traveler" | "booker";
|
|
41
41
|
notes: string | null;
|
|
42
|
+
active: boolean;
|
|
42
43
|
productId: string;
|
|
43
44
|
optionId: string | null;
|
|
44
45
|
fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
|
|
45
46
|
isRequired: boolean;
|
|
46
47
|
perTraveler: boolean;
|
|
47
|
-
active: boolean;
|
|
48
48
|
sortOrder: number;
|
|
49
49
|
} | null>;
|
|
50
50
|
export declare function updateProductContactRequirement(db: PostgresJsDatabase, id: string, data: UpdateProductContactRequirementInput): Promise<{
|
|
@@ -110,9 +110,9 @@ export declare function createProductBookingQuestion(db: PostgresJsDatabase, dat
|
|
|
110
110
|
updatedAt: Date;
|
|
111
111
|
description: string | null;
|
|
112
112
|
code: string | null;
|
|
113
|
+
active: boolean;
|
|
113
114
|
productId: string;
|
|
114
115
|
isRequired: boolean;
|
|
115
|
-
active: boolean;
|
|
116
116
|
sortOrder: number;
|
|
117
117
|
label: string;
|
|
118
118
|
target: "service" | "booking" | "lead_traveler" | "traveler" | "booker" | "extra";
|
|
@@ -172,8 +172,8 @@ export declare function createOptionBookingQuestion(db: PostgresJsDatabase, data
|
|
|
172
172
|
createdAt: Date;
|
|
173
173
|
updatedAt: Date;
|
|
174
174
|
notes: string | null;
|
|
175
|
-
optionId: string;
|
|
176
175
|
active: boolean;
|
|
176
|
+
optionId: string;
|
|
177
177
|
sortOrder: number;
|
|
178
178
|
productBookingQuestionId: string;
|
|
179
179
|
isRequiredOverride: boolean | null;
|
|
@@ -319,8 +319,8 @@ export declare function createBookingQuestionOptionTrigger(db: PostgresJsDatabas
|
|
|
319
319
|
id: string;
|
|
320
320
|
createdAt: Date;
|
|
321
321
|
updatedAt: Date;
|
|
322
|
-
optionId: string;
|
|
323
322
|
active: boolean;
|
|
323
|
+
optionId: string;
|
|
324
324
|
productBookingQuestionId: string;
|
|
325
325
|
triggerMode: "optional" | "required" | "hidden";
|
|
326
326
|
} | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/booking-requirements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/core": "0.
|
|
33
|
-
"@voyantjs/db": "0.
|
|
34
|
-
"@voyantjs/hono": "0.
|
|
35
|
-
"@voyantjs/products": "0.
|
|
32
|
+
"@voyantjs/core": "0.10.0",
|
|
33
|
+
"@voyantjs/db": "0.10.0",
|
|
34
|
+
"@voyantjs/hono": "0.10.0",
|
|
35
|
+
"@voyantjs/products": "0.10.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|
|
39
|
-
"@voyantjs/bookings": "0.
|
|
40
|
-
"@voyantjs/products": "0.
|
|
39
|
+
"@voyantjs/bookings": "0.10.0",
|
|
40
|
+
"@voyantjs/products": "0.10.0",
|
|
41
41
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|