@tap-payments/auth-jsconnect 2.0.108-test → 2.0.109-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 (28) hide show
  1. package/build/@types/form.d.ts +6 -4
  2. package/build/api/entity.d.ts +30 -0
  3. package/build/api/entity.js +35 -1
  4. package/build/api/index.d.ts +6 -2
  5. package/build/assets/locales/ar.json +3 -1
  6. package/build/assets/locales/en.json +3 -1
  7. package/build/constants/app.js +1 -1
  8. package/build/constants/assets.d.ts +3 -0
  9. package/build/constants/assets.js +3 -0
  10. package/build/features/app/entity/entityStore.d.ts +27 -7
  11. package/build/features/app/entity/entityStore.js +219 -145
  12. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -0
  13. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +21 -11
  14. package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +3 -0
  15. package/build/features/entity/screens/EntityInfoConfirm/Article.js +73 -0
  16. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +25 -6
  17. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +20 -5
  18. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +25 -4
  19. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +9 -17
  20. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +12 -51
  21. package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -10
  22. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  23. package/build/features/entity/screens/Verify/Verify.js +4 -4
  24. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -1
  25. package/build/features/shared/UploadFile/UploadFile.js +3 -3
  26. package/package.json +1 -1
  27. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
  28. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -115
@@ -82,9 +82,11 @@ export declare type PasswordCreateFormValues = {
82
82
  confirmPassword: string;
83
83
  };
84
84
  export declare type EntityFormValues = {
85
- licenseNumber?: string;
86
- licenseName?: string;
87
- activities?: Array<Activity>;
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
  };
@@ -53,6 +53,32 @@ export declare type UploadFileBody = {
53
53
  title: string | undefined;
54
54
  purpose: string;
55
55
  };
56
+ export declare type EntityLicenseBody = {
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
+ encryption_contract?: Array<string>;
68
+ };
69
+ export declare type EntityActivitiesBody = {
70
+ id: string;
71
+ activities?: Array<{
72
+ id: string;
73
+ }>;
74
+ };
75
+ export declare type EntityNameBody = {
76
+ id: string;
77
+ legal_name: {
78
+ ar: string;
79
+ en: string;
80
+ };
81
+ };
56
82
  export declare type DocumentInfo = {
57
83
  type?: string;
58
84
  number?: string;
@@ -73,6 +99,10 @@ declare const entityService: {
73
99
  retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
74
100
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
75
101
  uploadFileInfo: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<any>;
102
+ updateEntityLicense: ({ id, ...data }: EntityLicenseBody) => Promise<any>;
103
+ updateEntityName: ({ id, ...data }: EntityNameBody) => Promise<any>;
104
+ updateEntityActivities: ({ id, ...data }: EntityActivitiesBody) => Promise<any>;
76
105
  updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
106
+ retrieveEntity: (entity_id: string) => Promise<any>;
77
107
  };
78
108
  export { entityService };
@@ -33,6 +33,36 @@ 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 updateEntityActivities = 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, "/activities/add"),
47
+ data: data
48
+ });
49
+ };
50
+ var updateEntityName = function (_a) {
51
+ var id = _a.id, data = __rest(_a, ["id"]);
52
+ return httpClient({
53
+ method: 'put',
54
+ url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/name"),
55
+ data: data
56
+ });
57
+ };
58
+ var updateEntityLicense = function (_a) {
59
+ var id = _a.id, data = __rest(_a, ["id"]);
60
+ return httpClient({
61
+ method: 'put',
62
+ url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/license"),
63
+ data: data
64
+ });
65
+ };
36
66
  var createBankAccount = function (data, config) {
37
67
  return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
38
68
  };
@@ -68,6 +98,10 @@ var entityService = {
68
98
  retrieveEntityInfo: retrieveEntityInfo,
69
99
  updateIndividualInfo: updateIndividualInfo,
70
100
  uploadFileInfo: uploadFileInfo,
71
- updateDocumentInfo: updateDocumentInfo
101
+ updateEntityLicense: updateEntityLicense,
102
+ updateEntityName: updateEntityName,
103
+ updateEntityActivities: updateEntityActivities,
104
+ updateDocumentInfo: updateDocumentInfo,
105
+ retrieveEntity: retrieveEntity
72
106
  };
73
107
  export { entityService };
@@ -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, EntityLicenseBody, EntityActivitiesBody, EntityNameBody, DocumentUpdateBody, DocumentInfo } from './entity';
7
7
  import { CreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
9
  import { BrandListBody, UpdateBrandBody, UpdateIndividualBody } from './individual';
@@ -45,7 +45,11 @@ declare const API: {
45
45
  retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
46
46
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
47
47
  uploadFileInfo: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
48
+ updateEntityLicense: ({ id, ...data }: EntityLicenseBody) => Promise<any>;
49
+ updateEntityName: ({ id, ...data }: EntityNameBody) => Promise<any>;
50
+ updateEntityActivities: ({ id, ...data }: EntityActivitiesBody) => Promise<any>;
48
51
  updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
52
+ retrieveEntity: (entity_id: string) => Promise<any>;
49
53
  };
50
54
  availabilityServices: {
51
55
  checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -105,6 +109,6 @@ declare const API: {
105
109
  updateBrandSales: ({ id, ...data }: import("./individual").UpdateSalesChannels) => void;
106
110
  };
107
111
  };
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 };
112
+ export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, EntityLicenseBody, EntityActivitiesBody, EntityNameBody, DocumentUpdateBody, DocumentInfo, VerifyAuthKitOTPBody, UpdateIndividualBody };
109
113
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
110
114
  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
  }
@@ -317,7 +317,7 @@ export var ENTITY_SCREENS_NAVIGATION = [
317
317
  {
318
318
  name: 'ENTITY_INFO_STEP',
319
319
  next: 'ENTITY_DETAILS_SUCCESS_STEP',
320
- prev: '',
320
+ prev: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
321
321
  order: 2
322
322
  },
323
323
  {
@@ -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
- flows: {
7
- name: string;
8
- status: string;
9
- url: string;
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 updateEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
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;