@knime/hub-features 1.34.1 → 1.35.1
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.
- package/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/src/analytics/schema/cloudhome-event-functions.ts +1 -1
- package/src/analytics/schema/editor-event-functions.ts +56 -419
- package/src/analytics/schema/schema.d.ts +67 -242
- package/src/analytics/schema/schema.json +229 -1199
- package/src/embeddingSDK/types.ts +13 -0
|
@@ -943,9 +943,9 @@ export const applyAndExecuteNodeConfig = <T extends DefaultContext>(ctx: T) => (
|
|
|
943
943
|
...toSnakeCaseDeep(ctx),
|
|
944
944
|
unique_event_id: crypto.randomUUID(),
|
|
945
945
|
timestamp: new Date().toISOString(),
|
|
946
|
-
event_name: "
|
|
946
|
+
event_name: "execution_attempted",
|
|
947
947
|
event_source: "editor",
|
|
948
|
-
event_display_name: "Node configuration applied and
|
|
948
|
+
event_display_name: "Node configuration applied and execution attempted",
|
|
949
949
|
interaction: {
|
|
950
950
|
location: "node_configuration",
|
|
951
951
|
trigger: "user",
|
|
@@ -1189,23 +1189,24 @@ export const nodeMigrationRequested = <T extends DefaultContext>(ctx: T) => (eve
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Fired when the user executes all nodes via the context menu
|
|
1191
1191
|
*/
|
|
1192
|
-
export const executeAllNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1192
|
+
export const executeAllNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"executeAllNodesCtxMenu">): AnalyticsEvent => {
|
|
1193
1193
|
const staticData = {
|
|
1194
1194
|
...toSnakeCaseDeep(ctx),
|
|
1195
1195
|
unique_event_id: crypto.randomUUID(),
|
|
1196
1196
|
timestamp: new Date().toISOString(),
|
|
1197
|
-
event_name: "
|
|
1197
|
+
event_name: "execution_attempted",
|
|
1198
1198
|
event_source: "editor",
|
|
1199
1199
|
event_display_name: "All Nodes Executed",
|
|
1200
1200
|
interaction: {
|
|
1201
1201
|
location: "canvas",
|
|
1202
|
+
specification: "execute_all",
|
|
1202
1203
|
trigger: "user",
|
|
1203
1204
|
type: "click",
|
|
1204
1205
|
ui_element: "context_menu",
|
|
1205
1206
|
},
|
|
1206
1207
|
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1207
1208
|
|
|
1208
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1209
|
+
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1209
1210
|
|
|
1210
1211
|
return event;
|
|
1211
1212
|
};
|
|
@@ -1213,22 +1214,23 @@ export const executeAllNodesCtxMenu = <T extends DefaultContext>(ctx: T) => ():
|
|
|
1213
1214
|
/**
|
|
1214
1215
|
* Fired when the user executes all nodes via the keyboard shortcut
|
|
1215
1216
|
*/
|
|
1216
|
-
export const executeAllNodesKeyboard = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1217
|
+
export const executeAllNodesKeyboard = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"executeAllNodesKeyboard">): AnalyticsEvent => {
|
|
1217
1218
|
const staticData = {
|
|
1218
1219
|
...toSnakeCaseDeep(ctx),
|
|
1219
1220
|
unique_event_id: crypto.randomUUID(),
|
|
1220
1221
|
timestamp: new Date().toISOString(),
|
|
1221
|
-
event_name: "
|
|
1222
|
+
event_name: "execution_attempted",
|
|
1222
1223
|
event_source: "editor",
|
|
1223
1224
|
event_display_name: "All Nodes Executed",
|
|
1224
1225
|
interaction: {
|
|
1225
1226
|
location: "global",
|
|
1227
|
+
specification: "execute_all",
|
|
1226
1228
|
trigger: "user",
|
|
1227
1229
|
type: "shortcut",
|
|
1228
1230
|
},
|
|
1229
1231
|
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1230
1232
|
|
|
1231
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1233
|
+
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1232
1234
|
|
|
1233
1235
|
return event;
|
|
1234
1236
|
};
|
|
@@ -1236,22 +1238,23 @@ export const executeAllNodesKeyboard = <T extends DefaultContext>(ctx: T) => ():
|
|
|
1236
1238
|
/**
|
|
1237
1239
|
* Fired when the user executes all nodes via the workflow toolbar
|
|
1238
1240
|
*/
|
|
1239
|
-
export const executeAllNodesToolbar = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1241
|
+
export const executeAllNodesToolbar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"executeAllNodesToolbar">): AnalyticsEvent => {
|
|
1240
1242
|
const staticData = {
|
|
1241
1243
|
...toSnakeCaseDeep(ctx),
|
|
1242
1244
|
unique_event_id: crypto.randomUUID(),
|
|
1243
1245
|
timestamp: new Date().toISOString(),
|
|
1244
|
-
event_name: "
|
|
1246
|
+
event_name: "execution_attempted",
|
|
1245
1247
|
event_source: "editor",
|
|
1246
1248
|
event_display_name: "All Nodes Executed",
|
|
1247
1249
|
interaction: {
|
|
1248
1250
|
location: "workflow_toolbar",
|
|
1251
|
+
specification: "execute_all",
|
|
1249
1252
|
trigger: "user",
|
|
1250
1253
|
type: "click",
|
|
1251
1254
|
},
|
|
1252
1255
|
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1253
1256
|
|
|
1254
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1257
|
+
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1255
1258
|
|
|
1256
1259
|
return event;
|
|
1257
1260
|
};
|
|
@@ -1264,11 +1267,12 @@ export const executeSelectedNodesCtxMenu = <T extends DefaultContext>(ctx: T) =>
|
|
|
1264
1267
|
...toSnakeCaseDeep(ctx),
|
|
1265
1268
|
unique_event_id: crypto.randomUUID(),
|
|
1266
1269
|
timestamp: new Date().toISOString(),
|
|
1267
|
-
event_name: "
|
|
1270
|
+
event_name: "execution_attempted",
|
|
1268
1271
|
event_source: "editor",
|
|
1269
1272
|
event_display_name: "Nodes Executed",
|
|
1270
1273
|
interaction: {
|
|
1271
1274
|
location: "canvas",
|
|
1275
|
+
specification: "execute",
|
|
1272
1276
|
trigger: "user",
|
|
1273
1277
|
type: "click",
|
|
1274
1278
|
ui_element: "context_menu",
|
|
@@ -1288,11 +1292,12 @@ export const executeSelectedNodesKeyboard = <T extends DefaultContext>(ctx: T) =
|
|
|
1288
1292
|
...toSnakeCaseDeep(ctx),
|
|
1289
1293
|
unique_event_id: crypto.randomUUID(),
|
|
1290
1294
|
timestamp: new Date().toISOString(),
|
|
1291
|
-
event_name: "
|
|
1295
|
+
event_name: "execution_attempted",
|
|
1292
1296
|
event_source: "editor",
|
|
1293
1297
|
event_display_name: "Nodes Executed",
|
|
1294
1298
|
interaction: {
|
|
1295
1299
|
location: "global",
|
|
1300
|
+
specification: "execute",
|
|
1296
1301
|
trigger: "user",
|
|
1297
1302
|
type: "shortcut",
|
|
1298
1303
|
},
|
|
@@ -1311,291 +1316,12 @@ export const executeSelectedNodesToolbar = <T extends DefaultContext>(ctx: T) =>
|
|
|
1311
1316
|
...toSnakeCaseDeep(ctx),
|
|
1312
1317
|
unique_event_id: crypto.randomUUID(),
|
|
1313
1318
|
timestamp: new Date().toISOString(),
|
|
1314
|
-
event_name: "
|
|
1319
|
+
event_name: "execution_attempted",
|
|
1315
1320
|
event_source: "editor",
|
|
1316
1321
|
event_display_name: "Nodes Executed",
|
|
1317
1322
|
interaction: {
|
|
1318
1323
|
location: "workflow_toolbar",
|
|
1319
|
-
|
|
1320
|
-
type: "click",
|
|
1321
|
-
},
|
|
1322
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1323
|
-
|
|
1324
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1325
|
-
|
|
1326
|
-
return event;
|
|
1327
|
-
};
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
* Fired when the user cancels all nodes via the context menu
|
|
1331
|
-
*/
|
|
1332
|
-
export const cancelAllNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1333
|
-
const staticData = {
|
|
1334
|
-
...toSnakeCaseDeep(ctx),
|
|
1335
|
-
unique_event_id: crypto.randomUUID(),
|
|
1336
|
-
timestamp: new Date().toISOString(),
|
|
1337
|
-
event_name: "all_nodes_cancelled",
|
|
1338
|
-
event_source: "editor",
|
|
1339
|
-
event_display_name: "All Nodes Cancelled",
|
|
1340
|
-
interaction: {
|
|
1341
|
-
location: "canvas",
|
|
1342
|
-
trigger: "user",
|
|
1343
|
-
type: "click",
|
|
1344
|
-
ui_element: "context_menu",
|
|
1345
|
-
},
|
|
1346
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1347
|
-
|
|
1348
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1349
|
-
|
|
1350
|
-
return event;
|
|
1351
|
-
};
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Fired when the user cancels all nodes via the keyboard shortcut
|
|
1355
|
-
*/
|
|
1356
|
-
export const cancelAllNodesKeyboard = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1357
|
-
const staticData = {
|
|
1358
|
-
...toSnakeCaseDeep(ctx),
|
|
1359
|
-
unique_event_id: crypto.randomUUID(),
|
|
1360
|
-
timestamp: new Date().toISOString(),
|
|
1361
|
-
event_name: "all_nodes_cancelled",
|
|
1362
|
-
event_source: "editor",
|
|
1363
|
-
event_display_name: "All Nodes Cancelled",
|
|
1364
|
-
interaction: {
|
|
1365
|
-
location: "global",
|
|
1366
|
-
trigger: "user",
|
|
1367
|
-
type: "shortcut",
|
|
1368
|
-
},
|
|
1369
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1370
|
-
|
|
1371
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1372
|
-
|
|
1373
|
-
return event;
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* Fired when the user cancels all nodes via the workflow toolbar
|
|
1378
|
-
*/
|
|
1379
|
-
export const cancelAllNodesToolbar = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1380
|
-
const staticData = {
|
|
1381
|
-
...toSnakeCaseDeep(ctx),
|
|
1382
|
-
unique_event_id: crypto.randomUUID(),
|
|
1383
|
-
timestamp: new Date().toISOString(),
|
|
1384
|
-
event_name: "all_nodes_cancelled",
|
|
1385
|
-
event_source: "editor",
|
|
1386
|
-
event_display_name: "All Nodes Cancelled",
|
|
1387
|
-
interaction: {
|
|
1388
|
-
location: "workflow_toolbar",
|
|
1389
|
-
trigger: "user",
|
|
1390
|
-
type: "click",
|
|
1391
|
-
},
|
|
1392
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1393
|
-
|
|
1394
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1395
|
-
|
|
1396
|
-
return event;
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* Fired when the user cancels a selection of nodes via the context menu
|
|
1401
|
-
*/
|
|
1402
|
-
export const cancelSelectedNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"cancelSelectedNodesCtxMenu">): AnalyticsEvent => {
|
|
1403
|
-
const staticData = {
|
|
1404
|
-
...toSnakeCaseDeep(ctx),
|
|
1405
|
-
unique_event_id: crypto.randomUUID(),
|
|
1406
|
-
timestamp: new Date().toISOString(),
|
|
1407
|
-
event_name: "nodes_cancelled",
|
|
1408
|
-
event_source: "editor",
|
|
1409
|
-
event_display_name: "Nodes Cancelled",
|
|
1410
|
-
interaction: {
|
|
1411
|
-
location: "canvas",
|
|
1412
|
-
trigger: "user",
|
|
1413
|
-
type: "click",
|
|
1414
|
-
ui_element: "context_menu",
|
|
1415
|
-
},
|
|
1416
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1417
|
-
|
|
1418
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1419
|
-
|
|
1420
|
-
return event;
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* Fired when the user cancels a selection of nodes via the keyboard shortcut
|
|
1425
|
-
*/
|
|
1426
|
-
export const cancelSelectedNodesKeyboard = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"cancelSelectedNodesKeyboard">): AnalyticsEvent => {
|
|
1427
|
-
const staticData = {
|
|
1428
|
-
...toSnakeCaseDeep(ctx),
|
|
1429
|
-
unique_event_id: crypto.randomUUID(),
|
|
1430
|
-
timestamp: new Date().toISOString(),
|
|
1431
|
-
event_name: "nodes_cancelled",
|
|
1432
|
-
event_source: "editor",
|
|
1433
|
-
event_display_name: "Nodes Cancelled",
|
|
1434
|
-
interaction: {
|
|
1435
|
-
location: "global",
|
|
1436
|
-
trigger: "user",
|
|
1437
|
-
type: "shortcut",
|
|
1438
|
-
},
|
|
1439
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1440
|
-
|
|
1441
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1442
|
-
|
|
1443
|
-
return event;
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* Fired when the user cancels a selection of nodes via the workflow toolbar
|
|
1448
|
-
*/
|
|
1449
|
-
export const cancelSelectedNodesToolbar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"cancelSelectedNodesToolbar">): AnalyticsEvent => {
|
|
1450
|
-
const staticData = {
|
|
1451
|
-
...toSnakeCaseDeep(ctx),
|
|
1452
|
-
unique_event_id: crypto.randomUUID(),
|
|
1453
|
-
timestamp: new Date().toISOString(),
|
|
1454
|
-
event_name: "nodes_cancelled",
|
|
1455
|
-
event_source: "editor",
|
|
1456
|
-
event_display_name: "Nodes Cancelled",
|
|
1457
|
-
interaction: {
|
|
1458
|
-
location: "workflow_toolbar",
|
|
1459
|
-
trigger: "user",
|
|
1460
|
-
type: "click",
|
|
1461
|
-
},
|
|
1462
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1463
|
-
|
|
1464
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1465
|
-
|
|
1466
|
-
return event;
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
|
-
/**
|
|
1470
|
-
* Fired when the user resets all nodes via the context menu
|
|
1471
|
-
*/
|
|
1472
|
-
export const resetAllNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1473
|
-
const staticData = {
|
|
1474
|
-
...toSnakeCaseDeep(ctx),
|
|
1475
|
-
unique_event_id: crypto.randomUUID(),
|
|
1476
|
-
timestamp: new Date().toISOString(),
|
|
1477
|
-
event_name: "all_nodes_reset",
|
|
1478
|
-
event_source: "editor",
|
|
1479
|
-
event_display_name: "All Nodes Reset",
|
|
1480
|
-
interaction: {
|
|
1481
|
-
location: "canvas",
|
|
1482
|
-
trigger: "user",
|
|
1483
|
-
type: "click",
|
|
1484
|
-
ui_element: "context_menu",
|
|
1485
|
-
},
|
|
1486
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1487
|
-
|
|
1488
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1489
|
-
|
|
1490
|
-
return event;
|
|
1491
|
-
};
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* Fired when the user resets all nodes via the keyboard shortcut
|
|
1495
|
-
*/
|
|
1496
|
-
export const resetAllNodesKeyboard = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1497
|
-
const staticData = {
|
|
1498
|
-
...toSnakeCaseDeep(ctx),
|
|
1499
|
-
unique_event_id: crypto.randomUUID(),
|
|
1500
|
-
timestamp: new Date().toISOString(),
|
|
1501
|
-
event_name: "all_nodes_reset",
|
|
1502
|
-
event_source: "editor",
|
|
1503
|
-
event_display_name: "All Nodes Reset",
|
|
1504
|
-
interaction: {
|
|
1505
|
-
location: "global",
|
|
1506
|
-
trigger: "user",
|
|
1507
|
-
type: "shortcut",
|
|
1508
|
-
},
|
|
1509
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1510
|
-
|
|
1511
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1512
|
-
|
|
1513
|
-
return event;
|
|
1514
|
-
};
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
* Fired when the user resets all nodes via the workflow toolbar
|
|
1518
|
-
*/
|
|
1519
|
-
export const resetAllNodesToolbar = <T extends DefaultContext>(ctx: T) => (): AnalyticsEvent => {
|
|
1520
|
-
const staticData = {
|
|
1521
|
-
...toSnakeCaseDeep(ctx),
|
|
1522
|
-
unique_event_id: crypto.randomUUID(),
|
|
1523
|
-
timestamp: new Date().toISOString(),
|
|
1524
|
-
event_name: "all_nodes_reset",
|
|
1525
|
-
event_source: "editor",
|
|
1526
|
-
event_display_name: "All Nodes Reset",
|
|
1527
|
-
interaction: {
|
|
1528
|
-
location: "workflow_toolbar",
|
|
1529
|
-
trigger: "user",
|
|
1530
|
-
type: "click",
|
|
1531
|
-
},
|
|
1532
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1533
|
-
|
|
1534
|
-
const event = { id: staticData.event_name, data: { ...staticData } };
|
|
1535
|
-
|
|
1536
|
-
return event;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* Fired when the user resets a selection of nodes via the context menu
|
|
1541
|
-
*/
|
|
1542
|
-
export const resetSelectedNodesCtxMenu = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"resetSelectedNodesCtxMenu">): AnalyticsEvent => {
|
|
1543
|
-
const staticData = {
|
|
1544
|
-
...toSnakeCaseDeep(ctx),
|
|
1545
|
-
unique_event_id: crypto.randomUUID(),
|
|
1546
|
-
timestamp: new Date().toISOString(),
|
|
1547
|
-
event_name: "nodes_reset",
|
|
1548
|
-
event_source: "editor",
|
|
1549
|
-
event_display_name: "Nodes Reset",
|
|
1550
|
-
interaction: {
|
|
1551
|
-
location: "canvas",
|
|
1552
|
-
trigger: "user",
|
|
1553
|
-
type: "click",
|
|
1554
|
-
ui_element: "context_menu",
|
|
1555
|
-
},
|
|
1556
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1557
|
-
|
|
1558
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1559
|
-
|
|
1560
|
-
return event;
|
|
1561
|
-
};
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* Fired when the user resets a selection of nodes via the keyboard shortcut
|
|
1565
|
-
*/
|
|
1566
|
-
export const resetSelectedNodesKeyboard = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"resetSelectedNodesKeyboard">): AnalyticsEvent => {
|
|
1567
|
-
const staticData = {
|
|
1568
|
-
...toSnakeCaseDeep(ctx),
|
|
1569
|
-
unique_event_id: crypto.randomUUID(),
|
|
1570
|
-
timestamp: new Date().toISOString(),
|
|
1571
|
-
event_name: "nodes_reset",
|
|
1572
|
-
event_source: "editor",
|
|
1573
|
-
event_display_name: "Nodes Reset",
|
|
1574
|
-
interaction: {
|
|
1575
|
-
location: "global",
|
|
1576
|
-
trigger: "user",
|
|
1577
|
-
type: "shortcut",
|
|
1578
|
-
},
|
|
1579
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1580
|
-
|
|
1581
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1582
|
-
|
|
1583
|
-
return event;
|
|
1584
|
-
};
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* Fired when the user resets a selection of nodes via the workflow toolbar
|
|
1588
|
-
*/
|
|
1589
|
-
export const resetSelectedNodesToolbar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"resetSelectedNodesToolbar">): AnalyticsEvent => {
|
|
1590
|
-
const staticData = {
|
|
1591
|
-
...toSnakeCaseDeep(ctx),
|
|
1592
|
-
unique_event_id: crypto.randomUUID(),
|
|
1593
|
-
timestamp: new Date().toISOString(),
|
|
1594
|
-
event_name: "nodes_reset",
|
|
1595
|
-
event_source: "editor",
|
|
1596
|
-
event_display_name: "Nodes Reset",
|
|
1597
|
-
interaction: {
|
|
1598
|
-
location: "workflow_toolbar",
|
|
1324
|
+
specification: "execute",
|
|
1599
1325
|
trigger: "user",
|
|
1600
1326
|
type: "click",
|
|
1601
1327
|
},
|
|
@@ -1614,11 +1340,12 @@ export const executeNodeActionBar = <T extends DefaultContext>(ctx: T) => (event
|
|
|
1614
1340
|
...toSnakeCaseDeep(ctx),
|
|
1615
1341
|
unique_event_id: crypto.randomUUID(),
|
|
1616
1342
|
timestamp: new Date().toISOString(),
|
|
1617
|
-
event_name: "
|
|
1343
|
+
event_name: "execution_attempted",
|
|
1618
1344
|
event_source: "editor",
|
|
1619
|
-
event_display_name: "
|
|
1345
|
+
event_display_name: "Node execution from node action bar",
|
|
1620
1346
|
interaction: {
|
|
1621
1347
|
location: "canvas",
|
|
1348
|
+
specification: "execute",
|
|
1622
1349
|
trigger: "user",
|
|
1623
1350
|
type: "click",
|
|
1624
1351
|
ui_element: "node_action_bar",
|
|
@@ -1638,9 +1365,9 @@ export const executeNodeFromMonitor = <T extends DefaultContext>(ctx: T) => (eve
|
|
|
1638
1365
|
...toSnakeCaseDeep(ctx),
|
|
1639
1366
|
unique_event_id: crypto.randomUUID(),
|
|
1640
1367
|
timestamp: new Date().toISOString(),
|
|
1641
|
-
event_name: "
|
|
1368
|
+
event_name: "execution_attempted",
|
|
1642
1369
|
event_source: "editor",
|
|
1643
|
-
event_display_name: "
|
|
1370
|
+
event_display_name: "Node execution from node monitor",
|
|
1644
1371
|
interaction: {
|
|
1645
1372
|
location: "node_monitor",
|
|
1646
1373
|
trigger: "user",
|
|
@@ -1653,101 +1380,6 @@ export const executeNodeFromMonitor = <T extends DefaultContext>(ctx: T) => (eve
|
|
|
1653
1380
|
return event;
|
|
1654
1381
|
};
|
|
1655
1382
|
|
|
1656
|
-
/**
|
|
1657
|
-
* Fired when the user resets a single node via the node action bar
|
|
1658
|
-
*/
|
|
1659
|
-
export const resetNodeActionBar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"resetNodeActionBar">): AnalyticsEvent => {
|
|
1660
|
-
const staticData = {
|
|
1661
|
-
...toSnakeCaseDeep(ctx),
|
|
1662
|
-
unique_event_id: crypto.randomUUID(),
|
|
1663
|
-
timestamp: new Date().toISOString(),
|
|
1664
|
-
event_name: "nodes_reset",
|
|
1665
|
-
event_source: "editor",
|
|
1666
|
-
event_display_name: "Nodes Reset",
|
|
1667
|
-
interaction: {
|
|
1668
|
-
location: "canvas",
|
|
1669
|
-
trigger: "user",
|
|
1670
|
-
type: "click",
|
|
1671
|
-
ui_element: "node_action_bar",
|
|
1672
|
-
},
|
|
1673
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1674
|
-
|
|
1675
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1676
|
-
|
|
1677
|
-
return event;
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
/**
|
|
1681
|
-
* Fired when the user cancels execution of a single node via the node action bar
|
|
1682
|
-
*/
|
|
1683
|
-
export const cancelNodeActionBar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"cancelNodeActionBar">): AnalyticsEvent => {
|
|
1684
|
-
const staticData = {
|
|
1685
|
-
...toSnakeCaseDeep(ctx),
|
|
1686
|
-
unique_event_id: crypto.randomUUID(),
|
|
1687
|
-
timestamp: new Date().toISOString(),
|
|
1688
|
-
event_name: "nodes_cancelled",
|
|
1689
|
-
event_source: "editor",
|
|
1690
|
-
event_display_name: "Nodes Cancelled",
|
|
1691
|
-
interaction: {
|
|
1692
|
-
location: "canvas",
|
|
1693
|
-
trigger: "user",
|
|
1694
|
-
type: "click",
|
|
1695
|
-
ui_element: "node_action_bar",
|
|
1696
|
-
},
|
|
1697
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1698
|
-
|
|
1699
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1700
|
-
|
|
1701
|
-
return event;
|
|
1702
|
-
};
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Fired when the user pauses loop execution via the keyboard shortcut
|
|
1706
|
-
*/
|
|
1707
|
-
export const pauseLoopExecutionKeyboard = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"pauseLoopExecutionKeyboard">): AnalyticsEvent => {
|
|
1708
|
-
const staticData = {
|
|
1709
|
-
...toSnakeCaseDeep(ctx),
|
|
1710
|
-
unique_event_id: crypto.randomUUID(),
|
|
1711
|
-
timestamp: new Date().toISOString(),
|
|
1712
|
-
event_name: "loop_paused",
|
|
1713
|
-
event_source: "editor",
|
|
1714
|
-
event_display_name: "Loop Paused",
|
|
1715
|
-
interaction: {
|
|
1716
|
-
location: "global",
|
|
1717
|
-
trigger: "user",
|
|
1718
|
-
type: "shortcut",
|
|
1719
|
-
},
|
|
1720
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1721
|
-
|
|
1722
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1723
|
-
|
|
1724
|
-
return event;
|
|
1725
|
-
};
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* Fired when the user pauses loop execution via the node action bar
|
|
1729
|
-
*/
|
|
1730
|
-
export const pauseLoopExecutionActionBar = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"pauseLoopExecutionActionBar">): AnalyticsEvent => {
|
|
1731
|
-
const staticData = {
|
|
1732
|
-
...toSnakeCaseDeep(ctx),
|
|
1733
|
-
unique_event_id: crypto.randomUUID(),
|
|
1734
|
-
timestamp: new Date().toISOString(),
|
|
1735
|
-
event_name: "loop_paused",
|
|
1736
|
-
event_source: "editor",
|
|
1737
|
-
event_display_name: "Loop Paused",
|
|
1738
|
-
interaction: {
|
|
1739
|
-
location: "canvas",
|
|
1740
|
-
trigger: "user",
|
|
1741
|
-
type: "click",
|
|
1742
|
-
ui_element: "node_action_bar",
|
|
1743
|
-
},
|
|
1744
|
-
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1745
|
-
|
|
1746
|
-
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1747
|
-
|
|
1748
|
-
return event;
|
|
1749
|
-
};
|
|
1750
|
-
|
|
1751
1383
|
/**
|
|
1752
1384
|
* Fired when the user resumes loop execution via the keyboard shortcut
|
|
1753
1385
|
*/
|
|
@@ -1756,11 +1388,12 @@ export const resumeLoopExecutionKeyboard = <T extends DefaultContext>(ctx: T) =>
|
|
|
1756
1388
|
...toSnakeCaseDeep(ctx),
|
|
1757
1389
|
unique_event_id: crypto.randomUUID(),
|
|
1758
1390
|
timestamp: new Date().toISOString(),
|
|
1759
|
-
event_name: "
|
|
1391
|
+
event_name: "execution_attempted",
|
|
1760
1392
|
event_source: "editor",
|
|
1761
|
-
event_display_name: "
|
|
1393
|
+
event_display_name: "Node execution (resume loop)",
|
|
1762
1394
|
interaction: {
|
|
1763
1395
|
location: "global",
|
|
1396
|
+
specification: "resume_loop",
|
|
1764
1397
|
trigger: "user",
|
|
1765
1398
|
type: "shortcut",
|
|
1766
1399
|
},
|
|
@@ -1779,11 +1412,12 @@ export const resumeLoopExecutionActionBar = <T extends DefaultContext>(ctx: T) =
|
|
|
1779
1412
|
...toSnakeCaseDeep(ctx),
|
|
1780
1413
|
unique_event_id: crypto.randomUUID(),
|
|
1781
1414
|
timestamp: new Date().toISOString(),
|
|
1782
|
-
event_name: "
|
|
1415
|
+
event_name: "execution_attempted",
|
|
1783
1416
|
event_source: "editor",
|
|
1784
|
-
event_display_name: "
|
|
1417
|
+
event_display_name: "Node execution (resume loop)",
|
|
1785
1418
|
interaction: {
|
|
1786
1419
|
location: "canvas",
|
|
1420
|
+
specification: "resume_loop",
|
|
1787
1421
|
trigger: "user",
|
|
1788
1422
|
type: "click",
|
|
1789
1423
|
ui_element: "node_action_bar",
|
|
@@ -1803,11 +1437,12 @@ export const stepLoopExecutionKeyboard = <T extends DefaultContext>(ctx: T) => (
|
|
|
1803
1437
|
...toSnakeCaseDeep(ctx),
|
|
1804
1438
|
unique_event_id: crypto.randomUUID(),
|
|
1805
1439
|
timestamp: new Date().toISOString(),
|
|
1806
|
-
event_name: "
|
|
1440
|
+
event_name: "execution_attempted",
|
|
1807
1441
|
event_source: "editor",
|
|
1808
|
-
event_display_name: "
|
|
1442
|
+
event_display_name: "Node execution (step loop)",
|
|
1809
1443
|
interaction: {
|
|
1810
1444
|
location: "global",
|
|
1445
|
+
specification: "step_loop",
|
|
1811
1446
|
trigger: "user",
|
|
1812
1447
|
type: "shortcut",
|
|
1813
1448
|
},
|
|
@@ -1826,11 +1461,12 @@ export const stepLoopExecutionActionBar = <T extends DefaultContext>(ctx: T) =>
|
|
|
1826
1461
|
...toSnakeCaseDeep(ctx),
|
|
1827
1462
|
unique_event_id: crypto.randomUUID(),
|
|
1828
1463
|
timestamp: new Date().toISOString(),
|
|
1829
|
-
event_name: "
|
|
1464
|
+
event_name: "execution_attempted",
|
|
1830
1465
|
event_source: "editor",
|
|
1831
|
-
event_display_name: "
|
|
1466
|
+
event_display_name: "Node execution (step loop)",
|
|
1832
1467
|
interaction: {
|
|
1833
1468
|
location: "canvas",
|
|
1469
|
+
specification: "step_loop",
|
|
1834
1470
|
trigger: "user",
|
|
1835
1471
|
type: "click",
|
|
1836
1472
|
ui_element: "node_action_bar",
|
|
@@ -1843,18 +1479,19 @@ export const stepLoopExecutionActionBar = <T extends DefaultContext>(ctx: T) =>
|
|
|
1843
1479
|
};
|
|
1844
1480
|
|
|
1845
1481
|
/**
|
|
1846
|
-
* Fired when the user
|
|
1482
|
+
* Fired when the user resumes loop execution via the context menu
|
|
1847
1483
|
*/
|
|
1848
|
-
export const
|
|
1484
|
+
export const resumeLoopExecutionCtxMenu = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"resumeLoopExecutionCtxMenu">): AnalyticsEvent => {
|
|
1849
1485
|
const staticData = {
|
|
1850
1486
|
...toSnakeCaseDeep(ctx),
|
|
1851
1487
|
unique_event_id: crypto.randomUUID(),
|
|
1852
1488
|
timestamp: new Date().toISOString(),
|
|
1853
|
-
event_name: "
|
|
1489
|
+
event_name: "execution_attempted",
|
|
1854
1490
|
event_source: "editor",
|
|
1855
|
-
event_display_name: "
|
|
1491
|
+
event_display_name: "Node execution (resume loop)",
|
|
1856
1492
|
interaction: {
|
|
1857
1493
|
location: "canvas",
|
|
1494
|
+
specification: "resume_loop",
|
|
1858
1495
|
trigger: "user",
|
|
1859
1496
|
type: "click",
|
|
1860
1497
|
ui_element: "context_menu",
|
|
@@ -1867,18 +1504,19 @@ export const pauseLoopExecutionCtxMenu = <T extends DefaultContext>(ctx: T) => (
|
|
|
1867
1504
|
};
|
|
1868
1505
|
|
|
1869
1506
|
/**
|
|
1870
|
-
* Fired when the user
|
|
1507
|
+
* Fired when the user steps through loop execution via the context menu
|
|
1871
1508
|
*/
|
|
1872
|
-
export const
|
|
1509
|
+
export const stepLoopExecutionCtxMenu = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"stepLoopExecutionCtxMenu">): AnalyticsEvent => {
|
|
1873
1510
|
const staticData = {
|
|
1874
1511
|
...toSnakeCaseDeep(ctx),
|
|
1875
1512
|
unique_event_id: crypto.randomUUID(),
|
|
1876
1513
|
timestamp: new Date().toISOString(),
|
|
1877
|
-
event_name: "
|
|
1514
|
+
event_name: "execution_attempted",
|
|
1878
1515
|
event_source: "editor",
|
|
1879
|
-
event_display_name: "
|
|
1516
|
+
event_display_name: "Node execution (step loop)",
|
|
1880
1517
|
interaction: {
|
|
1881
1518
|
location: "canvas",
|
|
1519
|
+
specification: "step_loop",
|
|
1882
1520
|
trigger: "user",
|
|
1883
1521
|
type: "click",
|
|
1884
1522
|
ui_element: "context_menu",
|
|
@@ -1891,21 +1529,20 @@ export const resumeLoopExecutionCtxMenu = <T extends DefaultContext>(ctx: T) =>
|
|
|
1891
1529
|
};
|
|
1892
1530
|
|
|
1893
1531
|
/**
|
|
1894
|
-
* Fired when the user
|
|
1532
|
+
* Fired when the user uploads items via the upload button in the space explorer
|
|
1895
1533
|
*/
|
|
1896
|
-
export const
|
|
1534
|
+
export const objectUploaded = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"objectUploaded">): AnalyticsEvent => {
|
|
1897
1535
|
const staticData = {
|
|
1898
1536
|
...toSnakeCaseDeep(ctx),
|
|
1899
1537
|
unique_event_id: crypto.randomUUID(),
|
|
1900
1538
|
timestamp: new Date().toISOString(),
|
|
1901
|
-
event_name: "
|
|
1539
|
+
event_name: "object_uploaded",
|
|
1902
1540
|
event_source: "editor",
|
|
1903
|
-
event_display_name: "
|
|
1541
|
+
event_display_name: "Object Uploaded",
|
|
1904
1542
|
interaction: {
|
|
1905
|
-
location: "
|
|
1543
|
+
location: "space_explorer",
|
|
1906
1544
|
trigger: "user",
|
|
1907
1545
|
type: "click",
|
|
1908
|
-
ui_element: "context_menu",
|
|
1909
1546
|
},
|
|
1910
1547
|
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1911
1548
|
|
|
@@ -1915,9 +1552,9 @@ export const stepLoopExecutionCtxMenu = <T extends DefaultContext>(ctx: T) => (e
|
|
|
1915
1552
|
};
|
|
1916
1553
|
|
|
1917
1554
|
/**
|
|
1918
|
-
* Fired when the user uploads items
|
|
1555
|
+
* Fired when the user uploads items by dropping a file on the canvas
|
|
1919
1556
|
*/
|
|
1920
|
-
export const
|
|
1557
|
+
export const objectUploadedCanvasDragDropFile = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"objectUploadedCanvasDragDropFile">): AnalyticsEvent => {
|
|
1921
1558
|
const staticData = {
|
|
1922
1559
|
...toSnakeCaseDeep(ctx),
|
|
1923
1560
|
unique_event_id: crypto.randomUUID(),
|
|
@@ -1926,9 +1563,9 @@ export const objectUploaded = <T extends DefaultContext>(ctx: T) => (eventData:
|
|
|
1926
1563
|
event_source: "editor",
|
|
1927
1564
|
event_display_name: "Object Uploaded",
|
|
1928
1565
|
interaction: {
|
|
1929
|
-
location: "
|
|
1566
|
+
location: "canvas",
|
|
1930
1567
|
trigger: "user",
|
|
1931
|
-
type: "
|
|
1568
|
+
type: "drag_drop",
|
|
1932
1569
|
},
|
|
1933
1570
|
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1934
1571
|
|