@likewatt/models 1.6.0 → 1.6.1

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.
@@ -165,7 +165,7 @@ export declare class ScenarioType extends Scenario {
165
165
  principalUser?: string;
166
166
  isACCScenario?: boolean;
167
167
  siteId: string;
168
- comments?: Comments[];
168
+ comments?: Comments;
169
169
  }
170
170
  export type ScenarioTypeDocument = ScenarioType & Document;
171
171
  export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
@@ -570,11 +570,11 @@ __decorate([
570
570
  __metadata("design:type", String)
571
571
  ], ScenarioType.prototype, "siteId", void 0);
572
572
  __decorate([
573
- (0, swagger_1.ApiPropertyOptional)({ type: [comments_1.Comments] }),
573
+ (0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
574
574
  (0, mongoose_1.Prop)({ type: [comments_1.CommentsSchema], required: false }),
575
575
  (0, class_validator_1.IsOptional)(),
576
576
  (0, class_validator_1.IsArray)(),
577
- __metadata("design:type", Array)
577
+ __metadata("design:type", comments_1.Comments)
578
578
  ], ScenarioType.prototype, "comments", void 0);
579
579
  exports.ScenarioType = ScenarioType = __decorate([
580
580
  (0, mongoose_1.Schema)()
@@ -93,7 +93,7 @@ export declare class Site {
93
93
  tempoPricing: boolean;
94
94
  timezone: number;
95
95
  TMYstatus?: number;
96
- comments?: Comments[];
96
+ comments?: Comments;
97
97
  }
98
98
  export type SiteDocument = Site & Document;
99
99
  export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any, {}> & Site & Required<{
package/dist/core/Site.js CHANGED
@@ -541,11 +541,11 @@ __decorate([
541
541
  __metadata("design:type", Number)
542
542
  ], Site.prototype, "TMYstatus", void 0);
543
543
  __decorate([
544
- (0, swagger_1.ApiPropertyOptional)({ type: [comments_1.Comments] }),
544
+ (0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
545
545
  (0, mongoose_1.Prop)({ type: [comments_1.CommentsSchema], required: false }),
546
546
  (0, class_validator_1.IsOptional)(),
547
547
  (0, class_validator_1.IsArray)(),
548
- __metadata("design:type", Array)
548
+ __metadata("design:type", comments_1.Comments)
549
549
  ], Site.prototype, "comments", void 0);
550
550
  exports.Site = Site = __decorate([
551
551
  (0, mongoose_1.Schema)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {