bd-geo-location 1.0.0 → 1.0.2

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/dist/index.js CHANGED
@@ -29154,4 +29154,3 @@ function getGeoHierarchy(locationId, level) {
29154
29154
  getVillagesByUnion,
29155
29155
  searchByName
29156
29156
  });
29157
- //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -29111,4 +29111,3 @@ export {
29111
29111
  getVillagesByUnion,
29112
29112
  searchByName
29113
29113
  };
29114
- //# sourceMappingURL=index.mjs.map
package/dist/react.js CHANGED
@@ -29130,4 +29130,3 @@ function useLocationById(id, type) {
29130
29130
  useUnions,
29131
29131
  useUpazilas
29132
29132
  });
29133
- //# sourceMappingURL=react.js.map
package/dist/react.mjs CHANGED
@@ -29098,4 +29098,3 @@ export {
29098
29098
  useUnions,
29099
29099
  useUpazilas
29100
29100
  };
29101
- //# sourceMappingURL=react.mjs.map
package/dist/vue.js CHANGED
@@ -29173,4 +29173,3 @@ function useLocationById(id, type) {
29173
29173
  useUnions,
29174
29174
  useUpazilas
29175
29175
  });
29176
- //# sourceMappingURL=vue.js.map
package/dist/vue.mjs CHANGED
@@ -29141,4 +29141,3 @@ export {
29141
29141
  useUnions,
29142
29142
  useUpazilas
29143
29143
  };
29144
- //# sourceMappingURL=vue.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bd-geo-location",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Bangladesh geographical location data - Divisions, Districts, Upazilas/Thanas, Unions, Pourosovas, and Villages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -23,8 +23,9 @@
23
23
  }
24
24
  },
25
25
  "scripts": {
26
- "build": "tsup",
26
+ "build": "tsup && npm run build:clean",
27
27
  "build:watch": "tsup --watch",
28
+ "build:clean": "find dist -name '*.d.mts' -delete && find dist -name '*.map' -delete",
28
29
  "dev": "tsup --watch",
29
30
  "prepublishOnly": "npm run build",
30
31
  "data:validate": "node scripts/validate-data.js",
@@ -54,9 +55,13 @@
54
55
  ],
55
56
  "author": "Mazharul Islam",
56
57
  "license": "MIT",
58
+ "homepage": "https://github.com/mazharvai007/bd-geo-location#readme",
57
59
  "repository": {
58
60
  "type": "git",
59
- "url": ""
61
+ "url": "git+https://github.com/mazharvai007/bd-geo-location.git"
62
+ },
63
+ "bugs": {
64
+ "url": "https://github.com/mazharvai007/bd-geo-location/issues"
60
65
  },
61
66
  "files": [
62
67
  "dist"
@@ -1,87 +0,0 @@
1
- /**
2
- * Represents a Village in Bangladesh
3
- */
4
- interface Village {
5
- id: string;
6
- name: string;
7
- nameBn: string;
8
- }
9
- /**
10
- * Represents a Union Council (lowest rural administrative unit)
11
- */
12
- interface Union {
13
- id: string;
14
- name: string;
15
- nameBn: string;
16
- villages?: Village[];
17
- }
18
- /**
19
- * Represents a Pourosova (Municipality)
20
- */
21
- interface Pourosova {
22
- id: string;
23
- name: string;
24
- nameBn: string;
25
- villages?: Village[];
26
- }
27
- /**
28
- * Represents an Upazila (Sub-district) or Thana
29
- */
30
- interface Upazila {
31
- id: string;
32
- name: string;
33
- nameBn: string;
34
- unions?: Union[];
35
- pourosovas?: Pourosova[];
36
- }
37
- /**
38
- * Represents a City Corporation
39
- */
40
- interface CityCorporation {
41
- id: string;
42
- name: string;
43
- nameBn: string;
44
- thanas?: Upazila[];
45
- }
46
- /**
47
- * Represents a District (Zila)
48
- */
49
- interface District {
50
- id: string;
51
- name: string;
52
- nameBn: string;
53
- upazilas?: Upazila[];
54
- cityCorporations?: CityCorporation[];
55
- }
56
- /**
57
- * Represents a Division (primary administrative division)
58
- */
59
- interface Division {
60
- id: string;
61
- name: string;
62
- nameBn: string;
63
- districts?: District[];
64
- }
65
- /**
66
- * Complete geographical hierarchy of Bangladesh
67
- */
68
- interface BangladeshGeoData {
69
- divisions: Division[];
70
- }
71
- /**
72
- * Filter options for querying geographical data
73
- */
74
- interface FilterOptions {
75
- language?: 'en' | 'bn';
76
- searchTerm?: string;
77
- }
78
- /**
79
- * Geographic location response
80
- */
81
- type GeoLocation = Division | District | Upazila | Union | Pourosova | CityCorporation;
82
- /**
83
- * Geographic level type
84
- */
85
- type GeoLevel = 'division' | 'district' | 'upazila' | 'thana' | 'union' | 'pourosova' | 'cityCorporation' | 'village';
86
-
87
- export type { BangladeshGeoData as B, CityCorporation as C, Division as D, FilterOptions as F, GeoLevel as G, Pourosova as P, Upazila as U, Village as V, District as a, Union as b, GeoLocation as c };