@daocloud-proto/ghippo 0.17.0-dev-9 → 0.17.0-dev-11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.17.0-dev-9",
3
+ "version":"0.17.0-dev-11",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -469,6 +469,14 @@ export type ListAvailableSharedResourcesByWorkspaceResponse = {
469
469
  pagination?: Pagination
470
470
  }
471
471
 
472
+ export type MoveWorkspaceRequest = {
473
+ workspaceId?: number
474
+ destFoldId?: number
475
+ }
476
+
477
+ export type MoveWorkspaceResponse = {
478
+ }
479
+
472
480
  export class Workspace {
473
481
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
474
482
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -566,4 +574,7 @@ export class Workspace {
566
574
  static FolderListPermissions(req: FolderListPermissionsRequest, initReq?: fm.InitReq): Promise<FolderListPermissionsResponse> {
567
575
  return fm.fetchReq<FolderListPermissionsRequest, FolderListPermissionsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/permissions?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
568
576
  }
577
+ static MoveWorkspace(req: MoveWorkspaceRequest, initReq?: fm.InitReq): Promise<MoveWorkspaceResponse> {
578
+ return fm.fetchReq<MoveWorkspaceRequest, MoveWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/move?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
579
+ }
569
580
  }