@voyantjs/booking-requirements 0.5.0 → 0.6.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.
@@ -5,7 +5,7 @@ export declare function listProductContactRequirements(db: PostgresJsDatabase, q
5
5
  id: string;
6
6
  productId: string;
7
7
  optionId: string | null;
8
- fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
8
+ fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
9
9
  scope: "booking" | "lead_traveler" | "participant" | "booker";
10
10
  isRequired: boolean;
11
11
  perParticipant: boolean;
@@ -23,7 +23,7 @@ export declare function getProductContactRequirementById(db: PostgresJsDatabase,
23
23
  id: string;
24
24
  productId: string;
25
25
  optionId: string | null;
26
- fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
26
+ fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
27
27
  scope: "booking" | "lead_traveler" | "participant" | "booker";
28
28
  isRequired: boolean;
29
29
  perParticipant: boolean;
@@ -35,23 +35,23 @@ export declare function getProductContactRequirementById(db: PostgresJsDatabase,
35
35
  } | null>;
36
36
  export declare function createProductContactRequirement(db: PostgresJsDatabase, data: CreateProductContactRequirementInput): Promise<{
37
37
  id: string;
38
+ createdAt: Date;
39
+ updatedAt: Date;
40
+ scope: "booking" | "lead_traveler" | "participant" | "booker";
41
+ notes: string | null;
38
42
  productId: string;
39
43
  optionId: string | null;
40
- fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
41
- scope: "booking" | "lead_traveler" | "participant" | "booker";
44
+ fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
42
45
  isRequired: boolean;
43
46
  perParticipant: boolean;
44
47
  active: boolean;
45
48
  sortOrder: number;
46
- notes: string | null;
47
- createdAt: Date;
48
- updatedAt: Date;
49
49
  } | null>;
50
50
  export declare function updateProductContactRequirement(db: PostgresJsDatabase, id: string, data: UpdateProductContactRequirementInput): Promise<{
51
51
  id: string;
52
52
  productId: string;
53
53
  optionId: string | null;
54
- fieldKey: "first_name" | "last_name" | "email" | "phone" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address" | "other";
54
+ fieldKey: "email" | "other" | "nationality" | "first_name" | "last_name" | "phone" | "date_of_birth" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
55
55
  scope: "booking" | "lead_traveler" | "participant" | "booker";
56
56
  isRequired: boolean;
57
57
  perParticipant: boolean;
@@ -71,8 +71,8 @@ export declare function listProductBookingQuestions(db: PostgresJsDatabase, quer
71
71
  code: string | null;
72
72
  label: string;
73
73
  description: string | null;
74
- target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
75
- fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
74
+ target: "service" | "booking" | "lead_traveler" | "participant" | "booker" | "extra";
75
+ fieldType: "number" | "boolean" | "date" | "email" | "other" | "file" | "text" | "phone" | "textarea" | "datetime" | "single_select" | "multi_select" | "country";
76
76
  placeholder: string | null;
77
77
  helpText: string | null;
78
78
  isRequired: boolean;
@@ -92,8 +92,8 @@ export declare function getProductBookingQuestionById(db: PostgresJsDatabase, id
92
92
  code: string | null;
93
93
  label: string;
94
94
  description: string | null;
95
- target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
96
- fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
95
+ target: "service" | "booking" | "lead_traveler" | "participant" | "booker" | "extra";
96
+ fieldType: "number" | "boolean" | "date" | "email" | "other" | "file" | "text" | "phone" | "textarea" | "datetime" | "single_select" | "multi_select" | "country";
97
97
  placeholder: string | null;
98
98
  helpText: string | null;
99
99
  isRequired: boolean;
@@ -104,21 +104,21 @@ export declare function getProductBookingQuestionById(db: PostgresJsDatabase, id
104
104
  updatedAt: Date;
105
105
  } | null>;
106
106
  export declare function createProductBookingQuestion(db: PostgresJsDatabase, data: CreateProductBookingQuestionInput): Promise<{
107
+ metadata: Record<string, unknown> | null;
107
108
  id: string;
109
+ createdAt: Date;
110
+ updatedAt: Date;
111
+ description: string | null;
112
+ code: string | null;
108
113
  productId: string;
109
114
  isRequired: boolean;
110
115
  active: boolean;
111
116
  sortOrder: number;
112
- createdAt: Date;
113
- updatedAt: Date;
114
- code: string | null;
115
117
  label: string;
116
- description: string | null;
117
- target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
118
- fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
118
+ target: "service" | "booking" | "lead_traveler" | "participant" | "booker" | "extra";
119
+ fieldType: "number" | "boolean" | "date" | "email" | "other" | "file" | "text" | "phone" | "textarea" | "datetime" | "single_select" | "multi_select" | "country";
119
120
  placeholder: string | null;
120
121
  helpText: string | null;
121
- metadata: Record<string, unknown> | null;
122
122
  } | null>;
123
123
  export declare function updateProductBookingQuestion(db: PostgresJsDatabase, id: string, data: UpdateProductBookingQuestionInput): Promise<{
124
124
  id: string;
@@ -126,8 +126,8 @@ export declare function updateProductBookingQuestion(db: PostgresJsDatabase, id:
126
126
  code: string | null;
127
127
  label: string;
128
128
  description: string | null;
129
- target: "booking" | "lead_traveler" | "participant" | "booker" | "extra" | "service";
130
- fieldType: "number" | "boolean" | "email" | "phone" | "other" | "text" | "textarea" | "date" | "datetime" | "single_select" | "multi_select" | "file" | "country";
129
+ target: "service" | "booking" | "lead_traveler" | "participant" | "booker" | "extra";
130
+ fieldType: "number" | "boolean" | "date" | "email" | "other" | "file" | "text" | "phone" | "textarea" | "datetime" | "single_select" | "multi_select" | "country";
131
131
  placeholder: string | null;
132
132
  helpText: string | null;
133
133
  isRequired: boolean;
@@ -169,12 +169,12 @@ export declare function getOptionBookingQuestionById(db: PostgresJsDatabase, id:
169
169
  } | null>;
170
170
  export declare function createOptionBookingQuestion(db: PostgresJsDatabase, data: CreateOptionBookingQuestionInput): Promise<{
171
171
  id: string;
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ notes: string | null;
172
175
  optionId: string;
173
176
  active: boolean;
174
177
  sortOrder: number;
175
- notes: string | null;
176
- createdAt: Date;
177
- updatedAt: Date;
178
178
  productBookingQuestionId: string;
179
179
  isRequiredOverride: boolean | null;
180
180
  } | null>;
@@ -222,10 +222,10 @@ export declare function getBookingQuestionOptionById(db: PostgresJsDatabase, id:
222
222
  export declare function createBookingQuestionOption(db: PostgresJsDatabase, data: CreateBookingQuestionOptionInput): Promise<{
223
223
  value: string;
224
224
  id: string;
225
- active: boolean;
226
- sortOrder: number;
227
225
  createdAt: Date;
228
226
  updatedAt: Date;
227
+ active: boolean;
228
+ sortOrder: number;
229
229
  label: string;
230
230
  productBookingQuestionId: string;
231
231
  isDefault: boolean;
@@ -249,7 +249,7 @@ export declare function listBookingQuestionUnitTriggers(db: PostgresJsDatabase,
249
249
  id: string;
250
250
  productBookingQuestionId: string;
251
251
  unitId: string;
252
- triggerMode: "required" | "optional" | "hidden";
252
+ triggerMode: "optional" | "required" | "hidden";
253
253
  minQuantity: number | null;
254
254
  active: boolean;
255
255
  createdAt: Date;
@@ -263,7 +263,7 @@ export declare function getBookingQuestionUnitTriggerById(db: PostgresJsDatabase
263
263
  id: string;
264
264
  productBookingQuestionId: string;
265
265
  unitId: string;
266
- triggerMode: "required" | "optional" | "hidden";
266
+ triggerMode: "optional" | "required" | "hidden";
267
267
  minQuantity: number | null;
268
268
  active: boolean;
269
269
  createdAt: Date;
@@ -271,19 +271,19 @@ export declare function getBookingQuestionUnitTriggerById(db: PostgresJsDatabase
271
271
  } | null>;
272
272
  export declare function createBookingQuestionUnitTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionUnitTriggerInput): Promise<{
273
273
  id: string;
274
- active: boolean;
275
274
  createdAt: Date;
276
275
  updatedAt: Date;
276
+ active: boolean;
277
277
  productBookingQuestionId: string;
278
278
  unitId: string;
279
- triggerMode: "required" | "optional" | "hidden";
279
+ triggerMode: "optional" | "required" | "hidden";
280
280
  minQuantity: number | null;
281
281
  } | null>;
282
282
  export declare function updateBookingQuestionUnitTrigger(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionUnitTriggerInput): Promise<{
283
283
  id: string;
284
284
  productBookingQuestionId: string;
285
285
  unitId: string;
286
- triggerMode: "required" | "optional" | "hidden";
286
+ triggerMode: "optional" | "required" | "hidden";
287
287
  minQuantity: number | null;
288
288
  active: boolean;
289
289
  createdAt: Date;
@@ -297,7 +297,7 @@ export declare function listBookingQuestionOptionTriggers(db: PostgresJsDatabase
297
297
  id: string;
298
298
  productBookingQuestionId: string;
299
299
  optionId: string;
300
- triggerMode: "required" | "optional" | "hidden";
300
+ triggerMode: "optional" | "required" | "hidden";
301
301
  active: boolean;
302
302
  createdAt: Date;
303
303
  updatedAt: Date;
@@ -310,25 +310,25 @@ export declare function getBookingQuestionOptionTriggerById(db: PostgresJsDataba
310
310
  id: string;
311
311
  productBookingQuestionId: string;
312
312
  optionId: string;
313
- triggerMode: "required" | "optional" | "hidden";
313
+ triggerMode: "optional" | "required" | "hidden";
314
314
  active: boolean;
315
315
  createdAt: Date;
316
316
  updatedAt: Date;
317
317
  } | null>;
318
318
  export declare function createBookingQuestionOptionTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionOptionTriggerInput): Promise<{
319
319
  id: string;
320
- optionId: string;
321
- active: boolean;
322
320
  createdAt: Date;
323
321
  updatedAt: Date;
322
+ optionId: string;
323
+ active: boolean;
324
324
  productBookingQuestionId: string;
325
- triggerMode: "required" | "optional" | "hidden";
325
+ triggerMode: "optional" | "required" | "hidden";
326
326
  } | null>;
327
327
  export declare function updateBookingQuestionOptionTrigger(db: PostgresJsDatabase, id: string, data: UpdateBookingQuestionOptionTriggerInput): Promise<{
328
328
  id: string;
329
329
  productBookingQuestionId: string;
330
330
  optionId: string;
331
- triggerMode: "required" | "optional" | "hidden";
331
+ triggerMode: "optional" | "required" | "hidden";
332
332
  active: boolean;
333
333
  createdAt: Date;
334
334
  updatedAt: Date;
@@ -342,7 +342,7 @@ export declare function listBookingQuestionExtraTriggers(db: PostgresJsDatabase,
342
342
  productBookingQuestionId: string;
343
343
  productExtraId: string | null;
344
344
  optionExtraConfigId: string | null;
345
- triggerMode: "required" | "optional" | "hidden";
345
+ triggerMode: "optional" | "required" | "hidden";
346
346
  minQuantity: number | null;
347
347
  active: boolean;
348
348
  createdAt: Date;
@@ -357,7 +357,7 @@ export declare function getBookingQuestionExtraTriggerById(db: PostgresJsDatabas
357
357
  productBookingQuestionId: string;
358
358
  productExtraId: string | null;
359
359
  optionExtraConfigId: string | null;
360
- triggerMode: "required" | "optional" | "hidden";
360
+ triggerMode: "optional" | "required" | "hidden";
361
361
  minQuantity: number | null;
362
362
  active: boolean;
363
363
  createdAt: Date;
@@ -365,11 +365,11 @@ export declare function getBookingQuestionExtraTriggerById(db: PostgresJsDatabas
365
365
  } | null>;
366
366
  export declare function createBookingQuestionExtraTrigger(db: PostgresJsDatabase, data: CreateBookingQuestionExtraTriggerInput): Promise<{
367
367
  id: string;
368
- active: boolean;
369
368
  createdAt: Date;
370
369
  updatedAt: Date;
370
+ active: boolean;
371
371
  productBookingQuestionId: string;
372
- triggerMode: "required" | "optional" | "hidden";
372
+ triggerMode: "optional" | "required" | "hidden";
373
373
  minQuantity: number | null;
374
374
  productExtraId: string | null;
375
375
  optionExtraConfigId: string | null;
@@ -379,7 +379,7 @@ export declare function updateBookingQuestionExtraTrigger(db: PostgresJsDatabase
379
379
  productBookingQuestionId: string;
380
380
  productExtraId: string | null;
381
381
  optionExtraConfigId: string | null;
382
- triggerMode: "required" | "optional" | "hidden";
382
+ triggerMode: "optional" | "required" | "hidden";
383
383
  minQuantity: number | null;
384
384
  active: boolean;
385
385
  createdAt: Date;
@@ -1,18 +1,18 @@
1
1
  import { z } from "zod";
2
2
  export declare const contactRequirementFieldSchema: z.ZodEnum<{
3
+ email: "email";
4
+ other: "other";
5
+ nationality: "nationality";
3
6
  first_name: "first_name";
4
7
  last_name: "last_name";
5
- email: "email";
6
8
  phone: "phone";
7
9
  date_of_birth: "date_of_birth";
8
- nationality: "nationality";
9
10
  passport_number: "passport_number";
10
11
  passport_expiry: "passport_expiry";
11
12
  dietary_requirements: "dietary_requirements";
12
13
  accessibility_needs: "accessibility_needs";
13
14
  special_requests: "special_requests";
14
15
  address: "address";
15
- other: "other";
16
16
  }>;
17
17
  export declare const contactRequirementScopeSchema: z.ZodEnum<{
18
18
  booking: "booking";
@@ -21,31 +21,31 @@ export declare const contactRequirementScopeSchema: z.ZodEnum<{
21
21
  booker: "booker";
22
22
  }>;
23
23
  export declare const bookingQuestionTargetSchema: z.ZodEnum<{
24
+ service: "service";
24
25
  booking: "booking";
25
26
  lead_traveler: "lead_traveler";
26
27
  participant: "participant";
27
28
  booker: "booker";
28
29
  extra: "extra";
29
- service: "service";
30
30
  }>;
31
31
  export declare const bookingQuestionFieldTypeSchema: z.ZodEnum<{
32
32
  number: "number";
33
33
  boolean: "boolean";
34
+ date: "date";
34
35
  email: "email";
35
- phone: "phone";
36
36
  other: "other";
37
+ file: "file";
37
38
  text: "text";
39
+ phone: "phone";
38
40
  textarea: "textarea";
39
- date: "date";
40
41
  datetime: "datetime";
41
42
  single_select: "single_select";
42
43
  multi_select: "multi_select";
43
- file: "file";
44
44
  country: "country";
45
45
  }>;
46
46
  export declare const bookingQuestionTriggerModeSchema: z.ZodEnum<{
47
- required: "required";
48
47
  optional: "optional";
48
+ required: "required";
49
49
  hidden: "hidden";
50
50
  }>;
51
51
  export declare const bookingAnswerTargetSchema: z.ZodEnum<{
@@ -57,19 +57,19 @@ export declare const productContactRequirementCoreSchema: z.ZodObject<{
57
57
  productId: z.ZodString;
58
58
  optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  fieldKey: z.ZodEnum<{
60
+ email: "email";
61
+ other: "other";
62
+ nationality: "nationality";
60
63
  first_name: "first_name";
61
64
  last_name: "last_name";
62
- email: "email";
63
65
  phone: "phone";
64
66
  date_of_birth: "date_of_birth";
65
- nationality: "nationality";
66
67
  passport_number: "passport_number";
67
68
  passport_expiry: "passport_expiry";
68
69
  dietary_requirements: "dietary_requirements";
69
70
  accessibility_needs: "accessibility_needs";
70
71
  special_requests: "special_requests";
71
72
  address: "address";
72
- other: "other";
73
73
  }>;
74
74
  scope: z.ZodDefault<z.ZodEnum<{
75
75
  booking: "booking";
@@ -87,19 +87,19 @@ export declare const insertProductContactRequirementSchema: z.ZodObject<{
87
87
  productId: z.ZodString;
88
88
  optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
89
  fieldKey: z.ZodEnum<{
90
+ email: "email";
91
+ other: "other";
92
+ nationality: "nationality";
90
93
  first_name: "first_name";
91
94
  last_name: "last_name";
92
- email: "email";
93
95
  phone: "phone";
94
96
  date_of_birth: "date_of_birth";
95
- nationality: "nationality";
96
97
  passport_number: "passport_number";
97
98
  passport_expiry: "passport_expiry";
98
99
  dietary_requirements: "dietary_requirements";
99
100
  accessibility_needs: "accessibility_needs";
100
101
  special_requests: "special_requests";
101
102
  address: "address";
102
- other: "other";
103
103
  }>;
104
104
  scope: z.ZodDefault<z.ZodEnum<{
105
105
  booking: "booking";
@@ -117,19 +117,19 @@ export declare const updateProductContactRequirementSchema: z.ZodObject<{
117
117
  productId: z.ZodOptional<z.ZodString>;
118
118
  optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
119
119
  fieldKey: z.ZodOptional<z.ZodEnum<{
120
+ email: "email";
121
+ other: "other";
122
+ nationality: "nationality";
120
123
  first_name: "first_name";
121
124
  last_name: "last_name";
122
- email: "email";
123
125
  phone: "phone";
124
126
  date_of_birth: "date_of_birth";
125
- nationality: "nationality";
126
127
  passport_number: "passport_number";
127
128
  passport_expiry: "passport_expiry";
128
129
  dietary_requirements: "dietary_requirements";
129
130
  accessibility_needs: "accessibility_needs";
130
131
  special_requests: "special_requests";
131
132
  address: "address";
132
- other: "other";
133
133
  }>>;
134
134
  scope: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
135
135
  booking: "booking";
@@ -159,15 +159,15 @@ export declare const publicTransportRequirementsQuerySchema: z.ZodObject<{
159
159
  optionId: z.ZodOptional<z.ZodString>;
160
160
  }, z.core.$strip>;
161
161
  export declare const transportRequirementFieldSchema: z.ZodEnum<{
162
- date_of_birth: "date_of_birth";
163
162
  nationality: "nationality";
163
+ date_of_birth: "date_of_birth";
164
164
  passport_number: "passport_number";
165
165
  passport_expiry: "passport_expiry";
166
166
  }>;
167
167
  export declare const publicTransportRequirementSummarySchema: z.ZodObject<{
168
168
  fieldKey: z.ZodEnum<{
169
- date_of_birth: "date_of_birth";
170
169
  nationality: "nationality";
170
+ date_of_birth: "date_of_birth";
171
171
  passport_number: "passport_number";
172
172
  passport_expiry: "passport_expiry";
173
173
  }>;
@@ -190,41 +190,41 @@ export declare const publicTransportRequirementsSchema: z.ZodObject<{
190
190
  requiresNationality: z.ZodBoolean;
191
191
  requiresDateOfBirth: z.ZodBoolean;
192
192
  requiredFields: z.ZodArray<z.ZodEnum<{
193
- date_of_birth: "date_of_birth";
194
193
  nationality: "nationality";
194
+ date_of_birth: "date_of_birth";
195
195
  passport_number: "passport_number";
196
196
  passport_expiry: "passport_expiry";
197
197
  }>>;
198
198
  fieldsByScope: z.ZodObject<{
199
199
  booking: z.ZodArray<z.ZodEnum<{
200
- date_of_birth: "date_of_birth";
201
200
  nationality: "nationality";
201
+ date_of_birth: "date_of_birth";
202
202
  passport_number: "passport_number";
203
203
  passport_expiry: "passport_expiry";
204
204
  }>>;
205
205
  lead_traveler: z.ZodArray<z.ZodEnum<{
206
- date_of_birth: "date_of_birth";
207
206
  nationality: "nationality";
207
+ date_of_birth: "date_of_birth";
208
208
  passport_number: "passport_number";
209
209
  passport_expiry: "passport_expiry";
210
210
  }>>;
211
211
  participant: z.ZodArray<z.ZodEnum<{
212
- date_of_birth: "date_of_birth";
213
212
  nationality: "nationality";
213
+ date_of_birth: "date_of_birth";
214
214
  passport_number: "passport_number";
215
215
  passport_expiry: "passport_expiry";
216
216
  }>>;
217
217
  booker: z.ZodArray<z.ZodEnum<{
218
- date_of_birth: "date_of_birth";
219
218
  nationality: "nationality";
219
+ date_of_birth: "date_of_birth";
220
220
  passport_number: "passport_number";
221
221
  passport_expiry: "passport_expiry";
222
222
  }>>;
223
223
  }, z.core.$strip>;
224
224
  requirements: z.ZodArray<z.ZodObject<{
225
225
  fieldKey: z.ZodEnum<{
226
- date_of_birth: "date_of_birth";
227
226
  nationality: "nationality";
227
+ date_of_birth: "date_of_birth";
228
228
  passport_number: "passport_number";
229
229
  passport_expiry: "passport_expiry";
230
230
  }>;
@@ -245,26 +245,26 @@ export declare const productBookingQuestionCoreSchema: z.ZodObject<{
245
245
  label: z.ZodString;
246
246
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
247
  target: z.ZodDefault<z.ZodEnum<{
248
+ service: "service";
248
249
  booking: "booking";
249
250
  lead_traveler: "lead_traveler";
250
251
  participant: "participant";
251
252
  booker: "booker";
252
253
  extra: "extra";
253
- service: "service";
254
254
  }>>;
255
255
  fieldType: z.ZodDefault<z.ZodEnum<{
256
256
  number: "number";
257
257
  boolean: "boolean";
258
+ date: "date";
258
259
  email: "email";
259
- phone: "phone";
260
260
  other: "other";
261
+ file: "file";
261
262
  text: "text";
263
+ phone: "phone";
262
264
  textarea: "textarea";
263
- date: "date";
264
265
  datetime: "datetime";
265
266
  single_select: "single_select";
266
267
  multi_select: "multi_select";
267
- file: "file";
268
268
  country: "country";
269
269
  }>>;
270
270
  placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -280,26 +280,26 @@ export declare const insertProductBookingQuestionSchema: z.ZodObject<{
280
280
  label: z.ZodString;
281
281
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
282
  target: z.ZodDefault<z.ZodEnum<{
283
+ service: "service";
283
284
  booking: "booking";
284
285
  lead_traveler: "lead_traveler";
285
286
  participant: "participant";
286
287
  booker: "booker";
287
288
  extra: "extra";
288
- service: "service";
289
289
  }>>;
290
290
  fieldType: z.ZodDefault<z.ZodEnum<{
291
291
  number: "number";
292
292
  boolean: "boolean";
293
+ date: "date";
293
294
  email: "email";
294
- phone: "phone";
295
295
  other: "other";
296
+ file: "file";
296
297
  text: "text";
298
+ phone: "phone";
297
299
  textarea: "textarea";
298
- date: "date";
299
300
  datetime: "datetime";
300
301
  single_select: "single_select";
301
302
  multi_select: "multi_select";
302
- file: "file";
303
303
  country: "country";
304
304
  }>>;
305
305
  placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -315,26 +315,26 @@ export declare const updateProductBookingQuestionSchema: z.ZodObject<{
315
315
  label: z.ZodOptional<z.ZodString>;
316
316
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
317
317
  target: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
318
+ service: "service";
318
319
  booking: "booking";
319
320
  lead_traveler: "lead_traveler";
320
321
  participant: "participant";
321
322
  booker: "booker";
322
323
  extra: "extra";
323
- service: "service";
324
324
  }>>>;
325
325
  fieldType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
326
326
  number: "number";
327
327
  boolean: "boolean";
328
+ date: "date";
328
329
  email: "email";
329
- phone: "phone";
330
330
  other: "other";
331
+ file: "file";
331
332
  text: "text";
333
+ phone: "phone";
332
334
  textarea: "textarea";
333
- date: "date";
334
335
  datetime: "datetime";
335
336
  single_select: "single_select";
336
337
  multi_select: "multi_select";
337
- file: "file";
338
338
  country: "country";
339
339
  }>>>;
340
340
  placeholder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -349,26 +349,26 @@ export declare const productBookingQuestionListQuerySchema: z.ZodObject<{
349
349
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
350
350
  productId: z.ZodOptional<z.ZodString>;
351
351
  target: z.ZodOptional<z.ZodEnum<{
352
+ service: "service";
352
353
  booking: "booking";
353
354
  lead_traveler: "lead_traveler";
354
355
  participant: "participant";
355
356
  booker: "booker";
356
357
  extra: "extra";
357
- service: "service";
358
358
  }>>;
359
359
  fieldType: z.ZodOptional<z.ZodEnum<{
360
360
  number: "number";
361
361
  boolean: "boolean";
362
+ date: "date";
362
363
  email: "email";
363
- phone: "phone";
364
364
  other: "other";
365
+ file: "file";
365
366
  text: "text";
367
+ phone: "phone";
366
368
  textarea: "textarea";
367
- date: "date";
368
369
  datetime: "datetime";
369
370
  single_select: "single_select";
370
371
  multi_select: "multi_select";
371
- file: "file";
372
372
  country: "country";
373
373
  }>>;
374
374
  active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
@@ -453,8 +453,8 @@ export declare const bookingQuestionUnitTriggerCoreSchema: z.ZodObject<{
453
453
  productBookingQuestionId: z.ZodString;
454
454
  unitId: z.ZodString;
455
455
  triggerMode: z.ZodDefault<z.ZodEnum<{
456
- required: "required";
457
456
  optional: "optional";
457
+ required: "required";
458
458
  hidden: "hidden";
459
459
  }>>;
460
460
  minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -464,8 +464,8 @@ export declare const insertBookingQuestionUnitTriggerSchema: z.ZodObject<{
464
464
  productBookingQuestionId: z.ZodString;
465
465
  unitId: z.ZodString;
466
466
  triggerMode: z.ZodDefault<z.ZodEnum<{
467
- required: "required";
468
467
  optional: "optional";
468
+ required: "required";
469
469
  hidden: "hidden";
470
470
  }>>;
471
471
  minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -475,8 +475,8 @@ export declare const updateBookingQuestionUnitTriggerSchema: z.ZodObject<{
475
475
  productBookingQuestionId: z.ZodOptional<z.ZodString>;
476
476
  unitId: z.ZodOptional<z.ZodString>;
477
477
  triggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
478
- required: "required";
479
478
  optional: "optional";
479
+ required: "required";
480
480
  hidden: "hidden";
481
481
  }>>>;
482
482
  minQuantity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -498,8 +498,8 @@ export declare const bookingQuestionOptionTriggerCoreSchema: z.ZodObject<{
498
498
  productBookingQuestionId: z.ZodString;
499
499
  optionId: z.ZodString;
500
500
  triggerMode: z.ZodDefault<z.ZodEnum<{
501
- required: "required";
502
501
  optional: "optional";
502
+ required: "required";
503
503
  hidden: "hidden";
504
504
  }>>;
505
505
  active: z.ZodDefault<z.ZodBoolean>;
@@ -508,8 +508,8 @@ export declare const insertBookingQuestionOptionTriggerSchema: z.ZodObject<{
508
508
  productBookingQuestionId: z.ZodString;
509
509
  optionId: z.ZodString;
510
510
  triggerMode: z.ZodDefault<z.ZodEnum<{
511
- required: "required";
512
511
  optional: "optional";
512
+ required: "required";
513
513
  hidden: "hidden";
514
514
  }>>;
515
515
  active: z.ZodDefault<z.ZodBoolean>;
@@ -518,8 +518,8 @@ export declare const updateBookingQuestionOptionTriggerSchema: z.ZodObject<{
518
518
  productBookingQuestionId: z.ZodOptional<z.ZodString>;
519
519
  optionId: z.ZodOptional<z.ZodString>;
520
520
  triggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
521
- required: "required";
522
521
  optional: "optional";
522
+ required: "required";
523
523
  hidden: "hidden";
524
524
  }>>>;
525
525
  active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -541,8 +541,8 @@ export declare const bookingQuestionExtraTriggerCoreSchema: z.ZodObject<{
541
541
  productExtraId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
542
  optionExtraConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
543
  triggerMode: z.ZodDefault<z.ZodEnum<{
544
- required: "required";
545
544
  optional: "optional";
545
+ required: "required";
546
546
  hidden: "hidden";
547
547
  }>>;
548
548
  minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -553,8 +553,8 @@ export declare const insertBookingQuestionExtraTriggerSchema: z.ZodObject<{
553
553
  productExtraId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
554
  optionExtraConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
555
  triggerMode: z.ZodDefault<z.ZodEnum<{
556
- required: "required";
557
556
  optional: "optional";
557
+ required: "required";
558
558
  hidden: "hidden";
559
559
  }>>;
560
560
  minQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -565,8 +565,8 @@ export declare const updateBookingQuestionExtraTriggerSchema: z.ZodObject<{
565
565
  productExtraId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
566
566
  optionExtraConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
567
567
  triggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
568
- required: "required";
569
568
  optional: "optional";
569
+ required: "required";
570
570
  hidden: "hidden";
571
571
  }>>>;
572
572
  minQuantity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;