Release 0.15.0-alpha #43

Merged
uz1mani merged 61 commits from staging into main 2026-03-12 23:13:42 +00:00
3 changed files with 490 additions and 2 deletions
Showing only changes of commit c6ec4671a4 - Show all commits

View File

@@ -42,8 +42,8 @@ export interface UpdateReportScheduleRequest {
} }
export async function listReportSchedules(siteId: string): Promise<ReportSchedule[]> { export async function listReportSchedules(siteId: string): Promise<ReportSchedule[]> {
const res = await apiRequest<{ schedules: ReportSchedule[] }>(`/sites/${siteId}/report-schedules`) const res = await apiRequest<{ report_schedules: ReportSchedule[] }>(`/sites/${siteId}/report-schedules`)
return res?.schedules ?? [] return res?.report_schedules ?? []
} }
export async function createReportSchedule(siteId: string, data: CreateReportScheduleRequest): Promise<ReportSchedule> { export async function createReportSchedule(siteId: string, data: CreateReportScheduleRequest): Promise<ReportSchedule> {