@finbheara/archive-client 0.9.0 → 0.11.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/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  nameOrderOf,
5
5
  openRelease2,
6
6
  releases2
7
- } from "./chunks/index-1sj5zr8k.js";
7
+ } from "./chunks/index-7hw19tw1.js";
8
8
  import"./chunks/index-hne1wadw.js";
9
9
  import"./chunks/index-hghdy980.js";
10
10
 
package/dist/index.js CHANGED
@@ -8,10 +8,15 @@ import {
8
8
  nameLevel2,
9
9
  NO_CALENDAR2,
10
10
  FeisFinder2,
11
+ columnsOf2,
12
+ FEATURES2,
13
+ capabilityOf2,
14
+ needsRelease2,
11
15
  entryRank2,
12
16
  FEIS_LOCAL_ID_FLOOR2,
13
17
  ResultFinder2,
14
18
  MajorsFinder2,
19
+ initialsOnly2,
15
20
  DancerResolver2,
16
21
  readPopulation2,
17
22
  canonicalOf2,
@@ -35,17 +40,13 @@ import {
35
40
  httpsRemote2,
36
41
  fallbackRemote2,
37
42
  setRemote2,
38
- columnsOf2,
39
- FEATURES2,
40
- capabilityOf2,
41
- needsRelease2,
42
43
  resolveTag2,
43
44
  Release2,
44
45
  openRelease2,
45
46
  openCached2,
46
47
  ReleaseManager2,
47
48
  releases2
48
- } from "./chunks/index-1sj5zr8k.js";
49
+ } from "./chunks/index-7hw19tw1.js";
49
50
  import {
50
51
  cacheRoot2,
51
52
  repoOf2
@@ -94,6 +95,7 @@ export {
94
95
  httpsRemote2 as httpsRemote,
95
96
  indexKey2 as indexKey,
96
97
  indexPath2 as indexPath,
98
+ initialsOnly2 as initialsOnly,
97
99
  isCurrent2 as isCurrent,
98
100
  listIndexes2 as listIndexes,
99
101
  nameLevel2 as nameLevel,
@@ -1,7 +1,9 @@
1
+ import { type PersonName } from "@finbheara/names/normalize";
1
2
  import { type NameLevel } from "./dancers-names.js";
2
3
  import type { IndexBuilder } from "./indexes.js";
3
4
  import type { Release } from "./release.js";
4
5
  import { FEIS_LOCAL_ID_FLOOR } from "./results.js";
6
+ export declare function initialsOnly(name: PersonName): boolean;
5
7
  export { FEIS_LOCAL_ID_FLOOR };
6
8
  export type NameOrderAsked = "surname-first" | "given-first" | "unknown";
7
9
  export type AgeAsked = {
@@ -80,7 +82,12 @@ export interface DancerRegion {
80
82
  }
81
83
  export interface ExcludedCandidate {
82
84
  candidate: DancerCandidate;
83
- why: "age" | "population" | "region";
85
+ why: "age" | "population" | "region" | "school";
86
+ }
87
+ export interface InitialsRefuted {
88
+ dancer_id: number;
89
+ why: "school" | "age" | "population" | "region";
90
+ fact: string;
84
91
  }
85
92
  export interface DancerAnswer {
86
93
  tag: string;
@@ -121,6 +128,12 @@ export interface DancerAnswer {
121
128
  lineage?: string[];
122
129
  };
123
130
  refused?: string;
131
+ initials?: {
132
+ open: number[];
133
+ heldByDanceUp: number[];
134
+ refuted: InitialsRefuted[];
135
+ year: number;
136
+ };
124
137
  }
125
138
  export interface DancerSearchQuery extends Omit<DancerQuery, "name"> {
126
139
  name?: string;
@@ -184,6 +197,7 @@ export interface DancerYear {
184
197
  export declare class DancerResolver {
185
198
  private readonly rel;
186
199
  private readonly printIds;
200
+ private readonly rowIds;
187
201
  private lineageOf;
188
202
  private regions;
189
203
  constructor(rel: Release);
@@ -208,6 +222,8 @@ export declare class DancerResolver {
208
222
  private answer;
209
223
  private readOireachtas;
210
224
  private schoolEvidence;
225
+ private schoolRefutes;
226
+ private schoolIdsOf;
211
227
  private readAge;
212
228
  }
213
229
  export declare function readPopulation(asked: string): NonNullable<DancerAnswer["population"]>;
@@ -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 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, 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";
@@ -50,6 +50,7 @@ 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;
53
54
  points_printed: string | null;
54
55
  platform_dancer_id: string | null;
55
56
  primary_source: string | null;
@@ -60,8 +61,12 @@ export interface EntryRow extends StreamRow {
60
61
  recall_place: number | null;
61
62
  }
62
63
  export declare function entryRank(section: string): number;
64
+ export interface StreamColumns {
65
+ printedAge: boolean;
66
+ }
67
+ export declare const streamColumns: (db: Database) => StreamColumns;
63
68
  export declare const scopeDb: (s: StreamScope) => "majors" | "results";
64
- export declare function streamSql(q: StreamQuery): {
69
+ export declare function streamSql(q: StreamQuery, carried?: StreamColumns): {
65
70
  sql: string;
66
71
  args: (string | number)[];
67
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/archive-client",
3
- "version": "0.9.0",
3
+ "version": "0.11.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",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@finbheara/domain": "0.50.0",
48
- "@finbheara/names": "0.23.0",
48
+ "@finbheara/names": "0.25.0",
49
49
  "hyparquet": "1.31.2"
50
50
  },
51
51
  "devDependencies": {