@bowlos/reservations 0.34.0 → 0.35.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/HEADLESS.md +14 -1
- package/README.md +9 -0
- package/dist/{account-CsCusw5Z.d.ts → account-BJ5UjC0r.d.ts} +1 -1
- package/dist/{account-Di8nktqp.d.cts → account-QoFg8-i1.d.cts} +1 -1
- package/dist/{catalog-DT-ePirK.d.ts → catalog-CGitz1PG.d.ts} +1 -1
- package/dist/{catalog-DdvLcOrs.d.cts → catalog-p9cwB6Qv.d.cts} +1 -1
- package/dist/{chunk-CAXGTKJQ.js → chunk-MMSVM3QS.js} +3 -3
- package/dist/{chunk-CAXGTKJQ.js.map → chunk-MMSVM3QS.js.map} +1 -1
- package/dist/{chunk-EQH5HDYQ.js → chunk-SMPDCDMB.js} +3 -3
- package/dist/chunk-SMPDCDMB.js.map +1 -0
- package/dist/{chunk-GIAJQPMM.js → chunk-UN5E6UEZ.js} +2 -2
- package/dist/{chunk-GIAJQPMM.js.map → chunk-UN5E6UEZ.js.map} +1 -1
- package/dist/components.cjs +14 -5
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +4 -4
- package/dist/components.d.ts +4 -4
- package/dist/components.js +16 -7
- package/dist/components.js.map +1 -1
- package/dist/{data-BaHVz6fa.d.cts → data-qw8P3JW3.d.cts} +22 -2
- package/dist/{data-BaHVz6fa.d.ts → data-qw8P3JW3.d.ts} +22 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/payments.d.cts +1 -1
- package/dist/payments.d.ts +1 -1
- package/dist/{react-DImwA9C9.d.ts → react-C2V1kXnO.d.ts} +2 -2
- package/dist/{react-DK1elmLQ.d.cts → react-DtncBQ3b.d.cts} +2 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +6 -6
- package/dist/react.d.ts +6 -6
- package/dist/react.js +3 -3
- package/package.json +1 -1
- package/templates/center-site/app/catalog/page.tsx +8 -10
- package/templates/center-site/package.json +1 -1
- package/dist/chunk-EQH5HDYQ.js.map +0 -1
|
@@ -178,6 +178,14 @@ type AvailabilityArgs = {
|
|
|
178
178
|
interface AvailabilityResult {
|
|
179
179
|
totalUnits: number;
|
|
180
180
|
busyUnitIds: string[];
|
|
181
|
+
/** Operator-configured noun for a bookable unit (a lane/room/bay), both
|
|
182
|
+
* forms so you pick by count ("1 lane" vs "2 lanes"). Label it
|
|
183
|
+
* "available"/"open", never "free". Optional — older gateways omit it;
|
|
184
|
+
* fall back to "lane"/"lanes". Added v0.35.0. */
|
|
185
|
+
unitNoun?: {
|
|
186
|
+
singular: string;
|
|
187
|
+
plural: string;
|
|
188
|
+
};
|
|
181
189
|
}
|
|
182
190
|
type PricingMode = "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
183
191
|
type BookingAddonSelection = {
|
|
@@ -277,9 +285,18 @@ interface BookingQuote {
|
|
|
277
285
|
}>;
|
|
278
286
|
taxTotalCents: number;
|
|
279
287
|
}>;
|
|
288
|
+
/** Operator-configured noun for this booking's count, resolved by pricing
|
|
289
|
+
* mode (unit → lane/room, per-person → bowler/guest, per-game → game).
|
|
290
|
+
* Both forms so you render "{count} {singular|plural}" — e.g. "1 room",
|
|
291
|
+
* "2 rooms" — instead of hardcoding "lane"/"lanes". Optional — older
|
|
292
|
+
* gateways omit it; fall back to a sensible default. Added v0.35.0. */
|
|
293
|
+
unitNoun?: {
|
|
294
|
+
singular: string;
|
|
295
|
+
plural: string;
|
|
296
|
+
};
|
|
280
297
|
[key: string]: unknown;
|
|
281
298
|
}
|
|
282
|
-
/**
|
|
299
|
+
/** Available (unoccupied) units for a product/date/time window (anonymous). */
|
|
283
300
|
declare function checkAvailability(client: BowlosClient, args: AvailabilityArgs): Promise<AvailabilityResult>;
|
|
284
301
|
/** Authoritative price quote for the chosen inputs. Anonymous by default
|
|
285
302
|
* (the center's standard online price). Pass `{ auth: true }` when the
|
|
@@ -309,7 +326,10 @@ type StartTimesArgs = {
|
|
|
309
326
|
* within operating hours, past the booking buffer, and backed by a real price
|
|
310
327
|
* plan (same pricing engine the quote uses). Anonymous-callable. */
|
|
311
328
|
declare function listStartTimes(client: BowlosClient, args: StartTimesArgs): Promise<number[]>;
|
|
312
|
-
/** Convenience:
|
|
329
|
+
/** Convenience: available units = total minus the busy set (never negative).
|
|
330
|
+
* This is an availability count of UNOCCUPIED units — it is NOT a
|
|
331
|
+
* complimentary/price signal. Never render it as "free" next to a price
|
|
332
|
+
* (e.g. "2 lanes free"); label it "available"/"open". */
|
|
313
333
|
declare function availableUnitCount(availability: AvailabilityResult): number;
|
|
314
334
|
/** Customer identity for a booking (collected in the booking form; the server
|
|
315
335
|
* links/creates the customer per the booking-flow-only signup rule). */
|
|
@@ -178,6 +178,14 @@ type AvailabilityArgs = {
|
|
|
178
178
|
interface AvailabilityResult {
|
|
179
179
|
totalUnits: number;
|
|
180
180
|
busyUnitIds: string[];
|
|
181
|
+
/** Operator-configured noun for a bookable unit (a lane/room/bay), both
|
|
182
|
+
* forms so you pick by count ("1 lane" vs "2 lanes"). Label it
|
|
183
|
+
* "available"/"open", never "free". Optional — older gateways omit it;
|
|
184
|
+
* fall back to "lane"/"lanes". Added v0.35.0. */
|
|
185
|
+
unitNoun?: {
|
|
186
|
+
singular: string;
|
|
187
|
+
plural: string;
|
|
188
|
+
};
|
|
181
189
|
}
|
|
182
190
|
type PricingMode = "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
183
191
|
type BookingAddonSelection = {
|
|
@@ -277,9 +285,18 @@ interface BookingQuote {
|
|
|
277
285
|
}>;
|
|
278
286
|
taxTotalCents: number;
|
|
279
287
|
}>;
|
|
288
|
+
/** Operator-configured noun for this booking's count, resolved by pricing
|
|
289
|
+
* mode (unit → lane/room, per-person → bowler/guest, per-game → game).
|
|
290
|
+
* Both forms so you render "{count} {singular|plural}" — e.g. "1 room",
|
|
291
|
+
* "2 rooms" — instead of hardcoding "lane"/"lanes". Optional — older
|
|
292
|
+
* gateways omit it; fall back to a sensible default. Added v0.35.0. */
|
|
293
|
+
unitNoun?: {
|
|
294
|
+
singular: string;
|
|
295
|
+
plural: string;
|
|
296
|
+
};
|
|
280
297
|
[key: string]: unknown;
|
|
281
298
|
}
|
|
282
|
-
/**
|
|
299
|
+
/** Available (unoccupied) units for a product/date/time window (anonymous). */
|
|
283
300
|
declare function checkAvailability(client: BowlosClient, args: AvailabilityArgs): Promise<AvailabilityResult>;
|
|
284
301
|
/** Authoritative price quote for the chosen inputs. Anonymous by default
|
|
285
302
|
* (the center's standard online price). Pass `{ auth: true }` when the
|
|
@@ -309,7 +326,10 @@ type StartTimesArgs = {
|
|
|
309
326
|
* within operating hours, past the booking buffer, and backed by a real price
|
|
310
327
|
* plan (same pricing engine the quote uses). Anonymous-callable. */
|
|
311
328
|
declare function listStartTimes(client: BowlosClient, args: StartTimesArgs): Promise<number[]>;
|
|
312
|
-
/** Convenience:
|
|
329
|
+
/** Convenience: available units = total minus the busy set (never negative).
|
|
330
|
+
* This is an availability count of UNOCCUPIED units — it is NOT a
|
|
331
|
+
* complimentary/price signal. Never render it as "free" next to a price
|
|
332
|
+
* (e.g. "2 lanes free"); label it "available"/"open". */
|
|
313
333
|
declare function availableUnitCount(availability: AvailabilityResult): number;
|
|
314
334
|
/** Customer identity for a booking (collected in the booking form; the server
|
|
315
335
|
* links/creates the customer per the booking-flow-only signup rule). */
|
package/dist/index.cjs
CHANGED
|
@@ -323,7 +323,7 @@ function createBowlosClient(config) {
|
|
|
323
323
|
return new BowlosClient(config);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
//
|
|
326
|
+
// ../../../../../Users/bosummers/conductor/workspaces/bowlos/budapest/packages/shared/src/inquiry.ts
|
|
327
327
|
var INQUIRY_FORMS = {
|
|
328
328
|
contact: {
|
|
329
329
|
label: "Contact",
|