Skip to content

Commit

Permalink
Fix changeCaseAll.pascalCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi1osof committed Mar 15, 2021
1 parent 050a617 commit 98bc872
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 26 deletions.
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -58,7 +58,7 @@
"@graphql-codegen/typescript": "^1.17.10",
"@graphql-codegen/typescript-apollo-client-helpers": "^1.1.0",
"@graphql-codegen/typescript-operations": "^1.17.8",
"@graphql-codegen/typescript-react-apollo": "^2.0.7",
"@graphql-codegen/typescript-react-apollo": "~2.1.0",
"@next/bundle-analyzer": "^9.5.5",
"@storybook/addon-actions": "^6.0.28",
"@storybook/addon-docs": "^6.0.28",
Expand Down Expand Up @@ -106,6 +106,9 @@
"typescript": "^4.1.2",
"typescript-styled-plugin": "^0.15.0"
},
"resolutions": {
"@graphql-codegen/visitor-plugin-common": "~1.18.0"
},
"description": "Bootstrap a developer-friendly NextJS app",
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions src/gql/Query/user.graphql
@@ -0,0 +1,5 @@
query me {
me {
id
}
}
1 change: 1 addition & 0 deletions src/modules/gql/generated/index.ts
@@ -0,0 +1 @@
export * from './me';export * from './types';
50 changes: 50 additions & 0 deletions src/modules/gql/generated/me.ts
@@ -0,0 +1,50 @@
/* eslint-disable */

/**
* ФАЙЛ ГЕНЕРИРУЕТСЯ АВТОМАТИЧЕСКИ, ПРАВИТЬ ЕГО НЕ НУЖНО
* Команда для генерирования этого файла: "yarn generate:types"
*/


import * as Types from './types';

import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
export type MeQueryVariables = Types.Exact<{ [key: string]: never; }>;


export type MeQuery = { __typename?: 'Query', me?: Types.Maybe<{ __typename?: 'User', id: string }> };


export const MeDocument = gql`
query me {
me {
id
}
}
`;

/**
* __useMeQuery__
*
* To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs.
* When your component renders, `useMeQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useMeQuery({
* variables: {
* },
* });
*/
export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) {
return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, baseOptions);
}
export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>) {
return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, baseOptions);
}
export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
56 changes: 31 additions & 25 deletions yarn.lock
Expand Up @@ -50,9 +50,9 @@
"@babel/highlight" "^7.12.13"

"@babel/compat-data@^7.13.0", "@babel/compat-data@^7.13.8":
version "7.13.8"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.8.tgz#5b783b9808f15cef71547f1b691f34f8ff6003a6"
integrity sha512-EaI33z19T4qN3xLXsGf48M2cDqa6ei9tPZlfLdb2HC+e/cFtREiRd8hdSqDbwdLB0/+gLwqJmCYASH0z2bUdog==
version "7.13.11"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.11.tgz#9c8fe523c206979c9a81b1e12fe50c1254f1aa35"
integrity sha512-BwKEkO+2a67DcFeS3RLl0Z3Gs2OvdXewuWjc1Hfokhb5eQWP9YRYH1/+VrVZvql2CfjOiNGqSAFOYt4lsqTHzg==

"@babel/core@7.12.9":
version "7.12.9"
Expand Down Expand Up @@ -133,9 +133,9 @@
semver "^6.3.0"

"@babel/helper-create-class-features-plugin@^7.13.0":
version "7.13.10"
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.10.tgz#073b2bbb925a097643c6fc5770e5f13394e887c9"
integrity sha512-YV7r2YxdTUaw84EwNkyrRke/TJHR/UXGiyvACRqvdVJ2/syV2rQuJNnaRLSuYiop8cMRXOgseTGoJCWX0q2fFg==
version "7.13.11"
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.11.tgz#30d30a005bca2c953f5653fc25091a492177f4f6"
integrity sha512-ays0I7XYq9xbjCSvT+EvysLgfc3tOkwCULHjrnscGT3A9qD4sk3wXnJ3of0MAWsWGjdinFvajHU2smYuqXKMrw==
dependencies:
"@babel/helper-function-name" "^7.12.13"
"@babel/helper-member-expression-to-functions" "^7.13.0"
Expand Down Expand Up @@ -326,9 +326,9 @@
integrity sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw==

"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.12.3", "@babel/parser@^7.12.7", "@babel/parser@^7.13.0", "@babel/parser@^7.13.10":
version "7.13.10"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.10.tgz#8f8f9bf7b3afa3eabd061f7a5bcdf4fec3c48409"
integrity sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==
version "7.13.11"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.11.tgz#f93ebfc99d21c1772afbbaa153f47e7ce2f50b88"
integrity sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==

"@babel/plugin-proposal-async-generator-functions@^7.13.8":
version "7.13.8"
Expand Down Expand Up @@ -1377,7 +1377,7 @@
parse-filepath "^1.0.2"
tslib "~2.0.1"

"@graphql-codegen/plugin-helpers@^1.18.2", "@graphql-codegen/plugin-helpers@^1.18.3":
"@graphql-codegen/plugin-helpers@^1.18.1", "@graphql-codegen/plugin-helpers@^1.18.2", "@graphql-codegen/plugin-helpers@^1.18.3":
version "1.18.3"
resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.3.tgz#607a8bc16d80b30d59cd07d70de2ba803b57bc4a"
integrity sha512-+LVxWFlcZW+FB32CyvkdaMN/tIMajO42pCg0Cy8Z8ZZtGutXW1w6UggrvrEUzMZc9GHZQe49q+w7QQxeooaIlA==
Expand Down Expand Up @@ -1410,16 +1410,17 @@
auto-bind "~4.0.0"
tslib "~2.1.0"

"@graphql-codegen/typescript-react-apollo@^2.0.7":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-react-apollo/-/typescript-react-apollo-2.2.2.tgz#8146232784704a39c6d834038be5078a5d845aec"
integrity sha512-d0zmFjluJQV0KWbemGKEcNy11EXECX9fD6dlUvNRJs6dWzvFWD1DTcfPwGYC1MQNeXjdGpWwi+0wT/5h7riVbQ==
"@graphql-codegen/typescript-react-apollo@~2.1.0":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-react-apollo/-/typescript-react-apollo-2.1.1.tgz#db94f7b2440dab384e7d4824e716aca929361ffd"
integrity sha512-WGKS9qVTG0z87/1WJy2Yv1r+Qx8tTK6WmjsjKM2LxiUlNGkWhK7BSkL1QgnYmfgN858t21h0b7rGWRk+MLZ1Ag==
dependencies:
"@graphql-codegen/plugin-helpers" "^1.18.3"
"@graphql-codegen/visitor-plugin-common" "^1.19.0"
"@graphql-codegen/plugin-helpers" "^1.18.1"
"@graphql-codegen/visitor-plugin-common" "^1.17.17"
auto-bind "~4.0.0"
change-case-all "^1.0.12"
tslib "~2.1.0"
camel-case "^4.1.1"
pascal-case "^3.1.1"
tslib "~2.0.1"

"@graphql-codegen/typescript@^1.17.10", "@graphql-codegen/typescript@^1.21.1":
version "1.21.1"
Expand All @@ -1431,20 +1432,20 @@
auto-bind "~4.0.0"
tslib "~2.1.0"

"@graphql-codegen/visitor-plugin-common@^1.17.20", "@graphql-codegen/visitor-plugin-common@^1.19.0":
version "1.19.0"
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.19.0.tgz#e302dd1ba55cf220079c40fa840a355dcf81526d"
integrity sha512-Vsh9FwB90SBLnSr4KTFY8cuwjC//JBVyqn4k4usBZHFLWLkPwWzdkUKABFg6ET2gnL2L1rSU/gM30eEBrLRXFA==
"@graphql-codegen/visitor-plugin-common@^1.17.17", "@graphql-codegen/visitor-plugin-common@^1.17.20", "@graphql-codegen/visitor-plugin-common@^1.19.0", "@graphql-codegen/visitor-plugin-common@~1.18.0":
version "1.18.3"
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.18.3.tgz#9d2c4449c3bdaffe3e782e2321fe0cb998b8a91d"
integrity sha512-6xJzt8hszCTKt3rTlcCURpuiAFuaiaZgStlVeRE1OrKEDiY1T3vwF3/7TonhfnEjqBWtZdMmXvNx3ArXkRUV4w==
dependencies:
"@graphql-codegen/plugin-helpers" "^1.18.3"
"@graphql-codegen/plugin-helpers" "^1.18.2"
"@graphql-tools/optimize" "^1.0.1"
"@graphql-tools/relay-operation-optimizer" "^6"
array.prototype.flatmap "^1.2.4"
auto-bind "~4.0.0"
change-case-all "^1.0.12"
dependency-graph "^0.11.0"
dependency-graph "^0.10.0"
graphql-tag "^2.11.0"
parse-filepath "^1.0.2"
pascal-case "^3.1.1"
tslib "~2.1.0"

"@graphql-tools/apollo-engine-loader@^6":
Expand Down Expand Up @@ -5979,6 +5980,11 @@ depd@~1.1.2:
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=

dependency-graph@^0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.10.0.tgz#dfebe384f1f36faf7782be203a7a71102a6335a6"
integrity sha512-c9amUgpgxSi1bE5/sbLwcs5diLD0ygCQYmhfM5H1s5VH1mCsYkcmAL3CcNdv4kdSw6JuMoHeDGzLgj/gAXdWVg==

dependency-graph@^0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
Expand Down

0 comments on commit 98bc872

Please sign in to comment.