typedbrainz 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/global.d.ts +2059 -153
- package/package.json +1 -1
package/lib/global.d.ts
CHANGED
|
@@ -7,9 +7,40 @@ export type $ReadOnly<T> = Readonly<T>;
|
|
|
7
7
|
export type $ReadOnlyMap<K, V> = ReadonlyMap<K, V>;
|
|
8
8
|
export type $Exact<T> = T;
|
|
9
9
|
export type $_$Spread<T1, T2> = T2 & Omit<T1, keyof T2>;
|
|
10
|
+
export type AliasT<T> = $ReadOnly<$_$Spread<DatePeriodRoleT, $_$Spread<EntityRoleT<"alias">, $_$Spread<PendingEditsRoleT, $_$Spread<TypeRoleT<T>, {
|
|
11
|
+
locale: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
primary_for_locale: boolean;
|
|
14
|
+
sort_name: string;
|
|
15
|
+
}>>>>>;
|
|
16
|
+
export type AreaAliasTypeT = OptionTreeT<"area_alias_type">;
|
|
17
|
+
export type AreaAliasT = AliasT<AreaAliasTypeT>;
|
|
18
|
+
export type ArtistAliasTypeT = OptionTreeT<"artist_alias_type">;
|
|
19
|
+
export type ArtistAliasT = AliasT<ArtistAliasTypeT>;
|
|
20
|
+
export type EventAliasTypeT = OptionTreeT<"event_alias_type">;
|
|
21
|
+
export type EventAliasT = AliasT<EventAliasTypeT>;
|
|
22
|
+
export type GenreAliasTypeT = OptionTreeT<"genre_alias_type">;
|
|
23
|
+
export type GenreAliasT = AliasT<GenreAliasTypeT>;
|
|
24
|
+
export type InstrumentAliasTypeT = OptionTreeT<"instrument_alias_type">;
|
|
25
|
+
export type InstrumentAliasT = AliasT<InstrumentAliasTypeT>;
|
|
26
|
+
export type LabelAliasTypeT = OptionTreeT<"label_alias_type">;
|
|
27
|
+
export type LabelAliasT = AliasT<LabelAliasTypeT>;
|
|
28
|
+
export type PlaceAliasTypeT = OptionTreeT<"place_alias_type">;
|
|
29
|
+
export type PlaceAliasT = AliasT<PlaceAliasTypeT>;
|
|
30
|
+
export type RecordingAliasTypeT = OptionTreeT<"recording_alias_type">;
|
|
31
|
+
export type RecordingAliasT = AliasT<RecordingAliasTypeT>;
|
|
32
|
+
export type ReleaseAliasTypeT = OptionTreeT<"release_alias_type">;
|
|
33
|
+
export type ReleaseAliasT = AliasT<ReleaseAliasTypeT>;
|
|
34
|
+
export type ReleaseGroupAliasTypeT = OptionTreeT<"releaseGroup_alias_type">;
|
|
35
|
+
export type ReleaseGroupAliasT = AliasT<ReleaseGroupAliasTypeT>;
|
|
36
|
+
export type SeriesAliasTypeT = OptionTreeT<"series_alias_type">;
|
|
37
|
+
export type SeriesAliasT = AliasT<SeriesAliasTypeT>;
|
|
38
|
+
export type WorkAliasTypeT = OptionTreeT<"work_alias_type">;
|
|
39
|
+
export type WorkAliasT = AliasT<WorkAliasTypeT>;
|
|
10
40
|
export type AnnotatedEntityT = AreaT | ArtistT | EventT | GenreT | InstrumentT | LabelT | PlaceT | RecordingT | ReleaseGroupT | ReleaseT | SeriesT | WorkT;
|
|
41
|
+
export type AnnotatedEntityTypeT = AnnotatedEntityT["entityType"];
|
|
11
42
|
export type AnnotationRoleT = {
|
|
12
|
-
latest_annotation
|
|
43
|
+
latest_annotation?: AnnotationT;
|
|
13
44
|
};
|
|
14
45
|
export type AnnotationT = {
|
|
15
46
|
changelog: string;
|
|
@@ -27,7 +58,7 @@ export type AreaT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT,
|
|
|
27
58
|
iso_3166_2_codes: $ReadOnlyArray<string>;
|
|
28
59
|
iso_3166_3_codes: $ReadOnlyArray<string>;
|
|
29
60
|
primary_code: string;
|
|
30
|
-
primaryAlias
|
|
61
|
+
primaryAlias?: string | null;
|
|
31
62
|
}>>>>>>;
|
|
32
63
|
export type AreaTypeT = OptionTreeT<"area_type">;
|
|
33
64
|
export type ArtistT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"artist">, $_$Spread<DatePeriodRoleT, $_$Spread<IpiCodesRoleT, $_$Spread<IsniCodesRoleT, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, $_$Spread<TypeRoleT<ArtistTypeT>, {
|
|
@@ -38,7 +69,7 @@ export type ArtistT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRole
|
|
|
38
69
|
end_area_id: number | null;
|
|
39
70
|
gender: GenderT | null;
|
|
40
71
|
gender_id: number | null;
|
|
41
|
-
primaryAlias
|
|
72
|
+
primaryAlias?: string | null;
|
|
42
73
|
sort_name: string;
|
|
43
74
|
}>>>>>>>>>>;
|
|
44
75
|
export type ArtistTypeT = OptionTreeT<"artist_type">;
|
|
@@ -53,14 +84,22 @@ export type ArtistCreditRoleT = {
|
|
|
53
84
|
artistCredit: ArtistCreditT;
|
|
54
85
|
};
|
|
55
86
|
export type ArtistCreditT = {
|
|
56
|
-
editsPending
|
|
57
|
-
entityType
|
|
58
|
-
id
|
|
87
|
+
editsPending?: boolean;
|
|
88
|
+
entityType?: "artist_credit";
|
|
89
|
+
id?: number;
|
|
59
90
|
names: $ReadOnlyArray<ArtistCreditNameT>;
|
|
60
91
|
};
|
|
92
|
+
export type IncompleteArtistCreditNameT = {
|
|
93
|
+
artist: ArtistT | null;
|
|
94
|
+
joinPhrase: string;
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
export type IncompleteArtistCreditT = {
|
|
98
|
+
names: $ReadOnlyArray<IncompleteArtistCreditNameT>;
|
|
99
|
+
};
|
|
61
100
|
export type ArtworkRoleT = $ReadOnly<$_$Spread<PendingEditsRoleT, {
|
|
62
101
|
comment: string;
|
|
63
|
-
event
|
|
102
|
+
event?: EventT;
|
|
64
103
|
filename: string | null;
|
|
65
104
|
huge_ia_thumbnail: string;
|
|
66
105
|
huge_thumbnail: string;
|
|
@@ -75,8 +114,13 @@ export type ArtworkRoleT = $ReadOnly<$_$Spread<PendingEditsRoleT, {
|
|
|
75
114
|
types: $ReadOnlyArray<string>;
|
|
76
115
|
}>>;
|
|
77
116
|
export type ReleaseArtT = $ReadOnly<$_$Spread<ArtworkRoleT, {
|
|
78
|
-
release
|
|
117
|
+
release?: ReleaseT;
|
|
118
|
+
}>>;
|
|
119
|
+
export type EventArtT = $ReadOnly<$_$Spread<ArtworkRoleT, {
|
|
120
|
+
event?: EventT;
|
|
79
121
|
}>>;
|
|
122
|
+
export type CoverArtTypeT = OptionTreeT<"cover_art_type">;
|
|
123
|
+
export type EventArtTypeT = OptionTreeT<"event_art_type">;
|
|
80
124
|
export type IpiCodesRoleT = {
|
|
81
125
|
ipi_codes: $ReadOnlyArray<IpiCodeT>;
|
|
82
126
|
};
|
|
@@ -97,34 +141,1671 @@ export type IswcT = $_$Spread<EntityRoleT<"iswc">, $_$Spread<PendingEditsRoleT,
|
|
|
97
141
|
iswc: string;
|
|
98
142
|
work_id: number;
|
|
99
143
|
}>>;
|
|
144
|
+
export type CollectionTypeT = $_$Spread<OptionTreeT<"collection_type">, {
|
|
145
|
+
item_entity_type: string;
|
|
146
|
+
}>;
|
|
100
147
|
export type ReviewableRoleT = {
|
|
101
|
-
review_count
|
|
148
|
+
review_count?: number;
|
|
149
|
+
};
|
|
150
|
+
export type CompT<T> = {
|
|
151
|
+
new: T;
|
|
152
|
+
old: T;
|
|
102
153
|
};
|
|
154
|
+
export type EditExpireActionT = 1 | 2;
|
|
155
|
+
export type EditStatusT = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9;
|
|
156
|
+
export type EditT = CurrentEditT | HistoricEditT;
|
|
157
|
+
export type EditWithIdT = $ReadOnly<$_$Spread<EditT, {
|
|
158
|
+
id: number;
|
|
159
|
+
}>>;
|
|
160
|
+
export type EditNoteChangeT = {
|
|
161
|
+
change_editor_id: number;
|
|
162
|
+
change_time: string;
|
|
163
|
+
edit_note_id: number;
|
|
164
|
+
id: number;
|
|
165
|
+
new_note: string;
|
|
166
|
+
old_note: string;
|
|
167
|
+
reason: string;
|
|
168
|
+
status: "edited" | "deleted";
|
|
169
|
+
};
|
|
170
|
+
export type EditNoteT = {
|
|
171
|
+
edit_id: number;
|
|
172
|
+
editor: EditorT | null;
|
|
173
|
+
editor_id: number;
|
|
174
|
+
formatted_text: string;
|
|
175
|
+
id: number;
|
|
176
|
+
latest_change?: EditNoteChangeT;
|
|
177
|
+
post_time: string | null;
|
|
178
|
+
};
|
|
179
|
+
export type GenericEditT = {
|
|
180
|
+
auto_edit: boolean;
|
|
181
|
+
close_time: string;
|
|
182
|
+
conditions: {
|
|
183
|
+
auto_edit: boolean;
|
|
184
|
+
duration: number;
|
|
185
|
+
expire_action: EditExpireActionT;
|
|
186
|
+
votes: number;
|
|
187
|
+
};
|
|
188
|
+
created_time: string;
|
|
189
|
+
data: {
|
|
190
|
+
[dataProp: string]: "WIP convertTypeNode: AnyTypeAnnotation";
|
|
191
|
+
};
|
|
192
|
+
edit_kind: "add" | "edit" | "remove" | "merge" | "other";
|
|
193
|
+
edit_name: string;
|
|
194
|
+
edit_notes: $ReadOnlyArray<EditNoteT>;
|
|
195
|
+
edit_type: number;
|
|
196
|
+
edit_type_name_context: string;
|
|
197
|
+
editor_id: number;
|
|
198
|
+
expires_time: string;
|
|
199
|
+
historic_type: number | null;
|
|
200
|
+
id: number | null;
|
|
201
|
+
is_loaded: boolean;
|
|
202
|
+
is_open: boolean;
|
|
203
|
+
preview?: boolean;
|
|
204
|
+
quality: QualityT;
|
|
205
|
+
status: EditStatusT;
|
|
206
|
+
votes: $ReadOnlyArray<VoteT>;
|
|
207
|
+
};
|
|
208
|
+
export type TracklistChangesAddT = {
|
|
209
|
+
change_type: "+";
|
|
210
|
+
new_track: TrackWithRecordingT;
|
|
211
|
+
old_track: null;
|
|
212
|
+
};
|
|
213
|
+
export type TracklistChangesChangeT = {
|
|
214
|
+
change_type: "c" | "u";
|
|
215
|
+
new_track: TrackWithRecordingT;
|
|
216
|
+
old_track: TrackWithRecordingT;
|
|
217
|
+
};
|
|
218
|
+
export type TracklistChangesRemoveT = {
|
|
219
|
+
change_type: "-";
|
|
220
|
+
new_track: null;
|
|
221
|
+
old_track: TrackWithRecordingT;
|
|
222
|
+
};
|
|
223
|
+
export type OldReleaseEventCompT = {
|
|
224
|
+
barcode: CompT<string | null>;
|
|
225
|
+
catalog_number: CompT<string | null>;
|
|
226
|
+
country?: CompT<AreaT>;
|
|
227
|
+
date: CompT<PartialDateT>;
|
|
228
|
+
format: CompT<MediumFormatT | null>;
|
|
229
|
+
label?: CompT<LabelT>;
|
|
230
|
+
release: ReleaseT | null;
|
|
231
|
+
};
|
|
232
|
+
export type OldReleaseEventT = {
|
|
233
|
+
barcode: string | null;
|
|
234
|
+
catalog_number: string | null;
|
|
235
|
+
country?: AreaT;
|
|
236
|
+
date: PartialDateT;
|
|
237
|
+
format: MediumFormatT | null;
|
|
238
|
+
label?: LabelT;
|
|
239
|
+
release: ReleaseT | null;
|
|
240
|
+
};
|
|
241
|
+
export type EDIT_ARTIST_CREATE_T = 1;
|
|
242
|
+
export type EDIT_ARTIST_EDIT_T = 2;
|
|
243
|
+
export type EDIT_ARTIST_DELETE_T = 3;
|
|
244
|
+
export type EDIT_ARTIST_MERGE_T = 4;
|
|
245
|
+
export type EDIT_ARTIST_ADD_ANNOTATION_T = 5;
|
|
246
|
+
export type EDIT_ARTIST_ADD_ALIAS_T = 6;
|
|
247
|
+
export type EDIT_ARTIST_DELETE_ALIAS_T = 7;
|
|
248
|
+
export type EDIT_ARTIST_EDIT_ALIAS_T = 8;
|
|
249
|
+
export type EDIT_ARTIST_EDITCREDIT_T = 9;
|
|
250
|
+
export type EDIT_LABEL_CREATE_T = 10;
|
|
251
|
+
export type EDIT_LABEL_EDIT_T = 11;
|
|
252
|
+
export type EDIT_LABEL_DELETE_T = 13;
|
|
253
|
+
export type EDIT_LABEL_MERGE_T = 14;
|
|
254
|
+
export type EDIT_LABEL_ADD_ANNOTATION_T = 15;
|
|
255
|
+
export type EDIT_LABEL_ADD_ALIAS_T = 16;
|
|
256
|
+
export type EDIT_LABEL_DELETE_ALIAS_T = 17;
|
|
257
|
+
export type EDIT_LABEL_EDIT_ALIAS_T = 18;
|
|
103
258
|
export type EDIT_RELEASEGROUP_CREATE_T = 20;
|
|
104
259
|
export type EDIT_RELEASEGROUP_EDIT_T = 21;
|
|
260
|
+
export type EDIT_RELEASEGROUP_SET_COVER_ART_T = 22;
|
|
261
|
+
export type EDIT_RELEASEGROUP_DELETE_T = 23;
|
|
262
|
+
export type EDIT_RELEASEGROUP_MERGE_T = 24;
|
|
263
|
+
export type EDIT_RELEASEGROUP_ADD_ANNOTATION_T = 25;
|
|
264
|
+
export type EDIT_RELEASEGROUP_ADD_ALIAS_T = 26;
|
|
265
|
+
export type EDIT_RELEASEGROUP_DELETE_ALIAS_T = 27;
|
|
266
|
+
export type EDIT_RELEASEGROUP_EDIT_ALIAS_T = 28;
|
|
105
267
|
export type EDIT_RELEASE_CREATE_T = 31;
|
|
106
268
|
export type EDIT_RELEASE_EDIT_T = 32;
|
|
269
|
+
export type EDIT_RELEASE_MOVE_T = 33;
|
|
107
270
|
export type EDIT_RELEASE_ADDRELEASELABEL_T = 34;
|
|
108
271
|
export type EDIT_RELEASE_ADD_ANNOTATION_T = 35;
|
|
109
272
|
export type EDIT_RELEASE_DELETERELEASELABEL_T = 36;
|
|
110
273
|
export type EDIT_RELEASE_EDITRELEASELABEL_T = 37;
|
|
274
|
+
export type EDIT_RELEASE_CHANGE_QUALITY_T = 38;
|
|
275
|
+
export type EDIT_RELEASE_EDIT_BARCODES_T = 39;
|
|
276
|
+
export type EDIT_RELEASE_DELETE_T = 310;
|
|
277
|
+
export type EDIT_RELEASE_ARTIST_T = 312;
|
|
111
278
|
export type EDIT_RELEASE_REORDER_MEDIUMS_T = 313;
|
|
279
|
+
export type EDIT_RELEASE_ADD_COVER_ART_T = 314;
|
|
280
|
+
export type EDIT_RELEASE_REMOVE_COVER_ART_T = 315;
|
|
281
|
+
export type EDIT_RELEASE_EDIT_COVER_ART_T = 316;
|
|
282
|
+
export type EDIT_RELEASE_REORDER_COVER_ART_T = 317;
|
|
283
|
+
export type EDIT_RELEASE_ADD_ALIAS_T = 318;
|
|
284
|
+
export type EDIT_RELEASE_DELETE_ALIAS_T = 319;
|
|
285
|
+
export type EDIT_RELEASE_EDIT_ALIAS_T = 320;
|
|
112
286
|
export type EDIT_WORK_CREATE_T = 41;
|
|
287
|
+
export type EDIT_WORK_EDIT_T = 42;
|
|
288
|
+
export type EDIT_WORK_DELETE_T = 43;
|
|
289
|
+
export type EDIT_WORK_MERGE_T = 44;
|
|
290
|
+
export type EDIT_WORK_ADD_ANNOTATION_T = 45;
|
|
291
|
+
export type EDIT_WORK_ADD_ALIAS_T = 46;
|
|
292
|
+
export type EDIT_WORK_DELETE_ALIAS_T = 47;
|
|
293
|
+
export type EDIT_WORK_EDIT_ALIAS_T = 48;
|
|
294
|
+
export type EDIT_WORK_ADD_ISWCS_T = 49;
|
|
295
|
+
export type EDIT_WORK_REMOVE_ISWC_T = 410;
|
|
113
296
|
export type EDIT_MEDIUM_CREATE_T = 51;
|
|
114
297
|
export type EDIT_MEDIUM_EDIT_T = 52;
|
|
115
298
|
export type EDIT_MEDIUM_DELETE_T = 53;
|
|
299
|
+
export type EDIT_MEDIUM_REMOVE_DISCID_T = 54;
|
|
116
300
|
export type EDIT_MEDIUM_ADD_DISCID_T = 55;
|
|
301
|
+
export type EDIT_MEDIUM_MOVE_DISCID_T = 56;
|
|
302
|
+
export type EDIT_SET_TRACK_LENGTHS_T = 58;
|
|
303
|
+
export type EDIT_PLACE_CREATE_T = 61;
|
|
304
|
+
export type EDIT_PLACE_EDIT_T = 62;
|
|
305
|
+
export type EDIT_PLACE_DELETE_T = 63;
|
|
306
|
+
export type EDIT_PLACE_MERGE_T = 64;
|
|
307
|
+
export type EDIT_PLACE_ADD_ANNOTATION_T = 65;
|
|
308
|
+
export type EDIT_PLACE_ADD_ALIAS_T = 66;
|
|
309
|
+
export type EDIT_PLACE_DELETE_ALIAS_T = 67;
|
|
310
|
+
export type EDIT_PLACE_EDIT_ALIAS_T = 68;
|
|
311
|
+
export type EDIT_RECORDING_CREATE_T = 71;
|
|
117
312
|
export type EDIT_RECORDING_EDIT_T = 72;
|
|
313
|
+
export type EDIT_RECORDING_DELETE_T = 73;
|
|
314
|
+
export type EDIT_RECORDING_MERGE_T = 74;
|
|
315
|
+
export type EDIT_RECORDING_ADD_ANNOTATION_T = 75;
|
|
316
|
+
export type EDIT_RECORDING_ADD_ISRCS_T = 76;
|
|
317
|
+
export type EDIT_RECORDING_REMOVE_ISRC_T = 78;
|
|
318
|
+
export type EDIT_RECORDING_ADD_ALIAS_T = 711;
|
|
319
|
+
export type EDIT_RECORDING_DELETE_ALIAS_T = 712;
|
|
320
|
+
export type EDIT_RECORDING_EDIT_ALIAS_T = 713;
|
|
321
|
+
export type EDIT_AREA_CREATE_T = 81;
|
|
322
|
+
export type EDIT_AREA_EDIT_T = 82;
|
|
323
|
+
export type EDIT_AREA_DELETE_T = 83;
|
|
324
|
+
export type EDIT_AREA_MERGE_T = 84;
|
|
325
|
+
export type EDIT_AREA_ADD_ANNOTATION_T = 85;
|
|
326
|
+
export type EDIT_AREA_ADD_ALIAS_T = 86;
|
|
327
|
+
export type EDIT_AREA_DELETE_ALIAS_T = 87;
|
|
328
|
+
export type EDIT_AREA_EDIT_ALIAS_T = 88;
|
|
118
329
|
export type EDIT_RELATIONSHIP_CREATE_T = 90;
|
|
119
330
|
export type EDIT_RELATIONSHIP_EDIT_T = 91;
|
|
120
331
|
export type EDIT_RELATIONSHIP_DELETE_T = 92;
|
|
332
|
+
export type EDIT_RELATIONSHIP_REMOVE_LINK_TYPE_T = 93;
|
|
333
|
+
export type EDIT_RELATIONSHIP_REMOVE_LINK_ATTRIBUTE_T = 94;
|
|
334
|
+
export type EDIT_RELATIONSHIP_EDIT_LINK_TYPE_T = 95;
|
|
335
|
+
export type EDIT_RELATIONSHIP_ADD_TYPE_T = 96;
|
|
336
|
+
export type EDIT_RELATIONSHIP_ATTRIBUTE_T = 97;
|
|
337
|
+
export type EDIT_RELATIONSHIP_ADD_ATTRIBUTE_T = 98;
|
|
121
338
|
export type EDIT_RELATIONSHIPS_REORDER_T = 99;
|
|
339
|
+
export type EDIT_SERIES_CREATE_T = 140;
|
|
340
|
+
export type EDIT_SERIES_EDIT_T = 141;
|
|
341
|
+
export type EDIT_SERIES_DELETE_T = 142;
|
|
342
|
+
export type EDIT_SERIES_MERGE_T = 143;
|
|
343
|
+
export type EDIT_SERIES_ADD_ANNOTATION_T = 144;
|
|
344
|
+
export type EDIT_SERIES_ADD_ALIAS_T = 145;
|
|
345
|
+
export type EDIT_SERIES_DELETE_ALIAS_T = 146;
|
|
346
|
+
export type EDIT_SERIES_EDIT_ALIAS_T = 147;
|
|
347
|
+
export type EDIT_INSTRUMENT_CREATE_T = 131;
|
|
348
|
+
export type EDIT_INSTRUMENT_EDIT_T = 132;
|
|
349
|
+
export type EDIT_INSTRUMENT_DELETE_T = 133;
|
|
350
|
+
export type EDIT_INSTRUMENT_MERGE_T = 134;
|
|
351
|
+
export type EDIT_INSTRUMENT_ADD_ANNOTATION_T = 135;
|
|
352
|
+
export type EDIT_INSTRUMENT_ADD_ALIAS_T = 136;
|
|
353
|
+
export type EDIT_INSTRUMENT_DELETE_ALIAS_T = 137;
|
|
354
|
+
export type EDIT_INSTRUMENT_EDIT_ALIAS_T = 138;
|
|
355
|
+
export type EDIT_EVENT_CREATE_T = 150;
|
|
356
|
+
export type EDIT_EVENT_EDIT_T = 151;
|
|
357
|
+
export type EDIT_EVENT_DELETE_T = 152;
|
|
358
|
+
export type EDIT_EVENT_MERGE_T = 153;
|
|
359
|
+
export type EDIT_EVENT_ADD_ANNOTATION_T = 154;
|
|
360
|
+
export type EDIT_EVENT_ADD_ALIAS_T = 155;
|
|
361
|
+
export type EDIT_EVENT_DELETE_ALIAS_T = 156;
|
|
362
|
+
export type EDIT_EVENT_EDIT_ALIAS_T = 157;
|
|
363
|
+
export type EDIT_EVENT_ADD_EVENT_ART_T = 158;
|
|
364
|
+
export type EDIT_EVENT_REMOVE_EVENT_ART_T = 159;
|
|
365
|
+
export type EDIT_EVENT_EDIT_EVENT_ART_T = 1510;
|
|
366
|
+
export type EDIT_EVENT_REORDER_EVENT_ART_T = 1511;
|
|
367
|
+
export type EDIT_GENRE_CREATE_T = 160;
|
|
368
|
+
export type EDIT_GENRE_EDIT_T = 161;
|
|
369
|
+
export type EDIT_GENRE_DELETE_T = 162;
|
|
370
|
+
export type EDIT_GENRE_ADD_ANNOTATION_T = 164;
|
|
371
|
+
export type EDIT_GENRE_ADD_ALIAS_T = 165;
|
|
372
|
+
export type EDIT_GENRE_DELETE_ALIAS_T = 166;
|
|
373
|
+
export type EDIT_GENRE_EDIT_ALIAS_T = 167;
|
|
374
|
+
export type EDIT_WIKIDOC_CHANGE_T = 120;
|
|
375
|
+
export type EDIT_URL_EDIT_T = 101;
|
|
376
|
+
export type EDIT_HISTORIC_EDIT_RELEASE_NAME_T = 201;
|
|
377
|
+
export type EDIT_HISTORIC_EDIT_TRACKNAME_T = 204;
|
|
378
|
+
export type EDIT_HISTORIC_EDIT_TRACKNUM_T = 205;
|
|
379
|
+
export type EDIT_HISTORIC_ADD_TRACK_T = 207;
|
|
380
|
+
export type EDIT_HISTORIC_MOVE_RELEASE_T = 208;
|
|
381
|
+
export type EDIT_HISTORIC_SAC_TO_MAC_T = 209;
|
|
382
|
+
export type EDIT_HISTORIC_CHANGE_TRACK_ARTIST_T = 210;
|
|
383
|
+
export type EDIT_HISTORIC_REMOVE_TRACK_T = 211;
|
|
384
|
+
export type EDIT_HISTORIC_REMOVE_RELEASE_T = 212;
|
|
385
|
+
export type EDIT_HISTORIC_MAC_TO_SAC_T = 213;
|
|
386
|
+
export type EDIT_HISTORIC_ADD_RELEASE_T = 216;
|
|
387
|
+
export type EDIT_HISTORIC_ADD_TRACK_KV_T = 218;
|
|
388
|
+
export type EDIT_HISTORIC_REMOVE_DISCID_T = 220;
|
|
389
|
+
export type EDIT_HISTORIC_MOVE_DISCID_T = 221;
|
|
390
|
+
export type EDIT_HISTORIC_MERGE_RELEASE_T = 223;
|
|
391
|
+
export type EDIT_HISTORIC_REMOVE_RELEASES_T = 224;
|
|
392
|
+
export type EDIT_HISTORIC_MERGE_RELEASE_MAC_T = 225;
|
|
393
|
+
export type EDIT_HISTORIC_EDIT_RELEASE_ATTRS_T = 226;
|
|
394
|
+
export type EDIT_HISTORIC_EDIT_RELEASE_EVENTS_OLD_T = 229;
|
|
395
|
+
export type EDIT_HISTORIC_ADD_RELEASE_ANNOTATION_T = 231;
|
|
396
|
+
export type EDIT_HISTORIC_ADD_DISCID_T = 232;
|
|
397
|
+
export type EDIT_HISTORIC_ADD_LINK_T = 233;
|
|
398
|
+
export type EDIT_HISTORIC_EDIT_LINK_T = 234;
|
|
399
|
+
export type EDIT_HISTORIC_REMOVE_LINK_T = 235;
|
|
400
|
+
export type EDIT_HISTORIC_EDIT_RELEASE_LANGUAGE_T = 244;
|
|
401
|
+
export type EDIT_HISTORIC_EDIT_TRACK_LENGTH_T = 245;
|
|
402
|
+
export type EDIT_HISTORIC_ADD_RELEASE_EVENTS_T = 249;
|
|
403
|
+
export type EDIT_HISTORIC_EDIT_RELEASE_EVENTS_T = 250;
|
|
404
|
+
export type EDIT_HISTORIC_REMOVE_RELEASE_EVENTS_T = 251;
|
|
405
|
+
export type EDIT_HISTORIC_CHANGE_ARTIST_QUALITY_T = 252;
|
|
406
|
+
export type EDIT_HISTORIC_SET_TRACK_LENGTHS_FROM_CDTOC_T = 253;
|
|
407
|
+
export type EDIT_HISTORIC_REMOVE_LABEL_ALIAS_T = 262;
|
|
408
|
+
export type EDIT_HISTORIC_CHANGE_RELEASE_QUALITY_T = 263;
|
|
409
|
+
export type EDIT_HISTORIC_CHANGE_RELEASE_GROUP_T = 273;
|
|
410
|
+
export type AddAnnotationEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
411
|
+
display_data: {
|
|
412
|
+
[annotatedEntityType: AnnotatedEntityTypeT]: AnnotatedEntityT;
|
|
413
|
+
changelog: string;
|
|
414
|
+
entity_type: AnnotatedEntityTypeT;
|
|
415
|
+
html: string;
|
|
416
|
+
old_annotation?: string;
|
|
417
|
+
text: string;
|
|
418
|
+
};
|
|
419
|
+
edit_type: EDIT_AREA_ADD_ANNOTATION_T;
|
|
420
|
+
}>>;
|
|
421
|
+
export type AddAreaAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
422
|
+
edit_type: EDIT_AREA_ADD_ANNOTATION_T;
|
|
423
|
+
}>>;
|
|
424
|
+
export type AddArtistAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
425
|
+
edit_type: EDIT_ARTIST_ADD_ANNOTATION_T;
|
|
426
|
+
}>>;
|
|
427
|
+
export type AddEventAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
428
|
+
edit_type: EDIT_EVENT_ADD_ANNOTATION_T;
|
|
429
|
+
}>>;
|
|
430
|
+
export type AddGenreAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
431
|
+
edit_type: EDIT_GENRE_ADD_ANNOTATION_T;
|
|
432
|
+
}>>;
|
|
433
|
+
export type AddInstrumentAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
434
|
+
edit_type: EDIT_INSTRUMENT_ADD_ANNOTATION_T;
|
|
435
|
+
}>>;
|
|
436
|
+
export type AddLabelAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
437
|
+
edit_type: EDIT_LABEL_ADD_ANNOTATION_T;
|
|
438
|
+
}>>;
|
|
439
|
+
export type AddPlaceAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
440
|
+
edit_type: EDIT_PLACE_ADD_ANNOTATION_T;
|
|
441
|
+
}>>;
|
|
442
|
+
export type AddRecordingAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
443
|
+
edit_type: EDIT_RECORDING_ADD_ANNOTATION_T;
|
|
444
|
+
}>>;
|
|
445
|
+
export type AddReleaseGroupAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
446
|
+
edit_type: EDIT_RELEASEGROUP_ADD_ANNOTATION_T;
|
|
447
|
+
}>>;
|
|
448
|
+
export type AddReleaseAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
449
|
+
edit_type: EDIT_RELEASE_ADD_ANNOTATION_T;
|
|
450
|
+
}>>;
|
|
451
|
+
export type AddSeriesAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
452
|
+
edit_type: EDIT_SERIES_ADD_ANNOTATION_T;
|
|
453
|
+
}>>;
|
|
454
|
+
export type AddWorkAnnotationEditT = $ReadOnly<$_$Spread<AddAnnotationEditGenericT, {
|
|
455
|
+
edit_type: EDIT_WORK_ADD_ANNOTATION_T;
|
|
456
|
+
}>>;
|
|
457
|
+
export type AddAnnotationEditT = AddAreaAnnotationEditT | AddArtistAnnotationEditT | AddEventAnnotationEditT | AddGenreAnnotationEditT | AddInstrumentAnnotationEditT | AddLabelAnnotationEditT | AddPlaceAnnotationEditT | AddRecordingAnnotationEditT | AddReleaseGroupAnnotationEditT | AddReleaseAnnotationEditT | AddSeriesAnnotationEditT | AddWorkAnnotationEditT;
|
|
458
|
+
export type AddAreaEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
459
|
+
display_data: $_$Spread<DatePeriodRoleT, {
|
|
460
|
+
area: AreaT;
|
|
461
|
+
comment: string | null;
|
|
462
|
+
iso_3166_1: $ReadOnlyArray<string>;
|
|
463
|
+
iso_3166_2: $ReadOnlyArray<string>;
|
|
464
|
+
iso_3166_3: $ReadOnlyArray<string>;
|
|
465
|
+
name: string;
|
|
466
|
+
sort_name: string | null;
|
|
467
|
+
type: AreaTypeT | null;
|
|
468
|
+
}>;
|
|
469
|
+
edit_type: EDIT_AREA_CREATE_T;
|
|
470
|
+
}>>;
|
|
471
|
+
export type AddArtistEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
472
|
+
display_data: $_$Spread<CommentRoleT, $_$Spread<DatePeriodRoleT, {
|
|
473
|
+
area: AreaT | null;
|
|
474
|
+
artist: ArtistT;
|
|
475
|
+
begin_area: AreaT | null;
|
|
476
|
+
end_area: AreaT | null;
|
|
477
|
+
gender: GenderT | null;
|
|
478
|
+
ipi_codes: $ReadOnlyArray<string> | null;
|
|
479
|
+
isni_codes: $ReadOnlyArray<string> | null;
|
|
480
|
+
name: string;
|
|
481
|
+
sort_name: string;
|
|
482
|
+
type: ArtistTypeT | null;
|
|
483
|
+
}>>;
|
|
484
|
+
edit_type: EDIT_ARTIST_CREATE_T;
|
|
485
|
+
}>>;
|
|
486
|
+
export type AddCoverArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
487
|
+
display_data: {
|
|
488
|
+
artwork: ReleaseArtT;
|
|
489
|
+
position: number;
|
|
490
|
+
release: ReleaseT;
|
|
491
|
+
};
|
|
492
|
+
edit_type: EDIT_RELEASE_ADD_COVER_ART_T;
|
|
493
|
+
}>>;
|
|
494
|
+
export type AddDiscIdEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
495
|
+
display_data: {
|
|
496
|
+
medium?: MediumT;
|
|
497
|
+
medium_cdtoc: MediumCDTocT;
|
|
498
|
+
};
|
|
499
|
+
edit_type: EDIT_MEDIUM_ADD_DISCID_T;
|
|
500
|
+
}>>;
|
|
501
|
+
export type AddEventArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
502
|
+
display_data: {
|
|
503
|
+
artwork: EventArtT;
|
|
504
|
+
event: EventT;
|
|
505
|
+
position: number;
|
|
506
|
+
};
|
|
507
|
+
edit_type: EDIT_EVENT_ADD_EVENT_ART_T;
|
|
508
|
+
}>>;
|
|
509
|
+
export type AddEventEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
510
|
+
display_data: $_$Spread<CommentRoleT, $_$Spread<DatePeriodRoleT, {
|
|
511
|
+
cancelled: boolean;
|
|
512
|
+
ended: boolean;
|
|
513
|
+
event: EventT;
|
|
514
|
+
name: string;
|
|
515
|
+
setlist: string;
|
|
516
|
+
time: string | null;
|
|
517
|
+
type: EventTypeT | null;
|
|
518
|
+
}>>;
|
|
519
|
+
edit_type: EDIT_EVENT_CREATE_T;
|
|
520
|
+
}>>;
|
|
521
|
+
export type AddGenreEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
522
|
+
display_data: $_$Spread<CommentRoleT, {
|
|
523
|
+
genre: GenreT;
|
|
524
|
+
name: string;
|
|
525
|
+
}>;
|
|
526
|
+
edit_type: EDIT_GENRE_CREATE_T;
|
|
527
|
+
}>>;
|
|
528
|
+
export type AddInstrumentEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
529
|
+
display_data: $_$Spread<DatePeriodRoleT, {
|
|
530
|
+
comment: string | null;
|
|
531
|
+
description: string | null;
|
|
532
|
+
instrument: InstrumentT;
|
|
533
|
+
name: string;
|
|
534
|
+
type: InstrumentTypeT | null;
|
|
535
|
+
}>;
|
|
536
|
+
edit_type: EDIT_INSTRUMENT_CREATE_T;
|
|
537
|
+
}>>;
|
|
538
|
+
export type AddIsrcsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
539
|
+
display_data: {
|
|
540
|
+
additions: $ReadOnlyArray<{
|
|
541
|
+
isrc: IsrcT;
|
|
542
|
+
recording: RecordingT;
|
|
543
|
+
}>;
|
|
544
|
+
client_version?: string;
|
|
545
|
+
};
|
|
546
|
+
edit_type: EDIT_RECORDING_ADD_ISRCS_T;
|
|
547
|
+
}>>;
|
|
548
|
+
export type AddIswcsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
549
|
+
display_data: {
|
|
550
|
+
additions: $ReadOnlyArray<{
|
|
551
|
+
iswc: IswcT;
|
|
552
|
+
work: WorkT;
|
|
553
|
+
}>;
|
|
554
|
+
};
|
|
555
|
+
edit_type: EDIT_WORK_ADD_ISWCS_T;
|
|
556
|
+
}>>;
|
|
557
|
+
export type AddLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
558
|
+
display_data: {
|
|
559
|
+
area: AreaT;
|
|
560
|
+
begin_date: PartialDateT;
|
|
561
|
+
comment: string;
|
|
562
|
+
end_date: PartialDateT;
|
|
563
|
+
ended: boolean;
|
|
564
|
+
ipi_codes: $ReadOnlyArray<string> | null;
|
|
565
|
+
isni_codes: $ReadOnlyArray<string> | null;
|
|
566
|
+
label: LabelT;
|
|
567
|
+
label_code: number | null;
|
|
568
|
+
name: string;
|
|
569
|
+
sort_name: string;
|
|
570
|
+
type: LabelTypeT | null;
|
|
571
|
+
};
|
|
572
|
+
edit_type: EDIT_LABEL_CREATE_T;
|
|
573
|
+
}>>;
|
|
574
|
+
export type AddMediumEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
575
|
+
display_data: {
|
|
576
|
+
format: MediumFormatT | null;
|
|
577
|
+
name?: string;
|
|
578
|
+
position: number | string;
|
|
579
|
+
release?: ReleaseT;
|
|
580
|
+
tracks?: $ReadOnlyArray<TrackT>;
|
|
581
|
+
};
|
|
582
|
+
edit_type: EDIT_MEDIUM_CREATE_T;
|
|
583
|
+
}>>;
|
|
584
|
+
export type AddPlaceEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
585
|
+
display_data: $_$Spread<DatePeriodRoleT, {
|
|
586
|
+
address: string | null;
|
|
587
|
+
area: AreaT;
|
|
588
|
+
comment: string | null;
|
|
589
|
+
coordinates: CoordinatesT | null;
|
|
590
|
+
name?: string;
|
|
591
|
+
place: PlaceT;
|
|
592
|
+
type: PlaceTypeT | null;
|
|
593
|
+
}>;
|
|
594
|
+
edit_type: EDIT_PLACE_CREATE_T;
|
|
595
|
+
}>>;
|
|
596
|
+
export type AddRelationshipEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
597
|
+
display_data: {
|
|
598
|
+
entered_from?: NonUrlRelatableEntityT;
|
|
599
|
+
relationship: RelationshipT;
|
|
600
|
+
unknown_attributes: boolean;
|
|
601
|
+
};
|
|
602
|
+
edit_type: EDIT_RELATIONSHIP_CREATE_T;
|
|
603
|
+
}>>;
|
|
604
|
+
export type AddRelationshipAttributeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
605
|
+
display_data: {
|
|
606
|
+
child_order: number;
|
|
607
|
+
creditable: boolean;
|
|
608
|
+
description: string | null;
|
|
609
|
+
free_text: boolean;
|
|
610
|
+
name: string;
|
|
611
|
+
parent?: LinkAttrTypeT;
|
|
612
|
+
};
|
|
613
|
+
edit_type: EDIT_RELATIONSHIP_ADD_ATTRIBUTE_T;
|
|
614
|
+
}>>;
|
|
615
|
+
export type AddRelationshipTypeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
616
|
+
display_data: {
|
|
617
|
+
attributes: $ReadOnlyArray<$_$Spread<LinkTypeAttrTypeT, {
|
|
618
|
+
typeName: string;
|
|
619
|
+
}>>;
|
|
620
|
+
child_order: number;
|
|
621
|
+
description: string | null;
|
|
622
|
+
documentation: string | null;
|
|
623
|
+
entity0_cardinality?: number;
|
|
624
|
+
entity0_type: RelatableEntityTypeT;
|
|
625
|
+
entity1_cardinality?: number;
|
|
626
|
+
entity1_type: RelatableEntityTypeT;
|
|
627
|
+
link_phrase: string;
|
|
628
|
+
long_link_phrase: string;
|
|
629
|
+
name: string;
|
|
630
|
+
orderable_direction?: OrderableDirectionT;
|
|
631
|
+
relationship_type?: LinkTypeT;
|
|
632
|
+
reverse_link_phrase: string;
|
|
633
|
+
};
|
|
634
|
+
edit_type: EDIT_RELATIONSHIP_ADD_TYPE_T;
|
|
635
|
+
}>>;
|
|
636
|
+
export type AddReleaseEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
637
|
+
display_data: {
|
|
638
|
+
artist_credit: ArtistCreditT;
|
|
639
|
+
barcode: string | null;
|
|
640
|
+
comment: string;
|
|
641
|
+
events?: $ReadOnlyArray<ReleaseEventT>;
|
|
642
|
+
language: LanguageT | null;
|
|
643
|
+
name: string;
|
|
644
|
+
packaging: ReleasePackagingT | null;
|
|
645
|
+
release: ReleaseT;
|
|
646
|
+
release_group: ReleaseGroupT;
|
|
647
|
+
script: ScriptT | null;
|
|
648
|
+
status: ReleaseStatusT | null;
|
|
649
|
+
};
|
|
650
|
+
edit_type: EDIT_RELEASE_CREATE_T;
|
|
651
|
+
}>>;
|
|
652
|
+
export type AddReleaseGroupEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
653
|
+
display_data: {
|
|
654
|
+
artist_credit: ArtistCreditT;
|
|
655
|
+
comment: string;
|
|
656
|
+
name: string;
|
|
657
|
+
release_group: ReleaseGroupT;
|
|
658
|
+
secondary_types: string;
|
|
659
|
+
type: ReleaseGroupTypeT | ReleaseGroupHistoricTypeT | null;
|
|
660
|
+
};
|
|
661
|
+
edit_type: EDIT_RELEASEGROUP_CREATE_T;
|
|
662
|
+
}>>;
|
|
663
|
+
export type AddReleaseLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
664
|
+
display_data: {
|
|
665
|
+
catalog_number: string;
|
|
666
|
+
label?: LabelT;
|
|
667
|
+
release?: ReleaseT;
|
|
668
|
+
};
|
|
669
|
+
edit_type: EDIT_RELEASE_ADDRELEASELABEL_T;
|
|
670
|
+
}>>;
|
|
671
|
+
export type AddRemoveAliasEditGenericT<T> = $ReadOnly<$_$Spread<GenericEditT, {
|
|
672
|
+
display_data: {
|
|
673
|
+
[coreEntityType: EntityWithAliasesTypeT]: EntityWithAliasesT;
|
|
674
|
+
alias: string;
|
|
675
|
+
begin_date: PartialDateT;
|
|
676
|
+
end_date: PartialDateT;
|
|
677
|
+
ended?: boolean;
|
|
678
|
+
entity_type: EntityWithAliasesTypeT;
|
|
679
|
+
locale: string | null;
|
|
680
|
+
primary_for_locale: boolean;
|
|
681
|
+
sort_name: string | null;
|
|
682
|
+
type: T | null;
|
|
683
|
+
};
|
|
684
|
+
}>>;
|
|
685
|
+
export type AddAreaAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<AreaAliasTypeT>, {
|
|
686
|
+
edit_type: EDIT_AREA_ADD_ALIAS_T;
|
|
687
|
+
}>>;
|
|
688
|
+
export type AddArtistAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ArtistAliasTypeT>, {
|
|
689
|
+
edit_type: EDIT_ARTIST_ADD_ALIAS_T;
|
|
690
|
+
}>>;
|
|
691
|
+
export type AddEventAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<EventAliasTypeT>, {
|
|
692
|
+
edit_type: EDIT_EVENT_ADD_ALIAS_T;
|
|
693
|
+
}>>;
|
|
694
|
+
export type AddGenreAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<GenreAliasTypeT>, {
|
|
695
|
+
edit_type: EDIT_GENRE_ADD_ALIAS_T;
|
|
696
|
+
}>>;
|
|
697
|
+
export type AddInstrumentAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<InstrumentAliasTypeT>, {
|
|
698
|
+
edit_type: EDIT_INSTRUMENT_ADD_ALIAS_T;
|
|
699
|
+
}>>;
|
|
700
|
+
export type AddLabelAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<LabelAliasTypeT>, {
|
|
701
|
+
edit_type: EDIT_LABEL_ADD_ALIAS_T;
|
|
702
|
+
}>>;
|
|
703
|
+
export type AddPlaceAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<PlaceAliasTypeT>, {
|
|
704
|
+
edit_type: EDIT_PLACE_ADD_ALIAS_T;
|
|
705
|
+
}>>;
|
|
706
|
+
export type AddRecordingAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<RecordingAliasTypeT>, {
|
|
707
|
+
edit_type: EDIT_RECORDING_ADD_ALIAS_T;
|
|
708
|
+
}>>;
|
|
709
|
+
export type AddReleaseGroupAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ReleaseGroupAliasTypeT>, {
|
|
710
|
+
edit_type: EDIT_RELEASEGROUP_ADD_ALIAS_T;
|
|
711
|
+
}>>;
|
|
712
|
+
export type AddReleaseAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ReleaseAliasTypeT>, {
|
|
713
|
+
edit_type: EDIT_RELEASE_ADD_ALIAS_T;
|
|
714
|
+
}>>;
|
|
715
|
+
export type AddSeriesAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<SeriesAliasTypeT>, {
|
|
716
|
+
edit_type: EDIT_SERIES_ADD_ALIAS_T;
|
|
717
|
+
}>>;
|
|
718
|
+
export type AddWorkAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<WorkAliasTypeT>, {
|
|
719
|
+
edit_type: EDIT_WORK_ADD_ALIAS_T;
|
|
720
|
+
}>>;
|
|
721
|
+
export type RemoveAreaAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<AreaAliasTypeT>, {
|
|
722
|
+
edit_type: EDIT_AREA_DELETE_ALIAS_T;
|
|
723
|
+
}>>;
|
|
724
|
+
export type RemoveArtistAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ArtistAliasTypeT>, {
|
|
725
|
+
edit_type: EDIT_ARTIST_DELETE_ALIAS_T;
|
|
726
|
+
}>>;
|
|
727
|
+
export type RemoveEventAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<EventAliasTypeT>, {
|
|
728
|
+
edit_type: EDIT_EVENT_DELETE_ALIAS_T;
|
|
729
|
+
}>>;
|
|
730
|
+
export type RemoveGenreAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<GenreAliasTypeT>, {
|
|
731
|
+
edit_type: EDIT_GENRE_DELETE_ALIAS_T;
|
|
732
|
+
}>>;
|
|
733
|
+
export type RemoveInstrumentAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<InstrumentAliasTypeT>, {
|
|
734
|
+
edit_type: EDIT_INSTRUMENT_DELETE_ALIAS_T;
|
|
735
|
+
}>>;
|
|
736
|
+
export type RemoveLabelAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<LabelAliasTypeT>, {
|
|
737
|
+
edit_type: EDIT_LABEL_DELETE_ALIAS_T;
|
|
738
|
+
}>>;
|
|
739
|
+
export type RemovePlaceAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<PlaceAliasTypeT>, {
|
|
740
|
+
edit_type: EDIT_PLACE_DELETE_ALIAS_T;
|
|
741
|
+
}>>;
|
|
742
|
+
export type RemoveRecordingAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<RecordingAliasTypeT>, {
|
|
743
|
+
edit_type: EDIT_RECORDING_DELETE_ALIAS_T;
|
|
744
|
+
}>>;
|
|
745
|
+
export type RemoveReleaseGroupAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ReleaseGroupAliasTypeT>, {
|
|
746
|
+
edit_type: EDIT_RELEASEGROUP_DELETE_ALIAS_T;
|
|
747
|
+
}>>;
|
|
748
|
+
export type RemoveReleaseAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<ReleaseAliasTypeT>, {
|
|
749
|
+
edit_type: EDIT_RELEASE_DELETE_ALIAS_T;
|
|
750
|
+
}>>;
|
|
751
|
+
export type RemoveSeriesAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<SeriesAliasTypeT>, {
|
|
752
|
+
edit_type: EDIT_SERIES_DELETE_ALIAS_T;
|
|
753
|
+
}>>;
|
|
754
|
+
export type RemoveWorkAliasEditT = $ReadOnly<$_$Spread<AddRemoveAliasEditGenericT<WorkAliasTypeT>, {
|
|
755
|
+
edit_type: EDIT_WORK_DELETE_ALIAS_T;
|
|
756
|
+
}>>;
|
|
757
|
+
export type AddRemoveAliasEditT = AddAreaAliasEditT | AddArtistAliasEditT | AddEventAliasEditT | AddGenreAliasEditT | AddInstrumentAliasEditT | AddLabelAliasEditT | AddPlaceAliasEditT | AddRecordingAliasEditT | AddReleaseGroupAliasEditT | AddReleaseAliasEditT | AddSeriesAliasEditT | AddWorkAliasEditT | RemoveAreaAliasEditT | RemoveArtistAliasEditT | RemoveEventAliasEditT | RemoveGenreAliasEditT | RemoveInstrumentAliasEditT | RemoveLabelAliasEditT | RemovePlaceAliasEditT | RemoveRecordingAliasEditT | RemoveReleaseGroupAliasEditT | RemoveReleaseAliasEditT | RemoveSeriesAliasEditT | RemoveWorkAliasEditT;
|
|
758
|
+
export type AddSeriesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
759
|
+
display_data: {
|
|
760
|
+
comment: string;
|
|
761
|
+
name: string;
|
|
762
|
+
ordering_type: SeriesOrderingTypeT | null;
|
|
763
|
+
series: SeriesT;
|
|
764
|
+
type: SeriesTypeT | null;
|
|
765
|
+
};
|
|
766
|
+
edit_type: EDIT_SERIES_CREATE_T;
|
|
767
|
+
}>>;
|
|
768
|
+
export type AddStandaloneRecordingEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
769
|
+
display_data: {
|
|
770
|
+
artist_credit: ArtistCreditT;
|
|
771
|
+
comment: string | null;
|
|
772
|
+
length: number | null;
|
|
773
|
+
name: string;
|
|
774
|
+
recording: RecordingT;
|
|
775
|
+
video: boolean;
|
|
776
|
+
};
|
|
777
|
+
edit_type: EDIT_RECORDING_CREATE_T;
|
|
778
|
+
}>>;
|
|
779
|
+
export type AddWorkEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
780
|
+
display_data: {
|
|
781
|
+
attributes?: {
|
|
782
|
+
[attributeName: string]: $ReadOnlyArray<WorkAttributeT>;
|
|
783
|
+
};
|
|
784
|
+
comment: string;
|
|
785
|
+
iswc: string;
|
|
786
|
+
language?: LanguageT;
|
|
787
|
+
languages?: $ReadOnlyArray<LanguageT>;
|
|
788
|
+
name: string;
|
|
789
|
+
type: WorkTypeT | null;
|
|
790
|
+
work: WorkT;
|
|
791
|
+
};
|
|
792
|
+
edit_type: EDIT_WORK_CREATE_T;
|
|
793
|
+
}>>;
|
|
794
|
+
export type ChangeReleaseQualityEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
795
|
+
display_data: {
|
|
796
|
+
quality: CompT<QualityT>;
|
|
797
|
+
release: ReleaseT;
|
|
798
|
+
};
|
|
799
|
+
edit_type: EDIT_RELEASE_CHANGE_QUALITY_T;
|
|
800
|
+
}>>;
|
|
801
|
+
export type ChangeWikiDocEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
802
|
+
display_data: {
|
|
803
|
+
new_version: number | null;
|
|
804
|
+
old_version: number | null;
|
|
805
|
+
page: string;
|
|
806
|
+
};
|
|
807
|
+
edit_type: EDIT_WIKIDOC_CHANGE_T;
|
|
808
|
+
}>>;
|
|
809
|
+
export type EditAliasEditGenericT<A, T> = $ReadOnly<$_$Spread<GenericEditT, {
|
|
810
|
+
alias: A | null;
|
|
811
|
+
display_data: {
|
|
812
|
+
[coreEntityType: EntityWithAliasesTypeT]: EntityWithAliasesT;
|
|
813
|
+
alias: CompT<string>;
|
|
814
|
+
begin_date: CompT<PartialDateT>;
|
|
815
|
+
end_date: CompT<PartialDateT>;
|
|
816
|
+
ended: CompT<boolean>;
|
|
817
|
+
entity_type: EntityWithAliasesTypeT;
|
|
818
|
+
locale: CompT<string | null>;
|
|
819
|
+
primary_for_locale: CompT<boolean>;
|
|
820
|
+
sort_name: CompT<string>;
|
|
821
|
+
type: CompT<T | null>;
|
|
822
|
+
};
|
|
823
|
+
}>>;
|
|
824
|
+
export type EditAreaAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<AreaAliasT, AreaAliasTypeT>, {
|
|
825
|
+
edit_type: EDIT_AREA_EDIT_ALIAS_T;
|
|
826
|
+
}>>;
|
|
827
|
+
export type EditArtistAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<ArtistAliasT, ArtistAliasTypeT>, {
|
|
828
|
+
edit_type: EDIT_ARTIST_EDIT_ALIAS_T;
|
|
829
|
+
}>>;
|
|
830
|
+
export type EditEventAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<EventAliasT, EventAliasTypeT>, {
|
|
831
|
+
edit_type: EDIT_EVENT_EDIT_ALIAS_T;
|
|
832
|
+
}>>;
|
|
833
|
+
export type EditGenreAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<GenreAliasT, GenreAliasTypeT>, {
|
|
834
|
+
edit_type: EDIT_GENRE_EDIT_ALIAS_T;
|
|
835
|
+
}>>;
|
|
836
|
+
export type EditInstrumentAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<InstrumentAliasT, InstrumentAliasTypeT>, {
|
|
837
|
+
edit_type: EDIT_INSTRUMENT_EDIT_ALIAS_T;
|
|
838
|
+
}>>;
|
|
839
|
+
export type EditLabelAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<LabelAliasT, LabelAliasTypeT>, {
|
|
840
|
+
edit_type: EDIT_LABEL_EDIT_ALIAS_T;
|
|
841
|
+
}>>;
|
|
842
|
+
export type EditPlaceAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<PlaceAliasT, PlaceAliasTypeT>, {
|
|
843
|
+
edit_type: EDIT_PLACE_EDIT_ALIAS_T;
|
|
844
|
+
}>>;
|
|
845
|
+
export type EditRecordingAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<RecordingAliasT, RecordingAliasTypeT>, {
|
|
846
|
+
edit_type: EDIT_RECORDING_EDIT_ALIAS_T;
|
|
847
|
+
}>>;
|
|
848
|
+
export type EditReleaseGroupAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<ReleaseGroupAliasT, ReleaseGroupAliasTypeT>, {
|
|
849
|
+
edit_type: EDIT_RELEASEGROUP_EDIT_ALIAS_T;
|
|
850
|
+
}>>;
|
|
851
|
+
export type EditReleaseAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<ReleaseAliasT, ReleaseAliasTypeT>, {
|
|
852
|
+
edit_type: EDIT_RELEASE_EDIT_ALIAS_T;
|
|
853
|
+
}>>;
|
|
854
|
+
export type EditSeriesAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<SeriesAliasT, SeriesAliasTypeT>, {
|
|
855
|
+
edit_type: EDIT_SERIES_EDIT_ALIAS_T;
|
|
856
|
+
}>>;
|
|
857
|
+
export type EditWorkAliasEditT = $ReadOnly<$_$Spread<EditAliasEditGenericT<WorkAliasT, WorkAliasTypeT>, {
|
|
858
|
+
edit_type: EDIT_WORK_EDIT_ALIAS_T;
|
|
859
|
+
}>>;
|
|
860
|
+
export type EditAliasEditT = EditAreaAliasEditT | EditArtistAliasEditT | EditEventAliasEditT | EditGenreAliasEditT | EditInstrumentAliasEditT | EditLabelAliasEditT | EditPlaceAliasEditT | EditRecordingAliasEditT | EditReleaseGroupAliasEditT | EditReleaseAliasEditT | EditSeriesAliasEditT | EditWorkAliasEditT;
|
|
861
|
+
export type EditAreaEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
862
|
+
display_data: {
|
|
863
|
+
area: AreaT;
|
|
864
|
+
begin_date?: CompT<PartialDateT>;
|
|
865
|
+
comment?: CompT<string | null>;
|
|
866
|
+
end_date?: CompT<PartialDateT>;
|
|
867
|
+
ended?: CompT<boolean>;
|
|
868
|
+
iso_3166_1?: CompT<$ReadOnlyArray<string> | null>;
|
|
869
|
+
iso_3166_2?: CompT<$ReadOnlyArray<string> | null>;
|
|
870
|
+
iso_3166_3?: CompT<$ReadOnlyArray<string> | null>;
|
|
871
|
+
name?: CompT<string>;
|
|
872
|
+
sort_name?: CompT<string>;
|
|
873
|
+
type?: CompT<AreaTypeT | null>;
|
|
874
|
+
};
|
|
875
|
+
edit_type: EDIT_AREA_EDIT_T;
|
|
876
|
+
}>>;
|
|
877
|
+
export type EditArtistEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
878
|
+
display_data: {
|
|
879
|
+
area?: CompT<AreaT | null>;
|
|
880
|
+
artist: ArtistT;
|
|
881
|
+
begin_area?: CompT<AreaT | null>;
|
|
882
|
+
begin_date?: CompT<PartialDateT>;
|
|
883
|
+
comment?: CompT<string | null>;
|
|
884
|
+
end_area?: CompT<AreaT | null>;
|
|
885
|
+
end_date?: CompT<PartialDateT>;
|
|
886
|
+
ended?: CompT<boolean>;
|
|
887
|
+
gender?: CompT<GenderT | null>;
|
|
888
|
+
ipi_codes?: CompT<$ReadOnlyArray<string> | null>;
|
|
889
|
+
isni_codes?: CompT<$ReadOnlyArray<string> | null>;
|
|
890
|
+
name?: CompT<string>;
|
|
891
|
+
sort_name?: CompT<string>;
|
|
892
|
+
type?: CompT<ArtistTypeT | null>;
|
|
893
|
+
};
|
|
894
|
+
edit_type: EDIT_ARTIST_EDIT_T;
|
|
895
|
+
}>>;
|
|
896
|
+
export type EditArtistCreditEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
897
|
+
display_data: {
|
|
898
|
+
artist_credit: CompT<ArtistCreditT>;
|
|
899
|
+
};
|
|
900
|
+
edit_type: EDIT_ARTIST_EDITCREDIT_T;
|
|
901
|
+
}>>;
|
|
902
|
+
export type EditBarcodesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
903
|
+
display_data: {
|
|
904
|
+
client_version: string | null;
|
|
905
|
+
submissions: $ReadOnlyArray<{
|
|
906
|
+
new_barcode: string | null;
|
|
907
|
+
old_barcode?: string | null;
|
|
908
|
+
release: ReleaseT;
|
|
909
|
+
}>;
|
|
910
|
+
};
|
|
911
|
+
edit_type: EDIT_RELEASE_EDIT_BARCODES_T;
|
|
912
|
+
}>>;
|
|
913
|
+
export type EditCoverArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
914
|
+
display_data: {
|
|
915
|
+
artwork: ReleaseArtT;
|
|
916
|
+
comment: CompT<string | null>;
|
|
917
|
+
release: ReleaseT;
|
|
918
|
+
types: CompT<$ReadOnlyArray<CoverArtTypeT>>;
|
|
919
|
+
};
|
|
920
|
+
edit_type: EDIT_RELEASE_EDIT_COVER_ART_T;
|
|
921
|
+
}>>;
|
|
922
|
+
export type EditEventArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
923
|
+
display_data: {
|
|
924
|
+
artwork: EventArtT;
|
|
925
|
+
comment: CompT<string | null>;
|
|
926
|
+
event: EventT;
|
|
927
|
+
types: CompT<$ReadOnlyArray<EventArtTypeT>>;
|
|
928
|
+
};
|
|
929
|
+
edit_type: EDIT_EVENT_EDIT_EVENT_ART_T;
|
|
930
|
+
}>>;
|
|
931
|
+
export type EditEventEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
932
|
+
display_data: {
|
|
933
|
+
begin_date?: CompT<PartialDateT | null>;
|
|
934
|
+
cancelled?: CompT<boolean>;
|
|
935
|
+
comment?: CompT<string | null>;
|
|
936
|
+
end_date?: CompT<PartialDateT | null>;
|
|
937
|
+
event: EventT;
|
|
938
|
+
name?: CompT<string>;
|
|
939
|
+
setlist?: CompT<string | null>;
|
|
940
|
+
time?: CompT<string | null>;
|
|
941
|
+
type?: CompT<EventTypeT | null>;
|
|
942
|
+
};
|
|
943
|
+
edit_type: EDIT_EVENT_EDIT_T;
|
|
944
|
+
}>>;
|
|
945
|
+
export type EditGenreEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
946
|
+
display_data: {
|
|
947
|
+
comment?: CompT<string | null>;
|
|
948
|
+
genre: GenreT;
|
|
949
|
+
name?: CompT<string>;
|
|
950
|
+
};
|
|
951
|
+
edit_type: EDIT_GENRE_EDIT_T;
|
|
952
|
+
}>>;
|
|
953
|
+
export type EditInstrumentEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
954
|
+
display_data: {
|
|
955
|
+
comment?: CompT<string | null>;
|
|
956
|
+
description?: CompT<string | null>;
|
|
957
|
+
instrument: InstrumentT;
|
|
958
|
+
name?: CompT<string>;
|
|
959
|
+
type?: CompT<InstrumentTypeT | null>;
|
|
960
|
+
};
|
|
961
|
+
edit_type: EDIT_INSTRUMENT_EDIT_T;
|
|
962
|
+
}>>;
|
|
963
|
+
export type EditLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
964
|
+
display_data: {
|
|
965
|
+
area?: CompT<AreaT | null>;
|
|
966
|
+
begin_date?: CompT<PartialDateT>;
|
|
967
|
+
comment?: CompT<string | null>;
|
|
968
|
+
end_date?: CompT<PartialDateT>;
|
|
969
|
+
ended?: CompT<boolean>;
|
|
970
|
+
ipi_codes?: CompT<$ReadOnlyArray<string> | null>;
|
|
971
|
+
isni_codes?: CompT<$ReadOnlyArray<string> | null>;
|
|
972
|
+
label: LabelT;
|
|
973
|
+
label_code?: CompT<number>;
|
|
974
|
+
name?: CompT<string>;
|
|
975
|
+
sort_name?: CompT<string>;
|
|
976
|
+
type?: CompT<LabelTypeT | null>;
|
|
977
|
+
};
|
|
978
|
+
edit_type: EDIT_LABEL_EDIT_T;
|
|
979
|
+
}>>;
|
|
980
|
+
export type EditMediumEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
981
|
+
display_data: {
|
|
982
|
+
artist_credit_changes?: $ReadOnlyArray<TracklistChangesAddT | TracklistChangesChangeT>;
|
|
983
|
+
changed_mbids: boolean;
|
|
984
|
+
data_track_changes: boolean;
|
|
985
|
+
format?: CompT<MediumFormatT | null>;
|
|
986
|
+
medium: MediumT;
|
|
987
|
+
name?: CompT<string>;
|
|
988
|
+
position?: CompT<number | string>;
|
|
989
|
+
recording_changes?: $ReadOnlyArray<TracklistChangesAddT | TracklistChangesChangeT>;
|
|
990
|
+
tracklist_changes?: $ReadOnlyArray<TracklistChangesAddT | TracklistChangesChangeT | TracklistChangesRemoveT>;
|
|
991
|
+
};
|
|
992
|
+
edit_type: EDIT_MEDIUM_EDIT_T;
|
|
993
|
+
}>>;
|
|
994
|
+
export type EditPlaceEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
995
|
+
display_data: {
|
|
996
|
+
address?: CompT<string>;
|
|
997
|
+
area?: CompT<AreaT | null>;
|
|
998
|
+
begin_date?: CompT<PartialDateT>;
|
|
999
|
+
comment?: CompT<string>;
|
|
1000
|
+
coordinates?: CompT<CoordinatesT | null>;
|
|
1001
|
+
end_date?: CompT<PartialDateT>;
|
|
1002
|
+
ended?: CompT<boolean>;
|
|
1003
|
+
name: CompT<string>;
|
|
1004
|
+
place: PlaceT;
|
|
1005
|
+
type?: CompT<PlaceTypeT | null>;
|
|
1006
|
+
};
|
|
1007
|
+
edit_type: EDIT_PLACE_EDIT_T;
|
|
1008
|
+
}>>;
|
|
1009
|
+
export type EditRecordingEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1010
|
+
display_data: {
|
|
1011
|
+
artist_credit?: CompT<ArtistCreditT>;
|
|
1012
|
+
comment?: CompT<string | null>;
|
|
1013
|
+
length?: CompT<number | null>;
|
|
1014
|
+
name?: CompT<string>;
|
|
1015
|
+
recording: RecordingT;
|
|
1016
|
+
video?: CompT<boolean>;
|
|
1017
|
+
};
|
|
1018
|
+
}>>;
|
|
1019
|
+
export type EditRecordingEditHistoricLengthT = $ReadOnly<$_$Spread<EditRecordingEditGenericT, {
|
|
1020
|
+
edit_type: EDIT_HISTORIC_EDIT_TRACK_LENGTH_T;
|
|
1021
|
+
}>>;
|
|
1022
|
+
export type EditRecordingEditHistoricNameT = $ReadOnly<$_$Spread<EditRecordingEditGenericT, {
|
|
1023
|
+
edit_type: EDIT_HISTORIC_EDIT_TRACKNAME_T;
|
|
1024
|
+
}>>;
|
|
1025
|
+
export type EditRecordingEditCurrentT = $ReadOnly<$_$Spread<EditRecordingEditGenericT, {
|
|
1026
|
+
edit_type: EDIT_RECORDING_EDIT_T;
|
|
1027
|
+
}>>;
|
|
1028
|
+
export type EditRecordingEditT = EditRecordingEditHistoricLengthT | EditRecordingEditHistoricNameT | EditRecordingEditCurrentT;
|
|
1029
|
+
export type EditRelationshipEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1030
|
+
display_data: {
|
|
1031
|
+
entered_from?: NonUrlRelatableEntityT;
|
|
1032
|
+
new: RelationshipT;
|
|
1033
|
+
old: RelationshipT;
|
|
1034
|
+
unknown_attributes: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
edit_type: EDIT_RELATIONSHIP_EDIT_T;
|
|
1037
|
+
}>>;
|
|
1038
|
+
export type EditRelationshipAttributeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1039
|
+
display_data: {
|
|
1040
|
+
attribute_type: LinkAttrTypeT | null;
|
|
1041
|
+
child_order?: CompT<number>;
|
|
1042
|
+
creditable?: CompT<boolean>;
|
|
1043
|
+
description?: CompT<string | null>;
|
|
1044
|
+
free_text?: CompT<boolean>;
|
|
1045
|
+
name?: CompT<string>;
|
|
1046
|
+
original_description: string | null;
|
|
1047
|
+
original_name: string;
|
|
1048
|
+
parent?: CompT<LinkAttrTypeT | null>;
|
|
1049
|
+
};
|
|
1050
|
+
edit_type: EDIT_RELATIONSHIP_ATTRIBUTE_T;
|
|
1051
|
+
}>>;
|
|
1052
|
+
export type EditRelationshipTypeEditDisplayAttributeT = $_$Spread<LinkTypeAttrTypeT, {
|
|
1053
|
+
typeName: string;
|
|
1054
|
+
}>;
|
|
1055
|
+
export type EditRelationshipTypeEditDisplayExampleT = {
|
|
1056
|
+
name: string;
|
|
1057
|
+
relationship: RelationshipT;
|
|
1058
|
+
};
|
|
1059
|
+
export type EditRelationshipTypeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1060
|
+
display_data: {
|
|
1061
|
+
attributes: CompT<$ReadOnlyArray<EditRelationshipTypeEditDisplayAttributeT>>;
|
|
1062
|
+
child_order: CompT<number>;
|
|
1063
|
+
description?: CompT<string | null>;
|
|
1064
|
+
documentation: CompT<string | null>;
|
|
1065
|
+
entity0_cardinality?: CompT<number>;
|
|
1066
|
+
entity1_cardinality?: CompT<number>;
|
|
1067
|
+
examples: CompT<$ReadOnlyArray<EditRelationshipTypeEditDisplayExampleT>>;
|
|
1068
|
+
has_dates: CompT<boolean>;
|
|
1069
|
+
is_deprecated: CompT<boolean>;
|
|
1070
|
+
link_phrase?: CompT<string>;
|
|
1071
|
+
long_link_phrase?: CompT<string>;
|
|
1072
|
+
name: CompT<string>;
|
|
1073
|
+
orderable_direction?: CompT<OrderableDirectionT>;
|
|
1074
|
+
parent?: CompT<LinkTypeT | null>;
|
|
1075
|
+
relationship_type: LinkTypeT;
|
|
1076
|
+
reverse_link_phrase: CompT<string>;
|
|
1077
|
+
};
|
|
1078
|
+
edit_type: EDIT_RELATIONSHIP_EDIT_LINK_TYPE_T;
|
|
1079
|
+
}>>;
|
|
1080
|
+
export type EditReleaseEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1081
|
+
display_data: {
|
|
1082
|
+
artist_credit?: CompT<ArtistCreditT>;
|
|
1083
|
+
barcode?: CompT<string | null>;
|
|
1084
|
+
comment?: CompT<string | null>;
|
|
1085
|
+
events?: CompT<$ReadOnlyArray<ReleaseEventT>>;
|
|
1086
|
+
language?: CompT<LanguageT | null>;
|
|
1087
|
+
name?: CompT<string>;
|
|
1088
|
+
packaging?: CompT<ReleasePackagingT | null>;
|
|
1089
|
+
release: ReleaseT;
|
|
1090
|
+
release_group?: CompT<ReleaseGroupT>;
|
|
1091
|
+
script?: CompT<ScriptT | null>;
|
|
1092
|
+
status?: CompT<ReleaseStatusT | null>;
|
|
1093
|
+
update_tracklists?: boolean;
|
|
1094
|
+
};
|
|
1095
|
+
}>>;
|
|
1096
|
+
export type EditReleaseEditHistoricArtistT = $ReadOnly<$_$Spread<EditReleaseEditGenericT, {
|
|
1097
|
+
edit_type: EDIT_RELEASE_ARTIST_T;
|
|
1098
|
+
}>>;
|
|
1099
|
+
export type EditReleaseEditCurrentT = $ReadOnly<$_$Spread<EditReleaseEditGenericT, {
|
|
1100
|
+
edit_type: EDIT_RELEASE_EDIT_T;
|
|
1101
|
+
}>>;
|
|
1102
|
+
export type EditReleaseEditT = EditReleaseEditHistoricArtistT | EditReleaseEditCurrentT;
|
|
1103
|
+
export type EditReleaseGroupEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1104
|
+
display_data: {
|
|
1105
|
+
artist_credit?: CompT<ArtistCreditT>;
|
|
1106
|
+
comment?: CompT<string | null>;
|
|
1107
|
+
name?: CompT<string>;
|
|
1108
|
+
release_group: ReleaseGroupT;
|
|
1109
|
+
secondary_types: CompT<string>;
|
|
1110
|
+
type?: CompT<ReleaseGroupTypeT | ReleaseGroupHistoricTypeT | null>;
|
|
1111
|
+
};
|
|
1112
|
+
edit_type: EDIT_RELEASEGROUP_EDIT_T;
|
|
1113
|
+
}>>;
|
|
1114
|
+
export type EditReleaseLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1115
|
+
display_data: {
|
|
1116
|
+
barcode: string | null;
|
|
1117
|
+
catalog_number: {
|
|
1118
|
+
new?: string | null;
|
|
1119
|
+
old: string | null;
|
|
1120
|
+
};
|
|
1121
|
+
combined_format?: string;
|
|
1122
|
+
events: $ReadOnlyArray<ReleaseEventT>;
|
|
1123
|
+
label: {
|
|
1124
|
+
new?: LabelT | null;
|
|
1125
|
+
old: LabelT | null;
|
|
1126
|
+
};
|
|
1127
|
+
release: ReleaseT;
|
|
1128
|
+
};
|
|
1129
|
+
edit_type: EDIT_RELEASE_EDITRELEASELABEL_T;
|
|
1130
|
+
}>>;
|
|
1131
|
+
export type EditSeriesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1132
|
+
display_data: {
|
|
1133
|
+
comment?: CompT<string>;
|
|
1134
|
+
name?: CompT<string>;
|
|
1135
|
+
ordering_type?: CompT<SeriesOrderingTypeT>;
|
|
1136
|
+
series: SeriesT;
|
|
1137
|
+
type?: CompT<SeriesTypeT>;
|
|
1138
|
+
};
|
|
1139
|
+
edit_type: EDIT_SERIES_EDIT_T;
|
|
1140
|
+
}>>;
|
|
1141
|
+
export type EditUrlEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1142
|
+
display_data: {
|
|
1143
|
+
affects: number;
|
|
1144
|
+
description?: CompT<string | null>;
|
|
1145
|
+
isMerge: boolean;
|
|
1146
|
+
uri?: CompT<string>;
|
|
1147
|
+
url: UrlT;
|
|
1148
|
+
};
|
|
1149
|
+
edit_type: EDIT_URL_EDIT_T;
|
|
1150
|
+
}>>;
|
|
1151
|
+
export type EditWorkEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1152
|
+
display_data: {
|
|
1153
|
+
attributes?: {
|
|
1154
|
+
[attributeName: string]: CompT<$ReadOnlyArray<string>>;
|
|
1155
|
+
};
|
|
1156
|
+
comment?: CompT<string | null>;
|
|
1157
|
+
iswc?: CompT<string | null>;
|
|
1158
|
+
languages?: CompT<$ReadOnlyArray<LanguageT>>;
|
|
1159
|
+
name?: CompT<string>;
|
|
1160
|
+
type?: CompT<WorkTypeT | null>;
|
|
1161
|
+
work: WorkT;
|
|
1162
|
+
};
|
|
1163
|
+
edit_type: EDIT_WORK_EDIT_T;
|
|
1164
|
+
}>>;
|
|
1165
|
+
export type MergeAreasEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1166
|
+
display_data: {
|
|
1167
|
+
new: AreaT;
|
|
1168
|
+
old: $ReadOnlyArray<AreaT>;
|
|
1169
|
+
};
|
|
1170
|
+
edit_type: EDIT_AREA_MERGE_T;
|
|
1171
|
+
}>>;
|
|
1172
|
+
export type MergeArtistsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1173
|
+
display_data: {
|
|
1174
|
+
new: ArtistT;
|
|
1175
|
+
old: $ReadOnlyArray<ArtistT>;
|
|
1176
|
+
rename: boolean;
|
|
1177
|
+
};
|
|
1178
|
+
edit_type: EDIT_ARTIST_MERGE_T;
|
|
1179
|
+
}>>;
|
|
1180
|
+
export type MergeEventsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1181
|
+
display_data: {
|
|
1182
|
+
new: EventT;
|
|
1183
|
+
old: $ReadOnlyArray<EventT>;
|
|
1184
|
+
};
|
|
1185
|
+
edit_type: EDIT_EVENT_MERGE_T;
|
|
1186
|
+
}>>;
|
|
1187
|
+
export type MergeInstrumentsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1188
|
+
display_data: {
|
|
1189
|
+
new: InstrumentT;
|
|
1190
|
+
old: $ReadOnlyArray<InstrumentT>;
|
|
1191
|
+
};
|
|
1192
|
+
edit_type: EDIT_INSTRUMENT_MERGE_T;
|
|
1193
|
+
}>>;
|
|
1194
|
+
export type MergeLabelsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1195
|
+
display_data: {
|
|
1196
|
+
new: LabelT;
|
|
1197
|
+
old: $ReadOnlyArray<LabelT>;
|
|
1198
|
+
};
|
|
1199
|
+
edit_type: EDIT_LABEL_MERGE_T;
|
|
1200
|
+
}>>;
|
|
1201
|
+
export type MergePlacesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1202
|
+
display_data: {
|
|
1203
|
+
new: PlaceT;
|
|
1204
|
+
old: $ReadOnlyArray<PlaceT>;
|
|
1205
|
+
};
|
|
1206
|
+
edit_type: EDIT_PLACE_MERGE_T;
|
|
1207
|
+
}>>;
|
|
1208
|
+
export type MergeRecordingsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1209
|
+
display_data: {
|
|
1210
|
+
large_spread: boolean;
|
|
1211
|
+
new: RecordingT;
|
|
1212
|
+
old: $ReadOnlyArray<RecordingT>;
|
|
1213
|
+
};
|
|
1214
|
+
edit_type: EDIT_RECORDING_MERGE_T;
|
|
1215
|
+
}>>;
|
|
1216
|
+
export type MergeReleaseGroupsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1217
|
+
display_data: {
|
|
1218
|
+
new: ReleaseGroupT;
|
|
1219
|
+
old: $ReadOnlyArray<ReleaseGroupT>;
|
|
1220
|
+
};
|
|
1221
|
+
edit_type: EDIT_RELEASEGROUP_MERGE_T;
|
|
1222
|
+
}>>;
|
|
1223
|
+
export type MergeReleasesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1224
|
+
display_data: {
|
|
1225
|
+
cannot_merge_recordings_reason?: {
|
|
1226
|
+
message: string;
|
|
1227
|
+
vars: {
|
|
1228
|
+
var: string;
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
}>>;
|
|
1233
|
+
export type MergeSeriesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1234
|
+
display_data: {
|
|
1235
|
+
new: SeriesT;
|
|
1236
|
+
old: $ReadOnlyArray<SeriesT>;
|
|
1237
|
+
};
|
|
1238
|
+
edit_type: EDIT_SERIES_MERGE_T;
|
|
1239
|
+
}>>;
|
|
1240
|
+
export type MergeWorksEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1241
|
+
display_data: {
|
|
1242
|
+
new: WorkT;
|
|
1243
|
+
old: $ReadOnlyArray<WorkT>;
|
|
1244
|
+
};
|
|
1245
|
+
edit_type: EDIT_WORK_MERGE_T;
|
|
1246
|
+
}>>;
|
|
1247
|
+
export type MoveDiscIdEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1248
|
+
display_data: {
|
|
1249
|
+
medium_cdtoc: MediumCDTocT;
|
|
1250
|
+
new_medium: MediumT;
|
|
1251
|
+
old_medium: MediumT;
|
|
1252
|
+
};
|
|
1253
|
+
edit_type: EDIT_MEDIUM_MOVE_DISCID_T;
|
|
1254
|
+
}>>;
|
|
1255
|
+
export type RemoveCoverArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1256
|
+
display_data: {
|
|
1257
|
+
artwork: ReleaseArtT;
|
|
1258
|
+
release: ReleaseT;
|
|
1259
|
+
};
|
|
1260
|
+
edit_type: EDIT_RELEASE_REMOVE_COVER_ART_T;
|
|
1261
|
+
}>>;
|
|
1262
|
+
export type RemoveDiscIdEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1263
|
+
display_data: {
|
|
1264
|
+
cdtoc: CDTocT;
|
|
1265
|
+
medium: MediumT;
|
|
1266
|
+
};
|
|
1267
|
+
edit_type: EDIT_MEDIUM_REMOVE_DISCID_T;
|
|
1268
|
+
}>>;
|
|
1269
|
+
export type RemoveAreaEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1270
|
+
display_data: {
|
|
1271
|
+
entity: AreaT;
|
|
1272
|
+
entity_type: "area";
|
|
1273
|
+
};
|
|
1274
|
+
edit_type: EDIT_AREA_DELETE_T;
|
|
1275
|
+
}>>;
|
|
1276
|
+
export type RemoveArtistEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1277
|
+
display_data: {
|
|
1278
|
+
entity: ArtistT;
|
|
1279
|
+
entity_type: "artist";
|
|
1280
|
+
};
|
|
1281
|
+
edit_type: EDIT_ARTIST_DELETE_T;
|
|
1282
|
+
}>>;
|
|
1283
|
+
export type RemoveEventArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1284
|
+
display_data: {
|
|
1285
|
+
artwork: EventArtT;
|
|
1286
|
+
event: EventT;
|
|
1287
|
+
};
|
|
1288
|
+
edit_type: EDIT_EVENT_REMOVE_EVENT_ART_T;
|
|
1289
|
+
}>>;
|
|
1290
|
+
export type RemoveEventEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1291
|
+
display_data: {
|
|
1292
|
+
entity: EventT;
|
|
1293
|
+
entity_type: "event";
|
|
1294
|
+
};
|
|
1295
|
+
edit_type: EDIT_EVENT_DELETE_T;
|
|
1296
|
+
}>>;
|
|
1297
|
+
export type RemoveGenreEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1298
|
+
display_data: {
|
|
1299
|
+
entity: GenreT;
|
|
1300
|
+
entity_type: "genre";
|
|
1301
|
+
};
|
|
1302
|
+
edit_type: EDIT_GENRE_DELETE_T;
|
|
1303
|
+
}>>;
|
|
1304
|
+
export type RemoveInstrumentEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1305
|
+
display_data: {
|
|
1306
|
+
entity: InstrumentT;
|
|
1307
|
+
entity_type: "instrument";
|
|
1308
|
+
};
|
|
1309
|
+
edit_type: EDIT_INSTRUMENT_DELETE_T;
|
|
1310
|
+
}>>;
|
|
1311
|
+
export type RemoveLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1312
|
+
display_data: {
|
|
1313
|
+
entity: LabelT;
|
|
1314
|
+
entity_type: "label";
|
|
1315
|
+
};
|
|
1316
|
+
edit_type: EDIT_LABEL_DELETE_T;
|
|
1317
|
+
}>>;
|
|
1318
|
+
export type RemovePlaceEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1319
|
+
display_data: {
|
|
1320
|
+
entity: PlaceT;
|
|
1321
|
+
entity_type: "place";
|
|
1322
|
+
};
|
|
1323
|
+
edit_type: EDIT_PLACE_DELETE_T;
|
|
1324
|
+
}>>;
|
|
1325
|
+
export type RemoveRecordingEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1326
|
+
display_data: {
|
|
1327
|
+
entity: RecordingT;
|
|
1328
|
+
entity_type: "recording";
|
|
1329
|
+
};
|
|
1330
|
+
edit_type: EDIT_RECORDING_DELETE_T;
|
|
1331
|
+
}>>;
|
|
1332
|
+
export type RemoveReleaseGroupEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1333
|
+
display_data: {
|
|
1334
|
+
entity: ReleaseGroupT;
|
|
1335
|
+
entity_type: "release_group";
|
|
1336
|
+
};
|
|
1337
|
+
edit_type: EDIT_RELEASEGROUP_DELETE_T;
|
|
1338
|
+
}>>;
|
|
1339
|
+
export type RemoveReleaseEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1340
|
+
display_data: {
|
|
1341
|
+
entity: ReleaseT;
|
|
1342
|
+
entity_type: "release";
|
|
1343
|
+
};
|
|
1344
|
+
edit_type: EDIT_RELEASE_DELETE_T;
|
|
1345
|
+
}>>;
|
|
1346
|
+
export type RemoveSeriesEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1347
|
+
display_data: {
|
|
1348
|
+
entity: SeriesT;
|
|
1349
|
+
entity_type: "series";
|
|
1350
|
+
};
|
|
1351
|
+
edit_type: EDIT_SERIES_DELETE_T;
|
|
1352
|
+
}>>;
|
|
1353
|
+
export type RemoveWorkEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1354
|
+
display_data: {
|
|
1355
|
+
entity: WorkT;
|
|
1356
|
+
entity_type: "work";
|
|
1357
|
+
};
|
|
1358
|
+
edit_type: EDIT_WORK_DELETE_T;
|
|
1359
|
+
}>>;
|
|
1360
|
+
export type RemoveEntityEditT = RemoveAreaEditT | RemoveArtistEditT | RemoveEventEditT | RemoveGenreEditT | RemoveInstrumentEditT | RemoveLabelEditT | RemovePlaceEditT | RemoveRecordingEditT | RemoveReleaseGroupEditT | RemoveReleaseEditT | RemoveSeriesEditT | RemoveWorkEditT;
|
|
1361
|
+
export type RemoveIsrcEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1362
|
+
display_data: {
|
|
1363
|
+
isrc: IsrcT;
|
|
1364
|
+
};
|
|
1365
|
+
edit_type: EDIT_RECORDING_REMOVE_ISRC_T;
|
|
1366
|
+
}>>;
|
|
1367
|
+
export type RemoveIswcEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1368
|
+
display_data: {
|
|
1369
|
+
iswc: IswcT;
|
|
1370
|
+
};
|
|
1371
|
+
edit_type: EDIT_WORK_REMOVE_ISWC_T;
|
|
1372
|
+
}>>;
|
|
1373
|
+
export type RemoveMediumEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1374
|
+
display_data: {
|
|
1375
|
+
medium: MediumT;
|
|
1376
|
+
tracks?: $ReadOnlyArray<TrackT>;
|
|
1377
|
+
};
|
|
1378
|
+
edit_type: EDIT_MEDIUM_DELETE_T;
|
|
1379
|
+
}>>;
|
|
1380
|
+
export type RemoveRelationshipEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1381
|
+
data: {
|
|
1382
|
+
edit_version?: number;
|
|
1383
|
+
relationship: {
|
|
1384
|
+
entity0: {
|
|
1385
|
+
gid?: string;
|
|
1386
|
+
id: number;
|
|
1387
|
+
name: string;
|
|
1388
|
+
};
|
|
1389
|
+
entity0_credit?: string;
|
|
1390
|
+
entity1: {
|
|
1391
|
+
gid?: string;
|
|
1392
|
+
id: number;
|
|
1393
|
+
name: string;
|
|
1394
|
+
};
|
|
1395
|
+
entity1_credit?: string;
|
|
1396
|
+
extra_phrase_attributes?: string;
|
|
1397
|
+
id: number;
|
|
1398
|
+
link: {
|
|
1399
|
+
attributes?: $ReadOnlyArray<{
|
|
1400
|
+
credited_as?: string;
|
|
1401
|
+
gid?: string;
|
|
1402
|
+
id?: string | number;
|
|
1403
|
+
name?: string;
|
|
1404
|
+
root_gid?: string;
|
|
1405
|
+
root_id?: string | number;
|
|
1406
|
+
root_name?: string;
|
|
1407
|
+
text_value?: string;
|
|
1408
|
+
type?: {
|
|
1409
|
+
gid: string;
|
|
1410
|
+
id: string | number;
|
|
1411
|
+
name: string;
|
|
1412
|
+
root: {
|
|
1413
|
+
gid: string;
|
|
1414
|
+
id: string | number;
|
|
1415
|
+
name: string;
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
}>;
|
|
1419
|
+
begin_date: {
|
|
1420
|
+
day: number | null;
|
|
1421
|
+
month: number | null;
|
|
1422
|
+
year: string | number | null;
|
|
1423
|
+
};
|
|
1424
|
+
end_date: {
|
|
1425
|
+
day: number | null;
|
|
1426
|
+
month: number | null;
|
|
1427
|
+
year: string | number | null;
|
|
1428
|
+
};
|
|
1429
|
+
ended?: string;
|
|
1430
|
+
type: {
|
|
1431
|
+
entity0_type: string;
|
|
1432
|
+
entity1_type: string;
|
|
1433
|
+
id?: string | number;
|
|
1434
|
+
long_link_phrase?: string;
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
phrase?: string;
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1440
|
+
display_data: {
|
|
1441
|
+
entered_from?: NonUrlRelatableEntityT;
|
|
1442
|
+
relationship: RelationshipT;
|
|
1443
|
+
};
|
|
1444
|
+
edit_type: EDIT_RELATIONSHIP_DELETE_T;
|
|
1445
|
+
}>>;
|
|
1446
|
+
export type RemoveRelationshipAttributeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1447
|
+
display_data: {
|
|
1448
|
+
description: string | null;
|
|
1449
|
+
name: string;
|
|
1450
|
+
};
|
|
1451
|
+
edit_type: EDIT_RELATIONSHIP_REMOVE_LINK_ATTRIBUTE_T;
|
|
1452
|
+
}>>;
|
|
1453
|
+
export type RemoveRelationshipTypeEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1454
|
+
display_data: {
|
|
1455
|
+
attributes: $ReadOnlyArray<$_$Spread<LinkTypeAttrTypeT, {
|
|
1456
|
+
typeName: string;
|
|
1457
|
+
}>>;
|
|
1458
|
+
description: string | null;
|
|
1459
|
+
entity0_type: RelatableEntityTypeT;
|
|
1460
|
+
entity1_type: RelatableEntityTypeT;
|
|
1461
|
+
link_phrase: string;
|
|
1462
|
+
long_link_phrase: string;
|
|
1463
|
+
name: string;
|
|
1464
|
+
reverse_link_phrase: string;
|
|
1465
|
+
};
|
|
1466
|
+
edit_type: EDIT_RELATIONSHIP_REMOVE_LINK_TYPE_T;
|
|
1467
|
+
}>>;
|
|
1468
|
+
export type RemoveReleaseLabelEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1469
|
+
display_data: {
|
|
1470
|
+
catalog_number: string;
|
|
1471
|
+
label?: LabelT;
|
|
1472
|
+
release: ReleaseT;
|
|
1473
|
+
};
|
|
1474
|
+
edit_type: EDIT_RELEASE_DELETERELEASELABEL_T;
|
|
1475
|
+
}>>;
|
|
1476
|
+
export type ReorderCoverArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1477
|
+
display_data: {
|
|
1478
|
+
new: $ReadOnlyArray<ReleaseArtT>;
|
|
1479
|
+
old: $ReadOnlyArray<ReleaseArtT>;
|
|
1480
|
+
release: ReleaseT;
|
|
1481
|
+
};
|
|
1482
|
+
edit_type: EDIT_RELEASE_REORDER_COVER_ART_T;
|
|
1483
|
+
}>>;
|
|
1484
|
+
export type ReorderEventArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1485
|
+
display_data: {
|
|
1486
|
+
event: EventT;
|
|
1487
|
+
new: $ReadOnlyArray<EventArtT>;
|
|
1488
|
+
old: $ReadOnlyArray<EventArtT>;
|
|
1489
|
+
};
|
|
1490
|
+
edit_type: EDIT_EVENT_REORDER_EVENT_ART_T;
|
|
1491
|
+
}>>;
|
|
1492
|
+
export type ReorderMediumsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1493
|
+
display_data: {
|
|
1494
|
+
mediums: $ReadOnlyArray<{
|
|
1495
|
+
new: number;
|
|
1496
|
+
old: "new" | number;
|
|
1497
|
+
title: string;
|
|
1498
|
+
}>;
|
|
1499
|
+
release: ReleaseT;
|
|
1500
|
+
};
|
|
1501
|
+
edit_type: EDIT_RELEASE_REORDER_MEDIUMS_T;
|
|
1502
|
+
}>>;
|
|
1503
|
+
export type ReorderRelationshipsEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1504
|
+
display_data: {
|
|
1505
|
+
entered_from?: NonUrlRelatableEntityT;
|
|
1506
|
+
relationships: $ReadOnlyArray<{
|
|
1507
|
+
new_order: number;
|
|
1508
|
+
old_order: number;
|
|
1509
|
+
relationship: RelationshipT;
|
|
1510
|
+
}>;
|
|
1511
|
+
};
|
|
1512
|
+
edit_type: EDIT_RELATIONSHIPS_REORDER_T;
|
|
1513
|
+
}>>;
|
|
1514
|
+
export type SetCoverArtEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1515
|
+
display_data: {
|
|
1516
|
+
artwork: CompT<ReleaseArtT>;
|
|
1517
|
+
isOldArtworkAutomatic: boolean;
|
|
1518
|
+
release_group: ReleaseGroupT;
|
|
1519
|
+
};
|
|
1520
|
+
edit_type: EDIT_RELEASEGROUP_SET_COVER_ART_T;
|
|
1521
|
+
}>>;
|
|
1522
|
+
export type SetTrackLengthsEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1523
|
+
display_data: {
|
|
1524
|
+
cdtoc: CDTocT | null;
|
|
1525
|
+
length: CompT<$ReadOnlyArray<number | null>>;
|
|
1526
|
+
medium?: MediumT;
|
|
1527
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1528
|
+
};
|
|
1529
|
+
}>>;
|
|
1530
|
+
export type SetTrackLengthsEditHistoricT = $ReadOnly<$_$Spread<SetTrackLengthsEditGenericT, {
|
|
1531
|
+
edit_type: EDIT_HISTORIC_SET_TRACK_LENGTHS_FROM_CDTOC_T;
|
|
1532
|
+
}>>;
|
|
1533
|
+
export type SetTrackLengthsEditStandardT = $ReadOnly<$_$Spread<SetTrackLengthsEditGenericT, {
|
|
1534
|
+
edit_type: EDIT_SET_TRACK_LENGTHS_T;
|
|
1535
|
+
}>>;
|
|
1536
|
+
export type SetTrackLengthsEditT = SetTrackLengthsEditHistoricT | SetTrackLengthsEditStandardT;
|
|
1537
|
+
export type CurrentEditT = AddAnnotationEditT | AddAreaEditT | AddArtistEditT | AddCoverArtEditT | AddDiscIdEditT | AddEventArtEditT | AddEventEditT | AddGenreEditT | AddInstrumentEditT | AddIsrcsEditT | AddIswcsEditT | AddLabelEditT | AddMediumEditT | AddPlaceEditT | AddRelationshipEditT | AddRelationshipAttributeEditT | AddRelationshipTypeEditT | AddReleaseEditT | AddReleaseGroupEditT | AddReleaseLabelEditT | AddRemoveAliasEditT | AddSeriesEditT | AddStandaloneRecordingEditT | AddWorkEditT | ChangeReleaseQualityEditT | ChangeWikiDocEditT | EditAliasEditT | EditAreaEditT | EditArtistEditT | EditArtistCreditEditT | EditBarcodesEditT | EditCoverArtEditT | EditEventArtEditT | EditEventEditT | EditGenreEditT | EditInstrumentEditT | EditLabelEditT | EditMediumEditT | EditPlaceEditT | EditRecordingEditT | EditRelationshipEditT | EditRelationshipAttributeEditT | EditRelationshipTypeEditT | EditReleaseEditT | EditReleaseGroupEditT | EditReleaseLabelEditT | EditSeriesEditT | EditUrlEditT | EditWorkEditT | MergeAreasEditT | MergeArtistsEditT | MergeEventsEditT | MergeInstrumentsEditT | MergeLabelsEditT | MergePlacesEditT | MergeRecordingsEditT | MergeReleaseGroupsEditT | MergeReleasesEditT | MergeSeriesEditT | MergeWorksEditT | MoveDiscIdEditT | RemoveCoverArtEditT | RemoveDiscIdEditT | RemoveEventArtEditT | RemoveEntityEditT | RemoveIsrcEditT | RemoveIswcEditT | RemoveMediumEditT | RemoveRelationshipEditT | RemoveRelationshipAttributeEditT | RemoveRelationshipTypeEditT | RemoveReleaseLabelEditT | ReorderCoverArtEditT | ReorderEventArtEditT | ReorderMediumsEditT | ReorderRelationshipsEditT | SetCoverArtEditT | SetTrackLengthsEditT;
|
|
1538
|
+
export type AddDiscIdHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1539
|
+
display_data: {
|
|
1540
|
+
cdtoc: CDTocT;
|
|
1541
|
+
full_toc: string;
|
|
1542
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1543
|
+
};
|
|
1544
|
+
edit_type: EDIT_HISTORIC_ADD_DISCID_T;
|
|
1545
|
+
}>>;
|
|
1546
|
+
export type AddRelationshipHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1547
|
+
display_data: {
|
|
1548
|
+
relationships: $ReadOnlyArray<RelationshipT>;
|
|
1549
|
+
};
|
|
1550
|
+
edit_type: EDIT_HISTORIC_ADD_LINK_T;
|
|
1551
|
+
}>>;
|
|
1552
|
+
export type AddReleaseHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1553
|
+
display_data: {
|
|
1554
|
+
artist: ArtistT;
|
|
1555
|
+
language: LanguageT | null;
|
|
1556
|
+
name: string;
|
|
1557
|
+
release_events: $ReadOnlyArray<{
|
|
1558
|
+
barcode: number;
|
|
1559
|
+
catalog_number: string | null;
|
|
1560
|
+
country: AreaT | null;
|
|
1561
|
+
date: PartialDateT | null;
|
|
1562
|
+
format: MediumFormatT | null;
|
|
1563
|
+
label: LabelT | null;
|
|
1564
|
+
}>;
|
|
1565
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1566
|
+
script: ScriptT | null;
|
|
1567
|
+
status: ReleaseStatusT | null;
|
|
1568
|
+
tracks: $ReadOnlyArray<{
|
|
1569
|
+
artist: ArtistT;
|
|
1570
|
+
length: number | null;
|
|
1571
|
+
name: string;
|
|
1572
|
+
position: number;
|
|
1573
|
+
recording: RecordingT;
|
|
1574
|
+
}>;
|
|
1575
|
+
type: ReleaseGroupTypeT | null;
|
|
1576
|
+
};
|
|
1577
|
+
edit_type: EDIT_HISTORIC_ADD_RELEASE_T;
|
|
1578
|
+
}>>;
|
|
1579
|
+
export type AddReleaseAnnotationHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1580
|
+
display_data: {
|
|
1581
|
+
changelog: string;
|
|
1582
|
+
html: string;
|
|
1583
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1584
|
+
text: string;
|
|
1585
|
+
};
|
|
1586
|
+
edit_type: EDIT_HISTORIC_ADD_RELEASE_ANNOTATION_T;
|
|
1587
|
+
}>>;
|
|
1588
|
+
export type AddTrackKVHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1589
|
+
display_data: {
|
|
1590
|
+
artist?: ArtistT;
|
|
1591
|
+
length: number;
|
|
1592
|
+
name: string;
|
|
1593
|
+
position: number;
|
|
1594
|
+
recording: RecordingT;
|
|
1595
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1596
|
+
};
|
|
1597
|
+
edit_type: EDIT_HISTORIC_ADD_TRACK_KV_T;
|
|
1598
|
+
}>>;
|
|
1599
|
+
export type AddTrackOldHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1600
|
+
display_data: {
|
|
1601
|
+
artist_name?: string;
|
|
1602
|
+
name: string;
|
|
1603
|
+
position: number;
|
|
1604
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1605
|
+
};
|
|
1606
|
+
edit_type: EDIT_HISTORIC_ADD_TRACK_T;
|
|
1607
|
+
}>>;
|
|
1608
|
+
export type ChangeArtistQualityHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1609
|
+
display_data: {
|
|
1610
|
+
artist: ArtistT;
|
|
1611
|
+
quality: CompT<QualityT>;
|
|
1612
|
+
};
|
|
1613
|
+
edit_type: EDIT_HISTORIC_CHANGE_ARTIST_QUALITY_T;
|
|
1614
|
+
}>>;
|
|
1615
|
+
export type ChangeReleaseArtistHistoricEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1616
|
+
display_data: {
|
|
1617
|
+
artist: CompT<ArtistT>;
|
|
1618
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1619
|
+
};
|
|
1620
|
+
}>>;
|
|
1621
|
+
export type ChangeReleaseArtistHistoricEditMACToSACT = $ReadOnly<$_$Spread<ChangeReleaseArtistHistoricEditGenericT, {
|
|
1622
|
+
edit_type: EDIT_HISTORIC_MAC_TO_SAC_T;
|
|
1623
|
+
}>>;
|
|
1624
|
+
export type ChangeReleaseArtistHistoricEditSACToMACT = $ReadOnly<$_$Spread<ChangeReleaseArtistHistoricEditGenericT, {
|
|
1625
|
+
edit_type: EDIT_HISTORIC_SAC_TO_MAC_T;
|
|
1626
|
+
}>>;
|
|
1627
|
+
export type ChangeReleaseArtistHistoricEditT = ChangeReleaseArtistHistoricEditMACToSACT | ChangeReleaseArtistHistoricEditSACToMACT;
|
|
1628
|
+
export type ChangeReleaseGroupHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1629
|
+
display_data: {
|
|
1630
|
+
release_group: CompT<ReleaseGroupT>;
|
|
1631
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1632
|
+
};
|
|
1633
|
+
edit_type: EDIT_HISTORIC_CHANGE_RELEASE_GROUP_T;
|
|
1634
|
+
}>>;
|
|
1635
|
+
export type ChangeReleaseQualityHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1636
|
+
display_data: {
|
|
1637
|
+
changes: $ReadOnlyArray<{
|
|
1638
|
+
quality: CompT<QualityT>;
|
|
1639
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1640
|
+
}>;
|
|
1641
|
+
};
|
|
1642
|
+
edit_type: EDIT_HISTORIC_CHANGE_RELEASE_QUALITY_T;
|
|
1643
|
+
}>>;
|
|
1644
|
+
export type EditRelationshipHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1645
|
+
display_data: {
|
|
1646
|
+
relationship: CompT<$ReadOnlyArray<RelationshipT>>;
|
|
1647
|
+
};
|
|
1648
|
+
edit_type: EDIT_HISTORIC_EDIT_LINK_T;
|
|
1649
|
+
}>>;
|
|
1650
|
+
export type EditReleaseAttributesHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1651
|
+
display_data: {
|
|
1652
|
+
changes: $ReadOnlyArray<{
|
|
1653
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1654
|
+
status: ReleaseStatusT | null;
|
|
1655
|
+
type: ReleaseGroupTypeT | ReleaseGroupHistoricTypeT | null;
|
|
1656
|
+
}>;
|
|
1657
|
+
status: ReleaseStatusT | null;
|
|
1658
|
+
type: ReleaseGroupTypeT | ReleaseGroupHistoricTypeT | null;
|
|
1659
|
+
};
|
|
1660
|
+
edit_type: EDIT_HISTORIC_EDIT_RELEASE_ATTRS_T;
|
|
1661
|
+
}>>;
|
|
1662
|
+
export type EditReleaseEventsHistoricEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1663
|
+
display_data: {
|
|
1664
|
+
additions: $ReadOnlyArray<OldReleaseEventT>;
|
|
1665
|
+
edits: $ReadOnlyArray<OldReleaseEventCompT>;
|
|
1666
|
+
removals: $ReadOnlyArray<OldReleaseEventT>;
|
|
1667
|
+
};
|
|
1668
|
+
edit_type: EDIT_HISTORIC_ADD_RELEASE_EVENTS_T | EDIT_HISTORIC_EDIT_RELEASE_EVENTS_T | EDIT_HISTORIC_EDIT_RELEASE_EVENTS_OLD_T | EDIT_HISTORIC_REMOVE_RELEASE_EVENTS_T;
|
|
1669
|
+
}>>;
|
|
1670
|
+
export type AddReleaseEventsHistoricEditT = $ReadOnly<$_$Spread<EditReleaseEventsHistoricEditGenericT, {
|
|
1671
|
+
edit_type: EDIT_HISTORIC_ADD_RELEASE_EVENTS_T;
|
|
1672
|
+
}>>;
|
|
1673
|
+
export type EditReleaseEventsHistoricEditNewerT = $ReadOnly<$_$Spread<EditReleaseEventsHistoricEditGenericT, {
|
|
1674
|
+
edit_type: EDIT_HISTORIC_EDIT_RELEASE_EVENTS_T;
|
|
1675
|
+
}>>;
|
|
1676
|
+
export type EditReleaseEventsHistoricEditOlderT = $ReadOnly<$_$Spread<EditReleaseEventsHistoricEditGenericT, {
|
|
1677
|
+
edit_type: EDIT_HISTORIC_EDIT_RELEASE_EVENTS_OLD_T;
|
|
1678
|
+
}>>;
|
|
1679
|
+
export type RemoveReleaseEventsHistoricEditT = $ReadOnly<$_$Spread<EditReleaseEventsHistoricEditGenericT, {
|
|
1680
|
+
edit_type: EDIT_HISTORIC_REMOVE_RELEASE_EVENTS_T;
|
|
1681
|
+
}>>;
|
|
1682
|
+
export type EditReleaseEventsHistoricEditT = AddReleaseEventsHistoricEditT | EditReleaseEventsHistoricEditNewerT | EditReleaseEventsHistoricEditOlderT | RemoveReleaseEventsHistoricEditT;
|
|
1683
|
+
export type EditReleaseLanguageHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1684
|
+
display_data: {
|
|
1685
|
+
language: LanguageT | null;
|
|
1686
|
+
old: $ReadOnlyArray<{
|
|
1687
|
+
language: LanguageT | null;
|
|
1688
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1689
|
+
script: ScriptT | null;
|
|
1690
|
+
}>;
|
|
1691
|
+
script: ScriptT | null;
|
|
1692
|
+
};
|
|
1693
|
+
edit_type: EDIT_HISTORIC_EDIT_RELEASE_LANGUAGE_T;
|
|
1694
|
+
}>>;
|
|
1695
|
+
export type EditReleaseNameHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1696
|
+
display_data: {
|
|
1697
|
+
name: CompT<string>;
|
|
1698
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1699
|
+
};
|
|
1700
|
+
edit_type: EDIT_HISTORIC_EDIT_RELEASE_NAME_T;
|
|
1701
|
+
}>>;
|
|
1702
|
+
export type EditTrackHistoricEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1703
|
+
display_data: {
|
|
1704
|
+
artist?: CompT<ArtistT>;
|
|
1705
|
+
position?: CompT<number>;
|
|
1706
|
+
recording: RecordingT;
|
|
1707
|
+
};
|
|
1708
|
+
}>>;
|
|
1709
|
+
export type EditTrackHistoricEditArtistT = $ReadOnly<$_$Spread<EditTrackHistoricEditGenericT, {
|
|
1710
|
+
edit_type: EDIT_HISTORIC_CHANGE_TRACK_ARTIST_T;
|
|
1711
|
+
}>>;
|
|
1712
|
+
export type EditTrackHistoricEditNumberT = $ReadOnly<$_$Spread<EditTrackHistoricEditGenericT, {
|
|
1713
|
+
edit_type: EDIT_HISTORIC_EDIT_TRACKNUM_T;
|
|
1714
|
+
}>>;
|
|
1715
|
+
export type EditTrackHistoricEditT = EditTrackHistoricEditArtistT | EditTrackHistoricEditNumberT;
|
|
1716
|
+
export type MergeReleasesHistoricEditGenericT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1717
|
+
display_data: {
|
|
1718
|
+
merge_attributes: boolean;
|
|
1719
|
+
merge_language: boolean;
|
|
1720
|
+
releases: {
|
|
1721
|
+
new: $ReadOnlyArray<ReleaseT>;
|
|
1722
|
+
old: $ReadOnlyArray<ReleaseT>;
|
|
1723
|
+
};
|
|
1724
|
+
};
|
|
1725
|
+
}>>;
|
|
1726
|
+
export type MergeReleasesHistoricEditReleaseT = $ReadOnly<$_$Spread<MergeReleasesHistoricEditGenericT, {
|
|
1727
|
+
edit_type: EDIT_HISTORIC_MERGE_RELEASE_T;
|
|
1728
|
+
}>>;
|
|
1729
|
+
export type MergeReleasesHistoricEditMACT = $ReadOnly<$_$Spread<MergeReleasesHistoricEditGenericT, {
|
|
1730
|
+
edit_type: EDIT_HISTORIC_MERGE_RELEASE_MAC_T;
|
|
1731
|
+
}>>;
|
|
1732
|
+
export type MergeReleasesHistoricEditT = MergeReleasesHistoricEditReleaseT | MergeReleasesHistoricEditMACT;
|
|
1733
|
+
export type MoveDiscIdHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1734
|
+
display_data: {
|
|
1735
|
+
cdtoc: CDTocT;
|
|
1736
|
+
new_releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1737
|
+
old_releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1738
|
+
};
|
|
1739
|
+
edit_type: EDIT_HISTORIC_MOVE_DISCID_T;
|
|
1740
|
+
}>>;
|
|
1741
|
+
export type MoveReleaseHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1742
|
+
display_data: {
|
|
1743
|
+
artist: CompT<ArtistT>;
|
|
1744
|
+
move_tracks: boolean;
|
|
1745
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1746
|
+
};
|
|
1747
|
+
edit_type: EDIT_HISTORIC_MOVE_RELEASE_T;
|
|
1748
|
+
}>>;
|
|
1749
|
+
export type MoveReleaseToReleaseGroupHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1750
|
+
display_data: {
|
|
1751
|
+
release: ReleaseT;
|
|
1752
|
+
release_group: CompT<ReleaseGroupT>;
|
|
1753
|
+
};
|
|
1754
|
+
edit_type: EDIT_RELEASE_MOVE_T;
|
|
1755
|
+
}>>;
|
|
1756
|
+
export type RemoveDiscIdHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1757
|
+
display_data: {
|
|
1758
|
+
cdtoc: {
|
|
1759
|
+
discid: string;
|
|
1760
|
+
entityType: "cdtoc";
|
|
1761
|
+
};
|
|
1762
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1763
|
+
};
|
|
1764
|
+
edit_type: EDIT_HISTORIC_REMOVE_DISCID_T;
|
|
1765
|
+
}>>;
|
|
1766
|
+
export type RemoveLabelAliasHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1767
|
+
display_data: {
|
|
1768
|
+
alias: string;
|
|
1769
|
+
};
|
|
1770
|
+
edit_type: EDIT_HISTORIC_REMOVE_LABEL_ALIAS_T;
|
|
1771
|
+
}>>;
|
|
1772
|
+
export type RemoveRelationshipHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1773
|
+
display_data: {
|
|
1774
|
+
relationships: $ReadOnlyArray<RelationshipT>;
|
|
1775
|
+
};
|
|
1776
|
+
edit_type: EDIT_HISTORIC_REMOVE_LINK_T;
|
|
1777
|
+
}>>;
|
|
1778
|
+
export type RemoveReleaseHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1779
|
+
display_data: {
|
|
1780
|
+
artist_credit?: ArtistCreditT;
|
|
1781
|
+
name: string;
|
|
1782
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1783
|
+
};
|
|
1784
|
+
edit_type: EDIT_HISTORIC_REMOVE_RELEASE_T;
|
|
1785
|
+
}>>;
|
|
1786
|
+
export type RemoveReleasesHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1787
|
+
display_data: {
|
|
1788
|
+
releases: $ReadOnlyArray<ReleaseT>;
|
|
1789
|
+
};
|
|
1790
|
+
edit_type: EDIT_HISTORIC_REMOVE_RELEASES_T;
|
|
1791
|
+
}>>;
|
|
1792
|
+
export type RemoveTrackHistoricEditT = $ReadOnly<$_$Spread<GenericEditT, {
|
|
1793
|
+
display_data: {
|
|
1794
|
+
name: string;
|
|
1795
|
+
recording: RecordingT;
|
|
1796
|
+
releases: $ReadOnlyArray<ReleaseT | null>;
|
|
1797
|
+
};
|
|
1798
|
+
edit_type: EDIT_HISTORIC_REMOVE_TRACK_T;
|
|
1799
|
+
}>>;
|
|
1800
|
+
export type HistoricEditT = AddDiscIdHistoricEditT | AddRelationshipHistoricEditT | AddReleaseHistoricEditT | AddReleaseAnnotationHistoricEditT | AddTrackKVHistoricEditT | AddTrackOldHistoricEditT | ChangeArtistQualityHistoricEditT | ChangeReleaseArtistHistoricEditT | ChangeReleaseGroupHistoricEditT | ChangeReleaseQualityHistoricEditT | EditRelationshipHistoricEditT | EditReleaseAttributesHistoricEditT | EditReleaseEventsHistoricEditT | EditReleaseLanguageHistoricEditT | EditReleaseNameHistoricEditT | EditTrackHistoricEditT | MergeReleasesHistoricEditT | MoveDiscIdHistoricEditT | MoveReleaseHistoricEditT | MoveReleaseToReleaseGroupHistoricEditT | RemoveDiscIdHistoricEditT | RemoveLabelAliasHistoricEditT | RemoveRelationshipHistoricEditT | RemoveReleaseHistoricEditT | RemoveReleasesHistoricEditT | RemoveTrackHistoricEditT;
|
|
122
1801
|
export type EditorT = $_$Spread<EntityRoleT<"editor">, {
|
|
123
1802
|
avatar: string;
|
|
124
1803
|
deleted: boolean;
|
|
125
1804
|
name: string;
|
|
126
1805
|
privileges: number;
|
|
127
1806
|
}>;
|
|
1807
|
+
export type EntityWithAliasesT = AreaT | ArtistT | EventT | GenreT | InstrumentT | LabelT | PlaceT | RecordingT | ReleaseGroupT | ReleaseT | SeriesT | WorkT;
|
|
1808
|
+
export type EntityWithAliasesTypeT = EntityWithAliasesT["entityType"];
|
|
128
1809
|
export type AppearancesT<T> = {
|
|
129
1810
|
hits: number;
|
|
130
1811
|
results: $ReadOnlyArray<T>;
|
|
@@ -135,8 +1816,8 @@ export type CommentRoleT = {
|
|
|
135
1816
|
export type RelatableEntityRoleT<T> = $_$Spread<EntityRoleT<T>, $_$Spread<LastUpdateRoleT, $_$Spread<PendingEditsRoleT, {
|
|
136
1817
|
gid: string;
|
|
137
1818
|
name: string;
|
|
138
|
-
paged_relationship_groups
|
|
139
|
-
relationships
|
|
1819
|
+
paged_relationship_groups?: unknown;
|
|
1820
|
+
relationships?: $ReadOnlyArray<RelationshipT>;
|
|
140
1821
|
}>>>;
|
|
141
1822
|
export type DatePeriodRoleT = {
|
|
142
1823
|
begin_date: PartialDateT | null;
|
|
@@ -154,9 +1835,9 @@ export type LastUpdateRoleT = {
|
|
|
154
1835
|
last_updated: string | null;
|
|
155
1836
|
};
|
|
156
1837
|
export type PartialDateT = {
|
|
157
|
-
day
|
|
158
|
-
month
|
|
159
|
-
year
|
|
1838
|
+
day?: number | null | undefined;
|
|
1839
|
+
month?: number | null | undefined;
|
|
1840
|
+
year?: number | null | undefined;
|
|
160
1841
|
};
|
|
161
1842
|
export type NonUrlRelatableEntityT = AreaT | ArtistT | EventT | GenreT | InstrumentT | LabelT | PlaceT | RecordingT | ReleaseGroupT | ReleaseT | SeriesT | WorkT;
|
|
162
1843
|
export type RelatableEntityT = NonUrlRelatableEntityT | UrlT;
|
|
@@ -164,7 +1845,7 @@ export type NonUrlRelatableEntityTypeT = NonUrlRelatableEntityT["entityType"];
|
|
|
164
1845
|
export type RelatableEntityTypeT = NonUrlRelatableEntityTypeT | "url";
|
|
165
1846
|
export type TypeRoleT<T> = {
|
|
166
1847
|
typeID: number | null;
|
|
167
|
-
typeName
|
|
1848
|
+
typeName?: string;
|
|
168
1849
|
};
|
|
169
1850
|
export type EventT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"event">, $_$Spread<DatePeriodRoleT, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, $_$Spread<TypeRoleT<EventTypeT>, {
|
|
170
1851
|
areas: $ReadOnlyArray<{
|
|
@@ -173,7 +1854,7 @@ export type EventT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT
|
|
|
173
1854
|
}>;
|
|
174
1855
|
cancelled: boolean;
|
|
175
1856
|
event_art_presence: "absent" | "present" | "darkened" | null;
|
|
176
|
-
may_have_event_art
|
|
1857
|
+
may_have_event_art?: boolean;
|
|
177
1858
|
performers: $ReadOnlyArray<{
|
|
178
1859
|
credit: string;
|
|
179
1860
|
entity: ArtistT;
|
|
@@ -183,14 +1864,14 @@ export type EventT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT
|
|
|
183
1864
|
credit: string;
|
|
184
1865
|
entity: PlaceT;
|
|
185
1866
|
}>;
|
|
186
|
-
primaryAlias
|
|
187
|
-
related_entities
|
|
1867
|
+
primaryAlias?: string | null;
|
|
1868
|
+
related_entities?: {
|
|
188
1869
|
areas: AppearancesT<string>;
|
|
189
1870
|
performers: AppearancesT<string>;
|
|
190
1871
|
places: AppearancesT<string>;
|
|
191
1872
|
};
|
|
192
1873
|
related_series: $ReadOnlyArray<number>;
|
|
193
|
-
setlist
|
|
1874
|
+
setlist?: string;
|
|
194
1875
|
time: string;
|
|
195
1876
|
}>>>>>>>>;
|
|
196
1877
|
export type EventTypeT = OptionTreeT<"event_type">;
|
|
@@ -200,7 +1881,7 @@ export type CompoundFieldT<F> = {
|
|
|
200
1881
|
has_errors: boolean;
|
|
201
1882
|
html_name: string;
|
|
202
1883
|
id: number;
|
|
203
|
-
pendingErrors
|
|
1884
|
+
pendingErrors?: $ReadOnlyArray<string>;
|
|
204
1885
|
type: "compound_field";
|
|
205
1886
|
};
|
|
206
1887
|
export type DatePeriodFieldT = CompoundFieldT<{
|
|
@@ -213,7 +1894,7 @@ export type FieldT<V> = {
|
|
|
213
1894
|
has_errors: boolean;
|
|
214
1895
|
html_name: string;
|
|
215
1896
|
id: number;
|
|
216
|
-
pendingErrors
|
|
1897
|
+
pendingErrors?: $ReadOnlyArray<string>;
|
|
217
1898
|
type: "field";
|
|
218
1899
|
value: V;
|
|
219
1900
|
};
|
|
@@ -236,18 +1917,18 @@ export type PartialDateFieldT = CompoundFieldT<{
|
|
|
236
1917
|
year: FieldT<StrOrNum | null>;
|
|
237
1918
|
}>;
|
|
238
1919
|
export type GenreT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"genre">, {
|
|
239
|
-
primaryAlias
|
|
1920
|
+
primaryAlias?: string | null;
|
|
240
1921
|
}>>>>;
|
|
241
1922
|
export type N_l_T = "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
242
1923
|
export type InstrumentT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"instrument">, $_$Spread<TypeRoleT<InstrumentTypeT>, {
|
|
243
1924
|
description: string;
|
|
244
|
-
primaryAlias
|
|
1925
|
+
primaryAlias?: string | null;
|
|
245
1926
|
}>>>>>;
|
|
246
1927
|
export type InstrumentTypeT = OptionTreeT<"instrument_type">;
|
|
247
1928
|
export type LabelT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"label">, $_$Spread<DatePeriodRoleT, $_$Spread<IpiCodesRoleT, $_$Spread<IsniCodesRoleT, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, $_$Spread<TypeRoleT<LabelTypeT>, {
|
|
248
1929
|
area: AreaT | null;
|
|
249
1930
|
label_code: number;
|
|
250
|
-
primaryAlias
|
|
1931
|
+
primaryAlias?: string | null;
|
|
251
1932
|
}>>>>>>>>>>;
|
|
252
1933
|
export type LabelTypeT = OptionTreeT<"label_type">;
|
|
253
1934
|
export type LanguageT = {
|
|
@@ -268,16 +1949,37 @@ export type ScriptT = {
|
|
|
268
1949
|
iso_number: string | null;
|
|
269
1950
|
name: string;
|
|
270
1951
|
};
|
|
1952
|
+
export type CDTocT = $ReadOnly<$_$Spread<EntityRoleT<"cdtoc">, {
|
|
1953
|
+
discid: string;
|
|
1954
|
+
freedb_id: string;
|
|
1955
|
+
leadout_offset: number;
|
|
1956
|
+
length: number;
|
|
1957
|
+
track_count: number;
|
|
1958
|
+
track_details: $ReadOnlyArray<{
|
|
1959
|
+
end_sectors: number;
|
|
1960
|
+
end_time: number;
|
|
1961
|
+
length_sectors: number;
|
|
1962
|
+
length_time: number;
|
|
1963
|
+
start_sectors: number;
|
|
1964
|
+
start_time: number;
|
|
1965
|
+
}>;
|
|
1966
|
+
track_offset: $ReadOnlyArray<number>;
|
|
1967
|
+
}>>;
|
|
1968
|
+
export type MediumCDTocT = $ReadOnly<$_$Spread<EntityRoleT<"medium_cdtoc">, {
|
|
1969
|
+
cdtoc: CDTocT;
|
|
1970
|
+
editsPending: boolean;
|
|
1971
|
+
medium?: MediumT;
|
|
1972
|
+
}>>;
|
|
271
1973
|
export type MediumFormatT = $_$Spread<OptionTreeT<"medium_format">, {
|
|
272
1974
|
has_discids: boolean;
|
|
273
1975
|
year: number | null | undefined;
|
|
274
1976
|
}>;
|
|
275
1977
|
export type MediumT = $ReadOnly<$_$Spread<EntityRoleT<"medium">, $_$Spread<LastUpdateRoleT, {
|
|
276
1978
|
cdtoc_track_count: number | null;
|
|
277
|
-
cdtoc_track_lengths
|
|
278
|
-
cdtoc_tracks
|
|
1979
|
+
cdtoc_track_lengths?: $ReadOnlyArray<number | null>;
|
|
1980
|
+
cdtoc_tracks?: $ReadOnlyArray<TrackT>;
|
|
279
1981
|
cdtocs: $ReadOnlyArray<string>;
|
|
280
|
-
data_track_lengths
|
|
1982
|
+
data_track_lengths?: $ReadOnlyArray<number | null>;
|
|
281
1983
|
editsPending: boolean;
|
|
282
1984
|
format: MediumFormatT | null;
|
|
283
1985
|
format_id: number | null;
|
|
@@ -285,14 +1987,14 @@ export type MediumT = $ReadOnly<$_$Spread<EntityRoleT<"medium">, $_$Spread<LastU
|
|
|
285
1987
|
may_have_discids: boolean;
|
|
286
1988
|
name: string;
|
|
287
1989
|
position: number;
|
|
288
|
-
pregap_length
|
|
1990
|
+
pregap_length?: $ReadOnlyArray<number | null>;
|
|
289
1991
|
release_id: number;
|
|
290
1992
|
track_count: number | null;
|
|
291
|
-
tracks
|
|
292
|
-
tracks_pager
|
|
1993
|
+
tracks?: $ReadOnlyArray<TrackT>;
|
|
1994
|
+
tracks_pager?: PagerT;
|
|
293
1995
|
}>>>;
|
|
294
1996
|
export type MediumWithRecordingsT = $ReadOnly<$_$Spread<MediumT, {
|
|
295
|
-
tracks
|
|
1997
|
+
tracks?: $ReadOnlyArray<TrackWithRecordingT>;
|
|
296
1998
|
}>>;
|
|
297
1999
|
export type PagerT = {
|
|
298
2000
|
current_page: number;
|
|
@@ -312,31 +2014,31 @@ export type PlaceT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT
|
|
|
312
2014
|
address: string;
|
|
313
2015
|
area: AreaT | null;
|
|
314
2016
|
coordinates: CoordinatesT | null;
|
|
315
|
-
primaryAlias
|
|
2017
|
+
primaryAlias?: string | null;
|
|
316
2018
|
}>>>>>>>>;
|
|
317
2019
|
export type PlaceTypeT = OptionTreeT<"place_type">;
|
|
318
2020
|
export type RatableRoleT = {
|
|
319
|
-
rating
|
|
320
|
-
rating_count
|
|
321
|
-
user_rating
|
|
2021
|
+
rating?: number;
|
|
2022
|
+
rating_count?: number;
|
|
2023
|
+
user_rating?: number;
|
|
322
2024
|
};
|
|
323
2025
|
export type RecordingT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"recording">, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, {
|
|
324
|
-
appearsOn
|
|
2026
|
+
appearsOn?: AppearancesT<{
|
|
325
2027
|
gid: string;
|
|
326
2028
|
name: string;
|
|
327
2029
|
}>;
|
|
328
|
-
artist
|
|
2030
|
+
artist?: string;
|
|
329
2031
|
artistCredit: ArtistCreditT;
|
|
330
|
-
first_release_date
|
|
2032
|
+
first_release_date?: PartialDateT;
|
|
331
2033
|
isrcs: $ReadOnlyArray<IsrcT>;
|
|
332
2034
|
length: number;
|
|
333
|
-
primaryAlias
|
|
2035
|
+
primaryAlias?: string | null;
|
|
334
2036
|
related_works: $ReadOnlyArray<number>;
|
|
335
2037
|
video: boolean;
|
|
336
2038
|
}>>>>>>;
|
|
337
2039
|
export type LinkAttrT = {
|
|
338
|
-
credited_as
|
|
339
|
-
text_value
|
|
2040
|
+
credited_as?: string;
|
|
2041
|
+
text_value?: string;
|
|
340
2042
|
type: {
|
|
341
2043
|
gid: string;
|
|
342
2044
|
} | LinkAttrTypeT;
|
|
@@ -344,24 +2046,30 @@ export type LinkAttrT = {
|
|
|
344
2046
|
typeName: string;
|
|
345
2047
|
};
|
|
346
2048
|
export type LinkAttrTypeT = $_$Spread<OptionTreeT<"link_attribute_type">, {
|
|
347
|
-
children
|
|
2049
|
+
children?: $ReadOnlyArray<LinkAttrTypeT>;
|
|
348
2050
|
creditable: boolean;
|
|
349
2051
|
free_text: boolean;
|
|
350
|
-
instrument_aliases
|
|
351
|
-
instrument_comment
|
|
352
|
-
instrument_type_id
|
|
353
|
-
instrument_type_name
|
|
354
|
-
l_description
|
|
355
|
-
l_name
|
|
356
|
-
level
|
|
2052
|
+
instrument_aliases?: $ReadOnlyArray<string>;
|
|
2053
|
+
instrument_comment?: string;
|
|
2054
|
+
instrument_type_id?: number;
|
|
2055
|
+
instrument_type_name?: string;
|
|
2056
|
+
l_description?: string;
|
|
2057
|
+
l_name?: string;
|
|
2058
|
+
level?: number;
|
|
357
2059
|
root_gid: string;
|
|
358
2060
|
root_id: number;
|
|
359
2061
|
}>;
|
|
2062
|
+
export type LinkTypeAttrTypeT = $ReadOnly<$_$Spread<TypeRoleT<LinkAttrTypeT>, {
|
|
2063
|
+
max: number | null;
|
|
2064
|
+
min: number | null;
|
|
2065
|
+
}>>;
|
|
360
2066
|
export type LinkTypeT = $_$Spread<OptionTreeT<"link_type">, {
|
|
361
|
-
attributes: {
|
|
2067
|
+
attributes: {
|
|
2068
|
+
[typeId: StrOrNum]: LinkTypeAttrTypeT;
|
|
2069
|
+
};
|
|
362
2070
|
cardinality0: number;
|
|
363
2071
|
cardinality1: number;
|
|
364
|
-
children
|
|
2072
|
+
children?: $ReadOnlyArray<LinkTypeT>;
|
|
365
2073
|
deprecated: boolean;
|
|
366
2074
|
documentation: string | null;
|
|
367
2075
|
examples: $ReadOnlyArray<{
|
|
@@ -370,25 +2078,26 @@ export type LinkTypeT = $_$Spread<OptionTreeT<"link_type">, {
|
|
|
370
2078
|
}> | null;
|
|
371
2079
|
has_dates: boolean;
|
|
372
2080
|
id: number;
|
|
373
|
-
l_description
|
|
374
|
-
l_link_phrase
|
|
375
|
-
l_name
|
|
376
|
-
l_reverse_link_phrase
|
|
2081
|
+
l_description?: string;
|
|
2082
|
+
l_link_phrase?: string;
|
|
2083
|
+
l_name?: string;
|
|
2084
|
+
l_reverse_link_phrase?: string;
|
|
377
2085
|
link_phrase: string;
|
|
378
2086
|
long_link_phrase: string;
|
|
379
|
-
orderable_direction:
|
|
2087
|
+
orderable_direction: OrderableDirectionT;
|
|
380
2088
|
reverse_link_phrase: string;
|
|
381
2089
|
root_id: number | null;
|
|
382
2090
|
type0: RelatableEntityTypeT;
|
|
383
2091
|
type1: RelatableEntityTypeT;
|
|
384
2092
|
}>;
|
|
2093
|
+
export type OrderableDirectionT = 0 | 1 | 2;
|
|
385
2094
|
export type RelationshipT = $ReadOnly<$_$Spread<DatePeriodRoleT, $_$Spread<PendingEditsRoleT, {
|
|
386
2095
|
attributes: $ReadOnlyArray<LinkAttrT>;
|
|
387
2096
|
backward: boolean;
|
|
388
|
-
entity0
|
|
2097
|
+
entity0?: RelatableEntityT | null | undefined;
|
|
389
2098
|
entity0_credit: string;
|
|
390
2099
|
entity0_id: number;
|
|
391
|
-
entity1
|
|
2100
|
+
entity1?: RelatableEntityT | null | undefined;
|
|
392
2101
|
entity1_credit: string;
|
|
393
2102
|
entity1_id: number;
|
|
394
2103
|
id: number;
|
|
@@ -400,6 +2109,12 @@ export type RelationshipT = $ReadOnly<$_$Spread<DatePeriodRoleT, $_$Spread<Pendi
|
|
|
400
2109
|
target_type: RelatableEntityTypeT;
|
|
401
2110
|
verbosePhrase: string;
|
|
402
2111
|
}>>>;
|
|
2112
|
+
export type SeededRelationshipT = $ReadOnly<$_$Spread<RelationshipT, {
|
|
2113
|
+
entity0_id: number | null;
|
|
2114
|
+
entity1_id: number | null;
|
|
2115
|
+
id: null;
|
|
2116
|
+
linkTypeID: number | null;
|
|
2117
|
+
}>>;
|
|
403
2118
|
export type QualityT = -1 | 0 | 1 | 2;
|
|
404
2119
|
export type ReleaseEventT = {
|
|
405
2120
|
country: AreaT | null;
|
|
@@ -410,25 +2125,26 @@ export type ReleaseLabelT = {
|
|
|
410
2125
|
label: LabelT | null;
|
|
411
2126
|
label_id: number | null;
|
|
412
2127
|
};
|
|
2128
|
+
export type ReleasePackagingT = OptionTreeT<"release_packaging">;
|
|
413
2129
|
export type ReleaseStatusT = OptionTreeT<"release_status">;
|
|
414
2130
|
export type ReleaseT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<ArtistCreditRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"release">, {
|
|
415
2131
|
barcode: string | null;
|
|
416
|
-
combined_format_name
|
|
417
|
-
combined_track_count
|
|
2132
|
+
combined_format_name?: string;
|
|
2133
|
+
combined_track_count?: string;
|
|
418
2134
|
cover_art_presence: "absent" | "present" | "darkened" | null;
|
|
419
|
-
events
|
|
2135
|
+
events?: $ReadOnlyArray<ReleaseEventT>;
|
|
420
2136
|
has_no_tracks: boolean;
|
|
421
|
-
labels
|
|
2137
|
+
labels?: $ReadOnlyArray<ReleaseLabelT>;
|
|
422
2138
|
language: LanguageT | null;
|
|
423
2139
|
languageID: number | null;
|
|
424
|
-
length
|
|
425
|
-
may_have_cover_art
|
|
426
|
-
may_have_discids
|
|
427
|
-
mediums
|
|
2140
|
+
length?: number;
|
|
2141
|
+
may_have_cover_art?: boolean;
|
|
2142
|
+
may_have_discids?: boolean;
|
|
2143
|
+
mediums?: $ReadOnlyArray<MediumT>;
|
|
428
2144
|
packagingID: number | null;
|
|
429
|
-
primaryAlias
|
|
2145
|
+
primaryAlias?: string | null;
|
|
430
2146
|
quality: QualityT;
|
|
431
|
-
releaseGroup
|
|
2147
|
+
releaseGroup?: ReleaseGroupT;
|
|
432
2148
|
script: ScriptT | null;
|
|
433
2149
|
scriptID: number | null;
|
|
434
2150
|
status: ReleaseStatusT | null;
|
|
@@ -437,14 +2153,15 @@ export type ReleaseT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<ArtistCred
|
|
|
437
2153
|
export type ReleaseWithMediumsT = $ReadOnly<$_$Spread<ReleaseT, {
|
|
438
2154
|
mediums: $ReadOnlyArray<MediumWithRecordingsT>;
|
|
439
2155
|
}>>;
|
|
2156
|
+
export type ReleaseGroupSecondaryTypeT = OptionTreeT<"release_group_secondary_type">;
|
|
440
2157
|
export type ReleaseGroupT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<ArtistCreditRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"release_group">, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, $_$Spread<TypeRoleT<ReleaseGroupTypeT>, {
|
|
441
|
-
cover_art
|
|
2158
|
+
cover_art?: ReleaseArtT;
|
|
442
2159
|
firstReleaseDate: string | null;
|
|
443
2160
|
hasCoverArt: boolean;
|
|
444
2161
|
l_type_name: string | null;
|
|
445
|
-
primaryAlias
|
|
2162
|
+
primaryAlias?: string | null;
|
|
446
2163
|
release_count: number;
|
|
447
|
-
release_group
|
|
2164
|
+
release_group?: ReleaseGroupT;
|
|
448
2165
|
secondaryTypeIDs: $ReadOnlyArray<number>;
|
|
449
2166
|
typeID: number | null;
|
|
450
2167
|
typeName: string | null;
|
|
@@ -452,13 +2169,19 @@ export type ReleaseGroupT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<Artis
|
|
|
452
2169
|
export type ReleaseGroupTypeT = $_$Spread<OptionTreeT<"release_group_type">, {
|
|
453
2170
|
historic: false;
|
|
454
2171
|
}>;
|
|
2172
|
+
export type ReleaseGroupHistoricTypeT = {
|
|
2173
|
+
historic: true;
|
|
2174
|
+
id: number;
|
|
2175
|
+
name: string;
|
|
2176
|
+
};
|
|
455
2177
|
export type SeriesEntityTypeT = "artist" | "event" | "recording" | "release" | "release_group" | "work";
|
|
456
2178
|
export type SeriesT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"series">, $_$Spread<TypeRoleT<SeriesTypeT>, {
|
|
457
|
-
entity_count
|
|
2179
|
+
entity_count?: number;
|
|
458
2180
|
orderingTypeID: number;
|
|
459
|
-
primaryAlias
|
|
460
|
-
type
|
|
2181
|
+
primaryAlias?: string | null;
|
|
2182
|
+
type?: SeriesTypeT;
|
|
461
2183
|
}>>>>>;
|
|
2184
|
+
export type SeriesOrderingTypeT = OptionTreeT<"series_ordering_type">;
|
|
462
2185
|
export type SeriesTypeT = $ReadOnly<$_$Spread<OptionTreeT<"series_type">, {
|
|
463
2186
|
item_entity_type: SeriesEntityTypeT;
|
|
464
2187
|
}>>;
|
|
@@ -474,7 +2197,7 @@ export type TrackT = $ReadOnly<$_$Spread<EntityRoleT<"track">, $_$Spread<LastUpd
|
|
|
474
2197
|
name: string;
|
|
475
2198
|
number: string;
|
|
476
2199
|
position: number;
|
|
477
|
-
recording
|
|
2200
|
+
recording?: RecordingT;
|
|
478
2201
|
}>>>;
|
|
479
2202
|
export type TrackWithRecordingT = $ReadOnly<$_$Spread<TrackT, {
|
|
480
2203
|
recording: RecordingT;
|
|
@@ -483,12 +2206,19 @@ export type UrlT = $_$Spread<RelatableEntityRoleT<"url">, {
|
|
|
483
2206
|
decoded: string;
|
|
484
2207
|
href_url: string;
|
|
485
2208
|
pretty_name: string;
|
|
486
|
-
show_in_external_links
|
|
487
|
-
show_license_in_sidebar
|
|
488
|
-
sidebar_name
|
|
2209
|
+
show_in_external_links?: boolean;
|
|
2210
|
+
show_license_in_sidebar?: boolean;
|
|
2211
|
+
sidebar_name?: string;
|
|
489
2212
|
}>;
|
|
2213
|
+
export type VoteOptionT = -2 | -1 | 0 | 1 | 2 | 3 | 4;
|
|
2214
|
+
export type VoteT = {
|
|
2215
|
+
editor_id: number;
|
|
2216
|
+
superseded: boolean;
|
|
2217
|
+
vote: VoteOptionT;
|
|
2218
|
+
vote_time: string;
|
|
2219
|
+
};
|
|
490
2220
|
export type WorkT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT, $_$Spread<RelatableEntityRoleT<"work">, $_$Spread<RatableRoleT, $_$Spread<ReviewableRoleT, $_$Spread<TypeRoleT<WorkTypeT>, {
|
|
491
|
-
_fromBatchCreateWorksDialog
|
|
2221
|
+
_fromBatchCreateWorksDialog?: boolean;
|
|
492
2222
|
artists: $ReadOnlyArray<ArtistCreditT>;
|
|
493
2223
|
attributes: $ReadOnlyArray<WorkAttributeT>;
|
|
494
2224
|
authors: $ReadOnlyArray<{
|
|
@@ -503,8 +2233,8 @@ export type WorkT = $ReadOnly<$_$Spread<AnnotationRoleT, $_$Spread<CommentRoleT,
|
|
|
503
2233
|
entity: ArtistT;
|
|
504
2234
|
roles: $ReadOnlyArray<string>;
|
|
505
2235
|
}>;
|
|
506
|
-
primaryAlias
|
|
507
|
-
related_artists
|
|
2236
|
+
primaryAlias?: string | null;
|
|
2237
|
+
related_artists?: {
|
|
508
2238
|
artists: AppearancesT<string>;
|
|
509
2239
|
authors: AppearancesT<string>;
|
|
510
2240
|
};
|
|
@@ -520,28 +2250,32 @@ export type WorkAttributeT = {
|
|
|
520
2250
|
value: string;
|
|
521
2251
|
value_id: number | null;
|
|
522
2252
|
};
|
|
2253
|
+
export type WorkAttributeTypeT = $_$Spread<CommentRoleT, $_$Spread<OptionTreeT<"work_attribute_type">, {
|
|
2254
|
+
free_text: boolean;
|
|
2255
|
+
}>>;
|
|
523
2256
|
export type WsJsRelationshipEntityT = {
|
|
524
2257
|
entityType: NonUrlRelatableEntityTypeT;
|
|
525
2258
|
gid: string;
|
|
526
2259
|
name: string;
|
|
527
2260
|
} | {
|
|
528
2261
|
entityType: "url";
|
|
529
|
-
gid
|
|
2262
|
+
gid?: string;
|
|
530
2263
|
name: string;
|
|
531
2264
|
};
|
|
532
2265
|
export type WsJsRelationshipAttributeT = {
|
|
533
|
-
credited_as
|
|
534
|
-
removed
|
|
535
|
-
text_value
|
|
2266
|
+
credited_as?: string;
|
|
2267
|
+
removed?: boolean;
|
|
2268
|
+
text_value?: string;
|
|
536
2269
|
type: {
|
|
537
2270
|
gid: string;
|
|
538
2271
|
};
|
|
539
2272
|
};
|
|
540
2273
|
export type WsJsRelationshipCommonT = {
|
|
541
2274
|
attributes: $ReadOnlyArray<WsJsRelationshipAttributeT>;
|
|
542
|
-
begin_date
|
|
543
|
-
end_date
|
|
544
|
-
ended
|
|
2275
|
+
begin_date?: PartialDateT;
|
|
2276
|
+
end_date?: PartialDateT;
|
|
2277
|
+
ended?: boolean;
|
|
2278
|
+
enteredFrom?: WsJsRelationshipEntityT;
|
|
545
2279
|
entities: [
|
|
546
2280
|
WsJsRelationshipEntityT,
|
|
547
2281
|
WsJsRelationshipEntityT
|
|
@@ -551,7 +2285,7 @@ export type WsJsRelationshipCommonT = {
|
|
|
551
2285
|
};
|
|
552
2286
|
export type WsJsEditRelationshipCreateT = $ReadOnly<$_$Spread<WsJsRelationshipCommonT, {
|
|
553
2287
|
edit_type: EDIT_RELATIONSHIP_CREATE_T;
|
|
554
|
-
linkOrder
|
|
2288
|
+
linkOrder?: number;
|
|
555
2289
|
linkTypeID: number;
|
|
556
2290
|
}>>;
|
|
557
2291
|
export type WsJsEditRelationshipEditT = $ReadOnly<$_$Spread<Partial<WsJsRelationshipCommonT>, {
|
|
@@ -561,12 +2295,14 @@ export type WsJsEditRelationshipEditT = $ReadOnly<$_$Spread<Partial<WsJsRelation
|
|
|
561
2295
|
}>>;
|
|
562
2296
|
export type WsJsEditRelationshipDeleteT = $ReadOnly<{
|
|
563
2297
|
edit_type: EDIT_RELATIONSHIP_DELETE_T;
|
|
2298
|
+
enteredFrom?: WsJsRelationshipEntityT;
|
|
564
2299
|
id: number;
|
|
565
2300
|
linkTypeID: number;
|
|
566
2301
|
}>;
|
|
567
2302
|
export type WsJsEditRelationshipT = WsJsEditRelationshipCreateT | WsJsEditRelationshipEditT | WsJsEditRelationshipDeleteT | WsJsEditRelationshipsReorderT;
|
|
568
2303
|
export type WsJsEditRelationshipsReorderT = {
|
|
569
2304
|
edit_type: EDIT_RELATIONSHIPS_REORDER_T;
|
|
2305
|
+
enteredFrom?: WsJsRelationshipEntityT;
|
|
570
2306
|
linkTypeID: number;
|
|
571
2307
|
relationship_order: $ReadOnlyArray<{
|
|
572
2308
|
link_order: number;
|
|
@@ -623,45 +2359,45 @@ export type WsJsEditResponseT = {
|
|
|
623
2359
|
};
|
|
624
2360
|
export type SearchableTypeT = EntityItemT["entityType"];
|
|
625
2361
|
export type StateT<T extends EntityItemT> = {
|
|
626
|
-
canChangeType
|
|
627
|
-
containerClass
|
|
628
|
-
disabled
|
|
2362
|
+
canChangeType?: "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
2363
|
+
containerClass?: string;
|
|
2364
|
+
disabled?: boolean;
|
|
629
2365
|
entityType: T["entityType"];
|
|
630
2366
|
error: number;
|
|
631
2367
|
highlightedIndex: number;
|
|
632
|
-
htmlName
|
|
2368
|
+
htmlName?: string;
|
|
633
2369
|
id: string;
|
|
634
2370
|
indexedSearch: boolean;
|
|
635
|
-
inputChangeHook
|
|
636
|
-
inputClass
|
|
637
|
-
inputRef
|
|
2371
|
+
inputChangeHook?: "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
2372
|
+
inputClass?: string;
|
|
2373
|
+
inputRef?: {
|
|
638
2374
|
current: HTMLInputElement | null;
|
|
639
2375
|
};
|
|
640
2376
|
inputValue: string;
|
|
641
|
-
isAddEntityDialogOpen
|
|
2377
|
+
isAddEntityDialogOpen?: boolean;
|
|
642
2378
|
isInputFocused: boolean;
|
|
643
|
-
isLookupPerformed
|
|
2379
|
+
isLookupPerformed?: boolean;
|
|
644
2380
|
isOpen: boolean;
|
|
645
2381
|
items: $ReadOnlyArray<ItemT<T>>;
|
|
646
|
-
label
|
|
2382
|
+
label?: string;
|
|
647
2383
|
page: number;
|
|
648
2384
|
pendingSearch: string | null;
|
|
649
|
-
placeholder
|
|
2385
|
+
placeholder?: string;
|
|
650
2386
|
recentItems: $ReadOnlyArray<OptionItemT<T>> | null;
|
|
651
2387
|
recentItemsKey: string;
|
|
652
2388
|
required: boolean;
|
|
653
2389
|
results: $ReadOnlyArray<ItemT<T>> | null;
|
|
654
2390
|
selectedItem: OptionItemT<T> | null;
|
|
655
|
-
showDescriptions
|
|
656
|
-
showLabel
|
|
657
|
-
staticItems
|
|
2391
|
+
showDescriptions?: boolean;
|
|
2392
|
+
showLabel?: boolean;
|
|
2393
|
+
staticItems?: $ReadOnlyArray<OptionItemT<T>>;
|
|
658
2394
|
statusMessage: string;
|
|
659
2395
|
totalPages: number | null | undefined;
|
|
660
|
-
width
|
|
2396
|
+
width?: string;
|
|
661
2397
|
};
|
|
662
2398
|
export type SearchActionT = {
|
|
663
|
-
indexed
|
|
664
|
-
searchTerm
|
|
2399
|
+
indexed?: boolean;
|
|
2400
|
+
searchTerm?: string;
|
|
665
2401
|
type: "search-after-timeout";
|
|
666
2402
|
};
|
|
667
2403
|
export type ActionT<T extends EntityItemT> = SearchActionT | {
|
|
@@ -722,25 +2458,25 @@ export type ActionItemT<T extends EntityItemT> = {
|
|
|
722
2458
|
action: ActionT<T>;
|
|
723
2459
|
id: number | string;
|
|
724
2460
|
name: string | "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
725
|
-
level
|
|
726
|
-
separator
|
|
727
|
-
disabled
|
|
2461
|
+
level?: number;
|
|
2462
|
+
separator?: boolean;
|
|
2463
|
+
disabled?: boolean;
|
|
728
2464
|
};
|
|
729
2465
|
export type OptionItemT<T> = {
|
|
730
2466
|
type: "option";
|
|
731
2467
|
id: number | string;
|
|
732
2468
|
name: string | "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
733
2469
|
entity: T;
|
|
734
|
-
level
|
|
735
|
-
separator
|
|
736
|
-
disabled
|
|
2470
|
+
level?: number;
|
|
2471
|
+
separator?: boolean;
|
|
2472
|
+
disabled?: boolean;
|
|
737
2473
|
};
|
|
738
2474
|
export type HeaderItemT = {
|
|
739
2475
|
type: "header";
|
|
740
2476
|
id: number | string;
|
|
741
2477
|
name: string | "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
742
2478
|
disabled: true;
|
|
743
|
-
separator
|
|
2479
|
+
separator?: boolean;
|
|
744
2480
|
};
|
|
745
2481
|
export type ItemT<T extends EntityItemT> = ActionItemT<T> | OptionItemT<T> | HeaderItemT;
|
|
746
2482
|
export type EntityItemT = EditorT | LanguageT | LinkAttrTypeT | LinkTypeT | NonUrlRelatableEntityT;
|
|
@@ -761,9 +2497,11 @@ export type LazyReleaseStateT = {
|
|
|
761
2497
|
expandedMediums: $ReadOnlyMap<number, boolean>;
|
|
762
2498
|
loadedTracks: LoadedTracksMapT;
|
|
763
2499
|
};
|
|
764
|
-
export type
|
|
765
|
-
|
|
766
|
-
|
|
2500
|
+
export type REL_STATUS_NOOP_T = 0;
|
|
2501
|
+
export type REL_STATUS_ADD_T = 1;
|
|
2502
|
+
export type REL_STATUS_EDIT_T = 2;
|
|
2503
|
+
export type REL_STATUS_REMOVE_T = 3;
|
|
2504
|
+
export type RelationshipEditStatusT = REL_STATUS_NOOP_T | REL_STATUS_ADD_T | REL_STATUS_EDIT_T | REL_STATUS_REMOVE_T;
|
|
767
2505
|
export type CreditChangeOptionT = "" | "all" | "same-entity-types" | "same-relationship-type";
|
|
768
2506
|
export type RelationshipStateForTypesT<T0 extends RelatableEntityT, T1 extends RelatableEntityT> = {
|
|
769
2507
|
_lineage: $ReadOnlyArray<string>;
|
|
@@ -784,35 +2522,35 @@ export type RelationshipStateForTypesT<T0 extends RelatableEntityT, T1 extends R
|
|
|
784
2522
|
};
|
|
785
2523
|
export type RelationshipStateT = RelationshipStateForTypesT<RelatableEntityT, RelatableEntityT>;
|
|
786
2524
|
export type RelationshipPhraseGroupT = {
|
|
787
|
-
relationships: tree.ImmutableTree<RelationshipStateT
|
|
2525
|
+
relationships: tree.ImmutableTree<RelationshipStateT>;
|
|
788
2526
|
textPhrase: string;
|
|
789
2527
|
};
|
|
790
2528
|
export type RelationshipLinkTypeGroupT = {
|
|
791
2529
|
backward: boolean;
|
|
792
|
-
phraseGroups: tree.ImmutableTree<RelationshipPhraseGroupT
|
|
2530
|
+
phraseGroups: tree.ImmutableTree<RelationshipPhraseGroupT>;
|
|
793
2531
|
typeId: number;
|
|
794
2532
|
};
|
|
795
|
-
export type RelationshipLinkTypeGroupsT = tree.ImmutableTree<RelationshipLinkTypeGroupT
|
|
2533
|
+
export type RelationshipLinkTypeGroupsT = tree.ImmutableTree<RelationshipLinkTypeGroupT>;
|
|
796
2534
|
export type RelationshipTargetTypeGroupT = [
|
|
797
2535
|
RelatableEntityTypeT,
|
|
798
2536
|
RelationshipLinkTypeGroupsT
|
|
799
2537
|
];
|
|
800
|
-
export type RelationshipTargetTypeGroupsT = tree.ImmutableTree<RelationshipTargetTypeGroupT
|
|
2538
|
+
export type RelationshipTargetTypeGroupsT = tree.ImmutableTree<RelationshipTargetTypeGroupT>;
|
|
801
2539
|
export type RelationshipSourceGroupT = [
|
|
802
2540
|
RelatableEntityT,
|
|
803
2541
|
RelationshipTargetTypeGroupsT
|
|
804
2542
|
];
|
|
805
|
-
export type RelationshipSourceGroupsT = tree.ImmutableTree<RelationshipSourceGroupT
|
|
2543
|
+
export type RelationshipSourceGroupsT = tree.ImmutableTree<RelationshipSourceGroupT>;
|
|
806
2544
|
export type NonReleaseRelatableEntityT = AreaT | ArtistT | EventT | GenreT | InstrumentT | LabelT | PlaceT | RecordingT | ReleaseGroupT | SeriesT | UrlT | WorkT;
|
|
807
2545
|
export type RelationshipDialogLocationT = {
|
|
808
|
-
backward
|
|
809
|
-
batchSelection
|
|
810
|
-
linkTypeId
|
|
811
|
-
relationshipId
|
|
2546
|
+
backward?: boolean | null | undefined;
|
|
2547
|
+
batchSelection?: boolean | null | undefined;
|
|
2548
|
+
linkTypeId?: number | null | undefined;
|
|
2549
|
+
relationshipId?: number | null | undefined;
|
|
812
2550
|
source: RelatableEntityT;
|
|
813
|
-
targetType
|
|
814
|
-
textPhrase
|
|
815
|
-
track
|
|
2551
|
+
targetType?: RelatableEntityTypeT | null | undefined;
|
|
2552
|
+
textPhrase?: string | null | undefined;
|
|
2553
|
+
track?: TrackWithRecordingT | null | undefined;
|
|
816
2554
|
};
|
|
817
2555
|
export type RelationshipEditorStateT = {
|
|
818
2556
|
dialogLocation: RelationshipDialogLocationT | null;
|
|
@@ -843,8 +2581,8 @@ export type DialogMultiselectAttributeStateT = $ReadOnly<$_$Spread<DialogLinkAtt
|
|
|
843
2581
|
export type DialogMultiselectAttributeValueStateT = {
|
|
844
2582
|
autocomplete: StateT<LinkAttrTypeT>;
|
|
845
2583
|
control: "multiselect-value";
|
|
846
|
-
creditedAs
|
|
847
|
-
error
|
|
2584
|
+
creditedAs?: string;
|
|
2585
|
+
error?: string;
|
|
848
2586
|
key: number;
|
|
849
2587
|
removed: boolean;
|
|
850
2588
|
};
|
|
@@ -856,15 +2594,15 @@ export type DialogAttributeT = DialogBooleanAttributeStateT | DialogMultiselectA
|
|
|
856
2594
|
export type DialogAttributesT = $ReadOnlyArray<DialogAttributeT>;
|
|
857
2595
|
export type DialogAttributesStateT = {
|
|
858
2596
|
attributesList: DialogAttributesT;
|
|
859
|
-
resultingLinkAttributes: tree.ImmutableTree<LinkAttrT
|
|
2597
|
+
resultingLinkAttributes: tree.ImmutableTree<LinkAttrT>;
|
|
860
2598
|
};
|
|
861
2599
|
export type DialogLinkAttributeStateT = {
|
|
862
|
-
creditedAs
|
|
2600
|
+
creditedAs?: string;
|
|
863
2601
|
error: string;
|
|
864
2602
|
key: number;
|
|
865
2603
|
max: number | null;
|
|
866
2604
|
min: number | null;
|
|
867
|
-
textValue
|
|
2605
|
+
textValue?: string;
|
|
868
2606
|
type: LinkAttrTypeT;
|
|
869
2607
|
};
|
|
870
2608
|
export type DialogDatePeriodStateT = {
|
|
@@ -872,8 +2610,8 @@ export type DialogDatePeriodStateT = {
|
|
|
872
2610
|
result: DatePeriodRoleT;
|
|
873
2611
|
};
|
|
874
2612
|
export type ExternalLinkAttrT = {
|
|
875
|
-
credited_as
|
|
876
|
-
text_value
|
|
2613
|
+
credited_as?: string;
|
|
2614
|
+
text_value?: string;
|
|
877
2615
|
type: {
|
|
878
2616
|
gid: string;
|
|
879
2617
|
};
|
|
@@ -913,18 +2651,18 @@ export type MediumWorkStateT = {
|
|
|
913
2651
|
targetTypeGroups: RelationshipTargetTypeGroupsT;
|
|
914
2652
|
work: WorkT;
|
|
915
2653
|
};
|
|
916
|
-
export type MediumWorkStateTreeT = tree.ImmutableTree<MediumWorkStateT
|
|
2654
|
+
export type MediumWorkStateTreeT = tree.ImmutableTree<MediumWorkStateT>;
|
|
917
2655
|
export type MediumRecordingStateT = {
|
|
918
2656
|
isSelected: boolean;
|
|
919
2657
|
recording: RecordingT;
|
|
920
2658
|
relatedWorks: MediumWorkStateTreeT;
|
|
921
2659
|
targetTypeGroups: RelationshipTargetTypeGroupsT;
|
|
922
2660
|
};
|
|
923
|
-
export type MediumRecordingStateTreeT = tree.ImmutableTree<MediumRecordingStateT
|
|
2661
|
+
export type MediumRecordingStateTreeT = tree.ImmutableTree<MediumRecordingStateT>;
|
|
924
2662
|
export type MediumStateTreeT = tree.ImmutableTree<[
|
|
925
2663
|
MediumWithRecordingsT,
|
|
926
2664
|
MediumRecordingStateTreeT
|
|
927
|
-
]
|
|
2665
|
+
]>;
|
|
928
2666
|
export type ReleaseRelationshipEditorStateT = $ReadOnly<$_$Spread<$Exact<LazyReleaseStateT>, $_$Spread<$Exact<RelationshipEditorStateT>, {
|
|
929
2667
|
editNoteField: FieldT<string>;
|
|
930
2668
|
enterEditForm: FormT<{
|
|
@@ -933,17 +2671,17 @@ export type ReleaseRelationshipEditorStateT = $ReadOnly<$_$Spread<$Exact<LazyRel
|
|
|
933
2671
|
entity: ReleaseWithMediumsAndReleaseGroupT;
|
|
934
2672
|
mediums: MediumStateTreeT;
|
|
935
2673
|
mediumsByRecordingId: RecordingMediumsT;
|
|
936
|
-
selectedRecordings: tree.ImmutableTree<RecordingT
|
|
937
|
-
selectedWorks: tree.ImmutableTree<WorkT
|
|
2674
|
+
selectedRecordings: tree.ImmutableTree<RecordingT>;
|
|
2675
|
+
selectedWorks: tree.ImmutableTree<WorkT>;
|
|
938
2676
|
submissionError: string | null | undefined;
|
|
939
2677
|
submissionInProgress: boolean;
|
|
940
2678
|
}>>>;
|
|
941
2679
|
type ActionT$1 = {
|
|
942
2680
|
type: "set-date";
|
|
943
2681
|
date: {
|
|
944
|
-
year
|
|
945
|
-
month
|
|
946
|
-
day
|
|
2682
|
+
year?: string;
|
|
2683
|
+
month?: string;
|
|
2684
|
+
day?: string;
|
|
947
2685
|
};
|
|
948
2686
|
} | {
|
|
949
2687
|
type: "show-pending-errors";
|
|
@@ -1071,7 +2809,9 @@ export type RelationshipEditorActionT = {
|
|
|
1071
2809
|
location: RelationshipDialogLocationT | null;
|
|
1072
2810
|
type: "update-dialog-location";
|
|
1073
2811
|
} | {
|
|
1074
|
-
changes: {
|
|
2812
|
+
changes: {
|
|
2813
|
+
[property: string]: "WIP convertTypeNode: MixedTypeAnnotation";
|
|
2814
|
+
};
|
|
1075
2815
|
entityType: RelatableEntityTypeT;
|
|
1076
2816
|
type: "update-entity";
|
|
1077
2817
|
} | UpdateRelationshipActionT;
|
|
@@ -1089,7 +2829,7 @@ export type DialogTargetEntityActionT = UpdateTargetEntityAutocompleteActionT |
|
|
|
1089
2829
|
type: "update-url-text";
|
|
1090
2830
|
};
|
|
1091
2831
|
export type AcceptBatchCreateWorksDialogActionT = {
|
|
1092
|
-
attributes: tree.ImmutableTree<LinkAttrT
|
|
2832
|
+
attributes: tree.ImmutableTree<LinkAttrT>;
|
|
1093
2833
|
begin_date: PartialDateT | null;
|
|
1094
2834
|
end_date: PartialDateT | null;
|
|
1095
2835
|
ended: boolean;
|
|
@@ -1128,11 +2868,11 @@ export type ReleaseRelationshipEditorActionT = LazyReleaseActionT | Relationship
|
|
|
1128
2868
|
work: WorkT;
|
|
1129
2869
|
} | {
|
|
1130
2870
|
isSelected: boolean;
|
|
1131
|
-
recordingStates: MediumRecordingStateTreeT
|
|
2871
|
+
recordingStates: MediumRecordingStateTreeT;
|
|
1132
2872
|
type: "toggle-select-medium-recordings";
|
|
1133
2873
|
} | {
|
|
1134
2874
|
isSelected: boolean;
|
|
1135
|
-
recordingStates: MediumRecordingStateTreeT
|
|
2875
|
+
recordingStates: MediumRecordingStateTreeT;
|
|
1136
2876
|
type: "toggle-select-medium-works";
|
|
1137
2877
|
} | {
|
|
1138
2878
|
editNote: string;
|
|
@@ -1143,7 +2883,7 @@ export type ReleaseRelationshipEditorActionT = LazyReleaseActionT | Relationship
|
|
|
1143
2883
|
} | {
|
|
1144
2884
|
type: "start-submission";
|
|
1145
2885
|
} | {
|
|
1146
|
-
error
|
|
2886
|
+
error?: string;
|
|
1147
2887
|
type: "stop-submission";
|
|
1148
2888
|
} | {
|
|
1149
2889
|
edits: Array<[
|
|
@@ -1184,8 +2924,12 @@ declare const ARTIST_GROUP_TYPES: Set<number>;
|
|
|
1184
2924
|
declare const CONTACT_URL = "https://metabrainz.org/contact";
|
|
1185
2925
|
declare const DARTIST_ID = 2;
|
|
1186
2926
|
declare const DLABEL_ID = 1;
|
|
1187
|
-
declare const FAVICON_CLASSES: {
|
|
1188
|
-
|
|
2927
|
+
declare const FAVICON_CLASSES: {
|
|
2928
|
+
[host: string]: string;
|
|
2929
|
+
};
|
|
2930
|
+
declare const PART_OF_SERIES_LINK_TYPES: {
|
|
2931
|
+
[type: RelatableEntityTypeT]: string | null;
|
|
2932
|
+
};
|
|
1189
2933
|
declare const PART_OF_SERIES_LINK_TYPE_GIDS: $ReadOnlyArray<string>;
|
|
1190
2934
|
declare const PART_OF_SERIES_LINK_TYPE_IDS: $ReadOnlyArray<number>;
|
|
1191
2935
|
declare const PROBABLY_CLASSICAL_LINK_TYPES = "WIP convertExpression: ArrayExpression";
|
|
@@ -1200,6 +2944,20 @@ declare const MBID_REGEXP: RegExp;
|
|
|
1200
2944
|
declare const VARTIST_GID = "89ad4ac3-39f7-470e-963a-56509c546377";
|
|
1201
2945
|
declare const VARTIST_ID = 1;
|
|
1202
2946
|
declare const VARTIST_NAME = "Various Artists";
|
|
2947
|
+
declare const ANON_ARTIST_GID = "f731ccc4-e22a-43af-a747-64213329e088";
|
|
2948
|
+
declare const ANON_ARTIST_ID = 15071;
|
|
2949
|
+
declare const DATA_ARTIST_GID = "33cf029c-63b0-41a0-9855-be2a3665fb3b";
|
|
2950
|
+
declare const DATA_ARTIST_ID = 41744;
|
|
2951
|
+
declare const DIALOGUE_ARTIST_GID = "314e1c25-dde7-4e4d-b2f4-0a7b9f7c56dc";
|
|
2952
|
+
declare const DIALOGUE_ARTIST_ID = 92121;
|
|
2953
|
+
declare const NO_ARTIST_GID = "eec63d3c-3b81-4ad4-b1e4-7c147d4d2b61";
|
|
2954
|
+
declare const NO_ARTIST_ID = 105725;
|
|
2955
|
+
declare const TRAD_ARTIST_GID = "9be7f096-97ec-4615-8957-8d40b5dcbc41";
|
|
2956
|
+
declare const TRAD_ARTIST_ID = 762646;
|
|
2957
|
+
declare const UNKNOWN_ARTIST_GID = "125ec42a-7229-4250-afc5-e057484327fe";
|
|
2958
|
+
declare const UNKNOWN_ARTIST_ID = 97546;
|
|
2959
|
+
declare const SPECIAL_ARTIST_GIDS: $ReadOnlyArray<string>;
|
|
2960
|
+
declare const SPECIAL_ARTIST_IDS: $ReadOnlyArray<number>;
|
|
1203
2961
|
declare const NOLABEL_GID = "157afde4-4bf5-4039-8ad2-5a15acc85176";
|
|
1204
2962
|
declare const NOLABEL_ID = 3267;
|
|
1205
2963
|
declare const VIDEO_ATTRIBUTE_ID = 582;
|
|
@@ -1209,7 +2967,9 @@ declare const MAX_RECENT_ENTITIES = 10;
|
|
|
1209
2967
|
declare const MIN_NAME_SIMILARITY = 0.75;
|
|
1210
2968
|
declare const ENTITIES_WITH_RELATIONSHIP_CREDITS = "WIP convertExpression: ObjectExpression";
|
|
1211
2969
|
declare const QUALITY_NAMES: Map<QualityT, "WIP convertTypeNode: FunctionTypeAnnotation">;
|
|
1212
|
-
declare const FLUENCY_NAMES: {
|
|
2970
|
+
declare const FLUENCY_NAMES: {
|
|
2971
|
+
[fluency: string]: "WIP convertTypeNode: FunctionTypeAnnotation";
|
|
2972
|
+
};
|
|
1213
2973
|
declare const LANGUAGE_ENG_ID = 120;
|
|
1214
2974
|
declare const LANGUAGE_MUL_ID = 284;
|
|
1215
2975
|
declare const LANGUAGE_ZXX_ID = 486;
|
|
@@ -1218,13 +2978,158 @@ declare const DISPLAY_NONE_STYLE = "WIP convertExpression: CallExpression";
|
|
|
1218
2978
|
declare const WS_EDIT_RESPONSE_OK: WS_EDIT_RESPONSE_OK_T;
|
|
1219
2979
|
declare const WS_EDIT_RESPONSE_NO_CHANGES: WS_EDIT_RESPONSE_NO_CHANGES_T;
|
|
1220
2980
|
declare const BRACKET_PAIRS = "WIP convertExpression: ArrayExpression";
|
|
2981
|
+
export type LinkedEntitiesT = {
|
|
2982
|
+
area: {
|
|
2983
|
+
[areaId: number]: AreaT;
|
|
2984
|
+
};
|
|
2985
|
+
area_alias_type: {
|
|
2986
|
+
[typeId: number]: AreaAliasTypeT;
|
|
2987
|
+
};
|
|
2988
|
+
area_type: {
|
|
2989
|
+
[areaTypeId: number]: AreaTypeT;
|
|
2990
|
+
};
|
|
2991
|
+
artist: {
|
|
2992
|
+
[artistId: number]: ArtistT;
|
|
2993
|
+
};
|
|
2994
|
+
artist_alias_type: {
|
|
2995
|
+
[typeId: number]: ArtistAliasTypeT;
|
|
2996
|
+
};
|
|
2997
|
+
artist_type: {
|
|
2998
|
+
[artistId: number]: ArtistTypeT;
|
|
2999
|
+
};
|
|
3000
|
+
collection_type: {
|
|
3001
|
+
[collectionTypeId: number]: CollectionTypeT;
|
|
3002
|
+
};
|
|
3003
|
+
edit: {
|
|
3004
|
+
[editId: number]: EditWithIdT;
|
|
3005
|
+
};
|
|
3006
|
+
editor: {
|
|
3007
|
+
[editorId: number]: EditorT;
|
|
3008
|
+
};
|
|
3009
|
+
event: {
|
|
3010
|
+
[eventId: number]: EventT;
|
|
3011
|
+
};
|
|
3012
|
+
event_alias_type: {
|
|
3013
|
+
[typeId: number]: EventAliasTypeT;
|
|
3014
|
+
};
|
|
3015
|
+
event_type: {
|
|
3016
|
+
[eventTypeId: number]: EventTypeT;
|
|
3017
|
+
};
|
|
3018
|
+
genre: {
|
|
3019
|
+
[genreId: number]: GenreT;
|
|
3020
|
+
};
|
|
3021
|
+
genre_alias_type: {
|
|
3022
|
+
[typeId: number]: GenreAliasTypeT;
|
|
3023
|
+
};
|
|
3024
|
+
instrument: {
|
|
3025
|
+
[instrumentId: number]: InstrumentT;
|
|
3026
|
+
};
|
|
3027
|
+
instrument_alias_type: {
|
|
3028
|
+
[typeId: number]: InstrumentAliasTypeT;
|
|
3029
|
+
};
|
|
3030
|
+
instrument_type: {
|
|
3031
|
+
[instrumentTypeId: number]: InstrumentTypeT;
|
|
3032
|
+
};
|
|
3033
|
+
label: {
|
|
3034
|
+
[labelId: number]: LabelT;
|
|
3035
|
+
};
|
|
3036
|
+
label_alias_type: {
|
|
3037
|
+
[typeId: number]: LabelAliasTypeT;
|
|
3038
|
+
};
|
|
3039
|
+
label_type: {
|
|
3040
|
+
[labelTypeId: number]: LabelTypeT;
|
|
3041
|
+
};
|
|
3042
|
+
language: {
|
|
3043
|
+
[languageId: number]: LanguageT;
|
|
3044
|
+
};
|
|
3045
|
+
link_attribute_type: {
|
|
3046
|
+
[linkAttributeTypeIdOrGid: StrOrNum]: LinkAttrTypeT;
|
|
3047
|
+
};
|
|
3048
|
+
link_type: {
|
|
3049
|
+
[linkTypeIdOrGid: StrOrNum]: LinkTypeT;
|
|
3050
|
+
};
|
|
3051
|
+
link_type_tree: {
|
|
3052
|
+
[entityTypes: string]: Array<LinkTypeT>;
|
|
3053
|
+
};
|
|
3054
|
+
place: {
|
|
3055
|
+
[placeId: number]: PlaceT;
|
|
3056
|
+
};
|
|
3057
|
+
place_alias_type: {
|
|
3058
|
+
[typeId: number]: PlaceAliasTypeT;
|
|
3059
|
+
};
|
|
3060
|
+
place_type: {
|
|
3061
|
+
[placeTypeId: number]: PlaceTypeT;
|
|
3062
|
+
};
|
|
3063
|
+
recording: {
|
|
3064
|
+
[recordingId: number]: RecordingT;
|
|
3065
|
+
};
|
|
3066
|
+
recording_alias_type: {
|
|
3067
|
+
[typeId: number]: RecordingAliasTypeT;
|
|
3068
|
+
};
|
|
3069
|
+
release: {
|
|
3070
|
+
[releaseId: number]: ReleaseT;
|
|
3071
|
+
};
|
|
3072
|
+
release_alias_type: {
|
|
3073
|
+
[typeId: number]: ReleaseAliasTypeT;
|
|
3074
|
+
};
|
|
3075
|
+
release_group: {
|
|
3076
|
+
[releaseGroupId: number]: ReleaseGroupT;
|
|
3077
|
+
};
|
|
3078
|
+
release_group_alias_type: {
|
|
3079
|
+
[typeId: number]: ReleaseGroupAliasTypeT;
|
|
3080
|
+
};
|
|
3081
|
+
release_group_primary_type: {
|
|
3082
|
+
[releaseGroupPrimaryTypeId: number]: ReleaseGroupTypeT;
|
|
3083
|
+
};
|
|
3084
|
+
release_group_secondary_type: {
|
|
3085
|
+
[releaseGroupSecondaryTypeId: number]: ReleaseGroupSecondaryTypeT;
|
|
3086
|
+
};
|
|
3087
|
+
release_packaging: {
|
|
3088
|
+
[releasePackagingId: number]: ReleasePackagingT;
|
|
3089
|
+
};
|
|
3090
|
+
release_status: {
|
|
3091
|
+
[releaseStatusId: number]: ReleaseStatusT;
|
|
3092
|
+
};
|
|
3093
|
+
script: {
|
|
3094
|
+
[scriptId: number]: ScriptT;
|
|
3095
|
+
};
|
|
3096
|
+
series: {
|
|
3097
|
+
[seriesId: number]: SeriesT;
|
|
3098
|
+
};
|
|
3099
|
+
series_alias_type: {
|
|
3100
|
+
[typeId: number]: SeriesAliasTypeT;
|
|
3101
|
+
};
|
|
3102
|
+
series_ordering_type: {
|
|
3103
|
+
[seriesOrderingTypeId: number]: SeriesOrderingTypeT;
|
|
3104
|
+
};
|
|
3105
|
+
series_type: {
|
|
3106
|
+
[seriesTypeId: number]: SeriesTypeT;
|
|
3107
|
+
};
|
|
3108
|
+
url: {
|
|
3109
|
+
[urlId: number]: UrlT;
|
|
3110
|
+
};
|
|
3111
|
+
work: {
|
|
3112
|
+
[workId: number]: WorkT;
|
|
3113
|
+
};
|
|
3114
|
+
work_alias_type: {
|
|
3115
|
+
[typeId: number]: WorkAliasTypeT;
|
|
3116
|
+
};
|
|
3117
|
+
work_attribute_type: {
|
|
3118
|
+
[workAttributeTypeId: number]: WorkAttributeTypeT;
|
|
3119
|
+
};
|
|
3120
|
+
work_type: {
|
|
3121
|
+
[workTypeId: number]: WorkTypeT;
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
1221
3124
|
export type EveryPropertyIsExistsOrNot<T> = T | {
|
|
1222
3125
|
[K in keyof T]?: undefined | null;
|
|
1223
3126
|
};
|
|
1224
3127
|
export type RelationshipEditorBase = EveryPropertyIsExistsOrNot<{
|
|
1225
3128
|
relationshipDialogDispatch: (action: DialogActionT) => void;
|
|
1226
3129
|
relationshipDialogState: RelationshipDialogStateT;
|
|
1227
|
-
}
|
|
3130
|
+
}> & {
|
|
3131
|
+
getRelationshipStateId: (relationship: RelationshipT | SeededRelationshipT | null) => number;
|
|
3132
|
+
};
|
|
1228
3133
|
export type ReleaseRelationshipEditor = RelationshipEditorBase & EveryPropertyIsExistsOrNot<{
|
|
1229
3134
|
state: ReleaseRelationshipEditorStateT;
|
|
1230
3135
|
dispatch: (action: ReleaseRelationshipEditorActionT) => void;
|
|
@@ -1242,11 +3147,12 @@ declare global {
|
|
|
1242
3147
|
* If you're on a relationship editor page, this should be available.
|
|
1243
3148
|
*/
|
|
1244
3149
|
tree?: typeof import("./weight-balanced-tree.js");
|
|
3150
|
+
linkedEntities: LinkedEntitiesT;
|
|
1245
3151
|
};
|
|
1246
3152
|
}
|
|
1247
3153
|
|
|
1248
3154
|
declare namespace constants {
|
|
1249
|
-
export { AREA_TYPE_COUNTRY, ARTIST_GROUP_TYPES, ARTIST_TYPE_CHOIR, ARTIST_TYPE_GROUP, ARTIST_TYPE_ORCHESTRA, ARTIST_TYPE_PERSON, BRACKET_PAIRS, CONTACT_URL, COUNTRY_JA_AREA_ID, DARTIST_ID, DISPLAY_NONE_STYLE, DLABEL_ID, EMPTY_PARTIAL_DATE, ENTITIES_WITH_RELATIONSHIP_CREDITS, ENTITY_NAMES, FAVICON_CLASSES, FLUENCY_NAMES, INSTRUMENT_ROOT_ID, LANGUAGE_ENG_ID, LANGUAGE_MUL_ID, LANGUAGE_ZXX_ID, MAX_LENGTH_DIFFERENCE, MAX_RECENT_ENTITIES, MBID_REGEXP, MIN_NAME_SIMILARITY, NOLABEL_GID, NOLABEL_ID, PART_OF_SERIES_LINK_TYPES, PART_OF_SERIES_LINK_TYPE_GIDS, PART_OF_SERIES_LINK_TYPE_IDS, PROBABLY_CLASSICAL_LINK_TYPES, QUALITY_NAMES, RECORDING_OF_LINK_TYPE_GID, RECORDING_OF_LINK_TYPE_ID, RT_MIRROR, SERIES_ORDERING_ATTRIBUTE, SERIES_ORDERING_TYPE_AUTOMATIC, SERIES_ORDERING_TYPE_MANUAL, TASK_ATTRIBUTE_ID, TIME_ATTRIBUTE, VARTIST_GID, VARTIST_ID, VARTIST_NAME, VIDEO_ATTRIBUTE_GID, VIDEO_ATTRIBUTE_ID, VOCAL_ROOT_ID, WS_EDIT_RESPONSE_NO_CHANGES, WS_EDIT_RESPONSE_OK };
|
|
3155
|
+
export { ANON_ARTIST_GID, ANON_ARTIST_ID, AREA_TYPE_COUNTRY, ARTIST_GROUP_TYPES, ARTIST_TYPE_CHOIR, ARTIST_TYPE_GROUP, ARTIST_TYPE_ORCHESTRA, ARTIST_TYPE_PERSON, BRACKET_PAIRS, CONTACT_URL, COUNTRY_JA_AREA_ID, DARTIST_ID, DATA_ARTIST_GID, DATA_ARTIST_ID, DIALOGUE_ARTIST_GID, DIALOGUE_ARTIST_ID, DISPLAY_NONE_STYLE, DLABEL_ID, EMPTY_PARTIAL_DATE, ENTITIES_WITH_RELATIONSHIP_CREDITS, ENTITY_NAMES, FAVICON_CLASSES, FLUENCY_NAMES, INSTRUMENT_ROOT_ID, LANGUAGE_ENG_ID, LANGUAGE_MUL_ID, LANGUAGE_ZXX_ID, MAX_LENGTH_DIFFERENCE, MAX_RECENT_ENTITIES, MBID_REGEXP, MIN_NAME_SIMILARITY, NOLABEL_GID, NOLABEL_ID, NO_ARTIST_GID, NO_ARTIST_ID, PART_OF_SERIES_LINK_TYPES, PART_OF_SERIES_LINK_TYPE_GIDS, PART_OF_SERIES_LINK_TYPE_IDS, PROBABLY_CLASSICAL_LINK_TYPES, QUALITY_NAMES, RECORDING_OF_LINK_TYPE_GID, RECORDING_OF_LINK_TYPE_ID, RT_MIRROR, SERIES_ORDERING_ATTRIBUTE, SERIES_ORDERING_TYPE_AUTOMATIC, SERIES_ORDERING_TYPE_MANUAL, SPECIAL_ARTIST_GIDS, SPECIAL_ARTIST_IDS, TASK_ATTRIBUTE_ID, TIME_ATTRIBUTE, TRAD_ARTIST_GID, TRAD_ARTIST_ID, UNKNOWN_ARTIST_GID, UNKNOWN_ARTIST_ID, VARTIST_GID, VARTIST_ID, VARTIST_NAME, VIDEO_ATTRIBUTE_GID, VIDEO_ATTRIBUTE_ID, VOCAL_ROOT_ID, WS_EDIT_RESPONSE_NO_CHANGES, WS_EDIT_RESPONSE_OK };
|
|
1250
3156
|
}
|
|
1251
3157
|
|
|
1252
3158
|
export {};
|