@metarisc/metarisc-js 0.0.1-alpha.70 → 0.0.1-alpha.72

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 (55) hide show
  1. package/lib/api/AnomaliesAPI.d.ts +1 -1
  2. package/lib/api/AnomaliesAPI.js +1 -2
  3. package/lib/api/CommissionsAPI.d.ts +4 -4
  4. package/lib/api/CommissionsAPI.js +3 -6
  5. package/lib/api/CommissionsMembresAPI.d.ts +1 -1
  6. package/lib/api/CommissionsMembresAPI.js +1 -2
  7. package/lib/api/ContactsAPI.d.ts +4 -4
  8. package/lib/api/ContactsAPI.js +1 -2
  9. package/lib/api/ControlesPeiAPI.d.ts +3 -3
  10. package/lib/api/DatesPassageCommissionAPI.d.ts +2 -2
  11. package/lib/api/DatesPassageCommissionAPI.js +1 -2
  12. package/lib/api/DocumentsAPI.js +1 -2
  13. package/lib/api/DossiersAPI.d.ts +5 -5
  14. package/lib/api/DossiersAPI.js +5 -10
  15. package/lib/api/ERPAPI.d.ts +6 -6
  16. package/lib/api/ERPAPI.js +5 -10
  17. package/lib/api/EvenementsAPI.d.ts +2 -2
  18. package/lib/api/EvenementsAPI.js +2 -4
  19. package/lib/api/FeedAPI.js +1 -2
  20. package/lib/api/NotificationsAPI.d.ts +1 -1
  21. package/lib/api/NotificationsAPI.js +1 -2
  22. package/lib/api/OrdresDuJourAPI.d.ts +1 -1
  23. package/lib/api/OrganisationsAPI.d.ts +16 -8
  24. package/lib/api/OrganisationsAPI.js +16 -8
  25. package/lib/api/PEIAPI.d.ts +9 -9
  26. package/lib/api/PEIAPI.js +6 -12
  27. package/lib/api/PrescriptionsAPI.d.ts +2 -2
  28. package/lib/api/PrescriptionsAPI.js +2 -4
  29. package/lib/api/TournesDECIAPI.d.ts +13 -13
  30. package/lib/api/TournesDECIAPI.js +2 -4
  31. package/lib/api/UtilisateursAPI.js +3 -6
  32. package/lib/api/WorkflowsAPI.d.ts +16 -16
  33. package/lib/api/WorkflowsAPI.js +1 -2
  34. package/lib/utils.js +2 -6
  35. package/package.json +1 -1
  36. package/src/api/AnomaliesAPI.ts +2 -3
  37. package/src/api/CommissionsAPI.ts +6 -9
  38. package/src/api/CommissionsMembresAPI.ts +2 -3
  39. package/src/api/ContactsAPI.ts +2 -3
  40. package/src/api/ControlesPeiAPI.ts +1 -1
  41. package/src/api/DatesPassageCommissionAPI.ts +2 -3
  42. package/src/api/DocumentsAPI.ts +1 -2
  43. package/src/api/DossiersAPI.ts +7 -12
  44. package/src/api/ERPAPI.ts +8 -13
  45. package/src/api/EvenementsAPI.ts +3 -5
  46. package/src/api/FeedAPI.ts +1 -2
  47. package/src/api/NotificationsAPI.ts +2 -3
  48. package/src/api/OrdresDuJourAPI.ts +1 -1
  49. package/src/api/OrganisationsAPI.ts +20 -10
  50. package/src/api/PEIAPI.ts +9 -15
  51. package/src/api/PrescriptionsAPI.ts +4 -6
  52. package/src/api/TournesDECIAPI.ts +5 -7
  53. package/src/api/UtilisateursAPI.ts +3 -6
  54. package/src/api/WorkflowsAPI.ts +3 -4
  55. package/src/utils.ts +7 -6
@@ -23,6 +23,6 @@ export declare class AnomaliesAPI extends Core {
23
23
  postAnomalie(params: {
24
24
  code: number;
25
25
  texte: string;
26
- indiceDeGravite: number;
26
+ indice_de_gravite: number;
27
27
  }): Promise<AxiosResponse<AnomalieDECI>>;
28
28
  }
@@ -39,8 +39,7 @@ class AnomaliesAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'sort': sort, 'texte': texte, 'code': code },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'sort': sort, 'texte': texte, 'code': code }
44
43
  });
45
44
  }
46
45
  /**
@@ -34,14 +34,14 @@ export declare class CommissionsAPI extends Core {
34
34
  postCommission(params: {
35
35
  type: string;
36
36
  libelle: string;
37
- presidenceId?: string;
37
+ presidence_id?: string;
38
38
  }): Promise<AxiosResponse<Commission>>;
39
39
  /**
40
40
  * Ajout d'une date de passage en commission.
41
41
  */
42
42
  postCommissionDate(commissionId: string, params: {
43
- dateDebut: Date;
44
- dateFin: Date;
43
+ date_debut: Date;
44
+ date_fin: Date;
45
45
  type: string;
46
46
  libelle: string;
47
47
  }): Promise<AxiosResponse<PassageCommission>>;
@@ -50,7 +50,7 @@ export declare class CommissionsAPI extends Core {
50
50
  */
51
51
  postMembresCommission(commissionId: string, params: {
52
52
  titre: string;
53
- presenceObligatoire: boolean;
53
+ presence_obligatoire: boolean;
54
54
  }): Promise<AxiosResponse<CommissionMembre>>;
55
55
  /**
56
56
  * Mise à jour des préférences de la commission.
@@ -39,8 +39,7 @@ class CommissionsAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
43
  });
45
44
  }
46
45
  /**
@@ -51,8 +50,7 @@ class CommissionsAPI extends core_1.Core {
51
50
  return this.collect({
52
51
  method: 'GET',
53
52
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
54
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
55
- body: utils_1.Utils.payloadFilter({})
53
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
56
54
  });
57
55
  }
58
56
  /**
@@ -63,8 +61,7 @@ class CommissionsAPI extends core_1.Core {
63
61
  return this.collect({
64
62
  method: 'GET',
65
63
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
64
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
65
  });
69
66
  }
70
67
  /**
@@ -22,6 +22,6 @@ export declare class CommissionsMembresAPI extends Core {
22
22
  */
23
23
  updateMembre(membreId: string, params: {
24
24
  titre?: string;
25
- presenceObligatoire?: boolean;
25
+ presence_obligatoire?: boolean;
26
26
  }): Promise<AxiosResponse<CommissionMembre>>;
27
27
  }
@@ -39,8 +39,7 @@ class CommissionsMembresAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
43
  });
45
44
  }
46
45
  /**
@@ -24,11 +24,11 @@ export declare class ContactsAPI extends Core {
24
24
  nom?: string;
25
25
  prenom?: string;
26
26
  fonction?: string;
27
- telephoneFixe?: string;
28
- telephonePortable?: string;
29
- telephoneFax?: string;
27
+ telephone_fixe?: string;
28
+ telephone_portable?: string;
29
+ telephone_fax?: string;
30
30
  adresse?: string;
31
- siteWebUrl?: string;
31
+ site_web_url?: string;
32
32
  civilite?: string;
33
33
  societe?: string;
34
34
  email?: string;
@@ -39,8 +39,7 @@ class ContactsAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
43
  });
45
44
  }
46
45
  /**
@@ -16,12 +16,12 @@ export declare class ControlesPeiAPI extends Core {
16
16
  * Mise à jour du PEI contrôlé.
17
17
  */
18
18
  updateControle(peiId: string, params: {
19
- dateDuControle?: Date;
20
- listeAnomalies?: {
19
+ date_du_controle?: Date;
20
+ liste_anomalies?: {
21
21
  code?: number;
22
22
  a_lever?: boolean;
23
23
  }[];
24
- essaisEnginUtilise?: string;
24
+ essais_engin_utilise?: string;
25
25
  ordre?: number;
26
26
  }): Promise<AxiosResponse<TourneeDeciPei>>;
27
27
  }
@@ -18,7 +18,7 @@ export declare class DatesPassageCommissionAPI extends Core {
18
18
  * Ajout d'un dossier à l'ordre du jour d'un passage en commission.
19
19
  */
20
20
  postCommissionDateDossier(dateId: string, params: {
21
- dossierId: string;
22
- dateDePassage?: Date;
21
+ dossier_id: string;
22
+ date_de_passage?: Date;
23
23
  }): Promise<AxiosResponse<PassageCommissionDossier>>;
24
24
  }
@@ -27,8 +27,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
27
27
  return this.collect({
28
28
  method: 'GET',
29
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour'),
30
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
31
- body: utils_1.Utils.payloadFilter({})
30
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
32
31
  });
33
32
  }
34
33
  /**
@@ -39,8 +39,7 @@ class DocumentsAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/documents'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
43
  });
45
44
  }
46
45
  /**
@@ -40,11 +40,11 @@ export declare class DossiersAPI extends Core {
40
40
  nom?: string;
41
41
  prenom?: string;
42
42
  fonction?: string;
43
- telephoneFixe?: string;
44
- telephonePortable?: string;
45
- telephoneFax?: string;
43
+ telephone_fixe?: string;
44
+ telephone_portable?: string;
45
+ telephone_fax?: string;
46
46
  adresse?: string;
47
- siteWebUrl?: string;
47
+ site_web_url?: string;
48
48
  civilite?: string;
49
49
  societe?: string;
50
50
  email?: string;
@@ -55,7 +55,7 @@ export declare class DossiersAPI extends Core {
55
55
  */
56
56
  postDocumentsDossier(dossierId: string, params: {
57
57
  url: string;
58
- estSensible: boolean;
58
+ est_sensible: boolean;
59
59
  nom?: string;
60
60
  description?: string;
61
61
  type?: string;
@@ -27,8 +27,7 @@ class DossiersAPI extends core_1.Core {
27
27
  return this.collect({
28
28
  method: 'GET',
29
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts'),
30
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
31
- body: utils_1.Utils.payloadFilter({})
30
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
32
31
  });
33
32
  }
34
33
  /**
@@ -39,8 +38,7 @@ class DossiersAPI extends core_1.Core {
39
38
  return this.collect({
40
39
  method: 'GET',
41
40
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
41
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
42
  });
45
43
  }
46
44
  /**
@@ -51,8 +49,7 @@ class DossiersAPI extends core_1.Core {
51
49
  return this.collect({
52
50
  method: 'GET',
53
51
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
54
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
55
- body: utils_1.Utils.payloadFilter({})
52
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
56
53
  });
57
54
  }
58
55
  /**
@@ -63,8 +60,7 @@ class DossiersAPI extends core_1.Core {
63
60
  return this.collect({
64
61
  method: 'GET',
65
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
63
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
64
  });
69
65
  }
70
66
  /**
@@ -75,8 +71,7 @@ class DossiersAPI extends core_1.Core {
75
71
  return this.collect({
76
72
  method: 'GET',
77
73
  endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows'),
78
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
79
- body: utils_1.Utils.payloadFilter({})
74
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
80
75
  });
81
76
  }
82
77
  /**
@@ -40,11 +40,11 @@ export declare class ERPAPI extends Core {
40
40
  nom?: string;
41
41
  prenom?: string;
42
42
  fonction?: string;
43
- telephoneFixe?: string;
44
- telephonePortable?: string;
45
- telephoneFax?: string;
43
+ telephone_fixe?: string;
44
+ telephone_portable?: string;
45
+ telephone_fax?: string;
46
46
  adresse?: string;
47
- siteWebUrl?: string;
47
+ site_web_url?: string;
48
48
  civilite?: string;
49
49
  societe?: string;
50
50
  email?: string;
@@ -55,7 +55,7 @@ export declare class ERPAPI extends Core {
55
55
  */
56
56
  postDocumentsErp(erpId: string, params: {
57
57
  url: string;
58
- estSensible: boolean;
58
+ est_sensible: boolean;
59
59
  nom?: string;
60
60
  description?: string;
61
61
  type?: string;
@@ -83,7 +83,7 @@ export declare class ERPAPI extends Core {
83
83
  localisation_operationnelle?: string;
84
84
  complement?: string;
85
85
  };
86
- referencesExterieures?: {
86
+ references_exterieures?: {
87
87
  titre?: string;
88
88
  valeur?: string;
89
89
  }[];
package/lib/api/ERPAPI.js CHANGED
@@ -27,8 +27,7 @@ class ERPAPI extends core_1.Core {
27
27
  return this.collect({
28
28
  method: 'GET',
29
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/contacts'),
30
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
31
- body: utils_1.Utils.payloadFilter({})
30
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
32
31
  });
33
32
  }
34
33
  /**
@@ -39,8 +38,7 @@ class ERPAPI extends core_1.Core {
39
38
  return this.collect({
40
39
  method: 'GET',
41
40
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/documents'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
41
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
42
  });
45
43
  }
46
44
  /**
@@ -51,8 +49,7 @@ class ERPAPI extends core_1.Core {
51
49
  return this.collect({
52
50
  method: 'GET',
53
51
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/dossiers'),
54
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
55
- body: utils_1.Utils.payloadFilter({})
52
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
56
53
  });
57
54
  }
58
55
  /**
@@ -63,8 +60,7 @@ class ERPAPI extends core_1.Core {
63
60
  return this.collect({
64
61
  method: 'GET',
65
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
63
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
64
  });
69
65
  }
70
66
  /**
@@ -75,8 +71,7 @@ class ERPAPI extends core_1.Core {
75
71
  return this.collect({
76
72
  method: 'GET',
77
73
  endpoint: utils_1.Utils.constructPath(pathVariable, '/erp/{erp_id}/historique'),
78
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
79
- body: utils_1.Utils.payloadFilter({})
74
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
80
75
  });
81
76
  }
82
77
  /**
@@ -28,8 +28,8 @@ export declare class EvenementsAPI extends Core {
28
28
  postEvenement(params: {
29
29
  title: string;
30
30
  type: string;
31
- dateDebut: Date;
32
- dateFin: Date;
31
+ date_debut: Date;
32
+ date_fin: Date;
33
33
  description?: string;
34
34
  }): Promise<AxiosResponse<Evenement>>;
35
35
  }
@@ -39,8 +39,7 @@ class EvenementsAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'period': period, 'type': type },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'period': period, 'type': type }
44
43
  });
45
44
  }
46
45
  /**
@@ -51,8 +50,7 @@ class EvenementsAPI extends core_1.Core {
51
50
  return this.collect({
52
51
  method: 'GET',
53
52
  endpoint: utils_1.Utils.constructPath(pathVariable, '/evenements/{evenement_id}/utilisateurs'),
54
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
55
- body: utils_1.Utils.payloadFilter({})
53
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
56
54
  });
57
55
  }
58
56
  /**
@@ -15,8 +15,7 @@ class FeedAPI extends core_1.Core {
15
15
  return this.collect({
16
16
  method: 'GET',
17
17
  endpoint: utils_1.Utils.constructPath(pathVariable, '/feed'),
18
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
19
- body: utils_1.Utils.payloadFilter({})
18
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
20
19
  });
21
20
  }
22
21
  /**
@@ -28,7 +28,7 @@ export declare class NotificationsAPI extends Core {
28
28
  title: string;
29
29
  message: string;
30
30
  type: string;
31
- utilisateurId: string;
31
+ utilisateur_id: string;
32
32
  contexte?: {
33
33
  [key: string]: string;
34
34
  };
@@ -39,8 +39,7 @@ class NotificationsAPI extends core_1.Core {
39
39
  return this.collect({
40
40
  method: 'GET',
41
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/notifications'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
42
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
43
  });
45
44
  }
46
45
  /**
@@ -11,6 +11,6 @@ export declare class OrdresDuJourAPI extends Core {
11
11
  avis?: {
12
12
  type?: string;
13
13
  };
14
- dateDePassage?: Date;
14
+ date_de_passage?: Date;
15
15
  }): Promise<AxiosResponse<PassageCommissionDossier>>;
16
16
  }
@@ -50,21 +50,29 @@ export declare class OrganisationsAPI extends Core {
50
50
  * Ajout d'un utilisateur comme membre dans une organisation.
51
51
  */
52
52
  addOrganisationMembres(orgId: string, params: {
53
- utilisateurId: string;
53
+ utilisateur_id: string;
54
54
  role: string;
55
55
  }): Promise<AxiosResponse<OrganisationMembre>>;
56
+ /**
57
+ * Mise à jour des préférences de l'organisation.
58
+ */
59
+ updateOrganisationPreferences(orgId: string, params: {
60
+ platau_id_acteur?: string;
61
+ platau_active?: boolean;
62
+ s3_global_endpoint?: string;
63
+ }): Promise<AxiosResponse<OrganisationPreferences>>;
56
64
  /**
57
65
  * Mise à jour de l'ensemble des règles utilisées pour le calcul de la conformité et de la performance DECI.
58
66
  */
59
67
  postOrganisationReglesDeci(orgId: string, params: {
60
- pibiConformiteMatriceSeuilPesee1barParNature?: {
68
+ pibi_conformite_matrice_seuil_pesee_1bar_par_nature?: {
61
69
  [key: string]: number;
62
70
  };
63
- pibiPerformanceNaturesPerformanceRestreinte?: {}[];
64
- pibiPerformanceNaturesAReformer?: {}[];
65
- pibiPerformanceSeuilPesee1bar?: number;
66
- pibiConformiteSeuilSurpression?: number;
67
- pibiConformiteMatriceSeuilPesee1barParDefaut?: number;
68
- penaConformiteSeuilVolumeCiterne?: number;
71
+ pibi_performance_natures_performance_restreinte?: {}[];
72
+ pibi_performance_natures_a_reformer?: {}[];
73
+ pibi_performance_seuil_pesee_1bar?: number;
74
+ pibi_conformite_seuil_surpression?: number;
75
+ pibi_conformite_matrice_seuil_pesee_1bar_par_defaut?: number;
76
+ pena_conformite_seuil_volume_citerne?: number;
69
77
  }): Promise<AxiosResponse<ReglesDeci>>;
70
78
  }
@@ -51,8 +51,7 @@ class OrganisationsAPI extends core_1.Core {
51
51
  return this.collect({
52
52
  method: 'GET',
53
53
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/dossiers-workflows-suites'),
54
- params: {},
55
- body: utils_1.Utils.payloadFilter({})
54
+ params: {}
56
55
  });
57
56
  }
58
57
  /**
@@ -63,8 +62,7 @@ class OrganisationsAPI extends core_1.Core {
63
62
  return this.collect({
64
63
  method: 'GET',
65
64
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/geoservices'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
65
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
66
  });
69
67
  }
70
68
  /**
@@ -75,8 +73,7 @@ class OrganisationsAPI extends core_1.Core {
75
73
  return this.collect({
76
74
  method: 'GET',
77
75
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/membres'),
78
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
79
- body: utils_1.Utils.payloadFilter({})
76
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
80
77
  });
81
78
  }
82
79
  /**
@@ -87,8 +84,7 @@ class OrganisationsAPI extends core_1.Core {
87
84
  return this.collect({
88
85
  method: 'GET',
89
86
  endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations'),
90
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
91
- body: utils_1.Utils.payloadFilter({})
87
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
92
88
  });
93
89
  }
94
90
  /**
@@ -115,6 +111,18 @@ class OrganisationsAPI extends core_1.Core {
115
111
  body: utils_1.Utils.payloadFilter(params)
116
112
  });
117
113
  }
114
+ /**
115
+ * Mise à jour des préférences de l'organisation.
116
+ */
117
+ async updateOrganisationPreferences(orgId, params) {
118
+ const pathVariable = { 'org_id': (new String(orgId)).toString() };
119
+ return this.request({
120
+ method: 'POST',
121
+ endpoint: utils_1.Utils.constructPath(pathVariable, '/organisations/{org_id}/preferences'),
122
+ params: {},
123
+ body: utils_1.Utils.payloadFilter(params)
124
+ });
125
+ }
118
126
  /**
119
127
  * Mise à jour de l'ensemble des règles utilisées pour le calcul de la conformité et de la performance DECI.
120
128
  */
@@ -45,11 +45,11 @@ export declare class PEIAPI extends Core {
45
45
  nom?: string;
46
46
  prenom?: string;
47
47
  fonction?: string;
48
- telephoneFixe?: string;
49
- telephonePortable?: string;
50
- telephoneFax?: string;
48
+ telephone_fixe?: string;
49
+ telephone_portable?: string;
50
+ telephone_fax?: string;
51
51
  adresse?: string;
52
- siteWebUrl?: string;
52
+ site_web_url?: string;
53
53
  civilite?: string;
54
54
  societe?: string;
55
55
  email?: string;
@@ -60,7 +60,7 @@ export declare class PEIAPI extends Core {
60
60
  */
61
61
  postDocumentsPei(peiId: string, params: {
62
62
  url: string;
63
- estSensible: boolean;
63
+ est_sensible: boolean;
64
64
  nom?: string;
65
65
  description?: string;
66
66
  type?: string;
@@ -76,7 +76,7 @@ export declare class PEIAPI extends Core {
76
76
  * Ajout d'un PEI.
77
77
  */
78
78
  postPei(params: {
79
- descriptifTechnique: {
79
+ descriptif_technique: {
80
80
  type: string;
81
81
  domanialite?: string;
82
82
  observations_generales?: string;
@@ -101,12 +101,12 @@ export declare class PEIAPI extends Core {
101
101
  localisation_operationnelle?: string;
102
102
  complement?: string;
103
103
  };
104
- referencesExterieures?: {
104
+ references_exterieures?: {
105
105
  titre?: string;
106
106
  valeur?: string;
107
107
  }[];
108
108
  numero?: string;
109
- numeroCompteur?: string;
110
- numeroSerieAppareil?: string;
109
+ numero_compteur?: string;
110
+ numero_serie_appareil?: string;
111
111
  }): Promise<AxiosResponse<PEI>>;
112
112
  }
package/lib/api/PEIAPI.js CHANGED
@@ -27,8 +27,7 @@ class PEIAPI extends core_1.Core {
27
27
  return this.collect({
28
28
  method: 'GET',
29
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/anomalies'),
30
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
31
- body: utils_1.Utils.payloadFilter({})
30
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
32
31
  });
33
32
  }
34
33
  /**
@@ -39,8 +38,7 @@ class PEIAPI extends core_1.Core {
39
38
  return this.collect({
40
39
  method: 'GET',
41
40
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/contacts'),
42
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
43
- body: utils_1.Utils.payloadFilter({})
41
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
44
42
  });
45
43
  }
46
44
  /**
@@ -51,8 +49,7 @@ class PEIAPI extends core_1.Core {
51
49
  return this.collect({
52
50
  method: 'GET',
53
51
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/documents'),
54
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
55
- body: utils_1.Utils.payloadFilter({})
52
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
56
53
  });
57
54
  }
58
55
  /**
@@ -63,8 +60,7 @@ class PEIAPI extends core_1.Core {
63
60
  return this.collect({
64
61
  method: 'GET',
65
62
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/dossiers'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
63
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
64
  });
69
65
  }
70
66
  /**
@@ -75,8 +71,7 @@ class PEIAPI extends core_1.Core {
75
71
  return this.collect({
76
72
  method: 'GET',
77
73
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei/{pei_id}/historique'),
78
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
79
- body: utils_1.Utils.payloadFilter({})
74
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
80
75
  });
81
76
  }
82
77
  /**
@@ -87,8 +82,7 @@ class PEIAPI extends core_1.Core {
87
82
  return this.collect({
88
83
  method: 'GET',
89
84
  endpoint: utils_1.Utils.constructPath(pathVariable, '/pei'),
90
- params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'geojson': geojson },
91
- body: utils_1.Utils.payloadFilter({})
85
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'geojson': geojson }
92
86
  });
93
87
  }
94
88
  /**
@@ -36,7 +36,7 @@ export declare class PrescriptionsAPI extends Core {
36
36
  postPrescription(params: {
37
37
  contenu: string;
38
38
  type: string;
39
- supportsReglementairesId?: {}[];
39
+ supports_reglementaires_id?: {}[];
40
40
  }): Promise<AxiosResponse<Prescription>>;
41
41
  /**
42
42
  * Ajouter un support réglementaire.
@@ -47,6 +47,6 @@ export declare class PrescriptionsAPI extends Core {
47
47
  titre: string;
48
48
  etat: string;
49
49
  reference: string;
50
- legifranceCid?: string;
50
+ legifrance_cid?: string;
51
51
  }): Promise<AxiosResponse<PrescriptionSupportReglementaire>>;
52
52
  }
@@ -63,8 +63,7 @@ class PrescriptionsAPI extends core_1.Core {
63
63
  return this.collect({
64
64
  method: 'GET',
65
65
  endpoint: utils_1.Utils.constructPath(pathVariable, '/prescriptions'),
66
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
- body: utils_1.Utils.payloadFilter({})
66
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
68
67
  });
69
68
  }
70
69
  /**
@@ -75,8 +74,7 @@ class PrescriptionsAPI extends core_1.Core {
75
74
  return this.collect({
76
75
  method: 'GET',
77
76
  endpoint: utils_1.Utils.constructPath(pathVariable, '/supports_reglementaires'),
78
- params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
79
- body: utils_1.Utils.payloadFilter({})
77
+ params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
80
78
  });
81
79
  }
82
80
  /**