@constructive-io/graphql-codegen 2.28.0 → 2.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -333,7 +333,6 @@ function buildDeleteMutationAST(config) {
333
333
  selectionSet: t.selectionSet({
334
334
  selections: [
335
335
  t.field({ name: 'clientMutationId' }),
336
- t.field({ name: 'deletedId' }),
337
336
  ],
338
337
  }),
339
338
  }),
@@ -415,10 +415,9 @@ function generateDeleteMutationHook(table, options = {}) {
415
415
  ]);
416
416
  const variablesInterface = t.tsInterfaceDeclaration(t.identifier(`${(0, utils_1.ucFirst)(mutationName)}MutationVariables`), null, null, variablesInterfaceBody);
417
417
  statements.push(t.exportNamedDeclaration(variablesInterface));
418
- const deletedPkProp = t.tsPropertySignature(t.identifier(`deleted${(0, utils_1.ucFirst)(pkField.name)}`), t.tsTypeAnnotation(t.tsUnionType([pkTypeAnnotation, t.tsNullKeyword()])));
419
418
  const clientMutationIdProp = t.tsPropertySignature(t.identifier('clientMutationId'), t.tsTypeAnnotation(t.tsUnionType([t.tsStringKeyword(), t.tsNullKeyword()])));
420
419
  const resultInterfaceBody = t.tsInterfaceBody([
421
- t.tsPropertySignature(t.identifier(mutationName), t.tsTypeAnnotation(t.tsTypeLiteral([clientMutationIdProp, deletedPkProp]))),
420
+ t.tsPropertySignature(t.identifier(mutationName), t.tsTypeAnnotation(t.tsTypeLiteral([clientMutationIdProp]))),
422
421
  ]);
423
422
  const resultInterface = t.tsInterfaceDeclaration(t.identifier(`${(0, utils_1.ucFirst)(mutationName)}MutationResult`), null, null, resultInterfaceBody);
424
423
  statements.push(t.exportNamedDeclaration(resultInterface));
@@ -292,7 +292,6 @@ export function buildDeleteMutationAST(config) {
292
292
  selectionSet: t.selectionSet({
293
293
  selections: [
294
294
  t.field({ name: 'clientMutationId' }),
295
- t.field({ name: 'deletedId' }),
296
295
  ],
297
296
  }),
298
297
  }),
@@ -376,10 +376,9 @@ export function generateDeleteMutationHook(table, options = {}) {
376
376
  ]);
377
377
  const variablesInterface = t.tsInterfaceDeclaration(t.identifier(`${ucFirst(mutationName)}MutationVariables`), null, null, variablesInterfaceBody);
378
378
  statements.push(t.exportNamedDeclaration(variablesInterface));
379
- const deletedPkProp = t.tsPropertySignature(t.identifier(`deleted${ucFirst(pkField.name)}`), t.tsTypeAnnotation(t.tsUnionType([pkTypeAnnotation, t.tsNullKeyword()])));
380
379
  const clientMutationIdProp = t.tsPropertySignature(t.identifier('clientMutationId'), t.tsTypeAnnotation(t.tsUnionType([t.tsStringKeyword(), t.tsNullKeyword()])));
381
380
  const resultInterfaceBody = t.tsInterfaceBody([
382
- t.tsPropertySignature(t.identifier(mutationName), t.tsTypeAnnotation(t.tsTypeLiteral([clientMutationIdProp, deletedPkProp]))),
381
+ t.tsPropertySignature(t.identifier(mutationName), t.tsTypeAnnotation(t.tsTypeLiteral([clientMutationIdProp]))),
383
382
  ]);
384
383
  const resultInterface = t.tsInterfaceDeclaration(t.identifier(`${ucFirst(mutationName)}MutationResult`), null, null, resultInterfaceBody);
385
384
  statements.push(t.exportNamedDeclaration(resultInterface));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-codegen",
3
- "version": "2.28.0",
3
+ "version": "2.28.1",
4
4
  "description": "CLI-based GraphQL SDK generator for PostGraphile endpoints with React Query hooks",
5
5
  "keywords": [
6
6
  "graphql",
@@ -88,5 +88,5 @@
88
88
  "tsx": "^4.21.0",
89
89
  "typescript": "^5.9.3"
90
90
  },
91
- "gitHead": "ec2b5f644c479626305ef85a05a6e7105c2c58cd"
91
+ "gitHead": "b10f4573bc0daa50502a1a5ea8ba610e00c3996b"
92
92
  }