@metarisc/metarisc-js 0.0.1-alpha.11 → 0.0.1-alpha.13

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/metarisc.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Metarisc = void 0;
4
4
  const core_1 = require("./core");
5
5
  const DossiersAPI_1 = require("./api/DossiersAPI");
6
+ const EvenementsAPI_1 = require("./api/EvenementsAPI");
6
7
  const NotificationsAPI_1 = require("./api/NotificationsAPI");
7
8
  const OrganisationAPI_1 = require("./api/OrganisationAPI");
8
9
  const POIAPI_1 = require("./api/POIAPI");
@@ -17,6 +18,8 @@ class Metarisc extends core_1.Core {
17
18
  switch (name) {
18
19
  case "dossiers":
19
20
  return new DossiersAPI_1.DossiersAPI(config);
21
+ case "evenements":
22
+ return new EvenementsAPI_1.EvenementsAPI(config);
20
23
  case "notifications":
21
24
  return new NotificationsAPI_1.NotificationsAPI(config);
22
25
  case "organisations":
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.11",
5
+ "version": "0.0.1-alpha.13",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
package/src/metarisc.ts CHANGED
@@ -2,6 +2,8 @@ import { Core, MetariscConfig } from "./core";
2
2
 
3
3
  import { DossiersAPI } from "./api/DossiersAPI";
4
4
 
5
+ import { EvenementsAPI } from "./api/EvenementsAPI";
6
+
5
7
  import { NotificationsAPI } from "./api/NotificationsAPI";
6
8
 
7
9
  import { OrganisationAPI } from "./api/OrganisationAPI";
@@ -15,14 +17,13 @@ import { SupportAPI } from "./api/SupportAPI";
15
17
  import { UtilisateursAPI } from "./api/UtilisateursAPI";
16
18
 
17
19
  export class Metarisc extends Core {
18
-
19
- public dossiers ?: DossiersAPI;
20
- public notifications ?: NotificationsAPI;
21
- public organisations ?: OrganisationAPI;
22
- public poi ?: POIAPI;
23
- public ping ?: PingAPI;
24
- public support ?: SupportAPI;
25
- public utilisateurs ?: UtilisateursAPI;
20
+ public dossiers?: DossiersAPI;
21
+ public notifications?: NotificationsAPI;
22
+ public organisations?: OrganisationAPI;
23
+ public poi?: POIAPI;
24
+ public ping?: PingAPI;
25
+ public support?: SupportAPI;
26
+ public utilisateurs?: UtilisateursAPI;
26
27
 
27
28
  constructor(config: MetariscConfig) {
28
29
  super(config);
@@ -32,6 +33,8 @@ export class Metarisc extends Core {
32
33
  switch (name) {
33
34
  case "dossiers":
34
35
  return new DossiersAPI(config);
36
+ case "evenements":
37
+ return new EvenementsAPI(config);
35
38
  case "notifications":
36
39
  return new NotificationsAPI(config);
37
40
  case "organisations":