@finbheara/archive-client 0.32.0 → 0.33.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
CHANGED
|
@@ -99,6 +99,7 @@ c.features; // [{ feature: "dancers", state: "full" | "missing", missing: [...
|
|
|
99
99
|
| `events` | `events.years` | 260 |
|
|
100
100
|
| `upcoming.feises` | `upcoming.feises`, and the `next` of `feises.series` (null with the reason without it) | 285 |
|
|
101
101
|
| `upcoming.fields`, `upcoming.entrants` | `upcoming.fields`, `upcoming.entrants` (285 and 290 carry the tables empty) | 291 |
|
|
102
|
+
| `upcoming.fields.instance` | the `feis_instance_id` `upcoming.fields` carries; absent, never refused, without it | 320 |
|
|
102
103
|
| `tabs`, `panels` | `tabs.query`, `tabs.stream`; `panels.query` | 184 |
|
|
103
104
|
| `feis-panels` | `feisPanels.query` | 260 |
|
|
104
105
|
| `staff.adjudicators` | `staff.adjudicators` | 230 |
|
|
@@ -697,7 +698,8 @@ o.feises; // [{ occurrence_id, occurrence_ids, name_printed, date_lo, date_hi
|
|
|
697
698
|
// feis_brand_id, feis_instance_id, series_basis, brand_candidates, captured_id, state }]
|
|
698
699
|
const f = await rel.upcoming.fields({ state: "pending" }); // state, feis, field_id, from, to
|
|
699
700
|
f.fields; // [{ field_id, feis_id, source, host_id, competition_code, count_only, occurrence_id,
|
|
700
|
-
// name_printed, date_lo, date_hi, year, feis_brand_id,
|
|
701
|
+
// name_printed, date_lo, date_hi, year, feis_brand_id, feis_instance_id, comp,
|
|
702
|
+
// state, flags,
|
|
701
703
|
// results_competitions, results_feis_ids, held_out, merged_into, version, versions,
|
|
702
704
|
// captured_date, sha256,
|
|
703
705
|
// limits, entrants, stated_rows, printed_total }]
|
|
@@ -712,7 +714,10 @@ d.departures; // [{ field_id, feis_id, occurrence_id, feis_brand_id, competition
|
|
|
712
714
|
`upcoming.feises` is every occurrence of the cut's feis-index the release holds no results of:
|
|
713
715
|
`upcoming` (dated on or after the cut's day) or `no-results` (before it), each with every
|
|
714
716
|
platform's or calendar's listing (`hosts`) and its feis series where one was named (`series_basis`
|
|
715
|
-
says how; `none` leaves `feis_brand_id` null, the unjoined ones).
|
|
717
|
+
says how; `none` leaves `feis_brand_id` null, the unjoined ones). An occurrence whose series one
|
|
718
|
+
filed brand answers is given its `feis_instance_id` when it is ANNOUNCED, before any capture of it
|
|
719
|
+
is held (`series_basis` `announced` on every later release), and its captures land on that
|
|
720
|
+
instance when they arrive, so a field's `feis_instance_id` is the id its results will carry.
|
|
716
721
|
|
|
717
722
|
A FIELD is one competition a competitor list names, `<feis_id>/<code>`, the same id on every cut. A later capture of the host is a new `version`
|
|
718
723
|
(a capture id; `versions` lists them), never a new field. `state` says how it stands on the cut:
|
|
@@ -682,6 +682,12 @@ var FEATURES2 = [
|
|
|
682
682
|
since: 291,
|
|
683
683
|
calls: "upcoming.fields (285 and 290 carry the table empty)"
|
|
684
684
|
},
|
|
685
|
+
{
|
|
686
|
+
feature: "upcoming.fields.instance",
|
|
687
|
+
needs: ["results:upcoming_fields.feis_instance_id"],
|
|
688
|
+
since: 320,
|
|
689
|
+
calls: "upcoming.fields' `feis_instance_id` (absent, never null, without it)"
|
|
690
|
+
},
|
|
685
691
|
{
|
|
686
692
|
feature: "upcoming.entrants",
|
|
687
693
|
needs: [
|
|
@@ -4135,6 +4141,7 @@ function fieldOf(r) {
|
|
|
4135
4141
|
date_hi: r.date_hi ?? null,
|
|
4136
4142
|
year: r.year,
|
|
4137
4143
|
feis_brand_id: r.feis_brand_id ?? null,
|
|
4144
|
+
...r.feis_instance_id === undefined ? {} : { feis_instance_id: r.feis_instance_id ?? null },
|
|
4138
4145
|
comp: r.comp_arm === null ? null : {
|
|
4139
4146
|
arm: r.comp_arm,
|
|
4140
4147
|
source: r.comp_source ?? null,
|
package/dist/cli.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
latestCheck2,
|
|
22
22
|
within,
|
|
23
23
|
staleWarning2
|
|
24
|
-
} from "./chunks/index-
|
|
24
|
+
} from "./chunks/index-g8ab43kz.js";
|
|
25
25
|
import"./chunks/index-hghdy980.js";
|
|
26
26
|
|
|
27
27
|
var USAGE_HEADER = "usage: idq <verb> [--cache <dir>] [--repo <owner/name>] [--json] [--live]";
|
package/dist/index.js
CHANGED
package/dist/types/upcoming.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/archive-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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",
|