b2b-platform-utils 1.1.50 → 1.1.52

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 +18 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -838,6 +838,24 @@ const STATIC_ERRORS = [
838
838
  httpCode: 422,
839
839
  description: "KYC status transition is not allowed.",
840
840
  },
841
+ {
842
+ errorCode: 1137,
843
+ errorKey: "invalidKycUserId",
844
+ httpCode: 422,
845
+ description: "KYC user identifier is missing or invalid.",
846
+ },
847
+ {
848
+ errorCode: 1138,
849
+ errorKey: "invalidUserId",
850
+ httpCode: 422,
851
+ description: "User identifier is missing or invalid.",
852
+ },
853
+ {
854
+ errorCode: 1139,
855
+ errorKey: "invalidCurrency",
856
+ httpCode: 422,
857
+ description: "Currency is missing or invalid.",
858
+ },
841
859
  ];
842
860
 
843
861
  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.50",
3
+ "version": "1.1.52",
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",