@daocloud-proto/ghippo 0.18.0-dev-1 → 0.18.0-dev-2

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.18.0-dev-1",
3
+ "version":"0.18.0-dev-2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -42,6 +42,10 @@ export enum GlobalPermission {
42
42
  CreateRole = "CreateRole",
43
43
  AccountingAndBilling = "AccountingAndBilling",
44
44
  ReportManagement = "ReportManagement",
45
+ GetClient = "GetClient",
46
+ DeleteClient = "DeleteClient",
47
+ UpdateClient = "UpdateClient",
48
+ CreateClient = "CreateClient",
45
49
  }
46
50
 
47
51
  export type UpdateEmailRequest = {
@@ -477,6 +477,25 @@ export type MoveWorkspaceRequest = {
477
477
  export type MoveWorkspaceResponse = {
478
478
  }
479
479
 
480
+ export type MoveWorkspaceFolderListRequest = {
481
+ page?: number
482
+ pageSize?: number
483
+ workspaceId?: number
484
+ folder?: string
485
+ }
486
+
487
+ export type MoveWorkspaceFolderListResponse = {
488
+ items?: MoverWorkspaceFolder[]
489
+ pagination?: Pagination
490
+ }
491
+
492
+ export type MoverWorkspaceFolder = {
493
+ folderId?: number
494
+ folderAlias?: string
495
+ parentId?: number
496
+ parentAlias?: string
497
+ }
498
+
480
499
  export class Workspace {
481
500
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
482
501
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -577,4 +596,7 @@ export class Workspace {
577
596
  static MoveWorkspace(req: MoveWorkspaceRequest, initReq?: fm.InitReq): Promise<MoveWorkspaceResponse> {
578
597
  return fm.fetchReq<MoveWorkspaceRequest, MoveWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/move`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
579
598
  }
599
+ static MoveWorkspaceFolderList(req: MoveWorkspaceFolderListRequest, initReq?: fm.InitReq): Promise<MoveWorkspaceFolderListResponse> {
600
+ return fm.fetchReq<MoveWorkspaceFolderListRequest, MoveWorkspaceFolderListResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/move-folders?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
601
+ }
580
602
  }