feat: add query quota of workspace (#5603)

This commit is contained in:
DarkSky
2024-01-16 09:45:55 +00:00
parent 4f4d057aad
commit ee2520ec18
9 changed files with 98 additions and 14 deletions
@@ -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
}
}
}