@finbheara/archive-client 0.49.0 → 0.50.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 +7 -0
- package/dist/chunks/{index-9wetmb53.js → index-4f6jpd5e.js} +23 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/stream.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,6 +97,7 @@ c.features; // [{ feature: "dancers", state: "full" | "missing", missing: [...
|
|
|
97
97
|
| `results.attach_basis`, `majors.attach_basis` | the `attach_basis` a row of `results.query`, `majors.results`, `results.stream` and `results.entries` carries (how its `dancer_id` was answered, or why not); absent, never refused, without it | 345 |
|
|
98
98
|
| `results.major`, `majors.major` | the `major` a row of `results.stream` and `results.entries` carries (1 where its competition is a main event of a T1-T3 event, exactly the rows `majors.sqlite` holds); absent without it, and the stream filter `major` is refused by name without it | 345 |
|
|
99
99
|
| `results.relative_place_err`, `majors.relative_place_err` | the `relative_place_err` a row of `results.stream` and `results.entries` carries (how far below `relative_place` the true value may sit, 0 over an exact field); absent, never refused, without it | 350 |
|
|
100
|
+
| `results.marks_printed`, `majors.marks_printed` | the `marks_printed` a row of `results.stream` and `results.entries` carries (the marks total a platform served, iFeis's, one string verbatim beside its `points`); absent, never refused, without it | 350 |
|
|
100
101
|
| `results.round_points_printed`, `majors.round_points_printed` | the `round_points_printed` a row of `results.stream` and `results.entries` carries (the per-round points a platform served, FeisFWD's, in its slot order, a slot served nothing in null); absent, never refused, without it | 350 |
|
|
101
102
|
| `dancers.records.birth_consistency`, `dancers.years.birth_consistency` | the `birth_consistency` (0-100, floored: the percent of the dancer's, or the dancer-year's, readable rows that fit the birth window) and its denominator `birth_consistency_rows` a record of `dancers.records` and a dancer-year of `dancers.years` carry; absent, never refused, without it | 345 |
|
|
102
103
|
| `dancers.records.birth_deadband`, `dancers.years.birth_deadband` | the `birth_deadband_rows` a record of `dancers.records` and a dancer-year of `dancers.years` carry (the readable rows a one-year dance-up alone keeps off the birth window, outside `birth_consistency` and its denominator); absent, never refused, without it | 345 |
|
|
@@ -643,6 +644,12 @@ nothing in null (`[null, null, "275"]`). No slot is mapped onto a round and noth
|
|
|
643
644
|
null where no slot serves a value and on every other source's row. `points_printed` stays the one
|
|
644
645
|
all-round figure a page prints.
|
|
645
646
|
|
|
647
|
+
THE MARKS TOTAL A PLATFORM SERVED, where the release carries it
|
|
648
|
+
(`rel.capability("results.marks_printed")`): `marks_printed`, iFeis's served `marks` beside its
|
|
649
|
+
`points`, one string verbatim (`"462.5"`). It names no round and no judge, so it is never split
|
|
650
|
+
or summed, and the places follow the points, not the marks. Null where the row serves none and on
|
|
651
|
+
every other source's row.
|
|
652
|
+
|
|
646
653
|
THE COMPETITION FIELDS, where the release carries them (`rel.capability("results.stream.competition")`,
|
|
647
654
|
`"majors.stream.competition"` for scope `majors`), are on every row, null meaning no value:
|
|
648
655
|
|
|
@@ -594,6 +594,18 @@ var FEATURES2 = [
|
|
|
594
594
|
since: 350,
|
|
595
595
|
calls: "the same on a row of results.stream and results.entries (scope majors)"
|
|
596
596
|
},
|
|
597
|
+
{
|
|
598
|
+
feature: "results.marks_printed",
|
|
599
|
+
needs: ["results:results.marks_printed"],
|
|
600
|
+
since: 350,
|
|
601
|
+
calls: "the `marks_printed` a row of results.stream and results.entries carries (the marks total a platform served, iFeis's, one string verbatim): absent, never refused, on a release without it"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
feature: "majors.marks_printed",
|
|
605
|
+
needs: ["majors:results.marks_printed"],
|
|
606
|
+
since: 350,
|
|
607
|
+
calls: "the same on a row of results.stream and results.entries (scope majors)"
|
|
608
|
+
},
|
|
597
609
|
{
|
|
598
610
|
feature: "majors.attach_basis",
|
|
599
611
|
needs: ["majors:results.attach_basis"],
|
|
@@ -1540,7 +1552,7 @@ function streamSql(q, shape = {}) {
|
|
|
1540
1552
|
if (q.major !== undefined)
|
|
1541
1553
|
where.push(q.major ? "r.major = 1" : "r.major = 0");
|
|
1542
1554
|
return {
|
|
1543
|
-
sql: `SELECT ${COLUMNS}${shape.competition === true ? COMPETITION_COLUMNS : ""}${shape.competitorsPrinted === true ? ", c.competitors_printed AS competitors_printed" : ""}${shape.attachBasis === true ? ", r.attach_basis AS attach_basis" : ""}${shape.major === true ? ", r.major AS major" : ""}${shape.relativePlaceErr === true ? ", r.relative_place_err AS relative_place_err" : ""}${shape.roundPoints === true ? ", r.round_points_printed AS round_points_printed" : ""} FROM results r JOIN competitions c ON c.file = r.file AND c.line = r.competition_line${where.length === 0 ? "" : ` WHERE ${where.join(" AND ")}`} ORDER BY r.file, r.line`,
|
|
1555
|
+
sql: `SELECT ${COLUMNS}${shape.competition === true ? COMPETITION_COLUMNS : ""}${shape.competitorsPrinted === true ? ", c.competitors_printed AS competitors_printed" : ""}${shape.attachBasis === true ? ", r.attach_basis AS attach_basis" : ""}${shape.major === true ? ", r.major AS major" : ""}${shape.relativePlaceErr === true ? ", r.relative_place_err AS relative_place_err" : ""}${shape.roundPoints === true ? ", r.round_points_printed AS round_points_printed" : ""}${shape.marks === true ? ", r.marks_printed AS marks_printed" : ""} FROM results r JOIN competitions c ON c.file = r.file AND c.line = r.competition_line${where.length === 0 ? "" : ` WHERE ${where.join(" AND ")}`} ORDER BY r.file, r.line`,
|
|
1544
1556
|
args
|
|
1545
1557
|
};
|
|
1546
1558
|
}
|
|
@@ -1693,9 +1705,18 @@ class ResultFinder2 {
|
|
|
1693
1705
|
const major = (await this.rel.capability(`${db}.major`)).state === "full";
|
|
1694
1706
|
const relativePlaceErr = (await this.rel.capability(`${db}.relative_place_err`)).state === "full";
|
|
1695
1707
|
const roundPoints = (await this.rel.capability(`${db}.round_points_printed`)).state === "full";
|
|
1708
|
+
const marks = (await this.rel.capability(`${db}.marks_printed`)).state === "full";
|
|
1696
1709
|
return {
|
|
1697
1710
|
db: this.rel.db(db),
|
|
1698
|
-
shape: {
|
|
1711
|
+
shape: {
|
|
1712
|
+
competition,
|
|
1713
|
+
competitorsPrinted,
|
|
1714
|
+
attachBasis,
|
|
1715
|
+
major,
|
|
1716
|
+
relativePlaceErr,
|
|
1717
|
+
roundPoints,
|
|
1718
|
+
marks
|
|
1719
|
+
}
|
|
1699
1720
|
};
|
|
1700
1721
|
}
|
|
1701
1722
|
async* stream(q) {
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
staleWarning2,
|
|
24
24
|
progressMode2,
|
|
25
25
|
progressRenderer2
|
|
26
|
-
} from "./chunks/index-
|
|
26
|
+
} from "./chunks/index-4f6jpd5e.js";
|
|
27
27
|
import"./chunks/index-hghdy980.js";
|
|
28
28
|
|
|
29
29
|
var USAGE_HEADER = "usage: idq <verb> [--cache <dir>] [--repo <owner/name>] [--json] [--live] [--progress tty|plain|none]";
|
package/dist/index.js
CHANGED
package/dist/types/stream.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface StreamRow extends Partial<StreamCompetition> {
|
|
|
65
65
|
yob_printed: string | null;
|
|
66
66
|
points_printed: string | null;
|
|
67
67
|
round_points_printed?: (string | null)[] | null;
|
|
68
|
+
marks_printed?: string | null;
|
|
68
69
|
platform_dancer_id: string | null;
|
|
69
70
|
primary_source: string | null;
|
|
70
71
|
file: string;
|
|
@@ -81,6 +82,7 @@ export interface StreamShape {
|
|
|
81
82
|
major?: boolean;
|
|
82
83
|
relativePlaceErr?: boolean;
|
|
83
84
|
roundPoints?: boolean;
|
|
85
|
+
marks?: boolean;
|
|
84
86
|
}
|
|
85
87
|
export declare const scopeDb: (s: StreamScope) => "majors" | "results";
|
|
86
88
|
export declare function streamSql(q: StreamQuery, shape?: StreamShape): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/archive-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.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",
|