@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
package/dist/index.cjs
CHANGED
|
@@ -48,6 +48,11 @@ var BowlosApiError = class _BowlosApiError extends Error {
|
|
|
48
48
|
this.retryAfterSeconds = options.retryAfterSeconds;
|
|
49
49
|
Object.setPrototypeOf(this, _BowlosApiError.prototype);
|
|
50
50
|
}
|
|
51
|
+
/** Typed additive createAnonymousBooking slot-full details, when present. */
|
|
52
|
+
get slotFullDetails() {
|
|
53
|
+
const d = this.details;
|
|
54
|
+
return this.code === "VALIDATION_FAILED" && d?.reason === "slot_full" && typeof d.waitlistAvailable === "boolean" && typeof d.requested === "number" && typeof d.available === "number" ? d : void 0;
|
|
55
|
+
}
|
|
51
56
|
/** Too many requests — caller should back off `retryAfterSeconds`. */
|
|
52
57
|
get isRateLimited() {
|
|
53
58
|
return this.code === BOWLOS_ERROR_CODES.RATE_LIMITED;
|
|
@@ -733,6 +738,29 @@ function getCheckoutStatus(client, refToken) {
|
|
|
733
738
|
function abandonCheckout(client, refToken) {
|
|
734
739
|
return client.call("abandonCheckout", { refToken }, { auth: true });
|
|
735
740
|
}
|
|
741
|
+
function joinWaitlist(client, args) {
|
|
742
|
+
return client.call("joinWaitlist", args, {
|
|
743
|
+
auth: true
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
function createWaitlistSetupIntent(client, args) {
|
|
747
|
+
return client.call(
|
|
748
|
+
"createWaitlistSetupIntent",
|
|
749
|
+
args,
|
|
750
|
+
{ auth: true }
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
function confirmWaitlistCard(client, args) {
|
|
754
|
+
return client.call("confirmWaitlistCard", args, { auth: true });
|
|
755
|
+
}
|
|
756
|
+
function listMyWaitlist(client, args) {
|
|
757
|
+
return client.call("listMyWaitlist", args, {
|
|
758
|
+
auth: true
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
function leaveWaitlist(client, args) {
|
|
762
|
+
return client.call("leaveWaitlist", args, { auth: true });
|
|
763
|
+
}
|
|
736
764
|
|
|
737
765
|
// src/account.ts
|
|
738
766
|
function getMyReservations(client, args) {
|
|
@@ -1114,6 +1142,7 @@ exports.cancelMyReservation = cancelMyReservation;
|
|
|
1114
1142
|
exports.changePassword = changePassword;
|
|
1115
1143
|
exports.checkAvailability = checkAvailability;
|
|
1116
1144
|
exports.confirmEmailVerification = confirmEmailVerification;
|
|
1145
|
+
exports.confirmWaitlistCard = confirmWaitlistCard;
|
|
1117
1146
|
exports.createBooking = createBooking;
|
|
1118
1147
|
exports.createBookingChangePayment = createBookingChangePayment;
|
|
1119
1148
|
exports.createBowlosClient = createBowlosClient;
|
|
@@ -1126,6 +1155,7 @@ exports.createMembershipOrder = createMembershipOrder;
|
|
|
1126
1155
|
exports.createMembershipSubscriptionOrder = createMembershipSubscriptionOrder;
|
|
1127
1156
|
exports.createPackageOrder = createPackageOrder;
|
|
1128
1157
|
exports.createPayLinkPayment = createPayLinkPayment;
|
|
1158
|
+
exports.createWaitlistSetupIntent = createWaitlistSetupIntent;
|
|
1129
1159
|
exports.deleteMyAccount = deleteMyAccount;
|
|
1130
1160
|
exports.exportMyData = exportMyData;
|
|
1131
1161
|
exports.exportMyDataV2 = exportMyDataV2;
|
|
@@ -1175,6 +1205,8 @@ exports.getPendingBookingChange = getPendingBookingChange;
|
|
|
1175
1205
|
exports.getProduct = getProduct;
|
|
1176
1206
|
exports.getReceipt = getReceipt;
|
|
1177
1207
|
exports.getWalletPassUrl = getWalletPassUrl;
|
|
1208
|
+
exports.joinWaitlist = joinWaitlist;
|
|
1209
|
+
exports.leaveWaitlist = leaveWaitlist;
|
|
1178
1210
|
exports.listAddons = listAddons;
|
|
1179
1211
|
exports.listBrandEventOffers = listBrandEventOffers;
|
|
1180
1212
|
exports.listBrandMemberships = listBrandMemberships;
|
|
@@ -1184,6 +1216,7 @@ exports.listEventOffers = listEventOffers;
|
|
|
1184
1216
|
exports.listEvents = listEvents;
|
|
1185
1217
|
exports.listGameCards = listGameCards;
|
|
1186
1218
|
exports.listHours = listHours;
|
|
1219
|
+
exports.listMyWaitlist = listMyWaitlist;
|
|
1187
1220
|
exports.listPackages = listPackages;
|
|
1188
1221
|
exports.listProductSubtypes = listProductSubtypes;
|
|
1189
1222
|
exports.listProducts = listProducts;
|