[{"name":"ElmData.DAO","comment":"\n    DAOs (Data Access Objects) exist to hold all state relevant to making requests to an API.\n\n    @docs DAO, createDAO\n","unions":[],"aliases":[{"name":"DAO","comment":"\n    the dao\n","args":["recordType"],"type":"{ apiUrl : String.String, authToken : String.String, listDeserialize : Json.Decode.Decoder (List.List recordType), deserialize : Json.Decode.Decoder recordType, serialize : recordType -> Json.Encode.Value }"}],"values":[{"name":"createDAO","comment":"\n    Function used to create a DAO\n","type":"String.String -> String.String -> Json.Decode.Decoder (List.List recordType) -> Json.Decode.Decoder recordType -> (recordType -> Json.Encode.Value) -> ElmData.DAO.DAO recordType"}],"binops":[]},{"name":"ElmData.Messages","comment":"\n    # Use to pass query params to a request made via a Resource or ListResource.\n\n    @docs RequestError, RequestResult, RequestResults, DAORequestResponse, ListDAORequestResponse\n","unions":[{"name":"RequestError","comment":" results from a dao request\n","args":[],"cases":[["UnableToParseResponseBody",["String.String"]],["HttpError",["Http.Error"]]]}],"aliases":[{"name":"DAORequestResponse","comment":" response from a dao request\n","args":["recordType"],"type":"{ body : recordType }"},{"name":"ListDAORequestResponse","comment":" response from a dao request for many records\n","args":["recordType"],"type":"{ body : List.List recordType }"},{"name":"RequestResult","comment":" results from a dao request\n","args":["recordType"],"type":"Result.Result ElmData.Messages.RequestError (ElmData.Messages.DAORequestResponse recordType)"},{"name":"RequestResults","comment":" results from a dao request for multiple records\n","args":["recordType"],"type":"Result.Result ElmData.Messages.RequestError (ElmData.Messages.ListDAORequestResponse recordType)"}],"values":[],"binops":[]},{"name":"ElmData.Resource","comment":"\n    Resource allows you to make requests on behalf of a DAO, without having to think about the state of the DAO\n\n    @docs Resource, ResourceMsg, resource\n","unions":[{"name":"ResourceMsg","comment":" A Resource Message\n","args":["recordType"],"cases":[["Success",["recordType"]],["Failure",["ElmData.Messages.RequestError"]]]}],"aliases":[{"name":"Resource","comment":" A Resource\n","args":["recordType","externalMsg"],"type":"{ create : recordType -> Platform.Cmd.Cmd externalMsg, fetch : String.String -> Platform.Cmd.Cmd externalMsg, update : recordType -> Platform.Cmd.Cmd externalMsg }"}],"values":[{"name":"resource","comment":" Creator for a Resource\n","type":"ElmData.DAO.DAO recordType -> (ElmData.Resource.ResourceMsg recordType -> localMsg) -> (localMsg -> externalMsg) -> ElmData.Resource.Resource recordType externalMsg"}],"binops":[]}]