@aws-amplify/graphql-api-construct 1.2.0 → 1.3.0-rds-5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +619 -168
- package/API.md +42 -1
- package/CHANGELOG.md +7 -0
- package/README.md +370 -377
- package/lib/amplify-graphql-api.d.ts +6 -0
- package/lib/amplify-graphql-api.js +60 -4
- package/lib/amplify-graphql-definition.d.ts +17 -6
- package/lib/amplify-graphql-definition.js +26 -11
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/sql-model-datasource-binding.d.ts +20 -0
- package/lib/sql-model-datasource-binding.js +42 -0
- package/lib/types.d.ts +97 -0
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/backend-output-schemas/lib/auth/index.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/auth/v1.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/index.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/graphql/v1.js +3 -5
- package/node_modules/@aws-amplify/backend-output-schemas/lib/index.js +7 -11
- package/node_modules/@aws-amplify/backend-output-schemas/lib/platform/stack_metadata_schemas.js +2 -4
- package/node_modules/@aws-amplify/backend-output-schemas/lib/stack/index.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/stack/v1.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/storage/index.js +2 -3
- package/node_modules/@aws-amplify/backend-output-schemas/lib/storage/v1.js +2 -3
- package/node_modules/@aws-amplify/backend-output-storage/package.json +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +5 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +16 -0
- 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 +3 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +64 -50
- 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/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js +3 -0
- 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 +3 -2
- 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 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/validations.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +20 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +24 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → 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 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/field.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/helpers.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/helpers.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.create.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.create.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.delete.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.delete.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.update.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.update.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/query.js +28 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/search.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/search.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/subscriptions.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +20 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +24 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +13 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +157 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js +21 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts +8 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +56 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts +8 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +41 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers/subscriptions.d.ts → vtl-generator/rds/resolvers/subscription.d.ts} +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js +18 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +19 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js +3 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +13 -1
- 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 +9 -8
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- 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 +4 -0
- 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 +8 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- 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 +4 -1
- 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 +4 -3
- 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 +20 -11
- 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 +9 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/API.md +15 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +12 -0
- 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/lib/field-mapping-resolvers.d.ts +1 -0
- 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 +13 -1
- 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 +2 -1
- 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 +16 -33
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts +10 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js +102 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts +13 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +81 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.d.ts +1 -0
- 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 +3 -1
- 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 +14 -13
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +15 -15
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +18 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
- 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 +25 -12
- 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 +9 -2
- 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 +6 -5
- 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 +6 -5
- 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 +6 -5
- 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 +4 -3
- 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 +74 -55
- 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 +2 -1
- 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 +8 -2
- 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 +10 -3
- 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 +127 -42
- 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 +1 -0
- 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 +28 -1
- 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 +10 -9
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- 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 +9 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +41 -9
- 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 +35 -8
- 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 +30 -8
- 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 +3 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts +13 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +171 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js +18 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts +8 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js +7 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts +14 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +115 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -0
- 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 +14 -161
- 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 +14 -8
- 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 +4 -0
- 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 +5 -0
- 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 +85 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +11 -10
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
- 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 -0
- 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/API.md +26 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/README.md +13 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +132 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js +6 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +71 -0
- package/node_modules/@aws-amplify/graphql-transformer/API.md +1 -0
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +13 -0
- package/node_modules/@aws-amplify/graphql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +1 -0
- 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 +5 -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 -14
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +7 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +33 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +17 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- 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/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 +10 -1
- 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 +2 -1
- 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 +2 -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 +2 -3
- 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 +1 -0
- 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 +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 +2 -1
- 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 +4 -1
- 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 +3 -2
- 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 +2 -1
- 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/api-category.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.js +5 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/api-category.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +3 -2
- 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 +14 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +19 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +14 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js +82 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts +3 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js +7 -1
- 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 +5 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +20 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +9 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +5 -1
- 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 +1 -0
- 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 +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +17 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/index.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-datasource-provider.ts +8 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +3 -2
- package/node_modules/graphql-transformer-common/API.md +21 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +11 -0
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/lib/definition.d.ts +9 -2
- package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/definition.js +52 -1
- 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 +3 -1
- package/node_modules/graphql-transformer-common/lib/util.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +7 -6
- package/package.json +19 -17
- package/src/amplify-graphql-api.ts +73 -4
- package/src/amplify-graphql-definition.ts +30 -10
- package/src/index.ts +6 -0
- package/src/sql-model-datasource-binding.ts +45 -0
- package/src/types.ts +114 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts +0 -6
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.js.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts.map +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.js +0 -25
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.js.map +0 -1
- /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/index.d.ts +0 -0
- /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/index.js +0 -0
package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { TransformerSecrets } from '@aws-amplify/graphql-transformer-interfaces';
|
2
2
|
export declare enum ImportedRDSType {
|
3
3
|
MYSQL = "mysql",
|
4
|
-
POSTGRESQL = "
|
4
|
+
POSTGRESQL = "postgres"
|
5
5
|
}
|
6
6
|
export type ImportedDataSourceType = ImportedRDSType;
|
7
7
|
export type ImportedDataSourceConfig = RDSDataSourceConfig;
|
@@ -22,4 +22,7 @@ export type RDSConnectionSecrets = TransformerSecrets & {
|
|
22
22
|
};
|
23
23
|
export declare const MYSQL_DB_TYPE = "MySQL";
|
24
24
|
export declare const DDB_DB_TYPE = "DDB";
|
25
|
+
export declare const POSTGRES_DB_TYPE = "Postgres";
|
26
|
+
export type ModelDatasourceType = 'DDB' | 'MySQL' | 'Postgres';
|
27
|
+
export type SQLDBType = 'MySQL' | 'Postgres';
|
25
28
|
//# sourceMappingURL=import-appsync-api-types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"import-appsync-api-types.d.ts","sourceRoot":"","sources":["../../src/types/import-appsync-api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,UAAU,
|
1
|
+
{"version":3,"file":"import-appsync-api-types.d.ts","sourceRoot":"","sources":["../../src/types/import-appsync-api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,UAAU,aAAa;CACxB;AAED,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAErD,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG;IACvD,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAMzD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AAC/D,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC"}
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DDB_DB_TYPE = exports.MYSQL_DB_TYPE = exports.RDS_SCHEMA_FILE_NAME = exports.ImportedRDSType = void 0;
|
3
|
+
exports.POSTGRES_DB_TYPE = exports.DDB_DB_TYPE = exports.MYSQL_DB_TYPE = exports.RDS_SCHEMA_FILE_NAME = exports.ImportedRDSType = void 0;
|
4
4
|
var ImportedRDSType;
|
5
5
|
(function (ImportedRDSType) {
|
6
6
|
ImportedRDSType["MYSQL"] = "mysql";
|
7
|
-
ImportedRDSType["POSTGRESQL"] = "
|
7
|
+
ImportedRDSType["POSTGRESQL"] = "postgres";
|
8
8
|
})(ImportedRDSType = exports.ImportedRDSType || (exports.ImportedRDSType = {}));
|
9
9
|
exports.RDS_SCHEMA_FILE_NAME = 'schema.rds.graphql';
|
10
10
|
exports.MYSQL_DB_TYPE = 'MySQL';
|
11
11
|
exports.DDB_DB_TYPE = 'DDB';
|
12
|
+
exports.POSTGRES_DB_TYPE = 'Postgres';
|
12
13
|
//# sourceMappingURL=import-appsync-api-types.js.map
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"import-appsync-api-types.js","sourceRoot":"","sources":["../../src/types/import-appsync-api-types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,
|
1
|
+
{"version":3,"file":"import-appsync-api-types.js","sourceRoot":"","sources":["../../src/types/import-appsync-api-types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,0CAAuB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAcY,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAc5C,QAAA,aAAa,GAAG,OAAO,CAAC;AACxB,QAAA,WAAW,GAAG,KAAK,CAAC;AACpB,QAAA,gBAAgB,GAAG,UAAU,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { DDB_DB_TYPE, ImportAppSyncAPIInputs, ImportedDataSourceType, ImportedRDSType, MYSQL_DB_TYPE, RDS_SCHEMA_FILE_NAME, RDSConnectionSecrets, ImportedDataSourceConfig, RDSDataSourceConfig, } from './import-appsync-api-types';
|
1
|
+
export { DDB_DB_TYPE, ImportAppSyncAPIInputs, ImportedDataSourceType, ImportedRDSType, MYSQL_DB_TYPE, POSTGRES_DB_TYPE, RDS_SCHEMA_FILE_NAME, RDSConnectionSecrets, ImportedDataSourceConfig, RDSDataSourceConfig, ModelDatasourceType, SQLDBType, } from './import-appsync-api-types';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,SAAS,GACV,MAAM,4BAA4B,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RDS_SCHEMA_FILE_NAME = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DB_TYPE = void 0;
|
3
|
+
exports.RDS_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DB_TYPE = void 0;
|
4
4
|
var import_appsync_api_types_1 = require("./import-appsync-api-types");
|
5
5
|
Object.defineProperty(exports, "DDB_DB_TYPE", { enumerable: true, get: function () { return import_appsync_api_types_1.DDB_DB_TYPE; } });
|
6
6
|
Object.defineProperty(exports, "ImportedRDSType", { enumerable: true, get: function () { return import_appsync_api_types_1.ImportedRDSType; } });
|
7
7
|
Object.defineProperty(exports, "MYSQL_DB_TYPE", { enumerable: true, get: function () { return import_appsync_api_types_1.MYSQL_DB_TYPE; } });
|
8
|
+
Object.defineProperty(exports, "POSTGRES_DB_TYPE", { enumerable: true, get: function () { return import_appsync_api_types_1.POSTGRES_DB_TYPE; } });
|
8
9
|
Object.defineProperty(exports, "RDS_SCHEMA_FILE_NAME", { enumerable: true, get: function () { return import_appsync_api_types_1.RDS_SCHEMA_FILE_NAME; } });
|
9
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,uEAaoC;AAZlC,uHAAA,WAAW,OAAA;AAGX,2HAAA,eAAe,OAAA;AACf,yHAAA,aAAa,OAAA;AACb,4HAAA,gBAAgB,OAAA;AAChB,gIAAA,oBAAoB,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api-category.d.ts","sourceRoot":"","sources":["../../src/utils/api-category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api-category.js","sourceRoot":"","sources":["../../src/utils/api-category.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,KAAK,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
|
+
export { getPrimaryKeyFields } from './model-util';
|
1
2
|
export { DirectiveWrapper, GetArgumentsOptions, generateGetArgumentsInput } from './directive-wrapper';
|
2
3
|
export { collectDirectives, collectDirectivesByTypeNames } from './type-map-utils';
|
3
4
|
export { stripDirectives } from './strip-directives';
|
4
|
-
export { getTable, getKeySchema, getSortKeyFieldNames } from './schema-utils';
|
5
|
+
export { getTable, getKeySchema, getSortKeyFieldNames, getDatasourceType } from './schema-utils';
|
5
6
|
export { DEFAULT_SCHEMA_DEFINITION } from './defaultSchema';
|
6
|
-
export { getParameterStoreSecretPath } from './rds-
|
7
|
+
export { getParameterStoreSecretPath, getModelDatasourceType, isDynamoDBModel, isRDSModel, isImportedRDSType, isRDSDBType, constructDataSourceMap, getEngineFromDBType, getImportedRDSType, } from './rds-util';
|
7
8
|
export declare const APICategory = "api";
|
8
9
|
export { setResourceName, getResourceName } from './resource-name';
|
9
10
|
export type { SetResourceNameProps } from './resource-name';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getResourceName = exports.setResourceName = exports.APICategory = exports.getParameterStoreSecretPath = exports.DEFAULT_SCHEMA_DEFINITION = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.stripDirectives = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.generateGetArgumentsInput = exports.DirectiveWrapper = void 0;
|
3
|
+
exports.getResourceName = exports.setResourceName = exports.APICategory = exports.getImportedRDSType = exports.getEngineFromDBType = exports.constructDataSourceMap = exports.isRDSDBType = exports.isImportedRDSType = exports.isRDSModel = exports.isDynamoDBModel = exports.getModelDatasourceType = exports.getParameterStoreSecretPath = exports.DEFAULT_SCHEMA_DEFINITION = exports.getDatasourceType = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.stripDirectives = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.generateGetArgumentsInput = exports.DirectiveWrapper = exports.getPrimaryKeyFields = void 0;
|
4
|
+
var model_util_1 = require("./model-util");
|
5
|
+
Object.defineProperty(exports, "getPrimaryKeyFields", { enumerable: true, get: function () { return model_util_1.getPrimaryKeyFields; } });
|
4
6
|
var directive_wrapper_1 = require("./directive-wrapper");
|
5
7
|
Object.defineProperty(exports, "DirectiveWrapper", { enumerable: true, get: function () { return directive_wrapper_1.DirectiveWrapper; } });
|
6
8
|
Object.defineProperty(exports, "generateGetArgumentsInput", { enumerable: true, get: function () { return directive_wrapper_1.generateGetArgumentsInput; } });
|
@@ -13,10 +15,19 @@ var schema_utils_1 = require("./schema-utils");
|
|
13
15
|
Object.defineProperty(exports, "getTable", { enumerable: true, get: function () { return schema_utils_1.getTable; } });
|
14
16
|
Object.defineProperty(exports, "getKeySchema", { enumerable: true, get: function () { return schema_utils_1.getKeySchema; } });
|
15
17
|
Object.defineProperty(exports, "getSortKeyFieldNames", { enumerable: true, get: function () { return schema_utils_1.getSortKeyFieldNames; } });
|
18
|
+
Object.defineProperty(exports, "getDatasourceType", { enumerable: true, get: function () { return schema_utils_1.getDatasourceType; } });
|
16
19
|
var defaultSchema_1 = require("./defaultSchema");
|
17
20
|
Object.defineProperty(exports, "DEFAULT_SCHEMA_DEFINITION", { enumerable: true, get: function () { return defaultSchema_1.DEFAULT_SCHEMA_DEFINITION; } });
|
18
|
-
var
|
19
|
-
Object.defineProperty(exports, "getParameterStoreSecretPath", { enumerable: true, get: function () { return
|
21
|
+
var rds_util_1 = require("./rds-util");
|
22
|
+
Object.defineProperty(exports, "getParameterStoreSecretPath", { enumerable: true, get: function () { return rds_util_1.getParameterStoreSecretPath; } });
|
23
|
+
Object.defineProperty(exports, "getModelDatasourceType", { enumerable: true, get: function () { return rds_util_1.getModelDatasourceType; } });
|
24
|
+
Object.defineProperty(exports, "isDynamoDBModel", { enumerable: true, get: function () { return rds_util_1.isDynamoDBModel; } });
|
25
|
+
Object.defineProperty(exports, "isRDSModel", { enumerable: true, get: function () { return rds_util_1.isRDSModel; } });
|
26
|
+
Object.defineProperty(exports, "isImportedRDSType", { enumerable: true, get: function () { return rds_util_1.isImportedRDSType; } });
|
27
|
+
Object.defineProperty(exports, "isRDSDBType", { enumerable: true, get: function () { return rds_util_1.isRDSDBType; } });
|
28
|
+
Object.defineProperty(exports, "constructDataSourceMap", { enumerable: true, get: function () { return rds_util_1.constructDataSourceMap; } });
|
29
|
+
Object.defineProperty(exports, "getEngineFromDBType", { enumerable: true, get: function () { return rds_util_1.getEngineFromDBType; } });
|
30
|
+
Object.defineProperty(exports, "getImportedRDSType", { enumerable: true, get: function () { return rds_util_1.getImportedRDSType; } });
|
20
31
|
exports.APICategory = 'api';
|
21
32
|
var resource_name_1 = require("./resource-name");
|
22
33
|
Object.defineProperty(exports, "setResourceName", { enumerable: true, get: function () { return resource_name_1.setResourceName; } });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuG;AAA9F,qHAAA,gBAAgB,OAAA;AAAuB,8HAAA,yBAAyB,OAAA;AACzE,mDAAmF;AAA1E,mHAAA,iBAAiB,OAAA;AAAE,8HAAA,4BAA4B,OAAA;AACxD,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA;AAC5B,yDAAuG;AAA9F,qHAAA,gBAAgB,OAAA;AAAuB,8HAAA,yBAAyB,OAAA;AACzE,mDAAmF;AAA1E,mHAAA,iBAAiB,OAAA;AAAE,8HAAA,4BAA4B,OAAA;AACxD,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+CAAiG;AAAxF,wGAAA,QAAQ,OAAA;AAAE,4GAAA,YAAY,OAAA;AAAE,oHAAA,oBAAoB,OAAA;AAAE,iHAAA,iBAAiB,OAAA;AACxE,iDAA4D;AAAnD,0HAAA,yBAAyB,OAAA;AAClC,uCAUoB;AATlB,uHAAA,2BAA2B,OAAA;AAC3B,kHAAA,sBAAsB,OAAA;AACtB,2GAAA,eAAe,OAAA;AACf,sGAAA,UAAU,OAAA;AACV,6GAAA,iBAAiB,OAAA;AACjB,uGAAA,WAAW,OAAA;AACX,kHAAA,sBAAsB,OAAA;AACtB,+GAAA,mBAAmB,OAAA;AACnB,8GAAA,kBAAkB,OAAA;AAEP,QAAA,WAAW,GAAG,KAAK,CAAC;AACjC,iDAAmE;AAA1D,gHAAA,eAAe,OAAA;AAAE,gHAAA,eAAe,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"model-util.d.ts","sourceRoot":"","sources":["../../src/utils/model-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AAEnF,eAAO,MAAM,mBAAmB,SAAU,wBAAwB,KAAG,MAAM,EAY1E,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPrimaryKeyFields = void 0;
|
4
|
+
const getPrimaryKeyFields = (type) => {
|
5
|
+
var _a, _b, _c, _d;
|
6
|
+
const primaryKeyField = (_a = type.fields) === null || _a === void 0 ? void 0 : _a.find((f) => { var _a; return (_a = f.directives) === null || _a === void 0 ? void 0 : _a.some((d) => d.name.value === 'primaryKey'); });
|
7
|
+
if (!primaryKeyField) {
|
8
|
+
return ['id'];
|
9
|
+
}
|
10
|
+
const primaryKeyDirective = (_b = primaryKeyField === null || primaryKeyField === void 0 ? void 0 : primaryKeyField.directives) === null || _b === void 0 ? void 0 : _b.find((d) => d.name.value === 'primaryKey');
|
11
|
+
const result = [primaryKeyField.name.value];
|
12
|
+
const sortKeys = (_d = (_c = primaryKeyDirective === null || primaryKeyDirective === void 0 ? void 0 : primaryKeyDirective.arguments) === null || _c === void 0 ? void 0 : _c.find((a) => a.name.value === 'sortKeyFields')) === null || _d === void 0 ? void 0 : _d.value;
|
13
|
+
if (sortKeys) {
|
14
|
+
result.push(...sortKeys.values.map((v) => v.value));
|
15
|
+
}
|
16
|
+
return result;
|
17
|
+
};
|
18
|
+
exports.getPrimaryKeyFields = getPrimaryKeyFields;
|
19
|
+
//# sourceMappingURL=model-util.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"model-util.js","sourceRoot":"","sources":["../../src/utils/model-util.ts"],"names":[],"mappings":";;;AAEO,MAAM,mBAAmB,GAAG,CAAC,IAA8B,EAAY,EAAE;;IAC9E,MAAM,eAAe,GAAG,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,YAAY,CAAC,CAAA,EAAA,CAAC,CAAC;IAC3G,IAAI,CAAC,eAAe,EAAE;QACpB,OAAO,CAAC,IAAI,CAAC,CAAC;KACf;IACD,MAAM,mBAAmB,GAAG,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,UAAU,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,YAAY,CAAC,CAAC;IACpG,MAAM,MAAM,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,MAAA,MAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,SAAS,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,eAAe,CAAC,0CAAE,KAAsB,CAAC;IACvH,IAAI,QAAQ,EAAE;QACZ,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAqB,CAAC,KAAe,CAAC,CAAC,CAAC;KACpF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { ModelDatasourceType } from '../types';
|
3
|
+
import { DatasourceType, DBType } from '../config';
|
4
|
+
import { ImportedRDSType } from '../types';
|
5
|
+
export declare const getParameterStoreSecretPath: (secret: string, secretsKey: string, apiName: string, environmentName: string, appId: string) => string;
|
6
|
+
export declare const getModelDatasourceType: (ctx: TransformerContextProvider, typename: string) => ModelDatasourceType;
|
7
|
+
export declare const isDynamoDBModel: (ctx: TransformerContextProvider, typename: string) => boolean;
|
8
|
+
export declare const isRDSModel: (ctx: TransformerContextProvider, typename: string) => boolean;
|
9
|
+
export declare const isImportedRDSType: (dbInfo: DatasourceType) => boolean;
|
10
|
+
export declare const isRDSDBType: (dbType: DBType) => boolean;
|
11
|
+
export declare const constructDataSourceMap: (schema: string, datasourceType: DatasourceType) => Map<string, DatasourceType>;
|
12
|
+
export declare const getEngineFromDBType: (dbType: DBType) => ImportedRDSType;
|
13
|
+
export declare const getImportedRDSType: (modelToDatasourceMap: Map<string, DatasourceType>) => DBType;
|
14
|
+
//# sourceMappingURL=rds-util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rds-util.d.ts","sourceRoot":"","sources":["../../src/utils/rds-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAA8B,mBAAmB,EAAoB,MAAM,UAAU,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAU3C,eAAO,MAAM,2BAA2B,WAC9B,MAAM,cACF,MAAM,WACT,MAAM,mBACE,MAAM,SAChB,MAAM,KACZ,MAWF,CAAC;AAQF,eAAO,MAAM,sBAAsB,QAAS,0BAA0B,YAAY,MAAM,KAAG,mBAG1F,CAAC;AAQF,eAAO,MAAM,eAAe,QAAS,0BAA0B,YAAY,MAAM,KAAG,OAEnF,CAAC;AAQF,eAAO,MAAM,UAAU,QAAS,0BAA0B,YAAY,MAAM,KAAG,OAG9E,CAAC;AAOF,eAAO,MAAM,iBAAiB,WAAY,cAAc,KAAG,OAE1D,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,MAAM,KAAG,OAE5C,CAAC;AASF,eAAO,MAAM,sBAAsB,WAAY,MAAM,kBAAkB,cAAc,KAAG,IAAI,MAAM,EAAE,cAAc,CASjH,CAAC;AAOF,eAAO,MAAM,mBAAmB,WAAY,MAAM,KAAG,eASpD,CAAC;AAQF,eAAO,MAAM,kBAAkB,yBAA0B,IAAI,MAAM,EAAE,cAAc,CAAC,KAAG,MAOtF,CAAC"}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getImportedRDSType = exports.getEngineFromDBType = exports.constructDataSourceMap = exports.isRDSDBType = exports.isImportedRDSType = exports.isRDSModel = exports.isDynamoDBModel = exports.getModelDatasourceType = exports.getParameterStoreSecretPath = void 0;
|
7
|
+
const path_1 = __importDefault(require("path"));
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
9
|
+
const graphql_1 = require("graphql");
|
10
|
+
const types_1 = require("../types");
|
11
|
+
const api_category_1 = require("./api-category");
|
12
|
+
const types_2 = require("../types");
|
13
|
+
const getParameterNameForDBSecret = (secret, secretsKey) => {
|
14
|
+
return `${secretsKey}_${secret}`;
|
15
|
+
};
|
16
|
+
const getParameterStoreSecretPath = (secret, secretsKey, apiName, environmentName, appId) => {
|
17
|
+
if (lodash_1.default.isEmpty(appId)) {
|
18
|
+
throw new Error('Unable to read the App ID');
|
19
|
+
}
|
20
|
+
const categoryName = api_category_1.APICategory;
|
21
|
+
const paramName = getParameterNameForDBSecret(secret, secretsKey);
|
22
|
+
if (!environmentName) {
|
23
|
+
throw new Error('Unable to create RDS secret path, environment not found/defined');
|
24
|
+
}
|
25
|
+
return path_1.default.posix.join('/amplify', appId, environmentName, `AMPLIFY_${categoryName}${apiName}${paramName}`);
|
26
|
+
};
|
27
|
+
exports.getParameterStoreSecretPath = getParameterStoreSecretPath;
|
28
|
+
const getModelDatasourceType = (ctx, typename) => {
|
29
|
+
const config = ctx.modelToDatasourceMap.get(typename);
|
30
|
+
return (config === null || config === void 0 ? void 0 : config.dbType) || types_1.DDB_DB_TYPE;
|
31
|
+
};
|
32
|
+
exports.getModelDatasourceType = getModelDatasourceType;
|
33
|
+
const isDynamoDBModel = (ctx, typename) => {
|
34
|
+
return (0, exports.getModelDatasourceType)(ctx, typename) === types_1.DDB_DB_TYPE;
|
35
|
+
};
|
36
|
+
exports.isDynamoDBModel = isDynamoDBModel;
|
37
|
+
const isRDSModel = (ctx, typename) => {
|
38
|
+
const modelDatasourceType = (0, exports.getModelDatasourceType)(ctx, typename);
|
39
|
+
return [types_1.MYSQL_DB_TYPE, types_1.POSTGRES_DB_TYPE].includes(modelDatasourceType);
|
40
|
+
};
|
41
|
+
exports.isRDSModel = isRDSModel;
|
42
|
+
const isImportedRDSType = (dbInfo) => {
|
43
|
+
return (0, exports.isRDSDBType)(dbInfo === null || dbInfo === void 0 ? void 0 : dbInfo.dbType) && !(dbInfo === null || dbInfo === void 0 ? void 0 : dbInfo.provisionDB);
|
44
|
+
};
|
45
|
+
exports.isImportedRDSType = isImportedRDSType;
|
46
|
+
const isRDSDBType = (dbType) => {
|
47
|
+
return [types_1.MYSQL_DB_TYPE, types_1.POSTGRES_DB_TYPE].includes(dbType);
|
48
|
+
};
|
49
|
+
exports.isRDSDBType = isRDSDBType;
|
50
|
+
const constructDataSourceMap = (schema, datasourceType) => {
|
51
|
+
const parsedSchema = (0, graphql_1.parse)(schema);
|
52
|
+
const result = new Map();
|
53
|
+
parsedSchema.definitions
|
54
|
+
.filter((obj) => { var _a; return obj.kind === graphql_1.Kind.OBJECT_TYPE_DEFINITION && ((_a = obj.directives) === null || _a === void 0 ? void 0 : _a.some((dir) => dir.name.value === 'model')); })
|
55
|
+
.forEach((type) => {
|
56
|
+
result.set(type.name.value, datasourceType);
|
57
|
+
});
|
58
|
+
return result;
|
59
|
+
};
|
60
|
+
exports.constructDataSourceMap = constructDataSourceMap;
|
61
|
+
const getEngineFromDBType = (dbType) => {
|
62
|
+
switch (dbType) {
|
63
|
+
case types_1.MYSQL_DB_TYPE:
|
64
|
+
return types_2.ImportedRDSType.MYSQL;
|
65
|
+
case types_1.POSTGRES_DB_TYPE:
|
66
|
+
return types_2.ImportedRDSType.POSTGRESQL;
|
67
|
+
default:
|
68
|
+
throw new Error(`Unsupported RDS datasource type: ${dbType}`);
|
69
|
+
}
|
70
|
+
};
|
71
|
+
exports.getEngineFromDBType = getEngineFromDBType;
|
72
|
+
const getImportedRDSType = (modelToDatasourceMap) => {
|
73
|
+
var _a;
|
74
|
+
const datasourceMapValues = Array.from(modelToDatasourceMap === null || modelToDatasourceMap === void 0 ? void 0 : modelToDatasourceMap.values());
|
75
|
+
const dbTypes = new Set((_a = datasourceMapValues === null || datasourceMapValues === void 0 ? void 0 : datasourceMapValues.filter((value) => (0, exports.isImportedRDSType)(value))) === null || _a === void 0 ? void 0 : _a.map((value) => value === null || value === void 0 ? void 0 : value.dbType));
|
76
|
+
if (dbTypes.size > 1) {
|
77
|
+
throw new Error(`Multiple imported SQL datasource types ${Array.from(dbTypes)} are detected. Only one type is supported.`);
|
78
|
+
}
|
79
|
+
return dbTypes.values().next().value;
|
80
|
+
};
|
81
|
+
exports.getImportedRDSType = getImportedRDSType;
|
82
|
+
//# sourceMappingURL=rds-util.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rds-util.js","sourceRoot":"","sources":["../../src/utils/rds-util.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,oDAAuB;AACvB,qCAAgE;AAEhE,oCAA6F;AAE7F,iDAA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import { ObjectTypeDefinitionNode } from 'graphql';
|
2
|
+
import { ObjectTypeDefinitionNode, TypeNode } from 'graphql';
|
3
|
+
import { DBType } from '../config';
|
3
4
|
export declare const getKeySchema: (table: any, indexName?: string) => any;
|
4
5
|
export declare const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefinitionNode) => any;
|
5
6
|
export declare const getSortKeyFieldNames: (type: ObjectTypeDefinitionNode) => string[];
|
7
|
+
export declare const getDatasourceType: (type: TypeNode, ctx: TransformerContextProvider) => DBType;
|
6
8
|
//# sourceMappingURL=schema-utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAGzF,OAAO,EAAiB,wBAAwB,EAAmB,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAGzF,OAAO,EAAiB,wBAAwB,EAAmB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG7F,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC,eAAO,MAAM,YAAY,UAAW,GAAG,cAAc,MAAM,KAAG,GAI7B,CAAC;AAKlC,eAAO,MAAM,QAAQ,QAAS,0BAA0B,UAAU,wBAAwB,KAAG,GAS5F,CAAC;AAKF,eAAO,MAAM,oBAAoB,SAAU,wBAAwB,KAAG,MAAM,EAe3E,CAAC;AAKF,eAAO,MAAM,iBAAiB,SAAU,QAAQ,OAAO,0BAA0B,KAAG,MAEnF,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getSortKeyFieldNames = exports.getTable = exports.getKeySchema = void 0;
|
3
|
+
exports.getDatasourceType = exports.getSortKeyFieldNames = exports.getTable = exports.getKeySchema = void 0;
|
4
4
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
5
|
+
const types_1 = require("../types");
|
5
6
|
const getKeySchema = (table, indexName) => {
|
6
7
|
var _a, _b, _c;
|
7
8
|
return (_c = (_b = ((_a = table.globalSecondaryIndexes.find((gsi) => gsi.indexName === indexName)) !== null && _a !== void 0 ? _a : table.localSecondaryIndexes.find((gsi) => gsi.indexName === indexName))) === null || _b === void 0 ? void 0 : _b.keySchema) !== null && _c !== void 0 ? _c : table.keySchema;
|
@@ -33,4 +34,9 @@ const getSortKeyFieldNames = (type) => {
|
|
33
34
|
return sortKeyFieldNames;
|
34
35
|
};
|
35
36
|
exports.getSortKeyFieldNames = getSortKeyFieldNames;
|
37
|
+
const getDatasourceType = (type, ctx) => {
|
38
|
+
var _a, _b;
|
39
|
+
return (_b = (_a = ctx.modelToDatasourceMap.get((0, graphql_transformer_common_1.getBaseType)(type))) === null || _a === void 0 ? void 0 : _a.dbType) !== null && _b !== void 0 ? _b : types_1.DDB_DB_TYPE;
|
40
|
+
};
|
41
|
+
exports.getDatasourceType = getDatasourceType;
|
36
42
|
//# sourceMappingURL=schema-utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema-utils.js","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":";;;AAKA,
|
1
|
+
{"version":3,"file":"schema-utils.js","sourceRoot":"","sources":["../../src/utils/schema-utils.ts"],"names":[],"mappings":";;;AAKA,2EAA2E;AAC3E,oCAAuC;AAMhC,MAAM,YAAY,GAAG,CAAC,KAAU,EAAE,SAAkB,EAAO,EAAE;;IAClE,OAAA,MAAA,MAAA,CACE,MAAA,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,mCAC5E,KAAK,CAAC,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,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAE,EAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;iBACrF;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B;AAKK,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,GAA+B,EAAU,EAAE;;IAC3F,OAAO,MAAA,MAAA,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAA,wCAAW,EAAC,IAAI,CAAC,CAAC,0CAAE,MAAM,mCAAI,mBAAW,CAAC;AAChF,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DirectiveNode, DocumentNode, EnumTypeDefinitionNode, FieldDefinitionNode, InputObjectTypeDefinitionNode, InputValueDefinitionNode, Location, NamedTypeNode, ObjectTypeDefinitionNode, StringValueNode, TypeNode } from 'graphql';
|
2
2
|
import { DirectiveWrapper } from '../utils/directive-wrapper';
|
3
3
|
export declare class GenericFieldWrapper {
|
4
|
-
|
4
|
+
type: TypeNode;
|
5
5
|
readonly directives: DirectiveWrapper[];
|
6
6
|
loc?: Location;
|
7
7
|
name: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"object-definition-wrapper.d.ts","sourceRoot":"","sources":["../../src/wrappers/object-definition-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EAIxB,QAAQ,EACR,aAAa,EAEb,wBAAwB,EACxB,eAAe,EACf,QAAQ,EACT,MAAM,SAAS,CAAC;AAUjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,qBAAa,mBAAmB;
|
1
|
+
{"version":3,"file":"object-definition-wrapper.d.ts","sourceRoot":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C;IAEF,QAAQ,SAAU,MAAM,KAAG,iBAAiB,CAM1C;IAEF,QAAQ,UAAW,iBAAiB,KAAG,IAAI,CAKzC;IAEF,WAAW,UAAW,iBAAiB,KAAG,IAAI,CAO5C;IAEF,MAAM,CAAC,MAAM,SACL,MAAM,WACJ,wBAAwB,EAAE,eACtB,aAAa,EAAE,KAC1B,4BAA4B,CAe7B;IAEF,MAAM,CAAC,UAAU,SAAU,MAAM,OAAO,wBAAwB,YAAY,YAAY,KAAG,4BAA4B,CAcrH;CACH;AAED,qBAAa,WAAW;IAOV,OAAO,CAAC,IAAI;IANxB,SAAgB,IAAI,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,UAAU,EAAE,gBAAgB,EAAE,CAAC;gBAElB,IAAI,EAAE,sBAAsB;IAMhD,QAAQ,UAAW,MAAM,KAAG,IAAI,CAE9B;IAEF,SAAS,QAAO,sBAAsB,CAgBpC;IAEF,MAAM,CAAC,MAAM,SAAU,MAAM,WAAU,MAAM,EAAE,KAAQ,WAAW,CAahE;CACH"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0-rds-5.0",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,10 +28,10 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.
|
31
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-rds-5.0",
|
32
32
|
"fs-extra": "^8.1.0",
|
33
33
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-transformer-common": "4.
|
34
|
+
"graphql-transformer-common": "4.26.0-rds-5.0",
|
35
35
|
"hjson": "^3.2.2",
|
36
36
|
"lodash": "^4.17.21",
|
37
37
|
"md5": "^2.3.0",
|
@@ -72,5 +72,6 @@
|
|
72
72
|
"lines": 29
|
73
73
|
}
|
74
74
|
}
|
75
|
-
}
|
75
|
+
},
|
76
|
+
"gitHead": "ddbbff11d6a070cb4d2b9708c60c734a5d139bfc"
|
76
77
|
}
|
@@ -154,6 +154,17 @@ export interface DataSourceOptions {
|
|
154
154
|
export interface DataSourceProvider extends BackedDataSource {
|
155
155
|
}
|
156
156
|
|
157
|
+
// @public (undocumented)
|
158
|
+
export interface DatasourceType {
|
159
|
+
// (undocumented)
|
160
|
+
dbType: DBType;
|
161
|
+
// (undocumented)
|
162
|
+
provisionDB: boolean;
|
163
|
+
}
|
164
|
+
|
165
|
+
// @public (undocumented)
|
166
|
+
export type DBType = 'DDB' | 'MySQL' | 'Postgres';
|
167
|
+
|
157
168
|
// @public (undocumented)
|
158
169
|
export interface DynamoDbDataSourceOptions extends DataSourceOptions {
|
159
170
|
// (undocumented)
|
@@ -311,6 +322,12 @@ export interface StackManagerProvider {
|
|
311
322
|
readonly scope: Construct;
|
312
323
|
}
|
313
324
|
|
325
|
+
// @public (undocumented)
|
326
|
+
export type SubnetAvailabilityZone = {
|
327
|
+
SubnetId: string;
|
328
|
+
AvailabilityZone: string;
|
329
|
+
};
|
330
|
+
|
314
331
|
// @public (undocumented)
|
315
332
|
export enum SubscriptionFieldType {
|
316
333
|
// (undocumented)
|
@@ -403,6 +420,8 @@ export interface TransformerContextProvider {
|
|
403
420
|
// (undocumented)
|
404
421
|
authConfig: AppSyncAuthConfiguration;
|
405
422
|
// (undocumented)
|
423
|
+
customQueries: Map<string, string>;
|
424
|
+
// (undocumented)
|
406
425
|
dataSources: TransformerDataSourceManagerProvider;
|
407
426
|
// (undocumented)
|
408
427
|
datasourceSecretParameterLocations: Map<string, TransformerSecrets>;
|
@@ -416,8 +435,6 @@ export interface TransformerContextProvider {
|
|
416
435
|
//
|
417
436
|
// (undocumented)
|
418
437
|
metadata: TransformerContextMetadataProvider;
|
419
|
-
// Warning: (ae-forgotten-export) The symbol "DatasourceType" needs to be exported by the entry point index.d.ts
|
420
|
-
//
|
421
438
|
// (undocumented)
|
422
439
|
modelToDatasourceMap: Map<string, DatasourceType>;
|
423
440
|
// (undocumented)
|
@@ -756,7 +773,7 @@ export interface UserPoolConfig {
|
|
756
773
|
// @public (undocumented)
|
757
774
|
export type VpcConfig = {
|
758
775
|
vpcId: string;
|
759
|
-
|
776
|
+
subnetAvailabilityZoneConfig: SubnetAvailabilityZone[];
|
760
777
|
securityGroupIds: string[];
|
761
778
|
};
|
762
779
|
|
@@ -3,6 +3,15 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [3.3.0-rds-5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.1...@aws-amplify/graphql-transformer-interfaces@3.3.0-rds-5.0) (2023-11-01)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- add postgres engine and update types as needed ([#1979](https://github.com/aws-amplify/amplify-category-api/issues/1979)) ([5257d53](https://github.com/aws-amplify/amplify-category-api/commit/5257d53f1d4d02be71b34ddf6757f22dd5d74aff))
|
11
|
+
- Add SQL database support to AmplifyGraphqlApi construct ([#1986](https://github.com/aws-amplify/amplify-category-api/issues/1986)) ([2ff63a5](https://github.com/aws-amplify/amplify-category-api/commit/2ff63a540387d96cf10d8ae1975858a76d9ba045)), closes [#1917](https://github.com/aws-amplify/amplify-category-api/issues/1917) [#1983](https://github.com/aws-amplify/amplify-category-api/issues/1983)
|
12
|
+
- **api:** add vpc endpoints for ssm ([5a4ffc4](https://github.com/aws-amplify/amplify-category-api/commit/5a4ffc4c1889536c8e1fdd1f31fe28ca4326100f))
|
13
|
+
- **api:** custom queries support using sql directive ([5214037](https://github.com/aws-amplify/amplify-category-api/commit/52140374ca974956c5d5eac09fec91a51cfc9027))
|
14
|
+
|
6
15
|
## [3.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.2.0...@aws-amplify/graphql-transformer-interfaces@3.2.1) (2023-10-05)
|
7
16
|
|
8
17
|
### Bug Fixes
|