@likewatt/models-front 1.77.1 → 1.79.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,11 +1,10 @@
|
|
|
1
|
-
import { User } from './User.type';
|
|
2
1
|
export interface Consent {
|
|
3
2
|
_id?: string;
|
|
4
3
|
_createdAt: Date;
|
|
5
4
|
companyName: string;
|
|
6
5
|
contractConsent: boolean;
|
|
7
6
|
courbeConsent: boolean;
|
|
8
|
-
|
|
7
|
+
userId: string;
|
|
9
8
|
date?: Date;
|
|
10
9
|
email: string;
|
|
11
10
|
enedisNumber: string;
|
|
@@ -47,6 +47,14 @@ export interface Site {
|
|
|
47
47
|
*/
|
|
48
48
|
automaticUpdateErrorCode?: string | null;
|
|
49
49
|
automaticUpdateRetryAt?: Date | string | null;
|
|
50
|
+
/**
|
|
51
|
+
* `true` once BullMQ has exhausted all auto-retries for a transient error
|
|
52
|
+
* (no more `RETRY_LONG` attempts left). Used by the front to enable the
|
|
53
|
+
* manual "Réessayer" button only when the worker has given up — while a
|
|
54
|
+
* retry is still pending the button stays hidden. `null` on clean sites or
|
|
55
|
+
* UNRECOVERABLE errors.
|
|
56
|
+
*/
|
|
57
|
+
automaticUpdateRetryExhausted?: boolean | null;
|
|
50
58
|
scenario?: string;
|
|
51
59
|
user: string;
|
|
52
60
|
profile?: Profiles;
|