diff options
Diffstat (limited to 'doc/api/graphql')
-rw-r--r-- | doc/api/graphql/reference/gitlab_schema.graphql | 116 | ||||
-rw-r--r-- | doc/api/graphql/reference/gitlab_schema.json | 640 | ||||
-rw-r--r-- | doc/api/graphql/reference/index.md | 5 |
3 files changed, 545 insertions, 216 deletions
diff --git a/doc/api/graphql/reference/gitlab_schema.graphql b/doc/api/graphql/reference/gitlab_schema.graphql index 2c63ecfe08e..e04bb0fc13e 100644 --- a/doc/api/graphql/reference/gitlab_schema.graphql +++ b/doc/api/graphql/reference/gitlab_schema.graphql @@ -1735,8 +1735,8 @@ type Epic implements Noteable { before: String """ - List epics within a time frame where epics.end_date is between start_date - and end_date parameters (start_date parameter must be present) + List items within a time frame where items.end_date is between startDate and + endDate parameters (startDate parameter must be present) """ endDate: Time @@ -1776,8 +1776,8 @@ type Epic implements Noteable { sort: EpicSort """ - List epics within a time frame where epics.start_date is between start_date - and end_date parameters (end_date parameter must be present) + List items within a time frame where items.start_date is between startDate + and endDate parameters (endDate parameter must be present) """ startDate: Time @@ -2704,8 +2704,8 @@ type Group { authorUsername: String """ - List epics within a time frame where epics.end_date is between start_date - and end_date parameters (start_date parameter must be present) + List items within a time frame where items.end_date is between startDate and + endDate parameters (startDate parameter must be present) """ endDate: Time @@ -2735,8 +2735,8 @@ type Group { sort: EpicSort """ - List epics within a time frame where epics.start_date is between start_date - and end_date parameters (end_date parameter must be present) + List items within a time frame where items.start_date is between startDate + and endDate parameters (endDate parameter must be present) """ startDate: Time @@ -2766,8 +2766,8 @@ type Group { before: String """ - List epics within a time frame where epics.end_date is between start_date - and end_date parameters (start_date parameter must be present) + List items within a time frame where items.end_date is between startDate and + endDate parameters (startDate parameter must be present) """ endDate: Time @@ -2807,8 +2807,8 @@ type Group { sort: EpicSort """ - List epics within a time frame where epics.start_date is between start_date - and end_date parameters (end_date parameter must be present) + List items within a time frame where items.start_date is between startDate + and endDate parameters (endDate parameter must be present) """ startDate: Time @@ -2854,6 +2854,48 @@ type Group { mentionsDisabled: Boolean """ + Find milestones + """ + milestones( + """ + 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 + + """ + List items within a time frame where items.end_date is between startDate and + endDate parameters (startDate parameter must be present) + """ + endDate: Time + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + List items within a time frame where items.start_date is between startDate + and endDate parameters (endDate parameter must be present) + """ + startDate: Time + + """ + Filter milestones by state + """ + state: MilestoneStateEnum + ): MilestoneConnection + + """ Name of the namespace """ name: String! @@ -4457,6 +4499,9 @@ type Metadata { version: String! } +""" +Represents a milestone. +""" type Milestone { """ Timestamp of milestone creation @@ -4486,7 +4531,7 @@ type Milestone { """ State of the milestone """ - state: String! + state: MilestoneStateEnum! """ Title of the milestone @@ -4497,6 +4542,51 @@ type Milestone { Timestamp of last milestone update """ updatedAt: Time! + + """ + Web path of the milestone + """ + webPath: String! +} + +""" +The connection type for Milestone. +""" +type MilestoneConnection { + """ + A list of edges. + """ + edges: [MilestoneEdge] + + """ + A list of nodes. + """ + nodes: [Milestone] + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! +} + +""" +An edge in a connection. +""" +type MilestoneEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Milestone +} + +enum MilestoneStateEnum { + active + closed } """ diff --git a/doc/api/graphql/reference/gitlab_schema.json b/doc/api/graphql/reference/gitlab_schema.json index a35bf8caccf..92e421eb53c 100644 --- a/doc/api/graphql/reference/gitlab_schema.json +++ b/doc/api/graphql/reference/gitlab_schema.json @@ -3151,6 +3151,26 @@ "description": "Find a single epic", "args": [ { + "name": "startDate", + "description": "List items within a time frame where items.start_date is between startDate and endDate parameters (endDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "endDate", + "description": "List items within a time frame where items.end_date is between startDate and endDate parameters (startDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { "name": "iid", "description": "IID of the epic, e.g., \"1\"", "type": { @@ -3235,10 +3255,23 @@ } }, "defaultValue": null - }, + } + ], + "type": { + "kind": "OBJECT", + "name": "Epic", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "epics", + "description": "Find epics", + "args": [ { "name": "startDate", - "description": "List epics within a time frame where epics.start_date is between start_date and end_date parameters (end_date parameter must be present)", + "description": "List items within a time frame where items.start_date is between startDate and endDate parameters (endDate parameter must be present)", "type": { "kind": "SCALAR", "name": "Time", @@ -3248,27 +3281,14 @@ }, { "name": "endDate", - "description": "List epics within a time frame where epics.end_date is between start_date and end_date parameters (start_date parameter must be present)", + "description": "List items within a time frame where items.end_date is between startDate and endDate parameters (startDate parameter must be present)", "type": { "kind": "SCALAR", "name": "Time", "ofType": null }, "defaultValue": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Epic", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "epics", - "description": "Find epics", - "args": [ + }, { "name": "iid", "description": "IID of the epic, e.g., \"1\"", @@ -3356,26 +3376,6 @@ "defaultValue": null }, { - "name": "startDate", - "description": "List epics within a time frame where epics.start_date is between start_date and end_date parameters (end_date parameter must be present)", - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "endDate", - "description": "List epics within a time frame where epics.end_date is between start_date and end_date parameters (start_date parameter must be present)", - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "defaultValue": null - }, - { "name": "after", "description": "Returns the elements in the list that come after the specified cursor.", "type": { @@ -3535,6 +3535,89 @@ "deprecationReason": null }, { + "name": "milestones", + "description": "Find milestones", + "args": [ + { + "name": "startDate", + "description": "List items within a time frame where items.start_date is between startDate and endDate parameters (endDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "endDate", + "description": "List items within a time frame where items.end_date is between startDate and endDate parameters (startDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "state", + "description": "Filter milestones by state", + "type": { + "kind": "ENUM", + "name": "MilestoneStateEnum", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "MilestoneConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { "name": "name", "description": "Name of the namespace", "args": [ @@ -3925,6 +4008,304 @@ }, { "kind": "OBJECT", + "name": "MilestoneConnection", + "description": "The connection type for Milestone.", + "fields": [ + { + "name": "edges", + "description": "A list of edges.", + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MilestoneEdge", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nodes", + "description": "A list of nodes.", + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Milestone", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MilestoneEdge", + "description": "An edge in a connection.", + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination.", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": "The item at the end of the edge.", + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "Milestone", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Milestone", + "description": "Represents a milestone.", + "fields": [ + { + "name": "createdAt", + "description": "Timestamp of milestone creation", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": "Description of the milestone", + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "dueDate", + "description": "Timestamp of the milestone due date", + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "ID of the milestone", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "startDate", + "description": "Timestamp of the milestone start date", + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": "State of the milestone", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MilestoneStateEnum", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", + "description": "Title of the milestone", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt", + "description": "Timestamp of last milestone update", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "webPath", + "description": "Web path of the milestone", + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "MilestoneStateEnum", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "active", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "closed", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", "name": "Epic", "description": "Represents an epic.", "fields": [ @@ -3951,6 +4332,26 @@ "description": "Children (sub-epics) of the epic", "args": [ { + "name": "startDate", + "description": "List items within a time frame where items.start_date is between startDate and endDate parameters (endDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "endDate", + "description": "List items within a time frame where items.end_date is between startDate and endDate parameters (startDate parameter must be present)", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + }, + "defaultValue": null + }, + { "name": "iid", "description": "IID of the epic, e.g., \"1\"", "type": { @@ -4037,26 +4438,6 @@ "defaultValue": null }, { - "name": "startDate", - "description": "List epics within a time frame where epics.start_date is between start_date and end_date parameters (end_date parameter must be present)", - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "endDate", - "description": "List epics within a time frame where epics.end_date is between start_date and end_date parameters (start_date parameter must be present)", - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "defaultValue": null - }, - { "name": "after", "description": "Returns the elements in the list that come after the specified cursor.", "type": { @@ -9585,151 +9966,6 @@ }, { "kind": "OBJECT", - "name": "Milestone", - "description": null, - "fields": [ - { - "name": "createdAt", - "description": "Timestamp of milestone creation", - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "Description of the milestone", - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "dueDate", - "description": "Timestamp of the milestone due date", - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "ID of the milestone", - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startDate", - "description": "Timestamp of the milestone start date", - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "state", - "description": "State of the milestone", - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", - "description": "Title of the milestone", - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": "Timestamp of last milestone update", - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Time", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", "name": "TaskCompletionStatus", "description": "Completion status of tasks", "fields": [ diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md index a0d1787e816..00c610b9eb7 100644 --- a/doc/api/graphql/reference/index.md +++ b/doc/api/graphql/reference/index.md @@ -683,6 +683,8 @@ Autogenerated return type of MergeRequestSetWip ## Milestone +Represents a milestone. + | Name | Type | Description | | --- | ---- | ---------- | | `createdAt` | Time! | Timestamp of milestone creation | @@ -690,9 +692,10 @@ Autogenerated return type of MergeRequestSetWip | `dueDate` | Time | Timestamp of the milestone due date | | `id` | ID! | ID of the milestone | | `startDate` | Time | Timestamp of the milestone start date | -| `state` | String! | State of the milestone | +| `state` | MilestoneStateEnum! | State of the milestone | | `title` | String! | Title of the milestone | | `updatedAt` | Time! | Timestamp of last milestone update | +| `webPath` | String! | Web path of the milestone | ## Namespace |