forked from metabrainz/musicbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit_extras.js
48 lines (43 loc) · 1.16 KB
/
edit_extras.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
46
47
48
/*
* @flow strict
* Copyright (C) 2021 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
*/
// EditMedium
declare type TracklistChangesAddT = {
+change_type: '+',
+new_track: TrackWithRecordingT,
+old_track: null,
};
declare type TracklistChangesChangeT = {
+change_type: 'c' | 'u',
+new_track: TrackWithRecordingT,
+old_track: TrackWithRecordingT,
};
declare type TracklistChangesRemoveT = {
+change_type: '-',
+new_track: null,
+old_track: TrackWithRecordingT,
};
// EditReleaseEvents (historic)
declare type OldReleaseEventCompT = {
+barcode: CompT<string | null>,
+catalog_number: CompT<string | null>,
+country?: CompT<AreaT>,
+date: CompT<PartialDateT>,
+format: CompT<MediumFormatT | null>,
+label?: CompT<LabelT>,
+release: ReleaseT | null,
};
declare type OldReleaseEventT = {
+barcode: string | null,
+catalog_number: string | null,
+country?: AreaT,
+date: PartialDateT,
+format: MediumFormatT | null,
+label?: LabelT,
+release: ReleaseT | null,
};