41 lines
780 B
JavaScript
Raw Normal View History

2021-04-30 16:42:51 -05:00
import { gql } from 'apollo-server-micro'
export default gql`
extend type Query {
2021-05-11 10:52:50 -05:00
invoice(id: ID!): Invoice!
2021-05-12 20:51:37 -05:00
withdrawl(id: ID!): Withdrawl!
2021-06-02 19:15:28 -04:00
connectAddress: String!
2021-04-30 16:42:51 -05:00
}
extend type Mutation {
2021-05-11 10:52:50 -05:00
createInvoice(amount: Int!): Invoice!
2021-05-12 20:51:37 -05:00
createWithdrawl(invoice: String!, maxFee: Int!): Withdrawl!
2021-05-11 10:52:50 -05:00
}
type Invoice {
id: ID!
createdAt: String!
bolt11: String!
expiresAt: String!
cancelled: Boolean!
confirmedAt: String
msatsReceived: Int
2021-04-30 16:42:51 -05:00
}
2021-05-12 20:51:37 -05:00
type Withdrawl {
id: ID!
createdAt: String!
hash: String!
bolt11: String!
msatsPaying: Int!
2021-05-13 16:19:51 -05:00
satsPaying: Int!
2021-05-12 20:51:37 -05:00
msatsPaid: Int
2021-05-13 16:19:51 -05:00
satsPaid: Int
2021-05-12 20:51:37 -05:00
msatsFeePaying: Int!
2021-05-13 16:19:51 -05:00
satsFeePaying: Int!
2021-05-12 20:51:37 -05:00
msatsFeePaid: Int
2021-05-13 16:19:51 -05:00
satsFeePaid: Int
2021-05-13 08:28:38 -05:00
status: String
2021-05-12 20:51:37 -05:00
}
2021-04-30 16:42:51 -05:00
`