2023-07-23 15:08:43 +00:00
|
|
|
import { gql } from 'graphql-tag'
|
2021-06-27 03:18:32 +00:00
|
|
|
|
|
|
|
export default gql`
|
|
|
|
extend type Query {
|
|
|
|
lnAuth(k1: String!): LnAuth!
|
2021-10-28 19:59:53 +00:00
|
|
|
lnWith(k1: String!): LnWith!
|
2021-06-27 03:18:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
createAuth: LnAuth!
|
2021-10-28 19:59:53 +00:00
|
|
|
createWith: LnWith!
|
2021-06-27 03:18:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type LnAuth {
|
|
|
|
id: ID!
|
2023-07-27 00:18:42 +00:00
|
|
|
createdAt: Date!
|
2021-06-27 03:18:32 +00:00
|
|
|
k1: String!
|
|
|
|
pubkey: String
|
|
|
|
encodedUrl: String!
|
|
|
|
}
|
2021-10-28 19:59:53 +00:00
|
|
|
|
|
|
|
type LnWith {
|
|
|
|
id: ID!
|
2023-07-27 00:18:42 +00:00
|
|
|
createdAt: Date!
|
2021-10-28 19:59:53 +00:00
|
|
|
k1: String!
|
|
|
|
user: User!
|
|
|
|
withdrawalId: Int
|
|
|
|
encodedUrl: String!
|
|
|
|
}
|
2021-06-27 03:18:32 +00:00
|
|
|
`
|