@tap-payments/auth-jsconnect 2.1.9-test → 2.1.11-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.
Files changed (74) hide show
  1. package/build/@types/form.d.ts +4 -3
  2. package/build/api/board.d.ts +1 -0
  3. package/build/api/board.js +8 -1
  4. package/build/api/entity.d.ts +1 -1
  5. package/build/api/index.d.ts +1 -0
  6. package/build/assets/locales/ar.json +7 -0
  7. package/build/assets/locales/en.json +7 -0
  8. package/build/components/FileInput/DragAndDrop.d.ts +3 -2
  9. package/build/components/FileInput/DragAndDrop.js +4 -4
  10. package/build/components/Lottie/Lottie.d.ts +2924 -127
  11. package/build/components/Lottie/Lottie.js +8 -4
  12. package/build/components/Lottie/files/error.json +692 -0
  13. package/build/components/Lottie/files/start_loading.json +1140 -0
  14. package/build/components/Lottie/files/still_loading.json +1140 -0
  15. package/build/constants/validation.d.ts +1 -0
  16. package/build/constants/validation.js +1 -0
  17. package/build/features/app/bank/bankStore.js +13 -10
  18. package/build/features/app/business/businessStore.d.ts +8 -1
  19. package/build/features/app/business/businessStore.js +123 -66
  20. package/build/features/app/connect/connectStore.d.ts +1 -1
  21. package/build/features/app/connect/connectStore.js +47 -38
  22. package/build/features/app/entity/entityStore.js +37 -42
  23. package/build/features/app/individual/individualStore.js +47 -38
  24. package/build/features/app/password/passwordStore.js +19 -20
  25. package/build/features/app/tax/taxStore.js +13 -10
  26. package/build/features/bank/screens/BankDetails/BankDetails.js +13 -6
  27. package/build/features/bank/screens/BankDetails/BankStatement.js +14 -11
  28. package/build/features/bank/screens/BankDetails/validation.d.ts +22 -0
  29. package/build/features/bank/screens/BankDetails/validation.js +29 -2
  30. package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
  31. package/build/features/business/screens/BusinessType/Article.js +89 -0
  32. package/build/features/business/screens/BusinessType/BusinessType.js +16 -10
  33. package/build/features/business/screens/BusinessType/EntityName.js +1 -1
  34. package/build/features/business/screens/BusinessType/LicenseCertificate.js +14 -9
  35. package/build/features/business/screens/BusinessType/LicenseList.js +3 -2
  36. package/build/features/business/screens/BusinessType/LicenseType.js +3 -3
  37. package/build/features/business/screens/BusinessType/validation.js +17 -8
  38. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  39. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +9 -134
  40. package/build/features/connect/screens/Merchant/Merchant.js +4 -24
  41. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -5
  42. package/build/features/connect/screens/Merchant/SalesChannels.js +29 -99
  43. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  44. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +9 -73
  45. package/build/features/entity/screens/EntityInfoConfirm/Article.js +14 -11
  46. package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
  47. package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
  48. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACILoading.d.ts +1 -0
  49. package/build/features/shared/PaciVerification/VerifyPACILoading.js +13 -0
  50. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.d.ts +0 -0
  51. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.js +1 -1
  52. package/build/features/shared/PaciVerification/index.d.ts +2 -0
  53. package/build/features/shared/PaciVerification/index.js +2 -0
  54. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
  55. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
  56. package/build/features/shared/SalesChannels/SalesChannel.d.ts +10 -0
  57. package/build/features/shared/SalesChannels/SalesChannel.js +132 -0
  58. package/build/features/shared/SalesChannels/index.d.ts +2 -0
  59. package/build/features/shared/SalesChannels/index.js +2 -0
  60. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -2
  61. package/build/features/shared/UploadFile/UploadFile.js +13 -13
  62. package/build/hooks/index.d.ts +1 -0
  63. package/build/hooks/index.js +1 -0
  64. package/build/hooks/useCountUp.d.ts +9 -0
  65. package/build/hooks/useCountUp.js +17 -0
  66. package/package.json +1 -1
  67. package/build/components/Lottie/files/pulsating_circle_waves.json +0 -236
  68. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  69. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -8
  70. package/build/features/connect/screens/Merchant/SocialMedia.js +0 -156
  71. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -6
  72. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  73. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
  74. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
@@ -40,9 +40,10 @@ export declare type BusinessTypeFormValues = {
40
40
  licenseNumber: string;
41
41
  entityLegalName?: string;
42
42
  selectedLicense?: License;
43
- certificateId?: string;
44
- certificateFile?: File;
45
- uploading?: boolean;
43
+ certificateId?: Array<string>;
44
+ certificateFile?: Array<File>;
45
+ articleId?: string;
46
+ articleFile?: File;
46
47
  };
47
48
  export declare type ActivitiesFormValues = {
48
49
  activities: Array<Activity> | undefined;
@@ -22,5 +22,6 @@ declare const boardService: {
22
22
  retrieveBoardInfo: ({ id, infoId }: RetrieveBoardInfoBody) => Promise<any>;
23
23
  updateBoardInfo: ({ id, infoId, ...data }: UpdateBoardInfoBody) => Promise<any>;
24
24
  retrieveBoardDetails: (id: string) => Promise<any>;
25
+ retrieveBoardInfoStatus: (id: string) => Promise<any>;
25
26
  };
26
27
  export { boardService };
@@ -18,6 +18,12 @@ var retrieveBoardInfo = function (_a) {
18
18
  url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/info/collect/").concat(infoId)
19
19
  });
20
20
  };
21
+ var retrieveBoardInfoStatus = function (id) {
22
+ return httpClient({
23
+ method: 'get',
24
+ url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/info/status")
25
+ });
26
+ };
21
27
  var retrieveBoard = function (id) {
22
28
  return httpClient({
23
29
  method: 'get',
@@ -51,6 +57,7 @@ var boardService = {
51
57
  updateBoard: updateBoard,
52
58
  retrieveBoardInfo: retrieveBoardInfo,
53
59
  updateBoardInfo: updateBoardInfo,
54
- retrieveBoardDetails: retrieveBoardDetails
60
+ retrieveBoardDetails: retrieveBoardDetails,
61
+ retrieveBoardInfoStatus: retrieveBoardInfoStatus
55
62
  };
56
63
  export { boardService };
@@ -69,7 +69,7 @@ export declare type UpdateEntityBody = {
69
69
  id: string;
70
70
  action: string;
71
71
  }>;
72
- legal_name: {
72
+ legal_name?: {
73
73
  ar: string;
74
74
  en: string;
75
75
  };
@@ -97,6 +97,7 @@ declare const API: {
97
97
  retrieveBoardInfo: ({ id, infoId }: import("./board").RetrieveBoardInfoBody) => Promise<any>;
98
98
  updateBoardInfo: ({ id, infoId, ...data }: import("./board").UpdateBoardInfoBody) => Promise<any>;
99
99
  retrieveBoardDetails: (id: string) => Promise<any>;
100
+ retrieveBoardInfoStatus: (id: string) => Promise<any>;
100
101
  };
101
102
  userService: {
102
103
  retrieveUserInfo: (userId: string) => Promise<any>;
@@ -324,6 +324,13 @@
324
324
  "customer_base_name_hint": "customer_base_name_hint",
325
325
  "title_article": "Article",
326
326
  "article_of_association": "Article file. PDF, JPG or PNG files up to 5mb.",
327
+ "paci_verification_title_wait": "Please wait",
328
+ "paci_verification_title_check": "We are still checking",
329
+ "paci_verification_title_error": "We cannot confirm your authentication",
330
+ "paci_verification_description_wait": "This might take a moment...",
331
+ "paci_verification_description_check": "This might take a moment...",
332
+ "paci_verification_description_error": "Please try again.",
333
+ "paci_verification_redirection_message": "You will be redirected now",
327
334
  "commercial_reg_hint": "Commercial Registration",
328
335
  "homemaker_reg_hint": "Home Business"
329
336
  }
@@ -351,6 +351,13 @@
351
351
  "customer_base_name_hint": "customer_base_name_hint",
352
352
  "title_article": "Article",
353
353
  "article_of_association": "Article file. PDF, JPG or PNG files up to 5mb.",
354
+ "paci_verification_title_wait": "Please wait",
355
+ "paci_verification_title_check": "We are still checking",
356
+ "paci_verification_title_error": "We cannot confirm your authentication",
357
+ "paci_verification_description_wait": "This might take a moment...",
358
+ "paci_verification_description_check": "This might take a moment...",
359
+ "paci_verification_description_error": "Please try again.",
360
+ "paci_verification_redirection_message": "You will be redirected now",
354
361
  "commercial_reg_hint": "Commercial Registration",
355
362
  "homemaker_reg_hint": "Home Business"
356
363
  }
@@ -10,7 +10,8 @@ interface DragAndDropProps {
10
10
  uploading?: boolean;
11
11
  uploadSuccess?: boolean;
12
12
  fileExists: boolean;
13
- onSuccess?: (files: File) => void;
13
+ onSuccess?: (files: Array<File>) => void;
14
+ multiple?: boolean;
14
15
  }
15
- declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, progress, uploading, fileExists, uploadSuccess, onSuccess }: DragAndDropProps) => JSX.Element;
16
+ declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, progress, uploading, fileExists, uploadSuccess, onSuccess, multiple }: DragAndDropProps) => JSX.Element;
16
17
  export default DragAndDrop;
@@ -102,14 +102,14 @@ var WarningContainer = styled(Box)(function (_a) {
102
102
  return (__assign({ background: theme.palette.warning.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', display: 'flex', justifyContent: 'space-around', borderColor: theme.palette.warning.main, color: theme.palette.warning.light, padding: theme.spacing(0.5, 1), borderRadius: theme.spacing(12.5) }, theme.typography.caption));
103
103
  });
104
104
  var DragAndDrop = function (_a) {
105
- var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, progress = _a.progress, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess;
105
+ var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, progress = _a.progress, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess, multiple = _a.multiple;
106
106
  var _b = React.useState(false), dragActive = _b[0], setDragActive = _b[1];
107
107
  var _c = React.useState(false), showDone = _c[0], setShowDone = _c[1];
108
108
  var _d = useDropzone({
109
- maxFiles: 1,
109
+ maxFiles: multiple ? undefined : 1,
110
110
  noKeyboard: true,
111
111
  noClick: false,
112
- multiple: false,
112
+ multiple: multiple || false,
113
113
  onDragOver: function () {
114
114
  if (!dragActive)
115
115
  setDragActive(true);
@@ -118,7 +118,7 @@ var DragAndDrop = function (_a) {
118
118
  setDragActive(false);
119
119
  },
120
120
  onDrop: function (files) {
121
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files === null || files === void 0 ? void 0 : files[0]);
121
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files);
122
122
  setDragActive(false);
123
123
  }
124
124
  }), getRootProps = _d.getRootProps, getInputProps = _d.getInputProps;