@inf-monkeys-tech/monkeys 1.1.63 → 1.1.65

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 (50) hide show
  1. package/lib/contracts/bento-block.d.ts +491 -0
  2. package/lib/contracts/bento-block.d.ts.map +1 -1
  3. package/lib/contracts/bento-block.js +158 -12
  4. package/lib/contracts/bento-block.js.map +1 -1
  5. package/lib/contracts/declarative-control-http.d.ts +2358 -255
  6. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  7. package/lib/contracts/declarative-control.d.ts +193 -19
  8. package/lib/contracts/declarative-control.d.ts.map +1 -1
  9. package/lib/contracts/declarative-publication-job.d.ts +504 -64
  10. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  11. package/lib/contracts/page.d.ts +1 -1
  12. package/lib/contracts/render.d.ts +118 -30
  13. package/lib/contracts/render.d.ts.map +1 -1
  14. package/lib/contracts/render.js +6 -1
  15. package/lib/contracts/render.js.map +1 -1
  16. package/lib/contracts/tenant.d.ts +7 -7
  17. package/lib/contracts/unified-view.d.ts +87 -0
  18. package/lib/contracts/unified-view.d.ts.map +1 -1
  19. package/lib/contracts/workflow-column.d.ts +2 -2
  20. package/lib/esm/{chunk-SDA2NWFB.mjs → chunk-AOAJSAI7.mjs} +2 -2
  21. package/lib/esm/chunk-AOAJSAI7.mjs.map +1 -0
  22. package/lib/esm/{chunk-766TRFRH.mjs → chunk-BFGFPBEU.mjs} +142 -12
  23. package/lib/esm/chunk-BFGFPBEU.mjs.map +1 -0
  24. package/lib/esm/{chunk-BTJGKWPM.mjs → chunk-E6UOE6OP.mjs} +6 -3
  25. package/lib/esm/{chunk-BTJGKWPM.mjs.map → chunk-E6UOE6OP.mjs.map} +1 -1
  26. package/lib/esm/{chunk-MP4OJWJ3.mjs → chunk-WC65QK2H.mjs} +2 -2
  27. package/lib/esm/contracts/index.mjs +24 -2
  28. package/lib/esm/index.mjs +26 -4
  29. package/lib/esm/index.mjs.map +1 -1
  30. package/lib/esm/runtime/index.mjs +3 -3
  31. package/lib/esm/schemas/index.mjs +26 -2
  32. package/lib/json-schema/bento-node.schema.json +425 -1
  33. package/lib/json-schema/overlay-node.schema.json +423 -1
  34. package/lib/json-schema/page-runtime-bundle.schema.json +720 -2
  35. package/lib/json-schema/render-node.schema.json +423 -1
  36. package/lib/json-schema/render-tree.schema.json +720 -2
  37. package/lib/json-schema/view-ontology-record.schema.json +722 -2
  38. package/lib/runtime/bento-render-tree.d.ts.map +1 -1
  39. package/lib/runtime/bento-render-tree.js +3 -0
  40. package/lib/runtime/bento-render-tree.js.map +1 -1
  41. package/lib/runtime/runtime-definition-wire.d.ts +252 -32
  42. package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
  43. package/lib/schemas/index.d.ts +189 -15
  44. package/lib/schemas/index.d.ts.map +1 -1
  45. package/lib/schemas/index.js +16 -3
  46. package/lib/schemas/index.js.map +1 -1
  47. package/package.json +2 -2
  48. package/lib/esm/chunk-766TRFRH.mjs.map +0 -1
  49. package/lib/esm/chunk-SDA2NWFB.mjs.map +0 -1
  50. /package/lib/esm/{chunk-MP4OJWJ3.mjs.map → chunk-WC65QK2H.mjs.map} +0 -0
@@ -280,13 +280,39 @@
280
280
  "min",
281
281
  "max",
282
282
  "distinct_count",
283
- "ratio"
283
+ "ratio",
284
+ "count_distinct",
285
+ "percentile",
286
+ "trimmed_avg",
287
+ "first_by",
288
+ "last_by"
284
289
  ]
285
290
  },
286
291
  "fieldKey": {
287
292
  "type": "string",
288
293
  "minLength": 1,
289
294
  "maxLength": 256
295
+ },
296
+ "numeric": {
297
+ "type": "boolean"
298
+ },
299
+ "percentile": {
300
+ "type": "number",
301
+ "minimum": 0,
302
+ "maximum": 100
303
+ },
304
+ "trimTopPct": {
305
+ "type": "number",
306
+ "minimum": 0,
307
+ "maximum": 100
308
+ },
309
+ "orderColumnId": {
310
+ "type": "string",
311
+ "minLength": 1,
312
+ "maxLength": 256
313
+ },
314
+ "filter": {
315
+ "$ref": "#/$defs/__schema0"
290
316
  }
291
317
  },
292
318
  "required": [
@@ -343,6 +369,276 @@
343
369
  "type": "integer",
344
370
  "minimum": 1,
345
371
  "maximum": 1000
372
+ },
373
+ "engine": {
374
+ "type": "string",
375
+ "enum": [
376
+ "auto",
377
+ "canonical",
378
+ "search"
379
+ ]
380
+ },
381
+ "allTeams": {
382
+ "type": "boolean"
383
+ },
384
+ "exact": {
385
+ "type": "boolean"
386
+ },
387
+ "includeTotals": {
388
+ "type": "boolean"
389
+ },
390
+ "timeBucket": {
391
+ "type": "object",
392
+ "properties": {
393
+ "column": {
394
+ "type": "string",
395
+ "minLength": 1,
396
+ "maxLength": 256
397
+ },
398
+ "granularity": {
399
+ "type": "string",
400
+ "enum": [
401
+ "hour",
402
+ "day",
403
+ "week",
404
+ "month",
405
+ "quarter",
406
+ "year"
407
+ ]
408
+ },
409
+ "timezone": {
410
+ "type": "string",
411
+ "minLength": 1,
412
+ "maxLength": 128
413
+ },
414
+ "fillGaps": {
415
+ "type": "boolean"
416
+ }
417
+ },
418
+ "required": [
419
+ "column",
420
+ "granularity"
421
+ ],
422
+ "additionalProperties": false
423
+ },
424
+ "joins": {
425
+ "maxItems": 16,
426
+ "type": "array",
427
+ "items": {
428
+ "type": "object",
429
+ "properties": {
430
+ "alias": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "maxLength": 256
434
+ },
435
+ "ontologyId": {
436
+ "type": "string",
437
+ "minLength": 1,
438
+ "maxLength": 256
439
+ },
440
+ "assetType": {
441
+ "type": "string",
442
+ "minLength": 1,
443
+ "maxLength": 256
444
+ },
445
+ "joinType": {
446
+ "type": "string",
447
+ "enum": [
448
+ "inner",
449
+ "left"
450
+ ]
451
+ },
452
+ "viaRelation": {
453
+ "type": "object",
454
+ "properties": {
455
+ "columnId": {
456
+ "type": "string",
457
+ "minLength": 1,
458
+ "maxLength": 256
459
+ },
460
+ "direction": {
461
+ "type": "string",
462
+ "enum": [
463
+ "outgoing",
464
+ "incoming"
465
+ ]
466
+ }
467
+ },
468
+ "required": [
469
+ "columnId",
470
+ "direction"
471
+ ],
472
+ "additionalProperties": false
473
+ },
474
+ "onColumn": {
475
+ "type": "object",
476
+ "properties": {
477
+ "localColumnId": {
478
+ "type": "string",
479
+ "minLength": 1,
480
+ "maxLength": 256
481
+ },
482
+ "foreignColumnId": {
483
+ "type": "string",
484
+ "minLength": 1,
485
+ "maxLength": 256
486
+ },
487
+ "foreignAssetId": {
488
+ "type": "boolean"
489
+ }
490
+ },
491
+ "required": [
492
+ "localColumnId"
493
+ ],
494
+ "additionalProperties": false
495
+ }
496
+ },
497
+ "required": [
498
+ "alias",
499
+ "ontologyId"
500
+ ],
501
+ "additionalProperties": false
502
+ }
503
+ },
504
+ "hierarchyScopes": {
505
+ "maxItems": 16,
506
+ "type": "array",
507
+ "items": {
508
+ "type": "object",
509
+ "properties": {
510
+ "targetAlias": {
511
+ "type": "string",
512
+ "minLength": 1,
513
+ "maxLength": 256
514
+ },
515
+ "localColumnId": {
516
+ "type": "string",
517
+ "minLength": 1,
518
+ "maxLength": 256
519
+ },
520
+ "ontologyId": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 256
524
+ },
525
+ "relationColumnId": {
526
+ "type": "string",
527
+ "minLength": 1,
528
+ "maxLength": 256
529
+ },
530
+ "direction": {
531
+ "type": "string",
532
+ "enum": [
533
+ "incoming",
534
+ "outgoing"
535
+ ]
536
+ },
537
+ "seedIds": {
538
+ "maxItems": 500,
539
+ "type": "array",
540
+ "items": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 256
544
+ }
545
+ },
546
+ "maxDepth": {
547
+ "type": "integer",
548
+ "minimum": 0,
549
+ "maximum": 32
550
+ },
551
+ "includeSelf": {
552
+ "type": "boolean"
553
+ }
554
+ },
555
+ "required": [
556
+ "ontologyId",
557
+ "relationColumnId",
558
+ "direction",
559
+ "seedIds"
560
+ ],
561
+ "additionalProperties": false
562
+ }
563
+ },
564
+ "unwind": {
565
+ "type": "object",
566
+ "properties": {
567
+ "columnId": {
568
+ "type": "string",
569
+ "minLength": 1,
570
+ "maxLength": 256
571
+ },
572
+ "jsonPath": {
573
+ "maxItems": 32,
574
+ "type": "array",
575
+ "items": {
576
+ "type": "string",
577
+ "minLength": 1,
578
+ "maxLength": 256
579
+ }
580
+ },
581
+ "preserveEmpty": {
582
+ "type": "boolean"
583
+ }
584
+ },
585
+ "required": [
586
+ "columnId"
587
+ ],
588
+ "additionalProperties": false
589
+ },
590
+ "having": {
591
+ "maxItems": 32,
592
+ "type": "array",
593
+ "items": {
594
+ "type": "object",
595
+ "properties": {
596
+ "key": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "maxLength": 256
600
+ },
601
+ "op": {
602
+ "type": "string",
603
+ "enum": [
604
+ "eq",
605
+ "ne",
606
+ "gt",
607
+ "gte",
608
+ "lt",
609
+ "lte"
610
+ ]
611
+ },
612
+ "value": {
613
+ "type": "number"
614
+ }
615
+ },
616
+ "required": [
617
+ "key",
618
+ "op",
619
+ "value"
620
+ ],
621
+ "additionalProperties": false
622
+ }
623
+ },
624
+ "pagination": {
625
+ "type": "object",
626
+ "properties": {
627
+ "offset": {
628
+ "type": "integer",
629
+ "minimum": 0,
630
+ "maximum": 9007199254740991
631
+ },
632
+ "limit": {
633
+ "type": "integer",
634
+ "minimum": 1,
635
+ "maximum": 10000
636
+ },
637
+ "includeTotalGroups": {
638
+ "type": "boolean"
639
+ }
640
+ },
641
+ "additionalProperties": false
346
642
  }
347
643
  },
348
644
  "required": [
@@ -1337,13 +1633,39 @@
1337
1633
  "min",
1338
1634
  "max",
1339
1635
  "distinct_count",
1340
- "ratio"
1636
+ "ratio",
1637
+ "count_distinct",
1638
+ "percentile",
1639
+ "trimmed_avg",
1640
+ "first_by",
1641
+ "last_by"
1341
1642
  ]
1342
1643
  },
1343
1644
  "fieldKey": {
1344
1645
  "type": "string",
1345
1646
  "minLength": 1,
1346
1647
  "maxLength": 256
1648
+ },
1649
+ "numeric": {
1650
+ "type": "boolean"
1651
+ },
1652
+ "percentile": {
1653
+ "type": "number",
1654
+ "minimum": 0,
1655
+ "maximum": 100
1656
+ },
1657
+ "trimTopPct": {
1658
+ "type": "number",
1659
+ "minimum": 0,
1660
+ "maximum": 100
1661
+ },
1662
+ "orderColumnId": {
1663
+ "type": "string",
1664
+ "minLength": 1,
1665
+ "maxLength": 256
1666
+ },
1667
+ "filter": {
1668
+ "$ref": "#/$defs/__schema0"
1347
1669
  }
1348
1670
  },
1349
1671
  "required": [
@@ -1400,6 +1722,276 @@
1400
1722
  "type": "integer",
1401
1723
  "minimum": 1,
1402
1724
  "maximum": 1000
1725
+ },
1726
+ "engine": {
1727
+ "type": "string",
1728
+ "enum": [
1729
+ "auto",
1730
+ "canonical",
1731
+ "search"
1732
+ ]
1733
+ },
1734
+ "allTeams": {
1735
+ "type": "boolean"
1736
+ },
1737
+ "exact": {
1738
+ "type": "boolean"
1739
+ },
1740
+ "includeTotals": {
1741
+ "type": "boolean"
1742
+ },
1743
+ "timeBucket": {
1744
+ "type": "object",
1745
+ "properties": {
1746
+ "column": {
1747
+ "type": "string",
1748
+ "minLength": 1,
1749
+ "maxLength": 256
1750
+ },
1751
+ "granularity": {
1752
+ "type": "string",
1753
+ "enum": [
1754
+ "hour",
1755
+ "day",
1756
+ "week",
1757
+ "month",
1758
+ "quarter",
1759
+ "year"
1760
+ ]
1761
+ },
1762
+ "timezone": {
1763
+ "type": "string",
1764
+ "minLength": 1,
1765
+ "maxLength": 128
1766
+ },
1767
+ "fillGaps": {
1768
+ "type": "boolean"
1769
+ }
1770
+ },
1771
+ "required": [
1772
+ "column",
1773
+ "granularity"
1774
+ ],
1775
+ "additionalProperties": false
1776
+ },
1777
+ "joins": {
1778
+ "maxItems": 16,
1779
+ "type": "array",
1780
+ "items": {
1781
+ "type": "object",
1782
+ "properties": {
1783
+ "alias": {
1784
+ "type": "string",
1785
+ "minLength": 1,
1786
+ "maxLength": 256
1787
+ },
1788
+ "ontologyId": {
1789
+ "type": "string",
1790
+ "minLength": 1,
1791
+ "maxLength": 256
1792
+ },
1793
+ "assetType": {
1794
+ "type": "string",
1795
+ "minLength": 1,
1796
+ "maxLength": 256
1797
+ },
1798
+ "joinType": {
1799
+ "type": "string",
1800
+ "enum": [
1801
+ "inner",
1802
+ "left"
1803
+ ]
1804
+ },
1805
+ "viaRelation": {
1806
+ "type": "object",
1807
+ "properties": {
1808
+ "columnId": {
1809
+ "type": "string",
1810
+ "minLength": 1,
1811
+ "maxLength": 256
1812
+ },
1813
+ "direction": {
1814
+ "type": "string",
1815
+ "enum": [
1816
+ "outgoing",
1817
+ "incoming"
1818
+ ]
1819
+ }
1820
+ },
1821
+ "required": [
1822
+ "columnId",
1823
+ "direction"
1824
+ ],
1825
+ "additionalProperties": false
1826
+ },
1827
+ "onColumn": {
1828
+ "type": "object",
1829
+ "properties": {
1830
+ "localColumnId": {
1831
+ "type": "string",
1832
+ "minLength": 1,
1833
+ "maxLength": 256
1834
+ },
1835
+ "foreignColumnId": {
1836
+ "type": "string",
1837
+ "minLength": 1,
1838
+ "maxLength": 256
1839
+ },
1840
+ "foreignAssetId": {
1841
+ "type": "boolean"
1842
+ }
1843
+ },
1844
+ "required": [
1845
+ "localColumnId"
1846
+ ],
1847
+ "additionalProperties": false
1848
+ }
1849
+ },
1850
+ "required": [
1851
+ "alias",
1852
+ "ontologyId"
1853
+ ],
1854
+ "additionalProperties": false
1855
+ }
1856
+ },
1857
+ "hierarchyScopes": {
1858
+ "maxItems": 16,
1859
+ "type": "array",
1860
+ "items": {
1861
+ "type": "object",
1862
+ "properties": {
1863
+ "targetAlias": {
1864
+ "type": "string",
1865
+ "minLength": 1,
1866
+ "maxLength": 256
1867
+ },
1868
+ "localColumnId": {
1869
+ "type": "string",
1870
+ "minLength": 1,
1871
+ "maxLength": 256
1872
+ },
1873
+ "ontologyId": {
1874
+ "type": "string",
1875
+ "minLength": 1,
1876
+ "maxLength": 256
1877
+ },
1878
+ "relationColumnId": {
1879
+ "type": "string",
1880
+ "minLength": 1,
1881
+ "maxLength": 256
1882
+ },
1883
+ "direction": {
1884
+ "type": "string",
1885
+ "enum": [
1886
+ "incoming",
1887
+ "outgoing"
1888
+ ]
1889
+ },
1890
+ "seedIds": {
1891
+ "maxItems": 500,
1892
+ "type": "array",
1893
+ "items": {
1894
+ "type": "string",
1895
+ "minLength": 1,
1896
+ "maxLength": 256
1897
+ }
1898
+ },
1899
+ "maxDepth": {
1900
+ "type": "integer",
1901
+ "minimum": 0,
1902
+ "maximum": 32
1903
+ },
1904
+ "includeSelf": {
1905
+ "type": "boolean"
1906
+ }
1907
+ },
1908
+ "required": [
1909
+ "ontologyId",
1910
+ "relationColumnId",
1911
+ "direction",
1912
+ "seedIds"
1913
+ ],
1914
+ "additionalProperties": false
1915
+ }
1916
+ },
1917
+ "unwind": {
1918
+ "type": "object",
1919
+ "properties": {
1920
+ "columnId": {
1921
+ "type": "string",
1922
+ "minLength": 1,
1923
+ "maxLength": 256
1924
+ },
1925
+ "jsonPath": {
1926
+ "maxItems": 32,
1927
+ "type": "array",
1928
+ "items": {
1929
+ "type": "string",
1930
+ "minLength": 1,
1931
+ "maxLength": 256
1932
+ }
1933
+ },
1934
+ "preserveEmpty": {
1935
+ "type": "boolean"
1936
+ }
1937
+ },
1938
+ "required": [
1939
+ "columnId"
1940
+ ],
1941
+ "additionalProperties": false
1942
+ },
1943
+ "having": {
1944
+ "maxItems": 32,
1945
+ "type": "array",
1946
+ "items": {
1947
+ "type": "object",
1948
+ "properties": {
1949
+ "key": {
1950
+ "type": "string",
1951
+ "minLength": 1,
1952
+ "maxLength": 256
1953
+ },
1954
+ "op": {
1955
+ "type": "string",
1956
+ "enum": [
1957
+ "eq",
1958
+ "ne",
1959
+ "gt",
1960
+ "gte",
1961
+ "lt",
1962
+ "lte"
1963
+ ]
1964
+ },
1965
+ "value": {
1966
+ "type": "number"
1967
+ }
1968
+ },
1969
+ "required": [
1970
+ "key",
1971
+ "op",
1972
+ "value"
1973
+ ],
1974
+ "additionalProperties": false
1975
+ }
1976
+ },
1977
+ "pagination": {
1978
+ "type": "object",
1979
+ "properties": {
1980
+ "offset": {
1981
+ "type": "integer",
1982
+ "minimum": 0,
1983
+ "maximum": 9007199254740991
1984
+ },
1985
+ "limit": {
1986
+ "type": "integer",
1987
+ "minimum": 1,
1988
+ "maximum": 10000
1989
+ },
1990
+ "includeTotalGroups": {
1991
+ "type": "boolean"
1992
+ }
1993
+ },
1994
+ "additionalProperties": false
1403
1995
  }
1404
1996
  },
1405
1997
  "required": [
@@ -1983,6 +2575,134 @@
1983
2575
  ],
1984
2576
  "additionalProperties": false
1985
2577
  },
2578
+ {
2579
+ "type": "object",
2580
+ "properties": {
2581
+ "kind": {
2582
+ "type": "string",
2583
+ "const": "ontology-relation"
2584
+ },
2585
+ "sourceOntologyId": {
2586
+ "type": "string",
2587
+ "minLength": 1,
2588
+ "maxLength": 256
2589
+ },
2590
+ "sourceRecordId": {
2591
+ "type": "string",
2592
+ "minLength": 1,
2593
+ "maxLength": 256
2594
+ },
2595
+ "direction": {
2596
+ "type": "string",
2597
+ "enum": [
2598
+ "outgoing",
2599
+ "incoming",
2600
+ "both"
2601
+ ]
2602
+ },
2603
+ "columnId": {
2604
+ "type": "string",
2605
+ "minLength": 1,
2606
+ "maxLength": 256
2607
+ },
2608
+ "targetOntologyIds": {
2609
+ "maxItems": 64,
2610
+ "type": "array",
2611
+ "items": {
2612
+ "type": "string",
2613
+ "minLength": 1,
2614
+ "maxLength": 256
2615
+ }
2616
+ },
2617
+ "maxHops": {
2618
+ "type": "integer",
2619
+ "minimum": 1,
2620
+ "maximum": 6
2621
+ },
2622
+ "includeTargetFields": {
2623
+ "maxItems": 256,
2624
+ "type": "array",
2625
+ "items": {
2626
+ "type": "string",
2627
+ "minLength": 1,
2628
+ "maxLength": 256
2629
+ }
2630
+ },
2631
+ "pageSize": {
2632
+ "type": "integer",
2633
+ "minimum": 1,
2634
+ "maximum": 1000
2635
+ },
2636
+ "pageToken": {
2637
+ "type": "string",
2638
+ "minLength": 1,
2639
+ "maxLength": 1024
2640
+ }
2641
+ },
2642
+ "required": [
2643
+ "kind",
2644
+ "sourceOntologyId",
2645
+ "sourceRecordId"
2646
+ ],
2647
+ "additionalProperties": false
2648
+ },
2649
+ {
2650
+ "type": "object",
2651
+ "properties": {
2652
+ "kind": {
2653
+ "type": "string",
2654
+ "const": "ontology-action"
2655
+ },
2656
+ "action": {
2657
+ "type": "string",
2658
+ "enum": [
2659
+ "insert",
2660
+ "update",
2661
+ "delete",
2662
+ "mutate-relation",
2663
+ "workflow-call"
2664
+ ]
2665
+ },
2666
+ "ontologyId": {
2667
+ "type": "string",
2668
+ "minLength": 1,
2669
+ "maxLength": 256
2670
+ },
2671
+ "recordId": {
2672
+ "type": "string",
2673
+ "minLength": 1,
2674
+ "maxLength": 256
2675
+ },
2676
+ "workflowId": {
2677
+ "type": "string",
2678
+ "minLength": 1,
2679
+ "maxLength": 256
2680
+ },
2681
+ "payload": {
2682
+ "type": "object",
2683
+ "propertyNames": {
2684
+ "type": "string"
2685
+ },
2686
+ "additionalProperties": {
2687
+ "$ref": "#/$defs/__schema1"
2688
+ }
2689
+ },
2690
+ "invalidateOntologies": {
2691
+ "maxItems": 64,
2692
+ "type": "array",
2693
+ "items": {
2694
+ "type": "string",
2695
+ "minLength": 1,
2696
+ "maxLength": 256
2697
+ }
2698
+ }
2699
+ },
2700
+ "required": [
2701
+ "kind",
2702
+ "action"
2703
+ ],
2704
+ "additionalProperties": false
2705
+ },
1986
2706
  {
1987
2707
  "type": "object",
1988
2708
  "properties": {