@likewatt/models 1.0.17 → 1.0.19
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/CollectiveSite.d.ts +0 -1
- package/dist/core/CollectiveSite.js +0 -6
- package/dist/core/Site.js +3 -2
- package/dist/core/internal/energy-price-tempo.model.d.ts +0 -2
- package/dist/core/internal/energy-price-tempo.model.js +0 -12
- package/dist/core/internal/energy-price.model.d.ts +0 -2
- package/dist/core/internal/energy-price.model.js +0 -12
- package/dist/core/internal/solar-potential.js +3 -3
- package/dist/core/internal/subscription-rate.model.d.ts +0 -2
- package/dist/core/internal/subscription-rate.model.js +0 -12
- package/package.json +1 -1
|
@@ -35,12 +35,6 @@ __decorate([
|
|
|
35
35
|
(0, class_validator_1.IsArray)(),
|
|
36
36
|
__metadata("design:type", Array)
|
|
37
37
|
], CollectiveSite.prototype, "addressGeocode", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)(),
|
|
40
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
41
|
-
(0, class_validator_1.IsNumber)(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], CollectiveSite.prototype, "addressCitySIREN", void 0);
|
|
44
38
|
__decorate([
|
|
45
39
|
(0, swagger_1.ApiProperty)({ enum: enums_1.SiteType }),
|
|
46
40
|
(0, mongoose_1.Prop)({ type: String, enum: enums_1.SiteType, required: true }),
|
package/dist/core/Site.js
CHANGED
|
@@ -135,8 +135,9 @@ __decorate([
|
|
|
135
135
|
__metadata("design:type", Number)
|
|
136
136
|
], Site.prototype, "addressDepartementNum", void 0);
|
|
137
137
|
__decorate([
|
|
138
|
-
(0, swagger_1.
|
|
139
|
-
(0, mongoose_1.Prop)(
|
|
138
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
139
|
+
(0, mongoose_1.Prop)(),
|
|
140
|
+
(0, class_validator_1.IsOptional)(),
|
|
140
141
|
(0, class_validator_1.IsString)(),
|
|
141
142
|
__metadata("design:type", String)
|
|
142
143
|
], Site.prototype, "id", void 0);
|
|
@@ -6,8 +6,6 @@ export declare class EnergyPriceTempo {
|
|
|
6
6
|
BUHP: number;
|
|
7
7
|
RHC: number;
|
|
8
8
|
RHP: number;
|
|
9
|
-
startDate: Date;
|
|
10
|
-
endDate: Date;
|
|
11
9
|
}
|
|
12
10
|
export declare const EnergyPriceTempoSchema: import("mongoose").Schema<EnergyPriceTempo, import("mongoose").Model<EnergyPriceTempo, any, any, any, import("mongoose").Document<unknown, any, EnergyPriceTempo, any> & EnergyPriceTempo & {
|
|
13
11
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -58,18 +58,6 @@ __decorate([
|
|
|
58
58
|
(0, class_validator_1.IsNumber)(),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
60
|
], EnergyPriceTempo.prototype, "RHP", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)(),
|
|
63
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
64
|
-
(0, class_validator_1.IsDate)(),
|
|
65
|
-
__metadata("design:type", Date)
|
|
66
|
-
], EnergyPriceTempo.prototype, "startDate", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, swagger_1.ApiProperty)(),
|
|
69
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
70
|
-
(0, class_validator_1.IsDate)(),
|
|
71
|
-
__metadata("design:type", Date)
|
|
72
|
-
], EnergyPriceTempo.prototype, "endDate", void 0);
|
|
73
61
|
exports.EnergyPriceTempo = EnergyPriceTempo = __decorate([
|
|
74
62
|
(0, mongoose_1.Schema)({ _id: false })
|
|
75
63
|
], EnergyPriceTempo);
|
|
@@ -5,8 +5,6 @@ export declare class EnergyPrice {
|
|
|
5
5
|
HCH: number;
|
|
6
6
|
HPB: number;
|
|
7
7
|
PTE: number;
|
|
8
|
-
startDate: Date;
|
|
9
|
-
endDate: Date;
|
|
10
8
|
}
|
|
11
9
|
export declare const EnergyPriceSchema: import("mongoose").Schema<EnergyPrice, import("mongoose").Model<EnergyPrice, any, any, any, import("mongoose").Document<unknown, any, EnergyPrice, any> & EnergyPrice & {
|
|
12
10
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -52,18 +52,6 @@ __decorate([
|
|
|
52
52
|
(0, class_validator_1.IsNumber)(),
|
|
53
53
|
__metadata("design:type", Number)
|
|
54
54
|
], EnergyPrice.prototype, "PTE", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)(),
|
|
57
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
58
|
-
(0, class_validator_1.IsDate)(),
|
|
59
|
-
__metadata("design:type", Date)
|
|
60
|
-
], EnergyPrice.prototype, "startDate", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)(),
|
|
63
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
64
|
-
(0, class_validator_1.IsDate)(),
|
|
65
|
-
__metadata("design:type", Date)
|
|
66
|
-
], EnergyPrice.prototype, "endDate", void 0);
|
|
67
55
|
exports.EnergyPrice = EnergyPrice = __decorate([
|
|
68
56
|
(0, mongoose_1.Schema)({ _id: false })
|
|
69
57
|
], EnergyPrice);
|
|
@@ -52,15 +52,15 @@ __decorate([
|
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
53
|
], SolarPotential.prototype, "panelWidthMeters", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, mongoose_1.Prop)(),
|
|
55
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
56
56
|
__metadata("design:type", Object)
|
|
57
57
|
], SolarPotential.prototype, "roofSegmentStats", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, mongoose_1.Prop)(),
|
|
59
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
60
60
|
__metadata("design:type", Object)
|
|
61
61
|
], SolarPotential.prototype, "solarPanelConfigs", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, mongoose_1.Prop)(),
|
|
63
|
+
(0, mongoose_1.Prop)({ type: Number, default: null }),
|
|
64
64
|
__metadata("design:type", Object)
|
|
65
65
|
], SolarPotential.prototype, "solarPanels", void 0);
|
|
66
66
|
__decorate([
|
|
@@ -2,8 +2,6 @@ export declare class SubscriptionRate {
|
|
|
2
2
|
id: string;
|
|
3
3
|
pricePerKVA: string;
|
|
4
4
|
pricePerMonth: string;
|
|
5
|
-
startDate: Date;
|
|
6
|
-
endDate: Date;
|
|
7
5
|
}
|
|
8
6
|
export declare const SubscriptionRateSchema: import("mongoose").Schema<SubscriptionRate, import("mongoose").Model<SubscriptionRate, any, any, any, import("mongoose").Document<unknown, any, SubscriptionRate, any> & SubscriptionRate & {
|
|
9
7
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -34,18 +34,6 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], SubscriptionRate.prototype, "pricePerMonth", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)(),
|
|
39
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
40
|
-
(0, class_validator_1.IsDate)(),
|
|
41
|
-
__metadata("design:type", Date)
|
|
42
|
-
], SubscriptionRate.prototype, "startDate", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, swagger_1.ApiProperty)(),
|
|
45
|
-
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
46
|
-
(0, class_validator_1.IsDate)(),
|
|
47
|
-
__metadata("design:type", Date)
|
|
48
|
-
], SubscriptionRate.prototype, "endDate", void 0);
|
|
49
37
|
exports.SubscriptionRate = SubscriptionRate = __decorate([
|
|
50
38
|
(0, mongoose_1.Schema)({ _id: false })
|
|
51
39
|
], SubscriptionRate);
|