@tap-payments/auth-jsconnect 2.0.49-test → 2.0.51-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 (80) hide show
  1. package/build/@types/app.d.ts +6 -4
  2. package/build/@types/app.js +2 -2
  3. package/build/@types/form.d.ts +3 -0
  4. package/build/api/auth.d.ts +6 -1
  5. package/build/api/auth.js +16 -1
  6. package/build/api/data.d.ts +4 -1
  7. package/build/api/data.js +6 -2
  8. package/build/api/index.d.ts +4 -1
  9. package/build/assets/locales/ar.json +7 -1
  10. package/build/assets/locales/en.json +7 -1
  11. package/build/components/AnimationFlow/AnimationFlow.js +3 -5
  12. package/build/components/AnimationFlow/BottomSheet.js +2 -1
  13. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  14. package/build/components/AnimationFlow/Dialog.js +2 -2
  15. package/build/components/FileInput/DragAndDrop.d.ts +9 -1
  16. package/build/components/FileInput/DragAndDrop.js +113 -8
  17. package/build/components/Lottie/Lottie.d.ts +220 -0
  18. package/build/components/Lottie/Lottie.js +56 -0
  19. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
  20. package/build/components/Lottie/index.d.ts +3 -0
  21. package/build/components/Lottie/index.js +3 -0
  22. package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
  23. package/build/components/ProgressBar/CircularProgressBar.js +48 -0
  24. package/build/components/ProgressBar/index.d.ts +2 -0
  25. package/build/components/ProgressBar/index.js +2 -0
  26. package/build/constants/api.js +1 -1
  27. package/build/constants/app.d.ts +1 -0
  28. package/build/constants/app.js +16 -3
  29. package/build/constants/assets.d.ts +7 -0
  30. package/build/constants/assets.js +7 -0
  31. package/build/constants/validation.d.ts +1 -0
  32. package/build/constants/validation.js +1 -0
  33. package/build/features/app/bank/bankStore.d.ts +4 -0
  34. package/build/features/app/bank/bankStore.js +42 -22
  35. package/build/features/app/business/businessStore.js +16 -12
  36. package/build/features/app/connect/connectStore.d.ts +9 -1
  37. package/build/features/app/connect/connectStore.js +115 -13
  38. package/build/features/app/entity/entityStore.js +13 -9
  39. package/build/features/bank/screens/BankDetails/BankDetails.js +2 -2
  40. package/build/features/bank/screens/BankDetails/BankStatement.js +33 -8
  41. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  42. package/build/features/business/screens/Activities/SalesChannels.js +1 -1
  43. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  44. package/build/features/connect/Connect.js +11 -5
  45. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
  46. package/build/features/connect/screens/CivilID/CivilID.js +85 -0
  47. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
  48. package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
  49. package/build/features/connect/screens/CivilID/index.d.ts +3 -0
  50. package/build/features/connect/screens/CivilID/index.js +2 -0
  51. package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
  52. package/build/features/connect/screens/CivilID/validation.js +4 -0
  53. package/build/features/connect/screens/Individual/Individual.js +5 -2
  54. package/build/features/connect/screens/Merchant/Merchant.js +7 -4
  55. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  56. package/build/features/connect/screens/Merchant/SocialMedia.js +7 -7
  57. package/build/features/connect/screens/Mobile/Mobile.js +7 -4
  58. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  59. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +118 -0
  60. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
  61. package/build/features/connect/screens/VerifyPACI/index.js +2 -0
  62. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -1
  63. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +1 -1
  64. package/build/features/featuresScreens.js +10 -0
  65. package/build/features/shared/Background/Background.d.ts +2 -5
  66. package/build/features/shared/Background/Background.js +6 -4
  67. package/build/features/shared/Input/Input.d.ts +1 -1
  68. package/build/features/shared/Input/Input.js +2 -2
  69. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  70. package/build/features/shared/UploadFile/UploadFile.js +23 -8
  71. package/build/hooks/index.d.ts +1 -0
  72. package/build/hooks/index.js +1 -0
  73. package/build/hooks/useScreen.d.ts +3 -0
  74. package/build/hooks/useScreen.js +14 -0
  75. package/build/utils/device.d.ts +1 -0
  76. package/build/utils/device.js +13 -0
  77. package/build/utils/locale.js +1 -1
  78. package/build/utils/string.d.ts +2 -0
  79. package/build/utils/string.js +9 -0
  80. package/package.json +2 -1
@@ -0,0 +1,56 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { memo, useEffect, useRef } from 'react';
25
+ import lottie from 'lottie-web/build/player/lottie_light';
26
+ import pulsating_circle_waves from './files/pulsating_circle_waves.json';
27
+ export var LottieAnimationFiles = {
28
+ pulsating_circle_waves: pulsating_circle_waves
29
+ };
30
+ var LottieFile = function (_a) {
31
+ var file = _a.file, width = _a.width, height = _a.height, props = __rest(_a, ["file", "width", "height"]);
32
+ var lottieContainer = useRef(null);
33
+ useEffect(function () {
34
+ var anim;
35
+ if (lottieContainer.current) {
36
+ anim = lottie.loadAnimation({
37
+ container: lottieContainer.current,
38
+ renderer: 'svg',
39
+ loop: true,
40
+ autoplay: true,
41
+ animationData: file
42
+ });
43
+ }
44
+ return function () {
45
+ anim.destroy();
46
+ };
47
+ }, []);
48
+ return (_jsx(_Fragment, { children: _jsx("div", __assign({ ref: lottieContainer, style: {
49
+ width: width || '100%',
50
+ height: height || '100%'
51
+ }, className: "".concat(props.className ? props.className : '') }, props)) }));
52
+ };
53
+ LottieFile.defaultProps = {
54
+ file: LottieAnimationFiles.pulsating_circle_waves
55
+ };
56
+ export default memo(LottieFile);
@@ -0,0 +1,236 @@
1
+ {
2
+ "v": "5.7.6",
3
+ "fr": 60,
4
+ "ip": 0,
5
+ "op": 148,
6
+ "w": 530,
7
+ "h": 530,
8
+ "nm": "Searching",
9
+ "ddd": 0,
10
+ "assets": [],
11
+ "layers": [
12
+ {
13
+ "ddd": 0,
14
+ "ind": 1,
15
+ "ty": 4,
16
+ "nm": "line 2",
17
+ "sr": 1,
18
+ "ks": {
19
+ "o": {
20
+ "a": 1,
21
+ "k": [
22
+ { "i": { "x": [0.667], "y": [1] }, "o": { "x": [0.333], "y": [0] }, "t": 30, "s": [100] },
23
+ { "i": { "x": [0.667], "y": [1] }, "o": { "x": [0.333], "y": [0] }, "t": 97.184, "s": [100] },
24
+ { "t": 169, "s": [0] }
25
+ ],
26
+ "ix": 11
27
+ },
28
+ "r": { "a": 0, "k": 0, "ix": 10 },
29
+ "p": { "a": 0, "k": [264.5, 263.5, 0], "ix": 2, "l": 2 },
30
+ "a": { "a": 0, "k": [0.5, -100, 0], "ix": 1, "l": 2 },
31
+ "s": {
32
+ "a": 1,
33
+ "k": [
34
+ {
35
+ "i": { "x": [0.667, 0.667, 0.667], "y": [1, 1, 1] },
36
+ "o": { "x": [0.333, 0.333, 0.333], "y": [0, 0, 0] },
37
+ "t": 30,
38
+ "s": [30, 30, 100]
39
+ },
40
+ { "t": 169, "s": [240, 240, 100] }
41
+ ],
42
+ "ix": 6,
43
+ "l": 2
44
+ }
45
+ },
46
+ "ao": 0,
47
+ "shapes": [
48
+ {
49
+ "ty": "gr",
50
+ "it": [
51
+ {
52
+ "ind": 0,
53
+ "ty": "sh",
54
+ "ix": 1,
55
+ "ks": {
56
+ "a": 0,
57
+ "k": {
58
+ "i": [
59
+ [60.564, 0],
60
+ [0, -60.564],
61
+ [-60.564, 0],
62
+ [0, 60.564]
63
+ ],
64
+ "o": [
65
+ [-60.564, 0],
66
+ [0, 60.564],
67
+ [60.564, 0],
68
+ [0, -60.564]
69
+ ],
70
+ "v": [
71
+ [0, -109.66],
72
+ [-109.66, 0],
73
+ [0, 109.66],
74
+ [109.66, 0]
75
+ ],
76
+ "c": true
77
+ },
78
+ "ix": 2
79
+ },
80
+ "nm": "Path 1",
81
+ "mn": "ADBE Vector Shape - Group",
82
+ "hd": false
83
+ },
84
+ {
85
+ "ty": "st",
86
+ "c": { "a": 0, "k": [0.901960784314, 0.905882352941, 0.905882352941, 1], "ix": 3 },
87
+ "o": { "a": 0, "k": 100, "ix": 4 },
88
+ "w": { "a": 0, "k": 1, "ix": 5 },
89
+ "lc": 1,
90
+ "lj": 1,
91
+ "ml": 4,
92
+ "bm": 0,
93
+ "nm": "Stroke 1",
94
+ "mn": "ADBE Vector Graphic - Stroke",
95
+ "hd": false
96
+ },
97
+ {
98
+ "ty": "tr",
99
+ "p": { "a": 0, "k": [0.5, -100], "ix": 2 },
100
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
101
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
102
+ "r": { "a": 0, "k": 0, "ix": 6 },
103
+ "o": { "a": 0, "k": 100, "ix": 7 },
104
+ "sk": { "a": 0, "k": 0, "ix": 4 },
105
+ "sa": { "a": 0, "k": 0, "ix": 5 },
106
+ "nm": "Transform"
107
+ }
108
+ ],
109
+ "nm": "Ellipse 1",
110
+ "np": 3,
111
+ "cix": 2,
112
+ "bm": 0,
113
+ "ix": 1,
114
+ "mn": "ADBE Vector Group",
115
+ "hd": false
116
+ }
117
+ ],
118
+ "ip": 30,
119
+ "op": 148,
120
+ "st": 30,
121
+ "bm": 0
122
+ },
123
+ {
124
+ "ddd": 0,
125
+ "ind": 2,
126
+ "ty": 4,
127
+ "nm": "line",
128
+ "sr": 1,
129
+ "ks": {
130
+ "o": {
131
+ "a": 1,
132
+ "k": [
133
+ { "i": { "x": [0.667], "y": [1] }, "o": { "x": [0.333], "y": [0] }, "t": 0, "s": [100] },
134
+ { "i": { "x": [0.667], "y": [1] }, "o": { "x": [0.333], "y": [0] }, "t": 67.184, "s": [100] },
135
+ { "t": 139, "s": [0] }
136
+ ],
137
+ "ix": 11
138
+ },
139
+ "r": { "a": 0, "k": 0, "ix": 10 },
140
+ "p": { "a": 0, "k": [264.5, 263.5, 0], "ix": 2, "l": 2 },
141
+ "a": { "a": 0, "k": [0.5, -100, 0], "ix": 1, "l": 2 },
142
+ "s": {
143
+ "a": 1,
144
+ "k": [
145
+ {
146
+ "i": { "x": [0.667, 0.667, 0.667], "y": [1, 1, 1] },
147
+ "o": { "x": [0.333, 0.333, 0.333], "y": [0, 0, 0] },
148
+ "t": 0,
149
+ "s": [30, 30, 100]
150
+ },
151
+ { "t": 139, "s": [240, 240, 100] }
152
+ ],
153
+ "ix": 6,
154
+ "l": 2
155
+ }
156
+ },
157
+ "ao": 0,
158
+ "shapes": [
159
+ {
160
+ "ty": "gr",
161
+ "it": [
162
+ {
163
+ "ind": 0,
164
+ "ty": "sh",
165
+ "ix": 1,
166
+ "ks": {
167
+ "a": 0,
168
+ "k": {
169
+ "i": [
170
+ [60.564, 0],
171
+ [0, -60.564],
172
+ [-60.564, 0],
173
+ [0, 60.564]
174
+ ],
175
+ "o": [
176
+ [-60.564, 0],
177
+ [0, 60.564],
178
+ [60.564, 0],
179
+ [0, -60.564]
180
+ ],
181
+ "v": [
182
+ [0, -109.66],
183
+ [-109.66, 0],
184
+ [0, 109.66],
185
+ [109.66, 0]
186
+ ],
187
+ "c": true
188
+ },
189
+ "ix": 2
190
+ },
191
+ "nm": "Path 1",
192
+ "mn": "ADBE Vector Shape - Group",
193
+ "hd": false
194
+ },
195
+ {
196
+ "ty": "st",
197
+ "c": { "a": 0, "k": [0.901960784314, 0.905882352941, 0.905882352941, 1], "ix": 3 },
198
+ "o": { "a": 0, "k": 100, "ix": 4 },
199
+ "w": { "a": 0, "k": 1, "ix": 5 },
200
+ "lc": 1,
201
+ "lj": 1,
202
+ "ml": 4,
203
+ "bm": 0,
204
+ "nm": "Stroke 1",
205
+ "mn": "ADBE Vector Graphic - Stroke",
206
+ "hd": false
207
+ },
208
+ {
209
+ "ty": "tr",
210
+ "p": { "a": 0, "k": [0.5, -100], "ix": 2 },
211
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
212
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
213
+ "r": { "a": 0, "k": 0, "ix": 6 },
214
+ "o": { "a": 0, "k": 100, "ix": 7 },
215
+ "sk": { "a": 0, "k": 0, "ix": 4 },
216
+ "sa": { "a": 0, "k": 0, "ix": 5 },
217
+ "nm": "Transform"
218
+ }
219
+ ],
220
+ "nm": "Ellipse 1",
221
+ "np": 3,
222
+ "cix": 2,
223
+ "bm": 0,
224
+ "ix": 1,
225
+ "mn": "ADBE Vector Group",
226
+ "hd": false
227
+ }
228
+ ],
229
+ "ip": 0,
230
+ "op": 148,
231
+ "st": 0,
232
+ "bm": 0
233
+ }
234
+ ],
235
+ "markers": []
236
+ }
@@ -0,0 +1,3 @@
1
+ import LottieFile from './Lottie';
2
+ export default LottieFile;
3
+ export { LottieAnimationFiles } from './Lottie';
@@ -0,0 +1,3 @@
1
+ import LottieFile from './Lottie';
2
+ export default LottieFile;
3
+ export { LottieAnimationFiles } from './Lottie';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { CircularProgressProps } from '@mui/material/CircularProgress';
3
+ export interface CircularProps extends CircularProgressProps {
4
+ size: number;
5
+ value: number;
6
+ }
7
+ declare function CircularProgressWithLabel({ size, value, ...props }: CircularProps): JSX.Element;
8
+ declare namespace CircularProgressWithLabel {
9
+ var defaultProps: {
10
+ size: number;
11
+ value: number;
12
+ };
13
+ }
14
+ export default CircularProgressWithLabel;
@@ -0,0 +1,48 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import CircularProgress from '@mui/material/CircularProgress';
25
+ import Typography from '@mui/material/Typography';
26
+ import Box from '@mui/material/Box';
27
+ import { styled } from '@mui/material/styles';
28
+ var BoxStyled = styled(Box)(function (_a) {
29
+ var theme = _a.theme;
30
+ return ({
31
+ display: 'flex',
32
+ alignItems: 'center',
33
+ justifyContent: 'center',
34
+ top: 0,
35
+ left: 0,
36
+ bottom: 0,
37
+ right: 0,
38
+ position: 'absolute'
39
+ });
40
+ });
41
+ export default function CircularProgressWithLabel(_a) {
42
+ var size = _a.size, value = _a.value, props = __rest(_a, ["size", "value"]);
43
+ return (_jsxs(Box, __assign({ sx: { position: 'relative', display: 'inline-flex' } }, { children: [_jsx(CircularProgress, __assign({ variant: 'determinate', size: size, value: value }, props)), _jsx(BoxStyled, { children: _jsx(Typography, __assign({ variant: 'caption', component: 'div', color: 'text.primary' }, { children: "".concat(Math.round(value), "%") })) })] })));
44
+ }
45
+ CircularProgressWithLabel.defaultProps = {
46
+ size: 54,
47
+ value: 0
48
+ };
@@ -1,4 +1,6 @@
1
1
  import ProgressBar from './ProgressBar';
2
2
  import { ProgressBarProps } from './ProgressBar';
3
+ import CircularProgress from './CircularProgressBar';
4
+ export { CircularProgress };
3
5
  export type { ProgressBarProps };
4
6
  export default ProgressBar;
@@ -1,2 +1,4 @@
1
1
  import ProgressBar from './ProgressBar';
2
+ import CircularProgress from './CircularProgressBar';
3
+ export { CircularProgress };
2
4
  export default ProgressBar;
@@ -15,7 +15,7 @@ var IBAN_PATH = '/iban';
15
15
  var CHECK_EMAIL = '/individual/email/availability';
16
16
  var CHECK_BRAND = '/brand/name/check';
17
17
  var CREATE_ACCOUNT_PATH = '/account';
18
- var CHANNEL_PATH = '/v2/channel';
18
+ var CHANNEL_PATH = '/v2/channel1';
19
19
  var CUSTOMER_BASES_PATH = '/v2/customerBases';
20
20
  var SALES_PATH = '/v2/sales';
21
21
  var EXPECTED_CUSTOMERS_PATH = '/v2/expectedCustomers';
@@ -76,6 +76,7 @@ export declare const IDENTIFICATION_TYPE: {
76
76
  };
77
77
  export declare const CONNECT_STEP_NAMES: {
78
78
  CREATE_AUTH_MOBILE: string;
79
+ CREATE_AUTH_CIVIL_ID: string;
79
80
  VERIFY_AUTH_MOBILE: string;
80
81
  CREATE_AUTH_NID: string;
81
82
  VERIFY_AUTH_NID: string;
@@ -21,10 +21,22 @@ export var CONNECT_SCREENS_NAVIGATION = [
21
21
  prev: 'CONNECT_MOBILE_STEP',
22
22
  order: 1
23
23
  },
24
+ {
25
+ name: 'CONNECT_CIVIL_ID_STEP',
26
+ next: 'CONNECT_VERIFY_PACI_STEP',
27
+ prev: 'CONNECT_MOBILE_STEP',
28
+ order: 1
29
+ },
24
30
  {
25
31
  name: 'CONNECT_MOBILE_STEP',
26
32
  next: 'CONNECT_OTP_STEP',
27
- prev: 'CONNECT_NID_STEP',
33
+ prev: ['CONNECT_NID_STEP', 'CONNECT_ID_STEP', 'CONNECT_CIVIL_ID_STEP'],
34
+ order: 1
35
+ },
36
+ {
37
+ name: 'CONNECT_VERIFY_PACI_STEP',
38
+ next: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_MERCHANT_INFO_STEP'],
39
+ prev: 'CONNECT_CIVIL_ID_STEP',
28
40
  order: 1
29
41
  },
30
42
  {
@@ -36,13 +48,13 @@ export var CONNECT_SCREENS_NAVIGATION = [
36
48
  {
37
49
  name: 'CONNECT_INDIVIDUAL_STEP',
38
50
  next: 'CONNECT_MERCHANT_INFO_STEP',
39
- prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
51
+ prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_ID_STEP'],
40
52
  order: 3
41
53
  },
42
54
  {
43
55
  name: 'CONNECT_MERCHANT_INFO_STEP',
44
56
  next: 'CONNECT_THANK_YOU_STEP',
45
- prev: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP'],
57
+ prev: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP', 'CONNECT_ID_STEP'],
46
58
  order: 4
47
59
  },
48
60
  {
@@ -381,6 +393,7 @@ export var IDENTIFICATION_TYPE = {
381
393
  };
382
394
  export var CONNECT_STEP_NAMES = {
383
395
  CREATE_AUTH_MOBILE: 'connect_create_auth_mobile',
396
+ CREATE_AUTH_CIVIL_ID: 'connect_create_auth_civil_id',
384
397
  VERIFY_AUTH_MOBILE: 'connect_verify_auth_mobile',
385
398
  CREATE_AUTH_NID: 'connect_create_auth_nid',
386
399
  VERIFY_AUTH_NID: 'connect_verify_auth_nid',
@@ -36,6 +36,7 @@ export declare const ICONS_NAMES: {
36
36
  TAP_LOGO_EN_ICON: string;
37
37
  TAP_LOGO_TEXT_AR: string;
38
38
  TAP_LOGO_TEXT_EN: string;
39
+ PACI_VERIFY_ICON: string;
39
40
  TAP_EN: string;
40
41
  TAP_AR: string;
41
42
  ID_IMAGE: string;
@@ -50,6 +51,12 @@ export declare const ICONS_NAMES: {
50
51
  SEARCH_ICON: string;
51
52
  SUCCESS_GIF: string;
52
53
  DELETE_ICON: string;
54
+ UPLOAD_ICON: string;
55
+ ACTIVE_UPLOAD_ICON: string;
56
+ WARNING_ICON: string;
57
+ DONE_ICON: string;
58
+ DOC_ICON: string;
59
+ DROP_FILE_ICON: string;
53
60
  CLOSE_ICON: string;
54
61
  GMAIL_Filled_ICON: string;
55
62
  GMAIL_White_ICON: string;
@@ -36,6 +36,7 @@ export var ICONS_NAMES = {
36
36
  TAP_LOGO_EN_ICON: ICONS_FULL_PATH + '/tap-white-logo' + ICONS_EXTENSION,
37
37
  TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' + ICONS_EXTENSION,
38
38
  TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' + ICONS_EXTENSION,
39
+ PACI_VERIFY_ICON: ICONS_FULL_PATH + '/PACI_verify_icon' + '.png',
39
40
  TAP_EN: 'https://tap-connecet.b-cdn.net/imgs/tapEN' + ICONS_EXTENSION,
40
41
  TAP_AR: 'https://tap-connecet.b-cdn.net/imgs/tapAR' + ICONS_EXTENSION,
41
42
  ID_IMAGE: 'https://villageofwarwick.org/wp-content/uploads/2020/02/ICON99-512-1.png',
@@ -50,6 +51,12 @@ export var ICONS_NAMES = {
50
51
  SEARCH_ICON: 'https://dash.b-cdn.net/icons/menu/search-icon.svg',
51
52
  SUCCESS_GIF: 'https://dash.b-cdn.net/icons/menu/success_icon.gif',
52
53
  DELETE_ICON: 'https://dash.b-cdn.net/icons/menu/delete-icon.png',
54
+ UPLOAD_ICON: 'https://dash.b-cdn.net/icons/menu/upload-file.svg',
55
+ ACTIVE_UPLOAD_ICON: 'https://dash.b-cdn.net/icons/menu/active-upload-icon.png',
56
+ WARNING_ICON: 'https://dash.b-cdn.net/icons/menu/warning-icon.svg',
57
+ DONE_ICON: 'https://dash.b-cdn.net/icons/menu/done.svg',
58
+ DOC_ICON: 'https://dash.b-cdn.net/icons/menu/document-icon.svg',
59
+ DROP_FILE_ICON: 'https://dash.b-cdn.net/icons/menu/upload-file-sample.svg',
53
60
  CLOSE_ICON: 'https://dash.b-cdn.net/icons/menu/close-btn.svg',
54
61
  GMAIL_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-filled.svg',
55
62
  GMAIL_White_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-white.svg',
@@ -1,4 +1,5 @@
1
1
  export declare const ID_NUMBER_LENGTH = 10;
2
+ export declare const CIVIL_ID_NUMBER_LENGTH = 15;
2
3
  export declare const DEFAULT_TIMER_VALUE = 59;
3
4
  export declare const VAT_ID_LENGTH = 15;
4
5
  export declare const MAX_IBAN_VALUE = 34;
@@ -1,4 +1,5 @@
1
1
  export var ID_NUMBER_LENGTH = 10;
2
+ export var CIVIL_ID_NUMBER_LENGTH = 15;
2
3
  export var DEFAULT_TIMER_VALUE = 59;
3
4
  export var VAT_ID_LENGTH = 15;
4
5
  export var MAX_IBAN_VALUE = 34;
@@ -33,6 +33,9 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
33
33
  cancelToken: CancelToken;
34
34
  onSuccess?: (() => void) | undefined;
35
35
  }, {}>;
36
+ export declare const uploadBankStatement: import("@reduxjs/toolkit").AsyncThunk<{
37
+ data: any;
38
+ }, File, {}>;
36
39
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
37
40
  response: any;
38
41
  formData: void;
@@ -48,6 +51,7 @@ export interface BankData {
48
51
  }
49
52
  export interface BankState extends SharedState<BankData> {
50
53
  customLoading?: boolean;
54
+ uploading?: boolean;
51
55
  }
52
56
  export declare const bankSlice: import("@reduxjs/toolkit").Slice<BankState, {
53
57
  clearError: (state: BankState) => void;
@@ -157,46 +157,33 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveBankEntityInfo', fun
157
157
  });
158
158
  }); });
159
159
  export var createBankAccount = createAsyncThunk('createBankAccount', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
160
- var _a, settings, bank, iban, beneficiaryName, bank_name, fileResponse, uploadPayload, requestBody, data;
161
- var _b, _c, _d, _e, _f, _g, _h, _j;
162
- return __generator(this, function (_k) {
163
- switch (_k.label) {
160
+ var _a, settings, bank, iban, beneficiaryName, bank_name, requestBody, data;
161
+ var _b, _c, _d, _e, _f, _g, _h;
162
+ return __generator(this, function (_j) {
163
+ switch (_j.label) {
164
164
  case 0:
165
165
  _a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
166
166
  iban = params.iban;
167
167
  beneficiaryName = params.beneficiaryName;
168
168
  bank_name = params.bankName;
169
- fileResponse = undefined;
170
- uploadPayload = {
171
- file_link_create: true,
172
- title: (_b = params.bankStatementFile) === null || _b === void 0 ? void 0 : _b.name,
173
- purpose: 'identity_document',
174
- file: params.bankStatementFile
175
- };
176
- if (!params.bankStatementFile) return [3, 2];
177
- return [4, API.entityService.uploadFileInfo(uploadPayload)];
178
- case 1:
179
- fileResponse = _k.sent();
180
- _k.label = 2;
181
- case 2:
182
169
  requestBody = {
183
- wallet_id: (_g = (_f = (_e = (_d = (_c = bank.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.business) === null || _d === void 0 ? void 0 : _d.entity) === null || _e === void 0 ? void 0 : _e.merchant) === null || _f === void 0 ? void 0 : _f.wallet) === null || _g === void 0 ? void 0 : _g.id,
170
+ wallet_id: (_f = (_e = (_d = (_c = (_b = bank.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.entity) === null || _d === void 0 ? void 0 : _d.merchant) === null || _e === void 0 ? void 0 : _e.wallet) === null || _f === void 0 ? void 0 : _f.id,
184
171
  bank_account: {
185
172
  iban: iban,
186
173
  beneficiary_name: beneficiaryName,
187
174
  bank_name: bank_name,
188
- bank_statement_file_id: fileResponse === null || fileResponse === void 0 ? void 0 : fileResponse.id,
175
+ bank_statement_file_id: params.bankStatementFile ? bank.data.bankData.bankStatementId : undefined,
189
176
  is_acknowledged: params.confirmPolicy
190
177
  },
191
178
  step_name: BANK_STEP_NAMES.BANK_INFO,
192
179
  encryption_contract: ['bank_account.iban', 'bank_account.beneficiary_name', 'bank_account.bank_name']
193
180
  };
194
181
  return [4, API.entityService.createBankAccount(requestBody)];
195
- case 3:
196
- data = (_k.sent()).data;
182
+ case 1:
183
+ data = (_j.sent()).data;
197
184
  if (!data.errors) {
198
185
  thunkApi.dispatch(handleNextScreenStep());
199
- (_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, requestBody);
186
+ (_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, requestBody);
200
187
  }
201
188
  return [2, { data: data, formData: params }];
202
189
  }
@@ -222,6 +209,24 @@ export var checkIbanBank = createAsyncThunk('checkIbanBank', function (_a) {
222
209
  });
223
210
  });
224
211
  });
212
+ export var uploadBankStatement = createAsyncThunk('uploadBankStatement', function (file) { return __awaiter(void 0, void 0, void 0, function () {
213
+ var uploadPayload, data;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ uploadPayload = {
218
+ file_link_create: true,
219
+ title: file === null || file === void 0 ? void 0 : file.name,
220
+ purpose: 'identity_document',
221
+ file: file
222
+ };
223
+ return [4, API.entityService.uploadFileInfo(uploadPayload)];
224
+ case 1:
225
+ data = _a.sent();
226
+ return [2, { data: data }];
227
+ }
228
+ });
229
+ }); });
225
230
  export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
226
231
  var _a, settings, bank, _b, id, infoId, payload, data;
227
232
  var _c, _d, _e, _f;
@@ -254,6 +259,7 @@ var initialState = {
254
259
  error: null,
255
260
  loading: false,
256
261
  customLoading: false,
262
+ uploading: false,
257
263
  data: {
258
264
  flowName: FlowsTypes.BANK,
259
265
  verify: {
@@ -414,6 +420,20 @@ export var bankSlice = createSlice({
414
420
  if (action.error.message === 'Aborted')
415
421
  return;
416
422
  state.error = action.error.message;
423
+ })
424
+ .addCase(uploadBankStatement.pending, function (state) {
425
+ state.error = null;
426
+ state.uploading = true;
427
+ })
428
+ .addCase(uploadBankStatement.fulfilled, function (state, action) {
429
+ state.error = null;
430
+ state.uploading = false;
431
+ var data = action.payload.data;
432
+ state.data.bankData.bankStatementId = data === null || data === void 0 ? void 0 : data.id;
433
+ })
434
+ .addCase(uploadBankStatement.rejected, function (state, action) {
435
+ state.uploading = false;
436
+ state.error = 'file_upload_error';
417
437
  });
418
438
  }
419
439
  });