@opexa/portal-sdk 0.59.135 → 0.59.136
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/README.md +17 -0
- package/dist/{chunk-N4FAQNKD.js → chunk-WR5RNSY2.js} +57 -2
- package/dist/chunk-WR5RNSY2.js.map +1 -0
- package/dist/index.cjs +78 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +55 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +2 -2
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +1 -1
- package/dist/{types-BGfb4anC.d.ts → types-CBAvGUz1.d.ts} +39 -1
- package/dist/{types-Bv7ZtPEZ.d.cts → types-P2H72HJ9.d.cts} +39 -1
- package/package.json +1 -1
- package/dist/chunk-N4FAQNKD.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1586,6 +1586,17 @@ var PROMO_FRAGMENT = gql`
|
|
|
1586
1586
|
depositBonusAmountPercentage
|
|
1587
1587
|
activationStartDateTime
|
|
1588
1588
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1589
|
+
turnoverRequirementContributionPercentageSettings {
|
|
1590
|
+
gameCategories {
|
|
1591
|
+
gameProvider
|
|
1592
|
+
gameType
|
|
1593
|
+
percentage
|
|
1594
|
+
}
|
|
1595
|
+
games {
|
|
1596
|
+
game
|
|
1597
|
+
percentage
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1589
1600
|
activationEndDateTime
|
|
1590
1601
|
dateTimeCreated
|
|
1591
1602
|
dateTimeLastUpdated
|
|
@@ -1621,6 +1632,17 @@ var SPOT_BONUS_FRAGMENT = gql`
|
|
|
1621
1632
|
turnoverRequirementType
|
|
1622
1633
|
minimumTicketOddFactorPerSportsGameProvider
|
|
1623
1634
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1635
|
+
turnoverRequirementContributionPercentageSettings {
|
|
1636
|
+
gameCategories {
|
|
1637
|
+
gameProvider
|
|
1638
|
+
gameType
|
|
1639
|
+
percentage
|
|
1640
|
+
}
|
|
1641
|
+
games {
|
|
1642
|
+
game
|
|
1643
|
+
percentage
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1624
1646
|
bonusAmount
|
|
1625
1647
|
enabledGameProviders
|
|
1626
1648
|
activationStartDateTime
|
|
@@ -1724,6 +1746,17 @@ var PROMOS_AND_CASHBACKS_QUERY = gql`
|
|
|
1724
1746
|
depositBonusAmountPercentage
|
|
1725
1747
|
activationStartDateTime
|
|
1726
1748
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1749
|
+
turnoverRequirementContributionPercentageSettings {
|
|
1750
|
+
gameCategories {
|
|
1751
|
+
gameProvider
|
|
1752
|
+
gameType
|
|
1753
|
+
percentage
|
|
1754
|
+
}
|
|
1755
|
+
games {
|
|
1756
|
+
game
|
|
1757
|
+
percentage
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1727
1760
|
activationEndDateTime
|
|
1728
1761
|
dateTimeCreated
|
|
1729
1762
|
dateTimeLastUpdated
|
|
@@ -1756,6 +1789,17 @@ var BONUS_QUERY = gql`
|
|
|
1756
1789
|
balance
|
|
1757
1790
|
turnoverRequirement
|
|
1758
1791
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1792
|
+
turnoverRequirementContributionPercentageSettings {
|
|
1793
|
+
gameCategories {
|
|
1794
|
+
gameProvider
|
|
1795
|
+
gameType
|
|
1796
|
+
percentage
|
|
1797
|
+
}
|
|
1798
|
+
games {
|
|
1799
|
+
game
|
|
1800
|
+
percentage
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1759
1803
|
currentTurnoverRequirementContribution
|
|
1760
1804
|
currentTurnoverRequirementContributionPercentage
|
|
1761
1805
|
expiration
|
|
@@ -1792,6 +1836,17 @@ var BONUSES_QUERY = gql`
|
|
|
1792
1836
|
currentTurnoverRequirementContribution
|
|
1793
1837
|
currentTurnoverRequirementContributionPercentage
|
|
1794
1838
|
turnoverRequirementContributionPercentagePerGameProvider
|
|
1839
|
+
turnoverRequirementContributionPercentageSettings {
|
|
1840
|
+
gameCategories {
|
|
1841
|
+
gameProvider
|
|
1842
|
+
gameType
|
|
1843
|
+
percentage
|
|
1844
|
+
}
|
|
1845
|
+
games {
|
|
1846
|
+
game
|
|
1847
|
+
percentage
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1795
1850
|
enabledGameProviders
|
|
1796
1851
|
expiration
|
|
1797
1852
|
dateTimeCreated
|
|
@@ -10405,6 +10460,20 @@ var Transformer = class {
|
|
|
10405
10460
|
};
|
|
10406
10461
|
return compact(o);
|
|
10407
10462
|
}
|
|
10463
|
+
promoTurnoverRequirementContributionPercentageSettings(data) {
|
|
10464
|
+
if (!data) return void 0;
|
|
10465
|
+
return {
|
|
10466
|
+
gameCategories: (data.gameCategories ?? []).map((settings) => ({
|
|
10467
|
+
gameProvider: settings.gameProvider,
|
|
10468
|
+
gameType: settings.gameType,
|
|
10469
|
+
percentage: parseDecimal(settings.percentage, 0)
|
|
10470
|
+
})),
|
|
10471
|
+
games: (data.games ?? []).map((settings) => ({
|
|
10472
|
+
game: settings.game,
|
|
10473
|
+
percentage: parseDecimal(settings.percentage, 0)
|
|
10474
|
+
}))
|
|
10475
|
+
};
|
|
10476
|
+
}
|
|
10408
10477
|
promo(data) {
|
|
10409
10478
|
return {
|
|
10410
10479
|
id: data.id,
|
|
@@ -10420,6 +10489,9 @@ var Transformer = class {
|
|
|
10420
10489
|
depositBonusAmountPercentage: parseDecimal(
|
|
10421
10490
|
data.depositBonusAmountPercentage
|
|
10422
10491
|
),
|
|
10492
|
+
turnoverRequirementContributionPercentageSettings: this.promoTurnoverRequirementContributionPercentageSettings(
|
|
10493
|
+
data.turnoverRequirementContributionPercentageSettings
|
|
10494
|
+
),
|
|
10423
10495
|
turnoverRequirementContributionPercentagePerGameProvider: data.turnoverRequirementContributionPercentagePerGameProvider,
|
|
10424
10496
|
activationEndDateTime: new Date(data.activationEndDateTime),
|
|
10425
10497
|
activationStartDateTime: new Date(data.activationStartDateTime),
|
|
@@ -10478,6 +10550,9 @@ var Transformer = class {
|
|
|
10478
10550
|
data.currentTurnoverRequirementContributionPercentage,
|
|
10479
10551
|
0
|
|
10480
10552
|
),
|
|
10553
|
+
turnoverRequirementContributionPercentageSettings: this.promoTurnoverRequirementContributionPercentageSettings(
|
|
10554
|
+
data.turnoverRequirementContributionPercentageSettings
|
|
10555
|
+
),
|
|
10481
10556
|
// @ts-expect-error ""
|
|
10482
10557
|
turnoverRequirementContributionPercentagePerGameProvider: data.turnoverRequirementContributionPercentagePerGameProvider,
|
|
10483
10558
|
enabledGameProviders: data.enabledGameProviders,
|
|
@@ -10703,6 +10778,9 @@ var Transformer = class {
|
|
|
10703
10778
|
dateTimeClosed: data.dateTimeClosed ? new Date(data.dateTimeClosed) : void 0,
|
|
10704
10779
|
dateTimeLastUpdated: new Date(data.dateTimeLastUpdated),
|
|
10705
10780
|
dateTimeCreated: new Date(data.dateTimeCreated),
|
|
10781
|
+
turnoverRequirementContributionPercentageSettings: this.promoTurnoverRequirementContributionPercentageSettings(
|
|
10782
|
+
data.turnoverRequirementContributionPercentageSettings
|
|
10783
|
+
),
|
|
10706
10784
|
turnoverRequirementContributionPercentagePerGameProvider: Object.entries(
|
|
10707
10785
|
data.turnoverRequirementContributionPercentagePerGameProvider
|
|
10708
10786
|
).reduce((o, [k, v]) => {
|