@aws-amplify/graphql-api-construct 1.1.1 → 1.1.2-rds-3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +19 -18
- package/CHANGELOG.md +4 -0
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +5 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +7 -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 +34 -44
- 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/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/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/{resolvers → vtl-generator/ddb/resolvers}/subscriptions.d.ts +1 -1
- 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 +23 -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 +2 -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 +10 -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 +2 -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 +18 -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/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 +11 -11
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +6 -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 +8 -8
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +7 -0
- 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 +2 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +11 -2
- 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 -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 +11 -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 +14 -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 +82 -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 -14
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +15 -15
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +15 -0
- 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 +10 -10
- 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 +71 -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 +6 -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 +8 -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 +111 -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 +24 -0
- 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 -9
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +8 -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 +16 -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 +113 -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 +10 -10
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +6 -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 +8 -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 +122 -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 +4 -3
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +12 -0
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +4 -3
- 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 +15 -14
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +10 -4
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +11 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +14 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +4 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +3 -4
- 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 +5 -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 +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 +1 -0
- 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/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.map +1 -1
- 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 +9 -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 +7 -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-secret-utils.js → rds-util.js} +16 -2
- 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 +4 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +15 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +7 -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 +8 -0
- 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/transformer-context-provider.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +2 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +3 -2
- 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/node_modules/zod/README.md +191 -83
- package/node_modules/zod/lib/helpers/parseUtil.js +2 -1
- package/node_modules/zod/lib/index.mjs +82 -29
- package/node_modules/zod/lib/index.umd.js +82 -28
- package/node_modules/zod/lib/types.d.ts +22 -5
- package/node_modules/zod/lib/types.js +65 -29
- package/node_modules/zod/package.json +29 -15
- package/package.json +19 -17
- 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.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
@@ -0,0 +1,122 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.generateSqlLambdaResponseMappingTemplate = exports.generateSqlLambdaRequestTemplate = exports.SqlTransformer = void 0;
|
27
|
+
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
28
|
+
const cdk = __importStar(require("aws-cdk-lib"));
|
29
|
+
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
30
|
+
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
31
|
+
const SQL_DIRECTIVE_STACK = 'CustomSQLStack';
|
32
|
+
const directiveDefinition = `
|
33
|
+
directive @sql(statement: String, reference: String) on FIELD_DEFINITION
|
34
|
+
`;
|
35
|
+
class SqlTransformer extends graphql_transformer_core_1.TransformerPluginBase {
|
36
|
+
constructor() {
|
37
|
+
super('amplify-sql-transformer', directiveDefinition);
|
38
|
+
this.sqlDirectiveFields = new Map();
|
39
|
+
this.field = (parent, definition, directive, ctx) => {
|
40
|
+
var _a, _b;
|
41
|
+
if (parent.name.value !== 'Query' && parent.name.value !== 'Mutation') {
|
42
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@sql directive can only be used on Query or Mutation types. Check type "${parent.name.value}" and field "${definition.name.value}".`);
|
43
|
+
}
|
44
|
+
const directiveWrapped = new graphql_transformer_core_1.DirectiveWrapper(directive);
|
45
|
+
if (!((_a = directive === null || directive === void 0 ? void 0 : directive.arguments) === null || _a === void 0 ? void 0 : _a.find((arg) => arg.name.value === 'statement')) &&
|
46
|
+
!((_b = directive === null || directive === void 0 ? void 0 : directive.arguments) === null || _b === void 0 ? void 0 : _b.find((arg) => arg.name.value === 'reference'))) {
|
47
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@sql directive must have either a 'statement' or 'reference' argument. Check type "${parent.name.value}" and field "${definition.name.value}".`);
|
48
|
+
}
|
49
|
+
const args = directiveWrapped.getArguments({
|
50
|
+
resolverTypeName: parent.name.value,
|
51
|
+
resolverFieldName: definition.name.value,
|
52
|
+
}, (0, graphql_transformer_core_1.generateGetArgumentsInput)(ctx.transformParameters));
|
53
|
+
let resolver = this.sqlDirectiveFields.get(definition);
|
54
|
+
if (resolver === undefined) {
|
55
|
+
resolver = [];
|
56
|
+
this.sqlDirectiveFields.set(definition, resolver);
|
57
|
+
}
|
58
|
+
resolver.push(args);
|
59
|
+
};
|
60
|
+
this.generateResolvers = (context) => {
|
61
|
+
if (this.sqlDirectiveFields.size === 0) {
|
62
|
+
return;
|
63
|
+
}
|
64
|
+
const stack = context.stackManager.createStack(SQL_DIRECTIVE_STACK);
|
65
|
+
const env = context.synthParameters.amplifyEnvironmentName;
|
66
|
+
stack.templateOptions.templateFormatVersion = '2010-09-09';
|
67
|
+
stack.templateOptions.description = 'An auto-generated nested stack for the @sql directive.';
|
68
|
+
new cdk.CfnCondition(stack, graphql_transformer_common_1.ResourceConstants.CONDITIONS.HasEnvironmentParameter, {
|
69
|
+
expression: cdk.Fn.conditionNot(cdk.Fn.conditionEquals(env, graphql_transformer_common_1.ResourceConstants.NONE)),
|
70
|
+
});
|
71
|
+
this.sqlDirectiveFields.forEach((resolverFns) => {
|
72
|
+
resolverFns.forEach((config) => {
|
73
|
+
const { RDSLambdaDataSourceLogicalID: dataSourceId } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
|
74
|
+
const dataSource = context.api.host.getDataSource(dataSourceId);
|
75
|
+
const statement = getStatement(config, context.customQueries);
|
76
|
+
const resolverResourceId = graphql_transformer_common_1.ResolverResourceIDs.ResolverResourceID(config.resolverTypeName, config.resolverFieldName);
|
77
|
+
const resolver = context.resolvers.generateQueryResolver(config.resolverTypeName, config.resolverFieldName, resolverResourceId, dataSource, graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, exports.generateSqlLambdaRequestTemplate)(statement, 'RAW_SQL', config.resolverFieldName), `${config.resolverTypeName}.${config.resolverFieldName}.req.vtl`), graphql_transformer_core_1.MappingTemplate.s3MappingTemplateFromString((0, exports.generateSqlLambdaResponseMappingTemplate)(), `${config.resolverTypeName}.${config.resolverFieldName}.res.vtl`));
|
78
|
+
resolver.setScope(context.stackManager.getScopeFor(resolverResourceId, SQL_DIRECTIVE_STACK));
|
79
|
+
context.resolvers.addResolver(config.resolverTypeName, config.resolverFieldName, resolver);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
};
|
83
|
+
}
|
84
|
+
}
|
85
|
+
exports.SqlTransformer = SqlTransformer;
|
86
|
+
const getStatement = (config, customQueries) => {
|
87
|
+
var _a;
|
88
|
+
if (config.reference && !customQueries.has(config.reference)) {
|
89
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@sql directive 'reference' argument must be a valid custom query name. Check type "${config.resolverTypeName}" and field "${config.resolverFieldName}". The custom query "${config.reference}" does not exist in "sql-statements" directory.`);
|
90
|
+
}
|
91
|
+
if (config.reference && config.statement) {
|
92
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@sql directive can have either 'statement' or 'reference' argument but not both. Check type "${config.resolverTypeName}" and field "${config.resolverFieldName}".`);
|
93
|
+
}
|
94
|
+
if (config.statement !== undefined && config.statement.trim().length === 0) {
|
95
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@sql directive 'statement' argument must not be empty. Check type "${config.resolverTypeName}" and field "${config.resolverFieldName}".`);
|
96
|
+
}
|
97
|
+
const statement = (_a = config.statement) !== null && _a !== void 0 ? _a : customQueries.get(config.reference);
|
98
|
+
return statement;
|
99
|
+
};
|
100
|
+
const generateSqlLambdaRequestTemplate = (statement, operation, operationName) => {
|
101
|
+
return (0, graphql_mapping_template_1.printBlock)('Invoke RDS Lambda data source')((0, graphql_mapping_template_1.compoundExpression)([
|
102
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput'), (0, graphql_mapping_template_1.obj)({})),
|
103
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.parameters'), (0, graphql_mapping_template_1.obj)({})),
|
104
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.statement'), (0, graphql_mapping_template_1.str)(statement)),
|
105
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.operation'), (0, graphql_mapping_template_1.str)(operation)),
|
106
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.operationName'), (0, graphql_mapping_template_1.str)(operationName)),
|
107
|
+
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('lambdaInput.parameters'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.defaultIfNull'), (0, graphql_mapping_template_1.ref)('context.arguments'), (0, graphql_mapping_template_1.obj)({}))),
|
108
|
+
(0, graphql_mapping_template_1.obj)({
|
109
|
+
version: (0, graphql_mapping_template_1.str)('2018-05-29'),
|
110
|
+
operation: (0, graphql_mapping_template_1.str)('Invoke'),
|
111
|
+
payload: (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.toJson'), (0, graphql_mapping_template_1.ref)('lambdaInput')),
|
112
|
+
}),
|
113
|
+
]));
|
114
|
+
};
|
115
|
+
exports.generateSqlLambdaRequestTemplate = generateSqlLambdaRequestTemplate;
|
116
|
+
const generateSqlLambdaResponseMappingTemplate = () => {
|
117
|
+
const statements = [];
|
118
|
+
statements.push((0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('ctx.error'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.error'), (0, graphql_mapping_template_1.ref)('ctx.error.message'), (0, graphql_mapping_template_1.ref)('ctx.error.type')), (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('ctx.result'))));
|
119
|
+
return (0, graphql_mapping_template_1.printBlock)('ResponseTemplate')((0, graphql_mapping_template_1.compoundExpression)(statements));
|
120
|
+
};
|
121
|
+
exports.generateSqlLambdaResponseMappingTemplate = generateSqlLambdaResponseMappingTemplate;
|
122
|
+
//# sourceMappingURL=graphql-sql-transformer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"graphql-sql-transformer.js","sourceRoot":"","sources":["../src/graphql-sql-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAM+C;AAE/C,iDAAmC;AACnC,uEAAsI;AACtI,2EAAoF;AAUpF,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAC7C,MA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AE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SqlTransformer = void 0;
|
4
|
+
var graphql_sql_transformer_1 = require("./graphql-sql-transformer");
|
5
|
+
Object.defineProperty(exports, "SqlTransformer", { enumerable: true, get: function () { return graphql_sql_transformer_1.SqlTransformer; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAAlD,yHAAA,cAAc,OAAA"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
{
|
2
|
+
"name": "@aws-amplify/graphql-sql-transformer",
|
3
|
+
"version": "0.1.0-rds-3.0",
|
4
|
+
"description": "Amplify GraphQL @sql transformer",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "https://github.com/aws-amplify/amplify-category-api.git",
|
8
|
+
"directory": "packages/amplify-graphql-sql-transformer"
|
9
|
+
},
|
10
|
+
"author": "Amazon Web Services",
|
11
|
+
"license": "Apache-2.0",
|
12
|
+
"main": "lib/index.js",
|
13
|
+
"types": "lib/index.d.ts",
|
14
|
+
"keywords": [
|
15
|
+
"graphql",
|
16
|
+
"cloudformation",
|
17
|
+
"aws",
|
18
|
+
"amplify"
|
19
|
+
],
|
20
|
+
"publishConfig": {
|
21
|
+
"access": "public"
|
22
|
+
},
|
23
|
+
"scripts": {
|
24
|
+
"build": "tsc",
|
25
|
+
"watch": "tsc -w",
|
26
|
+
"clean": "rimraf ./lib",
|
27
|
+
"test": "jest",
|
28
|
+
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
|
+
},
|
30
|
+
"dependencies": {
|
31
|
+
"@aws-amplify/graphql-model-transformer": "2.3.0-rds-3.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "2.3.0-rds-3.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-rds-3.0",
|
34
|
+
"graphql": "^15.5.0",
|
35
|
+
"graphql-mapping-template": "4.20.13-rds-3.0",
|
36
|
+
"graphql-transformer-common": "4.26.0-rds-3.0"
|
37
|
+
},
|
38
|
+
"devDependencies": {
|
39
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.3.0-rds-3.0"
|
40
|
+
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"aws-cdk-lib": "^2.80.0",
|
43
|
+
"constructs": "^10.0.5"
|
44
|
+
},
|
45
|
+
"jest": {
|
46
|
+
"transform": {
|
47
|
+
"^.+\\.(ts|tsx)?$": "ts-jest"
|
48
|
+
},
|
49
|
+
"testRegex": "(src/__tests__/.*.test.ts)$",
|
50
|
+
"moduleFileExtensions": [
|
51
|
+
"ts",
|
52
|
+
"tsx",
|
53
|
+
"js",
|
54
|
+
"jsx",
|
55
|
+
"json",
|
56
|
+
"node"
|
57
|
+
],
|
58
|
+
"collectCoverage": true,
|
59
|
+
"coverageThreshold": {
|
60
|
+
"global": {
|
61
|
+
"branches": 70,
|
62
|
+
"functions": 90,
|
63
|
+
"lines": 90
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"modulePathIgnorePatterns": [
|
67
|
+
"overrides"
|
68
|
+
]
|
69
|
+
},
|
70
|
+
"gitHead": "c1efd4e687969d2cb64361ee656b7ce99a5eebb8"
|
71
|
+
}
|
@@ -20,7 +20,7 @@ import { TransformerPluginProvider } from '@aws-amplify/graphql-transformer-inte
|
|
20
20
|
import { TransformParameterProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
21
21
|
import type { TransformParameters } from '@aws-amplify/graphql-transformer-interfaces/src';
|
22
22
|
import { UserDefinedSlot } from '@aws-amplify/graphql-transformer-core';
|
23
|
-
import {
|
23
|
+
import { VpcSubnetConfig } from '@aws-amplify/graphql-transformer-interfaces';
|
24
24
|
|
25
25
|
// @public (undocumented)
|
26
26
|
export const constructTransform: (config: TransformConfig) => GraphQLTransform;
|
@@ -35,9 +35,10 @@ export const executeTransform: (config: ExecuteTransformConfig) => void;
|
|
35
35
|
export type ExecuteTransformConfig = TransformConfig & {
|
36
36
|
schema: string;
|
37
37
|
modelToDatasourceMap?: Map<string, DatasourceType>;
|
38
|
+
customQueries?: Map<string, string>;
|
38
39
|
datasourceSecretParameterLocations?: Map<string, RDSConnectionSecrets>;
|
39
40
|
printTransformerLog?: (log: TransformerLog) => void;
|
40
|
-
sqlLambdaVpcConfig?:
|
41
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
41
42
|
rdsLayerMapping?: RDSLayerMapping;
|
42
43
|
scope: Construct;
|
43
44
|
nestedStackProvider: NestedStackProvider;
|
@@ -54,7 +55,7 @@ export type TransformConfig = {
|
|
54
55
|
userDefinedSlots?: Record<string, UserDefinedSlot[]>;
|
55
56
|
stackMapping?: Record<string, string>;
|
56
57
|
transformParameters: TransformParameters;
|
57
|
-
sqlLambdaVpcConfig?:
|
58
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
58
59
|
rdsLayerMapping?: RDSLayerMapping;
|
59
60
|
};
|
60
61
|
|
@@ -3,6 +3,18 @@
|
|
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
|
+
# [1.3.0-rds-3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@1.2.1...@aws-amplify/graphql-transformer@1.3.0-rds-3.0) (2023-10-03)
|
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
|
+
- add refersTo directive transformer for model renaming ([#1830](https://github.com/aws-amplify/amplify-category-api/issues/1830)) ([afbd6f2](https://github.com/aws-amplify/amplify-category-api/commit/afbd6f282bc411313ce098a53a87bb8c6481aa48))
|
15
|
+
- **api:** add vpc endpoints for ssm ([5a4ffc4](https://github.com/aws-amplify/amplify-category-api/commit/5a4ffc4c1889536c8e1fdd1f31fe28ca4326100f))
|
16
|
+
- **api:** custom queries support using sql directive ([5214037](https://github.com/aws-amplify/amplify-category-api/commit/52140374ca974956c5d5eac09fec91a51cfc9027))
|
17
|
+
|
6
18
|
## [1.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@1.2.0...@aws-amplify/graphql-transformer@1.2.1) (2023-10-02)
|
7
19
|
|
8
20
|
**Note:** Version bump only for package @aws-amplify/graphql-transformer
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AppSyncAuthConfiguration, TransformerPluginProvider, TransformerLog,
|
1
|
+
import { AppSyncAuthConfiguration, TransformerPluginProvider, TransformerLog, VpcSubnetConfig, RDSLayerMapping, NestedStackProvider, AssetProvider, SynthParameters, TransformParameterProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
2
|
import type { TransformParameters } from '@aws-amplify/graphql-transformer-interfaces/src';
|
3
3
|
import { DatasourceType, GraphQLTransform, RDSConnectionSecrets, ResolverConfig, UserDefinedSlot } from '@aws-amplify/graphql-transformer-core';
|
4
4
|
import { Construct } from 'constructs';
|
@@ -18,7 +18,7 @@ export type TransformConfig = {
|
|
18
18
|
userDefinedSlots?: Record<string, UserDefinedSlot[]>;
|
19
19
|
stackMapping?: Record<string, string>;
|
20
20
|
transformParameters: TransformParameters;
|
21
|
-
sqlLambdaVpcConfig?:
|
21
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
22
22
|
rdsLayerMapping?: RDSLayerMapping;
|
23
23
|
};
|
24
24
|
export declare const constructTransformerChain: (options?: TransformerFactoryArgs) => TransformerPluginProvider[];
|
@@ -26,9 +26,10 @@ export declare const constructTransform: (config: TransformConfig) => GraphQLTra
|
|
26
26
|
export type ExecuteTransformConfig = TransformConfig & {
|
27
27
|
schema: string;
|
28
28
|
modelToDatasourceMap?: Map<string, DatasourceType>;
|
29
|
+
customQueries?: Map<string, string>;
|
29
30
|
datasourceSecretParameterLocations?: Map<string, RDSConnectionSecrets>;
|
30
31
|
printTransformerLog?: (log: TransformerLog) => void;
|
31
|
-
sqlLambdaVpcConfig?:
|
32
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
32
33
|
rdsLayerMapping?: RDSLayerMapping;
|
33
34
|
scope: Construct;
|
34
35
|
nestedStackProvider: NestedStackProvider;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"graphql-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,cAAc,EAEd,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,eAAe,EAChB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CA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AM,gBAAgB,WAAY,sBAAsB,KAAG,IAoCjE,CAAC"}
|
@@ -8,6 +8,7 @@ const graphql_http_transformer_1 = require("@aws-amplify/graphql-http-transforme
|
|
8
8
|
const graphql_index_transformer_1 = require("@aws-amplify/graphql-index-transformer");
|
9
9
|
const graphql_maps_to_transformer_1 = require("@aws-amplify/graphql-maps-to-transformer");
|
10
10
|
const graphql_model_transformer_1 = require("@aws-amplify/graphql-model-transformer");
|
11
|
+
const graphql_sql_transformer_1 = require("@aws-amplify/graphql-sql-transformer");
|
11
12
|
const graphql_predictions_transformer_1 = require("@aws-amplify/graphql-predictions-transformer");
|
12
13
|
const graphql_relational_transformer_1 = require("@aws-amplify/graphql-relational-transformer");
|
13
14
|
const graphql_searchable_transformer_1 = require("@aws-amplify/graphql-searchable-transformer");
|
@@ -36,6 +37,8 @@ const constructTransformerChain = (options) => {
|
|
36
37
|
new graphql_default_value_transformer_1.DefaultValueTransformer(),
|
37
38
|
authTransformer,
|
38
39
|
new graphql_maps_to_transformer_1.MapsToTransformer(),
|
40
|
+
new graphql_sql_transformer_1.SqlTransformer(),
|
41
|
+
new graphql_maps_to_transformer_1.RefersToTransformer(),
|
39
42
|
new graphql_searchable_transformer_1.SearchableModelTransformer(),
|
40
43
|
...((_b = options === null || options === void 0 ? void 0 : options.customTransformers) !== null && _b !== void 0 ? _b : []),
|
41
44
|
];
|
@@ -76,7 +79,7 @@ const defaultPrintTransformerLog = (log) => {
|
|
76
79
|
};
|
77
80
|
exports.defaultPrintTransformerLog = defaultPrintTransformerLog;
|
78
81
|
const executeTransform = (config) => {
|
79
|
-
const { schema, modelToDatasourceMap, datasourceSecretParameterLocations, printTransformerLog, rdsLayerMapping, scope, nestedStackProvider, assetProvider, synthParameters, parameterProvider, } = config;
|
82
|
+
const { schema, modelToDatasourceMap, datasourceSecretParameterLocations, printTransformerLog, rdsLayerMapping, scope, nestedStackProvider, assetProvider, synthParameters, customQueries, parameterProvider, } = config;
|
80
83
|
const printLog = printTransformerLog !== null && printTransformerLog !== void 0 ? printTransformerLog : exports.defaultPrintTransformerLog;
|
81
84
|
const transform = (0, exports.constructTransform)(config);
|
82
85
|
try {
|
@@ -91,6 +94,7 @@ const executeTransform = (config) => {
|
|
91
94
|
modelToDatasourceMap,
|
92
95
|
datasourceSecretParameterLocations,
|
93
96
|
rdsLayerMapping,
|
97
|
+
customQueries,
|
94
98
|
},
|
95
99
|
});
|
96
100
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-transformer.js","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AACxE,sGAAyF;AACzF,4FAAgF;AAChF,oFAAwE;AACxE,sFAAiG;AACjG,
|
1
|
+
{"version":3,"file":"graphql-transformer.js","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AACxE,sGAAyF;AACzF,4FAAgF;AAChF,oFAAwE;AACxE,sFAAiG;AACjG,0FAAkG;AAClG,sFAA0E;AAC1E,kFAAsE;AACtE,kGAAsF;AACtF,gGAKqD;AACrD,gGAAyF;AACzF,gGAWqD;AAErD,oFAM+C;AA+BxC,MAAM,yBAAyB,GAAG,CAAC,OAAgC,EAA+B,EAAE;;IACzG,MAAM,gBAAgB,GAAG,IAAI,4CAAgB,EAAE,CAAC;IAChD,MAAM,eAAe,GAAG,IAAI,0CAAe,CAAC;QAC1C,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,EAAE;QACrC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;KACxC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,IAAI,4CAAgB,EAAE,CAAC;IAChD,MAAM,iBAAiB,GAAG,IAAI,kDAAiB,EAAE,CAAC;IAElD,OAAO;QACL,gBAAgB;QAChB,IAAI,kDAAmB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eA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aws-amplify/graphql-transformer",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0-rds-3.0",
|
4
4
|
"description": "Amplify GraphQL Transformer Root Package",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,18 +28,19 @@
|
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-auth-transformer": "3.
|
32
|
-
"@aws-amplify/graphql-default-value-transformer": "2.1.
|
33
|
-
"@aws-amplify/graphql-function-transformer": "2.1.
|
34
|
-
"@aws-amplify/graphql-http-transformer": "2.1.
|
35
|
-
"@aws-amplify/graphql-index-transformer": "2.
|
36
|
-
"@aws-amplify/graphql-maps-to-transformer": "3.
|
37
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
38
|
-
"@aws-amplify/graphql-predictions-transformer": "2.1.
|
39
|
-
"@aws-amplify/graphql-relational-transformer": "2.
|
40
|
-
"@aws-amplify/graphql-searchable-transformer": "2.
|
41
|
-
"@aws-amplify/graphql-transformer
|
42
|
-
"@aws-amplify/graphql-transformer-
|
31
|
+
"@aws-amplify/graphql-auth-transformer": "3.2.0-rds-3.0",
|
32
|
+
"@aws-amplify/graphql-default-value-transformer": "2.1.6-rds-3.0",
|
33
|
+
"@aws-amplify/graphql-function-transformer": "2.1.5-rds-3.0",
|
34
|
+
"@aws-amplify/graphql-http-transformer": "2.1.5-rds-3.0",
|
35
|
+
"@aws-amplify/graphql-index-transformer": "2.2.0-rds-3.0",
|
36
|
+
"@aws-amplify/graphql-maps-to-transformer": "3.3.0-rds-3.0",
|
37
|
+
"@aws-amplify/graphql-model-transformer": "2.3.0-rds-3.0",
|
38
|
+
"@aws-amplify/graphql-predictions-transformer": "2.1.5-rds-3.0",
|
39
|
+
"@aws-amplify/graphql-relational-transformer": "2.2.0-rds-3.0",
|
40
|
+
"@aws-amplify/graphql-searchable-transformer": "2.3.0-rds-3.0",
|
41
|
+
"@aws-amplify/graphql-sql-transformer": "0.1.0-rds-3.0",
|
42
|
+
"@aws-amplify/graphql-transformer-core": "2.3.0-rds-3.0",
|
43
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.3.0-rds-3.0"
|
43
44
|
},
|
44
45
|
"devDependencies": {
|
45
46
|
"@types/node": "^12.12.6",
|
@@ -74,5 +75,5 @@
|
|
74
75
|
}
|
75
76
|
}
|
76
77
|
},
|
77
|
-
"gitHead": "
|
78
|
+
"gitHead": "c1efd4e687969d2cb64361ee656b7ce99a5eebb8"
|
78
79
|
}
|
@@ -3,8 +3,9 @@ import { DefaultValueTransformer } from '@aws-amplify/graphql-default-value-tran
|
|
3
3
|
import { FunctionTransformer } from '@aws-amplify/graphql-function-transformer';
|
4
4
|
import { HttpTransformer } from '@aws-amplify/graphql-http-transformer';
|
5
5
|
import { IndexTransformer, PrimaryKeyTransformer } from '@aws-amplify/graphql-index-transformer';
|
6
|
-
import { MapsToTransformer } from '@aws-amplify/graphql-maps-to-transformer';
|
6
|
+
import { MapsToTransformer, RefersToTransformer } from '@aws-amplify/graphql-maps-to-transformer';
|
7
7
|
import { ModelTransformer } from '@aws-amplify/graphql-model-transformer';
|
8
|
+
import { SqlTransformer } from '@aws-amplify/graphql-sql-transformer';
|
8
9
|
import { PredictionsTransformer } from '@aws-amplify/graphql-predictions-transformer';
|
9
10
|
import {
|
10
11
|
BelongsToTransformer,
|
@@ -18,7 +19,7 @@ import {
|
|
18
19
|
TransformerPluginProvider,
|
19
20
|
TransformerLog,
|
20
21
|
TransformerLogLevel,
|
21
|
-
|
22
|
+
VpcSubnetConfig,
|
22
23
|
RDSLayerMapping,
|
23
24
|
NestedStackProvider,
|
24
25
|
AssetProvider,
|
@@ -59,7 +60,7 @@ export type TransformConfig = {
|
|
59
60
|
userDefinedSlots?: Record<string, UserDefinedSlot[]>;
|
60
61
|
stackMapping?: Record<string, string>;
|
61
62
|
transformParameters: TransformParameters;
|
62
|
-
sqlLambdaVpcConfig?:
|
63
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
63
64
|
rdsLayerMapping?: RDSLayerMapping;
|
64
65
|
};
|
65
66
|
|
@@ -86,6 +87,8 @@ export const constructTransformerChain = (options?: TransformerFactoryArgs): Tra
|
|
86
87
|
new DefaultValueTransformer(),
|
87
88
|
authTransformer,
|
88
89
|
new MapsToTransformer(),
|
90
|
+
new SqlTransformer(),
|
91
|
+
new RefersToTransformer(),
|
89
92
|
new SearchableModelTransformer(),
|
90
93
|
...(options?.customTransformers ?? []),
|
91
94
|
];
|
@@ -125,9 +128,10 @@ export const constructTransform = (config: TransformConfig): GraphQLTransform =>
|
|
125
128
|
export type ExecuteTransformConfig = TransformConfig & {
|
126
129
|
schema: string;
|
127
130
|
modelToDatasourceMap?: Map<string, DatasourceType>;
|
131
|
+
customQueries?: Map<string, string>;
|
128
132
|
datasourceSecretParameterLocations?: Map<string, RDSConnectionSecrets>;
|
129
133
|
printTransformerLog?: (log: TransformerLog) => void;
|
130
|
-
sqlLambdaVpcConfig?:
|
134
|
+
sqlLambdaVpcConfig?: VpcSubnetConfig;
|
131
135
|
rdsLayerMapping?: RDSLayerMapping;
|
132
136
|
scope: Construct;
|
133
137
|
nestedStackProvider: NestedStackProvider;
|
@@ -175,6 +179,7 @@ export const executeTransform = (config: ExecuteTransformConfig): void => {
|
|
175
179
|
nestedStackProvider,
|
176
180
|
assetProvider,
|
177
181
|
synthParameters,
|
182
|
+
customQueries,
|
178
183
|
parameterProvider,
|
179
184
|
} = config;
|
180
185
|
|
@@ -193,6 +198,7 @@ export const executeTransform = (config: ExecuteTransformConfig): void => {
|
|
193
198
|
modelToDatasourceMap,
|
194
199
|
datasourceSecretParameterLocations,
|
195
200
|
rdsLayerMapping,
|
201
|
+
customQueries,
|
196
202
|
},
|
197
203
|
});
|
198
204
|
} finally {
|
@@ -82,7 +82,7 @@ import { TypeNode } from 'graphql';
|
|
82
82
|
import { TypeSystemDefinitionNode } from 'graphql';
|
83
83
|
import { UnionTypeDefinitionNode } from 'graphql';
|
84
84
|
import { UnionTypeExtensionNode } from 'graphql';
|
85
|
-
import {
|
85
|
+
import type { VpcSubnetConfig } from '@aws-amplify/graphql-transformer-interfaces';
|
86
86
|
|
87
87
|
// @public (undocumented)
|
88
88
|
export const APICategory = "api";
|
@@ -185,6 +185,9 @@ export type GetArgumentsOptions = {
|
|
185
185
|
deepMergeArguments?: boolean;
|
186
186
|
};
|
187
187
|
|
188
|
+
// @public (undocumented)
|
189
|
+
export const getDatasourceType: (type: TypeNode, ctx: TransformerContextProvider) => DBType;
|
190
|
+
|
188
191
|
// Warning: (ae-forgotten-export) The symbol "Operation" needs to be exported by the entry point index.d.ts
|
189
192
|
//
|
190
193
|
// @public (undocumented)
|
@@ -196,6 +199,9 @@ export const getKeySchema: (table: any, indexName?: string) => any;
|
|
196
199
|
// @public (undocumented)
|
197
200
|
export const getParameterStoreSecretPath: (secret: string, secretsKey: string, apiName: string, environmentName: string, appId: string) => string;
|
198
201
|
|
202
|
+
// @public (undocumented)
|
203
|
+
export const getPrimaryKeyFields: (type: ObjectTypeDefinitionNode) => string[];
|
204
|
+
|
199
205
|
// @public (undocumented)
|
200
206
|
export const getResourceName: (scope: Construct) => string | undefined;
|
201
207
|
|
@@ -237,7 +243,7 @@ export interface GraphQLTransformOptions {
|
|
237
243
|
// (undocumented)
|
238
244
|
readonly resolverConfig?: ResolverConfig;
|
239
245
|
// (undocumented)
|
240
|
-
readonly sqlLambdaVpcConfig?:
|
246
|
+
readonly sqlLambdaVpcConfig?: VpcSubnetConfig;
|
241
247
|
// Warning: (ae-forgotten-export) The symbol "StackMapping" needs to be exported by the entry point index.d.ts
|
242
248
|
//
|
243
249
|
// (undocumented)
|
@@ -340,6 +346,9 @@ export class InvalidTransformerError extends Error {
|
|
340
346
|
// @public (undocumented)
|
341
347
|
function isLambdaSyncConfig(syncConfig: SyncConfig): syncConfig is SyncConfigLambda;
|
342
348
|
|
349
|
+
// @public (undocumented)
|
350
|
+
export const isRDSModel: (ctx: TransformerContextProvider, typename: string) => boolean;
|
351
|
+
|
343
352
|
// @public (undocumented)
|
344
353
|
export class MappingTemplate {
|
345
354
|
// Warning: (ae-forgotten-export) The symbol "InlineTemplate" needs to be exported by the entry point index.d.ts
|
@@ -3,6 +3,20 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.3.0-rds-3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.2.1...@aws-amplify/graphql-transformer-core@2.3.0-rds-3.0) (2023-10-03)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **api:** make id optional if not a string type ([48ecac0](https://github.com/aws-amplify/amplify-category-api/commit/48ecac0989097106a531ebb898abbda7a0f1745c))
|
11
|
+
|
12
|
+
### Features
|
13
|
+
|
14
|
+
- add refersTo directive transformer for model renaming ([#1830](https://github.com/aws-amplify/amplify-category-api/issues/1830)) ([afbd6f2](https://github.com/aws-amplify/amplify-category-api/commit/afbd6f282bc411313ce098a53a87bb8c6481aa48))
|
15
|
+
- **api:** add vpc endpoints for ssm ([5a4ffc4](https://github.com/aws-amplify/amplify-category-api/commit/5a4ffc4c1889536c8e1fdd1f31fe28ca4326100f))
|
16
|
+
- **api:** custom queries support using sql directive ([5214037](https://github.com/aws-amplify/amplify-category-api/commit/52140374ca974956c5d5eac09fec91a51cfc9027))
|
17
|
+
- **api:** rds has many support ([42b4c9f](https://github.com/aws-amplify/amplify-category-api/commit/42b4c9f770dec01f02b397ad2a231232395d577d))
|
18
|
+
- **api:** refactor auth transformer to use vtl generator factory pattern ([e965d24](https://github.com/aws-amplify/amplify-category-api/commit/e965d24731fc1e2300ef0e16b61af6b39afb0cad))
|
19
|
+
|
6
20
|
## [2.2.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.2.0...@aws-amplify/graphql-transformer-core@2.2.1) (2023-10-02)
|
7
21
|
|
8
22
|
### Bug Fixes
|
@@ -2,7 +2,7 @@ export { GraphQLTransform, GraphQLTransformOptions, SyncUtils } from './transfor
|
|
2
2
|
export { UserDefinedSlot, UserDefinedResolver } from './transformation/types';
|
3
3
|
export { validateModelSchema } from './transformation/validation';
|
4
4
|
export { ConflictDetectionType, ConflictHandlerType, ResolverConfig, SyncConfig, SyncConfigOptimistic, SyncConfigServer, SyncConfigLambda, TransformConfig, DatasourceType, DBType, } from './config/index';
|
5
|
-
export { GetArgumentsOptions, generateGetArgumentsInput, getTable, getKeySchema, getSortKeyFieldNames, getParameterStoreSecretPath, collectDirectives, collectDirectivesByTypeNames, DirectiveWrapper, APICategory, setResourceName, getResourceName, } from './utils';
|
5
|
+
export { GetArgumentsOptions, generateGetArgumentsInput, getTable, getKeySchema, getSortKeyFieldNames, getParameterStoreSecretPath, collectDirectives, collectDirectivesByTypeNames, DirectiveWrapper, APICategory, getPrimaryKeyFields, getDatasourceType, setResourceName, getResourceName, isRDSModel, } from './utils';
|
6
6
|
export type { SetResourceNameProps } from './utils';
|
7
7
|
export * from './utils/operation-names';
|
8
8
|
export * from './errors';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,2BAA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,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,sCAAsC,CAAC"}
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.RDS_SCHEMA_FILE_NAME = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DB_TYPE = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.getResourceName = exports.setResourceName = exports.APICategory = exports.DirectiveWrapper = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.getParameterStoreSecretPath = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.generateGetArgumentsInput = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = void 0;
|
17
|
+
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.RDS_SCHEMA_FILE_NAME = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DB_TYPE = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.isRDSModel = exports.getResourceName = exports.setResourceName = exports.getDatasourceType = exports.getPrimaryKeyFields = exports.APICategory = exports.DirectiveWrapper = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.getParameterStoreSecretPath = exports.getSortKeyFieldNames = exports.getKeySchema = exports.getTable = exports.generateGetArgumentsInput = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = void 0;
|
18
18
|
const graphql_1 = require("graphql");
|
19
19
|
const validation_1 = require("./transformation/validation");
|
20
20
|
var transformation_1 = require("./transformation");
|
@@ -34,8 +34,11 @@ Object.defineProperty(exports, "collectDirectives", { enumerable: true, get: fun
|
|
34
34
|
Object.defineProperty(exports, "collectDirectivesByTypeNames", { enumerable: true, get: function () { return utils_1.collectDirectivesByTypeNames; } });
|
35
35
|
Object.defineProperty(exports, "DirectiveWrapper", { enumerable: true, get: function () { return utils_1.DirectiveWrapper; } });
|
36
36
|
Object.defineProperty(exports, "APICategory", { enumerable: true, get: function () { return utils_1.APICategory; } });
|
37
|
+
Object.defineProperty(exports, "getPrimaryKeyFields", { enumerable: true, get: function () { return utils_1.getPrimaryKeyFields; } });
|
38
|
+
Object.defineProperty(exports, "getDatasourceType", { enumerable: true, get: function () { return utils_1.getDatasourceType; } });
|
37
39
|
Object.defineProperty(exports, "setResourceName", { enumerable: true, get: function () { return utils_1.setResourceName; } });
|
38
40
|
Object.defineProperty(exports, "getResourceName", { enumerable: true, get: function () { return utils_1.getResourceName; } });
|
41
|
+
Object.defineProperty(exports, "isRDSModel", { enumerable: true, get: function () { return utils_1.isRDSModel; } });
|
39
42
|
__exportStar(require("./utils/operation-names"), exports);
|
40
43
|
__exportStar(require("./errors"), exports);
|
41
44
|
var transformer_plugin_base_1 = require("./transformation/transformer-plugin-base");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAgC;AAChC,4DAAwE;AAExE,mDAAwF;AAA/E,kHAAA,gBAAgB,OAAA;AAA2B,2GAAA,SAAS,OAAA;AAE7D,0DAAkE;AA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