b2b-platform-utils 1.1.51 → 1.1.53

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 +19 -1
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -843,7 +843,25 @@ const STATIC_ERRORS = [
843
843
  errorKey: "invalidKycUserId",
844
844
  httpCode: 422,
845
845
  description: "KYC user identifier is missing or invalid.",
846
- }
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
+ },
859
+ {
860
+ errorCode: 1140,
861
+ errorKey: "presetNotFound",
862
+ httpCode: 404,
863
+ description: "Preset was not found.",
864
+ },
847
865
  ];
848
866
 
849
867
  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.51",
3
+ "version": "1.1.53",
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",