@likewatt/models-front 1.107.1 → 1.109.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.
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signal anti-fraude posé sur un consentement (voir gateway
|
|
3
|
+
* ConsentAntiFraudService). Miroir front de `ConsentFraudFlag` (@likewatt/models).
|
|
4
|
+
*/
|
|
5
|
+
export interface ConsentFraudFlag {
|
|
6
|
+
level: 'N1' | 'N2';
|
|
7
|
+
code: string;
|
|
8
|
+
reason?: string;
|
|
9
|
+
detail?: Record<string, unknown>;
|
|
10
|
+
createdAt?: Date | string;
|
|
11
|
+
}
|
|
1
12
|
export interface Consent {
|
|
2
13
|
_id?: string;
|
|
3
14
|
_createdAt: Date;
|
|
@@ -23,4 +34,9 @@ export interface Consent {
|
|
|
23
34
|
dateConsentCheck?: Date | string;
|
|
24
35
|
pdlNotCovered?: boolean;
|
|
25
36
|
flagReason?: string;
|
|
37
|
+
fraudFlags?: Array<ConsentFraudFlag>;
|
|
38
|
+
fraudReviewStatus?: 'pending' | 'legit' | 'fraud';
|
|
39
|
+
fraudReviewNote?: string;
|
|
40
|
+
fraudReviewedBy?: string;
|
|
41
|
+
fraudReviewedAt?: Date | string;
|
|
26
42
|
}
|
package/dist/core/User.type.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export declare class User {
|
|
|
95
95
|
isWorkspaceAdmin?: boolean;
|
|
96
96
|
principalUser?: string;
|
|
97
97
|
publicApi: boolean;
|
|
98
|
+
/** Accès bêta à l'Assistant Optiwize (hérité par les utilisateurs enfants). */
|
|
99
|
+
assistantBeta?: boolean;
|
|
98
100
|
type?: string;
|
|
99
101
|
domain?: string;
|
|
100
102
|
license?: string;
|