@likewatt/models-front 1.110.0 → 1.111.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.
@@ -9,6 +9,15 @@ export interface ConsentFraudFlag {
9
9
  detail?: Record<string, unknown>;
10
10
  createdAt?: Date | string;
11
11
  }
12
+ /**
13
+ * Ligne de la table ACC (nom de compteur + PDL), figée à la création d'une
14
+ * demande de consentement ACC multi-PDL. Miroir front de `ConsentMeterRow`
15
+ * (@likewatt/models) ; `Consent.pdls[]` en est dérivé.
16
+ */
17
+ export interface ConsentMeterRow {
18
+ name: string;
19
+ pdl: string;
20
+ }
12
21
  export interface Consent {
13
22
  _id?: string;
14
23
  _createdAt: Date;
@@ -24,10 +33,12 @@ export interface Consent {
24
33
  lastname?: string;
25
34
  logo?: string;
26
35
  mesureConsent: boolean;
27
- siteId: string;
36
+ siteId?: string;
28
37
  updatedAt?: Date;
29
38
  pdls?: string[];
30
39
  collectiveSiteId?: string;
40
+ meterRows?: ConsentMeterRow[];
41
+ metersGeneratedAt?: Date | string;
31
42
  fileKey?: string;
32
43
  via?: 'email' | 'upload';
33
44
  isValidateConsent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.110.0",
3
+ "version": "1.111.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",