@aws-amplify/graphql-transformer-interfaces
Advanced tools
Comparing version 2.2.2-alpha.17 to 2.2.2-cb-test-beta.0
130
API.md
@@ -9,18 +9,7 @@ ## API Report File for "@aws-amplify/graphql-transformer-interfaces" | ||
import { BaseDataSource } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnApiKey } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnDataSource } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnDomain } from 'aws-cdk-lib/aws-elasticsearch'; | ||
import { CfnEventSourceMapping } from 'aws-cdk-lib/aws-lambda'; | ||
import { CfnFunction } from 'aws-cdk-lib/aws-lambda'; | ||
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnGraphQLApi } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnGraphQLSchema } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnParameter } from 'aws-cdk-lib'; | ||
import { CfnParameterProps } from 'aws-cdk-lib'; | ||
import { CfnPolicy } from 'aws-cdk-lib/aws-iam'; | ||
import { CfnResolver } from 'aws-cdk-lib/aws-appsync'; | ||
import { CfnResource } from 'aws-cdk-lib'; | ||
import { CfnRole } from 'aws-cdk-lib/aws-iam'; | ||
import { CfnStack } from 'aws-cdk-lib'; | ||
import { CfnTable } from 'aws-cdk-lib/aws-dynamodb'; | ||
import { Construct } from 'constructs'; | ||
@@ -66,22 +55,2 @@ import { DirectiveDefinitionNode } from 'graphql'; | ||
// @public (undocumented) | ||
export interface AmplifyApiGraphQlResourceStackTemplate { | ||
// Warning: (ae-forgotten-export) The symbol "AppsyncApiStack" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
api?: Partial<AppsyncApiStack>; | ||
// (undocumented) | ||
function?: Partial<FunctionDirectiveStack & AppsyncStackCommon>; | ||
// (undocumented) | ||
http?: Partial<HttpsDirectiveStack & AppsyncStackCommon>; | ||
// (undocumented) | ||
models?: Partial<Record<string, ModelDirectiveStack>>; | ||
// (undocumented) | ||
opensearch?: Partial<OpenSearchDirectiveStack & AppsyncStackCommon>; | ||
// Warning: (ae-forgotten-export) The symbol "PredictionsDirectiveStack" needs to be exported by the entry point index.d.ts | ||
// | ||
// (undocumented) | ||
predictions?: Partial<PredictionsDirectiveStack & AppsyncStackCommon>; | ||
} | ||
// @public (undocumented) | ||
export interface APIIAMResourceProvider { | ||
@@ -163,8 +132,2 @@ // (undocumented) | ||
// @public (undocumented) | ||
export type AppsyncStackCommon = { | ||
resolvers?: Record<string, CfnResolver>; | ||
appsyncFunctions?: Record<string, CfnFunctionConfiguration>; | ||
}; | ||
// Warning: (ae-forgotten-export) The symbol "NoneDataSourceProvider" needs to be exported by the entry point index.d.ts | ||
@@ -200,2 +163,12 @@ // | ||
// @public (undocumented) | ||
export interface FeatureFlagProvider { | ||
// (undocumented) | ||
getBoolean(featureName: string, defaultValue?: boolean): boolean; | ||
// (undocumented) | ||
getNumber(featureName: string, defaultValue?: number): number; | ||
// (undocumented) | ||
getObject(featureName: string, defaultValue?: object): object; | ||
} | ||
// @public (undocumented) | ||
export type FieldMapEntry = { | ||
@@ -207,12 +180,2 @@ originalFieldName: string; | ||
// @public (undocumented) | ||
export interface FunctionDirectiveStack { | ||
// (undocumented) | ||
lambdaDataSource: Record<string, CfnDataSource>; | ||
// (undocumented) | ||
lambdaDataSourceRole: Record<string, CfnRole>; | ||
// (undocumented) | ||
lambdaDataSourceServiceRoleDefaultPolicy: Record<string, CfnPolicy>; | ||
} | ||
// @public (undocumented) | ||
export interface GraphQLAPIProvider extends IConstruct { | ||
@@ -240,12 +203,2 @@ // (undocumented) | ||
// @public (undocumented) | ||
export interface HttpsDirectiveStack { | ||
// (undocumented) | ||
httpDataSourceServiceRole?: Record<string, CfnRole>; | ||
// (undocumented) | ||
httpDataSourceServiceRoleDefaultPolicy?: Record<string, CfnPolicy>; | ||
// (undocumented) | ||
httpsDataSource?: Record<string, CfnDataSource>; | ||
} | ||
// @public (undocumented) | ||
export interface InlineMappingTemplateProvider { | ||
@@ -271,8 +224,3 @@ // (undocumented) | ||
// Warning: (ae-forgotten-export) The symbol "DDBModelDirectiveStack" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public (undocumented) | ||
export type ModelDirectiveStack = AppsyncStackCommon & DDBModelDirectiveStack; | ||
// @public (undocumented) | ||
export type ModelFieldMap = { | ||
@@ -306,24 +254,2 @@ addMappedField: (entry: FieldMapEntry) => ModelFieldMap; | ||
// @public (undocumented) | ||
export interface OpenSearchDirectiveStack { | ||
// (undocumented) | ||
CloudwatchLogsAccess?: CfnPolicy; | ||
// (undocumented) | ||
OpenSearchAccessIAMRole?: CfnRole; | ||
// (undocumented) | ||
OpenSearchAccessIAMRoleDefaultPolicy?: CfnPolicy; | ||
// (undocumented) | ||
OpenSearchDataSource?: CfnDataSource; | ||
// (undocumented) | ||
OpenSearchDomain?: CfnDomain; | ||
// (undocumented) | ||
OpenSearchModelLambdaMapping?: Record<string, CfnEventSourceMapping>; | ||
// (undocumented) | ||
OpenSearchStreamingLambdaFunction?: CfnFunction; | ||
// (undocumented) | ||
OpenSearchStreamingLambdaIAMRole?: CfnRole; | ||
// (undocumented) | ||
OpenSearchStreamingLambdaIAMRoleDefaultPolicy?: CfnPolicy; | ||
} | ||
// @public (undocumented) | ||
export enum QueryFieldType { | ||
@@ -451,3 +377,3 @@ // (undocumented) | ||
// @public (undocumented) | ||
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'sandboxModeEnabled'>; | ||
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'sandboxModeEnabled'>; | ||
@@ -523,2 +449,6 @@ // @public (undocumented) | ||
// (undocumented) | ||
featureFlags: FeatureFlagProvider; | ||
// (undocumented) | ||
filepaths: TransformerFilepathsProvider; | ||
// (undocumented) | ||
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined; | ||
@@ -549,4 +479,2 @@ // (undocumented) | ||
stackManager: StackManagerProvider; | ||
// (undocumented) | ||
transformParameters: TransformParameters; | ||
} | ||
@@ -565,2 +493,12 @@ | ||
// @public (undocumented) | ||
export interface TransformerFilepathsProvider { | ||
// (undocumented) | ||
findProjectRoot: () => string; | ||
// (undocumented) | ||
getBackendDirPath: () => string; | ||
// (undocumented) | ||
getCurrentCloudBackendDirPath: () => string; | ||
} | ||
// @public (undocumented) | ||
export type TransformerLog = { | ||
@@ -710,7 +648,7 @@ message: string; | ||
// (undocumented) | ||
featureFlags: FeatureFlagProvider; | ||
// (undocumented) | ||
inputDocument: DocumentNode; | ||
// (undocumented) | ||
schemaHelper: TransformerSchemaHelperProvider; | ||
// (undocumented) | ||
transformParameters: TransformParameters; | ||
} | ||
@@ -795,3 +733,3 @@ | ||
// @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' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'sandboxModeEnabled'>; | ||
@@ -807,3 +745,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' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'sandboxModeEnabled' | 'resourceHelper' | 'resolvers' | 'stackManager'>; | ||
@@ -843,12 +781,2 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export type TransformParameters = { | ||
shouldDeepMergeDirectiveConfigDefaults: boolean; | ||
useSubUsernameForDefaultIdentityClaim: boolean; | ||
populateOwnerFieldForStaticGroupAuth: boolean; | ||
secondaryKeyAsGSI: boolean; | ||
enableAutoIndexQueryNames: boolean; | ||
respectPrimaryKeyAttributesOnConnectionField: boolean; | ||
}; | ||
// @public (undocumented) | ||
export interface UserPoolConfig { | ||
@@ -855,0 +783,0 @@ // (undocumented) |
@@ -6,2 +6,6 @@ # Change Log | ||
## [2.2.2-cb-test-beta.0](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-cb-test-beta.0) (2023-06-21) | ||
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces | ||
## [2.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@2.2.0...@aws-amplify/graphql-transformer-interfaces@2.2.1) (2023-06-05) | ||
@@ -8,0 +12,0 @@ |
export * from './transformer-context'; | ||
export { TransformerPluginProvider, TransformerPluginType } from './transformer-plugin-provider'; | ||
export { MutationFieldType, QueryFieldType, SubscriptionFieldType, TransformerModelProvider, TransformerModelEnhancementProvider, TransformerAuthProvider, } 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, SearchableDataSourceOptions, } from './graphql-api-provider'; | ||
@@ -8,4 +9,2 @@ export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider'; | ||
export { TransformerLog, TransformerLogLevel } from './transformer-log'; | ||
export { AmplifyApiGraphQlResourceStackTemplate, AppsyncStackCommon, FunctionDirectiveStack, HttpsDirectiveStack, ModelDirectiveStack, OpenSearchDirectiveStack, } from './amplify-api-resource-stack-types'; | ||
export type { TransformParameters } from './transformer-context/transform-parameters'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,2 +10,3 @@ export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, } from './transformer-datasource-provider'; | ||
export { StackManagerProvider } from './stack-manager-provider'; | ||
export { TransformerFilepathsProvider } from './transformer-filepaths-provider'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,3 +9,4 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider'; | ||
import { TransformerResourceHelperProvider } from './resource-resource-provider'; | ||
import { TransformParameters } from './transform-parameters'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
import { TransformerFilepathsProvider } from './transformer-filepaths-provider'; | ||
export interface TransformerContextMetadataProvider { | ||
@@ -31,13 +32,14 @@ set<T>(key: string, value: T): void; | ||
resourceHelper: TransformerResourceHelperProvider; | ||
featureFlags: FeatureFlagProvider; | ||
authConfig: AppSyncAuthConfiguration; | ||
sandboxModeEnabled: boolean; | ||
transformParameters: TransformParameters; | ||
filepaths: TransformerFilepathsProvider; | ||
isProjectUsingDataStore(): boolean; | ||
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined; | ||
} | ||
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' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'sandboxModeEnabled'>; | ||
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'sandboxModeEnabled'>; | ||
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'modelToDatasourceMap' | 'output' | 'providerRegistry' | 'dataSources' | 'featureFlags' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'sandboxModeEnabled' | 'resourceHelper' | 'resolvers' | 'stackManager'>; | ||
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider; | ||
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider; | ||
//# sourceMappingURL=transformer-context-provider.d.ts.map |
import { DocumentNode } from 'graphql'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
import { TransformerSchemaHelperProvider } from './schema-helper-provider'; | ||
import { TransformParameters } from './transform-parameters'; | ||
export interface TransformerPreProcessContextProvider { | ||
inputDocument: DocumentNode; | ||
transformParameters: TransformParameters; | ||
featureFlags: FeatureFlagProvider; | ||
schemaHelper: TransformerSchemaHelperProvider; | ||
} | ||
//# sourceMappingURL=transformer-preprocess-context-provider.d.ts.map |
{ | ||
"name": "@aws-amplify/graphql-transformer-interfaces", | ||
"version": "2.2.2-alpha.17+56fc36017", | ||
"version": "2.2.2-cb-test-beta.0", | ||
"description": "Amplify GraphQL transformer interface definitions", | ||
@@ -50,3 +50,3 @@ "repository": { | ||
}, | ||
"gitHead": "56fc36017abaaf2f12d7543ea715b35831f37678" | ||
"gitHead": "dc517c962adc5a1c12a36eadd4c77c0c33acc2fd" | ||
} |
@@ -11,2 +11,4 @@ export * from './transformer-context'; | ||
} from './transformer-model-provider'; | ||
export { FeatureFlagProvider } from './feature-flag-provider'; | ||
export { | ||
@@ -33,3 +35,5 @@ GraphQLAPIProvider, | ||
} from './graphql-api-provider'; | ||
export { TransformHostProvider, DynamoDbDataSourceOptions } from './transform-host-provider'; | ||
export { | ||
@@ -42,11 +46,3 @@ DeploymentResources, | ||
} from './deployment-resources'; | ||
export { TransformerLog, TransformerLogLevel } from './transformer-log'; | ||
export { | ||
AmplifyApiGraphQlResourceStackTemplate, | ||
AppsyncStackCommon, | ||
FunctionDirectiveStack, | ||
HttpsDirectiveStack, | ||
ModelDirectiveStack, | ||
OpenSearchDirectiveStack, | ||
} from './amplify-api-resource-stack-types'; | ||
export type { TransformParameters } from './transformer-context/transform-parameters'; |
@@ -23,1 +23,2 @@ export { | ||
export { StackManagerProvider } from './stack-manager-provider'; | ||
export { TransformerFilepathsProvider } from './transformer-filepaths-provider'; |
@@ -9,3 +9,4 @@ import { TransformerResolversManagerProvider } from './transformer-resolver-provider'; | ||
import { TransformerResourceHelperProvider } from './resource-resource-provider'; | ||
import { TransformParameters } from './transform-parameters'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
import { TransformerFilepathsProvider } from './transformer-filepaths-provider'; | ||
@@ -33,5 +34,6 @@ export interface TransformerContextMetadataProvider { | ||
resourceHelper: TransformerResourceHelperProvider; | ||
featureFlags: FeatureFlagProvider; | ||
authConfig: AppSyncAuthConfiguration; | ||
sandboxModeEnabled: boolean; | ||
transformParameters: TransformParameters; | ||
filepaths: TransformerFilepathsProvider; | ||
@@ -46,3 +48,3 @@ isProjectUsingDataStore(): boolean; | ||
| 'modelToDatasourceMap' | ||
| 'transformParameters' | ||
| 'featureFlags' | ||
| 'isProjectUsingDataStore' | ||
@@ -61,3 +63,3 @@ | 'getResolverConfig' | ||
| 'providerRegistry' | ||
| 'transformParameters' | ||
| 'featureFlags' | ||
| 'isProjectUsingDataStore' | ||
@@ -78,3 +80,3 @@ | 'getResolverConfig' | ||
| 'dataSources' | ||
| 'transformParameters' | ||
| 'featureFlags' | ||
| 'isProjectUsingDataStore' | ||
@@ -81,0 +83,0 @@ | 'getResolverConfig' |
import { DocumentNode } from 'graphql'; | ||
import { FeatureFlagProvider } from '../feature-flag-provider'; | ||
import { TransformerSchemaHelperProvider } from './schema-helper-provider'; | ||
import { TransformParameters } from './transform-parameters'; | ||
export interface TransformerPreProcessContextProvider { | ||
inputDocument: DocumentNode; | ||
transformParameters: TransformParameters; | ||
featureFlags: FeatureFlagProvider; | ||
schemaHelper: TransformerSchemaHelperProvider; | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
0
505626
101
1590