@lotics/app-sdk 0.133.8 → 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.
Files changed (2) hide show
  1. package/docs/queries.md +5 -2
  2. package/package.json +1 -1
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 an integer.)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.133.8",
3
+ "version": "0.133.9",
4
4
  "description": "The SDK a Lotics custom-code app reads and writes through — typed hooks over the host bridge, cell readers, mount() and AppRouter",
5
5
  "type": "module",
6
6
  "exports": {