View Source Plausible.Site.Memberships (Plausible v0.0.1)

API for site memberships and invitations

Summary

Functions

Link to this function

accept_invitation(invitation_id, user)

View Source

See Plausible.Site.Memberships.AcceptInvitation.accept_invitation/2.

Link to this function

all_pending_ownerships(email)

View Source
@spec all_pending_ownerships(String.t()) :: list()
@spec any?(Plausible.Auth.User.t()) :: boolean()
@spec any_or_pending?(Plausible.Auth.User.t()) :: boolean()
Link to this function

bulk_create_invitation(sites, inviter, invitee_email, role, opts)

View Source

See Plausible.Site.Memberships.CreateInvitation.bulk_create_invitation/5.

Link to this function

bulk_transfer_ownership_direct(sites, new_owner)

View Source

See Plausible.Site.Memberships.CreateInvitation.bulk_transfer_ownership_direct/2.

Link to this function

create_invitation(site, inviter, invitee_email, role)

View Source

See Plausible.Site.Memberships.CreateInvitation.create_invitation/4.

@spec pending?(String.t()) :: boolean()
Link to this function

pending_ownerships?(email)

View Source
@spec pending_ownerships?(String.t()) :: boolean()
Link to this function

reject_invitation(invitation_id, user)

View Source

See Plausible.Site.Memberships.RejectInvitation.reject_invitation/2.

Link to this function

remove_invitation(invitation_id, site)

View Source

See Plausible.Site.Memberships.RemoveInvitation.remove_invitation/2.

Link to this function

transfer_ownership(site, user)

View Source

See Plausible.Site.Memberships.AcceptInvitation.transfer_ownership/2.