@likewatt/models 1.0.95 → 1.0.97

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;
148
148
  technologies?: Technology[];
149
149
  version?: number;
150
150
  _createdAt: Date;
@@ -493,7 +493,7 @@ __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: false, type: String, default: null, nullable: true }),
496
+ (0, mongoose_1.Prop)({ required: true }),
497
497
  (0, class_validator_1.IsString)(),
498
498
  __metadata("design:type", String)
499
499
  ], Scenario.prototype, "siteId", void 0);
@@ -533,14 +533,14 @@ __decorate([
533
533
  __metadata("design:type", String)
534
534
  ], ScenarioType.prototype, "user", void 0);
535
535
  __decorate([
536
- (0, swagger_1.ApiProperty)(),
537
- (0, mongoose_1.Prop)({ required: true }),
536
+ (0, swagger_1.ApiPropertyOptional)(),
537
+ (0, mongoose_1.Prop)({ required: false }),
538
538
  (0, class_validator_1.IsOptional)(),
539
539
  (0, class_validator_1.IsString)(),
540
540
  __metadata("design:type", String)
541
541
  ], ScenarioType.prototype, "principalUser", void 0);
542
542
  __decorate([
543
- (0, swagger_1.ApiProperty)(),
543
+ (0, swagger_1.ApiPropertyOptional)({ type: Boolean, default: false }),
544
544
  (0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
545
545
  (0, class_validator_1.IsOptional)(),
546
546
  (0, class_validator_1.IsBoolean)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {