planner v2 vc. porovnani
This commit is contained in:
@@ -6,7 +6,7 @@ import type {
|
||||
SitePvForecastCalibrationRow,
|
||||
} from '../types/siteConfiguration'
|
||||
import type { Notification } from '../types/dashboard'
|
||||
import type { CurrentPlanResponse, RunPlanResponse } from '../types/plan'
|
||||
import type { CurrentPlanResponse, PlanningCompareResponse, RunPlanResponse } from '../types/plan'
|
||||
|
||||
const client: AxiosInstance = axios.create({
|
||||
baseURL: '/api/v1',
|
||||
@@ -124,6 +124,13 @@ export async function getCurrentPlan(siteId: number): Promise<CurrentPlanRespons
|
||||
return data
|
||||
}
|
||||
|
||||
export async function getPlanCompare(siteId: number): Promise<PlanningCompareResponse> {
|
||||
const { data } = await client.get<PlanningCompareResponse>(`/sites/${siteId}/plan/compare`, {
|
||||
timeout: 60_000,
|
||||
})
|
||||
return data
|
||||
}
|
||||
|
||||
/** Řada FVE předpovědi (součet polí) po 15 min — doplnění grafu za horizont uloženého plánu. */
|
||||
export type ForecastPvSlotRow = {
|
||||
interval_start: string
|
||||
|
||||
Reference in New Issue
Block a user