@bowlos/reservations 0.1.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/react.cjs ADDED
@@ -0,0 +1,602 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ // src/react.tsx
7
+
8
+ // src/errors.ts
9
+ var BOWLOS_ERROR_CODES = {
10
+ // Gateway front door
11
+ API_KEY_MISSING: "API_KEY_MISSING",
12
+ API_KEY_INVALID: "API_KEY_INVALID",
13
+ ORIGIN_NOT_ALLOWED: "ORIGIN_NOT_ALLOWED",
14
+ RATE_LIMITED: "RATE_LIMITED",
15
+ // Auth
16
+ INVALID_CREDENTIALS: "INVALID_CREDENTIALS",
17
+ PERMISSION_DENIED: "PERMISSION_DENIED",
18
+ SCOPE_REVOKED: "SCOPE_REVOKED",
19
+ NOT_FOUND: "NOT_FOUND",
20
+ // Client-side
21
+ NETWORK_ERROR: "NETWORK_ERROR",
22
+ UNKNOWN: "ERROR"
23
+ };
24
+ var BowlosApiError = class _BowlosApiError extends Error {
25
+ /** Stable, machine-readable code. Branch on this, not on `message`. */
26
+ code;
27
+ /** HTTP status (0 for a network failure before any response). */
28
+ status;
29
+ /** Seconds to wait before retrying — present only on `RATE_LIMITED`. */
30
+ retryAfterSeconds;
31
+ constructor(code, message, status, options = {}) {
32
+ super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
33
+ this.name = "BowlosApiError";
34
+ this.code = code;
35
+ this.status = status;
36
+ this.retryAfterSeconds = options.retryAfterSeconds;
37
+ Object.setPrototypeOf(this, _BowlosApiError.prototype);
38
+ }
39
+ /** Too many requests — caller should back off `retryAfterSeconds`. */
40
+ get isRateLimited() {
41
+ return this.code === BOWLOS_ERROR_CODES.RATE_LIMITED;
42
+ }
43
+ /** Bad/expired login. The session could not be established or has lapsed. */
44
+ get isAuthError() {
45
+ return this.code === BOWLOS_ERROR_CODES.INVALID_CREDENTIALS || this.code === BOWLOS_ERROR_CODES.PERMISSION_DENIED || this.code === BOWLOS_ERROR_CODES.SCOPE_REVOKED;
46
+ }
47
+ /** Wrong/missing API key or a disallowed origin — a site-config problem,
48
+ * not something the end customer can fix. */
49
+ get isConfigError() {
50
+ return this.code === BOWLOS_ERROR_CODES.API_KEY_MISSING || this.code === BOWLOS_ERROR_CODES.API_KEY_INVALID || this.code === BOWLOS_ERROR_CODES.ORIGIN_NOT_ALLOWED;
51
+ }
52
+ };
53
+
54
+ // src/client.ts
55
+ var MemoryTokenStore = class {
56
+ tokens = null;
57
+ get() {
58
+ return this.tokens;
59
+ }
60
+ set(tokens) {
61
+ this.tokens = tokens;
62
+ }
63
+ };
64
+ function isConfigErrorCode(code) {
65
+ return code === BOWLOS_ERROR_CODES.API_KEY_MISSING || code === BOWLOS_ERROR_CODES.API_KEY_INVALID || code === BOWLOS_ERROR_CODES.ORIGIN_NOT_ALLOWED || code === BOWLOS_ERROR_CODES.RATE_LIMITED;
66
+ }
67
+ function looksLikeExpiredSession(status, code) {
68
+ if (isConfigErrorCode(code)) return false;
69
+ return status === 401 || code === BOWLOS_ERROR_CODES.PERMISSION_DENIED || code === BOWLOS_ERROR_CODES.SCOPE_REVOKED;
70
+ }
71
+ var BowlosClient = class {
72
+ apiKey;
73
+ baseUrl;
74
+ store;
75
+ fetchFn;
76
+ constructor(config) {
77
+ this.apiKey = config.apiKey;
78
+ this.baseUrl = config.baseUrl.replace(/\/+$/, "");
79
+ this.store = config.tokenStore ?? new MemoryTokenStore();
80
+ this.fetchFn = config.fetch ?? defaultFetch;
81
+ if (!this.apiKey) throw new Error("BowlosClient: `apiKey` is required.");
82
+ if (!this.baseUrl) throw new Error("BowlosClient: `baseUrl` is required.");
83
+ }
84
+ /** Is there a stored session right now? (Does not validate it server-side.) */
85
+ isAuthenticated() {
86
+ return this.store.get() !== null;
87
+ }
88
+ /** The current token pair, if any (rarely needed directly). */
89
+ getTokens() {
90
+ return this.store.get();
91
+ }
92
+ /**
93
+ * Health + key-validity probe (`GET /ping`). Resolves with the gateway's
94
+ * service info when the API key is accepted; throws a `BowlosApiError` whose
95
+ * `.code` distinguishes the failure (`NETWORK_ERROR`, `API_KEY_INVALID`,
96
+ * `ORIGIN_NOT_ALLOWED`, `RATE_LIMITED`, …). Cheap enough to call on boot, and
97
+ * the basis for `runDoctor`.
98
+ */
99
+ async ping() {
100
+ const { status, body, retryAfterSeconds } = await this.request(
101
+ "ping",
102
+ {},
103
+ this.store.get()?.token,
104
+ "GET"
105
+ );
106
+ const env = body ?? {};
107
+ if (env.ok === true) return env.data;
108
+ const code = env.error?.code ?? (status === 429 ? BOWLOS_ERROR_CODES.RATE_LIMITED : status === 404 ? BOWLOS_ERROR_CODES.NOT_FOUND : BOWLOS_ERROR_CODES.UNKNOWN);
109
+ throw new BowlosApiError(
110
+ code,
111
+ env.error?.message ?? `Health ping failed (HTTP ${status}).`,
112
+ status,
113
+ { retryAfterSeconds: code === BOWLOS_ERROR_CODES.RATE_LIMITED ? retryAfterSeconds : void 0 }
114
+ );
115
+ }
116
+ // ── low-level transport ────────────────────────────────────────────────
117
+ async request(name, args, bearer, method = "POST") {
118
+ const headers = {
119
+ "X-BowlOS-Api-Key": this.apiKey
120
+ };
121
+ if (method !== "GET") headers["Content-Type"] = "application/json";
122
+ if (bearer) headers["Authorization"] = `Bearer ${bearer}`;
123
+ const init = { method, headers };
124
+ if (method !== "GET") init.body = JSON.stringify(args);
125
+ let res;
126
+ try {
127
+ res = await this.fetchFn(`${this.baseUrl}/${name}`, init);
128
+ } catch (cause) {
129
+ throw new BowlosApiError(
130
+ BOWLOS_ERROR_CODES.NETWORK_ERROR,
131
+ `Network request to "${name}" failed.`,
132
+ 0,
133
+ { cause }
134
+ );
135
+ }
136
+ const retryHeader = res.headers.get("Retry-After");
137
+ const retryAfterSeconds = retryHeader ? Number(retryHeader) || void 0 : void 0;
138
+ let body = null;
139
+ const text = await res.text();
140
+ if (text) {
141
+ try {
142
+ body = JSON.parse(text);
143
+ } catch {
144
+ body = { ok: false, error: { code: BOWLOS_ERROR_CODES.NOT_FOUND, message: text.slice(0, 200) } };
145
+ }
146
+ }
147
+ return { status: res.status, body, retryAfterSeconds };
148
+ }
149
+ /**
150
+ * Call a gateway route by name (`POST /api/public/v1/<name>`), returning the
151
+ * unwrapped `data`. Set `{ auth: true }` to attach the bearer token and
152
+ * enable refresh-and-retry on an expired session.
153
+ */
154
+ async call(name, args = {}, opts = {}) {
155
+ return this.callInternal(name, args, opts.auth ?? false, false, opts.method ?? "POST");
156
+ }
157
+ async callInternal(name, args, auth, retried, method) {
158
+ const bearer = auth ? this.store.get()?.token : void 0;
159
+ const { status, body, retryAfterSeconds } = await this.request(name, args, bearer, method);
160
+ const env = body ?? {};
161
+ if (env.ok === true) {
162
+ const data = env.data;
163
+ if (data !== null && typeof data === "object" && "schema_version" in data && "ok" in data) {
164
+ const inner = data;
165
+ if (inner.ok === false) {
166
+ throw new BowlosApiError(
167
+ inner.error?.code ?? BOWLOS_ERROR_CODES.UNKNOWN,
168
+ inner.error?.message ?? `Request to "${name}" failed.`,
169
+ status
170
+ );
171
+ }
172
+ return inner.data;
173
+ }
174
+ return data;
175
+ }
176
+ const code = env.error?.code ?? (status === 429 ? BOWLOS_ERROR_CODES.RATE_LIMITED : status === 404 ? BOWLOS_ERROR_CODES.NOT_FOUND : BOWLOS_ERROR_CODES.UNKNOWN);
177
+ const message = env.error?.message ?? `Request to "${name}" failed (HTTP ${status}).`;
178
+ if (auth && !retried && this.store.get() && looksLikeExpiredSession(status, code)) {
179
+ const refreshed = await this.tryRefresh();
180
+ if (refreshed) return this.callInternal(name, args, auth, true, method);
181
+ }
182
+ throw new BowlosApiError(code, message, status, {
183
+ retryAfterSeconds: code === BOWLOS_ERROR_CODES.RATE_LIMITED ? retryAfterSeconds : void 0
184
+ });
185
+ }
186
+ /** Exchange the stored refresh token for a fresh pair. Clears the session if
187
+ * the refresh token is itself invalid/expired. Returns success. */
188
+ async tryRefresh() {
189
+ const current = this.store.get();
190
+ if (!current?.refreshToken) return false;
191
+ const { status, body } = await this.request("auth/refresh", {
192
+ refreshToken: current.refreshToken
193
+ });
194
+ const env = body ?? {};
195
+ if (status >= 200 && status < 300 && env.ok === true && env.data?.tokens) {
196
+ this.store.set(env.data.tokens);
197
+ return true;
198
+ }
199
+ this.store.set(null);
200
+ return false;
201
+ }
202
+ // ── auth lifecycle ───────────────────────────────────────────────────────
203
+ /** Sign an existing customer in; stores the session on success. */
204
+ async signIn(email, password) {
205
+ const { tokens } = await this.call("auth/signin", { email, password });
206
+ this.store.set(tokens);
207
+ return tokens;
208
+ }
209
+ /** Create a login (the auth half of sign-up); stores the session. Follow with
210
+ * `link()` to attach the customer profile. */
211
+ async signUp(email, password) {
212
+ const { tokens } = await this.call("auth/signup", { email, password });
213
+ this.store.set(tokens);
214
+ return tokens;
215
+ }
216
+ /** Link the signed-in auth user to a customer profile at the brand. */
217
+ async link(profile) {
218
+ return this.call("auth/link", { ...profile }, { auth: true });
219
+ }
220
+ /** End the session (best-effort server call; always clears locally). */
221
+ async signOut() {
222
+ try {
223
+ await this.call("auth/signout", {}, { auth: true });
224
+ } catch {
225
+ } finally {
226
+ this.store.set(null);
227
+ }
228
+ }
229
+ /** Session bootstrap: unauthenticated / authed-no-customer / linked.
230
+ * GET — matches the gateway's `GET /auth/probe` route. */
231
+ async probe() {
232
+ const { state } = await this.call(
233
+ "auth/probe",
234
+ {},
235
+ { auth: true, method: "GET" }
236
+ );
237
+ return state;
238
+ }
239
+ /** The signed-in customer's profile, or null.
240
+ * GET — matches the gateway's `GET /auth/me` route. */
241
+ async me() {
242
+ const { customer } = await this.call(
243
+ "auth/me",
244
+ {},
245
+ { auth: true, method: "GET" }
246
+ );
247
+ return customer;
248
+ }
249
+ };
250
+ var defaultFetch = (input, init) => {
251
+ if (typeof globalThis.fetch !== "function") {
252
+ throw new BowlosApiError(
253
+ BOWLOS_ERROR_CODES.NETWORK_ERROR,
254
+ "No global fetch available. Pass `config.fetch`.",
255
+ 0
256
+ );
257
+ }
258
+ return globalThis.fetch(input, init);
259
+ };
260
+ function createBowlosClient(config) {
261
+ return new BowlosClient(config);
262
+ }
263
+ var BowlosContext = react.createContext(null);
264
+ function BowlosProvider({ client, config, children }) {
265
+ const ref = react.useRef(client ?? null);
266
+ if (!ref.current) {
267
+ if (!config) {
268
+ throw new Error("BowlosProvider requires either a `client` or a `config`.");
269
+ }
270
+ ref.current = createBowlosClient(config);
271
+ }
272
+ return /* @__PURE__ */ jsxRuntime.jsx(BowlosContext.Provider, { value: ref.current, children });
273
+ }
274
+ function useBowlosClient() {
275
+ const client = react.useContext(BowlosContext);
276
+ if (!client) {
277
+ throw new Error("useBowlosClient must be used within a <BowlosProvider>.");
278
+ }
279
+ return client;
280
+ }
281
+ function useAccount() {
282
+ const client = useBowlosClient();
283
+ const [status, setStatus] = react.useState("loading");
284
+ const [customer, setCustomer] = react.useState(null);
285
+ const [error, setError] = react.useState(null);
286
+ const refresh = react.useCallback(async () => {
287
+ try {
288
+ const state = await client.probe();
289
+ setStatus(state);
290
+ setCustomer(state === "linked" ? await client.me() : null);
291
+ setError(null);
292
+ } catch (e) {
293
+ setStatus("unauthenticated");
294
+ setCustomer(null);
295
+ if (e instanceof BowlosApiError) setError(e);
296
+ }
297
+ }, [client]);
298
+ react.useEffect(() => {
299
+ void refresh();
300
+ }, [refresh]);
301
+ const run = react.useCallback(
302
+ async (action) => {
303
+ setError(null);
304
+ try {
305
+ await action();
306
+ await refresh();
307
+ } catch (e) {
308
+ if (e instanceof BowlosApiError) setError(e);
309
+ throw e;
310
+ }
311
+ },
312
+ [refresh]
313
+ );
314
+ const signIn = react.useCallback(
315
+ (email, password) => run(() => client.signIn(email, password)),
316
+ [client, run]
317
+ );
318
+ const signUp = react.useCallback(
319
+ (email, password) => run(() => client.signUp(email, password)),
320
+ [client, run]
321
+ );
322
+ const link = react.useCallback((profile) => run(() => client.link(profile)), [client, run]);
323
+ const signOut = react.useCallback(() => run(() => client.signOut()), [client, run]);
324
+ return { status, customer, error, signIn, signUp, link, signOut, refresh };
325
+ }
326
+ function useBowlosQuery(name, args = {}, options = {}) {
327
+ const client = useBowlosClient();
328
+ const auth = options.auth ?? false;
329
+ const enabled = options.enabled ?? true;
330
+ const [data, setData] = react.useState(null);
331
+ const [error, setError] = react.useState(null);
332
+ const [loading, setLoading] = react.useState(enabled);
333
+ const argsKey = JSON.stringify(args);
334
+ const refetch = react.useCallback(async () => {
335
+ setLoading(true);
336
+ setError(null);
337
+ try {
338
+ const result = await client.call(name, JSON.parse(argsKey), {
339
+ auth
340
+ });
341
+ setData(result);
342
+ } catch (e) {
343
+ if (e instanceof BowlosApiError) setError(e);
344
+ setData(null);
345
+ } finally {
346
+ setLoading(false);
347
+ }
348
+ }, [client, name, argsKey, auth]);
349
+ react.useEffect(() => {
350
+ if (enabled) void refetch();
351
+ }, [enabled, refetch]);
352
+ return { data, error, loading, refetch };
353
+ }
354
+
355
+ // src/hooks.tsx
356
+ function useAvailability(args, options) {
357
+ return useBowlosQuery("checkAvailability", args, options);
358
+ }
359
+ function useBookingPreview(args, options) {
360
+ return useBowlosQuery("bookingPreview", args, options);
361
+ }
362
+ function useMyReservations(args, options) {
363
+ return useBowlosQuery("listMyReservations", args, { ...options, auth: true });
364
+ }
365
+ function useMyReservationDetail(args, options) {
366
+ return useBowlosQuery("getMyReservationDetail", args, { ...options, auth: true });
367
+ }
368
+ function useMyMemberships(args, options) {
369
+ return useBowlosQuery("listMyMemberships", args, { ...options, auth: true });
370
+ }
371
+ function useMyMembershipDetail(args, options) {
372
+ return useBowlosQuery("getMyMembershipDetail", args, { ...options, auth: true });
373
+ }
374
+ function useMyLoyalty(args, options) {
375
+ return useBowlosQuery("getMyLoyalty", args, { ...options, auth: true });
376
+ }
377
+ function useMyCredits(args, options) {
378
+ return useBowlosQuery("listMyCredits", args, { ...options, auth: true });
379
+ }
380
+ function useMyPasses(args, options) {
381
+ return useBowlosQuery("listMyPasses", args, { ...options, auth: true });
382
+ }
383
+ function useFlashSale(args, options) {
384
+ return useBowlosQuery("getPublicFlashSaleBySlug", args, { ...options, auth: true });
385
+ }
386
+ function useFlashSaleBookingOptions(args, options) {
387
+ return useBowlosQuery("getFlashSaleBookingOptions", args, { ...options, auth: true });
388
+ }
389
+
390
+ // src/data.ts
391
+ function generateIdempotencyKey() {
392
+ if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
393
+ return crypto.randomUUID();
394
+ }
395
+ return `idem_${Date.now()}_${Math.random().toString(36).slice(2, 10)}`;
396
+ }
397
+ function createBooking(client, args) {
398
+ const idempotencyKey = args.idempotencyKey ?? generateIdempotencyKey();
399
+ return client.call(
400
+ "createAnonymousBooking",
401
+ { ...args, idempotencyKey },
402
+ { auth: true }
403
+ );
404
+ }
405
+ function createCheckoutPaymentIntent(client, refToken) {
406
+ return client.call(
407
+ "createCheckoutPaymentIntent",
408
+ { refToken },
409
+ { auth: true }
410
+ );
411
+ }
412
+ function getCheckoutStatus(client, refToken) {
413
+ return client.call("getCheckoutStatus", { refToken }, { auth: true });
414
+ }
415
+ function abandonCheckout(client, refToken) {
416
+ return client.call("abandonCheckout", { refToken }, { auth: true });
417
+ }
418
+
419
+ // src/use-booking-flow.tsx
420
+ var DEFAULT_POLL_MS = 2500;
421
+ function useBookingFlow() {
422
+ const client = useBowlosClient();
423
+ const [status, setStatus] = react.useState("idle");
424
+ const [hold, setHold] = react.useState(null);
425
+ const [refToken, setRefToken] = react.useState(null);
426
+ const [paymentIntent, setPaymentIntent] = react.useState(null);
427
+ const [reservation, setReservation] = react.useState(null);
428
+ const [error, setError] = react.useState(null);
429
+ const refTokenRef = react.useRef(null);
430
+ const pollRef = react.useRef(null);
431
+ const stopPolling = react.useCallback(() => {
432
+ if (pollRef.current !== null) {
433
+ clearInterval(pollRef.current);
434
+ pollRef.current = null;
435
+ }
436
+ }, []);
437
+ react.useEffect(() => stopPolling, [stopPolling]);
438
+ const reset = react.useCallback(() => {
439
+ stopPolling();
440
+ refTokenRef.current = null;
441
+ setRefToken(null);
442
+ setHold(null);
443
+ setPaymentIntent(null);
444
+ setReservation(null);
445
+ setError(null);
446
+ setStatus("idle");
447
+ }, [stopPolling]);
448
+ const applyStatus = react.useCallback(
449
+ (s) => {
450
+ switch (s.status) {
451
+ case "paid_materialized":
452
+ setReservation({
453
+ reservationId: s.reservationId,
454
+ reservationDisplayId: s.reservationDisplayId
455
+ });
456
+ setStatus("confirmed");
457
+ stopPolling();
458
+ break;
459
+ case "expired":
460
+ setStatus("expired");
461
+ stopPolling();
462
+ break;
463
+ case "abandoned":
464
+ setStatus("abandoned");
465
+ stopPolling();
466
+ break;
467
+ case "payment_failed_retryable":
468
+ setStatus("failed");
469
+ stopPolling();
470
+ break;
471
+ case "not_found":
472
+ setError(new BowlosApiError(BOWLOS_ERROR_CODES.NOT_FOUND, "Checkout not found.", 404));
473
+ setStatus("error");
474
+ stopPolling();
475
+ break;
476
+ }
477
+ },
478
+ [stopPolling]
479
+ );
480
+ const startHold = react.useCallback(
481
+ async (args) => {
482
+ stopPolling();
483
+ setError(null);
484
+ setPaymentIntent(null);
485
+ setReservation(null);
486
+ setStatus("holding");
487
+ try {
488
+ const h = await createBooking(client, args);
489
+ setHold(h);
490
+ const rt = typeof h.checkoutRefToken === "string" ? h.checkoutRefToken : null;
491
+ refTokenRef.current = rt;
492
+ setRefToken(rt);
493
+ if (!h.requiresPayment) {
494
+ setReservation({
495
+ reservationId: h.reservationId ?? null,
496
+ reservationDisplayId: h.reservationDisplayId ?? null
497
+ });
498
+ setStatus("confirmed");
499
+ } else if (rt) {
500
+ setStatus("held");
501
+ } else {
502
+ setError(
503
+ new BowlosApiError(
504
+ "UNSUPPORTED_BOOKING_PATH",
505
+ "This booking requires payment but no checkout hold was returned.",
506
+ 0
507
+ )
508
+ );
509
+ setStatus("error");
510
+ }
511
+ } catch (e) {
512
+ if (e instanceof BowlosApiError) setError(e);
513
+ setStatus("error");
514
+ }
515
+ },
516
+ [client, stopPolling]
517
+ );
518
+ const preparePayment = react.useCallback(async () => {
519
+ const rt = refTokenRef.current;
520
+ if (!rt) return null;
521
+ setError(null);
522
+ setStatus("preparingPayment");
523
+ try {
524
+ const pi = await createCheckoutPaymentIntent(client, rt);
525
+ setPaymentIntent(pi);
526
+ setStatus("awaitingPayment");
527
+ return pi;
528
+ } catch (e) {
529
+ if (e instanceof BowlosApiError) setError(e);
530
+ setStatus("error");
531
+ return null;
532
+ }
533
+ }, [client]);
534
+ const pollStatus = react.useCallback(async () => {
535
+ const rt = refTokenRef.current;
536
+ if (!rt) return null;
537
+ try {
538
+ const s = await getCheckoutStatus(client, rt);
539
+ applyStatus(s);
540
+ return s;
541
+ } catch (e) {
542
+ if (e instanceof BowlosApiError) setError(e);
543
+ return null;
544
+ }
545
+ }, [client, applyStatus]);
546
+ const startPolling = react.useCallback(
547
+ (intervalMs = DEFAULT_POLL_MS) => {
548
+ stopPolling();
549
+ void pollStatus();
550
+ pollRef.current = setInterval(() => {
551
+ void pollStatus();
552
+ }, intervalMs);
553
+ },
554
+ [pollStatus, stopPolling]
555
+ );
556
+ const abandon = react.useCallback(async () => {
557
+ stopPolling();
558
+ const rt = refTokenRef.current;
559
+ if (rt) {
560
+ try {
561
+ await abandonCheckout(client, rt);
562
+ } catch {
563
+ }
564
+ }
565
+ setStatus("abandoned");
566
+ }, [client, stopPolling]);
567
+ return {
568
+ status,
569
+ hold,
570
+ refToken,
571
+ paymentIntent,
572
+ reservation,
573
+ requiresPayment: hold ? hold.requiresPayment : null,
574
+ error,
575
+ startHold,
576
+ preparePayment,
577
+ pollStatus,
578
+ startPolling,
579
+ stopPolling,
580
+ abandon,
581
+ reset
582
+ };
583
+ }
584
+
585
+ exports.BowlosProvider = BowlosProvider;
586
+ exports.useAccount = useAccount;
587
+ exports.useAvailability = useAvailability;
588
+ exports.useBookingFlow = useBookingFlow;
589
+ exports.useBookingPreview = useBookingPreview;
590
+ exports.useBowlosClient = useBowlosClient;
591
+ exports.useBowlosQuery = useBowlosQuery;
592
+ exports.useFlashSale = useFlashSale;
593
+ exports.useFlashSaleBookingOptions = useFlashSaleBookingOptions;
594
+ exports.useMyCredits = useMyCredits;
595
+ exports.useMyLoyalty = useMyLoyalty;
596
+ exports.useMyMembershipDetail = useMyMembershipDetail;
597
+ exports.useMyMemberships = useMyMemberships;
598
+ exports.useMyPasses = useMyPasses;
599
+ exports.useMyReservationDetail = useMyReservationDetail;
600
+ exports.useMyReservations = useMyReservations;
601
+ //# sourceMappingURL=react.cjs.map
602
+ //# sourceMappingURL=react.cjs.map