@inneropen/marvin-sdk 1.11.0-next.2 → 1.11.0-next.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/dist/platform.cjs CHANGED
@@ -329,6 +329,12 @@ var CollectionsModule = class {
329
329
  async getEntries(id) {
330
330
  return this.http.get(`/api/platform/collections/${id}/entries`);
331
331
  }
332
+ /**
333
+ * Reorder entries in a collection
334
+ */
335
+ async reorderEntries(id, entries) {
336
+ return this.http.patch(`/api/platform/collections/${id}/entries/order`, { entries });
337
+ }
332
338
  };
333
339
 
334
340
  // src/platform/resources.ts
@@ -2743,6 +2743,13 @@ declare class CollectionsModule {
2743
2743
  * Get entries in a collection
2744
2744
  */
2745
2745
  getEntries(id: string): Promise<PlatformEntry[]>;
2746
+ /**
2747
+ * Reorder entries in a collection
2748
+ */
2749
+ reorderEntries(id: string, entries: Array<{
2750
+ entryId: string;
2751
+ sortOrder: number;
2752
+ }>): Promise<void>;
2746
2753
  }
2747
2754
 
2748
2755
  /**
@@ -2743,6 +2743,13 @@ declare class CollectionsModule {
2743
2743
  * Get entries in a collection
2744
2744
  */
2745
2745
  getEntries(id: string): Promise<PlatformEntry[]>;
2746
+ /**
2747
+ * Reorder entries in a collection
2748
+ */
2749
+ reorderEntries(id: string, entries: Array<{
2750
+ entryId: string;
2751
+ sortOrder: number;
2752
+ }>): Promise<void>;
2746
2753
  }
2747
2754
 
2748
2755
  /**
package/dist/platform.js CHANGED
@@ -108,6 +108,12 @@ var CollectionsModule = class {
108
108
  async getEntries(id) {
109
109
  return this.http.get(`/api/platform/collections/${id}/entries`);
110
110
  }
111
+ /**
112
+ * Reorder entries in a collection
113
+ */
114
+ async reorderEntries(id, entries) {
115
+ return this.http.patch(`/api/platform/collections/${id}/entries/order`, { entries });
116
+ }
111
117
  };
112
118
 
113
119
  // src/platform/resources.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "1.11.0-next.2",
3
+ "version": "1.11.0-next.3",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",