b2b-platform-utils 1.1.87 → 1.1.90

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 +244 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1404,6 +1404,250 @@ const STATIC_ERRORS = [
1404
1404
  httpCode: 422,
1405
1405
  description: "Deposit cannot be reconciled in its current state.",
1406
1406
  },
1407
+ {
1408
+ errorCode: 1231,
1409
+ errorKey: "kycProfileDataIncomplete",
1410
+ httpCode: 422,
1411
+ description:
1412
+ "Required manager-configured Profile Data verification fields are incomplete.",
1413
+ },
1414
+ {
1415
+ errorCode: 1232,
1416
+ errorKey: "kycProfileDataApprovalNotAllowed",
1417
+ httpCode: 422,
1418
+ description:
1419
+ "Profile Data verification approval is not allowed for the current KYC policy or domain state.",
1420
+ },
1421
+ {
1422
+ errorCode: 1233,
1423
+ errorKey: "unsupportedVerificationCapability",
1424
+ httpCode: 422,
1425
+ description:
1426
+ "The requested verification capability is not supported by the current operation or runtime.",
1427
+ },
1428
+ {
1429
+ errorCode: 1234,
1430
+ errorKey: "responsibleGamingPolicyNotFound",
1431
+ httpCode: 404,
1432
+ description: "Responsible Gaming policy was not found.",
1433
+ },
1434
+ {
1435
+ errorCode: 1235,
1436
+ errorKey: "responsibleGamingInvalidPolicyType",
1437
+ httpCode: 422,
1438
+ description: "Responsible Gaming policy type is invalid.",
1439
+ },
1440
+ {
1441
+ errorCode: 1236,
1442
+ errorKey: "responsibleGamingInvalidRecurringPeriod",
1443
+ httpCode: 422,
1444
+ description: "Responsible Gaming recurring period is invalid.",
1445
+ },
1446
+ {
1447
+ errorCode: 1237,
1448
+ errorKey: "responsibleGamingInvalidCoolingOffDuration",
1449
+ httpCode: 422,
1450
+ description: "Responsible Gaming cooling-off duration is invalid.",
1451
+ },
1452
+ {
1453
+ errorCode: 1238,
1454
+ errorKey: "responsibleGamingInvalidSelfExclusionDuration",
1455
+ httpCode: 422,
1456
+ description: "Responsible Gaming self-exclusion duration is invalid.",
1457
+ },
1458
+ {
1459
+ errorCode: 1239,
1460
+ errorKey: "responsibleGamingInvalidAmountMinor",
1461
+ httpCode: 422,
1462
+ description: "Responsible Gaming limit amount is invalid.",
1463
+ },
1464
+ {
1465
+ errorCode: 1240,
1466
+ errorKey: "responsibleGamingInvalidCurrency",
1467
+ httpCode: 422,
1468
+ description: "Responsible Gaming currency is invalid.",
1469
+ },
1470
+ {
1471
+ errorCode: 1241,
1472
+ errorKey: "responsibleGamingInvalidCurrencyScale",
1473
+ httpCode: 422,
1474
+ description: "Responsible Gaming currency scale is invalid.",
1475
+ },
1476
+ {
1477
+ errorCode: 1242,
1478
+ errorKey: "responsibleGamingInvalidTimeLimitSeconds",
1479
+ httpCode: 422,
1480
+ description: "Responsible Gaming time limit is invalid.",
1481
+ },
1482
+ {
1483
+ errorCode: 1243,
1484
+ errorKey: "responsibleGamingInvalidEffectiveAt",
1485
+ httpCode: 422,
1486
+ description: "Responsible Gaming effective date is invalid.",
1487
+ },
1488
+ {
1489
+ errorCode: 1244,
1490
+ errorKey: "responsibleGamingInvalidOperation",
1491
+ httpCode: 422,
1492
+ description: "Responsible Gaming operation is invalid.",
1493
+ },
1494
+ {
1495
+ errorCode: 1245,
1496
+ errorKey: "responsibleGamingInvalidOperationKey",
1497
+ httpCode: 422,
1498
+ description: "Responsible Gaming operation key is invalid.",
1499
+ },
1500
+ {
1501
+ errorCode: 1246,
1502
+ errorKey: "responsibleGamingInvalidSession",
1503
+ httpCode: 422,
1504
+ description: "Responsible Gaming session is invalid.",
1505
+ },
1506
+ {
1507
+ errorCode: 1247,
1508
+ errorKey: "responsibleGamingInvalidWindow",
1509
+ httpCode: 422,
1510
+ description: "Responsible Gaming time window is invalid.",
1511
+ },
1512
+ {
1513
+ errorCode: 1248,
1514
+ errorKey: "responsibleGamingPolicyScopeConflict",
1515
+ httpCode: 409,
1516
+ description:
1517
+ "Responsible Gaming policy scope conflicts with an existing policy.",
1518
+ },
1519
+ {
1520
+ errorCode: 1249,
1521
+ errorKey: "responsibleGamingPolicyVersionConflict",
1522
+ httpCode: 409,
1523
+ description:
1524
+ "Responsible Gaming policy version conflicts with the current policy.",
1525
+ },
1526
+ {
1527
+ errorCode: 1250,
1528
+ errorKey: "responsibleGamingPendingChangeExists",
1529
+ httpCode: 409,
1530
+ description: "A pending Responsible Gaming policy change already exists.",
1531
+ },
1532
+ {
1533
+ errorCode: 1251,
1534
+ errorKey: "responsibleGamingPolicyChangeDelayed",
1535
+ httpCode: 409,
1536
+ description:
1537
+ "This Responsible Gaming policy change cannot take effect before the mandatory delay period.",
1538
+ },
1539
+ {
1540
+ errorCode: 1252,
1541
+ errorKey: "responsibleGamingPolicyChangeNotAllowed",
1542
+ httpCode: 409,
1543
+ description: "This Responsible Gaming policy change is not allowed.",
1544
+ },
1545
+ {
1546
+ errorCode: 1253,
1547
+ errorKey: "responsibleGamingCoolingOffCancellationNotAllowed",
1548
+ httpCode: 409,
1549
+ description: "Responsible Gaming cooling-off cannot be cancelled.",
1550
+ },
1551
+ {
1552
+ errorCode: 1254,
1553
+ errorKey: "responsibleGamingSelfExclusionCancellationNotAllowed",
1554
+ httpCode: 409,
1555
+ description: "Responsible Gaming self-exclusion cannot be cancelled.",
1556
+ },
1557
+ {
1558
+ errorCode: 1255,
1559
+ errorKey: "responsibleGamingSelfExclusionReactivationRequired",
1560
+ httpCode: 403,
1561
+ description:
1562
+ "Account reactivation is required after Responsible Gaming self-exclusion.",
1563
+ },
1564
+ {
1565
+ errorCode: 1256,
1566
+ errorKey: "responsibleGamingDepositLimitExceeded",
1567
+ httpCode: 409,
1568
+ description:
1569
+ "Deposit request exceeds remaining Deposit Limit allowance.",
1570
+ },
1571
+ {
1572
+ errorCode: 1257,
1573
+ errorKey: "responsibleGamingLossLimitExceeded",
1574
+ httpCode: 409,
1575
+ description:
1576
+ "New stake exceeds remaining Loss Limit allowance including current open exposure.",
1577
+ },
1578
+ {
1579
+ errorCode: 1258,
1580
+ errorKey: "responsibleGamingTimeLimitExceeded",
1581
+ httpCode: 409,
1582
+ description:
1583
+ "Gameplay Time Limit has been exhausted for the current recurring window.",
1584
+ },
1585
+ {
1586
+ errorCode: 1259,
1587
+ errorKey: "responsibleGamingCoolingOffActive",
1588
+ httpCode: 403,
1589
+ description:
1590
+ "Cooling-off currently blocks the requested restricted operation.",
1591
+ },
1592
+ {
1593
+ errorCode: 1260,
1594
+ errorKey: "responsibleGamingSelfExclusionActive",
1595
+ httpCode: 403,
1596
+ description:
1597
+ "Self-exclusion currently blocks account access or the requested operation.",
1598
+ },
1599
+ {
1600
+ errorCode: 1261,
1601
+ errorKey: "responsibleGamingDecisionUnavailable",
1602
+ httpCode: 503,
1603
+ description: "Responsible Gaming decision is temporarily unavailable.",
1604
+ },
1605
+ {
1606
+ errorCode: 1262,
1607
+ errorKey: "responsibleGamingRuntimeStateUnavailable",
1608
+ httpCode: 503,
1609
+ description: "Responsible Gaming runtime state is temporarily unavailable.",
1610
+ },
1611
+ {
1612
+ errorCode: 1263,
1613
+ errorKey: "responsibleGamingDepositReservationNotFound",
1614
+ httpCode: 404,
1615
+ description: "Responsible Gaming deposit reservation was not found.",
1616
+ },
1617
+ {
1618
+ errorCode: 1264,
1619
+ errorKey: "responsibleGamingDepositReservationConflict",
1620
+ httpCode: 409,
1621
+ description:
1622
+ "Responsible Gaming deposit reservation conflicts with an existing reservation.",
1623
+ },
1624
+ {
1625
+ errorCode: 1265,
1626
+ errorKey: "responsibleGamingDepositReservationInvalidState",
1627
+ httpCode: 409,
1628
+ description:
1629
+ "Responsible Gaming deposit reservation is in an invalid state for this operation.",
1630
+ },
1631
+ {
1632
+ errorCode: 1266,
1633
+ errorKey: "responsibleGamingLossExposureNotFound",
1634
+ httpCode: 404,
1635
+ description: "Responsible Gaming loss exposure was not found.",
1636
+ },
1637
+ {
1638
+ errorCode: 1267,
1639
+ errorKey: "responsibleGamingLossExposureConflict",
1640
+ httpCode: 409,
1641
+ description:
1642
+ "Responsible Gaming loss exposure conflicts with an existing record.",
1643
+ },
1644
+ {
1645
+ errorCode: 1268,
1646
+ errorKey: "responsibleGamingLossExposureInvalidState",
1647
+ httpCode: 409,
1648
+ description:
1649
+ "Responsible Gaming loss exposure is in an invalid state for this operation.",
1650
+ },
1407
1651
  ];
1408
1652
 
1409
1653
  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.87",
3
+ "version": "1.1.90",
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",