@aws-amplify/graphql-api-construct 1.7.0-iam-auth-with-identityPool-provider-1.0 → 1.7.1-gen2-release.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +148 -36
- package/API.md +13 -1
- package/CHANGELOG.md +6 -2
- package/README.md +75 -17
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +1 -1
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/authorization-modes.d.ts +10 -0
- package/lib/internal/authorization-modes.js +18 -8
- package/lib/internal/codegen-assets.js +10 -1
- 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/node_modules/@aws-amplify/graphql-auth-transformer/API.md +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +5 -3
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +4 -5
- 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 -1
- 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 -39
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js +12 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js.map +1 -0
- 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 +16 -13
- 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 +8 -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 +10 -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/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js +2 -2
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js +2 -1
- 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.js +2 -1
- 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.js +2 -1
- 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 +15 -4
- 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.js +2 -1
- 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 +8 -2
- 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 +1 -1
- 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 +1 -1
- 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 +10 -19
- 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/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 +5 -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 +14 -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 +50 -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 +5 -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 +5 -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 +5 -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/lib/resolvers/resolvers.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +19 -10
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js +13 -2
- package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +5 -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 +7 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js +1 -8
- 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 +3 -44
- 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/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 +8 -7
- 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 +5 -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 +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +11 -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 +37 -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-ddb-references-transformer.d.ts +11 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js +36 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +11 -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 +30 -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 +31 -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 +17 -52
- 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 +16 -46
- 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 +15 -38
- 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 +11 -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 +36 -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-ddb-references-transformer.d.ts +11 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +37 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +11 -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 +30 -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 +31 -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 +11 -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 +34 -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-ddb-references-transformer.d.ts +11 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +37 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +11 -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 +30 -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 +31 -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/lib/resolver/ddb-generator.d.ts +3 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +6 -3
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts +9 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js +172 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts +2 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts +2 -1
- 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 +72 -17
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +5 -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 +2 -1
- 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 +7 -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 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +5 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js +20 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +16 -9
- 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 +5 -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 +19 -12
- 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 +7 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.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 +5 -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 +28 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +7 -1
- 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/transformer-context-provider.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/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/transformer-context-provider.ts +1 -0
- 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 +7 -1
- 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/internal/authorization-modes.ts +18 -8
- package/src/internal/codegen-assets.ts +11 -2
- 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/node_modules/{graphql-mapping-template → @aws-amplify/graphql-directives}/LICENSE +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,mBAAmB,EAAE,SAIjC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FunctionDirectiveV1 = void 0;
|
4
|
+
const name = 'function';
|
5
|
+
const definition = `
|
6
|
+
directive @function(name: String!, region: String) repeatable on FIELD_DEFINITION
|
7
|
+
`;
|
8
|
+
const defaults = {};
|
9
|
+
exports.FunctionDirectiveV1 = {
|
10
|
+
name,
|
11
|
+
definition,
|
12
|
+
defaults,
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=function.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../src/directives/v1/function.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,UAAU,GAAiB;;CAEhC,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,mBAAmB,GAAc;IAC5C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAuB5E,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,uBAAuB,CAI9D,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HttpDirectiveV1 = void 0;
|
4
|
+
const name = 'http';
|
5
|
+
const defaults = {
|
6
|
+
method: 'GET',
|
7
|
+
headers: [],
|
8
|
+
};
|
9
|
+
const definition = `
|
10
|
+
directive @${name}(method: HttpMethod = ${defaults.method}, url: String!, headers: [HttpHeader] = ${JSON.stringify(defaults.headers)}) on FIELD_DEFINITION
|
11
|
+
enum HttpMethod {
|
12
|
+
GET
|
13
|
+
POST
|
14
|
+
PUT
|
15
|
+
DELETE
|
16
|
+
PATCH
|
17
|
+
}
|
18
|
+
input HttpHeader {
|
19
|
+
key: String
|
20
|
+
value: String
|
21
|
+
}
|
22
|
+
`;
|
23
|
+
exports.HttpDirectiveV1 = {
|
24
|
+
name,
|
25
|
+
definition,
|
26
|
+
defaults,
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=http.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/directives/v1/http.ts"],"names":[],"mappings":";;;AAGA,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,QAAQ,GAA4B;IACxC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;CACZ,CAAC;AACF,MAAM,UAAU,GAAiB;eAClB,IAAI,yBAAyB,QAAQ,CAAC,MAAM,2CAA2C,IAAI,CAAC,SAAS,CAClH,QAAQ,CAAC,OAAO,CACjB;;;;;;;;;;;;CAYA,CAAC;AAEW,QAAA,eAAe,GAAuC;IACjE,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export { AuthDirectiveV1 } from './auth';
|
2
|
+
export { ConnectionDirectiveV1 } from './connection';
|
3
|
+
export { FunctionDirectiveV1 } from './function';
|
4
|
+
export { HttpDirectiveV1 } from './http';
|
5
|
+
export { KeyDirectiveV1 } from './key';
|
6
|
+
export { ModelDirectiveV1 } from './model';
|
7
|
+
export { PredictionsDirectiveV1 } from './predictions';
|
8
|
+
export { SearchableDirectiveV1 } from './searchable';
|
9
|
+
export { VersionedDirectiveV1, VersionedDirectiveV1Defaults } from './versioned';
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VersionedDirectiveV1 = exports.SearchableDirectiveV1 = exports.PredictionsDirectiveV1 = exports.ModelDirectiveV1 = exports.KeyDirectiveV1 = exports.HttpDirectiveV1 = exports.FunctionDirectiveV1 = exports.ConnectionDirectiveV1 = exports.AuthDirectiveV1 = void 0;
|
4
|
+
var auth_1 = require("./auth");
|
5
|
+
Object.defineProperty(exports, "AuthDirectiveV1", { enumerable: true, get: function () { return auth_1.AuthDirectiveV1; } });
|
6
|
+
var connection_1 = require("./connection");
|
7
|
+
Object.defineProperty(exports, "ConnectionDirectiveV1", { enumerable: true, get: function () { return connection_1.ConnectionDirectiveV1; } });
|
8
|
+
var function_1 = require("./function");
|
9
|
+
Object.defineProperty(exports, "FunctionDirectiveV1", { enumerable: true, get: function () { return function_1.FunctionDirectiveV1; } });
|
10
|
+
var http_1 = require("./http");
|
11
|
+
Object.defineProperty(exports, "HttpDirectiveV1", { enumerable: true, get: function () { return http_1.HttpDirectiveV1; } });
|
12
|
+
var key_1 = require("./key");
|
13
|
+
Object.defineProperty(exports, "KeyDirectiveV1", { enumerable: true, get: function () { return key_1.KeyDirectiveV1; } });
|
14
|
+
var model_1 = require("./model");
|
15
|
+
Object.defineProperty(exports, "ModelDirectiveV1", { enumerable: true, get: function () { return model_1.ModelDirectiveV1; } });
|
16
|
+
var predictions_1 = require("./predictions");
|
17
|
+
Object.defineProperty(exports, "PredictionsDirectiveV1", { enumerable: true, get: function () { return predictions_1.PredictionsDirectiveV1; } });
|
18
|
+
var searchable_1 = require("./searchable");
|
19
|
+
Object.defineProperty(exports, "SearchableDirectiveV1", { enumerable: true, get: function () { return searchable_1.SearchableDirectiveV1; } });
|
20
|
+
var versioned_1 = require("./versioned");
|
21
|
+
Object.defineProperty(exports, "VersionedDirectiveV1", { enumerable: true, get: function () { return versioned_1.VersionedDirectiveV1; } });
|
22
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/directives/v1/index.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAAhC,uGAAA,eAAe,OAAA;AACxB,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAC9B,uCAAiD;AAAxC,+GAAA,mBAAmB,OAAA;AAC5B,+BAAyC;AAAhC,uGAAA,eAAe,OAAA;AACxB,6BAAuC;AAA9B,qGAAA,cAAc,OAAA;AACvB,iCAA2C;AAAlC,yGAAA,gBAAgB,OAAA;AACzB,6CAAuD;AAA9C,qHAAA,sBAAsB,OAAA;AAC/B,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAC9B,yCAAiF;AAAxE,iHAAA,oBAAoB,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,cAAc,EAAE,SAI5B,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.KeyDirectiveV1 = void 0;
|
4
|
+
const name = 'key';
|
5
|
+
const definition = `
|
6
|
+
directive @${name}(name: String, fields: [String!]!, queryField: String) repeatable on OBJECT
|
7
|
+
`;
|
8
|
+
const defaults = {};
|
9
|
+
exports.KeyDirectiveV1 = {
|
10
|
+
name,
|
11
|
+
definition,
|
12
|
+
defaults,
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=key.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"key.js","sourceRoot":"","sources":["../../../src/directives/v1/key.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,KAAK,CAAC;AACnB,MAAM,UAAU,GAAiB;eAClB,IAAI;CAClB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,cAAc,GAAc;IACvC,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqCzC,eAAO,MAAM,gBAAgB,EAAE,SAI9B,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ModelDirectiveV1 = void 0;
|
4
|
+
const name = 'model';
|
5
|
+
const definition = `
|
6
|
+
directive @${name}(
|
7
|
+
queries: ModelQueryMap
|
8
|
+
mutations: ModelMutationMap
|
9
|
+
subscriptions: ModelSubscriptionMap
|
10
|
+
timestamps: TimestampConfiguration
|
11
|
+
) on OBJECT
|
12
|
+
input ModelMutationMap {
|
13
|
+
create: String
|
14
|
+
update: String
|
15
|
+
delete: String
|
16
|
+
}
|
17
|
+
input ModelQueryMap {
|
18
|
+
get: String
|
19
|
+
list: String
|
20
|
+
}
|
21
|
+
input ModelSubscriptionMap {
|
22
|
+
onCreate: [String]
|
23
|
+
onUpdate: [String]
|
24
|
+
onDelete: [String]
|
25
|
+
level: ModelSubscriptionLevel
|
26
|
+
}
|
27
|
+
enum ModelSubscriptionLevel {
|
28
|
+
off
|
29
|
+
public
|
30
|
+
on
|
31
|
+
}
|
32
|
+
input TimestampConfiguration {
|
33
|
+
createdAt: String
|
34
|
+
updatedAt: String
|
35
|
+
}
|
36
|
+
`;
|
37
|
+
const defaults = {};
|
38
|
+
exports.ModelDirectiveV1 = {
|
39
|
+
name,
|
40
|
+
definition,
|
41
|
+
defaults,
|
42
|
+
};
|
43
|
+
//# sourceMappingURL=model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/directives/v1/model.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,OAAO,CAAC;AACrB,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,gBAAgB,GAAc;IACzC,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"predictions.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/predictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAczC,eAAO,MAAM,sBAAsB,EAAE,SAIpC,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PredictionsDirectiveV1 = void 0;
|
4
|
+
const name = 'predictions';
|
5
|
+
const definition = `
|
6
|
+
directive @${name}(actions: [PredictionsActions!]!) on FIELD_DEFINITION
|
7
|
+
enum PredictionsActions {
|
8
|
+
identifyText
|
9
|
+
identifyLabels
|
10
|
+
convertTextToSpeech
|
11
|
+
translateText
|
12
|
+
}
|
13
|
+
`;
|
14
|
+
const defaults = {};
|
15
|
+
exports.PredictionsDirectiveV1 = {
|
16
|
+
name,
|
17
|
+
definition,
|
18
|
+
defaults,
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=predictions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"predictions.js","sourceRoot":"","sources":["../../../src/directives/v1/predictions.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,aAAa,CAAC;AAC3B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;;;;CAOlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,sBAAsB,GAAc;IAC/C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"searchable.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/searchable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWzC,eAAO,MAAM,qBAAqB,EAAE,SAInC,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SearchableDirectiveV1 = void 0;
|
4
|
+
const name = 'searchable';
|
5
|
+
const definition = `
|
6
|
+
directive @${name}(queries: SearchableQueryMap) on OBJECT
|
7
|
+
input SearchableQueryMap {
|
8
|
+
search: String
|
9
|
+
}
|
10
|
+
`;
|
11
|
+
const defaults = {};
|
12
|
+
exports.SearchableDirectiveV1 = {
|
13
|
+
name,
|
14
|
+
definition,
|
15
|
+
defaults,
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=searchable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"searchable.js","sourceRoot":"","sources":["../../../src/directives/v1/searchable.ts"],"names":[],"mappings":";;;AAEA,MAAM,IAAI,GAAG,YAAY,CAAC;AAC1B,MAAM,UAAU,GAAiB;eAClB,IAAI;;;;CAIlB,CAAC;AACF,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEP,QAAA,qBAAqB,GAAc;IAC9C,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Directive } from '../directive';
|
2
|
+
export type VersionedDirectiveV1Defaults = {
|
3
|
+
versionField: string;
|
4
|
+
versionInput: string;
|
5
|
+
};
|
6
|
+
export declare const VersionedDirectiveV1: Directive<VersionedDirectiveV1Defaults>;
|
7
|
+
//# sourceMappingURL=versioned.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../../src/directives/v1/versioned.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,4BAA4B,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAU1F,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,4BAA4B,CAIxE,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VersionedDirectiveV1 = void 0;
|
4
|
+
const name = 'versioned';
|
5
|
+
const defaults = {
|
6
|
+
versionField: 'version',
|
7
|
+
versionInput: 'expectedVersion',
|
8
|
+
};
|
9
|
+
const definition = `
|
10
|
+
directive @${name}(versionField: String = "${defaults.versionField}", versionInput: String = "${defaults.versionInput}") on OBJECT
|
11
|
+
`;
|
12
|
+
exports.VersionedDirectiveV1 = {
|
13
|
+
name,
|
14
|
+
definition,
|
15
|
+
defaults,
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=versioned.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"versioned.js","sourceRoot":"","sources":["../../../src/directives/v1/versioned.ts"],"names":[],"mappings":";;;AAGA,MAAM,IAAI,GAAG,WAAW,CAAC;AACzB,MAAM,QAAQ,GAAiC;IAC7C,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,iBAAiB;CAChC,CAAC;AACF,MAAM,UAAU,GAAiB;eAClB,IAAI,4BAA4B,QAAQ,CAAC,YAAY,8BAA8B,QAAQ,CAAC,YAAY;CACtH,CAAC;AAEW,QAAA,oBAAoB,GAA4C;IAC3E,IAAI;IACJ,UAAU;IACV,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './directives';
|
2
|
+
import type { Directive } from './directives';
|
3
|
+
export declare const AppSyncDirectives: readonly Directive[];
|
4
|
+
export declare const V2Directives: readonly Directive[];
|
5
|
+
export declare const DefaultDirectives: readonly Directive[];
|
6
|
+
export declare const V1Directives: readonly Directive[];
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAqC9C,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAQjD,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAkB5C,CAAC;AAKF,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAA2C,CAAC;AAE9F,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAU5C,CAAC"}
|
@@ -0,0 +1,60 @@
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.V1Directives = exports.DefaultDirectives = exports.V2Directives = exports.AppSyncDirectives = void 0;
|
18
|
+
__exportStar(require("./directives"), exports);
|
19
|
+
const directives_1 = require("./directives");
|
20
|
+
exports.AppSyncDirectives = [
|
21
|
+
directives_1.AwsApiKeyDirective,
|
22
|
+
directives_1.AwsAuthDirective,
|
23
|
+
directives_1.AwsCognitoUserPoolsDirective,
|
24
|
+
directives_1.AwsIamDirective,
|
25
|
+
directives_1.AwsLambdaDirective,
|
26
|
+
directives_1.AwsOidcDirective,
|
27
|
+
directives_1.AwsSubscribeDirective,
|
28
|
+
];
|
29
|
+
exports.V2Directives = [
|
30
|
+
directives_1.AuthDirective,
|
31
|
+
directives_1.BelongsToDirective,
|
32
|
+
directives_1.DefaultDirective,
|
33
|
+
directives_1.DeprecatedDirective,
|
34
|
+
directives_1.FunctionDirective,
|
35
|
+
directives_1.HasManyDirective,
|
36
|
+
directives_1.HasOneDirective,
|
37
|
+
directives_1.HttpDirective,
|
38
|
+
directives_1.IndexDirective,
|
39
|
+
directives_1.ManyToManyDirective,
|
40
|
+
directives_1.MapsToDirective,
|
41
|
+
directives_1.ModelDirective,
|
42
|
+
directives_1.PredictionsDirective,
|
43
|
+
directives_1.PrimaryKeyDirective,
|
44
|
+
directives_1.RefersToDirective,
|
45
|
+
directives_1.SearchableDirective,
|
46
|
+
directives_1.SqlDirective,
|
47
|
+
];
|
48
|
+
exports.DefaultDirectives = exports.AppSyncDirectives.concat(exports.V2Directives);
|
49
|
+
exports.V1Directives = [
|
50
|
+
directives_1.AuthDirectiveV1,
|
51
|
+
directives_1.ConnectionDirectiveV1,
|
52
|
+
directives_1.FunctionDirectiveV1,
|
53
|
+
directives_1.HttpDirectiveV1,
|
54
|
+
directives_1.KeyDirectiveV1,
|
55
|
+
directives_1.ModelDirectiveV1,
|
56
|
+
directives_1.PredictionsDirectiveV1,
|
57
|
+
directives_1.SearchableDirectiveV1,
|
58
|
+
directives_1.VersionedDirectiveV1,
|
59
|
+
];
|
60
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAE7B,6CAkCsB;AAET,QAAA,iBAAiB,GAAyB;IACrD,+BAAkB;IAClB,6BAAgB;IAChB,yCAA4B;IAC5B,4BAAe;IACf,+BAAkB;IAClB,6BAAgB;IAChB,kCAAqB;CACtB,CAAC;AAGW,QAAA,YAAY,GAAyB;IAChD,0BAAa;IACb,+BAAkB;IAClB,6BAAgB;IAChB,gCAAmB;IACnB,8BAAiB;IACjB,6BAAgB;IAChB,4BAAe;IACf,0BAAa;IACb,2BAAc;IACd,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,iCAAoB;IACpB,gCAAmB;IACnB,8BAAiB;IACjB,gCAAmB;IACnB,yBAAY;CACb,CAAC;AAKW,QAAA,iBAAiB,GAAyB,yBAAiB,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC;AAEjF,QAAA,YAAY,GAAyB;IAChD,4BAAe;IACf,kCAAqB;IACrB,gCAAmB;IACnB,4BAAe;IACf,2BAAc;IACd,6BAAgB;IAChB,mCAAsB;IACtB,kCAAqB;IACrB,iCAAoB;CACrB,CAAC"}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
{
|
2
|
+
"name": "@aws-amplify/graphql-directives",
|
3
|
+
"version": "1.1.0-gen2-release.0",
|
4
|
+
"description": "Directive definitions for Amplify GraphQL transformers.",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "https://github.com/aws-amplify/amplify-category-api.git",
|
8
|
+
"directory": "packages/amplify-graphql-directives"
|
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
|
+
"aws",
|
17
|
+
"amplify"
|
18
|
+
],
|
19
|
+
"publishConfig": {
|
20
|
+
"access": "public"
|
21
|
+
},
|
22
|
+
"scripts": {
|
23
|
+
"build": "tsc",
|
24
|
+
"watch": "tsc -w",
|
25
|
+
"clean": "rimraf ./lib",
|
26
|
+
"test": "jest",
|
27
|
+
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
28
|
+
},
|
29
|
+
"jest": {
|
30
|
+
"transform": {
|
31
|
+
"^.+\\.tsx?$": "ts-jest"
|
32
|
+
},
|
33
|
+
"testURL": "http://localhost",
|
34
|
+
"testRegex": "(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
35
|
+
"moduleFileExtensions": [
|
36
|
+
"ts",
|
37
|
+
"tsx",
|
38
|
+
"js",
|
39
|
+
"jsx",
|
40
|
+
"json",
|
41
|
+
"node"
|
42
|
+
],
|
43
|
+
"collectCoverage": true,
|
44
|
+
"coverageProvider": "v8",
|
45
|
+
"coverageThreshold": {
|
46
|
+
"global": {
|
47
|
+
"branches": 100,
|
48
|
+
"functions": 100,
|
49
|
+
"lines": 100
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"coverageReporters": [
|
53
|
+
"clover",
|
54
|
+
"text"
|
55
|
+
],
|
56
|
+
"testEnvironment": "../../FixJestEnvironment.js",
|
57
|
+
"collectCoverageFrom": [
|
58
|
+
"src/**/*.ts"
|
59
|
+
],
|
60
|
+
"coveragePathIgnorePatterns": [
|
61
|
+
"/__tests__/",
|
62
|
+
"src/directives/directive.ts"
|
63
|
+
]
|
64
|
+
},
|
65
|
+
"gitHead": "a550843921e81b923214a9038b0725ac5e6b2b67"
|
66
|
+
}
|
@@ -3,7 +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
|
-
## [2.1.
|
6
|
+
## [2.1.20-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.19-gen2-release.1...@aws-amplify/graphql-function-transformer@2.1.20-gen2-release.0) (2024-03-29)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
9
|
+
|
10
|
+
## [2.1.19](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.18...@aws-amplify/graphql-function-transformer@2.1.19) (2024-03-28)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @aws-amplify/graphql-function-transformer
|
9
13
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-function-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"graphql-function-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAEpI,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAKjD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAYpH,qBAAa,mBAAoB,SAAQ,qBAAqB;IAGhD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IAF7C,OAAO,CAAC,cAAc,CAAyE;gBAElE,eAAe,CAAC,8CAAkC;IAI/E,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,OACnB,yCAAyC,KAC7C,IAAI,CAiBL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CA8H7D;CACH"}
|
package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js
CHANGED
@@ -25,18 +25,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.FunctionTransformer = void 0;
|
27
27
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
28
|
+
const graphql_directives_1 = require("@aws-amplify/graphql-directives");
|
28
29
|
const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
|
29
30
|
const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
|
30
31
|
const cdk = __importStar(require("aws-cdk-lib"));
|
31
32
|
const graphql_mapping_template_1 = require("graphql-mapping-template");
|
32
33
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
33
34
|
const FUNCTION_DIRECTIVE_STACK = 'FunctionDirectiveStack';
|
34
|
-
const directiveDefinition = `
|
35
|
-
directive @function(name: String!, region: String, accountId: String) repeatable on FIELD_DEFINITION
|
36
|
-
`;
|
37
35
|
class FunctionTransformer extends graphql_transformer_core_1.TransformerPluginBase {
|
38
36
|
constructor(functionNameMap) {
|
39
|
-
super('amplify-function-transformer',
|
37
|
+
super('amplify-function-transformer', graphql_directives_1.FunctionDirective.definition);
|
40
38
|
this.functionNameMap = functionNameMap;
|
41
39
|
this.resolverGroups = new Map();
|
42
40
|
this.field = (parent, definition, directive, acc) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-function-transformer.js","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAA4I;AAE5I,+DAAiD;AACjD,yDAA4D;AAC5D,iDAAmC;AACnC,uEAAqH;AACrH,2EAAyG;AAWzG,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"graphql-function-transformer.js","sourceRoot":"","sources":["../src/graphql-function-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAA4I;AAE5I,wEAAoE;AACpE,+DAAiD;AACjD,yDAA4D;AAC5D,iDAAmC;AACnC,uEAAqH;AACrH,2EAAyG;AAWzG,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AAE1D,MAAa,mBAAoB,SAAQ,gDAAqB;IAG5D,YAA6B,eAAkD;QAC7E,KAAK,CAAC,8BAA8B,EAAE,sCAAiB,CAAC,UAAU,CAAC,CAAC;QADzC,oBAAe,GAAf,eAAe,CAAmC;QAFvE,mBAAc,GAA+D,IAAI,GAAG,EAAE,CAAC;QAM/F,UAAK,GAAG,CACN,MAA8D,EAC9D,UAA+B,EAC/B,SAAwB,EACxB,GAA8C,EACxC,EAAE;YACR,MAAM,gBAAgB,GAAG,IAAI,2CAAgB,CAAC,SAAS,CAAC,CAAC;YACzD,MAAM,IAAI,GAAG,gBAAgB,CAAC,YAAY,CACxC;gBACE,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;gBACnC,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK;aACP,EACnC,IAAA,oDAAyB,EAAC,GAAG,CAAC,mBAAmB,CAAC,CACnD,CAAC;YACF,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,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,CAAC,EAChE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAC5E,CAAC,QAAQ,EAAE,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,MAAe,EAAE,SAAkB,EAAU,EAAE;IAEjF,OAAO,kBAAkB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB,aAAa,IAAI,EAAE,CAAC;AAChI,CAAC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-function-transformer",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.20-gen2-release.0",
|
4
4
|
"description": "Amplify GraphQL @function transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -28,14 +28,15 @@
|
|
28
28
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-
|
32
|
-
"@aws-amplify/graphql-transformer-
|
31
|
+
"@aws-amplify/graphql-directives": "1.1.0-gen2-release.0",
|
32
|
+
"@aws-amplify/graphql-transformer-core": "2.5.2-gen2-release.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "3.5.1-gen2-release.0",
|
33
34
|
"graphql": "^15.5.0",
|
34
|
-
"graphql-mapping-template": "4.20.
|
35
|
-
"graphql-transformer-common": "4.
|
35
|
+
"graphql-mapping-template": "4.20.15",
|
36
|
+
"graphql-transformer-common": "4.29.1-gen2-release.0"
|
36
37
|
},
|
37
38
|
"devDependencies": {
|
38
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.4.
|
39
|
+
"@aws-amplify/graphql-transformer-test-utils": "0.4.8-gen2-release.0"
|
39
40
|
},
|
40
41
|
"peerDependencies": {
|
41
42
|
"aws-cdk-lib": "^2.80.0",
|
@@ -78,5 +79,5 @@
|
|
78
79
|
"/__tests__/"
|
79
80
|
]
|
80
81
|
},
|
81
|
-
"gitHead": "
|
82
|
+
"gitHead": "a550843921e81b923214a9038b0725ac5e6b2b67"
|
82
83
|
}
|
@@ -3,7 +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
|
-
## [2.1.
|
6
|
+
## [2.1.20-gen2-release.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.19-gen2-release.1...@aws-amplify/graphql-http-transformer@2.1.20-gen2-release.0) (2024-03-29)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
|
+
|
10
|
+
## [2.1.19](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.18...@aws-amplify/graphql-http-transformer@2.1.19) (2024-03-28)
|
7
11
|
|
8
12
|
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
13
|
|
package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-http-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-http-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"graphql-http-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-http-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,qBAAqB,EACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAIpI,OAAO,EACL,aAAa,EACb,mBAAmB,EAGnB,2BAA2B,EAE3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAsDjB,qBAAa,eAAgB,SAAQ,qBAAqB;IACxD,OAAO,CAAC,aAAa,CAAoC;;IAMzD,KAAK,WACK,wBAAwB,GAAG,2BAA2B,cAClD,mBAAmB,aACpB,aAAa,WACf,yCAAyC,KACjD,IAAI,CAiGL;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CAuB7D;CACH"}
|
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.HttpTransformer = void 0;
|
27
27
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
28
|
+
const graphql_directives_1 = require("@aws-amplify/graphql-directives");
|
28
29
|
const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
|
29
30
|
const cdk = __importStar(require("aws-cdk-lib"));
|
30
31
|
const graphql_1 = require("graphql");
|
@@ -35,23 +36,9 @@ const URL_REGEX = /(http(s)?:\/\/)|(\/.*)/g;
|
|
35
36
|
const VALID_PROTOCOLS_REGEX = /^http(s)?:\/\//;
|
36
37
|
const HTTP_DIRECTIVE_STACK = 'HttpStack';
|
37
38
|
const RESOLVER_VERSION = '2018-05-29';
|
38
|
-
const directiveDefinition = `
|
39
|
-
directive @http(method: HttpMethod = GET, url: String!, headers: [HttpHeader] = []) on FIELD_DEFINITION
|
40
|
-
enum HttpMethod {
|
41
|
-
GET
|
42
|
-
POST
|
43
|
-
PUT
|
44
|
-
DELETE
|
45
|
-
PATCH
|
46
|
-
}
|
47
|
-
input HttpHeader {
|
48
|
-
key: String
|
49
|
-
value: String
|
50
|
-
}
|
51
|
-
`;
|
52
39
|
class HttpTransformer extends graphql_transformer_core_1.TransformerPluginBase {
|
53
40
|
constructor() {
|
54
|
-
super('amplify-http-transformer',
|
41
|
+
super('amplify-http-transformer', graphql_directives_1.HttpDirective.definition);
|
55
42
|
this.directiveList = [];
|
56
43
|
this.field = (parent, definition, directive, context) => {
|
57
44
|
var _a, _b;
|