@likewatt/models 1.0.91 → 1.0.93
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
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;
|
|
@@ -159,3 +159,19 @@ export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<
|
|
|
159
159
|
}> & {
|
|
160
160
|
__v: number;
|
|
161
161
|
}>;
|
|
162
|
+
export declare class ScenarioType extends Scenario {
|
|
163
|
+
user: string;
|
|
164
|
+
principalUser?: string;
|
|
165
|
+
isACCScenario?: boolean;
|
|
166
|
+
siteId?: string | null;
|
|
167
|
+
}
|
|
168
|
+
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
169
|
+
export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
|
|
170
|
+
_id: Types.ObjectId;
|
|
171
|
+
}> & {
|
|
172
|
+
__v: number;
|
|
173
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioType, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioType>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ScenarioType> & Required<{
|
|
174
|
+
_id: Types.ObjectId;
|
|
175
|
+
}> & {
|
|
176
|
+
__v: number;
|
|
177
|
+
}>;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.MonthSchema = exports.Month = exports.ObjectiveSchema = exports.Objective = void 0;
|
|
12
|
+
exports.ScenarioTypeSchema = exports.ScenarioType = exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.MonthSchema = exports.Month = exports.ObjectiveSchema = exports.Objective = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
@@ -495,7 +495,7 @@ __decorate([
|
|
|
495
495
|
(0, swagger_1.ApiProperty)({ example: 'site_12345' }),
|
|
496
496
|
(0, mongoose_1.Prop)({ 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] }),
|
|
@@ -523,3 +523,37 @@ exports.Scenario = Scenario = __decorate([
|
|
|
523
523
|
})
|
|
524
524
|
], Scenario);
|
|
525
525
|
exports.ScenarioSchema = mongoose_1.SchemaFactory.createForClass(Scenario);
|
|
526
|
+
let ScenarioType = class ScenarioType extends Scenario {
|
|
527
|
+
};
|
|
528
|
+
exports.ScenarioType = ScenarioType;
|
|
529
|
+
__decorate([
|
|
530
|
+
(0, swagger_1.ApiProperty)(),
|
|
531
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
532
|
+
(0, class_validator_1.IsString)(),
|
|
533
|
+
__metadata("design:type", String)
|
|
534
|
+
], ScenarioType.prototype, "user", void 0);
|
|
535
|
+
__decorate([
|
|
536
|
+
(0, swagger_1.ApiProperty)(),
|
|
537
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
538
|
+
(0, class_validator_1.IsOptional)(),
|
|
539
|
+
(0, class_validator_1.IsString)(),
|
|
540
|
+
__metadata("design:type", String)
|
|
541
|
+
], ScenarioType.prototype, "principalUser", void 0);
|
|
542
|
+
__decorate([
|
|
543
|
+
(0, swagger_1.ApiProperty)(),
|
|
544
|
+
(0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
|
|
545
|
+
(0, class_validator_1.IsOptional)(),
|
|
546
|
+
(0, class_validator_1.IsBoolean)(),
|
|
547
|
+
__metadata("design:type", Boolean)
|
|
548
|
+
], ScenarioType.prototype, "isACCScenario", void 0);
|
|
549
|
+
__decorate([
|
|
550
|
+
(0, swagger_1.ApiPropertyOptional)({ example: null, 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);
|
|
556
|
+
exports.ScenarioType = ScenarioType = __decorate([
|
|
557
|
+
(0, mongoose_1.Schema)()
|
|
558
|
+
], ScenarioType);
|
|
559
|
+
exports.ScenarioTypeSchema = mongoose_1.SchemaFactory.createForClass(ScenarioType);
|