@metarisc/metarisc-js 0.0.1-alpha.45 → 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
  }
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.45",
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
  }