46 lines
794 B
Elm
46 lines
794 B
Elm
port module Ports
|
|
exposing
|
|
( saveRegistration
|
|
, deleteRegistration
|
|
, scrollIntoView
|
|
, saveClients
|
|
, setStatus
|
|
, uploadMedia
|
|
, 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 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
|