b2b-platform-utils 1.1.74 → 1.1.78

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 +24 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1272,6 +1272,30 @@ const STATIC_ERRORS = [
1272
1272
  httpCode: 422,
1273
1273
  description: "Financial operation is not allowed in its current state.",
1274
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
+ },
1293
+ {
1294
+ errorCode: 1212,
1295
+ errorKey: "insufficientPermissions",
1296
+ httpCode: 403,
1297
+ description: "Authenticated user lacks the required permission.",
1298
+ },
1275
1299
  ];
1276
1300
 
1277
1301
  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.74",
3
+ "version": "1.1.78",
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",