@metarisc/metarisc-js 0.0.1-alpha.96 → 0.0.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/CommissionsAPI.d.ts +8 -0
- package/lib/api/CommissionsAPI.js +30 -0
- package/lib/api/ERPAPI.d.ts +1 -1
- package/lib/api/PrescriptionsAPI.d.ts +7 -0
- package/lib/api/PrescriptionsAPI.js +21 -0
- package/lib/model/Commission.d.ts +1 -0
- package/lib/model/Dossier.d.ts +3 -1
- package/lib/model/Dossier.js +2 -0
- package/lib/model/DossierBase.d.ts +3 -1
- package/lib/model/DossierBase.js +2 -0
- package/lib/model/DossierDeci.d.ts +3 -1
- package/lib/model/DossierDeci.js +2 -0
- package/lib/model/DossierErp.d.ts +3 -1
- package/lib/model/DossierErp.js +2 -0
- package/lib/model/ERP.d.ts +3 -1
- package/lib/model/ERP.js +2 -0
- package/lib/model/MembreAvis.d.ts +12 -0
- package/lib/model/MembreAvis.js +10 -0
- package/lib/model/PassageCommissionDossier.d.ts +5 -1
- package/lib/model/PassageCommissionDossier.js +2 -0
- package/lib/model/Prescription.d.ts +2 -1
- package/lib/model/PrescriptionExploreResult.d.ts +3 -0
- package/lib/model/PrescriptionExploreResult.js +2 -0
- package/lib/model/PrescriptionExploreResultChemin.d.ts +3 -0
- package/lib/model/PrescriptionExploreResultChemin.js +3 -0
- package/lib/model/PrescriptionExploreResultPrescription.d.ts +4 -0
- package/lib/model/PrescriptionExploreResultPrescription.js +2 -0
- package/lib/model/PrescriptionSupportReglementaire.d.ts +8 -1
- package/lib/model/PrescriptionSupportReglementaire.js +8 -1
- package/lib/model/RapportEtude.d.ts +3 -1
- package/lib/model/RapportEtude.js +2 -0
- package/lib/model/RapportVisite.d.ts +3 -1
- package/lib/model/RapportVisite.js +2 -0
- package/package.json +1 -1
- package/src/api/CommissionsAPI.ts +41 -0
- package/src/api/ERPAPI.ts +1 -1
- package/src/api/PrescriptionsAPI.ts +28 -0
- package/src/model/Commission.ts +1 -0
- package/src/model/Dossier.ts +3 -1
- package/src/model/DossierBase.ts +3 -1
- package/src/model/DossierDeci.ts +3 -1
- package/src/model/DossierErp.ts +3 -1
- package/src/model/ERP.ts +3 -1
- package/src/model/MembreAvis.ts +15 -0
- package/src/model/PassageCommissionDossier.ts +5 -1
- package/src/model/Prescription.ts +2 -1
- package/src/model/PrescriptionExploreResult.ts +5 -0
- package/src/model/PrescriptionExploreResultChemin.ts +5 -0
- package/src/model/PrescriptionExploreResultPrescription.ts +6 -0
- package/src/model/PrescriptionSupportReglementaire.ts +8 -1
- package/src/model/RapportEtude.ts +3 -1
- package/src/model/RapportVisite.ts +3 -1
|
@@ -28,6 +28,14 @@ export declare class CommissionsAPI extends Core {
|
|
|
28
28
|
* Récupération de la liste des membres de la commission.
|
|
29
29
|
*/
|
|
30
30
|
paginateCommissionMembres(commissionId: string, commission?: string): Collection<CommissionMembre>;
|
|
31
|
+
/**
|
|
32
|
+
* Modification d'une commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
33
|
+
*/
|
|
34
|
+
patchCommission(commissionId: string, params: any): Promise<AxiosResponse<Commission>>;
|
|
35
|
+
/**
|
|
36
|
+
* Modification d'un passage en commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
37
|
+
*/
|
|
38
|
+
patchPassageDatesCommission(commissionId: string, passageId: string, params: any): Promise<AxiosResponse<PassageCommission>>;
|
|
31
39
|
/**
|
|
32
40
|
* Ajoute une commission.
|
|
33
41
|
*/
|
|
@@ -89,6 +89,36 @@ class CommissionsAPI extends core_1.Core {
|
|
|
89
89
|
}]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Modification d'une commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
94
|
+
*/
|
|
95
|
+
patchCommission(commissionId, params) {
|
|
96
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
97
|
+
return this.request({
|
|
98
|
+
method: 'PATCH',
|
|
99
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
|
|
100
|
+
transformResponse: [(data) => {
|
|
101
|
+
const parsedData = JSON.parse(data);
|
|
102
|
+
return parsedData;
|
|
103
|
+
}],
|
|
104
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Modification d'un passage en commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
109
|
+
*/
|
|
110
|
+
patchPassageDatesCommission(commissionId, passageId, params) {
|
|
111
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'passage_id': (new String(passageId)).toString() };
|
|
112
|
+
return this.request({
|
|
113
|
+
method: 'PATCH',
|
|
114
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{passage_id}'),
|
|
115
|
+
transformResponse: [(data) => {
|
|
116
|
+
const parsedData = JSON.parse(data);
|
|
117
|
+
return parsedData;
|
|
118
|
+
}],
|
|
119
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
120
|
+
});
|
|
121
|
+
}
|
|
92
122
|
/**
|
|
93
123
|
* Ajoute une commission.
|
|
94
124
|
*/
|
package/lib/api/ERPAPI.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class ERPAPI extends Core {
|
|
|
45
45
|
/**
|
|
46
46
|
* Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
|
|
47
47
|
*/
|
|
48
|
-
paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: string | Array<string>, avisExploitation?: 'favorable' | 'defavorable', aVisiterEn?: string, siteGeographique?: string, commissionConcernee?: string, categorie?: 1 | 2 | 3 | 4 | 5, erpRattacheA?: string): Collection<ERP>;
|
|
48
|
+
paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: string | Array<string>, avisExploitation?: 'favorable' | 'defavorable' | 'favorable_exploitation' | 'defavorable_exploitation', aVisiterEn?: string, siteGeographique?: string, commissionConcernee?: string, categorie?: 1 | 2 | 3 | 4 | 5, erpRattacheA?: string): Collection<ERP>;
|
|
49
49
|
/**
|
|
50
50
|
* Récupération de l'historique d'un ERP.
|
|
51
51
|
*/
|
|
@@ -3,6 +3,7 @@ import type { AxiosResponse } from "axios";
|
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
5
|
import { Prescription } from '../model/Prescription';
|
|
6
|
+
import { PrescriptionExploreResult } from '../model/PrescriptionExploreResult';
|
|
6
7
|
export declare class PrescriptionsAPI extends Core {
|
|
7
8
|
constructor(config: MetariscConfig, client?: Client);
|
|
8
9
|
/**
|
|
@@ -13,6 +14,12 @@ export declare class PrescriptionsAPI extends Core {
|
|
|
13
14
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
14
15
|
*/
|
|
15
16
|
getPrescription(prescriptionId: string): Promise<AxiosResponse<Prescription>>;
|
|
17
|
+
/**
|
|
18
|
+
* Cette opération permet d'explorer les prescriptions en fonction de leur emplacement dans la structure de répertoires.
|
|
19
|
+
Il est possible de filtrer les prescriptions en fonction de leur contenu ou de références aux supports réglementaires.
|
|
20
|
+
Les résultats retournés peuvent être des prescriptions ou des chemins (répertoires).
|
|
21
|
+
*/
|
|
22
|
+
paginateExplore(contenu?: string, supportReglementaireReference?: string, chemin?: string): Collection<PrescriptionExploreResult>;
|
|
16
23
|
/**
|
|
17
24
|
* Liste des prescriptions.
|
|
18
25
|
*/
|
|
@@ -36,6 +36,27 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
36
36
|
}]
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Cette opération permet d'explorer les prescriptions en fonction de leur emplacement dans la structure de répertoires.
|
|
41
|
+
Il est possible de filtrer les prescriptions en fonction de leur contenu ou de références aux supports réglementaires.
|
|
42
|
+
Les résultats retournés peuvent être des prescriptions ou des chemins (répertoires).
|
|
43
|
+
*/
|
|
44
|
+
paginateExplore(contenu, supportReglementaireReference, chemin) {
|
|
45
|
+
const pathVariable = {};
|
|
46
|
+
return this.collect({
|
|
47
|
+
method: 'GET',
|
|
48
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions/explore'),
|
|
49
|
+
params: utils_1.Utils.payloadFilter({
|
|
50
|
+
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
51
|
+
'support_reglementaire_reference': supportReglementaireReference === undefined ? undefined : (new String(supportReglementaireReference)).toString(),
|
|
52
|
+
'chemin': chemin === undefined ? undefined : (new String(chemin)).toString()
|
|
53
|
+
}),
|
|
54
|
+
transformResponse: [(data) => {
|
|
55
|
+
const parsedData = JSON.parse(data);
|
|
56
|
+
return parsedData;
|
|
57
|
+
}]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
39
60
|
/**
|
|
40
61
|
* Liste des prescriptions.
|
|
41
62
|
*/
|
package/lib/model/Dossier.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export declare enum ModulesEnum {
|
|
|
12
12
|
}
|
|
13
13
|
export declare enum AvisEnum {
|
|
14
14
|
FAVORABLE = "favorable",
|
|
15
|
-
DEFAVORABLE = "defavorable"
|
|
15
|
+
DEFAVORABLE = "defavorable",
|
|
16
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
17
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
16
18
|
}
|
|
17
19
|
export declare enum WorkflowsActifsEnum {
|
|
18
20
|
ANALYSE_DE_RISQUE = "analyse_de_risque",
|
package/lib/model/Dossier.js
CHANGED
|
@@ -16,6 +16,8 @@ var AvisEnum;
|
|
|
16
16
|
(function (AvisEnum) {
|
|
17
17
|
AvisEnum["FAVORABLE"] = "favorable";
|
|
18
18
|
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
19
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
20
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
19
21
|
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
20
22
|
var WorkflowsActifsEnum;
|
|
21
23
|
(function (WorkflowsActifsEnum) {
|
|
@@ -33,7 +33,9 @@ export declare enum ModulesEnum {
|
|
|
33
33
|
}
|
|
34
34
|
export declare enum AvisEnum {
|
|
35
35
|
FAVORABLE = "favorable",
|
|
36
|
-
DEFAVORABLE = "defavorable"
|
|
36
|
+
DEFAVORABLE = "defavorable",
|
|
37
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
38
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
37
39
|
}
|
|
38
40
|
export declare enum WorkflowsActifsEnum {
|
|
39
41
|
ANALYSE_DE_RISQUE = "analyse_de_risque",
|
package/lib/model/DossierBase.js
CHANGED
|
@@ -16,6 +16,8 @@ var AvisEnum;
|
|
|
16
16
|
(function (AvisEnum) {
|
|
17
17
|
AvisEnum["FAVORABLE"] = "favorable";
|
|
18
18
|
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
19
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
20
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
19
21
|
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
20
22
|
var WorkflowsActifsEnum;
|
|
21
23
|
(function (WorkflowsActifsEnum) {
|
|
@@ -15,7 +15,9 @@ export declare enum ModulesEnum {
|
|
|
15
15
|
}
|
|
16
16
|
export declare enum AvisEnum {
|
|
17
17
|
FAVORABLE = "favorable",
|
|
18
|
-
DEFAVORABLE = "defavorable"
|
|
18
|
+
DEFAVORABLE = "defavorable",
|
|
19
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
20
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
19
21
|
}
|
|
20
22
|
export declare enum WorkflowsActifsEnum {
|
|
21
23
|
ANALYSE_DE_RISQUE = "analyse_de_risque",
|
package/lib/model/DossierDeci.js
CHANGED
|
@@ -16,6 +16,8 @@ var AvisEnum;
|
|
|
16
16
|
(function (AvisEnum) {
|
|
17
17
|
AvisEnum["FAVORABLE"] = "favorable";
|
|
18
18
|
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
19
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
20
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
19
21
|
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
20
22
|
var WorkflowsActifsEnum;
|
|
21
23
|
(function (WorkflowsActifsEnum) {
|
|
@@ -22,7 +22,9 @@ export declare enum ModulesEnum {
|
|
|
22
22
|
}
|
|
23
23
|
export declare enum AvisEnum {
|
|
24
24
|
FAVORABLE = "favorable",
|
|
25
|
-
DEFAVORABLE = "defavorable"
|
|
25
|
+
DEFAVORABLE = "defavorable",
|
|
26
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
27
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
26
28
|
}
|
|
27
29
|
export declare enum WorkflowsActifsEnum {
|
|
28
30
|
ANALYSE_DE_RISQUE = "analyse_de_risque",
|
package/lib/model/DossierErp.js
CHANGED
|
@@ -16,6 +16,8 @@ var AvisEnum;
|
|
|
16
16
|
(function (AvisEnum) {
|
|
17
17
|
AvisEnum["FAVORABLE"] = "favorable";
|
|
18
18
|
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
19
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
20
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
19
21
|
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
20
22
|
var WorkflowsActifsEnum;
|
|
21
23
|
(function (WorkflowsActifsEnum) {
|
package/lib/model/ERP.d.ts
CHANGED
|
@@ -27,5 +27,7 @@ export type ERP = {
|
|
|
27
27
|
};
|
|
28
28
|
export declare enum AvisExploitationEnum {
|
|
29
29
|
FAVORABLE = "favorable",
|
|
30
|
-
DEFAVORABLE = "defavorable"
|
|
30
|
+
DEFAVORABLE = "defavorable",
|
|
31
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
32
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
31
33
|
}
|
package/lib/model/ERP.js
CHANGED
|
@@ -5,4 +5,6 @@ var AvisExploitationEnum;
|
|
|
5
5
|
(function (AvisExploitationEnum) {
|
|
6
6
|
AvisExploitationEnum["FAVORABLE"] = "favorable";
|
|
7
7
|
AvisExploitationEnum["DEFAVORABLE"] = "defavorable";
|
|
8
|
+
AvisExploitationEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
9
|
+
AvisExploitationEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
8
10
|
})(AvisExploitationEnum = exports.AvisExploitationEnum || (exports.AvisExploitationEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommissionMembre } from './CommissionMembre';
|
|
2
|
+
export type MembreAvis = {
|
|
3
|
+
'membre': CommissionMembre;
|
|
4
|
+
'avis': AvisEnum;
|
|
5
|
+
'motivation_avis'?: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare enum AvisEnum {
|
|
8
|
+
FAVORABLE = "favorable",
|
|
9
|
+
DEFAVORABLE = "defavorable",
|
|
10
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
11
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvisEnum = void 0;
|
|
4
|
+
var AvisEnum;
|
|
5
|
+
(function (AvisEnum) {
|
|
6
|
+
AvisEnum["FAVORABLE"] = "favorable";
|
|
7
|
+
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
8
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
9
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
10
|
+
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Dossier } from './Dossier';
|
|
2
|
+
import { MembreAvis } from './MembreAvis';
|
|
2
3
|
export type PassageCommissionDossier = {
|
|
3
4
|
'id': string;
|
|
4
5
|
'dossier': Dossier;
|
|
@@ -8,8 +9,11 @@ export type PassageCommissionDossier = {
|
|
|
8
9
|
'avis_differe': boolean | null;
|
|
9
10
|
'observations': string | null;
|
|
10
11
|
'duree_minutes': number;
|
|
12
|
+
'membres_avis': Array<MembreAvis>;
|
|
11
13
|
};
|
|
12
14
|
export declare enum AvisEnum {
|
|
13
15
|
FAVORABLE = "favorable",
|
|
14
|
-
DEFAVORABLE = "defavorable"
|
|
16
|
+
DEFAVORABLE = "defavorable",
|
|
17
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
18
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
15
19
|
}
|
|
@@ -5,4 +5,6 @@ var AvisEnum;
|
|
|
5
5
|
(function (AvisEnum) {
|
|
6
6
|
AvisEnum["FAVORABLE"] = "favorable";
|
|
7
7
|
AvisEnum["DEFAVORABLE"] = "defavorable";
|
|
8
|
+
AvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
9
|
+
AvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
8
10
|
})(AvisEnum = exports.AvisEnum || (exports.AvisEnum = {}));
|
|
@@ -2,8 +2,9 @@ import { PrescriptionSupportReglementaire } from './PrescriptionSupportReglement
|
|
|
2
2
|
export type Prescription = {
|
|
3
3
|
'id': string;
|
|
4
4
|
'contenu': string;
|
|
5
|
-
'type': TypeEnum;
|
|
5
|
+
'type': TypeEnum | null;
|
|
6
6
|
'supports_reglementaires': Array<PrescriptionSupportReglementaire>;
|
|
7
|
+
'chemins': Array<string>;
|
|
7
8
|
};
|
|
8
9
|
export declare enum TypeEnum {
|
|
9
10
|
LIEE_A_L_EXPLOITATION = "liee_a_l_exploitation",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PrescriptionExploreResultChemin } from './PrescriptionExploreResultChemin';
|
|
2
|
+
import { PrescriptionExploreResultPrescription } from './PrescriptionExploreResultPrescription';
|
|
3
|
+
export type PrescriptionExploreResult = PrescriptionExploreResultPrescription | PrescriptionExploreResultChemin;
|
|
@@ -10,7 +10,14 @@ export type PrescriptionSupportReglementaire = {
|
|
|
10
10
|
export declare enum NatureEnum {
|
|
11
11
|
ARRETE = "arrete",
|
|
12
12
|
ARTICLE = "article",
|
|
13
|
-
|
|
13
|
+
ARRETES_PREFECTORAUX = "arretes_prefectoraux",
|
|
14
|
+
ARTICLES = "articles",
|
|
15
|
+
GUIDES = "guides",
|
|
16
|
+
LOCAL_AUTRE_TEXTE = "local_autre_texte",
|
|
17
|
+
DOCTRINE = "doctrine",
|
|
18
|
+
TEXTES_NATIONAUX_AUTRE_TEXTE = "textes_nationaux_autre_texte",
|
|
19
|
+
AVIS_CCS = "avis_ccs",
|
|
20
|
+
INSTRUCTIONS_TECHNIQUES = "instructions_techniques"
|
|
14
21
|
}
|
|
15
22
|
export declare enum EtatEnum {
|
|
16
23
|
EN_VIGUEUR = "en_vigueur"
|
|
@@ -6,7 +6,14 @@ var NatureEnum;
|
|
|
6
6
|
(function (NatureEnum) {
|
|
7
7
|
NatureEnum["ARRETE"] = "arrete";
|
|
8
8
|
NatureEnum["ARTICLE"] = "article";
|
|
9
|
-
NatureEnum["
|
|
9
|
+
NatureEnum["ARRETES_PREFECTORAUX"] = "arretes_prefectoraux";
|
|
10
|
+
NatureEnum["ARTICLES"] = "articles";
|
|
11
|
+
NatureEnum["GUIDES"] = "guides";
|
|
12
|
+
NatureEnum["LOCAL_AUTRE_TEXTE"] = "local_autre_texte";
|
|
13
|
+
NatureEnum["DOCTRINE"] = "doctrine";
|
|
14
|
+
NatureEnum["TEXTES_NATIONAUX_AUTRE_TEXTE"] = "textes_nationaux_autre_texte";
|
|
15
|
+
NatureEnum["AVIS_CCS"] = "avis_ccs";
|
|
16
|
+
NatureEnum["INSTRUCTIONS_TECHNIQUES"] = "instructions_techniques";
|
|
10
17
|
})(NatureEnum = exports.NatureEnum || (exports.NatureEnum = {}));
|
|
11
18
|
var EtatEnum;
|
|
12
19
|
(function (EtatEnum) {
|
|
@@ -14,5 +14,7 @@ export type RapportEtude = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare enum PropositionAvisEnum {
|
|
16
16
|
FAVORABLE = "favorable",
|
|
17
|
-
DEFAVORABLE = "defavorable"
|
|
17
|
+
DEFAVORABLE = "defavorable",
|
|
18
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
19
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
18
20
|
}
|
|
@@ -5,4 +5,6 @@ var PropositionAvisEnum;
|
|
|
5
5
|
(function (PropositionAvisEnum) {
|
|
6
6
|
PropositionAvisEnum["FAVORABLE"] = "favorable";
|
|
7
7
|
PropositionAvisEnum["DEFAVORABLE"] = "defavorable";
|
|
8
|
+
PropositionAvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
9
|
+
PropositionAvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
8
10
|
})(PropositionAvisEnum = exports.PropositionAvisEnum || (exports.PropositionAvisEnum = {}));
|
|
@@ -12,5 +12,7 @@ export type RapportVisite = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare enum PropositionAvisEnum {
|
|
14
14
|
FAVORABLE = "favorable",
|
|
15
|
-
DEFAVORABLE = "defavorable"
|
|
15
|
+
DEFAVORABLE = "defavorable",
|
|
16
|
+
FAVORABLE_EXPLOITATION = "favorable_exploitation",
|
|
17
|
+
DEFAVORABLE_EXPLOITATION = "defavorable_exploitation"
|
|
16
18
|
}
|
|
@@ -5,4 +5,6 @@ var PropositionAvisEnum;
|
|
|
5
5
|
(function (PropositionAvisEnum) {
|
|
6
6
|
PropositionAvisEnum["FAVORABLE"] = "favorable";
|
|
7
7
|
PropositionAvisEnum["DEFAVORABLE"] = "defavorable";
|
|
8
|
+
PropositionAvisEnum["FAVORABLE_EXPLOITATION"] = "favorable_exploitation";
|
|
9
|
+
PropositionAvisEnum["DEFAVORABLE_EXPLOITATION"] = "defavorable_exploitation";
|
|
8
10
|
})(PropositionAvisEnum = exports.PropositionAvisEnum || (exports.PropositionAvisEnum = {}));
|
package/package.json
CHANGED
|
@@ -119,6 +119,47 @@ export class CommissionsAPI extends Core {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Modification d'une commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
124
|
+
*/
|
|
125
|
+
patchCommission(
|
|
126
|
+
commissionId: string,
|
|
127
|
+
params : any
|
|
128
|
+
) : Promise<AxiosResponse<Commission>>
|
|
129
|
+
{
|
|
130
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
131
|
+
return this.request({
|
|
132
|
+
method: 'PATCH',
|
|
133
|
+
endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
|
|
134
|
+
transformResponse: [(data) => {
|
|
135
|
+
const parsedData = JSON.parse(data);
|
|
136
|
+
return parsedData;
|
|
137
|
+
}],
|
|
138
|
+
body: Utils.payloadFilter(params)
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Modification d'un passage en commission existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
144
|
+
*/
|
|
145
|
+
patchPassageDatesCommission(
|
|
146
|
+
commissionId: string,
|
|
147
|
+
passageId: string,
|
|
148
|
+
params : any
|
|
149
|
+
) : Promise<AxiosResponse<PassageCommission>>
|
|
150
|
+
{
|
|
151
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'passage_id': (new String(passageId)).toString() };
|
|
152
|
+
return this.request({
|
|
153
|
+
method: 'PATCH',
|
|
154
|
+
endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{passage_id}'),
|
|
155
|
+
transformResponse: [(data) => {
|
|
156
|
+
const parsedData = JSON.parse(data);
|
|
157
|
+
return parsedData;
|
|
158
|
+
}],
|
|
159
|
+
body: Utils.payloadFilter(params)
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
122
163
|
/**
|
|
123
164
|
* Ajoute une commission.
|
|
124
165
|
*/
|
package/src/api/ERPAPI.ts
CHANGED
|
@@ -163,7 +163,7 @@ export class ERPAPI extends Core {
|
|
|
163
163
|
referencesExterieures? : string | Array<string>,
|
|
164
164
|
presenceLocauxSommeil? : boolean,
|
|
165
165
|
typeActivite? : string | Array<string>,
|
|
166
|
-
avisExploitation? : 'favorable' | 'defavorable',
|
|
166
|
+
avisExploitation? : 'favorable' | 'defavorable' | 'favorable_exploitation' | 'defavorable_exploitation',
|
|
167
167
|
aVisiterEn? : string,
|
|
168
168
|
siteGeographique? : string,
|
|
169
169
|
commissionConcernee? : string,
|
|
@@ -5,6 +5,7 @@ import type { AxiosResponse } from "axios";
|
|
|
5
5
|
import { Client } from "../client";
|
|
6
6
|
import { Collection } from "../collection";
|
|
7
7
|
import { Prescription } from '../model/Prescription';
|
|
8
|
+
import { PrescriptionExploreResult } from '../model/PrescriptionExploreResult';
|
|
8
9
|
|
|
9
10
|
export class PrescriptionsAPI extends Core {
|
|
10
11
|
constructor(config: MetariscConfig, client?: Client) {
|
|
@@ -47,6 +48,33 @@ export class PrescriptionsAPI extends Core {
|
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Cette opération permet d'explorer les prescriptions en fonction de leur emplacement dans la structure de répertoires.
|
|
53
|
+
Il est possible de filtrer les prescriptions en fonction de leur contenu ou de références aux supports réglementaires.
|
|
54
|
+
Les résultats retournés peuvent être des prescriptions ou des chemins (répertoires).
|
|
55
|
+
*/
|
|
56
|
+
paginateExplore(
|
|
57
|
+
contenu? : string,
|
|
58
|
+
supportReglementaireReference? : string,
|
|
59
|
+
chemin? : string
|
|
60
|
+
) : Collection<PrescriptionExploreResult>
|
|
61
|
+
{
|
|
62
|
+
const pathVariable = { };
|
|
63
|
+
return this.collect({
|
|
64
|
+
method: 'GET',
|
|
65
|
+
endpoint: Utils.constructPath(pathVariable, '/prescriptions/explore'),
|
|
66
|
+
params: Utils.payloadFilter({
|
|
67
|
+
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
68
|
+
'support_reglementaire_reference': supportReglementaireReference === undefined ? undefined : (new String(supportReglementaireReference)).toString(),
|
|
69
|
+
'chemin': chemin === undefined ? undefined : (new String(chemin)).toString()
|
|
70
|
+
}),
|
|
71
|
+
transformResponse: [(data) => {
|
|
72
|
+
const parsedData = JSON.parse(data);
|
|
73
|
+
return parsedData;
|
|
74
|
+
}]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
50
78
|
/**
|
|
51
79
|
* Liste des prescriptions.
|
|
52
80
|
*/
|
package/src/model/Commission.ts
CHANGED
package/src/model/Dossier.ts
CHANGED
|
@@ -17,7 +17,9 @@ export enum ModulesEnum {
|
|
|
17
17
|
|
|
18
18
|
export enum AvisEnum {
|
|
19
19
|
FAVORABLE = 'favorable',
|
|
20
|
-
DEFAVORABLE = 'defavorable'
|
|
20
|
+
DEFAVORABLE = 'defavorable',
|
|
21
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
22
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export enum WorkflowsActifsEnum {
|
package/src/model/DossierBase.ts
CHANGED
|
@@ -38,7 +38,9 @@ export enum ModulesEnum {
|
|
|
38
38
|
|
|
39
39
|
export enum AvisEnum {
|
|
40
40
|
FAVORABLE = 'favorable',
|
|
41
|
-
DEFAVORABLE = 'defavorable'
|
|
41
|
+
DEFAVORABLE = 'defavorable',
|
|
42
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
43
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export enum WorkflowsActifsEnum {
|
package/src/model/DossierDeci.ts
CHANGED
|
@@ -23,7 +23,9 @@ export enum ModulesEnum {
|
|
|
23
23
|
|
|
24
24
|
export enum AvisEnum {
|
|
25
25
|
FAVORABLE = 'favorable',
|
|
26
|
-
DEFAVORABLE = 'defavorable'
|
|
26
|
+
DEFAVORABLE = 'defavorable',
|
|
27
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
28
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export enum WorkflowsActifsEnum {
|
package/src/model/DossierErp.ts
CHANGED
|
@@ -37,7 +37,9 @@ export enum ModulesEnum {
|
|
|
37
37
|
|
|
38
38
|
export enum AvisEnum {
|
|
39
39
|
FAVORABLE = 'favorable',
|
|
40
|
-
DEFAVORABLE = 'defavorable'
|
|
40
|
+
DEFAVORABLE = 'defavorable',
|
|
41
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
42
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export enum WorkflowsActifsEnum {
|
package/src/model/ERP.ts
CHANGED
|
@@ -30,5 +30,7 @@ export type ERP = {
|
|
|
30
30
|
|
|
31
31
|
export enum AvisExploitationEnum {
|
|
32
32
|
FAVORABLE = 'favorable',
|
|
33
|
-
DEFAVORABLE = 'defavorable'
|
|
33
|
+
DEFAVORABLE = 'defavorable',
|
|
34
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
35
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
34
36
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { CommissionMembre } from './CommissionMembre';
|
|
3
|
+
|
|
4
|
+
export type MembreAvis = {
|
|
5
|
+
'membre': CommissionMembre;
|
|
6
|
+
'avis': AvisEnum;
|
|
7
|
+
'motivation_avis'?: string | null;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export enum AvisEnum {
|
|
11
|
+
FAVORABLE = 'favorable',
|
|
12
|
+
DEFAVORABLE = 'defavorable',
|
|
13
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
14
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
15
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { Dossier } from './Dossier';
|
|
3
|
+
import { MembreAvis } from './MembreAvis';
|
|
3
4
|
|
|
4
5
|
export type PassageCommissionDossier = {
|
|
5
6
|
'id': string;
|
|
@@ -10,9 +11,12 @@ export type PassageCommissionDossier = {
|
|
|
10
11
|
'avis_differe': boolean | null;
|
|
11
12
|
'observations': string | null;
|
|
12
13
|
'duree_minutes': number;
|
|
14
|
+
'membres_avis': Array<MembreAvis>;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export enum AvisEnum {
|
|
16
18
|
FAVORABLE = 'favorable',
|
|
17
|
-
DEFAVORABLE = 'defavorable'
|
|
19
|
+
DEFAVORABLE = 'defavorable',
|
|
20
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
21
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
18
22
|
}
|
|
@@ -4,8 +4,9 @@ import { PrescriptionSupportReglementaire } from './PrescriptionSupportReglement
|
|
|
4
4
|
export type Prescription = {
|
|
5
5
|
'id': string;
|
|
6
6
|
'contenu': string;
|
|
7
|
-
'type': TypeEnum;
|
|
7
|
+
'type': TypeEnum | null;
|
|
8
8
|
'supports_reglementaires': Array<PrescriptionSupportReglementaire>;
|
|
9
|
+
'chemins': Array<string>;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export enum TypeEnum {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { PrescriptionExploreResultChemin } from './PrescriptionExploreResultChemin';
|
|
3
|
+
import { PrescriptionExploreResultPrescription } from './PrescriptionExploreResultPrescription';
|
|
4
|
+
|
|
5
|
+
export type PrescriptionExploreResult = PrescriptionExploreResultPrescription | PrescriptionExploreResultChemin;
|
|
@@ -13,7 +13,14 @@ export type PrescriptionSupportReglementaire = {
|
|
|
13
13
|
export enum NatureEnum {
|
|
14
14
|
ARRETE = 'arrete',
|
|
15
15
|
ARTICLE = 'article',
|
|
16
|
-
|
|
16
|
+
ARRETES_PREFECTORAUX = 'arretes_prefectoraux',
|
|
17
|
+
ARTICLES = 'articles',
|
|
18
|
+
GUIDES = 'guides',
|
|
19
|
+
LOCAL_AUTRE_TEXTE = 'local_autre_texte',
|
|
20
|
+
DOCTRINE = 'doctrine',
|
|
21
|
+
TEXTES_NATIONAUX_AUTRE_TEXTE = 'textes_nationaux_autre_texte',
|
|
22
|
+
AVIS_CCS = 'avis_ccs',
|
|
23
|
+
INSTRUCTIONS_TECHNIQUES = 'instructions_techniques'
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
export enum EtatEnum {
|
|
@@ -17,5 +17,7 @@ export type RapportEtude = {
|
|
|
17
17
|
|
|
18
18
|
export enum PropositionAvisEnum {
|
|
19
19
|
FAVORABLE = 'favorable',
|
|
20
|
-
DEFAVORABLE = 'defavorable'
|
|
20
|
+
DEFAVORABLE = 'defavorable',
|
|
21
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
22
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
21
23
|
}
|
|
@@ -15,5 +15,7 @@ export type RapportVisite = {
|
|
|
15
15
|
|
|
16
16
|
export enum PropositionAvisEnum {
|
|
17
17
|
FAVORABLE = 'favorable',
|
|
18
|
-
DEFAVORABLE = 'defavorable'
|
|
18
|
+
DEFAVORABLE = 'defavorable',
|
|
19
|
+
FAVORABLE_EXPLOITATION = 'favorable_exploitation',
|
|
20
|
+
DEFAVORABLE_EXPLOITATION = 'defavorable_exploitation'
|
|
19
21
|
}
|