@tap-payments/auth-jsconnect 2.8.51-development → 2.8.52-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 (229) hide show
  1. package/build/@types/app.d.ts +0 -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/constants/api.d.ts +1 -0
  9. package/build/constants/api.js +2 -0
  10. package/build/constants/app.d.ts +2 -0
  11. package/build/constants/app.js +2 -0
  12. package/build/features/app/auth/authStore.js +23 -2
  13. package/build/features/app/bank/bankStore.d.ts +18 -13
  14. package/build/features/app/bank/bankStore.js +165 -184
  15. package/build/features/app/board/boardStore.js +30 -52
  16. package/build/features/app/brand/brandStore.d.ts +33 -16
  17. package/build/features/app/brand/brandStore.js +242 -239
  18. package/build/features/app/business/businessStore.d.ts +5 -0
  19. package/build/features/app/business/businessStore.js +87 -76
  20. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -15
  21. package/build/features/app/connectExpress/connectExpressStore.js +68 -107
  22. package/build/features/app/entity/entityStore.d.ts +36 -20
  23. package/build/features/app/entity/entityStore.js +246 -196
  24. package/build/features/app/individual/individualStore.d.ts +38 -22
  25. package/build/features/app/individual/individualStore.js +266 -263
  26. package/build/features/app/password/passwordStore.d.ts +23 -40
  27. package/build/features/app/password/passwordStore.js +233 -226
  28. package/build/features/app/tax/taxStore.d.ts +7 -13
  29. package/build/features/app/tax/taxStore.js +147 -168
  30. package/build/features/auth/Auth.js +5 -1
  31. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +1 -13
  32. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +26 -4
  33. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -7
  34. package/build/features/auth/screens/OTP/OTP.js +6 -1
  35. package/build/features/auth/screens/OTP/OTPInput.js +11 -0
  36. package/build/features/bank/Bank.d.ts +0 -1
  37. package/build/features/bank/Bank.js +4 -7
  38. package/build/features/bank/screens/BankDetails/BankDetails.js +5 -18
  39. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  40. package/build/features/bank/screens/Verify/Verify.js +5 -5
  41. package/build/features/board/Board.js +4 -8
  42. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -3
  43. package/build/features/brand/Brand.d.ts +0 -1
  44. package/build/features/brand/Brand.js +4 -7
  45. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +35 -8
  46. package/build/features/brand/screens/BrandActivities/BrandActivities.js +12 -49
  47. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  48. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -6
  49. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +18 -5
  50. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  51. package/build/features/brand/screens/BrandActivities/TAC.d.ts +7 -2
  52. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  53. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  54. package/build/features/brand/screens/BrandInfo/BrandInfo.js +5 -23
  55. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +7 -23
  56. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  57. package/build/features/brand/screens/Verify/Verify.js +1 -1
  58. package/build/features/business/Business.js +4 -9
  59. package/build/features/business/screens/Activities/Activities.js +3 -12
  60. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  61. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  62. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  63. package/build/features/business/screens/BusinessType/BusinessType.js +2 -10
  64. package/build/features/business/screens/BusinessType/LicenseType.d.ts +26 -4
  65. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  66. package/build/features/business/screens/Customers/CustomerLocations.d.ts +36 -9
  67. package/build/features/business/screens/Customers/Customers.js +3 -12
  68. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -6
  69. package/build/features/business/screens/Customers/RefundPolicy.d.ts +18 -5
  70. package/build/features/business/screens/IDBOD/IDBOD.js +2 -10
  71. package/build/features/business/screens/OTP/OTP.js +1 -1
  72. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -14
  73. package/build/features/business/screens/Verify/Verify.js +3 -13
  74. package/build/features/connect/Connect.js +4 -5
  75. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  76. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +2 -9
  77. package/build/features/connect/screens/CivilID/CivilID.js +7 -2
  78. package/build/features/connect/screens/Individual/Email.js +1 -3
  79. package/build/features/connect/screens/Individual/Individual.js +1 -1
  80. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  81. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  82. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  83. package/build/features/connect/screens/Mobile/Mobile.js +8 -11
  84. package/build/features/connect/screens/NID/NID.js +1 -1
  85. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  86. package/build/features/connectExpress/ConnectExpress.js +18 -5
  87. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +2 -5
  88. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +1 -6
  89. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +0 -3
  90. package/build/features/connectExpress/screens/AuthenticationList/validation.js +0 -10
  91. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -7
  92. package/build/features/connectExpress/screens/CivilID/CivilID.js +7 -2
  93. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  94. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +9 -2
  95. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +26 -4
  96. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +7 -2
  97. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +9 -2
  98. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  99. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +24 -14
  100. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +8 -7
  101. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +7 -5
  102. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -9
  103. package/build/features/connectExpress/screens/NID/NID.js +7 -2
  104. package/build/features/connectExpress/screens/NID/TAC.d.ts +7 -2
  105. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  106. package/build/features/connectExpress/screens/OTP/OTP.js +6 -1
  107. package/build/features/connectExpress/screens/OTP/OTPInput.js +11 -1
  108. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  109. package/build/features/entity/Entity.d.ts +0 -1
  110. package/build/features/entity/Entity.js +4 -7
  111. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  112. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +4 -8
  113. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +4 -8
  114. package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -34
  115. package/build/features/entity/screens/EntityName/EntityName.js +15 -32
  116. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +35 -8
  117. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  118. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  119. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  120. package/build/features/entity/screens/Verify/Verify.js +1 -1
  121. package/build/features/featuresScreens.js +7 -67
  122. package/build/features/individual/Individual.d.ts +0 -1
  123. package/build/features/individual/Individual.js +4 -7
  124. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  125. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -54
  126. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +2 -5
  127. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +26 -4
  128. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  129. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -4
  130. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -3
  131. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  132. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  133. package/build/features/individual/screens/IndividualList/IndividualList.js +5 -18
  134. package/build/features/individual/screens/IndividualList/UserList.js +9 -13
  135. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  136. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +26 -4
  137. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  138. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -76
  139. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  140. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  141. package/build/features/individual/screens/Verify/Verify.js +1 -1
  142. package/build/features/password/Password.d.ts +0 -1
  143. package/build/features/password/Password.js +28 -75
  144. package/build/features/password/screens/CreatePassword/CreatePassword.js +4 -8
  145. package/build/features/password/screens/OTP/OTP.js +1 -1
  146. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  147. package/build/features/password/screens/Verify/Verify.js +5 -5
  148. package/build/features/shared/Address/CountryList.d.ts +23 -7
  149. package/build/features/shared/Address/InputSelect.d.ts +23 -7
  150. package/build/features/shared/Button/FlowsButtons.js +3 -13
  151. package/build/features/shared/Containers/FeatureContainer.d.ts +0 -1
  152. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  153. package/build/features/shared/Input/Input.d.ts +2 -2
  154. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -5
  155. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -3
  156. package/build/features/shared/UploadFile/FileUpload.d.ts +7 -2
  157. package/build/features/shared/UploadFile/UploadFile.d.ts +7 -2
  158. package/build/features/shared/UploadFile/UploadWrapper.d.ts +7 -2
  159. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +7 -2
  160. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +7 -2
  161. package/build/features/signIn/SignIn.js +3 -12
  162. package/build/features/tax/Tax.d.ts +0 -1
  163. package/build/features/tax/Tax.js +4 -7
  164. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  165. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
  166. package/build/features/tax/screens/Verify/Verify.js +5 -5
  167. package/build/hooks/index.d.ts +0 -1
  168. package/build/hooks/index.js +0 -1
  169. package/build/hooks/useVerifyToken.d.ts +2 -5
  170. package/build/hooks/useVerifyToken.js +5 -10
  171. package/build/utils/common.js +4 -4
  172. package/build/utils/locale.js +1 -2
  173. package/build/utils/string.d.ts +2 -5
  174. package/build/utils/string.js +5 -34
  175. package/package.json +2 -2
  176. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +0 -5
  177. package/build/features/bank/screens/OperatorError/OperatorError.js +0 -9
  178. package/build/features/bank/screens/OperatorError/index.d.ts +0 -3
  179. package/build/features/bank/screens/OperatorError/index.js +0 -2
  180. package/build/features/board/screens/OperatorError/OperatorError.d.ts +0 -5
  181. package/build/features/board/screens/OperatorError/OperatorError.js +0 -9
  182. package/build/features/board/screens/OperatorError/index.d.ts +0 -3
  183. package/build/features/board/screens/OperatorError/index.js +0 -2
  184. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +0 -5
  185. package/build/features/brand/screens/OperatorError/OperatorError.js +0 -9
  186. package/build/features/brand/screens/OperatorError/index.d.ts +0 -3
  187. package/build/features/brand/screens/OperatorError/index.js +0 -2
  188. package/build/features/business/screens/OperatorError/OperatorError.d.ts +0 -5
  189. package/build/features/business/screens/OperatorError/OperatorError.js +0 -9
  190. package/build/features/business/screens/OperatorError/index.d.ts +0 -3
  191. package/build/features/business/screens/OperatorError/index.js +0 -2
  192. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +0 -9
  193. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +0 -90
  194. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +0 -5
  195. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +0 -9
  196. package/build/features/connectExpress/screens/OperatorError/index.d.ts +0 -3
  197. package/build/features/connectExpress/screens/OperatorError/index.js +0 -2
  198. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -5
  199. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +0 -34
  200. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +0 -2
  201. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +0 -2
  202. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +0 -5
  203. package/build/features/entity/screens/OperatorError/OperatorError.js +0 -9
  204. package/build/features/entity/screens/OperatorError/index.d.ts +0 -3
  205. package/build/features/entity/screens/OperatorError/index.js +0 -2
  206. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +0 -14
  207. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +0 -76
  208. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +0 -5
  209. package/build/features/individual/screens/OperatorError/OperatorError.js +0 -9
  210. package/build/features/individual/screens/OperatorError/index.d.ts +0 -3
  211. package/build/features/individual/screens/OperatorError/index.js +0 -2
  212. package/build/features/password/screens/OperatorError/OperatorError.d.ts +0 -5
  213. package/build/features/password/screens/OperatorError/OperatorError.js +0 -9
  214. package/build/features/password/screens/OperatorError/index.d.ts +0 -3
  215. package/build/features/password/screens/OperatorError/index.js +0 -2
  216. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
  217. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
  218. package/build/features/password/screens/PrepareDataLoading/index.d.ts +0 -2
  219. package/build/features/password/screens/PrepareDataLoading/index.js +0 -2
  220. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +0 -5
  221. package/build/features/signIn/screens/OperatorError/OperatorError.js +0 -9
  222. package/build/features/signIn/screens/OperatorError/index.d.ts +0 -3
  223. package/build/features/signIn/screens/OperatorError/index.js +0 -2
  224. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +0 -5
  225. package/build/features/tax/screens/OperatorError/OperatorError.js +0 -9
  226. package/build/features/tax/screens/OperatorError/index.d.ts +0 -3
  227. package/build/features/tax/screens/OperatorError/index.js +0 -2
  228. package/build/hooks/useFormDirtyCheck.d.ts +0 -10
  229. package/build/hooks/useFormDirtyCheck.js +0 -66
@@ -667,7 +667,6 @@ export interface EventPageTrackingData extends CommonDataLayer {
667
667
  }
668
668
  export interface PageTrackingData {
669
669
  title?: string;
670
- connect_flow?: string;
671
670
  }
672
671
  export type VerifyExpressTokenParams = {
673
672
  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>;
@@ -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,5 +1,7 @@
1
1
  import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
+ export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
+ export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
3
5
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
4
6
  export declare const CLIENT_ORIGIN: string;
5
7
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -1,5 +1,7 @@
1
1
  import { BusinessType } from '../@types';
2
2
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
3
+ export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
+ export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
3
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
4
6
  export var CLIENT_ORIGIN = window.location.origin;
5
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -60,7 +60,7 @@ import { AuthForType, AuthTypeNumber, FlowsTypes, MigrationStatus } from '../../
60
60
  import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, defaultCountry } from '../../../constants';
61
61
  import API from '../../../api';
62
62
  import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
63
- import { findCountryByIddPrefix, openConnect, sleep } from '../../../utils';
63
+ import { findCountryByIddPrefix, openConnect, sendCustomEventToGTM, sleep } from '../../../utils';
64
64
  export var updateBusinessCountry = createAsyncThunk('auth/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
65
  var auth, payload, data;
66
66
  return __generator(this, function (_a) {
@@ -198,6 +198,11 @@ export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (
198
198
  data = (_h.sent()).data;
199
199
  if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
200
200
  throw new Error(data.errors[0].description);
201
+ sendCustomEventToGTM({
202
+ event: 'Send Event',
203
+ event_category: 'User Registration Flow',
204
+ event_action: 'First OTP Success'
205
+ });
201
206
  if (scope === 'merchant') {
202
207
  openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
203
208
  return [2, data];
@@ -342,6 +347,11 @@ export var verifyEmailOtp = createAsyncThunk('auth/verifyEmailOtp', function (pa
342
347
  data = (_h.sent()).data;
343
348
  if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
344
349
  throw new Error(data.errors[0].description);
350
+ sendCustomEventToGTM({
351
+ event: 'Send Event',
352
+ event_category: 'User Registration Flow',
353
+ event_action: 'First OTP Success'
354
+ });
345
355
  if (scope === 'merchant') {
346
356
  openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
347
357
  return [2, data];
@@ -460,6 +470,11 @@ export var verifyNIDOtp = createAsyncThunk('auth/verifyNIDOtp', function (params
460
470
  data = (_h.sent()).data;
461
471
  if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
462
472
  throw new Error(data.errors[0].description);
473
+ sendCustomEventToGTM({
474
+ event: 'Send Event',
475
+ event_category: 'User Registration Flow',
476
+ event_action: 'First OTP Success'
477
+ });
463
478
  if (scope === 'merchant') {
464
479
  openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
465
480
  return [2, data];
@@ -574,7 +589,13 @@ export var checkMigrationStatus = createAsyncThunk('auth/checkMigrationStatus',
574
589
  throw new Error('please_try_again_after_few_minutes');
575
590
  }
576
591
  _a.label = 5;
577
- case 5: return [4, thunkApi.dispatch(confirmInfo({ authId: authId }))];
592
+ case 5:
593
+ sendCustomEventToGTM({
594
+ event: 'Send Event',
595
+ event_category: 'User Registration Flow',
596
+ event_action: 'Migration Completed'
597
+ });
598
+ return [4, thunkApi.dispatch(confirmInfo({ authId: authId }))];
578
599
  case 6:
579
600
  _a.sent();
580
601
  return [2];
@@ -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;