@daocloud-proto/ghippo 0.17.0-dev-9 → 0.17.0-dev-10
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 +1 -1
- package/v1alpha1/workspace.pb.ts +11 -0
package/package.json
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -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
|
}
|