@metarisc/metarisc-js 0.0.1-alpha.55 → 0.0.1-alpha.56

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 (45) hide show
  1. package/lib/api/AnomaliesAPI.d.ts +2 -2
  2. package/lib/api/AnomaliesAPI.js +2 -2
  3. package/lib/api/CommissionsAPI.js +7 -7
  4. package/lib/api/DossiersAPI.js +9 -9
  5. package/lib/api/ERPAPI.js +3 -3
  6. package/lib/api/EvenementsAPI.js +3 -3
  7. package/lib/api/NotificationsAPI.js +2 -2
  8. package/lib/api/OrganisationsAPI.js +5 -5
  9. package/lib/api/PEIAPI.js +4 -4
  10. package/lib/api/PrescriptionsAPI.js +4 -4
  11. package/lib/api/SupportAPI.js +1 -1
  12. package/lib/api/TournesDECIAPI.d.ts +3 -2
  13. package/lib/api/TournesDECIAPI.js +12 -12
  14. package/lib/api/UtilisateursAPI.js +3 -3
  15. package/lib/model/PostTourneeDeciRequest.d.ts +9 -0
  16. package/lib/model/PostTourneeDeciRequest.js +7 -0
  17. package/lib/model/TourneeDeci.d.ts +9 -0
  18. package/lib/model/TourneeDeci.js +6 -0
  19. package/lib/model/TourneeDeciBase.d.ts +11 -0
  20. package/lib/model/TourneeDeciBase.js +8 -0
  21. package/lib/model/TourneeDeciModele.d.ts +9 -0
  22. package/lib/model/TourneeDeciModele.js +8 -0
  23. package/lib/model/TourneeDeciSimple.d.ts +13 -0
  24. package/lib/model/TourneeDeciSimple.js +8 -0
  25. package/lib/model/UpdateTourneeDeciRequest.d.ts +8 -0
  26. package/lib/model/UpdateTourneeDeciRequest.js +2 -0
  27. package/package.json +1 -1
  28. package/src/api/AnomaliesAPI.ts +4 -4
  29. package/src/api/CommissionsAPI.ts +7 -7
  30. package/src/api/DossiersAPI.ts +9 -9
  31. package/src/api/ERPAPI.ts +3 -3
  32. package/src/api/EvenementsAPI.ts +3 -3
  33. package/src/api/NotificationsAPI.ts +2 -2
  34. package/src/api/OrganisationsAPI.ts +5 -5
  35. package/src/api/PEIAPI.ts +4 -4
  36. package/src/api/PrescriptionsAPI.ts +4 -4
  37. package/src/api/SupportAPI.ts +1 -1
  38. package/src/api/TournesDECIAPI.ts +13 -12
  39. package/src/api/UtilisateursAPI.ts +3 -3
  40. package/src/model/PostTourneeDeciRequest.ts +10 -0
  41. package/src/model/TourneeDeci.ts +11 -0
  42. package/src/model/TourneeDeciBase.ts +12 -0
  43. package/src/model/TourneeDeciModele.ts +11 -0
  44. package/src/model/TourneeDeciSimple.ts +16 -0
  45. package/src/model/UpdateTourneeDeciRequest.ts +8 -0
@@ -9,12 +9,12 @@ export declare class AnomaliesAPI extends Core {
9
9
  * Suppression d'une anomalie.
10
10
  * @param anomalieId Identifiant unique de l'anomalie
11
11
  */
12
- deleteAnomalie(anomalieId: string): Promise<AxiosResponse<void>>;
12
+ deleteAnomalie(anomalieId: number): Promise<AxiosResponse<void>>;
13
13
  /**
14
14
  * Détails d'une anomalie.
15
15
  * @param anomalieId Identifiant unique de l'anomalie
16
16
  */
17
- getAnomalie(anomalieId: string): Promise<AxiosResponse<AnomalieDECI>>;
17
+ getAnomalie(anomalieId: number): Promise<AxiosResponse<AnomalieDECI>>;
18
18
  /**
19
19
  * Liste des anomalies.
20
20
  * @param page Numéro de page
@@ -12,7 +12,7 @@ class AnomaliesAPI extends core_1.Core {
12
12
  * @param anomalieId Identifiant unique de l'anomalie
13
13
  */
14
14
  async deleteAnomalie(anomalieId) {
15
- const pathVariable = { 'anomalie_id': anomalieId };
15
+ const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
16
16
  return this.request({
17
17
  method: 'DELETE',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
@@ -26,7 +26,7 @@ class AnomaliesAPI extends core_1.Core {
26
26
  * @param anomalieId Identifiant unique de l'anomalie
27
27
  */
28
28
  async getAnomalie(anomalieId) {
29
- const pathVariable = { 'anomalie_id': anomalieId };
29
+ const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
30
30
  return this.request({
31
31
  method: 'GET',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
@@ -12,7 +12,7 @@ class CommissionsAPI extends core_1.Core {
12
12
  * @param commissionId Identifiant unique de la commission
13
13
  */
14
14
  async deleteCommission(commissionId) {
15
- const pathVariable = { 'commission_id': commissionId };
15
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
16
16
  return this.request({
17
17
  method: 'DELETE',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
@@ -26,7 +26,7 @@ class CommissionsAPI extends core_1.Core {
26
26
  * @param commissionId Identifiant unique de la commission
27
27
  */
28
28
  async getCommission(commissionId) {
29
- const pathVariable = { 'commission_id': commissionId };
29
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
30
30
  return this.request({
31
31
  method: 'GET',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
@@ -41,7 +41,7 @@ class CommissionsAPI extends core_1.Core {
41
41
  * @param dateId Identifiant unique du passage en commission
42
42
  */
43
43
  async getCommissionDate(commissionId, dateId) {
44
- const pathVariable = { 'commission_id': commissionId, 'date_id': dateId };
44
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
45
45
  return this.request({
46
46
  method: 'GET',
47
47
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}'),
@@ -58,7 +58,7 @@ class CommissionsAPI extends core_1.Core {
58
58
  * @param perPage Nombre de résultats demandé
59
59
  */
60
60
  paginateCommissionDateDossiers(commissionId, dateId, page, perPage) {
61
- const pathVariable = { 'commission_id': commissionId, 'date_id': dateId };
61
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
62
62
  return this.collect({
63
63
  method: 'GET',
64
64
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}/ordre_du_jour'),
@@ -74,7 +74,7 @@ class CommissionsAPI extends core_1.Core {
74
74
  * @param perPage Nombre de résultats demandé
75
75
  */
76
76
  paginateCommissionDates(commissionId, page, perPage) {
77
- const pathVariable = { 'commission_id': commissionId };
77
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
78
78
  return this.collect({
79
79
  method: 'GET',
80
80
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
@@ -118,7 +118,7 @@ class CommissionsAPI extends core_1.Core {
118
118
  * @param postCommissionDateRequest
119
119
  */
120
120
  async postCommissionDate(commissionId, postCommissionDateRequest) {
121
- const pathVariable = { 'commission_id': commissionId };
121
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
122
122
  return this.request({
123
123
  method: 'POST',
124
124
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
@@ -134,7 +134,7 @@ class CommissionsAPI extends core_1.Core {
134
134
  * @param postCommissionDateDossierRequest
135
135
  */
136
136
  async postCommissionDateDossier(commissionId, dateId, postCommissionDateDossierRequest) {
137
- const pathVariable = { 'commission_id': commissionId, 'date_id': dateId };
137
+ const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
138
138
  return this.request({
139
139
  method: 'POST',
140
140
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}/ordre_du_jour'),
@@ -12,7 +12,7 @@ class DossiersAPI extends core_1.Core {
12
12
  * @param dossierId Identifiant unique du Dossier
13
13
  */
14
14
  async getDossier(dossierId) {
15
- const pathVariable = { 'dossier_id': dossierId };
15
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
@@ -27,7 +27,7 @@ class DossiersAPI extends core_1.Core {
27
27
  * @param workflowId Identifiant unique du Workflow
28
28
  */
29
29
  async getDossierWorkflowsDetails(dossierId, workflowId) {
30
- const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
30
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString(), 'workflow_id': (new String(workflowId)).toString() };
31
31
  return this.request({
32
32
  method: 'GET',
33
33
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}'),
@@ -43,7 +43,7 @@ class DossiersAPI extends core_1.Core {
43
43
  * @param perPage Nombre de résultats demandé
44
44
  */
45
45
  paginateDossierContacts(dossierId, page, perPage) {
46
- const pathVariable = { 'dossier_id': dossierId };
46
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
47
47
  return this.collect({
48
48
  method: 'GET',
49
49
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts'),
@@ -59,7 +59,7 @@ class DossiersAPI extends core_1.Core {
59
59
  * @param perPage Nombre de résultats demandé
60
60
  */
61
61
  paginateDossierDocuments(dossierId, page, perPage) {
62
- const pathVariable = { 'dossier_id': dossierId };
62
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
63
63
  return this.collect({
64
64
  method: 'GET',
65
65
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents'),
@@ -75,7 +75,7 @@ class DossiersAPI extends core_1.Core {
75
75
  * @param perPage Nombre de résultats demandé
76
76
  */
77
77
  paginateDossierTags(dossierId, page, perPage) {
78
- const pathVariable = { 'dossier_id': dossierId };
78
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
79
79
  return this.collect({
80
80
  method: 'GET',
81
81
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags'),
@@ -92,7 +92,7 @@ class DossiersAPI extends core_1.Core {
92
92
  * @param perPage Nombre de résultats demandé
93
93
  */
94
94
  paginateDossierWorkflowDocuments(dossierId, workflowId, page, perPage) {
95
- const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
95
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString(), 'workflow_id': (new String(workflowId)).toString() };
96
96
  return this.collect({
97
97
  method: 'GET',
98
98
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}/documents'),
@@ -108,7 +108,7 @@ class DossiersAPI extends core_1.Core {
108
108
  * @param perPage Nombre de résultats demandé
109
109
  */
110
110
  paginateDossierWorkflows(dossierId, page, perPage) {
111
- const pathVariable = { 'dossier_id': dossierId };
111
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
112
112
  return this.collect({
113
113
  method: 'GET',
114
114
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows'),
@@ -138,7 +138,7 @@ class DossiersAPI extends core_1.Core {
138
138
  * @param dossier
139
139
  */
140
140
  async patchDossier(dossierId, dossier) {
141
- const pathVariable = { 'dossier_id': dossierId };
141
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
142
142
  return this.request({
143
143
  method: 'PATCH',
144
144
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
@@ -168,7 +168,7 @@ class DossiersAPI extends core_1.Core {
168
168
  * @param updateDossierWorkflowsDetailsRequest
169
169
  */
170
170
  async updateDossierWorkflowsDetails(dossierId, workflowId, updateDossierWorkflowsDetailsRequest) {
171
- const pathVariable = { 'dossier_id': dossierId, 'workflow_id': workflowId };
171
+ const pathVariable = { 'dossier_id': (new String(dossierId)).toString(), 'workflow_id': (new String(workflowId)).toString() };
172
172
  return this.request({
173
173
  method: 'POST',
174
174
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows/{workflow_id}'),
package/lib/api/ERPAPI.js CHANGED
@@ -12,7 +12,7 @@ class ERPAPI extends core_1.Core {
12
12
  * @param erpId Identifiant unique de l'ERP
13
13
  */
14
14
  async getErp(erpId) {
15
- const pathVariable = { 'erp_id': erpId };
15
+ const pathVariable = { 'erp_id': (new String(erpId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}'),
@@ -43,7 +43,7 @@ class ERPAPI extends core_1.Core {
43
43
  * @param perPage Nombre de résultats demandé
44
44
  */
45
45
  paginateErpContacts(erpId, page, perPage) {
46
- const pathVariable = { 'erp_id': erpId };
46
+ const pathVariable = { 'erp_id': (new String(erpId)).toString() };
47
47
  return this.collect({
48
48
  method: 'GET',
49
49
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/contacts'),
@@ -59,7 +59,7 @@ class ERPAPI extends core_1.Core {
59
59
  * @param perPage Nombre de résultats demandé
60
60
  */
61
61
  paginateErpDocuments(erpId, page, perPage) {
62
- const pathVariable = { 'erp_id': erpId };
62
+ const pathVariable = { 'erp_id': (new String(erpId)).toString() };
63
63
  return this.collect({
64
64
  method: 'GET',
65
65
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/documents'),
@@ -12,7 +12,7 @@ class EvenementsAPI extends core_1.Core {
12
12
  * @param evenementId Identifiant unique de l'Événement
13
13
  */
14
14
  async deleteEvenement(evenementId) {
15
- const pathVariable = { 'evenement_id': evenementId };
15
+ const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
16
16
  return this.request({
17
17
  method: 'DELETE',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
@@ -27,7 +27,7 @@ class EvenementsAPI extends core_1.Core {
27
27
  * @param evenement
28
28
  */
29
29
  async getEvenementDetails(evenementId, evenement) {
30
- const pathVariable = { 'evenement_id': evenementId };
30
+ const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
31
31
  return this.request({
32
32
  method: 'GET',
33
33
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
@@ -43,7 +43,7 @@ class EvenementsAPI extends core_1.Core {
43
43
  * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
44
44
  */
45
45
  paginateEvenementUtilisateurs(evenementId, page, perPage) {
46
- const pathVariable = { 'evenement_id': evenementId };
46
+ const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
47
47
  return this.collect({
48
48
  method: 'GET',
49
49
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs'),
@@ -12,7 +12,7 @@ class NotificationsAPI extends core_1.Core {
12
12
  * @param notificationId Identifiant unique de la Notification
13
13
  */
14
14
  async deleteNotification(notificationId) {
15
- const pathVariable = { 'notification_id': notificationId };
15
+ const pathVariable = { 'notification_id': (new String(notificationId)).toString() };
16
16
  return this.request({
17
17
  method: 'DELETE',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
@@ -26,7 +26,7 @@ class NotificationsAPI extends core_1.Core {
26
26
  * @param notificationId Identifiant unique de la Notification
27
27
  */
28
28
  async getNotification(notificationId) {
29
- const pathVariable = { 'notification_id': notificationId };
29
+ const pathVariable = { 'notification_id': (new String(notificationId)).toString() };
30
30
  return this.request({
31
31
  method: 'GET',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
@@ -12,7 +12,7 @@ class OrganisationsAPI extends core_1.Core {
12
12
  * @param orgId Identifiant unique de l'Organisation
13
13
  */
14
14
  async getOrganisation(orgId) {
15
- const pathVariable = { 'org_id': orgId };
15
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}'),
@@ -26,7 +26,7 @@ class OrganisationsAPI extends core_1.Core {
26
26
  * @param orgId Identifiant unique de l'Organisation
27
27
  */
28
28
  async getOrganisationReglesDeci(orgId) {
29
- const pathVariable = { 'org_id': orgId };
29
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
30
30
  return this.request({
31
31
  method: 'GET',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci'),
@@ -40,7 +40,7 @@ class OrganisationsAPI extends core_1.Core {
40
40
  * @param orgId Identifiant unique de l'Organisation
41
41
  */
42
42
  paginateOrganisationDossiersWorkflowsSuites(orgId) {
43
- const pathVariable = { 'org_id': orgId };
43
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
44
44
  return this.collect({
45
45
  method: 'GET',
46
46
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites'),
@@ -56,7 +56,7 @@ class OrganisationsAPI extends core_1.Core {
56
56
  * @param perPage Nombre de résultats demandé
57
57
  */
58
58
  paginateOrganisationGeoservices(orgId, page, perPage) {
59
- const pathVariable = { 'org_id': orgId };
59
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
60
60
  return this.collect({
61
61
  method: 'GET',
62
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
@@ -72,7 +72,7 @@ class OrganisationsAPI extends core_1.Core {
72
72
  * @param perPage Nombre de résultats demandé
73
73
  */
74
74
  paginateOrganisationMembres(orgId, page, perPage) {
75
- const pathVariable = { 'org_id': orgId };
75
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
76
76
  return this.collect({
77
77
  method: 'GET',
78
78
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
package/lib/api/PEIAPI.js CHANGED
@@ -12,7 +12,7 @@ class PEIAPI extends core_1.Core {
12
12
  * @param peiId Identifiant unique du PEI
13
13
  */
14
14
  async getPei(peiId) {
15
- const pathVariable = { 'pei_id': peiId };
15
+ const pathVariable = { 'pei_id': (new String(peiId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}'),
@@ -44,7 +44,7 @@ class PEIAPI extends core_1.Core {
44
44
  * @param perPage Nombre de résultats demandé
45
45
  */
46
46
  paginatePeiContacts(peiId, page, perPage) {
47
- const pathVariable = { 'pei_id': peiId };
47
+ const pathVariable = { 'pei_id': (new String(peiId)).toString() };
48
48
  return this.collect({
49
49
  method: 'GET',
50
50
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/contacts'),
@@ -60,7 +60,7 @@ class PEIAPI extends core_1.Core {
60
60
  * @param perPage Nombre de résultats demandé
61
61
  */
62
62
  paginatePeiHistorique(peiId, page, perPage) {
63
- const pathVariable = { 'pei_id': peiId };
63
+ const pathVariable = { 'pei_id': (new String(peiId)).toString() };
64
64
  return this.collect({
65
65
  method: 'GET',
66
66
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/historique'),
@@ -76,7 +76,7 @@ class PEIAPI extends core_1.Core {
76
76
  * @param perPage Nombre de résultats demandé
77
77
  */
78
78
  paginatePeiPiecesJointes(peiId, page, perPage) {
79
- const pathVariable = { 'pei_id': peiId };
79
+ const pathVariable = { 'pei_id': (new String(peiId)).toString() };
80
80
  return this.collect({
81
81
  method: 'GET',
82
82
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/pieces_jointes'),
@@ -12,7 +12,7 @@ class PrescriptionsAPI extends core_1.Core {
12
12
  * @param prescriptionId Identifiant unique de la prescription
13
13
  */
14
14
  async deletePrescription(prescriptionId) {
15
- const pathVariable = { 'prescription_id': prescriptionId };
15
+ const pathVariable = { 'prescription_id': (new String(prescriptionId)).toString() };
16
16
  return this.request({
17
17
  method: 'DELETE',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions/{prescription_id}'),
@@ -26,7 +26,7 @@ class PrescriptionsAPI extends core_1.Core {
26
26
  * @param supportReglementaireId Identifiant unique du support réglementaire
27
27
  */
28
28
  async deleteSupportReglementaire(supportReglementaireId) {
29
- const pathVariable = { 'support_reglementaire_id': supportReglementaireId };
29
+ const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
30
30
  return this.request({
31
31
  method: 'DELETE',
32
32
  endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
@@ -40,7 +40,7 @@ class PrescriptionsAPI extends core_1.Core {
40
40
  * @param prescriptionId Identifiant unique de la prescription
41
41
  */
42
42
  async getPrescription(prescriptionId) {
43
- const pathVariable = { 'prescription_id': prescriptionId };
43
+ const pathVariable = { 'prescription_id': (new String(prescriptionId)).toString() };
44
44
  return this.request({
45
45
  method: 'GET',
46
46
  endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions/{prescription_id}'),
@@ -54,7 +54,7 @@ class PrescriptionsAPI extends core_1.Core {
54
54
  * @param supportReglementaireId Identifiant unique du support réglementaire
55
55
  */
56
56
  async getSupportReglementaire(supportReglementaireId) {
57
- const pathVariable = { 'support_reglementaire_id': supportReglementaireId };
57
+ const pathVariable = { 'support_reglementaire_id': (new String(supportReglementaireId)).toString() };
58
58
  return this.request({
59
59
  method: 'GET',
60
60
  endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires/{support_reglementaire_id}'),
@@ -12,7 +12,7 @@ class SupportAPI extends core_1.Core {
12
12
  * @param ticketId ID du ticket
13
13
  */
14
14
  async getTicket(ticketId) {
15
- const pathVariable = { 'ticket_id': ticketId };
15
+ const pathVariable = { 'ticket_id': (new String(ticketId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/support/{ticket_id}'),
@@ -7,6 +7,7 @@ import { PostTourneeDeciRequest } from '../model/PostTourneeDeciRequest';
7
7
  import { TourneeDeci } from '../model/TourneeDeci';
8
8
  import { TourneeDeciPei } from '../model/TourneeDeciPei';
9
9
  import { UpdateTourneeDeciPeiRequest } from '../model/UpdateTourneeDeciPeiRequest';
10
+ import { UpdateTourneeDeciRequest } from '../model/UpdateTourneeDeciRequest';
10
11
  export declare class TournesDECIAPI extends Core {
11
12
  constructor(config: MetariscConfig, client?: Client);
12
13
  /**
@@ -60,9 +61,9 @@ export declare class TournesDECIAPI extends Core {
60
61
  /**
61
62
  * Mise à jour de la tournée DECI.
62
63
  * @param tourneeDeciId Identifiant de la tournée DECI
63
- * @param postTourneeDeciRequest
64
+ * @param updateTourneeDeciRequest
64
65
  */
65
- updateTourneeDeci(tourneeDeciId: string, postTourneeDeciRequest?: PostTourneeDeciRequest): Promise<AxiosResponse<TourneeDeci>>;
66
+ updateTourneeDeci(tourneeDeciId: string, updateTourneeDeciRequest?: UpdateTourneeDeciRequest): Promise<AxiosResponse<TourneeDeci>>;
66
67
  /**
67
68
  * Mise à jour du PEI contrôlé dans une tournée DECI.
68
69
  * @param tourneeDeciId Identifiant de la tournée DECI
@@ -13,7 +13,7 @@ class TournesDECIAPI extends core_1.Core {
13
13
  * @param peiId Identifiant du PEI lié au contrôle
14
14
  */
15
15
  async deleteTourneeDeciPei(tourneeDeciId, peiId) {
16
- const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
16
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString(), 'pei_id': (new String(peiId)).toString() };
17
17
  return this.request({
18
18
  method: 'DELETE',
19
19
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
@@ -27,7 +27,7 @@ class TournesDECIAPI extends core_1.Core {
27
27
  * @param tourneeDeciId Identifiant de la tournée DECI
28
28
  */
29
29
  async getTourneeDeci(tourneeDeciId) {
30
- const pathVariable = { 'tournee_deci_id': tourneeDeciId };
30
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString() };
31
31
  return this.request({
32
32
  method: 'GET',
33
33
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}'),
@@ -41,7 +41,7 @@ class TournesDECIAPI extends core_1.Core {
41
41
  * @param tourneeDeciId Identifiant de la tournée DECI
42
42
  */
43
43
  async getTourneeDeciLivretDeTournee(tourneeDeciId) {
44
- const pathVariable = { 'tournee_deci_id': tourneeDeciId };
44
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString() };
45
45
  return this.request({
46
46
  method: 'GET',
47
47
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/livret_de_tournee'),
@@ -56,7 +56,7 @@ class TournesDECIAPI extends core_1.Core {
56
56
  * @param peiId Identifiant du PEI lié au contrôle
57
57
  */
58
58
  async getTourneeDeciPei(tourneeDeciId, peiId) {
59
- const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
59
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString(), 'pei_id': (new String(peiId)).toString() };
60
60
  return this.request({
61
61
  method: 'GET',
62
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
@@ -72,7 +72,7 @@ class TournesDECIAPI extends core_1.Core {
72
72
  * @param perPage Nombre de résultats demandé
73
73
  */
74
74
  paginateTourneeDeciPei(tourneeDeciId, page, perPage) {
75
- const pathVariable = { 'tournee_deci_id': tourneeDeciId };
75
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString() };
76
76
  return this.collect({
77
77
  method: 'GET',
78
78
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei'),
@@ -109,7 +109,7 @@ class TournesDECIAPI extends core_1.Core {
109
109
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci'),
110
110
  headers: {},
111
111
  params: {},
112
- body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description, 'date_de_debut': postTourneeDeciRequest?.date_de_debut, 'date_de_fin': postTourneeDeciRequest?.date_de_fin }
112
+ body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description, 'date_de_debut': postTourneeDeciRequest?.date_de_debut, 'date_de_fin': postTourneeDeciRequest?.date_de_fin, 'mois_debut': postTourneeDeciRequest?.mois_debut, 'mois_fin': postTourneeDeciRequest?.mois_fin, 'modele_id': postTourneeDeciRequest?.modele_id, 'type': postTourneeDeciRequest?.type }
113
113
  });
114
114
  }
115
115
  /**
@@ -118,7 +118,7 @@ class TournesDECIAPI extends core_1.Core {
118
118
  * @param postTourneeDeciPeiRequest
119
119
  */
120
120
  async postTourneeDeciPei(tourneeDeciId, postTourneeDeciPeiRequest) {
121
- const pathVariable = { 'tournee_deci_id': tourneeDeciId };
121
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString() };
122
122
  return this.request({
123
123
  method: 'POST',
124
124
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei'),
@@ -130,16 +130,16 @@ class TournesDECIAPI extends core_1.Core {
130
130
  /**
131
131
  * Mise à jour de la tournée DECI.
132
132
  * @param tourneeDeciId Identifiant de la tournée DECI
133
- * @param postTourneeDeciRequest
133
+ * @param updateTourneeDeciRequest
134
134
  */
135
- async updateTourneeDeci(tourneeDeciId, postTourneeDeciRequest) {
136
- const pathVariable = { 'tournee_deci_id': tourneeDeciId };
135
+ async updateTourneeDeci(tourneeDeciId, updateTourneeDeciRequest) {
136
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString() };
137
137
  return this.request({
138
138
  method: 'POST',
139
139
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}'),
140
140
  headers: {},
141
141
  params: {},
142
- body: { 'libelle': postTourneeDeciRequest?.libelle, 'description': postTourneeDeciRequest?.description, 'date_de_debut': postTourneeDeciRequest?.date_de_debut, 'date_de_fin': postTourneeDeciRequest?.date_de_fin }
142
+ body: { 'libelle': updateTourneeDeciRequest?.libelle, 'description': updateTourneeDeciRequest?.description, 'date_de_debut': updateTourneeDeciRequest?.date_de_debut, 'date_de_fin': updateTourneeDeciRequest?.date_de_fin, 'mois_debut': updateTourneeDeciRequest?.mois_debut, 'mois_fin': updateTourneeDeciRequest?.mois_fin }
143
143
  });
144
144
  }
145
145
  /**
@@ -149,7 +149,7 @@ class TournesDECIAPI extends core_1.Core {
149
149
  * @param updateTourneeDeciPeiRequest
150
150
  */
151
151
  async updateTourneeDeciPei(tourneeDeciId, peiId, updateTourneeDeciPeiRequest) {
152
- const pathVariable = { 'tournee_deci_id': tourneeDeciId, 'pei_id': peiId };
152
+ const pathVariable = { 'tournee_deci_id': (new String(tourneeDeciId)).toString(), 'pei_id': (new String(peiId)).toString() };
153
153
  return this.request({
154
154
  method: 'POST',
155
155
  endpoint: utils_1.Utils.constructPath(pathVariable, '/tournees_deci/{tournee_deci_id}/pei/{pei_id}'),
@@ -12,7 +12,7 @@ class UtilisateursAPI extends core_1.Core {
12
12
  * @param utilisateurId Identifiant unique de l'utilisateur
13
13
  */
14
14
  async getUtilisateurDetails(utilisateurId) {
15
- const pathVariable = { 'utilisateur_id': utilisateurId };
15
+ const pathVariable = { 'utilisateur_id': (new String(utilisateurId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/utilisateurs/{utilisateur_id}'),
@@ -56,7 +56,7 @@ class UtilisateursAPI extends core_1.Core {
56
56
  * @param perPage Nombre de résultats demandé
57
57
  */
58
58
  paginateUtilisateurEmails(utilisateurId, page, perPage) {
59
- const pathVariable = { 'utilisateur_id': utilisateurId };
59
+ const pathVariable = { 'utilisateur_id': (new String(utilisateurId)).toString() };
60
60
  return this.collect({
61
61
  method: 'GET',
62
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/utilisateurs/{utilisateur_id}/emails'),
@@ -72,7 +72,7 @@ class UtilisateursAPI extends core_1.Core {
72
72
  * @param perPage Nombre de résultats demandé
73
73
  */
74
74
  paginateUtilisateurOrganisations(utilisateurId, page, perPage) {
75
- const pathVariable = { 'utilisateur_id': utilisateurId };
75
+ const pathVariable = { 'utilisateur_id': (new String(utilisateurId)).toString() };
76
76
  return this.collect({
77
77
  method: 'GET',
78
78
  endpoint: utils_1.Utils.constructPath(pathVariable, '/utilisateurs/{utilisateur_id}/organisations'),
@@ -3,4 +3,13 @@ export type PostTourneeDeciRequest = {
3
3
  'description'?: string;
4
4
  'date_de_debut'?: Date;
5
5
  'date_de_fin'?: Date;
6
+ 'mois_debut'?: number;
7
+ 'mois_fin'?: number;
8
+ 'modele_id'?: string;
9
+ 'type'?: TypeEnum;
6
10
  };
11
+ export declare enum TypeEnum {
12
+ Deci = "tournee_deci",
13
+ DeciModele = "tournee_deci_modele",
14
+ DeciFromModele = "tournee_deci_from_modele"
15
+ }
@@ -1,2 +1,9 @@
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["Deci"] = "tournee_deci";
7
+ TypeEnum["DeciModele"] = "tournee_deci_modele";
8
+ TypeEnum["DeciFromModele"] = "tournee_deci_from_modele";
9
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -1,10 +1,19 @@
1
+ import { TourneeDeciModele } from '../../src/model/TourneeDeciModele';
1
2
  export type TourneeDeci = {
2
3
  'id'?: string;
3
4
  'libelle'?: string;
4
5
  'description'?: string;
5
6
  'date_creation'?: Date;
7
+ 'type'?: TypeEnum;
6
8
  'pourcentage'?: number;
7
9
  'est_terminee'?: boolean;
8
10
  'date_de_debut'?: Date;
9
11
  'date_de_fin'?: Date;
12
+ 'modele'?: TourneeDeciModele;
13
+ 'mois_debut'?: string;
14
+ 'mois_fin'?: string;
10
15
  };
16
+ export declare enum TypeEnum {
17
+ Deci = "tournee_deci",
18
+ DeciModele = "tournee_deci_modele"
19
+ }
@@ -1,2 +1,8 @@
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["Deci"] = "tournee_deci";
7
+ TypeEnum["DeciModele"] = "tournee_deci_modele";
8
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -0,0 +1,11 @@
1
+ export type TourneeDeciBase = {
2
+ 'id'?: string;
3
+ 'libelle'?: string;
4
+ 'description'?: string;
5
+ 'date_creation'?: Date;
6
+ 'type'?: TypeEnum;
7
+ };
8
+ export declare enum TypeEnum {
9
+ Deci = "tournee_deci",
10
+ DeciModele = "tournee_deci_modele"
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeEnum = void 0;
4
+ var TypeEnum;
5
+ (function (TypeEnum) {
6
+ TypeEnum["Deci"] = "tournee_deci";
7
+ TypeEnum["DeciModele"] = "tournee_deci_modele";
8
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -0,0 +1,9 @@
1
+ import { TourneeDeciBase } from '../model/TourneeDeciBase';
2
+ export type TourneeDeciModele = TourneeDeciBase & {
3
+ 'mois_debut'?: string;
4
+ 'mois_fin'?: string;
5
+ };
6
+ export declare enum TypeEnum {
7
+ Deci = "tournee_deci",
8
+ DeciModele = "tournee_deci_modele"
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeEnum = void 0;
4
+ var TypeEnum;
5
+ (function (TypeEnum) {
6
+ TypeEnum["Deci"] = "tournee_deci";
7
+ TypeEnum["DeciModele"] = "tournee_deci_modele";
8
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));
@@ -0,0 +1,13 @@
1
+ import { TourneeDeciModele } from '../../src/model/TourneeDeciModele';
2
+ import { TourneeDeciBase } from '../model/TourneeDeciBase';
3
+ export type TourneeDeciSimple = TourneeDeciBase & {
4
+ 'pourcentage'?: number;
5
+ 'est_terminee'?: boolean;
6
+ 'date_de_debut'?: Date;
7
+ 'date_de_fin'?: Date;
8
+ 'modele'?: TourneeDeciModele;
9
+ };
10
+ export declare enum TypeEnum {
11
+ Deci = "tournee_deci",
12
+ DeciModele = "tournee_deci_modele"
13
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeEnum = void 0;
4
+ var TypeEnum;
5
+ (function (TypeEnum) {
6
+ TypeEnum["Deci"] = "tournee_deci";
7
+ TypeEnum["DeciModele"] = "tournee_deci_modele";
8
+ })(TypeEnum = exports.TypeEnum || (exports.TypeEnum = {}));