@glassanalytics/cli 0.2.0 → 0.2.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/LICENSE +21 -0
- package/README.md +2 -1
- package/dist/glass.js +471 -62
- package/dist/worker/migrations/0002_cohorts.sql +11 -0
- package/dist/worker/migrations/0003_insights.sql +14 -0
- package/dist/worker/worker.js +860 -155
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-- Saved person cohorts: reusable filters for the People tab and insights.
|
|
2
|
+
CREATE TABLE IF NOT EXISTS cohorts (
|
|
3
|
+
project TEXT NOT NULL,
|
|
4
|
+
key TEXT NOT NULL,
|
|
5
|
+
name TEXT NOT NULL,
|
|
6
|
+
-- JSON: { "filters": Filter[], "didEvent"?: string, "from"?: string }
|
|
7
|
+
definition TEXT NOT NULL,
|
|
8
|
+
created_at INTEGER NOT NULL,
|
|
9
|
+
updated_at INTEGER NOT NULL,
|
|
10
|
+
PRIMARY KEY (project, key)
|
|
11
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-- Saved insight analyses (trends / funnel / retention) shown on the Insights tab.
|
|
2
|
+
CREATE TABLE IF NOT EXISTS insights (
|
|
3
|
+
project TEXT NOT NULL,
|
|
4
|
+
key TEXT NOT NULL,
|
|
5
|
+
name TEXT NOT NULL,
|
|
6
|
+
description TEXT NOT NULL DEFAULT '',
|
|
7
|
+
-- trends | funnel | retention
|
|
8
|
+
kind TEXT NOT NULL,
|
|
9
|
+
-- JSON query spec without kind/project (series, steps, cohortEvent, …)
|
|
10
|
+
spec TEXT NOT NULL,
|
|
11
|
+
created_at INTEGER NOT NULL,
|
|
12
|
+
updated_at INTEGER NOT NULL,
|
|
13
|
+
PRIMARY KEY (project, key)
|
|
14
|
+
);
|