@daocloud-proto/ghippo 0.17.0-dev-2 → 0.17.0-dev-3
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 +12 -1
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -27,7 +27,15 @@ export type CheckUserRequest = {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type CheckUserResponse = {
|
|
30
|
-
|
|
30
|
+
existed?: boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type CheckUserEmailRequest = {
|
|
34
|
+
username?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type CheckUserEmailResponse = {
|
|
38
|
+
existed?: boolean
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export type GetUserRequest = {
|
|
@@ -198,6 +206,9 @@ export class Users {
|
|
|
198
206
|
static CheckUser(req: CheckUserRequest, initReq?: fm.InitReq): Promise<CheckUserResponse> {
|
|
199
207
|
return fm.fetchReq<CheckUserRequest, CheckUserResponse>(`/apis/ghippo.io/v1alpha1/users/check/${req["username"]}?${fm.renderURLSearchParams(req, ["username"])}`, {...initReq, method: "GET"})
|
|
200
208
|
}
|
|
209
|
+
static CheckUserEmail(req: CheckUserEmailRequest, initReq?: fm.InitReq): Promise<CheckUserEmailResponse> {
|
|
210
|
+
return fm.fetchReq<CheckUserEmailRequest, CheckUserEmailResponse>(`/apis/ghippo.io/v1alpha1/users/check-user-email/${req["username"]}?${fm.renderURLSearchParams(req, ["username"])}`, {...initReq, method: "GET"})
|
|
211
|
+
}
|
|
201
212
|
static GetUser(req: GetUserRequest, initReq?: fm.InitReq): Promise<GetUserResponse> {
|
|
202
213
|
return fm.fetchReq<GetUserRequest, GetUserResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
203
214
|
}
|