@likewatt/models 1.0.67 → 1.0.69
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/README.md +2 -2
- package/dist/core/User.d.ts +12 -0
- package/dist/core/User.js +80 -0
- package/dist/core/internal/enssential.d.ts +15 -0
- package/dist/core/internal/enssential.js +41 -0
- package/dist/core/internal/manager-licenses.d.ts +15 -0
- package/dist/core/internal/manager-licenses.js +37 -0
- package/dist/frontend/BatteryParams.types.d.ts +14 -0
- package/dist/frontend/BatteryParams.types.js +2 -0
- package/dist/frontend/BoundingBox.types.d.ts +4 -0
- package/dist/frontend/BoundingBox.types.js +2 -0
- package/dist/frontend/BuildingData.types.d.ts +13 -0
- package/dist/frontend/BuildingData.types.js +2 -0
- package/dist/frontend/BuildingStats.types.d.ts +5 -0
- package/dist/frontend/BuildingStats.types.js +2 -0
- package/dist/frontend/CollectiveSite.types.d.ts +30 -0
- package/dist/frontend/CollectiveSite.types.js +2 -0
- package/dist/frontend/ConsumptionIndexes.types.d.ts +14 -0
- package/dist/frontend/ConsumptionIndexes.types.js +2 -0
- package/dist/frontend/ConversionParams.types.d.ts +11 -0
- package/dist/frontend/ConversionParams.types.js +2 -0
- package/dist/frontend/CustomerInfos.types.d.ts +8 -0
- package/dist/frontend/CustomerInfos.types.js +2 -0
- package/dist/frontend/DataSourceHistory.types.d.ts +4 -0
- package/dist/frontend/DataSourceHistory.types.js +2 -0
- package/dist/frontend/DefaultPPATarif.types.d.ts +5 -0
- package/dist/frontend/DefaultPPATarif.types.js +2 -0
- package/dist/frontend/ECSParams.types.d.ts +12 -0
- package/dist/frontend/ECSParams.types.js +2 -0
- package/dist/frontend/ElectrolyseParams.types.d.ts +12 -0
- package/dist/frontend/ElectrolyseParams.types.js +2 -0
- package/dist/frontend/EnergyInflationRate.types.d.ts +5 -0
- package/dist/frontend/EnergyInflationRate.types.js +2 -0
- package/dist/frontend/EnergyPrice.types.d.ts +8 -0
- package/dist/frontend/EnergyPrice.types.js +2 -0
- package/dist/frontend/EnergyPriceTempo.types.d.ts +9 -0
- package/dist/frontend/EnergyPriceTempo.types.js +2 -0
- package/dist/frontend/FinancingType.types.d.ts +6 -0
- package/dist/frontend/FinancingType.types.js +2 -0
- package/dist/frontend/Folder.types.d.ts +4 -0
- package/dist/frontend/Folder.types.js +2 -0
- package/dist/frontend/FuelCellParams.types.d.ts +14 -0
- package/dist/frontend/FuelCellParams.types.js +2 -0
- package/dist/frontend/GeneratorParams.types.d.ts +14 -0
- package/dist/frontend/GeneratorParams.types.js +2 -0
- package/dist/frontend/GridParams.types.d.ts +18 -0
- package/dist/frontend/GridParams.types.js +2 -0
- package/dist/frontend/H2StorageParams.types.d.ts +12 -0
- package/dist/frontend/H2StorageParams.types.js +2 -0
- package/dist/frontend/ImageryDate.types.d.ts +5 -0
- package/dist/frontend/ImageryDate.types.js +2 -0
- package/dist/frontend/OffPeakHour.types.d.ts +5 -0
- package/dist/frontend/OffPeakHour.types.js +2 -0
- package/dist/frontend/OptimizationParams.types.d.ts +8 -0
- package/dist/frontend/OptimizationParams.types.js +2 -0
- package/dist/frontend/PV2Params.types.d.ts +39 -0
- package/dist/frontend/PV2Params.types.js +2 -0
- package/dist/frontend/PVParams.types.d.ts +38 -0
- package/dist/frontend/PVParams.types.js +2 -0
- package/dist/frontend/PeakHour.types.d.ts +4 -0
- package/dist/frontend/PeakHour.types.js +2 -0
- package/dist/frontend/PowerCostConfig.types.d.ts +7 -0
- package/dist/frontend/PowerCostConfig.types.js +2 -0
- package/dist/frontend/RestOfTheYearTarifs.types.d.ts +5 -0
- package/dist/frontend/RestOfTheYearTarifs.types.js +2 -0
- package/dist/frontend/Scenario.types.d.ts +77 -0
- package/dist/frontend/Scenario.types.js +2 -0
- package/dist/frontend/ScenarioDefaultValue.types.d.ts +50 -0
- package/dist/frontend/ScenarioDefaultValue.types.js +2 -0
- package/dist/frontend/ScenarioParams.types.d.ts +9 -0
- package/dist/frontend/ScenarioParams.types.js +2 -0
- package/dist/frontend/Site.types.d.ts +97 -0
- package/dist/frontend/Site.types.js +2 -0
- package/dist/frontend/SolarPotential.types.d.ts +16 -0
- package/dist/frontend/SolarPotential.types.js +2 -0
- package/dist/frontend/StationParams.types.d.ts +3 -0
- package/dist/frontend/StationParams.types.js +2 -0
- package/dist/frontend/Tarif.types.d.ts +11 -0
- package/dist/frontend/Tarif.types.js +2 -0
- package/dist/frontend/ThermalStorageParams.types.d.ts +11 -0
- package/dist/frontend/ThermalStorageParams.types.js +2 -0
- package/dist/frontend/Tracker.types.d.ts +9 -0
- package/dist/frontend/Tracker.types.js +2 -0
- package/dist/frontend/TypeORM.types.d.ts +64 -0
- package/dist/frontend/TypeORM.types.js +2 -0
- package/dist/frontend/User.types.d.ts +43 -0
- package/dist/frontend/User.types.js +2 -0
- package/dist/frontend/VSParams.types.d.ts +10 -0
- package/dist/frontend/VSParams.types.js +2 -0
- package/dist/frontend/WindTurbineParams.types.d.ts +20 -0
- package/dist/frontend/WindTurbineParams.types.js +2 -0
- package/dist/frontend/enums.types.d.ts +87 -0
- package/dist/frontend/enums.types.js +98 -0
- package/dist/frontend/index.d.ts +43 -0
- package/dist/frontend/index.js +63 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Tracker } from './Tracker.types';
|
|
2
|
+
import { UseCase } from './enums.types';
|
|
3
|
+
export interface PV2Params {
|
|
4
|
+
tracker: Tracker;
|
|
5
|
+
pv2CapexTableA: number[];
|
|
6
|
+
pv2CapexTableV: number[];
|
|
7
|
+
pv2Opex: number[];
|
|
8
|
+
pv2CapexTot: number;
|
|
9
|
+
pv2OpexTot: number;
|
|
10
|
+
pv2SubTot: number;
|
|
11
|
+
useCase2: UseCase;
|
|
12
|
+
aoBonus2: number;
|
|
13
|
+
orientation2: number[];
|
|
14
|
+
panelYield2: number;
|
|
15
|
+
pv2Lifespan: number;
|
|
16
|
+
pv2SystemLoss: number;
|
|
17
|
+
pv2Surface: number;
|
|
18
|
+
tilt2: number[];
|
|
19
|
+
pv2DegradRate: number;
|
|
20
|
+
pv2PeakPower: number;
|
|
21
|
+
pv2MinAutoConsoRate: number;
|
|
22
|
+
pv2MaxAutoConsoRate: number;
|
|
23
|
+
pv2UsefulArea: number;
|
|
24
|
+
addTurpePV2: number;
|
|
25
|
+
pv2ExistingInstall: number;
|
|
26
|
+
roofTilt2: number;
|
|
27
|
+
pv2SellingPrice: number[];
|
|
28
|
+
pv2PpaBuilderSlots: string[];
|
|
29
|
+
pv2Productible: number;
|
|
30
|
+
pv2PanelPeakPower: number;
|
|
31
|
+
pv2Share: number[];
|
|
32
|
+
pv2Aobonus: number;
|
|
33
|
+
pv2InvertorPowerRate: number;
|
|
34
|
+
pv2Sub: number[];
|
|
35
|
+
pv2SubDuration: number;
|
|
36
|
+
pv2PurchasePrice: number[];
|
|
37
|
+
pv2LeasingLifespan: number;
|
|
38
|
+
pv2DepreciationDuration: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Tracker } from './Tracker.types';
|
|
2
|
+
import { UseCase } from './enums.types';
|
|
3
|
+
export interface PVParams {
|
|
4
|
+
tracker: Tracker;
|
|
5
|
+
pvCapexTableA: number[];
|
|
6
|
+
pvCapexTableV: number[];
|
|
7
|
+
pvOpex: number[];
|
|
8
|
+
pvSub: number[];
|
|
9
|
+
pvCapexTot: number;
|
|
10
|
+
pvOpexTot: number;
|
|
11
|
+
pvSubTot: number;
|
|
12
|
+
pvSubDuration: number;
|
|
13
|
+
pvPurchasePrice: number[];
|
|
14
|
+
useCase: UseCase;
|
|
15
|
+
orientation: number[];
|
|
16
|
+
panelYield: number;
|
|
17
|
+
pvLifespan: number;
|
|
18
|
+
pvSystemLoss: number;
|
|
19
|
+
pvSurface: number;
|
|
20
|
+
pvLeasingLifespan: number;
|
|
21
|
+
tilt: number[];
|
|
22
|
+
pvDegradRate: number;
|
|
23
|
+
pvPeakPower: number;
|
|
24
|
+
pvMinAutoConsoRate: number;
|
|
25
|
+
pvMaxAutoConsoRate: number;
|
|
26
|
+
pvUsefulArea: number;
|
|
27
|
+
addTurpePV: number;
|
|
28
|
+
pvExistingInstall: number;
|
|
29
|
+
roofTilt: number;
|
|
30
|
+
pvSellingPrice: number[];
|
|
31
|
+
pvPpaBuilderSlots: string[];
|
|
32
|
+
pvProductible: number;
|
|
33
|
+
pvPanelPeakPower: number;
|
|
34
|
+
pvShare: number[];
|
|
35
|
+
pvAoBonus: number;
|
|
36
|
+
pvInvertorPowerRate: number;
|
|
37
|
+
pvDepreciationDuration: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export interface Objective {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
unit: string;
|
|
5
|
+
value: number;
|
|
6
|
+
unit2?: string;
|
|
7
|
+
value2?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Month {
|
|
10
|
+
month: number;
|
|
11
|
+
year?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface DemandMultiplierSlot {
|
|
14
|
+
days: number[];
|
|
15
|
+
demandMultiplier?: number;
|
|
16
|
+
endHour?: number;
|
|
17
|
+
id: string;
|
|
18
|
+
months?: Month[];
|
|
19
|
+
startHour?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface DistributionKey {
|
|
22
|
+
type: string;
|
|
23
|
+
values: (string | number)[];
|
|
24
|
+
}
|
|
25
|
+
export interface RateOfGrowth {
|
|
26
|
+
id: string;
|
|
27
|
+
rate: number;
|
|
28
|
+
year?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface Technology {
|
|
31
|
+
id: string;
|
|
32
|
+
index: number;
|
|
33
|
+
type?: number;
|
|
34
|
+
settings: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
export interface ConfigScenario {
|
|
37
|
+
debtDuration?: number;
|
|
38
|
+
debtRatio?: number;
|
|
39
|
+
discountRate?: number;
|
|
40
|
+
interestRate?: number;
|
|
41
|
+
opexInflation?: number;
|
|
42
|
+
sellingPriceInflation?: number;
|
|
43
|
+
taxRate?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ConfigSite {
|
|
46
|
+
ACI?: boolean;
|
|
47
|
+
consumptionReference?: string;
|
|
48
|
+
counterNumber?: number;
|
|
49
|
+
demandMultiplier?: number;
|
|
50
|
+
demandMultiplierSlots?: DemandMultiplierSlot[];
|
|
51
|
+
demandMultiplierUnit?: string;
|
|
52
|
+
distributionKey?: DistributionKey[];
|
|
53
|
+
priorityStage?: number;
|
|
54
|
+
rateOfGrowth?: RateOfGrowth[];
|
|
55
|
+
settings: Record<string, unknown>;
|
|
56
|
+
}
|
|
57
|
+
export interface Scenario {
|
|
58
|
+
_id?: string;
|
|
59
|
+
color?: string;
|
|
60
|
+
configScenario: ConfigScenario;
|
|
61
|
+
configSite?: Record<string, ConfigSite>;
|
|
62
|
+
error?: boolean;
|
|
63
|
+
isDefaultScenario?: boolean;
|
|
64
|
+
leasingLifespan?: number;
|
|
65
|
+
message?: string;
|
|
66
|
+
name?: string;
|
|
67
|
+
objectives?: Objective[];
|
|
68
|
+
optimizationYear?: number;
|
|
69
|
+
priorities?: number[];
|
|
70
|
+
progress?: number;
|
|
71
|
+
projectLifespan?: number;
|
|
72
|
+
sellingPriceInflation?: number;
|
|
73
|
+
siteId?: string;
|
|
74
|
+
technologies?: Technology[];
|
|
75
|
+
version?: number;
|
|
76
|
+
_createdAt?: Date | string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DefaultPPATarif } from './DefaultPPATarif.types';
|
|
2
|
+
import { PowerCostConfig } from './PowerCostConfig.types';
|
|
3
|
+
import { BatteryParams } from './BatteryParams.types';
|
|
4
|
+
import { ConversionParams } from './ConversionParams.types';
|
|
5
|
+
import { FuelCellParams } from './FuelCellParams.types';
|
|
6
|
+
import { GeneratorParams } from './GeneratorParams.types';
|
|
7
|
+
import { GridParams } from './GridParams.types';
|
|
8
|
+
import { PVParams } from './PVParams.types';
|
|
9
|
+
import { PV2Params } from './PV2Params.types';
|
|
10
|
+
import { VSParams } from './VSParams.types';
|
|
11
|
+
import { WindTurbineParams } from './WindTurbineParams.types';
|
|
12
|
+
import { ElectrolyseParams } from './ElectrolyseParams.types';
|
|
13
|
+
import { ECSParams } from './ECSParams.types';
|
|
14
|
+
import { H2StorageParams } from './H2StorageParams.types';
|
|
15
|
+
import { ConfigSite } from './Scenario.types';
|
|
16
|
+
import { ScenarioParams } from './ScenarioParams.types';
|
|
17
|
+
import { StationParams } from './StationParams.types';
|
|
18
|
+
import { ThermalStorageParams } from './ThermalStorageParams.types';
|
|
19
|
+
import { OptimizationParams } from './OptimizationParams.types';
|
|
20
|
+
import { FinancingType } from './FinancingType.types';
|
|
21
|
+
export interface ScenarioDefaultValue {
|
|
22
|
+
defaultPPATarif: DefaultPPATarif;
|
|
23
|
+
VERSION: number;
|
|
24
|
+
version: number;
|
|
25
|
+
SURPLUS_COSTS: PowerCostConfig[];
|
|
26
|
+
FULL_PRODUCTION_COSTS: PowerCostConfig[];
|
|
27
|
+
paramsBattery: BatteryParams;
|
|
28
|
+
paramsConversion: ConversionParams;
|
|
29
|
+
paramsFuelCell: FuelCellParams;
|
|
30
|
+
paramsGen: GeneratorParams;
|
|
31
|
+
paramsGrid: GridParams;
|
|
32
|
+
paramsOptimization: OptimizationParams;
|
|
33
|
+
paramsPV: PVParams;
|
|
34
|
+
paramsPV2: PV2Params;
|
|
35
|
+
paramsVS: VSParams;
|
|
36
|
+
paramsWindTurbine: WindTurbineParams;
|
|
37
|
+
paramsElectrolyse: ElectrolyseParams;
|
|
38
|
+
paramsStockageH2: H2StorageParams;
|
|
39
|
+
paramsECS: ECSParams;
|
|
40
|
+
paramsStockageThermal: ThermalStorageParams;
|
|
41
|
+
paramsStation: StationParams;
|
|
42
|
+
paramsScenario: ScenarioParams;
|
|
43
|
+
financingType: FinancingType;
|
|
44
|
+
configSite?: ConfigSite;
|
|
45
|
+
name?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
isActive?: boolean;
|
|
48
|
+
createdBy?: Date | string;
|
|
49
|
+
updatedAt?: Date | string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { SiteType, Profiles } from './enums.types';
|
|
2
|
+
import { EnergyPrice } from './EnergyPrice.types';
|
|
3
|
+
import { PeakHour } from './PeakHour.types';
|
|
4
|
+
import { OffPeakHour } from './OffPeakHour.types';
|
|
5
|
+
import { CustomerInfos } from './CustomerInfos.types';
|
|
6
|
+
import { Tarif } from './Tarif.types';
|
|
7
|
+
import { BuildingData } from './BuildingData.types';
|
|
8
|
+
import { RestOfTheYearTarifs } from './RestOfTheYearTarifs.types';
|
|
9
|
+
import { DataSourceHistory } from './DataSourceHistory.types';
|
|
10
|
+
import { ConsumptionIndexes } from './ConsumptionIndexes.types';
|
|
11
|
+
import { EnergyPriceTempo } from './EnergyPriceTempo.types';
|
|
12
|
+
export interface Site {
|
|
13
|
+
_id?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
country: string;
|
|
16
|
+
energyPrices: EnergyPrice[];
|
|
17
|
+
purchaseAreaOfTension: string;
|
|
18
|
+
addressGeocode: number[];
|
|
19
|
+
peakHours: PeakHour[];
|
|
20
|
+
offPeakHours: OffPeakHour[];
|
|
21
|
+
type: SiteType;
|
|
22
|
+
purchaseMeterOwner: string;
|
|
23
|
+
purchaseContractType: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
subscriptionRates: number;
|
|
26
|
+
address: string;
|
|
27
|
+
ratesOption: string;
|
|
28
|
+
owner: string;
|
|
29
|
+
name: string;
|
|
30
|
+
isC_AND_I: boolean;
|
|
31
|
+
appUrl: string;
|
|
32
|
+
addressDepartementNum: number;
|
|
33
|
+
addressZipCode: string;
|
|
34
|
+
subscribedPowers: EnergyPrice[];
|
|
35
|
+
addressCity: string;
|
|
36
|
+
addressDepartement: string;
|
|
37
|
+
reportURL: string;
|
|
38
|
+
enedisNumber: string;
|
|
39
|
+
startDate: Date | string;
|
|
40
|
+
endDate: Date | string;
|
|
41
|
+
automaticUpdateError?: string;
|
|
42
|
+
scenario?: string;
|
|
43
|
+
user: string;
|
|
44
|
+
profile: Profiles;
|
|
45
|
+
collectiveSiteId?: string;
|
|
46
|
+
folder?: string;
|
|
47
|
+
initialOwner: string;
|
|
48
|
+
isExtractingData?: boolean;
|
|
49
|
+
customerInfos?: CustomerInfos;
|
|
50
|
+
TCSPE: number;
|
|
51
|
+
TURPE_VERSION: number;
|
|
52
|
+
_createdAt: Date | string;
|
|
53
|
+
_lastModified: Date | string;
|
|
54
|
+
_lastUpdated: string;
|
|
55
|
+
_step3: boolean;
|
|
56
|
+
_step3At: Date | string;
|
|
57
|
+
analysisId: string;
|
|
58
|
+
analysisYear: number;
|
|
59
|
+
buildingData: BuildingData;
|
|
60
|
+
autoCO2?: boolean;
|
|
61
|
+
co2rate?: number;
|
|
62
|
+
connectingPower: string;
|
|
63
|
+
consentFileUrl: string;
|
|
64
|
+
consumptionIndexes: ConsumptionIndexes;
|
|
65
|
+
creator: string;
|
|
66
|
+
currency: string;
|
|
67
|
+
customerConsentEmail: string;
|
|
68
|
+
customerConsentFirstName: string;
|
|
69
|
+
customerConsentLastName: string;
|
|
70
|
+
dataIsHybridFrom: string;
|
|
71
|
+
dataSourceHistory: DataSourceHistory[];
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
enedisBuffer: string;
|
|
74
|
+
enedisData: boolean;
|
|
75
|
+
energyPricesTempo: EnergyPriceTempo[];
|
|
76
|
+
energyPricesWe: EnergyPrice[];
|
|
77
|
+
error: string;
|
|
78
|
+
faltyPrm?: string;
|
|
79
|
+
hasConsentData: boolean;
|
|
80
|
+
hasPeakHours: boolean;
|
|
81
|
+
hasWeekendPricing: boolean;
|
|
82
|
+
includeTURPE: boolean;
|
|
83
|
+
includeTVA: boolean;
|
|
84
|
+
isConsentMailSent: boolean;
|
|
85
|
+
isFullSellOut: boolean;
|
|
86
|
+
maxEndDate: Date | string;
|
|
87
|
+
maxStartDate: Date | string;
|
|
88
|
+
meterOwner: string;
|
|
89
|
+
monthlyConsumptionIndex: boolean;
|
|
90
|
+
restOfTheYearTarifs: RestOfTheYearTarifs;
|
|
91
|
+
siteHasData: boolean;
|
|
92
|
+
tarifBuilder: boolean;
|
|
93
|
+
tarifs: Tarif[];
|
|
94
|
+
tempoPricing: boolean;
|
|
95
|
+
timezone: number;
|
|
96
|
+
TMYstatus: number;
|
|
97
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BuildingStats } from './BuildingStats.types';
|
|
2
|
+
export interface SolarPotential {
|
|
3
|
+
buildingStats: BuildingStats;
|
|
4
|
+
carbonOffsetFactorKgPerMwh: number;
|
|
5
|
+
maxArrayAreaMeters2: number;
|
|
6
|
+
maxArrayPanelsCount: number;
|
|
7
|
+
maxSunshineHoursPerYear: number;
|
|
8
|
+
panelCapacityWatts: number;
|
|
9
|
+
panelHeightMeters: number;
|
|
10
|
+
panelLifetimeYears: number;
|
|
11
|
+
panelWidthMeters: number;
|
|
12
|
+
roofSegmentStats: number | null;
|
|
13
|
+
solarPanelConfigs: number | null;
|
|
14
|
+
solarPanels: number | null;
|
|
15
|
+
wholeRoofStats: BuildingStats;
|
|
16
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface Analysis {
|
|
2
|
+
uid: string;
|
|
3
|
+
idUser: string;
|
|
4
|
+
idSite: string;
|
|
5
|
+
idCollectiveSite: string;
|
|
6
|
+
status: string;
|
|
7
|
+
step: number;
|
|
8
|
+
error: boolean;
|
|
9
|
+
finishedOn: Date | string;
|
|
10
|
+
createdOn?: Date | string;
|
|
11
|
+
updatedOn?: Date | string;
|
|
12
|
+
}
|
|
13
|
+
export interface Optimization {
|
|
14
|
+
id: string;
|
|
15
|
+
idUser: string;
|
|
16
|
+
type: string;
|
|
17
|
+
idSite: string;
|
|
18
|
+
idScenario: string;
|
|
19
|
+
status: string;
|
|
20
|
+
step: number;
|
|
21
|
+
error: boolean;
|
|
22
|
+
finishedOn: Date | string;
|
|
23
|
+
createdOn?: Date | string;
|
|
24
|
+
updatedOn?: Date | string;
|
|
25
|
+
}
|
|
26
|
+
export interface PvgisHistory {
|
|
27
|
+
id: string;
|
|
28
|
+
result: string;
|
|
29
|
+
error: boolean;
|
|
30
|
+
extraInfos: string;
|
|
31
|
+
createdOn?: Date | string;
|
|
32
|
+
updatedOn?: Date | string;
|
|
33
|
+
}
|
|
34
|
+
export interface OkwindHistory {
|
|
35
|
+
id: string;
|
|
36
|
+
result: string;
|
|
37
|
+
error: boolean;
|
|
38
|
+
extraInfos: string;
|
|
39
|
+
createdOn?: Date | string;
|
|
40
|
+
updatedOn?: Date | string;
|
|
41
|
+
}
|
|
42
|
+
export interface TempoHistory {
|
|
43
|
+
id: string;
|
|
44
|
+
error: boolean;
|
|
45
|
+
extraInfos: string;
|
|
46
|
+
createdOn?: Date | string;
|
|
47
|
+
updatedOn?: Date | string;
|
|
48
|
+
}
|
|
49
|
+
export interface UserFilters {
|
|
50
|
+
id: string;
|
|
51
|
+
fullName: string;
|
|
52
|
+
email: string;
|
|
53
|
+
createdOn?: Date | string;
|
|
54
|
+
updatedOn?: Date | string;
|
|
55
|
+
}
|
|
56
|
+
export interface WebhookOutput {
|
|
57
|
+
firstname?: string;
|
|
58
|
+
lastname?: string;
|
|
59
|
+
zip?: string;
|
|
60
|
+
address?: string;
|
|
61
|
+
city?: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
phone?: string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Folder } from './Folder.types';
|
|
2
|
+
export interface SiteTag {
|
|
3
|
+
hasConsumerTag: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface User {
|
|
6
|
+
_id?: string;
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
firstname: string;
|
|
10
|
+
folders: Folder[];
|
|
11
|
+
lastname: string;
|
|
12
|
+
phone?: string;
|
|
13
|
+
company?: string;
|
|
14
|
+
address?: string;
|
|
15
|
+
addressCity?: string;
|
|
16
|
+
addressZipCode?: string;
|
|
17
|
+
isAdmin: boolean;
|
|
18
|
+
isManager: boolean;
|
|
19
|
+
active: boolean;
|
|
20
|
+
demo: boolean;
|
|
21
|
+
emailVerified: boolean;
|
|
22
|
+
principal: boolean;
|
|
23
|
+
type?: string;
|
|
24
|
+
domain?: string;
|
|
25
|
+
license?: string;
|
|
26
|
+
allowedNumberOfSites?: number;
|
|
27
|
+
maxUsers?: number;
|
|
28
|
+
trackerOkd: boolean;
|
|
29
|
+
isSignUpEmailSent: boolean;
|
|
30
|
+
isAdminEmailSent: boolean;
|
|
31
|
+
optimNumber?: number;
|
|
32
|
+
nbSitesActive?: number;
|
|
33
|
+
analysis_individual: string[];
|
|
34
|
+
analysis_collective: string[];
|
|
35
|
+
optim_general_consumer: string[];
|
|
36
|
+
optim_scenario_consumer: string[];
|
|
37
|
+
synthesis_fi: string[];
|
|
38
|
+
siteTag: SiteTag;
|
|
39
|
+
_createdAt?: string;
|
|
40
|
+
_lastConnected?: string;
|
|
41
|
+
createdAt?: Date | string;
|
|
42
|
+
updatedAt?: Date | string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface WindTurbineParams {
|
|
2
|
+
wtPower: number;
|
|
3
|
+
wtCapexTableA: number[];
|
|
4
|
+
wtCapexTableV: number[];
|
|
5
|
+
wtOpex: number[];
|
|
6
|
+
wtSellingPrice: number[];
|
|
7
|
+
wtSub: number[];
|
|
8
|
+
wtCapexTot: number;
|
|
9
|
+
wtOpexTot: number;
|
|
10
|
+
wtSubTot: number;
|
|
11
|
+
wtSubDuration: number;
|
|
12
|
+
wtLifespan: number;
|
|
13
|
+
wtYield: number;
|
|
14
|
+
wtHeight: number;
|
|
15
|
+
wtAutoconsoRate: number;
|
|
16
|
+
wtLeasingLifespan: number;
|
|
17
|
+
addTurpeWT: number;
|
|
18
|
+
wtPpaBuilderSlots: string[];
|
|
19
|
+
wtDepreciationDuration: number;
|
|
20
|
+
}
|