This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-igaming/query / IgamingMutations

IgamingMutations ​

iGaming mutations, one per write method: m.<namespace>.<method>() returns { mutationKey, mutationFn, invalidates }. Obtained with createIgamingMutations.

Properties ​

bonus ​

readonly bonus: IdempotentMutationsOf<BonusApi, "claim" | "optIn" | "redeemPromoCode"> & MutationsOf<BonusApi, "resolvePromoCode">

Opt-in, redemption (idempotent: they accept { idempotencyKey }) and promo code check.


casino ​

readonly casino: MutationsOf<CasinoApi, "launchGame">

Game launch (launchGame, with gcTime: 0: the game URL carries credentials).


loyalty ​

readonly loyalty: IdempotentMutationsOf<LoyaltyApi, "redeem">

Points redemption (idempotent: it accepts { idempotencyKey }).


referrals ​

readonly referrals: MutationsOf<ReferralsApi, "register">

Referral code registration.


sportsbook ​

readonly sportsbook: MutationsOf<SportsbookApi, "createSession">

Sportsbook session (gcTime: 0: the URL carries the operator token).