tf-checkout-react 1.0.105 → 1.0.106-beta.11

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.
Files changed (114) hide show
  1. package/README.md +278 -1
  2. package/dist/api/index.d.ts +34 -24
  3. package/dist/components/billing-info-container/index.d.ts +6 -1
  4. package/dist/components/common/CustomField.d.ts +1 -1
  5. package/dist/components/common/DatePickerField.d.ts +14 -0
  6. package/dist/components/common/PhoneNumberField.d.ts +9 -0
  7. package/dist/components/common/index.d.ts +1 -0
  8. package/dist/components/confirmationContainer/index.d.ts +2 -1
  9. package/dist/components/countdown/index.d.ts +3 -1
  10. package/dist/components/forgotPasswordModal/index.d.ts +11 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/loginModal/index.d.ts +33 -0
  13. package/dist/components/myTicketsContainer/index.d.ts +2 -1
  14. package/dist/components/orderDetailsContainer/index.d.ts +2 -1
  15. package/dist/components/orderDetailsContainer/ticketsTable.d.ts +2 -0
  16. package/dist/components/resetPasswordContainer/index.d.ts +10 -0
  17. package/dist/components/rsvpContainer/index.d.ts +7 -0
  18. package/dist/components/signupModal/index.d.ts +14 -0
  19. package/dist/components/ticketResale/index.d.ts +5 -3
  20. package/dist/components/ticketsContainer/AccessCodeSection.d.ts +7 -0
  21. package/dist/components/ticketsContainer/PromoCodeSection.d.ts +5 -9
  22. package/dist/components/ticketsContainer/TicketsSection.d.ts +5 -3
  23. package/dist/components/ticketsContainer/index.d.ts +8 -2
  24. package/dist/components/timerWidget/index.d.ts +3 -3
  25. package/dist/images/cross.svg +44 -0
  26. package/dist/images/done.svg +3 -3
  27. package/dist/index.d.ts +2 -0
  28. package/dist/tf-checkout-react.cjs.development.js +1332 -579
  29. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  30. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  31. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  32. package/dist/tf-checkout-react.esm.js +1334 -583
  33. package/dist/tf-checkout-react.esm.js.map +1 -1
  34. package/dist/tf-checkout-styles.css +1 -1
  35. package/package.json +89 -89
  36. package/src/.d.ts +2 -2
  37. package/src/api/index.ts +359 -293
  38. package/src/assets/images/cross.svg +44 -0
  39. package/src/assets/images/done.svg +3 -3
  40. package/src/components/billing-info-container/index.tsx +845 -796
  41. package/src/components/billing-info-container/style.css +105 -105
  42. package/src/components/billing-info-container/utils.ts +225 -224
  43. package/src/components/common/CheckboxField.tsx +41 -41
  44. package/src/components/common/CustomField.tsx +87 -84
  45. package/src/components/common/DatePickerField.tsx +98 -0
  46. package/src/components/common/FormikPhoneNumberField.tsx +51 -51
  47. package/src/components/common/Loader.tsx +9 -9
  48. package/src/components/common/PhoneNumberField.tsx +68 -0
  49. package/src/components/common/RadioField.tsx +35 -35
  50. package/src/components/common/RedirectModal.tsx +43 -43
  51. package/src/components/common/SelectField.tsx +80 -80
  52. package/src/components/common/SnackbarAlert.tsx +53 -53
  53. package/src/components/common/index.tsx +5 -4
  54. package/src/components/confirmModal/index.tsx +51 -51
  55. package/src/components/confirmModal/style.css +21 -21
  56. package/src/components/confirmationContainer/config.ts +72 -72
  57. package/src/components/confirmationContainer/index.tsx +207 -197
  58. package/src/components/confirmationContainer/social-buttons.tsx +94 -94
  59. package/src/components/confirmationContainer/style.css +202 -202
  60. package/src/components/countdown/index.tsx +98 -89
  61. package/src/components/countdown/style.css +9 -9
  62. package/src/components/forgotPasswordModal/index.tsx +107 -0
  63. package/src/components/forgotPasswordModal/style.css +47 -0
  64. package/src/components/index.ts +8 -7
  65. package/src/components/loginModal/index.tsx +247 -209
  66. package/src/components/loginModal/style.css +71 -71
  67. package/src/components/myTicketsContainer/index.tsx +175 -196
  68. package/src/components/myTicketsContainer/row.tsx +41 -41
  69. package/src/components/myTicketsContainer/style.css +39 -39
  70. package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
  71. package/src/components/orderDetailsContainer/index.tsx +256 -249
  72. package/src/components/orderDetailsContainer/style.css +72 -72
  73. package/src/components/orderDetailsContainer/ticketsTable.tsx +128 -124
  74. package/src/components/paymentContainer/index.tsx +285 -284
  75. package/src/components/resetPasswordContainer/index.tsx +96 -0
  76. package/src/components/resetPasswordContainer/style.css +36 -0
  77. package/src/components/rsvpContainer/index.tsx +126 -0
  78. package/src/components/signupModal/index.tsx +195 -0
  79. package/src/components/signupModal/style.css +58 -0
  80. package/src/components/stripePayment/index.tsx +254 -253
  81. package/src/components/stripePayment/style.css +59 -59
  82. package/src/components/ticketResale/index.tsx +74 -56
  83. package/src/components/ticketResaleModal/index.tsx +215 -210
  84. package/src/components/ticketResaleModal/style.css +28 -28
  85. package/src/components/ticketsContainer/AccessCodeSection.tsx +50 -0
  86. package/src/components/ticketsContainer/PromoCodeSection.tsx +88 -99
  87. package/src/components/ticketsContainer/ReferralLogic.tsx +31 -33
  88. package/src/components/ticketsContainer/TicketRow.tsx +89 -83
  89. package/src/components/ticketsContainer/TicketsSection.tsx +90 -85
  90. package/src/components/ticketsContainer/index.tsx +464 -430
  91. package/src/components/ticketsContainer/style.css +181 -181
  92. package/src/components/ticketsContainer/utils.ts +11 -11
  93. package/src/components/timerWidget/index.tsx +87 -70
  94. package/src/components/timerWidget/style.css +34 -26
  95. package/src/components/waitingList/index.tsx +178 -178
  96. package/src/components/waitingList/style.css +26 -26
  97. package/src/env.ts +20 -20
  98. package/src/index.ts +16 -14
  99. package/src/normalizers/index.ts +45 -45
  100. package/src/types/billing-info-data.ts +37 -37
  101. package/src/types/payment-field.ts +7 -7
  102. package/src/types/referral-promotion.ts +7 -7
  103. package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
  104. package/src/utils/downloadPDF.tsx +30 -30
  105. package/src/utils/formikErrorFocus.ts +24 -24
  106. package/src/utils/getImage.ts +14 -14
  107. package/src/utils/getQueryVariable.ts +13 -13
  108. package/src/utils/index.ts +5 -5
  109. package/src/utils/setConfigs.ts +26 -26
  110. package/src/utils/showZero.tsx +10 -10
  111. package/src/validators/index.ts +20 -20
  112. package/dist/components/registerModal/index.d.ts +0 -11
  113. package/src/components/registerModal/index.tsx +0 -190
  114. package/src/components/registerModal/style.css +0 -18
package/README.md CHANGED
@@ -1,5 +1,280 @@
1
- # react-checkout-module
1
+ # tf-checkout-react
2
+  
2
3
 
4
+ - [About The Project](#about-the-project)
5
+ - [Getting started](#getting-started)
6
+ - [Prerequisites](#prerequisites)
7
+ - [Installation](#installation)
8
+ - [Existing project](#existing-project)
9
+ - [Run Independently](#run-independently)
10
+ - [Usage](#usage)
11
+ - [Set configuration](#set-configuration)
12
+ - [Features/Functionalities](#featuresfunctionalities)
13
+ - [Login](#login)
14
+ - [Tickets Container](#tickets-container)
15
+ - [Billing Container](#billing-container)
16
+ - [Checkout Containers](#checkout-containers)
17
+ - [Confirmation Container](#confirmation-container)
18
+ - [Orders Container](#orders-container)
19
+ - [Order Container](#order-container)
20
+ - [Commands](#commands)
21
+ - [Rollup](#rollup)
22
+ - [TypeScript](#typescript)
23
+ - [GitHub Actions](#github-actions)
24
+
25
+  
26
+ # About The Project
27
+
28
+ This package containes Ticketfairy checkout functionality. Besides that package provides different functionalities connected with checkout functionality, such as `login/register`, `order management functionality`, `resale functionality`, `referrals functionality`, etc.
29
+
30
+  
31
+ # Getting started
32
+ ## Prerequisites
33
+ - node >= 12.14.1
34
+ - npm >= 6.13.4
35
+ ## Installation
36
+ ### Existing project
37
+
38
+ ```
39
+ npm i tf-checkout-react
40
+ ```
41
+ or
42
+ ```
43
+ yarn add tf-checkout-react
44
+ ```
45
+ ### Run Independently
46
+
47
+ - Clone this repo: `git clone https://github.com/theticketfairy/tf-checkout-react.git`
48
+ - Install dependencies: `npm install`
49
+ - Install example app dependencies: `cd example && npm install`
50
+ - Run example app from example folder: `npm start`
51
+
52
+ Project will run under `localhost:3002`. Port can be changed from `package.json`.
53
+
54
+  
55
+
56
+ # Usage
57
+
58
+ ## Set configuration
59
+
60
+ Import `setConfigs` function from the package.
61
+
62
+ ```
63
+ import { setConfigs } from 'tf-checkout-react'
64
+ ```
65
+
66
+ Call it in the root and pass neccesary options. Here are available options:
67
+
68
+ - BASE_URL - need for making API calls (default: `https://www.ticketfairy.com`)
69
+ - EVENT_ID - only for local testing
70
+ - BRAND_SLUG - only for local testing
71
+ - X_SOURCE_ORIGIN - need for local environment. This header will be included in every API request (ex. `houseofx.nyc`)
72
+
73
+  
74
+
75
+ # Features/Functionalities
76
+
77
+ ## Login
78
+
79
+ Used to authenticate user. Import `LoginModal` from package. `LoginModal` component provides login form with validations and error handlings. Also it provides callback functions for every action and API call.
80
+
81
+ ### `props`
82
+
83
+ ```
84
+ interface Props {
85
+ onClose: () => void;
86
+ onLogin: () => void;
87
+ alreadyHasUser?: boolean;
88
+ userExpired?: boolean;
89
+ onAuthorizeSuccess?: (res: any) => void;
90
+ onAuthorizeError?: (e: AxiosError) => void;
91
+ onGetProfileDataSuccess?: (res: any) => void;
92
+ onGetProfileDataError?: (e: AxiosError) => void;
93
+ modalClassname?: string;
94
+ }
95
+ ```
96
+
97
+  
98
+ ## Tickets Container
99
+
100
+ Tickets container/component will retrieve and show a list of tickets corresponding to `eventId`. It also containes `PromoCode`, `AccessCode`, `WaitingLsit` and `SessionButtons` functionalities.
101
+
102
+ ### `props`
103
+
104
+ ```
105
+ interface Props {
106
+ eventId: number;
107
+ getTicketsLabel?: string;
108
+ contentStyle?: React.CSSProperties;
109
+
110
+ onAddToCartSuccess: (response: CartSuccess) => void;
111
+ onAddToCartError: (e: AxiosError) => void;
112
+ onGetTicketsSuccess: (response: any) => void;
113
+ onGetTicketsError: (e: AxiosError) => void;
114
+ onLogoutSuccess: () => void;
115
+ onLogoutError: (e: AxiosError) => void;
116
+ onLoginSuccess: () => void;
117
+
118
+ theme?: 'light' | 'dark';
119
+ themeOptions?: ThemeOptions & {
120
+ input?: CSSProperties;
121
+ checkbox?: CSSProperties;
122
+ };
123
+
124
+ queryPromoCode?: string;
125
+ isPromotionsEnabled?: boolean;
126
+ isAccessCodeEnabled?: boolean;
127
+
128
+ hideSessionButtons?: boolean;
129
+ hideWaitingList?: boolean;
130
+ enableBillingInfoAutoCreate?: boolean;
131
+ isButtonScrollable?: boolean;
132
+ sortBySoldOut?: boolean;
133
+ disableCountdownLeadingZero?: boolean;
134
+ }
135
+ ```
136
+
137
+  
138
+ ## Billing Container
139
+
140
+ Billing container provides form for filling user's data. Form contains `user info`, `age` and `ticket holders` sections. Depending on event's requirements billing information form may differ. Form will autofill all available information and in case of all required fields are autofilled, billing page will redirect to payment page. Form submition will automatically register new user, if there is no existing user with provided email.
141
+
142
+ ### `props`
143
+
144
+ ```
145
+ interface Props {
146
+ data?: IBillingInfoData[];
147
+ ticketHoldersFields?: IBillingInfoData;
148
+ initialValues?: FormikValues;
149
+ handleSubmit?: (
150
+ values: FormikValues,
151
+ formikHelpers: FormikHelpers<FormikValues>,
152
+ eventId: any,
153
+ res: any
154
+ ) => void;
155
+ onSubmitError?: (e: AxiosError) => void;
156
+
157
+ onRegisterSuccess?: (value: any) => void;
158
+ onRegisterError?: (e: AxiosError, email: string) => void;
159
+ onGetCartSuccess?: (res: any) => void;
160
+ onGetCartError?: (e: AxiosError) => void;
161
+ onGetCountriesSuccess?: (res: any) => void;
162
+ onGetCountriesError?: (e: AxiosError) => void;
163
+ onGetStatesSuccess?: (res: any) => void;
164
+ onGetStatesError?: (e: AxiosError) => void;
165
+ onGetProfileDataSuccess?: (res: any) => void;
166
+ onGetProfileDataError?: (e: AxiosError) => void;
167
+ onAuthorizeSuccess?: () => void;
168
+ onAuthorizeError?: (e: AxiosError) => void;
169
+ onSkipBillingPage: (data: any) => void;
170
+ onCountdownFinish?: () => void;
171
+
172
+ isLoggedIn?: boolean;
173
+ onLogin?: () => void;
174
+ onLoginSuccess?: () => void;
175
+ onErrorClose?: () => void;
176
+
177
+ theme?: 'light' | 'dark';
178
+ themeOptions?: ThemeOptions & {
179
+ input?: CSSProperties;
180
+ checkbox?: CSSProperties;
181
+ };
182
+
183
+ buttonName?: string;
184
+ accountInfoTitle?: string | JSX.Element;
185
+ hideLogo?: boolean;
186
+ hideErrorsAlertSection?: boolean;
187
+ skipPage?: boolean;
188
+ canSkipHolderNames?: boolean;
189
+ shouldFetchCountries?: boolean;
190
+ enableTimer?: boolean;
191
+ }
192
+ ```
193
+
194
+ &nbsp;
195
+ ## Checkout Containers
196
+
197
+ Will show the order details and a card form that the user will need to fill with its card details.
198
+ TicketFairy doesn't store any card related data, we use [Stripe](https://stripe.com/) as payments solution.
199
+
200
+ ### `props`
201
+
202
+ ```
203
+ interface Props {
204
+ paymentFields: IPaymentField[];
205
+ handlePayment: any;
206
+ checkoutData: any;
207
+ formTitle?: string;
208
+ errorText?: string;
209
+ onErrorClose?: () => void;
210
+ onGetPaymentDataSuccess: (value: any) => void;
211
+ onGetPaymentDataError: (value: AxiosError) => void;
212
+ onPaymentError: (value: AxiosError) => void;
213
+ stripeCardOptions?: StripeCardNumberElementOptions;
214
+ disableZipSection: boolean;
215
+ themeOptions?: ThemeOptions & {
216
+ input?: CSSProperties;
217
+ checkbox?: CSSProperties;
218
+ };
219
+ elementsOptions?: StripeElementsOptions;
220
+ onCountdownFinish?: () => void;
221
+ enableTimer?: boolean;
222
+ }
223
+ ```
224
+
225
+ &nbsp;
226
+ ## Confirmation Container
227
+
228
+ This is shown once the payment is successfully completed, could show components to share the purchase in social media or refer it with friends to get discounts on the purchase.
229
+
230
+ ### `props`
231
+
232
+ ```
233
+ interface Props {
234
+ isReferralEnabled: boolean;
235
+ showDefaultShareButtons: boolean;
236
+ messengerAppId: string;
237
+ shareButtons: IShareButton[];
238
+ orderHash?: string;
239
+
240
+ onGetConfirmationDataSuccess: (res: any) => void;
241
+ onGetConfirmationDataError: (e: AxiosError) => void;
242
+ onLinkCopied: () => void;
243
+ }
244
+ ```
245
+
246
+ &nbsp;
247
+ ## Orders Container
248
+
249
+ Will show the purchased orders for the logged user.
250
+
251
+ ### `props`
252
+
253
+ ```
254
+ interface Props {
255
+ handleDetailsInfo: (id: string) => void;
256
+ onGetOrdersSuccess: (res: any) => void;
257
+ onGetOrdersError: (err: any) => void;
258
+
259
+ theme?: 'light' | 'dark';
260
+ }
261
+ ```
262
+
263
+ &nbsp;
264
+ ## Order Container
265
+
266
+ Will show the purchased order details. Contains `order PDF download` and `ticket resale` functionalities. Currently both functionalities are enabled by default.
267
+
268
+ ### `props`
269
+
270
+ ```
271
+ interface Props {
272
+ onGetOrderSuccess: (res: any) => void;
273
+ onGetOrderError: (err: any) => void;
274
+ }
275
+ ```
276
+
277
+ &nbsp;
3
278
  ## Commands
4
279
 
5
280
  TSDX scaffolds your new library inside `/src`, and also sets up a [Parcel-based](https://parceljs.org) playground for it inside `/example`.
@@ -24,10 +299,12 @@ The default example imports and live reloads whatever is in `/dist`, so if you a
24
299
 
25
300
  To do a one-off build, use `npm run build` or `yarn build`.
26
301
 
302
+ &nbsp;
27
303
  ### Rollup
28
304
 
29
305
  TSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.
30
306
 
307
+ &nbsp;
31
308
  ### TypeScript
32
309
 
33
310
  `tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.
@@ -1,4 +1,4 @@
1
- import { AxiosInstance } from 'axios';
1
+ import { AxiosResponse, AxiosInstance } from 'axios';
2
2
  interface IPublicRequest extends AxiosInstance {
3
3
  setGuestToken: (token: string) => void;
4
4
  setAccessToken: (token: string) => void;
@@ -8,28 +8,38 @@ export declare const publicRequest: IPublicRequest;
8
8
  export declare const setXSourceOrigin: (sourceOrigin: string) => void;
9
9
  export declare const setCustomHeader: (response: any) => void;
10
10
  export declare const handleSetAccessToken: (token: any) => void;
11
- export declare function getEvent(id: string | number): Promise<import("axios").AxiosResponse<any, any>>;
12
- export declare function getTickets(id: string | number, promoCode: string): Promise<import("axios").AxiosResponse<any, any>>;
13
- export declare const addToCart: (id: string | number, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
14
- export declare const getCart: () => Promise<import("axios").AxiosResponse<any, any>>;
15
- export declare const postOnCheckout: (data: any, accessToken: string) => Promise<import("axios").AxiosResponse<any, any>>;
16
- export declare const authorize: (data: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
17
- export declare const register: (data: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
18
- export declare const getAccessToken: (data: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
19
- export declare const getPaymentData: (hash: string) => Promise<import("axios").AxiosResponse<any, any>>;
20
- export declare const handlePaymentData: (orderHash: string, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
21
- export declare const handlePaymentSuccess: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
22
- export declare const handleFreeSuccess: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
11
+ export declare function getEvent(id: string | number): Promise<AxiosResponse<any, any>>;
12
+ export declare function getTickets(id: string | number, promoCode: string): Promise<AxiosResponse<any, any>>;
13
+ export declare const addToCart: (id: string | number, data: any) => Promise<AxiosResponse<any, any>>;
14
+ export declare const getCart: () => Promise<AxiosResponse<any, any>>;
15
+ export declare const postOnCheckout: (data: any, accessToken: string) => Promise<AxiosResponse<any, any>>;
16
+ export declare const authorize: (data: FormData) => Promise<AxiosResponse<any, any>>;
17
+ export declare const register: (data: FormData) => Promise<AxiosResponse<any, any>>;
18
+ export declare const getAccessToken: (data: FormData) => Promise<AxiosResponse<any, any>>;
19
+ export declare const getPaymentData: (hash: string) => Promise<AxiosResponse<any, any>>;
20
+ export declare const handlePaymentData: (orderHash: string, data: any) => Promise<AxiosResponse<any, any>>;
21
+ export declare const handlePaymentSuccess: (orderHash: string) => Promise<AxiosResponse<any, any>>;
22
+ export declare const handleFreeSuccess: (orderHash: string) => Promise<AxiosResponse<any, any>>;
23
23
  export declare const getProfileData: (accessToken: any) => Promise<any>;
24
- export declare const getCountries: () => Promise<import("axios").AxiosResponse<any, any>>;
25
- export declare const getConfirmationData: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
26
- export declare const getStates: (countryId: string) => Promise<import("axios").AxiosResponse<any, any>>;
27
- export declare const getOrders: (page: number, limit: number, eventSlug: string) => Promise<import("axios").AxiosResponse<any, any>>;
28
- export declare const getOrderDetails: (orderId: string) => Promise<import("axios").AxiosResponse<any, any>>;
29
- export declare const addToWaitingList: (id: number, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
30
- export declare const getConditions: (eventId: string) => Promise<import("axios").AxiosResponse<any, any>>;
31
- export declare const resaleTicket: (data: any, hash: string) => Promise<import("axios").AxiosResponse<any, any>>;
32
- export declare const removeFromResale: (hash: string) => Promise<import("axios").AxiosResponse<any, any>>;
33
- export declare const postReferralVisits: (eventId: string, referralId: string) => Promise<import("axios").AxiosResponse<any, any>>;
34
- export declare const checkTicketStatus: (hash: string) => Promise<import("axios").AxiosResponse<any, any>>;
24
+ export declare const getCountries: () => Promise<AxiosResponse<any, any>>;
25
+ export declare const getConfirmationData: (orderHash: string) => Promise<AxiosResponse<any, any>>;
26
+ export declare const getStates: (countryId: string) => Promise<AxiosResponse<any, any>>;
27
+ export declare const getOrders: (page: number, limit: number, eventSlug: string) => Promise<AxiosResponse<any, any>>;
28
+ export declare const getOrderDetails: (orderId: string) => Promise<AxiosResponse<any, any>>;
29
+ export declare const addToWaitingList: (id: number, data: any) => Promise<AxiosResponse<any, any>>;
30
+ export declare const getConditions: (eventId: string) => Promise<AxiosResponse<any, any>>;
31
+ export declare const resaleTicket: (data: any, hash: string) => Promise<AxiosResponse<any, any>>;
32
+ export declare const removeFromResale: (hash: string) => Promise<AxiosResponse<any, any>>;
33
+ export declare const postReferralVisits: (eventId: string, referralId: string) => Promise<AxiosResponse<any, any>>;
34
+ export declare const forgotPassword: (email: string) => Promise<AxiosResponse<any, any>>;
35
+ interface IResetPasswordData {
36
+ token: string;
37
+ password: string;
38
+ confirmPassword: string;
39
+ }
40
+ export declare const resetPassword: (data: IResetPasswordData) => Promise<AxiosResponse<any, any>>;
41
+ export declare const processTicket: (hash: string) => Promise<AxiosResponse<any, any>>;
42
+ export declare const declineInvitation: (hash: string) => Promise<AxiosResponse<any, any>>;
43
+ export declare const sendRSVPInfo: (eventId: number, data: any) => Promise<AxiosResponse<any, any>>;
44
+ export declare const validatePhoneNumber: (phone: string) => Promise<any>;
35
45
  export {};
@@ -42,7 +42,12 @@ export interface IBillingInfoPage {
42
42
  onSkipBillingPage: (data: any) => void;
43
43
  skipPage?: boolean;
44
44
  canSkipHolderNames?: boolean;
45
+ onForgotPasswordSuccess?: (res: any) => void;
46
+ onForgotPasswordError?: (e: AxiosError) => void;
45
47
  onCountdownFinish?: () => void;
46
48
  enableTimer?: boolean;
49
+ logo?: string;
50
+ showForgotPasswordButton?: boolean;
51
+ showSignUpButton?: boolean;
47
52
  }
48
- export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onCountdownFinish, enableTimer }: IBillingInfoPage) => JSX.Element;
53
+ export declare const BillingInfoContainer: ({ data, ticketHoldersFields, initialValues, buttonName, handleSubmit, theme, onRegisterSuccess, onRegisterError, onSubmitError, onGetCartSuccess, onGetCartError, onGetCountriesSuccess, onGetCountriesError, onGetStatesSuccess, onGetStatesError, onGetProfileDataSuccess, onGetProfileDataError, onAuthorizeSuccess, onAuthorizeError, onLogin, onLoginSuccess, isLoggedIn: pIsLoggedIn, accountInfoTitle, hideLogo, themeOptions, onErrorClose, hideErrorsAlertSection, onSkipBillingPage, skipPage, canSkipHolderNames, onForgotPasswordSuccess, onForgotPasswordError, onCountdownFinish, enableTimer, logo, showForgotPasswordButton, showSignUpButton }: IBillingInfoPage) => JSX.Element;
@@ -16,5 +16,5 @@ export interface ICustomField {
16
16
  interface IOtherProps {
17
17
  [key: string]: any;
18
18
  }
19
- export declare const CustomField: ({ label, type, field, selectOptions, form: { touched, errors, submitCount }, theme, }: ICustomField & IOtherProps) => JSX.Element;
19
+ export declare const CustomField: ({ label, type, field, selectOptions, form: { touched, errors, submitCount }, theme, inputProps: pInputProps, InputProps, inputRef, }: ICustomField & IOtherProps) => JSX.Element;
20
20
  export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FieldInputProps, FormikProps } from 'formik';
3
+ export interface IDatePickerFieldProps {
4
+ label: string;
5
+ field: FieldInputProps<any>;
6
+ form: FormikProps<any>;
7
+ theme: 'dark' | 'light';
8
+ useCompact?: boolean;
9
+ }
10
+ interface IOtherProps {
11
+ [key: string]: any;
12
+ }
13
+ export declare const DatePickerField: ({ label, field, form, theme, useCompact, }: IDatePickerFieldProps & IOtherProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { FieldInputProps, FormikProps } from 'formik';
3
+ export interface IPhoneNumberField {
4
+ label: string;
5
+ field: FieldInputProps<any>;
6
+ form: FormikProps<any>;
7
+ type: string;
8
+ }
9
+ export declare const PhoneNumberField: ({ label, type, field, form: { errors, setFieldError, setStatus }, }: IPhoneNumberField) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export { CheckboxField } from './CheckboxField';
2
2
  export { CustomField } from './CustomField';
3
3
  export { FormikPhoneNumberField } from './FormikPhoneNumberField';
4
+ export { PhoneNumberField } from './PhoneNumberField';
4
5
  export { Loader } from './Loader';
5
6
  export { SelectField } from './SelectField';
@@ -8,6 +8,7 @@ export interface IShareButton {
8
8
  shareData: any;
9
9
  }
10
10
  export interface IConfirmationPage {
11
+ hasCopyIcon?: boolean;
11
12
  isReferralEnabled: boolean;
12
13
  showDefaultShareButtons: boolean;
13
14
  messengerAppId: string;
@@ -17,4 +18,4 @@ export interface IConfirmationPage {
17
18
  onLinkCopied: () => void;
18
19
  orderHash?: string;
19
20
  }
20
- export declare const ConfirmationContainer: ({ isReferralEnabled, showDefaultShareButtons, messengerAppId, shareButtons, onGetConfirmationDataSuccess, onGetConfirmationDataError, orderHash, onLinkCopied }: IConfirmationPage) => JSX.Element;
21
+ export declare const ConfirmationContainer: ({ hasCopyIcon, isReferralEnabled, showDefaultShareButtons, messengerAppId, shareButtons, onGetConfirmationDataSuccess, onGetConfirmationDataError, orderHash, onLinkCopied }: IConfirmationPage) => JSX.Element;
@@ -5,7 +5,9 @@ interface CountdownTypes {
5
5
  timezone?: string;
6
6
  title?: string;
7
7
  message?: string;
8
+ disableLeadingZero?: boolean;
8
9
  callback?: () => void;
10
+ isLoggedIn?: boolean;
9
11
  }
10
- declare function Countdown({ startDate, timezone, title, message, callback }: CountdownTypes): JSX.Element;
12
+ declare function Countdown({ startDate, timezone, title, message, disableLeadingZero, callback, isLoggedIn }: CountdownTypes): JSX.Element;
11
13
  export default Countdown;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { AxiosError } from 'axios';
3
+ import './style.css';
4
+ interface IForgotPasswordProps {
5
+ onClose: () => void;
6
+ onLogin: () => void;
7
+ onForgotPasswordSuccess: (res: any) => void;
8
+ onForgotPasswordError: (e: AxiosError) => void;
9
+ }
10
+ export declare const ForgotPasswordModal: FC<IForgotPasswordProps>;
11
+ export {};
@@ -4,4 +4,5 @@ export { PaymentContainer } from './paymentContainer';
4
4
  export { TicketsContainer } from './ticketsContainer';
5
5
  export { MyTicketsContainer } from './myTicketsContainer';
6
6
  export { OrderDetailsContainer } from './orderDetailsContainer';
7
+ export { ResetPasswordContainer } from './resetPasswordContainer';
7
8
  export { TicketResaleContainer } from './ticketResale';
@@ -10,7 +10,40 @@ interface Props {
10
10
  onAuthorizeError?: (e: AxiosError) => void;
11
11
  onGetProfileDataSuccess?: (res: any) => void;
12
12
  onGetProfileDataError?: (e: AxiosError) => void;
13
+ onForgotPassword?: () => void;
14
+ onSignup?: () => void;
13
15
  modalClassname?: string;
16
+ logo?: string;
17
+ showForgotPasswordButton?: boolean;
18
+ showSignUpButton?: boolean;
14
19
  }
20
+ interface IUserData {
21
+ id: string;
22
+ firstName: string;
23
+ lastName: string;
24
+ email: string;
25
+ city?: string;
26
+ country?: string;
27
+ countryId?: string;
28
+ phone?: string;
29
+ streetAddress?: string;
30
+ state?: string;
31
+ zip?: string;
32
+ zipCode?: string;
33
+ stateId?: string;
34
+ }
35
+ export declare const setLoggedUserData: (data: IUserData) => {
36
+ id: string;
37
+ first_name: string;
38
+ last_name: string;
39
+ email: string;
40
+ confirmEmail: string;
41
+ city: string;
42
+ country: string;
43
+ phone: string;
44
+ street_address: string;
45
+ state: string;
46
+ zip: string;
47
+ };
15
48
  export declare const LoginModal: FC<Props>;
16
49
  export {};
@@ -4,7 +4,8 @@ interface MyTicketsTypes {
4
4
  handleDetailsInfo: (id: string) => void;
5
5
  onGetOrdersSuccess: (res: any) => void;
6
6
  onGetOrdersError: (err: any) => void;
7
+ logo?: string;
7
8
  theme?: 'light' | 'dark';
8
9
  }
9
- export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, }: MyTicketsTypes) => JSX.Element;
10
+ export declare const MyTicketsContainer: ({ handleDetailsInfo, onGetOrdersSuccess, onGetOrdersError, theme, logo, }: MyTicketsTypes) => JSX.Element;
10
11
  export {};
@@ -3,6 +3,7 @@ import './style.css';
3
3
  interface OrderDetailsTypes {
4
4
  onGetOrdersSuccess: (res: any) => void;
5
5
  onGetOrdersError: (err: any) => void;
6
+ onReturnButtonClick: (data: any) => void;
6
7
  }
7
- export declare const OrderDetailsContainer: ({ onGetOrdersSuccess, onGetOrdersError, }: OrderDetailsTypes) => JSX.Element;
8
+ export declare const OrderDetailsContainer: ({ onGetOrdersSuccess, onGetOrdersError, onReturnButtonClick }: OrderDetailsTypes) => JSX.Element;
8
9
  export {};
@@ -15,6 +15,8 @@ export interface ITicketTypes {
15
15
  event_name: string;
16
16
  currency: string;
17
17
  resale_fee_amount: number | string;
18
+ ticket_type_hash: string;
19
+ ticket_type_is_active?: boolean;
18
20
  }
19
21
  interface TicketsTableTypes {
20
22
  tickets: ITicketTypes[];
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { AxiosError } from 'axios';
3
+ import './style.css';
4
+ interface IResetPasswordProps {
5
+ token?: string;
6
+ onResetPasswordSuccess?: (res: any) => void;
7
+ onResetPasswordError?: (e: AxiosError) => void;
8
+ }
9
+ export declare const ResetPasswordContainer: FC<IResetPasswordProps>;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface IRsvpContainerPage {
3
+ showSection?: boolean;
4
+ eventId: number;
5
+ }
6
+ export declare const RsvpContainer: ({ showSection, eventId }: IRsvpContainerPage) => JSX.Element | null;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { AxiosError } from 'axios';
3
+ import './style.css';
4
+ interface ISignupProps {
5
+ onClose: () => void;
6
+ onLogin: () => void;
7
+ onRegisterSuccess: (value: {
8
+ accessToken: string;
9
+ refreshToken: string;
10
+ }) => void;
11
+ onRegisterError: (e: AxiosError, email: string) => void;
12
+ }
13
+ export declare const SignupModal: FC<ISignupProps>;
14
+ export {};
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { AxiosError } from 'axios';
3
3
  export interface ITicketResaleContainer {
4
- onCheckTicketStatusSuccess: (res: any) => void;
5
- onCheckTicketStatusError: (e: AxiosError) => void;
4
+ onProcessTicketSuccess: (res: any) => void;
5
+ onProcessTicketError: (e: AxiosError) => void;
6
+ onDeclineTicketPurchaseSuccess: (res: any) => void;
7
+ onDeclineTicketPurchaseError: (e: AxiosError) => void;
6
8
  orderHash?: string;
7
9
  }
8
- export declare const TicketResaleContainer: ({ onCheckTicketStatusSuccess, onCheckTicketStatusError, orderHash, }: ITicketResaleContainer) => JSX.Element;
10
+ export declare const TicketResaleContainer: ({ onProcessTicketSuccess, onProcessTicketError, onDeclineTicketPurchaseSuccess, onDeclineTicketPurchaseError, orderHash, }: ITicketResaleContainer) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface IAccessCodeSectionProps {
3
+ code: string;
4
+ setCode: (value: string) => void;
5
+ updateTickets: (value: boolean) => void;
6
+ }
7
+ export declare const AccessCodeSection: ({ code, setCode, updateTickets }: IAccessCodeSectionProps) => JSX.Element;
@@ -1,14 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export interface IPromoCodeSectionProps {
3
- promoCode: string;
4
- promoCodeIsApplied: boolean;
3
+ code: string;
4
+ codeIsApplied: boolean;
5
5
  showPromoInput: boolean;
6
- isPromotionsEnabled: boolean;
7
- isAllTicketsSoldOut: boolean;
8
- isAccessCodeEnabled?: boolean;
9
- isPromoLoading?: boolean;
10
- setPromoCode: (value: string) => void;
11
- setPromoCodeUpdated: (value: string) => void;
6
+ setCode: (value: string) => void;
12
7
  setShowPromoInput: (value: boolean) => void;
8
+ updateTickets: (value: boolean) => void;
13
9
  }
14
- export declare const PromoCodeSection: ({ promoCode, promoCodeIsApplied, showPromoInput, isPromotionsEnabled, setPromoCode, setPromoCodeUpdated, setShowPromoInput, isAccessCodeEnabled, isPromoLoading, }: IPromoCodeSectionProps) => JSX.Element;
10
+ export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets }: IPromoCodeSectionProps) => JSX.Element;
@@ -1,11 +1,13 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  import './style.css';
3
3
  interface ITicketsSectionProps {
4
4
  ticketsList: any;
5
5
  selectedTickets: any;
6
6
  handleTicketSelect: any;
7
- promoCodeIsApplied: boolean;
7
+ codeIsApplied: boolean;
8
8
  sortBySoldOut: boolean;
9
+ ticketsHeaderComponent?: ReactNode;
10
+ hideTicketsHeader: boolean;
9
11
  }
10
- export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect, promoCodeIsApplied, sortBySoldOut, }: ITicketsSectionProps) => JSX.Element;
12
+ export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect, codeIsApplied, sortBySoldOut, ticketsHeaderComponent, hideTicketsHeader }: ITicketsSectionProps) => JSX.Element;
11
13
  export {};