b2b-platform-utils 1.1.63 → 1.1.66

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 +60 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -935,6 +935,66 @@ const STATIC_ERRORS = [
935
935
  description:
936
936
  "Withdrawal wager requirements are not completed for the requested amount.",
937
937
  },
938
+ {
939
+ errorCode: 1153,
940
+ errorKey: "providerRateLimitGuardTimeout",
941
+ httpCode: 503,
942
+ description: "Provider request is temporarily throttled, try again later.",
943
+ },
944
+ {
945
+ errorCode: 1154,
946
+ errorKey: "twoFaAlreadyEnabled",
947
+ httpCode: 422,
948
+ description: "Two factor authentication is already enabled.",
949
+ },
950
+ {
951
+ errorCode: 1155,
952
+ errorKey: "twoFaNotEnabled",
953
+ httpCode: 422,
954
+ description: "Two factor authentication is not enabled.",
955
+ },
956
+ {
957
+ errorCode: 1156,
958
+ errorKey: "twoFaSetupRequired",
959
+ httpCode: 422,
960
+ description: "Two factor authentication setup is required.",
961
+ },
962
+ {
963
+ errorCode: 1157,
964
+ errorKey: "twoFaChallengeNotFound",
965
+ httpCode: 404,
966
+ description: "Two factor authentication challenge was not found.",
967
+ },
968
+ {
969
+ errorCode: 1158,
970
+ errorKey: "twoFaChallengeExpired",
971
+ httpCode: 422,
972
+ description: "Two factor authentication challenge is expired.",
973
+ },
974
+ {
975
+ errorCode: 1159,
976
+ errorKey: "twoFaTooManyAttempts",
977
+ httpCode: 429,
978
+ description: "Too many two factor authentication attempts.",
979
+ },
980
+ {
981
+ errorCode: 1160,
982
+ errorKey: "twoFaInvalidPurpose",
983
+ httpCode: 422,
984
+ description: "Two factor authentication purpose is missing or invalid.",
985
+ },
986
+ {
987
+ errorCode: 1161,
988
+ errorKey: "twoFaPendingSecretMissing",
989
+ httpCode: 422,
990
+ description: "Two factor authentication pending secret is missing.",
991
+ },
992
+ {
993
+ errorCode: 1162,
994
+ errorKey: "twoFaSecretMissing",
995
+ httpCode: 422,
996
+ description: "Two factor authentication secret is missing.",
997
+ },
938
998
  ];
939
999
 
940
1000
  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.63",
3
+ "version": "1.1.66",
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",