@aws-amplify/graphql-api-construct 1.7.1-gen2-release.1 → 1.8.0-data-schema-generator.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +256 -331
- package/API.md +9 -17
- package/CHANGELOG.md +6 -5
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +3 -3
- 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 +1 -12
- package/lib/internal/authorization-modes.js +7 -47
- package/lib/internal/codegen-assets.js +1 -10
- package/lib/internal/data-source-config.js +3 -2
- package/lib/model-datasource-strategy-types.d.ts +9 -1
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.d.ts +7 -1
- package/lib/sql-model-datasource-strategy.js +15 -4
- package/lib/types.d.ts +5 -51
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +1 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -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 +43 -52
- 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/constants.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/constants.js +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/constants.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts +1 -2
- 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 +1 -2
- 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 +11 -22
- 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 +4 -11
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.js +1 -10
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/warnings.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 +10 -20
- 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 -9
- 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 +9 -16
- 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/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.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 +4 -5
- 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 +4 -5
- 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 +4 -5
- 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 +4 -15
- 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 +4 -5
- 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 +2 -8
- 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 +2 -3
- 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 +16 -27
- 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.js +3 -3
- 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 +14 -13
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +0 -6
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js +0 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +1 -1
- 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 +10 -19
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js +2 -13
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -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/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +3 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +5 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +0 -1
- 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 +1 -2
- 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 +16 -29
- 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 +7 -11
- 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/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 +9 -18
- 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 +3 -1
- 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 +40 -5
- 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/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 +14 -10
- 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 +8 -7
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +2 -4
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +4 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js +4 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +5 -4
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +5 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +3 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +6 -5
- 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 +7 -4
- 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 -5
- 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.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js +2 -6
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +5 -4
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +4 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +3 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts +4 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js +4 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +5 -4
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +4 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +3 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts +2 -3
- 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 +3 -6
- 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.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js +17 -72
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts +1 -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.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +0 -5
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -2
- 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 +1 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js +9 -20
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +3 -14
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +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 +9 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -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 +8 -17
- 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 +9 -8
- package/node_modules/@aws-amplify/graphql-transformer/API.md +2 -1
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +2 -2
- 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 +2 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -15
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +5 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +7 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +5 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +4 -3
- 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 +11 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +4 -3
- 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 +4 -2
- 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/transformer-context/resolver.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +7 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.d.ts +2 -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 +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/resource-name.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +6 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +26 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +5 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +13 -1
- 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 +5 -1
- 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 +0 -1
- 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-provider.d.ts +3 -3
- 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/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +39 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-transformer-common/API.md +3 -4
- package/node_modules/graphql-transformer-common/CHANGELOG.md +4 -2
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +3 -4
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +3 -4
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +3 -2
- package/package.json +19 -19
- package/src/amplify-graphql-api.ts +1 -2
- package/src/index.ts +0 -1
- package/src/internal/authorization-modes.ts +8 -57
- package/src/internal/codegen-assets.ts +2 -11
- package/src/internal/data-source-config.ts +5 -1
- package/src/model-datasource-strategy-types.ts +11 -1
- package/src/sql-model-datasource-strategy.ts +15 -1
- package/src/types.ts +5 -56
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js +0 -12
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts +0 -11
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js +0 -36
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts +0 -11
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +0 -37
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts +0 -11
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +0 -37
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts +0 -9
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js +0 -172
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js.map +0 -1
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.generateFieldResolverForOwner = exports.setDeniedFieldFlag = exports.emptyPayload = exports.generateSandboxExpressionForField = exports.constructAuthorizedInputStatement = exports.constructAuthFilter = exports.validateAuthResult = exports.generateAuthRulesFromRoles = exports.generateDefaultRDSExpression = void 0;
|
4
4
|
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
5
5
|
const graphql_model_transformer_1 = require("@aws-amplify/graphql-model-transformer");
|
6
6
|
const utils_1 = require("../../../utils");
|
7
|
-
const
|
8
|
-
const generateDefaultRDSExpression = (iamAccessEnabled) => {
|
7
|
+
const generateDefaultRDSExpression = () => {
|
9
8
|
const exp = (0, graphql_mapping_template_1.ref)('util.unauthorized()');
|
10
|
-
return (0, graphql_mapping_template_1.printBlock)('Default RDS Auth Resolver')((0,
|
9
|
+
return (0, graphql_mapping_template_1.printBlock)('Default RDS Auth Resolver')((0, graphql_mapping_template_1.compoundExpression)([exp, (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.obj)({}))]));
|
11
10
|
};
|
12
11
|
exports.generateDefaultRDSExpression = generateDefaultRDSExpression;
|
13
12
|
const generateAuthRulesFromRoles = (roles, fields, hasIdentityPoolId, hideAllowedFields = false) => {
|
@@ -30,21 +29,21 @@ const getIamAdminRoleExpression = () => (0, graphql_mapping_template_1.iff)((0,
|
|
30
29
|
const convertAuthRoleToVtl = (role, fields, hasIdentityPoolId, hideAllowedFields = false) => {
|
31
30
|
const allowedFields = getAllowedFields(role, fields).map((field) => (0, graphql_mapping_template_1.str)(field));
|
32
31
|
const showAllowedFields = allowedFields && !hideAllowedFields && allowedFields.length > 0;
|
33
|
-
if (
|
32
|
+
if (role.provider === 'apiKey') {
|
34
33
|
return (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authRules.add'), (0, graphql_mapping_template_1.obj)({
|
35
34
|
type: (0, graphql_mapping_template_1.str)('public'),
|
36
35
|
provider: (0, graphql_mapping_template_1.str)('apiKey'),
|
37
36
|
...(showAllowedFields && { allowedFields: (0, graphql_mapping_template_1.list)(allowedFields) }),
|
38
37
|
})));
|
39
38
|
}
|
40
|
-
else if (
|
39
|
+
else if (role.provider === 'function') {
|
41
40
|
return (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authRules.add'), (0, graphql_mapping_template_1.obj)({
|
42
41
|
type: (0, graphql_mapping_template_1.str)('custom'),
|
43
42
|
provider: (0, graphql_mapping_template_1.str)('function'),
|
44
43
|
...(showAllowedFields && { allowedFields: (0, graphql_mapping_template_1.list)(allowedFields) }),
|
45
44
|
})));
|
46
45
|
}
|
47
|
-
else if (
|
46
|
+
else if (role.provider === 'iam') {
|
48
47
|
return (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authRules.add'), (0, graphql_mapping_template_1.obj)({
|
49
48
|
type: (0, graphql_mapping_template_1.str)(role.strategy),
|
50
49
|
provider: (0, graphql_mapping_template_1.str)('iam'),
|
@@ -53,7 +52,7 @@ const convertAuthRoleToVtl = (role, fields, hasIdentityPoolId, hideAllowedFields
|
|
53
52
|
...(showAllowedFields && { allowedFields: (0, graphql_mapping_template_1.list)(allowedFields) }),
|
54
53
|
})));
|
55
54
|
}
|
56
|
-
else if (
|
55
|
+
else if (role.provider === 'userPools' || role.provider === 'oidc') {
|
57
56
|
if (role.strategy === 'private') {
|
58
57
|
return (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authRules.add'), (0, graphql_mapping_template_1.obj)({
|
59
58
|
type: (0, graphql_mapping_template_1.str)(role.strategy),
|
@@ -71,7 +70,7 @@ const convertAuthRoleToVtl = (role, fields, hasIdentityPoolId, hideAllowedFields
|
|
71
70
|
})));
|
72
71
|
}
|
73
72
|
else if (role.strategy === 'owner') {
|
74
|
-
const usingCognitoDefaultClaim = role.claim === utils_1.DEFAULT_UNIQUE_IDENTITY_CLAIM &&
|
73
|
+
const usingCognitoDefaultClaim = role.claim === utils_1.DEFAULT_UNIQUE_IDENTITY_CLAIM && role.provider === 'userPools';
|
75
74
|
return (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authRules.add'), (0, graphql_mapping_template_1.obj)({
|
76
75
|
type: (0, graphql_mapping_template_1.str)(role.strategy),
|
77
76
|
provider: (0, graphql_mapping_template_1.str)(role.provider),
|
@@ -112,18 +111,15 @@ const constructAuthFilter = () => {
|
|
112
111
|
exports.constructAuthFilter = constructAuthFilter;
|
113
112
|
const constructAuthorizedInputStatement = (keyName) => (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.ref)('authResult'), (0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrEmpty'), (0, graphql_mapping_template_1.ref)('authResult.authorizedInput')))]), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(keyName), (0, graphql_mapping_template_1.ref)('authResult.authorizedInput')));
|
114
113
|
exports.constructAuthorizedInputStatement = constructAuthorizedInputStatement;
|
115
|
-
const
|
116
|
-
|
117
|
-
if (sandboxEnabled)
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
}
|
123
|
-
expressions.push((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.unauthorized')));
|
124
|
-
return (0, graphql_mapping_template_1.printBlock)(`Sandbox Mode ${sandboxEnabled ? 'Enabled' : 'Disabled'}, IAM Access ${genericIamAccessEnabled ? 'Enabled' : 'Disabled'}`)((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
114
|
+
const generateSandboxExpressionForField = (sandboxEnabled) => {
|
115
|
+
let exp;
|
116
|
+
if (sandboxEnabled)
|
117
|
+
exp = (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.notEquals)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.authType')), (0, graphql_mapping_template_1.str)(utils_1.API_KEY_AUTH_TYPE)), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.unauthorized')));
|
118
|
+
else
|
119
|
+
exp = (0, graphql_mapping_template_1.ref)('util.unauthorized()');
|
120
|
+
return (0, graphql_mapping_template_1.printBlock)(`Sandbox Mode ${sandboxEnabled ? 'Enabled' : 'Disabled'}`)((0, graphql_mapping_template_1.compoundExpression)([exp, (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.obj)({}))]));
|
125
121
|
};
|
126
|
-
exports.
|
122
|
+
exports.generateSandboxExpressionForField = generateSandboxExpressionForField;
|
127
123
|
exports.emptyPayload = (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.raw)(JSON.stringify({ version: '2018-05-29', payload: {} })));
|
128
124
|
const setDeniedFieldFlag = (operation, subscriptionsEnabled) => {
|
129
125
|
if (subscriptionsEnabled) {
|
@@ -158,11 +154,4 @@ const generateFieldResolverForOwner = (entity) => {
|
|
158
154
|
return (0, graphql_mapping_template_1.printBlock)('Parse owner field auth for Get')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
159
155
|
};
|
160
156
|
exports.generateFieldResolverForOwner = generateFieldResolverForOwner;
|
161
|
-
const generateIAMAccessCheck = (enableIamAccess, expression) => {
|
162
|
-
if (!enableIamAccess) {
|
163
|
-
return expression;
|
164
|
-
}
|
165
|
-
return (0, graphql_mapping_template_1.ifElse)(common_1.isNonCognitoIAMPrincipal, (0, graphql_mapping_template_1.compoundExpression)([common_1.setHasAuthExpression, exports.emptyPayload]), expression);
|
166
|
-
};
|
167
|
-
exports.generateIAMAccessCheck = generateIAMAccessCheck;
|
168
157
|
//# sourceMappingURL=common.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/common.ts"],"names":[],"mappings":";;;AAAA,uEAwBkC;AAElC,sFAAuE;AACvE,0CAMwB;AACxB,yCAA8E;AAKvE,MAAM,4BAA4B,GAAG,CAAC,gBAAyB,EAAU,EAAE;IAChF,MAAM,GAAG,GAAG,IAAA,8BAAG,EAAC,qBAAqB,CAAC,CAAC;IACvC,OAAO,IAAA,qCAAU,EAAC,2BAA2B,CAAC,CAAC,IAAA,8BAAsB,EAAC,gBAAgB,EAAE,IAAA,6CAAkB,EAAC,CAAC,GAAG,EAAE,IAAA,iCAAM,EAAC,IAAA,8BAAG,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvI,CAAC,CAAC;AAHW,QAAA,4BAA4B,gCAGvC;AAEK,MAAM,0BAA0B,GAAG,CACxC,KAA4B,EAC5B,MAAuC,EACvC,iBAA0B,EAC1B,iBAAiB,GAAG,KAAK,EACX,EAAE;IAChB,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,IAAI,CAAC,IAAA,+BAAI,EAAC,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,eAAe,CAAC,EAAE,IAAA,8BAAG,EAAC,SAAS,CAAC,EAAE,IAAA,+BAAI,EAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,WAAW,CAAC,EAAE,IAAA,+BAAI,EAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3D,WAAW,CAAC,IAAI,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAC9C,KAAK,CAAC,O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AA2B,CAAC,CAAC;YAClE,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,mBAAmB,CAAC,EAAE,IAAA,8BAAG,EAAC,sCAAsC,CAAC,CAAC;YAC1E,IAAA,+BAAI,EAAC,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,gBAAgB,CAAC,EAAE,IAAA,8BAAG,EAAC,MAAM,CAAC,EAAE,IAAA,8BAAG,EAAC,mBAAmB,CAAC,CAAC,CAAC;YAC9E,IAAA,iCAAM,EAAC,IAAA,8BAAG,EAAC,cAAc,MAAM,EAAE,CAAC,CAAC;SACpC,CAAC,CACH;KACF,CAAC;IAEF,OAAO,IAAA,qCAAU,EAAC,gCAAgC,CAAC,CAAC,IAAA,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC;AACvF,CAAC,CAAC;AA3BW,QAAA,6BAA6B,iCA2BxC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/mutation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/resolvers/mutation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,eAAO,MAAM,+BAA+B,QAErC,0BAA0B,aACpB,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,KACzC,MAEF,CAAC;AAEF,eAAO,MAAM,+BAA+B,cAC/B,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,KACzC,MAEF,CAAC;AAEF,eAAO,MAAM,+BAA+B,cAC/B,uBAAuB,SAC3B,MAAM,cAAc,CAAC,UACpB,cAAc,mBAAmB,CAAC,KACzC,MAEF,CAAC;AAuBF,eAAO,MAAM,6BAA6B,QAAS,0BAA0B,OAAO,wBAAwB,KAAG,MA4B9G,CAAC"}
|
@@ -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,
|
7
|
+
return generateMutationExpression(roles, fields, 'create', providers.hasIdentityPoolId, false);
|
8
8
|
};
|
9
9
|
exports.generateAuthExpressionForCreate = generateAuthExpressionForCreate;
|
10
10
|
const generateAuthExpressionForUpdate = (providers, roles, fields) => {
|
11
|
-
return generateMutationExpression(roles, fields, 'update', providers.hasIdentityPoolId,
|
11
|
+
return generateMutationExpression(roles, fields, 'update', providers.hasIdentityPoolId, true);
|
12
12
|
};
|
13
13
|
exports.generateAuthExpressionForUpdate = generateAuthExpressionForUpdate;
|
14
14
|
const generateAuthExpressionForDelete = (providers, roles, fields) => {
|
15
|
-
return generateMutationExpression(roles, fields, 'delete', providers.hasIdentityPoolId,
|
15
|
+
return generateMutationExpression(roles, fields, 'delete', providers.hasIdentityPoolId, true);
|
16
16
|
};
|
17
17
|
exports.generateAuthExpressionForDelete = generateAuthExpressionForDelete;
|
18
|
-
const generateMutationExpression = (roles, fields, operation, hasIdentityPoolId,
|
18
|
+
const generateMutationExpression = (roles, fields, operation, hasIdentityPoolId, 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,
|
25
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((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,qCAA2H;AAEpH,MAAM,+BAA+B,GAAG,CAE7C,GAA+B,EAC/B,SAAkC,EAClC,KAA4B,EAC5B,MAA0C,EAClC,EAAE;IACV,OAAO,0BAA0B,CA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,IAAA,qCAAU,EACR,IAAA,8BAAG,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"}
|
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js
CHANGED
@@ -9,7 +9,7 @@ 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,
|
12
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
13
13
|
};
|
14
14
|
exports.generateAuthExpressionForQueries = generateAuthExpressionForQueries;
|
15
15
|
const generateAuthExpressionForField = (providers, roles, fields, fieldName = undefined) => {
|
@@ -18,7 +18,7 @@ const generateAuthExpressionForField = (providers, roles, fields, fieldName = un
|
|
18
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
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
20
|
expressions.push(common_1.emptyPayload);
|
21
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0,
|
21
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
22
22
|
};
|
23
23
|
exports.generateAuthExpressionForField = generateAuthExpressionForField;
|
24
24
|
const generateFieldAuthResponse = (operation, fieldName, subscriptionsEnabled) => {
|
@@ -36,7 +36,7 @@ const generateAuthExpressionForRelationQuery = (ctx, def, field, relatedModelObj
|
|
36
36
|
expressions.push((0, graphql_mapping_template_1.compoundExpression)((0, common_1.generateAuthRulesFromRoles)(roles, fields, providers.hasIdentityPoolId, true)));
|
37
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'))));
|
38
38
|
expressions.push((0, common_1.validateAuthResult)(), (0, common_1.constructAuthFilter)(), common_1.emptyPayload);
|
39
|
-
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0,
|
39
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((0, graphql_mapping_template_1.compoundExpression)(expressions));
|
40
40
|
};
|
41
41
|
exports.generateAuthExpressionForRelationQuery = generateAuthExpressionForRelationQuery;
|
42
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,uEAA4I;AAG5I,sFAAuE;AAEvE,
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/vtl-generator/rds/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CAAC,CAAC;SAC/G,CAAC,CACH,CAAC;KACH;IACD,OAAO,IAAA,qCAAU,EAAC,qBAAqB,CAAC,CAAC,IAAA,iCAAM,EAAC,IAAA,8BAAG,EAAC,mBAAmB,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC;AAVW,QAAA,yBAAyB,6BAUpC;AAKK,MAAM,sCAAsC,GAAG,CAEpD,GAA+B,EAE/B,GAA6B,EAE7B,KAA0B,EAE1B,kBAA4C,EAC5C,SAAkC,EAClC,KAA4B,EAC5B,MAA0C,EAClC,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,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC;AAC5E,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,
|
15
|
+
return (0, graphql_mapping_template_1.printBlock)('Authorization rules')((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,qCAAwF;AAEjF,MAAM,sCAAsC,GAAG,CAAC,SAAkC,EAAE,KAA4B,EAAU,EAAE;IACjI,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,WAAW,CAAC,IAAI,CAAC,IAAA,6CAAkB,EAAC,IAAA,mCAA0B,EAAC,KAAK,EAAE,EAAE,EAAE,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/G,WAAW,CAAC,IAAI,CAAC,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,iCAAiC,CAAC,EAAE,IAAA,8BAAG,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/G,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,CAAC,CAAC;IAGvC,WAAW,CAAC,IAAI,CACd,IAAA,8BAAG,EACD,IAAA,8BAAG,EAAC,CAAC,IAAA,8BAAG,EAAC,YAAY,CAAC,EAAE,IAAA,8BAAG,EAAC,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,oBAAoB,CAAC,EAAE,IAAA,8BAAG,EAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,EAClG,IAAA,iCAAM,EACJ,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,oBAAoB,CAAC,EAAE,IAAA,8BAAG,EAAC,iBAAiB,CAAC,CAAC,EAC7D,IAAA,8BAAG,EAAC,IAAA,8BAAG,EAAC,iBAAiB,CAAC,EAAE,IAAA,8BAAG,EAAC,uBAAuB,CAAC,CAAC,EACzD,IAAA,8BAAG,EACD,IAAA,8BAAG,EAAC,iBAAiB,CAAC,EACtB,IAAA,8BAAG,EAAC;QACF,GAAG,EAAE,IAAA,+BAAI,EAAC,CAAC,IAAA,8BAAG,EAAC,uBAAuB,CAAC,EAAE,IAAA,8BAAG,EAAC,iBAAiB,CAAC,CAAC,CAAC;KAClE,CAAC,CACH,CACF,CACF,CACF,CAAC;IAEF,WAAW,CAAC,IAAI,CAAC,qBAAY,CAAC,CAAC;IAE/B,OAAO,IAAA,qCAAU,EAAC,qBAAqB,CAAC,CAAC,IAAA,6CAAkB,EAAC,WAAW,CAAC,CAAC,CAAC;AAC5E,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
|
-
|
17
|
+
generateSandboxExpressionForField: (sandboxEnabled: 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
C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ClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,EAC5B,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAC1C,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,KAC5B,MAAM,CAAC;IAEZ,sCAAsC,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC;IAErH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,KAAK,MAAM,CAAC;IAEjF,sCAAsC,EAAE,CACtC,GAAG,EAAE,0BAA0B,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,KAAK,MAAM,CAAC;CACxE"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-auth-transformer",
|
3
|
-
"version": "3.4.3-
|
3
|
+
"version": "3.4.3-data-schema-generator.0",
|
4
4
|
"description": "Amplify GraphQL @auth transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,23 +29,23 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-directives": "1.
|
33
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
34
|
-
"@aws-amplify/graphql-relational-transformer": "2.
|
35
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
36
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.
|
32
|
+
"@aws-amplify/graphql-directives": "1.0.1",
|
33
|
+
"@aws-amplify/graphql-model-transformer": "2.8.0-data-schema-generator.0",
|
34
|
+
"@aws-amplify/graphql-relational-transformer": "2.4.3-data-schema-generator.0",
|
35
|
+
"@aws-amplify/graphql-transformer-core": "2.6.0-data-schema-generator.0",
|
36
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.6.0-data-schema-generator.0",
|
37
37
|
"graphql": "^15.5.0",
|
38
38
|
"graphql-mapping-template": "4.20.15",
|
39
|
-
"graphql-transformer-common": "4.
|
39
|
+
"graphql-transformer-common": "4.30.0-data-schema-generator.0",
|
40
40
|
"lodash": "^4.17.21",
|
41
41
|
"md5": "^2.3.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@aws-amplify/graphql-function-transformer": "2.1.20-
|
45
|
-
"@aws-amplify/graphql-index-transformer": "2.3.9-
|
46
|
-
"@aws-amplify/graphql-searchable-transformer": "2.6.3-
|
47
|
-
"@aws-amplify/graphql-sql-transformer": "0.2.9-
|
48
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
44
|
+
"@aws-amplify/graphql-function-transformer": "2.1.20-data-schema-generator.0",
|
45
|
+
"@aws-amplify/graphql-index-transformer": "2.3.9-data-schema-generator.0",
|
46
|
+
"@aws-amplify/graphql-searchable-transformer": "2.6.3-data-schema-generator.0",
|
47
|
+
"@aws-amplify/graphql-sql-transformer": "0.2.9-data-schema-generator.0",
|
48
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.5.0-data-schema-generator.0",
|
49
49
|
"@types/node": "^12.12.6"
|
50
50
|
},
|
51
51
|
"peerDependencies": {
|
@@ -86,5 +86,6 @@
|
|
86
86
|
"coveragePathIgnorePatterns": [
|
87
87
|
"/__tests__/"
|
88
88
|
]
|
89
|
-
}
|
89
|
+
},
|
90
|
+
"gitHead": "e79bb1ea55434aa986c86d888ee011318f46be14"
|
90
91
|
}
|
@@ -3,7 +3,7 @@
|
|
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.3-
|
6
|
+
## [2.3.3-data-schema-generator.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-default-value-transformer@2.3.2...@aws-amplify/graphql-default-value-transformer@2.3.3-data-schema-generator.0) (2024-04-05)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/graphql-default-value-transformer
|
9
9
|
|
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2017 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-default-value-transformer",
|
3
|
-
"version": "2.3.3-
|
3
|
+
"version": "2.3.3-data-schema-generator.0",
|
4
4
|
"description": "Amplify GraphQL default value transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -29,17 +29,17 @@
|
|
29
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-amplify/graphql-directives": "1.
|
33
|
-
"@aws-amplify/graphql-transformer-core": "2.
|
34
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.
|
32
|
+
"@aws-amplify/graphql-directives": "1.0.1",
|
33
|
+
"@aws-amplify/graphql-transformer-core": "2.6.0-data-schema-generator.0",
|
34
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.6.0-data-schema-generator.0",
|
35
35
|
"graphql": "^15.5.0",
|
36
36
|
"graphql-mapping-template": "4.20.15",
|
37
|
-
"graphql-transformer-common": "4.
|
37
|
+
"graphql-transformer-common": "4.30.0-data-schema-generator.0",
|
38
38
|
"libphonenumber-js": "1.9.47"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
42
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
41
|
+
"@aws-amplify/graphql-model-transformer": "2.8.0-data-schema-generator.0",
|
42
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.5.0-data-schema-generator.0"
|
43
43
|
},
|
44
44
|
"jest": {
|
45
45
|
"transform": {
|
@@ -75,5 +75,6 @@
|
|
75
75
|
"coveragePathIgnorePatterns": [
|
76
76
|
"/__tests__/"
|
77
77
|
]
|
78
|
-
}
|
78
|
+
},
|
79
|
+
"gitHead": "e79bb1ea55434aa986c86d888ee011318f46be14"
|
79
80
|
}
|