@metarisc/metarisc-js 0.0.1-alpha.7 → 0.0.1-alpha.9

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.
@@ -9,31 +9,47 @@ import { PaginateWorkflows200Response } from "../../src/model/PaginateWorkflows2
9
9
  import { PostDossierRequest } from "../../src/model/PostDossierRequest";
10
10
  export declare class DossiersAPI extends Core {
11
11
  constructor(config: MetariscConfig);
12
+ getDossier(dossierId: string): Promise<AxiosResponse<Dossier>>;
12
13
  /**
13
- * Récupération de l'ensemble des données d'un dossier.
14
- * @param dossierId ID du dossier
14
+ * Récupération de la liste des dossiers selon des critères de recherche.
15
+ * @param page Numéro de page
16
+ * @param perPage Nombre de résultats demandé
15
17
  */
16
- getDossier(dossierId: string): Promise<AxiosResponse<Dossier>>;
18
+ paginateDossiers(page?: number, perPage?: number): Promise<AxiosResponse<PaginateDossiers200Response>>;
17
19
  /**
18
20
  * Récupération de la liste des dossiers selon des critères de recherche.
19
21
  * @param page Numéro de page
20
22
  * @param perPage Nombre de résultats demandé
21
23
  */
22
- paginateDossiers(page?: number, perPage?: number): AsyncGenerator<PaginateDossiers200Response>;
24
+ paginateDossiersIterator(page?: number, perPage?: number): AsyncGenerator<PaginateDossiers200Response>;
23
25
  /**
24
26
  * Récupération de la liste du suivi administratif d'un dossier.
25
27
  * @param dossierId ID du dossier
26
28
  * @param page Numéro de page
27
29
  * @param perPage Nombre de résultats demandé
28
30
  */
29
- paginateSuiviAdministratif(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateSuiviAdministratif200Response>;
31
+ paginateSuiviAdministratif(dossierId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateSuiviAdministratif200Response>>;
32
+ /**
33
+ * Récupération de la liste du suivi administratif d'un dossier.
34
+ * @param dossierId ID du dossier
35
+ * @param page Numéro de page
36
+ * @param perPage Nombre de résultats demandé
37
+ */
38
+ paginateSuiviAdministratifIterator(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateSuiviAdministratif200Response>;
39
+ /**
40
+ * Récupération de la liste des tags d'un dossier.
41
+ * @param dossierId ID du dossier
42
+ * @param page Numéro de page
43
+ * @param perPage Nombre de résultats demandé
44
+ */
45
+ paginateTags(dossierId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateTags200Response>>;
30
46
  /**
31
47
  * Récupération de la liste des tags d'un dossier.
32
48
  * @param dossierId ID du dossier
33
49
  * @param page Numéro de page
34
50
  * @param perPage Nombre de résultats demandé
35
51
  */
36
- paginateTags(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateTags200Response>;
52
+ paginateTagsIterator(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateTags200Response>;
37
53
  /**
38
54
  * Liste des documents liés à un workflow.
39
55
  * @param dossierId
@@ -41,23 +57,29 @@ export declare class DossiersAPI extends Core {
41
57
  * @param page Numéro de page
42
58
  * @param perPage Nombre de résultats demandé
43
59
  */
44
- paginateWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): AsyncGenerator<PaginateWorkflowDocuments200Response>;
60
+ paginateWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateWorkflowDocuments200Response>>;
61
+ /**
62
+ * Liste des documents liés à un workflow.
63
+ * @param dossierId
64
+ * @param workflowId
65
+ * @param page Numéro de page
66
+ * @param perPage Nombre de résultats demandé
67
+ */
68
+ paginateWorkflowDocumentsIterator(dossierId: string, workflowId: string, page?: number, perPage?: number): AsyncGenerator<PaginateWorkflowDocuments200Response>;
45
69
  /**
46
70
  * Récupération de la liste des workflows d'un dossier.
47
71
  * @param dossierId ID du dossier
48
72
  * @param page Numéro de page
49
73
  * @param perPage Nombre de résultats demandé
50
74
  */
51
- paginateWorkflows(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateWorkflows200Response>;
75
+ paginateWorkflows(dossierId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateWorkflows200Response>>;
52
76
  /**
53
- * Modification d'un dossier existant.
77
+ * Récupération de la liste des workflows d'un dossier.
54
78
  * @param dossierId ID du dossier
55
- * @param dossier
79
+ * @param page Numéro de page
80
+ * @param perPage Nombre de résultats demandé
56
81
  */
82
+ paginateWorkflowsIterator(dossierId: string, page?: number, perPage?: number): AsyncGenerator<PaginateWorkflows200Response>;
57
83
  patchDossier(dossierId: string, dossier?: Dossier): Promise<AxiosResponse<Dossier>>;
58
- /**
59
- * Création d'un nouveau dossier.
60
- * @param postDossierRequest
61
- */
62
84
  postDossier(postDossierRequest?: PostDossierRequest): Promise<AxiosResponse<Dossier>>;
63
85
  }
@@ -10,10 +10,6 @@ class DossiersAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Récupération de l'ensemble des données d'un dossier.
15
- * @param dossierId ID du dossier
16
- */
17
13
  async getDossier(dossierId) {
18
14
  const pathVariable = { dossier_id: dossierId };
19
15
  return this.request({
@@ -30,6 +26,21 @@ class DossiersAPI extends core_1.Core {
30
26
  * @param perPage Nombre de résultats demandé
31
27
  */
32
28
  paginateDossiers(page, perPage) {
29
+ const pathVariable = {};
30
+ return this.request({
31
+ method: "GET",
32
+ endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/"),
33
+ headers: {},
34
+ params: { page: page.toString(), per_page: perPage.toString() },
35
+ body: {},
36
+ });
37
+ }
38
+ /**
39
+ * Récupération de la liste des dossiers selon des critères de recherche.
40
+ * @param page Numéro de page
41
+ * @param perPage Nombre de résultats demandé
42
+ */
43
+ paginateDossiersIterator(page, perPage) {
33
44
  const pathVariable = {};
34
45
  return this.autoPagingIterator({
35
46
  method: "GET",
@@ -46,6 +57,22 @@ class DossiersAPI extends core_1.Core {
46
57
  * @param perPage Nombre de résultats demandé
47
58
  */
48
59
  paginateSuiviAdministratif(dossierId, page, perPage) {
60
+ const pathVariable = { dossier_id: dossierId };
61
+ return this.request({
62
+ method: "GET",
63
+ endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/{dossier_id}/suivi_administratif"),
64
+ headers: {},
65
+ params: { page: page.toString(), per_page: perPage.toString() },
66
+ body: {},
67
+ });
68
+ }
69
+ /**
70
+ * Récupération de la liste du suivi administratif d'un dossier.
71
+ * @param dossierId ID du dossier
72
+ * @param page Numéro de page
73
+ * @param perPage Nombre de résultats demandé
74
+ */
75
+ paginateSuiviAdministratifIterator(dossierId, page, perPage) {
49
76
  const pathVariable = { dossier_id: dossierId };
50
77
  return this.autoPagingIterator({
51
78
  method: "GET",
@@ -62,6 +89,22 @@ class DossiersAPI extends core_1.Core {
62
89
  * @param perPage Nombre de résultats demandé
63
90
  */
64
91
  paginateTags(dossierId, page, perPage) {
92
+ const pathVariable = { dossier_id: dossierId };
93
+ return this.request({
94
+ method: "GET",
95
+ endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/{dossier_id}/tags"),
96
+ headers: {},
97
+ params: { page: page.toString(), per_page: perPage.toString() },
98
+ body: {},
99
+ });
100
+ }
101
+ /**
102
+ * Récupération de la liste des tags d'un dossier.
103
+ * @param dossierId ID du dossier
104
+ * @param page Numéro de page
105
+ * @param perPage Nombre de résultats demandé
106
+ */
107
+ paginateTagsIterator(dossierId, page, perPage) {
65
108
  const pathVariable = { dossier_id: dossierId };
66
109
  return this.autoPagingIterator({
67
110
  method: "GET",
@@ -79,6 +122,23 @@ class DossiersAPI extends core_1.Core {
79
122
  * @param perPage Nombre de résultats demandé
80
123
  */
81
124
  paginateWorkflowDocuments(dossierId, workflowId, page, perPage) {
125
+ const pathVariable = { dossier_id: dossierId, workflow_id: workflowId };
126
+ return this.request({
127
+ method: "GET",
128
+ endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/{dossier_id}/workflows/{workflow_id}/documents"),
129
+ headers: {},
130
+ params: { page: page.toString(), per_page: perPage.toString() },
131
+ body: {},
132
+ });
133
+ }
134
+ /**
135
+ * Liste des documents liés à un workflow.
136
+ * @param dossierId
137
+ * @param workflowId
138
+ * @param page Numéro de page
139
+ * @param perPage Nombre de résultats demandé
140
+ */
141
+ paginateWorkflowDocumentsIterator(dossierId, workflowId, page, perPage) {
82
142
  const pathVariable = { dossier_id: dossierId, workflow_id: workflowId };
83
143
  return this.autoPagingIterator({
84
144
  method: "GET",
@@ -96,7 +156,7 @@ class DossiersAPI extends core_1.Core {
96
156
  */
97
157
  paginateWorkflows(dossierId, page, perPage) {
98
158
  const pathVariable = { dossier_id: dossierId };
99
- return this.autoPagingIterator({
159
+ return this.request({
100
160
  method: "GET",
101
161
  endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/{dossier_id}/workflows"),
102
162
  headers: {},
@@ -105,10 +165,21 @@ class DossiersAPI extends core_1.Core {
105
165
  });
106
166
  }
107
167
  /**
108
- * Modification d'un dossier existant.
168
+ * Récupération de la liste des workflows d'un dossier.
109
169
  * @param dossierId ID du dossier
110
- * @param dossier
170
+ * @param page Numéro de page
171
+ * @param perPage Nombre de résultats demandé
111
172
  */
173
+ paginateWorkflowsIterator(dossierId, page, perPage) {
174
+ const pathVariable = { dossier_id: dossierId };
175
+ return this.autoPagingIterator({
176
+ method: "GET",
177
+ endpoint: utils_1.default.constructPath(pathVariable, "/dossiers/{dossier_id}/workflows"),
178
+ headers: {},
179
+ params: { page: page.toString(), per_page: perPage.toString() },
180
+ body: {},
181
+ });
182
+ }
112
183
  async patchDossier(dossierId, dossier) {
113
184
  const pathVariable = { dossier_id: dossierId };
114
185
  return this.request({
@@ -127,10 +198,6 @@ class DossiersAPI extends core_1.Core {
127
198
  },
128
199
  });
129
200
  }
130
- /**
131
- * Création d'un nouveau dossier.
132
- * @param postDossierRequest
133
- */
134
201
  async postDossier(postDossierRequest) {
135
202
  const pathVariable = {};
136
203
  return this.request({
@@ -5,26 +5,19 @@ import { PaginateNotifications200Response } from "../../src/model/PaginateNotifi
5
5
  import { PostNotificationRequest } from "../../src/model/PostNotificationRequest";
6
6
  export declare class NotificationsAPI extends Core {
7
7
  constructor(config: MetariscConfig);
8
- /**
9
- * Suppression d'une notification correspondante à l'id donné.
10
- * @param notificationId L'id de la notification demandée
11
- */
12
8
  deleteNotification(notificationId: string): Promise<AxiosResponse<void>>;
13
- /**
14
- * Récupération des détails d'une notification correspondante à l'id donné.
15
- * @param notificationId L'id de la notification demandée
16
- * @param notification
17
- */
18
- getNotification(notificationId: string, notification?: Notification): Promise<AxiosResponse<Notification>>;
9
+ getNotification(notificationId: string): Promise<AxiosResponse<Notification>>;
19
10
  /**
20
11
  * Récupération des détails de toutes les notifications existantes.
21
12
  * @param page Numéro de page
22
13
  * @param perPage Nombre de résultats demandé
23
14
  */
24
- paginateNotifications(page?: number, perPage?: number): AsyncGenerator<PaginateNotifications200Response>;
15
+ paginateNotifications(page?: number, perPage?: number): Promise<AxiosResponse<PaginateNotifications200Response>>;
25
16
  /**
26
- * Création d'une notification.
27
- * @param postNotificationRequest
17
+ * Récupération des détails de toutes les notifications existantes.
18
+ * @param page Numéro de page
19
+ * @param perPage Nombre de résultats demandé
28
20
  */
21
+ paginateNotificationsIterator(page?: number, perPage?: number): AsyncGenerator<PaginateNotifications200Response>;
29
22
  postNotification(postNotificationRequest?: PostNotificationRequest): Promise<AxiosResponse<Notification>>;
30
23
  }
@@ -10,10 +10,6 @@ class NotificationsAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Suppression d'une notification correspondante à l'id donné.
15
- * @param notificationId L'id de la notification demandée
16
- */
17
13
  async deleteNotification(notificationId) {
18
14
  const pathVariable = { notification_id: notificationId };
19
15
  return this.request({
@@ -24,27 +20,14 @@ class NotificationsAPI extends core_1.Core {
24
20
  body: {},
25
21
  });
26
22
  }
27
- /**
28
- * Récupération des détails d'une notification correspondante à l'id donné.
29
- * @param notificationId L'id de la notification demandée
30
- * @param notification
31
- */
32
- async getNotification(notificationId, notification) {
23
+ async getNotification(notificationId) {
33
24
  const pathVariable = { notification_id: notificationId };
34
25
  return this.request({
35
26
  method: "GET",
36
27
  endpoint: utils_1.default.constructPath(pathVariable, "/notifications/{notification_id}"),
37
28
  headers: {},
38
29
  params: {},
39
- body: {
40
- id: notification?.id,
41
- title: notification?.title,
42
- message: notification?.message,
43
- contexte: notification?.contexte,
44
- dateCreation: notification?.dateCreation,
45
- dateDeLecture: notification?.dateDeLecture,
46
- utilisateurId: notification?.utilisateurId,
47
- },
30
+ body: {},
48
31
  });
49
32
  }
50
33
  /**
@@ -54,7 +37,7 @@ class NotificationsAPI extends core_1.Core {
54
37
  */
55
38
  paginateNotifications(page, perPage) {
56
39
  const pathVariable = {};
57
- return this.autoPagingIterator({
40
+ return this.request({
58
41
  method: "GET",
59
42
  endpoint: utils_1.default.constructPath(pathVariable, "/notifications/"),
60
43
  headers: {},
@@ -63,9 +46,20 @@ class NotificationsAPI extends core_1.Core {
63
46
  });
64
47
  }
65
48
  /**
66
- * Création d'une notification.
67
- * @param postNotificationRequest
49
+ * Récupération des détails de toutes les notifications existantes.
50
+ * @param page Numéro de page
51
+ * @param perPage Nombre de résultats demandé
68
52
  */
53
+ paginateNotificationsIterator(page, perPage) {
54
+ const pathVariable = {};
55
+ return this.autoPagingIterator({
56
+ method: "GET",
57
+ endpoint: utils_1.default.constructPath(pathVariable, "/notifications/"),
58
+ headers: {},
59
+ params: { page: page.toString(), per_page: perPage.toString() },
60
+ body: {},
61
+ });
62
+ }
69
63
  async postNotification(postNotificationRequest) {
70
64
  const pathVariable = {};
71
65
  return this.request({
@@ -3,9 +3,5 @@ import type { AxiosResponse } from 'axios';
3
3
  import { Organisation } from '../../src/model/Organisation';
4
4
  export declare class OrganisationAPI extends Core {
5
5
  constructor(config: MetariscConfig);
6
- /**
7
- * Récupération des détails d'une organisation.
8
- * @param orgId ID de l'organisation
9
- */
10
6
  getOrganisation(orgId: string): Promise<AxiosResponse<Organisation>>;
11
7
  }
@@ -10,10 +10,6 @@ class OrganisationAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Récupération des détails d'une organisation.
15
- * @param orgId ID de l'organisation
16
- */
17
13
  async getOrganisation(orgId) {
18
14
  const pathVariable = { 'org_id': orgId };
19
15
  return this.request({
@@ -8,42 +8,60 @@ import { PaginatePoi200Response } from "../../src/model/PaginatePoi200Response";
8
8
  import { PatchPoiRequest } from "../../src/model/PatchPoiRequest";
9
9
  export declare class POIAPI extends Core {
10
10
  constructor(config: MetariscConfig);
11
+ getPoi(poiId: string): Promise<AxiosResponse<POI>>;
11
12
  /**
12
- * Récupération de l'ensemble des données d'un POI.
13
+ * Récupération de la liste des contacts d'un POI.
13
14
  * @param poiId ID du POI
15
+ * @param page Numéro de page
16
+ * @param perPage Nombre de résultats demandé
14
17
  */
15
- getPoi(poiId: string): Promise<AxiosResponse<POI>>;
18
+ paginateContacts(poiId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateContacts200Response>>;
16
19
  /**
17
20
  * Récupération de la liste des contacts d'un POI.
18
21
  * @param poiId ID du POI
19
22
  * @param page Numéro de page
20
23
  * @param perPage Nombre de résultats demandé
21
24
  */
22
- paginateContacts(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginateContacts200Response>;
25
+ paginateContactsIterator(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginateContacts200Response>;
26
+ /**
27
+ * Récupération de l'historique d'un POI.
28
+ * @param poiId ID du POI
29
+ * @param page Numéro de page
30
+ * @param perPage Nombre de résultats demandé
31
+ */
32
+ paginateHistorique(poiId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginateHistorique200Response>>;
23
33
  /**
24
34
  * Récupération de l'historique d'un POI.
25
35
  * @param poiId ID du POI
26
36
  * @param page Numéro de page
27
37
  * @param perPage Nombre de résultats demandé
28
38
  */
29
- paginateHistorique(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginateHistorique200Response>;
39
+ paginateHistoriqueIterator(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginateHistorique200Response>;
30
40
  /**
31
41
  * Récupération de la liste des pièces jointes d'un POI.
32
42
  * @param poiId ID du POI
33
43
  * @param page Numéro de page
34
44
  * @param perPage Nombre de résultats demandé
35
45
  */
36
- paginatePiecesJointes(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginatePiecesJointes200Response>;
46
+ paginatePiecesJointes(poiId: string, page?: number, perPage?: number): Promise<AxiosResponse<PaginatePiecesJointes200Response>>;
47
+ /**
48
+ * Récupération de la liste des pièces jointes d'un POI.
49
+ * @param poiId ID du POI
50
+ * @param page Numéro de page
51
+ * @param perPage Nombre de résultats demandé
52
+ */
53
+ paginatePiecesJointesIterator(poiId: string, page?: number, perPage?: number): AsyncGenerator<PaginatePiecesJointes200Response>;
37
54
  /**
38
55
  * Récupération de la liste des POI selon des critères de recherche.
39
56
  * @param page Numéro de page
40
57
  * @param perPage Nombre de résultats demandé
41
58
  */
42
- paginatePoi(page?: number, perPage?: number): AsyncGenerator<PaginatePoi200Response>;
59
+ paginatePoi(page?: number, perPage?: number): Promise<AxiosResponse<PaginatePoi200Response>>;
43
60
  /**
44
- * Modifier un POI existant.
45
- * @param poiId ID du POI
46
- * @param patchPoiRequest
61
+ * Récupération de la liste des POI selon des critères de recherche.
62
+ * @param page Numéro de page
63
+ * @param perPage Nombre de résultats demandé
47
64
  */
65
+ paginatePoiIterator(page?: number, perPage?: number): AsyncGenerator<PaginatePoi200Response>;
48
66
  patchPoi(poiId: string, patchPoiRequest?: PatchPoiRequest): Promise<AxiosResponse<POI>>;
49
67
  }
package/lib/api/POIAPI.js CHANGED
@@ -10,10 +10,6 @@ class POIAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Récupération de l'ensemble des données d'un POI.
15
- * @param poiId ID du POI
16
- */
17
13
  async getPoi(poiId) {
18
14
  const pathVariable = { poi_id: poiId };
19
15
  return this.request({
@@ -31,6 +27,22 @@ class POIAPI extends core_1.Core {
31
27
  * @param perPage Nombre de résultats demandé
32
28
  */
33
29
  paginateContacts(poiId, page, perPage) {
30
+ const pathVariable = { poi_id: poiId };
31
+ return this.request({
32
+ method: "GET",
33
+ endpoint: utils_1.default.constructPath(pathVariable, "/poi/{poi_id}/contacts"),
34
+ headers: {},
35
+ params: { page: page.toString(), per_page: perPage.toString() },
36
+ body: {},
37
+ });
38
+ }
39
+ /**
40
+ * Récupération de la liste des contacts d'un POI.
41
+ * @param poiId ID du POI
42
+ * @param page Numéro de page
43
+ * @param perPage Nombre de résultats demandé
44
+ */
45
+ paginateContactsIterator(poiId, page, perPage) {
34
46
  const pathVariable = { poi_id: poiId };
35
47
  return this.autoPagingIterator({
36
48
  method: "GET",
@@ -47,6 +59,22 @@ class POIAPI extends core_1.Core {
47
59
  * @param perPage Nombre de résultats demandé
48
60
  */
49
61
  paginateHistorique(poiId, page, perPage) {
62
+ const pathVariable = { poi_id: poiId };
63
+ return this.request({
64
+ method: "GET",
65
+ endpoint: utils_1.default.constructPath(pathVariable, "/poi/{poi_id}/historique"),
66
+ headers: {},
67
+ params: { page: page.toString(), per_page: perPage.toString() },
68
+ body: {},
69
+ });
70
+ }
71
+ /**
72
+ * Récupération de l'historique d'un POI.
73
+ * @param poiId ID du POI
74
+ * @param page Numéro de page
75
+ * @param perPage Nombre de résultats demandé
76
+ */
77
+ paginateHistoriqueIterator(poiId, page, perPage) {
50
78
  const pathVariable = { poi_id: poiId };
51
79
  return this.autoPagingIterator({
52
80
  method: "GET",
@@ -63,6 +91,22 @@ class POIAPI extends core_1.Core {
63
91
  * @param perPage Nombre de résultats demandé
64
92
  */
65
93
  paginatePiecesJointes(poiId, page, perPage) {
94
+ const pathVariable = { poi_id: poiId };
95
+ return this.request({
96
+ method: "GET",
97
+ endpoint: utils_1.default.constructPath(pathVariable, "/poi/{poi_id}/pieces_jointes"),
98
+ headers: {},
99
+ params: { page: page.toString(), per_page: perPage.toString() },
100
+ body: {},
101
+ });
102
+ }
103
+ /**
104
+ * Récupération de la liste des pièces jointes d'un POI.
105
+ * @param poiId ID du POI
106
+ * @param page Numéro de page
107
+ * @param perPage Nombre de résultats demandé
108
+ */
109
+ paginatePiecesJointesIterator(poiId, page, perPage) {
66
110
  const pathVariable = { poi_id: poiId };
67
111
  return this.autoPagingIterator({
68
112
  method: "GET",
@@ -79,7 +123,7 @@ class POIAPI extends core_1.Core {
79
123
  */
80
124
  paginatePoi(page, perPage) {
81
125
  const pathVariable = {};
82
- return this.autoPagingIterator({
126
+ return this.request({
83
127
  method: "GET",
84
128
  endpoint: utils_1.default.constructPath(pathVariable, "/poi/"),
85
129
  headers: {},
@@ -88,10 +132,20 @@ class POIAPI extends core_1.Core {
88
132
  });
89
133
  }
90
134
  /**
91
- * Modifier un POI existant.
92
- * @param poiId ID du POI
93
- * @param patchPoiRequest
135
+ * Récupération de la liste des POI selon des critères de recherche.
136
+ * @param page Numéro de page
137
+ * @param perPage Nombre de résultats demandé
94
138
  */
139
+ paginatePoiIterator(page, perPage) {
140
+ const pathVariable = {};
141
+ return this.autoPagingIterator({
142
+ method: "GET",
143
+ endpoint: utils_1.default.constructPath(pathVariable, "/poi/"),
144
+ headers: {},
145
+ params: { page: page.toString(), per_page: perPage.toString() },
146
+ body: {},
147
+ });
148
+ }
95
149
  async patchPoi(poiId, patchPoiRequest) {
96
150
  const pathVariable = { poi_id: poiId };
97
151
  return this.request({
@@ -3,8 +3,5 @@ import type { AxiosResponse } from 'axios';
3
3
  import { Ping200Response } from '../../src/model/Ping200Response';
4
4
  export declare class PingAPI extends Core {
5
5
  constructor(config: MetariscConfig);
6
- /**
7
- * Permet de s'assurer que le service Metarisc est en ligne. Ping ... Pong !
8
- */
9
6
  ping(): Promise<AxiosResponse<Ping200Response>>;
10
7
  }
@@ -10,9 +10,6 @@ class PingAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Permet de s'assurer que le service Metarisc est en ligne. Ping ... Pong !
15
- */
16
13
  async ping() {
17
14
  const pathVariable = {};
18
15
  return this.request({
@@ -5,20 +5,18 @@ import { PostTicketRequest } from "../../src/model/PostTicketRequest";
5
5
  import { Ticket } from "../../src/model/Ticket";
6
6
  export declare class SupportAPI extends Core {
7
7
  constructor(config: MetariscConfig);
8
- /**
9
- * Récupération des détails du ticket
10
- * @param ticketId ID du ticket
11
- */
12
8
  getTicket(ticketId: string): Promise<AxiosResponse<Ticket>>;
13
9
  /**
14
10
  * Récupération de la liste des tickets de support.
15
11
  * @param page Numéro de page
16
12
  * @param perPage Nombre de résultats demandé
17
13
  */
18
- paginateTickets(page?: number, perPage?: number): AsyncGenerator<PaginateTickets200Response>;
14
+ paginateTickets(page?: number, perPage?: number): Promise<AxiosResponse<PaginateTickets200Response>>;
19
15
  /**
20
- * Création d'un nouveau ticket de support.
21
- * @param postTicketRequest
16
+ * Récupération de la liste des tickets de support.
17
+ * @param page Numéro de page
18
+ * @param perPage Nombre de résultats demandé
22
19
  */
20
+ paginateTicketsIterator(page?: number, perPage?: number): AsyncGenerator<PaginateTickets200Response>;
23
21
  postTicket(postTicketRequest?: PostTicketRequest): Promise<AxiosResponse<Ticket>>;
24
22
  }
@@ -10,10 +10,6 @@ class SupportAPI extends core_1.Core {
10
10
  constructor(config) {
11
11
  super(config);
12
12
  }
13
- /**
14
- * Récupération des détails du ticket
15
- * @param ticketId ID du ticket
16
- */
17
13
  async getTicket(ticketId) {
18
14
  const pathVariable = { ticket_id: ticketId };
19
15
  return this.request({
@@ -31,7 +27,7 @@ class SupportAPI extends core_1.Core {
31
27
  */
32
28
  paginateTickets(page, perPage) {
33
29
  const pathVariable = {};
34
- return this.autoPagingIterator({
30
+ return this.request({
35
31
  method: "GET",
36
32
  endpoint: utils_1.default.constructPath(pathVariable, "/support/"),
37
33
  headers: {},
@@ -40,9 +36,20 @@ class SupportAPI extends core_1.Core {
40
36
  });
41
37
  }
42
38
  /**
43
- * Création d'un nouveau ticket de support.
44
- * @param postTicketRequest
39
+ * Récupération de la liste des tickets de support.
40
+ * @param page Numéro de page
41
+ * @param perPage Nombre de résultats demandé
45
42
  */
43
+ paginateTicketsIterator(page, perPage) {
44
+ const pathVariable = {};
45
+ return this.autoPagingIterator({
46
+ method: "GET",
47
+ endpoint: utils_1.default.constructPath(pathVariable, "/support/"),
48
+ headers: {},
49
+ params: { page: page.toString(), per_page: perPage.toString() },
50
+ body: {},
51
+ });
52
+ }
46
53
  async postTicket(postTicketRequest) {
47
54
  const pathVariable = {};
48
55
  return this.request({