@metarisc/metarisc-js 0.0.1-alpha.76 → 0.0.1-alpha.77
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 +5 -5
- package/lib/api/CommissionsAPI.js +9 -9
- package/lib/api/CommissionsMembresAPI.d.ts +1 -1
- package/lib/api/CommissionsMembresAPI.js +5 -5
- package/lib/api/ContactsAPI.d.ts +1 -1
- package/lib/api/ContactsAPI.js +5 -5
- package/lib/api/ControlesPEIAPI.d.ts +1 -1
- package/lib/api/ControlesPEIAPI.js +4 -4
- package/lib/api/DatesPassageCommissionAPI.js +4 -4
- package/lib/api/DocumentsAPI.d.ts +1 -1
- package/lib/api/DocumentsAPI.js +5 -5
- package/lib/api/DossiersAPI.d.ts +3 -3
- package/lib/api/DossiersAPI.js +25 -25
- package/lib/api/DossiersAffectationsAPI.d.ts +1 -1
- package/lib/api/DossiersAffectationsAPI.js +3 -3
- package/lib/api/ERPAPI.d.ts +1 -1
- package/lib/api/ERPAPI.js +15 -15
- package/lib/api/EnveloppesAPI.d.ts +1 -1
- package/lib/api/EnveloppesAPI.js +6 -6
- package/lib/api/EvenementsAPI.d.ts +1 -1
- package/lib/api/EvenementsAPI.js +6 -6
- package/lib/api/FeedAPI.js +2 -2
- package/lib/api/HealthcheckAPI.d.ts +2 -1
- package/lib/api/HealthcheckAPI.js +2 -2
- package/lib/api/MoiAPI.js +1 -1
- package/lib/api/NotificationsAPI.d.ts +1 -1
- package/lib/api/NotificationsAPI.js +6 -6
- package/lib/api/OrdresDuJourAPI.js +1 -1
- package/lib/api/OrganisationsAPI.js +11 -11
- package/lib/api/PEIAPI.js +14 -14
- package/lib/api/PingAPI.js +1 -1
- package/lib/api/PrescriptionsAPI.d.ts +2 -2
- package/lib/api/PrescriptionsAPI.js +11 -11
- package/lib/api/SitesGeographiquesAPI.d.ts +28 -0
- package/lib/api/SitesGeographiquesAPI.js +72 -0
- package/lib/api/TournesDECIAPI.js +9 -9
- package/lib/api/UtilisateursAPI.js +6 -6
- package/lib/api/WorkflowsAPI.d.ts +1 -5
- package/lib/api/WorkflowsAPI.js +3 -15
- package/lib/model/Clicdvcrem.d.ts +3 -3
- 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/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 +1 -0
- package/lib/resources.js +3 -1
- package/lib/utils.d.ts +12 -1
- package/lib/utils.js +33 -7
- package/package.json +1 -1
- package/src/api/AnomaliesAPI.ts +6 -6
- package/src/api/CommissionsAPI.ts +9 -9
- package/src/api/CommissionsMembresAPI.ts +6 -6
- package/src/api/ContactsAPI.ts +6 -6
- package/src/api/ControlesPEIAPI.ts +5 -5
- package/src/api/DatesPassageCommissionAPI.ts +4 -4
- package/src/api/DocumentsAPI.ts +6 -6
- package/src/api/DossiersAPI.ts +28 -28
- package/src/api/DossiersAffectationsAPI.ts +4 -4
- package/src/api/ERPAPI.ts +17 -15
- package/src/api/EnveloppesAPI.ts +7 -7
- package/src/api/EvenementsAPI.ts +7 -7
- package/src/api/FeedAPI.ts +2 -2
- package/src/api/HealthcheckAPI.ts +4 -3
- package/src/api/MoiAPI.ts +1 -1
- package/src/api/NotificationsAPI.ts +7 -7
- package/src/api/OrdresDuJourAPI.ts +1 -1
- package/src/api/OrganisationsAPI.ts +11 -11
- package/src/api/PEIAPI.ts +14 -14
- package/src/api/PingAPI.ts +1 -1
- package/src/api/PrescriptionsAPI.ts +13 -13
- package/src/api/SitesGeographiquesAPI.ts +96 -0
- package/src/api/TournesDECIAPI.ts +9 -9
- package/src/api/UtilisateursAPI.ts +6 -6
- package/src/api/WorkflowsAPI.ts +3 -19
- package/src/model/Clicdvcrem.ts +3 -3
- 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/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 +2 -0
- 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,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
40
40
|
return this.collect({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
43
|
-
params: { 'sort': (new String(sort)).toString(), 'texte': (new String(texte)).toString(), 'code': (new String(code)).toString() },
|
|
43
|
+
params: utils_1.Utils.payloadFilter({ 'sort': (new String(sort)).toString(), 'texte': (new String(texte)).toString(), 'code': (new String(code)).toString() }),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class AnomaliesAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'POST',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -16,7 +16,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
16
16
|
return this.request({
|
|
17
17
|
method: 'GET',
|
|
18
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
40
40
|
return this.collect({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
43
|
-
params: { 'libelle': (new String(libelle)).toString(), 'type': (new String(type)).toString() },
|
|
43
|
+
params: utils_1.Utils.payloadFilter({ 'libelle': (new String(libelle)).toString(), 'type': (new String(type)).toString() }),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
52
52
|
return this.collect({
|
|
53
53
|
method: 'GET',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter({})
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
64
64
|
return this.collect({
|
|
65
65
|
method: 'GET',
|
|
66
66
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
67
|
-
params: { 'commission': (new String(commission)).toString() },
|
|
67
|
+
params: utils_1.Utils.payloadFilter({ 'commission': (new String(commission)).toString() }),
|
|
68
68
|
body: utils_1.Utils.payloadFilter({})
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
76
76
|
return this.request({
|
|
77
77
|
method: 'POST',
|
|
78
78
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
79
|
-
params: {},
|
|
79
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
80
80
|
body: utils_1.Utils.payloadFilter(params)
|
|
81
81
|
});
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
88
88
|
return this.request({
|
|
89
89
|
method: 'POST',
|
|
90
90
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
91
|
-
params: {},
|
|
91
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
92
92
|
body: utils_1.Utils.payloadFilter(params)
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -100,7 +100,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
100
100
|
return this.request({
|
|
101
101
|
method: 'POST',
|
|
102
102
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
103
|
-
params: {},
|
|
103
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
104
104
|
body: utils_1.Utils.payloadFilter(params)
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -112,7 +112,7 @@ class CommissionsAPI extends core_1.Core {
|
|
|
112
112
|
return this.request({
|
|
113
113
|
method: 'POST',
|
|
114
114
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences'),
|
|
115
|
-
params: {},
|
|
115
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
116
116
|
body: utils_1.Utils.payloadFilter(params)
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -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,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
40
40
|
return this.collect({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class CommissionsMembresAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'POST',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
57
|
});
|
|
58
58
|
}
|
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,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class ContactsAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class ContactsAPI extends core_1.Core {
|
|
|
40
40
|
return this.collect({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class ContactsAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'POST',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -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,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class ControlesPEIAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class ControlesPEIAPI extends core_1.Core {
|
|
|
40
40
|
return this.request({
|
|
41
41
|
method: 'POST',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/controles_pei/{pei_id}'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter(params)
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -16,7 +16,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
16
16
|
return this.request({
|
|
17
17
|
method: 'GET',
|
|
18
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
28
28
|
return this.collect({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
40
40
|
return this.request({
|
|
41
41
|
method: 'POST',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/ordre_du_jour'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter(params)
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'POST',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/reprogrammer'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
57
|
});
|
|
58
58
|
}
|
package/lib/api/DocumentsAPI.js
CHANGED
|
@@ -13,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class DocumentsAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class DocumentsAPI extends core_1.Core {
|
|
|
40
40
|
return this.collect({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class DocumentsAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'POST',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter(params)
|
|
57
57
|
});
|
|
58
58
|
}
|
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,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'GET',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/affectations'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter({})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
40
40
|
return this.request({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
|
|
43
|
-
params: {},
|
|
43
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
44
44
|
body: utils_1.Utils.payloadFilter({})
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
52
52
|
return this.request({
|
|
53
53
|
method: 'GET',
|
|
54
54
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/essais'),
|
|
55
|
-
params: {},
|
|
55
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
56
56
|
body: utils_1.Utils.payloadFilter({})
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
64
64
|
return this.request({
|
|
65
65
|
method: 'GET',
|
|
66
66
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions'),
|
|
67
|
-
params: {},
|
|
67
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
68
68
|
body: utils_1.Utils.payloadFilter({})
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
76
76
|
return this.request({
|
|
77
77
|
method: 'GET',
|
|
78
78
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude'),
|
|
79
|
-
params: {},
|
|
79
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
80
80
|
body: utils_1.Utils.payloadFilter({})
|
|
81
81
|
});
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
88
88
|
return this.collect({
|
|
89
89
|
method: 'GET',
|
|
90
90
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts'),
|
|
91
|
-
params: {},
|
|
91
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
92
92
|
body: utils_1.Utils.payloadFilter({})
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -100,7 +100,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
100
100
|
return this.collect({
|
|
101
101
|
method: 'GET',
|
|
102
102
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents'),
|
|
103
|
-
params: {},
|
|
103
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
104
104
|
body: utils_1.Utils.payloadFilter({})
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -112,7 +112,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
112
112
|
return this.collect({
|
|
113
113
|
method: 'GET',
|
|
114
114
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers'),
|
|
115
|
-
params: { 'objet': (new String(objet)).toString(), 'erp': (new String(erp)).toString(), 'pei': (new String(pei)).toString(), 'type': (new String(type)).toString(), 'workflow_actif': (new String(workflowActif)).toString(), 'affecte': (new String(affecte)).toString(), 'enveloppe': (new String(enveloppe)).toString() },
|
|
115
|
+
params: utils_1.Utils.payloadFilter({ 'objet': (new String(objet)).toString(), 'erp': (new String(erp)).toString(), 'pei': (new String(pei)).toString(), 'type': (new String(type)).toString(), 'workflow_actif': (new String(workflowActif)).toString(), 'affecte': (new String(affecte)).toString(), 'enveloppe': (new String(enveloppe)).toString() }),
|
|
116
116
|
body: utils_1.Utils.payloadFilter({})
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -124,7 +124,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
124
124
|
return this.collect({
|
|
125
125
|
method: 'GET',
|
|
126
126
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/fil_rouge'),
|
|
127
|
-
params: {},
|
|
127
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
128
128
|
body: utils_1.Utils.payloadFilter({})
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -136,7 +136,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
136
136
|
return this.collect({
|
|
137
137
|
method: 'GET',
|
|
138
138
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/tags'),
|
|
139
|
-
params: {},
|
|
139
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
140
140
|
body: utils_1.Utils.payloadFilter({})
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -148,7 +148,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
148
148
|
return this.collect({
|
|
149
149
|
method: 'GET',
|
|
150
150
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/workflows'),
|
|
151
|
-
params: {},
|
|
151
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
152
152
|
body: utils_1.Utils.payloadFilter({})
|
|
153
153
|
});
|
|
154
154
|
}
|
|
@@ -160,7 +160,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
160
160
|
return this.request({
|
|
161
161
|
method: 'POST',
|
|
162
162
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/affectations'),
|
|
163
|
-
params: {},
|
|
163
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
164
164
|
body: utils_1.Utils.payloadFilter(params)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -172,7 +172,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
172
172
|
return this.request({
|
|
173
173
|
method: 'POST',
|
|
174
174
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/contacts'),
|
|
175
|
-
params: {},
|
|
175
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
176
176
|
body: utils_1.Utils.payloadFilter(params)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
@@ -184,7 +184,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
184
184
|
return this.request({
|
|
185
185
|
method: 'POST',
|
|
186
186
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/documents'),
|
|
187
|
-
params: {},
|
|
187
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
188
188
|
body: utils_1.Utils.payloadFilter(params)
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -196,7 +196,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
196
196
|
return this.request({
|
|
197
197
|
method: 'POST',
|
|
198
198
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}'),
|
|
199
|
-
params: {},
|
|
199
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
200
200
|
body: utils_1.Utils.payloadFilter(params)
|
|
201
201
|
});
|
|
202
202
|
}
|
|
@@ -208,7 +208,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
208
208
|
return this.request({
|
|
209
209
|
method: 'POST',
|
|
210
210
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/export'),
|
|
211
|
-
params: {},
|
|
211
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
212
212
|
body: utils_1.Utils.payloadFilter(params)
|
|
213
213
|
});
|
|
214
214
|
}
|
|
@@ -220,7 +220,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
220
220
|
return this.request({
|
|
221
221
|
method: 'POST',
|
|
222
222
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/fil_rouge'),
|
|
223
|
-
params: {},
|
|
223
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
224
224
|
body: utils_1.Utils.payloadFilter(params)
|
|
225
225
|
});
|
|
226
226
|
}
|
|
@@ -232,7 +232,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
232
232
|
return this.request({
|
|
233
233
|
method: 'POST',
|
|
234
234
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions'),
|
|
235
|
-
params: {},
|
|
235
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
236
236
|
body: utils_1.Utils.payloadFilter(params)
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -244,7 +244,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
244
244
|
return this.request({
|
|
245
245
|
method: 'POST',
|
|
246
246
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude'),
|
|
247
|
-
params: {},
|
|
247
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
248
248
|
body: utils_1.Utils.payloadFilter(params)
|
|
249
249
|
});
|
|
250
250
|
}
|
|
@@ -256,7 +256,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
256
256
|
return this.request({
|
|
257
257
|
method: 'POST',
|
|
258
258
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/prescriptions/reorganiser'),
|
|
259
|
-
params: {},
|
|
259
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
260
260
|
body: utils_1.Utils.payloadFilter(params)
|
|
261
261
|
});
|
|
262
262
|
}
|
|
@@ -265,10 +265,10 @@ class DossiersAPI extends core_1.Core {
|
|
|
265
265
|
*/
|
|
266
266
|
putArchiverDossier(dossierId) {
|
|
267
267
|
const pathVariable = { 'dossier_id': (new String(dossierId)).toString() };
|
|
268
|
-
this.request({
|
|
268
|
+
return this.request({
|
|
269
269
|
method: 'PUT',
|
|
270
270
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/archiver'),
|
|
271
|
-
params: {},
|
|
271
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
272
272
|
body: utils_1.Utils.payloadFilter({})
|
|
273
273
|
});
|
|
274
274
|
}
|
|
@@ -280,7 +280,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
280
280
|
return this.request({
|
|
281
281
|
method: 'PUT',
|
|
282
282
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/essais'),
|
|
283
|
-
params: {},
|
|
283
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
284
284
|
body: utils_1.Utils.payloadFilter(params)
|
|
285
285
|
});
|
|
286
286
|
}
|
|
@@ -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
|
*/
|
|
@@ -13,10 +13,10 @@ 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
18
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers_affectations/{affectation_id}'),
|
|
19
|
-
params: {},
|
|
19
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
20
20
|
body: utils_1.Utils.payloadFilter({})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class DossiersAffectationsAPI extends core_1.Core {
|
|
|
28
28
|
return this.request({
|
|
29
29
|
method: 'POST',
|
|
30
30
|
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers_affectations/{affectation_id}'),
|
|
31
|
-
params: {},
|
|
31
|
+
params: utils_1.Utils.payloadFilter({}),
|
|
32
32
|
body: utils_1.Utils.payloadFilter(params)
|
|
33
33
|
});
|
|
34
34
|
}
|