@finbheara/archive-client 0.11.0 → 0.13.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 +43 -14
- package/dist/chunks/{index-7hw19tw1.js → index-1ty89s8d.js} +510 -327
- package/dist/cli.js +1 -1
- package/dist/index.js +5 -5
- package/dist/types/dancers-names.d.ts +1 -1
- package/dist/types/dancers.d.ts +14 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schools.d.ts +9 -0
- package/dist/types/stream.d.ts +1 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,10 +8,6 @@ import {
|
|
|
8
8
|
nameLevel2,
|
|
9
9
|
NO_CALENDAR2,
|
|
10
10
|
FeisFinder2,
|
|
11
|
-
columnsOf2,
|
|
12
|
-
FEATURES2,
|
|
13
|
-
capabilityOf2,
|
|
14
|
-
needsRelease2,
|
|
15
11
|
entryRank2,
|
|
16
12
|
FEIS_LOCAL_ID_FLOOR2,
|
|
17
13
|
ResultFinder2,
|
|
@@ -40,13 +36,17 @@ import {
|
|
|
40
36
|
httpsRemote2,
|
|
41
37
|
fallbackRemote2,
|
|
42
38
|
setRemote2,
|
|
39
|
+
columnsOf2,
|
|
40
|
+
FEATURES2,
|
|
41
|
+
capabilityOf2,
|
|
42
|
+
needsRelease2,
|
|
43
43
|
resolveTag2,
|
|
44
44
|
Release2,
|
|
45
45
|
openRelease2,
|
|
46
46
|
openCached2,
|
|
47
47
|
ReleaseManager2,
|
|
48
48
|
releases2
|
|
49
|
-
} from "./chunks/index-
|
|
49
|
+
} from "./chunks/index-1ty89s8d.js";
|
|
50
50
|
import {
|
|
51
51
|
cacheRoot2,
|
|
52
52
|
repoOf2
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PersonName, type TransitiveLevel } from "@finbheara/names/normalize";
|
|
2
|
-
export type NameLevel = TransitiveLevel | "initial" | "middle" | "surname" | "like";
|
|
2
|
+
export type NameLevel = TransitiveLevel | "initial" | "middle" | "form" | "surname" | "like";
|
|
3
3
|
export declare const NAME_LEVELS: readonly NameLevel[];
|
|
4
4
|
export declare const finer: (a: NameLevel, b: NameLevel) => NameLevel;
|
|
5
5
|
export declare function nameLevel(q: PersonName, c: PersonName): NameLevel | null;
|
package/dist/types/dancers.d.ts
CHANGED
|
@@ -52,7 +52,9 @@ export interface DancerCandidate {
|
|
|
52
52
|
school: SchoolEvidence;
|
|
53
53
|
population: PopulationEvidence;
|
|
54
54
|
region: RegionEvidence;
|
|
55
|
+
form?: string[];
|
|
55
56
|
};
|
|
57
|
+
widened?: "birth-conflict";
|
|
56
58
|
prints: {
|
|
57
59
|
print: string;
|
|
58
60
|
rows: number;
|
|
@@ -82,13 +84,19 @@ export interface DancerRegion {
|
|
|
82
84
|
}
|
|
83
85
|
export interface ExcludedCandidate {
|
|
84
86
|
candidate: DancerCandidate;
|
|
85
|
-
why: "age" | "population" | "region" | "school";
|
|
87
|
+
why: "age" | "population" | "region" | "school" | "given" | "name-form";
|
|
86
88
|
}
|
|
87
89
|
export interface InitialsRefuted {
|
|
88
90
|
dancer_id: number;
|
|
89
|
-
why: "school" | "age" | "population" | "region";
|
|
91
|
+
why: "school" | "age" | "population" | "region" | "given" | "name-form";
|
|
90
92
|
fact: string;
|
|
91
93
|
}
|
|
94
|
+
export interface Narrowing {
|
|
95
|
+
open: number[];
|
|
96
|
+
heldByDanceUp: number[];
|
|
97
|
+
refuted: InitialsRefuted[];
|
|
98
|
+
year: number;
|
|
99
|
+
}
|
|
92
100
|
export interface DancerAnswer {
|
|
93
101
|
tag: string;
|
|
94
102
|
asked: DancerQuery;
|
|
@@ -128,12 +136,9 @@ export interface DancerAnswer {
|
|
|
128
136
|
lineage?: string[];
|
|
129
137
|
};
|
|
130
138
|
refused?: string;
|
|
131
|
-
initials?:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
refuted: InitialsRefuted[];
|
|
135
|
-
year: number;
|
|
136
|
-
};
|
|
139
|
+
initials?: Narrowing;
|
|
140
|
+
fullName?: Narrowing;
|
|
141
|
+
widened?: "birth-conflict" | "name-form";
|
|
137
142
|
}
|
|
138
143
|
export interface DancerSearchQuery extends Omit<DancerQuery, "name"> {
|
|
139
144
|
name?: string;
|
|
@@ -216,6 +221,7 @@ export declare class DancerResolver {
|
|
|
216
221
|
years: DancerYear[];
|
|
217
222
|
}>;
|
|
218
223
|
resolve(q: DancerQuery): Promise<DancerAnswer>;
|
|
224
|
+
private formsOf;
|
|
219
225
|
search(q: DancerSearchQuery): Promise<DancerAnswer>;
|
|
220
226
|
private capped;
|
|
221
227
|
get(dancerId: number): Promise<DancerRecord | null>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type AssetPlan, DATABASES, type DatabaseName, type LandedFile, type Receipt, type ReleaseManifest, planAsset, } from "./assets.js";
|
|
2
2
|
export { sha256File, unzstdTo } from "./bytes.js";
|
|
3
|
-
export { type AgeAsked, type AgeEvidence, type DancerAnswer, type DancerBulkRecord, type DancerCandidate, type DancerQuery, type DancerRecord, DancerResolver, type DancerRegion, type DancerSchool, type DancerSearchQuery, type DancerYear, type ExcludedCandidate, FEIS_LOCAL_ID_FLOOR, type InitialsRefuted, initialsOnly, type OireachtasAsked, type PopulationEvidence, type RegionEvidence, type SchoolEvidence, readPopulation, } from "./dancers.js";
|
|
3
|
+
export { type AgeAsked, type AgeEvidence, type DancerAnswer, type DancerBulkRecord, type DancerCandidate, type DancerQuery, type DancerRecord, DancerResolver, type DancerRegion, type DancerSchool, type DancerSearchQuery, type DancerYear, type ExcludedCandidate, FEIS_LOCAL_ID_FLOOR, type InitialsRefuted, type Narrowing, initialsOnly, type OireachtasAsked, type PopulationEvidence, type RegionEvidence, type SchoolEvidence, readPopulation, } from "./dancers.js";
|
|
4
4
|
export { NAME_LEVELS, type NameLevel, nameLevel } from "./dancers-names.js";
|
|
5
5
|
export { type Comp, type CompAnswer, type CompDance, type CompKind, type CompQuery, CompResolver, type CompSource, type FeisPlace, type SyllabusAnswer, type SyllabusForAnswer, type SyllabusSource, type TitleCheck, canonicalOf, } from "./comps.js";
|
|
6
6
|
export { type ClientOptions, cacheRoot, repoOf } from "./config.js";
|
package/dist/types/schools.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export interface SchoolCandidate {
|
|
|
10
10
|
prints: string[];
|
|
11
11
|
regions: string[];
|
|
12
12
|
places: string[];
|
|
13
|
+
years?: {
|
|
14
|
+
lo: number | null;
|
|
15
|
+
hi: number | null;
|
|
16
|
+
};
|
|
13
17
|
}
|
|
14
18
|
export interface SchoolAnswer {
|
|
15
19
|
tag: string;
|
|
@@ -20,6 +24,10 @@ export interface SchoolAnswer {
|
|
|
20
24
|
asked: string;
|
|
21
25
|
narrowed: boolean;
|
|
22
26
|
};
|
|
27
|
+
year?: {
|
|
28
|
+
asked: number;
|
|
29
|
+
narrowed: boolean;
|
|
30
|
+
};
|
|
23
31
|
redirected?: {
|
|
24
32
|
from: string;
|
|
25
33
|
to: string;
|
|
@@ -28,6 +36,7 @@ export interface SchoolAnswer {
|
|
|
28
36
|
}
|
|
29
37
|
export interface SchoolQuery {
|
|
30
38
|
region?: string;
|
|
39
|
+
year?: number;
|
|
31
40
|
}
|
|
32
41
|
export interface SchoolReaderChoice {
|
|
33
42
|
id: string;
|
package/dist/types/stream.d.ts
CHANGED
|
@@ -50,7 +50,6 @@ export interface StreamRow {
|
|
|
50
50
|
dancer_scope: "per-release" | "stable" | null;
|
|
51
51
|
yob: number | null;
|
|
52
52
|
yob_printed: string | null;
|
|
53
|
-
printed_age: string | null;
|
|
54
53
|
points_printed: string | null;
|
|
55
54
|
platform_dancer_id: string | null;
|
|
56
55
|
primary_source: string | null;
|
|
@@ -61,12 +60,8 @@ export interface EntryRow extends StreamRow {
|
|
|
61
60
|
recall_place: number | null;
|
|
62
61
|
}
|
|
63
62
|
export declare function entryRank(section: string): number;
|
|
64
|
-
export interface StreamColumns {
|
|
65
|
-
printedAge: boolean;
|
|
66
|
-
}
|
|
67
|
-
export declare const streamColumns: (db: Database) => StreamColumns;
|
|
68
63
|
export declare const scopeDb: (s: StreamScope) => "majors" | "results";
|
|
69
|
-
export declare function streamSql(q: StreamQuery
|
|
64
|
+
export declare function streamSql(q: StreamQuery): {
|
|
70
65
|
sql: string;
|
|
71
66
|
args: (string | number)[];
|
|
72
67
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/archive-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Open a versioned release of an Irish dance results archive: download, verify, decompress and cache it by tag, keep the cache, and resolve feises and schools against it",
|
|
5
5
|
"keywords": ["irish-dance", "results", "release", "cache", "sqlite"],
|
|
6
6
|
"license": "MIT",
|