@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/src/types.ts
CHANGED
@@ -28,68 +28,25 @@ export interface IAMAuthorizationConfig {
|
|
28
28
|
/**
|
29
29
|
* ID for the Cognito Identity Pool vending auth and unauth roles.
|
30
30
|
* Format: `<region>:<id string>`
|
31
|
-
*
|
32
|
-
* @deprecated Use 'IdentityPoolAuthorizationConfig.identityPoolId' instead.
|
33
|
-
* See https://docs.amplify.aws/cli/react/tools/cli/migration/iam-auth-updates-for-cdk-construct for details.
|
34
31
|
*/
|
35
|
-
readonly identityPoolId
|
32
|
+
readonly identityPoolId: string;
|
36
33
|
|
37
34
|
/**
|
38
35
|
* Authenticated user role, applies to { provider: iam, allow: private } access.
|
39
|
-
*
|
40
|
-
* @deprecated Use 'IdentityPoolAuthorizationConfig.authenticatedUserRole' instead.
|
41
|
-
* See https://docs.amplify.aws/cli/react/tools/cli/migration/iam-auth-updates-for-cdk-construct for details.
|
42
36
|
*/
|
43
|
-
readonly authenticatedUserRole
|
37
|
+
readonly authenticatedUserRole: IRole;
|
44
38
|
|
45
39
|
/**
|
46
40
|
* Unauthenticated user role, applies to { provider: iam, allow: public } access.
|
47
|
-
*
|
48
|
-
* @deprecated Use 'IdentityPoolAuthorizationConfig.unauthenticatedUserRole' instead.
|
49
|
-
* See https://docs.amplify.aws/cli/react/tools/cli/migration/iam-auth-updates-for-cdk-construct for details.
|
50
41
|
*/
|
51
|
-
readonly unauthenticatedUserRole
|
42
|
+
readonly unauthenticatedUserRole: IRole;
|
52
43
|
|
53
44
|
/**
|
54
45
|
* A list of IAM roles which will be granted full read/write access to the generated model if IAM auth is enabled.
|
55
46
|
* If an IRole is provided, the role `name` will be used for matching.
|
56
47
|
* If a string is provided, the raw value will be used for matching.
|
57
|
-
*
|
58
|
-
* @deprecated Use 'enableIamAuthorizationMode' and IAM Policy to control access for IAM principals.
|
59
|
-
* See https://docs.amplify.aws/cli/react/tools/cli/migration/iam-auth-updates-for-cdk-construct for details.
|
60
48
|
*/
|
61
49
|
readonly allowListedRoles?: (IRole | string)[];
|
62
|
-
|
63
|
-
/**
|
64
|
-
* Enables access for IAM principals. If enabled @auth directive rules are not applied.
|
65
|
-
* Instead, access should be defined by IAM Policy, see https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsappsync.html.
|
66
|
-
*
|
67
|
-
* Does not apply to authenticated and unauthenticated IAM Roles attached to Cognito Identity Pool.
|
68
|
-
* Use IdentityPoolAuthorizationConfig to configure their access.
|
69
|
-
*/
|
70
|
-
readonly enableIamAuthorizationMode?: boolean;
|
71
|
-
}
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Configuration for Cognito Identity Pool Authorization on the Graphql Api.
|
75
|
-
* @struct - required since this interface begins with an 'I'
|
76
|
-
*/
|
77
|
-
export interface IdentityPoolAuthorizationConfig {
|
78
|
-
/**
|
79
|
-
* ID for the Cognito Identity Pool vending auth and unauth roles.
|
80
|
-
* Format: `<region>:<id string>`
|
81
|
-
*/
|
82
|
-
readonly identityPoolId: string;
|
83
|
-
|
84
|
-
/**
|
85
|
-
* Authenticated user role, applies to { provider: iam, allow: private } access.
|
86
|
-
*/
|
87
|
-
readonly authenticatedUserRole: IRole;
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Unauthenticated user role, applies to { provider: iam, allow: public } access.
|
91
|
-
*/
|
92
|
-
readonly unauthenticatedUserRole: IRole;
|
93
50
|
}
|
94
51
|
|
95
52
|
/**
|
@@ -177,18 +134,10 @@ export interface AuthorizationModes {
|
|
177
134
|
readonly defaultAuthorizationMode?: 'AWS_IAM' | 'AMAZON_COGNITO_USER_POOLS' | 'OPENID_CONNECT' | 'API_KEY' | 'AWS_LAMBDA';
|
178
135
|
|
179
136
|
/**
|
180
|
-
* IAM Auth config, required
|
181
|
-
* This applies to any IAM principal except Amazon Cognito identity pool's authenticated and unauthenticated roles.
|
182
|
-
* This behavior was has recently been improved.
|
183
|
-
* See https://docs.amplify.aws/cli/react/tools/cli/migration/iam-auth-updates-for-cdk-construct for details.
|
184
|
-
*/
|
185
|
-
readonly iamConfig?: IAMAuthorizationConfig;
|
186
|
-
|
187
|
-
/**
|
188
|
-
* Cognito Identity Pool config, required if an 'identityPool' auth provider is specified in the Api.
|
137
|
+
* IAM Auth config, required if an 'iam' auth provider is specified in the Api.
|
189
138
|
* Applies to 'public' and 'private' auth strategies.
|
190
139
|
*/
|
191
|
-
readonly
|
140
|
+
readonly iamConfig?: IAMAuthorizationConfig;
|
192
141
|
|
193
142
|
/**
|
194
143
|
* Cognito UserPool config, required if a 'userPools' auth provider is specified in the Api.
|
package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/vtl-generator/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAA8B,MAAM,0BAA0B,CAAC;AAIrG,eAAO,MAAM,oBAAoB,EAAE,UAA+E,CAAC;AAGnH,eAAO,MAAM,wBAAwB,4CAInC,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isNonCognitoIAMPrincipal = exports.setHasAuthExpression = void 0;
|
4
|
-
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
5
|
-
const utils_1 = require("../utils");
|
6
|
-
exports.setHasAuthExpression = (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('ctx.stash.put'), (0, graphql_mapping_template_1.str)('hasAuth'), (0, graphql_mapping_template_1.bool)(true)));
|
7
|
-
exports.isNonCognitoIAMPrincipal = (0, graphql_mapping_template_1.and)([
|
8
|
-
(0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('util.authType()'), (0, graphql_mapping_template_1.str)(utils_1.IAM_AUTH_TYPE)),
|
9
|
-
(0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)('ctx.identity.cognitoIdentityPoolId')),
|
10
|
-
(0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)('ctx.identity.cognitoIdentityId')),
|
11
|
-
]);
|
12
|
-
//# sourceMappingURL=common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/vtl-generator/common.ts"],"names":[],"mappings":";;;AAAA,uEAAqG;AACrG,oCAAyC;AAG5B,QAAA,oBAAoB,GAAe,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,CAAC;AAGtG,QAAA,wBAAwB,GAAG,IAAA,8BAAG,EAAC;IAC1C,IAAA,iCAAM,EAAC,IAAA,8BAAG,EAAC,iBAAiB,CAAC,EAAE,IAAA,8BAAG,EAAC,qBAAa,CAAC,CAAC;IAClD,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,aAAa,CAAC,EAAE,IAAA,8BAAG,EAAC,oCAAoC,CAAC,CAAC;IACzE,IAAA,qCAAU,EAAC,IAAA,8BAAG,EAAC,aAAa,CAAC,EAAE,IAAA,8BAAG,EAAC,gCAAgC,CAAC,CAAC;CACtE,CAAC,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
|
3
|
-
import { BelongsToDirectiveConfiguration } from '../types';
|
4
|
-
export declare class BelongsToDirectiveDDBReferencesTransformer implements DataSourceBasedDirectiveTransformer<BelongsToDirectiveConfiguration> {
|
5
|
-
dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
|
6
|
-
prepare: (context: TransformerPrepareStepContextProvider, config: BelongsToDirectiveConfiguration) => void;
|
7
|
-
transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: BelongsToDirectiveConfiguration) => void;
|
8
|
-
generateResolvers: (context: TransformerContextProvider, config: BelongsToDirectiveConfiguration) => void;
|
9
|
-
validate: (context: TransformerContextProvider, config: BelongsToDirectiveConfiguration) => void;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=belongs-to-directive-ddb-references-transformer.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"belongs-to-directive-ddb-references-transformer.d.ts","sourceRoot":"","sources":["../../src/belongs-to/belongs-to-directive-ddb-references-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAc3D,qBAAa,0CAA2C,YAAW,mCAAmC,CAAC,+BAA+B,CAAC;IACrI,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,+BAA+B,KAAG,IAAI,CAUvG;IAEF,eAAe,YAAa,6CAA6C,UAAU,+BAA+B,KAAG,IAAI,CAEvH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,+BAA+B,KAAG,IAAI,CAEtG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,+BAA+B,KAAG,IAAI,CAG7F;CACH"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BelongsToDirectiveDDBReferencesTransformer = void 0;
|
4
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
-
const ddb_references_generator_1 = require("../resolver/ddb-references-generator");
|
6
|
-
const resolvers_1 = require("../resolvers");
|
7
|
-
const utils_1 = require("../utils");
|
8
|
-
class BelongsToDirectiveDDBReferencesTransformer {
|
9
|
-
constructor() {
|
10
|
-
this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
|
11
|
-
this.prepare = (context, config) => {
|
12
|
-
var _a, _b;
|
13
|
-
const modelName = config.object.name.value;
|
14
|
-
(0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value);
|
15
|
-
(0, utils_1.registerHasOneForeignKeyMappings)({
|
16
|
-
transformParameters: context.transformParameters,
|
17
|
-
resourceHelper: context.resourceHelper,
|
18
|
-
thisTypeName: modelName,
|
19
|
-
thisFieldName: config.field.name.value,
|
20
|
-
relatedType: config.relatedType,
|
21
|
-
});
|
22
|
-
};
|
23
|
-
this.transformSchema = (context, config) => {
|
24
|
-
(0, utils_1.validateChildReferencesFields)(config, context);
|
25
|
-
};
|
26
|
-
this.generateResolvers = (context, config) => {
|
27
|
-
new ddb_references_generator_1.DDBRelationalReferencesResolverGenerator().makeBelongsToGetItemConnectionWithKeyResolver(config, context);
|
28
|
-
};
|
29
|
-
this.validate = (context, config) => {
|
30
|
-
(0, utils_1.ensureReferencesArray)(config);
|
31
|
-
config.referenceNodes = (0, utils_1.getBelongsToReferencesNodes)(config, context);
|
32
|
-
};
|
33
|
-
}
|
34
|
-
}
|
35
|
-
exports.BelongsToDirectiveDDBReferencesTransformer = BelongsToDirectiveDDBReferencesTransformer;
|
36
|
-
//# sourceMappingURL=belongs-to-directive-ddb-references-transformer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"belongs-to-directive-ddb-references-transformer.js","sourceRoot":"","sources":["../../src/belongs-to/belongs-to-directive-ddb-references-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,mFAAgG;AAChG,4CAAgE;AAEhE,oCAKkB;AAQlB,MAAa,0C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} from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
|
3
|
-
import { HasManyDirectiveConfiguration } from '../types';
|
4
|
-
export declare class HasManyDirectiveDDBReferencesTransformer implements DataSourceBasedDirectiveTransformer<HasManyDirectiveConfiguration> {
|
5
|
-
dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
|
6
|
-
prepare: (context: TransformerPrepareStepContextProvider, config: HasManyDirectiveConfiguration) => void;
|
7
|
-
transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasManyDirectiveConfiguration) => void;
|
8
|
-
generateResolvers: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
|
9
|
-
validate: (context: TransformerContextProvider, config: HasManyDirectiveConfiguration) => void;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=has-many-directive-ddb-references-transformer.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"has-many-directive-ddb-references-transformer.d.ts","sourceRoot":"","sources":["../../src/has-many/has-many-directive-ddb-references-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AASzD,qBAAa,wCAAyC,YAAW,mCAAmC,CAAC,6BAA6B,CAAC;IACjI,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,6BAA6B,KAAG,IAAI,CAUrG;IAEF,eAAe,YAAa,6CAA6C,UAAU,6BAA6B,KAAG,IAAI,CAErH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAGpG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,6BAA6B,KAAG,IAAI,CAI3F;CACH"}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.HasManyDirectiveDDBReferencesTransformer = void 0;
|
4
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
-
const ddb_references_generator_1 = require("../resolver/ddb-references-generator");
|
6
|
-
const resolvers_1 = require("../resolvers");
|
7
|
-
const utils_1 = require("../utils");
|
8
|
-
class HasManyDirectiveDDBReferencesTransformer {
|
9
|
-
constructor() {
|
10
|
-
this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
|
11
|
-
this.prepare = (context, config) => {
|
12
|
-
var _a, _b;
|
13
|
-
const modelName = config.object.name.value;
|
14
|
-
(0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
|
15
|
-
(0, utils_1.registerHasManyForeignKeyMappings)({
|
16
|
-
transformParameters: context.transformParameters,
|
17
|
-
resourceHelper: context.resourceHelper,
|
18
|
-
thisTypeName: modelName,
|
19
|
-
thisFieldName: config.field.name.value,
|
20
|
-
relatedType: config.relatedType,
|
21
|
-
});
|
22
|
-
};
|
23
|
-
this.transformSchema = (context, config) => {
|
24
|
-
(0, utils_1.validateParentReferencesFields)(config, context);
|
25
|
-
};
|
26
|
-
this.generateResolvers = (context, config) => {
|
27
|
-
(0, resolvers_1.updateTableForReferencesConnection)(config, context);
|
28
|
-
new ddb_references_generator_1.DDBRelationalReferencesResolverGenerator().makeHasManyGetItemsConnectionWithKeyResolver(config, context);
|
29
|
-
};
|
30
|
-
this.validate = (context, config) => {
|
31
|
-
(0, utils_1.ensureReferencesArray)(config);
|
32
|
-
config.referenceNodes = (0, utils_1.getReferencesNodes)(config, context);
|
33
|
-
};
|
34
|
-
}
|
35
|
-
}
|
36
|
-
exports.HasManyDirectiveDDBReferencesTransformer = HasManyDirectiveDDBReferencesTransformer;
|
37
|
-
//# sourceMappingURL=has-many-directive-ddb-references-transformer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"has-many-directive-ddb-references-transformer.js","sourceRoot":"","sources":["../../src/has-many/has-many-directive-ddb-references-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,mFAAgG;AAChG,4CAAoG;AAEpG,oCAAwI;AAQxI,MAAa,wCAAwC;IAArD;QACE,WAAM,GAAG,sCAAW,CAAC;QAErB,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAqC,EAAQ,EAAE;;YACxG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,4CAAgC,EAAC,OAAO,EAAE,MAAA,MAAA,MAAM,CAAC,WAAW,0CAAE,IAAI,0CAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YACrH,IAAA,yCAAiC,EAAC;gBAChC,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;gBAChD,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,YAAY,EAAE,SAAS;gBACvB,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;gBACtC,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAqC,EAAQ,EAAE;YACxH,IAAA,sCAA8B,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAChF,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAqC,EAAQ,EAAE;YACvG,IAAA,8CAAkC,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,mEAAwC,EAAE,CAAC,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/G,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAqC,EAAQ,EAAE;YAC9F,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,GAAG,IAAA,0BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE9D,CAAC,CAAC;IACJ,CAAC;CAAA;AA7BD,4FA6BC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { TransformerContextProvider, TransformerPrepareStepContextProvider, TransformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { DataSourceBasedDirectiveTransformer } from '../data-source-based-directive-transformer';
|
3
|
-
import { HasOneDirectiveConfiguration } from '../types';
|
4
|
-
export declare class HasOneDirectiveDDBReferencesTransformer implements DataSourceBasedDirectiveTransformer<HasOneDirectiveConfiguration> {
|
5
|
-
dbType: import("@aws-amplify/graphql-transformer-interfaces").ModelDataSourceStrategyDbType;
|
6
|
-
prepare: (context: TransformerPrepareStepContextProvider, config: HasOneDirectiveConfiguration) => void;
|
7
|
-
transformSchema: (context: TransformerTransformSchemaStepContextProvider, config: HasOneDirectiveConfiguration) => void;
|
8
|
-
generateResolvers: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
|
9
|
-
validate: (context: TransformerContextProvider, config: HasOneDirectiveConfiguration) => void;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=has-one-directive-ddb-references-transformer.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"has-one-directive-ddb-references-transformer.d.ts","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-references-transformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,6CAA6C,EAC9C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAGjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AASxD,qBAAa,uCAAwC,YAAW,mCAAmC,CAAC,4BAA4B,CAAC;IAC/H,MAAM,sFAAe;IAErB,OAAO,YAAa,qCAAqC,UAAU,4BAA4B,KAAG,IAAI,CAUpG;IAEF,eAAe,YAAa,6CAA6C,UAAU,4BAA4B,KAAG,IAAI,CAEpH;IAEF,iBAAiB,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAGnG;IAEF,QAAQ,YAAa,0BAA0B,UAAU,4BAA4B,KAAG,IAAI,CAG1F;CACH"}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.HasOneDirectiveDDBReferencesTransformer = void 0;
|
4
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
-
const ddb_references_generator_1 = require("../resolver/ddb-references-generator");
|
6
|
-
const resolvers_1 = require("../resolvers");
|
7
|
-
const utils_1 = require("../utils");
|
8
|
-
class HasOneDirectiveDDBReferencesTransformer {
|
9
|
-
constructor() {
|
10
|
-
this.dbType = graphql_transformer_core_1.DDB_DB_TYPE;
|
11
|
-
this.prepare = (context, config) => {
|
12
|
-
var _a, _b;
|
13
|
-
const modelName = config.object.name.value;
|
14
|
-
(0, resolvers_1.setFieldMappingResolverReference)(context, (_b = (_a = config.relatedType) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value, modelName, config.field.name.value, true);
|
15
|
-
(0, utils_1.registerHasOneForeignKeyMappings)({
|
16
|
-
transformParameters: context.transformParameters,
|
17
|
-
resourceHelper: context.resourceHelper,
|
18
|
-
thisTypeName: modelName,
|
19
|
-
thisFieldName: config.field.name.value,
|
20
|
-
relatedType: config.relatedType,
|
21
|
-
});
|
22
|
-
};
|
23
|
-
this.transformSchema = (context, config) => {
|
24
|
-
(0, utils_1.validateParentReferencesFields)(config, context);
|
25
|
-
};
|
26
|
-
this.generateResolvers = (context, config) => {
|
27
|
-
(0, resolvers_1.updateTableForReferencesConnection)(config, context);
|
28
|
-
new ddb_references_generator_1.DDBRelationalReferencesResolverGenerator().makeHasOneGetItemConnectionWithKeyResolver(config, context);
|
29
|
-
};
|
30
|
-
this.validate = (context, config) => {
|
31
|
-
(0, utils_1.ensureReferencesArray)(config);
|
32
|
-
config.referenceNodes = (0, utils_1.getReferencesNodes)(config, context);
|
33
|
-
};
|
34
|
-
}
|
35
|
-
}
|
36
|
-
exports.HasOneDirectiveDDBReferencesTransformer = HasOneDirectiveDDBReferencesTransformer;
|
37
|
-
//# sourceMappingURL=has-one-directive-ddb-references-transformer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"has-one-directive-ddb-references-transformer.js","sourceRoot":"","sources":["../../src/has-one/has-one-directive-ddb-references-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAoE;AAOpE,mFAAgG;AAChG,4CAAoG;AAEpG,oCAAuI;AAQvI,MAAa,uCAAuC;IAApD;QACE,WAAM,GAAG,sCAAW,CAAC;QAErB,YAAO,GAAG,CAAC,OAA8C,EAAE,MAAoC,EAAQ,EAAE;;YACvG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAC3C,IAAA,4CAAgC,EAAC,OAAO,EAAE,MAAA,MAAA,MAAM,CAAC,WAAW,0CAAE,IAAI,0CAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YACrH,IAAA,wCAAgC,EAAC;gBAC/B,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;gBAChD,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,YAAY,EAAE,SAAS;gBACvB,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK;gBACtC,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,oBAAe,GAAG,CAAC,OAAsD,EAAE,MAAoC,EAAQ,EAAE;YACvH,IAAA,sCAA8B,EAAC,MAAM,EAAE,OAAqC,CAAC,CAAC;QAChF,CAAC,CAAC;QAEF,sBAAiB,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YACtG,IAAA,8CAAkC,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,mEAAwC,EAAE,CAAC,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7G,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,OAAmC,EAAE,MAAoC,EAAQ,EAAE;YAC7F,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,GAAG,IAAA,0BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9D,CAAC,CAAC;IACJ,CAAC;CAAA;AA5BD,0FA4BC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { BelongsToDirectiveConfiguration, HasManyDirectiveConfiguration, HasOneDirectiveConfiguration } from '../types';
|
3
|
-
import { DDBRelationalResolverGenerator } from './ddb-generator';
|
4
|
-
export declare class DDBRelationalReferencesResolverGenerator extends DDBRelationalResolverGenerator {
|
5
|
-
makeHasManyGetItemsConnectionWithKeyResolver: (config: HasManyDirectiveConfiguration, ctx: TransformerContextProvider) => void;
|
6
|
-
makeHasOneGetItemConnectionWithKeyResolver: (config: HasOneDirectiveConfiguration, ctx: TransformerContextProvider) => void;
|
7
|
-
makeBelongsToGetItemConnectionWithKeyResolver: (config: BelongsToDirectiveConfiguration, ctx: TransformerContextProvider) => void;
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=ddb-references-generator.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ddb-references-generator.d.ts","sourceRoot":"","sources":["../../src/resolver/ddb-references-generator.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AA4BzF,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AAOjE,qBAAa,wCAAyC,SAAQ,8BAA8B;IAM1F,4CAA4C,WAAY,6BAA6B,OAAO,0BAA0B,KAAG,IAAI,CAoH3H;IAEF,0CAA0C,WAAY,4BAA4B,OAAO,0BAA0B,KAAG,IAAI,CAgHxH;IAOF,6CAA6C,WAAY,+BAA+B,OAAO,0BAA0B,KAAG,IAAI,CA4G9H;CACH"}
|
@@ -1,172 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DDBRelationalReferencesResolverGenerator = void 0;
|
4
|
-
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
-
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
6
|
-
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
7
|
-
const resolvers_1 = require("../resolvers");
|
8
|
-
const ddb_generator_1 = require("./ddb-generator");
|
9
|
-
const SORT_KEY_VALUE = 'sortKeyValue';
|
10
|
-
const CONNECTION_STACK = 'ConnectionStack';
|
11
|
-
const authFilter = (0, graphql_mapping_template_1.ref)('ctx.stash.authFilter');
|
12
|
-
const PARTITION_KEY_VALUE = 'partitionKeyValue';
|
13
|
-
class DDBRelationalReferencesResolverGenerator extends ddb_generator_1.DDBRelationalResolverGenerator {
|
14
|
-
constructor() {
|
15
|
-
super(...arguments);
|
16
|
-
this.makeHasManyGetItemsConnectionWithKeyResolver = (config, ctx) => {
|
17
|
-
const { field, indexName, limit, object, references, relatedType } = config;
|
18
|
-
if (references.length < 1) {
|
19
|
-
throw new Error('references should be populated.');
|
20
|
-
}
|
21
|
-
const primaryKeyFields = (0, graphql_transformer_core_1.getPrimaryKeyFields)(object);
|
22
|
-
const table = (0, graphql_transformer_core_1.getTable)(ctx, relatedType);
|
23
|
-
const dataSourceName = (0, graphql_transformer_core_1.getModelDataSourceNameForTypeName)(ctx, relatedType.name.value);
|
24
|
-
const dataSource = ctx.api.host.getDataSource(dataSourceName);
|
25
|
-
const keySchema = (0, graphql_transformer_core_1.getKeySchema)(table, indexName);
|
26
|
-
const setup = [
|
27
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('limit'), (0, graphql_mapping_template_1.ref)(`util.defaultIfNull($context.args.limit, ${limit})`)),
|
28
|
-
...primaryKeyFields
|
29
|
-
.slice(1)
|
30
|
-
.map((ca, idx) => (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${SORT_KEY_VALUE}${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)(`ctx.stash.connectionAttibutes.get("${ca}")`), (0, graphql_mapping_template_1.ref)(`ctx.source.${ca}`)))),
|
31
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('query'), this.makeExpression(keySchema, references)),
|
32
|
-
];
|
33
|
-
setup.push(graphql_transformer_common_1.setArgs, (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.compoundExpression)([
|
34
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), authFilter),
|
35
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.obj)({ and: (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('args.filter')]) }))),
|
36
|
-
]), (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('args.filter')))), (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('filter'))), (0, graphql_mapping_template_1.compoundExpression)([
|
37
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filterExpression'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), (0, graphql_mapping_template_1.ref)('filter')))),
|
38
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrBlank'), (0, graphql_mapping_template_1.ref)('filterExpression.expression'))), (0, graphql_mapping_template_1.compoundExpression)([
|
39
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterExpression.expressionValues.size')), (0, graphql_mapping_template_1.int)(0)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterExpression.remove'), (0, graphql_mapping_template_1.str)('expressionValues')))),
|
40
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('filterExpression')),
|
41
|
-
])),
|
42
|
-
])));
|
43
|
-
const queryArguments = {
|
44
|
-
query: (0, graphql_mapping_template_1.raw)('$util.toJson($query)'),
|
45
|
-
scanIndexForward: (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('context.args.sortDirection'), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('context.args.sortDirection'), (0, graphql_mapping_template_1.str)('ASC')), (0, graphql_mapping_template_1.bool)(true), (0, graphql_mapping_template_1.bool)(false)), (0, graphql_mapping_template_1.bool)(true)),
|
46
|
-
filter: (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('util.toJson($filter)'), (0, graphql_mapping_template_1.nul)()),
|
47
|
-
limit: (0, graphql_mapping_template_1.ref)('limit'),
|
48
|
-
nextToken: (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('context.args.nextToken'), (0, graphql_mapping_template_1.ref)('util.toJson($context.args.nextToken)'), (0, graphql_mapping_template_1.nul)()),
|
49
|
-
};
|
50
|
-
if (indexName) {
|
51
|
-
queryArguments.index = (0, graphql_mapping_template_1.str)(indexName);
|
52
|
-
}
|
53
|
-
const queryObj = graphql_mapping_template_1.DynamoDBMappingTemplate.query(queryArguments);
|
54
|
-
const resolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID(object.name.value, field.name.value);
|
55
|
-
const resolver = ctx.resolvers.generateQueryResolver(object.name.value, field.name.value, resolverResourceId, dataSource, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)((0, graphql_mapping_template_1.compoundExpression)([
|
56
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('ctx.stash.deniedField'), (0, graphql_mapping_template_1.raw)('#return($util.toJson(null))')),
|
57
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)(`ctx.stash.connectionAttributes.get("${primaryKeyFields[0]}")`), (0, graphql_mapping_template_1.ref)(`ctx.source.${primaryKeyFields[0]}`))),
|
58
|
-
(0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE)), (0, graphql_mapping_template_1.compoundExpression)([(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('result'), (0, graphql_mapping_template_1.obj)({ items: (0, graphql_mapping_template_1.list)([]) })), (0, graphql_mapping_template_1.raw)('#return($result)')]), (0, graphql_mapping_template_1.compoundExpression)([...setup, queryObj])),
|
59
|
-
])), `${object.name.value}.${field.name.value}.req.vtl`), graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)(graphql_mapping_template_1.DynamoDBMappingTemplate.dynamoDBResponse(false, (0, graphql_mapping_template_1.compoundExpression)([(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.raw)('!$result'), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('result'), (0, graphql_mapping_template_1.ref)('ctx.result'))), (0, graphql_mapping_template_1.raw)('$util.toJson($result)')]))), `${object.name.value}.${field.name.value}.res.vtl`));
|
60
|
-
resolver.setScope(ctx.stackManager.getScopeFor(resolverResourceId, CONNECTION_STACK));
|
61
|
-
ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);
|
62
|
-
};
|
63
|
-
this.makeHasOneGetItemConnectionWithKeyResolver = (config, ctx) => {
|
64
|
-
const { field, indexName, references, object, relatedType } = config;
|
65
|
-
if (references.length < 1) {
|
66
|
-
throw new Error('references should be populated.');
|
67
|
-
}
|
68
|
-
const primaryKeyFields = (0, graphql_transformer_core_1.getPrimaryKeyFields)(object);
|
69
|
-
const dataSourceName = (0, graphql_transformer_core_1.getModelDataSourceNameForTypeName)(ctx, relatedType.name.value);
|
70
|
-
const dataSource = ctx.api.host.getDataSource(dataSourceName);
|
71
|
-
const partitionKeyName = references[0];
|
72
|
-
const totalExpressions = ['#partitionKey = :partitionValue'];
|
73
|
-
const totalExpressionNames = {
|
74
|
-
'#partitionKey': (0, graphql_mapping_template_1.str)(partitionKeyName),
|
75
|
-
};
|
76
|
-
const totalExpressionValues = {
|
77
|
-
':partitionValue': this.buildKeyValueExpression(references[0], relatedType, true),
|
78
|
-
};
|
79
|
-
if (references.length > 2) {
|
80
|
-
const rangeKeyFields = references.slice(1);
|
81
|
-
const sortKeyName = (0, resolvers_1.condenseRangeKey)(rangeKeyFields);
|
82
|
-
const condensedSortKeyValue = (0, resolvers_1.condenseRangeKey)(primaryKeyFields.slice(1).map((keyField) => `\${ctx.source.${keyField}}`));
|
83
|
-
totalExpressions.push('#sortKeyName = :sortKeyName');
|
84
|
-
totalExpressionNames['#sortKeyName'] = (0, graphql_mapping_template_1.str)(sortKeyName);
|
85
|
-
totalExpressionValues[':sortKeyName'] = (0, graphql_mapping_template_1.ref)(`util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank("${condensedSortKeyValue}", "${graphql_transformer_common_1.NONE_VALUE}")))`);
|
86
|
-
}
|
87
|
-
else if (references.length === 2) {
|
88
|
-
const sortKeyName = references[1];
|
89
|
-
totalExpressions.push('#sortKeyName = :sortKeyName');
|
90
|
-
totalExpressionNames['#sortKeyName'] = (0, graphql_mapping_template_1.str)(sortKeyName);
|
91
|
-
totalExpressionValues[':sortKeyName'] = this.buildKeyValueExpression(primaryKeyFields[1], ctx.output.getObject(object.name.value));
|
92
|
-
}
|
93
|
-
const resolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID(object.name.value, field.name.value);
|
94
|
-
const resolver = ctx.resolvers.generateQueryResolver(object.name.value, field.name.value, resolverResourceId, dataSource, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)((0, graphql_mapping_template_1.compoundExpression)([
|
95
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('ctx.stash.deniedField'), (0, graphql_mapping_template_1.raw)('#return($util.toJson(null))')),
|
96
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)(`ctx.stash.connectionAttibutes.get("${primaryKeyFields[0]}")`), (0, graphql_mapping_template_1.ref)(`ctx.source.${primaryKeyFields[0]}`))),
|
97
|
-
(0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.or)([
|
98
|
-
(0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE)),
|
99
|
-
...primaryKeyFields.slice(1).map((f) => (0, graphql_mapping_template_1.raw)(`$util.isNull($ctx.source.${f})`)),
|
100
|
-
]), (0, graphql_mapping_template_1.raw)('#return'), (0, graphql_mapping_template_1.compoundExpression)([
|
101
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('GetRequest'), (0, graphql_mapping_template_1.obj)({ version: (0, graphql_mapping_template_1.str)('2018-05-29'), operation: (0, graphql_mapping_template_1.str)('Query'), index: (0, graphql_mapping_template_1.str)(indexName) })),
|
102
|
-
(0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('query'), (0, graphql_mapping_template_1.obj)({
|
103
|
-
expression: (0, graphql_mapping_template_1.str)(totalExpressions.join(' AND ')),
|
104
|
-
expressionNames: (0, graphql_mapping_template_1.obj)(totalExpressionNames),
|
105
|
-
expressionValues: (0, graphql_mapping_template_1.obj)(totalExpressionValues),
|
106
|
-
}))),
|
107
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('filter'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), authFilter))))),
|
108
|
-
(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('GetRequest')),
|
109
|
-
])),
|
110
|
-
])), `${object.name.value}.${field.name.value}.req.vtl`), graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)(graphql_mapping_template_1.DynamoDBMappingTemplate.dynamoDBResponse(false, (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()')), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('ctx.result.items[0]')), (0, graphql_mapping_template_1.compoundExpression)([
|
111
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()'), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.ref)('util.unauthorized()')),
|
112
|
-
(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)()),
|
113
|
-
])))), `${object.name.value}.${field.name.value}.res.vtl`));
|
114
|
-
resolver.setScope(ctx.stackManager.getScopeFor(resolverResourceId, CONNECTION_STACK));
|
115
|
-
ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);
|
116
|
-
};
|
117
|
-
this.makeBelongsToGetItemConnectionWithKeyResolver = (config, ctx) => {
|
118
|
-
const { field, references, object, relatedType } = config;
|
119
|
-
const table = (0, graphql_transformer_core_1.getTable)(ctx, relatedType);
|
120
|
-
const { keySchema } = table;
|
121
|
-
const dataSourceName = (0, graphql_transformer_core_1.getModelDataSourceNameForTypeName)(ctx, relatedType.name.value);
|
122
|
-
const dataSource = ctx.api.host.getDataSource(dataSourceName);
|
123
|
-
const partitionKeyName = keySchema[0].attributeName;
|
124
|
-
const totalExpressions = ['#partitionKey = :partitionValue'];
|
125
|
-
const totalExpressionNames = {
|
126
|
-
'#partitionKey': (0, graphql_mapping_template_1.str)(partitionKeyName),
|
127
|
-
};
|
128
|
-
const totalExpressionValues = {
|
129
|
-
':partitionValue': this.buildKeyValueExpression(references[0], ctx.output.getObject(object.name.value), true),
|
130
|
-
};
|
131
|
-
if (references.length > 2) {
|
132
|
-
const rangeKeyFields = references.slice(1);
|
133
|
-
const sortKeyName = keySchema[1].attributeName;
|
134
|
-
const condensedSortKeyValue = (0, resolvers_1.condenseRangeKey)(rangeKeyFields.map((keyField) => `\${ctx.source.${keyField}}`));
|
135
|
-
totalExpressions.push('#sortKeyName = :sortKeyName');
|
136
|
-
totalExpressionNames['#sortKeyName'] = (0, graphql_mapping_template_1.str)(sortKeyName);
|
137
|
-
totalExpressionValues[':sortKeyName'] = (0, graphql_mapping_template_1.ref)(`util.parseJson($util.dynamodb.toDynamoDBJson($util.defaultIfNullOrBlank("${condensedSortKeyValue}", "${graphql_transformer_common_1.NONE_VALUE}")))`);
|
138
|
-
}
|
139
|
-
else if (references.length === 2) {
|
140
|
-
const sortKeyName = keySchema[1].attributeName;
|
141
|
-
totalExpressions.push('#sortKeyName = :sortKeyName');
|
142
|
-
totalExpressionNames['#sortKeyName'] = (0, graphql_mapping_template_1.str)(sortKeyName);
|
143
|
-
totalExpressionValues[':sortKeyName'] = this.buildKeyValueExpression(references[1], ctx.output.getObject(object.name.value));
|
144
|
-
}
|
145
|
-
const resolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID(object.name.value, field.name.value);
|
146
|
-
const resolver = ctx.resolvers.generateQueryResolver(object.name.value, field.name.value, resolverResourceId, dataSource, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)((0, graphql_mapping_template_1.compoundExpression)([
|
147
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('ctx.stash.deniedField'), (0, graphql_mapping_template_1.raw)('#return($util.toJson(null))')),
|
148
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)(`ctx.stash.connectionAttibutes.get("${references[0]}")`), (0, graphql_mapping_template_1.ref)(`ctx.source.${references[0]}`))),
|
149
|
-
(0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.or)([
|
150
|
-
(0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)(PARTITION_KEY_VALUE)),
|
151
|
-
...references.slice(1).map((f) => (0, graphql_mapping_template_1.raw)(`$util.isNull($ctx.source.${f})`)),
|
152
|
-
]), (0, graphql_mapping_template_1.raw)('#return'), (0, graphql_mapping_template_1.compoundExpression)([
|
153
|
-
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('GetRequest'), (0, graphql_mapping_template_1.obj)({ version: (0, graphql_mapping_template_1.str)('2018-05-29'), operation: (0, graphql_mapping_template_1.str)('Query') })),
|
154
|
-
(0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('query'), (0, graphql_mapping_template_1.obj)({
|
155
|
-
expression: (0, graphql_mapping_template_1.str)(totalExpressions.join(' AND ')),
|
156
|
-
expressionNames: (0, graphql_mapping_template_1.obj)(totalExpressionNames),
|
157
|
-
expressionValues: (0, graphql_mapping_template_1.obj)(totalExpressionValues),
|
158
|
-
}))),
|
159
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('filter'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), authFilter))))),
|
160
|
-
(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('GetRequest')),
|
161
|
-
])),
|
162
|
-
])), `${object.name.value}.${field.name.value}.req.vtl`), graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, graphql_mapping_template_1.print)(graphql_mapping_template_1.DynamoDBMappingTemplate.dynamoDBResponse(false, (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()')), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('ctx.result.items[0]')), (0, graphql_mapping_template_1.compoundExpression)([
|
163
|
-
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()'), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.ref)('util.unauthorized()')),
|
164
|
-
(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)()),
|
165
|
-
])))), `${object.name.value}.${field.name.value}.res.vtl`));
|
166
|
-
resolver.setScope(ctx.stackManager.getScopeFor(resolverResourceId, CONNECTION_STACK));
|
167
|
-
ctx.resolvers.addResolver(object.name.value, field.name.value, resolver);
|
168
|
-
};
|
169
|
-
}
|
170
|
-
}
|
171
|
-
exports.DDBRelationalReferencesResolverGenerator = DDBRelationalReferencesResolverGenerator;
|
172
|
-
//# sourceMappingURL=ddb-references-generator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ddb-references-generator.js","sourceRoot":"","sources":["../../src/resolver/ddb-references-generator.ts"],"names":[],"mappings":";;;AAAA,oFAM+C;AAE/C,uEAwBkC;AAClC,2EAAsF;AACtF,4CAAgD;AAEhD,mDAAiE;AAEjE,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAA,8BAAG,EAAC,sBAAsB,CAAC,CAAC;AAC/C,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEhD,MAAa,wCAAyC,SAAQ,8CAA8B;IAA5F;;QAME,iDAA4C,GAAG,CAAC,MAAqC,EAAE,GAA+B,EAAQ,EAAE;YAC9H,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;YAE5E,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;gBAEzB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACpD;YAED,MAAM,gBAAgB,GAAa,IAAA,8CAAmB,EAAC,MAAM,CAAC,CAAC;YAC/D,MAAM,KAAK,GAAG,IAAA,mCAAQ,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YACzC,MAAM,cAAc,GAAG,IAAA,4DAAiC,EAAC,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtF,MAAM,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;YAC9D,MAAM,SAAS,GAAG,IAAA,uCAAY,EAAC,KAAK,EAAE,SAAS,CAAC,CA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