@daocloud-proto/ghippo 0.50.0-dev4 → 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 +1 -1
- package/v1alpha1/account.pb.ts +15 -0
- package/v1alpha1/workspace.pb.ts +10 -0
package/package.json
CHANGED
package/v1alpha1/account.pb.ts
CHANGED
|
@@ -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
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
|
|
9
|
+
export enum UserOriginType {
|
|
10
|
+
UserOriginUnknown = "UserOriginUnknown",
|
|
11
|
+
UserOriginPlatform = "UserOriginPlatform",
|
|
12
|
+
UserOriginFolder = "UserOriginFolder",
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
export enum FolderPermission {
|
|
10
16
|
Unknown = "Unknown",
|
|
11
17
|
CreateFolder = "CreateFolder",
|
|
@@ -170,6 +176,8 @@ export type MemberRoleWorkspaceInfo = {
|
|
|
170
176
|
firstname?: string
|
|
171
177
|
lastname?: string
|
|
172
178
|
canDelete?: boolean
|
|
179
|
+
userOriginType?: UserOriginType
|
|
180
|
+
userOriginName?: string
|
|
173
181
|
}
|
|
174
182
|
|
|
175
183
|
export type ListMembersRolesByWorkspaceRequest = {
|
|
@@ -295,6 +303,8 @@ export type MemberRoleFolderInfo = {
|
|
|
295
303
|
firstname?: string
|
|
296
304
|
lastname?: string
|
|
297
305
|
canDelete?: boolean
|
|
306
|
+
userOriginType?: UserOriginType
|
|
307
|
+
userOriginName?: string
|
|
298
308
|
}
|
|
299
309
|
|
|
300
310
|
export type ListMembersRolesByFolderRequest = {
|