@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.
- package/lib/api/AnomaliesAPI.d.ts +1 -1
- package/lib/api/AnomaliesAPI.js +8 -10
- package/lib/api/CommissionsAPI.js +10 -17
- package/lib/api/CommissionsMembresAPI.d.ts +1 -1
- package/lib/api/CommissionsMembresAPI.js +4 -11
- package/lib/api/ContactsAPI.d.ts +1 -1
- package/lib/api/ContactsAPI.js +4 -11
- package/lib/api/ControlesPEIAPI.d.ts +1 -1
- package/lib/api/ControlesPEIAPI.js +3 -8
- package/lib/api/DatesPassageCommissionAPI.js +2 -8
- package/lib/api/DocumentsAPI.d.ts +1 -1
- package/lib/api/DocumentsAPI.js +4 -11
- package/lib/api/DossiersAPI.d.ts +3 -3
- package/lib/api/DossiersAPI.js +23 -50
- package/lib/api/DossiersAffectationsAPI.d.ts +1 -1
- package/lib/api/DossiersAffectationsAPI.js +2 -5
- package/lib/api/ERPAPI.d.ts +1 -1
- package/lib/api/ERPAPI.js +19 -30
- package/lib/api/EnveloppesAPI.d.ts +1 -1
- package/lib/api/EnveloppesAPI.js +7 -11
- package/lib/api/EvenementsAPI.d.ts +1 -1
- package/lib/api/EvenementsAPI.js +8 -13
- package/lib/api/FeedAPI.js +1 -4
- package/lib/api/HealthcheckAPI.d.ts +2 -1
- package/lib/api/HealthcheckAPI.js +2 -4
- package/lib/api/MoiAPI.js +1 -3
- package/lib/api/NotificationsAPI.d.ts +1 -1
- package/lib/api/NotificationsAPI.js +5 -14
- package/lib/api/OrdresDuJourAPI.js +0 -1
- package/lib/api/OrganisationsAPI.js +9 -24
- package/lib/api/PEIAPI.js +17 -29
- package/lib/api/PingAPI.js +1 -3
- package/lib/api/PrescriptionsAPI.d.ts +2 -2
- package/lib/api/PrescriptionsAPI.js +13 -21
- package/lib/api/SitesGeographiquesAPI.d.ts +28 -0
- package/lib/api/SitesGeographiquesAPI.js +68 -0
- package/lib/api/{TournesDECIAPI.d.ts → TourneesDECIAPI.d.ts} +1 -1
- package/lib/api/{TournesDECIAPI.js → TourneesDECIAPI.js} +12 -21
- package/lib/api/UtilisateursAPI.js +8 -17
- package/lib/api/WorkflowsAPI.d.ts +1 -5
- package/lib/api/WorkflowsAPI.js +2 -17
- package/lib/index.d.ts +1 -22
- package/lib/index.js +16 -45
- package/lib/metarisc.d.ts +28 -46
- package/lib/metarisc.js +53 -72
- package/lib/model/Clicdvcrem.d.ts +122 -122
- package/lib/model/Clicdvcrem.js +119 -119
- package/lib/model/Commission.d.ts +1 -1
- package/lib/model/Commission.js +1 -1
- package/lib/model/Dossier.d.ts +15 -0
- package/lib/model/Dossier.js +17 -1
- package/lib/model/DossierBase.d.ts +20 -1
- package/lib/model/DossierBase.js +17 -1
- package/lib/model/DossierDeci.d.ts +15 -0
- package/lib/model/DossierDeci.js +17 -1
- package/lib/model/DossierErp.d.ts +15 -0
- package/lib/model/DossierErp.js +17 -1
- package/lib/model/ERP.d.ts +3 -0
- package/lib/model/EffectifsNiveau.d.ts +54 -54
- package/lib/model/EffectifsNiveau.js +54 -54
- package/lib/model/PassageCommission.d.ts +1 -0
- package/lib/model/ReglesDeci.d.ts +2 -2
- package/lib/model/SiteGeographique.d.ts +4 -0
- package/lib/model/SiteGeographique.js +3 -0
- package/lib/model/Workflow.d.ts +5 -2
- package/lib/model/Workflow.js +3 -0
- package/lib/resources.d.ts +2 -1
- package/lib/resources.js +5 -3
- package/lib/utils.d.ts +12 -1
- package/lib/utils.js +32 -6
- package/package.json +1 -1
- package/src/api/AnomaliesAPI.ts +9 -11
- package/src/api/CommissionsAPI.ts +10 -17
- package/src/api/CommissionsMembresAPI.ts +5 -12
- package/src/api/ContactsAPI.ts +5 -12
- package/src/api/ControlesPEIAPI.ts +4 -9
- package/src/api/DatesPassageCommissionAPI.ts +2 -8
- package/src/api/DocumentsAPI.ts +5 -12
- package/src/api/DossiersAPI.ts +26 -53
- package/src/api/DossiersAffectationsAPI.ts +3 -6
- package/src/api/ERPAPI.ts +21 -30
- package/src/api/EnveloppesAPI.ts +8 -12
- package/src/api/EvenementsAPI.ts +9 -14
- package/src/api/FeedAPI.ts +1 -4
- package/src/api/HealthcheckAPI.ts +4 -5
- package/src/api/MoiAPI.ts +1 -3
- package/src/api/NotificationsAPI.ts +6 -15
- package/src/api/OrdresDuJourAPI.ts +0 -1
- package/src/api/OrganisationsAPI.ts +9 -24
- package/src/api/PEIAPI.ts +17 -29
- package/src/api/PingAPI.ts +1 -3
- package/src/api/PrescriptionsAPI.ts +15 -23
- package/src/api/SitesGeographiquesAPI.ts +92 -0
- package/src/api/{TournesDECIAPI.ts → TourneesDECIAPI.ts} +10 -19
- package/src/api/UtilisateursAPI.ts +8 -17
- package/src/api/WorkflowsAPI.ts +2 -21
- package/src/index.ts +1 -44
- package/src/metarisc.ts +57 -166
- package/src/model/Clicdvcrem.ts +122 -122
- package/src/model/Commission.ts +1 -1
- package/src/model/Dossier.ts +16 -0
- package/src/model/DossierBase.ts +21 -1
- package/src/model/DossierDeci.ts +16 -0
- package/src/model/DossierErp.ts +16 -0
- package/src/model/ERP.ts +3 -0
- package/src/model/EffectifsNiveau.ts +54 -54
- package/src/model/PassageCommission.ts +1 -0
- package/src/model/ReglesDeci.ts +2 -2
- package/src/model/SiteGeographique.ts +6 -0
- package/src/model/Workflow.ts +5 -2
- package/src/resources.ts +3 -1
- package/src/utils.ts +39 -10
|
@@ -8,7 +8,7 @@ export declare class AnomaliesAPI extends Core {
|
|
|
8
8
|
/**
|
|
9
9
|
* Suppression d'une anomalie DECI type dans la bibliothèque DECI.
|
|
10
10
|
*/
|
|
11
|
-
deleteAnomalie(anomalieId: string): void
|
|
11
|
+
deleteAnomalie(anomalieId: string): Promise<AxiosResponse<void>>;
|
|
12
12
|
/**
|
|
13
13
|
* Détails d'une anomalie type DECI présente dans la bibliothèque DECI.
|
|
14
14
|
*/
|
package/lib/api/AnomaliesAPI.js
CHANGED
|
@@ -13,11 +13,9 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteAnomalie(anomalieId) {
|
|
15
15
|
const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -40,8 +36,11 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
40
36
|
return this.collect({
|
|
41
37
|
method: 'GET',
|
|
42
38
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
43
|
-
params:
|
|
44
|
-
|
|
39
|
+
params: utils_1.Utils.payloadFilter({
|
|
40
|
+
'sort': sort === undefined ? undefined : (new String(sort)).toString(),
|
|
41
|
+
'texte': texte === undefined ? undefined : (new String(texte)).toString(),
|
|
42
|
+
'code': code === undefined ? undefined : (new String(code)).toString()
|
|
43
|
+
})
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
/**
|
|
@@ -52,7 +51,6 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
52
51
|
return this.request({
|
|
53
52
|
method: 'POST',
|
|
54
53
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
55
|
-
params: {},
|
|
56
54
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
55
|
});
|
|
58
56
|
}
|
|
@@ -15,9 +15,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
15
15
|
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
16
16
|
return this.request({
|
|
17
17
|
method: 'GET',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -40,8 +36,10 @@ class CommissionsAPI extends core_1.Core {
|
|
|
40
36
|
return this.collect({
|
|
41
37
|
method: 'GET',
|
|
42
38
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
43
|
-
params:
|
|
44
|
-
|
|
39
|
+
params: utils_1.Utils.payloadFilter({
|
|
40
|
+
'libelle': libelle === undefined ? undefined : (new String(libelle)).toString(),
|
|
41
|
+
'type': type === undefined ? undefined : (new String(type)).toString()
|
|
42
|
+
})
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
45
|
/**
|
|
@@ -51,9 +49,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
51
49
|
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
52
50
|
return this.collect({
|
|
53
51
|
method: 'GET',
|
|
54
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates')
|
|
55
|
-
params: {},
|
|
56
|
-
body: utils_1.Utils.payloadFilter({})
|
|
52
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates')
|
|
57
53
|
});
|
|
58
54
|
}
|
|
59
55
|
/**
|
|
@@ -64,8 +60,9 @@ class CommissionsAPI extends core_1.Core {
|
|
|
64
60
|
return this.collect({
|
|
65
61
|
method: 'GET',
|
|
66
62
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
67
|
-
params:
|
|
68
|
-
|
|
63
|
+
params: utils_1.Utils.payloadFilter({
|
|
64
|
+
'commission': commission === undefined ? undefined : (new String(commission)).toString()
|
|
65
|
+
})
|
|
69
66
|
});
|
|
70
67
|
}
|
|
71
68
|
/**
|
|
@@ -76,7 +73,6 @@ class CommissionsAPI extends core_1.Core {
|
|
|
76
73
|
return this.request({
|
|
77
74
|
method: 'POST',
|
|
78
75
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
79
|
-
params: {},
|
|
80
76
|
body: utils_1.Utils.payloadFilter(params)
|
|
81
77
|
});
|
|
82
78
|
}
|
|
@@ -88,7 +84,6 @@ class CommissionsAPI extends core_1.Core {
|
|
|
88
84
|
return this.request({
|
|
89
85
|
method: 'POST',
|
|
90
86
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
91
|
-
params: {},
|
|
92
87
|
body: utils_1.Utils.payloadFilter(params)
|
|
93
88
|
});
|
|
94
89
|
}
|
|
@@ -100,7 +95,6 @@ class CommissionsAPI extends core_1.Core {
|
|
|
100
95
|
return this.request({
|
|
101
96
|
method: 'POST',
|
|
102
97
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
103
|
-
params: {},
|
|
104
98
|
body: utils_1.Utils.payloadFilter(params)
|
|
105
99
|
});
|
|
106
100
|
}
|
|
@@ -112,7 +106,6 @@ class CommissionsAPI extends core_1.Core {
|
|
|
112
106
|
return this.request({
|
|
113
107
|
method: 'POST',
|
|
114
108
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences'),
|
|
115
|
-
params: {},
|
|
116
109
|
body: utils_1.Utils.payloadFilter(params)
|
|
117
110
|
});
|
|
118
111
|
}
|
|
@@ -8,7 +8,7 @@ export declare class CommissionsMembresAPI extends Core {
|
|
|
8
8
|
/**
|
|
9
9
|
* Suppression d'un membre de commission existant.
|
|
10
10
|
*/
|
|
11
|
-
deleteMembre(membreId: string): void
|
|
11
|
+
deleteMembre(membreId: string): Promise<AxiosResponse<void>>;
|
|
12
12
|
/**
|
|
13
13
|
* Récupération d'une fiche d'un membre d'une commission.
|
|
14
14
|
*/
|
|
@@ -13,11 +13,9 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteMembre(membreId) {
|
|
15
15
|
const pathVariable = { 'membre_id': (new String(membreId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'membre_id': (new String(membreId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -39,9 +35,7 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
39
35
|
const pathVariable = {};
|
|
40
36
|
return this.collect({
|
|
41
37
|
method: 'GET',
|
|
42
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres')
|
|
43
|
-
params: {},
|
|
44
|
-
body: utils_1.Utils.payloadFilter({})
|
|
38
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres')
|
|
45
39
|
});
|
|
46
40
|
}
|
|
47
41
|
/**
|
|
@@ -52,7 +46,6 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
52
46
|
return this.request({
|
|
53
47
|
method: 'POST',
|
|
54
48
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
55
|
-
params: {},
|
|
56
49
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
50
|
});
|
|
58
51
|
}
|
package/lib/api/ContactsAPI.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare class ContactsAPI extends Core {
|
|
|
8
8
|
/**
|
|
9
9
|
* Suppression d'une fiche contact existante.
|
|
10
10
|
*/
|
|
11
|
-
deleteContact(contactId: string): void
|
|
11
|
+
deleteContact(contactId: string): Promise<AxiosResponse<void>>;
|
|
12
12
|
/**
|
|
13
13
|
* Récupération d'une fiche contact.
|
|
14
14
|
*/
|
package/lib/api/ContactsAPI.js
CHANGED
|
@@ -13,11 +13,9 @@ class ContactsAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteContact(contactId) {
|
|
15
15
|
const pathVariable = { 'contact_id': (new String(contactId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class ContactsAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'contact_id': (new String(contactId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -39,9 +35,7 @@ class ContactsAPI extends core_1.Core {
|
|
|
39
35
|
const pathVariable = {};
|
|
40
36
|
return this.collect({
|
|
41
37
|
method: 'GET',
|
|
42
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts')
|
|
43
|
-
params: {},
|
|
44
|
-
body: utils_1.Utils.payloadFilter({})
|
|
38
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts')
|
|
45
39
|
});
|
|
46
40
|
}
|
|
47
41
|
/**
|
|
@@ -52,7 +46,6 @@ class ContactsAPI extends core_1.Core {
|
|
|
52
46
|
return this.request({
|
|
53
47
|
method: 'POST',
|
|
54
48
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
55
|
-
params: {},
|
|
56
49
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
50
|
});
|
|
58
51
|
}
|
|
@@ -7,7 +7,7 @@ export declare class ControlesPEIAPI extends Core {
|
|
|
7
7
|
/**
|
|
8
8
|
* Suppression du contrôle PEI de la tournée DECI.
|
|
9
9
|
*/
|
|
10
|
-
deleteControle(peiId: string): void
|
|
10
|
+
deleteControle(peiId: string): Promise<AxiosResponse<void>>;
|
|
11
11
|
/**
|
|
12
12
|
* Récupération des détails liés au contrôle d'un PEI d'une tournée.
|
|
13
13
|
*/
|
|
@@ -13,11 +13,9 @@ class ControlesPEIAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteControle(peiId) {
|
|
15
15
|
const pathVariable = { 'pei_id': (new String(peiId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class ControlesPEIAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'pei_id': (new String(peiId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -40,7 +36,6 @@ class ControlesPEIAPI extends core_1.Core {
|
|
|
40
36
|
return this.request({
|
|
41
37
|
method: 'POST',
|
|
42
38
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}'),
|
|
43
|
-
params: {},
|
|
44
39
|
body: utils_1.Utils.payloadFilter(params)
|
|
45
40
|
});
|
|
46
41
|
}
|
|
@@ -15,9 +15,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
15
15
|
const pathVariable = { 'date_id': (new String(dateId)).toString() };
|
|
16
16
|
return this.request({
|
|
17
17
|
method: 'GET',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'date_id': (new String(dateId)).toString() };
|
|
28
26
|
return this.collect({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -40,7 +36,6 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
40
36
|
return this.request({
|
|
41
37
|
method: 'POST',
|
|
42
38
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour'),
|
|
43
|
-
params: {},
|
|
44
39
|
body: utils_1.Utils.payloadFilter(params)
|
|
45
40
|
});
|
|
46
41
|
}
|
|
@@ -52,7 +47,6 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
52
47
|
return this.request({
|
|
53
48
|
method: 'POST',
|
|
54
49
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/reprogrammer'),
|
|
55
|
-
params: {},
|
|
56
50
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
51
|
});
|
|
58
52
|
}
|
package/lib/api/DocumentsAPI.js
CHANGED
|
@@ -13,11 +13,9 @@ class DocumentsAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteDocument(documentId) {
|
|
15
15
|
const pathVariable = { 'document_id': (new String(documentId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class DocumentsAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'document_id': (new String(documentId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -39,9 +35,7 @@ class DocumentsAPI extends core_1.Core {
|
|
|
39
35
|
const pathVariable = {};
|
|
40
36
|
return this.collect({
|
|
41
37
|
method: 'GET',
|
|
42
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents')
|
|
43
|
-
params: {},
|
|
44
|
-
body: utils_1.Utils.payloadFilter({})
|
|
38
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents')
|
|
45
39
|
});
|
|
46
40
|
}
|
|
47
41
|
/**
|
|
@@ -52,7 +46,6 @@ class DocumentsAPI extends core_1.Core {
|
|
|
52
46
|
return this.request({
|
|
53
47
|
method: 'POST',
|
|
54
48
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
|
|
55
|
-
params: {},
|
|
56
49
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
50
|
});
|
|
58
51
|
}
|
package/lib/api/DossiersAPI.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class DossiersAPI extends Core {
|
|
|
17
17
|
/**
|
|
18
18
|
* Désarchiver le dossier.
|
|
19
19
|
*/
|
|
20
|
-
deleteArchiverDossier(dossierId: string): void
|
|
20
|
+
deleteArchiverDossier(dossierId: string): Promise<AxiosResponse<void>>;
|
|
21
21
|
/**
|
|
22
22
|
* Liste des affectations du dossier.
|
|
23
23
|
*/
|
|
@@ -55,7 +55,7 @@ export declare class DossiersAPI extends Core {
|
|
|
55
55
|
/**
|
|
56
56
|
* Récupération de la liste des dossiers selon des critères de recherche.
|
|
57
57
|
*/
|
|
58
|
-
paginateDossiers(objet?: string, erp?: string, pei?: string, type?: string, workflowActif?: 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow', affecte?: string, enveloppe?: string): Collection<Dossier>;
|
|
58
|
+
paginateDossiers(objet?: string, erp?: string, pei?: string, type?: string, workflowActif?: 'analyse_de_risque' | 'validation' | 'arrivee_sis' | 'arrivee_sis_prev' | 'arrivee_secretariat_commission' | 'consultation_sis' | 'passage_commission' | 'relecture' | 'visite' | 'arrivee_secretariat' | 'workflow' | 'reception_de_travaux_en_attente', affecte?: string, enveloppe?: string): Collection<Dossier>;
|
|
59
59
|
/**
|
|
60
60
|
* Consulter l'espace d'échange pour le suivi du dossier.
|
|
61
61
|
*/
|
|
@@ -109,7 +109,7 @@ export declare class DossiersAPI extends Core {
|
|
|
109
109
|
/**
|
|
110
110
|
* Archiver le dossier.
|
|
111
111
|
*/
|
|
112
|
-
putArchiverDossier(dossierId: string): void
|
|
112
|
+
putArchiverDossier(dossierId: string): Promise<AxiosResponse<void>>;
|
|
113
113
|
/**
|
|
114
114
|
* Mise à jour des essais réalisés en définissant les valeurs des paramètres transmis.
|
|
115
115
|
*/
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -13,11 +13,9 @@ class DossiersAPI extends core_1.Core {
|
|
|
13
13
|
*/
|
|
14
14
|
deleteArchiverDossier(dossierId) {
|
|
15
15
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
16
|
-
this.request({
|
|
16
|
+
return this.request({
|
|
17
17
|
method: 'DELETE',
|
|
18
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver')
|
|
19
|
-
params: {},
|
|
20
|
-
body: utils_1.Utils.payloadFilter({})
|
|
18
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver')
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
@@ -27,9 +25,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
27
25
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
28
26
|
return this.request({
|
|
29
27
|
method: 'GET',
|
|
30
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/affectations')
|
|
31
|
-
params: {},
|
|
32
|
-
body: utils_1.Utils.payloadFilter({})
|
|
28
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/affectations')
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
/**
|
|
@@ -39,9 +35,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
39
35
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
40
36
|
return this.request({
|
|
41
37
|
method: 'GET',
|
|
42
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}')
|
|
43
|
-
params: {},
|
|
44
|
-
body: utils_1.Utils.payloadFilter({})
|
|
38
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}')
|
|
45
39
|
});
|
|
46
40
|
}
|
|
47
41
|
/**
|
|
@@ -51,9 +45,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
51
45
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
52
46
|
return this.request({
|
|
53
47
|
method: 'GET',
|
|
54
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/essais')
|
|
55
|
-
params: {},
|
|
56
|
-
body: utils_1.Utils.payloadFilter({})
|
|
48
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/essais')
|
|
57
49
|
});
|
|
58
50
|
}
|
|
59
51
|
/**
|
|
@@ -63,9 +55,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
63
55
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
64
56
|
return this.request({
|
|
65
57
|
method: 'GET',
|
|
66
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions')
|
|
67
|
-
params: {},
|
|
68
|
-
body: utils_1.Utils.payloadFilter({})
|
|
58
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions')
|
|
69
59
|
});
|
|
70
60
|
}
|
|
71
61
|
/**
|
|
@@ -75,9 +65,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
75
65
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
76
66
|
return this.request({
|
|
77
67
|
method: 'GET',
|
|
78
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude')
|
|
79
|
-
params: {},
|
|
80
|
-
body: utils_1.Utils.payloadFilter({})
|
|
68
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude')
|
|
81
69
|
});
|
|
82
70
|
}
|
|
83
71
|
/**
|
|
@@ -87,9 +75,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
87
75
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
88
76
|
return this.collect({
|
|
89
77
|
method: 'GET',
|
|
90
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts')
|
|
91
|
-
params: {},
|
|
92
|
-
body: utils_1.Utils.payloadFilter({})
|
|
78
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts')
|
|
93
79
|
});
|
|
94
80
|
}
|
|
95
81
|
/**
|
|
@@ -99,9 +85,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
99
85
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
100
86
|
return this.collect({
|
|
101
87
|
method: 'GET',
|
|
102
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents')
|
|
103
|
-
params: {},
|
|
104
|
-
body: utils_1.Utils.payloadFilter({})
|
|
88
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents')
|
|
105
89
|
});
|
|
106
90
|
}
|
|
107
91
|
/**
|
|
@@ -112,8 +96,15 @@ class DossiersAPI extends core_1.Core {
|
|
|
112
96
|
return this.collect({
|
|
113
97
|
method: 'GET',
|
|
114
98
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
|
|
115
|
-
params:
|
|
116
|
-
|
|
99
|
+
params: utils_1.Utils.payloadFilter({
|
|
100
|
+
'objet': objet === undefined ? undefined : (new String(objet)).toString(),
|
|
101
|
+
'erp': erp === undefined ? undefined : (new String(erp)).toString(),
|
|
102
|
+
'pei': pei === undefined ? undefined : (new String(pei)).toString(),
|
|
103
|
+
'type': type === undefined ? undefined : (new String(type)).toString(),
|
|
104
|
+
'workflow_actif': workflowActif === undefined ? undefined : (new String(workflowActif)).toString(),
|
|
105
|
+
'affecte': affecte === undefined ? undefined : (new String(affecte)).toString(),
|
|
106
|
+
'enveloppe': enveloppe === undefined ? undefined : (new String(enveloppe)).toString()
|
|
107
|
+
})
|
|
117
108
|
});
|
|
118
109
|
}
|
|
119
110
|
/**
|
|
@@ -123,9 +114,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
123
114
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
124
115
|
return this.collect({
|
|
125
116
|
method: 'GET',
|
|
126
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/fil_rouge')
|
|
127
|
-
params: {},
|
|
128
|
-
body: utils_1.Utils.payloadFilter({})
|
|
117
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/fil_rouge')
|
|
129
118
|
});
|
|
130
119
|
}
|
|
131
120
|
/**
|
|
@@ -135,9 +124,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
135
124
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
136
125
|
return this.collect({
|
|
137
126
|
method: 'GET',
|
|
138
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags')
|
|
139
|
-
params: {},
|
|
140
|
-
body: utils_1.Utils.payloadFilter({})
|
|
127
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags')
|
|
141
128
|
});
|
|
142
129
|
}
|
|
143
130
|
/**
|
|
@@ -147,9 +134,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
147
134
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
148
135
|
return this.collect({
|
|
149
136
|
method: 'GET',
|
|
150
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows')
|
|
151
|
-
params: {},
|
|
152
|
-
body: utils_1.Utils.payloadFilter({})
|
|
137
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows')
|
|
153
138
|
});
|
|
154
139
|
}
|
|
155
140
|
/**
|
|
@@ -160,7 +145,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
160
145
|
return this.request({
|
|
161
146
|
method: 'POST',
|
|
162
147
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/affectations'),
|
|
163
|
-
params: {},
|
|
164
148
|
body: utils_1.Utils.payloadFilter(params)
|
|
165
149
|
});
|
|
166
150
|
}
|
|
@@ -172,7 +156,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
172
156
|
return this.request({
|
|
173
157
|
method: 'POST',
|
|
174
158
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts'),
|
|
175
|
-
params: {},
|
|
176
159
|
body: utils_1.Utils.payloadFilter(params)
|
|
177
160
|
});
|
|
178
161
|
}
|
|
@@ -184,7 +167,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
184
167
|
return this.request({
|
|
185
168
|
method: 'POST',
|
|
186
169
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents'),
|
|
187
|
-
params: {},
|
|
188
170
|
body: utils_1.Utils.payloadFilter(params)
|
|
189
171
|
});
|
|
190
172
|
}
|
|
@@ -196,7 +178,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
196
178
|
return this.request({
|
|
197
179
|
method: 'POST',
|
|
198
180
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
|
|
199
|
-
params: {},
|
|
200
181
|
body: utils_1.Utils.payloadFilter(params)
|
|
201
182
|
});
|
|
202
183
|
}
|
|
@@ -208,7 +189,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
208
189
|
return this.request({
|
|
209
190
|
method: 'POST',
|
|
210
191
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/export'),
|
|
211
|
-
params: {},
|
|
212
192
|
body: utils_1.Utils.payloadFilter(params)
|
|
213
193
|
});
|
|
214
194
|
}
|
|
@@ -220,7 +200,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
220
200
|
return this.request({
|
|
221
201
|
method: 'POST',
|
|
222
202
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/fil_rouge'),
|
|
223
|
-
params: {},
|
|
224
203
|
body: utils_1.Utils.payloadFilter(params)
|
|
225
204
|
});
|
|
226
205
|
}
|
|
@@ -232,7 +211,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
232
211
|
return this.request({
|
|
233
212
|
method: 'POST',
|
|
234
213
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions'),
|
|
235
|
-
params: {},
|
|
236
214
|
body: utils_1.Utils.payloadFilter(params)
|
|
237
215
|
});
|
|
238
216
|
}
|
|
@@ -244,7 +222,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
244
222
|
return this.request({
|
|
245
223
|
method: 'POST',
|
|
246
224
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude'),
|
|
247
|
-
params: {},
|
|
248
225
|
body: utils_1.Utils.payloadFilter(params)
|
|
249
226
|
});
|
|
250
227
|
}
|
|
@@ -256,7 +233,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
256
233
|
return this.request({
|
|
257
234
|
method: 'POST',
|
|
258
235
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions/reorganiser'),
|
|
259
|
-
params: {},
|
|
260
236
|
body: utils_1.Utils.payloadFilter(params)
|
|
261
237
|
});
|
|
262
238
|
}
|
|
@@ -265,11 +241,9 @@ class DossiersAPI extends core_1.Core {
|
|
|
265
241
|
*/
|
|
266
242
|
putArchiverDossier(dossierId) {
|
|
267
243
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
268
|
-
this.request({
|
|
244
|
+
return this.request({
|
|
269
245
|
method: 'PUT',
|
|
270
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver')
|
|
271
|
-
params: {},
|
|
272
|
-
body: utils_1.Utils.payloadFilter({})
|
|
246
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver')
|
|
273
247
|
});
|
|
274
248
|
}
|
|
275
249
|
/**
|
|
@@ -280,7 +254,6 @@ class DossiersAPI extends core_1.Core {
|
|
|
280
254
|
return this.request({
|
|
281
255
|
method: 'PUT',
|
|
282
256
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/essais'),
|
|
283
|
-
params: {},
|
|
284
257
|
body: utils_1.Utils.payloadFilter(params)
|
|
285
258
|
});
|
|
286
259
|
}
|
|
@@ -7,7 +7,7 @@ export declare class DossiersAffectationsAPI extends Core {
|
|
|
7
7
|
/**
|
|
8
8
|
* Suppression d'une affectation d'un dossier.
|
|
9
9
|
*/
|
|
10
|
-
deleteAffectation(affectationId: string): void
|
|
10
|
+
deleteAffectation(affectationId: string): Promise<AxiosResponse<void>>;
|
|
11
11
|
/**
|
|
12
12
|
* Mise à jour d'une affectation existante en définissant les valeurs des paramètres transmis. Tous les paramètres non fournis resteront inchangés.
|
|
13
13
|
*/
|