feat: user invite response models
All checks were successful
ci / lint_and_test (push) Successful in 13s
All checks were successful
ci / lint_and_test (push) Successful in 13s
This commit is contained in:
parent
8925280f96
commit
bcdef91dd0
3 changed files with 38 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ from typing import Optional
|
|||
from pydantic import EmailStr
|
||||
|
||||
from src.organisation.schemas import OrgSchema
|
||||
from src.schemas import CustomBaseModel, OrgIDMixin
|
||||
from src.schemas import CustomBaseModel, OrgIDMixin, OrgSummary, UserSummary
|
||||
|
||||
|
||||
class OIDCClaims(CustomBaseModel):
|
||||
|
|
@ -60,3 +60,13 @@ class UserPostInvitationAcceptRequest(CustomBaseModel):
|
|||
|
||||
class UserGetSelfOrgsResponse(CustomBaseModel):
|
||||
organisations: list[OrgSchema]
|
||||
|
||||
|
||||
class UserPostInvitationResponse(CustomBaseModel):
|
||||
organisation: OrgSummary
|
||||
invited_email: EmailStr
|
||||
|
||||
|
||||
class UserPostInvitationAcceptResponse(CustomBaseModel):
|
||||
organisation: OrgSummary
|
||||
user: UserSummary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue