diff --git a/.eslintignore b/.eslintignore index e3eb967dc5..743136e1e7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,8 +4,10 @@ node_modules/ src/babel-preset-adeira/src/__tests__/__fixtures__ -src/example-relay/__github__/flow-typed src/sx-tailwind-website/__github__/flow-typed +# https://github.com/prettier/prettier/issues/6102 +**/__generated__/*.graphql.js + # https://github.com/eslint/eslint/issues/8429 !**/.storybook diff --git a/.flowconfig b/.flowconfig index 102d731bf2..33bb599b9f 100644 --- a/.flowconfig +++ b/.flowconfig @@ -67,3 +67,9 @@ suppress_type=$FlowFixMe ; This option is always ON in the strict mode. We are enabling it even for the classic mode. ; Function parameters are considered const (i.e., treated as if they were declared with const rather than let). experimental.const_params=true + +relay_integration=true +relay_integration.module_prefix=./__generated__/ +; TODO: consider removing the following excludes +relay_integration.excludes=.*/__tests__/.* +relay_integration.excludes=.*/__flowtests__/.* diff --git a/relay.config.js b/relay.config.js new file mode 100644 index 0000000000..6e8d221160 --- /dev/null +++ b/relay.config.js @@ -0,0 +1,42 @@ +// @flow strict + +module.exports = { + root: '.', + sources: { + 'src/abacus-backoffice': 'abacus', + 'src/abacus-kochka': 'abacus', + 'src/example-relay': 'example-relay', + }, + excludes: ['**/__flowtests__/**'], + codegenCommand: './node_modules/.bin/relay-compiler', + projects: { + 'abacus': { + language: 'flow', + flowEnums: [ + // TODO: doesn't work (https://github.com/facebook/relay/issues/3596#issuecomment-1003148218) + 'SupportedCurrency', + 'SupportedLocale', + ], + flowTypegen: { + phase: 'Compat', // TODO: "Final" + }, + schema: 'src/abacus/schema.graphql', + customScalarTypes: { + ProductImageUploadable: 'string', + }, + testPathRegex: '__tests__', + featureFlags: { + no_inline: { kind: 'enabled' }, + }, + }, + 'example-relay': { + language: 'flow', + flowTypegen: { + phase: 'Compat', // TODO: "Final" + }, + schema: 'src/example-relay/schema.graphql', + schemaExtensions: ['src/example-relay/src/LocalForm'], + }, + }, + isDevVariableName: '__DEV__', +}; diff --git a/src/abacus-backoffice/relay.config.js b/src/abacus-backoffice/relay.config.js deleted file mode 100644 index ef8eb38a23..0000000000 --- a/src/abacus-backoffice/relay.config.js +++ /dev/null @@ -1,11 +0,0 @@ -// @flow strict - -module.exports = { - // Configuration options accepted by the `relay-compiler` command-line tool and `babel-plugin-relay`. - src: './', - include: ['**/pages/**', '**/src/**'], - schema: '../abacus/schema.graphql', - customScalars: { - ProductImageUploadable: 'String', - }, -}; diff --git a/src/abacus-backoffice/src/NavigationHeaderBadge.js b/src/abacus-backoffice/src/NavigationHeaderBadge.js index 92e4999b78..849e09ef53 100644 --- a/src/abacus-backoffice/src/NavigationHeaderBadge.js +++ b/src/abacus-backoffice/src/NavigationHeaderBadge.js @@ -4,8 +4,6 @@ import React, { type Node } from 'react'; import sx from '@adeira/sx'; import { graphql, useLazyLoadQuery } from '@adeira/relay'; -import type { NavigationHeaderBadgeQuery } from './__generated__/NavigationHeaderBadgeQuery.graphql'; - function ProdBadge(): Node { return PROD; } @@ -15,7 +13,8 @@ function DevBadge(): Node { } export default function NavigationHeaderBadge(): Node { - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query NavigationHeaderBadgeQuery { auth { @@ -25,7 +24,7 @@ export default function NavigationHeaderBadge(): Node { } } `, - {}, + Object.freeze({}), { fetchPolicy: 'store-or-network', }, diff --git a/src/abacus-backoffice/src/__generated__/AuthButtonsAuthorizeWebappMutation.graphql.js b/src/abacus-backoffice/src/__generated__/AuthButtonsAuthorizeWebappMutation.graphql.js index ed110b4735..00cb263ad9 100644 --- a/src/abacus-backoffice/src/__generated__/AuthButtonsAuthorizeWebappMutation.graphql.js +++ b/src/abacus-backoffice/src/__generated__/AuthButtonsAuthorizeWebappMutation.graphql.js @@ -1,42 +1,38 @@ /** + * @generated SignedSource<<6ba6c1396b4df09b0cc66418427a76c5>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type AuthButtonsAuthorizeWebappMutationVariables = {| - googleIdToken: string +'use strict'; + +/*:: +import type { ConcreteRequest, Mutation } from 'relay-runtime'; +export type AuthButtonsAuthorizeWebappMutation$variables = {| + googleIdToken: string, |}; -export type AuthButtonsAuthorizeWebappMutationResponse = {| +export type AuthButtonsAuthorizeWebappMutationVariables = AuthButtonsAuthorizeWebappMutation$variables; +export type AuthButtonsAuthorizeWebappMutation$data = {| +auth: {| +authorizeWebapp: {| +success: boolean, +sessionToken: ?string, +failureMessage: ?string, - |} - |} + |}, + |}, |}; +export type AuthButtonsAuthorizeWebappMutationResponse = AuthButtonsAuthorizeWebappMutation$data; export type AuthButtonsAuthorizeWebappMutation = {| variables: AuthButtonsAuthorizeWebappMutationVariables, - response: AuthButtonsAuthorizeWebappMutationResponse, + response: AuthButtonsAuthorizeWebappMutation$data, |}; - -/* -mutation AuthButtonsAuthorizeWebappMutation( - $googleIdToken: String! -) { - auth { - authorizeWebapp(googleIdToken: $googleIdToken) { - success - sessionToken - failureMessage - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -122,6 +118,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'e758cafe9edc929ea309db7a30ac72e6'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "e758cafe9edc929ea309db7a30ac72e6"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + AuthButtonsAuthorizeWebappMutation$variables, + AuthButtonsAuthorizeWebappMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/__generated__/AuthButtonsDeauthorizeWebappMutation.graphql.js b/src/abacus-backoffice/src/__generated__/AuthButtonsDeauthorizeWebappMutation.graphql.js index 2040a84ed3..9c8dd59555 100644 --- a/src/abacus-backoffice/src/__generated__/AuthButtonsDeauthorizeWebappMutation.graphql.js +++ b/src/abacus-backoffice/src/__generated__/AuthButtonsDeauthorizeWebappMutation.graphql.js @@ -1,38 +1,36 @@ /** + * @generated SignedSource<<0f95bd7c4db86a2b6de41941a7cbda9b>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type AuthButtonsDeauthorizeWebappMutationVariables = {| - sessionToken: string +'use strict'; + +/*:: +import type { ConcreteRequest, Mutation } from 'relay-runtime'; +export type AuthButtonsDeauthorizeWebappMutation$variables = {| + sessionToken: string, |}; -export type AuthButtonsDeauthorizeWebappMutationResponse = {| +export type AuthButtonsDeauthorizeWebappMutationVariables = AuthButtonsDeauthorizeWebappMutation$variables; +export type AuthButtonsDeauthorizeWebappMutation$data = {| +auth: {| +deauthorize: {| - +__typename: string - |} - |} + +__typename: string, + |}, + |}, |}; +export type AuthButtonsDeauthorizeWebappMutationResponse = AuthButtonsDeauthorizeWebappMutation$data; export type AuthButtonsDeauthorizeWebappMutation = {| variables: AuthButtonsDeauthorizeWebappMutationVariables, - response: AuthButtonsDeauthorizeWebappMutationResponse, + response: AuthButtonsDeauthorizeWebappMutation$data, |}; - -/* -mutation AuthButtonsDeauthorizeWebappMutation( - $sessionToken: String! -) { - auth { - deauthorize(sessionToken: $sessionToken) { - __typename - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -104,6 +102,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '901b16d0f2f66b120f8dde76d966dfff'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "901b16d0f2f66b120f8dde76d966dfff"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + AuthButtonsDeauthorizeWebappMutation$variables, + AuthButtonsDeauthorizeWebappMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/__generated__/NavigationHeaderBadgeQuery.graphql.js b/src/abacus-backoffice/src/__generated__/NavigationHeaderBadgeQuery.graphql.js index 13da6a77e8..850b26243c 100644 --- a/src/abacus-backoffice/src/__generated__/NavigationHeaderBadgeQuery.graphql.js +++ b/src/abacus-backoffice/src/__generated__/NavigationHeaderBadgeQuery.graphql.js @@ -1,35 +1,34 @@ /** + * @generated SignedSource<<8a4a3493836efddd442e6deb5faae15e>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type NavigationHeaderBadgeQueryVariables = {||}; -export type NavigationHeaderBadgeQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type NavigationHeaderBadgeQuery$variables = {||}; +export type NavigationHeaderBadgeQueryVariables = NavigationHeaderBadgeQuery$variables; +export type NavigationHeaderBadgeQuery$data = {| +auth: {| +whoami: {| - +isDebugAssertionsEnabled: boolean - |} - |} + +isDebugAssertionsEnabled: boolean, + |}, + |}, |}; +export type NavigationHeaderBadgeQueryResponse = NavigationHeaderBadgeQuery$data; export type NavigationHeaderBadgeQuery = {| variables: NavigationHeaderBadgeQueryVariables, - response: NavigationHeaderBadgeQueryResponse, + response: NavigationHeaderBadgeQuery$data, |}; - -/* -query NavigationHeaderBadgeQuery { - auth { - whoami { - isDebugAssertionsEnabled - id - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "alias": null, "args": null, @@ -119,6 +118,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '3ac156cd43017b5b34dcd0300a4e4a67'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "3ac156cd43017b5b34dcd0300a4e4a67"; +} + +module.exports = ((node/*: any*/)/*: Query< + NavigationHeaderBadgeQuery$variables, + NavigationHeaderBadgeQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/analytics/AnalyticsRedirectsPage.js b/src/abacus-backoffice/src/analytics/AnalyticsRedirectsPage.js index 3ecf686b4d..66f7d99b3f 100644 --- a/src/abacus-backoffice/src/analytics/AnalyticsRedirectsPage.js +++ b/src/abacus-backoffice/src/analytics/AnalyticsRedirectsPage.js @@ -5,10 +5,9 @@ import { Badge, Link, Table } from '@adeira/sx-design'; import React, { type Node } from 'react'; import { useLazyLoadQuery, graphql } from '@adeira/relay'; -import type { AnalyticsRedirectsPageQuery } from './__generated__/AnalyticsRedirectsPageQuery.graphql'; - export default function AnalyticsRedirectsPage(): Node { - const { analytics } = useLazyLoadQuery(graphql` + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const { analytics } = useLazyLoadQuery(graphql` query AnalyticsRedirectsPageQuery { analytics { redirectHits { diff --git a/src/abacus-backoffice/src/analytics/__generated__/AnalyticsRedirectsPageQuery.graphql.js b/src/abacus-backoffice/src/analytics/__generated__/AnalyticsRedirectsPageQuery.graphql.js index 79199af555..9955b03310 100644 --- a/src/abacus-backoffice/src/analytics/__generated__/AnalyticsRedirectsPageQuery.graphql.js +++ b/src/abacus-backoffice/src/analytics/__generated__/AnalyticsRedirectsPageQuery.graphql.js @@ -1,41 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type AnalyticsRedirectsPageQueryVariables = {||}; -export type AnalyticsRedirectsPageQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type AnalyticsRedirectsPageQuery$variables = {||}; +export type AnalyticsRedirectsPageQueryVariables = AnalyticsRedirectsPageQuery$variables; +export type AnalyticsRedirectsPageQuery$data = {| +analytics: {| +redirectHits: $ReadOnlyArray<{| +uuid: string, +redirectsTo: string, +description: string, +hits: number, - |}> - |} + |}>, + |}, |}; +export type AnalyticsRedirectsPageQueryResponse = AnalyticsRedirectsPageQuery$data; export type AnalyticsRedirectsPageQuery = {| variables: AnalyticsRedirectsPageQueryVariables, - response: AnalyticsRedirectsPageQueryResponse, + response: AnalyticsRedirectsPageQuery$data, |}; - -/* -query AnalyticsRedirectsPageQuery { - analytics { - redirectHits { - uuid - redirectsTo - description - hits - id - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "alias": null, "args": null, @@ -152,6 +148,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '02c3442388de1c33274df8bb7f529620'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "02c3442388de1c33274df8bb7f529620"; +} + +module.exports = ((node/*: any*/)/*: Query< + AnalyticsRedirectsPageQuery$variables, + AnalyticsRedirectsPageQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/cats/CatsPage.js b/src/abacus-backoffice/src/cats/CatsPage.js index 4674799734..f950e9979e 100644 --- a/src/abacus-backoffice/src/cats/CatsPage.js +++ b/src/abacus-backoffice/src/cats/CatsPage.js @@ -5,12 +5,12 @@ import * as React from 'react'; import { graphql, useLazyLoadQuery } from '@adeira/relay'; import fbt from 'fbt'; -import type { CatsPageQuery } from './__generated__/CatsPageQuery.graphql'; import CatsTableAdopted from './CatsTableAdopted'; import CatsTableCurrent from './CatsTableCurrent'; export default function CatsPage(): React.Node { - const data = useLazyLoadQuery(graphql` + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery(graphql` query CatsPageQuery { cats { ...CatsTableCurrentFragment diff --git a/src/abacus-backoffice/src/cats/__generated__/CatsPageQuery.graphql.js b/src/abacus-backoffice/src/cats/__generated__/CatsPageQuery.graphql.js index 5629e6e923..def361512a 100644 --- a/src/abacus-backoffice/src/cats/__generated__/CatsPageQuery.graphql.js +++ b/src/abacus-backoffice/src/cats/__generated__/CatsPageQuery.graphql.js @@ -1,54 +1,34 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type CatsTableAdoptedFragment$ref = any; -type CatsTableCurrentFragment$ref = any; -export type CatsPageQueryVariables = {||}; -export type CatsPageQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type CatsTableAdoptedFragment$fragmentType = any; +type CatsTableCurrentFragment$fragmentType = any; +export type CatsPageQuery$variables = {||}; +export type CatsPageQueryVariables = CatsPageQuery$variables; +export type CatsPageQuery$data = {| +cats: {| - +$fragmentRefs: CatsTableCurrentFragment$ref & CatsTableAdoptedFragment$ref - |} + +$fragmentSpreads: CatsTableCurrentFragment$fragmentType & CatsTableAdoptedFragment$fragmentType, + |}, |}; +export type CatsPageQueryResponse = CatsPageQuery$data; export type CatsPageQuery = {| variables: CatsPageQueryVariables, - response: CatsPageQueryResponse, + response: CatsPageQuery$data, |}; - -/* -query CatsPageQuery { - cats { - ...CatsTableCurrentFragment - ...CatsTableAdoptedFragment - } -} - -fragment CatsTableAdoptedFragment on CatsQuery { - adoptedCats: listAllCats(allCatsFilter: {adopted: true}) { - order - name - dateOfCastration - dateOfDeworming - dateOfAdoption - id - } -} - -fragment CatsTableCurrentFragment on CatsQuery { - currentCats: listAllCats(allCatsFilter: {adopted: false}) { - order - name - dateOfCastration - dateOfDeworming - id - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "alias": null, "args": null, @@ -200,6 +180,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'd80b8aeae3eee43d423c79777e38c450'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "d80b8aeae3eee43d423c79777e38c450"; +} + +module.exports = ((node/*: any*/)/*: Query< + CatsPageQuery$variables, + CatsPageQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/cats/__generated__/CatsTableAdoptedFragment.graphql.js b/src/abacus-backoffice/src/cats/__generated__/CatsTableAdoptedFragment.graphql.js index 7337241f01..7214b6abd8 100644 --- a/src/abacus-backoffice/src/cats/__generated__/CatsTableAdoptedFragment.graphql.js +++ b/src/abacus-backoffice/src/cats/__generated__/CatsTableAdoptedFragment.graphql.js @@ -1,14 +1,21 @@ /** + * @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 CatsTableAdoptedFragment$ref: FragmentReference; -declare export opaque type CatsTableAdoptedFragment$fragmentType: CatsTableAdoptedFragment$ref; -export type CatsTableAdoptedFragment = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type CatsTableAdoptedFragment$fragmentType: FragmentType; +export type CatsTableAdoptedFragment$ref = CatsTableAdoptedFragment$fragmentType; +export type CatsTableAdoptedFragment$data = {| +adoptedCats: $ReadOnlyArray<{| +order: number, +name: string, @@ -16,17 +23,17 @@ export type CatsTableAdoptedFragment = {| +dateOfDeworming: ?string, +dateOfAdoption: ?string, |}>, - +$refType: CatsTableAdoptedFragment$ref, + +$fragmentType: CatsTableAdoptedFragment$fragmentType, |}; -export type CatsTableAdoptedFragment$data = CatsTableAdoptedFragment; +export type CatsTableAdoptedFragment = CatsTableAdoptedFragment$data; export type CatsTableAdoptedFragment$key = { +$data?: CatsTableAdoptedFragment$data, - +$fragmentRefs: CatsTableAdoptedFragment$ref, + +$fragmentSpreads: CatsTableAdoptedFragment$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -90,6 +97,12 @@ const node: ReaderFragment = { "type": "CatsQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '9c25db35b12efbb28dcd0e1aec208a4f'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "9c25db35b12efbb28dcd0e1aec208a4f"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + CatsTableAdoptedFragment$fragmentType, + CatsTableAdoptedFragment$data, +>*/); diff --git a/src/abacus-backoffice/src/cats/__generated__/CatsTableCurrentFragment.graphql.js b/src/abacus-backoffice/src/cats/__generated__/CatsTableCurrentFragment.graphql.js index 00bc7ef70f..8c52eeb1b4 100644 --- a/src/abacus-backoffice/src/cats/__generated__/CatsTableCurrentFragment.graphql.js +++ b/src/abacus-backoffice/src/cats/__generated__/CatsTableCurrentFragment.graphql.js @@ -1,31 +1,38 @@ /** + * @generated SignedSource<<36289ca98ac06f8a041c26a93b2ac9c0>> * @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 CatsTableCurrentFragment$ref: FragmentReference; -declare export opaque type CatsTableCurrentFragment$fragmentType: CatsTableCurrentFragment$ref; -export type CatsTableCurrentFragment = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type CatsTableCurrentFragment$fragmentType: FragmentType; +export type CatsTableCurrentFragment$ref = CatsTableCurrentFragment$fragmentType; +export type CatsTableCurrentFragment$data = {| +currentCats: $ReadOnlyArray<{| +order: number, +name: string, +dateOfCastration: ?string, +dateOfDeworming: ?string, |}>, - +$refType: CatsTableCurrentFragment$ref, + +$fragmentType: CatsTableCurrentFragment$fragmentType, |}; -export type CatsTableCurrentFragment$data = CatsTableCurrentFragment; +export type CatsTableCurrentFragment = CatsTableCurrentFragment$data; export type CatsTableCurrentFragment$key = { +$data?: CatsTableCurrentFragment$data, - +$fragmentRefs: CatsTableCurrentFragment$ref, + +$fragmentSpreads: CatsTableCurrentFragment$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -82,6 +89,12 @@ const node: ReaderFragment = { "type": "CatsQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '516ea0e99686f2972199dd02137dd22d'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "516ea0e99686f2972199dd02137dd22d"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + CatsTableCurrentFragment$fragmentType, + CatsTableCurrentFragment$data, +>*/); diff --git a/src/abacus-backoffice/src/employees/EmployeesPage.js b/src/abacus-backoffice/src/employees/EmployeesPage.js index 2cde54997d..a4c6983fc1 100644 --- a/src/abacus-backoffice/src/employees/EmployeesPage.js +++ b/src/abacus-backoffice/src/employees/EmployeesPage.js @@ -5,10 +5,9 @@ import * as React from 'react'; import { graphql, useLazyLoadQuery } from '@adeira/relay'; import fbt from 'fbt'; -import type { EmployeesPageQuery } from './__generated__/EmployeesPageQuery.graphql'; - export default function EmployeesPage(): React.Node { - const data = useLazyLoadQuery(graphql` + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery(graphql` query EmployeesPageQuery { auth { listUsers { diff --git a/src/abacus-backoffice/src/employees/__generated__/EmployeesPageQuery.graphql.js b/src/abacus-backoffice/src/employees/__generated__/EmployeesPageQuery.graphql.js index 909de79a28..75ecdf7a94 100644 --- a/src/abacus-backoffice/src/employees/__generated__/EmployeesPageQuery.graphql.js +++ b/src/abacus-backoffice/src/employees/__generated__/EmployeesPageQuery.graphql.js @@ -1,38 +1,36 @@ /** + * @generated SignedSource<<5470b5b9da6321d7e110d55a79d7080c>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type EmployeesPageQueryVariables = {||}; -export type EmployeesPageQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type EmployeesPageQuery$variables = {||}; +export type EmployeesPageQueryVariables = EmployeesPageQuery$variables; +export type EmployeesPageQuery$data = {| +auth: {| +listUsers: $ReadOnlyArray<{| +name: ?string, +hasEmailVerified: ?boolean, +isActive: boolean, - |}> - |} + |}>, + |}, |}; +export type EmployeesPageQueryResponse = EmployeesPageQuery$data; export type EmployeesPageQuery = {| variables: EmployeesPageQueryVariables, - response: EmployeesPageQueryResponse, + response: EmployeesPageQuery$data, |}; - -/* -query EmployeesPageQuery { - auth { - listUsers { - name - hasEmailVerified - isActive - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "alias": null, @@ -105,6 +103,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '2e20a6c5048340bea0ce11b0fb28638c'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "2e20a6c5048340bea0ce11b0fb28638c"; +} + +module.exports = ((node/*: any*/)/*: Query< + EmployeesPageQuery$variables, + EmployeesPageQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/index/IndexPage.js b/src/abacus-backoffice/src/index/IndexPage.js index 4aa8519b18..566752636b 100644 --- a/src/abacus-backoffice/src/index/IndexPage.js +++ b/src/abacus-backoffice/src/index/IndexPage.js @@ -8,10 +8,10 @@ import sx from '@adeira/sx'; import BarChart from '../d3/BarChart'; import refineSupportedCurrencies from '../refineSupportedCurrencies'; -import type { IndexPageQuery } from './__generated__/IndexPageQuery.graphql'; export default function IndexPage(): React.Node { - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query IndexPageQuery { analytics { diff --git a/src/abacus-backoffice/src/index/__generated__/IndexPageQuery.graphql.js b/src/abacus-backoffice/src/index/__generated__/IndexPageQuery.graphql.js index 2e78453385..3731c5f207 100644 --- a/src/abacus-backoffice/src/index/__generated__/IndexPageQuery.graphql.js +++ b/src/abacus-backoffice/src/index/__generated__/IndexPageQuery.graphql.js @@ -1,13 +1,21 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; -export type IndexPageQueryVariables = {||}; -export type IndexPageQueryResponse = {| +export type IndexPageQuery$variables = {||}; +export type IndexPageQueryVariables = IndexPageQuery$variables; +export type IndexPageQuery$data = {| +analytics: {| +mostSoldProducts: $ReadOnlyArray<{| +productName: string, @@ -24,36 +32,16 @@ export type IndexPageQueryResponse = {| +totalUnits: number, |}>, |}>, - |} + |}, |}; +export type IndexPageQueryResponse = IndexPageQuery$data; export type IndexPageQuery = {| variables: IndexPageQueryVariables, - response: IndexPageQueryResponse, + response: IndexPageQuery$data, |}; - -/* -query IndexPageQuery { - analytics { - mostSoldProducts { - productName - productUnits - } - dailyReports { - dateDay - total { - unitAmount - unitAmountCurrency - } - productsSummary { - productName - totalUnits - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "alias": null, "args": null, @@ -182,6 +170,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '6aa30f95e3533d8110a8f321ec5104a7'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "6aa30f95e3533d8110a8f321ec5104a7"; +} + +module.exports = ((node/*: any*/)/*: Query< + IndexPageQuery$variables, + IndexPageQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/pos/ProductsGrid.js b/src/abacus-backoffice/src/pos/ProductsGrid.js index b97010efba..46298b9c76 100644 --- a/src/abacus-backoffice/src/pos/ProductsGrid.js +++ b/src/abacus-backoffice/src/pos/ProductsGrid.js @@ -11,7 +11,6 @@ import useApplicationLocale from '../useApplicationLocale'; import ProductsGridModal from './ProductsGridModal'; import useSelectedItemsApi from './recoil/selectedItemsState'; import ProductsGridModalBodyQuery from './__generated__/ProductsGridModalBodyQuery.graphql'; -import type { ProductsGridPosQuery } from './__generated__/ProductsGridPosQuery.graphql'; type Props = { +selectedCategory: string | null, @@ -24,7 +23,8 @@ export default function ProductsGrid(props: Props): Node { }); const applicationLocale = useApplicationLocale(); const { select } = useSelectedItemsApi(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductsGridPosQuery( $clientLocale: SupportedLocale! diff --git a/src/abacus-backoffice/src/pos/ProductsGridModalBody.js b/src/abacus-backoffice/src/pos/ProductsGridModalBody.js index 0af1cf3636..49628de076 100644 --- a/src/abacus-backoffice/src/pos/ProductsGridModalBody.js +++ b/src/abacus-backoffice/src/pos/ProductsGridModalBody.js @@ -24,7 +24,7 @@ export default function ProductsGridModalBody(props: Props): Node { const { commerce: { product }, - } = usePreloadedQuery( + } = usePreloadedQuery( graphql` query ProductsGridModalBodyQuery($clientLocale: SupportedLocale!, $productKey: ID!) { commerce { diff --git a/src/abacus-backoffice/src/pos/__generated__/POSCheckoutPageLayoutMutation.graphql.js b/src/abacus-backoffice/src/pos/__generated__/POSCheckoutPageLayoutMutation.graphql.js index 2560e611cf..78c3cc6649 100644 --- a/src/abacus-backoffice/src/pos/__generated__/POSCheckoutPageLayoutMutation.graphql.js +++ b/src/abacus-backoffice/src/pos/__generated__/POSCheckoutPageLayoutMutation.graphql.js @@ -1,10 +1,17 @@ /** + * @generated SignedSource<<243a93a3bac43fbb6bfb4e1245b68a36>> * @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 SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; export type PosCheckoutProductInput = {| @@ -19,11 +26,12 @@ export type PosCheckoutProductAddonInput = {| productAddonExtraPriceUnitAmount: number, productAddonExtraPriceUnitAmountCurrency: SupportedCurrency, |}; -export type POSCheckoutPageLayoutMutationVariables = {| +export type POSCheckoutPageLayoutMutation$variables = {| checkoutInput: $ReadOnlyArray, clientLocale: SupportedLocale, |}; -export type POSCheckoutPageLayoutMutationResponse = {| +export type POSCheckoutPageLayoutMutationVariables = POSCheckoutPageLayoutMutation$variables; +export type POSCheckoutPageLayoutMutation$data = {| +pos: {| +checkout: {| +__typename: "PosCheckoutPayload", @@ -34,35 +42,18 @@ export type POSCheckoutPageLayoutMutationResponse = {| |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type POSCheckoutPageLayoutMutationResponse = POSCheckoutPageLayoutMutation$data; export type POSCheckoutPageLayoutMutation = {| variables: POSCheckoutPageLayoutMutationVariables, - response: POSCheckoutPageLayoutMutationResponse, + response: POSCheckoutPageLayoutMutation$data, |}; - -/* -mutation POSCheckoutPageLayoutMutation( - $checkoutInput: [PosCheckoutProductInput!]! - $clientLocale: SupportedLocale! -) { - pos { - checkout(input: {selectedProducts: $checkoutInput}, clientLocale: $clientLocale) { - __typename - ... on PosCheckoutPayload { - id - } - ... on PosCheckoutError { - message - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -178,6 +169,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '3b8a9c4decbee14c8acb49768c9d3091'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "3b8a9c4decbee14c8acb49768c9d3091"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + POSCheckoutPageLayoutMutation$variables, + POSCheckoutPageLayoutMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/pos/__generated__/ProductsGridModalBodyQuery.graphql.js b/src/abacus-backoffice/src/pos/__generated__/ProductsGridModalBodyQuery.graphql.js index b23cec814e..6aae00eed0 100644 --- a/src/abacus-backoffice/src/pos/__generated__/ProductsGridModalBodyQuery.graphql.js +++ b/src/abacus-backoffice/src/pos/__generated__/ProductsGridModalBodyQuery.graphql.js @@ -1,22 +1,30 @@ /** + * @generated SignedSource<<7349f73cd1498d178cf6f5f268e0a538>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsGridModalBodyQueryVariables = {| +export type ProductsGridModalBodyQuery$variables = {| clientLocale: SupportedLocale, productKey: string, |}; -export type ProductsGridModalBodyQueryResponse = {| +export type ProductsGridModalBodyQueryVariables = ProductsGridModalBodyQuery$variables; +export type ProductsGridModalBodyQuery$data = {| +commerce: {| +product: {| +name: string, +price: {| - +unitAmount: number + +unitAmount: number, |}, +selectedAddons: $ReadOnlyArray, - |} - |} + |}, + |}, |}; +export type ProductsGridModalBodyQueryResponse = ProductsGridModalBodyQuery$data; export type ProductsGridModalBodyQuery = {| variables: ProductsGridModalBodyQueryVariables, - response: ProductsGridModalBodyQueryResponse, + response: ProductsGridModalBodyQuery$data, |}; - -/* -query ProductsGridModalBodyQuery( - $clientLocale: SupportedLocale! - $productKey: ID! -) { - commerce { - product: getPublishedProductByKey(clientLocale: $clientLocale, productKey: $productKey) { - name - price { - unitAmount - } - selectedAddons(clientLocale: $clientLocale) { - id - name - priceExtra { - unitAmount - unitAmountCurrency - } - } - id - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -232,6 +217,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '6de4765822d4f76264cde76f74a90a16'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "d5ba7882859f9abf1bca86496b5bc43e"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsGridModalBodyQuery$variables, + ProductsGridModalBodyQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/pos/__generated__/ProductsGridPosQuery.graphql.js b/src/abacus-backoffice/src/pos/__generated__/ProductsGridPosQuery.graphql.js index 858894c7c5..940858331b 100644 --- a/src/abacus-backoffice/src/pos/__generated__/ProductsGridPosQuery.graphql.js +++ b/src/abacus-backoffice/src/pos/__generated__/ProductsGridPosQuery.graphql.js @@ -1,19 +1,27 @@ /** + * @generated SignedSource<<334efcbbf4ae284ef8e69d8207148bec>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type PriceSortDirection = "HIGH_TO_LOW" | "LOW_TO_HIGH" | "%future added value"; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type PriceSortDirection = "LOW_TO_HIGH" | "HIGH_TO_LOW" | "%future added value"; export type SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsGridPosQueryVariables = {| +export type ProductsGridPosQuery$variables = {| clientLocale: SupportedLocale, priceSortDirection: PriceSortDirection, categories?: ?$ReadOnlyArray, |}; -export type ProductsGridPosQueryResponse = {| +export type ProductsGridPosQueryVariables = ProductsGridPosQuery$variables; +export type ProductsGridPosQuery$data = {| +commerce: {| +products: $ReadOnlyArray - |} + |}>, + |}, |}; +export type ProductsGridPosQueryResponse = ProductsGridPosQuery$data; export type ProductsGridPosQuery = {| variables: ProductsGridPosQueryVariables, - response: ProductsGridPosQueryResponse, + response: ProductsGridPosQuery$data, |}; - -/* -query ProductsGridPosQuery( - $clientLocale: SupportedLocale! - $priceSortDirection: PriceSortDirection! - $categories: [ID!] -) { - commerce { - products: searchAllPublishedProducts(clientLocale: $clientLocale, priceSortDirection: $priceSortDirection, categories: $categories, visibility: POS) { - id - key - name - imageCover { - blurhash - url - } - price { - unitAmount - unitAmountCurrency - } - hasSelectedAddons - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -235,6 +220,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '4af3e1a3f3cc24d1cc4dff00aecf13f6'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "ee7ac4fa90eea0072e03c41fe566ff9f"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsGridPosQuery$variables, + ProductsGridPosQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/ProductAddons.js b/src/abacus-backoffice/src/products/ProductAddons.js index 20028b8a0d..3636ccae0e 100644 --- a/src/abacus-backoffice/src/products/ProductAddons.js +++ b/src/abacus-backoffice/src/products/ProductAddons.js @@ -7,11 +7,11 @@ import React, { type Node } from 'react'; import refineSupportedCurrencies from '../refineSupportedCurrencies'; import useApplicationLocale from '../useApplicationLocale'; -import type { ProductAddonsQuery } from './__generated__/ProductAddonsQuery.graphql'; export default function ProductAddons(): Node { const applicationLocale = useApplicationLocale(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductAddonsQuery($clientLocale: SupportedLocale!) { commerce { diff --git a/src/abacus-backoffice/src/products/ProductCategoriesList.js b/src/abacus-backoffice/src/products/ProductCategoriesList.js index 374b4fc2ac..b1a14b5c1f 100644 --- a/src/abacus-backoffice/src/products/ProductCategoriesList.js +++ b/src/abacus-backoffice/src/products/ProductCategoriesList.js @@ -5,11 +5,11 @@ import React, { type Node } from 'react'; import { Entity, EntityField, LayoutBlock, Text } from '@adeira/sx-design'; import useApplicationLocale from '../useApplicationLocale'; -import type { ProductCategoriesListQuery } from './__generated__/ProductCategoriesListQuery.graphql'; export default function ProductCategoriesList(): Node { const applicationLocale = useApplicationLocale(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductCategoriesListQuery($clientLocale: SupportedLocale!) { commerce { diff --git a/src/abacus-backoffice/src/products/ProductCreateForm.js b/src/abacus-backoffice/src/products/ProductCreateForm.js index c3c5e7baa8..e61c054be0 100644 --- a/src/abacus-backoffice/src/products/ProductCreateForm.js +++ b/src/abacus-backoffice/src/products/ProductCreateForm.js @@ -11,7 +11,7 @@ import { uiStatusBarAtom } from '../recoil/uiStatusBarAtom'; import useApplicationLocale from '../useApplicationLocale'; import ProductForm from './ProductForm'; import type { ProductCreateFormData$key } from './__generated__/ProductCreateFormData.graphql'; -import type { ProductCreateFormMutationVariables } from './__generated__/ProductCreateFormMutation.graphql'; +import type { ProductCreateFormMutation$variables } from './__generated__/ProductCreateFormMutation.graphql'; type Props = { +commerceData: ProductCreateFormData$key, @@ -22,7 +22,7 @@ export default function ProductCreateForm(props: Props): Node { const router = useRouter(); const setStatusBar = useSetRecoilState(uiStatusBarAtom); - const data = useFragment( + const data = useFragment( graphql` fragment ProductCreateFormData on CommerceQuery { productCategories: searchAllProductCategories(clientLocale: $clientLocale) { @@ -86,7 +86,7 @@ export default function ProductCreateForm(props: Props): Node { } } `} - variables={(formValues): ProductCreateFormMutationVariables => ({ + variables={(formValues): ProductCreateFormMutation$variables => ({ clientLocale: applicationLocale.graphql, productImagesNames: formValues.images, productPriceUnitAmount: formValues.price * 100, // adjusted for centavo diff --git a/src/abacus-backoffice/src/products/ProductEditForm.js b/src/abacus-backoffice/src/products/ProductEditForm.js index 99768e2509..d4cb4a00d3 100644 --- a/src/abacus-backoffice/src/products/ProductEditForm.js +++ b/src/abacus-backoffice/src/products/ProductEditForm.js @@ -9,7 +9,7 @@ import FormSubmit from '../forms/FormSubmit'; import { uiStatusBarAtom } from '../recoil/uiStatusBarAtom'; import useApplicationLocale from '../useApplicationLocale'; import type { ProductEditFormData$key } from './__generated__/ProductEditFormData.graphql'; -import type { ProductEditFormMutationVariables } from './__generated__/ProductEditFormMutation.graphql'; +import type { ProductEditFormMutation$variables } from './__generated__/ProductEditFormMutation.graphql'; import ProductForm from './ProductForm'; type Props = { @@ -21,7 +21,7 @@ export default function ProductEditForm(props: Props): Node { const applicationLocale = useApplicationLocale(); const setStatusBar = useSetRecoilState(uiStatusBarAtom); - const data = useFragment( + const data = useFragment( graphql` fragment ProductEditFormData on Product { key @@ -132,7 +132,7 @@ export default function ProductEditForm(props: Props): Node { } } `} - variables={(formValues): ProductEditFormMutationVariables => ({ + variables={(formValues): ProductEditFormMutation$variables => ({ clientLocale: applicationLocale.graphql, productKey: data.key, productRevision: data.revision, diff --git a/src/abacus-backoffice/src/products/ProductEditHeading.js b/src/abacus-backoffice/src/products/ProductEditHeading.js index 834335a637..490bea4f95 100644 --- a/src/abacus-backoffice/src/products/ProductEditHeading.js +++ b/src/abacus-backoffice/src/products/ProductEditHeading.js @@ -13,8 +13,8 @@ import LayoutHeadingLink from '../LayoutHeadingLink'; import ProductEditHeadingPublishUnpublish from './ProductEditHeadingPublishUnpublish'; import useApplicationLocale from '../useApplicationLocale'; import { uiStatusBarAtom } from '../recoil/uiStatusBarAtom'; -import type { ProductEditHeadingArchiveMutation } from './__generated__/ProductEditHeadingArchiveMutation.graphql'; import type { ProductEditHeading$key } from './__generated__/ProductEditHeading.graphql'; +import type { ProductEditHeadingArchiveMutation } from './__generated__/ProductEditHeadingArchiveMutation.graphql'; type Props = { +product: ProductEditHeading$key, @@ -47,7 +47,7 @@ export default function ProductEditHeading(props: Props): React.Node { `, ); - const product = useFragment( + const product = useFragment( graphql` fragment ProductEditHeading on Product { key diff --git a/src/abacus-backoffice/src/products/ProductForm.js b/src/abacus-backoffice/src/products/ProductForm.js index 9f1887f6d8..3f1fc93e04 100644 --- a/src/abacus-backoffice/src/products/ProductForm.js +++ b/src/abacus-backoffice/src/products/ProductForm.js @@ -34,7 +34,7 @@ export default function ProductForm(props: { +visibility: $ReadOnlyArray<'POS' | 'ESHOP'>, +button: RestrictedElement, }): React.Node { - const productCategories = useFragment( + const productCategories = useFragment( graphql` fragment ProductFormCategoriesData on ProductCategory @relay(plural: true) { id @@ -44,7 +44,7 @@ export default function ProductForm(props: { props.availableCategories, ); - const productAddons = useFragment( + const productAddons = useFragment( graphql` fragment ProductFormAddonsData on ProductAddon @relay(plural: true) { id diff --git a/src/abacus-backoffice/src/products/ProductsCards.js b/src/abacus-backoffice/src/products/ProductsCards.js index ae57088247..32b4e124ec 100644 --- a/src/abacus-backoffice/src/products/ProductsCards.js +++ b/src/abacus-backoffice/src/products/ProductsCards.js @@ -14,7 +14,7 @@ type Props = { }; export default function ProductsCards(props: Props): Node { - const products = useFragment( + const products = useFragment( graphql` fragment ProductsCardsData on Product @relay(plural: true) { id diff --git a/src/abacus-backoffice/src/products/ProductsCardsInCategory.js b/src/abacus-backoffice/src/products/ProductsCardsInCategory.js index 133938280b..e797aa2fe4 100644 --- a/src/abacus-backoffice/src/products/ProductsCardsInCategory.js +++ b/src/abacus-backoffice/src/products/ProductsCardsInCategory.js @@ -7,7 +7,6 @@ import React, { type Node } from 'react'; import useApplicationLocale from '../useApplicationLocale'; import ProductsCards from './ProductsCards'; -import type { ProductsCardsInCategoryQuery } from './__generated__/ProductsCardsInCategoryQuery.graphql'; type Props = { +selectedCategory: string | null, @@ -15,7 +14,8 @@ type Props = { export default function ProductsCardsInCategory(props: Props): Node { const applicationLocale = useApplicationLocale(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductsCardsInCategoryQuery( $clientLocale: SupportedLocale! diff --git a/src/abacus-backoffice/src/products/ProductsCategories.js b/src/abacus-backoffice/src/products/ProductsCategories.js index 20d94e5e50..1fe6ec791b 100644 --- a/src/abacus-backoffice/src/products/ProductsCategories.js +++ b/src/abacus-backoffice/src/products/ProductsCategories.js @@ -6,7 +6,6 @@ import React, { type Node } from 'react'; import fbt from 'fbt'; import useApplicationLocale from '../useApplicationLocale'; -import type { ProductsCategoriesQuery } from './__generated__/ProductsCategoriesQuery.graphql'; type TabValue = string | null; type Props = { @@ -16,7 +15,8 @@ type Props = { export default function ProductsCategories(props: Props): Node { const applicationLocale = useApplicationLocale(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductsCategoriesQuery($clientLocale: SupportedLocale!) { commerce { diff --git a/src/abacus-backoffice/src/products/ProductsCreateLayout.js b/src/abacus-backoffice/src/products/ProductsCreateLayout.js index 521eebbb4b..02af979df8 100644 --- a/src/abacus-backoffice/src/products/ProductsCreateLayout.js +++ b/src/abacus-backoffice/src/products/ProductsCreateLayout.js @@ -8,12 +8,12 @@ import LayoutPage from '../LayoutPage'; import LayoutHeadingLink from '../LayoutHeadingLink'; import useApplicationLocale from '../useApplicationLocale'; import ProductCreateForm from './ProductCreateForm'; -import type { ProductsCreateLayoutQuery } from './__generated__/ProductsCreateLayoutQuery.graphql'; export default function ProductsCreateLayout(): Node { const applicationLocale = useApplicationLocale(); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductsCreateLayoutQuery($clientLocale: SupportedLocale!) { commerce { diff --git a/src/abacus-backoffice/src/products/ProductsEditLayout.js b/src/abacus-backoffice/src/products/ProductsEditLayout.js index 3938c644d8..584e779e0e 100644 --- a/src/abacus-backoffice/src/products/ProductsEditLayout.js +++ b/src/abacus-backoffice/src/products/ProductsEditLayout.js @@ -9,7 +9,6 @@ import sx from '@adeira/sx'; import ProductEditForm from './ProductEditForm'; import ProductEditHeading from './ProductEditHeading'; import useApplicationLocale from '../useApplicationLocale'; -import type { ProductsEditLayoutQuery } from './__generated__/ProductsEditLayoutQuery.graphql'; type Props = { +productKey: string, @@ -19,7 +18,8 @@ export default function ProductsEditLayout(props: Props): Node { const applicationLocale = useApplicationLocale(); const [imagesToDelete, setImagesToDelete] = useState([]); - const data = useLazyLoadQuery( + // eslint-disable-next-line relay/generated-flow-types -- https://github.com/relayjs/eslint-plugin-relay/issues/131 + const data = useLazyLoadQuery( graphql` query ProductsEditLayoutQuery($clientLocale: SupportedLocale!, $productKey: ID!) { commerce { diff --git a/src/abacus-backoffice/src/products/__generated__/ProductAddonsQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductAddonsQuery.graphql.js index 19789161b5..3c5346c4a7 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductAddonsQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductAddonsQuery.graphql.js @@ -1,16 +1,24 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductAddonsQueryVariables = {| - clientLocale: SupportedLocale +export type ProductAddonsQuery$variables = {| + clientLocale: SupportedLocale, |}; -export type ProductAddonsQueryResponse = {| +export type ProductAddonsQueryVariables = ProductAddonsQuery$variables; +export type ProductAddonsQuery$data = {| +commerce: {| +productAddons: $ReadOnlyArray - |} + |}>, + |}, |}; +export type ProductAddonsQueryResponse = ProductAddonsQuery$data; export type ProductAddonsQuery = {| variables: ProductAddonsQueryVariables, - response: ProductAddonsQueryResponse, + response: ProductAddonsQuery$data, |}; - -/* -query ProductAddonsQuery( - $clientLocale: SupportedLocale! -) { - commerce { - productAddons: searchAllProductAddons(clientLocale: $clientLocale) { - id - name - priceExtra { - unitAmount - unitAmountCurrency - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -148,6 +141,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'b7b1f1b709c3e56f2a3a999bf3f03cdb'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "b7b1f1b709c3e56f2a3a999bf3f03cdb"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductAddonsQuery$variables, + ProductAddonsQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductCategoriesListQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductCategoriesListQuery.graphql.js index 0d16af0e07..75dcd51fae 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductCategoriesListQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductCategoriesListQuery.graphql.js @@ -1,41 +1,38 @@ /** + * @generated SignedSource<<41a15e1019e1a8148e06158dff3d0fd9>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductCategoriesListQueryVariables = {| - clientLocale: SupportedLocale +export type ProductCategoriesListQuery$variables = {| + clientLocale: SupportedLocale, |}; -export type ProductCategoriesListQueryResponse = {| +export type ProductCategoriesListQueryVariables = ProductCategoriesListQuery$variables; +export type ProductCategoriesListQuery$data = {| +commerce: {| +categories: $ReadOnlyArray - |} + |}>, + |}, |}; +export type ProductCategoriesListQueryResponse = ProductCategoriesListQuery$data; export type ProductCategoriesListQuery = {| variables: ProductCategoriesListQueryVariables, - response: ProductCategoriesListQueryResponse, + response: ProductCategoriesListQuery$data, |}; - -/* -query ProductCategoriesListQuery( - $clientLocale: SupportedLocale! -) { - commerce { - categories: searchAllProductCategories(clientLocale: $clientLocale) { - id - name - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -114,6 +111,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '7316f6f463886f0de452366ff2fc918e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "7316f6f463886f0de452366ff2fc918e"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductCategoriesListQuery$variables, + ProductCategoriesListQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductCreateFormData.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductCreateFormData.graphql.js index 7befa4903e..82089bee09 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductCreateFormData.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductCreateFormData.graphql.js @@ -1,33 +1,40 @@ /** + * @generated SignedSource<<52f69c86bbb9a157762a033a02c4dd0d>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type ProductFormAddonsData$ref = any; -type ProductFormCategoriesData$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type ProductCreateFormData$ref: FragmentReference; -declare export opaque type ProductCreateFormData$fragmentType: ProductCreateFormData$ref; -export type ProductCreateFormData = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type ProductFormAddonsData$fragmentType = any; +type ProductFormCategoriesData$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductCreateFormData$fragmentType: FragmentType; +export type ProductCreateFormData$ref = ProductCreateFormData$fragmentType; +export type ProductCreateFormData$data = {| +productCategories: $ReadOnlyArray, +productAddons: $ReadOnlyArray, - +$refType: ProductCreateFormData$ref, + +$fragmentType: ProductCreateFormData$fragmentType, |}; -export type ProductCreateFormData$data = ProductCreateFormData; +export type ProductCreateFormData = ProductCreateFormData$data; export type ProductCreateFormData$key = { +$data?: ProductCreateFormData$data, - +$fragmentRefs: ProductCreateFormData$ref, + +$fragmentSpreads: ProductCreateFormData$fragmentType, ... }; +*/ - -const node: ReaderFragment = (function(){ +var node/*: ReaderFragment*/ = (function(){ var v0 = [ { "kind": "Variable", @@ -83,6 +90,12 @@ return { "abstractKey": null }; })(); -// prettier-ignore -(node: any).hash = 'ff8090d2ca7b56d4e1f13870c0837098'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "ff8090d2ca7b56d4e1f13870c0837098"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductCreateFormData$fragmentType, + ProductCreateFormData$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductCreateFormMutation.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductCreateFormMutation.graphql.js index 56b4ba7dbc..a6b7fda5cf 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductCreateFormMutation.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductCreateFormMutation.graphql.js @@ -1,10 +1,17 @@ /** + * @generated SignedSource<<2f995b9fbfd1b7a9aa1e9767a0daea30>> * @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 ProductMultilingualInputVisibility = "ESHOP" | "POS" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; export type ProductMultilingualInputTranslations = {| @@ -12,16 +19,17 @@ export type ProductMultilingualInputTranslations = {| name: string, description?: ?string, |}; -export type ProductCreateFormMutationVariables = {| +export type ProductCreateFormMutation$variables = {| clientLocale: SupportedLocale, - productImagesNames: $ReadOnlyArray, + productImagesNames: $ReadOnlyArray, productPriceUnitAmount: number, translations: $ReadOnlyArray, visibility: $ReadOnlyArray, categories: $ReadOnlyArray, addons: $ReadOnlyArray, |}; -export type ProductCreateFormMutationResponse = {| +export type ProductCreateFormMutationVariables = ProductCreateFormMutation$variables; +export type ProductCreateFormMutation$data = {| +commerce: {| +result: {| +__typename: "Product", @@ -32,42 +40,18 @@ export type ProductCreateFormMutationResponse = {| |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type ProductCreateFormMutationResponse = ProductCreateFormMutation$data; export type ProductCreateFormMutation = {| variables: ProductCreateFormMutationVariables, - response: ProductCreateFormMutationResponse, + response: ProductCreateFormMutation$data, |}; - -/* -mutation ProductCreateFormMutation( - $clientLocale: SupportedLocale! - $productImagesNames: [ProductImageUploadable!]! - $productPriceUnitAmount: Int! - $translations: [ProductMultilingualInputTranslations!]! - $visibility: [ProductMultilingualInputVisibility!]! - $categories: [ID!]! - $addons: [ID!]! -) { - commerce { - result: productCreate(clientLocale: $clientLocale, productMultilingualInput: {images: $productImagesNames, price: {unitAmount: $productPriceUnitAmount, unitAmountCurrency: MXN}, translations: $translations, visibility: $visibility, categories: $categories, addons: $addons}) { - __typename - ... on Product { - __typename - name - } - ... on ProductError { - __typename - message - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -271,7 +255,14 @@ return { { "kind": "InlineFragment", "selections": [ - (v9/*: any*/) + (v9/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } ], "type": "Product", "abstractKey": null @@ -293,15 +284,21 @@ return { ] }, "params": { - "cacheID": "09dc539e4e391d2e1f9d8cfb71600895", + "cacheID": "00c8232f0b57981df0af028b799429d7", "id": null, "metadata": {}, "name": "ProductCreateFormMutation", "operationKind": "mutation", - "text": "mutation ProductCreateFormMutation(\n $clientLocale: SupportedLocale!\n $productImagesNames: [ProductImageUploadable!]!\n $productPriceUnitAmount: Int!\n $translations: [ProductMultilingualInputTranslations!]!\n $visibility: [ProductMultilingualInputVisibility!]!\n $categories: [ID!]!\n $addons: [ID!]!\n) {\n commerce {\n result: productCreate(clientLocale: $clientLocale, productMultilingualInput: {images: $productImagesNames, price: {unitAmount: $productPriceUnitAmount, unitAmountCurrency: MXN}, translations: $translations, visibility: $visibility, categories: $categories, addons: $addons}) {\n __typename\n ... on Product {\n __typename\n name\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" + "text": "mutation ProductCreateFormMutation(\n $clientLocale: SupportedLocale!\n $productImagesNames: [ProductImageUploadable!]!\n $productPriceUnitAmount: Int!\n $translations: [ProductMultilingualInputTranslations!]!\n $visibility: [ProductMultilingualInputVisibility!]!\n $categories: [ID!]!\n $addons: [ID!]!\n) {\n commerce {\n result: productCreate(clientLocale: $clientLocale, productMultilingualInput: {images: $productImagesNames, price: {unitAmount: $productPriceUnitAmount, unitAmountCurrency: MXN}, translations: $translations, visibility: $visibility, categories: $categories, addons: $addons}) {\n __typename\n ... on Product {\n __typename\n name\n id\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" } }; })(); -// prettier-ignore -(node: any).hash = '1b98bc8dfc03ea468dd955a9bcf32624'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "5281cea08ca8f73289b8cf2d5ac5af08"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + ProductCreateFormMutation$variables, + ProductCreateFormMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditFormData.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditFormData.graphql.js index 3782be789c..299a7b9fe6 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditFormData.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditFormData.graphql.js @@ -1,33 +1,40 @@ /** + * @generated SignedSource<<178883ba562da8565e943c0ce50cc84f>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type ProductFormAddonsData$ref = any; -type ProductFormCategoriesData$ref = any; +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type ProductFormAddonsData$fragmentType = any; +type ProductFormCategoriesData$fragmentType = any; export type ProductMultilingualInputVisibility = "ESHOP" | "POS" | "%future added value"; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type ProductEditFormData$ref: FragmentReference; -declare export opaque type ProductEditFormData$fragmentType: ProductEditFormData$ref; -export type ProductEditFormData = {| +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductEditFormData$fragmentType: FragmentType; +export type ProductEditFormData$ref = ProductEditFormData$fragmentType; +export type ProductEditFormData$data = {| +key: string, +revision: string, +availableCategories: $ReadOnlyArray, +availableAddons: $ReadOnlyArray, +price: {| - +unitAmount: number + +unitAmount: number, |}, +selectedCategories: $ReadOnlyArray, +selectedAddons: $ReadOnlyArray, +visibility: $ReadOnlyArray, +enTranslation: ?{| @@ -39,19 +46,19 @@ export type ProductEditFormData = {| +description: ?string, |}, +images: $ReadOnlyArray<{| - +name: string + +name: string, |}>, - +$refType: ProductEditFormData$ref, + +$fragmentType: ProductEditFormData$fragmentType, |}; -export type ProductEditFormData$data = ProductEditFormData; +export type ProductEditFormData = ProductEditFormData$data; export type ProductEditFormData$key = { +$data?: ProductEditFormData$data, - +$fragmentRefs: ProductEditFormData$ref, + +$fragmentSpreads: ProductEditFormData$fragmentType, ... }; +*/ - -const node: ReaderFragment = (function(){ +var node/*: ReaderFragment*/ = (function(){ var v0 = [ { "kind": "Variable", @@ -236,6 +243,12 @@ return { "abstractKey": null }; })(); -// prettier-ignore -(node: any).hash = '681633a20f6272cb9d2dbeae0f7b4919'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "681633a20f6272cb9d2dbeae0f7b4919"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductEditFormData$fragmentType, + ProductEditFormData$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditFormMutation.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditFormMutation.graphql.js index 94a8ae5f2f..673536a521 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditFormMutation.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditFormMutation.graphql.js @@ -1,11 +1,18 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type ProductEditFormData$ref = any; +'use strict'; + +/*:: +import type { ConcreteRequest, Mutation } from 'relay-runtime'; +type ProductEditFormData$fragmentType = any; export type ProductMultilingualInputVisibility = "ESHOP" | "POS" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; export type ProductMultilingualInputTranslations = {| @@ -13,120 +20,44 @@ export type ProductMultilingualInputTranslations = {| name: string, description?: ?string, |}; -export type ProductEditFormMutationVariables = {| +export type ProductEditFormMutation$variables = {| clientLocale: SupportedLocale, productKey: string, productRevision: string, - productImagesNames: $ReadOnlyArray, + productImagesNames: $ReadOnlyArray, productPriceUnitAmount: number, translations: $ReadOnlyArray, visibility: $ReadOnlyArray, categories: $ReadOnlyArray, addons: $ReadOnlyArray, |}; -export type ProductEditFormMutationResponse = {| +export type ProductEditFormMutationVariables = ProductEditFormMutation$variables; +export type ProductEditFormMutation$data = {| +commerce: {| +result: {| +__typename: "Product", +id: string, +name: string, +revision: string, - +$fragmentRefs: ProductEditFormData$ref, + +$fragmentSpreads: ProductEditFormData$fragmentType, |} | {| +__typename: "ProductError", +message: string, |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type ProductEditFormMutationResponse = ProductEditFormMutation$data; export type ProductEditFormMutation = {| variables: ProductEditFormMutationVariables, - response: ProductEditFormMutationResponse, + response: ProductEditFormMutation$data, |}; - -/* -mutation ProductEditFormMutation( - $clientLocale: SupportedLocale! - $productKey: ID! - $productRevision: ID! - $productImagesNames: [ProductImageUploadable!]! - $productPriceUnitAmount: Int! - $translations: [ProductMultilingualInputTranslations!]! - $visibility: [ProductMultilingualInputVisibility!]! - $categories: [ID!]! - $addons: [ID!]! -) { - commerce { - result: productUpdate(clientLocale: $clientLocale, productKey: $productKey, productRevision: $productRevision, productMultilingualInput: {images: $productImagesNames, price: {unitAmount: $productPriceUnitAmount, unitAmountCurrency: MXN}, translations: $translations, visibility: $visibility, categories: $categories, addons: $addons}) { - __typename - ... on Product { - __typename - id - name - revision - ...ProductEditFormData - } - ... on ProductError { - __typename - message - } - } - } -} - -fragment ProductEditFormData on Product { - key - revision - availableCategories(clientLocale: $clientLocale) { - ...ProductFormCategoriesData - id - } - availableAddons(clientLocale: $clientLocale) { - ...ProductFormAddonsData - id - } - price { - unitAmount - } - selectedCategories(clientLocale: $clientLocale) { - id - } - selectedAddons(clientLocale: $clientLocale) { - id - } - visibility - enTranslation: translation(locale: en_US) { - name - description - } - esTranslation: translation(locale: es_MX) { - name - description - } - images { - name - } -} - -fragment ProductFormAddonsData on ProductAddon { - id - name - priceExtra { - unitAmount - unitAmountCurrency - } -} - -fragment ProductFormCategoriesData on ProductCategory { - id - name -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -567,6 +498,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '2400c8982c9b36261593cb7920f33251'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "5ea7f8b50995909c30fb798b4847a574"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + ProductEditFormMutation$variables, + ProductEditFormMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditHeading.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditHeading.graphql.js index 38a587399b..dbe64ce093 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditHeading.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditHeading.graphql.js @@ -1,28 +1,35 @@ /** + * @generated SignedSource<<671e86e9cf2dce94d68c8b61cfb3fae7>> * @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 ProductEditHeading$ref: FragmentReference; -declare export opaque type ProductEditHeading$fragmentType: ProductEditHeading$ref; -export type ProductEditHeading = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductEditHeading$fragmentType: FragmentType; +export type ProductEditHeading$ref = ProductEditHeading$fragmentType; +export type ProductEditHeading$data = {| +key: string, +name: string, +isPublished: boolean, - +$refType: ProductEditHeading$ref, + +$fragmentType: ProductEditHeading$fragmentType, |}; -export type ProductEditHeading$data = ProductEditHeading; +export type ProductEditHeading = ProductEditHeading$data; export type ProductEditHeading$key = { +$data?: ProductEditHeading$data, - +$fragmentRefs: ProductEditHeading$ref, + +$fragmentSpreads: ProductEditHeading$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -53,6 +60,12 @@ const node: ReaderFragment = { "type": "Product", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '23ea1991f3bc6f0a3e444564c89e8683'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "23ea1991f3bc6f0a3e444564c89e8683"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductEditHeading$fragmentType, + ProductEditHeading$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingArchiveMutation.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingArchiveMutation.graphql.js index de6fb75e14..f67acf46d1 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingArchiveMutation.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingArchiveMutation.graphql.js @@ -1,55 +1,45 @@ /** + * @generated SignedSource<<9bc38960134f6aa3d27ec4cd32c4ea53>> * @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 SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductEditHeadingArchiveMutationVariables = {| +export type ProductEditHeadingArchiveMutation$variables = {| productKey: string, clientLocale: SupportedLocale, |}; -export type ProductEditHeadingArchiveMutationResponse = {| +export type ProductEditHeadingArchiveMutationVariables = ProductEditHeadingArchiveMutation$variables; +export type ProductEditHeadingArchiveMutation$data = {| +commerce: {| +productOrError: {| - +__typename: "Product" + +__typename: "Product", |} | {| +__typename: "ProductError", +message: string, |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type ProductEditHeadingArchiveMutationResponse = ProductEditHeadingArchiveMutation$data; export type ProductEditHeadingArchiveMutation = {| variables: ProductEditHeadingArchiveMutationVariables, - response: ProductEditHeadingArchiveMutationResponse, + response: ProductEditHeadingArchiveMutation$data, |}; - -/* -mutation ProductEditHeadingArchiveMutation( - $productKey: ID! - $clientLocale: SupportedLocale! -) { - commerce { - productOrError: productArchive(productKey: $productKey, clientLocale: $clientLocale) { - __typename - ... on Product { - __typename - } - ... on ProductError { - __typename - message - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -165,6 +155,20 @@ return { "plural": false, "selections": [ (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "type": "Product", + "abstractKey": null + }, { "kind": "InlineFragment", "selections": [ @@ -182,15 +186,21 @@ return { ] }, "params": { - "cacheID": "fa92a9bb8cc457782ad37b1b68234958", + "cacheID": "73594116adb0c0b9e787d633b42a43ba", "id": null, "metadata": {}, "name": "ProductEditHeadingArchiveMutation", "operationKind": "mutation", - "text": "mutation ProductEditHeadingArchiveMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productArchive(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" + "text": "mutation ProductEditHeadingArchiveMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productArchive(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n id\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" } }; })(); -// prettier-ignore -(node: any).hash = 'f3fe8c4c93882b50f010bd5bf8fb4f0e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "22797745c2fcdec81744a3a8632619e1"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + ProductEditHeadingArchiveMutation$variables, + ProductEditHeadingArchiveMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishPublishMutation.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishPublishMutation.graphql.js index 5ad82244cd..dd8dd4917a 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishPublishMutation.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishPublishMutation.graphql.js @@ -1,55 +1,45 @@ /** + * @generated SignedSource<<2d70ba3248d7cec9d3314c7778487f2b>> * @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 SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductEditHeadingPublishUnpublishPublishMutationVariables = {| +export type ProductEditHeadingPublishUnpublishPublishMutation$variables = {| productKey: string, clientLocale: SupportedLocale, |}; -export type ProductEditHeadingPublishUnpublishPublishMutationResponse = {| +export type ProductEditHeadingPublishUnpublishPublishMutationVariables = ProductEditHeadingPublishUnpublishPublishMutation$variables; +export type ProductEditHeadingPublishUnpublishPublishMutation$data = {| +commerce: {| +productOrError: {| - +__typename: "Product" + +__typename: "Product", |} | {| +__typename: "ProductError", +message: string, |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type ProductEditHeadingPublishUnpublishPublishMutationResponse = ProductEditHeadingPublishUnpublishPublishMutation$data; export type ProductEditHeadingPublishUnpublishPublishMutation = {| variables: ProductEditHeadingPublishUnpublishPublishMutationVariables, - response: ProductEditHeadingPublishUnpublishPublishMutationResponse, + response: ProductEditHeadingPublishUnpublishPublishMutation$data, |}; - -/* -mutation ProductEditHeadingPublishUnpublishPublishMutation( - $productKey: ID! - $clientLocale: SupportedLocale! -) { - commerce { - productOrError: productPublish(productKey: $productKey, clientLocale: $clientLocale) { - __typename - ... on Product { - __typename - } - ... on ProductError { - __typename - message - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -165,6 +155,20 @@ return { "plural": false, "selections": [ (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "type": "Product", + "abstractKey": null + }, { "kind": "InlineFragment", "selections": [ @@ -182,15 +186,21 @@ return { ] }, "params": { - "cacheID": "65270bdea8e8bd09709756b5f4d755ae", + "cacheID": "565a613b6c2c0ea3b7db874add5c8a3a", "id": null, "metadata": {}, "name": "ProductEditHeadingPublishUnpublishPublishMutation", "operationKind": "mutation", - "text": "mutation ProductEditHeadingPublishUnpublishPublishMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productPublish(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" + "text": "mutation ProductEditHeadingPublishUnpublishPublishMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productPublish(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n id\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" } }; })(); -// prettier-ignore -(node: any).hash = 'ce05aadb31863ec708f5036d49a5cf5f'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "fc652ae1a9c373aa274a64cdd1398435"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + ProductEditHeadingPublishUnpublishPublishMutation$variables, + ProductEditHeadingPublishUnpublishPublishMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishUnpublishMutation.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishUnpublishMutation.graphql.js index 242bfdfca9..3861b394cc 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishUnpublishMutation.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductEditHeadingPublishUnpublishUnpublishMutation.graphql.js @@ -1,55 +1,45 @@ /** + * @generated SignedSource<> * @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 SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductEditHeadingPublishUnpublishUnpublishMutationVariables = {| +export type ProductEditHeadingPublishUnpublishUnpublishMutation$variables = {| productKey: string, clientLocale: SupportedLocale, |}; -export type ProductEditHeadingPublishUnpublishUnpublishMutationResponse = {| +export type ProductEditHeadingPublishUnpublishUnpublishMutationVariables = ProductEditHeadingPublishUnpublishUnpublishMutation$variables; +export type ProductEditHeadingPublishUnpublishUnpublishMutation$data = {| +commerce: {| +productOrError: {| - +__typename: "Product" + +__typename: "Product", |} | {| +__typename: "ProductError", +message: string, |} | {| // This will never be '%other', but we need some // value in case none of the concrete values match. - +__typename: "%other" - |} - |} + +__typename: "%other", + |}, + |}, |}; +export type ProductEditHeadingPublishUnpublishUnpublishMutationResponse = ProductEditHeadingPublishUnpublishUnpublishMutation$data; export type ProductEditHeadingPublishUnpublishUnpublishMutation = {| variables: ProductEditHeadingPublishUnpublishUnpublishMutationVariables, - response: ProductEditHeadingPublishUnpublishUnpublishMutationResponse, + response: ProductEditHeadingPublishUnpublishUnpublishMutation$data, |}; - -/* -mutation ProductEditHeadingPublishUnpublishUnpublishMutation( - $productKey: ID! - $clientLocale: SupportedLocale! -) { - commerce { - productOrError: productUnpublish(productKey: $productKey, clientLocale: $clientLocale) { - __typename - ... on Product { - __typename - } - ... on ProductError { - __typename - message - } - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -165,6 +155,20 @@ return { "plural": false, "selections": [ (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "type": "Product", + "abstractKey": null + }, { "kind": "InlineFragment", "selections": [ @@ -182,15 +186,21 @@ return { ] }, "params": { - "cacheID": "59206588ead3c453ffd248768ec0dfb1", + "cacheID": "a1e962e97f0d267b60d2cb176289029f", "id": null, "metadata": {}, "name": "ProductEditHeadingPublishUnpublishUnpublishMutation", "operationKind": "mutation", - "text": "mutation ProductEditHeadingPublishUnpublishUnpublishMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productUnpublish(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" + "text": "mutation ProductEditHeadingPublishUnpublishUnpublishMutation(\n $productKey: ID!\n $clientLocale: SupportedLocale!\n) {\n commerce {\n productOrError: productUnpublish(productKey: $productKey, clientLocale: $clientLocale) {\n __typename\n ... on Product {\n __typename\n id\n }\n ... on ProductError {\n __typename\n message\n }\n }\n }\n}\n" } }; })(); -// prettier-ignore -(node: any).hash = '336e82aea443fa579b50ee8a5e0808ba'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "ca5121722320fbc3b054d053c3a3562e"; +} + +module.exports = ((node/*: any*/)/*: Mutation< + ProductEditHeadingPublishUnpublishUnpublishMutation$variables, + ProductEditHeadingPublishUnpublishUnpublishMutation$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductFormAddonsData.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductFormAddonsData.graphql.js index bf07ff037d..a5a8d897ca 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductFormAddonsData.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductFormAddonsData.graphql.js @@ -1,32 +1,39 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type ProductFormAddonsData$ref: FragmentReference; -declare export opaque type ProductFormAddonsData$fragmentType: ProductFormAddonsData$ref; -export type ProductFormAddonsData = $ReadOnlyArray<{| +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductFormAddonsData$fragmentType: FragmentType; +export type ProductFormAddonsData$ref = ProductFormAddonsData$fragmentType; +export type ProductFormAddonsData$data = $ReadOnlyArray<{| +id: string, +name: string, +priceExtra: {| +unitAmount: number, +unitAmountCurrency: SupportedCurrency, |}, - +$refType: ProductFormAddonsData$ref, + +$fragmentType: ProductFormAddonsData$fragmentType, |}>; -export type ProductFormAddonsData$data = ProductFormAddonsData; +export type ProductFormAddonsData = ProductFormAddonsData$data; export type ProductFormAddonsData$key = $ReadOnlyArray<{ +$data?: ProductFormAddonsData$data, - +$fragmentRefs: ProductFormAddonsData$ref, + +$fragmentSpreads: ProductFormAddonsData$fragmentType, ... }>; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": { @@ -77,6 +84,12 @@ const node: ReaderFragment = { "type": "ProductAddon", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'e9018dac3479ec0c4cb9980f78d8a753'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "e9018dac3479ec0c4cb9980f78d8a753"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductFormAddonsData$fragmentType, + ProductFormAddonsData$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductFormCategoriesData.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductFormCategoriesData.graphql.js index babfe08299..5a197cbe15 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductFormCategoriesData.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductFormCategoriesData.graphql.js @@ -1,27 +1,34 @@ /** + * @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 ProductFormCategoriesData$ref: FragmentReference; -declare export opaque type ProductFormCategoriesData$fragmentType: ProductFormCategoriesData$ref; -export type ProductFormCategoriesData = $ReadOnlyArray<{| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductFormCategoriesData$fragmentType: FragmentType; +export type ProductFormCategoriesData$ref = ProductFormCategoriesData$fragmentType; +export type ProductFormCategoriesData$data = $ReadOnlyArray<{| +id: string, +name: string, - +$refType: ProductFormCategoriesData$ref, + +$fragmentType: ProductFormCategoriesData$fragmentType, |}>; -export type ProductFormCategoriesData$data = ProductFormCategoriesData; +export type ProductFormCategoriesData = ProductFormCategoriesData$data; export type ProductFormCategoriesData$key = $ReadOnlyArray<{ +$data?: ProductFormCategoriesData$data, - +$fragmentRefs: ProductFormCategoriesData$ref, + +$fragmentSpreads: ProductFormCategoriesData$fragmentType, ... }>; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": { @@ -47,6 +54,12 @@ const node: ReaderFragment = { "type": "ProductCategory", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'c60bf51d24be138f3f671ef64bb967d1'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "c60bf51d24be138f3f671ef64bb967d1"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductFormCategoriesData$fragmentType, + ProductFormCategoriesData$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductsCardsData.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductsCardsData.graphql.js index 9abc866037..8f798e4880 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductsCardsData.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductsCardsData.graphql.js @@ -1,15 +1,22 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type ProductsCardsData$ref: FragmentReference; -declare export opaque type ProductsCardsData$fragmentType: ProductsCardsData$ref; -export type ProductsCardsData = $ReadOnlyArray<{| +import type { FragmentType } from "relay-runtime"; +declare export opaque type ProductsCardsData$fragmentType: FragmentType; +export type ProductsCardsData$ref = ProductsCardsData$fragmentType; +export type ProductsCardsData$data = $ReadOnlyArray<{| +id: string, +key: string, +name: string, @@ -22,17 +29,17 @@ export type ProductsCardsData = $ReadOnlyArray<{| +unitAmountCurrency: SupportedCurrency, |}, +isPublished: boolean, - +$refType: ProductsCardsData$ref, + +$fragmentType: ProductsCardsData$fragmentType, |}>; -export type ProductsCardsData$data = ProductsCardsData; +export type ProductsCardsData = ProductsCardsData$data; export type ProductsCardsData$key = $ReadOnlyArray<{ +$data?: ProductsCardsData$data, - +$fragmentRefs: ProductsCardsData$ref, + +$fragmentSpreads: ProductsCardsData$fragmentType, ... }>; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": { @@ -122,6 +129,12 @@ const node: ReaderFragment = { "type": "Product", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '7109a74f00365ae495c2967a968c658e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "7109a74f00365ae495c2967a968c658e"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + ProductsCardsData$fragmentType, + ProductsCardsData$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductsCardsInCategoryQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductsCardsInCategoryQuery.graphql.js index 423ac227ff..6fb3b5988e 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductsCardsInCategoryQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductsCardsInCategoryQuery.graphql.js @@ -1,61 +1,41 @@ /** + * @generated SignedSource<<75d8eb49611d9bb528e655b13da1f274>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type ProductsCardsData$ref = any; -export type PriceSortDirection = "HIGH_TO_LOW" | "LOW_TO_HIGH" | "%future added value"; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type ProductsCardsData$fragmentType = any; +export type PriceSortDirection = "LOW_TO_HIGH" | "HIGH_TO_LOW" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsCardsInCategoryQueryVariables = {| +export type ProductsCardsInCategoryQuery$variables = {| clientLocale: SupportedLocale, priceSortDirection: PriceSortDirection, categories?: ?$ReadOnlyArray, |}; -export type ProductsCardsInCategoryQueryResponse = {| +export type ProductsCardsInCategoryQueryVariables = ProductsCardsInCategoryQuery$variables; +export type ProductsCardsInCategoryQuery$data = {| +commerce: {| +products: $ReadOnlyArray - |} + +$fragmentSpreads: ProductsCardsData$fragmentType, + |}>, + |}, |}; +export type ProductsCardsInCategoryQueryResponse = ProductsCardsInCategoryQuery$data; export type ProductsCardsInCategoryQuery = {| variables: ProductsCardsInCategoryQueryVariables, - response: ProductsCardsInCategoryQueryResponse, + response: ProductsCardsInCategoryQuery$data, |}; - -/* -query ProductsCardsInCategoryQuery( - $clientLocale: SupportedLocale! - $priceSortDirection: PriceSortDirection! - $categories: [ID!] -) { - commerce { - products: searchAllProducts(clientLocale: $clientLocale, priceSortDirection: $priceSortDirection, categories: $categories) { - ...ProductsCardsData - id - } - } -} - -fragment ProductsCardsData on Product { - id - key - name - imageCover { - blurhash - url - } - price { - unitAmount - unitAmountCurrency - } - isPublished -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = { "defaultValue": null, "kind": "LocalArgument", @@ -252,6 +232,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '1fb8a914e7bbc4c6535f25b4f592cb12'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "978767bfb60ad8c2fbe1d8fad793c608"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsCardsInCategoryQuery$variables, + ProductsCardsInCategoryQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductsCategoriesQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductsCategoriesQuery.graphql.js index 1dfeae1b44..0e3e28eddd 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductsCategoriesQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductsCategoriesQuery.graphql.js @@ -1,41 +1,38 @@ /** + * @generated SignedSource<<9b645d7c812c4b5540d0f76945174649>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsCategoriesQueryVariables = {| - clientLocale: SupportedLocale +export type ProductsCategoriesQuery$variables = {| + clientLocale: SupportedLocale, |}; -export type ProductsCategoriesQueryResponse = {| +export type ProductsCategoriesQueryVariables = ProductsCategoriesQuery$variables; +export type ProductsCategoriesQuery$data = {| +commerce: {| +productCategories: $ReadOnlyArray - |} + |}>, + |}, |}; +export type ProductsCategoriesQueryResponse = ProductsCategoriesQuery$data; export type ProductsCategoriesQuery = {| variables: ProductsCategoriesQueryVariables, - response: ProductsCategoriesQueryResponse, + response: ProductsCategoriesQuery$data, |}; - -/* -query ProductsCategoriesQuery( - $clientLocale: SupportedLocale! -) { - commerce { - productCategories: searchAllProductCategories(clientLocale: $clientLocale) { - id - name - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -114,6 +111,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'cf82629107f79add52f01d591e0da585'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "cf82629107f79add52f01d591e0da585"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsCategoriesQuery$variables, + ProductsCategoriesQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductsCreateLayoutQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductsCreateLayoutQuery.graphql.js index fbd30a486b..655e6a6e5b 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductsCreateLayoutQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductsCreateLayoutQuery.graphql.js @@ -1,61 +1,36 @@ /** + * @generated SignedSource<<433f631535b0a1ae995a2e4d30acdd57>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type ProductCreateFormData$ref = any; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type ProductCreateFormData$fragmentType = any; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsCreateLayoutQueryVariables = {| - clientLocale: SupportedLocale +export type ProductsCreateLayoutQuery$variables = {| + clientLocale: SupportedLocale, |}; -export type ProductsCreateLayoutQueryResponse = {| +export type ProductsCreateLayoutQueryVariables = ProductsCreateLayoutQuery$variables; +export type ProductsCreateLayoutQuery$data = {| +commerce: {| - +$fragmentRefs: ProductCreateFormData$ref - |} + +$fragmentSpreads: ProductCreateFormData$fragmentType, + |}, |}; +export type ProductsCreateLayoutQueryResponse = ProductsCreateLayoutQuery$data; export type ProductsCreateLayoutQuery = {| variables: ProductsCreateLayoutQueryVariables, - response: ProductsCreateLayoutQueryResponse, + response: ProductsCreateLayoutQuery$data, |}; - -/* -query ProductsCreateLayoutQuery( - $clientLocale: SupportedLocale! -) { - commerce { - ...ProductCreateFormData - } -} - -fragment ProductCreateFormData on CommerceQuery { - productCategories: searchAllProductCategories(clientLocale: $clientLocale) { - ...ProductFormCategoriesData - id - } - productAddons: searchAllProductAddons(clientLocale: $clientLocale) { - ...ProductFormAddonsData - id - } -} - -fragment ProductFormAddonsData on ProductAddon { - id - name - priceExtra { - unitAmount - unitAmountCurrency - } -} - -fragment ProductFormCategoriesData on ProductCategory { - id - name -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -191,6 +166,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '92d67871b187e5ae9ad965b1fea6eac2'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "92d67871b187e5ae9ad965b1fea6eac2"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsCreateLayoutQuery$variables, + ProductsCreateLayoutQuery$data, +>*/); diff --git a/src/abacus-backoffice/src/products/__generated__/ProductsEditLayoutQuery.graphql.js b/src/abacus-backoffice/src/products/__generated__/ProductsEditLayoutQuery.graphql.js index 109b0d8710..6d75a2f5c6 100644 --- a/src/abacus-backoffice/src/products/__generated__/ProductsEditLayoutQuery.graphql.js +++ b/src/abacus-backoffice/src/products/__generated__/ProductsEditLayoutQuery.graphql.js @@ -1,18 +1,26 @@ /** + * @generated SignedSource<<0b6aabce498ba922868f8f92f67f4361>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type ProductEditFormData$ref = any; -type ProductEditHeading$ref = any; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type ProductEditFormData$fragmentType = any; +type ProductEditHeading$fragmentType = any; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductsEditLayoutQueryVariables = {| +export type ProductsEditLayoutQuery$variables = {| clientLocale: SupportedLocale, productKey: string, |}; -export type ProductsEditLayoutQueryResponse = {| +export type ProductsEditLayoutQueryVariables = ProductsEditLayoutQuery$variables; +export type ProductsEditLayoutQuery$data = {| +commerce: {| +product: {| +images: $ReadOnlyArray<{| @@ -20,90 +28,18 @@ export type ProductsEditLayoutQueryResponse = {| +blurhash: string, +url: string, |}>, - +$fragmentRefs: ProductEditHeading$ref & ProductEditFormData$ref, - |} - |} + +$fragmentSpreads: ProductEditHeading$fragmentType & ProductEditFormData$fragmentType, + |}, + |}, |}; +export type ProductsEditLayoutQueryResponse = ProductsEditLayoutQuery$data; export type ProductsEditLayoutQuery = {| variables: ProductsEditLayoutQueryVariables, - response: ProductsEditLayoutQueryResponse, + response: ProductsEditLayoutQuery$data, |}; - -/* -query ProductsEditLayoutQuery( - $clientLocale: SupportedLocale! - $productKey: ID! -) { - commerce { - product: getUnpublishedProductByKey(clientLocale: $clientLocale, productKey: $productKey) { - ...ProductEditHeading - images { - name - blurhash - url - } - ...ProductEditFormData - id - } - } -} - -fragment ProductEditFormData on Product { - key - revision - availableCategories(clientLocale: $clientLocale) { - ...ProductFormCategoriesData - id - } - availableAddons(clientLocale: $clientLocale) { - ...ProductFormAddonsData - id - } - price { - unitAmount - } - selectedCategories(clientLocale: $clientLocale) { - id - } - selectedAddons(clientLocale: $clientLocale) { - id - } - visibility - enTranslation: translation(locale: en_US) { - name - description - } - esTranslation: translation(locale: es_MX) { - name - description - } - images { - name - } -} - -fragment ProductEditHeading on Product { - key - name - isPublished -} - -fragment ProductFormAddonsData on ProductAddon { - id - name - priceExtra { - unitAmount - unitAmountCurrency - } -} - -fragment ProductFormCategoriesData on ProductCategory { - id - name -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -215,12 +151,12 @@ return { "name": "getUnpublishedProductByKey", "plural": false, "selections": [ - (v4/*: any*/), { "args": null, "kind": "FragmentSpread", "name": "ProductEditHeading" }, + (v4/*: any*/), { "args": null, "kind": "FragmentSpread", @@ -416,6 +352,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'a0bfb0ff14c17bd91dd157d472cab49e'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "65d361f91d79ebe6a215a4a69979a04f"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductsEditLayoutQuery$variables, + ProductsEditLayoutQuery$data, +>*/); diff --git a/src/abacus-kochka/package.json b/src/abacus-kochka/package.json index da281d8baa..bc6c98e400 100644 --- a/src/abacus-kochka/package.json +++ b/src/abacus-kochka/package.json @@ -12,8 +12,7 @@ "fbt:manifest": "fbt-manifest --src=src --src=pages --enum-manifest=translations/enum_manifest.json --src-manifest=translations/src_manifest.json", "fbt:collect": "fbt-collect --options=__self --pretty --manifest < translations/src_manifest.json > translations/source_strings.json", "fbt:translate": "fbt-translate --source-strings=translations/source_strings.json --pretty --translations translations/in/*.json --output-dir=translations/out --jenkins", - "fbt": "yarn run fbt:manifest && yarn run fbt:collect && yarn run fbt:translate", - "relay": "adeira-relay-compiler" + "fbt": "yarn run fbt:manifest && yarn run fbt:collect && yarn run fbt:translate" }, "dependencies": { "@adeira/icons": "^1.0.1", diff --git a/src/abacus-kochka/relay.config.js b/src/abacus-kochka/relay.config.js deleted file mode 100644 index 9445fcfb8f..0000000000 --- a/src/abacus-kochka/relay.config.js +++ /dev/null @@ -1,6 +0,0 @@ -// @flow strict - -module.exports = { - src: './src', - schema: '../abacus/schema.graphql', -}; diff --git a/src/abacus-kochka/src/__generated__/MenuQuery.graphql.js b/src/abacus-kochka/src/__generated__/MenuQuery.graphql.js index 1a20ea2a30..4d008128b3 100644 --- a/src/abacus-kochka/src/__generated__/MenuQuery.graphql.js +++ b/src/abacus-kochka/src/__generated__/MenuQuery.graphql.js @@ -1,97 +1,41 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -type MenuSectionCoffee$ref = any; -type MenuSectionKochkadaSavory$ref = any; -type MenuSectionKochkadaSweet$ref = any; -type MenuSectionMilkshake$ref = any; -type MenuSectionSpecialities$ref = any; -type MenuSectionTea$ref = any; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +type MenuSectionCoffee$fragmentType = any; +type MenuSectionKochkadaSavory$fragmentType = any; +type MenuSectionKochkadaSweet$fragmentType = any; +type MenuSectionMilkshake$fragmentType = any; +type MenuSectionSpecialities$fragmentType = any; +type MenuSectionTea$fragmentType = any; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type MenuQueryVariables = {| - clientLocale: SupportedLocale +export type MenuQuery$variables = {| + clientLocale: SupportedLocale, |}; -export type MenuQueryResponse = {| +export type MenuQueryVariables = MenuQuery$variables; +export type MenuQuery$data = {| +menu: {| - +$fragmentRefs: MenuSectionCoffee$ref & MenuSectionTea$ref & MenuSectionMilkshake$ref & MenuSectionSpecialities$ref & MenuSectionKochkadaSweet$ref & MenuSectionKochkadaSavory$ref - |} + +$fragmentSpreads: MenuSectionCoffee$fragmentType & MenuSectionTea$fragmentType & MenuSectionMilkshake$fragmentType & MenuSectionSpecialities$fragmentType & MenuSectionKochkadaSweet$fragmentType & MenuSectionKochkadaSavory$fragmentType, + |}, |}; +export type MenuQueryResponse = MenuQuery$data; export type MenuQuery = {| variables: MenuQueryVariables, - response: MenuQueryResponse, + response: MenuQuery$data, |}; - -/* -query MenuQuery( - $clientLocale: SupportedLocale! -) { - menu { - ...MenuSectionCoffee - ...MenuSectionTea - ...MenuSectionMilkshake - ...MenuSectionSpecialities - ...MenuSectionKochkadaSweet - ...MenuSectionKochkadaSavory - } -} - -fragment MenuRow on Product { - name - description - price { - unitAmount - unitAmountCurrency - } -} - -fragment MenuSectionCoffee on MenuQuery { - coffeeMenu: menu(clientLocale: $clientLocale, section: COFFEE) { - id - ...MenuRow - } -} - -fragment MenuSectionKochkadaSavory on MenuQuery { - kochkadaSavoryMenu: menu(clientLocale: $clientLocale, section: DUMPLING_SAVORY) { - id - ...MenuRow - } -} - -fragment MenuSectionKochkadaSweet on MenuQuery { - kochkadaSweetMenu: menu(clientLocale: $clientLocale, section: DUMPLING_SWEET) { - id - ...MenuRow - } -} - -fragment MenuSectionMilkshake on MenuQuery { - milkshakesMenu: menu(clientLocale: $clientLocale, section: MILKSHAKES) { - id - ...MenuRow - } -} - -fragment MenuSectionSpecialities on MenuQuery { - specialitiesMenu: menu(clientLocale: $clientLocale, section: SPECIALITIES) { - id - ...MenuRow - } -} - -fragment MenuSectionTea on MenuQuery { - teaMenu: menu(clientLocale: $clientLocale, section: TEA) { - id - ...MenuRow - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -335,6 +279,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'fe5ebd8591713ee5370319d526a77ebd'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "fe5ebd8591713ee5370319d526a77ebd"; +} + +module.exports = ((node/*: any*/)/*: Query< + MenuQuery$variables, + MenuQuery$data, +>*/); diff --git a/src/abacus-kochka/src/menu/MenuSectionCoffee.js b/src/abacus-kochka/src/menu/MenuSectionCoffee.js index 0224deba25..c193015fa1 100644 --- a/src/abacus-kochka/src/menu/MenuSectionCoffee.js +++ b/src/abacus-kochka/src/menu/MenuSectionCoffee.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionCoffee(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionCoffee on MenuQuery { coffeeMenu: menu(clientLocale: $clientLocale, section: COFFEE) { diff --git a/src/abacus-kochka/src/menu/MenuSectionKochkadaSavory.js b/src/abacus-kochka/src/menu/MenuSectionKochkadaSavory.js index 2f10e5b0c0..a7f5c802a3 100644 --- a/src/abacus-kochka/src/menu/MenuSectionKochkadaSavory.js +++ b/src/abacus-kochka/src/menu/MenuSectionKochkadaSavory.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionKochkadaSavory(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionKochkadaSavory on MenuQuery { kochkadaSavoryMenu: menu(clientLocale: $clientLocale, section: DUMPLING_SAVORY) { diff --git a/src/abacus-kochka/src/menu/MenuSectionKochkadaSweet.js b/src/abacus-kochka/src/menu/MenuSectionKochkadaSweet.js index 151ab18bc2..29125a3a49 100644 --- a/src/abacus-kochka/src/menu/MenuSectionKochkadaSweet.js +++ b/src/abacus-kochka/src/menu/MenuSectionKochkadaSweet.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionKochkadaSweet(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionKochkadaSweet on MenuQuery { kochkadaSweetMenu: menu(clientLocale: $clientLocale, section: DUMPLING_SWEET) { diff --git a/src/abacus-kochka/src/menu/MenuSectionMilkshake.js b/src/abacus-kochka/src/menu/MenuSectionMilkshake.js index b083a3024a..2388e831a6 100644 --- a/src/abacus-kochka/src/menu/MenuSectionMilkshake.js +++ b/src/abacus-kochka/src/menu/MenuSectionMilkshake.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionMilkshake(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionMilkshake on MenuQuery { milkshakesMenu: menu(clientLocale: $clientLocale, section: MILKSHAKES) { diff --git a/src/abacus-kochka/src/menu/MenuSectionSpecialities.js b/src/abacus-kochka/src/menu/MenuSectionSpecialities.js index e6a99d8b11..27fd80463a 100644 --- a/src/abacus-kochka/src/menu/MenuSectionSpecialities.js +++ b/src/abacus-kochka/src/menu/MenuSectionSpecialities.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionSpecialities(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionSpecialities on MenuQuery { specialitiesMenu: menu(clientLocale: $clientLocale, section: SPECIALITIES) { diff --git a/src/abacus-kochka/src/menu/MenuSectionTea.js b/src/abacus-kochka/src/menu/MenuSectionTea.js index 99aed24218..5073babe17 100644 --- a/src/abacus-kochka/src/menu/MenuSectionTea.js +++ b/src/abacus-kochka/src/menu/MenuSectionTea.js @@ -13,7 +13,7 @@ type Props = { }; export default function MenuSectionTea(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuSectionTea on MenuQuery { teaMenu: menu(clientLocale: $clientLocale, section: TEA) { diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionCoffee.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionCoffee.graphql.js index 56d693f67b..7a96640203 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionCoffee.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionCoffee.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionCoffee$ref: FragmentReference; -declare export opaque type MenuSectionCoffee$fragmentType: MenuSectionCoffee$ref; -export type MenuSectionCoffee = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionCoffee$fragmentType: FragmentType; +export type MenuSectionCoffee$ref = MenuSectionCoffee$fragmentType; +export type MenuSectionCoffee$data = {| +coffeeMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionCoffee$ref, + +$fragmentType: MenuSectionCoffee$fragmentType, |}; -export type MenuSectionCoffee$data = MenuSectionCoffee; +export type MenuSectionCoffee = MenuSectionCoffee$data; export type MenuSectionCoffee$key = { +$data?: MenuSectionCoffee$data, - +$fragmentRefs: MenuSectionCoffee$ref, + +$fragmentSpreads: MenuSectionCoffee$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '4f389377a25c5b78515dc2effd798653'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "4f389377a25c5b78515dc2effd798653"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionCoffee$fragmentType, + MenuSectionCoffee$data, +>*/); diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSavory.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSavory.graphql.js index d52a7ad70d..45af86ba77 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSavory.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSavory.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionKochkadaSavory$ref: FragmentReference; -declare export opaque type MenuSectionKochkadaSavory$fragmentType: MenuSectionKochkadaSavory$ref; -export type MenuSectionKochkadaSavory = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionKochkadaSavory$fragmentType: FragmentType; +export type MenuSectionKochkadaSavory$ref = MenuSectionKochkadaSavory$fragmentType; +export type MenuSectionKochkadaSavory$data = {| +kochkadaSavoryMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionKochkadaSavory$ref, + +$fragmentType: MenuSectionKochkadaSavory$fragmentType, |}; -export type MenuSectionKochkadaSavory$data = MenuSectionKochkadaSavory; +export type MenuSectionKochkadaSavory = MenuSectionKochkadaSavory$data; export type MenuSectionKochkadaSavory$key = { +$data?: MenuSectionKochkadaSavory$data, - +$fragmentRefs: MenuSectionKochkadaSavory$ref, + +$fragmentSpreads: MenuSectionKochkadaSavory$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '6140475a005f70edc685bfd546178cf4'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "6140475a005f70edc685bfd546178cf4"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionKochkadaSavory$fragmentType, + MenuSectionKochkadaSavory$data, +>*/); diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSweet.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSweet.graphql.js index 2104c74c29..3d6c023d28 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSweet.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionKochkadaSweet.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionKochkadaSweet$ref: FragmentReference; -declare export opaque type MenuSectionKochkadaSweet$fragmentType: MenuSectionKochkadaSweet$ref; -export type MenuSectionKochkadaSweet = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionKochkadaSweet$fragmentType: FragmentType; +export type MenuSectionKochkadaSweet$ref = MenuSectionKochkadaSweet$fragmentType; +export type MenuSectionKochkadaSweet$data = {| +kochkadaSweetMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionKochkadaSweet$ref, + +$fragmentType: MenuSectionKochkadaSweet$fragmentType, |}; -export type MenuSectionKochkadaSweet$data = MenuSectionKochkadaSweet; +export type MenuSectionKochkadaSweet = MenuSectionKochkadaSweet$data; export type MenuSectionKochkadaSweet$key = { +$data?: MenuSectionKochkadaSweet$data, - +$fragmentRefs: MenuSectionKochkadaSweet$ref, + +$fragmentSpreads: MenuSectionKochkadaSweet$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'f986851f1127acd1499898269a9038c3'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "f986851f1127acd1499898269a9038c3"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionKochkadaSweet$fragmentType, + MenuSectionKochkadaSweet$data, +>*/); diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionMilkshake.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionMilkshake.graphql.js index 94d11768a4..0033bfa575 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionMilkshake.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionMilkshake.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<<39957e4bdd4a83d74cd8545f4346ba4b>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionMilkshake$ref: FragmentReference; -declare export opaque type MenuSectionMilkshake$fragmentType: MenuSectionMilkshake$ref; -export type MenuSectionMilkshake = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionMilkshake$fragmentType: FragmentType; +export type MenuSectionMilkshake$ref = MenuSectionMilkshake$fragmentType; +export type MenuSectionMilkshake$data = {| +milkshakesMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionMilkshake$ref, + +$fragmentType: MenuSectionMilkshake$fragmentType, |}; -export type MenuSectionMilkshake$data = MenuSectionMilkshake; +export type MenuSectionMilkshake = MenuSectionMilkshake$data; export type MenuSectionMilkshake$key = { +$data?: MenuSectionMilkshake$data, - +$fragmentRefs: MenuSectionMilkshake$ref, + +$fragmentSpreads: MenuSectionMilkshake$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'd1cc28eedfba9f309564bf01b958dc15'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "d1cc28eedfba9f309564bf01b958dc15"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionMilkshake$fragmentType, + MenuSectionMilkshake$data, +>*/); diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionSpecialities.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionSpecialities.graphql.js index 6987e9766d..d7fb97df67 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionSpecialities.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionSpecialities.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<<8d569e89668800460d221617d35a3ace>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionSpecialities$ref: FragmentReference; -declare export opaque type MenuSectionSpecialities$fragmentType: MenuSectionSpecialities$ref; -export type MenuSectionSpecialities = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionSpecialities$fragmentType: FragmentType; +export type MenuSectionSpecialities$ref = MenuSectionSpecialities$fragmentType; +export type MenuSectionSpecialities$data = {| +specialitiesMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionSpecialities$ref, + +$fragmentType: MenuSectionSpecialities$fragmentType, |}; -export type MenuSectionSpecialities$data = MenuSectionSpecialities; +export type MenuSectionSpecialities = MenuSectionSpecialities$data; export type MenuSectionSpecialities$key = { +$data?: MenuSectionSpecialities$data, - +$fragmentRefs: MenuSectionSpecialities$ref, + +$fragmentSpreads: MenuSectionSpecialities$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '588f863b6281b508dc66297669402400'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "588f863b6281b508dc66297669402400"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionSpecialities$fragmentType, + MenuSectionSpecialities$data, +>*/); diff --git a/src/abacus-kochka/src/menu/__generated__/MenuSectionTea.graphql.js b/src/abacus-kochka/src/menu/__generated__/MenuSectionTea.graphql.js index 7bbf9ae60c..a9b4b830cd 100644 --- a/src/abacus-kochka/src/menu/__generated__/MenuSectionTea.graphql.js +++ b/src/abacus-kochka/src/menu/__generated__/MenuSectionTea.graphql.js @@ -1,30 +1,37 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; -type MenuRow$ref = any; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuSectionTea$ref: FragmentReference; -declare export opaque type MenuSectionTea$fragmentType: MenuSectionTea$ref; -export type MenuSectionTea = {| +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +type MenuRow$fragmentType = any; +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuSectionTea$fragmentType: FragmentType; +export type MenuSectionTea$ref = MenuSectionTea$fragmentType; +export type MenuSectionTea$data = {| +teaMenu: $ReadOnlyArray<{| +id: string, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, |}>, - +$refType: MenuSectionTea$ref, + +$fragmentType: MenuSectionTea$fragmentType, |}; -export type MenuSectionTea$data = MenuSectionTea; +export type MenuSectionTea = MenuSectionTea$data; export type MenuSectionTea$key = { +$data?: MenuSectionTea$data, - +$fragmentRefs: MenuSectionTea$ref, + +$fragmentSpreads: MenuSectionTea$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [ { "kind": "RootArgument", @@ -73,6 +80,12 @@ const node: ReaderFragment = { "type": "MenuQuery", "abstractKey": null }; -// prettier-ignore -(node: any).hash = 'ba30927cc521f851bada3d3e03b5f41a'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "ba30927cc521f851bada3d3e03b5f41a"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuSectionTea$fragmentType, + MenuSectionTea$data, +>*/); diff --git a/src/abacus-kochka/src/menu/components/MenuRow.js b/src/abacus-kochka/src/menu/components/MenuRow.js index ac3992bdb6..827577dbbc 100644 --- a/src/abacus-kochka/src/menu/components/MenuRow.js +++ b/src/abacus-kochka/src/menu/components/MenuRow.js @@ -12,7 +12,7 @@ type Props = { }; export default function MenuRow(props: Props): Node { - const data = useFragment( + const data = useFragment( graphql` fragment MenuRow on Product { name diff --git a/src/abacus-kochka/src/menu/components/__generated__/MenuRow.graphql.js b/src/abacus-kochka/src/menu/components/__generated__/MenuRow.graphql.js index ace7e6b2fa..babeced231 100644 --- a/src/abacus-kochka/src/menu/components/__generated__/MenuRow.graphql.js +++ b/src/abacus-kochka/src/menu/components/__generated__/MenuRow.graphql.js @@ -1,32 +1,39 @@ /** + * @generated SignedSource<<56b794f7eb6a38dea061e183f50ff958>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ReaderFragment } from 'relay-runtime'; +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type MenuRow$ref: FragmentReference; -declare export opaque type MenuRow$fragmentType: MenuRow$ref; -export type MenuRow = {| +import type { FragmentType } from "relay-runtime"; +declare export opaque type MenuRow$fragmentType: FragmentType; +export type MenuRow$ref = MenuRow$fragmentType; +export type MenuRow$data = {| +name: string, +description: ?string, +price: {| +unitAmount: number, +unitAmountCurrency: SupportedCurrency, |}, - +$refType: MenuRow$ref, + +$fragmentType: MenuRow$fragmentType, |}; -export type MenuRow$data = MenuRow; +export type MenuRow = MenuRow$data; export type MenuRow$key = { +$data?: MenuRow$data, - +$fragmentRefs: MenuRow$ref, + +$fragmentSpreads: MenuRow$fragmentType, ... }; +*/ - -const node: ReaderFragment = { +var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, @@ -75,6 +82,12 @@ const node: ReaderFragment = { "type": "Product", "abstractKey": null }; -// prettier-ignore -(node: any).hash = '0dfe65ad52cd8b7bd967d49f64ed44f9'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "0dfe65ad52cd8b7bd967d49f64ed44f9"; +} + +module.exports = ((node/*: any*/)/*: Fragment< + MenuRow$fragmentType, + MenuRow$data, +>*/); diff --git a/src/abacus-kochka/src/shop/__generated__/ProductPageLayoutQuery.graphql.js b/src/abacus-kochka/src/shop/__generated__/ProductPageLayoutQuery.graphql.js index 9ac3d45e7e..da748c338d 100644 --- a/src/abacus-kochka/src/shop/__generated__/ProductPageLayoutQuery.graphql.js +++ b/src/abacus-kochka/src/shop/__generated__/ProductPageLayoutQuery.graphql.js @@ -1,17 +1,25 @@ /** + * @generated SignedSource<<97947a74a397b0a87cf8b59e4770bdaa>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; export type SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ProductPageLayoutQueryVariables = {| +export type ProductPageLayoutQuery$variables = {| clientLocale: SupportedLocale, productKey: string, |}; -export type ProductPageLayoutQueryResponse = {| +export type ProductPageLayoutQueryVariables = ProductPageLayoutQuery$variables; +export type ProductPageLayoutQuery$data = {| +commerce: {| +product: {| +name: string, @@ -24,38 +32,17 @@ export type ProductPageLayoutQueryResponse = {| +blurhash: string, +url: string, |}>, - |} - |} + |}, + |}, |}; +export type ProductPageLayoutQueryResponse = ProductPageLayoutQuery$data; export type ProductPageLayoutQuery = {| variables: ProductPageLayoutQueryVariables, - response: ProductPageLayoutQueryResponse, + response: ProductPageLayoutQuery$data, |}; - -/* -query ProductPageLayoutQuery( - $clientLocale: SupportedLocale! - $productKey: ID! -) { - commerce { - product: getPublishedProductByKey(clientLocale: $clientLocale, productKey: $productKey) { - name - description - price { - unitAmount - unitAmountCurrency - } - images { - blurhash - url - } - id - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -232,6 +219,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '860c513cb31bbfc2af9dcf31be1b0b33'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "25a2ea0e1e939f54047f9222193604a7"; +} + +module.exports = ((node/*: any*/)/*: Query< + ProductPageLayoutQuery$variables, + ProductPageLayoutQuery$data, +>*/); diff --git a/src/abacus-kochka/src/shop/__generated__/ShopLayoutContentQuery.graphql.js b/src/abacus-kochka/src/shop/__generated__/ShopLayoutContentQuery.graphql.js index 8d9bcc5713..f79e5cec3b 100644 --- a/src/abacus-kochka/src/shop/__generated__/ShopLayoutContentQuery.graphql.js +++ b/src/abacus-kochka/src/shop/__generated__/ShopLayoutContentQuery.graphql.js @@ -1,18 +1,26 @@ /** + * @generated SignedSource<> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type PriceSortDirection = "HIGH_TO_LOW" | "LOW_TO_HIGH" | "%future added value"; +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type PriceSortDirection = "LOW_TO_HIGH" | "HIGH_TO_LOW" | "%future added value"; export type SupportedCurrency = "MXN" | "%future added value"; export type SupportedLocale = "en_US" | "es_MX" | "%future added value"; -export type ShopLayoutContentQueryVariables = {| +export type ShopLayoutContentQuery$variables = {| clientLocale: SupportedLocale, priceSortDirection: PriceSortDirection, |}; -export type ShopLayoutContentQueryResponse = {| +export type ShopLayoutContentQueryVariables = ShopLayoutContentQuery$variables; +export type ShopLayoutContentQuery$data = {| +commerce: {| +products: $ReadOnlyArray - |} + |}>, + |}, |}; +export type ShopLayoutContentQueryResponse = ShopLayoutContentQuery$data; export type ShopLayoutContentQuery = {| variables: ShopLayoutContentQueryVariables, - response: ShopLayoutContentQueryResponse, + response: ShopLayoutContentQuery$data, |}; - -/* -query ShopLayoutContentQuery( - $clientLocale: SupportedLocale! - $priceSortDirection: PriceSortDirection! -) { - commerce { - products: searchAllPublishedProducts(clientLocale: $clientLocale, priceSortDirection: $priceSortDirection, visibility: ESHOP) { - key - name - price { - unitAmount - unitAmountCurrency - } - imageCover { - blurhash - url - } - id - } - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "defaultValue": null, @@ -238,6 +225,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = 'f80231d0ee8d704c6ff74da317ee886a'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "58597fd12ee384ee575ed69c889885a3"; +} + +module.exports = ((node/*: any*/)/*: Query< + ShopLayoutContentQuery$variables, + ShopLayoutContentQuery$data, +>*/); diff --git a/src/example-relay/package.json b/src/example-relay/package.json index 26722abf2c..62e67099e0 100644 --- a/src/example-relay/package.json +++ b/src/example-relay/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/src/example-relay/relay.config.js b/src/example-relay/relay.config.js deleted file mode 100644 index 6b8c7a635e..0000000000 --- a/src/example-relay/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/example-relay/src/Homepage/__generated__/HomepageQuery.graphql.js b/src/example-relay/src/Homepage/__generated__/HomepageQuery.graphql.js index 387ff46f65..f4b1913791 100644 --- a/src/example-relay/src/Homepage/__generated__/HomepageQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/Location.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/Location.graphql.js index 1fa4fef9ff..33f1493a2a 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/Location.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js index 5eafe27aa3..5d22726690 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginated.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js index d89e40843c..9096c5ea32 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectional.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js index 98fea697f0..f65f746161 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedBidirectionalRefetchQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js index 568029d91a..b48db1d9d2 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetch.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js index dbe92f6090..3409fd3fdc 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js b/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js index 828b835c46..4736aad2e4 100644 --- a/src/example-relay/src/Homepage/locations/__generated__/LocationsPaginatedRefetchRefetchQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js b/src/example-relay/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js index 4c7d77e4be..35fdde2f0f 100644 --- a/src/example-relay/src/Homepage/locations/__tests__/__generated__/LocationsPaginatedRefetchTestQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/LocalForm/__generated__/LocalFormQuery.graphql.js b/src/example-relay/src/LocalForm/__generated__/LocalFormQuery.graphql.js index a2ae78366d..4f3811239e 100644 --- a/src/example-relay/src/LocalForm/__generated__/LocalFormQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/Polling/__generated__/PollingQuery.graphql.js b/src/example-relay/src/Polling/__generated__/PollingQuery.graphql.js index f263ba49c0..2e6ff5229d 100644 --- a/src/example-relay/src/Polling/__generated__/PollingQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/SSRLocations/__generated__/LocationListItem.graphql.js b/src/example-relay/src/SSRLocations/__generated__/LocationListItem.graphql.js index d6c3ec866e..5565557312 100644 --- a/src/example-relay/src/SSRLocations/__generated__/LocationListItem.graphql.js +++ b/src/example-relay/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/example-relay/src/SSRLocations/__generated__/LocationsList.graphql.js b/src/example-relay/src/SSRLocations/__generated__/LocationsList.graphql.js index b335453a48..7ef2c3e2f2 100644 --- a/src/example-relay/src/SSRLocations/__generated__/LocationsList.graphql.js +++ b/src/example-relay/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/example-relay/src/SSRLocations/__generated__/LocationsQuery.graphql.js b/src/example-relay/src/SSRLocations/__generated__/LocationsQuery.graphql.js index b65fd775f4..3413d1c5a8 100644 --- a/src/example-relay/src/SSRLocations/__generated__/LocationsQuery.graphql.js +++ b/src/example-relay/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/example-relay/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js b/src/example-relay/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js index fd16ae0e05..dec7611ea7 100644 --- a/src/example-relay/src/mutations/RangeAdd/__generated__/LocationsFormMutation.graphql.js +++ b/src/example-relay/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/example-relay/src/mutations/__generated__/LocationsListSimple.graphql.js b/src/example-relay/src/mutations/__generated__/LocationsListSimple.graphql.js index addbb17678..8d51ae118e 100644 --- a/src/example-relay/src/mutations/__generated__/LocationsListSimple.graphql.js +++ b/src/example-relay/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/example-relay/src/mutations/__generated__/SimpleLocationsQuery.graphql.js b/src/example-relay/src/mutations/__generated__/SimpleLocationsQuery.graphql.js index 1d7a3aa6cb..c17e2b8e61 100644 --- a/src/example-relay/src/mutations/__generated__/SimpleLocationsQuery.graphql.js +++ b/src/example-relay/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, +>*/); diff --git a/src/relay/CHANGELOG.md b/src/relay/CHANGELOG.md index fc31e88027..1993e1c885 100644 --- a/src/relay/CHANGELOG.md +++ b/src/relay/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- The old Relay Compiler wrapper has been replaces with the new Rust Compiler. This is the only compiler available in Relay 13+ and you can read more about this change here: https://relay.dev/blog/2021/12/08/introducing-the-new-relay-compiler/ + # 4.0.0 - **Breaking**: Relay version upgraded to 12.0.0, for more information please visit: https://github.com/facebook/relay/releases/tag/v12.0.0 diff --git a/src/relay/bin/commander/__tests__/options.test.js b/src/relay/bin/commander/__tests__/options.test.js index 85bef693a3..5a71302180 100644 --- a/src/relay/bin/commander/__tests__/options.test.js +++ b/src/relay/bin/commander/__tests__/options.test.js @@ -1,11 +1,9 @@ // @flow let fetchSchemaOptions; -let relayCompilerOptions; beforeEach(() => { jest.isolateModules(() => { fetchSchemaOptions = require('../options').fetchSchemaOptions; - relayCompilerOptions = require('../options').relayCompilerOptions; }); }); @@ -35,55 +33,3 @@ describe('fetch schema', () => { }); }); }); - -describe('relay compiler', () => { - it('no args', () => { - expect(() => relayCompilerOptions(['node', 'test'])).toThrowErrorMatchingInlineSnapshot( - `"Option --src is required."`, - ); - }); - - it('with only src', () => { - expect(() => - relayCompilerOptions(['node', 'test', '--src=AAA']), - ).toThrowErrorMatchingInlineSnapshot(`"Option --schema is required."`); - }); - - it('with only schema', () => { - expect(() => - relayCompilerOptions(['node', 'test', '--schema=BBB']), - ).toThrowErrorMatchingInlineSnapshot(`"Option --src is required."`); - }); - - it('with only validate', () => { - expect(() => - relayCompilerOptions(['node', 'test', '--validate']), - ).toThrowErrorMatchingInlineSnapshot(`"Option --src is required."`); - }); - - it('with only watch', () => { - expect(() => - relayCompilerOptions(['node', 'test', '--watch']), - ).toThrowErrorMatchingInlineSnapshot(`"Option --src is required."`); - }); - - it('with src,schema', () => { - expect(relayCompilerOptions(['node', 'test', '--src=AAA', '--schema=BBB'])).toStrictEqual({ - src: 'AAA', - schema: 'BBB', - validate: false, - watch: false, - }); - }); - - it('with all', () => { - expect( - relayCompilerOptions(['node', 'test', '--src=AAA', '--schema=BBB', '--validate', '--watch']), - ).toStrictEqual({ - src: 'AAA', - schema: 'BBB', - validate: true, - watch: true, - }); - }); -}); diff --git a/src/relay/bin/commander/options.js b/src/relay/bin/commander/options.js index 8f88cc8d4f..5c3b444e54 100644 --- a/src/relay/bin/commander/options.js +++ b/src/relay/bin/commander/options.js @@ -34,45 +34,3 @@ module.exports.fetchSchemaOptions = function ( return config; }; - -/*:: - -type RelayCompilerOptions = { - +src: string, - +schema: string, - +validate: boolean, - +watch: boolean, -} - -*/ - -module.exports.relayCompilerOptions = function ( - argToParse: $ReadOnlyArray, -) /*: RelayCompilerOptions */ { - const relayConfig = RelayConfig.loadConfig() ?? {}; - - const options = program - // Please note: try not to extend this CLI if possible. Always prefer "relay.config.js" file. - .option('--src ') - .option('--schema ') - .option('--validate', 'Activates validate only mode', false) - .option( - '--watch', - 'This option currently REQUIRES Watchman (https://facebook.github.io/watchman/) to be installed.', - false, - ) - .parse(argToParse) - .opts(); - - const config = { - src: options.src ?? relayConfig.src, - schema: options.schema ?? relayConfig.schema, - validate: options.validate ?? relayConfig.validate, - watch: options.watch ?? relayConfig.watch, - }; - - invariant(config.src != null, 'Option --src is required.'); - invariant(config.schema != null, 'Option --schema is required.'); - - return config; -}; diff --git a/src/relay/bin/relay-compiler.js b/src/relay/bin/relay-compiler.js deleted file mode 100755 index 6a05fbdd0d..0000000000 --- a/src/relay/bin/relay-compiler.js +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env node - -// @flow - -// TODO: DRY monorepo-utils/bin/monorepo-babel-node-runner.js and fetch-schema -// This is here to make this `bin` available directly from our monorepo without transpiling it. -require('@babel/register')({ - ignore: [/node_modules\/(?!@adeira)/], - rootMode: 'upward-optional', -}); - -const compiler = require('../src/compiler').default; -const { relayCompilerOptions } = require('./commander/options'); - -const options = relayCompilerOptions(process.argv); - -compiler(options).catch((error) => { - // eslint-disable-next-line no-console - console.error(error); - process.exit(1); -}); diff --git a/src/relay/package.json b/src/relay/package.json index c6c092147f..47cfb44602 100644 --- a/src/relay/package.json +++ b/src/relay/package.json @@ -18,10 +18,6 @@ "adeira-fetch-schema": "bin/fetch-schema.js", "adeira-relay-compiler": "bin/relay-compiler.js" }, - "scripts": { - "test": "yarn eslint src && yarn flow src", - "regenerate": "./bin/relay-compiler.js --src=./src --schema=./schema.graphql" - }, "dependencies": { "@adeira/fetch": "^2.1.0", "@adeira/js": "^2.1.1", @@ -29,20 +25,20 @@ "@adeira/signed-source": "^2.0.0", "@babel/register": "^7.16.7", "@babel/runtime": "^7.16.7", - "babel-plugin-relay": "^12.0.0", + "babel-plugin-relay": "^13.0.0", "commander": "^8.3.0", "is-ci": "^3.0.1", - "react-relay": "^12.0.0", - "relay-compiler": "^12.0.0", - "relay-config": "^12.0.1", - "relay-runtime": "^12.0.0" + "react-relay": "^13.0.0", + "relay-compiler": "^13.0.0", + "relay-config": "0.0.0-main-d92b9e55", + "relay-runtime": "^13.0.0" }, "devDependencies": { "@testing-library/react-hooks": "^7.0.2", "react": "^17.0.2", "react-dom": "^17.0.2", "react-test-renderer": "^17.0.2", - "relay-test-utils": "^12.0.0" + "relay-test-utils": "^13.0.0" }, "peerDependencies": { "graphql": "^15.0.0", diff --git a/src/relay/src/__flowtests__/useLazyLoadQuery.js b/src/relay/src/__flowtests__/useLazyLoadQuery.js index 51df1b6c89..90bcb21530 100644 --- a/src/relay/src/__flowtests__/useLazyLoadQuery.js +++ b/src/relay/src/__flowtests__/useLazyLoadQuery.js @@ -8,6 +8,8 @@ const query = graphql` } `; +type QueryVariables = {}; + type QueryTypeMock = { +variables: {}, +response: {}, @@ -16,8 +18,8 @@ type QueryTypeMock = { module.exports = { validUsage: (): (() => void) => { return function TestComponent() { - useLazyLoadQuery(query); - useLazyLoadQuery(query, {}); + useLazyLoadQuery(query); + useLazyLoadQuery(query, Object.freeze({})); }; }, @@ -25,7 +27,7 @@ module.exports = { invalidUsage: (): (() => void) => { return function TestComponent() { // $FlowExpectedError[incompatible-call]: should be an object - useLazyLoadQuery(query, 'invalid'); + useLazyLoadQuery(query, 'invalid'); }; }, }; diff --git a/src/relay/src/__tests__/__generated__/QueryRendererTestQuery.graphql.js b/src/relay/src/__tests__/__generated__/QueryRendererTestQuery.graphql.js index 3cafa4978f..f16e480a96 100644 --- a/src/relay/src/__tests__/__generated__/QueryRendererTestQuery.graphql.js +++ b/src/relay/src/__tests__/__generated__/QueryRendererTestQuery.graphql.js @@ -1,31 +1,32 @@ /** + * @generated SignedSource<<382bc436026cc1f961adcc4118109772>> * @flow + * @lightSyntaxTransform + * @nogrep + * @codegen-command: ./node_modules/.bin/relay-compiler */ /* eslint-disable */ -import type { ConcreteRequest } from 'relay-runtime'; -export type QueryRendererTestQueryVariables = {||}; -export type QueryRendererTestQueryResponse = {| +'use strict'; + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +export type QueryRendererTestQuery$variables = {||}; +export type QueryRendererTestQueryVariables = QueryRendererTestQuery$variables; +export type QueryRendererTestQuery$data = {| +node: ?{| - +id: string - |} + +id: string, + |}, |}; +export type QueryRendererTestQueryResponse = QueryRendererTestQuery$data; export type QueryRendererTestQuery = {| variables: QueryRendererTestQueryVariables, - response: QueryRendererTestQueryResponse, + response: QueryRendererTestQuery$data, |}; - -/* -query QueryRendererTestQuery { - node(id: "my-id") { - __typename - id - } -} */ -const node: ConcreteRequest = (function(){ +var node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "kind": "Literal", @@ -121,6 +122,12 @@ return { } }; })(); -// prettier-ignore -(node: any).hash = '6da37014e280a934ef08b7983d1c4d94'; -export default node; + +if (__DEV__) { + (node/*: any*/).hash = "6da37014e280a934ef08b7983d1c4d94"; +} + +module.exports = ((node/*: any*/)/*: Query< + QueryRendererTestQuery$variables, + QueryRendererTestQuery$data, +>*/); diff --git a/src/relay/src/compiler/__tests__/__fixtures__/schemas/invalidSignatureSchema.schema.txt b/src/relay/src/compiler/__tests__/__fixtures__/schemas/invalidSignatureSchema.schema.txt deleted file mode 100644 index 71286ad5ca..0000000000 --- a/src/relay/src/compiler/__tests__/__fixtures__/schemas/invalidSignatureSchema.schema.txt +++ /dev/null @@ -1,13 +0,0 @@ -# @generated SignedSource<<00000000000000000000000000000000>> - -schema { - query: RootQuery -} - -type RootQuery { - test: Test -} - -type Test { - id: ID! -} diff --git a/src/relay/src/compiler/__tests__/__fixtures__/schemas/missingSignatureSchema.graphql.txt b/src/relay/src/compiler/__tests__/__fixtures__/schemas/missingSignatureSchema.graphql.txt deleted file mode 100644 index af2202bcdd..0000000000 --- a/src/relay/src/compiler/__tests__/__fixtures__/schemas/missingSignatureSchema.graphql.txt +++ /dev/null @@ -1,11 +0,0 @@ -schema { - query: RootQuery -} - -type RootQuery { - test: Test -} - -type Test { - id: ID! -} diff --git a/src/relay/src/compiler/__tests__/__fixtures__/schemas/validSchema.graphql.txt b/src/relay/src/compiler/__tests__/__fixtures__/schemas/validSchema.graphql.txt deleted file mode 100644 index faa3db0dc2..0000000000 --- a/src/relay/src/compiler/__tests__/__fixtures__/schemas/validSchema.graphql.txt +++ /dev/null @@ -1,13 +0,0 @@ -# @generated SignedSource<<4547a7b55a3f6a0937664b991a11d950>> - -schema { - query: RootQuery -} - -type RootQuery { - test: Test -} - -type Test { - id: ID! -} diff --git a/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragment.graphql.js b/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragment.graphql.js deleted file mode 100644 index 25c5f5cb88..0000000000 --- a/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragment.graphql.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @flow - */ - -/* eslint-disable */ - -import type { ReaderFragment } from 'relay-runtime'; -import type { FragmentReference } from "relay-runtime"; -declare export opaque type useRefetchableFragment$ref: FragmentReference; -declare export opaque type useRefetchableFragment$fragmentType: useRefetchableFragment$ref; -export type useRefetchableFragment = {| - +node: ?{| - +__typename: string - |}, - +$refType: useRefetchableFragment$ref, -|}; -export type useRefetchableFragment$data = useRefetchableFragment; -export type useRefetchableFragment$key = { - +$data?: useRefetchableFragment$data, - +$fragmentRefs: useRefetchableFragment$ref, - ... -}; - - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "refetch": { - "connection": null, - "fragmentPathInResult": [], - "operation": require('./useRefetchableFragmentRefetchQuery.graphql.js').default - } - }, - "name": "useRefetchableFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "id", - "value": "my-id" - } - ], - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": "node(id:\"my-id\")" - } - ], - "type": "RootQuery", - "abstractKey": null -}; -// prettier-ignore -(node: any).hash = '67fd2ef08aaa2cc38386f875382ee411'; -export default node; diff --git a/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragmentRefetchQuery.graphql.js b/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragmentRefetchQuery.graphql.js deleted file mode 100644 index 97d3e10045..0000000000 --- a/src/relay/src/compiler/__tests__/__generated__/useRefetchableFragmentRefetchQuery.graphql.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @flow - */ - -/* eslint-disable */ - -import type { ConcreteRequest } from 'relay-runtime'; -type useRefetchableFragment$ref = any; -export type useRefetchableFragmentRefetchQueryVariables = {||}; -export type useRefetchableFragmentRefetchQueryResponse = {| - +$fragmentRefs: useRefetchableFragment$ref -|}; -export type useRefetchableFragmentRefetchQuery = {| - variables: useRefetchableFragmentRefetchQueryVariables, - response: useRefetchableFragmentRefetchQueryResponse, -|}; - -/* -query useRefetchableFragmentRefetchQuery { - ...useRefetchableFragment -} - -fragment useRefetchableFragment on RootQuery { - node(id: "my-id") { - __typename - id - } -} -*/ - -const node: ConcreteRequest = { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "useRefetchableFragmentRefetchQuery", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "useRefetchableFragment" - } - ], - "type": "RootQuery", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "useRefetchableFragmentRefetchQuery", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "id", - "value": "my-id" - } - ], - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": "node(id:\"my-id\")" - } - ] - }, - "params": { - "cacheID": "399ce7cab931a6fa63e5f185adf6efd1", - "id": null, - "metadata": {}, - "name": "useRefetchableFragmentRefetchQuery", - "operationKind": "query", - "text": "query useRefetchableFragmentRefetchQuery {\n ...useRefetchableFragment\n}\n\nfragment useRefetchableFragment on RootQuery {\n node(id: \"my-id\") {\n __typename\n id\n }\n}\n" - } -}; -// prettier-ignore -(node: any).hash = '67fd2ef08aaa2cc38386f875382ee411'; -export default node; diff --git a/src/relay/src/compiler/__tests__/__snapshots__/formatGeneratedModule.test.js.snap b/src/relay/src/compiler/__tests__/__snapshots__/formatGeneratedModule.test.js.snap deleted file mode 100644 index 7ff3ae6002..0000000000 --- a/src/relay/src/compiler/__tests__/__snapshots__/formatGeneratedModule.test.js.snap +++ /dev/null @@ -1,45 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`renders full input correctly 1`] = ` -"/** - * @flow - * HASH - */ - -/* eslint-disable */ - -import type { DOCUMENT_TYPE } from 'relay-runtime'; -TYPE_TEXT - -/* -DOC_TEXT -*/ - -const node: DOCUMENT_TYPE = CONCRETE_TEXT; -// prettier-ignore -(node: any).hash = 'SOURCE_HASH'; -declare var __DEV__: boolean; -if (__DEV__) { - DEV_ONLY_ASSIGNMENTS -} -export default node; -" -`; - -exports[`renders minimal input correctly 1`] = ` -"/** - * @flow - */ - -/* eslint-disable */ - -import type { DOCUMENT_TYPE } from 'relay-runtime'; -TYPE_TEXT - - -const node: DOCUMENT_TYPE = CONCRETE_TEXT; -// prettier-ignore -(node: any).hash = 'SOURCE_HASH'; -export default node; -" -`; diff --git a/src/relay/src/compiler/__tests__/__snapshots__/getSchemaSource.test.js.snap b/src/relay/src/compiler/__tests__/__snapshots__/getSchemaSource.test.js.snap deleted file mode 100644 index 42f672b1e3..0000000000 --- a/src/relay/src/compiler/__tests__/__snapshots__/getSchemaSource.test.js.snap +++ /dev/null @@ -1,7 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`loads the fixture as expected 1`] = ` -" -Schema 'invalidSignatureSchema.schema.txt' has invalid signature! Did you do some manual changes? You can download a fresh schema using 'adeira-fetch-schema' script. -" -`; diff --git a/src/relay/src/compiler/__tests__/buildWatchExpression.test.js b/src/relay/src/compiler/__tests__/buildWatchExpression.test.js deleted file mode 100644 index fdae2ab44f..0000000000 --- a/src/relay/src/compiler/__tests__/buildWatchExpression.test.js +++ /dev/null @@ -1,56 +0,0 @@ -// @flow strict - -import buildWatchExpression from '../buildWatchExpression'; - -it('builds correct watchman expression', () => { - expect( - buildWatchExpression({ - extensions: ['js', 'jsx'], - include: ['**'], - exclude: ['**/node_modules/**', '**/__[a-z]*__/**'], - }), - ).toMatchInlineSnapshot(` - Array [ - "allof", - Array [ - "type", - "f", - ], - Array [ - "anyof", - Array [ - "suffix", - "js", - ], - Array [ - "suffix", - "jsx", - ], - ], - Array [ - "anyof", - Array [ - "match", - "**", - "wholename", - ], - ], - Array [ - "not", - Array [ - "match", - "**/node_modules/**", - "wholename", - ], - ], - Array [ - "not", - Array [ - "match", - "**/__[a-z]*__/**", - "wholename", - ], - ], - ] - `); -}); diff --git a/src/relay/src/compiler/__tests__/formatGeneratedModule.test.js b/src/relay/src/compiler/__tests__/formatGeneratedModule.test.js deleted file mode 100644 index 82de166db3..0000000000 --- a/src/relay/src/compiler/__tests__/formatGeneratedModule.test.js +++ /dev/null @@ -1,28 +0,0 @@ -// @flow strict - -import formatGeneratedModule from '../formatGeneratedModule'; - -it('renders minimal input correctly', () => { - expect( - formatGeneratedModule({ - documentType: 'DOCUMENT_TYPE', - concreteText: 'CONCRETE_TEXT', - typeText: 'TYPE_TEXT', - sourceHash: 'SOURCE_HASH', - }), - ).toMatchSnapshot(); -}); - -it('renders full input correctly', () => { - expect( - formatGeneratedModule({ - documentType: 'DOCUMENT_TYPE', - concreteText: 'CONCRETE_TEXT', - typeText: 'TYPE_TEXT', - sourceHash: 'SOURCE_HASH', - docText: 'DOC_TEXT', - hash: 'HASH', - devOnlyAssignments: 'DEV_ONLY_ASSIGNMENTS', - }), - ).toMatchSnapshot(); -}); diff --git a/src/relay/src/compiler/__tests__/getSchemaSource.test.js b/src/relay/src/compiler/__tests__/getSchemaSource.test.js deleted file mode 100644 index 0e4cbb5ef4..0000000000 --- a/src/relay/src/compiler/__tests__/getSchemaSource.test.js +++ /dev/null @@ -1,26 +0,0 @@ -// @flow strict - -import fs from 'fs'; -import path from 'path'; -import { Source } from 'graphql'; - -import getSchemaSource from '../getSchemaSource'; - -const basePath = path.join(__dirname, '__fixtures__', 'schemas'); -test.each(fs.readdirSync(basePath))('loads the fixture as expected', (fixturePath) => { - expect.assertions(1); - - let schemaSource; - const schemaPath = path.join(basePath, fixturePath); - try { - schemaSource = getSchemaSource(schemaPath); - } catch (error) { - expect( - `\n${error.message.replace(schemaPath, path.relative(basePath, schemaPath))}\n`, - ).toMatchSnapshot(); - } - - if (schemaSource) { - expect(schemaSource instanceof Source).toBe(true); - } -}); diff --git a/src/relay/src/compiler/__tests__/useRefetchableFragment.test.js b/src/relay/src/compiler/__tests__/useRefetchableFragment.test.js deleted file mode 100644 index f80def04c1..0000000000 --- a/src/relay/src/compiler/__tests__/useRefetchableFragment.test.js +++ /dev/null @@ -1,19 +0,0 @@ -// @flow - -import { graphql } from '../../index'; - -it('generates and flow checks the fragment as expected', () => { - // This is technically a Flow test (we are forcing generation of Relay artifacts). - // Relay Compiler generated invalid artifacts for eager ES modules, see: - // https://github.com/adeira/universe/issues/1975 - - graphql` - fragment useRefetchableFragment on RootQuery - @refetchable(queryName: "useRefetchableFragmentRefetchQuery") { - # eslint-disable-next-line relay/unused-fields - node(id: "my-id") { - __typename - } - } - `; -}); diff --git a/src/relay/src/compiler/buildLanguagePlugin.js b/src/relay/src/compiler/buildLanguagePlugin.js deleted file mode 100644 index e78b4bea3f..0000000000 --- a/src/relay/src/compiler/buildLanguagePlugin.js +++ /dev/null @@ -1,24 +0,0 @@ -// @flow - -import { FlowGenerator } from 'relay-compiler'; -import { find } from 'relay-compiler/lib/language/javascript/FindGraphQLTags'; // TODO: better (?) - -import formatGeneratedModule from './formatGeneratedModule'; - -type LanguagePlugin = { - +inputExtensions: $ReadOnlyArray, - +outputExtension: string, - +typeGenerator: $FlowFixMe, - +formatModule: $FlowFixMe, - +findGraphQLTags: $FlowFixMe, -}; - -export default function buildLanguagePlugin(): LanguagePlugin { - return { - inputExtensions: ['js', 'jsx'], - outputExtension: 'js', - typeGenerator: FlowGenerator, - formatModule: formatGeneratedModule, - findGraphQLTags: find, - }; -} diff --git a/src/relay/src/compiler/buildWatchExpression.js b/src/relay/src/compiler/buildWatchExpression.js deleted file mode 100644 index 9399bfeb0b..0000000000 --- a/src/relay/src/compiler/buildWatchExpression.js +++ /dev/null @@ -1,18 +0,0 @@ -// @flow strict - -type WatchmanConfig = $ReadOnlyArray; - -export default function buildWatchExpression(config: { - extensions: $ReadOnlyArray, - include: $ReadOnlyArray, - exclude: $ReadOnlyArray, -}): WatchmanConfig { - // https://facebook.github.io/watchman/docs/install.html - return [ - 'allof', - ['type', 'f'], - ['anyof', ...config.extensions.map((ext) => ['suffix', ext])], - ['anyof', ...config.include.map((include) => ['match', include, 'wholename'])], - ...config.exclude.map((exclude) => ['not', ['match', exclude, 'wholename']]), - ]; -} diff --git a/src/relay/src/compiler/createPrintRequireDefaultModuleDependency.js b/src/relay/src/compiler/createPrintRequireDefaultModuleDependency.js deleted file mode 100644 index f9c55ded0d..0000000000 --- a/src/relay/src/compiler/createPrintRequireDefaultModuleDependency.js +++ /dev/null @@ -1,5 +0,0 @@ -// @flow strict - -export default function createPrintRequireDefaultModuleDependency(): (string) => string { - return (moduleName) => `require('./${moduleName}.js').default`; -} diff --git a/src/relay/src/compiler/formatGeneratedModule.js b/src/relay/src/compiler/formatGeneratedModule.js deleted file mode 100644 index bfdb63cc65..0000000000 --- a/src/relay/src/compiler/formatGeneratedModule.js +++ /dev/null @@ -1,50 +0,0 @@ -// @flow strict - -type FormatModuleInput = $ReadOnly<{ - documentType: $FlowFixMe, - concreteText: string, - typeText: string, - sourceHash: string, - devOnlyAssignments?: string, - docText?: string, - hash?: string, -}>; - -export default function formatGeneratedModule({ - documentType, - docText, - concreteText, - typeText, - hash, - sourceHash, - devOnlyAssignments, -}: FormatModuleInput): string { - const documentTypeImport = documentType - ? `import type { ${documentType} } from 'relay-runtime';` - : ''; - const docTextComment = docText != null ? `/*\n${docText.trim()}\n*/\n` : ''; - const hashText = hash != null ? `\n * ${hash}` : ''; - - // See: https://github.com/facebook/relay/issues/2799 - const devOnlyAddons = - devOnlyAssignments != null - ? `\ndeclare var __DEV__: boolean;\nif (__DEV__) {\n ${devOnlyAssignments}\n}` - : ''; - - // TODO: we should probably export the actual types from `@adeira/relay` rather than using the `flowlint:off` comment. - return `/** - * @flow${hashText} - */ - -/* eslint-disable */ - -${documentTypeImport} -${typeText || ''} - -${docTextComment} -const node: ${documentType ?? 'empty'} = ${concreteText}; -// prettier-ignore -(node: any).hash = '${sourceHash}';${devOnlyAddons} -export default node; -`; -} diff --git a/src/relay/src/compiler/getSchemaSource.js b/src/relay/src/compiler/getSchemaSource.js deleted file mode 100644 index 5489fc8de5..0000000000 --- a/src/relay/src/compiler/getSchemaSource.js +++ /dev/null @@ -1,30 +0,0 @@ -// @flow strict - -import fs from 'fs'; -import SignedSource from '@adeira/signed-source'; -import { Source } from 'graphql'; - -/** - * Returns extended GraphQL schema from the path. It optionally checks whether the schema is signed - * via `@adeira/signed-source` and validates the signature if yes. - */ -export default function getSchemaSource(schemaPath: string): Source { - let source = fs.readFileSync(schemaPath, 'utf8'); - - if (SignedSource.isSigned(source)) { - if (!SignedSource.verifySignature(source)) { - throw new Error( - `Schema '${schemaPath}' has invalid signature! Did you do some manual changes? You can download a fresh schema using 'adeira-fetch-schema' script.`, - ); - } - } - - source = ` - directive @include(if: Boolean) on FRAGMENT_SPREAD | FIELD | INLINE_FRAGMENT - directive @skip(if: Boolean) on FRAGMENT_SPREAD | FIELD | INLINE_FRAGMENT - - ${source} - `; - - return new Source(source, schemaPath); -} diff --git a/src/relay/src/compiler/index.js b/src/relay/src/compiler/index.js deleted file mode 100644 index 20492d8dd2..0000000000 --- a/src/relay/src/compiler/index.js +++ /dev/null @@ -1,180 +0,0 @@ -// @flow - -import path from 'path'; -import { - CodegenRunner, - ConsoleReporter, - DotGraphQLParser, - FileWriter as RelayFileWriter, - IRTransforms as RelayIRTransforms, - JSModuleParser as RelayJSModuleParser, -} from 'relay-compiler'; -import { globSync } from '@adeira/monorepo-utils'; - -import buildLanguagePlugin from './buildLanguagePlugin'; -import buildWatchExpression from './buildWatchExpression'; -import createPrintRequireDefaultModuleDependency from './createPrintRequireDefaultModuleDependency'; -import getSchemaSource from './getSchemaSource'; - -type ExternalOptions = { - +src: string, - +schema: string, - +validate: boolean, - +watch: boolean, -}; - -const { - commonTransforms, - codegenTransforms, - fragmentTransforms, - printTransforms, - queryTransforms, - schemaExtensions, -} = RelayIRTransforms; - -export default async function compiler(externalOptions: ExternalOptions) { - const options = { - // defaults - noFutureProofEnums: false, - artifactDirectory: null, - exclude: [ - // allowed in __tests__ - '**/__flowtests__/**', - '**/__generated__/**', - '**/__mocks__/**', - '**/node_modules/**', - ], - include: ['**'], - ...externalOptions, - }; - - const reporter = new ConsoleReporter({ verbose: false, quiet: false }); - const languagePlugin = buildLanguagePlugin(); - const srcDir = path.resolve(process.cwd(), options.src); - const schemaPath = path.resolve(process.cwd(), options.schema); - const schema = getSchemaSource(schemaPath); - const sourceParserName = languagePlugin.inputExtensions.join('/'); - const sourceSearchOptions = { - extensions: languagePlugin.inputExtensions, - include: options.include, - exclude: ['**/*.graphql.*', ...options.exclude], // Do not include artifacts - }; - const graphqlSearchOptions = { - extensions: ['graphql'], - include: options.include, - exclude: [path.relative(srcDir, schemaPath)].concat(options.exclude), - }; - - const parserConfigs = { - [sourceParserName]: { - baseDir: srcDir, - getFileFilter: RelayJSModuleParser.getFileFilter, - getParser: RelayJSModuleParser.getParser, - getSchemaSource: () => schema, - schemaExtensions, - watchmanExpression: options.watch ? buildWatchExpression(sourceSearchOptions) : null, - filepaths: options.watch ? null : getFilepathsFromGlob(srcDir, sourceSearchOptions), - }, - graphql: { - // local schema - baseDir: srcDir, - getParser: DotGraphQLParser.getParser, - getSchemaSource: () => schema, - schemaExtensions, - watchmanExpression: options.watch ? buildWatchExpression(graphqlSearchOptions) : null, - filepaths: options.watch ? null : getFilepathsFromGlob(srcDir, graphqlSearchOptions), - }, - }; - - const writerConfigs = { - [sourceParserName]: { - writeFiles: getRelayFileWriter(srcDir, languagePlugin, options.noFutureProofEnums), - isGeneratedFile: (filePath: string) => - filePath.endsWith('.graphql.js') && filePath.includes('__generated__'), - parser: sourceParserName, - baseParsers: ['graphql'], - }, - }; - - const codegenRunner = new CodegenRunner({ - reporter, - // $FlowFixMe[incompatible-call]: errors after upgrading to relay 9.1.0 - parserConfigs, - writerConfigs, - onlyValidate: options.validate, - sourceControl: null, - }); - - const result: 'HAS_CHANGES' | 'NO_CHANGES' | 'ERROR' = options.watch - ? /* $FlowFixMe[incompatible-type] This comment suppresses an error when - * upgrading Flow. To see the error delete this comment and run Flow. */ - await codegenRunner.watchAll() - : await codegenRunner.compileAll(); - - if (result === 'ERROR') { - process.exit(100); - } - - if (options.validate && result !== 'NO_CHANGES') { - process.exit(101); - } -} - -function getFilepathsFromGlob( - baseDir, - options: { - extensions: $ReadOnlyArray, - include: $ReadOnlyArray, - exclude: $ReadOnlyArray, - ... - }, -): $ReadOnlyArray { - const { extensions, include, exclude } = options; - const patterns = include.map((inc) => `${inc}/*.+(${extensions.join('|')})`); - let filenames = []; - patterns.forEach( - (pattern) => - (filenames = filenames.concat( - globSync(pattern, { - cwd: baseDir, - ignore: exclude, - }), - )), - ); - return filenames; -} - -function getRelayFileWriter(baseDir: string, languagePlugin, noFutureProofEnums: boolean) { - return ({ onlyValidate, schema, documents, baseDocuments, sourceControl, reporter }) => { - const writerConfig: { [string]: mixed, ... } = { - baseDir, - compilerTransforms: { - commonTransforms, - codegenTransforms, - fragmentTransforms, - printTransforms, - queryTransforms, - }, - customScalars: {}, - formatModule: languagePlugin.formatModule, - optionalInputFieldsForFlow: [], - schemaExtensions, - useHaste: false, - noFutureProofEnums, - extension: languagePlugin.outputExtension, - typeGenerator: languagePlugin.typeGenerator, - printModuleDependency: createPrintRequireDefaultModuleDependency(), - }; - - return RelayFileWriter.writeAll({ - // $FlowFixMe[incompatible-call]: errors after upgrading to relay 9.1.0 - config: writerConfig, - onlyValidate, - schema, - baseDocuments, - documents, - reporter, - sourceControl, - }); - }; -} diff --git a/src/relay/src/useLazyLoadQuery.js b/src/relay/src/useLazyLoadQuery.js index 1c9586c6c8..041ce838ac 100644 --- a/src/relay/src/useLazyLoadQuery.js +++ b/src/relay/src/useLazyLoadQuery.js @@ -1,25 +1,19 @@ // @flow import { useLazyLoadQuery as _useLazyLoadQuery } from 'react-relay'; -import type { - CacheConfig, - FetchPolicy, - GraphQLTaggedNode, - OperationType, - RenderPolicy, - VariablesOf, -} from 'relay-runtime'; +import type { CacheConfig, FetchPolicy, Query, RenderPolicy, Variables } from 'relay-runtime'; // The Flow types should be almost identical except we allow skipping variables. -export default function useLazyLoadQuery( - gqlQuery: GraphQLTaggedNode, - variables?: VariablesOf, +export default function useLazyLoadQuery( + gqlQuery: Query, + variables?: TVariables, options?: { fetchKey?: string | number, fetchPolicy?: FetchPolicy, networkCacheConfig?: CacheConfig, UNSTABLE_renderPolicy?: RenderPolicy, }, -): TQuery['response'] { - return _useLazyLoadQuery(gqlQuery, variables ?? {}, options); +): TData { + const emptyVariables = (({}: any): TVariables); // TODO: how to do this properly? + return _useLazyLoadQuery(gqlQuery, variables ?? emptyVariables, options); } diff --git a/src/relay/src/useMutation.js b/src/relay/src/useMutation.js index 731ee24532..516bdb6bd8 100644 --- a/src/relay/src/useMutation.js +++ b/src/relay/src/useMutation.js @@ -9,6 +9,7 @@ import type { RecordSourceSelectorProxy, DeclarativeMutationConfig, Variables, + VariablesOf, } from 'relay-runtime'; export type MutationParameters = { @@ -26,7 +27,7 @@ type HookMutationConfig = { +onUnsubscribe?: ?() => void, +optimisticResponse?: T['rawResponse'], +optimisticUpdater?: (store: RecordSourceSelectorProxy) => void, - +updater?: ?(store: RecordSourceSelectorProxy, data: T['response']) => void, + +updater?: ?(store: RecordSourceSelectorProxy, data: ?T['response']) => void, +configs?: Array, +uploadables?: UploadableMap, }; @@ -48,9 +49,10 @@ export default function useMutation( // this makes the commit more friendly in terms of DX const modifiedCommit = (config) => { + const emptyVariables = (({}: any): VariablesOf); // TODO: how to do this properly? return commit({ ...config, - variables: config.variables ?? {}, + variables: config.variables ?? emptyVariables, }); }; diff --git a/yarn.lock b/yarn.lock index bc8eb43857..b7ee6e3000 100644 --- a/yarn.lock +++ b/yarn.lock @@ -317,7 +317,7 @@ dependencies: "@babel/highlight" "^7.16.7" -"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.4": +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.0", "@babel/compat-data@^7.16.4": version "7.16.4" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e" integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q== @@ -366,7 +366,49 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.14.0", "@babel/core@^7.15.5", "@babel/core@^7.16.0", "@babel/core@^7.16.7", "@babel/core@^7.7.2", "@babel/core@^7.7.5", "@babel/core@^7.8.0": +"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.12.10", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.7.5": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.0.tgz#c4ff44046f5fe310525cc9eb4ef5147f0c5374d4" + integrity sha512-mYZEvshBRHGsIAiyH5PzCFTCfbWfoYbO/jcSdXQSUQu1/pW0xDZAUP7KEc32heqWTAfAHhV9j1vH8Sav7l+JNQ== + dependencies: + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.0" + "@babel/helper-compilation-targets" "^7.16.0" + "@babel/helper-module-transforms" "^7.16.0" + "@babel/helpers" "^7.16.0" + "@babel/parser" "^7.16.0" + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.0" + "@babel/types" "^7.16.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.1.2" + semver "^6.3.0" + source-map "^0.5.0" + +"@babel/core@^7.15.5": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.5.tgz#924aa9e1ae56e1e55f7184c8bf073a50d8677f5c" + integrity sha512-wUcenlLzuWMZ9Zt8S0KmFwGlH6QKRh3vsm/dhDA3CHkiTA45YuG1XkHRcNRl73EFPXDp/d5kVOU0/y7x2w6OaQ== + dependencies: + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.5" + "@babel/helper-compilation-targets" "^7.16.3" + "@babel/helper-module-transforms" "^7.16.5" + "@babel/helpers" "^7.16.5" + "@babel/parser" "^7.16.5" + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.5" + "@babel/types" "^7.16.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.1.2" + semver "^6.3.0" + source-map "^0.5.0" + +"@babel/core@^7.16.7", "@babel/core@^7.8.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.7.tgz#db990f931f6d40cb9b87a0dc7d2adc749f1dcbcf" integrity sha512-aeLaqcqThRNZYmbMqtulsetOQZ/5gbR/dWruUCJcpas4Qoyy+QeagfDsPdMrqwsPRDNxJvBlRiZxxX7THO7qtA== @@ -396,7 +438,16 @@ eslint-visitor-keys "^2.1.0" semver "^6.3.0" -"@babel/generator@^7.0.0", "@babel/generator@^7.11.6", "@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.14.0", "@babel/generator@^7.16.0", "@babel/generator@^7.16.7", "@babel/generator@^7.7.2": +"@babel/generator@^7.0.0", "@babel/generator@^7.11.6", "@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.16.0", "@babel/generator@^7.7.2": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.0.tgz#d40f3d1d5075e62d3500bccb67f3daa8a95265b2" + integrity sha512-RR8hUCfRQn9j9RPKEVXo9LiwoxLPYn6hNZlvUOR8tSnaxlD0p0+la00ZP9/SnRt6HchKr+X0fO2r8vrETiJGew== + dependencies: + "@babel/types" "^7.16.0" + jsesc "^2.5.1" + source-map "^0.5.0" + +"@babel/generator@^7.16.5", "@babel/generator@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.7.tgz#b42bf46a3079fa65e1544135f32e7958f048adbb" integrity sha512-/ST3Sg8MLGY5HVYmrjOgL60ENux/HfO/CsUh7y4MalThufhE/Ff/6EibFDHi4jiDCaWfJKoqbE6oTh21c5hrRg== @@ -427,7 +478,17 @@ "@babel/helper-explode-assignable-expression" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7": +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.0", "@babel/helper-compilation-targets@^7.16.3": + version "7.16.3" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.3.tgz#5b480cd13f68363df6ec4dc8ac8e2da11363cbf0" + integrity sha512-vKsoSQAyBmxS35JUOOt+07cLc6Nk/2ljLIHwmq2/NM6hdioUaqEXq/S+nXvbvXbZkNDlWOymPanJGOc4CBjSJA== + dependencies: + "@babel/compat-data" "^7.16.0" + "@babel/helper-validator-option" "^7.14.5" + browserslist "^4.17.5" + semver "^6.3.0" + +"@babel/helper-compilation-targets@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz#06e66c5f299601e6c7da350049315e83209d551b" integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA== @@ -578,7 +639,7 @@ dependencies: "@babel/types" "^7.16.7" -"@babel/helper-hoist-variables@^7.16.7": +"@babel/helper-hoist-variables@^7.16.0", "@babel/helper-hoist-variables@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg== @@ -606,14 +667,28 @@ dependencies: "@babel/types" "^7.16.7" -"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7": +"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.0", "@babel/helper-module-imports@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== dependencies: "@babel/types" "^7.16.7" -"@babel/helper-module-transforms@^7.11.0", "@babel/helper-module-transforms@^7.12.1", "@babel/helper-module-transforms@^7.16.7": +"@babel/helper-module-transforms@^7.11.0", "@babel/helper-module-transforms@^7.12.1", "@babel/helper-module-transforms@^7.16.0", "@babel/helper-module-transforms@^7.16.5": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.5.tgz#530ebf6ea87b500f60840578515adda2af470a29" + integrity sha512-CkvMxgV4ZyyioElFwcuWnDCcNIeyqTkCm9BxXZi73RR1ozqlpboqsbGUNvRTflgZtFbbJ1v5Emvm+lkjMYY/LQ== + dependencies: + "@babel/helper-environment-visitor" "^7.16.5" + "@babel/helper-module-imports" "^7.16.0" + "@babel/helper-simple-access" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + "@babel/helper-validator-identifier" "^7.15.7" + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.5" + "@babel/types" "^7.16.0" + +"@babel/helper-module-transforms@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz#7665faeb721a01ca5327ddc6bba15a5cb34b6a41" integrity sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng== @@ -653,7 +728,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375" integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg== -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz#aa3a8ab4c3cceff8e65eb9e73d87dc4ff320b2f5" integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA== @@ -699,7 +774,7 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helper-simple-access@^7.16.7": +"@babel/helper-simple-access@^7.16.0", "@babel/helper-simple-access@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz#d656654b9ea08dbb9659b69d61063ccd343ff0f7" integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g== @@ -759,7 +834,16 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/helpers@^7.10.4", "@babel/helpers@^7.12.5", "@babel/helpers@^7.16.7": +"@babel/helpers@^7.10.4", "@babel/helpers@^7.12.5", "@babel/helpers@^7.16.0": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.5.tgz#29a052d4b827846dd76ece16f565b9634c554ebd" + integrity sha512-TLgi6Lh71vvMZGEkFuIxzaPsyeYCHQ5jJOOX1f0xXn0uciFuE8cEk0wyBquMcCxBXZ5BJhE2aUB7pnWTD150Tw== + dependencies: + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.5" + "@babel/types" "^7.16.0" + +"@babel/helpers@^7.16.5", "@babel/helpers@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.7.tgz#7e3504d708d50344112767c3542fc5e357fffefc" integrity sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw== @@ -786,7 +870,17 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.11.5", "@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.14.0", "@babel/parser@^7.14.7", "@babel/parser@^7.16.4", "@babel/parser@^7.16.7", "@babel/parser@^7.7.2", "@babel/parser@^7.7.4": +"@babel/parser@^7.1.0", "@babel/parser@^7.11.5", "@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.16.0", "@babel/parser@^7.7.2", "@babel/parser@^7.7.4": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.0.tgz#cf147d7ada0a3655e79bf4b08ee846f00a00a295" + integrity sha512-TEHWXf0xxpi9wKVyBCmRcSSDjbJ/cl6LUdlbYUHEaNQUJGhreJbZrXT6sR4+fZLxVUJqNRB4KyOvjuy/D9009A== + +"@babel/parser@^7.14.7", "@babel/parser@^7.16.4": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.5.tgz#beb3af702e54d24796341ab9420fb329131ad658" + integrity sha512-+Ce7T5iPNWzfu9C1aB5tN3Lyafs5xb3Ic7vBWyZL2KXT3QSdD1dD3CvgOzPmQKoNNRt6uauc0XwNJTQtXC2/Mw== + +"@babel/parser@^7.16.5", "@babel/parser@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.7.tgz#d372dda9c89fcec340a82630a9f533f2fe15877e" integrity sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA== @@ -816,7 +910,15 @@ "@babel/helper-remap-async-to-generator" "^7.16.7" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.16.7": +"@babel/plugin-proposal-class-properties@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.0.tgz#c029618267ddebc7280fa286e0f8ca2a278a2d1a" + integrity sha512-mCF3HcuZSY9Fcx56Lbn+CGdT44ioBMMvjNVldpKtj8tpniETdLjnxdHI1+sDWXIM1nNt+EanJOZ3IG9lzVjs7A== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.16.0" + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-proposal-class-properties@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz#925cad7b3b1a2fcea7e59ecc8eb5954f961f91b0" integrity sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww== @@ -916,7 +1018,18 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.0" "@babel/plugin-transform-parameters" "^7.12.1" -"@babel/plugin-proposal-object-rest-spread@^7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.12.1", "@babel/plugin-proposal-object-rest-spread@^7.16.7": +"@babel/plugin-proposal-object-rest-spread@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.0.tgz#5fb32f6d924d6e6712810362a60e12a2609872e6" + integrity sha512-LU/+jp89efe5HuWJLmMmFG0+xbz+I2rSI7iLc1AlaeSMDMOGzWlc5yJrMN1d04osXN4sSfpo4O+azkBNBes0jg== + dependencies: + "@babel/compat-data" "^7.16.0" + "@babel/helper-compilation-targets" "^7.16.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.16.0" + +"@babel/plugin-proposal-object-rest-spread@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.7.tgz#94593ef1ddf37021a25bdcb5754c4a8d534b01d8" integrity sha512-3O0Y4+dw94HA86qSg9IHfyPktgR7q3gpNVAeiKQd+8jBKFaU5NQS1Yatgo4wY+UFNuLjvxcSmzcsHqrhgTyBUA== @@ -1034,7 +1147,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.12.1", "@babel/plugin-syntax-flow@^7.16.7", "@babel/plugin-syntax-flow@^7.7.4": +"@babel/plugin-syntax-flow@^7.12.1", "@babel/plugin-syntax-flow@^7.7.4": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.0.tgz#07427021d093ed77019408221beaf0272bbcfaec" + integrity sha512-dH91yCo0RyqfzWgoM5Ji9ir8fQ+uFbt9KHM3d2x4jZOuHS6wNA+CRmRUP/BWCsHG2bjc7A2Way6AvH1eQk0wig== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-flow@^7.16.0", "@babel/plugin-syntax-flow@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.7.tgz#202b147e5892b8452bbb0bb269c7ed2539ab8832" integrity sha512-UDo3YGQO0jH6ytzVwgSLv9i/CzMcUjbKenL67dTrAZPPv6GFAtDhe6jqnvmoKzC/7htNTohhos+onPtDMqJwaQ== @@ -1083,7 +1203,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-jsx@^7.16.7": +"@babel/plugin-syntax-jsx@^7.16.0", "@babel/plugin-syntax-jsx@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz#50b6571d13f764266a113d77c82b4a6508bbe665" integrity sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q== @@ -1167,7 +1287,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-transform-arrow-functions@^7.0.0", "@babel/plugin-transform-arrow-functions@^7.12.1", "@babel/plugin-transform-arrow-functions@^7.16.7": +"@babel/plugin-transform-arrow-functions@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.0.tgz#951706f8b449c834ed07bd474c0924c944b95a8e" + integrity sha512-vIFb5250Rbh7roWARvCLvIJ/PtAU5Lhv7BtZ1u24COwpI9Ypjsh+bZcKk6rlIyalK+r0jOc1XQ8I4ovNxNrWrA== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-arrow-functions@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz#44125e653d94b98db76369de9c396dc14bef4154" integrity sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ== @@ -1183,21 +1310,41 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/helper-remap-async-to-generator" "^7.16.7" -"@babel/plugin-transform-block-scoped-functions@^7.0.0", "@babel/plugin-transform-block-scoped-functions@^7.16.7": +"@babel/plugin-transform-block-scoped-functions@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz#4d0d57d9632ef6062cdf354bb717102ee042a620" integrity sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-block-scoping@^7.0.0", "@babel/plugin-transform-block-scoping@^7.12.12", "@babel/plugin-transform-block-scoping@^7.16.7": +"@babel/plugin-transform-block-scoping@^7.12.12": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.0.tgz#bcf433fb482fe8c3d3b4e8a66b1c4a8e77d37c16" + integrity sha512-27n3l67/R3UrXfizlvHGuTwsRIFyce3D/6a37GRxn28iyTPvNXaW4XvznexRh1zUNLPjbLL22Id0XQElV94ruw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-block-scoping@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz#f50664ab99ddeaee5bc681b8f3a6ea9d72ab4f87" integrity sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-classes@^7.0.0", "@babel/plugin-transform-classes@^7.12.1", "@babel/plugin-transform-classes@^7.16.7": +"@babel/plugin-transform-classes@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.0.tgz#54cf5ff0b2242c6573d753cd4bfc7077a8b282f5" + integrity sha512-HUxMvy6GtAdd+GKBNYDWCIA776byUQH8zjnfjxwT1P1ARv/wFu8eBDpmXQcLS/IwRtrxIReGiplOwMeyO7nsDQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.0" + "@babel/helper-function-name" "^7.16.0" + "@babel/helper-optimise-call-expression" "^7.16.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-replace-supers" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + globals "^11.1.0" + +"@babel/plugin-transform-classes@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz#8f4b9562850cd973de3b498f1218796eb181ce00" integrity sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ== @@ -1211,14 +1358,21 @@ "@babel/helper-split-export-declaration" "^7.16.7" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@^7.0.0", "@babel/plugin-transform-computed-properties@^7.16.7": +"@babel/plugin-transform-computed-properties@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz#66dee12e46f61d2aae7a73710f591eb3df616470" integrity sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-destructuring@^7.0.0", "@babel/plugin-transform-destructuring@^7.12.1", "@babel/plugin-transform-destructuring@^7.16.7": +"@babel/plugin-transform-destructuring@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.0.tgz#ad3d7e74584ad5ea4eadb1e6642146c590dee33c" + integrity sha512-Q7tBUwjxLTsHEoqktemHBMtb3NYwyJPTJdM+wDwb0g8PZ3kQUIzNvwD5lPaqW/p54TXBc/MXZu9Jr7tbUEUM8Q== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-destructuring@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.7.tgz#ca9588ae2d63978a4c29d3f33282d8603f618e23" integrity sha512-VqAwhTHBnu5xBVDCvrvqJbtLUa++qZaWC0Fgr2mqokBlulZARGyIvZDoqbPlPaKImQ9dKAcCzbv+ul//uqu70A== @@ -1248,7 +1402,15 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.16.7" "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-flow-strip-types@^7.0.0", "@babel/plugin-transform-flow-strip-types@^7.12.13", "@babel/plugin-transform-flow-strip-types@^7.16.7", "@babel/plugin-transform-flow-strip-types@^7.2.0": +"@babel/plugin-transform-flow-strip-types@^7.12.13", "@babel/plugin-transform-flow-strip-types@^7.2.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.0.tgz#edd968dc2041c1b69e451a262e948d6654a79dc2" + integrity sha512-vs/F5roOaO/+WxKfp9PkvLsAyj0G+Q0zbFimHm9X2KDgabN2XmNFoAafmeGEYspUlIF9+MvVmyek9UyHiqeG/w== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-flow" "^7.16.0" + +"@babel/plugin-transform-flow-strip-types@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.7.tgz#291fb140c78dabbf87f2427e7c7c332b126964b8" integrity sha512-mzmCq3cNsDpZZu9FADYYyfZJIOrSONmHcop2XEKPdBNMa4PDC4eEvcOvzZaCNcjKu72v0XQlA5y1g58aLRXdYg== @@ -1256,14 +1418,21 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/plugin-syntax-flow" "^7.16.7" -"@babel/plugin-transform-for-of@^7.0.0", "@babel/plugin-transform-for-of@^7.12.1", "@babel/plugin-transform-for-of@^7.16.7": +"@babel/plugin-transform-for-of@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.0.tgz#f7abaced155260e2461359bbc7c7248aca5e6bd2" + integrity sha512-5QKUw2kO+GVmKr2wMYSATCTTnHyscl6sxFRAY+rvN7h7WB0lcG0o4NoV6ZQU32OZGVsYUsfLGgPQpDFdkfjlJQ== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-for-of@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz#649d639d4617dff502a9a158c479b3b556728d8c" integrity sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-function-name@^7.0.0", "@babel/plugin-transform-function-name@^7.16.7": +"@babel/plugin-transform-function-name@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz#5ab34375c64d61d083d7d2f05c38d90b97ec65cf" integrity sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA== @@ -1272,14 +1441,14 @@ "@babel/helper-function-name" "^7.16.7" "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-literals@^7.0.0", "@babel/plugin-transform-literals@^7.16.7": +"@babel/plugin-transform-literals@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz#254c9618c5ff749e87cb0c0cef1a0a050c0bdab1" integrity sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-member-expression-literals@^7.0.0", "@babel/plugin-transform-member-expression-literals@^7.16.7": +"@babel/plugin-transform-member-expression-literals@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz#6e5dcf906ef8a098e630149d14c867dd28f92384" integrity sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw== @@ -1295,7 +1464,7 @@ "@babel/helper-plugin-utils" "^7.16.7" babel-plugin-dynamic-import-node "^2.3.3" -"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.16.7", "@babel/plugin-transform-modules-commonjs@^7.8.3": +"@babel/plugin-transform-modules-commonjs@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.7.tgz#fd119e6a433c527d368425b45df361e1e95d3c1a" integrity sha512-h2RP2kE7He1ZWKyAlanMZrAbdv+Acw1pA8dQZhE025WJZE2z0xzFADAinXA9fxd5bn7JnM+SdOGcndGx1ARs9w== @@ -1305,6 +1474,16 @@ "@babel/helper-simple-access" "^7.16.7" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-commonjs@^7.8.3": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.0.tgz#add58e638c8ddc4875bd9a9ecb5c594613f6c922" + integrity sha512-Dzi+NWqyEotgzk/sb7kgQPJQf7AJkQBWsVp1N6JWc1lBVo0vkElUnGdr1PzUBmfsCCN5OOFya3RtpeHk15oLKQ== + dependencies: + "@babel/helper-module-transforms" "^7.16.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-simple-access" "^7.16.0" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-systemjs@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.7.tgz#887cefaef88e684d29558c2b13ee0563e287c2d7" @@ -1338,7 +1517,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-object-super@^7.0.0", "@babel/plugin-transform-object-super@^7.16.7": +"@babel/plugin-transform-object-super@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz#ac359cf8d32cf4354d27a46867999490b6c32a94" integrity sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw== @@ -1346,14 +1525,28 @@ "@babel/helper-plugin-utils" "^7.16.7" "@babel/helper-replace-supers" "^7.16.7" -"@babel/plugin-transform-parameters@^7.0.0", "@babel/plugin-transform-parameters@^7.10.4", "@babel/plugin-transform-parameters@^7.12.1", "@babel/plugin-transform-parameters@^7.16.7": +"@babel/plugin-transform-parameters@^7.10.4", "@babel/plugin-transform-parameters@^7.12.1": + version "7.16.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.3.tgz#fa9e4c874ee5223f891ee6fa8d737f4766d31d15" + integrity sha512-3MaDpJrOXT1MZ/WCmkOFo7EtmVVC8H4EUZVrHvFOsmwkk4lOjQj8rzv8JKUZV4YoQKeoIgk07GO+acPU9IMu/w== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-parameters@^7.16.0": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.5.tgz#4fc74b18a89638bd90aeec44a11793ecbe031dde" + integrity sha512-B3O6AL5oPop1jAVg8CV+haeUte9oFuY85zu0jwnRNZZi3tVAbJriu5tag/oaO2kGaQM/7q7aGPBlTI5/sr9enA== + dependencies: + "@babel/helper-plugin-utils" "^7.16.5" + +"@babel/plugin-transform-parameters@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz#a1721f55b99b736511cb7e0152f61f17688f331f" integrity sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-property-literals@^7.0.0", "@babel/plugin-transform-property-literals@^7.16.7": +"@babel/plugin-transform-property-literals@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz#2dadac85155436f22c696c4827730e0fe1057a55" integrity sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw== @@ -1367,7 +1560,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.16.7": +"@babel/plugin-transform-react-display-name@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.16.7.tgz#7b6d40d232f4c0f550ea348593db3b21e2404340" integrity sha512-qgIg8BcZgd0G/Cz916D5+9kqX0c7nPZyXaP8R2tLNN5tkyIZdG5fEwBrxwplzSnjC1jvQmyMNVwUCZPcbGY7Pg== @@ -1381,7 +1574,18 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.16.7" -"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.12.12", "@babel/plugin-transform-react-jsx@^7.16.7": +"@babel/plugin-transform-react-jsx@^7.12.12": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.16.0.tgz#55b797d4960c3de04e07ad1c0476e2bc6a4889f1" + integrity sha512-rqDgIbukZ44pqq7NIRPGPGNklshPkvlmvqjdx3OZcGPk4zGIenYkxDTvl3LsSL8gqcc3ZzGmXPE6hR/u/voNOw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.16.0" + "@babel/helper-module-imports" "^7.16.0" + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/plugin-syntax-jsx" "^7.16.0" + "@babel/types" "^7.16.0" + +"@babel/plugin-transform-react-jsx@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.16.7.tgz#86a6a220552afd0e4e1f0388a68a372be7add0d4" integrity sha512-8D16ye66fxiE8m890w0BpPpngG9o9OVBBy0gH2E+2AR7qMR2ZpTYJEqLxAsoroenMId0p/wMW+Blc0meDgu0Ag== @@ -1426,14 +1630,29 @@ babel-plugin-polyfill-regenerator "^0.3.0" semver "^6.3.0" -"@babel/plugin-transform-shorthand-properties@^7.0.0", "@babel/plugin-transform-shorthand-properties@^7.12.1", "@babel/plugin-transform-shorthand-properties@^7.16.7": +"@babel/plugin-transform-shorthand-properties@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.0.tgz#090372e3141f7cc324ed70b3daf5379df2fa384d" + integrity sha512-iVb1mTcD8fuhSv3k99+5tlXu5N0v8/DPm2mO3WACLG6al1CGZH7v09HJyUb1TtYl/Z+KrM6pHSIJdZxP5A+xow== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-shorthand-properties@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz#e8549ae4afcf8382f711794c0c7b6b934c5fbd2a" integrity sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg== dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-spread@^7.0.0", "@babel/plugin-transform-spread@^7.12.1", "@babel/plugin-transform-spread@^7.16.7": +"@babel/plugin-transform-spread@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.0.tgz#d21ca099bbd53ab307a8621e019a7bd0f40cdcfb" + integrity sha512-Ao4MSYRaLAQczZVp9/7E7QHsCuK92yHRrmVNRe/SlEJjhzivq0BSn8mEraimL8wizHZ3fuaHxKH0iwzI13GyGg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0" + +"@babel/plugin-transform-spread@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz#a303e2122f9f12e0105daeedd0f30fb197d8ff44" integrity sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg== @@ -1448,7 +1667,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.16.7" -"@babel/plugin-transform-template-literals@^7.0.0", "@babel/plugin-transform-template-literals@^7.12.1", "@babel/plugin-transform-template-literals@^7.16.7": +"@babel/plugin-transform-template-literals@^7.12.1": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.0.tgz#a8eced3a8e7b8e2d40ec4ec4548a45912630d302" + integrity sha512-Rd4Ic89hA/f7xUSJQk5PnC+4so50vBoBfxjdQAdvngwidM8jYIBVxBZ/sARxD4e0yMXRbJVDrYf7dyRtIIKT6Q== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-transform-template-literals@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz#f3d1c45d28967c8e80f53666fc9c3e50618217ab" integrity sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA== @@ -1648,7 +1874,38 @@ "@babel/parser" "^7.16.7" "@babel/types" "^7.16.7" -"@babel/traverse@^7.11.5", "@babel/traverse@^7.12.11", "@babel/traverse@^7.12.9", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.0", "@babel/traverse@^7.16.3", "@babel/traverse@^7.16.5", "@babel/traverse@^7.16.7", "@babel/traverse@^7.7.2", "@babel/traverse@^7.7.4": +"@babel/traverse@^7.11.5", "@babel/traverse@^7.12.11", "@babel/traverse@^7.12.9", "@babel/traverse@^7.13.0", "@babel/traverse@^7.7.2", "@babel/traverse@^7.7.4": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.0.tgz#965df6c6bfc0a958c1e739284d3c9fa4a6e3c45b" + integrity sha512-qQ84jIs1aRQxaGaxSysII9TuDaguZ5yVrEuC0BN2vcPlalwfLovVmCjbFDPECPXcYM/wLvNFfp8uDOliLxIoUQ== + dependencies: + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.0" + "@babel/helper-function-name" "^7.16.0" + "@babel/helper-hoist-variables" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + "@babel/parser" "^7.16.0" + "@babel/types" "^7.16.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/traverse@^7.16.0", "@babel/traverse@^7.16.3", "@babel/traverse@^7.16.5": + version "7.16.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.5.tgz#d7d400a8229c714a59b87624fc67b0f1fbd4b2b3" + integrity sha512-FOCODAzqUMROikDYLYxl4nmwiLlu85rNqBML/A5hKRVXG2LV8d0iMqgPzdYTcIpjZEBB7D6UDU9vxRZiriASdQ== + dependencies: + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.5" + "@babel/helper-environment-visitor" "^7.16.5" + "@babel/helper-function-name" "^7.16.0" + "@babel/helper-hoist-variables" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + "@babel/parser" "^7.16.5" + "@babel/types" "^7.16.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/traverse@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.7.tgz#dac01236a72c2560073658dd1a285fe4e0865d76" integrity sha512-8KWJPIb8c2VvY8AJrydh6+fVRo2ODx1wYBU2398xJVq0JomuLBZmVQzLPBblJgHIGYG4znCpUZUZ0Pt2vdmVYQ== @@ -5797,23 +6054,20 @@ babel-plugin-react-docgen@^4.2.1: lodash "^4.17.15" react-docgen "^5.0.0" -babel-plugin-relay@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-relay/-/babel-plugin-relay-12.0.0.tgz#cdce02494b69e9477a4507f9972f8473081b732d" - integrity sha512-fQWmS3YEu1smPx4xrn+7RyzDAlgVDG5q2m5cb+qC/Tr2+gANkxqGtQ+YPiOX6g4rgdbE+7a6RT3lViBExYBVKw== +babel-plugin-relay@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-relay/-/babel-plugin-relay-13.0.0.tgz#352944bd67c6dc03ae99f1ebe1fc4d7f660f8d3d" + integrity sha512-i8qh7aFQrR6B6d75VeXe7H02Aq9LqXDGnamy1Pwiuj7cwq6Sbc8fhNh364CQPBQhA9oGMWppbIDLKmZi28hkPg== dependencies: babel-plugin-macros "^2.0.0" + cosmiconfig "^5.0.5" + graphql "15.3.0" babel-plugin-syntax-jsx@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY= -babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" - integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== - babel-plugin-tester@^10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-tester/-/babel-plugin-tester-10.1.0.tgz#e099ee1d8dec538439c427a7d12aad132885757b" @@ -5849,39 +6103,6 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -babel-preset-fbjs@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" - integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== - dependencies: - "@babel/plugin-proposal-class-properties" "^7.0.0" - "@babel/plugin-proposal-object-rest-spread" "^7.0.0" - "@babel/plugin-syntax-class-properties" "^7.0.0" - "@babel/plugin-syntax-flow" "^7.0.0" - "@babel/plugin-syntax-jsx" "^7.0.0" - "@babel/plugin-syntax-object-rest-spread" "^7.0.0" - "@babel/plugin-transform-arrow-functions" "^7.0.0" - "@babel/plugin-transform-block-scoped-functions" "^7.0.0" - "@babel/plugin-transform-block-scoping" "^7.0.0" - "@babel/plugin-transform-classes" "^7.0.0" - "@babel/plugin-transform-computed-properties" "^7.0.0" - "@babel/plugin-transform-destructuring" "^7.0.0" - "@babel/plugin-transform-flow-strip-types" "^7.0.0" - "@babel/plugin-transform-for-of" "^7.0.0" - "@babel/plugin-transform-function-name" "^7.0.0" - "@babel/plugin-transform-literals" "^7.0.0" - "@babel/plugin-transform-member-expression-literals" "^7.0.0" - "@babel/plugin-transform-modules-commonjs" "^7.0.0" - "@babel/plugin-transform-object-super" "^7.0.0" - "@babel/plugin-transform-parameters" "^7.0.0" - "@babel/plugin-transform-property-literals" "^7.0.0" - "@babel/plugin-transform-react-display-name" "^7.0.0" - "@babel/plugin-transform-react-jsx" "^7.0.0" - "@babel/plugin-transform-shorthand-properties" "^7.0.0" - "@babel/plugin-transform-spread" "^7.0.0" - "@babel/plugin-transform-template-literals" "^7.0.0" - babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" - babel-preset-jest@^27.4.0: version "27.4.0" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.4.0.tgz#70d0e676a282ccb200fbabd7f415db5fdf393bca" @@ -9530,6 +9751,19 @@ fbjs@^3.0.0: setimmediate "^1.0.5" ua-parser-js "^0.7.18" +fbjs@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-3.0.2.tgz#dfae08a85c66a58372993ce2caf30863f569ff94" + integrity sha512-qv+boqYndjElAJHNN3NoM8XuwQZ1j2m3kEvTgdle8IDjr6oUbkEpvABWtj/rQl3vq4ew7dnElBxL4YJAwTVqQQ== + dependencies: + cross-fetch "^3.0.4" + fbjs-css-vars "^1.0.0" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.30" + fbt@^0.16.6: version "0.16.6" resolved "https://registry.yarnpkg.com/fbt/-/fbt-0.16.6.tgz#dfda9a375469e8124758e53bf28d4e93a7ae6f21" @@ -10310,7 +10544,17 @@ graphql-tag@^2.11.0: resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.11.0.tgz#1deb53a01c46a7eb401d6cb59dec86fa1cccbffd" integrity sha512-VmsD5pJqWJnQZMUeRwrDhfgoyqcfwEkvtpANqcoUG8/tOLkwNgU9mzub/Mc78OJMhHjx7gfAMTxzdG43VGg3bA== -"graphql@^14.0.0 || ^15.0.0", graphql@^15.5.1, graphql@^15.8.0: +graphql@15.3.0, "graphql@^14.0.0 || ^15.0.0": + version "15.3.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.3.0.tgz#3ad2b0caab0d110e3be4a5a9b2aa281e362b5278" + integrity sha512-GTCJtzJmkFLWRfFJuoo9RWWa/FfamUHgiFosxi/X1Ani4AVWbeyBenZTNX6dM+7WSbbFfTo/25eh0LLkwHMw2w== + +graphql@^15.5.1: + version "15.7.2" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.7.2.tgz#85ab0eeb83722977151b3feb4d631b5f2ab287ef" + integrity sha512-AnnKk7hFQFmU/2I9YSQf3xw44ctnSFCfp3zE0N6W174gqe9fWG/2rKaKxROK7CcI3XtERpjEKFqts8o319Kf7A== + +graphql@^15.8.0: version "15.8.0" resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.8.0.tgz#33410e96b012fa3bdb1091cc99a94769db212b38" integrity sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw== @@ -11000,11 +11244,6 @@ immutable@^4.0.0: resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.0.0.tgz#b86f78de6adef3608395efb269a91462797e2c23" integrity sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw== -immutable@~3.7.6: - version "3.7.6" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" - integrity sha1-E7TTyxK++hVIKib+Gy665kAHHks= - import-cwd@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-3.0.0.tgz#20845547718015126ea9b3676b7592fb8bd4cf92" @@ -15730,16 +15969,16 @@ react-refresh@^0.10.0: resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.10.0.tgz#2f536c9660c0b9b1d500684d9e52a65e7404f7e3" integrity sha512-PgidR3wST3dDYKr6b4pJoqQFpPGNKDSCDx4cZoshjXipw3LzO7mG1My2pwEzz2JVkF+inx3xRpDeQLFQGH/hsQ== -react-relay@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/react-relay/-/react-relay-12.0.0.tgz#1b4d9429253b3d7c4d1dff5de7337a1de8b896e5" - integrity sha512-nDWJherEDtK35kK+gcDLUT6dhUG7EYQ8ePDJiCKBqCnkCx1272Ll7JcmYRBwyeL+IEp7J+CnUOAhv82VZxUh6g== +react-relay@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/react-relay/-/react-relay-13.0.0.tgz#82e240ebeff9700dcd7c8f422019e66840b38c1f" + integrity sha512-np53H9dl9ozDOJsxkYj/g3dhlsJjkTZ6BULgZ28t69o9xHMrlJVY0sronzfTBpv9C2wpJD6Mlioj4jA1wfncTg== dependencies: "@babel/runtime" "^7.0.0" - fbjs "^3.0.0" + fbjs "^3.0.2" invariant "^2.2.4" nullthrows "^1.1.1" - relay-runtime "12.0.0" + relay-runtime "13.0.0" react-router-config@^5.1.1: version "5.1.1" @@ -16124,54 +16363,36 @@ relateurl@^0.2.7: resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha1-VNvzd+UUQKypCkzSdGANP/LYiKk= -relay-compiler@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/relay-compiler/-/relay-compiler-12.0.0.tgz#9f292d483fb871976018704138423a96c8a45439" - integrity sha512-SWqeSQZ+AMU/Cr7iZsHi1e78Z7oh00I5SvR092iCJq79aupqJ6Ds+I1Pz/Vzo5uY5PY0jvC4rBJXzlIN5g9boQ== - dependencies: - "@babel/core" "^7.14.0" - "@babel/generator" "^7.14.0" - "@babel/parser" "^7.14.0" - "@babel/runtime" "^7.0.0" - "@babel/traverse" "^7.14.0" - "@babel/types" "^7.0.0" - babel-preset-fbjs "^3.4.0" - chalk "^4.0.0" - fb-watchman "^2.0.0" - fbjs "^3.0.0" - glob "^7.1.1" - immutable "~3.7.6" - invariant "^2.2.4" - nullthrows "^1.1.1" - relay-runtime "12.0.0" - signedsource "^1.0.0" - yargs "^15.3.1" +relay-compiler@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/relay-compiler/-/relay-compiler-13.0.0.tgz#947d32425f4de90bb1e609f952de62814cea61f3" + integrity sha512-LnVkUWrpETr0DH+rTyO3kplrPOdFcEAqCvlatb1ChvcoMHPrDriJH7NFIIZqcPpIAFi2jWvxyvTpbCSm370Q1Q== -relay-config@^12.0.1: - version "12.0.1" - resolved "https://registry.yarnpkg.com/relay-config/-/relay-config-12.0.1.tgz#852ddfe22081b837ce4d2282dffd4dbe75f34c67" - integrity sha512-vq7GLLsGPpb/tZr9kmfbfe5sLO1cGa67jpCp4Xtk+N98fMInCu9YIH8R/FxxUhKVPnpLQf3ecmz+s+/MjzcnTQ== +relay-config@0.0.0-main-d92b9e55: + version "0.0.0-main-d92b9e55" + resolved "https://registry.yarnpkg.com/relay-config/-/relay-config-0.0.0-main-d92b9e55.tgz#23b704b0e306aae37509a01067a35c15b35032a2" + integrity sha512-mea/6cPKAlufH3RB+QXB4sV0aepngW9E+A27lHO4ZAaXzzFZN4rgVa+6sbOE68FRSaQiNgY5/wHSbF/hE8SdAQ== dependencies: cosmiconfig "^5.0.5" -relay-runtime@12.0.0, relay-runtime@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-12.0.0.tgz#1e039282bdb5e0c1b9a7dc7f6b9a09d4f4ff8237" - integrity sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug== +relay-runtime@13.0.0, relay-runtime@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-13.0.0.tgz#a00a419d9e86dbce255c4c73706924b2913f8bbc" + integrity sha512-CMUk5DKXdQBj31Av2fj4AgSZ0UkTqKLArt5UImxRg0Ff7TJ46UAYh2j6omZEUTN9FJqjwbwoGdpqOdaCU9eS2A== dependencies: "@babel/runtime" "^7.0.0" - fbjs "^3.0.0" + fbjs "^3.0.2" invariant "^2.2.4" -relay-test-utils@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/relay-test-utils/-/relay-test-utils-12.0.0.tgz#c8c2cdbef404430f71fdc846e3c7897a63efbbc9" - integrity sha512-LgTJACMDfk53Ua5lX3urWPAUSJ68tfLb2dDLKUszzChFDhHuILHpPsNghs/PXW4qM7k0tKILEacfw6mxQyhOgg== +relay-test-utils@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/relay-test-utils/-/relay-test-utils-13.0.0.tgz#c95d4ccf8d9ee85be11742a08a41224290cd59ab" + integrity sha512-xeJU7IwcC4l0twxGPIb8dHhbOfMRtuUSjQN+svj6+m75OAaxFXa4xCZHooaq6JtJ8iOpRtbHZsJO4L2B/fF5Zw== dependencies: "@babel/runtime" "^7.0.0" - fbjs "^3.0.0" + fbjs "^3.0.2" invariant "^2.2.4" - relay-runtime "12.0.0" + relay-runtime "13.0.0" remark-admonitions@^1.2.1: version "1.2.1" @@ -16950,11 +17171,6 @@ signal-exit@^3.0.2: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.6.tgz#24e630c4b0f03fea446a2bd299e62b4a6ca8d0af" integrity sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ== -signedsource@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-1.0.0.tgz#1ddace4981798f93bd833973803d80d52e93ad6a" - integrity sha1-HdrOSYF5j5O9gzlzgD2A1S6TrWo= - simple-swizzle@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"