@metarisc/metarisc-js 0.0.1-alpha.76 → 0.0.1-alpha.78

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 (112) hide show
  1. package/lib/api/AnomaliesAPI.d.ts +1 -1
  2. package/lib/api/AnomaliesAPI.js +8 -10
  3. package/lib/api/CommissionsAPI.js +10 -17
  4. package/lib/api/CommissionsMembresAPI.d.ts +1 -1
  5. package/lib/api/CommissionsMembresAPI.js +4 -11
  6. package/lib/api/ContactsAPI.d.ts +1 -1
  7. package/lib/api/ContactsAPI.js +4 -11
  8. package/lib/api/ControlesPEIAPI.d.ts +1 -1
  9. package/lib/api/ControlesPEIAPI.js +3 -8
  10. package/lib/api/DatesPassageCommissionAPI.js +2 -8
  11. package/lib/api/DocumentsAPI.d.ts +1 -1
  12. package/lib/api/DocumentsAPI.js +4 -11
  13. package/lib/api/DossiersAPI.d.ts +3 -3
  14. package/lib/api/DossiersAPI.js +23 -50
  15. package/lib/api/DossiersAffectationsAPI.d.ts +1 -1
  16. package/lib/api/DossiersAffectationsAPI.js +2 -5
  17. package/lib/api/ERPAPI.d.ts +1 -1
  18. package/lib/api/ERPAPI.js +19 -30
  19. package/lib/api/EnveloppesAPI.d.ts +1 -1
  20. package/lib/api/EnveloppesAPI.js +7 -11
  21. package/lib/api/EvenementsAPI.d.ts +1 -1
  22. package/lib/api/EvenementsAPI.js +8 -13
  23. package/lib/api/FeedAPI.js +1 -4
  24. package/lib/api/HealthcheckAPI.d.ts +2 -1
  25. package/lib/api/HealthcheckAPI.js +2 -4
  26. package/lib/api/MoiAPI.js +1 -3
  27. package/lib/api/NotificationsAPI.d.ts +1 -1
  28. package/lib/api/NotificationsAPI.js +5 -14
  29. package/lib/api/OrdresDuJourAPI.js +0 -1
  30. package/lib/api/OrganisationsAPI.js +9 -24
  31. package/lib/api/PEIAPI.js +17 -29
  32. package/lib/api/PingAPI.js +1 -3
  33. package/lib/api/PrescriptionsAPI.d.ts +2 -2
  34. package/lib/api/PrescriptionsAPI.js +13 -21
  35. package/lib/api/SitesGeographiquesAPI.d.ts +28 -0
  36. package/lib/api/SitesGeographiquesAPI.js +68 -0
  37. package/lib/api/{TournesDECIAPI.d.ts → TourneesDECIAPI.d.ts} +1 -1
  38. package/lib/api/{TournesDECIAPI.js → TourneesDECIAPI.js} +12 -21
  39. package/lib/api/UtilisateursAPI.js +8 -17
  40. package/lib/api/WorkflowsAPI.d.ts +1 -5
  41. package/lib/api/WorkflowsAPI.js +2 -17
  42. package/lib/index.d.ts +1 -22
  43. package/lib/index.js +16 -45
  44. package/lib/metarisc.d.ts +28 -46
  45. package/lib/metarisc.js +53 -72
  46. package/lib/model/Clicdvcrem.d.ts +122 -122
  47. package/lib/model/Clicdvcrem.js +119 -119
  48. package/lib/model/Commission.d.ts +1 -1
  49. package/lib/model/Commission.js +1 -1
  50. package/lib/model/Dossier.d.ts +15 -0
  51. package/lib/model/Dossier.js +17 -1
  52. package/lib/model/DossierBase.d.ts +20 -1
  53. package/lib/model/DossierBase.js +17 -1
  54. package/lib/model/DossierDeci.d.ts +15 -0
  55. package/lib/model/DossierDeci.js +17 -1
  56. package/lib/model/DossierErp.d.ts +15 -0
  57. package/lib/model/DossierErp.js +17 -1
  58. package/lib/model/ERP.d.ts +3 -0
  59. package/lib/model/EffectifsNiveau.d.ts +54 -54
  60. package/lib/model/EffectifsNiveau.js +54 -54
  61. package/lib/model/PassageCommission.d.ts +1 -0
  62. package/lib/model/ReglesDeci.d.ts +2 -2
  63. package/lib/model/SiteGeographique.d.ts +4 -0
  64. package/lib/model/SiteGeographique.js +3 -0
  65. package/lib/model/Workflow.d.ts +5 -2
  66. package/lib/model/Workflow.js +3 -0
  67. package/lib/resources.d.ts +2 -1
  68. package/lib/resources.js +5 -3
  69. package/lib/utils.d.ts +12 -1
  70. package/lib/utils.js +32 -6
  71. package/package.json +1 -1
  72. package/src/api/AnomaliesAPI.ts +9 -11
  73. package/src/api/CommissionsAPI.ts +10 -17
  74. package/src/api/CommissionsMembresAPI.ts +5 -12
  75. package/src/api/ContactsAPI.ts +5 -12
  76. package/src/api/ControlesPEIAPI.ts +4 -9
  77. package/src/api/DatesPassageCommissionAPI.ts +2 -8
  78. package/src/api/DocumentsAPI.ts +5 -12
  79. package/src/api/DossiersAPI.ts +26 -53
  80. package/src/api/DossiersAffectationsAPI.ts +3 -6
  81. package/src/api/ERPAPI.ts +21 -30
  82. package/src/api/EnveloppesAPI.ts +8 -12
  83. package/src/api/EvenementsAPI.ts +9 -14
  84. package/src/api/FeedAPI.ts +1 -4
  85. package/src/api/HealthcheckAPI.ts +4 -5
  86. package/src/api/MoiAPI.ts +1 -3
  87. package/src/api/NotificationsAPI.ts +6 -15
  88. package/src/api/OrdresDuJourAPI.ts +0 -1
  89. package/src/api/OrganisationsAPI.ts +9 -24
  90. package/src/api/PEIAPI.ts +17 -29
  91. package/src/api/PingAPI.ts +1 -3
  92. package/src/api/PrescriptionsAPI.ts +15 -23
  93. package/src/api/SitesGeographiquesAPI.ts +92 -0
  94. package/src/api/{TournesDECIAPI.ts → TourneesDECIAPI.ts} +10 -19
  95. package/src/api/UtilisateursAPI.ts +8 -17
  96. package/src/api/WorkflowsAPI.ts +2 -21
  97. package/src/index.ts +1 -44
  98. package/src/metarisc.ts +57 -166
  99. package/src/model/Clicdvcrem.ts +122 -122
  100. package/src/model/Commission.ts +1 -1
  101. package/src/model/Dossier.ts +16 -0
  102. package/src/model/DossierBase.ts +21 -1
  103. package/src/model/DossierDeci.ts +16 -0
  104. package/src/model/DossierErp.ts +16 -0
  105. package/src/model/ERP.ts +3 -0
  106. package/src/model/EffectifsNiveau.ts +54 -54
  107. package/src/model/PassageCommission.ts +1 -0
  108. package/src/model/ReglesDeci.ts +2 -2
  109. package/src/model/SiteGeographique.ts +6 -0
  110. package/src/model/Workflow.ts +5 -2
  111. package/src/resources.ts +3 -1
  112. package/src/utils.ts +39 -10
@@ -13,11 +13,9 @@ class DossiersAffectationsAPI extends core_1.Core {
13
13
  */
14
14
  deleteAffectation(affectationId) {
15
15
  const pathVariable = { 'affectation_id': (new String(affectationId)).toString() };
16
- this.request({
16
+ return this.request({
17
17
  method: 'DELETE',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers_affectations/{affectation_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers_affectations/{affectation_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -28,7 +26,6 @@ class DossiersAffectationsAPI extends core_1.Core {
28
26
  return this.request({
29
27
  method: 'POST',
30
28
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers_affectations/{affectation_id}'),
31
- params: {},
32
29
  body: utils_1.Utils.payloadFilter(params)
33
30
  });
34
31
  }
@@ -36,7 +36,7 @@ export declare class ERPAPI extends Core {
36
36
  /**
37
37
  * Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
38
38
  */
39
- paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: 'CTS - Châpiteaux' | 'CTS - Structures' | 'CTS - Tentes' | 'EF - Bateaux en stationnement sur les eaux intérieures' | 'EF - Bateaux stationnaires' | 'EF - Etablissements flottants' | 'GA - Gares' | 'GEEM - Grands établissements à exploitation multiple' | 'J - Etablissements d\'enseignement avec internat pour jeunes handicapés ou inadaptés' | 'J - Etablissements d\'hébergement pour adultes handicapés' | 'J - Etablissements médico-éducatifs avec internat pour jeunes handicapés ou inadaptés' | 'J - Structures d\'accueil pour personnes âgées' | 'J - Structures d\'accueil pour personnes handicapées' | 'L - Cabarets' | 'L - Salles d\'audition' | 'L - Salle de conférences' | 'L - Salles de pari' | 'L - Salles de projection' | 'L - Salles de quartier (ou assimilée)' | 'L - Salles de réunions' | 'L - Salles de spectacles' | 'L - Salles multimédia' | 'L - Salles polyvalentes à dominante sportive, dont la superficie unitaire est supérieure ou égale à 1 200 m2' | 'L - Salles polyvalentes non visée par le Type X (salle polyvalente qui n\'a pas une destination unique)' | 'L - Salles réservées aux associations' | 'M - Aires de vente' | 'M - Centres commerciaux' | 'M - Locaux de vente' | 'M - Magasin de vente' | 'N - Bars' | 'N - Brasseries' | 'N - Cafétaria' | 'N - Cafés' | 'N - Cantines' | 'N - Débits de boissons' | 'N - Restaurants' | 'O - Hôtels' | 'O - Pensions de famille' | 'OA - Hôtels-restaurants d\'altitude' | 'P - Salle de bals' | 'P - Dancing / discothèque' | 'P - Salles de jeux' | 'PA - Arènes' | 'PA - Hippodromes' | 'PA - Piscines' | 'PA - Pistes de patinage' | 'PA - Stades' | 'PA - Terrains de sport' | 'PA - Parc d\'attraction' | 'PE 2 §2 - Locaux à usage collectif d\'une surface unitaire supérieure à 50 mètres carrés des logements-foyers et de l\'habitat de loisirs à gestion collective' | 'PE 2 §2 - Bâtiments ou locaux à usage d\'hébergement qui ne relèvent d\'aucun type défini à l\'article GN 1 et qui permettent d\'accueillir plus de 15 et moins de 100 personnes n\'y élisant pas domicile' | 'PE 2 §2 - Hébergement de mineurs en dehors de leurs familles, le seuil de l\'effectif est fixé à 7 mineurs' | 'PE 2 §2 - Maisons d\'assistants maternels (MAM) dont les locaux accessibles au public sont strictement limités à un seul étage sur rez-de-chaussée et dont l\'effectif ne dépasse pas 16 enfants' | 'PS - Parcs de stationnement couverts' | 'PS - Parc de stationnement mixte' | 'PS - Parc de stationnement largement ventilé' | 'PS - Parc de stationnement à rangement automatisé' | 'R - Auberges de jeunesse (comprenant au moins un local collectif à sommeil)' | 'R - Auto-écoles' | 'R - Centres aérés' | 'R - Centres de loisirs (sans hébergement)' | 'R - Centres de vacances' | 'R - Colonies de vacances' | 'R - Crèches' | 'R - Ecoles maternelles' | 'R - Etablissements d\'enseignement' | 'R - Etablissements de formation' | 'R - Haltes-garderies' | 'R - Internats des établissements de l\'enseignement primaire et secondaire' | 'R - Jardins d\'enfant' | 'R - Lycee public' | 'R - Collège public' | 'R - Lycee privé' | 'R - Collège privé' | 'R - École élémentaire' | 'REF - Refuges de montagne' | 'S - Bibliothèques' | 'S - Centres de documentation et de consultation d\'archives' | 'SG - Structures gonflables' | 'T - Etablissements à vocation commerciale destinés à des expositions' | 'T - Foires-expositions' | 'T - Salles d\'expositions à caractère permanent n\'ayant pas une vocation de foire ou de salon' | 'T - Salles d\'expositions à caractère permanent de véhicules automobiles, bateaux, machines et autres volumineux biens d\'équipements assimilables' | 'T - Salons à caractère temporaire' | 'U - Etablissements de cure thermale ou de thalassothérapie' | 'U - Etablissements de santé publics ou privés dispensant des soins de courte durée en médecine, chirurgie, obstétrique' | 'U - Etablissements de santé publics ou privés dispensant des soins de psychiatrie, de suite ou de réadaptation, des soins de longue durée, à des personnes n\'ayant pas leur autonomie de vie dont l\'état nécessite une surveillance médicale constante' | 'U - Pouponnières (enfants de moins de 3 ans)' | 'V - Eglises' | 'V - Mosquées' | 'V - Synagogues' | 'V - Temples' | 'W - Administrations' | 'W - Banques' | 'W - Bureaux' | 'X - Manèges' | 'X - Patinoires' | 'X - Piscines couvertes, transformables et mixtes' | 'X - Salles d\'éducation physique et sportive' | 'X - Salles omnisports' | 'X - Salles polyvalentes à dominante sportive, dont l\'aire d\'activité est inférieure à 1200 m² et la hauteur sous plafond supérieure ou égale à 6,50 mètres' | 'X - Salles sportives spécialisées' | 'Y - Musées' | 'Y - Salles destinées à recevoir des expositions à vocation culturelle, scientifique, technique, artistique, etc. ayant un caractère temporaire', avisExploitation?: 'favorable' | 'defavorable'): Collection<ERP>;
39
+ paginateErp(sort?: 'libelle' | '-libelle', libelle?: string, geojson?: string, referencesExterieures?: string | Array<string>, presenceLocauxSommeil?: boolean, typeActivite?: 'CTS - Châpiteaux' | 'CTS - Structures' | 'CTS - Tentes' | 'EF - Bateaux en stationnement sur les eaux intérieures' | 'EF - Bateaux stationnaires' | 'EF - Etablissements flottants' | 'GA - Gares' | 'GEEM - Grands établissements à exploitation multiple' | 'J - Etablissements d\'enseignement avec internat pour jeunes handicapés ou inadaptés' | 'J - Etablissements d\'hébergement pour adultes handicapés' | 'J - Etablissements médico-éducatifs avec internat pour jeunes handicapés ou inadaptés' | 'J - Structures d\'accueil pour personnes âgées' | 'J - Structures d\'accueil pour personnes handicapées' | 'L - Cabarets' | 'L - Salles d\'audition' | 'L - Salle de conférences' | 'L - Salles de pari' | 'L - Salles de projection' | 'L - Salles de quartier (ou assimilée)' | 'L - Salles de réunions' | 'L - Salles de spectacles' | 'L - Salles multimédia' | 'L - Salles polyvalentes à dominante sportive, dont la superficie unitaire est supérieure ou égale à 1 200 m2' | 'L - Salles polyvalentes non visée par le Type X (salle polyvalente qui n\'a pas une destination unique)' | 'L - Salles réservées aux associations' | 'M - Aires de vente' | 'M - Centres commerciaux' | 'M - Locaux de vente' | 'M - Magasin de vente' | 'N - Bars' | 'N - Brasseries' | 'N - Cafétaria' | 'N - Cafés' | 'N - Cantines' | 'N - Débits de boissons' | 'N - Restaurants' | 'O - Hôtels' | 'O - Pensions de famille' | 'OA - Hôtels-restaurants d\'altitude' | 'P - Salle de bals' | 'P - Dancing / discothèque' | 'P - Salles de jeux' | 'PA - Arènes' | 'PA - Hippodromes' | 'PA - Piscines' | 'PA - Pistes de patinage' | 'PA - Stades' | 'PA - Terrains de sport' | 'PA - Parc d\'attraction' | 'PE 2 §2 - Locaux à usage collectif d\'une surface unitaire supérieure à 50 mètres carrés des logements-foyers et de l\'habitat de loisirs à gestion collective' | 'PE 2 §2 - Bâtiments ou locaux à usage d\'hébergement qui ne relèvent d\'aucun type défini à l\'article GN 1 et qui permettent d\'accueillir plus de 15 et moins de 100 personnes n\'y élisant pas domicile' | 'PE 2 §2 - Hébergement de mineurs en dehors de leurs familles, le seuil de l\'effectif est fixé à 7 mineurs' | 'PE 2 §2 - Maisons d\'assistants maternels (MAM) dont les locaux accessibles au public sont strictement limités à un seul étage sur rez-de-chaussée et dont l\'effectif ne dépasse pas 16 enfants' | 'PS - Parcs de stationnement couverts' | 'PS - Parc de stationnement mixte' | 'PS - Parc de stationnement largement ventilé' | 'PS - Parc de stationnement à rangement automatisé' | 'R - Auberges de jeunesse (comprenant au moins un local collectif à sommeil)' | 'R - Auto-écoles' | 'R - Centres aérés' | 'R - Centres de loisirs (sans hébergement)' | 'R - Centres de vacances' | 'R - Colonies de vacances' | 'R - Crèches' | 'R - Ecoles maternelles' | 'R - Etablissements d\'enseignement' | 'R - Etablissements de formation' | 'R - Haltes-garderies' | 'R - Internats des établissements de l\'enseignement primaire et secondaire' | 'R - Jardins d\'enfant' | 'R - Lycee public' | 'R - Collège public' | 'R - Lycee privé' | 'R - Collège privé' | 'R - École élémentaire' | 'REF - Refuges de montagne' | 'S - Bibliothèques' | 'S - Centres de documentation et de consultation d\'archives' | 'SG - Structures gonflables' | 'T - Etablissements à vocation commerciale destinés à des expositions' | 'T - Foires-expositions' | 'T - Salles d\'expositions à caractère permanent n\'ayant pas une vocation de foire ou de salon' | 'T - Salles d\'expositions à caractère permanent de véhicules automobiles, bateaux, machines et autres volumineux biens d\'équipements assimilables' | 'T - Salons à caractère temporaire' | 'U - Etablissements de cure thermale ou de thalassothérapie' | 'U - Etablissements de santé publics ou privés dispensant des soins de courte durée en médecine, chirurgie, obstétrique' | 'U - Etablissements de santé publics ou privés dispensant des soins de psychiatrie, de suite ou de réadaptation, des soins de longue durée, à des personnes n\'ayant pas leur autonomie de vie dont l\'état nécessite une surveillance médicale constante' | 'U - Pouponnières (enfants de moins de 3 ans)' | 'V - Eglises' | 'V - Mosquées' | 'V - Synagogues' | 'V - Temples' | 'W - Administrations' | 'W - Banques' | 'W - Bureaux' | 'X - Manèges' | 'X - Patinoires' | 'X - Piscines couvertes, transformables et mixtes' | 'X - Salles d\'éducation physique et sportive' | 'X - Salles omnisports' | 'X - Salles polyvalentes à dominante sportive, dont l\'aire d\'activité est inférieure à 1200 m² et la hauteur sous plafond supérieure ou égale à 6,50 mètres' | 'X - Salles sportives spécialisées' | 'Y - Musées' | 'Y - Salles destinées à recevoir des expositions à vocation culturelle, scientifique, technique, artistique, etc. ayant un caractère temporaire', avisExploitation?: 'favorable' | 'defavorable', aVisiterEn?: string, siteGeographique?: string): Collection<ERP>;
40
40
  /**
41
41
  * Récupération de l'historique d'un ERP.
42
42
  */
package/lib/api/ERPAPI.js CHANGED
@@ -15,9 +15,7 @@ class ERPAPI extends core_1.Core {
15
15
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -27,9 +25,7 @@ class ERPAPI extends core_1.Core {
27
25
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
28
26
  return this.request({
29
27
  method: 'GET',
30
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/references_exterieures'),
31
- params: {},
32
- body: utils_1.Utils.payloadFilter({})
28
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/references_exterieures')
33
29
  });
34
30
  }
35
31
  /**
@@ -39,9 +35,7 @@ class ERPAPI extends core_1.Core {
39
35
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
40
36
  return this.collect({
41
37
  method: 'GET',
42
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/contacts'),
43
- params: {},
44
- body: utils_1.Utils.payloadFilter({})
38
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/contacts')
45
39
  });
46
40
  }
47
41
  /**
@@ -51,9 +45,7 @@ class ERPAPI extends core_1.Core {
51
45
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
52
46
  return this.collect({
53
47
  method: 'GET',
54
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/documents'),
55
- params: {},
56
- body: utils_1.Utils.payloadFilter({})
48
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/documents')
57
49
  });
58
50
  }
59
51
  /**
@@ -63,21 +55,28 @@ class ERPAPI extends core_1.Core {
63
55
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
64
56
  return this.collect({
65
57
  method: 'GET',
66
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers'),
67
- params: {},
68
- body: utils_1.Utils.payloadFilter({})
58
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers')
69
59
  });
70
60
  }
71
61
  /**
72
62
  * Récupération de la liste des Établissements Recevant du Public (ERP) selon des critères de recherche.
73
63
  */
74
- paginateErp(sort, libelle, geojson, referencesExterieures, presenceLocauxSommeil, typeActivite, avisExploitation) {
64
+ paginateErp(sort, libelle, geojson, referencesExterieures, presenceLocauxSommeil, typeActivite, avisExploitation, aVisiterEn, siteGeographique) {
75
65
  const pathVariable = {};
76
66
  return this.collect({
77
67
  method: 'GET',
78
68
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp'),
79
- params: { 'sort': (new String(sort)).toString(), 'libelle': (new String(libelle)).toString(), 'geojson': (new String(geojson)).toString(), 'references_exterieures': (new String(referencesExterieures)).toString(), 'presence_locaux_sommeil': (new String(presenceLocauxSommeil)).toString(), 'type_activite': (new String(typeActivite)).toString(), 'avis_exploitation': (new String(avisExploitation)).toString() },
80
- body: utils_1.Utils.payloadFilter({})
69
+ params: utils_1.Utils.payloadFilter({
70
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
71
+ 'libelle': libelle === undefined ? undefined : (new String(libelle)).toString(),
72
+ 'geojson': geojson === undefined ? undefined : (new String(geojson)).toString(),
73
+ 'references_exterieures': referencesExterieures === undefined ? undefined : (new String(referencesExterieures)).toString(),
74
+ 'presence_locaux_sommeil': presenceLocauxSommeil === undefined ? undefined : (new String(presenceLocauxSommeil)).toString(),
75
+ 'type_activite': typeActivite === undefined ? undefined : (new String(typeActivite)).toString(),
76
+ 'avis_exploitation': avisExploitation === undefined ? undefined : (new String(avisExploitation)).toString(),
77
+ 'a_visiter_en': aVisiterEn === undefined ? undefined : (new String(aVisiterEn)).toString(),
78
+ 'site_geographique': siteGeographique === undefined ? undefined : (new String(siteGeographique)).toString()
79
+ })
81
80
  });
82
81
  }
83
82
  /**
@@ -87,9 +86,7 @@ class ERPAPI extends core_1.Core {
87
86
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
88
87
  return this.collect({
89
88
  method: 'GET',
90
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/historique'),
91
- params: {},
92
- body: utils_1.Utils.payloadFilter({})
89
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/historique')
93
90
  });
94
91
  }
95
92
  /**
@@ -99,9 +96,7 @@ class ERPAPI extends core_1.Core {
99
96
  const pathVariable = { 'erp_id': (new String(erpId)).toString() };
100
97
  return this.collect({
101
98
  method: 'GET',
102
- endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/textes_applicables'),
103
- params: {},
104
- body: utils_1.Utils.payloadFilter({})
99
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/textes_applicables')
105
100
  });
106
101
  }
107
102
  /**
@@ -112,7 +107,6 @@ class ERPAPI extends core_1.Core {
112
107
  return this.request({
113
108
  method: 'PATCH',
114
109
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/references_exterieures'),
115
- params: {},
116
110
  body: utils_1.Utils.payloadFilter(params)
117
111
  });
118
112
  }
@@ -124,7 +118,6 @@ class ERPAPI extends core_1.Core {
124
118
  return this.request({
125
119
  method: 'POST',
126
120
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/contacts'),
127
- params: {},
128
121
  body: utils_1.Utils.payloadFilter(params)
129
122
  });
130
123
  }
@@ -136,7 +129,6 @@ class ERPAPI extends core_1.Core {
136
129
  return this.request({
137
130
  method: 'POST',
138
131
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/documents'),
139
- params: {},
140
132
  body: utils_1.Utils.payloadFilter(params)
141
133
  });
142
134
  }
@@ -148,7 +140,6 @@ class ERPAPI extends core_1.Core {
148
140
  return this.request({
149
141
  method: 'POST',
150
142
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers'),
151
- params: {},
152
143
  body: utils_1.Utils.payloadFilter(params)
153
144
  });
154
145
  }
@@ -160,7 +151,6 @@ class ERPAPI extends core_1.Core {
160
151
  return this.request({
161
152
  method: 'POST',
162
153
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp'),
163
- params: {},
164
154
  body: utils_1.Utils.payloadFilter(params)
165
155
  });
166
156
  }
@@ -172,7 +162,6 @@ class ERPAPI extends core_1.Core {
172
162
  return this.request({
173
163
  method: 'POST',
174
164
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}'),
175
- params: {},
176
165
  body: utils_1.Utils.payloadFilter(params)
177
166
  });
178
167
  }
@@ -8,7 +8,7 @@ export declare class EnveloppesAPI extends Core {
8
8
  /**
9
9
  * Suppression d'une enveloppe (cette opération n'impacte pas les dossiers liés).
10
10
  */
11
- deleteEnveloppe(enveloppeId: string): void;
11
+ deleteEnveloppe(enveloppeId: string): Promise<AxiosResponse<void>>;
12
12
  /**
13
13
  * Récupération de l'ensemble des données d'une enveloppe.
14
14
  */
@@ -13,11 +13,9 @@ class EnveloppesAPI extends core_1.Core {
13
13
  */
14
14
  deleteEnveloppe(enveloppeId) {
15
15
  const pathVariable = { 'enveloppe_id': (new String(enveloppeId)).toString() };
16
- this.request({
16
+ return this.request({
17
17
  method: 'DELETE',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes/{enveloppe_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes/{enveloppe_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -27,9 +25,7 @@ class EnveloppesAPI extends core_1.Core {
27
25
  const pathVariable = { 'enveloppe_id': (new String(enveloppeId)).toString() };
28
26
  return this.request({
29
27
  method: 'GET',
30
- endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes/{enveloppe_id}'),
31
- params: {},
32
- body: utils_1.Utils.payloadFilter({})
28
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes/{enveloppe_id}')
33
29
  });
34
30
  }
35
31
  /**
@@ -40,8 +36,10 @@ class EnveloppesAPI extends core_1.Core {
40
36
  return this.collect({
41
37
  method: 'GET',
42
38
  endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes'),
43
- params: { 'sort': (new String(sort)).toString(), 'titre': (new String(titre)).toString() },
44
- body: utils_1.Utils.payloadFilter({})
39
+ params: utils_1.Utils.payloadFilter({
40
+ 'sort': sort === undefined ? undefined : (new String(sort)).toString(),
41
+ 'titre': titre === undefined ? undefined : (new String(titre)).toString()
42
+ })
45
43
  });
46
44
  }
47
45
  /**
@@ -52,7 +50,6 @@ class EnveloppesAPI extends core_1.Core {
52
50
  return this.request({
53
51
  method: 'PATCH',
54
52
  endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes/{enveloppe_id}'),
55
- params: {},
56
53
  body: utils_1.Utils.payloadFilter(params)
57
54
  });
58
55
  }
@@ -64,7 +61,6 @@ class EnveloppesAPI extends core_1.Core {
64
61
  return this.request({
65
62
  method: 'POST',
66
63
  endpoint: utils_1.Utils.constructPath(pathVariable, '/enveloppes'),
67
- params: {},
68
64
  body: utils_1.Utils.payloadFilter(params)
69
65
  });
70
66
  }
@@ -9,7 +9,7 @@ export declare class EvenementsAPI extends Core {
9
9
  /**
10
10
  * Suppression d'un événement.
11
11
  */
12
- deleteEvenement(evenementId: string): void;
12
+ deleteEvenement(evenementId: string): Promise<AxiosResponse<void>>;
13
13
  /**
14
14
  * Récupération des détails d'un événement correspondant à l'id donné.
15
15
  */
@@ -13,11 +13,9 @@ class EvenementsAPI extends core_1.Core {
13
13
  */
14
14
  deleteEvenement(evenementId) {
15
15
  const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
16
- this.request({
16
+ return this.request({
17
17
  method: 'DELETE',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -27,9 +25,7 @@ class EvenementsAPI extends core_1.Core {
27
25
  const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
28
26
  return this.request({
29
27
  method: 'GET',
30
- endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}'),
31
- params: {},
32
- body: utils_1.Utils.payloadFilter({})
28
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}')
33
29
  });
34
30
  }
35
31
  /**
@@ -40,8 +36,10 @@ class EvenementsAPI extends core_1.Core {
40
36
  return this.collect({
41
37
  method: 'GET',
42
38
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements'),
43
- params: { 'period': (new String(period)).toString(), 'type': (new String(type)).toString() },
44
- body: utils_1.Utils.payloadFilter({})
39
+ params: utils_1.Utils.payloadFilter({
40
+ 'period': period === undefined ? undefined : (new String(period)).toString(),
41
+ 'type': type === undefined ? undefined : (new String(type)).toString()
42
+ })
45
43
  });
46
44
  }
47
45
  /**
@@ -51,9 +49,7 @@ class EvenementsAPI extends core_1.Core {
51
49
  const pathVariable = { 'evenement_id': (new String(evenementId)).toString() };
52
50
  return this.collect({
53
51
  method: 'GET',
54
- endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs'),
55
- params: {},
56
- body: utils_1.Utils.payloadFilter({})
52
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs')
57
53
  });
58
54
  }
59
55
  /**
@@ -64,7 +60,6 @@ class EvenementsAPI extends core_1.Core {
64
60
  return this.request({
65
61
  method: 'POST',
66
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements'),
67
- params: {},
68
63
  body: utils_1.Utils.payloadFilter(params)
69
64
  });
70
65
  }
@@ -15,9 +15,7 @@ class FeedAPI extends core_1.Core {
15
15
  const pathVariable = {};
16
16
  return this.collect({
17
17
  method: 'GET',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/feed'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/feed')
21
19
  });
22
20
  }
23
21
  /**
@@ -28,7 +26,6 @@ class FeedAPI extends core_1.Core {
28
26
  return this.request({
29
27
  method: 'POST',
30
28
  endpoint: utils_1.Utils.constructPath(pathVariable, '/feed'),
31
- params: {},
32
29
  body: utils_1.Utils.payloadFilter(params)
33
30
  });
34
31
  }
@@ -1,9 +1,10 @@
1
1
  import { Core, MetariscConfig } from "../core";
2
+ import type { AxiosResponse } from "axios";
2
3
  import { Client } from "../client";
3
4
  export declare class HealthcheckAPI extends Core {
4
5
  constructor(config: MetariscConfig, client?: Client);
5
6
  /**
6
7
  * Assurez-vous que tous nos services sont opérationnels en effectuant des appels API vers le point de terminaison de contrôle d'intégrité. Ce point de terminaison exécute des contrôles d'intégrité et renvoie un état qui vous indique si le service Metarisc est fonctionnel ou non.
7
8
  */
8
- verify(): void;
9
+ verify(): Promise<AxiosResponse<void>>;
9
10
  }
@@ -13,11 +13,9 @@ class HealthcheckAPI extends core_1.Core {
13
13
  */
14
14
  verify() {
15
15
  const pathVariable = {};
16
- this.request({
16
+ return this.request({
17
17
  method: 'GET',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/healthcheck'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/healthcheck')
21
19
  });
22
20
  }
23
21
  }
package/lib/api/MoiAPI.js CHANGED
@@ -15,9 +15,7 @@ class MoiAPI extends core_1.Core {
15
15
  const pathVariable = {};
16
16
  return this.request({
17
17
  method: 'GET',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/@moi'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/@moi')
21
19
  });
22
20
  }
23
21
  }
@@ -8,7 +8,7 @@ export declare class NotificationsAPI extends Core {
8
8
  /**
9
9
  * Suppression d'une notification correspondante à l'id donné.
10
10
  */
11
- deleteNotification(notificationId: string): void;
11
+ deleteNotification(notificationId: string): Promise<AxiosResponse<void>>;
12
12
  /**
13
13
  * Récupération des détails d'une notification correspondante à l'id donné.
14
14
  */
@@ -13,11 +13,9 @@ class NotificationsAPI extends core_1.Core {
13
13
  */
14
14
  deleteNotification(notificationId) {
15
15
  const pathVariable = { 'notification_id': (new String(notificationId)).toString() };
16
- this.request({
16
+ return this.request({
17
17
  method: 'DELETE',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -27,9 +25,7 @@ class NotificationsAPI extends core_1.Core {
27
25
  const pathVariable = { 'notification_id': (new String(notificationId)).toString() };
28
26
  return this.request({
29
27
  method: 'GET',
30
- endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}'),
31
- params: {},
32
- body: utils_1.Utils.payloadFilter({})
28
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}')
33
29
  });
34
30
  }
35
31
  /**
@@ -39,9 +35,7 @@ class NotificationsAPI extends core_1.Core {
39
35
  const pathVariable = {};
40
36
  return this.collect({
41
37
  method: 'GET',
42
- endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications'),
43
- params: {},
44
- body: utils_1.Utils.payloadFilter({})
38
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications')
45
39
  });
46
40
  }
47
41
  /**
@@ -51,9 +45,7 @@ class NotificationsAPI extends core_1.Core {
51
45
  const pathVariable = { 'notification_id': (new String(notificationId)).toString() };
52
46
  return this.request({
53
47
  method: 'POST',
54
- endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}/marquer_comme_lue'),
55
- params: {},
56
- body: utils_1.Utils.payloadFilter({})
48
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications/{notification_id}/marquer_comme_lue')
57
49
  });
58
50
  }
59
51
  /**
@@ -64,7 +56,6 @@ class NotificationsAPI extends core_1.Core {
64
56
  return this.request({
65
57
  method: 'POST',
66
58
  endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications'),
67
- params: {},
68
59
  body: utils_1.Utils.payloadFilter(params)
69
60
  });
70
61
  }
@@ -16,7 +16,6 @@ class OrdresDuJourAPI extends core_1.Core {
16
16
  return this.request({
17
17
  method: 'POST',
18
18
  endpoint: utils_1.Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}'),
19
- params: {},
20
19
  body: utils_1.Utils.payloadFilter(params)
21
20
  });
22
21
  }
@@ -15,9 +15,7 @@ class OrganisationsAPI extends core_1.Core {
15
15
  const pathVariable = { 'org_id': (new String(orgId)).toString() };
16
16
  return this.request({
17
17
  method: 'GET',
18
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}'),
19
- params: {},
20
- body: utils_1.Utils.payloadFilter({})
18
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}')
21
19
  });
22
20
  }
23
21
  /**
@@ -27,9 +25,7 @@ class OrganisationsAPI extends core_1.Core {
27
25
  const pathVariable = { 'org_id': (new String(orgId)).toString() };
28
26
  return this.request({
29
27
  method: 'GET',
30
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/preferences'),
31
- params: {},
32
- body: utils_1.Utils.payloadFilter({})
28
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/preferences')
33
29
  });
34
30
  }
35
31
  /**
@@ -39,9 +35,7 @@ class OrganisationsAPI extends core_1.Core {
39
35
  const pathVariable = { 'org_id': (new String(orgId)).toString() };
40
36
  return this.request({
41
37
  method: 'GET',
42
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci'),
43
- params: {},
44
- body: utils_1.Utils.payloadFilter({})
38
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci')
45
39
  });
46
40
  }
47
41
  /**
@@ -51,9 +45,7 @@ class OrganisationsAPI extends core_1.Core {
51
45
  const pathVariable = { 'org_id': (new String(orgId)).toString() };
52
46
  return this.collect({
53
47
  method: 'GET',
54
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites'),
55
- params: {},
56
- body: utils_1.Utils.payloadFilter({})
48
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites')
57
49
  });
58
50
  }
59
51
  /**
@@ -63,9 +55,7 @@ class OrganisationsAPI extends core_1.Core {
63
55
  const pathVariable = { 'org_id': (new String(orgId)).toString() };
64
56
  return this.collect({
65
57
  method: 'GET',
66
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
67
- params: {},
68
- body: utils_1.Utils.payloadFilter({})
58
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices')
69
59
  });
70
60
  }
71
61
  /**
@@ -76,8 +66,9 @@ class OrganisationsAPI extends core_1.Core {
76
66
  return this.collect({
77
67
  method: 'GET',
78
68
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
79
- params: { 'last_name': (new String(lastName)).toString() },
80
- body: utils_1.Utils.payloadFilter({})
69
+ params: utils_1.Utils.payloadFilter({
70
+ 'last_name': lastName === undefined ? undefined : (new String(lastName)).toString()
71
+ })
81
72
  });
82
73
  }
83
74
  /**
@@ -87,9 +78,7 @@ class OrganisationsAPI extends core_1.Core {
87
78
  const pathVariable = {};
88
79
  return this.collect({
89
80
  method: 'GET',
90
- endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations'),
91
- params: {},
92
- body: utils_1.Utils.payloadFilter({})
81
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations')
93
82
  });
94
83
  }
95
84
  /**
@@ -100,7 +89,6 @@ class OrganisationsAPI extends core_1.Core {
100
89
  return this.request({
101
90
  method: 'POST',
102
91
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
103
- params: {},
104
92
  body: utils_1.Utils.payloadFilter(params)
105
93
  });
106
94
  }
@@ -112,7 +100,6 @@ class OrganisationsAPI extends core_1.Core {
112
100
  return this.request({
113
101
  method: 'POST',
114
102
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
115
- params: {},
116
103
  body: utils_1.Utils.payloadFilter(params)
117
104
  });
118
105
  }
@@ -124,7 +111,6 @@ class OrganisationsAPI extends core_1.Core {
124
111
  return this.request({
125
112
  method: 'POST',
126
113
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/preferences'),
127
- params: {},
128
114
  body: utils_1.Utils.payloadFilter(params)
129
115
  });
130
116
  }
@@ -136,7 +122,6 @@ class OrganisationsAPI extends core_1.Core {
136
122
  return this.request({
137
123
  method: 'POST',
138
124
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/regles-deci'),
139
- params: {},
140
125
  body: utils_1.Utils.payloadFilter(params)
141
126
  });
142
127
  }