feat(invitations): let candidates read, view and decline their invitations
This commit is contained in:
1 parent
c410636b7f
commit
ac57c05aca
27 files changed
+3285
-21
No files matched your search
@@ -19,7 +19,7 @@ import (
|
||||
const defaultInvitationLimit = 20
|
||||
|
||||
// InvitationOperations are the owner-scoped invitation reads and commands and
|
||||
// the candidate's read of the own inbox served by HTTP.
|
||||
// the candidate's inbox, read, view, and decline served by HTTP.
|
||||
type InvitationOperations interface {
|
||||
Create(ctx context.Context, command invitationusecase.CreateCommand) (domain.OrganizationInvitationView, error)
|
||||
Get(ctx context.Context, actorID, organizationID, invitationID uuid.UUID) (domain.OrganizationInvitationView, error)
|
||||
@@ -27,6 +27,9 @@ type InvitationOperations interface {
|
||||
Update(ctx context.Context, command invitationusecase.UpdateCommand) (domain.OrganizationInvitationView, error)
|
||||
Send(ctx context.Context, command invitationusecase.SendCommand) (domain.OrganizationInvitationView, error)
|
||||
ListMine(ctx context.Context, command invitationusecase.CandidateListCommand) (invitationusecase.CandidatePage, error)
|
||||
GetMine(ctx context.Context, actorID, invitationID uuid.UUID) (domain.CandidateInvitationView, error)
|
||||
ViewMine(ctx context.Context, actorID, invitationID uuid.UUID) (domain.CandidateInvitationView, error)
|
||||
DeclineMine(ctx context.Context, command invitationusecase.DeclineCommand) (domain.CandidateInvitationView, error)
|
||||
}
|
||||
|
||||
// InvitationHandler serves the organization side of invitation drafts and
|
||||
|
||||
Reference in new issue
Block a user