@likewatt/models 1.1.6 → 1.1.8
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/DefaultRate.d.ts +1 -1
- package/dist/core/DefaultRate.js +1 -1
- package/dist/core/Site.d.ts +1 -3
- package/dist/core/Site.js +0 -12
- package/dist/frontend/CollectiveSite.types.d.ts +0 -1
- package/dist/frontend/DefaultRate.types.d.ts +1 -2
- package/dist/frontend/Site.types.d.ts +1 -3
- package/package.json +1 -1
|
@@ -121,12 +121,6 @@ __decorate([
|
|
|
121
121
|
(0, class_validator_1.IsNumber)(),
|
|
122
122
|
__metadata("design:type", Number)
|
|
123
123
|
], CollectiveSite.prototype, "TURPE_VERSION", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, swagger_1.ApiProperty)(),
|
|
126
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
127
|
-
(0, class_validator_1.IsString)(),
|
|
128
|
-
__metadata("design:type", String)
|
|
129
|
-
], CollectiveSite.prototype, "appUrl", void 0);
|
|
130
124
|
__decorate([
|
|
131
125
|
(0, swagger_1.ApiProperty)(),
|
|
132
126
|
(0, class_validator_1.IsNumber)(),
|
package/dist/core/DefaultRate.js
CHANGED
|
@@ -54,7 +54,7 @@ __decorate([
|
|
|
54
54
|
}),
|
|
55
55
|
(0, mongoose_2.Prop)({ type: mongoose_1.Types.ObjectId, ref: 'User' }),
|
|
56
56
|
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
__metadata("design:type",
|
|
57
|
+
__metadata("design:type", String)
|
|
58
58
|
], DefaultRate.prototype, "userId", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
(0, swagger_1.ApiProperty)({ type: [tarif_1.Tarif] }),
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export declare class Site {
|
|
|
29
29
|
owner: string;
|
|
30
30
|
name: string;
|
|
31
31
|
isC_AND_I: boolean;
|
|
32
|
-
appUrl: string;
|
|
33
32
|
addressDepartementNum: number;
|
|
34
33
|
addressZipCode: string;
|
|
35
34
|
subscribedPowers: EnergyPrice[];
|
|
@@ -55,9 +54,8 @@ export declare class Site {
|
|
|
55
54
|
_lastUpdated: string;
|
|
56
55
|
_step3: boolean;
|
|
57
56
|
_step3At: Date;
|
|
58
|
-
analysisId: string;
|
|
59
57
|
analysisYear: number;
|
|
60
|
-
buildingData
|
|
58
|
+
buildingData?: BuildingData;
|
|
61
59
|
autoCO2?: boolean;
|
|
62
60
|
co2rate?: number;
|
|
63
61
|
connectingPower: number;
|
package/dist/core/Site.js
CHANGED
|
@@ -142,12 +142,6 @@ __decorate([
|
|
|
142
142
|
(0, class_validator_1.IsBoolean)(),
|
|
143
143
|
__metadata("design:type", Boolean)
|
|
144
144
|
], Site.prototype, "isC_AND_I", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, swagger_1.ApiProperty)(),
|
|
147
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
148
|
-
(0, class_validator_1.IsString)(),
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], Site.prototype, "appUrl", void 0);
|
|
151
145
|
__decorate([
|
|
152
146
|
(0, swagger_1.ApiProperty)(),
|
|
153
147
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -301,12 +295,6 @@ __decorate([
|
|
|
301
295
|
(0, class_validator_1.IsDate)(),
|
|
302
296
|
__metadata("design:type", Date)
|
|
303
297
|
], Site.prototype, "_step3At", void 0);
|
|
304
|
-
__decorate([
|
|
305
|
-
(0, swagger_1.ApiProperty)(),
|
|
306
|
-
(0, mongoose_1.Prop)({ required: false }),
|
|
307
|
-
(0, class_validator_1.IsString)(),
|
|
308
|
-
__metadata("design:type", String)
|
|
309
|
-
], Site.prototype, "analysisId", void 0);
|
|
310
298
|
__decorate([
|
|
311
299
|
(0, swagger_1.ApiProperty)(),
|
|
312
300
|
(0, mongoose_1.Prop)({ required: false }),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Types } from 'mongoose';
|
|
2
1
|
import { RestOfTheYearTarifs } from '../core/internal/rest-of-the-years-tarif';
|
|
3
2
|
import { Tarif } from './Tarif.types';
|
|
4
3
|
export interface DefaultRate {
|
|
5
4
|
_id?: string;
|
|
6
5
|
name?: string;
|
|
7
|
-
userId?:
|
|
6
|
+
userId?: string;
|
|
8
7
|
rates: Tarif[];
|
|
9
8
|
restOfTheYear: RestOfTheYearTarifs;
|
|
10
9
|
}
|
|
@@ -28,7 +28,6 @@ export interface Site {
|
|
|
28
28
|
owner: string;
|
|
29
29
|
name: string;
|
|
30
30
|
isC_AND_I: boolean;
|
|
31
|
-
appUrl: string;
|
|
32
31
|
addressDepartementNum: number;
|
|
33
32
|
addressZipCode: string;
|
|
34
33
|
subscribedPowers: EnergyPrice[];
|
|
@@ -54,9 +53,8 @@ export interface Site {
|
|
|
54
53
|
_lastUpdated: string;
|
|
55
54
|
_step3: boolean;
|
|
56
55
|
_step3At: Date | string;
|
|
57
|
-
analysisId: string;
|
|
58
56
|
analysisYear: number;
|
|
59
|
-
buildingData
|
|
57
|
+
buildingData?: BuildingData;
|
|
60
58
|
autoCO2?: boolean;
|
|
61
59
|
co2rate?: number;
|
|
62
60
|
connectingPower: number;
|