gargantext-0.0.7.1.5.3: Search, map, share
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.API.Routes.Named.Count

Synopsis

Routes types

newtype CountAPI mode #

Constructors

CountAPI 

Fields

Instances

Instances details
Generic (CountAPI mode) # 
Instance details

Defined in Gargantext.API.Routes.Named.Count

Associated Types

type Rep (CountAPI mode) :: Type -> Type #

Methods

from :: CountAPI mode -> Rep (CountAPI mode) x #

to :: Rep (CountAPI mode) x -> CountAPI mode #

type Rep (CountAPI mode) # 
Instance details

Defined in Gargantext.API.Routes.Named.Count

type Rep (CountAPI mode) = D1 ('MetaData "CountAPI" "Gargantext.API.Routes.Named.Count" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "CountAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "postCountsEp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (mode :- Post '[JSON] Counts))))

Re-exports

type Error = Text #

data Counts #

Constructors

Counts 

Instances

Instances details
Arbitrary Counts # 
Instance details

Defined in Gargantext.API.Count

FromJSON Counts # 
Instance details

Defined in Gargantext.API.Count

ToJSON Counts # 
Instance details

Defined in Gargantext.API.Count

Generic Counts # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep Counts :: Type -> Type #

Methods

from :: Counts -> Rep Counts x #

to :: Rep Counts x -> Counts #

Show Counts # 
Instance details

Defined in Gargantext.API.Count

Eq Counts # 
Instance details

Defined in Gargantext.API.Count

Methods

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

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

ToSchema Counts # 
Instance details

Defined in Gargantext.API.Count

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep Counts # 
Instance details

Defined in Gargantext.API.Count

type Rep Counts = D1 ('MetaData "Counts" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Counts" 'PrefixI 'True) (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Either Message Count])))

data Message #

Constructors

Message Code Errors 

Instances

Instances details
Arbitrary Message # 
Instance details

Defined in Gargantext.API.Count

FromJSON Message # 
Instance details

Defined in Gargantext.API.Count

ToJSON Message # 
Instance details

Defined in Gargantext.API.Count

Generic Message # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

Show Message # 
Instance details

Defined in Gargantext.API.Count

Eq Message # 
Instance details

Defined in Gargantext.API.Count

Methods

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

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

ToSchema Message # 
Instance details

Defined in Gargantext.API.Count

type Rep Message # 
Instance details

Defined in Gargantext.API.Count

type Rep Message = D1 ('MetaData "Message" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Message" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Code) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Errors)))

type Code = Integer #

data Query #

Constructors

Query 

Instances

Instances details
Arbitrary Query # 
Instance details

Defined in Gargantext.API.Count

Methods

arbitrary :: Gen Query #

shrink :: Query -> [Query] #

FromJSON Query # 
Instance details

Defined in Gargantext.API.Count

ToJSON Query # 
Instance details

Defined in Gargantext.API.Count

Generic Query # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep Query :: Type -> Type #

Methods

from :: Query -> Rep Query x #

to :: Rep Query x -> Query #

Show Query # 
Instance details

Defined in Gargantext.API.Count

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

Eq Query # 
Instance details

Defined in Gargantext.API.Count

Methods

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

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

ToSchema Query # 
Instance details

Defined in Gargantext.API.Count

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep Query # 
Instance details

Defined in Gargantext.API.Count

type Rep Query = D1 ('MetaData "Query" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Query" 'PrefixI 'True) (S1 ('MetaSel ('Just "query_query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QueryBool) :*: S1 ('MetaSel ('Just "query_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Scraper]))))

data Count #

Constructors

Count 

Instances

Instances details
FromJSON Count # 
Instance details

Defined in Gargantext.API.Count

ToJSON Count # 
Instance details

Defined in Gargantext.API.Count

Generic Count # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep Count :: Type -> Type #

Methods

from :: Count -> Rep Count x #

to :: Rep Count x -> Count #

Show Count # 
Instance details

Defined in Gargantext.API.Count

Methods

showsPrec :: Int -> Count -> ShowS #

show :: Count -> String #

showList :: [Count] -> ShowS #

Eq Count # 
Instance details

Defined in Gargantext.API.Count

Methods

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

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

ToSchema Count # 
Instance details

Defined in Gargantext.API.Count

type Rep Count # 
Instance details

Defined in Gargantext.API.Count

type Rep Count = D1 ('MetaData "Count" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Count" 'PrefixI 'True) (S1 ('MetaSel ('Just "count_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Scraper) :*: S1 ('MetaSel ('Just "count_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

type Errors = [Error] #

data Scraper #

Constructors

Pubmed 
Hal 
IsTex 
Isidore 

Instances

Instances details
Arbitrary Scraper # 
Instance details

Defined in Gargantext.API.Count

FromJSON Scraper # 
Instance details

Defined in Gargantext.API.Count

ToJSON Scraper # 
Instance details

Defined in Gargantext.API.Count

Bounded Scraper # 
Instance details

Defined in Gargantext.API.Count

Enum Scraper # 
Instance details

Defined in Gargantext.API.Count

Generic Scraper # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep Scraper :: Type -> Type #

Methods

from :: Scraper -> Rep Scraper x #

to :: Rep Scraper x -> Scraper #

Show Scraper # 
Instance details

Defined in Gargantext.API.Count

Eq Scraper # 
Instance details

Defined in Gargantext.API.Count

Methods

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

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

ToSchema Scraper # 
Instance details

Defined in Gargantext.API.Count

type Rep Scraper # 
Instance details

Defined in Gargantext.API.Count

type Rep Scraper = D1 ('MetaData "Scraper" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "Pubmed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IsTex" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Isidore" 'PrefixI 'False) (U1 :: Type -> Type)))

data QueryBool #

Constructors

QueryBool Text 

Instances

Instances details
Arbitrary QueryBool # 
Instance details

Defined in Gargantext.API.Count

FromJSON QueryBool # 
Instance details

Defined in Gargantext.API.Count

ToJSON QueryBool # 
Instance details

Defined in Gargantext.API.Count

Generic QueryBool # 
Instance details

Defined in Gargantext.API.Count

Associated Types

type Rep QueryBool :: Type -> Type #

Show QueryBool # 
Instance details

Defined in Gargantext.API.Count

Eq QueryBool # 
Instance details

Defined in Gargantext.API.Count

ToSchema QueryBool # 
Instance details

Defined in Gargantext.API.Count

type Rep QueryBool # 
Instance details

Defined in Gargantext.API.Count

type Rep QueryBool = D1 ('MetaData "QueryBool" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "QueryBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

count :: Monad m => Query -> m Counts #