dragonfly-schema 1.1301.2 → 1.1301.4

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.
Files changed (152) hide show
  1. package/dist/index.cjs +7670 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +735 -0
  4. package/dist/index.d.ts +735 -0
  5. package/dist/index.js +7609 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +14 -10
  8. package/dist/src/helpers/class-validator.d.ts +0 -5
  9. package/dist/src/helpers/class-validator.d.ts.map +0 -1
  10. package/dist/src/helpers/class-validator.js +0 -78
  11. package/dist/src/index.d.ts +0 -3
  12. package/dist/src/index.d.ts.map +0 -1
  13. package/dist/src/index.js +0 -18
  14. package/dist/src/models/Building.d.ts +0 -24
  15. package/dist/src/models/Building.d.ts.map +0 -1
  16. package/dist/src/models/Building.js +0 -125
  17. package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts +0 -18
  18. package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts.map +0 -1
  19. package/dist/src/models/BuildingEnergyPropertiesAbridged.js +0 -106
  20. package/dist/src/models/BuildingPropertiesAbridged.d.ts +0 -17
  21. package/dist/src/models/BuildingPropertiesAbridged.d.ts.map +0 -1
  22. package/dist/src/models/BuildingPropertiesAbridged.js +0 -94
  23. package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts +0 -14
  24. package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts.map +0 -1
  25. package/dist/src/models/BuildingRadiancePropertiesAbridged.js +0 -78
  26. package/dist/src/models/ContextShade.d.ts +0 -21
  27. package/dist/src/models/ContextShade.d.ts.map +0 -1
  28. package/dist/src/models/ContextShade.js +0 -114
  29. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts +0 -16
  30. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts.map +0 -1
  31. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.js +0 -93
  32. package/dist/src/models/ContextShadePropertiesAbridged.d.ts +0 -17
  33. package/dist/src/models/ContextShadePropertiesAbridged.d.ts.map +0 -1
  34. package/dist/src/models/ContextShadePropertiesAbridged.js +0 -94
  35. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts +0 -14
  36. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts.map +0 -1
  37. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.js +0 -78
  38. package/dist/src/models/DetailedSkylights.d.ts +0 -16
  39. package/dist/src/models/DetailedSkylights.d.ts.map +0 -1
  40. package/dist/src/models/DetailedSkylights.js +0 -92
  41. package/dist/src/models/DetailedWindows.d.ts +0 -16
  42. package/dist/src/models/DetailedWindows.d.ts.map +0 -1
  43. package/dist/src/models/DetailedWindows.js +0 -92
  44. package/dist/src/models/ExteriorApertureGridParameter.d.ts +0 -17
  45. package/dist/src/models/ExteriorApertureGridParameter.d.ts.map +0 -1
  46. package/dist/src/models/ExteriorApertureGridParameter.js +0 -93
  47. package/dist/src/models/ExteriorApertureType.d.ts +0 -7
  48. package/dist/src/models/ExteriorApertureType.d.ts.map +0 -1
  49. package/dist/src/models/ExteriorApertureType.js +0 -11
  50. package/dist/src/models/ExteriorFaceGridParameter.d.ts +0 -19
  51. package/dist/src/models/ExteriorFaceGridParameter.d.ts.map +0 -1
  52. package/dist/src/models/ExteriorFaceGridParameter.js +0 -105
  53. package/dist/src/models/ExteriorFaceType.d.ts +0 -8
  54. package/dist/src/models/ExteriorFaceType.d.ts.map +0 -1
  55. package/dist/src/models/ExteriorFaceType.js +0 -12
  56. package/dist/src/models/ExtrudedBorder.d.ts +0 -14
  57. package/dist/src/models/ExtrudedBorder.d.ts.map +0 -1
  58. package/dist/src/models/ExtrudedBorder.js +0 -78
  59. package/dist/src/models/GriddedSkylightArea.d.ts +0 -17
  60. package/dist/src/models/GriddedSkylightArea.d.ts.map +0 -1
  61. package/dist/src/models/GriddedSkylightArea.js +0 -90
  62. package/dist/src/models/GriddedSkylightRatio.d.ts +0 -17
  63. package/dist/src/models/GriddedSkylightRatio.d.ts.map +0 -1
  64. package/dist/src/models/GriddedSkylightRatio.js +0 -90
  65. package/dist/src/models/LouversByCount.d.ts +0 -14
  66. package/dist/src/models/LouversByCount.d.ts.map +0 -1
  67. package/dist/src/models/LouversByCount.js +0 -78
  68. package/dist/src/models/LouversByDistance.d.ts +0 -14
  69. package/dist/src/models/LouversByDistance.d.ts.map +0 -1
  70. package/dist/src/models/LouversByDistance.js +0 -78
  71. package/dist/src/models/Model.d.ts +0 -30
  72. package/dist/src/models/Model.d.ts.map +0 -1
  73. package/dist/src/models/Model.js +0 -164
  74. package/dist/src/models/ModelEnergyProperties.d.ts +0 -79
  75. package/dist/src/models/ModelEnergyProperties.d.ts.map +0 -1
  76. package/dist/src/models/ModelEnergyProperties.js +0 -769
  77. package/dist/src/models/ModelProperties.d.ts +0 -17
  78. package/dist/src/models/ModelProperties.d.ts.map +0 -1
  79. package/dist/src/models/ModelProperties.js +0 -94
  80. package/dist/src/models/ModelRadianceProperties.d.ts +0 -30
  81. package/dist/src/models/ModelRadianceProperties.d.ts.map +0 -1
  82. package/dist/src/models/ModelRadianceProperties.js +0 -306
  83. package/dist/src/models/Overhang.d.ts +0 -16
  84. package/dist/src/models/Overhang.d.ts.map +0 -1
  85. package/dist/src/models/Overhang.js +0 -92
  86. package/dist/src/models/RectangularWindows.d.ts +0 -20
  87. package/dist/src/models/RectangularWindows.d.ts.map +0 -1
  88. package/dist/src/models/RectangularWindows.js +0 -116
  89. package/dist/src/models/RepeatingWindowRatio.d.ts +0 -22
  90. package/dist/src/models/RepeatingWindowRatio.d.ts.map +0 -1
  91. package/dist/src/models/RepeatingWindowRatio.js +0 -125
  92. package/dist/src/models/RoofSpecification.d.ts +0 -15
  93. package/dist/src/models/RoofSpecification.d.ts.map +0 -1
  94. package/dist/src/models/RoofSpecification.js +0 -82
  95. package/dist/src/models/Room2D.d.ts +0 -63
  96. package/dist/src/models/Room2D.d.ts.map +0 -1
  97. package/dist/src/models/Room2D.js +0 -328
  98. package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts +0 -29
  99. package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts.map +0 -1
  100. package/dist/src/models/Room2DEnergyPropertiesAbridged.js +0 -162
  101. package/dist/src/models/Room2DPropertiesAbridged.d.ts +0 -17
  102. package/dist/src/models/Room2DPropertiesAbridged.d.ts.map +0 -1
  103. package/dist/src/models/Room2DPropertiesAbridged.js +0 -94
  104. package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts +0 -20
  105. package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts.map +0 -1
  106. package/dist/src/models/Room2DRadiancePropertiesAbridged.js +0 -105
  107. package/dist/src/models/RoomGridParameter.d.ts +0 -16
  108. package/dist/src/models/RoomGridParameter.d.ts.map +0 -1
  109. package/dist/src/models/RoomGridParameter.js +0 -91
  110. package/dist/src/models/RoomRadialGridParameter.d.ts +0 -19
  111. package/dist/src/models/RoomRadialGridParameter.d.ts.map +0 -1
  112. package/dist/src/models/RoomRadialGridParameter.js +0 -103
  113. package/dist/src/models/SimpleWindowArea.d.ts +0 -16
  114. package/dist/src/models/SimpleWindowArea.d.ts.map +0 -1
  115. package/dist/src/models/SimpleWindowArea.js +0 -90
  116. package/dist/src/models/SimpleWindowRatio.d.ts +0 -16
  117. package/dist/src/models/SimpleWindowRatio.d.ts.map +0 -1
  118. package/dist/src/models/SimpleWindowRatio.js +0 -90
  119. package/dist/src/models/SingleWindow.d.ts +0 -18
  120. package/dist/src/models/SingleWindow.d.ts.map +0 -1
  121. package/dist/src/models/SingleWindow.js +0 -101
  122. package/dist/src/models/Story.d.ts +0 -31
  123. package/dist/src/models/Story.d.ts.map +0 -1
  124. package/dist/src/models/Story.js +0 -160
  125. package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts +0 -14
  126. package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts.map +0 -1
  127. package/dist/src/models/StoryEnergyPropertiesAbridged.js +0 -80
  128. package/dist/src/models/StoryPropertiesAbridged.d.ts +0 -17
  129. package/dist/src/models/StoryPropertiesAbridged.d.ts.map +0 -1
  130. package/dist/src/models/StoryPropertiesAbridged.js +0 -94
  131. package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts +0 -14
  132. package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts.map +0 -1
  133. package/dist/src/models/StoryRadiancePropertiesAbridged.js +0 -78
  134. package/dist/src/models/StoryType.d.ts +0 -7
  135. package/dist/src/models/StoryType.d.ts.map +0 -1
  136. package/dist/src/models/StoryType.js +0 -11
  137. package/dist/src/models/_GridParameterBase.d.ts +0 -16
  138. package/dist/src/models/_GridParameterBase.d.ts.map +0 -1
  139. package/dist/src/models/_GridParameterBase.js +0 -90
  140. package/dist/src/models/_LouversBase.d.ts +0 -22
  141. package/dist/src/models/_LouversBase.d.ts.map +0 -1
  142. package/dist/src/models/_LouversBase.js +0 -130
  143. package/dist/src/models/_OpenAPIGenBaseModel.d.ts +0 -9
  144. package/dist/src/models/_OpenAPIGenBaseModel.d.ts.map +0 -1
  145. package/dist/src/models/_OpenAPIGenBaseModel.js +0 -53
  146. package/dist/src/models/_WindowParameterBase.d.ts +0 -14
  147. package/dist/src/models/_WindowParameterBase.d.ts.map +0 -1
  148. package/dist/src/models/_WindowParameterBase.js +0 -77
  149. package/dist/src/models/index.d.ts +0 -46
  150. package/dist/src/models/index.d.ts.map +0 -1
  151. package/dist/src/models/index.js +0 -62
  152. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,90 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GriddedSkylightArea = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _OpenAPIGenBaseModel_1 = require("./_OpenAPIGenBaseModel");
16
- const honeybee_schema_1 = require("honeybee-schema");
17
- /** Gridded skylights defined by an absolute area. */
18
- class GriddedSkylightArea extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
19
- /** A number for the skylight area in current model units. If this area is larger than the area of the roof that it is applied to, the skylight will fill the parent roof at a 99 percent ratio. */
20
- skylight_area;
21
- /** Type */
22
- type;
23
- /** 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. */
24
- spacing;
25
- constructor() {
26
- super();
27
- this.type = "GriddedSkylightArea";
28
- this.spacing = new honeybee_schema_1.Autocalculate();
29
- }
30
- init(_data) {
31
- super.init(_data);
32
- if (_data) {
33
- const obj = (0, class_transformer_1.plainToClass)(GriddedSkylightArea, _data, { enableImplicitConversion: true });
34
- this.skylight_area = obj.skylight_area;
35
- this.type = obj.type;
36
- this.spacing = obj.spacing;
37
- }
38
- }
39
- static fromJS(data) {
40
- data = typeof data === 'object' ? data : {};
41
- if (Array.isArray(data)) {
42
- const obj = {};
43
- for (var property in data) {
44
- obj[property] = data[property];
45
- }
46
- data = obj;
47
- }
48
- let result = new GriddedSkylightArea();
49
- result.init(data);
50
- return result;
51
- }
52
- toJSON(data) {
53
- data = typeof data === 'object' ? data : {};
54
- data["skylight_area"] = this.skylight_area;
55
- data["type"] = this.type;
56
- data["spacing"] = this.spacing;
57
- data = super.toJSON(data);
58
- return (0, class_transformer_1.instanceToPlain)(data);
59
- }
60
- async validate() {
61
- const errors = await (0, class_validator_1.validate)(this);
62
- if (errors.length > 0) {
63
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
64
- throw new Error(`Validation failed: ${errorMessages}`);
65
- }
66
- return true;
67
- }
68
- }
69
- exports.GriddedSkylightArea = GriddedSkylightArea;
70
- __decorate([
71
- (0, class_validator_1.IsNumber)(),
72
- (0, class_validator_1.IsDefined)()
73
- /** A number for the skylight area in current model units. If this area is larger than the area of the roof that it is applied to, the skylight will fill the parent roof at a 99 percent ratio. */
74
- ,
75
- __metadata("design:type", Number)
76
- ], GriddedSkylightArea.prototype, "skylight_area", void 0);
77
- __decorate([
78
- (0, class_validator_1.IsString)(),
79
- (0, class_validator_1.IsOptional)(),
80
- (0, class_validator_1.Matches)(/^GriddedSkylightArea$/)
81
- /** Type */
82
- ,
83
- __metadata("design:type", String)
84
- ], GriddedSkylightArea.prototype, "type", void 0);
85
- __decorate([
86
- (0, class_validator_1.IsOptional)()
87
- /** 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. */
88
- ,
89
- __metadata("design:type", Object)
90
- ], GriddedSkylightArea.prototype, "spacing", void 0);
@@ -1,17 +0,0 @@
1
- import { _OpenAPIGenBaseModel } from "./_OpenAPIGenBaseModel";
2
- import { Autocalculate } from "honeybee-schema";
3
- /** Gridded skylights derived from an area ratio with the roof. */
4
- export declare class GriddedSkylightRatio extends _OpenAPIGenBaseModel {
5
- /** A number between 0 and 1 for the ratio between the skylight area and the total Roof face area. */
6
- skylight_ratio: number;
7
- /** Type */
8
- type?: string;
9
- /** 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. */
10
- spacing?: (Autocalculate | number);
11
- constructor();
12
- init(_data?: any): void;
13
- static fromJS(data: any): GriddedSkylightRatio;
14
- toJSON(data?: any): Record<string, any>;
15
- validate(): Promise<boolean>;
16
- }
17
- //# sourceMappingURL=GriddedSkylightRatio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GriddedSkylightRatio.d.ts","sourceRoot":"","sources":["../../../src/models/GriddedSkylightRatio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,kEAAkE;AAClE,qBAAa,oBAAqB,SAAQ,oBAAoB;IAG1D,qGAAqG;IACrG,cAAc,EAAG,MAAM,CAAC;IAKxB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,gTAAgT;IAChT,OAAO,CAAC,EAAE,CAAC,aAAa,GAAG,MAAM,CAAC,CAAC;;IAU1B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB;IAejD,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,90 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GriddedSkylightRatio = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _OpenAPIGenBaseModel_1 = require("./_OpenAPIGenBaseModel");
16
- const honeybee_schema_1 = require("honeybee-schema");
17
- /** Gridded skylights derived from an area ratio with the roof. */
18
- class GriddedSkylightRatio extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
19
- /** A number between 0 and 1 for the ratio between the skylight area and the total Roof face area. */
20
- skylight_ratio;
21
- /** Type */
22
- type;
23
- /** 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. */
24
- spacing;
25
- constructor() {
26
- super();
27
- this.type = "GriddedSkylightRatio";
28
- this.spacing = new honeybee_schema_1.Autocalculate();
29
- }
30
- init(_data) {
31
- super.init(_data);
32
- if (_data) {
33
- const obj = (0, class_transformer_1.plainToClass)(GriddedSkylightRatio, _data, { enableImplicitConversion: true });
34
- this.skylight_ratio = obj.skylight_ratio;
35
- this.type = obj.type;
36
- this.spacing = obj.spacing;
37
- }
38
- }
39
- static fromJS(data) {
40
- data = typeof data === 'object' ? data : {};
41
- if (Array.isArray(data)) {
42
- const obj = {};
43
- for (var property in data) {
44
- obj[property] = data[property];
45
- }
46
- data = obj;
47
- }
48
- let result = new GriddedSkylightRatio();
49
- result.init(data);
50
- return result;
51
- }
52
- toJSON(data) {
53
- data = typeof data === 'object' ? data : {};
54
- data["skylight_ratio"] = this.skylight_ratio;
55
- data["type"] = this.type;
56
- data["spacing"] = this.spacing;
57
- data = super.toJSON(data);
58
- return (0, class_transformer_1.instanceToPlain)(data);
59
- }
60
- async validate() {
61
- const errors = await (0, class_validator_1.validate)(this);
62
- if (errors.length > 0) {
63
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
64
- throw new Error(`Validation failed: ${errorMessages}`);
65
- }
66
- return true;
67
- }
68
- }
69
- exports.GriddedSkylightRatio = GriddedSkylightRatio;
70
- __decorate([
71
- (0, class_validator_1.IsNumber)(),
72
- (0, class_validator_1.IsDefined)()
73
- /** A number between 0 and 1 for the ratio between the skylight area and the total Roof face area. */
74
- ,
75
- __metadata("design:type", Number)
76
- ], GriddedSkylightRatio.prototype, "skylight_ratio", void 0);
77
- __decorate([
78
- (0, class_validator_1.IsString)(),
79
- (0, class_validator_1.IsOptional)(),
80
- (0, class_validator_1.Matches)(/^GriddedSkylightRatio$/)
81
- /** Type */
82
- ,
83
- __metadata("design:type", String)
84
- ], GriddedSkylightRatio.prototype, "type", void 0);
85
- __decorate([
86
- (0, class_validator_1.IsOptional)()
87
- /** 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. */
88
- ,
89
- __metadata("design:type", Object)
90
- ], GriddedSkylightRatio.prototype, "spacing", void 0);
@@ -1,14 +0,0 @@
1
- import { _LouversBase } from "./_LouversBase";
2
- /** A specific number of louvered Shades over a wall. */
3
- export declare class LouversByCount extends _LouversBase {
4
- /** A positive integer for the number of louvers to generate. */
5
- louver_count: number;
6
- /** Type */
7
- type?: string;
8
- constructor();
9
- init(_data?: any): void;
10
- static fromJS(data: any): LouversByCount;
11
- toJSON(data?: any): Record<string, any>;
12
- validate(): Promise<boolean>;
13
- }
14
- //# sourceMappingURL=LouversByCount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LouversByCount.d.ts","sourceRoot":"","sources":["../../../src/models/LouversByCount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,wDAAwD;AACxD,qBAAa,cAAe,SAAQ,YAAY;IAG5C,gEAAgE;IAChE,YAAY,EAAG,MAAM,CAAC;IAKtB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;;IASL,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAUT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc;IAe3C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAQpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LouversByCount = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _LouversBase_1 = require("./_LouversBase");
16
- /** A specific number of louvered Shades over a wall. */
17
- class LouversByCount extends _LouversBase_1._LouversBase {
18
- /** A positive integer for the number of louvers to generate. */
19
- louver_count;
20
- /** Type */
21
- type;
22
- constructor() {
23
- super();
24
- this.type = "LouversByCount";
25
- }
26
- init(_data) {
27
- super.init(_data);
28
- if (_data) {
29
- const obj = (0, class_transformer_1.plainToClass)(LouversByCount, _data, { enableImplicitConversion: true });
30
- this.louver_count = obj.louver_count;
31
- this.type = obj.type;
32
- }
33
- }
34
- static fromJS(data) {
35
- data = typeof data === 'object' ? data : {};
36
- if (Array.isArray(data)) {
37
- const obj = {};
38
- for (var property in data) {
39
- obj[property] = data[property];
40
- }
41
- data = obj;
42
- }
43
- let result = new LouversByCount();
44
- result.init(data);
45
- return result;
46
- }
47
- toJSON(data) {
48
- data = typeof data === 'object' ? data : {};
49
- data["louver_count"] = this.louver_count;
50
- data["type"] = this.type;
51
- data = super.toJSON(data);
52
- return (0, class_transformer_1.instanceToPlain)(data);
53
- }
54
- async validate() {
55
- const errors = await (0, class_validator_1.validate)(this);
56
- if (errors.length > 0) {
57
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
58
- throw new Error(`Validation failed: ${errorMessages}`);
59
- }
60
- return true;
61
- }
62
- }
63
- exports.LouversByCount = LouversByCount;
64
- __decorate([
65
- (0, class_validator_1.IsInt)(),
66
- (0, class_validator_1.IsDefined)()
67
- /** A positive integer for the number of louvers to generate. */
68
- ,
69
- __metadata("design:type", Number)
70
- ], LouversByCount.prototype, "louver_count", void 0);
71
- __decorate([
72
- (0, class_validator_1.IsString)(),
73
- (0, class_validator_1.IsOptional)(),
74
- (0, class_validator_1.Matches)(/^LouversByCount$/)
75
- /** Type */
76
- ,
77
- __metadata("design:type", String)
78
- ], LouversByCount.prototype, "type", void 0);
@@ -1,14 +0,0 @@
1
- import { _LouversBase } from "./_LouversBase";
2
- /** A series of louvered Shades at a given distance between each louver. */
3
- export declare class LouversByDistance extends _LouversBase {
4
- /** A number for the approximate distance between each louver. */
5
- distance: number;
6
- /** Type */
7
- type?: string;
8
- constructor();
9
- init(_data?: any): void;
10
- static fromJS(data: any): LouversByDistance;
11
- toJSON(data?: any): Record<string, any>;
12
- validate(): Promise<boolean>;
13
- }
14
- //# sourceMappingURL=LouversByDistance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LouversByDistance.d.ts","sourceRoot":"","sources":["../../../src/models/LouversByDistance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,2EAA2E;AAC3E,qBAAa,iBAAkB,SAAQ,YAAY;IAG/C,iEAAiE;IACjE,QAAQ,EAAG,MAAM,CAAC;IAKlB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;;IASL,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAUT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB;IAe9C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAQpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LouversByDistance = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _LouversBase_1 = require("./_LouversBase");
16
- /** A series of louvered Shades at a given distance between each louver. */
17
- class LouversByDistance extends _LouversBase_1._LouversBase {
18
- /** A number for the approximate distance between each louver. */
19
- distance;
20
- /** Type */
21
- type;
22
- constructor() {
23
- super();
24
- this.type = "LouversByDistance";
25
- }
26
- init(_data) {
27
- super.init(_data);
28
- if (_data) {
29
- const obj = (0, class_transformer_1.plainToClass)(LouversByDistance, _data, { enableImplicitConversion: true });
30
- this.distance = obj.distance;
31
- this.type = obj.type;
32
- }
33
- }
34
- static fromJS(data) {
35
- data = typeof data === 'object' ? data : {};
36
- if (Array.isArray(data)) {
37
- const obj = {};
38
- for (var property in data) {
39
- obj[property] = data[property];
40
- }
41
- data = obj;
42
- }
43
- let result = new LouversByDistance();
44
- result.init(data);
45
- return result;
46
- }
47
- toJSON(data) {
48
- data = typeof data === 'object' ? data : {};
49
- data["distance"] = this.distance;
50
- data["type"] = this.type;
51
- data = super.toJSON(data);
52
- return (0, class_transformer_1.instanceToPlain)(data);
53
- }
54
- async validate() {
55
- const errors = await (0, class_validator_1.validate)(this);
56
- if (errors.length > 0) {
57
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
58
- throw new Error(`Validation failed: ${errorMessages}`);
59
- }
60
- return true;
61
- }
62
- }
63
- exports.LouversByDistance = LouversByDistance;
64
- __decorate([
65
- (0, class_validator_1.IsNumber)(),
66
- (0, class_validator_1.IsDefined)()
67
- /** A number for the approximate distance between each louver. */
68
- ,
69
- __metadata("design:type", Number)
70
- ], LouversByDistance.prototype, "distance", void 0);
71
- __decorate([
72
- (0, class_validator_1.IsString)(),
73
- (0, class_validator_1.IsOptional)(),
74
- (0, class_validator_1.Matches)(/^LouversByDistance$/)
75
- /** Type */
76
- ,
77
- __metadata("design:type", String)
78
- ], LouversByDistance.prototype, "type", void 0);
@@ -1,30 +0,0 @@
1
- import { Building } from "./Building";
2
- import { ContextShade } from "./ContextShade";
3
- import { IDdBaseModel } from "honeybee-schema";
4
- import { ModelProperties } from "./ModelProperties";
5
- import { Units } from "honeybee-schema";
6
- /** Base class for all objects requiring a identifiers acceptable for all engines. */
7
- export declare class Model extends IDdBaseModel {
8
- /** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
9
- properties: ModelProperties;
10
- /** Type */
11
- type?: string;
12
- /** Text string for the current version of the schema. */
13
- version?: string;
14
- /** A list of Buildings in the model. */
15
- buildings?: Building[];
16
- /** A list of ContextShades in the model. */
17
- context_shades?: ContextShade[];
18
- /** 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. */
19
- units?: Units;
20
- /** 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. */
21
- tolerance?: number;
22
- /** 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. */
23
- angle_tolerance?: number;
24
- constructor();
25
- init(_data?: any): void;
26
- static fromJS(data: any): Model;
27
- toJSON(data?: any): Record<string, any>;
28
- validate(): Promise<boolean>;
29
- }
30
- //# sourceMappingURL=Model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../../src/models/Model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,qFAAqF;AACrF,qBAAa,KAAM,SAAQ,YAAY;IAKnC,qFAAqF;IACrF,UAAU,EAAG,eAAe,CAAC;IAK7B,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,wCAAwC;IACxC,SAAS,CAAC,EAAE,QAAQ,EAAG,CAAC;IAOxB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,YAAY,EAAG,CAAC;IAKjC,8MAA8M;IAC9M,KAAK,CAAC,EAAE,KAAK,CAAC;IAKd,0ZAA0Z;IAC1Z,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,6aAA6a;IAC7a,eAAe,CAAC,EAAE,MAAM,CAAC;;IAahB,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAgBT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK;IAelC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAcpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,164 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Model = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const Building_1 = require("./Building");
16
- const ContextShade_1 = require("./ContextShade");
17
- const honeybee_schema_1 = require("honeybee-schema");
18
- const ModelProperties_1 = require("./ModelProperties");
19
- const honeybee_schema_2 = require("honeybee-schema");
20
- /** Base class for all objects requiring a identifiers acceptable for all engines. */
21
- class Model extends honeybee_schema_1.IDdBaseModel {
22
- /** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
23
- properties;
24
- /** Type */
25
- type;
26
- /** Text string for the current version of the schema. */
27
- version;
28
- /** A list of Buildings in the model. */
29
- buildings;
30
- /** A list of ContextShades in the model. */
31
- context_shades;
32
- /** 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. */
33
- units;
34
- /** 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. */
35
- tolerance;
36
- /** 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. */
37
- angle_tolerance;
38
- constructor() {
39
- super();
40
- this.type = "Model";
41
- this.version = "0.0.0";
42
- this.units = honeybee_schema_2.Units.Meters;
43
- this.tolerance = 0.01;
44
- this.angle_tolerance = 1;
45
- }
46
- init(_data) {
47
- super.init(_data);
48
- if (_data) {
49
- const obj = (0, class_transformer_1.plainToClass)(Model, _data, { enableImplicitConversion: true });
50
- this.properties = obj.properties;
51
- this.type = obj.type;
52
- this.version = obj.version;
53
- this.buildings = obj.buildings;
54
- this.context_shades = obj.context_shades;
55
- this.units = obj.units;
56
- this.tolerance = obj.tolerance;
57
- this.angle_tolerance = obj.angle_tolerance;
58
- }
59
- }
60
- static fromJS(data) {
61
- data = typeof data === 'object' ? data : {};
62
- if (Array.isArray(data)) {
63
- const obj = {};
64
- for (var property in data) {
65
- obj[property] = data[property];
66
- }
67
- data = obj;
68
- }
69
- let result = new Model();
70
- result.init(data);
71
- return result;
72
- }
73
- toJSON(data) {
74
- data = typeof data === 'object' ? data : {};
75
- data["properties"] = this.properties;
76
- data["type"] = this.type;
77
- data["version"] = this.version;
78
- data["buildings"] = this.buildings;
79
- data["context_shades"] = this.context_shades;
80
- data["units"] = this.units;
81
- data["tolerance"] = this.tolerance;
82
- data["angle_tolerance"] = this.angle_tolerance;
83
- data = super.toJSON(data);
84
- return (0, class_transformer_1.instanceToPlain)(data);
85
- }
86
- async validate() {
87
- const errors = await (0, class_validator_1.validate)(this);
88
- if (errors.length > 0) {
89
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
90
- throw new Error(`Validation failed: ${errorMessages}`);
91
- }
92
- return true;
93
- }
94
- }
95
- exports.Model = Model;
96
- __decorate([
97
- (0, class_validator_1.IsInstance)(ModelProperties_1.ModelProperties),
98
- (0, class_transformer_1.Type)(() => ModelProperties_1.ModelProperties),
99
- (0, class_validator_1.ValidateNested)(),
100
- (0, class_validator_1.IsDefined)()
101
- /** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
102
- ,
103
- __metadata("design:type", ModelProperties_1.ModelProperties)
104
- ], Model.prototype, "properties", void 0);
105
- __decorate([
106
- (0, class_validator_1.IsString)(),
107
- (0, class_validator_1.IsOptional)(),
108
- (0, class_validator_1.Matches)(/^Model$/)
109
- /** Type */
110
- ,
111
- __metadata("design:type", String)
112
- ], Model.prototype, "type", void 0);
113
- __decorate([
114
- (0, class_validator_1.IsString)(),
115
- (0, class_validator_1.IsOptional)(),
116
- (0, class_validator_1.Matches)(/([0-9]+)\.([0-9]+)\.([0-9]+)/)
117
- /** Text string for the current version of the schema. */
118
- ,
119
- __metadata("design:type", String)
120
- ], Model.prototype, "version", void 0);
121
- __decorate([
122
- (0, class_validator_1.IsArray)(),
123
- (0, class_validator_1.IsInstance)(Building_1.Building, { each: true }),
124
- (0, class_transformer_1.Type)(() => Building_1.Building),
125
- (0, class_validator_1.ValidateNested)({ each: true }),
126
- (0, class_validator_1.IsOptional)()
127
- /** A list of Buildings in the model. */
128
- ,
129
- __metadata("design:type", Array)
130
- ], Model.prototype, "buildings", void 0);
131
- __decorate([
132
- (0, class_validator_1.IsArray)(),
133
- (0, class_validator_1.IsInstance)(ContextShade_1.ContextShade, { each: true }),
134
- (0, class_transformer_1.Type)(() => ContextShade_1.ContextShade),
135
- (0, class_validator_1.ValidateNested)({ each: true }),
136
- (0, class_validator_1.IsOptional)()
137
- /** A list of ContextShades in the model. */
138
- ,
139
- __metadata("design:type", Array)
140
- ], Model.prototype, "context_shades", void 0);
141
- __decorate([
142
- (0, class_validator_1.IsEnum)(honeybee_schema_2.Units),
143
- (0, class_transformer_1.Type)(() => String),
144
- (0, class_validator_1.IsOptional)()
145
- /** 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. */
146
- ,
147
- __metadata("design:type", String)
148
- ], Model.prototype, "units", void 0);
149
- __decorate([
150
- (0, class_validator_1.IsNumber)(),
151
- (0, class_validator_1.IsOptional)(),
152
- (0, class_validator_1.Min)(0)
153
- /** 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. */
154
- ,
155
- __metadata("design:type", Number)
156
- ], Model.prototype, "tolerance", void 0);
157
- __decorate([
158
- (0, class_validator_1.IsNumber)(),
159
- (0, class_validator_1.IsOptional)(),
160
- (0, class_validator_1.Min)(0)
161
- /** 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. */
162
- ,
163
- __metadata("design:type", Number)
164
- ], Model.prototype, "angle_tolerance", void 0);