feat: use SafeInt replace Float (#5613)

This commit is contained in:
DarkSky
2024-01-17 12:36:21 +00:00
parent b9f20877d0
commit ee8ec47a4f
11 changed files with 40 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
query checkBlobSizes($workspaceId: String!, $size: Float!) {
query checkBlobSizes($workspaceId: String!, $size: SafeInt!) {
checkBlobSize(workspaceId: $workspaceId, size: $size) {
size
}

View File

@@ -13,7 +13,7 @@ export const checkBlobSizesQuery = {
definitionName: 'checkBlobSize',
containsFile: false,
query: `
query checkBlobSizes($workspaceId: String!, $size: Float!) {
query checkBlobSizes($workspaceId: String!, $size: SafeInt!) {
checkBlobSize(workspaceId: $workspaceId, size: $size) {
size
}

View File

@@ -28,6 +28,8 @@ export interface Scalars {
Float: { input: number; output: number };
/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
DateTime: { input: string; output: string };
/** The `SafeInt` scalar type represents non-fractional signed whole numeric values that are considered safe as defined by the ECMAScript specification. */
SafeInt: { input: number; output: number };
/** The `Upload` scalar type represents a file upload. */
Upload: { input: File; output: File };
}
@@ -93,7 +95,7 @@ export interface UpdateWorkspaceInput {
export type CheckBlobSizesQueryVariables = Exact<{
workspaceId: Scalars['String']['input'];
size: Scalars['Float']['input'];
size: Scalars['SafeInt']['input'];
}>;
export type CheckBlobSizesQuery = {