@legalplace/wizardx-core 4.25.5 → 4.25.7
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.
|
@@ -9,3 +9,4 @@ export declare const getUserProfileArguments: () => [RequestInfo, RequestInit?];
|
|
|
9
9
|
export declare const updateInstanceArguments: (permalink: string, uniqid: string | undefined, ovc: OvcType, draft: number, additionalProperties?: Record<string, string | number> | undefined) => [RequestInfo, RequestInit?];
|
|
10
10
|
export declare const updateProofModule: (uniqid: string) => [RequestInfo, RequestInit?];
|
|
11
11
|
export declare const getInpiActivities: () => [RequestInfo, RequestInit?];
|
|
12
|
+
export declare const getInpiCitiesWithGouv: (limit: number, inputValue: string) => [RequestInfo, RequestInit?];
|
|
@@ -193,3 +193,18 @@ export const getInpiActivities = () => {
|
|
|
193
193
|
},
|
|
194
194
|
];
|
|
195
195
|
};
|
|
196
|
+
export const getInpiCitiesWithGouv = (limit, inputValue) => {
|
|
197
|
+
const apiEndpoint = getConfig().apiEndpoint + (/\/$/.test(getConfig().apiEndpoint) ? "" : "/");
|
|
198
|
+
const url = `${apiEndpoint}uploadx/json/code-postal-inpi-with-gouv?limit=${limit}&inputValue=${encodeURIComponent(inputValue)}`;
|
|
199
|
+
return [
|
|
200
|
+
url,
|
|
201
|
+
{
|
|
202
|
+
method: "GET",
|
|
203
|
+
credentials: "include",
|
|
204
|
+
headers: {
|
|
205
|
+
"Content-Type": "application/json",
|
|
206
|
+
Authorization: `Bearer ${getAuthToken()}`,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.7",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"xss": "^1.0.9"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@legalplace/data-gouv": "^1.5.
|
|
57
|
+
"@legalplace/data-gouv": "^1.5.58",
|
|
58
58
|
"@legalplace/eslint-config": "^2.2.0",
|
|
59
59
|
"@legalplace/models-v3-types": "^5.13.4",
|
|
60
60
|
"@legalplace/prettier-config": "^2.1.3",
|
|
61
|
-
"@legalplace/typeorm-entities": "^5.
|
|
61
|
+
"@legalplace/typeorm-entities": "^5.43.0",
|
|
62
62
|
"@swc-node/jest": "^1.3.2",
|
|
63
63
|
"@swc/core": "^1.2.93",
|
|
64
64
|
"@swc/jest": "^0.2.4",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"*.test.ts",
|
|
97
97
|
"*.test.tsx"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "a855e7f2cf2ce63e9cd1da2b24fbf6c7e6283c48"
|
|
100
100
|
}
|