@tap-payments/auth-jsconnect 2.0.108-test → 2.0.110-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/build/@types/form.d.ts +6 -4
- package/build/api/entity.d.ts +23 -0
- package/build/api/entity.js +17 -1
- package/build/api/index.d.ts +4 -2
- package/build/assets/locales/ar.json +3 -1
- package/build/assets/locales/en.json +3 -1
- package/build/constants/app.js +1 -1
- package/build/constants/assets.d.ts +3 -0
- package/build/constants/assets.js +3 -0
- package/build/features/app/entity/entityStore.d.ts +27 -7
- package/build/features/app/entity/entityStore.js +205 -141
- package/build/features/connect/screens/Mobile/Mobile.js +8 -4
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +21 -11
- package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +3 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.js +73 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +25 -6
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +20 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +25 -4
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +9 -17
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +12 -51
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -10
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/entity/screens/Verify/Verify.js +4 -4
- package/build/features/shared/UploadFile/UploadFile.d.ts +2 -1
- package/build/features/shared/UploadFile/UploadFile.js +3 -3
- package/package.json +1 -1
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -115
package/build/@types/form.d.ts
CHANGED
|
@@ -82,9 +82,11 @@ export declare type PasswordCreateFormValues = {
|
|
|
82
82
|
confirmPassword: string;
|
|
83
83
|
};
|
|
84
84
|
export declare type EntityFormValues = {
|
|
85
|
-
licenseNumber
|
|
86
|
-
licenseName
|
|
87
|
-
activities
|
|
88
|
-
salesChannels?: Array<SaleChannel>;
|
|
85
|
+
licenseNumber: string;
|
|
86
|
+
licenseName: string;
|
|
87
|
+
activities: Array<Activity>;
|
|
89
88
|
operationStartDate: string;
|
|
89
|
+
uploading?: boolean;
|
|
90
|
+
articleId?: string;
|
|
91
|
+
articleFile?: File;
|
|
90
92
|
};
|
package/build/api/entity.d.ts
CHANGED
|
@@ -53,6 +53,27 @@ export declare type UploadFileBody = {
|
|
|
53
53
|
title: string | undefined;
|
|
54
54
|
purpose: string;
|
|
55
55
|
};
|
|
56
|
+
export declare type UpdateEntityBody = {
|
|
57
|
+
id: string;
|
|
58
|
+
license: {
|
|
59
|
+
type?: string;
|
|
60
|
+
number?: string;
|
|
61
|
+
additional_info?: {
|
|
62
|
+
unified_number: string;
|
|
63
|
+
};
|
|
64
|
+
issuing_date: number;
|
|
65
|
+
expiry_date?: string;
|
|
66
|
+
};
|
|
67
|
+
activities?: Array<{
|
|
68
|
+
id: string;
|
|
69
|
+
action: string;
|
|
70
|
+
}>;
|
|
71
|
+
legal_name: {
|
|
72
|
+
ar: string;
|
|
73
|
+
en: string;
|
|
74
|
+
};
|
|
75
|
+
encryption_contract?: Array<string>;
|
|
76
|
+
};
|
|
56
77
|
export declare type DocumentInfo = {
|
|
57
78
|
type?: string;
|
|
58
79
|
number?: string;
|
|
@@ -74,5 +95,7 @@ declare const entityService: {
|
|
|
74
95
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
75
96
|
uploadFileInfo: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
76
97
|
updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
|
|
98
|
+
retrieveEntity: (entity_id: string) => Promise<any>;
|
|
99
|
+
updateEntity: ({ id, ...data }: UpdateEntityBody) => Promise<any>;
|
|
77
100
|
};
|
|
78
101
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -33,6 +33,20 @@ var updateEntityInfo = function (_a, config) {
|
|
|
33
33
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
34
34
|
return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
|
|
35
35
|
};
|
|
36
|
+
var retrieveEntity = function (entity_id) {
|
|
37
|
+
return httpClient({
|
|
38
|
+
method: 'get',
|
|
39
|
+
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id)
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var updateEntity = function (_a) {
|
|
43
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
44
|
+
return httpClient({
|
|
45
|
+
method: 'put',
|
|
46
|
+
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id),
|
|
47
|
+
data: data
|
|
48
|
+
});
|
|
49
|
+
};
|
|
36
50
|
var createBankAccount = function (data, config) {
|
|
37
51
|
return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
|
|
38
52
|
};
|
|
@@ -68,6 +82,8 @@ var entityService = {
|
|
|
68
82
|
retrieveEntityInfo: retrieveEntityInfo,
|
|
69
83
|
updateIndividualInfo: updateIndividualInfo,
|
|
70
84
|
uploadFileInfo: uploadFileInfo,
|
|
71
|
-
updateDocumentInfo: updateDocumentInfo
|
|
85
|
+
updateDocumentInfo: updateDocumentInfo,
|
|
86
|
+
retrieveEntity: retrieveEntity,
|
|
87
|
+
updateEntity: updateEntity
|
|
72
88
|
};
|
|
73
89
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ValidateOperatorBody } from './operator';
|
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthKitOTPBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
|
-
import { EntityInfoBody, EntityBankUpdateBody, UploadFileBody, DocumentUpdateBody, DocumentInfo } from './entity';
|
|
6
|
+
import { EntityInfoBody, EntityBankUpdateBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo } from './entity';
|
|
7
7
|
import { CreateAccountBody } from './account';
|
|
8
8
|
import { DataElementBody } from './data';
|
|
9
9
|
import { BrandListBody, UpdateBrandBody, UpdateIndividualBody } from './individual';
|
|
@@ -46,6 +46,8 @@ declare const API: {
|
|
|
46
46
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
47
47
|
uploadFileInfo: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
48
48
|
updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
|
|
49
|
+
retrieveEntity: (entity_id: string) => Promise<any>;
|
|
50
|
+
updateEntity: ({ id, ...data }: UpdateEntityBody) => Promise<any>;
|
|
49
51
|
};
|
|
50
52
|
availabilityServices: {
|
|
51
53
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -105,6 +107,6 @@ declare const API: {
|
|
|
105
107
|
updateBrandSales: ({ id, ...data }: import("./individual").UpdateSalesChannels) => void;
|
|
106
108
|
};
|
|
107
109
|
};
|
|
108
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, DocumentUpdateBody, DocumentInfo, VerifyAuthKitOTPBody, UpdateIndividualBody };
|
|
110
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthKitOTPBody, UpdateIndividualBody };
|
|
109
111
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
110
112
|
export default API;
|
|
@@ -321,5 +321,7 @@
|
|
|
321
321
|
"invalid_android_app": "يرجى التحقق من اسم تطبيق Android",
|
|
322
322
|
"invalid_call_center_number": "يرجى التحقق من رقم مركز الاتصال",
|
|
323
323
|
"activities_name_hint": "activities_name_hint",
|
|
324
|
-
"customer_base_name_hint": "customer_base_name_hint"
|
|
324
|
+
"customer_base_name_hint": "customer_base_name_hint",
|
|
325
|
+
"title_article": "Article",
|
|
326
|
+
"article_of_association": "Article file. PDF, JPG or PNG files up to 5mb."
|
|
325
327
|
}
|
|
@@ -348,5 +348,7 @@
|
|
|
348
348
|
"invalid_android_app": "May you please verify the entered Android application name.",
|
|
349
349
|
"invalid_call_center_number": "May you please verify the entered call center number.",
|
|
350
350
|
"activities_name_hint": "activities_name_hint",
|
|
351
|
-
"customer_base_name_hint": "customer_base_name_hint"
|
|
351
|
+
"customer_base_name_hint": "customer_base_name_hint",
|
|
352
|
+
"title_article": "Article",
|
|
353
|
+
"article_of_association": "Article file. PDF, JPG or PNG files up to 5mb."
|
|
352
354
|
}
|
package/build/constants/app.js
CHANGED
|
@@ -82,6 +82,9 @@ export declare const ICONS_NAMES: {
|
|
|
82
82
|
business_filled_icon: string;
|
|
83
83
|
business_green_icon: string;
|
|
84
84
|
business_white_icon: string;
|
|
85
|
+
entity_filled_icon: string;
|
|
86
|
+
entity_green_icon: string;
|
|
87
|
+
entity_white_icon: string;
|
|
85
88
|
Arrow_filled_right_icon: string;
|
|
86
89
|
Arrow_green_right_icon: string;
|
|
87
90
|
Arrow_white_right_icon: string;
|
|
@@ -82,6 +82,9 @@ export var ICONS_NAMES = {
|
|
|
82
82
|
business_filled_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-blue.svg',
|
|
83
83
|
business_green_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-green.svg',
|
|
84
84
|
business_white_icon: 'https://dash.b-cdn.net/icons/menu/business-white.svg',
|
|
85
|
+
entity_filled_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-blue.svg',
|
|
86
|
+
entity_green_icon: 'https://dash.b-cdn.net/icons/menu/business-filled-green.svg',
|
|
87
|
+
entity_white_icon: 'https://dash.b-cdn.net/icons/menu/business-white.svg',
|
|
85
88
|
Arrow_filled_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-blue.svg',
|
|
86
89
|
Arrow_green_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-filled-green.svg',
|
|
87
90
|
Arrow_white_right_icon: 'https://dash.b-cdn.net/icons/menu/right-arrow-white.svg'
|
|
@@ -3,11 +3,14 @@ import { EntityFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState
|
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
user: any;
|
|
7
|
+
brand: any;
|
|
8
|
+
bank_account: any;
|
|
9
|
+
entity: any;
|
|
10
|
+
merchant: any;
|
|
11
|
+
name: any;
|
|
12
|
+
contact: any;
|
|
13
|
+
flows: any;
|
|
11
14
|
};
|
|
12
15
|
token: string;
|
|
13
16
|
}, string, {}>;
|
|
@@ -16,20 +19,36 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
16
19
|
}, void, {}>;
|
|
17
20
|
export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
18
21
|
data: any;
|
|
22
|
+
boardResponse: {
|
|
23
|
+
user: any;
|
|
24
|
+
brand: any;
|
|
25
|
+
bank_account: any;
|
|
26
|
+
entity: any;
|
|
27
|
+
merchant: any;
|
|
28
|
+
name: any;
|
|
29
|
+
contact: any;
|
|
30
|
+
flows: any;
|
|
31
|
+
};
|
|
19
32
|
formData: OTPFormValues;
|
|
20
33
|
}, OTPFormValues, {}>;
|
|
21
34
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
22
35
|
data: any;
|
|
23
36
|
}, string, {}>;
|
|
24
|
-
export declare const
|
|
37
|
+
export declare const updateEntity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
25
38
|
data: any;
|
|
26
39
|
formData: EntityFormValues;
|
|
27
40
|
}, EntityFormValues, {}>;
|
|
41
|
+
interface UploadArticleParams {
|
|
42
|
+
file: File;
|
|
43
|
+
onProgress?: (value: number) => void;
|
|
44
|
+
}
|
|
45
|
+
export declare const uploadArticle: import("@reduxjs/toolkit").AsyncThunk<{
|
|
46
|
+
data: any;
|
|
47
|
+
}, UploadArticleParams, {}>;
|
|
28
48
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
29
49
|
response: any;
|
|
30
50
|
formData: void;
|
|
31
51
|
} | undefined, void, {}>;
|
|
32
|
-
export declare const retrieveChannels: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
33
52
|
declare type VerifyData = {
|
|
34
53
|
token: string;
|
|
35
54
|
};
|
|
@@ -41,6 +60,7 @@ export interface EntityData {
|
|
|
41
60
|
}
|
|
42
61
|
export interface EntityState extends SharedState<EntityData> {
|
|
43
62
|
customLoading?: boolean;
|
|
63
|
+
uploading?: boolean;
|
|
44
64
|
}
|
|
45
65
|
export declare const entitySlice: import("@reduxjs/toolkit").Slice<EntityState, {
|
|
46
66
|
clearError: (state: EntityState) => void;
|