wire-subsystems-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.TeamInvitationSubsystem

Synopsis

Documentation

data TeamInvitationSubsystem m a where Source #

Constructors

InviteUser :: Local UserId -> TeamId -> InvitationRequest -> TeamInvitationSubsystem m (Invitation, InvitationLocation) 
InternalCreateInvitation :: TeamId -> Maybe InvitationId -> Role -> Local (Maybe UserId) -> EmailAddress -> InvitationRequest -> TeamInvitationSubsystem m (Invitation, InvitationCode)

This function exists to support migration in this susbystem, after the migration this would just be an internal detail of the subsystem

internalCreateInvitation :: forall r. Member TeamInvitationSubsystem r => TeamId -> Maybe InvitationId -> Role -> Local (Maybe UserId) -> EmailAddress -> InvitationRequest -> Sem r (Invitation, InvitationCode) Source #

This function exists to support migration in this susbystem, after the migration this would just be an internal detail of the subsystem