@daocloud-proto/ghippo 0.45.0-dev5 → 0.45.0-dev6
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/user.pb.ts +15 -0
package/package.json
CHANGED
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
|
}
|