Migrate versionstats to AnyChartDoc

This commit is contained in:
zkldi
2021-04-27 16:10:29 +01:00
parent 5b00b6b948
commit 2e9be64612
2 changed files with 6 additions and 14 deletions
+3 -7
View File
@@ -570,6 +570,7 @@ interface ChartDocumentData {
};
}
export interface AnyChartDocument extends MongoDBDocument {
isRemoved: boolean;
chartID: string;
rgcID: string | null;
songID: integer;
@@ -579,7 +580,8 @@ export interface AnyChartDocument extends MongoDBDocument {
bpmString: string | null;
difficulty: Difficulties[IDStrings];
playtype: Playtypes[Game];
isRemoved: boolean;
isPrimary: boolean;
versions: string[];
}
export interface ChartDocument<I extends IDStrings> extends AnyChartDocument {
difficulty: Difficulties[I];
@@ -677,7 +679,6 @@ export interface AnySongDocument extends MongoDBDocument {
id: integer;
title: string;
artist: string;
isAvailable: boolean;
firstVersion: string | null;
/**
* Alternative names for this song, to be used while searching.
@@ -688,11 +689,6 @@ export interface AnySongDocument extends MongoDBDocument {
* requested.
*/
"alt-titles": string[];
/**
* Contains the versions this song appeared in. This is used for
* disambiguation in some games.
*/
versions: string[];
}
export interface SongDocument<G extends Game> extends AnySongDocument {
data: SongDocumentData[G];
+3 -7
View File
@@ -754,6 +754,7 @@ interface ChartDocumentData {
}
export interface AnyChartDocument extends MongoDBDocument {
isRemoved: boolean;
chartID: string;
rgcID: string | null; // ID to perform backbeat lookup in future.
songID: integer;
@@ -763,7 +764,8 @@ export interface AnyChartDocument extends MongoDBDocument {
bpmString: string | null;
difficulty: Difficulties[IDStrings];
playtype: Playtypes[Game];
isRemoved: boolean;
isPrimary: boolean;
versions: string[];
}
export interface ChartDocument<I extends IDStrings> extends AnyChartDocument {
@@ -851,7 +853,6 @@ export interface AnySongDocument extends MongoDBDocument {
id: integer;
title: string;
artist: string;
isAvailable: boolean;
firstVersion: string | null;
/**
* Alternative names for this song, to be used while searching.
@@ -862,11 +863,6 @@ export interface AnySongDocument extends MongoDBDocument {
* requested.
*/
"alt-titles": string[];
/**
* Contains the versions this song appeared in. This is used for
* disambiguation in some games.
*/
versions: string[];
}
export interface SongDocument<G extends Game> extends AnySongDocument {