Skip to content

Commit 06c9d9c

Browse files
Remove unused field selections from BulkOperation GraphQL documents
1 parent 4c19852 commit 06c9d9c

File tree

6 files changed

+1
-36
lines changed

6 files changed

+1
-36
lines changed

packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-mutation.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ export type BulkOperationRunMutationMutation = {
1515
completedAt?: unknown | null
1616
createdAt: unknown
1717
errorCode?: Types.BulkOperationErrorCode | null
18-
fileSize?: unknown | null
1918
id: string
2019
objectCount: unknown
2120
partialDataUrl?: string | null
22-
query: string
23-
rootObjectCount: unknown
2421
status: Types.BulkOperationStatus
25-
type: Types.BulkOperationType
2622
url?: string | null
2723
} | null
2824
userErrors: {code?: Types.BulkMutationErrorCode | null; field?: string[] | null; message: string}[]
@@ -88,14 +84,10 @@ export const BulkOperationRunMutation = {
8884
{kind: 'Field', name: {kind: 'Name', value: 'completedAt'}},
8985
{kind: 'Field', name: {kind: 'Name', value: 'createdAt'}},
9086
{kind: 'Field', name: {kind: 'Name', value: 'errorCode'}},
91-
{kind: 'Field', name: {kind: 'Name', value: 'fileSize'}},
9287
{kind: 'Field', name: {kind: 'Name', value: 'id'}},
9388
{kind: 'Field', name: {kind: 'Name', value: 'objectCount'}},
9489
{kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}},
95-
{kind: 'Field', name: {kind: 'Name', value: 'query'}},
96-
{kind: 'Field', name: {kind: 'Name', value: 'rootObjectCount'}},
9790
{kind: 'Field', name: {kind: 'Name', value: 'status'}},
98-
{kind: 'Field', name: {kind: 'Name', value: 'type'}},
9991
{kind: 'Field', name: {kind: 'Name', value: 'url'}},
10092
{kind: 'Field', name: {kind: 'Name', value: '__typename'}},
10193
],

packages/app/src/cli/api/graphql/bulk-operations/generated/bulk-operation-run-query.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ export type BulkOperationRunQueryMutation = {
1313
completedAt?: unknown | null
1414
createdAt: unknown
1515
errorCode?: Types.BulkOperationErrorCode | null
16-
fileSize?: unknown | null
1716
id: string
1817
objectCount: unknown
1918
partialDataUrl?: string | null
20-
query: string
21-
rootObjectCount: unknown
2219
status: Types.BulkOperationStatus
23-
type: Types.BulkOperationType
2420
url?: string | null
2521
} | null
2622
userErrors: {code?: Types.BulkOperationUserErrorCode | null; field?: string[] | null; message: string}[]
@@ -71,14 +67,10 @@ export const BulkOperationRunQuery = {
7167
{kind: 'Field', name: {kind: 'Name', value: 'completedAt'}},
7268
{kind: 'Field', name: {kind: 'Name', value: 'createdAt'}},
7369
{kind: 'Field', name: {kind: 'Name', value: 'errorCode'}},
74-
{kind: 'Field', name: {kind: 'Name', value: 'fileSize'}},
7570
{kind: 'Field', name: {kind: 'Name', value: 'id'}},
7671
{kind: 'Field', name: {kind: 'Name', value: 'objectCount'}},
7772
{kind: 'Field', name: {kind: 'Name', value: 'partialDataUrl'}},
78-
{kind: 'Field', name: {kind: 'Name', value: 'query'}},
79-
{kind: 'Field', name: {kind: 'Name', value: 'rootObjectCount'}},
8073
{kind: 'Field', name: {kind: 'Name', value: 'status'}},
81-
{kind: 'Field', name: {kind: 'Name', value: 'type'}},
8274
{kind: 'Field', name: {kind: 'Name', value: 'url'}},
8375
{kind: 'Field', name: {kind: 'Name', value: '__typename'}},
8476
],

packages/app/src/cli/api/graphql/bulk-operations/generated/types.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,6 @@ export type BulkOperationStatus =
188188
/** The bulk operation is runnning. */
189189
| 'RUNNING'
190190

191-
/** The valid values for the bulk operation's type. */
192-
export type BulkOperationType =
193-
/** The bulk operation is a mutation. */
194-
| 'MUTATION'
195-
/** The bulk operation is a query. */
196-
| 'QUERY'
197-
198191
/** Possible error codes that can be returned by `BulkOperationUserError`. */
199192
export type BulkOperationUserErrorCode =
200193
/** The input value is invalid. */

packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-mutation.graphql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ mutation BulkOperationRunMutation(
1212
completedAt
1313
createdAt
1414
errorCode
15-
fileSize
1615
id
1716
objectCount
1817
partialDataUrl
19-
query
20-
rootObjectCount
2118
status
22-
type
2319
url
2420
}
2521
userErrors {

packages/app/src/cli/api/graphql/bulk-operations/mutations/bulk-operation-run-query.graphql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ mutation BulkOperationRunQuery($query: String!) {
88
completedAt
99
createdAt
1010
errorCode
11-
fileSize
1211
id
1312
objectCount
1413
partialDataUrl
15-
query
16-
rootObjectCount
1714
status
18-
type
1915
url
2016
}
2117
userErrors {

packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,9 @@ describe('executeBulkOperation', () => {
3232
status: 'CREATED',
3333
errorCode: null,
3434
createdAt: '2024-01-01T00:00:00Z',
35+
completedAt: null,
3536
objectCount: '0',
36-
fileSize: '0',
3737
url: null,
38-
query: '{ products { edges { node { id } } } }',
39-
rootObjectCount: '0',
40-
type: 'QUERY',
41-
completedAt: null,
4238
partialDataUrl: null,
4339
}
4440

0 commit comments

Comments
 (0)