// // CheckDeviceRequest.swift // // // Created by Juraldinio on 24.08.2022. // import Foundation struct CheckDeviceRequest: Encodable { struct Variables: Encodable { let uid: String let token: String } // MARK: - GraphQL let operationName = "CheckDevice" let query: String = #""" mutation CheckDevice($uid: String!, $token: String!) { checkDevice(uid: $uid, token: $token) { status } } """#.trimCompact() let variables: Variables } struct CheckDeviceResponse: GraphQLResponse { static let node = "checkDevice" let status: DeviceStatus }