need4deed-sdk 0.0.187 → 0.0.188
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Feature, FeatureCollection, MultiPolygon, Polygon } from "geojson";
|
|
2
|
+
export type ApiDistrictGeometry = Polygon | MultiPolygon;
|
|
3
|
+
export type ApiDistrictGeometryProperties = {
|
|
4
|
+
districtId: number;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export type ApiDistrictGeometryFeature = Feature<ApiDistrictGeometry, ApiDistrictGeometryProperties>;
|
|
8
|
+
export type ApiDistrictGeometryCollection = FeatureCollection<ApiDistrictGeometry, ApiDistrictGeometryProperties>;
|
package/dist/types/api/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./appreciation"), exports);
|
|
|
21
21
|
__exportStar(require("./comment"), exports);
|
|
22
22
|
__exportStar(require("./common"), exports);
|
|
23
23
|
__exportStar(require("./communication"), exports);
|
|
24
|
+
__exportStar(require("./district-geometry"), exports);
|
|
24
25
|
__exportStar(require("./document"), exports);
|
|
25
26
|
__exportStar(require("./event"), exports);
|
|
26
27
|
__exportStar(require("./language"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "need4deed-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.188",
|
|
4
4
|
"description": "Need4Deed.org SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/need4deed-org/sdk.git"
|
|
38
38
|
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@types/geojson": "^7946.0.16"
|
|
41
|
+
},
|
|
39
42
|
"devDependencies": {
|
|
40
43
|
"@types/react": "^18.0.0",
|
|
41
44
|
"@types/react-dom": "^18.0.0",
|