module IHP.DataSync.REST.Types where
import IHP.Prelude
data ApiController
= CreateRecordAction { ApiController -> Text
table :: Text }
| UpdateRecordAction { table :: Text, ApiController -> UUID
id :: UUID }
| DeleteRecordAction { table :: Text, id :: UUID }
| ShowRecordAction { table :: Text, id :: UUID }
| ListRecordsAction { table :: Text }
| GraphQLQueryAction
deriving (ApiController -> ApiController -> Bool
(ApiController -> ApiController -> Bool)
-> (ApiController -> ApiController -> Bool) -> Eq ApiController
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApiController -> ApiController -> Bool
== :: ApiController -> ApiController -> Bool
$c/= :: ApiController -> ApiController -> Bool
/= :: ApiController -> ApiController -> Bool
Eq, Int -> ApiController -> ShowS
[ApiController] -> ShowS
ApiController -> String
(Int -> ApiController -> ShowS)
-> (ApiController -> String)
-> ([ApiController] -> ShowS)
-> Show ApiController
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApiController -> ShowS
showsPrec :: Int -> ApiController -> ShowS
$cshow :: ApiController -> String
show :: ApiController -> String
$cshowList :: [ApiController] -> ShowS
showList :: [ApiController] -> ShowS
Show, Typeable ApiController
Typeable ApiController =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ApiController -> c ApiController)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ApiController)
-> (ApiController -> Constr)
-> (ApiController -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ApiController))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ApiController))
-> ((forall b. Data b => b -> b) -> ApiController -> ApiController)
-> (forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r)
-> (forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r)
-> (forall u. (forall d. Data d => d -> u) -> ApiController -> [u])
-> (forall u.
Int -> (forall d. Data d => d -> u) -> ApiController -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController)
-> Data ApiController
ApiController -> Constr
ApiController -> DataType
(forall b. Data b => b -> b) -> ApiController -> ApiController
forall a.
Typeable a =>
(forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> ApiController -> u
forall u. (forall d. Data d => d -> u) -> ApiController -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ApiController
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ApiController -> c ApiController
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ApiController)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ApiController)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ApiController -> c ApiController
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ApiController -> c ApiController
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ApiController
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ApiController
$ctoConstr :: ApiController -> Constr
toConstr :: ApiController -> Constr
$cdataTypeOf :: ApiController -> DataType
dataTypeOf :: ApiController -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ApiController)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ApiController)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ApiController)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ApiController)
$cgmapT :: (forall b. Data b => b -> b) -> ApiController -> ApiController
gmapT :: (forall b. Data b => b -> b) -> ApiController -> ApiController
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
gmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ApiController -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> ApiController -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> ApiController -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> ApiController -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> ApiController -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> ApiController -> m ApiController
Data)