Expand description
Typed client-form operations. The natives and the web decode their input, call these and encode the result; they own the behaviour.
Structs§
- Form
Option - One selectable entity: id, unique display label and its bare name.
- Merge
Preview - What merging the picked accounts does:
splitssplits move tointo. - Merged
- What a merge did:
movedsplits went fromfromtointo. - Query
Page - A page of the listed transactions.
- Query
Row - One listed transaction.
- Split
Detail - One stored split with its account path, commodity symbol and all its tags, sorted by name then value.
- Stored
Split - One stored split with all its tags, sorted by name then value.
- Submitted
- What a successful submit created or changed.
- Template
Draft - What a test of a template produced: its draft and why the create form cannot be pre-filled from it, if it cannot.
- Test
Error - A template that did not get as far as a draft, and where it stopped.
- Transaction
Detail - A stored transaction as one complete read: header, prices, its own tags
(the
notetag excluded, it isnote) and the splits with their tags.
Enums§
- Entity
- What a form operation addresses by id.
- Failure
- Form
Action - Form
Outcome - Handler
- What the server does with a compiled-in form.
- Outcome
- Report
Outcome - The result of a report form: the three outcomes a chart can be drawn from.
- Stage
- Suggestion
- What a text cell asks to be suggested.
Constants§
- DEFAULT_
LIMIT - The page size of a query with an empty
limit.
Functions§
- apply_
report_ defaults - Empty
fromis this month’s start, emptytoandas-ofaretoday. A balance report’sfromstays open: its snapshot starts at the beginning. - convert
convertquery: the amount in the target commodity.- count_
result - Counts
resultas one request and hands it back. - detail
- The user’s transaction as one snapshot, without any labels;
Missingwhen it does not exist. - form_
named - The compiled-in form named
name. - labelled_
splits - The splits of the transaction with account and commodity labels, for the web row fragment.
- load
- The values of the compiled-in form
formfor the entityid. - load_
noticed loadand the notice a script stored without source carries.- merge_
accounts - Merge
fromintointo; a refusal names its reason. - merge_
preview - What submitting
valueswould merge. - merge_
submit account-mergesubmit: the merge with the count it moved.- options
- The user’s accounts, commodities or templates as picker options. An account
holding exactly one commodity carries it as
commodity; a template is labelled by its name, listed in the web’s order. - parse_
payload - Read the plist of a submit payload. Keys the form does not declare are ignored; a declared key holding a non-string is a field error.
- query
- The transactions matching the
transaction-queryvalues; an emptylimitmeansDEFAULT_LIMIT. - record_
form_ request - run_
report_ in typed_report_inas the general outcome.- set_
config config-setsubmit: stores the value under the key.- submit
- Submit
valuesof the compiled-in mutation formform. - submit_
noticed submitand the notice a created account, or an edited one whose name changed, carries when it shares its name with a sibling.- suggestions
- The user’s strings for
request. - template_
draft - Compile and render
sourceforuser_id; the one path thetemplate-testform and the web test endpoint share. - template_
values - The create values a rendered template stands for.
- test_
template - The
template-testquery overvalues. - typed_
report - Runs the report of the compiled-in query form
form. - typed_
report_ in typed_report_onfor a caller that already holds the user’szone.- typed_
report_ on typed_reportat the instantnow: the user’s zone is read once, the empty dates default from the local day ofnow, and typed days are read in that zone.- user_
zone - The zone of
user_id’s reports; UTC when they set none.