musicbrainz-api 0.5.2 → 0.7.2
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/.idea/$CACHE_FILE$ +6 -0
- package/.idea/$PRODUCT_WORKSPACE_FILE$ +19 -0
- package/.idea/checkstyle-idea.xml +16 -0
- package/.idea/codeStyles/Project.xml +38 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_6-1-2022_11_38_[Default_Changelist]/shelved.patch +58 -0
- package/.idea/shelf/Uncommitted_changes_before_Update_at_6-1-2022_11_38__Default_Changelist_.xml +4 -0
- package/.idea/shelf/Uncommitted_changes_before_rebase_[Default_Changelist]/shelved.patch +738 -0
- package/.idea/shelf/Uncommitted_changes_before_rebase_[Default_Changelist]1/shelved.patch +0 -0
- package/.idea/shelf/Uncommitted_changes_before_rebase__Default_Changelist_.xml +4 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +722 -0
- package/README.md +290 -287
- package/etc/config.js +32 -0
- package/lib/digest-auth.d.ts +21 -21
- package/lib/digest-auth.js +87 -86
- package/lib/musicbrainz-api.d.ts +156 -140
- package/lib/musicbrainz-api.js +390 -372
- package/lib/musicbrainz.types.d.ts +379 -252
- package/lib/musicbrainz.types.js +16 -15
- package/lib/rate-limiter.d.ts +8 -8
- package/lib/rate-limiter.js +31 -30
- package/lib/xml/xml-isrc-list.d.ts +17 -17
- package/lib/xml/xml-isrc-list.js +22 -21
- package/lib/xml/xml-isrc.d.ts +10 -10
- package/lib/xml/xml-isrc.js +17 -16
- package/lib/xml/xml-metadata.d.ts +6 -6
- package/lib/xml/xml-metadata.js +29 -28
- package/lib/xml/xml-recording.d.ts +24 -24
- package/lib/xml/xml-recording.js +20 -19
- package/package.json +98 -99
- package/yarn-error.log +3608 -0
|
@@ -1,252 +1,379 @@
|
|
|
1
|
-
import DateTimeFormat = Intl.DateTimeFormat;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
status: string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
export interface
|
|
137
|
-
}
|
|
138
|
-
export interface
|
|
139
|
-
}
|
|
140
|
-
export interface
|
|
141
|
-
}
|
|
142
|
-
export interface
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
'
|
|
167
|
-
|
|
168
|
-
'
|
|
169
|
-
|
|
170
|
-
'
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
export interface
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
export declare
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1
|
+
import DateTimeFormat = Intl.DateTimeFormat;
|
|
2
|
+
import { IFormData, Includes } from './musicbrainz-api';
|
|
3
|
+
export interface IPeriod {
|
|
4
|
+
'begin': string;
|
|
5
|
+
'ended': boolean;
|
|
6
|
+
'end': string;
|
|
7
|
+
}
|
|
8
|
+
export interface IArea {
|
|
9
|
+
id: string;
|
|
10
|
+
'iso-3166-1-codes': string[];
|
|
11
|
+
name: string;
|
|
12
|
+
'sort-name': string;
|
|
13
|
+
disambiguation: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IAlias {
|
|
16
|
+
name: string;
|
|
17
|
+
'sort-name': string;
|
|
18
|
+
ended: boolean;
|
|
19
|
+
'type-id': string;
|
|
20
|
+
type: string;
|
|
21
|
+
locale: string;
|
|
22
|
+
primary: string;
|
|
23
|
+
begin: string;
|
|
24
|
+
end: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IMatch {
|
|
27
|
+
score: number;
|
|
28
|
+
}
|
|
29
|
+
export interface IArtist {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
disambiguation: string;
|
|
33
|
+
'sort-name': string;
|
|
34
|
+
'type-id'?: string;
|
|
35
|
+
'gender-id'?: any;
|
|
36
|
+
'life-span'?: IPeriod;
|
|
37
|
+
country?: string;
|
|
38
|
+
ipis?: any[];
|
|
39
|
+
isnis?: string[];
|
|
40
|
+
aliases?: IAlias[];
|
|
41
|
+
gender?: null;
|
|
42
|
+
type?: string;
|
|
43
|
+
area?: IArea;
|
|
44
|
+
begin_area?: IArea;
|
|
45
|
+
end_area?: IArea;
|
|
46
|
+
relations?: IRelation[];
|
|
47
|
+
/**
|
|
48
|
+
* Only defined if 'releases' are includes
|
|
49
|
+
*/
|
|
50
|
+
releases?: IRelease[];
|
|
51
|
+
'release-groups'?: IReleaseGroup[];
|
|
52
|
+
}
|
|
53
|
+
export interface IArtistCredit {
|
|
54
|
+
artist: IArtist;
|
|
55
|
+
joinphrase: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
export declare type ReleaseQuality = 'normal';
|
|
59
|
+
export interface IRelease {
|
|
60
|
+
id: string;
|
|
61
|
+
title: string;
|
|
62
|
+
'text-representation': {
|
|
63
|
+
'language': string;
|
|
64
|
+
'script': string;
|
|
65
|
+
};
|
|
66
|
+
disambiguation: string;
|
|
67
|
+
asin: string;
|
|
68
|
+
'status-id': string;
|
|
69
|
+
packaging?: string;
|
|
70
|
+
status: string;
|
|
71
|
+
'packaging-id'?: string;
|
|
72
|
+
'release-events'?: IReleaseEvent[];
|
|
73
|
+
date: string;
|
|
74
|
+
media: IMedium[];
|
|
75
|
+
'cover-art-archive': ICoverArtArchive;
|
|
76
|
+
country: string;
|
|
77
|
+
quality: string;
|
|
78
|
+
barcode: string;
|
|
79
|
+
relations?: IRelation[];
|
|
80
|
+
'artist-credit'?: IArtistCredit[];
|
|
81
|
+
'release-group'?: IReleaseGroup;
|
|
82
|
+
}
|
|
83
|
+
export interface IReleaseEvent {
|
|
84
|
+
area?: IArea;
|
|
85
|
+
date?: string;
|
|
86
|
+
}
|
|
87
|
+
export declare type MediaFormatType = 'Digital Media';
|
|
88
|
+
export interface IRecording {
|
|
89
|
+
id: string;
|
|
90
|
+
video: boolean;
|
|
91
|
+
length: number;
|
|
92
|
+
title: string;
|
|
93
|
+
disambiguation: string;
|
|
94
|
+
isrcs?: string[];
|
|
95
|
+
releases?: IRelease;
|
|
96
|
+
relations?: IRelation[];
|
|
97
|
+
'artist-credit'?: IArtistCredit[];
|
|
98
|
+
aliases?: IAlias[];
|
|
99
|
+
}
|
|
100
|
+
export interface ITrack {
|
|
101
|
+
id: string;
|
|
102
|
+
position: number;
|
|
103
|
+
recording: IRecording;
|
|
104
|
+
number: string;
|
|
105
|
+
length: number;
|
|
106
|
+
title: string;
|
|
107
|
+
'artist-credit'?: IArtistCredit[];
|
|
108
|
+
}
|
|
109
|
+
export interface IMedium {
|
|
110
|
+
title: string;
|
|
111
|
+
format?: string;
|
|
112
|
+
'format-id': string;
|
|
113
|
+
'tracks': ITrack[];
|
|
114
|
+
'track-count': number;
|
|
115
|
+
'track-offset': number;
|
|
116
|
+
'position': number;
|
|
117
|
+
}
|
|
118
|
+
export interface ICoverArtArchive {
|
|
119
|
+
count: number;
|
|
120
|
+
front: boolean;
|
|
121
|
+
darkened: boolean;
|
|
122
|
+
artwork: boolean;
|
|
123
|
+
back: boolean;
|
|
124
|
+
}
|
|
125
|
+
export interface IReleaseGroup {
|
|
126
|
+
id: string;
|
|
127
|
+
count: number;
|
|
128
|
+
title: string;
|
|
129
|
+
'primary-type': string;
|
|
130
|
+
'sort-name': string;
|
|
131
|
+
'artist-credit': [{
|
|
132
|
+
artist: IArtist;
|
|
133
|
+
}];
|
|
134
|
+
releases?: IRelease[];
|
|
135
|
+
}
|
|
136
|
+
export interface IArtistMatch extends IArtist, IMatch {
|
|
137
|
+
}
|
|
138
|
+
export interface IReleaseGroupMatch extends IReleaseGroup, IMatch {
|
|
139
|
+
}
|
|
140
|
+
export interface IReleaseMatch extends IRelease, IMatch {
|
|
141
|
+
}
|
|
142
|
+
export interface IAreaMatch extends IArea, IMatch {
|
|
143
|
+
}
|
|
144
|
+
export interface ISearchResult {
|
|
145
|
+
created: DateTimeFormat;
|
|
146
|
+
count: number;
|
|
147
|
+
offset: number;
|
|
148
|
+
}
|
|
149
|
+
export interface IArtistList extends ISearchResult {
|
|
150
|
+
artists: IArtistMatch[];
|
|
151
|
+
}
|
|
152
|
+
export interface IAreaList extends ISearchResult {
|
|
153
|
+
areas: IAreaMatch[];
|
|
154
|
+
}
|
|
155
|
+
export interface IReleaseList extends ISearchResult {
|
|
156
|
+
releases: IReleaseMatch[];
|
|
157
|
+
}
|
|
158
|
+
export interface IReleaseGroupList extends ISearchResult {
|
|
159
|
+
'release-groups': IReleaseGroupMatch[];
|
|
160
|
+
}
|
|
161
|
+
export interface IUrlList extends ISearchResult {
|
|
162
|
+
urls: IUrlMatch[];
|
|
163
|
+
}
|
|
164
|
+
export declare type RelationDirection = 'backward' | 'forward';
|
|
165
|
+
export interface IRelation {
|
|
166
|
+
'attribute-ids': {};
|
|
167
|
+
direction: RelationDirection;
|
|
168
|
+
'target-credit': string;
|
|
169
|
+
end: null | object;
|
|
170
|
+
'source-credit': string;
|
|
171
|
+
ended: boolean;
|
|
172
|
+
'attribute-values': object;
|
|
173
|
+
attributes?: any[];
|
|
174
|
+
type: string;
|
|
175
|
+
begin?: null | object;
|
|
176
|
+
'target-type'?: 'url';
|
|
177
|
+
'type-id': string;
|
|
178
|
+
url?: IURL;
|
|
179
|
+
release?: IRelease;
|
|
180
|
+
}
|
|
181
|
+
export interface IURL {
|
|
182
|
+
id: string;
|
|
183
|
+
resource: string;
|
|
184
|
+
}
|
|
185
|
+
export interface IRelationList {
|
|
186
|
+
relations: IRelation[];
|
|
187
|
+
}
|
|
188
|
+
export interface IWork {
|
|
189
|
+
id: string;
|
|
190
|
+
title: string;
|
|
191
|
+
}
|
|
192
|
+
export interface ILabel {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export interface IUrl {
|
|
197
|
+
id: string;
|
|
198
|
+
resource: string;
|
|
199
|
+
'relation-list': IRelationList[];
|
|
200
|
+
}
|
|
201
|
+
export interface IUrlMatch extends IMatch, IUrl {
|
|
202
|
+
}
|
|
203
|
+
export interface IUrlSearchResult extends ISearchResult {
|
|
204
|
+
urls?: IUrlMatch[];
|
|
205
|
+
}
|
|
206
|
+
export interface IIsrcSearchResult {
|
|
207
|
+
'isrc': string;
|
|
208
|
+
'recordings': IRecording[];
|
|
209
|
+
}
|
|
210
|
+
export interface IExernalIds {
|
|
211
|
+
[type: string]: string;
|
|
212
|
+
}
|
|
213
|
+
export interface IReleaseSearchResult extends ISearchResult {
|
|
214
|
+
releases: IRelease[];
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#Subqueries
|
|
218
|
+
*/
|
|
219
|
+
export declare type EntityType = 'area' | 'artist' | 'collection' | 'event' | 'instrument' | 'label' | 'place' | 'recording' | 'release' | 'release-group' | 'series' | 'work' | 'url';
|
|
220
|
+
export declare type Relationships = 'area-rels' | 'artist-rels' | 'event-rels' | 'instrument-rels' | 'label-rels' | 'place-rels' | 'recording-rels' | 'release-rels' | 'release-group-rels' | 'series-rels' | 'url-rels' | 'work-rels';
|
|
221
|
+
export declare enum LinkType {
|
|
222
|
+
license = 302,
|
|
223
|
+
production = 256,
|
|
224
|
+
samples_IMDb_entry = 258,
|
|
225
|
+
get_the_music = 257,
|
|
226
|
+
purchase_for_download = 254,
|
|
227
|
+
download_for_free = 255,
|
|
228
|
+
stream_for_free = 268,
|
|
229
|
+
crowdfunding_page = 905,
|
|
230
|
+
other_databases = 306,
|
|
231
|
+
Allmusic = 285
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2/Search#Artist
|
|
235
|
+
*/
|
|
236
|
+
export interface IPagination {
|
|
237
|
+
/**
|
|
238
|
+
* Return search results starting at a given offset. Used for paging through more than one page of results.
|
|
239
|
+
*/
|
|
240
|
+
offset?: number;
|
|
241
|
+
/**
|
|
242
|
+
* An integer value defining how many entries should be returned. Only values between 1 and 100 (both inclusive) are allowed. If not given, this defaults to 25.
|
|
243
|
+
*/
|
|
244
|
+
limit?: number;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2/Search#Artist
|
|
248
|
+
*/
|
|
249
|
+
export interface ISearchQuery extends IPagination {
|
|
250
|
+
/**
|
|
251
|
+
* Lucene search query, this is mandatory
|
|
252
|
+
*/
|
|
253
|
+
query?: string | IFormData;
|
|
254
|
+
inc?: Includes[];
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Browse
|
|
258
|
+
* /ws/2/area collection
|
|
259
|
+
*/
|
|
260
|
+
export interface ILinkedEntitiesArea {
|
|
261
|
+
collection?: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Browse
|
|
265
|
+
* /ws/2/artist area, collection, recording, release, release-group, work
|
|
266
|
+
*/
|
|
267
|
+
export interface ILinkedEntitiesArtist {
|
|
268
|
+
area?: string;
|
|
269
|
+
collection?: string;
|
|
270
|
+
recording?: string;
|
|
271
|
+
release?: string;
|
|
272
|
+
'release-group'?: string;
|
|
273
|
+
work?: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Browse
|
|
277
|
+
* /ws/2/collection area, artist, editor, event, label, place, recording, release, release-group, work
|
|
278
|
+
*/
|
|
279
|
+
export interface ILinkedEntitiesCollection {
|
|
280
|
+
area?: string;
|
|
281
|
+
artist?: string;
|
|
282
|
+
editor?: string;
|
|
283
|
+
event?: string;
|
|
284
|
+
label?: string;
|
|
285
|
+
place?: string;
|
|
286
|
+
recording?: string;
|
|
287
|
+
release?: string;
|
|
288
|
+
'release-group'?: string;
|
|
289
|
+
work?: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
293
|
+
* /ws/2/event area, artist, collection, place
|
|
294
|
+
*/
|
|
295
|
+
export interface ILinkedEntitiesEvent {
|
|
296
|
+
area?: string;
|
|
297
|
+
artist?: string;
|
|
298
|
+
collection?: string;
|
|
299
|
+
place?: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
303
|
+
* /ws/2/instrument collection
|
|
304
|
+
*/
|
|
305
|
+
export interface ILinkedEntitiesInstrument {
|
|
306
|
+
collection?: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
310
|
+
* /ws/2/label area, collection, release
|
|
311
|
+
*/
|
|
312
|
+
export interface ILinkedEntitiesLabel {
|
|
313
|
+
area?: string;
|
|
314
|
+
collection?: string;
|
|
315
|
+
release?: string;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
319
|
+
* /ws/2/place area, collection
|
|
320
|
+
*/
|
|
321
|
+
export interface IBrowseArgumentPlace {
|
|
322
|
+
area?: string;
|
|
323
|
+
collection?: string;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
327
|
+
* /ws/2/recording artist, collection, release, work
|
|
328
|
+
*/
|
|
329
|
+
export interface ILinkedEntitiesRecording {
|
|
330
|
+
area?: string;
|
|
331
|
+
collection?: string;
|
|
332
|
+
release?: string;
|
|
333
|
+
work?: string;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
337
|
+
* /ws/2/release area, artist, collection, label, track, track_artist, recording, release-group
|
|
338
|
+
*/
|
|
339
|
+
export interface ILinkedEntitiesRelease {
|
|
340
|
+
area?: string;
|
|
341
|
+
artist?: string;
|
|
342
|
+
collection?: string;
|
|
343
|
+
label?: string;
|
|
344
|
+
track?: string;
|
|
345
|
+
track_artist?: string;
|
|
346
|
+
recording?: string;
|
|
347
|
+
'release-group'?: string;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
351
|
+
* /ws/2/release-group artist, collection, release
|
|
352
|
+
*/
|
|
353
|
+
export interface ILinkedEntitiesReleaseGroup {
|
|
354
|
+
artist?: string;
|
|
355
|
+
collection?: string;
|
|
356
|
+
release?: string;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Subqueries
|
|
360
|
+
* /ws/2/series collection
|
|
361
|
+
*/
|
|
362
|
+
export interface ILinkedEntitiesSeries {
|
|
363
|
+
collection?: string;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Browse
|
|
367
|
+
* /ws/2/work artist, collection
|
|
368
|
+
*/
|
|
369
|
+
export interface ILinkedEntitiesWork {
|
|
370
|
+
artist?: string;
|
|
371
|
+
collection?: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* https://musicbrainz.org/doc/MusicBrainz_API#Browse
|
|
375
|
+
* /ws/2/url resource
|
|
376
|
+
*/
|
|
377
|
+
export interface ILinkedEntitiesUrl {
|
|
378
|
+
resource?: string;
|
|
379
|
+
}
|
package/lib/musicbrainz.types.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
LinkType[LinkType["
|
|
7
|
-
LinkType[LinkType["
|
|
8
|
-
LinkType[LinkType["
|
|
9
|
-
LinkType[LinkType["
|
|
10
|
-
LinkType[LinkType["
|
|
11
|
-
LinkType[LinkType["
|
|
12
|
-
LinkType[LinkType["
|
|
13
|
-
LinkType[LinkType["
|
|
14
|
-
LinkType[LinkType["
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinkType = void 0;
|
|
4
|
+
var LinkType;
|
|
5
|
+
(function (LinkType) {
|
|
6
|
+
LinkType[LinkType["license"] = 302] = "license";
|
|
7
|
+
LinkType[LinkType["production"] = 256] = "production";
|
|
8
|
+
LinkType[LinkType["samples_IMDb_entry"] = 258] = "samples_IMDb_entry";
|
|
9
|
+
LinkType[LinkType["get_the_music"] = 257] = "get_the_music";
|
|
10
|
+
LinkType[LinkType["purchase_for_download"] = 254] = "purchase_for_download";
|
|
11
|
+
LinkType[LinkType["download_for_free"] = 255] = "download_for_free";
|
|
12
|
+
LinkType[LinkType["stream_for_free"] = 268] = "stream_for_free";
|
|
13
|
+
LinkType[LinkType["crowdfunding_page"] = 905] = "crowdfunding_page";
|
|
14
|
+
LinkType[LinkType["other_databases"] = 306] = "other_databases";
|
|
15
|
+
LinkType[LinkType["Allmusic"] = 285] = "Allmusic";
|
|
16
|
+
})(LinkType = exports.LinkType || (exports.LinkType = {}));
|
|
16
17
|
//# sourceMappingURL=musicbrainz.types.js.map
|