@bowlos/reservations 0.41.0 → 0.43.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/AGENTS.md +9 -3
- package/HEADLESS.md +61 -0
- package/README.md +61 -0
- package/dist/{account-DEX2Lr78.d.cts → account-B4sZBmPI.d.cts} +866 -14
- package/dist/{account-DEX2Lr78.d.ts → account-B4sZBmPI.d.ts} +866 -14
- package/dist/booking-change-Dd4PVgd3.d.cts +487 -0
- package/dist/booking-change-DzYs9133.d.ts +487 -0
- package/dist/{chunk-VJIS56OO.js → chunk-4JMGS4YB.js} +96 -5
- package/dist/chunk-4JMGS4YB.js.map +1 -0
- package/dist/{chunk-FMFHNBDH.js → chunk-T2E6AEC7.js} +98 -5
- package/dist/chunk-T2E6AEC7.js.map +1 -0
- package/dist/{chunk-44WKP6MW.js → chunk-V4JRDYW4.js} +31 -3
- package/dist/chunk-V4JRDYW4.js.map +1 -0
- package/dist/{chunk-BWJHRJN6.js → chunk-YQRTBGXU.js} +3 -3
- package/dist/{chunk-BWJHRJN6.js.map → chunk-YQRTBGXU.js.map} +1 -1
- package/dist/cli.cjs +5 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/components.cjs +313 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +12 -6
- package/dist/components.d.ts +12 -6
- package/dist/components.js +109 -6
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +33 -0
- 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/payments.cjs +34 -12
- package/dist/payments.cjs.map +1 -1
- package/dist/payments.d.cts +10 -2
- package/dist/payments.d.ts +10 -2
- package/dist/payments.js +5 -78
- package/dist/payments.js.map +1 -1
- package/dist/{react-CrRciA7I.d.ts → react-C6NWC80d.d.cts} +2 -2
- package/dist/{react-QJrsaOnN.d.cts → react-DVdtpw5n.d.ts} +2 -2
- package/dist/react.cjs +112 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +22 -6
- package/dist/react.d.ts +22 -6
- package/dist/react.js +5 -5
- package/package.json +1 -1
- package/templates/center-site/package.json +1 -1
- package/dist/booking-change-4DGu-B08.d.ts +0 -1282
- package/dist/booking-change-aK6P37FZ.d.cts +0 -1282
- package/dist/chunk-44WKP6MW.js.map +0 -1
- package/dist/chunk-FMFHNBDH.js.map +0 -1
- package/dist/chunk-VJIS56OO.js.map +0 -1
|
@@ -1,1282 +0,0 @@
|
|
|
1
|
-
import { B as BowlosClient } from './account-DEX2Lr78.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Error model for the BowlOS Reservations SDK.
|
|
5
|
-
*
|
|
6
|
-
* Every failed gateway call surfaces as a single `BowlosApiError` carrying a
|
|
7
|
-
* stable `code` (string), the HTTP `status`, and — for rate limits — a
|
|
8
|
-
* `retryAfterSeconds`. The gateway normalizes the backend's two error
|
|
9
|
-
* conventions (thrown ConvexError + `{ ok:false }` envelopes) into one JSON
|
|
10
|
-
* shape; this class is the client-side mirror of that shape, so consumers
|
|
11
|
-
* branch on `error.code`, never on message text.
|
|
12
|
-
*/
|
|
13
|
-
/** Stable error codes the gateway / backend can return. Open set — treat
|
|
14
|
-
* `code` as a string and match against these for known cases. */
|
|
15
|
-
declare const BOWLOS_ERROR_CODES: {
|
|
16
|
-
readonly API_KEY_MISSING: "API_KEY_MISSING";
|
|
17
|
-
readonly API_KEY_INVALID: "API_KEY_INVALID";
|
|
18
|
-
readonly ORIGIN_NOT_ALLOWED: "ORIGIN_NOT_ALLOWED";
|
|
19
|
-
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
20
|
-
readonly PASSWORD_TOO_WEAK: "PASSWORD_TOO_WEAK";
|
|
21
|
-
readonly CURRENT_PASSWORD_INCORRECT: "CURRENT_PASSWORD_INCORRECT";
|
|
22
|
-
readonly CURRENT_PASSWORD_REQUIRED: "CURRENT_PASSWORD_REQUIRED";
|
|
23
|
-
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
24
|
-
readonly SIGNUP_FAILED: "SIGNUP_FAILED";
|
|
25
|
-
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
26
|
-
readonly PERMISSION_DENIED: "PERMISSION_DENIED";
|
|
27
|
-
readonly SCOPE_REVOKED: "SCOPE_REVOKED";
|
|
28
|
-
readonly NOT_FOUND: "NOT_FOUND";
|
|
29
|
-
readonly VERSION_CONFLICT: "VERSION_CONFLICT";
|
|
30
|
-
readonly PRICING_SNAPSHOT_STALE: "PRICING_SNAPSHOT_STALE";
|
|
31
|
-
readonly PAYMENTS_NOT_CONNECTED: "PAYMENTS_NOT_CONNECTED";
|
|
32
|
-
readonly CONNECT_ACCOUNT_RESTRICTED: "CONNECT_ACCOUNT_RESTRICTED";
|
|
33
|
-
readonly BILLING_PORTAL_UNAVAILABLE: "BILLING_PORTAL_UNAVAILABLE";
|
|
34
|
-
readonly RETURN_URL_NOT_ALLOWED: "RETURN_URL_NOT_ALLOWED";
|
|
35
|
-
readonly CONFLICT_RETRY: "CONFLICT_RETRY";
|
|
36
|
-
readonly CHECKOUT_EXPIRED: "CHECKOUT_EXPIRED";
|
|
37
|
-
readonly ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
38
|
-
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
39
|
-
readonly UNKNOWN: "ERROR";
|
|
40
|
-
};
|
|
41
|
-
type BowlosErrorCode = (typeof BOWLOS_ERROR_CODES)[keyof typeof BOWLOS_ERROR_CODES] | (string & {});
|
|
42
|
-
interface BowlosApiErrorOptions {
|
|
43
|
-
retryAfterSeconds?: number;
|
|
44
|
-
cause?: unknown;
|
|
45
|
-
details?: Record<string, string | number | boolean>;
|
|
46
|
-
}
|
|
47
|
-
declare class BowlosApiError extends Error {
|
|
48
|
-
/** Stable, machine-readable code. Branch on this, not on `message`. */
|
|
49
|
-
readonly code: BowlosErrorCode;
|
|
50
|
-
/** HTTP status (0 for a network failure before any response). */
|
|
51
|
-
readonly status: number;
|
|
52
|
-
readonly details?: Record<string, string | number | boolean>;
|
|
53
|
-
/** Seconds to wait before retrying — present only on `RATE_LIMITED`. */
|
|
54
|
-
readonly retryAfterSeconds?: number;
|
|
55
|
-
constructor(code: BowlosErrorCode, message: string, status: number, options?: BowlosApiErrorOptions);
|
|
56
|
-
/** Too many requests — caller should back off `retryAfterSeconds`. */
|
|
57
|
-
get isRateLimited(): boolean;
|
|
58
|
-
/** Bad/expired login. The session could not be established or has lapsed. */
|
|
59
|
-
get isAuthError(): boolean;
|
|
60
|
-
/** Wrong/missing API key or a disallowed origin — a site-config problem,
|
|
61
|
-
* not something the end customer can fix. */
|
|
62
|
-
get isConfigError(): boolean;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** Gateway wire contracts, derived from the PR-6/7/8 backend validators and handlers. */
|
|
66
|
-
type EventOffer = {
|
|
67
|
-
id: string;
|
|
68
|
-
pricingEventId: string;
|
|
69
|
-
displayId: string;
|
|
70
|
-
slug: string;
|
|
71
|
-
title: string;
|
|
72
|
-
subtitle: string | null;
|
|
73
|
-
description: string | null;
|
|
74
|
-
heroImageUrl: string | null;
|
|
75
|
-
date: string;
|
|
76
|
-
startMinuteOfDay: number | null;
|
|
77
|
-
endMinuteOfDay: number | null;
|
|
78
|
-
purchaseMode: "reservation" | "ticket";
|
|
79
|
-
productId: string | null;
|
|
80
|
-
pricePlanId: string | null;
|
|
81
|
-
pricePlanShoeIncluded: boolean;
|
|
82
|
-
priceCents: number | null;
|
|
83
|
-
};
|
|
84
|
-
type ListEventOffersArgs = {
|
|
85
|
-
centerId: string;
|
|
86
|
-
includeWithoutLandingPage?: boolean;
|
|
87
|
-
};
|
|
88
|
-
type ListBrandEventOffersArgs = {
|
|
89
|
-
brandId: string;
|
|
90
|
-
includeWithoutLandingPage?: boolean;
|
|
91
|
-
limit?: number;
|
|
92
|
-
cursor?: string;
|
|
93
|
-
};
|
|
94
|
-
type BrandEventOffer = EventOffer & {
|
|
95
|
-
centerId: string;
|
|
96
|
-
centerName: string;
|
|
97
|
-
centerSlug: string | null;
|
|
98
|
-
};
|
|
99
|
-
type ListBrandEventOffersResult = {
|
|
100
|
-
items: BrandEventOffer[];
|
|
101
|
-
isDone: boolean;
|
|
102
|
-
continueCursor: string;
|
|
103
|
-
};
|
|
104
|
-
type GetMyGameCardArgs = {
|
|
105
|
-
cardId: string;
|
|
106
|
-
brandId?: string;
|
|
107
|
-
centerId?: string;
|
|
108
|
-
};
|
|
109
|
-
type GetMyGameCardResult = {
|
|
110
|
-
_id: string;
|
|
111
|
-
displayId: string;
|
|
112
|
-
cardName: string;
|
|
113
|
-
totalGames: number;
|
|
114
|
-
remainingGames: number;
|
|
115
|
-
shoesIncluded: boolean;
|
|
116
|
-
status: "pending_payment" | "active" | "depleted" | "expired" | "cancelled" | "refunded";
|
|
117
|
-
purchasedAt: number;
|
|
118
|
-
expiresAt: number;
|
|
119
|
-
pricePaidCents: number;
|
|
120
|
-
subtotalCents?: number;
|
|
121
|
-
taxLines?: {
|
|
122
|
-
label: string;
|
|
123
|
-
rateBasisPoints: number;
|
|
124
|
-
mode: "included" | "added";
|
|
125
|
-
rateId: string;
|
|
126
|
-
taxableBaseCents: number;
|
|
127
|
-
taxCents: number;
|
|
128
|
-
}[];
|
|
129
|
-
taxTotalCents?: number;
|
|
130
|
-
taxExemptApplied?: boolean;
|
|
131
|
-
reservationFeeCents?: number;
|
|
132
|
-
reservationFeeLabel?: string;
|
|
133
|
-
grandTotalCents?: number;
|
|
134
|
-
};
|
|
135
|
-
type GameCardRedemption = {
|
|
136
|
-
_id: string;
|
|
137
|
-
redeemedAt: number;
|
|
138
|
-
gamesConsumed: number;
|
|
139
|
-
includesShoes: boolean;
|
|
140
|
-
centerName: string;
|
|
141
|
-
notes?: string;
|
|
142
|
-
};
|
|
143
|
-
type GetMyGameCardHistoryArgs = {
|
|
144
|
-
brandId: string;
|
|
145
|
-
centerId?: string;
|
|
146
|
-
gameCardId?: string;
|
|
147
|
-
cursor?: string | null;
|
|
148
|
-
numItems: number;
|
|
149
|
-
};
|
|
150
|
-
type GetMyGameCardHistoryResult = {
|
|
151
|
-
page: GameCardRedemption[];
|
|
152
|
-
isDone: boolean;
|
|
153
|
-
continueCursor: string;
|
|
154
|
-
splitCursor?: string | null;
|
|
155
|
-
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
156
|
-
};
|
|
157
|
-
type GetWalletPassUrlArgs = {
|
|
158
|
-
brandId: string;
|
|
159
|
-
centerId?: string;
|
|
160
|
-
kind: "reservation" | "membership" | "package" | "game_card";
|
|
161
|
-
id: string;
|
|
162
|
-
platform: "apple" | "google";
|
|
163
|
-
};
|
|
164
|
-
type GetWalletPassUrlResult = {
|
|
165
|
-
url: string;
|
|
166
|
-
platform: "apple" | "google";
|
|
167
|
-
};
|
|
168
|
-
type MyHoldArgs = {
|
|
169
|
-
groupId: string;
|
|
170
|
-
brandId?: string;
|
|
171
|
-
};
|
|
172
|
-
type MyHold = {
|
|
173
|
-
groupId: string;
|
|
174
|
-
expiresAt: number;
|
|
175
|
-
serverNowMs: number;
|
|
176
|
-
extensionUsed: boolean;
|
|
177
|
-
extendable: boolean;
|
|
178
|
-
holdCount: number;
|
|
179
|
-
status: "active" | "consumed" | "released" | "expired";
|
|
180
|
-
};
|
|
181
|
-
type EmailVerificationArgs = {
|
|
182
|
-
brandId?: string;
|
|
183
|
-
};
|
|
184
|
-
type RequestEmailVerificationResult = {
|
|
185
|
-
ok: boolean;
|
|
186
|
-
alreadyVerified: boolean;
|
|
187
|
-
verifyId?: string;
|
|
188
|
-
};
|
|
189
|
-
type EmailVerificationTokenArgs = EmailVerificationArgs & {
|
|
190
|
-
token: string;
|
|
191
|
-
};
|
|
192
|
-
type EmailVerificationStatus = {
|
|
193
|
-
status: "not_found" | "used" | "expired";
|
|
194
|
-
} | {
|
|
195
|
-
status: "valid";
|
|
196
|
-
email: string;
|
|
197
|
-
};
|
|
198
|
-
type EmailVerificationSendStateArgs = EmailVerificationArgs & {
|
|
199
|
-
verifyId: string;
|
|
200
|
-
};
|
|
201
|
-
type EmailVerificationSendState = {
|
|
202
|
-
status: "pending" | "sent";
|
|
203
|
-
} | {
|
|
204
|
-
status: "failed";
|
|
205
|
-
error: string;
|
|
206
|
-
};
|
|
207
|
-
type GetCancellationPolicyArgs = {
|
|
208
|
-
brandId: string;
|
|
209
|
-
centerId: string;
|
|
210
|
-
productId: string;
|
|
211
|
-
};
|
|
212
|
-
type CancellationPolicy = {
|
|
213
|
-
scope: "brand" | "center" | "product";
|
|
214
|
-
centerId?: string;
|
|
215
|
-
productId?: string;
|
|
216
|
-
fullCreditHoursBeforeStart: number;
|
|
217
|
-
partialCreditHoursBeforeStart: number;
|
|
218
|
-
partialCreditPercent: number;
|
|
219
|
-
cancellationPolicyUrl: string | null;
|
|
220
|
-
} | null;
|
|
221
|
-
type CancelMyPendingBookingArgs = {
|
|
222
|
-
reservationId: string;
|
|
223
|
-
brandId?: string;
|
|
224
|
-
};
|
|
225
|
-
type CancelMyPendingBookingResult = {
|
|
226
|
-
kind: "not_found";
|
|
227
|
-
} | {
|
|
228
|
-
kind: "cancelled";
|
|
229
|
-
reservationId: string;
|
|
230
|
-
} | {
|
|
231
|
-
kind: "skipped";
|
|
232
|
-
status: "pending" | "confirmed" | "confirmed_awaiting_payment" | "pending_review" | "checked_in" | "completed" | "cancelled_forfeited" | "cancelled_credited" | "no_show";
|
|
233
|
-
reservationId: string;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
type CenterScoped = {
|
|
237
|
-
centerId: string;
|
|
238
|
-
};
|
|
239
|
-
type BrandCatalogArgs = {
|
|
240
|
-
brandId: string;
|
|
241
|
-
centerId?: string;
|
|
242
|
-
};
|
|
243
|
-
/** Which public surface is asking — the backend applies that surface's
|
|
244
|
-
* per-category + per-offer visibility before returning. */
|
|
245
|
-
type PublicSurface = "sdk_custom_site" | "white_label_web" | "mobile_app";
|
|
246
|
-
type CatalogCategory = "bowling" | "other_attractions" | "events" | "packages" | "memberships" | "game_passes";
|
|
247
|
-
type CatalogActionType = "book_reservation" | "view_event" | "buy_ticket" | "buy_package" | "buy_membership" | "buy_game_pass";
|
|
248
|
-
type CatalogSourceTable = "products" | "event_offers" | "packages" | "membership_templates" | "game_card_templates";
|
|
249
|
-
/** A normalized, surface-agnostic catalog item. Route by `action.type`, using
|
|
250
|
-
* the IDs in `action.payload` (e.g. `productId`, `slug`, `packageId`,
|
|
251
|
-
* `templateId`). `priceLabel` is an indicative "from $X" only (null for
|
|
252
|
-
* products — show "See times & pricing"); the binding price comes from the
|
|
253
|
-
* per-category preview after login. */
|
|
254
|
-
interface CatalogItem {
|
|
255
|
-
id: string;
|
|
256
|
-
category: CatalogCategory;
|
|
257
|
-
sourceTable: CatalogSourceTable;
|
|
258
|
-
sourceId: string;
|
|
259
|
-
title: string;
|
|
260
|
-
subtitle?: string | null;
|
|
261
|
-
description?: string | null;
|
|
262
|
-
priceLabel?: string | null;
|
|
263
|
-
imageUrl?: string | null;
|
|
264
|
-
badgeLabel?: string | null;
|
|
265
|
-
action: {
|
|
266
|
-
type: CatalogActionType;
|
|
267
|
-
payload: Record<string, string>;
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
interface CatalogSection {
|
|
271
|
-
key: CatalogCategory;
|
|
272
|
-
label: string;
|
|
273
|
-
items: CatalogItem[];
|
|
274
|
-
}
|
|
275
|
-
interface CatalogResult {
|
|
276
|
-
sections: CatalogSection[];
|
|
277
|
-
/**
|
|
278
|
-
* Date-first booking (v0.24.0): the Center's default booking entry point.
|
|
279
|
-
* Open your funnel on this; let the customer toggle to the other. Optional —
|
|
280
|
-
* older gateways omit it (treat absent as `"product_first"`).
|
|
281
|
-
*/
|
|
282
|
-
bookingEntryDefault?: "product_first" | "date_first";
|
|
283
|
-
/** Center-local "today" (YYYY-MM-DD) — default + minimum for a date-first
|
|
284
|
-
* date picker, so you don't guess the Center's timezone. Optional. */
|
|
285
|
-
todayISO?: string;
|
|
286
|
-
/**
|
|
287
|
-
* Full Test Mode (2026-06-23): true when the operator has put this Center in
|
|
288
|
-
* test mode. Render a customer-facing "Maintenance mode" notice (use
|
|
289
|
-
* `<MaintenanceBanner>` or `useTestMode()`); normal customers' bookings are
|
|
290
|
-
* server-refused (`CENTER_IN_MAINTENANCE`) — only admin Test-Account customers
|
|
291
|
-
* transact. Absent on older gateways → false.
|
|
292
|
-
*/
|
|
293
|
-
maintenanceMode?: boolean;
|
|
294
|
-
}
|
|
295
|
-
/** Args for the canonical catalog read. `surface` selects which visibility
|
|
296
|
-
* rules the backend applies. */
|
|
297
|
-
type CatalogArgs = {
|
|
298
|
-
brandId: string;
|
|
299
|
-
centerId: string;
|
|
300
|
-
surface: PublicSurface;
|
|
301
|
-
};
|
|
302
|
-
/**
|
|
303
|
-
* The canonical public catalog for a surface — every active, public,
|
|
304
|
-
* bookable/sellable item grouped into the six first-class categories, with the
|
|
305
|
-
* Center admin's per-surface category + offer visibility already applied.
|
|
306
|
-
* Anonymous. This is the recommended way to list "everything bookable here":
|
|
307
|
-
* one call, all categories, visibility-aware, consistent with the white-label
|
|
308
|
-
* web + mobile surfaces.
|
|
309
|
-
*/
|
|
310
|
-
declare function listCatalog<T = CatalogResult>(client: BowlosClient, args: CatalogArgs): Promise<T>;
|
|
311
|
-
/** One package's full detail. `shareToken` reveals a hidden/unlisted package. */
|
|
312
|
-
type PackageDetailArgs = {
|
|
313
|
-
packageId: string;
|
|
314
|
-
shareToken?: string;
|
|
315
|
-
};
|
|
316
|
-
/** Args for a Center's operating-hours window on a date, across attraction types. */
|
|
317
|
-
type CenterHoursArgs = {
|
|
318
|
-
centerId: string;
|
|
319
|
-
attractionTypeKeys: string[];
|
|
320
|
-
dateISO: string;
|
|
321
|
-
};
|
|
322
|
-
/** Bookable products at a Center (each carries its attraction + `attractionTypeKey`). */
|
|
323
|
-
declare function listProducts<T = unknown>(client: BowlosClient, args: CenterScoped): Promise<T>;
|
|
324
|
-
/** Upcoming pricing events (NYE Bash, tournaments…) at a Center. */
|
|
325
|
-
declare function listEvents<T = unknown>(client: BowlosClient, args: CenterScoped): Promise<T>;
|
|
326
|
-
/** Sellable event offers at a Center. These are the public lineup + event
|
|
327
|
-
* landing-page records; use this instead of `listEvents` when routing a
|
|
328
|
-
* customer to an event purchase flow. */
|
|
329
|
-
declare function listEventOffers<T = EventOffer[]>(client: BowlosClient, args: CenterScoped & {
|
|
330
|
-
includeWithoutLandingPage?: boolean;
|
|
331
|
-
}): Promise<T>;
|
|
332
|
-
/** One sellable event offer by landing-page slug. */
|
|
333
|
-
declare function getEventOffer<T = unknown>(client: BowlosClient, args: {
|
|
334
|
-
slug: string;
|
|
335
|
-
}): Promise<T>;
|
|
336
|
-
/** Purchasable packages at a Brand. */
|
|
337
|
-
declare function listPackages<T = unknown>(client: BowlosClient, args: BrandCatalogArgs): Promise<T>;
|
|
338
|
-
/** Full detail for one package — components, optional add-ons, allowed start
|
|
339
|
-
* times, duration, and quantity bounds. Drives the headless package config UI
|
|
340
|
-
* (see HEADLESS.md → "Buying a package"). */
|
|
341
|
-
declare function getPackage<T = unknown>(client: BowlosClient, args: PackageDetailArgs): Promise<T>;
|
|
342
|
-
/** A Center's combined open/close window (minutes-from-midnight) for the given
|
|
343
|
-
* attraction types on a date — the intersection across types; `null` if closed.
|
|
344
|
-
* Bound a package's start times with its component attraction-type keys. */
|
|
345
|
-
declare function getCenterHours<T = unknown>(client: BowlosClient, args: CenterHoursArgs): Promise<T>;
|
|
346
|
-
/** Purchasable memberships at a Center. */
|
|
347
|
-
declare function listPublicMemberships<T = unknown>(client: BowlosClient, args: CenterScoped): Promise<T>;
|
|
348
|
-
/** Purchasable game cards / passes at a Brand. */
|
|
349
|
-
declare function listGameCards<T = unknown>(client: BowlosClient, args: BrandCatalogArgs): Promise<T>;
|
|
350
|
-
/** A pricing mode an attraction charges in. */
|
|
351
|
-
type RetailPricingMode = "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
352
|
-
/** One matrix row — a day-of-week + time band with per-mode rates. */
|
|
353
|
-
interface RetailWalkInRate {
|
|
354
|
-
dayOfWeek: number;
|
|
355
|
-
startMinuteOfDay: number;
|
|
356
|
-
endMinuteOfDay: number;
|
|
357
|
-
label: string | null;
|
|
358
|
-
rateUnitHourCents: number | null;
|
|
359
|
-
ratePersonHourCents: number | null;
|
|
360
|
-
rateGameCents: number | null;
|
|
361
|
-
}
|
|
362
|
-
/** Walk-in rates grouped by attraction. */
|
|
363
|
-
interface RetailAttraction {
|
|
364
|
-
attractionId: string;
|
|
365
|
-
name: string;
|
|
366
|
-
typeKey: string;
|
|
367
|
-
enabledModes: RetailPricingMode[];
|
|
368
|
-
unitLabelSingular: string;
|
|
369
|
-
unitLabelPlural: string;
|
|
370
|
-
walkInRates: RetailWalkInRate[];
|
|
371
|
-
}
|
|
372
|
-
/** A featured "website special" (an opted-in price plan). */
|
|
373
|
-
interface RetailSpecial {
|
|
374
|
-
planId: string;
|
|
375
|
-
name: string;
|
|
376
|
-
description: string;
|
|
377
|
-
priceCents: number | null;
|
|
378
|
-
attractionId: string;
|
|
379
|
-
attractionName: string;
|
|
380
|
-
/** Seasonal window (YYYY-MM-DD) when set — label/hide out of season. */
|
|
381
|
-
effectiveStartDate: string | null;
|
|
382
|
-
effectiveEndDate: string | null;
|
|
383
|
-
}
|
|
384
|
-
/** The full retail-pricing payload for a Center. */
|
|
385
|
-
interface RetailPricing {
|
|
386
|
-
centerName: string;
|
|
387
|
-
attractions: RetailAttraction[];
|
|
388
|
-
specials: RetailSpecial[];
|
|
389
|
-
}
|
|
390
|
-
/** A Center's public price list: walk-in (matrix) rates + website specials.
|
|
391
|
-
* Read-only, anonymous — drives a printed-menu-style pricing page that always
|
|
392
|
-
* matches the operator's live config. Not a booking surface. */
|
|
393
|
-
declare function listRetailPricing<T = RetailPricing>(client: BowlosClient, args: CenterScoped): Promise<T>;
|
|
394
|
-
|
|
395
|
-
/** Wire contracts derived from convex/public_api.ts validators and success payloads.
|
|
396
|
-
* IDs cross the HTTP gateway as strings; envelopes are unwrapped by BowlosClient.
|
|
397
|
-
* ExportMyDataResult preserves the existing v1 export, including its raw records. */
|
|
398
|
-
type UpdateMyProfileArgs = {
|
|
399
|
-
fullName?: string | undefined;
|
|
400
|
-
mobile?: string | null | undefined;
|
|
401
|
-
marketingOptIn?: boolean | undefined;
|
|
402
|
-
preferredCenterId?: string | null | undefined;
|
|
403
|
-
brandId: string;
|
|
404
|
-
expectedVersion: number;
|
|
405
|
-
};
|
|
406
|
-
type UpdateMyProfileResult = {
|
|
407
|
-
id: string;
|
|
408
|
-
version: number;
|
|
409
|
-
};
|
|
410
|
-
type GetMyCommunicationPrefsArgs = {
|
|
411
|
-
brandId: string;
|
|
412
|
-
};
|
|
413
|
-
type GetMyCommunicationPrefsResult = {
|
|
414
|
-
email: {
|
|
415
|
-
status: "unsubscribed" | "subscribed";
|
|
416
|
-
version: number;
|
|
417
|
-
};
|
|
418
|
-
sms: {
|
|
419
|
-
status: "unsubscribed" | "subscribed";
|
|
420
|
-
version: number;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
type SetMyCommunicationPrefArgs = {
|
|
424
|
-
acceptedTerms?: boolean | undefined;
|
|
425
|
-
brandId: string;
|
|
426
|
-
status: "unsubscribed" | "subscribed";
|
|
427
|
-
channel: "email" | "sms";
|
|
428
|
-
};
|
|
429
|
-
type SetMyCommunicationPrefResult = {
|
|
430
|
-
status: "unsubscribed" | "subscribed";
|
|
431
|
-
version: number;
|
|
432
|
-
};
|
|
433
|
-
type SetMyMobileArgs = {
|
|
434
|
-
brandId: string;
|
|
435
|
-
mobile: string;
|
|
436
|
-
};
|
|
437
|
-
type SetMyMobileResult = {
|
|
438
|
-
mobile: string;
|
|
439
|
-
};
|
|
440
|
-
type SubmitSupportRequestArgs = {
|
|
441
|
-
centerId?: string | undefined;
|
|
442
|
-
brandId: string;
|
|
443
|
-
message: string;
|
|
444
|
-
};
|
|
445
|
-
type SubmitSupportRequestResult = {
|
|
446
|
-
submittedAt: number;
|
|
447
|
-
};
|
|
448
|
-
type DeleteMyAccountArgs = {
|
|
449
|
-
brandId: string;
|
|
450
|
-
previewToken?: string;
|
|
451
|
-
} & ({
|
|
452
|
-
confirmation: string;
|
|
453
|
-
confirmPhrase?: string;
|
|
454
|
-
} | {
|
|
455
|
-
confirmPhrase: string;
|
|
456
|
-
confirmation?: string;
|
|
457
|
-
});
|
|
458
|
-
type DeleteMyAccountResult = {
|
|
459
|
-
deletedAt: number;
|
|
460
|
-
};
|
|
461
|
-
type ExportMyDataArgs = {
|
|
462
|
-
brandId: string;
|
|
463
|
-
};
|
|
464
|
-
type ExportMyDataResult = {
|
|
465
|
-
exportedAt: number;
|
|
466
|
-
customer: {
|
|
467
|
-
id: string;
|
|
468
|
-
displayId: string;
|
|
469
|
-
brandId: string;
|
|
470
|
-
fullName: string;
|
|
471
|
-
email: string;
|
|
472
|
-
mobile: string | undefined;
|
|
473
|
-
marketingOptIn: boolean;
|
|
474
|
-
preferredCenterId: string | undefined;
|
|
475
|
-
customerSinceMs: number | undefined;
|
|
476
|
-
};
|
|
477
|
-
reservations: {
|
|
478
|
-
_id: string;
|
|
479
|
-
_creationTime: number;
|
|
480
|
-
deletedAt?: number | undefined;
|
|
481
|
-
deletedBy?: string | undefined;
|
|
482
|
-
deletionReason?: string | undefined;
|
|
483
|
-
demoSeedRunId?: string | undefined;
|
|
484
|
-
demoSeedKey?: string | undefined;
|
|
485
|
-
subtypeId?: string | undefined;
|
|
486
|
-
flashSaleEventId?: string | undefined;
|
|
487
|
-
pricePlanId?: string | undefined;
|
|
488
|
-
tierDiscountCents?: number | undefined;
|
|
489
|
-
tierDiscountLabel?: string | undefined;
|
|
490
|
-
flashSaleItemId?: string | undefined;
|
|
491
|
-
stripeMode?: "live" | "test" | undefined;
|
|
492
|
-
units?: number | undefined;
|
|
493
|
-
persons?: number | undefined;
|
|
494
|
-
games?: number | undefined;
|
|
495
|
-
stripeCardBrand?: string | undefined;
|
|
496
|
-
stripeCardLast4?: string | undefined;
|
|
497
|
-
refundedCents?: number | undefined;
|
|
498
|
-
compedCents?: number | undefined;
|
|
499
|
-
needsUnitReassignment?: boolean | undefined;
|
|
500
|
-
paymentReference?: string | undefined;
|
|
501
|
-
stripePaymentIntentId?: string | undefined;
|
|
502
|
-
stripeConnectedAccountId?: string | undefined;
|
|
503
|
-
confirmationEmailSentAt?: number | undefined;
|
|
504
|
-
cancellationEmailSentAt?: number | undefined;
|
|
505
|
-
paymentFailedEmailSentAt?: number | undefined;
|
|
506
|
-
modifiedEmailSentForVersion?: number | undefined;
|
|
507
|
-
reminderEmailSentForDate?: string | undefined;
|
|
508
|
-
checkInEmailSentAt?: number | undefined;
|
|
509
|
-
noShowEmailSentAt?: number | undefined;
|
|
510
|
-
completedEmailSentAt?: number | undefined;
|
|
511
|
-
statusReason?: string | undefined;
|
|
512
|
-
paymentLinkDispatchedAt?: number | undefined;
|
|
513
|
-
checkedInAt?: number | undefined;
|
|
514
|
-
completedAt?: number | undefined;
|
|
515
|
-
cancelledAt?: number | undefined;
|
|
516
|
-
noShowAt?: number | undefined;
|
|
517
|
-
personsCheckedIn?: number | undefined;
|
|
518
|
-
personsAttended?: number | undefined;
|
|
519
|
-
noShowSettlement?: {
|
|
520
|
-
bucket: string;
|
|
521
|
-
refundedCents: number;
|
|
522
|
-
idempotencyKey: string;
|
|
523
|
-
absentSeats: number;
|
|
524
|
-
absentDeltaCents: number;
|
|
525
|
-
creditedCents: number;
|
|
526
|
-
forfeitedCents: number;
|
|
527
|
-
settledAtMs: number;
|
|
528
|
-
} | undefined;
|
|
529
|
-
lastTransitionedBy?: string | undefined;
|
|
530
|
-
recurringProfileId?: string | undefined;
|
|
531
|
-
recurringInstanceIndex?: number | undefined;
|
|
532
|
-
flaggedAt?: number | undefined;
|
|
533
|
-
flagReason?: string | undefined;
|
|
534
|
-
packageOrderId?: string | undefined;
|
|
535
|
-
shareToken?: string | undefined;
|
|
536
|
-
customerId: string;
|
|
537
|
-
brandId: string;
|
|
538
|
-
centerId: string;
|
|
539
|
-
status: "completed" | "pending" | "confirmed" | "confirmed_awaiting_payment" | "pending_review" | "checked_in" | "cancelled_forfeited" | "cancelled_credited" | "no_show";
|
|
540
|
-
displayId: string;
|
|
541
|
-
version: number;
|
|
542
|
-
attractionId: string;
|
|
543
|
-
productId: string;
|
|
544
|
-
unitIds: string[];
|
|
545
|
-
startMinuteOfDay: number;
|
|
546
|
-
endMinuteOfDay: number;
|
|
547
|
-
dateISO: string;
|
|
548
|
-
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
549
|
-
snapshot: {
|
|
550
|
-
addonSubtotalCents?: number | undefined;
|
|
551
|
-
addonLineItems?: {
|
|
552
|
-
rateMode: "flat" | "per_person" | "per_unit";
|
|
553
|
-
addonId: string;
|
|
554
|
-
quantity: number;
|
|
555
|
-
addonName: string;
|
|
556
|
-
unitPriceCents: number;
|
|
557
|
-
lineSubtotalCents: number;
|
|
558
|
-
}[] | undefined;
|
|
559
|
-
appliedDiscountSource?: string | undefined;
|
|
560
|
-
reservationFeeCents?: number | undefined;
|
|
561
|
-
reservationFeeLabel?: string | undefined;
|
|
562
|
-
purchaseSummary?: string | undefined;
|
|
563
|
-
productName?: string | undefined;
|
|
564
|
-
pricePlanName?: string | undefined;
|
|
565
|
-
pricePlanDescription?: string | undefined;
|
|
566
|
-
appliedDiscountLabel?: string | undefined;
|
|
567
|
-
shoesIncluded?: boolean | undefined;
|
|
568
|
-
taxLines?: {
|
|
569
|
-
label: string;
|
|
570
|
-
rateBasisPoints: number;
|
|
571
|
-
mode: "included" | "added";
|
|
572
|
-
rateId: string;
|
|
573
|
-
taxableBaseCents: number;
|
|
574
|
-
taxCents: number;
|
|
575
|
-
}[] | undefined;
|
|
576
|
-
taxTotalCents?: number | undefined;
|
|
577
|
-
taxIncludedTotalCents?: number | undefined;
|
|
578
|
-
taxExemptForgoneCents?: number | undefined;
|
|
579
|
-
taxExemptApplied?: boolean | undefined;
|
|
580
|
-
issuedAtMs: number;
|
|
581
|
-
validUntilMs: number;
|
|
582
|
-
baseRateCents: number;
|
|
583
|
-
baseSubtotalCents: number;
|
|
584
|
-
shoeAddOnCents: number;
|
|
585
|
-
preDiscountTotalCents: number;
|
|
586
|
-
appliedDiscountCents: number;
|
|
587
|
-
finalCents: number;
|
|
588
|
-
};
|
|
589
|
-
paidCents: number;
|
|
590
|
-
balanceDue: boolean;
|
|
591
|
-
sourceChannel: "native_ui" | "staff_created" | "public_api" | "mobile_app" | "ai_receptionist" | "flash_sale" | "waitlist";
|
|
592
|
-
idempotencyKey: string;
|
|
593
|
-
}[];
|
|
594
|
-
creditLedger: {
|
|
595
|
-
_id: string;
|
|
596
|
-
_creationTime: number;
|
|
597
|
-
centerId?: string | undefined;
|
|
598
|
-
demoSeedRunId?: string | undefined;
|
|
599
|
-
demoSeedKey?: string | undefined;
|
|
600
|
-
relatedReservationId?: string | undefined;
|
|
601
|
-
relatedEventOrderId?: string | undefined;
|
|
602
|
-
relatedPackageOrderId?: string | undefined;
|
|
603
|
-
relatedGameCardId?: string | undefined;
|
|
604
|
-
reversesEntryId?: string | undefined;
|
|
605
|
-
writtenByStaffId?: string | undefined;
|
|
606
|
-
writtenByUserId?: string | undefined;
|
|
607
|
-
issuedEmailSentAt?: number | undefined;
|
|
608
|
-
customerId: string;
|
|
609
|
-
brandId: string;
|
|
610
|
-
displayId: string;
|
|
611
|
-
amountCents: number;
|
|
612
|
-
entryType: "CREDIT_ISSUED_CANCEL" | "CREDIT_ISSUED_MANUAL" | "CREDIT_ISSUED_ADJUSTMENT" | "CREDIT_CONSUMED" | "CREDIT_REVERSAL" | "CREDIT_ISSUED_MEMBERSHIP_REFUND" | "CREDIT_ISSUED_EVENT_REFUND" | "CREDIT_ISSUED_NO_SHOW" | "WRITE_OFF";
|
|
613
|
-
note: string;
|
|
614
|
-
}[];
|
|
615
|
-
loyaltyLedger: {
|
|
616
|
-
_id: string;
|
|
617
|
-
_creationTime: number;
|
|
618
|
-
centerId?: string | undefined;
|
|
619
|
-
demoSeedRunId?: string | undefined;
|
|
620
|
-
demoSeedKey?: string | undefined;
|
|
621
|
-
relatedReservationId?: string | undefined;
|
|
622
|
-
writtenByStaffId?: string | undefined;
|
|
623
|
-
writtenByUserId?: string | undefined;
|
|
624
|
-
multiplierBreakdown?: {
|
|
625
|
-
baseRate: number;
|
|
626
|
-
tierMultiplier: number;
|
|
627
|
-
brandBonusMultiplier: number;
|
|
628
|
-
centerBonusMultiplier: number;
|
|
629
|
-
} | undefined;
|
|
630
|
-
customerId: string;
|
|
631
|
-
brandId: string;
|
|
632
|
-
displayId: string;
|
|
633
|
-
points: number;
|
|
634
|
-
entryType: "ACCRUAL_RESERVATION" | "REVERSAL_CANCELLATION" | "ADJUSTMENT_MANUAL" | "ADJUSTMENT_BONUS";
|
|
635
|
-
note: string;
|
|
636
|
-
qualificationYear: number;
|
|
637
|
-
}[];
|
|
638
|
-
loyaltyState: {
|
|
639
|
-
_id: string;
|
|
640
|
-
_creationTime: number;
|
|
641
|
-
demoSeedRunId?: string | undefined;
|
|
642
|
-
demoSeedKey?: string | undefined;
|
|
643
|
-
complimentaryTierRank?: number | undefined;
|
|
644
|
-
tierEmailSentForRank?: number | undefined;
|
|
645
|
-
customerId: string;
|
|
646
|
-
brandId: string;
|
|
647
|
-
version: number;
|
|
648
|
-
qualificationYear: number;
|
|
649
|
-
yearPoints: number;
|
|
650
|
-
currentTierRank: number;
|
|
651
|
-
floorTierRank: number;
|
|
652
|
-
} | null;
|
|
653
|
-
memberships: {
|
|
654
|
-
_id: string;
|
|
655
|
-
_creationTime: number;
|
|
656
|
-
centerId?: string | undefined;
|
|
657
|
-
deletedAt?: number | undefined;
|
|
658
|
-
deletedBy?: string | undefined;
|
|
659
|
-
deletionReason?: string | undefined;
|
|
660
|
-
demoSeedRunId?: string | undefined;
|
|
661
|
-
demoSeedKey?: string | undefined;
|
|
662
|
-
flashSaleEventId?: string | undefined;
|
|
663
|
-
tierDiscountCents?: number | undefined;
|
|
664
|
-
tierDiscountLabel?: string | undefined;
|
|
665
|
-
flashSaleItemId?: string | undefined;
|
|
666
|
-
stripeMode?: "live" | "test" | undefined;
|
|
667
|
-
reservationFeeCents?: number | undefined;
|
|
668
|
-
reservationFeeLabel?: string | undefined;
|
|
669
|
-
taxLines?: {
|
|
670
|
-
label: string;
|
|
671
|
-
rateBasisPoints: number;
|
|
672
|
-
mode: "included" | "added";
|
|
673
|
-
rateId: string;
|
|
674
|
-
taxableBaseCents: number;
|
|
675
|
-
taxCents: number;
|
|
676
|
-
}[] | undefined;
|
|
677
|
-
taxTotalCents?: number | undefined;
|
|
678
|
-
taxIncludedTotalCents?: number | undefined;
|
|
679
|
-
taxExemptForgoneCents?: number | undefined;
|
|
680
|
-
taxExemptApplied?: boolean | undefined;
|
|
681
|
-
refundedCents?: number | undefined;
|
|
682
|
-
stripeConnectedAccountId?: string | undefined;
|
|
683
|
-
cancellationEmailSentAt?: number | undefined;
|
|
684
|
-
shareToken?: string | undefined;
|
|
685
|
-
subtotalCents?: number | undefined;
|
|
686
|
-
duesCents?: number | undefined;
|
|
687
|
-
terminatedAt?: number | undefined;
|
|
688
|
-
purchaseSetupFeeCents?: number | undefined;
|
|
689
|
-
grandTotalCents?: number | undefined;
|
|
690
|
-
pricedAtCents?: number | undefined;
|
|
691
|
-
redeemedFromCodeId?: string | undefined;
|
|
692
|
-
billingContactCustomerId?: string | undefined;
|
|
693
|
-
enrollmentEmailSentAt?: number | undefined;
|
|
694
|
-
expirationEmailSentForPeriodEndingAt?: number | undefined;
|
|
695
|
-
stripeSubscriptionId?: string | undefined;
|
|
696
|
-
graceEnteredAt?: number | undefined;
|
|
697
|
-
terminationEmailSentAt?: number | undefined;
|
|
698
|
-
refundedAt?: number | undefined;
|
|
699
|
-
refundReason?: string | undefined;
|
|
700
|
-
customerId: string;
|
|
701
|
-
brandId: string;
|
|
702
|
-
status: "active" | "cancel_at_period_end" | "grace" | "terminated" | "reactivatable";
|
|
703
|
-
displayId: string;
|
|
704
|
-
version: number;
|
|
705
|
-
paymentReference: string;
|
|
706
|
-
templateId: string;
|
|
707
|
-
purchasedAt: number;
|
|
708
|
-
currentPeriodEndsAt: number;
|
|
709
|
-
isFamily: boolean;
|
|
710
|
-
isCorporate: boolean;
|
|
711
|
-
}[];
|
|
712
|
-
walletPasses: {
|
|
713
|
-
_id: string;
|
|
714
|
-
_creationTime: number;
|
|
715
|
-
deletedAt?: number | undefined;
|
|
716
|
-
deletedBy?: string | undefined;
|
|
717
|
-
deletionReason?: string | undefined;
|
|
718
|
-
demoSeedRunId?: string | undefined;
|
|
719
|
-
demoSeedKey?: string | undefined;
|
|
720
|
-
revokedAt?: number | undefined;
|
|
721
|
-
packageOrderId?: string | undefined;
|
|
722
|
-
reservationId?: string | undefined;
|
|
723
|
-
gameCardId?: string | undefined;
|
|
724
|
-
issuedEmailSentAt?: number | undefined;
|
|
725
|
-
membershipId?: string | undefined;
|
|
726
|
-
visualDesignId?: string | undefined;
|
|
727
|
-
applePassBundleRef?: string | undefined;
|
|
728
|
-
googleWalletJwt?: string | undefined;
|
|
729
|
-
distributedVia?: "email_link" | "sms_link" | "portal_download" | "app_prompt" | "qr_receipt" | "staff_issued" | undefined;
|
|
730
|
-
revokedReason?: string | undefined;
|
|
731
|
-
revokedEmailSentAt?: number | undefined;
|
|
732
|
-
lastPushedAt?: number | undefined;
|
|
733
|
-
appleAuthenticationToken?: string | undefined;
|
|
734
|
-
applePassUpdatedAt?: number | undefined;
|
|
735
|
-
customerId: string;
|
|
736
|
-
brandId: string;
|
|
737
|
-
kind: "reservation" | "package" | "game_card" | "membership";
|
|
738
|
-
displayId: string;
|
|
739
|
-
version: number;
|
|
740
|
-
token: string;
|
|
741
|
-
state: "active" | "suspended" | "revoked" | "checked_in" | "expired" | "issued" | "reissued";
|
|
742
|
-
generation: number;
|
|
743
|
-
}[];
|
|
744
|
-
emailSubscriptions: {
|
|
745
|
-
_id: string;
|
|
746
|
-
_creationTime: number;
|
|
747
|
-
centerId?: string | undefined;
|
|
748
|
-
statusReason?: string | undefined;
|
|
749
|
-
statusSource?: "system" | "staff" | "customer" | undefined;
|
|
750
|
-
statusChangedAt?: number | undefined;
|
|
751
|
-
statusChangedByUserId?: string | undefined;
|
|
752
|
-
customerId: string;
|
|
753
|
-
brandId: string;
|
|
754
|
-
status: "unsubscribed" | "subscribed";
|
|
755
|
-
version: number;
|
|
756
|
-
}[];
|
|
757
|
-
smsSubscriptions: {
|
|
758
|
-
_id: string;
|
|
759
|
-
_creationTime: number;
|
|
760
|
-
centerId?: string | undefined;
|
|
761
|
-
statusReason?: string | undefined;
|
|
762
|
-
statusSource?: "system" | "staff" | "customer" | undefined;
|
|
763
|
-
statusChangedAt?: number | undefined;
|
|
764
|
-
statusChangedByUserId?: string | undefined;
|
|
765
|
-
acceptedTermsAt?: number | undefined;
|
|
766
|
-
customerId: string;
|
|
767
|
-
brandId: string;
|
|
768
|
-
status: "unsubscribed" | "subscribed";
|
|
769
|
-
version: number;
|
|
770
|
-
}[];
|
|
771
|
-
};
|
|
772
|
-
type GetMyPackageOrdersArgs = {
|
|
773
|
-
brandId: string;
|
|
774
|
-
};
|
|
775
|
-
type GetMyPackageOrdersResult = {
|
|
776
|
-
id: string;
|
|
777
|
-
displayId: string;
|
|
778
|
-
packageName: string;
|
|
779
|
-
scheduledDate: string;
|
|
780
|
-
scheduledStartMinute: number;
|
|
781
|
-
quantity: number;
|
|
782
|
-
pricingMode: "per_lane" | "fixed" | "per_bowler";
|
|
783
|
-
grandTotalCents: number;
|
|
784
|
-
status: "pending_payment" | "cancelled" | "refunded" | "paid";
|
|
785
|
-
paidAt: number | null;
|
|
786
|
-
}[];
|
|
787
|
-
type GetMyPackageOrderArgs = {
|
|
788
|
-
brandId: string;
|
|
789
|
-
orderId: string;
|
|
790
|
-
};
|
|
791
|
-
type GetMyPackageOrderResult = {
|
|
792
|
-
id: string;
|
|
793
|
-
displayId: string;
|
|
794
|
-
packageName: string;
|
|
795
|
-
pricingMode: "per_lane" | "fixed" | "per_bowler";
|
|
796
|
-
quantity: number;
|
|
797
|
-
basePriceCents: number;
|
|
798
|
-
optionalAddons: {
|
|
799
|
-
inventoryExtraUnits?: number | undefined;
|
|
800
|
-
inventoryAttractionTypeKey?: string | undefined;
|
|
801
|
-
name: string;
|
|
802
|
-
addonId: string;
|
|
803
|
-
quantity: number;
|
|
804
|
-
pricePerUnitCents: number;
|
|
805
|
-
}[];
|
|
806
|
-
optionalAddonsTotalCents: number;
|
|
807
|
-
grandTotalCents: number;
|
|
808
|
-
scheduledDate: string;
|
|
809
|
-
scheduledStartMinute: number;
|
|
810
|
-
totalDurationMinutes: number;
|
|
811
|
-
status: "pending_payment" | "cancelled" | "refunded" | "paid";
|
|
812
|
-
paidAt: number | null;
|
|
813
|
-
};
|
|
814
|
-
type GetMyMembershipMembersArgs = {
|
|
815
|
-
brandId: string;
|
|
816
|
-
membershipId: string;
|
|
817
|
-
};
|
|
818
|
-
type GetMyMembershipMembersResult = {
|
|
819
|
-
seatCount: number;
|
|
820
|
-
canManage: boolean;
|
|
821
|
-
members: MembershipMember[];
|
|
822
|
-
};
|
|
823
|
-
type AddMyMembershipMemberArgs = {
|
|
824
|
-
brandId: string;
|
|
825
|
-
email: string;
|
|
826
|
-
membershipId: string;
|
|
827
|
-
};
|
|
828
|
-
type AddMyMembershipMemberResult = {
|
|
829
|
-
memberRowId: string;
|
|
830
|
-
walletPassId: string;
|
|
831
|
-
addedCustomerName: string;
|
|
832
|
-
};
|
|
833
|
-
type GetMyLoyaltyHistoryArgs = {
|
|
834
|
-
brandId: string;
|
|
835
|
-
};
|
|
836
|
-
type GetMyLoyaltyHistoryResult = {
|
|
837
|
-
id: string;
|
|
838
|
-
displayId: string;
|
|
839
|
-
entryType: "ACCRUAL_RESERVATION" | "REVERSAL_CANCELLATION" | "ADJUSTMENT_MANUAL" | "ADJUSTMENT_BONUS";
|
|
840
|
-
points: number;
|
|
841
|
-
qualificationYear: number;
|
|
842
|
-
note: string;
|
|
843
|
-
createdAt: number;
|
|
844
|
-
}[];
|
|
845
|
-
type GetReceiptArgs = {
|
|
846
|
-
displayId: string;
|
|
847
|
-
};
|
|
848
|
-
type GetReceiptResult = {
|
|
849
|
-
displayId: string;
|
|
850
|
-
status: "completed" | "pending" | "confirmed" | "confirmed_awaiting_payment" | "pending_review" | "checked_in" | "cancelled_forfeited" | "cancelled_credited" | "no_show";
|
|
851
|
-
balanceDue: boolean;
|
|
852
|
-
paidCents: number;
|
|
853
|
-
refundedCents: number;
|
|
854
|
-
dateISO: string;
|
|
855
|
-
startMinuteOfDay: number;
|
|
856
|
-
endMinuteOfDay: number;
|
|
857
|
-
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
858
|
-
units: number | undefined;
|
|
859
|
-
persons: number | undefined;
|
|
860
|
-
games: number | undefined;
|
|
861
|
-
snapshot: {
|
|
862
|
-
finalCents: number;
|
|
863
|
-
baseSubtotalCents: number;
|
|
864
|
-
addonSubtotalCents: number;
|
|
865
|
-
addonLineItems: {
|
|
866
|
-
rateMode: "flat" | "per_person" | "per_unit";
|
|
867
|
-
addonId: string;
|
|
868
|
-
quantity: number;
|
|
869
|
-
addonName: string;
|
|
870
|
-
unitPriceCents: number;
|
|
871
|
-
lineSubtotalCents: number;
|
|
872
|
-
}[];
|
|
873
|
-
preDiscountTotalCents: number;
|
|
874
|
-
appliedDiscountSource: string | null;
|
|
875
|
-
appliedDiscountCents: number;
|
|
876
|
-
reservationFeeCents: number | undefined;
|
|
877
|
-
reservationFeeLabel: string | null;
|
|
878
|
-
purchaseSummary: string | null;
|
|
879
|
-
pricePlanName: string | null;
|
|
880
|
-
pricePlanDescription: string | null;
|
|
881
|
-
appliedDiscountLabel: string | null;
|
|
882
|
-
shoesIncluded: boolean | null;
|
|
883
|
-
taxTotalCents: number | null;
|
|
884
|
-
taxLines: {
|
|
885
|
-
label: string;
|
|
886
|
-
rateBasisPoints: number;
|
|
887
|
-
mode: "included" | "added";
|
|
888
|
-
rateId: string;
|
|
889
|
-
taxableBaseCents: number;
|
|
890
|
-
taxCents: number;
|
|
891
|
-
}[] | null;
|
|
892
|
-
};
|
|
893
|
-
productName: string;
|
|
894
|
-
centerName: string;
|
|
895
|
-
customerName: string | null;
|
|
896
|
-
customerEmail: string | null;
|
|
897
|
-
originalPayment: {
|
|
898
|
-
stripePaymentIntentId: string;
|
|
899
|
-
cardBrand: string | null;
|
|
900
|
-
cardLast4: string | null;
|
|
901
|
-
} | null;
|
|
902
|
-
appliedModifications: {
|
|
903
|
-
id: string;
|
|
904
|
-
amountCents: number;
|
|
905
|
-
stripePaymentIntentId: string | null;
|
|
906
|
-
cardBrand: string | null;
|
|
907
|
-
cardLast4: string | null;
|
|
908
|
-
appliedAt: number | null;
|
|
909
|
-
}[];
|
|
910
|
-
creditLedgerEntries: {
|
|
911
|
-
id: string;
|
|
912
|
-
displayId: string;
|
|
913
|
-
entryType: "CREDIT_ISSUED_CANCEL" | "CREDIT_ISSUED_MANUAL" | "CREDIT_ISSUED_ADJUSTMENT" | "CREDIT_CONSUMED" | "CREDIT_REVERSAL" | "CREDIT_ISSUED_MEMBERSHIP_REFUND" | "CREDIT_ISSUED_EVENT_REFUND" | "CREDIT_ISSUED_NO_SHOW" | "WRITE_OFF";
|
|
914
|
-
amountCents: number;
|
|
915
|
-
note: string;
|
|
916
|
-
createdAt: number;
|
|
917
|
-
}[];
|
|
918
|
-
bookedAt: number;
|
|
919
|
-
};
|
|
920
|
-
type GetProductArgs = {
|
|
921
|
-
productId: string;
|
|
922
|
-
};
|
|
923
|
-
type GetProductResult = {
|
|
924
|
-
id: string;
|
|
925
|
-
displayId: string;
|
|
926
|
-
name: string;
|
|
927
|
-
description: string | null;
|
|
928
|
-
attractionId: string;
|
|
929
|
-
attractionName: string;
|
|
930
|
-
centerId: string;
|
|
931
|
-
brandId: string;
|
|
932
|
-
durationMinutes: number;
|
|
933
|
-
pricingMode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
934
|
-
minPartySize: number;
|
|
935
|
-
maxPartySize: number;
|
|
936
|
-
partyLabelSingular: string;
|
|
937
|
-
partyLabelPlural: string;
|
|
938
|
-
unitLabelSingular: string;
|
|
939
|
-
unitLabelPlural: string;
|
|
940
|
-
gameLabelSingular: string;
|
|
941
|
-
gameLabelPlural: string;
|
|
942
|
-
minDurationMinutes: number;
|
|
943
|
-
durationIncrementMinutes: number;
|
|
944
|
-
maxDurationMinutes: number;
|
|
945
|
-
maxAdvanceDays: number | null;
|
|
946
|
-
shoeMode: "included" | "addon" | "per_offer";
|
|
947
|
-
defaultShoeAddonId: string | null;
|
|
948
|
-
};
|
|
949
|
-
type GetMembershipArgs = {
|
|
950
|
-
shareToken?: string | undefined;
|
|
951
|
-
templateId: string;
|
|
952
|
-
};
|
|
953
|
-
type GetMembershipResult = {
|
|
954
|
-
id: string;
|
|
955
|
-
displayId: string;
|
|
956
|
-
name: string;
|
|
957
|
-
description: string | null;
|
|
958
|
-
type: "space_availability" | "game_pass" | "hybrid";
|
|
959
|
-
recurringPriceCents: number;
|
|
960
|
-
recurringCadence: "monthly" | "annual" | "one_time";
|
|
961
|
-
setupFeeCents: number;
|
|
962
|
-
fixedStartDate: string | null;
|
|
963
|
-
fixedEndDate: string | null;
|
|
964
|
-
entitlements: {
|
|
965
|
-
attractionTypeKey: string;
|
|
966
|
-
gamesPerPeriod: number | null;
|
|
967
|
-
unlimited: boolean;
|
|
968
|
-
gamesPerDay: number | null;
|
|
969
|
-
includesShoeRental: boolean;
|
|
970
|
-
sessionDurationMinutes: number | null;
|
|
971
|
-
}[];
|
|
972
|
-
gracePeriodDays: number;
|
|
973
|
-
namedMemberSeatCount: number | null;
|
|
974
|
-
};
|
|
975
|
-
type GetGameCardArgs = {
|
|
976
|
-
shareToken?: string | undefined;
|
|
977
|
-
templateId: string;
|
|
978
|
-
};
|
|
979
|
-
type GetGameCardResult = {
|
|
980
|
-
id: string;
|
|
981
|
-
brandId: string;
|
|
982
|
-
displayId: string;
|
|
983
|
-
name: string;
|
|
984
|
-
description: string | null;
|
|
985
|
-
totalGames: number;
|
|
986
|
-
expiryMonths: number;
|
|
987
|
-
priceCents: number;
|
|
988
|
-
shoesIncluded: boolean;
|
|
989
|
-
};
|
|
990
|
-
type ListProductSubtypesArgs = {
|
|
991
|
-
productId: string;
|
|
992
|
-
};
|
|
993
|
-
type ListProductSubtypesResult = {
|
|
994
|
-
id: string;
|
|
995
|
-
name: string;
|
|
996
|
-
upcharge: {
|
|
997
|
-
kind: "flat" | "percent" | "replacement";
|
|
998
|
-
value: number;
|
|
999
|
-
};
|
|
1000
|
-
}[];
|
|
1001
|
-
type ListBrandMembershipsArgs = {
|
|
1002
|
-
brandId: string;
|
|
1003
|
-
};
|
|
1004
|
-
type ListBrandMembershipsResult = {
|
|
1005
|
-
id: string;
|
|
1006
|
-
displayId: string;
|
|
1007
|
-
name: string;
|
|
1008
|
-
description: string | null;
|
|
1009
|
-
type: "space_availability" | "game_pass" | "hybrid";
|
|
1010
|
-
recurringPriceCents: number;
|
|
1011
|
-
recurringCadence: "monthly" | "annual" | "one_time";
|
|
1012
|
-
availableAtCenters: string | string[];
|
|
1013
|
-
}[];
|
|
1014
|
-
type GetPackagesLabelArgs = {
|
|
1015
|
-
brandId: string;
|
|
1016
|
-
};
|
|
1017
|
-
type GetPackagesLabelResult = {
|
|
1018
|
-
label: string;
|
|
1019
|
-
};
|
|
1020
|
-
type PreviewSlotPricesArgs = {
|
|
1021
|
-
units?: number | undefined;
|
|
1022
|
-
persons?: number | undefined;
|
|
1023
|
-
games?: number | undefined;
|
|
1024
|
-
centerId: string;
|
|
1025
|
-
productId: string;
|
|
1026
|
-
dateISO: string;
|
|
1027
|
-
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
1028
|
-
duration: number;
|
|
1029
|
-
slots: number[];
|
|
1030
|
-
};
|
|
1031
|
-
type PreviewSlotPricesResult = {
|
|
1032
|
-
startMinuteOfDay: number;
|
|
1033
|
-
headlinePriceCents: number | null;
|
|
1034
|
-
}[];
|
|
1035
|
-
type ListHoursArgs = {
|
|
1036
|
-
centerId: string;
|
|
1037
|
-
};
|
|
1038
|
-
type ListHoursResult = {
|
|
1039
|
-
defaultHours: {
|
|
1040
|
-
attractionId: string;
|
|
1041
|
-
attractionName: string;
|
|
1042
|
-
fromDate: string;
|
|
1043
|
-
toDate: string;
|
|
1044
|
-
weeklyHours: ({
|
|
1045
|
-
openMinute: number;
|
|
1046
|
-
closeMinute: number;
|
|
1047
|
-
} | null)[];
|
|
1048
|
-
}[];
|
|
1049
|
-
exceptions: {
|
|
1050
|
-
attractionId: string;
|
|
1051
|
-
attractionName: string;
|
|
1052
|
-
productId: string | null;
|
|
1053
|
-
type: "available" | "blocked";
|
|
1054
|
-
startMinuteOfDay: number;
|
|
1055
|
-
endMinuteOfDay: number;
|
|
1056
|
-
daysOfWeek: number[] | null;
|
|
1057
|
-
singleDate: string | null;
|
|
1058
|
-
}[];
|
|
1059
|
-
};
|
|
1060
|
-
type GetOperatingHoursArgs = {
|
|
1061
|
-
productId: string;
|
|
1062
|
-
dateISO: string;
|
|
1063
|
-
};
|
|
1064
|
-
type GetOperatingHoursResult = {
|
|
1065
|
-
openMinute: number;
|
|
1066
|
-
closeMinute: number;
|
|
1067
|
-
} | null;
|
|
1068
|
-
type GetCenterOperatingHoursForTypeArgs = {
|
|
1069
|
-
centerId: string;
|
|
1070
|
-
dateISO: string;
|
|
1071
|
-
attractionTypeKey: string;
|
|
1072
|
-
};
|
|
1073
|
-
type GetCenterOperatingHoursForTypeResult = {
|
|
1074
|
-
openMinute: number;
|
|
1075
|
-
closeMinute: number;
|
|
1076
|
-
} | null;
|
|
1077
|
-
type ListCentersArgs = {
|
|
1078
|
-
brandId: string;
|
|
1079
|
-
};
|
|
1080
|
-
type ListCentersResult = {
|
|
1081
|
-
id: string;
|
|
1082
|
-
displayId: string;
|
|
1083
|
-
name: string;
|
|
1084
|
-
timezone: string;
|
|
1085
|
-
customWebsiteUrl: string | null;
|
|
1086
|
-
status: "active" | "suspended" | "churned" | "onboarding" | "trial";
|
|
1087
|
-
address: {
|
|
1088
|
-
line2?: string | undefined;
|
|
1089
|
-
line1: string;
|
|
1090
|
-
city: string;
|
|
1091
|
-
region: string;
|
|
1092
|
-
postalCode: string;
|
|
1093
|
-
country: string;
|
|
1094
|
-
} | null | undefined;
|
|
1095
|
-
}[];
|
|
1096
|
-
type CancelMyMembershipArgs = {
|
|
1097
|
-
reason?: string | undefined;
|
|
1098
|
-
brandId: string;
|
|
1099
|
-
idempotencyKey: string;
|
|
1100
|
-
membershipId: string;
|
|
1101
|
-
expectedVersion: number;
|
|
1102
|
-
};
|
|
1103
|
-
type CancelMyMembershipResult = {
|
|
1104
|
-
id: string;
|
|
1105
|
-
version: number;
|
|
1106
|
-
status: "cancel_at_period_end";
|
|
1107
|
-
currentPeriodEndsAt: number;
|
|
1108
|
-
};
|
|
1109
|
-
type ApplyMyModificationArgs = {
|
|
1110
|
-
newGames?: number | undefined;
|
|
1111
|
-
newAddons?: {
|
|
1112
|
-
addonId: string;
|
|
1113
|
-
quantity: number;
|
|
1114
|
-
}[] | undefined;
|
|
1115
|
-
refundMode?: "refund" | "credit" | undefined;
|
|
1116
|
-
applyCredit?: boolean | undefined;
|
|
1117
|
-
brandId: string;
|
|
1118
|
-
idempotencyKey: string;
|
|
1119
|
-
reservationId: string;
|
|
1120
|
-
newDateISO: string;
|
|
1121
|
-
newStartMinuteOfDay: number;
|
|
1122
|
-
newEndMinuteOfDay: number;
|
|
1123
|
-
newUnits: number;
|
|
1124
|
-
newPersons: number;
|
|
1125
|
-
expectedVersion: number;
|
|
1126
|
-
};
|
|
1127
|
-
type ApplyMyModificationResult = {
|
|
1128
|
-
id: string;
|
|
1129
|
-
version: number;
|
|
1130
|
-
diffCents: number;
|
|
1131
|
-
refundedCents: number;
|
|
1132
|
-
creditedCents: number;
|
|
1133
|
-
newFinalCents: number;
|
|
1134
|
-
requiresPayment: false;
|
|
1135
|
-
pendingModificationId: null;
|
|
1136
|
-
} | {
|
|
1137
|
-
id: string;
|
|
1138
|
-
version: number;
|
|
1139
|
-
diffCents: number;
|
|
1140
|
-
refundedCents: number;
|
|
1141
|
-
creditedCents: number;
|
|
1142
|
-
newFinalCents: number;
|
|
1143
|
-
requiresPayment: true;
|
|
1144
|
-
pendingModificationId: string;
|
|
1145
|
-
};
|
|
1146
|
-
type CancelCheckoutPaymentArgs = {
|
|
1147
|
-
refToken: string;
|
|
1148
|
-
};
|
|
1149
|
-
type CancelCheckoutPaymentResult = {
|
|
1150
|
-
cancelled: boolean;
|
|
1151
|
-
};
|
|
1152
|
-
interface MembershipMember {
|
|
1153
|
-
id: string | null;
|
|
1154
|
-
customerId: string;
|
|
1155
|
-
customerName: string;
|
|
1156
|
-
customerEmail: string | null;
|
|
1157
|
-
isPayingMember: boolean;
|
|
1158
|
-
addedAt: number;
|
|
1159
|
-
}
|
|
1160
|
-
type AccountDeletionPreview = {
|
|
1161
|
-
memberships: Array<{
|
|
1162
|
-
id: string;
|
|
1163
|
-
name: string;
|
|
1164
|
-
status: string;
|
|
1165
|
-
endsAt: number;
|
|
1166
|
-
autoRenew: boolean;
|
|
1167
|
-
willCancelStripe: boolean;
|
|
1168
|
-
forfeitsRemainingTime: boolean;
|
|
1169
|
-
}>;
|
|
1170
|
-
upcoming: Array<{
|
|
1171
|
-
kind: "reservation" | "party" | "event";
|
|
1172
|
-
id: string;
|
|
1173
|
-
displayId: string;
|
|
1174
|
-
date: string;
|
|
1175
|
-
centerName: string;
|
|
1176
|
-
refundPreview: {
|
|
1177
|
-
refundCents: number;
|
|
1178
|
-
feeCents: number;
|
|
1179
|
-
creditCents: number;
|
|
1180
|
-
policyLabel: string;
|
|
1181
|
-
};
|
|
1182
|
-
}>;
|
|
1183
|
-
loses: string[];
|
|
1184
|
-
confirmPhrase: "DELETE";
|
|
1185
|
-
previewToken: string;
|
|
1186
|
-
};
|
|
1187
|
-
type ExportMyDataV2Result = {
|
|
1188
|
-
url: string;
|
|
1189
|
-
expiresAt: number;
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
type PreviewBookingChangeArgs = Omit<ApplyMyModificationArgs, "expectedVersion" | "idempotencyKey" | "refundMode" | "applyCredit"> & {
|
|
1193
|
-
centerId?: string;
|
|
1194
|
-
};
|
|
1195
|
-
type ApplyBookingChangeArgs = ApplyMyModificationArgs & {
|
|
1196
|
-
centerId?: string;
|
|
1197
|
-
};
|
|
1198
|
-
type BookingChangePreview = {
|
|
1199
|
-
eligible: boolean;
|
|
1200
|
-
reason: string | null;
|
|
1201
|
-
diffCents: number;
|
|
1202
|
-
oldFinalCents: number;
|
|
1203
|
-
newFinalCents: number;
|
|
1204
|
-
newSnapshot: Record<string, unknown>;
|
|
1205
|
-
newUnitIds: string[];
|
|
1206
|
-
newPricePlanId?: string | null;
|
|
1207
|
-
};
|
|
1208
|
-
type PendingBookingChangeArgs = {
|
|
1209
|
-
brandId: string;
|
|
1210
|
-
centerId?: string;
|
|
1211
|
-
pendingModificationId: string;
|
|
1212
|
-
};
|
|
1213
|
-
type PendingBookingChange = {
|
|
1214
|
-
id: string;
|
|
1215
|
-
reservationId: string;
|
|
1216
|
-
status: "pending_payment" | "applied" | "expired" | "cancelled" | "failed_slot_taken";
|
|
1217
|
-
diffCents: number;
|
|
1218
|
-
expiresAt: number;
|
|
1219
|
-
appliedAt: number | null;
|
|
1220
|
-
};
|
|
1221
|
-
type BookingChangePaymentArgs = {
|
|
1222
|
-
pendingModificationId: string;
|
|
1223
|
-
brandId?: string;
|
|
1224
|
-
centerId?: string;
|
|
1225
|
-
};
|
|
1226
|
-
type BookingChangePayment = {
|
|
1227
|
-
paymentIntentId: string;
|
|
1228
|
-
clientSecret: string;
|
|
1229
|
-
amountCents: number;
|
|
1230
|
-
customerSessionClientSecret: string;
|
|
1231
|
-
stripeAccount: string;
|
|
1232
|
-
stripeMode: "test" | "live";
|
|
1233
|
-
merchantDisplayName: string;
|
|
1234
|
-
publishableKey: string;
|
|
1235
|
-
};
|
|
1236
|
-
type MembershipBillingPortalArgs = {
|
|
1237
|
-
membershipId: string;
|
|
1238
|
-
returnUrl: string;
|
|
1239
|
-
brandId?: string;
|
|
1240
|
-
centerId?: string;
|
|
1241
|
-
};
|
|
1242
|
-
type PayLinkArgs = {
|
|
1243
|
-
token: string;
|
|
1244
|
-
brandId?: string;
|
|
1245
|
-
centerId?: string;
|
|
1246
|
-
};
|
|
1247
|
-
type PayLink = {
|
|
1248
|
-
status: PendingBookingChange["status"];
|
|
1249
|
-
diffCents: number;
|
|
1250
|
-
appliedCreditCents: number;
|
|
1251
|
-
remainingDueCents: number;
|
|
1252
|
-
expiresAt: number;
|
|
1253
|
-
appliedAt: number | null;
|
|
1254
|
-
reservation: {
|
|
1255
|
-
displayId: string;
|
|
1256
|
-
dateISO: string;
|
|
1257
|
-
startMinuteOfDay: number;
|
|
1258
|
-
endMinuteOfDay: number;
|
|
1259
|
-
newFinalCents: number;
|
|
1260
|
-
oldFinalCents: number;
|
|
1261
|
-
};
|
|
1262
|
-
brand: {
|
|
1263
|
-
name: string | null;
|
|
1264
|
-
primaryColor: string | null;
|
|
1265
|
-
};
|
|
1266
|
-
};
|
|
1267
|
-
type PayLinkPayment = Omit<BookingChangePayment, "stripeAccount"> & {
|
|
1268
|
-
connectedAccountId: string;
|
|
1269
|
-
};
|
|
1270
|
-
declare function previewBookingChange(client: BowlosClient, args: PreviewBookingChangeArgs): Promise<BookingChangePreview>;
|
|
1271
|
-
/** Keep the same idempotencyKey when retrying one apply action. */
|
|
1272
|
-
declare function applyBookingChange(client: BowlosClient, args: ApplyBookingChangeArgs): Promise<ApplyMyModificationResult>;
|
|
1273
|
-
declare function getPendingBookingChange(client: BowlosClient, args: PendingBookingChangeArgs): Promise<PendingBookingChange>;
|
|
1274
|
-
declare function createBookingChangePayment(client: BowlosClient, args: BookingChangePaymentArgs): Promise<BookingChangePayment>;
|
|
1275
|
-
/** Returns the hosted URL; the site decides when to navigate. */
|
|
1276
|
-
declare function openMembershipBillingPortal(client: BowlosClient, args: MembershipBillingPortalArgs): Promise<{
|
|
1277
|
-
url: string;
|
|
1278
|
-
}>;
|
|
1279
|
-
declare function getPayLink(client: BowlosClient, args: PayLinkArgs): Promise<PayLink>;
|
|
1280
|
-
declare function createPayLinkPayment(client: BowlosClient, args: PayLinkArgs): Promise<PayLinkPayment>;
|
|
1281
|
-
|
|
1282
|
-
export { type SubmitSupportRequestResult as $, type AddMyMembershipMemberArgs as A, type GetPackagesLabelArgs as B, type CancelCheckoutPaymentArgs as C, type DeleteMyAccountArgs as D, type ExportMyDataArgs as E, type GetPackagesLabelResult as F, type GetCenterOperatingHoursForTypeArgs as G, type GetProductArgs as H, type GetProductResult as I, type GetReceiptArgs as J, type GetReceiptResult as K, type ListBrandMembershipsArgs as L, type ListBrandMembershipsResult as M, type ListCentersArgs as N, type ListCentersResult as O, type ListHoursArgs as P, type ListHoursResult as Q, type ListProductSubtypesArgs as R, type ListProductSubtypesResult as S, type AccountDeletionPreview as T, type PreviewSlotPricesArgs as U, type PreviewSlotPricesResult as V, type SetMyCommunicationPrefArgs as W, type SetMyCommunicationPrefResult as X, type SetMyMobileArgs as Y, type SetMyMobileResult as Z, type SubmitSupportRequestArgs as _, type AddMyMembershipMemberResult as a, getEventOffer as a$, type UpdateMyProfileArgs as a0, type UpdateMyProfileResult as a1, type CancelMyPendingBookingArgs as a2, type CancelMyPendingBookingResult as a3, type EmailVerificationTokenArgs as a4, type MyHoldArgs as a5, type GetCancellationPolicyArgs as a6, type CancellationPolicy as a7, type EmailVerificationSendStateArgs as a8, type EmailVerificationSendState as a9, type CatalogItem as aA, type CatalogResult as aB, type CatalogSection as aC, type CatalogSourceTable as aD, type CenterHoursArgs as aE, type CenterScoped as aF, type EventOffer as aG, type ListEventOffersArgs as aH, type MembershipBillingPortalArgs as aI, type MembershipMember as aJ, type PackageDetailArgs as aK, type PayLink as aL, type PayLinkArgs as aM, type PayLinkPayment as aN, type PendingBookingChange as aO, type PendingBookingChangeArgs as aP, type PreviewBookingChangeArgs as aQ, type PublicSurface as aR, type RetailAttraction as aS, type RetailPricing as aT, type RetailPricingMode as aU, type RetailSpecial as aV, type RetailWalkInRate as aW, applyBookingChange as aX, createBookingChangePayment as aY, createPayLinkPayment as aZ, getCenterHours as a_, type EmailVerificationStatus as aa, type GetMyGameCardArgs as ab, type GetMyGameCardResult as ac, type GetMyGameCardHistoryArgs as ad, type GetMyGameCardHistoryResult as ae, type GameCardRedemption as af, type MyHold as ag, type GetWalletPassUrlArgs as ah, type GetWalletPassUrlResult as ai, type ListBrandEventOffersArgs as aj, type ListBrandEventOffersResult as ak, type EmailVerificationArgs as al, type RequestEmailVerificationResult as am, type ApplyBookingChangeArgs as an, BOWLOS_ERROR_CODES as ao, type BookingChangePayment as ap, type BookingChangePaymentArgs as aq, type BookingChangePreview as ar, BowlosApiError as as, type BowlosApiErrorOptions as at, type BowlosErrorCode as au, type BrandCatalogArgs as av, type BrandEventOffer as aw, type CatalogActionType as ax, type CatalogArgs as ay, type CatalogCategory as az, type ApplyMyModificationArgs as b, getPackage as b0, getPayLink as b1, getPendingBookingChange as b2, listCatalog as b3, listEventOffers as b4, listEvents as b5, listGameCards as b6, listPackages as b7, listProducts as b8, listPublicMemberships as b9, listRetailPricing as ba, openMembershipBillingPortal as bb, previewBookingChange as bc, type ApplyMyModificationResult as c, type CancelCheckoutPaymentResult as d, type CancelMyMembershipArgs as e, type CancelMyMembershipResult as f, type DeleteMyAccountResult as g, type ExportMyDataResult as h, type ExportMyDataV2Result as i, type GetCenterOperatingHoursForTypeResult as j, type GetGameCardArgs as k, type GetGameCardResult as l, type GetMembershipArgs as m, type GetMembershipResult as n, type GetMyCommunicationPrefsArgs as o, type GetMyCommunicationPrefsResult as p, type GetMyLoyaltyHistoryArgs as q, type GetMyLoyaltyHistoryResult as r, type GetMyMembershipMembersArgs as s, type GetMyMembershipMembersResult as t, type GetMyPackageOrderArgs as u, type GetMyPackageOrderResult as v, type GetMyPackageOrdersArgs as w, type GetMyPackageOrdersResult as x, type GetOperatingHoursArgs as y, type GetOperatingHoursResult as z };
|