From 60b24c6c033e430e2aadb5d1e53000a884ddb6a8 Mon Sep 17 00:00:00 2001 From: Create or Update Pull Request Action Date: Wed, 15 Dec 2021 21:14:08 +0000 Subject: [PATCH] WIP: github schema.graphql changed - please review --- example/github/schema.graphql | 249 ++++++++++++++++++++++++++++++++-- 1 file changed, 237 insertions(+), 12 deletions(-) diff --git a/example/github/schema.graphql b/example/github/schema.graphql index e5e1dfd65ed9d..28e70e4643e28 100644 --- a/example/github/schema.graphql +++ b/example/github/schema.graphql @@ -9849,6 +9849,11 @@ type Enterprise implements Node { The search string to look for. """ query: String + + """ + The viewer's role in an organization. + """ + viewerOrganizationRole: RoleInOrganization ): OrganizationConnection! """ @@ -14193,7 +14198,7 @@ union IpAllowListOwner = App | Enterprise | Organization """ An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. """ -type Issue implements Assignable & Closable & Comment & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { +type Issue implements Assignable & Closable & Comment & Labelable & Lockable & Node & ProjectNextOwner & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { """ Reason that the conversation was locked. """ @@ -14450,6 +14455,51 @@ type Issue implements Assignable & Closable & Comment & Labelable & Lockable & N last: Int ): ProjectCardConnection! + """ + Find a project by project (beta) number. + """ + projectNext( + """ + The project (beta) number. + """ + number: Int! + ): ProjectNext + + """ + A list of project (beta) items under the owner. + """ + projectsNext( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + A project (beta) to search for under the the owner. + """ + query: String + + """ + How to order the returned projects (beta). + """ + sortBy: ProjectNextOrderField = TITLE + ): ProjectNextConnection! + """ Identifies when the comment was published at. """ @@ -19268,6 +19318,16 @@ type Mutation { input: UpdateNotificationRestrictionSettingInput! ): UpdateNotificationRestrictionSettingPayload + """ + Sets whether private repository forks are enabled for an organization. + """ + updateOrganizationAllowPrivateRepositoryForkingSetting( + """ + Parameters for UpdateOrganizationAllowPrivateRepositoryForkingSetting + """ + input: UpdateOrganizationAllowPrivateRepositoryForkingSettingInput! + ): UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload + """ Updates an existing project. """ @@ -22982,6 +23042,11 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} ): UserStatusConnection! + """ + Members can fork private repositories in this organization + """ + membersCanForkPrivateRepositories: Boolean! + """ A list of users who are members of this organization. """ @@ -23183,11 +23248,11 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr ): Project """ - Find project by project next number. + Find a project by project (beta) number. """ projectNext( """ - The project next number. + The project (beta) number. """ number: Int! ): ProjectNext @@ -23233,7 +23298,7 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr ): ProjectConnection! """ - A list of project next items under the owner. + A list of project (beta) items under the owner. """ projectsNext( """ @@ -23255,6 +23320,16 @@ type Organization implements Actor & MemberStatusable & Node & PackageOwner & Pr Returns the last _n_ elements from the list. """ last: Int + + """ + A project (beta) to search for under the the owner. + """ + query: String + + """ + How to order the returned projects (beta). + """ + sortBy: ProjectNextOrderField = TITLE ): ProjectNextConnection! """ @@ -26642,23 +26717,48 @@ type ProjectNextItemFieldValueEdge { } """ -Represents an owner of a Project. +Properties by which the return project can be ordered. +""" +enum ProjectNextOrderField { + """ + The project's date and time of creation + """ + CREATED_AT + + """ + The project's number + """ + NUMBER + + """ + The project's title + """ + TITLE + + """ + The project's date and time of update + """ + UPDATED_AT +} + +""" +Represents an owner of a project (beta). """ interface ProjectNextOwner { id: ID! """ - Find project by project next number. + Find a project by project (beta) number. """ projectNext( """ - The project next number. + The project (beta) number. """ number: Int! ): ProjectNext """ - A list of project next items under the owner. + A list of project (beta) items under the owner. """ projectsNext( """ @@ -26680,6 +26780,16 @@ interface ProjectNextOwner { Returns the last _n_ elements from the list. """ last: Int + + """ + A project (beta) to search for under the the owner. + """ + query: String + + """ + How to order the returned projects (beta). + """ + sortBy: ProjectNextOrderField = TITLE ): ProjectNextConnection! } @@ -26952,7 +27062,7 @@ type PublicKeyEdge { """ A repository pull request. """ -type PullRequest implements Assignable & Closable & Comment & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { +type PullRequest implements Assignable & Closable & Comment & Labelable & Lockable & Node & ProjectNextOwner & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { """ Reason that the conversation was locked. """ @@ -27467,6 +27577,51 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab last: Int ): ProjectCardConnection! + """ + Find a project by project (beta) number. + """ + projectNext( + """ + The project (beta) number. + """ + number: Int! + ): ProjectNext + + """ + A list of project (beta) items under the owner. + """ + projectsNext( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + A project (beta) to search for under the the owner. + """ + query: String + + """ + How to order the returned projects (beta). + """ + sortBy: ProjectNextOrderField = TITLE + ): ProjectNextConnection! + """ Identifies when the comment was published at. """ @@ -37390,6 +37545,26 @@ type ReviewStatusHovercardContext implements HovercardContext { reviewDecision: PullRequestReviewDecision } +""" +Possible roles a user may have in relation to an organization. +""" +enum RoleInOrganization { + """ + A user who is a direct member of the organization. + """ + DIRECT_MEMBER + + """ + A user with full administrative access to the organization. + """ + OWNER + + """ + A user who is unaffiliated with the organization. + """ + UNAFFILIATED +} + """ The possible digest algorithms used to sign SAML requests for an identity provider. """ @@ -44346,6 +44521,46 @@ type UpdateNotificationRestrictionSettingPayload { owner: VerifiableDomainOwner } +""" +Autogenerated input type of UpdateOrganizationAllowPrivateRepositoryForkingSetting +""" +input UpdateOrganizationAllowPrivateRepositoryForkingSettingInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Enable forking of private repositories in the organization? + """ + forkingEnabled: Boolean! + + """ + The ID of the organization on which to set the allow private repository forking setting. + """ + organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) +} + +""" +Autogenerated return type of UpdateOrganizationAllowPrivateRepositoryForkingSetting +""" +type UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + A message confirming the result of updating the allow private repository forking setting. + """ + message: String + + """ + The organization with the updated allow private repository forking setting. + """ + organization: Organization +} + """ Autogenerated input type of UpdateProjectCard """ @@ -45710,11 +45925,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectNextOwn ): Project """ - Find project by project next number. + Find a project by project (beta) number. """ projectNext( """ - The project next number. + The project (beta) number. """ number: Int! ): ProjectNext @@ -45760,7 +45975,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectNextOwn ): ProjectConnection! """ - A list of project next items under the owner. + A list of project (beta) items under the owner. """ projectsNext( """ @@ -45782,6 +45997,16 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectNextOwn Returns the last _n_ elements from the list. """ last: Int + + """ + A project (beta) to search for under the the owner. + """ + query: String + + """ + How to order the returned projects (beta). + """ + sortBy: ProjectNextOrderField = TITLE ): ProjectNextConnection! """