@likewatt/models 1.39.3 → 1.41.0

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.
@@ -33,10 +33,10 @@ export declare const MonthSchema: MSchema<Month, import("mongoose").Model<Month,
33
33
  export declare class DemandMultiplierSlot {
34
34
  days: number[];
35
35
  demandMultiplier?: number;
36
- endHour?: number;
36
+ endHour?: string;
37
37
  id: string;
38
38
  months?: Month[];
39
- startHour?: number;
39
+ startHour?: string;
40
40
  }
41
41
  export declare const DemandMultiplierSlotSchema: MSchema<DemandMultiplierSlot, import("mongoose").Model<DemandMultiplierSlot, any, any, any, Document<unknown, any, DemandMultiplierSlot, any, {}> & DemandMultiplierSlot & {
42
42
  _id: import("mongoose").Types.ObjectId;
@@ -103,11 +103,11 @@ __decorate([
103
103
  __metadata("design:type", Number)
104
104
  ], DemandMultiplierSlot.prototype, "demandMultiplier", void 0);
105
105
  __decorate([
106
- (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
106
+ (0, swagger_1.ApiPropertyOptional)({ example: '24:00' }),
107
107
  (0, mongoose_1.Prop)(),
108
108
  (0, class_validator_1.IsOptional)(),
109
- (0, class_validator_1.IsNumber)(),
110
- __metadata("design:type", Number)
109
+ (0, class_validator_1.IsString)(),
110
+ __metadata("design:type", String)
111
111
  ], DemandMultiplierSlot.prototype, "endHour", void 0);
112
112
  __decorate([
113
113
  (0, swagger_1.ApiProperty)({ example: 0 }),
@@ -122,11 +122,11 @@ __decorate([
122
122
  __metadata("design:type", Array)
123
123
  ], DemandMultiplierSlot.prototype, "months", void 0);
124
124
  __decorate([
125
- (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
125
+ (0, swagger_1.ApiPropertyOptional)({ example: '00:00' }),
126
126
  (0, mongoose_1.Prop)(),
127
127
  (0, class_validator_1.IsOptional)(),
128
- (0, class_validator_1.IsNumber)(),
129
- __metadata("design:type", Number)
128
+ (0, class_validator_1.IsString)(),
129
+ __metadata("design:type", String)
130
130
  ], DemandMultiplierSlot.prototype, "startHour", void 0);
131
131
  exports.DemandMultiplierSlot = DemandMultiplierSlot = __decorate([
132
132
  (0, mongoose_1.Schema)({ _id: false })
@@ -8,9 +8,9 @@ import { BuildingData } from './internal/building-data';
8
8
  import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
9
9
  import { DataSourceHistory } from './internal/data-source-history';
10
10
  import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
11
- import { Rates } from './internal/rates';
12
11
  import { BuildingDataStatus } from './enums/BuildingDataStatus';
13
12
  import { Comments } from './internal/comments';
13
+ import { Rates } from './internal/rates';
14
14
  export declare class Site {
15
15
  readonly _id: string;
16
16
  country: string;
@@ -76,6 +76,7 @@ export declare class Site {
76
76
  error?: string;
77
77
  faltyPrm?: string | null | boolean;
78
78
  hasConsentData: boolean;
79
+ hasCsvData: boolean;
79
80
  hasPeakHours: boolean;
80
81
  hasWeekendPricing: boolean;
81
82
  includeTURPE: boolean;
package/dist/core/Site.js CHANGED
@@ -23,9 +23,9 @@ const building_data_1 = require("./internal/building-data");
23
23
  const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
24
24
  const data_source_history_1 = require("./internal/data-source-history");
25
25
  const energy_price_tempo_model_1 = require("./internal/energy-price-tempo.model");
26
- const rates_1 = require("./internal/rates");
27
26
  const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
28
27
  const comments_1 = require("./internal/comments");
28
+ const rates_1 = require("./internal/rates");
29
29
  let Site = class Site {
30
30
  };
31
31
  exports.Site = Site;
@@ -436,6 +436,12 @@ __decorate([
436
436
  (0, class_validator_1.IsBoolean)(),
437
437
  __metadata("design:type", Boolean)
438
438
  ], Site.prototype, "hasConsentData", void 0);
439
+ __decorate([
440
+ (0, swagger_1.ApiProperty)(),
441
+ (0, mongoose_1.Prop)({ required: false }),
442
+ (0, class_validator_1.IsBoolean)(),
443
+ __metadata("design:type", Boolean)
444
+ ], Site.prototype, "hasCsvData", void 0);
439
445
  __decorate([
440
446
  (0, swagger_1.ApiProperty)(),
441
447
  (0, mongoose_1.Prop)({ required: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.39.3",
3
+ "version": "1.41.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {