@inf-monkeys-tech/monkeys 1.1.63 → 1.1.64

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