Extract import sync preview service
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 22:10:06 +03:00
parent 8c19410da1
commit 6dd4d69163
3 changed files with 100 additions and 88 deletions
@@ -0,0 +1,25 @@
from __future__ import annotations
from pydantic import BaseModel, Field
class ImportSyncDiffItem(BaseModel):
qualified_name: str
name: str
object_kind: str
group_name: str | None = None
change_kind: str
before_hash: str | None = None
after_hash: str | None = None
class ImportSyncPreview(BaseModel):
mode: str = "SYNC_PREVIEW"
applied: bool = False
status: str = "preview_only"
message: str
added_count: int = 0
removed_count: int = 0
changed_count: int = 0
unchanged_count: int = 0
items: list[ImportSyncDiffItem] = Field(default_factory=list)