import { gql } from 'graphql-tag'

export default gql`
  extend type Query {
    lnAuth(k1: String!): LnAuth!
    lnWith(k1: String!): LnWith!
  }

  extend type Mutation {
    createAuth: LnAuth!
    createWith: LnWith!
  }

  type LnAuth {
    id: ID!
    createdAt: Date!
    k1: String!
    pubkey: String
    encodedUrl: String!
  }

  type LnWith {
    id: ID!
    createdAt: Date!
    k1: String!
    user: User!
    withdrawalId: Int
    encodedUrl: String!
  }
`
