ekwo-os 0.8.0 → 0.9.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 +10 -5
- package/dist/assets/expected-objects.json +17 -2
- package/dist/assets/migrations/20260923110000_an_archive_survives_being_printed_again.sql +648 -0
- package/dist/assets/migrations/20260928100000_schema_version_0_9_0.sql +42 -0
- package/dist/assets/seed/00_currencies.sql +42 -1
- package/dist/assets/seed/00_territories.sql +1264 -1
- package/dist/assets/seed/100_pack_uy.sql +735 -0
- package/dist/assets/seed/101_pack_ec.sql +534 -0
- package/dist/assets/seed/102_pack_bo.sql +565 -0
- package/dist/assets/seed/103_pack_py.sql +576 -0
- package/dist/assets/seed/104_pack_do.sql +539 -0
- package/dist/assets/seed/105_pack_cr.sql +581 -0
- package/dist/assets/seed/106_pack_gt.sql +601 -0
- package/dist/assets/seed/107_pack_pa.sql +634 -0
- package/dist/assets/seed/108_pack_in.sql +890 -0
- package/dist/assets/seed/109_pack_cn.sql +775 -0
- package/dist/assets/seed/110_pack_ge.sql +536 -0
- package/dist/assets/seed/111_pack_md.sql +672 -0
- package/dist/assets/seed/112_pack_rs.sql +761 -0
- package/dist/assets/seed/113_pack_ba.sql +638 -0
- package/dist/assets/seed/114_pack_al.sql +734 -0
- package/dist/assets/seed/115_pack_mk.sql +591 -0
- package/dist/assets/seed/116_pack_me.sql +673 -0
- package/dist/assets/seed/117_pack_bh.sql +561 -0
- package/dist/assets/seed/118_pack_om.sql +606 -0
- package/dist/assets/seed/119_pack_gh.sql +622 -0
- package/dist/assets/seed/120_pack_tz.sql +583 -0
- package/dist/assets/seed/121_pack_ug.sql +582 -0
- package/dist/assets/seed/122_pack_rw.sql +588 -0
- package/dist/assets/seed/123_pack_xk.sql +567 -0
- package/dist/assets/seed/124_pack_kz.sql +600 -0
- package/dist/assets/seed/38_pack_id.sql +531 -0
- package/dist/assets/seed/39_pack_my.sql +625 -0
- package/dist/assets/seed/44_pack_ph.sql +553 -0
- package/dist/assets/seed/45_pack_ar.sql +587 -0
- package/dist/assets/seed/46_pack_cl.sql +746 -0
- package/dist/assets/seed/47_pack_co.sql +579 -0
- package/dist/assets/seed/48_pack_pe.sql +632 -0
- package/dist/assets/seed/49_pack_ng.sql +616 -0
- package/dist/assets/seed/57_pack_ua.sql +654 -0
- package/dist/assets/seed/58_pack_ca.sql +768 -0
- package/dist/assets/seed/61_pack_se.sql +784 -0
- package/dist/assets/seed/65_pack_dk.sql +595 -0
- package/dist/assets/seed/66_pack_no.sql +584 -0
- package/dist/assets/seed/67_pack_fi.sql +611 -0
- package/dist/assets/seed/68_pack_cz.sql +679 -0
- package/dist/assets/seed/69_pack_sk.sql +662 -0
- package/dist/assets/seed/70_pack_hu.sql +628 -0
- package/dist/assets/seed/72_pack_ro.sql +754 -0
- package/dist/assets/seed/73_pack_bg.sql +561 -0
- package/dist/assets/seed/74_pack_hr.sql +716 -0
- package/dist/assets/seed/75_pack_si.sql +656 -0
- package/dist/assets/seed/76_pack_gr.sql +597 -0
- package/dist/assets/seed/77_pack_lt.sql +611 -0
- package/dist/assets/seed/78_pack_lv.sql +564 -0
- package/dist/assets/seed/79_pack_cy.sql +685 -0
- package/dist/assets/seed/80_pack_mt.sql +833 -0
- package/dist/assets/seed/81_pack_is.sql +532 -0
- package/dist/assets/seed/82_pack_tr.sql +663 -0
- package/dist/assets/seed/83_pack_eg.sql +546 -0
- package/dist/assets/seed/84_pack_ma.sql +666 -0
- package/dist/assets/seed/85_pack_tn.sql +609 -0
- package/dist/assets/seed/86_pack_dz.sql +693 -0
- package/dist/assets/seed/87_pack_il.sql +568 -0
- package/dist/assets/seed/88_pack_za.sql +666 -0
- package/dist/assets/seed/89_pack_ke.sql +596 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -6
- package/dist/cli.js.map +1 -1
- package/dist/commands/import.d.ts +16 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +4 -0
- package/dist/commands/import.js.map +1 -1
- package/dist/pack/describe.d.ts +1 -1
- package/dist/pack/upgrade.d.ts +1 -1
- package/dist/pack/upgrade.js +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +1 -1
- package/package.json +37 -10
package/README.md
CHANGED
|
@@ -65,9 +65,10 @@ either.
|
|
|
65
65
|
three questions whose wrong answer is expensive: the country, the chart and
|
|
66
66
|
the language.
|
|
67
67
|
|
|
68
|
-
4. **Sign in** to your project as that administrator and start booking
|
|
69
|
-
the
|
|
70
|
-
generates from the schema,
|
|
68
|
+
4. **Sign in** to your project as that administrator and start booking — in
|
|
69
|
+
the web application, [Ekwo Cloud](https://cloud.ekwo.ai), which opens your
|
|
70
|
+
own instance, or through the REST API Supabase generates from the schema,
|
|
71
|
+
`psql` or `@ekwo-ai/core`.
|
|
71
72
|
|
|
72
73
|
5. **Do the four things below**, while the dashboard is still open. The
|
|
73
74
|
installer prints them at the end of a successful run, because three of them
|
|
@@ -323,7 +324,7 @@ instead if the account already exists, and no key is needed.
|
|
|
323
324
|
| `ekwo reverse <entry>` | Undoes a posted entry keyed by hand, through `reverse_entry()`: its mirror, posted and matched against it. By id or by number; `--date` as for `cancel`. |
|
|
324
325
|
| `ekwo payment record` | Money in or out, booked and matched. With `--doc`, against that document. |
|
|
325
326
|
| `ekwo match <transaction> <document>` | A bank statement line pays a document, through `settle_from_statement()`. |
|
|
326
|
-
| `ekwo import <source> <file>…` | Books kept elsewhere — `trial-balance`, `fec`, `journal-items`, `journal-report` — whole or not at all, through `import_books()`, with a correspondence of accounts and journals you save and give back; or a bank statement — `camt.053`, `coda`, `cfonb120` — as pending lines. `--dry-run` rehearses. See [taking over books](#taking-over-books-ekwo-import). |
|
|
327
|
+
| `ekwo import <source> <file>…` | Books kept elsewhere — `trial-balance`, `fec`, `journal-items`, `journal-report`, `transaction-journal`, `xaf` — whole or not at all, through `import_books()`, with a correspondence of accounts and journals you save and give back; or a bank statement — `camt.053`, `coda`, `cfonb120` — as pending lines. `--dry-run` rehearses. See [taking over books](#taking-over-books-ekwo-import). |
|
|
327
328
|
| `ekwo doc list` / `show` | What exists, and with `--unpaid` what is posted and still owed. See [keeping books](#keeping-books). |
|
|
328
329
|
|
|
329
330
|
There is no `eject`, because there is nothing to eject from. The schema is in
|
|
@@ -338,7 +339,7 @@ place, so the output reads the same in a file or a CI log — and takes `--json`
|
|
|
338
339
|
for a program.
|
|
339
340
|
|
|
340
341
|
`ekwo help --json` answers the list of commands and, in `usage`, the whole
|
|
341
|
-
text of `--help` without colour: every flag and variable, for an
|
|
342
|
+
text of `--help` without colour: every flag and variable, for an agent
|
|
342
343
|
that reads one document rather than a terminal.
|
|
343
344
|
|
|
344
345
|
Under `--json` the standard output is **one JSON document and nothing else**;
|
|
@@ -572,6 +573,8 @@ ekwo import fec 123456789FEC20251231.txt --mapping map.json --open-years
|
|
|
572
573
|
ekwo import trial-balance balance.csv --opening-date 2026-01-01 --dry-run --save-mapping map.json
|
|
573
574
|
ekwo import journal-items items.csv accounts.csv partners.csv --dry-run --save-mapping map.json
|
|
574
575
|
ekwo import journal-report report.csv chart.csv --date-order dmy --dry-run --save-mapping map.json
|
|
576
|
+
ekwo import transaction-journal journal.csv account-list.csv --date-order mdy --dry-run --save-mapping map.json
|
|
577
|
+
ekwo import xaf books.xaf --open-years --dry-run --save-mapping map.json
|
|
575
578
|
ekwo import camt.053 statement.xml # or coda, cfonb120: pending lines for `ekwo match`
|
|
576
579
|
```
|
|
577
580
|
|
|
@@ -581,6 +584,8 @@ ekwo import camt.053 statement.xml # or coda, cfonb120: pending
|
|
|
581
584
|
| `fec` | A *fichier des écritures comptables*: the eighteen columns of the arrêté of 29 July 2013, tab or bar separated |
|
|
582
585
|
| `journal-items` | The lines of every entry exported as CSV from the list view of an ERP whose ledger is a table of lines, with the chart of accounts and the partners exported beside it |
|
|
583
586
|
| `journal-report` | A journal report or a general ledger detail, saved as CSV from a cloud service's spreadsheet export, with its Journal ID and Account Code columns, and the chart and the contacts beside it |
|
|
587
|
+
| `transaction-journal` | A transaction journal, saved as CSV from a spreadsheet export: each transaction a run of rows under one date, type and number, closed by its total; the list of accounts beside it |
|
|
588
|
+
| `xaf` | An XML Audit File Financial, version 3.2 or 4.0: the accounts, the parties, the opening balance — on the day the file gives it — and every transaction of a year, in one file |
|
|
584
589
|
| `camt.053`, `coda`, `cfonb120` | A bank statement: its lines, pending, ready for `ekwo match` |
|
|
585
590
|
|
|
586
591
|
Each reader is a brick of [`packages/formats/`](../formats/README.md), named
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
3
|
-
"migration": "
|
|
2
|
+
"schemaVersion": "0.9.0",
|
|
3
|
+
"migration": "20260928100000",
|
|
4
4
|
"socle": {
|
|
5
5
|
"schema": "public",
|
|
6
6
|
"tables": [
|
|
@@ -3819,6 +3819,10 @@
|
|
|
3819
3819
|
"name": "cancel_document",
|
|
3820
3820
|
"arguments": "p_document_id uuid, p_date date"
|
|
3821
3821
|
},
|
|
3822
|
+
{
|
|
3823
|
+
"name": "canonical_json",
|
|
3824
|
+
"arguments": "p_value jsonb"
|
|
3825
|
+
},
|
|
3822
3826
|
{
|
|
3823
3827
|
"name": "catch_up_journal_sequence",
|
|
3824
3828
|
"arguments": "p_journal_id uuid, p_date date, p_number text"
|
|
@@ -7026,6 +7030,17 @@
|
|
|
7026
7030
|
"execute"
|
|
7027
7031
|
]
|
|
7028
7032
|
},
|
|
7033
|
+
{
|
|
7034
|
+
"name": "canonical_json",
|
|
7035
|
+
"arguments": "p_value jsonb",
|
|
7036
|
+
"anon": [],
|
|
7037
|
+
"authenticated": [
|
|
7038
|
+
"execute"
|
|
7039
|
+
],
|
|
7040
|
+
"service_role": [
|
|
7041
|
+
"execute"
|
|
7042
|
+
]
|
|
7043
|
+
},
|
|
7029
7044
|
{
|
|
7030
7045
|
"name": "catch_up_journal_sequence",
|
|
7031
7046
|
"arguments": "p_journal_id uuid, p_date date, p_number text",
|