@tap-payments/auth-jsconnect 2.10.13-beta → 2.10.13-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 (201) 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 +2 -1
  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/SARSymbol.d.ts +7 -0
  22. package/build/assets/currencies/SARSymbol.js +28 -0
  23. package/build/assets/currencies/index.d.ts +2 -0
  24. package/build/assets/currencies/index.js +2 -0
  25. package/build/assets/currencies/utils.d.ts +4 -0
  26. package/build/assets/currencies/utils.js +6 -0
  27. package/build/assets/locales/ar.json +43 -6
  28. package/build/assets/locales/en.json +49 -9
  29. package/build/components/DeviceCard/DeviceCard.d.ts +18 -0
  30. package/build/components/DeviceCard/DeviceCard.js +103 -0
  31. package/build/components/DeviceCard/index.d.ts +3 -0
  32. package/build/components/DeviceCard/index.js +2 -0
  33. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  34. package/build/components/OTPTimer/OTPTimer.js +4 -4
  35. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  36. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  37. package/build/components/TextWithCurrency/index.d.ts +2 -0
  38. package/build/components/TextWithCurrency/index.js +2 -0
  39. package/build/components/Tooltip/Tooltip.js +1 -1
  40. package/build/constants/api.d.ts +0 -1
  41. package/build/constants/api.js +0 -2
  42. package/build/constants/app.d.ts +13 -3
  43. package/build/constants/app.js +127 -6
  44. package/build/constants/assets.d.ts +11 -6
  45. package/build/constants/assets.js +118 -107
  46. package/build/constants/dummy.js +27 -20
  47. package/build/constants/flows.d.ts +15 -0
  48. package/build/constants/flows.js +15 -0
  49. package/build/constants/validation.d.ts +2 -0
  50. package/build/constants/validation.js +2 -0
  51. package/build/features/app/auth/authStore.d.ts +24 -5
  52. package/build/features/app/auth/authStore.js +143 -77
  53. package/build/features/app/business/businessStore.js +6 -4
  54. package/build/features/app/connectExpress/connectExpressStore.js +16 -10
  55. package/build/features/app/individual/individualStore.js +0 -1
  56. package/build/features/app/tax/taxStore.js +1 -1
  57. package/build/features/app/terminal/terminalStore.d.ts +110 -0
  58. package/build/features/app/terminal/terminalStore.js +676 -0
  59. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +14 -8
  60. package/build/features/auth/screens/AuthenticationList/UnifiedNumber.d.ts +35 -0
  61. package/build/features/auth/screens/AuthenticationList/UnifiedNumber.js +80 -0
  62. package/build/features/auth/screens/AuthenticationList/validation.d.ts +22 -0
  63. package/build/features/auth/screens/AuthenticationList/validation.js +77 -1
  64. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  65. package/build/features/auth/screens/OTP/OTP.js +15 -3
  66. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  67. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  68. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  69. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  70. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  71. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  72. package/build/features/auth/screens/Passcode/index.js +2 -0
  73. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  74. package/build/features/auth/screens/Passcode/validation.js +4 -0
  75. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  76. package/build/features/business/screens/BusinessType/BusinessType.js +12 -2
  77. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  78. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  79. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  80. package/build/features/business/screens/BusinessType/validation.js +31 -7
  81. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  82. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +14 -9
  83. package/build/features/connectExpress/screens/AuthenticationList/UnifiedNumber.d.ts +35 -0
  84. package/build/features/connectExpress/screens/AuthenticationList/UnifiedNumber.js +80 -0
  85. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +22 -0
  86. package/build/features/connectExpress/screens/AuthenticationList/validation.js +77 -1
  87. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  88. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -1
  89. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  90. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  91. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +21 -0
  92. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +44 -13
  93. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  94. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  95. package/build/features/entity/screens/EntityName/EntityName.js +2 -1
  96. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  97. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  98. package/build/features/entity/screens/EntityName/validation.js +14 -3
  99. package/build/features/featuresScreens.d.ts +1 -0
  100. package/build/features/featuresScreens.js +72 -0
  101. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  102. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  103. package/build/features/shared/Button/Button.js +2 -3
  104. package/build/features/shared/Button/FlowsButtons.js +1 -1
  105. package/build/features/shared/Input/Input.d.ts +1 -1
  106. package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
  107. package/build/features/shared/PushNotification/PushNotification.js +34 -0
  108. package/build/features/shared/PushNotification/index.d.ts +2 -0
  109. package/build/features/shared/PushNotification/index.js +2 -0
  110. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
  111. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
  112. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  113. package/build/features/terminal/Terminal.d.ts +14 -0
  114. package/build/features/terminal/Terminal.js +95 -0
  115. package/build/features/terminal/index.d.ts +1 -0
  116. package/build/features/terminal/index.js +1 -0
  117. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
  118. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +69 -0
  119. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
  120. package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
  121. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
  122. package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
  123. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
  124. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +51 -0
  125. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
  126. package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
  127. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
  128. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
  129. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
  130. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
  131. package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
  132. package/build/features/terminal/screens/Loading/Loading.js +10 -0
  133. package/build/features/terminal/screens/Loading/index.d.ts +2 -0
  134. package/build/features/terminal/screens/Loading/index.js +2 -0
  135. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
  136. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +56 -0
  137. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
  138. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
  139. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
  140. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
  141. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
  142. package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
  143. package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
  144. package/build/features/terminal/screens/OperatorError/index.js +2 -0
  145. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
  146. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  147. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
  148. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
  149. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  150. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +31 -0
  151. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  152. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
  153. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
  154. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
  155. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
  156. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
  157. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
  158. package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
  159. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
  160. package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
  161. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
  162. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +47 -0
  163. package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
  164. package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
  165. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
  166. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +53 -0
  167. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
  168. package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
  169. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
  170. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +98 -0
  171. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
  172. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
  173. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
  174. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
  175. package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
  176. package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
  177. package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
  178. package/build/features/terminal/screens/Verify/Verify.js +85 -0
  179. package/build/features/terminal/screens/Verify/index.d.ts +2 -0
  180. package/build/features/terminal/screens/Verify/index.js +2 -0
  181. package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
  182. package/build/features/terminal/screens/Verify/validation.js +4 -0
  183. package/build/features/terminal/screens/shared/Header.d.ts +10 -0
  184. package/build/features/terminal/screens/shared/Header.js +30 -0
  185. package/build/features/terminal/screens/shared/TerminalList.d.ts +11 -0
  186. package/build/features/terminal/screens/shared/TerminalList.js +25 -0
  187. package/build/features/terminal/screens/shared/index.d.ts +5 -0
  188. package/build/features/terminal/screens/shared/index.js +5 -0
  189. package/build/features/terminal/screens/shared/styles.d.ts +196 -0
  190. package/build/features/terminal/screens/shared/styles.js +155 -0
  191. package/build/features/terminal/screens/shared/utils.d.ts +7 -0
  192. package/build/features/terminal/screens/shared/utils.js +24 -0
  193. package/build/hooks/useAppDispatch.d.ts +1 -0
  194. package/build/index.d.ts +3 -2
  195. package/build/index.js +4 -2
  196. package/build/theme/palette.js +12 -0
  197. package/build/theme/typography.js +4 -0
  198. package/build/utils/common.js +4 -4
  199. package/build/utils/string.d.ts +3 -2
  200. package/build/utils/string.js +10 -1
  201. package/package.json +2 -2
@@ -134,12 +134,14 @@
134
134
  "call_center_placeholder": "Enter your call center number",
135
135
  "cancel": "Cancel",
136
136
  "capital_paid_hint": "00000",
137
+ "capital_paid_input_label": "Capital Paid",
137
138
  "capital_paid_label": "Capital Paid ({{currency}})",
138
139
  "capital_paid_required": "Please Enter paid amount",
139
140
  "capital_share_count_hint": "00000",
140
141
  "capital_share_count_label": "Capital Share Count",
141
142
  "capital_share_count_required": "Please Enter share count",
142
143
  "capital_share_value_hint": "00000",
144
+ "capital_share_value_input_label": "Capital Share Value",
143
145
  "capital_share_value_label": "Capital Share Value ({{currency}})",
144
146
  "capital_share_value_required": "Please Enter share value",
145
147
  "category": "Category",
@@ -214,6 +216,7 @@
214
216
  "create_new_entity": "Create Entity",
215
217
  "creating_account_description": "This might take a moment...",
216
218
  "creating_account_title": "Creating your account",
219
+ "current_mobile_number": "Current mobile number",
217
220
  "customer_base_name_hint": "Choose local if you sell only in the country where you are based. Choose regional if you also sell to other GCC countries. Choose worldwide if you sell to any country outside the GCC.",
218
221
  "data_loading_desc": "Please wait as we are preparing data",
219
222
  "data_loading_title": "Preparing data",
@@ -256,7 +259,7 @@
256
259
  "enter_license_no": "Freelance registration",
257
260
  "enter_license_number": "Please enter license number at least 5 chars",
258
261
  "enter_national_id": "Identification number",
259
- "enter_served_monthly": "Customers server per month",
262
+ "enter_served_monthly": "Customers served per month",
260
263
  "enter_strong_password": "Please enter strong password.",
261
264
  "enter_valid_birth_date": "Please enter a valid birth date.",
262
265
  "enter_valid_brand_name": "Please enter a valid brand name.",
@@ -286,10 +289,11 @@
286
289
  "entity_success_title": "Entity Updated Successfully",
287
290
  "entity_type": "Entity Type",
288
291
  "entity_type_required": "Please select at least one entity type",
289
- "expected_customers_to_serve": "Customers server per month",
292
+ "expected_customers_to_serve": "Customers served per month",
293
+ "expected_sale_per_month": "Expected sale per month?",
290
294
  "expected_sales_monthly": "Expected sale per month? ({{currency}})",
291
295
  "expected_sales_yearly": "What is the expected sales for your business per month?",
292
- "expected_served_monthly": "Customers server per month",
296
+ "expected_served_monthly": "Customers served per month",
293
297
  "expiry_date": "Date of expiry",
294
298
  "express_account_already_created_close_button": "Close",
295
299
  "express_account_already_created_description": "Your Account is already created",
@@ -389,7 +393,6 @@
389
393
  "kyc_token_invalid": "May you please verify link of which you are trying to open.",
390
394
  "kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
391
395
  "kyc_verification": "Know Your Customer (KYC)",
392
- "kyc_privacy_policy": "Privacy Policy",
393
396
  "language": "العربية",
394
397
  "license_info": "License information",
395
398
  "license_name_hint": "Enter legal name",
@@ -415,11 +418,14 @@
415
418
  "mobile_app_label": "Mobile App",
416
419
  "mobile_button_label": "Continue with Mobile",
417
420
  "mobile_number_description": "Start instantly with your Mobile Number",
421
+ "mobile_ownership_title": "Please update your mobile number to match you national ID",
418
422
  "month": "Month",
423
+ "monthly_income": "Monthly income",
419
424
  "nafath_button_label": "Continue with Nafath",
420
425
  "nafath_verification_description_check": "Please go to your NAFATH app and enter the above request number to authenticate.",
421
426
  "nafath_verification_description_error": "Please try again",
422
427
  "nafath_verification_description_wait": "Please go to your NAFATH app and enter the above request number to authenticate.",
428
+ "nafath_verification_failed": "Make sure to approve the request sent through Nafath App, please try to send a new request.",
423
429
  "nafath_verification_redirection_message": "You will be redirected now",
424
430
  "nafath_verification_title_check": "Authenticate with NAFATH app",
425
431
  "nafath_verification_title_error": "We cannot confirm your authentication",
@@ -429,6 +435,7 @@
429
435
  "national_id_placeholder": "0000000000",
430
436
  "national_id_title": "National ID",
431
437
  "nationality_label": "Nationality",
438
+ "new_mobile_number": "New mobile number",
432
439
  "next": "Next",
433
440
  "no": "No",
434
441
  "no login credentials available": "May you please verify the entered email address. (Note - Please make sure to enter an email address associated with Tap)",
@@ -544,6 +551,7 @@
544
551
  "share_count_hint": "0",
545
552
  "share_count_label": "Share Count",
546
553
  "share_value_hint": "0000",
554
+ "share_value_input_label": "Share Value",
547
555
  "share_value_label": "Share Value ({{currency}})",
548
556
  "sign_up": "Sign up",
549
557
  "signed_up": "Signed up",
@@ -620,6 +628,34 @@
620
628
  "tax_success_header_title": "Tax completed",
621
629
  "tax_success_title": "Your tax details are updated",
622
630
  "team_size_title": "Team Size",
631
+ "terminal_device_id": "Device ID",
632
+ "terminal_devices": "{{name}} Devices",
633
+ "terminal_flow_pending": "Terminals",
634
+ "terminal_go_to_board": "Go to Board",
635
+ "terminal_id": "Terminal ID",
636
+ "terminal_link": "Link",
637
+ "terminal_link_terminal": "Link Terminal",
638
+ "terminal_linked": "Linked",
639
+ "terminal_linked_success": "Your terminal {{device}} is linked successfully",
640
+ "terminal_linked_with": "Linked with",
641
+ "terminal_manage_terminals": "Manage Terminals",
642
+ "terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
643
+ "terminal_no_terminal_linked": "No Terminal Linked",
644
+ "terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
645
+ "terminal_or_use_code": "or use code",
646
+ "terminal_paired_with": "Paired with",
647
+ "terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
648
+ "terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
649
+ "terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
650
+ "terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
651
+ "terminal_resend_request": "Resend Request",
652
+ "terminal_select_device": "Select device",
653
+ "terminal_send_link_request": "Send linking request",
654
+ "terminal_serial_number": "Serial no",
655
+ "terminal_unlink": "Unlink",
656
+ "terminal_unlinked": "Unlinked",
657
+ "terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
658
+ "terminal_with": "with",
623
659
  "terms_and_conditions_link_title": "terms and conditions",
624
660
  "the nin format is not valid": "May you please verify the entered identification number.",
625
661
  "title_article": "Article of association",
@@ -641,6 +677,8 @@
641
677
  "unified_number_hint": "00000",
642
678
  "unified_number_label": "Unified Number",
643
679
  "unified_number_required": "Unified Number Required",
680
+ "update_later": "I'll update later",
681
+ "update_mobile_number": "Update mobile number",
644
682
  "upload_bank_statement": "Please upload the bank statement",
645
683
  "upload_file": "Select a file from your computer",
646
684
  "uploaded_file": "file",
@@ -661,9 +699,11 @@
661
699
  "year": "Year",
662
700
  "yes": "Yes",
663
701
  "your_brand_details": "Your brand details",
664
- "mobile_ownership_title": "To enable bank payouts, please update your registered mobile number to match your national ID.",
665
- "current_mobile_number": "Current mobile number",
666
- "new_mobile_number": "New mobile number",
667
- "update_mobile_number": "Update mobile number",
668
- "update_later": "I'll update later"
702
+ "v1_company_unified_number_label": "Company unified number",
703
+ "v1_company_unified_number_hint": "700xxxxxxx",
704
+ "v1_company_unified_number_description": "You can find your Company Unified Number in the top-left corner of your Company Registration Certificate.",
705
+ "passcode_title": "Please enter your passcode",
706
+ "sign_in_with_otp": "Sign in with OTP",
707
+ "passcode_required": "Please enter the required Passcode",
708
+ "login_with_passcode": "Login with Passcode"
669
709
  }
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { CardProps } from '@mui/material/Card';
3
+ export interface DeviceCardProps extends CardProps {
4
+ image?: string;
5
+ name: string;
6
+ deviceId: string;
7
+ deviceIdLabel?: string;
8
+ isLinked?: boolean;
9
+ pairedWith?: string;
10
+ badge?: boolean;
11
+ border?: boolean;
12
+ loading?: boolean;
13
+ arrow?: boolean;
14
+ endAdornment?: React.ReactNode;
15
+ }
16
+ export declare const DeviceCard: ({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element;
17
+ declare const _default: React.MemoExoticComponent<({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element>;
18
+ export default _default;
@@ -0,0 +1,103 @@
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { memo } from 'react';
25
+ import { useTranslation } from 'react-i18next';
26
+ import { alpha, styled } from '@mui/material/styles';
27
+ import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
28
+ import Card from '@mui/material/Card';
29
+ import Box from '@mui/material/Box';
30
+ import Typography from '@mui/material/Typography';
31
+ import Icon from '../Icon';
32
+ import Loader from '../Loader';
33
+ var DeviceCardContainer = styled(Card, { shouldForwardProp: function (prop) { return !['showBorder'].includes(prop.toString()); } })(function (_a) {
34
+ var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, background = _c.background, components = _c.components, showBorder = _a.showBorder;
35
+ return (__assign({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: spacing(2), borderRadius: spacing(0.5), boxShadow: 'none', width: '100%', backgroundColor: background.default, minHeight: spacing(14.125), position: 'relative' }, (showBorder && {
36
+ border: "1px solid ".concat(components.deviceCard.border)
37
+ })));
38
+ });
39
+ var DeviceDetails = styled(Box)(function (_a) {
40
+ var spacing = _a.theme.spacing;
41
+ return ({
42
+ display: 'flex',
43
+ alignItems: 'center',
44
+ gap: spacing(3.125)
45
+ });
46
+ });
47
+ var DeviceImage = styled(Icon)(function (_a) {
48
+ var spacing = _a.theme.spacing;
49
+ return ({
50
+ width: spacing(4.5),
51
+ height: 'auto',
52
+ objectFit: 'contain'
53
+ });
54
+ });
55
+ var DeviceInfo = styled(Box)(function (_a) {
56
+ var spacing = _a.theme.spacing;
57
+ return ({
58
+ display: 'flex',
59
+ flexDirection: 'column',
60
+ gap: spacing(1)
61
+ });
62
+ });
63
+ var DeviceTitle = styled(Typography)(function (_a) {
64
+ var _b = _a.theme, typography = _b.typography, palette = _b.palette;
65
+ return (__assign(__assign({}, typography.subtitle1), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
66
+ });
67
+ var DeviceIdInfo = styled(Box)(function (_a) {
68
+ var _b = _a.theme, typography = _b.typography, palette = _b.palette, spacing = _b.spacing;
69
+ return (__assign(__assign({}, typography.caption_small), { color: alpha(palette.text.primary, 0.6), display: 'flex', flexDirection: 'column', gap: spacing(0.5) }));
70
+ });
71
+ var DeviceIdBold = styled('strong')(function (_a) {
72
+ var palette = _a.theme.palette;
73
+ return ({
74
+ color: palette.components.deviceCard.title
75
+ });
76
+ });
77
+ var Badge = styled(Box, { shouldForwardProp: function (prop) { return !['active'].includes(prop.toString()); } })(function (_a) {
78
+ var _b = _a.theme, direction = _b.direction, spacing = _b.spacing, palette = _b.palette, typography = _b.typography, active = _a.active;
79
+ return (__assign(__assign(__assign({ backgroundColor: palette.components.deviceCard.statusBackground, color: palette.components.deviceCard.statusText }, typography.caption), { fontWeight: typography.fontWeightSemiBold, padding: spacing(0.5, 1, 0.5, 1), position: 'absolute', top: 0, left: direction === 'rtl' ? 0 : 'unset', right: direction === 'rtl' ? 'unset' : '0', borderBottomLeftRadius: spacing(0.5) }), (active && {
80
+ backgroundColor: alpha(palette.primary.main, 0.1),
81
+ color: palette.primary.main
82
+ })));
83
+ });
84
+ var ArrowIcon = styled(ArrowForwardIosIcon)(function (_a) {
85
+ var _b = _a.theme, palette = _b.palette, direction = _b.direction;
86
+ return (__assign({ color: palette.components.deviceCard.title, fontSize: '16px' }, (direction === 'rtl' && {
87
+ transform: 'rotate(180deg)'
88
+ })));
89
+ });
90
+ export var DeviceCard = function (_a) {
91
+ var image = _a.image, name = _a.name, deviceId = _a.deviceId, deviceIdLabel = _a.deviceIdLabel, isLinked = _a.isLinked, pairedWith = _a.pairedWith, onClick = _a.onClick, badge = _a.badge, border = _a.border, arrow = _a.arrow, loading = _a.loading, endAdornment = _a.endAdornment, rest = __rest(_a, ["image", "name", "deviceId", "deviceIdLabel", "isLinked", "pairedWith", "onClick", "badge", "border", "arrow", "loading", "endAdornment"]);
92
+ var t = useTranslation().t;
93
+ var getEndComponent = function () {
94
+ if (endAdornment)
95
+ return endAdornment;
96
+ if (loading)
97
+ return _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 10, style: { height: 24, width: 24 }, toggleAnimation: !!loading });
98
+ if (arrow)
99
+ return _jsx(ArrowIcon, {});
100
+ };
101
+ return (_jsxs(DeviceCardContainer, __assign({ onClick: onClick, sx: { cursor: onClick ? 'pointer' : 'default' }, showBorder: border }, rest, { children: [_jsxs(DeviceDetails, { children: [image && _jsx(DeviceImage, { src: image, alt: 'Device' }), _jsxs(DeviceInfo, { children: [_jsx(DeviceTitle, { children: name }), _jsxs(DeviceIdInfo, { children: [pairedWith && (_jsxs("span", { children: [t('terminal_paired_with'), ": ", _jsx(DeviceIdBold, { children: pairedWith })] })), _jsxs("span", { children: [t(deviceIdLabel !== null && deviceIdLabel !== void 0 ? deviceIdLabel : 'terminal_device_id'), ": ", _jsx(DeviceIdBold, { children: deviceId }), "`"] })] })] })] }), badge && _jsx(Badge, __assign({ active: isLinked }, { children: isLinked ? t('terminal_linked') : t('terminal_unlinked') })), _jsx(Box, __assign({ display: 'flex', alignItems: 'center' }, { children: getEndComponent() }))] })));
102
+ };
103
+ export default memo(DeviceCard);
@@ -0,0 +1,3 @@
1
+ import DeviceCard, { DeviceCardProps } from './DeviceCard';
2
+ export type { DeviceCardProps };
3
+ export default DeviceCard;
@@ -0,0 +1,2 @@
1
+ import DeviceCard from './DeviceCard';
2
+ export default DeviceCard;
@@ -4,9 +4,10 @@ export interface OTPTimerProps extends BoxProps {
4
4
  timeInSeconds?: number;
5
5
  timeEndLabel: string;
6
6
  onResetClick?: () => void;
7
+ failed?: boolean;
7
8
  }
8
9
  declare const _default: React.MemoExoticComponent<{
9
- ({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
10
+ ({ timeInSeconds, timeEndLabel, onResetClick, failed, ...rest }: OTPTimerProps): JSX.Element;
10
11
  defaultProps: {
11
12
  time: number;
12
13
  };
@@ -44,7 +44,7 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
44
44
  });
45
45
  });
46
46
  var OTPTimerComponent = function (_a) {
47
- var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
47
+ var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, failed = _a.failed, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick", "failed"]);
48
48
  var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
49
49
  React.useEffect(function () {
50
50
  if (timeValue <= 0)
@@ -55,14 +55,14 @@ var OTPTimerComponent = function (_a) {
55
55
  return function () { return clearInterval(interval); };
56
56
  }, [timeValue]);
57
57
  var resetTimer = function () {
58
- if (onResetClick && timeValue == 0) {
58
+ if (onResetClick && (timeValue == 0 || failed)) {
59
59
  onResetClick();
60
60
  seTimeValue(timeInSeconds || 60);
61
61
  }
62
62
  };
63
63
  return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
64
- cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
65
- } }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
64
+ cursor: (timeValue <= 0 || failed) && onResetClick ? 'pointer' : 'default'
65
+ } }, { children: timeValue > 0 && !failed ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
66
66
  };
67
67
  OTPTimerComponent.defaultProps = {
68
68
  time: 59
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type TextWithCurrencyProps = {
3
+ text: string;
4
+ countryCode?: string;
5
+ };
6
+ declare const TextWithCurrency: ({ text, countryCode }: TextWithCurrencyProps) => JSX.Element;
7
+ export default TextWithCurrency;
@@ -0,0 +1,14 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getCurrencyByCountryIso2 } from '../../utils';
3
+ import { CURRENCY_ICON } from '../../assets/currencies';
4
+ var TextWithCurrency = function (_a) {
5
+ var text = _a.text, countryCode = _a.countryCode;
6
+ if (!countryCode)
7
+ return _jsx(_Fragment, { children: text });
8
+ var currencyCode = getCurrencyByCountryIso2(countryCode);
9
+ var CurrencyIcon = CURRENCY_ICON[countryCode];
10
+ if (CurrencyIcon)
11
+ return (_jsxs("span", { children: [text, " (", _jsx(CurrencyIcon, {}), ")"] }));
12
+ return (_jsxs("span", { children: [text, currencyCode ? " (".concat(currencyCode, ")") : ''] }));
13
+ };
14
+ export default TextWithCurrency;
@@ -0,0 +1,2 @@
1
+ import TextWithCurrency from './TextWithCurrency';
2
+ export default TextWithCurrency;
@@ -0,0 +1,2 @@
1
+ import TextWithCurrency from './TextWithCurrency';
2
+ export default TextWithCurrency;
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
33
33
  var _b;
34
34
  var theme = _a.theme;
35
35
  return (_b = {},
36
- _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
36
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
37
37
  _b);
38
38
  });
39
39
  var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
@@ -13,7 +13,6 @@ export declare const ENDPOINT_PATHS: {
13
13
  PRODUCTION_BASE_URL: string;
14
14
  PRODUCTION_BASE_URL_SA: string;
15
15
  DEV_BASE_URL: string;
16
- BETA_BASE_URL: string;
17
16
  BUSINESS_COUNTRIES: string;
18
17
  COUNTRIES: string;
19
18
  IP: string;
@@ -2,7 +2,6 @@ var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
4
4
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
5
- var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
6
5
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
7
6
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
8
7
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -72,7 +71,6 @@ export var ENDPOINT_PATHS = {
72
71
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
73
72
  PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
74
73
  DEV_BASE_URL: DEV_BASE_URL,
75
- BETA_BASE_URL: BETA_BASE_URL,
76
74
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
77
75
  COUNTRIES: API_COUNTRIES,
78
76
  IP: IP_PATH,
@@ -1,7 +1,5 @@
1
- import { ScreenStepNavigation, BusinessType } from '../@types';
1
+ import { ScreenStepNavigation, BusinessType, TerminalInfo, TerminalDeviceInfo } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
- export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
- export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
5
3
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
6
4
  export declare const CLIENT_ORIGIN: string;
7
5
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -15,6 +13,7 @@ export declare const SCOPE_MERCHANT = "merchant";
15
13
  export declare const DEFAULT_COUNTRY_ISO2 = "KW";
16
14
  export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
17
15
  export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
16
+ export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
18
17
  export declare const LANGUAGE_ABBREVIATIONS: {
19
18
  ENGLISH: string;
20
19
  ARABIC: string;
@@ -44,6 +43,7 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
44
43
  export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
45
44
  export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
45
  export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
+ export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
47
47
  export declare const DefaultDeviceInfo: {
48
48
  source: string;
49
49
  device: {
@@ -121,6 +121,7 @@ export declare const AUTH_STEP_NAMES: {
121
121
  CREATE_AUTH_NID: string;
122
122
  VERIFY_AUTH_NID: string;
123
123
  UPDATE_DOB_INFO: string;
124
+ CREATE_AUTH_PASSCODE: string;
124
125
  };
125
126
  export declare const CONNECT_EXPRESS_STEP_NAMES: {
126
127
  CREATE_AUTH_MOBILE: string;
@@ -214,6 +215,13 @@ export declare const KYC_STEP_NAMES: {
214
215
  KYC_VERIFY_NAFATH: string;
215
216
  KYC_COMPLETED: string;
216
217
  };
218
+ export declare const TERMINAL_STEP_NAMES: {
219
+ PHONE_AUTH: string;
220
+ INFO: string;
221
+ SUCCESS: string;
222
+ CREATE_AUTH: string;
223
+ CREATE_TERMINAL_AUTH: string;
224
+ };
217
225
  export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
218
226
  export declare const ENCRYPTION_FLAG = "encryption_contract";
219
227
  export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
@@ -308,4 +316,6 @@ interface CountryToCurrencyMapping {
308
316
  [countryCode: string]: string;
309
317
  }
310
318
  export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
319
+ export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
320
+ export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
311
321
  export {};
@@ -1,8 +1,6 @@
1
1
  import { BusinessType } from '../@types';
2
2
  import { CONNECT_FLOWS } from './flows';
3
3
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
4
- export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
5
- export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
6
4
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
7
5
  export var CLIENT_ORIGIN = window.location.origin;
8
6
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -16,6 +14,7 @@ export var SCOPE_MERCHANT = 'merchant';
16
14
  export var DEFAULT_COUNTRY_ISO2 = 'KW';
17
15
  export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
18
16
  export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
17
+ export var TERMINAL_PUSH_NOTIFICATION_FAILED = 'terminal_push_notification_link_new_terminal_failed';
19
18
  export var LANGUAGE_ABBREVIATIONS = {
20
19
  ENGLISH: 'en',
21
20
  ARABIC: 'ar'
@@ -332,13 +331,13 @@ export var AUTH_SCREENS_NAVIGATION = [
332
331
  },
333
332
  {
334
333
  name: 'AUTH_MOBILE_STEP',
335
- next: 'AUTH_OTP_STEP',
334
+ next: ['AUTH_OTP_STEP', 'AUTH_PASSCODE_STEP'],
336
335
  prev: 'AUTH_SWITCH_STEP',
337
336
  order: 1
338
337
  },
339
338
  {
340
339
  name: 'AUTH_EMAIL_STEP',
341
- next: ['AUTH_PASSWORD_STEP', 'AUTH_RESET_PASSWORD_MESSAGE_STEP', 'AUTH_OTP_STEP'],
340
+ next: ['AUTH_PASSWORD_STEP', 'AUTH_RESET_PASSWORD_MESSAGE_STEP', 'AUTH_OTP_STEP', 'AUTH_PASSCODE_STEP'],
342
341
  prev: 'AUTH_SWITCH_STEP',
343
342
  order: 1
344
343
  },
@@ -356,10 +355,16 @@ export var AUTH_SCREENS_NAVIGATION = [
356
355
  },
357
356
  {
358
357
  name: 'AUTH_OTP_STEP',
359
- next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_EMAIL_SENT_STEP', 'AUTH_MIGRATING_DATA_STEP'],
358
+ next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_EMAIL_SENT_STEP', 'AUTH_MIGRATING_DATA_STEP', 'AUTH_PASSCODE_STEP'],
360
359
  prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP', 'AUTH_EMAIL_STEP', 'AUTH_PASSWORD_STEP'],
361
360
  order: 2
362
361
  },
362
+ {
363
+ name: 'AUTH_PASSCODE_STEP',
364
+ next: ['AUTH_OTP_STEP', 'AUTH_PREPARING_DATA_STEP', 'AUTH_MIGRATING_DATA_STEP'],
365
+ prev: ['AUTH_MOBILE_STEP', 'AUTH_EMAIL_STEP'],
366
+ order: 2
367
+ },
363
368
  {
364
369
  name: 'AUTH_NAFATH_VERIFY_STEP',
365
370
  next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_DOB_STEP'],
@@ -967,6 +972,86 @@ export var BRAND_SCREENS_NAVIGATION = [
967
972
  order: 6
968
973
  }
969
974
  ];
975
+ export var TERMINAL_SCREENS_NAVIGATION = [
976
+ {
977
+ name: CONNECT_FLOWS.terminal.verify,
978
+ next: [CONNECT_FLOWS.terminal.terminalDeviceList, CONNECT_FLOWS.terminal.noTerminalLinked],
979
+ prev: CONNECT_FLOWS.terminal.board,
980
+ order: 1
981
+ },
982
+ {
983
+ name: CONNECT_FLOWS.terminal.loadingData,
984
+ next: CONNECT_FLOWS.terminal.terminalDeviceList,
985
+ prev: '',
986
+ order: 1
987
+ },
988
+ {
989
+ name: CONNECT_FLOWS.terminal.operatorError,
990
+ next: '',
991
+ prev: '',
992
+ order: 1
993
+ },
994
+ {
995
+ name: CONNECT_FLOWS.terminal.noTerminalLinked,
996
+ next: CONNECT_FLOWS.terminal.terminalLinkNew,
997
+ prev: CONNECT_FLOWS.terminal.board,
998
+ order: 2
999
+ },
1000
+ {
1001
+ name: CONNECT_FLOWS.terminal.terminalDeviceList,
1002
+ next: [CONNECT_FLOWS.terminal.terminalList, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1003
+ prev: CONNECT_FLOWS.terminal.board,
1004
+ order: 2
1005
+ },
1006
+ {
1007
+ name: CONNECT_FLOWS.terminal.terminalList,
1008
+ next: CONNECT_FLOWS.terminal.terminalLinkNew,
1009
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1010
+ order: 3
1011
+ },
1012
+ {
1013
+ name: CONNECT_FLOWS.terminal.terminalLinkNew,
1014
+ next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1015
+ prev: [CONNECT_FLOWS.terminal.noTerminalLinked, CONNECT_FLOWS.terminal.terminalList],
1016
+ order: 3
1017
+ },
1018
+ {
1019
+ name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1020
+ next: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1021
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1022
+ order: 3
1023
+ },
1024
+ {
1025
+ name: CONNECT_FLOWS.terminal.unlinkedTerminalInfo,
1026
+ next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1027
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1028
+ order: 3
1029
+ },
1030
+ {
1031
+ name: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1032
+ next: CONNECT_FLOWS.terminal.board,
1033
+ prev: [CONNECT_FLOWS.terminal.terminalLinkNew, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1034
+ order: 4
1035
+ },
1036
+ {
1037
+ name: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1038
+ next: CONNECT_FLOWS.terminal.board,
1039
+ prev: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1040
+ order: 4
1041
+ },
1042
+ {
1043
+ name: CONNECT_FLOWS.terminal.board,
1044
+ next: CONNECT_FLOWS.terminal.resetPassword,
1045
+ prev: '',
1046
+ order: 5
1047
+ },
1048
+ {
1049
+ name: CONNECT_FLOWS.terminal.resetPassword,
1050
+ next: CONNECT_FLOWS.terminal.board,
1051
+ prev: '',
1052
+ order: 6
1053
+ }
1054
+ ];
970
1055
  export var DefaultDeviceInfo = {
971
1056
  source: 'browser',
972
1057
  device: {
@@ -1043,7 +1128,8 @@ export var AUTH_STEP_NAMES = {
1043
1128
  VERIFY_AUTH_EMAIL: 'auth_verify_auth_email',
1044
1129
  CREATE_AUTH_NID: 'auth_create_auth_nid',
1045
1130
  VERIFY_AUTH_NID: 'auth_verify_auth_nid',
1046
- UPDATE_DOB_INFO: 'auth_update_dob_info'
1131
+ UPDATE_DOB_INFO: 'auth_update_dob_info',
1132
+ CREATE_AUTH_PASSCODE: 'auth_create_auth_passcode'
1047
1133
  };
1048
1134
  export var CONNECT_EXPRESS_STEP_NAMES = {
1049
1135
  CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
@@ -1137,6 +1223,13 @@ export var KYC_STEP_NAMES = {
1137
1223
  KYC_VERIFY_NAFATH: 'kyc_verify_nafath',
1138
1224
  KYC_COMPLETED: 'kyc_completed'
1139
1225
  };
1226
+ export var TERMINAL_STEP_NAMES = {
1227
+ PHONE_AUTH: 'terminal_phone_auth',
1228
+ INFO: 'terminal_info',
1229
+ SUCCESS: 'terminal_completed',
1230
+ CREATE_AUTH: 'connect_create_auth_terminal',
1231
+ CREATE_TERMINAL_AUTH: 'connect_create_terminal_link'
1232
+ };
1140
1233
  export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
1141
1234
  export var ENCRYPTION_FLAG = 'encryption_contract';
1142
1235
  export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
@@ -1241,3 +1334,31 @@ export var COUNTRY_TO_CURRENCY = {
1241
1334
  HK: 'HKD',
1242
1335
  SG: 'SGD'
1243
1336
  };
1337
+ export var SELECTED_TERMINAL_DEVICE_DEFAULT_INFO = {
1338
+ id: '',
1339
+ status: '',
1340
+ live_mode: false,
1341
+ linked: false,
1342
+ serial_number: '',
1343
+ display_name: '',
1344
+ model: {
1345
+ live_mode: false,
1346
+ status: '',
1347
+ id: '',
1348
+ name: [],
1349
+ image: '',
1350
+ image_url: '',
1351
+ model: '',
1352
+ type: ''
1353
+ }
1354
+ };
1355
+ export var SELECTED_TERMINAL_DEFAULT_INFO = {
1356
+ id: '',
1357
+ legacy_id: '',
1358
+ merchant: {
1359
+ id: ''
1360
+ },
1361
+ name: {
1362
+ en: ''
1363
+ }
1364
+ };