@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
| Field | Type |
|---|---|
id | string |
resourceType | InvitationResourceType |
resourceId | string |
email | string |
role | InvitationRole |
token | string |
status | InvitationStatus |
invitedById | string | null |
invitedBy | Account | null |
acceptedById | string | null |
acceptedBy | Account | null |
expiresAt | Date |
acceptedAt | Date | null |
revokedAt | Date | null |
createdAt | Date |
updatedAt | Date |
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.