From fc98ef254e4d4bbf5ac6232fffa42bc8394da63c Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Mon, 6 Apr 2020 12:57:27 +0800 Subject: [PATCH] chore: remove unused graphql queries --- lib/graphql/gh.dart | 2072 --------------------------- lib/graphql/gh.g.dart | 1064 -------------- lib/graphql/gh_create_issue.graphql | 13 - lib/graphql/gh_follow.graphql | 12 - lib/graphql/gh_object.graphql | 23 - lib/graphql/gh_repo_id.graphql | 5 - lib/graphql/gh_star.graphql | 12 - lib/graphql/gh_watch.graphql | 10 - 8 files changed, 3211 deletions(-) delete mode 100644 lib/graphql/gh_create_issue.graphql delete mode 100644 lib/graphql/gh_follow.graphql delete mode 100644 lib/graphql/gh_object.graphql delete mode 100644 lib/graphql/gh_repo_id.graphql delete mode 100644 lib/graphql/gh_star.graphql delete mode 100644 lib/graphql/gh_watch.graphql diff --git a/lib/graphql/gh.dart b/lib/graphql/gh.dart index 450a13a..2fd93a2 100644 --- a/lib/graphql/gh.dart +++ b/lib/graphql/gh.dart @@ -2413,535 +2413,6 @@ class GhUsersQuery extends GraphQLQuery { GhUsers parse(Map json) => GhUsers.fromJson(json); } -@JsonSerializable(explicitToJson: true) -class GhCreateIssue with EquatableMixin { - GhCreateIssue({this.createIssue}); - - factory GhCreateIssue.fromJson(Map json) => - _$GhCreateIssueFromJson(json); - - GhCreateIssueCreateIssuePayload createIssue; - - @override - List get props => [createIssue]; - Map toJson() => _$GhCreateIssueToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueCreateIssuePayload with EquatableMixin { - GhCreateIssueCreateIssuePayload({this.issue}); - - factory GhCreateIssueCreateIssuePayload.fromJson(Map json) => - _$GhCreateIssueCreateIssuePayloadFromJson(json); - - GhCreateIssueIssue issue; - - @override - List get props => [issue]; - Map toJson() => - _$GhCreateIssueCreateIssuePayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueIssue extends GhCreateIssueProjectCardItem - with EquatableMixin - implements - GhCreateIssueNode, - GhCreateIssueAssignable, - GhCreateIssueClosable, - GhCreateIssueComment, - GhCreateIssueUpdatable, - GhCreateIssueUpdatableComment, - GhCreateIssueLabelable, - GhCreateIssueLockable, - GhCreateIssueReactable, - GhCreateIssueRepositoryNode, - GhCreateIssueSubscribable, - GhCreateIssueUniformResourceLocatable { - GhCreateIssueIssue({this.number}); - - factory GhCreateIssueIssue.fromJson(Map json) => - _$GhCreateIssueIssueFromJson(json); - - int number; - - @override - GhCreateIssueRepository repository; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [number, repository, resolveType]; - Map toJson() => _$GhCreateIssueIssueToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRepository extends GhCreateIssuePinnableItem - with EquatableMixin - implements - GhCreateIssueNode, - GhCreateIssueProjectOwner, - GhCreateIssueRegistryPackageOwner, - GhCreateIssueRegistryPackageSearch, - GhCreateIssueSubscribable, - GhCreateIssueStarrable, - GhCreateIssueUniformResourceLocatable, - GhCreateIssueRepositoryInfo { - GhCreateIssueRepository(); - - factory GhCreateIssueRepository.fromJson(Map json) => - _$GhCreateIssueRepositoryFromJson(json); - - @override - GhCreateIssueRepositoryOwner owner; - - @override - String name; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [owner, name, resolveType]; - Map toJson() => _$GhCreateIssueRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRepositoryOwner with EquatableMixin { - GhCreateIssueRepositoryOwner({this.login}); - - factory GhCreateIssueRepositoryOwner.fromJson(Map json) => - _$GhCreateIssueRepositoryOwnerFromJson(json); - - String login; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, resolveType]; - Map toJson() => _$GhCreateIssueRepositoryOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssuePinnableItem with EquatableMixin { - GhCreateIssuePinnableItem(); - - factory GhCreateIssuePinnableItem.fromJson(Map json) => - _$GhCreateIssuePinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhCreateIssuePinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueNode with EquatableMixin { - GhCreateIssueNode(); - - factory GhCreateIssueNode.fromJson(Map json) => - _$GhCreateIssueNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueProjectOwner with EquatableMixin { - GhCreateIssueProjectOwner(); - - factory GhCreateIssueProjectOwner.fromJson(Map json) => - _$GhCreateIssueProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRegistryPackageOwner with EquatableMixin { - GhCreateIssueRegistryPackageOwner(); - - factory GhCreateIssueRegistryPackageOwner.fromJson( - Map json) => - _$GhCreateIssueRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhCreateIssueRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRegistryPackageSearch with EquatableMixin { - GhCreateIssueRegistryPackageSearch(); - - factory GhCreateIssueRegistryPackageSearch.fromJson( - Map json) => - _$GhCreateIssueRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhCreateIssueRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueSubscribable with EquatableMixin { - GhCreateIssueSubscribable(); - - factory GhCreateIssueSubscribable.fromJson(Map json) => - _$GhCreateIssueSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueStarrable with EquatableMixin { - GhCreateIssueStarrable(); - - factory GhCreateIssueStarrable.fromJson(Map json) => - _$GhCreateIssueStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueUniformResourceLocatable with EquatableMixin { - GhCreateIssueUniformResourceLocatable(); - - factory GhCreateIssueUniformResourceLocatable.fromJson( - Map json) => - _$GhCreateIssueUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhCreateIssueUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRepositoryInfo with EquatableMixin { - GhCreateIssueRepositoryInfo({this.owner, this.name}); - - factory GhCreateIssueRepositoryInfo.fromJson(Map json) => - _$GhCreateIssueRepositoryInfoFromJson(json); - - GhCreateIssueRepositoryOwner owner; - - String name; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [owner, name, resolveType]; - Map toJson() => _$GhCreateIssueRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueProjectCardItem with EquatableMixin { - GhCreateIssueProjectCardItem(); - - factory GhCreateIssueProjectCardItem.fromJson(Map json) => - _$GhCreateIssueProjectCardItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhCreateIssueProjectCardItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueAssignable with EquatableMixin { - GhCreateIssueAssignable(); - - factory GhCreateIssueAssignable.fromJson(Map json) => - _$GhCreateIssueAssignableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueAssignableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueClosable with EquatableMixin { - GhCreateIssueClosable(); - - factory GhCreateIssueClosable.fromJson(Map json) => - _$GhCreateIssueClosableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueClosableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueComment with EquatableMixin { - GhCreateIssueComment(); - - factory GhCreateIssueComment.fromJson(Map json) => - _$GhCreateIssueCommentFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueCommentToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueUpdatable with EquatableMixin { - GhCreateIssueUpdatable(); - - factory GhCreateIssueUpdatable.fromJson(Map json) => - _$GhCreateIssueUpdatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueUpdatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueUpdatableComment with EquatableMixin { - GhCreateIssueUpdatableComment(); - - factory GhCreateIssueUpdatableComment.fromJson(Map json) => - _$GhCreateIssueUpdatableCommentFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueUpdatableCommentToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueLabelable with EquatableMixin { - GhCreateIssueLabelable(); - - factory GhCreateIssueLabelable.fromJson(Map json) => - _$GhCreateIssueLabelableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueLabelableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueLockable with EquatableMixin { - GhCreateIssueLockable(); - - factory GhCreateIssueLockable.fromJson(Map json) => - _$GhCreateIssueLockableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueLockableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueReactable with EquatableMixin { - GhCreateIssueReactable(); - - factory GhCreateIssueReactable.fromJson(Map json) => - _$GhCreateIssueReactableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhCreateIssueReactableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueRepositoryNode with EquatableMixin { - GhCreateIssueRepositoryNode({this.repository}); - - factory GhCreateIssueRepositoryNode.fromJson(Map json) => - _$GhCreateIssueRepositoryNodeFromJson(json); - - GhCreateIssueRepository repository; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [repository, resolveType]; - Map toJson() => _$GhCreateIssueRepositoryNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhCreateIssueArguments extends JsonSerializable with EquatableMixin { - GhCreateIssueArguments( - {@required this.repoId, @required this.title, @required this.body}); - - factory GhCreateIssueArguments.fromJson(Map json) => - _$GhCreateIssueArgumentsFromJson(json); - - final String repoId; - - final String title; - - final String body; - - @override - List get props => [repoId, title, body]; - Map toJson() => _$GhCreateIssueArgumentsToJson(this); -} - -class GhCreateIssueQuery - extends GraphQLQuery { - GhCreateIssueQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.mutation, - name: NameNode(value: 'GhCreateIssue'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'repoId')), - type: NamedTypeNode(name: NameNode(value: 'ID'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'title')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'body')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'createIssue'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'repositoryId'), - value: VariableNode(name: NameNode(value: 'repoId'))), - ObjectFieldNode( - name: NameNode(value: 'title'), - value: VariableNode(name: NameNode(value: 'title'))), - ObjectFieldNode( - name: NameNode(value: 'body'), - value: VariableNode(name: NameNode(value: 'body'))) - ])) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'issue'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'number'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'GhCreateIssue'; - - @override - final GhCreateIssueArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhCreateIssue parse(Map json) => - GhCreateIssue.fromJson(json); -} - @JsonSerializable(explicitToJson: true) class GhPulls with EquatableMixin { GhPulls({this.repository}); @@ -5725,317 +5196,6 @@ class GhReposQuery extends GraphQLQuery { GhRepos parse(Map json) => GhRepos.fromJson(json); } -@JsonSerializable(explicitToJson: true) -class GhWatch with EquatableMixin { - GhWatch({this.updateSubscription}); - - factory GhWatch.fromJson(Map json) => - _$GhWatchFromJson(json); - - GhWatchUpdateSubscriptionPayload updateSubscription; - - @override - List get props => [updateSubscription]; - Map toJson() => _$GhWatchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchUpdateSubscriptionPayload with EquatableMixin { - GhWatchUpdateSubscriptionPayload({this.subscribable}); - - factory GhWatchUpdateSubscriptionPayload.fromJson( - Map json) => - _$GhWatchUpdateSubscriptionPayloadFromJson(json); - - GhWatchSubscribable subscribable; - - @override - List get props => [subscribable]; - Map toJson() => - _$GhWatchUpdateSubscriptionPayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchSubscribable with EquatableMixin { - GhWatchSubscribable(); - - factory GhWatchSubscribable.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'Repository': - return GhWatchRepository.fromJson(json); - default: - } - return _$GhWatchSubscribableFromJson(json); - } - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() { - switch (resolveType) { - case 'Repository': - return (this as GhWatchRepository).toJson(); - default: - } - return _$GhWatchSubscribableToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GhWatchRepository extends GhWatchPinnableItem - with EquatableMixin - implements - GhWatchNode, - GhWatchProjectOwner, - GhWatchRegistryPackageOwner, - GhWatchRegistryPackageSearch, - GhWatchSubscribable, - GhWatchStarrable, - GhWatchUniformResourceLocatable, - GhWatchRepositoryInfo { - GhWatchRepository({this.viewerSubscription}); - - factory GhWatchRepository.fromJson(Map json) => - _$GhWatchRepositoryFromJson(json); - - @JsonKey(unknownEnumValue: GhWatchSubscriptionState.ARTEMIS_UNKNOWN) - GhWatchSubscriptionState viewerSubscription; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [viewerSubscription, resolveType]; - Map toJson() => _$GhWatchRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchPinnableItem with EquatableMixin { - GhWatchPinnableItem(); - - factory GhWatchPinnableItem.fromJson(Map json) => - _$GhWatchPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhWatchPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchNode with EquatableMixin { - GhWatchNode(); - - factory GhWatchNode.fromJson(Map json) => - _$GhWatchNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchProjectOwner with EquatableMixin { - GhWatchProjectOwner(); - - factory GhWatchProjectOwner.fromJson(Map json) => - _$GhWatchProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchRegistryPackageOwner with EquatableMixin { - GhWatchRegistryPackageOwner(); - - factory GhWatchRegistryPackageOwner.fromJson(Map json) => - _$GhWatchRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchRegistryPackageSearch with EquatableMixin { - GhWatchRegistryPackageSearch(); - - factory GhWatchRegistryPackageSearch.fromJson(Map json) => - _$GhWatchRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchStarrable with EquatableMixin { - GhWatchStarrable(); - - factory GhWatchStarrable.fromJson(Map json) => - _$GhWatchStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchUniformResourceLocatable with EquatableMixin { - GhWatchUniformResourceLocatable(); - - factory GhWatchUniformResourceLocatable.fromJson(Map json) => - _$GhWatchUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhWatchUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhWatchRepositoryInfo with EquatableMixin { - GhWatchRepositoryInfo(); - - factory GhWatchRepositoryInfo.fromJson(Map json) => - _$GhWatchRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhWatchRepositoryInfoToJson(this); -} - -enum GhWatchSubscriptionState { - UNSUBSCRIBED, - SUBSCRIBED, - IGNORED, - ARTEMIS_UNKNOWN, -} - -@JsonSerializable(explicitToJson: true) -class GhWatchArguments extends JsonSerializable with EquatableMixin { - GhWatchArguments({@required this.id, @required this.state}); - - factory GhWatchArguments.fromJson(Map json) => - _$GhWatchArgumentsFromJson(json); - - final String id; - - final GhWatchSubscriptionState state; - - @override - List get props => [id, state]; - Map toJson() => _$GhWatchArgumentsToJson(this); -} - -class GhWatchQuery extends GraphQLQuery { - GhWatchQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.mutation, - name: NameNode(value: 'GhWatch'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'id')), - type: NamedTypeNode(name: NameNode(value: 'ID'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'state')), - type: NamedTypeNode( - name: NameNode(value: 'SubscriptionState'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'updateSubscription'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'subscribableId'), - value: VariableNode(name: NameNode(value: 'id'))), - ObjectFieldNode( - name: NameNode(value: 'state'), - value: VariableNode(name: NameNode(value: 'state'))) - ])) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'subscribable'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Repository'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'viewerSubscription'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'GhWatch'; - - @override - final GhWatchArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhWatch parse(Map json) => GhWatch.fromJson(json); -} - @JsonSerializable(explicitToJson: true) class GhUser with EquatableMixin { GhUser({this.repositoryOwner, this.viewer}); @@ -8020,974 +7180,6 @@ class GhUserQuery extends GraphQLQuery { GhUser parse(Map json) => GhUser.fromJson(json); } -@JsonSerializable(explicitToJson: true) -class GhFollow with EquatableMixin { - GhFollow({this.followUser, this.unfollowUser}); - - factory GhFollow.fromJson(Map json) => - _$GhFollowFromJson(json); - - GhFollowFollowUserPayload followUser; - - GhFollowUnfollowUserPayload unfollowUser; - - @override - List get props => [followUser, unfollowUser]; - Map toJson() => _$GhFollowToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowFollowUserPayload with EquatableMixin { - GhFollowFollowUserPayload({this.user}); - - factory GhFollowFollowUserPayload.fromJson(Map json) => - _$GhFollowFollowUserPayloadFromJson(json); - - GhFollowUser user; - - @override - List get props => [user]; - Map toJson() => _$GhFollowFollowUserPayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowUser extends GhFollowAuditEntryActor - with EquatableMixin - implements - GhFollowNode, - GhFollowActor, - GhFollowRegistryPackageOwner, - GhFollowRegistryPackageSearch, - GhFollowProjectOwner, - GhFollowRepositoryOwner, - GhFollowUniformResourceLocatable, - GhFollowProfileOwner, - GhFollowSponsorable { - GhFollowUser({this.viewerIsFollowing}); - - factory GhFollowUser.fromJson(Map json) => - _$GhFollowUserFromJson(json); - - bool viewerIsFollowing; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [viewerIsFollowing, resolveType]; - Map toJson() => _$GhFollowUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowAuditEntryActor with EquatableMixin { - GhFollowAuditEntryActor(); - - factory GhFollowAuditEntryActor.fromJson(Map json) => - _$GhFollowAuditEntryActorFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhFollowAuditEntryActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowNode with EquatableMixin { - GhFollowNode(); - - factory GhFollowNode.fromJson(Map json) => - _$GhFollowNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowActor with EquatableMixin { - GhFollowActor(); - - factory GhFollowActor.fromJson(Map json) => - _$GhFollowActorFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowRegistryPackageOwner with EquatableMixin { - GhFollowRegistryPackageOwner(); - - factory GhFollowRegistryPackageOwner.fromJson(Map json) => - _$GhFollowRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowRegistryPackageSearch with EquatableMixin { - GhFollowRegistryPackageSearch(); - - factory GhFollowRegistryPackageSearch.fromJson(Map json) => - _$GhFollowRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowProjectOwner with EquatableMixin { - GhFollowProjectOwner(); - - factory GhFollowProjectOwner.fromJson(Map json) => - _$GhFollowProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowRepositoryOwner with EquatableMixin { - GhFollowRepositoryOwner(); - - factory GhFollowRepositoryOwner.fromJson(Map json) => - _$GhFollowRepositoryOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowRepositoryOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowUniformResourceLocatable with EquatableMixin { - GhFollowUniformResourceLocatable(); - - factory GhFollowUniformResourceLocatable.fromJson( - Map json) => - _$GhFollowUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhFollowUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowProfileOwner with EquatableMixin { - GhFollowProfileOwner(); - - factory GhFollowProfileOwner.fromJson(Map json) => - _$GhFollowProfileOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowProfileOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowSponsorable with EquatableMixin { - GhFollowSponsorable(); - - factory GhFollowSponsorable.fromJson(Map json) => - _$GhFollowSponsorableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhFollowSponsorableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowUnfollowUserPayload with EquatableMixin { - GhFollowUnfollowUserPayload({this.user}); - - factory GhFollowUnfollowUserPayload.fromJson(Map json) => - _$GhFollowUnfollowUserPayloadFromJson(json); - - GhFollowUser user; - - @override - List get props => [user]; - Map toJson() => _$GhFollowUnfollowUserPayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhFollowArguments extends JsonSerializable with EquatableMixin { - GhFollowArguments({@required this.id, @required this.flag}); - - factory GhFollowArguments.fromJson(Map json) => - _$GhFollowArgumentsFromJson(json); - - final String id; - - final bool flag; - - @override - List get props => [id, flag]; - Map toJson() => _$GhFollowArgumentsToJson(this); -} - -class GhFollowQuery extends GraphQLQuery { - GhFollowQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.mutation, - name: NameNode(value: 'GhFollow'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'id')), - type: NamedTypeNode(name: NameNode(value: 'ID'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'flag')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'followUser'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'userId'), - value: VariableNode(name: NameNode(value: 'id'))) - ])) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'include'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'flag'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'user'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'viewerIsFollowing'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'unfollowUser'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'userId'), - value: VariableNode(name: NameNode(value: 'id'))) - ])) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'flag'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'user'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'viewerIsFollowing'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'GhFollow'; - - @override - final GhFollowArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhFollow parse(Map json) => GhFollow.fromJson(json); -} - -@JsonSerializable(explicitToJson: true) -class GhStar with EquatableMixin { - GhStar({this.addStar, this.removeStar}); - - factory GhStar.fromJson(Map json) => _$GhStarFromJson(json); - - GhStarAddStarPayload addStar; - - GhStarRemoveStarPayload removeStar; - - @override - List get props => [addStar, removeStar]; - Map toJson() => _$GhStarToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhStarAddStarPayload with EquatableMixin { - GhStarAddStarPayload({this.starrable}); - - factory GhStarAddStarPayload.fromJson(Map json) => - _$GhStarAddStarPayloadFromJson(json); - - GhStarStarrable starrable; - - @override - List get props => [starrable]; - Map toJson() => _$GhStarAddStarPayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhStarStarrable with EquatableMixin { - GhStarStarrable({this.viewerHasStarred}); - - factory GhStarStarrable.fromJson(Map json) => - _$GhStarStarrableFromJson(json); - - bool viewerHasStarred; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [viewerHasStarred, resolveType]; - Map toJson() => _$GhStarStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhStarRemoveStarPayload with EquatableMixin { - GhStarRemoveStarPayload({this.starrable}); - - factory GhStarRemoveStarPayload.fromJson(Map json) => - _$GhStarRemoveStarPayloadFromJson(json); - - GhStarStarrable starrable; - - @override - List get props => [starrable]; - Map toJson() => _$GhStarRemoveStarPayloadToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhStarArguments extends JsonSerializable with EquatableMixin { - GhStarArguments({@required this.id, @required this.flag}); - - factory GhStarArguments.fromJson(Map json) => - _$GhStarArgumentsFromJson(json); - - final String id; - - final bool flag; - - @override - List get props => [id, flag]; - Map toJson() => _$GhStarArgumentsToJson(this); -} - -class GhStarQuery extends GraphQLQuery { - GhStarQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.mutation, - name: NameNode(value: 'GhStar'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'id')), - type: NamedTypeNode(name: NameNode(value: 'ID'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'flag')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'addStar'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'starrableId'), - value: VariableNode(name: NameNode(value: 'id'))) - ])) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'include'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'flag'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'starrable'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'viewerHasStarred'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'removeStar'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'input'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'starrableId'), - value: VariableNode(name: NameNode(value: 'id'))) - ])) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'flag'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'starrable'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'viewerHasStarred'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'GhStar'; - - @override - final GhStarArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhStar parse(Map json) => GhStar.fromJson(json); -} - -@JsonSerializable(explicitToJson: true) -class GhObject with EquatableMixin { - GhObject({this.repository}); - - factory GhObject.fromJson(Map json) => - _$GhObjectFromJson(json); - - GhObjectRepository repository; - - @override - List get props => [repository]; - Map toJson() => _$GhObjectToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectRepository extends GhObjectPinnableItem - with EquatableMixin - implements - GhObjectNode, - GhObjectProjectOwner, - GhObjectRegistryPackageOwner, - GhObjectRegistryPackageSearch, - GhObjectSubscribable, - GhObjectStarrable, - GhObjectUniformResourceLocatable, - GhObjectRepositoryInfo { - GhObjectRepository({this.object}); - - factory GhObjectRepository.fromJson(Map json) => - _$GhObjectRepositoryFromJson(json); - - GhObjectGitObject object; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [object, resolveType]; - Map toJson() => _$GhObjectRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectGitObject with EquatableMixin { - GhObjectGitObject(); - - factory GhObjectGitObject.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'Blob': - return GhObjectBlob.fromJson(json); - case 'Tree': - return GhObjectTree.fromJson(json); - default: - } - return _$GhObjectGitObjectFromJson(json); - } - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() { - switch (resolveType) { - case 'Blob': - return (this as GhObjectBlob).toJson(); - case 'Tree': - return (this as GhObjectTree).toJson(); - default: - } - return _$GhObjectGitObjectToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GhObjectBlob - with EquatableMixin - implements GhObjectNode, GhObjectGitObject { - GhObjectBlob({this.text, this.byteSize}); - - factory GhObjectBlob.fromJson(Map json) => - _$GhObjectBlobFromJson(json); - - String text; - - int byteSize; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [text, byteSize, resolveType]; - Map toJson() => _$GhObjectBlobToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectNode with EquatableMixin { - GhObjectNode(); - - factory GhObjectNode.fromJson(Map json) => - _$GhObjectNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectTree - with EquatableMixin - implements GhObjectNode, GhObjectGitObject { - GhObjectTree({this.entries}); - - factory GhObjectTree.fromJson(Map json) => - _$GhObjectTreeFromJson(json); - - List entries; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [entries, resolveType]; - Map toJson() => _$GhObjectTreeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectTreeEntry with EquatableMixin { - GhObjectTreeEntry({this.type, this.name, this.object}); - - factory GhObjectTreeEntry.fromJson(Map json) => - _$GhObjectTreeEntryFromJson(json); - - String type; - - String name; - - GhObjectGitObject object; - - @override - List get props => [type, name, object]; - Map toJson() => _$GhObjectTreeEntryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectPinnableItem with EquatableMixin { - GhObjectPinnableItem(); - - factory GhObjectPinnableItem.fromJson(Map json) => - _$GhObjectPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhObjectPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectProjectOwner with EquatableMixin { - GhObjectProjectOwner(); - - factory GhObjectProjectOwner.fromJson(Map json) => - _$GhObjectProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectRegistryPackageOwner with EquatableMixin { - GhObjectRegistryPackageOwner(); - - factory GhObjectRegistryPackageOwner.fromJson(Map json) => - _$GhObjectRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectRegistryPackageSearch with EquatableMixin { - GhObjectRegistryPackageSearch(); - - factory GhObjectRegistryPackageSearch.fromJson(Map json) => - _$GhObjectRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectSubscribable with EquatableMixin { - GhObjectSubscribable(); - - factory GhObjectSubscribable.fromJson(Map json) => - _$GhObjectSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectStarrable with EquatableMixin { - GhObjectStarrable(); - - factory GhObjectStarrable.fromJson(Map json) => - _$GhObjectStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectUniformResourceLocatable with EquatableMixin { - GhObjectUniformResourceLocatable(); - - factory GhObjectUniformResourceLocatable.fromJson( - Map json) => - _$GhObjectUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhObjectUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectRepositoryInfo with EquatableMixin { - GhObjectRepositoryInfo(); - - factory GhObjectRepositoryInfo.fromJson(Map json) => - _$GhObjectRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhObjectRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhObjectArguments extends JsonSerializable with EquatableMixin { - GhObjectArguments( - {@required this.owner, @required this.name, @required this.expression}); - - factory GhObjectArguments.fromJson(Map json) => - _$GhObjectArgumentsFromJson(json); - - final String owner; - - final String name; - - final String expression; - - @override - List get props => [owner, name, expression]; - Map toJson() => _$GhObjectArgumentsToJson(this); -} - -class GhObjectQuery extends GraphQLQuery { - GhObjectQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: NameNode(value: 'GhObject'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'name')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'expression')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'owner'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'object'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'expression'), - value: - VariableNode(name: NameNode(value: 'expression'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Blob'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'text'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'byteSize'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Tree'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'entries'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'type'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'object'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: - NameNode(value: 'Blob'), - isNonNull: false)), - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'byteSize'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'GhObject'; - - @override - final GhObjectArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhObject parse(Map json) => GhObject.fromJson(json); -} - mixin TMixin { GhCommitsGitObject target; } @@ -9813,267 +8005,3 @@ class GhCommitsQuery extends GraphQLQuery { @override GhCommits parse(Map json) => GhCommits.fromJson(json); } - -@JsonSerializable(explicitToJson: true) -class GhRepoId with EquatableMixin { - GhRepoId({this.repository}); - - factory GhRepoId.fromJson(Map json) => - _$GhRepoIdFromJson(json); - - GhRepoIdRepository repository; - - @override - List get props => [repository]; - Map toJson() => _$GhRepoIdToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdRepository extends GhRepoIdPinnableItem - with EquatableMixin - implements - GhRepoIdNode, - GhRepoIdProjectOwner, - GhRepoIdRegistryPackageOwner, - GhRepoIdRegistryPackageSearch, - GhRepoIdSubscribable, - GhRepoIdStarrable, - GhRepoIdUniformResourceLocatable, - GhRepoIdRepositoryInfo { - GhRepoIdRepository(); - - factory GhRepoIdRepository.fromJson(Map json) => - _$GhRepoIdRepositoryFromJson(json); - - @override - String id; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdPinnableItem with EquatableMixin { - GhRepoIdPinnableItem(); - - factory GhRepoIdPinnableItem.fromJson(Map json) => - _$GhRepoIdPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GhRepoIdPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdNode with EquatableMixin { - GhRepoIdNode({this.id}); - - factory GhRepoIdNode.fromJson(Map json) => - _$GhRepoIdNodeFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdProjectOwner with EquatableMixin { - GhRepoIdProjectOwner({this.id}); - - factory GhRepoIdProjectOwner.fromJson(Map json) => - _$GhRepoIdProjectOwnerFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdRegistryPackageOwner with EquatableMixin { - GhRepoIdRegistryPackageOwner({this.id}); - - factory GhRepoIdRegistryPackageOwner.fromJson(Map json) => - _$GhRepoIdRegistryPackageOwnerFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdRegistryPackageSearch with EquatableMixin { - GhRepoIdRegistryPackageSearch({this.id}); - - factory GhRepoIdRegistryPackageSearch.fromJson(Map json) => - _$GhRepoIdRegistryPackageSearchFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdSubscribable with EquatableMixin { - GhRepoIdSubscribable({this.id}); - - factory GhRepoIdSubscribable.fromJson(Map json) => - _$GhRepoIdSubscribableFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdStarrable with EquatableMixin { - GhRepoIdStarrable({this.id}); - - factory GhRepoIdStarrable.fromJson(Map json) => - _$GhRepoIdStarrableFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => _$GhRepoIdStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdUniformResourceLocatable with EquatableMixin { - GhRepoIdUniformResourceLocatable(); - - factory GhRepoIdUniformResourceLocatable.fromJson( - Map json) => - _$GhRepoIdUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GhRepoIdUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdRepositoryInfo with EquatableMixin { - GhRepoIdRepositoryInfo(); - - factory GhRepoIdRepositoryInfo.fromJson(Map json) => - _$GhRepoIdRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GhRepoIdRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GhRepoIdArguments extends JsonSerializable with EquatableMixin { - GhRepoIdArguments({@required this.owner, @required this.name}); - - factory GhRepoIdArguments.fromJson(Map json) => - _$GhRepoIdArgumentsFromJson(json); - - final String owner; - - final String name; - - @override - List get props => [owner, name]; - Map toJson() => _$GhRepoIdArgumentsToJson(this); -} - -class GhRepoIdQuery extends GraphQLQuery { - GhRepoIdQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: NameNode(value: 'GhRepoId'), - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'name')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'owner'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ]); - - @override - final String operationName = 'GhRepoId'; - - @override - final GhRepoIdArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GhRepoId parse(Map json) => GhRepoId.fromJson(json); -} diff --git a/lib/graphql/gh.g.dart b/lib/graphql/gh.g.dart index d49b290..191c472 100644 --- a/lib/graphql/gh.g.dart +++ b/lib/graphql/gh.g.dart @@ -1018,325 +1018,6 @@ Map _$GhUsersArgumentsToJson(GhUsersArguments instance) => 'isWatch': instance.isWatch, }; -GhCreateIssue _$GhCreateIssueFromJson(Map json) { - return GhCreateIssue( - createIssue: json['createIssue'] == null - ? null - : GhCreateIssueCreateIssuePayload.fromJson( - json['createIssue'] as Map), - ); -} - -Map _$GhCreateIssueToJson(GhCreateIssue instance) => - { - 'createIssue': instance.createIssue?.toJson(), - }; - -GhCreateIssueCreateIssuePayload _$GhCreateIssueCreateIssuePayloadFromJson( - Map json) { - return GhCreateIssueCreateIssuePayload( - issue: json['issue'] == null - ? null - : GhCreateIssueIssue.fromJson(json['issue'] as Map), - ); -} - -Map _$GhCreateIssueCreateIssuePayloadToJson( - GhCreateIssueCreateIssuePayload instance) => - { - 'issue': instance.issue?.toJson(), - }; - -GhCreateIssueIssue _$GhCreateIssueIssueFromJson(Map json) { - return GhCreateIssueIssue( - number: json['number'] as int, - ) - ..repository = json['repository'] == null - ? null - : GhCreateIssueRepository.fromJson( - json['repository'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueIssueToJson(GhCreateIssueIssue instance) => - { - 'number': instance.number, - 'repository': instance.repository?.toJson(), - '__typename': instance.resolveType, - }; - -GhCreateIssueRepository _$GhCreateIssueRepositoryFromJson( - Map json) { - return GhCreateIssueRepository() - ..owner = json['owner'] == null - ? null - : GhCreateIssueRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRepositoryToJson( - GhCreateIssueRepository instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GhCreateIssueRepositoryOwner _$GhCreateIssueRepositoryOwnerFromJson( - Map json) { - return GhCreateIssueRepositoryOwner( - login: json['login'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRepositoryOwnerToJson( - GhCreateIssueRepositoryOwner instance) => - { - 'login': instance.login, - '__typename': instance.resolveType, - }; - -GhCreateIssuePinnableItem _$GhCreateIssuePinnableItemFromJson( - Map json) { - return GhCreateIssuePinnableItem(); -} - -Map _$GhCreateIssuePinnableItemToJson( - GhCreateIssuePinnableItem instance) => - {}; - -GhCreateIssueNode _$GhCreateIssueNodeFromJson(Map json) { - return GhCreateIssueNode()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueNodeToJson(GhCreateIssueNode instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueProjectOwner _$GhCreateIssueProjectOwnerFromJson( - Map json) { - return GhCreateIssueProjectOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueProjectOwnerToJson( - GhCreateIssueProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueRegistryPackageOwner _$GhCreateIssueRegistryPackageOwnerFromJson( - Map json) { - return GhCreateIssueRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRegistryPackageOwnerToJson( - GhCreateIssueRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueRegistryPackageSearch _$GhCreateIssueRegistryPackageSearchFromJson( - Map json) { - return GhCreateIssueRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRegistryPackageSearchToJson( - GhCreateIssueRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueSubscribable _$GhCreateIssueSubscribableFromJson( - Map json) { - return GhCreateIssueSubscribable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueSubscribableToJson( - GhCreateIssueSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueStarrable _$GhCreateIssueStarrableFromJson( - Map json) { - return GhCreateIssueStarrable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueStarrableToJson( - GhCreateIssueStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueUniformResourceLocatable - _$GhCreateIssueUniformResourceLocatableFromJson(Map json) { - return GhCreateIssueUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueUniformResourceLocatableToJson( - GhCreateIssueUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueRepositoryInfo _$GhCreateIssueRepositoryInfoFromJson( - Map json) { - return GhCreateIssueRepositoryInfo( - owner: json['owner'] == null - ? null - : GhCreateIssueRepositoryOwner.fromJson( - json['owner'] as Map), - name: json['name'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRepositoryInfoToJson( - GhCreateIssueRepositoryInfo instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GhCreateIssueProjectCardItem _$GhCreateIssueProjectCardItemFromJson( - Map json) { - return GhCreateIssueProjectCardItem(); -} - -Map _$GhCreateIssueProjectCardItemToJson( - GhCreateIssueProjectCardItem instance) => - {}; - -GhCreateIssueAssignable _$GhCreateIssueAssignableFromJson( - Map json) { - return GhCreateIssueAssignable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueAssignableToJson( - GhCreateIssueAssignable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueClosable _$GhCreateIssueClosableFromJson( - Map json) { - return GhCreateIssueClosable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueClosableToJson( - GhCreateIssueClosable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueComment _$GhCreateIssueCommentFromJson(Map json) { - return GhCreateIssueComment()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueCommentToJson( - GhCreateIssueComment instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueUpdatable _$GhCreateIssueUpdatableFromJson( - Map json) { - return GhCreateIssueUpdatable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueUpdatableToJson( - GhCreateIssueUpdatable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueUpdatableComment _$GhCreateIssueUpdatableCommentFromJson( - Map json) { - return GhCreateIssueUpdatableComment() - ..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueUpdatableCommentToJson( - GhCreateIssueUpdatableComment instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueLabelable _$GhCreateIssueLabelableFromJson( - Map json) { - return GhCreateIssueLabelable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueLabelableToJson( - GhCreateIssueLabelable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueLockable _$GhCreateIssueLockableFromJson( - Map json) { - return GhCreateIssueLockable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueLockableToJson( - GhCreateIssueLockable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueReactable _$GhCreateIssueReactableFromJson( - Map json) { - return GhCreateIssueReactable()..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueReactableToJson( - GhCreateIssueReactable instance) => - { - '__typename': instance.resolveType, - }; - -GhCreateIssueRepositoryNode _$GhCreateIssueRepositoryNodeFromJson( - Map json) { - return GhCreateIssueRepositoryNode( - repository: json['repository'] == null - ? null - : GhCreateIssueRepository.fromJson( - json['repository'] as Map), - )..resolveType = json['__typename'] as String; -} - -Map _$GhCreateIssueRepositoryNodeToJson( - GhCreateIssueRepositoryNode instance) => - { - 'repository': instance.repository?.toJson(), - '__typename': instance.resolveType, - }; - -GhCreateIssueArguments _$GhCreateIssueArgumentsFromJson( - Map json) { - return GhCreateIssueArguments( - repoId: json['repoId'] as String, - title: json['title'] as String, - body: json['body'] as String, - ); -} - -Map _$GhCreateIssueArgumentsToJson( - GhCreateIssueArguments instance) => - { - 'repoId': instance.repoId, - 'title': instance.title, - 'body': instance.body, - }; - GhPulls _$GhPullsFromJson(Map json) { return GhPulls( repository: json['repository'] == null @@ -2725,164 +2406,6 @@ Map _$GhReposArgumentsToJson(GhReposArguments instance) => 'isStar': instance.isStar, }; -GhWatch _$GhWatchFromJson(Map json) { - return GhWatch( - updateSubscription: json['updateSubscription'] == null - ? null - : GhWatchUpdateSubscriptionPayload.fromJson( - json['updateSubscription'] as Map), - ); -} - -Map _$GhWatchToJson(GhWatch instance) => { - 'updateSubscription': instance.updateSubscription?.toJson(), - }; - -GhWatchUpdateSubscriptionPayload _$GhWatchUpdateSubscriptionPayloadFromJson( - Map json) { - return GhWatchUpdateSubscriptionPayload( - subscribable: json['subscribable'] == null - ? null - : GhWatchSubscribable.fromJson( - json['subscribable'] as Map), - ); -} - -Map _$GhWatchUpdateSubscriptionPayloadToJson( - GhWatchUpdateSubscriptionPayload instance) => - { - 'subscribable': instance.subscribable?.toJson(), - }; - -GhWatchSubscribable _$GhWatchSubscribableFromJson(Map json) { - return GhWatchSubscribable()..resolveType = json['__typename'] as String; -} - -Map _$GhWatchSubscribableToJson( - GhWatchSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchRepository _$GhWatchRepositoryFromJson(Map json) { - return GhWatchRepository( - viewerSubscription: _$enumDecodeNullable( - _$GhWatchSubscriptionStateEnumMap, json['viewerSubscription'], - unknownValue: GhWatchSubscriptionState.ARTEMIS_UNKNOWN), - )..resolveType = json['__typename'] as String; -} - -Map _$GhWatchRepositoryToJson(GhWatchRepository instance) => - { - 'viewerSubscription': - _$GhWatchSubscriptionStateEnumMap[instance.viewerSubscription], - '__typename': instance.resolveType, - }; - -const _$GhWatchSubscriptionStateEnumMap = { - GhWatchSubscriptionState.UNSUBSCRIBED: 'UNSUBSCRIBED', - GhWatchSubscriptionState.SUBSCRIBED: 'SUBSCRIBED', - GhWatchSubscriptionState.IGNORED: 'IGNORED', - GhWatchSubscriptionState.ARTEMIS_UNKNOWN: 'ARTEMIS_UNKNOWN', -}; - -GhWatchPinnableItem _$GhWatchPinnableItemFromJson(Map json) { - return GhWatchPinnableItem(); -} - -Map _$GhWatchPinnableItemToJson( - GhWatchPinnableItem instance) => - {}; - -GhWatchNode _$GhWatchNodeFromJson(Map json) { - return GhWatchNode()..resolveType = json['__typename'] as String; -} - -Map _$GhWatchNodeToJson(GhWatchNode instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchProjectOwner _$GhWatchProjectOwnerFromJson(Map json) { - return GhWatchProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GhWatchProjectOwnerToJson( - GhWatchProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchRegistryPackageOwner _$GhWatchRegistryPackageOwnerFromJson( - Map json) { - return GhWatchRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GhWatchRegistryPackageOwnerToJson( - GhWatchRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchRegistryPackageSearch _$GhWatchRegistryPackageSearchFromJson( - Map json) { - return GhWatchRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GhWatchRegistryPackageSearchToJson( - GhWatchRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchStarrable _$GhWatchStarrableFromJson(Map json) { - return GhWatchStarrable()..resolveType = json['__typename'] as String; -} - -Map _$GhWatchStarrableToJson(GhWatchStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchUniformResourceLocatable _$GhWatchUniformResourceLocatableFromJson( - Map json) { - return GhWatchUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhWatchUniformResourceLocatableToJson( - GhWatchUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchRepositoryInfo _$GhWatchRepositoryInfoFromJson( - Map json) { - return GhWatchRepositoryInfo()..resolveType = json['__typename'] as String; -} - -Map _$GhWatchRepositoryInfoToJson( - GhWatchRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GhWatchArguments _$GhWatchArgumentsFromJson(Map json) { - return GhWatchArguments( - id: json['id'] as String, - state: - _$enumDecodeNullable(_$GhWatchSubscriptionStateEnumMap, json['state']), - ); -} - -Map _$GhWatchArgumentsToJson(GhWatchArguments instance) => - { - 'id': instance.id, - 'state': _$GhWatchSubscriptionStateEnumMap[instance.state], - }; - GhUser _$GhUserFromJson(Map json) { return GhUser( repositoryOwner: json['repositoryOwner'] == null @@ -3439,446 +2962,6 @@ Map _$GhUserArgumentsToJson(GhUserArguments instance) => 'isViewer': instance.isViewer, }; -GhFollow _$GhFollowFromJson(Map json) { - return GhFollow( - followUser: json['followUser'] == null - ? null - : GhFollowFollowUserPayload.fromJson( - json['followUser'] as Map), - unfollowUser: json['unfollowUser'] == null - ? null - : GhFollowUnfollowUserPayload.fromJson( - json['unfollowUser'] as Map), - ); -} - -Map _$GhFollowToJson(GhFollow instance) => { - 'followUser': instance.followUser?.toJson(), - 'unfollowUser': instance.unfollowUser?.toJson(), - }; - -GhFollowFollowUserPayload _$GhFollowFollowUserPayloadFromJson( - Map json) { - return GhFollowFollowUserPayload( - user: json['user'] == null - ? null - : GhFollowUser.fromJson(json['user'] as Map), - ); -} - -Map _$GhFollowFollowUserPayloadToJson( - GhFollowFollowUserPayload instance) => - { - 'user': instance.user?.toJson(), - }; - -GhFollowUser _$GhFollowUserFromJson(Map json) { - return GhFollowUser( - viewerIsFollowing: json['viewerIsFollowing'] as bool, - )..resolveType = json['__typename'] as String; -} - -Map _$GhFollowUserToJson(GhFollowUser instance) => - { - 'viewerIsFollowing': instance.viewerIsFollowing, - '__typename': instance.resolveType, - }; - -GhFollowAuditEntryActor _$GhFollowAuditEntryActorFromJson( - Map json) { - return GhFollowAuditEntryActor(); -} - -Map _$GhFollowAuditEntryActorToJson( - GhFollowAuditEntryActor instance) => - {}; - -GhFollowNode _$GhFollowNodeFromJson(Map json) { - return GhFollowNode()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowNodeToJson(GhFollowNode instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowActor _$GhFollowActorFromJson(Map json) { - return GhFollowActor()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowActorToJson(GhFollowActor instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowRegistryPackageOwner _$GhFollowRegistryPackageOwnerFromJson( - Map json) { - return GhFollowRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GhFollowRegistryPackageOwnerToJson( - GhFollowRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowRegistryPackageSearch _$GhFollowRegistryPackageSearchFromJson( - Map json) { - return GhFollowRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GhFollowRegistryPackageSearchToJson( - GhFollowRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowProjectOwner _$GhFollowProjectOwnerFromJson(Map json) { - return GhFollowProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowProjectOwnerToJson( - GhFollowProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowRepositoryOwner _$GhFollowRepositoryOwnerFromJson( - Map json) { - return GhFollowRepositoryOwner()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowRepositoryOwnerToJson( - GhFollowRepositoryOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowUniformResourceLocatable _$GhFollowUniformResourceLocatableFromJson( - Map json) { - return GhFollowUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhFollowUniformResourceLocatableToJson( - GhFollowUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowProfileOwner _$GhFollowProfileOwnerFromJson(Map json) { - return GhFollowProfileOwner()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowProfileOwnerToJson( - GhFollowProfileOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowSponsorable _$GhFollowSponsorableFromJson(Map json) { - return GhFollowSponsorable()..resolveType = json['__typename'] as String; -} - -Map _$GhFollowSponsorableToJson( - GhFollowSponsorable instance) => - { - '__typename': instance.resolveType, - }; - -GhFollowUnfollowUserPayload _$GhFollowUnfollowUserPayloadFromJson( - Map json) { - return GhFollowUnfollowUserPayload( - user: json['user'] == null - ? null - : GhFollowUser.fromJson(json['user'] as Map), - ); -} - -Map _$GhFollowUnfollowUserPayloadToJson( - GhFollowUnfollowUserPayload instance) => - { - 'user': instance.user?.toJson(), - }; - -GhFollowArguments _$GhFollowArgumentsFromJson(Map json) { - return GhFollowArguments( - id: json['id'] as String, - flag: json['flag'] as bool, - ); -} - -Map _$GhFollowArgumentsToJson(GhFollowArguments instance) => - { - 'id': instance.id, - 'flag': instance.flag, - }; - -GhStar _$GhStarFromJson(Map json) { - return GhStar( - addStar: json['addStar'] == null - ? null - : GhStarAddStarPayload.fromJson( - json['addStar'] as Map), - removeStar: json['removeStar'] == null - ? null - : GhStarRemoveStarPayload.fromJson( - json['removeStar'] as Map), - ); -} - -Map _$GhStarToJson(GhStar instance) => { - 'addStar': instance.addStar?.toJson(), - 'removeStar': instance.removeStar?.toJson(), - }; - -GhStarAddStarPayload _$GhStarAddStarPayloadFromJson(Map json) { - return GhStarAddStarPayload( - starrable: json['starrable'] == null - ? null - : GhStarStarrable.fromJson(json['starrable'] as Map), - ); -} - -Map _$GhStarAddStarPayloadToJson( - GhStarAddStarPayload instance) => - { - 'starrable': instance.starrable?.toJson(), - }; - -GhStarStarrable _$GhStarStarrableFromJson(Map json) { - return GhStarStarrable( - viewerHasStarred: json['viewerHasStarred'] as bool, - )..resolveType = json['__typename'] as String; -} - -Map _$GhStarStarrableToJson(GhStarStarrable instance) => - { - 'viewerHasStarred': instance.viewerHasStarred, - '__typename': instance.resolveType, - }; - -GhStarRemoveStarPayload _$GhStarRemoveStarPayloadFromJson( - Map json) { - return GhStarRemoveStarPayload( - starrable: json['starrable'] == null - ? null - : GhStarStarrable.fromJson(json['starrable'] as Map), - ); -} - -Map _$GhStarRemoveStarPayloadToJson( - GhStarRemoveStarPayload instance) => - { - 'starrable': instance.starrable?.toJson(), - }; - -GhStarArguments _$GhStarArgumentsFromJson(Map json) { - return GhStarArguments( - id: json['id'] as String, - flag: json['flag'] as bool, - ); -} - -Map _$GhStarArgumentsToJson(GhStarArguments instance) => - { - 'id': instance.id, - 'flag': instance.flag, - }; - -GhObject _$GhObjectFromJson(Map json) { - return GhObject( - repository: json['repository'] == null - ? null - : GhObjectRepository.fromJson( - json['repository'] as Map), - ); -} - -Map _$GhObjectToJson(GhObject instance) => { - 'repository': instance.repository?.toJson(), - }; - -GhObjectRepository _$GhObjectRepositoryFromJson(Map json) { - return GhObjectRepository( - object: json['object'] == null - ? null - : GhObjectGitObject.fromJson(json['object'] as Map), - )..resolveType = json['__typename'] as String; -} - -Map _$GhObjectRepositoryToJson(GhObjectRepository instance) => - { - 'object': instance.object?.toJson(), - '__typename': instance.resolveType, - }; - -GhObjectGitObject _$GhObjectGitObjectFromJson(Map json) { - return GhObjectGitObject()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectGitObjectToJson(GhObjectGitObject instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectBlob _$GhObjectBlobFromJson(Map json) { - return GhObjectBlob( - text: json['text'] as String, - byteSize: json['byteSize'] as int, - )..resolveType = json['__typename'] as String; -} - -Map _$GhObjectBlobToJson(GhObjectBlob instance) => - { - 'text': instance.text, - 'byteSize': instance.byteSize, - '__typename': instance.resolveType, - }; - -GhObjectNode _$GhObjectNodeFromJson(Map json) { - return GhObjectNode()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectNodeToJson(GhObjectNode instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectTree _$GhObjectTreeFromJson(Map json) { - return GhObjectTree( - entries: (json['entries'] as List) - ?.map((e) => e == null - ? null - : GhObjectTreeEntry.fromJson(e as Map)) - ?.toList(), - )..resolveType = json['__typename'] as String; -} - -Map _$GhObjectTreeToJson(GhObjectTree instance) => - { - 'entries': instance.entries?.map((e) => e?.toJson())?.toList(), - '__typename': instance.resolveType, - }; - -GhObjectTreeEntry _$GhObjectTreeEntryFromJson(Map json) { - return GhObjectTreeEntry( - type: json['type'] as String, - name: json['name'] as String, - object: json['object'] == null - ? null - : GhObjectGitObject.fromJson(json['object'] as Map), - ); -} - -Map _$GhObjectTreeEntryToJson(GhObjectTreeEntry instance) => - { - 'type': instance.type, - 'name': instance.name, - 'object': instance.object?.toJson(), - }; - -GhObjectPinnableItem _$GhObjectPinnableItemFromJson(Map json) { - return GhObjectPinnableItem(); -} - -Map _$GhObjectPinnableItemToJson( - GhObjectPinnableItem instance) => - {}; - -GhObjectProjectOwner _$GhObjectProjectOwnerFromJson(Map json) { - return GhObjectProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectProjectOwnerToJson( - GhObjectProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectRegistryPackageOwner _$GhObjectRegistryPackageOwnerFromJson( - Map json) { - return GhObjectRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GhObjectRegistryPackageOwnerToJson( - GhObjectRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectRegistryPackageSearch _$GhObjectRegistryPackageSearchFromJson( - Map json) { - return GhObjectRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GhObjectRegistryPackageSearchToJson( - GhObjectRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectSubscribable _$GhObjectSubscribableFromJson(Map json) { - return GhObjectSubscribable()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectSubscribableToJson( - GhObjectSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectStarrable _$GhObjectStarrableFromJson(Map json) { - return GhObjectStarrable()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectStarrableToJson(GhObjectStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectUniformResourceLocatable _$GhObjectUniformResourceLocatableFromJson( - Map json) { - return GhObjectUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhObjectUniformResourceLocatableToJson( - GhObjectUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectRepositoryInfo _$GhObjectRepositoryInfoFromJson( - Map json) { - return GhObjectRepositoryInfo()..resolveType = json['__typename'] as String; -} - -Map _$GhObjectRepositoryInfoToJson( - GhObjectRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GhObjectArguments _$GhObjectArgumentsFromJson(Map json) { - return GhObjectArguments( - owner: json['owner'] as String, - name: json['name'] as String, - expression: json['expression'] as String, - ); -} - -Map _$GhObjectArgumentsToJson(GhObjectArguments instance) => - { - 'owner': instance.owner, - 'name': instance.name, - 'expression': instance.expression, - }; - GhCommits _$GhCommitsFromJson(Map json) { return GhCommits( repository: json['repository'] == null @@ -4235,150 +3318,3 @@ Map _$GhCommitsArgumentsToJson(GhCommitsArguments instance) => 'hasRef': instance.hasRef, 'after': instance.after, }; - -GhRepoId _$GhRepoIdFromJson(Map json) { - return GhRepoId( - repository: json['repository'] == null - ? null - : GhRepoIdRepository.fromJson( - json['repository'] as Map), - ); -} - -Map _$GhRepoIdToJson(GhRepoId instance) => { - 'repository': instance.repository?.toJson(), - }; - -GhRepoIdRepository _$GhRepoIdRepositoryFromJson(Map json) { - return GhRepoIdRepository() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdRepositoryToJson(GhRepoIdRepository instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdPinnableItem _$GhRepoIdPinnableItemFromJson(Map json) { - return GhRepoIdPinnableItem(); -} - -Map _$GhRepoIdPinnableItemToJson( - GhRepoIdPinnableItem instance) => - {}; - -GhRepoIdNode _$GhRepoIdNodeFromJson(Map json) { - return GhRepoIdNode( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdNodeToJson(GhRepoIdNode instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdProjectOwner _$GhRepoIdProjectOwnerFromJson(Map json) { - return GhRepoIdProjectOwner( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdProjectOwnerToJson( - GhRepoIdProjectOwner instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdRegistryPackageOwner _$GhRepoIdRegistryPackageOwnerFromJson( - Map json) { - return GhRepoIdRegistryPackageOwner( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdRegistryPackageOwnerToJson( - GhRepoIdRegistryPackageOwner instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdRegistryPackageSearch _$GhRepoIdRegistryPackageSearchFromJson( - Map json) { - return GhRepoIdRegistryPackageSearch( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdRegistryPackageSearchToJson( - GhRepoIdRegistryPackageSearch instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdSubscribable _$GhRepoIdSubscribableFromJson(Map json) { - return GhRepoIdSubscribable( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdSubscribableToJson( - GhRepoIdSubscribable instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdStarrable _$GhRepoIdStarrableFromJson(Map json) { - return GhRepoIdStarrable( - id: json['id'] as String, - )..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdStarrableToJson(GhRepoIdStarrable instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GhRepoIdUniformResourceLocatable _$GhRepoIdUniformResourceLocatableFromJson( - Map json) { - return GhRepoIdUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdUniformResourceLocatableToJson( - GhRepoIdUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GhRepoIdRepositoryInfo _$GhRepoIdRepositoryInfoFromJson( - Map json) { - return GhRepoIdRepositoryInfo()..resolveType = json['__typename'] as String; -} - -Map _$GhRepoIdRepositoryInfoToJson( - GhRepoIdRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GhRepoIdArguments _$GhRepoIdArgumentsFromJson(Map json) { - return GhRepoIdArguments( - owner: json['owner'] as String, - name: json['name'] as String, - ); -} - -Map _$GhRepoIdArgumentsToJson(GhRepoIdArguments instance) => - { - 'owner': instance.owner, - 'name': instance.name, - }; diff --git a/lib/graphql/gh_create_issue.graphql b/lib/graphql/gh_create_issue.graphql deleted file mode 100644 index 0b0f907..0000000 --- a/lib/graphql/gh_create_issue.graphql +++ /dev/null @@ -1,13 +0,0 @@ -mutation GhCreateIssue($repoId: ID!, $title: String!, $body: String!) { - createIssue(input: { repositoryId: $repoId, title: $title, body: $body }) { - issue { - number - repository { - owner { - login - } - name - } - } - } -} diff --git a/lib/graphql/gh_follow.graphql b/lib/graphql/gh_follow.graphql deleted file mode 100644 index 711c4bc..0000000 --- a/lib/graphql/gh_follow.graphql +++ /dev/null @@ -1,12 +0,0 @@ -mutation GhFollow($id: ID!, $flag: Boolean!) { - followUser(input: { userId: $id }) @include(if: $flag) { - user { - viewerIsFollowing - } - } - unfollowUser(input: { userId: $id }) @skip(if: $flag) { - user { - viewerIsFollowing - } - } -} diff --git a/lib/graphql/gh_object.graphql b/lib/graphql/gh_object.graphql deleted file mode 100644 index 0bd97f1..0000000 --- a/lib/graphql/gh_object.graphql +++ /dev/null @@ -1,23 +0,0 @@ -query GhObject($owner: String!, $name: String!, $expression: String!) { - repository(owner: $owner, name: $name) { - object(expression: $expression) { - __typename - ... on Blob { - text - byteSize # x - } - ... on Tree { - entries { - type - name - object { - __typename - ... on Blob { - byteSize - } - } - } - } - } - } -} diff --git a/lib/graphql/gh_repo_id.graphql b/lib/graphql/gh_repo_id.graphql deleted file mode 100644 index 60274c4..0000000 --- a/lib/graphql/gh_repo_id.graphql +++ /dev/null @@ -1,5 +0,0 @@ -query GhRepoId($owner: String!, $name: String!) { - repository(owner: $owner, name: $name) { - id - } -} diff --git a/lib/graphql/gh_star.graphql b/lib/graphql/gh_star.graphql deleted file mode 100644 index 47d40da..0000000 --- a/lib/graphql/gh_star.graphql +++ /dev/null @@ -1,12 +0,0 @@ -mutation GhStar($id: ID!, $flag: Boolean!) { - addStar(input: { starrableId: $id }) @include(if: $flag) { - starrable { - viewerHasStarred - } - } - removeStar(input: { starrableId: $id }) @skip(if: $flag) { - starrable { - viewerHasStarred - } - } -} diff --git a/lib/graphql/gh_watch.graphql b/lib/graphql/gh_watch.graphql deleted file mode 100644 index 0e7387f..0000000 --- a/lib/graphql/gh_watch.graphql +++ /dev/null @@ -1,10 +0,0 @@ -mutation GhWatch($id: ID!, $state: SubscriptionState!) { - updateSubscription(input: { subscribableId: $id, state: $state }) { - subscribable { - __typename - ... on Repository { - viewerSubscription - } - } - } -}