geo-sl 1.0.2 → 1.1.0
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/README.md +135 -19
- package/dist/gn.cjs +1 -1
- package/dist/gn.d.cts +33 -1
- package/dist/gn.d.ts +33 -1
- package/dist/gn.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +25 -1
- package/dist/types.d.ts +25 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/gn.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GNDivision, QueryOptions, Language, GNSearchOptions } from './types.cjs';
|
|
2
|
+
export { Village, VillageSearchOptions } from './types.cjs';
|
|
2
3
|
|
|
3
4
|
declare const GN_DIVISIONS: readonly GNDivision[];
|
|
4
5
|
/**
|
|
@@ -36,4 +37,35 @@ declare function findGNByCode(code: string, options?: QueryOptions): GNDivision
|
|
|
36
37
|
*/
|
|
37
38
|
declare function searchGN(query: string, options?: GNSearchOptions): GNDivision[];
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Alias for GN_DIVISIONS.
|
|
42
|
+
* Represents all 14,000+ official villages and wards (Grama Niladhari divisions) in Sri Lanka.
|
|
43
|
+
*/
|
|
44
|
+
declare const VILLAGES: readonly GNDivision[];
|
|
45
|
+
/**
|
|
46
|
+
* Alias for getGNDivisions.
|
|
47
|
+
* Returns all villages (Grama Niladhari divisions) in Sri Lanka.
|
|
48
|
+
*/
|
|
49
|
+
declare const getVillages: typeof getGNDivisions;
|
|
50
|
+
/**
|
|
51
|
+
* Alias for getGNDivisionsByDSD.
|
|
52
|
+
* Returns all villages within a Divisional Secretariat (DS) division.
|
|
53
|
+
*/
|
|
54
|
+
declare const getVillagesByDivision: typeof getGNDivisionsByDSD;
|
|
55
|
+
/**
|
|
56
|
+
* Alias for getGNDivisionsByDistrict.
|
|
57
|
+
* Returns all villages within a district.
|
|
58
|
+
*/
|
|
59
|
+
declare const getVillagesByDistrict: typeof getGNDivisionsByDistrict;
|
|
60
|
+
/**
|
|
61
|
+
* Alias for findGNByCode.
|
|
62
|
+
* Finds a village by its official GN code.
|
|
63
|
+
*/
|
|
64
|
+
declare const findVillageByCode: typeof findGNByCode;
|
|
65
|
+
/**
|
|
66
|
+
* Alias for searchGN.
|
|
67
|
+
* Searches villages across English, Sinhala, Tamil, or GN code.
|
|
68
|
+
*/
|
|
69
|
+
declare const searchVillages: typeof searchGN;
|
|
70
|
+
|
|
71
|
+
export { GN_DIVISIONS, VILLAGES, findGNByCode, findVillageByCode, getGNDivisions, getGNDivisionsByDSD, getGNDivisionsByDistrict, getVillages, getVillagesByDistrict, getVillagesByDivision, searchGN, searchVillages };
|
package/dist/gn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GNDivision, QueryOptions, Language, GNSearchOptions } from './types.js';
|
|
2
|
+
export { Village, VillageSearchOptions } from './types.js';
|
|
2
3
|
|
|
3
4
|
declare const GN_DIVISIONS: readonly GNDivision[];
|
|
4
5
|
/**
|
|
@@ -36,4 +37,35 @@ declare function findGNByCode(code: string, options?: QueryOptions): GNDivision
|
|
|
36
37
|
*/
|
|
37
38
|
declare function searchGN(query: string, options?: GNSearchOptions): GNDivision[];
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Alias for GN_DIVISIONS.
|
|
42
|
+
* Represents all 14,000+ official villages and wards (Grama Niladhari divisions) in Sri Lanka.
|
|
43
|
+
*/
|
|
44
|
+
declare const VILLAGES: readonly GNDivision[];
|
|
45
|
+
/**
|
|
46
|
+
* Alias for getGNDivisions.
|
|
47
|
+
* Returns all villages (Grama Niladhari divisions) in Sri Lanka.
|
|
48
|
+
*/
|
|
49
|
+
declare const getVillages: typeof getGNDivisions;
|
|
50
|
+
/**
|
|
51
|
+
* Alias for getGNDivisionsByDSD.
|
|
52
|
+
* Returns all villages within a Divisional Secretariat (DS) division.
|
|
53
|
+
*/
|
|
54
|
+
declare const getVillagesByDivision: typeof getGNDivisionsByDSD;
|
|
55
|
+
/**
|
|
56
|
+
* Alias for getGNDivisionsByDistrict.
|
|
57
|
+
* Returns all villages within a district.
|
|
58
|
+
*/
|
|
59
|
+
declare const getVillagesByDistrict: typeof getGNDivisionsByDistrict;
|
|
60
|
+
/**
|
|
61
|
+
* Alias for findGNByCode.
|
|
62
|
+
* Finds a village by its official GN code.
|
|
63
|
+
*/
|
|
64
|
+
declare const findVillageByCode: typeof findGNByCode;
|
|
65
|
+
/**
|
|
66
|
+
* Alias for searchGN.
|
|
67
|
+
* Searches villages across English, Sinhala, Tamil, or GN code.
|
|
68
|
+
*/
|
|
69
|
+
declare const searchVillages: typeof searchGN;
|
|
70
|
+
|
|
71
|
+
export { GN_DIVISIONS, VILLAGES, findGNByCode, findVillageByCode, getGNDivisions, getGNDivisionsByDSD, getGNDivisionsByDistrict, getVillages, getVillagesByDistrict, getVillagesByDivision, searchGN, searchVillages };
|