@metarisc/metarisc-js 0.0.1-alpha.95 → 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 +31 -1
- package/lib/api/ERPAPI.d.ts +1 -1
- package/lib/api/PrescriptionsAPI.d.ts +5 -15
- package/lib/api/PrescriptionsAPI.js +11 -51
- package/lib/api/SupportsReglementairesAPI.d.ts +28 -0
- package/lib/api/SupportsReglementairesAPI.js +88 -0
- package/lib/metarisc.d.ts +1 -1
- package/lib/metarisc.js +1 -1
- 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/lib/resources.d.ts +1 -0
- package/lib/resources.js +3 -1
- package/package.json +1 -1
- package/src/api/CommissionsAPI.ts +42 -1
- package/src/api/ERPAPI.ts +1 -1
- package/src/api/PrescriptionsAPI.ts +17 -68
- package/src/api/SupportsReglementairesAPI.ts +112 -0
- package/src/metarisc.ts +2 -2
- 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
- package/src/resources.ts +2 -0
|
@@ -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
|
*/
|
|
@@ -63,7 +63,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
63
63
|
method: 'GET',
|
|
64
64
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
65
65
|
params: utils_1.Utils.payloadFilter({
|
|
66
|
-
'from_date': fromDate === undefined ? undefined : (
|
|
66
|
+
'from_date': fromDate === undefined ? undefined : utils_1.Utils.formatDate(fromDate),
|
|
67
67
|
'type': type === undefined ? undefined : (new String(type)).toString()
|
|
68
68
|
}),
|
|
69
69
|
transformResponse: [(data) => {
|
|
@@ -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,33 +3,27 @@ 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 {
|
|
6
|
+
import { PrescriptionExploreResult } from '../model/PrescriptionExploreResult';
|
|
7
7
|
export declare class PrescriptionsAPI extends Core {
|
|
8
8
|
constructor(config: MetariscConfig, client?: Client);
|
|
9
9
|
/**
|
|
10
10
|
* Suppression d'une prescription type de la bibliothèque.
|
|
11
11
|
*/
|
|
12
12
|
deletePrescription(prescriptionId: string): Promise<AxiosResponse<void>>;
|
|
13
|
-
/**
|
|
14
|
-
* Suppression d'un support réglementaire.
|
|
15
|
-
*/
|
|
16
|
-
deleteSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<void>>;
|
|
17
13
|
/**
|
|
18
14
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
19
15
|
*/
|
|
20
16
|
getPrescription(prescriptionId: string): Promise<AxiosResponse<Prescription>>;
|
|
21
17
|
/**
|
|
22
|
-
*
|
|
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).
|
|
23
21
|
*/
|
|
24
|
-
|
|
22
|
+
paginateExplore(contenu?: string, supportReglementaireReference?: string, chemin?: string): Collection<PrescriptionExploreResult>;
|
|
25
23
|
/**
|
|
26
24
|
* Liste des prescriptions.
|
|
27
25
|
*/
|
|
28
26
|
paginatePrescriptions(contenu?: string, supportReglementaireReference?: string): Collection<Prescription>;
|
|
29
|
-
/**
|
|
30
|
-
* Liste des supports réglementaires.
|
|
31
|
-
*/
|
|
32
|
-
paginateSupportsReglementaires(contenu?: string, reference?: string): Collection<PrescriptionSupportReglementaire>;
|
|
33
27
|
/**
|
|
34
28
|
* Modification d'une prescription existante en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
35
29
|
*/
|
|
@@ -38,8 +32,4 @@ export declare class PrescriptionsAPI extends Core {
|
|
|
38
32
|
* Ajout d'une nouvelle prescription type dans la bibliothèque.
|
|
39
33
|
*/
|
|
40
34
|
postPrescription(params: any): Promise<AxiosResponse<Prescription>>;
|
|
41
|
-
/**
|
|
42
|
-
* Ajouter un support réglementaire.
|
|
43
|
-
*/
|
|
44
|
-
postSupportReglementaire(params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
45
35
|
}
|
|
@@ -22,20 +22,6 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
22
22
|
}]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Suppression d'un support réglementaire.
|
|
27
|
-
*/
|
|
28
|
-
deleteSupportReglementaire(supportReglementaireId) {
|
|
29
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
30
|
-
return this.request({
|
|
31
|
-
method: 'DELETE',
|
|
32
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
33
|
-
transformResponse: [(data) => {
|
|
34
|
-
const parsedData = JSON.parse(data);
|
|
35
|
-
return parsedData;
|
|
36
|
-
}]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
25
|
/**
|
|
40
26
|
* Récupération des détails d'une prescription dans la bibliothèque.
|
|
41
27
|
*/
|
|
@@ -51,30 +37,19 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
51
37
|
});
|
|
52
38
|
}
|
|
53
39
|
/**
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
58
|
-
return this.request({
|
|
59
|
-
method: 'GET',
|
|
60
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
61
|
-
transformResponse: [(data) => {
|
|
62
|
-
const parsedData = JSON.parse(data);
|
|
63
|
-
return parsedData;
|
|
64
|
-
}]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Liste des prescriptions.
|
|
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).
|
|
69
43
|
*/
|
|
70
|
-
|
|
44
|
+
paginateExplore(contenu, supportReglementaireReference, chemin) {
|
|
71
45
|
const pathVariable = {};
|
|
72
46
|
return this.collect({
|
|
73
47
|
method: 'GET',
|
|
74
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions'),
|
|
48
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions/explore'),
|
|
75
49
|
params: utils_1.Utils.payloadFilter({
|
|
76
50
|
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
77
|
-
'support_reglementaire_reference': supportReglementaireReference === undefined ? undefined : (new String(supportReglementaireReference)).toString()
|
|
51
|
+
'support_reglementaire_reference': supportReglementaireReference === undefined ? undefined : (new String(supportReglementaireReference)).toString(),
|
|
52
|
+
'chemin': chemin === undefined ? undefined : (new String(chemin)).toString()
|
|
78
53
|
}),
|
|
79
54
|
transformResponse: [(data) => {
|
|
80
55
|
const parsedData = JSON.parse(data);
|
|
@@ -83,16 +58,16 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
83
58
|
});
|
|
84
59
|
}
|
|
85
60
|
/**
|
|
86
|
-
* Liste des
|
|
61
|
+
* Liste des prescriptions.
|
|
87
62
|
*/
|
|
88
|
-
|
|
63
|
+
paginatePrescriptions(contenu, supportReglementaireReference) {
|
|
89
64
|
const pathVariable = {};
|
|
90
65
|
return this.collect({
|
|
91
66
|
method: 'GET',
|
|
92
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/
|
|
67
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions'),
|
|
93
68
|
params: utils_1.Utils.payloadFilter({
|
|
94
69
|
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
95
|
-
'
|
|
70
|
+
'support_reglementaire_reference': supportReglementaireReference === undefined ? undefined : (new String(supportReglementaireReference)).toString()
|
|
96
71
|
}),
|
|
97
72
|
transformResponse: [(data) => {
|
|
98
73
|
const parsedData = JSON.parse(data);
|
|
@@ -130,20 +105,5 @@ class PrescriptionsAPI extends core_1.Core {
|
|
|
130
105
|
body: utils_1.Utils.payloadFilter(params)
|
|
131
106
|
});
|
|
132
107
|
}
|
|
133
|
-
/**
|
|
134
|
-
* Ajouter un support réglementaire.
|
|
135
|
-
*/
|
|
136
|
-
postSupportReglementaire(params) {
|
|
137
|
-
const pathVariable = {};
|
|
138
|
-
return this.request({
|
|
139
|
-
method: 'POST',
|
|
140
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
141
|
-
transformResponse: [(data) => {
|
|
142
|
-
const parsedData = JSON.parse(data);
|
|
143
|
-
return parsedData;
|
|
144
|
-
}],
|
|
145
|
-
body: utils_1.Utils.payloadFilter(params)
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
108
|
}
|
|
149
109
|
exports.PrescriptionsAPI = PrescriptionsAPI;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { PrescriptionSupportReglementaire } from '../model/PrescriptionSupportReglementaire';
|
|
6
|
+
export declare class SupportsReglementairesAPI extends Core {
|
|
7
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Suppression d'un support réglementaire.
|
|
10
|
+
*/
|
|
11
|
+
deleteSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<void>>;
|
|
12
|
+
/**
|
|
13
|
+
* Récupération des détails d'un support réglementaire.
|
|
14
|
+
*/
|
|
15
|
+
getSupportReglementaire(supportReglementaireId: string): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
16
|
+
/**
|
|
17
|
+
* Liste des supports réglementaires.
|
|
18
|
+
*/
|
|
19
|
+
paginateSupportsReglementaires(contenu?: string, reference?: string): Collection<PrescriptionSupportReglementaire>;
|
|
20
|
+
/**
|
|
21
|
+
* Modification d'un support réglementaire existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
22
|
+
*/
|
|
23
|
+
patchSupportReglementaire(supportReglementaireId: string, params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
24
|
+
/**
|
|
25
|
+
* Ajouter un support réglementaire.
|
|
26
|
+
*/
|
|
27
|
+
postSupportReglementaire(params: any): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SupportsReglementairesAPI = void 0;
|
|
4
|
+
// File generated from our OpenAPI spec
|
|
5
|
+
const core_1 = require("../core");
|
|
6
|
+
const utils_1 = require("../utils");
|
|
7
|
+
class SupportsReglementairesAPI extends core_1.Core {
|
|
8
|
+
constructor(config, client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Suppression d'un support réglementaire.
|
|
13
|
+
*/
|
|
14
|
+
deleteSupportReglementaire(supportReglementaireId) {
|
|
15
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
16
|
+
return this.request({
|
|
17
|
+
method: 'DELETE',
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
19
|
+
transformResponse: [(data) => {
|
|
20
|
+
const parsedData = JSON.parse(data);
|
|
21
|
+
return parsedData;
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Récupération des détails d'un support réglementaire.
|
|
27
|
+
*/
|
|
28
|
+
getSupportReglementaire(supportReglementaireId) {
|
|
29
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
30
|
+
return this.request({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
33
|
+
transformResponse: [(data) => {
|
|
34
|
+
const parsedData = JSON.parse(data);
|
|
35
|
+
return parsedData;
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Liste des supports réglementaires.
|
|
41
|
+
*/
|
|
42
|
+
paginateSupportsReglementaires(contenu, reference) {
|
|
43
|
+
const pathVariable = {};
|
|
44
|
+
return this.collect({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
47
|
+
params: utils_1.Utils.payloadFilter({
|
|
48
|
+
'contenu': contenu === undefined ? undefined : (new String(contenu)).toString(),
|
|
49
|
+
'reference': reference === undefined ? undefined : (new String(reference)).toString()
|
|
50
|
+
}),
|
|
51
|
+
transformResponse: [(data) => {
|
|
52
|
+
const parsedData = JSON.parse(data);
|
|
53
|
+
return parsedData;
|
|
54
|
+
}]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Modification d'un support réglementaire existant en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
59
|
+
*/
|
|
60
|
+
patchSupportReglementaire(supportReglementaireId, params) {
|
|
61
|
+
const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
|
|
62
|
+
return this.request({
|
|
63
|
+
method: 'PATCH',
|
|
64
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
|
|
65
|
+
transformResponse: [(data) => {
|
|
66
|
+
const parsedData = JSON.parse(data);
|
|
67
|
+
return parsedData;
|
|
68
|
+
}],
|
|
69
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Ajouter un support réglementaire.
|
|
74
|
+
*/
|
|
75
|
+
postSupportReglementaire(params) {
|
|
76
|
+
const pathVariable = {};
|
|
77
|
+
return this.request({
|
|
78
|
+
method: 'POST',
|
|
79
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
|
|
80
|
+
transformResponse: [(data) => {
|
|
81
|
+
const parsedData = JSON.parse(data);
|
|
82
|
+
return parsedData;
|
|
83
|
+
}],
|
|
84
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.SupportsReglementairesAPI = SupportsReglementairesAPI;
|
package/lib/metarisc.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class Metarisc extends Core {
|
|
|
25
25
|
dossiers_affectations: resources.DossiersAffectationsAPI;
|
|
26
26
|
mains_courantes: resources.MainsCourantesAPI;
|
|
27
27
|
anomalies: resources.AnomaliesAPI;
|
|
28
|
-
supports_reglementaires: resources.
|
|
28
|
+
supports_reglementaires: resources.SupportsReglementairesAPI;
|
|
29
29
|
feed: resources.FeedAPI;
|
|
30
30
|
tournees_deci: resources.TourneesDECIAPI;
|
|
31
31
|
controles_pei: resources.ControlesPEIAPI;
|
package/lib/metarisc.js
CHANGED
|
@@ -57,7 +57,7 @@ class Metarisc extends core_1.Core {
|
|
|
57
57
|
case 'dossiers_affectations': return new resources.DossiersAffectationsAPI(config, tmpClient);
|
|
58
58
|
case 'mains_courantes': return new resources.MainsCourantesAPI(config, tmpClient);
|
|
59
59
|
case 'anomalies': return new resources.AnomaliesAPI(config, tmpClient);
|
|
60
|
-
case 'supports_reglementaires': return new resources.
|
|
60
|
+
case 'supports_reglementaires': return new resources.SupportsReglementairesAPI(config, tmpClient);
|
|
61
61
|
case 'feed': return new resources.FeedAPI(config, tmpClient);
|
|
62
62
|
case 'tournees_deci': return new resources.TourneesDECIAPI(config, tmpClient);
|
|
63
63
|
case 'controles_pei': return new resources.ControlesPEIAPI(config, tmpClient);
|
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
|
}
|