feat(go): IO layer behind interfaces (M4)
All checks were successful
Deploy to K8s / deploy (push) Successful in 11s
All checks were successful
Deploy to K8s / deploy (push) Successful in 11s
- io/attendance: CSV-over-public-URL client + Fake for adult/junior tabs - io/drive: Drive v3 modifiedTime client + Fake - io/sheets: Sheets v4 client (GetValues/AppendValues/BatchUpdateValues/ WriteHeader/SortByDateColumn) + Fake with call-capture - io/cache: Drive-modifiedTime-gated FileCache; two TTL knobs; atomic writes; generic Get[T]; Python-compatible JSON format; Flush() - io/fio: Client interface backed by Fio REST API (apiClient) and HTML scraper (transparentClient); Fake; testdata fixtures - membership/sources: NewSources wires attendance CSV + Sheets + cache into LoadAdults/LoadJuniors/LoadTransactions/LoadExceptions; Czech month parsing + merged-month maps - banksync: SyncToSheets (SHA-256 dedup, optional sort) and InferPayments ([?] review prefix, dry-run) — tested with fakes - cmd/fuj: sync and infer subcommands wired; fees and reconcile use real NewSources; go.mod gains google.golang.org/api + x/net - gofumpt extra-rules applied across all packages; lint clean Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
29
go/internal/io/fio/testdata/api_response.json
vendored
Normal file
29
go/internal/io/fio/testdata/api_response.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"accountStatement": {
|
||||
"transactionList": {
|
||||
"transaction": [
|
||||
{
|
||||
"column0": {"value": "2026-04-10+0200", "name": "Datum", "id": 0},
|
||||
"column1": {"value": 750.0, "name": "Objem", "id": 1},
|
||||
"column2": {"value": "123456789/0300", "name": "Protiúčet", "id": 2},
|
||||
"column4": {"value": "0308", "name": "KS", "id": 4},
|
||||
"column5": {"value": "123", "name": "VS", "id": 5},
|
||||
"column6": {"value": "", "name": "SS", "id": 6},
|
||||
"column7": {"value": "Jana Nováková", "name": "Uživatelská identifikace", "id": 7},
|
||||
"column10": {"value": "Jana Novakova", "name": "Název protiúčtu", "id": 10},
|
||||
"column14": {"value": "CZK", "name": "Měna", "id": 14},
|
||||
"column16": {"value": "duben 2026", "name": "Zpráva pro příjemce", "id": 16},
|
||||
"column22": {"value": "12345678901", "name": "ID operace", "id": 22}
|
||||
},
|
||||
{
|
||||
"column0": {"value": "2026-04-11+0200", "name": "Datum", "id": 0},
|
||||
"column1": {"value": -200.0, "name": "Objem", "id": 1},
|
||||
"column10": {"value": "Outgoing", "name": "Název protiúčtu", "id": 10},
|
||||
"column14": {"value": "CZK", "name": "Měna", "id": 14},
|
||||
"column16": {"value": "", "name": "Zpráva pro příjemce", "id": 16},
|
||||
"column22": {"value": "99999999999", "name": "ID operace", "id": 22}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
37
go/internal/io/fio/testdata/transparent.html
vendored
Normal file
37
go/internal/io/fio/testdata/transparent.html
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<!-- First table (ignored) -->
|
||||
<table class="table"><tr><td>ignored</td></tr></table>
|
||||
<!-- Second table (target) -->
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr><th>Datum</th><th>Částka</th><th>Typ</th><th>Název protiúčtu</th><th>Zpráva</th><th>KS</th><th>VS</th><th>SS</th><th>Poznámka</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>10.04.2026</td>
|
||||
<td>750,00 CZK</td>
|
||||
<td>Příjem</td>
|
||||
<td>Jana Novakova</td>
|
||||
<td>duben 2026</td>
|
||||
<td>0308</td>
|
||||
<td>123</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>09.04.2026</td>
|
||||
<td>-200,00 CZK</td>
|
||||
<td>Odchozí</td>
|
||||
<td>Someone</td>
|
||||
<td>outgoing</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user