@likewatt/models 1.52.2 → 1.53.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.
@@ -167,6 +167,8 @@ export declare class Scenario {
167
167
  technologies?: Technology[];
168
168
  pvs?: Pv[];
169
169
  version?: number;
170
+ isFullSellOut?: boolean;
171
+ isACCScenario?: boolean;
170
172
  createdAt?: Date | string;
171
173
  updatedAt?: Date | string;
172
174
  }
@@ -183,7 +185,6 @@ export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<
183
185
  export declare class ScenarioType extends Scenario {
184
186
  user: string;
185
187
  principalUser?: string;
186
- isACCScenario?: boolean;
187
188
  scenarioOption?: string;
188
189
  siteId: string;
189
190
  isLeads?: boolean;
@@ -63,6 +63,7 @@ __decorate([
63
63
  ], Objective.prototype, "value2", void 0);
64
64
  exports.Objective = Objective = __decorate([
65
65
  (0, mongoose_1.Schema)({
66
+ _id: false,
66
67
  id: false,
67
68
  timestamps: true,
68
69
  toJSON: { virtuals: true, versionKey: false },
@@ -572,8 +573,9 @@ __decorate([
572
573
  __metadata("design:type", Array)
573
574
  ], Scenario.prototype, "technologies", void 0);
574
575
  __decorate([
575
- (0, swagger_1.ApiProperty)({ type: [Pv] }),
576
+ (0, swagger_1.ApiPropertyOptional)({ type: [Pv] }),
576
577
  (0, mongoose_1.Prop)({ type: [exports.PvSchema], required: true }),
578
+ (0, class_validator_1.IsOptional)(),
577
579
  (0, class_validator_1.IsArray)(),
578
580
  __metadata("design:type", Array)
579
581
  ], Scenario.prototype, "pvs", void 0);
@@ -584,6 +586,20 @@ __decorate([
584
586
  (0, class_validator_1.IsNumber)(),
585
587
  __metadata("design:type", Number)
586
588
  ], Scenario.prototype, "version", void 0);
589
+ __decorate([
590
+ (0, swagger_1.ApiPropertyOptional)(),
591
+ (0, mongoose_1.Prop)({ type: Boolean, required: false }),
592
+ (0, class_validator_1.IsOptional)(),
593
+ (0, class_validator_1.IsBoolean)(),
594
+ __metadata("design:type", Boolean)
595
+ ], Scenario.prototype, "isFullSellOut", void 0);
596
+ __decorate([
597
+ (0, swagger_1.ApiPropertyOptional)(),
598
+ (0, mongoose_1.Prop)({ type: Boolean, required: false, default: false }),
599
+ (0, class_validator_1.IsOptional)(),
600
+ (0, class_validator_1.IsBoolean)(),
601
+ __metadata("design:type", Boolean)
602
+ ], Scenario.prototype, "isACCScenario", void 0);
587
603
  __decorate([
588
604
  (0, swagger_1.ApiPropertyOptional)({ example: '2025-04-24T14:05:00.000Z' }),
589
605
  (0, class_validator_1.IsOptional)(),
@@ -626,13 +642,6 @@ __decorate([
626
642
  (0, class_validator_1.IsString)(),
627
643
  __metadata("design:type", String)
628
644
  ], ScenarioType.prototype, "principalUser", void 0);
629
- __decorate([
630
- (0, swagger_1.ApiPropertyOptional)({ type: Boolean, default: false }),
631
- (0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
632
- (0, class_validator_1.IsOptional)(),
633
- (0, class_validator_1.IsBoolean)(),
634
- __metadata("design:type", Boolean)
635
- ], ScenarioType.prototype, "isACCScenario", void 0);
636
645
  __decorate([
637
646
  (0, swagger_1.ApiPropertyOptional)(),
638
647
  (0, mongoose_1.Prop)({ type: String, required: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.52.2",
3
+ "version": "1.53.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {