import Foundation

struct DocumentTypeHelper {
    static let allTypes = ["warranty", "manual", "receipt", "inspection", "permit", "deed", "insurance", "contract", "photo", "other"]

    static func displayName(for value: String) -> String {
        switch value {
        case "warranty": return "Warranty"
        case "manual": return "User Manual"
        case "receipt": return "Receipt/Invoice"
        case "inspection": return "Inspection Report"
        case "permit": return "Permit"
        case "deed": return "Deed/Title"
        case "insurance": return "Insurance"
        case "contract": return "Contract"
        case "photo": return "Photo"
        default: return "Other"
        }
    }
}

struct DocumentCategoryHelper {
    static let allCategories = ["appliance", "hvac", "plumbing", "electrical", "roofing", "structural", "landscaping", "general", "other"]

    static func displayName(for value: String) -> String {
        switch value {
        case "appliance": return "Appliance"
        case "hvac": return "HVAC"
        case "plumbing": return "Plumbing"
        case "electrical": return "Electrical"
        case "roofing": return "Roofing"
        case "structural": return "Structural"
        case "landscaping": return "Landscaping"
        case "general": return "General"
        default: return "Other"
        }
    }
}
