@bunbase-ae/js 2.16.1-next.373.29de22b → 2.16.1-next.378.707ff9f

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.378.707ff9f",
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
  });
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;