@likewatt/models 1.63.0 → 1.64.1
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/Customer.d.ts +1 -1
- package/dist/core/Customer.js +1 -1
- package/dist/core/Site.js +2 -0
- package/package.json +2 -1
package/dist/core/Customer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
/**
|
|
3
3
|
* Représente un utilisateur dans le système.
|
|
4
|
-
* - @Schema/timestamps : gère
|
|
4
|
+
* - @Schema/timestamps : gère creaxtedAt et updatedAt automatiques
|
|
5
5
|
* - @Prop : schéma Mongoose
|
|
6
6
|
* - @ApiProperty : documentation Swagger
|
|
7
7
|
* - class-validator rules : validation runtime
|
package/dist/core/Customer.js
CHANGED
|
@@ -16,7 +16,7 @@ const uuid_1 = require("uuid");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
/**
|
|
18
18
|
* Représente un utilisateur dans le système.
|
|
19
|
-
* - @Schema/timestamps : gère
|
|
19
|
+
* - @Schema/timestamps : gère creaxtedAt et updatedAt automatiques
|
|
20
20
|
* - @Prop : schéma Mongoose
|
|
21
21
|
* - @ApiProperty : documentation Swagger
|
|
22
22
|
* - class-validator rules : validation runtime
|
package/dist/core/Site.js
CHANGED
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
18
|
const enums_1 = require("./internal/enums");
|
|
18
19
|
const energy_price_model_1 = require("./internal/energy-price.model");
|
|
19
20
|
const peak_hour_model_1 = require("./internal/peak-hour.model");
|
|
@@ -230,6 +231,7 @@ __decorate([
|
|
|
230
231
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
231
232
|
(0, class_validator_1.IsOptional)(),
|
|
232
233
|
(0, class_validator_1.IsDate)(),
|
|
234
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
233
235
|
__metadata("design:type", Object)
|
|
234
236
|
], Site.prototype, "automaticUpdateRetryAt", void 0);
|
|
235
237
|
__decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likewatt/models",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.64.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nestjs/mongoose": "^11.0.3",
|
|
34
34
|
"@nestjs/swagger": "^11.2.0",
|
|
35
|
+
"class-transformer": "^0.5.1",
|
|
35
36
|
"class-validator": "^0.14.2",
|
|
36
37
|
"eslint": "^9.26.0",
|
|
37
38
|
"eslint-config-prettier": "^10.1.5",
|