@voyant-travel/bookings-react 0.137.3 → 0.137.4

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.
@@ -177,7 +177,7 @@ export type BookingNewSearchParams = z.infer<typeof bookingNewSearchSchema>;
177
177
  * only the fields their selection actually carries.
178
178
  */
179
179
  export declare const bookingJourneySearchSchema: z.ZodObject<{
180
- sourceKind: z.ZodString;
180
+ sourceKind: z.ZodOptional<z.ZodString>;
181
181
  sourceConnectionId: z.ZodOptional<z.ZodString>;
182
182
  sourceRef: z.ZodOptional<z.ZodString>;
183
183
  departureId: z.ZodOptional<z.ZodString>;
@@ -138,7 +138,7 @@ export const bookingNewSearchSchema = z.object({
138
138
  * only the fields their selection actually carries.
139
139
  */
140
140
  export const bookingJourneySearchSchema = z.object({
141
- sourceKind: z.string().min(1),
141
+ sourceKind: z.string().min(1).optional(),
142
142
  sourceConnectionId: z.string().optional(),
143
143
  sourceRef: z.string().optional(),
144
144
  departureId: z.string().optional(),
@@ -12,7 +12,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
12
12
  productExtraId: string;
13
13
  optionExtraConfigId?: string | null | undefined;
14
14
  status?: "selected" | "cancelled" | "fulfilled" | "no_show" | undefined;
15
- collectionStatus?: "not_required" | "pending" | "collected" | "waived" | "refunded" | undefined;
15
+ collectionStatus?: "pending" | "not_required" | "collected" | "waived" | "refunded" | undefined;
16
16
  collectionCurrency?: string | null | undefined;
17
17
  collectionAmountCents?: number | null | undefined;
18
18
  notes?: string | null | undefined;
@@ -27,7 +27,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
27
27
  productExtraId: string;
28
28
  optionExtraConfigId?: string | null | undefined;
29
29
  status?: "selected" | "cancelled" | "fulfilled" | "no_show" | undefined;
30
- collectionStatus?: "not_required" | "pending" | "collected" | "waived" | "refunded" | undefined;
30
+ collectionStatus?: "pending" | "not_required" | "collected" | "waived" | "refunded" | undefined;
31
31
  collectionCurrency?: string | null | undefined;
32
32
  collectionAmountCents?: number | null | undefined;
33
33
  notes?: string | null | undefined;
@@ -39,7 +39,7 @@ export declare function useSlotExtraManifestMutation(slotId: string): {
39
39
  }, Error, {
40
40
  productExtraId: string;
41
41
  travelerIds: string[];
42
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
42
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
43
43
  collectionCurrency?: string | null | undefined;
44
44
  collectionAmountCents?: number | null | undefined;
45
45
  notes?: string | null | undefined;
@@ -55,7 +55,7 @@ export declare function useSlotExtraManifest(slotId: string | null | undefined,
55
55
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
56
56
  selected: boolean;
57
57
  collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
58
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
58
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
59
59
  collectionCurrency: string | null;
60
60
  collectionAmountCents: number | null;
61
61
  collectedAt: string | null;
@@ -243,7 +243,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
243
243
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
244
244
  selected: boolean;
245
245
  collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
246
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
246
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
247
247
  collectionCurrency: string | null;
248
248
  collectionAmountCents: number | null;
249
249
  collectedAt: string | null;
@@ -307,7 +307,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
307
307
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
308
308
  selected: boolean;
309
309
  collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
310
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
310
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
311
311
  collectionCurrency: string | null;
312
312
  collectionAmountCents: number | null;
313
313
  collectedAt: string | null;
@@ -372,7 +372,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
372
372
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
373
373
  selected: boolean;
374
374
  collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
375
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
375
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
376
376
  collectionCurrency: string | null;
377
377
  collectionAmountCents: number | null;
378
378
  collectedAt: string | null;
@@ -439,7 +439,7 @@ export declare function getSlotExtraManifestQueryOptions(client: FetchWithValida
439
439
  status: "selected" | "cancelled" | "fulfilled" | "no_show";
440
440
  selected: boolean;
441
441
  collectionMode: "cash_on_trip" | "external" | "included" | "none" | "booking_total";
442
- collectionStatus: "not_required" | "pending" | "collected" | "waived" | "refunded";
442
+ collectionStatus: "pending" | "not_required" | "collected" | "waived" | "refunded";
443
443
  collectionCurrency: string | null;
444
444
  collectionAmountCents: number | null;
445
445
  collectedAt: string | null;
@@ -175,8 +175,8 @@ export declare const slotExtraManifestSelectionSchema: z.ZodObject<{
175
175
  booking_total: "booking_total";
176
176
  }>;
177
177
  collectionStatus: z.ZodEnum<{
178
- not_required: "not_required";
179
178
  pending: "pending";
179
+ not_required: "not_required";
180
180
  collected: "collected";
181
181
  waived: "waived";
182
182
  refunded: "refunded";
@@ -278,8 +278,8 @@ export declare const slotExtraManifestSchema: z.ZodObject<{
278
278
  booking_total: "booking_total";
279
279
  }>;
280
280
  collectionStatus: z.ZodEnum<{
281
- not_required: "not_required";
282
281
  pending: "pending";
282
+ not_required: "not_required";
283
283
  collected: "collected";
284
284
  waived: "waived";
285
285
  refunded: "refunded";
@@ -383,8 +383,8 @@ export declare const slotExtraManifestResponse: z.ZodObject<{
383
383
  booking_total: "booking_total";
384
384
  }>;
385
385
  collectionStatus: z.ZodEnum<{
386
- not_required: "not_required";
387
386
  pending: "pending";
387
+ not_required: "not_required";
388
388
  collected: "collected";
389
389
  waived: "waived";
390
390
  refunded: "refunded";
@@ -18,7 +18,7 @@ export declare function useBookingActionLedger(bookingId: string | null | undefi
18
18
  actionVersion: string;
19
19
  actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
20
20
  status: "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "superseded";
21
- evaluatedRisk: "low" | "medium" | "high" | "critical";
21
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
22
22
  actorType: string | null;
23
23
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
24
24
  principalId: string;
@@ -16,7 +16,7 @@ export declare function useSupplierStatusMutation(bookingId: string): {
16
16
  bookingId: string;
17
17
  supplierServiceId: string | null;
18
18
  serviceName: string;
19
- status: "cancelled" | "pending" | "confirmed" | "rejected";
19
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
20
20
  supplierReference: string | null;
21
21
  costCurrency: string;
22
22
  costAmountCents: number;
@@ -30,7 +30,7 @@ export declare function useSupplierStatusMutation(bookingId: string): {
30
30
  bookingId: string;
31
31
  supplierServiceId: string | null;
32
32
  serviceName: string;
33
- status: "cancelled" | "pending" | "confirmed" | "rejected";
33
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
34
34
  supplierReference: string | null;
35
35
  costCurrency: string;
36
36
  costAmountCents: number;
@@ -7,7 +7,7 @@ export declare function useSupplierStatuses(bookingId: string | null | undefined
7
7
  bookingId: string;
8
8
  supplierServiceId: string | null;
9
9
  serviceName: string;
10
- status: "cancelled" | "pending" | "confirmed" | "rejected";
10
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
11
11
  supplierReference: string | null;
12
12
  costCurrency: string;
13
13
  costAmountCents: number;
@@ -1165,7 +1165,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
1165
1165
  bookingId: string;
1166
1166
  supplierServiceId: string | null;
1167
1167
  serviceName: string;
1168
- status: "cancelled" | "pending" | "confirmed" | "rejected";
1168
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
1169
1169
  supplierReference: string | null;
1170
1170
  costCurrency: string;
1171
1171
  costAmountCents: number;
@@ -1180,7 +1180,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
1180
1180
  bookingId: string;
1181
1181
  supplierServiceId: string | null;
1182
1182
  serviceName: string;
1183
- status: "cancelled" | "pending" | "confirmed" | "rejected";
1183
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
1184
1184
  supplierReference: string | null;
1185
1185
  costCurrency: string;
1186
1186
  costAmountCents: number;
@@ -1196,7 +1196,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
1196
1196
  bookingId: string;
1197
1197
  supplierServiceId: string | null;
1198
1198
  serviceName: string;
1199
- status: "cancelled" | "pending" | "confirmed" | "rejected";
1199
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
1200
1200
  supplierReference: string | null;
1201
1201
  costCurrency: string;
1202
1202
  costAmountCents: number;
@@ -1214,7 +1214,7 @@ export declare function getSupplierStatusesQueryOptions(client: FetchWithValidat
1214
1214
  bookingId: string;
1215
1215
  supplierServiceId: string | null;
1216
1216
  serviceName: string;
1217
- status: "cancelled" | "pending" | "confirmed" | "rejected";
1217
+ status: "pending" | "cancelled" | "confirmed" | "rejected";
1218
1218
  supplierReference: string | null;
1219
1219
  costCurrency: string;
1220
1220
  costAmountCents: number;
@@ -10,7 +10,7 @@ export declare function useBookingQuestions(options?: UseBookingQuestionsOptions
10
10
  label: string;
11
11
  description: string | null;
12
12
  target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
13
- fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "datetime" | "single_select" | "multi_select" | "country";
13
+ fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
14
14
  placeholder: string | null;
15
15
  helpText: string | null;
16
16
  isRequired: boolean;
@@ -132,7 +132,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
132
132
  label: string;
133
133
  description: string | null;
134
134
  target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
135
- fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "datetime" | "single_select" | "multi_select" | "country";
135
+ fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
136
136
  placeholder: string | null;
137
137
  helpText: string | null;
138
138
  isRequired: boolean;
@@ -150,7 +150,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
150
150
  label: string;
151
151
  description: string | null;
152
152
  target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
153
- fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "datetime" | "single_select" | "multi_select" | "country";
153
+ fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
154
154
  placeholder: string | null;
155
155
  helpText: string | null;
156
156
  isRequired: boolean;
@@ -169,7 +169,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
169
169
  label: string;
170
170
  description: string | null;
171
171
  target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
172
- fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "datetime" | "single_select" | "multi_select" | "country";
172
+ fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
173
173
  placeholder: string | null;
174
174
  helpText: string | null;
175
175
  isRequired: boolean;
@@ -190,7 +190,7 @@ export declare function getBookingQuestionsQueryOptions(client: FetchWithValidat
190
190
  label: string;
191
191
  description: string | null;
192
192
  target: "extra" | "service" | "traveler" | "booking" | "lead_traveler" | "booker";
193
- fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "datetime" | "single_select" | "multi_select" | "country";
193
+ fieldType: "number" | "boolean" | "date" | "other" | "file" | "email" | "phone" | "textarea" | "text" | "single_select" | "multi_select" | "datetime" | "country";
194
194
  placeholder: string | null;
195
195
  helpText: string | null;
196
196
  isRequired: boolean;
@@ -26,9 +26,9 @@ export declare const questionFieldTypeSchema: z.ZodEnum<{
26
26
  phone: "phone";
27
27
  textarea: "textarea";
28
28
  text: "text";
29
- datetime: "datetime";
30
29
  single_select: "single_select";
31
30
  multi_select: "multi_select";
31
+ datetime: "datetime";
32
32
  country: "country";
33
33
  }>;
34
34
  export declare const bookingQuestionSchema: z.ZodObject<{
@@ -55,9 +55,9 @@ export declare const bookingQuestionSchema: z.ZodObject<{
55
55
  phone: "phone";
56
56
  textarea: "textarea";
57
57
  text: "text";
58
- datetime: "datetime";
59
58
  single_select: "single_select";
60
59
  multi_select: "multi_select";
60
+ datetime: "datetime";
61
61
  country: "country";
62
62
  }>;
63
63
  placeholder: z.ZodNullable<z.ZodString>;
@@ -166,9 +166,9 @@ export declare const bookingQuestionListResponse: z.ZodObject<{
166
166
  phone: "phone";
167
167
  textarea: "textarea";
168
168
  text: "text";
169
- datetime: "datetime";
170
169
  single_select: "single_select";
171
170
  multi_select: "multi_select";
171
+ datetime: "datetime";
172
172
  country: "country";
173
173
  }>;
174
174
  placeholder: z.ZodNullable<z.ZodString>;
package/dist/schemas.d.ts CHANGED
@@ -22,8 +22,8 @@ export declare const bookingStatusSchema: z.ZodEnum<{
22
22
  }>;
23
23
  export type BookingStatus = z.infer<typeof bookingStatusSchema>;
24
24
  export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
25
- cancelled: "cancelled";
26
25
  pending: "pending";
26
+ cancelled: "cancelled";
27
27
  confirmed: "confirmed";
28
28
  rejected: "rejected";
29
29
  }>;
@@ -277,8 +277,8 @@ export declare const bookingSupplierStatusRecordSchema: z.ZodObject<{
277
277
  supplierServiceId: z.ZodNullable<z.ZodString>;
278
278
  serviceName: z.ZodString;
279
279
  status: z.ZodEnum<{
280
- cancelled: "cancelled";
281
280
  pending: "pending";
281
+ cancelled: "cancelled";
282
282
  confirmed: "confirmed";
283
283
  rejected: "rejected";
284
284
  }>;
@@ -1302,8 +1302,8 @@ export declare const bookingSupplierStatusesResponse: z.ZodObject<{
1302
1302
  supplierServiceId: z.ZodNullable<z.ZodString>;
1303
1303
  serviceName: z.ZodString;
1304
1304
  status: z.ZodEnum<{
1305
- cancelled: "cancelled";
1306
1305
  pending: "pending";
1306
+ cancelled: "cancelled";
1307
1307
  confirmed: "confirmed";
1308
1308
  rejected: "rejected";
1309
1309
  }>;
@@ -1847,9 +1847,9 @@ export declare const bookingActionLedgerStatusSchema: z.ZodEnum<{
1847
1847
  superseded: "superseded";
1848
1848
  }>;
1849
1849
  export declare const bookingActionLedgerRiskSchema: z.ZodEnum<{
1850
+ high: "high";
1850
1851
  low: "low";
1851
1852
  medium: "medium";
1852
- high: "high";
1853
1853
  critical: "critical";
1854
1854
  }>;
1855
1855
  export declare const bookingActionLedgerPrincipalTypeSchema: z.ZodEnum<{
@@ -1890,9 +1890,9 @@ export declare const bookingActionLedgerEntrySchema: z.ZodObject<{
1890
1890
  superseded: "superseded";
1891
1891
  }>;
1892
1892
  evaluatedRisk: z.ZodEnum<{
1893
+ high: "high";
1893
1894
  low: "low";
1894
1895
  medium: "medium";
1895
- high: "high";
1896
1896
  critical: "critical";
1897
1897
  }>;
1898
1898
  actorType: z.ZodNullable<z.ZodString>;
@@ -1980,9 +1980,9 @@ export declare const bookingActionLedgerListResponse: z.ZodObject<{
1980
1980
  superseded: "superseded";
1981
1981
  }>;
1982
1982
  evaluatedRisk: z.ZodEnum<{
1983
+ high: "high";
1983
1984
  low: "low";
1984
1985
  medium: "medium";
1985
- high: "high";
1986
1986
  critical: "critical";
1987
1987
  }>;
1988
1988
  actorType: z.ZodNullable<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/bookings-react",
3
- "version": "0.137.3",
3
+ "version": "0.137.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -145,18 +145,18 @@
145
145
  "react-dom": "^19.0.0",
146
146
  "react-hook-form": "^7.80.0",
147
147
  "zod": "^4.0.0",
148
- "@voyant-travel/bookings": "^0.137.3",
149
- "@voyant-travel/admin": "^0.115.3",
150
- "@voyant-travel/catalog-react": "^0.135.2",
151
- "@voyant-travel/relationships-react": "^0.137.1",
148
+ "@voyant-travel/bookings": "^0.137.4",
149
+ "@voyant-travel/catalog-react": "^0.135.3",
152
150
  "@voyant-travel/finance-react": "^0.137.3",
153
151
  "@voyant-travel/distribution-react": "^0.127.2",
152
+ "@voyant-travel/admin": "^0.115.3",
154
153
  "@voyant-travel/identity-react": "^0.137.1",
154
+ "@voyant-travel/relationships-react": "^0.137.1",
155
155
  "@voyant-travel/legal-react": "^0.137.4",
156
156
  "@voyant-travel/commerce-react": "^0.19.0",
157
- "@voyant-travel/inventory-react": "^0.19.2",
157
+ "@voyant-travel/ui": "^0.108.4",
158
158
  "@voyant-travel/operations-react": "^0.18.0",
159
- "@voyant-travel/ui": "^0.108.3"
159
+ "@voyant-travel/inventory-react": "^0.19.2"
160
160
  },
161
161
  "peerDependenciesMeta": {
162
162
  "@tanstack/react-table": {
@@ -204,10 +204,10 @@
204
204
  },
205
205
  "dependencies": {
206
206
  "sonner": "^2.0.7",
207
- "@voyant-travel/i18n": "^0.109.0",
207
+ "@voyant-travel/catalog-contracts": "^0.108.0",
208
208
  "@voyant-travel/react": "^0.104.1",
209
- "@voyant-travel/types": "^0.106.1",
210
- "@voyant-travel/catalog-contracts": "^0.108.0"
209
+ "@voyant-travel/i18n": "^0.109.0",
210
+ "@voyant-travel/types": "^0.106.1"
211
211
  },
212
212
  "devDependencies": {
213
213
  "@tanstack/react-query": "^5.101.2",
@@ -223,19 +223,19 @@
223
223
  "vitest": "^4.1.9",
224
224
  "zod": "^4.4.3",
225
225
  "@voyant-travel/admin": "^0.115.3",
226
- "@voyant-travel/bookings": "^0.137.3",
226
+ "@voyant-travel/bookings": "^0.137.4",
227
+ "@voyant-travel/catalog-react": "^0.135.3",
227
228
  "@voyant-travel/relationships-react": "^0.137.1",
228
- "@voyant-travel/identity-react": "^0.137.1",
229
- "@voyant-travel/distribution-react": "^0.127.2",
230
229
  "@voyant-travel/finance-react": "^0.137.3",
230
+ "@voyant-travel/distribution-react": "^0.127.2",
231
+ "@voyant-travel/identity-react": "^0.137.1",
231
232
  "@voyant-travel/commerce-react": "^0.19.0",
232
- "@voyant-travel/catalog-react": "^0.135.2",
233
233
  "@voyant-travel/legal-react": "^0.137.4",
234
234
  "@voyant-travel/react": "^0.104.1",
235
235
  "@voyant-travel/inventory-react": "^0.19.2",
236
- "@voyant-travel/ui": "^0.108.3",
237
236
  "@voyant-travel/voyant-typescript-config": "^0.1.0",
238
- "@voyant-travel/operations-react": "^0.18.0"
237
+ "@voyant-travel/operations-react": "^0.18.0",
238
+ "@voyant-travel/ui": "^0.108.4"
239
239
  },
240
240
  "files": [
241
241
  "dist",