@gamecore-api/sdk 0.19.0 → 0.20.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +20 -2
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -191,7 +191,16 @@ export interface Game {
191
191
  inStock: boolean;
192
192
  soldCount?: number;
193
193
  tags?: string[];
194
- availabilityStatus?: "available" | "coming_soon" | "maintenance" | "discontinued";
194
+ /**
195
+ * Availability lifecycle. `out_of_stock` is **derived** by the
196
+ * backend when a game has 0 visible products under the requesting
197
+ * site's filters (gateway allow-list, per-site overrides, allowed
198
+ * regions). Editorial states (`coming_soon`, `maintenance`,
199
+ * `discontinued`) are admin overrides on canonical_games and
200
+ * always win. Storefronts should branch on this field to render
201
+ * the right banner / Schema.org `availability` value.
202
+ */
203
+ availabilityStatus?: "available" | "out_of_stock" | "coming_soon" | "maintenance" | "discontinued";
195
204
  availabilityMessage?: string | null;
196
205
  minPrice?: number | null;
197
206
  type?: string;
@@ -245,7 +254,16 @@ export interface GameDetail {
245
254
  /** Steam app id — null for non-Steam titles and mobile games. */
246
255
  steamAppid?: number | null;
247
256
  /** Availability lifecycle. Shares the union from {@link Game}. */
248
- availabilityStatus?: "available" | "coming_soon" | "maintenance" | "discontinued";
257
+ /**
258
+ * Availability lifecycle. `out_of_stock` is **derived** by the
259
+ * backend when a game has 0 visible products under the requesting
260
+ * site's filters (gateway allow-list, per-site overrides, allowed
261
+ * regions). Editorial states (`coming_soon`, `maintenance`,
262
+ * `discontinued`) are admin overrides on canonical_games and
263
+ * always win. Storefronts should branch on this field to render
264
+ * the right banner / Schema.org `availability` value.
265
+ */
266
+ availabilityStatus?: "available" | "out_of_stock" | "coming_soon" | "maintenance" | "discontinued";
249
267
  /** Human-readable message for non-available games. */
250
268
  availabilityMessage?: string | null;
251
269
  inStock?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamecore-api/sdk",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "TypeScript SDK for GameCore API — browser-safe, zero dependencies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",