@metarisc/metarisc-js 0.0.1-alpha.31 → 0.0.1-alpha.32
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 +11 -0
- package/lib/api/AnomaliesAPI.js +24 -0
- package/lib/api/CommissionsAPI.d.ts +11 -0
- package/lib/api/CommissionsAPI.js +24 -0
- package/lib/api/DossiersAPI.d.ts +2 -2
- package/lib/api/OrganisationsAPI.d.ts +12 -0
- package/lib/api/OrganisationsAPI.js +28 -0
- package/lib/api/PrescriptionsAPI.d.ts +11 -0
- package/lib/api/PrescriptionsAPI.js +24 -0
- package/lib/api/TournesDECIAPI.d.ts +11 -0
- package/lib/api/TournesDECIAPI.js +24 -0
- package/lib/api/UtilisateursAPI.d.ts +2 -2
- package/lib/api/UtilisateursAPI.js +2 -2
- package/lib/index.d.ts +4 -0
- package/lib/index.js +9 -1
- package/lib/metarisc.d.ts +11 -3
- package/lib/metarisc.js +18 -6
- package/lib/model/AnomalieDECI.d.ts +3 -0
- package/lib/model/Commission.d.ts +12 -0
- package/lib/model/Commission.js +11 -0
- package/lib/model/OrganisationGeoservice.d.ts +11 -0
- package/lib/model/OrganisationGeoservice.js +8 -0
- package/lib/model/OrganisationMembre.d.ts +9 -0
- package/lib/model/OrganisationMembre.js +7 -0
- package/lib/model/PieceJointe.d.ts +7 -1
- package/lib/model/PieceJointe.js +8 -0
- package/lib/model/Prescription.d.ts +12 -0
- package/lib/model/Prescription.js +9 -0
- package/lib/model/PrescriptionSupportReglementaire.d.ts +11 -0
- package/lib/model/PrescriptionSupportReglementaire.js +9 -0
- package/lib/model/TourneeDeci.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/AnomaliesAPI.ts +27 -0
- package/src/api/CommissionsAPI.ts +27 -0
- package/src/api/DossiersAPI.ts +3 -3
- package/src/api/OrganisationsAPI.ts +34 -0
- package/src/api/PrescriptionsAPI.ts +27 -0
- package/src/api/TournesDECIAPI.ts +27 -0
- package/src/api/UtilisateursAPI.ts +2 -2
- package/src/index.ts +8 -0
- package/src/metarisc.ts +39 -11
- package/src/model/AnomalieDECI.ts +3 -0
- package/src/model/Commission.ts +13 -0
- package/src/model/OrganisationGeoservice.ts +12 -0
- package/src/model/OrganisationMembre.ts +10 -0
- package/src/model/PieceJointe.ts +8 -1
- package/src/model/Prescription.ts +14 -0
- package/src/model/PrescriptionSupportReglementaire.ts +12 -0
- package/src/model/TourneeDeci.ts +8 -0
- package/lib/model/Document.d.ts +0 -3
- package/src/model/Document.ts +0 -3
- /package/lib/model/{Document.js → TourneeDeci.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Client } from "../client";
|
|
3
|
+
import { Collection } from "../collection";
|
|
4
|
+
import { AnomalieDECI } from '../model/AnomalieDECI';
|
|
5
|
+
export declare class AnomaliesAPI extends Core {
|
|
6
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
7
|
+
/**
|
|
8
|
+
* Liste des anomalies.
|
|
9
|
+
*/
|
|
10
|
+
paginateAnomalies(): Collection<AnomalieDECI>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnomaliesAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class AnomaliesAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Liste des anomalies.
|
|
12
|
+
*/
|
|
13
|
+
paginateAnomalies() {
|
|
14
|
+
const pathVariable = {};
|
|
15
|
+
return this.collect({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
18
|
+
headers: {},
|
|
19
|
+
params: {},
|
|
20
|
+
body: {}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.AnomaliesAPI = AnomaliesAPI;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Client } from "../client";
|
|
3
|
+
import { Collection } from "../collection";
|
|
4
|
+
import { Commission } from '../model/Commission';
|
|
5
|
+
export declare class CommissionsAPI extends Core {
|
|
6
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
7
|
+
/**
|
|
8
|
+
* Liste des commissions.
|
|
9
|
+
*/
|
|
10
|
+
paginateCommissions(): Collection<Commission>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommissionsAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class CommissionsAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Liste des commissions.
|
|
12
|
+
*/
|
|
13
|
+
paginateCommissions() {
|
|
14
|
+
const pathVariable = {};
|
|
15
|
+
return this.collect({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
18
|
+
headers: {},
|
|
19
|
+
params: {},
|
|
20
|
+
body: {}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CommissionsAPI = CommissionsAPI;
|
package/lib/api/DossiersAPI.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Dossier } from '../model/Dossier';
|
|
|
6
6
|
import { PostDossierRequest } from '../model/PostDossierRequest';
|
|
7
7
|
import { Workflow } from '../model/Workflow';
|
|
8
8
|
import { Tag } from '../model/Tag';
|
|
9
|
-
import {
|
|
9
|
+
import { PieceJointe } from '../model/PieceJointe';
|
|
10
10
|
export declare class DossiersAPI extends Core {
|
|
11
11
|
constructor(config: MetariscConfig, client?: Client);
|
|
12
12
|
/**
|
|
@@ -34,7 +34,7 @@ export declare class DossiersAPI extends Core {
|
|
|
34
34
|
* @param page Numéro de page
|
|
35
35
|
* @param perPage Nombre de résultats demandé
|
|
36
36
|
*/
|
|
37
|
-
paginateDossierWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Collection<
|
|
37
|
+
paginateDossierWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Collection<PieceJointe>;
|
|
38
38
|
/**
|
|
39
39
|
* Récupération de la liste des workflows d'un dossier.
|
|
40
40
|
* @param dossierId Identifiant unique du Dossier
|
|
@@ -3,6 +3,8 @@ import type { AxiosResponse } from "axios";
|
|
|
3
3
|
import { Client } from "../client";
|
|
4
4
|
import { Collection } from "../collection";
|
|
5
5
|
import { Organisation } from '../model/Organisation';
|
|
6
|
+
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
7
|
+
import { OrganisationMembre } from '../model/OrganisationMembre';
|
|
6
8
|
export declare class OrganisationsAPI extends Core {
|
|
7
9
|
constructor(config: MetariscConfig, client?: Client);
|
|
8
10
|
/**
|
|
@@ -10,6 +12,16 @@ export declare class OrganisationsAPI extends Core {
|
|
|
10
12
|
* @param orgId Identifiant unique de l'Organisation
|
|
11
13
|
*/
|
|
12
14
|
getOrganisation(orgId: string): Promise<AxiosResponse<Organisation>>;
|
|
15
|
+
/**
|
|
16
|
+
* Récupération de la liste des géo-services d'une organisation.
|
|
17
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
18
|
+
*/
|
|
19
|
+
paginateOrganisationGeoservices(orgId: string): Collection<OrganisationGeoservice>;
|
|
20
|
+
/**
|
|
21
|
+
* Récupération de la liste des membres d'une organisation.
|
|
22
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
23
|
+
*/
|
|
24
|
+
paginateOrganisationMembres(orgId: string): Collection<OrganisationMembre>;
|
|
13
25
|
/**
|
|
14
26
|
* Liste paginée des organisations.
|
|
15
27
|
* @param page Numéro de page
|
|
@@ -21,6 +21,34 @@ class OrganisationsAPI extends core_1.Core {
|
|
|
21
21
|
body: {}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Récupération de la liste des géo-services d'une organisation.
|
|
26
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
27
|
+
*/
|
|
28
|
+
paginateOrganisationGeoservices(orgId) {
|
|
29
|
+
const pathVariable = { 'org_id': orgId };
|
|
30
|
+
return this.collect({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
|
|
33
|
+
headers: {},
|
|
34
|
+
params: {},
|
|
35
|
+
body: {}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Récupération de la liste des membres d'une organisation.
|
|
40
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
41
|
+
*/
|
|
42
|
+
paginateOrganisationMembres(orgId) {
|
|
43
|
+
const pathVariable = { 'org_id': orgId };
|
|
44
|
+
return this.collect({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
|
|
47
|
+
headers: {},
|
|
48
|
+
params: {},
|
|
49
|
+
body: {}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
24
52
|
/**
|
|
25
53
|
* Liste paginée des organisations.
|
|
26
54
|
* @param page Numéro de page
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Client } from "../client";
|
|
3
|
+
import { Collection } from "../collection";
|
|
4
|
+
import { Prescription } from '../model/Prescription';
|
|
5
|
+
export declare class PrescriptionsAPI extends Core {
|
|
6
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
7
|
+
/**
|
|
8
|
+
* Liste des prescriptions.
|
|
9
|
+
*/
|
|
10
|
+
paginatePrescriptions(): Collection<Prescription>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrescriptionsAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class PrescriptionsAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Liste des prescriptions.
|
|
12
|
+
*/
|
|
13
|
+
paginatePrescriptions() {
|
|
14
|
+
const pathVariable = {};
|
|
15
|
+
return this.collect({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions'),
|
|
18
|
+
headers: {},
|
|
19
|
+
params: {},
|
|
20
|
+
body: {}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PrescriptionsAPI = PrescriptionsAPI;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Client } from "../client";
|
|
3
|
+
import { Collection } from "../collection";
|
|
4
|
+
import { TourneeDeci } from '../model/TourneeDeci';
|
|
5
|
+
export declare class TournesDECIAPI extends Core {
|
|
6
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
7
|
+
/**
|
|
8
|
+
* Liste des tournées DECI.
|
|
9
|
+
*/
|
|
10
|
+
paginateTourneesDeci(): Collection<TourneeDeci>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TournesDECIAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class TournesDECIAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Liste des tournées DECI.
|
|
12
|
+
*/
|
|
13
|
+
paginateTourneesDeci() {
|
|
14
|
+
const pathVariable = {};
|
|
15
|
+
return this.collect({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
18
|
+
headers: {},
|
|
19
|
+
params: {},
|
|
20
|
+
body: {}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.TournesDECIAPI = TournesDECIAPI;
|
|
@@ -8,7 +8,7 @@ export declare class UtilisateursAPI extends Core {
|
|
|
8
8
|
constructor(config: MetariscConfig, client?: Client);
|
|
9
9
|
/**
|
|
10
10
|
* Retourne un utilisateur Metarisc.
|
|
11
|
-
* @param utilisateurId
|
|
11
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
12
12
|
*/
|
|
13
13
|
getUtilisateurDetails(utilisateurId: string): Promise<AxiosResponse<Utilisateur>>;
|
|
14
14
|
/**
|
|
@@ -23,7 +23,7 @@ export declare class UtilisateursAPI extends Core {
|
|
|
23
23
|
paginateMoiEmails(page?: number, perPage?: number): Collection<Email>;
|
|
24
24
|
/**
|
|
25
25
|
* Retourne une liste des adresses mail publiques d'un utilisateur.
|
|
26
|
-
* @param utilisateurId
|
|
26
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
27
27
|
*/
|
|
28
28
|
paginateUtilisateurEmails(utilisateurId: string): Collection<Email>;
|
|
29
29
|
}
|
|
@@ -9,7 +9,7 @@ class UtilisateursAPI extends core_1.Core {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Retourne un utilisateur Metarisc.
|
|
12
|
-
* @param utilisateurId
|
|
12
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
13
13
|
*/
|
|
14
14
|
async getUtilisateurDetails(utilisateurId) {
|
|
15
15
|
const pathVariable = { 'utilisateur_id': utilisateurId };
|
|
@@ -51,7 +51,7 @@ class UtilisateursAPI extends core_1.Core {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Retourne une liste des adresses mail publiques d'un utilisateur.
|
|
54
|
-
* @param utilisateurId
|
|
54
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
55
55
|
*/
|
|
56
56
|
paginateUtilisateurEmails(utilisateurId) {
|
|
57
57
|
const pathVariable = { 'utilisateur_id': utilisateurId };
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { Collection, PaginationData, PaginationResults } from "./collection";
|
|
|
6
6
|
export { AuthMethod, Client } from "./client";
|
|
7
7
|
export { Utils } from "./utils";
|
|
8
8
|
export { Tus } from "./tus";
|
|
9
|
+
export { AnomaliesAPI } from './api/AnomaliesAPI';
|
|
10
|
+
export { CommissionsAPI } from './api/CommissionsAPI';
|
|
9
11
|
export { DossiersAPI } from './api/DossiersAPI';
|
|
10
12
|
export { EvenementsAPI } from './api/EvenementsAPI';
|
|
11
13
|
export { FeedAPI } from './api/FeedAPI';
|
|
@@ -14,5 +16,7 @@ export { NotificationsAPI } from './api/NotificationsAPI';
|
|
|
14
16
|
export { OrganisationsAPI } from './api/OrganisationsAPI';
|
|
15
17
|
export { PEIAPI } from './api/PEIAPI';
|
|
16
18
|
export { PingAPI } from './api/PingAPI';
|
|
19
|
+
export { PrescriptionsAPI } from './api/PrescriptionsAPI';
|
|
17
20
|
export { SupportAPI } from './api/SupportAPI';
|
|
21
|
+
export { TournesDECIAPI } from './api/TournesDECIAPI';
|
|
18
22
|
export { UtilisateursAPI } from './api/UtilisateursAPI';
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UtilisateursAPI = exports.SupportAPI = exports.PingAPI = exports.PEIAPI = exports.OrganisationsAPI = exports.NotificationsAPI = exports.MoiAPI = exports.FeedAPI = exports.EvenementsAPI = exports.DossiersAPI = exports.Tus = exports.Utils = exports.Client = exports.AuthMethod = exports.Collection = exports.Core = exports.SessionExpiredError = exports.OAuth2 = exports.Metarisc = void 0;
|
|
3
|
+
exports.UtilisateursAPI = exports.TournesDECIAPI = exports.SupportAPI = exports.PrescriptionsAPI = exports.PingAPI = exports.PEIAPI = exports.OrganisationsAPI = exports.NotificationsAPI = exports.MoiAPI = exports.FeedAPI = exports.EvenementsAPI = exports.DossiersAPI = exports.CommissionsAPI = exports.AnomaliesAPI = exports.Tus = exports.Utils = exports.Client = exports.AuthMethod = exports.Collection = exports.Core = exports.SessionExpiredError = exports.OAuth2 = exports.Metarisc = void 0;
|
|
4
4
|
var metarisc_1 = require("./metarisc");
|
|
5
5
|
Object.defineProperty(exports, "Metarisc", { enumerable: true, get: function () { return metarisc_1.Metarisc; } });
|
|
6
6
|
var oauth2_1 = require("./auth/oauth2");
|
|
@@ -18,6 +18,10 @@ var utils_1 = require("./utils");
|
|
|
18
18
|
Object.defineProperty(exports, "Utils", { enumerable: true, get: function () { return utils_1.Utils; } });
|
|
19
19
|
var tus_1 = require("./tus");
|
|
20
20
|
Object.defineProperty(exports, "Tus", { enumerable: true, get: function () { return tus_1.Tus; } });
|
|
21
|
+
var AnomaliesAPI_1 = require("./api/AnomaliesAPI");
|
|
22
|
+
Object.defineProperty(exports, "AnomaliesAPI", { enumerable: true, get: function () { return AnomaliesAPI_1.AnomaliesAPI; } });
|
|
23
|
+
var CommissionsAPI_1 = require("./api/CommissionsAPI");
|
|
24
|
+
Object.defineProperty(exports, "CommissionsAPI", { enumerable: true, get: function () { return CommissionsAPI_1.CommissionsAPI; } });
|
|
21
25
|
var DossiersAPI_1 = require("./api/DossiersAPI");
|
|
22
26
|
Object.defineProperty(exports, "DossiersAPI", { enumerable: true, get: function () { return DossiersAPI_1.DossiersAPI; } });
|
|
23
27
|
var EvenementsAPI_1 = require("./api/EvenementsAPI");
|
|
@@ -34,7 +38,11 @@ var PEIAPI_1 = require("./api/PEIAPI");
|
|
|
34
38
|
Object.defineProperty(exports, "PEIAPI", { enumerable: true, get: function () { return PEIAPI_1.PEIAPI; } });
|
|
35
39
|
var PingAPI_1 = require("./api/PingAPI");
|
|
36
40
|
Object.defineProperty(exports, "PingAPI", { enumerable: true, get: function () { return PingAPI_1.PingAPI; } });
|
|
41
|
+
var PrescriptionsAPI_1 = require("./api/PrescriptionsAPI");
|
|
42
|
+
Object.defineProperty(exports, "PrescriptionsAPI", { enumerable: true, get: function () { return PrescriptionsAPI_1.PrescriptionsAPI; } });
|
|
37
43
|
var SupportAPI_1 = require("./api/SupportAPI");
|
|
38
44
|
Object.defineProperty(exports, "SupportAPI", { enumerable: true, get: function () { return SupportAPI_1.SupportAPI; } });
|
|
45
|
+
var TournesDECIAPI_1 = require("./api/TournesDECIAPI");
|
|
46
|
+
Object.defineProperty(exports, "TournesDECIAPI", { enumerable: true, get: function () { return TournesDECIAPI_1.TournesDECIAPI; } });
|
|
39
47
|
var UtilisateursAPI_1 = require("./api/UtilisateursAPI");
|
|
40
48
|
Object.defineProperty(exports, "UtilisateursAPI", { enumerable: true, get: function () { return UtilisateursAPI_1.UtilisateursAPI; } });
|
package/lib/metarisc.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Core, MetariscConfig } from "./core";
|
|
2
2
|
import { Tus } from "./tus";
|
|
3
3
|
import { Client } from "./client";
|
|
4
|
+
import { AnomaliesAPI } from './api/AnomaliesAPI';
|
|
5
|
+
import { CommissionsAPI } from './api/CommissionsAPI';
|
|
4
6
|
import { DossiersAPI } from './api/DossiersAPI';
|
|
5
7
|
import { EvenementsAPI } from './api/EvenementsAPI';
|
|
6
8
|
import { FeedAPI } from './api/FeedAPI';
|
|
@@ -9,17 +11,23 @@ import { NotificationsAPI } from './api/NotificationsAPI';
|
|
|
9
11
|
import { OrganisationsAPI } from './api/OrganisationsAPI';
|
|
10
12
|
import { PEIAPI } from './api/PEIAPI';
|
|
11
13
|
import { PingAPI } from './api/PingAPI';
|
|
14
|
+
import { PrescriptionsAPI } from './api/PrescriptionsAPI';
|
|
12
15
|
import { SupportAPI } from './api/SupportAPI';
|
|
16
|
+
import { TournesDECIAPI } from './api/TournesDECIAPI';
|
|
13
17
|
import { UtilisateursAPI } from './api/UtilisateursAPI';
|
|
14
18
|
export declare class Metarisc extends Core {
|
|
15
19
|
utilisateurs?: UtilisateursAPI;
|
|
16
|
-
feed?: FeedAPI;
|
|
17
20
|
dossiers?: DossiersAPI;
|
|
18
|
-
organisations?: OrganisationsAPI;
|
|
19
|
-
pei?: PEIAPI;
|
|
20
21
|
moi?: MoiAPI;
|
|
21
22
|
ping?: PingAPI;
|
|
23
|
+
anomalies?: AnomaliesAPI;
|
|
24
|
+
feed?: FeedAPI;
|
|
25
|
+
tournees_deci?: TournesDECIAPI;
|
|
26
|
+
organisations?: OrganisationsAPI;
|
|
27
|
+
pei?: PEIAPI;
|
|
28
|
+
commissions?: CommissionsAPI;
|
|
22
29
|
evenements?: EvenementsAPI;
|
|
30
|
+
prescriptions?: PrescriptionsAPI;
|
|
23
31
|
support?: SupportAPI;
|
|
24
32
|
notifications?: NotificationsAPI;
|
|
25
33
|
tus?: Tus;
|
package/lib/metarisc.js
CHANGED
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Metarisc = void 0;
|
|
4
4
|
const core_1 = require("./core");
|
|
5
5
|
const tus_1 = require("./tus");
|
|
6
|
+
const AnomaliesAPI_1 = require("./api/AnomaliesAPI");
|
|
7
|
+
const CommissionsAPI_1 = require("./api/CommissionsAPI");
|
|
6
8
|
const DossiersAPI_1 = require("./api/DossiersAPI");
|
|
7
9
|
const EvenementsAPI_1 = require("./api/EvenementsAPI");
|
|
8
10
|
const FeedAPI_1 = require("./api/FeedAPI");
|
|
@@ -11,7 +13,9 @@ const NotificationsAPI_1 = require("./api/NotificationsAPI");
|
|
|
11
13
|
const OrganisationsAPI_1 = require("./api/OrganisationsAPI");
|
|
12
14
|
const PEIAPI_1 = require("./api/PEIAPI");
|
|
13
15
|
const PingAPI_1 = require("./api/PingAPI");
|
|
16
|
+
const PrescriptionsAPI_1 = require("./api/PrescriptionsAPI");
|
|
14
17
|
const SupportAPI_1 = require("./api/SupportAPI");
|
|
18
|
+
const TournesDECIAPI_1 = require("./api/TournesDECIAPI");
|
|
15
19
|
const UtilisateursAPI_1 = require("./api/UtilisateursAPI");
|
|
16
20
|
class Metarisc extends core_1.Core {
|
|
17
21
|
constructor(config, client) {
|
|
@@ -22,20 +26,28 @@ class Metarisc extends core_1.Core {
|
|
|
22
26
|
switch (name) {
|
|
23
27
|
case 'utilisateurs':
|
|
24
28
|
return new UtilisateursAPI_1.UtilisateursAPI(config, tmpClient);
|
|
25
|
-
case 'feed':
|
|
26
|
-
return new FeedAPI_1.FeedAPI(config, tmpClient);
|
|
27
29
|
case 'dossiers':
|
|
28
30
|
return new DossiersAPI_1.DossiersAPI(config, tmpClient);
|
|
29
|
-
case 'organisations':
|
|
30
|
-
return new OrganisationsAPI_1.OrganisationsAPI(config, tmpClient);
|
|
31
|
-
case 'pei':
|
|
32
|
-
return new PEIAPI_1.PEIAPI(config, tmpClient);
|
|
33
31
|
case 'moi':
|
|
34
32
|
return new MoiAPI_1.MoiAPI(config, tmpClient);
|
|
35
33
|
case 'ping':
|
|
36
34
|
return new PingAPI_1.PingAPI(config, tmpClient);
|
|
35
|
+
case 'anomalies':
|
|
36
|
+
return new AnomaliesAPI_1.AnomaliesAPI(config, tmpClient);
|
|
37
|
+
case 'feed':
|
|
38
|
+
return new FeedAPI_1.FeedAPI(config, tmpClient);
|
|
39
|
+
case 'tournees_deci':
|
|
40
|
+
return new TournesDECIAPI_1.TournesDECIAPI(config, tmpClient);
|
|
41
|
+
case 'organisations':
|
|
42
|
+
return new OrganisationsAPI_1.OrganisationsAPI(config, tmpClient);
|
|
43
|
+
case 'pei':
|
|
44
|
+
return new PEIAPI_1.PEIAPI(config, tmpClient);
|
|
45
|
+
case 'commissions':
|
|
46
|
+
return new CommissionsAPI_1.CommissionsAPI(config, tmpClient);
|
|
37
47
|
case 'evenements':
|
|
38
48
|
return new EvenementsAPI_1.EvenementsAPI(config, tmpClient);
|
|
49
|
+
case 'prescriptions':
|
|
50
|
+
return new PrescriptionsAPI_1.PrescriptionsAPI(config, tmpClient);
|
|
39
51
|
case 'support':
|
|
40
52
|
return new SupportAPI_1.SupportAPI(config, tmpClient);
|
|
41
53
|
case 'notifications':
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type AnomalieDECI = {
|
|
2
2
|
'code'?: string;
|
|
3
3
|
'texte'?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Nomenclature de l\'indice de gravité : - 0 : Réserve ; - 1 : Anomalie ; - 2 : Anomalie bloquante.
|
|
6
|
+
*/
|
|
4
7
|
'indice_de_gravite'?: IndiceDeGraviteEnum;
|
|
5
8
|
};
|
|
6
9
|
export declare enum IndiceDeGraviteEnum {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Commission = {
|
|
2
|
+
'id'?: string;
|
|
3
|
+
'type'?: TypeEnum;
|
|
4
|
+
'libelle'?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare enum TypeEnum {
|
|
7
|
+
SousCommissionDpartementale = "Sous-commission d\u00E9partementale",
|
|
8
|
+
CommissionCommunale = "Commission communale",
|
|
9
|
+
CommissionIntercommunale = "Commission intercommunale",
|
|
10
|
+
CommissionDarrondissement = "Commission d'arrondissement",
|
|
11
|
+
CoDerst = "CoDERST"
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeEnum = void 0;
|
|
4
|
+
var TypeEnum;
|
|
5
|
+
(function (TypeEnum) {
|
|
6
|
+
TypeEnum["SousCommissionDpartementale"] = "Sous-commission d\u00E9partementale";
|
|
7
|
+
TypeEnum["CommissionCommunale"] = "Commission communale";
|
|
8
|
+
TypeEnum["CommissionIntercommunale"] = "Commission intercommunale";
|
|
9
|
+
TypeEnum["CommissionDarrondissement"] = "Commission d'arrondissement";
|
|
10
|
+
TypeEnum["CoDerst"] = "CoDERST";
|
|
11
|
+
})(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
|
package/lib/model/PieceJointe.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
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["Photo"] = "photo";
|
|
7
|
+
TypeEnum["Plan"] = "plan";
|
|
8
|
+
TypeEnum["Annexe"] = "annexe";
|
|
9
|
+
TypeEnum["Divers"] = "divers";
|
|
10
|
+
})(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PrescriptionSupportReglementaire } from '../../src/model/PrescriptionSupportReglementaire';
|
|
2
|
+
export type Prescription = {
|
|
3
|
+
'id'?: string;
|
|
4
|
+
'contenu'?: string;
|
|
5
|
+
'type'?: TypeEnum;
|
|
6
|
+
'supports_reglementaires'?: Array<PrescriptionSupportReglementaire>;
|
|
7
|
+
};
|
|
8
|
+
export declare enum TypeEnum {
|
|
9
|
+
LieeALExploitation = "liee_a_l_exploitation",
|
|
10
|
+
LieeALAmelioration = "liee_a_l_amelioration",
|
|
11
|
+
RappelReglementaire = "rappel_reglementaire"
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeEnum = void 0;
|
|
4
|
+
var TypeEnum;
|
|
5
|
+
(function (TypeEnum) {
|
|
6
|
+
TypeEnum["LieeALExploitation"] = "liee_a_l_exploitation";
|
|
7
|
+
TypeEnum["LieeALAmelioration"] = "liee_a_l_amelioration";
|
|
8
|
+
TypeEnum["RappelReglementaire"] = "rappel_reglementaire";
|
|
9
|
+
})(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NatureEnum = void 0;
|
|
4
|
+
var NatureEnum;
|
|
5
|
+
(function (NatureEnum) {
|
|
6
|
+
NatureEnum["Arrete"] = "arrete";
|
|
7
|
+
NatureEnum["Article"] = "article";
|
|
8
|
+
NatureEnum["Local"] = "local";
|
|
9
|
+
})(NatureEnum = exports.NatureEnum || (exports.NatureEnum = {}));
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Utils } from "../utils";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { AnomalieDECI } from '../model/AnomalieDECI';
|
|
6
|
+
|
|
7
|
+
export class AnomaliesAPI extends Core {
|
|
8
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Liste des anomalies.
|
|
14
|
+
*/
|
|
15
|
+
paginateAnomalies(): Collection<AnomalieDECI>
|
|
16
|
+
{
|
|
17
|
+
const pathVariable = { };
|
|
18
|
+
return this.collect<AnomalieDECI>({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
endpoint: Utils.constructPath(pathVariable, '/anomalies'),
|
|
21
|
+
headers: { },
|
|
22
|
+
params: { },
|
|
23
|
+
body: {}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Utils } from "../utils";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { Commission } from '../model/Commission';
|
|
6
|
+
|
|
7
|
+
export class CommissionsAPI extends Core {
|
|
8
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Liste des commissions.
|
|
14
|
+
*/
|
|
15
|
+
paginateCommissions(): Collection<Commission>
|
|
16
|
+
{
|
|
17
|
+
const pathVariable = { };
|
|
18
|
+
return this.collect<Commission>({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
endpoint: Utils.constructPath(pathVariable, '/commissions'),
|
|
21
|
+
headers: { },
|
|
22
|
+
params: { },
|
|
23
|
+
body: {}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
package/src/api/DossiersAPI.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Dossier } from '../model/Dossier';
|
|
|
7
7
|
import { PostDossierRequest } from '../model/PostDossierRequest';
|
|
8
8
|
import { Workflow } from '../model/Workflow';
|
|
9
9
|
import { Tag } from '../model/Tag';
|
|
10
|
-
import {
|
|
10
|
+
import { PieceJointe } from '../model/PieceJointe';
|
|
11
11
|
|
|
12
12
|
export class DossiersAPI extends Core {
|
|
13
13
|
constructor(config: MetariscConfig, client?: Client) {
|
|
@@ -72,10 +72,10 @@ export class DossiersAPI extends Core {
|
|
|
72
72
|
* @param page Numéro de page
|
|
73
73
|
* @param perPage Nombre de résultats demandé
|
|
74
74
|
*/
|
|
75
|
-
paginateDossierWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Collection<
|
|
75
|
+
paginateDossierWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Collection<PieceJointe>
|
|
76
76
|
{
|
|
77
77
|
const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
|
|
78
|
-
return this.collect<
|
|
78
|
+
return this.collect<PieceJointe>({
|
|
79
79
|
method: 'GET',
|
|
80
80
|
endpoint: Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/documents'),
|
|
81
81
|
headers: { },
|
|
@@ -4,6 +4,8 @@ import type { AxiosResponse } from "axios";
|
|
|
4
4
|
import { Client } from "../client";
|
|
5
5
|
import { Collection } from "../collection";
|
|
6
6
|
import { Organisation } from '../model/Organisation';
|
|
7
|
+
import { OrganisationGeoservice } from '../model/OrganisationGeoservice';
|
|
8
|
+
import { OrganisationMembre } from '../model/OrganisationMembre';
|
|
7
9
|
|
|
8
10
|
export class OrganisationsAPI extends Core {
|
|
9
11
|
constructor(config: MetariscConfig, client?: Client) {
|
|
@@ -26,6 +28,38 @@ export class OrganisationsAPI extends Core {
|
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Récupération de la liste des géo-services d'une organisation.
|
|
33
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
34
|
+
*/
|
|
35
|
+
paginateOrganisationGeoservices(orgId: string): Collection<OrganisationGeoservice>
|
|
36
|
+
{
|
|
37
|
+
const pathVariable = { 'org_id': orgId };
|
|
38
|
+
return this.collect<OrganisationGeoservice>({
|
|
39
|
+
method: 'GET',
|
|
40
|
+
endpoint: Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
|
|
41
|
+
headers: { },
|
|
42
|
+
params: { },
|
|
43
|
+
body: {}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Récupération de la liste des membres d'une organisation.
|
|
49
|
+
* @param orgId Identifiant unique de l'Organisation
|
|
50
|
+
*/
|
|
51
|
+
paginateOrganisationMembres(orgId: string): Collection<OrganisationMembre>
|
|
52
|
+
{
|
|
53
|
+
const pathVariable = { 'org_id': orgId };
|
|
54
|
+
return this.collect<OrganisationMembre>({
|
|
55
|
+
method: 'GET',
|
|
56
|
+
endpoint: Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
|
|
57
|
+
headers: { },
|
|
58
|
+
params: { },
|
|
59
|
+
body: {}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
29
63
|
/**
|
|
30
64
|
* Liste paginée des organisations.
|
|
31
65
|
* @param page Numéro de page
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Utils } from "../utils";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { Prescription } from '../model/Prescription';
|
|
6
|
+
|
|
7
|
+
export class PrescriptionsAPI extends Core {
|
|
8
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Liste des prescriptions.
|
|
14
|
+
*/
|
|
15
|
+
paginatePrescriptions(): Collection<Prescription>
|
|
16
|
+
{
|
|
17
|
+
const pathVariable = { };
|
|
18
|
+
return this.collect<Prescription>({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
endpoint: Utils.constructPath(pathVariable, '/prescriptions'),
|
|
21
|
+
headers: { },
|
|
22
|
+
params: { },
|
|
23
|
+
body: {}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import { Utils } from "../utils";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { TourneeDeci } from '../model/TourneeDeci';
|
|
6
|
+
|
|
7
|
+
export class TournesDECIAPI extends Core {
|
|
8
|
+
constructor(config: MetariscConfig, client?: Client) {
|
|
9
|
+
super(config, client);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Liste des tournées DECI.
|
|
14
|
+
*/
|
|
15
|
+
paginateTourneesDeci(): Collection<TourneeDeci>
|
|
16
|
+
{
|
|
17
|
+
const pathVariable = { };
|
|
18
|
+
return this.collect<TourneeDeci>({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
endpoint: Utils.constructPath(pathVariable, '/tournees_deci'),
|
|
21
|
+
headers: { },
|
|
22
|
+
params: { },
|
|
23
|
+
body: {}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -13,7 +13,7 @@ export class UtilisateursAPI extends Core {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Retourne un utilisateur Metarisc.
|
|
16
|
-
* @param utilisateurId
|
|
16
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
17
17
|
*/
|
|
18
18
|
async getUtilisateurDetails(utilisateurId: string): Promise<AxiosResponse<Utilisateur>>
|
|
19
19
|
{
|
|
@@ -61,7 +61,7 @@ export class UtilisateursAPI extends Core {
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Retourne une liste des adresses mail publiques d'un utilisateur.
|
|
64
|
-
* @param utilisateurId
|
|
64
|
+
* @param utilisateurId Identifiant unique de l'utilisateur
|
|
65
65
|
*/
|
|
66
66
|
paginateUtilisateurEmails(utilisateurId: string): Collection<Email>
|
|
67
67
|
{
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,10 @@ export { AuthMethod, Client } from "./client";
|
|
|
7
7
|
export { Utils } from "./utils";
|
|
8
8
|
export { Tus } from "./tus";
|
|
9
9
|
|
|
10
|
+
export { AnomaliesAPI } from './api/AnomaliesAPI';
|
|
11
|
+
|
|
12
|
+
export { CommissionsAPI } from './api/CommissionsAPI';
|
|
13
|
+
|
|
10
14
|
export { DossiersAPI } from './api/DossiersAPI';
|
|
11
15
|
|
|
12
16
|
export { EvenementsAPI } from './api/EvenementsAPI';
|
|
@@ -23,6 +27,10 @@ export { PEIAPI } from './api/PEIAPI';
|
|
|
23
27
|
|
|
24
28
|
export { PingAPI } from './api/PingAPI';
|
|
25
29
|
|
|
30
|
+
export { PrescriptionsAPI } from './api/PrescriptionsAPI';
|
|
31
|
+
|
|
26
32
|
export { SupportAPI } from './api/SupportAPI';
|
|
27
33
|
|
|
34
|
+
export { TournesDECIAPI } from './api/TournesDECIAPI';
|
|
35
|
+
|
|
28
36
|
export { UtilisateursAPI } from './api/UtilisateursAPI';
|
package/src/metarisc.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { Core, MetariscConfig } from "./core";
|
|
|
2
2
|
import { Tus } from "./tus";
|
|
3
3
|
import { Client } from "./client";
|
|
4
4
|
|
|
5
|
+
import { AnomaliesAPI } from './api/AnomaliesAPI';
|
|
6
|
+
|
|
7
|
+
import { CommissionsAPI } from './api/CommissionsAPI';
|
|
8
|
+
|
|
5
9
|
import { DossiersAPI } from './api/DossiersAPI';
|
|
6
10
|
|
|
7
11
|
import { EvenementsAPI } from './api/EvenementsAPI';
|
|
@@ -18,8 +22,12 @@ import { PEIAPI } from './api/PEIAPI';
|
|
|
18
22
|
|
|
19
23
|
import { PingAPI } from './api/PingAPI';
|
|
20
24
|
|
|
25
|
+
import { PrescriptionsAPI } from './api/PrescriptionsAPI';
|
|
26
|
+
|
|
21
27
|
import { SupportAPI } from './api/SupportAPI';
|
|
22
28
|
|
|
29
|
+
import { TournesDECIAPI } from './api/TournesDECIAPI';
|
|
30
|
+
|
|
23
31
|
import { UtilisateursAPI } from './api/UtilisateursAPI';
|
|
24
32
|
|
|
25
33
|
export class Metarisc extends Core
|
|
@@ -27,20 +35,28 @@ export class Metarisc extends Core
|
|
|
27
35
|
|
|
28
36
|
public utilisateurs?: UtilisateursAPI;
|
|
29
37
|
|
|
38
|
+
public dossiers?: DossiersAPI;
|
|
39
|
+
|
|
40
|
+
public moi?: MoiAPI;
|
|
41
|
+
|
|
42
|
+
public ping?: PingAPI;
|
|
43
|
+
|
|
44
|
+
public anomalies?: AnomaliesAPI;
|
|
45
|
+
|
|
30
46
|
public feed?: FeedAPI;
|
|
31
47
|
|
|
32
|
-
public
|
|
48
|
+
public tournees_deci?: TournesDECIAPI;
|
|
33
49
|
|
|
34
50
|
public organisations?: OrganisationsAPI;
|
|
35
51
|
|
|
36
52
|
public pei?: PEIAPI;
|
|
37
53
|
|
|
38
|
-
public
|
|
39
|
-
|
|
40
|
-
public ping?: PingAPI;
|
|
54
|
+
public commissions?: CommissionsAPI;
|
|
41
55
|
|
|
42
56
|
public evenements?: EvenementsAPI;
|
|
43
57
|
|
|
58
|
+
public prescriptions?: PrescriptionsAPI;
|
|
59
|
+
|
|
44
60
|
public support?: SupportAPI;
|
|
45
61
|
|
|
46
62
|
public notifications?: NotificationsAPI;
|
|
@@ -59,11 +75,23 @@ export class Metarisc extends Core
|
|
|
59
75
|
case 'utilisateurs':
|
|
60
76
|
return new UtilisateursAPI(config, tmpClient);
|
|
61
77
|
|
|
78
|
+
case 'dossiers':
|
|
79
|
+
return new DossiersAPI(config, tmpClient);
|
|
80
|
+
|
|
81
|
+
case 'moi':
|
|
82
|
+
return new MoiAPI(config, tmpClient);
|
|
83
|
+
|
|
84
|
+
case 'ping':
|
|
85
|
+
return new PingAPI(config, tmpClient);
|
|
86
|
+
|
|
87
|
+
case 'anomalies':
|
|
88
|
+
return new AnomaliesAPI(config, tmpClient);
|
|
89
|
+
|
|
62
90
|
case 'feed':
|
|
63
91
|
return new FeedAPI(config, tmpClient);
|
|
64
92
|
|
|
65
|
-
case '
|
|
66
|
-
return new
|
|
93
|
+
case 'tournees_deci':
|
|
94
|
+
return new TournesDECIAPI(config, tmpClient);
|
|
67
95
|
|
|
68
96
|
case 'organisations':
|
|
69
97
|
return new OrganisationsAPI(config, tmpClient);
|
|
@@ -71,15 +99,15 @@ export class Metarisc extends Core
|
|
|
71
99
|
case 'pei':
|
|
72
100
|
return new PEIAPI(config, tmpClient);
|
|
73
101
|
|
|
74
|
-
case '
|
|
75
|
-
return new
|
|
76
|
-
|
|
77
|
-
case 'ping':
|
|
78
|
-
return new PingAPI(config, tmpClient);
|
|
102
|
+
case 'commissions':
|
|
103
|
+
return new CommissionsAPI(config, tmpClient);
|
|
79
104
|
|
|
80
105
|
case 'evenements':
|
|
81
106
|
return new EvenementsAPI(config, tmpClient);
|
|
82
107
|
|
|
108
|
+
case 'prescriptions':
|
|
109
|
+
return new PrescriptionsAPI(config, tmpClient);
|
|
110
|
+
|
|
83
111
|
case 'support':
|
|
84
112
|
return new SupportAPI(config, tmpClient);
|
|
85
113
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Commission = {
|
|
2
|
+
'id'?: string;
|
|
3
|
+
'type'?: TypeEnum;
|
|
4
|
+
'libelle'?: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export enum TypeEnum {
|
|
8
|
+
SousCommissionDpartementale = 'Sous-commission départementale',
|
|
9
|
+
CommissionCommunale = 'Commission communale',
|
|
10
|
+
CommissionIntercommunale = 'Commission intercommunale',
|
|
11
|
+
CommissionDarrondissement = 'Commission d\'arrondissement',
|
|
12
|
+
CoDerst = 'CoDERST'
|
|
13
|
+
}
|
package/src/model/PieceJointe.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PrescriptionSupportReglementaire } from '../../src/model/PrescriptionSupportReglementaire';
|
|
2
|
+
|
|
3
|
+
export type Prescription = {
|
|
4
|
+
'id'?: string;
|
|
5
|
+
'contenu'?: string;
|
|
6
|
+
'type'?: TypeEnum;
|
|
7
|
+
'supports_reglementaires'?: Array<PrescriptionSupportReglementaire>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export enum TypeEnum {
|
|
11
|
+
LieeALExploitation = 'liee_a_l_exploitation',
|
|
12
|
+
LieeALAmelioration = 'liee_a_l_amelioration',
|
|
13
|
+
RappelReglementaire = 'rappel_reglementaire'
|
|
14
|
+
}
|
package/lib/model/Document.d.ts
DELETED
package/src/model/Document.ts
DELETED
|
File without changes
|