@tap-payments/auth-jsconnect 2.0.48 → 2.0.49
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/build/@types/app.d.ts +8 -6
- package/build/@types/form.d.ts +23 -22
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +11 -11
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +10 -10
- package/build/api/document.d.ts +25 -0
- package/build/api/document.js +38 -0
- package/build/api/entity.d.ts +10 -20
- package/build/api/entity.js +6 -5
- package/build/api/file.d.ts +2 -1
- package/build/api/file.js +14 -1
- package/build/api/index.d.ts +10 -3
- package/build/api/index.js +3 -1
- package/build/api/individual.d.ts +8 -8
- package/build/api/lead.d.ts +10 -10
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +11 -2
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +3 -1
- package/build/assets/locales/en.json +3 -1
- package/build/components/Lottie/Lottie.d.ts +1 -2
- package/build/components/Lottie/Lottie.js +1 -1
- package/build/components/Lottie/index.d.ts +2 -2
- package/build/components/Lottie/index.js +2 -2
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/constants/app.d.ts +31 -0
- package/build/constants/app.js +43 -1
- package/build/features/app/bank/bankStore.d.ts +73 -10
- package/build/features/app/bank/bankStore.js +29 -15
- package/build/features/app/brand/brandStore.d.ts +104 -12
- package/build/features/app/brand/brandStore.js +65 -66
- package/build/features/app/business/businessStore.d.ts +163 -19
- package/build/features/app/business/businessStore.js +3 -3
- package/build/features/app/connect/connectStore.d.ts +121 -13
- package/build/features/app/connect/connectStore.js +1 -1
- package/build/features/app/connectExpress/connectExpressStore.d.ts +181 -19
- package/build/features/app/connectExpress/connectExpressStore.js +1 -1
- package/build/features/app/entity/entityStore.d.ts +76 -20
- package/build/features/app/entity/entityStore.js +67 -93
- package/build/features/app/individual/individualStore.d.ts +182 -20
- package/build/features/app/individual/individualStore.js +278 -135
- package/build/features/app/password/passwordStore.d.ts +102 -12
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +62 -8
- package/build/features/app/tax/taxStore.js +25 -12
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +4 -3
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -13
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +6 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +11 -11
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +5 -7
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +5 -7
- package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +13 -13
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +2 -2
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Article.js +1 -1
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +2 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +5 -5
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +11 -11
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +5 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +13 -13
- package/build/features/entity/screens/EntityCapital/ActivityList.js +7 -7
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -4
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +3 -4
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -4
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
- package/build/features/entity/screens/EntityName/Article.js +16 -53
- package/build/features/entity/screens/EntityName/EntityName.js +2 -3
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -13
- package/build/features/entity/screens/EntityName/EntityTypeList.js +4 -6
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
- package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -6
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
- package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
- package/build/features/entity/screens/EntityName/LegalName.js +2 -4
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +4 -3
- package/build/features/entity/screens/EntityName/LicenseNumber.js +4 -4
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/featuresScreens.js +5 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +4 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +2 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +5 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +2 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +4 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +5 -6
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +2 -0
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +3 -2
- package/build/features/individual/screens/IndividualList/Email.d.ts +5 -1
- package/build/features/individual/screens/IndividualList/Email.js +73 -8
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
- package/build/features/individual/screens/IndividualList/UserList.js +36 -19
- package/build/features/individual/screens/IndividualList/validation.js +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -3
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -5
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +2 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +6 -7
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +2 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +6 -7
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +12 -0
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +143 -0
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +5 -0
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +60 -0
- package/build/features/individual/screens/IndividualPhoneInfo/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualPhoneInfo/index.js +2 -0
- package/build/features/individual/screens/IndividualPhoneInfo/validation.d.ts +8 -0
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +31 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/shared/Address/CountryList.d.ts +9 -9
- package/build/features/shared/Address/InputSelect.d.ts +9 -9
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/{ListButton.d.ts → IndividualActionButtons.d.ts} +5 -4
- package/build/features/shared/Button/IndividualActionButtons.js +132 -0
- package/build/features/shared/Button/index.d.ts +1 -1
- package/build/features/shared/Button/index.js +1 -1
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +3 -3
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +11 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +29 -0
- package/build/features/shared/UploadFile/FileUpload.js +263 -0
- package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +33 -0
- package/build/features/shared/UploadFile/UploadWrapper.js +114 -0
- package/build/features/shared/UploadFile/index.d.ts +2 -1
- package/build/features/shared/UploadFile/index.js +2 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -20
- package/build/features/shared/UploadMultipleFile/UploadFile.js +109 -24
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +6 -4
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +26 -19
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +4 -3
- package/build/features/tax/screens/TaxDetails/VATId.js +3 -4
- package/build/index.d.ts +2 -2
- package/build/index.js +4 -3
- package/build/utils/array.d.ts +3 -1
- package/build/utils/array.js +35 -6
- package/package.json +1 -1
- package/build/features/shared/Button/ListButton.js +0 -125
|
@@ -4,27 +4,81 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: any;
|
|
6
6
|
token: string;
|
|
7
|
-
}, string, {
|
|
7
|
+
}, string, {
|
|
8
|
+
state?: unknown;
|
|
9
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
10
|
+
extra?: unknown;
|
|
11
|
+
rejectValue?: unknown;
|
|
12
|
+
serializedErrorType?: unknown;
|
|
13
|
+
pendingMeta?: unknown;
|
|
14
|
+
fulfilledMeta?: unknown;
|
|
15
|
+
rejectedMeta?: unknown;
|
|
16
|
+
}>;
|
|
8
17
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
18
|
data: any;
|
|
10
|
-
}, void, {
|
|
19
|
+
}, void, {
|
|
20
|
+
state?: unknown;
|
|
21
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
22
|
+
extra?: unknown;
|
|
23
|
+
rejectValue?: unknown;
|
|
24
|
+
serializedErrorType?: unknown;
|
|
25
|
+
pendingMeta?: unknown;
|
|
26
|
+
fulfilledMeta?: unknown;
|
|
27
|
+
rejectedMeta?: unknown;
|
|
28
|
+
}>;
|
|
11
29
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
12
30
|
data: any;
|
|
13
|
-
}, string, {
|
|
31
|
+
}, string, {
|
|
32
|
+
state?: unknown;
|
|
33
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
34
|
+
extra?: unknown;
|
|
35
|
+
rejectValue?: unknown;
|
|
36
|
+
serializedErrorType?: unknown;
|
|
37
|
+
pendingMeta?: unknown;
|
|
38
|
+
fulfilledMeta?: unknown;
|
|
39
|
+
rejectedMeta?: unknown;
|
|
40
|
+
}>;
|
|
14
41
|
export declare const verifyPasswordLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
15
42
|
data: any;
|
|
16
43
|
formData: {
|
|
17
44
|
otp: string;
|
|
18
45
|
};
|
|
19
|
-
}, OTPFormValues, {
|
|
46
|
+
}, OTPFormValues, {
|
|
47
|
+
state?: unknown;
|
|
48
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
49
|
+
extra?: unknown;
|
|
50
|
+
rejectValue?: unknown;
|
|
51
|
+
serializedErrorType?: unknown;
|
|
52
|
+
pendingMeta?: unknown;
|
|
53
|
+
fulfilledMeta?: unknown;
|
|
54
|
+
rejectedMeta?: unknown;
|
|
55
|
+
}>;
|
|
20
56
|
export declare const createPassword: import("@reduxjs/toolkit").AsyncThunk<{
|
|
21
57
|
data: any;
|
|
22
58
|
formData: PasswordCreateFormValues;
|
|
23
|
-
}, PasswordCreateFormValues, {
|
|
59
|
+
}, PasswordCreateFormValues, {
|
|
60
|
+
state?: unknown;
|
|
61
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
62
|
+
extra?: unknown;
|
|
63
|
+
rejectValue?: unknown;
|
|
64
|
+
serializedErrorType?: unknown;
|
|
65
|
+
pendingMeta?: unknown;
|
|
66
|
+
fulfilledMeta?: unknown;
|
|
67
|
+
rejectedMeta?: unknown;
|
|
68
|
+
}>;
|
|
24
69
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
25
70
|
response: any;
|
|
26
71
|
formData: void;
|
|
27
|
-
} | undefined, void, {
|
|
72
|
+
} | undefined, void, {
|
|
73
|
+
state?: unknown;
|
|
74
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
75
|
+
extra?: unknown;
|
|
76
|
+
rejectValue?: unknown;
|
|
77
|
+
serializedErrorType?: unknown;
|
|
78
|
+
pendingMeta?: unknown;
|
|
79
|
+
fulfilledMeta?: unknown;
|
|
80
|
+
rejectedMeta?: unknown;
|
|
81
|
+
}>;
|
|
28
82
|
export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
29
83
|
data: any;
|
|
30
84
|
token: string;
|
|
@@ -34,10 +88,28 @@ export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk
|
|
|
34
88
|
token: string;
|
|
35
89
|
boardId: string;
|
|
36
90
|
boardInfoId: string;
|
|
37
|
-
}, {
|
|
91
|
+
}, {
|
|
92
|
+
state?: unknown;
|
|
93
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
94
|
+
extra?: unknown;
|
|
95
|
+
rejectValue?: unknown;
|
|
96
|
+
serializedErrorType?: unknown;
|
|
97
|
+
pendingMeta?: unknown;
|
|
98
|
+
fulfilledMeta?: unknown;
|
|
99
|
+
rejectedMeta?: unknown;
|
|
100
|
+
}>;
|
|
38
101
|
export declare const resendOperationOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
39
102
|
data: any;
|
|
40
|
-
}, void, {
|
|
103
|
+
}, void, {
|
|
104
|
+
state?: unknown;
|
|
105
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
106
|
+
extra?: unknown;
|
|
107
|
+
rejectValue?: unknown;
|
|
108
|
+
serializedErrorType?: unknown;
|
|
109
|
+
pendingMeta?: unknown;
|
|
110
|
+
fulfilledMeta?: unknown;
|
|
111
|
+
rejectedMeta?: unknown;
|
|
112
|
+
}>;
|
|
41
113
|
export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
|
|
42
114
|
data: any;
|
|
43
115
|
formData: {
|
|
@@ -48,14 +120,32 @@ export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
48
120
|
} | undefined;
|
|
49
121
|
otp: string;
|
|
50
122
|
};
|
|
51
|
-
}, OTPFormValues, {
|
|
123
|
+
}, OTPFormValues, {
|
|
124
|
+
state?: unknown;
|
|
125
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
126
|
+
extra?: unknown;
|
|
127
|
+
rejectValue?: unknown;
|
|
128
|
+
serializedErrorType?: unknown;
|
|
129
|
+
pendingMeta?: unknown;
|
|
130
|
+
fulfilledMeta?: unknown;
|
|
131
|
+
rejectedMeta?: unknown;
|
|
132
|
+
}>;
|
|
52
133
|
export declare const retrieveBoardResetPasswordSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
53
134
|
id: any;
|
|
54
135
|
response: {
|
|
55
136
|
flows: any;
|
|
56
137
|
};
|
|
57
|
-
}, void, {
|
|
58
|
-
|
|
138
|
+
}, void, {
|
|
139
|
+
state?: unknown;
|
|
140
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
141
|
+
extra?: unknown;
|
|
142
|
+
rejectValue?: unknown;
|
|
143
|
+
serializedErrorType?: unknown;
|
|
144
|
+
pendingMeta?: unknown;
|
|
145
|
+
fulfilledMeta?: unknown;
|
|
146
|
+
rejectedMeta?: unknown;
|
|
147
|
+
}>;
|
|
148
|
+
type VerifyData = {
|
|
59
149
|
token: string;
|
|
60
150
|
operationType?: string;
|
|
61
151
|
};
|
|
@@ -77,7 +167,7 @@ export declare const passwordSlice: import("@reduxjs/toolkit").Slice<PasswordSta
|
|
|
77
167
|
type: string;
|
|
78
168
|
}) => void;
|
|
79
169
|
}, "password/store">;
|
|
80
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
170
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/resetOTPScreen">, storePasswordScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "password/store/storePasswordScreen">;
|
|
81
171
|
declare const _default: import("redux").Reducer<PasswordState, import("redux").AnyAction>;
|
|
82
172
|
export default _default;
|
|
83
173
|
export declare const passwordSelector: (state: RootState) => PasswordState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -3,18 +3,72 @@ import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormVa
|
|
|
3
3
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
formData: MobileFormValues;
|
|
6
|
-
}, MobileFormValues, {
|
|
7
|
-
|
|
6
|
+
}, MobileFormValues, {
|
|
7
|
+
state?: unknown;
|
|
8
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
9
|
+
extra?: unknown;
|
|
10
|
+
rejectValue?: unknown;
|
|
11
|
+
serializedErrorType?: unknown;
|
|
12
|
+
pendingMeta?: unknown;
|
|
13
|
+
fulfilledMeta?: unknown;
|
|
14
|
+
rejectedMeta?: unknown;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
17
|
+
state?: unknown;
|
|
18
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
19
|
+
extra?: unknown;
|
|
20
|
+
rejectValue?: unknown;
|
|
21
|
+
serializedErrorType?: unknown;
|
|
22
|
+
pendingMeta?: unknown;
|
|
23
|
+
fulfilledMeta?: unknown;
|
|
24
|
+
rejectedMeta?: unknown;
|
|
25
|
+
}>;
|
|
8
26
|
export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
27
|
data: any;
|
|
10
28
|
formData: EmailFormValues;
|
|
11
|
-
}, EmailFormValues, {
|
|
12
|
-
|
|
29
|
+
}, EmailFormValues, {
|
|
30
|
+
state?: unknown;
|
|
31
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
32
|
+
extra?: unknown;
|
|
33
|
+
rejectValue?: unknown;
|
|
34
|
+
serializedErrorType?: unknown;
|
|
35
|
+
pendingMeta?: unknown;
|
|
36
|
+
fulfilledMeta?: unknown;
|
|
37
|
+
rejectedMeta?: unknown;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
40
|
+
state?: unknown;
|
|
41
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
42
|
+
extra?: unknown;
|
|
43
|
+
rejectValue?: unknown;
|
|
44
|
+
serializedErrorType?: unknown;
|
|
45
|
+
pendingMeta?: unknown;
|
|
46
|
+
fulfilledMeta?: unknown;
|
|
47
|
+
rejectedMeta?: unknown;
|
|
48
|
+
}>;
|
|
13
49
|
export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
50
|
data: any;
|
|
15
51
|
formData: OTPFormValues;
|
|
16
|
-
}, OTPFormValues, {
|
|
17
|
-
|
|
52
|
+
}, OTPFormValues, {
|
|
53
|
+
state?: unknown;
|
|
54
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
55
|
+
extra?: unknown;
|
|
56
|
+
rejectValue?: unknown;
|
|
57
|
+
serializedErrorType?: unknown;
|
|
58
|
+
pendingMeta?: unknown;
|
|
59
|
+
fulfilledMeta?: unknown;
|
|
60
|
+
rejectedMeta?: unknown;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
|
|
63
|
+
state?: unknown;
|
|
64
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
65
|
+
extra?: unknown;
|
|
66
|
+
rejectValue?: unknown;
|
|
67
|
+
serializedErrorType?: unknown;
|
|
68
|
+
pendingMeta?: unknown;
|
|
69
|
+
fulfilledMeta?: unknown;
|
|
70
|
+
rejectedMeta?: unknown;
|
|
71
|
+
}>;
|
|
18
72
|
export interface SignInData {
|
|
19
73
|
auth: Partial<MobileFormValues & EmailFormValues> & ResponseData;
|
|
20
74
|
otpData: OTPFormValues & ResponseData;
|
|
@@ -27,7 +81,7 @@ export declare const signInSlice: import("@reduxjs/toolkit").Slice<SignInState,
|
|
|
27
81
|
stopLoader: (state: SignInState) => void;
|
|
28
82
|
resetOTPScreen: (state: SignInState) => void;
|
|
29
83
|
}, "signIsn/store">;
|
|
30
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
84
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/resetOTPScreen">;
|
|
31
85
|
declare const _default: import("redux").Reducer<SignInState, import("redux").AnyAction>;
|
|
32
86
|
export default _default;
|
|
33
87
|
export declare const signInSelector: (state: RootState) => SignInState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -8,26 +8,80 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
8
8
|
data: any;
|
|
9
9
|
boardResponse: any;
|
|
10
10
|
token: string;
|
|
11
|
-
}, VerifyLeadTokenProps, {
|
|
11
|
+
}, VerifyLeadTokenProps, {
|
|
12
|
+
state?: unknown;
|
|
13
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
14
|
+
extra?: unknown;
|
|
15
|
+
rejectValue?: unknown;
|
|
16
|
+
serializedErrorType?: unknown;
|
|
17
|
+
pendingMeta?: unknown;
|
|
18
|
+
fulfilledMeta?: unknown;
|
|
19
|
+
rejectedMeta?: unknown;
|
|
20
|
+
}>;
|
|
12
21
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
13
22
|
data: any;
|
|
14
|
-
}, void, {
|
|
23
|
+
}, void, {
|
|
24
|
+
state?: unknown;
|
|
25
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
26
|
+
extra?: unknown;
|
|
27
|
+
rejectValue?: unknown;
|
|
28
|
+
serializedErrorType?: unknown;
|
|
29
|
+
pendingMeta?: unknown;
|
|
30
|
+
fulfilledMeta?: unknown;
|
|
31
|
+
rejectedMeta?: unknown;
|
|
32
|
+
}>;
|
|
15
33
|
export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
16
34
|
data: any;
|
|
17
|
-
}, string, {
|
|
35
|
+
}, string, {
|
|
36
|
+
state?: unknown;
|
|
37
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
38
|
+
extra?: unknown;
|
|
39
|
+
rejectValue?: unknown;
|
|
40
|
+
serializedErrorType?: unknown;
|
|
41
|
+
pendingMeta?: unknown;
|
|
42
|
+
fulfilledMeta?: unknown;
|
|
43
|
+
rejectedMeta?: unknown;
|
|
44
|
+
}>;
|
|
18
45
|
export declare const verifyTaxLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
19
46
|
data: any;
|
|
20
47
|
formData: OTPFormValues;
|
|
21
|
-
}, OTPFormValues, {
|
|
48
|
+
}, OTPFormValues, {
|
|
49
|
+
state?: unknown;
|
|
50
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
51
|
+
extra?: unknown;
|
|
52
|
+
rejectValue?: unknown;
|
|
53
|
+
serializedErrorType?: unknown;
|
|
54
|
+
pendingMeta?: unknown;
|
|
55
|
+
fulfilledMeta?: unknown;
|
|
56
|
+
rejectedMeta?: unknown;
|
|
57
|
+
}>;
|
|
22
58
|
export declare const updateTaxInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
23
59
|
data: any;
|
|
24
60
|
formData: TaxFormValues;
|
|
25
|
-
}, TaxFormValues, {
|
|
61
|
+
}, TaxFormValues, {
|
|
62
|
+
state?: unknown;
|
|
63
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
64
|
+
extra?: unknown;
|
|
65
|
+
rejectValue?: unknown;
|
|
66
|
+
serializedErrorType?: unknown;
|
|
67
|
+
pendingMeta?: unknown;
|
|
68
|
+
fulfilledMeta?: unknown;
|
|
69
|
+
rejectedMeta?: unknown;
|
|
70
|
+
}>;
|
|
26
71
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
27
72
|
response: any;
|
|
28
73
|
formData: void;
|
|
29
|
-
} | undefined, void, {
|
|
30
|
-
|
|
74
|
+
} | undefined, void, {
|
|
75
|
+
state?: unknown;
|
|
76
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
77
|
+
extra?: unknown;
|
|
78
|
+
rejectValue?: unknown;
|
|
79
|
+
serializedErrorType?: unknown;
|
|
80
|
+
pendingMeta?: unknown;
|
|
81
|
+
fulfilledMeta?: unknown;
|
|
82
|
+
rejectedMeta?: unknown;
|
|
83
|
+
}>;
|
|
84
|
+
type VerifyData = {
|
|
31
85
|
token: string;
|
|
32
86
|
};
|
|
33
87
|
export interface TaxData {
|
|
@@ -46,7 +100,7 @@ export declare const taxSlice: import("@reduxjs/toolkit").Slice<TaxState, {
|
|
|
46
100
|
resetOTPScreen: (state: TaxState) => void;
|
|
47
101
|
uploadingStatus: (state: TaxState, action: ActionState<boolean>) => void;
|
|
48
102
|
}, "tax/store">;
|
|
49
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
103
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/resetOTPScreen">, uploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "tax/store/uploadingStatus">;
|
|
50
104
|
declare const _default: import("redux").Reducer<TaxState, import("redux").AnyAction>;
|
|
51
105
|
export default _default;
|
|
52
106
|
export declare const taxSelector: (state: RootState) => TaxState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -48,9 +48,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import API from '../../../api';
|
|
51
|
-
import {
|
|
51
|
+
import { DocumentPurpose, FlowsTypes } from '../../../@types';
|
|
52
52
|
import { handleNextScreenStep, handleCurrentActiveScreen, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
53
|
import { TAX_STEP_NAMES } from '../../../constants';
|
|
54
|
+
import { getRecentDocumentBasedOnPurpose } from '../../../utils';
|
|
54
55
|
export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (_a, thunkApi) {
|
|
55
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
56
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -168,15 +169,16 @@ export var verifyTaxLeadOTP = createAsyncThunk('verifyTaxLeadOTP', function (par
|
|
|
168
169
|
});
|
|
169
170
|
}); });
|
|
170
171
|
export var updateTaxInfo = createAsyncThunk('updateTaxInfo', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
-
var _a, settings, tax, entity, entityId, isTaxNumberEditable, requestBody, data, documentBody, _b;
|
|
172
|
-
var
|
|
172
|
+
var _a, settings, tax, entity, entityId, isTaxNumberEditable, document, requestBody, data, documentBody, _b, documentBody, _c;
|
|
173
|
+
var _d, _e, _f;
|
|
173
174
|
return __generator(this, function (_g) {
|
|
174
175
|
switch (_g.label) {
|
|
175
176
|
case 0:
|
|
176
177
|
_a = thunkApi.getState(), settings = _a.settings, tax = _a.tax;
|
|
177
178
|
entity = (tax.data.verify.responseBody || {}).entity;
|
|
178
179
|
entityId = entity === null || entity === void 0 ? void 0 : entity.id;
|
|
179
|
-
isTaxNumberEditable =
|
|
180
|
+
isTaxNumberEditable = true;
|
|
181
|
+
document = getRecentDocumentBasedOnPurpose(entity === null || entity === void 0 ? void 0 : entity.documents, DocumentPurpose.TAX_DOCUMENT);
|
|
180
182
|
requestBody = {
|
|
181
183
|
id: entityId,
|
|
182
184
|
vat_id: isTaxNumberEditable ? params.vatId : undefined,
|
|
@@ -188,7 +190,18 @@ export var updateTaxInfo = createAsyncThunk('updateTaxInfo', function (params, t
|
|
|
188
190
|
data = (_g.sent()).data;
|
|
189
191
|
if ((_d = data.errors) === null || _d === void 0 ? void 0 : _d.length)
|
|
190
192
|
throw new Error(data.errors[0].description);
|
|
191
|
-
if (!((params.documentId || []).length > 0)) return [3,
|
|
193
|
+
if (!((params.documentId || []).length > 0)) return [3, 5];
|
|
194
|
+
if (!(document === null || document === void 0 ? void 0 : document.id)) return [3, 3];
|
|
195
|
+
documentBody = {
|
|
196
|
+
id: document === null || document === void 0 ? void 0 : document.id,
|
|
197
|
+
images: params.documentId
|
|
198
|
+
};
|
|
199
|
+
_b = data;
|
|
200
|
+
return [4, API.documentService.addFilesToExistingDocument(documentBody)];
|
|
201
|
+
case 2:
|
|
202
|
+
_b.documentData = _g.sent();
|
|
203
|
+
return [3, 5];
|
|
204
|
+
case 3:
|
|
192
205
|
documentBody = {
|
|
193
206
|
entity_id: entityId || '',
|
|
194
207
|
documents: [
|
|
@@ -197,12 +210,12 @@ export var updateTaxInfo = createAsyncThunk('updateTaxInfo', function (params, t
|
|
|
197
210
|
}
|
|
198
211
|
]
|
|
199
212
|
};
|
|
200
|
-
|
|
201
|
-
return [4, API.
|
|
202
|
-
case
|
|
203
|
-
|
|
204
|
-
_g.label =
|
|
205
|
-
case
|
|
213
|
+
_c = data;
|
|
214
|
+
return [4, API.documentService.updateDocumentInfo(documentBody)];
|
|
215
|
+
case 4:
|
|
216
|
+
_c.documentData = _g.sent();
|
|
217
|
+
_g.label = 5;
|
|
218
|
+
case 5:
|
|
206
219
|
thunkApi.dispatch(handleNextScreenStep());
|
|
207
220
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, requestBody);
|
|
208
221
|
return [2, { data: data, formData: params }];
|
|
@@ -6,7 +6,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
6
6
|
import { useController, useFormContext } from 'react-hook-form';
|
|
7
7
|
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
8
8
|
import { DocumentPurpose } from '../../../../@types';
|
|
9
|
-
import {
|
|
9
|
+
import { getFileDetailsFromDocument } from '../../../../utils';
|
|
10
|
+
import { FileType } from '../../../../constants';
|
|
10
11
|
import { bankSelector, bankStatementUploadingStatus } from '../../../app/bank/bankStore';
|
|
11
12
|
import UploadMultipleFile from '../../../shared/UploadMultipleFile';
|
|
12
13
|
var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
@@ -30,7 +31,7 @@ var BankStatement = function (_a) {
|
|
|
30
31
|
var handleReset = function (ids) {
|
|
31
32
|
bankStatementIdControl.field.onChange(ids);
|
|
32
33
|
};
|
|
33
|
-
var defaultFiles = React.useMemo(function () { return
|
|
34
|
-
return (_jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { id: 'bankStatementId', control: control, label: t('title_bank_statement'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleBankStatementChange, isSubmitting: loading, required: required, onDeleteFile: handleReset, purpose: DocumentPurpose.BANK_STATEMENT, defaultFiles: defaultFiles, maxLimit: 4, fileUploadingStatus: function (uploading) { return dispatch(bankStatementUploadingStatus(uploading)); } }) }));
|
|
34
|
+
var defaultFiles = React.useMemo(function () { return getFileDetailsFromDocument(document ? [document] : [], DocumentPurpose.BANK_STATEMENT); }, [document]);
|
|
35
|
+
return (_jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { id: 'bankStatementId', control: control, label: t('title_bank_statement'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleBankStatementChange, isSubmitting: loading, required: required, onDeleteFile: handleReset, purpose: DocumentPurpose.BANK_STATEMENT, defaultFiles: defaultFiles, maxLimit: 4, fileUploadingStatus: function (uploading) { return dispatch(bankStatementUploadingStatus(uploading)); }, fileType: FileType.FILES }) }));
|
|
35
36
|
};
|
|
36
37
|
export default BankStatement;
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
|
|
|
9
9
|
var _b, _c;
|
|
10
10
|
var t = useTranslation().t;
|
|
11
11
|
var data = useAppSelector(bankSelector).data;
|
|
12
|
-
var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
|
|
12
|
+
var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
|
|
13
13
|
var maskedEmail = maskEmail(email);
|
|
14
14
|
return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
|
|
15
15
|
};
|