@aws-amplify/graphql-api-construct 1.7.0-iam-auth.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +330 -331
- package/API.md +16 -17
- package/CHANGELOG.md +2 -2
- package/README.md +75 -17
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +2 -3
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/internal/authorization-modes.d.ts +1 -2
- package/lib/internal/authorization-modes.js +7 -37
- package/lib/internal/data-source-config.js +37 -4
- package/lib/model-datasource-strategy-types.d.ts +25 -1
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.d.ts +13 -1
- package/lib/sql-model-datasource-strategy.js +26 -4
- package/lib/types.d.ts +5 -51
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +1 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -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 +4 -3
- 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/definitions.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js +2 -38
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js +1 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js +7 -14
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts +1 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js +3 -14
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +2 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +9 -29
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js +5 -5
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/mutation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js +3 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/query.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/subscription.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -13
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/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 +2 -5
- 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-directives/API.md +158 -0
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +8 -0
- package/node_modules/@aws-amplify/graphql-directives/Readme.md +19 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts +8 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js +18 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js +49 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts +8 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js +16 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js +28 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +21 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +54 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js +16 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js +43 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js +20 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js +17 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js +85 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js +21 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js +28 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts +10 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js +22 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js +14 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js +43 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js +20 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js +17 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js +17 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js +60 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/package.json +66 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +2 -4
- package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js +2 -15
- package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js +5 -8
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +4 -7
- 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/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- 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 +6 -9
- 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-refers-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +9 -12
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/API.md +2 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js +1 -9
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +19 -73
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js +7 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js +7 -15
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +5 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +71 -26
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +3 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +21 -7
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js +2 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js +1 -10
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js +34 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +27 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +16 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts +11 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js +3 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js.map +1 -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 +15 -49
- 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 +18 -45
- 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 +13 -35
- 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 +13 -17
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js +32 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +27 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +16 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js +31 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +27 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +16 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +2 -6
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +2 -4
- package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -16
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +1 -1
- 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 +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js +11 -12
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +8 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.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 +27 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +12 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +22 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +76 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +0 -4
- package/node_modules/graphql-mapping-template/package.json +2 -3
- package/node_modules/graphql-transformer-common/API.md +13 -0
- package/node_modules/graphql-transformer-common/CHANGELOG.md +4 -2
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +13 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +13 -0
- package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +3 -3
- package/package.json +21 -19
- package/src/amplify-graphql-api.ts +0 -2
- package/src/index.ts +0 -1
- package/src/internal/authorization-modes.ts +8 -47
- package/src/internal/data-source-config.ts +42 -9
- package/src/model-datasource-strategy-types.ts +33 -1
- package/src/sql-model-datasource-strategy.ts +32 -1
- package/src/types.ts +5 -56
- /package/node_modules/{graphql-mapping-template → @aws-amplify/graphql-directives}/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.4.0",
|
4
4
|
"description": "Amplify GraphQL Transformer Root Package",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,19 +28,19 @@
|
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-auth-transformer": "3.4.2
|
32
|
-
"@aws-amplify/graphql-default-value-transformer": "2.3.2
|
33
|
-
"@aws-amplify/graphql-function-transformer": "2.1.19
|
34
|
-
"@aws-amplify/graphql-http-transformer": "2.1.19
|
35
|
-
"@aws-amplify/graphql-index-transformer": "2.3.8
|
36
|
-
"@aws-amplify/graphql-maps-to-transformer": "3.4.9
|
37
|
-
"@aws-amplify/graphql-model-transformer": "2.
|
38
|
-
"@aws-amplify/graphql-predictions-transformer": "2.1.19
|
39
|
-
"@aws-amplify/graphql-relational-transformer": "2.4.2
|
40
|
-
"@aws-amplify/graphql-searchable-transformer": "2.6.2
|
41
|
-
"@aws-amplify/graphql-sql-transformer": "0.2.8
|
42
|
-
"@aws-amplify/graphql-transformer-core": "2.5.1
|
43
|
-
"@aws-amplify/graphql-transformer-interfaces": "3.
|
31
|
+
"@aws-amplify/graphql-auth-transformer": "3.4.2",
|
32
|
+
"@aws-amplify/graphql-default-value-transformer": "2.3.2",
|
33
|
+
"@aws-amplify/graphql-function-transformer": "2.1.19",
|
34
|
+
"@aws-amplify/graphql-http-transformer": "2.1.19",
|
35
|
+
"@aws-amplify/graphql-index-transformer": "2.3.8",
|
36
|
+
"@aws-amplify/graphql-maps-to-transformer": "3.4.9",
|
37
|
+
"@aws-amplify/graphql-model-transformer": "2.7.0",
|
38
|
+
"@aws-amplify/graphql-predictions-transformer": "2.1.19",
|
39
|
+
"@aws-amplify/graphql-relational-transformer": "2.4.2",
|
40
|
+
"@aws-amplify/graphql-searchable-transformer": "2.6.2",
|
41
|
+
"@aws-amplify/graphql-sql-transformer": "0.2.8",
|
42
|
+
"@aws-amplify/graphql-transformer-core": "2.5.1",
|
43
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.5.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@types/node": "^12.12.6",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"coverageThreshold": {
|
72
72
|
"global": {
|
73
73
|
"branches": 59,
|
74
|
-
"functions":
|
74
|
+
"functions": 54,
|
75
75
|
"lines": 74
|
76
76
|
}
|
77
77
|
},
|
@@ -87,5 +87,5 @@
|
|
87
87
|
"/__tests__/"
|
88
88
|
]
|
89
89
|
},
|
90
|
-
"gitHead": "
|
90
|
+
"gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1"
|
91
91
|
}
|
@@ -61,6 +61,7 @@ export const constructTransformerChain = (options?: TransformerFactoryArgs): Tra
|
|
61
61
|
const indexTransformer = new IndexTransformer();
|
62
62
|
const hasOneTransformer = new HasOneTransformer();
|
63
63
|
|
64
|
+
// The default list of transformers should match DefaultDirectives in packages/amplify-graphql-directives/src/index.ts
|
64
65
|
return [
|
65
66
|
modelTransformer,
|
66
67
|
new FunctionTransformer(options?.functionNameMap),
|
@@ -249,6 +249,9 @@ export const getResourceNamesForStrategyName: (strategyName: string) => SQLLambd
|
|
249
249
|
// @public (undocumented)
|
250
250
|
export const getSortKeyFieldNames: (type: ObjectTypeDefinitionNode) => string[];
|
251
251
|
|
252
|
+
// @public (undocumented)
|
253
|
+
export const getStrategyDbTypeFromModel: (ctx: DataSourceStrategiesProvider, typename: string) => ModelDataSourceStrategyDbType;
|
254
|
+
|
252
255
|
// @public (undocumented)
|
253
256
|
export const getStrategyDbTypeFromTypeNode: (type: TypeNode, ctx: TransformerContextProvider) => ModelDataSourceStrategyDbType;
|
254
257
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
## [2.5.1
|
6
|
+
## [2.5.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.5.0...@aws-amplify/graphql-transformer-core@2.5.1) (2024-03-28)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/graphql-transformer-core
|
9
9
|
|
@@ -2,7 +2,7 @@ export { constructDataSourceStrategies, constructSqlDirectiveDataSourceStrategie
|
|
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, } from './config/index';
|
5
|
-
export { APICategory, collectDirectives, collectDirectivesByTypeNames, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getModelDataSourceNameForTypeName, getDefaultStrategyNameForDbType, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceStrategy, getParameterStoreSecretPath, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromTypeNode, getTable, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, getFilterInputName, getConditionInputName, getSubscriptionFilterInputName, getConnectionName, } from './utils';
|
5
|
+
export { APICategory, collectDirectives, collectDirectivesByTypeNames, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getModelDataSourceNameForTypeName, getDefaultStrategyNameForDbType, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceStrategy, getParameterStoreSecretPath, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromTypeNode, getTable, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, getFilterInputName, getConditionInputName, getSubscriptionFilterInputName, getConnectionName, getStrategyDbTypeFromModel, } 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,EACL,6BAA6B,EAC7B,yCAAyC,EACzC,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,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,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,iCAAiC,EACjC,+BAA+B,EAC/B,oCAAoC,EACpC,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,6BAA6B,EAC7B,QAAQ,EACR,wCAAwC,EACxC,oBAAoB,EACpB,wCAAwC,EACxC,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,0BAA0B,EAC1B,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,yCAAyC,EACzC,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,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,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,iCAAiC,EACjC,+BAA+B,EAC/B,oCAAoC,EACpC,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,6BAA6B,EAC7B,QAAQ,EACR,wCAAwC,EACxC,oBAAoB,EACpB,wCAAwC,EACxC,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,0BAA0B,EAC1B,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACL,uCAAuC,EACvC,WAAW,EACX,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AAIjB,eAAO,MAAM,gCAAgC,QAAO,MAEnD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,sCAAsC,CAAC"}
|
@@ -14,8 +14,8 @@ 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.
|
18
|
-
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = void 0;
|
17
|
+
exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.getStrategyDbTypeFromModel = exports.getConnectionName = exports.getSubscriptionFilterInputName = exports.getConditionInputName = exports.getFilterInputName = exports.setResourceName = exports.normalizeDbType = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = exports.isQueryNode = exports.isObjectTypeDefinitionNode = exports.isMutationNode = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isBuiltInGraphqlNode = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getTable = exports.getStrategyDbTypeFromTypeNode = exports.getSortKeyFieldNames = exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getPrimaryKeyFields = exports.getParameterStoreSecretPath = exports.getModelDataSourceStrategy = exports.getKeySchema = exports.getImportedRDSTypeFromStrategyDbType = exports.getDefaultStrategyNameForDbType = exports.getModelDataSourceNameForTypeName = exports.generateGetArgumentsInput = exports.fieldsWithSqlDirective = exports.DirectiveWrapper = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.APICategory = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = exports.getModelTypeNames = exports.constructSqlDirectiveDataSourceStrategies = exports.constructDataSourceStrategies = void 0;
|
18
|
+
exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = exports.StackManager = void 0;
|
19
19
|
const graphql_1 = require("graphql");
|
20
20
|
const validation_1 = require("./transformation/validation");
|
21
21
|
var transformation_1 = require("./transformation");
|
@@ -66,6 +66,7 @@ Object.defineProperty(exports, "getFilterInputName", { enumerable: true, get: fu
|
|
66
66
|
Object.defineProperty(exports, "getConditionInputName", { enumerable: true, get: function () { return utils_1.getConditionInputName; } });
|
67
67
|
Object.defineProperty(exports, "getSubscriptionFilterInputName", { enumerable: true, get: function () { return utils_1.getSubscriptionFilterInputName; } });
|
68
68
|
Object.defineProperty(exports, "getConnectionName", { enumerable: true, get: function () { return utils_1.getConnectionName; } });
|
69
|
+
Object.defineProperty(exports, "getStrategyDbTypeFromModel", { enumerable: true, get: function () { return utils_1.getStrategyDbTypeFromModel; } });
|
69
70
|
__exportStar(require("./utils/operation-names"), exports);
|
70
71
|
__exportStar(require("./errors"), exports);
|
71
72
|
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,mDAO0B;AANxB,+HAAA,6BAA6B,OAAA;AAC7B,2IAAA,yCAAyC,OAAA;AACzC,mHAAA,iBAAiB,OAAA;AACjB,kHAAA,gBAAgB,OAAA;AAEhB,2GAAA,SAAS,OAAA;AAGX,0DAAkE;AAAzD,iHAAA,mBAAmB,OAAA;AAC5B,wCASwB;AAPtB,4GAAA,mBAAmB,OAAA;AAQrB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAgC;AAChC,4DA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AAA,iBAAiB,OAAA;AACjB,mHAAA,0BAA0B,OAAA;AAG5B,0DAAwC;AACxC,2CAAyB;AACzB,oFAKkD;AAJhD,+HAAA,oBAAoB,OAAA;AACpB,uIAAA,4BAA4B,OAAA;AAC5B,gIAAA,qBAAqB,OAAA;AACrB,8HAAA,mBAAmB,OAAA;AAErB,6DAA0E;AAAjE,0HAAA,mBAAmB,OAAA;AAAE,mHAAA,YAAY,OAAA;AAC1C,iCAaiB;AAZf,gIAAA,uCAAuC,OAAA;AACvC,oGAAA,WAAW,OAAA;AACX,wHAAA,+BAA+B,OAAA;AAI/B,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAGhB,6GAAA,oBAAoB,OAAA;AAKf,MAAM,gCAAgC,GAAG,GAAW,EAAE;IAC3D,OAAO,IAAA,eAAK,EAAC,sCAAyB,CAAC,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,gCAAgC,oCAE3C;AAEF,2CAA+C;AAAtC,6GAAA,eAAe,OAAA;AACxB,kFAM8C;AAL5C,wHAAA,WAAW,OAAA;AACX,yHAAA,YAAY,OAAA;AACZ,8HAAA,iBAAiB,OAAA;AACjB,yIAAA,4BAA4B,OAAA;AAC5B,oIAAA,uBAAuB,OAAA"}
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/transformation/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAY,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAwD9D,OAAO,EAAE,wBAAwB,EAAmB,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/transformation/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAY,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAwD9D,OAAO,EAAE,wBAAwB,EAAmB,MAAM,6CAA6C,CAAC;AAmBxG,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,cAAc,EAAE,CA0BrD,CAAC;AAgBF,eAAO,MAAM,yBAAyB,cAWrC,CAAC;AASF,eAAO,MAAM,mBAAmB,QAAS,YAAY,8CAwBpD,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAAgB,wBAAwB,SAsBrE,CAAC"}
|
@@ -30,6 +30,7 @@ const NoUndefinedVariablesRule_1 = require("graphql/validation/rules/NoUndefined
|
|
30
30
|
const NoUnusedVariablesRule_1 = require("graphql/validation/rules/NoUnusedVariablesRule");
|
31
31
|
const UniqueDirectivesPerLocationRule_1 = require("graphql/validation/rules/UniqueDirectivesPerLocationRule");
|
32
32
|
const validate_1 = require("graphql/validation/validate");
|
33
|
+
const graphql_directives_1 = require("@aws-amplify/graphql-directives");
|
33
34
|
exports.specifiedRules = [
|
34
35
|
UniqueOperationNamesRule_1.UniqueOperationNamesRule,
|
35
36
|
LoneAnonymousOperationRule_1.LoneAnonymousOperationRule,
|
@@ -70,18 +71,16 @@ scalar AWSIPAddress
|
|
70
71
|
scalar BigInt
|
71
72
|
scalar Double
|
72
73
|
`);
|
73
|
-
exports.EXTRA_DIRECTIVES_DOCUMENT = (0, language_1.parse)(
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
directive @deprecated(reason: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION | ENUM | ENUM_VALUE
|
84
|
-
`);
|
74
|
+
exports.EXTRA_DIRECTIVES_DOCUMENT = (0, language_1.parse)([
|
75
|
+
graphql_directives_1.AwsSubscribeDirective.definition,
|
76
|
+
graphql_directives_1.AwsAuthDirective.definition,
|
77
|
+
graphql_directives_1.AwsApiKeyDirective.definition,
|
78
|
+
graphql_directives_1.AwsIamDirective.definition,
|
79
|
+
graphql_directives_1.AwsOidcDirective.definition,
|
80
|
+
graphql_directives_1.AwsCognitoUserPoolsDirective.definition,
|
81
|
+
graphql_directives_1.AwsLambdaDirective.definition,
|
82
|
+
graphql_directives_1.DeprecatedDirective.definition,
|
83
|
+
].join('\n'));
|
85
84
|
const NOOP_QUERY = (0, language_1.parse)(`
|
86
85
|
type Query {
|
87
86
|
noop: String
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/transformation/validation.ts"],"names":[],"mappings":";;;AAAA,+CAAmF;AACnF,mDAA8D;AAC9D,qEAAkE;AAGlE,wGAAqG;AAGrG,oFAAiF;AAGjF,0GAAuG;AAGvG,oGAAiG;AAGjG,8EAA2E;AAG3E,8FAA2F;AAG3F,sFAAmF;AAGnF,4FAAyF;AAGzF,8FAA2F;AAG3F,8FAA2F;AAG3F,4GAAyG;AAGzG,gHAA6G;AAG7G,kGAA+F;AAE/F,0GAAuG;AACvG,gGAA6F;AAC7F,oGAAiG;AACjG,8FAA2F;AAC3F,4FAAyF;AACzF,0FAAuF;AACvF,sGAAmG;AACnG,wFAAqF;AACrF,8FAA2F;AAC3F,gGAA6F;AAC7F,0FAAuF;AACvF,8GAA2G;AAI3G,0DAA0D;
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/transformation/validation.ts"],"names":[],"mappings":";;;AAAA,+CAAmF;AACnF,mDAA8D;AAC9D,qEAAkE;AAGlE,wGAAqG;AAGrG,oFAAiF;AAGjF,0GAAuG;AAGvG,oGAAiG;AAGjG,8EAA2E;AAG3E,8FAA2F;AAG3F,sFAAmF;AAGnF,4FAAyF;AAGzF,8FAA2F;AAG3F,8FAA2F;AAG3F,4GAAyG;AAGzG,gHAA6G;AAG7G,kGAA+F;AAE/F,0GAAuG;AACv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AC;AACxD,CAAC,CAAC;AAxBW,QAAA,mBAAmB,uBAwB9B;AAEK,MAAM,iBAAiB,GAAG,CAAC,UAAoC,EAAE,EAAE;IACxE,IAAI,mBAAmB,GAAsB,EAAE,CAAC;IAEhD,IAAI,UAAU,CAAC,iCAAiC,EAAE;QAChD,mBAAmB,GAAG,UAAU,CAAC,iCAAiC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACxH;IAED,MAAM,SAAS,GAAsB,CAAC,GAAG,mBAAmB,EAAE,UAAU,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAEnH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAE1B,IACE,IAAI,KAAK,SAAS;YAClB,IAAI,KAAK,2BAA2B;YACpC,IAAI,KAAK,SAAS;YAClB,IAAI,KAAK,gBAAgB;YACzB,IAAI,KAAK,YAAY,EACrB;YACA,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;SAC9C;KACF;AACH,CAAC,CAAC;AAtBW,QAAA,iBAAiB,qBAsB5B"}
|
@@ -11,5 +11,6 @@ export declare const isModelType: (ctx: DataSourceStrategiesProvider, typename:
|
|
11
11
|
export declare const isSqlDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is ModelDataSourceStrategySqlDbType;
|
12
12
|
export declare const isSqlModel: (ctx: DataSourceStrategiesProvider, typename: string) => boolean;
|
13
13
|
export declare const isSqlStrategy: (strategy: ModelDataSourceStrategy) => strategy is SQLLambdaModelDataSourceStrategy;
|
14
|
+
export declare const getStrategyDbTypeFromModel: (ctx: DataSourceStrategiesProvider, typename: string) => ModelDataSourceStrategyDbType;
|
14
15
|
export declare const normalizeDbType: (candidate: string) => ModelDataSourceStrategyDbType;
|
15
16
|
//# sourceMappingURL=model-datasource-strategy-utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-datasource-strategy-utils.d.ts","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC5B,sCAAsC,EACtC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAe,eAAe,EAAmC,MAAM,UAAU,CAAC;AAYzF,eAAO,MAAM,iCAAiC,QAAS,4BAA4B,YAAY,MAAM,KAAG,MAUvG,CAAC;AAMF,eAAO,MAAM,oCAAoC,WAAY,6BAA6B,KAAG,eAS5F,CAAC;AAQF,eAAO,MAAM,0BAA0B,QAAS,4BAA4B,YAAY,MAAM,KAAG,uBAMhG,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAQF,eAAO,MAAM,eAAe,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMrF,CAAC;AAKF,eAAO,MAAM,cAAc,WAAY,6BAA6B,yBAEnE,CAAC;AAOF,eAAO,MAAM,WAAW,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMjF,CAAC;AAKF,eAAO,MAAM,WAAW,WAAY,6BAA6B,+CAEhE,CAAC;AAQF,eAAO,MAAM,UAAU,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMhF,CAAC;AAKF,eAAO,MAAM,aAAa,aAAc,uBAAuB,iDAI9D,CAAC;AAeF,eAAO,MAAM,eAAe,cAAe,MAAM,KAAG,6BAenD,CAAC"}
|
1
|
+
{"version":3,"file":"model-datasource-strategy-utils.d.ts","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC5B,sCAAsC,EACtC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAe,eAAe,EAAmC,MAAM,UAAU,CAAC;AAYzF,eAAO,MAAM,iCAAiC,QAAS,4BAA4B,YAAY,MAAM,KAAG,MAUvG,CAAC;AAMF,eAAO,MAAM,oCAAoC,WAAY,6BAA6B,KAAG,eAS5F,CAAC;AAQF,eAAO,MAAM,0BAA0B,QAAS,4BAA4B,YAAY,MAAM,KAAG,uBAMhG,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAQF,eAAO,MAAM,eAAe,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMrF,CAAC;AAKF,eAAO,MAAM,cAAc,WAAY,6BAA6B,yBAEnE,CAAC;AAOF,eAAO,MAAM,WAAW,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMjF,CAAC;AAKF,eAAO,MAAM,WAAW,WAAY,6BAA6B,+CAEhE,CAAC;AAQF,eAAO,MAAM,UAAU,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMhF,CAAC;AAKF,eAAO,MAAM,aAAa,aAAc,uBAAuB,iDAI9D,CAAC;AAQF,eAAO,MAAM,0BAA0B,QAAS,4BAA4B,YAAY,MAAM,KAAG,6BAKhG,CAAC;AAeF,eAAO,MAAM,eAAe,cAAe,MAAM,KAAG,6BAenD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeDbType = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getModelDataSourceStrategy = exports.getImportedRDSTypeFromStrategyDbType = exports.getModelDataSourceNameForTypeName = void 0;
|
3
|
+
exports.normalizeDbType = exports.getStrategyDbTypeFromModel = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getModelDataSourceStrategy = exports.getImportedRDSTypeFromStrategyDbType = exports.getModelDataSourceNameForTypeName = void 0;
|
4
4
|
const types_1 = require("../types");
|
5
5
|
const graphql_utils_1 = require("./graphql-utils");
|
6
6
|
const resource_name_1 = require("./resource-name");
|
@@ -84,6 +84,13 @@ const isSqlStrategy = (strategy) => {
|
|
84
84
|
return ((0, exports.isSqlDbType)(strategy.dbType) && typeof strategy.name === 'string' && typeof strategy.dbConnectionConfig === 'object');
|
85
85
|
};
|
86
86
|
exports.isSqlStrategy = isSqlStrategy;
|
87
|
+
const getStrategyDbTypeFromModel = (ctx, typename) => {
|
88
|
+
if ((0, graphql_utils_1.isBuiltInGraphqlType)(typename)) {
|
89
|
+
return types_1.DDB_DB_TYPE;
|
90
|
+
}
|
91
|
+
return (0, exports.getModelDataSourceStrategy)(ctx, typename).dbType;
|
92
|
+
};
|
93
|
+
exports.getStrategyDbTypeFromModel = getStrategyDbTypeFromModel;
|
87
94
|
const normalizeDbType = (candidate) => {
|
88
95
|
switch (candidate.toLowerCase()) {
|
89
96
|
case 'mysql':
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-datasource-strategy-utils.js","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":";;;AASA,oCAAyF;AACzF,mDAAuD;AACvD,mDAA8D;AAUvD,MAAM,iCAAiC,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAU,EAAE;IA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MAAM,UAAU,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAW,EAAE;IACzF,IAAI,IAAA,oCAAoB,EAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,KAAK,CAAC;KACd;IACD,MAAM,mBAAmB,GAAG,IAAA,kCAA0B,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtE,OAAO,IAAA,mBAAW,EAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC,CAAC;AANW,QAAA,UAAU,cAMrB;AAKK,MAAM,aAAa,GAAG,CAAC,QAAiC,EAAgD,EAAE;IAC/G,OAAO,CACL,IAAA,mBAAW,EAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,OAAQ,QAAgB,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAQ,QAAgB,CAAC,kBAAkB,KAAK,QAAQ,CACvI,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAeK,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAiC,EAAE;IAClF,QAAQ,SAAS,CAAC,WAAW,EAAE,EAAE;QAC/B,KAAK,OAAO;YACV,OAAO,qBAAa,CAAC;QACvB,KAAK,KAAK,CAAC;QACX,KAAK,UAAU,CAAC;QAChB,KAAK,WAAW;YACd,OAAO,mBAAW,CAAC;QACrB,KAAK,IAAI,CAAC;QACV,KAAK,UAAU,CAAC;QAChB,KAAK,YAAY;YACf,OAAO,wBAAgB,CAAC;QAC1B;YACE,MAAM,IAAI,KAAK,CAAC,yBAAyB,SAAS,EAAE,CAAC,CAAC;KACzD;AACH,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}
|
1
|
+
{"version":3,"file":"model-datasource-strategy-utils.js","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":";;;AASA,oCAAyF;AACzF,mDAAuD;AACvD,mDAA8D;AAUvD,MAAM,iCAAiC,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAU,EAAE;IAC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,CAAC;KACzD;AACH,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "2.5.1
|
3
|
+
"version": "2.5.1",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,10 +28,11 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-
|
31
|
+
"@aws-amplify/graphql-directives": "1.0.1",
|
32
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.5.0",
|
32
33
|
"fs-extra": "^8.1.0",
|
33
34
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-transformer-common": "4.
|
35
|
+
"graphql-transformer-common": "4.29.0",
|
35
36
|
"hjson": "^3.2.2",
|
36
37
|
"lodash": "^4.17.21",
|
37
38
|
"md5": "^2.3.0",
|
@@ -85,5 +86,5 @@
|
|
85
86
|
"/__tests__/"
|
86
87
|
]
|
87
88
|
},
|
88
|
-
"gitHead": "
|
89
|
+
"gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1"
|
89
90
|
}
|
@@ -222,6 +222,15 @@ export interface InlineMappingTemplateProvider {
|
|
222
222
|
type: MappingTemplateType.INLINE;
|
223
223
|
}
|
224
224
|
|
225
|
+
// @public (undocumented)
|
226
|
+
export const isSqlModelDataSourceDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceDbConnectionConfig;
|
227
|
+
|
228
|
+
// @public (undocumented)
|
229
|
+
export const isSqlModelDataSourceSecretsManagerDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSecretsManagerDbConnectionConfig;
|
230
|
+
|
231
|
+
// @public (undocumented)
|
232
|
+
export const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionConfig;
|
233
|
+
|
225
234
|
// @public (undocumented)
|
226
235
|
export type MappingTemplateProvider = InlineMappingTemplateProvider | S3MappingTemplateProvider;
|
227
236
|
|
@@ -372,7 +381,24 @@ export interface SQLLambdaModelDataSourceStrategy extends ModelDataSourceStrateg
|
|
372
381
|
}
|
373
382
|
|
374
383
|
// @public (undocumented)
|
375
|
-
export
|
384
|
+
export type SqlModelDataSourceDbConnectionConfig = SqlModelDataSourceSecretsManagerDbConnectionConfig | SqlModelDataSourceSsmDbConnectionConfig;
|
385
|
+
|
386
|
+
// @public (undocumented)
|
387
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
388
|
+
// (undocumented)
|
389
|
+
readonly databaseName: string;
|
390
|
+
// (undocumented)
|
391
|
+
readonly hostname: string;
|
392
|
+
// (undocumented)
|
393
|
+
readonly keyArn?: string;
|
394
|
+
// (undocumented)
|
395
|
+
readonly port: number;
|
396
|
+
// (undocumented)
|
397
|
+
readonly secretArn: string;
|
398
|
+
}
|
399
|
+
|
400
|
+
// @public (undocumented)
|
401
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
376
402
|
// (undocumented)
|
377
403
|
readonly databaseNameSsmPath: string;
|
378
404
|
// (undocumented)
|
@@ -430,7 +456,6 @@ export type SynthParameters = {
|
|
430
456
|
userPoolId?: string;
|
431
457
|
identityPoolId?: string;
|
432
458
|
adminRoles?: string[];
|
433
|
-
enableIamAccess?: boolean;
|
434
459
|
};
|
435
460
|
|
436
461
|
// @public (undocumented)
|
@@ -3,9 +3,11 @@
|
|
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
|
-
|
6
|
+
# [3.5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.4.0...@aws-amplify/graphql-transformer-interfaces@3.5.0) (2024-03-28)
|
7
7
|
|
8
|
-
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- add secrets manager as credential store for sql lambda ([#2289](https://github.com/aws-amplify/amplify-category-api/issues/2289)) ([affdb98](https://github.com/aws-amplify/amplify-category-api/commit/affdb988b499591c3a96608f772b637ddd8c3a0c))
|
9
11
|
|
10
12
|
# [3.4.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.3.3...@aws-amplify/graphql-transformer-interfaces@3.4.0) (2024-02-28)
|
11
13
|
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts
CHANGED
@@ -31,7 +31,15 @@ export interface SubnetAvailabilityZone {
|
|
31
31
|
readonly subnetId: string;
|
32
32
|
readonly availabilityZone: string;
|
33
33
|
}
|
34
|
-
export
|
34
|
+
export type SqlModelDataSourceDbConnectionConfig = SqlModelDataSourceSecretsManagerDbConnectionConfig | SqlModelDataSourceSsmDbConnectionConfig;
|
35
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
36
|
+
readonly secretArn: string;
|
37
|
+
readonly keyArn?: string;
|
38
|
+
readonly port: number;
|
39
|
+
readonly databaseName: string;
|
40
|
+
readonly hostname: string;
|
41
|
+
}
|
42
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
35
43
|
readonly hostnameSsmPath: string;
|
36
44
|
readonly portSsmPath: string;
|
37
45
|
readonly usernameSsmPath: string;
|
@@ -56,4 +64,7 @@ export interface RDSLayerMapping {
|
|
56
64
|
export interface RDSLayerMappingProvider {
|
57
65
|
rdsLayerMapping?: RDSLayerMapping;
|
58
66
|
}
|
67
|
+
export declare const isSqlModelDataSourceDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceDbConnectionConfig;
|
68
|
+
export declare const isSqlModelDataSourceSsmDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSsmDbConnectionConfig;
|
69
|
+
export declare const isSqlModelDataSourceSecretsManagerDbConnectionConfig: (obj: any) => obj is SqlModelDataSourceSecretsManagerDbConnectionConfig;
|
59
70
|
//# sourceMappingURL=types.d.ts.map
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,uBAAuB,GAC/B,sCAAsC,GACtC,sCAAsC,GACtC,gCAAgC,CAAC;AAErC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,6BAA6B,CAAC;CACvC;AAKD,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,gCAAgC,CAAC;AAK1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,UAAU,CAAC;AAKpE,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,SAAS,CAAC;CACvC;AAKD,MAAM,WAAW,sCAAuC,SAAQ,2BAA2B;IACzF,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC;CAC7C;AAQD,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IAKnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;IAKlD,QAAQ,CAAC,kBAAkB,EAAE,oCAAoC,CAAC;IAKlE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAKtC,QAAQ,CAAC,qCAAqC,CAAC,EAAE,4BAA4B,CAAC;CAC/E;AASD,MAAM,WAAW,SAAS;IAExB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAGpC,QAAQ,CAAC,4BAA4B,EAAE,sBAAsB,EAAE,CAAC;CACjE;AAKD,MAAM,WAAW,4BA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8BAA8B,EAAE,CAAC;CACrE;AAOD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAMD,MAAM,WAAW,uBAAuB;IACtC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAOD,eAAO,MAAM,sCAAsC,QAAS,GAAG,gDAE9D,CAAC;AAOF,eAAO,MAAM,yCAAyC,QAAS,GAAG,mDASjE,CAAC;AAOF,eAAO,MAAM,oDAAoD,QAC1D,GAAG,8DAST,CAAC"}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = exports.isSqlModelDataSourceSsmDbConnectionConfig = exports.isSqlModelDataSourceDbConnectionConfig = void 0;
|
4
|
+
const isSqlModelDataSourceDbConnectionConfig = (obj) => {
|
5
|
+
return (0, exports.isSqlModelDataSourceSsmDbConnectionConfig)(obj) || (0, exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig)(obj);
|
6
|
+
};
|
7
|
+
exports.isSqlModelDataSourceDbConnectionConfig = isSqlModelDataSourceDbConnectionConfig;
|
8
|
+
const isSqlModelDataSourceSsmDbConnectionConfig = (obj) => {
|
9
|
+
return ((typeof obj === 'object' || typeof obj === 'function') &&
|
10
|
+
typeof obj.hostnameSsmPath === 'string' &&
|
11
|
+
typeof obj.portSsmPath === 'string' &&
|
12
|
+
typeof obj.usernameSsmPath === 'string' &&
|
13
|
+
typeof obj.passwordSsmPath === 'string' &&
|
14
|
+
typeof obj.databaseNameSsmPath === 'string');
|
15
|
+
};
|
16
|
+
exports.isSqlModelDataSourceSsmDbConnectionConfig = isSqlModelDataSourceSsmDbConnectionConfig;
|
17
|
+
const isSqlModelDataSourceSecretsManagerDbConnectionConfig = (obj) => {
|
18
|
+
return ((typeof obj === 'object' || typeof obj === 'function') &&
|
19
|
+
typeof obj.secretArn === 'string' &&
|
20
|
+
typeof obj.port === 'number' &&
|
21
|
+
typeof obj.databaseName === 'string' &&
|
22
|
+
typeof obj.hostname === 'string');
|
23
|
+
};
|
24
|
+
exports.isSqlModelDataSourceSecretsManagerDbConnectionConfig = isSqlModelDataSourceSecretsManagerDbConnectionConfig;
|
3
25
|
//# sourceMappingURL=types.js.map
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model-datasource/types.ts"],"names":[],"mappings":";;;AA0OO,MAAM,sCAAsC,GAAG,CAAC,GAAQ,EAA+C,EAAE;IAC9G,OAAO,IAAA,iDAAyC,EAAC,GAAG,CAAC,IAAI,IAAA,4DAAoD,EAAC,GAAG,CAAC,CAAC;AACrH,CAAC,CAAC;AAFW,QAAA,sCAAsC,0CAEjD;AAOK,MAAM,yCAAyC,GAAG,CAAC,GAAQ,EAAkD,EAAE;IACpH,OAAO,CACL,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,UAAU,CAAC;QACtD,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,WAAW,KAAK,QAAQ;QACnC,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,eAAe,KAAK,QAAQ;QACvC,OAAO,GAAG,CAAC,mBAAmB,KAAK,QAAQ,CAC5C,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,yCAAyC,6CASpD;AAOK,MAAM,oDAAoD,GAAG,CAClE,GAAQ,EACmD,EAAE;IAC7D,OAAO,CACL,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,UAAU,CAAC;QACtD,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ;QACjC,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;QAC5B,OAAO,GAAG,CAAC,YAAY,KAAK,QAAQ;QACpC,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,CACjC,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,oDAAoD,wDAU/D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"synth-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/synth-parameters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"synth-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/synth-parameters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-interfaces",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.5.0",
|
4
4
|
"description": "Amplify GraphQL transformer interface definitions",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -60,5 +60,5 @@
|
|
60
60
|
"/__tests__/"
|
61
61
|
]
|
62
62
|
},
|
63
|
-
"gitHead": "
|
63
|
+
"gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1"
|
64
64
|
}
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts
CHANGED
@@ -114,12 +114,45 @@ export interface SubnetAvailabilityZone {
|
|
114
114
|
readonly availabilityZone: string;
|
115
115
|
}
|
116
116
|
|
117
|
+
/*
|
118
|
+
* The credentials the lambda data source will use to connect to the database.
|
119
|
+
*
|
120
|
+
* @experimental
|
121
|
+
*/
|
122
|
+
export type SqlModelDataSourceDbConnectionConfig =
|
123
|
+
| SqlModelDataSourceSecretsManagerDbConnectionConfig
|
124
|
+
| SqlModelDataSourceSsmDbConnectionConfig;
|
125
|
+
|
126
|
+
/*
|
127
|
+
* The credentials stored in Secrets Manager that the lambda data source will use to connect to the database.
|
128
|
+
*
|
129
|
+
* The managed secret should be in the same region as the lambda.
|
130
|
+
* @experimental
|
131
|
+
*/
|
132
|
+
export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
|
133
|
+
/** The arn of the managed secret with username, password, and hostname to use when connecting to the database. **/
|
134
|
+
readonly secretArn: string;
|
135
|
+
|
136
|
+
/** The ARN of the customer managed encryption key for the secret. If not supplied, the secret is expected to be encrypted with the default AWS-managed key. **/
|
137
|
+
readonly keyArn?: string;
|
138
|
+
|
139
|
+
/** port number of the database proxy, cluster, or instance. */
|
140
|
+
readonly port: number;
|
141
|
+
|
142
|
+
/** database name. */
|
143
|
+
readonly databaseName: string;
|
144
|
+
|
145
|
+
/** The hostname of the database. */
|
146
|
+
readonly hostname: string;
|
147
|
+
}
|
148
|
+
|
117
149
|
/**
|
118
150
|
* The Secure Systems Manager parameter paths the Lambda data source will use to connect to the database.
|
119
151
|
*
|
120
152
|
* These parameters are retrieved from Secure Systems Manager in the same region as the Lambda.
|
153
|
+
* @experimental
|
121
154
|
*/
|
122
|
-
export interface
|
155
|
+
export interface SqlModelDataSourceSsmDbConnectionConfig {
|
123
156
|
/** The Secure Systems Manager parameter containing the hostname of the database. For RDS-based SQL data sources, this can be the hostname
|
124
157
|
* of a database proxy, cluster, or instance.
|
125
158
|
*/
|
@@ -193,3 +226,45 @@ export interface RDSLayerMapping {
|
|
193
226
|
export interface RDSLayerMappingProvider {
|
194
227
|
rdsLayerMapping?: RDSLayerMapping;
|
195
228
|
}
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceDbConnectionConfig.
|
232
|
+
* @param obj the object to inspect
|
233
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
234
|
+
*/
|
235
|
+
export const isSqlModelDataSourceDbConnectionConfig = (obj: any): obj is SqlModelDataSourceDbConnectionConfig => {
|
236
|
+
return isSqlModelDataSourceSsmDbConnectionConfig(obj) || isSqlModelDataSourceSecretsManagerDbConnectionConfig(obj);
|
237
|
+
};
|
238
|
+
|
239
|
+
/**
|
240
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceSsmDbConnectionConfig.
|
241
|
+
* @param obj the object to inspect
|
242
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
243
|
+
*/
|
244
|
+
export const isSqlModelDataSourceSsmDbConnectionConfig = (obj: any): obj is SqlModelDataSourceSsmDbConnectionConfig => {
|
245
|
+
return (
|
246
|
+
(typeof obj === 'object' || typeof obj === 'function') &&
|
247
|
+
typeof obj.hostnameSsmPath === 'string' &&
|
248
|
+
typeof obj.portSsmPath === 'string' &&
|
249
|
+
typeof obj.usernameSsmPath === 'string' &&
|
250
|
+
typeof obj.passwordSsmPath === 'string' &&
|
251
|
+
typeof obj.databaseNameSsmPath === 'string'
|
252
|
+
);
|
253
|
+
};
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Type predicate that returns true if the object is a SqlModelDataSourceSecretsManagerDbConnectionConfig.
|
257
|
+
* @param obj the object to inspect
|
258
|
+
* @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
|
259
|
+
*/
|
260
|
+
export const isSqlModelDataSourceSecretsManagerDbConnectionConfig = (
|
261
|
+
obj: any,
|
262
|
+
): obj is SqlModelDataSourceSecretsManagerDbConnectionConfig => {
|
263
|
+
return (
|
264
|
+
(typeof obj === 'object' || typeof obj === 'function') &&
|
265
|
+
typeof obj.secretArn === 'string' &&
|
266
|
+
typeof obj.port === 'number' &&
|
267
|
+
typeof obj.databaseName === 'string' &&
|
268
|
+
typeof obj.hostname === 'string'
|
269
|
+
);
|
270
|
+
};
|