@bowlos/reservations 0.24.0 → 0.26.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 +68 -1
- package/README.md +10 -0
- package/dist/{account-C9SvfE3q.d.cts → account-BXf9e6UW.d.cts} +1 -1
- package/dist/{account-B9tDfXke.d.ts → account-N1Zs7yvQ.d.ts} +1 -1
- package/dist/{catalog-BPh01sfG.d.ts → catalog-BF_xtQxf.d.ts} +9 -1
- package/dist/{catalog-I7Lpar3V.d.cts → catalog-CVvwgrbZ.d.cts} +9 -1
- package/dist/{chunk-CRETIPLS.js → chunk-AYQIKZCU.js} +16 -5
- package/dist/chunk-AYQIKZCU.js.map +1 -0
- package/dist/{chunk-S5T4OCBY.js → chunk-PPCQFT3U.js} +19 -4
- package/dist/chunk-PPCQFT3U.js.map +1 -0
- package/dist/cli.cjs +17 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/components.cjs +57 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +17 -5
- package/dist/components.d.ts +17 -5
- package/dist/components.js +54 -6
- package/dist/components.js.map +1 -1
- package/dist/{data-BKlgn8Ln.d.cts → data-BCbYaSC1.d.cts} +43 -2
- package/dist/{data-BKlgn8Ln.d.ts → data-BCbYaSC1.d.ts} +43 -2
- package/dist/index.cjs +17 -2
- 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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/payments.cjs +4 -2
- package/dist/payments.cjs.map +1 -1
- package/dist/payments.d.cts +11 -3
- package/dist/payments.d.ts +11 -3
- package/dist/payments.js +4 -2
- package/dist/payments.js.map +1 -1
- package/dist/{react-C0c5k3Tt.d.ts → react-BQikV5KJ.d.ts} +4 -2
- package/dist/{react--584Q9zx.d.cts → react-Y11QkXEQ.d.cts} +4 -2
- package/dist/react.cjs +30 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +18 -6
- package/dist/react.d.ts +18 -6
- package/dist/react.js +3 -3
- package/package.json +2 -2
- package/templates/center-site/package.json +1 -1
- package/dist/chunk-CRETIPLS.js.map +0 -1
- package/dist/chunk-S5T4OCBY.js.map +0 -1
|
@@ -117,8 +117,15 @@ declare class BowlosClient {
|
|
|
117
117
|
private tryRefresh;
|
|
118
118
|
/** Sign an existing customer in; stores the session on success. */
|
|
119
119
|
signIn(email: string, password: string): Promise<Tokens>;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
120
|
+
/**
|
|
121
|
+
* Atomic sign-up (preferred): create the login AND the brand-scoped customer
|
|
122
|
+
* profile in ONE server call, then store the session. Use this instead of
|
|
123
|
+
* `signUp()` + `link()` — the two-step path can strand a login with no
|
|
124
|
+
* customer profile if `link()` is missed or races the new session.
|
|
125
|
+
*/
|
|
126
|
+
register(email: string, password: string, profile: Omit<LinkProfile, "email">): Promise<Tokens>;
|
|
127
|
+
/** Low-level: create a login only (no customer profile). Prefer `register()`;
|
|
128
|
+
* if you use this you MUST follow with `link()` or the customer is orphaned. */
|
|
122
129
|
signUp(email: string, password: string): Promise<Tokens>;
|
|
123
130
|
/** Link the signed-in auth user to a customer profile at the brand. */
|
|
124
131
|
link(profile: LinkProfile): Promise<unknown>;
|
|
@@ -305,6 +312,12 @@ interface PaymentIntentInfo {
|
|
|
305
312
|
ephemeralKey: string;
|
|
306
313
|
customerSessionClientSecret: string;
|
|
307
314
|
connectedAccountId: string;
|
|
315
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
316
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
317
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
318
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
319
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
320
|
+
stripeMode?: "test" | "live";
|
|
308
321
|
}
|
|
309
322
|
/** The minimal shape `<BowlosPaymentForm>` needs to confirm a payment on the
|
|
310
323
|
* operator's connected account. `PaymentIntentInfo` (booking) and the buy-flow
|
|
@@ -314,6 +327,10 @@ interface ConnectedPaymentInput {
|
|
|
314
327
|
clientSecret: string;
|
|
315
328
|
connectedAccountId: string;
|
|
316
329
|
customerSessionClientSecret?: string;
|
|
330
|
+
/** Full Test Mode (2026-06-23): the PI's Stripe environment. `<BowlosPaymentForm>`
|
|
331
|
+
* loads the matching publishable key (test vs live) when `testPublishableKey`
|
|
332
|
+
* is supplied. Absent → "live". */
|
|
333
|
+
stripeMode?: "test" | "live";
|
|
317
334
|
}
|
|
318
335
|
/** Inputs for a game-pass purchase. The SDK generates an idempotency key if omitted. */
|
|
319
336
|
type GameCardPurchaseArgs = {
|
|
@@ -332,6 +349,12 @@ interface GameCardPurchaseIntent {
|
|
|
332
349
|
cardId: string;
|
|
333
350
|
customerSessionClientSecret: string;
|
|
334
351
|
connectedAccountId: string;
|
|
352
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
353
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
354
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
355
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
356
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
357
|
+
stripeMode?: "test" | "live";
|
|
335
358
|
}
|
|
336
359
|
/** Buy a game pass — mints the connected-account PaymentIntent (requires a
|
|
337
360
|
* signed-in customer; the charge lands on the operator's connected account). */
|
|
@@ -415,6 +438,12 @@ interface EventTicketPurchaseIntent {
|
|
|
415
438
|
orderId: string;
|
|
416
439
|
customerSessionClientSecret: string;
|
|
417
440
|
connectedAccountId: string;
|
|
441
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
442
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
443
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
444
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
445
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
446
|
+
stripeMode?: "test" | "live";
|
|
418
447
|
}
|
|
419
448
|
/** Buy tickets for a ticket-mode event offer — mints the connected-account
|
|
420
449
|
* PaymentIntent. Requires a signed-in customer so taxes and account ownership
|
|
@@ -562,6 +591,12 @@ interface MembershipPurchaseIntent {
|
|
|
562
591
|
refToken: string | null;
|
|
563
592
|
customerSessionClientSecret: string;
|
|
564
593
|
connectedAccountId: string;
|
|
594
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
595
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
596
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
597
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
598
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
599
|
+
stripeMode?: "test" | "live";
|
|
565
600
|
}
|
|
566
601
|
/** Buy a one-time membership — mints the connected-account PaymentIntent
|
|
567
602
|
* (requires a signed-in customer; the charge lands on the operator's connected
|
|
@@ -607,6 +642,12 @@ interface MembershipSubscriptionIntent {
|
|
|
607
642
|
amountCents: number;
|
|
608
643
|
customerSessionClientSecret: string;
|
|
609
644
|
connectedAccountId: string;
|
|
645
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
646
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
647
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
648
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
649
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
650
|
+
stripeMode?: "test" | "live";
|
|
610
651
|
}
|
|
611
652
|
/** Start a recurring membership subscription — mints the subscription + its
|
|
612
653
|
* first-invoice PaymentIntent on the operator's connected account (requires a
|
|
@@ -117,8 +117,15 @@ declare class BowlosClient {
|
|
|
117
117
|
private tryRefresh;
|
|
118
118
|
/** Sign an existing customer in; stores the session on success. */
|
|
119
119
|
signIn(email: string, password: string): Promise<Tokens>;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
120
|
+
/**
|
|
121
|
+
* Atomic sign-up (preferred): create the login AND the brand-scoped customer
|
|
122
|
+
* profile in ONE server call, then store the session. Use this instead of
|
|
123
|
+
* `signUp()` + `link()` — the two-step path can strand a login with no
|
|
124
|
+
* customer profile if `link()` is missed or races the new session.
|
|
125
|
+
*/
|
|
126
|
+
register(email: string, password: string, profile: Omit<LinkProfile, "email">): Promise<Tokens>;
|
|
127
|
+
/** Low-level: create a login only (no customer profile). Prefer `register()`;
|
|
128
|
+
* if you use this you MUST follow with `link()` or the customer is orphaned. */
|
|
122
129
|
signUp(email: string, password: string): Promise<Tokens>;
|
|
123
130
|
/** Link the signed-in auth user to a customer profile at the brand. */
|
|
124
131
|
link(profile: LinkProfile): Promise<unknown>;
|
|
@@ -305,6 +312,12 @@ interface PaymentIntentInfo {
|
|
|
305
312
|
ephemeralKey: string;
|
|
306
313
|
customerSessionClientSecret: string;
|
|
307
314
|
connectedAccountId: string;
|
|
315
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
316
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
317
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
318
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
319
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
320
|
+
stripeMode?: "test" | "live";
|
|
308
321
|
}
|
|
309
322
|
/** The minimal shape `<BowlosPaymentForm>` needs to confirm a payment on the
|
|
310
323
|
* operator's connected account. `PaymentIntentInfo` (booking) and the buy-flow
|
|
@@ -314,6 +327,10 @@ interface ConnectedPaymentInput {
|
|
|
314
327
|
clientSecret: string;
|
|
315
328
|
connectedAccountId: string;
|
|
316
329
|
customerSessionClientSecret?: string;
|
|
330
|
+
/** Full Test Mode (2026-06-23): the PI's Stripe environment. `<BowlosPaymentForm>`
|
|
331
|
+
* loads the matching publishable key (test vs live) when `testPublishableKey`
|
|
332
|
+
* is supplied. Absent → "live". */
|
|
333
|
+
stripeMode?: "test" | "live";
|
|
317
334
|
}
|
|
318
335
|
/** Inputs for a game-pass purchase. The SDK generates an idempotency key if omitted. */
|
|
319
336
|
type GameCardPurchaseArgs = {
|
|
@@ -332,6 +349,12 @@ interface GameCardPurchaseIntent {
|
|
|
332
349
|
cardId: string;
|
|
333
350
|
customerSessionClientSecret: string;
|
|
334
351
|
connectedAccountId: string;
|
|
352
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
353
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
354
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
355
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
356
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
357
|
+
stripeMode?: "test" | "live";
|
|
335
358
|
}
|
|
336
359
|
/** Buy a game pass — mints the connected-account PaymentIntent (requires a
|
|
337
360
|
* signed-in customer; the charge lands on the operator's connected account). */
|
|
@@ -415,6 +438,12 @@ interface EventTicketPurchaseIntent {
|
|
|
415
438
|
orderId: string;
|
|
416
439
|
customerSessionClientSecret: string;
|
|
417
440
|
connectedAccountId: string;
|
|
441
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
442
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
443
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
444
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
445
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
446
|
+
stripeMode?: "test" | "live";
|
|
418
447
|
}
|
|
419
448
|
/** Buy tickets for a ticket-mode event offer — mints the connected-account
|
|
420
449
|
* PaymentIntent. Requires a signed-in customer so taxes and account ownership
|
|
@@ -562,6 +591,12 @@ interface MembershipPurchaseIntent {
|
|
|
562
591
|
refToken: string | null;
|
|
563
592
|
customerSessionClientSecret: string;
|
|
564
593
|
connectedAccountId: string;
|
|
594
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
595
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
596
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
597
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
598
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
599
|
+
stripeMode?: "test" | "live";
|
|
565
600
|
}
|
|
566
601
|
/** Buy a one-time membership — mints the connected-account PaymentIntent
|
|
567
602
|
* (requires a signed-in customer; the charge lands on the operator's connected
|
|
@@ -607,6 +642,12 @@ interface MembershipSubscriptionIntent {
|
|
|
607
642
|
amountCents: number;
|
|
608
643
|
customerSessionClientSecret: string;
|
|
609
644
|
connectedAccountId: string;
|
|
645
|
+
/** Full Test Mode (2026-06-23): the Stripe environment this PaymentIntent was
|
|
646
|
+
* created in. Load Stripe.js with the matching publishable key
|
|
647
|
+
* (`pk_test_…` for "test", `pk_live_…` for "live") scoped to
|
|
648
|
+
* `connectedAccountId`. `<BowlosPaymentForm>` picks it for you when you pass
|
|
649
|
+
* `testPublishableKey`. Absent on older gateway responses → treat as "live". */
|
|
650
|
+
stripeMode?: "test" | "live";
|
|
610
651
|
}
|
|
611
652
|
/** Start a recurring membership subscription — mints the subscription + its
|
|
612
653
|
* first-invoice PaymentIntent on the operator's connected account (requires a
|
package/dist/index.cjs
CHANGED
|
@@ -229,8 +229,23 @@ var BowlosClient = class {
|
|
|
229
229
|
this.store.set(tokens);
|
|
230
230
|
return tokens;
|
|
231
231
|
}
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
232
|
+
/**
|
|
233
|
+
* Atomic sign-up (preferred): create the login AND the brand-scoped customer
|
|
234
|
+
* profile in ONE server call, then store the session. Use this instead of
|
|
235
|
+
* `signUp()` + `link()` — the two-step path can strand a login with no
|
|
236
|
+
* customer profile if `link()` is missed or races the new session.
|
|
237
|
+
*/
|
|
238
|
+
async register(email, password, profile) {
|
|
239
|
+
const { tokens } = await this.call("auth/register", {
|
|
240
|
+
email,
|
|
241
|
+
password,
|
|
242
|
+
...profile
|
|
243
|
+
});
|
|
244
|
+
this.store.set(tokens);
|
|
245
|
+
return tokens;
|
|
246
|
+
}
|
|
247
|
+
/** Low-level: create a login only (no customer profile). Prefer `register()`;
|
|
248
|
+
* if you use this you MUST follow with `link()` or the customer is orphaned. */
|
|
234
249
|
async signUp(email, password) {
|
|
235
250
|
const { tokens } = await this.call("auth/signup", { email, password });
|
|
236
251
|
this.store.set(tokens);
|