diff --git a/.babelrc b/.babelrc index 8874839372..5af0146feb 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,7 @@ { "presets": ["es2015", "stage-3", "react"], "plugins": [ - ["relay", { "compat": true, "schema": "data/schema.graphql" }], + ["relay", { "artifactDirectory": "./src/__generated__" }], [ "styled-components", { diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..d9a583b749 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +src/__generated__/*.graphql.ts linguist-generated \ No newline at end of file diff --git a/.gitignore b/.gitignore index 324e3c224b..7930a5ad58 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,17 @@ -node_modules +.DS_Store .awcache -.fusebox +.cache-loader/ .env -out* -dist -.DS_Store .storybook/.DS_Store -assets/reaction-force.js .storybook/manager.js -reaction-force.js -reaction-force.js.map -dist .vscode/cSpell.json -yarn-error.log +assets/reaction-force.js +dist +dist +node_modules npm-debug.log -__generated__ +out* package-lock.json +reaction-force.js +reaction-force.js.map +yarn-error.log \ No newline at end of file diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js index 04320cfead..cbd3523d81 100644 --- a/.storybook/webpack.config.js +++ b/.storybook/webpack.config.js @@ -3,12 +3,13 @@ const fs = require("fs") const path = require("path") const sharify = require("./sharify") +const ForkTsCheckerNotifierWebpackPlugin = require("fork-ts-checker-notifier-webpack-plugin") +const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin") + const webpack = require("webpack") const merge = require("webpack-merge") const genDefaultConfig = require("@storybook/react/dist/server/config/defaults/webpack.config.js") -const { CheckerPlugin } = require("awesome-typescript-loader") - env.load() /** @@ -26,7 +27,20 @@ const sharifyPath = sharify({ METAPHYSICS_ENDPOINT, }) -const plugins = [new CheckerPlugin()] +const plugins = [ + new ForkTsCheckerWebpackPlugin({ + formatter: "codeframe", + formatterOptions: "highlightCode", + tslint: false, + checkSyntacticErrors: true, + watch: ["./src"], + }), + new ForkTsCheckerNotifierWebpackPlugin({ + excludeWarnings: true, + skipFirstNotification: true, + }), +] + if (USER_ID && USER_ACCESS_TOKEN) { plugins.push( new webpack.DefinePlugin({ @@ -45,8 +59,11 @@ if (USER_ID && USER_ACCESS_TOKEN) { module.exports = (baseConfig, env) => { const config = genDefaultConfig(baseConfig, env) + // The progress plugin does not play nice with `concurrently`, so remove it. - config.plugins = config.plugins.filter(({ constructor }) => constructor.name !== "ProgressPlugin") + config.plugins = config.plugins.filter(({ constructor }) => { + return constructor.name !== "ProgressPlugin" + }) const merged = merge(config, { devtool: WEBPACK_DEVTOOL, @@ -62,19 +79,23 @@ module.exports = (baseConfig, env) => { module: { rules: [ { + test: /\.tsx?$/, exclude: [/node_modules/, /__tests__/], use: [ + { loader: "cache-loader" }, { - loader: "awesome-typescript-loader", + loader: "babel-loader", options: { - transpileOnly: true, // FIXME: This is only for the duration of fixing all build issues during Relay migration. - useBabel: true, - useCache: true, - useTranspileModule: true, // Supposedly faster, won’t work if/when we emit TS declaration files. + cacheDirectory: true, + }, + }, + { + loader: "ts-loader", + options: { + happyPackMode: true, }, }, ], - test: /\.tsx?$/, }, ], }, diff --git a/package.json b/package.json index 8efedcab1f..ec98cb5f95 100644 --- a/package.json +++ b/package.json @@ -23,18 +23,19 @@ "styled-components": "^3.1.5" }, "scripts": { - "compile": "env GRAPHQL_NO_NAME_WARNING=true yarn relay && gulp", + "compile": "yarn relay && gulp", "deploy-storybook": "yarn relay && NODE_ENV=production storybook-to-ghpages", "lint": "tslint -c tslint.json --project tsconfig.json", + "prepare": "patch-package", "precommit": "lint-staged", "prepublishOnly": "rm -rf dist && npm run compile", "prepush": "yarn run type-check", "prettier": "prettier", "prettier-project": "yarn run prettier-write 'src/**/*.{ts,tsx}'", "prettier-write": "yarn run prettier --write", - "relay": "env GRAPHQL_NO_NAME_WARNING=true relay-compiler --src ./src --schema data/schema.graphql --extensions ts tsx", + "relay": "relay-compiler --src ./src --schema data/schema.graphql --language typescript --artifactDirectory ./src/__generated__", "start": "yarn storybook", - "storybook": "node verify-node-version.js && concurrently --kill-others 'yarn relay --watch' 'env GRAPHQL_NO_NAME_WARNING=true start-storybook -p 9001'", + "storybook": "node verify-node-version.js && concurrently --kill-others 'yarn relay --watch' 'start-storybook -p 9001'", "sync-colors": "cd externals/elan && git fetch && git checkout origin/master && cp components/lib/variables/colors.json ../../data", "sync-schema": "cd externals/metaphysics && git fetch && git checkout origin/master && yarn install && npm run dump-schema -- ../../data", "sync-schema:localhost": "cd ../metaphysics && yarn dump-schema -- ../reaction/data", @@ -43,6 +44,13 @@ "type-check": "tsc --noEmit --pretty", "watch": "gulp watch" }, + "resolutions": { + "graphql": "^0.12.3", + "babel-plugin-relay": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/babel-plugin-relay-1.5.0-artsy.3.tgz", + "relay-compiler": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-compiler-1.5.0-artsy.3.tgz", + "relay-runtime": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-runtime-1.5.0-artsy.3.tgz", + "react-relay": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/react-relay-1.5.0-artsy.3.tgz" + }, "devDependencies": { "@playlyfe/gql": "^2.3.2", "@storybook/addon-options": "^3.2.1", @@ -55,24 +63,27 @@ "@types/prop-types": "^15.5.1", "@types/react": "^16.0.31", "@types/react-dom": "^16.0.3", - "@types/react-relay": "^1.3.1", + "@types/react-relay": "^1.3.3", "@types/react-slick": "^0.14.1", "@types/react-test-renderer": "^15.4.4", - "@types/relay-runtime": "^1.3.0", + "@types/relay-runtime": "^1.3.2", "@types/storybook__react": "^3.0.5", - "awesome-typescript-loader": "^3.1.2", "babel-core": "^6.24.0", - "babel-plugin-relay": "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/babel-plugin-relay-1.3.0-artsy.1.tgz", + "babel-loader": "^7.1.2", + "babel-plugin-relay": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/babel-plugin-relay-1.5.0-artsy.3.tgz", "babel-plugin-styled-components": "^1.4.0", "babel-preset-es2015": "^6.22.0", "babel-preset-react": "^6.22.0", "babel-preset-stage-3": "^6.22.0", "babel-template": "^6.2.0", "babel-types": "^6.2.0", + "cache-loader": "^1.2.0", "concurrently": "^3.5.0", "dotenv": "^4.0.0", "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.1", + "fork-ts-checker-notifier-webpack-plugin": "^0.2.0", + "fork-ts-checker-webpack-plugin": "^0.3.0", "graphql-config-parser": "^1.2.1", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", @@ -86,14 +97,18 @@ "jest": "^22.1.4", "jest-styled-components": "^4.11.0-1", "lint-staged": "^4.0.0", + "patch-package": "^5.0.0", + "postinstall-prepare": "^1.0.1", "prettier": "^1.7.4", "raf": "^3.4.0", "react": "^16.2.0", "react-addons-test-utils": "^15.5.1", "react-dom": "^16.2.0", "react-test-renderer": "^16.0.0", - "relay-compiler": "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-compiler-1.3.0-artsy.1.tgz", + "relay-compiler": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-compiler-1.5.0-artsy.3.tgz", + "relay-compiler-language-typescript": "^0.9.0", "styled-components": "^3.1.5", + "ts-loader": "^3.5.0", "tslint": "^4.5.0", "tslint-config-prettier": "^1.1.0", "tslint-react": "^2.4.0", @@ -113,7 +128,7 @@ "react-css-transition-replace": "^3.0.2", "react-lines-ellipsis": "^0.8.0", "react-markdown": "^2.5.0", - "react-relay": "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/react-relay-1.3.0-artsy.1.tgz", + "react-relay": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/react-relay-1.5.0-artsy.3.tgz", "react-responsive-decorator": "^0.0.1", "react-sizeme": "^2.3.2", "react-slick": "^0.14.11", @@ -121,13 +136,10 @@ "react-tracking": "^4.2.1", "react-url-query": "^1.1.4", "react-waypoint": "^7.3.3", - "relay-runtime": "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-runtime-artsy.1.tgz", + "relay-runtime": "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-runtime-1.5.0-artsy.3.tgz", "sharify": "^0.1.6", "superagent": "^3.6.3" }, - "graphql": { - "file": "data/schema.json" - }, "prettier": { "semi": false, "singleQuote": false, diff --git a/patches/graphql+0.12.3.patch b/patches/graphql+0.12.3.patch new file mode 100644 index 0000000000..481901bbd7 --- /dev/null +++ b/patches/graphql+0.12.3.patch @@ -0,0 +1,24 @@ +patch-package +--- a/node_modules/graphql/utilities/assertValidName.js ++++ b/node_modules/graphql/utilities/assertValidName.js +@@ -41,13 +41,13 @@ function assertValidName(name) { + */ + function isValidNameError(name, node) { + !(typeof name === 'string') ? (0, _invariant2.default)(0, 'Expected string') : void 0; +- if (name.length > 1 && name[0] === '_' && name[1] === '_' && +- // Note: this special case is not part of the spec and exists only to +- // support legacy server configurations. Do not rely on this special case +- // as it may be removed at any time. +- name !== '__configs__') { +- return new _GraphQLError.GraphQLError('Name "' + name + '" must not begin with "__", which is reserved by ' + 'GraphQL introspection.', node); +- } ++ // if (name.length > 1 && name[0] === '_' && name[1] === '_' && ++ // // Note: this special case is not part of the spec and exists only to ++ // // support legacy server configurations. Do not rely on this special case ++ // // as it may be removed at any time. ++ // name !== '__configs__') { ++ // return new _GraphQLError.GraphQLError('Name "' + name + '" must not begin with "__", which is reserved by ' + 'GraphQL introspection.', node); ++ // } + if (!NAME_RX.test(name)) { + return new _GraphQLError.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "' + name + '" does not.', node); + } diff --git a/src/Components/Artist/MarketInsights/MarketInsights.tsx b/src/Components/Artist/MarketInsights/MarketInsights.tsx index ba943a1c4d..edb2591315 100644 --- a/src/Components/Artist/MarketInsights/MarketInsights.tsx +++ b/src/Components/Artist/MarketInsights/MarketInsights.tsx @@ -28,7 +28,9 @@ const TooltipContainer = styled.div` font-size: 12px; ` -export interface MarketInsightsProps extends RelayProps, React.HTMLProps {} +export interface MarketInsightsProps + extends RelayProps, + React.HTMLProps {} const Categories = { "blue-chip": "Blue Chip", @@ -37,9 +39,12 @@ const Categories = { } const CategoryTooltipContent = { - "blue-chip": "Blue chip galleries have multiple locations internationally and participate in major art fairs.", - "top-established": "Top established galleries have been industry leaders in their region or specialty for decades.", - "top-emerging": "Top emerging dealers participate in curated, up-and-coming art fairs.", + "blue-chip": + "Blue chip galleries have multiple locations internationally and participate in major art fairs.", + "top-established": + "Top established galleries have been industry leaders in their region or specialty for decades.", + "top-emerging": + "Top emerging dealers participate in curated, up-and-coming art fairs.", } export class MarketInsights extends React.Component { @@ -53,7 +58,10 @@ export class MarketInsights extends React.Component { introSentence = "Represented by a " + category.toLowerCase() + " gallery" } - const galleryList = map(partnerList, ({ node: partner }) => partner.name).join(", ") + const galleryList = map( + partnerList, + ({ node: partner }) => partner.name + ).join(", ") return (
@@ -80,7 +88,11 @@ export class MarketInsights extends React.Component { } // Is there an auction highlights section? - if (auctionResults && auctionResults.edges && auctionResults.edges.length > 0) { + if ( + auctionResults && + auctionResults.edges && + auctionResults.edges.length > 0 + ) { return true } @@ -115,7 +127,12 @@ export class MarketInsights extends React.Component { {Object.keys(groupedByCategory).map(categorySlug => { return (
-
{this.renderGalleryCategory(categorySlug, groupedByCategory[categorySlug])}
+
+ {this.renderGalleryCategory( + categorySlug, + groupedByCategory[categorySlug] + )} +

) @@ -126,7 +143,10 @@ export class MarketInsights extends React.Component { } renderAuctionHighlight() { - if (!this.props.artist.auctionResults || this.props.artist.auctionResults.edges.length < 1) { + if ( + !this.props.artist.auctionResults || + this.props.artist.auctionResults.edges.length < 1 + ) { return null } const topAuctionResult = this.props.artist.auctionResults.edges[0].node @@ -188,10 +208,13 @@ export class MarketInsights extends React.Component { export default createFragmentContainer( MarketInsights, - graphql.experimental` + graphql` fragment MarketInsights_artist on Artist @argumentDefinitions( - partner_category: { type: "[String]", defaultValue: ["blue-chip", "top-established", "top-emerging"] } + partner_category: { + type: "[String]" + defaultValue: ["blue-chip", "top-established", "top-emerging"] + } ) { _id collections @@ -213,7 +236,11 @@ export default createFragmentContainer( } } } - auctionResults(recordsTrusted: true, first: 1, sort: PRICE_AND_DATE_DESC) { + auctionResults( + recordsTrusted: true + first: 1 + sort: PRICE_AND_DATE_DESC + ) { edges { node { organization diff --git a/src/Components/Gene/Artists.tsx b/src/Components/Gene/Artists.tsx index 57e32335f6..b0f4ee2d69 100644 --- a/src/Components/Gene/Artists.tsx +++ b/src/Components/Gene/Artists.tsx @@ -1,6 +1,10 @@ import * as React from "react" import { ConnectionData } from "react-relay" -import { createPaginationContainer, graphql, RelayPaginationProp } from "react-relay" +import { + createPaginationContainer, + graphql, + RelayPaginationProp, +} from "react-relay" import styled from "styled-components" import * as fonts from "../../Assets/Fonts" @@ -86,7 +90,12 @@ export class Artists extends React.Component { } renderForSaleToggle() { - return + return ( + + ) } renderArtistFilter() { @@ -112,7 +121,9 @@ export class Artists extends React.Component { ) @@ -128,7 +139,9 @@ export class Artists extends React.Component { const loadMoreButton = ( - this.loadMoreArtists()}>Load More + this.loadMoreArtists()}> + Load More + ) @@ -141,8 +154,13 @@ export class Artists extends React.Component { {artistRows} - {this.state.loading ? : ""} - {artists && artists.pageInfo.hasNextPage && !this.state.loading && loadMoreButton} + + {this.state.loading ? : ""} + + {artists && + artists.pageInfo.hasNextPage && + !this.state.loading && + loadMoreButton}
) @@ -152,15 +170,19 @@ export class Artists extends React.Component { export default createPaginationContainer( Artists, { - gene: graphql.experimental` + gene: graphql` fragment Artists_gene on Gene @argumentDefinitions( - aggregations: { type: "[ArtworkAggregation]", defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] } + aggregations: { + type: "[ArtworkAggregation]" + defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] + } count: { type: "Int", defaultValue: 10 } cursor: { type: "String", defaultValue: "" } ) { __id - artists: artists_connection(first: $count, after: $cursor) @connection(key: "Artists_artists") { + artists: artists_connection(first: $count, after: $cursor) + @connection(key: "Artists_artists") { pageInfo { hasNextPage } @@ -206,10 +228,20 @@ export default createPaginationContainer( geneNodeID: props.gene.__id, } }, - query: graphql.experimental` - query ArtistsQuery($geneNodeID: ID!, $count: Int!, $cursor: String, $aggregations: [ArtworkAggregation]) { + query: graphql` + query ArtistsQuery( + $geneNodeID: ID! + $count: Int! + $cursor: String + $aggregations: [ArtworkAggregation] + ) { node(__id: $geneNodeID) { - ...Artists_gene @arguments(count: $count, cursor: $cursor, aggregations: $aggregations) + ...Artists_gene + @arguments( + count: $count + cursor: $cursor + aggregations: $aggregations + ) } } `, diff --git a/src/Components/Gene/GeneArtworks.tsx b/src/Components/Gene/GeneArtworks.tsx index 277e3a3db7..a73be202bb 100644 --- a/src/Components/Gene/GeneArtworks.tsx +++ b/src/Components/Gene/GeneArtworks.tsx @@ -1,5 +1,9 @@ import * as React from "react" -import { createFragmentContainer, graphql, RelayPaginationProp } from "react-relay" +import { + createFragmentContainer, + graphql, + RelayPaginationProp, +} from "react-relay" import styled from "styled-components" import { ButtonState } from "../Buttons/Default" @@ -62,7 +66,9 @@ export class GeneArtworks extends React.Component { ) @@ -73,7 +79,10 @@ export class GeneArtworks extends React.Component { return ( By Artists: - By Work: @@ -82,7 +91,12 @@ export class GeneArtworks extends React.Component { } renderForSaleToggle() { - return + return ( + + ) } renderArtworks() { @@ -91,7 +105,9 @@ export class GeneArtworks extends React.Component { { val: "-year", name: "Artwork Year (desc.)" }, { val: "year", name: "Artwork Year (asc.)" }, ] - const selectedSort = pulldownOptions.find(sort => sort.val === this.props.sort) + const selectedSort = pulldownOptions.find( + sort => sort.val === this.props.sort + ) return (
@@ -113,7 +129,10 @@ export class GeneArtworks extends React.Component { onChange={this.props.onSortSelected} /> - +
) } @@ -133,12 +152,15 @@ export class GeneArtworks extends React.Component { } export default createFragmentContainer(GeneArtworks, { - gene: graphql.experimental` + gene: graphql` fragment GeneArtworks_gene on Gene @argumentDefinitions( for_sale: { type: "Boolean" } medium: { type: "String", defaultValue: "*" } - aggregations: { type: "[ArtworkAggregation]", defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] } + aggregations: { + type: "[ArtworkAggregation]" + defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] + } price_range: { type: "String", defaultValue: "*" } dimension_range: { type: "String", defaultValue: "*" } ) { diff --git a/src/Components/Gene/GeneArtworksContent.tsx b/src/Components/Gene/GeneArtworksContent.tsx index d53ba9544c..36ebcdf388 100644 --- a/src/Components/Gene/GeneArtworksContent.tsx +++ b/src/Components/Gene/GeneArtworksContent.tsx @@ -1,5 +1,10 @@ import * as React from "react" -import { ConnectionData, createPaginationContainer, graphql, RelayPaginationProp } from "react-relay" +import { + ConnectionData, + createPaginationContainer, + graphql, + RelayPaginationProp, +} from "react-relay" import styled from "styled-components" import ArtworkGrid from "../ArtworkGrid" import Spinner from "../Spinner" @@ -38,9 +43,13 @@ export class GeneArtworksContent extends React.Component { console.error(error) } const newLength = this.props.filtered_artworks.artworks.edges.length - const newHasMore = this.props.filtered_artworks.artworks.pageInfo.hasNextPage + const newHasMore = this.props.filtered_artworks.artworks.pageInfo + .hasNextPage if (newLength - origLength < PageSize && newHasMore) { - console.error(`Total count inconsistent with actual records returned for gene: ${this.props.geneID}`) + console.error( + `Total count inconsistent with actual records returned for gene: ${this + .props.geneID}` + ) this.finishedPaginatingWithError = true } this.setState({ loading: false }) @@ -58,7 +67,9 @@ export class GeneArtworksContent extends React.Component { itemMargin={40} onLoadMore={() => this.loadMoreArtworks()} /> - {this.state.loading ? : ""} + + {this.state.loading ? : ""} + ) } @@ -67,12 +78,18 @@ export class GeneArtworksContent extends React.Component { export default createPaginationContainer( GeneArtworksContent, { - filtered_artworks: graphql.experimental` + filtered_artworks: graphql` fragment GeneArtworksContent_filtered_artworks on FilterArtworks - @argumentDefinitions(count: { type: "Int", defaultValue: 10 }, cursor: { type: "String", defaultValue: "" }) { + @argumentDefinitions( + count: { type: "Int", defaultValue: 10 } + cursor: { type: "String", defaultValue: "" } + ) { __id - artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) - @connection(key: "GeneArtworksContent_filtered_artworks") { + artworks: artworks_connection( + first: $count + after: $cursor + sort: $sort + ) @connection(key: "GeneArtworksContent_filtered_artworks") { pageInfo { hasNextPage endCursor @@ -108,10 +125,16 @@ export default createPaginationContainer( filteredArtworksNodeID: props.filtered_artworks.__id, } }, - query: graphql.experimental` - query GeneArtworksContentQuery($filteredArtworksNodeID: ID!, $count: Int!, $cursor: String, $sort: String) { + query: graphql` + query GeneArtworksContentQuery( + $filteredArtworksNodeID: ID! + $count: Int! + $cursor: String + $sort: String + ) { node(__id: $filteredArtworksNodeID) { - ...GeneArtworksContent_filtered_artworks @arguments(count: $count, cursor: $cursor) + ...GeneArtworksContent_filtered_artworks + @arguments(count: $count, cursor: $cursor) } } `, diff --git a/src/Components/Gene/index.tsx b/src/Components/Gene/index.tsx index 82cc718a9d..b18b1f3ad8 100644 --- a/src/Components/Gene/index.tsx +++ b/src/Components/Gene/index.tsx @@ -38,7 +38,12 @@ interface State extends Filters { class GeneContents extends React.Component { constructor(props: Props) { super(props) - const { for_sale, price_range, dimension_range, medium } = this.props.filters + const { + for_sale, + price_range, + dimension_range, + medium, + } = this.props.filters this.state = { for_sale: for_sale || null, medium: medium || "*", @@ -50,7 +55,14 @@ class GeneContents extends React.Component { } handleStateChange = () => { - const { for_sale, medium, price_range, dimension_range, sort, mode } = this.state + const { + for_sale, + medium, + price_range, + dimension_range, + sort, + mode, + } = this.state const filters = { for_sale, medium, @@ -144,7 +156,7 @@ class GeneContents extends React.Component { return ( { ) @@ -58,7 +64,12 @@ export class TagArtworks extends React.Component { } renderForSaleToggle() { - return + return ( + + ) } renderArtworks() { @@ -67,7 +78,9 @@ export class TagArtworks extends React.Component { { val: "-year", name: "Artwork Year (desc.)" }, { val: "year", name: "Artwork Year (asc.)" }, ] - const selectedSort = pulldownOptions.find(sort => sort.val === this.props.sort) + const selectedSort = pulldownOptions.find( + sort => sort.val === this.props.sort + ) return (
@@ -89,7 +102,10 @@ export class TagArtworks extends React.Component { onChange={this.props.onSortSelected} /> - +
) } @@ -108,12 +124,15 @@ export class TagArtworks extends React.Component { } export default createFragmentContainer(TagArtworks, { - tag: graphql.experimental` + tag: graphql` fragment TagArtworks_tag on Tag @argumentDefinitions( for_sale: { type: "Boolean" } medium: { type: "String", defaultValue: "*" } - aggregations: { type: "[ArtworkAggregation]", defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] } + aggregations: { + type: "[ArtworkAggregation]" + defaultValue: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE] + } price_range: { type: "String", defaultValue: "*" } dimension_range: { type: "String", defaultValue: "*" } ) { diff --git a/src/Components/Tag/TagArtworksContent.tsx b/src/Components/Tag/TagArtworksContent.tsx index 6fadd55504..fd121d3727 100644 --- a/src/Components/Tag/TagArtworksContent.tsx +++ b/src/Components/Tag/TagArtworksContent.tsx @@ -1,5 +1,10 @@ import * as React from "react" -import { ConnectionData, createPaginationContainer, graphql, RelayPaginationProp } from "react-relay" +import { + ConnectionData, + createPaginationContainer, + graphql, + RelayPaginationProp, +} from "react-relay" import styled from "styled-components" import ArtworkGrid from "../ArtworkGrid" import Spinner from "../Spinner" @@ -38,9 +43,13 @@ export class TagArtworksContent extends React.Component { console.error(error) } const newLength = this.props.filtered_artworks.artworks.edges.length - const newHasMore = this.props.filtered_artworks.artworks.pageInfo.hasNextPage + const newHasMore = this.props.filtered_artworks.artworks.pageInfo + .hasNextPage if (newLength - origLength < PageSize && newHasMore) { - console.error(`Total count inconsistent with actual records returned for tag: ${this.props.tagID}`) + console.error( + `Total count inconsistent with actual records returned for tag: ${this + .props.tagID}` + ) this.finishedPaginatingWithError = true } this.setState({ loading: false }) @@ -58,7 +67,9 @@ export class TagArtworksContent extends React.Component { itemMargin={40} onLoadMore={() => this.loadMoreArtworks()} /> - {this.state.loading ? : ""} + + {this.state.loading ? : ""} + ) } @@ -67,12 +78,18 @@ export class TagArtworksContent extends React.Component { export default createPaginationContainer( TagArtworksContent, { - filtered_artworks: graphql.experimental` + filtered_artworks: graphql` fragment TagArtworksContent_filtered_artworks on FilterArtworks - @argumentDefinitions(count: { type: "Int", defaultValue: 10 }, cursor: { type: "String", defaultValue: "" }) { + @argumentDefinitions( + count: { type: "Int", defaultValue: 10 } + cursor: { type: "String", defaultValue: "" } + ) { __id - artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) - @connection(key: "TagArtworksContent_filtered_artworks") { + artworks: artworks_connection( + first: $count + after: $cursor + sort: $sort + ) @connection(key: "TagArtworksContent_filtered_artworks") { pageInfo { hasNextPage endCursor @@ -108,10 +125,16 @@ export default createPaginationContainer( filteredArtworksNodeID: props.filtered_artworks.__id, } }, - query: graphql.experimental` - query TagArtworksContentQuery($filteredArtworksNodeID: ID!, $count: Int!, $cursor: String, $sort: String) { + query: graphql` + query TagArtworksContentQuery( + $filteredArtworksNodeID: ID! + $count: Int! + $cursor: String + $sort: String + ) { node(__id: $filteredArtworksNodeID) { - ...TagArtworksContent_filtered_artworks @arguments(count: $count, cursor: $cursor) + ...TagArtworksContent_filtered_artworks + @arguments(count: $count, cursor: $cursor) } } `, diff --git a/src/Components/Tag/index.tsx b/src/Components/Tag/index.tsx index 52a7af89ac..2dcf895e7f 100644 --- a/src/Components/Tag/index.tsx +++ b/src/Components/Tag/index.tsx @@ -32,7 +32,12 @@ interface State extends Filters { class TagContents extends React.Component { constructor(props: Props) { super(props) - const { for_sale, price_range, dimension_range, medium } = this.props.filters + const { + for_sale, + price_range, + dimension_range, + medium, + } = this.props.filters this.state = { for_sale: for_sale || null, medium: medium || "*", @@ -95,7 +100,7 @@ class TagContents extends React.Component { return ( ; +}; +export type ArtistSearchResultsArtistMutationResponse = { + readonly followArtist: ({ + readonly popular_artists: ({ + readonly artists: ReadonlyArray<({ + readonly id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + readonly artist: ({ + readonly __id: string; + readonly related: ({ + readonly suggested: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + }) | null; + }) | null; + }) | null; +}; + + + +/* +mutation ArtistSearchResultsArtistMutation( + $input: FollowArtistInput! + $excludedArtistIds: [String]! +) { + followArtist(input: $input) { + popular_artists(size: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) { + artists { + id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + artist { + __id + related { + suggested(first: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) { + edges { + node { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + } + } + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "FollowArtistInput!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "excludedArtistIds", + "type": "[String]!", + "defaultValue": null + } +], +v1 = { + "kind": "Variable", + "name": "exclude_artist_ids", + "variableName": "excludedArtistIds", + "type": "[String]" +}, +v2 = { + "kind": "Literal", + "name": "exclude_followed_artists", + "value": true, + "type": "Boolean" +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] +}, +v7 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "followArtist", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "FollowArtistInput!" + } + ], + "concreteType": "FollowArtistPayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "popular_artists", + "storageKey": null, + "args": [ + v1, + v2, + { + "kind": "Literal", + "name": "size", + "value": 1, + "type": "Int" + } + ], + "concreteType": "PopularArtists", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": true, + "selections": [ + v3, + v4, + v5, + v6 + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v4, + { + "kind": "LinkedField", + "alias": null, + "name": "related", + "storageKey": null, + "args": null, + "concreteType": "RelatedArtists", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "suggested", + "storageKey": null, + "args": [ + v1, + v2, + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + } + ], + "concreteType": "ArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + v4, + v5, + v6 + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "ArtistSearchResultsArtistMutation", + "id": null, + "text": "mutation ArtistSearchResultsArtistMutation(\n $input: FollowArtistInput!\n $excludedArtistIds: [String]!\n) {\n followArtist(input: $input) {\n popular_artists(size: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) {\n artists {\n id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n artist {\n __id\n related {\n suggested(first: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) {\n edges {\n node {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n }\n }\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtistSearchResultsArtistMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v7 + }, + "operation": { + "kind": "Operation", + "name": "ArtistSearchResultsArtistMutation", + "argumentDefinitions": v0, + "selections": v7 + } +}; +})(); +(node as any).hash = '080d3727d7b4e840a6c0259874734f9e'; +export default node; diff --git a/src/__generated__/ArtistSearchResultsContent_viewer.graphql.ts b/src/__generated__/ArtistSearchResultsContent_viewer.graphql.ts new file mode 100644 index 0000000000..ca21f40b28 --- /dev/null +++ b/src/__generated__/ArtistSearchResultsContent_viewer.graphql.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtistSearchResultsContent_viewer = { + readonly match_artist: ReadonlyArray<({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "ArtistSearchResultsContent_viewer", + "type": "Viewer", + "metadata": null, + "argumentDefinitions": [ + { + "kind": "RootArgument", + "name": "term", + "type": "String!" + } + ], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "match_artist", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "term", + "variableName": "term", + "type": "String!" + } + ], + "concreteType": "Artist", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] +}; +(node as any).hash = 'bfdccfa207bba7b1c084c6c0b44c4ffe'; +export default node; diff --git a/src/__generated__/ArtistSearchResultsQuery.graphql.ts b/src/__generated__/ArtistSearchResultsQuery.graphql.ts new file mode 100644 index 0000000000..276d107072 --- /dev/null +++ b/src/__generated__/ArtistSearchResultsQuery.graphql.ts @@ -0,0 +1,197 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type ArtistSearchResultsQueryVariables = { + readonly term: string; +}; +export type ArtistSearchResultsQueryResponse = { + readonly viewer: ({ + }) | null; +}; + + + +/* +query ArtistSearchResultsQuery( + $term: String! +) { + viewer { + ...ArtistSearchResultsContent_viewer + } +} + +fragment ArtistSearchResultsContent_viewer on Viewer { + match_artist(term: $term) { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "term", + "type": "String!", + "defaultValue": null + } +]; +return { + "kind": "Request", + "operationKind": "query", + "name": "ArtistSearchResultsQuery", + "id": null, + "text": "query ArtistSearchResultsQuery(\n $term: String!\n) {\n viewer {\n ...ArtistSearchResultsContent_viewer\n }\n}\n\nfragment ArtistSearchResultsContent_viewer on Viewer {\n match_artist(term: $term) {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtistSearchResultsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": "viewer", + "name": "__viewer_viewer", + "storageKey": null, + "args": null, + "concreteType": "Viewer", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "ArtistSearchResultsContent_viewer", + "args": null + } + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "ArtistSearchResultsQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "viewer", + "storageKey": null, + "args": null, + "concreteType": "Viewer", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "match_artist", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "term", + "variableName": "term", + "type": "String!" + } + ], + "concreteType": "Artist", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": null, + "name": "viewer", + "args": null, + "handle": "viewer", + "key": "", + "filters": null + } + ] + } +}; +})(); +(node as any).hash = '98c64d4adbf4a0b483eb75d8eb196853'; +export default node; diff --git a/src/__generated__/ArtistsQuery.graphql.ts b/src/__generated__/ArtistsQuery.graphql.ts new file mode 100644 index 0000000000..4af7f76338 --- /dev/null +++ b/src/__generated__/ArtistsQuery.graphql.ts @@ -0,0 +1,826 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type ArtworkAggregation = "COLOR" | "DIMENSION_RANGE" | "FOLLOWED_ARTISTS" | "GALLERY" | "INSTITUTION" | "MAJOR_PERIOD" | "MEDIUM" | "MERCHANDISABLE_ARTISTS" | "PARTNER_CITY" | "PERIOD" | "PRICE_RANGE" | "TOTAL" | "%future added value"; +export type ArtistsQueryVariables = { + readonly geneNodeID: string; + readonly count: number; + readonly cursor?: string | null; + readonly aggregations?: ReadonlyArray | null; +}; +export type ArtistsQueryResponse = { + readonly node: ({ + }) | null; +}; + + + +/* +query ArtistsQuery( + $geneNodeID: ID! + $count: Int! + $cursor: String + $aggregations: [ArtworkAggregation] +) { + node(__id: $geneNodeID) { + __typename + ...Artists_gene_18MJUj + __id + } +} + +fragment Artists_gene_18MJUj on Gene { + __id + artists: artists_connection(first: $count, after: $cursor) { + pageInfo { + hasNextPage + endCursor + } + edges { + node { + __id + ...ArtistRow_artist + __typename + } + cursor + } + } + filter_aggregations: filtered_artworks(aggregations: $aggregations, size: 0, include_medium_filter_in_aggregation: true) { + ...TotalCount_filter_artworks + aggregations { + slice + ...Dropdown_aggregation + } + __id + } +} + +fragment ArtistRow_artist on Artist { + name + href + ...Follow_artist + artworks: artworks_connection(first: 6) { + ...Fillwidth_artworks + } + __id +} + +fragment TotalCount_filter_artworks on FilterArtworks { + counts { + total + } + __id +} + +fragment Dropdown_aggregation on ArtworksAggregationResults { + slice + counts { + name + id + count + __id + } +} + +fragment Follow_artist on Artist { + __id + id + is_followed +} + +fragment Fillwidth_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...FillwidthItem_artwork + } + } +} + +fragment FillwidthItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "geneNodeID", + "type": "ID!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "count", + "type": "Int!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "aggregations", + "type": "[ArtworkAggregation]", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "__id", + "variableName": "geneNodeID", + "type": "ID!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v7 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v8 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "ArtistsQuery", + "id": null, + "text": "query ArtistsQuery(\n $geneNodeID: ID!\n $count: Int!\n $cursor: String\n $aggregations: [ArtworkAggregation]\n) {\n node(__id: $geneNodeID) {\n __typename\n ...Artists_gene_18MJUj\n __id\n }\n}\n\nfragment Artists_gene_18MJUj on Gene {\n __id\n artists: artists_connection(first: $count, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n __id\n ...ArtistRow_artist\n __typename\n }\n cursor\n }\n }\n filter_aggregations: filtered_artworks(aggregations: $aggregations, size: 0, include_medium_filter_in_aggregation: true) {\n ...TotalCount_filter_artworks\n aggregations {\n slice\n ...Dropdown_aggregation\n }\n __id\n }\n}\n\nfragment ArtistRow_artist on Artist {\n name\n href\n ...Follow_artist\n artworks: artworks_connection(first: 6) {\n ...Fillwidth_artworks\n }\n __id\n}\n\nfragment TotalCount_filter_artworks on FilterArtworks {\n counts {\n total\n }\n __id\n}\n\nfragment Dropdown_aggregation on ArtworksAggregationResults {\n slice\n counts {\n name\n id\n count\n __id\n }\n}\n\nfragment Follow_artist on Artist {\n __id\n id\n is_followed\n}\n\nfragment Fillwidth_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...FillwidthItem_artwork\n }\n }\n}\n\nfragment FillwidthItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtistsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Artists_gene", + "args": [ + { + "kind": "Variable", + "name": "aggregations", + "variableName": "aggregations", + "type": null + }, + { + "kind": "Variable", + "name": "count", + "variableName": "count", + "type": null + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor", + "type": null + } + ] + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "ArtistsQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + v3, + v2, + { + "kind": "InlineFragment", + "type": "Gene", + "selections": [ + { + "kind": "LinkedField", + "alias": "artists", + "name": "artists_connection", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + } + ], + "concreteType": "ArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v2, + v4, + v5, + v6, + { + "kind": "ScalarField", + "alias": null, + "name": "is_followed", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:6)", + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 6, + "type": "Int" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v5, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v7, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v5, + v4 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v7, + "concreteType": "Partner", + "plural": false, + "selections": [ + v4, + v5, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v8, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v8 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + v6, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artists", + "name": "artists_connection", + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + } + ], + "handle": "connection", + "key": "Artists_artists", + "filters": null + }, + { + "kind": "LinkedField", + "alias": "filter_aggregations", + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "aggregations", + "variableName": "aggregations", + "type": "[ArtworkAggregation]" + }, + { + "kind": "Literal", + "name": "include_medium_filter_in_aggregation", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "FilterArtworksCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "total", + "args": null, + "storageKey": null + } + ] + }, + v2, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + v4, + v6, + { + "kind": "ScalarField", + "alias": null, + "name": "count", + "args": null, + "storageKey": null + }, + v2 + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = 'd9a3bfe133d142f393f301f23f2665cf'; +export default node; diff --git a/src/__generated__/Artists_gene.graphql.ts b/src/__generated__/Artists_gene.graphql.ts new file mode 100644 index 0000000000..ef6b203ab9 --- /dev/null +++ b/src/__generated__/Artists_gene.graphql.ts @@ -0,0 +1,218 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtworkAggregation = "COLOR" | "DIMENSION_RANGE" | "FOLLOWED_ARTISTS" | "GALLERY" | "INSTITUTION" | "MAJOR_PERIOD" | "MEDIUM" | "MERCHANDISABLE_ARTISTS" | "PARTNER_CITY" | "PERIOD" | "PRICE_RANGE" | "TOTAL" | "%future added value"; +export type Artists_gene = { + readonly __id: string; + readonly artists: ({ + readonly pageInfo: { + readonly hasNextPage: boolean; + }; + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly __id: string; + }) | null; + }) | null> | null; + }) | null; + readonly filter_aggregations: ({ + readonly aggregations: ReadonlyArray<({ + readonly slice: ArtworkAggregation | null; + }) | null> | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "Artists_gene", + "type": "Gene", + "metadata": { + "connection": [ + { + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": [ + "artists" + ] + } + ] + }, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "aggregations", + "type": "[ArtworkAggregation]", + "defaultValue": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ] + }, + { + "kind": "LocalArgument", + "name": "count", + "type": "Int", + "defaultValue": 10 + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": "" + } + ], + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": "artists", + "name": "__Artists_artists_connection", + "storageKey": null, + "args": null, + "concreteType": "ArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v0, + { + "kind": "FragmentSpread", + "name": "ArtistRow_artist", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": "filter_aggregations", + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "aggregations", + "variableName": "aggregations", + "type": "[ArtworkAggregation]" + }, + { + "kind": "Literal", + "name": "include_medium_filter_in_aggregation", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "TotalCount_filter_artworks", + "args": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "FragmentSpread", + "name": "Dropdown_aggregation", + "args": null + } + ] + }, + v0 + ] + } + ] +}; +})(); +(node as any).hash = 'c21a21d79040bd329707d9e8f2d6f805'; +export default node; diff --git a/src/__generated__/ArtworkGridQuery.graphql.ts b/src/__generated__/ArtworkGridQuery.graphql.ts new file mode 100644 index 0000000000..3b68869923 --- /dev/null +++ b/src/__generated__/ArtworkGridQuery.graphql.ts @@ -0,0 +1,523 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type ArtworkGridQueryVariables = { + readonly artistID: string; +}; +export type ArtworkGridQueryResponse = { + readonly artist: ({ + readonly artworks: ({ + }) | null; + }) | null; +}; + + + +/* +query ArtworkGridQuery( + $artistID: String! +) { + artist(id: $artistID) { + artworks: artworks_connection(first: 10) { + ...ArtworkGrid_artworks + } + __id + } +} + +fragment ArtworkGrid_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...GridItem_artwork + } + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artistID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artistID", + "type": "String!" + } +], +v2 = [ + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + } +], +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "ArtworkGridQuery", + "id": null, + "text": "query ArtworkGridQuery(\n $artistID: String!\n) {\n artist(id: $artistID) {\n artworks: artworks_connection(first: 10) {\n ...ArtworkGrid_artworks\n }\n __id\n }\n}\n\nfragment ArtworkGrid_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...GridItem_artwork\n }\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtworkGridQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:10)", + "args": v2, + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "ArtworkGrid_artworks", + "args": null + } + ] + }, + v3 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "ArtworkGridQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:10)", + "args": v2, + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v3, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v3, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + }, + v3 + ] + } + ] + } +}; +})(); +(node as any).hash = 'dfb39d01bbf6e28f860b1b4a715b3323'; +export default node; diff --git a/src/__generated__/ArtworkGrid_artworks.graphql.ts b/src/__generated__/ArtworkGrid_artworks.graphql.ts new file mode 100644 index 0000000000..438ac7f064 --- /dev/null +++ b/src/__generated__/ArtworkGrid_artworks.graphql.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtworkGrid_artworks = { + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly __id: string; + readonly image: ({ + readonly aspect_ratio: number | null; + }) | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "ArtworkGrid_artworks", + "type": "ArtworkConnection", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "GridItem_artwork", + "args": null + } + ] + } + ] + } + ] +}; +(node as any).hash = '54946907e0dd09ddb3b063c64b517438'; +export default node; diff --git a/src/__generated__/ArtworkMetadataQuery.graphql.ts b/src/__generated__/ArtworkMetadataQuery.graphql.ts new file mode 100644 index 0000000000..56576702a9 --- /dev/null +++ b/src/__generated__/ArtworkMetadataQuery.graphql.ts @@ -0,0 +1,383 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type ArtworkMetadataQueryVariables = { + readonly artworkID: string; +}; +export type ArtworkMetadataQueryResponse = { + readonly artwork: ({ + }) | null; +}; + + + +/* +query ArtworkMetadataQuery( + $artworkID: String! +) { + artwork(id: $artworkID) { + ...Metadata_artwork + __id + } +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artworkID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artworkID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v4 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "ArtworkMetadataQuery", + "id": null, + "text": "query ArtworkMetadataQuery(\n $artworkID: String!\n) {\n artwork(id: $artworkID) {\n ...Metadata_artwork\n __id\n }\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtworkMetadataQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Metadata_artwork", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "ArtworkMetadataQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v4, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v3, + v5 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v4, + "concreteType": "Partner", + "plural": false, + "selections": [ + v5, + v3, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v6, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = 'a26992b978e2aab5b906be4a22542a8a'; +export default node; diff --git a/src/__generated__/ArtworkQuery.graphql.ts b/src/__generated__/ArtworkQuery.graphql.ts new file mode 100644 index 0000000000..efe293b37a --- /dev/null +++ b/src/__generated__/ArtworkQuery.graphql.ts @@ -0,0 +1,432 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type ArtworkQueryVariables = { + readonly artworkID: string; +}; +export type ArtworkQueryResponse = { + readonly artwork: ({ + }) | null; +}; + + + +/* +query ArtworkQuery( + $artworkID: String! +) { + artwork(id: $artworkID) { + ...Artwork_artwork + __id + } +} + +fragment Artwork_artwork on Artwork { + id + image { + url(version: "large") + aspect_ratio + } + ...Metadata_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artworkID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artworkID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "ArtworkQuery", + "id": null, + "text": "query ArtworkQuery(\n $artworkID: String!\n) {\n artwork(id: $artworkID) {\n ...Artwork_artwork\n __id\n }\n}\n\nfragment Artwork_artwork on Artwork {\n id\n image {\n url(version: \"large\")\n aspect_ratio\n }\n ...Metadata_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "ArtworkQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Artwork_artwork", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "ArtworkQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v3, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v5 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v3, + "concreteType": "Partner", + "plural": false, + "selections": [ + v5, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v6, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = '5d0f8dca3f718f5dd5d9dbe1489d31a1'; +export default node; diff --git a/src/__generated__/Artwork_artwork.graphql.ts b/src/__generated__/Artwork_artwork.graphql.ts new file mode 100644 index 0000000000..a21978784e --- /dev/null +++ b/src/__generated__/Artwork_artwork.graphql.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Artwork_artwork = { + readonly id: string; + readonly image: ({ + readonly url: string | null; + readonly aspect_ratio: number | null; + }) | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Artwork_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "Metadata_artwork", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = '05646294ec1ef54a4ec29ece7e30681e'; +export default node; diff --git a/src/__generated__/BudgetUpdateMyUserProfileMutation.graphql.ts b/src/__generated__/BudgetUpdateMyUserProfileMutation.graphql.ts new file mode 100644 index 0000000000..67584b1862 --- /dev/null +++ b/src/__generated__/BudgetUpdateMyUserProfileMutation.graphql.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type BudgetUpdateMyUserProfileMutationVariables = { + readonly input: { + readonly name: string | null; + readonly email: string | null; + readonly phone: string | null; + readonly location: { + readonly address: string | null; + readonly address_2: string | null; + readonly city: string | null; + readonly country: string | null; + readonly summary: string | null; + readonly postal_code: string | null; + readonly state: string | null; + readonly state_code: string | null; + } | null; + readonly collector_level: number | null; + readonly price_range_min: number | null; + readonly price_range_max: number | null; + readonly clientMutationId: string | null; + }; +}; +export type BudgetUpdateMyUserProfileMutationResponse = { + readonly updateMyUserProfile: ({ + readonly user: ({ + readonly name: string; + }) | null; + }) | null; +}; + + + +/* +mutation BudgetUpdateMyUserProfileMutation( + $input: UpdateMyProfileInput! +) { + updateMyUserProfile(input: $input) { + user { + name + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "UpdateMyProfileInput!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "updateMyUserProfile", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "UpdateMyProfileInput!" + } + ], + "concreteType": "UpdateMyProfilePayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "user", + "storageKey": null, + "args": null, + "concreteType": "User", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + } + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "BudgetUpdateMyUserProfileMutation", + "id": null, + "text": "mutation BudgetUpdateMyUserProfileMutation(\n $input: UpdateMyProfileInput!\n) {\n updateMyUserProfile(input: $input) {\n user {\n name\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "BudgetUpdateMyUserProfileMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v1 + }, + "operation": { + "kind": "Operation", + "name": "BudgetUpdateMyUserProfileMutation", + "argumentDefinitions": v0, + "selections": v1 + } +}; +})(); +(node as any).hash = '3add187e4e8fcf9910294672b24f47e7'; +export default node; diff --git a/src/__generated__/CollectorIntentUpdateCollectorProfileMutation.graphql.ts b/src/__generated__/CollectorIntentUpdateCollectorProfileMutation.graphql.ts new file mode 100644 index 0000000000..7b997ec3b4 --- /dev/null +++ b/src/__generated__/CollectorIntentUpdateCollectorProfileMutation.graphql.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type Intents = "BUY_ART_AND_DESIGN" | "FIND_ART_EXHIBITS" | "LEARN_ABOUT_ART" | "READ_ART_MARKET_NEWS" | "RESEARCH_ART_PRICES" | "SELL_ART_AND_DESIGN" | "%future added value"; +export type CollectorIntentUpdateCollectorProfileMutationVariables = { + readonly input: { + readonly loyalty_applicant: boolean | null; + readonly professional_buyer: boolean | null; + readonly self_reported_purchases: string | null; + readonly intents: ReadonlyArray | null; + readonly clientMutationId: string | null; + }; +}; +export type CollectorIntentUpdateCollectorProfileMutationResponse = { + readonly updateCollectorProfile: ({ + readonly intents: ReadonlyArray | null; + }) | null; +}; + + + +/* +mutation CollectorIntentUpdateCollectorProfileMutation( + $input: UpdateCollectorProfileInput! +) { + updateCollectorProfile(input: $input) { + intents + __id + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "UpdateCollectorProfileInput!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "updateCollectorProfile", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "UpdateCollectorProfileInput!" + } + ], + "concreteType": "UpdateCollectorProfilePayload", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "intents", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "CollectorIntentUpdateCollectorProfileMutation", + "id": null, + "text": "mutation CollectorIntentUpdateCollectorProfileMutation(\n $input: UpdateCollectorProfileInput!\n) {\n updateCollectorProfile(input: $input) {\n intents\n __id\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "CollectorIntentUpdateCollectorProfileMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v1 + }, + "operation": { + "kind": "Operation", + "name": "CollectorIntentUpdateCollectorProfileMutation", + "argumentDefinitions": v0, + "selections": v1 + } +}; +})(); +(node as any).hash = '7587732c7a2cfaaf18f92a3330980598'; +export default node; diff --git a/src/__generated__/Contact_artwork.graphql.ts b/src/__generated__/Contact_artwork.graphql.ts new file mode 100644 index 0000000000..567d5bb8f7 --- /dev/null +++ b/src/__generated__/Contact_artwork.graphql.ts @@ -0,0 +1,207 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Contact_artwork = { + readonly _id: string; + readonly href: string | null; + readonly is_inquireable: boolean | null; + readonly sale: ({ + readonly is_auction: boolean | null; + readonly is_live_open: boolean | null; + readonly is_open: boolean | null; + readonly is_closed: boolean | null; + }) | null; + readonly partner: ({ + readonly type: string | null; + }) | null; + readonly sale_artwork: ({ + readonly highest_bid: ({ + readonly display: string | null; + }) | null; + readonly opening_bid: ({ + readonly display: string | null; + }) | null; + readonly counts: ({ + readonly bidder_positions: any | null; + }) | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "Contact_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v0 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } + ], + "concreteType": "Partner", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + }, + v0 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v1, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v1 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v0 + ] + }, + v0 + ] +}; +})(); +(node as any).hash = '15c2a7973aeb8fd0202f593635e2bbf2'; +export default node; diff --git a/src/__generated__/Details_artwork.graphql.ts b/src/__generated__/Details_artwork.graphql.ts new file mode 100644 index 0000000000..34782f0616 --- /dev/null +++ b/src/__generated__/Details_artwork.graphql.ts @@ -0,0 +1,176 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Details_artwork = { + readonly href: string | null; + readonly title: string | null; + readonly date: string | null; + readonly sale_message: string | null; + readonly cultural_maker: string | null; + readonly artists: ReadonlyArray<({ + readonly __id: string; + readonly href: string | null; + readonly name: string | null; + }) | null> | null; + readonly collecting_institution: string | null; + readonly partner: ({ + readonly name: string | null; + readonly href: string | null; + }) | null; + readonly sale: ({ + readonly is_auction: boolean | null; + readonly is_live_open: boolean | null; + readonly is_open: boolean | null; + readonly is_closed: boolean | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v1 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "Details_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + v0, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v1, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v0, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v1, + "concreteType": "Partner", + "plural": false, + "selections": [ + v3, + v0, + v2 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2 + ] +}; +})(); +(node as any).hash = '46676bc3e081aefe4bcdb6ea73308dc0'; +export default node; diff --git a/src/__generated__/Dropdown_aggregation.graphql.ts b/src/__generated__/Dropdown_aggregation.graphql.ts new file mode 100644 index 0000000000..1c702a1ec9 --- /dev/null +++ b/src/__generated__/Dropdown_aggregation.graphql.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtworkAggregation = "COLOR" | "DIMENSION_RANGE" | "FOLLOWED_ARTISTS" | "GALLERY" | "INSTITUTION" | "MAJOR_PERIOD" | "MEDIUM" | "MERCHANDISABLE_ARTISTS" | "PARTNER_CITY" | "PERIOD" | "PRICE_RANGE" | "TOTAL" | "%future added value"; +export type Dropdown_aggregation = { + readonly slice: ArtworkAggregation | null; + readonly counts: ReadonlyArray<({ + readonly name: string | null; + readonly id: string; + readonly count: number | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Dropdown_aggregation", + "type": "ArtworksAggregationResults", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "count", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } + ] +}; +(node as any).hash = '94a2813381cb263e699c9a26e40fcece'; +export default node; diff --git a/src/__generated__/FillwidthItem_artwork.graphql.ts b/src/__generated__/FillwidthItem_artwork.graphql.ts new file mode 100644 index 0000000000..e409c8e189 --- /dev/null +++ b/src/__generated__/FillwidthItem_artwork.graphql.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type FillwidthItem_artwork = { + readonly image: ({ + readonly placeholder: string | null; + readonly url: string | null; + readonly aspect_ratio: number | null; + }) | null; + readonly href: string | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "FillwidthItem_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null + }, + { + "kind": "FragmentSpread", + "name": "Metadata_artwork", + "args": null + }, + { + "kind": "FragmentSpread", + "name": "Save_artwork", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = 'e7d7e05dbcfbc935f92f7d36e8d0fd3e'; +export default node; diff --git a/src/__generated__/FillwidthQuery.graphql.ts b/src/__generated__/FillwidthQuery.graphql.ts new file mode 100644 index 0000000000..cdcf07eb27 --- /dev/null +++ b/src/__generated__/FillwidthQuery.graphql.ts @@ -0,0 +1,523 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type FillwidthQueryVariables = { + readonly artistID: string; +}; +export type FillwidthQueryResponse = { + readonly artist: ({ + readonly artworks: ({ + }) | null; + }) | null; +}; + + + +/* +query FillwidthQuery( + $artistID: String! +) { + artist(id: $artistID) { + artworks: artworks_connection(first: 6) { + ...Fillwidth_artworks + } + __id + } +} + +fragment Fillwidth_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...FillwidthItem_artwork + } + } +} + +fragment FillwidthItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artistID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artistID", + "type": "String!" + } +], +v2 = [ + { + "kind": "Literal", + "name": "first", + "value": 6, + "type": "Int" + } +], +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "FillwidthQuery", + "id": null, + "text": "query FillwidthQuery(\n $artistID: String!\n) {\n artist(id: $artistID) {\n artworks: artworks_connection(first: 6) {\n ...Fillwidth_artworks\n }\n __id\n }\n}\n\nfragment Fillwidth_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...FillwidthItem_artwork\n }\n }\n}\n\nfragment FillwidthItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "FillwidthQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:6)", + "args": v2, + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Fillwidth_artworks", + "args": null + } + ] + }, + v3 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "FillwidthQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:6)", + "args": v2, + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v3, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v3, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + }, + v3 + ] + } + ] + } +}; +})(); +(node as any).hash = '3aa756ba519b9c2f280917294248f940'; +export default node; diff --git a/src/__generated__/Fillwidth_artworks.graphql.ts b/src/__generated__/Fillwidth_artworks.graphql.ts new file mode 100644 index 0000000000..ad39dd0388 --- /dev/null +++ b/src/__generated__/Fillwidth_artworks.graphql.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Fillwidth_artworks = { + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly __id: string; + readonly image: ({ + readonly aspect_ratio: number | null; + }) | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Fillwidth_artworks", + "type": "ArtworkConnection", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "FillwidthItem_artwork", + "args": null + } + ] + } + ] + } + ] +}; +(node as any).hash = '2c137b96505cd1aae9b4750ecf6bacc7'; +export default node; diff --git a/src/__generated__/FollowArtistMutation.graphql.ts b/src/__generated__/FollowArtistMutation.graphql.ts new file mode 100644 index 0000000000..184eb726b1 --- /dev/null +++ b/src/__generated__/FollowArtistMutation.graphql.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type FollowArtistMutationVariables = { + readonly input: { + readonly artist_id: string | null; + readonly unfollow: boolean | null; + readonly clientMutationId: string | null; + }; +}; +export type FollowArtistMutationResponse = { + readonly followArtist: ({ + readonly artist: ({ + readonly is_followed: boolean | null; + }) | null; + }) | null; +}; + + + +/* +mutation FollowArtistMutation( + $input: FollowArtistInput! +) { + followArtist(input: $input) { + artist { + is_followed + __id + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "FollowArtistInput!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "followArtist", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "FollowArtistInput!" + } + ], + "concreteType": "FollowArtistPayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_followed", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "FollowArtistMutation", + "id": null, + "text": "mutation FollowArtistMutation(\n $input: FollowArtistInput!\n) {\n followArtist(input: $input) {\n artist {\n is_followed\n __id\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "FollowArtistMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v1 + }, + "operation": { + "kind": "Operation", + "name": "FollowArtistMutation", + "argumentDefinitions": v0, + "selections": v1 + } +}; +})(); +(node as any).hash = 'ee4f16ddad64c93338d517ef28b0570e'; +export default node; diff --git a/src/__generated__/Follow_artist.graphql.ts b/src/__generated__/Follow_artist.graphql.ts new file mode 100644 index 0000000000..a6e5779a54 --- /dev/null +++ b/src/__generated__/Follow_artist.graphql.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Follow_artist = { + readonly __id: string; + readonly id: string; + readonly is_followed: boolean | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Follow_artist", + "type": "Artist", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_followed", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = 'e2c8c185e485a2f0cf3079ead7217a61'; +export default node; diff --git a/src/__generated__/GeneArtworksContentQuery.graphql.ts b/src/__generated__/GeneArtworksContentQuery.graphql.ts new file mode 100644 index 0000000000..c2087ca188 --- /dev/null +++ b/src/__generated__/GeneArtworksContentQuery.graphql.ts @@ -0,0 +1,652 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type GeneArtworksContentQueryVariables = { + readonly filteredArtworksNodeID: string; + readonly count: number; + readonly cursor?: string | null; + readonly sort?: string | null; +}; +export type GeneArtworksContentQueryResponse = { + readonly node: ({ + }) | null; +}; + + + +/* +query GeneArtworksContentQuery( + $filteredArtworksNodeID: ID! + $count: Int! + $cursor: String + $sort: String +) { + node(__id: $filteredArtworksNodeID) { + __typename + ...GeneArtworksContent_filtered_artworks_1G22uz + __id + } +} + +fragment GeneArtworksContent_filtered_artworks_1G22uz on FilterArtworks { + __id + artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) { + pageInfo { + hasNextPage + endCursor + } + ...ArtworkGrid_artworks + edges { + node { + __id + __typename + } + cursor + } + } +} + +fragment ArtworkGrid_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...GridItem_artwork + } + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "filteredArtworksNodeID", + "type": "ID!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "count", + "type": "Int!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "sort", + "type": "String", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "__id", + "variableName": "filteredArtworksNodeID", + "type": "ID!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "GeneArtworksContentQuery", + "id": null, + "text": "query GeneArtworksContentQuery(\n $filteredArtworksNodeID: ID!\n $count: Int!\n $cursor: String\n $sort: String\n) {\n node(__id: $filteredArtworksNodeID) {\n __typename\n ...GeneArtworksContent_filtered_artworks_1G22uz\n __id\n }\n}\n\nfragment GeneArtworksContent_filtered_artworks_1G22uz on FilterArtworks {\n __id\n artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) {\n pageInfo {\n hasNextPage\n endCursor\n }\n ...ArtworkGrid_artworks\n edges {\n node {\n __id\n __typename\n }\n cursor\n }\n }\n}\n\nfragment ArtworkGrid_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...GridItem_artwork\n }\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "GeneArtworksContentQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "GeneArtworksContent_filtered_artworks", + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count", + "type": null + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor", + "type": null + } + ] + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "GeneArtworksContentQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + v3, + v2, + { + "kind": "InlineFragment", + "type": "FilterArtworks", + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artworks", + "name": "artworks_connection", + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "handle": "connection", + "key": "GeneArtworksContent_filtered_artworks", + "filters": [ + "sort" + ] + } + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = 'f4d2d86f15f82d4e5690d66b96f784c4'; +export default node; diff --git a/src/__generated__/GeneArtworksContent_filtered_artworks.graphql.ts b/src/__generated__/GeneArtworksContent_filtered_artworks.graphql.ts new file mode 100644 index 0000000000..af7aafffd7 --- /dev/null +++ b/src/__generated__/GeneArtworksContent_filtered_artworks.graphql.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type GeneArtworksContent_filtered_artworks = { + readonly __id: string; + readonly artworks: ({ + readonly pageInfo: { + readonly hasNextPage: boolean; + readonly endCursor: string | null; + }; + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly __id: string; + }) | null; + }) | null> | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "GeneArtworksContent_filtered_artworks", + "type": "FilterArtworks", + "metadata": { + "connection": [ + { + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": [ + "artworks" + ] + } + ] + }, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "count", + "type": "Int", + "defaultValue": 10 + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": "" + }, + { + "kind": "RootArgument", + "name": "sort", + "type": "String" + } + ], + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "__GeneArtworksContent_filtered_artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "ArtworkGrid_artworks", + "args": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + v0, + { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] +}; +})(); +(node as any).hash = 'd30d59f658dfd8265d9991f69697e6f5'; +export default node; diff --git a/src/__generated__/GeneArtworks_gene.graphql.ts b/src/__generated__/GeneArtworks_gene.graphql.ts new file mode 100644 index 0000000000..ab402f3005 --- /dev/null +++ b/src/__generated__/GeneArtworks_gene.graphql.ts @@ -0,0 +1,211 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtworkAggregation = "COLOR" | "DIMENSION_RANGE" | "FOLLOWED_ARTISTS" | "GALLERY" | "INSTITUTION" | "MAJOR_PERIOD" | "MEDIUM" | "MERCHANDISABLE_ARTISTS" | "PARTNER_CITY" | "PERIOD" | "PRICE_RANGE" | "TOTAL" | "%future added value"; +export type GeneArtworks_gene = { + readonly id: string; + readonly filtered_artworks: ({ + readonly aggregations: ReadonlyArray<({ + readonly slice: ArtworkAggregation | null; + readonly counts: ReadonlyArray<({ + readonly name: string | null; + readonly id: string; + }) | null> | null; + }) | null> | null; + readonly facet: ({ + }) | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "GeneArtworks_gene", + "type": "Gene", + "metadata": null, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "for_sale", + "type": "Boolean", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "medium", + "type": "String", + "defaultValue": "*" + }, + { + "kind": "LocalArgument", + "name": "aggregations", + "type": "[ArtworkAggregation]", + "defaultValue": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ] + }, + { + "kind": "LocalArgument", + "name": "price_range", + "type": "String", + "defaultValue": "*" + }, + { + "kind": "LocalArgument", + "name": "dimension_range", + "type": "String", + "defaultValue": "*" + } + ], + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": null, + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "aggregations", + "variableName": "aggregations", + "type": "[ArtworkAggregation]" + }, + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": "String" + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "include_medium_filter_in_aggregation", + "value": true, + "type": "Boolean" + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": "String" + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": "String" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "TotalCount_filter_artworks", + "args": null + }, + { + "kind": "FragmentSpread", + "name": "GeneArtworksContent_filtered_artworks", + "args": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + v0, + v1 + ] + }, + { + "kind": "FragmentSpread", + "name": "Dropdown_aggregation", + "args": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "facet", + "storageKey": null, + "args": null, + "concreteType": null, + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Headline_facet", + "args": null + }, + v1 + ] + }, + v1 + ] + }, + v1 + ] +}; +})(); +(node as any).hash = '1d17472b70abefaa13a7b3d87aecf9b4'; +export default node; diff --git a/src/__generated__/GeneContentsArtistsQuery.graphql.ts b/src/__generated__/GeneContentsArtistsQuery.graphql.ts new file mode 100644 index 0000000000..d567ae4299 --- /dev/null +++ b/src/__generated__/GeneContentsArtistsQuery.graphql.ts @@ -0,0 +1,778 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type GeneContentsArtistsQueryVariables = { + readonly geneID: string; +}; +export type GeneContentsArtistsQueryResponse = { + readonly gene: ({ + }) | null; +}; + + + +/* +query GeneContentsArtistsQuery( + $geneID: String! +) { + gene(id: $geneID) { + ...Artists_gene + __id + } +} + +fragment Artists_gene on Gene { + __id + artists: artists_connection(first: 10, after: "") { + pageInfo { + hasNextPage + endCursor + } + edges { + node { + __id + ...ArtistRow_artist + __typename + } + cursor + } + } + filter_aggregations: filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], size: 0, include_medium_filter_in_aggregation: true) { + ...TotalCount_filter_artworks + aggregations { + slice + ...Dropdown_aggregation + } + __id + } +} + +fragment ArtistRow_artist on Artist { + name + href + ...Follow_artist + artworks: artworks_connection(first: 6) { + ...Fillwidth_artworks + } + __id +} + +fragment TotalCount_filter_artworks on FilterArtworks { + counts { + total + } + __id +} + +fragment Dropdown_aggregation on ArtworksAggregationResults { + slice + counts { + name + id + count + __id + } +} + +fragment Follow_artist on Artist { + __id + id + is_followed +} + +fragment Fillwidth_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...FillwidthItem_artwork + } + } +} + +fragment FillwidthItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "geneID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "geneID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v6 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "GeneContentsArtistsQuery", + "id": null, + "text": "query GeneContentsArtistsQuery(\n $geneID: String!\n) {\n gene(id: $geneID) {\n ...Artists_gene\n __id\n }\n}\n\nfragment Artists_gene on Gene {\n __id\n artists: artists_connection(first: 10, after: \"\") {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n __id\n ...ArtistRow_artist\n __typename\n }\n cursor\n }\n }\n filter_aggregations: filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], size: 0, include_medium_filter_in_aggregation: true) {\n ...TotalCount_filter_artworks\n aggregations {\n slice\n ...Dropdown_aggregation\n }\n __id\n }\n}\n\nfragment ArtistRow_artist on Artist {\n name\n href\n ...Follow_artist\n artworks: artworks_connection(first: 6) {\n ...Fillwidth_artworks\n }\n __id\n}\n\nfragment TotalCount_filter_artworks on FilterArtworks {\n counts {\n total\n }\n __id\n}\n\nfragment Dropdown_aggregation on ArtworksAggregationResults {\n slice\n counts {\n name\n id\n count\n __id\n }\n}\n\nfragment Follow_artist on Artist {\n __id\n id\n is_followed\n}\n\nfragment Fillwidth_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...FillwidthItem_artwork\n }\n }\n}\n\nfragment FillwidthItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "GeneContentsArtistsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": v1, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Artists_gene", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "GeneContentsArtistsQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": v1, + "concreteType": "Gene", + "plural": false, + "selections": [ + v2, + { + "kind": "LinkedField", + "alias": "artists", + "name": "artists_connection", + "storageKey": "artists_connection(after:\"\",first:10)", + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + } + ], + "concreteType": "ArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v2, + v3, + v4, + v5, + { + "kind": "ScalarField", + "alias": null, + "name": "is_followed", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": "artworks_connection(first:6)", + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 6, + "type": "Int" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v6, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v3 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v6, + "concreteType": "Partner", + "plural": false, + "selections": [ + v3, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + v5, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artists", + "name": "artists_connection", + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + } + ], + "handle": "connection", + "key": "Artists_artists", + "filters": null + }, + { + "kind": "LinkedField", + "alias": "filter_aggregations", + "name": "filtered_artworks", + "storageKey": "filtered_artworks(aggregations:[\"MEDIUM\",\"TOTAL\",\"PRICE_RANGE\",\"DIMENSION_RANGE\"],include_medium_filter_in_aggregation:true,size:0)", + "args": [ + { + "kind": "Literal", + "name": "aggregations", + "value": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ], + "type": "[ArtworkAggregation]" + }, + { + "kind": "Literal", + "name": "include_medium_filter_in_aggregation", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "FilterArtworksCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "total", + "args": null, + "storageKey": null + } + ] + }, + v2, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + v3, + v5, + { + "kind": "ScalarField", + "alias": null, + "name": "count", + "args": null, + "storageKey": null + }, + v2 + ] + } + ] + } + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = '475032821c1a214fe810bfa6b8f3d4e2'; +export default node; diff --git a/src/__generated__/GeneContentsArtworksQuery.graphql.ts b/src/__generated__/GeneContentsArtworksQuery.graphql.ts new file mode 100644 index 0000000000..e9f6b6ac86 --- /dev/null +++ b/src/__generated__/GeneContentsArtworksQuery.graphql.ts @@ -0,0 +1,872 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type GeneContentsArtworksQueryVariables = { + readonly geneID: string; + readonly medium?: string | null; + readonly price_range?: string | null; + readonly sort?: string | null; + readonly for_sale?: boolean | null; + readonly dimension_range?: string | null; +}; +export type GeneContentsArtworksQueryResponse = { + readonly gene: ({ + }) | null; +}; + + + +/* +query GeneContentsArtworksQuery( + $geneID: String! + $medium: String + $price_range: String + $sort: String + $for_sale: Boolean + $dimension_range: String +) { + gene(id: $geneID) { + ...GeneArtworks_gene_2wcu0m + __id + } +} + +fragment GeneArtworks_gene_2wcu0m on Gene { + id + filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], for_sale: $for_sale, medium: $medium, price_range: $price_range, dimension_range: $dimension_range, size: 0, include_medium_filter_in_aggregation: true) { + ...TotalCount_filter_artworks + ...GeneArtworksContent_filtered_artworks + aggregations { + slice + counts { + name + id + __id + } + ...Dropdown_aggregation + } + facet { + __typename + ...Headline_facet + ... on Node { + __id + } + } + __id + } + __id +} + +fragment TotalCount_filter_artworks on FilterArtworks { + counts { + total + } + __id +} + +fragment GeneArtworksContent_filtered_artworks on FilterArtworks { + __id + artworks: artworks_connection(first: 10, after: "", sort: $sort) { + pageInfo { + hasNextPage + endCursor + } + ...ArtworkGrid_artworks + edges { + node { + __id + __typename + } + cursor + } + } +} + +fragment Dropdown_aggregation on ArtworksAggregationResults { + slice + counts { + name + id + count + __id + } +} + +fragment Headline_facet on ArtworkFilterFacet { + ... on ArtworkFilterTag { + name + } + ... on ArtworkFilterGene { + name + } + ... on Node { + __id + } +} + +fragment ArtworkGrid_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...GridItem_artwork + } + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "geneID", + "type": "String!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "medium", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "price_range", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "sort", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "for_sale", + "type": "Boolean", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "dimension_range", + "type": "String", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "geneID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}, +v8 = { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null +}, +v9 = [ + v6 +]; +return { + "kind": "Request", + "operationKind": "query", + "name": "GeneContentsArtworksQuery", + "id": null, + "text": "query GeneContentsArtworksQuery(\n $geneID: String!\n $medium: String\n $price_range: String\n $sort: String\n $for_sale: Boolean\n $dimension_range: String\n) {\n gene(id: $geneID) {\n ...GeneArtworks_gene_2wcu0m\n __id\n }\n}\n\nfragment GeneArtworks_gene_2wcu0m on Gene {\n id\n filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], for_sale: $for_sale, medium: $medium, price_range: $price_range, dimension_range: $dimension_range, size: 0, include_medium_filter_in_aggregation: true) {\n ...TotalCount_filter_artworks\n ...GeneArtworksContent_filtered_artworks\n aggregations {\n slice\n counts {\n name\n id\n __id\n }\n ...Dropdown_aggregation\n }\n facet {\n __typename\n ...Headline_facet\n ... on Node {\n __id\n }\n }\n __id\n }\n __id\n}\n\nfragment TotalCount_filter_artworks on FilterArtworks {\n counts {\n total\n }\n __id\n}\n\nfragment GeneArtworksContent_filtered_artworks on FilterArtworks {\n __id\n artworks: artworks_connection(first: 10, after: \"\", sort: $sort) {\n pageInfo {\n hasNextPage\n endCursor\n }\n ...ArtworkGrid_artworks\n edges {\n node {\n __id\n __typename\n }\n cursor\n }\n }\n}\n\nfragment Dropdown_aggregation on ArtworksAggregationResults {\n slice\n counts {\n name\n id\n count\n __id\n }\n}\n\nfragment Headline_facet on ArtworkFilterFacet {\n ... on ArtworkFilterTag {\n name\n }\n ... on ArtworkFilterGene {\n name\n }\n ... on Node {\n __id\n }\n}\n\nfragment ArtworkGrid_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...GridItem_artwork\n }\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "GeneContentsArtworksQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": v1, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "GeneArtworks_gene", + "args": [ + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": null + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": null + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": null + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": null + } + ] + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "GeneContentsArtworksQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": v1, + "concreteType": "Gene", + "plural": false, + "selections": [ + v3, + { + "kind": "LinkedField", + "alias": null, + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Literal", + "name": "aggregations", + "value": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ], + "type": "[ArtworkAggregation]" + }, + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": "String" + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "include_medium_filter_in_aggregation", + "value": true, + "type": "Boolean" + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": "String" + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": "String" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "FilterArtworksCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "total", + "args": null, + "storageKey": null + } + ] + }, + v2, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + }, + v8 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artworks", + "name": "artworks_connection", + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "handle": "connection", + "key": "GeneArtworksContent_filtered_artworks", + "filters": [ + "sort" + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + v6, + v3, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "count", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "facet", + "storageKey": null, + "args": null, + "concreteType": null, + "plural": false, + "selections": [ + v8, + v2, + { + "kind": "InlineFragment", + "type": "ArtworkFilterGene", + "selections": v9 + }, + { + "kind": "InlineFragment", + "type": "ArtworkFilterTag", + "selections": v9 + } + ] + } + ] + }, + v2 + ] + } + ] + } +}; +})(); +(node as any).hash = 'b6443f327467469eb9b0df012a822944'; +export default node; diff --git a/src/__generated__/GeneSearchResultsContent_viewer.graphql.ts b/src/__generated__/GeneSearchResultsContent_viewer.graphql.ts new file mode 100644 index 0000000000..1f3dcdafee --- /dev/null +++ b/src/__generated__/GeneSearchResultsContent_viewer.graphql.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type GeneSearchResultsContent_viewer = { + readonly match_gene: ReadonlyArray<({ + readonly name: string | null; + readonly id: string; + readonly _id: string; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "GeneSearchResultsContent_viewer", + "type": "Viewer", + "metadata": null, + "argumentDefinitions": [ + { + "kind": "RootArgument", + "name": "term", + "type": "String!" + } + ], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "match_gene", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "term", + "variableName": "term", + "type": "String!" + } + ], + "concreteType": "Gene", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } + ] +}; +(node as any).hash = '0bea268b7e1c4adf4585567dbc12f2ca'; +export default node; diff --git a/src/__generated__/GeneSearchResultsFollowGeneMutation.graphql.ts b/src/__generated__/GeneSearchResultsFollowGeneMutation.graphql.ts new file mode 100644 index 0000000000..1a0464c09d --- /dev/null +++ b/src/__generated__/GeneSearchResultsFollowGeneMutation.graphql.ts @@ -0,0 +1,251 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type GeneSearchResultsFollowGeneMutationVariables = { + readonly input: { + readonly gene_id: string | null; + readonly clientMutationId: string | null; + }; + readonly excludedGeneIds: ReadonlyArray; +}; +export type GeneSearchResultsFollowGeneMutationResponse = { + readonly followGene: ({ + readonly gene: ({ + readonly similar: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + }) | null; + }) | null; +}; + + + +/* +mutation GeneSearchResultsFollowGeneMutation( + $input: FollowGeneInput! + $excludedGeneIds: [String]! +) { + followGene(input: $input) { + gene { + similar(first: 1, exclude_gene_ids: $excludedGeneIds) { + edges { + node { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + } + __id + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "FollowGeneInput!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "excludedGeneIds", + "type": "[String]!", + "defaultValue": null + } +], +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v2 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "followGene", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "FollowGeneInput!" + } + ], + "concreteType": "FollowGenePayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "similar", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "exclude_gene_ids", + "variableName": "excludedGeneIds", + "type": "[String]" + }, + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + } + ], + "concreteType": "GeneConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "GeneEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + v1, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] + } + ] + }, + v1 + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "GeneSearchResultsFollowGeneMutation", + "id": null, + "text": "mutation GeneSearchResultsFollowGeneMutation(\n $input: FollowGeneInput!\n $excludedGeneIds: [String]!\n) {\n followGene(input: $input) {\n gene {\n similar(first: 1, exclude_gene_ids: $excludedGeneIds) {\n edges {\n node {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n }\n __id\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "GeneSearchResultsFollowGeneMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v2 + }, + "operation": { + "kind": "Operation", + "name": "GeneSearchResultsFollowGeneMutation", + "argumentDefinitions": v0, + "selections": v2 + } +}; +})(); +(node as any).hash = '3d621343f23280ba5000ed5cb3e9da08'; +export default node; diff --git a/src/__generated__/GeneSearchResultsQuery.graphql.ts b/src/__generated__/GeneSearchResultsQuery.graphql.ts new file mode 100644 index 0000000000..3cf11da3c4 --- /dev/null +++ b/src/__generated__/GeneSearchResultsQuery.graphql.ts @@ -0,0 +1,197 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type GeneSearchResultsQueryVariables = { + readonly term: string; +}; +export type GeneSearchResultsQueryResponse = { + readonly viewer: ({ + }) | null; +}; + + + +/* +query GeneSearchResultsQuery( + $term: String! +) { + viewer { + ...GeneSearchResultsContent_viewer + } +} + +fragment GeneSearchResultsContent_viewer on Viewer { + match_gene(term: $term) { + name + id + _id + image { + cropped(width: 100, height: 100) { + url + } + } + __id + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "term", + "type": "String!", + "defaultValue": null + } +]; +return { + "kind": "Request", + "operationKind": "query", + "name": "GeneSearchResultsQuery", + "id": null, + "text": "query GeneSearchResultsQuery(\n $term: String!\n) {\n viewer {\n ...GeneSearchResultsContent_viewer\n }\n}\n\nfragment GeneSearchResultsContent_viewer on Viewer {\n match_gene(term: $term) {\n name\n id\n _id\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n __id\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "GeneSearchResultsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": "viewer", + "name": "__viewer_viewer", + "storageKey": null, + "args": null, + "concreteType": "Viewer", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "GeneSearchResultsContent_viewer", + "args": null + } + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "GeneSearchResultsQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "viewer", + "storageKey": null, + "args": null, + "concreteType": "Viewer", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "match_gene", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "term", + "variableName": "term", + "type": "String!" + } + ], + "concreteType": "Gene", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": null, + "name": "viewer", + "args": null, + "handle": "viewer", + "key": "", + "filters": null + } + ] + } +}; +})(); +(node as any).hash = '6f403a1a5970448a89a84de12bc8d072'; +export default node; diff --git a/src/__generated__/GridItem_artwork.graphql.ts b/src/__generated__/GridItem_artwork.graphql.ts new file mode 100644 index 0000000000..65374907b9 --- /dev/null +++ b/src/__generated__/GridItem_artwork.graphql.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type GridItem_artwork = { + readonly image: ({ + readonly placeholder: string | null; + readonly url: string | null; + readonly aspect_ratio: number | null; + }) | null; + readonly href: string | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "GridItem_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null + }, + { + "kind": "FragmentSpread", + "name": "Metadata_artwork", + "args": null + }, + { + "kind": "FragmentSpread", + "name": "Save_artwork", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = '59034540274ec432b719be1a5f8d5fff'; +export default node; diff --git a/src/__generated__/Headline_facet.graphql.ts b/src/__generated__/Headline_facet.graphql.ts new file mode 100644 index 0000000000..0605f0dbc9 --- /dev/null +++ b/src/__generated__/Headline_facet.graphql.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Headline_facet = { + readonly name?: string | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + } +]; +return { + "kind": "Fragment", + "name": "Headline_facet", + "type": "ArtworkFilterFacet", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "InlineFragment", + "type": "ArtworkFilterGene", + "selections": v0 + }, + { + "kind": "InlineFragment", + "type": "ArtworkFilterTag", + "selections": v0 + } + ] +}; +})(); +(node as any).hash = 'fe0e6f752ce23f2a03e177de220f2ed6'; +export default node; diff --git a/src/__generated__/InquiryArtworkQuery.graphql.ts b/src/__generated__/InquiryArtworkQuery.graphql.ts new file mode 100644 index 0000000000..c7bf4e25be --- /dev/null +++ b/src/__generated__/InquiryArtworkQuery.graphql.ts @@ -0,0 +1,437 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type InquiryArtworkQueryVariables = { + readonly artworkID: string; +}; +export type InquiryArtworkQueryResponse = { + readonly artwork: ({ + }) | null; +}; + + + +/* +query InquiryArtworkQuery( + $artworkID: String! +) { + artwork(id: $artworkID) { + ...InquiryArtwork_artwork + __id + } +} + +fragment InquiryArtwork_artwork on Artwork { + ...Artwork_artwork + __id +} + +fragment Artwork_artwork on Artwork { + id + image { + url(version: "large") + aspect_ratio + } + ...Metadata_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artworkID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artworkID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "InquiryArtworkQuery", + "id": null, + "text": "query InquiryArtworkQuery(\n $artworkID: String!\n) {\n artwork(id: $artworkID) {\n ...InquiryArtwork_artwork\n __id\n }\n}\n\nfragment InquiryArtwork_artwork on Artwork {\n ...Artwork_artwork\n __id\n}\n\nfragment Artwork_artwork on Artwork {\n id\n image {\n url(version: \"large\")\n aspect_ratio\n }\n ...Metadata_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "InquiryArtworkQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "InquiryArtwork_artwork", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "InquiryArtworkQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v3, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v5 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v3, + "concreteType": "Partner", + "plural": false, + "selections": [ + v5, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v6, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = 'eb94957e52e758f2900df09788731187'; +export default node; diff --git a/src/__generated__/InquiryArtwork_artwork.graphql.ts b/src/__generated__/InquiryArtwork_artwork.graphql.ts new file mode 100644 index 0000000000..c8da5d52dc --- /dev/null +++ b/src/__generated__/InquiryArtwork_artwork.graphql.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type InquiryArtwork_artwork = { +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "InquiryArtwork_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "FragmentSpread", + "name": "Artwork_artwork", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = '395ab37180661dd93a2a1ee189b363b5'; +export default node; diff --git a/src/__generated__/MarketInsightsContentsQuery.graphql.ts b/src/__generated__/MarketInsightsContentsQuery.graphql.ts new file mode 100644 index 0000000000..524de83f07 --- /dev/null +++ b/src/__generated__/MarketInsightsContentsQuery.graphql.ts @@ -0,0 +1,352 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type MarketInsightsContentsQueryVariables = { + readonly artistID: string; +}; +export type MarketInsightsContentsQueryResponse = { + readonly artist: ({ + }) | null; +}; + + + +/* +query MarketInsightsContentsQuery( + $artistID: String! +) { + artist(id: $artistID) { + ...MarketInsights_artist + __id + } +} + +fragment MarketInsights_artist on Artist { + _id + collections + highlights { + partners(first: 10, display_on_partner_profile: true, represented_by: true, partner_category: ["blue-chip", "top-established", "top-emerging"]) { + edges { + node { + name + categories { + id + name + } + __id + } + __id + } + } + } + auctionResults(recordsTrusted: true, first: 1, sort: PRICE_AND_DATE_DESC) { + edges { + node { + organization + price_realized { + display(format: "0a") + } + sale_date(format: "YYYY") + __id + } + } + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artistID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artistID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "MarketInsightsContentsQuery", + "id": null, + "text": "query MarketInsightsContentsQuery(\n $artistID: String!\n) {\n artist(id: $artistID) {\n ...MarketInsights_artist\n __id\n }\n}\n\nfragment MarketInsights_artist on Artist {\n _id\n collections\n highlights {\n partners(first: 10, display_on_partner_profile: true, represented_by: true, partner_category: [\"blue-chip\", \"top-established\", \"top-emerging\"]) {\n edges {\n node {\n name\n categories {\n id\n name\n }\n __id\n }\n __id\n }\n }\n }\n auctionResults(recordsTrusted: true, first: 1, sort: PRICE_AND_DATE_DESC) {\n edges {\n node {\n organization\n price_realized {\n display(format: \"0a\")\n }\n sale_date(format: \"YYYY\")\n __id\n }\n }\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "MarketInsightsContentsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "MarketInsights_artist", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "MarketInsightsContentsQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": v1, + "concreteType": "Artist", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collections", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "highlights", + "storageKey": null, + "args": null, + "concreteType": "ArtistHighlights", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "partners", + "storageKey": "partners(display_on_partner_profile:true,first:10,partner_category:[\"blue-chip\",\"top-established\",\"top-emerging\"],represented_by:true)", + "args": [ + { + "kind": "Literal", + "name": "display_on_partner_profile", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Literal", + "name": "partner_category", + "value": [ + "blue-chip", + "top-established", + "top-emerging" + ], + "type": "[String]" + }, + { + "kind": "Literal", + "name": "represented_by", + "value": true, + "type": "Boolean" + } + ], + "concreteType": "PartnerArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Partner", + "plural": false, + "selections": [ + v3, + { + "kind": "LinkedField", + "alias": null, + "name": "categories", + "storageKey": null, + "args": null, + "concreteType": "Category", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + v3 + ] + }, + v2 + ] + }, + v2 + ] + } + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "auctionResults", + "storageKey": "auctionResults(first:1,recordsTrusted:true,sort:\"PRICE_AND_DATE_DESC\")", + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + }, + { + "kind": "Literal", + "name": "recordsTrusted", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "sort", + "value": "PRICE_AND_DATE_DESC", + "type": "AuctionResultSorts" + } + ], + "concreteType": "AuctionResultConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "AuctionResultEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "AuctionResult", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "organization", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "price_realized", + "storageKey": null, + "args": null, + "concreteType": "AuctionResultPriceRealized", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": [ + { + "kind": "Literal", + "name": "format", + "value": "0a", + "type": "String" + } + ], + "storageKey": "display(format:\"0a\")" + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_date", + "args": [ + { + "kind": "Literal", + "name": "format", + "value": "YYYY", + "type": "String" + } + ], + "storageKey": "sale_date(format:\"YYYY\")" + }, + v2 + ] + } + ] + } + ] + }, + v2 + ] + } + ] + } +}; +})(); +(node as any).hash = '6e4add80368a82921c5a3a6efee9be3e'; +export default node; diff --git a/src/__generated__/MarketInsights_artist.graphql.ts b/src/__generated__/MarketInsights_artist.graphql.ts new file mode 100644 index 0000000000..a893dabf87 --- /dev/null +++ b/src/__generated__/MarketInsights_artist.graphql.ts @@ -0,0 +1,277 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type MarketInsights_artist = { + readonly _id: string; + readonly collections: ReadonlyArray | null; + readonly highlights: ({ + readonly partners: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly name: string | null; + readonly categories: ReadonlyArray<({ + readonly id: string; + readonly name: string | null; + }) | null> | null; + }) | null; + }) | null> | null; + }) | null; + }) | null; + readonly auctionResults: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly organization: string | null; + readonly price_realized: ({ + readonly display: string | null; + }) | null; + readonly sale_date: string | null; + }) | null; + }) | null> | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "MarketInsights_artist", + "type": "Artist", + "metadata": null, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "partner_category", + "type": "[String]", + "defaultValue": [ + "blue-chip", + "top-established", + "top-emerging" + ] + } + ], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collections", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "highlights", + "storageKey": null, + "args": null, + "concreteType": "ArtistHighlights", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "partners", + "storageKey": null, + "args": [ + { + "kind": "Literal", + "name": "display_on_partner_profile", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Variable", + "name": "partner_category", + "variableName": "partner_category", + "type": "[String]" + }, + { + "kind": "Literal", + "name": "represented_by", + "value": true, + "type": "Boolean" + } + ], + "concreteType": "PartnerArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "PartnerArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Partner", + "plural": false, + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": null, + "name": "categories", + "storageKey": null, + "args": null, + "concreteType": "Category", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + v0 + ] + }, + v1 + ] + }, + v1 + ] + } + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "auctionResults", + "storageKey": "auctionResults(first:1,recordsTrusted:true,sort:\"PRICE_AND_DATE_DESC\")", + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + }, + { + "kind": "Literal", + "name": "recordsTrusted", + "value": true, + "type": "Boolean" + }, + { + "kind": "Literal", + "name": "sort", + "value": "PRICE_AND_DATE_DESC", + "type": "AuctionResultSorts" + } + ], + "concreteType": "AuctionResultConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "AuctionResultEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "AuctionResult", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "organization", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "price_realized", + "storageKey": null, + "args": null, + "concreteType": "AuctionResultPriceRealized", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": [ + { + "kind": "Literal", + "name": "format", + "value": "0a", + "type": "String" + } + ], + "storageKey": "display(format:\"0a\")" + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_date", + "args": [ + { + "kind": "Literal", + "name": "format", + "value": "YYYY", + "type": "String" + } + ], + "storageKey": "sale_date(format:\"YYYY\")" + }, + v1 + ] + } + ] + } + ] + }, + v1 + ] +}; +})(); +(node as any).hash = 'a0a4f694521912c7257ebe2e713a2a51'; +export default node; diff --git a/src/__generated__/Metadata_artwork.graphql.ts b/src/__generated__/Metadata_artwork.graphql.ts new file mode 100644 index 0000000000..e9b43807f4 --- /dev/null +++ b/src/__generated__/Metadata_artwork.graphql.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Metadata_artwork = { +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Metadata_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "FragmentSpread", + "name": "Details_artwork", + "args": null + }, + { + "kind": "FragmentSpread", + "name": "Contact_artwork", + "args": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = '429d7bf897069aa9099d5938e9b6169d'; +export default node; diff --git a/src/__generated__/PopularArtistsContent_popular_artists.graphql.ts b/src/__generated__/PopularArtistsContent_popular_artists.graphql.ts new file mode 100644 index 0000000000..425e88315b --- /dev/null +++ b/src/__generated__/PopularArtistsContent_popular_artists.graphql.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type PopularArtistsContent_popular_artists = { + readonly artists: ReadonlyArray<({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "PopularArtistsContent_popular_artists", + "type": "PopularArtists", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] +}; +(node as any).hash = 'c225d449a992dcdbb01fc35937dc96ba'; +export default node; diff --git a/src/__generated__/PopularArtistsFollowArtistMutation.graphql.ts b/src/__generated__/PopularArtistsFollowArtistMutation.graphql.ts new file mode 100644 index 0000000000..dd073b93db --- /dev/null +++ b/src/__generated__/PopularArtistsFollowArtistMutation.graphql.ts @@ -0,0 +1,338 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type PopularArtistsFollowArtistMutationVariables = { + readonly input: { + readonly artist_id: string | null; + readonly unfollow: boolean | null; + readonly clientMutationId: string | null; + }; + readonly excludedArtistIds: ReadonlyArray; +}; +export type PopularArtistsFollowArtistMutationResponse = { + readonly followArtist: ({ + readonly popular_artists: ({ + readonly artists: ReadonlyArray<({ + readonly id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + readonly artist: ({ + readonly __id: string; + readonly related: ({ + readonly suggested: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + }) | null; + }) | null; + }) | null; +}; + + + +/* +mutation PopularArtistsFollowArtistMutation( + $input: FollowArtistInput! + $excludedArtistIds: [String]! +) { + followArtist(input: $input) { + popular_artists(size: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) { + artists { + id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + artist { + __id + related { + suggested(first: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) { + edges { + node { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + } + } + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "FollowArtistInput!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "excludedArtistIds", + "type": "[String]!", + "defaultValue": null + } +], +v1 = { + "kind": "Variable", + "name": "exclude_artist_ids", + "variableName": "excludedArtistIds", + "type": "[String]" +}, +v2 = { + "kind": "Literal", + "name": "exclude_followed_artists", + "value": true, + "type": "Boolean" +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] +}, +v7 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "followArtist", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "FollowArtistInput!" + } + ], + "concreteType": "FollowArtistPayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "popular_artists", + "storageKey": null, + "args": [ + v1, + v2, + { + "kind": "Literal", + "name": "size", + "value": 1, + "type": "Int" + } + ], + "concreteType": "PopularArtists", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": true, + "selections": [ + v3, + v4, + v5, + v6 + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artist", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v4, + { + "kind": "LinkedField", + "alias": null, + "name": "related", + "storageKey": null, + "args": null, + "concreteType": "RelatedArtists", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "suggested", + "storageKey": null, + "args": [ + v1, + v2, + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + } + ], + "concreteType": "ArtistConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtistEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": false, + "selections": [ + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + v4, + v5, + v6 + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "PopularArtistsFollowArtistMutation", + "id": null, + "text": "mutation PopularArtistsFollowArtistMutation(\n $input: FollowArtistInput!\n $excludedArtistIds: [String]!\n) {\n followArtist(input: $input) {\n popular_artists(size: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) {\n artists {\n id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n artist {\n __id\n related {\n suggested(first: 1, exclude_followed_artists: true, exclude_artist_ids: $excludedArtistIds) {\n edges {\n node {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n }\n }\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "PopularArtistsFollowArtistMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v7 + }, + "operation": { + "kind": "Operation", + "name": "PopularArtistsFollowArtistMutation", + "argumentDefinitions": v0, + "selections": v7 + } +}; +})(); +(node as any).hash = 'be0a256e1e9b66861e539765616beea8'; +export default node; diff --git a/src/__generated__/PopularArtistsQuery.graphql.ts b/src/__generated__/PopularArtistsQuery.graphql.ts new file mode 100644 index 0000000000..d6d6682150 --- /dev/null +++ b/src/__generated__/PopularArtistsQuery.graphql.ts @@ -0,0 +1,178 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type PopularArtistsQueryVariables = { +}; +export type PopularArtistsQueryResponse = { + readonly popular_artists: ({ + }) | null; +}; + + + +/* +query PopularArtistsQuery { + popular_artists(exclude_followed_artists: true) { + ...PopularArtistsContent_popular_artists + } +} + +fragment PopularArtistsContent_popular_artists on PopularArtists { + artists { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "exclude_followed_artists", + "value": true, + "type": "Boolean" + } +]; +return { + "kind": "Request", + "operationKind": "query", + "name": "PopularArtistsQuery", + "id": null, + "text": "query PopularArtistsQuery {\n popular_artists(exclude_followed_artists: true) {\n ...PopularArtistsContent_popular_artists\n }\n}\n\nfragment PopularArtistsContent_popular_artists on PopularArtists {\n artists {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "PopularArtistsQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "popular_artists", + "storageKey": "popular_artists(exclude_followed_artists:true)", + "args": v0, + "concreteType": "PopularArtists", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "PopularArtistsContent_popular_artists", + "args": null + } + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "PopularArtistsQuery", + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "popular_artists", + "storageKey": "popular_artists(exclude_followed_artists:true)", + "args": v0, + "concreteType": "PopularArtists", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": null, + "args": null, + "concreteType": "Artist", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = '6d83082e5c6129f5dfcdf118bb6f5462'; +export default node; diff --git a/src/__generated__/RailSliderQuery.graphql.ts b/src/__generated__/RailSliderQuery.graphql.ts new file mode 100644 index 0000000000..30ceff4c63 --- /dev/null +++ b/src/__generated__/RailSliderQuery.graphql.ts @@ -0,0 +1,477 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type RailSliderQueryVariables = { + readonly saleID: string; +}; +export type RailSliderQueryResponse = { + readonly sale: ({ + }) | null; +}; + + + +/* +query RailSliderQuery( + $saleID: String! +) { + sale(id: $saleID) { + ...Slider_sale + __id + } +} + +fragment Slider_sale on Sale { + artworks { + image { + aspect_ratio + } + ...FillwidthItem_artwork + __id + } + __id +} + +fragment FillwidthItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "saleID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "saleID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "RailSliderQuery", + "id": null, + "text": "query RailSliderQuery(\n $saleID: String!\n) {\n sale(id: $saleID) {\n ...Slider_sale\n __id\n }\n}\n\nfragment Slider_sale on Sale {\n artworks {\n image {\n aspect_ratio\n }\n ...FillwidthItem_artwork\n __id\n }\n __id\n}\n\nfragment FillwidthItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "RailSliderQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": v1, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Slider_sale", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "RailSliderQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": v1, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artworks", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v3, + "concreteType": "Partner", + "plural": false, + "selections": [ + v4, + v5, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v3, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v5, + v4 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v5, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v6, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + } + ] + } +}; +})(); +(node as any).hash = '3358b854bf7238caa873ab4d2b653b5d'; +export default node; diff --git a/src/__generated__/SaveArtworkMutation.graphql.ts b/src/__generated__/SaveArtworkMutation.graphql.ts new file mode 100644 index 0000000000..470249aa6c --- /dev/null +++ b/src/__generated__/SaveArtworkMutation.graphql.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type SaveArtworkMutationVariables = { + readonly input: { + readonly artwork_id: string | null; + readonly remove: boolean | null; + readonly clientMutationId: string | null; + }; +}; +export type SaveArtworkMutationResponse = { + readonly saveArtwork: ({ + readonly artwork: ({ + readonly is_saved: boolean | null; + }) | null; + }) | null; +}; + + + +/* +mutation SaveArtworkMutation( + $input: SaveArtworkInput! +) { + saveArtwork(input: $input) { + artwork { + is_saved + __id + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "SaveArtworkInput!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "saveArtwork", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "SaveArtworkInput!" + } + ], + "concreteType": "SaveArtworkPayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "SaveArtworkMutation", + "id": null, + "text": "mutation SaveArtworkMutation(\n $input: SaveArtworkInput!\n) {\n saveArtwork(input: $input) {\n artwork {\n is_saved\n __id\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "SaveArtworkMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v1 + }, + "operation": { + "kind": "Operation", + "name": "SaveArtworkMutation", + "argumentDefinitions": v0, + "selections": v1 + } +}; +})(); +(node as any).hash = '691d5afb5f5bfd147f30029511d66cb0'; +export default node; diff --git a/src/__generated__/SaveArtworkQuery.graphql.ts b/src/__generated__/SaveArtworkQuery.graphql.ts new file mode 100644 index 0000000000..ac51e0e3d8 --- /dev/null +++ b/src/__generated__/SaveArtworkQuery.graphql.ts @@ -0,0 +1,454 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type SaveArtworkQueryVariables = { + readonly artworkID: string; +}; +export type SaveArtworkQueryResponse = { + readonly artwork: ({ + }) | null; +}; + + + +/* +query SaveArtworkQuery( + $artworkID: String! +) { + artwork(id: $artworkID) { + ...GridItem_artwork + __id + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "artworkID", + "type": "String!", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "artworkID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v5 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "SaveArtworkQuery", + "id": null, + "text": "query SaveArtworkQuery(\n $artworkID: String!\n) {\n artwork(id: $artworkID) {\n ...GridItem_artwork\n __id\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "SaveArtworkQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "GridItem_artwork", + "args": null + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "SaveArtworkQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artwork", + "storageKey": null, + "args": v1, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v3, + "concreteType": "Partner", + "plural": false, + "selections": [ + v4, + v5, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + }, + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v3, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v5, + v4 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v5, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v6, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] + } + ] + } +}; +})(); +(node as any).hash = '779e8d035683715ede6a9e6c9bf98022'; +export default node; diff --git a/src/__generated__/Save_artwork.graphql.ts b/src/__generated__/Save_artwork.graphql.ts new file mode 100644 index 0000000000..a3349a7e88 --- /dev/null +++ b/src/__generated__/Save_artwork.graphql.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Save_artwork = { + readonly __id: string; + readonly id: string; + readonly is_saved: boolean | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "Save_artwork", + "type": "Artwork", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = '0faa5a4a653d49f5187e7c576b95cba7'; +export default node; diff --git a/src/__generated__/Slider_sale.graphql.ts b/src/__generated__/Slider_sale.graphql.ts new file mode 100644 index 0000000000..eafc821fb1 --- /dev/null +++ b/src/__generated__/Slider_sale.graphql.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type Slider_sale = { + readonly artworks: ReadonlyArray<({ + readonly image: ({ + readonly aspect_ratio: number | null; + }) | null; + }) | null> | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "Slider_sale", + "type": "Sale", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "artworks", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "FillwidthItem_artwork", + "args": null + }, + v0 + ] + }, + v0 + ] +}; +})(); +(node as any).hash = 'b5b12d888859091241dbdeda73f3c972'; +export default node; diff --git a/src/__generated__/SuggestedGenesContent_suggested_genes.graphql.ts b/src/__generated__/SuggestedGenesContent_suggested_genes.graphql.ts new file mode 100644 index 0000000000..db1204e860 --- /dev/null +++ b/src/__generated__/SuggestedGenesContent_suggested_genes.graphql.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type SuggestedGenesContent_suggested_genes = ReadonlyArray<{ + readonly id: string; + readonly _id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }>; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "SuggestedGenesContent_suggested_genes", + "type": "Gene", + "metadata": { + "plural": true + }, + "argumentDefinitions": [], + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = 'ad7d9ea0e33ce748ebcb67864853561d'; +export default node; diff --git a/src/__generated__/SuggestedGenesFollowGeneMutation.graphql.ts b/src/__generated__/SuggestedGenesFollowGeneMutation.graphql.ts new file mode 100644 index 0000000000..b98d836035 --- /dev/null +++ b/src/__generated__/SuggestedGenesFollowGeneMutation.graphql.ts @@ -0,0 +1,251 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type SuggestedGenesFollowGeneMutationVariables = { + readonly input: { + readonly gene_id: string | null; + readonly clientMutationId: string | null; + }; + readonly excludedGeneIds: ReadonlyArray; +}; +export type SuggestedGenesFollowGeneMutationResponse = { + readonly followGene: ({ + readonly gene: ({ + readonly similar: ({ + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly id: string; + readonly _id: string; + readonly __id: string; + readonly name: string | null; + readonly image: ({ + readonly cropped: ({ + readonly url: string | null; + }) | null; + }) | null; + }) | null; + }) | null> | null; + }) | null; + }) | null; + }) | null; +}; + + + +/* +mutation SuggestedGenesFollowGeneMutation( + $input: FollowGeneInput! + $excludedGeneIds: [String]! +) { + followGene(input: $input) { + gene { + similar(first: 1, exclude_gene_ids: $excludedGeneIds) { + edges { + node { + id + _id + __id + name + image { + cropped(width: 100, height: 100) { + url + } + } + } + } + } + __id + } + } +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "input", + "type": "FollowGeneInput!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "excludedGeneIds", + "type": "[String]!", + "defaultValue": null + } +], +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v2 = [ + { + "kind": "LinkedField", + "alias": null, + "name": "followGene", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "input", + "variableName": "input", + "type": "FollowGeneInput!" + } + ], + "concreteType": "FollowGenePayload", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "gene", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "similar", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "exclude_gene_ids", + "variableName": "excludedGeneIds", + "type": "[String]" + }, + { + "kind": "Literal", + "name": "first", + "value": 1, + "type": "Int" + } + ], + "concreteType": "GeneConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "GeneEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + v1, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] + } + ] + } + ] + }, + v1 + ] + } + ] + } +]; +return { + "kind": "Request", + "operationKind": "mutation", + "name": "SuggestedGenesFollowGeneMutation", + "id": null, + "text": "mutation SuggestedGenesFollowGeneMutation(\n $input: FollowGeneInput!\n $excludedGeneIds: [String]!\n) {\n followGene(input: $input) {\n gene {\n similar(first: 1, exclude_gene_ids: $excludedGeneIds) {\n edges {\n node {\n id\n _id\n __id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n }\n }\n }\n __id\n }\n }\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "SuggestedGenesFollowGeneMutation", + "type": "Mutation", + "metadata": null, + "argumentDefinitions": v0, + "selections": v2 + }, + "operation": { + "kind": "Operation", + "name": "SuggestedGenesFollowGeneMutation", + "argumentDefinitions": v0, + "selections": v2 + } +}; +})(); +(node as any).hash = '73a7ed7e539207c9a26f3edac371a0b0'; +export default node; diff --git a/src/__generated__/SuggestedGenesQuery.graphql.ts b/src/__generated__/SuggestedGenesQuery.graphql.ts new file mode 100644 index 0000000000..161eddd1ec --- /dev/null +++ b/src/__generated__/SuggestedGenesQuery.graphql.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type SuggestedGenesQueryVariables = { +}; +export type SuggestedGenesQueryResponse = { + readonly suggested_genes: ReadonlyArray<({ + }) | null> | null; +}; + + + +/* +query SuggestedGenesQuery { + suggested_genes { + ...SuggestedGenesContent_suggested_genes + __id + } +} + +fragment SuggestedGenesContent_suggested_genes on Gene { + id + _id + name + image { + cropped(width: 100, height: 100) { + url + } + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "SuggestedGenesQuery", + "id": null, + "text": "query SuggestedGenesQuery {\n suggested_genes {\n ...SuggestedGenesContent_suggested_genes\n __id\n }\n}\n\nfragment SuggestedGenesContent_suggested_genes on Gene {\n id\n _id\n name\n image {\n cropped(width: 100, height: 100) {\n url\n }\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "SuggestedGenesQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "suggested_genes", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": true, + "selections": [ + { + "kind": "FragmentSpread", + "name": "SuggestedGenesContent_suggested_genes", + "args": null + }, + v0 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "SuggestedGenesQuery", + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "suggested_genes", + "storageKey": null, + "args": null, + "concreteType": "Gene", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "cropped", + "storageKey": "cropped(height:100,width:100)", + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100, + "type": "Int!" + }, + { + "kind": "Literal", + "name": "width", + "value": 100, + "type": "Int!" + } + ], + "concreteType": "CroppedImageUrl", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": null, + "storageKey": null + } + ] + } + ] + }, + v0 + ] + } + ] + } +}; +})(); +(node as any).hash = 'a9738ea08755f945124085b68763957f'; +export default node; diff --git a/src/__generated__/TagArtworksContentQuery.graphql.ts b/src/__generated__/TagArtworksContentQuery.graphql.ts new file mode 100644 index 0000000000..1a8cbf5e53 --- /dev/null +++ b/src/__generated__/TagArtworksContentQuery.graphql.ts @@ -0,0 +1,652 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type TagArtworksContentQueryVariables = { + readonly filteredArtworksNodeID: string; + readonly count: number; + readonly cursor?: string | null; + readonly sort?: string | null; +}; +export type TagArtworksContentQueryResponse = { + readonly node: ({ + }) | null; +}; + + + +/* +query TagArtworksContentQuery( + $filteredArtworksNodeID: ID! + $count: Int! + $cursor: String + $sort: String +) { + node(__id: $filteredArtworksNodeID) { + __typename + ...TagArtworksContent_filtered_artworks_1G22uz + __id + } +} + +fragment TagArtworksContent_filtered_artworks_1G22uz on FilterArtworks { + __id + artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) { + pageInfo { + hasNextPage + endCursor + } + ...ArtworkGrid_artworks + edges { + node { + __id + __typename + } + cursor + } + } +} + +fragment ArtworkGrid_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...GridItem_artwork + } + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "filteredArtworksNodeID", + "type": "ID!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "count", + "type": "Int!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "sort", + "type": "String", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "__id", + "variableName": "filteredArtworksNodeID", + "type": "ID!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}; +return { + "kind": "Request", + "operationKind": "query", + "name": "TagArtworksContentQuery", + "id": null, + "text": "query TagArtworksContentQuery(\n $filteredArtworksNodeID: ID!\n $count: Int!\n $cursor: String\n $sort: String\n) {\n node(__id: $filteredArtworksNodeID) {\n __typename\n ...TagArtworksContent_filtered_artworks_1G22uz\n __id\n }\n}\n\nfragment TagArtworksContent_filtered_artworks_1G22uz on FilterArtworks {\n __id\n artworks: artworks_connection(first: $count, after: $cursor, sort: $sort) {\n pageInfo {\n hasNextPage\n endCursor\n }\n ...ArtworkGrid_artworks\n edges {\n node {\n __id\n __typename\n }\n cursor\n }\n }\n}\n\nfragment ArtworkGrid_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...GridItem_artwork\n }\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "TagArtworksContentQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "TagArtworksContent_filtered_artworks", + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count", + "type": null + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor", + "type": null + } + ] + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "TagArtworksContentQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": v1, + "concreteType": null, + "plural": false, + "selections": [ + v3, + v2, + { + "kind": "InlineFragment", + "type": "FilterArtworks", + "selections": [ + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + }, + v3 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artworks", + "name": "artworks_connection", + "args": [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor", + "type": "String" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count", + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "handle": "connection", + "key": "TagArtworksContent_filtered_artworks", + "filters": [ + "sort" + ] + } + ] + } + ] + } + ] + } +}; +})(); +(node as any).hash = '33f06979a056635012f1d3e4839b3761'; +export default node; diff --git a/src/__generated__/TagArtworksContent_filtered_artworks.graphql.ts b/src/__generated__/TagArtworksContent_filtered_artworks.graphql.ts new file mode 100644 index 0000000000..420a87f169 --- /dev/null +++ b/src/__generated__/TagArtworksContent_filtered_artworks.graphql.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type TagArtworksContent_filtered_artworks = { + readonly __id: string; + readonly artworks: ({ + readonly pageInfo: { + readonly hasNextPage: boolean; + readonly endCursor: string | null; + }; + readonly edges: ReadonlyArray<({ + readonly node: ({ + readonly __id: string; + }) | null; + }) | null> | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "TagArtworksContent_filtered_artworks", + "type": "FilterArtworks", + "metadata": { + "connection": [ + { + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": [ + "artworks" + ] + } + ] + }, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "count", + "type": "Int", + "defaultValue": 10 + }, + { + "kind": "LocalArgument", + "name": "cursor", + "type": "String", + "defaultValue": "" + }, + { + "kind": "RootArgument", + "name": "sort", + "type": "String" + } + ], + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "__TagArtworksContent_filtered_artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "FragmentSpread", + "name": "ArtworkGrid_artworks", + "args": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + v0, + { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + } + ] +}; +})(); +(node as any).hash = '599690948d2873b58b17f44515d12fab'; +export default node; diff --git a/src/__generated__/TagArtworks_tag.graphql.ts b/src/__generated__/TagArtworks_tag.graphql.ts new file mode 100644 index 0000000000..d225cf3810 --- /dev/null +++ b/src/__generated__/TagArtworks_tag.graphql.ts @@ -0,0 +1,205 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type ArtworkAggregation = "COLOR" | "DIMENSION_RANGE" | "FOLLOWED_ARTISTS" | "GALLERY" | "INSTITUTION" | "MAJOR_PERIOD" | "MEDIUM" | "MERCHANDISABLE_ARTISTS" | "PARTNER_CITY" | "PERIOD" | "PRICE_RANGE" | "TOTAL" | "%future added value"; +export type TagArtworks_tag = { + readonly id: string; + readonly filtered_artworks: ({ + readonly aggregations: ReadonlyArray<({ + readonly slice: ArtworkAggregation | null; + readonly counts: ReadonlyArray<({ + readonly name: string | null; + readonly id: string; + }) | null> | null; + }) | null> | null; + readonly facet: ({ + }) | null; + }) | null; +}; + + + +const node: ConcreteFragment = (function(){ +var v0 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v1 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}; +return { + "kind": "Fragment", + "name": "TagArtworks_tag", + "type": "Tag", + "metadata": null, + "argumentDefinitions": [ + { + "kind": "LocalArgument", + "name": "for_sale", + "type": "Boolean", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "medium", + "type": "String", + "defaultValue": "*" + }, + { + "kind": "LocalArgument", + "name": "aggregations", + "type": "[ArtworkAggregation]", + "defaultValue": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ] + }, + { + "kind": "LocalArgument", + "name": "price_range", + "type": "String", + "defaultValue": "*" + }, + { + "kind": "LocalArgument", + "name": "dimension_range", + "type": "String", + "defaultValue": "*" + } + ], + "selections": [ + v0, + { + "kind": "LinkedField", + "alias": null, + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Variable", + "name": "aggregations", + "variableName": "aggregations", + "type": "[ArtworkAggregation]" + }, + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": "String" + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": "Boolean" + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": "String" + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": "String" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "TotalCount_filter_artworks", + "args": null + }, + { + "kind": "FragmentSpread", + "name": "TagArtworksContent_filtered_artworks", + "args": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null + }, + v0, + v1 + ] + }, + { + "kind": "FragmentSpread", + "name": "Dropdown_aggregation", + "args": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "facet", + "storageKey": null, + "args": null, + "concreteType": null, + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "Headline_facet", + "args": null + }, + v1 + ] + }, + v1 + ] + }, + v1 + ] +}; +})(); +(node as any).hash = 'e338dce3de7771de5f87d5d3605e6c19'; +export default node; diff --git a/src/__generated__/TagContentsArtworksQuery.graphql.ts b/src/__generated__/TagContentsArtworksQuery.graphql.ts new file mode 100644 index 0000000000..ba32c55be5 --- /dev/null +++ b/src/__generated__/TagContentsArtworksQuery.graphql.ts @@ -0,0 +1,866 @@ +/* tslint:disable */ + +import { ConcreteRequest } from "relay-runtime"; +export type TagContentsArtworksQueryVariables = { + readonly tagID: string; + readonly medium?: string | null; + readonly price_range?: string | null; + readonly sort?: string | null; + readonly for_sale?: boolean | null; + readonly dimension_range?: string | null; +}; +export type TagContentsArtworksQueryResponse = { + readonly tag: ({ + }) | null; +}; + + + +/* +query TagContentsArtworksQuery( + $tagID: String! + $medium: String + $price_range: String + $sort: String + $for_sale: Boolean + $dimension_range: String +) { + tag(id: $tagID) { + ...TagArtworks_tag_2wcu0m + __id + } +} + +fragment TagArtworks_tag_2wcu0m on Tag { + id + filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], for_sale: $for_sale, medium: $medium, price_range: $price_range, dimension_range: $dimension_range, size: 0) { + ...TotalCount_filter_artworks + ...TagArtworksContent_filtered_artworks + aggregations { + slice + counts { + name + id + __id + } + ...Dropdown_aggregation + } + facet { + __typename + ...Headline_facet + ... on Node { + __id + } + } + __id + } + __id +} + +fragment TotalCount_filter_artworks on FilterArtworks { + counts { + total + } + __id +} + +fragment TagArtworksContent_filtered_artworks on FilterArtworks { + __id + artworks: artworks_connection(first: 10, after: "", sort: $sort) { + pageInfo { + hasNextPage + endCursor + } + ...ArtworkGrid_artworks + edges { + node { + __id + __typename + } + cursor + } + } +} + +fragment Dropdown_aggregation on ArtworksAggregationResults { + slice + counts { + name + id + count + __id + } +} + +fragment Headline_facet on ArtworkFilterFacet { + ... on ArtworkFilterTag { + name + } + ... on ArtworkFilterGene { + name + } + ... on Node { + __id + } +} + +fragment ArtworkGrid_artworks on ArtworkConnection { + edges { + node { + __id + image { + aspect_ratio + } + ...GridItem_artwork + } + } +} + +fragment GridItem_artwork on Artwork { + image { + placeholder + url(version: "large") + aspect_ratio + } + href + ...Metadata_artwork + ...Save_artwork + __id +} + +fragment Metadata_artwork on Artwork { + ...Details_artwork + ...Contact_artwork + __id +} + +fragment Save_artwork on Artwork { + __id + id + is_saved +} + +fragment Details_artwork on Artwork { + href + title + date + sale_message + cultural_maker + artists(shallow: true) { + __id + href + name + } + collecting_institution + partner(shallow: true) { + name + href + __id + } + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + __id +} + +fragment Contact_artwork on Artwork { + _id + href + is_inquireable + sale { + is_auction + is_live_open + is_open + is_closed + __id + } + partner(shallow: true) { + type + __id + } + sale_artwork { + highest_bid { + display + __id: id + } + opening_bid { + display + } + counts { + bidder_positions + } + __id + } + __id +} +*/ + +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "LocalArgument", + "name": "tagID", + "type": "String!", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "medium", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "price_range", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "sort", + "type": "String", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "for_sale", + "type": "Boolean", + "defaultValue": null + }, + { + "kind": "LocalArgument", + "name": "dimension_range", + "type": "String", + "defaultValue": null + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "tagID", + "type": "String!" + } +], +v2 = { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null +}, +v3 = { + "kind": "ScalarField", + "alias": null, + "name": "id", + "args": null, + "storageKey": null +}, +v4 = { + "kind": "ScalarField", + "alias": null, + "name": "href", + "args": null, + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "shallow", + "value": true, + "type": "Boolean" + } +], +v6 = { + "kind": "ScalarField", + "alias": null, + "name": "name", + "args": null, + "storageKey": null +}, +v7 = { + "kind": "ScalarField", + "alias": null, + "name": "display", + "args": null, + "storageKey": null +}, +v8 = { + "kind": "ScalarField", + "alias": null, + "name": "__typename", + "args": null, + "storageKey": null +}, +v9 = [ + v6 +]; +return { + "kind": "Request", + "operationKind": "query", + "name": "TagContentsArtworksQuery", + "id": null, + "text": "query TagContentsArtworksQuery(\n $tagID: String!\n $medium: String\n $price_range: String\n $sort: String\n $for_sale: Boolean\n $dimension_range: String\n) {\n tag(id: $tagID) {\n ...TagArtworks_tag_2wcu0m\n __id\n }\n}\n\nfragment TagArtworks_tag_2wcu0m on Tag {\n id\n filtered_artworks(aggregations: [MEDIUM, TOTAL, PRICE_RANGE, DIMENSION_RANGE], for_sale: $for_sale, medium: $medium, price_range: $price_range, dimension_range: $dimension_range, size: 0) {\n ...TotalCount_filter_artworks\n ...TagArtworksContent_filtered_artworks\n aggregations {\n slice\n counts {\n name\n id\n __id\n }\n ...Dropdown_aggregation\n }\n facet {\n __typename\n ...Headline_facet\n ... on Node {\n __id\n }\n }\n __id\n }\n __id\n}\n\nfragment TotalCount_filter_artworks on FilterArtworks {\n counts {\n total\n }\n __id\n}\n\nfragment TagArtworksContent_filtered_artworks on FilterArtworks {\n __id\n artworks: artworks_connection(first: 10, after: \"\", sort: $sort) {\n pageInfo {\n hasNextPage\n endCursor\n }\n ...ArtworkGrid_artworks\n edges {\n node {\n __id\n __typename\n }\n cursor\n }\n }\n}\n\nfragment Dropdown_aggregation on ArtworksAggregationResults {\n slice\n counts {\n name\n id\n count\n __id\n }\n}\n\nfragment Headline_facet on ArtworkFilterFacet {\n ... on ArtworkFilterTag {\n name\n }\n ... on ArtworkFilterGene {\n name\n }\n ... on Node {\n __id\n }\n}\n\nfragment ArtworkGrid_artworks on ArtworkConnection {\n edges {\n node {\n __id\n image {\n aspect_ratio\n }\n ...GridItem_artwork\n }\n }\n}\n\nfragment GridItem_artwork on Artwork {\n image {\n placeholder\n url(version: \"large\")\n aspect_ratio\n }\n href\n ...Metadata_artwork\n ...Save_artwork\n __id\n}\n\nfragment Metadata_artwork on Artwork {\n ...Details_artwork\n ...Contact_artwork\n __id\n}\n\nfragment Save_artwork on Artwork {\n __id\n id\n is_saved\n}\n\nfragment Details_artwork on Artwork {\n href\n title\n date\n sale_message\n cultural_maker\n artists(shallow: true) {\n __id\n href\n name\n }\n collecting_institution\n partner(shallow: true) {\n name\n href\n __id\n }\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n __id\n}\n\nfragment Contact_artwork on Artwork {\n _id\n href\n is_inquireable\n sale {\n is_auction\n is_live_open\n is_open\n is_closed\n __id\n }\n partner(shallow: true) {\n type\n __id\n }\n sale_artwork {\n highest_bid {\n display\n __id: id\n }\n opening_bid {\n display\n }\n counts {\n bidder_positions\n }\n __id\n }\n __id\n}\n", + "metadata": {}, + "fragment": { + "kind": "Fragment", + "name": "TagContentsArtworksQuery", + "type": "Query", + "metadata": null, + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "tag", + "storageKey": null, + "args": v1, + "concreteType": "Tag", + "plural": false, + "selections": [ + { + "kind": "FragmentSpread", + "name": "TagArtworks_tag", + "args": [ + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": null + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": null + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": null + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": null + } + ] + }, + v2 + ] + } + ] + }, + "operation": { + "kind": "Operation", + "name": "TagContentsArtworksQuery", + "argumentDefinitions": v0, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "tag", + "storageKey": null, + "args": v1, + "concreteType": "Tag", + "plural": false, + "selections": [ + v3, + { + "kind": "LinkedField", + "alias": null, + "name": "filtered_artworks", + "storageKey": null, + "args": [ + { + "kind": "Literal", + "name": "aggregations", + "value": [ + "MEDIUM", + "TOTAL", + "PRICE_RANGE", + "DIMENSION_RANGE" + ], + "type": "[ArtworkAggregation]" + }, + { + "kind": "Variable", + "name": "dimension_range", + "variableName": "dimension_range", + "type": "String" + }, + { + "kind": "Variable", + "name": "for_sale", + "variableName": "for_sale", + "type": "Boolean" + }, + { + "kind": "Variable", + "name": "medium", + "variableName": "medium", + "type": "String" + }, + { + "kind": "Variable", + "name": "price_range", + "variableName": "price_range", + "type": "String" + }, + { + "kind": "Literal", + "name": "size", + "value": 0, + "type": "Int" + } + ], + "concreteType": "FilterArtworks", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "FilterArtworksCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "total", + "args": null, + "storageKey": null + } + ] + }, + v2, + { + "kind": "LinkedField", + "alias": "artworks", + "name": "artworks_connection", + "storageKey": null, + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "concreteType": "ArtworkConnection", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "pageInfo", + "storageKey": null, + "args": null, + "concreteType": "PageInfo", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "hasNextPage", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "endCursor", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "edges", + "storageKey": null, + "args": null, + "concreteType": "ArtworkEdge", + "plural": true, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "node", + "storageKey": null, + "args": null, + "concreteType": "Artwork", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "collecting_institution", + "args": null, + "storageKey": null + }, + v2, + v4, + { + "kind": "ScalarField", + "alias": null, + "name": "title", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "date", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "sale_message", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cultural_maker", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "artists", + "storageKey": "artists(shallow:true)", + "args": v5, + "concreteType": "Artist", + "plural": true, + "selections": [ + v2, + v4, + v6 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "image", + "storageKey": null, + "args": null, + "concreteType": "Image", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "aspect_ratio", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "placeholder", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "url", + "args": [ + { + "kind": "Literal", + "name": "version", + "value": "large", + "type": "[String]" + } + ], + "storageKey": "url(version:\"large\")" + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "partner", + "storageKey": "partner(shallow:true)", + "args": v5, + "concreteType": "Partner", + "plural": false, + "selections": [ + v6, + v4, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "type", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale", + "storageKey": null, + "args": null, + "concreteType": "Sale", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "is_auction", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_live_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_open", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_closed", + "args": null, + "storageKey": null + }, + v2 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "_id", + "args": null, + "storageKey": null + }, + { + "kind": "ScalarField", + "alias": null, + "name": "is_inquireable", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "sale_artwork", + "storageKey": null, + "args": null, + "concreteType": "SaleArtwork", + "plural": false, + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "highest_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkHighestBid", + "plural": false, + "selections": [ + v7, + { + "kind": "ScalarField", + "alias": "__id", + "name": "id", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "opening_bid", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkOpeningBid", + "plural": false, + "selections": [ + v7 + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "SaleArtworkCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "bidder_positions", + "args": null, + "storageKey": null + } + ] + }, + v2 + ] + }, + v3, + { + "kind": "ScalarField", + "alias": null, + "name": "is_saved", + "args": null, + "storageKey": null + }, + v8 + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "cursor", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedHandle", + "alias": "artworks", + "name": "artworks_connection", + "args": [ + { + "kind": "Literal", + "name": "after", + "value": "", + "type": "String" + }, + { + "kind": "Literal", + "name": "first", + "value": 10, + "type": "Int" + }, + { + "kind": "Variable", + "name": "sort", + "variableName": "sort", + "type": "String" + } + ], + "handle": "connection", + "key": "TagArtworksContent_filtered_artworks", + "filters": [ + "sort" + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "aggregations", + "storageKey": null, + "args": null, + "concreteType": "ArtworksAggregationResults", + "plural": true, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "slice", + "args": null, + "storageKey": null + }, + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "AggregationCount", + "plural": true, + "selections": [ + v6, + v3, + v2, + { + "kind": "ScalarField", + "alias": null, + "name": "count", + "args": null, + "storageKey": null + } + ] + } + ] + }, + { + "kind": "LinkedField", + "alias": null, + "name": "facet", + "storageKey": null, + "args": null, + "concreteType": null, + "plural": false, + "selections": [ + v8, + v2, + { + "kind": "InlineFragment", + "type": "ArtworkFilterGene", + "selections": v9 + }, + { + "kind": "InlineFragment", + "type": "ArtworkFilterTag", + "selections": v9 + } + ] + } + ] + }, + v2 + ] + } + ] + } +}; +})(); +(node as any).hash = 'e33a81fd24cb0cb5cabdfb7d8c812595'; +export default node; diff --git a/src/__generated__/TotalCount_filter_artworks.graphql.ts b/src/__generated__/TotalCount_filter_artworks.graphql.ts new file mode 100644 index 0000000000..29f488bdef --- /dev/null +++ b/src/__generated__/TotalCount_filter_artworks.graphql.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ + +import { ConcreteFragment } from "relay-runtime"; +export type TotalCount_filter_artworks = { + readonly counts: ({ + readonly total: any | null; + }) | null; +}; + + + +const node: ConcreteFragment = { + "kind": "Fragment", + "name": "TotalCount_filter_artworks", + "type": "FilterArtworks", + "metadata": null, + "argumentDefinitions": [], + "selections": [ + { + "kind": "LinkedField", + "alias": null, + "name": "counts", + "storageKey": null, + "args": null, + "concreteType": "FilterArtworksCounts", + "plural": false, + "selections": [ + { + "kind": "ScalarField", + "alias": null, + "name": "total", + "args": null, + "storageKey": null + } + ] + }, + { + "kind": "ScalarField", + "alias": null, + "name": "__id", + "args": null, + "storageKey": null + } + ] +}; +(node as any).hash = 'ef252545faa2dcdc0445805a52f4e7c0'; +export default node; diff --git a/src/__stories__/config.js b/src/__stories__/config.js index db8e1cdbfe..aaa8f14645 100644 --- a/src/__stories__/config.js +++ b/src/__stories__/config.js @@ -1,6 +1,4 @@ -const { - configure -} = require("@storybook/react") +const { configure } = require("@storybook/react") const Events = require("../Utils/Events").default const req = require.context("../", true, /\.story\.tsx$/) @@ -14,7 +12,6 @@ Events.onEvent(data => { console.log("Tracked event", data) }) - // TODO: Fix the below // setOptions({ // name: "Reaction", diff --git a/yarn.lock b/yarn.lock index bece1477ef..c242374d96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -35,6 +35,13 @@ version "3.0.9" resolved "https://registry.yarnpkg.com/@hypnosphi/fuse.js/-/fuse.js-3.0.9.tgz#ea99f6121b4a8f065b4c71f85595db2714498807" +"@mrmlnc/readdir-enhanced@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" + dependencies: + call-me-maybe "^1.0.1" + glob-to-regexp "^0.3.0" + "@playlyfe/gql@^2.3.2": version "2.4.0" resolved "https://registry.yarnpkg.com/@playlyfe/gql/-/gql-2.4.0.tgz#0de605904a49e9a57e82695660188c4f08ddad42" @@ -285,9 +292,9 @@ "@types/node" "*" "@types/react" "*" -"@types/react-relay@^1.3.1": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@types/react-relay/-/react-relay-1.3.1.tgz#955dc7c2575079302a5306c78e0defc799f058b5" +"@types/react-relay@^1.3.3": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@types/react-relay/-/react-relay-1.3.4.tgz#330e6038c43ae48fa1e49a10b9640e8e038c43a7" dependencies: "@types/react" "*" "@types/relay-runtime" "*" @@ -308,10 +315,14 @@ version "16.0.31" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.31.tgz#5285da62f3ac62b797f6d0729a1d6181f3180c3e" -"@types/relay-runtime@*", "@types/relay-runtime@^1.3.0": +"@types/relay-runtime@*": version "1.3.1" resolved "https://registry.yarnpkg.com/@types/relay-runtime/-/relay-runtime-1.3.1.tgz#609bfff289f468c230f15d63ceb84a0c824437e6" +"@types/relay-runtime@^1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@types/relay-runtime/-/relay-runtime-1.3.2.tgz#eee87232fe1a60fb08183fcb43434ed4b4fe2b83" + "@types/storybook__react@^3.0.5": version "3.0.5" resolved "https://registry.yarnpkg.com/@types/storybook__react/-/storybook__react-3.0.5.tgz#aea4d67146a59de9cf5bacfe8bd24f7abd6128a6" @@ -383,6 +394,10 @@ ajv-keywords@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0" +ajv-keywords@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.1.0.tgz#ac2b27939c543e95d2c06e7f7f5c27be4aa543be" + ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5: version "5.2.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.2.0.tgz#c1735024c5da2ef75cc190713073d44f098bf486" @@ -392,6 +407,14 @@ ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5: json-schema-traverse "^0.3.0" json-stable-stringify "^1.0.1" +ajv@^6.1.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.1.1.tgz#978d597fbc2b7d0e5a5c3ddeb149a682f2abfa0e" + dependencies: + fast-deep-equal "^1.0.0" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.3.0" + align-text@^0.1.1, align-text@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" @@ -414,6 +437,12 @@ ansi-align@^1.1.0: dependencies: string-width "^1.0.1" +ansi-align@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" + dependencies: + string-width "^2.0.0" + ansi-escapes@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" @@ -624,7 +653,7 @@ async-done@^1.0.0: process-nextick-args "^1.0.7" stream-exhaust "^1.0.1" -async-each@^1.0.0, async-each@^1.0.1: +async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" @@ -642,6 +671,12 @@ async@^2.1.2, async@^2.1.4: dependencies: lodash "^4.14.0" +async@^2.4.1: + version "2.6.0" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4" + dependencies: + lodash "^4.14.0" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -676,18 +711,6 @@ autoprefixer@^7.2.3: postcss "^6.0.14" postcss-value-parser "^3.2.3" -awesome-typescript-loader@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/awesome-typescript-loader/-/awesome-typescript-loader-3.1.2.tgz#3df192b91a6285f795ca65e63aad114fbb44f710" - dependencies: - colors "^1.1.2" - enhanced-resolve "^3.1.0" - loader-utils "^1.0.2" - lodash "^4.17.4" - mkdirp "^0.5.1" - object-assign "^4.1.1" - source-map-support "^0.4.11" - aws-sign2@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" @@ -760,19 +783,6 @@ babel-core@^6.24.0: slash "^1.0.0" source-map "^0.5.0" -babel-generator@6.25.0, babel-generator@^6.24.0: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.25.0.tgz#33a1af70d5f2890aeb465a4a7793c1df6a9ea9fc" - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-types "^6.25.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.2.0" - source-map "^0.5.0" - trim-right "^1.0.1" - babel-generator@^6.18.0, babel-generator@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.0.tgz#ac1ae20070b79f6e3ca1d3269613053774f20dc5" @@ -786,6 +796,19 @@ babel-generator@^6.18.0, babel-generator@^6.26.0: source-map "^0.5.6" trim-right "^1.0.1" +babel-generator@^6.24.0: + version "6.25.0" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.25.0.tgz#33a1af70d5f2890aeb465a4a7793c1df6a9ea9fc" + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.25.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + babel-helper-bindify-decorators@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330" @@ -1139,13 +1162,13 @@ babel-plugin-react-docgen@^1.8.0: lodash "4.x.x" react-docgen "^2.15.0" -"babel-plugin-relay@https://github.com/alloy/relay/releases/download/v1.3.0-artsy/babel-plugin-relay-1.3.0-artsy.1.tgz": - version "1.3.0" - resolved "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/babel-plugin-relay-1.3.0-artsy.1.tgz#39b21a10303e80177f43b0e4b7d733d5f2b0ab26" +"babel-plugin-relay@https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/babel-plugin-relay-1.5.0-artsy.3.tgz": + version "1.5.0-artsy.3" + resolved "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/babel-plugin-relay-1.5.0-artsy.3.tgz#5e22fd4eadd1b24e9f89128f9bb2f9f4ec7ab082" dependencies: babel-runtime "^6.23.0" - babel-types "^6.23.0" - graphql "^0.10.5" + babel-types "^6.24.1" + graphql "^0.13.0" babel-plugin-styled-components@^1.4.0: version "1.5.0" @@ -1617,13 +1640,13 @@ babel-plugin-transform-undefined-to-void@^6.8.3: version "6.8.3" resolved "https://registry.yarnpkg.com/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.8.3.tgz#fc52707f6ee1ddc71bb91b0d314fbefdeef9beb4" -babel-polyfill@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.23.0.tgz#8364ca62df8eafb830499f699177466c3b03499d" +babel-polyfill@^6.20.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" dependencies: - babel-runtime "^6.22.0" - core-js "^2.4.0" - regenerator-runtime "^0.10.0" + babel-runtime "^6.26.0" + core-js "^2.5.0" + regenerator-runtime "^0.10.5" babel-preset-env@1.6.1, babel-preset-env@^1.6.1: version "1.6.1" @@ -1689,7 +1712,7 @@ babel-preset-es2015@^6.22.0: babel-plugin-transform-es2015-unicode-regex "^6.22.0" babel-plugin-transform-regenerator "^6.22.0" -babel-preset-fbjs@^2.1.0: +babel-preset-fbjs@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-2.1.4.tgz#22f358e6654073acf61e47a052a777d7bccf03af" dependencies: @@ -1911,20 +1934,6 @@ babel-template@^6.2.0, babel-template@^6.23.0: babylon "^6.11.0" lodash "^4.2.0" -babel-traverse@6.25.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: - version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.25.0.tgz#2257497e2fcd19b89edc13c4c91381f9512496f1" - dependencies: - babel-code-frame "^6.22.0" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-types "^6.25.0" - babylon "^6.17.2" - debug "^2.2.0" - globals "^9.0.0" - invariant "^2.2.0" - lodash "^4.2.0" - babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.24.1, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" @@ -1939,14 +1948,19 @@ babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.24.1, babel-tr invariant "^2.2.2" lodash "^4.17.4" -babel-types@6.25.0, babel-types@^6.25.0: +babel-traverse@^6.23.0, babel-traverse@^6.23.1: version "6.25.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.25.0.tgz#70afb248d5660e5d18f811d91c8303b54134a18e" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.25.0.tgz#2257497e2fcd19b89edc13c4c91381f9512496f1" dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" babel-runtime "^6.22.0" - esutils "^2.0.2" + babel-types "^6.25.0" + babylon "^6.17.2" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" lodash "^4.2.0" - to-fast-properties "^1.0.1" babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.22.0, babel-types@^6.24.1, babel-types@^6.26.0: version "6.26.0" @@ -1966,10 +1980,23 @@ babel-types@^6.2.0, babel-types@^6.23.0: lodash "^4.2.0" to-fast-properties "^1.0.1" -babylon@6.18.0, babylon@^6.11.0, babylon@^6.17.2, babylon@^6.18.0: +babel-types@^6.25.0: + version "6.25.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.25.0.tgz#70afb248d5660e5d18f811d91c8303b54134a18e" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + +babylon@^6.11.0, babylon@^6.17.2, babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" +babylon@^7.0.0-beta: + version "7.0.0-beta.40" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.40.tgz#91fc8cd56d5eb98b28e6fde41045f2957779940a" + babylon@~5.8.3: version "5.8.38" resolved "https://registry.yarnpkg.com/babylon/-/babylon-5.8.38.tgz#ec9b120b11bf6ccd4173a18bf217e60b79859ffd" @@ -1994,25 +2021,6 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -bash-glob@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bash-glob/-/bash-glob-1.0.2.tgz#95ac5631fdd7a8fc569f267167a84eb831979a1b" - dependencies: - async-each "^1.0.1" - bash-path "^1.0.1" - component-emitter "^1.2.1" - cross-spawn "^5.1.0" - extend-shallow "^2.0.1" - is-extglob "^2.1.1" - is-glob "^4.0.0" - -bash-path@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/bash-path/-/bash-path-1.0.3.tgz#dbc9efbdf18b1c11413dcb59b960e6aa56c84258" - dependencies: - arr-union "^3.1.0" - is-windows "^1.0.1" - batch-processor@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/batch-processor/-/batch-processor-1.0.0.tgz#75c95c32b748e0850d10c2b168f6bdbe9891ace8" @@ -2092,6 +2100,18 @@ boxen@^1.0.0: term-size "^0.1.0" widest-line "^1.0.0" +boxen@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" + dependencies: + ansi-align "^2.0.0" + camelcase "^4.0.0" + chalk "^2.0.1" + cli-boxes "^1.0.0" + string-width "^2.0.0" + term-size "^1.2.0" + widest-line "^2.0.0" + brace-expansion@^1.0.0, brace-expansion@^1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" @@ -2265,6 +2285,15 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +cache-loader@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/cache-loader/-/cache-loader-1.2.0.tgz#cdc313ae53b3c13ce8ee0c9296cf16c736b15252" + dependencies: + async "^2.4.1" + loader-utils "^1.1.0" + mkdirp "^0.5.1" + schema-utils "^0.4.2" + call-me-maybe@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" @@ -3308,16 +3337,7 @@ end-of-stream@~0.1.5: dependencies: once "~1.3.0" -enhanced-resolve@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.1.0.tgz#9f4b626f577245edcf4b2ad83d86e17f4f421dec" - dependencies: - graceful-fs "^4.1.2" - memory-fs "^0.4.0" - object-assign "^4.0.1" - tapable "^0.2.5" - -enhanced-resolve@^3.4.0: +enhanced-resolve@^3.0.0, enhanced-resolve@^3.4.0: version "3.4.1" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" dependencies: @@ -3440,10 +3460,6 @@ es6-map@^0.1.3: es6-symbol "~3.1.1" event-emitter "~0.3.5" -es6-promise@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.1.1.tgz#8811e90915d9a0dba36274f0b242dbda78f9c92a" - es6-set@~0.1.5: version "0.1.5" resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" @@ -3737,14 +3753,18 @@ fast-deep-equal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff" -fast-glob@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-1.0.1.tgz#30f9b1120fd57a7f172364a6458fbdbd98187b3c" +fast-glob@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.0.4.tgz#a4b9f49e36175f5ef1a3456f580226a6e7abcc9e" dependencies: - bash-glob "^1.0.1" - glob-parent "^3.1.0" - micromatch "^3.0.3" - readdir-enhanced "^1.5.2" + "@mrmlnc/readdir-enhanced" "^2.2.1" + glob-parent "3.1.0" + merge2 "1.2.1" + micromatch "3.1.5" + +fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" fast-levenshtein@~2.0.4: version "2.0.6" @@ -3764,7 +3784,7 @@ fb-watchman@2.0.0, fb-watchman@^2.0.0: dependencies: bser "^2.0.0" -fbjs@^0.8.1, fbjs@^0.8.12, fbjs@^0.8.16, fbjs@^0.8.4, fbjs@^0.8.5, fbjs@^0.8.9: +fbjs@^0.8.12, fbjs@^0.8.14, fbjs@^0.8.16, fbjs@^0.8.4, fbjs@^0.8.5, fbjs@^0.8.9: version "0.8.16" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" dependencies: @@ -3934,6 +3954,27 @@ forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" +fork-ts-checker-notifier-webpack-plugin@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/fork-ts-checker-notifier-webpack-plugin/-/fork-ts-checker-notifier-webpack-plugin-0.2.0.tgz#82ef141def4a0755a6a019b50c7f1209c9fb0105" + dependencies: + node-notifier "^5.1.2" + +fork-ts-checker-webpack-plugin@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-0.3.0.tgz#3c7339b981f9194c89f38c223258e0c702f99369" + dependencies: + babel-code-frame "^6.22.0" + chalk "^1.1.3" + chokidar "^1.7.0" + lodash.endswith "^4.2.1" + lodash.isfunction "^3.0.8" + lodash.isstring "^4.0.1" + lodash.startswith "^4.2.1" + minimatch "^3.0.4" + resolve "^1.5.0" + vue-parser "^1.1.5" + form-data@^2.3.1, form-data@~2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.1.tgz#6fb94fbd71885306d73d15cc497fe4cc4ecd44bf" @@ -3964,6 +4005,14 @@ fs-exists-sync@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" +fs-extra@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -4102,19 +4151,19 @@ glob-base@^0.3.0: glob-parent "^2.0.0" is-glob "^2.0.0" -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - dependencies: - is-glob "^2.0.0" - -glob-parent@^3.0.0, glob-parent@^3.0.1, glob-parent@^3.1.0: +glob-parent@3.1.0, glob-parent@^3.0.0, glob-parent@^3.0.1: version "3.1.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" dependencies: is-glob "^3.1.0" path-dirname "^1.0.0" +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + glob-stream@^3.1.5: version "3.1.18" resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-3.1.18.tgz#9170a5f12b790306fdfe598f313f8f7954fd143b" @@ -4221,6 +4270,12 @@ glob@~3.1.21: inherits "1" minimatch "~0.2.11" +global-dirs@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" + dependencies: + ini "^1.3.4" + global-modules@^0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d" @@ -4282,7 +4337,7 @@ got@^6.7.1: unzip-response "^2.0.1" url-parse-lax "^1.0.0" -graceful-fs@4.X, graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2: +graceful-fs@4.X, graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -4339,17 +4394,11 @@ graphql-language-service-utils@0.0.10: graphql "^0.9.6" graphql-language-service-types "0.0.16" -"graphql@0.7.1 - 1.0.0", graphql@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.10.5.tgz#c9be17ca2bdfdbd134077ffd9bbaa48b8becd298" - dependencies: - iterall "^1.1.0" - -graphql@0.9.6, graphql@^0.9.5, graphql@^0.9.6: - version "0.9.6" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.9.6.tgz#514421e9d225c29dfc8fd305459abae58815ef2c" +"graphql@0.7.1 - 1.0.0", graphql@0.9.6, graphql@^0.12.3, graphql@^0.13.0, graphql@^0.9.5, graphql@^0.9.6: + version "0.12.3" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.12.3.tgz#11668458bbe28261c0dcb6e265f515ba79f6ce07" dependencies: - iterall "^1.0.0" + iterall "1.1.3" growly@^1.3.0: version "1.3.0" @@ -4745,10 +4794,22 @@ ieee754@^1.1.4: version "1.1.8" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" +immutable@^3.7.6: + version "3.8.2" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" + immutable@^3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2" +immutable@~3.7.6: + version "3.7.6" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" + +import-lazy@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" + import-local@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" @@ -4946,7 +5007,7 @@ is-extglob@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" -is-extglob@^2.1.0, is-extglob@^2.1.1: +is-extglob@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -4986,11 +5047,12 @@ is-glob@^3.1.0: dependencies: is-extglob "^2.1.0" -is-glob@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" +is-installed-globally@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" dependencies: - is-extglob "^2.1.1" + global-dirs "^0.1.0" + is-path-inside "^1.0.0" is-lower-case@^1.1.0: version "1.1.3" @@ -5024,6 +5086,12 @@ is-odd@^1.0.0: dependencies: is-number "^3.0.0" +is-path-inside@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" + dependencies: + path-is-inside "^1.0.1" + is-plain-obj@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -5124,10 +5192,6 @@ is-windows@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c" -is-windows@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9" - isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" @@ -5228,7 +5292,7 @@ istanbul-reports@^1.1.3: dependencies: handlebars "^4.0.3" -iterall@^1.0.0, iterall@^1.1.0: +iterall@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.3.tgz#1cbbff96204056dde6656e2ed2e2226d0e6d72c9" @@ -5609,6 +5673,12 @@ json5@0.5.1, json5@^0.5.0, json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + optionalDependencies: + graceful-fs "^4.1.6" + jsonify@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" @@ -5926,6 +5996,10 @@ lodash.defaults@~2.4.1: lodash._objecttypes "~2.4.1" lodash.keys "~2.4.1" +lodash.endswith@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/lodash.endswith/-/lodash.endswith-4.2.1.tgz#fed59ac1738ed3e236edd7064ec456448b37bc09" + lodash.escape@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698" @@ -5960,6 +6034,10 @@ lodash.isequal@^4.0.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" +lodash.isfunction@^3.0.8: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" + lodash.isobject@~2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-2.4.1.tgz#5a2e47fe69953f1ee631a7eba1fe64d2d06558f5" @@ -6018,6 +6096,10 @@ lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" +lodash.startswith@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/lodash.startswith/-/lodash.startswith-4.2.1.tgz#c598c4adce188a27e53145731cdc6c0e7177600c" + lodash.template@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-2.4.1.tgz#9e611007edf629129a974ab3c48b817b3e1cf20d" @@ -6221,6 +6303,10 @@ merge-stream@^1.0.0, merge-stream@^1.0.1: dependencies: readable-stream "^2.0.1" +merge2@1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.1.tgz#271d2516ff52d4af7f7b710b8bf3e16e183fef66" + merge@^1.1.3: version "1.2.0" resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" @@ -6229,6 +6315,24 @@ methods@^1.1.1, methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" +micromatch@3.1.5, micromatch@^3.1.4: + version "3.1.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.5.tgz#d05e168c206472dfbca985bfef4f57797b4cd4ba" + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.0" + define-property "^1.0.0" + extend-shallow "^2.0.1" + extglob "^2.0.2" + fragment-cache "^0.2.1" + kind-of "^6.0.0" + nanomatch "^1.2.5" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7: version "2.3.11" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" @@ -6247,24 +6351,6 @@ micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7: parse-glob "^3.0.4" regex-cache "^0.4.2" -micromatch@^3.0.3: - version "3.1.4" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.4.tgz#bb812e741a41f982c854e42b421a7eac458796f4" - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.0" - define-property "^1.0.0" - extend-shallow "^2.0.1" - extglob "^2.0.2" - fragment-cache "^0.2.1" - kind-of "^6.0.0" - nanomatch "^1.2.5" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - miller-rabin@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.0.tgz#4a62fb1d42933c05583982f4c716f6fb9e6c6d3d" @@ -6797,7 +6883,7 @@ os-locale@^2.0.0: lcid "^1.0.0" mem "^1.1.0" -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -6899,6 +6985,12 @@ parse5@^3.0.1: dependencies: "@types/node" "^6.0.46" +parse5@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-3.0.3.tgz#042f792ffdd36851551cf4e9e066b3874ab45b5c" + dependencies: + "@types/node" "*" + parseurl@~1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" @@ -6914,6 +7006,19 @@ pascalcase@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" +patch-package@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-5.1.1.tgz#e5e82fe08bed760b773b8eb73a7bcb7c1634f802" + dependencies: + chalk "^1.1.3" + cross-spawn "^5.1.0" + fs-extra "^4.0.1" + minimist "^1.2.0" + rimraf "^2.6.1" + slash "^1.0.0" + tmp "^0.0.31" + update-notifier "^2.2.0" + path-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" @@ -6942,6 +7047,10 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + path-key@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/path-key/-/path-key-1.0.0.tgz#5d53d578019646c0d68800db4e146e6bdc2ac7af" @@ -7311,6 +7420,10 @@ postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.14: source-map "^0.6.1" supports-color "^4.4.0" +postinstall-prepare@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/postinstall-prepare/-/postinstall-prepare-1.0.1.tgz#dac9b5d91b054389141b13c0192eb68a0aa002b5" + prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -7599,15 +7712,14 @@ react-modal@^3.1.8: prop-types "^15.5.10" warning "^3.0.0" -"react-relay@https://github.com/alloy/relay/releases/download/v1.3.0-artsy/react-relay-1.3.0-artsy.1.tgz": - version "1.3.0" - resolved "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/react-relay-1.3.0-artsy.1.tgz#24e2f9a27950e71350cd9639a1df66c5ef522f1f" +"react-relay@https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/react-relay-1.5.0-artsy.3.tgz": + version "1.5.0-artsy.3" + resolved "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/react-relay-1.5.0-artsy.3.tgz#a060ff5e401cd2a91dc9fe08d42777ad968e6e3e" dependencies: babel-runtime "^6.23.0" - fbjs "^0.8.1" + fbjs "^0.8.14" prop-types "^15.5.8" - react-static-container "^1.0.1" - relay-runtime "1.3.0" + relay-runtime "1.5.0-artsy.3" react-responsive-decorator@^0.0.1: version "0.0.1" @@ -7648,10 +7760,6 @@ react-split-pane@^0.1.71: prop-types "^15.5.10" react-style-proptype "^3.0.0" -react-static-container@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/react-static-container/-/react-static-container-1.0.1.tgz#694c0dd68a896b879519afb548399cc1989c9ab0" - react-style-proptype@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/react-style-proptype/-/react-style-proptype-3.0.0.tgz#89e0b646f266c656abb0f0dd8202dbd5036c31e6" @@ -7814,14 +7922,6 @@ readable-stream@~2.1.0: string_decoder "~0.10.x" util-deprecate "~1.0.1" -readdir-enhanced@^1.5.2: - version "1.5.2" - resolved "https://registry.yarnpkg.com/readdir-enhanced/-/readdir-enhanced-1.5.2.tgz#61463048690ac6a455b75b62fa78a88f8dc85e53" - dependencies: - call-me-maybe "^1.0.1" - es6-promise "^4.1.0" - glob-to-regexp "^0.3.0" - readdirp@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" @@ -7890,6 +7990,10 @@ regenerator-runtime@^0.10.0: version "0.10.3" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" +regenerator-runtime@^0.10.5: + version "0.10.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" + regenerator-runtime@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" @@ -7953,39 +8057,40 @@ regjsparser@^0.1.4: dependencies: jsesc "~0.5.0" -"relay-compiler@https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-compiler-1.3.0-artsy.1.tgz": - version "1.3.0" - resolved "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-compiler-1.3.0-artsy.1.tgz#90c5e84300eac1728c66298b1cd40fedee82ef1d" +relay-compiler-language-typescript@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/relay-compiler-language-typescript/-/relay-compiler-language-typescript-0.9.0.tgz#3a9967bcb8e1ca467fd7c20d2ea5a200fa98c6a5" dependencies: - babel-generator "6.25.0" - babel-polyfill "^6.23.0" - babel-preset-fbjs "^2.1.0" + immutable "^3.7.6" + invariant "^2.2.2" + +"relay-compiler@https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-compiler-1.5.0-artsy.3.tgz": + version "1.5.0-artsy.3" + resolved "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-compiler-1.5.0-artsy.3.tgz#d37ae8938833f9e7b753bf8907c8ca4cb8a653d6" + dependencies: + babel-generator "^6.26.0" + babel-polyfill "^6.20.0" + babel-preset-fbjs "^2.1.4" babel-runtime "^6.23.0" - babel-traverse "6.25.0" - babel-types "6.25.0" - babylon "6.18.0" - chalk "^1.1.3" - fast-glob "^1.0.1" + babel-traverse "^6.26.0" + babel-types "^6.24.1" + babylon "^7.0.0-beta" + chalk "^1.1.1" + fast-glob "^2.0.0" fb-watchman "^2.0.0" - fbjs "^0.8.1" - graphql "^0.10.5" - immutable "^3.8.1" - relay-runtime "1.3.0" + fbjs "^0.8.14" + graphql "^0.13.0" + immutable "~3.7.6" + relay-runtime "1.5.0-artsy.3" signedsource "^1.0.0" - typescript "^2.3.2" - yargs "^7.0.2" + yargs "^9.0.0" -relay-debugger-react-native-runtime@^0.0.9: - version "0.0.9" - resolved "https://registry.yarnpkg.com/relay-debugger-react-native-runtime/-/relay-debugger-react-native-runtime-0.0.9.tgz#f9da4bb1f4f4a62189775d3850a18df1d528a4f1" - -relay-runtime@1.3.0, "relay-runtime@https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-runtime-artsy.1.tgz": - version "1.3.0" - resolved "https://github.com/alloy/relay/releases/download/v1.3.0-artsy/relay-runtime-artsy.1.tgz#edf42a4ddfce3a0edbf79ff41a416aa4f4fc079d" +relay-runtime@1.5.0-artsy.3, "relay-runtime@https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-runtime-1.5.0-artsy.3.tgz": + version "1.5.0-artsy.3" + resolved "https://github.com/alloy/relay/releases/download/v1.5.0-artsy.3/relay-runtime-1.5.0-artsy.3.tgz#ae6a633ab734d9b393a1d3b1e06a9887b4b6da60" dependencies: babel-runtime "^6.23.0" - fbjs "^0.8.1" - relay-debugger-react-native-runtime "^0.0.9" + fbjs "^0.8.14" remove-trailing-separator@^1.0.1: version "1.0.1" @@ -8097,6 +8202,12 @@ resolve@^1.0.0, resolve@^1.1.6, resolve@^1.1.7: dependencies: path-parse "^1.0.5" +resolve@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36" + dependencies: + path-parse "^1.0.5" + restore-cursor@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" @@ -8187,6 +8298,13 @@ schema-utils@^0.3.0: dependencies: ajv "^5.0.0" +schema-utils@^0.4.2: + version "0.4.5" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.5.tgz#21836f0608aac17b78f9e3e24daff14a5ca13a3e" + dependencies: + ajv "^6.1.0" + ajv-keywords "^3.1.0" + semver-diff@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" @@ -8201,7 +8319,7 @@ semver@^4.1.0: version "4.3.6" resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da" -semver@^5.4.1: +semver@^5.0.1, semver@^5.4.1: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" @@ -8433,18 +8551,18 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.4.11, source-map-support@^0.4.2: - version "0.4.14" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.14.tgz#9d4463772598b86271b4f523f6c1f4e02a7d6aef" - dependencies: - source-map "^0.5.6" - source-map-support@^0.4.15: version "0.4.18" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" dependencies: source-map "^0.5.6" +source-map-support@^0.4.2: + version "0.4.14" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.14.tgz#9d4463772598b86271b4f523f6c1f4e02a7d6aef" + dependencies: + source-map "^0.5.6" + source-map-support@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.3.tgz#2b3d5fff298cfa4d1afd7d4352d569e9a0158e76" @@ -8837,7 +8955,7 @@ symbol-tree@^3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" -tapable@^0.2.5, tapable@^0.2.7: +tapable@^0.2.7: version "0.2.7" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.7.tgz#e46c0daacbb2b8a98b9b0cea0f4052105817ed5c" @@ -8875,6 +8993,12 @@ term-size@^0.1.0: dependencies: execa "^0.4.0" +term-size@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" + dependencies: + execa "^0.7.0" + test-exclude@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.1.1.tgz#4d84964b0966b0087ecc334a2ce002d3d9341e26" @@ -8959,6 +9083,12 @@ title-case@^2.1.0: no-case "^2.2.0" upper-case "^1.0.3" +tmp@^0.0.31: + version "0.0.31" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7" + dependencies: + os-tmpdir "~1.0.1" + tmpl@1.0.x: version "1.0.4" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" @@ -9030,6 +9160,16 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" +ts-loader@^3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-3.5.0.tgz#151d004dcddb4cf8e381a3bf9d6b74c2d957a9c0" + dependencies: + chalk "^2.3.0" + enhanced-resolve "^3.0.0" + loader-utils "^1.0.2" + micromatch "^3.1.4" + semver "^5.0.1" + tslint-config-prettier@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.1.0.tgz#40c026a56e4da27063b3e9bcd71f4f8109fee369" @@ -9107,10 +9247,6 @@ typescript@2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.2.2.tgz#606022508479b55ffa368b58fee963a03dfd7b0c" -typescript@^2.3.2: - version "2.3.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.4.tgz#3d38321828231e434f287514959c37a82b629f42" - typescript@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4" @@ -9196,6 +9332,10 @@ unique-string@^1.0.0: dependencies: crypto-random-string "^1.0.0" +universalify@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -9224,6 +9364,20 @@ update-notifier@^2.0.0: semver-diff "^2.0.0" xdg-basedir "^3.0.0" +update-notifier@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" + dependencies: + boxen "^1.2.1" + chalk "^2.0.1" + configstore "^3.0.0" + import-lazy "^2.1.0" + is-installed-globally "^0.1.0" + is-npm "^1.0.0" + latest-version "^3.0.0" + semver-diff "^2.0.0" + xdg-basedir "^3.0.0" + upper-case-first@^1.1.0, upper-case-first@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-1.1.2.tgz#5d79bedcff14419518fd2edb0a0507c9b6859115" @@ -9471,6 +9625,12 @@ vscode-nls@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/vscode-nls/-/vscode-nls-2.0.2.tgz#808522380844b8ad153499af5c3b03921aea02da" +vue-parser@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/vue-parser/-/vue-parser-1.1.6.tgz#3063c8431795664ebe429c23b5506899706e6355" + dependencies: + parse5 "^3.0.3" + w3c-hr-time@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" @@ -9621,6 +9781,12 @@ widest-line@^1.0.0: dependencies: string-width "^1.0.1" +widest-line@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" + dependencies: + string-width "^2.1.1" + window-size@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" @@ -9733,7 +9899,7 @@ yargs@^10.0.3: y18n "^3.2.1" yargs-parser "^8.1.0" -yargs@^7.0.1, yargs@^7.0.2: +yargs@^7.0.1: version "7.1.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" dependencies: @@ -9769,6 +9935,24 @@ yargs@^8.0.1, yargs@^8.0.2: y18n "^3.2.1" yargs-parser "^7.0.0" +yargs@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-9.0.1.tgz#52acc23feecac34042078ee78c0c007f5085db4c" + dependencies: + camelcase "^4.1.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + read-pkg-up "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^7.0.0" + yargs@~3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"