@voyantjs/booking-requirements-react 0.6.8 → 0.6.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.
@@ -3,8 +3,8 @@ export declare const QUESTION_TARGETS: readonly [{
3
3
  readonly value: "booking";
4
4
  readonly label: "Booking";
5
5
  }, {
6
- readonly value: "participant";
7
- readonly label: "Participant";
6
+ readonly value: "traveler";
7
+ readonly label: "Traveler";
8
8
  }, {
9
9
  readonly value: "lead_traveler";
10
10
  readonly label: "Lead traveler";
@@ -105,8 +105,8 @@ export declare const CONTACT_SCOPES: readonly [{
105
105
  readonly value: "lead_traveler";
106
106
  readonly label: "Lead traveler";
107
107
  }, {
108
- readonly value: "participant";
109
- readonly label: "Participant";
108
+ readonly value: "traveler";
109
+ readonly label: "Traveler";
110
110
  }, {
111
111
  readonly value: "booker";
112
112
  readonly label: "Booker";
package/dist/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const SELECT_TYPES = new Set(["single_select", "multi_select"]);
2
2
  export const QUESTION_TARGETS = [
3
3
  { value: "booking", label: "Booking" },
4
- { value: "participant", label: "Participant" },
4
+ { value: "traveler", label: "Traveler" },
5
5
  { value: "lead_traveler", label: "Lead traveler" },
6
6
  { value: "booker", label: "Booker" },
7
7
  { value: "extra", label: "Extra" },
@@ -40,6 +40,6 @@ export const CONTACT_FIELDS = [
40
40
  export const CONTACT_SCOPES = [
41
41
  { value: "booking", label: "Booking" },
42
42
  { value: "lead_traveler", label: "Lead traveler" },
43
- { value: "participant", label: "Participant" },
43
+ { value: "traveler", label: "Traveler" },
44
44
  { value: "booker", label: "Booker" },
45
45
  ];
@@ -9,7 +9,7 @@ export declare function useBookingQuestions(options?: UseBookingQuestionsOptions
9
9
  code: string | null;
10
10
  label: string;
11
11
  description: string | null;
12
- target: "booking" | "participant" | "lead_traveler" | "booker" | "extra" | "service";
12
+ target: "booking" | "traveler" | "lead_traveler" | "booker" | "extra" | "service";
13
13
  fieldType: "number" | "boolean" | "single_select" | "multi_select" | "text" | "textarea" | "email" | "phone" | "date" | "datetime" | "file" | "country" | "other";
14
14
  placeholder: string | null;
15
15
  helpText: string | null;
@@ -8,9 +8,9 @@ export declare function useContactRequirements(options?: UseContactRequirementsO
8
8
  productId: string;
9
9
  optionId: string | null;
10
10
  fieldKey: "email" | "phone" | "other" | "first_name" | "last_name" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
11
- scope: "booking" | "participant" | "lead_traveler" | "booker";
11
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
12
12
  isRequired: boolean;
13
- perParticipant: boolean;
13
+ perTraveler: boolean;
14
14
  active: boolean;
15
15
  sortOrder: number;
16
16
  notes: string | null;
@@ -15,14 +15,14 @@ export declare function useTransportRequirements(options: UseTransportRequiremen
15
15
  fieldsByScope: {
16
16
  booking: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
17
17
  lead_traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
18
- participant: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
18
+ traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
19
19
  booker: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
20
20
  };
21
21
  requirements: {
22
22
  fieldKey: "date_of_birth" | "nationality" | "passport_number" | "passport_expiry";
23
- scope: "booking" | "participant" | "lead_traveler" | "booker";
23
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
24
24
  isRequired: boolean;
25
- perParticipant: boolean;
25
+ perTraveler: boolean;
26
26
  notes: string | null;
27
27
  }[];
28
28
  };
@@ -58,9 +58,9 @@ export declare function getContactRequirementsQueryOptions(client: FetchWithVali
58
58
  productId: string;
59
59
  optionId: string | null;
60
60
  fieldKey: "email" | "phone" | "other" | "first_name" | "last_name" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
61
- scope: "booking" | "participant" | "lead_traveler" | "booker";
61
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
62
62
  isRequired: boolean;
63
- perParticipant: boolean;
63
+ perTraveler: boolean;
64
64
  active: boolean;
65
65
  sortOrder: number;
66
66
  notes: string | null;
@@ -74,9 +74,9 @@ export declare function getContactRequirementsQueryOptions(client: FetchWithVali
74
74
  productId: string;
75
75
  optionId: string | null;
76
76
  fieldKey: "email" | "phone" | "other" | "first_name" | "last_name" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
77
- scope: "booking" | "participant" | "lead_traveler" | "booker";
77
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
78
78
  isRequired: boolean;
79
- perParticipant: boolean;
79
+ perTraveler: boolean;
80
80
  active: boolean;
81
81
  sortOrder: number;
82
82
  notes: string | null;
@@ -91,9 +91,9 @@ export declare function getContactRequirementsQueryOptions(client: FetchWithVali
91
91
  productId: string;
92
92
  optionId: string | null;
93
93
  fieldKey: "email" | "phone" | "other" | "first_name" | "last_name" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
94
- scope: "booking" | "participant" | "lead_traveler" | "booker";
94
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
95
95
  isRequired: boolean;
96
- perParticipant: boolean;
96
+ perTraveler: boolean;
97
97
  active: boolean;
98
98
  sortOrder: number;
99
99
  notes: string | null;
@@ -110,9 +110,9 @@ export declare function getContactRequirementsQueryOptions(client: FetchWithVali
110
110
  productId: string;
111
111
  optionId: string | null;
112
112
  fieldKey: "email" | "phone" | "other" | "first_name" | "last_name" | "date_of_birth" | "nationality" | "passport_number" | "passport_expiry" | "dietary_requirements" | "accessibility_needs" | "special_requests" | "address";
113
- scope: "booking" | "participant" | "lead_traveler" | "booker";
113
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
114
114
  isRequired: boolean;
115
- perParticipant: boolean;
115
+ perTraveler: boolean;
116
116
  active: boolean;
117
117
  sortOrder: number;
118
118
  notes: string | null;
@@ -131,7 +131,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
131
131
  code: string | null;
132
132
  label: string;
133
133
  description: string | null;
134
- target: "booking" | "participant" | "lead_traveler" | "booker" | "extra" | "service";
134
+ target: "booking" | "traveler" | "lead_traveler" | "booker" | "extra" | "service";
135
135
  fieldType: "number" | "boolean" | "single_select" | "multi_select" | "text" | "textarea" | "email" | "phone" | "date" | "datetime" | "file" | "country" | "other";
136
136
  placeholder: string | null;
137
137
  helpText: string | null;
@@ -149,7 +149,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
149
149
  code: string | null;
150
150
  label: string;
151
151
  description: string | null;
152
- target: "booking" | "participant" | "lead_traveler" | "booker" | "extra" | "service";
152
+ target: "booking" | "traveler" | "lead_traveler" | "booker" | "extra" | "service";
153
153
  fieldType: "number" | "boolean" | "single_select" | "multi_select" | "text" | "textarea" | "email" | "phone" | "date" | "datetime" | "file" | "country" | "other";
154
154
  placeholder: string | null;
155
155
  helpText: string | null;
@@ -168,7 +168,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
168
168
  code: string | null;
169
169
  label: string;
170
170
  description: string | null;
171
- target: "booking" | "participant" | "lead_traveler" | "booker" | "extra" | "service";
171
+ target: "booking" | "traveler" | "lead_traveler" | "booker" | "extra" | "service";
172
172
  fieldType: "number" | "boolean" | "single_select" | "multi_select" | "text" | "textarea" | "email" | "phone" | "date" | "datetime" | "file" | "country" | "other";
173
173
  placeholder: string | null;
174
174
  helpText: string | null;
@@ -189,7 +189,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
189
189
  code: string | null;
190
190
  label: string;
191
191
  description: string | null;
192
- target: "booking" | "participant" | "lead_traveler" | "booker" | "extra" | "service";
192
+ target: "booking" | "traveler" | "lead_traveler" | "booker" | "extra" | "service";
193
193
  fieldType: "number" | "boolean" | "single_select" | "multi_select" | "text" | "textarea" | "email" | "phone" | "date" | "datetime" | "file" | "country" | "other";
194
194
  placeholder: string | null;
195
195
  helpText: string | null;
@@ -277,14 +277,14 @@ export declare function getTransportRequirementsQueryOptions(client: FetchWithVa
277
277
  fieldsByScope: {
278
278
  booking: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
279
279
  lead_traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
280
- participant: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
280
+ traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
281
281
  booker: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
282
282
  };
283
283
  requirements: {
284
284
  fieldKey: "date_of_birth" | "nationality" | "passport_number" | "passport_expiry";
285
- scope: "booking" | "participant" | "lead_traveler" | "booker";
285
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
286
286
  isRequired: boolean;
287
- perParticipant: boolean;
287
+ perTraveler: boolean;
288
288
  notes: string | null;
289
289
  }[];
290
290
  };
@@ -301,14 +301,14 @@ export declare function getTransportRequirementsQueryOptions(client: FetchWithVa
301
301
  fieldsByScope: {
302
302
  booking: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
303
303
  lead_traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
304
- participant: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
304
+ traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
305
305
  booker: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
306
306
  };
307
307
  requirements: {
308
308
  fieldKey: "date_of_birth" | "nationality" | "passport_number" | "passport_expiry";
309
- scope: "booking" | "participant" | "lead_traveler" | "booker";
309
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
310
310
  isRequired: boolean;
311
- perParticipant: boolean;
311
+ perTraveler: boolean;
312
312
  notes: string | null;
313
313
  }[];
314
314
  };
@@ -326,14 +326,14 @@ export declare function getTransportRequirementsQueryOptions(client: FetchWithVa
326
326
  fieldsByScope: {
327
327
  booking: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
328
328
  lead_traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
329
- participant: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
329
+ traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
330
330
  booker: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
331
331
  };
332
332
  requirements: {
333
333
  fieldKey: "date_of_birth" | "nationality" | "passport_number" | "passport_expiry";
334
- scope: "booking" | "participant" | "lead_traveler" | "booker";
334
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
335
335
  isRequired: boolean;
336
- perParticipant: boolean;
336
+ perTraveler: boolean;
337
337
  notes: string | null;
338
338
  }[];
339
339
  };
@@ -353,14 +353,14 @@ export declare function getTransportRequirementsQueryOptions(client: FetchWithVa
353
353
  fieldsByScope: {
354
354
  booking: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
355
355
  lead_traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
356
- participant: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
356
+ traveler: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
357
357
  booker: ("date_of_birth" | "nationality" | "passport_number" | "passport_expiry")[];
358
358
  };
359
359
  requirements: {
360
360
  fieldKey: "date_of_birth" | "nationality" | "passport_number" | "passport_expiry";
361
- scope: "booking" | "participant" | "lead_traveler" | "booker";
361
+ scope: "booking" | "traveler" | "lead_traveler" | "booker";
362
362
  isRequired: boolean;
363
- perParticipant: boolean;
363
+ perTraveler: boolean;
364
364
  notes: string | null;
365
365
  }[];
366
366
  };
package/dist/schemas.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const productLiteSchema: z.ZodObject<{
14
14
  export type ProductLite = z.infer<typeof productLiteSchema>;
15
15
  export declare const questionTargetSchema: z.ZodEnum<{
16
16
  booking: "booking";
17
- participant: "participant";
17
+ traveler: "traveler";
18
18
  lead_traveler: "lead_traveler";
19
19
  booker: "booker";
20
20
  extra: "extra";
@@ -43,7 +43,7 @@ export declare const bookingQuestionSchema: z.ZodObject<{
43
43
  description: z.ZodNullable<z.ZodString>;
44
44
  target: z.ZodEnum<{
45
45
  booking: "booking";
46
- participant: "participant";
46
+ traveler: "traveler";
47
47
  lead_traveler: "lead_traveler";
48
48
  booker: "booker";
49
49
  extra: "extra";
@@ -98,7 +98,7 @@ export declare const contactFieldKeySchema: z.ZodEnum<{
98
98
  }>;
99
99
  export declare const contactScopeSchema: z.ZodEnum<{
100
100
  booking: "booking";
101
- participant: "participant";
101
+ traveler: "traveler";
102
102
  lead_traveler: "lead_traveler";
103
103
  booker: "booker";
104
104
  }>;
@@ -123,12 +123,12 @@ export declare const contactRequirementSchema: z.ZodObject<{
123
123
  }>;
124
124
  scope: z.ZodEnum<{
125
125
  booking: "booking";
126
- participant: "participant";
126
+ traveler: "traveler";
127
127
  lead_traveler: "lead_traveler";
128
128
  booker: "booker";
129
129
  }>;
130
130
  isRequired: z.ZodBoolean;
131
- perParticipant: z.ZodBoolean;
131
+ perTraveler: z.ZodBoolean;
132
132
  active: z.ZodBoolean;
133
133
  sortOrder: z.ZodNumber;
134
134
  notes: z.ZodNullable<z.ZodString>;
@@ -154,7 +154,7 @@ export declare const bookingQuestionListResponse: z.ZodObject<{
154
154
  description: z.ZodNullable<z.ZodString>;
155
155
  target: z.ZodEnum<{
156
156
  booking: "booking";
157
- participant: "participant";
157
+ traveler: "traveler";
158
158
  lead_traveler: "lead_traveler";
159
159
  booker: "booker";
160
160
  extra: "extra";
@@ -221,12 +221,12 @@ export declare const contactRequirementListResponse: z.ZodObject<{
221
221
  }>;
222
222
  scope: z.ZodEnum<{
223
223
  booking: "booking";
224
- participant: "participant";
224
+ traveler: "traveler";
225
225
  lead_traveler: "lead_traveler";
226
226
  booker: "booker";
227
227
  }>;
228
228
  isRequired: z.ZodBoolean;
229
- perParticipant: z.ZodBoolean;
229
+ perTraveler: z.ZodBoolean;
230
230
  active: z.ZodBoolean;
231
231
  sortOrder: z.ZodNumber;
232
232
  notes: z.ZodNullable<z.ZodString>;
@@ -250,12 +250,12 @@ export declare const publicTransportRequirementSummarySchema: z.ZodObject<{
250
250
  }>;
251
251
  scope: z.ZodEnum<{
252
252
  booking: "booking";
253
- participant: "participant";
253
+ traveler: "traveler";
254
254
  lead_traveler: "lead_traveler";
255
255
  booker: "booker";
256
256
  }>;
257
257
  isRequired: z.ZodBoolean;
258
- perParticipant: z.ZodBoolean;
258
+ perTraveler: z.ZodBoolean;
259
259
  notes: z.ZodNullable<z.ZodString>;
260
260
  }, z.core.$strip>;
261
261
  export declare const publicTransportRequirementsSchema: z.ZodObject<{
@@ -285,7 +285,7 @@ export declare const publicTransportRequirementsSchema: z.ZodObject<{
285
285
  passport_number: "passport_number";
286
286
  passport_expiry: "passport_expiry";
287
287
  }>>;
288
- participant: z.ZodArray<z.ZodEnum<{
288
+ traveler: z.ZodArray<z.ZodEnum<{
289
289
  date_of_birth: "date_of_birth";
290
290
  nationality: "nationality";
291
291
  passport_number: "passport_number";
@@ -307,12 +307,12 @@ export declare const publicTransportRequirementsSchema: z.ZodObject<{
307
307
  }>;
308
308
  scope: z.ZodEnum<{
309
309
  booking: "booking";
310
- participant: "participant";
310
+ traveler: "traveler";
311
311
  lead_traveler: "lead_traveler";
312
312
  booker: "booker";
313
313
  }>;
314
314
  isRequired: z.ZodBoolean;
315
- perParticipant: z.ZodBoolean;
315
+ perTraveler: z.ZodBoolean;
316
316
  notes: z.ZodNullable<z.ZodString>;
317
317
  }, z.core.$strip>>;
318
318
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA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A;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAAuC,CAAA;AAC3E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2C,CAAA;AACnF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAAiD,CAAA;AAC/F,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8C,CAAA;AAEzF,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;iBAMlD,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB5C,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
package/dist/schemas.js CHANGED
@@ -13,7 +13,7 @@ export const productLiteSchema = z.object({
13
13
  });
14
14
  export const questionTargetSchema = z.enum([
15
15
  "booking",
16
- "participant",
16
+ "traveler",
17
17
  "lead_traveler",
18
18
  "booker",
19
19
  "extra",
@@ -72,7 +72,7 @@ export const contactFieldKeySchema = z.enum([
72
72
  "address",
73
73
  "other",
74
74
  ]);
75
- export const contactScopeSchema = z.enum(["booking", "lead_traveler", "participant", "booker"]);
75
+ export const contactScopeSchema = z.enum(["booking", "lead_traveler", "traveler", "booker"]);
76
76
  export const contactRequirementSchema = z.object({
77
77
  id: z.string(),
78
78
  productId: z.string(),
@@ -80,7 +80,7 @@ export const contactRequirementSchema = z.object({
80
80
  fieldKey: contactFieldKeySchema,
81
81
  scope: contactScopeSchema,
82
82
  isRequired: z.boolean(),
83
- perParticipant: z.boolean(),
83
+ perTraveler: z.boolean(),
84
84
  active: z.boolean(),
85
85
  sortOrder: z.number().int(),
86
86
  notes: z.string().nullable(),
@@ -99,7 +99,7 @@ export const publicTransportRequirementSummarySchema = z.object({
99
99
  fieldKey: transportRequirementFieldSchema,
100
100
  scope: contactScopeSchema,
101
101
  isRequired: z.boolean(),
102
- perParticipant: z.boolean(),
102
+ perTraveler: z.boolean(),
103
103
  notes: z.string().nullable(),
104
104
  });
105
105
  export const publicTransportRequirementsSchema = z.object({
@@ -114,7 +114,7 @@ export const publicTransportRequirementsSchema = z.object({
114
114
  fieldsByScope: z.object({
115
115
  booking: z.array(transportRequirementFieldSchema),
116
116
  lead_traveler: z.array(transportRequirementFieldSchema),
117
- participant: z.array(transportRequirementFieldSchema),
117
+ traveler: z.array(transportRequirementFieldSchema),
118
118
  booker: z.array(transportRequirementFieldSchema),
119
119
  }),
120
120
  requirements: z.array(publicTransportRequirementSummarySchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/booking-requirements-react",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "react": "^19.0.0",
36
36
  "react-dom": "^19.0.0",
37
37
  "zod": "^4.0.0",
38
- "@voyantjs/booking-requirements": "0.6.8"
38
+ "@voyantjs/booking-requirements": "0.6.9"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tanstack/react-query": "^5.96.2",
@@ -46,12 +46,12 @@
46
46
  "typescript": "^6.0.2",
47
47
  "vitest": "^4.1.2",
48
48
  "zod": "^4.3.6",
49
- "@voyantjs/booking-requirements": "0.6.8",
50
- "@voyantjs/react": "0.6.8",
49
+ "@voyantjs/booking-requirements": "0.6.9",
50
+ "@voyantjs/react": "0.6.9",
51
51
  "@voyantjs/voyant-typescript-config": "0.1.0"
52
52
  },
53
53
  "dependencies": {
54
- "@voyantjs/react": "0.6.8"
54
+ "@voyantjs/react": "0.6.9"
55
55
  },
56
56
  "files": [
57
57
  "dist"