diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index b30df0513d..abc8d4298c 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -7032,6 +7032,51 @@ type CreateProjectPayload { project: Project } +""" +Autogenerated input type of CreateProjectV2Field +""" +input CreateProjectV2FieldInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The data type of the field. + """ + dataType: ProjectV2CustomFieldType! + + """ + The name of the field. + """ + name: String! + + """ + The ID of the Project to create the field in. + """ + projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) + + """ + Options for a single select field. At least one value is required if data_type is SINGLE_SELECT + """ + singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!] +} + +""" +Autogenerated return type of CreateProjectV2Field +""" +type CreateProjectV2FieldPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The new field. + """ + projectV2Field: ProjectV2FieldConfiguration +} + """ Autogenerated input type of CreateProjectV2 """ @@ -8528,6 +8573,40 @@ type DeleteProjectPayload { owner: ProjectOwner } +""" +Autogenerated input type of DeleteProjectV2Field +""" +input DeleteProjectV2FieldInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The ID of the field to delete. + """ + fieldId: ID! + @possibleTypes( + concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] + abstractType: "ProjectV2FieldConfiguration" + ) +} + +""" +Autogenerated return type of DeleteProjectV2Field +""" +type DeleteProjectV2FieldPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The deleted field. + """ + projectV2Field: ProjectV2FieldConfiguration +} + """ Autogenerated input type of DeleteProjectV2 """ @@ -20537,6 +20616,16 @@ type Mutation { input: CreateProjectV2Input! ): CreateProjectV2Payload + """ + Create a new project field. + """ + createProjectV2Field( + """ + Parameters for CreateProjectV2Field + """ + input: CreateProjectV2FieldInput! + ): CreateProjectV2FieldPayload + """ Create a new pull request """ @@ -20777,6 +20866,16 @@ type Mutation { input: DeleteProjectV2Input! ): DeleteProjectV2Payload + """ + Delete a project field. + """ + deleteProjectV2Field( + """ + Parameters for DeleteProjectV2Field + """ + input: DeleteProjectV2FieldInput! + ): DeleteProjectV2FieldPayload + """ Deletes an item from a Project. """ @@ -29887,6 +29986,31 @@ type ProjectV2Connection { totalCount: Int! } +""" +The type of a project field. +""" +enum ProjectV2CustomFieldType { + """ + Date + """ + DATE + + """ + Number + """ + NUMBER + + """ + Single Select + """ + SINGLE_SELECT + + """ + Text + """ + TEXT +} + """ An edge in a connection. """ @@ -31196,6 +31320,71 @@ type ProjectV2SingleSelectFieldOption { nameHTML: String! } +""" +The display color of a single-select field option. +""" +enum ProjectV2SingleSelectFieldOptionColor { + """ + BLUE + """ + BLUE + + """ + GRAY + """ + GRAY + + """ + GREEN + """ + GREEN + + """ + ORANGE + """ + ORANGE + + """ + PINK + """ + PINK + + """ + PURPLE + """ + PURPLE + + """ + RED + """ + RED + + """ + YELLOW + """ + YELLOW +} + +""" +Represents a single select field option +""" +input ProjectV2SingleSelectFieldOptionInput { + """ + The display color of the option + """ + color: ProjectV2SingleSelectFieldOptionColor! + + """ + The description text of the option + """ + description: String! + + """ + The name of the option + """ + name: String! +} + """ Represents a sort by field and direction. """ diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index b30df0513d..abc8d4298c 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -7032,6 +7032,51 @@ type CreateProjectPayload { project: Project } +""" +Autogenerated input type of CreateProjectV2Field +""" +input CreateProjectV2FieldInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The data type of the field. + """ + dataType: ProjectV2CustomFieldType! + + """ + The name of the field. + """ + name: String! + + """ + The ID of the Project to create the field in. + """ + projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) + + """ + Options for a single select field. At least one value is required if data_type is SINGLE_SELECT + """ + singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!] +} + +""" +Autogenerated return type of CreateProjectV2Field +""" +type CreateProjectV2FieldPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The new field. + """ + projectV2Field: ProjectV2FieldConfiguration +} + """ Autogenerated input type of CreateProjectV2 """ @@ -8528,6 +8573,40 @@ type DeleteProjectPayload { owner: ProjectOwner } +""" +Autogenerated input type of DeleteProjectV2Field +""" +input DeleteProjectV2FieldInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The ID of the field to delete. + """ + fieldId: ID! + @possibleTypes( + concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] + abstractType: "ProjectV2FieldConfiguration" + ) +} + +""" +Autogenerated return type of DeleteProjectV2Field +""" +type DeleteProjectV2FieldPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The deleted field. + """ + projectV2Field: ProjectV2FieldConfiguration +} + """ Autogenerated input type of DeleteProjectV2 """ @@ -20537,6 +20616,16 @@ type Mutation { input: CreateProjectV2Input! ): CreateProjectV2Payload + """ + Create a new project field. + """ + createProjectV2Field( + """ + Parameters for CreateProjectV2Field + """ + input: CreateProjectV2FieldInput! + ): CreateProjectV2FieldPayload + """ Create a new pull request """ @@ -20777,6 +20866,16 @@ type Mutation { input: DeleteProjectV2Input! ): DeleteProjectV2Payload + """ + Delete a project field. + """ + deleteProjectV2Field( + """ + Parameters for DeleteProjectV2Field + """ + input: DeleteProjectV2FieldInput! + ): DeleteProjectV2FieldPayload + """ Deletes an item from a Project. """ @@ -29887,6 +29986,31 @@ type ProjectV2Connection { totalCount: Int! } +""" +The type of a project field. +""" +enum ProjectV2CustomFieldType { + """ + Date + """ + DATE + + """ + Number + """ + NUMBER + + """ + Single Select + """ + SINGLE_SELECT + + """ + Text + """ + TEXT +} + """ An edge in a connection. """ @@ -31196,6 +31320,71 @@ type ProjectV2SingleSelectFieldOption { nameHTML: String! } +""" +The display color of a single-select field option. +""" +enum ProjectV2SingleSelectFieldOptionColor { + """ + BLUE + """ + BLUE + + """ + GRAY + """ + GRAY + + """ + GREEN + """ + GREEN + + """ + ORANGE + """ + ORANGE + + """ + PINK + """ + PINK + + """ + PURPLE + """ + PURPLE + + """ + RED + """ + RED + + """ + YELLOW + """ + YELLOW +} + +""" +Represents a single select field option +""" +input ProjectV2SingleSelectFieldOptionInput { + """ + The display color of the option + """ + color: ProjectV2SingleSelectFieldOptionColor! + + """ + The description text of the option + """ + description: String! + + """ + The name of the option + """ + name: String! +} + """ Represents a sort by field and direction. """ diff --git a/src/graphql/data/dotcom/changelog.json b/src/graphql/data/dotcom/changelog.json index 94540c723d..0ea5b2d468 100644 --- a/src/graphql/data/dotcom/changelog.json +++ b/src/graphql/data/dotcom/changelog.json @@ -1,4 +1,25 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "
Type 'CreateProjectV2FieldInput' was added
", + "Type 'CreateProjectV2FieldPayload' was added
", + "Type 'DeleteProjectV2FieldInput' was added
", + "Type 'DeleteProjectV2FieldPayload' was added
", + "Type 'ProjectV2CustomFieldType' was added
", + "Type 'ProjectV2SingleSelectFieldOptionColor' was added
", + "Type 'ProjectV2SingleSelectFieldOptionInput' was added
", + "Field 'createProjectV2Fieldwas added to object typeMutation'
Field 'deleteProjectV2Fieldwas added to object typeMutation'
Create a new project field.
", + "inputFields": [ + { + "name": "input", + "type": "CreateProjectV2FieldInput!", + "id": "createprojectv2fieldinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#createprojectv2fieldinput" + } + ], + "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": "projectV2Field", + "type": "ProjectV2FieldConfiguration", + "id": "projectv2fieldconfiguration", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2fieldconfiguration", + "description": "The new field.
" + } + ] + }, { "name": "createPullRequest", "kind": "mutations", @@ -3692,6 +3726,40 @@ } ] }, + { + "name": "deleteProjectV2Field", + "kind": "mutations", + "id": "deleteprojectv2field", + "href": "/graphql/reference/mutations#deleteprojectv2field", + "description": "Delete a project field.
", + "inputFields": [ + { + "name": "input", + "type": "DeleteProjectV2FieldInput!", + "id": "deleteprojectv2fieldinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#deleteprojectv2fieldinput" + } + ], + "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": "projectV2Field", + "type": "ProjectV2FieldConfiguration", + "id": "projectv2fieldconfiguration", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2fieldconfiguration", + "description": "The deleted field.
" + } + ] + }, { "name": "deleteProjectV2Item", "kind": "mutations", @@ -77219,6 +77287,31 @@ } ] }, + { + "name": "ProjectV2CustomFieldType", + "kind": "enums", + "id": "projectv2customfieldtype", + "href": "/graphql/reference/enums#projectv2customfieldtype", + "description": "The type of a project field.
", + "values": [ + { + "name": "DATE", + "description": "Date.
" + }, + { + "name": "NUMBER", + "description": "Number.
" + }, + { + "name": "SINGLE_SELECT", + "description": "Single Select.
" + }, + { + "name": "TEXT", + "description": "Text.
" + } + ] + }, { "name": "ProjectV2FieldOrderField", "kind": "enums", @@ -77381,6 +77474,47 @@ } ] }, + { + "name": "ProjectV2SingleSelectFieldOptionColor", + "kind": "enums", + "id": "projectv2singleselectfieldoptioncolor", + "href": "/graphql/reference/enums#projectv2singleselectfieldoptioncolor", + "description": "The display color of a single-select field option.
", + "values": [ + { + "name": "BLUE", + "description": "BLUE.
" + }, + { + "name": "GRAY", + "description": "GRAY.
" + }, + { + "name": "GREEN", + "description": "GREEN.
" + }, + { + "name": "ORANGE", + "description": "ORANGE.
" + }, + { + "name": "PINK", + "description": "PINK.
" + }, + { + "name": "PURPLE", + "description": "PURPLE.
" + }, + { + "name": "RED", + "description": "RED.
" + }, + { + "name": "YELLOW", + "description": "YELLOW.
" + } + ] + }, { "name": "ProjectV2State", "kind": "enums", @@ -85306,6 +85440,56 @@ } ] }, + { + "name": "CreateProjectV2FieldInput", + "kind": "inputObjects", + "id": "createprojectv2fieldinput", + "href": "/graphql/reference/input-objects#createprojectv2fieldinput", + "description": "Autogenerated input type of CreateProjectV2Field.
", + "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": "dataType", + "description": "The data type of the field.
", + "type": "ProjectV2CustomFieldType!", + "id": "projectv2customfieldtype", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2customfieldtype" + }, + { + "name": "name", + "description": "The name of the field.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "projectId", + "description": "The ID of the Project to create the field in.
", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "singleSelectOptions", + "description": "Options for a single select field. At least one value is required if data_type is SINGLE_SELECT.
", + "type": "[ProjectV2SingleSelectFieldOptionInput!]", + "id": "projectv2singleselectfieldoptioninput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#projectv2singleselectfieldoptioninput" + } + ] + }, { "name": "CreateProjectV2Input", "kind": "inputObjects", @@ -86344,6 +86528,32 @@ } ] }, + { + "name": "DeleteProjectV2FieldInput", + "kind": "inputObjects", + "id": "deleteprojectv2fieldinput", + "href": "/graphql/reference/input-objects#deleteprojectv2fieldinput", + "description": "Autogenerated input type of DeleteProjectV2Field.
", + "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": "fieldId", + "description": "The ID of the field to delete.
", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "DeleteProjectV2Input", "kind": "inputObjects", @@ -88473,6 +88683,39 @@ } ] }, + { + "name": "ProjectV2SingleSelectFieldOptionInput", + "kind": "inputObjects", + "id": "projectv2singleselectfieldoptioninput", + "href": "/graphql/reference/input-objects#projectv2singleselectfieldoptioninput", + "description": "Represents a single select field option.
", + "inputFields": [ + { + "name": "color", + "description": "The display color of the option.
", + "type": "ProjectV2SingleSelectFieldOptionColor!", + "id": "projectv2singleselectfieldoptioncolor", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2singleselectfieldoptioncolor" + }, + { + "name": "description", + "description": "The description text of the option.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "name", + "description": "The name of the option.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "ProjectV2ViewOrder", "kind": "inputObjects", diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index e1ad794c3f..a11a4ccac4 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -2870,6 +2870,40 @@ } ] }, + { + "name": "createProjectV2Field", + "kind": "mutations", + "id": "createprojectv2field", + "href": "/graphql/reference/mutations#createprojectv2field", + "description": "Create a new project field.
", + "inputFields": [ + { + "name": "input", + "type": "CreateProjectV2FieldInput!", + "id": "createprojectv2fieldinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#createprojectv2fieldinput" + } + ], + "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": "projectV2Field", + "type": "ProjectV2FieldConfiguration", + "id": "projectv2fieldconfiguration", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2fieldconfiguration", + "description": "The new field.
" + } + ] + }, { "name": "createPullRequest", "kind": "mutations", @@ -3692,6 +3726,40 @@ } ] }, + { + "name": "deleteProjectV2Field", + "kind": "mutations", + "id": "deleteprojectv2field", + "href": "/graphql/reference/mutations#deleteprojectv2field", + "description": "Delete a project field.
", + "inputFields": [ + { + "name": "input", + "type": "DeleteProjectV2FieldInput!", + "id": "deleteprojectv2fieldinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#deleteprojectv2fieldinput" + } + ], + "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": "projectV2Field", + "type": "ProjectV2FieldConfiguration", + "id": "projectv2fieldconfiguration", + "kind": "unions", + "href": "/graphql/reference/unions#projectv2fieldconfiguration", + "description": "The deleted field.
" + } + ] + }, { "name": "deleteProjectV2Item", "kind": "mutations", @@ -77219,6 +77287,31 @@ } ] }, + { + "name": "ProjectV2CustomFieldType", + "kind": "enums", + "id": "projectv2customfieldtype", + "href": "/graphql/reference/enums#projectv2customfieldtype", + "description": "The type of a project field.
", + "values": [ + { + "name": "DATE", + "description": "Date.
" + }, + { + "name": "NUMBER", + "description": "Number.
" + }, + { + "name": "SINGLE_SELECT", + "description": "Single Select.
" + }, + { + "name": "TEXT", + "description": "Text.
" + } + ] + }, { "name": "ProjectV2FieldOrderField", "kind": "enums", @@ -77381,6 +77474,47 @@ } ] }, + { + "name": "ProjectV2SingleSelectFieldOptionColor", + "kind": "enums", + "id": "projectv2singleselectfieldoptioncolor", + "href": "/graphql/reference/enums#projectv2singleselectfieldoptioncolor", + "description": "The display color of a single-select field option.
", + "values": [ + { + "name": "BLUE", + "description": "BLUE.
" + }, + { + "name": "GRAY", + "description": "GRAY.
" + }, + { + "name": "GREEN", + "description": "GREEN.
" + }, + { + "name": "ORANGE", + "description": "ORANGE.
" + }, + { + "name": "PINK", + "description": "PINK.
" + }, + { + "name": "PURPLE", + "description": "PURPLE.
" + }, + { + "name": "RED", + "description": "RED.
" + }, + { + "name": "YELLOW", + "description": "YELLOW.
" + } + ] + }, { "name": "ProjectV2State", "kind": "enums", @@ -85306,6 +85440,56 @@ } ] }, + { + "name": "CreateProjectV2FieldInput", + "kind": "inputObjects", + "id": "createprojectv2fieldinput", + "href": "/graphql/reference/input-objects#createprojectv2fieldinput", + "description": "Autogenerated input type of CreateProjectV2Field.
", + "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": "dataType", + "description": "The data type of the field.
", + "type": "ProjectV2CustomFieldType!", + "id": "projectv2customfieldtype", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2customfieldtype" + }, + { + "name": "name", + "description": "The name of the field.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "projectId", + "description": "The ID of the Project to create the field in.
", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + }, + { + "name": "singleSelectOptions", + "description": "Options for a single select field. At least one value is required if data_type is SINGLE_SELECT.
", + "type": "[ProjectV2SingleSelectFieldOptionInput!]", + "id": "projectv2singleselectfieldoptioninput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#projectv2singleselectfieldoptioninput" + } + ] + }, { "name": "CreateProjectV2Input", "kind": "inputObjects", @@ -86344,6 +86528,32 @@ } ] }, + { + "name": "DeleteProjectV2FieldInput", + "kind": "inputObjects", + "id": "deleteprojectv2fieldinput", + "href": "/graphql/reference/input-objects#deleteprojectv2fieldinput", + "description": "Autogenerated input type of DeleteProjectV2Field.
", + "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": "fieldId", + "description": "The ID of the field to delete.
", + "type": "ID!", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "DeleteProjectV2Input", "kind": "inputObjects", @@ -88473,6 +88683,39 @@ } ] }, + { + "name": "ProjectV2SingleSelectFieldOptionInput", + "kind": "inputObjects", + "id": "projectv2singleselectfieldoptioninput", + "href": "/graphql/reference/input-objects#projectv2singleselectfieldoptioninput", + "description": "Represents a single select field option.
", + "inputFields": [ + { + "name": "color", + "description": "The display color of the option.
", + "type": "ProjectV2SingleSelectFieldOptionColor!", + "id": "projectv2singleselectfieldoptioncolor", + "kind": "enums", + "href": "/graphql/reference/enums#projectv2singleselectfieldoptioncolor" + }, + { + "name": "description", + "description": "The description text of the option.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "name", + "description": "The name of the option.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + ] + }, { "name": "ProjectV2ViewOrder", "kind": "inputObjects",