@daocloud-proto/ghippo 0.17.0-rc1 → 0.17.0-rc3

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-rc1",
3
+ "version":"0.17.0-rc3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -84,9 +84,6 @@ export type ResetFooterThemeConfigRequest = {
84
84
  export type ResetFooterThemeConfigResponse = {
85
85
  }
86
86
 
87
- export type GetFooterThemeHTMLRequest = {
88
- }
89
-
90
87
  export class Theme {
91
88
  static GetThemeCSS(req: GetThemeCSSRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
92
89
  return fm.fetchReq<GetThemeCSSRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha1/themes/theme.css?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -112,9 +109,6 @@ export class Theme {
112
109
  static ResetLoginThemeConfig(req: ResetLoginThemeConfigRequest, initReq?: fm.InitReq): Promise<ResetLoginThemeConfigResponse> {
113
110
  return fm.fetchReq<ResetLoginThemeConfigRequest, ResetLoginThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/login_page/reset`, {...initReq, method: "POST"})
114
111
  }
115
- static GetFooterThemeHTML(req: GetFooterThemeHTMLRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
116
- return fm.fetchReq<GetFooterThemeHTMLRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha1/themes/footer-theme.html?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
117
- }
118
112
  static GetFooterThemeConfig(req: GetFooterThemeConfigRequest, initReq?: fm.InitReq): Promise<GetFooterThemeConfigResponse> {
119
113
  return fm.fetchReq<GetFooterThemeConfigRequest, GetFooterThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/footer-theme?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
120
114
  }
@@ -469,6 +469,14 @@ export type ListAvailableSharedResourcesByWorkspaceResponse = {
469
469
  pagination?: Pagination
470
470
  }
471
471
 
472
+ export type MoveWorkspaceRequest = {
473
+ workspaceId?: number
474
+ destFolderId?: 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`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
579
+ }
569
580
  }