dragonfly-schema 2.201.1 → 2.203.1
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 +29 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
ContextShadePropertiesAbridged: () => ContextShadePropertiesAbridged,
|
|
40
40
|
ContextShadeRadiancePropertiesAbridged: () => ContextShadeRadiancePropertiesAbridged,
|
|
41
41
|
ControlType: () => ControlType,
|
|
42
|
-
|
|
42
|
+
DetailedClerestory: () => DetailedClerestory,
|
|
43
43
|
DetailedSkylights: () => DetailedSkylights,
|
|
44
44
|
DetailedWindows: () => DetailedWindows,
|
|
45
45
|
EconomizerType: () => EconomizerType,
|
|
@@ -680,7 +680,7 @@ var import_honeybee_schema20 = require("honeybee-schema");
|
|
|
680
680
|
var import_class_validator11 = require("class-validator");
|
|
681
681
|
var import_class_transformer10 = require("class-transformer");
|
|
682
682
|
|
|
683
|
-
// src/models/
|
|
683
|
+
// src/models/DetailedClerestory.ts
|
|
684
684
|
var import_class_validator9 = require("class-validator");
|
|
685
685
|
var import_class_transformer9 = require("class-transformer");
|
|
686
686
|
|
|
@@ -765,21 +765,21 @@ function IsNestedStringArray(validationOptions) {
|
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
// src/models/
|
|
769
|
-
var
|
|
768
|
+
// src/models/DetailedClerestory.ts
|
|
769
|
+
var _DetailedClerestory = class _DetailedClerestory extends _OpenAPIGenBaseModel {
|
|
770
770
|
constructor() {
|
|
771
771
|
super();
|
|
772
772
|
/** type */
|
|
773
|
-
this.type = "
|
|
774
|
-
this.type = "
|
|
773
|
+
this.type = "DetailedClerestory";
|
|
774
|
+
this.type = "DetailedClerestory";
|
|
775
775
|
}
|
|
776
776
|
init(_data) {
|
|
777
777
|
if (_data) {
|
|
778
|
-
const obj = deepTransform(
|
|
778
|
+
const obj = deepTransform(_DetailedClerestory, _data);
|
|
779
779
|
this.baseLine = obj.baseLine;
|
|
780
780
|
this.elevation = obj.elevation;
|
|
781
781
|
this.polygons = obj.polygons;
|
|
782
|
-
this.type = obj.type ?? "
|
|
782
|
+
this.type = obj.type ?? "DetailedClerestory";
|
|
783
783
|
this.areDoors = obj.areDoors;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
@@ -792,7 +792,7 @@ var _DetailedClearstory = class _DetailedClearstory extends _OpenAPIGenBaseModel
|
|
|
792
792
|
}
|
|
793
793
|
data = obj;
|
|
794
794
|
}
|
|
795
|
-
let result = new
|
|
795
|
+
let result = new _DetailedClerestory();
|
|
796
796
|
result.init(data);
|
|
797
797
|
return result;
|
|
798
798
|
}
|
|
@@ -801,7 +801,7 @@ var _DetailedClearstory = class _DetailedClearstory extends _OpenAPIGenBaseModel
|
|
|
801
801
|
data["base_line"] = this.baseLine;
|
|
802
802
|
data["elevation"] = this.elevation;
|
|
803
803
|
data["polygons"] = this.polygons;
|
|
804
|
-
data["type"] = this.type ?? "
|
|
804
|
+
data["type"] = this.type ?? "DetailedClerestory";
|
|
805
805
|
data["are_doors"] = this.areDoors;
|
|
806
806
|
data = super.toJSON(data);
|
|
807
807
|
return (0, import_class_transformer9.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
@@ -815,43 +815,43 @@ var _DetailedClearstory = class _DetailedClearstory extends _OpenAPIGenBaseModel
|
|
|
815
815
|
return true;
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
|
-
/** An array of two sub-arrays with each sub-array representing the start and end point of a 2D line segment in the world XY system. This establishes the plane and domain in which the
|
|
818
|
+
/** An array of two sub-arrays with each sub-array representing the start and end point of a 2D line segment in the world XY system. This establishes the plane and domain in which the clerestory geometries exist. */
|
|
819
819
|
__decorateClass([
|
|
820
820
|
(0, import_class_validator9.IsArray)(),
|
|
821
821
|
IsNestedNumberArray(),
|
|
822
822
|
(0, import_class_validator9.IsDefined)(),
|
|
823
823
|
(0, import_class_transformer9.Expose)({ name: "base_line" })
|
|
824
|
-
],
|
|
825
|
-
/** A number for the Z-coordinate that places the base_line and the corresponding
|
|
824
|
+
], _DetailedClerestory.prototype, "baseLine", 2);
|
|
825
|
+
/** A number for the Z-coordinate that places the base_line and the corresponding clerestory window polygons in 3D space. This elevation value should be below all of the 3D clerestory window geometries and helps set the origin of the plane in which the clerestory geometry exists. */
|
|
826
826
|
__decorateClass([
|
|
827
827
|
(0, import_class_transformer9.Type)(() => Number),
|
|
828
828
|
(0, import_class_validator9.IsNumber)(),
|
|
829
829
|
(0, import_class_validator9.IsDefined)(),
|
|
830
830
|
(0, import_class_transformer9.Expose)({ name: "elevation" })
|
|
831
|
-
],
|
|
832
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a
|
|
831
|
+
], _DetailedClerestory.prototype, "elevation", 2);
|
|
832
|
+
/** An array of arrays with each sub-array representing a polygonal boundary of a clerestory window or door. Each sub-array should consist of arrays representing points, which contain 2 values for 2D coordinates in the plane defined by the base_line. The base_line plane is assumed to have an origin at the end point of the line segment (the second point) and an X-axis extending along the length of the segment. The Y-axis of the plane always points upwards. Therefore, both X and Y coordinates of the points in each polygon should be positive. */
|
|
833
833
|
__decorateClass([
|
|
834
834
|
(0, import_class_validator9.IsArray)(),
|
|
835
835
|
IsNestedNumberArray(),
|
|
836
836
|
(0, import_class_validator9.IsDefined)(),
|
|
837
837
|
(0, import_class_transformer9.Expose)({ name: "polygons" })
|
|
838
|
-
],
|
|
838
|
+
], _DetailedClerestory.prototype, "polygons", 2);
|
|
839
839
|
__decorateClass([
|
|
840
840
|
(0, import_class_transformer9.Type)(() => String),
|
|
841
841
|
(0, import_class_validator9.IsString)(),
|
|
842
842
|
(0, import_class_validator9.IsOptional)(),
|
|
843
|
-
(0, import_class_validator9.Equals)("
|
|
843
|
+
(0, import_class_validator9.Equals)("DetailedClerestory"),
|
|
844
844
|
(0, import_class_transformer9.Expose)({ name: "type" })
|
|
845
|
-
],
|
|
846
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents a door out onto a roof or balcony (True) or a
|
|
845
|
+
], _DetailedClerestory.prototype, "type", 2);
|
|
846
|
+
/** An array of booleans that align with the polygons and note whether each of the polygons represents a door out onto a roof or balcony (True) or a clerestory window (False). If None, it will be assumed that all polygons represent windows and they will be translated to Apertures in any resulting Honeybee model */
|
|
847
847
|
__decorateClass([
|
|
848
848
|
(0, import_class_validator9.IsArray)(),
|
|
849
849
|
(0, import_class_transformer9.Type)(() => Boolean),
|
|
850
850
|
(0, import_class_validator9.IsBoolean)({ each: true }),
|
|
851
851
|
(0, import_class_validator9.IsOptional)(),
|
|
852
852
|
(0, import_class_transformer9.Expose)({ name: "are_doors" })
|
|
853
|
-
],
|
|
854
|
-
var
|
|
853
|
+
], _DetailedClerestory.prototype, "areDoors", 2);
|
|
854
|
+
var DetailedClerestory = _DetailedClerestory;
|
|
855
855
|
|
|
856
856
|
// src/models/RoofSpecification.ts
|
|
857
857
|
var import_honeybee_schema = require("honeybee-schema");
|
|
@@ -868,7 +868,7 @@ var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
|
868
868
|
const obj = deepTransform(_RoofSpecification, _data);
|
|
869
869
|
this.geometry = obj.geometry;
|
|
870
870
|
this.type = obj.type ?? "RoofSpecification";
|
|
871
|
-
this.
|
|
871
|
+
this.clerestoryParameters = obj.clerestoryParameters;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
static fromJS(data) {
|
|
@@ -888,7 +888,7 @@ var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
|
888
888
|
data = typeof data === "object" ? data : {};
|
|
889
889
|
data["geometry"] = this.geometry;
|
|
890
890
|
data["type"] = this.type ?? "RoofSpecification";
|
|
891
|
-
data["
|
|
891
|
+
data["clerestory_parameters"] = this.clerestoryParameters;
|
|
892
892
|
data = super.toJSON(data);
|
|
893
893
|
return (0, import_class_transformer10.instanceToPlain)(data, { exposeUnsetFields: false });
|
|
894
894
|
}
|
|
@@ -919,15 +919,15 @@ __decorateClass([
|
|
|
919
919
|
(0, import_class_validator11.Equals)("RoofSpecification"),
|
|
920
920
|
(0, import_class_transformer10.Expose)({ name: "type" })
|
|
921
921
|
], _RoofSpecification.prototype, "type", 2);
|
|
922
|
-
/** A list of
|
|
922
|
+
/** A list of ClerestoryParameter objects that dictate how to generate window geometries for any vertical walls that result from the translation of roof geometry. If None, no clerestory windows will exist over the roof. */
|
|
923
923
|
__decorateClass([
|
|
924
924
|
(0, import_class_validator11.IsArray)(),
|
|
925
|
-
(0, import_class_transformer10.Type)(() =>
|
|
926
|
-
(0, import_class_validator11.IsInstance)(
|
|
925
|
+
(0, import_class_transformer10.Type)(() => DetailedClerestory),
|
|
926
|
+
(0, import_class_validator11.IsInstance)(DetailedClerestory, { each: true }),
|
|
927
927
|
(0, import_class_validator11.ValidateNested)({ each: true }),
|
|
928
928
|
(0, import_class_validator11.IsOptional)(),
|
|
929
|
-
(0, import_class_transformer10.Expose)({ name: "
|
|
930
|
-
], _RoofSpecification.prototype, "
|
|
929
|
+
(0, import_class_transformer10.Expose)({ name: "clerestory_parameters" })
|
|
930
|
+
], _RoofSpecification.prototype, "clerestoryParameters", 2);
|
|
931
931
|
var RoofSpecification = _RoofSpecification;
|
|
932
932
|
|
|
933
933
|
// src/models/Building.ts
|
|
@@ -7406,7 +7406,7 @@ var WSHPwithDOASEquipmentType = /* @__PURE__ */ ((WSHPwithDOASEquipmentType2) =>
|
|
|
7406
7406
|
ContextShadePropertiesAbridged,
|
|
7407
7407
|
ContextShadeRadiancePropertiesAbridged,
|
|
7408
7408
|
ControlType,
|
|
7409
|
-
|
|
7409
|
+
DetailedClerestory,
|
|
7410
7410
|
DetailedSkylights,
|
|
7411
7411
|
DetailedWindows,
|
|
7412
7412
|
EconomizerType,
|