@bunbase-ae/js 2.16.0 → 2.16.1-next.366.a8d9838
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/package.json +1 -1
- package/src/admin.ts +17 -0
package/package.json
CHANGED
package/src/admin.ts
CHANGED
|
@@ -1237,6 +1237,23 @@ class AdminNamedQueriesClient {
|
|
|
1237
1237
|
{ body: params },
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Install the system-managed starter pack used by the Studio "Data Insights"
|
|
1243
|
+
* dashboard (`_user_growth_30d`, `_active_users_24h`,
|
|
1244
|
+
* `_collection_row_counts`, `_recent_auth_events`).
|
|
1245
|
+
*
|
|
1246
|
+
* Fresh deployments get these installed automatically at bootstrap; this
|
|
1247
|
+
* method exists so existing deployments can opt in from the dashboard's
|
|
1248
|
+
* empty state. The call is idempotent — queries already present are reported
|
|
1249
|
+
* under `skipped` and admin-edited rows are never overwritten.
|
|
1250
|
+
*/
|
|
1251
|
+
async installStarter(): Promise<{ installed: string[]; skipped: string[] }> {
|
|
1252
|
+
return this.http.request<{ installed: string[]; skipped: string[] }>(
|
|
1253
|
+
"POST",
|
|
1254
|
+
"/api/v1/admin/queries/install-starter",
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1240
1257
|
}
|
|
1241
1258
|
|
|
1242
1259
|
// ─── Write hooks ──────────────────────────────────────────────────────────────
|