@likewatt/models 1.39.0 → 1.39.2

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.
@@ -12,7 +12,6 @@ export declare class DefaultRate {
12
12
  _id: string;
13
13
  name?: string;
14
14
  userId: string;
15
- rates: Rates[];
16
15
  tarifs: Rates[];
17
16
  restOfTheYear: RestOfTheYearTarifs;
18
17
  }
@@ -57,12 +57,6 @@ __decorate([
57
57
  (0, class_validator_1.IsOptional)(),
58
58
  __metadata("design:type", String)
59
59
  ], DefaultRate.prototype, "userId", void 0);
60
- __decorate([
61
- (0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
62
- (0, mongoose_1.Prop)({ required: true }),
63
- (0, class_validator_1.IsArray)(),
64
- __metadata("design:type", Array)
65
- ], DefaultRate.prototype, "rates", void 0);
66
60
  __decorate([
67
61
  (0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
68
62
  (0, mongoose_1.Prop)({ required: true }),
@@ -131,7 +131,6 @@ export declare class ConfigSite {
131
131
  demandMultiplierSlots?: DemandMultiplierSlot[];
132
132
  demandMultiplierUnit?: string;
133
133
  distributionKey?: DistributionKey[];
134
- distribKeys?: string;
135
134
  priorityStage?: number;
136
135
  rateOfGrowth?: RateOfGrowth[];
137
136
  settings: Record<string, unknown>;
@@ -371,13 +371,6 @@ __decorate([
371
371
  (0, class_validator_1.IsArray)(),
372
372
  __metadata("design:type", Array)
373
373
  ], ConfigSite.prototype, "distributionKey", void 0);
374
- __decorate([
375
- (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
376
- (0, mongoose_1.Prop)(),
377
- (0, class_validator_1.IsOptional)(),
378
- (0, class_validator_1.IsString)(),
379
- __metadata("design:type", String)
380
- ], ConfigSite.prototype, "distribKeys", void 0);
381
374
  __decorate([
382
375
  (0, swagger_1.ApiPropertyOptional)({ example: 1 }),
383
376
  (0, mongoose_1.Prop)(),
@@ -89,7 +89,6 @@ export declare class Site {
89
89
  restOfTheYearTarifs: RestOfTheYearTarifs;
90
90
  siteHasData: boolean;
91
91
  tarifBuilder: boolean;
92
- rates: Rates[];
93
92
  tarifs: Rates[];
94
93
  tempoPricing: boolean;
95
94
  timezone: number;
package/dist/core/Site.js CHANGED
@@ -515,12 +515,6 @@ __decorate([
515
515
  (0, class_validator_1.IsBoolean)(),
516
516
  __metadata("design:type", Boolean)
517
517
  ], Site.prototype, "tarifBuilder", void 0);
518
- __decorate([
519
- (0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
520
- (0, mongoose_1.Prop)({ type: [rates_1.RatesSchema], required: true }),
521
- (0, class_validator_1.IsArray)(),
522
- __metadata("design:type", Array)
523
- ], Site.prototype, "rates", void 0);
524
518
  __decorate([
525
519
  (0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
526
520
  (0, mongoose_1.Prop)({ type: [rates_1.RatesSchema], required: true }),
@@ -12,6 +12,7 @@ export declare enum FileType {
12
12
  PVTMY = "pvTMY.csv",
13
13
  PV1POWERS = "pvPowers.csv",
14
14
  PV2POWERS = "pv2Powers.csv",
15
+ DISTRIBKEYS = "distribKeys.csv",
15
16
  WINDTURBINETMY = "windTurbineTMY.csv",
16
17
  WINDTURBINEPOWERS = "windTurbinePowers.csv",
17
18
  FCRPRICES = "fcrPrices.csv",
@@ -16,6 +16,7 @@ var FileType;
16
16
  FileType["PVTMY"] = "pvTMY.csv";
17
17
  FileType["PV1POWERS"] = "pvPowers.csv";
18
18
  FileType["PV2POWERS"] = "pv2Powers.csv";
19
+ FileType["DISTRIBKEYS"] = "distribKeys.csv";
19
20
  FileType["WINDTURBINETMY"] = "windTurbineTMY.csv";
20
21
  FileType["WINDTURBINEPOWERS"] = "windTurbinePowers.csv";
21
22
  FileType["FCRPRICES"] = "fcrPrices.csv";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.39.0",
3
+ "version": "1.39.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {