@happyvertical/smrt-reports 0.60.8 → 0.60.10

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-reports",
5
- "packageVersion": "0.60.8",
5
+ "packageVersion": "0.60.10",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-reports:SmrtReport": {
8
8
  "name": "smrtreport",
@@ -332,8 +332,14 @@
332
332
  ],
333
333
  "schema": {
334
334
  "tableName": "runtime_reports",
335
- "ddl": "CREATE TABLE IF NOT EXISTS \"runtime_reports\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"description\" TEXT,\n \"source_id\" TEXT,\n \"spec\" TEXT NOT NULL,\n \"spec_hash\" TEXT,\n \"status\" TEXT NOT NULL,\n \"created_by_user_id\" TEXT\n);",
335
+ "ddl": "CREATE TABLE IF NOT EXISTS \"runtime_reports\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"description\" TEXT,\n \"source_id\" TEXT,\n \"spec\" TEXT NOT NULL,\n \"spec_hash\" TEXT,\n \"status\" TEXT NOT NULL,\n \"created_by_user_id\" TEXT\n);",
336
336
  "columns": {
337
+ "_sync_origin_device_id": {
338
+ "type": "TEXT"
339
+ },
340
+ "_sync_revision": {
341
+ "type": "INTEGER"
342
+ },
337
343
  "id": {
338
344
  "type": "UUID",
339
345
  "primaryKey": true,
@@ -428,7 +434,7 @@
428
434
  ]
429
435
  }
430
436
  ],
431
- "version": "04a92513"
437
+ "version": "0197b1d5"
432
438
  },
433
439
  "importPath": "@happyvertical/smrt-reports"
434
440
  },
@@ -475,8 +481,14 @@
475
481
  ],
476
482
  "schema": {
477
483
  "tableName": "runtime_reports",
478
- "ddl": "CREATE TABLE IF NOT EXISTS \"runtime_reports\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"description\" TEXT,\n \"source_id\" TEXT,\n \"spec\" TEXT NOT NULL,\n \"spec_hash\" TEXT,\n \"status\" TEXT NOT NULL,\n \"created_by_user_id\" TEXT\n);",
484
+ "ddl": "CREATE TABLE IF NOT EXISTS \"runtime_reports\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT,\n \"description\" TEXT,\n \"source_id\" TEXT,\n \"spec\" TEXT NOT NULL,\n \"spec_hash\" TEXT,\n \"status\" TEXT NOT NULL,\n \"created_by_user_id\" TEXT\n);",
479
485
  "columns": {
486
+ "_sync_origin_device_id": {
487
+ "type": "TEXT"
488
+ },
489
+ "_sync_revision": {
490
+ "type": "INTEGER"
491
+ },
480
492
  "id": {
481
493
  "type": "UUID",
482
494
  "primaryKey": true,
@@ -571,7 +583,7 @@
571
583
  ]
572
584
  }
573
585
  ],
574
- "version": "04a92513"
586
+ "version": "0197b1d5"
575
587
  },
576
588
  "importPath": "@happyvertical/smrt-reports"
577
589
  },
@@ -703,8 +715,14 @@
703
715
  ],
704
716
  "schema": {
705
717
  "tableName": "_smrt_report_refresh_tasks",
706
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_refresh_tasks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"report_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"args\" JSON\n);",
718
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_refresh_tasks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"report_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"args\" JSON\n);",
707
719
  "columns": {
720
+ "_sync_origin_device_id": {
721
+ "type": "TEXT"
722
+ },
723
+ "_sync_revision": {
724
+ "type": "INTEGER"
725
+ },
708
726
  "id": {
709
727
  "type": "UUID",
710
728
  "primaryKey": true,
@@ -776,7 +794,7 @@
776
794
  ]
777
795
  }
778
796
  ],
779
- "version": "c9142042"
797
+ "version": "2927f97f"
780
798
  },
781
799
  "importPath": "@happyvertical/smrt-reports/scheduler"
782
800
  },
@@ -854,8 +872,14 @@
854
872
  "collectionExportName": "SmrtPrincipalReportRefreshTaskCollection",
855
873
  "schema": {
856
874
  "tableName": "_smrt_principal_report_refresh_tasks",
857
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_principal_report_refresh_tasks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID\n);",
875
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_principal_report_refresh_tasks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID\n);",
858
876
  "columns": {
877
+ "_sync_origin_device_id": {
878
+ "type": "TEXT"
879
+ },
880
+ "_sync_revision": {
881
+ "type": "INTEGER"
882
+ },
859
883
  "id": {
860
884
  "type": "UUID",
861
885
  "primaryKey": true,
@@ -907,7 +931,7 @@
907
931
  ]
908
932
  }
909
933
  ],
910
- "version": "226a3b97"
934
+ "version": "98b08696"
911
935
  },
912
936
  "importPath": "@happyvertical/smrt-reports/scheduler"
913
937
  },
@@ -1135,8 +1159,14 @@
1135
1159
  ],
1136
1160
  "schema": {
1137
1161
  "tableName": "_smrt_report_runs",
1138
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"status\" TEXT NOT NULL,\n \"started_at\" TIMESTAMP NOT NULL,\n \"completed_at\" TIMESTAMP,\n \"row_count\" INTEGER NOT NULL,\n \"changed_group_count\" INTEGER NOT NULL,\n \"watermark_before\" TEXT,\n \"watermark_after\" TEXT,\n \"error\" TEXT,\n \"metadata\" JSON\n);",
1162
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"status\" TEXT NOT NULL,\n \"started_at\" TIMESTAMP NOT NULL,\n \"completed_at\" TIMESTAMP,\n \"row_count\" INTEGER NOT NULL,\n \"changed_group_count\" INTEGER NOT NULL,\n \"watermark_before\" TEXT,\n \"watermark_after\" TEXT,\n \"error\" TEXT,\n \"metadata\" JSON\n);",
1139
1163
  "columns": {
1164
+ "_sync_origin_device_id": {
1165
+ "type": "TEXT"
1166
+ },
1167
+ "_sync_revision": {
1168
+ "type": "INTEGER"
1169
+ },
1140
1170
  "id": {
1141
1171
  "type": "UUID",
1142
1172
  "primaryKey": true,
@@ -1258,7 +1288,7 @@
1258
1288
  ]
1259
1289
  }
1260
1290
  ],
1261
- "version": "54ff5048"
1291
+ "version": "3b43224d"
1262
1292
  },
1263
1293
  "importPath": "@happyvertical/smrt-reports/state"
1264
1294
  },
@@ -1295,8 +1325,14 @@
1295
1325
  ],
1296
1326
  "schema": {
1297
1327
  "tableName": "_smrt_report_runs",
1298
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"status\" TEXT NOT NULL,\n \"started_at\" TIMESTAMP NOT NULL,\n \"completed_at\" TIMESTAMP,\n \"row_count\" INTEGER NOT NULL,\n \"changed_group_count\" INTEGER NOT NULL,\n \"watermark_before\" TEXT,\n \"watermark_after\" TEXT,\n \"error\" TEXT,\n \"metadata\" JSON\n);",
1328
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_runs\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"status\" TEXT NOT NULL,\n \"started_at\" TIMESTAMP NOT NULL,\n \"completed_at\" TIMESTAMP,\n \"row_count\" INTEGER NOT NULL,\n \"changed_group_count\" INTEGER NOT NULL,\n \"watermark_before\" TEXT,\n \"watermark_after\" TEXT,\n \"error\" TEXT,\n \"metadata\" JSON\n);",
1299
1329
  "columns": {
1330
+ "_sync_origin_device_id": {
1331
+ "type": "TEXT"
1332
+ },
1333
+ "_sync_revision": {
1334
+ "type": "INTEGER"
1335
+ },
1300
1336
  "id": {
1301
1337
  "type": "UUID",
1302
1338
  "primaryKey": true,
@@ -1418,7 +1454,7 @@
1418
1454
  ]
1419
1455
  }
1420
1456
  ],
1421
- "version": "54ff5048"
1457
+ "version": "3b43224d"
1422
1458
  },
1423
1459
  "importPath": "@happyvertical/smrt-reports/state"
1424
1460
  },
@@ -1541,8 +1577,14 @@
1541
1577
  ],
1542
1578
  "schema": {
1543
1579
  "tableName": "_smrt_report_watermarks",
1544
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"watermark_column\" TEXT NOT NULL,\n \"watermark_value\" TEXT,\n \"last_run_id\" TEXT\n);",
1580
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"watermark_column\" TEXT NOT NULL,\n \"watermark_value\" TEXT,\n \"last_run_id\" TEXT\n);",
1545
1581
  "columns": {
1582
+ "_sync_origin_device_id": {
1583
+ "type": "TEXT"
1584
+ },
1585
+ "_sync_revision": {
1586
+ "type": "INTEGER"
1587
+ },
1546
1588
  "id": {
1547
1589
  "type": "UUID",
1548
1590
  "primaryKey": true,
@@ -1631,7 +1673,7 @@
1631
1673
  ]
1632
1674
  }
1633
1675
  ],
1634
- "version": "dac9d57a"
1676
+ "version": "a1bd37f4"
1635
1677
  },
1636
1678
  "importPath": "@happyvertical/smrt-reports/state"
1637
1679
  },
@@ -1668,8 +1710,14 @@
1668
1710
  ],
1669
1711
  "schema": {
1670
1712
  "tableName": "_smrt_report_watermarks",
1671
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"watermark_column\" TEXT NOT NULL,\n \"watermark_value\" TEXT,\n \"last_run_id\" TEXT\n);",
1713
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_watermarks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"source_class\" TEXT NOT NULL,\n \"watermark_column\" TEXT NOT NULL,\n \"watermark_value\" TEXT,\n \"last_run_id\" TEXT\n);",
1672
1714
  "columns": {
1715
+ "_sync_origin_device_id": {
1716
+ "type": "TEXT"
1717
+ },
1718
+ "_sync_revision": {
1719
+ "type": "INTEGER"
1720
+ },
1673
1721
  "id": {
1674
1722
  "type": "UUID",
1675
1723
  "primaryKey": true,
@@ -1758,7 +1806,7 @@
1758
1806
  ]
1759
1807
  }
1760
1808
  ],
1761
- "version": "dac9d57a"
1809
+ "version": "a1bd37f4"
1762
1810
  },
1763
1811
  "importPath": "@happyvertical/smrt-reports/state"
1764
1812
  },
@@ -1869,8 +1917,14 @@
1869
1917
  ],
1870
1918
  "schema": {
1871
1919
  "tableName": "_smrt_report_locks",
1872
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"owner_id\" TEXT,\n \"acquired_at\" TIMESTAMP,\n \"heartbeat_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP\n);",
1920
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"owner_id\" TEXT,\n \"acquired_at\" TIMESTAMP,\n \"heartbeat_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP\n);",
1873
1921
  "columns": {
1922
+ "_sync_origin_device_id": {
1923
+ "type": "TEXT"
1924
+ },
1925
+ "_sync_revision": {
1926
+ "type": "INTEGER"
1927
+ },
1874
1928
  "id": {
1875
1929
  "type": "UUID",
1876
1930
  "primaryKey": true,
@@ -1957,7 +2011,7 @@
1957
2011
  ]
1958
2012
  }
1959
2013
  ],
1960
- "version": "4a2043f9"
2014
+ "version": "1df076b7"
1961
2015
  },
1962
2016
  "importPath": "@happyvertical/smrt-reports/state"
1963
2017
  },
@@ -1994,8 +2048,14 @@
1994
2048
  ],
1995
2049
  "schema": {
1996
2050
  "tableName": "_smrt_report_locks",
1997
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"owner_id\" TEXT,\n \"acquired_at\" TIMESTAMP,\n \"heartbeat_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP\n);",
2051
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_locks\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"owner_id\" TEXT,\n \"acquired_at\" TIMESTAMP,\n \"heartbeat_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP\n);",
1998
2052
  "columns": {
2053
+ "_sync_origin_device_id": {
2054
+ "type": "TEXT"
2055
+ },
2056
+ "_sync_revision": {
2057
+ "type": "INTEGER"
2058
+ },
1999
2059
  "id": {
2000
2060
  "type": "UUID",
2001
2061
  "primaryKey": true,
@@ -2082,7 +2142,7 @@
2082
2142
  ]
2083
2143
  }
2084
2144
  ],
2085
- "version": "4a2043f9"
2145
+ "version": "1df076b7"
2086
2146
  },
2087
2147
  "importPath": "@happyvertical/smrt-reports/state"
2088
2148
  },
@@ -2388,8 +2448,14 @@
2388
2448
  ],
2389
2449
  "schema": {
2390
2450
  "tableName": "_smrt_report_schedules",
2391
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"cron\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"enabled\" BOOLEAN NOT NULL,\n \"status\" TEXT NOT NULL,\n \"next_run\" TIMESTAMP,\n \"last_run\" TIMESTAMP,\n \"last_status\" TEXT,\n \"last_error\" TEXT,\n \"run_count\" INTEGER NOT NULL,\n \"success_count\" INTEGER NOT NULL,\n \"failure_count\" INTEGER NOT NULL,\n \"running_count\" INTEGER NOT NULL,\n \"max_concurrent\" INTEGER NOT NULL,\n \"queue\" TEXT NOT NULL,\n \"priority\" INTEGER NOT NULL,\n \"timeout\" INTEGER NOT NULL\n);",
2451
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"cron\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"enabled\" BOOLEAN NOT NULL,\n \"status\" TEXT NOT NULL,\n \"next_run\" TIMESTAMP,\n \"last_run\" TIMESTAMP,\n \"last_status\" TEXT,\n \"last_error\" TEXT,\n \"run_count\" INTEGER NOT NULL,\n \"success_count\" INTEGER NOT NULL,\n \"failure_count\" INTEGER NOT NULL,\n \"running_count\" INTEGER NOT NULL,\n \"max_concurrent\" INTEGER NOT NULL,\n \"queue\" TEXT NOT NULL,\n \"priority\" INTEGER NOT NULL,\n \"timeout\" INTEGER NOT NULL\n);",
2392
2452
  "columns": {
2453
+ "_sync_origin_device_id": {
2454
+ "type": "TEXT"
2455
+ },
2456
+ "_sync_revision": {
2457
+ "type": "INTEGER"
2458
+ },
2393
2459
  "id": {
2394
2460
  "type": "UUID",
2395
2461
  "primaryKey": true,
@@ -2543,7 +2609,7 @@
2543
2609
  ]
2544
2610
  }
2545
2611
  ],
2546
- "version": "4b9f0e69"
2612
+ "version": "372c07ab"
2547
2613
  },
2548
2614
  "importPath": "@happyvertical/smrt-reports/state"
2549
2615
  },
@@ -2580,8 +2646,14 @@
2580
2646
  ],
2581
2647
  "schema": {
2582
2648
  "tableName": "_smrt_report_schedules",
2583
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"cron\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"enabled\" BOOLEAN NOT NULL,\n \"status\" TEXT NOT NULL,\n \"next_run\" TIMESTAMP,\n \"last_run\" TIMESTAMP,\n \"last_status\" TEXT,\n \"last_error\" TEXT,\n \"run_count\" INTEGER NOT NULL,\n \"success_count\" INTEGER NOT NULL,\n \"failure_count\" INTEGER NOT NULL,\n \"running_count\" INTEGER NOT NULL,\n \"max_concurrent\" INTEGER NOT NULL,\n \"queue\" TEXT NOT NULL,\n \"priority\" INTEGER NOT NULL,\n \"timeout\" INTEGER NOT NULL\n);",
2649
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_report_schedules\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"report_class\" TEXT NOT NULL,\n \"cron\" TEXT NOT NULL,\n \"trigger\" TEXT NOT NULL,\n \"mode\" TEXT NOT NULL,\n \"enabled\" BOOLEAN NOT NULL,\n \"status\" TEXT NOT NULL,\n \"next_run\" TIMESTAMP,\n \"last_run\" TIMESTAMP,\n \"last_status\" TEXT,\n \"last_error\" TEXT,\n \"run_count\" INTEGER NOT NULL,\n \"success_count\" INTEGER NOT NULL,\n \"failure_count\" INTEGER NOT NULL,\n \"running_count\" INTEGER NOT NULL,\n \"max_concurrent\" INTEGER NOT NULL,\n \"queue\" TEXT NOT NULL,\n \"priority\" INTEGER NOT NULL,\n \"timeout\" INTEGER NOT NULL\n);",
2584
2650
  "columns": {
2651
+ "_sync_origin_device_id": {
2652
+ "type": "TEXT"
2653
+ },
2654
+ "_sync_revision": {
2655
+ "type": "INTEGER"
2656
+ },
2585
2657
  "id": {
2586
2658
  "type": "UUID",
2587
2659
  "primaryKey": true,
@@ -2735,7 +2807,7 @@
2735
2807
  ]
2736
2808
  }
2737
2809
  ],
2738
- "version": "4b9f0e69"
2810
+ "version": "372c07ab"
2739
2811
  },
2740
2812
  "importPath": "@happyvertical/smrt-reports/state"
2741
2813
  }
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-reports",
6
- "packageVersion": "0.60.8",
6
+ "packageVersion": "0.60.10",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "08d44c2025fd39f9f07ac094338b9453a93149eb7745a568a56bbe4fcc80ce7e",
11
- "packageJson": "2e42601b3912b47ddf03b1fe3a71268fd1c634c2171c30804b7f7611ba06789f",
10
+ "manifest": "ec2b36db88f8d1ef5f1adcfc382b5b9bab8918579a990542b643035ddd78907e",
11
+ "packageJson": "a17e8aabbc5fa4af697c9eccbf4a74a9061845556d654b14c9a23ac3e840e8b3",
12
12
  "agents": "06d19fec39775737f02dd553471e74a9f4442334138ea273ea53a0fb5e45cef4",
13
13
  "moduleDoc:agents/runtime-report-browser.md": "4b7d8d3d3766e7ff0ae07b5c78e23a66d2be9dd2f7a3da2dfdc2330bcc9e1516",
14
14
  "moduleDoc:agents/runtime-reports.md": "6afffd734071fbe953cc07db6dca205dbc17eba320a98408026dc96aaf825a39",
@@ -0,0 +1,98 @@
1
+ ---
2
+ type: "Component"
3
+ title: "@happyvertical/smrt-reports"
4
+ description: "Materialized aggregate report models for SMRT"
5
+ status: "stable"
6
+ generated:
7
+ by: "smrt/scripts/generate-knowledge-okf.ts"
8
+ at: "2026-11-05T15:48:19Z"
9
+ audience: "internal"
10
+ evidence_level: "source-inspected"
11
+ source_revision: "sha256:cc021f94f8d84b1a460cf5d40b4dec2b0d371421df75d0915eeda70061841782"
12
+ sources:
13
+ - id: "manifest"
14
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/reports/package.json"
15
+ title: "@happyvertical/smrt-reports package manifest"
16
+ - id: "agents"
17
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/reports/AGENTS.md"
18
+ title: "@happyvertical/smrt-reports packages/reports/AGENTS.md"
19
+ - id: "agents-2"
20
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/reports/README.md"
21
+ title: "@happyvertical/smrt-reports packages/reports/README.md"
22
+ - id: "agents-3"
23
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/reports/agents/runtime-report-browser.md"
24
+ title: "@happyvertical/smrt-reports packages/reports/agents/runtime-report-browser.md"
25
+ - id: "agents-4"
26
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/reports/agents/runtime-reports.md"
27
+ title: "@happyvertical/smrt-reports packages/reports/agents/runtime-reports.md"
28
+ ---
29
+
30
+ # @happyvertical/smrt-reports
31
+
32
+ ## Package
33
+
34
+ - Directory: `packages/reports`
35
+ - Private: no
36
+ - Object source: `domain-artifact`
37
+ - Evidence level: `source-inspected`
38
+
39
+ ## Documentation
40
+
41
+ - `packages/reports/AGENTS.md`
42
+ - `packages/reports/README.md`
43
+ - `packages/reports/agents/runtime-report-browser.md`
44
+ - `packages/reports/agents/runtime-reports.md`
45
+
46
+ ## Framework dependencies
47
+
48
+ - [smrt-config](/components/smrt-config.md)
49
+ - [smrt-core](/components/smrt-core.md)
50
+ - [smrt-jobs](/components/smrt-jobs.md)
51
+ - [smrt-scanner](/components/smrt-scanner.md)
52
+ - [smrt-tenancy](/components/smrt-tenancy.md)
53
+ - [smrt-types](/components/smrt-types.md)
54
+ - [smrt-ui](/components/smrt-ui.md)
55
+ - [smrt-vitest](/components/smrt-vitest.md)
56
+
57
+ ## SDK dependencies
58
+
59
+ - `@happyvertical/sql`
60
+
61
+ ## Exports
62
+
63
+ - `.`
64
+ - `./aggregate`
65
+ - `./compiler`
66
+ - `./decorators`
67
+ - `./manifest`
68
+ - `./manifest.json`
69
+ - `./playground`
70
+ - `./refresh`
71
+ - `./scheduler`
72
+ - `./spec`
73
+ - `./state`
74
+ - `./svelte`
75
+
76
+ ## Models
77
+
78
+ - `RuntimeReport` (collection `runtimereports`, extends `SmrtObject`)
79
+ - `RuntimeReportCollection` (collection `runtimereports`, extends `SmrtCollection`)
80
+ - `SmrtPrincipalReportRefreshTask` (collection `smrtprincipalreportrefreshtasks`, extends `SmrtReportRefreshTask`)
81
+ - `SmrtReport` (collection `smrtreports`, extends `SmrtObject`)
82
+ - `SmrtReportCollection` (collection `smrtreports`, extends `SmrtCollection`)
83
+ - `SmrtReportLock` (collection `smrtreportlocks`, extends `SmrtObject`)
84
+ - `SmrtReportLockCollection` (collection `smrtreportlocks`, extends `SmrtCollection`)
85
+ - `SmrtReportRefreshTask` (collection `smrtreportrefreshtasks`, extends `SmrtObject`)
86
+ - `SmrtReportRun` (collection `smrtreportruns`, extends `SmrtObject`)
87
+ - `SmrtReportRunCollection` (collection `smrtreportruns`, extends `SmrtCollection`)
88
+ - `SmrtReportSchedule` (collection `smrtreportschedules`, extends `SmrtObject`)
89
+ - `SmrtReportScheduleCollection` (collection `smrtreportschedules`, extends `SmrtCollection`)
90
+ - `SmrtReportWatermark` (collection `smrtreportwatermarks`, extends `SmrtObject`)
91
+ - `SmrtReportWatermarkCollection` (collection `smrtreportwatermarks`, extends `SmrtCollection`)
92
+
93
+ ## MCP tools
94
+
95
+ - `runtimereport_archive`: archive on `@happyvertical/smrt-reports:RuntimeReport`
96
+ - `runtimereport_get`: get on `@happyvertical/smrt-reports:RuntimeReport`
97
+ - `runtimereport_list`: list on `@happyvertical/smrt-reports:RuntimeReport`
98
+ - `runtimereport_run`: run on `@happyvertical/smrt-reports:RuntimeReport`