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-beta.0

12

CHANGELOG.md

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

## [1.9.1-beta.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-beta.0) (2021-09-25)
### 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.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 +20,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;

export interface TransformerResourceProvider {
generateResourceName(name: string): string;
generateIAMRoleName(name: string): string;
}
//# sourceMappingURL=resource-resource-provider.d.ts.map

@@ -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-beta.0",
"description": "Amplify GraphQL transformer interface definitions",

@@ -29,18 +29,18 @@ "repository": {

"dependencies": {
"@aws-cdk/aws-appsync": "~1.119.0",
"@aws-cdk/aws-cloudwatch": "~1.119.0",
"@aws-cdk/aws-dynamodb": "~1.119.0",
"@aws-cdk/aws-ec2": "~1.119.0",
"@aws-cdk/aws-elasticsearch": "~1.119.0",
"@aws-cdk/aws-events": "~1.119.0",
"@aws-cdk/aws-iam": "~1.119.0",
"@aws-cdk/aws-kms": "~1.119.0",
"@aws-cdk/aws-lambda": "~1.119.0",
"@aws-cdk/aws-logs": "~1.119.0",
"@aws-cdk/aws-rds": "~1.119.0",
"@aws-cdk/aws-s3": "~1.119.0",
"@aws-cdk/aws-sam": "~1.119.0",
"@aws-cdk/aws-secretsmanager": "~1.119.0",
"@aws-cdk/core": "~1.119.0",
"@aws-cdk/custom-resources": "~1.119.0",
"@aws-cdk/aws-appsync": "~1.124.0",
"@aws-cdk/aws-cloudwatch": "~1.124.0",
"@aws-cdk/aws-dynamodb": "~1.124.0",
"@aws-cdk/aws-ec2": "~1.124.0",
"@aws-cdk/aws-elasticsearch": "~1.124.0",
"@aws-cdk/aws-events": "~1.124.0",
"@aws-cdk/aws-iam": "~1.124.0",
"@aws-cdk/aws-kms": "~1.124.0",
"@aws-cdk/aws-lambda": "~1.124.0",
"@aws-cdk/aws-logs": "~1.124.0",
"@aws-cdk/aws-rds": "~1.124.0",
"@aws-cdk/aws-s3": "~1.124.0",
"@aws-cdk/aws-sam": "~1.124.0",
"@aws-cdk/aws-secretsmanager": "~1.124.0",
"@aws-cdk/core": "~1.124.0",
"@aws-cdk/custom-resources": "~1.124.0",
"constructs": "^3.3.125",

@@ -65,3 +65,3 @@ "graphql": "^14.5.8"

},
"gitHead": "8738095619ba2bc2f01d381d816fc0f65bb3f88f"
"gitHead": "b19b0a0925714bc7b3ab1996982507a96b5f2c4a"
}

@@ -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;

export interface TransformerResourceProvider {
generateResourceName(name: string): string;
generateIAMRoleName(name: string): string;
}

@@ -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

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