244 lines
3.6 KiB
GraphQL
244 lines
3.6 KiB
GraphQL
type Balance implements Node {
|
|
amount: String!
|
|
currency: Currency!
|
|
id: ID!
|
|
}
|
|
|
|
"""
|
|
The connection type for Balance.
|
|
"""
|
|
type BalanceConnection {
|
|
"""
|
|
A list of edges.
|
|
"""
|
|
edges: [BalanceEdge!]!
|
|
|
|
"""
|
|
Information to aid in pagination.
|
|
"""
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
"""
|
|
An edge in a connection.
|
|
"""
|
|
type BalanceEdge {
|
|
"""
|
|
A cursor for use in pagination.
|
|
"""
|
|
cursor: String!
|
|
|
|
"""
|
|
The item at the end of the edge.
|
|
"""
|
|
node: Balance!
|
|
}
|
|
|
|
type Currency implements Node {
|
|
id: ID!
|
|
name: String!
|
|
}
|
|
|
|
"""
|
|
The connection type for Currency.
|
|
"""
|
|
type CurrencyConnection {
|
|
"""
|
|
A list of edges.
|
|
"""
|
|
edges: [CurrencyEdge!]!
|
|
|
|
"""
|
|
Information to aid in pagination.
|
|
"""
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
"""
|
|
An edge in a connection.
|
|
"""
|
|
type CurrencyEdge {
|
|
"""
|
|
A cursor for use in pagination.
|
|
"""
|
|
cursor: String!
|
|
|
|
"""
|
|
The item at the end of the edge.
|
|
"""
|
|
node: Currency!
|
|
}
|
|
|
|
type FiatBalance implements Node {
|
|
amountCents: Int!
|
|
amountCurrency: String!
|
|
createdAt: ISO8601DateTime!
|
|
id: ID!
|
|
updatedAt: ISO8601DateTime!
|
|
}
|
|
|
|
"""
|
|
The connection type for FiatBalance.
|
|
"""
|
|
type FiatBalanceConnection {
|
|
"""
|
|
A list of edges.
|
|
"""
|
|
edges: [FiatBalanceEdge!]!
|
|
|
|
"""
|
|
Information to aid in pagination.
|
|
"""
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
"""
|
|
An edge in a connection.
|
|
"""
|
|
type FiatBalanceEdge {
|
|
"""
|
|
A cursor for use in pagination.
|
|
"""
|
|
cursor: String!
|
|
|
|
"""
|
|
The item at the end of the edge.
|
|
"""
|
|
node: FiatBalance!
|
|
}
|
|
|
|
"""
|
|
An ISO 8601-encoded datetime
|
|
"""
|
|
scalar ISO8601DateTime
|
|
|
|
"""
|
|
An object with an ID.
|
|
"""
|
|
interface Node {
|
|
"""
|
|
ID of the object.
|
|
"""
|
|
id: ID!
|
|
}
|
|
|
|
"""
|
|
Information about pagination in a connection.
|
|
"""
|
|
type PageInfo {
|
|
"""
|
|
When paginating forwards, the cursor to continue.
|
|
"""
|
|
endCursor: String
|
|
|
|
"""
|
|
When paginating forwards, are there more items?
|
|
"""
|
|
hasNextPage: Boolean!
|
|
|
|
"""
|
|
When paginating backwards, are there more items?
|
|
"""
|
|
hasPreviousPage: Boolean!
|
|
|
|
"""
|
|
When paginating backwards, the cursor to continue.
|
|
"""
|
|
startCursor: String
|
|
}
|
|
|
|
type Query {
|
|
balances(
|
|
"""
|
|
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
|
|
|
|
"""
|
|
Returns the first _n_ elements from the list.
|
|
"""
|
|
first: Int
|
|
|
|
"""
|
|
Returns the last _n_ elements from the list.
|
|
"""
|
|
last: Int
|
|
): BalanceConnection!
|
|
currencies(
|
|
"""
|
|
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
|
|
|
|
"""
|
|
Returns the first _n_ elements from the list.
|
|
"""
|
|
first: Int
|
|
|
|
"""
|
|
Returns the last _n_ elements from the list.
|
|
"""
|
|
last: Int
|
|
): CurrencyConnection!
|
|
currentUser: User
|
|
fiatBalances(
|
|
"""
|
|
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
|
|
|
|
"""
|
|
Returns the first _n_ elements from the list.
|
|
"""
|
|
first: Int
|
|
|
|
"""
|
|
Returns the last _n_ elements from the list.
|
|
"""
|
|
last: Int
|
|
): FiatBalanceConnection!
|
|
|
|
"""
|
|
Fetches an object given its ID.
|
|
"""
|
|
node(
|
|
"""
|
|
ID of the object.
|
|
"""
|
|
id: ID!
|
|
): Node
|
|
|
|
"""
|
|
Fetches a list of objects given a list of IDs.
|
|
"""
|
|
nodes(
|
|
"""
|
|
IDs of the objects.
|
|
"""
|
|
ids: [ID!]!
|
|
): [Node]!
|
|
}
|
|
|
|
type User {
|
|
email: String!
|
|
firstName: String!
|
|
fullName: String!
|
|
id: ID!
|
|
lastName: String!
|
|
}
|