tf-checkout-react-native 1.0.11 → 1.0.14

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 (82) hide show
  1. package/README.md +595 -294
  2. package/android/build.gradle +3 -3
  3. package/lib/api/ApiClient.d.ts +13 -21
  4. package/lib/api/ApiClient.js +122 -51
  5. package/lib/api/ApiClient.js.map +1 -1
  6. package/lib/api/types.d.ts +21 -11
  7. package/lib/components/login/Login.d.ts +1 -1
  8. package/lib/components/login/Login.js +22 -10
  9. package/lib/components/login/Login.js.map +1 -1
  10. package/lib/components/login/LoginView.d.ts +1 -1
  11. package/lib/components/login/LoginView.js +16 -13
  12. package/lib/components/login/LoginView.js.map +1 -1
  13. package/lib/components/login/styles.d.ts +2 -1
  14. package/lib/components/login/styles.js +2 -1
  15. package/lib/components/login/styles.js.map +1 -1
  16. package/lib/components/login/types.d.ts +19 -9
  17. package/lib/components/waitingList/WaitingList.d.ts +1 -1
  18. package/lib/components/waitingList/WaitingList.js +20 -3
  19. package/lib/components/waitingList/WaitingList.js.map +1 -1
  20. package/lib/components/waitingList/WaitingListView.js +19 -7
  21. package/lib/components/waitingList/WaitingListView.js.map +1 -1
  22. package/lib/components/waitingList/types.d.ts +10 -0
  23. package/lib/containers/billingInfo/Billing.d.ts +2 -1
  24. package/lib/containers/billingInfo/Billing.js +100 -66
  25. package/lib/containers/billingInfo/Billing.js.map +1 -1
  26. package/lib/containers/billingInfo/types.d.ts +42 -93
  27. package/lib/containers/checkout/Checkout.d.ts +1 -1
  28. package/lib/containers/checkout/Checkout.js +146 -50
  29. package/lib/containers/checkout/Checkout.js.map +1 -1
  30. package/lib/containers/checkout/styles.d.ts +2 -0
  31. package/lib/containers/checkout/styles.js +4 -2
  32. package/lib/containers/checkout/styles.js.map +1 -1
  33. package/lib/containers/checkout/types.d.ts +32 -8
  34. package/lib/containers/myOrderDetails/MyOrderDetails.js +21 -3
  35. package/lib/containers/myOrderDetails/MyOrderDetails.js.map +1 -1
  36. package/lib/containers/myOrderDetails/MyOrderDetailsView.js +10 -7
  37. package/lib/containers/myOrderDetails/MyOrderDetailsView.js.map +1 -1
  38. package/lib/containers/myOrderDetails/components/Notification.d.ts +10 -2
  39. package/lib/containers/myOrderDetails/components/Notification.js +5 -7
  40. package/lib/containers/myOrderDetails/components/Notification.js.map +1 -1
  41. package/lib/containers/myOrderDetails/types.d.ts +18 -0
  42. package/lib/containers/myOrders/MyOrders.js +37 -9
  43. package/lib/containers/myOrders/MyOrders.js.map +1 -1
  44. package/lib/containers/myOrders/MyOrdersView.d.ts +1 -1
  45. package/lib/containers/myOrders/MyOrdersView.js +3 -3
  46. package/lib/containers/myOrders/MyOrdersView.js.map +1 -1
  47. package/lib/containers/myOrders/types.d.ts +13 -1
  48. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.d.ts +1 -1
  49. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js +21 -5
  50. package/lib/containers/purchaseConfirmation/PurchaseConfirmation.js.map +1 -1
  51. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.d.ts +2 -2
  52. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js +4 -3
  53. package/lib/containers/purchaseConfirmation/PurchaseConfirmationView.js.map +1 -1
  54. package/lib/containers/purchaseConfirmation/types.d.ts +12 -1
  55. package/lib/containers/tickets/Tickets.d.ts +1 -1
  56. package/lib/containers/tickets/Tickets.js +59 -9
  57. package/lib/containers/tickets/Tickets.js.map +1 -1
  58. package/lib/containers/tickets/TicketsView.d.ts +1 -1
  59. package/lib/containers/tickets/TicketsView.js +5 -4
  60. package/lib/containers/tickets/TicketsView.js.map +1 -1
  61. package/lib/containers/tickets/components/TicketListItem.js +14 -7
  62. package/lib/containers/tickets/components/TicketListItem.js.map +1 -1
  63. package/lib/containers/tickets/components/types.d.ts +6 -0
  64. package/lib/containers/tickets/types.d.ts +28 -11
  65. package/lib/helpers/LocalStorage.d.ts +1 -1
  66. package/lib/helpers/LocalStorage.js +1 -3
  67. package/lib/helpers/LocalStorage.js.map +1 -1
  68. package/lib/index.d.ts +3 -3
  69. package/lib/res/colors.d.ts +2 -2
  70. package/lib/res/colors.js +2 -18
  71. package/lib/res/colors.js.map +1 -1
  72. package/lib/types/IError.d.ts +5 -0
  73. package/lib/types/IError.js +2 -0
  74. package/lib/types/IError.js.map +1 -0
  75. package/lib/types/ITicket.d.ts +12 -0
  76. package/lib/types/index.d.ts +1 -0
  77. package/lib/types/index.js +1 -0
  78. package/lib/types/index.js.map +1 -1
  79. package/package.json +3 -3
  80. package/lib/containers/checkout/CheckoutView.d.ts +0 -3
  81. package/lib/containers/checkout/CheckoutView.js +0 -48
  82. package/lib/containers/checkout/CheckoutView.js.map +0 -1
@@ -4,7 +4,7 @@ import { authorize, fetchAccessToken, fetchUserProfile, setAccessTokenHandler, }
4
4
  import { Config } from '../../helpers/Config';
5
5
  import { deleteAllData, LocalStorageKeys, storeData, } from '../../helpers/LocalStorage';
6
6
  import LoginView from './LoginView';
7
- const Login = ({ onLoginSuccessful, isLoginDialogVisible, showLoginDialog, hideLoginDialog, userFirstName, onLogoutSuccess, texts, styles, onLoginFailure, onFetchAccessTokenFailure, onFetchUserProfileFailure, refs, }) => {
7
+ const Login = ({ onLoginSuccessful, isLoginDialogVisible, showLoginDialog, hideLoginDialog, userFirstName, onLogoutSuccess, texts, styles, onLoginError, onFetchAccessTokenError, onFetchUserProfileError, refs, brandImages, onFetchAccessTokenSuccess, onFetchUserProfileSuccess, }) => {
8
8
  const [isLoading, setIsLoading] = useState(false);
9
9
  const [loginError, setLoginError] = useState('');
10
10
  const [userProfileData, setUserProfileData] = useState();
@@ -19,9 +19,9 @@ const Login = ({ onLoginSuccessful, isLoginDialogVisible, showLoginDialog, hideL
19
19
  const { code, error } = await authorize(bodyFormData);
20
20
  if (error || !code) {
21
21
  setIsLoading(false);
22
- if (onLoginFailure) {
23
- setLoginError(error || 'Auth error');
24
- return onLoginFailure(error || 'Auth error');
22
+ if (onLoginError) {
23
+ setLoginError((error === null || error === void 0 ? void 0 : error.message) || 'Auth error');
24
+ return onLoginError(error);
25
25
  }
26
26
  }
27
27
  const bodyFormDataToken = new FormData();
@@ -33,17 +33,29 @@ const Login = ({ onLoginSuccessful, isLoginDialogVisible, showLoginDialog, hideL
33
33
  const { error: tokenError, accessToken } = await fetchAccessToken(bodyFormDataToken);
34
34
  if (tokenError) {
35
35
  setIsLoading(false);
36
- if (onFetchAccessTokenFailure) {
37
- return onFetchAccessTokenFailure(tokenError);
36
+ if (onFetchAccessTokenError) {
37
+ return onFetchAccessTokenError(tokenError);
38
38
  }
39
39
  }
40
- setAccessTokenHandler(accessToken);
40
+ if (onFetchAccessTokenError) {
41
+ setAccessTokenHandler(accessToken);
42
+ }
43
+ if (onFetchAccessTokenSuccess) {
44
+ onFetchAccessTokenSuccess();
45
+ }
41
46
  const { error: userProfileError, userProfile } = await fetchUserProfile(accessToken);
42
47
  if (userProfileError || !userProfile) {
43
48
  setIsLoading(false);
44
- if (onFetchUserProfileFailure) {
45
- return onFetchUserProfileFailure(userProfileError || 'Error fetching user profile');
49
+ if (onFetchUserProfileError) {
50
+ return onFetchUserProfileError(userProfileError);
46
51
  }
52
+ return;
53
+ }
54
+ if (onFetchUserProfileSuccess) {
55
+ onFetchUserProfileSuccess({
56
+ firstName: userProfile.firstName,
57
+ lastName: userProfile.lastName,
58
+ });
47
59
  }
48
60
  const storedUserData = {
49
61
  id: userProfile.id,
@@ -66,7 +78,7 @@ const Login = ({ onLoginSuccessful, isLoginDialogVisible, showLoginDialog, hideL
66
78
  onLogoutSuccess();
67
79
  }
68
80
  };
69
- return (React.createElement(LoginView, { showDialog: showLoginDialog, hideDialog: hideLoginDialog, isDialogVisible: isLoginDialogVisible, onPressLogin: handleOnPressLogin, isLoading: isLoading, userProfile: userProfileData, onPressLogout: handleOnPressLogout, texts: texts, styles: styles, userFirstName: userFirstName, loginError: loginError, refs: refs }));
81
+ return (React.createElement(LoginView, { showDialog: showLoginDialog, hideDialog: hideLoginDialog, isDialogVisible: isLoginDialogVisible, onPressLogin: handleOnPressLogin, isLoading: isLoading, userProfile: userProfileData, onPressLogout: handleOnPressLogout, texts: texts, styles: styles, userFirstName: userFirstName, loginError: loginError, refs: refs, brandImages: brandImages }));
70
82
  };
71
83
  export default Login;
72
84
  //# sourceMappingURL=Login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Login.js","sourceRoot":"","sources":["../../../src/components/login/Login.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EACL,aAAa,EAEb,gBAAgB,EAChB,SAAS,GACV,MAAM,4BAA4B,CAAA;AAEnC,OAAO,SAAS,MAAM,aAAa,CAAA;AAGnC,MAAM,KAAK,GAAG,CAAC,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,aAAa,EACb,eAAe,EACf,KAAK,EACL,MAAM,EACN,cAAc,EACd,yBAAyB,EACzB,yBAAyB,EACzB,IAAI,GACQ,EAAE,EAAE;IAChB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAChD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,EAAgB,CAAA;IAEtE,MAAM,kBAAkB,GAAG,KAAK,EAAE,KAAa,EAAE,QAAgB,EAAE,EAAE;QACnE,IAAI,UAAU,EAAE;YACd,aAAa,CAAC,EAAE,CAAC,CAAA;SAClB;Q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AE,eAAe,EAC3B,UAAU,EAAE,eAAe,EAC3B,eAAe,EAAE,oBAAoB,EACrC,YAAY,EAAE,kBAAkB,EAChC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,mBAAmB,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,GACxB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { ILoginViewProps } from './types';
2
- declare const LoginView: ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLoading, onPressLogout, styles, texts, userFirstName, loginError, refs, }: ILoginViewProps) => JSX.Element;
2
+ declare const LoginView: ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLoading, onPressLogout, styles, texts, userFirstName, loginError, refs, brandImages, }: ILoginViewProps) => JSX.Element;
3
3
  export default LoginView;
@@ -17,12 +17,12 @@ const initialState = {
17
17
  error: undefined,
18
18
  },
19
19
  };
20
- const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLoading, onPressLogout, styles, texts, userFirstName, loginError, refs, }) => {
20
+ const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLoading, onPressLogout, styles, texts, userFirstName, loginError, refs, brandImages, }) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
22
22
  const [data, setData] = useState(initialState);
23
23
  const { email, password } = data;
24
24
  const getFormFields = () => {
25
- var _a, _b, _c, _d;
25
+ var _a, _b, _c, _d, _e, _f;
26
26
  const setInputData = (id, value) => {
27
27
  setData({ ...data, [id]: { value: value } });
28
28
  };
@@ -33,11 +33,11 @@ const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLo
33
33
  inputProps: {
34
34
  value: email.value,
35
35
  onTextChanged: setInputData,
36
- label: 'Email',
36
+ label: ((_a = texts === null || texts === void 0 ? void 0 : texts.dialog) === null || _a === void 0 ? void 0 : _a.emailLabel) || 'Email',
37
37
  keyboardType: 'email-address',
38
38
  autoCapitalize: 'none',
39
- styles: (_a = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _a === void 0 ? void 0 : _a.input,
40
- reference: (_b = refs === null || refs === void 0 ? void 0 : refs.inputs) === null || _b === void 0 ? void 0 : _b.email,
39
+ styles: (_b = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _b === void 0 ? void 0 : _b.input,
40
+ reference: (_c = refs === null || refs === void 0 ? void 0 : refs.inputs) === null || _c === void 0 ? void 0 : _c.email,
41
41
  },
42
42
  },
43
43
  {
@@ -46,10 +46,10 @@ const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLo
46
46
  inputProps: {
47
47
  value: password.value,
48
48
  onTextChanged: setInputData,
49
- label: 'Password',
49
+ label: ((_d = texts === null || texts === void 0 ? void 0 : texts.dialog) === null || _d === void 0 ? void 0 : _d.passwordLabel) || 'Password',
50
50
  secureTextEntry: true,
51
- styles: (_c = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _c === void 0 ? void 0 : _c.input,
52
- reference: (_d = refs === null || refs === void 0 ? void 0 : refs.inputs) === null || _d === void 0 ? void 0 : _d.password,
51
+ styles: (_e = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _e === void 0 ? void 0 : _e.input,
52
+ reference: (_f = refs === null || refs === void 0 ? void 0 : refs.inputs) === null || _f === void 0 ? void 0 : _f.password,
53
53
  },
54
54
  },
55
55
  ];
@@ -120,6 +120,9 @@ const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLo
120
120
  React.createElement(Text, { style: (_d = styles === null || styles === void 0 ? void 0 : styles.guest) === null || _d === void 0 ? void 0 : _d.line2 }, line2))),
121
121
  React.createElement(Button, { styles: { container: s.button, ...(_e = styles === null || styles === void 0 ? void 0 : styles.guest) === null || _e === void 0 ? void 0 : _e.loginButton }, text: (texts === null || texts === void 0 ? void 0 : texts.loginButton) || 'LOGIN', onPress: showDialog })));
122
122
  };
123
+ const BrandImages = () => (React.createElement(View, { style: brandImages === null || brandImages === void 0 ? void 0 : brandImages.containerStyle },
124
+ React.createElement(Image, { source: (brandImages === null || brandImages === void 0 ? void 0 : brandImages.image1) || R.images.brand, style: [s.brand, brandImages === null || brandImages === void 0 ? void 0 : brandImages.image1Style] }),
125
+ (brandImages === null || brandImages === void 0 ? void 0 : brandImages.image2) && (React.createElement(Image, { source: brandImages.image2, style: brandImages === null || brandImages === void 0 ? void 0 : brandImages.image2Style }))));
123
126
  return (React.createElement(View, { style: s.rootContainer },
124
127
  userFirstName ? LoggedComponent() : GuestComponent(),
125
128
  isDialogVisible && (React.createElement(Modal, { transparent: true, presentationStyle: 'overFullScreen' },
@@ -128,16 +131,16 @@ const LoginView = ({ showDialog, hideDialog, isDialogVisible, onPressLogin, isLo
128
131
  React.createElement(TouchableWithoutFeedback, null,
129
132
  React.createElement(View, { style: [s.dialog, (_e = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _e === void 0 ? void 0 : _e.container] },
130
133
  React.createElement(Text, { style: [s.dialogTitle, (_f = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _f === void 0 ? void 0 : _f.title] }, "LOGIN"),
131
- React.createElement(Image, { source: R.images.brand, style: [s.brand, (_g = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _g === void 0 ? void 0 : _g.logo] }),
132
- !!((_h = texts === null || texts === void 0 ? void 0 : texts.dialog) === null || _h === void 0 ? void 0 : _h.message) && (React.createElement(Text, { style: [s.message, (_j = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _j === void 0 ? void 0 : _j.message] }, texts.dialog.message)),
134
+ React.createElement(BrandImages, null),
135
+ !!((_g = texts === null || texts === void 0 ? void 0 : texts.dialog) === null || _g === void 0 ? void 0 : _g.message) && (React.createElement(Text, { style: [s.message, (_h = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _h === void 0 ? void 0 : _h.message] }, texts.dialog.message)),
133
136
  renderFormFields(),
134
137
  !!loginError && React.createElement(Text, { style: [s.error] }, loginError),
135
138
  React.createElement(Button, { styles: !checkIsDataValid()
136
- ? (_k = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _k === void 0 ? void 0 : _k.loginButtonDisabled
139
+ ? (_j = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _j === void 0 ? void 0 : _j.loginButtonDisabled
137
140
  : {
138
141
  container: [s.loginButton],
139
- ...(_l = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _l === void 0 ? void 0 : _l.loginButton,
140
- }, text: (texts === null || texts === void 0 ? void 0 : texts.loginButton) || 'LOGIN', onPress: handleOnPressLogin, isLoading: isLoading, isDisabled: !checkIsDataValid(), ref: refs === null || refs === void 0 ? void 0 : refs.button })))))))));
142
+ ...(_k = styles === null || styles === void 0 ? void 0 : styles.dialog) === null || _k === void 0 ? void 0 : _k.loginButton,
143
+ }, text: ((_l = texts === null || texts === void 0 ? void 0 : texts.dialog) === null || _l === void 0 ? void 0 : _l.loginButton) || 'LOGIN', onPress: handleOnPressLogin, isLoading: isLoading, isDisabled: !checkIsDataValid(), ref: refs === null || refs === void 0 ? void 0 : refs.button })))))))));
141
144
  };
142
145
  export default LoginView;
143
146
  //# sourceMappingURL=LoginView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginView.js","sourceRoot":"","sources":["../../../src/components/login/LoginView.tsx"],"names":[],"mappings":"AAAA,aAAa;AAEb,OAAO,IAAI,MAAM,YAAY,CAAA;AAC7B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,wBAAwB,EACxB,IAAI,GACL,MAAM,cAAc,CAAA;AAErB,OAAO,CAAC,MAAM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ACD,CACT,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"LoginView.js","sourceRoot":"","sources":["../../../src/components/login/LoginView.tsx"],"names":[],"mappings":"AAAA,aAAa;AAEb,OAAO,IAAI,MAAM,YAAY,CAAA;AAC7B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,gBAAgB,EAChB,wBAAwB,EACxB,IAAI,GACL,MAAM,cAAc,CAAA;AAErB,OAAO,CAAC,MAAM,WAAW,CAAA;AACzB,OAAO,MAAM,MAAM,kBAAkB,CAAA;AACrC,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAE9C,OAAO,CAAC,MAAM,UAAU,CAAA;AAGxB,MAAM,YAAY,GAAoB;IACpC,WAAW,EAAE,KAAK;IAClB,KAAK,EAAE;QACL,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,SAAS;KACjB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,SAAS;KACjB;CACF,CAAA;AAED,MAAM,SAAS,GAAG,CAAC,EACjB,UAAU,EACV,UAAU,EACV,eAAe,EACf,YAAY,EACZ,SAAS,EACT,aAAa,EACb,MAAM,EACN,KAAK,EACL,aAAa,EACb,UAAU,EACV,IAAI,EACJ,WAAW,GACK,EAAE,EAAE;;IACpB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAkB,YAAY,CAAC,CAAA;IAC/D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IAChC,MAAM,aAAa,GAAG,GAAsB,EAAE;;QAC5C,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,KAAa,EAAE,EAAE;YACjD,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC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4BACd,CAAC,CAAC,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,OAAO,CAAA,IAAI,CAC3B,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,OAAO,CAAC,IAC9C,KAAK,CAAC,MAAM,CAAC,OAAO,CAChB,CACR;4BACA,gBAAgB,EAAE;4BAClB,CAAC,CAAC,UAAU,IAAI,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAG,UAAU,CAAQ;4BAC5D,oBAAC,MAAM,IACL,MAAM,EACJ,CAAC,gBAAgB,EAAE;oCACjB,CAAC,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,mBAAmB;oCACrC,CAAC,CAAC;wCACE,SAAS,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;wCAC1B,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,0CAAE,WAAW;qCAC/B,EAEP,IAAI,EAAE,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,WAAW,KAAI,OAAO,EAC3C,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,CAAC,gBAAgB,EAAE,EAC/B,GAAG,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,GACjB,CACG,CACkB,CACV,CACd,CACD,CACT,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -38,10 +38,11 @@ declare const _default: {
38
38
  marginTop: number;
39
39
  };
40
40
  brand: {
41
- width: string;
41
+ width: number;
42
42
  height: number;
43
43
  resizeMode: "contain";
44
44
  marginBottom: number;
45
+ tintColor: string;
45
46
  };
46
47
  message: {
47
48
  marginBottom: number;
@@ -40,10 +40,11 @@ export default StyleSheet.create({
40
40
  marginTop: 16,
41
41
  },
42
42
  brand: {
43
- width: '80%',
43
+ width: 200,
44
44
  height: 50,
45
45
  resizeMode: 'contain',
46
46
  marginBottom: 16,
47
+ tintColor: R.colors.white,
47
48
  },
48
49
  message: {
49
50
  marginBottom: 24,
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/login/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,CAAC,MAAM,WAAW,CAAA;AACzB,eAAe,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,EAAE;KACpB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,KAAK;KAClB;IACD,MAAM,EAAE;QACN,cAAc,EAAE,EAAE;KACnB;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,CAAC;KACR;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB;QAC1C,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,EAAE;QACnB,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;QAC/B,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,QAAQ;KACrB;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,EAAE;KACjB;IACD,WAAW,EAAE;QACX,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,EAAE;KACjB;IACD,OAAO,EAAE;QACP,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,CAAC,CAAC;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/login/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,CAAC,MAAM,WAAW,CAAA;AACzB,eAAe,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,EAAE;KACpB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,KAAK;KAClB;IACD,MAAM,EAAE;QACN,cAAc,EAAE,EAAE;KACnB;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,CAAC;KACR;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB;QAC1C,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,EAAE;QACnB,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;QAC/B,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,QAAQ;KACrB;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,EAAE;KACjB;IACD,WAAW,EAAE;QACX,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,EAAE;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;KAC1B;IACD,OAAO,EAAE;QACP,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,CAAC,CAAC;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
- import { ImageStyle } from 'react-native';
1
+ import { ImageSourcePropType, ImageStyle } from 'react-native';
2
2
  import { TextStyle } from 'react-native';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
- import { IUserProfile } from '../../types';
4
+ import { IError, IUserProfile } from '../../types';
5
5
  import { IButtonStyles } from '../button/types';
6
6
  import { IFormField } from '../formField/types';
7
7
  import { IInputStyles } from '../input/types';
@@ -18,20 +18,30 @@ export interface ILoginRefs {
18
18
  loadingText?: any;
19
19
  };
20
20
  }
21
+ export interface ILoginBrandImages {
22
+ containerStyle?: StyleProp<ViewStyle>;
23
+ image1?: ImageSourcePropType;
24
+ image1Style?: StyleProp<ImageStyle>;
25
+ image2?: ImageSourcePropType;
26
+ image2Style?: StyleProp<ImageStyle>;
27
+ }
21
28
  export interface ILoginProps {
22
29
  onLoginSuccessful: (userProfile: IUserProfile, accessToken: string) => void;
23
- onLoginFailure?: (error: string) => void;
24
- onFetchUserProfileFailure?: (error: string) => void;
25
- onFetchAccessTokenFailure?: (error: string) => void;
30
+ onLoginError?: (error: IError) => void;
31
+ onFetchUserProfileError?: (error: IError) => void;
32
+ onFetchUserProfileSuccess?: (data: any) => void;
33
+ onFetchAccessTokenError?: (error: IError) => void;
34
+ onFetchAccessTokenSuccess?: () => void;
26
35
  isLoginDialogVisible: boolean;
27
36
  showLoginDialog: () => void;
28
37
  hideLoginDialog: () => void;
29
38
  onLogoutSuccess?: () => void;
30
- onLogoutFail?: () => void;
39
+ onLogoutError?: () => void;
31
40
  styles?: ILoginViewStyles;
32
41
  texts?: ILoginViewTexts;
33
42
  userFirstName?: string;
34
43
  refs?: ILoginRefs;
44
+ brandImages?: ILoginBrandImages;
35
45
  }
36
46
  export interface ILoginViewStyles {
37
47
  guest?: {
@@ -48,7 +58,6 @@ export interface ILoginViewStyles {
48
58
  input?: IInputStyles;
49
59
  title?: StyleProp<TextStyle>;
50
60
  message?: StyleProp<TextStyle>;
51
- logo?: StyleProp<ImageStyle>;
52
61
  };
53
62
  loggedIn?: {
54
63
  container?: StyleProp<ViewStyle>;
@@ -67,6 +76,8 @@ export interface ILoginViewTexts {
67
76
  dialog?: {
68
77
  loginButton?: string;
69
78
  message?: string;
79
+ emailLabel?: string;
80
+ passwordLabel?: string;
70
81
  };
71
82
  logoutDialog?: {
72
83
  title?: string;
@@ -83,13 +94,12 @@ export interface ILoginViewProps {
83
94
  isLoading: boolean;
84
95
  userProfile?: IUserProfile;
85
96
  onPressLogout: () => void;
86
- onLogoutSuccess?: () => void;
87
- onLogoutFail?: () => void;
88
97
  styles?: ILoginViewStyles;
89
98
  texts?: ILoginViewTexts;
90
99
  loginError?: string;
91
100
  userFirstName?: string;
92
101
  refs?: ILoginRefs;
102
+ brandImages?: ILoginBrandImages;
93
103
  }
94
104
  export interface ILoginViewState {
95
105
  email: IFormField;
@@ -1,3 +1,3 @@
1
1
  import { IWaitingListProps } from './types';
2
- declare const WaitingList: ({ styles, texts, eventId }: IWaitingListProps) => JSX.Element;
2
+ declare const WaitingList: ({ styles, texts, eventId, onAddToWaitingListError, onAddToWaitingListSuccess, onLoadingChange, areAlertsEnabled, }: IWaitingListProps) => JSX.Element;
3
3
  export default WaitingList;
@@ -1,10 +1,10 @@
1
- import React, { useState } from 'react';
1
+ import React, { useCallback, useEffect, useState } from 'react';
2
2
  import { Alert } from 'react-native';
3
3
  import { addToWaitingList } from '../../api/ApiClient';
4
4
  import { useDebounced } from '../../helpers/Debounced';
5
5
  import { validateEmail, validateEmpty } from '../../helpers/Validators';
6
6
  import WaitingListView from './WaitingListView';
7
- const WaitingList = ({ styles, texts, eventId }) => {
7
+ const WaitingList = ({ styles, texts, eventId, onAddToWaitingListError, onAddToWaitingListSuccess, onLoadingChange, areAlertsEnabled, }) => {
8
8
  const [isSuccess, setIsSuccess] = useState(undefined);
9
9
  const [isLoading, setIsLoading] = useState(false);
10
10
  const [firstName, setFirstName] = useState('');
@@ -29,12 +29,29 @@ const WaitingList = ({ styles, texts, eventId }) => {
29
29
  setIsLoading(false);
30
30
  if (addToWaitingListError) {
31
31
  setIsSuccess(false);
32
- return Alert.alert('', addToWaitingListError);
32
+ if (areAlertsEnabled) {
33
+ Alert.alert('', addToWaitingListError.message);
34
+ }
35
+ if (onAddToWaitingListError) {
36
+ onAddToWaitingListError(addToWaitingListError);
37
+ }
38
+ return;
33
39
  }
34
40
  if (addToWaitingListData) {
41
+ if (onAddToWaitingListSuccess) {
42
+ onAddToWaitingListSuccess();
43
+ }
35
44
  setIsSuccess(true);
36
45
  }
37
46
  };
47
+ const onLoadingChangeCallback = useCallback((loading) => {
48
+ if (onLoadingChange) {
49
+ onLoadingChange(loading);
50
+ }
51
+ }, [onLoadingChange]);
52
+ useEffect(() => {
53
+ onLoadingChangeCallback(isLoading);
54
+ }, [isLoading, onLoadingChangeCallback]);
38
55
  return (React.createElement(WaitingListView, { data: {
39
56
  firstName: firstName,
40
57
  lastName: lastName,
@@ -1 +1 @@
1
- {"version":3,"file":"WaitingList.js","sourceRoot":"","sources":["../../../src/components/waitingList/WaitingList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AA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EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GACpB,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -5,15 +5,27 @@ import s from './styles';
5
5
  const WaitingListView = ({ styles, texts, onPressButton, data, isSuccess, isLoading, }) => {
6
6
  var _a, _b, _c;
7
7
  const { firstName, lastName, email, emailError, lastNameError, firstNameError, onChangeEmail, onChangeFirstName, onChangeLastName, } = data;
8
- const isDataValid = () => !!emailError || !!lastNameError || !!firstNameError;
8
+ const getIsDataValid = () => firstName.length > 0 &&
9
+ lastName.length > 0 &&
10
+ email.length > 0 &&
11
+ !emailError &&
12
+ !lastNameError &&
13
+ !firstNameError;
14
+ const isDataValid = getIsDataValid();
15
+ const buttonStyle = isDataValid
16
+ ? styles === null || styles === void 0 ? void 0 : styles.button
17
+ : (styles === null || styles === void 0 ? void 0 : styles.buttonDisabled)
18
+ ? styles === null || styles === void 0 ? void 0 : styles.buttonDisabled
19
+ : styles === null || styles === void 0 ? void 0 : styles.button;
9
20
  return (React.createElement(View, { style: styles === null || styles === void 0 ? void 0 : styles.rootContainer }, isSuccess ? (React.createElement(View, { style: (_a = styles === null || styles === void 0 ? void 0 : styles.success) === null || _a === void 0 ? void 0 : _a.container },
10
- React.createElement(Text, { style: (_b = styles === null || styles === void 0 ? void 0 : styles.success) === null || _b === void 0 ? void 0 : _b.title }, "You've been added to the waiting list!"),
11
- React.createElement(Text, { style: (_c = styles === null || styles === void 0 ? void 0 : styles.success) === null || _c === void 0 ? void 0 : _c.message }, "You'll be notified if tickets become available."))) : (React.createElement(React.Fragment, null,
21
+ React.createElement(Text, { style: (_b = styles === null || styles === void 0 ? void 0 : styles.success) === null || _b === void 0 ? void 0 : _b.title }, (texts === null || texts === void 0 ? void 0 : texts.successTitle) || `You've been added to the waiting list!`),
22
+ React.createElement(Text, { style: (_c = styles === null || styles === void 0 ? void 0 : styles.success) === null || _c === void 0 ? void 0 : _c.message }, (texts === null || texts === void 0 ? void 0 : texts.successMessage) ||
23
+ `You'll be notified if tickets become available.`))) : (React.createElement(React.Fragment, null,
12
24
  React.createElement(Text, { style: [s.title, styles === null || styles === void 0 ? void 0 : styles.title] }, (texts === null || texts === void 0 ? void 0 : texts.title) || 'Waiting list'),
13
- React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.firstName) || 'First name', value: firstName, onChangeText: onChangeFirstName, error: firstNameError }),
14
- React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.lastName) || 'Last name', value: lastName, onChangeText: onChangeLastName, error: lastNameError }),
15
- React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.email) || 'Email', keyboardType: 'email-address', autoCapitalize: 'none', value: email, onChangeText: onChangeEmail, error: emailError }),
16
- React.createElement(Button, { onPress: onPressButton, text: (texts === null || texts === void 0 ? void 0 : texts.button) || 'ADD TO WAITING LIST', styles: styles === null || styles === void 0 ? void 0 : styles.button, isDisabled: isDataValid(), isLoading: isLoading })))));
25
+ React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.firstName) || 'First name', value: firstName, onChangeText: onChangeFirstName, error: firstNameError, styles: styles === null || styles === void 0 ? void 0 : styles.input }),
26
+ React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.lastName) || 'Last name', value: lastName, onChangeText: onChangeLastName, error: lastNameError, styles: styles === null || styles === void 0 ? void 0 : styles.input }),
27
+ React.createElement(Input, { label: (texts === null || texts === void 0 ? void 0 : texts.email) || 'Email', keyboardType: 'email-address', autoCapitalize: 'none', value: email, onChangeText: onChangeEmail, error: emailError, styles: styles === null || styles === void 0 ? void 0 : styles.input }),
28
+ React.createElement(Button, { onPress: onPressButton, text: (texts === null || texts === void 0 ? void 0 : texts.button) || 'ADD TO WAITING LIST', styles: buttonStyle, isDisabled: !isDataValid, isLoading: isLoading })))));
17
29
  };
18
30
  export default WaitingListView;
19
31
  //# sourceMappingURL=WaitingListView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WaitingListView.js","sourceRoot":"","sources":["../../../src/components/waitingList/WaitingListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAClC,OAAO,CAAC,MAAM,UAAU,CAAA;AAGxB,MAAM,eAAe,GAAG,CAAC,EACvB,MAAM,EACN,KAAK,EACL,aAAa,EACb,IAAI,EACJ,SAAS,EACT,SAAS,GACa,EAAE,EAAE;;IAC1B,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,GAAG,IAAI,CAAA;IAER,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,cAAc,CAAA;IAE7E,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,IAC/B,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,SAAS;QACrC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,KAAK,6CAE5B;QACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,OAAO,sDAE9B,CACF,CACR,CAAC,CAAC,CAAC,CACF;QACE,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,IAClC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,KAAI,cAAc,CAC1B;QACP,oBAAC,KAAK,IACJ,KAAK,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,KAAI,YAAY,EACvC,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,iBAAiB,EAC/B,KAAK,EAAE,cAAc,GACrB;QACF,oBAAC,KAAK,IACJ,KAAK,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,KAAI,WAAW,EACrC,KAAK,EAAE,QAAQ,EACf,YAAY,EAAE,gBAAgB,EAC9B,KAAK,EAAE,aAAa,GACpB;QACF,oBAAC,KAAK,IACJ,KAAK,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,KAAI,OAAO,EAC9B,YAAY,EAAC,eAAe,EAC5B,cAAc,EAAC,MAAM,EACrB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,aAAa,EAC3B,KAAK,EAAE,UAAU,GACjB;QACF,oBAAC,MAAM,IACL,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,KAAI,qBAAqB,EAC5C,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EACtB,UAAU,EAAE,WAAW,EAAE,EACzB,SAAS,EAAE,SAAS,GACpB,CACD,CACJ,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"WaitingListView.js","sourceRoot":"","sources":["../../../src/components/waitingList/WaitingListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAClC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K,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,KAAI,qBAAqB,EAC5C,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,CAAC,WAAW,EACxB,SAAS,EAAE,SAAS,GACpB,CACD,CACJ,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,16 +1,22 @@
1
1
  import { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
+ import { IError } from '../../types';
2
3
  import { IButtonStyles } from '../button/types';
4
+ import { IInputStyles } from '../input/types';
3
5
  export interface IWaitingListTexts {
4
6
  title?: string;
5
7
  firstName?: string;
6
8
  lastName?: string;
7
9
  email?: string;
8
10
  button?: string;
11
+ successTitle?: string;
12
+ successMessage?: string;
9
13
  }
10
14
  export interface IWaitingListStyles {
11
15
  rootContainer?: StyleProp<ViewStyle>;
12
16
  title?: StyleProp<TextStyle>;
13
17
  button?: IButtonStyles;
18
+ buttonDisabled?: IButtonStyles;
19
+ input?: IInputStyles;
14
20
  success?: {
15
21
  container?: StyleProp<ViewStyle>;
16
22
  title?: StyleProp<ViewStyle>;
@@ -39,6 +45,10 @@ export interface IWaitingListProps {
39
45
  eventId: number;
40
46
  styles?: IWaitingListStyles;
41
47
  texts?: IWaitingListTexts;
48
+ onAddToWaitingListSuccess?: () => void;
49
+ onAddToWaitingListError?: (error: IError) => void;
50
+ onLoadingChange?: (isLoading: boolean) => void;
51
+ areAlertsEnabled?: boolean;
42
52
  }
43
53
  export interface IWaitingListFields {
44
54
  ticketTypeId: string;
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { IBillingProps } from './types';
2
- declare const Billing: (props: IBillingProps) => JSX.Element;
3
+ declare const Billing: FC<IBillingProps>;
3
4
  export default Billing;