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