Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runLogger :: ConnectionData -> String -> LogEventType -> IO ()
- runLoggerS :: Session -> String -> LogEventType -> IO ()
- maybeFail :: Parser a -> Parser (Maybe a)
- mkConnectionData :: Hostname -> Port -> ConnectionContext -> ConnectionData
- mkConnectionDataInsecure :: Hostname -> Port -> ConnectionContext -> ConnectionData
- initConnectionData :: Hostname -> Port -> IO ConnectionData
- initConnectionDataInsecure :: Hostname -> Port -> IO ConnectionData
- withLogger :: ConnectionData -> Logger -> ConnectionData
- noLogger :: ConnectionData -> ConnectionData
- data Session = Session {}
- mkSession :: ConnectionData -> Token -> Session
- data Login = Login {}
- data SetChannelHeader = SetChannelHeader {}
- data SearchPosts = SearchPosts {}
- data Type
- class IsId x where
- class HasId x y | x -> y where
- newtype Id = Id {}
- idString :: IsId x => x -> Text
- newtype TeamId = TI {}
- data Team = Team {}
- data TeamMember = TeamMember {}
- data WithDefault a
- data NotifyOption
- data UserNotifyProps = UserNotifyProps {}
- data ChannelNotifyProps = ChannelNotifyProps {}
- emptyUserNotifyProps :: UserNotifyProps
- emptyChannelNotifyProps :: ChannelNotifyProps
- newtype BoolString = BoolString {}
- newtype ChannelId = CI {}
- data Channel = Channel {
- channelId :: ChannelId
- channelCreateAt :: ServerTime
- channelUpdateAt :: ServerTime
- channelDeleteAt :: ServerTime
- channelTeamId :: Maybe TeamId
- channelType :: Type
- channelDisplayName :: Text
- channelName :: Text
- channelHeader :: Text
- channelPurpose :: Text
- channelLastPostAt :: ServerTime
- channelTotalMsgCount :: Int
- channelExtraUpdateAt :: ServerTime
- channelCreatorId :: Maybe UserId
- newtype SingleChannel = SC Channel
- data ChannelData = ChannelData {}
- data ChannelWithData = ChannelWithData Channel ChannelData
- type Channels = Seq Channel
- data MinChannel = MinChannel {}
- newtype UserId = UI {}
- data UserParam
- userParamString :: UserParam -> Text
- data InitialLoad = InitialLoad {}
- data User = User {
- userId :: UserId
- userCreateAt :: ServerTime
- userUpdateAt :: ServerTime
- userDeleteAt :: ServerTime
- userUsername :: Text
- userAuthData :: Text
- userAuthService :: Text
- userEmail :: Text
- userEmailVerified :: Bool
- userNickname :: Text
- userFirstName :: Text
- userLastName :: Text
- userRoles :: Text
- userNotifyProps :: UserNotifyProps
- userLastPasswordUpdate :: Maybe ServerTime
- userLastPictureUpdate :: Maybe ServerTime
- userLocale :: Text
- data PostPropAttachmentField = PostPropAttachmentField {}
- data PostPropAttachment = PostPropAttachment {
- ppaId :: Int
- ppaFallback :: Text
- ppaColor :: Text
- ppaPretext :: Text
- ppaAuthorName :: Text
- ppaAuthorLink :: Text
- ppaAuthorIcon :: Text
- ppaTitle :: Text
- ppaTitleLink :: Text
- ppaText :: Text
- ppaFields :: Seq PostPropAttachmentField
- ppaImageURL :: Text
- ppaThumbURL :: Text
- ppaFooter :: Text
- ppaFooterIcon :: Text
- data PostProps = PostProps {}
- newtype PostId = PI {}
- newtype FileId = FI {}
- urlForFile :: FileId -> Text
- data PostType
- data Post = Post {
- postPendingPostId :: Maybe PostId
- postOriginalId :: Maybe PostId
- postProps :: PostProps
- postRootId :: Maybe PostId
- postFileIds :: Seq FileId
- postId :: PostId
- postType :: PostType
- postMessage :: Text
- postDeleteAt :: Maybe ServerTime
- postHashtags :: Text
- postUpdateAt :: ServerTime
- postEditAt :: ServerTime
- postUserId :: Maybe UserId
- postCreateAt :: ServerTime
- postParentId :: Maybe PostId
- postChannelId :: ChannelId
- postHasReactions :: Bool
- data PendingPost = PendingPost {}
- newtype PendingPostId = PPI {}
- mkPendingPost :: Text -> UserId -> ChannelId -> IO PendingPost
- data FileInfo = FileInfo {
- fileInfoId :: FileId
- fileInfoUserId :: UserId
- fileInfoPostId :: Maybe PostId
- fileInfoCreateAt :: ServerTime
- fileInfoUpdateAt :: ServerTime
- fileInfoDeleteAt :: ServerTime
- fileInfoName :: Text
- fileInfoExtension :: Text
- fileInfoSize :: Int
- fileInfoMimeType :: Text
- fileInfoWidth :: Maybe Int
- fileInfoHeight :: Maybe Int
- fileInfoHasPreview :: Bool
- data Posts = Posts {}
- timeFromServer :: Integer -> ServerTime
- timeToServer :: ServerTime -> Int
- data MinCommand = MinCommand {}
- data Command = Command {
- commandId :: CommandId
- commandToken :: Token
- commandCreateAt :: ServerTime
- commandUpdateAt :: ServerTime
- commandDeleteAt :: ServerTime
- commandCreatorId :: UserId
- commandTeamId :: TeamId
- commandTrigger :: Text
- commandMethod :: Text
- commandUsername :: Text
- commandIconURL :: Text
- commandAutoComplete :: Bool
- commandAutoCompleteDesc :: Text
- commandAutoCompleteHint :: Text
- commandDisplayName :: Text
- commandDescription :: Text
- commandURL :: Text
- newtype CommandId = CmdI {}
- data CommandResponseType
- data CommandResponse = CommandResponse {}
- data UsersCreate = UsersCreate {}
- data TeamsCreate = TeamsCreate {}
- data Reaction = Reaction {}
- data PreferenceCategory
- = PreferenceCategoryDirectChannelShow
- | PreferenceCategoryGroupChannelShow
- | PreferenceCategoryTutorialStep
- | PreferenceCategoryAdvancedSettings
- | PreferenceCategoryFlaggedPost
- | PreferenceCategoryDisplaySettings
- | PreferenceCategoryTheme
- | PreferenceCategoryAuthorizedOAuthApp
- | PreferenceCategoryNotifications
- | PreferenceCategoryLast
- | PreferenceCategoryOther Text
- data PreferenceName = PreferenceName {}
- data PreferenceValue = PreferenceValue {}
- data Preference = Preference {}
- data GroupChannelPreference = GroupChannelPreference {}
- preferenceToGroupChannelPreference :: Preference -> Maybe GroupChannelPreference
- data FlaggedPost = FlaggedPost {}
- preferenceToFlaggedPost :: Preference -> Maybe FlaggedPost
- newtype HookId = HI {}
- newtype InviteId = II {}
- newtype TokenId = TkI {}
- newtype AppId = AI {}
- newtype JobId = JI {}
- newtype EmojiId = EI {}
- newtype ReportId = RI {}
- data MinChannelMember = MinChannelMember {}
- data ChannelMember = ChannelMember {}
- data Status = Status {}
- data UserSearch = UserSearch {}
- data RawPost = RawPost {}
- rawPost :: Text -> ChannelId -> RawPost
- data PostUpdate = PostUpdate {}
- postUpdate :: Text -> PostUpdate
- data ChannelPatch = ChannelPatch {}
- defaultChannelPatch :: ChannelPatch
- data InitialTeamData = InitialTeamData {}
- data ChannelStats = ChannelStats {}
- data ChannelUnread = ChannelUnread {}
- module Network.Mattermost.Types.Base
Documentation
runLogger :: ConnectionData -> String -> LogEventType -> IO () Source #
runLoggerS :: Session -> String -> LogEventType -> IO () Source #
mkConnectionData :: Hostname -> Port -> ConnectionContext -> ConnectionData Source #
Creates a structure representing a TLS connection to the server.
mkConnectionDataInsecure :: Hostname -> Port -> ConnectionContext -> ConnectionData Source #
Plaintext HTTP instead of a TLS connection.
initConnectionData :: Hostname -> Port -> IO ConnectionData Source #
withLogger :: ConnectionData -> Logger -> ConnectionData Source #
data SetChannelHeader Source #
data SearchPosts Source #
Team | |
|
data TeamMember Source #
data WithDefault a Source #
Functor WithDefault Source # | |
Eq a => Eq (WithDefault a) Source # | |
Ord a => Ord (WithDefault a) Source # | |
Read a => Read (WithDefault a) Source # | |
Show a => Show (WithDefault a) Source # | |
ToJSON t => ToJSON (WithDefault t) Source # | |
FromJSON t => FromJSON (WithDefault t) Source # | |
data NotifyOption Source #
newtype BoolString Source #
newtype SingleChannel Source #
data ChannelWithData Source #
data MinChannel Source #
userParamString :: UserParam -> Text Source #
data InitialLoad Source #
User | |
|
data PostPropAttachment Source #
PostPropAttachment | |
|
urlForFile :: FileId -> Text Source #
Post | |
|
newtype PendingPostId Source #
mkPendingPost :: Text -> UserId -> ChannelId -> IO PendingPost Source #
Posts | |
|
timeFromServer :: Integer -> ServerTime Source #
timeToServer :: ServerTime -> Int Source #
data MinCommand Source #
data CommandResponseType Source #
data TeamsCreate Source #
Preferences
data PreferenceCategory Source #
data PreferenceName Source #
data PreferenceValue Source #
data Preference Source #
preferenceToGroupChannelPreference :: Preference -> Maybe GroupChannelPreference Source #
Attempt to expose a Preference
as a FlaggedPost
data FlaggedPost Source #
preferenceToFlaggedPost :: Preference -> Maybe FlaggedPost Source #
Attempt to expose a Preference
as a FlaggedPost
data MinChannelMember Source #
data UserSearch Source #
UserSearch | |
|
RawPost | |
|
data PostUpdate Source #
PostUpdate | |
|
postUpdate :: Text -> PostUpdate Source #
data ChannelPatch Source #
ChannelPatch | |
|
data InitialTeamData Source #
InitialTeamData | |
|
data ChannelStats Source #