@aws-amplify/graphql-api-construct 1.6.0-secrets-manager.0 → 1.7.0-iam-auth.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +484 -421
- package/API.md +30 -21
- package/CHANGELOG.md +17 -2
- package/README.md +17 -75
- package/lib/amplify-dynamodb-table-wrapper.d.ts +6 -1
- package/lib/amplify-dynamodb-table-wrapper.js +9 -2
- package/lib/amplify-graphql-api.d.ts +2 -2
- package/lib/amplify-graphql-api.js +11 -7
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/internal/authorization-modes.d.ts +2 -1
- package/lib/internal/authorization-modes.js +37 -7
- package/lib/internal/construct-exports.js +13 -3
- package/lib/internal/data-source-config.js +4 -37
- package/lib/model-datasource-strategy-types.d.ts +1 -25
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.d.ts +1 -13
- package/lib/sql-model-datasource-strategy.js +4 -26
- package/lib/types.d.ts +68 -10
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +2 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +17 -1
- 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 +36 -3
- 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/definitions.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js +2 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js +0 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js +14 -7
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js +14 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +29 -9
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +5 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +6 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +20 -14
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +15 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +15 -9
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +9 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +14 -8
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +9 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +14 -8
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +13 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +15 -9
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +13 -1
- 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/package.json +16 -14
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +3 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +16 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js +9 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js.map +1 -1
- 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 +51 -25
- 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/graphql-types/common.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js +11 -7
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js +9 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.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/common.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js +15 -7
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +1 -5
- 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 +26 -71
- 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/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +3 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
- 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 +7 -21
- 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 +17 -11
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +9 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +14 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +15 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js +13 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +17 -11
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +15 -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 +15 -9
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +13 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +16 -10
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +13 -3
- package/node_modules/@aws-amplify/graphql-transformer/package.json +23 -17
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +12 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +11 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- 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 +6 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js +14 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/output.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +1 -1
- 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 -1
- 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-util.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +18 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +14 -8
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +6 -27
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +1 -12
- 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/model-datasource/types.js +0 -22
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-output-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +8 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +1 -76
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-output-provider.ts +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +8 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +12 -5
- package/node_modules/graphql-transformer-common/API.md +14 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +14 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +13 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +16 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -0
- package/node_modules/graphql-transformer-common/lib/index.d.ts +1 -0
- package/node_modules/graphql-transformer-common/lib/index.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/index.js +1 -0
- package/node_modules/graphql-transformer-common/lib/index.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +13 -6
- package/package.json +27 -21
- package/src/amplify-dynamodb-table-wrapper.ts +9 -1
- package/src/amplify-graphql-api.ts +17 -7
- package/src/index.ts +2 -0
- package/src/internal/authorization-modes.ts +47 -8
- package/src/internal/construct-exports.ts +14 -4
- package/src/internal/data-source-config.ts +9 -42
- package/src/model-datasource-strategy-types.ts +1 -33
- package/src/sql-model-datasource-strategy.ts +1 -32
- package/src/types.ts +75 -11
@@ -4,25 +4,25 @@ exports.generateAuthRequestExpression = exports.generateAuthExpressionForDelete
|
|
4
4
|
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
5
5
|
const common_1 = require("./common");
|
6
6
|
const generateAuthExpressionForCreate = (ctx, providers, roles, fields) => {
|
7
|
-
return generateMutationExpression(roles, fields, 'create', providers.hasIdentityPoolId, false);
|
7
|
+
return generateMutationExpression(roles, fields, 'create', providers.hasIdentityPoolId, providers.genericIamAccessEnabled, false);
|
8
8
|
};
|
9
9
|
exports.generateAuthExpressionForCreate = generateAuthExpressionForCreate;
|
10
10
|
const generateAuthExpressionForUpdate = (providers, roles, fields) => {
|
11
|
-
return generateMutationExpression(roles, fields, 'update', providers.hasIdentityPoolId, true);
|
11
|
+
return generateMutationExpression(roles, fields, 'update', providers.hasIdentityPoolId, providers.genericIamAccessEnabled, true);
|
12
12
|
};
|
13
13
|
exports.generateAuthExpressionForUpdate = generateAuthExpressionForUpdate;
|
14
14
|
const generateAuthExpressionForDelete = (providers, roles, fields) => {
|
15
|
-
return generateMutationExpression(roles, fields, 'delete', providers.hasIdentityPoolId, true);
|
15
|
+
return generateMutationExpression(roles, fields, 'delete', providers.hasIdentityPoolId, providers.genericIamAccessEnabled, true);
|
16
16
|
};
|
17
17
|
exports.generateAuthExpressionForDelete = generateAuthExpressionForDelete;
|
18
|
-
const generateMutationExpression = (roles, fields, operation, hasIdentityPoolId, includeExistingRecord = false) => {
|
18
|
+
const generateMutationExpression = (roles, fields, operation, hasIdentityPoolId, enableIamAccess, includeExistingRecord = false) => {
|
19
19
|
const expressions = [];
|
20
20
|
expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, hasIdentityPoolId, false)));
|
21
21
|
expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), includeExistingRecord
|
22
22
|
? (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.mutationAuth'), (0, graphql_mapping_template_1.ref)('authRules'), (0, graphql_mapping_template_1.str)(operation), (0, graphql_mapping_template_1.ref)('ctx.args.input'), (0, graphql_mapping_template_1.ref)('ctx.result'))
|
23
23
|
: (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.mutationAuth'), (0, graphql_mapping_template_1.ref)('authRules'), (0, graphql_mapping_template_1.str)(operation), (0, graphql_mapping_template_1.ref)('ctx.args.input'), (0, graphql_mapping_template_1.nul)())));
|
24
24
|
expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthorizedInputStatement)('ctx.args.input'), common_1.emptyPayload);
|
25
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
25
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(enableIamAccess, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
|
26
26
|
};
|
27
27
|
const generateAuthRequestExpression = (ctx, def) => {
|
28
28
|
const mappedTableName = ctx.resourceHelper.getModelNameMapping(def.name.value);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/mutation.ts"],"names":[],"mappings":";;;AAAA,uEAAuI;AAIvI,
|
1
|
+
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/mutation.ts"],"names":[],"mappings":";;;AAAA,uEAAuI;AAIvI,qCAMkB;AAEX,MAAM,+BAA+B,GAAG,CAE7C,GAA+B,EAC/B,SAAkC,EAClC,KAA4B,EAC5B,MAA0C,EAClC,EAAE;IACV,OAAO,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,iBAAiB,EAAE,SAAS,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACpI,CAAC,CAAC;AARW,QAAA,+BAA+B,mCAQ1C;AA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,EAAC,2CAA2C,CAAC,EAChD,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,oBAAoB,CAAC,EAAE,IAAA,8BAAG,EAAC,wBAAwB,CAAC,EAAE,IAAA,8BAAG,EAAC,EAAE,CAAC,CAAC,CAC9E,CACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,eAAO,MAAM,gCAAgC,QAEtC,0BAA0B,aACpB,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,OAErC,wBAAwB,aAElB,MAAM,GAAG,SAAS,KAC5B,MAMF,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAC9B,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,cAE/B,MAAM,KAChB,
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,eAAO,MAAM,gCAAgC,QAEtC,0BAA0B,aACpB,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,OAErC,wBAAwB,aAElB,MAAM,GAAG,SAAS,KAC5B,MAMF,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAC9B,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,cAE/B,MAAM,KAChB,MAQF,CAAC;AAKF,eAAO,MAAM,yBAAyB,cAAe,MAAM,aAAa,MAAM,wBAAwB,OAAO,KAAG,MAU/G,CAAC;AAKF,eAAO,MAAM,sCAAsC,QAE5C,0BAA0B,OAE1B,wBAAwB,SAEtB,mBAAmB,sBAEN,wBAAwB,aACjC,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,KACzC,MAMF,CAAC"}
|
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js
CHANGED
@@ -9,15 +9,16 @@ const generateAuthExpressionForQueries = (ctx, providers, roles, fields, def, in
|
|
9
9
|
expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
|
10
10
|
expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.queryAuth'), (0, graphql_mapping_template_1.ref)('authRules'))));
|
11
11
|
expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthFilter)(), common_1.emptyPayload);
|
12
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
12
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
|
13
13
|
};
|
14
14
|
exports.generateAuthExpressionForQueries = generateAuthExpressionForQueries;
|
15
15
|
const generateAuthExpressionForField = (providers, roles, fields, fieldName = undefined) => {
|
16
16
|
const expressions = [];
|
17
17
|
expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
|
18
|
-
expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.
|
19
|
-
expressions.push((0,
|
20
|
-
|
18
|
+
expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.validateUsingSource'), (0, graphql_mapping_template_1.ref)('authRules'), (0, graphql_mapping_template_1.ref)('ctx.source'))));
|
19
|
+
expressions.push((0, graphql_mapping_template_1.compoundExpression)([(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.ref)('authResult')), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.unauthorized')))]));
|
20
|
+
expressions.push(common_1.emptyPayload);
|
21
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
|
21
22
|
};
|
22
23
|
exports.generateAuthExpressionForField = generateAuthExpressionForField;
|
23
24
|
const generateFieldAuthResponse = (operation, fieldName, subscriptionsEnabled) => {
|
@@ -35,7 +36,7 @@ const generateAuthExpressionForRelationQuery = (ctx, def, field, relatedModelObj
|
|
35
36
|
expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
|
36
37
|
expressions.push((0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authRules.queryAuth'), (0, graphql_mapping_template_1.ref)('authRules'))));
|
37
38
|
expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthFilter)(), common_1.emptyPayload);
|
38
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
39
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
|
39
40
|
};
|
40
41
|
exports.generateAuthExpressionForRelationQuery = generateAuthExpressionForRelationQuery;
|
41
42
|
//# sourceMappingURL=query.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/query.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/query.ts"],"names":[],"mappings":";;;AAAA,uEAA4I;AAG5I,sFAAuE;AAEvE,qCAAqI;AAE9H,MAAM,gCAAgC,GAAG,CAE9C,GAA+B,EAC/B,SAAkC,EAClC,KAA4B,EAC5B,MAA0C,EAE1C,GAA6B,EAE7B,SAA6B,EACrB,EAAE;IACV,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,IAAI,CAAC,IAAA,6CAAkB,EAAC,IAAA,mCAA0B,EAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACnH,WAAW,CAAC,IAAI,CAAC,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,0BAA0B,CAAC,EAAE,IAAA,8BAAG,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACxG,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,EAAE,IAAA,4BAAmB,GAAE,EAAE,qBAAY,CAAC,CAAC;IAC5E,OAAO,IAAA,qCAAU,EAAC,qBAAqB,CAAC,CAAC,IAAA,+BAAsB,EAAC,SAAS,CAAC,uBAAuB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0B,CAAC,EAAE,IAAA,8BAAG,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACxG,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,EAAE,IAAA,4BAAmB,GAAE,EAAE,qBAAY,CAAC,CAAC;IAC5E,OAAO,IAAA,qCAAU,EAAC,qBAAqB,CAAC,CAAC,IAAA,+BAAsB,EAAC,SAAS,CAAC,uBAAuB,EAAE,IAAA,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AACvI,CAAC,CAAC;AAlBW,QAAA,sCAAsC,0CAkBjD"}
|
@@ -12,7 +12,7 @@ const generateAuthExpressionForSubscriptions = (providers, roles) => {
|
|
12
12
|
and: (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)('authResult.authFilter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')]),
|
13
13
|
})))));
|
14
14
|
expressions.push(common_1.emptyPayload);
|
15
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
15
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, common_1.generateIAMAccessCheck)(providers.genericIamAccessEnabled, (0, graphql_mapping_template_1.compoundExpression)(expressions)));
|
16
16
|
};
|
17
17
|
exports.generateAuthExpressionForSubscriptions = generateAuthExpressionForSubscriptions;
|
18
18
|
//# sourceMappingURL=subscription.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/subscription.ts"],"names":[],"mappings":";;;AAAA,uEAAkI;AAElI,
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/subscription.ts"],"names":[],"mappings":";;;AAAA,uEAAkI;AAElI,qCAAgH;AAEzG,MAAM,sCAAsC,GAAG,CAAC,SAAkC,EAAE,KAA4B,EAAU,EAAE;IACjI,MAAM,WAAW,GAA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EAAC,qBAAqB,CAAC,CAAC,IAAA,+BAAsB,EAAC,SAAS,CAAC,uBAAuB,EAAE,IAAA,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AACvI,CAAC,CAAC;AA1BW,QAAA,sCAAsC,0CA0BjD"}
|
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts
CHANGED
@@ -14,6 +14,6 @@ export interface AuthVTLGenerator {
|
|
14
14
|
setDeniedFieldFlag: (operation: string, subscriptionsEnabled: boolean) => string;
|
15
15
|
generateAuthExpressionForRelationQuery: (ctx: TransformerContextProvider, def: ObjectTypeDefinitionNode, field: FieldDefinitionNode, relatedModelObject: ObjectTypeDefinitionNode, providers: ConfiguredAuthProviders, roles: Array<RoleDefinition>, fields: ReadonlyArray<FieldDefinitionNode>) => string;
|
16
16
|
generateFieldResolverForOwner: (entity: string) => string;
|
17
|
-
generateSandboxExpressionForField: (sandboxEnabled: boolean) => string;
|
17
|
+
generateSandboxExpressionForField: (sandboxEnabled: boolean, genericIamAccessEnabled: boolean) => string;
|
18
18
|
}
|
19
19
|
//# sourceMappingURL=vtl-generator.d.ts.map
|
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vtl-generator.d.ts","sourceRoot":"","sources":["../../src/vtl-generator/vtl-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAA8B,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/F,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B,EAAE,CAC/B,GAAG,EAAE,0BAA0B,EAC/B,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAC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AA0B,EAC/B,GAAG,EAAE,wBAAwB,EAC7B,KAAK,EAAE,mBAAmB,EAC1B,kBAAkB,EAAE,wBAAwB,EAC5C,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAC5B,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,KACvC,MAAM,CAAC;IAEZ,6BAA6B,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAE1D,iCAAiC,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,KAAK,MAAM,CAAC;CAC1G"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-auth-transformer",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.4.2-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL @auth transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,22 +29,22 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
33
|
-
"@aws-amplify/graphql-relational-transformer": "2.
|
34
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
35
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
32
|
+
"@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth.0",
|
33
|
+
"@aws-amplify/graphql-relational-transformer": "2.4.2-iam-auth.0",
|
34
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
35
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
36
36
|
"graphql": "^15.5.0",
|
37
|
-
"graphql-mapping-template": "4.20.
|
38
|
-
"graphql-transformer-common": "4.
|
37
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
38
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"md5": "^2.3.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@aws-amplify/graphql-function-transformer": "2.1.
|
44
|
-
"@aws-amplify/graphql-index-transformer": "2.3.
|
45
|
-
"@aws-amplify/graphql-searchable-transformer": "2.
|
46
|
-
"@aws-amplify/graphql-sql-transformer": "0.2.
|
47
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
43
|
+
"@aws-amplify/graphql-function-transformer": "2.1.19-iam-auth.0",
|
44
|
+
"@aws-amplify/graphql-index-transformer": "2.3.8-iam-auth.0",
|
45
|
+
"@aws-amplify/graphql-searchable-transformer": "2.6.2-iam-auth.0",
|
46
|
+
"@aws-amplify/graphql-sql-transformer": "0.2.8-iam-auth.0",
|
47
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0",
|
48
48
|
"@types/node": "^12.12.6"
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
@@ -78,7 +78,13 @@
|
|
78
78
|
"clover",
|
79
79
|
"text"
|
80
80
|
],
|
81
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
81
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
82
|
+
"collectCoverageFrom": [
|
83
|
+
"src/**/*.ts"
|
84
|
+
],
|
85
|
+
"coveragePathIgnorePatterns": [
|
86
|
+
"/__tests__/"
|
87
|
+
]
|
82
88
|
},
|
83
|
-
"gitHead": "
|
89
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
84
90
|
}
|
@@ -3,7 +3,21 @@
|
|
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
|
-
## [2.2
|
6
|
+
## [2.3.2-iam-auth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.1...@aws-amplify/graphql-default-value-transformer@2.3.2-iam-auth.0) (2024-03-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
|
+
|
10
|
+
## [2.3.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.0...@aws-amplify/graphql-default-value-transformer@2.3.1) (2024-03-13)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
13
|
+
|
14
|
+
# [2.3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.2.5...@aws-amplify/graphql-default-value-transformer@2.3.0) (2024-02-28)
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
- add implicit fields to filter input ([#2236](https://github.com/aws-amplify/amplify-category-api/issues/2236)) ([f7ec601](https://github.com/aws-amplify/amplify-category-api/commit/f7ec6014d4eecfede186129a6ea19041780bafb3))
|
19
|
+
|
20
|
+
## [2.2.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.2.4...@aws-amplify/graphql-default-value-transformer@2.2.5) (2024-02-05)
|
7
21
|
|
8
22
|
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
23
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-default-value-transformer",
|
3
|
-
"version": "2.2
|
3
|
+
"version": "2.3.2-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL default value transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,16 +29,16 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
33
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
32
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
34
34
|
"graphql": "^15.5.0",
|
35
|
-
"graphql-mapping-template": "4.20.
|
36
|
-
"graphql-transformer-common": "4.
|
35
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
36
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0",
|
37
37
|
"libphonenumber-js": "1.9.47"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
41
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
40
|
+
"@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth.0",
|
41
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0"
|
42
42
|
},
|
43
43
|
"jest": {
|
44
44
|
"transform": {
|
@@ -67,7 +67,13 @@
|
|
67
67
|
"clover",
|
68
68
|
"text"
|
69
69
|
],
|
70
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
70
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
71
|
+
"collectCoverageFrom": [
|
72
|
+
"src/**/*.ts"
|
73
|
+
],
|
74
|
+
"coveragePathIgnorePatterns": [
|
75
|
+
"/__tests__/"
|
76
|
+
]
|
71
77
|
},
|
72
|
-
"gitHead": "
|
78
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
73
79
|
}
|
@@ -3,7 +3,15 @@
|
|
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
|
-
## [2.1.
|
6
|
+
## [2.1.19-iam-auth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.18...@aws-amplify/graphql-function-transformer@2.1.19-iam-auth.0) (2024-03-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
9
|
+
|
10
|
+
## [2.1.18](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.17...@aws-amplify/graphql-function-transformer@2.1.18) (2024-02-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
13
|
+
|
14
|
+
## [2.1.17](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.16...@aws-amplify/graphql-function-transformer@2.1.17) (2024-02-05)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
9
17
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-function-transformer",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.19-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL @function transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,14 +28,14 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
32
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
31
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
32
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
33
33
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-mapping-template": "4.20.
|
35
|
-
"graphql-transformer-common": "4.
|
34
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
35
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
38
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"aws-cdk-lib": "^2.80.0",
|
@@ -70,7 +70,13 @@
|
|
70
70
|
"modulePathIgnorePatterns": [
|
71
71
|
"overrides"
|
72
72
|
],
|
73
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
73
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
74
|
+
"collectCoverageFrom": [
|
75
|
+
"src/**/*.ts"
|
76
|
+
],
|
77
|
+
"coveragePathIgnorePatterns": [
|
78
|
+
"/__tests__/"
|
79
|
+
]
|
74
80
|
},
|
75
|
-
"gitHead": "
|
81
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
76
82
|
}
|
@@ -3,7 +3,15 @@
|
|
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
|
-
## [2.1.
|
6
|
+
## [2.1.19-iam-auth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.18...@aws-amplify/graphql-http-transformer@2.1.19-iam-auth.0) (2024-03-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
|
+
|
10
|
+
## [2.1.18](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.17...@aws-amplify/graphql-http-transformer@2.1.18) (2024-02-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
13
|
+
|
14
|
+
## [2.1.17](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.16...@aws-amplify/graphql-http-transformer@2.1.17) (2024-02-05)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
17
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-http-transformer",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.19-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL @http transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,14 +28,14 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
32
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
31
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
32
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
33
33
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-mapping-template": "4.20.
|
35
|
-
"graphql-transformer-common": "4.
|
34
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
35
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
38
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"aws-cdk-lib": "^2.80.0",
|
@@ -70,7 +70,13 @@
|
|
70
70
|
"modulePathIgnorePatterns": [
|
71
71
|
"overrides"
|
72
72
|
],
|
73
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
73
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
74
|
+
"collectCoverageFrom": [
|
75
|
+
"src/**/*.ts"
|
76
|
+
],
|
77
|
+
"coveragePathIgnorePatterns": [
|
78
|
+
"/__tests__/"
|
79
|
+
]
|
74
80
|
},
|
75
|
-
"gitHead": "
|
81
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
76
82
|
}
|
@@ -3,7 +3,19 @@
|
|
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
|
-
## [2.3.
|
6
|
+
## [2.3.8-iam-auth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.3.7...@aws-amplify/graphql-index-transformer@2.3.8-iam-auth.0) (2024-03-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
9
|
+
|
10
|
+
## [2.3.7](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.3.6...@aws-amplify/graphql-index-transformer@2.3.7) (2024-03-13)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
13
|
+
|
14
|
+
## [2.3.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.3.5...@aws-amplify/graphql-index-transformer@2.3.6) (2024-02-28)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
17
|
+
|
18
|
+
## [2.3.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.3.4...@aws-amplify/graphql-index-transformer@2.3.5) (2024-02-05)
|
7
19
|
|
8
20
|
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
9
21
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-index-transformer",
|
3
|
-
"version": "2.3.
|
3
|
+
"version": "2.3.8-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL index and key transformers",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,15 +28,15 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
32
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
33
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
31
|
+
"@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
34
34
|
"graphql": "^15.5.0",
|
35
|
-
"graphql-mapping-template": "4.20.
|
36
|
-
"graphql-transformer-common": "4.
|
35
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
36
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
39
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
42
|
"aws-cdk-lib": "^2.80.0",
|
@@ -68,7 +68,13 @@
|
|
68
68
|
"clover",
|
69
69
|
"text"
|
70
70
|
],
|
71
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
71
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
72
|
+
"collectCoverageFrom": [
|
73
|
+
"src/**/*.ts"
|
74
|
+
],
|
75
|
+
"coveragePathIgnorePatterns": [
|
76
|
+
"/__tests__/"
|
77
|
+
]
|
72
78
|
},
|
73
|
-
"gitHead": "
|
79
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
74
80
|
}
|
@@ -3,7 +3,19 @@
|
|
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.4.
|
6
|
+
## [3.4.9-iam-auth.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.8...@aws-amplify/graphql-maps-to-transformer@3.4.9-iam-auth.0) (2024-03-15)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
9
|
+
|
10
|
+
## [3.4.8](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.7...@aws-amplify/graphql-maps-to-transformer@3.4.8) (2024-03-13)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
13
|
+
|
14
|
+
## [3.4.7](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.6...@aws-amplify/graphql-maps-to-transformer@3.4.7) (2024-02-28)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
17
|
+
|
18
|
+
## [3.4.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.5...@aws-amplify/graphql-maps-to-transformer@3.4.6) (2024-02-05)
|
7
19
|
|
8
20
|
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
9
21
|
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-maps-to-transformer",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.9-iam-auth.0",
|
4
4
|
"description": "Amplify GraphQL @mapsTo transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,21 +30,21 @@
|
|
30
30
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
34
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.4.
|
35
|
-
"graphql-mapping-template": "4.20.
|
36
|
-
"graphql-transformer-common": "4.
|
33
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1-iam-auth.0",
|
34
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.4.1-iam-auth.0",
|
35
|
+
"graphql-mapping-template": "4.20.16-iam-auth.0",
|
36
|
+
"graphql-transformer-common": "4.28.2-iam-auth.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"aws-cdk-lib": "^2.80.0",
|
40
40
|
"constructs": "^10.0.5"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@aws-amplify/graphql-index-transformer": "2.3.
|
44
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
45
|
-
"@aws-amplify/graphql-relational-transformer": "2.
|
46
|
-
"@aws-amplify/graphql-searchable-transformer": "2.
|
47
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
43
|
+
"@aws-amplify/graphql-index-transformer": "2.3.8-iam-auth.0",
|
44
|
+
"@aws-amplify/graphql-model-transformer": "2.6.1-iam-auth.0",
|
45
|
+
"@aws-amplify/graphql-relational-transformer": "2.4.2-iam-auth.0",
|
46
|
+
"@aws-amplify/graphql-searchable-transformer": "2.6.2-iam-auth.0",
|
47
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.7-iam-auth.0",
|
48
48
|
"graphql": "^15.5.0"
|
49
49
|
},
|
50
50
|
"jest": {
|
@@ -63,8 +63,7 @@
|
|
63
63
|
"collectCoverage": true,
|
64
64
|
"coverageProvider": "v8",
|
65
65
|
"collectCoverageFrom": [
|
66
|
-
"src
|
67
|
-
"!src/__tests__/**"
|
66
|
+
"src/**/*.ts"
|
68
67
|
],
|
69
68
|
"coverageThreshold": {
|
70
69
|
"global": {
|
@@ -77,7 +76,10 @@
|
|
77
76
|
"clover",
|
78
77
|
"text"
|
79
78
|
],
|
80
|
-
"testEnvironment": "../../FixJestEnvironment.js"
|
79
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
80
|
+
"coveragePathIgnorePatterns": [
|
81
|
+
"/__tests__/"
|
82
|
+
]
|
81
83
|
},
|
82
|
-
"gitHead": "
|
84
|
+
"gitHead": "cb69f1ad3fae324674f3cc6db63495b4344c3fb5"
|
83
85
|
}
|
@@ -81,7 +81,7 @@ export const extendTypeWithDirectives: (ctx: TransformerTransformSchemaStepConte
|
|
81
81
|
export const generateApplyDefaultsToInputTemplate: (target: string) => Expression;
|
82
82
|
|
83
83
|
// @public (undocumented)
|
84
|
-
export const generateAuthExpressionForSandboxMode: (
|
84
|
+
export const generateAuthExpressionForSandboxMode: (isSandboxModeEnabled: boolean, genericIamAccessEnabled: boolean | undefined) => string;
|
85
85
|
|
86
86
|
// @public (undocumented)
|
87
87
|
export function generateModelScalarFilterInputName(typeName: string, includeFilter: boolean, isSubscriptionFilter?: boolean): string;
|
@@ -120,7 +120,7 @@ export function makeModelScalarFilterInputObject(type: string, supportsCondition
|
|
120
120
|
export const makeModelSortDirectionEnumObject: () => EnumTypeDefinitionNode;
|
121
121
|
|
122
122
|
// @public (undocumented)
|
123
|
-
export const makeMutationConditionInput: (ctx: TransformerTransformSchemaStepContextProvider, name: string, object: ObjectTypeDefinitionNode) => InputObjectTypeDefinitionNode;
|
123
|
+
export const makeMutationConditionInput: (ctx: TransformerTransformSchemaStepContextProvider, name: string, object: ObjectTypeDefinitionNode, modelDirectiveConfig: ModelDirectiveConfiguration) => InputObjectTypeDefinitionNode;
|
124
124
|
|
125
125
|
// @public (undocumented)
|
126
126
|
export function makeSizeInputType(): InputObjectTypeDefinitionNode;
|
@@ -313,7 +313,7 @@ export interface ModelVTLGenerator {
|
|
313
313
|
export const OPERATION_KEY = "__operation";
|
314
314
|
|
315
315
|
// @public (undocumented)
|
316
|
-
export const
|
316
|
+
export const propagateDirectivesToNestedTypes: (ctx: TransformerContextProvider, def: ObjectTypeDefinitionNode, seenNonModelTypes: Set<string>, serviceDirectives: DirectiveNode[]) => void;
|
317
317
|
|
318
318
|
// Warning: (ae-forgotten-export) The symbol "ModelResourceGenerator" needs to be exported by the entry point index.d.ts
|
319
319
|
//
|