- Update all Kotlin API models to match Go API response structures - Fix Swift type aliases (TaskDetail→TaskResponse, Residence→ResidenceResponse, etc.) - Update TaskCompletionCreateRequest to simplified Go API format (taskId, notes, actualCost, photoUrl) - Fix optional handling for frequency, priority, category, status in task models - Replace isPrimaryOwner with ownerId comparison against current user - Update ResidenceUsersResponse to use owner.id instead of ownerId - Fix non-optional String fields to use isEmpty checks instead of optional binding - Add type aliases for backwards compatibility in Kotlin models 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
270 B
Swift
9 lines
270 B
Swift
import Foundation
|
|
import ComposeApp
|
|
|
|
// Extension to make TaskResponse conform to Identifiable for SwiftUI
|
|
extension TaskResponse: Identifiable {
|
|
// TaskDetail already has an `id` property from Kotlin,
|
|
// so we just need to declare conformance to Identifiable
|
|
}
|