@unboundcx/sdk 1.2.2 → 1.2.3
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/services/storage.js +6 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/services/storage.js
CHANGED
|
@@ -427,14 +427,12 @@ export class StorageService {
|
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
//
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
country: 'US',
|
|
437
|
-
});
|
|
430
|
+
// Build form fields for profile image upload - minimal fields since controller handles the logic
|
|
431
|
+
const formFields = [];
|
|
432
|
+
formFields.push(['classification', classification]);
|
|
433
|
+
|
|
434
|
+
// Use the dedicated profile image endpoint
|
|
435
|
+
return this._performUpload(file, fileName || 'profile-image.jpg', formFields, '/storage/upload-profile-image');
|
|
438
436
|
}
|
|
439
437
|
|
|
440
438
|
async getFileInfo(storageId) {
|