-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* created objects * home changed to an interface, example of how to use interface included in CurrentHeatingSystem * updated remaining models to interfaces * update to reflect changes to main * field names changed per comments in PR * made all model names singular * added ' Propane' option to fuelType, provided inclusionOverride options * updated field in Location to camel case * example of instantiating heatLoadAnalysis object * example of instantiating natural gas bill records * combined interfaces into /types/index.d.ts * added type declarations to 2 components
- Loading branch information
Showing
5 changed files
with
152 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
heat-stack/app/components/ui/heat/CaseSummaryComponents/CurrentHeatingSystem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export interface Case { | ||
firstName: string | ||
lastName: string | ||
} | ||
|
||
export interface HeatLoadAnalysis { | ||
rulesEngineVersion: string | ||
estimatedBalancePoint: number | ||
otherFuelUsage: number | ||
averageIndoorTemperature: number | ||
differenceBetweenTiAndTbp: number | ||
designTemperature: number | ||
wholeHomeHeatLossRate: number | ||
standardDeviationHeatLossRate: number | ||
averageHeatLoad: number | ||
maximumHeatLoad: number | ||
} | ||
|
||
export interface Home { | ||
livingArea: number | ||
fuelType: 'Natural Gas' | 'Oil' | 'Propane' | ||
designTemperatureOverride: number | ||
heatingSystemEfficiency: number | ||
thermostatSetPoint: number | ||
setbackTemperature: number | ||
setbackHoursPerDay: number | ||
numberOfOccupants: number | ||
estimatedWaterHeatingEfficiency: number | ||
standByLosses: number | ||
} | ||
|
||
export interface Location { | ||
address: string | ||
addressLine2: string | ||
city: string | ||
state: string | ||
zip: string | ||
country: string | ||
} | ||
|
||
export interface NaturalGasBill { | ||
provider: string | ||
} | ||
|
||
export interface NaturalGasBillRecord { | ||
periodStartDate: Date | ||
periodEndDate: Date | ||
usageTherms: number | ||
inclusionOverride: 'Include' | 'Do not include' | 'Include in other analysis' | ||
} | ||
|
||
export interface OilPropaneBill { | ||
provider: string | ||
precedingDeliveryDate: Date | ||
} | ||
|
||
export interface OilPropaneBillRecord { | ||
periodStartDate: Date | ||
periodEndDate: Date | ||
gallons: number | ||
inclusionOverride: 'Include' | 'Do not include' | 'Include in other analysis' | ||
} |