tricycle/morty-api/3.0.0

NOTE: the latest version is 4.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/tricycle/morty-api is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 3.0.0 found (9 same-name repos checked); no cached copy. Use another version.

Details

MortyAPI.Commands

Provides commands and command parameters for making API calls.

type alias ApproachParameters a =
{ mortyApiToken : String
, mortyHost : String
, msgType : WebData Approach -> 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 -> Approach -> 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