Restore completion_date field to TaskCompletionCreateRequest

The completion_date should be provided by the client, not auto-generated
by the backend. Backend has been updated to accept this field.

This allows clients to specify when the task was actually completed,
which may be different from when the completion record is created.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-11-14 10:01:36 -06:00
parent 843833a6bc
commit e87c406695

View File

@@ -42,10 +42,10 @@ data class TaskCompletionCreateRequest(
@SerialName("completed_by_phone") val completedByPhone: String? = null,
@SerialName("completed_by_email") val completedByEmail: String? = null,
@SerialName("company_name") val companyName: String? = null,
@SerialName("completion_date") val completionDate: String,
@SerialName("actual_cost") val actualCost: String? = null,
val notes: String? = null,
val rating: Int? = null
// Note: completion_date is set automatically by the backend
)
@Serializable