@likewatt/models 1.0.74 → 1.0.76

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.
@@ -134,6 +134,7 @@ export declare class Scenario {
134
134
  configSite?: Record<string, ConfigSite>;
135
135
  error?: boolean;
136
136
  isDefaultScenario?: boolean;
137
+ isOptimized?: boolean;
137
138
  leasingLifespan?: number;
138
139
  message?: string;
139
140
  name?: string;
@@ -424,6 +424,13 @@ __decorate([
424
424
  (0, class_validator_1.IsBoolean)(),
425
425
  __metadata("design:type", Boolean)
426
426
  ], Scenario.prototype, "isDefaultScenario", void 0);
427
+ __decorate([
428
+ (0, swagger_1.ApiPropertyOptional)({ example: false }),
429
+ (0, mongoose_1.Prop)({ default: false }),
430
+ (0, class_validator_1.IsOptional)(),
431
+ (0, class_validator_1.IsBoolean)(),
432
+ __metadata("design:type", Boolean)
433
+ ], Scenario.prototype, "isOptimized", void 0);
427
434
  __decorate([
428
435
  (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
429
436
  (0, mongoose_1.Prop)(),
@@ -46,6 +46,7 @@ export declare class ScenarioDefaultValue {
46
46
  name?: string;
47
47
  description?: string;
48
48
  isActive?: boolean;
49
+ isOptimized?: boolean;
49
50
  createdBy?: Date;
50
51
  updatedAt?: Date;
51
52
  }
@@ -198,6 +198,13 @@ __decorate([
198
198
  (0, class_validator_1.IsBoolean)(),
199
199
  __metadata("design:type", Boolean)
200
200
  ], ScenarioDefaultValue.prototype, "isActive", void 0);
201
+ __decorate([
202
+ (0, swagger_1.ApiPropertyOptional)({ example: false }),
203
+ (0, mongoose_1.Prop)({ default: false }),
204
+ (0, class_validator_1.IsOptional)(),
205
+ (0, class_validator_1.IsBoolean)(),
206
+ __metadata("design:type", Boolean)
207
+ ], ScenarioDefaultValue.prototype, "isOptimized", void 0);
201
208
  __decorate([
202
209
  (0, swagger_1.ApiPropertyOptional)(),
203
210
  (0, mongoose_1.Prop)(),
@@ -54,6 +54,7 @@ export declare class User {
54
54
  type?: string;
55
55
  domain?: string;
56
56
  license?: string;
57
+ licenseId?: string;
57
58
  language?: string;
58
59
  allowedNumberOfSites?: number;
59
60
  logo?: string;
package/dist/core/User.js CHANGED
@@ -302,6 +302,16 @@ __decorate([
302
302
  (0, class_validator_1.IsString)(),
303
303
  __metadata("design:type", String)
304
304
  ], User.prototype, "license", void 0);
305
+ __decorate([
306
+ (0, swagger_1.ApiProperty)({
307
+ description: 'Identifiant de la licence',
308
+ example: 'Standard',
309
+ }),
310
+ (0, mongoose_2.Prop)({ type: String, required: false }),
311
+ (0, class_validator_1.IsOptional)(),
312
+ (0, class_validator_1.IsString)(),
313
+ __metadata("design:type", String)
314
+ ], User.prototype, "licenseId", void 0);
305
315
  __decorate([
306
316
  (0, swagger_1.ApiProperty)({
307
317
  description: 'Langue',
@@ -61,6 +61,7 @@ export interface Scenario {
61
61
  configSite?: Record<string, ConfigSite>;
62
62
  error?: boolean;
63
63
  isDefaultScenario?: boolean;
64
+ isOptimized?: boolean;
64
65
  leasingLifespan?: number;
65
66
  message?: string;
66
67
  name?: string;
@@ -45,6 +45,7 @@ export interface ScenarioDefaultValue {
45
45
  name?: string;
46
46
  description?: string;
47
47
  isActive?: boolean;
48
+ isOptimized?: boolean;
48
49
  createdBy?: Date | string;
49
50
  updatedAt?: Date | string;
50
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {