@aws-amplify/graphql-api-construct 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +202 -201
- package/API.md +7 -7
- package/CHANGELOG.md +12 -0
- package/README.md +210 -20
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.d.ts +0 -7
- package/lib/amplify-graphql-api.js +18 -76
- package/lib/amplify-graphql-definition.d.ts +1 -13
- package/lib/amplify-graphql-definition.js +27 -16
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/internal/data-source-config.d.ts +14 -20
- package/lib/internal/data-source-config.js +110 -38
- package/lib/internal/model-type-name.d.ts +2 -2
- package/lib/internal/model-type-name.js +4 -4
- package/lib/{model-datasource-strategy.d.ts → model-datasource-strategy-types.d.ts} +17 -11
- package/lib/model-datasource-strategy-types.js +10 -0
- package/lib/sql-model-datasource-strategy.d.ts +1 -1
- package/lib/sql-model-datasource-strategy.js +4 -4
- package/lib/types.d.ts +1 -9
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +6 -10
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +2 -7
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +13 -9
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +7 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +4 -4
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +3 -5
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +12 -34
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +13 -9
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +3 -4
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +3 -3
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +2 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +7 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts +1 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +61 -68
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +8 -8
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +32 -36
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +70 -34
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +15 -10
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +11 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/API.md +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +14 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +6 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +8 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +5 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +18 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +18 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +54 -54
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +14 -10
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +12 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +31 -25
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +12 -8
- package/node_modules/@aws-amplify/graphql-transformer/API.md +3 -17
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +4 -14
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +8 -15
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +20 -16
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +30 -57
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +97 -30
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +7 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +22 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.js +4 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +6 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js +4 -11
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts +0 -9
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts +12 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js +94 -39
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +10 -22
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js +3 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js +16 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.js +15 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/model-datasource-strategies.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts +16 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js +21 -5
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/graphql-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +3 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +5 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +11 -8
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +64 -52
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +0 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +1 -58
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.d.ts +22 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.js +28 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js +7 -6
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +9 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +32 -68
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +11 -7
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js +1 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts +11 -18
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts +0 -15
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.js +1 -10
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +7 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +50 -18
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/index.ts +0 -6
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +14 -21
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-datasource-provider.ts +0 -43
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +8 -3
- package/node_modules/graphql-transformer-common/API.md +0 -15
- package/node_modules/graphql-transformer-common/CHANGELOG.md +6 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +0 -15
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +0 -15
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +8 -3
- package/package.json +24 -19
- package/src/amplify-graphql-api.ts +19 -91
- package/src/amplify-graphql-definition.ts +41 -17
- package/src/index.ts +1 -1
- package/src/internal/data-source-config.ts +146 -52
- package/src/internal/model-type-name.ts +3 -2
- package/src/{model-datasource-strategy.ts → model-datasource-strategy-types.ts} +20 -12
- package/src/sql-model-datasource-strategy.ts +3 -3
- package/src/types.ts +1 -9
- package/lib/model-datasource-strategy.js +0 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.js +0 -15
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/provision-strategy-utils.js.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getResourceName = exports.setResourceName = void 0;
|
3
|
+
exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getDefaultStrategyNameForDbType = exports.getResourceName = exports.setResourceName = void 0;
|
4
4
|
const resourceNameKey = 'graphqltransformer:resourceName';
|
5
5
|
const setResourceName = (scope, { name, setOnDefaultChild }) => {
|
6
6
|
scope.node.addMetadata(resourceNameKey, name);
|
@@ -18,4 +18,31 @@ const getResourceName = (scope) => {
|
|
18
18
|
return referencesWithName.length === 1 ? referencesWithName[0] : undefined;
|
19
19
|
};
|
20
20
|
exports.getResourceName = getResourceName;
|
21
|
+
const getDefaultStrategyNameForDbType = (dbType) => `${dbType}Strategy`;
|
22
|
+
exports.getDefaultStrategyNameForDbType = getDefaultStrategyNameForDbType;
|
23
|
+
const getResourceNamesForStrategy = (strategy) => (0, exports.getResourceNamesForStrategyName)(strategy.name);
|
24
|
+
exports.getResourceNamesForStrategy = getResourceNamesForStrategy;
|
25
|
+
const getResourceNamesForStrategyName = (strategyName) => {
|
26
|
+
const sqlLambdaFunction = `SQLFunction${strategyName}`;
|
27
|
+
const resourceNames = {
|
28
|
+
sqlLambdaAliasLogicalId: `${sqlLambdaFunction}ProvConcurAlias`,
|
29
|
+
sqlLambdaAliasName: 'PCAlias',
|
30
|
+
sqlLambdaDataSource: `SQLLambdaDataSource${strategyName}`,
|
31
|
+
sqlLambdaExecutionRole: `SQLLambdaRole${strategyName}`,
|
32
|
+
sqlLambdaLayerVersion: `SQLLambdaLayerVersion${strategyName}`,
|
33
|
+
sqlLambdaExecutionRolePolicy: `SQLLambdaRolePolicy${strategyName}`,
|
34
|
+
sqlLambdaFunction,
|
35
|
+
sqlLayerVersionMapping: `SQLLayerVersionMapping${strategyName}`,
|
36
|
+
sqlLayerVersionResolverCustomResource: `SQLLayerVersionCustomResource${strategyName}`,
|
37
|
+
sqlPatchingLambdaExecutionRole: `SQLPatchingLambdaRole${strategyName}`,
|
38
|
+
sqlPatchingLambdaExecutionRolePolicy: `SQLPatchingLambdaRolePolicy${strategyName}`,
|
39
|
+
sqlPatchingLambdaFunction: `SQLLambdaLayerPatchingFunction${strategyName}`,
|
40
|
+
sqlPatchingSubscription: `SQLLambdaLayerPatchingSubscription${strategyName}`,
|
41
|
+
sqlPatchingTopic: `SQLLambdaLayerPatchingTopic${strategyName}`,
|
42
|
+
sqlStack: `SQLApiStack${strategyName}`,
|
43
|
+
sqlVpcEndpointPrefix: `SQLVpcEndpoint${strategyName}`,
|
44
|
+
};
|
45
|
+
return resourceNames;
|
46
|
+
};
|
47
|
+
exports.getResourceNamesForStrategyName = getResourceNamesForStrategyName;
|
21
48
|
//# sourceMappingURL=resource-name.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource-name.js","sourceRoot":"","sources":["../../src/utils/resource-name.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"resource-name.js","sourceRoot":"","sources":["../../src/utils/resource-name.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe,GAAG,iCAAiC,CAAC;AAanD,MAAM,eAAe,GAAG,CAAC,KAAgB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAwB,EAAQ,EAAE;IAC3G,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IAC9C,IAAI,iBAAiB,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE;QAC3E,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;KACjE;AACH,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B;AAOF,MAAM,0BAA0B,GAAG,CAAC,QAAuB,EAAsB,EAAE,CACjF,QAAQ,CAAC,IAAI,KAAK,eAAe,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAOrG,MAAM,SAAS,GAAG,CAAC,CAAqB,EAAe,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC;AAOnE,MAAM,eAAe,GAAG,CAAC,KAAgB,EAAsB,EAAE;IACtE,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACjG,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACxI,OAAO,kBAAkB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7E,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B;AA6EK,MAAM,+BAA+B,GAAG,CAAC,MAAwC,EAAU,EAAE,CAAC,GAAG,MAAM,UAAU,CAAC;AAA5G,QAAA,+BAA+B,mCAA6E;AAKlH,MAAM,2BAA2B,GAAG,CAAC,QAA0C,EAA0B,EAAE,CAChH,IAAA,uCAA+B,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AADpC,QAAA,2BAA2B,+BACS;AAK1C,MAAM,+BAA+B,GAAG,CAAC,YAAoB,EAA0B,EAAE;IAC9F,MAAM,iBAAiB,GAAG,cAAc,YAAY,EAAE,CAAC;IACvD,MAAM,aAAa,GAA2B;QAC5C,uBAAuB,EAAE,GAAG,iBAAiB,iBAAiB;QAC9D,kBAAkB,EAAE,SAAS;QAC7B,mBAAmB,EAAE,sBAAsB,YAAY,EAAE;QACzD,sBAAsB,EAAE,gBAAgB,YAAY,EAAE;QACtD,qBAAqB,EAAE,wBAAwB,YAAY,EAAE;QAC7D,4BAA4B,EAAE,sBAAsB,YAAY,EAAE;QAClE,iBAAiB;QACjB,sBAAsB,EAAE,yBAAyB,YAAY,EAAE;QAC/D,qCAAqC,EAAE,gCAAgC,YAAY,EAAE;QACrF,8BAA8B,EAAE,wBAAwB,YAAY,EAAE;QACtE,oCAAoC,EAAE,8BAA8B,YAAY,EAAE;QAClF,yBAAyB,EAAE,iCAAiC,YAAY,EAAE;QAC1E,uBAAuB,EAAE,qCAAqC,YAAY,EAAE;QAC5E,gBAAgB,EAAE,8BAA8B,YAAY,EAAE;QAC9D,QAAQ,EAAE,cAAc,YAAY,EAAE;QACtC,oBAAoB,EAAE,iBAAiB,YAAY,EAAE;KACtD,CAAC;IAEF,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAtBW,QAAA,+BAA+B,mCAsB1C"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { ModelDataSourceStrategyDbType, TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
2
|
import { ObjectTypeDefinitionNode, TypeNode } from 'graphql';
|
3
3
|
export declare const getKeySchema: (table: any, indexName?: string) => any;
|
4
4
|
export declare const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefinitionNode) => any;
|
5
5
|
export declare const getSortKeyFieldNames: (type: ObjectTypeDefinitionNode) => string[];
|
6
|
-
export declare const
|
6
|
+
export declare const getStrategyDbTypeFromTypeNode: (type: TypeNode, ctx: TransformerContextProvider) => ModelDataSourceStrategyDbType;
|
7
7
|
//# sourceMappingURL=schema-utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAGxH,OAAO,EAAiB,wBAAwB,EAAmB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAO7F,eAAO,MAAM,YAAY,UAAW,GAAG,cAAc,MAAM,KAAG,GAI7B,CAAC;AAKlC,eAAO,MAAM,QAAQ,QAAS,0BAA0B,UAAU,wBAAwB,KAAG,GAS5F,CAAC;AAKF,eAAO,MAAM,oBAAoB,SAAU,wBAAwB,KAAG,MAAM,EAe3E,CAAC;AAKF,eAAO,MAAM,6BAA6B,SAAU,QAAQ,OAAO,0BAA0B,KAAG,6BAI/F,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getStrategyDbTypeFromTypeNode = exports.getSortKeyFieldNames = exports.getTable = exports.getKeySchema = void 0;
|
4
4
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
5
|
-
const
|
5
|
+
const model_datasource_strategy_utils_1 = require("./model-datasource-strategy-utils");
|
6
6
|
const getKeySchema = (table, indexName) => {
|
7
7
|
var _a, _b, _c;
|
8
8
|
return (_c = (_b = ((_a = table.globalSecondaryIndexes.find((gsi) => gsi.indexName === indexName)) !== null && _a !== void 0 ? _a : table.localSecondaryIndexes.find((gsi) => gsi.indexName === indexName))) === null || _b === void 0 ? void 0 : _b.keySchema) !== null && _c !== void 0 ? _c : table.keySchema;
|
@@ -34,9 +34,10 @@ const getSortKeyFieldNames = (type) => {
|
|
34
34
|
return sortKeyFieldNames;
|
35
35
|
};
|
36
36
|
exports.getSortKeyFieldNames = getSortKeyFieldNames;
|
37
|
-
const
|
38
|
-
|
39
|
-
|
37
|
+
const getStrategyDbTypeFromTypeNode = (type, ctx) => {
|
38
|
+
const baseTypeName = (0, graphql_transformer_common_1.getBaseType)(type);
|
39
|
+
const strategy = (0, model_datasource_strategy_utils_1.getModelDataSourceStrategy)(ctx, baseTypeName);
|
40
|
+
return strategy.dbType;
|
40
41
|
};
|
41
|
-
exports.
|
42
|
+
exports.getStrategyDbTypeFromTypeNode = getStrategyDbTypeFromTypeNode;
|
42
43
|
//# sourceMappingURL=schema-utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema-utils.js","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":";;;AAKA,2EAA2E;AAC3E,
|
1
|
+
{"version":3,"file":"schema-utils.js","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":";;;AAKA,2EAA2E;AAC3E,uFAA+E;AAKxE,MAAM,YAAY,GAAG,CAAC,KAAU,EAAE,SAAkB,EAAO,EAAE;;IAClE,OAAA,MAAA,MAAA,CACE,MAAA,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,mCAC5E,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAC5E,0CAAE,SAAS,mCAAI,KAAK,CAAC,SAAS,CAAA;CAAA,CAAC;AAJrB,QAAA,YAAY,gBAIS;AAK3B,MAAM,QAAQ,GAAG,CAAC,GAA+B,EAAE,MAAgC,EAAO,EAAE;IACjG,MAAM,aAAa,GAAG,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAuB,CAAC;IACxE,MAAM,SAAS,GAAG,6CAAgB,CAAC,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3E,MAAM,KAAK,GAAG,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAU,CAAC;IAExE,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;KAC1D;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB;AAKK,MAAM,oBAAoB,GAAG,CAAC,IAA8B,EAAY,EAAE;IAC/E,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,IAAI,CAAC,MAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,KAAK,CAAC,UAAW,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;;YACtC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,KAAK,YAAY,EAAE;gBACzC,MAAM,MAAM,GAAG,MAAA,MAAA,SAAS,CAAC,SAAS,0CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,eAAe,CAAC,0CAAE,KAAsB,CAAC;gBAC9G,IAAI,MAAM,EAAE;oBACV,iBAAiB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAE,EAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;iBACrF;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B;AAKK,MAAM,6BAA6B,GAAG,CAAC,IAAc,EAAE,GAA+B,EAAiC,EAAE;IAC9H,MAAM,YAAY,GAAG,IAAA,wCAAW,EAAC,IAAI,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,IAAA,4DAA0B,EAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC/D,OAAO,QAAQ,CAAC,MAAM,CAAC;AACzB,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.4.0",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,10 +28,10 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.3.
|
31
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.3.2",
|
32
32
|
"fs-extra": "^8.1.0",
|
33
33
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-transformer-common": "4.
|
34
|
+
"graphql-transformer-common": "4.27.0",
|
35
35
|
"hjson": "^3.2.2",
|
36
36
|
"lodash": "^4.17.21",
|
37
37
|
"md5": "^2.3.0",
|
@@ -71,7 +71,11 @@
|
|
71
71
|
"functions": 22,
|
72
72
|
"lines": 29
|
73
73
|
}
|
74
|
-
}
|
74
|
+
},
|
75
|
+
"coverageReporters": [
|
76
|
+
"clover",
|
77
|
+
"text"
|
78
|
+
]
|
75
79
|
},
|
76
|
-
"gitHead": "
|
80
|
+
"gitHead": "6e450d037cf84098b51ce787a99d6023cbc0e39d"
|
77
81
|
}
|
@@ -145,16 +145,6 @@ export type AssetProvider = {
|
|
145
145
|
provide: (scope: Construct, name: string, props: AssetProps) => S3Asset;
|
146
146
|
};
|
147
147
|
|
148
|
-
// @public (undocumented)
|
149
|
-
export interface CustomSqlDataSourceStrategy {
|
150
|
-
// (undocumented)
|
151
|
-
readonly dataSourceType: DataSourceType;
|
152
|
-
// (undocumented)
|
153
|
-
readonly fieldName: string;
|
154
|
-
// (undocumented)
|
155
|
-
readonly typeName: 'Query' | 'Mutation';
|
156
|
-
}
|
157
|
-
|
158
148
|
// Warning: (ae-forgotten-export) The symbol "NoneDataSourceProvider" needs to be exported by the entry point index.d.ts
|
159
149
|
//
|
160
150
|
// @public (undocumented)
|
@@ -172,28 +162,14 @@ export interface DataSourceOptions {
|
|
172
162
|
export interface DataSourceProvider extends BackedDataSource {
|
173
163
|
}
|
174
164
|
|
175
|
-
// @public (undocumented)
|
176
|
-
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy | SQLLambdaModelProvisionStrategy;
|
177
|
-
|
178
165
|
// @public (undocumented)
|
179
166
|
export interface DataSourceStrategiesProvider {
|
180
167
|
// (undocumented)
|
181
|
-
|
182
|
-
}
|
183
|
-
|
184
|
-
// @public (undocumented)
|
185
|
-
export interface DataSourceType {
|
168
|
+
dataSourceStrategies: Record<string, ModelDataSourceStrategy>;
|
186
169
|
// (undocumented)
|
187
|
-
|
188
|
-
// (undocumented)
|
189
|
-
provisionDB: boolean;
|
190
|
-
// (undocumented)
|
191
|
-
provisionStrategy: DataSourceProvisionStrategy;
|
170
|
+
sqlDirectiveDataSourceStrategies?: SqlDirectiveDataSourceStrategy[];
|
192
171
|
}
|
193
172
|
|
194
|
-
// @public (undocumented)
|
195
|
-
export type DBType = 'DDB' | SQLDBType;
|
196
|
-
|
197
173
|
// @public (undocumented)
|
198
174
|
export interface DefaultDynamoDbModelDataSourceStrategy extends ModelDataSourceStrategyBase {
|
199
175
|
// (undocumented)
|
@@ -208,14 +184,6 @@ export interface DynamoDbDataSourceOptions extends DataSourceOptions {
|
|
208
184
|
readonly serviceRole: IRole;
|
209
185
|
}
|
210
186
|
|
211
|
-
// @public (undocumented)
|
212
|
-
export const enum DynamoDBProvisionStrategy {
|
213
|
-
// (undocumented)
|
214
|
-
AMPLIFY_TABLE = "AMPLIFY_TABLE",
|
215
|
-
// (undocumented)
|
216
|
-
DEFAULT = "DEFAULT"
|
217
|
-
}
|
218
|
-
|
219
187
|
// @public (undocumented)
|
220
188
|
export type FieldMapEntry = {
|
221
189
|
originalFieldName: string;
|
@@ -275,7 +243,10 @@ export interface ModelDataSourceStrategyBase {
|
|
275
243
|
}
|
276
244
|
|
277
245
|
// @public (undocumented)
|
278
|
-
export type ModelDataSourceStrategyDbType = 'DYNAMODB' |
|
246
|
+
export type ModelDataSourceStrategyDbType = 'DYNAMODB' | ModelDataSourceStrategySqlDbType;
|
247
|
+
|
248
|
+
// @public (undocumented)
|
249
|
+
export type ModelDataSourceStrategySqlDbType = 'MYSQL' | 'POSTGRES';
|
279
250
|
|
280
251
|
// @public (undocumented)
|
281
252
|
export type ModelFieldMap = {
|
@@ -324,6 +295,12 @@ export interface RDSLayerMapping {
|
|
324
295
|
};
|
325
296
|
}
|
326
297
|
|
298
|
+
// @public (undocumented)
|
299
|
+
export interface RDSLayerMappingProvider {
|
300
|
+
// (undocumented)
|
301
|
+
rdsLayerMapping?: RDSLayerMapping;
|
302
|
+
}
|
303
|
+
|
327
304
|
// @public (undocumented)
|
328
305
|
type ReadonlyArray_2<T> = Readonly<Array<Readonly<T>>>;
|
329
306
|
export { ReadonlyArray_2 as ReadonlyArray }
|
@@ -369,16 +346,23 @@ export interface SearchableDataSourceOptions extends DataSourceOptions {
|
|
369
346
|
}
|
370
347
|
|
371
348
|
// @public (undocumented)
|
372
|
-
export
|
349
|
+
export interface SqlDirectiveDataSourceStrategy {
|
350
|
+
// (undocumented)
|
351
|
+
readonly customSqlStatements?: Record<string, string>;
|
352
|
+
// (undocumented)
|
353
|
+
readonly fieldName: string;
|
354
|
+
// (undocumented)
|
355
|
+
readonly strategy: SQLLambdaModelDataSourceStrategy;
|
356
|
+
// (undocumented)
|
357
|
+
readonly typeName: 'Query' | 'Mutation';
|
358
|
+
}
|
373
359
|
|
374
360
|
// @public (undocumented)
|
375
361
|
export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrategyBase {
|
376
|
-
// (undocumented)
|
377
|
-
readonly customSqlStatements?: Record<string, string>;
|
378
362
|
// (undocumented)
|
379
363
|
readonly dbConnectionConfig: SqlModelDataSourceDbConnectionConfig;
|
380
364
|
// (undocumented)
|
381
|
-
readonly dbType:
|
365
|
+
readonly dbType: ModelDataSourceStrategySqlDbType;
|
382
366
|
// (undocumented)
|
383
367
|
readonly name: string;
|
384
368
|
// (undocumented)
|
@@ -387,12 +371,6 @@ export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrateg
|
|
387
371
|
readonly vpcConfiguration?: VpcConfig;
|
388
372
|
}
|
389
373
|
|
390
|
-
// @public (undocumented)
|
391
|
-
export const enum SQLLambdaModelProvisionStrategy {
|
392
|
-
// (undocumented)
|
393
|
-
DEFAULT = "DEFAULT"
|
394
|
-
}
|
395
|
-
|
396
374
|
// @public (undocumented)
|
397
375
|
export interface SqlModelDataSourceDbConnectionConfig {
|
398
376
|
// (undocumented)
|
@@ -458,16 +436,16 @@ export type SynthParameters = {
|
|
458
436
|
export type TransformerAuthProvider = TransformerPluginProvider;
|
459
437
|
|
460
438
|
// @public (undocumented)
|
461
|
-
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
439
|
+
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'synthParameters'>;
|
462
440
|
|
463
441
|
// @public (undocumented)
|
464
442
|
export interface TransformerContextMetadataProvider {
|
465
443
|
// (undocumented)
|
466
|
-
get<T>(key: string)
|
444
|
+
get: <T>(key: string) => T | undefined;
|
467
445
|
// (undocumented)
|
468
|
-
has(key: string)
|
446
|
+
has: (key: string) => boolean;
|
469
447
|
// (undocumented)
|
470
|
-
set<T>(key: string, value: T)
|
448
|
+
set: <T>(key: string, value: T) => void;
|
471
449
|
}
|
472
450
|
|
473
451
|
// @public (undocumented)
|
@@ -529,44 +507,30 @@ export interface TransformerContextOutputProvider {
|
|
529
507
|
}
|
530
508
|
|
531
509
|
// @public (undocumented)
|
532
|
-
export interface TransformerContextProvider {
|
510
|
+
export interface TransformerContextProvider extends DataSourceStrategiesProvider, RDSLayerMappingProvider {
|
533
511
|
// (undocumented)
|
534
512
|
api: GraphQLAPIProvider;
|
535
513
|
// (undocumented)
|
536
514
|
authConfig: AppSyncAuthConfiguration;
|
537
515
|
// (undocumented)
|
538
|
-
customQueries: Map<string, string>;
|
539
|
-
// (undocumented)
|
540
|
-
customSqlDataSourceStrategies?: CustomSqlDataSourceStrategy[];
|
541
|
-
// (undocumented)
|
542
516
|
dataSources: TransformerDataSourceManagerProvider;
|
543
517
|
// (undocumented)
|
544
|
-
|
545
|
-
// (undocumented)
|
546
|
-
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined;
|
518
|
+
getResolverConfig: <ResolverConfig>() => ResolverConfig | undefined;
|
547
519
|
// (undocumented)
|
548
520
|
inputDocument: DocumentNode;
|
549
521
|
// (undocumented)
|
550
|
-
isProjectUsingDataStore()
|
522
|
+
isProjectUsingDataStore: () => boolean;
|
551
523
|
// (undocumented)
|
552
524
|
metadata: TransformerContextMetadataProvider;
|
553
525
|
// (undocumented)
|
554
|
-
modelToDatasourceMap: Map<string, DataSourceType>;
|
555
|
-
// (undocumented)
|
556
526
|
output: TransformerContextOutputProvider;
|
557
527
|
// (undocumented)
|
558
528
|
providerRegistry: TransformerProviderRegistry;
|
559
529
|
// (undocumented)
|
560
|
-
readonly rdsLayerMapping?: RDSLayerMapping;
|
561
|
-
// (undocumented)
|
562
530
|
resolvers: TransformerResolversManagerProvider;
|
563
531
|
// (undocumented)
|
564
532
|
resourceHelper: TransformerResourceHelperProvider;
|
565
533
|
// (undocumented)
|
566
|
-
readonly sqlLambdaProvisionedConcurrencyConfig?: ProvisionedConcurrencyConfig;
|
567
|
-
// (undocumented)
|
568
|
-
readonly sqlLambdaVpcConfig?: VpcConfig;
|
569
|
-
// (undocumented)
|
570
534
|
stackManager: StackManagerProvider;
|
571
535
|
// (undocumented)
|
572
536
|
synthParameters: SynthParameters;
|
@@ -815,7 +779,7 @@ export interface TransformerSchemaHelperProvider {
|
|
815
779
|
}
|
816
780
|
|
817
781
|
// @public (undocumented)
|
818
|
-
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
782
|
+
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper'>;
|
819
783
|
|
820
784
|
// @public (undocumented)
|
821
785
|
export type TransformerSecrets = {
|
@@ -826,7 +790,7 @@ export type TransformerSecrets = {
|
|
826
790
|
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider;
|
827
791
|
|
828
792
|
// @public (undocumented)
|
829
|
-
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
793
|
+
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager' | 'synthParameters'>;
|
830
794
|
|
831
795
|
// @public (undocumented)
|
832
796
|
export interface TransformHostProvider {
|
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [3.3.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.3.1...@aws-amplify/graphql-transformer-interfaces@3.3.2) (2023-12-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
|
9
|
+
|
6
10
|
## [3.3.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.3.0...@aws-amplify/graphql-transformer-interfaces@3.3.1) (2023-11-22)
|
7
11
|
|
8
12
|
### Bug Fixes
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { DataSourceType } from '../transformer-context/transformer-datasource-provider';
|
2
1
|
export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
|
3
2
|
export interface ModelDataSourceStrategyBase {
|
4
3
|
dbType: ModelDataSourceStrategyDbType;
|
5
4
|
}
|
6
|
-
export type ModelDataSourceStrategyDbType = 'DYNAMODB' |
|
5
|
+
export type ModelDataSourceStrategyDbType = 'DYNAMODB' | ModelDataSourceStrategySqlDbType;
|
6
|
+
export type ModelDataSourceStrategySqlDbType = 'MYSQL' | 'POSTGRES';
|
7
7
|
export interface DefaultDynamoDbModelDataSourceStrategy extends ModelDataSourceStrategyBase {
|
8
8
|
readonly dbType: 'DYNAMODB';
|
9
9
|
readonly provisionStrategy: 'DEFAULT';
|
@@ -14,10 +14,9 @@ export interface AmplifyDynamoDbModelDataSourceStrategy extends ModelDataSourceS
|
|
14
14
|
}
|
15
15
|
export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrategyBase {
|
16
16
|
readonly name: string;
|
17
|
-
readonly dbType:
|
17
|
+
readonly dbType: ModelDataSourceStrategySqlDbType;
|
18
18
|
readonly dbConnectionConfig: SqlModelDataSourceDbConnectionConfig;
|
19
19
|
readonly vpcConfiguration?: VpcConfig;
|
20
|
-
readonly customSqlStatements?: Record<string, string>;
|
21
20
|
readonly sqlLambdaProvisionedConcurrencyConfig?: ProvisionedConcurrencyConfig;
|
22
21
|
}
|
23
22
|
export interface VpcConfig {
|
@@ -39,17 +38,22 @@ export interface SqlModelDataSourceDbConnectionConfig {
|
|
39
38
|
readonly passwordSsmPath: string;
|
40
39
|
readonly databaseNameSsmPath: string;
|
41
40
|
}
|
42
|
-
export interface
|
41
|
+
export interface SqlDirectiveDataSourceStrategy {
|
43
42
|
readonly typeName: 'Query' | 'Mutation';
|
44
43
|
readonly fieldName: string;
|
45
|
-
readonly
|
44
|
+
readonly strategy: SQLLambdaModelDataSourceStrategy;
|
45
|
+
readonly customSqlStatements?: Record<string, string>;
|
46
46
|
}
|
47
47
|
export interface DataSourceStrategiesProvider {
|
48
|
-
|
48
|
+
dataSourceStrategies: Record<string, ModelDataSourceStrategy>;
|
49
|
+
sqlDirectiveDataSourceStrategies?: SqlDirectiveDataSourceStrategy[];
|
49
50
|
}
|
50
51
|
export interface RDSLayerMapping {
|
51
52
|
readonly [key: string]: {
|
52
53
|
layerRegion: string;
|
53
54
|
};
|
54
55
|
}
|
56
|
+
export interface RDSLayerMappingProvider {
|
57
|
+
rdsLayerMapping?: RDSLayerMapping;
|
58
|
+
}
|
55
59
|
//# sourceMappingURL=types.d.ts.map
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,uBAAuB,GAC/B,sCAAsC,GACtC,sCAAsC,GACtC,gCAAgC,CAAC;AAErC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAKD,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,gCAAgC,CAAC;AAK1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,UAAU,CAAC;AAKpE,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,SAAS,CAAC;CACvC;AAKD,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC;CAC7C;AAQD,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IAKnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;IAKlD,QAAQ,CAAC,kBAAkB,EAAE,oCAAoC,CAAC;IAKlE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAKtC,QAAQ,CAAC,qCAAqC,CAAC,EAAE,4BAA4B,CAAC;CAC/E;AASD,MAAM,WAAW,SAAS;IAExB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAGpC,QAAQ,CAAC,4BAA4B,EAAE,sBAAsB,EAAE,CAAC;CACjE;AAKD,MAAM,WAAW,4BAA4B;IAE3C,QAAQ,CAAC,+BAA+B,EAAE,MAAM,CAAC;CAClD;AAOD,MAAM,WAAW,sBAAsB;IAErC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC;AAOD,MAAM,WAAW,oCAAoC;IAInD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAG7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAGjC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;CACtC;AAQD,MAAM,WAAW,8BAA8B;IAE7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,CAAC;IAGxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAG3B,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IASpD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvD;AAKD,MAAM,WAAW,4BAA4B;IAE3C,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IAG9D,gCAAgC,CAAC,EAAE,8BAA8B,EAAE,CAAC;CACrE;AAOD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAMD,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC"}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance,
|
1
|
+
export { DataSourceProvider, TransformerDataSourceManagerProvider, AppSyncDataSourceType, DataSourceInstance, } from './transformer-datasource-provider';
|
2
2
|
export { TransformerContextOutputProvider } from './transformer-context-output-provider';
|
3
3
|
export { TransformerProviderRegistry } from './transformer-provider-registry';
|
4
4
|
export { TransformerResolverProvider, TransformerResolversManagerProvider } from './transformer-resolver-provider';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,MAAM,iCAAiC,CAAC;AACnH,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,0BAA0B,EAC1B,qCAAqC,EACrC,yCAAyC,EACzC,kBAAkB,EAClB,6CAA6C,EAC7C,wCAAwC,GACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC"}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js
CHANGED
@@ -14,10 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
17
|
+
exports.AppSyncDataSourceType = void 0;
|
18
18
|
var transformer_datasource_provider_1 = require("./transformer-datasource-provider");
|
19
19
|
Object.defineProperty(exports, "AppSyncDataSourceType", { enumerable: true, get: function () { return transformer_datasource_provider_1.AppSyncDataSourceType; } });
|
20
|
-
Object.defineProperty(exports, "DynamoDBProvisionStrategy", { enumerable: true, get: function () { return transformer_datasource_provider_1.DynamoDBProvisionStrategy; } });
|
21
|
-
Object.defineProperty(exports, "SQLLambdaModelProvisionStrategy", { enumerable: true, get: function () { return transformer_datasource_provider_1.SQLLambdaModelProvisionStrategy; } });
|
22
20
|
__exportStar(require("./resource-resource-provider"), exports);
|
23
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transformer-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qFAK2C;AAFzC,wIAAA,qBAAqB,OAAA;AAMvB,+DAA6C"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
2
2
|
import { AppSyncAuthConfiguration, GraphQLAPIProvider } from '../graphql-api-provider';
|
3
|
-
import {
|
4
|
-
import { TransformerDataSourceManagerProvider
|
3
|
+
import { DataSourceStrategiesProvider, RDSLayerMappingProvider } from '../model-datasource';
|
4
|
+
import { TransformerDataSourceManagerProvider } from './transformer-datasource-provider';
|
5
5
|
import { TransformerProviderRegistry } from './transformer-provider-registry';
|
6
6
|
import { TransformerContextOutputProvider } from './transformer-context-output-provider';
|
7
7
|
import { StackManagerProvider } from './stack-manager-provider';
|
@@ -10,22 +10,19 @@ import { TransformParameters } from './transform-parameters';
|
|
10
10
|
import { TransformerResolversManagerProvider } from './transformer-resolver-provider';
|
11
11
|
import { SynthParameters } from './synth-parameters';
|
12
12
|
export interface TransformerContextMetadataProvider {
|
13
|
-
set<T>(key: string, value: T)
|
14
|
-
get<T>(key: string)
|
15
|
-
has(key: string)
|
13
|
+
set: <T>(key: string, value: T) => void;
|
14
|
+
get: <T>(key: string) => T | undefined;
|
15
|
+
has: (key: string) => boolean;
|
16
16
|
}
|
17
17
|
export type TransformerSecrets = {
|
18
18
|
[key: string]: any;
|
19
19
|
};
|
20
|
-
export interface TransformerContextProvider {
|
20
|
+
export interface TransformerContextProvider extends DataSourceStrategiesProvider, RDSLayerMappingProvider {
|
21
21
|
metadata: TransformerContextMetadataProvider;
|
22
22
|
resolvers: TransformerResolversManagerProvider;
|
23
23
|
dataSources: TransformerDataSourceManagerProvider;
|
24
24
|
providerRegistry: TransformerProviderRegistry;
|
25
25
|
inputDocument: DocumentNode;
|
26
|
-
modelToDatasourceMap: Map<string, DataSourceType>;
|
27
|
-
customSqlDataSourceStrategies?: CustomSqlDataSourceStrategy[];
|
28
|
-
datasourceSecretParameterLocations: Map<string, TransformerSecrets>;
|
29
26
|
output: TransformerContextOutputProvider;
|
30
27
|
stackManager: StackManagerProvider;
|
31
28
|
api: GraphQLAPIProvider;
|
@@ -33,16 +30,12 @@ export interface TransformerContextProvider {
|
|
33
30
|
authConfig: AppSyncAuthConfiguration;
|
34
31
|
transformParameters: TransformParameters;
|
35
32
|
synthParameters: SynthParameters;
|
36
|
-
|
37
|
-
|
38
|
-
getResolverConfig<ResolverConfig>(): ResolverConfig | undefined;
|
39
|
-
readonly sqlLambdaVpcConfig?: VpcConfig;
|
40
|
-
readonly rdsLayerMapping?: RDSLayerMapping;
|
41
|
-
readonly sqlLambdaProvisionedConcurrencyConfig?: ProvisionedConcurrencyConfig;
|
33
|
+
isProjectUsingDataStore: () => boolean;
|
34
|
+
getResolverConfig: <ResolverConfig>() => ResolverConfig | undefined;
|
42
35
|
}
|
43
|
-
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
44
|
-
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
45
|
-
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | '
|
36
|
+
export type TransformerBeforeStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'authConfig' | 'stackManager' | 'synthParameters'>;
|
37
|
+
export type TransformerSchemaVisitStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'output' | 'providerRegistry' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper'>;
|
38
|
+
export type TransformerValidationStepContextProvider = Pick<TransformerContextProvider, 'inputDocument' | 'dataSourceStrategies' | 'sqlDirectiveDataSourceStrategies' | 'output' | 'providerRegistry' | 'dataSources' | 'transformParameters' | 'isProjectUsingDataStore' | 'getResolverConfig' | 'metadata' | 'authConfig' | 'resourceHelper' | 'resolvers' | 'stackManager' | 'synthParameters'>;
|
46
39
|
export type TransformerPrepareStepContextProvider = TransformerValidationStepContextProvider;
|
47
40
|
export type TransformerTransformSchemaStepContextProvider = TransformerValidationStepContextProvider;
|
48
41
|
//# sourceMappingURL=transformer-context-provider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformer-context-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-context-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"transformer-context-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-context-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,oCAAoC,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,mCAAmC,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,kCAAkC;IACjD,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACxC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC;IACvC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAExD,MAAM,WAAW,0BAA2B,SAAQ,4BAA4B,EAAE,uBAAuB;IACvG,QAAQ,EAAE,kCAAkC,CAAC;IAC7C,SAAS,EAAE,mCAAmC,CAAC;IAC/C,WAAW,EAAE,oCAAoC,CAAC;IAClD,gBAAgB,EAAE,2BAA2B,CAAC;IAE9C,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,gCAAgC,CAAC;IACzC,YAAY,EAAE,oBAAoB,CAAC;IACnC,GAAG,EAAE,kBAAkB,CAAC;IACxB,cAAc,EAAE,iCAAiC,CAAC;IAClD,UAAU,EAAE,wBAAwB,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,eAAe,EAAE,eAAe,CAAC;IAEjC,uBAAuB,EAAE,MAAM,OAAO,CAAC;IACvC,iBAAiB,EAAE,CAAC,cAAc,OAAO,cAAc,GAAG,SAAS,CAAC;CACrE;AAED,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,0BAA0B,EACxB,eAAe,GACf,sBAAsB,GACtB,kCAAkC,GAClC,qBAAqB,GACrB,yBAAyB,GACzB,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,iBAAiB,CACpB,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG,IAAI,CAC1D,0BAA0B,EACxB,eAAe,GACf,sBAAsB,GACtB,kCAAkC,GAClC,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,yBAAyB,GACzB,mBAAmB,GACnB,UAAU,GACV,YAAY,GACZ,gBAAgB,CACnB,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG,IAAI,CACzD,0BAA0B,EACxB,eAAe,GACf,sBAAsB,GACtB,kCAAkC,GAClC,QAAQ,GACR,kBAAkB,GAClB,aAAa,GACb,qBAAqB,GACrB,yBAAyB,GACzB,mBAAmB,GACnB,UAAU,GACV,YAAY,GACZ,gBAAgB,GAChB,WAAW,GACX,cAAc,GACd,iBAAiB,CACpB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,wCAAwC,CAAC;AAE7F,MAAM,MAAM,6CAA6C,GAAG,wCAAwC,CAAC"}
|
@@ -22,19 +22,4 @@ export interface TransformerDataSourceManagerProvider {
|
|
22
22
|
}
|
23
23
|
export interface DataSourceProvider extends BackedDataSource {
|
24
24
|
}
|
25
|
-
export type DBType = 'DDB' | SQLDBType;
|
26
|
-
export type SQLDBType = 'MySQL' | 'Postgres';
|
27
|
-
export type DataSourceProvisionStrategy = DynamoDBProvisionStrategy | SQLLambdaModelProvisionStrategy;
|
28
|
-
export declare const enum DynamoDBProvisionStrategy {
|
29
|
-
DEFAULT = "DEFAULT",
|
30
|
-
AMPLIFY_TABLE = "AMPLIFY_TABLE"
|
31
|
-
}
|
32
|
-
export declare const enum SQLLambdaModelProvisionStrategy {
|
33
|
-
DEFAULT = "DEFAULT"
|
34
|
-
}
|
35
|
-
export interface DataSourceType {
|
36
|
-
dbType: DBType;
|
37
|
-
provisionDB: boolean;
|
38
|
-
provisionStrategy: DataSourceProvisionStrategy;
|
39
|
-
}
|
40
25
|
//# sourceMappingURL=transformer-datasource-provider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformer-datasource-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEhF,oBAAY,qBAAqB;IAC/B,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE1G,MAAM,WAAW,oCAAoC;IACnD,GAAG,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACpH,GAAG,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,KAAK,kBAAkB,CAAC;IAC1F,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAAG
|
1
|
+
{"version":3,"file":"transformer-datasource-provider.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEhF,oBAAY,qBAAqB;IAC/B,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE1G,MAAM,WAAW,oCAAoC;IACnD,GAAG,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACpH,GAAG,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,2BAA2B,KAAK,kBAAkB,CAAC;IAC1F,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAAG"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.AppSyncDataSourceType = void 0;
|
4
4
|
var AppSyncDataSourceType;
|
5
5
|
(function (AppSyncDataSourceType) {
|
6
6
|
AppSyncDataSourceType["AMAZON_DYNAMODB"] = "AMAZON_DYNAMODB";
|
@@ -10,13 +10,4 @@ var AppSyncDataSourceType;
|
|
10
10
|
AppSyncDataSourceType["HTTP"] = "HTTP";
|
11
11
|
AppSyncDataSourceType["NONE"] = "NONE";
|
12
12
|
})(AppSyncDataSourceType = exports.AppSyncDataSourceType || (exports.AppSyncDataSourceType = {}));
|
13
|
-
var DynamoDBProvisionStrategy;
|
14
|
-
(function (DynamoDBProvisionStrategy) {
|
15
|
-
DynamoDBProvisionStrategy["DEFAULT"] = "DEFAULT";
|
16
|
-
DynamoDBProvisionStrategy["AMPLIFY_TABLE"] = "AMPLIFY_TABLE";
|
17
|
-
})(DynamoDBProvisionStrategy = exports.DynamoDBProvisionStrategy || (exports.DynamoDBProvisionStrategy = {}));
|
18
|
-
var SQLLambdaModelProvisionStrategy;
|
19
|
-
(function (SQLLambdaModelProvisionStrategy) {
|
20
|
-
SQLLambdaModelProvisionStrategy["DEFAULT"] = "DEFAULT";
|
21
|
-
})(SQLLambdaModelProvisionStrategy = exports.SQLLambdaModelProvisionStrategy || (exports.SQLLambdaModelProvisionStrategy = {}));
|
22
13
|
//# sourceMappingURL=transformer-datasource-provider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformer-datasource-provider.js","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":";;;AAMA,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,kDAAyB,CAAA;IACzB,oEAA2C,CAAA;IAC3C,sCAAa,CAAA;IACb,sCAAa,CAAA;AACf,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC
|
1
|
+
{"version":3,"file":"transformer-datasource-provider.js","sourceRoot":"","sources":["../../src/transformer-context/transformer-datasource-provider.ts"],"names":[],"mappings":";;;AAMA,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,kDAAyB,CAAA;IACzB,oEAA2C,CAAA;IAC3C,sCAAa,CAAA;IACb,sCAAa,CAAA;AACf,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-interfaces",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.2",
|
4
4
|
"description": "Amplify GraphQL transformer interface definitions",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -47,7 +47,11 @@
|
|
47
47
|
"json",
|
48
48
|
"node"
|
49
49
|
],
|
50
|
-
"collectCoverage": true
|
50
|
+
"collectCoverage": true,
|
51
|
+
"coverageReporters": [
|
52
|
+
"clover",
|
53
|
+
"text"
|
54
|
+
]
|
51
55
|
},
|
52
|
-
"gitHead": "
|
56
|
+
"gitHead": "6e450d037cf84098b51ce787a99d6023cbc0e39d"
|
53
57
|
}
|