@likewatt/models 1.2.10 → 1.2.12
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 +5 -5
- package/dist/core/CollectiveSite.js +15 -12
- package/dist/core/Consent.js +2 -0
- package/dist/core/DefaultRate.js +2 -0
- package/dist/core/Invitation.js +2 -0
- package/dist/core/License.js +2 -0
- package/dist/core/Scenario.js +7 -1
- package/dist/core/ScenarioDefaultValue.js +1 -0
- package/dist/core/Site.d.ts +0 -1
- package/dist/core/Site.js +0 -9
- package/dist/core/User.js +2 -0
- package/package.json +1 -1
|
@@ -11,12 +11,12 @@ export declare class CollectiveSite {
|
|
|
11
11
|
name: string;
|
|
12
12
|
isC_AND_I: boolean;
|
|
13
13
|
currency: string;
|
|
14
|
-
autoCO2
|
|
15
|
-
co2rate?: number;
|
|
14
|
+
autoCO2: boolean;
|
|
15
|
+
co2rate?: number | null;
|
|
16
16
|
folder?: string;
|
|
17
|
-
TCSPE
|
|
18
|
-
TURPE_VERSION
|
|
19
|
-
TMYstatus
|
|
17
|
+
TCSPE?: number;
|
|
18
|
+
TURPE_VERSION?: number;
|
|
19
|
+
TMYstatus?: number;
|
|
20
20
|
addressDepartementNum: number;
|
|
21
21
|
addressZipCode: string;
|
|
22
22
|
addressCity: string;
|
|
@@ -79,39 +79,41 @@ __decorate([
|
|
|
79
79
|
], CollectiveSite.prototype, "currency", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, swagger_1.ApiProperty)(),
|
|
82
|
-
(0, mongoose_1.Prop)({ type: Boolean, required:
|
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: true, default: false }),
|
|
84
83
|
(0, class_validator_1.IsBoolean)(),
|
|
85
84
|
__metadata("design:type", Boolean)
|
|
86
85
|
], CollectiveSite.prototype, "autoCO2", void 0);
|
|
87
86
|
__decorate([
|
|
88
87
|
(0, swagger_1.ApiProperty)(),
|
|
89
|
-
(0, mongoose_1.Prop)({ type: Number, required: false
|
|
88
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
90
89
|
(0, class_validator_1.IsOptional)(),
|
|
91
90
|
(0, class_validator_1.IsNumber)(),
|
|
92
|
-
__metadata("design:type",
|
|
91
|
+
__metadata("design:type", Object)
|
|
93
92
|
], CollectiveSite.prototype, "co2rate", void 0);
|
|
94
93
|
__decorate([
|
|
95
|
-
(0, swagger_1.
|
|
96
|
-
(0, mongoose_1.Prop)(),
|
|
97
|
-
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, swagger_1.ApiProperty)(),
|
|
95
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
98
96
|
(0, class_validator_1.IsString)(),
|
|
99
97
|
__metadata("design:type", String)
|
|
100
98
|
], CollectiveSite.prototype, "folder", void 0);
|
|
101
99
|
__decorate([
|
|
102
|
-
(0, swagger_1.
|
|
103
|
-
(0, mongoose_1.Prop)({ required:
|
|
100
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
101
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
103
|
(0, class_validator_1.IsNumber)(),
|
|
105
104
|
__metadata("design:type", Number)
|
|
106
105
|
], CollectiveSite.prototype, "TCSPE", void 0);
|
|
107
106
|
__decorate([
|
|
108
|
-
(0, swagger_1.
|
|
109
|
-
(0, mongoose_1.Prop)({ required:
|
|
107
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
108
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
110
|
(0, class_validator_1.IsNumber)(),
|
|
111
111
|
__metadata("design:type", Number)
|
|
112
112
|
], CollectiveSite.prototype, "TURPE_VERSION", void 0);
|
|
113
113
|
__decorate([
|
|
114
|
-
(0, swagger_1.
|
|
114
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
115
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
117
|
(0, class_validator_1.IsNumber)(),
|
|
116
118
|
__metadata("design:type", Number)
|
|
117
119
|
], CollectiveSite.prototype, "TMYstatus", void 0);
|
|
@@ -172,6 +174,7 @@ __decorate([
|
|
|
172
174
|
exports.CollectiveSite = CollectiveSite = __decorate([
|
|
173
175
|
(0, mongoose_1.Schema)({
|
|
174
176
|
id: false,
|
|
177
|
+
timestamps: true,
|
|
175
178
|
toJSON: { virtuals: true, versionKey: false },
|
|
176
179
|
toObject: { virtuals: true, versionKey: false },
|
|
177
180
|
})
|
package/dist/core/Consent.js
CHANGED
|
@@ -157,6 +157,8 @@ exports.Consent = Consent = __decorate([
|
|
|
157
157
|
(0, mongoose_2.Schema)({
|
|
158
158
|
id: false,
|
|
159
159
|
timestamps: true,
|
|
160
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
161
|
+
toObject: { virtuals: true, versionKey: false },
|
|
160
162
|
})
|
|
161
163
|
], Consent);
|
|
162
164
|
exports.ConsentSchema = mongoose_2.SchemaFactory.createForClass(Consent);
|
package/dist/core/DefaultRate.js
CHANGED
|
@@ -72,6 +72,8 @@ exports.DefaultRate = DefaultRate = __decorate([
|
|
|
72
72
|
(0, mongoose_1.Schema)({
|
|
73
73
|
id: false,
|
|
74
74
|
timestamps: true,
|
|
75
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
76
|
+
toObject: { virtuals: true, versionKey: false },
|
|
75
77
|
})
|
|
76
78
|
], DefaultRate);
|
|
77
79
|
exports.DefaultRateSchema = mongoose_1.SchemaFactory.createForClass(DefaultRate);
|
package/dist/core/Invitation.js
CHANGED
|
@@ -69,6 +69,8 @@ exports.Invitation = Invitation = __decorate([
|
|
|
69
69
|
(0, mongoose_1.Schema)({
|
|
70
70
|
id: false,
|
|
71
71
|
timestamps: true,
|
|
72
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
73
|
+
toObject: { virtuals: true, versionKey: false },
|
|
72
74
|
})
|
|
73
75
|
], Invitation);
|
|
74
76
|
exports.InvitationSchema = mongoose_1.SchemaFactory.createForClass(Invitation);
|
package/dist/core/License.js
CHANGED
|
@@ -125,6 +125,8 @@ exports.License = License = __decorate([
|
|
|
125
125
|
(0, mongoose_1.Schema)({
|
|
126
126
|
id: false,
|
|
127
127
|
timestamps: true,
|
|
128
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
129
|
+
toObject: { virtuals: true, versionKey: false },
|
|
128
130
|
})
|
|
129
131
|
], License);
|
|
130
132
|
exports.LicenseSchema = mongoose_1.SchemaFactory.createForClass(License);
|
package/dist/core/Scenario.js
CHANGED
|
@@ -57,7 +57,12 @@ __decorate([
|
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], Objective.prototype, "value2", void 0);
|
|
59
59
|
exports.Objective = Objective = __decorate([
|
|
60
|
-
(0, mongoose_1.Schema)({
|
|
60
|
+
(0, mongoose_1.Schema)({
|
|
61
|
+
id: false,
|
|
62
|
+
timestamps: true,
|
|
63
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
64
|
+
toObject: { virtuals: true, versionKey: false },
|
|
65
|
+
})
|
|
61
66
|
], Objective);
|
|
62
67
|
exports.ObjectiveSchema = mongoose_1.SchemaFactory.createForClass(Objective);
|
|
63
68
|
let Month = class Month {
|
|
@@ -520,6 +525,7 @@ __decorate([
|
|
|
520
525
|
exports.Scenario = Scenario = __decorate([
|
|
521
526
|
(0, mongoose_1.Schema)({
|
|
522
527
|
id: false,
|
|
528
|
+
timestamps: true,
|
|
523
529
|
toJSON: { virtuals: true, versionKey: false },
|
|
524
530
|
toObject: { virtuals: true, versionKey: false },
|
|
525
531
|
})
|
|
@@ -234,6 +234,7 @@ __decorate([
|
|
|
234
234
|
exports.ScenarioDefaultValue = ScenarioDefaultValue = __decorate([
|
|
235
235
|
(0, mongoose_1.Schema)({
|
|
236
236
|
id: false,
|
|
237
|
+
timestamps: true,
|
|
237
238
|
toJSON: { virtuals: true, versionKey: false },
|
|
238
239
|
toObject: { virtuals: true, versionKey: false },
|
|
239
240
|
})
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
|
11
11
|
import { Tarif } from './internal/tarif';
|
|
12
12
|
export declare class Site {
|
|
13
13
|
readonly _id: string;
|
|
14
|
-
id: string;
|
|
15
14
|
country: string;
|
|
16
15
|
energyPrices: EnergyPrice[];
|
|
17
16
|
purchaseAreaOfTension: string;
|
package/dist/core/Site.js
CHANGED
|
@@ -37,15 +37,6 @@ __decorate([
|
|
|
37
37
|
(0, mongoose_1.Prop)({ type: String }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Site.prototype, "_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({
|
|
42
|
-
description: 'Identifiant dupliqué pour lapi python',
|
|
43
|
-
example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
|
|
44
|
-
type: String,
|
|
45
|
-
readOnly: false,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Site.prototype, "id", void 0);
|
|
49
40
|
__decorate([
|
|
50
41
|
(0, swagger_1.ApiProperty)(),
|
|
51
42
|
(0, mongoose_1.Prop)({ required: true }),
|
package/dist/core/User.js
CHANGED
|
@@ -615,6 +615,8 @@ exports.User = User = __decorate([
|
|
|
615
615
|
(0, mongoose_1.Schema)({
|
|
616
616
|
id: false,
|
|
617
617
|
timestamps: true,
|
|
618
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
619
|
+
toObject: { virtuals: true, versionKey: false },
|
|
618
620
|
})
|
|
619
621
|
], User);
|
|
620
622
|
exports.UserSchema = mongoose_1.SchemaFactory.createForClass(User);
|