@likewatt/models 1.4.5 → 1.5.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/core/Site.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
|
9
9
|
import { DataSourceHistory } from './internal/data-source-history';
|
|
10
10
|
import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
11
11
|
import { Tarif } from './internal/tarif';
|
|
12
|
+
import { BuildingDataStatus } from './enums/BuildingDataStatus';
|
|
12
13
|
export declare class Site {
|
|
13
14
|
readonly _id: string;
|
|
14
15
|
country: string;
|
|
@@ -52,6 +53,7 @@ export declare class Site {
|
|
|
52
53
|
_step3At?: Date | string;
|
|
53
54
|
analysisYear?: number;
|
|
54
55
|
buildingData?: BuildingData | null;
|
|
56
|
+
buildingDataStatus: BuildingDataStatus | null;
|
|
55
57
|
autoCO2: boolean;
|
|
56
58
|
co2rate?: number | null;
|
|
57
59
|
connectingPower: number;
|
package/dist/core/Site.js
CHANGED
|
@@ -24,6 +24,7 @@ const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
|
24
24
|
const data_source_history_1 = require("./internal/data-source-history");
|
|
25
25
|
const energy_price_tempo_model_1 = require("./internal/energy-price-tempo.model");
|
|
26
26
|
const tarif_1 = require("./internal/tarif");
|
|
27
|
+
const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
|
|
27
28
|
let Site = class Site {
|
|
28
29
|
};
|
|
29
30
|
exports.Site = Site;
|
|
@@ -291,6 +292,15 @@ __decorate([
|
|
|
291
292
|
(0, class_validator_1.IsOptional)(),
|
|
292
293
|
__metadata("design:type", Object)
|
|
293
294
|
], Site.prototype, "buildingData", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: BuildingDataStatus_1.BuildingDataStatus }),
|
|
297
|
+
(0, mongoose_1.Prop)({
|
|
298
|
+
enum: BuildingDataStatus_1.BuildingDataStatus,
|
|
299
|
+
required: true,
|
|
300
|
+
default: BuildingDataStatus_1.BuildingDataStatus.OK,
|
|
301
|
+
}),
|
|
302
|
+
__metadata("design:type", Object)
|
|
303
|
+
], Site.prototype, "buildingDataStatus", void 0);
|
|
294
304
|
__decorate([
|
|
295
305
|
(0, swagger_1.ApiProperty)(),
|
|
296
306
|
(0, mongoose_1.Prop)({ type: Boolean, required: true, default: false }),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingDataStatus = void 0;
|
|
4
|
+
var BuildingDataStatus;
|
|
5
|
+
(function (BuildingDataStatus) {
|
|
6
|
+
BuildingDataStatus["OK"] = "OK";
|
|
7
|
+
BuildingDataStatus["NOT_COVERED"] = "NOT_COVERED";
|
|
8
|
+
})(BuildingDataStatus || (exports.BuildingDataStatus = BuildingDataStatus = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './core/TypeORM/UsersFilters';
|
|
|
23
23
|
export * from './core/TypeORM/WebhookOutput';
|
|
24
24
|
export { EnedisReportAcquisitionMethod, EnedisReportOperationType, } from './core/TypeORM/EnedisReportHistory';
|
|
25
25
|
export * from './core/internal/enums';
|
|
26
|
+
export * from './core/enums/BuildingDataStatus';
|
|
26
27
|
export * from './core/enums/FileType';
|
|
27
28
|
export * from './core/enums/ImageryQuality';
|
|
28
29
|
export * from './core/internal/battery-params';
|
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "EnedisReportAcquisitionMethod", { enumerable: tr
|
|
|
46
46
|
Object.defineProperty(exports, "EnedisReportOperationType", { enumerable: true, get: function () { return EnedisReportHistory_1.EnedisReportOperationType; } });
|
|
47
47
|
// Enums
|
|
48
48
|
__exportStar(require("./core/internal/enums"), exports);
|
|
49
|
+
__exportStar(require("./core/enums/BuildingDataStatus"), exports);
|
|
49
50
|
__exportStar(require("./core/enums/FileType"), exports);
|
|
50
51
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
51
52
|
// Sub-models
|