@voyant-travel/bookings-react 0.156.1 → 0.158.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/admin/index.d.ts
CHANGED
|
@@ -213,11 +213,8 @@ export interface CreateBookingsAdminExtensionOptions {
|
|
|
213
213
|
* The bookings admin contribution (packaged-admin RFC Phase 3,
|
|
214
214
|
* `@voyant-travel/<domain>-ui/admin` convention).
|
|
215
215
|
*
|
|
216
|
-
* NAVIGATION:
|
|
217
|
-
*
|
|
218
|
-
* `@voyant-travel/admin` — so contributing nav entries here would duplicate it.
|
|
219
|
-
* If the base nav ever drops the bookings item, this extension is where the
|
|
220
|
-
* entry moves.
|
|
216
|
+
* NAVIGATION: the general-purpose factory remains neutral. The graph-selected
|
|
217
|
+
* factory below adds the standard operator Bookings item.
|
|
221
218
|
*
|
|
222
219
|
* ROUTES: full implementations (packaged-admin RFC §4.8) — the package-owned
|
|
223
220
|
* search contracts ({@link bookingsIndexSearchSchema} for the list,
|
package/dist/admin/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { defineAdminExtension, withAdminRouteMessagesProvider, } from "@voyant-t
|
|
|
5
5
|
// augmentation (`person.list`, `organization.list`, ...) into this program;
|
|
6
6
|
// this package already peer-depends on `@voyant-travel/relationships-react/ui`.
|
|
7
7
|
import { personDetailBookingsTabSlot } from "@voyant-travel/relationships-react/admin";
|
|
8
|
+
import { CalendarCheck } from "lucide-react";
|
|
8
9
|
import * as React from "react";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
// Lean statics only: the client module (fetcher), query-key types, and the
|
|
@@ -173,11 +174,8 @@ function PersonBookingsWidgetLoader(props) {
|
|
|
173
174
|
* The bookings admin contribution (packaged-admin RFC Phase 3,
|
|
174
175
|
* `@voyant-travel/<domain>-ui/admin` convention).
|
|
175
176
|
*
|
|
176
|
-
* NAVIGATION:
|
|
177
|
-
*
|
|
178
|
-
* `@voyant-travel/admin` — so contributing nav entries here would duplicate it.
|
|
179
|
-
* If the base nav ever drops the bookings item, this extension is where the
|
|
180
|
-
* entry moves.
|
|
177
|
+
* NAVIGATION: the general-purpose factory remains neutral. The graph-selected
|
|
178
|
+
* factory below adds the standard operator Bookings item.
|
|
181
179
|
*
|
|
182
180
|
* ROUTES: full implementations (packaged-admin RFC §4.8) — the package-owned
|
|
183
181
|
* search contracts ({@link bookingsIndexSearchSchema} for the list,
|
|
@@ -314,7 +312,24 @@ export function createBookingsAdminExtension(options = {}) {
|
|
|
314
312
|
});
|
|
315
313
|
}
|
|
316
314
|
export function createSelectedBookingsAdminExtension({ navMessages, }) {
|
|
317
|
-
|
|
315
|
+
const bookingsLabel = navMessages.bookings ?? "Bookings";
|
|
316
|
+
const extension = withAdminRouteMessagesProvider(createBookingsAdminExtension({ labels: { bookings: bookingsLabel } }), () => import("../i18n/index.js").then((module) => ({
|
|
318
317
|
default: module.BookingsUiMessagesProvider,
|
|
319
318
|
})));
|
|
319
|
+
return {
|
|
320
|
+
...extension,
|
|
321
|
+
navigation: [
|
|
322
|
+
{
|
|
323
|
+
order: -100,
|
|
324
|
+
items: [
|
|
325
|
+
{
|
|
326
|
+
id: "bookings",
|
|
327
|
+
title: bookingsLabel,
|
|
328
|
+
url: "/bookings",
|
|
329
|
+
icon: CalendarCheck,
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
};
|
|
320
335
|
}
|
|
@@ -105,7 +105,7 @@ export declare function usePublicBookingSessionFlowMutation(sessionId: string):
|
|
|
105
105
|
availabilitySlotId: string | null;
|
|
106
106
|
quantity: number;
|
|
107
107
|
allocationType: "resource" | "unit" | "pickup";
|
|
108
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
108
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
109
109
|
holdExpiresAt: string | null;
|
|
110
110
|
confirmedAt: string | null;
|
|
111
111
|
releasedAt: string | null;
|
|
@@ -69,7 +69,7 @@ export declare function usePublicBookingSession(sessionId: string | null | undef
|
|
|
69
69
|
availabilitySlotId: string | null;
|
|
70
70
|
quantity: number;
|
|
71
71
|
allocationType: "resource" | "unit" | "pickup";
|
|
72
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
72
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
73
73
|
holdExpiresAt: string | null;
|
|
74
74
|
confirmedAt: string | null;
|
|
75
75
|
releasedAt: string | null;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -1739,7 +1739,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
|
|
|
1739
1739
|
availabilitySlotId: string | null;
|
|
1740
1740
|
quantity: number;
|
|
1741
1741
|
allocationType: "resource" | "unit" | "pickup";
|
|
1742
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
1742
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
1743
1743
|
holdExpiresAt: string | null;
|
|
1744
1744
|
confirmedAt: string | null;
|
|
1745
1745
|
releasedAt: string | null;
|
|
@@ -1835,7 +1835,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
|
|
|
1835
1835
|
availabilitySlotId: string | null;
|
|
1836
1836
|
quantity: number;
|
|
1837
1837
|
allocationType: "resource" | "unit" | "pickup";
|
|
1838
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
1838
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
1839
1839
|
holdExpiresAt: string | null;
|
|
1840
1840
|
confirmedAt: string | null;
|
|
1841
1841
|
releasedAt: string | null;
|
|
@@ -1932,7 +1932,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
|
|
|
1932
1932
|
availabilitySlotId: string | null;
|
|
1933
1933
|
quantity: number;
|
|
1934
1934
|
allocationType: "resource" | "unit" | "pickup";
|
|
1935
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
1935
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
1936
1936
|
holdExpiresAt: string | null;
|
|
1937
1937
|
confirmedAt: string | null;
|
|
1938
1938
|
releasedAt: string | null;
|
|
@@ -2031,7 +2031,7 @@ export declare function getPublicBookingSessionQueryOptions(client: FetchWithVal
|
|
|
2031
2031
|
availabilitySlotId: string | null;
|
|
2032
2032
|
quantity: number;
|
|
2033
2033
|
allocationType: "resource" | "unit" | "pickup";
|
|
2034
|
-
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "
|
|
2034
|
+
status: "cancelled" | "fulfilled" | "confirmed" | "expired" | "released" | "held";
|
|
2035
2035
|
holdExpiresAt: string | null;
|
|
2036
2036
|
confirmedAt: string | null;
|
|
2037
2037
|
releasedAt: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/bookings-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.158.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -150,24 +150,24 @@
|
|
|
150
150
|
"react-dom": "^19.0.0",
|
|
151
151
|
"react-hook-form": "^7.80.0",
|
|
152
152
|
"zod": "^4.0.0",
|
|
153
|
-
"@voyant-travel/accommodations": "^0.
|
|
154
|
-
"@voyant-travel/admin": "^0.
|
|
155
|
-
"@voyant-travel/bookings": "^0.
|
|
156
|
-
"@voyant-travel/catalog": "^0.
|
|
157
|
-
"@voyant-travel/catalog-react": "^0.
|
|
158
|
-
"@voyant-travel/distribution-react": "^0.
|
|
159
|
-
"@voyant-travel/relationships-react": "^0.
|
|
160
|
-
"@voyant-travel/finance": "^0.
|
|
161
|
-
"@voyant-travel/finance-react": "^0.
|
|
162
|
-
"@voyant-travel/identity-react": "^0.
|
|
163
|
-
"@voyant-travel/legal-react": "^0.
|
|
164
|
-
"@voyant-travel/commerce-react": "^0.
|
|
165
|
-
"@voyant-travel/cruises": "^0.
|
|
166
|
-
"@voyant-travel/inventory-react": "^0.
|
|
167
|
-
"@voyant-travel/inventory": "^0.10.
|
|
168
|
-
"@voyant-travel/storefront-react": "^0.
|
|
153
|
+
"@voyant-travel/accommodations": "^0.118.0",
|
|
154
|
+
"@voyant-travel/admin": "^0.124.0",
|
|
155
|
+
"@voyant-travel/bookings": "^0.158.0",
|
|
156
|
+
"@voyant-travel/catalog": "^0.156.0",
|
|
157
|
+
"@voyant-travel/catalog-react": "^0.156.0",
|
|
158
|
+
"@voyant-travel/distribution-react": "^0.148.0",
|
|
159
|
+
"@voyant-travel/relationships-react": "^0.158.0",
|
|
160
|
+
"@voyant-travel/finance": "^0.158.0",
|
|
161
|
+
"@voyant-travel/finance-react": "^0.158.0",
|
|
162
|
+
"@voyant-travel/identity-react": "^0.158.0",
|
|
163
|
+
"@voyant-travel/legal-react": "^0.158.0",
|
|
164
|
+
"@voyant-travel/commerce-react": "^0.40.0",
|
|
165
|
+
"@voyant-travel/cruises": "^0.157.0",
|
|
166
|
+
"@voyant-travel/inventory-react": "^0.40.0",
|
|
167
|
+
"@voyant-travel/inventory": "^0.10.3",
|
|
168
|
+
"@voyant-travel/storefront-react": "^0.160.0",
|
|
169
169
|
"@voyant-travel/ui": "^0.109.1",
|
|
170
|
-
"@voyant-travel/operations-react": "^0.
|
|
170
|
+
"@voyant-travel/operations-react": "^0.39.0"
|
|
171
171
|
},
|
|
172
172
|
"peerDependenciesMeta": {
|
|
173
173
|
"@tanstack/react-table": {
|
|
@@ -233,10 +233,10 @@
|
|
|
233
233
|
},
|
|
234
234
|
"dependencies": {
|
|
235
235
|
"sonner": "^2.0.7",
|
|
236
|
-
"@voyant-travel/catalog-contracts": "^0.
|
|
236
|
+
"@voyant-travel/catalog-contracts": "^0.111.0",
|
|
237
237
|
"@voyant-travel/i18n": "^0.111.1",
|
|
238
238
|
"@voyant-travel/react": "^0.104.2",
|
|
239
|
-
"@voyant-travel/types": "^0.109.
|
|
239
|
+
"@voyant-travel/types": "^0.109.2"
|
|
240
240
|
},
|
|
241
241
|
"devDependencies": {
|
|
242
242
|
"@tanstack/react-query": "^5.101.2",
|
|
@@ -251,26 +251,26 @@
|
|
|
251
251
|
"typescript": "^6.0.3",
|
|
252
252
|
"vitest": "^4.1.9",
|
|
253
253
|
"zod": "^4.4.3",
|
|
254
|
-
"@voyant-travel/accommodations": "^0.
|
|
255
|
-
"@voyant-travel/admin": "^0.
|
|
256
|
-
"@voyant-travel/bookings": "^0.
|
|
257
|
-
"@voyant-travel/catalog": "^0.
|
|
258
|
-
"@voyant-travel/catalog-react": "^0.
|
|
259
|
-
"@voyant-travel/distribution-react": "^0.
|
|
260
|
-
"@voyant-travel/relationships-react": "^0.
|
|
261
|
-
"@voyant-travel/finance": "^0.
|
|
262
|
-
"@voyant-travel/finance-react": "^0.
|
|
263
|
-
"@voyant-travel/identity-react": "^0.
|
|
264
|
-
"@voyant-travel/legal-react": "^0.
|
|
265
|
-
"@voyant-travel/commerce-react": "^0.
|
|
266
|
-
"@voyant-travel/cruises": "^0.
|
|
267
|
-
"@voyant-travel/inventory-react": "^0.
|
|
268
|
-
"@voyant-travel/inventory": "^0.10.
|
|
254
|
+
"@voyant-travel/accommodations": "^0.118.0",
|
|
255
|
+
"@voyant-travel/admin": "^0.124.0",
|
|
256
|
+
"@voyant-travel/bookings": "^0.158.0",
|
|
257
|
+
"@voyant-travel/catalog": "^0.156.0",
|
|
258
|
+
"@voyant-travel/catalog-react": "^0.156.0",
|
|
259
|
+
"@voyant-travel/distribution-react": "^0.148.0",
|
|
260
|
+
"@voyant-travel/relationships-react": "^0.158.0",
|
|
261
|
+
"@voyant-travel/finance": "^0.158.0",
|
|
262
|
+
"@voyant-travel/finance-react": "^0.158.0",
|
|
263
|
+
"@voyant-travel/identity-react": "^0.158.0",
|
|
264
|
+
"@voyant-travel/legal-react": "^0.158.0",
|
|
265
|
+
"@voyant-travel/commerce-react": "^0.40.0",
|
|
266
|
+
"@voyant-travel/cruises": "^0.157.0",
|
|
267
|
+
"@voyant-travel/inventory-react": "^0.40.0",
|
|
268
|
+
"@voyant-travel/inventory": "^0.10.3",
|
|
269
269
|
"@voyant-travel/react": "^0.104.2",
|
|
270
|
-
"@voyant-travel/storefront-react": "^0.
|
|
270
|
+
"@voyant-travel/storefront-react": "^0.160.0",
|
|
271
271
|
"@voyant-travel/ui": "^0.109.1",
|
|
272
272
|
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
273
|
-
"@voyant-travel/operations-react": "^0.
|
|
273
|
+
"@voyant-travel/operations-react": "^0.39.0"
|
|
274
274
|
},
|
|
275
275
|
"files": [
|
|
276
276
|
"dist",
|