maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Types.V1.Common.Pagination

Description

Module to define types demanded by cursor based pagination to be used by other types defined in Maestro.Types.V1.

Synopsis

Documentation

newtype NextCursor #

Type to denote for cursor to be returned in a paginated endpoint.

Constructors

NextCursor Text 

Instances

Instances details
Eq NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Methods

(==)NextCursorNextCursorBool #

(/=)NextCursorNextCursorBool #

Ord NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Show NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

IsString NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Methods

fromStringStringNextCursor #

Generic NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Associated Types

type Rep NextCursorTypeType #

FromHttpApiData NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

ToHttpApiData NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

ToJSON NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Methods

toJSONNextCursor → Value

toEncodingNextCursor → Encoding

toJSONList ∷ [NextCursor] → Value

toEncodingList ∷ [NextCursor] → Encoding

omitFieldNextCursorBool

FromJSON NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

Methods

parseJSON ∷ Value → Parser NextCursor

parseJSONList ∷ Value → Parser [NextCursor]

omittedFieldMaybe NextCursor

type Rep NextCursor # 
Instance details

Defined in Maestro.Types.V1.Common.Pagination

type Rep NextCursor = D1 ('MetaData "NextCursor" "Maestro.Types.V1.Common.Pagination" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "NextCursor" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

class (IsTimestamped a, Monoid (TimestampedData a)) ⇒ HasCursor a where #

Is the endpoint paged?

Methods

getNextCursor ∷ a → Maybe NextCursor #

Get the next cursor from the value of the given type a.

Instances

Instances details
HasCursor PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

HasCursor PaginatedPaymentCredentialTransaction # 
Instance details

Defined in Maestro.Types.V1.Addresses

HasCursor PaginatedAddressTransaction # 
Instance details

Defined in Maestro.Types.V1.Addresses

HasCursor PaginatedOutputReferenceObject # 
Instance details

Defined in Maestro.Types.V1.Addresses

HasCursor PaginatedAccountUpdate # 
Instance details

Defined in Maestro.Types.V1.Accounts

HasCursor PaginatedAccountReward # 
Instance details

Defined in Maestro.Types.V1.Accounts

HasCursor PaginatedAccountHistory # 
Instance details

Defined in Maestro.Types.V1.Accounts

HasCursor PaginatedAsset # 
Instance details

Defined in Maestro.Types.V1.Accounts

HasCursor PaginatedAddress # 
Instance details

Defined in Maestro.Types.V1.Accounts

HasCursor PaginatedPoolListInfo # 
Instance details

Defined in Maestro.Types.V1.Pools

HasCursor PaginatedUtxo # 
Instance details

Defined in Maestro.Types.V1.Transactions