mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: add query quota of workspace (#5603)
This commit is contained in:
@@ -880,3 +880,20 @@ mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!, $send
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const workspaceQuotaQuery = {
|
||||
id: 'workspaceQuotaQuery' as const,
|
||||
operationName: 'workspaceQuota',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query workspaceQuota($id: String!) {
|
||||
workspace(id: $id) {
|
||||
quota {
|
||||
storageQuota
|
||||
usedSize
|
||||
blobLimit
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
query workspaceQuota($id: String!) {
|
||||
workspace(id: $id) {
|
||||
quota {
|
||||
storageQuota
|
||||
usedSize
|
||||
blobLimit
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -827,6 +827,23 @@ export type AcceptInviteByInviteIdMutation = {
|
||||
acceptInviteById: boolean;
|
||||
};
|
||||
|
||||
export type WorkspaceQuotaQueryVariables = Exact<{
|
||||
id: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type WorkspaceQuotaQuery = {
|
||||
__typename?: 'Query';
|
||||
workspace: {
|
||||
__typename?: 'WorkspaceType';
|
||||
quota: {
|
||||
__typename?: 'QuotaQueryType';
|
||||
storageQuota: number;
|
||||
usedSize: number;
|
||||
blobLimit: number;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type Queries =
|
||||
| {
|
||||
name: 'checkBlobSizesQuery';
|
||||
@@ -957,6 +974,11 @@ export type Queries =
|
||||
name: 'listWorkspaceFeaturesQuery';
|
||||
variables: ListWorkspaceFeaturesQueryVariables;
|
||||
response: ListWorkspaceFeaturesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'workspaceQuotaQuery';
|
||||
variables: WorkspaceQuotaQueryVariables;
|
||||
response: WorkspaceQuotaQuery;
|
||||
};
|
||||
|
||||
export type Mutations =
|
||||
|
||||
Reference in New Issue
Block a user