@likewatt/models 1.46.0 → 1.47.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.d.ts
CHANGED
package/dist/core/Scenario.js
CHANGED
|
@@ -505,6 +505,13 @@ __decorate([
|
|
|
505
505
|
(0, class_validator_1.IsString)(),
|
|
506
506
|
__metadata("design:type", String)
|
|
507
507
|
], Scenario.prototype, "message", void 0);
|
|
508
|
+
__decorate([
|
|
509
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 'handled', description: 'Type d\'erreur d\'optimisation (infeasible, handled, timeout, unknown)' }),
|
|
510
|
+
(0, mongoose_1.Prop)(),
|
|
511
|
+
(0, class_validator_1.IsOptional)(),
|
|
512
|
+
(0, class_validator_1.IsString)(),
|
|
513
|
+
__metadata("design:type", String)
|
|
514
|
+
], Scenario.prototype, "errorType", void 0);
|
|
508
515
|
__decorate([
|
|
509
516
|
(0, swagger_1.ApiProperty)({ example: 'Scenario A - Hybrid PV/Wind' }),
|
|
510
517
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = void 0;
|
|
3
|
+
exports.OptimizationErrorType = exports.Reference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = exports.Profiles = exports.SiteType = void 0;
|
|
4
4
|
var SiteType;
|
|
5
5
|
(function (SiteType) {
|
|
6
6
|
SiteType["CONSUMER"] = "CONSUMER";
|
|
@@ -40,3 +40,10 @@ var Reference;
|
|
|
40
40
|
(function (Reference) {
|
|
41
41
|
Reference["REFERENCE"] = "REFERENCE";
|
|
42
42
|
})(Reference || (exports.Reference = Reference = {}));
|
|
43
|
+
var OptimizationErrorType;
|
|
44
|
+
(function (OptimizationErrorType) {
|
|
45
|
+
OptimizationErrorType["INFEASIBLE"] = "infeasible";
|
|
46
|
+
OptimizationErrorType["HANDLED"] = "handled";
|
|
47
|
+
OptimizationErrorType["TIMEOUT"] = "timeout";
|
|
48
|
+
OptimizationErrorType["UNKNOWN"] = "unknown";
|
|
49
|
+
})(OptimizationErrorType || (exports.OptimizationErrorType = OptimizationErrorType = {}));
|