@likewatt/models 1.0.92 → 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.
@@ -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<{
@@ -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", String)
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: 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);
549
556
  exports.ScenarioType = ScenarioType = __decorate([
550
557
  (0, mongoose_1.Schema)()
551
558
  ], ScenarioType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {