@metarisc/metarisc-js 0.0.1-alpha.92 → 0.0.1-alpha.94
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/DatesPassageCommissionAPI.js +2 -10
- package/lib/api/DossiersAPI.js +1 -5
- package/lib/api/OrdresDuJourAPI.js +2 -10
- package/lib/client.js +2 -1
- package/package.json +1 -1
- package/src/api/DatesPassageCommissionAPI.ts +3 -10
- package/src/api/DossiersAPI.ts +1 -5
- package/src/api/OrdresDuJourAPI.ts +2 -10
- package/src/client.ts +3 -2
|
@@ -16,11 +16,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
16
16
|
return this.request({
|
|
17
17
|
method: 'GET',
|
|
18
18
|
responseType: 'blob',
|
|
19
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/compte_rendu_global_pdf')
|
|
20
|
-
transformResponse: [(data) => {
|
|
21
|
-
const parsedData = JSON.parse(data);
|
|
22
|
-
return parsedData;
|
|
23
|
-
}]
|
|
19
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/compte_rendu_global_pdf')
|
|
24
20
|
});
|
|
25
21
|
}
|
|
26
22
|
/**
|
|
@@ -31,11 +27,7 @@ class DatesPassageCommissionAPI extends core_1.Core {
|
|
|
31
27
|
return this.request({
|
|
32
28
|
method: 'GET',
|
|
33
29
|
responseType: 'blob',
|
|
34
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/convocation_pdf')
|
|
35
|
-
transformResponse: [(data) => {
|
|
36
|
-
const parsedData = JSON.parse(data);
|
|
37
|
-
return parsedData;
|
|
38
|
-
}]
|
|
30
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/convocation_pdf')
|
|
39
31
|
});
|
|
40
32
|
}
|
|
41
33
|
/**
|
package/lib/api/DossiersAPI.js
CHANGED
|
@@ -78,11 +78,7 @@ class DossiersAPI extends core_1.Core {
|
|
|
78
78
|
return this.request({
|
|
79
79
|
method: 'GET',
|
|
80
80
|
responseType: 'blob',
|
|
81
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/pdf')
|
|
82
|
-
transformResponse: [(data) => {
|
|
83
|
-
const parsedData = JSON.parse(data);
|
|
84
|
-
return parsedData;
|
|
85
|
-
}]
|
|
81
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/pdf')
|
|
86
82
|
});
|
|
87
83
|
}
|
|
88
84
|
/**
|
|
@@ -30,11 +30,7 @@ class OrdresDuJourAPI extends core_1.Core {
|
|
|
30
30
|
return this.request({
|
|
31
31
|
method: 'GET',
|
|
32
32
|
responseType: 'blob',
|
|
33
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/compte_rendu_pdf')
|
|
34
|
-
transformResponse: [(data) => {
|
|
35
|
-
const parsedData = JSON.parse(data);
|
|
36
|
-
return parsedData;
|
|
37
|
-
}]
|
|
33
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/compte_rendu_pdf')
|
|
38
34
|
});
|
|
39
35
|
}
|
|
40
36
|
/**
|
|
@@ -59,11 +55,7 @@ class OrdresDuJourAPI extends core_1.Core {
|
|
|
59
55
|
return this.request({
|
|
60
56
|
method: 'GET',
|
|
61
57
|
responseType: 'blob',
|
|
62
|
-
endpoint: utils_1.Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/proces_verbal_pdf')
|
|
63
|
-
transformResponse: [(data) => {
|
|
64
|
-
const parsedData = JSON.parse(data);
|
|
65
|
-
return parsedData;
|
|
66
|
-
}]
|
|
58
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/proces_verbal_pdf')
|
|
67
59
|
});
|
|
68
60
|
}
|
|
69
61
|
/**
|
package/lib/client.js
CHANGED
|
@@ -135,7 +135,8 @@ class Client {
|
|
|
135
135
|
this.emit(EventEnum.request, config);
|
|
136
136
|
return this.axios.request({ ...config, ...{
|
|
137
137
|
method: config.method || "GET",
|
|
138
|
-
url: config.endpoint || "/"
|
|
138
|
+
url: config.endpoint || "/",
|
|
139
|
+
data: config.body
|
|
139
140
|
} }).then((response) => {
|
|
140
141
|
this.emit(EventEnum.response, response);
|
|
141
142
|
return response;
|
package/package.json
CHANGED
|
@@ -23,11 +23,8 @@ export class DatesPassageCommissionAPI extends Core {
|
|
|
23
23
|
return this.request({
|
|
24
24
|
method: 'GET',
|
|
25
25
|
responseType: 'blob',
|
|
26
|
-
endpoint: Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/compte_rendu_global_pdf')
|
|
27
|
-
|
|
28
|
-
const parsedData = JSON.parse(data);
|
|
29
|
-
return parsedData;
|
|
30
|
-
}]
|
|
26
|
+
endpoint: Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/compte_rendu_global_pdf')
|
|
27
|
+
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
30
|
|
|
@@ -42,11 +39,7 @@ export class DatesPassageCommissionAPI extends Core {
|
|
|
42
39
|
return this.request({
|
|
43
40
|
method: 'GET',
|
|
44
41
|
responseType: 'blob',
|
|
45
|
-
endpoint: Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/convocation_pdf')
|
|
46
|
-
transformResponse: [(data) => {
|
|
47
|
-
const parsedData = JSON.parse(data);
|
|
48
|
-
return parsedData;
|
|
49
|
-
}]
|
|
42
|
+
endpoint: Utils.constructPath(pathVariable, '/dates_passage_commission/{date_id}/convocation_pdf')
|
|
50
43
|
});
|
|
51
44
|
}
|
|
52
45
|
|
package/src/api/DossiersAPI.ts
CHANGED
|
@@ -111,11 +111,7 @@ export class DossiersAPI extends Core {
|
|
|
111
111
|
return this.request({
|
|
112
112
|
method: 'GET',
|
|
113
113
|
responseType: 'blob',
|
|
114
|
-
endpoint: Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/pdf')
|
|
115
|
-
transformResponse: [(data) => {
|
|
116
|
-
const parsedData = JSON.parse(data);
|
|
117
|
-
return parsedData;
|
|
118
|
-
}]
|
|
114
|
+
endpoint: Utils.constructPath(pathVariable, '/dossiers/{dossier_id}/rapport_etude/pdf')
|
|
119
115
|
});
|
|
120
116
|
}
|
|
121
117
|
|
|
@@ -40,11 +40,7 @@ export class OrdresDuJourAPI extends Core {
|
|
|
40
40
|
return this.request({
|
|
41
41
|
method: 'GET',
|
|
42
42
|
responseType: 'blob',
|
|
43
|
-
endpoint: Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/compte_rendu_pdf')
|
|
44
|
-
transformResponse: [(data) => {
|
|
45
|
-
const parsedData = JSON.parse(data);
|
|
46
|
-
return parsedData;
|
|
47
|
-
}]
|
|
43
|
+
endpoint: Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/compte_rendu_pdf')
|
|
48
44
|
});
|
|
49
45
|
}
|
|
50
46
|
|
|
@@ -77,11 +73,7 @@ export class OrdresDuJourAPI extends Core {
|
|
|
77
73
|
return this.request({
|
|
78
74
|
method: 'GET',
|
|
79
75
|
responseType: 'blob',
|
|
80
|
-
endpoint: Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/proces_verbal_pdf')
|
|
81
|
-
transformResponse: [(data) => {
|
|
82
|
-
const parsedData = JSON.parse(data);
|
|
83
|
-
return parsedData;
|
|
84
|
-
}]
|
|
76
|
+
endpoint: Utils.constructPath(pathVariable, '/ordres_du_jour/{dossier_id}/proces_verbal_pdf')
|
|
85
77
|
});
|
|
86
78
|
}
|
|
87
79
|
|
package/src/client.ts
CHANGED
|
@@ -163,7 +163,8 @@ export class Client {
|
|
|
163
163
|
this.emit(EventEnum.request, config);
|
|
164
164
|
return this.axios.request<T>({ ...config, ...{
|
|
165
165
|
method: config.method || "GET",
|
|
166
|
-
url: config.endpoint || "/"
|
|
166
|
+
url: config.endpoint || "/",
|
|
167
|
+
data: config.body
|
|
167
168
|
} }).then((response) => {
|
|
168
169
|
this.emit(EventEnum.response, response);
|
|
169
170
|
return response;
|
|
@@ -238,4 +239,4 @@ export class Client {
|
|
|
238
239
|
{
|
|
239
240
|
return this.axios.defaults.baseURL;
|
|
240
241
|
}
|
|
241
|
-
}
|
|
242
|
+
}
|