Files
x-stake/app/javascript/__generated__/schema.graphql
2021-08-15 11:56:15 -03:00

406 lines
6.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 BuyCryptoOrder implements Node {
createdAt: ISO8601DateTime!
currency: Currency!
id: ID!
paidAmountCents: Int!
receivedAmount: Float
status: ProcessStatus!
updatedAt: ISO8601DateTime!
}
"""
The connection type for BuyCryptoOrder.
"""
type BuyCryptoOrderConnection {
"""
A list of edges.
"""
edges: [BuyCryptoOrderEdge!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
}
"""
An edge in a connection.
"""
type BuyCryptoOrderEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The item at the end of the edge.
"""
node: BuyCryptoOrder!
}
input CreateBuyCryptoOrderAttributesInput {
"""
Amount to be paid
"""
amount: Float!
currencyId: ID!
}
"""
Autogenerated input type of CreateBuyCryptoOrder
"""
input CreateBuyCryptoOrderInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
order: CreateBuyCryptoOrderAttributesInput!
}
"""
Autogenerated return type of CreateBuyCryptoOrder
"""
type CreateBuyCryptoOrderPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
"""
Errors encountered during execution of the mutation.
"""
errors: [String!]
order: BuyCryptoOrder!
}
input CreateSellCryptoOrderAttributesInput {
"""
Amount to be paid
"""
amount: Float!
currencyId: ID!
}
"""
Autogenerated input type of CreateSellCryptoOrder
"""
input CreateSellCryptoOrderInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
order: CreateSellCryptoOrderAttributesInput!
}
"""
Autogenerated return type of CreateSellCryptoOrder
"""
type CreateSellCryptoOrderPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
"""
Errors encountered during execution of the mutation.
"""
errors: [String!]
order: SellCryptoOrder!
}
type Currency implements Node {
id: ID!
name: String!
}
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
type Mutation {
createBuyCryptoOrder(
"""
Parameters for CreateBuyCryptoOrder
"""
input: CreateBuyCryptoOrderInput!
): CreateBuyCryptoOrderPayload
createSellCryptoOrder(
"""
Parameters for CreateSellCryptoOrder
"""
input: CreateSellCryptoOrderInput!
): CreateSellCryptoOrderPayload
}
"""
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
}
enum ProcessStatus {
CANCELED
COMPLETED
PROCESSING
}
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!
buyCryptoOrders(
"""
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
): BuyCryptoOrderConnection!
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]!
sellCryptoOrders(
"""
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
): SellCryptoOrderConnection!
}
type SellCryptoOrder implements Node {
createdAt: ISO8601DateTime!
currency: Currency!
id: ID!
paidAmount: Float!
receivedAmountCents: Int
status: ProcessStatus!
updatedAt: ISO8601DateTime!
}
"""
The connection type for SellCryptoOrder.
"""
type SellCryptoOrderConnection {
"""
A list of edges.
"""
edges: [SellCryptoOrderEdge!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
}
"""
An edge in a connection.
"""
type SellCryptoOrderEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The item at the end of the edge.
"""
node: SellCryptoOrder!
}
type User {
email: String!
firstName: String!
fullName: String!
id: ID!
lastName: String!
}