@lotics/cli 0.321.117 → 0.321.119
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/dist/src/cli.js +4 -4
- package/docs/build.md +1 -1
- package/docs/workflows.md +2 -1
- package/package.json +1 -1
package/docs/build.md
CHANGED
|
@@ -62,7 +62,7 @@ Linked tables go in one call, since they name each other by `ref`; `records` and
|
|
|
62
62
|
}
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
`default_from` copies the menu's price when a line is made, so a later change leaves taken orders alone. `min`, `unique` and a check hold on every write; a check's language is `workflows/table-checks`, an effect after a write a table workflow (`workflows/table-workflows`). A check at its smallest, under an alias in the table's `checks`: `{"on": ["create"], "fail_when": "record.quantity < 1", "message": "\"Quantity is at least 1\""}`; `message` is an expression, so fixed text is a quoted string.
|
|
65
|
+
`default_from` copies the menu's price when a line is made, so a later change leaves taken orders alone. `min`, `unique` and a check hold on every write; a check's language is `workflows/table-checks`, an effect after a write a table workflow (`workflows/table-workflows`). A check at its smallest, under an alias in the table's `checks`: `{"on": ["create"], "fail_when": "record.quantity < 1", "message": "\"Quantity is at least 1\""}`; `message` is an expression, so fixed text is a quoted string. A check refuses the write, a table workflow's too, so it states only what the business says must never happen; a fact going out of line (stock short of what lines take, totals that do not match) is an issue the row keeps (`design/issues`).
|
|
66
66
|
|
|
67
67
|
A `date` field is a day, or a moment with `"format": "datetime"`; a time of day is a `text` field with `"format": "time"`. Days between two dates in a formula is `differenceInCalendarDays(later, earlier)`; the helpers are named exactly (`reference/formula`). Two rows that must not hold one resource at once are the table's `no_overlap`: `{"from": "start_at", "to": "end_at", "by": "room"}`, a list where a row holds two resources (`reference/no-overlap`).
|
|
68
68
|
|
package/docs/workflows.md
CHANGED
|
@@ -941,7 +941,8 @@ One open order per reference, a row never counting against itself:
|
|
|
941
941
|
A table workflow is what follows every committed write of a table's rows, whoever makes it: the grid, an import, an agent or
|
|
942
942
|
any app. An effect that must hold for all of them belongs to the table. A button on one screen is that app's act, a value fixed
|
|
943
943
|
when a row is made is `default_from`, and a rule that refuses a write is a check; a table workflow runs after the write has
|
|
944
|
-
committed and cannot refuse it.
|
|
944
|
+
committed and cannot refuse it. An agent's write waits for the runs it set off, while they run and at most 10 seconds, and
|
|
945
|
+
its answer names each that failed or had not ended.
|
|
945
946
|
|
|
946
947
|
`set_workflow` writes it: the `source` opens with `on({ type, table, ... })` and carries the steps, and `enabled: false`
|
|
947
948
|
keeps the workflow without running it (absent, it runs). `get_table` lists a table's workflows to whoever manages the
|