module Gargantext.Components.NgramsTable.API where import Gargantext.Prelude import Data.Maybe (Maybe) import Effect (Effect) import Effect.Aff (Aff, launchAff_) import Gargantext.Components.NgramsTable.Core as NTC import Gargantext.Routes as GR import Gargantext.Sessions (Session, get, post) import Gargantext.Types as GT type UpdateNodeListParams = ( listId :: Int , nodeId :: Int , nodeType :: GT.TabSubType GT.CTabNgramType , session :: Session ) updateNodeList :: Record UpdateNodeListParams -> Aff Int updateNodeList { listId, nodeId, nodeType, session } = post session (GR.RecomputeNgrams nodeType nodeId listId) {}