@likewatt/models-front 1.9.2 → 1.10.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.
@@ -10,7 +10,7 @@ import { PeakHour } from '../site/PeakHour.types';
10
10
  import { RestOfTheYearTarifs } from '../site/RestOfTheYearTarifs.types';
11
11
  import { Tarif } from '../site/Tarif.types';
12
12
  export interface Site {
13
- _id?: string;
13
+ _id: string;
14
14
  country: string;
15
15
  energyPrices: EnergyPrice[];
16
16
  purchaseAreaOfTension: string;
@@ -24,7 +24,7 @@ export interface Site {
24
24
  subscriptionRates: number;
25
25
  address: string;
26
26
  ratesOption: string;
27
- owner: string;
27
+ owner?: string;
28
28
  name: string;
29
29
  isC_AND_I: boolean;
30
30
  addressDepartementNum: number;
@@ -32,50 +32,49 @@ export interface Site {
32
32
  subscribedPowers: EnergyPrice[];
33
33
  addressCity: string;
34
34
  addressDepartement: string;
35
- reportURL: string;
36
35
  enedisNumber: string;
37
36
  strasbourgNumber: string;
38
37
  startDate: Date | string;
39
38
  endDate: Date | string;
40
- automaticUpdateError?: string;
39
+ automaticUpdateError: string | null;
41
40
  scenario?: string;
42
41
  user: string;
43
42
  profile: Profiles;
44
43
  collectiveSiteId?: string;
45
- folder?: string;
44
+ folder: string;
46
45
  initialOwner: string;
47
46
  isExtractingData?: boolean;
48
47
  customerInfos?: CustomerInfos;
49
- TCSPE: number;
50
- TURPE_VERSION: number;
48
+ TCSPE?: number;
49
+ TURPE_VERSION?: number;
51
50
  _createdAt: Date | string;
52
51
  _lastModified: Date | string;
53
- _lastUpdated: string;
54
- _step3: boolean;
55
- _step3At: Date | string;
56
- analysisYear: number;
57
- buildingData?: BuildingData;
58
- autoCO2?: boolean;
59
- co2rate?: number;
52
+ _lastUpdated: Date | string;
53
+ _step3?: boolean;
54
+ _step3At?: Date | string;
55
+ analysisYear?: number;
56
+ buildingData?: BuildingData | null;
57
+ autoCO2: boolean;
58
+ co2rate: number | null;
60
59
  connectingPower: number;
61
- consentFileUrl: string;
62
- consumptionIndexes: ConsumptionIndexes;
60
+ consentFileUrl?: string;
61
+ consumptionIndexes?: ConsumptionIndexes;
63
62
  creator: string;
64
63
  currency: string;
65
64
  customerConsentEmail: string;
66
65
  customerConsentFirstName: string;
67
66
  customerConsentLastName: string;
68
- dataIsHybridFrom: string;
69
- dataSource: string;
70
- selectedDataSource: string;
67
+ dataIsHybridFrom?: string;
68
+ dataSource?: string;
69
+ selectedDataSource?: string;
71
70
  dataSourceHistory: DataSourceHistory[];
72
71
  disabled: boolean;
73
- enedisBuffer: string;
74
- enedisData: boolean;
72
+ enedisBuffer?: string;
73
+ enedisData?: boolean;
75
74
  energyPricesTempo: EnergyPriceTempo[];
76
75
  energyPricesWe: EnergyPrice[];
77
- error: string;
78
- faltyPrm?: string;
76
+ error?: string;
77
+ faltyPrm: string | null | boolean;
79
78
  hasConsentData: boolean;
80
79
  hasPeakHours: boolean;
81
80
  hasWeekendPricing: boolean;
@@ -83,8 +82,8 @@ export interface Site {
83
82
  includeTVA: boolean;
84
83
  isConsentMailSent: boolean;
85
84
  isFullSellOut: boolean;
86
- maxEndDate: Date | string;
87
- maxStartDate: Date | string;
85
+ maxEndDate?: Date | string;
86
+ maxStartDate?: Date | string;
88
87
  meterOwner: string;
89
88
  monthlyConsumptionIndex: boolean;
90
89
  restOfTheYearTarifs: RestOfTheYearTarifs;
@@ -93,5 +92,5 @@ export interface Site {
93
92
  tarifs: Tarif[];
94
93
  tempoPricing: boolean;
95
94
  timezone: number;
96
- TMYstatus: number;
95
+ TMYstatus?: number;
97
96
  }
@@ -58,15 +58,14 @@ export declare enum SiteType {
58
58
  CONSUMER_PLUS = "CONSUMER_PLUS"
59
59
  }
60
60
  export declare enum Profiles {
61
- 'NONE' = "NONE",
61
+ 'NONE' = "",
62
62
  'RES_BASE_INF_6' = "RES_BASE_INF_6",
63
63
  'RES_BASE_SUP_6' = "RES_BASE_SUP_6",
64
64
  RES_HP_HC = "RES_HP_HC",
65
65
  PRO_BASE = "PRO_BASE",
66
66
  PRO_HP_HC = "PRO_HP_HC",
67
67
  ENT_BT_SUP = "ENT_BT_SUP",
68
- ENT_HTA = "ENT_HTA",
69
- BBR = "BBR"
68
+ ENT_HTA = "ENT_HTA"
70
69
  }
71
70
  export declare enum FinancingTypeEnum {
72
71
  INVESTMENT = "Investissement",
@@ -65,7 +65,7 @@ var SiteType;
65
65
  })(SiteType || (exports.SiteType = SiteType = {}));
66
66
  var Profiles;
67
67
  (function (Profiles) {
68
- Profiles["NONE"] = "NONE";
68
+ Profiles["NONE"] = "";
69
69
  Profiles["RES_BASE_INF_6"] = "RES_BASE_INF_6";
70
70
  Profiles["RES_BASE_SUP_6"] = "RES_BASE_SUP_6";
71
71
  Profiles["RES_HP_HC"] = "RES_HP_HC";
@@ -73,7 +73,6 @@ var Profiles;
73
73
  Profiles["PRO_HP_HC"] = "PRO_HP_HC";
74
74
  Profiles["ENT_BT_SUP"] = "ENT_BT_SUP";
75
75
  Profiles["ENT_HTA"] = "ENT_HTA";
76
- Profiles["BBR"] = "BBR";
77
76
  })(Profiles || (exports.Profiles = Profiles = {}));
78
77
  var FinancingTypeEnum;
79
78
  (function (FinancingTypeEnum) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.9.2",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",