@likewatt/models 1.72.3 → 1.74.0
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 +2 -1
- package/dist/core/Consent.js +5 -5
- package/dist/core/Site.d.ts +8 -0
- package/dist/core/Site.js +7 -0
- package/package.json +1 -1
package/dist/core/Consent.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Document, Types } from 'mongoose';
|
|
2
|
+
import { User } from './User';
|
|
2
3
|
/**
|
|
3
4
|
* Représente un utilisateur dans le système.
|
|
4
5
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -11,7 +12,7 @@ export declare class Consent {
|
|
|
11
12
|
companyName: string;
|
|
12
13
|
contractConsent: boolean;
|
|
13
14
|
courbeConsent: boolean;
|
|
14
|
-
|
|
15
|
+
user: User;
|
|
15
16
|
date?: Date;
|
|
16
17
|
email: string;
|
|
17
18
|
enedisNumber: string;
|
package/dist/core/Consent.js
CHANGED
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("mongoose");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const mongoose_2 = require("@nestjs/mongoose");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
|
+
const User_1 = require("./User");
|
|
17
18
|
/**
|
|
18
19
|
* Représente un utilisateur dans le système.
|
|
19
20
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -67,11 +68,10 @@ __decorate([
|
|
|
67
68
|
description: 'Client associé au consentement',
|
|
68
69
|
example: 'user@example.com',
|
|
69
70
|
}),
|
|
70
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
71
|
-
(0, class_validator_1.
|
|
72
|
-
(
|
|
73
|
-
|
|
74
|
-
], Consent.prototype, "customer", void 0);
|
|
71
|
+
(0, mongoose_2.Prop)({ type: String, required: true }),
|
|
72
|
+
(0, class_validator_1.IsObject)(),
|
|
73
|
+
__metadata("design:type", User_1.User)
|
|
74
|
+
], Consent.prototype, "user", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, swagger_1.ApiProperty)({
|
|
77
77
|
description: 'Date du consentement',
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -42,6 +42,14 @@ export declare class Site {
|
|
|
42
42
|
endDate?: Date | string;
|
|
43
43
|
automaticUpdateError?: string | null;
|
|
44
44
|
automaticUpdateErrorHint?: RetryHint | null;
|
|
45
|
+
/**
|
|
46
|
+
* Structured error code (e.g. 'SGT500', 'UPSTREAM_5XX', 'NETWORK', '404',
|
|
47
|
+
* 'SGT589'). Source of truth for the frontend retry-policy classifier;
|
|
48
|
+
* preferred over regex-parsing the `[CODE] message` prefix in
|
|
49
|
+
* `automaticUpdateError`, which remains for backward-compat with sites
|
|
50
|
+
* persisted before this field existed.
|
|
51
|
+
*/
|
|
52
|
+
automaticUpdateErrorCode?: string | null;
|
|
45
53
|
automaticUpdateRetryAt?: Date | null;
|
|
46
54
|
scenario?: string;
|
|
47
55
|
user?: string;
|
package/dist/core/Site.js
CHANGED
|
@@ -226,6 +226,13 @@ __decorate([
|
|
|
226
226
|
(0, class_validator_1.IsEnum)(RetryHint_1.RetryHint),
|
|
227
227
|
__metadata("design:type", Object)
|
|
228
228
|
], Site.prototype, "automaticUpdateErrorHint", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
231
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
232
|
+
(0, class_validator_1.IsOptional)(),
|
|
233
|
+
(0, class_validator_1.IsString)(),
|
|
234
|
+
__metadata("design:type", Object)
|
|
235
|
+
], Site.prototype, "automaticUpdateErrorCode", void 0);
|
|
229
236
|
__decorate([
|
|
230
237
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
231
238
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|