@lotics/cli 0.295.2 → 0.296.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/dist/src/cli.js +185 -107
- package/docs/data_model.md +15 -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
|