-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.Repository exposing (AssignableUsersOptionalArguments, CollaboratorsOptionalArguments, CommitCommentsOptionalArguments, DeployKeysOptionalArguments, DeploymentsOptionalArguments, ForksOptionalArguments, IssueOrPullRequestRequiredArguments, IssueRequiredArguments, IssuesOptionalArguments, LabelRequiredArguments, LabelsOptionalArguments, LanguagesOptionalArguments, MentionableUsersOptionalArguments, MilestoneRequiredArguments, MilestonesOptionalArguments, ObjectOptionalArguments, ProjectRequiredArguments, ProjectsOptionalArguments, ProtectedBranchesOptionalArguments, PullRequestRequiredArguments, PullRequestsOptionalArguments, RefRequiredArguments, RefsOptionalArguments, RefsRequiredArguments, ReleaseRequiredArguments, ReleasesOptionalArguments, RepositoryTopicsOptionalArguments, ShortDescriptionHTMLOptionalArguments, StargazersOptionalArguments, WatchersOptionalArguments, assignableUsers, codeOfConduct, collaborators, commitComments, createdAt, databaseId, defaultBranchRef, deployKeys, deployments, description, descriptionHTML, diskUsage, forkCount, forks, hasIssuesEnabled, hasWikiEnabled, homepageUrl, id, isArchived, isFork, isLocked, isMirror, isPrivate, issue, issueOrPullRequest, issues, label, labels, languages, license, licenseInfo, lockReason, mentionableUsers, milestone, milestones, mirrorUrl, name, nameWithOwner, object, owner, parent, primaryLanguage, project, projects, projectsResourcePath, projectsUrl, protectedBranches, pullRequest, pullRequests, pushedAt, ref, refs, release, releases, repositoryTopics, resourcePath, shortDescriptionHTML, sshUrl, stargazers, updatedAt, url, viewerCanAdminister, viewerCanCreateProjects, viewerCanSubscribe, viewerCanUpdateTopics, viewerHasStarred, viewerPermission, viewerSubscription, watchers) import Github.Enum.CollaboratorAffiliation import Github.Enum.IssueState import Github.Enum.MilestoneState import Github.Enum.OrderDirection import Github.Enum.ProjectState import Github.Enum.PullRequestState import Github.Enum.RepositoryAffiliation import Github.Enum.RepositoryLockReason import Github.Enum.RepositoryPermission import Github.Enum.RepositoryPrivacy import Github.Enum.SubscriptionState import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.ScalarCodecs import Github.Union 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.Operation exposing (RootMutation, RootQuery, RootSubscription) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (SelectionSet) import Json.Decode as Decode type alias AssignableUsersOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of users that can be assigned to issues in this repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} assignableUsers : (AssignableUsersOptionalArguments -> AssignableUsersOptionalArguments) -> SelectionSet decodesTo Github.Object.UserConnection -> SelectionSet decodesTo Github.Object.Repository assignableUsers fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "assignableUsers" optionalArgs object_ identity {-| Returns the code of conduct for this repository -} codeOfConduct : SelectionSet decodesTo Github.Object.CodeOfConduct -> SelectionSet (Maybe decodesTo) Github.Object.Repository codeOfConduct object_ = Object.selectionForCompositeField "codeOfConduct" [] object_ (identity >> Decode.nullable) type alias CollaboratorsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , affiliation : OptionalArgument Github.Enum.CollaboratorAffiliation.CollaboratorAffiliation } {-| A list of collaborators associated with the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - affiliation - Collaborators affiliation level with a repository. -} collaborators : (CollaboratorsOptionalArguments -> CollaboratorsOptionalArguments) -> SelectionSet decodesTo Github.Object.RepositoryCollaboratorConnection -> SelectionSet (Maybe decodesTo) Github.Object.Repository collaborators fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, affiliation = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "affiliation" filledInOptionals.affiliation (Encode.enum Github.Enum.CollaboratorAffiliation.toString) ] |> List.filterMap identity in Object.selectionForCompositeField "collaborators" optionalArgs object_ (identity >> Decode.nullable) type alias CommitCommentsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of commit comments associated with the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} commitComments : (CommitCommentsOptionalArguments -> CommitCommentsOptionalArguments) -> SelectionSet decodesTo Github.Object.CommitCommentConnection -> SelectionSet decodesTo Github.Object.Repository commitComments fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "commitComments" optionalArgs object_ identity {-| Identifies the date and time when the object was created. -} createdAt : SelectionSet Github.ScalarCodecs.DateTime Github.Object.Repository createdAt = Object.selectionForField "ScalarCodecs.DateTime" "createdAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder) {-| Identifies the primary key from the database. -} databaseId : SelectionSet (Maybe Int) Github.Object.Repository databaseId = Object.selectionForField "(Maybe Int)" "databaseId" [] (Decode.int |> Decode.nullable) {-| The Ref associated with the repository's default branch. -} defaultBranchRef : SelectionSet decodesTo Github.Object.Ref -> SelectionSet (Maybe decodesTo) Github.Object.Repository defaultBranchRef object_ = Object.selectionForCompositeField "defaultBranchRef" [] object_ (identity >> Decode.nullable) type alias DeployKeysOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of deploy keys that are on this repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} deployKeys : (DeployKeysOptionalArguments -> DeployKeysOptionalArguments) -> SelectionSet decodesTo Github.Object.DeployKeyConnection -> SelectionSet decodesTo Github.Object.Repository deployKeys fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "deployKeys" optionalArgs object_ identity type alias DeploymentsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , environments : OptionalArgument (List String) } {-| Deployments associated with the repository - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - environments - Environments to list deployments for -} deployments : (DeploymentsOptionalArguments -> DeploymentsOptionalArguments) -> SelectionSet decodesTo Github.Object.DeploymentConnection -> SelectionSet decodesTo Github.Object.Repository deployments fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, environments = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "environments" filledInOptionals.environments (Encode.string |> Encode.list) ] |> List.filterMap identity in Object.selectionForCompositeField "deployments" optionalArgs object_ identity {-| The description of the repository. -} description : SelectionSet (Maybe String) Github.Object.Repository description = Object.selectionForField "(Maybe String)" "description" [] (Decode.string |> Decode.nullable) {-| The description of the repository rendered to HTML. -} descriptionHTML : SelectionSet Github.ScalarCodecs.Html Github.Object.Repository descriptionHTML = Object.selectionForField "ScalarCodecs.Html" "descriptionHTML" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecHtml |> .decoder) {-| The number of kilobytes this repository occupies on disk. -} diskUsage : SelectionSet (Maybe Int) Github.Object.Repository diskUsage = Object.selectionForField "(Maybe Int)" "diskUsage" [] (Decode.int |> Decode.nullable) {-| Returns how many forks there are of this repository in the whole network. -} forkCount : SelectionSet Int Github.Object.Repository forkCount = Object.selectionForField "Int" "forkCount" [] Decode.int type alias ForksOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , privacy : OptionalArgument Github.Enum.RepositoryPrivacy.RepositoryPrivacy , orderBy : OptionalArgument Github.InputObject.RepositoryOrder , affiliations : OptionalArgument (List (Maybe Github.Enum.RepositoryAffiliation.RepositoryAffiliation)) , isLocked : OptionalArgument Bool } {-| A list of direct forked repositories. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - privacy - If non-null, filters repositories according to privacy - orderBy - Ordering options for repositories returned from the connection - affiliations - Affiliation options for repositories returned from the connection - isLocked - If non-null, filters repositories according to whether they have been locked -} forks : (ForksOptionalArguments -> ForksOptionalArguments) -> SelectionSet decodesTo Github.Object.RepositoryConnection -> SelectionSet decodesTo Github.Object.Repository forks fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, privacy = Absent, orderBy = Absent, affiliations = Absent, isLocked = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "privacy" filledInOptionals.privacy (Encode.enum Github.Enum.RepositoryPrivacy.toString), Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeRepositoryOrder, Argument.optional "affiliations" filledInOptionals.affiliations (Encode.enum Github.Enum.RepositoryAffiliation.toString |> Encode.maybe |> Encode.list), Argument.optional "isLocked" filledInOptionals.isLocked Encode.bool ] |> List.filterMap identity in Object.selectionForCompositeField "forks" optionalArgs object_ identity {-| Indicates if the repository has issues feature enabled. -} hasIssuesEnabled : SelectionSet Bool Github.Object.Repository hasIssuesEnabled = Object.selectionForField "Bool" "hasIssuesEnabled" [] Decode.bool {-| Indicates if the repository has wiki feature enabled. -} hasWikiEnabled : SelectionSet Bool Github.Object.Repository hasWikiEnabled = Object.selectionForField "Bool" "hasWikiEnabled" [] Decode.bool {-| The repository's URL. -} homepageUrl : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.Repository homepageUrl = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "homepageUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) id : SelectionSet Github.ScalarCodecs.Id Github.Object.Repository id = Object.selectionForField "ScalarCodecs.Id" "id" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecId |> .decoder) {-| Indicates if the repository is unmaintained. -} isArchived : SelectionSet Bool Github.Object.Repository isArchived = Object.selectionForField "Bool" "isArchived" [] Decode.bool {-| Identifies if the repository is a fork. -} isFork : SelectionSet Bool Github.Object.Repository isFork = Object.selectionForField "Bool" "isFork" [] Decode.bool {-| Indicates if the repository has been locked or not. -} isLocked : SelectionSet Bool Github.Object.Repository isLocked = Object.selectionForField "Bool" "isLocked" [] Decode.bool {-| Identifies if the repository is a mirror. -} isMirror : SelectionSet Bool Github.Object.Repository isMirror = Object.selectionForField "Bool" "isMirror" [] Decode.bool {-| Identifies if the repository is private. -} isPrivate : SelectionSet Bool Github.Object.Repository isPrivate = Object.selectionForField "Bool" "isPrivate" [] Decode.bool type alias IssueRequiredArguments = { number : Int } {-| Returns a single issue from the current repository by number. - number - The number for the issue to be returned. -} issue : IssueRequiredArguments -> SelectionSet decodesTo Github.Object.Issue -> SelectionSet (Maybe decodesTo) Github.Object.Repository issue requiredArgs object_ = Object.selectionForCompositeField "issue" [ Argument.required "number" requiredArgs.number Encode.int ] object_ (identity >> Decode.nullable) type alias IssueOrPullRequestRequiredArguments = { number : Int } {-| Returns a single issue-like object from the current repository by number. - number - The number for the issue to be returned. -} issueOrPullRequest : IssueOrPullRequestRequiredArguments -> SelectionSet decodesTo Github.Union.IssueOrPullRequest -> SelectionSet (Maybe decodesTo) Github.Object.Repository issueOrPullRequest requiredArgs object_ = Object.selectionForCompositeField "issueOrPullRequest" [ Argument.required "number" requiredArgs.number Encode.int ] object_ (identity >> Decode.nullable) type alias IssuesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , labels : OptionalArgument (List String) , orderBy : OptionalArgument Github.InputObject.IssueOrder , states : OptionalArgument (List Github.Enum.IssueState.IssueState) } {-| A list of issues that have been opened in the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - labels - A list of label names to filter the pull requests by. - orderBy - Ordering options for issues returned from the connection. - states - A list of states to filter the issues by. -} issues : (IssuesOptionalArguments -> IssuesOptionalArguments) -> SelectionSet decodesTo Github.Object.IssueConnection -> SelectionSet decodesTo Github.Object.Repository issues fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, labels = Absent, orderBy = Absent, states = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "labels" filledInOptionals.labels (Encode.string |> Encode.list), Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeIssueOrder, Argument.optional "states" filledInOptionals.states (Encode.enum Github.Enum.IssueState.toString |> Encode.list) ] |> List.filterMap identity in Object.selectionForCompositeField "issues" optionalArgs object_ identity type alias LabelRequiredArguments = { name : String } {-| Returns a single label by name - name - Label name -} label : LabelRequiredArguments -> SelectionSet decodesTo Github.Object.Label -> SelectionSet (Maybe decodesTo) Github.Object.Repository label requiredArgs object_ = Object.selectionForCompositeField "label" [ Argument.required "name" requiredArgs.name Encode.string ] object_ (identity >> Decode.nullable) type alias LabelsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , query : OptionalArgument String } {-| A list of labels associated with the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - query - If provided, searches labels by name and description. -} labels : (LabelsOptionalArguments -> LabelsOptionalArguments) -> SelectionSet decodesTo Github.Object.LabelConnection -> SelectionSet (Maybe decodesTo) Github.Object.Repository labels fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, query = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "query" filledInOptionals.query Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "labels" optionalArgs object_ (identity >> Decode.nullable) type alias LanguagesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , orderBy : OptionalArgument Github.InputObject.LanguageOrder } {-| A list containing a breakdown of the language composition of the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - orderBy - Order for connection -} languages : (LanguagesOptionalArguments -> LanguagesOptionalArguments) -> SelectionSet decodesTo Github.Object.LanguageConnection -> SelectionSet (Maybe decodesTo) Github.Object.Repository languages fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeLanguageOrder ] |> List.filterMap identity in Object.selectionForCompositeField "languages" optionalArgs object_ (identity >> Decode.nullable) {-| The license associated with the repository -} license : SelectionSet (Maybe String) Github.Object.Repository license = Object.selectionForField "(Maybe String)" "license" [] (Decode.string |> Decode.nullable) {-| The license associated with the repository -} licenseInfo : SelectionSet decodesTo Github.Object.License -> SelectionSet (Maybe decodesTo) Github.Object.Repository licenseInfo object_ = Object.selectionForCompositeField "licenseInfo" [] object_ (identity >> Decode.nullable) {-| The reason the repository has been locked. -} lockReason : SelectionSet (Maybe Github.Enum.RepositoryLockReason.RepositoryLockReason) Github.Object.Repository lockReason = Object.selectionForField "(Maybe Enum.RepositoryLockReason.RepositoryLockReason)" "lockReason" [] (Github.Enum.RepositoryLockReason.decoder |> Decode.nullable) type alias MentionableUsersOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of Users that can be mentioned in the context of the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} mentionableUsers : (MentionableUsersOptionalArguments -> MentionableUsersOptionalArguments) -> SelectionSet decodesTo Github.Object.UserConnection -> SelectionSet decodesTo Github.Object.Repository mentionableUsers fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "mentionableUsers" optionalArgs object_ identity type alias MilestoneRequiredArguments = { number : Int } {-| Returns a single milestone from the current repository by number. - number - The number for the milestone to be returned. -} milestone : MilestoneRequiredArguments -> SelectionSet decodesTo Github.Object.Milestone -> SelectionSet (Maybe decodesTo) Github.Object.Repository milestone requiredArgs object_ = Object.selectionForCompositeField "milestone" [ Argument.required "number" requiredArgs.number Encode.int ] object_ (identity >> Decode.nullable) type alias MilestonesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , states : OptionalArgument (List Github.Enum.MilestoneState.MilestoneState) , orderBy : OptionalArgument Github.InputObject.MilestoneOrder } {-| A list of milestones associated with the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - states - Filter by the state of the milestones. - orderBy - Ordering options for milestones. -} milestones : (MilestonesOptionalArguments -> MilestonesOptionalArguments) -> SelectionSet decodesTo Github.Object.MilestoneConnection -> SelectionSet (Maybe decodesTo) Github.Object.Repository milestones fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, states = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "states" filledInOptionals.states (Encode.enum Github.Enum.MilestoneState.toString |> Encode.list), Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeMilestoneOrder ] |> List.filterMap identity in Object.selectionForCompositeField "milestones" optionalArgs object_ (identity >> Decode.nullable) {-| The repository's original mirror URL. -} mirrorUrl : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.Repository mirrorUrl = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "mirrorUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) {-| The name of the repository. -} name : SelectionSet String Github.Object.Repository name = Object.selectionForField "String" "name" [] Decode.string {-| The repository's name with owner. -} nameWithOwner : SelectionSet String Github.Object.Repository nameWithOwner = Object.selectionForField "String" "nameWithOwner" [] Decode.string type alias ObjectOptionalArguments = { oid : OptionalArgument Github.ScalarCodecs.GitObjectID , expression : OptionalArgument String } {-| A Git object in the repository - oid - The Git object ID - expression - A Git revision expression suitable for rev-parse -} object : (ObjectOptionalArguments -> ObjectOptionalArguments) -> SelectionSet decodesTo Github.Interface.GitObject -> SelectionSet (Maybe decodesTo) Github.Object.Repository object fillInOptionals object_ = let filledInOptionals = fillInOptionals { oid = Absent, expression = Absent } optionalArgs = [ Argument.optional "oid" filledInOptionals.oid (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapEncoder .codecGitObjectID), Argument.optional "expression" filledInOptionals.expression Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "object" optionalArgs object_ (identity >> Decode.nullable) {-| The User owner of the repository. -} owner : SelectionSet decodesTo Github.Interface.RepositoryOwner -> SelectionSet decodesTo Github.Object.Repository owner object_ = Object.selectionForCompositeField "owner" [] object_ identity {-| The repository parent, if this is a fork. -} parent : SelectionSet decodesTo Github.Object.Repository -> SelectionSet (Maybe decodesTo) Github.Object.Repository parent object_ = Object.selectionForCompositeField "parent" [] object_ (identity >> Decode.nullable) {-| The primary language of the repository's code. -} primaryLanguage : SelectionSet decodesTo Github.Object.Language -> SelectionSet (Maybe decodesTo) Github.Object.Repository primaryLanguage object_ = Object.selectionForCompositeField "primaryLanguage" [] object_ (identity >> Decode.nullable) type alias ProjectRequiredArguments = { number : Int } {-| Find project by number. - number - The project number to find. -} project : ProjectRequiredArguments -> SelectionSet decodesTo Github.Object.Project -> SelectionSet (Maybe decodesTo) Github.Object.Repository project requiredArgs object_ = Object.selectionForCompositeField "project" [ Argument.required "number" requiredArgs.number Encode.int ] object_ (identity >> Decode.nullable) type alias ProjectsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , orderBy : OptionalArgument Github.InputObject.ProjectOrder , search : OptionalArgument String , states : OptionalArgument (List Github.Enum.ProjectState.ProjectState) } {-| A list of projects under the owner. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - orderBy - Ordering options for projects returned from the connection - search - Query to search projects by, currently only searching by name. - states - A list of states to filter the projects by. -} projects : (ProjectsOptionalArguments -> ProjectsOptionalArguments) -> SelectionSet decodesTo Github.Object.ProjectConnection -> SelectionSet decodesTo Github.Object.Repository projects fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, orderBy = Absent, search = Absent, states = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeProjectOrder, Argument.optional "search" filledInOptionals.search Encode.string, Argument.optional "states" filledInOptionals.states (Encode.enum Github.Enum.ProjectState.toString |> Encode.list) ] |> List.filterMap identity in Object.selectionForCompositeField "projects" optionalArgs object_ identity {-| The HTTP path listing repository's projects -} projectsResourcePath : SelectionSet Github.ScalarCodecs.Uri Github.Object.Repository projectsResourcePath = Object.selectionForField "ScalarCodecs.Uri" "projectsResourcePath" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder) {-| The HTTP URL listing repository's projects -} projectsUrl : SelectionSet Github.ScalarCodecs.Uri Github.Object.Repository projectsUrl = Object.selectionForField "ScalarCodecs.Uri" "projectsUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder) type alias ProtectedBranchesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of protected branches that are on this repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} protectedBranches : (ProtectedBranchesOptionalArguments -> ProtectedBranchesOptionalArguments) -> SelectionSet decodesTo Github.Object.ProtectedBranchConnection -> SelectionSet decodesTo Github.Object.Repository protectedBranches fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "protectedBranches" optionalArgs object_ identity type alias PullRequestRequiredArguments = { number : Int } {-| Returns a single pull request from the current repository by number. - number - The number for the pull request to be returned. -} pullRequest : PullRequestRequiredArguments -> SelectionSet decodesTo Github.Object.PullRequest -> SelectionSet (Maybe decodesTo) Github.Object.Repository pullRequest requiredArgs object_ = Object.selectionForCompositeField "pullRequest" [ Argument.required "number" requiredArgs.number Encode.int ] object_ (identity >> Decode.nullable) type alias PullRequestsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , states : OptionalArgument (List Github.Enum.PullRequestState.PullRequestState) , labels : OptionalArgument (List String) , headRefName : OptionalArgument String , baseRefName : OptionalArgument String , orderBy : OptionalArgument Github.InputObject.IssueOrder } {-| A list of pull requests that have been opened in the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - states - A list of states to filter the pull requests by. - labels - A list of label names to filter the pull requests by. - headRefName - The head ref name to filter the pull requests by. - baseRefName - The base ref name to filter the pull requests by. - orderBy - Ordering options for pull requests returned from the connection. -} pullRequests : (PullRequestsOptionalArguments -> PullRequestsOptionalArguments) -> SelectionSet decodesTo Github.Object.PullRequestConnection -> SelectionSet decodesTo Github.Object.Repository pullRequests fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, states = Absent, labels = Absent, headRefName = Absent, baseRefName = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "states" filledInOptionals.states (Encode.enum Github.Enum.PullRequestState.toString |> Encode.list), Argument.optional "labels" filledInOptionals.labels (Encode.string |> Encode.list), Argument.optional "headRefName" filledInOptionals.headRefName Encode.string, Argument.optional "baseRefName" filledInOptionals.baseRefName Encode.string, Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeIssueOrder ] |> List.filterMap identity in Object.selectionForCompositeField "pullRequests" optionalArgs object_ identity {-| Identifies when the repository was last pushed to. -} pushedAt : SelectionSet (Maybe Github.ScalarCodecs.DateTime) Github.Object.Repository pushedAt = Object.selectionForField "(Maybe ScalarCodecs.DateTime)" "pushedAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder |> Decode.nullable) type alias RefRequiredArguments = { qualifiedName : String } {-| Fetch a given ref from the repository - qualifiedName - The ref to retrieve. Fully qualified matches are checked in order (`refs/heads/master`) before falling back onto checks for short name matches (`master`). -} ref : RefRequiredArguments -> SelectionSet decodesTo Github.Object.Ref -> SelectionSet (Maybe decodesTo) Github.Object.Repository ref requiredArgs object_ = Object.selectionForCompositeField "ref" [ Argument.required "qualifiedName" requiredArgs.qualifiedName Encode.string ] object_ (identity >> Decode.nullable) type alias RefsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , direction : OptionalArgument Github.Enum.OrderDirection.OrderDirection , orderBy : OptionalArgument Github.InputObject.RefOrder } type alias RefsRequiredArguments = { refPrefix : String } {-| Fetch a list of refs from the repository - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - refPrefix - A ref name prefix like `refs/heads/`, `refs/tags/`, etc. - direction - DEPRECATED: use orderBy. The ordering direction. - orderBy - Ordering options for refs returned from the connection. -} refs : (RefsOptionalArguments -> RefsOptionalArguments) -> RefsRequiredArguments -> SelectionSet decodesTo Github.Object.RefConnection -> SelectionSet (Maybe decodesTo) Github.Object.Repository refs fillInOptionals requiredArgs object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, direction = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "direction" filledInOptionals.direction (Encode.enum Github.Enum.OrderDirection.toString), Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeRefOrder ] |> List.filterMap identity in Object.selectionForCompositeField "refs" (optionalArgs ++ [ Argument.required "refPrefix" requiredArgs.refPrefix Encode.string ]) object_ (identity >> Decode.nullable) type alias ReleaseRequiredArguments = { tagName : String } {-| Lookup a single release given various criteria. - tagName - The name of the Tag the Release was created from -} release : ReleaseRequiredArguments -> SelectionSet decodesTo Github.Object.Release -> SelectionSet (Maybe decodesTo) Github.Object.Repository release requiredArgs object_ = Object.selectionForCompositeField "release" [ Argument.required "tagName" requiredArgs.tagName Encode.string ] object_ (identity >> Decode.nullable) type alias ReleasesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , orderBy : OptionalArgument Github.InputObject.ReleaseOrder } {-| List of releases which are dependent on this repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - orderBy - Order for connection -} releases : (ReleasesOptionalArguments -> ReleasesOptionalArguments) -> SelectionSet decodesTo Github.Object.ReleaseConnection -> SelectionSet decodesTo Github.Object.Repository releases fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeReleaseOrder ] |> List.filterMap identity in Object.selectionForCompositeField "releases" optionalArgs object_ identity type alias RepositoryTopicsOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of applied repository-topic associations for this repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} repositoryTopics : (RepositoryTopicsOptionalArguments -> RepositoryTopicsOptionalArguments) -> SelectionSet decodesTo Github.Object.RepositoryTopicConnection -> SelectionSet decodesTo Github.Object.Repository repositoryTopics fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "repositoryTopics" optionalArgs object_ identity {-| The HTTP path for this repository -} resourcePath : SelectionSet Github.ScalarCodecs.Uri Github.Object.Repository resourcePath = Object.selectionForField "ScalarCodecs.Uri" "resourcePath" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder) type alias ShortDescriptionHTMLOptionalArguments = { limit : OptionalArgument Int } {-| A description of the repository, rendered to HTML without any links in it. - limit - How many characters to return. -} shortDescriptionHTML : (ShortDescriptionHTMLOptionalArguments -> ShortDescriptionHTMLOptionalArguments) -> SelectionSet Github.ScalarCodecs.Html Github.Object.Repository shortDescriptionHTML fillInOptionals = let filledInOptionals = fillInOptionals { limit = Absent } optionalArgs = [ Argument.optional "limit" filledInOptionals.limit Encode.int ] |> List.filterMap identity in Object.selectionForField "ScalarCodecs.Html" "shortDescriptionHTML" optionalArgs (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecHtml |> .decoder) {-| The SSH URL to clone this repository -} sshUrl : SelectionSet Github.ScalarCodecs.GitSSHRemote Github.Object.Repository sshUrl = Object.selectionForField "ScalarCodecs.GitSSHRemote" "sshUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecGitSSHRemote |> .decoder) type alias StargazersOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String , orderBy : OptionalArgument Github.InputObject.StarOrder } {-| A list of users who have starred this starrable. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. - orderBy - Order for connection -} stargazers : (StargazersOptionalArguments -> StargazersOptionalArguments) -> SelectionSet decodesTo Github.Object.StargazerConnection -> SelectionSet decodesTo Github.Object.Repository stargazers fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent, orderBy = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string, Argument.optional "orderBy" filledInOptionals.orderBy Github.InputObject.encodeStarOrder ] |> List.filterMap identity in Object.selectionForCompositeField "stargazers" optionalArgs object_ identity {-| Identifies the date and time when the object was last updated. -} updatedAt : SelectionSet Github.ScalarCodecs.DateTime Github.Object.Repository updatedAt = Object.selectionForField "ScalarCodecs.DateTime" "updatedAt" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecDateTime |> .decoder) {-| The HTTP URL for this repository -} url : SelectionSet Github.ScalarCodecs.Uri Github.Object.Repository url = Object.selectionForField "ScalarCodecs.Uri" "url" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder) {-| Indicates whether the viewer has admin permissions on this repository. -} viewerCanAdminister : SelectionSet Bool Github.Object.Repository viewerCanAdminister = Object.selectionForField "Bool" "viewerCanAdminister" [] Decode.bool {-| Can the current viewer create new projects on this owner. -} viewerCanCreateProjects : SelectionSet Bool Github.Object.Repository viewerCanCreateProjects = Object.selectionForField "Bool" "viewerCanCreateProjects" [] Decode.bool {-| Check if the viewer is able to change their subscription status for the repository. -} viewerCanSubscribe : SelectionSet Bool Github.Object.Repository viewerCanSubscribe = Object.selectionForField "Bool" "viewerCanSubscribe" [] Decode.bool {-| Indicates whether the viewer can update the topics of this repository. -} viewerCanUpdateTopics : SelectionSet Bool Github.Object.Repository viewerCanUpdateTopics = Object.selectionForField "Bool" "viewerCanUpdateTopics" [] Decode.bool {-| Returns a boolean indicating whether the viewing user has starred this starrable. -} viewerHasStarred : SelectionSet Bool Github.Object.Repository viewerHasStarred = Object.selectionForField "Bool" "viewerHasStarred" [] Decode.bool {-| The users permission level on the repository. Will return null if authenticated as an GitHub App. -} viewerPermission : SelectionSet (Maybe Github.Enum.RepositoryPermission.RepositoryPermission) Github.Object.Repository viewerPermission = Object.selectionForField "(Maybe Enum.RepositoryPermission.RepositoryPermission)" "viewerPermission" [] (Github.Enum.RepositoryPermission.decoder |> Decode.nullable) {-| Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. -} viewerSubscription : SelectionSet Github.Enum.SubscriptionState.SubscriptionState Github.Object.Repository viewerSubscription = Object.selectionForField "Enum.SubscriptionState.SubscriptionState" "viewerSubscription" [] Github.Enum.SubscriptionState.decoder type alias WatchersOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| A list of users watching the repository. - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} watchers : (WatchersOptionalArguments -> WatchersOptionalArguments) -> SelectionSet decodesTo Github.Object.UserConnection -> SelectionSet decodesTo Github.Object.Repository watchers fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "watchers" optionalArgs object_ identity