tf-checkout-react 1.7.30 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +141 -1033
- package/dist/checkout.css +17 -0
- package/dist/index.d.mts +3930 -0
- package/dist/index.d.ts +3930 -30
- package/dist/index.esm.js +9123 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +9277 -6
- package/dist/index.js.map +1 -0
- package/dist/styles/addons.css +75 -0
- package/dist/styles/auth.css +294 -0
- package/dist/styles/billing.css +98 -0
- package/dist/styles/confirmation.css +51 -0
- package/dist/styles/foundation.css +146 -0
- package/dist/styles/payment.css +179 -0
- package/dist/styles/primitives.css +356 -0
- package/dist/styles/seat-map.css +46 -0
- package/dist/styles/tickets.css +285 -0
- package/dist/styles/verification-confirmation.css +258 -0
- package/package.json +93 -78
- package/src/.d.ts +1 -1
- package/src/CardInput.tsx +374 -0
- package/src/EmbeddedCheckout.tsx +400 -0
- package/src/ResumedCheckout.tsx +132 -0
- package/src/auth/AuthModal.tsx +231 -0
- package/src/auth/ForgotPasswordForm.tsx +93 -0
- package/src/auth/LoginForm.tsx +104 -0
- package/src/auth/PasswordInput.tsx +33 -0
- package/src/auth/RegisterForm.tsx +333 -0
- package/src/auth/ResetPasswordForm.tsx +112 -0
- package/src/auth/index.ts +5 -0
- package/src/checkout.css +17 -0
- package/src/configure.ts +29 -0
- package/src/confirmer.ts +439 -0
- package/src/index.ts +41 -30
- package/src/instance.ts +21 -0
- package/src/sections/AddOns.tsx +241 -0
- package/src/sections/BillingInfo.tsx +743 -0
- package/src/sections/Confirmation.tsx +146 -0
- package/src/sections/IDVerification.tsx +76 -0
- package/src/sections/OrderConfirmation.tsx +277 -0
- package/src/sections/OrderIDVerification.tsx +117 -0
- package/src/sections/OrderSummary.tsx +84 -0
- package/src/sections/Payment.tsx +541 -0
- package/src/sections/SeatMap.tsx +512 -0
- package/src/sections/Tickets.tsx +573 -0
- package/src/sections/billing/BillingAddressFields.tsx +138 -0
- package/src/sections/billing/BuyerField.tsx +75 -0
- package/src/sections/billing/TicketHoldersCard.tsx +119 -0
- package/src/sections/billing/types.ts +10 -0
- package/src/sections/index.ts +15 -0
- package/src/sections/seatMap.utils.ts +105 -0
- package/src/styles/addons.css +75 -0
- package/src/styles/auth.css +294 -0
- package/src/styles/billing.css +98 -0
- package/src/styles/confirmation.css +51 -0
- package/src/styles/foundation.css +146 -0
- package/src/styles/payment.css +179 -0
- package/src/styles/primitives.css +356 -0
- package/src/styles/seat-map.css +46 -0
- package/src/styles/tickets.css +285 -0
- package/src/styles/verification-confirmation.css +258 -0
- package/src/typings.d.ts +2 -2
- package/src/ui/Button.tsx +38 -0
- package/src/ui/Card.tsx +54 -0
- package/src/ui/CheckoutProvider.tsx +172 -0
- package/src/ui/CustomFields.tsx +195 -0
- package/src/ui/Field.tsx +114 -0
- package/src/ui/I18nProvider.tsx +36 -0
- package/src/ui/InstallmentPicker.tsx +69 -0
- package/src/ui/Loader.tsx +12 -0
- package/src/ui/PaymentMethods.tsx +133 -0
- package/src/ui/PriceLine.tsx +24 -0
- package/src/ui/QuantitySelect.tsx +50 -0
- package/src/ui/Stepper.tsx +36 -0
- package/src/ui/Timer.tsx +34 -0
- package/src/ui/TimerBanner.tsx +55 -0
- package/src/ui/cx.ts +3 -0
- package/src/ui/index.ts +54 -0
- package/src/ui/theme.ts +83 -0
- package/src/useCheckout.ts +35 -0
- package/src/xendit.ts +438 -0
- package/dist/adapters/customFields.d.ts +0 -12
- package/dist/adapters/index.d.ts +0 -1
- package/dist/api/auth.d.ts +0 -27
- package/dist/api/cart.d.ts +0 -2
- package/dist/api/checkout.d.ts +0 -3
- package/dist/api/common.d.ts +0 -11
- package/dist/api/guestTicketDelegation.d.ts +0 -47
- package/dist/api/index.d.ts +0 -82
- package/dist/api/interceptors.d.ts +0 -1
- package/dist/api/orders.d.ts +0 -2
- package/dist/api/payment.d.ts +0 -5
- package/dist/api/preRegistrationComplete.d.ts +0 -3
- package/dist/api/publicRequest.d.ts +0 -9
- package/dist/api/resale.d.ts +0 -5
- package/dist/components/account-settings/index.d.ts +0 -3
- package/dist/components/addonsContainer/AddonComponent.d.ts +0 -18
- package/dist/components/addonsContainer/SimpleAddonsContainer.d.ts +0 -20
- package/dist/components/addonsContainer/adapters/index.d.ts +0 -12
- package/dist/components/addonsContainer/index.d.ts +0 -22
- package/dist/components/addonsContainer/normalizers/index.d.ts +0 -1
- package/dist/components/addonsContainer/useAddons.d.ts +0 -23
- package/dist/components/addonsContainer/utils/index.d.ts +0 -16
- package/dist/components/billing-info-container/hooks/index.d.ts +0 -3
- package/dist/components/billing-info-container/hooks/usePaymentContext.d.ts +0 -5
- package/dist/components/billing-info-container/hooks/usePaymentRedirect.d.ts +0 -14
- package/dist/components/billing-info-container/hooks/useStripePayment.d.ts +0 -18
- package/dist/components/billing-info-container/index.d.ts +0 -69
- package/dist/components/billing-info-container/utils.d.ts +0 -59
- package/dist/components/common/Checkbox.d.ts +0 -11
- package/dist/components/common/CheckboxField/index.d.ts +0 -9
- package/dist/components/common/CopyField.d.ts +0 -12
- package/dist/components/common/CopyMessageModal.d.ts +0 -7
- package/dist/components/common/CustomField.d.ts +0 -26
- package/dist/components/common/DatePickerField.d.ts +0 -20
- package/dist/components/common/FieldSection/index.d.ts +0 -19
- package/dist/components/common/FieldSection/utils/index.d.ts +0 -8
- package/dist/components/common/FormikPhoneNumberField.d.ts +0 -11
- package/dist/components/common/Loader.d.ts +0 -2
- package/dist/components/common/ModalComponent/index.d.ts +0 -16
- package/dist/components/common/NativeSelectFeild/index.d.ts +0 -21
- package/dist/components/common/PhoneNumberField.d.ts +0 -14
- package/dist/components/common/PoweredBy.d.ts +0 -2
- package/dist/components/common/RadioField.d.ts +0 -11
- package/dist/components/common/RadioGroupField/index.d.ts +0 -17
- package/dist/components/common/RedirectModal.d.ts +0 -7
- package/dist/components/common/SelectField/index.d.ts +0 -19
- package/dist/components/common/SnackbarAlert.d.ts +0 -13
- package/dist/components/common/index.d.ts +0 -11
- package/dist/components/common/socials.d.ts +0 -10
- package/dist/components/confirmModal/index.d.ts +0 -10
- package/dist/components/confirmationContainer/config.d.ts +0 -1
- package/dist/components/confirmationContainer/index.d.ts +0 -46
- package/dist/components/confirmationContainer/social-buttons.d.ts +0 -16
- package/dist/components/countdown/index.d.ts +0 -14
- package/dist/components/delegationsContainer/IssueComponent.d.ts +0 -10
- package/dist/components/delegationsContainer/IssueTicketForm.d.ts +0 -9
- package/dist/components/delegationsContainer/TicketsAssignedTable.d.ts +0 -11
- package/dist/components/delegationsContainer/TicketsAvailableTable.d.ts +0 -11
- package/dist/components/delegationsContainer/index.d.ts +0 -10
- package/dist/components/forgotPasswordModal/index.d.ts +0 -12
- package/dist/components/idVerificationContainer/VerificationPendingModal.d.ts +0 -10
- package/dist/components/idVerificationContainer/constants.d.ts +0 -21
- package/dist/components/idVerificationContainer/index.d.ts +0 -16
- package/dist/components/index.d.ts +0 -12
- package/dist/components/loginForm/index.d.ts +0 -31
- package/dist/components/loginModal/SignUpForm.d.ts +0 -10
- package/dist/components/loginModal/constants.d.ts +0 -39
- package/dist/components/loginModal/index.d.ts +0 -22
- package/dist/components/myTicketsContainer/index.d.ts +0 -16
- package/dist/components/myTicketsContainer/row.d.ts +0 -3
- package/dist/components/myTicketsContainer/tableConfig.d.ts +0 -5
- package/dist/components/orderDetailsContainer/CustomFieldsForm.d.ts +0 -12
- package/dist/components/orderDetailsContainer/TicketHolderCustomFields.d.ts +0 -10
- package/dist/components/orderDetailsContainer/index.d.ts +0 -66
- package/dist/components/orderDetailsContainer/ticketsTable.d.ts +0 -46
- package/dist/components/orderDetailsContainer/utils/index.d.ts +0 -6
- package/dist/components/paymentContainer/OrderDetails.d.ts +0 -9
- package/dist/components/paymentContainer/PaymentPlanSection.d.ts +0 -10
- package/dist/components/paymentContainer/handlePayment.d.ts +0 -15
- package/dist/components/paymentContainer/index.d.ts +0 -39
- package/dist/components/preRegistration/FieldsSection.d.ts +0 -19
- package/dist/components/preRegistration/Influancers.d.ts +0 -2
- package/dist/components/preRegistration/PreRegistrationComplete.d.ts +0 -13
- package/dist/components/preRegistration/PreRegistrationInformations.d.ts +0 -2
- package/dist/components/preRegistration/Prewards.d.ts +0 -2
- package/dist/components/preRegistration/ShareOptions.d.ts +0 -2
- package/dist/components/preRegistration/constants.d.ts +0 -2
- package/dist/components/preRegistration/index.d.ts +0 -23
- package/dist/components/preRegistration/utils.d.ts +0 -12
- package/dist/components/registerForm/adapters/index.d.ts +0 -4
- package/dist/components/registerForm/constants.d.ts +0 -1
- package/dist/components/registerForm/index.d.ts +0 -16
- package/dist/components/registerModal/index.d.ts +0 -12
- package/dist/components/resetPasswordContainer/index.d.ts +0 -10
- package/dist/components/rsvpContainer/index.d.ts +0 -7
- package/dist/components/seatMapContainer/SeatMapComponent.d.ts +0 -8
- package/dist/components/seatMapContainer/TicketsSection.d.ts +0 -9
- package/dist/components/seatMapContainer/addToCart.d.ts +0 -14
- package/dist/components/seatMapContainer/index.d.ts +0 -2
- package/dist/components/seatMapContainer/utils.d.ts +0 -6
- package/dist/components/signupModal/index.d.ts +0 -12
- package/dist/components/ticketResale/index.d.ts +0 -12
- package/dist/components/ticketResaleModal/index.d.ts +0 -19
- package/dist/components/ticketsContainer/AccessCodeSection.d.ts +0 -7
- package/dist/components/ticketsContainer/InfoIcon.d.ts +0 -5
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +0 -15
- package/dist/components/ticketsContainer/ReferralLogic.d.ts +0 -5
- package/dist/components/ticketsContainer/TicketRow.d.ts +0 -13
- package/dist/components/ticketsContainer/TicketsSection.d.ts +0 -20
- package/dist/components/ticketsContainer/TimeSlotTicketRow.d.ts +0 -19
- package/dist/components/ticketsContainer/TimeSlotsSection.d.ts +0 -25
- package/dist/components/ticketsContainer/index.d.ts +0 -93
- package/dist/components/ticketsContainer/utils.d.ts +0 -13
- package/dist/components/timerWidget/index.d.ts +0 -16
- package/dist/components/waitingList/index.d.ts +0 -9
- package/dist/constants/index.d.ts +0 -7
- package/dist/env.d.ts +0 -16
- package/dist/hoc/CustomFields/index.d.ts +0 -3
- package/dist/hoc/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useCookieListener.d.ts +0 -1
- package/dist/hooks/useEventListener.d.ts +0 -1
- package/dist/hooks/useLocalStorageListener.d.ts +0 -1
- package/dist/hooks/useOnline.d.ts +0 -1
- package/dist/hooks/usePixel.d.ts +0 -6
- package/dist/images/Polygon.png +0 -0
- package/dist/images/cross.svg +0 -44
- package/dist/images/done.svg +0 -3
- package/dist/images/edit.svg +0 -10
- package/dist/images/email.svg +0 -1
- package/dist/images/instagram.svg +0 -5
- package/dist/images/logo-ttf.png +0 -0
- package/dist/images/spotify.svg +0 -6
- package/dist/images/user.svg +0 -1
- package/dist/images/xmark.svg +0 -92
- package/dist/normalizers/index.d.ts +0 -4
- package/dist/tf-checkout-react.cjs.development.js +0 -16149
- package/dist/tf-checkout-react.cjs.development.js.map +0 -1
- package/dist/tf-checkout-react.cjs.production.min.js +0 -2
- package/dist/tf-checkout-react.cjs.production.min.js.map +0 -1
- package/dist/tf-checkout-react.esm.js +0 -16116
- package/dist/tf-checkout-react.esm.js.map +0 -1
- package/dist/tf-checkout-styles.css +0 -1
- package/dist/types/add_on.d.ts +0 -8
- package/dist/types/billing-info-data.d.ts +0 -27
- package/dist/types/checkoutPageConfigs.d.ts +0 -13
- package/dist/types/index.d.ts +0 -6
- package/dist/types/order-data.d.ts +0 -15
- package/dist/types/payment-field.d.ts +0 -6
- package/dist/types/payment-plan-configuration.d.ts +0 -18
- package/dist/types/referral-promotion.d.ts +0 -6
- package/dist/types/verification.d.ts +0 -12
- package/dist/utils/adaptStripeErrors.d.ts +0 -8
- package/dist/utils/auth.d.ts +0 -21
- package/dist/utils/cookies.d.ts +0 -3
- package/dist/utils/createCheckoutDataBodyWithDefaultHolder.d.ts +0 -23
- package/dist/utils/createMarkup.d.ts +0 -3
- package/dist/utils/customFields.d.ts +0 -35
- package/dist/utils/downloadPDF.d.ts +0 -1
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/formikErrorFocus.d.ts +0 -2
- package/dist/utils/getDomain.d.ts +0 -1
- package/dist/utils/getImage.d.ts +0 -1
- package/dist/utils/getQueryVariable.d.ts +0 -1
- package/dist/utils/htmlNodeFromString.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -15
- package/dist/utils/isBrowser.d.ts +0 -1
- package/dist/utils/isValidNumber.d.ts +0 -1
- package/dist/utils/jsonUtils.d.ts +0 -1
- package/dist/utils/replaceVarInString.d.ts +0 -1
- package/dist/utils/setConfigs.d.ts +0 -11
- package/dist/utils/showZero.d.ts +0 -1
- package/dist/validators/index.d.ts +0 -8
- package/src/adapters/customFields.ts +0 -85
- package/src/adapters/index.ts +0 -1
- package/src/api/auth.ts +0 -88
- package/src/api/cart.ts +0 -28
- package/src/api/checkout.ts +0 -28
- package/src/api/common.ts +0 -190
- package/src/api/guestTicketDelegation.ts +0 -79
- package/src/api/index.ts +0 -346
- package/src/api/interceptors.ts +0 -77
- package/src/api/orders.ts +0 -30
- package/src/api/payment.ts +0 -77
- package/src/api/preRegistrationComplete.ts +0 -37
- package/src/api/publicRequest.ts +0 -47
- package/src/api/resale.ts +0 -28
- package/src/assets/images/Polygon.png +0 -0
- package/src/assets/images/cross.svg +0 -44
- package/src/assets/images/done.svg +0 -3
- package/src/assets/images/edit.svg +0 -10
- package/src/assets/images/email.svg +0 -1
- package/src/assets/images/instagram.svg +0 -5
- package/src/assets/images/logo-ttf.png +0 -0
- package/src/assets/images/spotify.svg +0 -6
- package/src/assets/images/user.svg +0 -1
- package/src/assets/images/xmark.svg +0 -92
- package/src/components/account-settings/index.tsx +0 -161
- package/src/components/account-settings/style.css +0 -200
- package/src/components/addonsContainer/AddonComponent.tsx +0 -204
- package/src/components/addonsContainer/SimpleAddonsContainer.tsx +0 -459
- package/src/components/addonsContainer/adapters/index.tsx +0 -62
- package/src/components/addonsContainer/index.tsx +0 -353
- package/src/components/addonsContainer/normalizers/index.ts +0 -5
- package/src/components/addonsContainer/useAddons.ts +0 -248
- package/src/components/addonsContainer/utils/index.tsx +0 -231
- package/src/components/billing-info-container/hooks/index.ts +0 -3
- package/src/components/billing-info-container/hooks/usePaymentContext.ts +0 -22
- package/src/components/billing-info-container/hooks/usePaymentRedirect.ts +0 -145
- package/src/components/billing-info-container/hooks/useStripePayment.ts +0 -119
- package/src/components/billing-info-container/index.tsx +0 -1695
- package/src/components/billing-info-container/style.css +0 -150
- package/src/components/billing-info-container/utils.tsx +0 -413
- package/src/components/common/Checkbox.tsx +0 -51
- package/src/components/common/CheckboxField/index.tsx +0 -41
- package/src/components/common/CopyField.tsx +0 -53
- package/src/components/common/CopyMessageModal.tsx +0 -34
- package/src/components/common/CustomField.tsx +0 -168
- package/src/components/common/DatePickerField.tsx +0 -126
- package/src/components/common/FieldSection/index.tsx +0 -141
- package/src/components/common/FieldSection/utils/index.tsx +0 -92
- package/src/components/common/FormikPhoneNumberField.tsx +0 -51
- package/src/components/common/Loader.tsx +0 -8
- package/src/components/common/ModalComponent/index.tsx +0 -68
- package/src/components/common/NativeSelectFeild/index.tsx +0 -86
- package/src/components/common/PhoneNumberField.tsx +0 -117
- package/src/components/common/PoweredBy.tsx +0 -15
- package/src/components/common/RadioField.tsx +0 -36
- package/src/components/common/RadioGroupField/index.tsx +0 -76
- package/src/components/common/RedirectModal.tsx +0 -43
- package/src/components/common/SelectField/index.tsx +0 -104
- package/src/components/common/SnackbarAlert.tsx +0 -52
- package/src/components/common/index.tsx +0 -11
- package/src/components/common/socials.tsx +0 -33
- package/src/components/confirmModal/index.tsx +0 -60
- package/src/components/confirmationContainer/config.ts +0 -79
- package/src/components/confirmationContainer/index.tsx +0 -349
- package/src/components/confirmationContainer/social-buttons.tsx +0 -149
- package/src/components/confirmationContainer/style.css +0 -206
- package/src/components/countdown/index.tsx +0 -100
- package/src/components/countdown/style.css +0 -10
- package/src/components/delegationsContainer/IssueComponent.tsx +0 -156
- package/src/components/delegationsContainer/IssueTicketForm.tsx +0 -109
- package/src/components/delegationsContainer/TicketsAssignedTable.tsx +0 -55
- package/src/components/delegationsContainer/TicketsAvailableTable.tsx +0 -54
- package/src/components/delegationsContainer/index.tsx +0 -83
- package/src/components/forgotPasswordModal/index.tsx +0 -138
- package/src/components/forgotPasswordModal/style.css +0 -47
- package/src/components/idVerificationContainer/VerificationPendingModal.tsx +0 -47
- package/src/components/idVerificationContainer/constants.ts +0 -27
- package/src/components/idVerificationContainer/index.tsx +0 -323
- package/src/components/index.ts +0 -12
- package/src/components/loginForm/index.tsx +0 -202
- package/src/components/loginModal/SignUpForm.tsx +0 -329
- package/src/components/loginModal/constants.ts +0 -46
- package/src/components/loginModal/index.tsx +0 -263
- package/src/components/loginModal/style.css +0 -116
- package/src/components/myTicketsContainer/index.tsx +0 -228
- package/src/components/myTicketsContainer/row.tsx +0 -46
- package/src/components/myTicketsContainer/style.css +0 -40
- package/src/components/myTicketsContainer/tableConfig.tsx +0 -80
- package/src/components/myTicketsContainer/types.d.ts +0 -41
- package/src/components/orderDetailsContainer/CustomFieldsForm.tsx +0 -75
- package/src/components/orderDetailsContainer/TicketHolderCustomFields.tsx +0 -100
- package/src/components/orderDetailsContainer/index.tsx +0 -586
- package/src/components/orderDetailsContainer/style.css +0 -77
- package/src/components/orderDetailsContainer/ticketsTable.tsx +0 -246
- package/src/components/orderDetailsContainer/utils/index.tsx +0 -55
- package/src/components/paymentContainer/OrderDetails.tsx +0 -277
- package/src/components/paymentContainer/PaymentPlanSection.tsx +0 -169
- package/src/components/paymentContainer/handlePayment.ts +0 -86
- package/src/components/paymentContainer/index.tsx +0 -643
- package/src/components/paymentContainer/style.css +0 -196
- package/src/components/preRegistration/FieldsSection.tsx +0 -150
- package/src/components/preRegistration/Influancers.tsx +0 -34
- package/src/components/preRegistration/PreRegistrationComplete.tsx +0 -186
- package/src/components/preRegistration/PreRegistrationInformations.tsx +0 -60
- package/src/components/preRegistration/Prewards.tsx +0 -41
- package/src/components/preRegistration/ShareOptions.tsx +0 -77
- package/src/components/preRegistration/constants.tsx +0 -169
- package/src/components/preRegistration/index.tsx +0 -330
- package/src/components/preRegistration/style.css +0 -3
- package/src/components/preRegistration/utils.ts +0 -163
- package/src/components/registerForm/adapters/index.tsx +0 -10
- package/src/components/registerForm/constants.tsx +0 -98
- package/src/components/registerForm/index.tsx +0 -188
- package/src/components/registerModal/index.tsx +0 -154
- package/src/components/registerModal/style.css +0 -18
- package/src/components/resetPasswordContainer/index.tsx +0 -102
- package/src/components/resetPasswordContainer/style.css +0 -36
- package/src/components/rsvpContainer/index.tsx +0 -126
- package/src/components/seatMapContainer/SeatMapComponent.tsx +0 -77
- package/src/components/seatMapContainer/TicketsSection.tsx +0 -286
- package/src/components/seatMapContainer/addToCart.ts +0 -66
- package/src/components/seatMapContainer/index.tsx +0 -443
- package/src/components/seatMapContainer/utils.ts +0 -133
- package/src/components/signupModal/index.tsx +0 -178
- package/src/components/signupModal/style.css +0 -58
- package/src/components/ticketResale/index.tsx +0 -86
- package/src/components/ticketResaleModal/index.tsx +0 -224
- package/src/components/ticketResaleModal/style.css +0 -28
- package/src/components/ticketsContainer/AccessCodeSection.tsx +0 -50
- package/src/components/ticketsContainer/InfoIcon.tsx +0 -35
- package/src/components/ticketsContainer/PromoCodeSection.tsx +0 -116
- package/src/components/ticketsContainer/ReferralLogic.tsx +0 -33
- package/src/components/ticketsContainer/TicketRow.tsx +0 -107
- package/src/components/ticketsContainer/TicketsSection.tsx +0 -350
- package/src/components/ticketsContainer/TimeSlotTicketRow.tsx +0 -243
- package/src/components/ticketsContainer/TimeSlotsSection.tsx +0 -194
- package/src/components/ticketsContainer/index.tsx +0 -986
- package/src/components/ticketsContainer/style.css +0 -178
- package/src/components/ticketsContainer/utils.ts +0 -35
- package/src/components/timerWidget/index.tsx +0 -97
- package/src/components/timerWidget/style.css +0 -35
- package/src/components/waitingList/index.tsx +0 -190
- package/src/components/waitingList/style.css +0 -27
- package/src/constants/index.ts +0 -3
- package/src/env.ts +0 -29
- package/src/hoc/CustomFields/index.tsx +0 -85
- package/src/hoc/index.ts +0 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useCookieListener.ts +0 -32
- package/src/hooks/useEventListener.ts +0 -32
- package/src/hooks/useLocalStorageListener.ts +0 -32
- package/src/hooks/useOnline.ts +0 -21
- package/src/hooks/usePixel.ts +0 -88
- package/src/normalizers/index.ts +0 -49
- package/src/types/add_on.ts +0 -8
- package/src/types/api/auth.d.ts +0 -63
- package/src/types/api/axiosResponse.d.ts +0 -6
- package/src/types/api/cart.d.ts +0 -73
- package/src/types/api/checkout.d.ts +0 -92
- package/src/types/api/common.d.ts +0 -153
- package/src/types/api/guestTicketDelegation.d.ts +0 -18
- package/src/types/api/orders.d.ts +0 -116
- package/src/types/api/payment.d.ts +0 -180
- package/src/types/api/preRegistration.d.ts +0 -11
- package/src/types/api/preRegistrationComplete.d.ts +0 -95
- package/src/types/api/ticketResale.d.ts +0 -13
- package/src/types/billing-info-data.ts +0 -37
- package/src/types/checkoutPageConfigs.ts +0 -13
- package/src/types/formFields.d.ts +0 -29
- package/src/types/index.ts +0 -6
- package/src/types/order-data.ts +0 -16
- package/src/types/payment-field.ts +0 -7
- package/src/types/payment-plan-configuration.ts +0 -19
- package/src/types/pre-registration-complete.d.ts +0 -47
- package/src/types/referral-promotion.ts +0 -7
- package/src/types/seatMap.d.ts +0 -159
- package/src/types/verification.ts +0 -12
- package/src/utils/adaptStripeErrors.ts +0 -26
- package/src/utils/auth.ts +0 -45
- package/src/utils/cookies.ts +0 -73
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +0 -81
- package/src/utils/createMarkup.ts +0 -1
- package/src/utils/customFields.ts +0 -80
- package/src/utils/downloadPDF.tsx +0 -42
- package/src/utils/form.ts +0 -34
- package/src/utils/formikErrorFocus.ts +0 -24
- package/src/utils/getDomain.ts +0 -21
- package/src/utils/getImage.ts +0 -14
- package/src/utils/getQueryVariable.ts +0 -13
- package/src/utils/htmlNodeFromString.ts +0 -6
- package/src/utils/index.ts +0 -15
- package/src/utils/isBrowser.ts +0 -2
- package/src/utils/isValidNumber.ts +0 -8
- package/src/utils/jsonUtils.ts +0 -8
- package/src/utils/replaceVarInString.ts +0 -9
- package/src/utils/setConfigs.ts +0 -24
- package/src/utils/showZero.tsx +0 -10
- package/src/validators/index.ts +0 -61
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.button-container{display:flex;justify-content:center;padding:20px}.billing-info-container{margin:0 auto;max-width:800px}.billing-info-container .is-half{width:49%}.billing-info-container p{color:#000}.billing-info-container .main-header{font-size:2rem;font-weight:600}.billing-info-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.billing-info-container__singleField{margin-top:15px}button{margin-top:10px}.account-actions-block{color:#182026;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;margin-top:10px}.MuiButtonBase-root.MuiButton-root,.MuiButtonBase-root.MuiButton-root:hover,.login-register-button{background-color:#212529;border:#f28051;border-radius:5px;color:#fff;cursor:pointer;display:block;font-family:Inter-Bold;font-size:26px;font-weight:700;line-height:1.15;margin-top:10px;min-height:46px;outline:none;overflow:hidden;padding:14px 12px 12px;position:relative;text-align:center;text-overflow:ellipsis;text-transform:uppercase;width:49%}.logo-image-container{margin-top:5px;text-align:center;width:49%}.logo-image-container img{height:30px}.login-block{align-items:center;display:flex;flex-direction:column}.login-register-button:hover{background-color:#505050!important;border-color:#505050!important}.login-register-block{display:flex;justify-content:space-between}@media only screen and (max-width:820px){.billing-info-container{width:90%}.billing-info-container .main-header{font-size:1.5rem}}.email-checking{margin-bottom:15px}.billing-info-container .email-registered-message{background-color:#fff!important;border:2px solid #000!important;border-radius:5px!important;box-sizing:border-box!important;clear:both!important;display:block!important;margin-bottom:15px!important;margin-top:10px!important;max-width:100%!important;padding:12px!important;width:100%!important}.billing-info-container .email-registered-text{color:#000!important;font-size:11px!important;font-weight:400!important;line-height:1.3!important;margin:0 0 10px!important}.billing-info-container .email-login-button.MuiButton-root.MuiButton-contained{background-color:#212529!important;border:none!important;border-radius:5px!important;box-shadow:none!important;color:#fff!important;cursor:pointer!important;font-size:13px!important;font-weight:700!important;line-height:1.15!important;min-height:40px!important;padding:10px 12px!important;text-align:center!important;text-transform:uppercase!important;width:100%!important}.billing-info-container .email-login-button.MuiButton-root.MuiButton-contained:hover{background-color:#505050!important;box-shadow:none!important}.timer{background-color:#000;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=);background-position:15px;background-repeat:no-repeat;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;margin:0 0 6px;max-width:300px;overflow:hidden;padding:15px 15px 15px 50px;pointer-events:auto;position:fixed;right:15px;width:300px;z-index:9}.timer .close-icon{cursor:pointer;display:flex;position:absolute;right:10px;top:10px}.timer .countdown{font-weight:700;margin-top:10px}.forgot-password-modal .forgot-password-container{margin:0 auto;max-width:800px}.forgot-password-modal .title{background-color:#fff;font-family:Inter;font-size:18px;font-weight:700}.forgot-password-modal .forgot-password-container__singleField{margin-top:15px}.forgot-password-modal .forgot-password-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:10px;outline:none;padding:10px;text-transform:uppercase;width:100%}.forgot-password-modal .forgot-password-action-button button:hover:enabled{background-color:#505050;border-color:#505050}.forgot-password-modal .login{margin-top:10px;text-align:center}.forgot-password-modal .login span{cursor:pointer}.forgot-password-modal .login span:hover{text-decoration:underline}.forgot-password-modal button[disabled]{cursor:unset;opacity:.7}.modal-title{align-items:center;background-color:#fff;display:flex;font-family:Inter;font-size:18px;font-weight:700;height:49px;line-height:22px;padding-left:25px;position:relative}.login-modal-body{max-width:100%;padding:15px 25px}.login-modal-body input{background:#fff!important}.login-modal-body.MuiGrid-container{display:flex!important;flex-wrap:wrap!important;width:100%}.login-modal-body .MuiGrid-item{display:flex;flex-direction:column}.login-modal-body__email,.login-modal-body__password{margin-bottom:20px}.login-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin:10px 0;outline:none;padding:10px;width:100%}.login-action-button button:hover{background-color:#505050;border-color:#505050}.login-logo-tff{height:60px}.server_auth__error{color:red;font-family:Inter;font-size:12px;font-style:normal;padding-left:25px;padding-top:15px}.info-text-for-login{font-size:14px;margin-bottom:4px;padding-left:10px}.forgot-password{text-align:center}.forgot-password a,.forgot-password span{color:inherit;cursor:pointer;text-decoration:none}.forgot-password a:hover,.forgot-password span:hover{text-decoration:underline}.login-modal-body__name-fields{display:flex;gap:10px;margin-bottom:20px}.login-modal-body__first-name,.login-modal-body__last-name{flex:1}.login-modal-body__password-confirmation{margin-bottom:20px}.login-action-button button:disabled{background-color:#999;cursor:not-allowed}.login-action-button button:disabled:hover{background-color:#999}.payment_page{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.payment_page .order_info_section{padding:15px 0}.payment_page .order_info_section .order_info_block{padding-bottom:15px;padding-top:15px}.payment_page .order_info_section .order_info_block .field-underline{border-bottom:1px solid #000;padding-bottom:15px}.payment_page .order_info_section .order_info_block .order_info_title{font-size:14px;font-weight:700;padding-bottom:3px}.payment_page .order_info_section .order_info_block .order_info_text{font-size:16px;line-height:1.15;outline:none}.payment_page .MuiBox-root{margin-left:auto;margin-right:auto;padding:20px;text-align:center}.payment_page .payment_info_label{padding:20px 0;text-align:center}.payment_page .payment_form{color:#fff;padding:20px}.payment_page .payment_form input,.payment_page .payment_form label{color:#fff}.payment_page .payment_button{padding-top:20px;text-align:center}.payment_page .payment_method_selector{display:flex;gap:12px;justify-content:center;margin-bottom:20px}.payment_page .payment_method_option{background:#fff;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;padding:12px 24px;transition:all .2s ease}.payment_page .payment_method_option:hover{border-color:#999}.payment_page .payment_method_option.selected{background-color:#e3f2fd;border-color:#1976d2;color:#1976d2}.payment_page .payment_plan .payment_plan_block .payment_plan_text{padding-bottom:10px}.payment_page .payment_plan .payment_plan_highlight{font-weight:700}.mobile-order-summary{display:none}@media (max-width:767px){.mobile-order-summary{background-color:#f8f8f8;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.1);display:block;margin-bottom:15px}.mobile-order-summary-content{align-items:flex-start;cursor:pointer;display:flex;padding:15px}.mobile-order-info-container:after{content:"⌃";display:inline-block;float:right;font-size:15px;font-weight:900;left:6px;position:relative;top:-2px;transform:rotate(180deg);transition:transform .25s,top .25s}.mobile-order-info-container.open:after{top:2px;transform:rotate(0deg)}.mobile-order-info-container.order-info-container-left{text-align:left}.mobile-order-info-container.order-info-container-right{text-align:right}.mobile-order-icon{color:#1976d2;margin-right:15px;padding-top:2px}.mobile-order-info{flex:1}.mobile-order-text{color:#666;font-size:14px;margin-bottom:4px}.mobile-order-total{color:#333;font-size:18px;font-weight:700;margin-bottom:8px}.mobile-order-timer{align-items:center;border-top:1px dashed #ddd;display:flex;margin-top:8px;padding-top:8px}.mobile-timer-icon{color:#f44336;margin-right:8px}.mobile-timer-text{color:#666;font-size:13px}.mobile-timer-countdown{color:#f44336;font-weight:700}.mobile-order-expand{color:#666;padding-top:2px}.order_info_section.collapsed{display:none!important}.order_info_section.expanded{display:grid!important;margin-top:10px}}.signup-modal .signup-container{margin:0 auto;max-width:800px}.signup-modal .title{background-color:#fff;font-family:Inter;font-size:18px;font-weight:700}.signup-modal .signup-container .is-half{width:49%}.signup-modal .signup-container__twoFields{display:flex;justify-content:space-between;margin-top:15px}.signup-modal .signup-container__singleField{margin-top:15px}.signup-modal button{margin-top:10px}.signup-modal .signup-action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:10px;outline:none;padding:10px;text-transform:uppercase;width:100%}.signup-modal .signup-action-button button:hover:enabled{background-color:#505050;border-color:#505050}.signup-modal .login{margin-top:10px;text-align:center}.signup-modal .login span{cursor:pointer}.signup-modal .login span:hover{text-decoration:underline}.signup-modal button[disabled]{cursor:unset;opacity:.7}.confirmation-page{margin:0 auto;max-width:1024px}.confirmation-page button{margin-top:inherit}.confirmation-page .strong-text{font-weight:700}.confirmation-page .title{color:#333;font-size:24px;font-weight:600}.confirmation-page .share-message-section{background:#dff0d8;border:1px solid #d6e9c6;border-radius:5px;color:#2c7221;display:flex;flex-direction:column;margin:20px 0;padding:15px}.confirmation-page .main{font-size:15px;font-weight:700}.confirmation-page .helper,.confirmation-page .main{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif}.confirmation-page .helper{font-size:14px;margin-top:5px}.confirmation-page .referral_text_image_section{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}.confirmation-page .referral_text_section{margin:10px}.confirmation-page .referral_title_text{color:#f08057;font-size:28px;padding-bottom:10px}.confirmation-page .referral_text{font-size:18px}.confirmation-page .referral_text_image_section img{margin:10px;max-width:200px}.confirmation-page .share_wrapper{column-gap:5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:10px}.confirmation-page .invitation_title{font-size:22px;padding-bottom:12px;padding-top:12px}.confirmation-page .share_section{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px}.confirmation-page .invitation_section{flex:1 1;padding:0 5px}.confirmation-page .share_buttons{display:grid;flex-wrap:wrap;margin:0 -7px}.confirmation-page .convenient_buttons{margin-top:10px}.confirmation-page .social-media-btns{grid-gap:5px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.confirmation-page .sharing-btn{background-color:#000;flex:1 1;min-width:130px}.confirmation-page .sharing-btn a{text-decoration:none}.confirmation-page .share-by-link{background:#000;color:#fff;padding:10px}.confirmation-page .share-by-link.label{margin:0;padding:0;text-align:left}.confirmation-page .share-btn-inner{align-items:center;background-color:#000;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-flex;padding:0;text-align:left;width:100%}.confirmation-page .share-input{background-color:#fff;border:none;outline:none;padding:5px;text-align:left;width:300px}.confirmation-page .share-text{display:block;font-size:13px;font-weight:600;padding-top:8px;width:100%}.confirmation-page .pricing-section_wrapper{background:#e3e3e3;border:1px solid #dcdcdc;display:grid;grid-template-columns:1fr 1fr;margin:10px 0;padding:15px}.confirmation-page .pricing-section_label{font-weight:600}.confirmation-page .pricing-section_sublabel{font-size:14px;font-weight:100}.confirmation-page .pricing-section_price{font-weight:600;text-align:right}.confirmation-page .share-by-link-copy-icon{align-items:center;background-color:#32325d;border-radius:4px;color:#fff;cursor:pointer;display:flex;justify-content:center;margin-left:8px;padding:10px;transition:all .15s ease}.confirmation-page .share-by-link-copy-icon:hover{background-color:#505050}.confirmation-page .share-by-link-copy-icon img{width:14px}.confirmation-page .social-media-sharing{background-color:#000;color:#fff;cursor:pointer;padding:10px;text-align:center}.confirmation-page .share-icon{border-radius:4px;display:inline-flex}@media only screen and (max-width:1050px){.confirmation-page .share_wrapper{column-gap:0;display:grid;grid-template-columns:unset;margin:15px}}@media only screen and (max-width:480px){.confirmation-page .social-media-btns{grid-template-columns:unset}.confirmation-page .share-input{width:250px}}.twitter-btn{background-color:#000!important}body{margin:0;padding:0}.event-detail__tier{background-color:#fff;padding:17px 35px 20px}.event-detail__tier-name{color:#000;font-family:Inter-Bold;font-family:Bebas Neue;font-size:.85rem;font-weight:700;letter-spacing:.2em;line-height:1.3;margin-bottom:8px;margin-top:16px;padding-right:20%;text-transform:uppercase}.event-detail__tier-status{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-top:8px;width:100%}.event-detail__tier-status.ticket-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;font-weight:700;letter-spacing:.2em;line-height:1.5;margin-bottom:10px;width:200px}.event-tickets-container{align-items:center;display:flex;justify-content:space-between}.event-detail__tier-status.ticket-button.true{background-color:#c1c3c6;border-color:#afb0b1}.event-detail__tier-price{color:#000;font-family:Inter-Bold;font-size:1.5rem;line-height:1;text-align:center}.event-detail__tier-price p{margin:0}.event-detail__tier-price .fees{font-size:14px;margin-top:4px;text-align:left}.event-detail__tier-price .old-price{color:red;font-size:1.3rem;margin-bottom:5px;text-decoration:line-through}.alert-info{align-items:center;background-color:#d9edf7;border:1px solid #bce8f1;border-radius:4px;color:#3a87ad;display:flex;font-size:1em;justify-content:center;margin:0 35px;padding:8px 15px;text-shadow:0 1px 0 hsla(0,0%,100%,.5)}.alert-info svg{margin-right:4px}.event-detail__tier-state{color:#30bc9d;font-family:Inter-Bold;font-size:.75rem;font-weight:300;line-height:1;text-align:right;text-transform:uppercase}.event-detail__tier-state .ticket-not-started-message{color:#000;text-align:left;text-transform:none;width:50px}.promo-code-block input{font-size:14px;padding:1px 8px}.book-button{background-color:#212529;border:3px solid #000;border-radius:0;color:#fff;cursor:pointer;display:block;font-size:26px;font-weight:700;height:50px;letter-spacing:.2em;line-height:1.5;margin:25px auto 10px;text-align:center;width:100%}.book-button:hover{background-color:#505050;border-color:#505050}.loader-container{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.get-tickets-paper::-webkit-scrollbar{width:5px}.get-tickets-paper::-webkit-scrollbar-track{background:#f1f1f1}.get-tickets-paper::-webkit-scrollbar-thumb{background:#888}.get-tickets-paper::-webkit-scrollbar-thumb:hover{background:#555}.get-tickets .get-tickets__selectbox{width:100%}.disabled{pointer-events:none;user-select:none}.hidden{display:none}.event-closed-message{font-family:Bebas Neue;letter-spacing:.5px}.countdown p{margin:0}.countdown .title{font-weight:700}.countdown .message{font-weight:700;margin-top:20px}.preregistration_confirmation_header{margin-bottom:2rem}.waiting-list{padding:17px 35px 20px}.waiting-list .field-item{margin-bottom:30px}.waiting-list .waiting-list-button{width:100%!important}.waiting-list .waiting-list-button:hover{background-color:#505050}.waiting-list .success-message{margin-bottom:15px;text-align:center}.waiting-list .success-message p{margin:0}.waiting-list .no-tickets-text{font-weight:700;text-align:center}.waiting-list .added-success-message{font-size:22px;margin-bottom:10px}.my-ticket{padding:30px}.my-ticket-table{margin-top:30px}.my-ticket .loading{background-color:rgba(0,0,0,.4);height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%}.my-ticket .event-info,.my-ticket .loading{align-items:center;display:flex}.my-ticket thead th{font-weight:700}.my-ticket .event-info img{margin-right:10px;width:50px}.my-ticket .order-details-button{background-color:#32325d;border:none;border-radius:4px;color:#fff;cursor:pointer;padding:10px 14px;transition:all .15s ease}.my-ticket .order-details-button:hover{background-color:#505050}.order-details{margin:0 auto;max-width:940px}.order-details .loading{align-items:center;background-color:rgba(0,0,0,.4);display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:1400}.order-details .layout-title{font-size:24px;font-weight:400}.order-details .sub-title{font-size:18px;font-weight:400;margin:10px 0}.order-details .order-summary-box{margin-top:30px}.order-details .total-row td,.order-details th{color:#fff;font-weight:700}.order-details .tickets-box{margin-top:30px}.order-details .ticket-add-on-table{background-color:#fcf8e3}.order-details .action-button{background-color:#212529;border:1px solid #fff;border-radius:0;color:#fff;cursor:pointer;display:block;font-family:Bebas Neue;font-size:14px;font-weight:400;line-height:normal;margin-bottom:20px;margin-top:20px;min-height:auto;outline:none;overflow:hidden;padding:12px;position:relative;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;width:max-content}.order-details .download-button:hover{background-color:#505050}.order-details .personal-link{padding:20px 0}.order-details .total-referrer{padding:0 0 20px}.resale-modal .field-box{display:flex;margin-bottom:10px}.resale-modal .field-box .icon{align-items:center;display:flex;height:56px;justify-content:center;min-width:44px}.resale-modal .field-box .empty-box{min-width:44px}.resale-modal .resale-action-button button{background-color:#212529;color:#fff;cursor:pointer;width:100%}.resale-modal .resale-action-button button[disabled]{opacity:.7}.resale-modal .resale-action-button button:hover{background-color:#505050;border-color:#505050;width:100%}.reset-password{margin:0 auto;max-width:300px;padding:14px}.reset-password .title{font-size:20px;font-weight:700}.reset-password .field-item{margin-top:14px}.reset-password .action-button button{background-color:#212529;border:none;border-radius:0;color:#fff;cursor:pointer;font-size:26px;font-weight:600;height:45px;line-height:18px;margin-top:14px;outline:none;padding:10px;text-transform:uppercase;width:100%}.reset-password .action-button button:hover:enabled{background-color:#505050;border-color:#505050}.reset-password .action-button button[disabled]{cursor:unset;opacity:.7}
|
package/dist/types/add_on.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface IGroupItem {
|
|
3
|
-
name: string;
|
|
4
|
-
label: string | JSX.Element;
|
|
5
|
-
type?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
component?: ReactNode | JSX.Element | HTMLElement;
|
|
9
|
-
onValidate?: (value: any) => void;
|
|
10
|
-
uniqueId?: string;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
export interface IFieldData {
|
|
14
|
-
groupItems: IGroupItem[];
|
|
15
|
-
groupClassname?: string;
|
|
16
|
-
groupLabel?: string | JSX.Element | HTMLElement;
|
|
17
|
-
groupLabelClassName?: string;
|
|
18
|
-
id?: number;
|
|
19
|
-
uniqueId?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IBillingInfoData {
|
|
22
|
-
fields: IFieldData[];
|
|
23
|
-
id?: number | string;
|
|
24
|
-
label?: string | JSX.Element;
|
|
25
|
-
labelClassName?: string;
|
|
26
|
-
uniqueId?: string;
|
|
27
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ICheckoutPageConfigs {
|
|
2
|
-
age_required: boolean;
|
|
3
|
-
event_id: string;
|
|
4
|
-
has_add_on: boolean;
|
|
5
|
-
minimum_age?: number | string | null;
|
|
6
|
-
names_required: boolean;
|
|
7
|
-
phone_required: boolean;
|
|
8
|
-
skip_billing_page: boolean;
|
|
9
|
-
free_ticket: boolean;
|
|
10
|
-
collect_optional_wallet_address: boolean;
|
|
11
|
-
collect_mandatory_wallet_address: boolean;
|
|
12
|
-
addon_max_quantity_groups?: number | null;
|
|
13
|
-
}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { IBillingInfoData, IFieldData, IGroupItem } from './billing-info-data';
|
|
2
|
-
export { IOrderData } from './order-data';
|
|
3
|
-
export { IPaymentField } from './payment-field';
|
|
4
|
-
export { IReferralPromotion } from './referral-promotion';
|
|
5
|
-
export { ICheckoutPageConfigs } from './checkoutPageConfigs';
|
|
6
|
-
export { IAddOn } from './add_on';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IAddOn } from './add_on';
|
|
2
|
-
export interface IOrderData {
|
|
3
|
-
id: string;
|
|
4
|
-
product_name: string;
|
|
5
|
-
ticketType: string | Array<any>;
|
|
6
|
-
quantity: string | number;
|
|
7
|
-
price: string | number;
|
|
8
|
-
total: string | number;
|
|
9
|
-
currency: string;
|
|
10
|
-
guest_count: string | number;
|
|
11
|
-
pay_now: string | number;
|
|
12
|
-
add_ons: IAddOn[];
|
|
13
|
-
cost: string | number;
|
|
14
|
-
expires_at?: number;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IPaymentPlanConfig {
|
|
2
|
-
requires_deposit: boolean;
|
|
3
|
-
deposit: number;
|
|
4
|
-
interval: number;
|
|
5
|
-
non_refundable_type: string | null;
|
|
6
|
-
non_refundable_amount: number;
|
|
7
|
-
has_admin_fee: boolean;
|
|
8
|
-
admin_fee: number;
|
|
9
|
-
total_installments: number;
|
|
10
|
-
price_per_installment: number;
|
|
11
|
-
total: number;
|
|
12
|
-
stripe_setup_intent_secret: string;
|
|
13
|
-
saved_card: IPaymentPlanConfigCard;
|
|
14
|
-
}
|
|
15
|
-
export interface IPaymentPlanConfigCard {
|
|
16
|
-
last_4_digits: string | null;
|
|
17
|
-
stripe_payment_method_id: string | null;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface GetNetverifyUrlResponseData {
|
|
2
|
-
netverifyUrl: string | null;
|
|
3
|
-
provider: string | null;
|
|
4
|
-
}
|
|
5
|
-
export interface VerificationStatusResponseData {
|
|
6
|
-
attributes: {
|
|
7
|
-
status: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface UpdateVerificationStatusResponseData {
|
|
11
|
-
status: string;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StripeError } from '@stripe/stripe-js';
|
|
2
|
-
declare type stripeErrorReason = 'PAYMENT_ALREADY_CONFIRMED';
|
|
3
|
-
interface IAdaptedStripeError extends StripeError {
|
|
4
|
-
isStripeError: boolean;
|
|
5
|
-
errorReason?: stripeErrorReason;
|
|
6
|
-
}
|
|
7
|
-
export declare const adaptStripeError: (error: StripeError) => IAdaptedStripeError;
|
|
8
|
-
export {};
|
package/dist/utils/auth.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AxiosError } from 'axios';
|
|
2
|
-
export declare const setLoggedUserData: (data: IProfileData) => {
|
|
3
|
-
id: string | number;
|
|
4
|
-
first_name: string;
|
|
5
|
-
last_name: string;
|
|
6
|
-
email: string;
|
|
7
|
-
confirmEmail: string;
|
|
8
|
-
city: string;
|
|
9
|
-
country: string | number;
|
|
10
|
-
phone: string;
|
|
11
|
-
street_address: string;
|
|
12
|
-
state: string | number;
|
|
13
|
-
zip: string | number;
|
|
14
|
-
};
|
|
15
|
-
interface LogoutUserParams {
|
|
16
|
-
onLogoutSuccess?: () => void;
|
|
17
|
-
onLogoutError?: (error: AxiosError) => void;
|
|
18
|
-
setIsLogged?: (isLogged: boolean) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare const logoutUser: ({ onLogoutSuccess, onLogoutError, setIsLogged, }: LogoutUserParams) => Promise<void>;
|
|
21
|
-
export {};
|
package/dist/utils/cookies.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare type Type1 = string | number | null | undefined;
|
|
2
|
-
interface ICheckoutBody {
|
|
3
|
-
attributes: {
|
|
4
|
-
[key: string]: Type1 | Record<string | number, Type1> | Array<Type1 | IticketHolder>;
|
|
5
|
-
};
|
|
6
|
-
data_capture?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
interface IticketHolder {
|
|
11
|
-
first_name?: string;
|
|
12
|
-
last_name?: string;
|
|
13
|
-
phone?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
}
|
|
16
|
-
interface IUserCredentialsValues {
|
|
17
|
-
emailLogged?: string;
|
|
18
|
-
firstNameLogged?: string;
|
|
19
|
-
lastNameLogged?: string;
|
|
20
|
-
phoneLogged?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const createCheckoutDataBodyWithDefaultHolder: (ticketsQuantity: number, logedInValues: Record<string, string | undefined>, includeDob?: boolean, userCredentials?: IUserCredentialsValues) => ICheckoutBody;
|
|
23
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IBillingInfoData } from '../types';
|
|
3
|
-
export declare const getDataWithCustomFields: (initialData: IBillingInfoData[], ticketHoldersFields: IBillingInfoData, customFields: any) => {
|
|
4
|
-
dataWithCustomFields: {
|
|
5
|
-
fields: import("../types").IFieldData[];
|
|
6
|
-
id?: string | number | undefined;
|
|
7
|
-
label?: string | JSX.Element | undefined;
|
|
8
|
-
labelClassName?: string | undefined;
|
|
9
|
-
uniqueId?: string | undefined;
|
|
10
|
-
}[];
|
|
11
|
-
ticketHoldersWithCustomFields: {
|
|
12
|
-
fields: (import("../types").IFieldData | {
|
|
13
|
-
id: number;
|
|
14
|
-
customFields: boolean;
|
|
15
|
-
groupClassname: string;
|
|
16
|
-
groupItems: any[];
|
|
17
|
-
})[];
|
|
18
|
-
id?: string | number | undefined;
|
|
19
|
-
label?: string | JSX.Element | undefined;
|
|
20
|
-
labelClassName?: string | undefined;
|
|
21
|
-
uniqueId?: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const getAddOnDataWithCustomFields: (customFields: any) => {
|
|
25
|
-
addOnDataWithCustomFields: never[];
|
|
26
|
-
} | {
|
|
27
|
-
addOnDataWithCustomFields: {
|
|
28
|
-
fields: {
|
|
29
|
-
id: number;
|
|
30
|
-
groupClassname: string;
|
|
31
|
-
groupItems: any[];
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const getFieldsKeys: (customFields: any) => any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const downloadPDF: (pdfUrl: string) => Promise<any> | undefined;
|
package/dist/utils/form.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDomain(url: string, subdomain?: string, publicSuffix?: string): string;
|
package/dist/utils/getImage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getImage: (name?: string) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getQueryVariable: (variable: string) => string | false;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createElementFromHTML: (htmlString: string) => NodeListOf<ChildNode>;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { setConfigs, CONFIGS } from './setConfigs';
|
|
2
|
-
export { getQueryVariable } from './getQueryVariable';
|
|
3
|
-
export { ErrorFocus } from './formikErrorFocus';
|
|
4
|
-
export { downloadPDF } from './downloadPDF';
|
|
5
|
-
export { createCheckoutDataBodyWithDefaultHolder } from './createCheckoutDataBodyWithDefaultHolder';
|
|
6
|
-
export { setCustomCookie, getCookieByName, deleteCookieByName } from './cookies';
|
|
7
|
-
export { getDomain } from './getDomain';
|
|
8
|
-
export { createMarkup } from './createMarkup';
|
|
9
|
-
export { replaceVarInString } from './replaceVarInString';
|
|
10
|
-
export { isBrowser } from './isBrowser';
|
|
11
|
-
export { getFormInitialValues } from './form';
|
|
12
|
-
export { setLoggedUserData, logoutUser } from './auth';
|
|
13
|
-
export { getDataWithCustomFields, getFieldsKeys } from './customFields';
|
|
14
|
-
export { createElementFromHTML } from './htmlNodeFromString';
|
|
15
|
-
export { isJson } from './jsonUtils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBrowser: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isValidNumber: (value?: string | number | undefined) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isJson: (value: any) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const replaceVarInString: (message: string | undefined, varArray: Array<string>) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface IConfigs {
|
|
2
|
-
BASE_URL: string;
|
|
3
|
-
CLIENT_ID: string;
|
|
4
|
-
CLIENT_SECRET: string;
|
|
5
|
-
STRIPE_PUBLISHABLE_KEY: string;
|
|
6
|
-
X_SOURCE_ORIGIN: string;
|
|
7
|
-
FEES_STYLE: string;
|
|
8
|
-
[key: string]: string | number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CONFIGS: IConfigs;
|
|
11
|
-
export declare const setConfigs: (configs: IConfigs) => void;
|
package/dist/utils/showZero.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const showZero: (value?: number) => string | number | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const emailRegex: RegExp;
|
|
2
|
-
export declare const combineValidators: (...validators: any) => (...value: any) => any;
|
|
3
|
-
export declare function isFalsy(item: any): boolean;
|
|
4
|
-
export declare const requiredValidator: (value?: string | number | boolean | string[] | undefined, message?: string | undefined) => string;
|
|
5
|
-
export declare const emailValidator: (email: string) => "" | "Please enter a valid email address";
|
|
6
|
-
export declare const passwordValidator: (password: string) => string;
|
|
7
|
-
export declare const confirmPasswordValidator: (confirmPassword: string, password: string) => string;
|
|
8
|
-
export declare const confirmEmailValidator: (confirmEmail: string, email: string) => string;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import _forEach from 'lodash/forEach'
|
|
2
|
-
import _get from 'lodash/get'
|
|
3
|
-
import _map from 'lodash/map'
|
|
4
|
-
|
|
5
|
-
import { IGroupItem } from '../types'
|
|
6
|
-
|
|
7
|
-
export const optionsAdapter = (options: any) => {
|
|
8
|
-
const adaptedOptions = _map(options, option => ({
|
|
9
|
-
id: option.id,
|
|
10
|
-
label: option.name,
|
|
11
|
-
value: option.value,
|
|
12
|
-
}))
|
|
13
|
-
return adaptedOptions
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const fieldDataAdapter = (field: IGroupItem) => {
|
|
17
|
-
const {
|
|
18
|
-
name,
|
|
19
|
-
label,
|
|
20
|
-
required,
|
|
21
|
-
description,
|
|
22
|
-
type,
|
|
23
|
-
options,
|
|
24
|
-
...restValues
|
|
25
|
-
} = field
|
|
26
|
-
|
|
27
|
-
const adaptedField: IGroupItem = {
|
|
28
|
-
name,
|
|
29
|
-
label,
|
|
30
|
-
required,
|
|
31
|
-
description,
|
|
32
|
-
type,
|
|
33
|
-
className: _get(restValues, 'settings.className', ''),
|
|
34
|
-
value: _get(restValues, 'defaultValue'),
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
switch (type) {
|
|
38
|
-
case 'textarea':
|
|
39
|
-
adaptedField.type = 'text'
|
|
40
|
-
adaptedField.multiline = true
|
|
41
|
-
break
|
|
42
|
-
case 'radio':
|
|
43
|
-
adaptedField.radios = optionsAdapter(options)
|
|
44
|
-
break
|
|
45
|
-
case 'select_multi':
|
|
46
|
-
adaptedField.isMultiple = true
|
|
47
|
-
adaptedField.options = optionsAdapter(options)
|
|
48
|
-
break
|
|
49
|
-
case 'select':
|
|
50
|
-
adaptedField.type = 'select_multi'
|
|
51
|
-
adaptedField.isMultiple = false
|
|
52
|
-
adaptedField.options = optionsAdapter(options)
|
|
53
|
-
break
|
|
54
|
-
default:
|
|
55
|
-
break
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return adaptedField
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const customFieldsDataAdapter = (data: any) => {
|
|
62
|
-
const adaptedTicketFields: Array<IGroupItem> = []
|
|
63
|
-
const adaptedOrderFields: Array<IGroupItem> = []
|
|
64
|
-
const adaptedAddOnFields: Array<IGroupItem> = []
|
|
65
|
-
|
|
66
|
-
_forEach(data, field => {
|
|
67
|
-
const ticketFields = _get(field, 'ticket.group.fields')
|
|
68
|
-
const orderFields = _get(field, 'order.group.fields')
|
|
69
|
-
const addOnFields = _get(field, 'add-on.group.fields')
|
|
70
|
-
|
|
71
|
-
_forEach(ticketFields, ticketField => {
|
|
72
|
-
adaptedTicketFields.push(fieldDataAdapter(ticketField))
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
_forEach(orderFields, orderField => {
|
|
76
|
-
adaptedOrderFields.push(fieldDataAdapter(orderField))
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
_forEach(addOnFields, addOnField => {
|
|
80
|
-
adaptedAddOnFields.push(fieldDataAdapter(addOnField))
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
return { ticketsFields: adaptedTicketFields, orderFields: adaptedOrderFields, addOnFields: adaptedAddOnFields }
|
|
85
|
-
}
|
package/src/adapters/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { customFieldsDataAdapter } from './customFields'
|
package/src/api/auth.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios'
|
|
2
|
-
|
|
3
|
-
import { CONFIGS } from '../utils'
|
|
4
|
-
import { publicRequest } from './publicRequest'
|
|
5
|
-
|
|
6
|
-
export const authorize = async (
|
|
7
|
-
data: IAuthorizeRequestData
|
|
8
|
-
): Promise<IProfileResponse> => {
|
|
9
|
-
const response: AxiosResponse<IProfileResponse, AxiosRequestConfig> =
|
|
10
|
-
await publicRequest.post(
|
|
11
|
-
`/auth?clientId=${CONFIGS.CLIENT_ID || 'e9d8f8922797b4621e562255afe90dbf'}`,
|
|
12
|
-
data
|
|
13
|
-
)
|
|
14
|
-
return response.data
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const signUp = async (data: ISignupRequestData): Promise<IProfileResponse> => {
|
|
18
|
-
const response: AxiosResponse<IProfileResponse, AxiosRequestConfig> =
|
|
19
|
-
await publicRequest.post('auth/signup', { ...data })
|
|
20
|
-
return response.data
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const register = async (data: FormData): Promise<IProfileResponse> => {
|
|
24
|
-
const response: AxiosResponse<IProfileResponse, AxiosRequestConfig> =
|
|
25
|
-
await publicRequest.post('v1/oauth/register-rn', data)
|
|
26
|
-
return response.data
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const getProfileData = async (): Promise<IProfileResponse> => {
|
|
30
|
-
const response: AxiosResponse<IProfileResponse, AxiosRequestConfig> =
|
|
31
|
-
await publicRequest.get('/customer/profile/')
|
|
32
|
-
return response.data
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const logout = async (): Promise<IAxiosResponseData> => {
|
|
36
|
-
const response: AxiosResponse<IAxiosResponseData, AxiosRequestConfig> =
|
|
37
|
-
await publicRequest.delete('/auth')
|
|
38
|
-
return response.data
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Checks whether a given email address already exists via the `/ajax/contact-email` endpoint.
|
|
43
|
-
*
|
|
44
|
-
* The underlying API is expected to return a JSON object containing:
|
|
45
|
-
* - `exists`: `1` if the email exists, `0` otherwise
|
|
46
|
-
* - `error`: `1` if an error occurred, `0` otherwise
|
|
47
|
-
* - `message`: an optional error message when `error === 1`
|
|
48
|
-
*
|
|
49
|
-
* This function normalizes that response to an object with:
|
|
50
|
-
* - `exists`: a boolean indicating whether the email exists
|
|
51
|
-
* - `error`: an optional string containing an error message, if any
|
|
52
|
-
*
|
|
53
|
-
* On network or unexpected errors, it returns `{ exists: false, error: 'Failed to check email' }`.
|
|
54
|
-
*
|
|
55
|
-
* @param {string} email - The email address to check for existence.
|
|
56
|
-
* @returns {Promise<{ exists: boolean; error?: string }>} A promise that resolves to the normalized
|
|
57
|
-
* result of the email existence check.
|
|
58
|
-
*/
|
|
59
|
-
export const checkEmailExists = async (
|
|
60
|
-
email: string
|
|
61
|
-
): Promise<{ exists: boolean, error?: string }> => {
|
|
62
|
-
try {
|
|
63
|
-
const formData = new FormData()
|
|
64
|
-
formData.append('email', email)
|
|
65
|
-
formData.append('is_checkout_flow', 'true')
|
|
66
|
-
|
|
67
|
-
const baseUrl = publicRequest.defaults.baseURL?.replace('/api', '') || ''
|
|
68
|
-
const url = `${baseUrl}/ajax/contact-email`
|
|
69
|
-
|
|
70
|
-
const response: AxiosResponse<any, AxiosRequestConfig> =
|
|
71
|
-
await publicRequest.post(url, formData, {
|
|
72
|
-
headers: {
|
|
73
|
-
'Content-Type': 'multipart/form-data',
|
|
74
|
-
},
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
exists: response.data.exists === 1,
|
|
79
|
-
error: response.data.error === 1 ? response.data.message : undefined,
|
|
80
|
-
}
|
|
81
|
-
} catch (error) {
|
|
82
|
-
console.error('Error checking email:', error)
|
|
83
|
-
return {
|
|
84
|
-
exists: false,
|
|
85
|
-
error: 'Failed to check email',
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
package/src/api/cart.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios'
|
|
2
|
-
|
|
3
|
-
import { isBrowser } from '../utils'
|
|
4
|
-
import { publicRequest } from './publicRequest'
|
|
5
|
-
|
|
6
|
-
export const addToCart = async (
|
|
7
|
-
id: string | number,
|
|
8
|
-
data: ICartRequestData
|
|
9
|
-
): Promise<ICartResponse> => {
|
|
10
|
-
const response: AxiosResponse<ICartResponse, AxiosRequestConfig> =
|
|
11
|
-
await publicRequest.post(
|
|
12
|
-
`v1/event/${id}/add-to-cart/`,
|
|
13
|
-
{ data },
|
|
14
|
-
{
|
|
15
|
-
headers: {
|
|
16
|
-
...publicRequest.defaults.headers.common,
|
|
17
|
-
'Referer-Url': isBrowser ? document.referrer : '',
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
return response.data
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const getCart = async (): Promise<IGetCartResponse> => {
|
|
25
|
-
const response: AxiosResponse<IGetCartResponse, AxiosRequestConfig> =
|
|
26
|
-
await publicRequest.get(`v1/cart`)
|
|
27
|
-
return response.data
|
|
28
|
-
}
|
package/src/api/checkout.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios'
|
|
2
|
-
|
|
3
|
-
import { ICheckoutResponse } from '../types/api/checkout'
|
|
4
|
-
import { publicRequest } from './publicRequest'
|
|
5
|
-
|
|
6
|
-
export const postOnCheckout = async (
|
|
7
|
-
data: any,
|
|
8
|
-
freeTicket = false
|
|
9
|
-
): Promise<ICheckoutResponse> => {
|
|
10
|
-
if (freeTicket) {
|
|
11
|
-
delete data.attributes.city
|
|
12
|
-
delete data.attributes.country
|
|
13
|
-
delete data.attributes.state
|
|
14
|
-
delete data.attributes.street_address
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const response: AxiosResponse<ICheckoutResponse, AxiosRequestConfig> =
|
|
18
|
-
await publicRequest.post(`v1/on-checkout`, { data })
|
|
19
|
-
|
|
20
|
-
return response.data
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const updateCheckout = async (data: any): Promise<ICheckoutResponse> => {
|
|
24
|
-
const response: AxiosResponse<ICheckoutResponse, AxiosRequestConfig> =
|
|
25
|
-
await publicRequest.post(`v1/checkout`, { data })
|
|
26
|
-
|
|
27
|
-
return response.data
|
|
28
|
-
}
|