@aws-amplify/graphql-api-construct 1.12.0-gen2-migration-0809.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +311 -227
- package/API.md +3 -15
- package/CHANGELOG.md +25 -3
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +5 -12
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/internal/default-parameters.js +1 -2
- package/lib/model-datasource-strategy-types.d.ts +1 -19
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/lib/types.d.ts +5 -28
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/ai-constructs/README.md +66 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +28 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +74 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +6 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +30 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +191 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +30 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +47 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +18 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +66 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.js +10 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.d.ts +15 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +32 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.d.ts +9 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.js +44 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +48 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.js +6 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +6 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +61 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.js +11 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/index.d.ts +3 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.js +34 -0
- package/node_modules/@aws-amplify/ai-constructs/lib/index.js +29 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +23 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +39 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
- package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
- package/node_modules/@aws-amplify/ai-constructs/package.json +37 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +19 -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 +6 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +26 -20
- package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +33 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/README.md +145 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +13 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +111 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts +10 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js +81 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +39 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +35 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js +6 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js +62 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +77 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js +57 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +34 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +104 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts +6 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js +59 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +50 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +45 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts +12 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js +68 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts +15 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js +44 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +20 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +184 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js +81 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts +25 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js +116 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +82 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +17 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +19 -13
- package/node_modules/@aws-amplify/graphql-directives/API.md +6 -0
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +10 -2
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js +31 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts +3 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js +24 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +5 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js +2 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +12 -6
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +13 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-generation-transformer/API.md +26 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +11 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/README.md +85 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts +32 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js +119 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js +6 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js +72 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js +78 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts +27 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js +31 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js +29 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +78 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +13 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +17 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +17 -13
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +17 -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/package.json +20 -16
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +15 -7
- 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 +2 -47
- 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/rds/resolver.d.ts +2 -2
- 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 +22 -4
- 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/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +3 -12
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +0 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +2 -4
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts +0 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +1 -111
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js +1 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts +0 -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 +0 -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.js +2 -2
- 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 +18 -16
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +19 -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 +3 -0
- 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/package.json +16 -12
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +23 -3
- 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 +12 -13
- 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 +13 -11
- 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 -11
- 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 +7 -0
- 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-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +1 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +1 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +0 -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 +8 -10
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +18 -14
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +23 -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 +3 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +21 -15
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +17 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +17 -13
- package/node_modules/@aws-amplify/graphql-transformer/API.md +0 -1
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +23 -2
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +11 -6
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +31 -22
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +11 -8
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +54 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +14 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js +3 -9
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts +5 -11
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js +6 -31
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +2 -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 +8 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts +3 -3
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +12 -16
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts +6 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +71 -23
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts +20 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js +89 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js +10 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts +21 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js +3 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js +44 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts +21 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js +27 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -2
- 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 +1 -9
- 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 +18 -12
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +12 -23
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +14 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +3 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +1 -6
- 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.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +4 -4
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +1 -0
- 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/lib/transformer-context/transform-parameters.d.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +13 -6
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +3 -10
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +0 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +0 -10
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transform-host-provider.ts +5 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +1 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transform-parameters.ts +0 -3
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-mapping-template/CHANGELOG.md +12 -0
- package/node_modules/graphql-mapping-template/LICENSE +201 -0
- package/node_modules/graphql-mapping-template/package.json +13 -5
- package/node_modules/graphql-transformer-common/API.md +0 -1
- package/node_modules/graphql-transformer-common/CHANGELOG.md +9 -3
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +0 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +0 -1
- package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
- package/node_modules/graphql-transformer-common/package.json +13 -6
- package/package.json +40 -29
- package/src/amplify-graphql-api.ts +3 -11
- package/src/internal/default-parameters.ts +0 -1
- package/src/model-datasource-strategy-types.ts +0 -21
- package/src/types.ts +5 -29
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +0 -13
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +0 -47
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/README.md +0 -18
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/index.js +0 -1848
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/package.json +0 -16
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +0 -21
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +0 -11
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-searchable-transformer",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.2",
|
4
4
|
"description": "Amplfy GraphQL @searchable transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -15,7 +15,8 @@
|
|
15
15
|
"graphql",
|
16
16
|
"cloudformation",
|
17
17
|
"aws",
|
18
|
-
"amplify"
|
18
|
+
"amplify",
|
19
|
+
"transformer"
|
19
20
|
],
|
20
21
|
"publishConfig": {
|
21
22
|
"access": "public"
|
@@ -28,27 +29,29 @@
|
|
28
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
30
|
},
|
30
31
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-directives": "
|
32
|
-
"@aws-amplify/graphql-model-transformer": "
|
33
|
-
"@aws-amplify/graphql-transformer-core": "
|
34
|
-
"@aws-amplify/graphql-transformer-interfaces": "
|
32
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
33
|
+
"@aws-amplify/graphql-model-transformer": "3.0.2",
|
34
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
35
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
35
36
|
"graphql": "^15.5.0",
|
36
|
-
"graphql-mapping-template": "
|
37
|
-
"graphql-transformer-common": "
|
37
|
+
"graphql-mapping-template": "5.0.1",
|
38
|
+
"graphql-transformer-common": "5.0.1"
|
38
39
|
},
|
39
40
|
"peerDependencies": {
|
40
|
-
"aws-cdk-lib": "^2.
|
41
|
+
"aws-cdk-lib": "^2.152.0",
|
41
42
|
"constructs": "^10.3.0"
|
42
43
|
},
|
43
44
|
"devDependencies": {
|
44
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
45
|
-
"@types/node": "^
|
45
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1",
|
46
|
+
"@types/node": "^18.0.0"
|
46
47
|
},
|
47
48
|
"jest": {
|
48
49
|
"transform": {
|
49
50
|
"^.+\\.tsx?$": "ts-jest"
|
50
51
|
},
|
51
|
-
"
|
52
|
+
"testEnvironmentOptions": {
|
53
|
+
"url": "http://localhost"
|
54
|
+
},
|
52
55
|
"testRegex": "(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
53
56
|
"moduleFileExtensions": [
|
54
57
|
"ts",
|
@@ -74,13 +77,16 @@
|
|
74
77
|
"modulePathIgnorePatterns": [
|
75
78
|
"overrides"
|
76
79
|
],
|
77
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
78
80
|
"collectCoverageFrom": [
|
79
81
|
"src/**/*.ts"
|
80
82
|
],
|
81
83
|
"coveragePathIgnorePatterns": [
|
82
84
|
"/__tests__/"
|
83
|
-
]
|
85
|
+
],
|
86
|
+
"snapshotFormat": {
|
87
|
+
"escapeString": true,
|
88
|
+
"printBasicPrototype": true
|
89
|
+
}
|
84
90
|
},
|
85
|
-
"gitHead": "
|
91
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
86
92
|
}
|
@@ -3,7 +3,23 @@
|
|
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
|
-
## [0.
|
6
|
+
## [0.4.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-sql-transformer@0.4.1...@aws-amplify/graphql-sql-transformer@0.4.2) (2024-09-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-sql-transformer
|
9
|
+
|
10
|
+
## [0.4.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-sql-transformer@0.4.0...@aws-amplify/graphql-sql-transformer@0.4.1) (2024-08-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-sql-transformer
|
13
|
+
|
14
|
+
# [0.4.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-sql-transformer@0.3.9...@aws-amplify/graphql-sql-transformer@0.4.0) (2024-08-20)
|
15
|
+
|
16
|
+
- feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
|
17
|
+
|
18
|
+
### BREAKING CHANGES
|
19
|
+
|
20
|
+
- distinguish from LTS version
|
21
|
+
|
22
|
+
## [0.3.9](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-sql-transformer@0.3.8...@aws-amplify/graphql-sql-transformer@0.3.9) (2024-08-12)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @aws-amplify/graphql-sql-transformer
|
9
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-sql-transformer",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.2",
|
4
4
|
"description": "Amplify GraphQL @sql transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -15,7 +15,8 @@
|
|
15
15
|
"graphql",
|
16
16
|
"cloudformation",
|
17
17
|
"aws",
|
18
|
-
"amplify"
|
18
|
+
"amplify",
|
19
|
+
"transformer"
|
19
20
|
],
|
20
21
|
"publishConfig": {
|
21
22
|
"access": "public"
|
@@ -28,19 +29,19 @@
|
|
28
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
30
|
},
|
30
31
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-directives": "
|
32
|
-
"@aws-amplify/graphql-model-transformer": "
|
33
|
-
"@aws-amplify/graphql-transformer-core": "
|
34
|
-
"@aws-amplify/graphql-transformer-interfaces": "
|
32
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
33
|
+
"@aws-amplify/graphql-model-transformer": "3.0.2",
|
34
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
35
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
35
36
|
"graphql": "^15.5.0",
|
36
|
-
"graphql-mapping-template": "
|
37
|
-
"graphql-transformer-common": "
|
37
|
+
"graphql-mapping-template": "5.0.1",
|
38
|
+
"graphql-transformer-common": "5.0.1"
|
38
39
|
},
|
39
40
|
"devDependencies": {
|
40
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
41
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1"
|
41
42
|
},
|
42
43
|
"peerDependencies": {
|
43
|
-
"aws-cdk-lib": "^2.
|
44
|
+
"aws-cdk-lib": "^2.152.0",
|
44
45
|
"constructs": "^10.3.0"
|
45
46
|
},
|
46
47
|
"jest": {
|
@@ -72,13 +73,16 @@
|
|
72
73
|
"modulePathIgnorePatterns": [
|
73
74
|
"overrides"
|
74
75
|
],
|
75
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
76
76
|
"collectCoverageFrom": [
|
77
77
|
"src/**/*.ts"
|
78
78
|
],
|
79
79
|
"coveragePathIgnorePatterns": [
|
80
80
|
"/__tests__/"
|
81
|
-
]
|
81
|
+
],
|
82
|
+
"snapshotFormat": {
|
83
|
+
"escapeString": true,
|
84
|
+
"printBasicPrototype": true
|
85
|
+
}
|
82
86
|
},
|
83
|
-
"gitHead": "
|
87
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
84
88
|
}
|
@@ -56,7 +56,6 @@ export type TransformerFactoryArgs = {
|
|
56
56
|
storageConfig?: any;
|
57
57
|
customTransformers?: TransformerPluginProvider[];
|
58
58
|
functionNameMap?: Record<string, IFunction>;
|
59
|
-
allowGen1Patterns?: boolean;
|
60
59
|
};
|
61
60
|
|
62
61
|
// (No @packageDocumentation comment for this package)
|
@@ -3,11 +3,32 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
-
# [1.
|
6
|
+
# [2.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@2.0.1...@aws-amplify/graphql-transformer@2.1.0) (2024-09-06)
|
7
7
|
|
8
8
|
### Features
|
9
9
|
|
10
|
-
-
|
10
|
+
- **conversation:** add conversation transformer ([#2827](https://github.com/aws-amplify/amplify-category-api/issues/2827)) ([cee6aef](https://github.com/aws-amplify/amplify-category-api/commit/cee6aef1358293fe51909a64d1cf9941afc46aba))
|
11
|
+
- **generation-transformer:** add generation transformer ([#2820](https://github.com/aws-amplify/amplify-category-api/issues/2820)) ([a86db4e](https://github.com/aws-amplify/amplify-category-api/commit/a86db4e40962565fb55b7262a7d771f21bacef2a))
|
12
|
+
|
13
|
+
## [2.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@2.0.0...@aws-amplify/graphql-transformer@2.0.1) (2024-08-28)
|
14
|
+
|
15
|
+
**Note:** Version bump only for package @aws-amplify/graphql-transformer
|
16
|
+
|
17
|
+
# [2.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@1.6.5...@aws-amplify/graphql-transformer@2.0.0) (2024-08-20)
|
18
|
+
|
19
|
+
### Bug Fixes
|
20
|
+
|
21
|
+
- change gen 1 patterns to warning message instead of error ([#2768](https://github.com/aws-amplify/amplify-category-api/issues/2768)) ([97b1f36](https://github.com/aws-amplify/amplify-category-api/commit/97b1f36e405808df2ed694c3b94a3da7b3d9759f))
|
22
|
+
|
23
|
+
- feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
|
24
|
+
|
25
|
+
### BREAKING CHANGES
|
26
|
+
|
27
|
+
- distinguish from LTS version
|
28
|
+
|
29
|
+
## [1.6.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@1.6.4...@aws-amplify/graphql-transformer@1.6.5) (2024-08-12)
|
30
|
+
|
31
|
+
**Note:** Version bump only for package @aws-amplify/graphql-transformer
|
11
32
|
|
12
33
|
## [1.6.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer@1.6.3...@aws-amplify/graphql-transformer@1.6.4) (2024-07-25)
|
13
34
|
|
@@ -7,7 +7,6 @@ export type TransformerFactoryArgs = {
|
|
7
7
|
storageConfig?: any;
|
8
8
|
customTransformers?: TransformerPluginProvider[];
|
9
9
|
functionNameMap?: Record<string, IFunction>;
|
10
|
-
allowGen1Patterns?: boolean;
|
11
10
|
};
|
12
11
|
export type TransformConfig = {
|
13
12
|
transformersFactoryArgs: TransformerFactoryArgs;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,cAAc,EAEd,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC1G,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"graphql-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,cAAc,EAEd,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC1G,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAQnD,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,kBAAkB,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAC7C,CAAC;AAKF,MAAM,MAAM,eAAe,GAAG;IAC5B,uBAAuB,EAAE,sBAAsB,CAAC;IAChD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,mBAAmB,EAAE,mBAAmB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAAc,sBAAsB,KAAG,yBAAyB,EA8BrG,CAAC;AAOF,eAAO,MAAM,kBAAkB,WAAY,eAAe,KAAG,gBAa5D,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAClD,4BAA4B,GAC5B,uBAAuB,GACvB,0BAA0B,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,KAAK,EAAE,SAAS,CAAC;IACjB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;IAC/C,aAAa,EAAE,aAAa,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAMJ,eAAO,MAAM,0BAA0B,QAAS,cAAc,KAAG,IAiBhE,CAAC;AAOF,eAAO,MAAM,gBAAgB,WAAY,sBAAsB,KAAG,IAiCjE,CAAC"}
|
@@ -14,30 +14,35 @@ const graphql_relational_transformer_1 = require("@aws-amplify/graphql-relationa
|
|
14
14
|
const graphql_searchable_transformer_1 = require("@aws-amplify/graphql-searchable-transformer");
|
15
15
|
const graphql_transformer_interfaces_1 = require("@aws-amplify/graphql-transformer-interfaces");
|
16
16
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
17
|
+
const graphql_generation_transformer_1 = require("@aws-amplify/graphql-generation-transformer");
|
18
|
+
const graphql_conversation_transformer_1 = require("@aws-amplify/graphql-conversation-transformer");
|
17
19
|
const constructTransformerChain = (options) => {
|
18
20
|
var _a;
|
19
21
|
const modelTransformer = new graphql_model_transformer_1.ModelTransformer();
|
20
22
|
const authTransformer = new graphql_auth_transformer_1.AuthTransformer();
|
21
23
|
const indexTransformer = new graphql_index_transformer_1.IndexTransformer();
|
22
24
|
const hasOneTransformer = new graphql_relational_transformer_1.HasOneTransformer();
|
23
|
-
const
|
25
|
+
const hasManyTransformer = new graphql_relational_transformer_1.HasManyTransformer();
|
26
|
+
const belongsToTransformer = new graphql_relational_transformer_1.BelongsToTransformer();
|
24
27
|
return [
|
25
28
|
modelTransformer,
|
26
29
|
new graphql_function_transformer_1.FunctionTransformer(options === null || options === void 0 ? void 0 : options.functionNameMap),
|
27
30
|
new graphql_http_transformer_1.HttpTransformer(),
|
28
|
-
|
31
|
+
new graphql_predictions_transformer_1.PredictionsTransformer(options === null || options === void 0 ? void 0 : options.storageConfig),
|
29
32
|
new graphql_index_transformer_1.PrimaryKeyTransformer(),
|
30
33
|
indexTransformer,
|
31
|
-
|
34
|
+
hasManyTransformer,
|
32
35
|
hasOneTransformer,
|
33
|
-
|
34
|
-
|
36
|
+
new graphql_relational_transformer_1.ManyToManyTransformer(modelTransformer, indexTransformer, hasOneTransformer, authTransformer),
|
37
|
+
belongsToTransformer,
|
38
|
+
new graphql_conversation_transformer_1.ConversationTransformer(modelTransformer, hasManyTransformer, belongsToTransformer, authTransformer),
|
39
|
+
new graphql_generation_transformer_1.GenerationTransformer(),
|
35
40
|
new graphql_default_value_transformer_1.DefaultValueTransformer(),
|
36
41
|
authTransformer,
|
37
42
|
new graphql_maps_to_transformer_1.MapsToTransformer(),
|
38
43
|
new graphql_sql_transformer_1.SqlTransformer(),
|
39
44
|
new graphql_maps_to_transformer_1.RefersToTransformer(),
|
40
|
-
|
45
|
+
new graphql_searchable_transformer_1.SearchableModelTransformer(),
|
41
46
|
...((_a = options === null || options === void 0 ? void 0 : options.customTransformers) !== null && _a !== void 0 ? _a : []),
|
42
47
|
];
|
43
48
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-transformer.js","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AACxE,sGAAyF;AACzF,4FAAgF;AAChF,oFAAwE;AACxE,sFAAiG;AACjG,0FAAkG;AAClG,sFAA0E;AAC1E,kFAAsE;AACtE,kGAAsF;AACtF,gGAKqD;AACrD,gGAAyF;AACzF,gGASqD;AAOrD,oFAA0G;
|
1
|
+
{"version":3,"file":"graphql-transformer.js","sourceRoot":"","sources":["../src/graphql-transformer.ts"],"names":[],"mappings":";;;AAAA,oFAAwE;AACxE,sGAAyF;AACzF,4FAAgF;AAChF,oFAAwE;AACxE,sFAAiG;AACjG,0FAAkG;AAClG,sFAA0E;AAC1E,kFAAsE;AACtE,kGAAsF;AACtF,gGAKqD;AACrD,gGAAyF;AACzF,gGASqD;AAOrD,oFAA0G;AAG1G,gGAAoF;AACpF,oGAAwF;AAwBjF,MAAM,yBAAyB,GAAG,CAAC,OAAgC,EAA+B,EAAE;;IACzG,MAAM,gBAAgB,GAAG,IAAI,4CAAgB,EAAE,CAAC;IAChD,MAAM,eAAe,GAAG,IAAI,0CAAe,EAAE,CAAC;IAC9C,MAAM,gBAAgB,GAAG,IAAI,4CAAgB,EAAE,CAAC;IAChD,MAAM,iBAAiB,GAAG,IAAI,kDAAiB,EAAE,CAAC;IAClD,MAAM,kBAAkB,GAAG,IAAI,mDAAkB,EAAE,CAAC;IACpD,MAAM,oBAAoB,GAAG,IAAI,qDAAoB,EAAE,CAAC;IAGxD,OAAO;QACL,gBAAgB;QAChB,IAAI,kDAAmB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAC;QACjD,IAAI,0CAAe,EAAE;QACrB,IAAI,wDAAsB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC;QAClD,IAAI,iDAAqB,EAAE;QAC3B,gBAAgB;QAChB,kBAAkB;QAClB,iBAAiB;QACjB,IAAI,sDAAqB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,CAAC;QACjG,oBAAoB;QACpB,IAAI,0DAAuB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,eAAe,CAAC;QACxG,IAAI,sDAAqB,EAAE;QAC3B,IAAI,2DAAuB,EAAE;QAC7B,eAAe;QACf,IAAI,+CAAiB,EAAE;QACvB,IAAI,wCAAc,EAAE;QACpB,IAAI,iDAAmB,EAAE;QACzB,IAAI,2DAA0B,EAAE;QAChC,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,EAAE,CAAC;KACvC,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,yBAAyB,6BA8BpC;AAOK,MAAM,kBAAkB,GAAG,CAAC,MAAuB,EAAoB,EAAE;IAC9E,MAAM,EAAE,uBAAuB,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAAC;IAE5H,MAAM,YAAY,GAAG,IAAA,iCAAyB,EAAC,uBAAuB,CAAC,CAAC;IAExE,OAAO,IAAI,2CAAgB,CAAC;QAC1B,YAAY;QACZ,YAAY;QACZ,UAAU;QACV,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;KACf,CAAC,CAAC;AACL,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AAmBK,MAAM,0BAA0B,GAAG,CAAC,GAAmB,EAAQ,EAAE;IACtE,QAAQ,GAAG,CAAC,KAAK,EAAE;QACjB,KAAK,oDAAmB,CAAC,KAAK;YAC5B,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC3B,MAAM;QACR,KAAK,oDAAmB,CAAC,IAAI;YAC3B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC1B,MAAM;QACR,KAAK,oDAAmB,CAAC,IAAI;YAC3B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC1B,MAAM;QACR,KAAK,oDAAmB,CAAC,KAAK;YAC5B,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC3B,MAAM;QACR;YACE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KAC9B;AACH,CAAC,CAAC;AAjBW,QAAA,0BAA0B,8BAiBrC;AAOK,MAAM,gBAAgB,GAAG,CAAC,MAA8B,EAAQ,EAAE;IACvE,MAAM,EACJ,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,gCAAgC,EAChC,eAAe,GAChB,GAAG,MAAM,CAAC;IAEX,MAAM,QAAQ,GAAG,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,kCAA0B,CAAC;IACnE,MAAM,SAAS,GAAG,IAAA,0BAAkB,EAAC,MAAM,CAAC,CAAC;IAC7C,IAAI;QACF,SAAS,CAAC,SAAS,CAAC;YAClB,aAAa;YACb,oBAAoB;YACpB,mBAAmB;YACnB,iBAAiB;YACjB,eAAe;YACf,kBAAkB;YAClB,MAAM;YACN,KAAK;YACL,gCAAgC;YAChC,eAAe;SAChB,CAAC,CAAC;KACJ;YAAS;QACR,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;KACvC;AACH,CAAC,CAAC;AAjCW,QAAA,gBAAgB,oBAiC3B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer",
|
3
|
-
"version": "1.
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "Amplify GraphQL Transformer Root Package",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -22,38 +22,44 @@
|
|
22
22
|
"cloudformation",
|
23
23
|
"aws",
|
24
24
|
"amplify",
|
25
|
-
"api"
|
25
|
+
"api",
|
26
|
+
"transformer"
|
26
27
|
],
|
27
28
|
"publishConfig": {
|
28
29
|
"access": "public"
|
29
30
|
},
|
30
31
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-auth-transformer": "
|
32
|
-
"@aws-amplify/graphql-
|
33
|
-
"@aws-amplify/graphql-
|
34
|
-
"@aws-amplify/graphql-
|
35
|
-
"@aws-amplify/graphql-
|
36
|
-
"@aws-amplify/graphql-
|
37
|
-
"@aws-amplify/graphql-
|
38
|
-
"@aws-amplify/graphql-
|
39
|
-
"@aws-amplify/graphql-
|
40
|
-
"@aws-amplify/graphql-
|
41
|
-
"@aws-amplify/graphql-
|
42
|
-
"@aws-amplify/graphql-transformer
|
43
|
-
"@aws-amplify/graphql-transformer
|
32
|
+
"@aws-amplify/graphql-auth-transformer": "4.1.0",
|
33
|
+
"@aws-amplify/graphql-conversation-transformer": "0.2.0",
|
34
|
+
"@aws-amplify/graphql-default-value-transformer": "3.0.2",
|
35
|
+
"@aws-amplify/graphql-function-transformer": "3.0.2",
|
36
|
+
"@aws-amplify/graphql-generation-transformer": "0.2.0",
|
37
|
+
"@aws-amplify/graphql-http-transformer": "3.0.2",
|
38
|
+
"@aws-amplify/graphql-index-transformer": "3.0.2",
|
39
|
+
"@aws-amplify/graphql-maps-to-transformer": "4.0.2",
|
40
|
+
"@aws-amplify/graphql-model-transformer": "3.0.2",
|
41
|
+
"@aws-amplify/graphql-predictions-transformer": "3.0.2",
|
42
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.2",
|
43
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.2",
|
44
|
+
"@aws-amplify/graphql-sql-transformer": "0.4.2",
|
45
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
46
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0"
|
44
47
|
},
|
45
48
|
"devDependencies": {
|
46
|
-
"@
|
49
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1",
|
50
|
+
"@types/node": "^18.0.0",
|
47
51
|
"fs-extra": "^8.1.0",
|
48
52
|
"rimraf": "^3.0.0",
|
49
|
-
"ts-jest": "
|
53
|
+
"ts-jest": "^29.0.0"
|
50
54
|
},
|
51
55
|
"peerDependencies": {
|
52
|
-
"aws-cdk-lib": "^2.
|
56
|
+
"aws-cdk-lib": "^2.152.0",
|
53
57
|
"constructs": "^10.3.0"
|
54
58
|
},
|
55
59
|
"jest": {
|
56
|
-
"
|
60
|
+
"testEnvironmentOptions": {
|
61
|
+
"url": "http://localhost"
|
62
|
+
},
|
57
63
|
"transform": {
|
58
64
|
"^.+\\.tsx?$": "ts-jest"
|
59
65
|
},
|
@@ -79,13 +85,16 @@
|
|
79
85
|
"clover",
|
80
86
|
"text"
|
81
87
|
],
|
82
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
83
88
|
"collectCoverageFrom": [
|
84
89
|
"src/**/*.ts"
|
85
90
|
],
|
86
91
|
"coveragePathIgnorePatterns": [
|
87
92
|
"/__tests__/"
|
88
|
-
]
|
93
|
+
],
|
94
|
+
"snapshotFormat": {
|
95
|
+
"escapeString": true,
|
96
|
+
"printBasicPrototype": true
|
97
|
+
}
|
89
98
|
},
|
90
|
-
"gitHead": "
|
99
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
91
100
|
}
|
@@ -33,6 +33,8 @@ import type {
|
|
33
33
|
import { GraphQLTransform, ResolverConfig, UserDefinedSlot } from '@aws-amplify/graphql-transformer-core';
|
34
34
|
import { Construct } from 'constructs';
|
35
35
|
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
36
|
+
import { GenerationTransformer } from '@aws-amplify/graphql-generation-transformer';
|
37
|
+
import { ConversationTransformer } from '@aws-amplify/graphql-conversation-transformer';
|
36
38
|
|
37
39
|
/**
|
38
40
|
* Arguments passed into a TransformerFactory
|
@@ -42,7 +44,6 @@ export type TransformerFactoryArgs = {
|
|
42
44
|
storageConfig?: any;
|
43
45
|
customTransformers?: TransformerPluginProvider[];
|
44
46
|
functionNameMap?: Record<string, IFunction>;
|
45
|
-
allowGen1Patterns?: boolean;
|
46
47
|
};
|
47
48
|
|
48
49
|
/**
|
@@ -62,27 +63,29 @@ export const constructTransformerChain = (options?: TransformerFactoryArgs): Tra
|
|
62
63
|
const authTransformer = new AuthTransformer();
|
63
64
|
const indexTransformer = new IndexTransformer();
|
64
65
|
const hasOneTransformer = new HasOneTransformer();
|
65
|
-
|
66
|
-
const
|
66
|
+
const hasManyTransformer = new HasManyTransformer();
|
67
|
+
const belongsToTransformer = new BelongsToTransformer();
|
67
68
|
|
68
69
|
// The default list of transformers should match DefaultDirectives in packages/amplify-graphql-directives/src/index.ts
|
69
70
|
return [
|
70
71
|
modelTransformer,
|
71
72
|
new FunctionTransformer(options?.functionNameMap),
|
72
73
|
new HttpTransformer(),
|
73
|
-
|
74
|
+
new PredictionsTransformer(options?.storageConfig),
|
74
75
|
new PrimaryKeyTransformer(),
|
75
76
|
indexTransformer,
|
76
|
-
|
77
|
+
hasManyTransformer,
|
77
78
|
hasOneTransformer,
|
78
|
-
|
79
|
-
|
79
|
+
new ManyToManyTransformer(modelTransformer, indexTransformer, hasOneTransformer, authTransformer),
|
80
|
+
belongsToTransformer,
|
81
|
+
new ConversationTransformer(modelTransformer, hasManyTransformer, belongsToTransformer, authTransformer),
|
82
|
+
new GenerationTransformer(),
|
80
83
|
new DefaultValueTransformer(),
|
81
84
|
authTransformer,
|
82
85
|
new MapsToTransformer(),
|
83
86
|
new SqlTransformer(),
|
84
87
|
new RefersToTransformer(),
|
85
|
-
|
88
|
+
new SearchableModelTransformer(),
|
86
89
|
...(options?.customTransformers ?? []),
|
87
90
|
];
|
88
91
|
};
|
@@ -5,7 +5,6 @@
|
|
5
5
|
```ts
|
6
6
|
|
7
7
|
import { AmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-interfaces';
|
8
|
-
import { APIIAMResourceProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
9
8
|
import { ApiKeyConfig } from 'aws-cdk-lib/aws-appsync';
|
10
9
|
import { AppSyncAuthConfiguration } from '@aws-amplify/graphql-transformer-interfaces';
|
11
10
|
import { AppSyncDataSourceType } from '@aws-amplify/graphql-transformer-interfaces';
|
@@ -14,6 +13,7 @@ import { AssetProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
|
14
13
|
import { AuthorizationConfig } from 'aws-cdk-lib/aws-appsync';
|
15
14
|
import { AuthorizationType } from 'aws-cdk-lib/aws-appsync';
|
16
15
|
import { CfnApiKey } from 'aws-cdk-lib/aws-appsync';
|
16
|
+
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
|
17
17
|
import { CfnGraphQLSchema } from 'aws-cdk-lib/aws-appsync';
|
18
18
|
import { CfnParameter } from 'aws-cdk-lib';
|
19
19
|
import { CfnResource } from 'aws-cdk-lib';
|
@@ -37,8 +37,8 @@ import { GraphqlApiBase } from 'aws-cdk-lib/aws-appsync';
|
|
37
37
|
import { GraphQLAPIProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
38
38
|
import { GraphQLError } from 'graphql';
|
39
39
|
import * as iam from 'aws-cdk-lib/aws-iam';
|
40
|
+
import { IamResource } from 'aws-cdk-lib/aws-appsync';
|
40
41
|
import { IGrantable } from 'aws-cdk-lib/aws-iam';
|
41
|
-
import { ImportedAmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-interfaces';
|
42
42
|
import { InlineMappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
43
43
|
import { InputObjectTypeDefinitionNode } from 'graphql';
|
44
44
|
import { InputObjectTypeExtensionNode } from 'graphql';
|
@@ -97,6 +97,7 @@ import { TypeNode } from 'graphql';
|
|
97
97
|
import { TypeSystemDefinitionNode } from 'graphql';
|
98
98
|
import { UnionTypeDefinitionNode } from 'graphql';
|
99
99
|
import { UnionTypeExtensionNode } from 'graphql';
|
100
|
+
import { Visibility } from 'aws-cdk-lib/aws-appsync';
|
100
101
|
|
101
102
|
// @public (undocumented)
|
102
103
|
export const APICategory = "api";
|
@@ -141,6 +142,9 @@ export const constructNonScalarFieldsStatement: (tableName: string, ctx: Transfo
|
|
141
142
|
// @public (undocumented)
|
142
143
|
export const constructSqlDirectiveDataSourceStrategies: (schema: string, dataSourceStrategy: ModelDataSourceStrategy, customSqlStatements?: Record<string, string>) => SqlDirectiveDataSourceStrategy[];
|
143
144
|
|
145
|
+
// @public (undocumented)
|
146
|
+
export const convertNamedTypeToJSONSchema: (namedType: NamedTypeNode) => JSONSchema;
|
147
|
+
|
144
148
|
// @public (undocumented)
|
145
149
|
function createSyncLambdaIAMPolicy(context: TransformerContextProvider, scope: Construct, name: string, region?: string): iam.Policy;
|
146
150
|
|
@@ -295,6 +299,24 @@ export const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefin
|
|
295
299
|
// @public (undocumented)
|
296
300
|
export const getType: (schema: DocumentNode_2, typeName: string) => ObjectTypeDefinitionNode | undefined;
|
297
301
|
|
302
|
+
// @public (undocumented)
|
303
|
+
export const GraphQLScalarJSONSchemaDefinition: {
|
304
|
+
Boolean: JSONSchema;
|
305
|
+
Int: JSONSchema;
|
306
|
+
Float: JSONSchema;
|
307
|
+
String: JSONSchema;
|
308
|
+
AWSDateTime: JSONSchema;
|
309
|
+
ID: JSONSchema;
|
310
|
+
AWSJSON: JSONSchema;
|
311
|
+
AWSEmail: JSONSchema;
|
312
|
+
AWSDate: JSONSchema;
|
313
|
+
AWSTime: JSONSchema;
|
314
|
+
AWSTimestamp: JSONSchema;
|
315
|
+
AWSPhone: JSONSchema;
|
316
|
+
AWSURL: JSONSchema;
|
317
|
+
AWSIPAddress: JSONSchema;
|
318
|
+
};
|
319
|
+
|
298
320
|
// @public (undocumented)
|
299
321
|
export class GraphQLTransform {
|
300
322
|
constructor(options: GraphQLTransformOptions);
|
@@ -434,13 +456,13 @@ export const isBuiltInGraphqlNode: (obj: DefinitionNode) => obj is ObjectTypeDef
|
|
434
456
|
export const isDefaultDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is DefaultDynamoDbModelDataSourceStrategy;
|
435
457
|
|
436
458
|
// @public (undocumented)
|
437
|
-
export const
|
459
|
+
export const isDisallowedScalarType: (type: string) => boolean;
|
438
460
|
|
439
461
|
// @public (undocumented)
|
440
|
-
export const
|
462
|
+
export const isDynamoDbModel: (ctx: DataSourceStrategiesProvider, typename: string) => boolean;
|
441
463
|
|
442
464
|
// @public (undocumented)
|
443
|
-
export const
|
465
|
+
export const isDynamoDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is "DYNAMODB";
|
444
466
|
|
445
467
|
// @public (undocumented)
|
446
468
|
function isLambdaSyncConfig(syncConfig: SyncConfig): syncConfig is SyncConfigLambda;
|
@@ -465,6 +487,9 @@ export const isQueryNode: (obj: DefinitionNode) => obj is ObjectTypeDefinitionNo
|
|
465
487
|
};
|
466
488
|
});
|
467
489
|
|
490
|
+
// @public (undocumented)
|
491
|
+
export const isQueryType: (typeName: string) => typeName is "Query";
|
492
|
+
|
468
493
|
// @public (undocumented)
|
469
494
|
export const isSqlDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is ModelDataSourceStrategySqlDbType;
|
470
495
|
|
@@ -474,6 +499,24 @@ export const isSqlModel: (ctx: DataSourceStrategiesProvider, typename: string) =
|
|
474
499
|
// @public (undocumented)
|
475
500
|
export const isSqlStrategy: (strategy: ModelDataSourceStrategy) => strategy is SQLLambdaModelDataSourceStrategy;
|
476
501
|
|
502
|
+
// @public (undocumented)
|
503
|
+
export type JSONSchema = {
|
504
|
+
type: string;
|
505
|
+
properties?: Record<string, JSONSchema>;
|
506
|
+
required?: string[];
|
507
|
+
items?: JSONSchema;
|
508
|
+
enum?: (string | number | boolean | null)[];
|
509
|
+
minimum?: number;
|
510
|
+
maximum?: number;
|
511
|
+
minLength?: number;
|
512
|
+
maxLength?: number;
|
513
|
+
pattern?: string;
|
514
|
+
format?: string;
|
515
|
+
description?: string;
|
516
|
+
default?: JSONLike;
|
517
|
+
additionalProperties?: boolean | JSONSchema;
|
518
|
+
};
|
519
|
+
|
477
520
|
// @public (undocumented)
|
478
521
|
export class MappingTemplate {
|
479
522
|
// Warning: (ae-forgotten-export) The symbol "InlineTemplate" needs to be exported by the entry point index.d.ts
|
@@ -615,6 +658,9 @@ export class StackManager implements StackManagerProvider {
|
|
615
658
|
readonly scope: Construct;
|
616
659
|
}
|
617
660
|
|
661
|
+
// @public (undocumented)
|
662
|
+
export const supportedScalarTypes: string[];
|
663
|
+
|
618
664
|
// @public (undocumented)
|
619
665
|
export type SyncConfig = SyncConfigOptimistic | SyncConfigServer | SyncConfigLambda;
|
620
666
|
|
@@ -771,9 +817,9 @@ export abstract class TransformerPluginBase implements TransformerPluginProvider
|
|
771
817
|
|
772
818
|
// @public (undocumented)
|
773
819
|
export class TransformerResolver implements TransformerResolverProvider {
|
774
|
-
constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined);
|
820
|
+
constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty | undefined);
|
775
821
|
// (undocumented)
|
776
|
-
addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider) => void;
|
822
|
+
addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty) => void;
|
777
823
|
// Warning: (ae-forgotten-export) The symbol "Slot" needs to be exported by the entry point index.d.ts
|
778
824
|
//
|
779
825
|
// (undocumented)
|
@@ -821,6 +867,7 @@ function validateResolverConfigForType(ctx: TransformerSchemaVisitStepContextPro
|
|
821
867
|
// Warnings were encountered during analysis:
|
822
868
|
//
|
823
869
|
// src/config/transformer-config.ts:26:3 - (ae-forgotten-export) The symbol "LambdaConflictHandler" needs to be exported by the entry point index.d.ts
|
870
|
+
// src/utils/ai/json-schema.ts:14:3 - (ae-forgotten-export) The symbol "JSONLike" needs to be exported by the entry point index.d.ts
|
824
871
|
|
825
872
|
// (No @packageDocumentation comment for this package)
|
826
873
|
|
@@ -3,12 +3,23 @@
|
|
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.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@3.0.1...@aws-amplify/graphql-transformer-core@3.1.0) (2024-09-06)
|
7
7
|
|
8
8
|
### Features
|
9
9
|
|
10
|
-
-
|
11
|
-
|
10
|
+
- **conversation:** add conversation transformer ([#2827](https://github.com/aws-amplify/amplify-category-api/issues/2827)) ([cee6aef](https://github.com/aws-amplify/amplify-category-api/commit/cee6aef1358293fe51909a64d1cf9941afc46aba))
|
11
|
+
|
12
|
+
## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@3.0.0...@aws-amplify/graphql-transformer-core@3.0.1) (2024-08-28)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @aws-amplify/graphql-transformer-core
|
15
|
+
|
16
|
+
# [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.3...@aws-amplify/graphql-transformer-core@3.0.0) (2024-08-20)
|
17
|
+
|
18
|
+
- feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
|
19
|
+
|
20
|
+
### BREAKING CHANGES
|
21
|
+
|
22
|
+
- distinguish from LTS version
|
12
23
|
|
13
24
|
## [2.9.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.2...@aws-amplify/graphql-transformer-core@2.9.3) (2024-07-15)
|
14
25
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
-
import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
|
2
|
+
import { BaseDataSource, CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
|
3
3
|
import { Construct } from 'constructs';
|
4
4
|
import { GraphQLApi } from './graphql-api';
|
5
5
|
export interface BaseFunctionConfigurationProps {
|
@@ -10,6 +10,7 @@ export interface BaseFunctionConfigurationProps {
|
|
10
10
|
export interface FunctionConfigurationProps extends BaseFunctionConfigurationProps {
|
11
11
|
readonly api: GraphQLApi;
|
12
12
|
readonly dataSource: BaseDataSource | string;
|
13
|
+
readonly runtime: CfnFunctionConfiguration.AppSyncRuntimeProperty | undefined;
|
13
14
|
}
|
14
15
|
export declare class AppSyncFunctionConfiguration extends Construct {
|
15
16
|
readonly arn: string;
|