@getenginex/sdk-igaming 0.9.0 → 0.10.1
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 +14 -0
- package/README.md +4 -3
- package/dist/index.cjs +586 -316
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +335 -10
- package/dist/index.d.ts +335 -10
- package/dist/index.js +586 -316
- package/dist/index.js.map +1 -1
- package/dist/query/index.cjs +5 -3
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +10 -5
- package/dist/query/index.d.ts +10 -5
- package/dist/query/index.js +5 -3
- package/dist/query/index.js.map +1 -1
- package/dist/testing/index.cjs +189 -11
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +10 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.js +190 -12
- package/dist/testing/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @getenginex/sdk-igaming
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 07cffe0: Omitted and `null` lists (IE-659): the protobuf `list()` helper now reads `null` as `[]` as well as an omitted list, so the bonus cursor pages (`listPublicOffers`, `listOffers`, `listParticipations`, `listPositions`), `getOverview` and every nested campaign list never hand out `null`; `toCursorPage` also falls back to `[]` when a core older than 0.11.1 lets a malformed list through in `'warn'`. `casino.listCategories`, `listProviders` and `getBiggestWinners` read a `null` body as `[]`, and `referrals.listHistory` reads a `null` pagination as absent. With core 0.11.1, a `null` jackpot-games pagination in `'warn'` no longer fails with `UNKNOWN` (a `TypeError`).
|
|
8
|
+
|
|
9
|
+
## 0.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 82e0db0: Casino: `listGames` accepts `device` (`'mobile' | 'desktop'`; anything else is `CONFIGURATION_ERROR` before the request) and its page now carries `availability` (`{ status, primaryProviderCode, missing }`, `null` on an older gateway or a core below 0.11.0); the return type `GamesPage` extends `Page<Game>`, so existing code keeps working. `launchGame` accepts `depositUrl`. New `listJackpots({ currency })` and `listJackpotGames({ jackpotId, currency, device?, page?, perPage?, cursor? })` for the lobby jackpots (public; on gateways with lobby jackpots, `dev` today): amounts in minor units, entries that cannot be shown safely are left out.
|
|
14
|
+
|
|
15
|
+
New `bets` namespace for the sportsbook bet history: `list`, `get`, `getCashoutOffer` and `cashout` (idempotent, with `Idempotency-Key`; through `createIgamingMutations` the key is kept after an ambiguous failure and released after a definitive refusal). Money is a non-negative safe integer in minor units of the operator's currency (≥ 2^53 or negative is `VALIDATION_ERROR`, also in `'warn'`); statuses arrive without the `BET_STATUS_`/`SELECTION_RESULT_` prefix. The `/testing` mock covers the jackpots and the bets routes, and its `availability.missing` is now a list, as the gateway sends it.
|
|
16
|
+
|
|
3
17
|
## 0.9.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -4,8 +4,9 @@ Casino, bonuses, missions, loyalty, referrals and the FIRST sportsbook for Engin
|
|
|
4
4
|
|
|
5
5
|
[Docs](https://game-engine-io.github.io/enginex-frontend-sdk/igaming/) · [Português](https://game-engine-io.github.io/enginex-frontend-sdk/pt/igaming/) · [Español](https://game-engine-io.github.io/enginex-frontend-sdk/es/igaming/)
|
|
6
6
|
|
|
7
|
-
Namespaces: `casino` (catalog, launch game, sessions, history, winners ranking), `bonus` (campaigns, opt-in,
|
|
8
|
-
codes), `missions`, `loyalty` (points, tier, redeem), `referrals
|
|
7
|
+
Namespaces: `casino` (catalog, lobby jackpots, launch game, sessions, history, winners ranking), `bonus` (campaigns, opt-in,
|
|
8
|
+
claim, promo codes), `missions`, `loyalty` (points, tier, redeem), `referrals`, `sportsbook` (FIRST session for the iframe)
|
|
9
|
+
and `bets` (sportsbook bet history and cash-out).
|
|
9
10
|
|
|
10
11
|
## Install
|
|
11
12
|
|
|
@@ -44,7 +45,7 @@ created by `createEnginexClient` (for example a copy `{ ...enginex }`) is reject
|
|
|
44
45
|
|
|
45
46
|
| Subpath | Purpose |
|
|
46
47
|
| --- | --- |
|
|
47
|
-
| `@getenginex/sdk-igaming` | `createIgaming` and the casino, bonus, missions, loyalty, referrals and
|
|
48
|
+
| `@getenginex/sdk-igaming` | `createIgaming` and the casino, bonus, missions, loyalty, referrals, sportsbook and bets namespaces |
|
|
48
49
|
| `@getenginex/sdk-igaming/testing` | Mock routes for iGaming (`withIgamingRoutes`) on top of the core's `createMockFetch` |
|
|
49
50
|
| `@getenginex/sdk-igaming/first-frame` | Origin-checked `postMessage` events and commands for the FIRST sportsbook iframe |
|
|
50
51
|
| `@getenginex/sdk-igaming/query` | Query and mutation factories for TanStack Query v5 |
|