@daocloud-proto/ghippo 0.44.0-rc3 → 0.45.0-dev1
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/currentuser.pb.ts +33 -0
package/package.json
CHANGED
|
@@ -251,6 +251,33 @@ export type UpdatePhoneRequest = {
|
|
|
251
251
|
export type UpdatePhoneResponse = {
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
export type InitInviteCodeRequest = {
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type InitInviteCodeResponse = {
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type ListInvitedUsersRequest = {
|
|
261
|
+
pageSize?: number
|
|
262
|
+
page?: number
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type Pagination = {
|
|
266
|
+
total?: number
|
|
267
|
+
page?: number
|
|
268
|
+
pageSize?: number
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type ListInvitedUsersResponse = {
|
|
272
|
+
items?: InvitedUser[]
|
|
273
|
+
pagination?: Pagination
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type InvitedUser = {
|
|
277
|
+
username?: string
|
|
278
|
+
registerAt?: string
|
|
279
|
+
}
|
|
280
|
+
|
|
254
281
|
export class Account {
|
|
255
282
|
static UpdateEmail(req: UpdateEmailRequest, initReq?: fm.InitReq): Promise<UpdateEmailResponse> {
|
|
256
283
|
return fm.fetchReq<UpdateEmailRequest, UpdateEmailResponse>(`/apis/ghippo.io/v1alpha1/current-user/email`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -309,4 +336,10 @@ export class Account {
|
|
|
309
336
|
static UpdatePhone(req: UpdatePhoneRequest, initReq?: fm.InitReq): Promise<UpdatePhoneResponse> {
|
|
310
337
|
return fm.fetchReq<UpdatePhoneRequest, UpdatePhoneResponse>(`/apis/ghippo.io/v1alpha1/current-user/phone`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
311
338
|
}
|
|
339
|
+
static InitInviteCode(req: InitInviteCodeRequest, initReq?: fm.InitReq): Promise<InitInviteCodeResponse> {
|
|
340
|
+
return fm.fetchReq<InitInviteCodeRequest, InitInviteCodeResponse>(`/v1alpha1.currentuser.Account/InitInviteCode`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
341
|
+
}
|
|
342
|
+
static ListInvitedUsers(req: ListInvitedUsersRequest, initReq?: fm.InitReq): Promise<ListInvitedUsersResponse> {
|
|
343
|
+
return fm.fetchReq<ListInvitedUsersRequest, ListInvitedUsersResponse>(`/v1alpha1.currentuser.Account/ListInvitedUsers`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
344
|
+
}
|
|
312
345
|
}
|