mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Allow editing metadata in item-detail
This commit is contained in:
@ -31,6 +31,7 @@ module Api exposing
|
||||
, getCollective
|
||||
, getCollectiveSettings
|
||||
, getContacts
|
||||
, getEquipment
|
||||
, getEquipments
|
||||
, getFolderDetail
|
||||
, getFolders
|
||||
@ -41,8 +42,10 @@ module Api exposing
|
||||
, getJobQueueStateIn
|
||||
, getMailSettings
|
||||
, getNotifyDueItems
|
||||
, getOrgFull
|
||||
, getOrgLight
|
||||
, getOrganizations
|
||||
, getPersonFull
|
||||
, getPersons
|
||||
, getPersonsLight
|
||||
, getScanMailbox
|
||||
@ -903,6 +906,15 @@ getEquipments flags query receive =
|
||||
}
|
||||
|
||||
|
||||
getEquipment : Flags -> String -> (Result Http.Error Equipment -> msg) -> Cmd msg
|
||||
getEquipment flags id receive =
|
||||
Http2.authGet
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/equipment/" ++ id
|
||||
, account = getAccount flags
|
||||
, expect = Http.expectJson receive Api.Model.Equipment.decoder
|
||||
}
|
||||
|
||||
|
||||
postEquipment : Flags -> Equipment -> (Result Http.Error BasicResult -> msg) -> Cmd msg
|
||||
postEquipment flags equip receive =
|
||||
let
|
||||
@ -942,6 +954,15 @@ getOrgLight flags receive =
|
||||
}
|
||||
|
||||
|
||||
getOrgFull : String -> Flags -> (Result Http.Error Organization -> msg) -> Cmd msg
|
||||
getOrgFull id flags receive =
|
||||
Http2.authGet
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/organization/" ++ id
|
||||
, account = getAccount flags
|
||||
, expect = Http.expectJson receive Api.Model.Organization.decoder
|
||||
}
|
||||
|
||||
|
||||
getOrganizations : Flags -> String -> (Result Http.Error OrganizationList -> msg) -> Cmd msg
|
||||
getOrganizations flags query receive =
|
||||
Http2.authGet
|
||||
@ -990,6 +1011,15 @@ getPersonsLight flags receive =
|
||||
}
|
||||
|
||||
|
||||
getPersonFull : String -> Flags -> (Result Http.Error Person -> msg) -> Cmd msg
|
||||
getPersonFull id flags receive =
|
||||
Http2.authGet
|
||||
{ url = flags.config.baseUrl ++ "/api/v1/sec/person/" ++ id
|
||||
, account = getAccount flags
|
||||
, expect = Http.expectJson receive Api.Model.Person.decoder
|
||||
}
|
||||
|
||||
|
||||
getPersons : Flags -> String -> (Result Http.Error PersonList -> msg) -> Cmd msg
|
||||
getPersons flags query receive =
|
||||
Http2.authGet
|
||||
|
Reference in New Issue
Block a user