feat: blob size api (#4060)

This commit is contained in:
DarkSky authored and GitHub committed 2023-08-31 16:39:19 +08:00
1 parent cc00da9325
commit 0add43f8db
9 files changed
+335 -295

No files matched your search

@@ -0,0 +1,5 @@
query blobSizes($workspaceId: String!) {
collectBlobSizes(workspaceId: $workspaceId) {
size
}
}
+13
View File
@@ -40,6 +40,19 @@ mutation setBlob($workspaceId: String!, $blob: Upload!) {
}`,
};
export const blobSizesQuery = {
id: 'blobSizesQuery' as const,
operationName: 'blobSizes',
definitionName: 'collectBlobSizes',
containsFile: false,
query: `
query blobSizes($workspaceId: String!) {
collectBlobSizes(workspaceId: $workspaceId) {
size
}
}`,
};
export const changeEmailMutation = {
id: 'changeEmailMutation' as const,
operationName: 'changeEmail',
+14
View File
@@ -73,6 +73,15 @@ export type SetBlobMutationVariables = Exact<{
export type SetBlobMutation = { __typename?: 'Mutation'; setBlob: string };
export type BlobSizesQueryVariables = Exact<{
workspaceId: Scalars['String']['input'];
}>;
export type BlobSizesQuery = {
__typename?: 'Query';
collectBlobSizes: { __typename?: 'WorkspaceBlobSizes'; size: number };
};
export type ChangeEmailMutationVariables = Exact<{
id: Scalars['String']['input'];
newEmail: Scalars['String']['input'];
@@ -434,6 +443,11 @@ export type Queries =
variables: ListBlobsQueryVariables;
response: ListBlobsQuery;
}
| {
name: 'blobSizesQuery';
variables: BlobSizesQueryVariables;
response: BlobSizesQuery;
}
| {
name: 'getCurrentUserQuery';
variables: GetCurrentUserQueryVariables;