@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.
Files changed (79) hide show
  1. package/lib/api/AnomaliesAPI.d.ts +11 -0
  2. package/lib/api/AnomaliesAPI.js +24 -0
  3. package/lib/api/CommissionsAPI.d.ts +11 -0
  4. package/lib/api/CommissionsAPI.js +24 -0
  5. package/lib/api/DossiersAPI.d.ts +2 -2
  6. package/lib/api/DossiersAPI.js +9 -12
  7. package/lib/api/EvenementsAPI.js +6 -9
  8. package/lib/api/FeedAPI.js +2 -5
  9. package/lib/api/MoiAPI.js +2 -5
  10. package/lib/api/NotificationsAPI.js +5 -8
  11. package/lib/api/OrganisationsAPI.d.ts +12 -0
  12. package/lib/api/OrganisationsAPI.js +31 -6
  13. package/lib/api/PEIAPI.js +6 -9
  14. package/lib/api/PingAPI.js +2 -5
  15. package/lib/api/PrescriptionsAPI.d.ts +11 -0
  16. package/lib/api/PrescriptionsAPI.js +24 -0
  17. package/lib/api/SupportAPI.js +4 -7
  18. package/lib/api/TournesDECIAPI.d.ts +11 -0
  19. package/lib/api/TournesDECIAPI.js +24 -0
  20. package/lib/api/UtilisateursAPI.d.ts +2 -2
  21. package/lib/api/UtilisateursAPI.js +7 -10
  22. package/lib/client.d.ts +2 -1
  23. package/lib/client.js +19 -6
  24. package/lib/core.d.ts +2 -1
  25. package/lib/core.js +3 -0
  26. package/lib/error/SessionExpiredError.d.ts +3 -0
  27. package/lib/error/SessionExpiredError.js +11 -0
  28. package/lib/index.d.ts +6 -0
  29. package/lib/index.js +13 -1
  30. package/lib/metarisc.d.ts +11 -3
  31. package/lib/metarisc.js +18 -6
  32. package/lib/model/AnomalieDECI.d.ts +3 -0
  33. package/lib/model/Commission.d.ts +12 -0
  34. package/lib/model/Commission.js +11 -0
  35. package/lib/model/OrganisationGeoservice.d.ts +11 -0
  36. package/lib/model/OrganisationGeoservice.js +8 -0
  37. package/lib/model/OrganisationMembre.d.ts +9 -0
  38. package/lib/model/OrganisationMembre.js +7 -0
  39. package/lib/model/PieceJointe.d.ts +7 -1
  40. package/lib/model/PieceJointe.js +8 -0
  41. package/lib/model/Prescription.d.ts +12 -0
  42. package/lib/model/Prescription.js +9 -0
  43. package/lib/model/PrescriptionSupportReglementaire.d.ts +11 -0
  44. package/lib/model/PrescriptionSupportReglementaire.js +9 -0
  45. package/lib/model/TourneeDeci.d.ts +8 -0
  46. package/lib/utils.d.ts +1 -1
  47. package/lib/utils.js +9 -4
  48. package/package.json +2 -1
  49. package/src/api/AnomaliesAPI.ts +27 -0
  50. package/src/api/CommissionsAPI.ts +27 -0
  51. package/src/api/DossiersAPI.ts +4 -4
  52. package/src/api/EvenementsAPI.ts +1 -1
  53. package/src/api/FeedAPI.ts +1 -1
  54. package/src/api/MoiAPI.ts +1 -1
  55. package/src/api/NotificationsAPI.ts +1 -1
  56. package/src/api/OrganisationsAPI.ts +35 -1
  57. package/src/api/PEIAPI.ts +1 -1
  58. package/src/api/PingAPI.ts +1 -1
  59. package/src/api/PrescriptionsAPI.ts +27 -0
  60. package/src/api/SupportAPI.ts +1 -1
  61. package/src/api/TournesDECIAPI.ts +27 -0
  62. package/src/api/UtilisateursAPI.ts +3 -3
  63. package/src/client.ts +24 -12
  64. package/src/core.ts +5 -1
  65. package/src/error/SessionExpiredError.ts +8 -0
  66. package/src/index.ts +10 -0
  67. package/src/metarisc.ts +39 -11
  68. package/src/model/AnomalieDECI.ts +3 -0
  69. package/src/model/Commission.ts +13 -0
  70. package/src/model/OrganisationGeoservice.ts +12 -0
  71. package/src/model/OrganisationMembre.ts +10 -0
  72. package/src/model/PieceJointe.ts +8 -1
  73. package/src/model/Prescription.ts +14 -0
  74. package/src/model/PrescriptionSupportReglementaire.ts +12 -0
  75. package/src/model/TourneeDeci.ts +8 -0
  76. package/src/utils.ts +9 -4
  77. package/lib/model/Document.d.ts +0 -3
  78. package/src/model/Document.ts +0 -3
  79. /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;
@@ -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 { Document } from '../model/Document';
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<Document>;
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
@@ -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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}'),
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}'),
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}/tags'),
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/documents'),
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows'),
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.default.constructPath(pathVariable, '/dossiers'),
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.default.constructPath(pathVariable, '/dossiers/{dossier_id}'),
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.default.constructPath(pathVariable, '/dossiers'),
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 }
@@ -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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/evenements/{evenement_id}'),
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.default.constructPath(pathVariable, '/evenements/{evenement_id}'),
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.default.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs'),
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.default.constructPath(pathVariable, '/evenements'),
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.default.constructPath(pathVariable, '/evenements'),
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 }
@@ -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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/feed'),
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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/@moi'),
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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/notifications/{notification_id}'),
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.default.constructPath(pathVariable, '/notifications/{notification_id}'),
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.default.constructPath(pathVariable, '/notifications'),
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.default.constructPath(pathVariable, '/notifications'),
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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/organisations/{org_id}'),
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.default.constructPath(pathVariable, '/organisations'),
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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/pei/{pei_id}'),
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.default.constructPath(pathVariable, '/pei'),
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.default.constructPath(pathVariable, '/pei/{pei_id}/contacts'),
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.default.constructPath(pathVariable, '/pei/{pei_id}/historique'),
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.default.constructPath(pathVariable, '/pei/{pei_id}/pieces_jointes'),
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: {}
@@ -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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/ping'),
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;
@@ -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 = __importDefault(require("../utils"));
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.default.constructPath(pathVariable, '/support/{ticket_id}'),
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.default.constructPath(pathVariable, '/support/'),
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.default.constructPath(pathVariable, '/support/'),
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
  }