56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
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 | null;
|
|
totalPriceTaxIncluded: number | null;
|
|
priceInclHandlingVat: number | null;
|
|
priceTaxWithVat: number | null;
|
|
startDateDatetime: string;
|
|
};
|
|
}
|
|
namespace Features {
|
|
namespace Dashboard {
|
|
namespace Data {
|
|
export type DashboardData = {
|
|
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;
|
|
};
|
|
}
|
|
}
|
|
namespace History {
|
|
namespace Data {
|
|
export type HistoryData = {
|
|
electricity: App.Data.ElectricityData[];
|
|
gas: App.Data.GasData[];
|
|
};
|
|
}
|
|
namespace Requests {
|
|
export type HistoryRequest = {
|
|
date: string | null;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|