@kadown/types 0.1.2 → 0.1.4

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/index.d.ts CHANGED
@@ -1,52 +1,14 @@
1
1
  import {
2
- SNR_Names,
3
- SNR_Types,
4
- SAD_SAZ_Ethnic_Group,
5
- SAD_SAZ_Names,
6
- District_Names,
2
+ SNRNames,
3
+ SNRTypes,
4
+ SAD_SAZ_EthnicGroup,
5
+ SAD_SAZNames,
6
+ DistrictNames,
7
7
  } from "./lib/admdiv";
8
- import { Geo_Properties } from "./lib/properties";
9
-
10
- /**
11
- * Type Definitions for `geojson`
12
- *
13
- * These definitions are focus for geojson data of Myanmar, that provided by Myanmar Information Management Unit(MIMU).
14
- *
15
- * @see https://geonode.themimu.info/
16
- */
17
- export as namespace GeoDataJson;
8
+ import { GeoProperties } from "./lib/properties";
18
9
 
19
10
  /** Coordinates */
20
11
  export type Coord = number[];
21
-
22
- /**
23
- * Administrative division names of Myanmar (First level)
24
- *
25
- * - 2 sub-region in Bago and 3 sub-state in Shan
26
- */
27
- export type SNRNames = SNR_Names;
28
- /**
29
- * Administrative divisions of Myanmar (First level)
30
- */
31
- export type SNRTypes = SNR_Types;
32
- /**
33
- * Names of Ethnic Group , SAD or SAZ
34
- */
35
- export type SAD_SAZ_EthnicGroup = SAD_SAZ_Ethnic_Group;
36
- /**
37
- * Administrative divisions of Myanmar (Sub-first level && Second level)
38
- *
39
- * Self-Administered Division(SAD) - Sub-first level
40
- *
41
- * Self-Administered Zone(SAZ) - Second level
42
- */
43
- export type SAD_SAZNames = SAD_SAZ_Names;
44
- /** Names of District */
45
- export type DistrictNames = District_Names;
46
- /**
47
- * Geodata properties , base on https://geonode.themimu.info/
48
- */
49
- export type GeoProperties = Geo_Properties;
50
12
  /**
51
13
  * Coordinate Reference System
52
14
  *
@@ -206,3 +168,12 @@ export type GeoJsonObject =
206
168
  | GeometryCollection
207
169
  | GeoFeature
208
170
  | GeoFeatureCollection;
171
+
172
+ export type {
173
+ SNRNames,
174
+ SNRTypes,
175
+ SAD_SAZ_EthnicGroup,
176
+ SAD_SAZNames,
177
+ DistrictNames,
178
+ GeoProperties,
179
+ };
package/lib/admdiv.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * - 2 sub-region in Bago and 3 sub-state in Shan
5
5
  */
6
- export type SNR_Names =
6
+ export type SNRNames =
7
7
  | "Ayeyarwady"
8
8
  | "Bago"
9
9
  | "Chin"
@@ -29,7 +29,7 @@ export type SNR_Names =
29
29
  /**
30
30
  * Administrative divisions of Myanmar (First level)
31
31
  */
32
- export type SNR_Types = "Region" | "State" | "Union Territory";
32
+ export type SNRTypes = "Region" | "State" | "Union Territory";
33
33
  /**
34
34
  * Administrative divisions of Myanmar (Sub-first level && Second level)
35
35
  *
@@ -37,7 +37,7 @@ export type SNR_Types = "Region" | "State" | "Union Territory";
37
37
  *
38
38
  * Self-Administered Zone(SAZ) - Second level
39
39
  */
40
- export type SAD_SAZ_Names =
40
+ export type SAD_SAZNames =
41
41
  | "Danu Self-Administered Zone"
42
42
  | "Pa-O Self-Administered Zone"
43
43
  | "Naga Self-Administered Zone"
@@ -47,7 +47,7 @@ export type SAD_SAZ_Names =
47
47
  /**
48
48
  * Names of Ethnic Group , SAD or SAZ
49
49
  */
50
- export type SAD_SAZ_Ethnic_Group =
50
+ export type SAD_SAZ_EthnicGroup =
51
51
  | "Danu"
52
52
  | "Pa-O"
53
53
  | "Naga"
@@ -55,7 +55,7 @@ export type SAD_SAZ_Ethnic_Group =
55
55
  | "Kokang"
56
56
  | "Pa Laung";
57
57
 
58
- export type District_Names =
58
+ export type DistrictNames =
59
59
  | "Hinthada"
60
60
  | "Labutta"
61
61
  | "Maubin"
package/lib/properties.ts CHANGED
@@ -1,26 +1,26 @@
1
1
  import {
2
- SNR_Names,
3
- SNR_Types,
4
- SAD_SAZ_Ethnic_Group,
5
- SAD_SAZ_Names,
6
- District_Names,
2
+ SNRNames,
3
+ SNRTypes,
4
+ SAD_SAZ_EthnicGroup,
5
+ SAD_SAZNames,
6
+ DistrictNames,
7
7
  } from "./admdiv";
8
8
 
9
- export interface Geo_Properties {
9
+ export interface GeoProperties {
10
10
  /**
11
11
  * Version of Place codes (Pcodes)
12
12
  *
13
13
  * @see{https://themimu.info/place-codes}
14
14
  */
15
- PCode_V: number;
15
+ PCode_V?: number;
16
16
  /** State and Region Names */
17
- ST?: SNR_Names;
17
+ ST?: SNRNames;
18
18
  /** State and Region Names in Myanmar*/
19
19
  ST_MMR?: string;
20
20
  /** Pcode for State and Region */
21
21
  ST_PCODE?: string;
22
22
  /** Administrative division types */
23
- ST_RG?: SNR_Types;
23
+ ST_RG?: SNRTypes;
24
24
  /**
25
25
  * Names
26
26
  *
@@ -28,7 +28,7 @@ export interface Geo_Properties {
28
28
  * 2. Self-Administered Division(SAD)
29
29
  * 3. Self-Administered Zone(SAZ)
30
30
  */
31
- DT?: SAD_SAZ_Names | District_Names;
31
+ DT?: SAD_SAZNames | DistrictNames;
32
32
  /**
33
33
  * Names in Myanmar
34
34
  *
@@ -47,7 +47,7 @@ export interface Geo_Properties {
47
47
  * 1. Self-Administered Division(SAD)
48
48
  * 2. Self-Administered Zone(SAZ)
49
49
  */
50
- SAD_SAZ?: SAD_SAZ_Names;
50
+ SAD_SAZ?: SAD_SAZNames;
51
51
  /**
52
52
  * Names in Burmese
53
53
  *
@@ -58,11 +58,11 @@ export interface Geo_Properties {
58
58
  /**
59
59
  * Names of Athnic Group , SAD or SAZ
60
60
  */
61
- SELF_ADMIN?: SAD_SAZ_Ethnic_Group;
61
+ SELF_ADMIN?: SAD_SAZ_EthnicGroup;
62
62
  /** Pcodes */
63
63
  SAZ_PCODE?: string;
64
64
  /** State and Region Names */
65
- ST_2?: SNR_Names;
65
+ ST_2?: SNRNames;
66
66
  /** Names of Township */
67
67
  TS?: string;
68
68
  /** Names of Township in Burmese */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadown/types",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Type Definitions for geojson",
5
5
  "types": "./index.d.ts",
6
6
  "module": "index.js",