tricycle/morty-api/4.0.0

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/tricycle/morty-api/zipball/4.0.0/

MortyAPI.Commands

Provides commands and command parameters for making API calls.

type alias ApproachParameters a =
{ mortyApiToken : String
, mortyHost : String
, msgType : WebData TaskApproach -> a
}

Parameters required to POST a new Task Approach

type alias CurrentUserParameters a =
{ mortyApiToken : String
, mortyHost : String
, msgType : WebData User -> a
}

Parameters required to retrieve the current user

{ mortyApiToken : String
, mortyHost : String
, teamId : Int
, msgType : WebData KanbanLanesSuccessResponse -> a
}

Parameters required to retrieve the kanban board for a full team

{ mortyApiToken : String
, mortyHost : String
, userId : Int
, msgType : WebData KanbanLanesSuccessResponse -> a
}

Parameters required to retrieve the kanban board for a single user

type alias TasksParameters a =
{ mortyApiToken : String
, mortyHost : String
, ownerType : Maybe String
, ownerId : Maybe Int
, taskScope : Maybe String
, taskScopeParam : Maybe String
, msgType : WebData (List Task) -> a
}

Parameters required to retrieve task matching owner and scope

type alias TaskParameters a =
{ mortyApiToken : String
, mortyHost : String
, taskId : Int
, msgType : WebData Task -> a
}

Parameters required to retrieve a task

type alias TeamsParameters a =
{ mortyApiToken : String
, mortyHost : String
, msgType : WebData TeamsSuccessResponse -> a
}

Parameters required to retrieve a list of teams

getCurrentUserCommand : CurrentUserParameters a -> Cmd a

Gets the current user from the API

getKanbanLanesForTeam : KanbanLanesForTeamParameters a -> Cmd a

Retrieves all kanban lanes for a team

getKanbanLanesForUser : KanbanLanesForUserParameters a -> Cmd a

Retrieves all kanban lanes for a user

getTaskCommand : TaskParameters a -> Cmd a

Gets a task from the API

getTasksCommand : TasksParameters a -> Cmd a

Gets a list of tasks matching the filter criteria from the API

getTeams : TeamsParameters a -> Cmd a

Retrieves all teams and their members

postTaskApproachCommand : ApproachParameters a -> TaskApproach -> Cmd a

POSTs a new task approach to the API

putTaskUpdateCommand : TaskParameters a -> Task -> Cmd a

Updates the properties of a task using a PUT call to the API