Fascicoli+Tassonomia+permessi

This commit is contained in:
2026-06-17 21:47:46 +02:00
parent e31676d22e
commit 3fd3c72f06
42 changed files with 4554 additions and 99 deletions
+5
View File
@@ -2,6 +2,7 @@ import apiClient from './client'
import type {
LabelCreate,
LabelResponse,
LabelTreeResponse,
LabelUpdate,
MessageBulkLabelRequest,
MessageBulkLabelResponse,
@@ -16,6 +17,10 @@ export const labelsApi = {
list: () =>
apiClient.get<LabelResponse[]>('/labels').then((r) => r.data),
/** Restituisce la tassonomia come albero annidato (Ambito > Processo > Classificazione). */
getTree: () =>
apiClient.get<LabelTreeResponse[]>('/labels/tree').then((r) => r.data),
create: (data: LabelCreate) =>
apiClient.post<LabelResponse>('/labels', data).then((r) => r.data),