@tap-payments/auth-jsconnect 2.8.52-sandbox → 2.8.55-beta

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 +1 -1
  2. package/build/@types/form.d.ts +0 -1
  3. package/build/@types/redux.d.ts +0 -1
  4. package/build/api/axios.js +1 -2
  5. package/build/api/entity.d.ts +2 -2
  6. package/build/api/entity.js +4 -12
  7. package/build/api/index.d.ts +2 -2
  8. package/build/components/AnimationFlow/AnimationFlow.js +2 -2
  9. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
  10. package/build/components/AnimationFlow/BottomSheet.js +30 -6
  11. package/build/constants/api.d.ts +1 -0
  12. package/build/constants/api.js +2 -0
  13. package/build/constants/app.d.ts +1 -0
  14. package/build/constants/app.js +1 -0
  15. package/build/features/app/bank/bankStore.d.ts +18 -13
  16. package/build/features/app/bank/bankStore.js +165 -184
  17. package/build/features/app/board/boardStore.js +30 -52
  18. package/build/features/app/brand/brandStore.d.ts +33 -16
  19. package/build/features/app/brand/brandStore.js +242 -239
  20. package/build/features/app/business/businessStore.d.ts +5 -0
  21. package/build/features/app/business/businessStore.js +87 -76
  22. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -15
  23. package/build/features/app/connectExpress/connectExpressStore.js +52 -110
  24. package/build/features/app/entity/entityStore.d.ts +36 -20
  25. package/build/features/app/entity/entityStore.js +246 -196
  26. package/build/features/app/individual/individualStore.d.ts +38 -22
  27. package/build/features/app/individual/individualStore.js +266 -263
  28. package/build/features/app/password/passwordStore.d.ts +23 -40
  29. package/build/features/app/password/passwordStore.js +233 -226
  30. package/build/features/app/tax/taxStore.d.ts +7 -13
  31. package/build/features/app/tax/taxStore.js +147 -168
  32. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +1 -13
  33. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -7
  34. package/build/features/bank/Bank.d.ts +0 -1
  35. package/build/features/bank/Bank.js +4 -7
  36. package/build/features/bank/screens/BankDetails/BankDetails.js +5 -18
  37. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  38. package/build/features/bank/screens/Verify/Verify.js +5 -5
  39. package/build/features/board/Board.js +4 -8
  40. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -3
  41. package/build/features/brand/Brand.d.ts +0 -1
  42. package/build/features/brand/Brand.js +4 -7
  43. package/build/features/brand/screens/BrandActivities/BrandActivities.js +12 -49
  44. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -6
  45. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  46. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  47. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  48. package/build/features/brand/screens/BrandInfo/BrandInfo.js +5 -23
  49. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +7 -23
  50. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  51. package/build/features/brand/screens/Verify/Verify.js +1 -1
  52. package/build/features/business/Business.js +4 -9
  53. package/build/features/business/screens/Activities/Activities.js +3 -12
  54. package/build/features/business/screens/BusinessType/BusinessType.js +2 -10
  55. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  56. package/build/features/business/screens/Customers/Customers.js +3 -12
  57. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -6
  58. package/build/features/business/screens/IDBOD/IDBOD.js +2 -10
  59. package/build/features/business/screens/OTP/OTP.js +1 -1
  60. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -14
  61. package/build/features/business/screens/Verify/Verify.js +3 -13
  62. package/build/features/connect/Connect.d.ts +5 -1
  63. package/build/features/connect/Connect.js +11 -7
  64. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  65. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +2 -9
  66. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  67. package/build/features/connect/screens/Individual/Email.js +1 -3
  68. package/build/features/connect/screens/Individual/Individual.js +1 -1
  69. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  70. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  71. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  72. package/build/features/connect/screens/Mobile/Mobile.js +8 -11
  73. package/build/features/connect/screens/NID/NID.js +1 -1
  74. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  75. package/build/features/connectExpress/ConnectExpress.js +1 -2
  76. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +2 -5
  77. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +1 -6
  78. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +0 -3
  79. package/build/features/connectExpress/screens/AuthenticationList/validation.js +0 -10
  80. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -7
  81. package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
  82. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  83. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
  84. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
  85. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  86. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +24 -14
  87. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -9
  88. package/build/features/connectExpress/screens/NID/NID.js +1 -1
  89. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  90. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  91. package/build/features/entity/Entity.d.ts +0 -1
  92. package/build/features/entity/Entity.js +4 -7
  93. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +4 -8
  94. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +4 -8
  95. package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -34
  96. package/build/features/entity/screens/EntityName/EntityName.js +15 -32
  97. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  98. package/build/features/entity/screens/Verify/Verify.js +1 -1
  99. package/build/features/featuresScreens.js +7 -67
  100. package/build/features/individual/Individual.d.ts +0 -1
  101. package/build/features/individual/Individual.js +4 -7
  102. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -54
  103. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +2 -5
  104. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  105. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -4
  106. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -3
  107. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  108. package/build/features/individual/screens/IndividualList/IndividualList.js +5 -18
  109. package/build/features/individual/screens/IndividualList/UserList.js +9 -13
  110. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  111. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -76
  112. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  113. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  114. package/build/features/individual/screens/Verify/Verify.js +1 -1
  115. package/build/features/password/Password.d.ts +0 -1
  116. package/build/features/password/Password.js +28 -75
  117. package/build/features/password/screens/CreatePassword/CreatePassword.js +4 -8
  118. package/build/features/password/screens/OTP/OTP.js +1 -1
  119. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  120. package/build/features/password/screens/Verify/Verify.js +5 -5
  121. package/build/features/shared/Button/FlowsButtons.js +3 -13
  122. package/build/features/shared/Containers/FeatureContainer.d.ts +0 -1
  123. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  124. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -5
  125. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -3
  126. package/build/features/signIn/SignIn.js +3 -12
  127. package/build/features/tax/Tax.d.ts +0 -1
  128. package/build/features/tax/Tax.js +4 -7
  129. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  130. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
  131. package/build/features/tax/screens/Verify/Verify.js +5 -5
  132. package/build/hooks/index.d.ts +0 -1
  133. package/build/hooks/index.js +0 -1
  134. package/build/hooks/useVerifyToken.d.ts +2 -5
  135. package/build/hooks/useVerifyToken.js +5 -10
  136. package/build/utils/common.js +3 -3
  137. package/build/utils/locale.js +1 -2
  138. package/build/utils/string.d.ts +2 -5
  139. package/build/utils/string.js +5 -34
  140. package/package.json +2 -2
  141. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +0 -5
  142. package/build/features/bank/screens/OperatorError/OperatorError.js +0 -9
  143. package/build/features/bank/screens/OperatorError/index.d.ts +0 -3
  144. package/build/features/bank/screens/OperatorError/index.js +0 -2
  145. package/build/features/board/screens/OperatorError/OperatorError.d.ts +0 -5
  146. package/build/features/board/screens/OperatorError/OperatorError.js +0 -9
  147. package/build/features/board/screens/OperatorError/index.d.ts +0 -3
  148. package/build/features/board/screens/OperatorError/index.js +0 -2
  149. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +0 -5
  150. package/build/features/brand/screens/OperatorError/OperatorError.js +0 -9
  151. package/build/features/brand/screens/OperatorError/index.d.ts +0 -3
  152. package/build/features/brand/screens/OperatorError/index.js +0 -2
  153. package/build/features/business/screens/OperatorError/OperatorError.d.ts +0 -5
  154. package/build/features/business/screens/OperatorError/OperatorError.js +0 -9
  155. package/build/features/business/screens/OperatorError/index.d.ts +0 -3
  156. package/build/features/business/screens/OperatorError/index.js +0 -2
  157. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +0 -9
  158. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +0 -90
  159. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +0 -5
  160. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +0 -9
  161. package/build/features/connectExpress/screens/OperatorError/index.d.ts +0 -3
  162. package/build/features/connectExpress/screens/OperatorError/index.js +0 -2
  163. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -5
  164. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +0 -34
  165. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +0 -2
  166. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +0 -2
  167. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +0 -5
  168. package/build/features/entity/screens/OperatorError/OperatorError.js +0 -9
  169. package/build/features/entity/screens/OperatorError/index.d.ts +0 -3
  170. package/build/features/entity/screens/OperatorError/index.js +0 -2
  171. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +0 -14
  172. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +0 -76
  173. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +0 -5
  174. package/build/features/individual/screens/OperatorError/OperatorError.js +0 -9
  175. package/build/features/individual/screens/OperatorError/index.d.ts +0 -3
  176. package/build/features/individual/screens/OperatorError/index.js +0 -2
  177. package/build/features/password/screens/OperatorError/OperatorError.d.ts +0 -5
  178. package/build/features/password/screens/OperatorError/OperatorError.js +0 -9
  179. package/build/features/password/screens/OperatorError/index.d.ts +0 -3
  180. package/build/features/password/screens/OperatorError/index.js +0 -2
  181. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
  182. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
  183. package/build/features/password/screens/PrepareDataLoading/index.d.ts +0 -2
  184. package/build/features/password/screens/PrepareDataLoading/index.js +0 -2
  185. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +0 -5
  186. package/build/features/signIn/screens/OperatorError/OperatorError.js +0 -9
  187. package/build/features/signIn/screens/OperatorError/index.d.ts +0 -3
  188. package/build/features/signIn/screens/OperatorError/index.js +0 -2
  189. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +0 -5
  190. package/build/features/tax/screens/OperatorError/OperatorError.js +0 -9
  191. package/build/features/tax/screens/OperatorError/index.d.ts +0 -3
  192. package/build/features/tax/screens/OperatorError/index.js +0 -2
  193. package/build/hooks/useFormDirtyCheck.d.ts +0 -10
  194. package/build/hooks/useFormDirtyCheck.js +0 -66
@@ -232,6 +232,7 @@ export interface LibConfig extends LibCallbacks {
232
232
  overlay?: boolean;
233
233
  loaderOverlay?: boolean;
234
234
  tapTextLogo?: boolean;
235
+ closeButton?: boolean;
235
236
  };
236
237
  postURL?: string;
237
238
  redirectUrl?: string;
@@ -667,7 +668,6 @@ export interface EventPageTrackingData extends CommonDataLayer {
667
668
  }
668
669
  export interface PageTrackingData {
669
670
  title?: string;
670
- connect_flow?: string;
671
671
  }
672
672
  export type VerifyExpressTokenParams = {
673
673
  public_key: string;
@@ -112,7 +112,6 @@ export interface IndividualExtraFormValues extends IndividualAttachmentsFormValu
112
112
  isInfluencer: boolean | null;
113
113
  shareCount: string;
114
114
  shareValue: string;
115
- isAuthorized: boolean;
116
115
  }
117
116
  export type IndividualAttachmentsFormValues = {
118
117
  civilID?: Array<string>;
@@ -15,5 +15,4 @@ export interface ResponseData {
15
15
  export interface AsyncThunkParams<T> {
16
16
  formData: T;
17
17
  originalFormData: T;
18
- isDirty: boolean;
19
18
  }
@@ -42,8 +42,7 @@ var instance = axios.create({
42
42
  headers: {
43
43
  'Content-Type': 'application/json',
44
44
  'Access-Control-Allow-Headers': true
45
- },
46
- timeout: 180000
45
+ }
47
46
  });
48
47
  instance.interceptors.request.use(function (config) {
49
48
  return encryptionContractTransformer(config);
@@ -139,8 +139,8 @@ export type CreateEntityBody = {
139
139
  };
140
140
  declare const entityService: {
141
141
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
142
- updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
143
- createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
142
+ updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
143
+ createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
144
144
  retrieveBankAccount: (id: string) => Promise<any>;
145
145
  retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
146
146
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
@@ -18,13 +18,9 @@ var createEntityInfo = function (_a, config) {
18
18
  var id = _a.id, data = __rest(_a, ["id"]);
19
19
  return instance.post("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/info"), data, config);
20
20
  };
21
- var updateEntityInfo = function (_a) {
21
+ var updateEntityInfo = function (_a, config) {
22
22
  var id = _a.id, data = __rest(_a, ["id"]);
23
- return httpClient({
24
- method: 'put',
25
- url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id),
26
- data: data
27
- });
23
+ return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
28
24
  };
29
25
  var retrieveEntity = function (entity_id) {
30
26
  return httpClient({
@@ -56,12 +52,8 @@ var updateEntityCapital = function (_a) {
56
52
  data: data
57
53
  });
58
54
  };
59
- var createBankAccount = function (data) {
60
- return httpClient({
61
- method: 'put',
62
- url: "".concat(ENDPOINT_PATHS.BANK),
63
- data: data
64
- });
55
+ var createBankAccount = function (data, config) {
56
+ return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
65
57
  };
66
58
  var retrieveBankAccount = function (id) {
67
59
  return httpClient({
@@ -59,8 +59,8 @@ declare const API: {
59
59
  };
60
60
  entityService: {
61
61
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
62
- updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
63
- createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
62
+ updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
63
+ createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
64
64
  retrieveBankAccount: (id: string) => Promise<any>;
65
65
  retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
66
66
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
@@ -39,7 +39,7 @@ export default function AnimationFlow(_a) {
39
39
  return (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, hideTextLogo: (features === null || features === void 0 ? void 0 : features.tapTextLogo) === false, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
40
40
  }
41
41
  if (type === 'BOTTOMSHEET') {
42
- return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
42
+ return (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, onClose: onClose, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, hideFooter: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
43
43
  }
44
- return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, hideTextLogo: (features === null || features === void 0 ? void 0 : features.tapTextLogo) === false, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
44
+ return small ? (_jsx(BottomSheet, __assign({ pointerEvents: pointerEvents, open: open, onClose: onClose, screenId: screenId, isMaturityExpress: isMaturityExpress, merchantInfo: merchantInfo, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, hideFooter: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, dialogEdgeFormat: dialogEdgeFormat }, { children: children }))) : (_jsx(Dialog, __assign({ pointerEvents: pointerEvents, onClose: onClose, onConfirm: onConfirm, open: open, isTapOrigin: isTapOrigin, animationType: animationType, merchantInfo: merchantInfo, isMaturityExpress: isMaturityExpress, hideTextLogo: (features === null || features === void 0 ? void 0 : features.tapTextLogo) === false, hideLanguage: (features === null || features === void 0 ? void 0 : features.switchLanguage) === false, hidePoweredBy: (features === null || features === void 0 ? void 0 : features.poweredBy) === false, hideMerchantLogo: (features === null || features === void 0 ? void 0 : features.merchantLogo) === false, animationDirection: animationDirection, dialogEdgeFormat: dialogEdgeFormat }, { children: children })));
45
45
  }
@@ -9,10 +9,11 @@ export interface BottomSheetProps extends MainBottomSheetProps {
9
9
  pointerEvents?: 'none' | 'auto';
10
10
  isMaturityExpress?: boolean;
11
11
  merchantInfo?: MerchantInfo;
12
- hideLanguage?: boolean;
12
+ hideFooter?: boolean;
13
13
  hidePoweredBy?: boolean;
14
14
  hideMerchantLogo?: boolean;
15
15
  dialogEdgeFormat?: DialogEdgeFormat;
16
+ onClose?: () => void;
16
17
  }
17
- declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, hideLanguage, hidePoweredBy, hideMerchantLogo, dialogEdgeFormat, ...rest }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element>;
18
+ declare const _default: React.MemoExoticComponent<({ open, children, screenId, pointerEvents, isMaturityExpress, merchantInfo, hideFooter, hideMerchantLogo, dialogEdgeFormat, hidePoweredBy, onClose, ...rest }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element>;
18
19
  export default _default;
@@ -28,6 +28,7 @@ import Box from '@mui/material/Box';
28
28
  import 'react-spring-bottom-sheet/dist/style.css';
29
29
  import { ICONS_NAMES } from '../../constants';
30
30
  import { useLanguage } from '../../hooks';
31
+ import Icon from '../Icon';
31
32
  import { DialogEdgeFormat } from '../../@types';
32
33
  import { CustomFooter, PoweredByFooter } from '../../features/shared/Footer';
33
34
  import LogoBadge from '../LogoBadge';
@@ -75,15 +76,38 @@ var FooterStyled = styled(Box)(function (_a) {
75
76
  var theme = _a.theme;
76
77
  return (__assign(__assign({ bottom: theme.spacing(-5.625), position: 'fixed', height: theme.spacing(5.625), display: 'flex' }, theme.typography.caption), { justifyContent: 'center', alignItems: 'center', width: '100vw', background: '#E6E7E9', borderTop: '1px solid rgba(156, 160, 169, 0.3)' }));
77
78
  });
79
+ var CloseIconStyled = styled(Icon)(function (_a) {
80
+ var theme = _a.theme;
81
+ return ({
82
+ width: theme.spacing(3.75),
83
+ height: theme.spacing(3.75)
84
+ });
85
+ });
86
+ var CloseBox = styled(Box)(function (_a) {
87
+ var theme = _a.theme;
88
+ return ({
89
+ display: 'flex',
90
+ justifyContent: 'end',
91
+ marginBlockStart: theme.spacing(2),
92
+ marginInlineEnd: theme.spacing(2),
93
+ cursor: 'pointer',
94
+ direction: theme.direction,
95
+ position: 'absolute',
96
+ right: 0,
97
+ left: 0,
98
+ zIndex: 9999
99
+ });
100
+ });
78
101
  var BottomSheetComponent = function (_a) {
79
- var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, hideLanguage = _a.hideLanguage, hidePoweredBy = _a.hidePoweredBy, hideMerchantLogo = _a.hideMerchantLogo, dialogEdgeFormat = _a.dialogEdgeFormat, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo", "hideLanguage", "hidePoweredBy", "hideMerchantLogo", "dialogEdgeFormat"]);
102
+ var open = _a.open, children = _a.children, screenId = _a.screenId, _b = _a.pointerEvents, pointerEvents = _b === void 0 ? 'auto' : _b, isMaturityExpress = _a.isMaturityExpress, merchantInfo = _a.merchantInfo, hideFooter = _a.hideFooter, hideMerchantLogo = _a.hideMerchantLogo, dialogEdgeFormat = _a.dialogEdgeFormat, hidePoweredBy = _a.hidePoweredBy, onClose = _a.onClose, rest = __rest(_a, ["open", "children", "screenId", "pointerEvents", "isMaturityExpress", "merchantInfo", "hideFooter", "hideMerchantLogo", "dialogEdgeFormat", "hidePoweredBy", "onClose"]);
80
103
  var sheetRef = React.useRef(null);
81
104
  var isAr = useLanguage().isAr;
82
105
  var logo = (merchantInfo || {}).logo;
106
+ var handleOnCloseButton = function () {
107
+ onClose && onClose();
108
+ };
83
109
  var getLanguageBarHeight = function () {
84
- var viewportHeight = window.innerHeight;
85
- var documentHeight = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);
86
- return documentHeight - viewportHeight + (isMaturityExpress ? 150 : 70);
110
+ return isMaturityExpress && !hideFooter ? 150 : 70;
87
111
  };
88
112
  var getMinHeight = function (maxHeight) {
89
113
  var el = document.getElementById('main-feature-container');
@@ -103,9 +127,9 @@ var BottomSheetComponent = function (_a) {
103
127
  }, 500);
104
128
  }
105
129
  }, [screenId]);
106
- return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), dialogEdgeFormat: dialogEdgeFormat, sibling: hideLanguage ? (_jsx(_Fragment, {})) : (_jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) })), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
130
+ return (_jsxs(BottomSheetStyled, __assign({ languageBarHeight: getLanguageBarHeight(), dialogEdgeFormat: dialogEdgeFormat, sibling: hideFooter ? (_jsx(_Fragment, {})) : (open && (_jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) }))), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
107
131
  var maxHeight = _a.maxHeight;
108
132
  return [getMinHeight(maxHeight), maxHeight * 0.95];
109
- } }, rest, { children: [isMaturityExpress && !hideMerchantLogo && (_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON })), children, isMaturityExpress && !hidePoweredBy && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
133
+ } }, rest, { children: [isMaturityExpress && !hideMerchantLogo && (_jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON })), onClose && (_jsx(CloseBox, __assign({ id: 'close-container', onClick: handleOnCloseButton }, { children: _jsx(CloseIconStyled, { src: ICONS_NAMES.CLOSE_ICON }) }))), children, isMaturityExpress && !hidePoweredBy && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
110
134
  };
111
135
  export default React.memo(BottomSheetComponent);
@@ -12,6 +12,7 @@ export declare const ENDPOINT_PATHS: {
12
12
  SANDBOX_BASE_URL: string;
13
13
  PRODUCTION_BASE_URL: string;
14
14
  DEV_BASE_URL: string;
15
+ BETA_BASE_URL: string;
15
16
  BUSINESS_COUNTRIES: string;
16
17
  COUNTRIES: string;
17
18
  IP: string;
@@ -1,6 +1,7 @@
1
1
  var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
4
+ var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
4
5
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
5
6
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
6
7
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -74,6 +75,7 @@ export var ENDPOINT_PATHS = {
74
75
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
75
76
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
76
77
  DEV_BASE_URL: DEV_BASE_URL,
78
+ BETA_BASE_URL: BETA_BASE_URL,
77
79
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
78
80
  COUNTRIES: API_COUNTRIES,
79
81
  IP: IP_PATH,
@@ -1,6 +1,7 @@
1
1
  import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
3
  export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
+ export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
4
5
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
5
6
  export declare const CLIENT_ORIGIN: string;
6
7
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -1,6 +1,7 @@
1
1
  import { BusinessType } from '../@types';
2
2
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
3
3
  export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
+ export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
4
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
5
6
  export var CLIENT_ORIGIN = window.location.origin;
6
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -7,7 +7,19 @@ interface VerifyLeadTokenProps {
7
7
  }
8
8
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
9
9
  data: any;
10
- bankData: any;
10
+ individualData: any;
11
+ boardResponse: {
12
+ user: any;
13
+ brand: any;
14
+ bank_account: any;
15
+ entity: any;
16
+ merchant: any;
17
+ name: any;
18
+ contact: any;
19
+ business: any;
20
+ individuals: any;
21
+ notification: any;
22
+ };
11
23
  token: string;
12
24
  }, VerifyLeadTokenProps, {
13
25
  state?: unknown;
@@ -33,7 +45,6 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
33
45
  }>;
34
46
  export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
35
47
  data: any;
36
- bankData: any;
37
48
  formData: OTPFormValues;
38
49
  }, OTPFormValues, {
39
50
  state?: unknown;
@@ -57,12 +68,9 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
57
68
  fulfilledMeta?: unknown;
58
69
  rejectedMeta?: unknown;
59
70
  }>;
60
- type RetrieveBoardProps = {
61
- boardId: string;
62
- individualId: string;
63
- individualType: string;
64
- };
65
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
71
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
72
+ data: any;
73
+ }, string, {
66
74
  state?: unknown;
67
75
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
68
76
  extra?: unknown;
@@ -102,11 +110,8 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
102
110
  rejectedMeta?: unknown;
103
111
  }>;
104
112
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
105
- data: any;
106
- flows?: undefined;
107
- } | {
108
- data: any;
109
- flows: any;
113
+ response: any;
114
+ formData: void;
110
115
  } | undefined, void, {
111
116
  state?: unknown;
112
117
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;