module MediaWiki.API.Action.ParamInfo where
import MediaWiki.API.Types
data ParamInfoRequest
= ParamInfoRequest
{ paModules :: [String]
, paQueryModules :: [String]
}
emptyParamInfoRequest :: ParamInfoRequest
emptyParamInfoRequest = ParamInfoRequest
{ paModules = []
, paQueryModules = []
}
data ParamInfoResponse
= ParamInfoResponse
{ parModules :: [APIModule]
}
data APIModule
= APIModule
{ modName :: String
, modClass :: String
, modDescription :: String
, modParams :: [ModuleParam]
}
data ModuleParam
= ModuleParam
{ modParamName :: String
, modParamDefault :: String
, modParamDescription :: String
, modParamPrefix :: String
, modParamType :: ParamType
}
data ParamType
= TypeBool
| TypeString
| TypeInteger
| TypeTimestamp
| TypeName String
| TypeEnum [String]