Zeige den Bezug zwischen Schreiben und lies eine E-Mail vor dem Uebernehmen.
Die Liste behaelt die Schreiben dazwischen. Richtung, Absender, Empfaenger und Anhaenge bleiben an der Nachricht erkennbar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
97bffc6175
commit
f27df3ff35
19 files changed
+1049
-49
No files matched your search
@@ -67,6 +67,7 @@ from app.api.schemas import (
|
||||
RoomIn,
|
||||
ScopeIn,
|
||||
TaskDeadlineIn,
|
||||
ElementReferenceIn,
|
||||
TaskDependencyIn,
|
||||
TaskElementsIn,
|
||||
SummaryPatch,
|
||||
@@ -106,8 +107,10 @@ from app.ops import (
|
||||
grant_access,
|
||||
link_matter_to_case,
|
||||
link_task_deadline,
|
||||
link_element_reference,
|
||||
link_task_dependency,
|
||||
set_task_elements,
|
||||
unlink_element_reference,
|
||||
unlink_task_dependency,
|
||||
patch_case,
|
||||
patch_deadline,
|
||||
@@ -794,6 +797,8 @@ def post_note(body: NoteIn, principal: Principal = Depends(get_principal), conn:
|
||||
_ctx_model(body.placement),
|
||||
body.chapter_id,
|
||||
body.dates.document_on if body.dates else None,
|
||||
body.dates.sent_on if body.dates else None,
|
||||
body.dates.received_on if body.dates else None,
|
||||
)
|
||||
element = created["element"]
|
||||
return _created(
|
||||
@@ -1100,6 +1105,42 @@ def delete_task_dependency(
|
||||
return Response(status_code=204)
|
||||
|
||||
|
||||
@router.post("/api/v1/elements/{element_id}/references", status_code=204)
|
||||
def post_element_reference(
|
||||
element_id: UUID,
|
||||
body: ElementReferenceIn,
|
||||
principal: Principal = Depends(get_principal),
|
||||
conn: Connection = Depends(get_conn),
|
||||
):
|
||||
link_element_reference(
|
||||
conn,
|
||||
principal.account_id,
|
||||
element_id,
|
||||
body.refers_to_element_id,
|
||||
_ctx_model(body.context),
|
||||
)
|
||||
return Response(status_code=204)
|
||||
|
||||
|
||||
@router.delete("/api/v1/elements/{element_id}/references/{refers_to_element_id}", status_code=204)
|
||||
def delete_element_reference(
|
||||
element_id: UUID,
|
||||
refers_to_element_id: UUID,
|
||||
context_kind: str | None = None,
|
||||
context_id: str | None = None,
|
||||
principal: Principal = Depends(get_principal),
|
||||
conn: Connection = Depends(get_conn),
|
||||
):
|
||||
unlink_element_reference(
|
||||
conn,
|
||||
principal.account_id,
|
||||
element_id,
|
||||
refers_to_element_id,
|
||||
parse_query_context(context_kind, context_id),
|
||||
)
|
||||
return Response(status_code=204)
|
||||
|
||||
|
||||
@router.post("/api/v1/deadlines")
|
||||
def post_deadline(body: DeadlineIn, principal: Principal = Depends(get_principal), conn: Connection = Depends(get_conn)):
|
||||
deadline = create_deadline(
|
||||
|
||||
Reference in new issue
Block a user