feat: protect owner-only supply aggregates and record target CAE blocker

This commit is contained in:
2026-11-15 23:10:17 +02:00
parent e0b18413ac
commit c8957ecb9d
15 changed files with 1255 additions and 49 deletions
+21 -4
View File
@@ -33,18 +33,35 @@ export type ContextDocument = {
download_url: string;
};
export type SupplyAggregate = {
privacy_version?: number;
privacy_policy?: string;
privacy_notice?: string;
source_summary?: {
label: string;
period: string;
incomplete_periods: boolean;
};
filters?: {
sector_id: number | null;
activity_id: string | null;
activity_label: string | null;
division_code: string | null;
};
context_revision: number;
recorded_at: string;
requested_territory: { id: string; name: string };
scope: { id: string; name: string; level: string };
broader_context: boolean;
entities: number;
repeated: number;
uncertain: number;
entities: number | null;
repeated: number | null;
uncertain: number | null;
groups: {
code: string;
label: string;
total: number;
total: number | null;
entities_band?: string;
observations_band?: string;
scope?: { id: string; name: string; level: string };
first_year: string | null;
last_year: string | null;
}[];