From 8cf25e3286852b50e084b80ab766bbca7c63aedb Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 21 Aug 2021 01:50:08 +0100 Subject: [PATCH] BatchManualScore moved to tachi-common --- .../import-types/common/batch-manual/types.ts | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/server/src/lib/score-import/import-types/common/batch-manual/types.ts b/server/src/lib/score-import/import-types/common/batch-manual/types.ts index 265c5c712..13a571b40 100644 --- a/server/src/lib/score-import/import-types/common/batch-manual/types.ts +++ b/server/src/lib/score-import/import-types/common/batch-manual/types.ts @@ -1,31 +1,8 @@ -import { Game, Playtypes, Lamps, IDStrings } from "tachi-common"; - -export type BatchManualScore = { - score: number; - lamp: Lamps[IDStrings]; - timeAchieved?: number | null; - comment?: string | null; - judgements?: Record | null; - hitMeta?: Record | null; - identifier: string; - matchType: "songTitle" | "ddrSongHash" | "tachiSongID" | "bmsChartHash"; - - difficulty?: string | null; // lazy... -}; - -export interface BatchManual { - meta: { - service: string; - game: Game; - playtype: Playtypes[Game]; - version?: string | null; - }; - scores: BatchManualScore[]; -} +import { Game, Playtypes, IDStrings, GPTSupportedVersions } from "tachi-common"; export interface BatchManualContext { game: Game; playtype: Playtypes[Game]; service: string; - version: string | null; + version: GPTSupportedVersions[IDStrings] | null; }