ekwo-os 0.25.2 → 0.26.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 +8 -1
- package/dist/assets/expected-objects.json +324 -4
- package/dist/assets/migrations/20261107100000_a_control_account_reads_contact_by_contact.sql +269 -0
- package/dist/assets/migrations/20261108120000_an_electronic_invoice_arrives_by_the_same_door.sql +150 -0
- package/dist/assets/migrations/20261108152128_a_bank_account_keeps_the_profile_of_its_csv_statements.sql +26 -0
- package/dist/assets/migrations/20261110124117_the_socle_policies_ask_once.sql +177 -0
- package/dist/assets/migrations/20261115070000_a_financial_year_opens_on_any_month.sql +86 -0
- package/dist/assets/migrations/20261115080000_the_portfolio_reads_what_is_overdue.sql +119 -0
- package/dist/assets/migrations/20261115100000_a_declaration_has_a_short_name.sql +256 -0
- package/dist/assets/migrations/20261118144012_a_quote_carries_its_answer.sql +397 -0
- package/dist/assets/migrations/20261118170000_schema_version_0_26_0.sql +49 -0
- package/dist/assets/modules/budgets/supabase/migrations/20261109153212_budgets_policies_ask_once.sql +93 -0
- package/dist/assets/modules/consolidation/supabase/migrations/20261109154107_consolidation_policies_ask_once.sql +93 -0
- package/dist/assets/modules/contracts/supabase/migrations/20261109154842_contracts_policies_ask_once.sql +93 -0
- package/dist/assets/modules/corporate-tax/supabase/migrations/20261109160318_tax_policies_ask_once.sql +93 -0
- package/dist/assets/modules/crm/supabase/migrations/20261109120000_crm_reads_hold_at_volume.sql +95 -0
- package/dist/assets/modules/crm/supabase/migrations/20261115090000_crm_contact_vcard.sql +159 -0
- package/dist/assets/modules/crm/supabase/migrations/20261118145000_crm_deal_documents.sql +569 -0
- package/dist/assets/modules/einvoicing/supabase/migrations/20261109155021_einvoicing_policies_ask_once.sql +93 -0
- package/dist/assets/modules/fixed-assets/supabase/migrations/20261109155512_assets_policies_ask_once.sql +93 -0
- package/dist/assets/seed/00_currencies.sql +5 -0
- package/dist/assets/seed/00_territories.sql +57 -0
- package/dist/assets/seed/10_pack_be.sql +1 -1
- package/dist/assets/seed/11_pack_fr.sql +1 -1
- package/dist/assets/seed/13_pack_ee.sql +9 -4
- package/dist/assets/seed/15_pack_us.sql +1 -1
- package/dist/assets/seed/220_pack_ad.sql +666 -0
- package/dist/assets/seed/224_pack_pw.sql +642 -0
- package/dist/assets/seed/226_pack_sb.sql +614 -0
- package/dist/assets/seed/43_pack_pt.sql +14 -5
- package/dist/assets/seed/500_pack_nr.sql +468 -0
- package/dist/assets/seed/61_pack_se.sql +9 -5
- package/dist/assets/seed/64_pack_pl.sql +5 -2
- package/dist/assets/seed/65_pack_dk.sql +7 -4
- package/dist/assets/seed/67_pack_fi.sql +7 -2
- package/dist/assets/seed/68_pack_cz.sql +8 -2
- package/dist/assets/seed/70_pack_hu.sql +11 -7
- package/dist/assets/seed/72_pack_ro.sql +11 -7
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +44 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands/bank.d.ts +16 -0
- package/dist/commands/bank.d.ts.map +1 -0
- package/dist/commands/bank.js +82 -0
- package/dist/commands/bank.js.map +1 -0
- package/dist/commands/close.d.ts +33 -0
- package/dist/commands/close.d.ts.map +1 -0
- package/dist/commands/close.js +213 -0
- package/dist/commands/close.js.map +1 -0
- package/dist/commands/crm.d.ts +5 -4
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +70 -5
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/document.d.ts +2 -1
- package/dist/commands/document.d.ts.map +1 -1
- package/dist/commands/document.js +58 -4
- package/dist/commands/document.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +81 -6
- package/dist/commands/import.js.map +1 -1
- package/dist/company-choices.d.ts +2 -1
- package/dist/company-choices.d.ts.map +1 -1
- package/dist/company-choices.js +2 -1
- package/dist/company-choices.js.map +1 -1
- package/dist/inventory.d.ts.map +1 -1
- package/dist/inventory.js +8 -0
- package/dist/inventory.js.map +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +5 -2
- package/dist/output.js.map +1 -1
- package/dist/pack/certification.js +1 -1
- package/dist/pack/certification.js.map +1 -1
- package/dist/pack/compile.js +10 -2
- package/dist/pack/compile.js.map +1 -1
- package/dist/pack/describe.d.ts +3 -1
- package/dist/pack/describe.d.ts.map +1 -1
- package/dist/pack/describe.js +3 -2
- package/dist/pack/describe.js.map +1 -1
- package/dist/pack/read.d.ts +7 -0
- package/dist/pack/read.d.ts.map +1 -1
- package/dist/pack/read.js +1 -0
- package/dist/pack/read.js.map +1 -1
- package/package.json +2 -2
- package/schema/output.1.json +105 -0
package/README.md
CHANGED
|
@@ -182,6 +182,8 @@ project reports what was already there and creates nothing a second time.
|
|
|
182
182
|
| `ekwo line contacts suggest [--line <line>]…` / `ekwo line contact set <line> <contact>` | The open receivable and payable lines that name nobody — open items of books imported line by line — with the contacts each could be, best first: a learned motif, the number of a document of the company quoted in the label, the description or the reference of the entry, the words of a contact's name, and how many contacts the same evidence reached. `set` names one, once, through `set_line_contact()`, and the label is learned for the next time. A contact by name or id. |
|
|
183
183
|
| `ekwo line unnamed leave <line> --reason <text>` / `ekwo line unnamed undo <line>` | Leaves such a line without a contact on purpose, with the reason, through `leave_line_unnamed()`: it is no longer suggested a contact and stays an open item. `undo` takes it back. |
|
|
184
184
|
| `ekwo line combinations suggest [--contact <contact>]` / `ekwo line match <line> <line>… [--difference <reason>]` / `ekwo line differences list` | Which open receivable and payable lines of one counterparty settle each other — an exact pair, several lines to the cent, or within the company's difference tolerance — through `suggest_item_combinations()`; `match` matches the lines named in one gesture under one letter (`reconcile_many()`), or with `--difference` books the difference on the account the pack gives for the reason and matches everything (`reconcile_with_difference()`); `differences list` gives the reasons, their accounts and the tolerance. |
|
|
185
|
+
| `ekwo bank list [--all]` | The bank accounts of the company, with their identifier, currency and id, and whether each keeps the profile of its CSV statements. |
|
|
186
|
+
| `ekwo bank profile <account> [<file.json> \| --clear]` | Reads, keeps or forgets the profile of an account's CSV statements — the lay-out of its bank's export, kept on the account for every member and every import. Checked as the reader checks it. |
|
|
185
187
|
| `ekwo payment record` | Money in or out, booked and matched. With `--doc`, against that document. |
|
|
186
188
|
| `ekwo match <transaction> <document>… [--amount <amount>]… [--extra "account=<code>,amount=<amount>,tax=<code>"]…` | A bank statement line pays documents, through `settle_from_statement()`: `--amount`, once per document, says how much settles each; `--extra` books the fee or the charges the line is net of in the same entry, and alone settles a bank charge. The line balances to the cent or is refused. |
|
|
187
189
|
| `ekwo analytic axes`, `ekwo analytic report --axis <code> --from <date> --to <date>` | The analytic axes of the company and their values; and the income, expense, result and fixed-asset movement of each value of one axis over a period, read by `analytic_report()` from the posted ledger, a parent with the subtotal of the values below it, then the part no share of the axis reaches and the total of the period. |
|
|
@@ -192,7 +194,9 @@ project reports what was already there and creates nothing a second time.
|
|
|
192
194
|
| `ekwo vat --from <date> --to <date> [--form <code>]` | The VAT return of the period, read by `vat_return()`: every box with its name and amount, in the order the form of the country pack prints them, the boxes the form derives from the others marked computed. `--form` names the declaration where the country files several. A period the company does not file that form on is refused by the database, by name. It prepares figures; it files nothing. |
|
|
193
195
|
| `ekwo ecsl --from <date> --to <date> [--form <code>]` | The recapitulative statement of supplies to customers in other Member States, read by `ec_sales_list()`: one line per customer VAT number and nature, credit notes deducted, and a warning for each line that cannot be filed as it stands. With `--form`, the period is checked against the cadence the company files that statement on. |
|
|
194
196
|
| `ekwo statement [<code> --from <date> --to <date>]` | Without a code, the balance sheets and income statements the company can be presented on, read by `available_statements()` — the schemes of its country pack, the ones its chart reports on marked default, and the generic framework by account type. With a code, that statement for the period, read by `financial_statement()`: every line, nil included, in the order the scheme prints it, totals in bold, and every account no line catches, from `unmapped_accounts()`, so a statement that does not tie out says so. It prepares figures; it files nothing. |
|
|
195
|
-
| `ekwo
|
|
197
|
+
| `ekwo close month <YYYY-MM>` / `ekwo close year <name\|id> [--final]` | A month closed by moving the lock date of the company to its last day, after which nothing dated on or before it can be booked, changed or cancelled; the lock only moves forward. A financial year closed by `close_fiscal_year()` — the result leaves the income statement the way the country pack says — with a warning when the country also requires a final close, by when; `--final` is that final close, `close_fiscal_year_finally()`, which nobody can undo. Each shows what it is about to do and asks; outside a terminal, and under `--json`, it refuses unless `--yes` is given. Only an owner of the company may move the lock. |
|
|
198
|
+
| `ekwo reopen month <YYYY-MM>` / `ekwo reopen year <name\|id>` | The same, undone: the lock date back to the day before the month, so that month and every one after it are open again; the entries a year's close wrote reversed by `reopen_fiscal_year()`, never deleted. A year under a final close is refused by the database. Asks the same way. |
|
|
199
|
+
| `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`, and CSV described by a column profile (`csv --bank-account <id>`, with `--csv-profile <file.json>` until the account keeps one) — as pending lines. `--dry-run` rehearses. See [taking over books](#taking-over-books-ekwo-import). |
|
|
196
200
|
| `ekwo doc list` / `show` | What exists, and with `--unpaid` what is posted and still owed. See [keeping books](#keeping-books). |
|
|
197
201
|
| `ekwo doc pdf <document>` | The PDF of a sale invoice or credit note, rendered from the books by [`@ekwo-ai/invoice-pdf`](../formats/invoice-pdf/README.md), with the logo the company names by URL (fetched by this command, from a public http(s) address only). Written to `--out`, or under its own name in the current directory. `--factur-x` embeds the CII of a posted sale and makes it a Factur-X PDF/A-3 (the rules it breaks end on exit 1); `--page-size Letter`; the words of the layout are in the document's language where a set exists for it (de, en, es, fr, nl), in English otherwise, and `--labels <file.json>` puts other words over them. `ekwo document` is the whole word of `ekwo doc`. Records nothing. |
|
|
198
202
|
| `ekwo proof stamp` / `upgrade` / `verify` | The sha256 of a filed file — a declaration, the annual accounts of a financial year, a document — committed to Bitcoin through the public OpenTimestamps calendars; only the hash leaves. `upgrade` completes the pending proofs of the company and is made to run on a schedule; `verify` checks a file against its proof and the block it names, and `--out` writes the `.ots` file any verifier reads. See [`docs/filing-proofs.md`](../../docs/filing-proofs.md). |
|
|
@@ -310,6 +314,8 @@ ekwo import fec FEC20251231.txt --dry-run --open-years --save-mapping map.json
|
|
|
310
314
|
$EDITOR map.json # answer what is null, check what is suggested
|
|
311
315
|
ekwo import fec FEC20251231.txt --mapping map.json --open-years
|
|
312
316
|
ekwo import camt.053 statement.xml # or coda, cfonb120: pending lines for `ekwo match`
|
|
317
|
+
ekwo import csv export.csv --csv-profile bank.json --bank-account <id> # a CSV, read with the profile of its columns
|
|
318
|
+
ekwo import csv next.csv --bank-account <id> # the next one: the account kept the profile
|
|
313
319
|
```
|
|
314
320
|
|
|
315
321
|
| Source | What it reads |
|
|
@@ -321,6 +327,7 @@ ekwo import camt.053 statement.xml # or coda, cfonb120: pending
|
|
|
321
327
|
| `transaction-journal` | A transaction journal saved as CSV, with its list of accounts |
|
|
322
328
|
| `xaf` | An XML Audit File Financial, version 3.2 or 4.0 |
|
|
323
329
|
| `camt.053`, `coda`, `cfonb120` | A bank statement: its lines, pending, ready for `ekwo match` |
|
|
330
|
+
| `csv` | A statement exported as CSV — a bank, a payment service, a card — described by a column profile, a JSON file (see [`@ekwo-ai/csv-statement`](../formats/csv-statement/README.md)) given with `--csv-profile`. The profile belongs to the bank account: once an import with it succeeds, the account keeps it (`bank_accounts.statement_profile`) and the next CSV of it — imported by anybody, from here, the MCP server or the web application — needs no `--csv-profile`; `ekwo bank profile <account> [<file.json> | --clear]` reads, sets or forgets it. `--bank-account` names the account, since the file does not; without a running balance column, `--opening` and `--closing` give the balances the bank shows, which prove no line is missing |
|
|
324
331
|
|
|
325
332
|
`ekwo import --help` also lists the exports of other ledgers by the software
|
|
326
333
|
they come from, and [`docs/compatibility.md`](../../docs/compatibility.md)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
3
|
-
"migration": "
|
|
2
|
+
"schemaVersion": "0.26.0",
|
|
3
|
+
"migration": "20261118170000",
|
|
4
4
|
"socle": {
|
|
5
5
|
"schema": "ekwo",
|
|
6
6
|
"tables": [
|
|
@@ -521,6 +521,10 @@
|
|
|
521
521
|
"name": "name",
|
|
522
522
|
"type": "text"
|
|
523
523
|
},
|
|
524
|
+
{
|
|
525
|
+
"name": "statement_profile",
|
|
526
|
+
"type": "jsonb"
|
|
527
|
+
},
|
|
524
528
|
{
|
|
525
529
|
"name": "updated_at",
|
|
526
530
|
"type": "timestamp with time zone"
|
|
@@ -2286,6 +2290,14 @@
|
|
|
2286
2290
|
{
|
|
2287
2291
|
"name": "documents",
|
|
2288
2292
|
"columns": [
|
|
2293
|
+
{
|
|
2294
|
+
"name": "accepted_at",
|
|
2295
|
+
"type": "timestamp with time zone"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"name": "accepted_by",
|
|
2299
|
+
"type": "text"
|
|
2300
|
+
},
|
|
2289
2301
|
{
|
|
2290
2302
|
"name": "accounting_date",
|
|
2291
2303
|
"type": "date"
|
|
@@ -2346,6 +2358,10 @@
|
|
|
2346
2358
|
"name": "currency_code_tax",
|
|
2347
2359
|
"type": "character(3)"
|
|
2348
2360
|
},
|
|
2361
|
+
{
|
|
2362
|
+
"name": "declined_at",
|
|
2363
|
+
"type": "timestamp with time zone"
|
|
2364
|
+
},
|
|
2349
2365
|
{
|
|
2350
2366
|
"name": "delivery_address_line1",
|
|
2351
2367
|
"type": "text"
|
|
@@ -4040,6 +4056,10 @@
|
|
|
4040
4056
|
"name": "rounding_unit",
|
|
4041
4057
|
"type": "numeric"
|
|
4042
4058
|
},
|
|
4059
|
+
{
|
|
4060
|
+
"name": "short_name",
|
|
4061
|
+
"type": "text"
|
|
4062
|
+
},
|
|
4043
4063
|
{
|
|
4044
4064
|
"name": "valid_from",
|
|
4045
4065
|
"type": "date"
|
|
@@ -4731,6 +4751,10 @@
|
|
|
4731
4751
|
"document_tax_summary"
|
|
4732
4752
|
],
|
|
4733
4753
|
"functions": [
|
|
4754
|
+
{
|
|
4755
|
+
"name": "accept_document",
|
|
4756
|
+
"arguments": "p_document_id uuid, p_accepted_by text, p_at timestamp with time zone"
|
|
4757
|
+
},
|
|
4734
4758
|
{
|
|
4735
4759
|
"name": "accept_invitation",
|
|
4736
4760
|
"arguments": "p_token text"
|
|
@@ -5007,6 +5031,10 @@
|
|
|
5007
5031
|
"name": "companies_number_format_is_valid",
|
|
5008
5032
|
"arguments": ""
|
|
5009
5033
|
},
|
|
5034
|
+
{
|
|
5035
|
+
"name": "companies_of_caller",
|
|
5036
|
+
"arguments": ""
|
|
5037
|
+
},
|
|
5010
5038
|
{
|
|
5011
5039
|
"name": "companies_vat_period_is_a_filing_period",
|
|
5012
5040
|
"arguments": ""
|
|
@@ -5191,6 +5219,10 @@
|
|
|
5191
5219
|
"name": "declared_on_of",
|
|
5192
5220
|
"arguments": "p_tax_point_date date, p_entry_date date"
|
|
5193
5221
|
},
|
|
5222
|
+
{
|
|
5223
|
+
"name": "decline_document",
|
|
5224
|
+
"arguments": "p_document_id uuid, p_at timestamp with time zone"
|
|
5225
|
+
},
|
|
5194
5226
|
{
|
|
5195
5227
|
"name": "default_statement_code",
|
|
5196
5228
|
"arguments": "p_company_id uuid, p_kind text, p_at date"
|
|
@@ -5267,6 +5299,10 @@
|
|
|
5267
5299
|
"name": "document_territory",
|
|
5268
5300
|
"arguments": "p_document_id uuid, p_party text"
|
|
5269
5301
|
},
|
|
5302
|
+
{
|
|
5303
|
+
"name": "document_to_answer",
|
|
5304
|
+
"arguments": "p_document_id uuid"
|
|
5305
|
+
},
|
|
5270
5306
|
{
|
|
5271
5307
|
"name": "document_version",
|
|
5272
5308
|
"arguments": "p_document_id uuid"
|
|
@@ -5509,7 +5545,7 @@
|
|
|
5509
5545
|
},
|
|
5510
5546
|
{
|
|
5511
5547
|
"name": "general_ledger",
|
|
5512
|
-
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[]"
|
|
5548
|
+
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[], p_contact_ids uuid[]"
|
|
5513
5549
|
},
|
|
5514
5550
|
{
|
|
5515
5551
|
"name": "has_capability",
|
|
@@ -5779,6 +5815,10 @@
|
|
|
5779
5815
|
"name": "portfolio_filings_touched_since",
|
|
5780
5816
|
"arguments": "p_from date, p_to date"
|
|
5781
5817
|
},
|
|
5818
|
+
{
|
|
5819
|
+
"name": "portfolio_overview",
|
|
5820
|
+
"arguments": "p_on date"
|
|
5821
|
+
},
|
|
5782
5822
|
{
|
|
5783
5823
|
"name": "portfolio_upcoming_filings",
|
|
5784
5824
|
"arguments": "p_from date, p_to date"
|
|
@@ -5835,6 +5875,14 @@
|
|
|
5835
5875
|
"name": "purge_audit_log",
|
|
5836
5876
|
"arguments": "p_before date"
|
|
5837
5877
|
},
|
|
5878
|
+
{
|
|
5879
|
+
"name": "quote_status",
|
|
5880
|
+
"arguments": "p_document documents"
|
|
5881
|
+
},
|
|
5882
|
+
{
|
|
5883
|
+
"name": "quote_statuses",
|
|
5884
|
+
"arguments": "p_document_ids uuid[]"
|
|
5885
|
+
},
|
|
5838
5886
|
{
|
|
5839
5887
|
"name": "read_bank_account_identifier",
|
|
5840
5888
|
"arguments": "p_scheme text, p_raw text"
|
|
@@ -6019,6 +6067,10 @@
|
|
|
6019
6067
|
"name": "storage_path_company",
|
|
6020
6068
|
"arguments": "p_name text"
|
|
6021
6069
|
},
|
|
6070
|
+
{
|
|
6071
|
+
"name": "subledger",
|
|
6072
|
+
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[]"
|
|
6073
|
+
},
|
|
6022
6074
|
{
|
|
6023
6075
|
"name": "suggest_combination",
|
|
6024
6076
|
"arguments": "p_transaction_id uuid"
|
|
@@ -6131,6 +6183,10 @@
|
|
|
6131
6183
|
"name": "unarchive_company",
|
|
6132
6184
|
"arguments": "p_company_id uuid"
|
|
6133
6185
|
},
|
|
6186
|
+
{
|
|
6187
|
+
"name": "undo_document_answer",
|
|
6188
|
+
"arguments": "p_document_id uuid"
|
|
6189
|
+
},
|
|
6134
6190
|
{
|
|
6135
6191
|
"name": "undo_leave_line_unnamed",
|
|
6136
6192
|
"arguments": "p_line_id uuid"
|
|
@@ -9080,6 +9136,17 @@
|
|
|
9080
9136
|
}
|
|
9081
9137
|
],
|
|
9082
9138
|
"functions": [
|
|
9139
|
+
{
|
|
9140
|
+
"name": "accept_document",
|
|
9141
|
+
"arguments": "p_document_id uuid, p_accepted_by text, p_at timestamp with time zone",
|
|
9142
|
+
"anon": [],
|
|
9143
|
+
"authenticated": [
|
|
9144
|
+
"execute"
|
|
9145
|
+
],
|
|
9146
|
+
"service_role": [
|
|
9147
|
+
"execute"
|
|
9148
|
+
]
|
|
9149
|
+
},
|
|
9083
9150
|
{
|
|
9084
9151
|
"name": "accept_invitation",
|
|
9085
9152
|
"arguments": "p_token text",
|
|
@@ -9764,6 +9831,17 @@
|
|
|
9764
9831
|
"authenticated": [],
|
|
9765
9832
|
"service_role": []
|
|
9766
9833
|
},
|
|
9834
|
+
{
|
|
9835
|
+
"name": "companies_of_caller",
|
|
9836
|
+
"arguments": "",
|
|
9837
|
+
"anon": [],
|
|
9838
|
+
"authenticated": [
|
|
9839
|
+
"execute"
|
|
9840
|
+
],
|
|
9841
|
+
"service_role": [
|
|
9842
|
+
"execute"
|
|
9843
|
+
]
|
|
9844
|
+
},
|
|
9767
9845
|
{
|
|
9768
9846
|
"name": "companies_vat_period_is_a_filing_period",
|
|
9769
9847
|
"arguments": "",
|
|
@@ -10227,6 +10305,17 @@
|
|
|
10227
10305
|
"execute"
|
|
10228
10306
|
]
|
|
10229
10307
|
},
|
|
10308
|
+
{
|
|
10309
|
+
"name": "decline_document",
|
|
10310
|
+
"arguments": "p_document_id uuid, p_at timestamp with time zone",
|
|
10311
|
+
"anon": [],
|
|
10312
|
+
"authenticated": [
|
|
10313
|
+
"execute"
|
|
10314
|
+
],
|
|
10315
|
+
"service_role": [
|
|
10316
|
+
"execute"
|
|
10317
|
+
]
|
|
10318
|
+
},
|
|
10230
10319
|
{
|
|
10231
10320
|
"name": "default_statement_code",
|
|
10232
10321
|
"arguments": "p_company_id uuid, p_kind text, p_at date",
|
|
@@ -10400,6 +10489,17 @@
|
|
|
10400
10489
|
"execute"
|
|
10401
10490
|
]
|
|
10402
10491
|
},
|
|
10492
|
+
{
|
|
10493
|
+
"name": "document_to_answer",
|
|
10494
|
+
"arguments": "p_document_id uuid",
|
|
10495
|
+
"anon": [],
|
|
10496
|
+
"authenticated": [
|
|
10497
|
+
"execute"
|
|
10498
|
+
],
|
|
10499
|
+
"service_role": [
|
|
10500
|
+
"execute"
|
|
10501
|
+
]
|
|
10502
|
+
},
|
|
10403
10503
|
{
|
|
10404
10504
|
"name": "document_version",
|
|
10405
10505
|
"arguments": "p_document_id uuid",
|
|
@@ -10985,7 +11085,7 @@
|
|
|
10985
11085
|
},
|
|
10986
11086
|
{
|
|
10987
11087
|
"name": "general_ledger",
|
|
10988
|
-
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[]",
|
|
11088
|
+
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[], p_contact_ids uuid[]",
|
|
10989
11089
|
"anon": [],
|
|
10990
11090
|
"authenticated": [
|
|
10991
11091
|
"execute"
|
|
@@ -11736,6 +11836,17 @@
|
|
|
11736
11836
|
"execute"
|
|
11737
11837
|
]
|
|
11738
11838
|
},
|
|
11839
|
+
{
|
|
11840
|
+
"name": "portfolio_overview",
|
|
11841
|
+
"arguments": "p_on date",
|
|
11842
|
+
"anon": [],
|
|
11843
|
+
"authenticated": [
|
|
11844
|
+
"execute"
|
|
11845
|
+
],
|
|
11846
|
+
"service_role": [
|
|
11847
|
+
"execute"
|
|
11848
|
+
]
|
|
11849
|
+
},
|
|
11739
11850
|
{
|
|
11740
11851
|
"name": "portfolio_upcoming_filings",
|
|
11741
11852
|
"arguments": "p_from date, p_to date",
|
|
@@ -11887,6 +11998,28 @@
|
|
|
11887
11998
|
"execute"
|
|
11888
11999
|
]
|
|
11889
12000
|
},
|
|
12001
|
+
{
|
|
12002
|
+
"name": "quote_status",
|
|
12003
|
+
"arguments": "p_document documents",
|
|
12004
|
+
"anon": [],
|
|
12005
|
+
"authenticated": [
|
|
12006
|
+
"execute"
|
|
12007
|
+
],
|
|
12008
|
+
"service_role": [
|
|
12009
|
+
"execute"
|
|
12010
|
+
]
|
|
12011
|
+
},
|
|
12012
|
+
{
|
|
12013
|
+
"name": "quote_statuses",
|
|
12014
|
+
"arguments": "p_document_ids uuid[]",
|
|
12015
|
+
"anon": [],
|
|
12016
|
+
"authenticated": [
|
|
12017
|
+
"execute"
|
|
12018
|
+
],
|
|
12019
|
+
"service_role": [
|
|
12020
|
+
"execute"
|
|
12021
|
+
]
|
|
12022
|
+
},
|
|
11890
12023
|
{
|
|
11891
12024
|
"name": "read_bank_account_identifier",
|
|
11892
12025
|
"arguments": "p_scheme text, p_raw text",
|
|
@@ -12369,6 +12502,17 @@
|
|
|
12369
12502
|
"execute"
|
|
12370
12503
|
]
|
|
12371
12504
|
},
|
|
12505
|
+
{
|
|
12506
|
+
"name": "subledger",
|
|
12507
|
+
"arguments": "p_company_id uuid, p_from date, p_to date, p_account_ids uuid[]",
|
|
12508
|
+
"anon": [],
|
|
12509
|
+
"authenticated": [
|
|
12510
|
+
"execute"
|
|
12511
|
+
],
|
|
12512
|
+
"service_role": [
|
|
12513
|
+
"execute"
|
|
12514
|
+
]
|
|
12515
|
+
},
|
|
12372
12516
|
{
|
|
12373
12517
|
"name": "suggest_combination",
|
|
12374
12518
|
"arguments": "p_transaction_id uuid",
|
|
@@ -12657,6 +12801,17 @@
|
|
|
12657
12801
|
"execute"
|
|
12658
12802
|
]
|
|
12659
12803
|
},
|
|
12804
|
+
{
|
|
12805
|
+
"name": "undo_document_answer",
|
|
12806
|
+
"arguments": "p_document_id uuid",
|
|
12807
|
+
"anon": [],
|
|
12808
|
+
"authenticated": [
|
|
12809
|
+
"execute"
|
|
12810
|
+
],
|
|
12811
|
+
"service_role": [
|
|
12812
|
+
"execute"
|
|
12813
|
+
]
|
|
12814
|
+
},
|
|
12660
12815
|
{
|
|
12661
12816
|
"name": "undo_leave_line_unnamed",
|
|
12662
12817
|
"arguments": "p_line_id uuid",
|
|
@@ -15350,6 +15505,39 @@
|
|
|
15350
15505
|
}
|
|
15351
15506
|
]
|
|
15352
15507
|
},
|
|
15508
|
+
{
|
|
15509
|
+
"name": "deal_documents",
|
|
15510
|
+
"columns": [
|
|
15511
|
+
{
|
|
15512
|
+
"name": "company_id",
|
|
15513
|
+
"type": "uuid"
|
|
15514
|
+
},
|
|
15515
|
+
{
|
|
15516
|
+
"name": "created_at",
|
|
15517
|
+
"type": "timestamp with time zone"
|
|
15518
|
+
},
|
|
15519
|
+
{
|
|
15520
|
+
"name": "deal_id",
|
|
15521
|
+
"type": "uuid"
|
|
15522
|
+
},
|
|
15523
|
+
{
|
|
15524
|
+
"name": "document_id",
|
|
15525
|
+
"type": "uuid"
|
|
15526
|
+
},
|
|
15527
|
+
{
|
|
15528
|
+
"name": "id",
|
|
15529
|
+
"type": "uuid"
|
|
15530
|
+
},
|
|
15531
|
+
{
|
|
15532
|
+
"name": "stage_before_answer_id",
|
|
15533
|
+
"type": "uuid"
|
|
15534
|
+
},
|
|
15535
|
+
{
|
|
15536
|
+
"name": "updated_at",
|
|
15537
|
+
"type": "timestamp with time zone"
|
|
15538
|
+
}
|
|
15539
|
+
]
|
|
15540
|
+
},
|
|
15353
15541
|
{
|
|
15354
15542
|
"name": "deals",
|
|
15355
15543
|
"columns": [
|
|
@@ -15574,6 +15762,10 @@
|
|
|
15574
15762
|
"name": "archive_tables",
|
|
15575
15763
|
"arguments": ""
|
|
15576
15764
|
},
|
|
15765
|
+
{
|
|
15766
|
+
"name": "attach_document",
|
|
15767
|
+
"arguments": "p_company_id uuid, p_deal_id uuid, p_document_id uuid"
|
|
15768
|
+
},
|
|
15577
15769
|
{
|
|
15578
15770
|
"name": "board",
|
|
15579
15771
|
"arguments": "p_company_id uuid, p_pipeline_id uuid, p_include_closed boolean"
|
|
@@ -15582,6 +15774,18 @@
|
|
|
15582
15774
|
"name": "card_of",
|
|
15583
15775
|
"arguments": "p_company_id uuid, p_contact_id uuid"
|
|
15584
15776
|
},
|
|
15777
|
+
{
|
|
15778
|
+
"name": "contact_vcard",
|
|
15779
|
+
"arguments": "p_company_id uuid, p_contact_id uuid"
|
|
15780
|
+
},
|
|
15781
|
+
{
|
|
15782
|
+
"name": "deal_documents_of",
|
|
15783
|
+
"arguments": "p_company_id uuid, p_deal_id uuid"
|
|
15784
|
+
},
|
|
15785
|
+
{
|
|
15786
|
+
"name": "detach_document",
|
|
15787
|
+
"arguments": "p_company_id uuid, p_document_id uuid"
|
|
15788
|
+
},
|
|
15585
15789
|
{
|
|
15586
15790
|
"name": "fold_card_on_merge",
|
|
15587
15791
|
"arguments": ""
|
|
@@ -15590,6 +15794,10 @@
|
|
|
15590
15794
|
"name": "fold_membership_on_merge",
|
|
15591
15795
|
"arguments": ""
|
|
15592
15796
|
},
|
|
15797
|
+
{
|
|
15798
|
+
"name": "follow_document_answer",
|
|
15799
|
+
"arguments": ""
|
|
15800
|
+
},
|
|
15593
15801
|
{
|
|
15594
15802
|
"name": "guard_segment_parent",
|
|
15595
15803
|
"arguments": ""
|
|
@@ -15614,6 +15822,10 @@
|
|
|
15614
15822
|
"name": "open_deal",
|
|
15615
15823
|
"arguments": "p_company_id uuid, p_pipeline_id uuid, p_contact_id uuid, p_title text, p_amount numeric, p_currency_code character, p_expected_on date, p_external_url text, p_owner text"
|
|
15616
15824
|
},
|
|
15825
|
+
{
|
|
15826
|
+
"name": "place_deal",
|
|
15827
|
+
"arguments": "p_company_id uuid, p_deal_id uuid, p_stage_id uuid, p_why jsonb"
|
|
15828
|
+
},
|
|
15617
15829
|
{
|
|
15618
15830
|
"name": "require",
|
|
15619
15831
|
"arguments": "p_company_id uuid, p_capability text, p_what text"
|
|
@@ -15637,6 +15849,10 @@
|
|
|
15637
15849
|
{
|
|
15638
15850
|
"name": "upsert_card",
|
|
15639
15851
|
"arguments": "p_company_id uuid, p_contact_id uuid, p_patch jsonb"
|
|
15852
|
+
},
|
|
15853
|
+
{
|
|
15854
|
+
"name": "vcard_value",
|
|
15855
|
+
"arguments": "p_value text"
|
|
15640
15856
|
}
|
|
15641
15857
|
],
|
|
15642
15858
|
"policies": [
|
|
@@ -15660,6 +15876,16 @@
|
|
|
15660
15876
|
"name": "crm_cards_write",
|
|
15661
15877
|
"command": "all"
|
|
15662
15878
|
},
|
|
15879
|
+
{
|
|
15880
|
+
"table": "deal_documents",
|
|
15881
|
+
"name": "crm_deal_documents_select",
|
|
15882
|
+
"command": "select"
|
|
15883
|
+
},
|
|
15884
|
+
{
|
|
15885
|
+
"table": "deal_documents",
|
|
15886
|
+
"name": "crm_deal_documents_write",
|
|
15887
|
+
"command": "all"
|
|
15888
|
+
},
|
|
15663
15889
|
{
|
|
15664
15890
|
"table": "deals",
|
|
15665
15891
|
"name": "crm_deals_select",
|
|
@@ -15736,6 +15962,10 @@
|
|
|
15736
15962
|
"table": "cards",
|
|
15737
15963
|
"name": "crm_cards_set_updated_at"
|
|
15738
15964
|
},
|
|
15965
|
+
{
|
|
15966
|
+
"table": "deal_documents",
|
|
15967
|
+
"name": "crm_deal_documents_set_updated_at"
|
|
15968
|
+
},
|
|
15739
15969
|
{
|
|
15740
15970
|
"table": "deals",
|
|
15741
15971
|
"name": "crm_deals_set_updated_at"
|
|
@@ -15878,6 +16108,22 @@
|
|
|
15878
16108
|
"update"
|
|
15879
16109
|
]
|
|
15880
16110
|
},
|
|
16111
|
+
{
|
|
16112
|
+
"name": "deal_documents",
|
|
16113
|
+
"anon": [],
|
|
16114
|
+
"authenticated": [
|
|
16115
|
+
"delete",
|
|
16116
|
+
"insert",
|
|
16117
|
+
"select",
|
|
16118
|
+
"update"
|
|
16119
|
+
],
|
|
16120
|
+
"service_role": [
|
|
16121
|
+
"delete",
|
|
16122
|
+
"insert",
|
|
16123
|
+
"select",
|
|
16124
|
+
"update"
|
|
16125
|
+
]
|
|
16126
|
+
},
|
|
15881
16127
|
{
|
|
15882
16128
|
"name": "deals",
|
|
15883
16129
|
"anon": [],
|
|
@@ -15973,6 +16219,17 @@
|
|
|
15973
16219
|
"execute"
|
|
15974
16220
|
]
|
|
15975
16221
|
},
|
|
16222
|
+
{
|
|
16223
|
+
"name": "attach_document",
|
|
16224
|
+
"arguments": "p_company_id uuid, p_deal_id uuid, p_document_id uuid",
|
|
16225
|
+
"anon": [],
|
|
16226
|
+
"authenticated": [
|
|
16227
|
+
"execute"
|
|
16228
|
+
],
|
|
16229
|
+
"service_role": [
|
|
16230
|
+
"execute"
|
|
16231
|
+
]
|
|
16232
|
+
},
|
|
15976
16233
|
{
|
|
15977
16234
|
"name": "board",
|
|
15978
16235
|
"arguments": "p_company_id uuid, p_pipeline_id uuid, p_include_closed boolean",
|
|
@@ -15995,6 +16252,39 @@
|
|
|
15995
16252
|
"execute"
|
|
15996
16253
|
]
|
|
15997
16254
|
},
|
|
16255
|
+
{
|
|
16256
|
+
"name": "contact_vcard",
|
|
16257
|
+
"arguments": "p_company_id uuid, p_contact_id uuid",
|
|
16258
|
+
"anon": [],
|
|
16259
|
+
"authenticated": [
|
|
16260
|
+
"execute"
|
|
16261
|
+
],
|
|
16262
|
+
"service_role": [
|
|
16263
|
+
"execute"
|
|
16264
|
+
]
|
|
16265
|
+
},
|
|
16266
|
+
{
|
|
16267
|
+
"name": "deal_documents_of",
|
|
16268
|
+
"arguments": "p_company_id uuid, p_deal_id uuid",
|
|
16269
|
+
"anon": [],
|
|
16270
|
+
"authenticated": [
|
|
16271
|
+
"execute"
|
|
16272
|
+
],
|
|
16273
|
+
"service_role": [
|
|
16274
|
+
"execute"
|
|
16275
|
+
]
|
|
16276
|
+
},
|
|
16277
|
+
{
|
|
16278
|
+
"name": "detach_document",
|
|
16279
|
+
"arguments": "p_company_id uuid, p_document_id uuid",
|
|
16280
|
+
"anon": [],
|
|
16281
|
+
"authenticated": [
|
|
16282
|
+
"execute"
|
|
16283
|
+
],
|
|
16284
|
+
"service_role": [
|
|
16285
|
+
"execute"
|
|
16286
|
+
]
|
|
16287
|
+
},
|
|
15998
16288
|
{
|
|
15999
16289
|
"name": "fold_card_on_merge",
|
|
16000
16290
|
"arguments": "",
|
|
@@ -16011,6 +16301,14 @@
|
|
|
16011
16301
|
"authenticated": [],
|
|
16012
16302
|
"service_role": []
|
|
16013
16303
|
},
|
|
16304
|
+
{
|
|
16305
|
+
"name": "follow_document_answer",
|
|
16306
|
+
"arguments": "",
|
|
16307
|
+
"trigger": true,
|
|
16308
|
+
"anon": [],
|
|
16309
|
+
"authenticated": [],
|
|
16310
|
+
"service_role": []
|
|
16311
|
+
},
|
|
16014
16312
|
{
|
|
16015
16313
|
"name": "guard_segment_parent",
|
|
16016
16314
|
"arguments": "",
|
|
@@ -16074,6 +16372,17 @@
|
|
|
16074
16372
|
"execute"
|
|
16075
16373
|
]
|
|
16076
16374
|
},
|
|
16375
|
+
{
|
|
16376
|
+
"name": "place_deal",
|
|
16377
|
+
"arguments": "p_company_id uuid, p_deal_id uuid, p_stage_id uuid, p_why jsonb",
|
|
16378
|
+
"anon": [],
|
|
16379
|
+
"authenticated": [
|
|
16380
|
+
"execute"
|
|
16381
|
+
],
|
|
16382
|
+
"service_role": [
|
|
16383
|
+
"execute"
|
|
16384
|
+
]
|
|
16385
|
+
},
|
|
16077
16386
|
{
|
|
16078
16387
|
"name": "require",
|
|
16079
16388
|
"arguments": "p_company_id uuid, p_capability text, p_what text",
|
|
@@ -16136,6 +16445,17 @@
|
|
|
16136
16445
|
"service_role": [
|
|
16137
16446
|
"execute"
|
|
16138
16447
|
]
|
|
16448
|
+
},
|
|
16449
|
+
{
|
|
16450
|
+
"name": "vcard_value",
|
|
16451
|
+
"arguments": "p_value text",
|
|
16452
|
+
"anon": [],
|
|
16453
|
+
"authenticated": [
|
|
16454
|
+
"execute"
|
|
16455
|
+
],
|
|
16456
|
+
"service_role": [
|
|
16457
|
+
"execute"
|
|
16458
|
+
]
|
|
16139
16459
|
}
|
|
16140
16460
|
],
|
|
16141
16461
|
"defaultPrivileges": []
|