@tap-payments/auth-jsconnect 2.10.14-beta → 2.10.14-development

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 (189) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +4 -2
  3. package/build/@types/app.js +2 -0
  4. package/build/@types/form.d.ts +6 -0
  5. package/build/@types/index.d.ts +1 -0
  6. package/build/@types/index.js +1 -0
  7. package/build/@types/terminal.d.ts +116 -0
  8. package/build/@types/terminal.js +1 -0
  9. package/build/api/auth.d.ts +10 -1
  10. package/build/api/entity.d.ts +3 -0
  11. package/build/api/index.d.ts +7 -1
  12. package/build/api/index.js +3 -1
  13. package/build/api/lead.d.ts +1 -0
  14. package/build/api/terminal.d.ts +28 -0
  15. package/build/api/terminal.js +45 -0
  16. package/build/app/rootReducer.d.ts +1 -0
  17. package/build/app/rootReducer.js +3 -1
  18. package/build/app/store.d.ts +2 -0
  19. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  20. package/build/assets/currencies/AEDSymbol.js +28 -0
  21. package/build/assets/currencies/index.d.ts +2 -2
  22. package/build/assets/currencies/index.js +2 -2
  23. package/build/assets/currencies/utils.js +3 -1
  24. package/build/assets/locales/ar.json +47 -11
  25. package/build/assets/locales/en.json +50 -14
  26. package/build/components/DeviceCard/DeviceCard.d.ts +18 -0
  27. package/build/components/DeviceCard/DeviceCard.js +103 -0
  28. package/build/components/DeviceCard/index.d.ts +3 -0
  29. package/build/components/DeviceCard/index.js +2 -0
  30. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  31. package/build/components/OTPTimer/OTPTimer.js +4 -4
  32. package/build/components/TextWithCurrency/TextWithCurrency.js +1 -1
  33. package/build/components/Tooltip/Tooltip.js +1 -1
  34. package/build/constants/api.d.ts +0 -1
  35. package/build/constants/api.js +0 -2
  36. package/build/constants/app.d.ts +13 -3
  37. package/build/constants/app.js +127 -6
  38. package/build/constants/assets.d.ts +11 -6
  39. package/build/constants/assets.js +118 -107
  40. package/build/constants/dummy.js +27 -20
  41. package/build/constants/flows.d.ts +15 -0
  42. package/build/constants/flows.js +15 -0
  43. package/build/constants/validation.d.ts +2 -0
  44. package/build/constants/validation.js +2 -0
  45. package/build/features/app/auth/authStore.d.ts +24 -5
  46. package/build/features/app/auth/authStore.js +143 -77
  47. package/build/features/app/business/businessStore.js +5 -4
  48. package/build/features/app/connectExpress/connectExpressStore.js +14 -10
  49. package/build/features/app/individual/individualStore.js +0 -1
  50. package/build/features/app/tax/taxStore.js +1 -1
  51. package/build/features/app/terminal/terminalStore.d.ts +110 -0
  52. package/build/features/app/terminal/terminalStore.js +676 -0
  53. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +14 -8
  54. package/build/features/auth/screens/AuthenticationList/UnifiedNumber.d.ts +35 -0
  55. package/build/features/auth/screens/AuthenticationList/UnifiedNumber.js +80 -0
  56. package/build/features/auth/screens/AuthenticationList/validation.d.ts +22 -0
  57. package/build/features/auth/screens/AuthenticationList/validation.js +77 -1
  58. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  59. package/build/features/auth/screens/OTP/OTP.js +15 -3
  60. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  61. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  62. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  63. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  64. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  65. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  66. package/build/features/auth/screens/Passcode/index.js +2 -0
  67. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  68. package/build/features/auth/screens/Passcode/validation.js +4 -0
  69. package/build/features/business/screens/BusinessType/BusinessType.js +12 -2
  70. package/build/features/business/screens/BusinessType/LicenseList.js +4 -1
  71. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  72. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  73. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  74. package/build/features/business/screens/BusinessType/validation.js +31 -7
  75. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +14 -9
  76. package/build/features/connectExpress/screens/AuthenticationList/UnifiedNumber.d.ts +35 -0
  77. package/build/features/connectExpress/screens/AuthenticationList/UnifiedNumber.js +80 -0
  78. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +22 -0
  79. package/build/features/connectExpress/screens/AuthenticationList/validation.js +77 -1
  80. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  81. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +13 -1
  82. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  83. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  84. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +21 -0
  85. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +44 -13
  86. package/build/features/entity/screens/EntityName/EntityName.js +2 -1
  87. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  88. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  89. package/build/features/entity/screens/EntityName/validation.js +14 -3
  90. package/build/features/featuresScreens.d.ts +1 -0
  91. package/build/features/featuresScreens.js +72 -0
  92. package/build/features/shared/Button/Button.js +2 -3
  93. package/build/features/shared/Button/FlowsButtons.js +1 -1
  94. package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
  95. package/build/features/shared/PushNotification/PushNotification.js +34 -0
  96. package/build/features/shared/PushNotification/index.d.ts +2 -0
  97. package/build/features/shared/PushNotification/index.js +2 -0
  98. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
  99. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
  100. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  101. package/build/features/terminal/Terminal.d.ts +14 -0
  102. package/build/features/terminal/Terminal.js +95 -0
  103. package/build/features/terminal/index.d.ts +1 -0
  104. package/build/features/terminal/index.js +1 -0
  105. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
  106. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +69 -0
  107. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
  108. package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
  109. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
  110. package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
  111. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
  112. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +51 -0
  113. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
  114. package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
  115. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
  116. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
  117. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
  118. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
  119. package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
  120. package/build/features/terminal/screens/Loading/Loading.js +10 -0
  121. package/build/features/terminal/screens/Loading/index.d.ts +2 -0
  122. package/build/features/terminal/screens/Loading/index.js +2 -0
  123. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
  124. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +56 -0
  125. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
  126. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
  127. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
  128. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
  129. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
  130. package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
  131. package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
  132. package/build/features/terminal/screens/OperatorError/index.js +2 -0
  133. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
  134. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  135. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
  136. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
  137. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  138. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +31 -0
  139. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  140. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
  141. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
  142. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
  143. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
  144. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
  145. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
  146. package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
  147. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
  148. package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
  149. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
  150. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +47 -0
  151. package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
  152. package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
  153. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
  154. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +53 -0
  155. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
  156. package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
  157. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
  158. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +98 -0
  159. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
  160. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
  161. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
  162. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
  163. package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
  164. package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
  165. package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
  166. package/build/features/terminal/screens/Verify/Verify.js +85 -0
  167. package/build/features/terminal/screens/Verify/index.d.ts +2 -0
  168. package/build/features/terminal/screens/Verify/index.js +2 -0
  169. package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
  170. package/build/features/terminal/screens/Verify/validation.js +4 -0
  171. package/build/features/terminal/screens/shared/Header.d.ts +10 -0
  172. package/build/features/terminal/screens/shared/Header.js +30 -0
  173. package/build/features/terminal/screens/shared/TerminalList.d.ts +11 -0
  174. package/build/features/terminal/screens/shared/TerminalList.js +25 -0
  175. package/build/features/terminal/screens/shared/index.d.ts +5 -0
  176. package/build/features/terminal/screens/shared/index.js +5 -0
  177. package/build/features/terminal/screens/shared/styles.d.ts +196 -0
  178. package/build/features/terminal/screens/shared/styles.js +155 -0
  179. package/build/features/terminal/screens/shared/utils.d.ts +7 -0
  180. package/build/features/terminal/screens/shared/utils.js +24 -0
  181. package/build/hooks/useAppDispatch.d.ts +1 -0
  182. package/build/index.d.ts +3 -2
  183. package/build/index.js +4 -2
  184. package/build/theme/palette.js +12 -0
  185. package/build/theme/typography.js +4 -0
  186. package/build/utils/common.js +4 -4
  187. package/build/utils/string.d.ts +2 -1
  188. package/build/utils/string.js +10 -1
  189. package/package.json +2 -2
@@ -43,7 +43,7 @@ export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
43
43
  };
44
44
  export declare const removeRequestHeaders: () => void;
45
45
  export declare const getBaseUrl: () => string;
46
- 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";
46
+ export declare const getScreenNameBasedOnFlow: (flow: string, isAuthorizedUser?: boolean, isOtherThanSAOrKWCountry?: boolean) => string;
47
47
  export declare const getEighteenYearsAgo: () => string;
48
48
  export declare const isKW: (flag: string) => boolean;
49
49
  export declare const isSA: (flag: string) => boolean;
@@ -78,3 +78,4 @@ export declare const formatNumberAsCurrency: (number: string) => string;
78
78
  export declare const getCurrencyByCountryIso2: (countryCode?: string) => string;
79
79
  export declare const getMobileNumberLen: (initialLen: number, number: string) => number;
80
80
  export declare const getWebsiteLink: (isAr: boolean, countryCode: string, path: string) => string;
81
+ export declare function formatCode(code: string, chunkSize?: number, delimiter?: 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 { COUNTRY_TO_CURRENCY, ENDPOINT_PATHS, ICONS_FULL_PATH, LANGUAGE_ABBREVIATIONS, TAP_WEBSITE } from '../constants';
4
+ import { CONNECT_FLOWS, COUNTRY_TO_CURRENCY, ENDPOINT_PATHS, ICONS_FULL_PATH, LANGUAGE_ABBREVIATIONS, TAP_WEBSITE } from '../constants';
5
5
  import moment from 'moment';
6
6
  export var maskPhone = function (str) {
7
7
  if (str === void 0) { str = ''; }
@@ -204,6 +204,9 @@ export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser, isOtherT
204
204
  if (flow === FlowsTypes.PASSWORD) {
205
205
  return 'PASSWORD_CREATE_PASSWORD_STEP';
206
206
  }
207
+ if (flow === FlowsTypes.TERMINAL) {
208
+ return CONNECT_FLOWS.terminal.terminalDeviceList;
209
+ }
207
210
  return '';
208
211
  };
209
212
  export var getEighteenYearsAgo = function () {
@@ -344,3 +347,9 @@ export var getWebsiteLink = function (isAr, countryCode, path) {
344
347
  var language = isAr ? LANGUAGE_ABBREVIATIONS.ARABIC : LANGUAGE_ABBREVIATIONS.ENGLISH;
345
348
  return TAP_WEBSITE + language + '-' + countryCode + path;
346
349
  };
350
+ export function formatCode(code, chunkSize, delimiter) {
351
+ var _a;
352
+ if (chunkSize === void 0) { chunkSize = 3; }
353
+ if (delimiter === void 0) { delimiter = ' - '; }
354
+ return ((_a = code.match(new RegExp(".{1,".concat(chunkSize, "}"), 'g'))) === null || _a === void 0 ? void 0 : _a.join(delimiter)) || code;
355
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.10.14-beta",
3
+ "version": "2.10.14-development",
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 development"
25
25
  },
26
26
  "keywords": [],
27
27
  "author": {