2017-05-04 02:31:58 -04:00
|
|
|
port module Ports
|
|
|
|
exposing
|
|
|
|
( saveRegistration
|
2017-05-09 12:43:12 -04:00
|
|
|
, deleteRegistration
|
2017-05-04 02:31:58 -04:00
|
|
|
, scrollIntoView
|
2017-05-09 12:43:12 -04:00
|
|
|
, saveClients
|
2017-05-04 02:31:58 -04:00
|
|
|
, setStatus
|
2017-05-11 04:55:15 -04:00
|
|
|
, uploadMedia
|
2017-06-02 08:11:50 -04:00
|
|
|
, notify
|
2017-05-11 04:55:15 -04:00
|
|
|
, uploadSuccess
|
|
|
|
, uploadError
|
2017-05-04 02:31:58 -04:00
|
|
|
)
|
2017-04-20 03:33:32 -04:00
|
|
|
|
2017-05-11 04:55:15 -04:00
|
|
|
-- Outgoing ports
|
|
|
|
|
2017-04-20 03:33:32 -04:00
|
|
|
|
|
|
|
port saveRegistration : String -> Cmd msg
|
|
|
|
|
|
|
|
|
2017-05-09 12:43:12 -04:00
|
|
|
port deleteRegistration : String -> Cmd msg
|
|
|
|
|
|
|
|
|
|
|
|
port saveClients : String -> Cmd msg
|
2017-05-01 16:10:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
port setStatus : { id : String, status : String } -> Cmd msg
|
2017-05-04 02:31:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
port scrollIntoView : String -> Cmd msg
|
2017-05-11 04:55:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
port uploadMedia : { id : String, url : String, token : String } -> Cmd msg
|
|
|
|
|
|
|
|
|
2017-06-02 08:11:50 -04:00
|
|
|
port notify : { title : String, icon : String, body : String, clickUrl : String } -> Cmd msg
|
|
|
|
|
|
|
|
|
2017-05-11 04:55:15 -04:00
|
|
|
|
|
|
|
-- Incoming ports
|
|
|
|
|
|
|
|
|
|
|
|
port uploadError : (String -> msg) -> Sub msg
|
|
|
|
|
|
|
|
|
|
|
|
port uploadSuccess : (String -> msg) -> Sub msg
|