ekwo-os 0.10.0 → 0.11.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 +20 -7
- package/dist/assets/expected-objects.json +311 -4
- package/dist/assets/migrations/20261005090000_a_guard_a_key_walks_past.sql +270 -0
- package/dist/assets/migrations/20261005160858_a_line_says_when_it_is_declared.sql +130 -0
- package/dist/assets/migrations/20261005160859_the_declared_day_of_lines_already_written.sql +58 -0
- package/dist/assets/migrations/20261005160900_a_period_is_read_through_its_index.sql +914 -0
- package/dist/assets/migrations/20261007041207_a_key_writes_as_its_issuer.sql +782 -0
- package/dist/assets/migrations/20261007060225_a_shared_instance_keeps_its_tenants_apart.sql +940 -0
- package/dist/assets/migrations/20261007113412_a_tenant_measures_nothing_of_another.sql +2199 -0
- package/dist/assets/migrations/20261007160000_a_person_joins_a_company_of_their_own_accord.sql +63 -0
- package/dist/assets/migrations/20261007180000_schema_version_0_11_0.sql +47 -0
- package/dist/assets/modules/budgets/supabase/migrations/20261007113413_budgets_rows_name_their_own_company.sql +29 -0
- package/dist/assets/modules/corporate-tax/supabase/migrations/20261007041208_a_key_writes_as_its_issuer.sql +294 -0
- package/dist/assets/modules/corporate-tax/supabase/migrations/20261007113415_tax_rows_name_their_own_company.sql +29 -0
- package/dist/assets/modules/fixed-assets/supabase/migrations/20261007113414_assets_rows_name_their_own_company.sql +29 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +27 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/company.d.ts +3 -1
- package/dist/commands/company.d.ts.map +1 -1
- package/dist/commands/company.js +56 -1
- package/dist/commands/company.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -12
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +7 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/grants.d.ts.map +1 -1
- package/dist/grants.js +15 -0
- package/dist/grants.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/invitation.d.ts +21 -0
- package/dist/invitation.d.ts.map +1 -0
- package/dist/invitation.js +27 -0
- package/dist/invitation.js.map +1 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +3 -1
- package/dist/output.js.map +1 -1
- package/dist/pack/compile.d.ts +0 -2
- package/dist/pack/compile.d.ts.map +1 -1
- package/dist/pack/compile.js +0 -2
- package/dist/pack/compile.js.map +1 -1
- package/dist/pack/read.d.ts +0 -2
- package/dist/pack/read.d.ts.map +1 -1
- package/dist/pack/read.js.map +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +1 -1
- package/package.json +3 -3
- package/schema/output.1.json +46 -2
package/README.md
CHANGED
|
@@ -305,13 +305,13 @@ instead if the account already exists, and no key is needed.
|
|
|
305
305
|
|---|---|
|
|
306
306
|
| `ekwo init` | The whole installation, interactive or not: the socle's migrations, the reference seeds, then the modules', as `ekwo migrate` applies them. `--no-company` stops before the first company: see [several countries](#several-countries-in-one-installation-init---no-company). |
|
|
307
307
|
| `ekwo migrate` | Applies the migrations this release adds, after showing the gap — the socle's, then the modules'. Re-applies the reference seeds, which are idempotent. `--no-modules` leaves the modules alone. |
|
|
308
|
-
| `ekwo status` | Schema version installed against available, pending migrations, the instance, its administrators, the country packs it holds and, per company, the pack version it copied. Exits 1 when something is pending. |
|
|
308
|
+
| `ekwo status` | Schema version installed against available, pending migrations, the instance, its administrators, the country packs it holds and, per company, the pack version it copied. On an installation that is not registered, a short invitation to [register](#registering-with-ekwo). Exits 1 when something is pending. |
|
|
309
309
|
| `ekwo doctor` | Every object this release defines and every privilege it grants, against what the database holds; row level security on every table, a policy on every protected table, no pending migration, no membership pointing at a deleted user, every company with a bank account, statements that tie to their lines, posted entries that balance. Exits 1 on a problem, 0 on warnings. |
|
|
310
|
-
| `ekwo register` | Opt in to security advisories and release notes. Also the retry when the announcement did not go through. |
|
|
310
|
+
| `ekwo register` | Opt in to security advisories and release notes. Optional: everything works the same without it. Also the retry when the announcement did not go through. |
|
|
311
311
|
| `ekwo unregister` | Opt back out. Clears the address and the date on the instance row. |
|
|
312
312
|
| `ekwo demo` | Loads the sample company. Fictional data, explicit request only. |
|
|
313
313
|
| `ekwo module` | What is installed beside the socle, applies a module's migrations and its country seeds, and turns one on or off for a company. |
|
|
314
|
-
| `ekwo company` | `new` creates a company in its own country, through `create_company()`, and `list` shows the companies held here. One company leaves an installation with its books — `export` writes an archive anybody can read, as a member under row level security — and arrives in another one alive: `import` takes it in whole or not at all. |
|
|
314
|
+
| `ekwo company` | `new` creates a company in its own country, through `create_company()`, and `list` shows the companies held here. `show` reads the company in use as the person signed in — its financial years, lock dates, journals and accounts by role — the same document as the MCP tool `get_company`. One company leaves an installation with its books — `export` writes an archive anybody can read, as a member under row level security — and arrives in another one alive: `import` takes it in whole or not at all. |
|
|
315
315
|
| `ekwo pack` | Compiles a country pack into its seed, and refuses a seed that is no longer the output of its pack. Runs in a checkout of the repository only. |
|
|
316
316
|
| `ekwo login` | Signs in to an instance as yourself and keeps the session, in your own configuration directory. See [acting as a person](#acting-as-a-person-login-use-whoami). |
|
|
317
317
|
| `ekwo logout` | Ends that session, here and on the instance. |
|
|
@@ -962,6 +962,7 @@ Every command takes `--json`; see [what a command answers](#what-a-command-answe
|
|
|
962
962
|
| `EKWO_PROFILE` | `--profile` |
|
|
963
963
|
| `EKWO_CONFIG_DIR` | Where profiles and sessions are kept. |
|
|
964
964
|
| `EKWO_REGISTRY_URL` | `--registry-url`. Default `https://api.ekwo.ai/v1/registrations`. |
|
|
965
|
+
| `EKWO_NO_REGISTER_INVITE` | Set to `1` to hide the invitation to register that `ekwo init` and `ekwo status` show on an installation that is not registered. The MCP server reads it too. |
|
|
965
966
|
| `NO_COLOR` | Plain output. |
|
|
966
967
|
|
|
967
968
|
See [`.env.example`](../../.env.example) at the root of the repository.
|
|
@@ -990,12 +991,24 @@ database the same way.
|
|
|
990
991
|
|
|
991
992
|
## Registering with Ekwo
|
|
992
993
|
|
|
993
|
-
At the end of `ekwo init
|
|
994
|
+
At the end of `ekwo init`, in a terminal, you are asked:
|
|
994
995
|
|
|
995
|
-
> Register this installation with Ekwo
|
|
996
|
-
> release notes?
|
|
996
|
+
> Register this installation with Ekwo, for security advisories that concern
|
|
997
|
+
> your version and release notes? Everything works the same without it.
|
|
997
998
|
|
|
998
|
-
The default answer is no, and no is supported forever.
|
|
999
|
+
The default answer is no, and no is supported forever.
|
|
1000
|
+
|
|
1001
|
+
Where nobody is asked — `--yes`, `--json`, a script — the end of `ekwo init`
|
|
1002
|
+
shows a short invitation instead, after everything else, and `ekwo status`
|
|
1003
|
+
shows the same one on an installation that is not registered: what registering
|
|
1004
|
+
gives, the six fields it sends and the one command,
|
|
1005
|
+
`npx -y ekwo-os@latest register --email <your address>`. Under `--json` it is
|
|
1006
|
+
the field `registration` of the document, `{ "registered": false,
|
|
1007
|
+
"invitation": { … } }`, and the standard output stays one document. It never
|
|
1008
|
+
waits for an answer, it disappears once the installation is registered, and
|
|
1009
|
+
`EKWO_NO_REGISTER_INVITE=1` hides it. The MCP server gives its agent one line
|
|
1010
|
+
to relay to the person, once, on the same terms; see
|
|
1011
|
+
[`docs/agents.md`](../../docs/agents.md#registering-the-installation). Community works
|
|
999
1012
|
unregistered: nothing in the schema and nothing in this CLI reads
|
|
1000
1013
|
`contact_email` or `registered_at` to decide what you may do, and `edition`
|
|
1001
1014
|
gates no feature.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
3
|
-
"migration": "
|
|
2
|
+
"schemaVersion": "0.11.0",
|
|
3
|
+
"migration": "20261007180000",
|
|
4
4
|
"socle": {
|
|
5
5
|
"schema": "public",
|
|
6
6
|
"tables": [
|
|
@@ -345,6 +345,10 @@
|
|
|
345
345
|
"name": "record_key",
|
|
346
346
|
"type": "text"
|
|
347
347
|
},
|
|
348
|
+
{
|
|
349
|
+
"name": "sequence",
|
|
350
|
+
"type": "integer"
|
|
351
|
+
},
|
|
348
352
|
{
|
|
349
353
|
"name": "table_name",
|
|
350
354
|
"type": "text"
|
|
@@ -753,6 +757,10 @@
|
|
|
753
757
|
"name": "created_at",
|
|
754
758
|
"type": "timestamp with time zone"
|
|
755
759
|
},
|
|
760
|
+
{
|
|
761
|
+
"name": "created_by",
|
|
762
|
+
"type": "uuid"
|
|
763
|
+
},
|
|
756
764
|
{
|
|
757
765
|
"name": "currency_code",
|
|
758
766
|
"type": "character(3)"
|
|
@@ -2224,6 +2232,10 @@
|
|
|
2224
2232
|
"name": "declaration_box",
|
|
2225
2233
|
"type": "text"
|
|
2226
2234
|
},
|
|
2235
|
+
{
|
|
2236
|
+
"name": "declared_on",
|
|
2237
|
+
"type": "date"
|
|
2238
|
+
},
|
|
2227
2239
|
{
|
|
2228
2240
|
"name": "entry_id",
|
|
2229
2241
|
"type": "uuid"
|
|
@@ -2314,6 +2326,10 @@
|
|
|
2314
2326
|
{
|
|
2315
2327
|
"name": "instance",
|
|
2316
2328
|
"columns": [
|
|
2329
|
+
{
|
|
2330
|
+
"name": "companies_per_person",
|
|
2331
|
+
"type": "integer"
|
|
2332
|
+
},
|
|
2317
2333
|
{
|
|
2318
2334
|
"name": "contact_email",
|
|
2319
2335
|
"type": "text"
|
|
@@ -2354,6 +2370,10 @@
|
|
|
2354
2370
|
"name": "schema_version",
|
|
2355
2371
|
"type": "text"
|
|
2356
2372
|
},
|
|
2373
|
+
{
|
|
2374
|
+
"name": "shared",
|
|
2375
|
+
"type": "boolean"
|
|
2376
|
+
},
|
|
2357
2377
|
{
|
|
2358
2378
|
"name": "updated_at",
|
|
2359
2379
|
"type": "timestamp with time zone"
|
|
@@ -3748,6 +3768,10 @@
|
|
|
3748
3768
|
"name": "accounts_in_use",
|
|
3749
3769
|
"arguments": "p_company_id uuid, p_from date, p_to date"
|
|
3750
3770
|
},
|
|
3771
|
+
{
|
|
3772
|
+
"name": "acting_user",
|
|
3773
|
+
"arguments": ""
|
|
3774
|
+
},
|
|
3751
3775
|
{
|
|
3752
3776
|
"name": "aged_balance",
|
|
3753
3777
|
"arguments": "p_company_id uuid, p_at date, p_group text"
|
|
@@ -3784,6 +3808,14 @@
|
|
|
3784
3808
|
"name": "assert_period_open",
|
|
3785
3809
|
"arguments": "p_company_id uuid, p_date date, p_is_tax boolean"
|
|
3786
3810
|
},
|
|
3811
|
+
{
|
|
3812
|
+
"name": "assert_references_within_company",
|
|
3813
|
+
"arguments": "p_schema text"
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
"name": "assert_writes_into_known_company",
|
|
3817
|
+
"arguments": "p_company_id uuid"
|
|
3818
|
+
},
|
|
3787
3819
|
{
|
|
3788
3820
|
"name": "audit_changes",
|
|
3789
3821
|
"arguments": ""
|
|
@@ -3868,6 +3900,10 @@
|
|
|
3868
3900
|
"name": "commercial_entity",
|
|
3869
3901
|
"arguments": "p_contact_id uuid"
|
|
3870
3902
|
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "companies_creator_is_fixed",
|
|
3905
|
+
"arguments": ""
|
|
3906
|
+
},
|
|
3871
3907
|
{
|
|
3872
3908
|
"name": "companies_default_bank_account_is_ours",
|
|
3873
3909
|
"arguments": ""
|
|
@@ -3900,6 +3936,10 @@
|
|
|
3900
3936
|
"name": "company_archive_unclassified",
|
|
3901
3937
|
"arguments": ""
|
|
3902
3938
|
},
|
|
3939
|
+
{
|
|
3940
|
+
"name": "company_column",
|
|
3941
|
+
"arguments": "p_table regclass"
|
|
3942
|
+
},
|
|
3903
3943
|
{
|
|
3904
3944
|
"name": "company_filing_periods_mirror",
|
|
3905
3945
|
"arguments": ""
|
|
@@ -3916,10 +3956,18 @@
|
|
|
3916
3956
|
"name": "company_members_capabilities_known",
|
|
3917
3957
|
"arguments": ""
|
|
3918
3958
|
},
|
|
3959
|
+
{
|
|
3960
|
+
"name": "company_members_join_of_their_own_accord",
|
|
3961
|
+
"arguments": ""
|
|
3962
|
+
},
|
|
3919
3963
|
{
|
|
3920
3964
|
"name": "company_members_list",
|
|
3921
3965
|
"arguments": "p_company_id uuid"
|
|
3922
3966
|
},
|
|
3967
|
+
{
|
|
3968
|
+
"name": "company_references_by_id",
|
|
3969
|
+
"arguments": "p_schema text"
|
|
3970
|
+
},
|
|
3923
3971
|
{
|
|
3924
3972
|
"name": "company_role",
|
|
3925
3973
|
"arguments": "p_company_id uuid"
|
|
@@ -3972,6 +4020,14 @@
|
|
|
3972
4020
|
"name": "declaration_period_start",
|
|
3973
4021
|
"arguments": "p_period declaration_period, p_day date"
|
|
3974
4022
|
},
|
|
4023
|
+
{
|
|
4024
|
+
"name": "declared_lines",
|
|
4025
|
+
"arguments": "p_company_id uuid, p_from date, p_to date"
|
|
4026
|
+
},
|
|
4027
|
+
{
|
|
4028
|
+
"name": "declared_on_of",
|
|
4029
|
+
"arguments": "p_tax_point_date date, p_entry_date date"
|
|
4030
|
+
},
|
|
3975
4031
|
{
|
|
3976
4032
|
"name": "default_statement_code",
|
|
3977
4033
|
"arguments": "p_company_id uuid, p_kind text, p_at date"
|
|
@@ -4056,6 +4112,10 @@
|
|
|
4056
4112
|
"name": "enable_module",
|
|
4057
4113
|
"arguments": "p_company_id uuid, p_code text, p_settings jsonb"
|
|
4058
4114
|
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "entries_declared_on_follows",
|
|
4117
|
+
"arguments": ""
|
|
4118
|
+
},
|
|
4059
4119
|
{
|
|
4060
4120
|
"name": "entries_guard_kind",
|
|
4061
4121
|
"arguments": ""
|
|
@@ -4084,6 +4144,10 @@
|
|
|
4084
4144
|
"name": "entry_lines_guard_posted",
|
|
4085
4145
|
"arguments": ""
|
|
4086
4146
|
},
|
|
4147
|
+
{
|
|
4148
|
+
"name": "entry_lines_set_declared_on",
|
|
4149
|
+
"arguments": ""
|
|
4150
|
+
},
|
|
4087
4151
|
{
|
|
4088
4152
|
"name": "eu_vat_scope_of",
|
|
4089
4153
|
"arguments": "p_code text, p_on date"
|
|
@@ -4208,10 +4272,22 @@
|
|
|
4208
4272
|
"name": "installed_schema_version",
|
|
4209
4273
|
"arguments": ""
|
|
4210
4274
|
},
|
|
4275
|
+
{
|
|
4276
|
+
"name": "instance_admins_keep_one",
|
|
4277
|
+
"arguments": ""
|
|
4278
|
+
},
|
|
4211
4279
|
{
|
|
4212
4280
|
"name": "instance_has_no_admin",
|
|
4213
4281
|
"arguments": ""
|
|
4214
4282
|
},
|
|
4283
|
+
{
|
|
4284
|
+
"name": "instance_is_shared",
|
|
4285
|
+
"arguments": ""
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
"name": "instance_sharing",
|
|
4289
|
+
"arguments": ""
|
|
4290
|
+
},
|
|
4215
4291
|
{
|
|
4216
4292
|
"name": "invite_member",
|
|
4217
4293
|
"arguments": "p_company_id uuid, p_email text, p_role member_role, p_capabilities jsonb, p_valid_for interval"
|
|
@@ -4272,6 +4348,10 @@
|
|
|
4272
4348
|
"name": "matching_policy_of",
|
|
4273
4349
|
"arguments": "p_company_id uuid"
|
|
4274
4350
|
},
|
|
4351
|
+
{
|
|
4352
|
+
"name": "may_know_of_company",
|
|
4353
|
+
"arguments": "p_company_id uuid"
|
|
4354
|
+
},
|
|
4275
4355
|
{
|
|
4276
4356
|
"name": "member_capabilities",
|
|
4277
4357
|
"arguments": "p_company_id uuid, p_user_id uuid"
|
|
@@ -4464,6 +4544,10 @@
|
|
|
4464
4544
|
"name": "rounding_of",
|
|
4465
4545
|
"arguments": "p_company_id uuid, p_currency_code text"
|
|
4466
4546
|
},
|
|
4547
|
+
{
|
|
4548
|
+
"name": "scope_references_to_company",
|
|
4549
|
+
"arguments": "p_schema text"
|
|
4550
|
+
},
|
|
4467
4551
|
{
|
|
4468
4552
|
"name": "set_member_role",
|
|
4469
4553
|
"arguments": "p_company_id uuid, p_user_id uuid, p_role member_role, p_capabilities jsonb"
|
|
@@ -4492,6 +4576,10 @@
|
|
|
4492
4576
|
"name": "share_document",
|
|
4493
4577
|
"arguments": "p_document_id uuid, p_expires_at timestamp with time zone"
|
|
4494
4578
|
},
|
|
4579
|
+
{
|
|
4580
|
+
"name": "share_instance",
|
|
4581
|
+
"arguments": "p_companies_per_person integer"
|
|
4582
|
+
},
|
|
4495
4583
|
{
|
|
4496
4584
|
"name": "shared_document",
|
|
4497
4585
|
"arguments": "p_token text"
|
|
@@ -4524,6 +4612,10 @@
|
|
|
4524
4612
|
"name": "tax_filing_boxes_are_frozen",
|
|
4525
4613
|
"arguments": ""
|
|
4526
4614
|
},
|
|
4615
|
+
{
|
|
4616
|
+
"name": "tax_filing_deposits_files_are_its_own",
|
|
4617
|
+
"arguments": ""
|
|
4618
|
+
},
|
|
4527
4619
|
{
|
|
4528
4620
|
"name": "tax_filings_report_exists",
|
|
4529
4621
|
"arguments": ""
|
|
@@ -4584,6 +4676,10 @@
|
|
|
4584
4676
|
"name": "unregister_instance",
|
|
4585
4677
|
"arguments": ""
|
|
4586
4678
|
},
|
|
4679
|
+
{
|
|
4680
|
+
"name": "unshare_instance",
|
|
4681
|
+
"arguments": ""
|
|
4682
|
+
},
|
|
4587
4683
|
{
|
|
4588
4684
|
"name": "upcoming_filings",
|
|
4589
4685
|
"arguments": "p_company_id uuid, p_from date, p_to date"
|
|
@@ -4592,6 +4688,10 @@
|
|
|
4592
4688
|
"name": "use_api_key",
|
|
4593
4689
|
"arguments": "p_secret text"
|
|
4594
4690
|
},
|
|
4691
|
+
{
|
|
4692
|
+
"name": "user_preferences_company_is_known",
|
|
4693
|
+
"arguments": ""
|
|
4694
|
+
},
|
|
4595
4695
|
{
|
|
4596
4696
|
"name": "vat_prefix_of",
|
|
4597
4697
|
"arguments": "p_code text"
|
|
@@ -5203,6 +5303,10 @@
|
|
|
5203
5303
|
"table": "companies",
|
|
5204
5304
|
"name": "companies_audit"
|
|
5205
5305
|
},
|
|
5306
|
+
{
|
|
5307
|
+
"table": "companies",
|
|
5308
|
+
"name": "companies_creator_is_fixed"
|
|
5309
|
+
},
|
|
5206
5310
|
{
|
|
5207
5311
|
"table": "companies",
|
|
5208
5312
|
"name": "companies_default_bank_account_is_ours"
|
|
@@ -5251,6 +5355,10 @@
|
|
|
5251
5355
|
"table": "company_members",
|
|
5252
5356
|
"name": "company_members_capabilities_known"
|
|
5253
5357
|
},
|
|
5358
|
+
{
|
|
5359
|
+
"table": "company_members",
|
|
5360
|
+
"name": "company_members_join_of_their_own_accord"
|
|
5361
|
+
},
|
|
5254
5362
|
{
|
|
5255
5363
|
"table": "company_members",
|
|
5256
5364
|
"name": "company_members_set_updated_at"
|
|
@@ -5363,6 +5471,10 @@
|
|
|
5363
5471
|
"table": "entries",
|
|
5364
5472
|
"name": "entries_audit_posting"
|
|
5365
5473
|
},
|
|
5474
|
+
{
|
|
5475
|
+
"table": "entries",
|
|
5476
|
+
"name": "entries_declared_on_follows"
|
|
5477
|
+
},
|
|
5366
5478
|
{
|
|
5367
5479
|
"table": "entries",
|
|
5368
5480
|
"name": "entries_guard_kind"
|
|
@@ -5395,6 +5507,10 @@
|
|
|
5395
5507
|
"table": "entry_lines",
|
|
5396
5508
|
"name": "entry_lines_refresh_totals"
|
|
5397
5509
|
},
|
|
5510
|
+
{
|
|
5511
|
+
"table": "entry_lines",
|
|
5512
|
+
"name": "entry_lines_set_declared_on"
|
|
5513
|
+
},
|
|
5398
5514
|
{
|
|
5399
5515
|
"table": "entry_lines",
|
|
5400
5516
|
"name": "entry_lines_set_updated_at"
|
|
@@ -5431,6 +5547,10 @@
|
|
|
5431
5547
|
"table": "instance_admins",
|
|
5432
5548
|
"name": "instance_admins_audit"
|
|
5433
5549
|
},
|
|
5550
|
+
{
|
|
5551
|
+
"table": "instance_admins",
|
|
5552
|
+
"name": "instance_admins_keep_one"
|
|
5553
|
+
},
|
|
5434
5554
|
{
|
|
5435
5555
|
"table": "instance_admins",
|
|
5436
5556
|
"name": "instance_members_set_updated_at"
|
|
@@ -5495,6 +5615,10 @@
|
|
|
5495
5615
|
"table": "tax_filing_boxes",
|
|
5496
5616
|
"name": "tax_filing_boxes_are_frozen"
|
|
5497
5617
|
},
|
|
5618
|
+
{
|
|
5619
|
+
"table": "tax_filing_deposits",
|
|
5620
|
+
"name": "tax_filing_deposits_files_are_its_own"
|
|
5621
|
+
},
|
|
5498
5622
|
{
|
|
5499
5623
|
"table": "tax_filings",
|
|
5500
5624
|
"name": "tax_filings_audit"
|
|
@@ -5535,6 +5659,10 @@
|
|
|
5535
5659
|
"table": "taxes",
|
|
5536
5660
|
"name": "taxes_set_updated_at"
|
|
5537
5661
|
},
|
|
5662
|
+
{
|
|
5663
|
+
"table": "user_preferences",
|
|
5664
|
+
"name": "user_preferences_company_is_known"
|
|
5665
|
+
},
|
|
5538
5666
|
{
|
|
5539
5667
|
"table": "user_preferences",
|
|
5540
5668
|
"name": "user_preferences_set_updated_at"
|
|
@@ -6053,10 +6181,10 @@
|
|
|
6053
6181
|
"name": "audit_log",
|
|
6054
6182
|
"anon": [],
|
|
6055
6183
|
"authenticated": [
|
|
6056
|
-
"select"
|
|
6184
|
+
"select(occurred_at, actor_id, api_key_id, company_id, table_name, record_id, record_key, operation, action, old_values, new_values, sequence)"
|
|
6057
6185
|
],
|
|
6058
6186
|
"service_role": [
|
|
6059
|
-
"select"
|
|
6187
|
+
"select(occurred_at, actor_id, api_key_id, company_id, table_name, record_id, record_key, operation, action, old_values, new_values, sequence)"
|
|
6060
6188
|
]
|
|
6061
6189
|
},
|
|
6062
6190
|
{
|
|
@@ -6898,6 +7026,17 @@
|
|
|
6898
7026
|
"execute"
|
|
6899
7027
|
]
|
|
6900
7028
|
},
|
|
7029
|
+
{
|
|
7030
|
+
"name": "acting_user",
|
|
7031
|
+
"arguments": "",
|
|
7032
|
+
"anon": [],
|
|
7033
|
+
"authenticated": [
|
|
7034
|
+
"execute"
|
|
7035
|
+
],
|
|
7036
|
+
"service_role": [
|
|
7037
|
+
"execute"
|
|
7038
|
+
]
|
|
7039
|
+
},
|
|
6901
7040
|
{
|
|
6902
7041
|
"name": "aged_balance",
|
|
6903
7042
|
"arguments": "p_company_id uuid, p_at date, p_group text",
|
|
@@ -6990,6 +7129,20 @@
|
|
|
6990
7129
|
"execute"
|
|
6991
7130
|
]
|
|
6992
7131
|
},
|
|
7132
|
+
{
|
|
7133
|
+
"name": "assert_references_within_company",
|
|
7134
|
+
"arguments": "p_schema text",
|
|
7135
|
+
"anon": [],
|
|
7136
|
+
"authenticated": [],
|
|
7137
|
+
"service_role": []
|
|
7138
|
+
},
|
|
7139
|
+
{
|
|
7140
|
+
"name": "assert_writes_into_known_company",
|
|
7141
|
+
"arguments": "p_company_id uuid",
|
|
7142
|
+
"anon": [],
|
|
7143
|
+
"authenticated": [],
|
|
7144
|
+
"service_role": []
|
|
7145
|
+
},
|
|
6993
7146
|
{
|
|
6994
7147
|
"name": "audit_changes",
|
|
6995
7148
|
"arguments": "",
|
|
@@ -7191,6 +7344,14 @@
|
|
|
7191
7344
|
"execute"
|
|
7192
7345
|
]
|
|
7193
7346
|
},
|
|
7347
|
+
{
|
|
7348
|
+
"name": "companies_creator_is_fixed",
|
|
7349
|
+
"arguments": "",
|
|
7350
|
+
"trigger": true,
|
|
7351
|
+
"anon": [],
|
|
7352
|
+
"authenticated": [],
|
|
7353
|
+
"service_role": []
|
|
7354
|
+
},
|
|
7194
7355
|
{
|
|
7195
7356
|
"name": "companies_default_bank_account_is_ours",
|
|
7196
7357
|
"arguments": "",
|
|
@@ -7270,6 +7431,13 @@
|
|
|
7270
7431
|
"execute"
|
|
7271
7432
|
]
|
|
7272
7433
|
},
|
|
7434
|
+
{
|
|
7435
|
+
"name": "company_column",
|
|
7436
|
+
"arguments": "p_table regclass",
|
|
7437
|
+
"anon": [],
|
|
7438
|
+
"authenticated": [],
|
|
7439
|
+
"service_role": []
|
|
7440
|
+
},
|
|
7273
7441
|
{
|
|
7274
7442
|
"name": "company_filing_periods_mirror",
|
|
7275
7443
|
"arguments": "",
|
|
@@ -7307,6 +7475,14 @@
|
|
|
7307
7475
|
"authenticated": [],
|
|
7308
7476
|
"service_role": []
|
|
7309
7477
|
},
|
|
7478
|
+
{
|
|
7479
|
+
"name": "company_members_join_of_their_own_accord",
|
|
7480
|
+
"arguments": "",
|
|
7481
|
+
"trigger": true,
|
|
7482
|
+
"anon": [],
|
|
7483
|
+
"authenticated": [],
|
|
7484
|
+
"service_role": []
|
|
7485
|
+
},
|
|
7310
7486
|
{
|
|
7311
7487
|
"name": "company_members_list",
|
|
7312
7488
|
"arguments": "p_company_id uuid",
|
|
@@ -7318,6 +7494,13 @@
|
|
|
7318
7494
|
"execute"
|
|
7319
7495
|
]
|
|
7320
7496
|
},
|
|
7497
|
+
{
|
|
7498
|
+
"name": "company_references_by_id",
|
|
7499
|
+
"arguments": "p_schema text",
|
|
7500
|
+
"anon": [],
|
|
7501
|
+
"authenticated": [],
|
|
7502
|
+
"service_role": []
|
|
7503
|
+
},
|
|
7321
7504
|
{
|
|
7322
7505
|
"name": "company_role",
|
|
7323
7506
|
"arguments": "p_company_id uuid",
|
|
@@ -7454,6 +7637,28 @@
|
|
|
7454
7637
|
"execute"
|
|
7455
7638
|
]
|
|
7456
7639
|
},
|
|
7640
|
+
{
|
|
7641
|
+
"name": "declared_lines",
|
|
7642
|
+
"arguments": "p_company_id uuid, p_from date, p_to date",
|
|
7643
|
+
"anon": [],
|
|
7644
|
+
"authenticated": [
|
|
7645
|
+
"execute"
|
|
7646
|
+
],
|
|
7647
|
+
"service_role": [
|
|
7648
|
+
"execute"
|
|
7649
|
+
]
|
|
7650
|
+
},
|
|
7651
|
+
{
|
|
7652
|
+
"name": "declared_on_of",
|
|
7653
|
+
"arguments": "p_tax_point_date date, p_entry_date date",
|
|
7654
|
+
"anon": [],
|
|
7655
|
+
"authenticated": [
|
|
7656
|
+
"execute"
|
|
7657
|
+
],
|
|
7658
|
+
"service_role": [
|
|
7659
|
+
"execute"
|
|
7660
|
+
]
|
|
7661
|
+
},
|
|
7457
7662
|
{
|
|
7458
7663
|
"name": "default_statement_code",
|
|
7459
7664
|
"arguments": "p_company_id uuid, p_kind text, p_at date",
|
|
@@ -7660,6 +7865,14 @@
|
|
|
7660
7865
|
"execute"
|
|
7661
7866
|
]
|
|
7662
7867
|
},
|
|
7868
|
+
{
|
|
7869
|
+
"name": "entries_declared_on_follows",
|
|
7870
|
+
"arguments": "",
|
|
7871
|
+
"trigger": true,
|
|
7872
|
+
"anon": [],
|
|
7873
|
+
"authenticated": [],
|
|
7874
|
+
"service_role": []
|
|
7875
|
+
},
|
|
7663
7876
|
{
|
|
7664
7877
|
"name": "entries_guard_kind",
|
|
7665
7878
|
"arguments": "",
|
|
@@ -7716,6 +7929,14 @@
|
|
|
7716
7929
|
"authenticated": [],
|
|
7717
7930
|
"service_role": []
|
|
7718
7931
|
},
|
|
7932
|
+
{
|
|
7933
|
+
"name": "entry_lines_set_declared_on",
|
|
7934
|
+
"arguments": "",
|
|
7935
|
+
"trigger": true,
|
|
7936
|
+
"anon": [],
|
|
7937
|
+
"authenticated": [],
|
|
7938
|
+
"service_role": []
|
|
7939
|
+
},
|
|
7719
7940
|
{
|
|
7720
7941
|
"name": "eu_vat_scope_of",
|
|
7721
7942
|
"arguments": "p_code text, p_on date",
|
|
@@ -8055,6 +8276,14 @@
|
|
|
8055
8276
|
"execute"
|
|
8056
8277
|
]
|
|
8057
8278
|
},
|
|
8279
|
+
{
|
|
8280
|
+
"name": "instance_admins_keep_one",
|
|
8281
|
+
"arguments": "",
|
|
8282
|
+
"trigger": true,
|
|
8283
|
+
"anon": [],
|
|
8284
|
+
"authenticated": [],
|
|
8285
|
+
"service_role": []
|
|
8286
|
+
},
|
|
8058
8287
|
{
|
|
8059
8288
|
"name": "instance_has_no_admin",
|
|
8060
8289
|
"arguments": "",
|
|
@@ -8068,6 +8297,28 @@
|
|
|
8068
8297
|
"execute"
|
|
8069
8298
|
]
|
|
8070
8299
|
},
|
|
8300
|
+
{
|
|
8301
|
+
"name": "instance_is_shared",
|
|
8302
|
+
"arguments": "",
|
|
8303
|
+
"anon": [],
|
|
8304
|
+
"authenticated": [
|
|
8305
|
+
"execute"
|
|
8306
|
+
],
|
|
8307
|
+
"service_role": [
|
|
8308
|
+
"execute"
|
|
8309
|
+
]
|
|
8310
|
+
},
|
|
8311
|
+
{
|
|
8312
|
+
"name": "instance_sharing",
|
|
8313
|
+
"arguments": "",
|
|
8314
|
+
"anon": [],
|
|
8315
|
+
"authenticated": [
|
|
8316
|
+
"execute"
|
|
8317
|
+
],
|
|
8318
|
+
"service_role": [
|
|
8319
|
+
"execute"
|
|
8320
|
+
]
|
|
8321
|
+
},
|
|
8071
8322
|
{
|
|
8072
8323
|
"name": "invite_member",
|
|
8073
8324
|
"arguments": "p_company_id uuid, p_email text, p_role member_role, p_capabilities jsonb, p_valid_for interval",
|
|
@@ -8240,6 +8491,17 @@
|
|
|
8240
8491
|
"execute"
|
|
8241
8492
|
]
|
|
8242
8493
|
},
|
|
8494
|
+
{
|
|
8495
|
+
"name": "may_know_of_company",
|
|
8496
|
+
"arguments": "p_company_id uuid",
|
|
8497
|
+
"anon": [],
|
|
8498
|
+
"authenticated": [
|
|
8499
|
+
"execute"
|
|
8500
|
+
],
|
|
8501
|
+
"service_role": [
|
|
8502
|
+
"execute"
|
|
8503
|
+
]
|
|
8504
|
+
},
|
|
8243
8505
|
{
|
|
8244
8506
|
"name": "member_capabilities",
|
|
8245
8507
|
"arguments": "p_company_id uuid, p_user_id uuid",
|
|
@@ -8764,6 +9026,13 @@
|
|
|
8764
9026
|
"execute"
|
|
8765
9027
|
]
|
|
8766
9028
|
},
|
|
9029
|
+
{
|
|
9030
|
+
"name": "scope_references_to_company",
|
|
9031
|
+
"arguments": "p_schema text",
|
|
9032
|
+
"anon": [],
|
|
9033
|
+
"authenticated": [],
|
|
9034
|
+
"service_role": []
|
|
9035
|
+
},
|
|
8767
9036
|
{
|
|
8768
9037
|
"name": "set_member_role",
|
|
8769
9038
|
"arguments": "p_company_id uuid, p_user_id uuid, p_role member_role, p_capabilities jsonb",
|
|
@@ -8838,6 +9107,17 @@
|
|
|
8838
9107
|
"execute"
|
|
8839
9108
|
]
|
|
8840
9109
|
},
|
|
9110
|
+
{
|
|
9111
|
+
"name": "share_instance",
|
|
9112
|
+
"arguments": "p_companies_per_person integer",
|
|
9113
|
+
"anon": [],
|
|
9114
|
+
"authenticated": [
|
|
9115
|
+
"execute"
|
|
9116
|
+
],
|
|
9117
|
+
"service_role": [
|
|
9118
|
+
"execute"
|
|
9119
|
+
]
|
|
9120
|
+
},
|
|
8841
9121
|
{
|
|
8842
9122
|
"name": "shared_document",
|
|
8843
9123
|
"arguments": "p_token text",
|
|
@@ -8925,6 +9205,14 @@
|
|
|
8925
9205
|
"authenticated": [],
|
|
8926
9206
|
"service_role": []
|
|
8927
9207
|
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "tax_filing_deposits_files_are_its_own",
|
|
9210
|
+
"arguments": "",
|
|
9211
|
+
"trigger": true,
|
|
9212
|
+
"anon": [],
|
|
9213
|
+
"authenticated": [],
|
|
9214
|
+
"service_role": []
|
|
9215
|
+
},
|
|
8928
9216
|
{
|
|
8929
9217
|
"name": "tax_filings_report_exists",
|
|
8930
9218
|
"arguments": "",
|
|
@@ -9079,6 +9367,17 @@
|
|
|
9079
9367
|
"execute"
|
|
9080
9368
|
]
|
|
9081
9369
|
},
|
|
9370
|
+
{
|
|
9371
|
+
"name": "unshare_instance",
|
|
9372
|
+
"arguments": "",
|
|
9373
|
+
"anon": [],
|
|
9374
|
+
"authenticated": [
|
|
9375
|
+
"execute"
|
|
9376
|
+
],
|
|
9377
|
+
"service_role": [
|
|
9378
|
+
"execute"
|
|
9379
|
+
]
|
|
9380
|
+
},
|
|
9082
9381
|
{
|
|
9083
9382
|
"name": "upcoming_filings",
|
|
9084
9383
|
"arguments": "p_company_id uuid, p_from date, p_to date",
|
|
@@ -9101,6 +9400,14 @@
|
|
|
9101
9400
|
"execute"
|
|
9102
9401
|
]
|
|
9103
9402
|
},
|
|
9403
|
+
{
|
|
9404
|
+
"name": "user_preferences_company_is_known",
|
|
9405
|
+
"arguments": "",
|
|
9406
|
+
"trigger": true,
|
|
9407
|
+
"anon": [],
|
|
9408
|
+
"authenticated": [],
|
|
9409
|
+
"service_role": []
|
|
9410
|
+
},
|
|
9104
9411
|
{
|
|
9105
9412
|
"name": "vat_prefix_of",
|
|
9106
9413
|
"arguments": "p_code text",
|