#![allow(missing_docs)]
use chrono::Local;
use graphql_client::GraphQLQuery;
use std::fmt::Display;
type DateTime = chrono::DateTime<Local>;
type Any = serde_json::Value;
type Object = serde_json::Map<String, Any>;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetFiles.graphql",
response_derives = "Debug"
)]
pub struct GetFiles;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/DeleteFile.graphql",
response_derives = "Debug"
)]
pub struct DeleteFile;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/DeleteFileVersion.graphql",
response_derives = "Debug"
)]
pub struct DeleteFileVersion;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/StartJob.graphql",
response_derives = "Debug"
)]
pub struct StartJob;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/CancelJob.graphql",
response_derives = "Debug"
)]
pub struct CancelJob;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetJobs.graphql",
response_derives = "Debug"
)]
pub struct GetJobs;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetOwnedOrganization.graphql",
response_derives = "Debug"
)]
pub struct GetOwnedOrganization;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetOrganizationSelfMembership.graphql",
response_derives = "Debug"
)]
pub struct GetOrganizationSelfMembership;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetApplicationTypes.graphql",
response_derives = "Debug"
)]
pub struct GetApplicationTypes;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetDevices.graphql",
response_derives = "Debug"
)]
pub struct GetDevices;
pub enum DeviceState {
Active,
Inactive,
}
impl Display for DeviceState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
DeviceState::Active => write!(f, "active"),
DeviceState::Inactive => write!(f, "inactive"),
}
}
}
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/GetDevicesCSV.graphql",
response_derives = "Debug"
)]
pub struct GetDevicesCSV;