2017-11-18 23:48:23 +00:00
|
|
|
|
import gql from '../../tag'
|
|
|
|
|
|
|
|
|
|
|
|
export default gql`
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
An individual piece of album artwork from the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive).
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
type CoverArtArchiveImage {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The Internet Archive’s internal file ID for the image.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
fileID: String!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The URL at which the image can be found.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
image: URLString!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A set of thumbnails for the image.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
thumbnails: CoverArtArchiveImageThumbnails!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
Whether this image depicts the “main front” of the release.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
front: Boolean!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
Whether this image depicts the “main back” of the release.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
back: Boolean!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A list of [image types](https://musicbrainz.org/doc/Cover_Art/Types)
|
|
|
|
|
|
describing what part(s) of the release the image includes.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
types: [String]!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The MusicBrainz edit ID.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
edit: Int
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
Whether the image was approved by the MusicBrainz edit system.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
approved: Boolean
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A free-text comment left for the image.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
comment: String
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The image sizes that may be requested at the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive).
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
enum CoverArtArchiveImageSize {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A maximum dimension of 250px.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
SMALL
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A maximum dimension of 500px.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
LARGE
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The image’s original dimensions, with no maximum.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
FULL
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
URLs for thumbnails of different sizes for a particular piece of cover art.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
type CoverArtArchiveImageThumbnails {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The URL of a small version of the cover art, where the maximum dimension is
|
|
|
|
|
|
250px.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
small: URLString
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The URL of a large version of the cover art, where the maximum dimension is
|
|
|
|
|
|
500px.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
large: URLString
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
An object containing a list of the cover art images for a release obtained
|
|
|
|
|
|
from the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive),
|
|
|
|
|
|
as well as a summary of what artwork is available.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
type CoverArtArchiveRelease {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The URL of an image depicting the album cover or “main front” of the release,
|
|
|
|
|
|
i.e. the front of the packaging of the audio recording (or in the case of a
|
|
|
|
|
|
digital release, the image associated with it in a digital media store).
|
|
|
|
|
|
|
|
|
|
|
|
In the MusicBrainz schema, this field is a Boolean value indicating the
|
|
|
|
|
|
presence of a front image, whereas here the value is the URL for the image
|
|
|
|
|
|
itself if one exists. You can check for null if you just want to determine
|
|
|
|
|
|
the presence of an image.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
front(
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The size of the image to retrieve. By default, the returned image will
|
|
|
|
|
|
have its full original dimensions, but certain thumbnail sizes may be
|
|
|
|
|
|
retrieved as well.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
size: CoverArtArchiveImageSize = FULL
|
|
|
|
|
|
): URLString
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The URL of an image depicting the “main back” of the release, i.e. the back
|
|
|
|
|
|
of the packaging of the audio recording.
|
|
|
|
|
|
|
|
|
|
|
|
In the MusicBrainz schema, this field is a Boolean value indicating the
|
|
|
|
|
|
presence of a back image, whereas here the value is the URL for the image
|
|
|
|
|
|
itself. You can check for null if you just want to determine the presence of
|
|
|
|
|
|
an image.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
back(
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The size of the image to retrieve. By default, the returned image will
|
|
|
|
|
|
have its full original dimensions, but certain thumbnail sizes may be
|
|
|
|
|
|
retrieved as well.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
size: CoverArtArchiveImageSize = FULL
|
|
|
|
|
|
): URLString
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
A list of images depicting the different sides and surfaces of a release’s
|
|
|
|
|
|
media and packaging.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
images: [CoverArtArchiveImage]!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
Whether there is artwork present for this release.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
artwork: Boolean!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The number of artwork images present for this release.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
count: Int!
|
|
|
|
|
|
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The particular release shown in the returned cover art.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
release: Release
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extend type Release {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
An object containing a list and summary of the cover art images that are
|
|
|
|
|
|
present for this release from the [Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive).
|
|
|
|
|
|
This field is provided by the Cover Art Archive extension.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
coverArtArchive: CoverArtArchiveRelease
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extend type ReleaseGroup {
|
2018-08-04 19:04:19 +00:00
|
|
|
|
"""
|
|
|
|
|
|
The cover art for a release in the release group, obtained from the
|
|
|
|
|
|
[Cover Art Archive](https://musicbrainz.org/doc/Cover_Art_Archive). A
|
|
|
|
|
|
release in the release group will be chosen as representative of the release
|
|
|
|
|
|
group.
|
|
|
|
|
|
This field is provided by the Cover Art Archive extension.
|
|
|
|
|
|
"""
|
2017-11-18 23:48:23 +00:00
|
|
|
|
coverArtArchive: CoverArtArchiveRelease
|
|
|
|
|
|
}
|
2017-10-19 08:00:21 +00:00
|
|
|
|
`
|