b2b-platform-utils 1.1.97 → 1.1.98

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
@@ -1830,6 +1830,18 @@ const STATIC_ERRORS = [
1830
1830
  httpCode: 422,
1831
1831
  description: "New password must differ from the current password.",
1832
1832
  },
1833
+ {
1834
+ errorCode: 1298,
1835
+ errorKey: "withdrawalKycRequired",
1836
+ httpCode: 409,
1837
+ description: "Verified KYC is required before withdrawal.",
1838
+ },
1839
+ {
1840
+ errorCode: 1299,
1841
+ errorKey: "invalidRiskPermissionConditions",
1842
+ httpCode: 422,
1843
+ description: "Risk permission conditions contain an unsupported permission or condition.",
1844
+ },
1833
1845
  ];
1834
1846
 
1835
1847
  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.97",
3
+ "version": "1.1.98",
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",