Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/schema/schema.graphql
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | visits( | ||||
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 | ||||
): VisitConnection! | ): VisitConnection! @cost(complexity: 2) | ||||
""" | """ | ||||
Latest visit object for the origin | Latest visit object for the origin | ||||
""" | """ | ||||
latestVisit: Visit | latestVisit: Visit @cost(complexity: 1) | ||||
""" | """ | ||||
Connection to all the snapshots for the origin | Connection to all the snapshots for the origin | ||||
""" | """ | ||||
snapshots( | snapshots( | ||||
""" | """ | ||||
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 | ||||
): SnapshotConnection | ): SnapshotConnection @cost(complexity: 2) | ||||
} | } | ||||
""" | """ | ||||
Connection to origin visits | Connection to origin visits | ||||
""" | """ | ||||
type VisitConnection { | type VisitConnection { | ||||
""" | """ | ||||
List of visit edges | List of visit edges | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | status( | ||||
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 @cost(complexity: 2) | ||||
""" | """ | ||||
Latest status object for the Visit | Latest status object for the Visit | ||||
""" | """ | ||||
latestStatus: VisitStatus | latestStatus: VisitStatus @cost(complexity: 1) | ||||
} | } | ||||
""" | """ | ||||
Connection to visit status | Connection to visit status | ||||
""" | """ | ||||
type VisitStatusConnection { | type VisitStatusConnection { | ||||
""" | """ | ||||
List of visit status edges | List of visit status edges | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | type VisitStatus { | ||||
""" | """ | ||||
ISO-8601 encoded date string | ISO-8601 encoded date string | ||||
""" | """ | ||||
date: DateTime! | date: DateTime! | ||||
""" | """ | ||||
Snapshot object | Snapshot object | ||||
""" | """ | ||||
snapshot: Snapshot | snapshot: Snapshot @cost(complexity: 1) | ||||
""" | """ | ||||
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 | ||||
} | } | ||||
""" | """ | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | branches( | ||||
Filter by branch target types | Filter by branch target types | ||||
""" | """ | ||||
types: [BranchTargetType] | types: [BranchTargetType] | ||||
""" | """ | ||||
Filter by branch name | Filter by branch name | ||||
""" | """ | ||||
nameInclude: String | nameInclude: String | ||||
): BranchConnection | ): BranchConnection @cost(complexity: 2) | ||||
} | } | ||||
""" | """ | ||||
Connection to snapshot branches | Connection to snapshot branches | ||||
""" | """ | ||||
type BranchConnection { | type BranchConnection { | ||||
""" | """ | ||||
List of branch edges | List of branch edges | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | type Branch { | ||||
""" | """ | ||||
Type of Branch target | Type of Branch target | ||||
""" | """ | ||||
type: BranchTargetType | type: BranchTargetType | ||||
""" | """ | ||||
Branch target object | Branch target object | ||||
""" | """ | ||||
target: BranchTarget | target: BranchTarget @cost(complexity: 1) | ||||
} | } | ||||
""" | """ | ||||
Connection to revisions | Connection to revisions | ||||
""" | """ | ||||
type RevisionConnection { | type RevisionConnection { | ||||
""" | """ | ||||
List of revision edges | List of revision edges | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | type Revision implements MerkleNode & Node { | ||||
""" | """ | ||||
Type of the revision, eg: git/hg | Type of the revision, eg: git/hg | ||||
""" | """ | ||||
type: String | type: String | ||||
""" | """ | ||||
The unique directory object that revision points to | The unique directory object that revision points to | ||||
""" | """ | ||||
directory: Directory | directory: Directory @cost(complexity: 1) | ||||
""" | """ | ||||
Connection to all the parents of the revision | Connection to all the parents of the revision | ||||
""" | """ | ||||
parents( | parents( | ||||
""" | """ | ||||
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 | ||||
): RevisionConnection | ): RevisionConnection @cost(complexity: 2) | ||||
""" | """ | ||||
Connection to all the revisions heading to this one | Connection to all the revisions heading to this one | ||||
aka the commit log | aka the commit log | ||||
""" | """ | ||||
revisionLog( | revisionLog( | ||||
""" | """ | ||||
Returns the first _n_ elements from the list | Returns the first _n_ elements from the list | ||||
""" | """ | ||||
first: Int! | first: Int! | ||||
""" | """ | ||||
Returns the page after the cursor | Returns the page after the cursor | ||||
""" | """ | ||||
after: String | after: String | ||||
): RevisionConnection | ): RevisionConnection @cost(complexity: 2) | ||||
} | } | ||||
""" | """ | ||||
Possible release target objects | Possible release target objects | ||||
""" | """ | ||||
union ReleaseTarget = Release | Revision | Directory | Content | union ReleaseTarget = Release | Revision | Directory | Content | ||||
""" | """ | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | type Release implements MerkleNode & Node { | ||||
""" | """ | ||||
Type of release target | Type of release target | ||||
""" | """ | ||||
targetType: ReleaseTargetType | targetType: ReleaseTargetType | ||||
""" | """ | ||||
Release target object | Release target object | ||||
""" | """ | ||||
target: ReleaseTarget | target: ReleaseTarget @cost(complexity: 1) | ||||
} | } | ||||
""" | """ | ||||
Connection to directory entries | Connection to directory entries | ||||
""" | """ | ||||
type DirectoryEntryConnection { | type DirectoryEntryConnection { | ||||
""" | """ | ||||
List of directory entry edges | List of directory entry edges | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | type DirectoryEntry { | ||||
""" | """ | ||||
Directory entry object type; can be file, dir or rev | Directory entry object type; can be file, dir or rev | ||||
""" | """ | ||||
type: DirectoryEntryType | type: DirectoryEntryType | ||||
""" | """ | ||||
Directory entry target object | Directory entry target object | ||||
""" | """ | ||||
target: DirectoryEntryTarget | target: DirectoryEntryTarget @cost(complexity: 1) | ||||
} | } | ||||
""" | """ | ||||
A directory object | A directory object | ||||
""" | """ | ||||
type Directory implements MerkleNode & Node { | type Directory implements MerkleNode & Node { | ||||
""" | """ | ||||
Unique identifier | Unique identifier | ||||
Show All 13 Lines | entries( | ||||
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 | ||||
): DirectoryEntryConnection | ): DirectoryEntryConnection @cost(complexity: 2) | ||||
} | } | ||||
""" | """ | ||||
An object with different checksums | An object with different checksums | ||||
""" | """ | ||||
type ContentChecksum { | type ContentChecksum { | ||||
""" | """ | ||||
""" | """ | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | type Query { | ||||
""" | """ | ||||
Get an origin with its url | Get an origin with its url | ||||
""" | """ | ||||
origin( | origin( | ||||
""" | """ | ||||
URL of the Origin | URL of the Origin | ||||
""" | """ | ||||
url: String! | url: String! | ||||
): Origin | ): Origin @cost(complexity: 1) | ||||
""" | """ | ||||
Get a Connection to all the origins | Get a Connection to all the origins | ||||
""" | """ | ||||
origins( | origins( | ||||
""" | """ | ||||
Returns the first _n_ elements from the list | Returns the first _n_ elements from the list | ||||
""" | """ | ||||
first: Int! | first: Int! | ||||
""" | """ | ||||
Returns the page after the cursor | Returns the page after the cursor | ||||
""" | """ | ||||
after: String | after: String | ||||
""" | """ | ||||
Filter origins with a URL pattern | Filter origins with a URL pattern | ||||
""" | """ | ||||
urlPattern: String | urlPattern: String | ||||
): OriginConnection | ): OriginConnection @cost(complexity: 2) | ||||
""" | """ | ||||
Get the visit object with an origin URL and a visit id | Get the visit object with an origin URL and a visit id | ||||
""" | """ | ||||
visit( | visit( | ||||
""" | """ | ||||
URL of the origin | URL of the origin | ||||
""" | """ | ||||
originUrl: String! | originUrl: String! | ||||
""" | """ | ||||
Visit id to get | Visit id to get | ||||
""" | """ | ||||
visitId: Int! | visitId: Int! | ||||
): Visit | ): Visit @cost(complexity: 1) | ||||
""" | """ | ||||
Get the snapshot with a SWHID | Get the snapshot with a SWHID | ||||
""" | """ | ||||
snapshot( | snapshot( | ||||
""" | """ | ||||
SWHID of the snapshot object | SWHID of the snapshot object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Snapshot | ): Snapshot @cost(complexity: 1) | ||||
""" | """ | ||||
Get the revision with a SWHID | Get the revision with a SWHID | ||||
""" | """ | ||||
revision( | revision( | ||||
""" | """ | ||||
SWHID of the revision object | SWHID of the revision object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Revision | ): Revision @cost(complexity: 1) | ||||
""" | """ | ||||
Get the release with a SWHID | Get the release with a SWHID | ||||
""" | """ | ||||
release( | release( | ||||
""" | """ | ||||
SWHID of the release object | SWHID of the release object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Release | ): Release @cost(complexity: 1) | ||||
""" | """ | ||||
Get the directory with a SWHID | Get the directory with a SWHID | ||||
""" | """ | ||||
directory( | directory( | ||||
""" | """ | ||||
SWHID of the directory object | SWHID of the directory object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Directory | ): Directory @cost(complexity: 1) | ||||
""" | """ | ||||
Get the content with a SWHID | Get the content with a SWHID | ||||
""" | """ | ||||
content( | content( | ||||
""" | """ | ||||
SWHID of the content object | SWHID of the content object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Content | ): Content @cost(complexity: 1) | ||||
} | } |