@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 1.10.1-amplify-export2.0 to 1.10.1-ext1.0
@@ -6,10 +6,14 @@ # Change Log | ||
## [1.10.1-amplify-export2.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.10.0...@aws-amplify/graphql-transformer-interfaces@1.10.1-amplify-export2.0) (2021-10-18) | ||
## [1.10.1-ext1.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.9.0...@aws-amplify/graphql-transformer-interfaces@1.10.1-ext1.0) (2021-10-18) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces | ||
### Bug Fixes | ||
* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) | ||
* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) | ||
# [1.10.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.9.1...@aws-amplify/graphql-transformer-interfaces@1.10.0) (2021-10-10) | ||
@@ -16,0 +20,0 @@ |
import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
import { Grant, IGrantable, IRole } from '@aws-cdk/aws-iam'; | ||
import { TransformHostProvider } from './transform-host-provider'; | ||
export declare type AppSyncAuthMode = 'API_KEY' | 'AMAZON_COGNITO_USER_POOLS' | 'AWS_IAM' | 'OPENID_CONNECT'; | ||
export declare type AppSyncAuthConfiguration = { | ||
defaultAuthentication: AppSyncAuthConfigurationEntry; | ||
additionalAuthenticationProviders: Array<AppSyncAuthConfigurationEntry>; | ||
}; | ||
export declare type AppSyncAuthConfigurationEntry = AppSyncAuthConfigurationUserPoolEntry | AppSyncAuthConfigurationAPIKeyEntry | AppSyncAuthConfigurationIAMEntry | AppSyncAuthConfigurationOIDCEntry; | ||
export declare type AppSyncAuthConfigurationAPIKeyEntry = { | ||
authenticationType: 'API_KEY'; | ||
apiKeyConfig?: ApiKeyConfig; | ||
}; | ||
export declare type AppSyncAuthConfigurationUserPoolEntry = { | ||
authenticationType: 'AMAZON_COGNITO_USER_POOLS'; | ||
userPoolConfig?: UserPoolConfig; | ||
}; | ||
export declare type AppSyncAuthConfigurationIAMEntry = { | ||
authenticationType: 'AWS_IAM'; | ||
}; | ||
export declare type AppSyncAuthConfigurationOIDCEntry = { | ||
authenticationType: 'OPENID_CONNECT'; | ||
openIDConnectConfig?: OpenIDConnectConfig; | ||
}; | ||
export interface ApiKeyConfig { | ||
description?: string; | ||
apiKeyExpirationDays: number; | ||
apiKeyExpirationDate?: Date; | ||
} | ||
export interface UserPoolConfig { | ||
userPoolId: string; | ||
} | ||
export interface OpenIDConnectConfig { | ||
name: string; | ||
issuerUrl: string; | ||
clientId?: string; | ||
iatTTL?: number; | ||
authTTL?: number; | ||
} | ||
export interface AppSyncFunctionConfigurationProvider extends IConstruct { | ||
@@ -41,0 +5,0 @@ readonly arn: string; |
export { TransformerContextOutputProvider, TransformerContextProvider, TransformerProviderRegistry, TransformerDataSourceManagerProvider, TransformerResolverProvider, AppSyncDataSourceType, DataSourceProvider, StackManagerProvider, TransformerResolversManagerProvider, DataSourceInstance, TransformerTransformSchemaStepContextProvider, TransformerBeforeStepContextProvider, TransformerPrepareStepContextProvider, TransformerSchemaVisitStepContextProvider, TransformerValidationStepContextProvider, TransformerResourceHelperProvider, } from './transformer-context'; | ||
export { TransformerPluginProvider, TransformerPluginType } from './transformer-plugin-provider'; | ||
export { MutationFieldType, QueryFieldType, SubscriptionFieldType, TransformerModelProvider, TransformerModelEnhancementProvider, TransformerAuthProvider, } from './transformer-model-provider'; | ||
export { MutationFieldType, QueryFieldType, SubscriptionFieldType, TransformerModelEnhancementProvider, TransformerModelProvider, } from './transformer-model-provider'; | ||
export { FeatureFlagProvider } from './feature-flag-provider'; | ||
export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, AppSyncAuthConfiguration, AppSyncAuthConfigurationAPIKeyEntry, AppSyncAuthConfigurationEntry, AppSyncAuthConfigurationIAMEntry, ApiKeyConfig, AppSyncAuthConfigurationOIDCEntry, AppSyncAuthConfigurationUserPoolEntry, AppSyncAuthMode, UserPoolConfig, } from './graphql-api-provider'; | ||
export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, } from './graphql-api-provider'; | ||
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,5 +24,3 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
hasDataSource: (name: string) => boolean; | ||
getResolver: (typeName: string, fieldName: string) => CfnResolver | void; | ||
hasResolver: (typeName: string, fieldName: string) => boolean; | ||
} | ||
//# sourceMappingURL=transform-host-provider.d.ts.map |
import { CfnParameter, CfnParameterProps, Stack } from '@aws-cdk/core'; | ||
export interface StackManagerProvider { | ||
readonly rootStack: Stack; | ||
getStack: (stackName: string) => Stack; | ||
@@ -5,0 +4,0 @@ createStack: (stackName: string) => Stack; |
@@ -7,12 +7,6 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider'; | ||
import { StackManagerProvider } from './stack-manager-provider'; | ||
import { AppSyncAuthConfiguration, GraphQLAPIProvider } from '../graphql-api-provider'; | ||
import { GraphQLAPIProvider } from '../graphql-api-provider'; | ||
import { TransformerResourceProvider } from './resource-resource-provider'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
export interface TransformerContextMetadataProvider { | ||
set<T>(key: string, value: T): void; | ||
get<T>(key: string): T | undefined; | ||
has(key: string): boolean; | ||
} | ||
export interface TransformerContextProvider { | ||
metadata: TransformerContextMetadataProvider; | ||
resolvers: TransformerResolversManagerProvider; | ||
@@ -27,11 +21,10 @@ dataSources: TransformerDataSourceManagerProvider; | ||
featureFlags: FeatureFlagProvider; | ||
authConfig: AppSyncAuthConfiguration; | ||
isProjectUsingDataStore(): boolean; | ||
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined; | ||
} | ||
export declare type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig'>; | ||
export declare type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig'>; | ||
export declare type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig'>; | ||
export declare type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'featureFlags' | 'isProjectUsingDataStore'>; | ||
export declare type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig'>; | ||
export declare type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig'>; | ||
export declare type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider; | ||
export declare type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider; | ||
//# sourceMappingURL=transformer-context-provider.d.ts.map |
@@ -21,3 +21,2 @@ import { BackedDataSource, HttpDataSource } from '@aws-cdk/aws-appsync'; | ||
get(type: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode): DataSourceInstance; | ||
has(name: string): boolean; | ||
} | ||
@@ -24,0 +23,0 @@ export interface DataSourceProvider extends BackedDataSource { |
@@ -13,3 +13,2 @@ import { Stack } from '@aws-cdk/core'; | ||
getResolver: (typeName: string, fieldName: string) => TransformerResolverProvider | void; | ||
hasResolver: (typeName: string, fieldName: string) => boolean; | ||
removeResolver: (typeName: string, fieldName: string) => TransformerResolverProvider; | ||
@@ -16,0 +15,0 @@ collectResolvers: () => Map<string, TransformerResolverProvider>; |
@@ -57,6 +57,4 @@ import { ObjectTypeDefinitionNode, DirectiveDefinitionNode, InputValueDefinitionNode } from 'graphql'; | ||
} | ||
export interface TransformerAuthProvider extends TransformerPluginProvider { | ||
} | ||
export interface TransformerModelEnhancementProvider extends Partial<TransformerModelProvider> { | ||
} | ||
//# sourceMappingURL=transformer-model-provider.d.ts.map |
@@ -6,4 +6,3 @@ import { DirectiveNode, ObjectTypeDefinitionNode, InterfaceTypeDefinitionNode, FieldDefinitionNode, UnionTypeDefinitionNode, EnumTypeDefinitionNode, ScalarTypeDefinitionNode, InputObjectTypeDefinitionNode, InputValueDefinitionNode, EnumValueDefinitionNode, DirectiveDefinitionNode, TypeDefinitionNode } from 'graphql'; | ||
DATA_SOURCE_ENHANCER = "DATA_SOURCE_ENHANCER", | ||
GENERIC = "GENERIC", | ||
AUTH = "AUTH" | ||
GENERIC = "GENERIC" | ||
} | ||
@@ -10,0 +9,0 @@ export interface TransformerPluginProvider { |
@@ -9,4 +9,3 @@ "use strict"; | ||
TransformerPluginType["GENERIC"] = "GENERIC"; | ||
TransformerPluginType["AUTH"] = "AUTH"; | ||
})(TransformerPluginType = exports.TransformerPluginType || (exports.TransformerPluginType = {})); | ||
//# sourceMappingURL=transformer-plugin-provider.js.map |
{ | ||
"name": "@aws-amplify/graphql-transformer-interfaces", | ||
"version": "1.10.1-amplify-export2.0", | ||
"version": "1.10.1-ext1.0", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -64,3 +64,3 @@ "repository": { | ||
}, | ||
"gitHead": "9b61aadb895c0307ef3267ca868fc4a68e7a853a" | ||
"gitHead": "4e4b39edf00f3bfbd7b225d84a4b5b64f5965025" | ||
} |
import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
import { Grant, IGrantable, IRole } from '@aws-cdk/aws-iam'; | ||
import { TransformHostProvider } from './transform-host-provider'; | ||
import {TransformHostProvider} from './transform-host-provider'; | ||
// Auth Config | ||
export type AppSyncAuthMode = 'API_KEY' | 'AMAZON_COGNITO_USER_POOLS' | 'AWS_IAM' | 'OPENID_CONNECT'; | ||
export type AppSyncAuthConfiguration = { | ||
defaultAuthentication: AppSyncAuthConfigurationEntry; | ||
additionalAuthenticationProviders: Array<AppSyncAuthConfigurationEntry>; | ||
}; | ||
export type AppSyncAuthConfigurationEntry = | ||
| AppSyncAuthConfigurationUserPoolEntry | ||
| AppSyncAuthConfigurationAPIKeyEntry | ||
| AppSyncAuthConfigurationIAMEntry | ||
| AppSyncAuthConfigurationOIDCEntry; | ||
export type AppSyncAuthConfigurationAPIKeyEntry = { | ||
authenticationType: 'API_KEY'; | ||
apiKeyConfig?: ApiKeyConfig; | ||
}; | ||
export type AppSyncAuthConfigurationUserPoolEntry = { | ||
authenticationType: 'AMAZON_COGNITO_USER_POOLS'; | ||
userPoolConfig?: UserPoolConfig; | ||
}; | ||
export type AppSyncAuthConfigurationIAMEntry = { | ||
authenticationType: 'AWS_IAM'; | ||
}; | ||
export type AppSyncAuthConfigurationOIDCEntry = { | ||
authenticationType: 'OPENID_CONNECT'; | ||
openIDConnectConfig?: OpenIDConnectConfig; | ||
}; | ||
export interface ApiKeyConfig { | ||
description?: string; | ||
apiKeyExpirationDays: number; | ||
apiKeyExpirationDate?: Date; | ||
} | ||
export interface UserPoolConfig { | ||
userPoolId: string; | ||
} | ||
export interface OpenIDConnectConfig { | ||
name: string; | ||
issuerUrl: string; | ||
clientId?: string; | ||
iatTTL?: number; | ||
authTTL?: number; | ||
} | ||
export interface AppSyncFunctionConfigurationProvider extends IConstruct { | ||
@@ -51,0 +6,0 @@ readonly arn: string; |
@@ -24,5 +24,4 @@ export { | ||
SubscriptionFieldType, | ||
TransformerModelEnhancementProvider, | ||
TransformerModelProvider, | ||
TransformerModelEnhancementProvider, | ||
TransformerAuthProvider, | ||
} from './transformer-model-provider'; | ||
@@ -41,13 +40,4 @@ export { FeatureFlagProvider } from './feature-flag-provider'; | ||
TemplateType as MappingTemplateType, | ||
AppSyncAuthConfiguration, | ||
AppSyncAuthConfigurationAPIKeyEntry, | ||
AppSyncAuthConfigurationEntry, | ||
AppSyncAuthConfigurationIAMEntry, | ||
ApiKeyConfig, | ||
AppSyncAuthConfigurationOIDCEntry, | ||
AppSyncAuthConfigurationUserPoolEntry, | ||
AppSyncAuthMode, | ||
UserPoolConfig, | ||
} from './graphql-api-provider'; | ||
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider'; |
@@ -76,5 +76,2 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
hasDataSource: (name: string) => boolean; | ||
getResolver: (typeName: string, fieldName: string) => CfnResolver | void; | ||
hasResolver: (typeName: string, fieldName: string) => boolean; | ||
} |
import { CfnParameter, CfnParameterProps, Stack } from '@aws-cdk/core'; | ||
export interface StackManagerProvider { | ||
readonly rootStack: Stack; | ||
getStack: (stackName: string) => Stack; | ||
@@ -6,0 +5,0 @@ createStack: (stackName: string) => Stack; |
@@ -7,14 +7,7 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider'; | ||
import { StackManagerProvider } from './stack-manager-provider'; | ||
import { AppSyncAuthConfiguration, GraphQLAPIProvider } from '../graphql-api-provider'; | ||
import { GraphQLAPIProvider } from '../graphql-api-provider'; | ||
import { TransformerResourceProvider } from './resource-resource-provider'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
export interface TransformerContextMetadataProvider { | ||
set<T>(key: string, value: T): void; | ||
get<T>(key: string): T | undefined; | ||
has(key: string): boolean; | ||
} | ||
export interface TransformerContextProvider { | ||
metadata: TransformerContextMetadataProvider; | ||
resolvers: TransformerResolversManagerProvider; | ||
@@ -30,3 +23,2 @@ dataSources: TransformerDataSourceManagerProvider; | ||
featureFlags: FeatureFlagProvider; | ||
authConfig: AppSyncAuthConfiguration; | ||
@@ -39,28 +31,13 @@ isProjectUsingDataStore(): boolean; | ||
TransformerContextProvider, | ||
'inputDocument' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | ||
'inputDocument' | 'featureFlags' | 'isProjectUsingDataStore' | ||
>; | ||
export type TransformerSchemaVisitStepContextProvider = Pick< | ||
TransformerContextProvider, | ||
| 'inputDocument' | ||
| 'output' | ||
| 'providerRegistry' | ||
| 'featureFlags' | ||
| 'isProjectUsingDataStore' | ||
| 'getResolverConfig' | ||
| 'metadata' | ||
| 'authConfig' | ||
'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | ||
>; | ||
export type TransformerValidationStepContextProvider = Pick< | ||
TransformerContextProvider, | ||
| 'inputDocument' | ||
| 'output' | ||
| 'providerRegistry' | ||
| 'dataSources' | ||
| 'featureFlags' | ||
| 'isProjectUsingDataStore' | ||
| 'getResolverConfig' | ||
| 'metadata' | ||
| 'authConfig' | ||
'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | ||
>; | ||
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider; | ||
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider; |
@@ -25,5 +25,4 @@ import { BackedDataSource, HttpDataSource } from '@aws-cdk/aws-appsync'; | ||
get(type: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode): DataSourceInstance; | ||
has(name: string): boolean; | ||
} | ||
export interface DataSourceProvider extends BackedDataSource {} |
@@ -20,3 +20,2 @@ import { Stack } from '@aws-cdk/core'; | ||
getResolver: (typeName: string, fieldName: string) => TransformerResolverProvider | void; | ||
hasResolver: (typeName: string, fieldName: string) => boolean; | ||
removeResolver: (typeName: string, fieldName: string) => TransformerResolverProvider; | ||
@@ -23,0 +22,0 @@ collectResolvers: () => Map<string, TransformerResolverProvider>; |
@@ -132,4 +132,2 @@ import { ObjectTypeDefinitionNode, DirectiveDefinitionNode, InputValueDefinitionNode } from 'graphql'; | ||
export interface TransformerAuthProvider extends TransformerPluginProvider {} | ||
export interface TransformerModelEnhancementProvider extends Partial<TransformerModelProvider> {} |
@@ -28,3 +28,2 @@ import { | ||
GENERIC = 'GENERIC', | ||
AUTH = 'AUTH', | ||
} | ||
@@ -31,0 +30,0 @@ export interface TransformerPluginProvider { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235337
1096