@likewatt/models 1.5.1 → 1.6.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/core/Scenario.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Document, Schema as MSchema } from 'mongoose';
|
|
2
|
+
import { Comments } from './internal/comments';
|
|
2
3
|
export declare class Objective {
|
|
3
4
|
id: number;
|
|
4
5
|
name: string;
|
|
@@ -164,6 +165,7 @@ export declare class ScenarioType extends Scenario {
|
|
|
164
165
|
principalUser?: string;
|
|
165
166
|
isACCScenario?: boolean;
|
|
166
167
|
siteId: string;
|
|
168
|
+
comments?: Comments;
|
|
167
169
|
}
|
|
168
170
|
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
169
171
|
export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
|
package/dist/core/Scenario.js
CHANGED
|
@@ -15,6 +15,7 @@ const mongoose_2 = require("mongoose");
|
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
17
|
const class_validator_1 = require("class-validator");
|
|
18
|
+
const comments_1 = require("./internal/comments");
|
|
18
19
|
let Objective = class Objective {
|
|
19
20
|
};
|
|
20
21
|
exports.Objective = Objective;
|
|
@@ -568,6 +569,13 @@ __decorate([
|
|
|
568
569
|
(0, class_validator_1.IsString)(),
|
|
569
570
|
__metadata("design:type", String)
|
|
570
571
|
], ScenarioType.prototype, "siteId", void 0);
|
|
572
|
+
__decorate([
|
|
573
|
+
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
574
|
+
(0, mongoose_1.Prop)({ type: [comments_1.CommentsSchema], required: false }),
|
|
575
|
+
(0, class_validator_1.IsOptional)(),
|
|
576
|
+
(0, class_validator_1.IsArray)(),
|
|
577
|
+
__metadata("design:type", comments_1.Comments)
|
|
578
|
+
], ScenarioType.prototype, "comments", void 0);
|
|
571
579
|
exports.ScenarioType = ScenarioType = __decorate([
|
|
572
580
|
(0, mongoose_1.Schema)()
|
|
573
581
|
], ScenarioType);
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ 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
12
|
import { BuildingDataStatus } from './enums/BuildingDataStatus';
|
|
13
|
+
import { Comments } from './internal/comments';
|
|
13
14
|
export declare class Site {
|
|
14
15
|
readonly _id: string;
|
|
15
16
|
country: string;
|
|
@@ -92,6 +93,7 @@ export declare class Site {
|
|
|
92
93
|
tempoPricing: boolean;
|
|
93
94
|
timezone: number;
|
|
94
95
|
TMYstatus?: number;
|
|
96
|
+
comments?: Comments;
|
|
95
97
|
}
|
|
96
98
|
export type SiteDocument = Site & Document;
|
|
97
99
|
export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any, {}> & Site & Required<{
|
package/dist/core/Site.js
CHANGED
|
@@ -25,6 +25,7 @@ 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
27
|
const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
|
|
28
|
+
const comments_1 = require("./internal/comments");
|
|
28
29
|
let Site = class Site {
|
|
29
30
|
};
|
|
30
31
|
exports.Site = Site;
|
|
@@ -539,6 +540,13 @@ __decorate([
|
|
|
539
540
|
(0, class_validator_1.IsNumber)(),
|
|
540
541
|
__metadata("design:type", Number)
|
|
541
542
|
], Site.prototype, "TMYstatus", void 0);
|
|
543
|
+
__decorate([
|
|
544
|
+
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
545
|
+
(0, mongoose_1.Prop)({ type: [comments_1.CommentsSchema], required: false }),
|
|
546
|
+
(0, class_validator_1.IsOptional)(),
|
|
547
|
+
(0, class_validator_1.IsArray)(),
|
|
548
|
+
__metadata("design:type", comments_1.Comments)
|
|
549
|
+
], Site.prototype, "comments", void 0);
|
|
542
550
|
exports.Site = Site = __decorate([
|
|
543
551
|
(0, mongoose_1.Schema)({
|
|
544
552
|
id: false,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class Comments {
|
|
2
|
+
CostPerMonth: string;
|
|
3
|
+
DailyProfile: string;
|
|
4
|
+
EnergyBalance: string;
|
|
5
|
+
LineBalanceSheet: string;
|
|
6
|
+
LoadCurve: string;
|
|
7
|
+
ScenarioTable: string;
|
|
8
|
+
TotalCost: string;
|
|
9
|
+
TotalEnergy: string;
|
|
10
|
+
GridEnergeticMix: string;
|
|
11
|
+
LineBalanceSheetFromPopUp: string;
|
|
12
|
+
Opex: string;
|
|
13
|
+
PV_EnergeticMix: string;
|
|
14
|
+
TechSummary: string;
|
|
15
|
+
VanFromPopUp: string;
|
|
16
|
+
Van: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const CommentsSchema: import("mongoose").Schema<Comments, import("mongoose").Model<Comments, any, any, any, import("mongoose").Document<unknown, any, Comments, any, {}> & Comments & {
|
|
19
|
+
_id: import("mongoose").Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Comments, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Comments>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Comments> & {
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
} & {
|
|
25
|
+
__v: number;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.CommentsSchema = exports.Comments = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let Comments = class Comments {
|
|
16
|
+
};
|
|
17
|
+
exports.Comments = Comments;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Comments.prototype, "CostPerMonth", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Comments.prototype, "DailyProfile", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Comments.prototype, "EnergyBalance", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Comments.prototype, "LineBalanceSheet", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Comments.prototype, "LoadCurve", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Comments.prototype, "ScenarioTable", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Comments.prototype, "TotalCost", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Comments.prototype, "TotalEnergy", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Comments.prototype, "GridEnergeticMix", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Comments.prototype, "LineBalanceSheetFromPopUp", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Comments.prototype, "Opex", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Comments.prototype, "PV_EnergeticMix", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Comments.prototype, "TechSummary", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Comments.prototype, "VanFromPopUp", void 0);
|
|
88
|
+
exports.Comments = Comments = __decorate([
|
|
89
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
90
|
+
], Comments);
|
|
91
|
+
exports.CommentsSchema = mongoose_1.SchemaFactory.createForClass(Comments);
|