gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.Database.Admin.Types.Node

Description

 
Synopsis

Documentation

class ResourceId a where #

A class generalising over resource identifiers in gargantext

Methods

isPositive :: a -> Bool #

Instances

Instances details
ResourceId NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

isPositive :: NodeId -> Bool #

ResourceId UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

isPositive :: UserId -> Bool #

newtype UserId #

A unique identifier for users within gargantext. Note that the UserId for users is typically different from their NodeId, as the latter tracks the resources being created, whereas this one tracks only users.

Constructors

UnsafeMkUserId 

Fields

Instances

Instances details
Arbitrary UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep UserId :: Type -> Type #

Methods

from :: UserId -> Rep UserId x #

to :: Rep UserId x -> UserId #

Show UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ResourceId UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

isPositive :: UserId -> Bool #

Eq UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

(==) :: UserId -> UserId -> Bool #

(/=) :: UserId -> UserId -> Bool #

Ord UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

DecodeScalar UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

EncodeScalar UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

GQLType UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type KIND UserId :: DerivingKind #

FromField UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromField UserDB # 
Instance details

Defined in Gargantext.Database.Schema.User

ToField UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: UserId -> Action #

ToSchema UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

DefaultFromField SqlInt4 UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

HasText a => HasText (Node a) # 
Instance details

Defined in Gargantext.Database.Action.Flow.Extract

Methods

hasText :: Node a -> [Text] #

(ExtractNgramsT a, HasText a) => ExtractNgramsT (Node a) # 
Instance details

Defined in Gargantext.Database.Action.Flow.Extract

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId Hash NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId Hash NodeTypeId (Maybe UserId) ParentId NodeName UTCTime hyperdata) #

NodeSearch (queries) type NodeSearch json = NodePolySearch NodeId NodeTypeId UserId (Maybe ParentId) NodeName UTCTime json (Maybe TSVector)

Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId (Maybe Hash) NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePolySearch NodeId NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata (Maybe TSVector)) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePolySearch NodeId NodeTypeId (Maybe UserId) ParentId NodeName UTCTime hyperdata (Maybe TSVector)) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep UserId = D1 ('MetaData "UserId" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "UnsafeMkUserId" 'PrefixI 'True) (S1 ('MetaSel ('Just "_UserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
type KIND UserId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type NodeName = Text #

type TSVector = Text #

type Node json = NodePoly NodeId (Maybe Hash) NodeTypeId UserId (Maybe ParentId) NodeName UTCTime json #

NodePoly indicates that Node has a Polymorphism Type

pgResourceId :: (a -> Int) -> a -> Column SqlInt4 #

newtype NodeId #

A unique identifier for a node in the gargantext tree. Every time we create something in Gargantext (a user, a corpus, etc) we add a node to a tree, and each node has its unique identifier. Note how nodes might have also other identifiers, to better qualify them.

Constructors

UnsafeMkNodeId 

Fields

Instances

Instances details
Arbitrary NodeId #

It makes sense to generate only positive ids.

Instance details

Defined in Gargantext.Database.Admin.Types.Node

Arbitrary FacetDoc #

Mock and Quickcheck instances

Instance details

Defined in Gargantext.Database.Query.Facet.Types

FromJSON NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSONKey NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSONKey NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Enum NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep NodeId :: Type -> Type #

Methods

from :: NodeId -> Rep NodeId x #

to :: Rep NodeId x -> NodeId #

Num NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Read NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Show NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: NodeId -> Field #

Buildable NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

build :: NodeId -> Builder #

ResourceId NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

isPositive :: NodeId -> Bool #

Eq NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

(==) :: NodeId -> NodeId -> Bool #

(/=) :: NodeId -> NodeId -> Bool #

Ord NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Hashable NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

hashWithSalt :: Int -> NodeId -> Int #

hash :: NodeId -> Int #

FromHttpApiData NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToHttpApiData NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

GQLType NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type KIND NodeId :: DerivingKind #

FromField NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: NodeId -> Action #

ToRow NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toRow :: NodeId -> [Action] #

Serialise NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToParamSchema NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy NodeId -> ParamSchema t #

ToSchema NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToSchema FacetDoc #

Documentation instance

Instance details

Defined in Gargantext.Database.Query.Facet.Types

ToExpr NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toExpr :: NodeId -> Expr #

listToExpr :: [NodeId] -> Expr #

DefaultFromField SqlInt4 NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

DefaultFromField SqlInt4 (Maybe NodeId) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

HasText a => HasText (Node a) # 
Instance details

Defined in Gargantext.Database.Action.Flow.Extract

Methods

hasText :: Node a -> [Text] #

(ExtractNgramsT a, HasText a) => ExtractNgramsT (Node a) # 
Instance details

Defined in Gargantext.Database.Action.Flow.Extract

DefaultFromField (Nullable SqlInt4) NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromField (PatchMap NgramsType (PatchMap NodeId NgramsTablePatch)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId Hash NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId Hash NodeTypeId (Maybe UserId) ParentId NodeName UTCTime hyperdata) #

NodeSearch (queries) type NodeSearch json = NodePolySearch NodeId NodeTypeId UserId (Maybe ParentId) NodeName UTCTime json (Maybe TSVector)

Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePoly NodeId (Maybe Hash) NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePolySearch NodeId NodeTypeId UserId (Maybe ParentId) NodeName UTCTime hyperdata (Maybe TSVector)) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

(Typeable hyperdata, ToSchema hyperdata) => ToSchema (NodePolySearch NodeId NodeTypeId (Maybe UserId) ParentId NodeName UTCTime hyperdata (Maybe TSVector)) # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep NodeId = D1 ('MetaData "NodeId" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "UnsafeMkNodeId" 'PrefixI 'True) (S1 ('MetaSel ('Just "_NodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
type KIND NodeId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

newtype ContextId #

An identifier for a Context in gargantext.

Constructors

UnsafeMkContextId 

Fields

Instances

Instances details
Arbitrary ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSONKey ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSONKey ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep ContextId :: Type -> Type #

Show ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: ContextId -> Field #

Eq ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Ord ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromHttpApiData ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToHttpApiData ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromField ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: ContextId -> Action #

ToParamSchema ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy ContextId -> ParamSchema t #

ToSchema ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToExpr ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep ContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep ContextId = D1 ('MetaData "ContextId" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "UnsafeMkContextId" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ContextId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype NodeContextId #

Constructors

UnsafeMkNodeContextId 

Fields

Instances

Instances details
FromJSON NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSONKey NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSONKey NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Enum NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep NodeContextId :: Type -> Type #

Num NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Read NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Eq NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Ord NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Hashable NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToExpr NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep NodeContextId # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep NodeContextId = D1 ('MetaData "NodeContextId" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "UnsafeMkNodeContextId" 'PrefixI 'True) (S1 ('MetaSel ('Just "_NodeContextId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

nodeId2ContextId :: NodeId -> ContextId #

Converts a NodeId into a ContextId. FIXME(adn) We should audit the usage of this function, to make sure that a ContextId and a NodeId are really conceptually the same thing.

type ListId = NodeId #

type DocId = NodeId #

type RootId = NodeId #

data Status #

Constructors

Status 

Instances

Instances details
Arbitrary Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep Status :: Type -> Type #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

Show Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToSchema Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Status # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Status = D1 ('MetaData "Status" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Status" 'PrefixI 'True) (S1 ('MetaSel ('Just "status_failed") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "status_succeeded") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "status_remaining") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))

data LanguageNodes #

Constructors

LanguageNodes 

Instances

Instances details
FromJSON LanguageNodes # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON LanguageNodes # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic LanguageNodes # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep LanguageNodes :: Type -> Type #

Show LanguageNodes # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep LanguageNodes # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep LanguageNodes = D1 ('MetaData "LanguageNodes" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "LanguageNodes" 'PrefixI 'True) (S1 ('MetaSel ('Just "languageNodes___unknown__") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Int])))

data EventLevel #

Constructors

CRITICAL 
FATAL 
ERROR 
WARNING 
INFO 
DEBUG 

Instances

Instances details
Arbitrary EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Bounded EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Enum EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep EventLevel :: Type -> Type #

Show EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToSchema EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep EventLevel # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep EventLevel = D1 ('MetaData "EventLevel" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "CRITICAL" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FATAL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ERROR" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "WARNING" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "INFO" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DEBUG" 'PrefixI 'False) (U1 :: Type -> Type))))

data Event #

Constructors

Event 

Instances

Instances details
Arbitrary Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

arbitrary :: Gen Event #

shrink :: Event -> [Event] #

FromJSON Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

Show Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

ToSchema Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Event # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Event = D1 ('MetaData "Event" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) (S1 ('MetaSel ('Just "event_level") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EventLevel) :*: (S1 ('MetaSel ('Just "event_message") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "event_date") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))

data Resource #

Instances

Instances details
Arbitrary Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

Show Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToSchema Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Resource # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep Resource = D1 ('MetaData "Resource" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Resource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resource_path") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resource_scraper") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resource_query") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "resource_events") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Event]) :*: (S1 ('MetaSel ('Just "resource_status") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Status) :*: S1 ('MetaSel ('Just "resource_date") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime)))))

data NodeType #

Then a Node can be either a Folder or a Corpus or a Document

Instances

Instances details
Arbitrary NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromJSON NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToJSON NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Bounded NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Enum NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Generic NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type Rep NodeType :: Type -> Type #

Methods

from :: NodeType -> Rep NodeType x #

to :: Rep NodeType x -> NodeType #

Read NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Show NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

HasDBid NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Config

Eq NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Ord NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

FromHttpApiData NodeType #

FIXME(adn) these instances could reuse the fromJSON/toJSON instances, but for some reason this broke the frontend: https://gitlab.iscpif.fr/gargantext/haskell-gargantext/merge_requests/277#note_10388

Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToHttpApiData NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

GQLType NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Associated Types

type KIND NodeType :: DerivingKind #

FromField NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

ToField NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toField :: NodeType -> Action #

ToParamSchema NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy NodeType -> ParamSchema t #

ToSchema NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

type Rep NodeType = D1 ('MetaData "NodeType" "Gargantext.Database.Admin.Types.Node" "gargantext-0.0.7.1.5.3-inplace" 'False) ((((C1 ('MetaCons "NodeUser" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeFolderPrivate" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeFolderShared" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeTeam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeFolderPublic" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "NodeFolder" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeCorpus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeCorpusV3" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "NodeTexts" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeDocument" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeAnnuaire" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "NodeContact" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeGraph" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodePhylo" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "NodeDashboard" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeList" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeModel" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "NodeListCooc" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Notes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Calc" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "NodeFrameVisio" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NodeFrameNotebook" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeFile" 'PrefixI 'False) (U1 :: Type -> Type))))))
type KIND NodeType # 
Instance details

Defined in Gargantext.Database.Admin.Types.Node

Orphan instances

DefaultFromField SqlText (Maybe Hash) # 
Instance details

DefaultFromField SqlTSVector (Maybe TSVector) # 
Instance details

DefaultFromField (Nullable SqlTimestamptz) UTCTime # 
Instance details

(Arbitrary nodeId, Arbitrary hashId, Arbitrary toDBid, Arbitrary userId, Arbitrary nodeParentId, Arbitrary hyperdata) => Arbitrary (NodePoly nodeId hashId toDBid userId nodeParentId NodeName UTCTime hyperdata) # 
Instance details

Methods

arbitrary :: Gen (NodePoly nodeId hashId toDBid userId nodeParentId NodeName UTCTime hyperdata) #

shrink :: NodePoly nodeId hashId toDBid userId nodeParentId NodeName UTCTime hyperdata -> [NodePoly nodeId hashId toDBid userId nodeParentId NodeName UTCTime hyperdata] #

(Arbitrary hyperdata, Arbitrary nodeId, Arbitrary toDBid, Arbitrary userId, Arbitrary nodeParentId) => Arbitrary (NodePolySearch nodeId toDBid userId nodeParentId NodeName UTCTime hyperdata (Maybe TSVector)) # 
Instance details

Methods

arbitrary :: Gen (NodePolySearch nodeId toDBid userId nodeParentId NodeName UTCTime hyperdata (Maybe TSVector)) #

shrink :: NodePolySearch nodeId toDBid userId nodeParentId NodeName UTCTime hyperdata (Maybe TSVector) -> [NodePolySearch nodeId toDBid userId nodeParentId NodeName UTCTime hyperdata (Maybe TSVector)] #