@metarisc/metarisc-js 0.0.1-alpha.44 → 0.0.1-alpha.46

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.
@@ -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
@@ -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
  }
@@ -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
  }
@@ -7,6 +7,7 @@ export type TourneeDeciPei = {
7
7
  'essais_engin_utilise'?: EssaisEnginUtiliseEnum;
8
8
  'pei'?: PEI;
9
9
  'est_controle'?: boolean;
10
+ 'ordre'?: number;
10
11
  };
11
12
  export declare enum EssaisEnginUtiliseEnum {
12
13
  Aucun = "aucun",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metarisc/metarisc-js",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/index.d.ts",
5
- "version": "0.0.1-alpha.44",
5
+ "version": "0.0.1-alpha.46",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
@@ -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
  }
@@ -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
  }
@@ -8,6 +8,7 @@ export type TourneeDeciPei = {
8
8
  'essais_engin_utilise'?: EssaisEnginUtiliseEnum;
9
9
  'pei'?: PEI;
10
10
  'est_controle'?: boolean;
11
+ 'ordre'?: number;
11
12
  };
12
13
 
13
14
  export enum EssaisEnginUtiliseEnum {