@likewatt/models 1.10.5 → 1.11.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.
@@ -92,7 +92,7 @@ export declare const TechnologySchema: MSchema<Technology, import("mongoose").Mo
92
92
  export declare class Pv {
93
93
  id: string;
94
94
  name: string;
95
- index?: number;
95
+ counterId?: string;
96
96
  type?: number;
97
97
  settings: Record<string, unknown>;
98
98
  }
@@ -228,11 +228,12 @@ __decorate([
228
228
  __metadata("design:type", String)
229
229
  ], Pv.prototype, "name", void 0);
230
230
  __decorate([
231
- (0, swagger_1.ApiProperty)({ example: 0 }),
232
- (0, mongoose_1.Prop)({ required: false }),
233
- (0, class_validator_1.IsNumber)(),
234
- __metadata("design:type", Number)
235
- ], Pv.prototype, "index", void 0);
231
+ (0, swagger_1.ApiProperty)({ example: 'counter_12345' }),
232
+ (0, mongoose_1.Prop)({ required: false, default: null }),
233
+ (0, class_validator_1.IsOptional)(),
234
+ (0, class_validator_1.IsString)(),
235
+ __metadata("design:type", String)
236
+ ], Pv.prototype, "counterId", void 0);
236
237
  __decorate([
237
238
  (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
238
239
  (0, mongoose_1.Prop)({ type: Number }),
@@ -96,6 +96,7 @@ export declare class Site {
96
96
  comments?: Comments;
97
97
  hasConsoData: boolean;
98
98
  hasAnalysis: boolean;
99
+ hasContractData: boolean;
99
100
  }
100
101
  export type SiteDocument = Site & Document;
101
102
  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
@@ -559,6 +559,12 @@ __decorate([
559
559
  (0, class_validator_1.IsBoolean)(),
560
560
  __metadata("design:type", Boolean)
561
561
  ], Site.prototype, "hasAnalysis", void 0);
562
+ __decorate([
563
+ (0, swagger_1.ApiProperty)(),
564
+ (0, mongoose_1.Prop)({ required: true, default: false }),
565
+ (0, class_validator_1.IsBoolean)(),
566
+ __metadata("design:type", Boolean)
567
+ ], Site.prototype, "hasContractData", void 0);
562
568
  exports.Site = Site = __decorate([
563
569
  (0, mongoose_1.Schema)({
564
570
  id: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.10.5",
3
+ "version": "1.11.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {