From 06c9d9cf7c8afc6c4125e9e15629959ac101e94b Mon Sep 17 00:00:00 2001 From: Jordan Verasamy Date: Fri, 21 Nov 2025 15:44:23 -0800 Subject: [PATCH] Remove unused field selections from `BulkOperation` GraphQL documents --- .../generated/bulk-operation-run-mutation.ts | 8 -------- .../bulk-operations/generated/bulk-operation-run-query.ts | 8 -------- .../cli/api/graphql/bulk-operations/generated/types.d.ts | 7 ------- .../mutations/bulk-operation-run-mutation.graphql | 4 ---- .../mutations/bulk-operation-run-query.graphql | 4 ---- .../bulk-operations/execute-bulk-operation.test.ts | 6 +----- 6 files changed, 1 insertion(+), 36 deletions(-) diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts index eed7f4565c..b282c6e3f7 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts @@ -15,14 +15,10 @@ export type BulkOperationRunMutationMutation = { completedAt?: unknown | null createdAt: unknown errorCode?: Types.BulkOperationErrorCode | null - fileSize?: unknown | null id: string objectCount: unknown partialDataUrl?: string | null - query: string - rootObjectCount: unknown status: Types.BulkOperationStatus - type: Types.BulkOperationType url?: string | null } | null userErrors: {code?: Types.BulkMutationErrorCode | null; field?: string[] | null; message: string}[] @@ -88,14 +84,10 @@ export const BulkOperationRunMutation = { {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'fileSize'}}, {kind: 'Field', name: {kind: 'Name', value: 'id'}}, {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'query'}}, - {kind: 'Field', name: {kind: 'Name', value: 'rootObjectCount'}}, {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, {kind: 'Field', name: {kind: 'Name', value: 'url'}}, {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, ], diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts index 377935b76b..236889a0bf 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts @@ -13,14 +13,10 @@ export type BulkOperationRunQueryMutation = { completedAt?: unknown | null createdAt: unknown errorCode?: Types.BulkOperationErrorCode | null - fileSize?: unknown | null id: string objectCount: unknown partialDataUrl?: string | null - query: string - rootObjectCount: unknown status: Types.BulkOperationStatus - type: Types.BulkOperationType url?: string | null } | null userErrors: {code?: Types.BulkOperationUserErrorCode | null; field?: string[] | null; message: string}[] @@ -71,14 +67,10 @@ export const BulkOperationRunQuery = { {kind: 'Field', name: {kind: 'Name', value: 'completedAt'}}, {kind: 'Field', name: {kind: 'Name', value: 'createdAt'}}, {kind: 'Field', name: {kind: 'Name', value: 'errorCode'}}, - {kind: 'Field', name: {kind: 'Name', value: 'fileSize'}}, {kind: 'Field', name: {kind: 'Name', value: 'id'}}, {kind: 'Field', name: {kind: 'Name', value: 'objectCount'}}, {kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}}, - {kind: 'Field', name: {kind: 'Name', value: 'query'}}, - {kind: 'Field', name: {kind: 'Name', value: 'rootObjectCount'}}, {kind: 'Field', name: {kind: 'Name', value: 'status'}}, - {kind: 'Field', name: {kind: 'Name', value: 'type'}}, {kind: 'Field', name: {kind: 'Name', value: 'url'}}, {kind: 'Field', name: {kind: 'Name', value: '__typename'}}, ], diff --git a/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts b/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts index f7f5a8bf84..95a968443c 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts +++ b/packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts @@ -188,13 +188,6 @@ export type BulkOperationStatus = /** The bulk operation is runnning. */ | 'RUNNING' -/** The valid values for the bulk operation's type. */ -export type BulkOperationType = - /** The bulk operation is a mutation. */ - | 'MUTATION' - /** The bulk operation is a query. */ - | 'QUERY' - /** Possible error codes that can be returned by `BulkOperationUserError`. */ export type BulkOperationUserErrorCode = /** The input value is invalid. */ diff --git a/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-mutation.graphql b/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-mutation.graphql index f6027b4635..a0d58086e0 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-mutation.graphql +++ b/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-mutation.graphql @@ -12,14 +12,10 @@ mutation BulkOperationRunMutation( completedAt createdAt errorCode - fileSize id objectCount partialDataUrl - query - rootObjectCount status - type url } userErrors { diff --git a/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-query.graphql b/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-query.graphql index ea15a58766..61650c51c5 100644 --- a/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-query.graphql +++ b/packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-query.graphql @@ -8,14 +8,10 @@ mutation BulkOperationRunQuery($query: String!) { completedAt createdAt errorCode - fileSize id objectCount partialDataUrl - query - rootObjectCount status - type url } userErrors { diff --git a/packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts b/packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts index 66266963dc..add0a84564 100644 --- a/packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts +++ b/packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts @@ -32,13 +32,9 @@ describe('executeBulkOperation', () => { status: 'CREATED', errorCode: null, createdAt: '2024-01-01T00:00:00Z', + completedAt: null, objectCount: '0', - fileSize: '0', url: null, - query: '{ products { edges { node { id } } } }', - rootObjectCount: '0', - type: 'QUERY', - completedAt: null, partialDataUrl: null, }