@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
@@ -923,13 +923,39 @@
923
923
  "min",
924
924
  "max",
925
925
  "distinct_count",
926
- "ratio"
926
+ "ratio",
927
+ "count_distinct",
928
+ "percentile",
929
+ "trimmed_avg",
930
+ "first_by",
931
+ "last_by"
927
932
  ]
928
933
  },
929
934
  "fieldKey": {
930
935
  "type": "string",
931
936
  "minLength": 1,
932
937
  "maxLength": 256
938
+ },
939
+ "numeric": {
940
+ "type": "boolean"
941
+ },
942
+ "percentile": {
943
+ "type": "number",
944
+ "minimum": 0,
945
+ "maximum": 100
946
+ },
947
+ "trimTopPct": {
948
+ "type": "number",
949
+ "minimum": 0,
950
+ "maximum": 100
951
+ },
952
+ "orderColumnId": {
953
+ "type": "string",
954
+ "minLength": 1,
955
+ "maxLength": 256
956
+ },
957
+ "filter": {
958
+ "$ref": "#/$defs/__schema0"
933
959
  }
934
960
  },
935
961
  "required": [
@@ -986,6 +1012,276 @@
986
1012
  "type": "integer",
987
1013
  "minimum": 1,
988
1014
  "maximum": 1000
1015
+ },
1016
+ "engine": {
1017
+ "type": "string",
1018
+ "enum": [
1019
+ "auto",
1020
+ "canonical",
1021
+ "search"
1022
+ ]
1023
+ },
1024
+ "allTeams": {
1025
+ "type": "boolean"
1026
+ },
1027
+ "exact": {
1028
+ "type": "boolean"
1029
+ },
1030
+ "includeTotals": {
1031
+ "type": "boolean"
1032
+ },
1033
+ "timeBucket": {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "column": {
1037
+ "type": "string",
1038
+ "minLength": 1,
1039
+ "maxLength": 256
1040
+ },
1041
+ "granularity": {
1042
+ "type": "string",
1043
+ "enum": [
1044
+ "hour",
1045
+ "day",
1046
+ "week",
1047
+ "month",
1048
+ "quarter",
1049
+ "year"
1050
+ ]
1051
+ },
1052
+ "timezone": {
1053
+ "type": "string",
1054
+ "minLength": 1,
1055
+ "maxLength": 128
1056
+ },
1057
+ "fillGaps": {
1058
+ "type": "boolean"
1059
+ }
1060
+ },
1061
+ "required": [
1062
+ "column",
1063
+ "granularity"
1064
+ ],
1065
+ "additionalProperties": false
1066
+ },
1067
+ "joins": {
1068
+ "maxItems": 16,
1069
+ "type": "array",
1070
+ "items": {
1071
+ "type": "object",
1072
+ "properties": {
1073
+ "alias": {
1074
+ "type": "string",
1075
+ "minLength": 1,
1076
+ "maxLength": 256
1077
+ },
1078
+ "ontologyId": {
1079
+ "type": "string",
1080
+ "minLength": 1,
1081
+ "maxLength": 256
1082
+ },
1083
+ "assetType": {
1084
+ "type": "string",
1085
+ "minLength": 1,
1086
+ "maxLength": 256
1087
+ },
1088
+ "joinType": {
1089
+ "type": "string",
1090
+ "enum": [
1091
+ "inner",
1092
+ "left"
1093
+ ]
1094
+ },
1095
+ "viaRelation": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "columnId": {
1099
+ "type": "string",
1100
+ "minLength": 1,
1101
+ "maxLength": 256
1102
+ },
1103
+ "direction": {
1104
+ "type": "string",
1105
+ "enum": [
1106
+ "outgoing",
1107
+ "incoming"
1108
+ ]
1109
+ }
1110
+ },
1111
+ "required": [
1112
+ "columnId",
1113
+ "direction"
1114
+ ],
1115
+ "additionalProperties": false
1116
+ },
1117
+ "onColumn": {
1118
+ "type": "object",
1119
+ "properties": {
1120
+ "localColumnId": {
1121
+ "type": "string",
1122
+ "minLength": 1,
1123
+ "maxLength": 256
1124
+ },
1125
+ "foreignColumnId": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 256
1129
+ },
1130
+ "foreignAssetId": {
1131
+ "type": "boolean"
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "localColumnId"
1136
+ ],
1137
+ "additionalProperties": false
1138
+ }
1139
+ },
1140
+ "required": [
1141
+ "alias",
1142
+ "ontologyId"
1143
+ ],
1144
+ "additionalProperties": false
1145
+ }
1146
+ },
1147
+ "hierarchyScopes": {
1148
+ "maxItems": 16,
1149
+ "type": "array",
1150
+ "items": {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "targetAlias": {
1154
+ "type": "string",
1155
+ "minLength": 1,
1156
+ "maxLength": 256
1157
+ },
1158
+ "localColumnId": {
1159
+ "type": "string",
1160
+ "minLength": 1,
1161
+ "maxLength": 256
1162
+ },
1163
+ "ontologyId": {
1164
+ "type": "string",
1165
+ "minLength": 1,
1166
+ "maxLength": 256
1167
+ },
1168
+ "relationColumnId": {
1169
+ "type": "string",
1170
+ "minLength": 1,
1171
+ "maxLength": 256
1172
+ },
1173
+ "direction": {
1174
+ "type": "string",
1175
+ "enum": [
1176
+ "incoming",
1177
+ "outgoing"
1178
+ ]
1179
+ },
1180
+ "seedIds": {
1181
+ "maxItems": 500,
1182
+ "type": "array",
1183
+ "items": {
1184
+ "type": "string",
1185
+ "minLength": 1,
1186
+ "maxLength": 256
1187
+ }
1188
+ },
1189
+ "maxDepth": {
1190
+ "type": "integer",
1191
+ "minimum": 0,
1192
+ "maximum": 32
1193
+ },
1194
+ "includeSelf": {
1195
+ "type": "boolean"
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "ontologyId",
1200
+ "relationColumnId",
1201
+ "direction",
1202
+ "seedIds"
1203
+ ],
1204
+ "additionalProperties": false
1205
+ }
1206
+ },
1207
+ "unwind": {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "columnId": {
1211
+ "type": "string",
1212
+ "minLength": 1,
1213
+ "maxLength": 256
1214
+ },
1215
+ "jsonPath": {
1216
+ "maxItems": 32,
1217
+ "type": "array",
1218
+ "items": {
1219
+ "type": "string",
1220
+ "minLength": 1,
1221
+ "maxLength": 256
1222
+ }
1223
+ },
1224
+ "preserveEmpty": {
1225
+ "type": "boolean"
1226
+ }
1227
+ },
1228
+ "required": [
1229
+ "columnId"
1230
+ ],
1231
+ "additionalProperties": false
1232
+ },
1233
+ "having": {
1234
+ "maxItems": 32,
1235
+ "type": "array",
1236
+ "items": {
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "key": {
1240
+ "type": "string",
1241
+ "minLength": 1,
1242
+ "maxLength": 256
1243
+ },
1244
+ "op": {
1245
+ "type": "string",
1246
+ "enum": [
1247
+ "eq",
1248
+ "ne",
1249
+ "gt",
1250
+ "gte",
1251
+ "lt",
1252
+ "lte"
1253
+ ]
1254
+ },
1255
+ "value": {
1256
+ "type": "number"
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "key",
1261
+ "op",
1262
+ "value"
1263
+ ],
1264
+ "additionalProperties": false
1265
+ }
1266
+ },
1267
+ "pagination": {
1268
+ "type": "object",
1269
+ "properties": {
1270
+ "offset": {
1271
+ "type": "integer",
1272
+ "minimum": 0,
1273
+ "maximum": 9007199254740991
1274
+ },
1275
+ "limit": {
1276
+ "type": "integer",
1277
+ "minimum": 1,
1278
+ "maximum": 10000
1279
+ },
1280
+ "includeTotalGroups": {
1281
+ "type": "boolean"
1282
+ }
1283
+ },
1284
+ "additionalProperties": false
989
1285
  }
990
1286
  },
991
1287
  "required": [
@@ -1244,6 +1540,132 @@
1244
1540
  ],
1245
1541
  "additionalProperties": false
1246
1542
  },
1543
+ {
1544
+ "type": "object",
1545
+ "properties": {
1546
+ "kind": {
1547
+ "type": "string",
1548
+ "const": "ontology-relation"
1549
+ },
1550
+ "sourceOntologyId": {
1551
+ "type": "string",
1552
+ "minLength": 1,
1553
+ "maxLength": 256
1554
+ },
1555
+ "sourceRecordId": {
1556
+ "type": "string",
1557
+ "minLength": 1,
1558
+ "maxLength": 256
1559
+ },
1560
+ "direction": {
1561
+ "type": "string",
1562
+ "enum": [
1563
+ "outgoing",
1564
+ "incoming",
1565
+ "both"
1566
+ ]
1567
+ },
1568
+ "columnId": {
1569
+ "type": "string",
1570
+ "minLength": 1,
1571
+ "maxLength": 256
1572
+ },
1573
+ "targetOntologyIds": {
1574
+ "maxItems": 64,
1575
+ "type": "array",
1576
+ "items": {
1577
+ "type": "string",
1578
+ "minLength": 1,
1579
+ "maxLength": 256
1580
+ }
1581
+ },
1582
+ "maxHops": {
1583
+ "type": "integer",
1584
+ "minimum": 1,
1585
+ "maximum": 6
1586
+ },
1587
+ "includeTargetFields": {
1588
+ "maxItems": 256,
1589
+ "type": "array",
1590
+ "items": {
1591
+ "type": "string",
1592
+ "minLength": 1,
1593
+ "maxLength": 256
1594
+ }
1595
+ },
1596
+ "pageSize": {
1597
+ "type": "integer",
1598
+ "minimum": 1,
1599
+ "maximum": 1000
1600
+ },
1601
+ "pageToken": {
1602
+ "type": "string",
1603
+ "minLength": 1,
1604
+ "maxLength": 1024
1605
+ }
1606
+ },
1607
+ "required": [
1608
+ "kind",
1609
+ "sourceOntologyId",
1610
+ "sourceRecordId"
1611
+ ],
1612
+ "additionalProperties": false
1613
+ },
1614
+ {
1615
+ "type": "object",
1616
+ "properties": {
1617
+ "kind": {
1618
+ "type": "string",
1619
+ "const": "ontology-action"
1620
+ },
1621
+ "action": {
1622
+ "type": "string",
1623
+ "enum": [
1624
+ "insert",
1625
+ "update",
1626
+ "delete",
1627
+ "mutate-relation",
1628
+ "workflow-call"
1629
+ ]
1630
+ },
1631
+ "ontologyId": {
1632
+ "type": "string",
1633
+ "minLength": 1,
1634
+ "maxLength": 256
1635
+ },
1636
+ "recordId": {
1637
+ "type": "string",
1638
+ "minLength": 1,
1639
+ "maxLength": 256
1640
+ },
1641
+ "workflowId": {
1642
+ "type": "string",
1643
+ "minLength": 1,
1644
+ "maxLength": 256
1645
+ },
1646
+ "payload": {
1647
+ "type": "object",
1648
+ "propertyNames": {
1649
+ "type": "string"
1650
+ },
1651
+ "additionalProperties": {}
1652
+ },
1653
+ "invalidateOntologies": {
1654
+ "maxItems": 64,
1655
+ "type": "array",
1656
+ "items": {
1657
+ "type": "string",
1658
+ "minLength": 1,
1659
+ "maxLength": 256
1660
+ }
1661
+ }
1662
+ },
1663
+ "required": [
1664
+ "kind",
1665
+ "action"
1666
+ ],
1667
+ "additionalProperties": false
1668
+ },
1247
1669
  {
1248
1670
  "type": "object",
1249
1671
  "properties": {