diff --git a/src/Apps/Artist/ArtistApp.tsx b/src/Apps/Artist/ArtistApp.tsx index 5d027f59042..a1bd918521a 100644 --- a/src/Apps/Artist/ArtistApp.tsx +++ b/src/Apps/Artist/ArtistApp.tsx @@ -6,7 +6,6 @@ import { useScrollToOpenArtistAuthModal } from "Utils/Hooks/useScrollToOpenArtis import type { ArtistApp_artist$data } from "__generated__/ArtistApp_artist.graphql" import { createFragmentContainer, graphql } from "react-relay" import { ArtistHeaderFragmentContainer } from "./Components/ArtistHeader/ArtistHeader" -import { ArtistMetaFragmentContainer } from "./Components/ArtistMeta/ArtistMeta" interface ArtistAppProps { artist: ArtistApp_artist$data @@ -20,8 +19,6 @@ const ArtistApp: React.FC> = ({ return ( <> - - @@ -54,7 +51,6 @@ const ArtistApp: React.FC> = ({ export const ArtistAppFragmentContainer = createFragmentContainer(ArtistApp, { artist: graphql` fragment ArtistApp_artist on Artist { - ...ArtistMeta_artist ...ArtistHeader_artist internalID slug diff --git a/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx b/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx index a3958d840f6..3d3ab9436fc 100644 --- a/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx +++ b/src/Apps/Artist/Components/ArtistMeta/ArtistMeta.tsx @@ -1,33 +1,42 @@ -import { MetaTags } from "Components/MetaTags" import { ArtistStructuredData } from "Components/Seo/ArtistStructuredData" +import { MetaTags } from "Components/MetaTags" +import { PaginatedMetaTags } from "Components/PaginatedMetaTags" import { getENV } from "Utils/getENV" import type { ArtistMeta_artist$data } from "__generated__/ArtistMeta_artist.graphql" import { Meta } from "react-head" import { createFragmentContainer, graphql } from "react-relay" -import { useCanonicalHref } from "./useCanonicalHref" interface Props { artist: ArtistMeta_artist$data + title?: string | null + description?: string | null + isPaginated?: boolean } export const ArtistMeta: React.FC> = ({ artist, + title, + description, + isPaginated = false, }) => { const alternateNames = artist?.alternateNames || [] - const pathname = useCanonicalHref({ - isInSeoExperiment: !!artist.isInSeoExperiment, - href: artist.href ?? "/", - }) + const finalTitle = title || artist.meta?.title + const finalDescription = description || artist.meta?.description + const imageURL = artist.coverArtwork?.image?.large return ( <> - + {isPaginated ? ( + + ) : ( + + )} { } describe("AdminMeta", () => { - describe("canonical link", () => { - it("renders", () => { - renderWithRelay({ - Artist: () => ({ - href: "/artist/example-artist", - }), - }) - - const linkTag = document.querySelector("link[rel='canonical']") - expect(linkTag?.getAttribute("href")).toEqual("/artist/example-artist") - }) - }) - - describe("without an artist description", () => { - it("renders the default description", () => { + describe("OpenGraph tags", () => { + it("renders artist OpenGraph tags", () => { renderWithRelay({ Artist: () => ({ + slug: "example-artist", href: "/artist/example-artist", meta: { description: null, title: "Example Artist" }, }), }) - const defaultDescription = - "Artsy is the world’s largest online art marketplace. Browse over 1 million artworks by iconic and emerging artists from 4000+ galleries and top auction houses." - - expect( - getMetaBy({ name: "description" })?.getAttribute("content"), - ).toEqual(defaultDescription) - - expect( - getMetaBy({ property: "og:description" })?.getAttribute("content"), - ).toEqual(defaultDescription) - - expect( - getMetaBy({ property: "twitter:description" })?.getAttribute("content"), - ).toEqual(defaultDescription) - }) - }) - - describe("with an artist that has a description", () => { - it("renders meta tags with that description", () => { - const artist = { - href: "/artist/example-artist", - meta: { - description: "Very important painter!", - title: "Example Artist", - }, - } - renderWithRelay({ Artist: () => artist }) - - expect( - getMetaBy({ - name: "description", - content: artist.meta.description, - }), - ).not.toBeNull() - - expect( - getMetaBy({ - property: "og:description", - content: artist.meta.description, - }), - ).not.toBeNull() - - expect( - getMetaBy({ - property: "twitter:description", - content: artist.meta.description, - }), - ).not.toBeNull() + expect(getMetaBy({ property: "og:url" })).not.toBeNull() + expect(getMetaBy({ property: "og:type" })).not.toBeNull() }) }) diff --git a/src/Apps/Artist/Routes/AuctionResults/ArtistAuctionResults.tsx b/src/Apps/Artist/Routes/AuctionResults/ArtistAuctionResults.tsx index b8be56e7cd5..09bc22477b3 100644 --- a/src/Apps/Artist/Routes/AuctionResults/ArtistAuctionResults.tsx +++ b/src/Apps/Artist/Routes/AuctionResults/ArtistAuctionResults.tsx @@ -10,6 +10,7 @@ import { Text, } from "@artsy/palette" import { initialAuctionResultsFilterState } from "Apps/Artist/Routes/AuctionResults/initialAuctionResultsFilterState" +import { ArtistMetaFragmentContainer } from "Apps/Artist/Components/ArtistMeta/ArtistMeta" import { allowedAuctionResultFilters } from "Apps/Artist/Utils/allowedAuctionResultFilters" import { paramsToCamelCase } from "Components/ArtworkFilter/Utils/paramsCasing" import { updateUrl } from "Components/ArtworkFilter/Utils/urlBuilder" @@ -30,7 +31,6 @@ import type { ArtistAuctionResults_artist$data } from "__generated__/ArtistAucti import { isEqual } from "lodash" import type * as React from "react" import { useContext, useState } from "react" -import { Meta, Title } from "react-head" import { type RelayRefetchProp, createRefetchContainer, @@ -222,14 +222,17 @@ const AuctionResultsContainer: React.FC< ) } - const { title, description } = artist.meta + const { title, description } = artist.auctionResultsMeta if (!artist.statuses?.auctionLots) { return ( <> - {title} - - + @@ -240,9 +243,12 @@ const AuctionResultsContainer: React.FC< return ( <> - {title} - - + @@ -428,10 +434,11 @@ export const ArtistAuctionResultsRefetchContainer = createRefetchContainer( allowEmptyCreatedDates: { type: "Boolean" } state: { type: "AuctionResultsState", defaultValue: ALL } ) { + ...ArtistMeta_artist slug internalID name - meta(page: AUCTION_RESULTS) { + auctionResultsMeta: meta(page: AUCTION_RESULTS) { description title } diff --git a/src/Apps/Artist/Routes/AuctionResults/__tests__/ArtistAuctionResults.jest.tsx b/src/Apps/Artist/Routes/AuctionResults/__tests__/ArtistAuctionResults.jest.tsx index 67dcf12756b..c1ea71f529c 100644 --- a/src/Apps/Artist/Routes/AuctionResults/__tests__/ArtistAuctionResults.jest.tsx +++ b/src/Apps/Artist/Routes/AuctionResults/__tests__/ArtistAuctionResults.jest.tsx @@ -488,11 +488,44 @@ const AuctionResultsFixture: ArtistAuctionResults_Test_Query$rawResponse = { id: "QXJ0aXN0OnBhYmxvLXBpY2Fzc28=", slug: "pablo-picasso", name: "Pablo Picasso", + nationality: "Spanish", + birthday: "October 25, 1881", + deathday: "April 8, 1973", + alternateNames: [ + "Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso", + ], + href: "/artist/pablo-picasso", + isInSeoExperiment: false, + gender: "male", meta: { description: - "Find out about Pablo Picasso’s auction history, past sales, and current market value. Browse Artsy’s Price Database for recent auction results from the artist.`", + "Find out about Pablo Picasso's auction history, past sales, and current market value. Browse Artsy's Price Database for recent auction results from the artist.`", title: "Pablo Picasso - Auction Results and Sales Data | Artsy", }, + auctionResultsMeta: { + description: + "Find out about Pablo Picasso's auction history, past sales, and current market value. Browse Artsy's Price Database for recent auction results from the artist.`", + title: "Pablo Picasso - Auction Results and Sales Data | Artsy", + }, + coverArtwork: { + id: "QXJ0d29yazo1ZTJkNWU0NGU1YzNkNjMxYWI2OTYzMDk=", // pragma: allowlist secret + image: { + url: "https://d32dm0rphc51dk.cloudfront.net/Vxf2MR1HwxqDwNovE9O4rg/large.jpg", + large: + "https://d32dm0rphc51dk.cloudfront.net/Vxf2MR1HwxqDwNovE9O4rg/large.jpg", + }, + }, + partnersConnection: { + edges: [ + { + id: "UGFydG5lckFydGlzdEVkZ2U6NWIyZGE5YWE4YjNiODE1N2MzZjdkZDZh", // pragma: allowlist secret + node: { + id: "UGFydG5lcjo1YjJkYTlhYThiM2I4MTU3YzNmN2RkNmE=", // pragma: allowlist secret + href: "/gagosian-gallery", + }, + }, + ], + }, statuses: { auctionLots: true, }, diff --git a/src/Apps/Artist/Routes/Overview/ArtistOverviewRoute.tsx b/src/Apps/Artist/Routes/Overview/ArtistOverviewRoute.tsx index f9e62a7fc00..3b99d7c613e 100644 --- a/src/Apps/Artist/Routes/Overview/ArtistOverviewRoute.tsx +++ b/src/Apps/Artist/Routes/Overview/ArtistOverviewRoute.tsx @@ -1,11 +1,11 @@ import { Join, Spacer } from "@artsy/palette" import { ArtistEditorialNewsGridQueryRenderer } from "Apps/Artist/Routes/Overview/Components/ArtistEditorialNewsGrid" +import { ArtistMetaFragmentContainer } from "Apps/Artist/Components/ArtistMeta/ArtistMeta" import { ArtistOverviewEmpty } from "Apps/Artist/Routes/Overview/Components/ArtistOverviewEmpty" import { ArtistRelatedGeneCategoriesQueryRenderer } from "Apps/Artist/Routes/Overview/Components/ArtistRelatedGeneCategories" import { ArtistSeriesRailQueryRenderer } from "Components/ArtistSeriesRail/ArtistSeriesRail" import type { ArtistOverviewRoute_artist$data } from "__generated__/ArtistOverviewRoute_artist.graphql" import type * as React from "react" -import { Meta, Title } from "react-head" import { createFragmentContainer, graphql } from "react-relay" import { ArtistCareerHighlightsQueryRenderer } from "./Components/ArtistCareerHighlights" import { ArtistCurrentShowsRailQueryRenderer } from "./Components/ArtistCurrentShowsRail" @@ -18,8 +18,6 @@ interface ArtistOverviewRouteProps { const ArtistOverviewRoute: React.FC< React.PropsWithChildren > = ({ artist }) => { - const { title, description } = artist.meta - const hasCareerHighlights = artist.insights.length > 0 const hasArtistSeries = artist.artistSeriesConnection?.totalCount ?? 0 > 0 const hasEditorial = artist.counts?.articles ?? 0 > 0 @@ -37,9 +35,7 @@ const ArtistOverviewRoute: React.FC< ) { return ( <> - {title} - - + @@ -50,9 +46,7 @@ const ArtistOverviewRoute: React.FC< return ( <> - {title} - - + @@ -93,6 +87,7 @@ export const ArtistOverviewRouteFragmentContainer = createFragmentContainer( { artist: graphql` fragment ArtistOverviewRoute_artist on Artist { + ...ArtistMeta_artist internalID name meta(page: ABOUT) { diff --git a/src/Apps/Artist/Routes/Overview/__tests__/ArtistOverviewRoute.jest.tsx b/src/Apps/Artist/Routes/Overview/__tests__/ArtistOverviewRoute.jest.tsx index f8f46be1e9a..d918bcba37c 100644 --- a/src/Apps/Artist/Routes/Overview/__tests__/ArtistOverviewRoute.jest.tsx +++ b/src/Apps/Artist/Routes/Overview/__tests__/ArtistOverviewRoute.jest.tsx @@ -52,6 +52,16 @@ describe("ArtistOverviewRoute", () => { Artist: () => ({ name: "artistName", slug: "artistSlug", + nationality: "American", + birthday: "1990-01-01", + deathday: null, + alternateNames: ["Alt Name"], + href: "/artist/artistslug", + isInSeoExperiment: false, + meta: { title: "Artist Name", description: "Artist description" }, + coverArtwork: { + image: { large: "https://example.com/image.jpg" }, + }, filterArtworksConnection: { edges: [ { @@ -72,6 +82,8 @@ describe("ArtistOverviewRoute", () => { artistSeriesConnection: { totalCount: 1 }, articlesConnection: { totalCount: 1 }, showsConnection: { totalCount: 1 }, + counts: { artworks: "100", relatedArtists: 5, articles: 3 }, + related: { genes: { edges: [{ node: { __typename: "Gene" } }] } }, }), }) @@ -88,12 +100,19 @@ describe("ArtistOverviewRoute", () => { Artist: () => ({ name: "artistName", slug: "artistSlug", + nationality: null, + birthday: null, + deathday: null, + alternateNames: [], + href: "/artist/artistslug", + isInSeoExperiment: false, meta: { title: "title", description: "description" }, + coverArtwork: null, filterArtworksConnection: { edges: [] }, insights: [], artistSeriesConnection: { totalCount: 0 }, showsConnection: { totalCount: 0 }, - counts: { articles: 0, relatedArtists: 0 }, + counts: { articles: 0, relatedArtists: 0, artworks: null }, related: { genes: { edges: [] } }, }), }) diff --git a/src/Apps/Artist/Routes/WorksForSale/ArtistWorksForSaleRoute.tsx b/src/Apps/Artist/Routes/WorksForSale/ArtistWorksForSaleRoute.tsx index f64f016fd02..3f2eba26261 100644 --- a/src/Apps/Artist/Routes/WorksForSale/ArtistWorksForSaleRoute.tsx +++ b/src/Apps/Artist/Routes/WorksForSale/ArtistWorksForSaleRoute.tsx @@ -1,4 +1,5 @@ import { ArtistMediumsTitle } from "Apps/Artist/Routes/WorksForSale/Components/ArtistMediumsTitle" +import { ArtistMetaFragmentContainer } from "Apps/Artist/Components/ArtistMeta/ArtistMeta" import { ArtistWorksForSaleEmptyFragmentContainer } from "Apps/Artist/Routes/WorksForSale/Components/ArtistWorksForSaleEmpty" import { getWorksForSaleRouteVariables } from "Apps/Artist/Routes/WorksForSale/Utils/getWorksForSaleRouteVariables" import type { SharedArtworkFilterContextProps } from "Components/ArtworkFilter/ArtworkFilterContext" @@ -8,7 +9,6 @@ import { SystemQueryRenderer } from "System/Relay/SystemQueryRenderer" import type { ArtistWorksForSaleRouteArtworksQuery } from "__generated__/ArtistWorksForSaleRouteArtworksQuery.graphql" import type { ArtistWorksForSaleRoute_artist$data } from "__generated__/ArtistWorksForSaleRoute_artist.graphql" import type React from "react" -import { Meta } from "react-head" import { createFragmentContainer, graphql } from "react-relay" import { ArtistArtworkFilterRefetchContainer } from "./Components/ArtistArtworkFilter" @@ -19,16 +19,21 @@ interface ArtistWorksForSaleRouteProps { const ArtistWorksForSaleRoute: React.FC< React.PropsWithChildren > = ({ artist }) => { - const { title, description } = artist.meta + const { title, description } = artist.artworksMeta const { match } = useRouter() return ( <> + - query={graphql` query ArtistWorksForSaleRouteArtworksQuery( @@ -104,10 +109,11 @@ export const ArtistWorksForSaleRouteFragmentContainer = createFragmentContainer( { artist: graphql` fragment ArtistWorksForSaleRoute_artist on Artist { + ...ArtistMeta_artist ...ArtistWorksForSaleEmpty_artist slug name - meta(page: ARTWORKS) { + artworksMeta: meta(page: ARTWORKS) { description title } diff --git a/src/Apps/Artist/__tests__/ArtistTabsMetaIntegration.jest.tsx b/src/Apps/Artist/__tests__/ArtistTabsMetaIntegration.jest.tsx new file mode 100644 index 00000000000..d4c584bd214 --- /dev/null +++ b/src/Apps/Artist/__tests__/ArtistTabsMetaIntegration.jest.tsx @@ -0,0 +1,110 @@ +import { ArtistOverviewRouteFragmentContainer } from "Apps/Artist/Routes/Overview/ArtistOverviewRoute" +import { setupTestWrapperTL } from "DevTools/setupTestWrapperTL" +import { HeadProvider } from "react-head" +import { graphql } from "react-relay" + +jest.unmock("react-relay") + +const mockLocation = { pathname: "/artist/andy-warhol/about", query: {} } + +jest.mock("System/Hooks/useRouter", () => ({ + useRouter: () => ({ + match: { location: mockLocation, params: { artistID: "andy-warhol" } }, + }), +})) + +const { renderWithRelay } = setupTestWrapperTL({ + Component: (props: any) => { + return ( + + + + ) + }, + query: graphql` + query ArtistTabsMetaIntegration_AboutTab_Test_Query @relay_test_operation { + artist(id: "andy-warhol") { + ...ArtistOverviewRoute_artist + } + } + `, +}) + +const getMetaBy = (selectors: Record): Element | null => { + const attributeSelectors = Object.entries(selectors).map( + ([key, value]) => `[${key}='${value}']`, + ) + const querySelector = `meta${attributeSelectors.join("")}` + const matchingTag = document.querySelector(querySelector) + return matchingTag +} + +describe("Artist Tabs Meta Integration Tests", () => { + beforeEach(() => { + // Clear any existing meta tags + const existingMeta = document.querySelectorAll("meta, title, link") + existingMeta.forEach(tag => tag.remove()) + }) + + describe("About tab", () => { + it("renders meta tags with content", () => { + const artist = { + slug: "andy-warhol", + name: "Andy Warhol", + nationality: "American", + birthday: "August 6, 1928", + deathday: "February 22, 1987", + alternateNames: ["Andrew Warhola"], + href: "/artist/andy-warhol", + isInSeoExperiment: false, + internalID: "4d8b92b34eb68a1b2c0003f4", + meta: { + title: "Andy Warhol - Artworks, Bio & Shows on Artsy", + description: + "Find the latest shows, biography, and artworks for sale by Andy Warhol", + }, + coverArtwork: { + image: { + large: "https://example.com/image.jpg", + }, + }, + insights: [{ __typename: "ArtistInsight" }], + artistSeriesConnection: { totalCount: 1 }, + showsConnection: { totalCount: 1 }, + counts: { artworks: "100", relatedArtists: 5, articles: 3 }, + related: { genes: { edges: [{ node: { __typename: "Gene" } }] } }, + } + + renderWithRelay({ Artist: () => artist }) + + // Primary meta tags (from MetaTags component) + expect(document.querySelector("title")?.textContent).toEqual( + artist.meta.title, + ) + expect( + getMetaBy({ name: "description", content: artist.meta.description }), + ).not.toBeNull() + + // Artist-specific OpenGraph tags (from ArtistMeta component) + expect( + getMetaBy({ property: "og:nationality", content: artist.nationality }), + ).not.toBeNull() + expect( + getMetaBy({ property: "og:birthyear", content: artist.birthday }), + ).not.toBeNull() + expect( + getMetaBy({ property: "og:deathyear", content: artist.deathday }), + ).not.toBeNull() + + // Canonical link (from MetaTags component) + const canonicalLink = document.querySelector("link[rel='canonical']") + expect(canonicalLink?.getAttribute("href")).toBeTruthy() + + // Structured data (from ArtistMeta component) + const structuredDataTag = document.querySelector( + "script[type='application/ld+json']", + ) + expect(structuredDataTag).not.toBeNull() + }) + }) +}) diff --git a/src/Components/PaginatedMetaTags.tsx b/src/Components/PaginatedMetaTags.tsx index e406f9fd824..b58597bcb57 100644 --- a/src/Components/PaginatedMetaTags.tsx +++ b/src/Components/PaginatedMetaTags.tsx @@ -1,10 +1,6 @@ import { MetaTags, type MetaTagsProps } from "Components/MetaTags" import { useRouter } from "System/Hooks/useRouter" import { getPageNumber } from "Utils/url" -import { - buildQueryStringWithFilterParams, - ALL_FILTER_PARAMS, -} from "Utils/filterParams" import type * as React from "react" export const PaginatedMetaTags: React.FC< @@ -14,29 +10,11 @@ export const PaginatedMetaTags: React.FC< const page = getPageNumber(match?.location) const basePath = match?.location.pathname || "/" - const searchParams = new URLSearchParams(match?.location.search || "") const isPaginated = page > 1 const title = isPaginated && _title ? `${_title} - Page ${page}` : _title - const pathname = buildMetaPathname(basePath, searchParams, page) + const pathname = page > 1 ? `${basePath}?page=${page}` : basePath return } - -const buildMetaPathname = ( - basePath: string, - searchParams: URLSearchParams, - page: number, -): string => { - const filterQueryString = buildQueryStringWithFilterParams( - searchParams, - ALL_FILTER_PARAMS, - ) - - const params = [filterQueryString, page > 1 ? `page=${page}` : null].filter( - Boolean, - ) - - return params.length > 0 ? `${basePath}?${params.join("&")}` : basePath -} diff --git a/src/Utils/__tests__/filterParams.jest.ts b/src/Utils/__tests__/filterParams.jest.ts deleted file mode 100644 index d4c9212a006..00000000000 --- a/src/Utils/__tests__/filterParams.jest.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { - getFilterParams, - buildQueryStringWithFilterParams, - AUCTION_RESULTS_FILTER_PARAMS, -} from "../filterParams" - -describe("getFilterParams", () => { - it("filters and sorts parameters correctly", () => { - const searchParams = new URLSearchParams( - "?sort=DATE_DESC&page=2&categories=painting&medium=photography&unknown=value", - ) - - const result = getFilterParams(searchParams, AUCTION_RESULTS_FILTER_PARAMS) - - expect(result).toEqual({ - categories: "painting", - sort: "DATE_DESC", - }) - }) - - it("excludes empty values", () => { - const searchParams = new URLSearchParams( - "?sort=&keyword=picasso&categories=&page=1&unknown=", - ) - - const result = getFilterParams(searchParams, AUCTION_RESULTS_FILTER_PARAMS) - - expect(result).toEqual({ - keyword: "picasso", - }) - }) -}) - -describe("buildQueryStringWithFilterParams", () => { - it("builds sorted query string", () => { - const searchParams = new URLSearchParams( - "?sort=DATE_DESC&page=2&categories=painting&keyword=picasso&unknown=ignore", - ) - - const result = buildQueryStringWithFilterParams( - searchParams, - AUCTION_RESULTS_FILTER_PARAMS, - ) - - expect(result).toBe("categories=painting&keyword=picasso&sort=DATE_DESC") - }) - - it("returns empty string when no valid params", () => { - const searchParams = new URLSearchParams( - "?page=2&unknown=value&medium=sculpture", - ) - - const result = buildQueryStringWithFilterParams( - searchParams, - AUCTION_RESULTS_FILTER_PARAMS, - ) - - expect(result).toBe("") - }) -}) diff --git a/src/Utils/filterParams.ts b/src/Utils/filterParams.ts deleted file mode 100644 index b351bd20d11..00000000000 --- a/src/Utils/filterParams.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Filter parameters that should be included in canonical URLs and meta tags. - * These represent meaningful filters that create distinct, indexable content. - */ - -export const AUCTION_RESULTS_FILTER_PARAMS = [ - "sort", - "categories", - "organizations", - "sizes", - "keyword", - "hideUpcoming", - "createdAfterYear", - "createdBeforeYear", - "allowEmptyCreatedDates", - "priceRange", - "currency", - "includeEstimateRange", - "includeUnknownPrices", - "saleStartYear", - "saleEndYear", - "allowUnspecifiedSaleDates", -] as const - -export const ARTWORK_FILTER_PARAMS = [ - "sort", - "medium", - "priceRange", - "sizes", - "colors", - "keyword", - "term", - "attributionClass", - "artistIDs", - "artistSeriesIDs", - "additionalGeneIDs", - "majorPeriods", - "partnerIDs", - "locationCities", - "artistNationalities", - "materialsTerms", - "acquireable", - "atAuction", - "forSale", - "framed", - "height", - "width", - "inquireableOnly", - "offerable", - "signed", -] as const - -export const ALL_FILTER_PARAMS = [ - ...AUCTION_RESULTS_FILTER_PARAMS, - ...ARTWORK_FILTER_PARAMS, -] as const - -/** - * Filters and normalizes URL parameters for canonical URLs. - * Removes pagination params, sorts alphabetically, and excludes default values. - */ -export function getFilterParams( - searchParams: URLSearchParams, - allowedParams: readonly string[] = ALL_FILTER_PARAMS, -): Record { - const filteredParams: Record = {} - - // Filter to only allowed params - for (const [key, value] of searchParams.entries()) { - if (allowedParams.includes(key as any) && value && value.trim()) { - filteredParams[key] = value - } - } - - // Sort keys alphabetically for consistent URLs - const sortedParams: Record = {} - Object.keys(filteredParams) - .sort() - .forEach(key => { - sortedParams[key] = filteredParams[key] - }) - - return sortedParams -} - -/** - * Builds a query string from filter parameters - */ -export function buildQueryStringWithFilterParams( - searchParams: URLSearchParams, - allowedParams: readonly string[] = ALL_FILTER_PARAMS, -): string { - const filterParams = getFilterParams(searchParams, allowedParams) - const queryString = new URLSearchParams(filterParams).toString() - return queryString -} diff --git a/src/__generated__/ArtistAppTestQuery.graphql.ts b/src/__generated__/ArtistAppTestQuery.graphql.ts index dde21b5d60f..49af4d05db6 100644 --- a/src/__generated__/ArtistAppTestQuery.graphql.ts +++ b/src/__generated__/ArtistAppTestQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<1bd1e5b056fefd9b0059c82a123f8b44>> + * @generated SignedSource<<86d90201bd55e58738047bcc3a20cc49>> * @lightSyntaxTransform * @nogrep */ @@ -33,52 +33,31 @@ v1 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "name", + "name": "internalID", "storageKey": null }, v2 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "href", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", + "name": "name", "storageKey": null }, -v4 = [ +v3 = [ { "kind": "Literal", - "name": "version", - "value": "large" + "name": "format", + "value": "HTML" } ], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = { +v4 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "href", "storageKey": null }, -v7 = [ - { - "kind": "Literal", - "name": "format", - "value": "HTML" - } -], -v8 = [ +v5 = [ { "alias": null, "args": null, @@ -87,37 +66,44 @@ v8 = [ "storageKey": null } ], -v9 = { +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v7 = { "enumValues": null, "nullable": true, "plural": false, "type": "String" }, -v10 = { +v8 = { "enumValues": null, "nullable": false, "plural": false, "type": "ID" }, -v11 = { +v9 = { "enumValues": null, "nullable": true, "plural": false, "type": "Image" }, -v12 = { +v10 = { "enumValues": null, "nullable": true, "plural": false, "type": "Int" }, -v13 = { +v11 = { "enumValues": null, "nullable": false, "plural": false, "type": "String" }, -v14 = { +v12 = { "enumValues": null, "nullable": true, "plural": false, @@ -164,201 +150,15 @@ return { "name": "artist", "plural": false, "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "slug", - "storageKey": null - }, (v1/*: any*/), { "alias": null, "args": null, "kind": "ScalarField", - "name": "birthday", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deathday", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "gender", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "nationality", + "name": "slug", "storageKey": null }, (v2/*: any*/), - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "page", - "value": "ABOUT" - } - ], - "concreteType": "ArtistMeta", - "kind": "LinkedField", - "name": "meta", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - } - ], - "storageKey": "meta(page:\"ABOUT\")" - }, - { - "alias": null, - "args": null, - "concreteType": "Artwork", - "kind": "LinkedField", - "name": "coverArtwork", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Image", - "kind": "LinkedField", - "name": "image", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"large\")" - }, - { - "alias": "large", - "args": (v4/*: any*/), - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"large\")" - }, - { - "alias": "src", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": [ - "larger", - "larger" - ] - } - ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:[\"larger\",\"larger\"])" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "width", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "height", - "storageKey": null - } - ], - "storageKey": null - }, - (v5/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "imageTitle", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 10 - } - ], - "concreteType": "PartnerArtistConnection", - "kind": "LinkedField", - "name": "partnersConnection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PartnerArtistEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Partner", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/) - ], - "storageKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": "partnersConnection(first:10)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isInSeoExperiment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "alternateNames", - "storageKey": null - }, - (v6/*: any*/), { "alias": null, "args": null, @@ -386,7 +186,7 @@ return { }, { "alias": null, - "args": (v7/*: any*/), + "args": (v3/*: any*/), "concreteType": "ArtistBlurb", "kind": "LinkedField", "name": "biographyBlurb", @@ -440,7 +240,7 @@ return { }, { "alias": null, - "args": (v7/*: any*/), + "args": (v3/*: any*/), "kind": "ScalarField", "name": "description", "storageKey": "description(format:\"HTML\")" @@ -464,9 +264,9 @@ return { "name": "partner", "plural": false, "selections": [ - (v6/*: any*/), (v1/*: any*/), (v2/*: any*/), + (v4/*: any*/), { "alias": null, "args": null, @@ -501,7 +301,7 @@ return { "kind": "LinkedField", "name": "cropped", "plural": false, - "selections": (v8/*: any*/), + "selections": (v5/*: any*/), "storageKey": "cropped(height:30,width:30)" }, { @@ -522,32 +322,100 @@ return { "kind": "LinkedField", "name": "cropped", "plural": false, - "selections": (v8/*: any*/), + "selections": (v5/*: any*/), "storageKey": "cropped(height:60,width:60)" } ], "storageKey": null }, - (v5/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v5/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v5/*: any*/) + (v6/*: any*/) ], "storageKey": null }, - (v5/*: any*/) + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "imageTitle", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": "src", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": [ + "larger", + "larger" + ] + } + ], + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:[\"larger\",\"larger\"])" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "width", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "height", + "storageKey": null + } + ], + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) ], "storageKey": "artist(id:\"example\")" } ] }, "params": { - "cacheID": "8dd2caa1b51eede64a6639894c0398a6", + "cacheID": "8519a443dda1607f934e92273155c550", "id": null, "metadata": { "relayTestingSelectionTypeInfo": { @@ -557,21 +425,14 @@ return { "plural": false, "type": "Artist" }, - "artist.alternateNames": { - "enumValues": null, - "nullable": true, - "plural": true, - "type": "String" - }, "artist.biographyBlurb": { "enumValues": null, "nullable": true, "plural": false, "type": "ArtistBlurb" }, - "artist.biographyBlurb.credit": (v9/*: any*/), - "artist.biographyBlurb.text": (v9/*: any*/), - "artist.birthday": (v9/*: any*/), + "artist.biographyBlurb.credit": (v7/*: any*/), + "artist.biographyBlurb.text": (v7/*: any*/), "artist.counts": { "enumValues": null, "nullable": true, @@ -590,28 +451,23 @@ return { "plural": false, "type": "Artwork" }, - "artist.coverArtwork.href": (v9/*: any*/), - "artist.coverArtwork.id": (v10/*: any*/), - "artist.coverArtwork.image": (v11/*: any*/), - "artist.coverArtwork.image.height": (v12/*: any*/), - "artist.coverArtwork.image.large": (v9/*: any*/), - "artist.coverArtwork.image.src": (v9/*: any*/), - "artist.coverArtwork.image.url": (v9/*: any*/), - "artist.coverArtwork.image.width": (v12/*: any*/), - "artist.coverArtwork.imageTitle": (v9/*: any*/), - "artist.coverArtwork.title": (v9/*: any*/), - "artist.deathday": (v9/*: any*/), - "artist.formattedNationalityAndBirthday": (v9/*: any*/), - "artist.gender": (v9/*: any*/), - "artist.href": (v9/*: any*/), - "artist.id": (v10/*: any*/), + "artist.coverArtwork.href": (v7/*: any*/), + "artist.coverArtwork.id": (v8/*: any*/), + "artist.coverArtwork.image": (v9/*: any*/), + "artist.coverArtwork.image.height": (v10/*: any*/), + "artist.coverArtwork.image.src": (v7/*: any*/), + "artist.coverArtwork.image.width": (v10/*: any*/), + "artist.coverArtwork.imageTitle": (v7/*: any*/), + "artist.coverArtwork.title": (v7/*: any*/), + "artist.formattedNationalityAndBirthday": (v7/*: any*/), + "artist.id": (v8/*: any*/), "artist.insights": { "enumValues": null, "nullable": false, "plural": true, "type": "ArtistInsight" }, - "artist.insights.description": (v9/*: any*/), + "artist.insights.description": (v7/*: any*/), "artist.insights.entities": { "enumValues": null, "nullable": false, @@ -642,80 +498,44 @@ return { "plural": false, "type": "ArtistInsightKind" }, - "artist.insights.label": (v13/*: any*/), - "artist.internalID": (v10/*: any*/), - "artist.isInSeoExperiment": { - "enumValues": null, - "nullable": true, - "plural": false, - "type": "Boolean" - }, - "artist.meta": { - "enumValues": null, - "nullable": false, - "plural": false, - "type": "ArtistMeta" - }, - "artist.meta.description": (v13/*: any*/), - "artist.meta.title": (v13/*: any*/), - "artist.name": (v9/*: any*/), - "artist.nationality": (v9/*: any*/), - "artist.partnersConnection": { - "enumValues": null, - "nullable": true, - "plural": false, - "type": "PartnerArtistConnection" - }, - "artist.partnersConnection.edges": { - "enumValues": null, - "nullable": true, - "plural": true, - "type": "PartnerArtistEdge" - }, - "artist.partnersConnection.edges.id": (v10/*: any*/), - "artist.partnersConnection.edges.node": { - "enumValues": null, - "nullable": true, - "plural": false, - "type": "Partner" - }, - "artist.partnersConnection.edges.node.href": (v9/*: any*/), - "artist.partnersConnection.edges.node.id": (v10/*: any*/), - "artist.slug": (v10/*: any*/), + "artist.insights.label": (v11/*: any*/), + "artist.internalID": (v8/*: any*/), + "artist.name": (v7/*: any*/), + "artist.slug": (v8/*: any*/), "artist.verifiedRepresentatives": { "enumValues": null, "nullable": false, "plural": true, "type": "VerifiedRepresentative" }, - "artist.verifiedRepresentatives.id": (v10/*: any*/), + "artist.verifiedRepresentatives.id": (v8/*: any*/), "artist.verifiedRepresentatives.partner": { "enumValues": null, "nullable": false, "plural": false, "type": "Partner" }, - "artist.verifiedRepresentatives.partner.href": (v9/*: any*/), - "artist.verifiedRepresentatives.partner.id": (v10/*: any*/), - "artist.verifiedRepresentatives.partner.internalID": (v10/*: any*/), - "artist.verifiedRepresentatives.partner.name": (v9/*: any*/), + "artist.verifiedRepresentatives.partner.href": (v7/*: any*/), + "artist.verifiedRepresentatives.partner.id": (v8/*: any*/), + "artist.verifiedRepresentatives.partner.internalID": (v8/*: any*/), + "artist.verifiedRepresentatives.partner.name": (v7/*: any*/), "artist.verifiedRepresentatives.partner.profile": { "enumValues": null, "nullable": true, "plural": false, "type": "Profile" }, - "artist.verifiedRepresentatives.partner.profile.icon": (v11/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src1x": (v14/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src1x.src": (v13/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src2x": (v14/*: any*/), - "artist.verifiedRepresentatives.partner.profile.icon.src2x.src": (v13/*: any*/), - "artist.verifiedRepresentatives.partner.profile.id": (v10/*: any*/) + "artist.verifiedRepresentatives.partner.profile.icon": (v9/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src1x": (v12/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src1x.src": (v11/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src2x": (v12/*: any*/), + "artist.verifiedRepresentatives.partner.profile.icon.src2x.src": (v11/*: any*/), + "artist.verifiedRepresentatives.partner.profile.id": (v8/*: any*/) } }, "name": "ArtistAppTestQuery", "operationKind": "query", - "text": "query ArtistAppTestQuery {\n artist(id: \"example\") {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n imageTitle\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n" + "text": "query ArtistAppTestQuery {\n artist(id: \"example\") {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n imageTitle\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistApp_artist.graphql.ts b/src/__generated__/ArtistApp_artist.graphql.ts index 392adef5516..b7b20a82ea5 100644 --- a/src/__generated__/ArtistApp_artist.graphql.ts +++ b/src/__generated__/ArtistApp_artist.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<0a1ca32f06bb3503e2b0aa9f17f5ad58>> * @lightSyntaxTransform * @nogrep */ @@ -14,7 +14,7 @@ export type ArtistApp_artist$data = { readonly internalID: string; readonly name: string | null | undefined; readonly slug: string; - readonly " $fragmentSpreads": FragmentRefs<"ArtistHeader_artist" | "ArtistMeta_artist">; + readonly " $fragmentSpreads": FragmentRefs<"ArtistHeader_artist">; readonly " $fragmentType": "ArtistApp_artist"; }; export type ArtistApp_artist$key = { @@ -28,11 +28,6 @@ const node: ReaderFragment = { "metadata": null, "name": "ArtistApp_artist", "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "ArtistMeta_artist" - }, { "args": null, "kind": "FragmentSpread", @@ -64,6 +59,6 @@ const node: ReaderFragment = { "abstractKey": null }; -(node as any).hash = "d599f72de65cace018cb122c7029e1bf"; +(node as any).hash = "75b1bf8a5e99b11848ef7a6a8a2ac954"; export default node; diff --git a/src/__generated__/ArtistAuctionResultsQuery.graphql.ts b/src/__generated__/ArtistAuctionResultsQuery.graphql.ts index b693e6a6935..f7645d3f6af 100644 --- a/src/__generated__/ArtistAuctionResultsQuery.graphql.ts +++ b/src/__generated__/ArtistAuctionResultsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<97c2572150def75b84fa04ed9eb6a711>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -264,14 +264,14 @@ v42 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "name", "storageKey": null }, v43 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "name", + "name": "href", "storageKey": null }, v44 = { @@ -282,32 +282,60 @@ v44 = { "storageKey": null }, v45 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null +}, +v46 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v47 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v48 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null +}, +v49 = { "kind": "Variable", "name": "earliestCreatedYear", "variableName": "createdAfterYear" }, -v46 = { +v50 = { "kind": "Variable", "name": "latestCreatedYear", "variableName": "createdBeforeYear" }, -v47 = { +v51 = { "alias": null, "args": null, "kind": "ScalarField", "name": "cursor", "storageKey": null }, -v48 = { +v52 = { "alias": null, "args": null, "kind": "ScalarField", "name": "page", "storageKey": null }, -v49 = [ - (v47/*: any*/), - (v48/*: any*/), +v53 = [ + (v51/*: any*/), + (v52/*: any*/), { "alias": null, "args": null, @@ -316,29 +344,22 @@ v49 = [ "storageKey": null } ], -v50 = { +v54 = { "alias": null, "args": null, "kind": "ScalarField", "name": "totalCount", "storageKey": null }, -v51 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v52 = { +v55 = { "alias": null, "args": null, "kind": "ScalarField", "name": "display", "storageKey": null }, -v53 = [ - (v50/*: any*/) +v56 = [ + (v54/*: any*/) ]; return { "fragment": { @@ -465,6 +486,34 @@ return { "storageKey": null }, (v42/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, (v43/*: any*/), { "alias": null, @@ -472,21 +521,128 @@ return { { "kind": "Literal", "name": "page", - "value": "AUCTION_RESULTS" + "value": "ABOUT" } ], "concreteType": "ArtistMeta", "kind": "LinkedField", "name": "meta", "plural": false, + "selections": [ + (v44/*: any*/), + (v45/*: any*/) + ], + "storageKey": "meta(page:\"ABOUT\")" + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "description", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v46/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v46/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], "storageKey": null }, + (v47/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v43/*: any*/), + (v47/*: any*/) + ], + "storageKey": null + }, + (v47/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + (v48/*: any*/), + { + "alias": "auctionResultsMeta", + "args": [ + { + "kind": "Literal", + "name": "page", + "value": "AUCTION_RESULTS" + } + ], + "concreteType": "ArtistMeta", + "kind": "LinkedField", + "name": "meta", + "plural": false, + "selections": [ + (v45/*: any*/), (v44/*: any*/) ], "storageKey": "meta(page:\"AUCTION_RESULTS\")" @@ -517,13 +673,13 @@ return { (v25/*: any*/), (v26/*: any*/), (v27/*: any*/), - (v45/*: any*/), + (v49/*: any*/), (v28/*: any*/), (v29/*: any*/), (v30/*: any*/), (v31/*: any*/), (v32/*: any*/), - (v46/*: any*/), + (v50/*: any*/), (v33/*: any*/), (v34/*: any*/), (v35/*: any*/), @@ -579,7 +735,7 @@ return { "kind": "LinkedField", "name": "around", "plural": true, - "selections": (v49/*: any*/), + "selections": (v53/*: any*/), "storageKey": null }, { @@ -589,7 +745,7 @@ return { "kind": "LinkedField", "name": "first", "plural": false, - "selections": (v49/*: any*/), + "selections": (v53/*: any*/), "storageKey": null }, { @@ -599,7 +755,7 @@ return { "kind": "LinkedField", "name": "last", "plural": false, - "selections": (v49/*: any*/), + "selections": (v53/*: any*/), "storageKey": null }, { @@ -610,15 +766,15 @@ return { "name": "previous", "plural": false, "selections": [ - (v47/*: any*/), - (v48/*: any*/) + (v51/*: any*/), + (v52/*: any*/) ], "storageKey": null } ], "storageKey": null }, - (v50/*: any*/), + (v54/*: any*/), { "alias": null, "args": null, @@ -635,7 +791,7 @@ return { "name": "node", "plural": false, "selections": [ - (v42/*: any*/), + (v48/*: any*/), (v44/*: any*/), { "alias": "dimension_text", @@ -659,8 +815,8 @@ return { "name": "artist", "plural": false, "selections": [ - (v43/*: any*/), - (v51/*: any*/) + (v42/*: any*/), + (v47/*: any*/) ], "storageKey": null }, @@ -793,7 +949,7 @@ return { "name": "priceRealized", "plural": false, "selections": [ - (v52/*: any*/), + (v55/*: any*/), { "alias": "display_usd", "args": null, @@ -837,7 +993,7 @@ return { "name": "estimate", "plural": false, "selections": [ - (v52/*: any*/) + (v55/*: any*/) ], "storageKey": null }, @@ -869,7 +1025,7 @@ return { "name": "isUpcoming", "storageKey": null }, - (v51/*: any*/) + (v47/*: any*/) ], "storageKey": null } @@ -886,11 +1042,11 @@ return { (v24/*: any*/), (v26/*: any*/), (v27/*: any*/), - (v45/*: any*/), + (v49/*: any*/), (v29/*: any*/), (v30/*: any*/), (v31/*: any*/), - (v46/*: any*/), + (v50/*: any*/), (v33/*: any*/), (v35/*: any*/), (v36/*: any*/), @@ -906,7 +1062,7 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v53/*: any*/), + "selections": (v56/*: any*/), "storageKey": null }, { @@ -916,11 +1072,11 @@ return { (v24/*: any*/), (v26/*: any*/), (v27/*: any*/), - (v45/*: any*/), + (v49/*: any*/), (v29/*: any*/), (v30/*: any*/), (v31/*: any*/), - (v46/*: any*/), + (v50/*: any*/), (v33/*: any*/), (v35/*: any*/), (v36/*: any*/), @@ -936,22 +1092,22 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v53/*: any*/), + "selections": (v56/*: any*/), "storageKey": null }, - (v51/*: any*/) + (v47/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "a77ace9b8ad919e4c5bd635d4502423d", + "cacheID": "c16ac29594706375016e1c953fdf3a31", "id": null, "metadata": {}, "name": "ArtistAuctionResultsQuery", "operationKind": "query", - "text": "query ArtistAuctionResultsQuery(\n $first: Int\n $last: Int\n $page: Int\n $size: Int\n $before: String\n $sort: AuctionResultSorts\n $state: AuctionResultsState\n $artistID: String!\n $organizations: [String]\n $keyword: String\n $categories: [String]\n $sizes: [ArtworkSizes]\n $priceRange: String\n $currency: String\n $saleStartYear: Int\n $saleEndYear: Int\n $allowUnspecifiedSaleDates: Boolean\n $includeEstimateRange: Boolean\n $includeUnknownPrices: Boolean\n $createdBeforeYear: Int\n $createdAfterYear: Int\n $allowEmptyCreatedDates: Boolean\n) @cacheable {\n artist(id: $artistID) {\n ...ArtistAuctionResults_artist_2gBCIO\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResults_artist_2gBCIO on Artist {\n slug\n internalID\n name\n meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: $first, page: $page, size: $size, before: $before, last: $last, sort: $sort, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates, state: $state) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" + "text": "query ArtistAuctionResultsQuery(\n $first: Int\n $last: Int\n $page: Int\n $size: Int\n $before: String\n $sort: AuctionResultSorts\n $state: AuctionResultsState\n $artistID: String!\n $organizations: [String]\n $keyword: String\n $categories: [String]\n $sizes: [ArtworkSizes]\n $priceRange: String\n $currency: String\n $saleStartYear: Int\n $saleEndYear: Int\n $allowUnspecifiedSaleDates: Boolean\n $includeEstimateRange: Boolean\n $includeUnknownPrices: Boolean\n $createdBeforeYear: Int\n $createdAfterYear: Int\n $allowEmptyCreatedDates: Boolean\n) @cacheable {\n artist(id: $artistID) {\n ...ArtistAuctionResults_artist_2gBCIO\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResults_artist_2gBCIO on Artist {\n ...ArtistMeta_artist\n slug\n internalID\n name\n auctionResultsMeta: meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: $first, page: $page, size: $size, before: $before, last: $last, sort: $sort, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates, state: $state) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING, organizations: $organizations, keyword: $keyword, categories: $categories, sizes: $sizes, priceRange: $priceRange, currency: $currency, saleStartYear: $saleStartYear, saleEndYear: $saleEndYear, allowUnspecifiedSaleDates: $allowUnspecifiedSaleDates, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistAuctionResults_Test_Query.graphql.ts b/src/__generated__/ArtistAuctionResults_Test_Query.graphql.ts index fe3f2948547..733642dc3fa 100644 --- a/src/__generated__/ArtistAuctionResults_Test_Query.graphql.ts +++ b/src/__generated__/ArtistAuctionResults_Test_Query.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<02487d88ef4b96422c19dfd136a0be19>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -21,6 +21,7 @@ export type ArtistAuctionResults_Test_Query$data = { }; export type ArtistAuctionResults_Test_Query$rawResponse = { readonly artist: { + readonly alternateNames: ReadonlyArray | null | undefined; readonly auctionResultsConnection: { readonly edges: ReadonlyArray<{ readonly node: { @@ -93,13 +94,39 @@ export type ArtistAuctionResults_Test_Query$rawResponse = { }; readonly totalCount: number | null | undefined; } | null | undefined; + readonly auctionResultsMeta: { + readonly description: string; + readonly title: string; + }; + readonly birthday: string | null | undefined; + readonly coverArtwork: { + readonly id: string; + readonly image: { + readonly large: string | null | undefined; + readonly url: string | null | undefined; + } | null | undefined; + } | null | undefined; + readonly deathday: string | null | undefined; + readonly gender: string | null | undefined; + readonly href: string | null | undefined; readonly id: string; readonly internalID: string; + readonly isInSeoExperiment: boolean | null | undefined; readonly meta: { readonly description: string; readonly title: string; }; readonly name: string | null | undefined; + readonly nationality: string | null | undefined; + readonly partnersConnection: { + readonly edges: ReadonlyArray<{ + readonly id: string; + readonly node: { + readonly href: string | null | undefined; + readonly id: string; + } | null | undefined; + } | null | undefined> | null | undefined; + } | null | undefined; readonly pastAuctionResults: { readonly totalCount: number | null | undefined; } | null | undefined; @@ -147,14 +174,14 @@ v2 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "name", "storageKey": null }, v3 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "name", + "name": "href", "storageKey": null }, v4 = { @@ -165,22 +192,50 @@ v4 = { "storageKey": null }, v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null +}, +v6 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null +}, +v9 = { "alias": null, "args": null, "kind": "ScalarField", "name": "cursor", "storageKey": null }, -v6 = { +v10 = { "alias": null, "args": null, "kind": "ScalarField", "name": "page", "storageKey": null }, -v7 = [ - (v5/*: any*/), - (v6/*: any*/), +v11 = [ + (v9/*: any*/), + (v10/*: any*/), { "alias": null, "args": null, @@ -189,29 +244,22 @@ v7 = [ "storageKey": null } ], -v8 = { +v12 = { "alias": null, "args": null, "kind": "ScalarField", "name": "totalCount", "storageKey": null }, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = { +v13 = { "alias": null, "args": null, "kind": "ScalarField", "name": "display", "storageKey": null }, -v11 = [ - (v8/*: any*/) +v14 = [ + (v12/*: any*/) ]; return { "fragment": { @@ -262,6 +310,34 @@ return { "storageKey": null }, (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, (v3/*: any*/), { "alias": null, @@ -269,21 +345,128 @@ return { { "kind": "Literal", "name": "page", - "value": "AUCTION_RESULTS" + "value": "ABOUT" } ], "concreteType": "ArtistMeta", "kind": "LinkedField", "name": "meta", "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/) + ], + "storageKey": "meta(page:\"ABOUT\")" + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "description", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v6/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v6/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], "storageKey": null }, + (v7/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + (v7/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + (v8/*: any*/), + { + "alias": "auctionResultsMeta", + "args": [ + { + "kind": "Literal", + "name": "page", + "value": "AUCTION_RESULTS" + } + ], + "concreteType": "ArtistMeta", + "kind": "LinkedField", + "name": "meta", + "plural": false, + "selections": [ + (v5/*: any*/), (v4/*: any*/) ], "storageKey": "meta(page:\"AUCTION_RESULTS\")" @@ -370,7 +553,7 @@ return { "kind": "LinkedField", "name": "around", "plural": true, - "selections": (v7/*: any*/), + "selections": (v11/*: any*/), "storageKey": null }, { @@ -380,7 +563,7 @@ return { "kind": "LinkedField", "name": "first", "plural": false, - "selections": (v7/*: any*/), + "selections": (v11/*: any*/), "storageKey": null }, { @@ -390,7 +573,7 @@ return { "kind": "LinkedField", "name": "last", "plural": false, - "selections": (v7/*: any*/), + "selections": (v11/*: any*/), "storageKey": null }, { @@ -401,15 +584,15 @@ return { "name": "previous", "plural": false, "selections": [ - (v5/*: any*/), - (v6/*: any*/) + (v9/*: any*/), + (v10/*: any*/) ], "storageKey": null } ], "storageKey": null }, - (v8/*: any*/), + (v12/*: any*/), { "alias": null, "args": null, @@ -426,7 +609,7 @@ return { "name": "node", "plural": false, "selections": [ - (v2/*: any*/), + (v8/*: any*/), (v4/*: any*/), { "alias": "dimension_text", @@ -450,8 +633,8 @@ return { "name": "artist", "plural": false, "selections": [ - (v3/*: any*/), - (v9/*: any*/) + (v2/*: any*/), + (v7/*: any*/) ], "storageKey": null }, @@ -584,7 +767,7 @@ return { "name": "priceRealized", "plural": false, "selections": [ - (v10/*: any*/), + (v13/*: any*/), { "alias": "display_usd", "args": null, @@ -628,7 +811,7 @@ return { "name": "estimate", "plural": false, "selections": [ - (v10/*: any*/) + (v13/*: any*/) ], "storageKey": null }, @@ -660,7 +843,7 @@ return { "name": "isUpcoming", "storageKey": null }, - (v9/*: any*/) + (v7/*: any*/) ], "storageKey": null } @@ -683,7 +866,7 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v11/*: any*/), + "selections": (v14/*: any*/), "storageKey": "auctionResultsConnection(state:\"PAST\")" }, { @@ -699,7 +882,7 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v11/*: any*/), + "selections": (v14/*: any*/), "storageKey": "auctionResultsConnection(state:\"UPCOMING\")" }, { @@ -744,7 +927,7 @@ return { "name": "counts", "plural": true, "selections": [ - (v3/*: any*/), + (v2/*: any*/), { "alias": null, "args": null, @@ -768,19 +951,19 @@ return { ], "storageKey": "auctionResultsConnection(aggregations:[\"SIMPLE_PRICE_HISTOGRAM\",\"CURRENCIES_COUNT\",\"LOTS_BY_SALE_YEAR\",\"LOTS_BY_CREATED_YEAR\"])" }, - (v9/*: any*/) + (v7/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "da6919a1073ba77d2ff3f01e14946cf4", + "cacheID": "17f99b9f1c0322a950d1ea470dd73e60", "id": null, "metadata": {}, "name": "ArtistAuctionResults_Test_Query", "operationKind": "query", - "text": "query ArtistAuctionResults_Test_Query(\n $artistID: String!\n) {\n artist(id: $artistID) {\n ...ArtistAuctionResultsRoute_artist\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResultsRoute_artist on Artist {\n ...ArtistAuctionResults_artist_GM8aI\n sidebarAggregations: auctionResultsConnection(aggregations: [SIMPLE_PRICE_HISTOGRAM, CURRENCIES_COUNT, LOTS_BY_SALE_YEAR, LOTS_BY_CREATED_YEAR]) {\n aggregations {\n slice\n counts {\n name\n value\n count\n }\n }\n }\n}\n\nfragment ArtistAuctionResults_artist_GM8aI on Artist {\n slug\n internalID\n name\n meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: 50, sort: DATE_DESC, state: ALL) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING) {\n totalCount\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" + "text": "query ArtistAuctionResults_Test_Query(\n $artistID: String!\n) {\n artist(id: $artistID) {\n ...ArtistAuctionResultsRoute_artist\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResultsRoute_artist on Artist {\n ...ArtistAuctionResults_artist_GM8aI\n sidebarAggregations: auctionResultsConnection(aggregations: [SIMPLE_PRICE_HISTOGRAM, CURRENCIES_COUNT, LOTS_BY_SALE_YEAR, LOTS_BY_CREATED_YEAR]) {\n aggregations {\n slice\n counts {\n name\n value\n count\n }\n }\n }\n}\n\nfragment ArtistAuctionResults_artist_GM8aI on Artist {\n ...ArtistMeta_artist\n slug\n internalID\n name\n auctionResultsMeta: meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: 50, sort: DATE_DESC, state: ALL) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING) {\n totalCount\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistAuctionResults_artist.graphql.ts b/src/__generated__/ArtistAuctionResults_artist.graphql.ts index cf2aeabd64b..1160e68c685 100644 --- a/src/__generated__/ArtistAuctionResults_artist.graphql.ts +++ b/src/__generated__/ArtistAuctionResults_artist.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<6e24f2fac96bde17fd1fc507d5510369>> * @lightSyntaxTransform * @nogrep */ @@ -27,11 +27,11 @@ export type ArtistAuctionResults_artist$data = { }; readonly totalCount: number | null | undefined; } | null | undefined; - readonly internalID: string; - readonly meta: { + readonly auctionResultsMeta: { readonly description: string; readonly title: string; }; + readonly internalID: string; readonly name: string | null | undefined; readonly pastAuctionResults: { readonly totalCount: number | null | undefined; @@ -43,6 +43,7 @@ export type ArtistAuctionResults_artist$data = { readonly upcomingAuctionResults: { readonly totalCount: number | null | undefined; } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"ArtistMeta_artist">; readonly " $fragmentType": "ArtistAuctionResults_artist"; }; export type ArtistAuctionResults_artist$key = { @@ -243,6 +244,11 @@ return { "metadata": null, "name": "ArtistAuctionResults_artist", "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ArtistMeta_artist" + }, { "alias": null, "args": null, @@ -265,7 +271,7 @@ return { "storageKey": null }, { - "alias": null, + "alias": "auctionResultsMeta", "args": [ { "kind": "Literal", @@ -516,6 +522,6 @@ return { }; })(); -(node as any).hash = "d67a990e35e7b52e0a04497b9b1a59f9"; +(node as any).hash = "f802a4cdb3a9580fcc89e3ab013a4354"; export default node; diff --git a/src/__generated__/ArtistOverviewRoute_Test_Query.graphql.ts b/src/__generated__/ArtistOverviewRoute_Test_Query.graphql.ts index f47f4dd897f..c96f4d167bc 100644 --- a/src/__generated__/ArtistOverviewRoute_Test_Query.graphql.ts +++ b/src/__generated__/ArtistOverviewRoute_Test_Query.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<2473ee3ac5de3704de25455b4fb8aaa9>> * @lightSyntaxTransform * @nogrep */ @@ -30,18 +30,39 @@ var v0 = [ } ], v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "href", + "storageKey": null +}, +v2 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { "alias": null, "args": null, "kind": "ScalarField", "name": "__typename", "storageKey": null }, -v2 = { +v5 = { "kind": "Literal", "name": "first", "value": 0 }, -v3 = [ +v6 = [ { "alias": null, "args": null, @@ -49,14 +70,7 @@ v3 = [ "name": "totalCount", "storageKey": null } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; +]; return { "fragment": { "argumentDefinitions": [], @@ -102,7 +116,7 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "slug", "storageKey": null }, { @@ -112,6 +126,35 @@ return { "name": "name", "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, + (v1/*: any*/), { "alias": null, "args": [ @@ -130,19 +173,119 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "description", + "name": "title", "storageKey": null }, { "alias": null, "args": null, "kind": "ScalarField", - "name": "title", + "name": "description", "storageKey": null } ], "storageKey": "meta(page:\"ABOUT\")" }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v2/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null + }, { "alias": null, "args": null, @@ -151,26 +294,26 @@ return { "name": "insights", "plural": true, "selections": [ - (v1/*: any*/) + (v4/*: any*/) ], "storageKey": null }, { "alias": null, "args": [ - (v2/*: any*/) + (v5/*: any*/) ], "concreteType": "ArtistSeriesConnection", "kind": "LinkedField", "name": "artistSeriesConnection", "plural": false, - "selections": (v3/*: any*/), + "selections": (v6/*: any*/), "storageKey": "artistSeriesConnection(first:0)" }, { "alias": null, "args": [ - (v2/*: any*/), + (v5/*: any*/), { "kind": "Literal", "name": "status", @@ -181,7 +324,7 @@ return { "kind": "LinkedField", "name": "showsConnection", "plural": false, - "selections": (v3/*: any*/), + "selections": (v6/*: any*/), "storageKey": "showsConnection(first:0,status:\"running\")" }, { @@ -254,8 +397,8 @@ return { "name": "node", "plural": false, "selections": [ - (v1/*: any*/), - (v4/*: any*/) + (v4/*: any*/), + (v3/*: any*/) ], "storageKey": null } @@ -268,19 +411,19 @@ return { ], "storageKey": null }, - (v4/*: any*/) + (v3/*: any*/) ], "storageKey": "artist(id:\"test\")" } ] }, "params": { - "cacheID": "3f45a29daa79c5a58f06602bd5b18113", + "cacheID": "ad3e9f699e9a7b3be588226babba59f9", "id": null, "metadata": {}, "name": "ArtistOverviewRoute_Test_Query", "operationKind": "query", - "text": "query ArtistOverviewRoute_Test_Query {\n artist(id: \"test\") {\n ...ArtistOverviewRoute_artist\n id\n }\n}\n\nfragment ArtistOverviewRoute_artist on Artist {\n internalID\n name\n meta(page: ABOUT) {\n description\n title\n }\n insights {\n __typename\n }\n artistSeriesConnection(first: 0) {\n totalCount\n }\n showsConnection(first: 0, status: \"running\") {\n totalCount\n }\n counts {\n artworks\n relatedArtists\n articles\n }\n related {\n genes(first: 1) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n }\n}\n" + "text": "query ArtistOverviewRoute_Test_Query {\n artist(id: \"test\") {\n ...ArtistOverviewRoute_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistOverviewRoute_artist on Artist {\n ...ArtistMeta_artist\n internalID\n name\n meta(page: ABOUT) {\n description\n title\n }\n insights {\n __typename\n }\n artistSeriesConnection(first: 0) {\n totalCount\n }\n showsConnection(first: 0, status: \"running\") {\n totalCount\n }\n counts {\n artworks\n relatedArtists\n articles\n }\n related {\n genes(first: 1) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n" } }; })(); diff --git a/src/__generated__/ArtistOverviewRoute_artist.graphql.ts b/src/__generated__/ArtistOverviewRoute_artist.graphql.ts index c9b98b4ea14..b1f3e85134b 100644 --- a/src/__generated__/ArtistOverviewRoute_artist.graphql.ts +++ b/src/__generated__/ArtistOverviewRoute_artist.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<2851b5d5d6d8f74e9dcb34c395e371d6>> * @lightSyntaxTransform * @nogrep */ @@ -40,6 +40,7 @@ export type ArtistOverviewRoute_artist$data = { readonly showsConnection: { readonly totalCount: number | null | undefined; } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"ArtistMeta_artist">; readonly " $fragmentType": "ArtistOverviewRoute_artist"; }; export type ArtistOverviewRoute_artist$key = { @@ -77,6 +78,11 @@ return { "metadata": null, "name": "ArtistOverviewRoute_artist", "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ArtistMeta_artist" + }, { "alias": null, "args": null, @@ -248,6 +254,6 @@ return { }; })(); -(node as any).hash = "d98b6054e2b4bd57cfac9cd348ad9da1"; +(node as any).hash = "8a0d159df4cbc4daecd08e79d328c1cf"; export default node; diff --git a/src/__generated__/ArtistTabsMetaIntegration_AboutTab_Test_Query.graphql.ts b/src/__generated__/ArtistTabsMetaIntegration_AboutTab_Test_Query.graphql.ts new file mode 100644 index 00000000000..7011c07b676 --- /dev/null +++ b/src/__generated__/ArtistTabsMetaIntegration_AboutTab_Test_Query.graphql.ts @@ -0,0 +1,597 @@ +/** + * @generated SignedSource<<045d1853ab1e58b3bc527878fce02a50>> + * @lightSyntaxTransform + * @nogrep + */ + +/* tslint:disable */ +/* eslint-disable */ +// @ts-nocheck + +import { ConcreteRequest } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type ArtistTabsMetaIntegration_AboutTab_Test_Query$variables = Record; +export type ArtistTabsMetaIntegration_AboutTab_Test_Query$data = { + readonly artist: { + readonly " $fragmentSpreads": FragmentRefs<"ArtistOverviewRoute_artist">; + } | null | undefined; +}; +export type ArtistTabsMetaIntegration_AboutTab_Test_Query = { + response: ArtistTabsMetaIntegration_AboutTab_Test_Query$data; + variables: ArtistTabsMetaIntegration_AboutTab_Test_Query$variables; +}; + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "andy-warhol" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "href", + "storageKey": null +}, +v2 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v5 = { + "kind": "Literal", + "name": "first", + "value": 0 +}, +v6 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + } +], +v7 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v8 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v9 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v10 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ArtistTabsMetaIntegration_AboutTab_Test_Query", + "selections": [ + { + "alias": null, + "args": (v0/*: any*/), + "concreteType": "Artist", + "kind": "LinkedField", + "name": "artist", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ArtistOverviewRoute_artist" + } + ], + "storageKey": "artist(id:\"andy-warhol\")" + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "ArtistTabsMetaIntegration_AboutTab_Test_Query", + "selections": [ + { + "alias": null, + "args": (v0/*: any*/), + "concreteType": "Artist", + "kind": "LinkedField", + "name": "artist", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "slug", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, + (v1/*: any*/), + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "page", + "value": "ABOUT" + } + ], + "concreteType": "ArtistMeta", + "kind": "LinkedField", + "name": "meta", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + } + ], + "storageKey": "meta(page:\"ABOUT\")" + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v2/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ArtistInsight", + "kind": "LinkedField", + "name": "insights", + "plural": true, + "selections": [ + (v4/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + (v5/*: any*/) + ], + "concreteType": "ArtistSeriesConnection", + "kind": "LinkedField", + "name": "artistSeriesConnection", + "plural": false, + "selections": (v6/*: any*/), + "storageKey": "artistSeriesConnection(first:0)" + }, + { + "alias": null, + "args": [ + (v5/*: any*/), + { + "kind": "Literal", + "name": "status", + "value": "running" + } + ], + "concreteType": "ShowConnection", + "kind": "LinkedField", + "name": "showsConnection", + "plural": false, + "selections": (v6/*: any*/), + "storageKey": "showsConnection(first:0,status:\"running\")" + }, + { + "alias": null, + "args": null, + "concreteType": "ArtistCounts", + "kind": "LinkedField", + "name": "counts", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "artworks", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "relatedArtists", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "articles", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ArtistRelatedData", + "kind": "LinkedField", + "name": "related", + "plural": false, + "selections": [ + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 1 + } + ], + "concreteType": "GeneConnection", + "kind": "LinkedField", + "name": "genes", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "GeneEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Gene", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v4/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "genes(first:1)" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": "artist(id:\"andy-warhol\")" + } + ] + }, + "params": { + "cacheID": "ace1dd39eb938bb405f2a5e8907c161e", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "artist": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Artist" + }, + "artist.alternateNames": { + "enumValues": null, + "nullable": true, + "plural": true, + "type": "String" + }, + "artist.artistSeriesConnection": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ArtistSeriesConnection" + }, + "artist.artistSeriesConnection.totalCount": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" + }, + "artist.birthday": (v7/*: any*/), + "artist.counts": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ArtistCounts" + }, + "artist.counts.articles": (v8/*: any*/), + "artist.counts.artworks": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "FormattedNumber" + }, + "artist.counts.relatedArtists": (v8/*: any*/), + "artist.coverArtwork": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Artwork" + }, + "artist.coverArtwork.id": (v9/*: any*/), + "artist.coverArtwork.image": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Image" + }, + "artist.coverArtwork.image.large": (v7/*: any*/), + "artist.coverArtwork.image.url": (v7/*: any*/), + "artist.deathday": (v7/*: any*/), + "artist.gender": (v7/*: any*/), + "artist.href": (v7/*: any*/), + "artist.id": (v9/*: any*/), + "artist.insights": { + "enumValues": null, + "nullable": false, + "plural": true, + "type": "ArtistInsight" + }, + "artist.insights.__typename": (v10/*: any*/), + "artist.internalID": (v9/*: any*/), + "artist.isInSeoExperiment": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" + }, + "artist.meta": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ArtistMeta" + }, + "artist.meta.description": (v10/*: any*/), + "artist.meta.title": (v10/*: any*/), + "artist.name": (v7/*: any*/), + "artist.nationality": (v7/*: any*/), + "artist.partnersConnection": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "PartnerArtistConnection" + }, + "artist.partnersConnection.edges": { + "enumValues": null, + "nullable": true, + "plural": true, + "type": "PartnerArtistEdge" + }, + "artist.partnersConnection.edges.id": (v9/*: any*/), + "artist.partnersConnection.edges.node": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Partner" + }, + "artist.partnersConnection.edges.node.href": (v7/*: any*/), + "artist.partnersConnection.edges.node.id": (v9/*: any*/), + "artist.related": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ArtistRelatedData" + }, + "artist.related.genes": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "GeneConnection" + }, + "artist.related.genes.edges": { + "enumValues": null, + "nullable": true, + "plural": true, + "type": "GeneEdge" + }, + "artist.related.genes.edges.node": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Gene" + }, + "artist.related.genes.edges.node.__typename": (v10/*: any*/), + "artist.related.genes.edges.node.id": (v9/*: any*/), + "artist.showsConnection": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ShowConnection" + }, + "artist.showsConnection.totalCount": (v8/*: any*/), + "artist.slug": (v9/*: any*/) + } + }, + "name": "ArtistTabsMetaIntegration_AboutTab_Test_Query", + "operationKind": "query", + "text": "query ArtistTabsMetaIntegration_AboutTab_Test_Query {\n artist(id: \"andy-warhol\") {\n ...ArtistOverviewRoute_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistOverviewRoute_artist on Artist {\n ...ArtistMeta_artist\n internalID\n name\n meta(page: ABOUT) {\n description\n title\n }\n insights {\n __typename\n }\n artistSeriesConnection(first: 0) {\n totalCount\n }\n showsConnection(first: 0, status: \"running\") {\n totalCount\n }\n counts {\n artworks\n relatedArtists\n articles\n }\n related {\n genes(first: 1) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n" + } +}; +})(); + +(node as any).hash = "a92c9606a6bdf3c4ee44f3073dcca261"; + +export default node; diff --git a/src/__generated__/ArtistWorksForSaleRoute_artist.graphql.ts b/src/__generated__/ArtistWorksForSaleRoute_artist.graphql.ts index 943fcbafc99..1364ea9c593 100644 --- a/src/__generated__/ArtistWorksForSaleRoute_artist.graphql.ts +++ b/src/__generated__/ArtistWorksForSaleRoute_artist.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<24f9907c5eddd9076fdc60e03cb6ab83>> * @lightSyntaxTransform * @nogrep */ @@ -11,13 +11,13 @@ import { ReaderFragment } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; export type ArtistWorksForSaleRoute_artist$data = { - readonly meta: { + readonly artworksMeta: { readonly description: string; readonly title: string; }; readonly name: string | null | undefined; readonly slug: string; - readonly " $fragmentSpreads": FragmentRefs<"ArtistWorksForSaleEmpty_artist">; + readonly " $fragmentSpreads": FragmentRefs<"ArtistMeta_artist" | "ArtistWorksForSaleEmpty_artist">; readonly " $fragmentType": "ArtistWorksForSaleRoute_artist"; }; export type ArtistWorksForSaleRoute_artist$key = { @@ -31,6 +31,11 @@ const node: ReaderFragment = { "metadata": null, "name": "ArtistWorksForSaleRoute_artist", "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ArtistMeta_artist" + }, { "args": null, "kind": "FragmentSpread", @@ -51,7 +56,7 @@ const node: ReaderFragment = { "storageKey": null }, { - "alias": null, + "alias": "artworksMeta", "args": [ { "kind": "Literal", @@ -86,6 +91,6 @@ const node: ReaderFragment = { "abstractKey": null }; -(node as any).hash = "3f3df19a6ee2a905d86136f0d1af61eb"; +(node as any).hash = "1792f7ad610782faa696afb45ded2e4a"; export default node; diff --git a/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts b/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts index 8b735505217..c49f3fc07c5 100644 --- a/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts +++ b/src/__generated__/artistRoutes_ArtistAppQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<939befd39ee1fb4e042605e465650202>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -42,52 +42,31 @@ v2 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "name", + "name": "internalID", "storageKey": null }, v3 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "href", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", + "name": "name", "storageKey": null }, -v5 = [ +v4 = [ { "kind": "Literal", - "name": "version", - "value": "large" + "name": "format", + "value": "HTML" } ], -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v7 = { +v5 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "href", "storageKey": null }, -v8 = [ - { - "kind": "Literal", - "name": "format", - "value": "HTML" - } -], -v9 = [ +v6 = [ { "alias": null, "args": null, @@ -95,7 +74,14 @@ v9 = [ "name": "src", "storageKey": null } -]; +], +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; return { "fragment": { "argumentDefinitions": (v0/*: any*/), @@ -137,201 +123,15 @@ return { "name": "artist", "plural": false, "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "slug", - "storageKey": null - }, (v2/*: any*/), { "alias": null, "args": null, "kind": "ScalarField", - "name": "birthday", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deathday", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "gender", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "nationality", + "name": "slug", "storageKey": null }, (v3/*: any*/), - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "page", - "value": "ABOUT" - } - ], - "concreteType": "ArtistMeta", - "kind": "LinkedField", - "name": "meta", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - } - ], - "storageKey": "meta(page:\"ABOUT\")" - }, - { - "alias": null, - "args": null, - "concreteType": "Artwork", - "kind": "LinkedField", - "name": "coverArtwork", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Image", - "kind": "LinkedField", - "name": "image", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v5/*: any*/), - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"large\")" - }, - { - "alias": "large", - "args": (v5/*: any*/), - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:\"large\")" - }, - { - "alias": "src", - "args": [ - { - "kind": "Literal", - "name": "version", - "value": [ - "larger", - "larger" - ] - } - ], - "kind": "ScalarField", - "name": "url", - "storageKey": "url(version:[\"larger\",\"larger\"])" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "width", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "height", - "storageKey": null - } - ], - "storageKey": null - }, - (v6/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "imageTitle", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 10 - } - ], - "concreteType": "PartnerArtistConnection", - "kind": "LinkedField", - "name": "partnersConnection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PartnerArtistEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Partner", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": "partnersConnection(first:10)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isInSeoExperiment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "alternateNames", - "storageKey": null - }, - (v7/*: any*/), { "alias": null, "args": null, @@ -359,7 +159,7 @@ return { }, { "alias": null, - "args": (v8/*: any*/), + "args": (v4/*: any*/), "concreteType": "ArtistBlurb", "kind": "LinkedField", "name": "biographyBlurb", @@ -413,7 +213,7 @@ return { }, { "alias": null, - "args": (v8/*: any*/), + "args": (v4/*: any*/), "kind": "ScalarField", "name": "description", "storageKey": "description(format:\"HTML\")" @@ -437,9 +237,9 @@ return { "name": "partner", "plural": false, "selections": [ - (v7/*: any*/), (v2/*: any*/), (v3/*: any*/), + (v5/*: any*/), { "alias": null, "args": null, @@ -474,7 +274,7 @@ return { "kind": "LinkedField", "name": "cropped", "plural": false, - "selections": (v9/*: any*/), + "selections": (v6/*: any*/), "storageKey": "cropped(height:30,width:30)" }, { @@ -495,37 +295,105 @@ return { "kind": "LinkedField", "name": "cropped", "plural": false, - "selections": (v9/*: any*/), + "selections": (v6/*: any*/), "storageKey": "cropped(height:60,width:60)" } ], "storageKey": null }, - (v6/*: any*/) + (v7/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "imageTitle", + "storageKey": null + }, + (v5/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": "src", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": [ + "larger", + "larger" + ] + } ], + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:[\"larger\",\"larger\"])" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "width", "storageKey": null }, - (v6/*: any*/) + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "height", + "storageKey": null + } ], "storageKey": null }, - (v6/*: any*/) + (v7/*: any*/) ], "storageKey": null }, - (v6/*: any*/) + (v7/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "9ad9a55afd82ff64a030c796a32669bf", + "cacheID": "e379cd670b9977bdf2d96da2d284140f", "id": null, "metadata": {}, "name": "artistRoutes_ArtistAppQuery", "operationKind": "query", - "text": "query artistRoutes_ArtistAppQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n imageTitle\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n" + "text": "query artistRoutes_ArtistAppQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistApp_artist\n id\n }\n}\n\nfragment ArtistApp_artist on Artist {\n ...ArtistHeader_artist\n internalID\n slug\n name\n}\n\nfragment ArtistCareerHighlight_insight on ArtistInsight {\n label\n entities\n description(format: HTML)\n}\n\nfragment ArtistHeader_artist on Artist {\n internalID\n slug\n name\n formattedNationalityAndBirthday\n counts {\n follows\n }\n biographyBlurb(format: HTML) {\n text\n credit\n }\n insights {\n kind\n ...ArtistCareerHighlight_insight\n }\n verifiedRepresentatives {\n partner {\n internalID\n name\n href\n profile {\n icon {\n src1x: cropped(width: 30, height: 30) {\n src\n }\n src2x: cropped(width: 60, height: 60) {\n src\n }\n }\n id\n }\n id\n }\n id\n }\n coverArtwork {\n title\n imageTitle\n href\n image {\n src: url(version: [\"larger\", \"larger\"])\n width\n height\n }\n id\n }\n}\n" } }; })(); diff --git a/src/__generated__/artistRoutes_AuctionResultsQuery.graphql.ts b/src/__generated__/artistRoutes_AuctionResultsQuery.graphql.ts index b506c27bed0..0ad6f01e58e 100644 --- a/src/__generated__/artistRoutes_AuctionResultsQuery.graphql.ts +++ b/src/__generated__/artistRoutes_AuctionResultsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<35b80d4251d759e94bcfb8d0d71c76da>> + * @generated SignedSource<<74d11c77946937711529b1f3960a2080>> * @lightSyntaxTransform * @nogrep */ @@ -153,14 +153,14 @@ v22 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "name", "storageKey": null }, v23 = { "alias": null, "args": null, "kind": "ScalarField", - "name": "name", + "name": "href", "storageKey": null }, v24 = { @@ -171,32 +171,60 @@ v24 = { "storageKey": null }, v25 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null +}, +v26 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v27 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v28 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null +}, +v29 = { "kind": "Variable", "name": "earliestCreatedYear", "variableName": "createdAfterYear" }, -v26 = { +v30 = { "kind": "Variable", "name": "latestCreatedYear", "variableName": "createdBeforeYear" }, -v27 = { +v31 = { "alias": null, "args": null, "kind": "ScalarField", "name": "cursor", "storageKey": null }, -v28 = { +v32 = { "alias": null, "args": null, "kind": "ScalarField", "name": "page", "storageKey": null }, -v29 = [ - (v27/*: any*/), - (v28/*: any*/), +v33 = [ + (v31/*: any*/), + (v32/*: any*/), { "alias": null, "args": null, @@ -205,29 +233,22 @@ v29 = [ "storageKey": null } ], -v30 = { +v34 = { "alias": null, "args": null, "kind": "ScalarField", "name": "totalCount", "storageKey": null }, -v31 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v32 = { +v35 = { "alias": null, "args": null, "kind": "ScalarField", "name": "display", "storageKey": null }, -v33 = [ - (v30/*: any*/) +v36 = [ + (v34/*: any*/) ]; return { "fragment": { @@ -324,6 +345,34 @@ return { "storageKey": null }, (v22/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, (v23/*: any*/), { "alias": null, @@ -331,21 +380,128 @@ return { { "kind": "Literal", "name": "page", - "value": "AUCTION_RESULTS" + "value": "ABOUT" } ], "concreteType": "ArtistMeta", "kind": "LinkedField", "name": "meta", "plural": false, + "selections": [ + (v24/*: any*/), + (v25/*: any*/) + ], + "storageKey": "meta(page:\"ABOUT\")" + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "description", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v26/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v26/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], "storageKey": null }, + (v27/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v23/*: any*/), + (v27/*: any*/) + ], + "storageKey": null + }, + (v27/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + (v28/*: any*/), + { + "alias": "auctionResultsMeta", + "args": [ + { + "kind": "Literal", + "name": "page", + "value": "AUCTION_RESULTS" + } + ], + "concreteType": "ArtistMeta", + "kind": "LinkedField", + "name": "meta", + "plural": false, + "selections": [ + (v25/*: any*/), (v24/*: any*/) ], "storageKey": "meta(page:\"AUCTION_RESULTS\")" @@ -373,7 +529,7 @@ return { "args": [ (v13/*: any*/), (v14/*: any*/), - (v25/*: any*/), + (v29/*: any*/), { "kind": "Literal", "name": "first", @@ -381,7 +537,7 @@ return { }, (v15/*: any*/), (v16/*: any*/), - (v26/*: any*/), + (v30/*: any*/), (v17/*: any*/), (v18/*: any*/), (v19/*: any*/), @@ -438,7 +594,7 @@ return { "kind": "LinkedField", "name": "around", "plural": true, - "selections": (v29/*: any*/), + "selections": (v33/*: any*/), "storageKey": null }, { @@ -448,7 +604,7 @@ return { "kind": "LinkedField", "name": "first", "plural": false, - "selections": (v29/*: any*/), + "selections": (v33/*: any*/), "storageKey": null }, { @@ -458,7 +614,7 @@ return { "kind": "LinkedField", "name": "last", "plural": false, - "selections": (v29/*: any*/), + "selections": (v33/*: any*/), "storageKey": null }, { @@ -469,15 +625,15 @@ return { "name": "previous", "plural": false, "selections": [ - (v27/*: any*/), - (v28/*: any*/) + (v31/*: any*/), + (v32/*: any*/) ], "storageKey": null } ], "storageKey": null }, - (v30/*: any*/), + (v34/*: any*/), { "alias": null, "args": null, @@ -494,7 +650,7 @@ return { "name": "node", "plural": false, "selections": [ - (v22/*: any*/), + (v28/*: any*/), (v24/*: any*/), { "alias": "dimension_text", @@ -518,8 +674,8 @@ return { "name": "artist", "plural": false, "selections": [ - (v23/*: any*/), - (v31/*: any*/) + (v22/*: any*/), + (v27/*: any*/) ], "storageKey": null }, @@ -652,7 +808,7 @@ return { "name": "priceRealized", "plural": false, "selections": [ - (v32/*: any*/), + (v35/*: any*/), { "alias": "display_usd", "args": null, @@ -696,7 +852,7 @@ return { "name": "estimate", "plural": false, "selections": [ - (v32/*: any*/) + (v35/*: any*/) ], "storageKey": null }, @@ -728,7 +884,7 @@ return { "name": "isUpcoming", "storageKey": null }, - (v31/*: any*/) + (v27/*: any*/) ], "storageKey": null } @@ -743,10 +899,10 @@ return { "args": [ (v13/*: any*/), (v14/*: any*/), - (v25/*: any*/), + (v29/*: any*/), (v15/*: any*/), (v16/*: any*/), - (v26/*: any*/), + (v30/*: any*/), (v17/*: any*/), (v19/*: any*/), (v20/*: any*/), @@ -760,7 +916,7 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v33/*: any*/), + "selections": (v36/*: any*/), "storageKey": null }, { @@ -768,10 +924,10 @@ return { "args": [ (v13/*: any*/), (v14/*: any*/), - (v25/*: any*/), + (v29/*: any*/), (v15/*: any*/), (v16/*: any*/), - (v26/*: any*/), + (v30/*: any*/), (v17/*: any*/), (v19/*: any*/), (v20/*: any*/), @@ -785,7 +941,7 @@ return { "kind": "LinkedField", "name": "auctionResultsConnection", "plural": false, - "selections": (v33/*: any*/), + "selections": (v36/*: any*/), "storageKey": null }, { @@ -830,7 +986,7 @@ return { "name": "counts", "plural": true, "selections": [ - (v23/*: any*/), + (v22/*: any*/), { "alias": null, "args": null, @@ -854,19 +1010,19 @@ return { ], "storageKey": "auctionResultsConnection(aggregations:[\"SIMPLE_PRICE_HISTOGRAM\",\"CURRENCIES_COUNT\",\"LOTS_BY_SALE_YEAR\",\"LOTS_BY_CREATED_YEAR\"])" }, - (v31/*: any*/) + (v27/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "dfaf5220d51ce17d542a0aed00a1c803", + "cacheID": "fc99d84d6077fd85a2840ad87b37ebf3", "id": null, "metadata": {}, "name": "artistRoutes_AuctionResultsQuery", "operationKind": "query", - "text": "query artistRoutes_AuctionResultsQuery(\n $page: Int\n $state: AuctionResultsState\n $artistID: String!\n $organizations: [String]\n $categories: [String]\n $sizes: [ArtworkSizes]\n $priceRange: String\n $includeEstimateRange: Boolean\n $includeUnknownPrices: Boolean\n $createdAfterYear: Int\n $createdBeforeYear: Int\n $allowEmptyCreatedDates: Boolean\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistAuctionResultsRoute_artist_rukZa\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResultsRoute_artist_rukZa on Artist {\n ...ArtistAuctionResults_artist_2rF1H1\n sidebarAggregations: auctionResultsConnection(aggregations: [SIMPLE_PRICE_HISTOGRAM, CURRENCIES_COUNT, LOTS_BY_SALE_YEAR, LOTS_BY_CREATED_YEAR]) {\n aggregations {\n slice\n counts {\n name\n value\n count\n }\n }\n }\n}\n\nfragment ArtistAuctionResults_artist_2rF1H1 on Artist {\n slug\n internalID\n name\n meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: 50, page: $page, sort: DATE_DESC, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates, state: $state) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" + "text": "query artistRoutes_AuctionResultsQuery(\n $page: Int\n $state: AuctionResultsState\n $artistID: String!\n $organizations: [String]\n $categories: [String]\n $sizes: [ArtworkSizes]\n $priceRange: String\n $includeEstimateRange: Boolean\n $includeUnknownPrices: Boolean\n $createdAfterYear: Int\n $createdBeforeYear: Int\n $allowEmptyCreatedDates: Boolean\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistAuctionResultsRoute_artist_rukZa\n id\n }\n}\n\nfragment ArtistAuctionResultItem_auctionResult on AuctionResult {\n internalID\n title\n dimension_text: dimensionText\n organization\n artist {\n name\n id\n }\n images {\n thumbnail {\n cropped(width: 130, height: 130, version: [\"square140\"]) {\n src\n srcSet\n width\n height\n }\n }\n }\n mediumText\n categoryText\n date_text: dateText\n saleDate\n boughtIn\n currency\n price_realized: priceRealized {\n display\n display_usd: displayUSD\n cents_usd: centsUSD\n }\n performance {\n mid\n }\n estimate {\n display\n }\n location\n lotNumber\n saleTitle\n isUpcoming\n}\n\nfragment ArtistAuctionResultsRoute_artist_rukZa on Artist {\n ...ArtistAuctionResults_artist_2rF1H1\n sidebarAggregations: auctionResultsConnection(aggregations: [SIMPLE_PRICE_HISTOGRAM, CURRENCIES_COUNT, LOTS_BY_SALE_YEAR, LOTS_BY_CREATED_YEAR]) {\n aggregations {\n slice\n counts {\n name\n value\n count\n }\n }\n }\n}\n\nfragment ArtistAuctionResults_artist_2rF1H1 on Artist {\n ...ArtistMeta_artist\n slug\n internalID\n name\n auctionResultsMeta: meta(page: AUCTION_RESULTS) {\n description\n title\n }\n statuses {\n auctionLots\n }\n auctionResultsConnection(first: 50, page: $page, sort: DATE_DESC, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates, state: $state) {\n pageInfo {\n hasNextPage\n endCursor\n }\n pageCursors {\n ...Pagination_pageCursors\n }\n totalCount\n edges {\n node {\n ...ArtistAuctionResultItem_auctionResult\n isUpcoming\n id\n }\n }\n }\n pastAuctionResults: auctionResultsConnection(state: PAST, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n upcomingAuctionResults: auctionResultsConnection(state: UPCOMING, organizations: $organizations, categories: $categories, sizes: $sizes, priceRange: $priceRange, includeEstimateRange: $includeEstimateRange, includeUnknownPrices: $includeUnknownPrices, earliestCreatedYear: $createdAfterYear, latestCreatedYear: $createdBeforeYear, allowEmptyCreatedDates: $allowEmptyCreatedDates) {\n totalCount\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n\nfragment Pagination_pageCursors on PageCursors {\n around {\n cursor\n page\n isCurrent\n }\n first {\n cursor\n page\n isCurrent\n }\n last {\n cursor\n page\n isCurrent\n }\n previous {\n cursor\n page\n }\n}\n" } }; })(); diff --git a/src/__generated__/artistRoutes_OverviewQuery.graphql.ts b/src/__generated__/artistRoutes_OverviewQuery.graphql.ts index 9b76e4695f6..3fe6f8b243a 100644 --- a/src/__generated__/artistRoutes_OverviewQuery.graphql.ts +++ b/src/__generated__/artistRoutes_OverviewQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<379c6749231e5802de416e0c9fb0d071>> + * @generated SignedSource<<7049d80727b9e7a7a395a91f58d3cecd>> * @lightSyntaxTransform * @nogrep */ @@ -39,18 +39,39 @@ v1 = [ } ], v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "href", + "storageKey": null +}, +v3 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v5 = { "alias": null, "args": null, "kind": "ScalarField", "name": "__typename", "storageKey": null }, -v3 = { +v6 = { "kind": "Literal", "name": "first", "value": 0 }, -v4 = [ +v7 = [ { "alias": null, "args": null, @@ -58,14 +79,7 @@ v4 = [ "name": "totalCount", "storageKey": null } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; +]; return { "fragment": { "argumentDefinitions": (v0/*: any*/), @@ -111,7 +125,7 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "slug", "storageKey": null }, { @@ -121,6 +135,35 @@ return { "name": "name", "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, + (v2/*: any*/), { "alias": null, "args": [ @@ -139,19 +182,119 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "description", + "name": "title", "storageKey": null }, { "alias": null, "args": null, "kind": "ScalarField", - "name": "title", + "name": "description", "storageKey": null } ], "storageKey": "meta(page:\"ABOUT\")" }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v3/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v3/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "partnersConnection(first:10)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isInSeoExperiment", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null + }, { "alias": null, "args": null, @@ -160,26 +303,26 @@ return { "name": "insights", "plural": true, "selections": [ - (v2/*: any*/) + (v5/*: any*/) ], "storageKey": null }, { "alias": null, "args": [ - (v3/*: any*/) + (v6/*: any*/) ], "concreteType": "ArtistSeriesConnection", "kind": "LinkedField", "name": "artistSeriesConnection", "plural": false, - "selections": (v4/*: any*/), + "selections": (v7/*: any*/), "storageKey": "artistSeriesConnection(first:0)" }, { "alias": null, "args": [ - (v3/*: any*/), + (v6/*: any*/), { "kind": "Literal", "name": "status", @@ -190,7 +333,7 @@ return { "kind": "LinkedField", "name": "showsConnection", "plural": false, - "selections": (v4/*: any*/), + "selections": (v7/*: any*/), "storageKey": "showsConnection(first:0,status:\"running\")" }, { @@ -263,8 +406,8 @@ return { "name": "node", "plural": false, "selections": [ - (v2/*: any*/), - (v5/*: any*/) + (v5/*: any*/), + (v4/*: any*/) ], "storageKey": null } @@ -277,19 +420,19 @@ return { ], "storageKey": null }, - (v5/*: any*/) + (v4/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "7470edb26229de38dca64f3c84a42938", + "cacheID": "449ad686a6f86d22338535925851748f", "id": null, "metadata": {}, "name": "artistRoutes_OverviewQuery", "operationKind": "query", - "text": "query artistRoutes_OverviewQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistOverviewRoute_artist\n id\n }\n}\n\nfragment ArtistOverviewRoute_artist on Artist {\n internalID\n name\n meta(page: ABOUT) {\n description\n title\n }\n insights {\n __typename\n }\n artistSeriesConnection(first: 0) {\n totalCount\n }\n showsConnection(first: 0, status: \"running\") {\n totalCount\n }\n counts {\n artworks\n relatedArtists\n articles\n }\n related {\n genes(first: 1) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n }\n}\n" + "text": "query artistRoutes_OverviewQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistOverviewRoute_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistOverviewRoute_artist on Artist {\n ...ArtistMeta_artist\n internalID\n name\n meta(page: ABOUT) {\n description\n title\n }\n insights {\n __typename\n }\n artistSeriesConnection(first: 0) {\n totalCount\n }\n showsConnection(first: 0, status: \"running\") {\n totalCount\n }\n counts {\n artworks\n relatedArtists\n articles\n }\n related {\n genes(first: 1) {\n edges {\n node {\n __typename\n id\n }\n }\n }\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n" } }; })(); diff --git a/src/__generated__/artistRoutes_WorksForSaleQuery.graphql.ts b/src/__generated__/artistRoutes_WorksForSaleQuery.graphql.ts index c535a6f0963..6d815d24d0c 100644 --- a/src/__generated__/artistRoutes_WorksForSaleQuery.graphql.ts +++ b/src/__generated__/artistRoutes_WorksForSaleQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -37,7 +37,42 @@ v1 = [ "name": "id", "variableName": "artistID" } -]; +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "href", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "version", + "value": "large" + } +], +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; return { "fragment": { "argumentDefinitions": (v0/*: any*/), @@ -83,7 +118,7 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "internalID", + "name": "slug", "storageKey": null }, { @@ -97,59 +132,182 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "slug", + "name": "birthday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deathday", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "gender", "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "nationality", + "storageKey": null + }, + (v2/*: any*/), { "alias": null, "args": [ { "kind": "Literal", "name": "page", - "value": "ARTWORKS" + "value": "ABOUT" } ], "concreteType": "ArtistMeta", "kind": "LinkedField", "name": "meta", "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": "meta(page:\"ABOUT\")" + }, + { + "alias": null, + "args": null, + "concreteType": "Artwork", + "kind": "LinkedField", + "name": "coverArtwork", + "plural": false, "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "description", + "concreteType": "Image", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": (v5/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + }, + { + "alias": "large", + "args": (v5/*: any*/), + "kind": "ScalarField", + "name": "url", + "storageKey": "url(version:\"large\")" + } + ], "storageKey": null }, + (v6/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } + ], + "concreteType": "PartnerArtistConnection", + "kind": "LinkedField", + "name": "partnersConnection", + "plural": false, + "selections": [ { "alias": null, "args": null, - "kind": "ScalarField", - "name": "title", + "concreteType": "PartnerArtistEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Partner", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v6/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) + ], "storageKey": null } ], - "storageKey": "meta(page:\"ARTWORKS\")" + "storageKey": "partnersConnection(first:10)" }, { "alias": null, "args": null, "kind": "ScalarField", - "name": "id", + "name": "isInSeoExperiment", "storageKey": null - } + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "alternateNames", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "internalID", + "storageKey": null + }, + { + "alias": "artworksMeta", + "args": [ + { + "kind": "Literal", + "name": "page", + "value": "ARTWORKS" + } + ], + "concreteType": "ArtistMeta", + "kind": "LinkedField", + "name": "meta", + "plural": false, + "selections": [ + (v4/*: any*/), + (v3/*: any*/) + ], + "storageKey": "meta(page:\"ARTWORKS\")" + }, + (v6/*: any*/) ], "storageKey": null } ] }, "params": { - "cacheID": "2250cc00d4af643cbb49f405f6d8e890", + "cacheID": "aedbb67123cb7e7a95b460966493ebaa", "id": null, "metadata": {}, "name": "artistRoutes_WorksForSaleQuery", "operationKind": "query", - "text": "query artistRoutes_WorksForSaleQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistWorksForSaleRoute_artist\n id\n }\n}\n\nfragment ArtistWorksForSaleEmpty_artist on Artist {\n internalID\n name\n}\n\nfragment ArtistWorksForSaleRoute_artist on Artist {\n ...ArtistWorksForSaleEmpty_artist\n slug\n name\n meta(page: ARTWORKS) {\n description\n title\n }\n}\n" + "text": "query artistRoutes_WorksForSaleQuery(\n $artistID: String!\n) @cacheable {\n artist(id: $artistID) @principalField {\n ...ArtistWorksForSaleRoute_artist\n id\n }\n}\n\nfragment ArtistMeta_artist on Artist {\n ...ArtistStructuredData_artist\n slug\n name\n nationality\n birthday\n deathday\n href\n isInSeoExperiment\n meta(page: ABOUT) {\n description\n title\n }\n alternateNames\n coverArtwork {\n image {\n large: url(version: \"large\")\n }\n id\n }\n}\n\nfragment ArtistStructuredData_artist on Artist {\n slug\n name\n birthday\n deathday\n gender\n nationality\n href\n meta(page: ABOUT) {\n title\n description\n }\n coverArtwork {\n image {\n url(version: \"large\")\n }\n id\n }\n partnersConnection(first: 10) {\n edges {\n node {\n href\n id\n }\n id\n }\n }\n}\n\nfragment ArtistWorksForSaleEmpty_artist on Artist {\n internalID\n name\n}\n\nfragment ArtistWorksForSaleRoute_artist on Artist {\n ...ArtistMeta_artist\n ...ArtistWorksForSaleEmpty_artist\n slug\n name\n artworksMeta: meta(page: ARTWORKS) {\n description\n title\n }\n}\n" } }; })();