@likewatt/models 1.70.1 → 1.71.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/Scenario.js +7 -2
- package/dist/core/Site.js +2 -1
- package/package.json +1 -1
package/dist/core/Scenario.js
CHANGED
|
@@ -16,6 +16,7 @@ const uuid_1 = require("uuid");
|
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
17
|
const class_validator_1 = require("class-validator");
|
|
18
18
|
const comments_1 = require("./internal/comments");
|
|
19
|
+
const class_transformer_1 = require("class-transformer");
|
|
19
20
|
let Objective = class Objective {
|
|
20
21
|
};
|
|
21
22
|
exports.Objective = Objective;
|
|
@@ -437,7 +438,8 @@ __decorate([
|
|
|
437
438
|
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
438
439
|
(0, mongoose_1.Prop)({ type: comments_1.CommentsSchema, required: false }),
|
|
439
440
|
(0, class_validator_1.IsOptional)(),
|
|
440
|
-
(0, class_validator_1.
|
|
441
|
+
(0, class_validator_1.ValidateNested)(),
|
|
442
|
+
(0, class_transformer_1.Type)(() => comments_1.Comments),
|
|
441
443
|
__metadata("design:type", comments_1.Comments)
|
|
442
444
|
], Scenario.prototype, "comments", void 0);
|
|
443
445
|
__decorate([
|
|
@@ -514,7 +516,10 @@ __decorate([
|
|
|
514
516
|
__metadata("design:type", String)
|
|
515
517
|
], Scenario.prototype, "message", void 0);
|
|
516
518
|
__decorate([
|
|
517
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
519
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
520
|
+
example: 'handled',
|
|
521
|
+
description: "Type d'erreur d'optimisation (infeasible, handled, timeout, unknown)",
|
|
522
|
+
}),
|
|
518
523
|
(0, mongoose_1.Prop)(),
|
|
519
524
|
(0, class_validator_1.IsOptional)(),
|
|
520
525
|
(0, class_validator_1.IsString)(),
|
package/dist/core/Site.js
CHANGED
|
@@ -609,7 +609,8 @@ __decorate([
|
|
|
609
609
|
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
610
610
|
(0, mongoose_1.Prop)({ type: comments_1.CommentsSchema, required: false }),
|
|
611
611
|
(0, class_validator_1.IsOptional)(),
|
|
612
|
-
(0, class_validator_1.
|
|
612
|
+
(0, class_validator_1.ValidateNested)(),
|
|
613
|
+
(0, class_transformer_1.Type)(() => comments_1.Comments),
|
|
613
614
|
__metadata("design:type", comments_1.Comments)
|
|
614
615
|
], Site.prototype, "comments", void 0);
|
|
615
616
|
__decorate([
|