Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/graphql-transformer-interfaces

Package Overview
Dependencies
Maintainers
7
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-transformer-interfaces - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1-headless-s3-not-for-production.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.9.1-headless-s3-not-for-production.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.9.0...@aws-amplify/graphql-transformer-interfaces@1.9.1-headless-s3-not-for-production.0) (2021-09-22)
### 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))
# [1.9.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.2...@aws-amplify/graphql-transformer-interfaces@1.9.0) (2021-09-02)

@@ -8,0 +19,0 @@

2

lib/index.d.ts

@@ -6,3 +6,3 @@ export { TransformerContextOutputProvider, TransformerContextProvider, TransformerProviderRegistry, TransformerDataSourceManagerProvider, TransformerResolverProvider, AppSyncDataSourceType, DataSourceProvider, StackManagerProvider, TransformerResolversManagerProvider, DataSourceInstance, TransformerTransformSchemaStepContextProvider, TransformerBeforeStepContextProvider, TransformerPrepareStepContextProvider, TransformerSchemaVisitStepContextProvider, TransformerValidationStepContextProvider, TransformerResourceHelperProvider, } from './transformer-context';

export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, } from './graphql-api-provider';
export { TransformHostProvider } from './transform-host-provider';
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
//# sourceMappingURL=index.d.ts.map

@@ -7,6 +7,9 @@ import { Duration, Stack } from '@aws-cdk/core';

import { IRole } from '@aws-cdk/aws-iam';
export interface DynamoDbDataSourceOptions extends DataSourceOptions {
readonly serviceRole: IRole;
}
export interface TransformHostProvider {
setAPI(api: GraphqlApiBase): void;
addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, stack?: Stack): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DataSourceOptions, stack?: Stack): DynamoDbDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, stack?: Stack): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, stack?: Stack): NoneDataSource;

@@ -13,0 +16,0 @@ addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource;

@@ -20,8 +20,10 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider';

featureFlags: FeatureFlagProvider;
isProjectUsingDataStore(): boolean;
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined;
}
export declare type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'featureFlags'>;
export declare type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags'>;
export declare type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags'>;
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
{
"name": "@aws-amplify/graphql-transformer-interfaces",
"version": "1.9.0",
"version": "1.9.1-headless-s3-not-for-production.0",
"description": "Amplify GraphQL transformer interface definitions",

@@ -64,3 +64,3 @@ "repository": {

},
"gitHead": "8738095619ba2bc2f01d381d816fc0f65bb3f88f"
"gitHead": "633fe35382bff0520a342b58bef3647ab07ee8f2"
}

@@ -41,4 +41,2 @@ export {

export {
TransformHostProvider
} from './transform-host-provider';
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';

@@ -21,2 +21,9 @@ import { Duration, Stack } from '@aws-cdk/core';

export interface DynamoDbDataSourceOptions extends DataSourceOptions {
/**
* ServiceRole for the Amazon DynamoDb
*/
readonly serviceRole: IRole;
}
export interface TransformHostProvider {

@@ -26,3 +33,3 @@ setAPI(api: GraphqlApiBase): void;

addHttpDataSource(name: string, endpoint: string, options?: DataSourceOptions, stack?: Stack): HttpDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DataSourceOptions, stack?: Stack): DynamoDbDataSource;
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, stack?: Stack): DynamoDbDataSource;
addNoneDataSource(name: string, options?: DataSourceOptions, stack?: Stack): NoneDataSource;

@@ -29,0 +36,0 @@ addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, stack?: Stack): LambdaDataSource;

@@ -22,2 +22,5 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider';

featureFlags: FeatureFlagProvider;
isProjectUsingDataStore(): boolean;
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined;
}

@@ -28,9 +31,9 @@

TransformerContextProvider,
'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags'
'inputDocument' | 'output' | 'providerRegistry' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig'
>;
export type TransformerValidationStepContextProvider = Pick<
TransformerContextProvider,
'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags'
'inputDocument' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig'
>;
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider;
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider;

@@ -7,5 +7,10 @@ import { Stack } from '@aws-cdk/core';

export interface TransformerResolverProvider {
addToSlot: (slotName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider) => void;
addToSlot: (
slotName: string,
requestMappingTemplate: MappingTemplateProvider,
responseMappingTemplate?: MappingTemplateProvider,
dataSource?: DataSourceProvider,
) => void;
synthesize: (context: TransformerContextProvider, api: GraphQLAPIProvider) => void;
mapToStack:(stack: Stack) => void;
mapToStack: (stack: Stack) => void;
}

@@ -12,0 +17,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc