Skip to content
Snippets Groups Projects
Commit 8ca8ff02 authored by Éloïs's avatar Éloïs
Browse files

[feat] rfc gva: schema: add distance field

parent c517d347
No related branches found
No related tags found
1 merge request!3WIP: RFC 3 : GraphQL API for Duniter Client
...@@ -193,6 +193,23 @@ type Revocation { ...@@ -193,6 +193,23 @@ type Revocation {
written: Boolean! written: Boolean!
} }
# The only field that must be supported is "out",
# all other fields may be null if the server does not implement them.
type Distance {
# Is the member outdistanced ?
out: Boolean!
# Referring members count
sentries: Int
# Count referring members reached
success: Int
# Count referring members reached at border
successAtBorder: Int
# Count members reached
reached: Int,
# Count members reached at border
reachedAtBorder: Int
}
type Identity { type Identity {
version: Int! version: Int!
type: String! type: String!
...@@ -203,7 +220,11 @@ type Identity { ...@@ -203,7 +220,11 @@ type Identity {
signature: String! signature: String!
raw: String! raw: String!
written: Boolean! written: Boolean!
membership: Membership distance: Distance!
# Membership
mb: Membership
# Pending memberships
pMbs: [Membership!]!
# Received certifications # Received certifications
recvCerts: [Certification!]! recvCerts: [Certification!]!
# Identity revocation document (=null when identity not revoked) # Identity revocation document (=null when identity not revoked)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment