Files
raspberry/iOS/Wallet/Sources/Network/Model/NetworkModelGraphQL.swift
2022-12-12 21:42:41 +03:00

3772 lines
119 KiB
Swift

// @generated
// This file was automatically generated and should not be edited.
import Apollo
import Foundation
// swiftlint:disable all
/// An enumeration.
public enum AptStatus: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
/// Not published
case draft
/// Application for the first time in moderation
case new
/// Application is in moderation
case moderation
/// The application is being finalized
case rework
/// Recruitment of a minimum number of participants. First stage of auction
case recruitment
/// Apartment is available to see
case inReview
/// Auction completed. Paper work
case auctionFinished
/// Apartment is rented
case rented
/// Sold from platform
case sold
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "DRAFT": self = .draft
case "NEW": self = .new
case "MODERATION": self = .moderation
case "REWORK": self = .rework
case "RECRUITMENT": self = .recruitment
case "IN_REVIEW": self = .inReview
case "AUCTION_FINISHED": self = .auctionFinished
case "RENTED": self = .rented
case "SOLD": self = .sold
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .draft: return "DRAFT"
case .new: return "NEW"
case .moderation: return "MODERATION"
case .rework: return "REWORK"
case .recruitment: return "RECRUITMENT"
case .inReview: return "IN_REVIEW"
case .auctionFinished: return "AUCTION_FINISHED"
case .rented: return "RENTED"
case .sold: return "SOLD"
case .__unknown(let value): return value
}
}
public static func == (lhs: AptStatus, rhs: AptStatus) -> Bool {
switch (lhs, rhs) {
case (.draft, .draft): return true
case (.new, .new): return true
case (.moderation, .moderation): return true
case (.rework, .rework): return true
case (.recruitment, .recruitment): return true
case (.inReview, .inReview): return true
case (.auctionFinished, .auctionFinished): return true
case (.rented, .rented): return true
case (.sold, .sold): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [AptStatus] {
return [
.draft,
.new,
.moderation,
.rework,
.recruitment,
.inReview,
.auctionFinished,
.rented,
.sold
]
}
}
/// An enumeration.
public enum HouseType: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
case blocky
case panel
case brick
case monolithic
case brickMonolithic
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "BLOCKY": self = .blocky
case "PANEL": self = .panel
case "BRICK": self = .brick
case "MONOLITHIC": self = .monolithic
case "BRICK_MONOLITHIC": self = .brickMonolithic
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .blocky: return "BLOCKY"
case .panel: return "PANEL"
case .brick: return "BRICK"
case .monolithic: return "MONOLITHIC"
case .brickMonolithic: return "BRICK_MONOLITHIC"
case .__unknown(let value): return value
}
}
public static func == (lhs: HouseType, rhs: HouseType) -> Bool {
switch (lhs, rhs) {
case (.blocky, .blocky): return true
case (.panel, .panel): return true
case (.brick, .brick): return true
case (.monolithic, .monolithic): return true
case (.brickMonolithic, .brickMonolithic): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [HouseType] {
return [
.blocky,
.panel,
.brick,
.monolithic,
.brickMonolithic
]
}
}
/// An enumeration.
public enum AptBalconies: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
case one
case two
case threeOrMore
case zero
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "ONE": self = .one
case "TWO": self = .two
case "THREE_OR_MORE": self = .threeOrMore
case "ZERO": self = .zero
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .one: return "ONE"
case .two: return "TWO"
case .threeOrMore: return "THREE_OR_MORE"
case .zero: return "ZERO"
case .__unknown(let value): return value
}
}
public static func == (lhs: AptBalconies, rhs: AptBalconies) -> Bool {
switch (lhs, rhs) {
case (.one, .one): return true
case (.two, .two): return true
case (.threeOrMore, .threeOrMore): return true
case (.zero, .zero): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [AptBalconies] {
return [
.one,
.two,
.threeOrMore,
.zero
]
}
}
/// An enumeration.
public enum WayToGet: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
case onFoot
case byTransport
case byCar
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "ON_FOOT": self = .onFoot
case "BY_TRANSPORT": self = .byTransport
case "BY_CAR": self = .byCar
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .onFoot: return "ON_FOOT"
case .byTransport: return "BY_TRANSPORT"
case .byCar: return "BY_CAR"
case .__unknown(let value): return value
}
}
public static func == (lhs: WayToGet, rhs: WayToGet) -> Bool {
switch (lhs, rhs) {
case (.onFoot, .onFoot): return true
case (.byTransport, .byTransport): return true
case (.byCar, .byCar): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [WayToGet] {
return [
.onFoot,
.byTransport,
.byCar
]
}
}
/// An enumeration.
public enum RoadTime: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
// swiftlint:disable identifier_name
case min_5
case min_10
case min_15
/// Auto generated constant for unknown enum values
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "MIN_5": self = .min_5
case "MIN_10": self = .min_10
case "MIN_15": self = .min_15
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .min_5: return "MIN_5"
case .min_10: return "MIN_10"
case .min_15: return "MIN_15"
case .__unknown(let value): return value
}
}
public static func == (lhs: RoadTime, rhs: RoadTime) -> Bool {
switch (lhs, rhs) {
case (.min_5, .min_5): return true
case (.min_10, .min_10): return true
case (.min_15, .min_15): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [RoadTime] {
return [
.min_5,
.min_10,
.min_15
]
}
}
/// An enumeration.
public enum DocumentType: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
/// Photo
case photo
/// Document
case document
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "PHOTO": self = .photo
case "DOCUMENT": self = .document
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .photo: return "PHOTO"
case .document: return "DOCUMENT"
case .__unknown(let value): return value
}
}
public static func == (lhs: DocumentType, rhs: DocumentType) -> Bool {
switch (lhs, rhs) {
case (.photo, .photo): return true
case (.document, .document): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [DocumentType] {
return [
.photo,
.document
]
}
}
public struct ApartmentFilterInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - houseTypes
/// - buildingYear
/// - hasGas
/// - parking
/// - subways
/// - placeId
/// - floorsInEntrance
/// - elevator
/// - hasSecurity
/// - hasConcierge
/// - hasIntercom
/// - hasVideoSurveillance
/// - hasGarbageChute
/// - statuses: Limited to public apartments only
/// - publicOnly
/// - isTokenized
/// - floor
/// - square
/// - rooms
/// - ceilingHeight
/// - windows
/// - baths
/// - balconies
/// - districts
/// - cityId
/// - address
/// - housingComplex
public init(houseTypes: Swift.Optional<[HouseType?]?> = nil, buildingYear: Swift.Optional<RangeInt?> = nil, hasGas: Swift.Optional<Bool?> = nil, parking: Swift.Optional<ParkingInput?> = nil, subways: Swift.Optional<[SubwaysInput?]?> = nil, placeId: Swift.Optional<Int?> = nil, floorsInEntrance: Swift.Optional<RangeInt?> = nil, elevator: Swift.Optional<ElevatorInput?> = nil, hasSecurity: Swift.Optional<Bool?> = nil, hasConcierge: Swift.Optional<Bool?> = nil, hasIntercom: Swift.Optional<Bool?> = nil, hasVideoSurveillance: Swift.Optional<Bool?> = nil, hasGarbageChute: Swift.Optional<Bool?> = nil, statuses: Swift.Optional<[AptStatus?]?> = nil, publicOnly: Swift.Optional<Bool?> = nil, isTokenized: Swift.Optional<Bool?> = nil, floor: Swift.Optional<FloorInput?> = nil, square: Swift.Optional<SquareInput?> = nil, rooms: Swift.Optional<RoomsInput?> = nil, ceilingHeight: Swift.Optional<RangeInt?> = nil, windows: Swift.Optional<WindowsInput?> = nil, baths: Swift.Optional<BathsInput?> = nil, balconies: Swift.Optional<BalconiesInput?> = nil, districts: Swift.Optional<[Int?]?> = nil, cityId: Swift.Optional<Int?> = nil, address: Swift.Optional<String?> = nil, housingComplex: Swift.Optional<String?> = nil) {
// swiftlint:disable line_length
graphQLMap = ["houseTypes": houseTypes, "buildingYear": buildingYear, "hasGas": hasGas, "parking": parking, "subways": subways, "placeId": placeId, "floorsInEntrance": floorsInEntrance, "elevator": elevator, "hasSecurity": hasSecurity, "hasConcierge": hasConcierge, "hasIntercom": hasIntercom, "hasVideoSurveillance": hasVideoSurveillance, "hasGarbageChute": hasGarbageChute, "statuses": statuses, "publicOnly": publicOnly, "isTokenized": isTokenized, "floor": floor, "square": square, "rooms": rooms, "ceilingHeight": ceilingHeight, "windows": windows, "baths": baths, "balconies": balconies, "districts": districts, "cityId": cityId, "address": address, "housingComplex": housingComplex]
}
public var houseTypes: Swift.Optional<[HouseType?]?> {
get {
return graphQLMap["houseTypes"] as? Swift.Optional<[HouseType?]?> ?? Swift.Optional<[HouseType?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "houseTypes")
}
}
public var buildingYear: Swift.Optional<RangeInt?> {
get {
return graphQLMap["buildingYear"] as? Swift.Optional<RangeInt?> ?? Swift.Optional<RangeInt?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "buildingYear")
}
}
public var hasGas: Swift.Optional<Bool?> {
get {
return graphQLMap["hasGas"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasGas")
}
}
public var parking: Swift.Optional<ParkingInput?> {
get {
return graphQLMap["parking"] as? Swift.Optional<ParkingInput?> ?? Swift.Optional<ParkingInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "parking")
}
}
public var subways: Swift.Optional<[SubwaysInput?]?> {
get {
return graphQLMap["subways"] as? Swift.Optional<[SubwaysInput?]?> ?? Swift.Optional<[SubwaysInput?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "subways")
}
}
public var placeId: Swift.Optional<Int?> {
get {
return graphQLMap["placeId"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "placeId")
}
}
public var floorsInEntrance: Swift.Optional<RangeInt?> {
get {
return graphQLMap["floorsInEntrance"] as? Swift.Optional<RangeInt?> ?? Swift.Optional<RangeInt?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "floorsInEntrance")
}
}
public var elevator: Swift.Optional<ElevatorInput?> {
get {
return graphQLMap["elevator"] as? Swift.Optional<ElevatorInput?> ?? Swift.Optional<ElevatorInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "elevator")
}
}
public var hasSecurity: Swift.Optional<Bool?> {
get {
return graphQLMap["hasSecurity"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasSecurity")
}
}
public var hasConcierge: Swift.Optional<Bool?> {
get {
return graphQLMap["hasConcierge"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasConcierge")
}
}
public var hasIntercom: Swift.Optional<Bool?> {
get {
return graphQLMap["hasIntercom"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasIntercom")
}
}
public var hasVideoSurveillance: Swift.Optional<Bool?> {
get {
return graphQLMap["hasVideoSurveillance"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasVideoSurveillance")
}
}
public var hasGarbageChute: Swift.Optional<Bool?> {
get {
return graphQLMap["hasGarbageChute"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasGarbageChute")
}
}
/// Limited to public apartments only
public var statuses: Swift.Optional<[AptStatus?]?> {
get {
return graphQLMap["statuses"] as? Swift.Optional<[AptStatus?]?> ?? Swift.Optional<[AptStatus?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "statuses")
}
}
public var publicOnly: Swift.Optional<Bool?> {
get {
return graphQLMap["publicOnly"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "publicOnly")
}
}
public var isTokenized: Swift.Optional<Bool?> {
get {
return graphQLMap["isTokenized"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "isTokenized")
}
}
public var floor: Swift.Optional<FloorInput?> {
get {
return graphQLMap["floor"] as? Swift.Optional<FloorInput?> ?? Swift.Optional<FloorInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "floor")
}
}
public var square: Swift.Optional<SquareInput?> {
get {
return graphQLMap["square"] as? Swift.Optional<SquareInput?> ?? Swift.Optional<SquareInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "square")
}
}
public var rooms: Swift.Optional<RoomsInput?> {
get {
return graphQLMap["rooms"] as? Swift.Optional<RoomsInput?> ?? Swift.Optional<RoomsInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "rooms")
}
}
public var ceilingHeight: Swift.Optional<RangeInt?> {
get {
return graphQLMap["ceilingHeight"] as? Swift.Optional<RangeInt?> ?? Swift.Optional<RangeInt?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "ceilingHeight")
}
}
public var windows: Swift.Optional<WindowsInput?> {
get {
return graphQLMap["windows"] as? Swift.Optional<WindowsInput?> ?? Swift.Optional<WindowsInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "windows")
}
}
public var baths: Swift.Optional<BathsInput?> {
get {
return graphQLMap["baths"] as? Swift.Optional<BathsInput?> ?? Swift.Optional<BathsInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "baths")
}
}
public var balconies: Swift.Optional<BalconiesInput?> {
get {
return graphQLMap["balconies"] as? Swift.Optional<BalconiesInput?> ?? Swift.Optional<BalconiesInput?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "balconies")
}
}
public var districts: Swift.Optional<[Int?]?> {
get {
return graphQLMap["districts"] as? Swift.Optional<[Int?]?> ?? Swift.Optional<[Int?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "districts")
}
}
public var cityId: Swift.Optional<Int?> {
get {
return graphQLMap["cityId"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "cityId")
}
}
public var address: Swift.Optional<String?> {
get {
return graphQLMap["address"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "address")
}
}
public var housingComplex: Swift.Optional<String?> {
get {
return graphQLMap["housingComplex"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "housingComplex")
}
}
}
public struct RangeInt: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - from
/// - to
public init(from: Swift.Optional<Int?> = nil, to: Swift.Optional<Int?> = nil) {
graphQLMap = ["from": from, "to": to]
}
public var from: Swift.Optional<Int?> {
get {
return graphQLMap["from"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "from")
}
}
public var to: Swift.Optional<Int?> {
get {
return graphQLMap["to"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "to")
}
}
}
public struct ParkingInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - ground
/// - underground
/// - multilevel
public init(ground: Swift.Optional<Bool?> = nil, underground: Swift.Optional<Bool?> = nil, multilevel: Swift.Optional<Bool?> = nil) {
graphQLMap = ["ground": ground, "underground": underground, "multilevel": multilevel]
}
public var ground: Swift.Optional<Bool?> {
get {
return graphQLMap["ground"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "ground")
}
}
public var underground: Swift.Optional<Bool?> {
get {
return graphQLMap["underground"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "underground")
}
}
public var multilevel: Swift.Optional<Bool?> {
get {
return graphQLMap["multilevel"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "multilevel")
}
}
}
public struct SubwaysInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - subwayId
/// - way
/// - minutes
public init(subwayId: Int, way: WayToGet, minutes: RoadTime) {
graphQLMap = ["subwayId": subwayId, "way": way, "minutes": minutes]
}
public var subwayId: Int {
get {
// swiftlint:disable force_cast
return graphQLMap["subwayId"] as! Int
}
set {
graphQLMap.updateValue(newValue, forKey: "subwayId")
}
}
public var way: WayToGet {
get {
// swiftlint:disable force_cast
return graphQLMap["way"] as! WayToGet
}
set {
graphQLMap.updateValue(newValue, forKey: "way")
}
}
public var minutes: RoadTime {
get {
// swiftlint:disable force_cast
return graphQLMap["minutes"] as! RoadTime
}
set {
graphQLMap.updateValue(newValue, forKey: "minutes")
}
}
}
public struct ElevatorInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - simple
/// - cargo
public init(simple: Swift.Optional<Bool?> = nil, cargo: Swift.Optional<Bool?> = nil) {
graphQLMap = ["simple": simple, "cargo": cargo]
}
public var simple: Swift.Optional<Bool?> {
get {
return graphQLMap["simple"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "simple")
}
}
public var cargo: Swift.Optional<Bool?> {
get {
return graphQLMap["cargo"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "cargo")
}
}
}
public struct FloorInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - from
/// - to
/// - notFirst
/// - notLast
public init(from: Swift.Optional<Int?> = nil, to: Swift.Optional<Int?> = nil, notFirst: Swift.Optional<Bool?> = nil, notLast: Swift.Optional<Bool?> = nil) {
graphQLMap = ["from": from, "to": to, "notFirst": notFirst, "notLast": notLast]
}
public var from: Swift.Optional<Int?> {
get {
return graphQLMap["from"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "from")
}
}
public var to: Swift.Optional<Int?> {
get {
return graphQLMap["to"] as? Swift.Optional<Int?> ?? Swift.Optional<Int?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "to")
}
}
public var notFirst: Swift.Optional<Bool?> {
get {
return graphQLMap["notFirst"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "notFirst")
}
}
public var notLast: Swift.Optional<Bool?> {
get {
return graphQLMap["notLast"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "notLast")
}
}
}
public struct SquareInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - total
/// - living
/// - kitchen
public init(total: Swift.Optional<RangeFloat?> = nil, living: Swift.Optional<RangeFloat?> = nil, kitchen: Swift.Optional<RangeFloat?> = nil) {
graphQLMap = ["total": total, "living": living, "kitchen": kitchen]
}
public var total: Swift.Optional<RangeFloat?> {
get {
return graphQLMap["total"] as? Swift.Optional<RangeFloat?> ?? Swift.Optional<RangeFloat?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "total")
}
}
public var living: Swift.Optional<RangeFloat?> {
get {
return graphQLMap["living"] as? Swift.Optional<RangeFloat?> ?? Swift.Optional<RangeFloat?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "living")
}
}
public var kitchen: Swift.Optional<RangeFloat?> {
get {
return graphQLMap["kitchen"] as? Swift.Optional<RangeFloat?> ?? Swift.Optional<RangeFloat?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "kitchen")
}
}
}
public struct RangeFloat: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - from
/// - to
public init(from: Swift.Optional<Double?> = nil, to: Swift.Optional<Double?> = nil) {
graphQLMap = ["from": from, "to": to]
}
public var from: Swift.Optional<Double?> {
get {
return graphQLMap["from"] as? Swift.Optional<Double?> ?? Swift.Optional<Double?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "from")
}
}
public var to: Swift.Optional<Double?> {
get {
return graphQLMap["to"] as? Swift.Optional<Double?> ?? Swift.Optional<Double?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "to")
}
}
}
public struct RoomsInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - isStudio
/// - numberIn
/// - numberRange
public init(isStudio: Swift.Optional<Bool?> = nil, numberIn: Swift.Optional<[Int?]?> = nil, numberRange: Swift.Optional<RangeInt?> = nil) {
graphQLMap = ["isStudio": isStudio, "numberIn": numberIn, "numberRange": numberRange]
}
public var isStudio: Swift.Optional<Bool?> {
get {
return graphQLMap["isStudio"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "isStudio")
}
}
public var numberIn: Swift.Optional<[Int?]?> {
get {
return graphQLMap["numberIn"] as? Swift.Optional<[Int?]?> ?? Swift.Optional<[Int?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "numberIn")
}
}
public var numberRange: Swift.Optional<RangeInt?> {
get {
return graphQLMap["numberRange"] as? Swift.Optional<RangeInt?> ?? Swift.Optional<RangeInt?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "numberRange")
}
}
}
public struct WindowsInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - toYard
/// - toStreet
public init(toYard: Swift.Optional<Bool?> = nil, toStreet: Swift.Optional<Bool?> = nil) {
graphQLMap = ["toYard": toYard, "toStreet": toStreet]
}
public var toYard: Swift.Optional<Bool?> {
get {
return graphQLMap["toYard"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "toYard")
}
}
public var toStreet: Swift.Optional<Bool?> {
get {
return graphQLMap["toStreet"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "toStreet")
}
}
}
public struct BathsInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - divided
/// - combined
public init(divided: Swift.Optional<Bool?> = nil, combined: Swift.Optional<Bool?> = nil) {
graphQLMap = ["divided": divided, "combined": combined]
}
public var divided: Bool? {
get {
return graphQLMap["divided"] as? Bool ?? nil
}
set {
graphQLMap.updateValue(newValue, forKey: "divided")
}
}
public var combined: Swift.Optional<Bool?> {
get {
return graphQLMap["combined"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "combined")
}
}
}
public struct BalconiesInput: GraphQLMapConvertible {
public var graphQLMap: GraphQLMap
/// - Parameters:
/// - count
/// - hasLoggia
public init(count: Swift.Optional<[AptBalconies?]?> = nil, hasLoggia: Swift.Optional<Bool?> = nil) {
graphQLMap = ["count": count, "hasLoggia": hasLoggia]
}
public var count: Swift.Optional<[AptBalconies?]?> {
get {
return graphQLMap["count"] as? Swift.Optional<[AptBalconies?]?> ?? Swift.Optional<[AptBalconies?]?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "count")
}
}
public var hasLoggia: Swift.Optional<Bool?> {
get {
return graphQLMap["hasLoggia"] as? Swift.Optional<Bool?> ?? Swift.Optional<Bool?>.none
}
set {
graphQLMap.updateValue(newValue, forKey: "hasLoggia")
}
}
}
public enum ApartmentSortEnum: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
public typealias RawValue = String
case address
case addressDesc
case status
case statusDesc
case m2
case m2Desc
case isNewForRd
case isNewForRdDesc
case updatedForRd
case updatedForRdDesc
/// Auto generated constant for unknown enum values
// swiftlint:disable identifier_name
case __unknown(RawValue)
public init?(rawValue: RawValue) {
switch rawValue {
case "ADDRESS": self = .address
case "ADDRESS_DESC": self = .addressDesc
case "STATUS": self = .status
case "STATUS_DESC": self = .statusDesc
case "M2": self = .m2
case "M2_DESC": self = .m2Desc
case "IS_NEW_FOR_RD": self = .isNewForRd
case "IS_NEW_FOR_RD_DESC": self = .isNewForRdDesc
case "UPDATED_FOR_RD": self = .updatedForRd
case "UPDATED_FOR_RD_DESC": self = .updatedForRdDesc
default: self = .__unknown(rawValue)
}
}
public var rawValue: RawValue {
switch self {
case .address: return "ADDRESS"
case .addressDesc: return "ADDRESS_DESC"
case .status: return "STATUS"
case .statusDesc: return "STATUS_DESC"
case .m2: return "M2"
case .m2Desc: return "M2_DESC"
case .isNewForRd: return "IS_NEW_FOR_RD"
case .isNewForRdDesc: return "IS_NEW_FOR_RD_DESC"
case .updatedForRd: return "UPDATED_FOR_RD"
case .updatedForRdDesc: return "UPDATED_FOR_RD_DESC"
case .__unknown(let value): return value
}
}
public static func == (lhs: ApartmentSortEnum, rhs: ApartmentSortEnum) -> Bool {
switch (lhs, rhs) {
case (.address, .address): return true
case (.addressDesc, .addressDesc): return true
case (.status, .status): return true
case (.statusDesc, .statusDesc): return true
case (.m2, .m2): return true
case (.m2Desc, .m2Desc): return true
case (.isNewForRd, .isNewForRd): return true
case (.isNewForRdDesc, .isNewForRdDesc): return true
case (.updatedForRd, .updatedForRd): return true
case (.updatedForRdDesc, .updatedForRdDesc): return true
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
default: return false
}
}
public static var allCases: [ApartmentSortEnum] {
return [
.address,
.addressDesc,
.status,
.statusDesc,
.m2,
.m2Desc,
.isNewForRd,
.isNewForRdDesc,
.updatedForRd,
.updatedForRdDesc,
]
}
}
public final class UpdateAptFavoritesMutation: GraphQLMutation {
/// The raw GraphQL definition of this operation.
public let operationDefinition: String =
"""
mutation updateAptFavorites($aptId: Int!) {
updateAptFavorites(aptId: $aptId) {
__typename
success
}
}
"""
public let operationName: String = "updateAptFavorites"
public var aptId: Int
public init(aptId: Int) {
self.aptId = aptId
}
public var variables: GraphQLMap? {
return ["aptId": aptId]
}
public struct Data: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["Mutations"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("updateAptFavorites", arguments: ["aptId": GraphQLVariable("aptId")], type: .object(UpdateAptFavorite.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(updateAptFavorites: UpdateAptFavorite? = nil) {
self.init(unsafeResultMap: ["__typename": "Mutations", "updateAptFavorites": updateAptFavorites.flatMap { (value: UpdateAptFavorite) -> ResultMap in value.resultMap }])
}
public var updateAptFavorites: UpdateAptFavorite? {
get {
return (resultMap["updateAptFavorites"] as? ResultMap).flatMap { UpdateAptFavorite(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "updateAptFavorites")
}
}
public struct UpdateAptFavorite: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["UpdateAptFavorite"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("success", type: .scalar(Bool.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(success: Bool? = nil) {
self.init(unsafeResultMap: ["__typename": "UpdateAptFavorite", "success": success])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var success: Bool? {
get {
return resultMap["success"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "success")
}
}
}
}
}
public final class ApartmentQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
public let operationDefinition: String =
"""
query Apartment($id: Int!, $user: String!) {
apartment(id: $id) {
__typename
id
status
place {
__typename
lat
lon
address
city {
__typename
name
country {
__typename
name
}
}
}
latestAuction {
__typename
hasAccountBid(account: $user)
}
m2
livingM2
kitchenM2
rooms
floor
numberOfFloors
number
description
buildingYear
houseType
hasElevator
hasCargoElevator
balconies
hasLoggia
hasYardWindows
hasStreetWindows
combinedBaths
dividedBaths
ceilingHeight
hasGroundParking
hasUndergroundParking
hasMultilevelParking
housingComplex
hasGas
hasVideoSurveillance
hasIntercom
hasConcierge
hasSecurity
hasGarbageChute
subways {
__typename
way
minutes
}
isStudio
photos {
__typename
id
link
docType
}
documents {
__typename
id
link
name
docType
}
user {
__typename
id
email
phone
}
}
}
"""
public let operationName: String = "Apartment"
public var id: Int
public var user: String
public init(id: Int, user: String) {
self.id = id
self.user = user
}
public var variables: GraphQLMap? {
return ["id": id, "user": user]
}
public struct Data: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["Query"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("apartment", arguments: ["id": GraphQLVariable("id")], type: .object(Apartment.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(apartment: Apartment? = nil) {
self.init(unsafeResultMap: ["__typename": "Query", "apartment": apartment.flatMap { (value: Apartment) -> ResultMap in value.resultMap }])
}
public var apartment: Apartment? {
get {
return (resultMap["apartment"] as? ResultMap).flatMap { Apartment(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "apartment")
}
}
public struct Apartment: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["ApartmentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("status", type: .scalar(AptStatus.self)),
GraphQLField("place", type: .object(Place.selections)),
GraphQLField("latestAuction", type: .object(LatestAuction.selections)),
GraphQLField("m2", type: .scalar(Double.self)),
GraphQLField("livingM2", type: .scalar(Double.self)),
GraphQLField("kitchenM2", type: .scalar(Double.self)),
GraphQLField("rooms", type: .scalar(Int.self)),
GraphQLField("floor", type: .scalar(Int.self)),
GraphQLField("numberOfFloors", type: .scalar(Int.self)),
GraphQLField("number", type: .scalar(Int.self)),
GraphQLField("description", type: .scalar(String.self)),
GraphQLField("buildingYear", type: .scalar(Int.self)),
GraphQLField("houseType", type: .scalar(HouseType.self)),
GraphQLField("hasElevator", type: .scalar(Bool.self)),
GraphQLField("hasCargoElevator", type: .scalar(Bool.self)),
GraphQLField("balconies", type: .scalar(AptBalconies.self)),
GraphQLField("hasLoggia", type: .scalar(Bool.self)),
GraphQLField("hasYardWindows", type: .scalar(Bool.self)),
GraphQLField("hasStreetWindows", type: .scalar(Bool.self)),
GraphQLField("combinedBaths", type: .scalar(Bool.self)),
GraphQLField("dividedBaths", type: .scalar(Bool.self)),
GraphQLField("ceilingHeight", type: .scalar(Double.self)),
GraphQLField("hasGroundParking", type: .scalar(Bool.self)),
GraphQLField("hasUndergroundParking", type: .scalar(Bool.self)),
GraphQLField("hasMultilevelParking", type: .scalar(Bool.self)),
GraphQLField("housingComplex", type: .scalar(String.self)),
GraphQLField("hasGas", type: .scalar(Bool.self)),
GraphQLField("hasVideoSurveillance", type: .scalar(Bool.self)),
GraphQLField("hasIntercom", type: .scalar(Bool.self)),
GraphQLField("hasConcierge", type: .scalar(Bool.self)),
GraphQLField("hasSecurity", type: .scalar(Bool.self)),
GraphQLField("hasGarbageChute", type: .scalar(Bool.self)),
GraphQLField("subways", type: .list(.object(Subway.selections))),
GraphQLField("isStudio", type: .scalar(Bool.self)),
GraphQLField("photos", type: .list(.object(Photo.selections))),
GraphQLField("documents", type: .list(.object(Document.selections))),
GraphQLField("user", type: .object(User.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, status: AptStatus? = nil, place: Place? = nil, latestAuction: LatestAuction? = nil, m2: Double? = nil, livingM2: Double? = nil, kitchenM2: Double? = nil, rooms: Int? = nil, floor: Int? = nil, numberOfFloors: Int? = nil, number: Int? = nil, description: String? = nil, buildingYear: Int? = nil, houseType: HouseType? = nil, hasElevator: Bool? = nil, hasCargoElevator: Bool? = nil, balconies: AptBalconies? = nil, hasLoggia: Bool? = nil, hasYardWindows: Bool? = nil, hasStreetWindows: Bool? = nil, combinedBaths: Bool? = nil, dividedBaths: Bool? = nil, ceilingHeight: Double? = nil, hasGroundParking: Bool? = nil, hasUndergroundParking: Bool? = nil, hasMultilevelParking: Bool? = nil, housingComplex: String? = nil, hasGas: Bool? = nil, hasVideoSurveillance: Bool? = nil, hasIntercom: Bool? = nil, hasConcierge: Bool? = nil, hasSecurity: Bool? = nil, hasGarbageChute: Bool? = nil, subways: [Subway?]? = nil, isStudio: Bool? = nil, photos: [Photo?]? = nil, documents: [Document?]? = nil, user: User? = nil) {
// swiftlint:disable line_length
self.init(unsafeResultMap: ["__typename": "ApartmentNode", "id": id, "status": status, "place": place.flatMap { (value: Place) -> ResultMap in value.resultMap }, "latestAuction": latestAuction.flatMap { (value: LatestAuction) -> ResultMap in value.resultMap }, "m2": m2, "livingM2": livingM2, "kitchenM2": kitchenM2, "rooms": rooms, "floor": floor, "numberOfFloors": numberOfFloors, "number": number, "description": description, "buildingYear": buildingYear, "houseType": houseType, "hasElevator": hasElevator, "hasCargoElevator": hasCargoElevator, "balconies": balconies, "hasLoggia": hasLoggia, "hasYardWindows": hasYardWindows, "hasStreetWindows": hasStreetWindows, "combinedBaths": combinedBaths, "dividedBaths": dividedBaths, "ceilingHeight": ceilingHeight, "hasGroundParking": hasGroundParking, "hasUndergroundParking": hasUndergroundParking, "hasMultilevelParking": hasMultilevelParking, "housingComplex": housingComplex, "hasGas": hasGas, "hasVideoSurveillance": hasVideoSurveillance, "hasIntercom": hasIntercom, "hasConcierge": hasConcierge, "hasSecurity": hasSecurity, "hasGarbageChute": hasGarbageChute, "subways": subways.flatMap { (value: [Subway?]) -> [ResultMap?] in value.map { (value: Subway?) -> ResultMap? in value.flatMap { (value: Subway) -> ResultMap in value.resultMap } } }, "isStudio": isStudio, "photos": photos.flatMap { (value: [Photo?]) -> [ResultMap?] in value.map { (value: Photo?) -> ResultMap? in value.flatMap { (value: Photo) -> ResultMap in value.resultMap } } }, "documents": documents.flatMap { (value: [Document?]) -> [ResultMap?] in value.map { (value: Document?) -> ResultMap? in value.flatMap { (value: Document) -> ResultMap in value.resultMap } } }, "user": user.flatMap { (value: User) -> ResultMap in value.resultMap }])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
// swiftlint:disable force_cast
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var status: AptStatus? {
get {
return resultMap["status"] as? AptStatus
}
set {
resultMap.updateValue(newValue, forKey: "status")
}
}
public var place: Place? {
get {
return (resultMap["place"] as? ResultMap).flatMap { Place(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "place")
}
}
public var latestAuction: LatestAuction? {
get {
return (resultMap["latestAuction"] as? ResultMap).flatMap { LatestAuction(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "latestAuction")
}
}
public var m2: Double? {
get {
return resultMap["m2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "m2")
}
}
public var livingM2: Double? {
get {
return resultMap["livingM2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "livingM2")
}
}
public var kitchenM2: Double? {
get {
return resultMap["kitchenM2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "kitchenM2")
}
}
public var rooms: Int? {
get {
return resultMap["rooms"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "rooms")
}
}
public var floor: Int? {
get {
return resultMap["floor"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "floor")
}
}
public var numberOfFloors: Int? {
get {
return resultMap["numberOfFloors"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "numberOfFloors")
}
}
public var number: Int? {
get {
return resultMap["number"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "number")
}
}
public var description: String? {
get {
return resultMap["description"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "description")
}
}
public var buildingYear: Int? {
get {
return resultMap["buildingYear"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "buildingYear")
}
}
public var houseType: HouseType? {
get {
return resultMap["houseType"] as? HouseType
}
set {
resultMap.updateValue(newValue, forKey: "houseType")
}
}
public var hasElevator: Bool? {
get {
return resultMap["hasElevator"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasElevator")
}
}
public var hasCargoElevator: Bool? {
get {
return resultMap["hasCargoElevator"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasCargoElevator")
}
}
public var balconies: AptBalconies? {
get {
return resultMap["balconies"] as? AptBalconies
}
set {
resultMap.updateValue(newValue, forKey: "balconies")
}
}
public var hasLoggia: Bool? {
get {
return resultMap["hasLoggia"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasLoggia")
}
}
public var hasYardWindows: Bool? {
get {
return resultMap["hasYardWindows"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasYardWindows")
}
}
public var hasStreetWindows: Bool? {
get {
return resultMap["hasStreetWindows"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasStreetWindows")
}
}
public var combinedBaths: Bool? {
get {
return resultMap["combinedBaths"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "combinedBaths")
}
}
public var dividedBaths: Bool? {
get {
return resultMap["dividedBaths"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "dividedBaths")
}
}
public var ceilingHeight: Double? {
get {
return resultMap["ceilingHeight"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "ceilingHeight")
}
}
public var hasGroundParking: Bool? {
get {
return resultMap["hasGroundParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGroundParking")
}
}
public var hasUndergroundParking: Bool? {
get {
return resultMap["hasUndergroundParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasUndergroundParking")
}
}
public var hasMultilevelParking: Bool? {
get {
return resultMap["hasMultilevelParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasMultilevelParking")
}
}
public var housingComplex: String? {
get {
return resultMap["housingComplex"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "housingComplex")
}
}
public var hasGas: Bool? {
get {
return resultMap["hasGas"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGas")
}
}
public var hasVideoSurveillance: Bool? {
get {
return resultMap["hasVideoSurveillance"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasVideoSurveillance")
}
}
public var hasIntercom: Bool? {
get {
return resultMap["hasIntercom"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasIntercom")
}
}
public var hasConcierge: Bool? {
get {
return resultMap["hasConcierge"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasConcierge")
}
}
public var hasSecurity: Bool? {
get {
return resultMap["hasSecurity"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasSecurity")
}
}
public var hasGarbageChute: Bool? {
get {
return resultMap["hasGarbageChute"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGarbageChute")
}
}
public var subways: [Subway?]? {
get {
return (resultMap["subways"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Subway?] in value.map { (value: ResultMap?) -> Subway? in value.flatMap { (value: ResultMap) -> Subway in Subway(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Subway?]) -> [ResultMap?] in value.map { (value: Subway?) -> ResultMap? in value.flatMap { (value: Subway) -> ResultMap in value.resultMap } } }, forKey: "subways")
}
}
public var isStudio: Bool? {
get {
return resultMap["isStudio"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "isStudio")
}
}
public var photos: [Photo?]? {
get {
return (resultMap["photos"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Photo?] in value.map { (value: ResultMap?) -> Photo? in value.flatMap { (value: ResultMap) -> Photo in Photo(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Photo?]) -> [ResultMap?] in value.map { (value: Photo?) -> ResultMap? in value.flatMap { (value: Photo) -> ResultMap in value.resultMap } } }, forKey: "photos")
}
}
public var documents: [Document?]? {
get {
return (resultMap["documents"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Document?] in value.map { (value: ResultMap?) -> Document? in value.flatMap { (value: ResultMap) -> Document in Document(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Document?]) -> [ResultMap?] in value.map { (value: Document?) -> ResultMap? in value.flatMap { (value: Document) -> ResultMap in value.resultMap } } }, forKey: "documents")
}
}
public var user: User? {
get {
return (resultMap["user"] as? ResultMap).flatMap { User(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "user")
}
}
public struct Place: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["PlaceNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("lat", type: .scalar(String.self)),
GraphQLField("lon", type: .scalar(String.self)),
GraphQLField("address", type: .nonNull(.scalar(String.self))),
GraphQLField("city", type: .object(City.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(lat: String? = nil, lon: String? = nil, address: String, city: City? = nil) {
self.init(unsafeResultMap: ["__typename": "PlaceNode", "lat": lat, "lon": lon, "address": address, "city": city.flatMap { (value: City) -> ResultMap in value.resultMap }])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var lat: String? {
get {
return resultMap["lat"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "lat")
}
}
public var lon: String? {
get {
return resultMap["lon"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "lon")
}
}
public var address: String {
get {
return resultMap["address"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "address")
}
}
public var city: City? {
get {
return (resultMap["city"] as? ResultMap).flatMap { City(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "city")
}
}
public struct City: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["CityNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("name", type: .scalar(String.self)),
GraphQLField("country", type: .object(Country.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(name: String? = nil, country: Country? = nil) {
self.init(unsafeResultMap: ["__typename": "CityNode", "name": name, "country": country.flatMap { (value: Country) -> ResultMap in value.resultMap }])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
public var country: Country? {
get {
return (resultMap["country"] as? ResultMap).flatMap { Country(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "country")
}
}
public struct Country: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["CountryNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("name", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(name: String? = nil) {
self.init(unsafeResultMap: ["__typename": "CountryNode", "name": name])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
}
}
}
public struct LatestAuction: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["AuctionNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("hasAccountBid", arguments: ["account": GraphQLVariable("user")], type: .scalar(Bool.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(hasAccountBid: Bool? = nil) {
self.init(unsafeResultMap: ["__typename": "AuctionNode", "hasAccountBid": hasAccountBid])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var hasAccountBid: Bool? {
get {
return resultMap["hasAccountBid"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasAccountBid")
}
}
}
public struct Subway: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["RoadToSubwayNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("way", type: .scalar(WayToGet.self)),
GraphQLField("minutes", type: .scalar(RoadTime.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(way: WayToGet? = nil, minutes: RoadTime? = nil) {
self.init(unsafeResultMap: ["__typename": "RoadToSubwayNode", "way": way, "minutes": minutes])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var way: WayToGet? {
get {
return resultMap["way"] as? WayToGet
}
set {
resultMap.updateValue(newValue, forKey: "way")
}
}
public var minutes: RoadTime? {
get {
return resultMap["minutes"] as? RoadTime
}
set {
resultMap.updateValue(newValue, forKey: "minutes")
}
}
}
public struct Photo: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["DocumentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("link", type: .scalar(String.self)),
GraphQLField("docType", type: .scalar(DocumentType.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, link: String? = nil, docType: DocumentType? = nil) {
self.init(unsafeResultMap: ["__typename": "DocumentNode", "id": id, "link": link, "docType": docType])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var link: String? {
get {
return resultMap["link"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "link")
}
}
public var docType: DocumentType? {
get {
return resultMap["docType"] as? DocumentType
}
set {
resultMap.updateValue(newValue, forKey: "docType")
}
}
}
public struct Document: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["DocumentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("link", type: .scalar(String.self)),
GraphQLField("name", type: .scalar(String.self)),
GraphQLField("docType", type: .scalar(DocumentType.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, link: String? = nil, name: String? = nil, docType: DocumentType? = nil) {
self.init(unsafeResultMap: ["__typename": "DocumentNode", "id": id, "link": link, "name": name, "docType": docType])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var link: String? {
get {
return resultMap["link"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "link")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
public var docType: DocumentType? {
get {
return resultMap["docType"] as? DocumentType
}
set {
resultMap.updateValue(newValue, forKey: "docType")
}
}
}
public struct User: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["UserNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("email", type: .scalar(String.self)),
GraphQLField("phone", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, email: String? = nil, phone: String? = nil) {
self.init(unsafeResultMap: ["__typename": "UserNode", "id": id, "email": email, "phone": phone])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var email: String? {
get {
return resultMap["email"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "email")
}
}
public var phone: String? {
get {
return resultMap["phone"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "phone")
}
}
}
}
}
}
// swiftlint:disable type_body_length
public final class ApartmentsQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
public let operationDefinition: String =
"""
query Apartments($filters: ApartmentFilterInput, $first: Int, $offset: Int, $myOwn: Boolean = false, $favorites: Boolean = false, $sort: [ApartmentSortEnum], $onlyTotalCount: Boolean = false, $user: String!) {
apartments(filters: $filters, first: $first, offset: $offset, myOwn: $myOwn, favorites: $favorites, sort: $sort) {
__typename
pageInfo {
__typename
total
}
apartments @skip(if: $onlyTotalCount) {
__typename
id
status
place {
__typename
lon
lat
address
city {
__typename
name
country {
__typename
name
}
}
}
status
isFavorite
m2
livingM2
kitchenM2
rooms
floor
numberOfFloors
description
buildingYear
houseType
hasElevator
hasCargoElevator
balconies
hasLoggia
hasYardWindows
hasStreetWindows
combinedBaths
dividedBaths
ceilingHeight
hasGroundParking
hasUndergroundParking
hasMultilevelParking
housingComplex
hasGas
hasVideoSurveillance
hasIntercom
hasConcierge
hasSecurity
hasGarbageChute
subways {
__typename
way
minutes
}
isStudio
number @include(if: $myOwn)
photos(size: SIZE_981x402) {
__typename
id
link
docType
}
documents {
__typename
id
link
name
docType
}
user {
__typename
id
email
phone
}
actualRental {
__typename
expirationDate
}
latestAuction {
__typename
endDate
winner {
__typename
eosAccount
}
hasUnconfirmedTxns
notaryAccount
ownerAccount
cancelBidParams {
__typename
amount
symbol
to
memo
contract
action
}
hasAccountBid(account: $user)
paymentInfo {
__typename
payment
paymentFee
memo
token
platformAccount
}
}
}
}
}
"""
public let operationName: String = "Apartments"
public var filters: ApartmentFilterInput?
public var first: Int?
public var offset: Int?
public var myOwn: Bool?
public var favorites: Bool?
public var sort: [ApartmentSortEnum?]?
public var onlyTotalCount: Bool?
public var user: String
public init(filters: ApartmentFilterInput? = nil, first: Int? = nil, offset: Int? = nil, myOwn: Bool? = nil, favorites: Bool? = nil, sort: [ApartmentSortEnum?]? = nil, onlyTotalCount: Bool? = nil, user: String) {
self.filters = filters
self.first = first
self.offset = offset
self.myOwn = myOwn
self.favorites = favorites
self.sort = sort
self.onlyTotalCount = onlyTotalCount
self.user = user
}
public var variables: GraphQLMap? {
return ["filters": filters, "first": first, "offset": offset, "myOwn": myOwn, "favorites": favorites, "sort": sort, "onlyTotalCount": onlyTotalCount, "user": user]
}
// swiftlint:disable type_body_length
public struct Data: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["Query"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("apartments", arguments: ["filters": GraphQLVariable("filters"), "first": GraphQLVariable("first"), "offset": GraphQLVariable("offset"), "myOwn": GraphQLVariable("myOwn"), "favorites": GraphQLVariable("favorites"), "sort": GraphQLVariable("sort")], type: .nonNull(.object(Apartment.selections))),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(apartments: Apartment) {
self.init(unsafeResultMap: ["__typename": "Query", "apartments": apartments.resultMap])
}
public var apartments: Apartment {
get {
// swiftlint:disable force_cast
return Apartment(unsafeResultMap: resultMap["apartments"]! as! ResultMap)
}
set {
resultMap.updateValue(newValue.resultMap, forKey: "apartments")
}
}
// swiftlint:disable type_body_length
public struct Apartment: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["ApartmentListNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("pageInfo", type: .nonNull(.object(PageInfo.selections))),
GraphQLBooleanCondition(variableName: "onlyTotalCount", inverted: true, selections: [
GraphQLField("apartments", type: .nonNull(.list(.object(Apartment.selections)))),
]),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(pageInfo: PageInfo, apartments: [Apartment?]? = nil) {
self.init(unsafeResultMap: ["__typename": "ApartmentListNode", "pageInfo": pageInfo.resultMap, "apartments": apartments.flatMap { (value: [Apartment?]) -> [ResultMap?] in value.map { (value: Apartment?) -> ResultMap? in value.flatMap { (value: Apartment) -> ResultMap in value.resultMap } } }])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var pageInfo: PageInfo {
get {
return PageInfo(unsafeResultMap: resultMap["pageInfo"]! as! ResultMap)
}
set {
resultMap.updateValue(newValue.resultMap, forKey: "pageInfo")
}
}
public var apartments: [Apartment?]? {
get {
return (resultMap["apartments"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Apartment?] in value.map { (value: ResultMap?) -> Apartment? in value.flatMap { (value: ResultMap) -> Apartment in Apartment(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Apartment?]) -> [ResultMap?] in value.map { (value: Apartment?) -> ResultMap? in value.flatMap { (value: Apartment) -> ResultMap in value.resultMap } } }, forKey: "apartments")
}
}
public struct PageInfo: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["PageInfo"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("total", type: .nonNull(.scalar(Int.self))),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(total: Int) {
self.init(unsafeResultMap: ["__typename": "PageInfo", "total": total])
}
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var total: Int {
get {
return resultMap["total"]! as! Int
}
set {
resultMap.updateValue(newValue, forKey: "total")
}
}
}
public struct Apartment: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["ApartmentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("status", type: .scalar(AptStatus.self)),
GraphQLField("place", type: .object(Place.selections)),
GraphQLField("status", type: .scalar(AptStatus.self)),
GraphQLField("isFavorite", type: .scalar(Bool.self)),
GraphQLField("m2", type: .scalar(Double.self)),
GraphQLField("livingM2", type: .scalar(Double.self)),
GraphQLField("kitchenM2", type: .scalar(Double.self)),
GraphQLField("rooms", type: .scalar(Int.self)),
GraphQLField("floor", type: .scalar(Int.self)),
GraphQLField("numberOfFloors", type: .scalar(Int.self)),
GraphQLField("description", type: .scalar(String.self)),
GraphQLField("buildingYear", type: .scalar(Int.self)),
GraphQLField("houseType", type: .scalar(HouseType.self)),
GraphQLField("hasElevator", type: .scalar(Bool.self)),
GraphQLField("hasCargoElevator", type: .scalar(Bool.self)),
GraphQLField("balconies", type: .scalar(AptBalconies.self)),
GraphQLField("hasLoggia", type: .scalar(Bool.self)),
GraphQLField("hasYardWindows", type: .scalar(Bool.self)),
GraphQLField("hasStreetWindows", type: .scalar(Bool.self)),
GraphQLField("combinedBaths", type: .scalar(Bool.self)),
GraphQLField("dividedBaths", type: .scalar(Bool.self)),
GraphQLField("ceilingHeight", type: .scalar(Double.self)),
GraphQLField("hasGroundParking", type: .scalar(Bool.self)),
GraphQLField("hasUndergroundParking", type: .scalar(Bool.self)),
GraphQLField("hasMultilevelParking", type: .scalar(Bool.self)),
GraphQLField("housingComplex", type: .scalar(String.self)),
GraphQLField("hasGas", type: .scalar(Bool.self)),
GraphQLField("hasVideoSurveillance", type: .scalar(Bool.self)),
GraphQLField("hasIntercom", type: .scalar(Bool.self)),
GraphQLField("hasConcierge", type: .scalar(Bool.self)),
GraphQLField("hasSecurity", type: .scalar(Bool.self)),
GraphQLField("hasGarbageChute", type: .scalar(Bool.self)),
GraphQLField("subways", type: .list(.object(Subway.selections))),
GraphQLField("isStudio", type: .scalar(Bool.self)),
GraphQLBooleanCondition(variableName: "myOwn", inverted: false, selections: [
GraphQLField("number", type: .scalar(Int.self)),
]),
GraphQLField("photos", arguments: ["size": "SIZE_981x402"], type: .list(.object(Photo.selections))),
GraphQLField("documents", type: .list(.object(Document.selections))),
GraphQLField("user", type: .object(User.selections)),
GraphQLField("actualRental", type: .object(ActualRental.selections)),
GraphQLField("latestAuction", type: .object(LatestAuction.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, status: AptStatus? = nil, place: Place? = nil, isFavorite: Bool? = nil, m2: Double? = nil, livingM2: Double? = nil, kitchenM2: Double? = nil, rooms: Int? = nil, floor: Int? = nil, numberOfFloors: Int? = nil, description: String? = nil, buildingYear: Int? = nil, houseType: HouseType? = nil, hasElevator: Bool? = nil, hasCargoElevator: Bool? = nil, balconies: AptBalconies? = nil, hasLoggia: Bool? = nil, hasYardWindows: Bool? = nil, hasStreetWindows: Bool? = nil, combinedBaths: Bool? = nil, dividedBaths: Bool? = nil, ceilingHeight: Double? = nil, hasGroundParking: Bool? = nil, hasUndergroundParking: Bool? = nil, hasMultilevelParking: Bool? = nil, housingComplex: String? = nil, hasGas: Bool? = nil, hasVideoSurveillance: Bool? = nil, hasIntercom: Bool? = nil, hasConcierge: Bool? = nil, hasSecurity: Bool? = nil, hasGarbageChute: Bool? = nil, subways: [Subway?]? = nil, isStudio: Bool? = nil, number: Int? = nil, photos: [Photo?]? = nil, documents: [Document?]? = nil, user: User? = nil, actualRental: ActualRental? = nil, latestAuction: LatestAuction? = nil) {
// swiftlint:disable line_length
self.init(unsafeResultMap: ["__typename": "ApartmentNode", "id": id, "status": status, "place": place.flatMap { (value: Place) -> ResultMap in value.resultMap }, "isFavorite": isFavorite, "m2": m2, "livingM2": livingM2, "kitchenM2": kitchenM2, "rooms": rooms, "floor": floor, "numberOfFloors": numberOfFloors, "description": description, "buildingYear": buildingYear, "houseType": houseType, "hasElevator": hasElevator, "hasCargoElevator": hasCargoElevator, "balconies": balconies, "hasLoggia": hasLoggia, "hasYardWindows": hasYardWindows, "hasStreetWindows": hasStreetWindows, "combinedBaths": combinedBaths, "dividedBaths": dividedBaths, "ceilingHeight": ceilingHeight, "hasGroundParking": hasGroundParking, "hasUndergroundParking": hasUndergroundParking, "hasMultilevelParking": hasMultilevelParking, "housingComplex": housingComplex, "hasGas": hasGas, "hasVideoSurveillance": hasVideoSurveillance, "hasIntercom": hasIntercom, "hasConcierge": hasConcierge, "hasSecurity": hasSecurity, "hasGarbageChute": hasGarbageChute, "subways": subways.flatMap { (value: [Subway?]) -> [ResultMap?] in value.map { (value: Subway?) -> ResultMap? in value.flatMap { (value: Subway) -> ResultMap in value.resultMap } } }, "isStudio": isStudio, "number": number, "photos": photos.flatMap { (value: [Photo?]) -> [ResultMap?] in value.map { (value: Photo?) -> ResultMap? in value.flatMap { (value: Photo) -> ResultMap in value.resultMap } } }, "documents": documents.flatMap { (value: [Document?]) -> [ResultMap?] in value.map { (value: Document?) -> ResultMap? in value.flatMap { (value: Document) -> ResultMap in value.resultMap } } }, "user": user.flatMap { (value: User) -> ResultMap in value.resultMap }, "actualRental": actualRental.flatMap { (value: ActualRental) -> ResultMap in value.resultMap }, "latestAuction": latestAuction.flatMap { (value: LatestAuction) -> ResultMap in value.resultMap }])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var status: AptStatus? {
get {
return resultMap["status"] as? AptStatus
}
set {
resultMap.updateValue(newValue, forKey: "status")
}
}
public var place: Place? {
get {
return (resultMap["place"] as? ResultMap).flatMap { Place(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "place")
}
}
public var isFavorite: Bool? {
get {
return resultMap["isFavorite"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "isFavorite")
}
}
public var m2: Double? {
get {
return resultMap["m2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "m2")
}
}
public var livingM2: Double? {
get {
return resultMap["livingM2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "livingM2")
}
}
public var kitchenM2: Double? {
get {
return resultMap["kitchenM2"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "kitchenM2")
}
}
public var rooms: Int? {
get {
return resultMap["rooms"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "rooms")
}
}
public var floor: Int? {
get {
return resultMap["floor"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "floor")
}
}
public var numberOfFloors: Int? {
get {
return resultMap["numberOfFloors"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "numberOfFloors")
}
}
public var description: String? {
get {
return resultMap["description"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "description")
}
}
public var buildingYear: Int? {
get {
return resultMap["buildingYear"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "buildingYear")
}
}
public var houseType: HouseType? {
get {
return resultMap["houseType"] as? HouseType
}
set {
resultMap.updateValue(newValue, forKey: "houseType")
}
}
public var hasElevator: Bool? {
get {
return resultMap["hasElevator"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasElevator")
}
}
public var hasCargoElevator: Bool? {
get {
return resultMap["hasCargoElevator"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasCargoElevator")
}
}
public var balconies: AptBalconies? {
get {
return resultMap["balconies"] as? AptBalconies
}
set {
resultMap.updateValue(newValue, forKey: "balconies")
}
}
public var hasLoggia: Bool? {
get {
return resultMap["hasLoggia"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasLoggia")
}
}
public var hasYardWindows: Bool? {
get {
return resultMap["hasYardWindows"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasYardWindows")
}
}
public var hasStreetWindows: Bool? {
get {
return resultMap["hasStreetWindows"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasStreetWindows")
}
}
public var combinedBaths: Bool? {
get {
return resultMap["combinedBaths"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "combinedBaths")
}
}
public var dividedBaths: Bool? {
get {
return resultMap["dividedBaths"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "dividedBaths")
}
}
public var ceilingHeight: Double? {
get {
return resultMap["ceilingHeight"] as? Double
}
set {
resultMap.updateValue(newValue, forKey: "ceilingHeight")
}
}
public var hasGroundParking: Bool? {
get {
return resultMap["hasGroundParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGroundParking")
}
}
public var hasUndergroundParking: Bool? {
get {
return resultMap["hasUndergroundParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasUndergroundParking")
}
}
public var hasMultilevelParking: Bool? {
get {
return resultMap["hasMultilevelParking"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasMultilevelParking")
}
}
public var housingComplex: String? {
get {
return resultMap["housingComplex"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "housingComplex")
}
}
public var hasGas: Bool? {
get {
return resultMap["hasGas"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGas")
}
}
public var hasVideoSurveillance: Bool? {
get {
return resultMap["hasVideoSurveillance"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasVideoSurveillance")
}
}
public var hasIntercom: Bool? {
get {
return resultMap["hasIntercom"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasIntercom")
}
}
public var hasConcierge: Bool? {
get {
return resultMap["hasConcierge"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasConcierge")
}
}
public var hasSecurity: Bool? {
get {
return resultMap["hasSecurity"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasSecurity")
}
}
public var hasGarbageChute: Bool? {
get {
return resultMap["hasGarbageChute"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasGarbageChute")
}
}
public var subways: [Subway?]? {
get {
return (resultMap["subways"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Subway?] in value.map { (value: ResultMap?) -> Subway? in value.flatMap { (value: ResultMap) -> Subway in Subway(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Subway?]) -> [ResultMap?] in value.map { (value: Subway?) -> ResultMap? in value.flatMap { (value: Subway) -> ResultMap in value.resultMap } } }, forKey: "subways")
}
}
public var isStudio: Bool? {
get {
return resultMap["isStudio"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "isStudio")
}
}
public var number: Int? {
get {
return resultMap["number"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "number")
}
}
public var photos: [Photo?]? {
get {
return (resultMap["photos"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Photo?] in value.map { (value: ResultMap?) -> Photo? in value.flatMap { (value: ResultMap) -> Photo in Photo(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Photo?]) -> [ResultMap?] in value.map { (value: Photo?) -> ResultMap? in value.flatMap { (value: Photo) -> ResultMap in value.resultMap } } }, forKey: "photos")
}
}
public var documents: [Document?]? {
get {
return (resultMap["documents"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [Document?] in value.map { (value: ResultMap?) -> Document? in value.flatMap { (value: ResultMap) -> Document in Document(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [Document?]) -> [ResultMap?] in value.map { (value: Document?) -> ResultMap? in value.flatMap { (value: Document) -> ResultMap in value.resultMap } } }, forKey: "documents")
}
}
public var user: User? {
get {
return (resultMap["user"] as? ResultMap).flatMap { User(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "user")
}
}
public var actualRental: ActualRental? {
get {
return (resultMap["actualRental"] as? ResultMap).flatMap { ActualRental(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "actualRental")
}
}
public var latestAuction: LatestAuction? {
get {
return (resultMap["latestAuction"] as? ResultMap).flatMap { LatestAuction(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "latestAuction")
}
}
public struct Place: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["PlaceNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("lon", type: .scalar(String.self)),
GraphQLField("lat", type: .scalar(String.self)),
GraphQLField("address", type: .nonNull(.scalar(String.self))),
GraphQLField("city", type: .object(City.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(lon: String? = nil, lat: String? = nil, address: String, city: City? = nil) {
self.init(unsafeResultMap: ["__typename": "PlaceNode", "lon": lon, "lat": lat, "address": address, "city": city.flatMap { (value: City) -> ResultMap in value.resultMap }])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var lon: String? {
get {
return resultMap["lon"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "lon")
}
}
public var lat: String? {
get {
return resultMap["lat"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "lat")
}
}
public var address: String {
get {
return resultMap["address"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "address")
}
}
public var city: City? {
get {
return (resultMap["city"] as? ResultMap).flatMap { City(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "city")
}
}
public struct City: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["CityNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("name", type: .scalar(String.self)),
GraphQLField("country", type: .object(Country.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(name: String? = nil, country: Country? = nil) {
self.init(unsafeResultMap: ["__typename": "CityNode", "name": name, "country": country.flatMap { (value: Country) -> ResultMap in value.resultMap }])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
public var country: Country? {
get {
return (resultMap["country"] as? ResultMap).flatMap { Country(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "country")
}
}
public struct Country: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["CountryNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("name", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(name: String? = nil) {
self.init(unsafeResultMap: ["__typename": "CountryNode", "name": name])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
}
}
}
public struct Subway: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["RoadToSubwayNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("way", type: .scalar(WayToGet.self)),
GraphQLField("minutes", type: .scalar(RoadTime.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(way: WayToGet? = nil, minutes: RoadTime? = nil) {
self.init(unsafeResultMap: ["__typename": "RoadToSubwayNode", "way": way, "minutes": minutes])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var way: WayToGet? {
get {
return resultMap["way"] as? WayToGet
}
set {
resultMap.updateValue(newValue, forKey: "way")
}
}
public var minutes: RoadTime? {
get {
return resultMap["minutes"] as? RoadTime
}
set {
resultMap.updateValue(newValue, forKey: "minutes")
}
}
}
public struct Photo: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["DocumentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("link", type: .scalar(String.self)),
GraphQLField("docType", type: .scalar(DocumentType.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, link: String? = nil, docType: DocumentType? = nil) {
self.init(unsafeResultMap: ["__typename": "DocumentNode", "id": id, "link": link, "docType": docType])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var link: String? {
get {
return resultMap["link"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "link")
}
}
public var docType: DocumentType? {
get {
return resultMap["docType"] as? DocumentType
}
set {
resultMap.updateValue(newValue, forKey: "docType")
}
}
}
public struct Document: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["DocumentNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("link", type: .scalar(String.self)),
GraphQLField("name", type: .scalar(String.self)),
GraphQLField("docType", type: .scalar(DocumentType.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, link: String? = nil, name: String? = nil, docType: DocumentType? = nil) {
self.init(unsafeResultMap: ["__typename": "DocumentNode", "id": id, "link": link, "name": name, "docType": docType])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var link: String? {
get {
return resultMap["link"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "link")
}
}
public var name: String? {
get {
return resultMap["name"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "name")
}
}
public var docType: DocumentType? {
get {
return resultMap["docType"] as? DocumentType
}
set {
resultMap.updateValue(newValue, forKey: "docType")
}
}
}
public struct User: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["UserNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("id", type: .scalar(Int.self)),
GraphQLField("email", type: .scalar(String.self)),
GraphQLField("phone", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(id: Int? = nil, email: String? = nil, phone: String? = nil) {
self.init(unsafeResultMap: ["__typename": "UserNode", "id": id, "email": email, "phone": phone])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var id: Int? {
get {
return resultMap["id"] as? Int
}
set {
resultMap.updateValue(newValue, forKey: "id")
}
}
public var email: String? {
get {
return resultMap["email"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "email")
}
}
public var phone: String? {
get {
return resultMap["phone"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "phone")
}
}
}
public struct ActualRental: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["RentalNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("expirationDate", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(expirationDate: String? = nil) {
self.init(unsafeResultMap: ["__typename": "RentalNode", "expirationDate": expirationDate])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var expirationDate: String? {
get {
return resultMap["expirationDate"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "expirationDate")
}
}
}
public struct LatestAuction: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["AuctionNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("endDate", type: .scalar(String.self)),
GraphQLField("winner", type: .object(Winner.selections)),
GraphQLField("hasUnconfirmedTxns", type: .scalar(Bool.self)),
GraphQLField("notaryAccount", type: .scalar(String.self)),
GraphQLField("ownerAccount", type: .scalar(String.self)),
GraphQLField("cancelBidParams", type: .object(CancelBidParam.selections)),
GraphQLField("hasAccountBid", arguments: ["account": GraphQLVariable("user")], type: .scalar(Bool.self)),
GraphQLField("paymentInfo", type: .object(PaymentInfo.selections)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(endDate: String? = nil, winner: Winner? = nil, hasUnconfirmedTxns: Bool? = nil, notaryAccount: String? = nil, ownerAccount: String? = nil, cancelBidParams: CancelBidParam? = nil, hasAccountBid: Bool? = nil, paymentInfo: PaymentInfo? = nil) {
self.init(unsafeResultMap: ["__typename": "AuctionNode", "endDate": endDate, "winner": winner.flatMap { (value: Winner) -> ResultMap in value.resultMap }, "hasUnconfirmedTxns": hasUnconfirmedTxns, "notaryAccount": notaryAccount, "ownerAccount": ownerAccount, "cancelBidParams": cancelBidParams.flatMap { (value: CancelBidParam) -> ResultMap in value.resultMap }, "hasAccountBid": hasAccountBid, "paymentInfo": paymentInfo.flatMap { (value: PaymentInfo) -> ResultMap in value.resultMap }])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var endDate: String? {
get {
return resultMap["endDate"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "endDate")
}
}
public var winner: Winner? {
get {
return (resultMap["winner"] as? ResultMap).flatMap { Winner(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "winner")
}
}
public var hasUnconfirmedTxns: Bool? {
get {
return resultMap["hasUnconfirmedTxns"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasUnconfirmedTxns")
}
}
public var notaryAccount: String? {
get {
return resultMap["notaryAccount"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "notaryAccount")
}
}
public var ownerAccount: String? {
get {
return resultMap["ownerAccount"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "ownerAccount")
}
}
public var cancelBidParams: CancelBidParam? {
get {
return (resultMap["cancelBidParams"] as? ResultMap).flatMap { CancelBidParam(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "cancelBidParams")
}
}
public var hasAccountBid: Bool? {
get {
return resultMap["hasAccountBid"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "hasAccountBid")
}
}
public var paymentInfo: PaymentInfo? {
get {
return (resultMap["paymentInfo"] as? ResultMap).flatMap { PaymentInfo(unsafeResultMap: $0) }
}
set {
resultMap.updateValue(newValue?.resultMap, forKey: "paymentInfo")
}
}
public struct Winner: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["UserNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("eosAccount", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(eosAccount: String? = nil) {
self.init(unsafeResultMap: ["__typename": "UserNode", "eosAccount": eosAccount])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var eosAccount: String? {
get {
return resultMap["eosAccount"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "eosAccount")
}
}
}
public struct CancelBidParam: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["CancelBidStruct"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("amount", type: .scalar(String.self)),
GraphQLField("symbol", type: .scalar(String.self)),
GraphQLField("to", type: .scalar(String.self)),
GraphQLField("memo", type: .scalar(String.self)),
GraphQLField("contract", type: .scalar(String.self)),
GraphQLField("action", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(amount: String? = nil, symbol: String? = nil, to: String? = nil, memo: String? = nil, contract: String? = nil, action: String? = nil) {
self.init(unsafeResultMap: ["__typename": "CancelBidStruct", "amount": amount, "symbol": symbol, "to": to, "memo": memo, "contract": contract, "action": action])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
public var amount: String? {
get {
return resultMap["amount"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "amount")
}
}
public var symbol: String? {
get {
return resultMap["symbol"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "symbol")
}
}
public var to: String? {
get {
return resultMap["to"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "to")
}
}
public var memo: String? {
get {
return resultMap["memo"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "memo")
}
}
public var contract: String? {
get {
return resultMap["contract"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "contract")
}
}
public var action: String? {
get {
return resultMap["action"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "action")
}
}
}
public struct PaymentInfo: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["AuctionPaymentsStruct"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("payment", type: .scalar(String.self)),
GraphQLField("paymentFee", type: .scalar(String.self)),
GraphQLField("memo", type: .scalar(String.self)),
GraphQLField("token", type: .scalar(String.self)),
GraphQLField("platformAccount", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(payment: String? = nil, paymentFee: String? = nil, memo: String? = nil, token: String? = nil, platformAccount: String? = nil) {
self.init(unsafeResultMap: ["__typename": "AuctionPaymentsStruct", "payment": payment, "paymentFee": paymentFee, "memo": memo, "token": token, "platformAccount": platformAccount])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
/// Volume of auction transfer
public var payment: String? {
get {
return resultMap["payment"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "payment")
}
}
/// Volume of return commission
public var paymentFee: String? {
get {
return resultMap["paymentFee"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "paymentFee")
}
}
public var memo: String? {
get {
return resultMap["memo"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "memo")
}
}
public var token: String? {
get {
return resultMap["token"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "token")
}
}
public var platformAccount: String? {
get {
return resultMap["platformAccount"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "platformAccount")
}
}
}
}
}
}
}
}
public final class InheritancesQuery: GraphQLQuery {
/// The raw GraphQL definition of this operation.
public let operationDefinition: String =
"""
query inheritances($usernames: [String]) {
reverseInheritance(heirsUsernames: $usernames) {
__typename
ownerUsername
inheritorUsername
shareDatetime
allowedToShare
smartContract
share
}
}
"""
public let operationName: String = "inheritances"
public var usernames: [String?]?
public init(usernames: [String?]? = nil) {
self.usernames = usernames
}
public var variables: GraphQLMap? {
return ["usernames": usernames]
}
public struct Data: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["Query"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("reverseInheritance", arguments: ["heirsUsernames": GraphQLVariable("usernames")], type: .list(.object(ReverseInheritance.selections))),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(reverseInheritance: [ReverseInheritance?]? = nil) {
self.init(unsafeResultMap: ["__typename": "Query", "reverseInheritance": reverseInheritance.flatMap { (value: [ReverseInheritance?]) -> [ResultMap?] in value.map { (value: ReverseInheritance?) -> ResultMap? in value.flatMap { (value: ReverseInheritance) -> ResultMap in value.resultMap } } }])
}
public var reverseInheritance: [ReverseInheritance?]? {
get {
return (resultMap["reverseInheritance"] as? [ResultMap?]).flatMap { (value: [ResultMap?]) -> [ReverseInheritance?] in value.map { (value: ResultMap?) -> ReverseInheritance? in value.flatMap { (value: ResultMap) -> ReverseInheritance in ReverseInheritance(unsafeResultMap: value) } } }
}
set {
resultMap.updateValue(newValue.flatMap { (value: [ReverseInheritance?]) -> [ResultMap?] in value.map { (value: ReverseInheritance?) -> ResultMap? in value.flatMap { (value: ReverseInheritance) -> ResultMap in value.resultMap } } }, forKey: "reverseInheritance")
}
}
public struct ReverseInheritance: GraphQLSelectionSet {
public static let possibleTypes: [String] = ["EOSInheritanceNode"]
public static var selections: [GraphQLSelection] {
return [
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
GraphQLField("ownerUsername", type: .scalar(String.self)),
GraphQLField("inheritorUsername", type: .scalar(String.self)),
GraphQLField("shareDatetime", type: .scalar(String.self)),
GraphQLField("allowedToShare", type: .scalar(Bool.self)),
GraphQLField("smartContract", type: .scalar(String.self)),
GraphQLField("share", type: .scalar(String.self)),
]
}
public private(set) var resultMap: ResultMap
public init(unsafeResultMap: ResultMap) {
self.resultMap = unsafeResultMap
}
public init(ownerUsername: String? = nil, inheritorUsername: String? = nil, shareDatetime: String? = nil, allowedToShare: Bool? = nil, smartContract: String? = nil, share: String? = nil) {
self.init(unsafeResultMap: ["__typename": "EOSInheritanceNode", "ownerUsername": ownerUsername, "inheritorUsername": inheritorUsername, "shareDatetime": shareDatetime, "allowedToShare": allowedToShare, "smartContract": smartContract, "share": share])
}
// swiftlint:disable identifier_name
public var __typename: String {
get {
return resultMap["__typename"]! as! String
}
set {
resultMap.updateValue(newValue, forKey: "__typename")
}
}
/// The user, who will share his property
public var ownerUsername: String? {
get {
return resultMap["ownerUsername"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "ownerUsername")
}
}
/// The user, who will inherit the owners's property
public var inheritorUsername: String? {
get {
return resultMap["inheritorUsername"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "inheritorUsername")
}
}
public var shareDatetime: String? {
get {
return resultMap["shareDatetime"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "shareDatetime")
}
}
public var allowedToShare: Bool? {
get {
return resultMap["allowedToShare"] as? Bool
}
set {
resultMap.updateValue(newValue, forKey: "allowedToShare")
}
}
public var smartContract: String? {
get {
return resultMap["smartContract"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "smartContract")
}
}
/// Share in percents. i.e. 50.0
public var share: String? {
get {
return resultMap["share"] as? String
}
set {
resultMap.updateValue(newValue, forKey: "share")
}
}
}
}
}