@likewatt/models 1.5.0 → 1.5.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.
package/dist/core/Site.js CHANGED
@@ -295,10 +295,11 @@ __decorate([
295
295
  __decorate([
296
296
  (0, swagger_1.ApiPropertyOptional)({ enum: BuildingDataStatus_1.BuildingDataStatus }),
297
297
  (0, mongoose_1.Prop)({
298
+ type: String,
298
299
  enum: BuildingDataStatus_1.BuildingDataStatus,
299
300
  required: true,
300
- default: BuildingDataStatus_1.BuildingDataStatus.OK,
301
301
  }),
302
+ (0, class_validator_1.IsEnum)(BuildingDataStatus_1.BuildingDataStatus),
302
303
  __metadata("design:type", Object)
303
304
  ], Site.prototype, "buildingDataStatus", void 0);
304
305
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {