@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 +1 -1
- package/src/admin.ts +8 -2
- package/src/types.ts +1 -0
package/package.json
CHANGED
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 —
|
|
1363
|
-
* under `skipped` and admin
|
|
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[] }>(
|