@metarisc/metarisc-js 0.0.1-alpha.102 → 0.0.1-alpha.104
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/collection.js
CHANGED
|
@@ -17,9 +17,10 @@ class Collection {
|
|
|
17
17
|
if (this.config.method === 'POST') {
|
|
18
18
|
return this.client.request({
|
|
19
19
|
method: 'POST',
|
|
20
|
-
endpoint: this.config.endpoint,
|
|
20
|
+
endpoint: 'search/' + this.config.endpoint,
|
|
21
21
|
headers: this.config.headers,
|
|
22
|
-
body:
|
|
22
|
+
body: this.config.data,
|
|
23
|
+
params: paginationParams
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
return this.client.request({
|
|
@@ -7,6 +7,8 @@ export type DocumentTechnique = {
|
|
|
7
7
|
'est_manquant': boolean | null;
|
|
8
8
|
};
|
|
9
9
|
export declare enum TypeEnum {
|
|
10
|
+
CERFA = "CERFA",
|
|
11
|
+
COURRIER_DE_LA_MAIRIE = "courrier_de_la_mairie",
|
|
10
12
|
NOTICE_DESCRIPTIVE = "notice_descriptive",
|
|
11
13
|
PLAN = "plan",
|
|
12
14
|
CERTIFICAT_DE_VERIFICATION = "certificat_de_verification",
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.TypeEnum = void 0;
|
|
5
5
|
var TypeEnum;
|
|
6
6
|
(function (TypeEnum) {
|
|
7
|
+
TypeEnum["CERFA"] = "CERFA";
|
|
8
|
+
TypeEnum["COURRIER_DE_LA_MAIRIE"] = "courrier_de_la_mairie";
|
|
7
9
|
TypeEnum["NOTICE_DESCRIPTIVE"] = "notice_descriptive";
|
|
8
10
|
TypeEnum["PLAN"] = "plan";
|
|
9
11
|
TypeEnum["CERTIFICAT_DE_VERIFICATION"] = "certificat_de_verification";
|
package/package.json
CHANGED
package/src/collection.ts
CHANGED
|
@@ -43,9 +43,10 @@ export class Collection<T>
|
|
|
43
43
|
if (this.config.method === 'POST') {
|
|
44
44
|
return this.client.request({
|
|
45
45
|
method: 'POST',
|
|
46
|
-
endpoint: this.config.endpoint,
|
|
46
|
+
endpoint: 'search/' + this.config.endpoint,
|
|
47
47
|
headers: this.config.headers,
|
|
48
|
-
body:
|
|
48
|
+
body: this.config.data,
|
|
49
|
+
params: paginationParams
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -10,6 +10,8 @@ export type DocumentTechnique = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export enum TypeEnum {
|
|
13
|
+
CERFA = 'CERFA',
|
|
14
|
+
COURRIER_DE_LA_MAIRIE = 'courrier_de_la_mairie',
|
|
13
15
|
NOTICE_DESCRIPTIVE = 'notice_descriptive',
|
|
14
16
|
PLAN = 'plan',
|
|
15
17
|
CERTIFICAT_DE_VERIFICATION = 'certificat_de_verification',
|