@lotics/app-sdk 0.133.7 → 0.133.9
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/docs/mutations.md +3 -3
- package/docs/queries.md +5 -2
- package/package.json +1 -1
package/docs/mutations.md
CHANGED
|
@@ -440,8 +440,8 @@ Row-level query results carry a `__source_locked` addressing column automaticall
|
|
|
440
440
|
project/filter/sort/join but not grouping, where rows stop being records).
|
|
441
441
|
`readLocked(row)` — pass the **whole row**, not a cell — returns `true` for a locked record,
|
|
442
442
|
`false` when the flag is absent (`dist/row.d.ts`). Use it to render a locked state and to
|
|
443
|
-
switch the save path. `readLockedBy(row)` names who can change it — its table
|
|
444
|
-
|
|
443
|
+
switch the save path. `readLockedBy(row)` names who can change it — the people who manage its table (its owner, its
|
|
444
|
+
managers and its workspace's admins) — for a member of the app's organization; `[]` for anyone else.
|
|
445
445
|
|
|
446
446
|
### What a write against a locked record does
|
|
447
447
|
|
|
@@ -487,7 +487,7 @@ Contract points:
|
|
|
487
487
|
a whole. Include every changed field in the same call; don't submit per-field requests.
|
|
488
488
|
- **Nothing changes immediately.** The tool returns
|
|
489
489
|
`{ request_id, status: "pending" }`; the record's values update only when an
|
|
490
|
-
approver (the
|
|
490
|
+
approver (one of the people who manage the table) accepts. The submission
|
|
491
491
|
succeeds, so the automatic re-read fires and returns the *old* values — that is correct,
|
|
492
492
|
and it is why the pending state must come from the RESULT rather than from the row. Render
|
|
493
493
|
it from `data.request_id`; don't poll the record for values no one has approved yet.
|
package/docs/queries.md
CHANGED
|
@@ -425,8 +425,11 @@ must be valid over `field`'s type — a refusal lists the valid ones.
|
|
|
425
425
|
`{ record_id: true }` for identity). The **entire** supported surface:
|
|
426
426
|
|
|
427
427
|
- **Functions**: `concat`, `coalesce`, `round`, `floor`, `ceil`/`ceiling`, `abs`, `lower`/
|
|
428
|
-
`toLowerCase`, `upper`/`toUpperCase`, `length`, `trim`, `isNull`/`isNil`, `isNotNull
|
|
429
|
-
(`round`/`floor`/`ceil`/`abs` are 1-arg; `round` rounds to
|
|
428
|
+
`toLowerCase`, `upper`/`toUpperCase`, `length`, `trim`, `isNull`/`isNil`, `isNotNull`,
|
|
429
|
+
`now`, `differenceInCalendarDays`. (`round`/`floor`/`ceil`/`abs` are 1-arg; `round` rounds to
|
|
430
|
+
an integer. `differenceInCalendarDays(a, b)` counts calendar days from `b` to `a` in the
|
|
431
|
+
workspace's zone, as the formula does — `differenceInCalendarDays(coalesce(input.out, now()), input.in)`
|
|
432
|
+
is a stay's days so far.)
|
|
430
433
|
- **Operators**: `+ - * / %`, `== === != !==`, `< > <= >=`, `&& ||`, `??` (→ `COALESCE`),
|
|
431
434
|
unary `- + !`, and the ternary `cond ? a : b`.
|
|
432
435
|
- **Not supported** (rejected at bind): indexing `[…]`, nested access (`input.a.b`), list/map
|
package/package.json
CHANGED