diff --git a/pydrawise/schema.py b/pydrawise/schema.py index ddd4a4b..856b0a1 100644 --- a/pydrawise/schema.py +++ b/pydrawise/schema.py @@ -2,7 +2,6 @@ from __future__ import annotations -from abc import ABC, abstractmethod from dataclasses import dataclass, field from datetime import datetime, timedelta, timezone from enum import Enum, auto @@ -432,119 +431,3 @@ class User: name: str = "" email: str = "" controllers: list[Controller] = field(default_factory=list) - - -class Query(ABC): - """GraphQL schema for queries. - - :meta private: - """ - - @staticmethod - @abstractmethod - def me() -> User: - """Returns the current user. - - :meta private: - """ - - @staticmethod - @abstractmethod - def controller(controller_id: int) -> Controller: - """Returns a controller by its unique identifier. - - :meta private: - """ - - @staticmethod - @abstractmethod - def zone(zone_id: int) -> Zone: - """Returns a zone by its unique identifier. - - :meta private: - """ - - -class Mutation(ABC): - """GraphQL schema for mutations. - - :meta private: - """ - - @staticmethod - @abstractmethod - def start_zone( - zone_id: int, mark_run_as_scheduled: bool = False, custom_run_duration: int = 0 - ) -> StatusCodeAndSummary: - """Starts a zone. - - :meta private: - """ - - @staticmethod - @abstractmethod - def stop_zone(zone_id: int) -> StatusCodeAndSummary: - """Stops a zone. - - :meta private: - """ - - @staticmethod - @abstractmethod - def suspend_zone(zone_id: int, until: str) -> StatusCodeAndSummary: - """Suspends a zone. - - :meta private: - """ - - @staticmethod - @abstractmethod - def resume_zone(zone_id: int) -> StatusCodeAndSummary: - """Resumes a zone. - - :meta private: - """ - - @staticmethod - @abstractmethod - def start_all_zones( - controller_id: int, - mark_run_as_scheduled: bool = False, - custom_run_duration: int = 0, - ) -> StatusCodeAndSummary: - """Starts all zones. - - :meta private: - """ - - @staticmethod - @abstractmethod - def stop_all_zones(controller_id: int) -> StatusCodeAndSummary: - """Stops all zones. - - :meta private: - """ - - @staticmethod - @abstractmethod - def suspend_all_zones(controller_id: int, until: str) -> StatusCodeAndSummary: - """Suspends all zones. - - :meta private: - """ - - @staticmethod - @abstractmethod - def resume_all_zones(controller_id: int) -> StatusCodeAndSummary: - """Resumes all zones. - - :meta private: - """ - - @staticmethod - @abstractmethod - def delete_zone_suspension(id: int) -> bool: # pylint: disable=redefined-builtin - """Deletes a zone suspension. - - :meta private: - """