b2b-platform-utils 1.1.100 → 1.1.101
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/errorsMap.js +24 -0
- package/package.json +1 -1
package/errorsMap.js
CHANGED
|
@@ -1842,6 +1842,30 @@ const STATIC_ERRORS = [
|
|
|
1842
1842
|
httpCode: 422,
|
|
1843
1843
|
description: "Risk permission conditions contain an unsupported permission or condition.",
|
|
1844
1844
|
},
|
|
1845
|
+
{
|
|
1846
|
+
errorCode: 1300,
|
|
1847
|
+
errorKey: "withdrawalTwoFaChallengeRequired",
|
|
1848
|
+
httpCode: 422,
|
|
1849
|
+
description: "Withdrawal requires a valid authenticator code. No withdrawal was created.",
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
errorCode: 1301,
|
|
1853
|
+
errorKey: "withdrawalTwoFaSetupRequired",
|
|
1854
|
+
httpCode: 422,
|
|
1855
|
+
description: "Withdrawal requires authenticator enrollment. No withdrawal was created.",
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
errorCode: 1302,
|
|
1859
|
+
errorKey: "withdrawalTwoFaInvalidOtp",
|
|
1860
|
+
httpCode: 422,
|
|
1861
|
+
description: "Withdrawal authenticator code is incorrect. Another attempt is allowed.",
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
errorCode: 1303,
|
|
1865
|
+
errorKey: "withdrawalTwoFaChallengeExpired",
|
|
1866
|
+
httpCode: 422,
|
|
1867
|
+
description: "Withdrawal authenticator challenge expired or was invalidated.",
|
|
1868
|
+
},
|
|
1845
1869
|
];
|
|
1846
1870
|
|
|
1847
1871
|
const STATIC_BY_KEY = Object.fromEntries(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "b2b-platform-utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.101",
|
|
4
4
|
"description": "Shared utilities for Node.js microservices: errors map, local cache, logger, numbers, dates, filesystem, media optimization, paginator, slugger, crypto wrapper, sanitize HTML, sorting.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "KingSizer",
|