@gamecore-api/sdk 0.17.0 → 0.17.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/dist/client.d.ts +12 -0
- package/dist/types.d.ts +11 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -279,6 +279,18 @@ export declare class GameCoreClient {
|
|
|
279
279
|
page?: number;
|
|
280
280
|
limit?: number;
|
|
281
281
|
locale?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Legacy coarse-grained filter: `"topup"` → mobile donate
|
|
284
|
+
* (keyhub + vendoria), `"cdkey"` → Steam keys (keyhub).
|
|
285
|
+
* Still accepted for backward-compat with early storefront
|
|
286
|
+
* builds.
|
|
287
|
+
*
|
|
288
|
+
* @deprecated Prefer `platform: "mobile_game"` instead of
|
|
289
|
+
* `type: "topup"` and `platform: "steam"` instead of
|
|
290
|
+
* `type: "cdkey"`. Canonical platforms give you facet
|
|
291
|
+
* counts via `getPlatforms()` and survive supplier
|
|
292
|
+
* reshuffles.
|
|
293
|
+
*/
|
|
282
294
|
type?: string;
|
|
283
295
|
deliveryType?: string;
|
|
284
296
|
include?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -197,6 +197,17 @@ export interface Game {
|
|
|
197
197
|
type?: string;
|
|
198
198
|
deliveryTypes?: string[];
|
|
199
199
|
categories?: Category[];
|
|
200
|
+
/**
|
|
201
|
+
* Distribution platforms (`steam`, `mobile_game`, `xbox`, `playstation`,
|
|
202
|
+
* `nintendo`, `epic`). Same slugs that `?platform=` filter accepts and
|
|
203
|
+
* that `getPlatforms()` enumerates — single source of truth.
|
|
204
|
+
*
|
|
205
|
+
* Always present in list endpoints (`getGames`, `getHomepageGames`,
|
|
206
|
+
* `getGamesFull`, `getRecentGames`, `getRecommendations`, `search`)
|
|
207
|
+
* and `getGame` since gamecore-api 2026-04-30 — empty array if no
|
|
208
|
+
* platform metadata. Type stays optional for backward-compat with
|
|
209
|
+
* pre-0.17 backends. Treat as `string[]` in modern code.
|
|
210
|
+
*/
|
|
200
211
|
platforms?: string[];
|
|
201
212
|
regions?: string[];
|
|
202
213
|
}
|