// // AccountNotificationTokenRequest.swift // // // Created by Juraldinio on 01.08.2022. // import Foundation struct AccountNotificationTokenRequest: Encodable { struct Variables: Encodable { let deviceToken: String let deviceType: String let eosAccounts: [String] let langCode: String let application: String } // MARK: - GraphQL let variables: Variables let operationName = "updatePushNotificationDeviceToken" let query: String = #""" mutation updatePushNotificationDeviceToken( $deviceToken: String!, $deviceType: DeviceTypeEnum, $eosAccounts: [String]!, $langCode: Lang! $application: ApplicationEnum ) { updatePushNotificationDeviceToken( deviceToken: $deviceToken, deviceType: $deviceType, eosAccounts: $eosAccounts, langCode: $langCode, application: $application ) { errors } } """#.trimCompact() } struct AccountNotificationTokenResponse: GraphQLResponse { static let node = "updatePushNotificationDeviceToken" }