@likewatt/models 1.0.73 → 1.0.75

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.
@@ -1,4 +1,4 @@
1
- import { Types } from 'mongoose';
1
+ import { Document, Types } from 'mongoose';
2
2
  /**
3
3
  * Représente un utilisateur dans le système.
4
4
  * - @Schema/timestamps : gère createdAt et updatedAt automatiques
@@ -19,11 +19,11 @@ export declare class License {
19
19
  userId?: string;
20
20
  }
21
21
  export type LicenseDocument = License & Document;
22
- export declare const LicenseSchema: import("mongoose").Schema<License, import("mongoose").Model<License, any, any, any, import("mongoose").Document<unknown, any, License, any, {}> & License & Required<{
22
+ export declare const LicenseSchema: import("mongoose").Schema<License, import("mongoose").Model<License, any, any, any, Document<unknown, any, License, any, {}> & License & Required<{
23
23
  _id: Types.ObjectId;
24
24
  }> & {
25
25
  __v: number;
26
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, License, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<License>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<License> & Required<{
26
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, License, Document<unknown, {}, import("mongoose").FlatRecord<License>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<License> & Required<{
27
27
  _id: Types.ObjectId;
28
28
  }> & {
29
29
  __v: number;
@@ -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)(),
@@ -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.73",
3
+ "version": "1.0.75",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {