text-to-map 1.1.46 → 1.1.47
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/LICENSE +21 -21
- package/README.md +69 -69
- package/dist/bin/address-points.d.ts +1 -1
- package/dist/bin/address-points.js +16 -16
- package/dist/bin/cities.d.ts +1 -1
- package/dist/bin/cities.js +10 -10
- package/dist/bin/clear-all.d.ts +1 -1
- package/dist/bin/clear-all.js +13 -13
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +4 -4
- package/dist/bin/generate-syntax-diagrams.d.ts +1 -1
- package/dist/bin/generate-syntax-diagrams.js +20 -20
- package/dist/bin/init-db.d.ts +1 -1
- package/dist/bin/init-db.js +8 -8
- package/dist/bin/knex.d.ts +1 -1
- package/dist/bin/knex.js +10 -10
- package/dist/bin/parse-ordinance.d.ts +1 -1
- package/dist/bin/parse-ordinance.js +74 -74
- package/dist/bin/polygons.d.ts +1 -1
- package/dist/bin/polygons.js +27 -27
- package/dist/bin/regions.d.ts +1 -1
- package/dist/bin/regions.js +10 -10
- package/dist/bin/schools.d.ts +1 -1
- package/dist/bin/schools.js +10 -10
- package/dist/bin/streets.d.ts +1 -1
- package/dist/bin/streets.js +19 -19
- package/dist/bin/sync-all.d.ts +1 -1
- package/dist/bin/sync-all.js +4 -4
- package/dist/db/address-points.d.ts +59 -59
- package/dist/db/address-points.js +401 -399
- package/dist/db/cities.d.ts +7 -7
- package/dist/db/cities.js +95 -95
- package/dist/db/db.d.ts +37 -37
- package/dist/db/db.js +191 -191
- package/dist/db/founders.d.ts +14 -14
- package/dist/db/founders.js +461 -461
- package/dist/db/meta.d.ts +4 -4
- package/dist/db/meta.js +26 -26
- package/dist/db/migrations/20230704125715_initial.js +304 -304
- package/dist/db/migrations/20230731232915_city_positions.js +13 -13
- package/dist/db/migrations/20240106224603_city_polygon.js +11 -11
- package/dist/db/migrations/20240320200534_district_polygon.js +11 -11
- package/dist/db/migrations/20250316162700_kindergartens.js +12 -12
- package/dist/db/regions.d.ts +31 -31
- package/dist/db/regions.js +81 -81
- package/dist/db/schools.d.ts +7 -7
- package/dist/db/schools.js +95 -95
- package/dist/db/street-sync.d.ts +6 -6
- package/dist/db/street-sync.js +22 -22
- package/dist/db/sync-log.d.ts +9 -9
- package/dist/db/sync-log.js +66 -66
- package/dist/db/types.d.ts +59 -59
- package/dist/db/types.js +26 -26
- package/dist/index.d.ts +23 -23
- package/dist/index.js +32 -32
- package/dist/open-data-sync/address-points.d.ts +2 -2
- package/dist/open-data-sync/address-points.js +68 -68
- package/dist/open-data-sync/cities.d.ts +2 -2
- package/dist/open-data-sync/cities.js +32 -32
- package/dist/open-data-sync/common.d.ts +2 -2
- package/dist/open-data-sync/common.js +22 -22
- package/dist/open-data-sync/regions.d.ts +2 -2
- package/dist/open-data-sync/regions.js +37 -37
- package/dist/open-data-sync/schools.d.ts +3 -3
- package/dist/open-data-sync/schools.js +207 -207
- package/dist/open-data-sync/streets.d.ts +2 -2
- package/dist/open-data-sync/streets.js +132 -132
- package/dist/smd-to-csv/json-to-csv.d.ts +1 -1
- package/dist/smd-to-csv/json-to-csv.js +154 -154
- package/dist/smd-to-csv/ordinance-to-csv-rules.d.ts +1 -1
- package/dist/smd-to-csv/ordinance-to-csv-rules.js +23 -23
- package/dist/smd-to-csv/txt-to-json.d.ts +1 -1
- package/dist/smd-to-csv/txt-to-json.js +92 -92
- package/dist/souradnice.csv +6260 -6260
- package/dist/street-markdown/municipality.d.ts +11 -11
- package/dist/street-markdown/municipality.js +116 -116
- package/dist/street-markdown/polygons.d.ts +7 -7
- package/dist/street-markdown/polygons.js +261 -261
- package/dist/street-markdown/roman-numerals.d.ts +1 -1
- package/dist/street-markdown/roman-numerals.js +68 -68
- package/dist/street-markdown/smd-line-parser.d.ts +4 -4
- package/dist/street-markdown/smd-line-parser.js +40 -40
- package/dist/street-markdown/smd-parser.d.ts +23 -23
- package/dist/street-markdown/smd-parser.js +393 -393
- package/dist/street-markdown/smd.d.ts +24 -24
- package/dist/street-markdown/smd.js +440 -440
- package/dist/street-markdown/token-definition.d.ts +25 -25
- package/dist/street-markdown/token-definition.js +168 -168
- package/dist/street-markdown/types.d.ts +148 -148
- package/dist/street-markdown/types.js +13 -13
- package/dist/utils/atom.d.ts +2 -2
- package/dist/utils/atom.js +57 -57
- package/dist/utils/helpers.d.ts +28 -28
- package/dist/utils/helpers.js +176 -176
- package/dist/utils/jtsk2wgs84.d.ts +17 -17
- package/dist/utils/jtsk2wgs84.js +82 -82
- package/package.json +109 -109
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Founder, SchoolType } from "../db/types";
|
|
2
|
-
import { ErrorCallbackParams, IntermediateMunicipality, IntermediateMunicipalityResult, IntermediateSchool, Municipality, ProcessLineCallbackParams, SmdError, SmdState } from "./types";
|
|
3
|
-
interface ParseOrdinanceProps {
|
|
4
|
-
lines: string[];
|
|
5
|
-
initialState?: Partial<SmdState>;
|
|
6
|
-
onError?: (params: ErrorCallbackParams) => void;
|
|
7
|
-
onWarning?: (params: ErrorCallbackParams) => void;
|
|
8
|
-
onProcessedLine?: (params: ProcessLineCallbackParams) => void;
|
|
9
|
-
includeUnmappedAddressPoints: boolean;
|
|
10
|
-
schoolType: SchoolType;
|
|
11
|
-
}
|
|
12
|
-
export declare const parseOrdinanceToAddressPoints: ({ lines, initialState, onError, onWarning, onProcessedLine, includeUnmappedAddressPoints, schoolType, }: ParseOrdinanceProps) => Promise<Municipality[]>;
|
|
13
|
-
export declare const convertMunicipality: (municipality: IntermediateMunicipality) => Municipality;
|
|
14
|
-
export declare const getNewMunicipalityByName: (name: string, schoolType: SchoolType) => Promise<IntermediateMunicipalityResult>;
|
|
15
|
-
export declare const getNewMunicipalityByFounderId: (founderId: number, schoolType: SchoolType) => Promise<IntermediateMunicipalityResult>;
|
|
16
|
-
export declare const getNewSchool: ({ name, founder, lineNumber, required, onError, }: {
|
|
17
|
-
name: string;
|
|
18
|
-
founder: Founder | null;
|
|
19
|
-
lineNumber: number;
|
|
20
|
-
required: boolean;
|
|
21
|
-
onError: (params: ErrorCallbackParams) => void;
|
|
22
|
-
}) => Promise<IntermediateSchool | null>;
|
|
23
|
-
export declare const wholeLineError: (message: string, line: string) => SmdError;
|
|
24
|
-
export {};
|
|
1
|
+
import { Founder, SchoolType } from "../db/types";
|
|
2
|
+
import { ErrorCallbackParams, IntermediateMunicipality, IntermediateMunicipalityResult, IntermediateSchool, Municipality, ProcessLineCallbackParams, SmdError, SmdState } from "./types";
|
|
3
|
+
interface ParseOrdinanceProps {
|
|
4
|
+
lines: string[];
|
|
5
|
+
initialState?: Partial<SmdState>;
|
|
6
|
+
onError?: (params: ErrorCallbackParams) => void;
|
|
7
|
+
onWarning?: (params: ErrorCallbackParams) => void;
|
|
8
|
+
onProcessedLine?: (params: ProcessLineCallbackParams) => void;
|
|
9
|
+
includeUnmappedAddressPoints: boolean;
|
|
10
|
+
schoolType: SchoolType;
|
|
11
|
+
}
|
|
12
|
+
export declare const parseOrdinanceToAddressPoints: ({ lines, initialState, onError, onWarning, onProcessedLine, includeUnmappedAddressPoints, schoolType, }: ParseOrdinanceProps) => Promise<Municipality[]>;
|
|
13
|
+
export declare const convertMunicipality: (municipality: IntermediateMunicipality) => Municipality;
|
|
14
|
+
export declare const getNewMunicipalityByName: (name: string, schoolType: SchoolType) => Promise<IntermediateMunicipalityResult>;
|
|
15
|
+
export declare const getNewMunicipalityByFounderId: (founderId: number, schoolType: SchoolType) => Promise<IntermediateMunicipalityResult>;
|
|
16
|
+
export declare const getNewSchool: ({ name, founder, lineNumber, required, onError, }: {
|
|
17
|
+
name: string;
|
|
18
|
+
founder: Founder | null;
|
|
19
|
+
lineNumber: number;
|
|
20
|
+
required: boolean;
|
|
21
|
+
onError: (params: ErrorCallbackParams) => void;
|
|
22
|
+
}) => Promise<IntermediateSchool | null>;
|
|
23
|
+
export declare const wholeLineError: (message: string, line: string) => SmdError;
|
|
24
|
+
export {};
|