@likewatt/models 1.100.0 → 1.100.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.
@@ -17,25 +17,12 @@ export declare const ObjectiveSchema: MSchema<Objective, import("mongoose").Mode
17
17
  } & {
18
18
  __v: number;
19
19
  }>;
20
- export declare class Month {
21
- month: number;
22
- year?: number;
23
- }
24
- export declare const MonthSchema: MSchema<Month, import("mongoose").Model<Month, any, any, any, Document<unknown, any, Month, any, {}> & Month & {
25
- _id: import("mongoose").Types.ObjectId;
26
- } & {
27
- __v: number;
28
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Month, Document<unknown, {}, import("mongoose").FlatRecord<Month>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Month> & {
29
- _id: import("mongoose").Types.ObjectId;
30
- } & {
31
- __v: number;
32
- }>;
33
20
  export declare class DemandMultiplierSlot {
34
21
  days: number[];
35
22
  demandMultiplier?: number;
36
23
  endHour?: string;
37
24
  id: string;
38
- months?: Month[];
25
+ months?: number[];
39
26
  startHour?: string;
40
27
  }
41
28
  export declare const DemandMultiplierSlotSchema: MSchema<DemandMultiplierSlot, import("mongoose").Model<DemandMultiplierSlot, any, any, any, Document<unknown, any, DemandMultiplierSlot, any, {}> & DemandMultiplierSlot & {
@@ -52,7 +39,7 @@ export declare class DistributionKeyValue {
52
39
  distributionKey: number;
53
40
  endHour?: string;
54
41
  id: string;
55
- months?: Month[];
42
+ months?: number[];
56
43
  startHour?: string;
57
44
  }
58
45
  export declare const DistributionKeyValueSchema: MSchema<DistributionKeyValue, import("mongoose").Model<DistributionKeyValue, any, any, any, Document<unknown, any, DistributionKeyValue, any, {}> & DistributionKeyValue & {
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ScenarioTypeSchema = exports.ScenarioType = exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.PvSchema = exports.Pv = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DistributionKeyValueSchema = exports.DistributionKeyValue = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.MonthSchema = exports.Month = exports.ObjectiveSchema = exports.Objective = void 0;
12
+ exports.ScenarioTypeSchema = exports.ScenarioType = exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.PvSchema = exports.Pv = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DistributionKeyValueSchema = exports.DistributionKeyValue = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.ObjectiveSchema = exports.Objective = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
14
  const mongoose_2 = require("mongoose");
15
15
  const uuid_1 = require("uuid");
@@ -72,26 +72,6 @@ exports.Objective = Objective = __decorate([
72
72
  })
73
73
  ], Objective);
74
74
  exports.ObjectiveSchema = mongoose_1.SchemaFactory.createForClass(Objective);
75
- let Month = class Month {
76
- };
77
- exports.Month = Month;
78
- __decorate([
79
- (0, swagger_1.ApiProperty)({ example: 1 }),
80
- (0, mongoose_1.Prop)({ required: true }),
81
- (0, class_validator_1.IsNumber)(),
82
- __metadata("design:type", Number)
83
- ], Month.prototype, "month", void 0);
84
- __decorate([
85
- (0, swagger_1.ApiPropertyOptional)({ example: 2020 }),
86
- (0, mongoose_1.Prop)(),
87
- (0, class_validator_1.IsOptional)(),
88
- (0, class_validator_1.IsNumber)(),
89
- __metadata("design:type", Number)
90
- ], Month.prototype, "year", void 0);
91
- exports.Month = Month = __decorate([
92
- (0, mongoose_1.Schema)({ _id: false })
93
- ], Month);
94
- exports.MonthSchema = mongoose_1.SchemaFactory.createForClass(Month);
95
75
  let DemandMultiplierSlot = class DemandMultiplierSlot {
96
76
  };
97
77
  exports.DemandMultiplierSlot = DemandMultiplierSlot;
@@ -122,8 +102,8 @@ __decorate([
122
102
  __metadata("design:type", String)
123
103
  ], DemandMultiplierSlot.prototype, "id", void 0);
124
104
  __decorate([
125
- (0, swagger_1.ApiProperty)({ type: [Month] }),
126
- (0, mongoose_1.Prop)({ type: [exports.MonthSchema], required: true }),
105
+ (0, swagger_1.ApiProperty)({ type: [Number] }),
106
+ (0, mongoose_1.Prop)({ type: [Number], required: true }),
127
107
  (0, class_validator_1.IsArray)(),
128
108
  __metadata("design:type", Array)
129
109
  ], DemandMultiplierSlot.prototype, "months", void 0);
@@ -167,8 +147,8 @@ __decorate([
167
147
  __metadata("design:type", String)
168
148
  ], DistributionKeyValue.prototype, "id", void 0);
169
149
  __decorate([
170
- (0, swagger_1.ApiProperty)({ type: [Month] }),
171
- (0, mongoose_1.Prop)({ type: [exports.MonthSchema], required: true }),
150
+ (0, swagger_1.ApiProperty)({ type: [Number] }),
151
+ (0, mongoose_1.Prop)({ type: [Number], required: true }),
172
152
  (0, class_validator_1.IsArray)(),
173
153
  __metadata("design:type", Array)
174
154
  ], DistributionKeyValue.prototype, "months", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.100.0",
3
+ "version": "1.100.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {