@coreviz/sdk 1.1.4 → 1.1.5
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/dist/coreviz.d.ts +1 -1
- package/dist/coreviz.js +2 -1
- package/package.json +1 -1
package/dist/coreviz.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export interface CollectionsNamespace {
|
|
|
149
149
|
/**
|
|
150
150
|
* Create a new collection.
|
|
151
151
|
* @param name - Display name for the collection.
|
|
152
|
-
* @param icon - Optional
|
|
152
|
+
* @param icon - Optional lucide icon name.
|
|
153
153
|
* @param organizationId - Target organization. Defaults to the current user's organization.
|
|
154
154
|
*/
|
|
155
155
|
create(name: string, icon?: string, organizationId?: string): Promise<Collection>;
|
package/dist/coreviz.js
CHANGED
|
@@ -73,7 +73,8 @@ class CoreViz {
|
|
|
73
73
|
name,
|
|
74
74
|
...(icon ? { icon } : {}),
|
|
75
75
|
});
|
|
76
|
-
|
|
76
|
+
// API returns the collection directly (not wrapped in { dataset: ... })
|
|
77
|
+
return data.dataset ?? data;
|
|
77
78
|
},
|
|
78
79
|
update: async (collectionId, updates) => {
|
|
79
80
|
const data = await this._fetchMethod('PATCH', `/api/dataset/${collectionId}`, updates);
|