-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Interface.Updatable exposing (commonSelection, onCommitComment, onGistComment, onIssue, onIssueComment, onProject, onPullRequest, onPullRequestReview, onPullRequestReviewComment, selection, viewerCanUpdate) import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.Union import Graphql.Field as Field exposing (Field) import Graphql.Internal.Builder.Argument as Argument exposing (Argument) import Graphql.Internal.Builder.Object as Object import Graphql.Internal.Encode as Encode exposing (Value) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (FragmentSelectionSet(..), SelectionSet(..)) import Json.Decode as Decode {-| Select only common fields from the interface. -} commonSelection : (a -> constructor) -> SelectionSet (a -> constructor) Github.Interface.Updatable commonSelection constructor = Object.selection constructor {-| Select both common and type-specific fields from the interface. -} selection : (Maybe typeSpecific -> a -> constructor) -> List (FragmentSelectionSet typeSpecific Github.Interface.Updatable) -> SelectionSet (a -> constructor) Github.Interface.Updatable selection constructor typeSpecificDecoders = Object.interfaceSelection typeSpecificDecoders constructor onCommitComment : SelectionSet decodesTo Github.Object.CommitComment -> FragmentSelectionSet decodesTo Github.Interface.Updatable onCommitComment (SelectionSet fields decoder) = FragmentSelectionSet "CommitComment" fields decoder onGistComment : SelectionSet decodesTo Github.Object.GistComment -> FragmentSelectionSet decodesTo Github.Interface.Updatable onGistComment (SelectionSet fields decoder) = FragmentSelectionSet "GistComment" fields decoder onIssue : SelectionSet decodesTo Github.Object.Issue -> FragmentSelectionSet decodesTo Github.Interface.Updatable onIssue (SelectionSet fields decoder) = FragmentSelectionSet "Issue" fields decoder onIssueComment : SelectionSet decodesTo Github.Object.IssueComment -> FragmentSelectionSet decodesTo Github.Interface.Updatable onIssueComment (SelectionSet fields decoder) = FragmentSelectionSet "IssueComment" fields decoder onProject : SelectionSet decodesTo Github.Object.Project -> FragmentSelectionSet decodesTo Github.Interface.Updatable onProject (SelectionSet fields decoder) = FragmentSelectionSet "Project" fields decoder onPullRequest : SelectionSet decodesTo Github.Object.PullRequest -> FragmentSelectionSet decodesTo Github.Interface.Updatable onPullRequest (SelectionSet fields decoder) = FragmentSelectionSet "PullRequest" fields decoder onPullRequestReview : SelectionSet decodesTo Github.Object.PullRequestReview -> FragmentSelectionSet decodesTo Github.Interface.Updatable onPullRequestReview (SelectionSet fields decoder) = FragmentSelectionSet "PullRequestReview" fields decoder onPullRequestReviewComment : SelectionSet decodesTo Github.Object.PullRequestReviewComment -> FragmentSelectionSet decodesTo Github.Interface.Updatable onPullRequestReviewComment (SelectionSet fields decoder) = FragmentSelectionSet "PullRequestReviewComment" fields decoder {-| Check if the current viewer can update this object. -} viewerCanUpdate : Field Bool Github.Interface.Updatable viewerCanUpdate = Object.fieldDecoder "viewerCanUpdate" [] Decode.bool