@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 1.8.1 to 1.8.2-beta.0
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.8.2-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.1...@aws-amplify/graphql-transformer-interfaces@1.8.2-beta.0) (2021-08-17) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces | ||
## [1.8.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.0...@aws-amplify/graphql-transformer-interfaces@1.8.1) (2021-08-06) | ||
@@ -8,0 +16,0 @@ |
@@ -12,3 +12,3 @@ import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
} | ||
export interface ElasticSearchDataSourceOptions extends DataSourceOptions { | ||
export interface SearchableDataSourceOptions extends DataSourceOptions { | ||
readonly serviceRole: IRole; | ||
@@ -15,0 +15,0 @@ } |
@@ -5,3 +5,3 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
import { IFunction, ILayerVersion, Runtime } from '@aws-cdk/aws-lambda'; | ||
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, ElasticSearchDataSourceOptions, MappingTemplateProvider } from './graphql-api-provider'; | ||
import { AppSyncFunctionConfigurationProvider, DataSourceOptions, SearchableDataSourceOptions, MappingTemplateProvider } from './graphql-api-provider'; | ||
import { IRole } from '@aws-cdk/aws-iam'; | ||
@@ -14,3 +14,3 @@ export interface TransformHostProvider { | ||
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource; | ||
addElasticSearchDataSource(name: string, endpoint: string, region: string, options?: ElasticSearchDataSourceOptions, stack?: Stack): BaseDataSource; | ||
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, stack?: Stack): BaseDataSource; | ||
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, stack?: Stack) => AppSyncFunctionConfigurationProvider; | ||
@@ -17,0 +17,0 @@ addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName?: string, pipelineConfig?: string[], stack?: Stack) => CfnResolver; |
{ | ||
"name": "@aws-amplify/graphql-transformer-interfaces", | ||
"version": "1.8.1", | ||
"version": "1.8.2-beta.0", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -64,3 +64,3 @@ "repository": { | ||
}, | ||
"gitHead": "254e137af2617b38d7704df996cbf598b5583dc2" | ||
"gitHead": "9c4a0f93808db1ccaa25ccfa37038448ae4402bc" | ||
} |
@@ -24,5 +24,5 @@ import { CfnResource, Construct, IAsset, IConstruct } from '@aws-cdk/core'; | ||
export interface ElasticSearchDataSourceOptions extends DataSourceOptions { | ||
export interface SearchableDataSourceOptions extends DataSourceOptions { | ||
/** | ||
* ServiceRole for the Amazon Elasticsearch | ||
* ServiceRole for the Amazon OpenSearch | ||
*/ | ||
@@ -29,0 +29,0 @@ readonly serviceRole: IRole; |
@@ -9,3 +9,3 @@ import { Duration, Stack } from '@aws-cdk/core'; | ||
LambdaDataSource, | ||
NoneDataSource | ||
NoneDataSource, | ||
} from '@aws-cdk/aws-appsync'; | ||
@@ -17,8 +17,7 @@ import { ITable } from '@aws-cdk/aws-dynamodb'; | ||
DataSourceOptions, | ||
ElasticSearchDataSourceOptions, | ||
MappingTemplateProvider | ||
SearchableDataSourceOptions, | ||
MappingTemplateProvider, | ||
} from './graphql-api-provider'; | ||
import { IRole } from '@aws-cdk/aws-iam'; | ||
export interface TransformHostProvider { | ||
@@ -31,7 +30,7 @@ setAPI(api: GraphqlApiBase): void; | ||
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource; | ||
addElasticSearchDataSource( | ||
addSearchableDataSource( | ||
name: string, | ||
endpoint: string, | ||
region: string, | ||
options?: ElasticSearchDataSourceOptions, | ||
options?: SearchableDataSourceOptions, | ||
stack?: Stack, | ||
@@ -38,0 +37,0 @@ ): BaseDataSource; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
801400
2