@metarisc/metarisc-js 0.0.1-alpha.30 → 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/DossiersAPI.js +9 -12
- package/lib/api/EvenementsAPI.js +6 -9
- package/lib/api/FeedAPI.js +2 -5
- package/lib/api/MoiAPI.js +2 -5
- package/lib/api/NotificationsAPI.js +5 -8
- package/lib/api/OrganisationsAPI.d.ts +12 -0
- package/lib/api/OrganisationsAPI.js +31 -6
- package/lib/api/PEIAPI.js +6 -9
- package/lib/api/PingAPI.js +2 -5
- package/lib/api/PrescriptionsAPI.d.ts +11 -0
- package/lib/api/PrescriptionsAPI.js +24 -0
- package/lib/api/SupportAPI.js +4 -7
- 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 +7 -10
- package/lib/client.d.ts +2 -1
- package/lib/client.js +19 -6
- package/lib/core.d.ts +2 -1
- package/lib/core.js +3 -0
- package/lib/error/SessionExpiredError.d.ts +3 -0
- package/lib/error/SessionExpiredError.js +11 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +13 -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/lib/utils.d.ts +1 -1
- package/lib/utils.js +9 -4
- package/package.json +2 -1
- package/src/api/AnomaliesAPI.ts +27 -0
- package/src/api/CommissionsAPI.ts +27 -0
- package/src/api/DossiersAPI.ts +4 -4
- package/src/api/EvenementsAPI.ts +1 -1
- package/src/api/FeedAPI.ts +1 -1
- package/src/api/MoiAPI.ts +1 -1
- package/src/api/NotificationsAPI.ts +1 -1
- package/src/api/OrganisationsAPI.ts +35 -1
- package/src/api/PEIAPI.ts +1 -1
- package/src/api/PingAPI.ts +1 -1
- package/src/api/PrescriptionsAPI.ts +27 -0
- package/src/api/SupportAPI.ts +1 -1
- package/src/api/TournesDECIAPI.ts +27 -0
- package/src/api/UtilisateursAPI.ts +3 -3
- package/src/client.ts +24 -12
- package/src/core.ts +5 -1
- package/src/error/SessionExpiredError.ts +8 -0
- package/src/index.ts +10 -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/src/utils.ts +9 -4
- 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
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.DossiersAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class DossiersAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'dossier_id': dossierId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'GET',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
|
|
22
19
|
headers: {},
|
|
23
20
|
params: {},
|
|
24
21
|
body: {}
|
|
@@ -33,7 +30,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
33
30
|
const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
|
|
34
31
|
return this.request({
|
|
35
32
|
method: 'GET',
|
|
36
|
-
endpoint: utils_1.
|
|
33
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}'),
|
|
37
34
|
headers: {},
|
|
38
35
|
params: {},
|
|
39
36
|
body: {}
|
|
@@ -49,7 +46,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
49
46
|
const pathVariable = { 'dossier_id': dossierId };
|
|
50
47
|
return this.collect({
|
|
51
48
|
method: 'GET',
|
|
52
|
-
endpoint: utils_1.
|
|
49
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags'),
|
|
53
50
|
headers: {},
|
|
54
51
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
55
52
|
body: {}
|
|
@@ -66,7 +63,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
66
63
|
const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
|
|
67
64
|
return this.collect({
|
|
68
65
|
method: 'GET',
|
|
69
|
-
endpoint: utils_1.
|
|
66
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/documents'),
|
|
70
67
|
headers: {},
|
|
71
68
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
72
69
|
body: {}
|
|
@@ -82,7 +79,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
82
79
|
const pathVariable = { 'dossier_id': dossierId };
|
|
83
80
|
return this.collect({
|
|
84
81
|
method: 'GET',
|
|
85
|
-
endpoint: utils_1.
|
|
82
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows'),
|
|
86
83
|
headers: {},
|
|
87
84
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
88
85
|
body: {}
|
|
@@ -97,7 +94,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
97
94
|
const pathVariable = {};
|
|
98
95
|
return this.collect({
|
|
99
96
|
method: 'GET',
|
|
100
|
-
endpoint: utils_1.
|
|
97
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
|
|
101
98
|
headers: {},
|
|
102
99
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
103
100
|
body: {}
|
|
@@ -112,7 +109,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
112
109
|
const pathVariable = { 'dossier_id': dossierId };
|
|
113
110
|
return this.request({
|
|
114
111
|
method: 'PATCH',
|
|
115
|
-
endpoint: utils_1.
|
|
112
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
|
|
116
113
|
headers: {},
|
|
117
114
|
params: {},
|
|
118
115
|
body: { 'id': dossier?.id, 'type': dossier?.type, 'description': dossier?.description, 'date_de_creation': dossier?.date_de_creation, 'createur': dossier?.createur, 'application_utilisee': dossier?.application_utilisee, 'statut': dossier?.statut }
|
|
@@ -126,7 +123,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
126
123
|
const pathVariable = {};
|
|
127
124
|
return this.request({
|
|
128
125
|
method: 'POST',
|
|
129
|
-
endpoint: utils_1.
|
|
126
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
|
|
130
127
|
headers: {},
|
|
131
128
|
params: {},
|
|
132
129
|
body: { 'titre': postDossierRequest?.titre, 'description': postDossierRequest?.description, 'workflows': postDossierRequest?.workflows }
|
package/lib/api/EvenementsAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.EvenementsAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class EvenementsAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,7 @@ class EvenementsAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'evenement_id': evenementId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'DELETE',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
|
|
22
19
|
headers: {},
|
|
23
20
|
params: {},
|
|
24
21
|
body: {}
|
|
@@ -33,7 +30,7 @@ class EvenementsAPI extends core_1.Core {
|
|
|
33
30
|
const pathVariable = { 'evenement_id': evenementId };
|
|
34
31
|
return this.request({
|
|
35
32
|
method: 'GET',
|
|
36
|
-
endpoint: utils_1.
|
|
33
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
|
|
37
34
|
headers: {},
|
|
38
35
|
params: {},
|
|
39
36
|
body: { 'id': evenement?.id, 'title': evenement?.title, 'type': evenement?.type, 'description': evenement?.description, 'date_debut': evenement?.date_debut, 'date_fin': evenement?.date_fin }
|
|
@@ -49,7 +46,7 @@ class EvenementsAPI extends core_1.Core {
|
|
|
49
46
|
const pathVariable = { 'evenement_id': evenementId };
|
|
50
47
|
return this.collect({
|
|
51
48
|
method: 'GET',
|
|
52
|
-
endpoint: utils_1.
|
|
49
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs'),
|
|
53
50
|
headers: {},
|
|
54
51
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
55
52
|
body: {}
|
|
@@ -66,7 +63,7 @@ class EvenementsAPI extends core_1.Core {
|
|
|
66
63
|
const pathVariable = {};
|
|
67
64
|
return this.collect({
|
|
68
65
|
method: 'GET',
|
|
69
|
-
endpoint: utils_1.
|
|
66
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements'),
|
|
70
67
|
headers: {},
|
|
71
68
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'type': type, 'period': period },
|
|
72
69
|
body: {}
|
|
@@ -80,7 +77,7 @@ class EvenementsAPI extends core_1.Core {
|
|
|
80
77
|
const pathVariable = {};
|
|
81
78
|
return this.request({
|
|
82
79
|
method: 'POST',
|
|
83
|
-
endpoint: utils_1.
|
|
80
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements'),
|
|
84
81
|
headers: {},
|
|
85
82
|
params: {},
|
|
86
83
|
body: { 'title': postEvenementRequest?.title, 'type': postEvenementRequest?.type, 'description': postEvenementRequest?.description, 'date_debut': postEvenementRequest?.date_debut, 'date_fin': postEvenementRequest?.date_fin }
|
package/lib/api/FeedAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.FeedAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class FeedAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -17,7 +14,7 @@ class FeedAPI extends core_1.Core {
|
|
|
17
14
|
const pathVariable = {};
|
|
18
15
|
return this.collect({
|
|
19
16
|
method: 'GET',
|
|
20
|
-
endpoint: utils_1.
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/feed'),
|
|
21
18
|
headers: {},
|
|
22
19
|
params: {},
|
|
23
20
|
body: {}
|
package/lib/api/MoiAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.MoiAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class MoiAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -17,7 +14,7 @@ class MoiAPI extends core_1.Core {
|
|
|
17
14
|
const pathVariable = {};
|
|
18
15
|
return this.request({
|
|
19
16
|
method: 'GET',
|
|
20
|
-
endpoint: utils_1.
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/@moi'),
|
|
21
18
|
headers: {},
|
|
22
19
|
params: {},
|
|
23
20
|
body: {}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.NotificationsAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class NotificationsAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,7 @@ class NotificationsAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'notification_id': notificationId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'DELETE',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
|
|
22
19
|
headers: {},
|
|
23
20
|
params: {},
|
|
24
21
|
body: {}
|
|
@@ -32,7 +29,7 @@ class NotificationsAPI extends core_1.Core {
|
|
|
32
29
|
const pathVariable = { 'notification_id': notificationId };
|
|
33
30
|
return this.request({
|
|
34
31
|
method: 'GET',
|
|
35
|
-
endpoint: utils_1.
|
|
32
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
|
|
36
33
|
headers: {},
|
|
37
34
|
params: {},
|
|
38
35
|
body: {}
|
|
@@ -47,7 +44,7 @@ class NotificationsAPI extends core_1.Core {
|
|
|
47
44
|
const pathVariable = {};
|
|
48
45
|
return this.collect({
|
|
49
46
|
method: 'GET',
|
|
50
|
-
endpoint: utils_1.
|
|
47
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications'),
|
|
51
48
|
headers: {},
|
|
52
49
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
53
50
|
body: {}
|
|
@@ -61,7 +58,7 @@ class NotificationsAPI extends core_1.Core {
|
|
|
61
58
|
const pathVariable = {};
|
|
62
59
|
return this.request({
|
|
63
60
|
method: 'POST',
|
|
64
|
-
endpoint: utils_1.
|
|
61
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications'),
|
|
65
62
|
headers: {},
|
|
66
63
|
params: {},
|
|
67
64
|
body: { 'title': postNotificationRequest?.title, 'message': postNotificationRequest?.message, 'contexte': postNotificationRequest?.contexte, 'utilisateur_id': postNotificationRequest?.utilisateur_id }
|
|
@@ -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
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.OrganisationsAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class OrganisationsAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,35 @@ class OrganisationsAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'org_id': orgId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'GET',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}'),
|
|
19
|
+
headers: {},
|
|
20
|
+
params: {},
|
|
21
|
+
body: {}
|
|
22
|
+
});
|
|
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'),
|
|
22
47
|
headers: {},
|
|
23
48
|
params: {},
|
|
24
49
|
body: {}
|
|
@@ -33,7 +58,7 @@ class OrganisationsAPI extends core_1.Core {
|
|
|
33
58
|
const pathVariable = {};
|
|
34
59
|
return this.collect({
|
|
35
60
|
method: 'GET',
|
|
36
|
-
endpoint: utils_1.
|
|
61
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations'),
|
|
37
62
|
headers: {},
|
|
38
63
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
39
64
|
body: {}
|
package/lib/api/PEIAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.PEIAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class PEIAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,7 @@ class PEIAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'pei_id': peiId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'GET',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}'),
|
|
22
19
|
headers: {},
|
|
23
20
|
params: {},
|
|
24
21
|
body: {}
|
|
@@ -33,7 +30,7 @@ class PEIAPI extends core_1.Core {
|
|
|
33
30
|
const pathVariable = {};
|
|
34
31
|
return this.collect({
|
|
35
32
|
method: 'GET',
|
|
36
|
-
endpoint: utils_1.
|
|
33
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/pei'),
|
|
37
34
|
headers: {},
|
|
38
35
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
39
36
|
body: {}
|
|
@@ -49,7 +46,7 @@ class PEIAPI extends core_1.Core {
|
|
|
49
46
|
const pathVariable = { 'pei_id': peiId };
|
|
50
47
|
return this.collect({
|
|
51
48
|
method: 'GET',
|
|
52
|
-
endpoint: utils_1.
|
|
49
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/contacts'),
|
|
53
50
|
headers: {},
|
|
54
51
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
55
52
|
body: {}
|
|
@@ -65,7 +62,7 @@ class PEIAPI extends core_1.Core {
|
|
|
65
62
|
const pathVariable = { 'pei_id': peiId };
|
|
66
63
|
return this.collect({
|
|
67
64
|
method: 'GET',
|
|
68
|
-
endpoint: utils_1.
|
|
65
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/historique'),
|
|
69
66
|
headers: {},
|
|
70
67
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
71
68
|
body: {}
|
|
@@ -81,7 +78,7 @@ class PEIAPI extends core_1.Core {
|
|
|
81
78
|
const pathVariable = { 'pei_id': peiId };
|
|
82
79
|
return this.collect({
|
|
83
80
|
method: 'GET',
|
|
84
|
-
endpoint: utils_1.
|
|
81
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/pieces_jointes'),
|
|
85
82
|
headers: {},
|
|
86
83
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
87
84
|
body: {}
|
package/lib/api/PingAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.PingAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class PingAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -17,7 +14,7 @@ class PingAPI extends core_1.Core {
|
|
|
17
14
|
const pathVariable = {};
|
|
18
15
|
return this.request({
|
|
19
16
|
method: 'GET',
|
|
20
|
-
endpoint: utils_1.
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/ping'),
|
|
21
18
|
headers: {},
|
|
22
19
|
params: {},
|
|
23
20
|
body: {}
|
|
@@ -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;
|
package/lib/api/SupportAPI.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.SupportAPI = void 0;
|
|
7
4
|
const core_1 = require("../core");
|
|
8
|
-
const utils_1 =
|
|
5
|
+
const utils_1 = require("../utils");
|
|
9
6
|
class SupportAPI extends core_1.Core {
|
|
10
7
|
constructor(config, client) {
|
|
11
8
|
super(config, client);
|
|
@@ -18,7 +15,7 @@ class SupportAPI extends core_1.Core {
|
|
|
18
15
|
const pathVariable = { 'ticket_id': ticketId };
|
|
19
16
|
return this.request({
|
|
20
17
|
method: 'GET',
|
|
21
|
-
endpoint: utils_1.
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/support/{ticket_id}'),
|
|
22
19
|
headers: {},
|
|
23
20
|
params: {},
|
|
24
21
|
body: {}
|
|
@@ -33,7 +30,7 @@ class SupportAPI extends core_1.Core {
|
|
|
33
30
|
const pathVariable = {};
|
|
34
31
|
return this.collect({
|
|
35
32
|
method: 'GET',
|
|
36
|
-
endpoint: utils_1.
|
|
33
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/support/'),
|
|
37
34
|
headers: {},
|
|
38
35
|
params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
|
|
39
36
|
body: {}
|
|
@@ -47,7 +44,7 @@ class SupportAPI extends core_1.Core {
|
|
|
47
44
|
const pathVariable = {};
|
|
48
45
|
return this.request({
|
|
49
46
|
method: 'POST',
|
|
50
|
-
endpoint: utils_1.
|
|
47
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/support/'),
|
|
51
48
|
headers: {},
|
|
52
49
|
params: {},
|
|
53
50
|
body: { 'subject': postTicketRequest?.subject, 'description': postTicketRequest?.description }
|
|
@@ -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
|
}
|