@rewiringamerica/rem-test1 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +20 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -0
- package/api/apis.ts +16 -0
- package/api/buildingProfilerApi.ts +161 -0
- package/api/residentialElectrificationModelApi.ts +242 -0
- package/api.ts +3 -0
- package/git_push.sh +57 -0
- package/model/buildingFeatures.ts +165 -0
- package/model/buildingProfile.ts +64 -0
- package/model/buildlingProfileRequest.ts +43 -0
- package/model/fuelData.ts +45 -0
- package/model/hTTPValidationError.ts +31 -0
- package/model/impact.ts +46 -0
- package/model/metrics.ts +58 -0
- package/model/models.ts +299 -0
- package/model/savings.ts +59 -0
- package/model/upgrade.ts +46 -0
- package/model/upgradeType.ts +24 -0
- package/model/validationError.ts +43 -0
- package/model/validationErrorLocInner.ts +25 -0
- package/package.json +46 -0
- package/tsconfig.json +24 -0
@@ -0,0 +1,165 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* A class representing the set of possible building characteristics. Attributes ---------- geometry_floor_area (float | None): The square footage. geometry_stories (float | None): The number of stories. bedrooms (float | None): The number of bedrooms. bathrooms (float | None) : The number of bathrooms. vintage (float | None): The time period a building was built. geometry_attic_type (List[str] | None): The type of attic. hvac_cooling_type (List[str] | None): The presence and type of HVAC cooling type. hvac_heating_type (List[str] | None): The presence and type of HVAC heating type. geometry_garage (List[str] | None): The size of a garage. misc_pool (List[str] | None): The presence of a pool. misc_hot_tub_spa (List[str] | None): The presence and fuel type of a hot tub. misc_well_pump (List[str] | None): The presence and efficiency of a well pump. misc_pool_heater (List[str] | None): The presence and fuel type of a pool heater. geometry_wall_type (List[str] | None): The exterior wall material. geometry_wall_exterior_finish (List[str] | None): The exterior finish material and color. roof_material (List[str] | None): The roof material type. geometry_building_type_acs (List[str] | None): The American Community Survey building type. geometry_building_level_mf (List[str] | None): Location of the multifamily unit vertically within the building (bottom, middle, top). geometry_building_horizontal_location_mf (List[str] | None): Location of the multifamily unit horizontally within a building (left, middle, right) geometry_building_horizontal_location_sfa (List[str] | None): Location of the single-family attached unit horizontally within a building (left, middle, right) geometry_building_number_units_sfa (float | None): Number of units in a single-family attached building. geometry_building_number_units_mf (float | None): Number of units in a multifamily building. heating_fuel (List[str] | None): The primary fuel used for heating.
|
16
|
+
*/
|
17
|
+
export class BuildingFeatures {
|
18
|
+
'geometryFloorArea'?: number;
|
19
|
+
'geometryStories'?: number;
|
20
|
+
'bedrooms'?: number;
|
21
|
+
'bathrooms'?: number;
|
22
|
+
'vintage'?: number;
|
23
|
+
'geometryAtticType'?: Array<string>;
|
24
|
+
'hvacCoolingType'?: Array<string>;
|
25
|
+
'hvacHeatingType'?: Array<string>;
|
26
|
+
'geometryGarage'?: Array<string>;
|
27
|
+
'miscPool'?: Array<string>;
|
28
|
+
'miscHotTubSpa'?: Array<string>;
|
29
|
+
'miscWellPump'?: Array<string>;
|
30
|
+
'miscPoolHeater'?: Array<string>;
|
31
|
+
'geometryWallType'?: Array<string>;
|
32
|
+
'geometryWallExteriorFinish'?: Array<string>;
|
33
|
+
'roofMaterial'?: Array<string>;
|
34
|
+
'geometryBuildingTypeAcs'?: Array<string>;
|
35
|
+
'geometryBuildingLevelMf'?: Array<string>;
|
36
|
+
'geometryBuildingHorizontalLocationMf'?: Array<string>;
|
37
|
+
'geometryBuildingHorizontalLocationSfa'?: Array<string>;
|
38
|
+
'geometryBuildingNumberUnitsSfa'?: number;
|
39
|
+
'geometryBuildingNumberUnitsMf'?: number;
|
40
|
+
'heatingFuel'?: Array<string>;
|
41
|
+
|
42
|
+
static discriminator: string | undefined = undefined;
|
43
|
+
|
44
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
45
|
+
{
|
46
|
+
"name": "geometryFloorArea",
|
47
|
+
"baseName": "geometry_floor_area",
|
48
|
+
"type": "number"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "geometryStories",
|
52
|
+
"baseName": "geometry_stories",
|
53
|
+
"type": "number"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"name": "bedrooms",
|
57
|
+
"baseName": "bedrooms",
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "bathrooms",
|
62
|
+
"baseName": "bathrooms",
|
63
|
+
"type": "number"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "vintage",
|
67
|
+
"baseName": "vintage",
|
68
|
+
"type": "number"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "geometryAtticType",
|
72
|
+
"baseName": "geometry_attic_type",
|
73
|
+
"type": "Array<string>"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"name": "hvacCoolingType",
|
77
|
+
"baseName": "hvac_cooling_type",
|
78
|
+
"type": "Array<string>"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"name": "hvacHeatingType",
|
82
|
+
"baseName": "hvac_heating_type",
|
83
|
+
"type": "Array<string>"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"name": "geometryGarage",
|
87
|
+
"baseName": "geometry_garage",
|
88
|
+
"type": "Array<string>"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"name": "miscPool",
|
92
|
+
"baseName": "misc_pool",
|
93
|
+
"type": "Array<string>"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"name": "miscHotTubSpa",
|
97
|
+
"baseName": "misc_hot_tub_spa",
|
98
|
+
"type": "Array<string>"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"name": "miscWellPump",
|
102
|
+
"baseName": "misc_well_pump",
|
103
|
+
"type": "Array<string>"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"name": "miscPoolHeater",
|
107
|
+
"baseName": "misc_pool_heater",
|
108
|
+
"type": "Array<string>"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"name": "geometryWallType",
|
112
|
+
"baseName": "geometry_wall_type",
|
113
|
+
"type": "Array<string>"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"name": "geometryWallExteriorFinish",
|
117
|
+
"baseName": "geometry_wall_exterior_finish",
|
118
|
+
"type": "Array<string>"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "roofMaterial",
|
122
|
+
"baseName": "roof_material",
|
123
|
+
"type": "Array<string>"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"name": "geometryBuildingTypeAcs",
|
127
|
+
"baseName": "geometry_building_type_acs",
|
128
|
+
"type": "Array<string>"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"name": "geometryBuildingLevelMf",
|
132
|
+
"baseName": "geometry_building_level_mf",
|
133
|
+
"type": "Array<string>"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"name": "geometryBuildingHorizontalLocationMf",
|
137
|
+
"baseName": "geometry_building_horizontal_location_mf",
|
138
|
+
"type": "Array<string>"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"name": "geometryBuildingHorizontalLocationSfa",
|
142
|
+
"baseName": "geometry_building_horizontal_location_sfa",
|
143
|
+
"type": "Array<string>"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"name": "geometryBuildingNumberUnitsSfa",
|
147
|
+
"baseName": "geometry_building_number_units_sfa",
|
148
|
+
"type": "number"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"name": "geometryBuildingNumberUnitsMf",
|
152
|
+
"baseName": "geometry_building_number_units_mf",
|
153
|
+
"type": "number"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"name": "heatingFuel",
|
157
|
+
"baseName": "heating_fuel",
|
158
|
+
"type": "Array<string>"
|
159
|
+
} ];
|
160
|
+
|
161
|
+
static getAttributeTypeMap() {
|
162
|
+
return BuildingFeatures.attributeTypeMap;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import { BuildingFeatures } from './buildingFeatures';
|
14
|
+
|
15
|
+
/**
|
16
|
+
* A class representing a building\'s geolocation and features. Attributes ---------- county (str): The county where a building is located (in GISJOIN format). puma (str): The Public Use Microdata Area (PUMA) where a building is located (in GISJOIN format). ashrae_iecc_climate_zone_2004 (str): The IECC Climate Zone where a building is located. weather_file_city (str): The location of the ResStock Weather File used for the area where the input address is located. state_abbr (str): The 2 letter postal code of the state where a building is located. building_features(BuildingFeatures): The building feature characteristics from from the Building Profile API.
|
17
|
+
*/
|
18
|
+
export class BuildingProfile {
|
19
|
+
'county': string;
|
20
|
+
'puma': string;
|
21
|
+
'ashraeIeccClimateZone2004': string;
|
22
|
+
'weatherFileCity': string;
|
23
|
+
'stateAbbr': string;
|
24
|
+
'buildingFeatures': BuildingFeatures;
|
25
|
+
|
26
|
+
static discriminator: string | undefined = undefined;
|
27
|
+
|
28
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
29
|
+
{
|
30
|
+
"name": "county",
|
31
|
+
"baseName": "county",
|
32
|
+
"type": "string"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"name": "puma",
|
36
|
+
"baseName": "puma",
|
37
|
+
"type": "string"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"name": "ashraeIeccClimateZone2004",
|
41
|
+
"baseName": "ashrae_iecc_climate_zone_2004",
|
42
|
+
"type": "string"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"name": "weatherFileCity",
|
46
|
+
"baseName": "weather_file_city",
|
47
|
+
"type": "string"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"name": "stateAbbr",
|
51
|
+
"baseName": "state_abbr",
|
52
|
+
"type": "string"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"name": "buildingFeatures",
|
56
|
+
"baseName": "building_features",
|
57
|
+
"type": "BuildingFeatures"
|
58
|
+
} ];
|
59
|
+
|
60
|
+
static getAttributeTypeMap() {
|
61
|
+
return BuildingProfile.attributeTypeMap;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import { BuildingProfile } from './buildingProfile';
|
14
|
+
import { Upgrade } from './upgrade';
|
15
|
+
|
16
|
+
/**
|
17
|
+
* A class representing the request body used to retrieve a building\'s profile. Attributes ---------- upgrade: Building Upgrade building_profile: Building Profile
|
18
|
+
*/
|
19
|
+
export class BuildlingProfileRequest {
|
20
|
+
'upgrade': Upgrade;
|
21
|
+
'buildingProfile': BuildingProfile;
|
22
|
+
|
23
|
+
static discriminator: string | undefined = undefined;
|
24
|
+
|
25
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
26
|
+
{
|
27
|
+
"name": "upgrade",
|
28
|
+
"baseName": "upgrade",
|
29
|
+
"type": "Upgrade"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"name": "buildingProfile",
|
33
|
+
"baseName": "building_profile",
|
34
|
+
"type": "BuildingProfile"
|
35
|
+
} ];
|
36
|
+
|
37
|
+
static getAttributeTypeMap() {
|
38
|
+
return BuildlingProfileRequest.attributeTypeMap;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
export namespace BuildlingProfileRequest {
|
43
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* A class to represent fuel data. Attributes ---------- fuel_type (str): The type of fuel. Values can be \"electricity\", \"methane_gas\", \"propane\", \"fuel_oil\", or \"net\". value (float): The numerical value of what the metric is. units (str): The meaurement.
|
16
|
+
*/
|
17
|
+
export class FuelData {
|
18
|
+
'fuelType': string;
|
19
|
+
'value'?: number = 0.0;
|
20
|
+
'units': string;
|
21
|
+
|
22
|
+
static discriminator: string | undefined = undefined;
|
23
|
+
|
24
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
25
|
+
{
|
26
|
+
"name": "fuelType",
|
27
|
+
"baseName": "fuel_type",
|
28
|
+
"type": "string"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "value",
|
32
|
+
"baseName": "value",
|
33
|
+
"type": "number"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"name": "units",
|
37
|
+
"baseName": "units",
|
38
|
+
"type": "string"
|
39
|
+
} ];
|
40
|
+
|
41
|
+
static getAttributeTypeMap() {
|
42
|
+
return FuelData.attributeTypeMap;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import { ValidationError } from './validationError';
|
14
|
+
|
15
|
+
export class HTTPValidationError {
|
16
|
+
'detail'?: Array<ValidationError>;
|
17
|
+
|
18
|
+
static discriminator: string | undefined = undefined;
|
19
|
+
|
20
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
21
|
+
{
|
22
|
+
"name": "detail",
|
23
|
+
"baseName": "detail",
|
24
|
+
"type": "Array<ValidationError>"
|
25
|
+
} ];
|
26
|
+
|
27
|
+
static getAttributeTypeMap() {
|
28
|
+
return HTTPValidationError.attributeTypeMap;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
package/model/impact.ts
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import { Metrics } from './metrics';
|
14
|
+
|
15
|
+
/**
|
16
|
+
* A class to represent impact data based on upgrade. Attributes ---------- energy (Metrics): The data for energy usage per fuel type. emissions (Metrics): The data for emissions per fuel type. cost (Metrics): The data for cost per fuel type.
|
17
|
+
*/
|
18
|
+
export class Impact {
|
19
|
+
'energy': Metrics;
|
20
|
+
'emissions': Metrics;
|
21
|
+
'cost': Metrics;
|
22
|
+
|
23
|
+
static discriminator: string | undefined = undefined;
|
24
|
+
|
25
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
26
|
+
{
|
27
|
+
"name": "energy",
|
28
|
+
"baseName": "energy",
|
29
|
+
"type": "Metrics"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"name": "emissions",
|
33
|
+
"baseName": "emissions",
|
34
|
+
"type": "Metrics"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"name": "cost",
|
38
|
+
"baseName": "cost",
|
39
|
+
"type": "Metrics"
|
40
|
+
} ];
|
41
|
+
|
42
|
+
static getAttributeTypeMap() {
|
43
|
+
return Impact.attributeTypeMap;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
package/model/metrics.ts
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
/**
|
2
|
+
* Dohyo
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
6
|
+
*
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import { FuelData } from './fuelData';
|
14
|
+
|
15
|
+
/**
|
16
|
+
* A class to represent metrics data. Attributes ---------- samples (Dict[int, List[FuelData]]): A dictionary of sample IDs and their associated data for energy, emissions, and cost. mean (List[FuelData]): Mean data for energy, emissions, and cost. median (List[FuelData]): Median data for energy, emissions, and cost. percentile_20 (List[FuelData]): 20th percentile data for energy, emissions, and cost. percentile_80 (List[FuelData]): 80th percentile data for energy, emissions, and cost.
|
17
|
+
*/
|
18
|
+
export class Metrics {
|
19
|
+
'samples': { [key: string]: Array<FuelData>; };
|
20
|
+
'mean': Array<FuelData>;
|
21
|
+
'median': Array<FuelData>;
|
22
|
+
'percentile20': Array<FuelData>;
|
23
|
+
'percentile80': Array<FuelData>;
|
24
|
+
|
25
|
+
static discriminator: string | undefined = undefined;
|
26
|
+
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
28
|
+
{
|
29
|
+
"name": "samples",
|
30
|
+
"baseName": "samples",
|
31
|
+
"type": "{ [key: string]: Array<FuelData>; }"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "mean",
|
35
|
+
"baseName": "mean",
|
36
|
+
"type": "Array<FuelData>"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "median",
|
40
|
+
"baseName": "median",
|
41
|
+
"type": "Array<FuelData>"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"name": "percentile20",
|
45
|
+
"baseName": "percentile_20",
|
46
|
+
"type": "Array<FuelData>"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "percentile80",
|
50
|
+
"baseName": "percentile_80",
|
51
|
+
"type": "Array<FuelData>"
|
52
|
+
} ];
|
53
|
+
|
54
|
+
static getAttributeTypeMap() {
|
55
|
+
return Metrics.attributeTypeMap;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|