Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/schema/schema.graphql
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | type VisitEdge { | ||||
""" | """ | ||||
Visit object | Visit object | ||||
""" | """ | ||||
node: Visit | node: Visit | ||||
} | } | ||||
""" | """ | ||||
Possible visit status states | |||||
""" | |||||
anlambert: Some statuses are misssing, full list is: `"created", "ongoing", "full", "partial", "not_found"… | |||||
Done Inline Actionss/VistStatusState/VisitStatusState/ anlambert: s/VistStatusState/VisitStatusState/ | |||||
enum VisitStatusState { | |||||
created | |||||
ongoing | |||||
partial | |||||
full | |||||
not_found | |||||
failed | |||||
} | |||||
""" | |||||
An origin visit object | An origin visit object | ||||
""" | """ | ||||
type Visit implements Node { | type Visit implements Node { | ||||
""" | """ | ||||
Unique identifier | Unique identifier | ||||
""" | """ | ||||
id: ID! | id: ID! | ||||
Show All 10 Lines | type Visit implements Node { | ||||
""" | """ | ||||
Type of the origin visited. Eg: git/hg/svn/tar/deb | Type of the origin visited. Eg: git/hg/svn/tar/deb | ||||
""" | """ | ||||
type: String | type: String | ||||
""" | """ | ||||
Connection to all the status objects for the visit | Connection to all the status objects for the visit | ||||
""" | """ | ||||
status( | statuses( | ||||
""" | """ | ||||
Returns the first _n_ elements from the list | Returns the first _n_ elements from the list | ||||
""" | """ | ||||
first: Int | first: Int | ||||
""" | """ | ||||
Returns the page after this cursor | Returns the page after this cursor | ||||
""" | """ | ||||
after: String | after: String | ||||
): VisitStatusConnection | ): VisitStatusConnection | ||||
""" | """ | ||||
Latest status object for the Visit | Latest status object for the Visit | ||||
""" | """ | ||||
latestStatus: VisitStatus | latestStatus( | ||||
""" | |||||
Filter by status state | |||||
""" | |||||
allowedStatuses: [VisitStatusState] | |||||
""" | |||||
Filter by the availability of a snapshot in the status | |||||
""" | |||||
requireSnapshot: Boolean | |||||
): VisitStatus | |||||
} | } | ||||
""" | """ | ||||
Connection to visit status | Connection to visit status | ||||
""" | """ | ||||
type VisitStatusConnection { | type VisitStatusConnection { | ||||
""" | """ | ||||
List of visit status edges | List of visit status edges | ||||
Show All 33 Lines | |||||
""" | """ | ||||
A visit status object | A visit status object | ||||
""" | """ | ||||
type VisitStatus { | type VisitStatus { | ||||
""" | """ | ||||
Status string of the visit (either full, partial or ongoing) | Status string of the visit (either full, partial or ongoing) | ||||
""" | """ | ||||
status: String! | status: VisitStatusState! | ||||
""" | """ | ||||
ISO-8601 encoded date string | ISO-8601 encoded date string | ||||
""" | """ | ||||
date: DateTime! | date: DateTime! | ||||
""" | """ | ||||
Snapshot object | Snapshot object | ||||
▲ Show 20 Lines • Show All 785 Lines • Show Last 20 Lines |
Some statuses are misssing, full list is: "created", "ongoing", "full", "partial", "not_found", "failed"