From 7f159fd90f46db93bbf3a0a129857cc61caf6dc6 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 24 Jul 2021 03:02:56 +0100 Subject: [PATCH] rename ugptstat to stat showcase --- common/js/types.d.ts | 8 ++++---- common/src/types.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 800355745..0728ce3f5 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -1048,14 +1048,14 @@ export interface APITokenDocument extends MongoDBDocument { export interface ImportLockDocument extends MongoDBDocument { userID: integer; } -export declare type UGPTStatDetails = UGPTStatFolder | UGPTStatChart; -export interface UGPTStatFolder { +export declare type ShowcaseStatDetails = ShowcaseStatFolder | ShowcaseStatChart; +export interface ShowcaseStatFolder { mode: "folder"; folderID: string | string[]; property: "score" | "percent" | "grade" | "lamp"; gte: number; } -export interface UGPTStatChart { +export interface ShowcaseStatChart { mode: "chart"; chartID: string; property: "score" | "percent" | "grade" | "lamp" | "playcount"; @@ -1068,7 +1068,7 @@ export interface UGPTSettings extends MongoDBDo preferredScoreAlg: ScoreCalculatedDataLookup[I] | null; preferredSessionAlg: SessionCalculatedDataLookup[I] | null; preferredProfileAlg: UGSRatingsLookup[I] | null; - stats: UGPTStatDetails[]; + stats: ShowcaseStatDetails[]; }; } export interface UserGameStatsSnapshot extends MongoDBDocument, UserGameStats { diff --git a/common/src/types.ts b/common/src/types.ts index 547cbf147..dd1f5a7a6 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -1303,16 +1303,16 @@ export interface ImportLockDocument extends MongoDBDocument { userID: integer; } -export type UGPTStatDetails = UGPTStatFolder | UGPTStatChart; +export type ShowcaseStatDetails = ShowcaseStatFolder | ShowcaseStatChart; -export interface UGPTStatFolder { +export interface ShowcaseStatFolder { mode: "folder"; folderID: string | string[]; property: "score" | "percent" | "grade" | "lamp"; gte: number; } -export interface UGPTStatChart { +export interface ShowcaseStatChart { mode: "chart"; chartID: string; property: "score" | "percent" | "grade" | "lamp" | "playcount"; @@ -1326,7 +1326,7 @@ export interface UGPTSettings extends MongoDBDo preferredScoreAlg: ScoreCalculatedDataLookup[I] | null; preferredSessionAlg: SessionCalculatedDataLookup[I] | null; preferredProfileAlg: UGSRatingsLookup[I] | null; - stats: UGPTStatDetails[]; + stats: ShowcaseStatDetails[]; }; }