b2b-platform-utils 1.1.35 → 1.1.37
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.
- package/errorsMap.js +66 -0
- package/package.json +1 -1
package/errorsMap.js
CHANGED
|
@@ -407,6 +407,72 @@ const STATIC_ERRORS = [
|
|
|
407
407
|
httpCode: 500,
|
|
408
408
|
description: "Payment webhook processing failed due to internal error.",
|
|
409
409
|
},
|
|
410
|
+
{
|
|
411
|
+
errorCode: 1066,
|
|
412
|
+
errorKey: "tournamentInvalidArgument",
|
|
413
|
+
httpCode: 422,
|
|
414
|
+
description: "Tournament request argument is missing or invalid",
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
errorCode: 1067,
|
|
418
|
+
errorKey: "tournamentAlreadyFinished",
|
|
419
|
+
httpCode: 422,
|
|
420
|
+
description: "Tournament is already finished",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
errorCode: 1068,
|
|
424
|
+
errorKey: "tournamentNotActive",
|
|
425
|
+
httpCode: 422,
|
|
426
|
+
description: "Tournament is not active for this operation",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
errorCode: 1069,
|
|
430
|
+
errorKey: "tournamentUserAlreadySubscribed",
|
|
431
|
+
httpCode: 422,
|
|
432
|
+
description: "User is already subscribed to tournament",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
errorCode: 1070,
|
|
436
|
+
errorKey: "tournamentMaxMembersReached",
|
|
437
|
+
httpCode: 422,
|
|
438
|
+
description: "Tournament maximum members limit reached",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
errorCode: 1071,
|
|
442
|
+
errorKey: "registrationBlockedBySeon",
|
|
443
|
+
httpCode: 403,
|
|
444
|
+
description: "Registration is not allowed.",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
errorCode: 1072,
|
|
448
|
+
errorKey: "paymentCompletedInvalidUser",
|
|
449
|
+
httpCode: 422,
|
|
450
|
+
description: "User reference is missing or invalid for payment.completed.",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
errorCode: 1073,
|
|
454
|
+
errorKey: "paymentCompletedMissingIdempotencyKey",
|
|
455
|
+
httpCode: 422,
|
|
456
|
+
description: "Idempotency key is missing for payment.completed.",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
errorCode: 1074,
|
|
460
|
+
errorKey: "paymentCompletedInvalidCurrency",
|
|
461
|
+
httpCode: 422,
|
|
462
|
+
description: "Currency is missing or invalid for payment.completed.",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
errorCode: 1075,
|
|
466
|
+
errorKey: "paymentCompletedInvalidAmount",
|
|
467
|
+
httpCode: 422,
|
|
468
|
+
description: "Amount is missing or invalid for payment.completed.",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
errorCode: 1076,
|
|
472
|
+
errorKey: "paymentCompletedInvalidCurrencyScale",
|
|
473
|
+
httpCode: 422,
|
|
474
|
+
description: "Currency scale is missing or invalid for payment.completed.",
|
|
475
|
+
},
|
|
410
476
|
];
|
|
411
477
|
|
|
412
478
|
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.
|
|
3
|
+
"version": "1.1.37",
|
|
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",
|