feat(history): add energy price history feature
This commit is contained in:
+43
-28
@@ -1,38 +1,53 @@
|
||||
declare namespace App {
|
||||
namespace Data {
|
||||
export type ElectricityData = {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
period: string;
|
||||
marketPrice: number | null;
|
||||
totalPriceTaxIncluded: number | null;
|
||||
priceInclHandlingVat: number | null;
|
||||
priceTaxWithVat: number | null;
|
||||
pricingProfile: string | null;
|
||||
carbonFootprintInGram: number | null;
|
||||
sustainabilityScore: number | null;
|
||||
startDateDatetime: string;
|
||||
};
|
||||
export type GasData = {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
period: string;
|
||||
marketPrice: number;
|
||||
totalPriceTaxIncluded: number;
|
||||
priceInclHandlingVat: number;
|
||||
priceTaxWithVat: number;
|
||||
startDateDatetime: string;
|
||||
};
|
||||
}
|
||||
namespace Features {
|
||||
namespace Dashboard {
|
||||
namespace Data {
|
||||
export type DashboardData = {
|
||||
electricity: App.Features.Dashboard.Data.ElectricityData;
|
||||
electricityCheapest: App.Features.Dashboard.Data.ElectricityData | null;
|
||||
electricityDurable: App.Features.Dashboard.Data.ElectricityData | null;
|
||||
electricityPriciest: App.Features.Dashboard.Data.ElectricityData | null;
|
||||
gas: App.Features.Dashboard.Data.GasData;
|
||||
gasCheapest: App.Features.Dashboard.Data.GasData | null;
|
||||
gasPriciest: App.Features.Dashboard.Data.GasData | null;
|
||||
electricity: App.Data.ElectricityData;
|
||||
electricityCheapest: App.Data.ElectricityData | null;
|
||||
electricityDurable: App.Data.ElectricityData | null;
|
||||
electricityPriciest: App.Data.ElectricityData | null;
|
||||
gas: App.Data.GasData;
|
||||
gasCheapest: App.Data.GasData | null;
|
||||
gasPriciest: App.Data.GasData | null;
|
||||
};
|
||||
export type ElectricityData = {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
period: string;
|
||||
marketPrice: number | null;
|
||||
totalPriceTaxIncluded: number | null;
|
||||
priceInclHandlingVat: number | null;
|
||||
priceTaxWithVat: number | null;
|
||||
pricingProfile: string | null;
|
||||
carbonFootprintInGram: number | null;
|
||||
sustainabilityScore: number | null;
|
||||
startDateDatetime: string;
|
||||
}
|
||||
}
|
||||
namespace History {
|
||||
namespace Data {
|
||||
export type HistoryData = {
|
||||
electricity: Array<any>;
|
||||
gas: Array<any>;
|
||||
};
|
||||
export type GasData = {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
period: string;
|
||||
marketPrice: number;
|
||||
totalPriceTaxIncluded: number;
|
||||
priceInclHandlingVat: number;
|
||||
priceTaxWithVat: number;
|
||||
startDateDatetime: string;
|
||||
}
|
||||
namespace Requests {
|
||||
export type HistoryRequest = {
|
||||
date: string | null;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"generated.d.ts": "f593095f6f419a96a4c39c2b93719f9a"
|
||||
"generated.d.ts": "7ca8a9c7f0ae5e5498bdee87bb2f005d"
|
||||
}
|
||||
Reference in New Issue
Block a user