Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metaphysics schema #6669

Merged
merged 1 commit into from
Apr 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 121 additions & 22 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,8 @@ type Artist implements EntityWithFilterArtworksConnectionInterface & Node & Sear
marketingCollections(
category: String
isFeaturedArtistContent: Boolean
randomizationSeed: String
showOnEditorial: Boolean
size: Int
slugs: [String!]
): [MarketingCollection]
Expand Down Expand Up @@ -8977,6 +8979,7 @@ type LotStanding {
saleArtwork: SaleArtwork
}

# Object representing a collection page
type MarketingCollection {
artworksConnection(
acquireable: Boolean
Expand Down Expand Up @@ -9029,33 +9032,66 @@ type MarketingCollection {
tagID: String
width: String
): FilterArtworksConnection

# Category of the collection
category: String!
createdAt: ISO8601DateTime!
createdAt: MarketingDateTime!

# Image credit for the header image
credit: String

# Description of the collection which can include links to other collections
description: String

# Markdown alternate of description field contents.
descriptionMarkdown: String
featuredArtistExclusionIds: [String!]!
headerImage: String

# Unique ID for this marketing collection
id: ID!
# IDs of artists that should be excluded from Featured Artists for this collection
featuredArtistExclusionIds: [String!]

# Unique ID for this marketing collection
# Background image for the header of the collection page
headerImage: String
id: ID!
internalID: ID!

# Returns true if this collection has linked collections with members
# Collection has prioritized connection to artist
is_featured_artist_content: Boolean! @deprecated(reason: "Prefer isFeaturedArtistContent")
isDepartment: Boolean!

# Collection has prioritized connection to artist
isFeaturedArtistContent: Boolean!

# Set of keywords used for SEO purposes
keywords: String!

# CollectionGroups of this collection
linkedCollections: [MarketingCollectionGroup!]!

# Suggested average price for included works
price_guidance: Float @deprecated(reason: "Prefer priceGuidance")

# Suggested average price for included works
priceGuidance: Float
query: MarketingCollectionQuery!

# Returns collections by the same artist if more than 4 exist, otherwise returns collections from the same category
# Structured object used to build filtered artworks query
query: MarketingCollectionQuery!
relatedCollections(size: Int = 10): [MarketingCollection!]!

# Collection can be surfaced on editorial pages
show_on_editorial: Boolean! @deprecated(reason: "Prefer showOnEditorial")

# Collection can be surfaced on editorial pages
showOnEditorial: Boolean!

# slug version of title, used for pretty URLs (e.g. `kaws-prints` for Kaws Prints
slug: String!

# URL for Thumbnail image to be used when this collection is displayed.
thumbnail: String

# Name of the collection
title: String!
updatedAt: ISO8601DateTime!
updatedAt: MarketingDateTime!
}

type MarketingCollectionCategory {
Expand All @@ -9064,8 +9100,8 @@ type MarketingCollectionCategory {
}

type MarketingCollectionGroup {
groupType: MarketingCollectionGroupTypeEnum!
internalID: ID!
groupType: MarketingGroupTypes!
internalID: ID
members: [MarketingCollection!]!
name: String!
}
Expand All @@ -9078,16 +9114,65 @@ enum MarketingCollectionGroupTypeEnum {
}

type MarketingCollectionQuery {
acquireable: Boolean
aggregations: [String!]
artist_id: String @deprecated(reason: "Prefer artistID")
artist_ids: [String!] @deprecated(reason: "Prefer artistIDs")
artistID: String
artistIDs: [String!]
at_auction: Boolean @deprecated(reason: "Prefer atAuction")
atAuction: Boolean
color: String
dimension_range: String @deprecated(reason: "Prefer dimensionRange")
dimensionRange: String
extra_aggregation_gene_ids: [String!] @deprecated(reason: "prefer extraAggregationGeneIDs")
extraAggregationGeneIDs: [String!]
for_sale: Boolean @deprecated(reason: "Prefer forSale")
forSale: Boolean
gene_id: String @deprecated(reason: "Prefer geneID")
gene_ids: [String!] @deprecated(reason: "Prefer geneIDs")
geneID: String
geneIDs: [String!]

# Is always null, will be eliminated later
height: String
id: ID

# Is always null, will be eliminated later
include_artworks_by_followed_artists: Boolean
@deprecated(reason: "Prefer includeArtworksByFollowedArtists")
include_medium_filter_in_aggregation: Boolean
@deprecated(reason: "Prefer includeMediumFilterInAggregation")
includeArtworksByFollowedArtists: Boolean
includeMediumFilterInAggregation: Boolean
inquireable_only: Boolean @deprecated(reason: "Prefer inquireableOnly")
inquireableOnly: Boolean
internalID: ID
keyword: String
major_periods: [String!] @deprecated(reason: "Prefer majorPeriods")
majorPeriods: [String!]
medium: String
page: Int
partner_cities: [String!] @deprecated(reason: "Prefer partnerCities")
partner_id: ID @deprecated(reason: "Prefer partnerID")
partnerCities: [String!]
partnerID: ID
period: String
periods: [String!]
price_range: String @deprecated(reason: "Prefer priceRange")
priceRange: String
sale_id: ID @deprecated(reason: "Prefer saleID")
saleID: ID
size: Int
sort: String
tag_id: String @deprecated(reason: "Prefer tagID")
tagID: String
width: String
}

scalar MarketingDateTime

# Available types of CollectionGroup
enum MarketingGroupTypes {
ArtistSeries
FeaturedCollections
OtherCollections
}

# Market Price Insights
Expand Down Expand Up @@ -11088,6 +11173,19 @@ type Query {
# Get Algolia configuration
_unused_gravity_algolia: Algolia!
_unused_gravity_devices(userId: ID!): [Device!]!
_unused_gravity_marketingCategories: [MarketingCollectionCategory!]!

# Find a marketing collection by ID or slug
_unused_gravity_marketingCollection(slug: String!): MarketingCollection

# An array of marketing collections. Defaults to returning all available collections if no args are passed
_unused_gravity_marketingCollections(
artistID: ID
category: String
isFeaturedArtistContent: Boolean
size: Int
slugs: [String!]
): [MarketingCollection!]

# Autocomplete resolvers.
_unused_gravity_match_partners(
Expand Down Expand Up @@ -11669,18 +11767,17 @@ type Query {
job(id: ID!): Job!
jobs: [Job!]!
marketingCategories: [MarketingCollectionCategory!]!

# Find a marketing collection by ID or slug
marketingCollection(slug: String!): MarketingCollection

# An array of marketing collections. Defaults to returning all available collections if no args are passed
marketingCollections(
artistID: ID
artistID: String
category: String
isFeaturedArtistContent: Boolean
randomizationSeed: String
showOnEditorial: Boolean
size: Int
slugs: [String!]
): [MarketingCollection!]
): [MarketingCollection!]!
marketingHubCollections: [MarketingCollection!]!

# Get price insights for a market.
marketPriceInsights(artistId: ID!, medium: String!): MarketPriceInsights
Expand Down Expand Up @@ -14798,6 +14895,8 @@ type Viewer {
artistID: String
category: String
isFeaturedArtistContent: Boolean
randomizationSeed: String
showOnEditorial: Boolean
size: Int
slugs: [String!]
): [MarketingCollection]
Expand Down