b2b-platform-utils 1.1.43 → 1.1.45

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 +12 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -569,6 +569,18 @@ const STATIC_ERRORS = [
569
569
  httpCode: 422,
570
570
  description: "Withdrawal status transition is invalid for the current state.",
571
571
  },
572
+ {
573
+ errorCode: 1093,
574
+ errorKey: "userBlocked",
575
+ httpCode: 403,
576
+ description: "User is blocked.",
577
+ },
578
+ {
579
+ errorCode: 1094,
580
+ errorKey: "userSelfExcluded",
581
+ httpCode: 403,
582
+ description: "User is under active self-exclusion.",
583
+ },
572
584
  ];
573
585
 
574
586
  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.43",
3
+ "version": "1.1.45",
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",