@bowlos/reservations 0.31.0 → 0.32.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.
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { CSSProperties, ReactNode } from 'react';
3
- import { m as PublicSurface, g as CatalogItem } from './catalog-LU1sl0gc.cjs';
4
- export { h as CatalogResult, i as CatalogSection } from './catalog-LU1sl0gc.cjs';
5
- import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-BzO2guh0.cjs';
6
- import { d as UseAccountResult } from './react-CX-zIAb5.cjs';
3
+ import { m as PublicSurface, g as CatalogItem } from './catalog-BtvuX49Y.cjs';
4
+ export { h as CatalogResult, i as CatalogSection } from './catalog-BtvuX49Y.cjs';
5
+ import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-qGBxYRJB.cjs';
6
+ import { d as UseAccountResult } from './react--xfZz9Y4.cjs';
7
7
  import { InquiryFormType } from '@bowlos/shared';
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { CSSProperties, ReactNode } from 'react';
3
- import { m as PublicSurface, g as CatalogItem } from './catalog-Ck_HLOff.js';
4
- export { h as CatalogResult, i as CatalogSection } from './catalog-Ck_HLOff.js';
5
- import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-BzO2guh0.js';
6
- import { d as UseAccountResult } from './react-RNgTkCVk.js';
3
+ import { m as PublicSurface, g as CatalogItem } from './catalog-Dq8gpdAA.js';
4
+ export { h as CatalogResult, i as CatalogSection } from './catalog-Dq8gpdAA.js';
5
+ import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-qGBxYRJB.js';
6
+ import { d as UseAccountResult } from './react-9kBVKWRt.js';
7
7
  import { InquiryFormType } from '@bowlos/shared';
8
8
 
9
9
  /**
@@ -1,6 +1,6 @@
1
1
  import { INQUIRY_FORMS } from './chunk-EQH5HDYQ.js';
2
- import { useTestMode, useAccount, useAvailability, useBookingPreview, useAddons, useStartTimes, useBookingFlow, useMyReservations, useMyMemberships, useMyLoyalty, useMyCredits, useMyPasses, useFlashSale, useFlashSales, useCatalog, useRetailPricing } from './chunk-S5GEG7SW.js';
3
- import { availableUnitCount } from './chunk-P5YWNLEC.js';
2
+ import { useTestMode, useAccount, useAvailability, useBookingPreview, useAddons, useStartTimes, useBookingFlow, useMyReservations, useMyMemberships, useMyLoyalty, useMyCredits, useMyPasses, useFlashSale, useFlashSales, useCatalog, useRetailPricing } from './chunk-BFSMRBWB.js';
3
+ import { availableUnitCount } from './chunk-MJHRMLJO.js';
4
4
  import { token, styles, formatCents, formatMinuteLabel, minutesToTime, useCountdown, formatCentsRange } from './chunk-Y3YSDO3H.js';
5
5
  export { BOWLOS_DEFAULT_THEME, BowlosTheme, formatCents, formatCentsRange } from './chunk-Y3YSDO3H.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -357,6 +357,9 @@ type GameCardPurchaseArgs = {
357
357
  templateId: string;
358
358
  idempotencyKey?: string;
359
359
  shareToken?: string;
360
+ /** v0.32.0: when set, the buy redeems this flash-sale item at its sale price
361
+ * (the flash sale must be Live; the server validates the item matches). */
362
+ flashSaleItemId?: string;
360
363
  };
361
364
  /** The connected-account PaymentIntent for a game-pass purchase. Confirm it with
362
365
  * `<BowlosPaymentForm>` — it carries `connectedAccountId` + the customer session.
@@ -392,6 +395,8 @@ declare function getGameCardStatus(client: BowlosClient, refToken: string): Prom
392
395
  type GameCardPreviewArgs = {
393
396
  templateId: string;
394
397
  shareToken?: string;
398
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
399
+ flashSaleItemId?: string;
395
400
  };
396
401
  /** Server-computed itemized quote for a game-pass purchase — the base price,
397
402
  * tax lines, the selling Center's booking fee, and the authoritative grand
@@ -419,6 +424,8 @@ declare function previewGameCard(client: BowlosClient, args: GameCardPreviewArgs
419
424
  type EventTicketPreviewArgs = {
420
425
  eventOfferId: string;
421
426
  quantity: number;
427
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
428
+ flashSaleItemId?: string;
422
429
  };
423
430
  interface EventTicketPreviewResult {
424
431
  eventName: string;
@@ -447,6 +454,8 @@ type EventTicketPurchaseArgs = {
447
454
  eventOfferId: string;
448
455
  quantity: number;
449
456
  idempotencyKey?: string;
457
+ /** v0.32.0: redeem this flash-sale item at its sale price. */
458
+ flashSaleItemId?: string;
450
459
  };
451
460
  /** The connected-account PaymentIntent for a ticket-mode event purchase.
452
461
  * Confirm it with `<BowlosPaymentForm>` — it carries `connectedAccountId` +
@@ -492,6 +501,8 @@ type PackagePurchaseArgs = {
492
501
  scheduledStartMinute: number;
493
502
  idempotencyKey?: string;
494
503
  shareToken?: string;
504
+ /** v0.32.0: redeem this flash-sale item at its sale price. */
505
+ flashSaleItemId?: string;
495
506
  };
496
507
  /** The connected-account PaymentIntent for a package purchase. Confirm it with
497
508
  * `<BowlosPaymentForm>` — it carries `connectedAccountId` + the customer session.
@@ -529,6 +540,8 @@ type PackagePreviewArgs = {
529
540
  quantity: number;
530
541
  }[];
531
542
  shareToken?: string;
543
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
544
+ flashSaleItemId?: string;
532
545
  };
533
546
  /** Server-computed itemized quote for a package order — base, optional add-ons,
534
547
  * tax lines, the selling Center's booking fee, and the authoritative grand
@@ -567,6 +580,8 @@ declare function previewPackage(client: BowlosClient, args: PackagePreviewArgs):
567
580
  type MembershipPreviewArgs = {
568
581
  templateId: string;
569
582
  shareToken?: string;
583
+ /** v0.32.0: reflect the flash sale price in the Review (one-time only). */
584
+ flashSaleItemId?: string;
570
585
  };
571
586
  /** Server-computed itemized quote for a one-time membership purchase — the dues,
572
587
  * the one-time setup (joining) fee, tax lines, the selling Center's booking fee,
@@ -600,6 +615,8 @@ type MembershipPurchaseArgs = {
600
615
  templateId: string;
601
616
  idempotencyKey?: string;
602
617
  shareToken?: string;
618
+ /** v0.32.0: redeem this flash-sale item at its sale price (one-time only). */
619
+ flashSaleItemId?: string;
603
620
  };
604
621
  /** The connected-account PaymentIntent for a one-time membership purchase.
605
622
  * Confirm it with `<BowlosPaymentForm>` — it carries `connectedAccountId` + the
@@ -357,6 +357,9 @@ type GameCardPurchaseArgs = {
357
357
  templateId: string;
358
358
  idempotencyKey?: string;
359
359
  shareToken?: string;
360
+ /** v0.32.0: when set, the buy redeems this flash-sale item at its sale price
361
+ * (the flash sale must be Live; the server validates the item matches). */
362
+ flashSaleItemId?: string;
360
363
  };
361
364
  /** The connected-account PaymentIntent for a game-pass purchase. Confirm it with
362
365
  * `<BowlosPaymentForm>` — it carries `connectedAccountId` + the customer session.
@@ -392,6 +395,8 @@ declare function getGameCardStatus(client: BowlosClient, refToken: string): Prom
392
395
  type GameCardPreviewArgs = {
393
396
  templateId: string;
394
397
  shareToken?: string;
398
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
399
+ flashSaleItemId?: string;
395
400
  };
396
401
  /** Server-computed itemized quote for a game-pass purchase — the base price,
397
402
  * tax lines, the selling Center's booking fee, and the authoritative grand
@@ -419,6 +424,8 @@ declare function previewGameCard(client: BowlosClient, args: GameCardPreviewArgs
419
424
  type EventTicketPreviewArgs = {
420
425
  eventOfferId: string;
421
426
  quantity: number;
427
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
428
+ flashSaleItemId?: string;
422
429
  };
423
430
  interface EventTicketPreviewResult {
424
431
  eventName: string;
@@ -447,6 +454,8 @@ type EventTicketPurchaseArgs = {
447
454
  eventOfferId: string;
448
455
  quantity: number;
449
456
  idempotencyKey?: string;
457
+ /** v0.32.0: redeem this flash-sale item at its sale price. */
458
+ flashSaleItemId?: string;
450
459
  };
451
460
  /** The connected-account PaymentIntent for a ticket-mode event purchase.
452
461
  * Confirm it with `<BowlosPaymentForm>` — it carries `connectedAccountId` +
@@ -492,6 +501,8 @@ type PackagePurchaseArgs = {
492
501
  scheduledStartMinute: number;
493
502
  idempotencyKey?: string;
494
503
  shareToken?: string;
504
+ /** v0.32.0: redeem this flash-sale item at its sale price. */
505
+ flashSaleItemId?: string;
495
506
  };
496
507
  /** The connected-account PaymentIntent for a package purchase. Confirm it with
497
508
  * `<BowlosPaymentForm>` — it carries `connectedAccountId` + the customer session.
@@ -529,6 +540,8 @@ type PackagePreviewArgs = {
529
540
  quantity: number;
530
541
  }[];
531
542
  shareToken?: string;
543
+ /** v0.32.0: reflect the flash sale price in the Review (same as the buy). */
544
+ flashSaleItemId?: string;
532
545
  };
533
546
  /** Server-computed itemized quote for a package order — base, optional add-ons,
534
547
  * tax lines, the selling Center's booking fee, and the authoritative grand
@@ -567,6 +580,8 @@ declare function previewPackage(client: BowlosClient, args: PackagePreviewArgs):
567
580
  type MembershipPreviewArgs = {
568
581
  templateId: string;
569
582
  shareToken?: string;
583
+ /** v0.32.0: reflect the flash sale price in the Review (one-time only). */
584
+ flashSaleItemId?: string;
570
585
  };
571
586
  /** Server-computed itemized quote for a one-time membership purchase — the dues,
572
587
  * the one-time setup (joining) fee, tax lines, the selling Center's booking fee,
@@ -600,6 +615,8 @@ type MembershipPurchaseArgs = {
600
615
  templateId: string;
601
616
  idempotencyKey?: string;
602
617
  shareToken?: string;
618
+ /** v0.32.0: redeem this flash-sale item at its sale price (one-time only). */
619
+ flashSaleItemId?: string;
603
620
  };
604
621
  /** The connected-account PaymentIntent for a one-time membership purchase.
605
622
  * Confirm it with `<BowlosPaymentForm>` — it carries `connectedAccountId` + the