be-components 0.1.1

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/LICENSE +20 -0
  2. package/README.md +31 -0
  3. package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js +398 -0
  4. package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
  5. package/lib/commonjs/AuthenticateWizard/api/index.js +246 -0
  6. package/lib/commonjs/AuthenticateWizard/api/index.js.map +1 -0
  7. package/lib/commonjs/AuthenticateWizard/api/types.d.js +2 -0
  8. package/lib/commonjs/AuthenticateWizard/api/types.d.js.map +1 -0
  9. package/lib/commonjs/AuthenticateWizard/index.js +85 -0
  10. package/lib/commonjs/AuthenticateWizard/index.js.map +1 -0
  11. package/lib/commonjs/Components/Button.js +84 -0
  12. package/lib/commonjs/Components/Button.js.map +1 -0
  13. package/lib/commonjs/Components/Checkbox.js +41 -0
  14. package/lib/commonjs/Components/Checkbox.js.map +1 -0
  15. package/lib/commonjs/Components/Icons.js +1492 -0
  16. package/lib/commonjs/Components/Icons.js.map +1 -0
  17. package/lib/commonjs/Components/Spring.js +44 -0
  18. package/lib/commonjs/Components/Spring.js.map +1 -0
  19. package/lib/commonjs/Components/Text.js +44 -0
  20. package/lib/commonjs/Components/Text.js.map +1 -0
  21. package/lib/commonjs/Components/TextInput.js +45 -0
  22. package/lib/commonjs/Components/TextInput.js.map +1 -0
  23. package/lib/commonjs/Components/index.js +49 -0
  24. package/lib/commonjs/Components/index.js.map +1 -0
  25. package/lib/commonjs/Font.css +23 -0
  26. package/lib/commonjs/constants/colors.js +66 -0
  27. package/lib/commonjs/constants/colors.js.map +1 -0
  28. package/lib/commonjs/constants/styles.js +43 -0
  29. package/lib/commonjs/constants/styles.js.map +1 -0
  30. package/lib/commonjs/fonts/Barlow-Bold.ttf +0 -0
  31. package/lib/commonjs/fonts/Barlow-Light.ttf +0 -0
  32. package/lib/commonjs/fonts/Barlow-Regular.ttf +0 -0
  33. package/lib/commonjs/fonts/Barlow-SemiBold.ttf +0 -0
  34. package/lib/commonjs/index.js +33 -0
  35. package/lib/commonjs/index.js.map +1 -0
  36. package/lib/module/AuthenticateWizard/Components/StrategyForm.js +389 -0
  37. package/lib/module/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
  38. package/lib/module/AuthenticateWizard/api/index.js +240 -0
  39. package/lib/module/AuthenticateWizard/api/index.js.map +1 -0
  40. package/lib/module/AuthenticateWizard/api/types.d.js +2 -0
  41. package/lib/module/AuthenticateWizard/api/types.d.js.map +1 -0
  42. package/lib/module/AuthenticateWizard/index.js +77 -0
  43. package/lib/module/AuthenticateWizard/index.js.map +1 -0
  44. package/lib/module/Components/Button.js +77 -0
  45. package/lib/module/Components/Button.js.map +1 -0
  46. package/lib/module/Components/Checkbox.js +34 -0
  47. package/lib/module/Components/Checkbox.js.map +1 -0
  48. package/lib/module/Components/Icons.js +1485 -0
  49. package/lib/module/Components/Icons.js.map +1 -0
  50. package/lib/module/Components/Spring.js +37 -0
  51. package/lib/module/Components/Spring.js.map +1 -0
  52. package/lib/module/Components/Text.js +37 -0
  53. package/lib/module/Components/Text.js.map +1 -0
  54. package/lib/module/Components/TextInput.js +38 -0
  55. package/lib/module/Components/TextInput.js.map +1 -0
  56. package/lib/module/Components/index.js +8 -0
  57. package/lib/module/Components/index.js.map +1 -0
  58. package/lib/module/Font.css +23 -0
  59. package/lib/module/constants/colors.js +60 -0
  60. package/lib/module/constants/colors.js.map +1 -0
  61. package/lib/module/constants/styles.js +36 -0
  62. package/lib/module/constants/styles.js.map +1 -0
  63. package/lib/module/fonts/Barlow-Bold.ttf +0 -0
  64. package/lib/module/fonts/Barlow-Light.ttf +0 -0
  65. package/lib/module/fonts/Barlow-Regular.ttf +0 -0
  66. package/lib/module/fonts/Barlow-SemiBold.ttf +0 -0
  67. package/lib/module/index.js +4 -0
  68. package/lib/module/index.js.map +1 -0
  69. package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts +15 -0
  70. package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts.map +1 -0
  71. package/lib/typescript/src/AuthenticateWizard/api/index.d.ts +80 -0
  72. package/lib/typescript/src/AuthenticateWizard/api/index.d.ts.map +1 -0
  73. package/lib/typescript/src/AuthenticateWizard/index.d.ts +15 -0
  74. package/lib/typescript/src/AuthenticateWizard/index.d.ts.map +1 -0
  75. package/lib/typescript/src/Components/Button.d.ts +30 -0
  76. package/lib/typescript/src/Components/Button.d.ts.map +1 -0
  77. package/lib/typescript/src/Components/Checkbox.d.ts +11 -0
  78. package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -0
  79. package/lib/typescript/src/Components/Icons.d.ts +44 -0
  80. package/lib/typescript/src/Components/Icons.d.ts.map +1 -0
  81. package/lib/typescript/src/Components/Spring.d.ts +11 -0
  82. package/lib/typescript/src/Components/Spring.d.ts.map +1 -0
  83. package/lib/typescript/src/Components/Text.d.ts +13 -0
  84. package/lib/typescript/src/Components/Text.d.ts.map +1 -0
  85. package/lib/typescript/src/Components/TextInput.d.ts +15 -0
  86. package/lib/typescript/src/Components/TextInput.d.ts.map +1 -0
  87. package/lib/typescript/src/Components/index.d.ts +8 -0
  88. package/lib/typescript/src/Components/index.d.ts.map +1 -0
  89. package/lib/typescript/src/constants/colors.d.ts +60 -0
  90. package/lib/typescript/src/constants/colors.d.ts.map +1 -0
  91. package/lib/typescript/src/constants/styles.d.ts +34 -0
  92. package/lib/typescript/src/constants/styles.d.ts.map +1 -0
  93. package/lib/typescript/src/index.d.ts +4 -0
  94. package/lib/typescript/src/index.d.ts.map +1 -0
  95. package/package.json +167 -0
  96. package/src/AuthenticateWizard/Components/StrategyForm.tsx +292 -0
  97. package/src/AuthenticateWizard/api/index.ts +164 -0
  98. package/src/AuthenticateWizard/api/types.d.ts +134 -0
  99. package/src/AuthenticateWizard/index.tsx +84 -0
  100. package/src/Components/Button.tsx +63 -0
  101. package/src/Components/Checkbox.tsx +28 -0
  102. package/src/Components/Icons.tsx +698 -0
  103. package/src/Components/Spring.tsx +38 -0
  104. package/src/Components/Text.tsx +35 -0
  105. package/src/Components/TextInput.tsx +45 -0
  106. package/src/Components/index.tsx +15 -0
  107. package/src/Font.css +23 -0
  108. package/src/constants/colors.ts +61 -0
  109. package/src/constants/styles.ts +40 -0
  110. package/src/fonts/Barlow-Bold.ttf +0 -0
  111. package/src/fonts/Barlow-Light.ttf +0 -0
  112. package/src/fonts/Barlow-Regular.ttf +0 -0
  113. package/src/fonts/Barlow-SemiBold.ttf +0 -0
  114. package/src/index.tsx +9 -0
@@ -0,0 +1,389 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { Button, Checkbox, Icons, Text, TextInput } from "../../Components";
3
+ import Colors from "../../constants/colors";
4
+ import { AuthenticateApi, AuthenticateHelpers } from '../api';
5
+ import { Image, Linking, TouchableOpacity, View, FlatList } from 'react-native';
6
+ const StrategyForm = ({
7
+ visible,
8
+ auth_strategy_id,
9
+ company_id,
10
+ device_id,
11
+ source,
12
+ referral_code,
13
+ width,
14
+ opt_in_url,
15
+ onAuthenticated
16
+ }) => {
17
+ const [action_loading, setActionLoading] = useState(false);
18
+ const [active_view, setActiveView] = useState('authenticate');
19
+ const [opted_in, setOptedIn] = useState(true);
20
+ const [token, setToken] = useState('');
21
+ const [verify_error, setVerifyError] = useState();
22
+ const [verify_attempt_allowed, setVeryAttemptAllowed] = useState(true);
23
+ const [authenticated, setAuthenticated] = useState(false);
24
+ console.log(authenticated);
25
+ const [auth_execution_request, setAuthExecutionRequest] = useState({
26
+ auth_strategy_id: auth_strategy_id,
27
+ device_id,
28
+ source,
29
+ referral_code,
30
+ attributes: []
31
+ });
32
+ const [verify_state, setVerifyState] = useState(undefined);
33
+ const [strategy, setStrategy] = useState({
34
+ loading: false,
35
+ company: undefined,
36
+ auth_strategy: undefined,
37
+ auth_strategy_identifiers: []
38
+ });
39
+ const {
40
+ company,
41
+ auth_strategy_identifiers
42
+ } = strategy;
43
+ const verify_strategy_identifier = auth_strategy_identifiers.find(asi => asi.auth_strategy_identifier_id == verify_state?.auth_strategy_identifier_id);
44
+ useEffect(() => {
45
+ if (!auth_strategy_id || !visible) {
46
+ return;
47
+ }
48
+ setUpWizard(auth_strategy_id);
49
+ }, [auth_strategy_id, visible]);
50
+ const setUpWizard = async auth_strategy_id => {
51
+ setStrategy({
52
+ ...strategy,
53
+ loading: true
54
+ });
55
+ //Get auth strategy from server
56
+ const {
57
+ auth_strategy,
58
+ auth_strategy_identifiers
59
+ } = await AuthenticateApi.getAuthStrategyById(auth_strategy_id);
60
+ let company = undefined;
61
+ if (company_id) {
62
+ const company_resp = await AuthenticateApi.getCompanyById(company_id);
63
+ company = company_resp.company;
64
+ }
65
+ let unique_attributes = auth_strategy_identifiers.map(asi => {
66
+ //if(!asi.auth_identifier){ return }
67
+ return {
68
+ attribute: asi.auth_identifier?.attribute ?? '',
69
+ value: ''
70
+ };
71
+ });
72
+ setAuthExecutionRequest({
73
+ auth_strategy_id,
74
+ device_id,
75
+ source,
76
+ referral_code,
77
+ attributes: unique_attributes
78
+ });
79
+ setStrategy({
80
+ ...strategy,
81
+ auth_strategy,
82
+ company,
83
+ auth_strategy_identifiers,
84
+ loading: false
85
+ });
86
+ };
87
+ const verifyAuthStrategyIdentifier = async () => {
88
+ if (!verify_state) {
89
+ return;
90
+ }
91
+ if (action_loading) {
92
+ return;
93
+ } //No mashy mashy
94
+ if (!verify_attempt_allowed) {
95
+ return;
96
+ }
97
+ setVeryAttemptAllowed(false);
98
+ setActionLoading(true);
99
+ const {
100
+ result,
101
+ access_token,
102
+ refresh_token,
103
+ expire_datetime
104
+ } = await AuthenticateApi.verifyAuthStrategyIdentifier(verify_state.auth_strategy_identifier_id, verify_state.verification_session_id, token, device_id);
105
+ if (result == 'fail' || !access_token || !refresh_token) {
106
+ setVerifyError(`Invalid code / password. Please try again after 10 seconds`);
107
+ setTimeout(() => {
108
+ setVeryAttemptAllowed(true);
109
+ setVerifyError(undefined);
110
+ }, 10000);
111
+ } else {
112
+ setAuthenticated(true);
113
+ setTimeout(() => {
114
+ onAuthenticated(access_token, refresh_token, expire_datetime);
115
+ }, 1500);
116
+ }
117
+ setActionLoading(false);
118
+ };
119
+ const executeAuthStrategy = async () => {
120
+ setActionLoading(true);
121
+ const {
122
+ result,
123
+ verification_session_id,
124
+ session_expire_datetime,
125
+ auth_strategy_identifier_id
126
+ } = await AuthenticateApi.executeAuthStrategy(auth_execution_request);
127
+ if (result == 'fail') {
128
+ setActionLoading(false);
129
+ return;
130
+ }
131
+ setVerifyState({
132
+ verification_session_id,
133
+ session_expire_datetime,
134
+ auth_strategy_identifier_id
135
+ });
136
+ setActiveView('verify');
137
+ setActionLoading(false);
138
+ };
139
+ const renderAuthStrategyIdentifiers = data => {
140
+ if (!data.item.auth_identifier) {
141
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
142
+ }
143
+ const auth_request = auth_execution_request.attributes.find(a => a.attribute == data.item.auth_identifier?.attribute);
144
+ if (!auth_request) {
145
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
146
+ }
147
+ const is_valid = AuthenticateHelpers.isAttributeValid(auth_request.attribute, auth_request.value);
148
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
149
+ style: {
150
+ margin: 10
151
+ }
152
+ }, /*#__PURE__*/React.createElement(Text, {
153
+ size: 16,
154
+ color: Colors.brand.midnight,
155
+ weight: "bold"
156
+ }, data.item.label), /*#__PURE__*/React.createElement(Text, {
157
+ style: {
158
+ marginTop: 4
159
+ },
160
+ size: 14,
161
+ color: Colors.brand.midnight,
162
+ weight: "regular"
163
+ }, data.item.description), /*#__PURE__*/React.createElement(View, {
164
+ style: {
165
+ marginTop: 5,
166
+ flexDirection: 'row',
167
+ alignItems: 'center',
168
+ borderRadius: 22,
169
+ borderWidth: 1,
170
+ borderColor: Colors.shades.shade600
171
+ }
172
+ }, /*#__PURE__*/React.createElement(TextInput, {
173
+ style: {
174
+ flex: 1
175
+ },
176
+ value: auth_request.pretty_value ?? auth_request.value,
177
+ placeholder: `${data.item.label}`,
178
+ autoFocus: data.item.priority == 1 ? true : false,
179
+ placeholderTextColor: Colors.brand.slate,
180
+ onChangeText: text => {
181
+ let pretty_value = undefined;
182
+ if (auth_request.attribute == 'phone') {
183
+ text = AuthenticateHelpers.unformatPhone(text);
184
+ pretty_value = AuthenticateHelpers.formatPhone(text);
185
+ }
186
+ setAuthExecutionRequest({
187
+ ...auth_execution_request,
188
+ attributes: auth_execution_request.attributes.filter(a => a.attribute != auth_request.attribute).concat({
189
+ attribute: auth_request.attribute,
190
+ value: text,
191
+ pretty_value
192
+ })
193
+ });
194
+ }
195
+ }), auth_request.value ? /*#__PURE__*/React.createElement(View, {
196
+ style: {
197
+ padding: 10
198
+ }
199
+ }, is_valid.valid ? /*#__PURE__*/React.createElement(Icons.CheckCirlceIcon, {
200
+ color: Colors.utility.success,
201
+ size: 14
202
+ }) : /*#__PURE__*/React.createElement(Icons.AlertIcon, {
203
+ color: Colors.utility.warning,
204
+ size: 14
205
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null)), auth_request.value && !is_valid.valid ? /*#__PURE__*/React.createElement(Text, {
206
+ style: {
207
+ marginTop: 2
208
+ },
209
+ size: 12,
210
+ color: Colors.utility.warning,
211
+ weight: "semibold",
212
+ textAlign: "right"
213
+ }, is_valid.error) : /*#__PURE__*/React.createElement(React.Fragment, null)));
214
+ };
215
+ const strategy_valid = AuthenticateHelpers.isStrategyValid(auth_execution_request);
216
+ if (!visible) {
217
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
218
+ }
219
+ return /*#__PURE__*/React.createElement(View, null, company ? /*#__PURE__*/React.createElement(View, {
220
+ style: {
221
+ padding: 20,
222
+ flexDirection: 'row',
223
+ alignItems: 'center',
224
+ borderTopRightRadius: 22,
225
+ borderTopLeftRadius: 22,
226
+ borderBottomWidth: 1,
227
+ borderColor: Colors.accents.accent200
228
+ }
229
+ }, /*#__PURE__*/React.createElement(View, {
230
+ style: {
231
+ flex: 1,
232
+ marginRight: 10
233
+ }
234
+ }, /*#__PURE__*/React.createElement(Text, {
235
+ size: 28,
236
+ weight: "bold",
237
+ color: Colors.brand.midnight
238
+ }, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
239
+ style: {
240
+ marginTop: 5
241
+ },
242
+ color: Colors.brand.midnight,
243
+ size: 14,
244
+ weight: "semibold",
245
+ textAlign: "left"
246
+ }, "Continue to sign up with BettorEdge")), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Image, {
247
+ source: {
248
+ uri: company?.company_image?.url
249
+ },
250
+ style: {
251
+ width: width * 0.15,
252
+ height: width * 0.15,
253
+ borderRadius: 8
254
+ },
255
+ resizeMode: "cover"
256
+ }))) : /*#__PURE__*/React.createElement(React.Fragment, null), active_view == 'authenticate' ? /*#__PURE__*/React.createElement(View, {
257
+ nativeID: "sign_up",
258
+ style: {
259
+ flex: 1
260
+ }
261
+ }, /*#__PURE__*/React.createElement(View, {
262
+ style: {
263
+ flex: 1,
264
+ padding: 10
265
+ }
266
+ }, /*#__PURE__*/React.createElement(View, {
267
+ style: {
268
+ padding: 10
269
+ }
270
+ }, /*#__PURE__*/React.createElement(FlatList, {
271
+ data: auth_strategy_identifiers.sort((a, b) => a.priority - b.priority),
272
+ renderItem: renderAuthStrategyIdentifiers,
273
+ keyExtractor: item => item.auth_strategy_identifier_id.toString()
274
+ }))), /*#__PURE__*/React.createElement(View, {
275
+ nativeID: "action_row",
276
+ style: {
277
+ padding: 10,
278
+ paddingLeft: 20,
279
+ paddingRight: 20
280
+ }
281
+ }, /*#__PURE__*/React.createElement(Button, {
282
+ title: `Let's Go!`,
283
+ loading: action_loading,
284
+ style: {
285
+ opacity: strategy_valid && opted_in ? 1 : 0.5
286
+ },
287
+ disabled: action_loading || !strategy_valid || !opted_in,
288
+ title_color: Colors.shades.white,
289
+ backgroundColor: Colors.brand.electric,
290
+ borderRadius: 8,
291
+ padding: 15,
292
+ onPress: () => {
293
+ executeAuthStrategy();
294
+ }
295
+ })), active_view == 'authenticate' && opt_in_url ? /*#__PURE__*/React.createElement(View, {
296
+ style: {
297
+ flexDirection: 'row',
298
+ alignItems: 'center',
299
+ padding: 20
300
+ }
301
+ }, /*#__PURE__*/React.createElement(Checkbox, {
302
+ size: 25,
303
+ checked: opted_in,
304
+ onSelect: checked => setOptedIn(checked)
305
+ }), /*#__PURE__*/React.createElement(Text, {
306
+ style: {
307
+ marginLeft: 15
308
+ },
309
+ size: 14,
310
+ color: Colors.brand.midnight
311
+ }, "By continuing, you agree to the terms and conditions outlined", /*#__PURE__*/React.createElement(TouchableOpacity, {
312
+ onPress: () => Linking.openURL(opt_in_url)
313
+ }, /*#__PURE__*/React.createElement(Text, {
314
+ size: 14,
315
+ color: Colors.brand.electric,
316
+ weight: "bold"
317
+ }, " here.")))) : /*#__PURE__*/React.createElement(React.Fragment, null)) : active_view == 'verify' && verify_strategy_identifier ? /*#__PURE__*/React.createElement(View, {
318
+ nativeID: "sign_up",
319
+ style: {
320
+ flex: 1
321
+ }
322
+ }, /*#__PURE__*/React.createElement(View, {
323
+ style: {
324
+ flex: 1,
325
+ justifyContent: 'center',
326
+ alignItems: 'center',
327
+ padding: 20
328
+ }
329
+ }, /*#__PURE__*/React.createElement(Text, {
330
+ size: 18,
331
+ color: Colors.brand.midnight,
332
+ weight: "semibold",
333
+ textAlign: "center"
334
+ }, verify_strategy_identifier.verify_label ?? 'Enter Verification Code'), /*#__PURE__*/React.createElement(View, {
335
+ style: {
336
+ padding: 10
337
+ }
338
+ }, /*#__PURE__*/React.createElement(TextInput, {
339
+ style: {
340
+ textAlign: 'center',
341
+ fontFamily: 'barlow-bold',
342
+ fontSize: 14,
343
+ padding: 12,
344
+ borderRadius: 8,
345
+ borderWidth: 1,
346
+ borderColor: Colors.shades.shade600
347
+ },
348
+ value: token,
349
+ keyboardType: "default",
350
+ autoFocus: true,
351
+ textContentType: verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode',
352
+ secureTextEntry: verify_strategy_identifier.secure_text_entry,
353
+ placeholderTextColor: Colors.brand.slate,
354
+ onChangeText: text => {
355
+ setToken(text);
356
+ }
357
+ })), verify_error ? /*#__PURE__*/React.createElement(Text, {
358
+ style: {
359
+ marginTop: 10
360
+ },
361
+ size: 14,
362
+ color: Colors.utility.warning
363
+ }, verify_error) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
364
+ nativeID: "action_row",
365
+ style: {
366
+ flexDirection: 'row',
367
+ padding: 10,
368
+ paddingLeft: 20,
369
+ paddingRight: 20
370
+ }
371
+ }, /*#__PURE__*/React.createElement(Button, {
372
+ title: verify_attempt_allowed ? 'Verify' : 'Retry in 10 seconds',
373
+ loading: action_loading,
374
+ style: {
375
+ flex: 3,
376
+ opacity: token && verify_attempt_allowed ? 1 : 0.5
377
+ },
378
+ disabled: !token || action_loading || !verify_attempt_allowed,
379
+ title_color: Colors.shades.white,
380
+ backgroundColor: Colors.utility.success,
381
+ borderRadius: 8,
382
+ padding: 15,
383
+ onPress: () => {
384
+ verifyAuthStrategyIdentifier();
385
+ }
386
+ }))) : /*#__PURE__*/React.createElement(React.Fragment, null));
387
+ };
388
+ export default StrategyForm;
389
+ //# sourceMappingURL=StrategyForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","Button","Checkbox","Icons","Text","TextInput","Colors","AuthenticateApi","AuthenticateHelpers","Image","Linking","TouchableOpacity","View","FlatList","StrategyForm","visible","auth_strategy_id","company_id","device_id","source","referral_code","width","opt_in_url","onAuthenticated","action_loading","setActionLoading","active_view","setActiveView","opted_in","setOptedIn","token","setToken","verify_error","setVerifyError","verify_attempt_allowed","setVeryAttemptAllowed","authenticated","setAuthenticated","console","log","auth_execution_request","setAuthExecutionRequest","attributes","verify_state","setVerifyState","undefined","strategy","setStrategy","loading","company","auth_strategy","auth_strategy_identifiers","verify_strategy_identifier","find","asi","auth_strategy_identifier_id","setUpWizard","getAuthStrategyById","company_resp","getCompanyById","unique_attributes","map","attribute","auth_identifier","value","verifyAuthStrategyIdentifier","result","access_token","refresh_token","expire_datetime","verification_session_id","setTimeout","executeAuthStrategy","session_expire_datetime","renderAuthStrategyIdentifiers","data","item","createElement","Fragment","auth_request","a","is_valid","isAttributeValid","style","margin","size","color","brand","midnight","weight","label","marginTop","description","flexDirection","alignItems","borderRadius","borderWidth","borderColor","shades","shade600","flex","pretty_value","placeholder","autoFocus","priority","placeholderTextColor","slate","onChangeText","text","unformatPhone","formatPhone","filter","concat","padding","valid","CheckCirlceIcon","utility","success","AlertIcon","warning","textAlign","error","strategy_valid","isStrategyValid","borderTopRightRadius","borderTopLeftRadius","borderBottomWidth","accents","accent200","marginRight","uri","company_image","url","height","resizeMode","nativeID","sort","b","renderItem","keyExtractor","toString","paddingLeft","paddingRight","title","opacity","disabled","title_color","white","backgroundColor","electric","onPress","checked","onSelect","marginLeft","openURL","justifyContent","verify_label","fontFamily","fontSize","keyboardType","textContentType","secure_text_entry","secureTextEntry"],"sourceRoot":"../../../../src","sources":["AuthenticateWizard/Components/StrategyForm.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAEC,SAAS,QAAQ,kBAAkB;AAC3E,OAAOC,MAAM,MAAM,wBAAwB;AAE3C,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,QAAQ;AAC7D,SAASC,KAAK,EAAEC,OAAO,EAAEC,gBAAgB,EAAEC,IAAI,EAAGC,QAAQ,QAAO,cAAc;AAc/E,MAAMC,YAAY,GAAGA,CAAC;EAAEC,OAAO;EAAEC,gBAAgB;EAAEC,UAAU;EAAEC,SAAS;EAAEC,MAAM;EAAEC,aAAa;EAAEC,KAAK;EAAEC,UAAU;EAAEC;AAAkC,CAAC,KAAK;EAExJ,MAAM,CAAEC,cAAc,EAAEC,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,EAAC,YAAY;IAACpD,KAAK,EAAE;MAAEU,aAAa,EAAC,KAAK;MAAEoB,OAAO,EAAC,EAAE;MAAE4B,WAAW,EAAC,EAAE;MAAEC,YAAY,EAAC;IAAG;EAAE,gBACpGhJ,KAAA,CAAA+E,aAAA,CAAC5E,MAAM;IACH8I,KAAK,EAAE7G,sBAAsB,GAAE,QAAQ,GAAE,qBAAsB;IAC/Dc,OAAO,EAAExB,cAAe;IACxB2D,KAAK,EAAE;MAAEiB,IAAI,EAAC,CAAC;MAAE4C,OAAO,EAAClH,KAAK,IAAEI,sBAAsB,GAAC,CAAC,GAAC;IAAI,CAAE;IAC/D+G,QAAQ,EAAE,CAACnH,KAAK,IAAIN,cAAc,IAAI,CAACU,sBAAuB;IAC9DgH,WAAW,EAAE5I,MAAM,CAAC4F,MAAM,CAACiD,KAAM;IACjCC,eAAe,EAAE9I,MAAM,CAAC8G,OAAO,CAACC,OAAQ;IACxCtB,YAAY,EAAE,CAAE;IAChBkB,OAAO,EAAE,EAAG;IACZqC,OAAO,EAAEA,CAAA,KAAM;MACXrF,4BAA4B,CAAC,CAAC;IAClC;EAAE,CACL,CACC,CACJ,CAAC,gBAENnE,KAAA,CAAA+E,aAAA,CAAA/E,KAAA,CAAAgF,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAED,eAAehE,YAAY","ignoreList":[]}
@@ -0,0 +1,240 @@
1
+ import axios from "axios";
2
+ const AUTH_ENDPOINTS = {
3
+ DEVELOPMENT: 'http://localhost:5000',
4
+ STAGING: 'https://stage-be-auth-svc.herokuapp.com',
5
+ PRODUCTION: 'https://api.players.bettoredge.com'
6
+ };
7
+ let AUTH_SVC_API = '';
8
+ export { AuthenticateApi, AuthenticateHelpers };
9
+ const AuthenticateApi = {
10
+ setEnvironment: env => {
11
+ AUTH_SVC_API = AUTH_ENDPOINTS[env];
12
+ },
13
+ authenticateLocal: async (username, password, device_id) => {
14
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/players/player/authenticate`, {
15
+ username,
16
+ password,
17
+ device_id
18
+ });
19
+ return resp.data;
20
+ },
21
+ refreshToken: async (refresh_token, device_id) => {
22
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/players/tokens/token/refresh`, {
23
+ refresh_token,
24
+ device_id
25
+ });
26
+ return resp.data;
27
+ },
28
+ authenticatePhone: async (phone, device_id, referral_code) => {
29
+ await axios.post(`${AUTH_SVC_API}/v1/players/player/phone/authenticate`, {
30
+ phone,
31
+ device_id,
32
+ referral_code
33
+ });
34
+ },
35
+ verifyPhoneAuthenticate: async (token, device_id) => {
36
+ let resp = await axios.post(`${AUTH_SVC_API}/v1/players/player/phone/verify`, {
37
+ token,
38
+ device_id
39
+ });
40
+ return resp.data;
41
+ },
42
+ getMyDetails: async () => {
43
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/players/player/me`);
44
+ return resp.data.player;
45
+ },
46
+ forgotUsername: async (attribute, attribute_value) => {
47
+ await axios.post(`${AUTH_SVC_API}/v1/players/player/forgot/username`, {
48
+ attribute,
49
+ attribute_value
50
+ });
51
+ return;
52
+ },
53
+ forgotPassword: async (attribute, attribute_value) => {
54
+ await axios.post(`${AUTH_SVC_API}/v1/players/player/forgot/password`, {
55
+ attribute,
56
+ attribute_value
57
+ });
58
+ return;
59
+ },
60
+ resetPassword: async (password, repassword, verify_code) => {
61
+ await axios.post(`${AUTH_SVC_API}/v1/players/player/reset/password`, {
62
+ password,
63
+ repassword,
64
+ verify_code
65
+ });
66
+ return;
67
+ },
68
+ getShortToken: async () => {
69
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/players/tokens/short`);
70
+ return resp.data.player_token;
71
+ },
72
+ getAuthStrategyById: async auth_strategy_id => {
73
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/authenticate/strategy/id/${auth_strategy_id}`);
74
+ return resp.data;
75
+ },
76
+ executeAuthStrategy: async auth_execution_request => {
77
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/authenticate/strategy/try`, {
78
+ auth_execution_request
79
+ });
80
+ console.log(resp.data);
81
+ return resp.data;
82
+ },
83
+ verifyAuthStrategyIdentifier: async (auth_strategy_identifier_id, verification_session_id, token, device_id) => {
84
+ const resp = await axios.post(`${AUTH_SVC_API}/v1/authenticate/strategy/identifier/verify`, {
85
+ auth_strategy_identifier_id,
86
+ verification_session_id,
87
+ token,
88
+ device_id
89
+ });
90
+ console.log(resp.data);
91
+ return resp.data;
92
+ },
93
+ getCompanyById: async company_id => {
94
+ const resp = await axios.get(`${AUTH_SVC_API}/v1/companies/company/id/${company_id}`);
95
+ console.log(resp.data);
96
+ return resp.data;
97
+ }
98
+ };
99
+ const AuthenticateHelpers = {
100
+ /**
101
+ * Takes a phone number string and returns a formatted verison of the phone number with - between numbers
102
+ * @param phone
103
+ * @returns formatted phone string
104
+ */
105
+ formatPhone: phone => {
106
+ if (!phone) {
107
+ return '';
108
+ }
109
+ let splitPhone = phone.split('');
110
+ if (splitPhone.length === 0) {
111
+ return '';
112
+ }
113
+ if (splitPhone.length > 10 && splitPhone[0] == '1') {
114
+ splitPhone.splice(0, 1);
115
+ }
116
+ let newPhone = '';
117
+ splitPhone.map((c, i) => {
118
+ newPhone += c;
119
+ if (i === 2 && splitPhone.length > 3) {
120
+ newPhone += '-';
121
+ }
122
+ if (i === 5 && splitPhone.length > 6) {
123
+ newPhone += '-';
124
+ }
125
+ });
126
+ return newPhone;
127
+ },
128
+ isEmailValid: email => {
129
+ if (email === '') {
130
+ return {
131
+ valid: false,
132
+ error: 'Please enter valid email'
133
+ };
134
+ }
135
+ // function that returns true if value is email, false otherwise
136
+ var emailRex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
137
+ if (emailRex.test(email)) {
138
+ return {
139
+ valid: true
140
+ };
141
+ }
142
+ return {
143
+ valid: false,
144
+ error: 'Must be a valid email'
145
+ };
146
+ },
147
+ /**
148
+ * Removes - from a formatted phone string
149
+ * @param formatted_phone
150
+ * @returns unformatted phone string
151
+ */
152
+ unformatPhone: formatted_phone => {
153
+ let splitPhone = formatted_phone.split('-');
154
+ let newPhone = '';
155
+ splitPhone.map(c => {
156
+ newPhone += c;
157
+ });
158
+ return newPhone;
159
+ },
160
+ fullUnformatPhone: formatted_phone => {
161
+ let unformatted_phone = AuthenticateHelpers.unformatPhone(formatted_phone);
162
+ let no_par = unformatted_phone.split('(');
163
+ unformatted_phone = no_par.join('');
164
+ no_par = unformatted_phone.split(')');
165
+ unformatted_phone = no_par.join('');
166
+ let no_plus = unformatted_phone.split('+1');
167
+ unformatted_phone = no_plus.join('');
168
+ let no_space = unformatted_phone.split(' ');
169
+ unformatted_phone = no_space.join('');
170
+ return unformatted_phone;
171
+ },
172
+ isStrategyValid: auth_execution_request => {
173
+ let request_valid = true;
174
+ auth_execution_request.attributes.map(a => {
175
+ if (!request_valid) {
176
+ return;
177
+ }
178
+ const {
179
+ valid
180
+ } = AuthenticateHelpers.isAttributeValid(a.attribute, a.value);
181
+ if (!valid) {
182
+ request_valid = false;
183
+ }
184
+ });
185
+ return request_valid;
186
+ },
187
+ isAttributeValid: (attribute, value, optional) => {
188
+ if (optional) {
189
+ return {
190
+ valid: true
191
+ };
192
+ }
193
+ switch (attribute) {
194
+ case 'phone':
195
+ return AuthenticateHelpers.isPhoneValid(value);
196
+ case 'email':
197
+ return AuthenticateHelpers.isEmailValid(value);
198
+ default:
199
+ if (!value || value == '') {
200
+ return {
201
+ valid: false,
202
+ error: 'Attribute must not be blank'
203
+ };
204
+ }
205
+ return {
206
+ valid: true
207
+ };
208
+ }
209
+ },
210
+ /**
211
+ * Checks if phone number is a vali US number
212
+ * @param phone
213
+ * @returns
214
+ */
215
+ isPhoneValid: phone => {
216
+ if (!phone || phone === '') {
217
+ return {
218
+ valid: false,
219
+ error: 'Phone number must be entered'
220
+ };
221
+ }
222
+ let phoneasnum = parseInt(phone);
223
+ if (isNaN(phoneasnum)) {
224
+ return {
225
+ valid: false,
226
+ error: 'Phone number must be a US 10 digit number'
227
+ };
228
+ }
229
+ if (phone.length === 10) {
230
+ return {
231
+ valid: true
232
+ };
233
+ }
234
+ return {
235
+ valid: false,
236
+ error: 'Phone number must be a US 10 digit number'
237
+ };
238
+ }
239
+ };
240
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["axios","AUTH_ENDPOINTS","DEVELOPMENT","STAGING","PRODUCTION","AUTH_SVC_API","AuthenticateApi","AuthenticateHelpers","setEnvironment","env","authenticateLocal","username","password","device_id","resp","post","data","refreshToken","refresh_token","authenticatePhone","phone","referral_code","verifyPhoneAuthenticate","token","getMyDetails","get","player","forgotUsername","attribute","attribute_value","forgotPassword","resetPassword","repassword","verify_code","getShortToken","player_token","getAuthStrategyById","auth_strategy_id","executeAuthStrategy","auth_execution_request","console","log","verifyAuthStrategyIdentifier","auth_strategy_identifier_id","verification_session_id","getCompanyById","company_id","formatPhone","splitPhone","split","length","splice","newPhone","map","c","i","isEmailValid","email","valid","error","emailRex","test","unformatPhone","formatted_phone","fullUnformatPhone","unformatted_phone","no_par","join","no_plus","no_space","isStrategyValid","request_valid","attributes","a","isAttributeValid","value","optional","isPhoneValid","phoneasnum","parseInt","isNaN"],"sourceRoot":"../../../../src","sources":["AuthenticateWizard/api/index.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,MAAMC,cAAc,GAAG;EACnBC,WAAW,EAAE,uBAAuB;EACpCC,OAAO,EAAE,yCAAyC;EAClDC,UAAU,EAAE;AAChB,CAAC;AAED,IAAIC,YAAY,GAAG,EAAE;AAErB,SACIC,eAAe,EACfC,mBAAmB;AAGvB,MAAMD,eAAe,GAAG;EACpBE,cAAc,EAAGC,GAAwC,IAAK;IAC1DJ,YAAY,GAAGJ,cAAc,CAACQ,GAAG,CAAC;EACtC,CAAC;E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;MAA+B,CAAC;IAAC;IAC3F,IAAImB,UAAU,GAAGC,QAAQ,CAAC3D,KAAK,CAAC;IAChC,IAAG4D,KAAK,CAACF,UAAU,CAAC,EAAC;MAAE,OAAO;QAAEpB,KAAK,EAAC,KAAK;QAAEC,KAAK,EAAC;MAA4C,CAAC;IAAC;IACjG,IAAGvC,KAAK,CAAC8B,MAAM,KAAK,EAAE,EAAC;MAAE,OAAO;QAAEQ,KAAK,EAAC;MAAK,CAAC;IAAC;IAC/C,OAAO;MAAEA,KAAK,EAAC,KAAK;MAAEC,KAAK,EAAE;IAA4C,CAAC;EAC9E;AAEA,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["AuthenticateWizard/api/types.d.ts"],"mappings":"","ignoreList":[]}