graphql-codegen-plugin-typescript-swr 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +5 -0
  2. package/build/main/visitor.js +2 -2
  3. package/build/module/visitor.js +2 -2
  4. package/package.json +8 -5
  5. package/.editorconfig +0 -13
  6. package/.eslintrc.js +0 -63
  7. package/.github/CONTRIBUTING.md +0 -3
  8. package/.github/ISSUE_TEMPLATE.md +0 -9
  9. package/.github/PULL_REQUEST_TEMPLATE.md +0 -7
  10. package/.github/workflows/main.yml +0 -28
  11. package/.gitignore +0 -8
  12. package/.prettierignore +0 -3
  13. package/.prettierrc.json +0 -4
  14. package/.vscode/extensions.json +0 -8
  15. package/.vscode/launch.json +0 -29
  16. package/.vscode/settings.json +0 -41
  17. package/build/tsconfig.main.tsbuildinfo +0 -1
  18. package/build/tsconfig.module.tsbuildinfo +0 -1
  19. package/dev-test/.env +0 -1
  20. package/dev-test/codegen.yml +0 -357
  21. package/dev-test/githunt/__generated__/comment-added.subscription.stencil-component.tsx +0 -47
  22. package/dev-test/githunt/__generated__/comment.query.stencil-component.tsx +0 -68
  23. package/dev-test/githunt/__generated__/comments-page-comment.fragment.stencil-component.tsx +0 -20
  24. package/dev-test/githunt/__generated__/current-user.query.stencil-component.tsx +0 -34
  25. package/dev-test/githunt/__generated__/feed-entry.fragment.stencil-component.tsx +0 -30
  26. package/dev-test/githunt/__generated__/feed.query.stencil-component.tsx +0 -40
  27. package/dev-test/githunt/__generated__/new-entry.mutation.stencil-component.tsx +0 -35
  28. package/dev-test/githunt/__generated__/repo-info.fragment.stencil-component.tsx +0 -26
  29. package/dev-test/githunt/__generated__/submit-comment.mutation.stencil-component.tsx +0 -35
  30. package/dev-test/githunt/__generated__/vote-buttons.fragment.stencil-component.tsx +0 -16
  31. package/dev-test/githunt/__generated__/vote.mutation.stencil-component.tsx +0 -41
  32. package/dev-test/githunt/comment-added.subscription.graphql +0 -11
  33. package/dev-test/githunt/comment.query.graphql +0 -33
  34. package/dev-test/githunt/comments-page-comment.fragment.graphql +0 -9
  35. package/dev-test/githunt/current-user.query.graphql +0 -6
  36. package/dev-test/githunt/feed-entry.fragment.graphql +0 -13
  37. package/dev-test/githunt/feed.query.graphql +0 -8
  38. package/dev-test/githunt/flow.flow.js +0 -367
  39. package/dev-test/githunt/graphql-declared-modules.d.ts +0 -87
  40. package/dev-test/githunt/new-entry.mutation.graphql +0 -5
  41. package/dev-test/githunt/repo-info.fragment.graphql +0 -12
  42. package/dev-test/githunt/schema.js +0 -3
  43. package/dev-test/githunt/schema.json +0 -1750
  44. package/dev-test/githunt/submit-comment.mutation.graphql +0 -5
  45. package/dev-test/githunt/typed-document-nodes.ts +0 -892
  46. package/dev-test/githunt/types.apolloAngular.sdk.ts +0 -570
  47. package/dev-test/githunt/types.apolloAngular.ts +0 -491
  48. package/dev-test/githunt/types.avoidOptionals.ts +0 -266
  49. package/dev-test/githunt/types.d.ts +0 -261
  50. package/dev-test/githunt/types.enumsAsTypes.ts +0 -261
  51. package/dev-test/githunt/types.flatten.preResolveTypes.ts +0 -289
  52. package/dev-test/githunt/types.immutableTypes.ts +0 -267
  53. package/dev-test/githunt/types.preResolveTypes.compatibility.ts +0 -368
  54. package/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts +0 -156
  55. package/dev-test/githunt/types.preResolveTypes.ts +0 -293
  56. package/dev-test/githunt/types.reactApollo.customSuffix.tsx +0 -634
  57. package/dev-test/githunt/types.reactApollo.hooks.tsx +0 -621
  58. package/dev-test/githunt/types.reactApollo.preResolveTypes.tsx +0 -648
  59. package/dev-test/githunt/types.reactApollo.tsx +0 -621
  60. package/dev-test/githunt/types.reactApollo.v2.tsx +0 -635
  61. package/dev-test/githunt/types.stencilApollo.tsx +0 -484
  62. package/dev-test/githunt/types.ts +0 -266
  63. package/dev-test/githunt/types.urql.tsx +0 -444
  64. package/dev-test/githunt/types.vueApollo.ts +0 -647
  65. package/dev-test/githunt/vote-buttons.fragment.graphql +0 -6
  66. package/dev-test/githunt/vote.mutation.graphql +0 -9
  67. package/dev-test/setup.js +0 -3
  68. package/dev-test/test-message/documents.ts +0 -46
  69. package/dev-test/test-message/schema.graphql +0 -23
  70. package/dev-test/test-message/types.tsx +0 -237
  71. package/dev-test/test-schema/env.types.ts +0 -35
  72. package/dev-test/test-schema/flow-types.flow.js +0 -139
  73. package/dev-test/test-schema/local/schema-ast.js +0 -2
  74. package/dev-test/test-schema/local/schema-formats.js +0 -20
  75. package/dev-test/test-schema/local/schema-object.js +0 -2
  76. package/dev-test/test-schema/local/schema-text.js +0 -2
  77. package/dev-test/test-schema/local/schema.graphql +0 -8
  78. package/dev-test/test-schema/resolvers-federation.ts +0 -233
  79. package/dev-test/test-schema/resolvers-root.ts +0 -178
  80. package/dev-test/test-schema/resolvers-types.ts +0 -168
  81. package/dev-test/test-schema/schema-ast.js +0 -2
  82. package/dev-test/test-schema/schema-federation.graphql +0 -30
  83. package/dev-test/test-schema/schema-formats.js +0 -38
  84. package/dev-test/test-schema/schema-json.js +0 -2
  85. package/dev-test/test-schema/schema-object.js +0 -2
  86. package/dev-test/test-schema/schema-text.js +0 -2
  87. package/dev-test/test-schema/schema-with-imports.graphql +0 -9
  88. package/dev-test/test-schema/schema-with-root.graphql +0 -22
  89. package/dev-test/test-schema/schema.graphql +0 -19
  90. package/dev-test/test-schema/schema.json +0 -1070
  91. package/dev-test/test-schema/types.preResolveTypes.onlyOperationTypes.ts +0 -19
  92. package/dev-test/test-schema/types.preResolveTypes.ts +0 -44
  93. package/dev-test/test-schema/typings.avoidOptionals.ts +0 -27
  94. package/dev-test/test-schema/typings.enum.ts +0 -19
  95. package/dev-test/test-schema/typings.immutableTypes.ts +0 -27
  96. package/dev-test/test-schema/typings.ts +0 -156
  97. package/dev-test/test-schema/typings.wrapped.ts +0 -29
  98. package/dev-test/tsconfig.json +0 -18
  99. package/jest.config.js +0 -30
  100. package/renovate.json +0 -2
  101. package/src/config.ts +0 -29
  102. package/src/index.ts +0 -54
  103. package/src/visitor.ts +0 -259
  104. package/tests/outputs/autogenSWRKey.ts +0 -46
  105. package/tests/outputs/excludeQueries.ts +0 -13
  106. package/tests/outputs/infinite.ts +0 -49
  107. package/tests/outputs/mutations.ts +0 -19
  108. package/tests/outputs/rawRequest.ts +0 -19
  109. package/tests/outputs/straight.ts +0 -19
  110. package/tests/swr.spec.ts +0 -306
  111. package/tests/visitor.spec.ts +0 -19
  112. package/tsconfig.json +0 -32
  113. package/tsconfig.main.json +0 -11
  114. package/tsconfig.module.json +0 -13
  115. package/yarn.lock +0 -5359
@@ -1,892 +0,0 @@
1
- import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
- export type Maybe<T> = T | null;
3
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
4
- /** All built-in and custom scalars, mapped to their actual values */
5
- export type Scalars = {
6
- ID: string;
7
- String: string;
8
- Boolean: boolean;
9
- Int: number;
10
- Float: number;
11
- };
12
-
13
- export type Query = {
14
- __typename?: 'Query';
15
- /** A feed of repository submissions */
16
- feed?: Maybe<Array<Maybe<Entry>>>;
17
- /** A single entry */
18
- entry?: Maybe<Entry>;
19
- /** Return the currently logged in user, or null if nobody is logged in */
20
- currentUser?: Maybe<User>;
21
- };
22
-
23
- export type QueryFeedArgs = {
24
- type: FeedType;
25
- offset?: Maybe<Scalars['Int']>;
26
- limit?: Maybe<Scalars['Int']>;
27
- };
28
-
29
- export type QueryEntryArgs = {
30
- repoFullName: Scalars['String'];
31
- };
32
-
33
- /** A list of options for the sort order of the feed */
34
- export enum FeedType {
35
- /** Sort by a combination of freshness and score, using Reddit's algorithm */
36
- Hot = 'HOT',
37
- /** Newest entries first */
38
- New = 'NEW',
39
- /** Highest score entries first */
40
- Top = 'TOP',
41
- }
42
-
43
- /** Information about a GitHub repository submitted to GitHunt */
44
- export type Entry = {
45
- __typename?: 'Entry';
46
- /** Information about the repository from GitHub */
47
- repository: Repository;
48
- /** The GitHub user who submitted this entry */
49
- postedBy: User;
50
- /** A timestamp of when the entry was submitted */
51
- createdAt: Scalars['Float'];
52
- /** The score of this repository, upvotes - downvotes */
53
- score: Scalars['Int'];
54
- /** The hot score of this repository */
55
- hotScore: Scalars['Float'];
56
- /** Comments posted about this repository */
57
- comments: Array<Maybe<Comment>>;
58
- /** The number of comments posted about this repository */
59
- commentCount: Scalars['Int'];
60
- /** The SQL ID of this entry */
61
- id: Scalars['Int'];
62
- /** XXX to be changed */
63
- vote: Vote;
64
- };
65
-
66
- /** Information about a GitHub repository submitted to GitHunt */
67
- export type EntryCommentsArgs = {
68
- limit?: Maybe<Scalars['Int']>;
69
- offset?: Maybe<Scalars['Int']>;
70
- };
71
-
72
- /**
73
- * A repository object from the GitHub API. This uses the exact field names returned by the
74
- * GitHub API for simplicity, even though the convention for GraphQL is usually to camel case.
75
- */
76
- export type Repository = {
77
- __typename?: 'Repository';
78
- /** Just the name of the repository, e.g. GitHunt-API */
79
- name: Scalars['String'];
80
- /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */
81
- full_name: Scalars['String'];
82
- /** The description of the repository */
83
- description?: Maybe<Scalars['String']>;
84
- /** The link to the repository on GitHub */
85
- html_url: Scalars['String'];
86
- /** The number of people who have starred this repository on GitHub */
87
- stargazers_count: Scalars['Int'];
88
- /** The number of open issues on this repository on GitHub */
89
- open_issues_count?: Maybe<Scalars['Int']>;
90
- /** The owner of this repository on GitHub, e.g. apollostack */
91
- owner?: Maybe<User>;
92
- };
93
-
94
- /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */
95
- export type User = {
96
- __typename?: 'User';
97
- /** The name of the user, e.g. apollostack */
98
- login: Scalars['String'];
99
- /** The URL to a directly embeddable image for this user's avatar */
100
- avatar_url: Scalars['String'];
101
- /** The URL of this user's GitHub page */
102
- html_url: Scalars['String'];
103
- };
104
-
105
- /** A comment about an entry, submitted by a user */
106
- export type Comment = {
107
- __typename?: 'Comment';
108
- /** The SQL ID of this entry */
109
- id: Scalars['Int'];
110
- /** The GitHub user who posted the comment */
111
- postedBy: User;
112
- /** A timestamp of when the comment was posted */
113
- createdAt: Scalars['Float'];
114
- /** The text of the comment */
115
- content: Scalars['String'];
116
- /** The repository which this comment is about */
117
- repoName: Scalars['String'];
118
- };
119
-
120
- /** XXX to be removed */
121
- export type Vote = {
122
- __typename?: 'Vote';
123
- vote_value: Scalars['Int'];
124
- };
125
-
126
- export type Mutation = {
127
- __typename?: 'Mutation';
128
- /** Submit a new repository, returns the new submission */
129
- submitRepository?: Maybe<Entry>;
130
- /** Vote on a repository submission, returns the submission that was voted on */
131
- vote?: Maybe<Entry>;
132
- /** Comment on a repository, returns the new comment */
133
- submitComment?: Maybe<Comment>;
134
- };
135
-
136
- export type MutationSubmitRepositoryArgs = {
137
- repoFullName: Scalars['String'];
138
- };
139
-
140
- export type MutationVoteArgs = {
141
- repoFullName: Scalars['String'];
142
- type: VoteType;
143
- };
144
-
145
- export type MutationSubmitCommentArgs = {
146
- repoFullName: Scalars['String'];
147
- commentContent: Scalars['String'];
148
- };
149
-
150
- /** The type of vote to record, when submitting a vote */
151
- export enum VoteType {
152
- Up = 'UP',
153
- Down = 'DOWN',
154
- Cancel = 'CANCEL',
155
- }
156
-
157
- export type Subscription = {
158
- __typename?: 'Subscription';
159
- /** Subscription fires on every comment added */
160
- commentAdded?: Maybe<Comment>;
161
- };
162
-
163
- export type SubscriptionCommentAddedArgs = {
164
- repoFullName: Scalars['String'];
165
- };
166
-
167
- export type OnCommentAddedSubscriptionVariables = Exact<{
168
- repoFullName: Scalars['String'];
169
- }>;
170
-
171
- export type OnCommentAddedSubscription = { __typename?: 'Subscription' } & {
172
- commentAdded?: Maybe<
173
- { __typename?: 'Comment' } & Pick<Comment, 'id' | 'createdAt' | 'content'> & {
174
- postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
175
- }
176
- >;
177
- };
178
-
179
- export type CommentQueryVariables = Exact<{
180
- repoFullName: Scalars['String'];
181
- limit?: Maybe<Scalars['Int']>;
182
- offset?: Maybe<Scalars['Int']>;
183
- }>;
184
-
185
- export type CommentQuery = { __typename?: 'Query' } & {
186
- currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'html_url'>>;
187
- entry?: Maybe<
188
- { __typename?: 'Entry' } & Pick<Entry, 'id' | 'createdAt' | 'commentCount'> & {
189
- postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
190
- comments: Array<Maybe<{ __typename?: 'Comment' } & CommentsPageCommentFragment>>;
191
- repository: { __typename?: 'Repository' } & Pick<
192
- Repository,
193
- 'description' | 'open_issues_count' | 'stargazers_count' | 'full_name' | 'html_url'
194
- >;
195
- }
196
- >;
197
- };
198
-
199
- export type CommentsPageCommentFragment = { __typename?: 'Comment' } & Pick<Comment, 'id' | 'createdAt' | 'content'> & {
200
- postedBy: { __typename?: 'User' } & Pick<User, 'login' | 'html_url'>;
201
- };
202
-
203
- export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;
204
-
205
- export type CurrentUserForProfileQuery = { __typename?: 'Query' } & {
206
- currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login' | 'avatar_url'>>;
207
- };
208
-
209
- export type FeedEntryFragment = { __typename?: 'Entry' } & Pick<Entry, 'id' | 'commentCount'> & {
210
- repository: { __typename?: 'Repository' } & Pick<Repository, 'full_name' | 'html_url'> & {
211
- owner?: Maybe<{ __typename?: 'User' } & Pick<User, 'avatar_url'>>;
212
- };
213
- } & VoteButtonsFragment &
214
- RepoInfoFragment;
215
-
216
- export type FeedQueryVariables = Exact<{
217
- type: FeedType;
218
- offset?: Maybe<Scalars['Int']>;
219
- limit?: Maybe<Scalars['Int']>;
220
- }>;
221
-
222
- export type FeedQuery = { __typename?: 'Query' } & {
223
- currentUser?: Maybe<{ __typename?: 'User' } & Pick<User, 'login'>>;
224
- feed?: Maybe<Array<Maybe<{ __typename?: 'Entry' } & FeedEntryFragment>>>;
225
- };
226
-
227
- export type SubmitRepositoryMutationVariables = Exact<{
228
- repoFullName: Scalars['String'];
229
- }>;
230
-
231
- export type SubmitRepositoryMutation = { __typename?: 'Mutation' } & {
232
- submitRepository?: Maybe<{ __typename?: 'Entry' } & Pick<Entry, 'createdAt'>>;
233
- };
234
-
235
- export type RepoInfoFragment = { __typename?: 'Entry' } & Pick<Entry, 'createdAt'> & {
236
- repository: { __typename?: 'Repository' } & Pick<
237
- Repository,
238
- 'description' | 'stargazers_count' | 'open_issues_count'
239
- >;
240
- postedBy: { __typename?: 'User' } & Pick<User, 'html_url' | 'login'>;
241
- };
242
-
243
- export type SubmitCommentMutationVariables = Exact<{
244
- repoFullName: Scalars['String'];
245
- commentContent: Scalars['String'];
246
- }>;
247
-
248
- export type SubmitCommentMutation = { __typename?: 'Mutation' } & {
249
- submitComment?: Maybe<{ __typename?: 'Comment' } & CommentsPageCommentFragment>;
250
- };
251
-
252
- export type VoteButtonsFragment = { __typename?: 'Entry' } & Pick<Entry, 'score'> & {
253
- vote: { __typename?: 'Vote' } & Pick<Vote, 'vote_value'>;
254
- };
255
-
256
- export type VoteMutationVariables = Exact<{
257
- repoFullName: Scalars['String'];
258
- type: VoteType;
259
- }>;
260
-
261
- export type VoteMutation = { __typename?: 'Mutation' } & {
262
- vote?: Maybe<
263
- { __typename?: 'Entry' } & Pick<Entry, 'score' | 'id'> & {
264
- vote: { __typename?: 'Vote' } & Pick<Vote, 'vote_value'>;
265
- }
266
- >;
267
- };
268
-
269
- export const CommentsPageCommentFragmentDoc: DocumentNode<CommentsPageCommentFragment, unknown> = {
270
- kind: 'Document',
271
- definitions: [
272
- {
273
- kind: 'FragmentDefinition',
274
- name: { kind: 'Name', value: 'CommentsPageComment' },
275
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Comment' } },
276
- directives: [],
277
- selectionSet: {
278
- kind: 'SelectionSet',
279
- selections: [
280
- { kind: 'Field', name: { kind: 'Name', value: 'id' }, arguments: [], directives: [] },
281
- {
282
- kind: 'Field',
283
- name: { kind: 'Name', value: 'postedBy' },
284
- arguments: [],
285
- directives: [],
286
- selectionSet: {
287
- kind: 'SelectionSet',
288
- selections: [
289
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
290
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
291
- ],
292
- },
293
- },
294
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' }, arguments: [], directives: [] },
295
- { kind: 'Field', name: { kind: 'Name', value: 'content' }, arguments: [], directives: [] },
296
- ],
297
- },
298
- },
299
- ],
300
- };
301
- export const VoteButtonsFragmentDoc: DocumentNode<VoteButtonsFragment, unknown> = {
302
- kind: 'Document',
303
- definitions: [
304
- {
305
- kind: 'FragmentDefinition',
306
- name: { kind: 'Name', value: 'VoteButtons' },
307
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Entry' } },
308
- directives: [],
309
- selectionSet: {
310
- kind: 'SelectionSet',
311
- selections: [
312
- { kind: 'Field', name: { kind: 'Name', value: 'score' }, arguments: [], directives: [] },
313
- {
314
- kind: 'Field',
315
- name: { kind: 'Name', value: 'vote' },
316
- arguments: [],
317
- directives: [],
318
- selectionSet: {
319
- kind: 'SelectionSet',
320
- selections: [
321
- { kind: 'Field', name: { kind: 'Name', value: 'vote_value' }, arguments: [], directives: [] },
322
- ],
323
- },
324
- },
325
- ],
326
- },
327
- },
328
- ],
329
- };
330
- export const RepoInfoFragmentDoc: DocumentNode<RepoInfoFragment, unknown> = {
331
- kind: 'Document',
332
- definitions: [
333
- {
334
- kind: 'FragmentDefinition',
335
- name: { kind: 'Name', value: 'RepoInfo' },
336
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Entry' } },
337
- directives: [],
338
- selectionSet: {
339
- kind: 'SelectionSet',
340
- selections: [
341
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' }, arguments: [], directives: [] },
342
- {
343
- kind: 'Field',
344
- name: { kind: 'Name', value: 'repository' },
345
- arguments: [],
346
- directives: [],
347
- selectionSet: {
348
- kind: 'SelectionSet',
349
- selections: [
350
- { kind: 'Field', name: { kind: 'Name', value: 'description' }, arguments: [], directives: [] },
351
- { kind: 'Field', name: { kind: 'Name', value: 'stargazers_count' }, arguments: [], directives: [] },
352
- { kind: 'Field', name: { kind: 'Name', value: 'open_issues_count' }, arguments: [], directives: [] },
353
- ],
354
- },
355
- },
356
- {
357
- kind: 'Field',
358
- name: { kind: 'Name', value: 'postedBy' },
359
- arguments: [],
360
- directives: [],
361
- selectionSet: {
362
- kind: 'SelectionSet',
363
- selections: [
364
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
365
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
366
- ],
367
- },
368
- },
369
- ],
370
- },
371
- },
372
- ],
373
- };
374
- export const FeedEntryFragmentDoc: DocumentNode<FeedEntryFragment, unknown> = {
375
- kind: 'Document',
376
- definitions: [
377
- {
378
- kind: 'FragmentDefinition',
379
- name: { kind: 'Name', value: 'FeedEntry' },
380
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Entry' } },
381
- directives: [],
382
- selectionSet: {
383
- kind: 'SelectionSet',
384
- selections: [
385
- { kind: 'Field', name: { kind: 'Name', value: 'id' }, arguments: [], directives: [] },
386
- { kind: 'Field', name: { kind: 'Name', value: 'commentCount' }, arguments: [], directives: [] },
387
- {
388
- kind: 'Field',
389
- name: { kind: 'Name', value: 'repository' },
390
- arguments: [],
391
- directives: [],
392
- selectionSet: {
393
- kind: 'SelectionSet',
394
- selections: [
395
- { kind: 'Field', name: { kind: 'Name', value: 'full_name' }, arguments: [], directives: [] },
396
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
397
- {
398
- kind: 'Field',
399
- name: { kind: 'Name', value: 'owner' },
400
- arguments: [],
401
- directives: [],
402
- selectionSet: {
403
- kind: 'SelectionSet',
404
- selections: [
405
- { kind: 'Field', name: { kind: 'Name', value: 'avatar_url' }, arguments: [], directives: [] },
406
- ],
407
- },
408
- },
409
- ],
410
- },
411
- },
412
- { kind: 'FragmentSpread', name: { kind: 'Name', value: 'VoteButtons' }, directives: [] },
413
- { kind: 'FragmentSpread', name: { kind: 'Name', value: 'RepoInfo' }, directives: [] },
414
- ],
415
- },
416
- },
417
- ...VoteButtonsFragmentDoc.definitions,
418
- ...RepoInfoFragmentDoc.definitions,
419
- ],
420
- };
421
- export const OnCommentAddedDocument: DocumentNode<OnCommentAddedSubscription, OnCommentAddedSubscriptionVariables> = {
422
- kind: 'Document',
423
- definitions: [
424
- {
425
- kind: 'OperationDefinition',
426
- operation: 'subscription',
427
- name: { kind: 'Name', value: 'onCommentAdded' },
428
- variableDefinitions: [
429
- {
430
- kind: 'VariableDefinition',
431
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
432
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
433
- directives: [],
434
- },
435
- ],
436
- directives: [],
437
- selectionSet: {
438
- kind: 'SelectionSet',
439
- selections: [
440
- {
441
- kind: 'Field',
442
- name: { kind: 'Name', value: 'commentAdded' },
443
- arguments: [
444
- {
445
- kind: 'Argument',
446
- name: { kind: 'Name', value: 'repoFullName' },
447
- value: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
448
- },
449
- ],
450
- directives: [],
451
- selectionSet: {
452
- kind: 'SelectionSet',
453
- selections: [
454
- { kind: 'Field', name: { kind: 'Name', value: 'id' }, arguments: [], directives: [] },
455
- {
456
- kind: 'Field',
457
- name: { kind: 'Name', value: 'postedBy' },
458
- arguments: [],
459
- directives: [],
460
- selectionSet: {
461
- kind: 'SelectionSet',
462
- selections: [
463
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
464
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
465
- ],
466
- },
467
- },
468
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' }, arguments: [], directives: [] },
469
- { kind: 'Field', name: { kind: 'Name', value: 'content' }, arguments: [], directives: [] },
470
- ],
471
- },
472
- },
473
- ],
474
- },
475
- },
476
- ],
477
- };
478
- export const CommentDocument: DocumentNode<CommentQuery, CommentQueryVariables> = {
479
- kind: 'Document',
480
- definitions: [
481
- {
482
- kind: 'OperationDefinition',
483
- operation: 'query',
484
- name: { kind: 'Name', value: 'Comment' },
485
- variableDefinitions: [
486
- {
487
- kind: 'VariableDefinition',
488
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
489
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
490
- directives: [],
491
- },
492
- {
493
- kind: 'VariableDefinition',
494
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
495
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
496
- directives: [],
497
- },
498
- {
499
- kind: 'VariableDefinition',
500
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
501
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
502
- directives: [],
503
- },
504
- ],
505
- directives: [],
506
- selectionSet: {
507
- kind: 'SelectionSet',
508
- selections: [
509
- {
510
- kind: 'Field',
511
- name: { kind: 'Name', value: 'currentUser' },
512
- arguments: [],
513
- directives: [],
514
- selectionSet: {
515
- kind: 'SelectionSet',
516
- selections: [
517
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
518
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
519
- ],
520
- },
521
- },
522
- {
523
- kind: 'Field',
524
- name: { kind: 'Name', value: 'entry' },
525
- arguments: [
526
- {
527
- kind: 'Argument',
528
- name: { kind: 'Name', value: 'repoFullName' },
529
- value: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
530
- },
531
- ],
532
- directives: [],
533
- selectionSet: {
534
- kind: 'SelectionSet',
535
- selections: [
536
- { kind: 'Field', name: { kind: 'Name', value: 'id' }, arguments: [], directives: [] },
537
- {
538
- kind: 'Field',
539
- name: { kind: 'Name', value: 'postedBy' },
540
- arguments: [],
541
- directives: [],
542
- selectionSet: {
543
- kind: 'SelectionSet',
544
- selections: [
545
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
546
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
547
- ],
548
- },
549
- },
550
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' }, arguments: [], directives: [] },
551
- {
552
- kind: 'Field',
553
- name: { kind: 'Name', value: 'comments' },
554
- arguments: [
555
- {
556
- kind: 'Argument',
557
- name: { kind: 'Name', value: 'limit' },
558
- value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
559
- },
560
- {
561
- kind: 'Argument',
562
- name: { kind: 'Name', value: 'offset' },
563
- value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
564
- },
565
- ],
566
- directives: [],
567
- selectionSet: {
568
- kind: 'SelectionSet',
569
- selections: [
570
- { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentsPageComment' }, directives: [] },
571
- ],
572
- },
573
- },
574
- { kind: 'Field', name: { kind: 'Name', value: 'commentCount' }, arguments: [], directives: [] },
575
- {
576
- kind: 'Field',
577
- name: { kind: 'Name', value: 'repository' },
578
- arguments: [],
579
- directives: [],
580
- selectionSet: {
581
- kind: 'SelectionSet',
582
- selections: [
583
- { kind: 'Field', name: { kind: 'Name', value: 'full_name' }, arguments: [], directives: [] },
584
- { kind: 'Field', name: { kind: 'Name', value: 'html_url' }, arguments: [], directives: [] },
585
- {
586
- kind: 'InlineFragment',
587
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Repository' } },
588
- directives: [],
589
- selectionSet: {
590
- kind: 'SelectionSet',
591
- selections: [
592
- {
593
- kind: 'Field',
594
- name: { kind: 'Name', value: 'description' },
595
- arguments: [],
596
- directives: [],
597
- },
598
- {
599
- kind: 'Field',
600
- name: { kind: 'Name', value: 'open_issues_count' },
601
- arguments: [],
602
- directives: [],
603
- },
604
- {
605
- kind: 'Field',
606
- name: { kind: 'Name', value: 'stargazers_count' },
607
- arguments: [],
608
- directives: [],
609
- },
610
- ],
611
- },
612
- },
613
- ],
614
- },
615
- },
616
- ],
617
- },
618
- },
619
- ],
620
- },
621
- },
622
- ...CommentsPageCommentFragmentDoc.definitions,
623
- ],
624
- };
625
- export const CurrentUserForProfileDocument: DocumentNode<
626
- CurrentUserForProfileQuery,
627
- CurrentUserForProfileQueryVariables
628
- > = {
629
- kind: 'Document',
630
- definitions: [
631
- {
632
- kind: 'OperationDefinition',
633
- operation: 'query',
634
- name: { kind: 'Name', value: 'CurrentUserForProfile' },
635
- variableDefinitions: [],
636
- directives: [],
637
- selectionSet: {
638
- kind: 'SelectionSet',
639
- selections: [
640
- {
641
- kind: 'Field',
642
- name: { kind: 'Name', value: 'currentUser' },
643
- arguments: [],
644
- directives: [],
645
- selectionSet: {
646
- kind: 'SelectionSet',
647
- selections: [
648
- { kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] },
649
- { kind: 'Field', name: { kind: 'Name', value: 'avatar_url' }, arguments: [], directives: [] },
650
- ],
651
- },
652
- },
653
- ],
654
- },
655
- },
656
- ],
657
- };
658
- export const FeedDocument: DocumentNode<FeedQuery, FeedQueryVariables> = {
659
- kind: 'Document',
660
- definitions: [
661
- {
662
- kind: 'OperationDefinition',
663
- operation: 'query',
664
- name: { kind: 'Name', value: 'Feed' },
665
- variableDefinitions: [
666
- {
667
- kind: 'VariableDefinition',
668
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
669
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'FeedType' } } },
670
- directives: [],
671
- },
672
- {
673
- kind: 'VariableDefinition',
674
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
675
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
676
- directives: [],
677
- },
678
- {
679
- kind: 'VariableDefinition',
680
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
681
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
682
- directives: [],
683
- },
684
- ],
685
- directives: [],
686
- selectionSet: {
687
- kind: 'SelectionSet',
688
- selections: [
689
- {
690
- kind: 'Field',
691
- name: { kind: 'Name', value: 'currentUser' },
692
- arguments: [],
693
- directives: [],
694
- selectionSet: {
695
- kind: 'SelectionSet',
696
- selections: [{ kind: 'Field', name: { kind: 'Name', value: 'login' }, arguments: [], directives: [] }],
697
- },
698
- },
699
- {
700
- kind: 'Field',
701
- name: { kind: 'Name', value: 'feed' },
702
- arguments: [
703
- {
704
- kind: 'Argument',
705
- name: { kind: 'Name', value: 'type' },
706
- value: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
707
- },
708
- {
709
- kind: 'Argument',
710
- name: { kind: 'Name', value: 'offset' },
711
- value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
712
- },
713
- {
714
- kind: 'Argument',
715
- name: { kind: 'Name', value: 'limit' },
716
- value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
717
- },
718
- ],
719
- directives: [],
720
- selectionSet: {
721
- kind: 'SelectionSet',
722
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FeedEntry' }, directives: [] }],
723
- },
724
- },
725
- ],
726
- },
727
- },
728
- ...FeedEntryFragmentDoc.definitions,
729
- ],
730
- };
731
- export const SubmitRepositoryDocument: DocumentNode<SubmitRepositoryMutation, SubmitRepositoryMutationVariables> = {
732
- kind: 'Document',
733
- definitions: [
734
- {
735
- kind: 'OperationDefinition',
736
- operation: 'mutation',
737
- name: { kind: 'Name', value: 'submitRepository' },
738
- variableDefinitions: [
739
- {
740
- kind: 'VariableDefinition',
741
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
742
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
743
- directives: [],
744
- },
745
- ],
746
- directives: [],
747
- selectionSet: {
748
- kind: 'SelectionSet',
749
- selections: [
750
- {
751
- kind: 'Field',
752
- name: { kind: 'Name', value: 'submitRepository' },
753
- arguments: [
754
- {
755
- kind: 'Argument',
756
- name: { kind: 'Name', value: 'repoFullName' },
757
- value: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
758
- },
759
- ],
760
- directives: [],
761
- selectionSet: {
762
- kind: 'SelectionSet',
763
- selections: [
764
- { kind: 'Field', name: { kind: 'Name', value: 'createdAt' }, arguments: [], directives: [] },
765
- ],
766
- },
767
- },
768
- ],
769
- },
770
- },
771
- ],
772
- };
773
- export const SubmitCommentDocument: DocumentNode<SubmitCommentMutation, SubmitCommentMutationVariables> = {
774
- kind: 'Document',
775
- definitions: [
776
- {
777
- kind: 'OperationDefinition',
778
- operation: 'mutation',
779
- name: { kind: 'Name', value: 'submitComment' },
780
- variableDefinitions: [
781
- {
782
- kind: 'VariableDefinition',
783
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
784
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
785
- directives: [],
786
- },
787
- {
788
- kind: 'VariableDefinition',
789
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'commentContent' } },
790
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
791
- directives: [],
792
- },
793
- ],
794
- directives: [],
795
- selectionSet: {
796
- kind: 'SelectionSet',
797
- selections: [
798
- {
799
- kind: 'Field',
800
- name: { kind: 'Name', value: 'submitComment' },
801
- arguments: [
802
- {
803
- kind: 'Argument',
804
- name: { kind: 'Name', value: 'repoFullName' },
805
- value: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
806
- },
807
- {
808
- kind: 'Argument',
809
- name: { kind: 'Name', value: 'commentContent' },
810
- value: { kind: 'Variable', name: { kind: 'Name', value: 'commentContent' } },
811
- },
812
- ],
813
- directives: [],
814
- selectionSet: {
815
- kind: 'SelectionSet',
816
- selections: [
817
- { kind: 'FragmentSpread', name: { kind: 'Name', value: 'CommentsPageComment' }, directives: [] },
818
- ],
819
- },
820
- },
821
- ],
822
- },
823
- },
824
- ...CommentsPageCommentFragmentDoc.definitions,
825
- ],
826
- };
827
- export const VoteDocument: DocumentNode<VoteMutation, VoteMutationVariables> = {
828
- kind: 'Document',
829
- definitions: [
830
- {
831
- kind: 'OperationDefinition',
832
- operation: 'mutation',
833
- name: { kind: 'Name', value: 'vote' },
834
- variableDefinitions: [
835
- {
836
- kind: 'VariableDefinition',
837
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
838
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } },
839
- directives: [],
840
- },
841
- {
842
- kind: 'VariableDefinition',
843
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
844
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'VoteType' } } },
845
- directives: [],
846
- },
847
- ],
848
- directives: [],
849
- selectionSet: {
850
- kind: 'SelectionSet',
851
- selections: [
852
- {
853
- kind: 'Field',
854
- name: { kind: 'Name', value: 'vote' },
855
- arguments: [
856
- {
857
- kind: 'Argument',
858
- name: { kind: 'Name', value: 'repoFullName' },
859
- value: { kind: 'Variable', name: { kind: 'Name', value: 'repoFullName' } },
860
- },
861
- {
862
- kind: 'Argument',
863
- name: { kind: 'Name', value: 'type' },
864
- value: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
865
- },
866
- ],
867
- directives: [],
868
- selectionSet: {
869
- kind: 'SelectionSet',
870
- selections: [
871
- { kind: 'Field', name: { kind: 'Name', value: 'score' }, arguments: [], directives: [] },
872
- { kind: 'Field', name: { kind: 'Name', value: 'id' }, arguments: [], directives: [] },
873
- {
874
- kind: 'Field',
875
- name: { kind: 'Name', value: 'vote' },
876
- arguments: [],
877
- directives: [],
878
- selectionSet: {
879
- kind: 'SelectionSet',
880
- selections: [
881
- { kind: 'Field', name: { kind: 'Name', value: 'vote_value' }, arguments: [], directives: [] },
882
- ],
883
- },
884
- },
885
- ],
886
- },
887
- },
888
- ],
889
- },
890
- },
891
- ],
892
- };