dragonfly-schema 1.1502.10 → 1.1504.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +163 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +86 -83
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -672,16 +672,17 @@ __decorateClass([
|
|
|
672
672
|
var BuildingPropertiesAbridged = _BuildingPropertiesAbridged;
|
|
673
673
|
|
|
674
674
|
// src/models/Building.ts
|
|
675
|
-
var
|
|
675
|
+
var import_honeybee_schema18 = require("honeybee-schema");
|
|
676
676
|
|
|
677
677
|
// src/models/RoofSpecification.ts
|
|
678
678
|
var import_class_validator8 = require("class-validator");
|
|
679
679
|
var import_class_transformer9 = require("class-transformer");
|
|
680
680
|
var import_honeybee_schema = require("honeybee-schema");
|
|
681
|
+
var import_honeybee_schema2 = require("honeybee-schema");
|
|
681
682
|
var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
682
683
|
constructor() {
|
|
683
684
|
super();
|
|
684
|
-
/** An array of Face3D objects representing the geometry of the Roof.
|
|
685
|
+
/** An array of Face3D (or Mesh3D) objects representing the geometry of the Roof. Cases where Room2Ds are only partially covered by these roof geometries will result in those portions of the Room2Ds being extruded to their floor_to_ceiling_height. */
|
|
685
686
|
__publicField(this, "geometry");
|
|
686
687
|
/** type */
|
|
687
688
|
__publicField(this, "type", "RoofSpecification");
|
|
@@ -729,11 +730,13 @@ var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
|
729
730
|
};
|
|
730
731
|
__decorateClass([
|
|
731
732
|
(0, import_class_validator8.IsArray)(),
|
|
732
|
-
(0, import_class_transformer9.Type)(() => import_honeybee_schema.Face3D),
|
|
733
|
-
(0, import_class_validator8.IsInstance)(import_honeybee_schema.Face3D, { each: true }),
|
|
734
|
-
(0, import_class_validator8.ValidateNested)({ each: true }),
|
|
735
733
|
(0, import_class_validator8.IsDefined)(),
|
|
736
|
-
(0, import_class_transformer9.Expose)({ name: "geometry" })
|
|
734
|
+
(0, import_class_transformer9.Expose)({ name: "geometry" }),
|
|
735
|
+
(0, import_class_transformer9.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
736
|
+
if ((item == null ? void 0 : item.type) === "Face3D") return import_honeybee_schema.Face3D.fromJS(item);
|
|
737
|
+
else if ((item == null ? void 0 : item.type) === "Mesh3D") return import_honeybee_schema2.Mesh3D.fromJS(item);
|
|
738
|
+
else return item;
|
|
739
|
+
}))
|
|
737
740
|
], _RoofSpecification.prototype, "geometry", 2);
|
|
738
741
|
__decorateClass([
|
|
739
742
|
(0, import_class_transformer9.Type)(() => String),
|
|
@@ -745,13 +748,13 @@ __decorateClass([
|
|
|
745
748
|
var RoofSpecification = _RoofSpecification;
|
|
746
749
|
|
|
747
750
|
// src/models/Building.ts
|
|
748
|
-
var
|
|
751
|
+
var import_honeybee_schema19 = require("honeybee-schema");
|
|
749
752
|
|
|
750
753
|
// src/models/Story.ts
|
|
751
754
|
var import_class_validator41 = require("class-validator");
|
|
752
755
|
var import_class_transformer36 = require("class-transformer");
|
|
753
|
-
var import_honeybee_schema15 = require("honeybee-schema");
|
|
754
756
|
var import_honeybee_schema16 = require("honeybee-schema");
|
|
757
|
+
var import_honeybee_schema17 = require("honeybee-schema");
|
|
755
758
|
|
|
756
759
|
// src/models/Room2D.ts
|
|
757
760
|
var import_class_validator36 = require("class-validator");
|
|
@@ -839,7 +842,7 @@ function IsNestedStringArray(validationOptions) {
|
|
|
839
842
|
}
|
|
840
843
|
|
|
841
844
|
// src/models/Room2D.ts
|
|
842
|
-
var
|
|
845
|
+
var import_honeybee_schema10 = require("honeybee-schema");
|
|
843
846
|
|
|
844
847
|
// src/models/DetailedSkylights.ts
|
|
845
848
|
var import_class_validator10 = require("class-validator");
|
|
@@ -1068,7 +1071,7 @@ var ExtrudedBorder = _ExtrudedBorder;
|
|
|
1068
1071
|
// src/models/GriddedSkylightArea.ts
|
|
1069
1072
|
var import_class_validator15 = require("class-validator");
|
|
1070
1073
|
var import_class_transformer13 = require("class-transformer");
|
|
1071
|
-
var
|
|
1074
|
+
var import_honeybee_schema3 = require("honeybee-schema");
|
|
1072
1075
|
var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseModel {
|
|
1073
1076
|
constructor() {
|
|
1074
1077
|
super();
|
|
@@ -1077,9 +1080,9 @@ var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseMod
|
|
|
1077
1080
|
/** type */
|
|
1078
1081
|
__publicField(this, "type", "GriddedSkylightArea");
|
|
1079
1082
|
/** A number for the spacing between the centers of each grid cell. This should be less than a third of the dimension of the Roof geometry if multiple, evenly-spaced skylights are desired. If Autocalculate, a spacing of one third the smaller dimension of the parent Roof will be automatically assumed. */
|
|
1080
|
-
__publicField(this, "spacing", new
|
|
1083
|
+
__publicField(this, "spacing", new import_honeybee_schema3.Autocalculate());
|
|
1081
1084
|
this.type = "GriddedSkylightArea";
|
|
1082
|
-
this.spacing = new
|
|
1085
|
+
this.spacing = new import_honeybee_schema3.Autocalculate();
|
|
1083
1086
|
}
|
|
1084
1087
|
init(_data) {
|
|
1085
1088
|
var _a, _b;
|
|
@@ -1087,7 +1090,7 @@ var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseMod
|
|
|
1087
1090
|
const obj = deepTransform(_GriddedSkylightArea, _data);
|
|
1088
1091
|
this.skylightArea = obj.skylightArea;
|
|
1089
1092
|
this.type = (_a = obj.type) != null ? _a : "GriddedSkylightArea";
|
|
1090
|
-
this.spacing = (_b = obj.spacing) != null ? _b : new
|
|
1093
|
+
this.spacing = (_b = obj.spacing) != null ? _b : new import_honeybee_schema3.Autocalculate();
|
|
1091
1094
|
}
|
|
1092
1095
|
}
|
|
1093
1096
|
static fromJS(data) {
|
|
@@ -1108,7 +1111,7 @@ var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseMod
|
|
|
1108
1111
|
data = typeof data === "object" ? data : {};
|
|
1109
1112
|
data["skylight_area"] = this.skylightArea;
|
|
1110
1113
|
data["type"] = (_a = this.type) != null ? _a : "GriddedSkylightArea";
|
|
1111
|
-
data["spacing"] = (_b = this.spacing) != null ? _b : new
|
|
1114
|
+
data["spacing"] = (_b = this.spacing) != null ? _b : new import_honeybee_schema3.Autocalculate();
|
|
1112
1115
|
data = super.toJSON(data);
|
|
1113
1116
|
return (0, import_class_transformer13.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
1114
1117
|
}
|
|
@@ -1145,7 +1148,7 @@ var GriddedSkylightArea = _GriddedSkylightArea;
|
|
|
1145
1148
|
// src/models/GriddedSkylightRatio.ts
|
|
1146
1149
|
var import_class_validator16 = require("class-validator");
|
|
1147
1150
|
var import_class_transformer14 = require("class-transformer");
|
|
1148
|
-
var
|
|
1151
|
+
var import_honeybee_schema4 = require("honeybee-schema");
|
|
1149
1152
|
var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseModel {
|
|
1150
1153
|
constructor() {
|
|
1151
1154
|
super();
|
|
@@ -1154,9 +1157,9 @@ var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseM
|
|
|
1154
1157
|
/** type */
|
|
1155
1158
|
__publicField(this, "type", "GriddedSkylightRatio");
|
|
1156
1159
|
/** A number for the spacing between the centers of each grid cell. This should be less than a third of the dimension of the Roof geometry if multiple, evenly-spaced skylights are desired. If Autocalculate, a spacing of one third the smaller dimension of the parent Roof will be automatically assumed. */
|
|
1157
|
-
__publicField(this, "spacing", new
|
|
1160
|
+
__publicField(this, "spacing", new import_honeybee_schema4.Autocalculate());
|
|
1158
1161
|
this.type = "GriddedSkylightRatio";
|
|
1159
|
-
this.spacing = new
|
|
1162
|
+
this.spacing = new import_honeybee_schema4.Autocalculate();
|
|
1160
1163
|
}
|
|
1161
1164
|
init(_data) {
|
|
1162
1165
|
var _a, _b;
|
|
@@ -1164,7 +1167,7 @@ var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseM
|
|
|
1164
1167
|
const obj = deepTransform(_GriddedSkylightRatio, _data);
|
|
1165
1168
|
this.skylightRatio = obj.skylightRatio;
|
|
1166
1169
|
this.type = (_a = obj.type) != null ? _a : "GriddedSkylightRatio";
|
|
1167
|
-
this.spacing = (_b = obj.spacing) != null ? _b : new
|
|
1170
|
+
this.spacing = (_b = obj.spacing) != null ? _b : new import_honeybee_schema4.Autocalculate();
|
|
1168
1171
|
}
|
|
1169
1172
|
}
|
|
1170
1173
|
static fromJS(data) {
|
|
@@ -1185,7 +1188,7 @@ var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseM
|
|
|
1185
1188
|
data = typeof data === "object" ? data : {};
|
|
1186
1189
|
data["skylight_ratio"] = this.skylightRatio;
|
|
1187
1190
|
data["type"] = (_a = this.type) != null ? _a : "GriddedSkylightRatio";
|
|
1188
|
-
data["spacing"] = (_b = this.spacing) != null ? _b : new
|
|
1191
|
+
data["spacing"] = (_b = this.spacing) != null ? _b : new import_honeybee_schema4.Autocalculate();
|
|
1189
1192
|
data = super.toJSON(data);
|
|
1190
1193
|
return (0, import_class_transformer14.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
1191
1194
|
}
|
|
@@ -1220,8 +1223,8 @@ __decorateClass([
|
|
|
1220
1223
|
var GriddedSkylightRatio = _GriddedSkylightRatio;
|
|
1221
1224
|
|
|
1222
1225
|
// src/models/Room2D.ts
|
|
1223
|
-
var import_honeybee_schema10 = require("honeybee-schema");
|
|
1224
1226
|
var import_honeybee_schema11 = require("honeybee-schema");
|
|
1227
|
+
var import_honeybee_schema12 = require("honeybee-schema");
|
|
1225
1228
|
|
|
1226
1229
|
// src/models/LouversByCount.ts
|
|
1227
1230
|
var import_class_validator17 = require("class-validator");
|
|
@@ -1368,8 +1371,8 @@ __decorateClass([
|
|
|
1368
1371
|
var LouversByDistance = _LouversByDistance;
|
|
1369
1372
|
|
|
1370
1373
|
// src/models/Room2D.ts
|
|
1371
|
-
var import_honeybee_schema12 = require("honeybee-schema");
|
|
1372
1374
|
var import_honeybee_schema13 = require("honeybee-schema");
|
|
1375
|
+
var import_honeybee_schema14 = require("honeybee-schema");
|
|
1373
1376
|
|
|
1374
1377
|
// src/models/Overhang.ts
|
|
1375
1378
|
var import_class_validator19 = require("class-validator");
|
|
@@ -2029,39 +2032,39 @@ var Room2DComparisonProperties = _Room2DComparisonProperties;
|
|
|
2029
2032
|
// src/models/Room2DDoe2Properties.ts
|
|
2030
2033
|
var import_class_validator28 = require("class-validator");
|
|
2031
2034
|
var import_class_transformer24 = require("class-transformer");
|
|
2032
|
-
var
|
|
2035
|
+
var import_honeybee_schema5 = require("honeybee-schema");
|
|
2033
2036
|
var _Room2DDoe2Properties = class _Room2DDoe2Properties extends _OpenAPIGenBaseModel {
|
|
2034
2037
|
constructor() {
|
|
2035
2038
|
super();
|
|
2036
2039
|
/** type */
|
|
2037
2040
|
__publicField(this, "type", "Room2DDoe2Properties");
|
|
2038
2041
|
/** A number for the design supply air flow rate for the zone the Room is assigned to (cfm). This establishes the minimum allowed design air flow. Note that the actual design flow may be larger. If Autocalculate, this parameter will not be written into the INP. */
|
|
2039
|
-
__publicField(this, "assignedFlow", new
|
|
2042
|
+
__publicField(this, "assignedFlow", new import_honeybee_schema5.Autocalculate());
|
|
2040
2043
|
/** A number for the design supply air flow rate to the zone per unit floor area (cfm/ft2). If Autocalculate, this parameter will not be written into the INP. */
|
|
2041
|
-
__publicField(this, "flowPerArea", new
|
|
2044
|
+
__publicField(this, "flowPerArea", new import_honeybee_schema5.Autocalculate());
|
|
2042
2045
|
/** A number between 0 and 1 for the minimum allowable zone air supply flow rate, expressed as a fraction of design flow rate. Applicable to variable-volume type systems only. If Autocalculate, this parameter will not be written into the INP. */
|
|
2043
|
-
__publicField(this, "minFlowRatio", new
|
|
2046
|
+
__publicField(this, "minFlowRatio", new import_honeybee_schema5.Autocalculate());
|
|
2044
2047
|
/** A number for the minimum air flow per square foot of floor area (cfm/ft2). This is an alternative way of specifying the min_flow_ratio. If Autocalculate, this parameter will not be written into the INP. */
|
|
2045
|
-
__publicField(this, "minFlowPerArea", new
|
|
2048
|
+
__publicField(this, "minFlowPerArea", new import_honeybee_schema5.Autocalculate());
|
|
2046
2049
|
/** A number between 0 and 1 for the ratio of the maximum (or fixed) heating airflow to the cooling airflow. The specific meaning varies according to the type of zone terminal. If Autocalculate, this parameter will not be written into the INP. */
|
|
2047
|
-
__publicField(this, "hmaxFlowRatio", new
|
|
2050
|
+
__publicField(this, "hmaxFlowRatio", new import_honeybee_schema5.Autocalculate());
|
|
2048
2051
|
this.type = "Room2DDoe2Properties";
|
|
2049
|
-
this.assignedFlow = new
|
|
2050
|
-
this.flowPerArea = new
|
|
2051
|
-
this.minFlowRatio = new
|
|
2052
|
-
this.minFlowPerArea = new
|
|
2053
|
-
this.hmaxFlowRatio = new
|
|
2052
|
+
this.assignedFlow = new import_honeybee_schema5.Autocalculate();
|
|
2053
|
+
this.flowPerArea = new import_honeybee_schema5.Autocalculate();
|
|
2054
|
+
this.minFlowRatio = new import_honeybee_schema5.Autocalculate();
|
|
2055
|
+
this.minFlowPerArea = new import_honeybee_schema5.Autocalculate();
|
|
2056
|
+
this.hmaxFlowRatio = new import_honeybee_schema5.Autocalculate();
|
|
2054
2057
|
}
|
|
2055
2058
|
init(_data) {
|
|
2056
2059
|
var _a, _b, _c, _d, _e, _f;
|
|
2057
2060
|
if (_data) {
|
|
2058
2061
|
const obj = deepTransform(_Room2DDoe2Properties, _data);
|
|
2059
2062
|
this.type = (_a = obj.type) != null ? _a : "Room2DDoe2Properties";
|
|
2060
|
-
this.assignedFlow = (_b = obj.assignedFlow) != null ? _b : new
|
|
2061
|
-
this.flowPerArea = (_c = obj.flowPerArea) != null ? _c : new
|
|
2062
|
-
this.minFlowRatio = (_d = obj.minFlowRatio) != null ? _d : new
|
|
2063
|
-
this.minFlowPerArea = (_e = obj.minFlowPerArea) != null ? _e : new
|
|
2064
|
-
this.hmaxFlowRatio = (_f = obj.hmaxFlowRatio) != null ? _f : new
|
|
2063
|
+
this.assignedFlow = (_b = obj.assignedFlow) != null ? _b : new import_honeybee_schema5.Autocalculate();
|
|
2064
|
+
this.flowPerArea = (_c = obj.flowPerArea) != null ? _c : new import_honeybee_schema5.Autocalculate();
|
|
2065
|
+
this.minFlowRatio = (_d = obj.minFlowRatio) != null ? _d : new import_honeybee_schema5.Autocalculate();
|
|
2066
|
+
this.minFlowPerArea = (_e = obj.minFlowPerArea) != null ? _e : new import_honeybee_schema5.Autocalculate();
|
|
2067
|
+
this.hmaxFlowRatio = (_f = obj.hmaxFlowRatio) != null ? _f : new import_honeybee_schema5.Autocalculate();
|
|
2065
2068
|
}
|
|
2066
2069
|
}
|
|
2067
2070
|
static fromJS(data) {
|
|
@@ -2081,11 +2084,11 @@ var _Room2DDoe2Properties = class _Room2DDoe2Properties extends _OpenAPIGenBaseM
|
|
|
2081
2084
|
var _a, _b, _c, _d, _e, _f;
|
|
2082
2085
|
data = typeof data === "object" ? data : {};
|
|
2083
2086
|
data["type"] = (_a = this.type) != null ? _a : "Room2DDoe2Properties";
|
|
2084
|
-
data["assigned_flow"] = (_b = this.assignedFlow) != null ? _b : new
|
|
2085
|
-
data["flow_per_area"] = (_c = this.flowPerArea) != null ? _c : new
|
|
2086
|
-
data["min_flow_ratio"] = (_d = this.minFlowRatio) != null ? _d : new
|
|
2087
|
-
data["min_flow_per_area"] = (_e = this.minFlowPerArea) != null ? _e : new
|
|
2088
|
-
data["hmax_flow_ratio"] = (_f = this.hmaxFlowRatio) != null ? _f : new
|
|
2087
|
+
data["assigned_flow"] = (_b = this.assignedFlow) != null ? _b : new import_honeybee_schema5.Autocalculate();
|
|
2088
|
+
data["flow_per_area"] = (_c = this.flowPerArea) != null ? _c : new import_honeybee_schema5.Autocalculate();
|
|
2089
|
+
data["min_flow_ratio"] = (_d = this.minFlowRatio) != null ? _d : new import_honeybee_schema5.Autocalculate();
|
|
2090
|
+
data["min_flow_per_area"] = (_e = this.minFlowPerArea) != null ? _e : new import_honeybee_schema5.Autocalculate();
|
|
2091
|
+
data["hmax_flow_ratio"] = (_f = this.hmaxFlowRatio) != null ? _f : new import_honeybee_schema5.Autocalculate();
|
|
2089
2092
|
data = super.toJSON(data);
|
|
2090
2093
|
return (0, import_class_transformer24.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
2091
2094
|
}
|
|
@@ -2132,9 +2135,9 @@ var Room2DDoe2Properties = _Room2DDoe2Properties;
|
|
|
2132
2135
|
// src/models/Room2DEnergyPropertiesAbridged.ts
|
|
2133
2136
|
var import_class_validator29 = require("class-validator");
|
|
2134
2137
|
var import_class_transformer25 = require("class-transformer");
|
|
2135
|
-
var import_honeybee_schema5 = require("honeybee-schema");
|
|
2136
2138
|
var import_honeybee_schema6 = require("honeybee-schema");
|
|
2137
2139
|
var import_honeybee_schema7 = require("honeybee-schema");
|
|
2140
|
+
var import_honeybee_schema8 = require("honeybee-schema");
|
|
2138
2141
|
var _Room2DEnergyPropertiesAbridged = class _Room2DEnergyPropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
2139
2142
|
constructor() {
|
|
2140
2143
|
super();
|
|
@@ -2248,23 +2251,23 @@ __decorateClass([
|
|
|
2248
2251
|
(0, import_class_transformer25.Expose)({ name: "shw" })
|
|
2249
2252
|
], _Room2DEnergyPropertiesAbridged.prototype, "shw", 2);
|
|
2250
2253
|
__decorateClass([
|
|
2251
|
-
(0, import_class_transformer25.Type)(() =>
|
|
2252
|
-
(0, import_class_validator29.IsInstance)(
|
|
2254
|
+
(0, import_class_transformer25.Type)(() => import_honeybee_schema7.VentilationControlAbridged),
|
|
2255
|
+
(0, import_class_validator29.IsInstance)(import_honeybee_schema7.VentilationControlAbridged),
|
|
2253
2256
|
(0, import_class_validator29.ValidateNested)(),
|
|
2254
2257
|
(0, import_class_validator29.IsOptional)(),
|
|
2255
2258
|
(0, import_class_transformer25.Expose)({ name: "window_vent_control" })
|
|
2256
2259
|
], _Room2DEnergyPropertiesAbridged.prototype, "windowVentControl", 2);
|
|
2257
2260
|
__decorateClass([
|
|
2258
|
-
(0, import_class_transformer25.Type)(() =>
|
|
2259
|
-
(0, import_class_validator29.IsInstance)(
|
|
2261
|
+
(0, import_class_transformer25.Type)(() => import_honeybee_schema8.VentilationOpening),
|
|
2262
|
+
(0, import_class_validator29.IsInstance)(import_honeybee_schema8.VentilationOpening),
|
|
2260
2263
|
(0, import_class_validator29.ValidateNested)(),
|
|
2261
2264
|
(0, import_class_validator29.IsOptional)(),
|
|
2262
2265
|
(0, import_class_transformer25.Expose)({ name: "window_vent_opening" })
|
|
2263
2266
|
], _Room2DEnergyPropertiesAbridged.prototype, "windowVentOpening", 2);
|
|
2264
2267
|
__decorateClass([
|
|
2265
2268
|
(0, import_class_validator29.IsArray)(),
|
|
2266
|
-
(0, import_class_transformer25.Type)(() =>
|
|
2267
|
-
(0, import_class_validator29.IsInstance)(
|
|
2269
|
+
(0, import_class_transformer25.Type)(() => import_honeybee_schema6.ProcessAbridged),
|
|
2270
|
+
(0, import_class_validator29.IsInstance)(import_honeybee_schema6.ProcessAbridged, { each: true }),
|
|
2268
2271
|
(0, import_class_validator29.ValidateNested)({ each: true }),
|
|
2269
2272
|
(0, import_class_validator29.IsOptional)(),
|
|
2270
2273
|
(0, import_class_transformer25.Expose)({ name: "process_loads" })
|
|
@@ -2553,7 +2556,7 @@ var RoomGridParameter = _RoomGridParameter;
|
|
|
2553
2556
|
// src/models/RoomRadialGridParameter.ts
|
|
2554
2557
|
var import_class_validator33 = require("class-validator");
|
|
2555
2558
|
var import_class_transformer29 = require("class-transformer");
|
|
2556
|
-
var
|
|
2559
|
+
var import_honeybee_schema9 = require("honeybee-schema");
|
|
2557
2560
|
var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridParameter {
|
|
2558
2561
|
constructor() {
|
|
2559
2562
|
super();
|
|
@@ -2562,11 +2565,11 @@ var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridPa
|
|
|
2562
2565
|
/** A vector as 3 (x, y, z) values to set the start direction of the generated directions. This can be used to orient the resulting sensors to specific parts of the scene. It can also change the elevation of the resulting directions since this start vector will always be rotated in the XY plane to generate the resulting directions. */
|
|
2563
2566
|
__publicField(this, "startVector");
|
|
2564
2567
|
/** An optional number to override the radius of the meshes generated around each sensor. If Autocalculate, it will be equal to 45 percent of the grid dimension. */
|
|
2565
|
-
__publicField(this, "meshRadius", new
|
|
2568
|
+
__publicField(this, "meshRadius", new import_honeybee_schema9.Autocalculate());
|
|
2566
2569
|
/** type */
|
|
2567
2570
|
__publicField(this, "type", "RoomRadialGridParameter");
|
|
2568
2571
|
this.dirCount = 8;
|
|
2569
|
-
this.meshRadius = new
|
|
2572
|
+
this.meshRadius = new import_honeybee_schema9.Autocalculate();
|
|
2570
2573
|
this.type = "RoomRadialGridParameter";
|
|
2571
2574
|
}
|
|
2572
2575
|
init(_data) {
|
|
@@ -2575,7 +2578,7 @@ var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridPa
|
|
|
2575
2578
|
const obj = deepTransform(_RoomRadialGridParameter, _data);
|
|
2576
2579
|
this.dirCount = (_a = obj.dirCount) != null ? _a : 8;
|
|
2577
2580
|
this.startVector = obj.startVector;
|
|
2578
|
-
this.meshRadius = (_b = obj.meshRadius) != null ? _b : new
|
|
2581
|
+
this.meshRadius = (_b = obj.meshRadius) != null ? _b : new import_honeybee_schema9.Autocalculate();
|
|
2579
2582
|
this.type = (_c = obj.type) != null ? _c : "RoomRadialGridParameter";
|
|
2580
2583
|
this.offset = (_d = obj.offset) != null ? _d : 1;
|
|
2581
2584
|
this.wallOffset = (_e = obj.wallOffset) != null ? _e : 0;
|
|
@@ -2601,7 +2604,7 @@ var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridPa
|
|
|
2601
2604
|
data = typeof data === "object" ? data : {};
|
|
2602
2605
|
data["dir_count"] = (_a = this.dirCount) != null ? _a : 8;
|
|
2603
2606
|
data["start_vector"] = this.startVector;
|
|
2604
|
-
data["mesh_radius"] = (_b = this.meshRadius) != null ? _b : new
|
|
2607
|
+
data["mesh_radius"] = (_b = this.meshRadius) != null ? _b : new import_honeybee_schema9.Autocalculate();
|
|
2605
2608
|
data["type"] = (_c = this.type) != null ? _c : "RoomRadialGridParameter";
|
|
2606
2609
|
data = super.toJSON(data);
|
|
2607
2610
|
return (0, import_class_transformer29.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
@@ -2824,8 +2827,8 @@ __decorateClass([
|
|
|
2824
2827
|
var Room2DPropertiesAbridged = _Room2DPropertiesAbridged;
|
|
2825
2828
|
|
|
2826
2829
|
// src/models/Room2D.ts
|
|
2827
|
-
var
|
|
2828
|
-
var _Room2D = class _Room2D extends
|
|
2830
|
+
var import_honeybee_schema15 = require("honeybee-schema");
|
|
2831
|
+
var _Room2D = class _Room2D extends import_honeybee_schema12.IDdBaseModel {
|
|
2829
2832
|
constructor() {
|
|
2830
2833
|
super();
|
|
2831
2834
|
/** A list of 2D points representing the outer boundary vertices of the Room2D. The list should include at least 3 points and each point should be a list of 2 (x, y) values. */
|
|
@@ -3034,11 +3037,11 @@ __decorateClass([
|
|
|
3034
3037
|
(0, import_class_validator36.IsOptional)(),
|
|
3035
3038
|
(0, import_class_transformer32.Expose)({ name: "boundary_conditions" }),
|
|
3036
3039
|
(0, import_class_transformer32.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
3037
|
-
if ((item == null ? void 0 : item.type) === "Ground") return
|
|
3038
|
-
else if ((item == null ? void 0 : item.type) === "Outdoors") return
|
|
3039
|
-
else if ((item == null ? void 0 : item.type) === "Surface") return
|
|
3040
|
-
else if ((item == null ? void 0 : item.type) === "Adiabatic") return
|
|
3041
|
-
else if ((item == null ? void 0 : item.type) === "OtherSideTemperature") return
|
|
3040
|
+
if ((item == null ? void 0 : item.type) === "Ground") return import_honeybee_schema11.Ground.fromJS(item);
|
|
3041
|
+
else if ((item == null ? void 0 : item.type) === "Outdoors") return import_honeybee_schema14.Outdoors.fromJS(item);
|
|
3042
|
+
else if ((item == null ? void 0 : item.type) === "Surface") return import_honeybee_schema15.Surface.fromJS(item);
|
|
3043
|
+
else if ((item == null ? void 0 : item.type) === "Adiabatic") return import_honeybee_schema10.Adiabatic.fromJS(item);
|
|
3044
|
+
else if ((item == null ? void 0 : item.type) === "OtherSideTemperature") return import_honeybee_schema13.OtherSideTemperature.fromJS(item);
|
|
3042
3045
|
else return item;
|
|
3043
3046
|
}))
|
|
3044
3047
|
], _Room2D.prototype, "boundaryConditions", 2);
|
|
@@ -3314,7 +3317,7 @@ var StoryType = /* @__PURE__ */ ((StoryType2) => {
|
|
|
3314
3317
|
})(StoryType || {});
|
|
3315
3318
|
|
|
3316
3319
|
// src/models/Story.ts
|
|
3317
|
-
var _Story = class _Story extends
|
|
3320
|
+
var _Story = class _Story extends import_honeybee_schema17.IDdBaseModel {
|
|
3318
3321
|
constructor() {
|
|
3319
3322
|
super();
|
|
3320
3323
|
/** An array of dragonfly Room2D objects that together form an entire story of a building. */
|
|
@@ -3324,9 +3327,9 @@ var _Story = class _Story extends import_honeybee_schema16.IDdBaseModel {
|
|
|
3324
3327
|
/** type */
|
|
3325
3328
|
__publicField(this, "type", "Story");
|
|
3326
3329
|
/** A number for the distance from the floor plate of this story to the floor of the story above this one (if it exists). If Autocalculate, this value will be the maximum floor_to_ceiling_height of the input room_2ds. */
|
|
3327
|
-
__publicField(this, "floorToFloorHeight", new
|
|
3330
|
+
__publicField(this, "floorToFloorHeight", new import_honeybee_schema16.Autocalculate());
|
|
3328
3331
|
/** A number to indicate the height of the floor plane in the Z axis.If Autocalculate, this will be the minimum floor height of all the room_2ds, which is suitable for cases where there are no floor plenums. */
|
|
3329
|
-
__publicField(this, "floorHeight", new
|
|
3332
|
+
__publicField(this, "floorHeight", new import_honeybee_schema16.Autocalculate());
|
|
3330
3333
|
/** An integer that denotes the number of times that this Story is repeated over the height of the building. */
|
|
3331
3334
|
__publicField(this, "multiplier", 1);
|
|
3332
3335
|
/** An optional RoofSpecification object containing geometry for generating sloped roofs over the Story. The RoofSpecification will only affect the child Room2Ds that have a True is_top_exposed property and it will only be utilized in translation to Honeybee when the Story multiplier is 1. If None, all Room2D ceilings will be flat. */
|
|
@@ -3334,8 +3337,8 @@ var _Story = class _Story extends import_honeybee_schema16.IDdBaseModel {
|
|
|
3334
3337
|
/** Text to indicate the type of story. Stories that are plenums are translated to Honeybee with excluded floor areas. */
|
|
3335
3338
|
__publicField(this, "storyType", "Standard" /* Standard */);
|
|
3336
3339
|
this.type = "Story";
|
|
3337
|
-
this.floorToFloorHeight = new
|
|
3338
|
-
this.floorHeight = new
|
|
3340
|
+
this.floorToFloorHeight = new import_honeybee_schema16.Autocalculate();
|
|
3341
|
+
this.floorHeight = new import_honeybee_schema16.Autocalculate();
|
|
3339
3342
|
this.multiplier = 1;
|
|
3340
3343
|
this.storyType = "Standard" /* Standard */;
|
|
3341
3344
|
}
|
|
@@ -3346,8 +3349,8 @@ var _Story = class _Story extends import_honeybee_schema16.IDdBaseModel {
|
|
|
3346
3349
|
this.room2ds = obj.room2ds;
|
|
3347
3350
|
this.properties = obj.properties;
|
|
3348
3351
|
this.type = (_a = obj.type) != null ? _a : "Story";
|
|
3349
|
-
this.floorToFloorHeight = (_b = obj.floorToFloorHeight) != null ? _b : new
|
|
3350
|
-
this.floorHeight = (_c = obj.floorHeight) != null ? _c : new
|
|
3352
|
+
this.floorToFloorHeight = (_b = obj.floorToFloorHeight) != null ? _b : new import_honeybee_schema16.Autocalculate();
|
|
3353
|
+
this.floorHeight = (_c = obj.floorHeight) != null ? _c : new import_honeybee_schema16.Autocalculate();
|
|
3351
3354
|
this.multiplier = (_d = obj.multiplier) != null ? _d : 1;
|
|
3352
3355
|
this.roof = obj.roof;
|
|
3353
3356
|
this.storyType = (_e = obj.storyType) != null ? _e : "Standard" /* Standard */;
|
|
@@ -3375,8 +3378,8 @@ var _Story = class _Story extends import_honeybee_schema16.IDdBaseModel {
|
|
|
3375
3378
|
data["room_2ds"] = this.room2ds;
|
|
3376
3379
|
data["properties"] = this.properties;
|
|
3377
3380
|
data["type"] = (_a = this.type) != null ? _a : "Story";
|
|
3378
|
-
data["floor_to_floor_height"] = (_b = this.floorToFloorHeight) != null ? _b : new
|
|
3379
|
-
data["floor_height"] = (_c = this.floorHeight) != null ? _c : new
|
|
3381
|
+
data["floor_to_floor_height"] = (_b = this.floorToFloorHeight) != null ? _b : new import_honeybee_schema16.Autocalculate();
|
|
3382
|
+
data["floor_height"] = (_c = this.floorHeight) != null ? _c : new import_honeybee_schema16.Autocalculate();
|
|
3380
3383
|
data["multiplier"] = (_d = this.multiplier) != null ? _d : 1;
|
|
3381
3384
|
data["roof"] = this.roof;
|
|
3382
3385
|
data["story_type"] = (_e = this.storyType) != null ? _e : "Standard" /* Standard */;
|
|
@@ -3447,7 +3450,7 @@ __decorateClass([
|
|
|
3447
3450
|
var Story = _Story;
|
|
3448
3451
|
|
|
3449
3452
|
// src/models/Building.ts
|
|
3450
|
-
var _Building = class _Building extends
|
|
3453
|
+
var _Building = class _Building extends import_honeybee_schema18.IDdBaseModel {
|
|
3451
3454
|
constructor() {
|
|
3452
3455
|
super();
|
|
3453
3456
|
/** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
|
|
@@ -3535,8 +3538,8 @@ __decorateClass([
|
|
|
3535
3538
|
], _Building.prototype, "uniqueStories", 2);
|
|
3536
3539
|
__decorateClass([
|
|
3537
3540
|
(0, import_class_validator42.IsArray)(),
|
|
3538
|
-
(0, import_class_transformer37.Type)(() =>
|
|
3539
|
-
(0, import_class_validator42.IsInstance)(
|
|
3541
|
+
(0, import_class_transformer37.Type)(() => import_honeybee_schema19.Room),
|
|
3542
|
+
(0, import_class_validator42.IsInstance)(import_honeybee_schema19.Room, { each: true }),
|
|
3540
3543
|
(0, import_class_validator42.ValidateNested)({ each: true }),
|
|
3541
3544
|
(0, import_class_validator42.IsOptional)(),
|
|
3542
3545
|
(0, import_class_transformer37.Expose)({ name: "room_3ds" })
|
|
@@ -3784,10 +3787,10 @@ __decorateClass([
|
|
|
3784
3787
|
var ContextShadePropertiesAbridged = _ContextShadePropertiesAbridged;
|
|
3785
3788
|
|
|
3786
3789
|
// src/models/ContextShade.ts
|
|
3787
|
-
var import_honeybee_schema19 = require("honeybee-schema");
|
|
3788
3790
|
var import_honeybee_schema20 = require("honeybee-schema");
|
|
3789
3791
|
var import_honeybee_schema21 = require("honeybee-schema");
|
|
3790
|
-
var
|
|
3792
|
+
var import_honeybee_schema22 = require("honeybee-schema");
|
|
3793
|
+
var _ContextShade = class _ContextShade extends import_honeybee_schema21.IDdBaseModel {
|
|
3791
3794
|
constructor() {
|
|
3792
3795
|
super();
|
|
3793
3796
|
/** An array of planar Face3Ds and or Mesh3Ds that together represent the context shade. */
|
|
@@ -3853,8 +3856,8 @@ __decorateClass([
|
|
|
3853
3856
|
(0, import_class_validator46.IsDefined)(),
|
|
3854
3857
|
(0, import_class_transformer41.Expose)({ name: "geometry" }),
|
|
3855
3858
|
(0, import_class_transformer41.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
3856
|
-
if ((item == null ? void 0 : item.type) === "Face3D") return
|
|
3857
|
-
else if ((item == null ? void 0 : item.type) === "Mesh3D") return
|
|
3859
|
+
if ((item == null ? void 0 : item.type) === "Face3D") return import_honeybee_schema20.Face3D.fromJS(item);
|
|
3860
|
+
else if ((item == null ? void 0 : item.type) === "Mesh3D") return import_honeybee_schema22.Mesh3D.fromJS(item);
|
|
3858
3861
|
else return item;
|
|
3859
3862
|
}))
|
|
3860
3863
|
], _ContextShade.prototype, "geometry", 2);
|
|
@@ -3883,7 +3886,7 @@ var ContextShade = _ContextShade;
|
|
|
3883
3886
|
// src/models/Model.ts
|
|
3884
3887
|
var import_class_validator52 = require("class-validator");
|
|
3885
3888
|
var import_class_transformer47 = require("class-transformer");
|
|
3886
|
-
var
|
|
3889
|
+
var import_honeybee_schema84 = require("honeybee-schema");
|
|
3887
3890
|
|
|
3888
3891
|
// src/models/ModelProperties.ts
|
|
3889
3892
|
var import_class_validator51 = require("class-validator");
|
|
@@ -4006,7 +4009,6 @@ var ModelDoe2Properties = _ModelDoe2Properties;
|
|
|
4006
4009
|
// src/models/ModelEnergyProperties.ts
|
|
4007
4010
|
var import_class_validator49 = require("class-validator");
|
|
4008
4011
|
var import_class_transformer44 = require("class-transformer");
|
|
4009
|
-
var import_honeybee_schema22 = require("honeybee-schema");
|
|
4010
4012
|
var import_honeybee_schema23 = require("honeybee-schema");
|
|
4011
4013
|
var import_honeybee_schema24 = require("honeybee-schema");
|
|
4012
4014
|
var import_honeybee_schema25 = require("honeybee-schema");
|
|
@@ -4055,13 +4057,14 @@ var import_honeybee_schema67 = require("honeybee-schema");
|
|
|
4055
4057
|
var import_honeybee_schema68 = require("honeybee-schema");
|
|
4056
4058
|
var import_honeybee_schema69 = require("honeybee-schema");
|
|
4057
4059
|
var import_honeybee_schema70 = require("honeybee-schema");
|
|
4060
|
+
var import_honeybee_schema71 = require("honeybee-schema");
|
|
4058
4061
|
var _ModelEnergyProperties = class _ModelEnergyProperties extends _OpenAPIGenBaseModel {
|
|
4059
4062
|
constructor() {
|
|
4060
4063
|
super();
|
|
4061
4064
|
/** type */
|
|
4062
4065
|
__publicField(this, "type", "ModelEnergyProperties");
|
|
4063
4066
|
/** Global Energy construction set. */
|
|
4064
|
-
__publicField(this, "globalConstructionSet",
|
|
4067
|
+
__publicField(this, "globalConstructionSet", import_honeybee_schema45.GlobalConstructionSet.fromJS({
|
|
4065
4068
|
"type": "GlobalConstructionSet",
|
|
4066
4069
|
"materials": [
|
|
4067
4070
|
{
|
|
@@ -4508,7 +4511,7 @@ var _ModelEnergyProperties = class _ModelEnergyProperties extends _OpenAPIGenBas
|
|
|
4508
4511
|
/** A list of all unique ScheduleTypeLimits in the model. This all ScheduleTypeLimits needed to make the Model schedules. */
|
|
4509
4512
|
__publicField(this, "scheduleTypeLimits");
|
|
4510
4513
|
this.type = "ModelEnergyProperties";
|
|
4511
|
-
this.globalConstructionSet =
|
|
4514
|
+
this.globalConstructionSet = import_honeybee_schema45.GlobalConstructionSet.fromJS({
|
|
4512
4515
|
"type": "GlobalConstructionSet",
|
|
4513
4516
|
"materials": [
|
|
4514
4517
|
{
|
|
@@ -4944,7 +4947,7 @@ var _ModelEnergyProperties = class _ModelEnergyProperties extends _OpenAPIGenBas
|
|
|
4944
4947
|
if (_data) {
|
|
4945
4948
|
const obj = deepTransform(_ModelEnergyProperties, _data);
|
|
4946
4949
|
this.type = (_a = obj.type) != null ? _a : "ModelEnergyProperties";
|
|
4947
|
-
this.globalConstructionSet = (_b = obj.globalConstructionSet) != null ? _b :
|
|
4950
|
+
this.globalConstructionSet = (_b = obj.globalConstructionSet) != null ? _b : import_honeybee_schema45.GlobalConstructionSet.fromJS({
|
|
4948
4951
|
"type": "GlobalConstructionSet",
|
|
4949
4952
|
"materials": [
|
|
4950
4953
|
{
|
|
@@ -5401,7 +5404,7 @@ var _ModelEnergyProperties = class _ModelEnergyProperties extends _OpenAPIGenBas
|
|
|
5401
5404
|
var _a, _b;
|
|
5402
5405
|
data = typeof data === "object" ? data : {};
|
|
5403
5406
|
data["type"] = (_a = this.type) != null ? _a : "ModelEnergyProperties";
|
|
5404
|
-
data["global_construction_set"] = (_b = this.globalConstructionSet) != null ? _b :
|
|
5407
|
+
data["global_construction_set"] = (_b = this.globalConstructionSet) != null ? _b : import_honeybee_schema45.GlobalConstructionSet.fromJS({
|
|
5405
5408
|
"type": "GlobalConstructionSet",
|
|
5406
5409
|
"materials": [
|
|
5407
5410
|
{
|
|
@@ -5861,8 +5864,8 @@ __decorateClass([
|
|
|
5861
5864
|
(0, import_class_transformer44.Expose)({ name: "type" })
|
|
5862
5865
|
], _ModelEnergyProperties.prototype, "type", 2);
|
|
5863
5866
|
__decorateClass([
|
|
5864
|
-
(0, import_class_transformer44.Type)(() =>
|
|
5865
|
-
(0, import_class_validator49.IsInstance)(
|
|
5867
|
+
(0, import_class_transformer44.Type)(() => import_honeybee_schema45.GlobalConstructionSet),
|
|
5868
|
+
(0, import_class_validator49.IsInstance)(import_honeybee_schema45.GlobalConstructionSet),
|
|
5866
5869
|
(0, import_class_validator49.ValidateNested)(),
|
|
5867
5870
|
(0, import_class_validator49.IsOptional)(),
|
|
5868
5871
|
(0, import_class_transformer44.Expose)({ name: "global_construction_set" })
|
|
@@ -5872,8 +5875,8 @@ __decorateClass([
|
|
|
5872
5875
|
(0, import_class_validator49.IsOptional)(),
|
|
5873
5876
|
(0, import_class_transformer44.Expose)({ name: "construction_sets" }),
|
|
5874
5877
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5875
|
-
if ((item == null ? void 0 : item.type) === "ConstructionSetAbridged") return
|
|
5876
|
-
else if ((item == null ? void 0 : item.type) === "ConstructionSet") return
|
|
5878
|
+
if ((item == null ? void 0 : item.type) === "ConstructionSetAbridged") return import_honeybee_schema27.ConstructionSetAbridged.fromJS(item);
|
|
5879
|
+
else if ((item == null ? void 0 : item.type) === "ConstructionSet") return import_honeybee_schema26.ConstructionSet.fromJS(item);
|
|
5877
5880
|
else return item;
|
|
5878
5881
|
}))
|
|
5879
5882
|
], _ModelEnergyProperties.prototype, "constructionSets", 2);
|
|
@@ -5882,13 +5885,13 @@ __decorateClass([
|
|
|
5882
5885
|
(0, import_class_validator49.IsOptional)(),
|
|
5883
5886
|
(0, import_class_transformer44.Expose)({ name: "constructions" }),
|
|
5884
5887
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5885
|
-
if ((item == null ? void 0 : item.type) === "OpaqueConstructionAbridged") return
|
|
5886
|
-
else if ((item == null ? void 0 : item.type) === "WindowConstructionAbridged") return
|
|
5887
|
-
else if ((item == null ? void 0 : item.type) === "ShadeConstruction") return
|
|
5888
|
-
else if ((item == null ? void 0 : item.type) === "AirBoundaryConstructionAbridged") return
|
|
5889
|
-
else if ((item == null ? void 0 : item.type) === "OpaqueConstruction") return
|
|
5890
|
-
else if ((item == null ? void 0 : item.type) === "WindowConstruction") return
|
|
5891
|
-
else if ((item == null ? void 0 : item.type) === "AirBoundaryConstruction") return
|
|
5888
|
+
if ((item == null ? void 0 : item.type) === "OpaqueConstructionAbridged") return import_honeybee_schema48.OpaqueConstructionAbridged.fromJS(item);
|
|
5889
|
+
else if ((item == null ? void 0 : item.type) === "WindowConstructionAbridged") return import_honeybee_schema69.WindowConstructionAbridged.fromJS(item);
|
|
5890
|
+
else if ((item == null ? void 0 : item.type) === "ShadeConstruction") return import_honeybee_schema62.ShadeConstruction.fromJS(item);
|
|
5891
|
+
else if ((item == null ? void 0 : item.type) === "AirBoundaryConstructionAbridged") return import_honeybee_schema24.AirBoundaryConstructionAbridged.fromJS(item);
|
|
5892
|
+
else if ((item == null ? void 0 : item.type) === "OpaqueConstruction") return import_honeybee_schema47.OpaqueConstruction.fromJS(item);
|
|
5893
|
+
else if ((item == null ? void 0 : item.type) === "WindowConstruction") return import_honeybee_schema68.WindowConstruction.fromJS(item);
|
|
5894
|
+
else if ((item == null ? void 0 : item.type) === "AirBoundaryConstruction") return import_honeybee_schema23.AirBoundaryConstruction.fromJS(item);
|
|
5892
5895
|
else return item;
|
|
5893
5896
|
}))
|
|
5894
5897
|
], _ModelEnergyProperties.prototype, "constructions", 2);
|
|
@@ -5897,17 +5900,17 @@ __decorateClass([
|
|
|
5897
5900
|
(0, import_class_validator49.IsOptional)(),
|
|
5898
5901
|
(0, import_class_transformer44.Expose)({ name: "materials" }),
|
|
5899
5902
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5900
|
-
if ((item == null ? void 0 : item.type) === "EnergyMaterial") return
|
|
5901
|
-
else if ((item == null ? void 0 : item.type) === "EnergyMaterialNoMass") return
|
|
5902
|
-
else if ((item == null ? void 0 : item.type) === "EnergyMaterialVegetation") return
|
|
5903
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGlazing") return
|
|
5904
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialSimpleGlazSys") return
|
|
5905
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGas") return
|
|
5906
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGasMixture") return
|
|
5907
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGasCustom") return
|
|
5908
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowFrame") return
|
|
5909
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialBlind") return
|
|
5910
|
-
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialShade") return
|
|
5903
|
+
if ((item == null ? void 0 : item.type) === "EnergyMaterial") return import_honeybee_schema29.EnergyMaterial.fromJS(item);
|
|
5904
|
+
else if ((item == null ? void 0 : item.type) === "EnergyMaterialNoMass") return import_honeybee_schema30.EnergyMaterialNoMass.fromJS(item);
|
|
5905
|
+
else if ((item == null ? void 0 : item.type) === "EnergyMaterialVegetation") return import_honeybee_schema31.EnergyMaterialVegetation.fromJS(item);
|
|
5906
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGlazing") return import_honeybee_schema37.EnergyWindowMaterialGlazing.fromJS(item);
|
|
5907
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialSimpleGlazSys") return import_honeybee_schema39.EnergyWindowMaterialSimpleGlazSys.fromJS(item);
|
|
5908
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGas") return import_honeybee_schema34.EnergyWindowMaterialGas.fromJS(item);
|
|
5909
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGasMixture") return import_honeybee_schema36.EnergyWindowMaterialGasMixture.fromJS(item);
|
|
5910
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialGasCustom") return import_honeybee_schema35.EnergyWindowMaterialGasCustom.fromJS(item);
|
|
5911
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowFrame") return import_honeybee_schema32.EnergyWindowFrame.fromJS(item);
|
|
5912
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialBlind") return import_honeybee_schema33.EnergyWindowMaterialBlind.fromJS(item);
|
|
5913
|
+
else if ((item == null ? void 0 : item.type) === "EnergyWindowMaterialShade") return import_honeybee_schema38.EnergyWindowMaterialShade.fromJS(item);
|
|
5911
5914
|
else return item;
|
|
5912
5915
|
}))
|
|
5913
5916
|
], _ModelEnergyProperties.prototype, "materials", 2);
|
|
@@ -5916,33 +5919,33 @@ __decorateClass([
|
|
|
5916
5919
|
(0, import_class_validator49.IsOptional)(),
|
|
5917
5920
|
(0, import_class_transformer44.Expose)({ name: "hvacs" }),
|
|
5918
5921
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5919
|
-
if ((item == null ? void 0 : item.type) === "IdealAirSystemAbridged") return
|
|
5920
|
-
else if ((item == null ? void 0 : item.type) === "VAV") return
|
|
5921
|
-
else if ((item == null ? void 0 : item.type) === "PVAV") return
|
|
5922
|
-
else if ((item == null ? void 0 : item.type) === "PSZ") return
|
|
5923
|
-
else if ((item == null ? void 0 : item.type) === "PTAC") return
|
|
5924
|
-
else if ((item == null ? void 0 : item.type) === "ForcedAirFurnace") return
|
|
5925
|
-
else if ((item == null ? void 0 : item.type) === "FCUwithDOASAbridged") return
|
|
5926
|
-
else if ((item == null ? void 0 : item.type) === "WSHPwithDOASAbridged") return
|
|
5927
|
-
else if ((item == null ? void 0 : item.type) === "VRFwithDOASAbridged") return
|
|
5928
|
-
else if ((item == null ? void 0 : item.type) === "RadiantwithDOASAbridged") return
|
|
5929
|
-
else if ((item == null ? void 0 : item.type) === "FCU") return
|
|
5930
|
-
else if ((item == null ? void 0 : item.type) === "WSHP") return
|
|
5931
|
-
else if ((item == null ? void 0 : item.type) === "VRF") return
|
|
5932
|
-
else if ((item == null ? void 0 : item.type) === "Baseboard") return
|
|
5933
|
-
else if ((item == null ? void 0 : item.type) === "EvaporativeCooler") return
|
|
5934
|
-
else if ((item == null ? void 0 : item.type) === "Residential") return
|
|
5935
|
-
else if ((item == null ? void 0 : item.type) === "WindowAC") return
|
|
5936
|
-
else if ((item == null ? void 0 : item.type) === "GasUnitHeater") return
|
|
5937
|
-
else if ((item == null ? void 0 : item.type) === "Radiant") return
|
|
5938
|
-
else if ((item == null ? void 0 : item.type) === "DetailedHVAC") return
|
|
5922
|
+
if ((item == null ? void 0 : item.type) === "IdealAirSystemAbridged") return import_honeybee_schema46.IdealAirSystemAbridged.fromJS(item);
|
|
5923
|
+
else if ((item == null ? void 0 : item.type) === "VAV") return import_honeybee_schema64.VAV.fromJS(item);
|
|
5924
|
+
else if ((item == null ? void 0 : item.type) === "PVAV") return import_honeybee_schema53.PVAV.fromJS(item);
|
|
5925
|
+
else if ((item == null ? void 0 : item.type) === "PSZ") return import_honeybee_schema51.PSZ.fromJS(item);
|
|
5926
|
+
else if ((item == null ? void 0 : item.type) === "PTAC") return import_honeybee_schema52.PTAC.fromJS(item);
|
|
5927
|
+
else if ((item == null ? void 0 : item.type) === "ForcedAirFurnace") return import_honeybee_schema43.ForcedAirFurnace.fromJS(item);
|
|
5928
|
+
else if ((item == null ? void 0 : item.type) === "FCUwithDOASAbridged") return import_honeybee_schema42.FCUwithDOASAbridged.fromJS(item);
|
|
5929
|
+
else if ((item == null ? void 0 : item.type) === "WSHPwithDOASAbridged") return import_honeybee_schema71.WSHPwithDOASAbridged.fromJS(item);
|
|
5930
|
+
else if ((item == null ? void 0 : item.type) === "VRFwithDOASAbridged") return import_honeybee_schema66.VRFwithDOASAbridged.fromJS(item);
|
|
5931
|
+
else if ((item == null ? void 0 : item.type) === "RadiantwithDOASAbridged") return import_honeybee_schema55.RadiantwithDOASAbridged.fromJS(item);
|
|
5932
|
+
else if ((item == null ? void 0 : item.type) === "FCU") return import_honeybee_schema41.FCU.fromJS(item);
|
|
5933
|
+
else if ((item == null ? void 0 : item.type) === "WSHP") return import_honeybee_schema70.WSHP.fromJS(item);
|
|
5934
|
+
else if ((item == null ? void 0 : item.type) === "VRF") return import_honeybee_schema65.VRF.fromJS(item);
|
|
5935
|
+
else if ((item == null ? void 0 : item.type) === "Baseboard") return import_honeybee_schema25.Baseboard.fromJS(item);
|
|
5936
|
+
else if ((item == null ? void 0 : item.type) === "EvaporativeCooler") return import_honeybee_schema40.EvaporativeCooler.fromJS(item);
|
|
5937
|
+
else if ((item == null ? void 0 : item.type) === "Residential") return import_honeybee_schema56.Residential.fromJS(item);
|
|
5938
|
+
else if ((item == null ? void 0 : item.type) === "WindowAC") return import_honeybee_schema67.WindowAC.fromJS(item);
|
|
5939
|
+
else if ((item == null ? void 0 : item.type) === "GasUnitHeater") return import_honeybee_schema44.GasUnitHeater.fromJS(item);
|
|
5940
|
+
else if ((item == null ? void 0 : item.type) === "Radiant") return import_honeybee_schema54.Radiant.fromJS(item);
|
|
5941
|
+
else if ((item == null ? void 0 : item.type) === "DetailedHVAC") return import_honeybee_schema28.DetailedHVAC.fromJS(item);
|
|
5939
5942
|
else return item;
|
|
5940
5943
|
}))
|
|
5941
5944
|
], _ModelEnergyProperties.prototype, "hvacs", 2);
|
|
5942
5945
|
__decorateClass([
|
|
5943
5946
|
(0, import_class_validator49.IsArray)(),
|
|
5944
|
-
(0, import_class_transformer44.Type)(() =>
|
|
5945
|
-
(0, import_class_validator49.IsInstance)(
|
|
5947
|
+
(0, import_class_transformer44.Type)(() => import_honeybee_schema63.SHWSystem),
|
|
5948
|
+
(0, import_class_validator49.IsInstance)(import_honeybee_schema63.SHWSystem, { each: true }),
|
|
5946
5949
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
5947
5950
|
(0, import_class_validator49.IsOptional)(),
|
|
5948
5951
|
(0, import_class_transformer44.Expose)({ name: "shws" })
|
|
@@ -5952,8 +5955,8 @@ __decorateClass([
|
|
|
5952
5955
|
(0, import_class_validator49.IsOptional)(),
|
|
5953
5956
|
(0, import_class_transformer44.Expose)({ name: "program_types" }),
|
|
5954
5957
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5955
|
-
if ((item == null ? void 0 : item.type) === "ProgramTypeAbridged") return
|
|
5956
|
-
else if ((item == null ? void 0 : item.type) === "ProgramType") return
|
|
5958
|
+
if ((item == null ? void 0 : item.type) === "ProgramTypeAbridged") return import_honeybee_schema50.ProgramTypeAbridged.fromJS(item);
|
|
5959
|
+
else if ((item == null ? void 0 : item.type) === "ProgramType") return import_honeybee_schema49.ProgramType.fromJS(item);
|
|
5957
5960
|
else return item;
|
|
5958
5961
|
}))
|
|
5959
5962
|
], _ModelEnergyProperties.prototype, "programTypes", 2);
|
|
@@ -5962,17 +5965,17 @@ __decorateClass([
|
|
|
5962
5965
|
(0, import_class_validator49.IsOptional)(),
|
|
5963
5966
|
(0, import_class_transformer44.Expose)({ name: "schedules" }),
|
|
5964
5967
|
(0, import_class_transformer44.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
5965
|
-
if ((item == null ? void 0 : item.type) === "ScheduleRulesetAbridged") return
|
|
5966
|
-
else if ((item == null ? void 0 : item.type) === "ScheduleFixedIntervalAbridged") return
|
|
5967
|
-
else if ((item == null ? void 0 : item.type) === "ScheduleRuleset") return
|
|
5968
|
-
else if ((item == null ? void 0 : item.type) === "ScheduleFixedInterval") return
|
|
5968
|
+
if ((item == null ? void 0 : item.type) === "ScheduleRulesetAbridged") return import_honeybee_schema60.ScheduleRulesetAbridged.fromJS(item);
|
|
5969
|
+
else if ((item == null ? void 0 : item.type) === "ScheduleFixedIntervalAbridged") return import_honeybee_schema58.ScheduleFixedIntervalAbridged.fromJS(item);
|
|
5970
|
+
else if ((item == null ? void 0 : item.type) === "ScheduleRuleset") return import_honeybee_schema59.ScheduleRuleset.fromJS(item);
|
|
5971
|
+
else if ((item == null ? void 0 : item.type) === "ScheduleFixedInterval") return import_honeybee_schema57.ScheduleFixedInterval.fromJS(item);
|
|
5969
5972
|
else return item;
|
|
5970
5973
|
}))
|
|
5971
5974
|
], _ModelEnergyProperties.prototype, "schedules", 2);
|
|
5972
5975
|
__decorateClass([
|
|
5973
5976
|
(0, import_class_validator49.IsArray)(),
|
|
5974
|
-
(0, import_class_transformer44.Type)(() =>
|
|
5975
|
-
(0, import_class_validator49.IsInstance)(
|
|
5977
|
+
(0, import_class_transformer44.Type)(() => import_honeybee_schema61.ScheduleTypeLimit),
|
|
5978
|
+
(0, import_class_validator49.IsInstance)(import_honeybee_schema61.ScheduleTypeLimit, { each: true }),
|
|
5976
5979
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
5977
5980
|
(0, import_class_validator49.IsOptional)(),
|
|
5978
5981
|
(0, import_class_transformer44.Expose)({ name: "schedule_type_limits" })
|
|
@@ -5982,7 +5985,6 @@ var ModelEnergyProperties = _ModelEnergyProperties;
|
|
|
5982
5985
|
// src/models/ModelRadianceProperties.ts
|
|
5983
5986
|
var import_class_validator50 = require("class-validator");
|
|
5984
5987
|
var import_class_transformer45 = require("class-transformer");
|
|
5985
|
-
var import_honeybee_schema71 = require("honeybee-schema");
|
|
5986
5988
|
var import_honeybee_schema72 = require("honeybee-schema");
|
|
5987
5989
|
var import_honeybee_schema73 = require("honeybee-schema");
|
|
5988
5990
|
var import_honeybee_schema74 = require("honeybee-schema");
|
|
@@ -5994,13 +5996,14 @@ var import_honeybee_schema79 = require("honeybee-schema");
|
|
|
5994
5996
|
var import_honeybee_schema80 = require("honeybee-schema");
|
|
5995
5997
|
var import_honeybee_schema81 = require("honeybee-schema");
|
|
5996
5998
|
var import_honeybee_schema82 = require("honeybee-schema");
|
|
5999
|
+
var import_honeybee_schema83 = require("honeybee-schema");
|
|
5997
6000
|
var _ModelRadianceProperties = class _ModelRadianceProperties extends _OpenAPIGenBaseModel {
|
|
5998
6001
|
constructor() {
|
|
5999
6002
|
super();
|
|
6000
6003
|
/** type */
|
|
6001
6004
|
__publicField(this, "type", "ModelRadianceProperties");
|
|
6002
6005
|
/** Global Radiance modifier set. */
|
|
6003
|
-
__publicField(this, "globalModifierSet",
|
|
6006
|
+
__publicField(this, "globalModifierSet", import_honeybee_schema74.GlobalModifierSet.fromJS({
|
|
6004
6007
|
"type": "GlobalModifierSet",
|
|
6005
6008
|
"modifiers": [
|
|
6006
6009
|
{
|
|
@@ -6167,7 +6170,7 @@ var _ModelRadianceProperties = class _ModelRadianceProperties extends _OpenAPIGe
|
|
|
6167
6170
|
/** A list of all unique modifiers in the model. This includes modifiers across all the Model modifier_sets. */
|
|
6168
6171
|
__publicField(this, "modifiers");
|
|
6169
6172
|
this.type = "ModelRadianceProperties";
|
|
6170
|
-
this.globalModifierSet =
|
|
6173
|
+
this.globalModifierSet = import_honeybee_schema74.GlobalModifierSet.fromJS({
|
|
6171
6174
|
"type": "GlobalModifierSet",
|
|
6172
6175
|
"modifiers": [
|
|
6173
6176
|
{
|
|
@@ -6335,7 +6338,7 @@ var _ModelRadianceProperties = class _ModelRadianceProperties extends _OpenAPIGe
|
|
|
6335
6338
|
if (_data) {
|
|
6336
6339
|
const obj = deepTransform(_ModelRadianceProperties, _data);
|
|
6337
6340
|
this.type = (_a = obj.type) != null ? _a : "ModelRadianceProperties";
|
|
6338
|
-
this.globalModifierSet = (_b = obj.globalModifierSet) != null ? _b :
|
|
6341
|
+
this.globalModifierSet = (_b = obj.globalModifierSet) != null ? _b : import_honeybee_schema74.GlobalModifierSet.fromJS({
|
|
6339
6342
|
"type": "GlobalModifierSet",
|
|
6340
6343
|
"modifiers": [
|
|
6341
6344
|
{
|
|
@@ -6518,7 +6521,7 @@ var _ModelRadianceProperties = class _ModelRadianceProperties extends _OpenAPIGe
|
|
|
6518
6521
|
var _a, _b;
|
|
6519
6522
|
data = typeof data === "object" ? data : {};
|
|
6520
6523
|
data["type"] = (_a = this.type) != null ? _a : "ModelRadianceProperties";
|
|
6521
|
-
data["global_modifier_set"] = (_b = this.globalModifierSet) != null ? _b :
|
|
6524
|
+
data["global_modifier_set"] = (_b = this.globalModifierSet) != null ? _b : import_honeybee_schema74.GlobalModifierSet.fromJS({
|
|
6522
6525
|
"type": "GlobalModifierSet",
|
|
6523
6526
|
"modifiers": [
|
|
6524
6527
|
{
|
|
@@ -6704,8 +6707,8 @@ __decorateClass([
|
|
|
6704
6707
|
(0, import_class_transformer45.Expose)({ name: "type" })
|
|
6705
6708
|
], _ModelRadianceProperties.prototype, "type", 2);
|
|
6706
6709
|
__decorateClass([
|
|
6707
|
-
(0, import_class_transformer45.Type)(() =>
|
|
6708
|
-
(0, import_class_validator50.IsInstance)(
|
|
6710
|
+
(0, import_class_transformer45.Type)(() => import_honeybee_schema74.GlobalModifierSet),
|
|
6711
|
+
(0, import_class_validator50.IsInstance)(import_honeybee_schema74.GlobalModifierSet),
|
|
6709
6712
|
(0, import_class_validator50.ValidateNested)(),
|
|
6710
6713
|
(0, import_class_validator50.IsOptional)(),
|
|
6711
6714
|
(0, import_class_transformer45.Expose)({ name: "global_modifier_set" })
|
|
@@ -6715,8 +6718,8 @@ __decorateClass([
|
|
|
6715
6718
|
(0, import_class_validator50.IsOptional)(),
|
|
6716
6719
|
(0, import_class_transformer45.Expose)({ name: "modifier_sets" }),
|
|
6717
6720
|
(0, import_class_transformer45.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
6718
|
-
if ((item == null ? void 0 : item.type) === "ModifierSet") return
|
|
6719
|
-
else if ((item == null ? void 0 : item.type) === "ModifierSetAbridged") return
|
|
6721
|
+
if ((item == null ? void 0 : item.type) === "ModifierSet") return import_honeybee_schema79.ModifierSet.fromJS(item);
|
|
6722
|
+
else if ((item == null ? void 0 : item.type) === "ModifierSetAbridged") return import_honeybee_schema80.ModifierSetAbridged.fromJS(item);
|
|
6720
6723
|
else return item;
|
|
6721
6724
|
}))
|
|
6722
6725
|
], _ModelRadianceProperties.prototype, "modifierSets", 2);
|
|
@@ -6725,15 +6728,15 @@ __decorateClass([
|
|
|
6725
6728
|
(0, import_class_validator50.IsOptional)(),
|
|
6726
6729
|
(0, import_class_transformer45.Expose)({ name: "modifiers" }),
|
|
6727
6730
|
(0, import_class_transformer45.Transform)(({ value }) => value == null ? void 0 : value.map((item) => {
|
|
6728
|
-
if ((item == null ? void 0 : item.type) === "Plastic") return
|
|
6729
|
-
else if ((item == null ? void 0 : item.type) === "Glass") return
|
|
6730
|
-
else if ((item == null ? void 0 : item.type) === "BSDF") return
|
|
6731
|
-
else if ((item == null ? void 0 : item.type) === "Glow") return
|
|
6732
|
-
else if ((item == null ? void 0 : item.type) === "Light") return
|
|
6733
|
-
else if ((item == null ? void 0 : item.type) === "Trans") return
|
|
6734
|
-
else if ((item == null ? void 0 : item.type) === "Metal") return
|
|
6735
|
-
else if ((item == null ? void 0 : item.type) === "Void") return
|
|
6736
|
-
else if ((item == null ? void 0 : item.type) === "Mirror") return
|
|
6731
|
+
if ((item == null ? void 0 : item.type) === "Plastic") return import_honeybee_schema81.Plastic.fromJS(item);
|
|
6732
|
+
else if ((item == null ? void 0 : item.type) === "Glass") return import_honeybee_schema73.Glass.fromJS(item);
|
|
6733
|
+
else if ((item == null ? void 0 : item.type) === "BSDF") return import_honeybee_schema72.BSDF.fromJS(item);
|
|
6734
|
+
else if ((item == null ? void 0 : item.type) === "Glow") return import_honeybee_schema75.Glow.fromJS(item);
|
|
6735
|
+
else if ((item == null ? void 0 : item.type) === "Light") return import_honeybee_schema76.Light.fromJS(item);
|
|
6736
|
+
else if ((item == null ? void 0 : item.type) === "Trans") return import_honeybee_schema82.Trans.fromJS(item);
|
|
6737
|
+
else if ((item == null ? void 0 : item.type) === "Metal") return import_honeybee_schema77.Metal.fromJS(item);
|
|
6738
|
+
else if ((item == null ? void 0 : item.type) === "Void") return import_honeybee_schema83.Void.fromJS(item);
|
|
6739
|
+
else if ((item == null ? void 0 : item.type) === "Mirror") return import_honeybee_schema78.Mirror.fromJS(item);
|
|
6737
6740
|
else return item;
|
|
6738
6741
|
}))
|
|
6739
6742
|
], _ModelRadianceProperties.prototype, "modifiers", 2);
|
|
@@ -6839,8 +6842,8 @@ __decorateClass([
|
|
|
6839
6842
|
var ModelProperties = _ModelProperties;
|
|
6840
6843
|
|
|
6841
6844
|
// src/models/Model.ts
|
|
6842
|
-
var
|
|
6843
|
-
var _Model = class _Model extends
|
|
6845
|
+
var import_honeybee_schema85 = require("honeybee-schema");
|
|
6846
|
+
var _Model = class _Model extends import_honeybee_schema84.IDdBaseModel {
|
|
6844
6847
|
constructor() {
|
|
6845
6848
|
super();
|
|
6846
6849
|
/** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
|
|
@@ -6854,7 +6857,7 @@ var _Model = class _Model extends import_honeybee_schema83.IDdBaseModel {
|
|
|
6854
6857
|
/** A list of ContextShades in the model. */
|
|
6855
6858
|
__publicField(this, "contextShades");
|
|
6856
6859
|
/** Text indicating the units in which the model geometry exists. This is used to scale the geometry to the correct units for simulation engines like EnergyPlus, which requires all geometry be in meters. */
|
|
6857
|
-
__publicField(this, "units",
|
|
6860
|
+
__publicField(this, "units", import_honeybee_schema85.Units.Meters);
|
|
6858
6861
|
/** The maximum difference between x, y, and z values at which vertices are considered equivalent. This value should be in the Model units and is used in a variety of checks and operations. A value of 0 will result in bypassing all checks so it is recommended that this always be a positive number when checks have not already been performed on a Model. The default of 0.01 is suitable for models in meters. */
|
|
6859
6862
|
__publicField(this, "tolerance", 0.01);
|
|
6860
6863
|
/** The max angle difference in degrees that vertices are allowed to differ from one another in order to consider them colinear. This value is used in a variety of checks and operations that can be performed on geometry. A value of 0 will result in no checks and an inability to perform certain operations so it is recommended that this always be a positive number when checks have not already been performed on a given Model. */
|
|
@@ -6863,7 +6866,7 @@ var _Model = class _Model extends import_honeybee_schema83.IDdBaseModel {
|
|
|
6863
6866
|
__publicField(this, "referenceVector");
|
|
6864
6867
|
this.type = "Model";
|
|
6865
6868
|
this.version = "0.0.0";
|
|
6866
|
-
this.units =
|
|
6869
|
+
this.units = import_honeybee_schema85.Units.Meters;
|
|
6867
6870
|
this.tolerance = 0.01;
|
|
6868
6871
|
this.angleTolerance = 1;
|
|
6869
6872
|
}
|
|
@@ -6876,7 +6879,7 @@ var _Model = class _Model extends import_honeybee_schema83.IDdBaseModel {
|
|
|
6876
6879
|
this.version = (_b = obj.version) != null ? _b : "0.0.0";
|
|
6877
6880
|
this.buildings = obj.buildings;
|
|
6878
6881
|
this.contextShades = obj.contextShades;
|
|
6879
|
-
this.units = (_c = obj.units) != null ? _c :
|
|
6882
|
+
this.units = (_c = obj.units) != null ? _c : import_honeybee_schema85.Units.Meters;
|
|
6880
6883
|
this.tolerance = (_d = obj.tolerance) != null ? _d : 0.01;
|
|
6881
6884
|
this.angleTolerance = (_e = obj.angleTolerance) != null ? _e : 1;
|
|
6882
6885
|
this.referenceVector = obj.referenceVector;
|
|
@@ -6906,7 +6909,7 @@ var _Model = class _Model extends import_honeybee_schema83.IDdBaseModel {
|
|
|
6906
6909
|
data["version"] = (_b = this.version) != null ? _b : "0.0.0";
|
|
6907
6910
|
data["buildings"] = this.buildings;
|
|
6908
6911
|
data["context_shades"] = this.contextShades;
|
|
6909
|
-
data["units"] = (_c = this.units) != null ? _c :
|
|
6912
|
+
data["units"] = (_c = this.units) != null ? _c : import_honeybee_schema85.Units.Meters;
|
|
6910
6913
|
data["tolerance"] = (_d = this.tolerance) != null ? _d : 0.01;
|
|
6911
6914
|
data["angle_tolerance"] = (_e = this.angleTolerance) != null ? _e : 1;
|
|
6912
6915
|
data["reference_vector"] = this.referenceVector;
|
|
@@ -6963,7 +6966,7 @@ __decorateClass([
|
|
|
6963
6966
|
], _Model.prototype, "contextShades", 2);
|
|
6964
6967
|
__decorateClass([
|
|
6965
6968
|
(0, import_class_transformer47.Type)(() => String),
|
|
6966
|
-
(0, import_class_validator52.IsEnum)(
|
|
6969
|
+
(0, import_class_validator52.IsEnum)(import_honeybee_schema85.Units),
|
|
6967
6970
|
(0, import_class_validator52.IsOptional)(),
|
|
6968
6971
|
(0, import_class_transformer47.Expose)({ name: "units" })
|
|
6969
6972
|
], _Model.prototype, "units", 2);
|