T11: tags plugin + permissions plugin + entity links backend — 68 tests, 66.61% coverage
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""Pydantic schemas for the Entity Links plugin."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class EntityLinkRequest(BaseModel):
|
||||
entity_type: str = Field(..., pattern="^(company|contact)$")
|
||||
entity_id: str
|
||||
|
||||
|
||||
class EntityLinkResponse(BaseModel):
|
||||
id: str
|
||||
file_id: str
|
||||
entity_type: str
|
||||
entity_id: str
|
||||
|
||||
|
||||
class FileListResponse(BaseModel):
|
||||
file_id: str
|
||||
entity_type: str
|
||||
Reference in New Issue
Block a user