From 9b25ca215c17fa131356cd3c6daffab3c560c105 Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Mon, 30 Jan 2023 10:47:46 +0100 Subject: [PATCH] Add `All.elm` This file is the one that should be accessed by files and folders that are allowed to import from the `Internal/Api/` folder. --- src/Internal/Api/All.elm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/Internal/Api/All.elm diff --git a/src/Internal/Api/All.elm b/src/Internal/Api/All.elm new file mode 100644 index 0000000..a2dd349 --- /dev/null +++ b/src/Internal/Api/All.elm @@ -0,0 +1,39 @@ +module Internal.Api.All exposing (..) + +import Internal.Api.GetEvent.Main as GetEvent +import Internal.Api.JoinedMembers.Main as JoinedMembers +import Internal.Api.SendMessageEvent.Main as SendMessageEvent +import Internal.Api.SendStateKey.Main as SendStateKey +import Internal.Api.Sync.Main as Sync +import Internal.Api.Versions.Main as Versions + +{-| Get a specific event from the Matrix API. +-} +getEvent : List String -> GetEvent.EventInput -> GetEvent.EventOutput +getEvent = GetEvent.getEvent + +{-| Get a list of members who are part of a Matrix room. +-} +joinedMembers : List String -> JoinedMembers.JoinedMembersInput -> JoinedMembers.JoinedMembersOutput +joinedMembers = JoinedMembers.joinedMembers + +{-| Send a message event into a Matrix room. +-} +sendMessageEvent : List String -> SendMessageEvent.SendMessageEventInput -> SendMessageEvent.SendMessageEventOutput +sendMessageEvent = SendMessageEvent.sendMessageEvent + +{-| Send a state event into a Matrix room. +-} +sendStateEvent : List String -> SendStateKey.SendStateKeyInput -> SendStateKey.SendStateKeyOutput +sendStateEvent = SendStateKey.sendStateKey + +{-| Get the latest sync from the Matrix API. +-} +syncCredentials : List String -> Sync.SyncInput -> Sync.SyncOutput +syncCredentials = Sync.sync + +{-| Get all supported versions on the Matrix homeserver. +-} +versions : Versions.VersionsInput -> Versions.VersionsOutput +versions = Versions.getVersions +