@johnmorrisdotca/kyogijo-stadiums 0.49.1 → 0.51.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/CHANGELOG.md +16 -0
- package/NOTICE.md +21 -0
- package/README.md +24 -0
- package/catalogue.json +1208 -0
- package/dist/catalogue-entry.d.ts +2 -0
- package/dist/catalogue-entry.js +3 -0
- package/dist/catalogue.d.ts +45 -0
- package/dist/catalogue.data.d.ts +2 -0
- package/dist/catalogue.data.js +1208 -0
- package/dist/catalogue.js +74 -0
- package/dist/catalogue.types.d.ts +143 -0
- package/dist/catalogue.types.js +1 -0
- package/dist/circuits-entry.d.ts +11 -0
- package/dist/circuits-entry.js +9 -0
- package/dist/circuits.d.ts +62 -0
- package/dist/circuits.data.d.ts +2 -0
- package/dist/circuits.data.js +18 -0
- package/dist/circuits.draw.d.ts +56 -0
- package/dist/circuits.draw.js +265 -0
- package/dist/circuits.geo.d.ts +29 -0
- package/dist/circuits.geo.js +105 -0
- package/dist/circuits.js +73 -0
- package/dist/circuits.osm.data.d.ts +2 -0
- package/dist/circuits.osm.data.js +188 -0
- package/dist/circuits.style.d.ts +5 -0
- package/dist/circuits.style.js +34 -0
- package/dist/circuits.turn.d.ts +43 -0
- package/dist/circuits.turn.js +119 -0
- package/dist/circuits.types.d.ts +121 -0
- package/dist/circuits.types.js +1 -0
- package/dist/circuits.words.d.ts +47 -0
- package/dist/circuits.words.js +38 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +18 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CATALOGUE, CATALOGUE_ABOUT, CATALOGUE_ADDRESS, CATALOGUE_COUNTRIES, CATALOGUE_GROUPS, CATALOGUE_SITE, CATALOGUE_SPORTS, catalogueByGroup, catalogueById, catalogueBySport, catalogueByStatus, catalogueCoverage, catalogueWanted } from "./catalogue.ts";
|
|
2
|
+
export type { CatalogueCoverage, CatalogueData, CatalogueDraw, CatalogueDrawn, CatalogueEntry, CatalogueGroup, CatalogueLeague, CatalogueNeed, CatalogueSport, CatalogueStatus, CatalogueTeam, CatalogueWant } from "./catalogue.types.ts";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// The catalogue: every venue the package draws today, those being built and those wanted, with their ids, names in English and Japanese, places, sports and Wikidata items. Data only: it draws
|
|
2
|
+
// nothing and imports none of the drawing, so it is small. The same data is the static file `catalogue.json` (`./catalogue.json` of the package, and `CATALOGUE_ADDRESS` on the web).
|
|
3
|
+
export { CATALOGUE, CATALOGUE_ABOUT, CATALOGUE_ADDRESS, CATALOGUE_COUNTRIES, CATALOGUE_GROUPS, CATALOGUE_SITE, CATALOGUE_SPORTS, catalogueByGroup, catalogueById, catalogueBySport, catalogueByStatus, catalogueCoverage, catalogueWanted } from "./catalogue.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { CatalogueCoverage, CatalogueData, CatalogueEntry, CatalogueGroup, CatalogueLeague, CatalogueSport, CatalogueStatus } from "./catalogue.types.ts";
|
|
2
|
+
/** Every venue: the supported ones first, then those being built, then the wanted ones, each group in its order. */
|
|
3
|
+
export declare const CATALOGUE: readonly CatalogueEntry[];
|
|
4
|
+
/** The leagues (every venue of the season, NBA, MLB, NFL, CFL and NHL) and the collections of the Working on and Wanted sections, each with its venues in order and its name in both languages. */
|
|
5
|
+
export declare const CATALOGUE_GROUPS: readonly CatalogueGroup[];
|
|
6
|
+
/** The sports, with their names in both languages and the `sport` of `drawKyogijo` that draws each (`null`: not drawn yet). */
|
|
7
|
+
export declare const CATALOGUE_SPORTS: CatalogueData["sports"];
|
|
8
|
+
/** The countries of the catalogue by ISO code, with their names in English and Japanese (Wikidata's labels). */
|
|
9
|
+
export declare const CATALOGUE_COUNTRIES: CatalogueData["countries"];
|
|
10
|
+
/** Where `catalogue.json` is published: the same data as this entry, for a page or a program that does not install the package. */
|
|
11
|
+
export declare const CATALOGUE_ADDRESS: string;
|
|
12
|
+
/** The demo's address: a supported venue's `demo` is relative to it. */
|
|
13
|
+
export declare const CATALOGUE_SITE: string;
|
|
14
|
+
/** The counts, the day the sources were read and where they are kept, and the licence of the facts. */
|
|
15
|
+
export declare const CATALOGUE_ABOUT: Pick<CatalogueData, "schemaVersion" | "generatedAt" | "package" | "licence" | "source" | "counts">;
|
|
16
|
+
/**
|
|
17
|
+
* A venue by its id, or `undefined`.
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { catalogueById } from "@johnmorrisdotca/kyogijo-stadiums/catalogue";
|
|
21
|
+
* const ashe = catalogueById("arthur-ashe-stadium")!;
|
|
22
|
+
* console.log(ashe.status, ashe.ticket, ashe.wikidata);
|
|
23
|
+
* // working-on KYOGIJO-STADIUMS-22 Q609551
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function catalogueById(id: string): CatalogueEntry | undefined;
|
|
27
|
+
/** The venues of a status, in the catalogue's order. */
|
|
28
|
+
export declare function catalogueByStatus(status: CatalogueStatus): CatalogueEntry[];
|
|
29
|
+
/** The venues of a sport (any of a venue's sports), in the catalogue's order. */
|
|
30
|
+
export declare function catalogueBySport(sport: CatalogueSport): CatalogueEntry[];
|
|
31
|
+
/** The venues of a group (a league or a collection), in the group's order; empty for a group that does not exist. */
|
|
32
|
+
export declare function catalogueByGroup(group: string): CatalogueEntry[];
|
|
33
|
+
/** Every venue whose building or whole venue is wanted: the venues of the Wanted section and the supported venues of a league or a collection that are drawn as a surface only. */
|
|
34
|
+
export declare function catalogueWanted(): CatalogueEntry[];
|
|
35
|
+
/**
|
|
36
|
+
* How much of a league the package draws: its venues this season, how many in their buildings, how many as a field only, how many not yet.
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { catalogueCoverage } from "@johnmorrisdotca/kyogijo-stadiums/catalogue";
|
|
40
|
+
* const nhl = catalogueCoverage("nhl");
|
|
41
|
+
* console.log(nhl.venues, nhl.outline, nhl.notYet);
|
|
42
|
+
* // 32 32 0
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function catalogueCoverage(league: CatalogueLeague): CatalogueCoverage;
|