Skip to content

Commit 5e4a3a8

Browse files
authored
[near-operation-file] Only import interface types that are in use (#1113)
1 parent efc4941 commit 5e4a3a8

34 files changed

+636
-370
lines changed

.changeset/loud-papers-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-codegen/near-operation-file-preset': minor
3+
---
4+
5+
Only import interface types that are used in the document.

dev-test/githunt/__generated__/comment-added.subscription.stencil-component.tsx

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/__generated__/comment.query.stencil-component.tsx

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/__generated__/feed.query.stencil-component.tsx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/__generated__/new-entry.mutation.stencil-component.tsx

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/__generated__/submit-comment.mutation.stencil-component.tsx

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/__generated__/vote.mutation.stencil-component.tsx

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-test/githunt/jit-sdk.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export enum VoteType {
172172
}
173173

174174
export type OnCommentAddedSubscriptionVariables = Exact<{
175-
repoFullName: Scalars['String'];
175+
repoFullName: Scalars['String']['input'];
176176
}>;
177177

178178
export type OnCommentAddedSubscription = {
@@ -187,9 +187,9 @@ export type OnCommentAddedSubscription = {
187187
};
188188

189189
export type CommentQueryVariables = Exact<{
190-
repoFullName: Scalars['String'];
191-
limit?: InputMaybe<Scalars['Int']>;
192-
offset?: InputMaybe<Scalars['Int']>;
190+
repoFullName: Scalars['String']['input'];
191+
limit?: InputMaybe<Scalars['Int']['input']>;
192+
offset?: InputMaybe<Scalars['Int']['input']>;
193193
}>;
194194

195195
export type CommentQuery = {
@@ -255,8 +255,8 @@ export type FeedEntryFragment = {
255255

256256
export type FeedQueryVariables = Exact<{
257257
type: FeedType;
258-
offset?: InputMaybe<Scalars['Int']>;
259-
limit?: InputMaybe<Scalars['Int']>;
258+
offset?: InputMaybe<Scalars['Int']['input']>;
259+
limit?: InputMaybe<Scalars['Int']['input']>;
260260
}>;
261261

262262
export type FeedQuery = {
@@ -283,7 +283,7 @@ export type FeedQuery = {
283283
};
284284

285285
export type SubmitRepositoryMutationVariables = Exact<{
286-
repoFullName: Scalars['String'];
286+
repoFullName: Scalars['String']['input'];
287287
}>;
288288

289289
export type SubmitRepositoryMutation = {
@@ -304,8 +304,8 @@ export type RepoInfoFragment = {
304304
};
305305

306306
export type SubmitCommentMutationVariables = Exact<{
307-
repoFullName: Scalars['String'];
308-
commentContent: Scalars['String'];
307+
repoFullName: Scalars['String']['input'];
308+
commentContent: Scalars['String']['input'];
309309
}>;
310310

311311
export type SubmitCommentMutation = {
@@ -326,7 +326,7 @@ export type VoteButtonsFragment = {
326326
};
327327

328328
export type VoteMutationVariables = Exact<{
329-
repoFullName: Scalars['String'];
329+
repoFullName: Scalars['String']['input'];
330330
type: VoteType;
331331
}>;
332332

dev-test/githunt/types.apolloAngular.sdk.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export enum VoteType {
172172
}
173173

174174
export type OnCommentAddedSubscriptionVariables = Exact<{
175-
repoFullName: Scalars['String'];
175+
repoFullName: Scalars['String']['input'];
176176
}>;
177177

178178
export type OnCommentAddedSubscription = {
@@ -187,9 +187,9 @@ export type OnCommentAddedSubscription = {
187187
};
188188

189189
export type CommentQueryVariables = Exact<{
190-
repoFullName: Scalars['String'];
191-
limit?: InputMaybe<Scalars['Int']>;
192-
offset?: InputMaybe<Scalars['Int']>;
190+
repoFullName: Scalars['String']['input'];
191+
limit?: InputMaybe<Scalars['Int']['input']>;
192+
offset?: InputMaybe<Scalars['Int']['input']>;
193193
}>;
194194

195195
export type CommentQuery = {
@@ -255,8 +255,8 @@ export type FeedEntryFragment = {
255255

256256
export type FeedQueryVariables = Exact<{
257257
type: FeedType;
258-
offset?: InputMaybe<Scalars['Int']>;
259-
limit?: InputMaybe<Scalars['Int']>;
258+
offset?: InputMaybe<Scalars['Int']['input']>;
259+
limit?: InputMaybe<Scalars['Int']['input']>;
260260
}>;
261261

262262
export type FeedQuery = {
@@ -283,7 +283,7 @@ export type FeedQuery = {
283283
};
284284

285285
export type SubmitRepositoryMutationVariables = Exact<{
286-
repoFullName: Scalars['String'];
286+
repoFullName: Scalars['String']['input'];
287287
}>;
288288

289289
export type SubmitRepositoryMutation = {
@@ -304,8 +304,8 @@ export type RepoInfoFragment = {
304304
};
305305

306306
export type SubmitCommentMutationVariables = Exact<{
307-
repoFullName: Scalars['String'];
308-
commentContent: Scalars['String'];
307+
repoFullName: Scalars['String']['input'];
308+
commentContent: Scalars['String']['input'];
309309
}>;
310310

311311
export type SubmitCommentMutation = {
@@ -326,7 +326,7 @@ export type VoteButtonsFragment = {
326326
};
327327

328328
export type VoteMutationVariables = Exact<{
329-
repoFullName: Scalars['String'];
329+
repoFullName: Scalars['String']['input'];
330330
type: VoteType;
331331
}>;
332332

dev-test/githunt/types.apolloAngular.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export enum VoteType {
171171
}
172172

173173
export type OnCommentAddedSubscriptionVariables = Exact<{
174-
repoFullName: Scalars['String'];
174+
repoFullName: Scalars['String']['input'];
175175
}>;
176176

177177
export type OnCommentAddedSubscription = {
@@ -186,9 +186,9 @@ export type OnCommentAddedSubscription = {
186186
};
187187

188188
export type CommentQueryVariables = Exact<{
189-
repoFullName: Scalars['String'];
190-
limit?: InputMaybe<Scalars['Int']>;
191-
offset?: InputMaybe<Scalars['Int']>;
189+
repoFullName: Scalars['String']['input'];
190+
limit?: InputMaybe<Scalars['Int']['input']>;
191+
offset?: InputMaybe<Scalars['Int']['input']>;
192192
}>;
193193

194194
export type CommentQuery = {
@@ -254,8 +254,8 @@ export type FeedEntryFragment = {
254254

255255
export type FeedQueryVariables = Exact<{
256256
type: FeedType;
257-
offset?: InputMaybe<Scalars['Int']>;
258-
limit?: InputMaybe<Scalars['Int']>;
257+
offset?: InputMaybe<Scalars['Int']['input']>;
258+
limit?: InputMaybe<Scalars['Int']['input']>;
259259
}>;
260260

261261
export type FeedQuery = {
@@ -282,7 +282,7 @@ export type FeedQuery = {
282282
};
283283

284284
export type SubmitRepositoryMutationVariables = Exact<{
285-
repoFullName: Scalars['String'];
285+
repoFullName: Scalars['String']['input'];
286286
}>;
287287

288288
export type SubmitRepositoryMutation = {
@@ -303,8 +303,8 @@ export type RepoInfoFragment = {
303303
};
304304

305305
export type SubmitCommentMutationVariables = Exact<{
306-
repoFullName: Scalars['String'];
307-
commentContent: Scalars['String'];
306+
repoFullName: Scalars['String']['input'];
307+
commentContent: Scalars['String']['input'];
308308
}>;
309309

310310
export type SubmitCommentMutation = {
@@ -325,7 +325,7 @@ export type VoteButtonsFragment = {
325325
};
326326

327327
export type VoteMutationVariables = Exact<{
328-
repoFullName: Scalars['String'];
328+
repoFullName: Scalars['String']['input'];
329329
type: VoteType;
330330
}>;
331331

0 commit comments

Comments
 (0)