b2b-platform-utils 1.1.73 → 1.1.75

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 (2) hide show
  1. package/errorsMap.js +48 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1242,6 +1242,54 @@ const STATIC_ERRORS = [
1242
1242
  httpCode: 422,
1243
1243
  description: "Request currency is required for this payment method.",
1244
1244
  },
1245
+ {
1246
+ errorCode: 1204,
1247
+ errorKey: "invalidWagerMultiplier",
1248
+ httpCode: 422,
1249
+ description: "Wager multiplier is missing or invalid.",
1250
+ },
1251
+ {
1252
+ errorCode: 1205,
1253
+ errorKey: "financialOperationReasonRequired",
1254
+ httpCode: 422,
1255
+ description: "Financial operation reason is required.",
1256
+ },
1257
+ {
1258
+ errorCode: 1206,
1259
+ errorKey: "financialOperationIdempotencyRequired",
1260
+ httpCode: 422,
1261
+ description: "Financial operation idempotency identifier is required.",
1262
+ },
1263
+ {
1264
+ errorCode: 1207,
1265
+ errorKey: "financialOperationNotFound",
1266
+ httpCode: 404,
1267
+ description: "Financial operation was not found.",
1268
+ },
1269
+ {
1270
+ errorCode: 1208,
1271
+ errorKey: "financialOperationInvalidState",
1272
+ httpCode: 422,
1273
+ description: "Financial operation is not allowed in its current state.",
1274
+ },
1275
+ {
1276
+ errorCode: 1209,
1277
+ errorKey: "smsResetCodeInvalidOrExpired",
1278
+ httpCode: 422,
1279
+ description: "SMS password recovery code is invalid or expired.",
1280
+ },
1281
+ {
1282
+ errorCode: 1210,
1283
+ errorKey: "smsResetTooManyAttempts",
1284
+ httpCode: 429,
1285
+ description: "Too many SMS password recovery code attempts.",
1286
+ },
1287
+ {
1288
+ errorCode: 1211,
1289
+ errorKey: "smsPasswordResetTokenInvalidOrExpired",
1290
+ httpCode: 422,
1291
+ description: "SMS password reset token is invalid or expired.",
1292
+ },
1245
1293
  ];
1246
1294
 
1247
1295
  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.73",
3
+ "version": "1.1.75",
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",