@metarisc/metarisc-js 0.0.1-alpha.43 → 0.0.1-alpha.45
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 +1 -2
- package/lib/api/CommissionsAPI.js +3 -4
- package/lib/api/OrganisationsAPI.d.ts +6 -0
- package/lib/api/OrganisationsAPI.js +14 -0
- package/lib/api/TournesDECIAPI.d.ts +9 -1
- package/lib/api/TournesDECIAPI.js +19 -2
- package/lib/model/GetOrganisationReglesDeci200Response.d.ts +9 -0
- package/lib/model/GetOrganisationReglesDeci200Response.js +2 -0
- package/lib/model/PassageCommission.d.ts +1 -0
- package/lib/model/PostCommissionDateRequest.d.ts +8 -3
- package/lib/model/PostCommissionDateRequest.js +7 -0
- package/lib/model/TourneeDeciPei.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/CommissionsAPI.ts +3 -4
- package/src/api/OrganisationsAPI.ts +17 -0
- package/src/api/TournesDECIAPI.ts +21 -2
- package/src/model/GetOrganisationReglesDeci200Response.ts +9 -0
- package/src/model/PassageCommission.ts +1 -0
- package/src/model/PostCommissionDateRequest.ts +9 -3
- package/src/model/TourneeDeciPei.ts +1 -0
|
@@ -55,10 +55,9 @@ export declare class CommissionsAPI extends Core {
|
|
|
55
55
|
/**
|
|
56
56
|
* Ajout d'une date de passage en commission.
|
|
57
57
|
* @param commissionId Identifiant unique de la commission
|
|
58
|
-
* @param dateId Identifiant unique du passage en commission
|
|
59
58
|
* @param postCommissionDateRequest
|
|
60
59
|
*/
|
|
61
|
-
postCommissionDate(commissionId: string,
|
|
60
|
+
postCommissionDate(commissionId: string, postCommissionDateRequest?: PostCommissionDateRequest): Promise<AxiosResponse<PassageCommission>>;
|
|
62
61
|
/**
|
|
63
62
|
* Ajout d'un dossier à l'ordre du jour d'un passage en commission.
|
|
64
63
|
* @param commissionId Identifiant unique de la commission
|
|
@@ -115,14 +115,13 @@ class CommissionsAPI extends core_1.Core {
|
|
|
115
115
|
/**
|
|
116
116
|
* Ajout d'une date de passage en commission.
|
|
117
117
|
* @param commissionId Identifiant unique de la commission
|
|
118
|
-
* @param dateId Identifiant unique du passage en commission
|
|
119
118
|
* @param postCommissionDateRequest
|
|
120
119
|
*/
|
|
121
|
-
async postCommissionDate(commissionId,
|
|
122
|
-
const pathVariable = { 'commission_id': commissionId
|
|
120
|
+
async postCommissionDate(commissionId, postCommissionDateRequest) {
|
|
121
|
+
const pathVariable = { 'commission_id': commissionId };
|
|
123
122
|
return this.request({
|
|
124
123
|
method: 'POST',
|
|
125
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates
|
|
124
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
126
125
|
headers: {},
|
|
127
126
|
params: {},
|
|
128
127
|
body: { 'libelle': postCommissionDateRequest?.libelle, 'type': postCommissionDateRequest?.type, 'date_de_debut': postCommissionDateRequest?.date_de_debut, 'date_de_fin': postCommissionDateRequest?.date_de_fin }
|
|
@@ -2,6 +2,7 @@ import { Core, MetariscConfig } from "../core";
|
|
|
2
2
|
import type { AxiosResponse } from "axios";
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
|
+
import { GetOrganisationReglesDeci200Response } from '../model/GetOrganisationReglesDeci200Response';
|
|
5
6
|
import { Organisation } from '../model/Organisation';
|
|
6
7
|
import { WorkflowType } from '../model/WorkflowType';
|
|
7
8
|
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
@@ -13,6 +14,11 @@ export declare class OrganisationsAPI extends Core {
|
|
|
13
14
|
* @param orgId Identifiant unique de l'Organisation
|
|
14
15
|
*/
|
|
15
16
|
getOrganisation(orgId: string): Promise<AxiosResponse<Organisation>>;
|
|
17
|
+
/**
|
|
18
|
+
* Ensemble de règles utilisées pour le calcul de la conformité et de la performance DECI.
|
|
19
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
20
|
+
*/
|
|
21
|
+
getOrganisationReglesDeci(orgId: string): Promise<AxiosResponse<GetOrganisationReglesDeci200Response>>;
|
|
16
22
|
/**
|
|
17
23
|
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
18
24
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -21,6 +21,20 @@ class OrganisationsAPI extends core_1.Core {
|
|
|
21
21
|
body: {}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Ensemble de règles utilisées pour le calcul de la conformité et de la performance DECI.
|
|
26
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
27
|
+
*/
|
|
28
|
+
async getOrganisationReglesDeci(orgId) {
|
|
29
|
+
const pathVariable = { 'org_id': orgId };
|
|
30
|
+
return this.request({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci'),
|
|
33
|
+
headers: {},
|
|
34
|
+
params: {},
|
|
35
|
+
body: {}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
24
38
|
/**
|
|
25
39
|
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
26
40
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -9,6 +9,12 @@ import { TourneeDeciPei } from '../model/TourneeDeciPei';
|
|
|
9
9
|
import { UpdateTourneeDeciPeiRequest } from '../model/UpdateTourneeDeciPeiRequest';
|
|
10
10
|
export declare class TournesDECIAPI extends Core {
|
|
11
11
|
constructor(config: MetariscConfig, client?: Client);
|
|
12
|
+
/**
|
|
13
|
+
* Suppression du contrôle PEI de la tournée DECI.
|
|
14
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
15
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
16
|
+
*/
|
|
17
|
+
deleteTourneeDeciPei(tourneeDeciId: string, peiId: string): Promise<AxiosResponse<void>>;
|
|
12
18
|
/**
|
|
13
19
|
* Récupération des détails de la tournée DECI.
|
|
14
20
|
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
@@ -31,8 +37,10 @@ export declare class TournesDECIAPI extends Core {
|
|
|
31
37
|
* Liste des tournées DECI.
|
|
32
38
|
* @param page Numéro de page
|
|
33
39
|
* @param perPage Nombre de résultats demandé
|
|
40
|
+
* @param libelle Filtre sur le libellé
|
|
41
|
+
* @param periode Filtre sur les dates
|
|
34
42
|
*/
|
|
35
|
-
paginateTourneesDeci(page?: number, perPage?: number): Collection<TourneeDeci>;
|
|
43
|
+
paginateTourneesDeci(page?: number, perPage?: number, libelle?: string, periode?: string): Collection<TourneeDeci>;
|
|
36
44
|
/**
|
|
37
45
|
* Ajout d'une nouvelle tournée DECI.
|
|
38
46
|
* @param postTourneeDeciRequest
|
|
@@ -7,6 +7,21 @@ class TournesDECIAPI extends core_1.Core {
|
|
|
7
7
|
constructor(config, client) {
|
|
8
8
|
super(config, client);
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Suppression du contrôle PEI de la tournée DECI.
|
|
12
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
13
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
14
|
+
*/
|
|
15
|
+
async deleteTourneeDeciPei(tourneeDeciId, peiId) {
|
|
16
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
|
|
17
|
+
return this.request({
|
|
18
|
+
method: 'DELETE',
|
|
19
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
|
|
20
|
+
headers: {},
|
|
21
|
+
params: {},
|
|
22
|
+
body: {}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
10
25
|
/**
|
|
11
26
|
* Récupération des détails de la tournée DECI.
|
|
12
27
|
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
@@ -56,14 +71,16 @@ class TournesDECIAPI extends core_1.Core {
|
|
|
56
71
|
* Liste des tournées DECI.
|
|
57
72
|
* @param page Numéro de page
|
|
58
73
|
* @param perPage Nombre de résultats demandé
|
|
74
|
+
* @param libelle Filtre sur le libellé
|
|
75
|
+
* @param periode Filtre sur les dates
|
|
59
76
|
*/
|
|
60
|
-
paginateTourneesDeci(page, perPage) {
|
|
77
|
+
paginateTourneesDeci(page, perPage, libelle, periode) {
|
|
61
78
|
const pathVariable = {};
|
|
62
79
|
return this.collect({
|
|
63
80
|
method: 'GET',
|
|
64
81
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
65
82
|
headers: {},
|
|
66
|
-
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
83
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'libelle': libelle, 'periode': periode },
|
|
67
84
|
body: {}
|
|
68
85
|
});
|
|
69
86
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type GetOrganisationReglesDeci200Response = {
|
|
2
|
+
'pibi_conformite_matrice_seuil_pesee_1bar_par_nature'?: Array<any>;
|
|
3
|
+
'pibi_performance_natures_performance_restreinte'?: Array<string>;
|
|
4
|
+
'pibi_performance_natures_a_reformer'?: Array<string>;
|
|
5
|
+
'pibi_performance_seuil_pesee_1bar'?: number;
|
|
6
|
+
'pibi_conformite_seuil_surpression'?: number;
|
|
7
|
+
'pibi_conformite_matrice_seuil_pesee_1bar_par_defaut'?: number;
|
|
8
|
+
'pena_conformite_seuil_volume_citerne'?: number;
|
|
9
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export type PostCommissionDateRequest = {
|
|
2
2
|
'libelle'?: string;
|
|
3
|
-
'type'?:
|
|
4
|
-
'date_de_debut'?:
|
|
5
|
-
'date_de_fin'?:
|
|
3
|
+
'type'?: TypeEnum;
|
|
4
|
+
'date_de_debut'?: Date;
|
|
5
|
+
'date_de_fin'?: Date;
|
|
6
6
|
};
|
|
7
|
+
export declare enum TypeEnum {
|
|
8
|
+
Salle = "salle",
|
|
9
|
+
VisiteDeSecurite = "visite_de_securite",
|
|
10
|
+
GroupeDeVisite = "groupe_de_visite"
|
|
11
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeEnum = void 0;
|
|
4
|
+
var TypeEnum;
|
|
5
|
+
(function (TypeEnum) {
|
|
6
|
+
TypeEnum["Salle"] = "salle";
|
|
7
|
+
TypeEnum["VisiteDeSecurite"] = "visite_de_securite";
|
|
8
|
+
TypeEnum["GroupeDeVisite"] = "groupe_de_visite";
|
|
9
|
+
})(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
|
package/package.json
CHANGED
|
@@ -137,15 +137,14 @@ export class CommissionsAPI extends Core {
|
|
|
137
137
|
/**
|
|
138
138
|
* Ajout d'une date de passage en commission.
|
|
139
139
|
* @param commissionId Identifiant unique de la commission
|
|
140
|
-
* @param dateId Identifiant unique du passage en commission
|
|
141
140
|
* @param postCommissionDateRequest
|
|
142
141
|
*/
|
|
143
|
-
async postCommissionDate(commissionId: string,
|
|
142
|
+
async postCommissionDate(commissionId: string, postCommissionDateRequest?: PostCommissionDateRequest): Promise<AxiosResponse<PassageCommission>>
|
|
144
143
|
{
|
|
145
|
-
const pathVariable = { 'commission_id': commissionId
|
|
144
|
+
const pathVariable = { 'commission_id': commissionId };
|
|
146
145
|
return this.request({
|
|
147
146
|
method: 'POST',
|
|
148
|
-
endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates
|
|
147
|
+
endpoint: Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
149
148
|
headers: { },
|
|
150
149
|
params: { },
|
|
151
150
|
body: { 'libelle': postCommissionDateRequest?.libelle, 'type': postCommissionDateRequest?.type, 'date_de_debut': postCommissionDateRequest?.date_de_debut, 'date_de_fin': postCommissionDateRequest?.date_de_fin }
|
|
@@ -3,6 +3,7 @@ import { Utils } from "../utils";
|
|
|
3
3
|
import type { AxiosResponse } from "axios";
|
|
4
4
|
import { Client } from "../client";
|
|
5
5
|
import { Collection } from "../collection";
|
|
6
|
+
import { GetOrganisationReglesDeci200Response } from '../model/GetOrganisationReglesDeci200Response';
|
|
6
7
|
import { Organisation } from '../model/Organisation';
|
|
7
8
|
import { WorkflowType } from '../model/WorkflowType';
|
|
8
9
|
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
@@ -29,6 +30,22 @@ export class OrganisationsAPI extends Core {
|
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Ensemble de règles utilisées pour le calcul de la conformité et de la performance DECI.
|
|
35
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
36
|
+
*/
|
|
37
|
+
async getOrganisationReglesDeci(orgId: string): Promise<AxiosResponse<GetOrganisationReglesDeci200Response>>
|
|
38
|
+
{
|
|
39
|
+
const pathVariable = { 'org_id': orgId };
|
|
40
|
+
return this.request({
|
|
41
|
+
method: 'GET',
|
|
42
|
+
endpoint: Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci'),
|
|
43
|
+
headers: { },
|
|
44
|
+
params: { },
|
|
45
|
+
body: {}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
/**
|
|
33
50
|
* Retourne le référentiel du paramétrage des workflows pour l'organisation.
|
|
34
51
|
* @param orgId Identifiant unique de l'Organisation
|
|
@@ -14,6 +14,23 @@ export class TournesDECIAPI extends Core {
|
|
|
14
14
|
super(config, client);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Suppression du contrôle PEI de la tournée DECI.
|
|
19
|
+
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
20
|
+
* @param peiId Identifiant du PEI lié au contrôle
|
|
21
|
+
*/
|
|
22
|
+
async deleteTourneeDeciPei(tourneeDeciId: string, peiId: string): Promise<AxiosResponse<void>>
|
|
23
|
+
{
|
|
24
|
+
const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
|
|
25
|
+
return this.request({
|
|
26
|
+
method: 'DELETE',
|
|
27
|
+
endpoint: Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
|
|
28
|
+
headers: { },
|
|
29
|
+
params: { },
|
|
30
|
+
body: {}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
17
34
|
/**
|
|
18
35
|
* Récupération des détails de la tournée DECI.
|
|
19
36
|
* @param tourneeDeciId Identifiant de la tournée DECI
|
|
@@ -69,15 +86,17 @@ export class TournesDECIAPI extends Core {
|
|
|
69
86
|
* Liste des tournées DECI.
|
|
70
87
|
* @param page Numéro de page
|
|
71
88
|
* @param perPage Nombre de résultats demandé
|
|
89
|
+
* @param libelle Filtre sur le libellé
|
|
90
|
+
* @param periode Filtre sur les dates
|
|
72
91
|
*/
|
|
73
|
-
paginateTourneesDeci(page?: number, perPage?: number): Collection<TourneeDeci>
|
|
92
|
+
paginateTourneesDeci(page?: number, perPage?: number, libelle?: string, periode?: string): Collection<TourneeDeci>
|
|
74
93
|
{
|
|
75
94
|
const pathVariable = { };
|
|
76
95
|
return this.collect<TourneeDeci>({
|
|
77
96
|
method: 'GET',
|
|
78
97
|
endpoint: Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
79
98
|
headers: { },
|
|
80
|
-
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
99
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'libelle': libelle, 'periode': periode },
|
|
81
100
|
body: {}
|
|
82
101
|
});
|
|
83
102
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type GetOrganisationReglesDeci200Response = {
|
|
2
|
+
'pibi_conformite_matrice_seuil_pesee_1bar_par_nature'?: Array<any>;
|
|
3
|
+
'pibi_performance_natures_performance_restreinte'?: Array<string>;
|
|
4
|
+
'pibi_performance_natures_a_reformer'?: Array<string>;
|
|
5
|
+
'pibi_performance_seuil_pesee_1bar'?: number;
|
|
6
|
+
'pibi_conformite_seuil_surpression'?: number;
|
|
7
|
+
'pibi_conformite_matrice_seuil_pesee_1bar_par_defaut'?: number;
|
|
8
|
+
'pena_conformite_seuil_volume_citerne'?: number;
|
|
9
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export type PostCommissionDateRequest = {
|
|
2
2
|
'libelle'?: string;
|
|
3
|
-
'type'?:
|
|
4
|
-
'date_de_debut'?:
|
|
5
|
-
'date_de_fin'?:
|
|
3
|
+
'type'?: TypeEnum;
|
|
4
|
+
'date_de_debut'?: Date;
|
|
5
|
+
'date_de_fin'?: Date;
|
|
6
6
|
};
|
|
7
|
+
|
|
8
|
+
export enum TypeEnum {
|
|
9
|
+
Salle = 'salle',
|
|
10
|
+
VisiteDeSecurite = 'visite_de_securite',
|
|
11
|
+
GroupeDeVisite = 'groupe_de_visite'
|
|
12
|
+
}
|