feat: Adds update route to equipment info, reorganizes views.

This commit is contained in:
2026-01-05 11:27:20 -05:00
parent 55a3adde25
commit fb7cf9905c
17 changed files with 357 additions and 121 deletions

View File

@@ -50,6 +50,25 @@ extension EquipmentInfo {
self.coolingCFM = coolingCFM
}
}
public struct Update: Codable, Equatable, Sendable {
public let id: EquipmentInfo.ID
public let staticPressure: Double?
public let heatingCFM: Int?
public let coolingCFM: Int?
public init(
id: EquipmentInfo.ID,
staticPressure: Double? = nil,
heatingCFM: Int? = nil,
coolingCFM: Int? = nil
) {
self.id = id
self.staticPressure = staticPressure
self.heatingCFM = heatingCFM
self.coolingCFM = coolingCFM
}
}
}
#if DEBUG