@daocloud-proto/ghippo 0.50.0-dev5 → 0.50.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.50.0-dev5",
3
+ "version":"0.50.0-dev6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -256,10 +256,25 @@ export type Account = {
256
256
  hasSubAccount?: boolean
257
257
  }
258
258
 
259
+ export type GetAccountInfoRequest = {
260
+ accountId?: string
261
+ }
262
+
263
+ export type GetAccountInfoResponse = {
264
+ isMainAccount?: boolean
265
+ isSubAccount?: boolean
266
+ mainAccountId?: string
267
+ mainAccountName?: string
268
+ mainAccountWorkspace?: string
269
+ }
270
+
259
271
  export class Accounts {
260
272
  static ListAccounts(req: ListAccountsRequest, initReq?: fm.InitReq): Promise<ListAccountsResponse> {
261
273
  return fm.fetchReq<ListAccountsRequest, ListAccountsResponse>(`/v1alpha1.account.Accounts/ListAccounts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
262
274
  }
275
+ static GetAccountInfo(req: GetAccountInfoRequest, initReq?: fm.InitReq): Promise<GetAccountInfoResponse> {
276
+ return fm.fetchReq<GetAccountInfoRequest, GetAccountInfoResponse>(`/v1alpha1.account.Accounts/GetAccountInfo`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
277
+ }
263
278
  static TransferToMainAccount(req: TransferToMainAccountRequest, initReq?: fm.InitReq): Promise<TransferToMainAccountResponse> {
264
279
  return fm.fetchReq<TransferToMainAccountRequest, TransferToMainAccountResponse>(`/apis/ghippo.io/v1alpha1/accounts/transfer-main`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
265
280
  }