@daocloud-proto/ghippo 0.9.0 → 0.9.1
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/loginpage.pb.ts +9 -0
- package/v1alpha1/workspace.pb.ts +49 -0
package/package.json
CHANGED
package/v1alpha1/loginpage.pb.ts
CHANGED
|
@@ -35,6 +35,12 @@ export type UpdateLoginPageInfoRequest = {
|
|
|
35
35
|
export type UpdateLoginPageInfoResponse = {
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export type ResetLoginPageInfoRequest = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ResetLoginPageInfoResponse = {
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
export class LoginPage {
|
|
39
45
|
static GetInfo(req: GetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<GetLoginPageInfoResponse> {
|
|
40
46
|
return fm.fetchReq<GetLoginPageInfoRequest, GetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -45,4 +51,7 @@ export class LoginPage {
|
|
|
45
51
|
static UpdateInfo(req: UpdateLoginPageInfoRequest, initReq?: fm.InitReq): Promise<UpdateLoginPageInfoResponse> {
|
|
46
52
|
return fm.fetchReq<UpdateLoginPageInfoRequest, UpdateLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
47
53
|
}
|
|
54
|
+
static ResetInfo(req: ResetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<ResetLoginPageInfoResponse> {
|
|
55
|
+
return fm.fetchReq<ResetLoginPageInfoRequest, ResetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/reset`, {...initReq, method: "POST"})
|
|
56
|
+
}
|
|
48
57
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -357,6 +357,49 @@ export type BindSharedResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
|
357
357
|
export type BindSharedResourceAndSetQuotaHardToWorkspaceResponse = {
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
+
export type FolderListUsersRequest = {
|
|
361
|
+
search?: string
|
|
362
|
+
pageSize?: number
|
|
363
|
+
page?: number
|
|
364
|
+
folderId?: number
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export type FolderListUsersResponse = {
|
|
368
|
+
items?: User[]
|
|
369
|
+
pagination?: Pagination
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type User = {
|
|
373
|
+
id?: string
|
|
374
|
+
name?: string
|
|
375
|
+
email?: string
|
|
376
|
+
description?: string
|
|
377
|
+
firstname?: string
|
|
378
|
+
lastname?: string
|
|
379
|
+
source?: string
|
|
380
|
+
enabled?: boolean
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type FolderListGroupsRequest = {
|
|
384
|
+
search?: string
|
|
385
|
+
page?: number
|
|
386
|
+
pageSize?: number
|
|
387
|
+
folderId?: number
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type FolderListGroupsResponse = {
|
|
391
|
+
items?: Group[]
|
|
392
|
+
pagination?: Pagination
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type Group = {
|
|
396
|
+
id?: string
|
|
397
|
+
name?: string
|
|
398
|
+
userCount?: number
|
|
399
|
+
description?: string
|
|
400
|
+
createdAt?: string
|
|
401
|
+
}
|
|
402
|
+
|
|
360
403
|
export class Workspace {
|
|
361
404
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
362
405
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -442,4 +485,10 @@ export class Workspace {
|
|
|
442
485
|
static UpdateQuotaCheck(req: UpdateQuotaCheckRequest, initReq?: fm.InitReq): Promise<UpdateQuotaCheckResponse> {
|
|
443
486
|
return fm.fetchReq<UpdateQuotaCheckRequest, UpdateQuotaCheckResponse>(`/apis/ghippo.io/v1alpha1/update-quota-check`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
444
487
|
}
|
|
488
|
+
static FolderListUsers(req: FolderListUsersRequest, initReq?: fm.InitReq): Promise<FolderListUsersResponse> {
|
|
489
|
+
return fm.fetchReq<FolderListUsersRequest, FolderListUsersResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/users?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
490
|
+
}
|
|
491
|
+
static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
|
|
492
|
+
return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
493
|
+
}
|
|
445
494
|
}
|