@finbheara/archive-client 0.3.1 → 0.5.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.
@@ -0,0 +1,105 @@
1
+ import type { IndexBuilder } from "./indexes.js";
2
+ import type { Release } from "./release.js";
3
+ export interface EventYearQuery {
4
+ event?: string;
5
+ year?: number;
6
+ }
7
+ export interface TeamResult {
8
+ address: string;
9
+ competition: string;
10
+ event: string;
11
+ year: number;
12
+ card: string | null;
13
+ comp_no: string | null;
14
+ title: string | null;
15
+ category: string | null;
16
+ hands: number | null;
17
+ letter: string | null;
18
+ label: string | null;
19
+ name_printed: string | null;
20
+ school_printed: string | null;
21
+ school_loc: string | null;
22
+ school_id: string | null;
23
+ place: number | null;
24
+ place_printed: string | null;
25
+ tie: number | null;
26
+ competitors: number | null;
27
+ atts: string[];
28
+ }
29
+ export interface RosterMember {
30
+ seq: number;
31
+ name_printed: string;
32
+ name: string | null;
33
+ yob: number | null;
34
+ dancer_id: number | null;
35
+ dancer_scope: "per-release" | "stable" | null;
36
+ }
37
+ export interface RosterTeam {
38
+ team: string;
39
+ kind: string;
40
+ event: string | null;
41
+ year: number;
42
+ comp_no: string | null;
43
+ title: string | null;
44
+ team_index: string | null;
45
+ seq: number | null;
46
+ school_id: string | null;
47
+ school_printed: string | null;
48
+ members: RosterMember[];
49
+ }
50
+ export interface ResultRoster {
51
+ team: string;
52
+ event: string | null;
53
+ year: number | null;
54
+ comp_no: string | null;
55
+ school_id: string | null;
56
+ result_address: string | null;
57
+ join_kind: string;
58
+ via_split: boolean;
59
+ roster_teams: number | null;
60
+ result_teams: number | null;
61
+ roster_index: string | null;
62
+ result_letter: string | null;
63
+ }
64
+ export interface EventYear {
65
+ event: string;
66
+ year: number;
67
+ date_lo: string | null;
68
+ date_hi: string | null;
69
+ resolution: string | null;
70
+ source: string | null;
71
+ date_printed: string[];
72
+ place: string | null;
73
+ place_printed: string[];
74
+ }
75
+ export declare const teamsIndex: IndexBuilder;
76
+ export declare const eventsIndex: IndexBuilder;
77
+ export declare class TeamFinder {
78
+ private readonly rel;
79
+ constructor(rel: Release);
80
+ private db;
81
+ results(q?: EventYearQuery): Promise<{
82
+ tag: string;
83
+ asked: EventYearQuery;
84
+ results: TeamResult[];
85
+ }>;
86
+ rosters(q?: EventYearQuery): Promise<{
87
+ tag: string;
88
+ asked: EventYearQuery;
89
+ teams: RosterTeam[];
90
+ }>;
91
+ resultRosters(q?: EventYearQuery): Promise<{
92
+ tag: string;
93
+ asked: EventYearQuery;
94
+ joins: ResultRoster[];
95
+ }>;
96
+ }
97
+ export declare class EventFinder {
98
+ private readonly rel;
99
+ constructor(rel: Release);
100
+ years(q?: EventYearQuery): Promise<{
101
+ tag: string;
102
+ asked: EventYearQuery;
103
+ years: EventYear[];
104
+ }>;
105
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/archive-client",
3
- "version": "0.3.1",
3
+ "version": "0.5.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,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@finbheara/domain": "0.49.0",
48
- "@finbheara/names": "0.22.0"
48
+ "@finbheara/names": "0.22.0",
49
+ "hyparquet": "1.31.2"
49
50
  },
50
51
  "devDependencies": {
51
52
  "typescript": "7.0.2"