@tap-payments/auth-jsconnect 2.10.11-beta → 2.10.11

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 (121) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +3 -1
  3. package/build/@types/app.js +1 -0
  4. package/build/@types/form.d.ts +7 -2
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/account.js +7 -4
  7. package/build/api/auth.d.ts +2 -1
  8. package/build/api/auth.js +7 -3
  9. package/build/api/axios.d.ts +1 -1
  10. package/build/api/entity.d.ts +3 -0
  11. package/build/api/headers.d.ts +5 -0
  12. package/build/api/headers.js +3 -0
  13. package/build/api/index.d.ts +4 -4
  14. package/build/api/lead.d.ts +1 -0
  15. package/build/api/operator.d.ts +1 -1
  16. package/build/api/operator.js +5 -2
  17. package/build/app/settings.d.ts +1 -0
  18. package/build/app/settings.js +8 -5
  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 +53 -7
  28. package/build/assets/locales/en.json +58 -11
  29. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  30. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  31. package/build/components/TextWithCurrency/index.d.ts +2 -0
  32. package/build/components/TextWithCurrency/index.js +2 -0
  33. package/build/constants/api.d.ts +1 -0
  34. package/build/constants/api.js +2 -0
  35. package/build/constants/app.d.ts +11 -0
  36. package/build/constants/app.js +110 -19
  37. package/build/constants/assets.d.ts +12 -3
  38. package/build/constants/assets.js +123 -105
  39. package/build/constants/dummy.js +27 -20
  40. package/build/constants/validation.d.ts +1 -0
  41. package/build/constants/validation.js +1 -0
  42. package/build/features/app/auth/authStore.d.ts +24 -5
  43. package/build/features/app/auth/authStore.js +188 -113
  44. package/build/features/app/bank/bankStore.js +24 -20
  45. package/build/features/app/board/boardStore.js +11 -7
  46. package/build/features/app/brand/brandStore.js +22 -18
  47. package/build/features/app/business/businessStore.js +45 -36
  48. package/build/features/app/connect/connectStore.d.ts +6 -5
  49. package/build/features/app/connect/connectStore.js +48 -31
  50. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -5
  51. package/build/features/app/connectExpress/connectExpressStore.js +99 -39
  52. package/build/features/app/entity/entityStore.js +21 -17
  53. package/build/features/app/individual/individualStore.js +33 -28
  54. package/build/features/app/password/passwordStore.js +44 -46
  55. package/build/features/app/signIn/signInStore.js +12 -16
  56. package/build/features/app/tax/taxStore.js +21 -17
  57. package/build/features/auth/Auth.d.ts +1 -1
  58. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
  59. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  60. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
  61. package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
  62. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  63. package/build/features/auth/screens/OTP/OTP.js +15 -3
  64. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  65. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  66. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  67. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  68. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  69. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  70. package/build/features/auth/screens/Passcode/index.js +2 -0
  71. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  72. package/build/features/auth/screens/Passcode/validation.js +4 -0
  73. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  74. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  75. package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
  76. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  77. package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
  78. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  79. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  80. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  81. package/build/features/business/screens/BusinessType/validation.js +31 -10
  82. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  83. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  84. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
  85. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  86. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
  87. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
  88. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  89. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
  90. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  91. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  92. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  93. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  94. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  95. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  96. package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
  97. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  98. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  99. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  100. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  101. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  102. package/build/features/entity/screens/EntityName/validation.js +100 -85
  103. package/build/features/featuresScreens.js +60 -0
  104. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  105. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  106. package/build/features/shared/Background/LogoBackground.js +5 -17
  107. package/build/features/shared/Button/Button.js +1 -2
  108. package/build/features/shared/Input/Input.d.ts +1 -1
  109. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
  110. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
  111. package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
  112. package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
  113. package/build/hooks/useAppConfig.js +1 -1
  114. package/build/utils/common.d.ts +1 -1
  115. package/build/utils/common.js +14 -8
  116. package/build/utils/error.d.ts +2 -0
  117. package/build/utils/error.js +6 -0
  118. package/build/utils/string.d.ts +3 -2
  119. package/build/utils/string.js +4 -1
  120. package/build/utils/validation.js +1 -1
  121. package/package.json +3 -3
@@ -1,88 +1,90 @@
1
1
  import * as yup from 'yup';
2
- export declare const EntityNameValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
2
+ declare type NonEditableMap = Record<string, boolean>;
3
+ export declare const EntityNameValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
4
5
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
8
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
10
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
10
11
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
11
12
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
13
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
13
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
14
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
14
15
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
15
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
18
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
18
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
20
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
20
21
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
21
22
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
23
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
23
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
24
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
24
25
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
26
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
26
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
28
  unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
29
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
29
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
31
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
31
32
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
33
  }>>>;
33
- export declare const EntityNameKWValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
34
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
34
+ export declare const EntityNameKWValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
35
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
35
36
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
37
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
38
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
39
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
37
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
38
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
39
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
41
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
41
42
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
42
43
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
43
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
44
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
44
45
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
46
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
47
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
48
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
46
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
47
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
48
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
49
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
49
50
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
50
51
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
51
52
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
52
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
53
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
54
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
55
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
56
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
57
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
55
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
56
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
59
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
59
60
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
60
61
  }>>>;
61
- export declare const EntityNameOtherCountryValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
62
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
62
+ export declare const EntityNameOtherCountryValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
63
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
63
64
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
64
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
65
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
66
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
67
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
65
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
66
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
67
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
69
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
69
70
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
70
71
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
71
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
72
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
72
73
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
73
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
74
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
75
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
76
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
74
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
75
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
76
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
77
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
77
78
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
78
79
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
79
80
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
80
- legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
81
+ legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
81
82
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
82
- entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
83
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
84
- issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
85
- expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
83
+ entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
84
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
85
+ issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
86
+ expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
86
87
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
87
88
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
88
89
  }>>>;
90
+ export {};
@@ -1,67 +1,56 @@
1
1
  import * as yup from 'yup';
2
2
  import { BusinessType } from '../../../../@types';
3
- import { KW_MIN_LICENSE_LENGTH, CR_MIN_LICENSE_LENGTH, FL_MIN_LICENSE_LENGTH } from '../../../../constants';
4
- export var EntityNameValidationSchema = function () {
3
+ import { KW_MIN_LICENSE_LENGTH, UNIFIED_NUMBER_MIN_LENGTH } from '../../../../constants';
4
+ export var EntityNameValidationSchema = function (noneEditable) {
5
5
  return yup.object().shape({
6
- legalName: yup
7
- .string()
8
- .required('')
9
- .test({
10
- test: function (value) {
11
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
12
- if (length === 0)
13
- return true;
14
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
15
- }
16
- }),
6
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
7
+ ? yup.string().optional()
8
+ : yup
9
+ .string()
10
+ .required('')
11
+ .test({
12
+ test: function (value) {
13
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
14
+ if (length === 0)
15
+ return true;
16
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
17
+ }
18
+ }),
17
19
  licenseType: yup.string().optional(),
18
- entityType: yup.string().required('entity_type_required'),
19
- licenseNumber: yup
20
- .string()
21
- .test({
22
- test: function (value) {
23
- var type = this.parent.licenseType;
24
- var isCR = type === BusinessType.CR;
25
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
26
- if (length === 0)
27
- return true;
28
- if (isCR) {
29
- return length >= CR_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_max_length' });
20
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
21
+ licenseNumber: yup.string().optional(),
22
+ unifiedNumber: noneEditable['license.additional_info']
23
+ ? yup.string().optional()
24
+ : yup.string().when('licenseType', function (licenseType) {
25
+ var isCR = licenseType === BusinessType.CR;
26
+ if (!isCR) {
27
+ return yup.string().optional();
30
28
  }
31
- return length >= FL_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'fl_max_length' });
32
- }
33
- })
34
- .required(''),
35
- unifiedNumber: yup.string().optional(),
36
- issuingDate: yup.string().required('choose_any_issuing_date'),
37
- expiryDate: yup.string().required('choose_any_expiry_date'),
29
+ return yup
30
+ .string()
31
+ .required('')
32
+ .test({
33
+ test: function (value) {
34
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
35
+ if (length >= UNIFIED_NUMBER_MIN_LENGTH)
36
+ return true;
37
+ if (length === 0)
38
+ return this.createError({ message: '' });
39
+ return this.createError({ message: 'unified_number_required' });
40
+ }
41
+ });
42
+ }),
43
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
44
+ expiryDate: yup.string().optional(),
38
45
  certificateId: yup.array().optional(),
39
46
  articleId: yup.string().optional()
40
47
  });
41
48
  };
42
- export var EntityNameKWValidationSchema = function () {
49
+ export var EntityNameKWValidationSchema = function (noneEditable) {
43
50
  return yup.object().shape({
44
- legalName: yup
45
- .string()
46
- .required('')
47
- .test({
48
- test: function (value) {
49
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
50
- if (length === 0)
51
- return true;
52
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
53
- }
54
- }),
55
- licenseType: yup.string().optional(),
56
- entityType: yup.string().required('entity_type_required'),
57
- licenseNumber: yup
58
- .string()
59
- .when('licenseType', function (licenseType) {
60
- var isCR = licenseType === BusinessType.CR;
61
- if (!isCR) {
62
- return yup.string().optional();
63
- }
64
- return yup
51
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
52
+ ? yup.string().optional()
53
+ : yup
65
54
  .string()
66
55
  .required('')
67
56
  .test({
@@ -69,37 +58,44 @@ export var EntityNameKWValidationSchema = function () {
69
58
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
70
59
  if (length === 0)
71
60
  return true;
72
- return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_kw_max_length' });
61
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
62
+ }
63
+ }),
64
+ licenseType: yup.string().optional(),
65
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
66
+ licenseNumber: noneEditable['license.number']
67
+ ? yup.string().optional()
68
+ : yup
69
+ .string()
70
+ .when('licenseType', function (licenseType) {
71
+ var isCR = licenseType === BusinessType.CR;
72
+ if (!isCR) {
73
+ return yup.string().optional();
73
74
  }
74
- });
75
- })
76
- .required(''),
77
- issuingDate: yup.string().required('choose_any_issuing_date'),
78
- expiryDate: yup.string().required('choose_any_expiry_date'),
75
+ return yup
76
+ .string()
77
+ .required('')
78
+ .test({
79
+ test: function (value) {
80
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
81
+ if (length === 0)
82
+ return true;
83
+ return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_kw_max_length' });
84
+ }
85
+ });
86
+ })
87
+ .required(''),
88
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
89
+ expiryDate: noneEditable['license.expiry_date'] ? yup.string().optional() : yup.string().required('choose_any_expiry_date'),
79
90
  certificateId: yup.array().optional(),
80
91
  articleId: yup.string().optional()
81
92
  });
82
93
  };
83
- export var EntityNameOtherCountryValidationSchema = function () {
94
+ export var EntityNameOtherCountryValidationSchema = function (noneEditable) {
84
95
  return yup.object().shape({
85
- legalName: yup
86
- .string()
87
- .required('')
88
- .test({
89
- test: function (value) {
90
- var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
91
- if (length === 0)
92
- return true;
93
- return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
94
- }
95
- }),
96
- licenseType: yup.string().optional(),
97
- entityType: yup.string().required('entity_type_required'),
98
- licenseNumber: yup
99
- .string()
100
- .when('licenseType', function (licenseType) {
101
- var isCR = licenseType === BusinessType.CR;
102
- return yup
96
+ legalName: noneEditable['legal_name.en'] && noneEditable['legal_name.ar']
97
+ ? yup.string().optional()
98
+ : yup
103
99
  .string()
104
100
  .required('')
105
101
  .test({
@@ -107,13 +103,32 @@ export var EntityNameOtherCountryValidationSchema = function () {
107
103
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
108
104
  if (length === 0)
109
105
  return true;
110
- return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: isCR ? 'cr_kw_max_length' : 'fl_max_length' });
106
+ return length >= 3 ? true : this.createError({ message: 'enter_legal_name_min_three_chars' });
111
107
  }
112
- });
113
- })
114
- .required(''),
115
- issuingDate: yup.string().required('choose_any_issuing_date'),
116
- expiryDate: yup.string().required('choose_any_expiry_date'),
108
+ }),
109
+ licenseType: yup.string().optional(),
110
+ entityType: noneEditable['type'] ? yup.string().optional() : yup.string().required('entity_type_required'),
111
+ licenseNumber: noneEditable['license.number']
112
+ ? yup.string().optional()
113
+ : yup
114
+ .string()
115
+ .when('licenseType', function (licenseType) {
116
+ var isCR = licenseType === BusinessType.CR;
117
+ return yup
118
+ .string()
119
+ .required('')
120
+ .test({
121
+ test: function (value) {
122
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
123
+ if (length === 0)
124
+ return true;
125
+ return length >= KW_MIN_LICENSE_LENGTH ? true : this.createError({ message: isCR ? 'cr_kw_max_length' : 'fl_max_length' });
126
+ }
127
+ });
128
+ })
129
+ .required(''),
130
+ issuingDate: noneEditable['license.issuing_date'] ? yup.string().optional() : yup.string().required('choose_any_issuing_date'),
131
+ expiryDate: noneEditable['license.expiry_date'] ? yup.string().optional() : yup.string().required('choose_any_expiry_date'),
117
132
  certificateId: yup.array().optional(),
118
133
  articleId: yup.string().optional()
119
134
  });
@@ -13,6 +13,7 @@ import ConnectOTPScreen from './connect/screens/OTP';
13
13
  import ThankYouScreen from './connect/screens/ThankYou';
14
14
  import OperatorError from './connect/screens/OperatorError';
15
15
  import CollectMobileOwnership from './connect/screens/MobileOwnership';
16
+ import OTPVerifySecurityError from './shared/OTPVerifySecurityError';
16
17
  import ConnectExpressBusinessCountry from './connectExpress/screens/BusinessCountry/BusinessCountry';
17
18
  import ConnectExpressMobileScreen from './connectExpress/screens/Mobile';
18
19
  import ConnectExpressNIDScreen from './connectExpress/screens/NID';
@@ -37,6 +38,7 @@ import ConnectExpressAuthMerchantScreen from './connectExpress/screens/AuthMerch
37
38
  import ConnectExpressAuthAccountCreatedLoaderScreen from './connectExpress/screens/AccountCreatedLoader';
38
39
  import ConnectExpressOperatorError from './connectExpress/screens/OperatorError';
39
40
  import ConnectExpressCollectMobileOwnership from './connectExpress/screens/MobileOwnership';
41
+ import ConnectExpressOTPVerifySecurityError from './shared/OTPVerifySecurityError';
40
42
  import AuthBusinessCountry from './auth/screens/BusinessCountry/BusinessCountry';
41
43
  import AuthSwitchScreen from './auth/screens/AuthSwitch';
42
44
  import AuthMobileScreen from './auth/screens/Mobile';
@@ -57,6 +59,8 @@ import AuthAccountCreatedLoaderScreen from './auth/screens/AccountCreatedLoader'
57
59
  import AuthEmailSentScreen from './auth/screens/EmailSent';
58
60
  import AuthMigratingDataScreen from './auth/screens/MigratingData';
59
61
  import AuthOperatorError from './auth/screens/OperatorError';
62
+ import AuthPasscodeScreen from './auth/screens/Passcode';
63
+ import AuthOTPVerifySecurityError from './shared/OTPVerifySecurityError';
60
64
  import CustomersPage from './business/screens/Customers';
61
65
  import IDBODPage from './business/screens/IDBOD';
62
66
  import BusinessVerifyPage from './business/screens/Verify';
@@ -72,6 +76,7 @@ import BusVerifyPACIScreen from './business/screens/VerifyPACI';
72
76
  import BrandVerifyScreen from './business/screens/BrandDetails';
73
77
  import BusinessOperatorError from './business/screens/OperatorError';
74
78
  import BusinessCollectMobileOwnership from './business/screens/MobileOwnership';
79
+ import BusinessOTPVerifySecurityError from './shared/OTPVerifySecurityError';
75
80
  import PasswordVerifyPage from './password/screens/Verify';
76
81
  import CreatePasswordPage from './password/screens/CreatePassword';
77
82
  import PasswordDataLoadingPage from './password/screens/PrepareDataLoading';
@@ -80,6 +85,7 @@ import SuccessPasswordPage from './password/screens/Success';
80
85
  import PasswordSuccessWithFlowPage from './password/screens/SuccessWithFlowButtons';
81
86
  import PasswordResetPasswordSuccessPage from './password/screens/ResetPasswordSuccess';
82
87
  import PasswordOperatorError from './password/screens/OperatorError';
88
+ import PasswordOTPVerifySecurityError from './shared/OTPVerifySecurityError';
83
89
  import IndividualVerifyPage from './individual/screens/Verify';
84
90
  import IndividualPhoneInfoPage from './individual/screens/IndividualPhoneInfo';
85
91
  import IndividualListPage from './individual/screens/IndividualList';
@@ -90,6 +96,7 @@ import IndividualSuccessWithFlowPage from './individual/screens/SuccessWithFlowB
90
96
  import IndividualResetPasswordSuccessPage from './individual/screens/ResetPasswordSuccess';
91
97
  import IndividualDataLoadingPage from './individual/screens/PrepareDataLoading';
92
98
  import IndividualOperatorError from './individual/screens/OperatorError';
99
+ import IndividualOTPVerifySecurityError from './shared/OTPVerifySecurityError';
93
100
  import BankVerifyPage from './bank/screens/Verify';
94
101
  import BankDetailsPage from './bank/screens/BankDetails';
95
102
  import BankSuccessPage from './bank/screens/Success';
@@ -97,6 +104,7 @@ import BankSuccessWithFlowPage from './bank/screens/SuccessWithFlowButtons';
97
104
  import BankResetPasswordSuccessPage from './bank/screens/ResetPasswordSuccess';
98
105
  import BankDataLoadingPage from './bank/screens/PrepareDataLoading';
99
106
  import BankOperatorError from './bank/screens/OperatorError';
107
+ import BankOTPVerifySecurityError from './shared/OTPVerifySecurityError';
100
108
  import TaxVerifyPage from './tax/screens/Verify';
101
109
  import TaxDetailsPage from './tax/screens/TaxDetails';
102
110
  import TaxSuccessPage from './tax/screens/Success';
@@ -104,6 +112,7 @@ import TaxSuccessWithFlowPage from './tax/screens/SuccessWithFlowButtons';
104
112
  import TaxResetPasswordSuccessPage from './tax/screens/ResetPasswordSuccess';
105
113
  import TaxDataLoadingPage from './tax/screens/PrepareDataLoading';
106
114
  import TaxOperatorError from './tax/screens/OperatorError';
115
+ import TaxOTPVerifySecurityError from './shared/OTPVerifySecurityError';
107
116
  import SignInMobilePage from './signIn/screens/Mobile';
108
117
  import SignInEmailPage from './signIn/screens/Email';
109
118
  import SignInOTPPage from './signIn/screens/OTP';
@@ -117,6 +126,7 @@ import EntitySuccessWithFlowPage from './entity/screens/SuccessWithFlowButtons';
117
126
  import EntityResetPasswordSuccessPage from './entity/screens/ResetPasswordSuccess';
118
127
  import EntityDataLoadingPage from './entity/screens/PrepareDataLoading';
119
128
  import EntityOperatorError from './entity/screens/OperatorError';
129
+ import EntityOTPVerifySecurityError from './shared/OTPVerifySecurityError';
120
130
  import BrandVerifyPage from './brand/screens/Verify';
121
131
  import BrandInfoPage from './brand/screens/BrandInfo';
122
132
  import BrandSegmentPage from './brand/screens/BrandSegmentInfo';
@@ -126,11 +136,13 @@ import BrandSuccessWithFlowPage from './brand/screens/SuccessWithFlowButtons';
126
136
  import BrandResetPasswordSuccessPage from './brand/screens/ResetPasswordSuccess';
127
137
  import BrandDataLoadingPage from './brand/screens/PrepareDataLoading';
128
138
  import BrandOperatorError from './brand/screens/OperatorError';
139
+ import BrandOTPVerifySecurityError from './shared/OTPVerifySecurityError';
129
140
  import BoardVerifyPage from './board/screens/Verify';
130
141
  import BoardSuccessWithFlowPage from './board/screens/SuccessWithFlowButtons';
131
142
  import BoardResetPasswordSuccessPage from './board/screens/ResetPasswordSuccess';
132
143
  import BoardDataLoadingPage from './board/screens/PrepareDataLoading';
133
144
  import BoardOperatorError from './board/screens/OperatorError';
145
+ import BoardOTPVerifySecurityError from './shared/OTPVerifySecurityError';
134
146
  import KycLoadingPage from './kyc/screens/Loading';
135
147
  import KycTokenErrorPage from './kyc/screens/TokenError';
136
148
  import KycAlreadySubmittedPage from './kyc/screens/AlreadySubmitted';
@@ -196,6 +208,10 @@ export var connectFeatureScreens = [
196
208
  {
197
209
  name: 'CONNECT_MOBILE_OWNERSHIP',
198
210
  element: CollectMobileOwnership
211
+ },
212
+ {
213
+ name: 'CONNECT_OTP_VERIFY_SECURITY_ERROR_STEP',
214
+ element: OTPVerifySecurityError
199
215
  }
200
216
  ];
201
217
  export var connectExpressFeatureScreens = [
@@ -294,6 +310,10 @@ export var connectExpressFeatureScreens = [
294
310
  {
295
311
  name: 'COLLECT_MOBILE_OWNERSHIP',
296
312
  element: ConnectExpressCollectMobileOwnership
313
+ },
314
+ {
315
+ name: 'CONNECT_EXPRESS_OTP_VERIFY_SECURITY_ERROR_STEP',
316
+ element: ConnectExpressOTPVerifySecurityError
297
317
  }
298
318
  ];
299
319
  export var authFeatureScreens = [
@@ -325,6 +345,10 @@ export var authFeatureScreens = [
325
345
  name: 'AUTH_OTP_STEP',
326
346
  element: AuthOTPScreen
327
347
  },
348
+ {
349
+ name: 'AUTH_PASSCODE_STEP',
350
+ element: AuthPasscodeScreen
351
+ },
328
352
  {
329
353
  name: 'AUTH_PASSWORD_STEP',
330
354
  element: AuthPasswordScreen
@@ -376,6 +400,10 @@ export var authFeatureScreens = [
376
400
  {
377
401
  name: 'AUTH_OPERATOR_ERROR_STEP',
378
402
  element: AuthOperatorError
403
+ },
404
+ {
405
+ name: 'AUTH_OTP_VERIFY_SECURITY_ERROR_STEP',
406
+ element: AuthOTPVerifySecurityError
379
407
  }
380
408
  ];
381
409
  export var businessFeatureScreens = [
@@ -426,6 +454,10 @@ export var businessFeatureScreens = [
426
454
  {
427
455
  name: 'BUSINESS_MOBILE_OWNERSHIP',
428
456
  element: BusinessCollectMobileOwnership
457
+ },
458
+ {
459
+ name: 'BUSINESS_OTP_VERIFY_SECURITY_ERROR_STEP',
460
+ element: BusinessOTPVerifySecurityError
429
461
  }
430
462
  ];
431
463
  export var passwordFeatureScreens = [
@@ -457,6 +489,10 @@ export var passwordFeatureScreens = [
457
489
  {
458
490
  name: 'PASSWORD_OPERATOR_ERROR_STEP',
459
491
  element: PasswordOperatorError
492
+ },
493
+ {
494
+ name: 'PASSWORD_OTP_VERIFY_SECURITY_ERROR_STEP',
495
+ element: PasswordOTPVerifySecurityError
460
496
  }
461
497
  ];
462
498
  export var individualFeatureScreens = [
@@ -496,6 +532,10 @@ export var individualFeatureScreens = [
496
532
  {
497
533
  name: 'INDIVIDUAL_OPERATOR_ERROR_STEP',
498
534
  element: IndividualOperatorError
535
+ },
536
+ {
537
+ name: 'INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP',
538
+ element: IndividualOTPVerifySecurityError
499
539
  }
500
540
  ];
501
541
  export var bankFeatureScreens = [
@@ -523,6 +563,10 @@ export var bankFeatureScreens = [
523
563
  {
524
564
  name: 'BANK_OPERATOR_ERROR_STEP',
525
565
  element: BankOperatorError
566
+ },
567
+ {
568
+ name: 'BANK_OTP_VERIFY_SECURITY_ERROR_STEP',
569
+ element: BankOTPVerifySecurityError
526
570
  }
527
571
  ];
528
572
  export var taxFeatureScreens = [
@@ -550,6 +594,10 @@ export var taxFeatureScreens = [
550
594
  {
551
595
  name: 'TAX_OPERATOR_ERROR_STEP',
552
596
  element: TaxOperatorError
597
+ },
598
+ {
599
+ name: 'TAX_OTP_VERIFY_SECURITY_ERROR_STEP',
600
+ element: TaxOTPVerifySecurityError
553
601
  }
554
602
  ];
555
603
  export var signInFeatureScreens = [
@@ -603,6 +651,10 @@ export var entityFeatureScreens = [
603
651
  {
604
652
  name: 'ENTITY_OPERATOR_ERROR_STEP',
605
653
  element: EntityOperatorError
654
+ },
655
+ {
656
+ name: 'ENTITY_OTP_VERIFY_SECURITY_ERROR_STEP',
657
+ element: EntityOTPVerifySecurityError
606
658
  }
607
659
  ];
608
660
  export var brandFeatureScreens = [
@@ -638,6 +690,10 @@ export var brandFeatureScreens = [
638
690
  {
639
691
  name: 'BRAND_OPERATOR_ERROR_STEP',
640
692
  element: BrandOperatorError
693
+ },
694
+ {
695
+ name: 'BRAND_OTP_VERIFY_SECURITY_ERROR_STEP',
696
+ element: BrandOTPVerifySecurityError
641
697
  }
642
698
  ];
643
699
  export var boardFeatureScreens = [
@@ -660,6 +716,10 @@ export var boardFeatureScreens = [
660
716
  {
661
717
  name: 'BOARD_OPERATOR_ERROR_STEP',
662
718
  element: BoardOperatorError
719
+ },
720
+ {
721
+ name: 'BOARD_OTP_VERIFY_SECURITY_ERROR_STEP',
722
+ element: BoardOTPVerifySecurityError
663
723
  }
664
724
  ];
665
725
  export var kycFeatureScreens = [