39 lines
946 B
TypeScript
39 lines
946 B
TypeScript
/**
|
|
* Interface canonique Org — NAV V2
|
|
* Source unique : types/org.ts
|
|
* Importée dans pages/index.vue, pages/fiche/[id].vue, composants.
|
|
*/
|
|
export interface Org {
|
|
Id: number
|
|
nom: string
|
|
// Champs V1 (legacy — conservés pour compatibilité OrgCard)
|
|
type_org?: string
|
|
description?: string
|
|
tags?: string
|
|
lien?: string
|
|
// Champs V2
|
|
echelle?: string
|
|
tags_fonction?: string
|
|
territoire?: string
|
|
localisation_ville?: string
|
|
latitude?: number | null
|
|
longitude?: number | null
|
|
url?: string
|
|
prioritaire?: boolean
|
|
moderation_status?: string
|
|
// Contenu enrichi IA
|
|
description_user?: string
|
|
description_enrichie?: string
|
|
points_cles?: string | null
|
|
// Statuts traitement
|
|
ai_processed?: boolean
|
|
scrape_status?: string
|
|
submitted_by_email?: string
|
|
submitted_at?: string
|
|
moderated_at?: string
|
|
moderator_note?: string
|
|
// Hiérarchie (V2.5)
|
|
parent_id?: number | null
|
|
is_root?: boolean | null
|
|
}
|