@likewatt/models 1.4.0 → 1.4.2
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/User.d.ts +2 -0
- package/dist/core/User.js +7 -0
- package/dist/core/internal/energy-inflation-rates.d.ts +14 -0
- package/dist/core/internal/{energy-inflation-rate.js → energy-inflation-rates.js} +9 -9
- package/dist/core/internal/grid-params.d.ts +2 -2
- package/dist/core/internal/grid-params.js +2 -2
- package/dist/core/internal/users-list.d.ts +14 -0
- package/dist/core/internal/users-list.js +36 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/core/internal/energy-inflation-rate.d.ts +0 -14
package/dist/core/User.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
import { Folder } from './internal/folder.model';
|
|
3
3
|
import { ManagerLicenses } from './internal/manager-licenses';
|
|
4
|
+
import { UsersList } from './internal/users-list';
|
|
4
5
|
/**
|
|
5
6
|
* Sous-schéma pour les tags liés au site de l’utilisateur.
|
|
6
7
|
*/
|
|
@@ -76,6 +77,7 @@ export declare class User {
|
|
|
76
77
|
defaultRates: string[];
|
|
77
78
|
defaultScenarios: string[];
|
|
78
79
|
lastname: string;
|
|
80
|
+
usersList?: UsersList;
|
|
79
81
|
phone?: string;
|
|
80
82
|
company?: string;
|
|
81
83
|
organization?: string;
|
package/dist/core/User.js
CHANGED
|
@@ -16,6 +16,7 @@ const uuid_1 = require("uuid");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
const folder_model_1 = require("./internal/folder.model");
|
|
18
18
|
const manager_licenses_1 = require("./internal/manager-licenses");
|
|
19
|
+
const users_list_1 = require("./internal/users-list");
|
|
19
20
|
/**
|
|
20
21
|
* Sous-schéma pour les tags liés au site de l’utilisateur.
|
|
21
22
|
*/
|
|
@@ -226,6 +227,12 @@ __decorate([
|
|
|
226
227
|
(0, class_validator_1.IsString)(),
|
|
227
228
|
__metadata("design:type", String)
|
|
228
229
|
], User.prototype, "lastname", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, swagger_1.ApiProperty)({ type: users_list_1.UsersList }),
|
|
232
|
+
(0, mongoose_1.Prop)({ type: users_list_1.UsersListSchema }),
|
|
233
|
+
(0, class_validator_1.IsObject)(),
|
|
234
|
+
__metadata("design:type", users_list_1.UsersList)
|
|
235
|
+
], User.prototype, "usersList", void 0);
|
|
229
236
|
__decorate([
|
|
230
237
|
(0, swagger_1.ApiProperty)({
|
|
231
238
|
description: 'Numéro de téléphone',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class EnergyInflationRates {
|
|
2
|
+
id: string;
|
|
3
|
+
period: number;
|
|
4
|
+
energyInflationRate: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const EnergyInflationRatesSchema: import("mongoose").Schema<EnergyInflationRates, import("mongoose").Model<EnergyInflationRates, any, any, any, import("mongoose").Document<unknown, any, EnergyInflationRates, any, {}> & EnergyInflationRates & {
|
|
7
|
+
_id: import("mongoose").Types.ObjectId;
|
|
8
|
+
} & {
|
|
9
|
+
__v: number;
|
|
10
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EnergyInflationRates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<EnergyInflationRates>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<EnergyInflationRates> & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}>;
|
|
@@ -9,28 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.EnergyInflationRatesSchema = exports.EnergyInflationRates = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
let
|
|
15
|
+
let EnergyInflationRates = class EnergyInflationRates {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.EnergyInflationRates = EnergyInflationRates;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, mongoose_1.Prop)({ required: true }),
|
|
20
20
|
(0, class_validator_1.IsString)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], EnergyInflationRates.prototype, "id", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, mongoose_1.Prop)({ required: true }),
|
|
25
25
|
(0, class_validator_1.IsNumber)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
|
-
],
|
|
27
|
+
], EnergyInflationRates.prototype, "period", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, mongoose_1.Prop)({ required: true }),
|
|
30
30
|
(0, class_validator_1.IsNumber)(),
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
|
-
],
|
|
33
|
-
exports.
|
|
32
|
+
], EnergyInflationRates.prototype, "energyInflationRate", void 0);
|
|
33
|
+
exports.EnergyInflationRates = EnergyInflationRates = __decorate([
|
|
34
34
|
(0, mongoose_1.Schema)({ _id: false })
|
|
35
|
-
],
|
|
36
|
-
exports.
|
|
35
|
+
], EnergyInflationRates);
|
|
36
|
+
exports.EnergyInflationRatesSchema = mongoose_1.SchemaFactory.createForClass(EnergyInflationRates);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnergyInflationRates } from './energy-inflation-rates';
|
|
2
2
|
export declare class GridParams {
|
|
3
3
|
ACI: number;
|
|
4
4
|
energyInflation: number;
|
|
@@ -14,5 +14,5 @@ export declare class GridParams {
|
|
|
14
14
|
demandMultiplier: number;
|
|
15
15
|
includeTVA: number;
|
|
16
16
|
includeTURPE: number;
|
|
17
|
-
energyInflationRates:
|
|
17
|
+
energyInflationRates: EnergyInflationRates[];
|
|
18
18
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.GridParams = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const energy_inflation_rates_1 = require("./energy-inflation-rates");
|
|
16
16
|
let GridParams = class GridParams {
|
|
17
17
|
};
|
|
18
18
|
exports.GridParams = GridParams;
|
|
@@ -87,7 +87,7 @@ __decorate([
|
|
|
87
87
|
__metadata("design:type", Number)
|
|
88
88
|
], GridParams.prototype, "includeTURPE", void 0);
|
|
89
89
|
__decorate([
|
|
90
|
-
(0, mongoose_1.Prop)({ type: [
|
|
90
|
+
(0, mongoose_1.Prop)({ type: [energy_inflation_rates_1.EnergyInflationRatesSchema], required: true }),
|
|
91
91
|
(0, class_validator_1.IsArray)(),
|
|
92
92
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
93
93
|
__metadata("design:type", Array)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class UsersList {
|
|
2
|
+
status: string;
|
|
3
|
+
email: string;
|
|
4
|
+
uid?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const UsersListSchema: import("mongoose").Schema<UsersList, import("mongoose").Model<UsersList, any, any, any, import("mongoose").Document<unknown, any, UsersList, any, {}> & UsersList & {
|
|
7
|
+
_id: import("mongoose").Types.ObjectId;
|
|
8
|
+
} & {
|
|
9
|
+
__v: number;
|
|
10
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UsersList, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<UsersList>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<UsersList> & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.UsersListSchema = exports.UsersList = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let UsersList = class UsersList {
|
|
16
|
+
};
|
|
17
|
+
exports.UsersList = UsersList;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UsersList.prototype, "status", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UsersList.prototype, "email", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UsersList.prototype, "uid", void 0);
|
|
33
|
+
exports.UsersList = UsersList = __decorate([
|
|
34
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
35
|
+
], UsersList);
|
|
36
|
+
exports.UsersListSchema = mongoose_1.SchemaFactory.createForClass(UsersList);
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export * from './core/internal/data-source-history';
|
|
|
35
35
|
export * from './core/internal/default-ppa-tarif';
|
|
36
36
|
export * from './core/internal/ecs-params';
|
|
37
37
|
export * from './core/internal/electrolyse-params';
|
|
38
|
-
export * from './core/internal/energy-inflation-
|
|
38
|
+
export * from './core/internal/energy-inflation-rates';
|
|
39
39
|
export * from './core/internal/energy-price.model';
|
|
40
40
|
export * from './core/internal/energy-price-tempo.model';
|
|
41
41
|
export * from './core/internal/financing-type';
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __exportStar(require("./core/internal/data-source-history"), exports);
|
|
|
59
59
|
__exportStar(require("./core/internal/default-ppa-tarif"), exports);
|
|
60
60
|
__exportStar(require("./core/internal/ecs-params"), exports);
|
|
61
61
|
__exportStar(require("./core/internal/electrolyse-params"), exports);
|
|
62
|
-
__exportStar(require("./core/internal/energy-inflation-
|
|
62
|
+
__exportStar(require("./core/internal/energy-inflation-rates"), exports);
|
|
63
63
|
__exportStar(require("./core/internal/energy-price.model"), exports);
|
|
64
64
|
__exportStar(require("./core/internal/energy-price-tempo.model"), exports);
|
|
65
65
|
__exportStar(require("./core/internal/financing-type"), exports);
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare class EnergyInflationRate {
|
|
2
|
-
id: string;
|
|
3
|
-
period: number;
|
|
4
|
-
energyInflationRate: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const EnergyInflationRateSchema: import("mongoose").Schema<EnergyInflationRate, import("mongoose").Model<EnergyInflationRate, any, any, any, import("mongoose").Document<unknown, any, EnergyInflationRate, any, {}> & EnergyInflationRate & {
|
|
7
|
-
_id: import("mongoose").Types.ObjectId;
|
|
8
|
-
} & {
|
|
9
|
-
__v: number;
|
|
10
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EnergyInflationRate, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<EnergyInflationRate>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<EnergyInflationRate> & {
|
|
11
|
-
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
} & {
|
|
13
|
-
__v: number;
|
|
14
|
-
}>;
|