@tap-payments/auth-jsconnect 1.0.93-test → 1.0.94-test

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.
@@ -1,4 +1,6 @@
1
+ import { CancelTokenSource } from 'axios';
1
2
  declare const instance: import("axios").AxiosInstance;
2
3
  export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
3
4
  export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
5
+ export type { CancelTokenSource };
4
6
  export default instance;
@@ -33,11 +33,13 @@ var encryptionContractTransformer = function (config) {
33
33
  export var setAxiosGlobalHeaders = function (headers) {
34
34
  Object.keys(headers).forEach(function (key) {
35
35
  instance.defaults.headers.common[key] = headers[key];
36
+ axios.defaults.headers.common[key] = headers[key];
36
37
  });
37
38
  };
38
39
  export var removeAxiosGlobalHeaders = function (arr) {
39
40
  arr.forEach(function (key) {
40
41
  delete instance.defaults.headers.common[key];
42
+ delete axios.defaults.headers.common[key];
41
43
  });
42
44
  };
43
45
  export default instance;
@@ -1,6 +1,10 @@
1
1
  import { RootState } from './store';
2
- import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig } from '../@types';
2
+ import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig, CountryCode } from '../@types';
3
3
  import { ValidateOperatorBody } from '../api';
4
+ export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
5
+ businessCountry: any;
6
+ countries: any;
7
+ }, void, {}>;
4
8
  export declare const getClientIp: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
5
9
  export declare const getBrowserFingerPrint: import("@reduxjs/toolkit").AsyncThunk<{
6
10
  fingerPrint: import("@fingerprintjs/fingerprintjs").GetResult;
@@ -20,6 +24,8 @@ export interface SettingsData {
20
24
  appConfig: LibConfig;
21
25
  open: boolean;
22
26
  isTapOrigin: boolean;
27
+ businessCountry: CountryCode;
28
+ countries: Array<CountryCode>;
23
29
  }
24
30
  export interface SettingsState extends SharedState<SettingsData> {
25
31
  }
@@ -37,10 +37,29 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  var _a;
38
38
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
39
39
  import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '../utils';
40
- import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
40
+ import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
41
41
  import i18n from '../i18n';
42
42
  import { updateLocale } from '../utils/locale';
43
43
  import API from '../api';
44
+ export var getCountries = createAsyncThunk('getCountries', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
45
+ var settings, countriesBody, countries, businessCountry;
46
+ return __generator(this, function (_a) {
47
+ switch (_a.label) {
48
+ case 0:
49
+ settings = thunkApi.getState().settings;
50
+ return [4, API.countryService.getAllCountries()];
51
+ case 1:
52
+ countriesBody = (_a.sent()).data;
53
+ countries = ((countriesBody === null || countriesBody === void 0 ? void 0 : countriesBody.list) || [])
54
+ .slice()
55
+ .sort(function (cOne, cTwo) { return cOne.name.english.localeCompare(cTwo.name.english); });
56
+ businessCountry = countries.find(function (country) {
57
+ return [country.iso2, country.iso3].includes(settings.data.appConfig.businessCountryCode.toUpperCase());
58
+ });
59
+ return [2, { businessCountry: businessCountry, countries: countries }];
60
+ }
61
+ });
62
+ }); });
44
63
  export var getClientIp = createAsyncThunk('getClientIp', function () { return __awaiter(void 0, void 0, void 0, function () {
45
64
  var data;
46
65
  return __generator(this, function (_a) {
@@ -98,7 +117,9 @@ var initialState = {
98
117
  featureScreensNavigation: [],
99
118
  activeScreen: {},
100
119
  deviceInfo: DefaultDeviceInfo,
101
- appConfig: {}
120
+ appConfig: {},
121
+ businessCountry: defaultCountry,
122
+ countries: []
102
123
  }
103
124
  };
104
125
  export var settingsSlice = createSlice({
@@ -187,6 +208,21 @@ export var settingsSlice = createSlice({
187
208
  },
188
209
  extraReducers: function (builder) {
189
210
  builder
211
+ .addCase(getCountries.fulfilled, function (state, action) {
212
+ state.error = null;
213
+ state.loading = false;
214
+ var _a = action.payload, countries = _a.countries, businessCountry = _a.businessCountry;
215
+ state.data.countries = countries;
216
+ state.data.businessCountry = businessCountry || defaultCountry;
217
+ })
218
+ .addCase(getCountries.pending, function (state) {
219
+ state.error = null;
220
+ state.loading = true;
221
+ })
222
+ .addCase(getCountries.rejected, function (state, action) {
223
+ state.error = action.error.message;
224
+ state.loading = false;
225
+ })
190
226
  .addCase(getClientIp.pending, function (state) {
191
227
  state.error = null;
192
228
  state.loading = true;
@@ -12,5 +12,5 @@ var BoxStyled = styled(Box)(function () { return ({
12
12
  zIndex: 2
13
13
  }); });
14
14
  export default function FlowLoading() {
15
- return (_jsx(BoxStyled, { children: _jsx(Loader, { svgStyle: { width: 60, height: 60 }, innerColor: 'white', outerColor: 'white', toggleAnimation: true }) }));
15
+ return (_jsx(BoxStyled, { children: _jsx(Loader, { style: { width: 60, height: 60 }, svgStyle: { width: 60, height: 60 }, innerColor: 'white', outerColor: 'white', toggleAnimation: true }) }));
16
16
  }
@@ -1,9 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, CountryCode, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes } from '../../../@types';
3
- export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
4
- businessCountry: any;
5
- countries: any;
6
- }, void, {}>;
2
+ import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes } from '../../../@types';
7
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
8
4
  data: any;
9
5
  leadData: any;
@@ -73,8 +69,6 @@ declare type VerifyData = {
73
69
  };
74
70
  export interface BusinessData {
75
71
  verify: ResponseData & VerifyData;
76
- businessCountry: CountryCode;
77
- countries: CountryCode[];
78
72
  otpData: OTPFormValues & ResponseData & {
79
73
  isNID: boolean;
80
74
  };
@@ -59,25 +59,9 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import moment from 'moment';
60
60
  import API from '../../../api';
61
61
  import { BusinessType, FlowsTypes } from '../../../@types';
62
- import { BUSINESS_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
62
+ import { BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
63
63
  import { convertNumbers2English, getFlowUrl, hasKey, removeRequestHeaders } from '../../../utils';
64
64
  import { handleNextScreenStep } from '../../../app/settings';
65
- export var getCountries = createAsyncThunk('getCountries', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
- var settings, countriesBody, businessCountry;
67
- return __generator(this, function (_a) {
68
- switch (_a.label) {
69
- case 0:
70
- settings = thunkApi.getState().settings;
71
- return [4, API.countryService.getAllCountries()];
72
- case 1:
73
- countriesBody = (_a.sent()).data;
74
- businessCountry = (countriesBody.list || []).find(function (country) {
75
- return [country.iso2, country.iso3].includes(settings.data.appConfig.businessCountryCode.toUpperCase());
76
- });
77
- return [2, { businessCountry: businessCountry, countries: (countriesBody === null || countriesBody === void 0 ? void 0 : countriesBody.list) || [] }];
78
- }
79
- });
80
- }); });
81
65
  export var verifyLeadToken = createAsyncThunk('verifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
82
66
  var payload, data, leadResponse;
83
67
  return __generator(this, function (_a) {
@@ -191,7 +175,7 @@ export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function
191
175
  identification_id: params.nid,
192
176
  identification_id_type: identification_id_type,
193
177
  date_of_birth: params.dob,
194
- country_code: business.data.businessCountry.iso2,
178
+ country_code: settings.data.businessCountry.iso2,
195
179
  step_name: stepName,
196
180
  encryption_contract: ['country_code', 'identification_id', 'identification_id_type', 'date_of_birth']
197
181
  };
@@ -367,7 +351,7 @@ export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', functio
367
351
  agree_refund: params.refundPolicy,
368
352
  agree_chargeback: params.transactionPolicy,
369
353
  step_name: stepName,
370
- encryption_contract: ['customers_base[0]', 'customers_served_monthly', 'yearly_sales_range']
354
+ encryption_contract: ['customers_served_monthly', 'yearly_sales_range']
371
355
  };
372
356
  return [4, API.entityService.updateEntityInfo(requestBody)];
373
357
  case 1:
@@ -453,8 +437,6 @@ var initialState = {
453
437
  customLoading: false,
454
438
  data: {
455
439
  flowName: FlowsTypes.BUSINESS,
456
- businessCountry: defaultCountry,
457
- countries: [],
458
440
  verify: {
459
441
  token: ''
460
442
  },
@@ -500,23 +482,6 @@ export var businessSlice = createSlice({
500
482
  },
501
483
  extraReducers: function (builder) {
502
484
  builder
503
- .addCase(getCountries.fulfilled, function (state, action) {
504
- state.error = null;
505
- state.customLoading = false;
506
- var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries;
507
- state.data.countries = countries
508
- .slice()
509
- .sort(function (cOne, cTwo) { return cOne.name.english.localeCompare(cTwo.name.english); });
510
- state.data.businessCountry = businessCountry || defaultCountry;
511
- })
512
- .addCase(getCountries.pending, function (state) {
513
- state.error = null;
514
- state.customLoading = true;
515
- })
516
- .addCase(getCountries.rejected, function (state, action) {
517
- state.error = action.error.message;
518
- state.customLoading = false;
519
- })
520
485
  .addCase(verifyLeadToken.pending, function (state) {
521
486
  state.error = null;
522
487
  state.customLoading = true;
@@ -586,7 +551,6 @@ export var businessSlice = createSlice({
586
551
  .addCase(updateLeadIdentity.fulfilled, function (state, action) {
587
552
  var _a;
588
553
  state.loading = false;
589
- state.customLoading = false;
590
554
  state.error = null;
591
555
  var _b = action.payload, data = _b.data, formData = _b.formData;
592
556
  var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
@@ -601,7 +565,6 @@ export var businessSlice = createSlice({
601
565
  })
602
566
  .addCase(updateLeadIdentity.rejected, function (state, action) {
603
567
  state.loading = false;
604
- state.customLoading = false;
605
568
  state.error = action.error.message;
606
569
  })
607
570
  .addCase(retrieveEntityList.pending, function (state) {
@@ -1,10 +1,6 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ResponseData, CountryCode, MobileFormValues, NIDFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '../../../@types';
2
+ import { ResponseData, MobileFormValues, NIDFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
- export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
5
- businessCountry: any;
6
- countries: any;
7
- }, void, {}>;
8
4
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
9
5
  response: any;
10
6
  formData: MobileFormValues & {
@@ -80,8 +76,6 @@ export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
80
76
  formData: void;
81
77
  }, void, {}>;
82
78
  export interface ConnectData {
83
- countries: Array<CountryCode>;
84
- businessCountry: CountryCode;
85
79
  mobileData: (MobileFormValues | undefined) & ResponseData;
86
80
  nidData: NIDFormValues & ResponseData & {
87
81
  type: string;
@@ -62,22 +62,6 @@ import API from '../../../api';
62
62
  import { CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, OTHER_BRAND, TWITTER_URL } from '../../../constants';
63
63
  import { defaultCountry } from '../../../constants';
64
64
  import { getIndividualName, getFlowUrl, capitalizeTheFirstLetterOfEachWord, removeRequestHeaders } from '../../../utils';
65
- export var getCountries = createAsyncThunk('getCountries', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
- var settings, countriesBody, businessCountry;
67
- return __generator(this, function (_a) {
68
- switch (_a.label) {
69
- case 0:
70
- settings = thunkApi.getState().settings;
71
- return [4, API.countryService.getAllCountries()];
72
- case 1:
73
- countriesBody = (_a.sent()).data;
74
- businessCountry = (countriesBody.list || []).find(function (country) {
75
- return [country.iso2, country.iso3].includes(settings.data.appConfig.businessCountryCode.toUpperCase());
76
- });
77
- return [2, { businessCountry: businessCountry, countries: countriesBody.list }];
78
- }
79
- });
80
- }); });
81
65
  export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
82
66
  var settings, requestBody, data;
83
67
  var _a, _b;
@@ -118,7 +102,7 @@ export var createNIDAuth = createAsyncThunk('createNIDAuth', function (params, t
118
102
  identification_id: params.nid,
119
103
  identification_id_type: identification_id_type,
120
104
  date_of_birth: params.dob,
121
- country_code: connect.data.businessCountry.iso2
105
+ country_code: settings.data.businessCountry.iso2
122
106
  },
123
107
  sign_in: false,
124
108
  step_name: CONNECT_STEP_NAMES.CREATE_AUTH_NID,
@@ -200,12 +184,12 @@ export var retrieveLead = createAsyncThunk('retrieveLead', function (params, thu
200
184
  });
201
185
  }); });
202
186
  export var createLead = createAsyncThunk('createLead', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
203
- var connect, businessCountry, payload, brandPayload, _a, brandResponse, data;
204
- return __generator(this, function (_b) {
205
- switch (_b.label) {
187
+ var _a, connect, settings, businessCountry, payload, brandPayload, _b, brandResponse, data;
188
+ return __generator(this, function (_c) {
189
+ switch (_c.label) {
206
190
  case 0:
207
- connect = thunkApi.getState().connect;
208
- businessCountry = connect.data.businessCountry;
191
+ _a = thunkApi.getState(), connect = _a.connect, settings = _a.settings;
192
+ businessCountry = settings.data.businessCountry;
209
193
  payload = {
210
194
  individual_id: params.individualId,
211
195
  country_code: businessCountry.iso2
@@ -218,7 +202,7 @@ export var createLead = createAsyncThunk('createLead', function (params, thunkAp
218
202
  API.leadService.createLead(payload)
219
203
  ])];
220
204
  case 1:
221
- _a = _b.sent(), brandResponse = _a[0].data, data = _a[1].data;
205
+ _b = _c.sent(), brandResponse = _b[0].data, data = _b[1].data;
222
206
  if (!data.errors) {
223
207
  thunkApi.dispatch(handleNextScreenStep(params.stepName));
224
208
  }
@@ -293,14 +277,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
293
277
  id: (isExistingUser ? (_h = brandData.responseBody) === null || _h === void 0 ? void 0 : _h.lead_id : (_j = otpData.responseBody) === null || _j === void 0 ? void 0 : _j.lead_id) || '',
294
278
  terms_conditions_accepted: params.termAndConditionChecked,
295
279
  step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_MERCHANT,
296
- encryption_contract: [
297
- 'brand.name.en',
298
- 'brand.name.ar',
299
- 'brand.name.zh',
300
- 'brand.website',
301
- 'brand.social[0]',
302
- 'brand.social[1]'
303
- ]
280
+ encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh', 'brand.website']
304
281
  };
305
282
  return [4, API.leadService.updateLead(payload)];
306
283
  case 1:
@@ -395,8 +372,6 @@ var initialState = {
395
372
  customLoading: false,
396
373
  data: {
397
374
  flowName: FlowsTypes.CONNECT,
398
- businessCountry: defaultCountry,
399
- countries: [],
400
375
  mobileData: {
401
376
  countryCode: defaultCountry,
402
377
  mobile: null
@@ -456,24 +431,6 @@ export var connectSlice = createSlice({
456
431
  },
457
432
  extraReducers: function (builder) {
458
433
  builder
459
- .addCase(getCountries.fulfilled, function (state, action) {
460
- state.error = null;
461
- state.customLoading = false;
462
- var _a = action.payload, countries = _a.countries, businessCountry = _a.businessCountry;
463
- state.data.countries = countries
464
- .slice()
465
- .sort(function (cOne, cTwo) { return cOne.name.english.localeCompare(cTwo.name.english); });
466
- state.data.businessCountry = businessCountry || defaultCountry;
467
- state.data.mobileData.countryCode = businessCountry || defaultCountry;
468
- })
469
- .addCase(getCountries.pending, function (state) {
470
- state.error = null;
471
- state.customLoading = true;
472
- })
473
- .addCase(getCountries.rejected, function (state, action) {
474
- state.error = action.error.message;
475
- state.customLoading = false;
476
- })
477
434
  .addCase(createMobileAuth.fulfilled, function (state, action) {
478
435
  var _a;
479
436
  state.loading = false;
@@ -1,9 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
2
  import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
- export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
4
- businessCountry: any;
5
- countries: any;
6
- }, void, {}>;
7
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
8
4
  data: any;
9
5
  leadData: any;
@@ -16,6 +12,7 @@ export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
16
12
  sourceIncome: any;
17
13
  monthlyIncome: any;
18
14
  countryCode: string;
15
+ countries: CountryCode[];
19
16
  }, string, {}>;
20
17
  export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
21
18
  data: any;
@@ -38,8 +35,6 @@ declare type VerifyData = {
38
35
  token: string;
39
36
  };
40
37
  export interface IndividualData {
41
- businessCountry: CountryCode;
42
- countries: Array<CountryCode>;
43
38
  verify: ResponseData & VerifyData;
44
39
  otpData: OTPFormValues & ResponseData;
45
40
  individualData: IndividualExtraFormValues & ResponseData;
@@ -51,23 +51,7 @@ import API from '../../../api';
51
51
  import { FlowsTypes } from '../../../@types';
52
52
  import { hasKey, removeRequestHeaders } from '../../../utils';
53
53
  import { handleNextScreenStep } from '../../../app/settings';
54
- import { defaultCountry, INDIVIDUAl_STEP_NAMES } from '../../../constants';
55
- export var getCountries = createAsyncThunk('getCountries', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
- var settings, countriesBody, businessCountry;
57
- return __generator(this, function (_a) {
58
- switch (_a.label) {
59
- case 0:
60
- settings = thunkApi.getState().settings;
61
- return [4, API.countryService.getAllCountries()];
62
- case 1:
63
- countriesBody = (_a.sent()).data;
64
- businessCountry = (countriesBody.list || []).find(function (country) {
65
- return [country.iso2, country.iso3].includes(settings.data.appConfig.businessCountryCode.toUpperCase());
66
- });
67
- return [2, { businessCountry: businessCountry, countries: countriesBody.list }];
68
- }
69
- });
70
- }); });
54
+ import { INDIVIDUAl_STEP_NAMES } from '../../../constants';
71
55
  export var verifyLeadToken = createAsyncThunk('verifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
72
56
  var payload, data, leadResponse, _a, steps, entity, hasTaxCompleted;
73
57
  var _b, _c;
@@ -123,19 +107,23 @@ export var resendOTP = createAsyncThunk('resendOTPIndividual', function (params,
123
107
  });
124
108
  }); });
125
109
  export var retrieveDataList = createAsyncThunk('retrieveDataList', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
126
- var _a, sourceIncome, monthlyIncome;
110
+ var settings, _a, sourceIncome, monthlyIncome, countries;
127
111
  return __generator(this, function (_b) {
128
112
  switch (_b.label) {
129
- case 0: return [4, Promise.all([
130
- API.dataService.getSourceOfIncome(),
131
- API.dataService.getMonthlyIncome(countryCode)
132
- ])];
113
+ case 0:
114
+ settings = thunkApi.getState().settings;
115
+ return [4, Promise.all([
116
+ API.dataService.getSourceOfIncome(),
117
+ API.dataService.getMonthlyIncome(countryCode)
118
+ ])];
133
119
  case 1:
134
120
  _a = _b.sent(), sourceIncome = _a[0].data, monthlyIncome = _a[1].data;
121
+ countries = settings.data.countries;
135
122
  return [2, {
136
123
  sourceIncome: sourceIncome,
137
124
  monthlyIncome: monthlyIncome,
138
- countryCode: countryCode
125
+ countryCode: countryCode,
126
+ countries: countries
139
127
  }];
140
128
  }
141
129
  });
@@ -203,7 +191,7 @@ export var updateIndividualInfo = createAsyncThunk('updateIndividualInfo', funct
203
191
  actual_income: (_f = params.monthlyIncome) === null || _f === void 0 ? void 0 : _f.id,
204
192
  is_relative_PEP: params.isPEP,
205
193
  is_influencer: params.isInfluencer,
206
- encryption_contract: ['employer_name', 'employer_city', 'actual_income', 'source_income[0]'],
194
+ encryption_contract: ['employer_name', 'employer_city', 'actual_income'],
207
195
  step_name: INDIVIDUAl_STEP_NAMES.INDIVIDUAl_INFO
208
196
  };
209
197
  return [4, API.entityService.updateEntityInfo(requestBody)];
@@ -250,8 +238,6 @@ var initialState = {
250
238
  loading: false,
251
239
  data: {
252
240
  flowName: FlowsTypes.INDIVIDUAL,
253
- countries: [],
254
- businessCountry: defaultCountry,
255
241
  verify: {
256
242
  token: ''
257
243
  },
@@ -284,23 +270,6 @@ export var individualSlice = createSlice({
284
270
  },
285
271
  extraReducers: function (builder) {
286
272
  builder
287
- .addCase(getCountries.fulfilled, function (state, action) {
288
- state.error = null;
289
- state.customLoading = false;
290
- var _a = action.payload, countries = _a.countries, businessCountry = _a.businessCountry;
291
- state.data.countries = countries
292
- .slice()
293
- .sort(function (cOne, cTwo) { return cOne.name.english.localeCompare(cTwo.name.english); });
294
- state.data.businessCountry = businessCountry || defaultCountry;
295
- })
296
- .addCase(getCountries.pending, function (state) {
297
- state.error = null;
298
- state.customLoading = true;
299
- })
300
- .addCase(getCountries.rejected, function (state, action) {
301
- state.error = action.error.message;
302
- state.customLoading = false;
303
- })
304
273
  .addCase(verifyLeadToken.pending, function (state) {
305
274
  state.error = null;
306
275
  state.customLoading = true;
@@ -367,7 +336,7 @@ export var individualSlice = createSlice({
367
336
  .addCase(retrieveDataList.fulfilled, function (state, action) {
368
337
  state.loading = false;
369
338
  state.error = null;
370
- var _a = action.payload, sourceIncome = _a.sourceIncome, monthlyIncome = _a.monthlyIncome, countryCode = _a.countryCode;
339
+ var _a = action.payload, sourceIncome = _a.sourceIncome, monthlyIncome = _a.monthlyIncome, countryCode = _a.countryCode, countries = _a.countries;
371
340
  var data = state.data.individualData.responseBody;
372
341
  state.data.individualData.responseBody = __assign(__assign({}, data), { sourceIncomeList: sourceIncome || [], monthlyIncomeList: monthlyIncome || [] });
373
342
  var selectedSourceIncome = sourceIncome === null || sourceIncome === void 0 ? void 0 : sourceIncome[0];
@@ -377,7 +346,7 @@ export var individualSlice = createSlice({
377
346
  if (!!selectedMonthlyIncome)
378
347
  state.data.individualData.monthlyIncome = selectedMonthlyIncome;
379
348
  if (!!countryCode) {
380
- var employerLocation = state.data.countries.find(function (country) { return country.iso2 === countryCode; });
349
+ var employerLocation = countries.find(function (country) { return country.iso2 === countryCode; });
381
350
  state.data.individualData.employerLocation = employerLocation;
382
351
  }
383
352
  })
@@ -14,7 +14,7 @@ import { memo, useEffect } from 'react';
14
14
  import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
15
15
  import { handleLanguage, settingsSelector } from '../../app/settings';
16
16
  import { FeatureContainer } from '../shared/Containers';
17
- import { businessSelector, getCountries, verifyLeadToken } from '../app/business/businessStore';
17
+ import { businessSelector, verifyLeadToken } from '../app/business/businessStore';
18
18
  import AnimationFlow from '../../components/AnimationFlow';
19
19
  import { store } from '../../app/store';
20
20
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
@@ -47,9 +47,6 @@ var Business = memo(function (props) {
47
47
  if (!loading)
48
48
  verifyToken();
49
49
  }, [loading]);
50
- useEffect(function () {
51
- dispatch(getCountries());
52
- }, []);
53
50
  return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: businessFeatureScreens.map(function (_a, index) {
54
51
  var Element = _a.element, name = _a.name;
55
52
  var isActive = activeScreen.name === name;
@@ -10,13 +10,13 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { memo, useEffect } from 'react';
13
+ import { memo } from 'react';
14
14
  import { FeatureContainer } from '../shared/Containers';
15
- import { useAppTheme, useAppDispatch, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
15
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '../../hooks';
16
16
  import { settingsSelector } from '../../app/settings';
17
17
  import AnimationFlow from '../../components/AnimationFlow';
18
18
  import { store } from '../../app/store';
19
- import { connectSelector, getCountries } from '../app/connect/connectStore';
19
+ import { connectSelector } from '../app/connect/connectStore';
20
20
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
21
21
  import Collapse from '../../components/Collapse';
22
22
  import { reactElement } from '../../utils';
@@ -26,16 +26,12 @@ import CustomFooter from '../shared/Footer';
26
26
  import Background from '../shared/Background';
27
27
  var Connect = memo(function (props) {
28
28
  var theme = useAppTheme().theme;
29
- var dispatch = useAppDispatch();
30
29
  var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, settingLoading = _a.loading;
31
30
  var connectError = useAppSelector(connectSelector).error;
32
31
  useAppConfig(__assign({ navigation: CONNECT_SCREENS_NAVIGATION }, props));
33
32
  useErrorListener(connectError || error);
34
33
  useStepStartedListener();
35
34
  var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
36
- useEffect(function () {
37
- dispatch(getCountries());
38
- }, []);
39
35
  return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: connectFeatureScreens.map(function (_a, index) {
40
36
  var Element = _a.element, name = _a.name;
41
37
  var isActive = activeScreen.name === name;
@@ -63,9 +63,10 @@ import Tooltip from '../../../../components/Tooltip';
63
63
  import Collapse from '../../../../components/Collapse';
64
64
  import { removeAllOtherThanCharsNumbersAndSpace } from '../../../../utils';
65
65
  import CheckIcon from '../../../shared/CheckIcon';
66
- import { checkBrandNameAvailability, connectSelector } from '../../../app/connect/connectStore';
66
+ import { checkBrandNameAvailability } from '../../../app/connect/connectStore';
67
67
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
68
68
  import { debounce } from 'lodash-es';
69
+ import { settingsSelector } from '../../../../app/settings';
69
70
  var LabelContainerStyled = styled(Box)(function (_a) {
70
71
  var theme = _a.theme;
71
72
  return ({
@@ -107,7 +108,7 @@ var BrandName = function (_a) {
107
108
  var brandControl = useController({ control: control, name: 'brandName' });
108
109
  var brandNameValue = brandControl.field.value;
109
110
  var error = (_b = brandControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
110
- var data = useAppSelector(connectSelector).data;
111
+ var data = useAppSelector(settingsSelector).data;
111
112
  var checkBrand = debounce(function (value) { return __awaiter(void 0, void 0, void 0, function () {
112
113
  var onSuccess;
113
114
  return __generator(this, function (_a) {
@@ -107,6 +107,6 @@ var Mobile = function (_a) {
107
107
  var disabled = !methods.formState.isValid || !!error;
108
108
  var title = t('join_our_community');
109
109
  var subTitle = t('ide_terms_and_conditions_description');
110
- return (_jsxs(ScreenContainer, { children: [(title || subTitle) && _jsx(MIDTitle, { show: !listActive, title: title, description: subTitle }), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(InputsContainerStyled, { children: _jsx(MobileNumber, { show: !isBusinessListActive, countries: data.countries, onListOpen: function () { return handleMenuListClick(ListType.CountryCodeList); }, onListClose: function () { return handleMenuListClick(); } }) }), _jsxs(Collapse, __assign({ in: !listActive }, { children: [_jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disableBack: true, disabled: disabled || settingsStore.loading, loading: loading, error: t(error || '') }, { children: t('next') })), _jsxs(OrBoxStyled, { children: [_jsx(DividerStyled, {}), _jsx(TextStyled, { children: t('or') }), _jsx(DividerStyled, {})] }), _jsx(AbsherButton, __assign({ disabled: settingsStore.loading || loading, onClick: function () { return onBack(); } }, { children: t('absher_button_label') }))] }))] })) }))] }));
110
+ return (_jsxs(ScreenContainer, { children: [(title || subTitle) && _jsx(MIDTitle, { show: !listActive, title: title, description: subTitle }), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(InputsContainerStyled, { children: _jsx(MobileNumber, { show: !isBusinessListActive, countries: settingsStore.data.countries, onListOpen: function () { return handleMenuListClick(ListType.CountryCodeList); }, onListClose: function () { return handleMenuListClick(); } }) }), _jsxs(Collapse, __assign({ in: !listActive }, { children: [_jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disableBack: true, disabled: disabled || settingsStore.loading, loading: loading, error: t(error || '') }, { children: t('next') })), _jsxs(OrBoxStyled, { children: [_jsx(DividerStyled, {}), _jsx(TextStyled, { children: t('or') }), _jsx(DividerStyled, {})] }), _jsx(AbsherButton, __assign({ disabled: settingsStore.loading || loading, onClick: function () { return onBack(); } }, { children: t('absher_button_label') }))] }))] })) }))] }));
111
111
  };
112
112
  export default React.memo(Mobile);
@@ -21,7 +21,7 @@ import { getParameterByName, reactElement } from '../../utils';
21
21
  import { FeatureContainer } from '../shared/Containers';
22
22
  import { INDIVIDUAL_SCREENS_NAVIGATION } from '../../constants';
23
23
  import { individualFeatureScreens } from '../featuresScreens';
24
- import { getCountries, individualSelector, verifyLeadToken } from '../app/individual/individualStore';
24
+ import { individualSelector, verifyLeadToken } from '../app/individual/individualStore';
25
25
  import CustomFooter from '../shared/Footer';
26
26
  import Background from '../shared/Background';
27
27
  var Individual = memo(function (props) {
@@ -47,9 +47,6 @@ var Individual = memo(function (props) {
47
47
  if (!loading)
48
48
  verifyToken();
49
49
  }, [loading]);
50
- useEffect(function () {
51
- dispatch(getCountries());
52
- }, []);
53
50
  return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: individualFeatureScreens.map(function (_a, index) {
54
51
  var Element = _a.element, name = _a.name;
55
52
  var isActive = activeScreen.name === name;
@@ -16,7 +16,7 @@ import { useForm, FormProvider } from 'react-hook-form';
16
16
  import Box from '@mui/material/Box';
17
17
  import { useTranslation } from 'react-i18next';
18
18
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
19
- import { handleCurrentActiveScreen } from '../../../../app/settings';
19
+ import { handleCurrentActiveScreen, settingsSelector } from '../../../../app/settings';
20
20
  import Form from '../../../../components/Form';
21
21
  import Collapse from '../../../../components/Collapse';
22
22
  import Button from '../../../shared/Button';
@@ -41,6 +41,8 @@ var AdditionalIndividualInfo = function (_a) {
41
41
  var isAr = useLanguage().isAr;
42
42
  var dispatch = useAppDispatch();
43
43
  var _b = useAppSelector(individualSelector), data = _b.data, loading = _b.loading, error = _b.error;
44
+ var settingsData = useAppSelector(settingsSelector).data;
45
+ var countries = settingsData.countries;
44
46
  var methods = useForm({
45
47
  resolver: yupResolver(IndividualInfoValidationSchema),
46
48
  defaultValues: data.individualData,
@@ -73,7 +75,7 @@ var AdditionalIndividualInfo = function (_a) {
73
75
  var isSourceOfIncomeListActive = listActive === ListType.SourceOfIncomeList;
74
76
  var isEmployerLocationListActive = listActive === ListType.EmployerLocationList;
75
77
  var isMonthlyIncomeListActive = listActive === ListType.MonthlyIncomeList;
76
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(SourceOfIncome, { onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: !isEmployerLocationListActive && !isMonthlyIncomeListActive }), _jsx(MonthlyIncome, { show: !isEmployerLocationListActive && !isSourceOfIncomeListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EmployerName, { show: false }), _jsx(EmployerLocation, { show: !isSourceOfIncomeListActive && employerFieldsActive && !isMonthlyIncomeListActive, countries: data.countries, onListOpen: function () { return handleMenuClick(ListType.EmployerLocationList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
78
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(Box, { children: [_jsx(SourceOfIncome, { onListOpen: function () { return handleMenuClick(ListType.SourceOfIncomeList); }, onListClose: function () { return handleMenuClick(); }, show: !isEmployerLocationListActive && !isMonthlyIncomeListActive }), _jsx(MonthlyIncome, { show: !isEmployerLocationListActive && !isSourceOfIncomeListActive, onListOpen: function () { return handleMenuClick(ListType.MonthlyIncomeList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EmployerName, { show: false }), _jsx(EmployerLocation, { show: !isSourceOfIncomeListActive && employerFieldsActive && !isMonthlyIncomeListActive, countries: countries, onListOpen: function () { return handleMenuClick(ListType.EmployerLocationList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: !methods.formState.isValid, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
77
79
  };
78
80
  export default React.memo(AdditionalIndividualInfo);
79
81
  AdditionalIndividualInfo.defaultProps = {};
@@ -15,7 +15,7 @@ import { styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
16
  import LogoBackground from './LogoBackground';
17
17
  var BackgroundStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isTapOrigin'; } })(function (_a) {
18
- var isTapOrigin = _a.isTapOrigin;
18
+ var isTapOrigin = _a.isTapOrigin, theme = _a.theme;
19
19
  return ({
20
20
  width: '100vw',
21
21
  height: '100vh',
@@ -24,6 +24,7 @@ var BackgroundStyled = styled(Box, { shouldForwardProp: function (prop) { return
24
24
  });
25
25
  var Background = function (_a) {
26
26
  var children = _a.children, isTapOrigin = _a.isTapOrigin, loading = _a.loading;
27
- return (_jsxs(BackgroundStyled, __assign({ id: 'background', isTapOrigin: isTapOrigin }, { children: [_jsx(LogoBackground, { hide: loading || !isTapOrigin }), children] })));
27
+ var showLogo = !loading && isTapOrigin;
28
+ return (_jsxs(BackgroundStyled, __assign({ id: 'background', isTapOrigin: isTapOrigin }, { children: [showLogo && _jsx(LogoBackground, {}), children] })));
28
29
  };
29
30
  export default memo(Background);
@@ -1,6 +1,3 @@
1
1
  import React from 'react';
2
- declare type LogoBackgroundProps = {
3
- hide?: boolean;
4
- };
5
- declare const _default: React.MemoExoticComponent<({ hide }: LogoBackgroundProps) => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
6
3
  export default _default;
@@ -1,18 +1,6 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { memo } from 'react';
14
3
  import { styled } from '@mui/material/styles';
15
- import Collapse from '@mui/material/Collapse';
16
4
  import Box from '@mui/material/Box';
17
5
  import Icon from '../../../components/Icon';
18
6
  import { ICONS_NAMES } from '../../../constants';
@@ -25,8 +13,7 @@ var BoxStyled = styled(Box)(function (_a) {
25
13
  flexDirection: 'column',
26
14
  justifyContent: 'center',
27
15
  alignItems: 'center',
28
- paddingTop: theme.spacing(5),
29
- paddingBottom: theme.spacing(2)
16
+ paddingTop: theme.spacing(5)
30
17
  },
31
18
  _b[theme.breakpoints.down('sm')] = {
32
19
  paddingTop: theme.spacing(11)
@@ -40,31 +27,16 @@ var LogoBadgeStyled = styled(Icon)(function (_a) {
40
27
  width: theme.spacing(8.875)
41
28
  });
42
29
  });
43
- var LogoIconBoxStyled = styled(Box)(function (_a) {
44
- var _b;
45
- var theme = _a.theme;
46
- return (_b = {
47
- paddingTop: theme.spacing(2.5),
48
- width: '100%',
49
- display: 'flex',
50
- justifyContent: 'center'
51
- },
52
- _b[theme.transitions.create(['top'])] = {
53
- duration: theme.transitions.duration.standard
54
- },
55
- _b);
56
- });
57
30
  var LogoIconStyled = styled(Icon)(function (_a) {
58
31
  var theme = _a.theme;
59
32
  return ({
60
33
  width: theme.spacing(5.875),
61
34
  height: theme.spacing(3.625),
62
- padding: theme.spacing(0)
35
+ marginTop: theme.spacing(2.5)
63
36
  });
64
37
  });
65
- var LogoBackground = function (_a) {
66
- var hide = _a.hide;
38
+ var LogoBackground = function () {
67
39
  var isAr = useLanguage().isAr;
68
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' }) })] }) })));
40
+ return (_jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' })] }));
69
41
  };
70
42
  export default memo(LogoBackground);
@@ -1,15 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { LanguageMode } from '../../../@types';
3
3
  import { useAppDispatch, useLanguage, useAppSelector } from '../../../hooks';
4
- import { handleLanguage } from '../../../app/settings';
4
+ import { handleLanguage, settingsSelector } from '../../../app/settings';
5
5
  import Footer from '../../../components/Footer';
6
6
  import { useTranslation } from 'react-i18next';
7
- import { connectSelector } from '../../app/connect/connectStore';
8
7
  export default function CustomFooter() {
9
8
  var isEn = useLanguage().isEn;
10
9
  var t = useTranslation().t;
11
10
  var dispatch = useAppDispatch();
12
- var data = useAppSelector(connectSelector).data;
11
+ var data = useAppSelector(settingsSelector).data;
13
12
  var handleChangeLanguage = function () {
14
13
  var language = isEn ? LanguageMode.AR : LanguageMode.EN;
15
14
  dispatch(handleLanguage(language));
@@ -57,7 +57,7 @@ var __rest = (this && this.__rest) || function (s, e) {
57
57
  return t;
58
58
  };
59
59
  import { useEffect, useState } from 'react';
60
- import { handleActiveFlowScreens, settingsSelector, getClientIp, getLocale, getBrowserFingerPrint, getOperator, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin } from '../app/settings';
60
+ import { handleActiveFlowScreens, settingsSelector, getClientIp, getLocale, getBrowserFingerPrint, getOperator, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, getCountries } from '../app/settings';
61
61
  import { useAppDispatch } from './useAppDispatch';
62
62
  import { useAppSelector } from './useAppSelector';
63
63
  import { setAxiosGlobalHeaders, axiosInstance } from '../api';
@@ -126,6 +126,9 @@ export var useAppConfig = function (_a) {
126
126
  };
127
127
  return [4, dispatch(getOperator(payload))];
128
128
  case 1:
129
+ _c.sent();
130
+ return [4, dispatch(getCountries())];
131
+ case 2:
129
132
  _c.sent();
130
133
  setLoading(false);
131
134
  return [2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.93-test",
3
+ "version": "1.0.94-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",