-
-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathreleasegroup.js
45 lines (40 loc) · 1.16 KB
/
releasegroup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* @flow strict
* Copyright (C) 2017 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
/* eslint-disable no-unused-vars */
declare type ReleaseGroupSecondaryTypeT =
OptionTreeT<'release_group_secondary_type'>;
// MusicBrainz::Server::Entity::ReleaseGroup::TO_JSON
declare type ReleaseGroupT = $ReadOnly<{
...AnnotationRoleT,
...ArtistCreditRoleT,
...CommentRoleT,
...RelatableEntityRoleT<'release_group'>,
...RatableRoleT,
...ReviewableRoleT,
...TypeRoleT<ReleaseGroupTypeT>,
+cover_art?: ReleaseArtT,
+firstReleaseDate: string | null,
+hasCoverArt: boolean,
+l_type_name: string | null,
+primaryAlias?: string | null,
+release_count: number,
+release_group?: ReleaseGroupT,
+secondaryTypeIDs: $ReadOnlyArray<number>,
+typeID: number | null,
+typeName: string | null,
}>;
declare type ReleaseGroupTypeT = {
...OptionTreeT<'release_group_type'>,
+historic: false,
};
declare type ReleaseGroupHistoricTypeT = {
+historic: true,
+id: number,
+name: string,
};