@bowlos/reservations 0.41.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 +20 -5
- package/CHANGELOG.md +22 -0
- package/HEADLESS.md +187 -41
- package/README.md +77 -0
- package/dist/{account-DEX2Lr78.d.cts → account-b8chVpED.d.cts} +892 -14
- package/dist/{account-DEX2Lr78.d.ts → account-b8chVpED.d.ts} +892 -14
- package/dist/booking-change-B-ADuVEz.d.cts +562 -0
- package/dist/booking-change-BrJ-XESC.d.ts +562 -0
- package/dist/chunk-43WZ6TLQ.js +12 -0
- package/dist/chunk-43WZ6TLQ.js.map +1 -0
- package/dist/{chunk-VJIS56OO.js → chunk-CTJODEHR.js} +119 -7
- 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-BWJHRJN6.js → chunk-EXEKCMQ2.js} +57 -22
- package/dist/chunk-EXEKCMQ2.js.map +1 -0
- package/dist/{chunk-44WKP6MW.js → chunk-IDRTMFJJ.js} +36 -3
- package/dist/chunk-IDRTMFJJ.js.map +1 -0
- package/dist/{chunk-FMFHNBDH.js → chunk-LFFANITL.js} +98 -12
- package/dist/chunk-LFFANITL.js.map +1 -0
- package/dist/cli.cjs +5 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/components.cjs +670 -131
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +19 -7
- package/dist/components.d.ts +19 -7
- package/dist/components.js +304 -66
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +67 -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 +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 +6 -78
- package/dist/payments.js.map +1 -1
- package/dist/{react-CrRciA7I.d.ts → react-cqGEohr0.d.cts} +4 -2
- package/dist/{react-QJrsaOnN.d.cts → react-s4J-e10i.d.ts} +4 -2
- package/dist/react.cjs +202 -19
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +28 -6
- package/dist/react.d.ts +28 -6
- 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/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-BWJHRJN6.js.map +0 -1
- package/dist/chunk-FMFHNBDH.js.map +0 -1
- package/dist/chunk-VJIS56OO.js.map +0 -1
- package/dist/chunk-YAXBZJMI.js.map +0 -1
|
@@ -155,19 +155,6 @@ declare class BowlosClient {
|
|
|
155
155
|
/** Create a configured client. */
|
|
156
156
|
declare function createBowlosClient(config: BowlosClientConfig): BowlosClient;
|
|
157
157
|
|
|
158
|
-
/**
|
|
159
|
-
* Typed data surface for @bowlos/reservations — booking-funnel reads.
|
|
160
|
-
*
|
|
161
|
-
* Arg shapes mirror the gateway functions; result shapes type the headline
|
|
162
|
-
* fields and pass the rest through (`[key: string]: unknown`), so the backend's
|
|
163
|
-
* full breakdown can grow without an SDK release. Each read has a
|
|
164
|
-
* framework-agnostic function here and a React hook in `hooks.tsx`, sharing
|
|
165
|
-
* these types.
|
|
166
|
-
*
|
|
167
|
-
* This file is React-free, so it's exported from the core entry. The hooks
|
|
168
|
-
* (React) live in `hooks.tsx` under the React entry.
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
158
|
/** Inputs for `checkAvailability`. Times are minutes-of-day in the Center's tz. */
|
|
172
159
|
type AvailabilityArgs = {
|
|
173
160
|
productId: string;
|
|
@@ -314,6 +301,13 @@ declare function listAddons(client: BowlosClient, args: {
|
|
|
314
301
|
}): Promise<PublicAddon[]>;
|
|
315
302
|
/** Inputs for `availableStartTimes`. */
|
|
316
303
|
type StartTimesArgs = {
|
|
304
|
+
eventOfferSlug?: string;
|
|
305
|
+
centerId?: string;
|
|
306
|
+
brandId?: string;
|
|
307
|
+
subtypeId?: string;
|
|
308
|
+
units?: number;
|
|
309
|
+
persons?: number;
|
|
310
|
+
games?: number;
|
|
317
311
|
productId: string;
|
|
318
312
|
dateISO: string;
|
|
319
313
|
/** Booking length, to leave room before close. Default 60 on the server. */
|
|
@@ -774,6 +768,890 @@ declare function getCheckoutStatus(client: BowlosClient, refToken: string): Prom
|
|
|
774
768
|
declare function abandonCheckout(client: BowlosClient, refToken: string): Promise<{
|
|
775
769
|
ok: boolean;
|
|
776
770
|
}>;
|
|
771
|
+
declare function joinWaitlist(client: BowlosClient, args: JoinWaitlistArgs): Promise<JoinWaitlistResult>;
|
|
772
|
+
declare function createWaitlistSetupIntent(client: BowlosClient, args: WaitlistEntryArgs): Promise<WaitlistSetupIntent>;
|
|
773
|
+
declare function confirmWaitlistCard(client: BowlosClient, args: WaitlistEntryArgs & {
|
|
774
|
+
setupIntentId: string;
|
|
775
|
+
}): Promise<{
|
|
776
|
+
status: string;
|
|
777
|
+
}>;
|
|
778
|
+
declare function listMyWaitlist(client: BowlosClient, args: {
|
|
779
|
+
brandId: string;
|
|
780
|
+
centerId?: string;
|
|
781
|
+
}): Promise<MyWaitlistEntry[]>;
|
|
782
|
+
declare function leaveWaitlist(client: BowlosClient, args: WaitlistEntryArgs): Promise<{
|
|
783
|
+
status: "cancelled";
|
|
784
|
+
}>;
|
|
785
|
+
/** Advisory same-customer overlap check; times use the Center's local timezone. */
|
|
786
|
+
type DuplicateBookingArgs = AvailabilityArgs & {
|
|
787
|
+
centerId: string;
|
|
788
|
+
email?: string;
|
|
789
|
+
};
|
|
790
|
+
type DuplicateBookingResult = {
|
|
791
|
+
duplicate: boolean;
|
|
792
|
+
existingBooking: {
|
|
793
|
+
startMinuteOfDay: number;
|
|
794
|
+
endMinuteOfDay: number;
|
|
795
|
+
laneCount: number;
|
|
796
|
+
} | null;
|
|
797
|
+
};
|
|
798
|
+
declare function checkDuplicateBooking(client: BowlosClient, args: DuplicateBookingArgs, opts?: {
|
|
799
|
+
auth?: boolean;
|
|
800
|
+
}): Promise<DuplicateBookingResult>;
|
|
801
|
+
|
|
802
|
+
/** Wire contracts derived from convex/public_api.ts validators and success payloads.
|
|
803
|
+
* IDs cross the HTTP gateway as strings; envelopes are unwrapped by BowlosClient.
|
|
804
|
+
* ExportMyDataResult preserves the existing v1 export, including its raw records. */
|
|
805
|
+
type UpdateMyProfileArgs = {
|
|
806
|
+
fullName?: string | undefined;
|
|
807
|
+
mobile?: string | null | undefined;
|
|
808
|
+
marketingOptIn?: boolean | undefined;
|
|
809
|
+
preferredCenterId?: string | null | undefined;
|
|
810
|
+
brandId: string;
|
|
811
|
+
expectedVersion: number;
|
|
812
|
+
};
|
|
813
|
+
type UpdateMyProfileResult = {
|
|
814
|
+
id: string;
|
|
815
|
+
version: number;
|
|
816
|
+
};
|
|
817
|
+
type GetMyCommunicationPrefsArgs = {
|
|
818
|
+
brandId: string;
|
|
819
|
+
};
|
|
820
|
+
type GetMyCommunicationPrefsResult = {
|
|
821
|
+
email: {
|
|
822
|
+
status: "unsubscribed" | "subscribed";
|
|
823
|
+
version: number;
|
|
824
|
+
};
|
|
825
|
+
sms: {
|
|
826
|
+
status: "unsubscribed" | "subscribed";
|
|
827
|
+
version: number;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
type SetMyCommunicationPrefArgs = {
|
|
831
|
+
acceptedTerms?: boolean | undefined;
|
|
832
|
+
brandId: string;
|
|
833
|
+
status: "unsubscribed" | "subscribed";
|
|
834
|
+
channel: "email" | "sms";
|
|
835
|
+
};
|
|
836
|
+
type SetMyCommunicationPrefResult = {
|
|
837
|
+
status: "unsubscribed" | "subscribed";
|
|
838
|
+
version: number;
|
|
839
|
+
};
|
|
840
|
+
type SetMyMobileArgs = {
|
|
841
|
+
brandId: string;
|
|
842
|
+
mobile: string;
|
|
843
|
+
};
|
|
844
|
+
type SetMyMobileResult = {
|
|
845
|
+
mobile: string;
|
|
846
|
+
};
|
|
847
|
+
type SubmitSupportRequestArgs = {
|
|
848
|
+
centerId?: string | undefined;
|
|
849
|
+
brandId: string;
|
|
850
|
+
message: string;
|
|
851
|
+
};
|
|
852
|
+
type SubmitSupportRequestResult = {
|
|
853
|
+
submittedAt: number;
|
|
854
|
+
};
|
|
855
|
+
type DeleteMyAccountArgs = {
|
|
856
|
+
brandId: string;
|
|
857
|
+
previewToken?: string;
|
|
858
|
+
} & ({
|
|
859
|
+
confirmation: string;
|
|
860
|
+
confirmPhrase?: string;
|
|
861
|
+
} | {
|
|
862
|
+
confirmPhrase: string;
|
|
863
|
+
confirmation?: string;
|
|
864
|
+
});
|
|
865
|
+
type DeleteMyAccountResult = {
|
|
866
|
+
deletedAt: number;
|
|
867
|
+
};
|
|
868
|
+
type ExportMyDataArgs = {
|
|
869
|
+
brandId: string;
|
|
870
|
+
};
|
|
871
|
+
type ExportMyDataResult = {
|
|
872
|
+
exportedAt: number;
|
|
873
|
+
customer: {
|
|
874
|
+
id: string;
|
|
875
|
+
displayId: string;
|
|
876
|
+
brandId: string;
|
|
877
|
+
fullName: string;
|
|
878
|
+
email: string;
|
|
879
|
+
mobile: string | undefined;
|
|
880
|
+
marketingOptIn: boolean;
|
|
881
|
+
preferredCenterId: string | undefined;
|
|
882
|
+
customerSinceMs: number | undefined;
|
|
883
|
+
};
|
|
884
|
+
reservations: {
|
|
885
|
+
_id: string;
|
|
886
|
+
_creationTime: number;
|
|
887
|
+
deletedAt?: number | undefined;
|
|
888
|
+
deletedBy?: string | undefined;
|
|
889
|
+
deletionReason?: string | undefined;
|
|
890
|
+
demoSeedRunId?: string | undefined;
|
|
891
|
+
demoSeedKey?: string | undefined;
|
|
892
|
+
subtypeId?: string | undefined;
|
|
893
|
+
flashSaleEventId?: string | undefined;
|
|
894
|
+
pricePlanId?: string | undefined;
|
|
895
|
+
tierDiscountCents?: number | undefined;
|
|
896
|
+
tierDiscountLabel?: string | undefined;
|
|
897
|
+
flashSaleItemId?: string | undefined;
|
|
898
|
+
stripeMode?: "live" | "test" | undefined;
|
|
899
|
+
units?: number | undefined;
|
|
900
|
+
persons?: number | undefined;
|
|
901
|
+
games?: number | undefined;
|
|
902
|
+
stripeCardBrand?: string | undefined;
|
|
903
|
+
stripeCardLast4?: string | undefined;
|
|
904
|
+
refundedCents?: number | undefined;
|
|
905
|
+
compedCents?: number | undefined;
|
|
906
|
+
needsUnitReassignment?: boolean | undefined;
|
|
907
|
+
paymentReference?: string | undefined;
|
|
908
|
+
stripePaymentIntentId?: string | undefined;
|
|
909
|
+
stripeConnectedAccountId?: string | undefined;
|
|
910
|
+
confirmationEmailSentAt?: number | undefined;
|
|
911
|
+
cancellationEmailSentAt?: number | undefined;
|
|
912
|
+
paymentFailedEmailSentAt?: number | undefined;
|
|
913
|
+
modifiedEmailSentForVersion?: number | undefined;
|
|
914
|
+
reminderEmailSentForDate?: string | undefined;
|
|
915
|
+
checkInEmailSentAt?: number | undefined;
|
|
916
|
+
noShowEmailSentAt?: number | undefined;
|
|
917
|
+
completedEmailSentAt?: number | undefined;
|
|
918
|
+
statusReason?: string | undefined;
|
|
919
|
+
paymentLinkDispatchedAt?: number | undefined;
|
|
920
|
+
checkedInAt?: number | undefined;
|
|
921
|
+
completedAt?: number | undefined;
|
|
922
|
+
cancelledAt?: number | undefined;
|
|
923
|
+
noShowAt?: number | undefined;
|
|
924
|
+
personsCheckedIn?: number | undefined;
|
|
925
|
+
personsAttended?: number | undefined;
|
|
926
|
+
noShowSettlement?: {
|
|
927
|
+
bucket: string;
|
|
928
|
+
refundedCents: number;
|
|
929
|
+
idempotencyKey: string;
|
|
930
|
+
absentSeats: number;
|
|
931
|
+
absentDeltaCents: number;
|
|
932
|
+
creditedCents: number;
|
|
933
|
+
forfeitedCents: number;
|
|
934
|
+
settledAtMs: number;
|
|
935
|
+
} | undefined;
|
|
936
|
+
lastTransitionedBy?: string | undefined;
|
|
937
|
+
recurringProfileId?: string | undefined;
|
|
938
|
+
recurringInstanceIndex?: number | undefined;
|
|
939
|
+
flaggedAt?: number | undefined;
|
|
940
|
+
flagReason?: string | undefined;
|
|
941
|
+
packageOrderId?: string | undefined;
|
|
942
|
+
shareToken?: string | undefined;
|
|
943
|
+
customerId: string;
|
|
944
|
+
brandId: string;
|
|
945
|
+
centerId: string;
|
|
946
|
+
status: "completed" | "pending" | "confirmed" | "confirmed_awaiting_payment" | "pending_review" | "checked_in" | "cancelled_forfeited" | "cancelled_credited" | "no_show";
|
|
947
|
+
displayId: string;
|
|
948
|
+
version: number;
|
|
949
|
+
attractionId: string;
|
|
950
|
+
productId: string;
|
|
951
|
+
unitIds: string[];
|
|
952
|
+
startMinuteOfDay: number;
|
|
953
|
+
endMinuteOfDay: number;
|
|
954
|
+
dateISO: string;
|
|
955
|
+
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
956
|
+
snapshot: {
|
|
957
|
+
addonSubtotalCents?: number | undefined;
|
|
958
|
+
addonLineItems?: {
|
|
959
|
+
rateMode: "flat" | "per_person" | "per_unit";
|
|
960
|
+
addonId: string;
|
|
961
|
+
quantity: number;
|
|
962
|
+
addonName: string;
|
|
963
|
+
unitPriceCents: number;
|
|
964
|
+
lineSubtotalCents: number;
|
|
965
|
+
}[] | undefined;
|
|
966
|
+
appliedDiscountSource?: string | undefined;
|
|
967
|
+
reservationFeeCents?: number | undefined;
|
|
968
|
+
reservationFeeLabel?: string | undefined;
|
|
969
|
+
purchaseSummary?: string | undefined;
|
|
970
|
+
productName?: string | undefined;
|
|
971
|
+
pricePlanName?: string | undefined;
|
|
972
|
+
pricePlanDescription?: string | undefined;
|
|
973
|
+
appliedDiscountLabel?: string | undefined;
|
|
974
|
+
shoesIncluded?: boolean | undefined;
|
|
975
|
+
taxLines?: {
|
|
976
|
+
label: string;
|
|
977
|
+
rateBasisPoints: number;
|
|
978
|
+
mode: "included" | "added";
|
|
979
|
+
rateId: string;
|
|
980
|
+
taxableBaseCents: number;
|
|
981
|
+
taxCents: number;
|
|
982
|
+
}[] | undefined;
|
|
983
|
+
taxTotalCents?: number | undefined;
|
|
984
|
+
taxIncludedTotalCents?: number | undefined;
|
|
985
|
+
taxExemptForgoneCents?: number | undefined;
|
|
986
|
+
taxExemptApplied?: boolean | undefined;
|
|
987
|
+
issuedAtMs: number;
|
|
988
|
+
validUntilMs: number;
|
|
989
|
+
baseRateCents: number;
|
|
990
|
+
baseSubtotalCents: number;
|
|
991
|
+
shoeAddOnCents: number;
|
|
992
|
+
preDiscountTotalCents: number;
|
|
993
|
+
appliedDiscountCents: number;
|
|
994
|
+
finalCents: number;
|
|
995
|
+
};
|
|
996
|
+
paidCents: number;
|
|
997
|
+
balanceDue: boolean;
|
|
998
|
+
sourceChannel: "native_ui" | "staff_created" | "public_api" | "mobile_app" | "ai_receptionist" | "flash_sale" | "waitlist";
|
|
999
|
+
idempotencyKey: string;
|
|
1000
|
+
}[];
|
|
1001
|
+
creditLedger: {
|
|
1002
|
+
_id: string;
|
|
1003
|
+
_creationTime: number;
|
|
1004
|
+
centerId?: string | undefined;
|
|
1005
|
+
demoSeedRunId?: string | undefined;
|
|
1006
|
+
demoSeedKey?: string | undefined;
|
|
1007
|
+
relatedReservationId?: string | undefined;
|
|
1008
|
+
relatedEventOrderId?: string | undefined;
|
|
1009
|
+
relatedPackageOrderId?: string | undefined;
|
|
1010
|
+
relatedGameCardId?: string | undefined;
|
|
1011
|
+
reversesEntryId?: string | undefined;
|
|
1012
|
+
writtenByStaffId?: string | undefined;
|
|
1013
|
+
writtenByUserId?: string | undefined;
|
|
1014
|
+
issuedEmailSentAt?: number | undefined;
|
|
1015
|
+
customerId: string;
|
|
1016
|
+
brandId: string;
|
|
1017
|
+
displayId: string;
|
|
1018
|
+
amountCents: number;
|
|
1019
|
+
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";
|
|
1020
|
+
note: string;
|
|
1021
|
+
}[];
|
|
1022
|
+
loyaltyLedger: {
|
|
1023
|
+
_id: string;
|
|
1024
|
+
_creationTime: number;
|
|
1025
|
+
centerId?: string | undefined;
|
|
1026
|
+
demoSeedRunId?: string | undefined;
|
|
1027
|
+
demoSeedKey?: string | undefined;
|
|
1028
|
+
relatedReservationId?: string | undefined;
|
|
1029
|
+
writtenByStaffId?: string | undefined;
|
|
1030
|
+
writtenByUserId?: string | undefined;
|
|
1031
|
+
multiplierBreakdown?: {
|
|
1032
|
+
baseRate: number;
|
|
1033
|
+
tierMultiplier: number;
|
|
1034
|
+
brandBonusMultiplier: number;
|
|
1035
|
+
centerBonusMultiplier: number;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
customerId: string;
|
|
1038
|
+
brandId: string;
|
|
1039
|
+
displayId: string;
|
|
1040
|
+
points: number;
|
|
1041
|
+
entryType: "ACCRUAL_RESERVATION" | "REVERSAL_CANCELLATION" | "ADJUSTMENT_MANUAL" | "ADJUSTMENT_BONUS";
|
|
1042
|
+
note: string;
|
|
1043
|
+
qualificationYear: number;
|
|
1044
|
+
}[];
|
|
1045
|
+
loyaltyState: {
|
|
1046
|
+
_id: string;
|
|
1047
|
+
_creationTime: number;
|
|
1048
|
+
demoSeedRunId?: string | undefined;
|
|
1049
|
+
demoSeedKey?: string | undefined;
|
|
1050
|
+
complimentaryTierRank?: number | undefined;
|
|
1051
|
+
tierEmailSentForRank?: number | undefined;
|
|
1052
|
+
customerId: string;
|
|
1053
|
+
brandId: string;
|
|
1054
|
+
version: number;
|
|
1055
|
+
qualificationYear: number;
|
|
1056
|
+
yearPoints: number;
|
|
1057
|
+
currentTierRank: number;
|
|
1058
|
+
floorTierRank: number;
|
|
1059
|
+
} | null;
|
|
1060
|
+
memberships: {
|
|
1061
|
+
_id: string;
|
|
1062
|
+
_creationTime: number;
|
|
1063
|
+
centerId?: string | undefined;
|
|
1064
|
+
deletedAt?: number | undefined;
|
|
1065
|
+
deletedBy?: string | undefined;
|
|
1066
|
+
deletionReason?: string | undefined;
|
|
1067
|
+
demoSeedRunId?: string | undefined;
|
|
1068
|
+
demoSeedKey?: string | undefined;
|
|
1069
|
+
flashSaleEventId?: string | undefined;
|
|
1070
|
+
tierDiscountCents?: number | undefined;
|
|
1071
|
+
tierDiscountLabel?: string | undefined;
|
|
1072
|
+
flashSaleItemId?: string | undefined;
|
|
1073
|
+
stripeMode?: "live" | "test" | undefined;
|
|
1074
|
+
reservationFeeCents?: number | undefined;
|
|
1075
|
+
reservationFeeLabel?: string | undefined;
|
|
1076
|
+
taxLines?: {
|
|
1077
|
+
label: string;
|
|
1078
|
+
rateBasisPoints: number;
|
|
1079
|
+
mode: "included" | "added";
|
|
1080
|
+
rateId: string;
|
|
1081
|
+
taxableBaseCents: number;
|
|
1082
|
+
taxCents: number;
|
|
1083
|
+
}[] | undefined;
|
|
1084
|
+
taxTotalCents?: number | undefined;
|
|
1085
|
+
taxIncludedTotalCents?: number | undefined;
|
|
1086
|
+
taxExemptForgoneCents?: number | undefined;
|
|
1087
|
+
taxExemptApplied?: boolean | undefined;
|
|
1088
|
+
refundedCents?: number | undefined;
|
|
1089
|
+
stripeConnectedAccountId?: string | undefined;
|
|
1090
|
+
cancellationEmailSentAt?: number | undefined;
|
|
1091
|
+
shareToken?: string | undefined;
|
|
1092
|
+
subtotalCents?: number | undefined;
|
|
1093
|
+
duesCents?: number | undefined;
|
|
1094
|
+
terminatedAt?: number | undefined;
|
|
1095
|
+
purchaseSetupFeeCents?: number | undefined;
|
|
1096
|
+
grandTotalCents?: number | undefined;
|
|
1097
|
+
pricedAtCents?: number | undefined;
|
|
1098
|
+
redeemedFromCodeId?: string | undefined;
|
|
1099
|
+
billingContactCustomerId?: string | undefined;
|
|
1100
|
+
enrollmentEmailSentAt?: number | undefined;
|
|
1101
|
+
expirationEmailSentForPeriodEndingAt?: number | undefined;
|
|
1102
|
+
stripeSubscriptionId?: string | undefined;
|
|
1103
|
+
graceEnteredAt?: number | undefined;
|
|
1104
|
+
terminationEmailSentAt?: number | undefined;
|
|
1105
|
+
refundedAt?: number | undefined;
|
|
1106
|
+
refundReason?: string | undefined;
|
|
1107
|
+
customerId: string;
|
|
1108
|
+
brandId: string;
|
|
1109
|
+
status: "active" | "cancel_at_period_end" | "grace" | "terminated" | "reactivatable";
|
|
1110
|
+
displayId: string;
|
|
1111
|
+
version: number;
|
|
1112
|
+
paymentReference: string;
|
|
1113
|
+
templateId: string;
|
|
1114
|
+
purchasedAt: number;
|
|
1115
|
+
currentPeriodEndsAt: number;
|
|
1116
|
+
isFamily: boolean;
|
|
1117
|
+
isCorporate: boolean;
|
|
1118
|
+
}[];
|
|
1119
|
+
walletPasses: {
|
|
1120
|
+
_id: string;
|
|
1121
|
+
_creationTime: number;
|
|
1122
|
+
deletedAt?: number | undefined;
|
|
1123
|
+
deletedBy?: string | undefined;
|
|
1124
|
+
deletionReason?: string | undefined;
|
|
1125
|
+
demoSeedRunId?: string | undefined;
|
|
1126
|
+
demoSeedKey?: string | undefined;
|
|
1127
|
+
revokedAt?: number | undefined;
|
|
1128
|
+
packageOrderId?: string | undefined;
|
|
1129
|
+
reservationId?: string | undefined;
|
|
1130
|
+
gameCardId?: string | undefined;
|
|
1131
|
+
issuedEmailSentAt?: number | undefined;
|
|
1132
|
+
membershipId?: string | undefined;
|
|
1133
|
+
visualDesignId?: string | undefined;
|
|
1134
|
+
applePassBundleRef?: string | undefined;
|
|
1135
|
+
googleWalletJwt?: string | undefined;
|
|
1136
|
+
distributedVia?: "email_link" | "sms_link" | "portal_download" | "app_prompt" | "qr_receipt" | "staff_issued" | undefined;
|
|
1137
|
+
revokedReason?: string | undefined;
|
|
1138
|
+
revokedEmailSentAt?: number | undefined;
|
|
1139
|
+
lastPushedAt?: number | undefined;
|
|
1140
|
+
appleAuthenticationToken?: string | undefined;
|
|
1141
|
+
applePassUpdatedAt?: number | undefined;
|
|
1142
|
+
customerId: string;
|
|
1143
|
+
brandId: string;
|
|
1144
|
+
kind: "reservation" | "package" | "game_card" | "membership";
|
|
1145
|
+
displayId: string;
|
|
1146
|
+
version: number;
|
|
1147
|
+
token: string;
|
|
1148
|
+
state: "active" | "suspended" | "revoked" | "checked_in" | "expired" | "issued" | "reissued";
|
|
1149
|
+
generation: number;
|
|
1150
|
+
}[];
|
|
1151
|
+
emailSubscriptions: {
|
|
1152
|
+
_id: string;
|
|
1153
|
+
_creationTime: number;
|
|
1154
|
+
centerId?: string | undefined;
|
|
1155
|
+
statusReason?: string | undefined;
|
|
1156
|
+
statusSource?: "system" | "staff" | "customer" | undefined;
|
|
1157
|
+
statusChangedAt?: number | undefined;
|
|
1158
|
+
statusChangedByUserId?: string | undefined;
|
|
1159
|
+
customerId: string;
|
|
1160
|
+
brandId: string;
|
|
1161
|
+
status: "unsubscribed" | "subscribed";
|
|
1162
|
+
version: number;
|
|
1163
|
+
}[];
|
|
1164
|
+
smsSubscriptions: {
|
|
1165
|
+
_id: string;
|
|
1166
|
+
_creationTime: number;
|
|
1167
|
+
centerId?: string | undefined;
|
|
1168
|
+
statusReason?: string | undefined;
|
|
1169
|
+
statusSource?: "system" | "staff" | "customer" | undefined;
|
|
1170
|
+
statusChangedAt?: number | undefined;
|
|
1171
|
+
statusChangedByUserId?: string | undefined;
|
|
1172
|
+
acceptedTermsAt?: number | undefined;
|
|
1173
|
+
customerId: string;
|
|
1174
|
+
brandId: string;
|
|
1175
|
+
status: "unsubscribed" | "subscribed";
|
|
1176
|
+
version: number;
|
|
1177
|
+
}[];
|
|
1178
|
+
};
|
|
1179
|
+
type GetMyPackageOrdersArgs = {
|
|
1180
|
+
brandId: string;
|
|
1181
|
+
};
|
|
1182
|
+
type GetMyPackageOrdersResult = {
|
|
1183
|
+
id: string;
|
|
1184
|
+
displayId: string;
|
|
1185
|
+
packageName: string;
|
|
1186
|
+
scheduledDate: string;
|
|
1187
|
+
scheduledStartMinute: number;
|
|
1188
|
+
quantity: number;
|
|
1189
|
+
pricingMode: "per_lane" | "fixed" | "per_bowler";
|
|
1190
|
+
grandTotalCents: number;
|
|
1191
|
+
status: "pending_payment" | "cancelled" | "refunded" | "paid";
|
|
1192
|
+
paidAt: number | null;
|
|
1193
|
+
}[];
|
|
1194
|
+
type GetMyPackageOrderArgs = {
|
|
1195
|
+
brandId: string;
|
|
1196
|
+
orderId: string;
|
|
1197
|
+
};
|
|
1198
|
+
type GetMyPackageOrderResult = {
|
|
1199
|
+
id: string;
|
|
1200
|
+
displayId: string;
|
|
1201
|
+
packageName: string;
|
|
1202
|
+
pricingMode: "per_lane" | "fixed" | "per_bowler";
|
|
1203
|
+
quantity: number;
|
|
1204
|
+
basePriceCents: number;
|
|
1205
|
+
optionalAddons: {
|
|
1206
|
+
inventoryExtraUnits?: number | undefined;
|
|
1207
|
+
inventoryAttractionTypeKey?: string | undefined;
|
|
1208
|
+
name: string;
|
|
1209
|
+
addonId: string;
|
|
1210
|
+
quantity: number;
|
|
1211
|
+
pricePerUnitCents: number;
|
|
1212
|
+
}[];
|
|
1213
|
+
optionalAddonsTotalCents: number;
|
|
1214
|
+
grandTotalCents: number;
|
|
1215
|
+
scheduledDate: string;
|
|
1216
|
+
scheduledStartMinute: number;
|
|
1217
|
+
totalDurationMinutes: number;
|
|
1218
|
+
status: "pending_payment" | "cancelled" | "refunded" | "paid";
|
|
1219
|
+
paidAt: number | null;
|
|
1220
|
+
};
|
|
1221
|
+
type GetMyMembershipMembersArgs = {
|
|
1222
|
+
brandId: string;
|
|
1223
|
+
membershipId: string;
|
|
1224
|
+
};
|
|
1225
|
+
type GetMyMembershipMembersResult = {
|
|
1226
|
+
seatCount: number;
|
|
1227
|
+
canManage: boolean;
|
|
1228
|
+
members: MembershipMember[];
|
|
1229
|
+
};
|
|
1230
|
+
type AddMyMembershipMemberArgs = {
|
|
1231
|
+
brandId: string;
|
|
1232
|
+
email: string;
|
|
1233
|
+
membershipId: string;
|
|
1234
|
+
};
|
|
1235
|
+
type AddMyMembershipMemberResult = {
|
|
1236
|
+
memberRowId: string;
|
|
1237
|
+
walletPassId: string;
|
|
1238
|
+
addedCustomerName: string;
|
|
1239
|
+
};
|
|
1240
|
+
type GetMyLoyaltyHistoryArgs = {
|
|
1241
|
+
brandId: string;
|
|
1242
|
+
};
|
|
1243
|
+
type GetMyLoyaltyHistoryResult = {
|
|
1244
|
+
id: string;
|
|
1245
|
+
displayId: string;
|
|
1246
|
+
entryType: "ACCRUAL_RESERVATION" | "REVERSAL_CANCELLATION" | "ADJUSTMENT_MANUAL" | "ADJUSTMENT_BONUS";
|
|
1247
|
+
points: number;
|
|
1248
|
+
qualificationYear: number;
|
|
1249
|
+
note: string;
|
|
1250
|
+
createdAt: number;
|
|
1251
|
+
}[];
|
|
1252
|
+
type GetReceiptArgs = {
|
|
1253
|
+
displayId: string;
|
|
1254
|
+
};
|
|
1255
|
+
type GetReceiptResult = {
|
|
1256
|
+
displayId: string;
|
|
1257
|
+
status: "completed" | "pending" | "confirmed" | "confirmed_awaiting_payment" | "pending_review" | "checked_in" | "cancelled_forfeited" | "cancelled_credited" | "no_show";
|
|
1258
|
+
balanceDue: boolean;
|
|
1259
|
+
paidCents: number;
|
|
1260
|
+
refundedCents: number;
|
|
1261
|
+
dateISO: string;
|
|
1262
|
+
startMinuteOfDay: number;
|
|
1263
|
+
endMinuteOfDay: number;
|
|
1264
|
+
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
1265
|
+
units: number | undefined;
|
|
1266
|
+
persons: number | undefined;
|
|
1267
|
+
games: number | undefined;
|
|
1268
|
+
snapshot: {
|
|
1269
|
+
finalCents: number;
|
|
1270
|
+
baseSubtotalCents: number;
|
|
1271
|
+
addonSubtotalCents: number;
|
|
1272
|
+
addonLineItems: {
|
|
1273
|
+
rateMode: "flat" | "per_person" | "per_unit";
|
|
1274
|
+
addonId: string;
|
|
1275
|
+
quantity: number;
|
|
1276
|
+
addonName: string;
|
|
1277
|
+
unitPriceCents: number;
|
|
1278
|
+
lineSubtotalCents: number;
|
|
1279
|
+
}[];
|
|
1280
|
+
preDiscountTotalCents: number;
|
|
1281
|
+
appliedDiscountSource: string | null;
|
|
1282
|
+
appliedDiscountCents: number;
|
|
1283
|
+
reservationFeeCents: number | undefined;
|
|
1284
|
+
reservationFeeLabel: string | null;
|
|
1285
|
+
purchaseSummary: string | null;
|
|
1286
|
+
pricePlanName: string | null;
|
|
1287
|
+
pricePlanDescription: string | null;
|
|
1288
|
+
appliedDiscountLabel: string | null;
|
|
1289
|
+
shoesIncluded: boolean | null;
|
|
1290
|
+
taxTotalCents: number | null;
|
|
1291
|
+
taxLines: {
|
|
1292
|
+
label: string;
|
|
1293
|
+
rateBasisPoints: number;
|
|
1294
|
+
mode: "included" | "added";
|
|
1295
|
+
rateId: string;
|
|
1296
|
+
taxableBaseCents: number;
|
|
1297
|
+
taxCents: number;
|
|
1298
|
+
}[] | null;
|
|
1299
|
+
};
|
|
1300
|
+
productName: string;
|
|
1301
|
+
centerName: string;
|
|
1302
|
+
customerName: string | null;
|
|
1303
|
+
customerEmail: string | null;
|
|
1304
|
+
originalPayment: {
|
|
1305
|
+
stripePaymentIntentId: string;
|
|
1306
|
+
cardBrand: string | null;
|
|
1307
|
+
cardLast4: string | null;
|
|
1308
|
+
} | null;
|
|
1309
|
+
appliedModifications: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
amountCents: number;
|
|
1312
|
+
stripePaymentIntentId: string | null;
|
|
1313
|
+
cardBrand: string | null;
|
|
1314
|
+
cardLast4: string | null;
|
|
1315
|
+
appliedAt: number | null;
|
|
1316
|
+
}[];
|
|
1317
|
+
creditLedgerEntries: {
|
|
1318
|
+
id: string;
|
|
1319
|
+
displayId: string;
|
|
1320
|
+
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";
|
|
1321
|
+
amountCents: number;
|
|
1322
|
+
note: string;
|
|
1323
|
+
createdAt: number;
|
|
1324
|
+
}[];
|
|
1325
|
+
bookedAt: number;
|
|
1326
|
+
};
|
|
1327
|
+
type GetProductArgs = {
|
|
1328
|
+
productId: string;
|
|
1329
|
+
};
|
|
1330
|
+
type GetProductResult = {
|
|
1331
|
+
id: string;
|
|
1332
|
+
displayId: string;
|
|
1333
|
+
name: string;
|
|
1334
|
+
description: string | null;
|
|
1335
|
+
attractionId: string;
|
|
1336
|
+
attractionName: string;
|
|
1337
|
+
centerId: string;
|
|
1338
|
+
brandId: string;
|
|
1339
|
+
durationMinutes: number;
|
|
1340
|
+
pricingMode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
1341
|
+
minPartySize: number;
|
|
1342
|
+
maxPartySize: number;
|
|
1343
|
+
partyLabelSingular: string;
|
|
1344
|
+
partyLabelPlural: string;
|
|
1345
|
+
unitLabelSingular: string;
|
|
1346
|
+
unitLabelPlural: string;
|
|
1347
|
+
gameLabelSingular: string;
|
|
1348
|
+
gameLabelPlural: string;
|
|
1349
|
+
minDurationMinutes: number;
|
|
1350
|
+
durationIncrementMinutes: number;
|
|
1351
|
+
maxDurationMinutes: number;
|
|
1352
|
+
maxAdvanceDays: number | null;
|
|
1353
|
+
shoeMode: "included" | "addon" | "per_offer";
|
|
1354
|
+
defaultShoeAddonId: string | null;
|
|
1355
|
+
};
|
|
1356
|
+
type GetMembershipArgs = {
|
|
1357
|
+
shareToken?: string | undefined;
|
|
1358
|
+
templateId: string;
|
|
1359
|
+
};
|
|
1360
|
+
type GetMembershipResult = {
|
|
1361
|
+
id: string;
|
|
1362
|
+
displayId: string;
|
|
1363
|
+
name: string;
|
|
1364
|
+
description: string | null;
|
|
1365
|
+
type: "space_availability" | "game_pass" | "hybrid";
|
|
1366
|
+
recurringPriceCents: number;
|
|
1367
|
+
recurringCadence: "monthly" | "annual" | "one_time";
|
|
1368
|
+
setupFeeCents: number;
|
|
1369
|
+
fixedStartDate: string | null;
|
|
1370
|
+
fixedEndDate: string | null;
|
|
1371
|
+
entitlements: {
|
|
1372
|
+
attractionTypeKey: string;
|
|
1373
|
+
gamesPerPeriod: number | null;
|
|
1374
|
+
unlimited: boolean;
|
|
1375
|
+
gamesPerDay: number | null;
|
|
1376
|
+
includesShoeRental: boolean;
|
|
1377
|
+
sessionDurationMinutes: number | null;
|
|
1378
|
+
}[];
|
|
1379
|
+
gracePeriodDays: number;
|
|
1380
|
+
namedMemberSeatCount: number | null;
|
|
1381
|
+
};
|
|
1382
|
+
type GetGameCardArgs = {
|
|
1383
|
+
shareToken?: string | undefined;
|
|
1384
|
+
templateId: string;
|
|
1385
|
+
};
|
|
1386
|
+
type GetGameCardResult = {
|
|
1387
|
+
id: string;
|
|
1388
|
+
brandId: string;
|
|
1389
|
+
displayId: string;
|
|
1390
|
+
name: string;
|
|
1391
|
+
description: string | null;
|
|
1392
|
+
totalGames: number;
|
|
1393
|
+
expiryMonths: number;
|
|
1394
|
+
priceCents: number;
|
|
1395
|
+
shoesIncluded: boolean;
|
|
1396
|
+
};
|
|
1397
|
+
type ListProductSubtypesArgs = {
|
|
1398
|
+
productId: string;
|
|
1399
|
+
};
|
|
1400
|
+
type ListProductSubtypesResult = {
|
|
1401
|
+
id: string;
|
|
1402
|
+
name: string;
|
|
1403
|
+
upcharge: {
|
|
1404
|
+
kind: "flat" | "percent" | "replacement";
|
|
1405
|
+
value: number;
|
|
1406
|
+
};
|
|
1407
|
+
}[];
|
|
1408
|
+
type ListBrandMembershipsArgs = {
|
|
1409
|
+
brandId: string;
|
|
1410
|
+
};
|
|
1411
|
+
type ListBrandMembershipsResult = {
|
|
1412
|
+
id: string;
|
|
1413
|
+
displayId: string;
|
|
1414
|
+
name: string;
|
|
1415
|
+
description: string | null;
|
|
1416
|
+
type: "space_availability" | "game_pass" | "hybrid";
|
|
1417
|
+
recurringPriceCents: number;
|
|
1418
|
+
recurringCadence: "monthly" | "annual" | "one_time";
|
|
1419
|
+
availableAtCenters: string | string[];
|
|
1420
|
+
}[];
|
|
1421
|
+
type GetPackagesLabelArgs = {
|
|
1422
|
+
brandId: string;
|
|
1423
|
+
};
|
|
1424
|
+
type GetPackagesLabelResult = {
|
|
1425
|
+
label: string;
|
|
1426
|
+
};
|
|
1427
|
+
type PreviewSlotPricesArgs = {
|
|
1428
|
+
eventOfferSlug?: string;
|
|
1429
|
+
brandId?: string;
|
|
1430
|
+
subtypeId?: string;
|
|
1431
|
+
units?: number | undefined;
|
|
1432
|
+
persons?: number | undefined;
|
|
1433
|
+
games?: number | undefined;
|
|
1434
|
+
centerId: string;
|
|
1435
|
+
productId: string;
|
|
1436
|
+
dateISO: string;
|
|
1437
|
+
mode: "per_unit_per_hour" | "per_person_per_hour" | "per_game";
|
|
1438
|
+
duration: number;
|
|
1439
|
+
slots: number[];
|
|
1440
|
+
};
|
|
1441
|
+
type PreviewSlotPricesResult = {
|
|
1442
|
+
startMinuteOfDay: number;
|
|
1443
|
+
headlinePriceCents: number | null;
|
|
1444
|
+
}[];
|
|
1445
|
+
type ListHoursArgs = {
|
|
1446
|
+
centerId: string;
|
|
1447
|
+
};
|
|
1448
|
+
type ListHoursResult = {
|
|
1449
|
+
defaultHours: {
|
|
1450
|
+
attractionId: string;
|
|
1451
|
+
attractionName: string;
|
|
1452
|
+
fromDate: string;
|
|
1453
|
+
toDate: string;
|
|
1454
|
+
weeklyHours: ({
|
|
1455
|
+
openMinute: number;
|
|
1456
|
+
closeMinute: number;
|
|
1457
|
+
} | null)[];
|
|
1458
|
+
}[];
|
|
1459
|
+
exceptions: {
|
|
1460
|
+
attractionId: string;
|
|
1461
|
+
attractionName: string;
|
|
1462
|
+
productId: string | null;
|
|
1463
|
+
type: "available" | "blocked";
|
|
1464
|
+
startMinuteOfDay: number;
|
|
1465
|
+
endMinuteOfDay: number;
|
|
1466
|
+
daysOfWeek: number[] | null;
|
|
1467
|
+
singleDate: string | null;
|
|
1468
|
+
}[];
|
|
1469
|
+
};
|
|
1470
|
+
type GetOperatingHoursArgs = {
|
|
1471
|
+
productId: string;
|
|
1472
|
+
dateISO: string;
|
|
1473
|
+
};
|
|
1474
|
+
type GetOperatingHoursResult = {
|
|
1475
|
+
openMinute: number;
|
|
1476
|
+
closeMinute: number;
|
|
1477
|
+
} | null;
|
|
1478
|
+
type GetCenterOperatingHoursForTypeArgs = {
|
|
1479
|
+
centerId: string;
|
|
1480
|
+
dateISO: string;
|
|
1481
|
+
attractionTypeKey: string;
|
|
1482
|
+
};
|
|
1483
|
+
type GetCenterOperatingHoursForTypeResult = {
|
|
1484
|
+
openMinute: number;
|
|
1485
|
+
closeMinute: number;
|
|
1486
|
+
} | null;
|
|
1487
|
+
type ListCentersArgs = {
|
|
1488
|
+
brandId: string;
|
|
1489
|
+
};
|
|
1490
|
+
type ListCentersResult = {
|
|
1491
|
+
id: string;
|
|
1492
|
+
displayId: string;
|
|
1493
|
+
name: string;
|
|
1494
|
+
timezone: string;
|
|
1495
|
+
customWebsiteUrl: string | null;
|
|
1496
|
+
status: "active" | "suspended" | "churned" | "onboarding" | "trial";
|
|
1497
|
+
address: {
|
|
1498
|
+
line2?: string | undefined;
|
|
1499
|
+
line1: string;
|
|
1500
|
+
city: string;
|
|
1501
|
+
region: string;
|
|
1502
|
+
postalCode: string;
|
|
1503
|
+
country: string;
|
|
1504
|
+
} | null | undefined;
|
|
1505
|
+
}[];
|
|
1506
|
+
type CancelMyMembershipArgs = {
|
|
1507
|
+
reason?: string | undefined;
|
|
1508
|
+
brandId: string;
|
|
1509
|
+
idempotencyKey: string;
|
|
1510
|
+
membershipId: string;
|
|
1511
|
+
expectedVersion: number;
|
|
1512
|
+
};
|
|
1513
|
+
type CancelMyMembershipResult = {
|
|
1514
|
+
id: string;
|
|
1515
|
+
version: number;
|
|
1516
|
+
status: "cancel_at_period_end";
|
|
1517
|
+
currentPeriodEndsAt: number;
|
|
1518
|
+
};
|
|
1519
|
+
type ApplyMyModificationArgs = {
|
|
1520
|
+
newGames?: number | undefined;
|
|
1521
|
+
newAddons?: {
|
|
1522
|
+
addonId: string;
|
|
1523
|
+
quantity: number;
|
|
1524
|
+
}[] | undefined;
|
|
1525
|
+
refundMode?: "refund" | "credit" | undefined;
|
|
1526
|
+
applyCredit?: boolean | undefined;
|
|
1527
|
+
brandId: string;
|
|
1528
|
+
idempotencyKey: string;
|
|
1529
|
+
reservationId: string;
|
|
1530
|
+
newDateISO: string;
|
|
1531
|
+
newStartMinuteOfDay: number;
|
|
1532
|
+
newEndMinuteOfDay: number;
|
|
1533
|
+
newUnits: number;
|
|
1534
|
+
newPersons: number;
|
|
1535
|
+
expectedVersion: number;
|
|
1536
|
+
};
|
|
1537
|
+
type ApplyMyModificationResult = {
|
|
1538
|
+
id: string;
|
|
1539
|
+
version: number;
|
|
1540
|
+
diffCents: number;
|
|
1541
|
+
refundedCents: number;
|
|
1542
|
+
creditedCents: number;
|
|
1543
|
+
newFinalCents: number;
|
|
1544
|
+
requiresPayment: false;
|
|
1545
|
+
pendingModificationId: null;
|
|
1546
|
+
} | {
|
|
1547
|
+
id: string;
|
|
1548
|
+
version: number;
|
|
1549
|
+
diffCents: number;
|
|
1550
|
+
refundedCents: number;
|
|
1551
|
+
creditedCents: number;
|
|
1552
|
+
newFinalCents: number;
|
|
1553
|
+
requiresPayment: true;
|
|
1554
|
+
pendingModificationId: string;
|
|
1555
|
+
};
|
|
1556
|
+
type CancelCheckoutPaymentArgs = {
|
|
1557
|
+
refToken: string;
|
|
1558
|
+
};
|
|
1559
|
+
type CancelCheckoutPaymentResult = {
|
|
1560
|
+
cancelled: boolean;
|
|
1561
|
+
};
|
|
1562
|
+
interface MembershipMember {
|
|
1563
|
+
id: string | null;
|
|
1564
|
+
customerId: string;
|
|
1565
|
+
customerName: string;
|
|
1566
|
+
customerEmail: string | null;
|
|
1567
|
+
isPayingMember: boolean;
|
|
1568
|
+
addedAt: number;
|
|
1569
|
+
}
|
|
1570
|
+
type AccountDeletionPreview = {
|
|
1571
|
+
memberships: Array<{
|
|
1572
|
+
id: string;
|
|
1573
|
+
name: string;
|
|
1574
|
+
status: string;
|
|
1575
|
+
endsAt: number;
|
|
1576
|
+
autoRenew: boolean;
|
|
1577
|
+
willCancelStripe: boolean;
|
|
1578
|
+
forfeitsRemainingTime: boolean;
|
|
1579
|
+
}>;
|
|
1580
|
+
upcoming: Array<{
|
|
1581
|
+
kind: "reservation" | "party" | "event";
|
|
1582
|
+
id: string;
|
|
1583
|
+
displayId: string;
|
|
1584
|
+
date: string;
|
|
1585
|
+
centerName: string;
|
|
1586
|
+
refundPreview: {
|
|
1587
|
+
refundCents: number;
|
|
1588
|
+
feeCents: number;
|
|
1589
|
+
creditCents: number;
|
|
1590
|
+
policyLabel: string;
|
|
1591
|
+
};
|
|
1592
|
+
}>;
|
|
1593
|
+
loses: string[];
|
|
1594
|
+
confirmPhrase: "DELETE";
|
|
1595
|
+
previewToken: string;
|
|
1596
|
+
};
|
|
1597
|
+
type ExportMyDataV2Result = {
|
|
1598
|
+
url: string;
|
|
1599
|
+
expiresAt: number;
|
|
1600
|
+
};
|
|
1601
|
+
/** Slot-full remains VALIDATION_FAILED for older consumers. */
|
|
1602
|
+
type SlotFullDetails = {
|
|
1603
|
+
reason: "slot_full";
|
|
1604
|
+
waitlistAvailable: boolean;
|
|
1605
|
+
requested: number;
|
|
1606
|
+
available: number;
|
|
1607
|
+
};
|
|
1608
|
+
type JoinWaitlistArgs = Omit<BookingPreviewArgs, "shareToken"> & {
|
|
1609
|
+
brandId?: string;
|
|
1610
|
+
promoCode?: string;
|
|
1611
|
+
/** Consent for texts about this waitlist only. Omitted defaults to false. */
|
|
1612
|
+
textUpdates?: boolean;
|
|
1613
|
+
};
|
|
1614
|
+
type WaitlistEntryArgs = {
|
|
1615
|
+
entryId: string;
|
|
1616
|
+
brandId?: string;
|
|
1617
|
+
centerId?: string;
|
|
1618
|
+
};
|
|
1619
|
+
type JoinWaitlistResult = {
|
|
1620
|
+
entryId: string;
|
|
1621
|
+
displayId: string;
|
|
1622
|
+
amountCents: number;
|
|
1623
|
+
breakdown?: Record<string, unknown>;
|
|
1624
|
+
};
|
|
1625
|
+
type WaitlistSetupIntent = {
|
|
1626
|
+
clientSecret: string;
|
|
1627
|
+
customerSessionClientSecret: string;
|
|
1628
|
+
publishableKey: string;
|
|
1629
|
+
stripeAccount: string;
|
|
1630
|
+
stripeMode: "test" | "live";
|
|
1631
|
+
};
|
|
1632
|
+
type MyWaitlistEntry = {
|
|
1633
|
+
units?: number;
|
|
1634
|
+
unitLabelSingular?: string;
|
|
1635
|
+
unitLabelPlural?: string;
|
|
1636
|
+
attractionName?: string;
|
|
1637
|
+
promotedStartMinuteOfDay?: number;
|
|
1638
|
+
promotedEndMinuteOfDay?: number;
|
|
1639
|
+
textUpdates?: boolean;
|
|
1640
|
+
entryId: string;
|
|
1641
|
+
displayId: string;
|
|
1642
|
+
center?: string;
|
|
1643
|
+
product?: string;
|
|
1644
|
+
dateISO: string;
|
|
1645
|
+
startMinuteOfDay: number;
|
|
1646
|
+
endMinuteOfDay: number;
|
|
1647
|
+
amountCents: number;
|
|
1648
|
+
card?: {
|
|
1649
|
+
brand?: string;
|
|
1650
|
+
last4?: string;
|
|
1651
|
+
};
|
|
1652
|
+
status: "pending_card" | "waiting" | "promoted" | "cancelled" | "expired";
|
|
1653
|
+
promotedReservationDisplayId?: string;
|
|
1654
|
+
};
|
|
777
1655
|
|
|
778
1656
|
/**
|
|
779
1657
|
* Typed account + flash reads for @bowlos/reservations.
|
|
@@ -982,4 +1860,4 @@ declare function changePassword(client: BowlosClient, args: ChangePasswordArgs):
|
|
|
982
1860
|
ok: true;
|
|
983
1861
|
}>;
|
|
984
1862
|
|
|
985
|
-
export { type
|
|
1863
|
+
export { type SetMyMobileResult as $, type AddMyMembershipMemberArgs as A, BowlosClient as B, type CancelCheckoutPaymentArgs as C, type DeleteMyAccountArgs as D, type ExportMyDataArgs as E, type FetchLike as F, type GetCenterOperatingHoursForTypeArgs as G, type GetPackagesLabelArgs as H, type GetPackagesLabelResult as I, type GetProductArgs as J, type GetProductResult as K, type GetReceiptArgs as L, type GetReceiptResult as M, type ListBrandMembershipsArgs as N, type ListBrandMembershipsResult as O, type ListCentersArgs as P, type ListCentersResult as Q, type ListHoursArgs as R, type ListHoursResult as S, type ListProductSubtypesArgs as T, type ListProductSubtypesResult as U, type AccountDeletionPreview as V, type PreviewSlotPricesArgs as W, type PreviewSlotPricesResult as X, type SetMyCommunicationPrefArgs as Y, type SetMyCommunicationPrefResult as Z, type SetMyMobileArgs as _, type AddMyMembershipMemberResult as a, type PackagePreviewResult as a$, type SubmitSupportRequestArgs as a0, type SubmitSupportRequestResult as a1, type UpdateMyProfileArgs as a2, type UpdateMyProfileResult as a3, type AuthState as a4, type AvailabilityArgs as a5, type AvailabilityResult as a6, type BookingAddonSelection as a7, type BookingCustomer as a8, type BookingHold as a9, type FlashSalesArgs as aA, type GameCardCancelArgs as aB, type GameCardCheckoutStatus as aC, type GameCardPreviewArgs as aD, type GameCardPreviewResult as aE, type GameCardPurchaseArgs as aF, type GameCardPurchaseIntent as aG, type GameCardStatusResult as aH, type JoinWaitlistArgs as aI, type JoinWaitlistResult as aJ, type LinkProfile as aK, type MembershipCheckoutStatus as aL, type MembershipDetailArgs as aM, type MembershipMember as aN, type MembershipPreviewArgs as aO, type MembershipPreviewResult as aP, type MembershipPurchaseArgs as aQ, type MembershipPurchaseIntent as aR, type MembershipStatusResult as aS, type MembershipSubscriptionArgs as aT, type MembershipSubscriptionIntent as aU, type MembershipSubscriptionPreviewResult as aV, type MyGameCard as aW, type MyWaitlistEntry as aX, type OrderCancelArgs as aY, type PackageCheckoutStatus as aZ, type PackagePreviewArgs as a_, type BookingPreviewArgs as aa, type BookingQuote as ab, type BowlosClientConfig as ac, type BrandScoped as ad, type CancelPreview as ae, type CancelResult as af, type CardSetupResult as ag, type ChangePasswordArgs as ah, type CheckoutStatus as ai, type CheckoutStatusResult as aj, type ConnectedPaymentInput as ak, type CreateBookingArgs as al, type CreateFlashSaleBookingArgs as am, type Customer as an, type DuplicateBookingArgs as ao, type DuplicateBookingResult as ap, type EventOrderDetailArgs as aq, type EventTicketCheckoutStatus as ar, type EventTicketPreviewArgs as as, type EventTicketPreviewResult as at, type EventTicketPurchaseArgs as au, type EventTicketPurchaseIntent as av, type EventTicketStatusResult as aw, type FlashBookingOptionsArgs as ax, type FlashSaleArgs as ay, type FlashSaleBookingResult as az, type ApplyMyModificationArgs as b, listMyWaitlist as b$, type PackagePurchaseArgs as b0, type PackagePurchaseIntent as b1, type PackageStatusResult as b2, type PaymentIntentInfo as b3, type PingResult as b4, type PricingMode as b5, type PublicAddon as b6, type ReservationCancelArgs as b7, type ReservationDetailArgs as b8, type SavedCard as b9, createGameCardOrder as bA, createMembershipOrder as bB, createMembershipSubscriptionOrder as bC, createPackageOrder as bD, createWaitlistSetupIntent as bE, generateIdempotencyKey as bF, getCheckoutStatus as bG, getEventTicketStatus as bH, getFlashSale as bI, getFlashSaleBookingOptions as bJ, getFlashSales as bK, getGameCardStatus as bL, getMembershipStatus as bM, getMyCredits as bN, getMyEventOrder as bO, getMyEventOrders as bP, getMyGameCards as bQ, getMyLoyalty as bR, getMyMembershipDetail as bS, getMyMemberships as bT, getMyPasses as bU, getMyReservationDetail as bV, getMyReservations as bW, getPackageStatus as bX, joinWaitlist as bY, leaveWaitlist as bZ, listAddons as b_, type SavedCardArgs as ba, type SavedCardScope as bb, type SavedCardsResult as bc, type SlotFullDetails as bd, type StartTimesArgs as be, type TokenStore as bf, type Tokens as bg, type WaitlistEntryArgs as bh, type WaitlistSetupIntent as bi, abandonCheckout as bj, availableUnitCount as bk, bookingPreview as bl, cancelMyEventOrder as bm, cancelMyGameCard as bn, cancelMyPackageOrder as bo, cancelMyReservation as bp, changePassword as bq, checkAvailability as br, checkDuplicateBooking as bs, confirmWaitlistCard as bt, createBooking as bu, createBowlosClient as bv, createCardSetup as bw, createCheckoutPaymentIntent as bx, createEventTicketOrder as by, createFlashSaleBooking as bz, type ApplyMyModificationResult as c, listSavedCards as c0, listStartTimes as c1, localStorageTokenStore as c2, previewEventOrderCancellation as c3, previewEventTicket as c4, previewGameCard as c5, previewGameCardCancellation as c6, previewMembership as c7, previewMembershipSubscription as c8, previewPackage as c9, previewPackageOrderCancellation as ca, previewReservationCancellation as cb, removeSavedCard as cc, setDefaultCard as cd, 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 };
|