remoteit_api/
operations.rs1#![allow(missing_docs)]
2
3use std::fmt::Display;
4use chrono::Local;
5use graphql_client::GraphQLQuery;
6
7type DateTime = chrono::DateTime<Local>;
9type Any = serde_json::Value;
11type Object = serde_json::Map<String, Any>;
13
14#[derive(GraphQLQuery)]
18#[graphql(
19 schema_path = "src/graphql/schema.json",
20 query_path = "src/graphql/GetFiles.graphql",
21 response_derives = "Debug"
22)]
23pub struct GetFiles;
24
25#[derive(GraphQLQuery)]
27#[graphql(
28 schema_path = "src/graphql/schema.json",
29 query_path = "src/graphql/DeleteFile.graphql",
30 response_derives = "Debug"
31)]
32pub struct DeleteFile;
33
34#[derive(GraphQLQuery)]
36#[graphql(
37 schema_path = "src/graphql/schema.json",
38 query_path = "src/graphql/DeleteFileVersion.graphql",
39 response_derives = "Debug"
40)]
41pub struct DeleteFileVersion;
42
43#[derive(GraphQLQuery)]
45#[graphql(
46 schema_path = "src/graphql/schema.json",
47 query_path = "src/graphql/StartJob.graphql",
48 response_derives = "Debug"
49)]
50pub struct StartJob;
51
52#[derive(GraphQLQuery)]
54#[graphql(
55 schema_path = "src/graphql/schema.json",
56 query_path = "src/graphql/CancelJob.graphql",
57 response_derives = "Debug"
58)]
59pub struct CancelJob;
60
61#[derive(GraphQLQuery)]
64#[graphql(
65 schema_path = "src/graphql/schema.json",
66 query_path = "src/graphql/GetJobs.graphql",
67 response_derives = "Debug"
68)]
69pub struct GetJobs;
70#[derive(GraphQLQuery)]
73#[graphql(
74 schema_path = "src/graphql/schema.json",
75 query_path = "src/graphql/GetOwnedOrganization.graphql",
76 response_derives = "Debug"
77)]
78pub struct GetOwnedOrganization;
79
80#[derive(GraphQLQuery)]
81#[graphql(
82 schema_path = "src/graphql/schema.json",
83 query_path = "src/graphql/GetOrganizationSelfMembership.graphql",
84 response_derives = "Debug"
85)]
86pub struct GetOrganizationSelfMembership;
87#[derive(GraphQLQuery)]
92#[graphql(
93 schema_path = "src/graphql/schema.json",
94 query_path = "src/graphql/GetApplicationTypes.graphql",
95 response_derives = "Debug"
96)]
97pub struct GetApplicationTypes;
98
99#[derive(GraphQLQuery)]
102#[graphql(
103 schema_path = "src/graphql/schema.json",
104 query_path = "src/graphql/GetDevices.graphql",
105 response_derives = "Debug"
106)]
107pub struct GetDevices;
108pub enum DeviceState {
118 Active,
120 Inactive,
122}
123impl Display for DeviceState {
124 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125 match self {
126 DeviceState::Active => write!(f, "active"),
127 DeviceState::Inactive => write!(f, "inactive"),
128 }
129 }
130}
131
132#[derive(GraphQLQuery)]
134#[graphql(
135 schema_path = "src/graphql/schema.json",
136 query_path = "src/graphql/GetDevicesCSV.graphql",
137 response_derives = "Debug"
138)]
139pub struct GetDevicesCSV;
140