Skip to content

Commit

Permalink
chore(deps): bump graphql-tools versions (#5982)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed May 20, 2021
1 parent 7ae711c commit dfd25ca
Show file tree
Hide file tree
Showing 62 changed files with 3,619 additions and 3,345 deletions.
13 changes: 13 additions & 0 deletions .changeset/slow-ravens-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@graphql-codegen/cli': patch
'@graphql-codegen/core': patch
'@graphql-codegen/flow-resolvers': patch
'@graphql-codegen/schema-ast': patch
'@graphql-codegen/visitor-plugin-common': patch
'@graphql-codegen/typescript-graphql-request': patch
'@graphql-codegen/typescript-mongodb': patch
'@graphql-codegen/typescript-resolvers': patch
'@graphql-codegen/plugin-helpers': patch
---

chore(deps): bump graphql-tools versions
2 changes: 0 additions & 2 deletions dev-test/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ generates:
- typescript
- typescript-operations
- typescript-react-query
config:
fetcher:
./dev-test/githunt/types.apolloAngular.ts:
schema: ./dev-test/githunt/schema.json
documents: ./dev-test/githunt/**/*.graphql
Expand Down
158 changes: 79 additions & 79 deletions dev-test/githunt/flow.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,21 @@ export type Scalars = {|
Float: number,
|};

export type Query = {|
__typename?: 'Query',
/** A feed of repository submissions */
feed?: ?Array<?Entry>,
/** A single entry */
entry?: ?Entry,
/** Return the currently logged in user, or null if nobody is logged in */
currentUser?: ?User,
|};

export type QueryFeedArgs = {|
type: FeedType,
offset?: ?$ElementType<Scalars, 'Int'>,
limit?: ?$ElementType<Scalars, 'Int'>,
|};

export type QueryEntryArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
/** A comment about an entry, submitted by a user */
export type Comment = {|
__typename?: 'Comment',
/** The SQL ID of this entry */
id: $ElementType<Scalars, 'Int'>,
/** The GitHub user who posted the comment */
postedBy: User,
/** A timestamp of when the comment was posted */
createdAt: $ElementType<Scalars, 'Float'>,
/** The text of the comment */
content: $ElementType<Scalars, 'String'>,
/** The repository which this comment is about */
repoName: $ElementType<Scalars, 'String'>,
|};

export const FeedTypeValues = Object.freeze({
/** Sort by a combination of freshness and score, using Reddit's algorithm */
Hot: 'HOT',
/** Newest entries first */
New: 'NEW',
/** Highest score entries first */
Top: 'TOP',
});

/** A list of options for the sort order of the feed */
export type FeedType = $Values<typeof FeedTypeValues>;

/** Information about a GitHub repository submitted to GitHunt */
export type Entry = {|
__typename?: 'Entry',
Expand Down Expand Up @@ -70,6 +53,62 @@ export type EntryCommentsArgs = {|
offset?: ?$ElementType<Scalars, 'Int'>,
|};

export const FeedTypeValues = Object.freeze({
/** Sort by a combination of freshness and score, using Reddit's algorithm */
Hot: 'HOT',
/** Newest entries first */
New: 'NEW',
/** Highest score entries first */
Top: 'TOP',
});

/** A list of options for the sort order of the feed */
export type FeedType = $Values<typeof FeedTypeValues>;

export type Mutation = {|
__typename?: 'Mutation',
/** Submit a new repository, returns the new submission */
submitRepository?: ?Entry,
/** Vote on a repository submission, returns the submission that was voted on */
vote?: ?Entry,
/** Comment on a repository, returns the new comment */
submitComment?: ?Comment,
|};

export type MutationSubmitRepositoryArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
|};

export type MutationVoteArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
type: VoteType,
|};

export type MutationSubmitCommentArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
commentContent: $ElementType<Scalars, 'String'>,
|};

export type Query = {|
__typename?: 'Query',
/** A feed of repository submissions */
feed?: ?Array<?Entry>,
/** A single entry */
entry?: ?Entry,
/** Return the currently logged in user, or null if nobody is logged in */
currentUser?: ?User,
|};

export type QueryFeedArgs = {|
type: FeedType,
offset?: ?$ElementType<Scalars, 'Int'>,
limit?: ?$ElementType<Scalars, 'Int'>,
|};

export type QueryEntryArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
|};

/**
* A repository object from the GitHub API. This uses the exact field names returned by the
* GitHub API for simplicity, even though the convention for GraphQL is usually to camel case.
Expand All @@ -92,6 +131,16 @@ export type Repository = {|
owner?: ?User,
|};

export type Subscription = {|
__typename?: 'Subscription',
/** Subscription fires on every comment added */
commentAdded?: ?Comment,
|};

export type SubscriptionCommentAddedArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
|};

/** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */
export type User = {|
__typename?: 'User',
Expand All @@ -103,51 +152,12 @@ export type User = {|
html_url: $ElementType<Scalars, 'String'>,
|};

/** A comment about an entry, submitted by a user */
export type Comment = {|
__typename?: 'Comment',
/** The SQL ID of this entry */
id: $ElementType<Scalars, 'Int'>,
/** The GitHub user who posted the comment */
postedBy: User,
/** A timestamp of when the comment was posted */
createdAt: $ElementType<Scalars, 'Float'>,
/** The text of the comment */
content: $ElementType<Scalars, 'String'>,
/** The repository which this comment is about */
repoName: $ElementType<Scalars, 'String'>,
|};

/** XXX to be removed */
export type Vote = {|
__typename?: 'Vote',
vote_value: $ElementType<Scalars, 'Int'>,
|};

export type Mutation = {|
__typename?: 'Mutation',
/** Submit a new repository, returns the new submission */
submitRepository?: ?Entry,
/** Vote on a repository submission, returns the submission that was voted on */
vote?: ?Entry,
/** Comment on a repository, returns the new comment */
submitComment?: ?Comment,
|};

export type MutationSubmitRepositoryArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
|};

export type MutationVoteArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
type: VoteType,
|};

export type MutationSubmitCommentArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
commentContent: $ElementType<Scalars, 'String'>,
|};

export const VoteTypeValues = Object.freeze({
Up: 'UP',
Down: 'DOWN',
Expand All @@ -157,16 +167,6 @@ export const VoteTypeValues = Object.freeze({
/** The type of vote to record, when submitting a vote */
export type VoteType = $Values<typeof VoteTypeValues>;

export type Subscription = {|
__typename?: 'Subscription',
/** Subscription fires on every comment added */
commentAdded?: ?Comment,
|};

export type SubscriptionCommentAddedArgs = {|
repoFullName: $ElementType<Scalars, 'String'>,
|};

type $Pick<Origin: Object, Keys: Object> = $ObjMapi<Keys, <Key>(k: Key) => $ElementType<Origin, Key>>;

export type OnCommentAddedSubscriptionVariables = {
Expand Down

0 comments on commit dfd25ca

Please sign in to comment.