chore(): small improvements

This commit is contained in:
ITQ
2026-02-22 19:19:44 +03:00
parent 4b69bb3af0
commit 385aae930f
5 changed files with 27 additions and 6 deletions
+4
View File
@@ -14,6 +14,7 @@ class EventTypeCreateIn(ModelSchema):
EventType.name.field.name,
EventType.display_name.field.name,
EventType.description.field.name,
EventType.is_exposure.field.name,
EventType.requires_exposure.field.name,
EventType.required_fields.field.name,
)
@@ -22,6 +23,7 @@ class EventTypeCreateIn(ModelSchema):
class EventTypeUpdateIn(ModelSchema):
display_name: str | None = None
description: str | None = None
is_exposure: bool | None = None
requires_exposure: bool | None = None
required_fields: list[str] | None = None
is_active: bool | None = None
@@ -31,6 +33,7 @@ class EventTypeUpdateIn(ModelSchema):
fields: ClassVar[tuple[str, ...]] = (
EventType.display_name.field.name,
EventType.description.field.name,
EventType.is_exposure.field.name,
EventType.requires_exposure.field.name,
EventType.required_fields.field.name,
EventType.is_active.field.name,
@@ -45,6 +48,7 @@ class EventTypeOut(ModelSchema):
EventType.name.field.name,
EventType.display_name.field.name,
EventType.description.field.name,
EventType.is_exposure.field.name,
EventType.requires_exposure.field.name,
EventType.required_fields.field.name,
EventType.is_active.field.name,