feat: deals viewer mode and links for viewers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from typing import Optional
|
||||
from typing import Optional, TypedDict, Union
|
||||
|
||||
from models import User
|
||||
from schemas.base import BaseSchema, CustomModelSnake
|
||||
|
||||
|
||||
@@ -14,3 +15,16 @@ class AuthLoginRequest(CustomModelSnake):
|
||||
|
||||
class AuthLoginResponse(BaseSchema):
|
||||
access_token: str
|
||||
|
||||
|
||||
class UserDealEditor(TypedDict):
|
||||
deal_id: int
|
||||
sub: str
|
||||
|
||||
|
||||
class UserViewer(TypedDict):
|
||||
client_id: int
|
||||
sub: str
|
||||
|
||||
|
||||
UserUnion = Union[User, UserViewer, UserDealEditor]
|
||||
|
||||
Reference in New Issue
Block a user