@likewatt/models 1.2.2 → 1.2.3

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
@@ -206,7 +206,7 @@ __decorate([
206
206
  ], Site.prototype, "endDate", void 0);
207
207
  __decorate([
208
208
  (0, swagger_1.ApiPropertyOptional)(),
209
- (0, mongoose_1.Prop)(),
209
+ (0, mongoose_1.Prop)({ type: String, required: false }),
210
210
  (0, class_validator_1.IsOptional)(),
211
211
  (0, class_validator_1.IsString)(),
212
212
  __metadata("design:type", Object)
@@ -288,7 +288,7 @@ __decorate([
288
288
  ], Site.prototype, "_lastModified", void 0);
289
289
  __decorate([
290
290
  (0, swagger_1.ApiProperty)(),
291
- (0, mongoose_1.Prop)({ required: false }),
291
+ (0, mongoose_1.Prop)({ type: String, required: false }),
292
292
  (0, class_validator_1.IsString)(),
293
293
  __metadata("design:type", Object)
294
294
  ], Site.prototype, "_lastUpdated", void 0);
@@ -327,7 +327,7 @@ __decorate([
327
327
  ], Site.prototype, "autoCO2", void 0);
328
328
  __decorate([
329
329
  (0, swagger_1.ApiProperty)(),
330
- (0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
330
+ (0, mongoose_1.Prop)({ type: Number, required: false }),
331
331
  (0, class_validator_1.IsOptional)(),
332
332
  (0, class_validator_1.IsNumber)(),
333
333
  __metadata("design:type", Object)
@@ -347,7 +347,7 @@ __decorate([
347
347
  ], Site.prototype, "consentFileUrl", void 0);
348
348
  __decorate([
349
349
  (0, swagger_1.ApiPropertyOptional)({ type: consumption_indexes_1.ConsumptionIndexes }),
350
- (0, mongoose_1.Prop)({ required: false }),
350
+ (0, mongoose_1.Prop)({ type: consumption_indexes_1.ConsumptionIndexesSchema, required: false }),
351
351
  (0, class_validator_1.IsOptional)(),
352
352
  __metadata("design:type", consumption_indexes_1.ConsumptionIndexes)
353
353
  ], Site.prototype, "consumptionIndexes", void 0);
@@ -390,7 +390,7 @@ __decorate([
390
390
  ], Site.prototype, "dataIsHybridFrom", void 0);
391
391
  __decorate([
392
392
  (0, swagger_1.ApiProperty)({ type: [data_source_history_1.DataSourceHistory] }),
393
- (0, mongoose_1.Prop)({ required: true }),
393
+ (0, mongoose_1.Prop)({ type: [data_source_history_1.DataSourceHistorySchema], required: true }),
394
394
  (0, class_validator_1.IsArray)(),
395
395
  __metadata("design:type", Array)
396
396
  ], Site.prototype, "dataSourceHistory", void 0);
@@ -441,14 +441,14 @@ __decorate([
441
441
  ], Site.prototype, "energyPricesWe", void 0);
442
442
  __decorate([
443
443
  (0, swagger_1.ApiPropertyOptional)(),
444
- (0, mongoose_1.Prop)({ required: false }),
444
+ (0, mongoose_1.Prop)({ type: String, required: false }),
445
445
  (0, class_validator_1.IsOptional)(),
446
446
  (0, class_validator_1.IsString)(),
447
447
  __metadata("design:type", String)
448
448
  ], Site.prototype, "error", void 0);
449
449
  __decorate([
450
450
  (0, swagger_1.ApiPropertyOptional)(),
451
- (0, mongoose_1.Prop)(),
451
+ (0, mongoose_1.Prop)({ type: Object, required: false }),
452
452
  (0, class_validator_1.IsOptional)(),
453
453
  __metadata("design:type", Object)
454
454
  ], Site.prototype, "faltyPrm", void 0);
@@ -522,7 +522,7 @@ __decorate([
522
522
  ], Site.prototype, "monthlyConsumptionIndex", void 0);
523
523
  __decorate([
524
524
  (0, swagger_1.ApiProperty)({ type: rest_of_the_years_tarif_1.RestOfTheYearTarifs }),
525
- (0, mongoose_1.Prop)({ required: false }),
525
+ (0, mongoose_1.Prop)({ type: rest_of_the_years_tarif_1.RestOfTheYearTarifsSchema, required: false }),
526
526
  __metadata("design:type", rest_of_the_years_tarif_1.RestOfTheYearTarifs)
527
527
  ], Site.prototype, "restOfTheYearTarifs", void 0);
528
528
  __decorate([
@@ -539,7 +539,7 @@ __decorate([
539
539
  ], Site.prototype, "tarifBuilder", void 0);
540
540
  __decorate([
541
541
  (0, swagger_1.ApiProperty)({ type: [tarif_1.Tarif] }),
542
- (0, mongoose_1.Prop)({ required: true }),
542
+ (0, mongoose_1.Prop)({ type: [tarif_1.TarifSchema], required: true }),
543
543
  (0, class_validator_1.IsArray)(),
544
544
  __metadata("design:type", Array)
545
545
  ], Site.prototype, "tarifs", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {