@likewatt/models 1.2.11 → 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.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 +0 -1
- package/dist/core/Site.js +0 -9
- 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;
|
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);
|