@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.
- package/lib/api/AnomaliesAPI.d.ts +1 -1
- package/lib/api/AnomaliesAPI.js +1 -2
- package/lib/api/CommissionsAPI.d.ts +4 -4
- package/lib/api/CommissionsAPI.js +3 -6
- package/lib/api/CommissionsMembresAPI.d.ts +1 -1
- package/lib/api/CommissionsMembresAPI.js +1 -2
- package/lib/api/ContactsAPI.d.ts +4 -4
- package/lib/api/ContactsAPI.js +1 -2
- package/lib/api/ControlesPeiAPI.d.ts +3 -3
- package/lib/api/DatesPassageCommissionAPI.d.ts +2 -2
- package/lib/api/DatesPassageCommissionAPI.js +1 -2
- package/lib/api/DocumentsAPI.js +1 -2
- package/lib/api/DossiersAPI.d.ts +5 -5
- package/lib/api/DossiersAPI.js +5 -10
- package/lib/api/ERPAPI.d.ts +6 -6
- package/lib/api/ERPAPI.js +5 -10
- package/lib/api/EvenementsAPI.d.ts +2 -2
- package/lib/api/EvenementsAPI.js +2 -4
- package/lib/api/FeedAPI.js +1 -2
- package/lib/api/NotificationsAPI.d.ts +1 -1
- package/lib/api/NotificationsAPI.js +1 -2
- package/lib/api/OrdresDuJourAPI.d.ts +1 -1
- package/lib/api/OrganisationsAPI.d.ts +16 -8
- package/lib/api/OrganisationsAPI.js +16 -8
- package/lib/api/PEIAPI.d.ts +9 -9
- package/lib/api/PEIAPI.js +6 -12
- package/lib/api/PrescriptionsAPI.d.ts +2 -2
- package/lib/api/PrescriptionsAPI.js +2 -4
- package/lib/api/TournesDECIAPI.d.ts +13 -13
- package/lib/api/TournesDECIAPI.js +2 -4
- package/lib/api/UtilisateursAPI.js +3 -6
- package/lib/api/WorkflowsAPI.d.ts +16 -16
- package/lib/api/WorkflowsAPI.js +1 -2
- package/lib/utils.js +2 -6
- package/package.json +1 -1
- package/src/api/AnomaliesAPI.ts +2 -3
- package/src/api/CommissionsAPI.ts +6 -9
- package/src/api/CommissionsMembresAPI.ts +2 -3
- package/src/api/ContactsAPI.ts +2 -3
- package/src/api/ControlesPeiAPI.ts +1 -1
- package/src/api/DatesPassageCommissionAPI.ts +2 -3
- package/src/api/DocumentsAPI.ts +1 -2
- package/src/api/DossiersAPI.ts +7 -12
- package/src/api/ERPAPI.ts +8 -13
- package/src/api/EvenementsAPI.ts +3 -5
- package/src/api/FeedAPI.ts +1 -2
- package/src/api/NotificationsAPI.ts +2 -3
- package/src/api/OrdresDuJourAPI.ts +1 -1
- package/src/api/OrganisationsAPI.ts +20 -10
- package/src/api/PEIAPI.ts +9 -15
- package/src/api/PrescriptionsAPI.ts +4 -6
- package/src/api/TournesDECIAPI.ts +5 -7
- package/src/api/UtilisateursAPI.ts +3 -6
- package/src/api/WorkflowsAPI.ts +3 -4
- package/src/utils.ts +7 -6
package/lib/api/AnomaliesAPI.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -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
|
/**
|
package/lib/api/ContactsAPI.d.ts
CHANGED
|
@@ -24,11 +24,11 @@ export declare class ContactsAPI extends Core {
|
|
|
24
24
|
nom?: string;
|
|
25
25
|
prenom?: string;
|
|
26
26
|
fonction?: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
telephone_fixe?: string;
|
|
28
|
+
telephone_portable?: string;
|
|
29
|
+
telephone_fax?: string;
|
|
30
30
|
adresse?: string;
|
|
31
|
-
|
|
31
|
+
site_web_url?: string;
|
|
32
32
|
civilite?: string;
|
|
33
33
|
societe?: string;
|
|
34
34
|
email?: string;
|
package/lib/api/ContactsAPI.js
CHANGED
|
@@ -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
|
-
|
|
20
|
-
|
|
19
|
+
date_du_controle?: Date;
|
|
20
|
+
liste_anomalies?: {
|
|
21
21
|
code?: number;
|
|
22
22
|
a_lever?: boolean;
|
|
23
23
|
}[];
|
|
24
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
/**
|
package/lib/api/DocumentsAPI.js
CHANGED
|
@@ -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
|
/**
|
package/lib/api/DossiersAPI.d.ts
CHANGED
|
@@ -40,11 +40,11 @@ export declare class DossiersAPI extends Core {
|
|
|
40
40
|
nom?: string;
|
|
41
41
|
prenom?: string;
|
|
42
42
|
fonction?: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
telephone_fixe?: string;
|
|
44
|
+
telephone_portable?: string;
|
|
45
|
+
telephone_fax?: string;
|
|
46
46
|
adresse?: string;
|
|
47
|
-
|
|
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
|
-
|
|
58
|
+
est_sensible: boolean;
|
|
59
59
|
nom?: string;
|
|
60
60
|
description?: string;
|
|
61
61
|
type?: string;
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -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
|
/**
|
package/lib/api/ERPAPI.d.ts
CHANGED
|
@@ -40,11 +40,11 @@ export declare class ERPAPI extends Core {
|
|
|
40
40
|
nom?: string;
|
|
41
41
|
prenom?: string;
|
|
42
42
|
fonction?: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
telephone_fixe?: string;
|
|
44
|
+
telephone_portable?: string;
|
|
45
|
+
telephone_fax?: string;
|
|
46
46
|
adresse?: string;
|
|
47
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
31
|
+
date_debut: Date;
|
|
32
|
+
date_fin: Date;
|
|
33
33
|
description?: string;
|
|
34
34
|
}): Promise<AxiosResponse<Evenement>>;
|
|
35
35
|
}
|
package/lib/api/EvenementsAPI.js
CHANGED
|
@@ -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
|
/**
|
package/lib/api/FeedAPI.js
CHANGED
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
|
|
68
|
+
pibi_conformite_matrice_seuil_pesee_1bar_par_nature?: {
|
|
61
69
|
[key: string]: number;
|
|
62
70
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
*/
|
package/lib/api/PEIAPI.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export declare class PEIAPI extends Core {
|
|
|
45
45
|
nom?: string;
|
|
46
46
|
prenom?: string;
|
|
47
47
|
fonction?: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
telephone_fixe?: string;
|
|
49
|
+
telephone_portable?: string;
|
|
50
|
+
telephone_fax?: string;
|
|
51
51
|
adresse?: string;
|
|
52
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
104
|
+
references_exterieures?: {
|
|
105
105
|
titre?: string;
|
|
106
106
|
valeur?: string;
|
|
107
107
|
}[];
|
|
108
108
|
numero?: string;
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
/**
|