@inneropen/marvin-sdk 1.9.2 → 1.9.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
@@ -478,6 +478,24 @@ var EntryTypesModule = class {
478
478
  async get(id) {
479
479
  return this.http.get(`/api/platform/entry-types/${id}`);
480
480
  }
481
+ /**
482
+ * Create a new entry type
483
+ */
484
+ async create(data) {
485
+ return this.http.post("/api/platform/entry-types", data);
486
+ }
487
+ /**
488
+ * Update an entry type
489
+ */
490
+ async update(id, data) {
491
+ return this.http.patch(`/api/platform/entry-types/${id}`, data);
492
+ }
493
+ /**
494
+ * Delete an entry type
495
+ */
496
+ async delete(id) {
497
+ return this.http.delete(`/api/platform/entry-types/${id}`);
498
+ }
481
499
  };
482
500
 
483
501
  // src/platform/workspaceMembers.ts
@@ -2626,10 +2626,24 @@ declare class APIClientsModule {
2626
2626
 
2627
2627
  /**
2628
2628
  * Entry Types Module - Platform API
2629
- *
2630
- * Read-only access to entry types
2631
2629
  */
2632
2630
 
2631
+ interface EntryTypeCreate {
2632
+ name: string;
2633
+ slug?: string;
2634
+ description?: string;
2635
+ icon?: string;
2636
+ color?: string;
2637
+ sortOrder?: number;
2638
+ }
2639
+ interface EntryTypeUpdate {
2640
+ name?: string;
2641
+ slug?: string;
2642
+ description?: string;
2643
+ icon?: string;
2644
+ color?: string;
2645
+ sortOrder?: number;
2646
+ }
2633
2647
  declare class EntryTypesModule {
2634
2648
  private http;
2635
2649
  constructor(http: HttpClient);
@@ -2641,6 +2655,18 @@ declare class EntryTypesModule {
2641
2655
  * Get a single entry type by ID
2642
2656
  */
2643
2657
  get(id: string): Promise<PlatformEntryType>;
2658
+ /**
2659
+ * Create a new entry type
2660
+ */
2661
+ create(data: EntryTypeCreate): Promise<PlatformEntryType>;
2662
+ /**
2663
+ * Update an entry type
2664
+ */
2665
+ update(id: string, data: EntryTypeUpdate): Promise<PlatformEntryType>;
2666
+ /**
2667
+ * Delete an entry type
2668
+ */
2669
+ delete(id: string): Promise<void>;
2644
2670
  }
2645
2671
 
2646
2672
  /**
@@ -2626,10 +2626,24 @@ declare class APIClientsModule {
2626
2626
 
2627
2627
  /**
2628
2628
  * Entry Types Module - Platform API
2629
- *
2630
- * Read-only access to entry types
2631
2629
  */
2632
2630
 
2631
+ interface EntryTypeCreate {
2632
+ name: string;
2633
+ slug?: string;
2634
+ description?: string;
2635
+ icon?: string;
2636
+ color?: string;
2637
+ sortOrder?: number;
2638
+ }
2639
+ interface EntryTypeUpdate {
2640
+ name?: string;
2641
+ slug?: string;
2642
+ description?: string;
2643
+ icon?: string;
2644
+ color?: string;
2645
+ sortOrder?: number;
2646
+ }
2633
2647
  declare class EntryTypesModule {
2634
2648
  private http;
2635
2649
  constructor(http: HttpClient);
@@ -2641,6 +2655,18 @@ declare class EntryTypesModule {
2641
2655
  * Get a single entry type by ID
2642
2656
  */
2643
2657
  get(id: string): Promise<PlatformEntryType>;
2658
+ /**
2659
+ * Create a new entry type
2660
+ */
2661
+ create(data: EntryTypeCreate): Promise<PlatformEntryType>;
2662
+ /**
2663
+ * Update an entry type
2664
+ */
2665
+ update(id: string, data: EntryTypeUpdate): Promise<PlatformEntryType>;
2666
+ /**
2667
+ * Delete an entry type
2668
+ */
2669
+ delete(id: string): Promise<void>;
2644
2670
  }
2645
2671
 
2646
2672
  /**
package/dist/platform.js CHANGED
@@ -263,6 +263,24 @@ var EntryTypesModule = class {
263
263
  async get(id) {
264
264
  return this.http.get(`/api/platform/entry-types/${id}`);
265
265
  }
266
+ /**
267
+ * Create a new entry type
268
+ */
269
+ async create(data) {
270
+ return this.http.post("/api/platform/entry-types", data);
271
+ }
272
+ /**
273
+ * Update an entry type
274
+ */
275
+ async update(id, data) {
276
+ return this.http.patch(`/api/platform/entry-types/${id}`, data);
277
+ }
278
+ /**
279
+ * Delete an entry type
280
+ */
281
+ async delete(id) {
282
+ return this.http.delete(`/api/platform/entry-types/${id}`);
283
+ }
266
284
  };
267
285
 
268
286
  // src/platform/workspaceMembers.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",