@tap-payments/auth-jsconnect 2.8.59-beta → 2.8.59-sandbox

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 (221) hide show
  1. package/build/@types/app.d.ts +1 -0
  2. package/build/@types/form.d.ts +1 -0
  3. package/build/@types/redux.d.ts +1 -0
  4. package/build/api/entity.d.ts +2 -2
  5. package/build/api/entity.js +12 -4
  6. package/build/api/index.d.ts +2 -2
  7. package/build/components/Tooltip/Tooltip.js +1 -1
  8. package/build/constants/api.d.ts +0 -1
  9. package/build/constants/api.js +0 -2
  10. package/build/constants/app.d.ts +0 -1
  11. package/build/constants/app.js +0 -1
  12. package/build/features/app/bank/bankStore.d.ts +13 -18
  13. package/build/features/app/bank/bankStore.js +184 -165
  14. package/build/features/app/board/boardStore.js +52 -30
  15. package/build/features/app/brand/brandStore.d.ts +16 -33
  16. package/build/features/app/brand/brandStore.js +239 -242
  17. package/build/features/app/business/businessStore.d.ts +0 -5
  18. package/build/features/app/business/businessStore.js +76 -87
  19. package/build/features/app/connectExpress/connectExpressStore.d.ts +15 -6
  20. package/build/features/app/connectExpress/connectExpressStore.js +111 -52
  21. package/build/features/app/entity/entityStore.d.ts +20 -36
  22. package/build/features/app/entity/entityStore.js +196 -246
  23. package/build/features/app/individual/individualStore.d.ts +22 -38
  24. package/build/features/app/individual/individualStore.js +263 -266
  25. package/build/features/app/password/passwordStore.d.ts +40 -23
  26. package/build/features/app/password/passwordStore.js +226 -233
  27. package/build/features/app/tax/taxStore.d.ts +13 -7
  28. package/build/features/app/tax/taxStore.js +168 -147
  29. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +13 -1
  30. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  31. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +7 -1
  32. package/build/features/bank/Bank.d.ts +1 -0
  33. package/build/features/bank/Bank.js +7 -4
  34. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  35. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  36. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  37. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  38. package/build/features/bank/screens/OperatorError/index.js +2 -0
  39. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  40. package/build/features/bank/screens/Verify/Verify.js +5 -5
  41. package/build/features/board/Board.js +8 -4
  42. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  43. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  44. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  45. package/build/features/board/screens/OperatorError/index.js +2 -0
  46. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  47. package/build/features/brand/Brand.d.ts +1 -0
  48. package/build/features/brand/Brand.js +7 -4
  49. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +8 -35
  50. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  51. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  52. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  53. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -18
  54. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  55. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
  56. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  57. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  58. package/build/features/brand/screens/BrandInfo/BrandInfo.js +23 -5
  59. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  60. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  61. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  62. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  63. package/build/features/brand/screens/OperatorError/index.js +2 -0
  64. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  65. package/build/features/brand/screens/Verify/Verify.js +1 -1
  66. package/build/features/business/Business.js +9 -4
  67. package/build/features/business/screens/Activities/Activities.js +12 -3
  68. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  69. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  70. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  71. package/build/features/business/screens/BusinessType/BusinessType.js +10 -2
  72. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
  73. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  74. package/build/features/business/screens/Customers/CustomerLocations.d.ts +9 -36
  75. package/build/features/business/screens/Customers/Customers.js +12 -3
  76. package/build/features/business/screens/Customers/ExpectedSalesRange.js +6 -3
  77. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -18
  78. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  79. package/build/features/business/screens/OTP/OTP.js +1 -1
  80. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  81. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  82. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  83. package/build/features/business/screens/OperatorError/index.js +2 -0
  84. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -2
  85. package/build/features/business/screens/Verify/Verify.js +13 -3
  86. package/build/features/connect/Connect.js +3 -2
  87. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  88. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +9 -2
  89. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  90. package/build/features/connect/screens/Individual/Email.js +3 -1
  91. package/build/features/connect/screens/Individual/Individual.js +1 -1
  92. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  93. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  94. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  95. package/build/features/connect/screens/Mobile/Mobile.js +11 -8
  96. package/build/features/connect/screens/NID/NID.js +1 -1
  97. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  98. package/build/features/connectExpress/ConnectExpress.js +2 -1
  99. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
  100. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
  101. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  102. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +6 -1
  103. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +3 -0
  104. package/build/features/connectExpress/screens/AuthenticationList/validation.js +10 -0
  105. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  106. package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
  107. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  108. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
  109. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
  110. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
  111. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
  112. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -1
  113. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  114. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -2
  115. package/build/features/connectExpress/screens/NID/NID.js +1 -1
  116. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
  117. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  118. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  119. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  120. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  121. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  122. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  123. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  124. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  125. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  126. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  127. package/build/features/entity/Entity.d.ts +1 -0
  128. package/build/features/entity/Entity.js +7 -4
  129. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  130. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  131. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  132. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  133. package/build/features/entity/screens/EntityName/EntityName.js +32 -15
  134. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -35
  135. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  136. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  137. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  138. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  139. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  140. package/build/features/entity/screens/OperatorError/index.js +2 -0
  141. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  142. package/build/features/entity/screens/Verify/Verify.js +1 -1
  143. package/build/features/featuresScreens.js +67 -7
  144. package/build/features/individual/Individual.d.ts +1 -0
  145. package/build/features/individual/Individual.js +7 -4
  146. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  147. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +54 -14
  148. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +14 -0
  149. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  150. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  151. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
  152. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  153. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  154. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +3 -2
  155. package/build/features/individual/screens/IndividualList/Email.js +3 -2
  156. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  157. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  158. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  159. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -2
  160. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
  161. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  162. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  163. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  164. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  165. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  166. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  167. package/build/features/individual/screens/OperatorError/index.js +2 -0
  168. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  169. package/build/features/individual/screens/Verify/Verify.js +1 -1
  170. package/build/features/password/Password.d.ts +1 -0
  171. package/build/features/password/Password.js +75 -28
  172. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  173. package/build/features/password/screens/OTP/OTP.js +1 -1
  174. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  175. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  176. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  177. package/build/features/password/screens/OperatorError/index.js +2 -0
  178. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  179. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  180. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  181. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  182. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  183. package/build/features/password/screens/Verify/Verify.js +5 -5
  184. package/build/features/shared/Address/CountryList.d.ts +7 -23
  185. package/build/features/shared/Address/InputSelect.d.ts +7 -23
  186. package/build/features/shared/Button/FlowsButtons.js +13 -3
  187. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -0
  188. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  189. package/build/features/shared/Input/Input.d.ts +2 -2
  190. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +5 -1
  191. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
  192. package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
  193. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
  194. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
  195. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
  196. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
  197. package/build/features/signIn/SignIn.js +12 -3
  198. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  199. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  200. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  201. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  202. package/build/features/tax/Tax.d.ts +1 -0
  203. package/build/features/tax/Tax.js +7 -4
  204. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  205. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  206. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  207. package/build/features/tax/screens/OperatorError/index.js +2 -0
  208. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  209. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  210. package/build/features/tax/screens/Verify/Verify.js +5 -5
  211. package/build/hooks/index.d.ts +1 -0
  212. package/build/hooks/index.js +1 -0
  213. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  214. package/build/hooks/useFormDirtyCheck.js +66 -0
  215. package/build/hooks/useVerifyToken.d.ts +5 -2
  216. package/build/hooks/useVerifyToken.js +10 -5
  217. package/build/utils/common.js +3 -3
  218. package/build/utils/locale.js +2 -1
  219. package/build/utils/string.d.ts +5 -2
  220. package/build/utils/string.js +34 -5
  221. package/package.json +2 -2
@@ -15,7 +15,7 @@ export declare const convertNumbers2English: (str: string) => string;
15
15
  export declare const getParameterByName: (name: string) => string | null;
16
16
  export declare const getClientEmailUrl: () => string;
17
17
  export declare const getFlowUrl: (path: string, lang: string) => string;
18
- export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string) => string;
18
+ export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string, userId: string, userType: string) => string;
19
19
  export declare const capitalizeTheFirstLetterOfEachWord: (words: string) => string;
20
20
  export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
21
21
  al: any;
@@ -41,11 +41,13 @@ export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
41
41
  l: any;
42
42
  };
43
43
  export declare const removeRequestHeaders: () => void;
44
- export declare const getScreenNameBasedOnFlow: (flow: string, isAuthorizedUser?: boolean) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP" | "INDIVIDUAL_LIST_STEP" | "BANK_BANK_DETAILS_STEP" | "TAX_TAX_DETAILS_STEP" | "ENTITY_NAME_STEP" | "BRAND_INFO_STEP";
44
+ export declare const getBaseUrl: () => string;
45
+ export declare const getScreenNameBasedOnFlow: (flow: string, isAuthorizedUser?: boolean, isOtherThanSAOrKWCountry?: boolean) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP" | "INDIVIDUAL_LIST_STEP" | "PASSWORD_CREATE_PASSWORD_STEP" | "BANK_BANK_DETAILS_STEP" | "TAX_TAX_DETAILS_STEP" | "ENTITY_NAME_STEP" | "BRAND_INFO_STEP";
45
46
  export declare const getEighteenYearsAgo: () => string;
46
47
  export declare const isKW: (flag: string) => boolean;
47
48
  export declare const isSA: (flag: string) => boolean;
48
49
  export declare const isOtherThanKWOrSA: (flag: string) => boolean;
50
+ export declare const isKWOrSA: (flag: string) => boolean;
49
51
  export declare const isLinkedIn: (flag: string) => boolean;
50
52
  export declare const isTwitter: (flag: string) => boolean;
51
53
  export declare const isWebsite: (flag: string) => boolean;
@@ -72,3 +74,4 @@ export declare const getFileType: (type: string) => "" | "image/jpeg" | "image/p
72
74
  export declare const isStringHasOneAsterisk: (value: string) => boolean;
73
75
  export declare const isOtherLicense: (item?: License) => boolean;
74
76
  export declare const formatNumberAsCurrency: (number: string) => string;
77
+ export declare const getCurrencyByCountryIso2: (countryCode: string) => string;
@@ -1,7 +1,7 @@
1
1
  import { FlowsTypes } from '../@types';
2
2
  import { concatenateObjectValues, encryptString } from '.';
3
3
  import { removeAxiosGlobalHeaders } from '../api';
4
- import { ICONS_FULL_PATH } from '../constants';
4
+ import { COUNTRY_TO_CURRENCY, ENDPOINT_PATHS, ICONS_FULL_PATH } from '../constants';
5
5
  import moment from 'moment';
6
6
  export var maskPhone = function (str) {
7
7
  if (str === void 0) { str = ''; }
@@ -94,9 +94,12 @@ export var getFlowUrl = function (path, lang) {
94
94
  var origin = window.location.origin;
95
95
  return origin + path + "?lang=".concat(lang, "&token=");
96
96
  };
97
- export var getResetFlowUrl = function (path, lang, operationType, id, infoId) {
97
+ export var getResetFlowUrl = function (path, lang, operationType, id, infoId, userId, userType) {
98
98
  var origin = window.location.origin;
99
- return origin + path + "?lang=".concat(lang, "&operation_type=").concat(operationType, "&board_id=").concat(id, "&board_info_id=").concat(infoId, "&token=");
99
+ var baseUrl = origin + path + "?lang=".concat(lang, "&operation_type=").concat(operationType, "&board_id=").concat(id, "&board_info_id=").concat(infoId);
100
+ if (userId && userType)
101
+ baseUrl = baseUrl + "&user_id=".concat(userId, "&user_type=").concat(userType);
102
+ return baseUrl + "&token=";
100
103
  };
101
104
  export var capitalizeTheFirstLetterOfEachWord = function (words) {
102
105
  var separateWord = words.toLowerCase().split(' ');
@@ -159,7 +162,20 @@ export var removeRequestHeaders = function () {
159
162
  'authorization'
160
163
  ]);
161
164
  };
162
- export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser) {
165
+ export var getBaseUrl = function () {
166
+ var origin = window.location.origin;
167
+ if (origin.includes('localhost')) {
168
+ return ENDPOINT_PATHS.DEV_BASE_URL;
169
+ }
170
+ if (origin.includes('dev')) {
171
+ return ENDPOINT_PATHS.DEV_BASE_URL;
172
+ }
173
+ if (origin.includes('sandbox')) {
174
+ return ENDPOINT_PATHS.SANDBOX_BASE_URL;
175
+ }
176
+ return ENDPOINT_PATHS.PRODUCTION_BASE_URL;
177
+ };
178
+ export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser, isOtherThanSAOrKWCountry) {
163
179
  if (flow === FlowsTypes.BANK) {
164
180
  return 'BANK_BANK_DETAILS_STEP';
165
181
  }
@@ -167,7 +183,7 @@ export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser) {
167
183
  return 'BUSINESS_BUSINESS_TYPE_STEP';
168
184
  }
169
185
  if (flow === FlowsTypes.INDIVIDUAL) {
170
- return isAuthorizedUser ? 'INDIVIDUAL_LIST_STEP' : 'INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP';
186
+ return isAuthorizedUser || isOtherThanSAOrKWCountry ? 'INDIVIDUAL_LIST_STEP' : 'INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP';
171
187
  }
172
188
  if (flow === FlowsTypes.CONNECT) {
173
189
  return 'CONNECT_NID_STEP';
@@ -181,6 +197,9 @@ export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser) {
181
197
  if (flow === FlowsTypes.ENTITY) {
182
198
  return 'ENTITY_NAME_STEP';
183
199
  }
200
+ if (flow === FlowsTypes.PASSWORD) {
201
+ return 'PASSWORD_CREATE_PASSWORD_STEP';
202
+ }
184
203
  return '';
185
204
  };
186
205
  export var getEighteenYearsAgo = function () {
@@ -196,6 +215,9 @@ export var isSA = function (flag) {
196
215
  export var isOtherThanKWOrSA = function (flag) {
197
216
  return !isKW(flag) && !isSA(flag);
198
217
  };
218
+ export var isKWOrSA = function (flag) {
219
+ return isKW(flag) || isSA(flag);
220
+ };
199
221
  export var isLinkedIn = function (flag) {
200
222
  return 'linkedin' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
201
223
  };
@@ -303,3 +325,10 @@ export var formatNumberAsCurrency = function (number) {
303
325
  return '';
304
326
  return parseInt(number).toLocaleString();
305
327
  };
328
+ export var getCurrencyByCountryIso2 = function (countryCode) {
329
+ var _a;
330
+ if (!countryCode)
331
+ return '';
332
+ var currencyCode = (_a = COUNTRY_TO_CURRENCY[countryCode]) !== null && _a !== void 0 ? _a : '';
333
+ return currencyCode;
334
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.8.59-beta",
3
+ "version": "2.8.59-sandbox",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",
@@ -21,7 +21,7 @@
21
21
  "copy:files": "copyfiles -u 1 src/**/*.css build/",
22
22
  "tsc:alias": "tsc-alias -p tsconfig.json",
23
23
  "ts:build": "rm -rf build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
24
- "push": "npm publish --access public --tag beta"
24
+ "push": "npm publish --access public --tag sandbox"
25
25
  },
26
26
  "keywords": [],
27
27
  "author": {