@likewatt/models 1.2.11 → 1.2.13
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.js +1 -0
- 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 +1 -3
- package/dist/core/Site.js +4 -19
- package/dist/core/User.js +2 -0
- package/package.json +1 -1
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;
|
|
@@ -67,9 +66,8 @@ export declare class Site {
|
|
|
67
66
|
dataSourceHistory: DataSourceHistory[];
|
|
68
67
|
dataSource?: string;
|
|
69
68
|
selectedDataSource?: string;
|
|
70
|
-
disabled: boolean;
|
|
71
|
-
enedisBuffer?: string;
|
|
72
69
|
enedisData?: boolean;
|
|
70
|
+
strasbourgData?: boolean;
|
|
73
71
|
energyPricesTempo: EnergyPriceTempo[];
|
|
74
72
|
energyPricesWe: EnergyPrice[];
|
|
75
73
|
error?: 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 }),
|
|
@@ -388,26 +379,20 @@ __decorate([
|
|
|
388
379
|
(0, class_validator_1.IsString)(),
|
|
389
380
|
__metadata("design:type", String)
|
|
390
381
|
], Site.prototype, "selectedDataSource", void 0);
|
|
391
|
-
__decorate([
|
|
392
|
-
(0, swagger_1.ApiProperty)(),
|
|
393
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
394
|
-
(0, class_validator_1.IsBoolean)(),
|
|
395
|
-
__metadata("design:type", Boolean)
|
|
396
|
-
], Site.prototype, "disabled", void 0);
|
|
397
382
|
__decorate([
|
|
398
383
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
399
384
|
(0, mongoose_1.Prop)({ required: false }),
|
|
400
385
|
(0, class_validator_1.IsOptional)(),
|
|
401
|
-
(0, class_validator_1.
|
|
402
|
-
__metadata("design:type",
|
|
403
|
-
], Site.prototype, "
|
|
386
|
+
(0, class_validator_1.IsBoolean)(),
|
|
387
|
+
__metadata("design:type", Boolean)
|
|
388
|
+
], Site.prototype, "enedisData", void 0);
|
|
404
389
|
__decorate([
|
|
405
390
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
406
391
|
(0, mongoose_1.Prop)({ required: false }),
|
|
407
392
|
(0, class_validator_1.IsOptional)(),
|
|
408
393
|
(0, class_validator_1.IsBoolean)(),
|
|
409
394
|
__metadata("design:type", Boolean)
|
|
410
|
-
], Site.prototype, "
|
|
395
|
+
], Site.prototype, "strasbourgData", void 0);
|
|
411
396
|
__decorate([
|
|
412
397
|
(0, swagger_1.ApiProperty)({ type: [energy_price_tempo_model_1.EnergyPriceTempo] }),
|
|
413
398
|
(0, mongoose_1.Prop)({ type: [energy_price_tempo_model_1.EnergyPriceTempoSchema], 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);
|