@likewatt/models 1.77.0 → 1.78.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/Consent.d.ts +1 -2
- package/dist/core/Consent.js +5 -6
- package/package.json +1 -1
package/dist/core/Consent.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
|
-
import { User } from './User';
|
|
3
2
|
/**
|
|
4
3
|
* Représente un utilisateur dans le système.
|
|
5
4
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -12,7 +11,7 @@ export declare class Consent {
|
|
|
12
11
|
companyName: string;
|
|
13
12
|
contractConsent: boolean;
|
|
14
13
|
courbeConsent: boolean;
|
|
15
|
-
|
|
14
|
+
userId: string;
|
|
16
15
|
date?: Date;
|
|
17
16
|
email: string;
|
|
18
17
|
enedisNumber: string;
|
package/dist/core/Consent.js
CHANGED
|
@@ -13,7 +13,6 @@ exports.ConsentSchema = exports.Consent = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const User_1 = require("./User");
|
|
17
16
|
/**
|
|
18
17
|
* Représente un utilisateur dans le système.
|
|
19
18
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -65,13 +64,13 @@ __decorate([
|
|
|
65
64
|
], Consent.prototype, "courbeConsent", void 0);
|
|
66
65
|
__decorate([
|
|
67
66
|
(0, swagger_1.ApiProperty)({
|
|
68
|
-
description: '
|
|
69
|
-
example: '
|
|
67
|
+
description: 'Id du client associé au consentement',
|
|
68
|
+
example: 'xsv1Le1531vreUHGIUfrv',
|
|
70
69
|
}),
|
|
71
70
|
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
72
|
-
(0, class_validator_1.
|
|
73
|
-
__metadata("design:type",
|
|
74
|
-
], Consent.prototype, "
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Consent.prototype, "userId", void 0);
|
|
75
74
|
__decorate([
|
|
76
75
|
(0, swagger_1.ApiProperty)({
|
|
77
76
|
description: 'Date du consentement',
|