@tap-payments/auth-jsconnect 2.1.75-test → 2.1.77-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 (129) hide show
  1. package/build/@types/app.d.ts +24 -0
  2. package/build/@types/app.js +13 -0
  3. package/build/@types/form.d.ts +15 -1
  4. package/build/@types/index.d.ts +1 -0
  5. package/build/@types/index.js +1 -0
  6. package/build/@types/user.d.ts +141 -0
  7. package/build/@types/user.js +1 -0
  8. package/build/api/board.d.ts +16 -0
  9. package/build/api/board.js +10 -1
  10. package/build/api/country.d.ts +4 -0
  11. package/build/api/country.js +9 -1
  12. package/build/api/index.d.ts +8 -3
  13. package/build/api/individual.d.ts +43 -1
  14. package/build/api/individual.js +9 -1
  15. package/build/api/user.d.ts +6 -0
  16. package/build/api/user.js +9 -1
  17. package/build/assets/locales/ar.json +22 -2
  18. package/build/assets/locales/en.json +22 -1
  19. package/build/components/SimpleList/SimpleList.d.ts +2 -0
  20. package/build/constants/api.d.ts +1 -0
  21. package/build/constants/api.js +3 -1
  22. package/build/constants/app.d.ts +1 -0
  23. package/build/constants/app.js +20 -7
  24. package/build/constants/assets.d.ts +4 -0
  25. package/build/constants/assets.js +4 -0
  26. package/build/features/app/bank/bankStore.d.ts +1 -0
  27. package/build/features/app/bank/bankStore.js +2 -1
  28. package/build/features/app/brand/brandStore.d.ts +2 -0
  29. package/build/features/app/brand/brandStore.js +3 -1
  30. package/build/features/app/business/businessStore.js +1 -1
  31. package/build/features/app/entity/entityStore.d.ts +2 -0
  32. package/build/features/app/entity/entityStore.js +3 -1
  33. package/build/features/app/individual/individualStore.d.ts +28 -3
  34. package/build/features/app/individual/individualStore.js +466 -118
  35. package/build/features/app/password/passwordStore.js +2 -2
  36. package/build/features/app/tax/taxStore.js +30 -29
  37. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  38. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +3 -3
  39. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +2 -2
  40. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  41. package/build/features/business/screens/Activities/ActivitiesList.d.ts +3 -3
  42. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  43. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  44. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  45. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
  46. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  47. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +3 -3
  48. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +3 -3
  49. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  50. package/build/features/featuresScreens.js +10 -0
  51. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -0
  52. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +43 -8
  53. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +3 -13
  54. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +9 -2
  55. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -17
  56. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +12 -16
  57. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  58. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +9 -2
  59. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +6 -0
  60. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +35 -0
  61. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +6 -0
  62. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +41 -0
  63. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -6
  64. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +20 -17
  65. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +18 -25
  66. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +31 -0
  67. package/build/features/individual/screens/IndividualList/IndividualList.js +59 -0
  68. package/build/features/individual/screens/IndividualList/UserList.d.ts +5 -0
  69. package/build/features/individual/screens/IndividualList/UserList.js +138 -0
  70. package/build/features/individual/screens/IndividualList/index.d.ts +3 -0
  71. package/build/features/individual/screens/IndividualList/index.js +2 -0
  72. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +8 -0
  73. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +90 -0
  74. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +10 -0
  75. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +82 -0
  76. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +7 -0
  77. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +46 -0
  78. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +6 -0
  79. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +50 -0
  80. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +7 -0
  81. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +49 -0
  82. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +34 -0
  83. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +81 -0
  84. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +6 -0
  85. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +48 -0
  86. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +21 -0
  87. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +126 -0
  88. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +10 -0
  89. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +88 -0
  90. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +10 -0
  91. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +145 -0
  92. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +6 -0
  93. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +52 -0
  94. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +10 -0
  95. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +88 -0
  96. package/build/features/individual/screens/IndividualPersonalInfo/index.d.ts +3 -0
  97. package/build/features/individual/screens/IndividualPersonalInfo/index.js +2 -0
  98. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +38 -0
  99. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +68 -0
  100. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  101. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  102. package/build/features/shared/Address/Address.d.ts +6 -1
  103. package/build/features/shared/Address/Address.js +40 -30
  104. package/build/features/shared/Address/CountryList.d.ts +1 -1
  105. package/build/features/shared/Address/InputSelect.d.ts +1 -1
  106. package/build/features/shared/Address/InputText.d.ts +2 -1
  107. package/build/features/shared/Address/InputText.js +2 -2
  108. package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
  109. package/build/features/shared/Button/FlowsButtons.js +2 -2
  110. package/build/features/shared/Button/ListButton.d.ts +17 -0
  111. package/build/features/shared/Button/ListButton.js +107 -0
  112. package/build/features/shared/Button/index.d.ts +2 -1
  113. package/build/features/shared/Button/index.js +2 -1
  114. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
  115. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -4
  116. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  117. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -1
  118. package/build/features/tax/screens/TaxDetails/VATId.js +8 -3
  119. package/build/features/tax/screens/TaxDetails/validation.d.ts +4 -4
  120. package/build/features/tax/screens/TaxDetails/validation.js +10 -5
  121. package/build/utils/string.d.ts +3 -2
  122. package/build/utils/string.js +16 -3
  123. package/package.json +1 -1
  124. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +0 -19
  125. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +0 -52
  126. package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +0 -3
  127. package/build/features/individual/screens/ShowIndividualInfo/index.js +0 -2
  128. package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +0 -7
  129. package/build/features/individual/screens/ShowIndividualInfo/info.js +0 -28
@@ -26,6 +26,19 @@ export interface CountryCode {
26
26
  digits: number;
27
27
  supported_by_tap: boolean;
28
28
  }
29
+ export interface City {
30
+ id: string;
31
+ country: string;
32
+ name: {
33
+ id: string;
34
+ en: string;
35
+ };
36
+ state: string;
37
+ un_locode: string;
38
+ coordinates: {
39
+ longitude: string;
40
+ };
41
+ }
29
42
  export interface BusinessCountry {
30
43
  name: string;
31
44
  code: string;
@@ -296,4 +309,15 @@ export interface TermsProps {
296
309
  term: string;
297
310
  agree: boolean;
298
311
  }
312
+ export declare enum IndividualGender {
313
+ MALE = "m",
314
+ FEMALE = "f"
315
+ }
316
+ export declare enum IndividualType {
317
+ USER = "user",
318
+ SHARE_HOLDER = "shareholder",
319
+ BOARD_MEMBER = "board_member",
320
+ CUSTOMER = "customer",
321
+ BUYER = "buyer"
322
+ }
299
323
  export {};
@@ -46,3 +46,16 @@ export var FieldType;
46
46
  FieldType["EDITABLE"] = "editable";
47
47
  FieldType["NON_EDITABLE"] = "noneditable";
48
48
  })(FieldType || (FieldType = {}));
49
+ export var IndividualGender;
50
+ (function (IndividualGender) {
51
+ IndividualGender["MALE"] = "m";
52
+ IndividualGender["FEMALE"] = "f";
53
+ })(IndividualGender || (IndividualGender = {}));
54
+ export var IndividualType;
55
+ (function (IndividualType) {
56
+ IndividualType["USER"] = "user";
57
+ IndividualType["SHARE_HOLDER"] = "shareholder";
58
+ IndividualType["BOARD_MEMBER"] = "board_member";
59
+ IndividualType["CUSTOMER"] = "customer";
60
+ IndividualType["BUYER"] = "buyer";
61
+ })(IndividualType || (IndividualType = {}));
@@ -1,4 +1,4 @@
1
- import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, Occupation, SaleChannel, Segment, SourceOfIncome, TeamSize } from './app';
1
+ import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, Occupation, SaleChannel, Segment, SourceOfIncome, TeamSize, City } from './app';
2
2
  export declare type MobileFormValues = {
3
3
  mobile: string;
4
4
  countryCode: CountryCode;
@@ -77,6 +77,20 @@ export declare type TaxFormValues = {
77
77
  confirmPolicy: false;
78
78
  documentId?: Array<string>;
79
79
  };
80
+ export interface IndividualPersonalInfoFormValues {
81
+ name: string;
82
+ email: string;
83
+ mobile: string | null;
84
+ countryCode: CountryCode;
85
+ gender: string | null;
86
+ nid: string;
87
+ issuedCountry: CountryCode | undefined;
88
+ expiryDate: string;
89
+ dob: string;
90
+ placeOfBirthCountry: CountryCode | undefined;
91
+ placeOfBirthCity: City | undefined;
92
+ nationality: CountryCode | undefined;
93
+ }
80
94
  export interface IndividualExtraFormValues extends IndividualAttachmentsFormValues {
81
95
  occupation: Occupation | undefined;
82
96
  sourceIncome: SourceOfIncome | undefined;
@@ -2,3 +2,4 @@ export * from './theme';
2
2
  export * from './redux';
3
3
  export * from './app';
4
4
  export * from './form';
5
+ export * from './user';
@@ -2,3 +2,4 @@ export * from './theme';
2
2
  export * from './redux';
3
3
  export * from './app';
4
4
  export * from './form';
5
+ export * from './user';
@@ -0,0 +1,141 @@
1
+ export interface User {
2
+ id: string;
3
+ type: string;
4
+ status: string;
5
+ created: number;
6
+ names: Names;
7
+ contact: Contact;
8
+ nationality: string;
9
+ gender: string;
10
+ birth: Birth;
11
+ identification: Identification;
12
+ role: Role[];
13
+ is_authorized: boolean;
14
+ verification: Verification;
15
+ source_income: Role[];
16
+ occupation: Role;
17
+ entities: Entity[];
18
+ documents: string[];
19
+ monthly_income: Role;
20
+ employer_country: string;
21
+ is_relative_PEP: boolean;
22
+ is_influencer: boolean;
23
+ is_verified: boolean;
24
+ individual_id: string;
25
+ data_status: DataStatus;
26
+ data_verification: DataVerification;
27
+ isRequestedEmail?: boolean;
28
+ }
29
+ interface DataVerification {
30
+ status: string;
31
+ name: string;
32
+ contact: Contact;
33
+ nationality: string;
34
+ birth: BirthDataVerify;
35
+ identification: IdentificationDataVerify;
36
+ role: string;
37
+ relation: string;
38
+ occupation: string;
39
+ address: string;
40
+ is_authorized: string;
41
+ source_of_income: string;
42
+ monthly_income: string;
43
+ is_relative_PEP: string;
44
+ is_influencer: string;
45
+ }
46
+ interface BirthDataVerify {
47
+ date: string;
48
+ city: string;
49
+ country: string;
50
+ }
51
+ interface DataStatus {
52
+ status: string;
53
+ name: string;
54
+ contact: Contact;
55
+ nationality: string;
56
+ identification: IdentificationDataVerify;
57
+ role: string;
58
+ relation: string;
59
+ occupation: string;
60
+ address: string;
61
+ is_authorized: string;
62
+ source_of_income: string;
63
+ monthly_income: string;
64
+ is_relative_PEP: string;
65
+ is_influencer: string;
66
+ }
67
+ interface IdentificationDataVerify {
68
+ id: string;
69
+ type: string;
70
+ expiry: string;
71
+ issuer_country: string;
72
+ }
73
+ interface Entity {
74
+ id: string;
75
+ operator_id: string;
76
+ }
77
+ interface Verification {
78
+ national_id: NationalId;
79
+ identification: NationalId;
80
+ phone: NationalId;
81
+ date_of_birth: NationalId;
82
+ name: NationalId;
83
+ login: NationalId;
84
+ email: Email;
85
+ }
86
+ interface Email {
87
+ type: string;
88
+ is_verified: boolean;
89
+ verified_at: number;
90
+ }
91
+ interface NationalId {
92
+ type: string;
93
+ is_verified: boolean;
94
+ verified_at: number;
95
+ verified_by: string;
96
+ }
97
+ interface Role {
98
+ id: string;
99
+ name: Name;
100
+ }
101
+ interface Name {
102
+ ar: string;
103
+ en: string;
104
+ }
105
+ interface Identification {
106
+ id: string;
107
+ issued_country_code: string;
108
+ type: string;
109
+ expiry: number;
110
+ }
111
+ interface Birth {
112
+ date: number;
113
+ city: string;
114
+ country: string;
115
+ }
116
+ interface Contact {
117
+ email: string;
118
+ phone: Phone;
119
+ }
120
+ interface Phone {
121
+ country_code: string;
122
+ number: string;
123
+ }
124
+ interface Names {
125
+ ar: Ar;
126
+ en: En;
127
+ }
128
+ interface En {
129
+ title: string;
130
+ first: string;
131
+ middle: string;
132
+ last: string;
133
+ third: string;
134
+ }
135
+ interface Ar {
136
+ first: string;
137
+ middle: string;
138
+ last: string;
139
+ third: string;
140
+ }
141
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -16,6 +16,21 @@ export declare type UpdateBoardInfoBody = {
16
16
  lang: string;
17
17
  encryption_contract?: string;
18
18
  };
19
+ export interface RequestEmailBody {
20
+ id: string;
21
+ merchant_id: string;
22
+ info: Array<{
23
+ name: string;
24
+ }>;
25
+ notification: Notification;
26
+ }
27
+ interface Notification {
28
+ recipient: {
29
+ id: string;
30
+ type: string;
31
+ };
32
+ channel: string[];
33
+ }
19
34
  declare const boardService: {
20
35
  retrieveBoard: (id: string) => Promise<any>;
21
36
  updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
@@ -23,5 +38,6 @@ declare const boardService: {
23
38
  updateBoardInfo: ({ id, infoId, ...data }: UpdateBoardInfoBody) => Promise<any>;
24
39
  retrieveBoardDetails: (id: string) => Promise<any>;
25
40
  retrieveBoardInfoStatus: (id: string) => Promise<any>;
41
+ requestDetailsByEmail: ({ id, ...data }: RequestEmailBody) => Promise<any>;
26
42
  };
27
43
  export { boardService };
@@ -52,12 +52,21 @@ var updateBoardInfo = function (_a) {
52
52
  data: data
53
53
  });
54
54
  };
55
+ var requestDetailsByEmail = function (_a) {
56
+ var id = _a.id, data = __rest(_a, ["id"]);
57
+ return httpClient({
58
+ method: 'post',
59
+ url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/info/collect"),
60
+ data: data
61
+ });
62
+ };
55
63
  var boardService = {
56
64
  retrieveBoard: retrieveBoard,
57
65
  updateBoard: updateBoard,
58
66
  retrieveBoardInfo: retrieveBoardInfo,
59
67
  updateBoardInfo: updateBoardInfo,
60
68
  retrieveBoardDetails: retrieveBoardDetails,
61
- retrieveBoardInfoStatus: retrieveBoardInfoStatus
69
+ retrieveBoardInfoStatus: retrieveBoardInfoStatus,
70
+ requestDetailsByEmail: requestDetailsByEmail
62
71
  };
63
72
  export { boardService };
@@ -1,6 +1,10 @@
1
+ export declare type GetCitiesBody = {
2
+ country: string[];
3
+ };
1
4
  declare const countryService: {
2
5
  getCountries: (disableCountries?: boolean) => Promise<any> | {
3
6
  list: never[];
4
7
  };
8
+ getCities: (data: GetCitiesBody) => Promise<any>;
5
9
  };
6
10
  export { countryService };
@@ -8,7 +8,15 @@ var getCountries = function (disableCountries) {
8
8
  url: ENDPOINT_PATHS.COUNTRIES
9
9
  });
10
10
  };
11
+ var getCities = function (data) {
12
+ return httpClient({
13
+ method: 'post',
14
+ url: ENDPOINT_PATHS.CITIES,
15
+ data: data
16
+ });
17
+ };
11
18
  var countryService = {
12
- getCountries: getCountries
19
+ getCountries: getCountries,
20
+ getCities: getCities
13
21
  };
14
22
  export { countryService };
@@ -6,8 +6,9 @@ import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
6
  import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, UpdateEntityActivityBody, UpdateEntityCapitalBody } from './entity';
7
7
  import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
- import { BrandListBody, UpdateBrandBody, UpdateIndividualBody } from './individual';
10
- import { UpdateBoardBody } from './board';
9
+ import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody } from './individual';
10
+ import { UpdateBoardBody, RequestEmailBody } from './board';
11
+ import { GetUserListBody } from './user';
11
12
  import { UploadFileBody } from './file';
12
13
  declare const API: {
13
14
  locationService: {
@@ -21,6 +22,7 @@ declare const API: {
21
22
  getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
22
23
  list: never[];
23
24
  };
25
+ getCities: (data: import("./country").GetCitiesBody) => Promise<any>;
24
26
  };
25
27
  authService: {
26
28
  createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
@@ -106,6 +108,7 @@ declare const API: {
106
108
  retrieveIndividualInfo: (id: string) => Promise<any>;
107
109
  retrieveIndividual: (id: string, type: string) => Promise<any>;
108
110
  updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
111
+ getIndividualList: (data: GetIndividualListBody) => Promise<any>;
109
112
  };
110
113
  boardService: {
111
114
  retrieveBoard: (id: string) => Promise<any>;
@@ -114,9 +117,11 @@ declare const API: {
114
117
  updateBoardInfo: ({ id, infoId, ...data }: import("./board").UpdateBoardInfoBody) => Promise<any>;
115
118
  retrieveBoardDetails: (id: string) => Promise<any>;
116
119
  retrieveBoardInfoStatus: (id: string) => Promise<any>;
120
+ requestDetailsByEmail: ({ id, ...data }: RequestEmailBody) => Promise<any>;
117
121
  };
118
122
  userService: {
119
123
  retrieveUserInfo: (userId: string) => Promise<any>;
124
+ getUserList: (data: GetUserListBody) => Promise<any>;
120
125
  };
121
126
  brandService: {
122
127
  retrieveBrand: (id: string) => Promise<any>;
@@ -130,6 +135,6 @@ declare const API: {
130
135
  uploadFileInfo: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
131
136
  };
132
137
  };
133
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo };
138
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody };
134
139
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
135
140
  export default API;
@@ -1,4 +1,4 @@
1
- import { DocumentInfo } from '../api/entity';
1
+ import { DocumentInfo } from './entity';
2
2
  export declare type BrandListBody = {
3
3
  individual_id: string;
4
4
  };
@@ -70,6 +70,42 @@ export declare type UpdateSalesChannels = {
70
70
  export declare type UpdateIndividualBody = {
71
71
  id: string;
72
72
  type: string;
73
+ names?: {
74
+ en?: {
75
+ title?: string;
76
+ first?: string;
77
+ middle?: string;
78
+ third?: string;
79
+ last?: string;
80
+ };
81
+ ar?: {
82
+ title?: string;
83
+ first?: string;
84
+ middle?: string;
85
+ third?: string;
86
+ last?: string;
87
+ };
88
+ };
89
+ gender?: string;
90
+ contact?: {
91
+ email?: string;
92
+ phone?: {
93
+ country_code?: string;
94
+ number?: string;
95
+ };
96
+ };
97
+ date_of_birth?: string;
98
+ birth?: {
99
+ city?: string;
100
+ country?: string;
101
+ };
102
+ identification?: {
103
+ id?: string;
104
+ issued_country_code?: string;
105
+ expiry?: string;
106
+ type?: string;
107
+ };
108
+ nationality?: string;
73
109
  employer_name?: string;
74
110
  employer_country?: string | null;
75
111
  source_income?: Array<{
@@ -87,9 +123,15 @@ export declare type UpdateIndividualBody = {
87
123
  step_name: string;
88
124
  encryption_contract?: Array<string>;
89
125
  };
126
+ export declare type GetIndividualListBody = {
127
+ page: number;
128
+ limit: number;
129
+ business_id: string;
130
+ };
90
131
  declare const individualService: {
91
132
  retrieveIndividualInfo: (id: string) => Promise<any>;
92
133
  retrieveIndividual: (id: string, type: string) => Promise<any>;
93
134
  updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
135
+ getIndividualList: (data: GetIndividualListBody) => Promise<any>;
94
136
  };
95
137
  export { individualService };
@@ -31,9 +31,17 @@ var updateIndividual = function (_a) {
31
31
  data: data
32
32
  });
33
33
  };
34
+ var getIndividualList = function (data) {
35
+ return httpClient({
36
+ method: 'post',
37
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/all"),
38
+ data: data
39
+ });
40
+ };
34
41
  var individualService = {
35
42
  retrieveIndividualInfo: retrieveIndividualInfo,
36
43
  retrieveIndividual: retrieveIndividual,
37
- updateIndividual: updateIndividual
44
+ updateIndividual: updateIndividual,
45
+ getIndividualList: getIndividualList
38
46
  };
39
47
  export { individualService };
@@ -2,7 +2,13 @@ export declare type UserCredential = {
2
2
  code: string;
3
3
  phone: string;
4
4
  };
5
+ export declare type GetUserListBody = {
6
+ page: number;
7
+ limit: number;
8
+ business_id: string;
9
+ };
5
10
  declare const userService: {
6
11
  retrieveUserInfo: (userId: string) => Promise<any>;
12
+ getUserList: (data: GetUserListBody) => Promise<any>;
7
13
  };
8
14
  export { userService };
package/build/api/user.js CHANGED
@@ -6,7 +6,15 @@ var retrieveUserInfo = function (userId) {
6
6
  url: "".concat(ENDPOINT_PATHS.RETRIEVE_USER_INFO, "/").concat(userId)
7
7
  });
8
8
  };
9
+ var getUserList = function (data) {
10
+ return httpClient({
11
+ method: 'post',
12
+ url: "".concat(ENDPOINT_PATHS.RETRIEVE_USER_INFO, "/list"),
13
+ data: data
14
+ });
15
+ };
9
16
  var userService = {
10
- retrieveUserInfo: retrieveUserInfo
17
+ retrieveUserInfo: retrieveUserInfo,
18
+ getUserList: getUserList
11
19
  };
12
20
  export { userService };
@@ -38,7 +38,6 @@
38
38
  "apple_store_placeholder": "اسم التطبيق عالـ App Store",
39
39
  "authenticate_kuwait_mobile_description": "Please go to your Kuwait Mobile ID app and accept the authentication request from Tap.",
40
40
  "authenticate_kuwait_mobile_title": "Authenticate with Kuwait Mobile ID app",
41
- "back": "Back",
42
41
  "bank": "رقم حساب البنك",
43
42
  "bank_confirm_information": "أتعهد بأن المعلومات البنكية المدخلة صحيحة وأنها تعود إلي",
44
43
  "bank_flow_completed": "{{bank_name}} {{iban}}",
@@ -362,5 +361,26 @@
362
361
  "prepare_data_title": "Preparing your data",
363
362
  "prepare_data_description": "This might take a moment...",
364
363
  "oops": "Oops",
365
- "file_upload_at_least_one": "عذرا,مطلوب رفع ملف واحد على الأقل"
364
+ "file_upload_at_least_one": "عذرا,مطلوب رفع ملف واحد على الأقل",
365
+ "company_individuals": "الأفراد بالشركة",
366
+ "company_individuals_add_or_request_details": "أضف او أطلب المعلومات من الشخص المصرح له بذلك",
367
+ "add_details": "أضف المعلومات",
368
+ "request_details_by_email": "اطلب إضافة المعلومات بالايميل",
369
+ "back": "عودة",
370
+ "company_individuals_details": "الأفراد بالشركة ({{count}})",
371
+ "type_user": "المستخدم",
372
+ "type_share_holder": "مساهم",
373
+ "type_board_member": "عضو مجلس الإدارة",
374
+ "individual_gender_title": "النوع",
375
+ "gender_male": "ذكر",
376
+ "gender_female": "أنثى",
377
+ "source_country_label": "الدولة",
378
+ "Choose_issued_country": "- اختر -",
379
+ "enter_expiry_date": "تاريخ انتهاء الصلاحية",
380
+ "place_of_birth_country_label": "مكان الميلاد",
381
+ "Choose_place_of_birth_country": "- اختر -",
382
+ "place_birth_city_label": "مكان الميلاد",
383
+ "Choose_place_birth_city": "- اختر -",
384
+ "nationality_label": "الجنسية",
385
+ "Choose_nationality": "- اختر -"
366
386
  }
@@ -391,5 +391,26 @@
391
391
  "prepare_data_title": "Preparing your data",
392
392
  "prepare_data_description": "This might take a moment...",
393
393
  "oops": "Oops",
394
- "file_upload_at_least_one": "please upload at least one file"
394
+ "file_upload_at_least_one": "please upload at least one file",
395
+ "company_individuals": "Company Individuals",
396
+ "company_individuals_add_or_request_details": "Add or request details for authorized signatories",
397
+ "add_details": "Add details",
398
+ "request_details_by_email": "Request details by email",
399
+ "back": "Back",
400
+ "company_individuals_details": "Company individuals details ({{count}})",
401
+ "type_user": "User",
402
+ "type_share_holder": "Share holder",
403
+ "type_board_member": "Board member",
404
+ "individual_gender_title": "Gender",
405
+ "gender_male": "Male",
406
+ "gender_female": "Female",
407
+ "issued_country_label": "Issued Country",
408
+ "choose_issued_country": "- Please select -",
409
+ "enter_expiry_date": "Expiry Date",
410
+ "place_of_birth_country_label": "Place of Birth County",
411
+ "choose_place_of_birth_country": "- Please select -",
412
+ "place_birth_city_label": "Place of Birth City",
413
+ "choose_place_birth_city": "- Please select -",
414
+ "nationality_label": "Nationality",
415
+ "choose_nationality": "- Please select -"
395
416
  }
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ListProps } from '@mui/material/List';
3
3
  import { ListItemProps } from '@mui/material/ListItem';
4
+ import { SxProps, Theme } from '@mui/material/styles';
4
5
  export interface SimpleListProps<T> extends ListProps {
5
6
  list: Array<T>;
6
7
  listItemProps?: ListItemProps;
@@ -8,6 +9,7 @@ export interface SimpleListProps<T> extends ListProps {
8
9
  renderItem: (item: T, idx: number) => React.ReactElement;
9
10
  searchKeyPath?: string;
10
11
  searchValuePath?: string[];
12
+ sx?: SxProps<Theme>;
11
13
  }
12
14
  declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, searchValuePath, ...rest }: SimpleListProps<T>): JSX.Element;
13
15
  declare namespace SimpleList {
@@ -45,4 +45,5 @@ export declare const ENDPOINT_PATHS: {
45
45
  CREATE_AUTH_NID: string;
46
46
  SEGMENTS_PATH: string;
47
47
  TEAM_SIZE_PATH: string;
48
+ CITIES: string;
48
49
  };
@@ -3,6 +3,7 @@ var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
4
4
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
5
5
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
6
+ var CITIES_PATH = '/country/state/city/list';
6
7
  var IP_PATH = '/ip';
7
8
  var OPERATOR_PATH = '/operator';
8
9
  var AUTH_PATH = '/auth';
@@ -91,5 +92,6 @@ export var ENDPOINT_PATHS = {
91
92
  DOCUMENT: DOCUMENT_PATH,
92
93
  CREATE_AUTH_NID: CREATE_AUTH_NID_PATH,
93
94
  SEGMENTS_PATH: SEGMENTS_PATH,
94
- TEAM_SIZE_PATH: TEAM_SIZE_PATH
95
+ TEAM_SIZE_PATH: TEAM_SIZE_PATH,
96
+ CITIES: CITIES_PATH
95
97
  };
@@ -136,6 +136,7 @@ export declare const TAX_STEP_NAMES: {
136
136
  };
137
137
  export declare const INDIVIDUAl_STEP_NAMES: {
138
138
  PHONE_AUTH: string;
139
+ INDIVIDUAl_PERSONAL_INFO: string;
139
140
  INDIVIDUAl_INFO: string;
140
141
  INDIVIDUAl_SUCCESS: string;
141
142
  };
@@ -241,39 +241,51 @@ export var BUSINESS_SCREENS_NAVIGATION = [
241
241
  export var INDIVIDUAL_SCREENS_NAVIGATION = [
242
242
  {
243
243
  name: 'INDIVIDUAL_VERIFY_STEP',
244
- next: ['INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'],
244
+ next: ['INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP', 'INDIVIDUAL_LIST_STEP'],
245
245
  prev: '',
246
246
  order: 1
247
247
  },
248
+ {
249
+ name: 'INDIVIDUAL_LIST_STEP',
250
+ next: ['INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'],
251
+ prev: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
252
+ order: 1
253
+ },
248
254
  {
249
255
  name: 'INDIVIDUAL_LOADING_DATA_STEP',
250
- next: ['INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'],
256
+ next: ['INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP', 'INDIVIDUAL_LIST_STEP'],
251
257
  prev: '',
252
258
  order: 1
253
259
  },
260
+ {
261
+ name: 'INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP',
262
+ next: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
263
+ prev: 'INDIVIDUAL_LIST_STEP',
264
+ order: 2
265
+ },
254
266
  {
255
267
  name: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
256
268
  next: 'INDIVIDUAL_SUCCESS_STEP',
257
- prev: 'INDIVIDUAL_VERIFY_STEP',
258
- order: 2
269
+ prev: 'INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP',
270
+ order: 3
259
271
  },
260
272
  {
261
273
  name: 'INDIVIDUAL_SUCCESS_STEP',
262
274
  next: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
263
275
  prev: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
264
- order: 3
276
+ order: 4
265
277
  },
266
278
  {
267
279
  name: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
268
280
  next: 'INDIVIDUAL_RESET_PASSWORD_SUCCESS',
269
281
  prev: '',
270
- order: 4
282
+ order: 5
271
283
  },
272
284
  {
273
285
  name: 'INDIVIDUAL_RESET_PASSWORD_SUCCESS',
274
286
  next: '',
275
287
  prev: '',
276
- order: 5
288
+ order: 6
277
289
  }
278
290
  ];
279
291
  export var PASSWORD_SCREENS_NAVIGATION = [
@@ -615,6 +627,7 @@ export var TAX_STEP_NAMES = {
615
627
  };
616
628
  export var INDIVIDUAl_STEP_NAMES = {
617
629
  PHONE_AUTH: 'individual_phone_auth',
630
+ INDIVIDUAl_PERSONAL_INFO: 'individual_personal_info',
618
631
  INDIVIDUAl_INFO: 'individual_info',
619
632
  INDIVIDUAl_SUCCESS: 'individual_completed'
620
633
  };