@daocloud-proto/ghippo 0.45.1 → 0.46.0-dev0
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/group.pb.ts +2 -0
- package/v1alpha1/role.pb.ts +6 -0
- package/v1alpha1/user.pb.ts +15 -0
- package/v1alpha1/workspace.pb.ts +4 -0
package/package.json
CHANGED
package/v1alpha1/group.pb.ts
CHANGED
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -216,6 +216,8 @@ export type Member = {
|
|
|
216
216
|
id?: string
|
|
217
217
|
name?: string
|
|
218
218
|
type?: string
|
|
219
|
+
firstname?: string
|
|
220
|
+
lastname?: string
|
|
219
221
|
}
|
|
220
222
|
|
|
221
223
|
export type ListMembersFoldersByFolderRoleRequest = {
|
|
@@ -236,6 +238,8 @@ export type MemberFolder = {
|
|
|
236
238
|
folderId?: number
|
|
237
239
|
folderAlias?: string
|
|
238
240
|
memberId?: string
|
|
241
|
+
firstname?: string
|
|
242
|
+
lastname?: string
|
|
239
243
|
}
|
|
240
244
|
|
|
241
245
|
export type ListMembersWorkspacesByWorkspaceRoleRequest = {
|
|
@@ -256,6 +260,8 @@ export type MemberWorkspace = {
|
|
|
256
260
|
workspaceId?: number
|
|
257
261
|
workspaceAlias?: string
|
|
258
262
|
memberId?: string
|
|
263
|
+
firstname?: string
|
|
264
|
+
lastname?: string
|
|
259
265
|
}
|
|
260
266
|
|
|
261
267
|
export type CheckRoleNameRequest = {
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -275,6 +275,18 @@ export type UpdateUserCertifyRequest = {
|
|
|
275
275
|
export type UpdateUserCertifyResponse = {
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
export type ListUsersByAttributeAndSearchRequest = {
|
|
279
|
+
attribute?: {[key: string]: string}
|
|
280
|
+
search?: string
|
|
281
|
+
page?: number
|
|
282
|
+
pageSize?: number
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type ListUsersByAttributeAndSearchResponse = {
|
|
286
|
+
pagination?: Pagination
|
|
287
|
+
items?: GetUserResponse[]
|
|
288
|
+
}
|
|
289
|
+
|
|
278
290
|
export class Users {
|
|
279
291
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
280
292
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -342,4 +354,7 @@ export class Users {
|
|
|
342
354
|
static GetUserCertifyInfo(req: GetUserCertifyInfoRequest, initReq?: fm.InitReq): Promise<GetUserCertifyInfoResponse> {
|
|
343
355
|
return fm.fetchReq<GetUserCertifyInfoRequest, GetUserCertifyInfoResponse>(`/v1alpha1.user.Users/GetUserCertifyInfo`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
344
356
|
}
|
|
357
|
+
static ListUsersByAttributeAndSearch(req: ListUsersByAttributeAndSearchRequest, initReq?: fm.InitReq): Promise<ListUsersByAttributeAndSearchResponse> {
|
|
358
|
+
return fm.fetchReq<ListUsersByAttributeAndSearchRequest, ListUsersByAttributeAndSearchResponse>(`/v1alpha1.user.Users/ListUsersByAttributeAndSearch`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
359
|
+
}
|
|
345
360
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -165,6 +165,8 @@ export type MemberRoleWorkspaceInfo = {
|
|
|
165
165
|
roleName?: string
|
|
166
166
|
workspaceId?: number
|
|
167
167
|
memberId?: string
|
|
168
|
+
firstname?: string
|
|
169
|
+
lastname?: string
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
export type ListMembersRolesByWorkspaceRequest = {
|
|
@@ -287,6 +289,8 @@ export type MemberRoleFolderInfo = {
|
|
|
287
289
|
roleName?: string
|
|
288
290
|
folderId?: number
|
|
289
291
|
memberId?: string
|
|
292
|
+
firstname?: string
|
|
293
|
+
lastname?: string
|
|
290
294
|
}
|
|
291
295
|
|
|
292
296
|
export type ListMembersRolesByFolderRequest = {
|