@likewatt/models 1.52.2 → 1.54.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.
- package/dist/core/Scenario.d.ts +2 -1
- package/dist/core/Scenario.js +19 -8
- package/package.json +1 -1
package/dist/core/Scenario.d.ts
CHANGED
|
@@ -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;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -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 },
|
|
@@ -417,6 +418,8 @@ __decorate([
|
|
|
417
418
|
readOnly: true,
|
|
418
419
|
}),
|
|
419
420
|
(0, mongoose_1.Prop)({ type: String }),
|
|
421
|
+
(0, class_validator_1.IsOptional)(),
|
|
422
|
+
(0, class_validator_1.IsString)(),
|
|
420
423
|
__metadata("design:type", String)
|
|
421
424
|
], Scenario.prototype, "_id", void 0);
|
|
422
425
|
__decorate([
|
|
@@ -572,8 +575,9 @@ __decorate([
|
|
|
572
575
|
__metadata("design:type", Array)
|
|
573
576
|
], Scenario.prototype, "technologies", void 0);
|
|
574
577
|
__decorate([
|
|
575
|
-
(0, swagger_1.
|
|
578
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [Pv] }),
|
|
576
579
|
(0, mongoose_1.Prop)({ type: [exports.PvSchema], required: true }),
|
|
580
|
+
(0, class_validator_1.IsOptional)(),
|
|
577
581
|
(0, class_validator_1.IsArray)(),
|
|
578
582
|
__metadata("design:type", Array)
|
|
579
583
|
], Scenario.prototype, "pvs", void 0);
|
|
@@ -584,6 +588,20 @@ __decorate([
|
|
|
584
588
|
(0, class_validator_1.IsNumber)(),
|
|
585
589
|
__metadata("design:type", Number)
|
|
586
590
|
], Scenario.prototype, "version", void 0);
|
|
591
|
+
__decorate([
|
|
592
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
593
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false }),
|
|
594
|
+
(0, class_validator_1.IsOptional)(),
|
|
595
|
+
(0, class_validator_1.IsBoolean)(),
|
|
596
|
+
__metadata("design:type", Boolean)
|
|
597
|
+
], Scenario.prototype, "isFullSellOut", void 0);
|
|
598
|
+
__decorate([
|
|
599
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
600
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: false }),
|
|
601
|
+
(0, class_validator_1.IsOptional)(),
|
|
602
|
+
(0, class_validator_1.IsBoolean)(),
|
|
603
|
+
__metadata("design:type", Boolean)
|
|
604
|
+
], Scenario.prototype, "isACCScenario", void 0);
|
|
587
605
|
__decorate([
|
|
588
606
|
(0, swagger_1.ApiPropertyOptional)({ example: '2025-04-24T14:05:00.000Z' }),
|
|
589
607
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -626,13 +644,6 @@ __decorate([
|
|
|
626
644
|
(0, class_validator_1.IsString)(),
|
|
627
645
|
__metadata("design:type", String)
|
|
628
646
|
], 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
647
|
__decorate([
|
|
637
648
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
638
649
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|