@bunbase-ae/js 2.16.1-next.373.29de22b → 2.16.1-next.379.5ff6bc1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunbase-ae/js",
3
- "version": "2.16.1-next.373.29de22b",
3
+ "version": "2.16.1-next.379.5ff6bc1",
4
4
  "type": "module",
5
5
  "description": "TypeScript/JavaScript SDK for BunBase",
6
6
  "license": "UNLICENSED",
package/src/admin.ts CHANGED
@@ -970,12 +970,14 @@ class AdminStorageClient {
970
970
  isPublic: boolean;
971
971
  collection?: string;
972
972
  bucket?: string;
973
+ recordId?: string;
973
974
  }): Promise<AdminStoredFile> {
974
975
  const form = new FormData();
975
976
  form.append("file", params.file, params.filename);
976
977
  form.append("is_public", params.isPublic ? "true" : "false");
977
978
  if (params.collection) form.append("collection", params.collection);
978
979
  if (params.bucket) form.append("bucket", params.bucket);
980
+ if (params.recordId) form.append("record_id", params.recordId);
979
981
  return this.http.request<AdminStoredFile>("POST", "/api/v1/admin/storage/upload", {
980
982
  formData: form,
981
983
  });
@@ -1359,8 +1361,12 @@ class AdminNamedQueriesClient {
1359
1361
  *
1360
1362
  * Fresh deployments get these installed automatically at bootstrap; this
1361
1363
  * method exists so existing deployments can opt in from the dashboard's
1362
- * empty state. The call is idempotent — queries already present are reported
1363
- * under `skipped` and admin-edited rows are never overwritten.
1364
+ * empty state. The call is idempotent — human-authored starter queries
1365
+ * already present are reported under `skipped` and their admin edits are
1366
+ * preserved. The dynamic `_collection_row_counts` query is the one
1367
+ * exception: its SQL is regenerated from `_collections` on every call (so
1368
+ * new collections automatically appear after a reinstall) and is reported
1369
+ * under `installed` again.
1364
1370
  */
1365
1371
  async installStarter(): Promise<{ installed: string[]; skipped: string[] }> {
1366
1372
  return this.http.request<{ installed: string[]; skipped: string[] }>(
package/src/types.ts CHANGED
@@ -85,6 +85,7 @@ export interface FileRecord {
85
85
  collection: string | null;
86
86
  record_id: string | null;
87
87
  owner_id: string | null;
88
+ tenant_id: string | null;
88
89
  size: number;
89
90
  mime_type: string;
90
91
  is_public: boolean;