@likewatt/models 1.2.7 → 1.2.9
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/Site.d.ts +1 -5
- package/dist/core/Site.js +4 -26
- package/dist/core/User.d.ts +0 -1
- package/dist/core/User.js +0 -11
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/core/internal/consumption-indexes.d.ts +0 -12
- package/dist/core/internal/consumption-indexes.js +0 -24
package/dist/core/Site.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { CustomerInfos } from './internal/customer-infos.model';
|
|
|
7
7
|
import { BuildingData } from './internal/building-data';
|
|
8
8
|
import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
9
9
|
import { DataSourceHistory } from './internal/data-source-history';
|
|
10
|
-
import { ConsumptionIndexes } from './internal/consumption-indexes';
|
|
11
10
|
import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
12
11
|
import { Tarif } from './internal/tarif';
|
|
13
12
|
export declare class Site {
|
|
@@ -50,9 +49,6 @@ export declare class Site {
|
|
|
50
49
|
customerInfos?: CustomerInfos;
|
|
51
50
|
TCSPE?: number;
|
|
52
51
|
TURPE_VERSION?: number;
|
|
53
|
-
_createdAt?: Date | string;
|
|
54
|
-
_lastModified?: Date | string;
|
|
55
|
-
_lastUpdated?: Date | string;
|
|
56
52
|
_step3?: boolean;
|
|
57
53
|
_step3At?: Date | string;
|
|
58
54
|
analysisYear?: number;
|
|
@@ -61,7 +57,7 @@ export declare class Site {
|
|
|
61
57
|
co2rate?: number | null;
|
|
62
58
|
connectingPower: number;
|
|
63
59
|
consentFileUrl?: string;
|
|
64
|
-
consumptionIndexes?:
|
|
60
|
+
consumptionIndexes?: number[][];
|
|
65
61
|
creator: string;
|
|
66
62
|
currency: string;
|
|
67
63
|
customerConsentEmail: string;
|
package/dist/core/Site.js
CHANGED
|
@@ -22,7 +22,6 @@ const customer_infos_model_1 = require("./internal/customer-infos.model");
|
|
|
22
22
|
const building_data_1 = require("./internal/building-data");
|
|
23
23
|
const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
24
24
|
const data_source_history_1 = require("./internal/data-source-history");
|
|
25
|
-
const consumption_indexes_1 = require("./internal/consumption-indexes");
|
|
26
25
|
const energy_price_tempo_model_1 = require("./internal/energy-price-tempo.model");
|
|
27
26
|
const tarif_1 = require("./internal/tarif");
|
|
28
27
|
let Site = class Site {
|
|
@@ -274,27 +273,6 @@ __decorate([
|
|
|
274
273
|
(0, class_validator_1.IsNumber)(),
|
|
275
274
|
__metadata("design:type", Number)
|
|
276
275
|
], Site.prototype, "TURPE_VERSION", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
279
|
-
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
280
|
-
(0, class_validator_1.IsOptional)(),
|
|
281
|
-
(0, class_validator_1.IsDate)(),
|
|
282
|
-
__metadata("design:type", Object)
|
|
283
|
-
], Site.prototype, "_createdAt", void 0);
|
|
284
|
-
__decorate([
|
|
285
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
286
|
-
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
287
|
-
(0, class_validator_1.IsOptional)(),
|
|
288
|
-
(0, class_validator_1.IsDate)(),
|
|
289
|
-
__metadata("design:type", Object)
|
|
290
|
-
], Site.prototype, "_lastModified", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
293
|
-
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
294
|
-
(0, class_validator_1.IsOptional)(),
|
|
295
|
-
(0, class_validator_1.IsString)(),
|
|
296
|
-
__metadata("design:type", Object)
|
|
297
|
-
], Site.prototype, "_lastUpdated", void 0);
|
|
298
276
|
__decorate([
|
|
299
277
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
300
278
|
(0, mongoose_1.Prop)({ required: false }),
|
|
@@ -349,10 +327,10 @@ __decorate([
|
|
|
349
327
|
__metadata("design:type", String)
|
|
350
328
|
], Site.prototype, "consentFileUrl", void 0);
|
|
351
329
|
__decorate([
|
|
352
|
-
(0, swagger_1.
|
|
353
|
-
(0, mongoose_1.Prop)({
|
|
354
|
-
(0, class_validator_1.
|
|
355
|
-
__metadata("design:type",
|
|
330
|
+
(0, swagger_1.ApiProperty)(),
|
|
331
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
332
|
+
(0, class_validator_1.IsArray)(),
|
|
333
|
+
__metadata("design:type", Array)
|
|
356
334
|
], Site.prototype, "consumptionIndexes", void 0);
|
|
357
335
|
__decorate([
|
|
358
336
|
(0, swagger_1.ApiProperty)(),
|
package/dist/core/User.d.ts
CHANGED
package/dist/core/User.js
CHANGED
|
@@ -600,17 +600,6 @@ __decorate([
|
|
|
600
600
|
(0, class_validator_1.IsOptional)(),
|
|
601
601
|
__metadata("design:type", tokenData)
|
|
602
602
|
], User.prototype, "tokenData", void 0);
|
|
603
|
-
__decorate([
|
|
604
|
-
(0, swagger_1.ApiProperty)({
|
|
605
|
-
description: 'Date interne de création (legacy)',
|
|
606
|
-
example: '30-04-2024',
|
|
607
|
-
type: String,
|
|
608
|
-
}),
|
|
609
|
-
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
610
|
-
(0, class_validator_1.IsOptional)(),
|
|
611
|
-
(0, class_validator_1.IsString)(),
|
|
612
|
-
__metadata("design:type", String)
|
|
613
|
-
], User.prototype, "_createdAt", void 0);
|
|
614
603
|
__decorate([
|
|
615
604
|
(0, swagger_1.ApiProperty)({
|
|
616
605
|
description: 'Date de dernière connexion (legacy)',
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export * from './core/internal/battery-params';
|
|
|
28
28
|
export * from './core/internal/bounding-box';
|
|
29
29
|
export * from './core/internal/building-data';
|
|
30
30
|
export * from './core/internal/building-stats';
|
|
31
|
-
export * from './core/internal/consumption-indexes';
|
|
32
31
|
export * from './core/internal/conversion-params';
|
|
33
32
|
export * from './core/internal/customer-infos.model';
|
|
34
33
|
export * from './core/internal/data-source-history';
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,6 @@ __exportStar(require("./core/internal/battery-params"), exports);
|
|
|
74
74
|
__exportStar(require("./core/internal/bounding-box"), exports);
|
|
75
75
|
__exportStar(require("./core/internal/building-data"), exports);
|
|
76
76
|
__exportStar(require("./core/internal/building-stats"), exports);
|
|
77
|
-
__exportStar(require("./core/internal/consumption-indexes"), exports);
|
|
78
77
|
__exportStar(require("./core/internal/conversion-params"), exports);
|
|
79
78
|
__exportStar(require("./core/internal/customer-infos.model"), exports);
|
|
80
79
|
__exportStar(require("./core/internal/data-source-history"), exports);
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class ConsumptionIndexes {
|
|
2
|
-
consumptionIndexes: number[][];
|
|
3
|
-
}
|
|
4
|
-
export declare const ConsumptionIndexesSchema: import("mongoose").Schema<ConsumptionIndexes, import("mongoose").Model<ConsumptionIndexes, any, any, any, import("mongoose").Document<unknown, any, ConsumptionIndexes, any, {}> & ConsumptionIndexes & {
|
|
5
|
-
_id: import("mongoose").Types.ObjectId;
|
|
6
|
-
} & {
|
|
7
|
-
__v: number;
|
|
8
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ConsumptionIndexes, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ConsumptionIndexes>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ConsumptionIndexes> & {
|
|
9
|
-
_id: import("mongoose").Types.ObjectId;
|
|
10
|
-
} & {
|
|
11
|
-
__v: number;
|
|
12
|
-
}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ConsumptionIndexesSchema = exports.ConsumptionIndexes = void 0;
|
|
13
|
-
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
let ConsumptionIndexes = class ConsumptionIndexes {
|
|
15
|
-
};
|
|
16
|
-
exports.ConsumptionIndexes = ConsumptionIndexes;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, mongoose_1.Prop)({ type: [[Number]] }),
|
|
19
|
-
__metadata("design:type", Array)
|
|
20
|
-
], ConsumptionIndexes.prototype, "consumptionIndexes", void 0);
|
|
21
|
-
exports.ConsumptionIndexes = ConsumptionIndexes = __decorate([
|
|
22
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
23
|
-
], ConsumptionIndexes);
|
|
24
|
-
exports.ConsumptionIndexesSchema = mongoose_1.SchemaFactory.createForClass(ConsumptionIndexes);
|