1
0
Fork 0
tooty/src/Ports.elm

50 lines
916 B
Elm

port module Ports
exposing
( saveRegistration
, deleteRegistration
, scrollIntoView
, saveClients
, setStatus
, uploadMedia
, updateMedia
, notify
, uploadSuccess
, uploadError
)
-- Outgoing ports
port saveRegistration : String -> Cmd msg
port deleteRegistration : String -> Cmd msg
port saveClients : String -> Cmd msg
port setStatus : { id : String, status : String } -> Cmd msg
port scrollIntoView : String -> Cmd msg
port uploadMedia : { id : String, url : String, token : String } -> Cmd msg
port updateMedia : { id : String, url : String, token : String, description : String } -> Cmd msg
port notify : { title : String, icon : String, body : String, clickUrl : String } -> Cmd msg
-- Incoming ports
port uploadError : (String -> msg) -> Sub msg
port uploadSuccess : (String -> msg) -> Sub msg