psn-api
Version:
A well-tested library that lets you get trophy, user, and game data from the PlayStation Network.
53 lines (39 loc) • 1.13 kB
text/typescript
import { Membership } from "./membership.model";
import { TitlePlatform } from "./title-platform.model";
export interface PurchasedGame {
/** GraphQL object type/schema */
__typename: "GameLibraryTitle";
/** Unique concept identifier for the game */
conceptId: string | null;
/** Unique entitlement identifier */
entitlementId: string;
/** Contains a url to a game icon file */
image: {
__typename: "Media";
url: string;
};
/** Whether the game is currently active */
isActive: boolean;
/** Whether the game is downloadable */
isDownloadable: boolean;
/** Whether the game is a pre-order */
isPreOrder: boolean;
/** The membership level associated with this game */
membership: Membership;
/** The name of the game */
name: string;
/** The platform this game is available on */
platform: TitlePlatform;
/** Unique product identifier */
productId: string;
/** Unique title identifier */
titleId: string;
}
export interface PurchasedGamesResponse {
data: {
purchasedTitlesRetrieve: {
__typename: "GameList";
games: PurchasedGame[];
};
};
}