@tap-payments/auth-jsconnect 2.4.21-test → 2.4.25-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.
@@ -101,7 +101,6 @@ export interface IndividualExtraFormValues extends IndividualAttachmentsFormValu
101
101
  sourceIncome: SourceOfIncome | undefined;
102
102
  monthlyIncome: MonthlyIncome | undefined;
103
103
  employerName: string;
104
- employerLocation: CountryCode | undefined;
105
104
  isPEP: boolean | null;
106
105
  isInfluencer: boolean | null;
107
106
  shareCount: string;
@@ -1,6 +1,5 @@
1
1
  export interface User {
2
2
  id: string;
3
- type: string;
4
3
  status: string;
5
4
  created: number;
6
5
  names: Names;
@@ -24,6 +23,15 @@ export interface User {
24
23
  individual_id: string;
25
24
  data_status: DataStatus;
26
25
  data_verification: DataVerification;
26
+ data_state: string;
27
+ object: string;
28
+ shares: {
29
+ count: string;
30
+ value: string;
31
+ };
32
+ ids: Array<string>;
33
+ individual_data_state: string;
34
+ objects: Array<string>;
27
35
  isRequestedEmail?: boolean;
28
36
  }
29
37
  interface DataVerification {
@@ -110,8 +118,19 @@ interface Identification {
110
118
  }
111
119
  interface Birth {
112
120
  date: number;
113
- city: string;
121
+ city: BirthCity;
122
+ country: string;
123
+ }
124
+ interface BirthCity {
125
+ cityId: string;
114
126
  country: string;
127
+ name: {
128
+ arabic: string;
129
+ english: string;
130
+ textId: string;
131
+ };
132
+ state: string;
133
+ un_locode: string;
115
134
  }
116
135
  interface Contact {
117
136
  email: string;
@@ -6,7 +6,7 @@ import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
6
  import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity } from './entity';
7
7
  import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
- import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody } from './individual';
9
+ import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody } from './individual';
10
10
  import { UpdateBoardBody, RequestEmailBody } from './board';
11
11
  import { GetUserListBody } from './user';
12
12
  import { RemoveBrandActivity } from './brand';
@@ -113,8 +113,9 @@ declare const API: {
113
113
  individualService: {
114
114
  retrieveIndividualInfo: (id: string) => Promise<any>;
115
115
  retrieveIndividual: (id: string, type: string) => Promise<any>;
116
- updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
116
+ updateIndividual: ({ id, type, ...data }: UpdateIndividualWithTypeBody) => Promise<any>;
117
117
  getIndividualList: (data: GetIndividualListBody) => Promise<any>;
118
+ updateMultipleIndividual: (data: UpdateMultipleIndividualBody) => Promise<any>;
118
119
  };
119
120
  boardService: {
120
121
  retrieveBoard: (id: string) => Promise<any>;
@@ -151,6 +152,6 @@ declare const API: {
151
152
  getInitialData: (body: InitBody) => Promise<any>;
152
153
  };
153
154
  };
154
- 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, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity };
155
+ 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, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody };
155
156
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
156
157
  export default API;
@@ -73,8 +73,6 @@ export declare type UpdateSalesChannels = {
73
73
  }>;
74
74
  };
75
75
  export declare type UpdateIndividualBody = {
76
- id: string;
77
- type: string;
78
76
  names?: {
79
77
  en?: {
80
78
  title?: string;
@@ -132,6 +130,13 @@ export declare type UpdateIndividualBody = {
132
130
  step_name?: string;
133
131
  encryption_contract?: Array<string>;
134
132
  };
133
+ export interface UpdateIndividualWithTypeBody extends UpdateIndividualBody {
134
+ id: string;
135
+ type: string;
136
+ }
137
+ export interface UpdateMultipleIndividualBody extends UpdateIndividualBody {
138
+ ids: Array<string>;
139
+ }
135
140
  export declare type GetIndividualListBody = {
136
141
  page: number;
137
142
  limit: number;
@@ -140,7 +145,8 @@ export declare type GetIndividualListBody = {
140
145
  declare const individualService: {
141
146
  retrieveIndividualInfo: (id: string) => Promise<any>;
142
147
  retrieveIndividual: (id: string, type: string) => Promise<any>;
143
- updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
148
+ updateIndividual: ({ id, type, ...data }: UpdateIndividualWithTypeBody) => Promise<any>;
144
149
  getIndividualList: (data: GetIndividualListBody) => Promise<any>;
150
+ updateMultipleIndividual: (data: UpdateMultipleIndividualBody) => Promise<any>;
145
151
  };
146
152
  export { individualService };
@@ -31,6 +31,13 @@ var updateIndividual = function (_a) {
31
31
  data: data
32
32
  });
33
33
  };
34
+ var updateMultipleIndividual = function (data) {
35
+ return httpClient({
36
+ method: 'put',
37
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/multi"),
38
+ data: data
39
+ });
40
+ };
34
41
  var getIndividualList = function (data) {
35
42
  return httpClient({
36
43
  method: 'post',
@@ -42,6 +49,7 @@ var individualService = {
42
49
  retrieveIndividualInfo: retrieveIndividualInfo,
43
50
  retrieveIndividual: retrieveIndividual,
44
51
  updateIndividual: updateIndividual,
45
- getIndividualList: getIndividualList
52
+ getIndividualList: getIndividualList,
53
+ updateMultipleIndividual: updateMultipleIndividual
46
54
  };
47
55
  export { individualService };
@@ -49,9 +49,11 @@ export declare const ICONS_NAMES: {
49
49
  WHITE_ARROW: string;
50
50
  BLACK_ARROW: string;
51
51
  BLUE_ARROW: string;
52
+ GREEN_ARROW: string;
52
53
  REQUEST_EMAIL: string;
53
54
  REQUEST_EMAIL_GREEN: string;
54
55
  ADD_DETAIL: string;
56
+ ADD_DETAIL_GREEN: string;
55
57
  SUCCESS: string;
56
58
  UNFINISHED: string;
57
59
  ABSHER_LOGO: string;
@@ -49,9 +49,11 @@ export var ICONS_NAMES = {
49
49
  WHITE_ARROW: 'https://tap-connecet.b-cdn.net/imgs/whiteArrow.svg',
50
50
  BLACK_ARROW: 'https://dash.b-cdn.net/icons/menu/arrow_right_icon.svg',
51
51
  BLUE_ARROW: 'https://dash.b-cdn.net/icons/menu/blue_arrow_next.svg',
52
+ GREEN_ARROW: 'https://dash.b-cdn.net/icons/menu/green_arrow_next.svg',
52
53
  REQUEST_EMAIL: 'https://dash.b-cdn.net/icons/menu/request_email.svg',
53
54
  REQUEST_EMAIL_GREEN: 'https://dash.b-cdn.net/icons/menu/request_email_green.svg',
54
55
  ADD_DETAIL: 'https://dash.b-cdn.net/icons/menu/add_detail.svg',
56
+ ADD_DETAIL_GREEN: 'https://dash.b-cdn.net/icons/menu/add_detail_green.svg',
55
57
  SUCCESS: 'https://dash.b-cdn.net/icons/menu/image.png',
56
58
  UNFINISHED: 'https://dash.b-cdn.net/icons/menu/not-finished.png',
57
59
  ABSHER_LOGO: 'https://dash.b-cdn.net/icons/menu/Absher.svg',
@@ -1,5 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState, ActionState, User, IndividualPersonalInfoFormValues, IndividualEmailMobileFormValues, IndividualMobileFormValues, AsyncThunkParams } from '../../../@types';
2
+ import { FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState, ActionState, User, IndividualPersonalInfoFormValues, IndividualEmailMobileFormValues, IndividualMobileFormValues, AsyncThunkParams } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
4
  interface VerifyLeadTokenProps {
5
5
  token: string;
@@ -17,7 +17,7 @@ export declare const verifyToken: import("@reduxjs/toolkit").AsyncThunk<{
17
17
  name: any;
18
18
  contact: any;
19
19
  individuals: any;
20
- countries: CountryCode[];
20
+ countries: import("../../../@types").CountryCode[];
21
21
  countryCode: any;
22
22
  notification: any;
23
23
  business: any;
@@ -35,6 +35,9 @@ declare type AddDetailsParams = {
35
35
  };
36
36
  export declare const addDetailsAsync: import("@reduxjs/toolkit").AsyncThunk<{
37
37
  userList: User[];
38
+ individualId: string;
39
+ countryCode: string;
40
+ countries: import("../../../@types").CountryCode[];
38
41
  }, AddDetailsParams, {}>;
39
42
  declare type RequestEmail = {
40
43
  user: User;
@@ -54,7 +57,7 @@ declare type RetrieveIndividualInfoParams = {
54
57
  export declare const retrieveIndividualInfo: import("@reduxjs/toolkit").AsyncThunk<{
55
58
  data: any;
56
59
  countryCode: string | undefined;
57
- countries: CountryCode[];
60
+ countries: import("../../../@types").CountryCode[];
58
61
  }, RetrieveIndividualInfoParams, {}>;
59
62
  export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
60
63
  sourceIncome: any;
@@ -78,7 +81,7 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
78
81
  name: any;
79
82
  contact: any;
80
83
  individuals: any;
81
- countries: CountryCode[];
84
+ countries: import("../../../@types").CountryCode[];
82
85
  countryCode: any;
83
86
  notification: any;
84
87
  business: any;