@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
@@ -255,13 +255,39 @@
255
255
  "min",
256
256
  "max",
257
257
  "distinct_count",
258
- "ratio"
258
+ "ratio",
259
+ "count_distinct",
260
+ "percentile",
261
+ "trimmed_avg",
262
+ "first_by",
263
+ "last_by"
259
264
  ]
260
265
  },
261
266
  "fieldKey": {
262
267
  "type": "string",
263
268
  "minLength": 1,
264
269
  "maxLength": 256
270
+ },
271
+ "numeric": {
272
+ "type": "boolean"
273
+ },
274
+ "percentile": {
275
+ "type": "number",
276
+ "minimum": 0,
277
+ "maximum": 100
278
+ },
279
+ "trimTopPct": {
280
+ "type": "number",
281
+ "minimum": 0,
282
+ "maximum": 100
283
+ },
284
+ "orderColumnId": {
285
+ "type": "string",
286
+ "minLength": 1,
287
+ "maxLength": 256
288
+ },
289
+ "filter": {
290
+ "$ref": "#/$defs/__schema0"
265
291
  }
266
292
  },
267
293
  "required": [
@@ -318,6 +344,276 @@
318
344
  "type": "integer",
319
345
  "minimum": 1,
320
346
  "maximum": 1000
347
+ },
348
+ "engine": {
349
+ "type": "string",
350
+ "enum": [
351
+ "auto",
352
+ "canonical",
353
+ "search"
354
+ ]
355
+ },
356
+ "allTeams": {
357
+ "type": "boolean"
358
+ },
359
+ "exact": {
360
+ "type": "boolean"
361
+ },
362
+ "includeTotals": {
363
+ "type": "boolean"
364
+ },
365
+ "timeBucket": {
366
+ "type": "object",
367
+ "properties": {
368
+ "column": {
369
+ "type": "string",
370
+ "minLength": 1,
371
+ "maxLength": 256
372
+ },
373
+ "granularity": {
374
+ "type": "string",
375
+ "enum": [
376
+ "hour",
377
+ "day",
378
+ "week",
379
+ "month",
380
+ "quarter",
381
+ "year"
382
+ ]
383
+ },
384
+ "timezone": {
385
+ "type": "string",
386
+ "minLength": 1,
387
+ "maxLength": 128
388
+ },
389
+ "fillGaps": {
390
+ "type": "boolean"
391
+ }
392
+ },
393
+ "required": [
394
+ "column",
395
+ "granularity"
396
+ ],
397
+ "additionalProperties": false
398
+ },
399
+ "joins": {
400
+ "maxItems": 16,
401
+ "type": "array",
402
+ "items": {
403
+ "type": "object",
404
+ "properties": {
405
+ "alias": {
406
+ "type": "string",
407
+ "minLength": 1,
408
+ "maxLength": 256
409
+ },
410
+ "ontologyId": {
411
+ "type": "string",
412
+ "minLength": 1,
413
+ "maxLength": 256
414
+ },
415
+ "assetType": {
416
+ "type": "string",
417
+ "minLength": 1,
418
+ "maxLength": 256
419
+ },
420
+ "joinType": {
421
+ "type": "string",
422
+ "enum": [
423
+ "inner",
424
+ "left"
425
+ ]
426
+ },
427
+ "viaRelation": {
428
+ "type": "object",
429
+ "properties": {
430
+ "columnId": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "maxLength": 256
434
+ },
435
+ "direction": {
436
+ "type": "string",
437
+ "enum": [
438
+ "outgoing",
439
+ "incoming"
440
+ ]
441
+ }
442
+ },
443
+ "required": [
444
+ "columnId",
445
+ "direction"
446
+ ],
447
+ "additionalProperties": false
448
+ },
449
+ "onColumn": {
450
+ "type": "object",
451
+ "properties": {
452
+ "localColumnId": {
453
+ "type": "string",
454
+ "minLength": 1,
455
+ "maxLength": 256
456
+ },
457
+ "foreignColumnId": {
458
+ "type": "string",
459
+ "minLength": 1,
460
+ "maxLength": 256
461
+ },
462
+ "foreignAssetId": {
463
+ "type": "boolean"
464
+ }
465
+ },
466
+ "required": [
467
+ "localColumnId"
468
+ ],
469
+ "additionalProperties": false
470
+ }
471
+ },
472
+ "required": [
473
+ "alias",
474
+ "ontologyId"
475
+ ],
476
+ "additionalProperties": false
477
+ }
478
+ },
479
+ "hierarchyScopes": {
480
+ "maxItems": 16,
481
+ "type": "array",
482
+ "items": {
483
+ "type": "object",
484
+ "properties": {
485
+ "targetAlias": {
486
+ "type": "string",
487
+ "minLength": 1,
488
+ "maxLength": 256
489
+ },
490
+ "localColumnId": {
491
+ "type": "string",
492
+ "minLength": 1,
493
+ "maxLength": 256
494
+ },
495
+ "ontologyId": {
496
+ "type": "string",
497
+ "minLength": 1,
498
+ "maxLength": 256
499
+ },
500
+ "relationColumnId": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 256
504
+ },
505
+ "direction": {
506
+ "type": "string",
507
+ "enum": [
508
+ "incoming",
509
+ "outgoing"
510
+ ]
511
+ },
512
+ "seedIds": {
513
+ "maxItems": 500,
514
+ "type": "array",
515
+ "items": {
516
+ "type": "string",
517
+ "minLength": 1,
518
+ "maxLength": 256
519
+ }
520
+ },
521
+ "maxDepth": {
522
+ "type": "integer",
523
+ "minimum": 0,
524
+ "maximum": 32
525
+ },
526
+ "includeSelf": {
527
+ "type": "boolean"
528
+ }
529
+ },
530
+ "required": [
531
+ "ontologyId",
532
+ "relationColumnId",
533
+ "direction",
534
+ "seedIds"
535
+ ],
536
+ "additionalProperties": false
537
+ }
538
+ },
539
+ "unwind": {
540
+ "type": "object",
541
+ "properties": {
542
+ "columnId": {
543
+ "type": "string",
544
+ "minLength": 1,
545
+ "maxLength": 256
546
+ },
547
+ "jsonPath": {
548
+ "maxItems": 32,
549
+ "type": "array",
550
+ "items": {
551
+ "type": "string",
552
+ "minLength": 1,
553
+ "maxLength": 256
554
+ }
555
+ },
556
+ "preserveEmpty": {
557
+ "type": "boolean"
558
+ }
559
+ },
560
+ "required": [
561
+ "columnId"
562
+ ],
563
+ "additionalProperties": false
564
+ },
565
+ "having": {
566
+ "maxItems": 32,
567
+ "type": "array",
568
+ "items": {
569
+ "type": "object",
570
+ "properties": {
571
+ "key": {
572
+ "type": "string",
573
+ "minLength": 1,
574
+ "maxLength": 256
575
+ },
576
+ "op": {
577
+ "type": "string",
578
+ "enum": [
579
+ "eq",
580
+ "ne",
581
+ "gt",
582
+ "gte",
583
+ "lt",
584
+ "lte"
585
+ ]
586
+ },
587
+ "value": {
588
+ "type": "number"
589
+ }
590
+ },
591
+ "required": [
592
+ "key",
593
+ "op",
594
+ "value"
595
+ ],
596
+ "additionalProperties": false
597
+ }
598
+ },
599
+ "pagination": {
600
+ "type": "object",
601
+ "properties": {
602
+ "offset": {
603
+ "type": "integer",
604
+ "minimum": 0,
605
+ "maximum": 9007199254740991
606
+ },
607
+ "limit": {
608
+ "type": "integer",
609
+ "minimum": 1,
610
+ "maximum": 10000
611
+ },
612
+ "includeTotalGroups": {
613
+ "type": "boolean"
614
+ }
615
+ },
616
+ "additionalProperties": false
321
617
  }
322
618
  },
323
619
  "required": [
@@ -1479,13 +1775,39 @@
1479
1775
  "min",
1480
1776
  "max",
1481
1777
  "distinct_count",
1482
- "ratio"
1778
+ "ratio",
1779
+ "count_distinct",
1780
+ "percentile",
1781
+ "trimmed_avg",
1782
+ "first_by",
1783
+ "last_by"
1483
1784
  ]
1484
1785
  },
1485
1786
  "fieldKey": {
1486
1787
  "type": "string",
1487
1788
  "minLength": 1,
1488
1789
  "maxLength": 256
1790
+ },
1791
+ "numeric": {
1792
+ "type": "boolean"
1793
+ },
1794
+ "percentile": {
1795
+ "type": "number",
1796
+ "minimum": 0,
1797
+ "maximum": 100
1798
+ },
1799
+ "trimTopPct": {
1800
+ "type": "number",
1801
+ "minimum": 0,
1802
+ "maximum": 100
1803
+ },
1804
+ "orderColumnId": {
1805
+ "type": "string",
1806
+ "minLength": 1,
1807
+ "maxLength": 256
1808
+ },
1809
+ "filter": {
1810
+ "$ref": "#/$defs/__schema0"
1489
1811
  }
1490
1812
  },
1491
1813
  "required": [
@@ -1542,6 +1864,276 @@
1542
1864
  "type": "integer",
1543
1865
  "minimum": 1,
1544
1866
  "maximum": 1000
1867
+ },
1868
+ "engine": {
1869
+ "type": "string",
1870
+ "enum": [
1871
+ "auto",
1872
+ "canonical",
1873
+ "search"
1874
+ ]
1875
+ },
1876
+ "allTeams": {
1877
+ "type": "boolean"
1878
+ },
1879
+ "exact": {
1880
+ "type": "boolean"
1881
+ },
1882
+ "includeTotals": {
1883
+ "type": "boolean"
1884
+ },
1885
+ "timeBucket": {
1886
+ "type": "object",
1887
+ "properties": {
1888
+ "column": {
1889
+ "type": "string",
1890
+ "minLength": 1,
1891
+ "maxLength": 256
1892
+ },
1893
+ "granularity": {
1894
+ "type": "string",
1895
+ "enum": [
1896
+ "hour",
1897
+ "day",
1898
+ "week",
1899
+ "month",
1900
+ "quarter",
1901
+ "year"
1902
+ ]
1903
+ },
1904
+ "timezone": {
1905
+ "type": "string",
1906
+ "minLength": 1,
1907
+ "maxLength": 128
1908
+ },
1909
+ "fillGaps": {
1910
+ "type": "boolean"
1911
+ }
1912
+ },
1913
+ "required": [
1914
+ "column",
1915
+ "granularity"
1916
+ ],
1917
+ "additionalProperties": false
1918
+ },
1919
+ "joins": {
1920
+ "maxItems": 16,
1921
+ "type": "array",
1922
+ "items": {
1923
+ "type": "object",
1924
+ "properties": {
1925
+ "alias": {
1926
+ "type": "string",
1927
+ "minLength": 1,
1928
+ "maxLength": 256
1929
+ },
1930
+ "ontologyId": {
1931
+ "type": "string",
1932
+ "minLength": 1,
1933
+ "maxLength": 256
1934
+ },
1935
+ "assetType": {
1936
+ "type": "string",
1937
+ "minLength": 1,
1938
+ "maxLength": 256
1939
+ },
1940
+ "joinType": {
1941
+ "type": "string",
1942
+ "enum": [
1943
+ "inner",
1944
+ "left"
1945
+ ]
1946
+ },
1947
+ "viaRelation": {
1948
+ "type": "object",
1949
+ "properties": {
1950
+ "columnId": {
1951
+ "type": "string",
1952
+ "minLength": 1,
1953
+ "maxLength": 256
1954
+ },
1955
+ "direction": {
1956
+ "type": "string",
1957
+ "enum": [
1958
+ "outgoing",
1959
+ "incoming"
1960
+ ]
1961
+ }
1962
+ },
1963
+ "required": [
1964
+ "columnId",
1965
+ "direction"
1966
+ ],
1967
+ "additionalProperties": false
1968
+ },
1969
+ "onColumn": {
1970
+ "type": "object",
1971
+ "properties": {
1972
+ "localColumnId": {
1973
+ "type": "string",
1974
+ "minLength": 1,
1975
+ "maxLength": 256
1976
+ },
1977
+ "foreignColumnId": {
1978
+ "type": "string",
1979
+ "minLength": 1,
1980
+ "maxLength": 256
1981
+ },
1982
+ "foreignAssetId": {
1983
+ "type": "boolean"
1984
+ }
1985
+ },
1986
+ "required": [
1987
+ "localColumnId"
1988
+ ],
1989
+ "additionalProperties": false
1990
+ }
1991
+ },
1992
+ "required": [
1993
+ "alias",
1994
+ "ontologyId"
1995
+ ],
1996
+ "additionalProperties": false
1997
+ }
1998
+ },
1999
+ "hierarchyScopes": {
2000
+ "maxItems": 16,
2001
+ "type": "array",
2002
+ "items": {
2003
+ "type": "object",
2004
+ "properties": {
2005
+ "targetAlias": {
2006
+ "type": "string",
2007
+ "minLength": 1,
2008
+ "maxLength": 256
2009
+ },
2010
+ "localColumnId": {
2011
+ "type": "string",
2012
+ "minLength": 1,
2013
+ "maxLength": 256
2014
+ },
2015
+ "ontologyId": {
2016
+ "type": "string",
2017
+ "minLength": 1,
2018
+ "maxLength": 256
2019
+ },
2020
+ "relationColumnId": {
2021
+ "type": "string",
2022
+ "minLength": 1,
2023
+ "maxLength": 256
2024
+ },
2025
+ "direction": {
2026
+ "type": "string",
2027
+ "enum": [
2028
+ "incoming",
2029
+ "outgoing"
2030
+ ]
2031
+ },
2032
+ "seedIds": {
2033
+ "maxItems": 500,
2034
+ "type": "array",
2035
+ "items": {
2036
+ "type": "string",
2037
+ "minLength": 1,
2038
+ "maxLength": 256
2039
+ }
2040
+ },
2041
+ "maxDepth": {
2042
+ "type": "integer",
2043
+ "minimum": 0,
2044
+ "maximum": 32
2045
+ },
2046
+ "includeSelf": {
2047
+ "type": "boolean"
2048
+ }
2049
+ },
2050
+ "required": [
2051
+ "ontologyId",
2052
+ "relationColumnId",
2053
+ "direction",
2054
+ "seedIds"
2055
+ ],
2056
+ "additionalProperties": false
2057
+ }
2058
+ },
2059
+ "unwind": {
2060
+ "type": "object",
2061
+ "properties": {
2062
+ "columnId": {
2063
+ "type": "string",
2064
+ "minLength": 1,
2065
+ "maxLength": 256
2066
+ },
2067
+ "jsonPath": {
2068
+ "maxItems": 32,
2069
+ "type": "array",
2070
+ "items": {
2071
+ "type": "string",
2072
+ "minLength": 1,
2073
+ "maxLength": 256
2074
+ }
2075
+ },
2076
+ "preserveEmpty": {
2077
+ "type": "boolean"
2078
+ }
2079
+ },
2080
+ "required": [
2081
+ "columnId"
2082
+ ],
2083
+ "additionalProperties": false
2084
+ },
2085
+ "having": {
2086
+ "maxItems": 32,
2087
+ "type": "array",
2088
+ "items": {
2089
+ "type": "object",
2090
+ "properties": {
2091
+ "key": {
2092
+ "type": "string",
2093
+ "minLength": 1,
2094
+ "maxLength": 256
2095
+ },
2096
+ "op": {
2097
+ "type": "string",
2098
+ "enum": [
2099
+ "eq",
2100
+ "ne",
2101
+ "gt",
2102
+ "gte",
2103
+ "lt",
2104
+ "lte"
2105
+ ]
2106
+ },
2107
+ "value": {
2108
+ "type": "number"
2109
+ }
2110
+ },
2111
+ "required": [
2112
+ "key",
2113
+ "op",
2114
+ "value"
2115
+ ],
2116
+ "additionalProperties": false
2117
+ }
2118
+ },
2119
+ "pagination": {
2120
+ "type": "object",
2121
+ "properties": {
2122
+ "offset": {
2123
+ "type": "integer",
2124
+ "minimum": 0,
2125
+ "maximum": 9007199254740991
2126
+ },
2127
+ "limit": {
2128
+ "type": "integer",
2129
+ "minimum": 1,
2130
+ "maximum": 10000
2131
+ },
2132
+ "includeTotalGroups": {
2133
+ "type": "boolean"
2134
+ }
2135
+ },
2136
+ "additionalProperties": false
1545
2137
  }
1546
2138
  },
1547
2139
  "required": [
@@ -1800,6 +2392,132 @@
1800
2392
  ],
1801
2393
  "additionalProperties": false
1802
2394
  },
2395
+ {
2396
+ "type": "object",
2397
+ "properties": {
2398
+ "kind": {
2399
+ "type": "string",
2400
+ "const": "ontology-relation"
2401
+ },
2402
+ "sourceOntologyId": {
2403
+ "type": "string",
2404
+ "minLength": 1,
2405
+ "maxLength": 256
2406
+ },
2407
+ "sourceRecordId": {
2408
+ "type": "string",
2409
+ "minLength": 1,
2410
+ "maxLength": 256
2411
+ },
2412
+ "direction": {
2413
+ "type": "string",
2414
+ "enum": [
2415
+ "outgoing",
2416
+ "incoming",
2417
+ "both"
2418
+ ]
2419
+ },
2420
+ "columnId": {
2421
+ "type": "string",
2422
+ "minLength": 1,
2423
+ "maxLength": 256
2424
+ },
2425
+ "targetOntologyIds": {
2426
+ "maxItems": 64,
2427
+ "type": "array",
2428
+ "items": {
2429
+ "type": "string",
2430
+ "minLength": 1,
2431
+ "maxLength": 256
2432
+ }
2433
+ },
2434
+ "maxHops": {
2435
+ "type": "integer",
2436
+ "minimum": 1,
2437
+ "maximum": 6
2438
+ },
2439
+ "includeTargetFields": {
2440
+ "maxItems": 256,
2441
+ "type": "array",
2442
+ "items": {
2443
+ "type": "string",
2444
+ "minLength": 1,
2445
+ "maxLength": 256
2446
+ }
2447
+ },
2448
+ "pageSize": {
2449
+ "type": "integer",
2450
+ "minimum": 1,
2451
+ "maximum": 1000
2452
+ },
2453
+ "pageToken": {
2454
+ "type": "string",
2455
+ "minLength": 1,
2456
+ "maxLength": 1024
2457
+ }
2458
+ },
2459
+ "required": [
2460
+ "kind",
2461
+ "sourceOntologyId",
2462
+ "sourceRecordId"
2463
+ ],
2464
+ "additionalProperties": false
2465
+ },
2466
+ {
2467
+ "type": "object",
2468
+ "properties": {
2469
+ "kind": {
2470
+ "type": "string",
2471
+ "const": "ontology-action"
2472
+ },
2473
+ "action": {
2474
+ "type": "string",
2475
+ "enum": [
2476
+ "insert",
2477
+ "update",
2478
+ "delete",
2479
+ "mutate-relation",
2480
+ "workflow-call"
2481
+ ]
2482
+ },
2483
+ "ontologyId": {
2484
+ "type": "string",
2485
+ "minLength": 1,
2486
+ "maxLength": 256
2487
+ },
2488
+ "recordId": {
2489
+ "type": "string",
2490
+ "minLength": 1,
2491
+ "maxLength": 256
2492
+ },
2493
+ "workflowId": {
2494
+ "type": "string",
2495
+ "minLength": 1,
2496
+ "maxLength": 256
2497
+ },
2498
+ "payload": {
2499
+ "type": "object",
2500
+ "propertyNames": {
2501
+ "type": "string"
2502
+ },
2503
+ "additionalProperties": {}
2504
+ },
2505
+ "invalidateOntologies": {
2506
+ "maxItems": 64,
2507
+ "type": "array",
2508
+ "items": {
2509
+ "type": "string",
2510
+ "minLength": 1,
2511
+ "maxLength": 256
2512
+ }
2513
+ }
2514
+ },
2515
+ "required": [
2516
+ "kind",
2517
+ "action"
2518
+ ],
2519
+ "additionalProperties": false
2520
+ },
1803
2521
  {
1804
2522
  "type": "object",
1805
2523
  "properties": {