@daocloud-proto/ghippo 0.42.0-dev2 → 0.42.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
CHANGED
package/v1alpha1/account.pb.ts
CHANGED
|
@@ -192,6 +192,10 @@ export type CheckSubAccountResponse = {
|
|
|
192
192
|
isSubAccount?: boolean
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
export type GetSubAccountByUsernameRequest = {
|
|
196
|
+
username?: string
|
|
197
|
+
}
|
|
198
|
+
|
|
195
199
|
export class Accounts {
|
|
196
200
|
static TransferToMainAccount(req: TransferToMainAccountRequest, initReq?: fm.InitReq): Promise<TransferToMainAccountResponse> {
|
|
197
201
|
return fm.fetchReq<TransferToMainAccountRequest, TransferToMainAccountResponse>(`/apis/ghippo.io/v1alpha1/accounts/transfer-main`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -202,6 +206,9 @@ export class Accounts {
|
|
|
202
206
|
static CheckSubAccount(req: CheckSubAccountRequest, initReq?: fm.InitReq): Promise<CheckSubAccountResponse> {
|
|
203
207
|
return fm.fetchReq<CheckSubAccountRequest, CheckSubAccountResponse>(`/v1alpha1.account.Accounts/CheckSubAccount`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
204
208
|
}
|
|
209
|
+
static GetSubAccountByUsername(req: GetSubAccountByUsernameRequest, initReq?: fm.InitReq): Promise<GetSubAccountResponse> {
|
|
210
|
+
return fm.fetchReq<GetSubAccountByUsernameRequest, GetSubAccountResponse>(`/v1alpha1.account.Accounts/GetSubAccountByUsername`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
211
|
+
}
|
|
205
212
|
static GetSubAccount(req: GetSubAccountRequest, initReq?: fm.InitReq): Promise<GetSubAccountResponse> {
|
|
206
213
|
return fm.fetchReq<GetSubAccountRequest, GetSubAccountResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
207
214
|
}
|