@inneropen/marvin-sdk 2.0.0-next.16 → 2.0.0-next.18
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 +9 -0
- package/dist/platform.d.cts +7 -0
- package/dist/platform.d.ts +7 -0
- package/dist/platform.js +9 -0
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -938,6 +938,15 @@ var WorkspacesModule = class {
|
|
|
938
938
|
const url = `/api/admin/groups/${id}${force ? "?force=true" : ""}`;
|
|
939
939
|
await this.http.delete(url);
|
|
940
940
|
}
|
|
941
|
+
/**
|
|
942
|
+
* Export workspace data as JSON (collections, entry types, entries, site config)
|
|
943
|
+
*/
|
|
944
|
+
async export(options) {
|
|
945
|
+
const pretty = options?.pretty ?? true;
|
|
946
|
+
const endpoint = pretty ? "/api/platform/workspace/export/pretty" : "/api/platform/workspace/export";
|
|
947
|
+
const params = options?.includeSystemTypes ? { include_system_types: true } : void 0;
|
|
948
|
+
return this.http.get(endpoint, params);
|
|
949
|
+
}
|
|
941
950
|
/**
|
|
942
951
|
* Get workspace preferences
|
|
943
952
|
*/
|
package/dist/platform.d.cts
CHANGED
|
@@ -3648,6 +3648,13 @@ declare class WorkspacesModule {
|
|
|
3648
3648
|
* Delete a workspace (requires SUPER_ADMIN)
|
|
3649
3649
|
*/
|
|
3650
3650
|
delete(id: string, force?: boolean): Promise<void>;
|
|
3651
|
+
/**
|
|
3652
|
+
* Export workspace data as JSON (collections, entry types, entries, site config)
|
|
3653
|
+
*/
|
|
3654
|
+
export(options?: {
|
|
3655
|
+
includeSystemTypes?: boolean;
|
|
3656
|
+
pretty?: boolean;
|
|
3657
|
+
}): Promise<Record<string, unknown>>;
|
|
3651
3658
|
/**
|
|
3652
3659
|
* Get workspace preferences
|
|
3653
3660
|
*/
|
package/dist/platform.d.ts
CHANGED
|
@@ -3648,6 +3648,13 @@ declare class WorkspacesModule {
|
|
|
3648
3648
|
* Delete a workspace (requires SUPER_ADMIN)
|
|
3649
3649
|
*/
|
|
3650
3650
|
delete(id: string, force?: boolean): Promise<void>;
|
|
3651
|
+
/**
|
|
3652
|
+
* Export workspace data as JSON (collections, entry types, entries, site config)
|
|
3653
|
+
*/
|
|
3654
|
+
export(options?: {
|
|
3655
|
+
includeSystemTypes?: boolean;
|
|
3656
|
+
pretty?: boolean;
|
|
3657
|
+
}): Promise<Record<string, unknown>>;
|
|
3651
3658
|
/**
|
|
3652
3659
|
* Get workspace preferences
|
|
3653
3660
|
*/
|
package/dist/platform.js
CHANGED
|
@@ -493,6 +493,15 @@ var WorkspacesModule = class {
|
|
|
493
493
|
const url = `/api/admin/groups/${id}${force ? "?force=true" : ""}`;
|
|
494
494
|
await this.http.delete(url);
|
|
495
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* Export workspace data as JSON (collections, entry types, entries, site config)
|
|
498
|
+
*/
|
|
499
|
+
async export(options) {
|
|
500
|
+
const pretty = options?.pretty ?? true;
|
|
501
|
+
const endpoint = pretty ? "/api/platform/workspace/export/pretty" : "/api/platform/workspace/export";
|
|
502
|
+
const params = options?.includeSystemTypes ? { include_system_types: true } : void 0;
|
|
503
|
+
return this.http.get(endpoint, params);
|
|
504
|
+
}
|
|
496
505
|
/**
|
|
497
506
|
* Get workspace preferences
|
|
498
507
|
*/
|