@zveltio/sdk 3.0.0-beta.115 → 3.0.0-beta.123

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.
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "actions": {
25
25
  "$ref": "#/$defs/Buttons",
26
- "description": "Toolbar actions of this view."
26
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
27
27
  },
28
28
  "fallback": {
29
29
  "$ref": "#/$defs/View",
@@ -117,7 +117,7 @@
117
117
  },
118
118
  "actions": {
119
119
  "$ref": "#/$defs/Buttons",
120
- "description": "Toolbar actions of this view."
120
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
121
121
  },
122
122
  "fallback": {
123
123
  "$ref": "#/$defs/View",
@@ -220,7 +220,7 @@
220
220
  },
221
221
  "actions": {
222
222
  "$ref": "#/$defs/Buttons",
223
- "description": "Toolbar actions of this view."
223
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
224
224
  },
225
225
  "fallback": {
226
226
  "$ref": "#/$defs/View",
@@ -314,7 +314,7 @@
314
314
  },
315
315
  "actions": {
316
316
  "$ref": "#/$defs/Buttons",
317
- "description": "Toolbar actions of this view."
317
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
318
318
  },
319
319
  "fallback": {
320
320
  "$ref": "#/$defs/View",
@@ -335,6 +335,25 @@
335
335
  "$ref": "#/$defs/View"
336
336
  },
337
337
  "minItems": 1
338
+ },
339
+ "onOpen": {
340
+ "type": "object",
341
+ "description": "Runs the action when a record is shown and meets `when`, once per record; its result is not shown.",
342
+ "properties": {
343
+ "action": {
344
+ "$ref": "#/$defs/ActionName"
345
+ },
346
+ "input": {
347
+ "$ref": "#/$defs/Input"
348
+ },
349
+ "when": {
350
+ "$ref": "#/$defs/Conditions"
351
+ }
352
+ },
353
+ "required": [
354
+ "action"
355
+ ],
356
+ "additionalProperties": false
338
357
  }
339
358
  },
340
359
  "required": [
@@ -364,7 +383,7 @@
364
383
  },
365
384
  "actions": {
366
385
  "$ref": "#/$defs/Buttons",
367
- "description": "Toolbar actions of this view."
386
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
368
387
  },
369
388
  "fallback": {
370
389
  "$ref": "#/$defs/View",
@@ -413,7 +432,7 @@
413
432
  },
414
433
  "actions": {
415
434
  "$ref": "#/$defs/Buttons",
416
- "description": "Toolbar actions of this view."
435
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
417
436
  },
418
437
  "fallback": {
419
438
  "$ref": "#/$defs/View",
@@ -473,7 +492,7 @@
473
492
  },
474
493
  "actions": {
475
494
  "$ref": "#/$defs/Buttons",
476
- "description": "Toolbar actions of this view."
495
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
477
496
  },
478
497
  "fallback": {
479
498
  "$ref": "#/$defs/View",
@@ -523,7 +542,7 @@
523
542
  },
524
543
  "actions": {
525
544
  "$ref": "#/$defs/Buttons",
526
- "description": "Toolbar actions of this view."
545
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
527
546
  },
528
547
  "fallback": {
529
548
  "$ref": "#/$defs/View",
@@ -574,7 +593,7 @@
574
593
  },
575
594
  "actions": {
576
595
  "$ref": "#/$defs/Buttons",
577
- "description": "Toolbar actions of this view."
596
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
578
597
  },
579
598
  "fallback": {
580
599
  "$ref": "#/$defs/View",
@@ -620,7 +639,7 @@
620
639
  },
621
640
  "actions": {
622
641
  "$ref": "#/$defs/Buttons",
623
- "description": "Toolbar actions of this view."
642
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
624
643
  },
625
644
  "fallback": {
626
645
  "$ref": "#/$defs/View",
@@ -700,7 +719,7 @@
700
719
  },
701
720
  "actions": {
702
721
  "$ref": "#/$defs/Buttons",
703
- "description": "Toolbar actions of this view."
722
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
704
723
  },
705
724
  "fallback": {
706
725
  "$ref": "#/$defs/View",
@@ -740,7 +759,7 @@
740
759
  },
741
760
  "actions": {
742
761
  "$ref": "#/$defs/Buttons",
743
- "description": "Toolbar actions of this view."
762
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
744
763
  },
745
764
  "fallback": {
746
765
  "$ref": "#/$defs/View",
@@ -1081,6 +1100,10 @@
1081
1100
  },
1082
1101
  "readOnly": {
1083
1102
  "type": "boolean"
1103
+ },
1104
+ "fallback": {
1105
+ "$ref": "#/$defs/Name",
1106
+ "description": "The field shown instead while this one is empty."
1084
1107
  }
1085
1108
  },
1086
1109
  "required": [
@@ -1155,6 +1178,13 @@
1155
1178
  },
1156
1179
  "when": {
1157
1180
  "$ref": "#/$defs/Conditions"
1181
+ },
1182
+ "busyWhen": {
1183
+ "$ref": "#/$defs/Conditions",
1184
+ "description": "While the record meets these, the work the action started is under way: the button is busy, and the front end reads the record again until it no longer does."
1185
+ },
1186
+ "files": {
1187
+ "$ref": "#/$defs/FileHandoff"
1158
1188
  }
1159
1189
  },
1160
1190
  "required": [
@@ -1209,6 +1239,33 @@
1209
1239
  },
1210
1240
  "minItems": 1
1211
1241
  },
1242
+ "FileHandoff": {
1243
+ "type": "object",
1244
+ "description": "Stored files the caller hands the action's job (`$files`, ADR 0032).",
1245
+ "properties": {
1246
+ "read": {
1247
+ "$ref": "#/$defs/Value",
1248
+ "description": "File ids the job may read, or a `file` field's value (its files' ids)."
1249
+ },
1250
+ "write": {
1251
+ "type": "object",
1252
+ "description": "The one file the job may store.",
1253
+ "properties": {
1254
+ "name": {
1255
+ "$ref": "#/$defs/Value"
1256
+ },
1257
+ "maxBytes": {
1258
+ "$ref": "#/$defs/Value"
1259
+ }
1260
+ },
1261
+ "required": [
1262
+ "name"
1263
+ ],
1264
+ "additionalProperties": false
1265
+ }
1266
+ },
1267
+ "additionalProperties": false
1268
+ },
1212
1269
  "ListView": {
1213
1270
  "type": "object",
1214
1271
  "description": "Rows of a collection.",
@@ -1224,7 +1281,7 @@
1224
1281
  },
1225
1282
  "actions": {
1226
1283
  "$ref": "#/$defs/Buttons",
1227
- "description": "Toolbar actions of this view."
1284
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1228
1285
  },
1229
1286
  "fallback": {
1230
1287
  "$ref": "#/$defs/View",
@@ -1313,7 +1370,7 @@
1313
1370
  },
1314
1371
  "actions": {
1315
1372
  "$ref": "#/$defs/Buttons",
1316
- "description": "Toolbar actions of this view."
1373
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1317
1374
  },
1318
1375
  "fallback": {
1319
1376
  "$ref": "#/$defs/View",
@@ -1411,7 +1468,7 @@
1411
1468
  },
1412
1469
  "actions": {
1413
1470
  "$ref": "#/$defs/Buttons",
1414
- "description": "Toolbar actions of this view."
1471
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1415
1472
  },
1416
1473
  "fallback": {
1417
1474
  "$ref": "#/$defs/View",
@@ -1500,7 +1557,7 @@
1500
1557
  },
1501
1558
  "actions": {
1502
1559
  "$ref": "#/$defs/Buttons",
1503
- "description": "Toolbar actions of this view."
1560
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1504
1561
  },
1505
1562
  "fallback": {
1506
1563
  "$ref": "#/$defs/View",
@@ -1521,6 +1578,25 @@
1521
1578
  "$ref": "#/$defs/View"
1522
1579
  },
1523
1580
  "minItems": 1
1581
+ },
1582
+ "onOpen": {
1583
+ "type": "object",
1584
+ "description": "Runs the action when a record is shown and meets `when`, once per record; its result is not shown.",
1585
+ "properties": {
1586
+ "action": {
1587
+ "$ref": "#/$defs/ActionName"
1588
+ },
1589
+ "input": {
1590
+ "$ref": "#/$defs/Input"
1591
+ },
1592
+ "when": {
1593
+ "$ref": "#/$defs/Conditions"
1594
+ }
1595
+ },
1596
+ "required": [
1597
+ "action"
1598
+ ],
1599
+ "additionalProperties": false
1524
1600
  }
1525
1601
  },
1526
1602
  "required": [
@@ -1545,7 +1621,7 @@
1545
1621
  },
1546
1622
  "actions": {
1547
1623
  "$ref": "#/$defs/Buttons",
1548
- "description": "Toolbar actions of this view."
1624
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1549
1625
  },
1550
1626
  "fallback": {
1551
1627
  "$ref": "#/$defs/View",
@@ -1589,7 +1665,7 @@
1589
1665
  },
1590
1666
  "actions": {
1591
1667
  "$ref": "#/$defs/Buttons",
1592
- "description": "Toolbar actions of this view."
1668
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1593
1669
  },
1594
1670
  "fallback": {
1595
1671
  "$ref": "#/$defs/View",
@@ -1644,7 +1720,7 @@
1644
1720
  },
1645
1721
  "actions": {
1646
1722
  "$ref": "#/$defs/Buttons",
1647
- "description": "Toolbar actions of this view."
1723
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1648
1724
  },
1649
1725
  "fallback": {
1650
1726
  "$ref": "#/$defs/View",
@@ -1689,7 +1765,7 @@
1689
1765
  },
1690
1766
  "actions": {
1691
1767
  "$ref": "#/$defs/Buttons",
1692
- "description": "Toolbar actions of this view."
1768
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1693
1769
  },
1694
1770
  "fallback": {
1695
1771
  "$ref": "#/$defs/View",
@@ -1735,7 +1811,7 @@
1735
1811
  },
1736
1812
  "actions": {
1737
1813
  "$ref": "#/$defs/Buttons",
1738
- "description": "Toolbar actions of this view."
1814
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1739
1815
  },
1740
1816
  "fallback": {
1741
1817
  "$ref": "#/$defs/View",
@@ -1776,7 +1852,7 @@
1776
1852
  },
1777
1853
  "actions": {
1778
1854
  "$ref": "#/$defs/Buttons",
1779
- "description": "Toolbar actions of this view."
1855
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1780
1856
  },
1781
1857
  "fallback": {
1782
1858
  "$ref": "#/$defs/View",
@@ -1851,7 +1927,7 @@
1851
1927
  },
1852
1928
  "actions": {
1853
1929
  "$ref": "#/$defs/Buttons",
1854
- "description": "Toolbar actions of this view."
1930
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1855
1931
  },
1856
1932
  "fallback": {
1857
1933
  "$ref": "#/$defs/View",
@@ -1886,7 +1962,7 @@
1886
1962
  },
1887
1963
  "actions": {
1888
1964
  "$ref": "#/$defs/Buttons",
1889
- "description": "Toolbar actions of this view."
1965
+ "description": "Toolbar actions of this view; a detail's act on the record it shows (`$record`)."
1890
1966
  },
1891
1967
  "fallback": {
1892
1968
  "$ref": "#/$defs/View",