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