Skip to content

Commit ef09ac3

Browse files
committed
fix(repo): apollo-cache
#185
1 parent 377c1c9 commit ef09ac3

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ REACT_APP_GITHUB_MAIN=https://github.com/ani-team/github-client
2020
REACT_APP_GITHUB_FEEDBACK=https://github.com/ani-team/github-client/issues/new
2121

2222
# Используется для кодогенерации, Apollo Client плагина
23-
REACT_APP_ACCESS_TOKEN=9221b1b5ba4b0de72eed80b09602ed7b4c73c222
23+
REACT_APP_ACCESS_TOKEN=57f59e6475f92ded30f0dc78ca142a26e962cc8e

src/features/repo-stat/queries.gen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ export type RepoStatQueryVariables = Types.Exact<{
99
}>;
1010

1111

12-
export type RepoStatQuery = { readonly repository?: Types.Maybe<{ readonly forks: { readonly totalCount: number }, readonly stargazers: { readonly totalCount: number }, readonly watchers: { readonly totalCount: number } }> };
12+
export type RepoStatQuery = { readonly repository?: Types.Maybe<{ readonly id: string, readonly forks: { readonly totalCount: number }, readonly stargazers: { readonly totalCount: number }, readonly watchers: { readonly totalCount: number } }> };
1313

1414

1515
export const RepoStatDocument = gql`
1616
query RepoStat($owner: String!, $name: String!) {
1717
repository(owner: $owner, name: $name) {
18+
id
1819
forks {
1920
totalCount
2021
}

src/features/repo-stat/queries.gql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
query RepoStat($owner: String!, $name: String!) {
22
repository(owner: $owner, name: $name) {
3+
id
34
# Чего не сделаешь ради единого API...
45
forks {
56
totalCount

src/models.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6026,6 +6026,8 @@ export type MarketplaceListing = Node & {
60266026
readonly hasPublishedFreeTrialPlans: Scalars['Boolean'];
60276027
/** Does this listing have a terms of service link? */
60286028
readonly hasTermsOfService: Scalars['Boolean'];
6029+
/** Whether the creator of the app is a verified org */
6030+
readonly hasVerifiedOwner: Scalars['Boolean'];
60296031
/** A technical description of how this app works with GitHub. */
60306032
readonly howItWorks?: Maybe<Scalars['String']>;
60316033
/** The listing's technical description rendered to HTML. */

0 commit comments

Comments
 (0)