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
10
Versions
322
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 2.3.0-rds.0 to 2.3.0

23

API.md

@@ -331,2 +331,9 @@ ## API Report File for "@aws-amplify/graphql-transformer-interfaces"

// @public (undocumented)
export type RDSLayerMapping = {
[key: string]: {
layerRegion: string;
};
};
// @public (undocumented)
type ReadonlyArray_2<T> = Readonly<Array<Readonly<T>>>;

@@ -444,3 +451,3 @@ export { ReadonlyArray_2 as ReadonlyArray }

// @public (undocumented)
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'sandboxModeEnabled'>;
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager'>;

@@ -534,2 +541,4 @@ // @public (undocumented)

// (undocumented)
readonly rdsLayerMapping?: RDSLayerMapping;
// (undocumented)
resolvers: TransformerResolversManagerProvider;

@@ -539,4 +548,2 @@ // (undocumented)

// (undocumented)
sandboxModeEnabled: boolean;
// (undocumented)
readonly sqlLambdaVpcConfig?: VpcConfig;

@@ -788,3 +795,3 @@ // (undocumented)

// @public (undocumented)
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'sandboxModeEnabled'>;
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper'>;

@@ -800,3 +807,3 @@ // @public (undocumented)

// @public (undocumented)
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'sandboxModeEnabled' | 'resourceHelper' | 'resolvers' | 'stackManager'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager'>;

@@ -838,7 +845,11 @@ // @public (undocumented)

shouldDeepMergeDirectiveConfigDefaults: boolean;
disableResolverDeduping: boolean;
sandboxModeEnabled: boolean;
useSubUsernameForDefaultIdentityClaim: boolean;
populateOwnerFieldForStaticGroupAuth: boolean;
suppressApiKeyGeneration: boolean;
secondaryKeyAsGSI: boolean;
enableAutoIndexQueryNames: boolean;
respectPrimaryKeyAttributesOnConnectionField: boolean;
enableSearchNodeToNodeEncryption: boolean;
};

@@ -861,3 +872,3 @@

//
// src/graphql-api-provider.ts:38:3 - (ae-forgotten-export) The symbol "OpenIDConnectConfig" needs to be exported by the entry point index.d.ts
// src/graphql-api-provider.ts:34:3 - (ae-forgotten-export) The symbol "OpenIDConnectConfig" needs to be exported by the entry point index.d.ts

@@ -864,0 +875,0 @@ // (No @packageDocumentation comment for this package)

@@ -6,8 +6,21 @@ # Change Log

# [2.3.0-rds.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.2...@aws-amplify/graphql-transformer-interfaces@2.3.0-rds.0) (2023-06-21)
# [2.3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.5...@aws-amplify/graphql-transformer-interfaces@2.3.0) (2023-07-21)
### Features
- **graphql:** pull rds latest layer ([8325ef5](https://github.com/aws-amplify/amplify-category-api/commit/8325ef559b4bd5d86e9502bb1dc2cff833e7db0c))
- **graphql:** vpc support for sql lambda ([9cc4407](https://github.com/aws-amplify/amplify-category-api/commit/9cc4407bdc4799fe548919808961911a3d5995c7))
## [2.2.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.4...@aws-amplify/graphql-transformer-interfaces@2.2.5) (2023-07-17)
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
## [2.2.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.3...@aws-amplify/graphql-transformer-interfaces@2.2.4) (2023-07-07)
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
## [2.2.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.2...@aws-amplify/graphql-transformer-interfaces@2.2.3) (2023-06-29)
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
## [2.2.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.1...@aws-amplify/graphql-transformer-interfaces@2.2.2) (2023-06-20)

@@ -14,0 +27,0 @@

@@ -54,2 +54,7 @@ import { CfnResource, IAsset } from 'aws-cdk-lib';

};
export type RDSLayerMapping = {
[key: string]: {
layerRegion: string;
};
};
export interface AppSyncFunctionConfigurationProvider extends IConstruct {

@@ -56,0 +61,0 @@ readonly arn: string;

export * from './transformer-context';
export { TransformerPluginProvider, TransformerPluginType } from './transformer-plugin-provider';
export { MutationFieldType, QueryFieldType, SubscriptionFieldType, TransformerModelProvider, TransformerModelEnhancementProvider, TransformerAuthProvider, } from './transformer-model-provider';
export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, AppSyncAuthConfiguration, AppSyncAuthConfigurationAPIKeyEntry, AppSyncAuthConfigurationEntry, AppSyncAuthConfigurationIAMEntry, ApiKeyConfig, AppSyncAuthConfigurationOIDCEntry, AppSyncAuthConfigurationUserPoolEntry, AppSyncAuthMode, UserPoolConfig, VpcConfig, SearchableDataSourceOptions, } from './graphql-api-provider';
export { GraphQLAPIProvider, AppSyncFunctionConfigurationProvider, DataSourceOptions, MappingTemplateProvider, S3MappingTemplateProvider, S3MappingFunctionCodeProvider, InlineMappingTemplateProvider, APIIAMResourceProvider, TemplateType as MappingTemplateType, AppSyncAuthConfiguration, AppSyncAuthConfigurationAPIKeyEntry, AppSyncAuthConfigurationEntry, AppSyncAuthConfigurationIAMEntry, ApiKeyConfig, AppSyncAuthConfigurationOIDCEntry, AppSyncAuthConfigurationUserPoolEntry, AppSyncAuthMode, UserPoolConfig, VpcConfig, SearchableDataSourceOptions, RDSLayerMapping, } from './graphql-api-provider';
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template, } from './deployment-resources';
export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template } from './deployment-resources';
export { TransformerLog, TransformerLogLevel } from './transformer-log';

@@ -8,0 +8,0 @@ export { AmplifyApiGraphQlResourceStackTemplate, AppsyncStackCommon, FunctionDirectiveStack, HttpsDirectiveStack, ModelDirectiveStack, OpenSearchDirectiveStack, } from './amplify-api-resource-stack-types';

@@ -1,2 +0,2 @@

import { AmplifyApiGraphQlResourceStackTemplate } from "../amplify-api-resource-stack-types";
import { AmplifyApiGraphQlResourceStackTemplate } from '../amplify-api-resource-stack-types';
export interface OverridesProvider {

@@ -3,0 +3,0 @@ (): AmplifyApiGraphQlResourceStackTemplate;

export type TransformParameters = {
shouldDeepMergeDirectiveConfigDefaults: boolean;
disableResolverDeduping: boolean;
sandboxModeEnabled: boolean;
useSubUsernameForDefaultIdentityClaim: boolean;
populateOwnerFieldForStaticGroupAuth: boolean;
suppressApiKeyGeneration: boolean;
secondaryKeyAsGSI: boolean;
enableAutoIndexQueryNames: boolean;
respectPrimaryKeyAttributesOnConnectionField: boolean;
enableSearchNodeToNodeEncryption: boolean;
};
//# sourceMappingURL=transform-parameters.d.ts.map

@@ -1,10 +0,10 @@

import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
import { DocumentNode } from 'graphql';
import { AppSyncAuthConfiguration, GraphQLAPIProvider, RDSLayerMapping, VpcConfig } from '../graphql-api-provider';
import { TransformerDataSourceManagerProvider, DatasourceType } from './transformer-datasource-provider';
import { TransformerProviderRegistry } from './transformer-provider-registry';
import { DocumentNode } from 'graphql';
import { TransformerContextOutputProvider } from './transformer-context-output-provider';
import { StackManagerProvider } from './stack-manager-provider';
import { AppSyncAuthConfiguration, GraphQLAPIProvider, VpcConfig } from '../graphql-api-provider';
import { TransformerResourceHelperProvider } from './resource-resource-provider';
import { TransformParameters } from './transform-parameters';
import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
export interface TransformerContextMetadataProvider {

@@ -31,3 +31,2 @@ set<T>(key: string, value: T): void;

authConfig: AppSyncAuthConfiguration;
sandboxModeEnabled: boolean;
transformParameters: TransformParameters;

@@ -37,8 +36,9 @@ isProjectUsingDataStore(): boolean;

readonly sqlLambdaVpcConfig?: VpcConfig;
readonly rdsLayerMapping?: RDSLayerMapping;
}
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'sandboxModeEnabled'>;
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'sandboxModeEnabled'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'sandboxModeEnabled' | 'resourceHelper' | 'resolvers' | 'stackManager'>;
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager'>;
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper'>;
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager'>;
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider;
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider;
//# sourceMappingURL=transformer-context-provider.d.ts.map
import { ObjectTypeDefinitionNode, DirectiveDefinitionNode, InputValueDefinitionNode } from 'graphql';
import { TransformerResolverProvider, TransformerContextProvider, AppSyncDataSourceType, DataSourceInstance } from './transformer-context';
import { TransformerPluginProvider } from '.';
import { TransformerResolverProvider, TransformerContextProvider, AppSyncDataSourceType, DataSourceInstance } from './transformer-context';
export declare enum QueryFieldType {

@@ -5,0 +5,0 @@ GET = "GET",

{
"name": "@aws-amplify/graphql-transformer-interfaces",
"version": "2.3.0-rds.0",
"version": "2.3.0",
"description": "Amplify GraphQL transformer interface definitions",

@@ -30,6 +30,8 @@ "repository": {

"dependencies": {
"aws-cdk-lib": "~2.68.0",
"constructs": "^10.0.5",
"graphql": "^15.5.0"
},
"peerDependencies": {
"aws-cdk-lib": "^2.80.0",
"constructs": "^10.0.5"
},
"jest": {

@@ -51,3 +53,3 @@ "transform": {

},
"gitHead": "2d85e1f0f0fc383c0bbaf7269258a8ad6d527860"
"gitHead": "28a89d960eaf3be3b729af567c83442e374e2443"
}
// Amplify generated Types for API - override.ts
import {
CfnApiKey, CfnDataSource, CfnFunctionConfiguration, CfnGraphQLApi, CfnGraphQLSchema, CfnResolver,
} from 'aws-cdk-lib/aws-appsync';
import { CfnApiKey, CfnDataSource, CfnFunctionConfiguration, CfnGraphQLApi, CfnGraphQLSchema, CfnResolver } from 'aws-cdk-lib/aws-appsync';
import { CfnTable } from 'aws-cdk-lib/aws-dynamodb';

@@ -7,0 +5,0 @@ import { CfnPolicy, CfnRole } from 'aws-cdk-lib/aws-iam';

@@ -1,7 +0,3 @@

import {
CfnResource, IAsset,
} from 'aws-cdk-lib';
import {
Construct, IConstruct,
} from 'constructs';
import { CfnResource, IAsset } from 'aws-cdk-lib';
import { Construct, IConstruct } from 'constructs';
import { Grant, IGrantable, IRole } from 'aws-cdk-lib/aws-iam';

@@ -76,2 +72,8 @@ import { TransformHostProvider } from './transform-host-provider';

export type RDSLayerMapping = {
[key: string]: {
layerRegion: string;
};
};
export interface AppSyncFunctionConfigurationProvider extends IConstruct {

@@ -78,0 +80,0 @@ readonly arn: string;

@@ -32,11 +32,6 @@ export * from './transformer-context';

SearchableDataSourceOptions,
RDSLayerMapping,
} from './graphql-api-provider';
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider';
export {
DeploymentResources,
NestedStacks,
ResolversFunctionsAndSchema,
StackMapping,
Template,
} from './deployment-resources';
export { DeploymentResources, NestedStacks, ResolversFunctionsAndSchema, StackMapping, Template } from './deployment-resources';
export { TransformerLog, TransformerLogLevel } from './transformer-log';

@@ -43,0 +38,0 @@ export {

@@ -1,2 +0,2 @@

import { AmplifyApiGraphQlResourceStackTemplate } from "../amplify-api-resource-stack-types";
import { AmplifyApiGraphQlResourceStackTemplate } from '../amplify-api-resource-stack-types';

@@ -3,0 +3,0 @@ export interface OverridesProvider {

@@ -10,2 +10,4 @@ /**

shouldDeepMergeDirectiveConfigDefaults: boolean;
disableResolverDeduping: boolean;
sandboxModeEnabled: boolean;

@@ -15,2 +17,3 @@ // Auth Params

populateOwnerFieldForStaticGroupAuth: boolean;
suppressApiKeyGeneration: boolean;

@@ -23,2 +26,5 @@ // Index Params

respectPrimaryKeyAttributesOnConnectionField: boolean;
// Search Params
enableSearchNodeToNodeEncryption: boolean;
};

@@ -1,10 +0,10 @@

import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
import { DocumentNode } from 'graphql';
import { AppSyncAuthConfiguration, GraphQLAPIProvider, RDSLayerMapping, VpcConfig } from '../graphql-api-provider';
import { TransformerDataSourceManagerProvider, DatasourceType } from './transformer-datasource-provider';
import { TransformerProviderRegistry } from './transformer-provider-registry';
import { DocumentNode } from 'graphql';
import { TransformerContextOutputProvider } from './transformer-context-output-provider';
import { StackManagerProvider } from './stack-manager-provider';
import { AppSyncAuthConfiguration, GraphQLAPIProvider, VpcConfig } from '../graphql-api-provider';
import { TransformerResourceHelperProvider } from './resource-resource-provider';
import { TransformParameters } from './transform-parameters';
import { TransformerResolversManagerProvider } from './transformer-resolver-provider';

@@ -17,3 +17,3 @@ export interface TransformerContextMetadataProvider {

export type TransformerSecrets = {[key: string]: any};
export type TransformerSecrets = { [key: string]: any };

@@ -28,3 +28,3 @@ export interface TransformerContextProvider {

modelToDatasourceMap: Map<string, DatasourceType>;
datasourceSecretParameterLocations: Map<string, TransformerSecrets>,
datasourceSecretParameterLocations: Map<string, TransformerSecrets>;
output: TransformerContextOutputProvider;

@@ -35,3 +35,2 @@ stackManager: StackManagerProvider;

authConfig: AppSyncAuthConfiguration;
sandboxModeEnabled: boolean;
transformParameters: TransformParameters;

@@ -42,2 +41,3 @@

readonly sqlLambdaVpcConfig?: VpcConfig;
readonly rdsLayerMapping?: RDSLayerMapping;
}

@@ -54,3 +54,2 @@

| 'stackManager'
| 'sandboxModeEnabled'
>;

@@ -70,3 +69,2 @@

| 'resourceHelper'
| 'sandboxModeEnabled'
>;

@@ -86,3 +84,2 @@

| 'authConfig'
| 'sandboxModeEnabled'
| 'resourceHelper'

@@ -89,0 +86,0 @@ | 'resolvers'

@@ -10,2 +10,2 @@ export enum TransformerLogLevel {

level: TransformerLogLevel;
}
};
import { ObjectTypeDefinitionNode, DirectiveDefinitionNode, InputValueDefinitionNode } from 'graphql';
import { TransformerResolverProvider, TransformerContextProvider, AppSyncDataSourceType, DataSourceInstance } from './transformer-context';
import { TransformerPluginProvider } from '.';
import {
TransformerResolverProvider, TransformerContextProvider, AppSyncDataSourceType, DataSourceInstance,
} from './transformer-context';

@@ -152,3 +150,3 @@ /**

*/
export type TransformerAuthProvider = TransformerPluginProvider
export type TransformerAuthProvider = TransformerPluginProvider;

@@ -158,2 +156,2 @@ /**

*/
export type TransformerModelEnhancementProvider = Partial<TransformerModelProvider>
export type TransformerModelEnhancementProvider = Partial<TransformerModelProvider>;

@@ -13,3 +13,4 @@ import {

DirectiveDefinitionNode,
TypeDefinitionNode, DocumentNode,
TypeDefinitionNode,
DocumentNode,
} from 'graphql';

@@ -16,0 +17,0 @@ import {

@@ -7,3 +7,3 @@ {

"composite": true
},
}
}

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

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