@withpotter/invitations — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

Invitation — table invitations

FieldType
idstring
resourceTypeInvitationResourceType
resourceIdstring
emailstring
roleInvitationRole
tokenstring
statusInvitationStatus
invitedByIdstring | null
invitedByAccount | null
acceptedByIdstring | null
acceptedByAccount | null
expiresAtDate
acceptedAtDate | null
revokedAtDate | null
createdAtDate
updatedAtDate

Repositories

Data-access classes wrapping the entities.

InvitationRepository

create · findById · findByToken · findPendingByEmailAndResource · findAllByResource · findPendingByEmail · update · accept · revoke · expireOldInvitations · delete · resend

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.