b2b-platform-utils 1.1.47 → 1.1.50

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 +114 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -724,6 +724,120 @@ const STATIC_ERRORS = [
724
724
  httpCode: 422,
725
725
  description: "Risk permission matrix denied the requested restriction.",
726
726
  },
727
+ {
728
+ errorCode: 1118,
729
+ errorKey: "gameLaunchUnavailable",
730
+ httpCode: 503,
731
+ description: "Game launch is temporarily unavailable.",
732
+ },
733
+ {
734
+ errorCode: 1119,
735
+ errorKey: "kycConfigMissing",
736
+ httpCode: 422,
737
+ description: "KYC configuration is missing or invalid.",
738
+ },
739
+ {
740
+ errorCode: 1120,
741
+ errorKey: "kycDisabled",
742
+ httpCode: 422,
743
+ description: "KYC is disabled for the current environment.",
744
+ },
745
+ {
746
+ errorCode: 1121,
747
+ errorKey: "invalidKycProvider",
748
+ httpCode: 422,
749
+ description: "KYC provider is missing or invalid.",
750
+ },
751
+ {
752
+ errorCode: 1122,
753
+ errorKey: "unsupportedKycProvider",
754
+ httpCode: 422,
755
+ description: "KYC provider is not supported.",
756
+ },
757
+ {
758
+ errorCode: 1123,
759
+ errorKey: "kycProviderMethodNotImplemented",
760
+ httpCode: 501,
761
+ description: "KYC provider method is not implemented.",
762
+ },
763
+ {
764
+ errorCode: 1124,
765
+ errorKey: "invalidKycWebhookPayload",
766
+ httpCode: 422,
767
+ description: "KYC webhook payload is invalid or cannot be parsed.",
768
+ },
769
+ {
770
+ errorCode: 1125,
771
+ errorKey: "kycWebhookBadSignature",
772
+ httpCode: 401,
773
+ description: "KYC webhook signature is invalid.",
774
+ },
775
+ {
776
+ errorCode: 1126,
777
+ errorKey: "kycWebhookProcessingFailed",
778
+ httpCode: 500,
779
+ description: "KYC webhook processing failed due to internal error.",
780
+ },
781
+ {
782
+ errorCode: 1127,
783
+ errorKey: "kycProviderRequestFailed",
784
+ httpCode: 502,
785
+ description: "KYC provider request failed.",
786
+ },
787
+ {
788
+ errorCode: 1128,
789
+ errorKey: "kycProviderUnavailable",
790
+ httpCode: 503,
791
+ description: "KYC provider is temporarily unavailable.",
792
+ },
793
+ {
794
+ errorCode: 1129,
795
+ errorKey: "kycProviderTimeout",
796
+ httpCode: 504,
797
+ description: "KYC provider request timed out.",
798
+ },
799
+ {
800
+ errorCode: 1130,
801
+ errorKey: "kycVerificationSessionNotFound",
802
+ httpCode: 404,
803
+ description: "KYC verification session was not found.",
804
+ },
805
+ {
806
+ errorCode: 1131,
807
+ errorKey: "kycVerificationSessionExpired",
808
+ httpCode: 422,
809
+ description: "KYC verification session is expired.",
810
+ },
811
+ {
812
+ errorCode: 1132,
813
+ errorKey: "kycWebhookDuplicateEvent",
814
+ httpCode: 422,
815
+ description: "KYC webhook event was already processed.",
816
+ },
817
+ {
818
+ errorCode: 1133,
819
+ errorKey: "kycWebhookOutdatedEvent",
820
+ httpCode: 422,
821
+ description: "KYC webhook event is older than the current KYC state.",
822
+ },
823
+ {
824
+ errorCode: 1134,
825
+ errorKey: "kycProviderApplicantNotFound",
826
+ httpCode: 404,
827
+ description: "KYC provider applicant was not found.",
828
+ },
829
+ {
830
+ errorCode: 1135,
831
+ errorKey: "invalidKycProviderResponse",
832
+ httpCode: 502,
833
+ description: "KYC provider response is invalid or unsupported.",
834
+ },
835
+ {
836
+ errorCode: 1136,
837
+ errorKey: "kycStatusTransitionNotAllowed",
838
+ httpCode: 422,
839
+ description: "KYC status transition is not allowed.",
840
+ },
727
841
  ];
728
842
 
729
843
  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.47",
3
+ "version": "1.1.50",
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",