@likewatt/models 1.11.0 → 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 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {