@tap-payments/auth-jsconnect 1.0.61 → 1.0.65

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 (38) hide show
  1. package/build/@types/redux.d.ts +1 -0
  2. package/build/api/lead.d.ts +4 -1
  3. package/build/assets/locales/ar.json +5 -3
  4. package/build/assets/locales/en.json +7 -5
  5. package/build/constants/assets.d.ts +19 -7
  6. package/build/constants/assets.js +19 -7
  7. package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +1 -1
  8. package/build/features/app/bank/bankStore.js +4 -0
  9. package/build/features/app/business/businessStore.d.ts +9 -2
  10. package/build/features/app/business/businessStore.js +133 -73
  11. package/build/features/app/connect/connectStore.js +18 -5
  12. package/build/features/app/individual/individualStore.js +4 -0
  13. package/build/features/app/password/passwordStore.js +6 -0
  14. package/build/features/app/tax/taxStore.js +6 -0
  15. package/build/features/business/Business.js +3 -2
  16. package/build/features/business/screens/Activities/Activities.js +4 -0
  17. package/build/features/business/screens/Activities/ActivitiesList.js +5 -6
  18. package/build/features/business/screens/Activities/SalesChannels.js +4 -5
  19. package/build/features/business/screens/BusinessType/BusinessType.js +1 -6
  20. package/build/features/business/screens/BusinessType/LicenseList.js +17 -12
  21. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  22. package/build/features/business/screens/BusinessType/validation.d.ts +3 -3
  23. package/build/features/business/screens/BusinessType/validation.js +14 -7
  24. package/build/features/business/screens/Customers/Customers.js +0 -1
  25. package/build/features/business/screens/Customers/ExpectedSalesRange.js +0 -5
  26. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +39 -35
  27. package/build/features/business/screens/Verify/Verify.js +1 -1
  28. package/build/features/password/screens/CreatePassword/CreatePassword.js +0 -1
  29. package/build/features/shared/Button/AbsherButton.js +23 -19
  30. package/build/features/shared/Button/Button.js +1 -1
  31. package/build/features/shared/Button/EmailProvidersButtons.js +7 -2
  32. package/build/features/shared/Button/FlowsButtons.d.ts +4 -3
  33. package/build/features/shared/Button/FlowsButtons.js +37 -20
  34. package/build/features/shared/Button/MobileButton.js +14 -11
  35. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  36. package/build/utils/string.d.ts +1 -0
  37. package/build/utils/string.js +4 -0
  38. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  export interface SharedState<T> {
2
2
  error: string | null;
3
3
  loading: boolean;
4
+ customLoading?: boolean;
4
5
  data: T;
5
6
  }
6
7
  export interface ActionState<T> {
@@ -56,7 +56,10 @@ export declare type UpdateLeadBody = {
56
56
  license_type?: string;
57
57
  is_acknowledged?: boolean;
58
58
  terms_conditions_accepted?: boolean;
59
- email_url?: string;
59
+ flows?: {
60
+ name: string;
61
+ url: string;
62
+ }[];
60
63
  };
61
64
  export declare type LeadVerifyBody = {
62
65
  verify_token: string;
@@ -215,9 +215,9 @@
215
215
  "select_brand_label": "Brand List",
216
216
  "choose_brand": "Choose Brand",
217
217
  "confirm_enter_iban": "الايبان",
218
- "open_gmail": "Gmail",
219
- "open_outlook": "Outlook",
220
- "open_apple": "Apple",
218
+ "gmail_btn_open_title": "Gmail",
219
+ "outlook_btn_open_title": "Outlook",
220
+ "apple_btn_open_title": "Apple",
221
221
  "choose_any_license": "Choose Licene",
222
222
  "future_work": "Future Work",
223
223
  "add_other_fl": "Add Freelance",
@@ -232,5 +232,7 @@
232
232
  "individual_flow_pending": "Individual",
233
233
  "bank_flow_pending": "Bank",
234
234
  "password_flow_pending": "Password",
235
+ "business_flow_pending": "Business",
236
+ "business_flow_completed": "Business",
235
237
  "continue": "Continue"
236
238
  }
@@ -229,9 +229,9 @@
229
229
  "select_brand_label": "Brand List",
230
230
  "choose_brand": "Choose Brand",
231
231
  "confirm_enter_iban": "IBAN",
232
- "open_gmail": "Gmail",
233
- "open_outlook": "Outlook",
234
- "open_apple": "Apple",
232
+ "gmail_btn_open_title": "Gmail",
233
+ "outlook_btn_open_title": "Outlook",
234
+ "apple_btn_open_title": "Apple",
235
235
  "choose_any_license": "Choose Licene",
236
236
  "future_work": "Future Work",
237
237
  "add_other_fl": "Add Freelance",
@@ -239,12 +239,14 @@
239
239
  "cr_number": "CR Number",
240
240
  "fl_number": "FL Number",
241
241
  "tax_flow_completed": "Tax",
242
- "individual_flow_completed": "Individual",
242
+ "individual_flow_completed": "Individual {{individual_name}}",
243
243
  "bank_flow_completed": "Bank",
244
244
  "password_flow_completed": "Password",
245
245
  "tax_flow_pending": "Tax",
246
- "individual_flow_pending": "Individual",
246
+ "individual_flow_pending": "Individual {{individual_name}}",
247
247
  "bank_flow_pending": "Bank",
248
248
  "password_flow_pending": "Password",
249
+ "business_flow_pending": "Business",
250
+ "business_flow_completed": "Business",
249
251
  "continue": "Continue"
250
252
  }
@@ -30,15 +30,27 @@ export declare const ICONS_NAMES: {
30
30
  ID_IMAGE: string;
31
31
  MOBILE_IMAGE: string;
32
32
  WHITE_ARROW: string;
33
+ BLACK_ARROW: string;
33
34
  SUCCESS: string;
34
35
  ABSHER_LOGO: string;
35
36
  EMAIL_ICON: string;
36
37
  MOBILE_ICON: string;
37
- GMAIL_ICON: string;
38
- OUTLOOK_ICON: string;
39
- APPLE_MAIL_ICON: string;
40
- TAX_ICON: string;
41
- BANK_ICON: string;
42
- INDIVIDUAL_ICON: string;
43
- PASSWORD_ICON: string;
38
+ GMAIL_Filled_ICON: string;
39
+ GMAIL_White_ICON: string;
40
+ outlook_Filled_ICON: string;
41
+ outlook_White_ICON: string;
42
+ Apple_Filled_ICON: string;
43
+ apple_white_icon: string;
44
+ tax_filled_icon: string;
45
+ tax_white_icon: string;
46
+ bank_filled_icon: string;
47
+ bank_white_icon: string;
48
+ individual_filled_icon: string;
49
+ individual_white_icon: string;
50
+ password_filled_icon: string;
51
+ password_white_icon: string;
52
+ business_filled_icon: string;
53
+ business_white_icon: string;
54
+ Arrow_filled_right_icon: string;
55
+ Arrow_white_right_icon: string;
44
56
  };
@@ -30,15 +30,27 @@ export var ICONS_NAMES = {
30
30
  ID_IMAGE: 'https://villageofwarwick.org/wp-content/uploads/2020/02/ICON99-512-1.png',
31
31
  MOBILE_IMAGE: 'https://image.shutterstock.com/image-vector/smartphone-icon-logo-260nw-767440327.jpg',
32
32
  WHITE_ARROW: 'https://tap-connecet.b-cdn.net/imgs/whiteArrow.svg',
33
+ BLACK_ARROW: 'https://dash.b-cdn.net/icons/menu/arrow_right_icon.svg',
33
34
  SUCCESS: 'https://tap-connecet.b-cdn.net/imgs/success.svg',
34
35
  ABSHER_LOGO: 'https://dash.b-cdn.net/icons/menu/Absher.svg',
35
36
  EMAIL_ICON: 'https://dash.b-cdn.net/icons/menu/email.png',
36
37
  MOBILE_ICON: 'https://dash.b-cdn.net/icons/menu/mobile.svg',
37
- GMAIL_ICON: 'https://dash.b-cdn.net/icons/menu/gmail-icon.svg',
38
- OUTLOOK_ICON: 'https://dash.b-cdn.net/icons/menu/outlook-icon.svg',
39
- APPLE_MAIL_ICON: 'https://dash.b-cdn.net/icons/menu/apple-icon.svg',
40
- TAX_ICON: 'https://email-templates.b-cdn.net/file.png',
41
- BANK_ICON: 'https://email-templates.b-cdn.net/dollar_square.png',
42
- INDIVIDUAL_ICON: 'https://email-templates.b-cdn.net/user.png',
43
- PASSWORD_ICON: 'https://email-templates.b-cdn.net/lock_square.png'
38
+ GMAIL_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-filled.svg',
39
+ GMAIL_White_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-white.svg',
40
+ outlook_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Outlook-filled.svg',
41
+ outlook_White_ICON: 'https://dash.b-cdn.net/icons/menu/Outlook-white.svg',
42
+ Apple_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Apple-filled.svg',
43
+ apple_white_icon: 'https://dash.b-cdn.net/icons/menu/Apple-white.svg',
44
+ tax_filled_icon: 'https://dash.b-cdn.net/icons/menu/tax-filled.svg',
45
+ tax_white_icon: 'https://dash.b-cdn.net/icons/menu/tax-white.svg',
46
+ bank_filled_icon: 'https://dash.b-cdn.net/icons/menu/bank-filled.svg',
47
+ bank_white_icon: 'https://dash.b-cdn.net/icons/menu/bank-white.svg',
48
+ individual_filled_icon: 'https://dash.b-cdn.net/icons/menu/user-filled.svg',
49
+ individual_white_icon: 'https://dash.b-cdn.net/icons/menu/user-white.svg',
50
+ password_filled_icon: 'https://dash.b-cdn.net/icons/menu/password-filled.svg',
51
+ password_white_icon: 'https://dash.b-cdn.net/icons/menu/password-white.svg',
52
+ business_filled_icon: 'https://dash.b-cdn.net/icons/menu/business-filled.svg',
53
+ business_white_icon: 'https://dash.b-cdn.net/icons/menu/business-white.svg',
54
+ Arrow_filled_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled.svg',
55
+ Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg'
44
56
  };
@@ -36,6 +36,6 @@ var VerifyAndRedirect = function (_a) {
36
36
  }, 300);
37
37
  }
38
38
  }, [data.verify.responseBody]);
39
- return (_jsxs(ScreenContainerStyled, { children: [isLoading && _jsx(Loader, {}), errorMessage && _jsx(Error, { error: errorMessage }), !isLoading && !errorMessage && _jsx(Error, { error: 'verified' })] }));
39
+ return (_jsxs(ScreenContainerStyled, { children: [isLoading && _jsx(Loader, {}), errorMessage && _jsx(Error, { error: errorMessage })] }));
40
40
  };
41
41
  export default React.memo(VerifyAndRedirect);
@@ -166,6 +166,7 @@ export var updateLeadSuccess = createAsyncThunk('updateLeadSuccess', function (p
166
166
  var initialState = {
167
167
  error: null,
168
168
  loading: false,
169
+ customLoading: false,
169
170
  data: {
170
171
  verify: {
171
172
  token: ''
@@ -198,10 +199,12 @@ export var bankSlice = createSlice({
198
199
  builder
199
200
  .addCase(verifyLeadToken.pending, function (state) {
200
201
  state.error = null;
202
+ state.customLoading = true;
201
203
  })
202
204
  .addCase(verifyLeadToken.fulfilled, function (state, action) {
203
205
  var _a;
204
206
  state.error = null;
207
+ state.customLoading = false;
205
208
  var _b = action.payload, data = _b.data, token = _b.token, leadData = _b.leadData;
206
209
  var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
207
210
  if (description) {
@@ -213,6 +216,7 @@ export var bankSlice = createSlice({
213
216
  })
214
217
  .addCase(verifyLeadToken.rejected, function (state, action) {
215
218
  state.error = action.error.message;
219
+ state.customLoading = false;
216
220
  })
217
221
  .addCase(verifyBankLeadOTP.pending, function (state) {
218
222
  state.loading = true;
@@ -29,7 +29,11 @@ export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
29
29
  }, {}>;
30
30
  export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<{
31
31
  data: any;
32
- }, void, {}>;
32
+ licenseNumber: string;
33
+ }, {
34
+ leadId: string;
35
+ licenseNumber: string;
36
+ }, {}>;
33
37
  export declare const updateLeadBusinessType: import("@reduxjs/toolkit").AsyncThunk<{
34
38
  data: any;
35
39
  formData: BusinessTypeFormValues;
@@ -58,7 +62,10 @@ export declare const updateCustomersInfo: import("@reduxjs/toolkit").AsyncThunk<
58
62
  export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
59
63
  response: any;
60
64
  formData: void;
61
- }, void, {}>;
65
+ } | undefined, void, {}>;
66
+ export declare const updateStepName: import("@reduxjs/toolkit").AsyncThunk<{
67
+ response: any;
68
+ }, string, {}>;
62
69
  declare type VerifyData = {
63
70
  token: string;
64
71
  };