@aws-amplify/graphql-api-construct 1.3.0-rds-5.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +202 -620
- package/API.md +2 -42
- package/CHANGELOG.md +8 -3
- package/README.md +396 -371
- package/lib/amplify-graphql-api.d.ts +0 -6
- package/lib/amplify-graphql-api.js +4 -60
- package/lib/amplify-graphql-definition.d.ts +6 -17
- package/lib/amplify-graphql-definition.js +11 -26
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/internal/authorization-modes.js +20 -2
- package/lib/types.d.ts +7 -97
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +5 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +11 -7
- package/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +4 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +3 -2
- package/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +3 -2
- package/node_modules/@aws-amplify/backend-output-storage/package.json +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +1 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +2 -14
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +1 -3
- 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 +50 -64
- 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/{vtl-generator/ddb/resolvers → resolvers}/field.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/field.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/helpers.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/helpers.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.create.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.create.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.delete.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.delete.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.update.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/mutation.update.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/query.js +3 -28
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/search.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/search.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/rds/resolvers/subscription.d.ts → resolvers/subscriptions.d.ts} +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/subscriptions.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.js.map +1 -0
- 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 +0 -3
- 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/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.d.ts +2 -3
- 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 +1 -4
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +11 -12
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +2 -4
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +1 -13
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +8 -9
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -8
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -8
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +2 -6
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +2 -2
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.js +1 -4
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +3 -4
- 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 +11 -20
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -9
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/API.md +0 -15
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +2 -10
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.js +1 -13
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +33 -16
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.js +1 -3
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +13 -14
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +15 -15
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +2 -16
- 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 +12 -25
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js +2 -9
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.d.ts +5 -6
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.js +5 -5
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts +5 -6
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js +11 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/vtl-generator.d.ts +5 -6
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts +3 -4
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js +55 -74
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js +2 -8
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +3 -10
- 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 +42 -127
- 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.js +5 -5
- 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 +0 -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 +1 -28
- 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 +9 -10
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +2 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +9 -41
- 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 +8 -35
- 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.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +8 -30
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +2 -3
- 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/resolvers.d.ts +4 -4
- 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 +161 -14
- 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.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js +8 -14
- 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 -4
- 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 +0 -5
- 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 -85
- 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 -11
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +2 -4
- 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 +0 -3
- 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 +8 -9
- package/node_modules/@aws-amplify/graphql-transformer/API.md +0 -1
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +2 -11
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +0 -1
- 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 +1 -5
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +14 -16
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +2 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -33
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +2 -13
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/config/project-config.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/config/project-config.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +1 -10
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +1 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +3 -2
- 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 +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +3 -4
- 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 +1 -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/types/import-appsync-api-types.d.ts +1 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js +1 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/authType.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/authType.js +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/authType.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +3 -14
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.js +25 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts +1 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js +1 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +4 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +3 -20
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +3 -6
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +2 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-datasource-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +16 -17
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/index.ts +0 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-datasource-provider.ts +1 -8
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +0 -4
- package/node_modules/graphql-mapping-template/package.json +2 -3
- package/node_modules/graphql-transformer-common/API.md +0 -21
- package/node_modules/graphql-transformer-common/CHANGELOG.md +0 -11
- package/node_modules/graphql-transformer-common/lib/definition.d.ts +2 -9
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +1 -52
- package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
- package/node_modules/graphql-transformer-common/lib/util.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/util.js +1 -3
- package/node_modules/graphql-transformer-common/lib/util.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +6 -7
- package/package.json +17 -19
- package/src/amplify-graphql-api.ts +4 -73
- package/src/amplify-graphql-definition.ts +10 -30
- package/src/index.ts +0 -6
- package/src/internal/authorization-modes.ts +22 -1
- package/src/types.ts +8 -114
- package/lib/sql-model-datasource-binding.d.ts +0 -20
- package/lib/sql-model-datasource-binding.js +0 -42
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +0 -20
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +0 -24
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts +0 -6
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +0 -20
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +0 -24
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +0 -13
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +0 -157
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts +0 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js +0 -21
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts +0 -8
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +0 -56
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts +0 -8
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +0 -41
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js +0 -18
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +0 -19
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js +0 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts +0 -10
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js +0 -102
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts +0 -13
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +0 -81
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts +0 -13
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +0 -171
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts +0 -4
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js +0 -18
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts +0 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js +0 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts +0 -14
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +0 -115
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-sql-transformer/API.md +0 -26
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +0 -10
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-sql-transformer/README.md +0 -13
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts +0 -12
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +0 -132
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js +0 -6
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +0 -71
- package/node_modules/@aws-amplify/graphql-transformer/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +0 -201
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.js +0 -5
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +0 -19
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +0 -14
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +0 -82
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +0 -201
- package/node_modules/graphql-mapping-template/LICENSE +0 -201
- package/node_modules/graphql-transformer-common/LICENSE +0 -201
- package/src/sql-model-datasource-binding.ts +0 -45
- /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/index.d.ts +0 -0
- /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{vtl-generator/ddb/resolvers → resolvers}/index.js +0 -0
@@ -3,10 +3,6 @@
|
|
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
|
-
## [4.20.13-rds-5.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.12...graphql-mapping-template@4.20.13-rds-5.0) (2023-11-01)
|
7
|
-
|
8
|
-
**Note:** Version bump only for package graphql-mapping-template
|
9
|
-
|
10
6
|
## [4.20.12](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.11...graphql-mapping-template@4.20.12) (2023-08-30)
|
11
7
|
|
12
8
|
**Note:** Version bump only for package graphql-mapping-template
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "graphql-mapping-template",
|
3
|
-
"version": "4.20.
|
3
|
+
"version": "4.20.12",
|
4
4
|
"description": "An AST wrapper around AWS AppSync resolvers",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -46,6 +46,5 @@
|
|
46
46
|
"lines": 47
|
47
47
|
}
|
48
48
|
}
|
49
|
-
}
|
50
|
-
"gitHead": "ddbbff11d6a070cb4d2b9708c60c734a5d139bfc"
|
49
|
+
}
|
51
50
|
}
|
@@ -57,9 +57,6 @@ export const DEFAULT_SCALARS: ScalarMap;
|
|
57
57
|
// @public (undocumented)
|
58
58
|
export function defineUnionType(name: string, types?: NamedTypeNode[]): UnionTypeDefinitionNode;
|
59
59
|
|
60
|
-
// @public (undocumented)
|
61
|
-
export const directiveExists: (definition: ObjectTypeDefinitionNode, name: string) => DirectiveNode;
|
62
|
-
|
63
60
|
// @public (undocumented)
|
64
61
|
export function extendFieldWithDirectives(field: FieldDefinitionNode, directives: DirectiveNode[]): FieldDefinitionNode;
|
65
62
|
|
@@ -69,9 +66,6 @@ export function extensionWithDirectives(object: ObjectTypeExtensionNode, directi
|
|
69
66
|
// @public (undocumented)
|
70
67
|
export function extensionWithFields(object: ObjectTypeExtensionNode, fields: FieldDefinitionNode[]): ObjectTypeExtensionNode;
|
71
68
|
|
72
|
-
// @public (undocumented)
|
73
|
-
export const findObjectDefinition: (document: DocumentNode, name: string) => ObjectTypeDefinitionNode | undefined;
|
74
|
-
|
75
69
|
// @public (undocumented)
|
76
70
|
export class FunctionResourceIDs {
|
77
71
|
// (undocumented)
|
@@ -90,9 +84,6 @@ export function getBaseType(type: TypeNode): string;
|
|
90
84
|
// @public (undocumented)
|
91
85
|
export function getDirectiveArgument(directive: DirectiveNode, arg: string, dflt?: any): any;
|
92
86
|
|
93
|
-
// @public (undocumented)
|
94
|
-
export const getNonModelTypes: (document: DocumentNode) => DefinitionNode[];
|
95
|
-
|
96
87
|
// @public (undocumented)
|
97
88
|
export function graphqlName(val: string): string;
|
98
89
|
|
@@ -102,27 +93,15 @@ export class HttpResourceIDs {
|
|
102
93
|
static HttpDataSourceID(baseURL: string): string;
|
103
94
|
}
|
104
95
|
|
105
|
-
// @public (undocumented)
|
106
|
-
export const isArrayOrObject: (type: TypeNode, enums: EnumTypeDefinitionNode[]) => boolean;
|
107
|
-
|
108
96
|
// @public (undocumented)
|
109
97
|
export function isEnum(type: TypeNode, document: DocumentNode): DefinitionNode;
|
110
98
|
|
111
99
|
// @public (undocumented)
|
112
100
|
export function isListType(type: TypeNode): boolean;
|
113
101
|
|
114
|
-
// @public (undocumented)
|
115
|
-
export const isNamedType: (type: TypeNode) => boolean;
|
116
|
-
|
117
|
-
// @public (undocumented)
|
118
|
-
export const isNonModelType: (definition: DefinitionNode) => boolean;
|
119
|
-
|
120
102
|
// @public (undocumented)
|
121
103
|
export function isNonNullType(type: TypeNode): boolean;
|
122
104
|
|
123
|
-
// @public (undocumented)
|
124
|
-
export const isOfType: (type: TypeNode, name: string) => boolean;
|
125
|
-
|
126
105
|
// @public (undocumented)
|
127
106
|
export function isScalar(type: TypeNode): any;
|
128
107
|
|
@@ -3,17 +3,6 @@
|
|
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
|
-
# [4.26.0-rds-5.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.25.1...graphql-transformer-common@4.26.0-rds-5.0) (2023-11-01)
|
7
|
-
|
8
|
-
### Bug Fixes
|
9
|
-
|
10
|
-
- handle field names starting with number ([2e9de1b](https://github.com/aws-amplify/amplify-category-api/commit/2e9de1b061ac212fad23b133ada44bfaadb1a2ff))
|
11
|
-
|
12
|
-
### Features
|
13
|
-
|
14
|
-
- **api:** add arrays and objects support for rds datasource ([cbfb017](https://github.com/aws-amplify/amplify-category-api/commit/cbfb017029e45c6e7cb8fea4250794d02afff4ca))
|
15
|
-
- infer and preserve field mappings in schema ([4f8e7f4](https://github.com/aws-amplify/amplify-category-api/commit/4f8e7f43e6ba3e64702baffe60b8b4870d37ffb6))
|
16
|
-
|
17
6
|
## [4.25.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@4.25.0...graphql-transformer-common@4.25.1) (2023-08-30)
|
18
7
|
|
19
8
|
**Note:** Version bump only for package graphql-transformer-common
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ObjectTypeDefinitionNode, InputValueDefinitionNode, FieldDefinitionNode, TypeNode, SchemaDefinitionNode, OperationTypeNode, OperationTypeDefinitionNode, ObjectTypeExtensionNode, NamedTypeNode, NonNullTypeNode, ListTypeNode, ArgumentNode, DirectiveNode, EnumTypeDefinitionNode, ValueNode, InputObjectTypeDefinitionNode, UnionTypeDefinitionNode, DocumentNode
|
1
|
+
import { ObjectTypeDefinitionNode, InputValueDefinitionNode, FieldDefinitionNode, TypeNode, SchemaDefinitionNode, OperationTypeNode, OperationTypeDefinitionNode, ObjectTypeExtensionNode, NamedTypeNode, NonNullTypeNode, ListTypeNode, ArgumentNode, DirectiveNode, EnumTypeDefinitionNode, ValueNode, InputObjectTypeDefinitionNode, UnionTypeDefinitionNode, DocumentNode } from 'graphql';
|
2
2
|
type ScalarMap = {
|
3
3
|
[k: string]: 'String' | 'Int' | 'Float' | 'Boolean' | 'ID';
|
4
4
|
};
|
@@ -14,8 +14,7 @@ export declare const MAP_SCALARS: {
|
|
14
14
|
export declare function attributeTypeFromScalar(scalar: TypeNode): 'S' | 'N';
|
15
15
|
export declare function isScalar(type: TypeNode): any;
|
16
16
|
export declare function isScalarOrEnum(type: TypeNode, enums: EnumTypeDefinitionNode[]): any;
|
17
|
-
export declare
|
18
|
-
export declare function isEnum(type: TypeNode, document: DocumentNode): DefinitionNode;
|
17
|
+
export declare function isEnum(type: TypeNode, document: DocumentNode): import("graphql").DefinitionNode;
|
19
18
|
export declare function getBaseType(type: TypeNode): string;
|
20
19
|
export declare function isListType(type: TypeNode): boolean;
|
21
20
|
export declare function isNonNullType(type: TypeNode): boolean;
|
@@ -40,11 +39,5 @@ export declare function makeInputValueDefinition(name: string, type: TypeNode):
|
|
40
39
|
export declare function makeNamedType(name: string): NamedTypeNode;
|
41
40
|
export declare function makeNonNullType(type: NamedTypeNode | ListTypeNode): NonNullTypeNode;
|
42
41
|
export declare function makeListType(type: TypeNode): ListTypeNode;
|
43
|
-
export declare const findObjectDefinition: (document: DocumentNode, name: string) => ObjectTypeDefinitionNode | undefined;
|
44
|
-
export declare const isNamedType: (type: TypeNode) => boolean;
|
45
|
-
export declare const getNonModelTypes: (document: DocumentNode) => DefinitionNode[];
|
46
|
-
export declare const isNonModelType: (definition: DefinitionNode) => boolean;
|
47
|
-
export declare const directiveExists: (definition: ObjectTypeDefinitionNode, name: string) => DirectiveNode;
|
48
|
-
export declare const isOfType: (type: TypeNode, name: string) => boolean;
|
49
42
|
export {};
|
50
43
|
//# sourceMappingURL=definition.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,uBAAuB,EACvB,aAAa,EAEb,eAAe,EACf,YAAY,EAEZ,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,6BAA6B,EAC7B,uBAAuB,EACvB,YAAY,
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,EAC3B,uBAAuB,EACvB,aAAa,EAEb,eAAe,EACf,YAAY,EAEZ,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,6BAA6B,EAC7B,uBAAuB,EACvB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,KAAK,SAAS,GAAG;IACf,CAAC,CAAC,EAAE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,GAAG,wBAAwB,CAU/F;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAQzD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,GAAG,eAAe,CAKnF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,YAAY,CAKzD"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.makeListType = exports.makeNonNullType = exports.makeNamedType = exports.makeInputValueDefinition = exports.makeValueNode = exports.makeArgument = exports.makeDirective = exports.makeField = exports.makeObjectDefinition = exports.makeInputObjectDefinition = exports.defineUnionType = exports.extendFieldWithDirectives = exports.extensionWithDirectives = exports.extensionWithFields = exports.blankObjectExtension = exports.blankObject = exports.makeSchema = exports.makeOperationType = exports.wrapNonNull = exports.unwrapNonNull = exports.getDirectiveArgument = exports.isNonNullType = exports.isListType = exports.getBaseType = exports.isEnum = exports.isScalarOrEnum = exports.isScalar = exports.attributeTypeFromScalar = exports.MAP_SCALARS = exports.NUMERIC_SCALARS = exports.DEFAULT_SCALARS = exports.APPSYNC_DEFINED_SCALARS = exports.STANDARD_SCALARS = void 0;
|
4
4
|
const graphql_1 = require("graphql");
|
5
5
|
exports.STANDARD_SCALARS = {
|
6
6
|
String: 'String',
|
@@ -88,21 +88,6 @@ function isScalarOrEnum(type, enums) {
|
|
88
88
|
}
|
89
89
|
}
|
90
90
|
exports.isScalarOrEnum = isScalarOrEnum;
|
91
|
-
const isArrayOrObject = (type, enums) => {
|
92
|
-
if (type.kind === graphql_1.Kind.NON_NULL_TYPE) {
|
93
|
-
return (0, exports.isArrayOrObject)(type.type, enums);
|
94
|
-
}
|
95
|
-
else if (type.kind === graphql_1.Kind.LIST_TYPE) {
|
96
|
-
return true;
|
97
|
-
}
|
98
|
-
else if (enums.some((e) => e.name.value === type.name.value)) {
|
99
|
-
return false;
|
100
|
-
}
|
101
|
-
else {
|
102
|
-
return !exports.DEFAULT_SCALARS[type.name.value];
|
103
|
-
}
|
104
|
-
};
|
105
|
-
exports.isArrayOrObject = isArrayOrObject;
|
106
91
|
function isEnum(type, document) {
|
107
92
|
const baseType = getBaseType(type);
|
108
93
|
return document.definitions.find((def) => {
|
@@ -391,40 +376,4 @@ function makeListType(type) {
|
|
391
376
|
};
|
392
377
|
}
|
393
378
|
exports.makeListType = makeListType;
|
394
|
-
const findObjectDefinition = (document, name) => {
|
395
|
-
var _a;
|
396
|
-
return (_a = document.definitions) === null || _a === void 0 ? void 0 : _a.find((def) => { var _a; return (def === null || def === void 0 ? void 0 : def.kind) === 'ObjectTypeDefinition' && ((_a = def === null || def === void 0 ? void 0 : def.name) === null || _a === void 0 ? void 0 : _a.value) === name; });
|
397
|
-
};
|
398
|
-
exports.findObjectDefinition = findObjectDefinition;
|
399
|
-
const isNamedType = (type) => {
|
400
|
-
var _a;
|
401
|
-
return (type === null || type === void 0 ? void 0 : type.kind) === graphql_1.Kind.NAMED_TYPE || ((type === null || type === void 0 ? void 0 : type.kind) === graphql_1.Kind.NON_NULL_TYPE && ((_a = type === null || type === void 0 ? void 0 : type.type) === null || _a === void 0 ? void 0 : _a.kind) === graphql_1.Kind.NAMED_TYPE);
|
402
|
-
};
|
403
|
-
exports.isNamedType = isNamedType;
|
404
|
-
const getNonModelTypes = (document) => {
|
405
|
-
var _a;
|
406
|
-
const nonModels = (_a = document.definitions) === null || _a === void 0 ? void 0 : _a.filter((def) => (0, exports.isNonModelType)(def));
|
407
|
-
return nonModels;
|
408
|
-
};
|
409
|
-
exports.getNonModelTypes = getNonModelTypes;
|
410
|
-
const isNonModelType = (definition) => {
|
411
|
-
return (definition === null || definition === void 0 ? void 0 : definition.kind) === 'ObjectTypeDefinition' && !(0, exports.directiveExists)(definition, 'model');
|
412
|
-
};
|
413
|
-
exports.isNonModelType = isNonModelType;
|
414
|
-
const directiveExists = (definition, name) => {
|
415
|
-
var _a;
|
416
|
-
return (_a = definition === null || definition === void 0 ? void 0 : definition.directives) === null || _a === void 0 ? void 0 : _a.find((directive) => { var _a; return ((_a = directive === null || directive === void 0 ? void 0 : directive.name) === null || _a === void 0 ? void 0 : _a.value) === name; });
|
417
|
-
};
|
418
|
-
exports.directiveExists = directiveExists;
|
419
|
-
const isOfType = (type, name) => {
|
420
|
-
var _a;
|
421
|
-
if (type.kind === graphql_1.Kind.NON_NULL_TYPE) {
|
422
|
-
return (0, exports.isOfType)(type === null || type === void 0 ? void 0 : type.type, name);
|
423
|
-
}
|
424
|
-
if (!(0, exports.isNamedType)(type)) {
|
425
|
-
return false;
|
426
|
-
}
|
427
|
-
return ((_a = type.name) === null || _a === void 0 ? void 0 : _a.value) === name;
|
428
|
-
};
|
429
|
-
exports.isOfType = isOfType;
|
430
379
|
//# sourceMappingURL=definition.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":";;;AAAA,qCAsBiB;AAKJ,QAAA,gBAAgB,GAAc;IACzC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,IAAI;CACT,CAAC;AAEF,MAAM,aAAa,GAAc;IAC/B,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,OAAO;CAChB,CAAC;AAEW,QAAA,uBAAuB,GAAc;IAChD,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,QAAQ;CACvB,CAAC;AAEW,QAAA,eAAe,GAAc;IACxC,GAAG,wBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,+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C;AACJ,CAAC;AALD,oCAKC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,GAAG,MAAM,CAU5E;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUhD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUhD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,GAAG,MAAM,CAU5E;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUhD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUhD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAGnD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAGpD;AAED,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,cAAc,cAAc,CAAC"}
|
@@ -51,9 +51,7 @@ function toLower(word) {
|
|
51
51
|
}
|
52
52
|
exports.toLower = toLower;
|
53
53
|
function toCamelCase(words) {
|
54
|
-
const formatted = words
|
55
|
-
.filter((w) => (w === null || w === void 0 ? void 0 : w.length) > 0)
|
56
|
-
.map((w, i) => (i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : w.charAt(0).toUpperCase() + w.slice(1)));
|
54
|
+
const formatted = words.map((w, i) => (i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : w.charAt(0).toUpperCase() + w.slice(1)));
|
57
55
|
return formatted.join('');
|
58
56
|
}
|
59
57
|
exports.toCamelCase = toCamelCase;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,0DAAkC;AAElC,SAAgB,SAAS,CAAC,GAAW,EAAE,oBAA6B;IAClE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE;QACf,OAAO,EAAE,CAAC;KACX;IAED,IAAI,oBAAoB,EAAE;QACxB,OAAO,IAAA,mBAAS,EAAC,GAAG,CAAC,CAAC;KACvB;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAVD,8BAUC;AAED,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE;QACf,OAAO,EAAE,CAAC;KACX;IACD,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;IAC/D,OAAO,OAAO,CAAC;AACjB,CAAC;AAND,kCAMC;AAED,SAAgB,YAAY,CAAC,GAAW;IACtC,MAAM,iBAAiB,GAAW,eAAe,CAAC;IAClD,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAK/B,OAAO,GAAG,GAA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;AAED,SAAgB,WAAW,CAAC,KAAe;IACzC,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnI,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC;AAHD,kCAGC;AAED,SAAgB,YAAY,CAAC,KAAe;IAC1C,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC;AAHD,oCAGC;AAEY,QAAA,UAAU,GAAG,iBAAiB,CAAC;AAC/B,QAAA,cAAc,GAAG,CAAC,UAAU,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "graphql-transformer-common",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.25.1",
|
4
4
|
"description": "Common code and constants for AppSync Transformers",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
27
|
"graphql": "^15.5.0",
|
28
|
-
"graphql-mapping-template": "4.20.
|
28
|
+
"graphql-mapping-template": "4.20.12",
|
29
29
|
"md5": "^2.2.1",
|
30
30
|
"pluralize": "8.0.0"
|
31
31
|
},
|
@@ -36,9 +36,9 @@
|
|
36
36
|
"collectCoverage": true,
|
37
37
|
"coverageThreshold": {
|
38
38
|
"global": {
|
39
|
-
"branches":
|
40
|
-
"functions":
|
41
|
-
"lines":
|
39
|
+
"branches": 80,
|
40
|
+
"functions": 80,
|
41
|
+
"lines": 80
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"transform": {
|
@@ -54,6 +54,5 @@
|
|
54
54
|
"json",
|
55
55
|
"node"
|
56
56
|
]
|
57
|
-
}
|
58
|
-
"gitHead": "ddbbff11d6a070cb4d2b9708c60c734a5d139bfc"
|
57
|
+
}
|
59
58
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-api-construct",
|
3
|
-
"version": "1.3.0
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -54,7 +54,6 @@
|
|
54
54
|
"@aws-amplify/graphql-predictions-transformer",
|
55
55
|
"@aws-amplify/graphql-relational-transformer",
|
56
56
|
"@aws-amplify/graphql-searchable-transformer",
|
57
|
-
"@aws-amplify/graphql-sql-transformer",
|
58
57
|
"fs-extra",
|
59
58
|
"graphql",
|
60
59
|
"graphql-transformer-common",
|
@@ -77,27 +76,26 @@
|
|
77
76
|
"dependencies": {
|
78
77
|
"@aws-amplify/backend-output-schemas": "^0.2.0-alpha.6",
|
79
78
|
"@aws-amplify/backend-output-storage": "^0.1.1-alpha.2",
|
80
|
-
"@aws-amplify/graphql-auth-transformer": "3.
|
81
|
-
"@aws-amplify/graphql-default-value-transformer": "2.1.8
|
82
|
-
"@aws-amplify/graphql-function-transformer": "2.1.7
|
83
|
-
"@aws-amplify/graphql-http-transformer": "2.1.7
|
84
|
-
"@aws-amplify/graphql-index-transformer": "2.
|
85
|
-
"@aws-amplify/graphql-maps-to-transformer": "3.
|
86
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
87
|
-
"@aws-amplify/graphql-predictions-transformer": "2.1.7
|
88
|
-
"@aws-amplify/graphql-relational-transformer": "2.
|
89
|
-
"@aws-amplify/graphql-searchable-transformer": "2.
|
90
|
-
"@aws-amplify/graphql-
|
91
|
-
"@aws-amplify/graphql-transformer": "
|
92
|
-
"@aws-amplify/graphql-transformer-
|
93
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-rds-5.0",
|
79
|
+
"@aws-amplify/graphql-auth-transformer": "3.1.10",
|
80
|
+
"@aws-amplify/graphql-default-value-transformer": "2.1.8",
|
81
|
+
"@aws-amplify/graphql-function-transformer": "2.1.7",
|
82
|
+
"@aws-amplify/graphql-http-transformer": "2.1.7",
|
83
|
+
"@aws-amplify/graphql-index-transformer": "2.1.8",
|
84
|
+
"@aws-amplify/graphql-maps-to-transformer": "3.2.5",
|
85
|
+
"@aws-amplify/graphql-model-transformer": "2.2.4",
|
86
|
+
"@aws-amplify/graphql-predictions-transformer": "2.1.7",
|
87
|
+
"@aws-amplify/graphql-relational-transformer": "2.1.8",
|
88
|
+
"@aws-amplify/graphql-searchable-transformer": "2.2.4",
|
89
|
+
"@aws-amplify/graphql-transformer": "1.2.6",
|
90
|
+
"@aws-amplify/graphql-transformer-core": "2.2.4",
|
91
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.2.2",
|
94
92
|
"charenc": "^0.0.2",
|
95
93
|
"crypt": "^0.0.2",
|
96
94
|
"fs-extra": "^8.1.0",
|
97
95
|
"graceful-fs": "^4.2.11",
|
98
96
|
"graphql": "^15.5.0",
|
99
|
-
"graphql-mapping-template": "4.20.
|
100
|
-
"graphql-transformer-common": "4.
|
97
|
+
"graphql-mapping-template": "4.20.12",
|
98
|
+
"graphql-transformer-common": "4.25.1",
|
101
99
|
"hjson": "^3.2.2",
|
102
100
|
"immer": "^9.0.12",
|
103
101
|
"is-buffer": "^2.0.5",
|
@@ -164,5 +162,5 @@
|
|
164
162
|
}
|
165
163
|
}
|
166
164
|
},
|
167
|
-
"gitHead": "
|
165
|
+
"gitHead": "0c58cc8cff88e98ae2e7797b9ad0e900c3af8499"
|
168
166
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Construct } from 'constructs';
|
2
|
-
import {
|
2
|
+
import { executeTransform } from '@aws-amplify/graphql-transformer';
|
3
3
|
import { NestedStack, Stack } from 'aws-cdk-lib';
|
4
4
|
import { Asset } from 'aws-cdk-lib/aws-s3-assets';
|
5
5
|
import { AssetProps } from '@aws-amplify/graphql-transformer-interfaces';
|
@@ -28,7 +28,6 @@ import { IEventBus } from 'aws-cdk-lib/aws-events';
|
|
28
28
|
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
29
29
|
import { IServerlessCluster } from 'aws-cdk-lib/aws-rds';
|
30
30
|
import { ISecret } from 'aws-cdk-lib/aws-secretsmanager';
|
31
|
-
import { MYSQL_DB_TYPE, POSTGRES_DB_TYPE, RDSConnectionSecrets, constructDataSourceMap } from '@aws-amplify/graphql-transformer-core';
|
32
31
|
import { parseUserDefinedSlots, validateFunctionSlots, separateSlots } from './internal/user-defined-slots';
|
33
32
|
import type {
|
34
33
|
AmplifyGraphqlApiResources,
|
@@ -37,7 +36,6 @@ import type {
|
|
37
36
|
IBackendOutputStorageStrategy,
|
38
37
|
AddFunctionProps,
|
39
38
|
ConflictResolution,
|
40
|
-
SqlModelDataSourceBinding,
|
41
39
|
} from './types';
|
42
40
|
import {
|
43
41
|
convertAuthorizationModesToTransformerAuthConfig,
|
@@ -50,7 +48,6 @@ import {
|
|
50
48
|
addAmplifyMetadataToStackDescription,
|
51
49
|
getAdditionalAuthenticationTypes,
|
52
50
|
} from './internal';
|
53
|
-
import { isSqlModelDataSourceBinding } from './sql-model-datasource-binding';
|
54
51
|
import { getStackForScope, walkAndProcessNodes } from './internal/construct-tree';
|
55
52
|
|
56
53
|
/**
|
@@ -149,6 +146,7 @@ export class AmplifyGraphqlApi extends Construct {
|
|
149
146
|
functionNameMap,
|
150
147
|
outputStorageStrategy,
|
151
148
|
} = props;
|
149
|
+
|
152
150
|
addAmplifyMetadataToStackDescription(scope);
|
153
151
|
|
154
152
|
const { authConfig, authSynthParameters } = convertAuthorizationModesToTransformerAuthConfig(authorizationModes);
|
@@ -166,7 +164,7 @@ export class AmplifyGraphqlApi extends Construct {
|
|
166
164
|
|
167
165
|
const assetManager = new AssetManager();
|
168
166
|
|
169
|
-
|
167
|
+
executeTransform({
|
170
168
|
scope: this,
|
171
169
|
nestedStackProvider: {
|
172
170
|
provide: (nestedStackScope: Construct, name: string) => new NestedStack(nestedStackScope, name),
|
@@ -194,13 +192,7 @@ export class AmplifyGraphqlApi extends Construct {
|
|
194
192
|
...defaultTranslationBehavior,
|
195
193
|
...(translationBehavior ?? {}),
|
196
194
|
},
|
197
|
-
};
|
198
|
-
|
199
|
-
if (isSqlModelDataSourceBinding(definition.modelDataSourceBinding)) {
|
200
|
-
executeTransformConfig = this.extendTransformConfig(executeTransformConfig, definition.modelDataSourceBinding);
|
201
|
-
}
|
202
|
-
|
203
|
-
executeTransform(executeTransformConfig);
|
195
|
+
});
|
204
196
|
|
205
197
|
this.codegenAssets = new CodegenAssets(this, 'AmplifyCodegenAssets', { modelSchema: definition.schema });
|
206
198
|
|
@@ -215,67 +207,6 @@ export class AmplifyGraphqlApi extends Construct {
|
|
215
207
|
this.apiKey = this.resources.cfnResources.cfnApiKey?.attrApiKey;
|
216
208
|
}
|
217
209
|
|
218
|
-
/**
|
219
|
-
* Extends executeTransformConfig with fields for provisioning a SQL Lambda
|
220
|
-
* @param executeTransformConfig the executeTransformConfig to extend
|
221
|
-
* @param modelDataSourceBinding the modelDataSourceBinding containing the values to add to the transform config
|
222
|
-
*/
|
223
|
-
private extendTransformConfig(
|
224
|
-
executeTransformConfig: ExecuteTransformConfig,
|
225
|
-
modelDataSourceBinding: SqlModelDataSourceBinding,
|
226
|
-
): ExecuteTransformConfig {
|
227
|
-
const extendedConfig = { ...executeTransformConfig };
|
228
|
-
if (modelDataSourceBinding.customSqlStatements) {
|
229
|
-
extendedConfig.customQueries = new Map(Object.entries(modelDataSourceBinding.customSqlStatements));
|
230
|
-
}
|
231
|
-
|
232
|
-
const dbSecrets: Map<string, RDSConnectionSecrets> = new Map();
|
233
|
-
let dbSecretDbTypeKey: string;
|
234
|
-
switch (modelDataSourceBinding.bindingType) {
|
235
|
-
case MYSQL_DB_TYPE:
|
236
|
-
dbSecretDbTypeKey = MYSQL_DB_TYPE;
|
237
|
-
break;
|
238
|
-
case POSTGRES_DB_TYPE:
|
239
|
-
dbSecretDbTypeKey = POSTGRES_DB_TYPE;
|
240
|
-
break;
|
241
|
-
default:
|
242
|
-
throw new Error(`Unsupported binding type ${modelDataSourceBinding.bindingType}`);
|
243
|
-
}
|
244
|
-
dbSecrets.set(dbSecretDbTypeKey, {
|
245
|
-
username: modelDataSourceBinding.dbConnectionConfig.usernameSsmPath,
|
246
|
-
password: modelDataSourceBinding.dbConnectionConfig.passwordSsmPath,
|
247
|
-
host: modelDataSourceBinding.dbConnectionConfig.hostnameSsmPath,
|
248
|
-
// Cast through `any` to allow the SSM Path string to be used on a type expecting a number. This flow expects the incoming value to be
|
249
|
-
// a string containing the SSM path.
|
250
|
-
port: modelDataSourceBinding.dbConnectionConfig.portSsmPath as any,
|
251
|
-
database: modelDataSourceBinding.dbConnectionConfig.databaseNameSsmPath,
|
252
|
-
});
|
253
|
-
extendedConfig.datasourceSecretParameterLocations = dbSecrets;
|
254
|
-
|
255
|
-
const subnetAvailabilityZoneConfig = modelDataSourceBinding.vpcConfiguration.subnetAvailabilityZones.map(
|
256
|
-
(saz): { SubnetId: string; AvailabilityZone: string } => ({
|
257
|
-
SubnetId: saz.subnetId,
|
258
|
-
AvailabilityZone: saz.availabilityZone,
|
259
|
-
}),
|
260
|
-
);
|
261
|
-
|
262
|
-
if (!extendedConfig.modelToDatasourceMap || extendedConfig.modelToDatasourceMap.size === 0) {
|
263
|
-
const defaultDatasourceType = {
|
264
|
-
dbType: modelDataSourceBinding.bindingType,
|
265
|
-
provisionDB: false,
|
266
|
-
};
|
267
|
-
extendedConfig.modelToDatasourceMap = constructDataSourceMap(extendedConfig.schema, defaultDatasourceType);
|
268
|
-
}
|
269
|
-
|
270
|
-
extendedConfig.sqlLambdaVpcConfig = {
|
271
|
-
vpcId: modelDataSourceBinding.vpcConfiguration.vpcId,
|
272
|
-
securityGroupIds: modelDataSourceBinding.vpcConfiguration.securityGroupIds,
|
273
|
-
subnetAvailabilityZoneConfig,
|
274
|
-
};
|
275
|
-
|
276
|
-
return extendedConfig;
|
277
|
-
}
|
278
|
-
|
279
210
|
/**
|
280
211
|
* Stores graphql api output to be used for client config generation
|
281
212
|
* @param outputStorageStrategy Strategy to store construct outputs. If no strategy is provided a default strategy will be used.
|
@@ -1,52 +1,32 @@
|
|
1
1
|
import * as os from 'os';
|
2
2
|
import { SchemaFile } from 'aws-cdk-lib/aws-appsync';
|
3
|
-
import {
|
4
|
-
|
5
|
-
const DEFAULT_DATA_SOURCE_BINDING: ModelDataSourceBinding = {
|
6
|
-
bindingType: 'DynamoDB',
|
7
|
-
};
|
3
|
+
import { IAmplifyGraphqlDefinition } from './types';
|
8
4
|
|
9
5
|
/**
|
10
6
|
* Class exposing utilities to produce IAmplifyGraphqlDefinition objects given various inputs.
|
11
7
|
*/
|
12
8
|
export class AmplifyGraphqlDefinition {
|
13
9
|
/**
|
14
|
-
* Produce a schema definition from a string input
|
10
|
+
* Produce a schema definition from a string input
|
15
11
|
* @param schema the graphql input as a string
|
16
|
-
* @
|
17
|
-
* @returns a fully formed amplify graphql definition, whose models will be resolved by the data source specifed in the
|
18
|
-
* modelDataSourceBinding
|
12
|
+
* @returns a fully formed amplify graphql definition
|
19
13
|
*/
|
20
|
-
static fromString(
|
21
|
-
schema: string,
|
22
|
-
modelDataSourceBinding: ModelDataSourceBinding = DEFAULT_DATA_SOURCE_BINDING,
|
23
|
-
): IAmplifyGraphqlDefinition {
|
14
|
+
static fromString(schema: string): IAmplifyGraphqlDefinition {
|
24
15
|
return {
|
25
16
|
schema,
|
26
17
|
functionSlots: [],
|
27
|
-
modelDataSourceBinding,
|
28
18
|
};
|
29
19
|
}
|
30
20
|
|
31
21
|
/**
|
32
|
-
* Convert one or more appsync SchemaFile objects into an Amplify Graphql Schema
|
22
|
+
* Convert one or more appsync SchemaFile objects into an Amplify Graphql Schema
|
33
23
|
* @param filePaths one or more paths to the graphql files to process
|
34
|
-
* @returns a fully formed amplify graphql definition
|
24
|
+
* @returns a fully formed amplify graphql definition
|
35
25
|
*/
|
36
26
|
static fromFiles(...filePaths: string[]): IAmplifyGraphqlDefinition {
|
37
|
-
return
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
* Convert one or more appsync SchemaFile objects into an Amplify Graphql Schema, binding them with the specified ModelDataSourceBinding.
|
42
|
-
* @param filePaths one or more paths to the graphql files to process
|
43
|
-
* @param modelDataSourceBinding the ModelDataSourceBinding to use for the schema.
|
44
|
-
* @returns a fully formed amplify graphql definition, whose models will be resolved by the data source specifed in the
|
45
|
-
* modelDataSourceBinding
|
46
|
-
* @experimental
|
47
|
-
*/
|
48
|
-
static fromFilesAndBinding(filePaths: string[], modelDataSourceBinding: ModelDataSourceBinding): IAmplifyGraphqlDefinition {
|
49
|
-
const schema = filePaths.map((filePath) => new SchemaFile({ filePath }).definition).join(os.EOL);
|
50
|
-
return AmplifyGraphqlDefinition.fromString(schema, modelDataSourceBinding);
|
27
|
+
return {
|
28
|
+
schema: filePaths.map((filePath) => new SchemaFile({ filePath }).definition).join(os.EOL),
|
29
|
+
functionSlots: [],
|
30
|
+
};
|
51
31
|
}
|
52
32
|
}
|
package/src/index.ts
CHANGED
@@ -27,12 +27,6 @@ export type {
|
|
27
27
|
IBackendOutputStorageStrategy,
|
28
28
|
IBackendOutputEntry,
|
29
29
|
AddFunctionProps,
|
30
|
-
ModelDataSourceBinding,
|
31
|
-
DynamoModelDataSourceBinding,
|
32
|
-
SqlModelDataSourceBinding,
|
33
|
-
SqlModelDataSourceBindingVpcConfig,
|
34
|
-
SubnetAvailabilityZone,
|
35
|
-
SqlModelDataSourceBindingDbConnectionConfig,
|
36
30
|
} from './types';
|
37
31
|
export { AmplifyGraphqlApi } from './amplify-graphql-api';
|
38
32
|
export { AmplifyGraphqlDefinition } from './amplify-graphql-definition';
|