@lotics/cli 0.295.3 → 0.296.1
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 +193 -110
- package/docs/data_model.md +15 -0
- package/docs/design.md +3 -0
- package/package.json +1 -1
package/docs/data_model.md
CHANGED
|
@@ -186,6 +186,21 @@ backfilled, and null clears it. A select's or a member field's default is an ARR
|
|
|
186
186
|
field holds one (`["Unread"]`, never `"Unread"`) — option names in `add_fields`, where the keys do
|
|
187
187
|
not exist yet, and option keys (`opt_…`) in `update_fields`.
|
|
188
188
|
|
|
189
|
+
`default_from` (text, number, date, boolean, select, select_member, select_record_link) copies a
|
|
190
|
+
value onto a NEW record off the row one of its links names: `{ link_field_key, field_key,
|
|
191
|
+
options? }`, the link of cardinality `"one"` and not itself copied, the source a field of the linked
|
|
192
|
+
table of this field's own type, date format and notation (a link one to the same table) — a formula,
|
|
193
|
+
a rollup, or a lookup through a one-row link (or an ordered one) read as the value it holds; several
|
|
194
|
+
values only into a field holding several; never into a date `derive_from` stamps. It is
|
|
195
|
+
copied when the record is made and never re-read, so a later change to the source leaves the record
|
|
196
|
+
alone (a line's price as it was when the line was booked). A value the write states wins, then the
|
|
197
|
+
copy, then `default_value`. A select source's `options` maps its option keys onto this field's
|
|
198
|
+
(`update_fields`, once the keys exist); an option left unmapped is not copied. null clears it. Deleting the link a
|
|
199
|
+
copy reads through, or the field it copies off, is refused even with `force` until the copy is
|
|
200
|
+
cleared; the dependency report lists the copying field as `copy_link` or `copy_source` under
|
|
201
|
+
`requires_manual_action`. Any other schema change that leaves a copy unable to stand — its source
|
|
202
|
+
retyped, its link made to hold many — is refused, naming the copy.
|
|
203
|
+
|
|
189
204
|
### Computed fields
|
|
190
205
|
|
|
191
206
|
Read-only in records. `formula` is one key holding an object; a rollup's and a lookup's properties
|
package/docs/design.md
CHANGED
|
@@ -237,6 +237,9 @@ captured — and files it as a new row of the record's `timeline` child (`into`)
|
|
|
237
237
|
reads whole (a `text` block).
|
|
238
238
|
- Every category the job reads is coloured: each select option's `color`, and a `mark` where a brand or a
|
|
239
239
|
glyph names it — on every option of a select read down a column (how it was paid, the channel, the mode).
|
|
240
|
+
- Someone is a face wherever they are read. A person is a member field and a party a row of an entity stating
|
|
241
|
+
`party`; where a select's options name people or organisations who are neither, every option's `mark` is
|
|
242
|
+
its face (`{"kind": "avatar", "name": "person"}`), never a colour dot.
|
|
240
243
|
- Every files field is drawn somewhere — a section's `fields`, a `files` block, the `image`, or where the
|
|
241
244
|
act making it stands.
|
|
242
245
|
- The paperwork is the proof of the work, so every paper the job takes in and every document it issues has a
|