32 lines
623 B
Swift
32 lines
623 B
Swift
//
|
|
// AccountCheckNameRequest.swift
|
|
//
|
|
//
|
|
// Created by Juraldinio on 11.08.2022.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct AccountCheckNameRequest: Encodable {
|
|
|
|
struct Variables: Encodable {
|
|
let username: String
|
|
}
|
|
|
|
// MARK: - GraphQL
|
|
|
|
let variables: Variables
|
|
let operationName = "checkWalletName"
|
|
let query: String = #"""
|
|
query checkWalletName(
|
|
$username: String!
|
|
) {
|
|
checkWalletName(username: $username) { errors }
|
|
}
|
|
"""#.trimCompact()
|
|
}
|
|
|
|
struct AccountCheckNameResponse: GraphQLResponse {
|
|
static let node = "checkWalletName"
|
|
}
|