@aws-amplify/graphql-transformer-interfaces 3.10.2-sandbox-hotswap.0 → 3.10.2
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.
- package/API.md +2 -1
- package/CHANGELOG.md +4 -2
- package/lib/transformer-context/synth-parameters.d.ts +0 -1
- package/lib/transformer-context/synth-parameters.d.ts.map +1 -1
- package/lib/transformer-plugin-provider.d.ts +2 -1
- package/lib/transformer-plugin-provider.d.ts.map +1 -1
- package/lib/transformer-plugin-provider.js.map +1 -1
- package/package.json +2 -2
- package/src/transformer-context/synth-parameters.ts +0 -1
- package/src/transformer-plugin-provider.ts +15 -4
- package/tsconfig.tsbuildinfo +1 -1
package/API.md
CHANGED
|
@@ -502,7 +502,6 @@ export type SynthParameters = {
|
|
|
502
502
|
identityPoolId?: string;
|
|
503
503
|
adminRoles?: string[];
|
|
504
504
|
enableIamAccess?: boolean;
|
|
505
|
-
provisionHotswapFriendlyResources?: boolean;
|
|
506
505
|
};
|
|
507
506
|
|
|
508
507
|
// @public (undocumented)
|
|
@@ -719,6 +718,8 @@ export interface TransformerPluginProvider {
|
|
|
719
718
|
// (undocumented)
|
|
720
719
|
field?: (parent: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
|
|
721
720
|
// (undocumented)
|
|
721
|
+
fieldOfExtendedType?: (parent: ObjectTypeExtensionNode, definition: FieldDefinitionNode, directive: DirectiveNode, acc: TransformerSchemaVisitStepContextProvider) => void;
|
|
722
|
+
// (undocumented)
|
|
722
723
|
generateResolvers?: (context: TransformerContextProvider) => void;
|
|
723
724
|
// (undocumented)
|
|
724
725
|
getLogs?: () => TransformerLog[];
|
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
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
|
-
## [3.10.2
|
|
6
|
+
## [3.10.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.10.1...@aws-amplify/graphql-transformer-interfaces@3.10.2) (2025-01-29)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **gen1:** transform directives on fields of supported extended types ([#3126](https://github.com/aws-amplify/amplify-category-api/issues/3126)) ([845612f](https://github.com/aws-amplify/amplify-category-api/commit/845612f4f9ff0aa7959cea631d7446cc482663c4))
|
|
9
11
|
|
|
10
12
|
## [3.10.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.10.0...@aws-amplify/graphql-transformer-interfaces@3.10.1) (2024-07-15)
|
|
11
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synth-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/synth-parameters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"synth-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/synth-parameters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
|
|
@@ -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,
|
|
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,EACZ,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,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,EAAE,MAAM,mBAAmB,CAAC;AAEnD,oBAAY,qBAAqB;IAC/B,oBAAoB,yB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,KAAK,IAAI,CAAC;IAMpI,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,yCAAyC,KAAK,IAAI,CAAC;IAMlI,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,uBAAuB,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,yCAAyC,KAAK,IAAI,CAAC;IAMxI,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,yCAAyC,KAAK,IAAI,CAAC;IAMtI,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,6BAA6B,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,yCAAyC,KAAK,IAAI,CAAC;IAM1I,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,yCAAyC,KAAK,IAAI,CAAC;IAK1I,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,wCAAwC,KAAK,IAAI,CAAC;IAKvE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,qCAAqC,KAAK,IAAI,CAAC;IAKnE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,6CAA6C,KAAK,IAAI,CAAC;IAKnF,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAMlE,KAAK,CAAC,EAAE,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":";;;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/graphql-transformer-interfaces",
|
|
3
|
-
"version": "3.10.2
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Amplify GraphQL transformer interface definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"/__tests__/"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "cf91f407b3e9fcafea96629a7fc5266e19020ccc"
|
|
64
64
|
}
|
|
@@ -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.
|
|
70
|
-
* extensions.
|
|
71
|
+
* This method handles transforming directives on objects 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
|
|
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.
|