diff --git a/package.json b/package.json index 26722ab..62e6709 100644 --- a/package.json +++ b/package.json @@ -39,14 +39,13 @@ "graphql": "^15.8.0", "jest": "^27.4.7", "react-test-renderer": "^17.0.2", - "relay-test-utils": "^12.0.0" + "relay-test-utils": "^13.0.0" }, "scripts": { "start": "next dev", "start-production": "next start", "build": "next build", "build-analyze": "ANALYZE=true next build", - "relay": "adeira-relay-compiler", "schema": "adeira-fetch-schema --resource=https://relay-example.adeira.dev/api/graphql" } } diff --git a/relay.config.js b/relay.config.js deleted file mode 100644 index 6b8c7a6..0000000 --- a/relay.config.js +++ /dev/null @@ -1,7 +0,0 @@ -// @flow strict - -module.exports = { - // Configuration options accepted by the `relay-compiler` command-line tool and `babel-plugin-relay`. - src: './src', - schema: './schema.graphql', -}; diff --git a/src/Homepage/__generated__/HomepageQuery.graphql.js b/src/Homepage/__generated__/HomepageQuery.graphql.js index 387ff46..f4b1913 100644 --- a/src/Homepage/__generated__/HomepageQuery.graphql.js +++ b/src/Homepage/__generated__/HomepageQuery.graphql.js @@ -1,94 +1,35 @@ /** + * @generated SignedSource<<71bc2dc7e2027124c6ca3c2e8b9dbd07>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsPaginated$ref = any; -type LocationsPaginatedBidirectional$ref = any; -type LocationsPaginatedRefetch$ref = any; -export type HomepageQueryVariables = {| - count: number +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type LocationsPaginated$fragmentType = any; +type LocationsPaginatedBidirectional$fragmentType = any; +type LocationsPaginatedRefetch$fragmentType = any; +export type HomepageQuery$variables = {| + count: number, |}; -export type HomepageQueryResponse = {| - +$fragmentRefs: LocationsPaginatedBidirectional$ref & LocationsPaginatedRefetch$ref & LocationsPaginated$ref +export type HomepageQueryVariables = HomepageQuery$variables; +export type HomepageQuery$data = {| + +$fragmentSpreads: LocationsPaginatedBidirectional$fragmentType & LocationsPaginatedRefetch$fragmentType & LocationsPaginated$fragmentType, |}; +export type HomepageQueryResponse = HomepageQuery$data; export type HomepageQuery = {| variables: HomepageQueryVariables, - response: HomepageQueryResponse, + response: HomepageQuery$data, |}; - -/* -query HomepageQuery( - $count: Int! -) { - ...LocationsPaginatedBidirectional_1TJkD9 - ...LocationsPaginatedRefetch - ...LocationsPaginated -} - -fragment Location on Location { - name - countryFlagURL - country { - name - } -} - -fragment LocationsPaginated on RootQuery { - incrementalPagination2: locations(first: 20) { - edges { - node { - id - ...Location - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} - -fragment LocationsPaginatedBidirectional_1TJkD9 on RootQuery { - locations(first: $count) { - edges { - node { - id - ...Location - } - } - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - } -} - -fragment LocationsPaginatedRefetch on RootQuery { - incrementalPagination: locations(first: 20) { - edges { - node { - id - ...Location - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -358,6 +299,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '085ef3ea8676fdcaf828d0cb62550f00'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "085ef3ea8676fdcaf828d0cb62550f00"; +} + +module.exports = ((node/*: any*/)/*: Query< + HomepageQuery$variables, + HomepageQuery$data, +>*/); diff --git a/src/Homepage/locations/__generated__/Location.graphql.js b/src/Homepage/locations/__generated__/Location.graphql.js index 1fa4fef..33f1493 100644 --- a/src/Homepage/locations/__generated__/Location.graphql.js +++ b/src/Homepage/locations/__generated__/Location.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<<5920ad3cff998bc85311b9181520ade6>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type Location$ref: FragmentReference; -declare export opaque type Location$fragmentType: Location$ref; -export type Location = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type Location$fragmentType: FragmentType; +export type Location$ref = Location$fragmentType; +export type Location$data = {| +name: ?string, +countryFlagURL: ?string, +country: ?{| - +name: ?string + +name: ?string, |}, - +$refType: Location$ref, + +$fragmentType: Location$fragmentType, |}; -export type Location$data = Location; +export type Location = Location$data; export type Location$key = { +$data?: Location$data, - +$fragmentRefs: Location$ref, + +$fragmentSpreads: Location$fragmentType, ... }; +*/ - -const node: ReaderFragment = (function(){ +var node/*: ReaderFragment*/ = (function(){ var v0 = { "alias": null, "args": null, @@ -63,6 +70,12 @@ return { "abstractKey": null }; })(); -// prettier-ignore -(node: any).hash = '58584a7e6bd090556fbbb1e258ca704e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "58584a7e6bd090556fbbb1e258ca704e"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + Location$fragmentType, + Location$data, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js index 5eafe27..5d22726 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js @@ -1,34 +1,42 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type Location$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationsPaginated$ref: FragmentReference; -declare export opaque type LocationsPaginated$fragmentType: LocationsPaginated$ref; -export type LocationsPaginated = {| +'use strict'; + +/*:: +import type { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +type Location$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationsPaginated$fragmentType: FragmentType; +export type LocationsPaginated$ref = LocationsPaginated$fragmentType; +type LocationsPaginatedRefetchQuery$variables = any; +export type LocationsPaginated$data = {| +incrementalPagination2: ?{| +edges: ?$ReadOnlyArray + +$fragmentSpreads: Location$fragmentType, + |}, + |}>, |}, - +$refType: LocationsPaginated$ref, + +$fragmentType: LocationsPaginated$fragmentType, |}; -export type LocationsPaginated$data = LocationsPaginated; +export type LocationsPaginated = LocationsPaginated$data; export type LocationsPaginated$key = { +$data?: LocationsPaginated$data, - +$fragmentRefs: LocationsPaginated$ref, + +$fragmentSpreads: LocationsPaginated$fragmentType, ... }; +*/ - -const node: ReaderFragment = (function(){ +var node/*: ReaderFragment*/ = (function(){ var v0 = [ "incrementalPagination2" ]; @@ -65,7 +73,7 @@ return { "path": (v0/*: any*/) }, "fragmentPathInResult": [], - "operation": require('./LocationsPaginatedRefetchQuery.graphql.js').default + "operation": require('./LocationsPaginatedRefetchQuery.graphql') } }, "name": "LocationsPaginated", @@ -101,17 +109,17 @@ return { "name": "id", "storageKey": null }, + { + "args": null, + "kind": "FragmentSpread", + "name": "Location" + }, { "alias": null, "args": null, "kind": "ScalarField", "name": "__typename", "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "Location" } ], "storageKey": null @@ -159,6 +167,13 @@ return { "abstractKey": null }; })(); -// prettier-ignore -(node: any).hash = '4c6e41152f6e3fb4c537ab2d68022119'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "4c6e41152f6e3fb4c537ab2d68022119"; +} + +module.exports = ((node/*: any*/)/*: RefetchableFragment< + LocationsPaginated$fragmentType, + LocationsPaginated$data, + LocationsPaginatedRefetchQuery$variables, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js index d89e408..9096c5e 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js @@ -1,21 +1,29 @@ /** + * @generated SignedSource<<59c998569e41d87c2ede20aff7d28144>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type Location$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationsPaginatedBidirectional$ref: FragmentReference; -declare export opaque type LocationsPaginatedBidirectional$fragmentType: LocationsPaginatedBidirectional$ref; -export type LocationsPaginatedBidirectional = {| +'use strict'; + +/*:: +import type { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +type Location$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationsPaginatedBidirectional$fragmentType: FragmentType; +export type LocationsPaginatedBidirectional$ref = LocationsPaginatedBidirectional$fragmentType; +type LocationsPaginatedBidirectionalRefetchQuery$variables = any; +export type LocationsPaginatedBidirectional$data = {| +locations: ?{| +edges: ?$ReadOnlyArray, +pageInfo: {| +hasNextPage: boolean, @@ -24,17 +32,17 @@ export type LocationsPaginatedBidirectional = {| +endCursor: ?string, |}, |}, - +$refType: LocationsPaginatedBidirectional$ref, + +$fragmentType: LocationsPaginatedBidirectional$fragmentType, |}; -export type LocationsPaginatedBidirectional$data = LocationsPaginatedBidirectional; +export type LocationsPaginatedBidirectional = LocationsPaginatedBidirectional$data; export type LocationsPaginatedBidirectional$key = { +$data?: LocationsPaginatedBidirectional$data, - +$fragmentRefs: LocationsPaginatedBidirectional$ref, + +$fragmentSpreads: LocationsPaginatedBidirectional$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "defaultValue": null, @@ -62,7 +70,7 @@ const node: ReaderFragment = { "refetch": { "connection": null, "fragmentPathInResult": [], - "operation": require('./LocationsPaginatedBidirectionalRefetchQuery.graphql.js').default + "operation": require('./LocationsPaginatedBidirectionalRefetchQuery.graphql') } }, "name": "LocationsPaginatedBidirectional", @@ -176,6 +184,13 @@ const node: ReaderFragment = { "type": "RootQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '46f79f411cdd91adf7c66321a579be4b'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "46f79f411cdd91adf7c66321a579be4b"; +} + +module.exports = ((node/*: any*/)/*: RefetchableFragment< + LocationsPaginatedBidirectional$fragmentType, + LocationsPaginatedBidirectional$data, + LocationsPaginatedBidirectionalRefetchQuery$variables, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js index 98fea69..f65f746 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js @@ -1,62 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsPaginatedBidirectional$ref = any; -export type LocationsPaginatedBidirectionalRefetchQueryVariables = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +type LocationsPaginatedBidirectional$fragmentType = any; +export type LocationsPaginatedBidirectionalRefetchQuery$variables = {| after?: ?string, before?: ?string, first?: ?number, last?: ?number, |}; -export type LocationsPaginatedBidirectionalRefetchQueryResponse = {| - +$fragmentRefs: LocationsPaginatedBidirectional$ref +export type LocationsPaginatedBidirectionalRefetchQueryVariables = LocationsPaginatedBidirectionalRefetchQuery$variables; +export type LocationsPaginatedBidirectionalRefetchQuery$data = {| + +$fragmentSpreads: LocationsPaginatedBidirectional$fragmentType, |}; +export type LocationsPaginatedBidirectionalRefetchQueryResponse = LocationsPaginatedBidirectionalRefetchQuery$data; export type LocationsPaginatedBidirectionalRefetchQuery = {| variables: LocationsPaginatedBidirectionalRefetchQueryVariables, - response: LocationsPaginatedBidirectionalRefetchQueryResponse, + response: LocationsPaginatedBidirectionalRefetchQuery$data, |}; - -/* -query LocationsPaginatedBidirectionalRefetchQuery( - $after: String - $before: String - $first: Int - $last: Int -) { - ...LocationsPaginatedBidirectional_pbnwq -} - -fragment Location on Location { - name - countryFlagURL - country { - name - } -} - -fragment LocationsPaginatedBidirectional_pbnwq on RootQuery { - locations(first: $first, last: $last, after: $after, before: $before) { - edges { - node { - id - ...Location - } - } - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -241,6 +216,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '46f79f411cdd91adf7c66321a579be4b'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "46f79f411cdd91adf7c66321a579be4b"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocationsPaginatedBidirectionalRefetchQuery$variables, + LocationsPaginatedBidirectionalRefetchQuery$data, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js index 568029d..b48db1d 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js @@ -1,38 +1,46 @@ /** + * @generated SignedSource<<74f35973474f43dd1046761aef5e6c1a>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type Location$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationsPaginatedRefetch$ref: FragmentReference; -declare export opaque type LocationsPaginatedRefetch$fragmentType: LocationsPaginatedRefetch$ref; -export type LocationsPaginatedRefetch = {| +'use strict'; + +/*:: +import type { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +type Location$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationsPaginatedRefetch$fragmentType: FragmentType; +export type LocationsPaginatedRefetch$ref = LocationsPaginatedRefetch$fragmentType; +type LocationsPaginatedRefetchRefetchQuery$variables = any; +export type LocationsPaginatedRefetch$data = {| +incrementalPagination: ?{| +edges: ?$ReadOnlyArray, +pageInfo: {| +endCursor: ?string, +hasNextPage: boolean, |}, |}, - +$refType: LocationsPaginatedRefetch$ref, + +$fragmentType: LocationsPaginatedRefetch$fragmentType, |}; -export type LocationsPaginatedRefetch$data = LocationsPaginatedRefetch; +export type LocationsPaginatedRefetch = LocationsPaginatedRefetch$data; export type LocationsPaginatedRefetch$key = { +$data?: LocationsPaginatedRefetch$data, - +$fragmentRefs: LocationsPaginatedRefetch$ref, + +$fragmentSpreads: LocationsPaginatedRefetch$fragmentType, ... }; +*/ - -const node: ReaderFragment = (function(){ +var node/*: ReaderFragment*/ = (function(){ var v0 = [ "incrementalPagination" ]; @@ -69,7 +77,7 @@ return { "path": (v0/*: any*/) }, "fragmentPathInResult": [], - "operation": require('./LocationsPaginatedRefetchRefetchQuery.graphql.js').default + "operation": require('./LocationsPaginatedRefetchRefetchQuery.graphql') } }, "name": "LocationsPaginatedRefetch", @@ -105,17 +113,17 @@ return { "name": "id", "storageKey": null }, + { + "args": null, + "kind": "FragmentSpread", + "name": "Location" + }, { "alias": null, "args": null, "kind": "ScalarField", "name": "__typename", "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "Location" } ], "storageKey": null @@ -163,6 +171,13 @@ return { "abstractKey": null }; })(); -// prettier-ignore -(node: any).hash = '9b7f0b241071b44b2e2f386b1e71ce2e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "9b7f0b241071b44b2e2f386b1e71ce2e"; +} + +module.exports = ((node/*: any*/)/*: RefetchableFragment< + LocationsPaginatedRefetch$fragmentType, + LocationsPaginatedRefetch$data, + LocationsPaginatedRefetchRefetchQuery$variables, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js index dbe92f6..3409fd3 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js @@ -1,58 +1,35 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsPaginated$ref = any; -export type LocationsPaginatedRefetchQueryVariables = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +type LocationsPaginated$fragmentType = any; +export type LocationsPaginatedRefetchQuery$variables = {| after?: ?string, count?: ?number, |}; -export type LocationsPaginatedRefetchQueryResponse = {| - +$fragmentRefs: LocationsPaginated$ref +export type LocationsPaginatedRefetchQueryVariables = LocationsPaginatedRefetchQuery$variables; +export type LocationsPaginatedRefetchQuery$data = {| + +$fragmentSpreads: LocationsPaginated$fragmentType, |}; +export type LocationsPaginatedRefetchQueryResponse = LocationsPaginatedRefetchQuery$data; export type LocationsPaginatedRefetchQuery = {| variables: LocationsPaginatedRefetchQueryVariables, - response: LocationsPaginatedRefetchQueryResponse, + response: LocationsPaginatedRefetchQuery$data, |}; - -/* -query LocationsPaginatedRefetchQuery( - $after: String - $count: Int = 20 -) { - ...LocationsPaginated_2QE1um -} - -fragment Location on Location { - name - countryFlagURL - country { - name - } -} - -fragment LocationsPaginated_2QE1um on RootQuery { - incrementalPagination2: locations(first: $count, after: $after) { - edges { - node { - id - ...Location - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -234,6 +211,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '4c6e41152f6e3fb4c537ab2d68022119'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "4c6e41152f6e3fb4c537ab2d68022119"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocationsPaginatedRefetchQuery$variables, + LocationsPaginatedRefetchQuery$data, +>*/); diff --git a/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js b/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js index 828b835..4736aad 100644 --- a/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js +++ b/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js @@ -1,58 +1,35 @@ /** + * @generated SignedSource<<4196495ebac4ee71193b45ee4a96e1ef>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsPaginatedRefetch$ref = any; -export type LocationsPaginatedRefetchRefetchQueryVariables = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +type LocationsPaginatedRefetch$fragmentType = any; +export type LocationsPaginatedRefetchRefetchQuery$variables = {| after?: ?string, count?: ?number, |}; -export type LocationsPaginatedRefetchRefetchQueryResponse = {| - +$fragmentRefs: LocationsPaginatedRefetch$ref +export type LocationsPaginatedRefetchRefetchQueryVariables = LocationsPaginatedRefetchRefetchQuery$variables; +export type LocationsPaginatedRefetchRefetchQuery$data = {| + +$fragmentSpreads: LocationsPaginatedRefetch$fragmentType, |}; +export type LocationsPaginatedRefetchRefetchQueryResponse = LocationsPaginatedRefetchRefetchQuery$data; export type LocationsPaginatedRefetchRefetchQuery = {| variables: LocationsPaginatedRefetchRefetchQueryVariables, - response: LocationsPaginatedRefetchRefetchQueryResponse, + response: LocationsPaginatedRefetchRefetchQuery$data, |}; - -/* -query LocationsPaginatedRefetchRefetchQuery( - $after: String - $count: Int = 20 -) { - ...LocationsPaginatedRefetch_2QE1um -} - -fragment Location on Location { - name - countryFlagURL - country { - name - } -} - -fragment LocationsPaginatedRefetch_2QE1um on RootQuery { - incrementalPagination: locations(first: $count, after: $after) { - edges { - node { - id - ...Location - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -234,6 +211,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '9b7f0b241071b44b2e2f386b1e71ce2e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "9b7f0b241071b44b2e2f386b1e71ce2e"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocationsPaginatedRefetchRefetchQuery$variables, + LocationsPaginatedRefetchRefetchQuery$data, +>*/); diff --git a/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js b/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js index 4c7d77e..35fdde2 100644 --- a/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js +++ b/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js @@ -1,52 +1,31 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsPaginatedRefetch$ref = any; -export type LocationsPaginatedRefetchTestQueryVariables = {||}; -export type LocationsPaginatedRefetchTestQueryResponse = {| - +$fragmentRefs: LocationsPaginatedRefetch$ref +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type LocationsPaginatedRefetch$fragmentType = any; +export type LocationsPaginatedRefetchTestQuery$variables = {||}; +export type LocationsPaginatedRefetchTestQueryVariables = LocationsPaginatedRefetchTestQuery$variables; +export type LocationsPaginatedRefetchTestQuery$data = {| + +$fragmentSpreads: LocationsPaginatedRefetch$fragmentType, |}; +export type LocationsPaginatedRefetchTestQueryResponse = LocationsPaginatedRefetchTestQuery$data; export type LocationsPaginatedRefetchTestQuery = {| variables: LocationsPaginatedRefetchTestQueryVariables, - response: LocationsPaginatedRefetchTestQueryResponse, + response: LocationsPaginatedRefetchTestQuery$data, |}; - -/* -query LocationsPaginatedRefetchTestQuery { - ...LocationsPaginatedRefetch -} - -fragment Location on Location { - name - countryFlagURL - country { - name - } -} - -fragment LocationsPaginatedRefetch on RootQuery { - incrementalPagination: locations(first: 20) { - edges { - node { - id - ...Location - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "kind": "Literal", @@ -266,6 +245,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'aa5c30ce170d6be45067cdc6677b4e5c'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "aa5c30ce170d6be45067cdc6677b4e5c"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocationsPaginatedRefetchTestQuery$variables, + LocationsPaginatedRefetchTestQuery$data, +>*/); diff --git a/src/LocalForm/__generated__/LocalFormQuery.graphql.js b/src/LocalForm/__generated__/LocalFormQuery.graphql.js index a2ae783..4f38112 100644 --- a/src/LocalForm/__generated__/LocalFormQuery.graphql.js +++ b/src/LocalForm/__generated__/LocalFormQuery.graphql.js @@ -1,30 +1,34 @@ /** + * @generated SignedSource<<6b9fb065c42af9b640a1a45a9b68a55e>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type LocalFormQueryVariables = {||}; -export type LocalFormQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type LocalFormQuery$variables = {||}; +export type LocalFormQueryVariables = LocalFormQuery$variables; +export type LocalFormQuery$data = {| +__typename: string, +localForm: ?{| +subject: ?string, +message: ?string, |}, |}; +export type LocalFormQueryResponse = LocalFormQuery$data; export type LocalFormQuery = {| variables: LocalFormQueryVariables, - response: LocalFormQueryResponse, + response: LocalFormQuery$data, |}; - -/* -query LocalFormQuery { - __typename -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "alias": null, @@ -91,6 +95,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'e61f3eac0352f6268cbca8f35ceb79ed'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "e61f3eac0352f6268cbca8f35ceb79ed"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocalFormQuery$variables, + LocalFormQuery$data, +>*/); diff --git a/src/Polling/__generated__/PollingQuery.graphql.js b/src/Polling/__generated__/PollingQuery.graphql.js index f263ba4..2e6ff52 100644 --- a/src/Polling/__generated__/PollingQuery.graphql.js +++ b/src/Polling/__generated__/PollingQuery.graphql.js @@ -1,39 +1,36 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type PollingQueryVariables = {| - abTestEnabled: boolean +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type PollingQuery$variables = {| + abTestEnabled: boolean, |}; -export type PollingQueryResponse = {| +export type PollingQueryVariables = PollingQuery$variables; +export type PollingQuery$data = {| +currency: ?{| +rate: ?number, +code?: ?string, +format?: ?string, - |} + |}, |}; +export type PollingQueryResponse = PollingQuery$data; export type PollingQuery = {| variables: PollingQueryVariables, - response: PollingQueryResponse, + response: PollingQuery$data, |}; - -/* -query PollingQuery( - $abTestEnabled: Boolean! -) { - currency(code: "usd") { - rate - code @include(if: $abTestEnabled) - format @include(if: $abTestEnabled) - id - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -115,14 +112,14 @@ return { "plural": false, "selections": [ (v2/*: any*/), + (v3/*: any*/), { "alias": null, "args": null, "kind": "ScalarField", "name": "id", "storageKey": null - }, - (v3/*: any*/) + } ], "storageKey": "currency(code:\"usd\")" } @@ -138,6 +135,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '4fe8e121396058d93ef63050a2f5b555'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "4fe8e121396058d93ef63050a2f5b555"; +} + +module.exports = ((node/*: any*/)/*: Query< + PollingQuery$variables, + PollingQuery$data, +>*/); diff --git a/src/SSRLocations/__generated__/LocationListItem.graphql.js b/src/SSRLocations/__generated__/LocationListItem.graphql.js index d6c3ec8..5565557 100644 --- a/src/SSRLocations/__generated__/LocationListItem.graphql.js +++ b/src/SSRLocations/__generated__/LocationListItem.graphql.js @@ -1,26 +1,33 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationListItem$ref: FragmentReference; -declare export opaque type LocationListItem$fragmentType: LocationListItem$ref; -export type LocationListItem = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationListItem$fragmentType: FragmentType; +export type LocationListItem$ref = LocationListItem$fragmentType; +export type LocationListItem$data = {| +name: ?string, - +$refType: LocationListItem$ref, + +$fragmentType: LocationListItem$fragmentType, |}; -export type LocationListItem$data = LocationListItem; +export type LocationListItem = LocationListItem$data; export type LocationListItem$key = { +$data?: LocationListItem$data, - +$fragmentRefs: LocationListItem$ref, + +$fragmentSpreads: LocationListItem$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -37,6 +44,12 @@ const node: ReaderFragment = { "type": "Location", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'e5e6d8fc671a1564d01f8d503ddaf067'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "e5e6d8fc671a1564d01f8d503ddaf067"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + LocationListItem$fragmentType, + LocationListItem$data, +>*/); diff --git a/src/SSRLocations/__generated__/LocationsList.graphql.js b/src/SSRLocations/__generated__/LocationsList.graphql.js index b335453..7ef2c3e 100644 --- a/src/SSRLocations/__generated__/LocationsList.graphql.js +++ b/src/SSRLocations/__generated__/LocationsList.graphql.js @@ -1,32 +1,39 @@ /** + * @generated SignedSource<<910ace3beaad3855a9b7e218fd93fc07>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type LocationListItem$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationsList$ref: FragmentReference; -declare export opaque type LocationsList$fragmentType: LocationsList$ref; -export type LocationsList = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type LocationListItem$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationsList$fragmentType: FragmentType; +export type LocationsList$ref = LocationsList$fragmentType; +export type LocationsList$data = {| +edges: ?$ReadOnlyArray, - +$refType: LocationsList$ref, + +$fragmentType: LocationsList$fragmentType, |}; -export type LocationsList$data = LocationsList; +export type LocationsList = LocationsList$data; export type LocationsList$key = { +$data?: LocationsList$data, - +$fragmentRefs: LocationsList$ref, + +$fragmentSpreads: LocationsList$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -70,6 +77,12 @@ const node: ReaderFragment = { "type": "LocationConnection", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '41e58f9d458466b240d3a17bde2d7e12'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "41e58f9d458466b240d3a17bde2d7e12"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + LocationsList$fragmentType, + LocationsList$data, +>*/); diff --git a/src/SSRLocations/__generated__/LocationsQuery.graphql.js b/src/SSRLocations/__generated__/LocationsQuery.graphql.js index b65fd77..3413d1c 100644 --- a/src/SSRLocations/__generated__/LocationsQuery.graphql.js +++ b/src/SSRLocations/__generated__/LocationsQuery.graphql.js @@ -1,48 +1,35 @@ /** + * @generated SignedSource<<37e36ba196c445ba954063303b0bff09>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsList$ref = any; -export type LocationsQueryVariables = {| - first: number +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type LocationsList$fragmentType = any; +export type LocationsQuery$variables = {| + first: number, |}; -export type LocationsQueryResponse = {| +export type LocationsQueryVariables = LocationsQuery$variables; +export type LocationsQuery$data = {| +locations: ?{| - +$fragmentRefs: LocationsList$ref - |} + +$fragmentSpreads: LocationsList$fragmentType, + |}, |}; +export type LocationsQueryResponse = LocationsQuery$data; export type LocationsQuery = {| variables: LocationsQueryVariables, - response: LocationsQueryResponse, + response: LocationsQuery$data, |}; - -/* -query LocationsQuery( - $first: Int! -) { - locations(first: $first) { - ...LocationsList - } -} - -fragment LocationListItem on Location { - name -} - -fragment LocationsList on LocationConnection { - edges { - node { - id - ...LocationListItem - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -149,6 +136,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '3b0df24d2dfd6f8221b06f3dff4e6bbb'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "3b0df24d2dfd6f8221b06f3dff4e6bbb"; +} + +module.exports = ((node/*: any*/)/*: Query< + LocationsQuery$variables, + LocationsQuery$data, +>*/); diff --git a/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js b/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js index fd16ae0..dec7611 100644 --- a/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js +++ b/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js @@ -1,21 +1,29 @@ /** + * @generated SignedSource<<9b4509f08a8d70fc5fc148400bbdce59>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Mutation } from 'relay-runtime'; export type LocationType = "AIRPORT" | "CITY" | "COUNTRY" | "%future added value"; export type AddLocationInput = {| locationId: string, name: string, type: LocationType, |}; -export type LocationsFormMutationVariables = {| +export type LocationsFormMutation$variables = {| location: AddLocationInput, connections: $ReadOnlyArray, |}; -export type LocationsFormMutationResponse = {| +export type LocationsFormMutationVariables = LocationsFormMutation$variables; +export type LocationsFormMutation$data = {| +addLocation: ?{| +__typename: string, +message?: ?string, @@ -25,40 +33,18 @@ export type LocationsFormMutationResponse = {| +name: ?string, +id: string, +type: ?string, - |} + |}, |}, - |} + |}, |}; +export type LocationsFormMutationResponse = LocationsFormMutation$data; export type LocationsFormMutation = {| variables: LocationsFormMutationVariables, - response: LocationsFormMutationResponse, + response: LocationsFormMutation$data, |}; - -/* -mutation LocationsFormMutation( - $location: AddLocationInput! -) { - addLocation(location: $location) { - __typename - ... on AddLocationResponse { - locationEdge { - node { - locationId - name - id - type - } - } - } - ... on Error { - __isError: __typename - message - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -240,6 +226,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '96c58517ee3913a83519a6cc97925513'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "96c58517ee3913a83519a6cc97925513"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + LocationsFormMutation$variables, + LocationsFormMutation$data, +>*/); diff --git a/src/mutations/__generated__/LocationsListSimple.graphql.js b/src/mutations/__generated__/LocationsListSimple.graphql.js index addbb17..8d51ae1 100644 --- a/src/mutations/__generated__/LocationsListSimple.graphql.js +++ b/src/mutations/__generated__/LocationsListSimple.graphql.js @@ -1,14 +1,21 @@ /** + * @generated SignedSource<<69a2c108773fb807ecfddfa596270bf5>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type LocationsListSimple$ref: FragmentReference; -declare export opaque type LocationsListSimple$fragmentType: LocationsListSimple$ref; -export type LocationsListSimple = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type LocationsListSimple$fragmentType: FragmentType; +export type LocationsListSimple$ref = LocationsListSimple$fragmentType; +export type LocationsListSimple$data = {| +locations: ?{| +__id: string, +edges: ?$ReadOnlyArray, |}, - +$refType: LocationsListSimple$ref, + +$fragmentType: LocationsListSimple$fragmentType, |}; -export type LocationsListSimple$data = LocationsListSimple; +export type LocationsListSimple = LocationsListSimple$data; export type LocationsListSimple$key = { +$data?: LocationsListSimple$data, - +$fragmentRefs: LocationsListSimple$ref, + +$fragmentSpreads: LocationsListSimple$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": { @@ -155,6 +162,12 @@ const node: ReaderFragment = { "type": "RootQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '280ae193c4eb34f11066becbad3110cc'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "280ae193c4eb34f11066becbad3110cc"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + LocationsListSimple$fragmentType, + LocationsListSimple$data, +>*/); diff --git a/src/mutations/__generated__/SimpleLocationsQuery.graphql.js b/src/mutations/__generated__/SimpleLocationsQuery.graphql.js index 1d7a3aa..c17e2b8 100644 --- a/src/mutations/__generated__/SimpleLocationsQuery.graphql.js +++ b/src/mutations/__generated__/SimpleLocationsQuery.graphql.js @@ -1,45 +1,31 @@ /** + * @generated SignedSource<<9b61fde2bc1e0d64fad79b8a7f6c8c5d>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type LocationsListSimple$ref = any; -export type SimpleLocationsQueryVariables = {||}; -export type SimpleLocationsQueryResponse = {| - +$fragmentRefs: LocationsListSimple$ref +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type LocationsListSimple$fragmentType = any; +export type SimpleLocationsQuery$variables = {||}; +export type SimpleLocationsQueryVariables = SimpleLocationsQuery$variables; +export type SimpleLocationsQuery$data = {| + +$fragmentSpreads: LocationsListSimple$fragmentType, |}; +export type SimpleLocationsQueryResponse = SimpleLocationsQuery$data; export type SimpleLocationsQuery = {| variables: SimpleLocationsQueryVariables, - response: SimpleLocationsQueryResponse, + response: SimpleLocationsQuery$data, |}; - -/* -query SimpleLocationsQuery { - ...LocationsListSimple -} - -fragment LocationsListSimple on RootQuery { - locations(first: 3) { - edges { - node { - id - name - type - __typename - } - cursor - } - pageInfo { - endCursor - hasNextPage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "kind": "Literal", @@ -195,6 +181,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'aa52b74b1eaa5676ce91cd116a763562'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "aa52b74b1eaa5676ce91cd116a763562"; +} + +module.exports = ((node/*: any*/)/*: Query< + SimpleLocationsQuery$variables, + SimpleLocationsQuery$data, +>*/);