@tap-payments/auth-jsconnect 2.12.0-beta → 2.12.0-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.
- package/build/@types/app.d.ts +3 -1
- package/build/@types/app.js +1 -0
- package/build/@types/form.d.ts +4 -2
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/terminal.d.ts +104 -0
- package/build/@types/terminal.js +1 -0
- package/build/api/account.d.ts +2 -2
- package/build/api/account.js +7 -4
- package/build/api/auth.d.ts +18 -3
- package/build/api/auth.js +7 -3
- package/build/api/axios.d.ts +1 -1
- package/build/api/axios.js +9 -1
- package/build/api/entity.d.ts +3 -0
- package/build/api/headers.d.ts +6 -0
- package/build/api/headers.js +18 -0
- package/build/api/index.d.ts +15 -8
- package/build/api/index.js +5 -2
- package/build/api/lead.d.ts +3 -2
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +5 -2
- package/build/api/terminal.d.ts +25 -0
- package/build/api/terminal.js +55 -0
- package/build/app/rootReducer.d.ts +2 -0
- package/build/app/rootReducer.js +5 -1
- package/build/app/session.d.ts +17 -0
- package/build/app/session.js +28 -0
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -0
- package/build/assets/currencies/AEDSymbol.js +1 -1
- package/build/assets/currencies/SARSymbol.js +1 -1
- package/build/assets/locales/ar.json +51 -15
- package/build/assets/locales/en.json +56 -46
- package/build/components/DeviceCard/DeviceCard.d.ts +19 -0
- package/build/components/DeviceCard/DeviceCard.js +102 -0
- package/build/components/DeviceCard/index.d.ts +3 -0
- package/build/components/DeviceCard/index.js +2 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +7 -0
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +33 -0
- package/build/components/TruncatedTooltipText/index.d.ts +2 -0
- package/build/components/TruncatedTooltipText/index.js +2 -0
- package/build/constants/api.d.ts +1 -1
- package/build/constants/api.js +2 -2
- package/build/constants/app.d.ts +27 -3
- package/build/constants/app.js +350 -40
- package/build/constants/dummy.d.ts +2 -29
- package/build/constants/dummy.js +4 -4
- package/build/constants/flows.d.ts +27 -22
- package/build/constants/flows.js +27 -23
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/auth/authStore.d.ts +4 -0
- package/build/features/app/auth/authStore.js +168 -54
- package/build/features/app/bank/bankStore.d.ts +7 -0
- package/build/features/app/bank/bankStore.js +110 -20
- package/build/features/app/board/boardStore.d.ts +5 -0
- package/build/features/app/board/boardStore.js +94 -7
- package/build/features/app/brand/brandStore.d.ts +7 -0
- package/build/features/app/brand/brandStore.js +107 -19
- package/build/features/app/business/businessStore.d.ts +10 -0
- package/build/features/app/business/businessStore.js +130 -37
- package/build/features/app/connect/connectStore.d.ts +12 -5
- package/build/features/app/connect/connectStore.js +146 -31
- package/build/features/app/connectExpress/connectExpressStore.d.ts +10 -5
- package/build/features/app/connectExpress/connectExpressStore.js +159 -21
- package/build/features/app/entity/entityStore.d.ts +7 -0
- package/build/features/app/entity/entityStore.js +108 -18
- package/build/features/app/individual/individualStore.d.ts +9 -0
- package/build/features/app/individual/individualStore.js +126 -34
- package/build/features/app/kyc/kycStore.d.ts +5 -5
- package/build/features/app/kyc/kycStore.js +4 -1
- package/build/features/app/password/passwordStore.d.ts +9 -0
- package/build/features/app/password/passwordStore.js +130 -46
- package/build/features/app/signIn/signInStore.js +12 -16
- package/build/features/app/tax/taxStore.d.ts +7 -0
- package/build/features/app/tax/taxStore.js +104 -17
- package/build/features/app/terminal/terminalStore.d.ts +119 -0
- package/build/features/app/terminal/terminalStore.js +781 -0
- package/build/features/auth/Auth.js +3 -2
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
- package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
- package/build/features/auth/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
- package/build/features/auth/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/auth/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/auth/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/auth/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/bank/Bank.js +3 -2
- package/build/features/bank/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/bank/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/bank/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/bank/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/bank/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/board/Board.js +5 -4
- package/build/features/board/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/board/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/board/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/board/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/board/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/board/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/brand/Brand.js +3 -2
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/brand/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/brand/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/brand/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/brand/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/brand/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/business/Business.js +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
- package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
- package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
- package/build/features/business/screens/BusinessType/validation.js +31 -10
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/business/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/business/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/business/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/business/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/business/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/connect/Connect.js +3 -2
- package/build/features/connect/screens/OTPSessionExpired/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.d.ts +3 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.js +86 -0
- package/build/features/connect/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/connect/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/connect/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/connect/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/connectExpress/ConnectExpress.js +3 -2
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
- package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/entity/Entity.js +3 -2
- package/build/features/entity/screens/EntityName/EntityName.js +16 -15
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
- package/build/features/entity/screens/EntityName/validation.js +100 -85
- package/build/features/entity/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/entity/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/entity/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/entity/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/entity/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +187 -0
- package/build/features/individual/Individual.js +3 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
- package/build/features/individual/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/individual/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/individual/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/individual/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/individual/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/password/Password.js +3 -2
- package/build/features/password/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/password/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/password/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/password/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/password/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/password/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/shared/Address/CountryList.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
- package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
- package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
- package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
- package/build/features/shared/PushNotification/PushNotification.js +34 -0
- package/build/features/shared/PushNotification/index.d.ts +2 -0
- package/build/features/shared/PushNotification/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -5
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- package/build/features/tax/Tax.js +3 -2
- package/build/features/tax/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/tax/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/tax/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/tax/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/tax/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/terminal/Terminal.d.ts +14 -0
- package/build/features/terminal/Terminal.js +96 -0
- package/build/features/terminal/index.d.ts +1 -0
- package/build/features/terminal/index.js +1 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +68 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +50 -0
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
- package/build/features/terminal/screens/Loading/Loading.js +10 -0
- package/build/features/terminal/screens/Loading/index.d.ts +2 -0
- package/build/features/terminal/screens/Loading/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +103 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.js +89 -0
- package/build/features/terminal/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/terminal/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/terminal/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/terminal/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
- package/build/features/terminal/screens/OperatorError/index.js +2 -0
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.d.ts +3 -0
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.js +50 -0
- package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +2 -0
- package/build/features/terminal/screens/POSDeviceListPage/index.js +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +51 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +99 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
- package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
- package/build/features/terminal/screens/Verify/Verify.js +89 -0
- package/build/features/terminal/screens/Verify/index.d.ts +2 -0
- package/build/features/terminal/screens/Verify/index.js +2 -0
- package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
- package/build/features/terminal/screens/Verify/validation.js +4 -0
- package/build/features/terminal/screens/shared/Header.d.ts +10 -0
- package/build/features/terminal/screens/shared/Header.js +30 -0
- package/build/features/terminal/screens/shared/POSDeviceList.d.ts +11 -0
- package/build/features/terminal/screens/shared/POSDeviceList.js +30 -0
- package/build/features/terminal/screens/shared/index.d.ts +5 -0
- package/build/features/terminal/screens/shared/index.js +5 -0
- package/build/features/terminal/screens/shared/styles.d.ts +196 -0
- package/build/features/terminal/screens/shared/styles.js +155 -0
- package/build/features/terminal/screens/shared/utils.d.ts +7 -0
- package/build/features/terminal/screens/shared/utils.js +24 -0
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppDispatch.d.ts +2 -0
- package/build/hooks/useSessionExpiryHandler.d.ts +8 -0
- package/build/hooks/useSessionExpiryHandler.js +71 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/theme/palette.js +12 -0
- package/build/theme/typography.js +4 -0
- package/build/utils/common.js +13 -6
- package/build/utils/error.d.ts +4 -0
- package/build/utils/error.js +12 -0
- package/build/utils/string.d.ts +3 -1
- package/build/utils/string.js +12 -2
- package/build/utils/validation.js +1 -1
- package/package.json +3 -3
package/build/@types/app.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface ScreenStepNavigation {
|
|
|
52
52
|
next: string | string[];
|
|
53
53
|
prev: string | string[];
|
|
54
54
|
order: number;
|
|
55
|
+
back?: string;
|
|
55
56
|
}
|
|
56
57
|
export interface FeatureScreenStep {
|
|
57
58
|
element: React.MemoExoticComponent<any> | React.ComponentType<any>;
|
|
@@ -339,7 +340,8 @@ export declare enum FlowsTypes {
|
|
|
339
340
|
OTP = "otp",
|
|
340
341
|
BRAND = "brand",
|
|
341
342
|
BOARD = "board",
|
|
342
|
-
kyc = "kyc"
|
|
343
|
+
kyc = "kyc",
|
|
344
|
+
TERMINAL = "terminal"
|
|
343
345
|
}
|
|
344
346
|
export declare type FlowInfo = {
|
|
345
347
|
name: string;
|
package/build/@types/app.js
CHANGED
package/build/@types/form.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export declare type BrandActivitiesFormValues = {
|
|
|
61
61
|
};
|
|
62
62
|
export declare type BusinessTypeFormValues = {
|
|
63
63
|
licenseNumber: string;
|
|
64
|
+
unifiedNumber: string;
|
|
64
65
|
entityLegalName?: string;
|
|
65
66
|
selectedEntityLicense?: EntityLicense;
|
|
66
67
|
selectedLicense?: License;
|
|
@@ -103,8 +104,8 @@ export interface IndividualPersonalInfoFormValues extends IndividualEmailMobileF
|
|
|
103
104
|
gender: string | null;
|
|
104
105
|
nid: string;
|
|
105
106
|
issuedCountry: CountryCode | undefined;
|
|
106
|
-
expiryDate: string;
|
|
107
|
-
dob: string;
|
|
107
|
+
expiryDate: string | undefined;
|
|
108
|
+
dob: string | undefined;
|
|
108
109
|
placeOfBirthCountry: CountryCode | undefined;
|
|
109
110
|
placeOfBirthCity: City | undefined;
|
|
110
111
|
nationality: CountryCode | undefined;
|
|
@@ -150,6 +151,7 @@ export declare type EntityCapitalFormValues = {
|
|
|
150
151
|
export declare type BusinessDataFormValues = {
|
|
151
152
|
brandName: string;
|
|
152
153
|
licenseNumber: string;
|
|
154
|
+
unifiedNumber: string;
|
|
153
155
|
selectedLicense?: License;
|
|
154
156
|
termAndConditionChecked?: boolean;
|
|
155
157
|
};
|
package/build/@types/index.d.ts
CHANGED
package/build/@types/index.js
CHANGED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare type Name = {
|
|
2
|
+
en: string;
|
|
3
|
+
};
|
|
4
|
+
export interface TerminalDeviceInfo {
|
|
5
|
+
id: string;
|
|
6
|
+
display_name: string;
|
|
7
|
+
model: {
|
|
8
|
+
id: string;
|
|
9
|
+
status: string;
|
|
10
|
+
object?: string;
|
|
11
|
+
live_mode: boolean;
|
|
12
|
+
api_version?: string;
|
|
13
|
+
feature_version?: string;
|
|
14
|
+
model: string;
|
|
15
|
+
type: string;
|
|
16
|
+
name: {
|
|
17
|
+
text: string;
|
|
18
|
+
lang: string;
|
|
19
|
+
}[];
|
|
20
|
+
image: string;
|
|
21
|
+
image_url: string;
|
|
22
|
+
};
|
|
23
|
+
serial_number: string;
|
|
24
|
+
}
|
|
25
|
+
export interface TerminalInfo {
|
|
26
|
+
acceptance_status?: string;
|
|
27
|
+
acceptance_status_control?: string;
|
|
28
|
+
api_version?: string;
|
|
29
|
+
authorizes?: {
|
|
30
|
+
status: string;
|
|
31
|
+
status_message: string;
|
|
32
|
+
};
|
|
33
|
+
brand?: {
|
|
34
|
+
id: string;
|
|
35
|
+
logo?: string;
|
|
36
|
+
};
|
|
37
|
+
billingplatform?: {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
charges?: {
|
|
41
|
+
status: string;
|
|
42
|
+
status_message: string;
|
|
43
|
+
};
|
|
44
|
+
device?: {
|
|
45
|
+
id: string;
|
|
46
|
+
created: string;
|
|
47
|
+
display_name: string;
|
|
48
|
+
reference: string;
|
|
49
|
+
logo?: string;
|
|
50
|
+
};
|
|
51
|
+
feature_version?: string;
|
|
52
|
+
id: string;
|
|
53
|
+
legacy_id: string;
|
|
54
|
+
live_mode?: boolean;
|
|
55
|
+
merchant: {
|
|
56
|
+
base_currency?: string;
|
|
57
|
+
country?: string;
|
|
58
|
+
id: string;
|
|
59
|
+
};
|
|
60
|
+
name: Name;
|
|
61
|
+
platform?: {
|
|
62
|
+
brand: {
|
|
63
|
+
id: string;
|
|
64
|
+
logo?: string;
|
|
65
|
+
name: {
|
|
66
|
+
text: string;
|
|
67
|
+
lang: string;
|
|
68
|
+
}[];
|
|
69
|
+
};
|
|
70
|
+
id: string;
|
|
71
|
+
segment: string;
|
|
72
|
+
};
|
|
73
|
+
object?: string;
|
|
74
|
+
refunds?: {
|
|
75
|
+
status: string;
|
|
76
|
+
status_message: string;
|
|
77
|
+
};
|
|
78
|
+
virtual?: boolean;
|
|
79
|
+
wallet?: {
|
|
80
|
+
id: string;
|
|
81
|
+
};
|
|
82
|
+
linked: boolean;
|
|
83
|
+
terminal_device: TerminalDeviceInfo;
|
|
84
|
+
}
|
|
85
|
+
export interface POSInfo {
|
|
86
|
+
id: string;
|
|
87
|
+
object: string;
|
|
88
|
+
live_mode: boolean;
|
|
89
|
+
reference: string;
|
|
90
|
+
display_name: string;
|
|
91
|
+
merchant: {
|
|
92
|
+
id: string;
|
|
93
|
+
legacy_id: string;
|
|
94
|
+
brand: {
|
|
95
|
+
id: string;
|
|
96
|
+
name: {
|
|
97
|
+
lang: string;
|
|
98
|
+
text: string;
|
|
99
|
+
}[];
|
|
100
|
+
logo: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/api/account.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare type ExpressCreateAccountBody = {
|
|
|
19
19
|
declare const accountService: {
|
|
20
20
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
21
21
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
22
|
-
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
23
|
-
checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
|
|
22
|
+
checkAccountAvailability: (individualId: string, authSession?: string) => Promise<any>;
|
|
23
|
+
checkAccountAvailabilityStatus: (individualId: string, authSession?: string) => Promise<any>;
|
|
24
24
|
checkMigrationStatus: (jobId: string) => Promise<any>;
|
|
25
25
|
};
|
|
26
26
|
export { accountService };
|
package/build/api/account.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ENDPOINT_PATHS } from '../constants';
|
|
2
2
|
import { httpClient } from './axios';
|
|
3
|
+
import { getAuthHeaders } from './headers';
|
|
3
4
|
var createAccount = function (data) {
|
|
4
5
|
return httpClient({
|
|
5
6
|
method: 'post',
|
|
@@ -14,16 +15,18 @@ var expressCreateAccount = function (data) {
|
|
|
14
15
|
data: data
|
|
15
16
|
});
|
|
16
17
|
};
|
|
17
|
-
var checkAccountAvailability = function (individualId) {
|
|
18
|
+
var checkAccountAvailability = function (individualId, authSession) {
|
|
18
19
|
return httpClient({
|
|
19
20
|
method: 'get',
|
|
20
|
-
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
|
|
21
|
+
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts"),
|
|
22
|
+
headers: getAuthHeaders(authSession)
|
|
21
23
|
});
|
|
22
24
|
};
|
|
23
|
-
var checkAccountAvailabilityStatus = function (individualId) {
|
|
25
|
+
var checkAccountAvailabilityStatus = function (individualId, authSession) {
|
|
24
26
|
return httpClient({
|
|
25
27
|
method: 'get',
|
|
26
|
-
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status")
|
|
28
|
+
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status"),
|
|
29
|
+
headers: getAuthHeaders(authSession)
|
|
27
30
|
});
|
|
28
31
|
};
|
|
29
32
|
var checkMigrationStatus = function (jobId) {
|
package/build/api/auth.d.ts
CHANGED
|
@@ -17,10 +17,24 @@ export declare type CivilID = {
|
|
|
17
17
|
identification_id: string;
|
|
18
18
|
country_code: string;
|
|
19
19
|
};
|
|
20
|
+
export declare type TerminalCredential = {
|
|
21
|
+
terminal?: {
|
|
22
|
+
id: string;
|
|
23
|
+
terminal_device?: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
merchant?: {
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
device: {
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
20
34
|
export declare type CreateAuthBody = {
|
|
21
35
|
country: string;
|
|
22
36
|
scope: string;
|
|
23
|
-
user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
|
|
37
|
+
user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID | TerminalCredential;
|
|
24
38
|
auth_type?: number;
|
|
25
39
|
email_url?: string;
|
|
26
40
|
sign_in?: boolean;
|
|
@@ -33,6 +47,7 @@ export declare type CreateAuthBody = {
|
|
|
33
47
|
user_id?: string;
|
|
34
48
|
login?: boolean;
|
|
35
49
|
};
|
|
50
|
+
export declare type CreateAuthSessionExpiredBody = Omit<CreateAuthBody, 'user_credentail'>;
|
|
36
51
|
export declare type CreateNafathAuthBody = {
|
|
37
52
|
country: string;
|
|
38
53
|
scope: string;
|
|
@@ -120,13 +135,13 @@ export declare type getExpressTokenVerifyParams = {
|
|
|
120
135
|
export declare type ConfigBody = Pick<ConfigInfo, 'scope' | 'data' | 'lead' | 'board' | 'interface' | 'redirect' | 'post'>;
|
|
121
136
|
declare const authService: {
|
|
122
137
|
createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
123
|
-
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody
|
|
138
|
+
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
|
|
124
139
|
createPassword: (data: CreatePasswordBody) => Promise<any>;
|
|
125
140
|
verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
|
|
126
141
|
getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
|
|
127
142
|
getTokenVerify: (token: string, config?: AxiosRequestConfig) => Promise<any>;
|
|
128
143
|
createAuthKitNID: (data: CreateAuthBody) => Promise<any>;
|
|
129
|
-
createExpressAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
144
|
+
createExpressAuth: (data: CreateAuthBody | CreateAuthSessionExpiredBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
130
145
|
verifyExpressLeadIdentity: (data: VerifyAuthExpressOTPBody) => Promise<any>;
|
|
131
146
|
createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
|
|
132
147
|
getVerifyExpressAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
|
package/build/api/auth.js
CHANGED
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import
|
|
12
|
+
import { httpClient } from './axios';
|
|
13
13
|
import { ENDPOINT_PATHS } from '../constants';
|
|
14
14
|
var createAuth = function (data, config) {
|
|
15
15
|
return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.AUTH), data: data }, config));
|
|
@@ -17,8 +17,12 @@ var createAuth = function (data, config) {
|
|
|
17
17
|
var createExpressAuth = function (data, config) {
|
|
18
18
|
return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.CREATE_EXPRESS_AUTH_PATH), data: data }, config));
|
|
19
19
|
};
|
|
20
|
-
var verifyAuth = function (data
|
|
21
|
-
return
|
|
20
|
+
var verifyAuth = function (data) {
|
|
21
|
+
return httpClient({
|
|
22
|
+
method: 'put',
|
|
23
|
+
url: "".concat(ENDPOINT_PATHS.AUTH),
|
|
24
|
+
data: data
|
|
25
|
+
});
|
|
22
26
|
};
|
|
23
27
|
var createPassword = function (data) {
|
|
24
28
|
return httpClient({
|
package/build/api/axios.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
2
2
|
declare const instance: import("axios").AxiosInstance;
|
|
3
3
|
export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
|
|
4
4
|
export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
|
|
5
|
-
export declare const getAxiosHeaders: () =>
|
|
5
|
+
export declare const getAxiosHeaders: () => Record<string, any>;
|
|
6
6
|
export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
|
|
7
7
|
export default instance;
|
package/build/api/axios.js
CHANGED
|
@@ -47,7 +47,15 @@ var instance = axios.create({
|
|
|
47
47
|
instance.interceptors.request.use(function (config) {
|
|
48
48
|
return encryptionContractTransformer(config);
|
|
49
49
|
}, function (error) { return Promise.reject(error); });
|
|
50
|
-
instance.interceptors.response.use(function (response) {
|
|
50
|
+
instance.interceptors.response.use(function (response) {
|
|
51
|
+
var _a, _b, _c;
|
|
52
|
+
var errors = (_a = response.data) === null || _a === void 0 ? void 0 : _a.errors;
|
|
53
|
+
if (((_b = errors === null || errors === void 0 ? void 0 : errors[0]) === null || _b === void 0 ? void 0 : _b.code) === '7014')
|
|
54
|
+
throw new Error('session_expired');
|
|
55
|
+
if (((_c = errors === null || errors === void 0 ? void 0 : errors[0]) === null || _c === void 0 ? void 0 : _c.code) === '7013')
|
|
56
|
+
throw new Error('session_invalid');
|
|
57
|
+
return response;
|
|
58
|
+
}, function (error) {
|
|
51
59
|
return Promise.reject(error);
|
|
52
60
|
});
|
|
53
61
|
var encryptionContractTransformer = function (config) {
|
package/build/api/entity.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { getAxiosHeaders, setAxiosGlobalHeaders } from './axios';
|
|
13
|
+
export var getAuthHeaders = function (authSession) {
|
|
14
|
+
return authSession ? { st: authSession } : {};
|
|
15
|
+
};
|
|
16
|
+
export var setAuthSessionToGlobalHeaders = function (authSession) {
|
|
17
|
+
setAxiosGlobalHeaders(__assign(__assign({}, getAxiosHeaders()), (authSession && { st: authSession })));
|
|
18
|
+
};
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody, ConfirmBody } from './operator';
|
|
3
|
-
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody, CreateNafathAuthBody, CreateKYCAuthBody } from './auth';
|
|
3
|
+
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody, CreateNafathAuthBody, CreateKYCAuthBody, CreateAuthSessionExpiredBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
6
|
import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity, MerchantListBody, CreateEntityBody } from './entity';
|
|
@@ -13,6 +13,8 @@ import { RemoveBrandActivity } from './brand';
|
|
|
13
13
|
import { UploadFileBody } from './file';
|
|
14
14
|
import { DocumentUpdateBody, DocumentInfo, DocumentBody } from './document';
|
|
15
15
|
import { InitBody } from './init';
|
|
16
|
+
import { GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps } from './terminal';
|
|
17
|
+
import { setAuthSessionToGlobalHeaders } from './headers';
|
|
16
18
|
declare const API: {
|
|
17
19
|
locationService: {
|
|
18
20
|
getIP: () => Promise<any>;
|
|
@@ -20,7 +22,7 @@ declare const API: {
|
|
|
20
22
|
};
|
|
21
23
|
operatorService: {
|
|
22
24
|
validateOperator: (body: ValidateOperatorBody) => Promise<any>;
|
|
23
|
-
confirm: (data: ConfirmBody) => Promise<any>;
|
|
25
|
+
confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
|
|
24
26
|
};
|
|
25
27
|
countryService: {
|
|
26
28
|
getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
|
|
@@ -31,13 +33,13 @@ declare const API: {
|
|
|
31
33
|
};
|
|
32
34
|
authService: {
|
|
33
35
|
createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
34
|
-
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody
|
|
36
|
+
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
|
|
35
37
|
createPassword: (data: CreatePasswordBody) => Promise<any>;
|
|
36
38
|
verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
|
|
37
39
|
getVerifyAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
38
40
|
getTokenVerify: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
39
41
|
createAuthKitNID: (data: CreateAuthBody) => Promise<any>;
|
|
40
|
-
createExpressAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
42
|
+
createExpressAuth: (data: CreateAuthBody | CreateAuthSessionExpiredBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
41
43
|
verifyExpressLeadIdentity: (data: VerifyAuthExpressOTPBody) => Promise<any>;
|
|
42
44
|
createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
|
|
43
45
|
getVerifyExpressAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
@@ -90,8 +92,8 @@ declare const API: {
|
|
|
90
92
|
accountService: {
|
|
91
93
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
92
94
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
93
|
-
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
94
|
-
checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
|
|
95
|
+
checkAccountAvailability: (individualId: string, authSession?: string | undefined) => Promise<any>;
|
|
96
|
+
checkAccountAvailabilityStatus: (individualId: string, authSession?: string | undefined) => Promise<any>;
|
|
95
97
|
checkMigrationStatus: (jobId: string) => Promise<any>;
|
|
96
98
|
};
|
|
97
99
|
dataService: {
|
|
@@ -164,7 +166,12 @@ declare const API: {
|
|
|
164
166
|
initService: {
|
|
165
167
|
getInitialData: (body: InitBody) => Promise<any>;
|
|
166
168
|
};
|
|
169
|
+
terminalService: {
|
|
170
|
+
unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
|
|
171
|
+
retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
|
|
172
|
+
retrievePOSDevices: (merchants: string[]) => Promise<any>;
|
|
173
|
+
};
|
|
167
174
|
};
|
|
168
|
-
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody };
|
|
169
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
175
|
+
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody, GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps, CreateAuthSessionExpiredBody };
|
|
176
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders, setAuthSessionToGlobalHeaders };
|
|
170
177
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -16,6 +16,8 @@ import { brandService } from './brand';
|
|
|
16
16
|
import { fileService } from './file';
|
|
17
17
|
import { documentService } from './document';
|
|
18
18
|
import { initService } from './init';
|
|
19
|
+
import { terminalService } from './terminal';
|
|
20
|
+
import { setAuthSessionToGlobalHeaders } from './headers';
|
|
19
21
|
var API = {
|
|
20
22
|
locationService: locationService,
|
|
21
23
|
operatorService: operatorService,
|
|
@@ -33,7 +35,8 @@ var API = {
|
|
|
33
35
|
brandService: brandService,
|
|
34
36
|
fileService: fileService,
|
|
35
37
|
documentService: documentService,
|
|
36
|
-
initService: initService
|
|
38
|
+
initService: initService,
|
|
39
|
+
terminalService: terminalService
|
|
37
40
|
};
|
|
38
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
41
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders, setAuthSessionToGlobalHeaders };
|
|
39
42
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare type UpdateLeadBody = {
|
|
|
49
49
|
entity?: {
|
|
50
50
|
id: string;
|
|
51
51
|
};
|
|
52
|
+
unified_number?: string;
|
|
52
53
|
name?: Name;
|
|
53
54
|
contact?: Contact;
|
|
54
55
|
send_invite?: boolean;
|
|
@@ -79,7 +80,7 @@ export declare type UpdateLeadBody = {
|
|
|
79
80
|
date_of_birth?: string;
|
|
80
81
|
};
|
|
81
82
|
export declare type LeadVerifyBody = {
|
|
82
|
-
verify_token
|
|
83
|
+
verify_token?: string;
|
|
83
84
|
service_name: string;
|
|
84
85
|
notification?: {
|
|
85
86
|
sms: boolean;
|
|
@@ -87,7 +88,7 @@ export declare type LeadVerifyBody = {
|
|
|
87
88
|
};
|
|
88
89
|
export declare type CreateVerifyTokenBody = {
|
|
89
90
|
service_name: string;
|
|
90
|
-
board_id
|
|
91
|
+
board_id?: string;
|
|
91
92
|
notification?: {
|
|
92
93
|
sms: boolean;
|
|
93
94
|
};
|
package/build/api/operator.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export declare type ConfirmBody = {
|
|
|
17
17
|
};
|
|
18
18
|
declare const operatorService: {
|
|
19
19
|
validateOperator: (body: ValidateOperatorBody) => Promise<any>;
|
|
20
|
-
confirm: (data: ConfirmBody) => Promise<any>;
|
|
20
|
+
confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
|
|
21
21
|
};
|
|
22
22
|
export { operatorService };
|
package/build/api/operator.js
CHANGED
|
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
import { ENDPOINT_PATHS } from '../constants';
|
|
38
38
|
import { httpClient } from './axios';
|
|
39
|
+
import { getAuthHeaders } from './headers';
|
|
39
40
|
var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
41
|
var data, error_1;
|
|
41
42
|
return __generator(this, function (_a) {
|
|
@@ -59,11 +60,13 @@ var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0
|
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
}); };
|
|
62
|
-
var confirm = function (data) {
|
|
63
|
+
var confirm = function (data, authSession) {
|
|
64
|
+
if (authSession === void 0) { authSession = ''; }
|
|
63
65
|
return httpClient({
|
|
64
66
|
method: 'post',
|
|
65
67
|
url: "".concat(ENDPOINT_PATHS.CONNECT, "/confirm"),
|
|
66
|
-
data: data
|
|
68
|
+
data: data,
|
|
69
|
+
headers: getAuthHeaders(authSession)
|
|
67
70
|
});
|
|
68
71
|
};
|
|
69
72
|
var operatorService = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface GenerateAuthLinkNewTerminalProps {
|
|
2
|
+
merchant: {
|
|
3
|
+
id: string;
|
|
4
|
+
terminal: {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface UnlinkTerminalDeviceProps {
|
|
10
|
+
deviceId: string;
|
|
11
|
+
initiator: string;
|
|
12
|
+
device: {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface LinkTerminalDeviceProps {
|
|
17
|
+
id: string;
|
|
18
|
+
action: string;
|
|
19
|
+
}
|
|
20
|
+
declare const terminalService: {
|
|
21
|
+
unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
|
|
22
|
+
retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
|
|
23
|
+
retrievePOSDevices: (merchants: string[]) => Promise<any>;
|
|
24
|
+
};
|
|
25
|
+
export { terminalService };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
24
|
+
import { httpClient } from './axios';
|
|
25
|
+
var retrieveTerminalList = function (merchants, getTerminalDevice) {
|
|
26
|
+
if (getTerminalDevice === void 0) { getTerminalDevice = true; }
|
|
27
|
+
return httpClient({
|
|
28
|
+
method: 'post',
|
|
29
|
+
url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
|
|
30
|
+
data: __assign({ merchants: merchants }, (getTerminalDevice && { terminal_device: true }))
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var retrievePOSDevices = function (merchants) {
|
|
34
|
+
return httpClient({
|
|
35
|
+
method: 'post',
|
|
36
|
+
url: "".concat(ENDPOINT_PATHS.MERCHANT, "/pos/device/list"),
|
|
37
|
+
data: {
|
|
38
|
+
merchants: merchants
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var unlinkTerminalDevice = function (_a) {
|
|
43
|
+
var deviceId = _a.deviceId, payload = __rest(_a, ["deviceId"]);
|
|
44
|
+
return httpClient({
|
|
45
|
+
method: 'put',
|
|
46
|
+
url: "".concat(ENDPOINT_PATHS.TERMINAL, "/").concat(deviceId, "/unlink"),
|
|
47
|
+
data: payload
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var terminalService = {
|
|
51
|
+
unlinkTerminalDevice: unlinkTerminalDevice,
|
|
52
|
+
retrieveTerminalList: retrieveTerminalList,
|
|
53
|
+
retrievePOSDevices: retrievePOSDevices
|
|
54
|
+
};
|
|
55
|
+
export { terminalService };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const rootReducer: {
|
|
2
|
+
session: import("redux").Reducer<import("./session").SessionState, import("redux").AnyAction>;
|
|
2
3
|
settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
|
|
3
4
|
connect: import("redux").Reducer<import("../features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
|
|
4
5
|
business: import("redux").Reducer<import("../features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
|
|
@@ -13,5 +14,6 @@ declare const rootReducer: {
|
|
|
13
14
|
auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
|
|
14
15
|
board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
|
|
15
16
|
kyc: import("redux").Reducer<import("../features/app/kyc/kycStore").KYCDataState, import("redux").AnyAction>;
|
|
17
|
+
terminal: import("redux").Reducer<import("../features/app/terminal/terminalStore").TerminalDataState, import("redux").AnyAction>;
|
|
16
18
|
};
|
|
17
19
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import session from './session';
|
|
1
2
|
import settings from './settings';
|
|
2
3
|
import connect from '../features/app/connect/connectStore';
|
|
3
4
|
import business from '../features/app/business/businessStore';
|
|
@@ -12,7 +13,9 @@ import connectExpress from '../features/app/connectExpress/connectExpressStore';
|
|
|
12
13
|
import board from '../features/app/board/boardStore';
|
|
13
14
|
import auth from '../features/app/auth/authStore';
|
|
14
15
|
import kyc from '../features/app/kyc/kycStore';
|
|
16
|
+
import terminal from '../features/app/terminal/terminalStore';
|
|
15
17
|
var rootReducer = {
|
|
18
|
+
session: session,
|
|
16
19
|
settings: settings,
|
|
17
20
|
connect: connect,
|
|
18
21
|
business: business,
|
|
@@ -26,6 +29,7 @@ var rootReducer = {
|
|
|
26
29
|
connectExpress: connectExpress,
|
|
27
30
|
auth: auth,
|
|
28
31
|
board: board,
|
|
29
|
-
kyc: kyc
|
|
32
|
+
kyc: kyc,
|
|
33
|
+
terminal: terminal
|
|
30
34
|
};
|
|
31
35
|
export default rootReducer;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RootState } from './store';
|
|
2
|
+
import { ActionState, SharedState } from '../@types';
|
|
3
|
+
export interface SessionData {
|
|
4
|
+
isExpired: boolean;
|
|
5
|
+
nextScreen: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SessionState extends SharedState<SessionData> {
|
|
8
|
+
}
|
|
9
|
+
export declare const sessionSlice: import("@reduxjs/toolkit").Slice<SessionState, {
|
|
10
|
+
setSessionExpired: (state: SessionState) => void;
|
|
11
|
+
setNextScreen: (state: SessionState, action: ActionState<string>) => void;
|
|
12
|
+
resetSession: (state: SessionState) => void;
|
|
13
|
+
}, "session">;
|
|
14
|
+
export declare const setSessionExpired: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setNextScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, resetSession: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
15
|
+
declare const _default: import("redux").Reducer<SessionState, import("redux").AnyAction>;
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const sessionSelector: (state: RootState) => SessionState;
|