b2b-platform-utils 1.1.68 → 1.1.70
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 +49 -0
- package/package.json +1 -1
package/errorsMap.js
CHANGED
|
@@ -995,6 +995,55 @@ const STATIC_ERRORS = [
|
|
|
995
995
|
httpCode: 422,
|
|
996
996
|
description: "Two factor authentication secret is missing.",
|
|
997
997
|
},
|
|
998
|
+
{
|
|
999
|
+
errorCode: 1163,
|
|
1000
|
+
errorKey: "invalidWagerBalancePriority",
|
|
1001
|
+
httpCode: 500,
|
|
1002
|
+
description:
|
|
1003
|
+
'Wager balance priority is missing or invalid (expected "real", "bonus", or "any").',
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
errorCode: 1164,
|
|
1007
|
+
errorKey: "withdrawalProviderConfigurationInvalid",
|
|
1008
|
+
httpCode: 500,
|
|
1009
|
+
description: "Withdrawal provider configuration is missing or invalid.",
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
errorCode: 1165,
|
|
1013
|
+
errorKey: "withdrawalProviderRequestFailed",
|
|
1014
|
+
httpCode: 502,
|
|
1015
|
+
description: "Withdrawal provider request failed.",
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
errorCode: 1166,
|
|
1019
|
+
errorKey: "withdrawalProviderUnavailable",
|
|
1020
|
+
httpCode: 503,
|
|
1021
|
+
description: "Withdrawal provider is temporarily unavailable.",
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
errorCode: 1167,
|
|
1025
|
+
errorKey: "withdrawalProviderTimeout",
|
|
1026
|
+
httpCode: 504,
|
|
1027
|
+
description: "Withdrawal provider request timed out.",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
errorCode: 1168,
|
|
1031
|
+
errorKey: "invalidWithdrawalProviderResponse",
|
|
1032
|
+
httpCode: 502,
|
|
1033
|
+
description: "Withdrawal provider response is invalid or unsupported.",
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
errorCode: 1169,
|
|
1037
|
+
errorKey: "withdrawalProviderStatusNotFound",
|
|
1038
|
+
httpCode: 404,
|
|
1039
|
+
description: "Withdrawal provider operation status was not found.",
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
errorCode: 1170,
|
|
1043
|
+
errorKey: "withdrawalProviderReconciliationRequired",
|
|
1044
|
+
httpCode: 503,
|
|
1045
|
+
description: "Withdrawal provider operation requires status reconciliation.",
|
|
1046
|
+
},
|
|
998
1047
|
];
|
|
999
1048
|
|
|
1000
1049
|
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.70",
|
|
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",
|