diff --git a/frontend/src/lib/utils/crud.ts b/frontend/src/lib/utils/crud.ts index 9d3b7fe47..5138e6818 100644 --- a/frontend/src/lib/utils/crud.ts +++ b/frontend/src/lib/utils/crud.ts @@ -673,24 +673,6 @@ export const URL_MODEL_MAP: ModelMap = { { field: 'folder', urlModel: 'folders', urlParams: 'content_type=DO' } ] }, - 'ro-to': { - endpointUrl: 'ebios-rm/ro-to', - name: 'roto', - localName: 'roto', - localNamePlural: 'roto', - verboseName: 'Ro to', - verboseNamePlural: 'Ro to', - foreignKeyFields: [ - { field: 'ebios_rm_study', urlModel: 'ebios-rm' }, - { field: 'feared_events', urlModel: 'feared-events' } - ], - selectFields: [ - { field: 'risk-origin' }, - { field: 'motivation' }, - { field: 'resources' }, - { field: 'pertinence' } - ] - }, attack_paths: { endpointUrl: 'ebios-rm/attack-paths', name: 'attackpath', diff --git a/frontend/src/lib/utils/schemas.ts b/frontend/src/lib/utils/schemas.ts index 212d58e04..5934ddd26 100644 --- a/frontend/src/lib/utils/schemas.ts +++ b/frontend/src/lib/utils/schemas.ts @@ -464,16 +464,6 @@ export const operationalScenarioSchema = z.object({ justification: z.string().optional() }); -export const operationalScenarioSchema = z.object({ - ebios_rm_study: z.string(), - attack_paths: z.string().uuid().array(), - threats: z.string().uuid().optional().array(), - description: z.string(), - likelihood: z.number().optional().default(-1), - is_selected: z.boolean().optional().default(false), - justification: z.string().optional() -}); - const SCHEMA_MAP: Record = { folders: FolderSchema, projects: ProjectSchema,