From 95708926f37aa3c1b63a00ac5ad9f34c669ea615 Mon Sep 17 00:00:00 2001 From: Octomerger Bot <63058869+Octomerger@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:36:56 -0400 Subject: [PATCH] GraphQL schema update (#37962) Co-authored-by: rachmari --- data/graphql/ghec/schema.docs.graphql | 155 +++++++++++++++++++ data/graphql/schema.docs.graphql | 155 +++++++++++++++++++ src/graphql/data/fpt/changelog.json | 20 +++ src/graphql/data/fpt/schema.json | 213 ++++++++++++++++++++++++++ src/graphql/data/ghec/schema.json | 213 ++++++++++++++++++++++++++ 5 files changed, 756 insertions(+) diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 55f3bcd4f1..8c74b6f2e5 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -23267,6 +23267,16 @@ type Mutation { input: UpdateProjectV2Input! ): UpdateProjectV2Payload + """ + Update the collaborators on a team or a project + """ + updateProjectV2Collaborators( + """ + Parameters for UpdateProjectV2Collaborators + """ + input: UpdateProjectV2CollaboratorsInput! + ): UpdateProjectV2CollaboratorsPayload + """ Updates a draft issue within a Project. """ @@ -31330,6 +31340,71 @@ type ProjectV2 implements Closable & Node & Updatable { ): ProjectV2WorkflowConnection! } +""" +Possible collaborators for a project. +""" +union ProjectV2Actor = Team | User + +""" +The connection type for ProjectV2Actor. +""" +type ProjectV2ActorConnection { + """ + A list of edges. + """ + edges: [ProjectV2ActorEdge] + + """ + A list of nodes. + """ + nodes: [ProjectV2Actor] + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type ProjectV2ActorEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ProjectV2Actor +} + +""" +A collaborator to update on a project. Only one of the userId or teamId should be provided. +""" +input ProjectV2Collaborator { + """ + The role to grant the collaborator + """ + role: ProjectV2Roles! + + """ + The ID of the team as a collaborator. + """ + teamId: ID @possibleTypes(concreteTypes: ["Team"]) + + """ + The ID of the user as a collaborator. + """ + userId: ID @possibleTypes(concreteTypes: ["User"]) +} + """ The connection type for ProjectV2. """ @@ -32628,6 +32703,31 @@ interface ProjectV2Recent { ): ProjectV2Connection! } +""" +The possible roles of a collaborator on a project. +""" +enum ProjectV2Roles { + """ + The collaborator can view, edit, and maange the settings of the project + """ + ADMIN + + """ + The collaborator has no direct access to the project + """ + NONE + + """ + The collaborator can view the project + """ + READER + + """ + The collaborator can view and edit the project + """ + WRITER +} + """ A single select field inside a project. """ @@ -55443,6 +55543,61 @@ type UpdateProjectPayload { project: Project } +""" +Autogenerated input type of UpdateProjectV2Collaborators +""" +input UpdateProjectV2CollaboratorsInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The collaborators to update. + """ + collaborators: [ProjectV2Collaborator!]! + + """ + The ID of the project to update the collaborators for. + """ + projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) +} + +""" +Autogenerated return type of UpdateProjectV2Collaborators +""" +type UpdateProjectV2CollaboratorsPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The collaborators granted a role + """ + collaborators( + """ + 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 + ): ProjectV2ActorConnection +} + """ Autogenerated input type of UpdateProjectV2DraftIssue """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 55f3bcd4f1..8c74b6f2e5 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -23267,6 +23267,16 @@ type Mutation { input: UpdateProjectV2Input! ): UpdateProjectV2Payload + """ + Update the collaborators on a team or a project + """ + updateProjectV2Collaborators( + """ + Parameters for UpdateProjectV2Collaborators + """ + input: UpdateProjectV2CollaboratorsInput! + ): UpdateProjectV2CollaboratorsPayload + """ Updates a draft issue within a Project. """ @@ -31330,6 +31340,71 @@ type ProjectV2 implements Closable & Node & Updatable { ): ProjectV2WorkflowConnection! } +""" +Possible collaborators for a project. +""" +union ProjectV2Actor = Team | User + +""" +The connection type for ProjectV2Actor. +""" +type ProjectV2ActorConnection { + """ + A list of edges. + """ + edges: [ProjectV2ActorEdge] + + """ + A list of nodes. + """ + nodes: [ProjectV2Actor] + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type ProjectV2ActorEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: ProjectV2Actor +} + +""" +A collaborator to update on a project. Only one of the userId or teamId should be provided. +""" +input ProjectV2Collaborator { + """ + The role to grant the collaborator + """ + role: ProjectV2Roles! + + """ + The ID of the team as a collaborator. + """ + teamId: ID @possibleTypes(concreteTypes: ["Team"]) + + """ + The ID of the user as a collaborator. + """ + userId: ID @possibleTypes(concreteTypes: ["User"]) +} + """ The connection type for ProjectV2. """ @@ -32628,6 +32703,31 @@ interface ProjectV2Recent { ): ProjectV2Connection! } +""" +The possible roles of a collaborator on a project. +""" +enum ProjectV2Roles { + """ + The collaborator can view, edit, and maange the settings of the project + """ + ADMIN + + """ + The collaborator has no direct access to the project + """ + NONE + + """ + The collaborator can view the project + """ + READER + + """ + The collaborator can view and edit the project + """ + WRITER +} + """ A single select field inside a project. """ @@ -55443,6 +55543,61 @@ type UpdateProjectPayload { project: Project } +""" +Autogenerated input type of UpdateProjectV2Collaborators +""" +input UpdateProjectV2CollaboratorsInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The collaborators to update. + """ + collaborators: [ProjectV2Collaborator!]! + + """ + The ID of the project to update the collaborators for. + """ + projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) +} + +""" +Autogenerated return type of UpdateProjectV2Collaborators +""" +type UpdateProjectV2CollaboratorsPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The collaborators granted a role + """ + collaborators( + """ + 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 + ): ProjectV2ActorConnection +} + """ Autogenerated input type of UpdateProjectV2DraftIssue """ diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index cc9a137222..4dddd96e57 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,24 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Type 'ProjectV2Actor' was added

", + "

Type 'ProjectV2ActorConnection' was added

", + "

Type 'ProjectV2ActorEdge' was added

", + "

Type 'ProjectV2Collaborator' was added

", + "

Type 'ProjectV2Roles' was added

", + "

Type 'UpdateProjectV2CollaboratorsInput' was added

", + "

Type 'UpdateProjectV2CollaboratorsPayload' was added

", + "

Field 'updateProjectV2Collaboratorswas added to object typeMutation'

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2023-06-16" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema.json b/src/graphql/data/fpt/schema.json index d6a94a27b2..74d24cc827 100644 --- a/src/graphql/data/fpt/schema.json +++ b/src/graphql/data/fpt/schema.json @@ -8244,6 +8244,40 @@ } ] }, + { + "name": "updateProjectV2Collaborators", + "kind": "mutations", + "id": "updateprojectv2collaborators", + "href": "/graphql/reference/mutations#updateprojectv2collaborators", + "description": "

Update the collaborators on a team or a project.

", + "inputFields": [ + { + "name": "input", + "type": "UpdateProjectV2CollaboratorsInput!", + "id": "updateprojectv2collaboratorsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#updateprojectv2collaboratorsinput" + } + ], + "returnFields": [ + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string", + "description": "

A unique identifier for the client performing the mutation.

" + }, + { + "name": "collaborators", + "type": "ProjectV2ActorConnection", + "id": "projectv2actorconnection", + "kind": "objects", + "href": "/graphql/reference/objects#projectv2actorconnection", + "description": "

The collaborators granted a role.

" + } + ] + }, { "name": "updateProjectV2DraftIssue", "kind": "mutations", @@ -43683,6 +43717,72 @@ } ] }, + { + "name": "ProjectV2ActorConnection", + "kind": "objects", + "id": "projectv2actorconnection", + "href": "/graphql/reference/objects#projectv2actorconnection", + "description": "

The connection type for ProjectV2Actor.

", + "fields": [ + { + "name": "edges", + "description": "

A list of edges.

", + "type": "[ProjectV2ActorEdge]", + "id": "projectv2actoredge", + "kind": "objects", + "href": "/graphql/reference/objects#projectv2actoredge" + }, + { + "name": "nodes", + "description": "

A list of nodes.

", + "type": "[ProjectV2Actor]", + "id": "projectv2actor", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2actor" + }, + { + "name": "pageInfo", + "description": "

Information to aid in pagination.

", + "type": "PageInfo!", + "id": "pageinfo", + "kind": "objects", + "href": "/graphql/reference/objects#pageinfo" + }, + { + "name": "totalCount", + "description": "

Identifies the total count of items in the connection.

", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + ] + }, + { + "name": "ProjectV2ActorEdge", + "kind": "objects", + "id": "projectv2actoredge", + "href": "/graphql/reference/objects#projectv2actoredge", + "description": "

An edge in a connection.

", + "fields": [ + { + "name": "cursor", + "description": "

A cursor for use in pagination.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "node", + "description": "

The item at the end of the edge.

", + "type": "ProjectV2Actor", + "id": "projectv2actor", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2actor" + } + ] + }, { "name": "ProjectV2Connection", "kind": "objects", @@ -80409,6 +80509,31 @@ } ] }, + { + "name": "ProjectV2Roles", + "kind": "enums", + "id": "projectv2roles", + "href": "/graphql/reference/enums#projectv2roles", + "description": "

The possible roles of a collaborator on a project.

", + "values": [ + { + "name": "ADMIN", + "description": "

The collaborator can view, edit, and maange the settings of the project.

" + }, + { + "name": "NONE", + "description": "

The collaborator has no direct access to the project.

" + }, + { + "name": "READER", + "description": "

The collaborator can view the project.

" + }, + { + "name": "WRITER", + "description": "

The collaborator can view and edit the project.

" + } + ] + }, { "name": "ProjectV2SingleSelectFieldOptionColor", "kind": "enums", @@ -84639,6 +84764,25 @@ } ] }, + { + "name": "ProjectV2Actor", + "kind": "unions", + "id": "projectv2actor", + "href": "/graphql/reference/unions#projectv2actor", + "description": "

Possible collaborators for a project.

", + "possibleTypes": [ + { + "name": "Team", + "id": "team", + "href": "/graphql/reference/objects#team" + }, + { + "name": "User", + "id": "user", + "href": "/graphql/reference/objects#user" + } + ] + }, { "name": "ProjectV2FieldConfiguration", "kind": "unions", @@ -92347,6 +92491,41 @@ } ] }, + { + "name": "ProjectV2Collaborator", + "kind": "inputObjects", + "id": "projectv2collaborator", + "href": "/graphql/reference/input-objects#projectv2collaborator", + "description": "

A collaborator to update on a project. Only one of the userId or teamId should be provided.

", + "inputFields": [ + { + "name": "role", + "description": "

The role to grant the collaborator.

", + "type": "ProjectV2Roles!", + "id": "projectv2roles", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2roles" + }, + { + "name": "teamId", + "description": "

The ID of the team as a collaborator.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "userId", + "description": "

The ID of the user as a collaborator.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "ProjectV2FieldOrder", "kind": "inputObjects", @@ -97080,6 +97259,40 @@ } ] }, + { + "name": "UpdateProjectV2CollaboratorsInput", + "kind": "inputObjects", + "id": "updateprojectv2collaboratorsinput", + "href": "/graphql/reference/input-objects#updateprojectv2collaboratorsinput", + "description": "

Autogenerated input type of UpdateProjectV2Collaborators.

", + "inputFields": [ + { + "name": "clientMutationId", + "description": "

A unique identifier for the client performing the mutation.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "collaborators", + "description": "

The collaborators to update.

", + "type": "[ProjectV2Collaborator!]!", + "id": "projectv2collaborator", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#projectv2collaborator" + }, + { + "name": "projectId", + "description": "

The ID of the project to update the collaborators for.

", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "UpdateProjectV2DraftIssueInput", "kind": "inputObjects", diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index d6a94a27b2..74d24cc827 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -8244,6 +8244,40 @@ } ] }, + { + "name": "updateProjectV2Collaborators", + "kind": "mutations", + "id": "updateprojectv2collaborators", + "href": "/graphql/reference/mutations#updateprojectv2collaborators", + "description": "

Update the collaborators on a team or a project.

", + "inputFields": [ + { + "name": "input", + "type": "UpdateProjectV2CollaboratorsInput!", + "id": "updateprojectv2collaboratorsinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#updateprojectv2collaboratorsinput" + } + ], + "returnFields": [ + { + "name": "clientMutationId", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string", + "description": "

A unique identifier for the client performing the mutation.

" + }, + { + "name": "collaborators", + "type": "ProjectV2ActorConnection", + "id": "projectv2actorconnection", + "kind": "objects", + "href": "/graphql/reference/objects#projectv2actorconnection", + "description": "

The collaborators granted a role.

" + } + ] + }, { "name": "updateProjectV2DraftIssue", "kind": "mutations", @@ -43683,6 +43717,72 @@ } ] }, + { + "name": "ProjectV2ActorConnection", + "kind": "objects", + "id": "projectv2actorconnection", + "href": "/graphql/reference/objects#projectv2actorconnection", + "description": "

The connection type for ProjectV2Actor.

", + "fields": [ + { + "name": "edges", + "description": "

A list of edges.

", + "type": "[ProjectV2ActorEdge]", + "id": "projectv2actoredge", + "kind": "objects", + "href": "/graphql/reference/objects#projectv2actoredge" + }, + { + "name": "nodes", + "description": "

A list of nodes.

", + "type": "[ProjectV2Actor]", + "id": "projectv2actor", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2actor" + }, + { + "name": "pageInfo", + "description": "

Information to aid in pagination.

", + "type": "PageInfo!", + "id": "pageinfo", + "kind": "objects", + "href": "/graphql/reference/objects#pageinfo" + }, + { + "name": "totalCount", + "description": "

Identifies the total count of items in the connection.

", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + ] + }, + { + "name": "ProjectV2ActorEdge", + "kind": "objects", + "id": "projectv2actoredge", + "href": "/graphql/reference/objects#projectv2actoredge", + "description": "

An edge in a connection.

", + "fields": [ + { + "name": "cursor", + "description": "

A cursor for use in pagination.

", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "node", + "description": "

The item at the end of the edge.

", + "type": "ProjectV2Actor", + "id": "projectv2actor", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2actor" + } + ] + }, { "name": "ProjectV2Connection", "kind": "objects", @@ -80409,6 +80509,31 @@ } ] }, + { + "name": "ProjectV2Roles", + "kind": "enums", + "id": "projectv2roles", + "href": "/graphql/reference/enums#projectv2roles", + "description": "

The possible roles of a collaborator on a project.

", + "values": [ + { + "name": "ADMIN", + "description": "

The collaborator can view, edit, and maange the settings of the project.

" + }, + { + "name": "NONE", + "description": "

The collaborator has no direct access to the project.

" + }, + { + "name": "READER", + "description": "

The collaborator can view the project.

" + }, + { + "name": "WRITER", + "description": "

The collaborator can view and edit the project.

" + } + ] + }, { "name": "ProjectV2SingleSelectFieldOptionColor", "kind": "enums", @@ -84639,6 +84764,25 @@ } ] }, + { + "name": "ProjectV2Actor", + "kind": "unions", + "id": "projectv2actor", + "href": "/graphql/reference/unions#projectv2actor", + "description": "

Possible collaborators for a project.

", + "possibleTypes": [ + { + "name": "Team", + "id": "team", + "href": "/graphql/reference/objects#team" + }, + { + "name": "User", + "id": "user", + "href": "/graphql/reference/objects#user" + } + ] + }, { "name": "ProjectV2FieldConfiguration", "kind": "unions", @@ -92347,6 +92491,41 @@ } ] }, + { + "name": "ProjectV2Collaborator", + "kind": "inputObjects", + "id": "projectv2collaborator", + "href": "/graphql/reference/input-objects#projectv2collaborator", + "description": "

A collaborator to update on a project. Only one of the userId or teamId should be provided.

", + "inputFields": [ + { + "name": "role", + "description": "

The role to grant the collaborator.

", + "type": "ProjectV2Roles!", + "id": "projectv2roles", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2roles" + }, + { + "name": "teamId", + "description": "

The ID of the team as a collaborator.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "userId", + "description": "

The ID of the user as a collaborator.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "ProjectV2FieldOrder", "kind": "inputObjects", @@ -97080,6 +97259,40 @@ } ] }, + { + "name": "UpdateProjectV2CollaboratorsInput", + "kind": "inputObjects", + "id": "updateprojectv2collaboratorsinput", + "href": "/graphql/reference/input-objects#updateprojectv2collaboratorsinput", + "description": "

Autogenerated input type of UpdateProjectV2Collaborators.

", + "inputFields": [ + { + "name": "clientMutationId", + "description": "

A unique identifier for the client performing the mutation.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "collaborators", + "description": "

The collaborators to update.

", + "type": "[ProjectV2Collaborator!]!", + "id": "projectv2collaborator", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#projectv2collaborator" + }, + { + "name": "projectId", + "description": "

The ID of the project to update the collaborators for.

", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "UpdateProjectV2DraftIssueInput", "kind": "inputObjects",