Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data StoredInvitation = MkStoredInvitation {
- teamId :: TeamId
- role :: Maybe Role
- invitationId :: InvitationId
- createdAt :: UTCTimeMillis
- createdBy :: Maybe UserId
- email :: EmailAddress
- name :: Maybe Name
- code :: InvitationCode
- data InsertInvitation = MkInsertInvitation {}
- data PaginatedResult a
- data InvitationStore :: Effect where
- InsertInvitation :: InsertInvitation -> Timeout -> InvitationStore m StoredInvitation
- LookupInvitation :: TeamId -> InvitationId -> InvitationStore m (Maybe StoredInvitation)
- LookupInvitationByCode :: InvitationCode -> InvitationStore m (Maybe StoredInvitation)
- LookupInvitationsByEmail :: EmailAddress -> InvitationStore m [StoredInvitation]
- LookupInvitationsPaginated :: Maybe (Range 1 500 Int32) -> TeamId -> Maybe InvitationId -> InvitationStore m (PaginatedResult [StoredInvitation])
- CountInvitations :: TeamId -> InvitationStore m Int64
- DeleteInvitation :: TeamId -> InvitationId -> InvitationStore m ()
- DeleteAllTeamInvitations :: TeamId -> InvitationStore m ()
- deleteAllTeamInvitations :: forall r. Member InvitationStore r => TeamId -> Sem r ()
- deleteInvitation :: forall r. Member InvitationStore r => TeamId -> InvitationId -> Sem r ()
- countInvitations :: forall r. Member InvitationStore r => TeamId -> Sem r Int64
- lookupInvitationsPaginated :: forall r. Member InvitationStore r => Maybe (Range 1 500 Int32) -> TeamId -> Maybe InvitationId -> Sem r (PaginatedResult [StoredInvitation])
- lookupInvitationsByEmail :: forall r. Member InvitationStore r => EmailAddress -> Sem r [StoredInvitation]
- lookupInvitationByCode :: forall r. Member InvitationStore r => InvitationCode -> Sem r (Maybe StoredInvitation)
- lookupInvitation :: forall r. Member InvitationStore r => TeamId -> InvitationId -> Sem r (Maybe StoredInvitation)
- insertInvitation :: forall r. Member InvitationStore r => InsertInvitation -> Timeout -> Sem r StoredInvitation
- invitationFromStored :: Maybe (URIRef Absolute) -> StoredInvitation -> Invitation
Documentation
data StoredInvitation Source #
MkStoredInvitation | |
|
Instances
data InsertInvitation Source #
MkInsertInvitation | |
|
Instances
data PaginatedResult a Source #
Instances
data InvitationStore :: Effect where Source #
InsertInvitation :: InsertInvitation -> Timeout -> InvitationStore m StoredInvitation | |
LookupInvitation :: TeamId -> InvitationId -> InvitationStore m (Maybe StoredInvitation) | |
LookupInvitationByCode :: InvitationCode -> InvitationStore m (Maybe StoredInvitation) | |
LookupInvitationsByEmail :: EmailAddress -> InvitationStore m [StoredInvitation] | |
LookupInvitationsPaginated :: Maybe (Range 1 500 Int32) -> TeamId -> Maybe InvitationId -> InvitationStore m (PaginatedResult [StoredInvitation]) | Range is page size, it defaults to 100 |
CountInvitations :: TeamId -> InvitationStore m Int64 | |
DeleteInvitation :: TeamId -> InvitationId -> InvitationStore m () | |
DeleteAllTeamInvitations :: TeamId -> InvitationStore m () |
deleteAllTeamInvitations :: forall r. Member InvitationStore r => TeamId -> Sem r () Source #
deleteInvitation :: forall r. Member InvitationStore r => TeamId -> InvitationId -> Sem r () Source #
countInvitations :: forall r. Member InvitationStore r => TeamId -> Sem r Int64 Source #
lookupInvitationsPaginated :: forall r. Member InvitationStore r => Maybe (Range 1 500 Int32) -> TeamId -> Maybe InvitationId -> Sem r (PaginatedResult [StoredInvitation]) Source #
Range is page size, it defaults to 100
lookupInvitationsByEmail :: forall r. Member InvitationStore r => EmailAddress -> Sem r [StoredInvitation] Source #
lookupInvitationByCode :: forall r. Member InvitationStore r => InvitationCode -> Sem r (Maybe StoredInvitation) Source #
lookupInvitation :: forall r. Member InvitationStore r => TeamId -> InvitationId -> Sem r (Maybe StoredInvitation) Source #
insertInvitation :: forall r. Member InvitationStore r => InsertInvitation -> Timeout -> Sem r StoredInvitation Source #
invitationFromStored :: Maybe (URIRef Absolute) -> StoredInvitation -> Invitation Source #