@likewatt/models 1.23.0 → 1.24.1

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.
@@ -182,6 +182,7 @@ export declare class ScenarioType extends Scenario {
182
182
  user: string;
183
183
  principalUser?: string;
184
184
  isACCScenario?: boolean;
185
+ scenarioOption?: string;
185
186
  siteId: string;
186
187
  }
187
188
  export type ScenarioTypeDocument = ScenarioType & Document;
@@ -618,6 +618,13 @@ __decorate([
618
618
  (0, class_validator_1.IsBoolean)(),
619
619
  __metadata("design:type", Boolean)
620
620
  ], ScenarioType.prototype, "isACCScenario", void 0);
621
+ __decorate([
622
+ (0, swagger_1.ApiPropertyOptional)(),
623
+ (0, mongoose_1.Prop)({ type: String, required: false }),
624
+ (0, class_validator_1.IsOptional)(),
625
+ (0, class_validator_1.IsString)(),
626
+ __metadata("design:type", String)
627
+ ], ScenarioType.prototype, "scenarioOption", void 0);
621
628
  __decorate([
622
629
  (0, swagger_1.ApiPropertyOptional)({ example: 'site_12345', nullable: true }),
623
630
  (0, mongoose_1.Prop)({ required: false, type: String, default: null, nullable: true }),
@@ -48,6 +48,7 @@ export declare class ScenarioDefaultValue {
48
48
  description?: string;
49
49
  isActive?: boolean;
50
50
  isOptimized?: boolean;
51
+ scenarioOption?: string;
51
52
  createdBy?: Date;
52
53
  updatedAt?: Date;
53
54
  }
@@ -216,6 +216,13 @@ __decorate([
216
216
  (0, class_validator_1.IsBoolean)(),
217
217
  __metadata("design:type", Boolean)
218
218
  ], ScenarioDefaultValue.prototype, "isOptimized", void 0);
219
+ __decorate([
220
+ (0, swagger_1.ApiPropertyOptional)(),
221
+ (0, mongoose_1.Prop)({ type: String, required: false }),
222
+ (0, class_validator_1.IsOptional)(),
223
+ (0, class_validator_1.IsString)(),
224
+ __metadata("design:type", String)
225
+ ], ScenarioDefaultValue.prototype, "scenarioOption", void 0);
219
226
  __decorate([
220
227
  (0, swagger_1.ApiPropertyOptional)(),
221
228
  (0, mongoose_1.Prop)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.23.0",
3
+ "version": "1.24.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {