@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.
@@ -155,6 +155,7 @@ export declare class Scenario {
155
155
  isOptimized?: boolean;
156
156
  leasingLifespan?: number;
157
157
  message?: string;
158
+ errorType?: string;
158
159
  name?: string;
159
160
  objectives?: Objective[];
160
161
  optimizationYear?: number;
@@ -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 }),
@@ -31,3 +31,9 @@ export declare enum UseCase {
31
31
  export declare enum Reference {
32
32
  REFERENCE = "REFERENCE"
33
33
  }
34
+ export declare enum OptimizationErrorType {
35
+ INFEASIBLE = "infeasible",
36
+ HANDLED = "handled",
37
+ TIMEOUT = "timeout",
38
+ UNKNOWN = "unknown"
39
+ }
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {