@likewatt/models 1.0.92 → 1.0.94
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 +9 -2
- package/package.json +1 -1
package/dist/core/Scenario.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export declare class Scenario {
|
|
|
144
144
|
progress?: number;
|
|
145
145
|
projectLifespan?: number;
|
|
146
146
|
sellingPriceInflation?: number;
|
|
147
|
-
siteId?: string;
|
|
147
|
+
siteId?: string | null;
|
|
148
148
|
technologies?: Technology[];
|
|
149
149
|
version?: number;
|
|
150
150
|
_createdAt: Date;
|
|
@@ -163,6 +163,7 @@ export declare class ScenarioType extends Scenario {
|
|
|
163
163
|
user: string;
|
|
164
164
|
principalUser?: string;
|
|
165
165
|
isACCScenario?: boolean;
|
|
166
|
+
siteId: string | null;
|
|
166
167
|
}
|
|
167
168
|
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
168
169
|
export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
|
package/dist/core/Scenario.js
CHANGED
|
@@ -493,9 +493,9 @@ __decorate([
|
|
|
493
493
|
], Scenario.prototype, "sellingPriceInflation", void 0);
|
|
494
494
|
__decorate([
|
|
495
495
|
(0, swagger_1.ApiProperty)({ example: 'site_12345' }),
|
|
496
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
496
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
497
497
|
(0, class_validator_1.IsString)(),
|
|
498
|
-
__metadata("design:type",
|
|
498
|
+
__metadata("design:type", Object)
|
|
499
499
|
], Scenario.prototype, "siteId", void 0);
|
|
500
500
|
__decorate([
|
|
501
501
|
(0, swagger_1.ApiProperty)({ type: [Technology] }),
|
|
@@ -546,6 +546,13 @@ __decorate([
|
|
|
546
546
|
(0, class_validator_1.IsBoolean)(),
|
|
547
547
|
__metadata("design:type", Boolean)
|
|
548
548
|
], ScenarioType.prototype, "isACCScenario", void 0);
|
|
549
|
+
__decorate([
|
|
550
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 'site_12345', nullable: true }),
|
|
551
|
+
(0, mongoose_1.Prop)({ required: false, type: String, default: null }),
|
|
552
|
+
(0, class_validator_1.IsOptional)(),
|
|
553
|
+
(0, class_validator_1.IsString)(),
|
|
554
|
+
__metadata("design:type", Object)
|
|
555
|
+
], ScenarioType.prototype, "siteId", void 0);
|
|
549
556
|
exports.ScenarioType = ScenarioType = __decorate([
|
|
550
557
|
(0, mongoose_1.Schema)()
|
|
551
558
|
], ScenarioType);
|