Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-15 18:56:39 +02:00
parent 1349789226
commit fb076c174f
117 changed files with 10380 additions and 1905 deletions
+31
View File
@@ -32,6 +32,27 @@ export type ContextDocument = {
opportunity_id: number;
download_url: string;
};
export type SupplyAggregate = {
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;
groups: {
code: string;
label: string;
total: number;
first_year: string | null;
last_year: string | null;
}[];
truncated: boolean;
coverage_unknown: boolean;
limitations: string;
interpretation: string;
};
export type ContextReference = {
key: string;
kind: string;
@@ -92,6 +113,7 @@ export type OpportunityChoice = {
source_sha256?: string | null;
};
export type DossierContext = {
promoter_entity?: PromoterEntity;
complements?: import('@/components/investment-complements').Complement[];
requirements_assessment?: RequirementsAssessment;
opportunity_choices?: OpportunityChoice[];
@@ -115,6 +137,12 @@ export type DossierContext = {
updated_at?: string;
dependency_hash?: string;
};
export type PromoterEntity = {
kind: 'company' | 'organization' | 'being_formed' | 'undetermined';
id?: string | null;
source_version?: number | null;
snapshot?: Record<string, string | null>;
};
export type ContextView = {
private_investment?: Preparation | null;
preparation_documents?: PreparationDocument[];
@@ -203,6 +231,9 @@ export async function contextApi<T>(
}
}
export const contextFieldNames: Record<string, string> = {
products_services: 'Actividade concreta e produto ou serviço',
investment_budget_min: 'Orçamento previsto — mínimo',
investment_budget_max: 'Orçamento previsto — máximo',
investment_form: 'Tipo do investimento',
investment_preparation: 'Preparação do pedido',
investment_activity_scope: 'Natureza da actividade',