@likewatt/models 1.0.94 → 1.0.96
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 -2
- package/dist/core/Scenario.js +4 -4
- 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;
|
|
148
148
|
technologies?: Technology[];
|
|
149
149
|
version?: number;
|
|
150
150
|
_createdAt: Date;
|
|
@@ -163,7 +163,7 @@ export declare class ScenarioType extends Scenario {
|
|
|
163
163
|
user: string;
|
|
164
164
|
principalUser?: string;
|
|
165
165
|
isACCScenario?: boolean;
|
|
166
|
-
siteId: string
|
|
166
|
+
siteId: string;
|
|
167
167
|
}
|
|
168
168
|
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
169
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)({
|
|
496
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
497
497
|
(0, class_validator_1.IsString)(),
|
|
498
|
-
__metadata("design:type",
|
|
498
|
+
__metadata("design:type", String)
|
|
499
499
|
], Scenario.prototype, "siteId", void 0);
|
|
500
500
|
__decorate([
|
|
501
501
|
(0, swagger_1.ApiProperty)({ type: [Technology] }),
|
|
@@ -548,10 +548,10 @@ __decorate([
|
|
|
548
548
|
], ScenarioType.prototype, "isACCScenario", void 0);
|
|
549
549
|
__decorate([
|
|
550
550
|
(0, swagger_1.ApiPropertyOptional)({ example: 'site_12345', nullable: true }),
|
|
551
|
-
(0, mongoose_1.Prop)({ required: false, type: String, default: null }),
|
|
551
|
+
(0, mongoose_1.Prop)({ required: false, type: String, default: null, nullable: true }),
|
|
552
552
|
(0, class_validator_1.IsOptional)(),
|
|
553
553
|
(0, class_validator_1.IsString)(),
|
|
554
|
-
__metadata("design:type",
|
|
554
|
+
__metadata("design:type", String)
|
|
555
555
|
], ScenarioType.prototype, "siteId", void 0);
|
|
556
556
|
exports.ScenarioType = ScenarioType = __decorate([
|
|
557
557
|
(0, mongoose_1.Schema)()
|