@likewatt/models 1.0.93 → 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.
@@ -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 | null;
166
+ siteId: string | null;
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<{
@@ -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: true }),
496
+ (0, mongoose_1.Prop)({ type: String, required: true }),
497
497
  (0, class_validator_1.IsString)(),
498
498
  __metadata("design:type", Object)
499
499
  ], Scenario.prototype, "siteId", void 0);
@@ -547,7 +547,7 @@ __decorate([
547
547
  __metadata("design:type", Boolean)
548
548
  ], ScenarioType.prototype, "isACCScenario", void 0);
549
549
  __decorate([
550
- (0, swagger_1.ApiPropertyOptional)({ example: null, nullable: true }),
550
+ (0, swagger_1.ApiPropertyOptional)({ example: 'site_12345', nullable: true }),
551
551
  (0, mongoose_1.Prop)({ required: false, type: String, default: null }),
552
552
  (0, class_validator_1.IsOptional)(),
553
553
  (0, class_validator_1.IsString)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {