@getenginex/sdk-igaming 0.10.0 → 0.11.0
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/CHANGELOG.md +43 -0
- package/README.md +4 -3
- package/dist/chunk-LMBQDSFV.js +620 -0
- package/dist/chunk-LMBQDSFV.js.map +1 -0
- package/dist/index.cjs +548 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +747 -1
- package/dist/index.d.ts +747 -1
- package/dist/index.js +285 -366
- package/dist/index.js.map +1 -1
- package/dist/query/index.cjs +44 -5
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +17 -2
- package/dist/query/index.d.ts +17 -2
- package/dist/query/index.js +32 -6
- package/dist/query/index.js.map +1 -1
- package/dist/testing/index.cjs +450 -12
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +42 -4
- package/dist/testing/index.d.ts +42 -4
- package/dist/testing/index.js +450 -12
- package/dist/testing/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1607,6 +1607,750 @@ interface CasinoApi {
|
|
|
1607
1607
|
listJackpotGames(input: ListJackpotGamesInput, options?: CallOptions): Promise<JackpotGamesPage>;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
+
/**
|
|
1611
|
+
* Text per locale, as the operator wrote it (`{ "pt-BR": "...", "en": "..." }`). `{}` when the gateway sends none.
|
|
1612
|
+
* @category Club
|
|
1613
|
+
*/
|
|
1614
|
+
type ClubLocalized = Record<string, string>;
|
|
1615
|
+
/**
|
|
1616
|
+
* Money of the club, in minor units of `currency`.
|
|
1617
|
+
* @category Club
|
|
1618
|
+
*/
|
|
1619
|
+
interface ClubMoney {
|
|
1620
|
+
/** Value in minor units of `currency` (the gateway sends it as int64 text; the SDK converts). Never negative. */
|
|
1621
|
+
amount: number;
|
|
1622
|
+
/** ISO 4217 currency code, e.g. `BRL`. */
|
|
1623
|
+
currency: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* Decimal places of `amount` as the gateway resolved them (the currency's ISO exponent; for a free-spin
|
|
1626
|
+
* denomination, the provider's scale); `null` when the gateway omits them.
|
|
1627
|
+
*/
|
|
1628
|
+
decimalPlaces: number | null;
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
* Kind of a club reward, in lowercase. A kind the SDK does not know yet arrives as the gateway sent it, in
|
|
1632
|
+
* lowercase: handle the default case.
|
|
1633
|
+
* @category Club
|
|
1634
|
+
*/
|
|
1635
|
+
type ClubRewardKind = 'coins' | 'digital' | 'cashback' | 'bonus_balance' | 'free_spins' | 'tournament_ticket' | 'real_balance' | 'manual' | 'unspecified' | (string & {});
|
|
1636
|
+
/**
|
|
1637
|
+
* Coin award published in place of a reward in a given situation (e.g. the player already holds the ticket).
|
|
1638
|
+
* @category Club
|
|
1639
|
+
*/
|
|
1640
|
+
interface ClubAlternateReward {
|
|
1641
|
+
/** Kind of the alternate, `coins` today. */
|
|
1642
|
+
kind: ClubRewardKind;
|
|
1643
|
+
/** Label per locale. */
|
|
1644
|
+
label: ClubLocalized;
|
|
1645
|
+
/** Quantity (integer). */
|
|
1646
|
+
quantity: number;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* Cashback terms of a `cashback` reward.
|
|
1650
|
+
* @category Club
|
|
1651
|
+
*/
|
|
1652
|
+
interface ClubCashbackTerms {
|
|
1653
|
+
/** Percentage in basis points (`1000` = 10%). */
|
|
1654
|
+
percentageBps: number;
|
|
1655
|
+
/** `edition`, `daily`, `weekly` or another period; `null` when absent. */
|
|
1656
|
+
period: 'edition' | 'daily' | 'weekly' | (string & {}) | null;
|
|
1657
|
+
/** `net_loss` or another basis; `null` when absent. */
|
|
1658
|
+
basis: 'net_loss' | (string & {}) | null;
|
|
1659
|
+
/** Where the cashback is credited: `real`, `restricted` or another; `null` when absent. */
|
|
1660
|
+
destination: 'real' | 'restricted' | (string & {}) | null;
|
|
1661
|
+
/** Start of the frozen basis window (ISO 8601); `null` when absent. */
|
|
1662
|
+
startsAt: string | null;
|
|
1663
|
+
/** End of the frozen basis window (ISO 8601); `null` when absent. */
|
|
1664
|
+
endsAt: string | null;
|
|
1665
|
+
/** Catalogue game ids eligible for the basis. */
|
|
1666
|
+
gameIds: string[];
|
|
1667
|
+
/** Coin award when the basis is zero; `null` when none. */
|
|
1668
|
+
zeroBasisAlternate: ClubAlternateReward | null;
|
|
1669
|
+
/** Coin award when the basis was already rewarded; `null` when none. */
|
|
1670
|
+
priorAwardAlternate: ClubAlternateReward | null;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* A club reward: of a wheel slice, a mission chest, a store item or a tournament prize.
|
|
1674
|
+
* @category Club
|
|
1675
|
+
*/
|
|
1676
|
+
interface ClubReward {
|
|
1677
|
+
/** Reward id (`''` when the gateway sends none, e.g. in a projected tournament prize). */
|
|
1678
|
+
id: string;
|
|
1679
|
+
/** Label per locale. */
|
|
1680
|
+
label: ClubLocalized;
|
|
1681
|
+
/** Kind of the reward (see {@link ClubRewardKind}). */
|
|
1682
|
+
kind: ClubRewardKind;
|
|
1683
|
+
/** Quantity (integer: coins, spins, items). */
|
|
1684
|
+
quantity: number;
|
|
1685
|
+
/** Money of the reward; `null` when it has none. */
|
|
1686
|
+
money: ClubMoney | null;
|
|
1687
|
+
/** Free-spin campaign: spins and the catalogue game; `null` when not a campaign. */
|
|
1688
|
+
campaign: {
|
|
1689
|
+
spins: number;
|
|
1690
|
+
gameId: string | null;
|
|
1691
|
+
} | null;
|
|
1692
|
+
/** Cashback terms; `null` when not a cashback. */
|
|
1693
|
+
cashback: ClubCashbackTerms | null;
|
|
1694
|
+
/** Manual delivery (`physical` or `experience`) with the instructions; `null` when not manual. */
|
|
1695
|
+
manual: {
|
|
1696
|
+
deliveryType: 'physical' | 'experience' | (string & {}) | null;
|
|
1697
|
+
instructions: ClubLocalized;
|
|
1698
|
+
} | null;
|
|
1699
|
+
/** Validity in seconds after delivery (integer; `0` without one). */
|
|
1700
|
+
ttlSeconds: number;
|
|
1701
|
+
/** Tournament edition of a `tournament_ticket`; `null` otherwise. */
|
|
1702
|
+
editionId: string | null;
|
|
1703
|
+
/** Coin award when the player already holds the ticket or entry; `null` when none. */
|
|
1704
|
+
ticketOwnedAlternate: ClubAlternateReward | null;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Status of a receipt, in lowercase: `pending`, `delivered`, `failed`, `no_value` (a confirmed zero cashback) or a
|
|
1708
|
+
* status the SDK does not know yet.
|
|
1709
|
+
* @category Club
|
|
1710
|
+
*/
|
|
1711
|
+
type ClubReceiptStatus = 'pending' | 'delivered' | 'failed' | 'no_value' | 'unspecified' | (string & {});
|
|
1712
|
+
/**
|
|
1713
|
+
* Receipt of a play, a redemption, a mission chest or a tournament award.
|
|
1714
|
+
* @category Club
|
|
1715
|
+
*/
|
|
1716
|
+
interface ClubReceipt {
|
|
1717
|
+
/** Receipt id. */
|
|
1718
|
+
id: string;
|
|
1719
|
+
/** Status (see {@link ClubReceiptStatus}). */
|
|
1720
|
+
status: ClubReceiptStatus;
|
|
1721
|
+
/** What produced it, in lowercase: `activity` (a wheel, scratch card or gift), `chest` (a mission chest), `store` or `tournament`. */
|
|
1722
|
+
sourceKind: 'activity' | 'chest' | 'store' | 'tournament' | 'unspecified' | (string & {});
|
|
1723
|
+
/** Id of the source (activity, mission right, item, edition); `null` when absent. */
|
|
1724
|
+
sourceId: string | null;
|
|
1725
|
+
/** Wheel slice that was drawn; `null` when not a draw. */
|
|
1726
|
+
sliceId: string | null;
|
|
1727
|
+
/** The reward; `null` when absent. */
|
|
1728
|
+
reward: ClubReward | null;
|
|
1729
|
+
/** Money actually settled; `null` when absent. */
|
|
1730
|
+
settlement: ClubMoney | null;
|
|
1731
|
+
/** Coins spent (integer; `0` when free). */
|
|
1732
|
+
costCoins: number;
|
|
1733
|
+
/** When it was accepted (ISO 8601); `null` when absent. */
|
|
1734
|
+
acceptedAt: string | null;
|
|
1735
|
+
/** When the delivery was confirmed (ISO 8601); `null` while not delivered. */
|
|
1736
|
+
deliveredAt: string | null;
|
|
1737
|
+
/** When the reward expires (ISO 8601); `null` without expiry. */
|
|
1738
|
+
expiresAt: string | null;
|
|
1739
|
+
/** Frozen final rank of a tournament award; `null` otherwise. */
|
|
1740
|
+
tournamentRank: number | null;
|
|
1741
|
+
/** Whether a tournament ticket was consumed. */
|
|
1742
|
+
ticketConsumed: boolean;
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* A level of the program.
|
|
1746
|
+
* @category Club
|
|
1747
|
+
*/
|
|
1748
|
+
interface ClubLevel {
|
|
1749
|
+
/** Level id. */
|
|
1750
|
+
id: string;
|
|
1751
|
+
/** Name per locale. */
|
|
1752
|
+
name: ClubLocalized;
|
|
1753
|
+
/** XP needed to reach it (integer). */
|
|
1754
|
+
minXp: number;
|
|
1755
|
+
/** Benefit per locale. */
|
|
1756
|
+
benefit: ClubLocalized;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* The club program as the player sees it (part of {@link ClubOverview}; also the result of
|
|
1760
|
+
* {@link ClubApi.setMembership}).
|
|
1761
|
+
* @category Club
|
|
1762
|
+
*/
|
|
1763
|
+
interface ClubProgram {
|
|
1764
|
+
/** Whether the program is active for the operator. */
|
|
1765
|
+
enabled: boolean;
|
|
1766
|
+
/** Whether the player joined. */
|
|
1767
|
+
joined: boolean;
|
|
1768
|
+
/** Whether joining is required before playing. */
|
|
1769
|
+
membershipRequired: boolean;
|
|
1770
|
+
/** Whether the player can join now. */
|
|
1771
|
+
canJoin: boolean;
|
|
1772
|
+
/** Whether the history can be read (also when the program is paused). */
|
|
1773
|
+
historyAvailable: boolean;
|
|
1774
|
+
/** Published version: pass it back as `versionId` in every write; `null` without a published version. */
|
|
1775
|
+
versionId: string | null;
|
|
1776
|
+
/** Locale the gateway resolved from `Accept-Language` (the client's locale); `null` when absent. */
|
|
1777
|
+
locale: string | null;
|
|
1778
|
+
/** Key of the membership terms shown for that locale: pass it as `termsLocale` when joining. */
|
|
1779
|
+
termsLocale: string | null;
|
|
1780
|
+
/** Program time zone (IANA); `null` when absent. */
|
|
1781
|
+
timeZone: string | null;
|
|
1782
|
+
/** The player's wallet currency the program uses; `null` while not confirmed. */
|
|
1783
|
+
currency: string | null;
|
|
1784
|
+
/** Name per locale. */
|
|
1785
|
+
name: ClubLocalized;
|
|
1786
|
+
/** Terms per locale. */
|
|
1787
|
+
terms: ClubLocalized;
|
|
1788
|
+
/** Name of the coin per locale. */
|
|
1789
|
+
coinName: ClubLocalized;
|
|
1790
|
+
/** Cover image; `null` when absent. */
|
|
1791
|
+
coverUrl: string | null;
|
|
1792
|
+
/** Levels, in the order the operator published them (a repeated id keeps the first). */
|
|
1793
|
+
levels: ClubLevel[];
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* Kind of an activity: `wheel`, `scratch`, `gift` or a kind the SDK does not know yet.
|
|
1797
|
+
* @category Club
|
|
1798
|
+
*/
|
|
1799
|
+
type ClubActivityKind = 'wheel' | 'scratch' | 'gift' | 'unspecified' | (string & {});
|
|
1800
|
+
/**
|
|
1801
|
+
* An activity (wheel, scratch card, gift) and the player's state in it.
|
|
1802
|
+
* @category Club
|
|
1803
|
+
*/
|
|
1804
|
+
interface ClubActivityState {
|
|
1805
|
+
/** The activity. */
|
|
1806
|
+
activity: {
|
|
1807
|
+
/** Activity id: pass it to {@link ClubApi.play}. */
|
|
1808
|
+
id: string;
|
|
1809
|
+
/** Kind (see {@link ClubActivityKind}). */
|
|
1810
|
+
kind: ClubActivityKind;
|
|
1811
|
+
/** Name per locale. */
|
|
1812
|
+
name: ClubLocalized;
|
|
1813
|
+
/** Terms per locale. */
|
|
1814
|
+
terms: ClubLocalized;
|
|
1815
|
+
/** Cover image; `null` when absent. */
|
|
1816
|
+
coverUrl: string | null;
|
|
1817
|
+
/** Wheel theme: `emerald`, `midnight`, `berry` or another; `null` when absent. */
|
|
1818
|
+
wheelTheme: 'emerald' | 'midnight' | 'berry' | (string & {}) | null;
|
|
1819
|
+
/** Label of the play button per locale. */
|
|
1820
|
+
playLabel: ClubLocalized;
|
|
1821
|
+
/** Slices, without the draw weights (a repeated id keeps the first). */
|
|
1822
|
+
slices: {
|
|
1823
|
+
id: string;
|
|
1824
|
+
reward: ClubReward | null;
|
|
1825
|
+
}[];
|
|
1826
|
+
};
|
|
1827
|
+
/** Whether the player can play now. */
|
|
1828
|
+
canPlay: boolean;
|
|
1829
|
+
/** Why the player cannot play (e.g. `daily_budget_exhausted`); `null` when absent. */
|
|
1830
|
+
unavailableReason: 'daily_budget_exhausted' | (string & {}) | null;
|
|
1831
|
+
/** The player's last receipt in this activity; `null` when none. */
|
|
1832
|
+
latestReceipt: ClubReceipt | null;
|
|
1833
|
+
/** When the player can play again (ISO 8601); `null` when absent. */
|
|
1834
|
+
availableAt: string | null;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* A mission and the player's progress and chest right.
|
|
1838
|
+
* @category Club
|
|
1839
|
+
*/
|
|
1840
|
+
interface ClubMissionState {
|
|
1841
|
+
/** The mission. */
|
|
1842
|
+
mission: {
|
|
1843
|
+
/** Mission id. */
|
|
1844
|
+
id: string;
|
|
1845
|
+
/** Title per locale. */
|
|
1846
|
+
title: ClubLocalized;
|
|
1847
|
+
/** Terms per locale. */
|
|
1848
|
+
terms: ClubLocalized;
|
|
1849
|
+
/** `daily`, `weekly`, `edition` or another, in lowercase. */
|
|
1850
|
+
recurrence: string;
|
|
1851
|
+
/** `fact`, `day`, `edition` or another, in lowercase. */
|
|
1852
|
+
countBy: string;
|
|
1853
|
+
/** Target (integer). */
|
|
1854
|
+
target: number;
|
|
1855
|
+
/** Cover image; `null` when absent. */
|
|
1856
|
+
coverUrl: string | null;
|
|
1857
|
+
};
|
|
1858
|
+
/** Edition (period) of the mission; `null` when absent. */
|
|
1859
|
+
editionId: string | null;
|
|
1860
|
+
/** Progress (integer). */
|
|
1861
|
+
progress: number;
|
|
1862
|
+
/** Chest right: pass it as `activityId` to {@link ClubApi.play} to open the chest; `null` without a right. */
|
|
1863
|
+
rightId: string | null;
|
|
1864
|
+
/**
|
|
1865
|
+
* Version of the right. The gateway sends it on the pending chests of a paused program; `null` when absent.
|
|
1866
|
+
*/
|
|
1867
|
+
rightVersionId: string | null;
|
|
1868
|
+
/** Chest options: pass the chosen `id` as `optionId` to {@link ClubApi.play}. */
|
|
1869
|
+
chestOptions: ClubReward[];
|
|
1870
|
+
/** Whether the chest can be opened now. */
|
|
1871
|
+
canClaim: boolean;
|
|
1872
|
+
/** Receipt of the opened chest; `null` while not opened. */
|
|
1873
|
+
receipt: ClubReceipt | null;
|
|
1874
|
+
/** End of the edition (ISO 8601); `null` when absent. */
|
|
1875
|
+
endsAt: string | null;
|
|
1876
|
+
/** Deadline to open the chest (ISO 8601); `null` when absent. */
|
|
1877
|
+
claimExpiresAt: string | null;
|
|
1878
|
+
/** Days already stamped (`YYYY-MM-DD`). */
|
|
1879
|
+
stampedDays: string[];
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* An item of the coin store and whether the player can redeem it.
|
|
1883
|
+
* @category Club
|
|
1884
|
+
*/
|
|
1885
|
+
interface ClubStoreItemState {
|
|
1886
|
+
/** The item. */
|
|
1887
|
+
item: {
|
|
1888
|
+
/** Item id: pass it as `rewardId` to {@link ClubApi.redeem}. */
|
|
1889
|
+
id: string;
|
|
1890
|
+
/** Label per locale. */
|
|
1891
|
+
label: ClubLocalized;
|
|
1892
|
+
/** Terms per locale. */
|
|
1893
|
+
terms: ClubLocalized;
|
|
1894
|
+
/** Price in coins (integer). */
|
|
1895
|
+
costCoins: number;
|
|
1896
|
+
/** The reward; `null` when absent. */
|
|
1897
|
+
reward: ClubReward | null;
|
|
1898
|
+
/** Cover image; `null` when absent. */
|
|
1899
|
+
coverUrl: string | null;
|
|
1900
|
+
};
|
|
1901
|
+
/** Whether the player can redeem it now. */
|
|
1902
|
+
canRedeem: boolean;
|
|
1903
|
+
/** Why it cannot be redeemed, in lowercase; `null` when absent. */
|
|
1904
|
+
unavailableReason: string | null;
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
* The player's balances, activities, missions and store.
|
|
1908
|
+
* @category Club
|
|
1909
|
+
*/
|
|
1910
|
+
interface ClubRewards {
|
|
1911
|
+
/** XP (integer). */
|
|
1912
|
+
xp: number;
|
|
1913
|
+
/** Coin balance (integer). */
|
|
1914
|
+
coins: number;
|
|
1915
|
+
/** Current level id; `null` when none. */
|
|
1916
|
+
levelId: string | null;
|
|
1917
|
+
/** Activities (a repeated activity id keeps the first). Empty while the program is paused. */
|
|
1918
|
+
activities: ClubActivityState[];
|
|
1919
|
+
/** Missions (a repeated mission right keeps the first). While paused, only the pending chests. */
|
|
1920
|
+
missions: ClubMissionState[];
|
|
1921
|
+
/** Store items (a repeated item id keeps the first). Empty while the program is paused. */
|
|
1922
|
+
storeItems: ClubStoreItemState[];
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* The club overview (`GET /casino/club`).
|
|
1926
|
+
* @category Club
|
|
1927
|
+
*/
|
|
1928
|
+
interface ClubOverview {
|
|
1929
|
+
/** The program. */
|
|
1930
|
+
program: ClubProgram;
|
|
1931
|
+
/** The player's state; `null` when the program is disabled and has no history. */
|
|
1932
|
+
rewards: ClubRewards | null;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* A balance movement of the history.
|
|
1936
|
+
* @category Club
|
|
1937
|
+
*/
|
|
1938
|
+
interface ClubMovement {
|
|
1939
|
+
/** Movement id. */
|
|
1940
|
+
id: string;
|
|
1941
|
+
/** `xp`, `coins` or another kind, in lowercase. */
|
|
1942
|
+
kind: string;
|
|
1943
|
+
/** Units moved (integer; negative for a debit). */
|
|
1944
|
+
units: number;
|
|
1945
|
+
/** Id of the source; `null` when absent. */
|
|
1946
|
+
sourceId: string | null;
|
|
1947
|
+
/** When it happened (ISO 8601); `null` when absent. */
|
|
1948
|
+
occurredAt: string | null;
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* A page of the club history.
|
|
1952
|
+
* @category Club
|
|
1953
|
+
*/
|
|
1954
|
+
interface ClubHistory {
|
|
1955
|
+
/** Receipts on this page (a repeated id keeps the first). */
|
|
1956
|
+
receipts: ClubReceipt[];
|
|
1957
|
+
/** Movements on this page (a repeated id keeps the first). */
|
|
1958
|
+
movements: ClubMovement[];
|
|
1959
|
+
/** Pass it as `cursor` for the next page; absent on the last one. */
|
|
1960
|
+
nextCursor?: string;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Status of a tournament, in lowercase.
|
|
1964
|
+
* @category Club
|
|
1965
|
+
*/
|
|
1966
|
+
type ClubTournamentStatus = 'draft' | 'upcoming' | 'live' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'unspecified' | (string & {});
|
|
1967
|
+
/**
|
|
1968
|
+
* The player's registration in a tournament.
|
|
1969
|
+
* @category Club
|
|
1970
|
+
*/
|
|
1971
|
+
interface ClubTournamentRegistration {
|
|
1972
|
+
/** Registration id. */
|
|
1973
|
+
id: string;
|
|
1974
|
+
/** Edition id. */
|
|
1975
|
+
editionId: string;
|
|
1976
|
+
/** Version registered; `null` when absent. */
|
|
1977
|
+
versionId: string | null;
|
|
1978
|
+
/** When the player registered (ISO 8601); `null` when absent. */
|
|
1979
|
+
joinedAt: string | null;
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* A prize range of a tournament.
|
|
1983
|
+
* @category Club
|
|
1984
|
+
*/
|
|
1985
|
+
interface ClubTournamentPrize {
|
|
1986
|
+
/** First rank of the range (integer). */
|
|
1987
|
+
fromRank: number;
|
|
1988
|
+
/** Last rank of the range (integer). */
|
|
1989
|
+
toRank: number;
|
|
1990
|
+
/** The reward; `null` when absent (e.g. an external listing). */
|
|
1991
|
+
reward: ClubReward | null;
|
|
1992
|
+
/** Announced amount (external listings); `null` when absent. Under `'warn'` a prize with an invalid one is dropped. */
|
|
1993
|
+
announcedAmount: ClubMoney | null;
|
|
1994
|
+
/** Prize terms per locale (`{}` when none). */
|
|
1995
|
+
terms: ClubLocalized;
|
|
1996
|
+
/** Frozen offer conditions of a `bonus_balance`/`free_spins` prize; `null` when none. */
|
|
1997
|
+
offerTerms: {
|
|
1998
|
+
/** Value of each free spin, in the provider's scale; `null` when unconfirmed. */
|
|
1999
|
+
spinDenomination: ClubMoney | null;
|
|
2000
|
+
/** Exact decimal wagering multiplier (`"0"` = no wagering); `null` when unconfirmed. */
|
|
2001
|
+
wageringMultiplier: string | null;
|
|
2002
|
+
/** Validity in seconds; `null` when unconfirmed. */
|
|
2003
|
+
validForSeconds: number | null;
|
|
2004
|
+
/** Expiry of the offer (ISO 8601); `null` when absent. */
|
|
2005
|
+
expiresAt: string | null;
|
|
2006
|
+
/** End of the grant window (ISO 8601); `null` when absent. */
|
|
2007
|
+
grantEndsAt: string | null;
|
|
2008
|
+
} | null;
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* A club tournament (own or external).
|
|
2012
|
+
* @category Club
|
|
2013
|
+
*/
|
|
2014
|
+
interface ClubTournament {
|
|
2015
|
+
/** Edition id (external ones start with `ext_`). */
|
|
2016
|
+
id: string;
|
|
2017
|
+
/** `own`, `external` or another source, in lowercase. */
|
|
2018
|
+
source: string;
|
|
2019
|
+
/** Published version: pass it as `versionId` to {@link ClubApi.registerForTournament}; `null` when absent. */
|
|
2020
|
+
versionId: string | null;
|
|
2021
|
+
/** Title per locale. */
|
|
2022
|
+
title: ClubLocalized;
|
|
2023
|
+
/** Terms per locale. */
|
|
2024
|
+
terms: ClubLocalized;
|
|
2025
|
+
/** Status (see {@link ClubTournamentStatus}). */
|
|
2026
|
+
status: ClubTournamentStatus;
|
|
2027
|
+
/** Start (ISO 8601); `null` when absent. */
|
|
2028
|
+
startsAt: string | null;
|
|
2029
|
+
/** End (ISO 8601); `null` when absent. */
|
|
2030
|
+
endsAt: string | null;
|
|
2031
|
+
/** Last update (ISO 8601); `null` when absent. */
|
|
2032
|
+
updatedAt: string | null;
|
|
2033
|
+
/** Scoring rule, in lowercase; `null` when absent. */
|
|
2034
|
+
scoringRule: string | null;
|
|
2035
|
+
/** Tie-break rule, in lowercase; `null` when absent. */
|
|
2036
|
+
tieBreak: string | null;
|
|
2037
|
+
/** Currency of the edition (ISO 4217); `null` when absent. */
|
|
2038
|
+
currency: string | null;
|
|
2039
|
+
/** Time zone (IANA); `null` when absent. */
|
|
2040
|
+
timeZone: string | null;
|
|
2041
|
+
/** Catalogue games of the edition (a repeated id keeps the first). */
|
|
2042
|
+
gameIds: string[];
|
|
2043
|
+
/** Prize ranges. */
|
|
2044
|
+
prizes: ClubTournamentPrize[];
|
|
2045
|
+
/** `registration`, `in_game` or another; `null` when no action is confirmed. */
|
|
2046
|
+
joinMode: 'registration' | 'in_game' | (string & {}) | null;
|
|
2047
|
+
/** Locale of the terms shown; `null` when absent. */
|
|
2048
|
+
locale: string | null;
|
|
2049
|
+
/** Whether {@link ClubApi.getRanking} can be read. */
|
|
2050
|
+
rankingAvailable: boolean;
|
|
2051
|
+
/** Whether the player can register now. */
|
|
2052
|
+
canRegister: boolean;
|
|
2053
|
+
/** Whether registering consumes a ticket. */
|
|
2054
|
+
requiresTicket: boolean;
|
|
2055
|
+
/** The player's registration; `null` when not registered. */
|
|
2056
|
+
registration: ClubTournamentRegistration | null;
|
|
2057
|
+
/** The player's award from the frozen result (detail only); `null` when none. */
|
|
2058
|
+
personalAward: ClubReceipt | null;
|
|
2059
|
+
/** Whether the source data is stale. */
|
|
2060
|
+
stale: boolean;
|
|
2061
|
+
/** Registration opening (ISO 8601); `null` when absent. */
|
|
2062
|
+
registrationStartsAt: string | null;
|
|
2063
|
+
/** Registration closing (ISO 8601); `null` when absent. */
|
|
2064
|
+
registrationEndsAt: string | null;
|
|
2065
|
+
/** Cover image; `null` when absent. */
|
|
2066
|
+
coverUrl: string | null;
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* A page of club tournaments.
|
|
2070
|
+
* @category Club
|
|
2071
|
+
*/
|
|
2072
|
+
interface ClubTournamentPage {
|
|
2073
|
+
/** Tournaments on this page (a repeated id keeps the first). */
|
|
2074
|
+
items: ClubTournament[];
|
|
2075
|
+
/** Whether external tournaments are on the page. */
|
|
2076
|
+
externalAvailable: boolean;
|
|
2077
|
+
/** Whether an external tournament on the page is stale. */
|
|
2078
|
+
externalStale: boolean;
|
|
2079
|
+
/** Pass it as `cursor` for the next page; absent on the last one. */
|
|
2080
|
+
nextCursor?: string;
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Another edition of the same external schedule.
|
|
2084
|
+
* @category Club
|
|
2085
|
+
*/
|
|
2086
|
+
interface ClubRelatedTournament {
|
|
2087
|
+
/** Edition id (`ext_...`). */
|
|
2088
|
+
id: string;
|
|
2089
|
+
/** Title per locale. */
|
|
2090
|
+
title: ClubLocalized;
|
|
2091
|
+
/** Status (see {@link ClubTournamentStatus}). */
|
|
2092
|
+
status: ClubTournamentStatus;
|
|
2093
|
+
/** Start (ISO 8601); `null` when absent. */
|
|
2094
|
+
startsAt: string | null;
|
|
2095
|
+
/** End (ISO 8601); `null` when absent. */
|
|
2096
|
+
endsAt: string | null;
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* A page of related editions.
|
|
2100
|
+
* @category Club
|
|
2101
|
+
*/
|
|
2102
|
+
interface ClubRelatedTournamentPage {
|
|
2103
|
+
/** Related editions (a repeated id keeps the first). */
|
|
2104
|
+
items: ClubRelatedTournament[];
|
|
2105
|
+
/** Pass it as `cursor` for the next page; absent on the last one. */
|
|
2106
|
+
nextCursor?: string;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* A row of a tournament ranking.
|
|
2110
|
+
* @category Club
|
|
2111
|
+
*/
|
|
2112
|
+
interface ClubRank {
|
|
2113
|
+
/** Position (integer ≥ 1). */
|
|
2114
|
+
position: number;
|
|
2115
|
+
/** Display name, already masked by the source. */
|
|
2116
|
+
displayName: string;
|
|
2117
|
+
/** Score as decimal text (display only). */
|
|
2118
|
+
score: string;
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* A tournament ranking.
|
|
2122
|
+
* @category Club
|
|
2123
|
+
*/
|
|
2124
|
+
interface ClubRanking {
|
|
2125
|
+
/** Top rows. */
|
|
2126
|
+
entries: ClubRank[];
|
|
2127
|
+
/** The player's row; `null` when not ranked. */
|
|
2128
|
+
personal: ClubRank | null;
|
|
2129
|
+
/** Last update (ISO 8601); `null` when absent. */
|
|
2130
|
+
updatedAt: string | null;
|
|
2131
|
+
/** Whether the ranking is final. */
|
|
2132
|
+
final: boolean;
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Result of {@link ClubApi.play}.
|
|
2136
|
+
* @category Club
|
|
2137
|
+
*/
|
|
2138
|
+
interface ClubPlayResult {
|
|
2139
|
+
/** The receipt. */
|
|
2140
|
+
receipt: ClubReceipt;
|
|
2141
|
+
/** Slice drawn; `null` when not a draw (e.g. a mission chest). */
|
|
2142
|
+
sliceId: string | null;
|
|
2143
|
+
/** The player's state after the play; `null` when absent. */
|
|
2144
|
+
rewards: ClubRewards | null;
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Cursor pagination of the club listings.
|
|
2148
|
+
* @category Club
|
|
2149
|
+
*/
|
|
2150
|
+
interface ClubCursorInput {
|
|
2151
|
+
/** The previous page's `nextCursor`. Omitted: the first page. */
|
|
2152
|
+
cursor?: string;
|
|
2153
|
+
/** Items per page: an integer from 1 to 100. Omitted: the gateway default. */
|
|
2154
|
+
limit?: number;
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Input of {@link ClubApi.listRelatedTournaments}.
|
|
2158
|
+
* @category Club
|
|
2159
|
+
*/
|
|
2160
|
+
interface ListRelatedClubTournamentsInput extends ClubCursorInput {
|
|
2161
|
+
/** External edition (`ext_` followed by letters, digits, `_` or `-`). */
|
|
2162
|
+
editionId: string;
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* Input of {@link ClubApi.getRanking}.
|
|
2166
|
+
* @category Club
|
|
2167
|
+
*/
|
|
2168
|
+
interface GetClubRankingInput {
|
|
2169
|
+
/** Edition id. */
|
|
2170
|
+
editionId: string;
|
|
2171
|
+
/** Rows: an integer from 1 to 100. Omitted: the gateway default. */
|
|
2172
|
+
limit?: number;
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* Input of {@link ClubApi.setMembership}: join (with the terms locale shown) or leave.
|
|
2176
|
+
* @category Club
|
|
2177
|
+
*/
|
|
2178
|
+
type SetClubMembershipInput = {
|
|
2179
|
+
/** {@link ClubProgram.versionId}. */
|
|
2180
|
+
versionId: string;
|
|
2181
|
+
/** Join. */
|
|
2182
|
+
joined: true;
|
|
2183
|
+
/** {@link ClubProgram.termsLocale}: the key of the terms the player saw. */
|
|
2184
|
+
termsLocale: string;
|
|
2185
|
+
} | {
|
|
2186
|
+
/** {@link ClubProgram.versionId}. */
|
|
2187
|
+
versionId: string;
|
|
2188
|
+
/** Leave. */
|
|
2189
|
+
joined: false;
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* Input of {@link ClubApi.play}.
|
|
2193
|
+
* @category Club
|
|
2194
|
+
*/
|
|
2195
|
+
interface PlayClubActivityInput {
|
|
2196
|
+
/** An activity id, or a mission's `rightId` to open its chest. */
|
|
2197
|
+
activityId: string;
|
|
2198
|
+
/** {@link ClubProgram.versionId} (or the mission's `rightVersionId`). */
|
|
2199
|
+
versionId: string;
|
|
2200
|
+
/** Chosen chest option (`chestOptions[i].id`). */
|
|
2201
|
+
optionId?: string;
|
|
2202
|
+
}
|
|
2203
|
+
/**
|
|
2204
|
+
* Input of {@link ClubApi.redeem}.
|
|
2205
|
+
* @category Club
|
|
2206
|
+
*/
|
|
2207
|
+
interface RedeemClubRewardInput {
|
|
2208
|
+
/** Store item id. */
|
|
2209
|
+
rewardId: string;
|
|
2210
|
+
/** {@link ClubProgram.versionId}. */
|
|
2211
|
+
versionId: string;
|
|
2212
|
+
}
|
|
2213
|
+
/**
|
|
2214
|
+
* Input of {@link ClubApi.registerForTournament}.
|
|
2215
|
+
* @category Club
|
|
2216
|
+
*/
|
|
2217
|
+
interface RegisterClubTournamentInput {
|
|
2218
|
+
/** Edition id. */
|
|
2219
|
+
editionId: string;
|
|
2220
|
+
/** {@link ClubTournament.versionId}. */
|
|
2221
|
+
versionId: string;
|
|
2222
|
+
/** Ticket to consume, when the tournament requires one. */
|
|
2223
|
+
ticketId?: string;
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* The casino club: program, activities (wheel, scratch, gift), missions with chests, coin store, history and
|
|
2227
|
+
* tournaments. Every method requires login. The gateway resolves the texts from the client's locale
|
|
2228
|
+
* (`Accept-Language`): change it with the core's `setLocale`.
|
|
2229
|
+
*
|
|
2230
|
+
* Writes are **idempotent**: each sends an `Idempotency-Key` (the one in `options.idempotencyKey` or one generated per
|
|
2231
|
+
* call; printable ASCII up to 128 characters, without surrounding spaces) that the club service stores. To retry a write whose
|
|
2232
|
+
* outcome is unknown, call again with the **same** key: the service answers the first result. The club answers a
|
|
2233
|
+
* duplicate still in flight with a plain 409 (`ALREADY_EXISTS`, never `KEY_IN_USE`), so a 409 is not a definitive
|
|
2234
|
+
* refusal: keep the key after anything but a 400, 403, 404 or 422 ({@link keepsClubIdempotencyKey} tells which).
|
|
2235
|
+
* Through `createIgamingMutations` the club writes follow that rule for you; an app that persists the key (e.g. per
|
|
2236
|
+
* action in `sessionStorage`, to survive a reload) uses the same helper to decide when to drop it.
|
|
2237
|
+
*
|
|
2238
|
+
* Errors to expect (identify by `error.code`): `NOT_FOUND` (404, also when the club is not active),
|
|
2239
|
+
* `PERMISSION_DENIED` (403), `ALREADY_EXISTS` (409, a conflict with the version, the availability or the account
|
|
2240
|
+
* state), `CLUB_WALLET_UNAVAILABLE` (503, or 409 when the wallet currency is not confirmed), `CLUB_RATE_LIMITED`
|
|
2241
|
+
* (429), `INVALID_ARGUMENT` (400), `UNAVAILABLE` (503).
|
|
2242
|
+
* @category Club
|
|
2243
|
+
*/
|
|
2244
|
+
interface ClubApi {
|
|
2245
|
+
/**
|
|
2246
|
+
* The program, the player's balances, activities, missions and store.
|
|
2247
|
+
* @example
|
|
2248
|
+
* const { program, rewards } = await igaming.club.getOverview()
|
|
2249
|
+
* if (program.enabled && !program.joined && program.canJoin) showJoin(program.terms, program.termsLocale)
|
|
2250
|
+
* @throws {EnginexError} `UNAUTHENTICATED` without a session; `VALIDATION_ERROR`, also in `'warn'`, with money
|
|
2251
|
+
* outside the format.
|
|
2252
|
+
*/
|
|
2253
|
+
getOverview(params?: NoParams, options?: CallOptions): Promise<ClubOverview>;
|
|
2254
|
+
/**
|
|
2255
|
+
* The player's receipts and balance movements, newest first, cursor-paginated.
|
|
2256
|
+
* @example
|
|
2257
|
+
* const page = await igaming.club.listHistory({ limit: 30 })
|
|
2258
|
+
* const next = page.nextCursor && (await igaming.club.listHistory({ cursor: page.nextCursor, limit: 30 }))
|
|
2259
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for a `cursor` that is not text or a `limit` outside
|
|
2260
|
+
* 1–100; `UNAUTHENTICATED` without a session.
|
|
2261
|
+
*/
|
|
2262
|
+
listHistory(input?: ClubCursorInput, options?: CallOptions): Promise<ClubHistory>;
|
|
2263
|
+
/**
|
|
2264
|
+
* Own and external tournaments, merged and cursor-paginated (gateway default: 50 per page).
|
|
2265
|
+
* @example
|
|
2266
|
+
* const { items, nextCursor } = await igaming.club.listTournaments()
|
|
2267
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for a bad `cursor` or `limit`; `NOT_FOUND` when the
|
|
2268
|
+
* club is not active.
|
|
2269
|
+
*/
|
|
2270
|
+
listTournaments(input?: ClubCursorInput, options?: CallOptions): Promise<ClubTournamentPage>;
|
|
2271
|
+
/**
|
|
2272
|
+
* Other editions of the same external schedule as `editionId` (the gateway caps the page at 20). A page that
|
|
2273
|
+
* answers for another edition is read as empty.
|
|
2274
|
+
* @example
|
|
2275
|
+
* const { items } = await igaming.club.listRelatedTournaments({ editionId: 'ext_tlt_123', limit: 10 })
|
|
2276
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an `editionId` that is not an external edition id,
|
|
2277
|
+
* or a bad `cursor`/`limit`; `NOT_FOUND` for an unknown edition.
|
|
2278
|
+
*/
|
|
2279
|
+
listRelatedTournaments(input: ListRelatedClubTournamentsInput, options?: CallOptions): Promise<ClubRelatedTournamentPage>;
|
|
2280
|
+
/**
|
|
2281
|
+
* A tournament's detail, with the player's registration and award.
|
|
2282
|
+
* @example
|
|
2283
|
+
* const tournament = await igaming.club.getTournament({ editionId })
|
|
2284
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an empty `editionId` or one over 128 UTF-8 bytes;
|
|
2285
|
+
* `NOT_FOUND` for an unknown edition.
|
|
2286
|
+
*/
|
|
2287
|
+
getTournament(input: {
|
|
2288
|
+
editionId: string;
|
|
2289
|
+
}, options?: CallOptions): Promise<ClubTournament>;
|
|
2290
|
+
/**
|
|
2291
|
+
* A tournament's ranking.
|
|
2292
|
+
* @example
|
|
2293
|
+
* const ranking = await igaming.club.getRanking({ editionId, limit: 20 })
|
|
2294
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for a bad `editionId` or `limit`;
|
|
2295
|
+
* `CLUB_RANKING_UNAVAILABLE` (404) when the source cannot disclose it.
|
|
2296
|
+
*/
|
|
2297
|
+
getRanking(input: GetClubRankingInput, options?: CallOptions): Promise<ClubRanking>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Joins the club (accepting the terms shown in `termsLocale`) or leaves it. Idempotent (see {@link ClubApi}).
|
|
2300
|
+
* @example
|
|
2301
|
+
* const program = await igaming.club.setMembership({ versionId, joined: true, termsLocale })
|
|
2302
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an empty `versionId`, a `joined` that is not a
|
|
2303
|
+
* boolean, an empty `termsLocale` when joining or a bad `idempotencyKey`; `ALREADY_EXISTS` (409) for a stale
|
|
2304
|
+
* version.
|
|
2305
|
+
*/
|
|
2306
|
+
setMembership(input: SetClubMembershipInput, options?: CallOptions): Promise<ClubProgram>;
|
|
2307
|
+
/**
|
|
2308
|
+
* Plays an activity, or opens a mission chest (`activityId` = `rightId`, `optionId` = the chosen option).
|
|
2309
|
+
* Idempotent (see {@link ClubApi}).
|
|
2310
|
+
* @example
|
|
2311
|
+
* const { receipt, sliceId } = await igaming.club.play({ activityId, versionId }, { idempotencyKey })
|
|
2312
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an empty `activityId`/`versionId`, a non-text
|
|
2313
|
+
* `optionId` or a bad `idempotencyKey`; `ALREADY_EXISTS` (409) when it cannot be played now.
|
|
2314
|
+
*/
|
|
2315
|
+
play(input: PlayClubActivityInput, options?: CallOptions): Promise<ClubPlayResult>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Redeems a store item with coins. Idempotent (see {@link ClubApi}).
|
|
2318
|
+
* @example
|
|
2319
|
+
* const receipt = await igaming.club.redeem({ rewardId: item.id, versionId }, { idempotencyKey })
|
|
2320
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an empty `rewardId`/`versionId` or a bad
|
|
2321
|
+
* `idempotencyKey`; `ALREADY_EXISTS` (409) without enough coins or stock.
|
|
2322
|
+
*/
|
|
2323
|
+
redeem(input: RedeemClubRewardInput, options?: CallOptions): Promise<ClubReceipt>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Registers the player in an own tournament. Idempotent (see {@link ClubApi}).
|
|
2326
|
+
* @example
|
|
2327
|
+
* const registration = await igaming.club.registerForTournament({ editionId, versionId: t.versionId })
|
|
2328
|
+
* @throws {EnginexError} `CONFIGURATION_ERROR` (no request) for an empty `editionId`/`versionId`, a non-text
|
|
2329
|
+
* `ticketId` or a bad `idempotencyKey`; `ALREADY_EXISTS` (409) when registration is closed.
|
|
2330
|
+
*/
|
|
2331
|
+
registerForTournament(input: RegisterClubTournamentInput, options?: CallOptions): Promise<ClubTournamentRegistration>;
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* Whether a failed club write must keep its `Idempotency-Key` for the retry. The club service stores the key and
|
|
2335
|
+
* answers a duplicate that is still being processed with a plain 409, the same answer as a stale version: releasing
|
|
2336
|
+
* the key after it would let the next tap pay twice. So the key is kept after everything except a definitive
|
|
2337
|
+
* refusal (400, 403, 404, 422) or an error that never reached the club (`CONFIGURATION_ERROR`, `ABORTED`): network
|
|
2338
|
+
* errors, timeouts, 5xx, 401, 409, 429 and a 2xx outside the format all keep it. `createIgamingMutations` applies it
|
|
2339
|
+
* to the `club` writes; use it where the app keeps its own key (e.g. one per action, persisted across a reload).
|
|
2340
|
+
* @param error - What the write rejected with.
|
|
2341
|
+
* @example
|
|
2342
|
+
* try {
|
|
2343
|
+
* await igaming.club.redeem({ rewardId, versionId }, { idempotencyKey: pendingKey })
|
|
2344
|
+
* forget(pendingKey)
|
|
2345
|
+
* } catch (error) {
|
|
2346
|
+
* if (!keepsClubIdempotencyKey(error)) forget(pendingKey)
|
|
2347
|
+
* throw error
|
|
2348
|
+
* }
|
|
2349
|
+
* @throws Never throws: anything that is not an `EnginexError` returns `false`.
|
|
2350
|
+
* @category Club
|
|
2351
|
+
*/
|
|
2352
|
+
declare function keepsClubIdempotencyKey(error: unknown): boolean;
|
|
2353
|
+
|
|
1610
2354
|
/**
|
|
1611
2355
|
* Type of points redemption. The `bonus.proto` mentions `bonus`, `cash` and `free_bet`, but the backend
|
|
1612
2356
|
* treats the field as free text and the contract does not say which ones the operator enables: the SDK sends the value
|
|
@@ -2057,6 +2801,8 @@ interface SportsbookApi {
|
|
|
2057
2801
|
interface IgamingClient {
|
|
2058
2802
|
/** Catalog, game launch and casino history. */
|
|
2059
2803
|
casino: CasinoApi;
|
|
2804
|
+
/** Casino club: program, activities, missions with chests, coin store, history and tournaments. */
|
|
2805
|
+
club: ClubApi;
|
|
2060
2806
|
/** Bonus campaigns (offers, opt-in, redemption) and promo codes. */
|
|
2061
2807
|
bonus: BonusApi;
|
|
2062
2808
|
/** Operator missions and the player's progress. */
|
|
@@ -2092,4 +2838,4 @@ interface IgamingClient {
|
|
|
2092
2838
|
*/
|
|
2093
2839
|
declare function createIgaming(client: EnginexClient): IgamingClient;
|
|
2094
2840
|
|
|
2095
|
-
export { type ActivityAggregateQualification, type BalanceCreditReward, type Bet, type BetDetails, type BetSelection, type BetSelectionResult, type BetStatus, type BetsApi, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CashoutOffer, type CashoutResult, type CasinoActivitySelector, type CasinoApi, type CasinoAvailability, type CasinoAvailabilityStatus, type CasinoFreeSpinsReward, type CasinoJackpot, type CasinoJackpots, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameDevice, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GamesPage, type GetBiggestWinnersInput, type IgamingClient, type JackpotGamesMode, type JackpotGamesPage, type LaunchGameInput, type LaunchTarget, type ListBetsInput, type ListBonusPositionsInput, type ListGamesInput, type ListJackpotGamesInput, type ListJackpotsInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type LoyaltyTierBenefits, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
|
|
2841
|
+
export { type ActivityAggregateQualification, type BalanceCreditReward, type Bet, type BetDetails, type BetSelection, type BetSelectionResult, type BetStatus, type BetsApi, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CashoutOffer, type CashoutResult, type CasinoActivitySelector, type CasinoApi, type CasinoAvailability, type CasinoAvailabilityStatus, type CasinoFreeSpinsReward, type CasinoJackpot, type CasinoJackpots, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type ClubActivityKind, type ClubActivityState, type ClubAlternateReward, type ClubApi, type ClubCashbackTerms, type ClubCursorInput, type ClubHistory, type ClubLevel, type ClubLocalized, type ClubMissionState, type ClubMoney, type ClubMovement, type ClubOverview, type ClubPlayResult, type ClubProgram, type ClubRank, type ClubRanking, type ClubReceipt, type ClubReceiptStatus, type ClubRelatedTournament, type ClubRelatedTournamentPage, type ClubReward, type ClubRewardKind, type ClubRewards, type ClubStoreItemState, type ClubTournament, type ClubTournamentPage, type ClubTournamentPrize, type ClubTournamentRegistration, type ClubTournamentStatus, type DepositSettledQualification, type Game, type GameCategory, type GameDevice, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GamesPage, type GetBiggestWinnersInput, type GetClubRankingInput, type IgamingClient, type JackpotGamesMode, type JackpotGamesPage, type LaunchGameInput, type LaunchTarget, type ListBetsInput, type ListBonusPositionsInput, type ListGamesInput, type ListJackpotGamesInput, type ListJackpotsInput, type ListMissionsInput, type ListReferralsInput, type ListRelatedClubTournamentsInput, type LoyaltyApi, type LoyaltyStatus, type LoyaltyTierBenefits, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PlayClubActivityInput, type PromoCodeOffer, type RedeemClubRewardInput, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type RegisterClubTournamentInput, type SetClubMembershipInput, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming, keepsClubIdempotencyKey };
|