@metarisc/metarisc-js 0.0.1-alpha.45 → 0.0.1-alpha.47
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/AnomaliesAPI.d.ts +2 -1
- package/lib/api/AnomaliesAPI.js +3 -2
- package/lib/api/TournesDECIAPI.js +1 -1
- package/lib/model/PostTourneeDeciRequest.d.ts +2 -0
- package/lib/model/TourneeDeci.d.ts +2 -0
- package/package.json +1 -1
- package/src/api/AnomaliesAPI.ts +3 -2
- package/src/api/TournesDECIAPI.ts +1 -1
- package/src/model/PostTourneeDeciRequest.ts +2 -0
- package/src/model/TourneeDeci.ts +2 -0
|
@@ -19,8 +19,9 @@ export declare class AnomaliesAPI extends Core {
|
|
|
19
19
|
* Liste des anomalies.
|
|
20
20
|
* @param page Numéro de page
|
|
21
21
|
* @param perPage Nombre de résultats demandé
|
|
22
|
+
* @param texte Filtre sur le texte
|
|
22
23
|
*/
|
|
23
|
-
paginateAnomalies(page?: number, perPage?: number): Collection<AnomalieDECI>;
|
|
24
|
+
paginateAnomalies(page?: number, perPage?: number, texte?: string): Collection<AnomalieDECI>;
|
|
24
25
|
/**
|
|
25
26
|
* Ajout d'une nouvelle anomalie.
|
|
26
27
|
* @param anomalieDECI
|
package/lib/api/AnomaliesAPI.js
CHANGED
|
@@ -39,14 +39,15 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
39
39
|
* Liste des anomalies.
|
|
40
40
|
* @param page Numéro de page
|
|
41
41
|
* @param perPage Nombre de résultats demandé
|
|
42
|
+
* @param texte Filtre sur le texte
|
|
42
43
|
*/
|
|
43
|
-
paginateAnomalies(page, perPage) {
|
|
44
|
+
paginateAnomalies(page, perPage, texte) {
|
|
44
45
|
const pathVariable = {};
|
|
45
46
|
return this.collect({
|
|
46
47
|
method: 'GET',
|
|
47
48
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
48
49
|
headers: {},
|
|
49
|
-
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
50
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'texte': texte },
|
|
50
51
|
body: {}
|
|
51
52
|
});
|
|
52
53
|
}
|
|
@@ -95,7 +95,7 @@ class TournesDECIAPI extends core_1.Core {
|
|
|
95
95
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
96
96
|
headers: {},
|
|
97
97
|
params: {},
|
|
98
|
-
body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description }
|
|
98
|
+
body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description, 'date_de_debut': postTourneeDeciRequest?.date_de_debut, 'date_de_fin': postTourneeDeciRequest?.date_de_fin }
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
/**
|
package/package.json
CHANGED
package/src/api/AnomaliesAPI.ts
CHANGED
|
@@ -46,15 +46,16 @@ export class AnomaliesAPI extends Core {
|
|
|
46
46
|
* Liste des anomalies.
|
|
47
47
|
* @param page Numéro de page
|
|
48
48
|
* @param perPage Nombre de résultats demandé
|
|
49
|
+
* @param texte Filtre sur le texte
|
|
49
50
|
*/
|
|
50
|
-
paginateAnomalies(page?: number, perPage?: number): Collection<AnomalieDECI>
|
|
51
|
+
paginateAnomalies(page?: number, perPage?: number, texte?: string): Collection<AnomalieDECI>
|
|
51
52
|
{
|
|
52
53
|
const pathVariable = { };
|
|
53
54
|
return this.collect<AnomalieDECI>({
|
|
54
55
|
method: 'GET',
|
|
55
56
|
endpoint: Utils.constructPath(pathVariable, '/anomalies'),
|
|
56
57
|
headers: { },
|
|
57
|
-
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
58
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'texte': texte },
|
|
58
59
|
body: {}
|
|
59
60
|
});
|
|
60
61
|
}
|
|
@@ -113,7 +113,7 @@ export class TournesDECIAPI extends Core {
|
|
|
113
113
|
endpoint: Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
114
114
|
headers: { },
|
|
115
115
|
params: { },
|
|
116
|
-
body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description }
|
|
116
|
+
body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description, 'date_de_debut': postTourneeDeciRequest?.date_de_debut, 'date_de_fin': postTourneeDeciRequest?.date_de_fin }
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
|