@likewatt/models 1.8.2 → 1.10.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.
@@ -54,7 +54,7 @@ export declare class Site {
54
54
  _step3At?: Date | string;
55
55
  analysisYear?: number;
56
56
  buildingData?: BuildingData | null;
57
- buildingDataStatus: BuildingDataStatus | null;
57
+ buildingDataStatus?: BuildingDataStatus | null;
58
58
  autoCO2: boolean;
59
59
  co2rate?: number | null;
60
60
  connectingPower: number;
package/dist/core/Site.js CHANGED
@@ -298,7 +298,7 @@ __decorate([
298
298
  (0, mongoose_1.Prop)({
299
299
  type: String,
300
300
  enum: BuildingDataStatus_1.BuildingDataStatus,
301
- required: true,
301
+ required: false,
302
302
  }),
303
303
  (0, class_validator_1.IsEnum)(BuildingDataStatus_1.BuildingDataStatus),
304
304
  __metadata("design:type", Object)
@@ -1,4 +1,5 @@
1
1
  export declare enum BuildingDataStatus {
2
2
  OK = "OK",
3
- NOT_COVERED = "NOT_COVERED"
3
+ NOT_COVERED = "NOT_COVERED",
4
+ ERROR = "ERROR"
4
5
  }
@@ -5,4 +5,5 @@ var BuildingDataStatus;
5
5
  (function (BuildingDataStatus) {
6
6
  BuildingDataStatus["OK"] = "OK";
7
7
  BuildingDataStatus["NOT_COVERED"] = "NOT_COVERED";
8
+ BuildingDataStatus["ERROR"] = "ERROR";
8
9
  })(BuildingDataStatus || (exports.BuildingDataStatus = BuildingDataStatus = {}));
@@ -55,7 +55,9 @@ export declare enum FileType {
55
55
  CONSENT5 = "consent5.pdf",
56
56
  CONSENT6 = "consent6.txt",
57
57
  METADATA = "metadata.json",
58
- OVERLAY = "overlay.png"
58
+ OVERLAY = "overlay.png",
59
+ METADATA_BUILDING = "metadataBuilding.json",
60
+ OVERLAY_BUILDING = "overlayBuilding.png"
59
61
  }
60
62
  export declare enum FileName_Extra {
61
63
  LOG = "optiwize.log`"
@@ -60,6 +60,8 @@ var FileType;
60
60
  FileType["CONSENT6"] = "consent6.txt";
61
61
  FileType["METADATA"] = "metadata.json";
62
62
  FileType["OVERLAY"] = "overlay.png";
63
+ FileType["METADATA_BUILDING"] = "metadataBuilding.json";
64
+ FileType["OVERLAY_BUILDING"] = "overlayBuilding.png";
63
65
  })(FileType || (exports.FileType = FileType = {}));
64
66
  var FileName_Extra;
65
67
  (function (FileName_Extra) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.8.2",
3
+ "version": "1.10.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {