@aws-amplify/graphql-api-construct 1.18.6 → 1.18.8-gen2-migration-0205.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/.jsii +18 -18
  2. package/CHANGELOG.md +8 -0
  3. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  4. package/lib/amplify-graphql-api.js +1 -1
  5. package/lib/amplify-graphql-definition.js +1 -1
  6. package/lib/sql-model-datasource-strategy.js +1 -1
  7. package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +4 -1
  8. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +10 -0
  9. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +3 -2
  10. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  11. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +5 -2
  12. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  13. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts +2 -2
  14. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
  15. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js +2 -2
  16. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
  17. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts +2 -2
  18. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts.map +1 -1
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +1 -1
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +11 -11
  22. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +8 -0
  23. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +8 -8
  24. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +8 -0
  25. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +6 -6
  26. package/node_modules/@aws-amplify/graphql-function-transformer/API.md +4 -1
  27. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +6 -0
  28. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts +3 -2
  29. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
  30. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +3 -0
  31. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
  32. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +5 -6
  33. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
  34. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +5 -6
  35. package/node_modules/@aws-amplify/graphql-http-transformer/API.md +4 -1
  36. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +6 -0
  37. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts +3 -2
  38. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts.map +1 -1
  39. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js +19 -16
  40. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js.map +1 -1
  41. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +5 -6
  42. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +8 -0
  43. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +6 -6
  44. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +8 -0
  45. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  46. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +9 -9
  47. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +11 -0
  48. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  49. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  50. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  51. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +1 -0
  52. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -1
  53. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +24 -4
  54. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -1
  55. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +2 -1
  56. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +2 -1
  57. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +5 -5
  58. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
  59. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  60. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +5 -6
  61. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +8 -0
  62. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +7 -7
  63. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +8 -0
  64. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  65. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +6 -6
  66. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +8 -0
  67. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +6 -6
  68. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +8 -0
  69. package/node_modules/@aws-amplify/graphql-transformer/package.json +18 -18
  70. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +2 -2
  71. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +6 -0
  72. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts.map +1 -1
  73. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js +61 -35
  74. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
  75. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts +3 -3
  76. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts.map +1 -1
  77. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js +4 -0
  78. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js.map +1 -1
  79. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +4 -3
  80. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
  81. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +6 -4
  82. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
  83. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +3 -4
  84. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +2 -0
  85. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -0
  86. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-plugin-provider.d.ts +2 -1
  87. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-plugin-provider.d.ts.map +1 -1
  88. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-plugin-provider.js.map +1 -1
  89. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +1 -1
  90. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-plugin-provider.ts +15 -4
  91. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +19 -19
  93. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +0 -201
  94. package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +0 -201
  95. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +0 -201
  96. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +0 -201
  97. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +0 -201
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getType = exports.getField = exports.fieldsWithSqlDirective = exports.isBuiltInGraphqlNode = exports.isSubscriptionNode = exports.isQueryNode = exports.isMutationNode = exports.isBuiltInGraphqlType = exports.isSubscriptionType = exports.isQueryType = exports.isMutationType = exports.isObjectTypeDefinitionNode = void 0;
3
+ exports.getType = exports.getField = exports.fieldsWithSqlDirective = exports.isBuiltInGraphqlNode = exports.isSubscriptionNode = exports.isQueryNode = exports.isMutationNode = exports.isBuiltInGraphqlType = exports.isSubscriptionType = exports.isQueryType = exports.isMutationType = exports.isObjectTypeExtensionNode = exports.isObjectTypeDefinitionNode = void 0;
4
4
  const graphql_1 = require("graphql");
5
5
  const SQL_DIRECTIVE_NAME = 'sql';
6
6
  const isObjectTypeDefinitionNode = (obj) => {
7
7
  return obj.kind === graphql_1.Kind.OBJECT_TYPE_DEFINITION || obj.kind === graphql_1.Kind.INTERFACE_TYPE_DEFINITION;
8
8
  };
9
9
  exports.isObjectTypeDefinitionNode = isObjectTypeDefinitionNode;
10
+ const isObjectTypeExtensionNode = (obj) => obj.kind === graphql_1.Kind.OBJECT_TYPE_EXTENSION;
11
+ exports.isObjectTypeExtensionNode = isObjectTypeExtensionNode;
10
12
  const isMutationType = (typeName) => typeName === 'Mutation';
11
13
  exports.isMutationType = isMutationType;
12
14
  const isQueryType = (typeName) => typeName === 'Query';
@@ -16,15 +18,15 @@ exports.isSubscriptionType = isSubscriptionType;
16
18
  const isBuiltInGraphqlType = (typeName) => (0, exports.isMutationType)(typeName) || (0, exports.isQueryType)(typeName) || (0, exports.isSubscriptionType)(typeName);
17
19
  exports.isBuiltInGraphqlType = isBuiltInGraphqlType;
18
20
  const isMutationNode = (obj) => {
19
- return (0, exports.isObjectTypeDefinitionNode)(obj) && (0, exports.isMutationType)(obj.name.value);
21
+ return ((0, exports.isObjectTypeDefinitionNode)(obj) || (0, exports.isObjectTypeExtensionNode)(obj)) && (0, exports.isMutationType)(obj.name.value);
20
22
  };
21
23
  exports.isMutationNode = isMutationNode;
22
24
  const isQueryNode = (obj) => {
23
- return (0, exports.isObjectTypeDefinitionNode)(obj) && (0, exports.isQueryType)(obj.name.value);
25
+ return ((0, exports.isObjectTypeDefinitionNode)(obj) || (0, exports.isObjectTypeExtensionNode)(obj)) && (0, exports.isQueryType)(obj.name.value);
24
26
  };
25
27
  exports.isQueryNode = isQueryNode;
26
28
  const isSubscriptionNode = (obj) => {
27
- return (0, exports.isObjectTypeDefinitionNode)(obj) && (0, exports.isSubscriptionType)(obj.name.value);
29
+ return ((0, exports.isObjectTypeDefinitionNode)(obj) || (0, exports.isObjectTypeExtensionNode)(obj)) && (0, exports.isSubscriptionType)(obj.name.value);
28
30
  };
29
31
  exports.isSubscriptionNode = isSubscriptionNode;
30
32
  const isBuiltInGraphqlNode = (obj) => {
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-utils.js","sourceRoot":"","sources":["../../src/utils/graphql-utils.ts"],"names":[],"mappings":";;;AAAA,qCAAyI;AAEzI,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAE1B,MAAM,0BAA0B,GAAG,CAAC,GAAmB,EAAmC,EAAE;IACjG,OAAO,GAAG,CAAC,IA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,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAA,EAAA,CAAC;AADzC,QAAA,QAAQ,YACiC;AAE/C,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,QAAgB,EAAwC,EAAE,CACtG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,kCAA0B,EAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAyC,CAAC;AAD9H,QAAA,OAAO,WACuH"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-core",
3
- "version": "3.3.4",
3
+ "version": "3.3.5",
4
4
  "description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@aws-amplify/graphql-directives": "2.6.1",
33
- "@aws-amplify/graphql-transformer-interfaces": "4.2.1",
33
+ "@aws-amplify/graphql-transformer-interfaces": "4.2.2",
34
34
  "fs-extra": "^8.1.0",
35
35
  "graphql": "^15.5.0",
36
36
  "graphql-mapping-template": "5.0.2",
@@ -52,6 +52,5 @@
52
52
  "@types/node": "^18.0.0",
53
53
  "@types/object-hash": "^2.2.1",
54
54
  "@types/uuid": "^9.0.1"
55
- },
56
- "gitHead": "25740a7e84e77a08413ada102985a9ee52028878"
55
+ }
57
56
  }
@@ -748,6 +748,8 @@ export interface TransformerPluginProvider {
748
748
  // (undocumented)
749
749
  field?: (parent: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
750
750
  // (undocumented)
751
+ fieldOfExtendedType?: (parent: ObjectTypeExtensionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
752
+ // (undocumented)
751
753
  generateResolvers?: (context: TransformerContextProvider) => void;
752
754
  // (undocumented)
753
755
  getLogs?: () => TransformerLog[];
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@4.2.1...@aws-amplify/graphql-transformer-interfaces@4.2.2) (2025-01-30)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **gen2:** transform directives on fields of supported extended types ([#3127](https://github.com/aws-amplify/amplify-category-api/issues/3127)) ([3aca7b8](https://github.com/aws-amplify/amplify-category-api/commit/3aca7b89f530c536c28a53b7290fdab877b2260b))
11
+
6
12
  ## [4.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@4.2.0...@aws-amplify/graphql-transformer-interfaces@4.2.1) (2024-12-17)
7
13
 
8
14
  **Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
@@ -1,4 +1,4 @@
1
- import { DirectiveNode, ObjectTypeDefinitionNode, InterfaceTypeDefinitionNode, FieldDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, ScalarTypeDefinitionNode, InputObjectTypeDefinitionNode, InputValueDefinitionNode, EnumValueDefinitionNode, DirectiveDefinitionNode, TypeDefinitionNode, DocumentNode } from 'graphql';
1
+ import { DirectiveNode, ObjectTypeDefinitionNode, InterfaceTypeDefinitionNode, FieldDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, ScalarTypeDefinitionNode, InputObjectTypeDefinitionNode, InputValueDefinitionNode, EnumValueDefinitionNode, DirectiveDefinitionNode, TypeDefinitionNode, DocumentNode, ObjectTypeExtensionNode } from 'graphql';
2
2
  import { TransformerBeforeStepContextProvider, TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerSchemaVisitStepContextProvider, TransformerValidationStepContextProvider, TransformerTransformSchemaStepContextProvider } from './transformer-context/transformer-context-provider';
3
3
  import { TransformerPreProcessContextProvider } from './transformer-context';
4
4
  import { TransformerLog } from './transformer-log';
@@ -19,6 +19,7 @@ export interface TransformerPluginProvider {
19
19
  object?: (definition: ObjectTypeDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
20
20
  interface?: (definition: InterfaceTypeDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
21
21
  field?: (parent: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
22
+ fieldOfExtendedType?: (parent: ObjectTypeExtensionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
22
23
  argument?: (definition: InputValueDefinitionNode, directive: DirectiveNode, context: TransformerSchemaVisitStepContextProvider) => void;
23
24
  union?: (definition: UnionTypeDefinitionNode, directive: DirectiveNode, context: TransformerSchemaVisitStepContextProvider) => void;
24
25
  enum?: (definition: EnumTypeDefinitionNode, directive: DirectiveNode, context: TransformerSchemaVisitStepContextProvider) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"transformer-plugin-provider.d.ts","sourceRoot":"","sources":["../src/transformer-plugin-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,oCAAoC,EACpC,0BAA0B,EAC1B,qCAAqC,EACrC,yCAAyC,EACzC,wCAAwC,EACxC,6CAA6C,EAC9C,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,cAAc,E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AAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAKtD,OAAO,CAAC,EAAE,MAAM,cAAc,EAAE,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transformer-plugin-provider.js","sourceRoot":"","sources":["../src/transformer-plugin-provider.ts"],"names":[],"mappings":";;;AA0BA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,4CAAmB,CAAA;IACnB,sCAAa,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
1
+ {"version":3,"file":"transformer-plugin-provider.js","sourceRoot":"","sources":["../src/transformer-plugin-provider.ts"],"names":[],"mappings":";;;AA4BA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,4CAAmB,CAAA;IACnB,sCAAa,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer-interfaces",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Amplify GraphQL transformer interface definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,9 @@ import {
12
12
  DirectiveDefinitionNode,
13
13
  TypeDefinitionNode,
14
14
  DocumentNode,
15
+ ObjectTypeExtensionNode,
15
16
  } from 'graphql';
17
+ // eslint-disable-next-line import/no-cycle
16
18
  import {
17
19
  TransformerBeforeStepContextProvider,
18
20
  TransformerContextProvider,
@@ -66,15 +68,13 @@ export interface TransformerPluginProvider {
66
68
 
67
69
  /**
68
70
  * A transformer implements a single function per location that its directive can be applied.
69
- * This method handles transforming directives on objects type definitions. This includes type
70
- * extensions.
71
+ * This method handles transforming directives on object type definitions.
71
72
  */
72
73
  object?: (definition: ObjectTypeDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
73
74
 
74
75
  /**
75
76
  * A transformer implements a single function per location that its directive can be applied.
76
- * This method handles transforming directives on objects type definitions. This includes type
77
- * extensions.
77
+ * This method handles transforming directives on interface type definitions.
78
78
  */
79
79
  interface?: (definition: InterfaceTypeDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
80
80
 
@@ -89,6 +89,17 @@ export interface TransformerPluginProvider {
89
89
  acc: TransformerSchemaVisitStepContextProvider,
90
90
  ) => void;
91
91
 
92
+ /**
93
+ * A transformer implements a single function per location that its directive can be applied. This method handles transforming directives
94
+ * on fields of extended types.
95
+ */
96
+ fieldOfExtendedType?: (
97
+ parent: ObjectTypeExtensionNode,
98
+ definition: FieldDefinitionNode,
99
+ directive: DirectiveNode,
100
+ acc: TransformerSchemaVisitStepContextProvider,
101
+ ) => void;
102
+
92
103
  /**
93
104
  * A transformer implements a single function per location that its directive can be applied.
94
105
  * This method handles transforming directives on object or input argument definitions.