@bowlos/reservations 0.43.0 → 1.0.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 +14 -5
- package/CHANGELOG.md +22 -0
- package/HEADLESS.md +126 -41
- package/README.md +16 -0
- package/dist/{account-B4sZBmPI.d.cts → account-b8chVpED.d.cts} +27 -1
- package/dist/{account-B4sZBmPI.d.ts → account-b8chVpED.d.ts} +27 -1
- package/dist/{booking-change-DzYs9133.d.ts → booking-change-B-ADuVEz.d.cts} +77 -2
- package/dist/{booking-change-Dd4PVgd3.d.cts → booking-change-BrJ-XESC.d.ts} +77 -2
- package/dist/chunk-43WZ6TLQ.js +12 -0
- package/dist/chunk-43WZ6TLQ.js.map +1 -0
- package/dist/{chunk-4JMGS4YB.js → chunk-CTJODEHR.js} +27 -6
- package/dist/chunk-CTJODEHR.js.map +1 -0
- package/dist/{chunk-YAXBZJMI.js → chunk-EPYGIJRJ.js} +20 -3
- package/dist/chunk-EPYGIJRJ.js.map +1 -0
- package/dist/{chunk-YQRTBGXU.js → chunk-EXEKCMQ2.js} +57 -22
- package/dist/chunk-EXEKCMQ2.js.map +1 -0
- package/dist/{chunk-V4JRDYW4.js → chunk-IDRTMFJJ.js} +8 -3
- package/dist/chunk-IDRTMFJJ.js.map +1 -0
- package/dist/{chunk-T2E6AEC7.js → chunk-LFFANITL.js} +4 -11
- package/dist/chunk-LFFANITL.js.map +1 -0
- package/dist/components.cjs +357 -131
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +11 -5
- package/dist/components.d.ts +11 -5
- package/dist/components.js +200 -65
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +34 -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 +5 -4
- package/dist/index.js.map +1 -1
- package/dist/payments.cjs.map +1 -1
- package/dist/payments.d.cts +1 -1
- package/dist/payments.d.ts +1 -1
- package/dist/payments.js +5 -4
- package/dist/payments.js.map +1 -1
- package/dist/{react-C6NWC80d.d.cts → react-cqGEohr0.d.cts} +4 -2
- package/dist/{react-DVdtpw5n.d.ts → react-s4J-e10i.d.ts} +4 -2
- package/dist/react.cjs +90 -19
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +11 -5
- package/dist/react.d.ts +11 -5
- package/dist/react.js +5 -5
- package/package.json +2 -1
- package/templates/center-site/README.md +1 -0
- package/templates/center-site/app/book/event-reservation-form.tsx +276 -0
- package/templates/center-site/app/book/page.tsx +107 -49
- package/templates/center-site/app/catalog/page.tsx +3 -1
- package/templates/center-site/app/events/[slug]/page.tsx +7 -10
- package/templates/center-site/package.json +1 -1
- package/dist/chunk-4JMGS4YB.js.map +0 -1
- package/dist/chunk-T2E6AEC7.js.map +0 -1
- package/dist/chunk-V4JRDYW4.js.map +0 -1
- package/dist/chunk-YAXBZJMI.js.map +0 -1
- package/dist/chunk-YQRTBGXU.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -761,6 +761,11 @@ function listMyWaitlist(client, args) {
|
|
|
761
761
|
function leaveWaitlist(client, args) {
|
|
762
762
|
return client.call("leaveWaitlist", args, { auth: true });
|
|
763
763
|
}
|
|
764
|
+
function checkDuplicateBooking(client, args, opts) {
|
|
765
|
+
return client.call("checkDuplicateBooking", args, {
|
|
766
|
+
auth: opts?.auth ?? false
|
|
767
|
+
});
|
|
768
|
+
}
|
|
764
769
|
|
|
765
770
|
// src/account.ts
|
|
766
771
|
function getMyReservations(client, args) {
|
|
@@ -1089,6 +1094,30 @@ function cancelMyPendingBooking(client, args) {
|
|
|
1089
1094
|
});
|
|
1090
1095
|
}
|
|
1091
1096
|
|
|
1097
|
+
// src/time-label.ts
|
|
1098
|
+
function formatMinuteLabel(min) {
|
|
1099
|
+
const h24 = Math.floor(min / 60) % 24;
|
|
1100
|
+
const m = min % 60;
|
|
1101
|
+
const period = h24 < 12 ? "AM" : "PM";
|
|
1102
|
+
const h12 = h24 % 12 === 0 ? 12 : h24 % 12;
|
|
1103
|
+
return `${h12}:${m.toString().padStart(2, "0")} ${period}`;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
// src/event-offers.ts
|
|
1107
|
+
function eventOfferOptions(client, args) {
|
|
1108
|
+
return client.call("eventOfferOptions", args);
|
|
1109
|
+
}
|
|
1110
|
+
function isFixedSession(session) {
|
|
1111
|
+
return session.fixedDurationMinutes !== null;
|
|
1112
|
+
}
|
|
1113
|
+
function durationsForStart(options, startMinuteOfDay) {
|
|
1114
|
+
return options.find((option) => option.startMinuteOfDay === startMinuteOfDay)?.durationMinutes ?? [];
|
|
1115
|
+
}
|
|
1116
|
+
function formatSessionRange(startMinuteOfDay, endMinuteOfDay) {
|
|
1117
|
+
const nextDay = endMinuteOfDay >= 1440 ? " (next day)" : "";
|
|
1118
|
+
return `${formatMinuteLabel(startMinuteOfDay)}\u2013${formatMinuteLabel(endMinuteOfDay)}${nextDay}`;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1092
1121
|
// src/booking-change.ts
|
|
1093
1122
|
function previewBookingChange(client, args) {
|
|
1094
1123
|
return client.call("previewMyModification", args, { auth: true });
|
|
@@ -1141,6 +1170,7 @@ exports.cancelMyPendingBooking = cancelMyPendingBooking;
|
|
|
1141
1170
|
exports.cancelMyReservation = cancelMyReservation;
|
|
1142
1171
|
exports.changePassword = changePassword;
|
|
1143
1172
|
exports.checkAvailability = checkAvailability;
|
|
1173
|
+
exports.checkDuplicateBooking = checkDuplicateBooking;
|
|
1144
1174
|
exports.confirmEmailVerification = confirmEmailVerification;
|
|
1145
1175
|
exports.confirmWaitlistCard = confirmWaitlistCard;
|
|
1146
1176
|
exports.createBooking = createBooking;
|
|
@@ -1157,9 +1187,12 @@ exports.createPackageOrder = createPackageOrder;
|
|
|
1157
1187
|
exports.createPayLinkPayment = createPayLinkPayment;
|
|
1158
1188
|
exports.createWaitlistSetupIntent = createWaitlistSetupIntent;
|
|
1159
1189
|
exports.deleteMyAccount = deleteMyAccount;
|
|
1190
|
+
exports.durationsForStart = durationsForStart;
|
|
1191
|
+
exports.eventOfferOptions = eventOfferOptions;
|
|
1160
1192
|
exports.exportMyData = exportMyData;
|
|
1161
1193
|
exports.exportMyDataV2 = exportMyDataV2;
|
|
1162
1194
|
exports.extendMyHold = extendMyHold;
|
|
1195
|
+
exports.formatSessionRange = formatSessionRange;
|
|
1163
1196
|
exports.forwardInquiry = forwardInquiry;
|
|
1164
1197
|
exports.generateIdempotencyKey = generateIdempotencyKey;
|
|
1165
1198
|
exports.getCancellationPolicy = getCancellationPolicy;
|
|
@@ -1205,6 +1238,7 @@ exports.getPendingBookingChange = getPendingBookingChange;
|
|
|
1205
1238
|
exports.getProduct = getProduct;
|
|
1206
1239
|
exports.getReceipt = getReceipt;
|
|
1207
1240
|
exports.getWalletPassUrl = getWalletPassUrl;
|
|
1241
|
+
exports.isFixedSession = isFixedSession;
|
|
1208
1242
|
exports.joinWaitlist = joinWaitlist;
|
|
1209
1243
|
exports.leaveWaitlist = leaveWaitlist;
|
|
1210
1244
|
exports.listAddons = listAddons;
|