Skip to content
Snippets Groups Projects
Commit 1cc87f7b authored by BITARD Michaël's avatar BITARD Michaël Committed by SAFINE LAGET Anis
Browse files

chore(démarches): empêche certains types de travaux (!1673)

parent 4fc73fc7
1 merge request!1673chore(démarches): empêche certains types de travaux
Pipeline #539948 passed
......@@ -18,19 +18,6 @@ test('getDemarchesTypesByTitreType', () => {
"titulaires": true,
"travaux": false,
},
{
"auto": false,
"description": "Autorisation d'ouverture de travaux",
"duree": false,
"exception": false,
"id": "aom",
"nom": "Autorisation d'ouverture de travaux",
"points": false,
"renouvelable": false,
"substances": false,
"titulaires": false,
"travaux": true,
},
{
"auto": false,
"description": "Démarche obsolète. Co-initiée par le titulaire du titre minier et l'entreprise souhaitant devenir titulaire ou co-titulaire elle remplit une fonction proche de la mutation dans le code minier actuel.",
......@@ -57,32 +44,6 @@ test('getDemarchesTypesByTitreType', () => {
"titulaires": true,
"travaux": false,
},
{
"auto": false,
"description": "Déclaration d'arrêt définitif des travaux",
"duree": false,
"exception": false,
"id": "dam",
"nom": "Déclaration d'arrêt définitif des travaux",
"points": false,
"renouvelable": false,
"substances": false,
"titulaires": false,
"travaux": true,
},
{
"auto": false,
"description": "Déclaration d'ouverture de travaux",
"duree": false,
"exception": false,
"id": "dot",
"nom": "Déclaration d'ouverture de travaux",
"points": false,
"renouvelable": false,
"substances": false,
"titulaires": false,
"travaux": true,
},
{
"auto": false,
"description": "Démarche appliquée aux permis exclusifs de recherches, permis d'exploitation de minéraux et métaux et concessions pour étendre leurs périmètres.",
......
import { DEMARCHES_TYPES_IDS, DemarcheType, DemarchesTypes } from './demarchesTypes'
import { TITRES_TYPES_IDS, TitreTypeId } from './titresTypes'
const demarchesEverywhere = [
DEMARCHES_TYPES_IDS.AutorisationDOuvertureDeTravaux,
DEMARCHES_TYPES_IDS.DeclarationDArretDefinitifDesTravaux,
DEMARCHES_TYPES_IDS.DeclarationDOuvertureDeTravaux,
DEMARCHES_TYPES_IDS.Octroi,
DEMARCHES_TYPES_IDS.RenonciationTotale,
DEMARCHES_TYPES_IDS.RenonciationPartielle,
DEMARCHES_TYPES_IDS.Retrait,
]
const demarchesEverywhere = [DEMARCHES_TYPES_IDS.Octroi, DEMARCHES_TYPES_IDS.RenonciationTotale, DEMARCHES_TYPES_IDS.RenonciationPartielle, DEMARCHES_TYPES_IDS.Retrait]
const TITRES_TYPES_DEMARCHES_TYPES = {
[TITRES_TYPES_IDS.AUTORISATION_DE_PROSPECTION_CARRIERES]: [...demarchesEverywhere],
......@@ -17,13 +9,26 @@ const TITRES_TYPES_DEMARCHES_TYPES = {
[TITRES_TYPES_IDS.AUTORISATION_DE_PROSPECTION_METAUX]: [...demarchesEverywhere],
[TITRES_TYPES_IDS.AUTORISATION_DE_PROSPECTION_GRANULATS_MARINS]: [...demarchesEverywhere],
[TITRES_TYPES_IDS.AUTORISATION_DE_RECHERCHE_CARRIERES]: [...demarchesEverywhere, DEMARCHES_TYPES_IDS.Prolongation],
[TITRES_TYPES_IDS.AUTORISATION_DE_RECHERCHE_GEOTHERMIE]: [...demarchesEverywhere, DEMARCHES_TYPES_IDS.ExtensionDePerimetre, DEMARCHES_TYPES_IDS.Mutation],
[TITRES_TYPES_IDS.AUTORISATION_DE_RECHERCHE_METAUX]: [...demarchesEverywhere, DEMARCHES_TYPES_IDS.Prolongation],
[TITRES_TYPES_IDS.AUTORISATION_DE_RECHERCHE_GEOTHERMIE]: [
...demarchesEverywhere,
DEMARCHES_TYPES_IDS.ExtensionDePerimetre,
DEMARCHES_TYPES_IDS.Mutation,
DEMARCHES_TYPES_IDS.DeclarationDArretDefinitifDesTravaux,
DEMARCHES_TYPES_IDS.DeclarationDOuvertureDeTravaux,
],
[TITRES_TYPES_IDS.AUTORISATION_DE_RECHERCHE_METAUX]: [
...demarchesEverywhere,
DEMARCHES_TYPES_IDS.Prolongation,
DEMARCHES_TYPES_IDS.DeclarationDArretDefinitifDesTravaux,
DEMARCHES_TYPES_IDS.DeclarationDOuvertureDeTravaux,
],
[TITRES_TYPES_IDS.AUTORISATION_D_EXPLOITATION_METAUX]: [
...demarchesEverywhere,
DEMARCHES_TYPES_IDS.DeplacementDePerimetre,
DEMARCHES_TYPES_IDS.Prolongation,
DEMARCHES_TYPES_IDS.DemandeDeTitreDExploitation,
DEMARCHES_TYPES_IDS.DeclarationDArretDefinitifDesTravaux,
DEMARCHES_TYPES_IDS.DeclarationDOuvertureDeTravaux,
],
[TITRES_TYPES_IDS.CONCESSION_FOSSILES]: [
...demarchesEverywhere,
......@@ -172,6 +177,8 @@ const TITRES_TYPES_DEMARCHES_TYPES = {
DEMARCHES_TYPES_IDS.Mutation,
DEMARCHES_TYPES_IDS.Prolongation,
DEMARCHES_TYPES_IDS.ResiliationAnticipeeDAmodiation,
DEMARCHES_TYPES_IDS.DeclarationDArretDefinitifDesTravaux,
DEMARCHES_TYPES_IDS.DeclarationDOuvertureDeTravaux,
],
[TITRES_TYPES_IDS.PERMIS_D_EXPLOITATION_HYDROCARBURE]: [
...demarchesEverywhere,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment