@tap-payments/auth-jsconnect 1.0.89 → 1.0.90-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.
- package/README.md +77 -132
- package/build/api/account.js +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.d.ts +2 -0
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -3
- package/build/api/country.js +1 -1
- package/build/api/data.js +1 -1
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/index.js +2 -2
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/app/rootReducer.d.ts +7 -7
- package/build/app/rootReducer.js +7 -7
- package/build/app/settings.d.ts +3 -3
- package/build/app/settings.js +5 -5
- package/build/components/AnimationFlow/Dialog.js +2 -2
- package/build/components/Button/Button.d.ts +6 -1
- package/build/components/Button/Button.js +61 -23
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
- package/build/constants/api.d.ts +3 -1
- package/build/constants/api.js +6 -2
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/features/Landing/Landing.d.ts +1 -1
- package/build/features/Landing/Landing.js +8 -8
- package/build/features/Landing/screens/VerifyAndRedirect/VerifyAndRedirect.js +6 -6
- package/build/features/app/bank/bankStore.d.ts +2 -2
- package/build/features/app/bank/bankStore.js +4 -4
- package/build/features/app/business/businessStore.d.ts +4 -4
- package/build/features/app/business/businessStore.js +9 -9
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +10 -8
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +4 -4
- package/build/features/app/landing/landingStore.d.ts +2 -2
- package/build/features/app/landing/landingStore.js +1 -1
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +4 -4
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +14 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +11 -7
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/bank/screens/Verify/OTPInput.js +2 -2
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +14 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +8 -8
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +6 -6
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +7 -7
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/business/screens/Verify/OTPInput.js +2 -2
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +9 -9
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +7 -7
- package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +9 -9
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +3 -3
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +31 -31
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +14 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/individual/screens/Verify/OTPInput.js +2 -2
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +14 -10
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +11 -7
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/Success/Success.js +3 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/password/screens/Verify/OTPInput.js +2 -2
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +5 -5
- package/build/features/shared/Background/Background.js +3 -3
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +14 -36
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +15 -51
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.js +45 -45
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +12 -33
- package/build/features/shared/Button/SuccessButton.js +17 -15
- package/build/features/shared/Footer/Footer.js +6 -6
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +14 -10
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -8
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
- package/build/features/tax/screens/Verify/OTPInput.js +2 -2
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +13 -3
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +2 -2
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +7 -7
- package/build/index.js +7 -7
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +10 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +3 -3
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +18 -4
- package/package.json +4 -3
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -135
package/README.md
CHANGED
|
@@ -71,146 +71,91 @@ const App = () => {
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
### Vanilla JS
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
76
|
+
```js
|
|
77
|
+
<!DOCTYPE html>
|
|
78
|
+
<html lang="en">
|
|
79
|
+
<head>
|
|
80
|
+
<meta charset="utf-8" />
|
|
81
|
+
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
|
|
82
|
+
<title>Auth-JsConnect</title>
|
|
83
|
+
<script src="https://auth-jsconnect.b-cdn.net/build-1.0.90-test/main.js"></script>
|
|
84
|
+
<link href="https://auth-jsconnect.b-cdn.net/build-1.0.90-test/main.css" rel="stylesheet" />
|
|
85
|
+
</head>
|
|
86
|
+
<body>
|
|
87
|
+
<div id="root"></div>
|
|
88
|
+
<script>
|
|
89
|
+
const { renderConnectLib } = window.TapAuth
|
|
90
|
+
renderConnectLib(
|
|
91
|
+
{
|
|
92
|
+
open: true,
|
|
93
|
+
merchantDomain: window.location.origin,
|
|
94
|
+
publicKey: "pk_test_lat64TEDSvHrUOYAxVRe28PQ",
|
|
95
|
+
appInfo: {
|
|
96
|
+
identifier: "tap_connect_demo",
|
|
97
|
+
name: "Tap Connect Demo",
|
|
98
|
+
version: "V2.0.0"
|
|
99
|
+
},
|
|
100
|
+
businessCountryCode: "SA",
|
|
101
|
+
language: "en",
|
|
102
|
+
onError: (error) => {
|
|
103
|
+
alert(JSON.stringify({ error }))
|
|
104
|
+
},
|
|
105
|
+
onFlowCompleted: (data) => {
|
|
106
|
+
console.log(data)
|
|
107
|
+
},
|
|
108
|
+
onReady: () => {
|
|
109
|
+
console.log("ready!")
|
|
110
|
+
},
|
|
111
|
+
onStepCompleted: (name, data) => {
|
|
112
|
+
console.log(name, data)
|
|
113
|
+
},
|
|
114
|
+
onStepError: (name, error) => {
|
|
115
|
+
console.log(name, error)
|
|
116
|
+
},
|
|
117
|
+
onStepStarted: (name) => {
|
|
118
|
+
console.log(name)
|
|
119
|
+
},
|
|
120
|
+
scope: []
|
|
121
|
+
},
|
|
122
|
+
"root"
|
|
123
|
+
)
|
|
124
|
+
</script>
|
|
125
|
+
</body>
|
|
126
|
+
</html>
|
|
127
|
+
```
|
|
107
128
|
|
|
108
|
-
|
|
129
|
+
```
|
|
109
130
|
|
|
110
|
-
|
|
111
|
-
routes that include `HttpError`
|
|
131
|
+
## Connect
|
|
112
132
|
|
|
113
|
-
|
|
114
|
-
// in the beginning of your app (important)
|
|
115
|
-
app.use(HttpError.initializer)
|
|
116
|
-
// OR
|
|
117
|
-
app.use((req, res, next) => {
|
|
118
|
-
HttpError.initializer(req, res, next)
|
|
119
|
-
})
|
|
120
|
-
```
|
|
133
|
+
## Business
|
|
121
134
|
|
|
122
|
-
|
|
135
|
+
## Password
|
|
123
136
|
|
|
124
|
-
|
|
125
|
-
`HttpError` functions and it will send it back to the client but if the error
|
|
126
|
-
not belong ot the lib it will pass it using next fun
|
|
137
|
+
## Individual
|
|
127
138
|
|
|
128
|
-
|
|
129
|
-
// in the end of your app (important)
|
|
130
|
-
app.use(HttpError.handler)
|
|
131
|
-
// OR
|
|
132
|
-
app.use((err, req, res, next) => {
|
|
133
|
-
HttpError.handler(err, req, res, next)
|
|
134
|
-
})
|
|
135
|
-
```
|
|
139
|
+
## Bank
|
|
136
140
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
it's a helper function can help you to create your custom error.
|
|
140
|
-
|
|
141
|
-
### HttpError.{{ any function from the next list }}
|
|
142
|
-
|
|
143
|
-
- they are helper functions allow you to send sepecific error to the client
|
|
144
|
-
|
|
145
|
-
- `attrs` error object to customize your error response `optional`
|
|
146
|
-
- `message`: the error message. `required`
|
|
147
|
-
- `errorKey`: the error key. `optional`
|
|
148
|
-
- `help`: the error help location/url. `optional`
|
|
149
|
-
- `description`: the error description `optional`
|
|
150
|
-
- `invalidParams`: the request parameters errors `optional`
|
|
151
|
-
|
|
152
|
-
| status code | function name |
|
|
153
|
-
| ----------- | ----------------------------- |
|
|
154
|
-
| 400 | BadRequest |
|
|
155
|
-
| 401 | Unauthorized |
|
|
156
|
-
| 402 | PaymentRequired |
|
|
157
|
-
| 403 | Forbidden |
|
|
158
|
-
| 404 | NotFound |
|
|
159
|
-
| 405 | MethodNotAllowed |
|
|
160
|
-
| 406 | NotAcceptable |
|
|
161
|
-
| 407 | ProxyAuthenticationRequired |
|
|
162
|
-
| 408 | RequestTimeout |
|
|
163
|
-
| 409 | Conflict |
|
|
164
|
-
| 410 | Gone |
|
|
165
|
-
| 411 | LengthRequired |
|
|
166
|
-
| 412 | PreconditionFailed |
|
|
167
|
-
| 413 | PayloadTooLarge |
|
|
168
|
-
| 414 | URITooLong |
|
|
169
|
-
| 415 | UnsupportedMediaType |
|
|
170
|
-
| 416 | RangeNotSatisfiable |
|
|
171
|
-
| 417 | ExpectationFailed |
|
|
172
|
-
| 418 | ImATeapot |
|
|
173
|
-
| 421 | MisdirectedRequest |
|
|
174
|
-
| 422 | UnprocessableEntity |
|
|
175
|
-
| 423 | Locked |
|
|
176
|
-
| 424 | FailedDependency |
|
|
177
|
-
| 425 | TooEarly |
|
|
178
|
-
| 426 | UpgradeRequired |
|
|
179
|
-
| 428 | PreconditionRequired |
|
|
180
|
-
| 429 | TooManyRequests |
|
|
181
|
-
| 431 | RequestHeaderFieldsTooLarge |
|
|
182
|
-
| 451 | UnavailableForLegalReasons |
|
|
183
|
-
| 500 | InternalServerError |
|
|
184
|
-
| 501 | NotImplemented |
|
|
185
|
-
| 502 | BadGateway |
|
|
186
|
-
| 503 | ServiceUnavailable |
|
|
187
|
-
| 504 | GatewayTimeout |
|
|
188
|
-
| 505 | HTTPVersionNotSupported |
|
|
189
|
-
| 506 | VariantAlsoNegotiates |
|
|
190
|
-
| 507 | InsufficientStorage |
|
|
191
|
-
| 508 | LoopDetected |
|
|
192
|
-
| 509 | BandwidthLimitExceeded |
|
|
193
|
-
| 510 | NotExtended |
|
|
194
|
-
| 511 | NetworkAuthenticationRequired |
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## RequestValidator
|
|
199
|
-
|
|
200
|
-
it's a middleware should be used after validating the request
|
|
201
|
-
body/parameter/query using `express-validator` library
|
|
141
|
+
## Tax
|
|
202
142
|
|
|
203
|
-
```js
|
|
204
|
-
import { body } from 'express-validator'
|
|
205
|
-
import { RequestValidator } from 'http-error-handling'
|
|
206
|
-
import express, { NextFunction, Request, Response } from 'express'
|
|
207
|
-
let app = express()
|
|
208
|
-
//sample API
|
|
209
|
-
app.get('/validate', body('email').isEmail(), RequestValidator, (req: Request, res: Response, next: NextFunction) => {
|
|
210
|
-
return res.send(req.body)
|
|
211
|
-
})
|
|
212
143
|
```
|
|
213
144
|
|
|
214
|
-
##
|
|
215
|
-
|
|
216
|
-
|
|
145
|
+
## Properties
|
|
146
|
+
|
|
147
|
+
| name | functionality |
|
|
148
|
+
| ------------------------------ | --------------------------- |
|
|
149
|
+
| open `required` | BadRequest |
|
|
150
|
+
| merchantDomain `required` | Unauthorized |
|
|
151
|
+
| publicKey `required` | PaymentRequired |
|
|
152
|
+
| appInfo `required` | Forbidden |
|
|
153
|
+
| businessCountryCode `required` | NotFound |
|
|
154
|
+
| language `required` | MethodNotAllowed |
|
|
155
|
+
| onError `required` | NotAcceptable |
|
|
156
|
+
| onFlowCompleted `required` | ProxyAuthenticationRequired |
|
|
157
|
+
| onReady `required` | RequestTimeout |
|
|
158
|
+
| onStepCompleted `required` | Conflict |
|
|
159
|
+
| onStepError `required` | Gone |
|
|
160
|
+
| onStepStarted `required` | LengthRequired |
|
|
161
|
+
| scope `required` | UnsupportedMediaType |
|
package/build/api/account.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import instance from './axios';
|
|
2
|
-
import { ENDPOINT_PATHS } from '
|
|
2
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
3
3
|
var createAccount = function (data, config) {
|
|
4
4
|
return instance.post("".concat(ENDPOINT_PATHS.CREATE_ACCOUNT, "/").concat(data.lead_id), data, config);
|
|
5
5
|
};
|
package/build/api/auth.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
export declare type CheckEmailBody = {
|
|
3
3
|
email: string | null;
|
|
4
|
+
encryption_contract: Array<string>;
|
|
4
5
|
};
|
|
5
6
|
export declare type CheckBrandBody = {
|
|
6
7
|
profile_name: string;
|
|
8
|
+
encryption_contract: Array<string>;
|
|
7
9
|
};
|
|
8
10
|
export declare type CheckIBanBody = {
|
|
9
11
|
iban_number: string;
|
package/build/api/axios.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { get, set } from 'lodash-es';
|
|
3
|
-
import { ENCRYPTION_FLAG
|
|
4
|
-
import { encryptString } from '
|
|
3
|
+
import { ENCRYPTION_FLAG } from '@constants';
|
|
4
|
+
import { encryptString } from '@utils';
|
|
5
5
|
var instance = axios.create({
|
|
6
|
-
baseURL: ENDPOINT_PATHS.BASE_URL,
|
|
7
6
|
headers: {
|
|
8
7
|
'Content-Type': 'application/json',
|
|
9
8
|
'Access-Control-Allow-Headers': true
|
package/build/api/country.js
CHANGED
package/build/api/data.js
CHANGED
package/build/api/entity.js
CHANGED
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { ENDPOINT_PATHS } from '
|
|
12
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
13
13
|
import instance from './axios';
|
|
14
14
|
var retrieveEntityInfo = function (entity_id, config) {
|
|
15
15
|
return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
|
package/build/api/firebase.js
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody } from './operator';
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
@@ -61,5 +61,5 @@ declare const API: {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody };
|
|
64
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
64
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
65
65
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ipService } from './ip';
|
|
3
3
|
import { operatorService } from './operator';
|
|
4
4
|
import { countryService } from './country';
|
|
@@ -23,5 +23,5 @@ var API = {
|
|
|
23
23
|
dataService: dataService,
|
|
24
24
|
individualService: individualService
|
|
25
25
|
};
|
|
26
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
26
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
27
27
|
export default API;
|
package/build/api/individual.js
CHANGED
package/build/api/ip.js
CHANGED
package/build/api/lead.js
CHANGED
package/build/api/operator.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const rootReducer: {
|
|
2
2
|
settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
|
|
3
|
-
connect: import("redux").Reducer<import("
|
|
4
|
-
business: import("redux").Reducer<import("
|
|
5
|
-
bank: import("redux").Reducer<import("
|
|
6
|
-
tax: import("redux").Reducer<import("
|
|
7
|
-
individual: import("redux").Reducer<import("
|
|
8
|
-
password: import("redux").Reducer<import("
|
|
9
|
-
landing: import("redux").Reducer<import("
|
|
3
|
+
connect: import("redux").Reducer<import("@features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
|
|
4
|
+
business: import("redux").Reducer<import("@features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
|
|
5
|
+
bank: import("redux").Reducer<import("@features/app/bank/bankStore").BankState, import("redux").AnyAction>;
|
|
6
|
+
tax: import("redux").Reducer<import("@features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
|
|
7
|
+
individual: import("redux").Reducer<import("@features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
|
|
8
|
+
password: import("redux").Reducer<import("@features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
|
|
9
|
+
landing: import("redux").Reducer<import("@features/app/landing/landingStore").LandingState, import("redux").AnyAction>;
|
|
10
10
|
};
|
|
11
11
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import settings from './settings';
|
|
2
|
-
import connect from '
|
|
3
|
-
import business from '
|
|
4
|
-
import bank from '
|
|
5
|
-
import tax from '
|
|
6
|
-
import individual from '
|
|
7
|
-
import password from '
|
|
8
|
-
import landing from '
|
|
2
|
+
import connect from '@features/app/connect/connectStore';
|
|
3
|
+
import business from '@features/app/business/businessStore';
|
|
4
|
+
import bank from '@features/app/bank/bankStore';
|
|
5
|
+
import tax from '@features/app/tax/taxStore';
|
|
6
|
+
import individual from '@features/app/individual/individualStore';
|
|
7
|
+
import password from '@features/app/password/passwordStore';
|
|
8
|
+
import landing from '@features/app/landing/landingStore';
|
|
9
9
|
var rootReducer = {
|
|
10
10
|
settings: settings,
|
|
11
11
|
connect: connect,
|
package/build/app/settings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig } from '
|
|
3
|
-
import { ValidateOperatorBody } from '
|
|
1
|
+
import { RootState } from '@app/store';
|
|
2
|
+
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, AppInfo, LibConfig } from '@types';
|
|
3
|
+
import { ValidateOperatorBody } from '@api';
|
|
4
4
|
export declare const getClientIp: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
5
5
|
export declare const getBrowserFingerPrint: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
6
|
fingerPrint: import("@fingerprintjs/fingerprintjs").GetResult;
|
package/build/app/settings.js
CHANGED
|
@@ -36,11 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
var _a;
|
|
38
38
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '
|
|
40
|
-
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '
|
|
41
|
-
import i18n from '
|
|
42
|
-
import { updateLocale } from '
|
|
43
|
-
import API from '
|
|
39
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint } from '@utils';
|
|
40
|
+
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '@constants';
|
|
41
|
+
import i18n from '@src/i18n';
|
|
42
|
+
import { updateLocale } from '@utils/locale';
|
|
43
|
+
import API from '@api';
|
|
44
44
|
export var getClientIp = createAsyncThunk('getClientIp', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
45
|
var data;
|
|
46
46
|
return __generator(this, function (_a) {
|
|
@@ -27,8 +27,8 @@ import DialogContent from '@mui/material/DialogContent';
|
|
|
27
27
|
import Paper from '@mui/material/Paper';
|
|
28
28
|
import Box from '@mui/material/Box';
|
|
29
29
|
import { styled } from '@mui/material/styles';
|
|
30
|
-
import { ICONS_NAMES } from '
|
|
31
|
-
import { useLanguage } from '
|
|
30
|
+
import { ICONS_NAMES } from '@constants';
|
|
31
|
+
import { useLanguage } from '@hooks';
|
|
32
32
|
import Slide from '../Slide';
|
|
33
33
|
import LogoBadge from '../LogoBadge';
|
|
34
34
|
import Icon from '../Icon';
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
|
+
export interface ButtonStyledProps {
|
|
4
|
+
touched?: boolean;
|
|
5
|
+
outLineColor?: string;
|
|
6
|
+
}
|
|
3
7
|
export interface ButtonProps extends MUIButtonProps {
|
|
8
|
+
outLineColor?: string;
|
|
4
9
|
}
|
|
5
10
|
declare const _default: React.MemoExoticComponent<{
|
|
6
|
-
({ children, startIcon, endIcon, ...rest }: ButtonProps): JSX.Element;
|
|
11
|
+
({ children, startIcon, outLineColor, endIcon, ...rest }: ButtonProps): JSX.Element;
|
|
7
12
|
defaultProps: {};
|
|
8
13
|
}>;
|
|
9
14
|
export default _default;
|
|
@@ -24,11 +24,33 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import Button from '@mui/material/Button';
|
|
26
26
|
import { styled, alpha } from '@mui/material/styles';
|
|
27
|
-
var ButtonStyled = styled(Button
|
|
28
|
-
|
|
27
|
+
var ButtonStyled = styled(Button, {
|
|
28
|
+
shouldForwardProp: function (prop) { return !['outLineColor', 'touched'].includes(prop.toString()); }
|
|
29
|
+
})(function (_a) {
|
|
30
|
+
var _b;
|
|
31
|
+
var theme = _a.theme, touched = _a.touched, outLineColor = _a.outLineColor;
|
|
29
32
|
return ({
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
'&.MuiButton-contained': {
|
|
34
|
+
color: theme.palette.common.white,
|
|
35
|
+
backgroundColor: theme.palette.primary.main,
|
|
36
|
+
'&:hover': {
|
|
37
|
+
backgroundColor: theme.palette.primary.main
|
|
38
|
+
},
|
|
39
|
+
'&:active': {
|
|
40
|
+
backgroundColor: theme.palette.primary.main
|
|
41
|
+
},
|
|
42
|
+
':disabled': {
|
|
43
|
+
backgroundColor: alpha(theme.palette.primary.main, 0.3),
|
|
44
|
+
borderColor: alpha(theme.palette.primary.main, 0.2),
|
|
45
|
+
color: theme.palette.common.white
|
|
46
|
+
},
|
|
47
|
+
'& .MuiButton-endIcon': {
|
|
48
|
+
margin: theme.spacing(0)
|
|
49
|
+
},
|
|
50
|
+
'& .MuiButton-startIcon': {
|
|
51
|
+
margin: theme.spacing(0)
|
|
52
|
+
}
|
|
53
|
+
},
|
|
32
54
|
minHeight: theme.spacing(5.5),
|
|
33
55
|
maxHeight: theme.spacing(5.5),
|
|
34
56
|
borderRadius: theme.spacing(4.1),
|
|
@@ -36,28 +58,44 @@ var ButtonStyled = styled(Button)(function (_a) {
|
|
|
36
58
|
lineHeight: 1.7,
|
|
37
59
|
display: 'flex',
|
|
38
60
|
justifyContent: 'space-between',
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
paddingInlineStart: theme.spacing(0.75),
|
|
62
|
+
textTransform: 'none',
|
|
63
|
+
'&.MuiButton-outlined': (_b = {
|
|
64
|
+
backgroundColor: theme.palette.common.white,
|
|
65
|
+
border: "1px solid ".concat(!!outLineColor ? outLineColor : theme.palette.primary.main),
|
|
66
|
+
color: !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
67
|
+
'&:hover': {
|
|
68
|
+
backgroundColor: !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
69
|
+
color: theme.palette.common.white,
|
|
70
|
+
img: {
|
|
71
|
+
filter: 'brightness(0) invert(1)'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
76
|
+
'&:hover': {
|
|
77
|
+
backgroundColor: touched
|
|
78
|
+
? !!outLineColor
|
|
79
|
+
? outLineColor
|
|
80
|
+
: theme.palette.primary.main
|
|
81
|
+
: theme.palette.common.white,
|
|
82
|
+
color: touched ? theme.palette.common.white : !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
83
|
+
img: {
|
|
84
|
+
filter: touched ? 'brightness(0) invert(1)' : 'none'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
_b['&:disabled'] = {
|
|
89
|
+
backgroundColor: theme.palette.common.white,
|
|
90
|
+
color: alpha(!!outLineColor ? outLineColor : theme.palette.primary.main, 0.3)
|
|
91
|
+
},
|
|
92
|
+
_b)
|
|
56
93
|
});
|
|
57
94
|
});
|
|
58
95
|
var ButtonComponent = function (_a) {
|
|
59
|
-
var children = _a.children, startIcon = _a.startIcon, endIcon = _a.endIcon, rest = __rest(_a, ["children", "startIcon", "endIcon"]);
|
|
60
|
-
|
|
96
|
+
var children = _a.children, startIcon = _a.startIcon, outLineColor = _a.outLineColor, endIcon = _a.endIcon, rest = __rest(_a, ["children", "startIcon", "outLineColor", "endIcon"]);
|
|
97
|
+
var _b = React.useState(false), isTouched = _b[0], setIsTouched = _b[1];
|
|
98
|
+
return (_jsx(ButtonStyled, __assign({ onTouchStart: function () { return setIsTouched(true); }, touched: isTouched, outLineColor: outLineColor, variant: 'contained', startIcon: startIcon || _jsx("span", {}), endIcon: endIcon || _jsx("span", {}), disableFocusRipple: true, disableElevation: true, disableRipple: true, disableTouchRipple: true, fullWidth: true }, rest, { children: children })));
|
|
61
99
|
};
|
|
62
100
|
ButtonComponent.defaultProps = {};
|
|
63
101
|
export default React.memo(ButtonComponent);
|
|
@@ -27,10 +27,10 @@ import 'react-calendar/dist/Calendar.css';
|
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
29
|
import Divider from '@mui/material/Divider';
|
|
30
|
-
import Collapse from '
|
|
31
|
-
import ExpandIcon from '
|
|
30
|
+
import Collapse from '@components/Collapse';
|
|
31
|
+
import ExpandIcon from '@components/ExpandIcon';
|
|
32
32
|
import CalendarTodayOutlined from '@mui/icons-material/CalendarTodayOutlined';
|
|
33
|
-
import { scrollDown, scrollUp } from '
|
|
33
|
+
import { scrollDown, scrollUp } from '@utils';
|
|
34
34
|
import Input from '../Input';
|
|
35
35
|
import Text from '../Text';
|
|
36
36
|
import './customStyle.css';
|
|
@@ -23,10 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import Text from '
|
|
26
|
+
import Text from '@components/Text';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
|
-
import Icon from '
|
|
29
|
-
import { useLanguage } from '
|
|
28
|
+
import Icon from '@components/Icon';
|
|
29
|
+
import { useLanguage } from '@hooks';
|
|
30
30
|
var FooterStyled = styled(Box)(function (_a) {
|
|
31
31
|
var theme = _a.theme;
|
|
32
32
|
return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
|
|
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import React, { memo } from 'react';
|
|
25
25
|
import Input from '@mui/material/Input';
|
|
26
|
-
import Collapse from '
|
|
27
|
-
import Warning from '
|
|
26
|
+
import Collapse from '@components/Collapse';
|
|
27
|
+
import Warning from '@components/Warning';
|
|
28
28
|
import { alpha, styled } from '@mui/material/styles';
|
|
29
29
|
var InputStyled = styled(Input)(function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import Text from '
|
|
26
|
+
import Text from '@components/Text';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
var OTPTimerStyled = styled(Box)(function (_a) {
|
|
29
29
|
var theme = _a.theme;
|