@tap-payments/auth-jsconnect 2.0.53-test → 2.0.54-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 (194) hide show
  1. package/build/@types/app.d.ts +4 -15
  2. package/build/@types/app.js +0 -9
  3. package/build/@types/form.d.ts +0 -11
  4. package/build/api/auth.d.ts +1 -14
  5. package/build/api/auth.js +1 -24
  6. package/build/api/axios.js +2 -2
  7. package/build/api/data.d.ts +1 -4
  8. package/build/api/data.js +2 -6
  9. package/build/api/entity.d.ts +0 -2
  10. package/build/api/index.d.ts +1 -5
  11. package/build/app/rootReducer.d.ts +0 -3
  12. package/build/app/rootReducer.js +1 -7
  13. package/build/app/settings.js +2 -8
  14. package/build/app/store.d.ts +1 -7
  15. package/build/assets/locales/ar.json +4 -14
  16. package/build/assets/locales/en.json +4 -14
  17. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -4
  18. package/build/components/AnimationFlow/AnimationFlow.js +7 -5
  19. package/build/components/AnimationFlow/BottomSheet.js +1 -2
  20. package/build/components/AnimationFlow/Dialog.d.ts +1 -4
  21. package/build/components/AnimationFlow/Dialog.js +4 -9
  22. package/build/components/FileInput/DragAndDrop.d.ts +1 -9
  23. package/build/components/FileInput/DragAndDrop.js +8 -113
  24. package/build/components/ProgressBar/index.d.ts +0 -2
  25. package/build/components/ProgressBar/index.js +0 -2
  26. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -2
  27. package/build/components/SocialMediaGroup/SocialMediaGroup.js +34 -27
  28. package/build/constants/api.d.ts +0 -1
  29. package/build/constants/api.js +2 -5
  30. package/build/constants/app.d.ts +0 -15
  31. package/build/constants/app.js +3 -75
  32. package/build/constants/assets.d.ts +1 -17
  33. package/build/constants/assets.js +6 -22
  34. package/build/constants/validation.d.ts +0 -1
  35. package/build/constants/validation.js +0 -1
  36. package/build/features/app/bank/bankStore.d.ts +0 -4
  37. package/build/features/app/bank/bankStore.js +22 -42
  38. package/build/features/app/business/businessStore.js +12 -16
  39. package/build/features/app/connect/connectStore.d.ts +1 -13
  40. package/build/features/app/connect/connectStore.js +4 -164
  41. package/build/features/app/signIn/signInStore.js +2 -2
  42. package/build/features/bank/Bank.js +4 -10
  43. package/build/features/bank/screens/BankDetails/BankDetails.js +2 -2
  44. package/build/features/bank/screens/BankDetails/BankStatement.js +8 -33
  45. package/build/features/business/Business.d.ts +1 -1
  46. package/build/features/business/Business.js +5 -12
  47. package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
  48. package/build/features/business/screens/Activities/SalesChannels.js +1 -1
  49. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  50. package/build/features/connect/Connect.d.ts +1 -2
  51. package/build/features/connect/Connect.js +10 -40
  52. package/build/features/connect/screens/Individual/Individual.js +2 -6
  53. package/build/features/connect/screens/Merchant/Merchant.js +11 -35
  54. package/build/features/connect/screens/Merchant/SocialMedia.js +11 -56
  55. package/build/features/connect/screens/Merchant/validation.d.ts +0 -87
  56. package/build/features/connect/screens/Merchant/validation.js +2 -68
  57. package/build/features/connect/screens/Mobile/Mobile.js +4 -7
  58. package/build/features/featuresScreens.d.ts +0 -3
  59. package/build/features/featuresScreens.js +0 -48
  60. package/build/features/individual/Individual.d.ts +1 -1
  61. package/build/features/individual/Individual.js +5 -12
  62. package/build/features/password/Password.d.ts +1 -1
  63. package/build/features/password/Password.js +5 -12
  64. package/build/features/shared/Background/Background.d.ts +5 -7
  65. package/build/features/shared/Background/Background.js +5 -16
  66. package/build/features/shared/Input/Input.d.ts +1 -1
  67. package/build/features/shared/Input/Input.js +2 -2
  68. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
  69. package/build/features/shared/UploadFile/UploadFile.js +8 -23
  70. package/build/features/signIn/SignIn.d.ts +1 -1
  71. package/build/features/signIn/SignIn.js +4 -12
  72. package/build/features/tax/Tax.d.ts +1 -1
  73. package/build/features/tax/Tax.js +4 -12
  74. package/build/hooks/index.d.ts +0 -1
  75. package/build/hooks/index.js +0 -1
  76. package/build/hooks/useAppConfig.js +0 -2
  77. package/build/hooks/useAppDispatch.d.ts +0 -3
  78. package/build/hooks/useErrorListener.js +2 -3
  79. package/build/index.d.ts +2 -5
  80. package/build/index.js +2 -11
  81. package/build/utils/device.d.ts +0 -1
  82. package/build/utils/device.js +0 -13
  83. package/build/utils/html.d.ts +0 -1
  84. package/build/utils/html.js +0 -6
  85. package/build/utils/locale.js +1 -1
  86. package/build/utils/rsa.d.ts +2 -2
  87. package/build/utils/rsa.js +1 -1
  88. package/build/utils/string.d.ts +20 -22
  89. package/build/utils/string.js +0 -9
  90. package/package.json +129 -129
  91. package/build/components/Lottie/Lottie.d.ts +0 -878
  92. package/build/components/Lottie/Lottie.js +0 -58
  93. package/build/components/Lottie/files/pulsating_circle_waves.json +0 -236
  94. package/build/components/Lottie/files/success.json +0 -425
  95. package/build/components/Lottie/index.d.ts +0 -3
  96. package/build/components/Lottie/index.js +0 -3
  97. package/build/components/ProgressBar/CircularProgressBar.d.ts +0 -14
  98. package/build/components/ProgressBar/CircularProgressBar.js +0 -48
  99. package/build/features/app/auth/authStore.d.ts +0 -35
  100. package/build/features/app/auth/authStore.js +0 -148
  101. package/build/features/app/entity/entityStore.d.ts +0 -53
  102. package/build/features/app/entity/entityStore.js +0 -461
  103. package/build/features/app/otp/otpStore.d.ts +0 -28
  104. package/build/features/app/otp/otpStore.js +0 -153
  105. package/build/features/auth/Auth.d.ts +0 -10
  106. package/build/features/auth/Auth.js +0 -87
  107. package/build/features/auth/index.d.ts +0 -1
  108. package/build/features/auth/index.js +0 -1
  109. package/build/features/auth/screens/OTP/OTP.d.ts +0 -5
  110. package/build/features/auth/screens/OTP/OTP.js +0 -72
  111. package/build/features/auth/screens/OTP/OTPInput.d.ts +0 -5
  112. package/build/features/auth/screens/OTP/OTPInput.js +0 -44
  113. package/build/features/auth/screens/OTP/index.d.ts +0 -3
  114. package/build/features/auth/screens/OTP/index.js +0 -2
  115. package/build/features/auth/screens/OTP/validation.d.ts +0 -8
  116. package/build/features/auth/screens/OTP/validation.js +0 -4
  117. package/build/features/connect/screens/CivilID/CivilID.d.ts +0 -5
  118. package/build/features/connect/screens/CivilID/CivilID.js +0 -85
  119. package/build/features/connect/screens/CivilID/IDNumber.d.ts +0 -7
  120. package/build/features/connect/screens/CivilID/IDNumber.js +0 -59
  121. package/build/features/connect/screens/CivilID/index.d.ts +0 -3
  122. package/build/features/connect/screens/CivilID/index.js +0 -2
  123. package/build/features/connect/screens/CivilID/validation.d.ts +0 -8
  124. package/build/features/connect/screens/CivilID/validation.js +0 -4
  125. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +0 -5
  126. package/build/features/connect/screens/Merchant/SalesChannels.js +0 -114
  127. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +0 -5
  128. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -169
  129. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -5
  130. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -22
  131. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
  132. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
  133. package/build/features/connect/screens/VerifyPACI/index.d.ts +0 -3
  134. package/build/features/connect/screens/VerifyPACI/index.js +0 -2
  135. package/build/features/entity/Entity.d.ts +0 -7
  136. package/build/features/entity/Entity.js +0 -70
  137. package/build/features/entity/index.d.ts +0 -1
  138. package/build/features/entity/index.js +0 -1
  139. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -54
  140. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +0 -139
  141. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
  142. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -56
  143. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
  144. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -17
  145. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
  146. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -28
  147. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
  148. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -38
  149. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
  150. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
  151. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
  152. package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
  153. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -107
  154. package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -17
  155. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -5
  156. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -9
  157. package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +0 -3
  158. package/build/features/entity/screens/ResetPasswordSuccess/index.js +0 -2
  159. package/build/features/entity/screens/Success/Success.d.ts +0 -5
  160. package/build/features/entity/screens/Success/Success.js +0 -16
  161. package/build/features/entity/screens/Success/index.d.ts +0 -3
  162. package/build/features/entity/screens/Success/index.js +0 -2
  163. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
  164. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -109
  165. package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +0 -2
  166. package/build/features/entity/screens/SuccessWithFlowButtons/index.js +0 -2
  167. package/build/features/entity/screens/Verify/OTPInput.d.ts +0 -7
  168. package/build/features/entity/screens/Verify/OTPInput.js +0 -47
  169. package/build/features/entity/screens/Verify/Verify.d.ts +0 -5
  170. package/build/features/entity/screens/Verify/Verify.js +0 -78
  171. package/build/features/entity/screens/Verify/index.d.ts +0 -2
  172. package/build/features/entity/screens/Verify/index.js +0 -2
  173. package/build/features/entity/screens/Verify/validation.d.ts +0 -8
  174. package/build/features/entity/screens/Verify/validation.js +0 -4
  175. package/build/features/otp/OTP.d.ts +0 -7
  176. package/build/features/otp/OTP.js +0 -58
  177. package/build/features/otp/index.d.ts +0 -0
  178. package/build/features/otp/index.js +0 -1
  179. package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
  180. package/build/features/otp/screens/OTPVerify/OTPInput.js +0 -47
  181. package/build/features/otp/screens/OTPVerify/Verify.d.ts +0 -5
  182. package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
  183. package/build/features/otp/screens/OTPVerify/index.d.ts +0 -2
  184. package/build/features/otp/screens/OTPVerify/index.js +0 -2
  185. package/build/features/otp/screens/OTPVerify/validation.d.ts +0 -8
  186. package/build/features/otp/screens/OTPVerify/validation.js +0 -4
  187. package/build/features/shared/Dialog/CloseDialog.d.ts +0 -11
  188. package/build/features/shared/Dialog/CloseDialog.js +0 -62
  189. package/build/features/shared/Dialog/DialogContainer.d.ts +0 -8
  190. package/build/features/shared/Dialog/DialogContainer.js +0 -56
  191. package/build/features/shared/Dialog/index.d.ts +0 -4
  192. package/build/features/shared/Dialog/index.js +0 -4
  193. package/build/hooks/useScreen.d.ts +0 -3
  194. package/build/hooks/useScreen.js +0 -14
@@ -44,13 +44,7 @@ export interface FeatureScreenStep {
44
44
  export declare enum SocialMediaTypes {
45
45
  WEB = "website",
46
46
  INSTAGRAM = "instagram",
47
- TWITTER = "twitter",
48
- SOCIAL = "social media",
49
- PHYSICAL_STORE = "physical store",
50
- CALL_CENTER = "call center",
51
- APP = "mobile app",
52
- APPLE_STORE = "apple store",
53
- PLAY_STORE = "play store"
47
+ TWITTER = "twitter"
54
48
  }
55
49
  export interface CustomerLocation {
56
50
  id: string;
@@ -89,10 +83,8 @@ export interface Activity {
89
83
  }
90
84
  export interface SalesChannel {
91
85
  id: string;
92
- name: {
93
- ar: string;
94
- en: string;
95
- };
86
+ name_ar: string;
87
+ name_en: string;
96
88
  }
97
89
  export interface SourceOfIncome {
98
90
  id: string;
@@ -195,10 +187,7 @@ export declare enum FlowsTypes {
195
187
  BUSINESS = "business",
196
188
  INDIVIDUAL = "individual",
197
189
  PASSWORD = "password",
198
- TAX = "tax",
199
- ENTITY = "entity",
200
- OTP = "otp",
201
- AUTH = "auth"
190
+ TAX = "tax"
202
191
  }
203
192
  export declare type FlowInfo = {
204
193
  name: string;
@@ -3,12 +3,6 @@ export var SocialMediaTypes;
3
3
  SocialMediaTypes["WEB"] = "website";
4
4
  SocialMediaTypes["INSTAGRAM"] = "instagram";
5
5
  SocialMediaTypes["TWITTER"] = "twitter";
6
- SocialMediaTypes["SOCIAL"] = "social media";
7
- SocialMediaTypes["PHYSICAL_STORE"] = "physical store";
8
- SocialMediaTypes["CALL_CENTER"] = "call center";
9
- SocialMediaTypes["APP"] = "mobile app";
10
- SocialMediaTypes["APPLE_STORE"] = "apple store";
11
- SocialMediaTypes["PLAY_STORE"] = "play store";
12
6
  })(SocialMediaTypes || (SocialMediaTypes = {}));
13
7
  export var BusinessType;
14
8
  (function (BusinessType) {
@@ -23,7 +17,4 @@ export var FlowsTypes;
23
17
  FlowsTypes["INDIVIDUAL"] = "individual";
24
18
  FlowsTypes["PASSWORD"] = "password";
25
19
  FlowsTypes["TAX"] = "tax";
26
- FlowsTypes["ENTITY"] = "entity";
27
- FlowsTypes["OTP"] = "otp";
28
- FlowsTypes["AUTH"] = "auth";
29
20
  })(FlowsTypes || (FlowsTypes = {}));
@@ -16,9 +16,6 @@ export declare type NIDFormValues = {
16
16
  nid: string;
17
17
  dob: string;
18
18
  };
19
- export declare type CivilFormValues = {
20
- civilId: string;
21
- };
22
19
  export declare type IndividualFormValues = {
23
20
  name: string;
24
21
  email: string;
@@ -27,7 +24,6 @@ export declare type IndividualFormValues = {
27
24
  };
28
25
  export declare type BrandFormValues = {
29
26
  brandName: string;
30
- salesChannels: Array<SalesChannel>;
31
27
  links: {
32
28
  website: string;
33
29
  twitter: string;
@@ -78,10 +74,3 @@ export declare type PasswordCreateFormValues = {
78
74
  password: string;
79
75
  confirmPassword: string;
80
76
  };
81
- export declare type EntityFormValues = {
82
- licenseNumber?: string;
83
- licenseName?: string;
84
- activities?: Array<Activity>;
85
- salesChannels?: Array<SalesChannel>;
86
- operationStartDate: string;
87
- };
@@ -13,12 +13,8 @@ export declare type IDCredential = {
13
13
  identification_id_type: string;
14
14
  date_of_birth: string;
15
15
  };
16
- export declare type CivilID = {
17
- identification_id: string;
18
- country_code: string;
19
- };
20
16
  export declare type CreateAuthBody = {
21
- user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
17
+ user_credentail: MobileCredential | EmailCredential | IDCredential;
22
18
  auth_type?: number;
23
19
  email_url?: string;
24
20
  sign_in?: boolean;
@@ -60,18 +56,9 @@ export declare type CreatePasswordBody = {
60
56
  step_name: string;
61
57
  encryption_contract: Array<string>;
62
58
  };
63
- export declare type VerifyAuthKitOTPBody = {
64
- lead_id: string;
65
- data: string;
66
- post_url: string;
67
- scopes: Array<string>;
68
- encryption_contract: Array<string>;
69
- };
70
59
  declare const authService: {
71
60
  createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
72
61
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
73
62
  createPassword: (data: CreatePasswordBody) => Promise<any>;
74
- verifyAuthKitOTP: (data: VerifyAuthKitOTPBody) => Promise<any>;
75
- getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
76
63
  };
77
64
  export { authService };
package/build/api/auth.js CHANGED
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import instance, { httpClient } from './axios';
13
2
  import { ENDPOINT_PATHS } from '../constants';
14
3
  var createAuth = function (data, config) {
@@ -24,21 +13,9 @@ var createPassword = function (data) {
24
13
  data: data
25
14
  });
26
15
  };
27
- var getVerifyAuth = function (token, config) {
28
- return httpClient(__assign({ method: 'get', url: "".concat(ENDPOINT_PATHS.AUTH, "/").concat(token) }, config));
29
- };
30
- var verifyAuthKitOTP = function (data) {
31
- return httpClient({
32
- method: 'post',
33
- url: "".concat(ENDPOINT_PATHS.VERIFY_AUTH_OTP),
34
- data: data
35
- });
36
- };
37
16
  var authService = {
38
17
  createAuth: createAuth,
39
18
  verifyAuth: verifyAuth,
40
- createPassword: createPassword,
41
- verifyAuthKitOTP: verifyAuthKitOTP,
42
- getVerifyAuth: getVerifyAuth
19
+ createPassword: createPassword
43
20
  };
44
21
  export { authService };
@@ -91,8 +91,8 @@ export var httpClient = function (config) { return __awaiter(void 0, void 0, voi
91
91
  case 1:
92
92
  data = (_c.sent()).data;
93
93
  _a = (data.errors || [{}])[0], description = _a.description, error = _a.error;
94
- if (description || error || (data === null || data === void 0 ? void 0 : data.status) === 'fail') {
95
- throw new Error(description || error || (data === null || data === void 0 ? void 0 : data.message));
94
+ if (description || error) {
95
+ throw new Error(description, error);
96
96
  }
97
97
  return [2, data];
98
98
  case 2:
@@ -1,8 +1,5 @@
1
- declare type GetChannelsOfServicesBody = {
2
- page: number;
3
- };
4
1
  declare const dataService: {
5
- getChannelsOfServices: (data: GetChannelsOfServicesBody) => Promise<any>;
2
+ getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
6
3
  getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
7
4
  getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
8
5
  getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
package/build/api/data.js CHANGED
@@ -1,11 +1,7 @@
1
1
  import instance, { httpClient } from './axios';
2
2
  import { ENDPOINT_PATHS } from '../constants';
3
- var getChannelsOfServices = function (data) {
4
- return httpClient({
5
- method: 'post',
6
- url: "".concat(ENDPOINT_PATHS.CHANNEL),
7
- data: data
8
- });
3
+ var getChannelsOfServices = function () {
4
+ return instance.get("".concat(ENDPOINT_PATHS.CHANNEL));
9
5
  };
10
6
  var getCustomerBases = function () {
11
7
  return instance.get("".concat(ENDPOINT_PATHS.CUSTOMER_BASES));
@@ -3,8 +3,6 @@ export declare type EntityInfoBody = {
3
3
  id: string;
4
4
  lead_id?: string;
5
5
  activities?: Array<string>;
6
- license_name?: string;
7
- license_number?: string;
8
6
  business_operation_start_at?: string;
9
7
  channel_services?: Array<string>;
10
8
  physical_store_available?: boolean;
@@ -21,8 +21,6 @@ declare const API: {
21
21
  createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
22
22
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
23
23
  createPassword: (data: CreatePasswordBody) => Promise<any>;
24
- verifyAuthKitOTP: (data: import("./auth").VerifyAuthKitOTPBody) => Promise<any>;
25
- getVerifyAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
26
24
  };
27
25
  leadService: {
28
26
  createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -53,9 +51,7 @@ declare const API: {
53
51
  createAccount: (data: CreateAccountBody) => Promise<any>;
54
52
  };
55
53
  dataService: {
56
- getChannelsOfServices: (data: {
57
- page: number;
58
- }) => Promise<any>;
54
+ getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
59
55
  getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
60
56
  getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
61
57
  getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
@@ -7,8 +7,5 @@ declare const rootReducer: {
7
7
  individual: import("redux").Reducer<import("../features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
8
8
  password: import("redux").Reducer<import("../features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
9
9
  signIn: import("redux").Reducer<import("../features/app/signIn/signInStore").SignInState, import("redux").AnyAction>;
10
- entity: import("redux").Reducer<import("../features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
11
- otp: import("redux").Reducer<import("../features/app/otp/otpStore").OtpState, import("redux").AnyAction>;
12
- auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
13
10
  };
14
11
  export default rootReducer;
@@ -6,9 +6,6 @@ import tax from '../features/app/tax/taxStore';
6
6
  import individual from '../features/app/individual/individualStore';
7
7
  import password from '../features/app/password/passwordStore';
8
8
  import signIn from '../features/app/signIn/signInStore';
9
- import entity from '../features/app/entity/entityStore';
10
- import otp from '../features/app/otp/otpStore';
11
- import auth from '../features/app/auth/authStore';
12
9
  var rootReducer = {
13
10
  settings: settings,
14
11
  connect: connect,
@@ -17,9 +14,6 @@ var rootReducer = {
17
14
  tax: tax,
18
15
  individual: individual,
19
16
  password: password,
20
- signIn: signIn,
21
- entity: entity,
22
- otp: otp,
23
- auth: auth
17
+ signIn: signIn
24
18
  };
25
19
  export default rootReducer;
@@ -47,8 +47,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, removeElement } from '../utils';
51
- import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS, DIALOG_ID, BACKGROUND_ID } from '../constants';
50
+ import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString } from '../utils';
51
+ import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
52
52
  import i18n from '../i18n';
53
53
  import { updateLocale } from '../utils/locale';
54
54
  import API, { setAxiosGlobalHeaders } from '../api';
@@ -141,12 +141,6 @@ export var settingsSlice = createSlice({
141
141
  },
142
142
  handleOpen: function (state, action) {
143
143
  state.data.open = action.payload;
144
- if (action.payload === false) {
145
- setTimeout(function () {
146
- removeElement(DIALOG_ID);
147
- removeElement(BACKGROUND_ID);
148
- }, 1000);
149
- }
150
144
  },
151
145
  handleSkin: function (state, action) {
152
146
  state.data.skin = action.payload;
@@ -8,10 +8,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
8
8
  individual: import("../features/app/individual/individualStore").IndividualState;
9
9
  password: import("../features/app/password/passwordStore").PasswordState;
10
10
  signIn: import("../features/app/signIn/signInStore").SignInState;
11
- entity: import("../features/app/entity/entityStore").EntityState;
12
- otp: import("../features/app/otp/otpStore").OtpState;
13
- auth: import("../features/app/auth/authStore").AuthState;
14
- }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
11
+ }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
15
12
  settings: import("./settings").SettingsState;
16
13
  connect: import("../features/app/connect/connectStore").ConnectState;
17
14
  business: import("../features/app/business/businessStore").BusinessState;
@@ -20,9 +17,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
20
17
  individual: import("../features/app/individual/individualStore").IndividualState;
21
18
  password: import("../features/app/password/passwordStore").PasswordState;
22
19
  signIn: import("../features/app/signIn/signInStore").SignInState;
23
- entity: import("../features/app/entity/entityStore").EntityState;
24
- otp: import("../features/app/otp/otpStore").OtpState;
25
- auth: import("../features/app/auth/authStore").AuthState;
26
20
  }, import("redux").AnyAction, undefined>]>>;
27
21
  export declare type AppDispatch = typeof store.dispatch;
28
22
  export declare type RootState = ReturnType<typeof store.getState>;
@@ -141,7 +141,7 @@
141
141
  "signup_email_placeholder": "مثل g@example.com",
142
142
  "signup_enter_mobile": "رقم الجوال",
143
143
  "signup_generic_error": "حدث خطأ ما يرجى إعادة المحاولة لاحقاً",
144
- "signup_instagram_placeholder": "Enter your Instagram handle",
144
+ "signup_instagram_placeholder": "حساب انستجرام",
145
145
  "signup_invalid_iqama_id_format": "يجب أن تبدأ الإقامة بالرقم {{number}}",
146
146
  "signup_invalid_national_id": "الرجاء ادخال رقم هوية صحيح",
147
147
  "signup_invalid_national_id_format": "يجب أن تبدأ الهوية الوطنية بالرقم {{number}}",
@@ -149,9 +149,9 @@
149
149
  "signup_merchant_name_label": "الاسم بالكامل",
150
150
  "signup_merchant_name_placeholder": "الاسم بالكامل",
151
151
  "signup_select_country": "دولتك",
152
- "signup_twitter_placeholder": "Enter your Twitter handle",
152
+ "signup_twitter_placeholder": "حساب تويتر",
153
153
  "signup_user_not_exists_error": "المستخدم غير مسجل مع تاب",
154
- "signup_website_placeholder": "Enter your website URL",
154
+ "signup_website_placeholder": "رابط الموقع",
155
155
  "signup_welcoming": "مرحبا {{username}},",
156
156
  "signup_welcoming_hi": "مرحبا,",
157
157
  "start_with_number": "رقم الجوال يجب ان يبدا ب {{number}}",
@@ -244,15 +244,5 @@
244
244
  "reset_password_success_title": "لقد ارسلنا رسالة بريدية إليك",
245
245
  "reset_password_success_description": "تحقق من بريدك الإلكتروني لإعادة تعيين كلمة المرور الخاصة بك.",
246
246
  "license_name_label": "اسم الرخصة",
247
- "email_button_label": "تواصل مع البريد الإلكتروني",
248
- "apple_store_placeholder": "Enter your app name (iOS)",
249
- "play_store_placeholder": "Enter your app name (Google Play Store)",
250
- "physical_store_placeholder": "Enter your store address or Google Map URL",
251
- "call_center_placeholder": "Enter your Call Center number",
252
- "back": "Back",
253
- "civil_id_placeholder": "28xxxxxxxx53",
254
- "enter_civil_id": "Please enter your civil ID",
255
- "invalid_civil_id": "Please enter valid civil ID",
256
- "authenticate_kuwait_mobile_title": "Authenticate with Kuwait Mobile ID app",
257
- "authenticate_kuwait_mobile_description": "Please go to your Kuwait Mobile ID app and accept the authentication request from Tap."
247
+ "email_button_label": "تواصل مع البريد الإلكتروني"
258
248
  }
@@ -150,7 +150,7 @@
150
150
  "signup_email_placeholder": "Your Email address",
151
151
  "signup_enter_mobile": "Your mobile number",
152
152
  "signup_generic_error": "Something went wrong! Please try again later.",
153
- "signup_instagram_placeholder": "Enter your Instagram handle",
153
+ "signup_instagram_placeholder": "mybusiness",
154
154
  "signup_invalid_iqama_id_format": "May you please verify the entered identification number. (Note - Saudi Iqama's start with {{number}})",
155
155
  "signup_invalid_national_id": "May you please verify the entered identification number",
156
156
  "signup_invalid_national_id_format": "May you please verify the entered identification number. (Note - Saudi national IDs start with {{number}})",
@@ -158,9 +158,9 @@
158
158
  "signup_merchant_name_label": "Full name",
159
159
  "signup_merchant_name_placeholder": "Full name",
160
160
  "signup_select_country": "Your country of business",
161
- "signup_twitter_placeholder": "Enter your Twitter handle",
161
+ "signup_twitter_placeholder": "mybusiness",
162
162
  "signup_user_not_exists_error": "May you please verify the entered user.",
163
- "signup_website_placeholder": "Enter your website URL",
163
+ "signup_website_placeholder": "www.mybusiness.com",
164
164
  "signup_welcoming": "Hello {{username}},",
165
165
  "signup_welcoming_hi": "Hello,",
166
166
  "start_with_number": "May you please verify the entered mobile. (Note - mobile numbers start with {{number}})",
@@ -264,15 +264,5 @@
264
264
  "reset_password_success_title": "We sent you an email",
265
265
  "reset_password_success_description": "Check your email to reset your password.",
266
266
  "license_name_label": "License Name",
267
- "email_button_label": "Continue with Email",
268
- "apple_store_placeholder": "Enter your app name (iOS)",
269
- "play_store_placeholder": "Enter your app name (Google Play Store)",
270
- "physical_store_placeholder": "Enter your store address or Google Map URL",
271
- "call_center_placeholder": "Enter your Call Center number",
272
- "back": "Back",
273
- "civil_id_placeholder": "28xxxxxxxx53",
274
- "enter_civil_id": "Please enter your civil ID",
275
- "invalid_civil_id": "Please enter valid civil ID",
276
- "authenticate_kuwait_mobile_title": "Authenticate with Kuwait Mobile ID app",
277
- "authenticate_kuwait_mobile_description": "Please go to your Kuwait Mobile ID app and accept the authentication request from Tap."
267
+ "email_button_label": "Continue with Email"
278
268
  }
@@ -9,8 +9,5 @@ export interface AnimationFlowProps {
9
9
  loading?: boolean;
10
10
  error?: string | null;
11
11
  screenId?: string;
12
- animationType?: 'slide' | 'fade' | 'collapse';
13
- onClose?: () => void;
14
- onConfirm?: () => void;
15
12
  }
16
- export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin, screenId, animationType, onClose, onConfirm }: AnimationFlowProps): JSX.Element;
13
+ export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin, screenId }: AnimationFlowProps): JSX.Element;
@@ -10,14 +10,16 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { useScreen } from '../../hooks';
13
+ import { useTheme } from '@mui/material/styles';
14
+ import useMediaQuery from '@mui/material/useMediaQuery';
14
15
  import Dialog from './Dialog';
15
16
  import BottomSheet from './BottomSheet';
16
17
  import Loader from './Loader';
17
18
  import Error from './Error';
18
19
  export default function AnimationFlow(_a) {
19
- var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId, animationType = _a.animationType, onClose = _a.onClose, onConfirm = _a.onConfirm;
20
- var small = useScreen(breakpoint).small;
20
+ var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId;
21
+ var theme = useTheme();
22
+ var matches = useMediaQuery(theme.breakpoints.down(breakpoint || 'sm'));
21
23
  if (loading) {
22
24
  return _jsx(Loader, {});
23
25
  }
@@ -25,10 +27,10 @@ export default function AnimationFlow(_a) {
25
27
  return _jsx(Error, { error: error });
26
28
  }
27
29
  if (type === 'PUPOP') {
28
- return (_jsx(Dialog, __assign({ onClose: onClose, onConfirm: onConfirm, footer: footer, open: open, isTapOrigin: isTapOrigin, animationType: animationType }, { children: children })));
30
+ return (_jsx(Dialog, __assign({ footer: footer, open: open, isTapOrigin: isTapOrigin }, { children: children })));
29
31
  }
30
32
  if (type === 'BOTTOMSHEET') {
31
33
  return _jsx(BottomSheet, __assign({ open: open }, { children: children }));
32
34
  }
33
- return small ? (_jsx(BottomSheet, __assign({ open: open, screenId: screenId }, { children: children }))) : (_jsx(Dialog, __assign({ onClose: onClose, onConfirm: onConfirm, open: open, footer: footer, isTapOrigin: isTapOrigin, animationType: animationType }, { children: children })));
35
+ return matches ? (_jsx(BottomSheet, __assign({ open: open, screenId: screenId }, { children: children }))) : (_jsx(Dialog, __assign({ open: open, footer: footer, isTapOrigin: isTapOrigin }, { children: children })));
34
36
  }
@@ -41,8 +41,7 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
41
41
  width: '100vw'
42
42
  },
43
43
  '[data-rsbs-overlay]': {
44
- backgroundColor: theme.palette.background.paper,
45
- zIndex: 9999
44
+ backgroundColor: theme.palette.background.paper
46
45
  },
47
46
  '[data-rsbs-scroll]': {
48
47
  '&::-webkit-scrollbar': {
@@ -6,9 +6,6 @@ export interface DialogProps extends MUIDialogProps {
6
6
  children: React.ReactNode;
7
7
  footer?: React.ReactNode;
8
8
  transitionDuration?: number;
9
- animationType?: 'slide' | 'fade' | 'collapse';
10
- onClose?: () => void;
11
- onConfirm?: () => void;
12
9
  }
13
- declare const _default: React.MemoExoticComponent<({ open, children, footer, transitionDuration, isTapOrigin, animationType, onClose, onConfirm, ...rest }: DialogProps) => JSX.Element>;
10
+ declare const _default: React.MemoExoticComponent<({ open, children, footer, transitionDuration, isTapOrigin, ...rest }: DialogProps) => JSX.Element>;
14
11
  export default _default;
@@ -27,13 +27,12 @@ import DialogContent from '@mui/material/DialogContent';
27
27
  import Paper from '@mui/material/Paper';
28
28
  import Box from '@mui/material/Box';
29
29
  import { styled } from '@mui/material/styles';
30
- import { DIALOG_ID, ICONS_NAMES } from '../../constants';
30
+ import { ICONS_NAMES } from '../../constants';
31
31
  import { useLanguage } from '../../hooks';
32
32
  import Slide from '../Slide';
33
33
  import LogoBadge from '../LogoBadge';
34
34
  import Icon from '../Icon';
35
35
  import Collapse from '../Collapse';
36
- import DialogContainer from '../../features/shared/Dialog';
37
36
  var Transition = React.forwardRef(function Transition(props, ref) {
38
37
  return _jsx(Slide, __assign({ direction: 'up', ref: ref }, props));
39
38
  });
@@ -93,18 +92,14 @@ var LogoIconStyled = styled(Icon)(function (_a) {
93
92
  });
94
93
  });
95
94
  var Dialog = function (_a) {
96
- var open = _a.open, children = _a.children, footer = _a.footer, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, _b = _a.animationType, animationType = _b === void 0 ? 'slide' : _b, onClose = _a.onClose, onConfirm = _a.onConfirm, rest = __rest(_a, ["open", "children", "footer", "transitionDuration", "isTapOrigin", "animationType", "onClose", "onConfirm"]);
95
+ var open = _a.open, children = _a.children, footer = _a.footer, transitionDuration = _a.transitionDuration, isTapOrigin = _a.isTapOrigin, rest = __rest(_a, ["open", "children", "footer", "transitionDuration", "isTapOrigin"]);
97
96
  var isAr = useLanguage().isAr;
98
- var animation = {};
99
- if (animationType === 'slide') {
100
- Object.assign(animation, { TransitionComponent: Transition });
101
- }
102
- return (_jsxs(MuiDialog, __assign({ id: DIALOG_ID, PaperProps: {
97
+ return (_jsxs(MuiDialog, __assign({ PaperProps: {
103
98
  elevation: 0
104
99
  }, sx: {
105
100
  '& .MuiDialog-paper': {
106
101
  overflowY: 'visible'
107
102
  }
108
- }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, animation, { children: [_jsx(DialogContainer, __assign({ isTapOrigin: isTapOrigin, onClose: onClose, onConfirm: onConfirm }, { children: _jsxs(DialogContentStyled, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: ICONS_NAMES.LOGO_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) })] })), children] }) })), footer] })));
103
+ }, hideBackdrop: true, PaperComponent: PaperStyled, open: open, TransitionComponent: Transition, transitionDuration: transitionDuration || 500, keepMounted: true, "aria-describedby": 'dialog-slide-description' }, rest, { children: [_jsxs(DialogContentStyled, { children: [_jsxs(Collapse, __assign({ in: !isTapOrigin }, { children: [_jsx(LogoBadge, { src: ICONS_NAMES.LOGO_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_AR : ICONS_NAMES.TAP_EN, alt: 'tap logo' }) })] })), children] }), footer] })));
109
104
  };
110
105
  export default React.memo(Dialog);
@@ -1,15 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface DragAndDropProps {
3
3
  title: string;
4
- subTitle: string;
5
- description: string;
6
- uploadingTitle: string;
7
- successTitle: string;
8
- error?: string;
9
- uploading?: boolean;
10
- uploadSuccess?: boolean;
11
- fileExists: boolean;
12
4
  onSuccess?: (files: File) => void;
13
5
  }
14
- declare const DragAndDrop: ({ title, subTitle, description, error, uploadingTitle, successTitle, uploading, fileExists, uploadSuccess, onSuccess }: DragAndDropProps) => JSX.Element;
6
+ declare const DragAndDrop: ({ title, onSuccess }: DragAndDropProps) => JSX.Element;
15
7
  export default DragAndDrop;