@daocloud-proto/ghippo 0.36.0-dev1 → 0.36.0-dev3
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 +20 -0
package/package.json
CHANGED
|
@@ -55,6 +55,12 @@ export enum GlobalPermission {
|
|
|
55
55
|
UpdateBillingSetting = "UpdateBillingSetting",
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export enum CertifySubject {
|
|
59
|
+
Individual = "Individual",
|
|
60
|
+
Enterprise = "Enterprise",
|
|
61
|
+
College = "College",
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
export enum CertifyType {
|
|
59
65
|
AliPay = "AliPay",
|
|
60
66
|
WeChat = "WeChat",
|
|
@@ -197,6 +203,7 @@ export type GetCertifyInfoResponse = {
|
|
|
197
203
|
certName?: string
|
|
198
204
|
certNo?: string
|
|
199
205
|
certTime?: string
|
|
206
|
+
subject?: CertifySubject
|
|
200
207
|
}
|
|
201
208
|
|
|
202
209
|
export type CertifyInitRequest = {
|
|
@@ -218,6 +225,16 @@ export type CertifyCheckResponse = {
|
|
|
218
225
|
passed?: boolean
|
|
219
226
|
}
|
|
220
227
|
|
|
228
|
+
export type CertifyUpdateRequest = {
|
|
229
|
+
userId?: string
|
|
230
|
+
certName?: string
|
|
231
|
+
certNo?: string
|
|
232
|
+
subject?: CertifySubject
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type CertifyUpdateResponse = {
|
|
236
|
+
}
|
|
237
|
+
|
|
221
238
|
export class Account {
|
|
222
239
|
static UpdateEmail(req: UpdateEmailRequest, initReq?: fm.InitReq): Promise<UpdateEmailResponse> {
|
|
223
240
|
return fm.fetchReq<UpdateEmailRequest, UpdateEmailResponse>(`/apis/ghippo.io/v1alpha1/current-user/email`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -270,4 +287,7 @@ export class Account {
|
|
|
270
287
|
static CertifyCheck(req: CertifyCheckRequest, initReq?: fm.InitReq): Promise<CertifyCheckResponse> {
|
|
271
288
|
return fm.fetchReq<CertifyCheckRequest, CertifyCheckResponse>(`/apis/ghippo.io/v1alpha1/current-user/certify/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
272
289
|
}
|
|
290
|
+
static CertifyUpdate(req: CertifyUpdateRequest, initReq?: fm.InitReq): Promise<CertifyUpdateResponse> {
|
|
291
|
+
return fm.fetchReq<CertifyUpdateRequest, CertifyUpdateResponse>(`/apis/ghippo.io/v1alpha1/current-user/certify`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
292
|
+
}
|
|
273
293
|
}
|