feat(tasks): include target_meta/reward_meta in TaskListItem response

Cabinet admin needs target_meta.tariff_id to render the tariff badge in
the tasks list. Adds target_meta and reward_meta fields to the compact
TaskListItem schema (defaults to {} for backward compatibility).
This commit is contained in:
Fringg
2026-05-06 09:03:41 +03:00
parent 7bbf9fbc63
commit b377c52fd9
+2
View File
@@ -236,8 +236,10 @@ class TaskListItem(BaseModel):
sort_order: int sort_order: int
task_type: str task_type: str
target_value: int target_value: int
target_meta: dict[str, Any] = Field(default_factory=dict)
reward_type: str reward_type: str
reward_value: int reward_value: int
reward_meta: dict[str, Any] = Field(default_factory=dict)
user_audience: str user_audience: str
promo_group_id: int | None = None promo_group_id: int | None = None
parent_task_id: int | None = None parent_task_id: int | None = None