@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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"graphql-json-schema-type.js","sourceRoot":"","sources":["../../src/utils/graphql-json-schema-type.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { FieldDefinitionNode } from 'graphql';
|
3
|
+
import { JSONSchema } from '@aws-amplify/graphql-transformer-core';
|
4
|
+
export type Tool = {
|
5
|
+
toolSpec: ToolSpec;
|
6
|
+
};
|
7
|
+
export type Tools = {
|
8
|
+
tools: Tool[];
|
9
|
+
};
|
10
|
+
export type ToolConfig = {
|
11
|
+
tools: Tool[];
|
12
|
+
toolChoice: {
|
13
|
+
tool: {
|
14
|
+
name: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
18
|
+
type ToolSpec = {
|
19
|
+
name: string;
|
20
|
+
description: string;
|
21
|
+
inputSchema: {
|
22
|
+
json: JSONSchema;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
export declare const createResponseTypeTool: (field: FieldDefinitionNode, ctx: TransformerContextProvider) => ToolConfig;
|
26
|
+
export {};
|
27
|
+
//# sourceMappingURL=tools.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;CACH,CAAC;AAiBF,eAAO,MAAM,sBAAsB,UAAW,mBAAmB,OAAO,0BAA0B,KAAG,UA4BpG,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createResponseTypeTool = void 0;
|
4
|
+
const graphql_json_schema_type_1 = require("./graphql-json-schema-type");
|
5
|
+
const createResponseTypeTool = (field, ctx) => {
|
6
|
+
const { type } = field;
|
7
|
+
const schema = (0, graphql_json_schema_type_1.generateJSONSchemaFromTypeNode)(type, ctx);
|
8
|
+
const boxedSchema = {
|
9
|
+
type: 'object',
|
10
|
+
properties: {
|
11
|
+
value: schema,
|
12
|
+
},
|
13
|
+
required: ['value'],
|
14
|
+
};
|
15
|
+
const tools = [
|
16
|
+
{
|
17
|
+
toolSpec: {
|
18
|
+
name: 'responseType',
|
19
|
+
description: 'Generate a response type for the given field',
|
20
|
+
inputSchema: {
|
21
|
+
json: boxedSchema,
|
22
|
+
},
|
23
|
+
},
|
24
|
+
},
|
25
|
+
];
|
26
|
+
const toolChoice = { tool: { name: 'responseType' } };
|
27
|
+
const toolConfig = { tools, toolChoice };
|
28
|
+
return toolConfig;
|
29
|
+
};
|
30
|
+
exports.createResponseTypeTool = createResponseTypeTool;
|
31
|
+
//# sourceMappingURL=tools.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/utils/tools.ts"],"names":[],"mappings":";;;AAEA,yEAA4E;AA2CrE,MAAM,sBAAsB,GAAG,CAAC,KAA0B,EAAE,GAA+B,EAAc,EAAE;IAChH,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACvB,MAAM,MAAM,GAAG,IAAA,yDAA8B,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAIzD,MAAM,WAAW,GAAG;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,MAAM;SACd;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB,CAAC;IACF,MAAM,KAAK,GAAW;QACpB;YACE,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;gBACpB,WAAW,EAAE,8CAA8C;gBAC3D,WAAW,EAAE;oBACX,IAAI,EAAE,WAAW;iBAClB;aACF;SACF;KACF,CAAC;IACF,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,CAAC;IACtD,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAEzC,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AA5BW,QAAA,sBAAsB,0BA4BjC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { TransformerContextProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { GenerationDirectiveConfiguration } from './grapqhl-generation-transformer';
|
3
|
+
export declare const validate: (config: GenerationDirectiveConfiguration, ctx: TransformerContextProvider) => void;
|
4
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAcpF,eAAO,MAAM,QAAQ,WAAY,gCAAgC,OAAO,0BAA0B,KAAG,IAGpG,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.validate = void 0;
|
4
|
+
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
5
|
+
const graphql_transformer_core_2 = require("@aws-amplify/graphql-transformer-core");
|
6
|
+
const validate = (config, ctx) => {
|
7
|
+
validateFieldType(config);
|
8
|
+
validateInferenceConfig(config);
|
9
|
+
};
|
10
|
+
exports.validate = validate;
|
11
|
+
const validateFieldType = (config) => {
|
12
|
+
const { parent } = config;
|
13
|
+
if (!(0, graphql_transformer_core_2.isQueryType)(parent.name.value)) {
|
14
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError('@generation directive must be used on Query field.');
|
15
|
+
}
|
16
|
+
};
|
17
|
+
const validateInferenceConfig = (config) => {
|
18
|
+
const { maxTokens, temperature, topP } = config.inferenceConfiguration;
|
19
|
+
if (maxTokens !== undefined && maxTokens < 1) {
|
20
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@generation directive maxTokens valid range: Minimum value of 1. Provided: ${maxTokens}`);
|
21
|
+
}
|
22
|
+
if (temperature !== undefined && (temperature < 0 || temperature > 1)) {
|
23
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@generation directive temperature valid range: Minimum value of 0. Maximum value of 1. Provided: ${temperature}`);
|
24
|
+
}
|
25
|
+
if (topP !== undefined && (topP < 0 || topP > 1)) {
|
26
|
+
throw new graphql_transformer_core_1.InvalidDirectiveError(`@generation directive topP valid range: Minimum value of 0. Maximum value of 1. Provided: ${topP}`);
|
27
|
+
}
|
28
|
+
};
|
29
|
+
//# sourceMappingURL=validation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;;AAAA,oFAA8E;AAG9E,oFAAoE;AAa7D,MAAM,QAAQ,GAAG,CAAC,MAAwC,EAAE,GAA+B,EAAQ,EAAE;IAC1G,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1B,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC,CAAC;AAHW,QAAA,QAAQ,YAGnB;AAWF,MAAM,iBAAiB,GAAG,CAAC,MAAwC,EAAQ,EAAE;IAC3E,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,IAAA,sCAAW,EAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACnC,MAAM,IAAI,gDAAqB,CAAC,oDAAoD,CAAC,CAAC;KACvF;AACH,CAAC,CAAC;AAOF,MAAM,uBAAuB,GAAG,CAAC,MAAwC,EAAQ,EAAE;IACjF,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC;IAGvE,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,GAAG,CAAC,EAAE;QAC5C,MAAM,IAAI,gDAAqB,CAAC,8EAA8E,SAAS,EAAE,CAAC,CAAC;KAC5H;IAED,IAAI,WAAW,KAAK,SAAS,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC,CAAC,EAAE;QACrE,MAAM,IAAI,gDAAqB,CAC7B,oGAAoG,WAAW,EAAE,CAClH,CAAC;KACH;IAED,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,EAAE;QAChD,MAAM,IAAI,gDAAqB,CAAC,6FAA6F,IAAI,EAAE,CAAC,CAAC;KACtI;AACH,CAAC,CAAC"}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"name": "@aws-amplify/graphql-generation-transformer",
|
3
|
+
"version": "0.2.0",
|
4
|
+
"description": "Amplify GraphQL @generation transformer",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "https://github.com/aws-amplify/amplify-category-api.git",
|
8
|
+
"directory": "packages/amplify-graphql-generation-transformer"
|
9
|
+
},
|
10
|
+
"author": "Amazon Web Services",
|
11
|
+
"license": "Apache-2.0",
|
12
|
+
"main": "lib/index.js",
|
13
|
+
"types": "lib/index.d.ts",
|
14
|
+
"keywords": [],
|
15
|
+
"publishConfig": {
|
16
|
+
"access": "public"
|
17
|
+
},
|
18
|
+
"scripts": {
|
19
|
+
"build": "tsc",
|
20
|
+
"watch": "tsc -w",
|
21
|
+
"clean": "rimraf ./lib",
|
22
|
+
"test": "jest",
|
23
|
+
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
27
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
28
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
29
|
+
"graphql": "^15.5.0",
|
30
|
+
"graphql-mapping-template": "5.0.1",
|
31
|
+
"graphql-transformer-common": "5.0.1",
|
32
|
+
"immer": "^9.0.12"
|
33
|
+
},
|
34
|
+
"devDependencies": {
|
35
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1"
|
36
|
+
},
|
37
|
+
"peerDependencies": {
|
38
|
+
"aws-cdk-lib": "^2.152.0",
|
39
|
+
"constructs": "^10.3.0"
|
40
|
+
},
|
41
|
+
"jest": {
|
42
|
+
"transform": {
|
43
|
+
"^.+\\.(ts|tsx)?$": "ts-jest"
|
44
|
+
},
|
45
|
+
"testRegex": "(src/__tests__/.*.test.ts)$",
|
46
|
+
"moduleFileExtensions": [
|
47
|
+
"ts",
|
48
|
+
"tsx",
|
49
|
+
"js",
|
50
|
+
"jsx",
|
51
|
+
"json",
|
52
|
+
"node"
|
53
|
+
],
|
54
|
+
"collectCoverage": true,
|
55
|
+
"coverageProvider": "v8",
|
56
|
+
"coverageThreshold": {
|
57
|
+
"global": {
|
58
|
+
"branches": 89,
|
59
|
+
"functions": 100,
|
60
|
+
"lines": 99
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"coverageReporters": [
|
64
|
+
"clover",
|
65
|
+
"text"
|
66
|
+
],
|
67
|
+
"modulePathIgnorePatterns": [
|
68
|
+
"overrides"
|
69
|
+
],
|
70
|
+
"collectCoverageFrom": [
|
71
|
+
"src/**/*.ts"
|
72
|
+
],
|
73
|
+
"coveragePathIgnorePatterns": [
|
74
|
+
"/__tests__/"
|
75
|
+
]
|
76
|
+
},
|
77
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
78
|
+
}
|
@@ -3,10 +3,22 @@
|
|
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.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@3.0.1...@aws-amplify/graphql-http-transformer@3.0.2) (2024-09-06)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
9
9
|
|
10
|
+
## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@3.0.0...@aws-amplify/graphql-http-transformer@3.0.1) (2024-08-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
13
|
+
|
14
|
+
# [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.26...@aws-amplify/graphql-http-transformer@3.0.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
|
+
|
10
22
|
## [2.1.26](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@2.1.25...@aws-amplify/graphql-http-transformer@2.1.26) (2024-07-15)
|
11
23
|
|
12
24
|
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-http-transformer",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.2",
|
4
4
|
"description": "Amplify GraphQL @http 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,18 +29,18 @@
|
|
28
29
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
29
30
|
},
|
30
31
|
"dependencies": {
|
31
|
-
"@aws-amplify/graphql-directives": "
|
32
|
-
"@aws-amplify/graphql-transformer-core": "
|
33
|
-
"@aws-amplify/graphql-transformer-interfaces": "
|
32
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
33
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
34
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
34
35
|
"graphql": "^15.5.0",
|
35
|
-
"graphql-mapping-template": "
|
36
|
-
"graphql-transformer-common": "
|
36
|
+
"graphql-mapping-template": "5.0.1",
|
37
|
+
"graphql-transformer-common": "5.0.1"
|
37
38
|
},
|
38
39
|
"devDependencies": {
|
39
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
40
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1"
|
40
41
|
},
|
41
42
|
"peerDependencies": {
|
42
|
-
"aws-cdk-lib": "^2.
|
43
|
+
"aws-cdk-lib": "^2.152.0",
|
43
44
|
"constructs": "^10.3.0"
|
44
45
|
},
|
45
46
|
"jest": {
|
@@ -71,13 +72,16 @@
|
|
71
72
|
"modulePathIgnorePatterns": [
|
72
73
|
"overrides"
|
73
74
|
],
|
74
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
75
75
|
"collectCoverageFrom": [
|
76
76
|
"src/**/*.ts"
|
77
77
|
],
|
78
78
|
"coveragePathIgnorePatterns": [
|
79
79
|
"/__tests__/"
|
80
|
-
]
|
80
|
+
],
|
81
|
+
"snapshotFormat": {
|
82
|
+
"escapeString": true,
|
83
|
+
"printBasicPrototype": true
|
84
|
+
}
|
81
85
|
},
|
82
|
-
"gitHead": "
|
86
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
83
87
|
}
|
@@ -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
|
-
## [
|
6
|
+
## [3.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@3.0.1...@aws-amplify/graphql-index-transformer@3.0.2) (2024-09-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
9
|
+
|
10
|
+
## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@3.0.0...@aws-amplify/graphql-index-transformer@3.0.1) (2024-08-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
13
|
+
|
14
|
+
# [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.4.9...@aws-amplify/graphql-index-transformer@3.0.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
|
+
## [2.4.9](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-index-transformer@2.4.8...@aws-amplify/graphql-index-transformer@2.4.9) (2024-08-12)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @aws-amplify/graphql-index-transformer
|
9
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-index-transformer",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.2",
|
4
4
|
"description": "Amplify GraphQL index and key transformers",
|
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": {
|
@@ -69,13 +70,16 @@
|
|
69
70
|
"clover",
|
70
71
|
"text"
|
71
72
|
],
|
72
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
73
73
|
"collectCoverageFrom": [
|
74
74
|
"src/**/*.ts"
|
75
75
|
],
|
76
76
|
"coveragePathIgnorePatterns": [
|
77
77
|
"/__tests__/"
|
78
|
-
]
|
78
|
+
],
|
79
|
+
"snapshotFormat": {
|
80
|
+
"escapeString": true,
|
81
|
+
"printBasicPrototype": true
|
82
|
+
}
|
79
83
|
},
|
80
|
-
"gitHead": "
|
84
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
81
85
|
}
|
@@ -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
|
-
## [
|
6
|
+
## [4.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@4.0.1...@aws-amplify/graphql-maps-to-transformer@4.0.2) (2024-09-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
9
|
+
|
10
|
+
## [4.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@4.0.0...@aws-amplify/graphql-maps-to-transformer@4.0.1) (2024-08-28)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
13
|
+
|
14
|
+
# [4.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.23...@aws-amplify/graphql-maps-to-transformer@4.0.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
|
+
## [3.4.23](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-maps-to-transformer@3.4.22...@aws-amplify/graphql-maps-to-transformer@3.4.23) (2024-08-12)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @aws-amplify/graphql-maps-to-transformer
|
9
25
|
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-maps-to-transformer",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.2",
|
4
4
|
"description": "Amplify GraphQL @mapsTo transformer",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -17,7 +17,8 @@
|
|
17
17
|
"cloudformation",
|
18
18
|
"aws",
|
19
19
|
"mapsto",
|
20
|
-
"transformer"
|
20
|
+
"transformer",
|
21
|
+
"refersTo"
|
21
22
|
],
|
22
23
|
"publishConfig": {
|
23
24
|
"access": "public"
|
@@ -30,22 +31,22 @@
|
|
30
31
|
"extract-api": "ts-node ../../scripts/extract-api.ts"
|
31
32
|
},
|
32
33
|
"dependencies": {
|
33
|
-
"@aws-amplify/graphql-directives": "
|
34
|
-
"@aws-amplify/graphql-transformer-core": "
|
35
|
-
"@aws-amplify/graphql-transformer-interfaces": "
|
36
|
-
"graphql-mapping-template": "
|
37
|
-
"graphql-transformer-common": "
|
34
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
35
|
+
"@aws-amplify/graphql-transformer-core": "3.1.0",
|
36
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
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-index-transformer": "
|
45
|
-
"@aws-amplify/graphql-model-transformer": "
|
46
|
-
"@aws-amplify/graphql-relational-transformer": "
|
47
|
-
"@aws-amplify/graphql-searchable-transformer": "
|
48
|
-
"@aws-amplify/graphql-transformer-test-utils": "0.
|
45
|
+
"@aws-amplify/graphql-index-transformer": "3.0.2",
|
46
|
+
"@aws-amplify/graphql-model-transformer": "3.0.2",
|
47
|
+
"@aws-amplify/graphql-relational-transformer": "3.0.2",
|
48
|
+
"@aws-amplify/graphql-searchable-transformer": "3.0.2",
|
49
|
+
"@aws-amplify/graphql-transformer-test-utils": "1.0.1",
|
49
50
|
"graphql": "^15.5.0"
|
50
51
|
},
|
51
52
|
"jest": {
|
@@ -77,10 +78,13 @@
|
|
77
78
|
"clover",
|
78
79
|
"text"
|
79
80
|
],
|
80
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
81
81
|
"coveragePathIgnorePatterns": [
|
82
82
|
"/__tests__/"
|
83
|
-
]
|
83
|
+
],
|
84
|
+
"snapshotFormat": {
|
85
|
+
"escapeString": true,
|
86
|
+
"printBasicPrototype": true
|
87
|
+
}
|
84
88
|
},
|
85
|
-
"gitHead": "
|
89
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
86
90
|
}
|
@@ -3,17 +3,25 @@
|
|
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.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@3.0.1...@aws-amplify/graphql-model-transformer@3.0.2) (2024-09-06)
|
7
7
|
|
8
|
-
|
8
|
+
**Note:** Version bump only for package @aws-amplify/graphql-model-transformer
|
9
9
|
|
10
|
-
|
10
|
+
## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@3.0.0...@aws-amplify/graphql-model-transformer@3.0.1) (2024-08-28)
|
11
11
|
|
12
|
-
|
12
|
+
**Note:** Version bump only for package @aws-amplify/graphql-model-transformer
|
13
|
+
|
14
|
+
# [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@2.11.4...@aws-amplify/graphql-model-transformer@3.0.0) (2024-08-20)
|
13
15
|
|
14
|
-
-
|
15
|
-
|
16
|
-
|
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
|
+
## [2.11.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@2.11.3...@aws-amplify/graphql-model-transformer@2.11.4) (2024-08-12)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @aws-amplify/graphql-model-transformer
|
17
25
|
|
18
26
|
## [2.11.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-model-transformer@2.11.2...@aws-amplify/graphql-model-transformer@2.11.3) (2024-07-25)
|
19
27
|
|
package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-model-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-model-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAeL,oBAAoB,EAKrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,oCAAoC,EACpC,0BAA0B,EAC1B,wBAAwB,EACxB,qCAAqC,EACrC,2BAA2B,EAC3B,yCAAyC,EACzC,6CAA6C,EAC7C,wCAAwC,
|
1
|
+
{"version":3,"file":"graphql-model-transformer.d.ts","sourceRoot":"","sources":["../src/graphql-model-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAeL,oBAAoB,EAKrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,oCAAoC,EACpC,0BAA0B,EAC1B,wBAAwB,EACxB,qCAAqC,EACrC,2BAA2B,EAC3B,yCAAyC,EACzC,6CAA6C,EAC7C,wCAAwC,EAEzC,MAAM,6CAA6C,CAAC;AAGrD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,EACL,aAAa,EAGb,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAiCjB,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAMlD,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AASnC,qBAAa,gBAAiB,SAAQ,oBAAqB,YAAW,wBAAwB;IAC5F,OAAO,CAAC,OAAO,CAA0B;IAEzC,OAAO,CAAC,WAAW,CAA8B;IAEjD,OAAO,CAAC,uBAAuB,CAA0B;IAEzD,OAAO,CAAC,oBAAoB,CAAkF;IAE9G,OAAO,CAAC,4BAA4B,CAA8D;IAKlG,OAAO,CAAC,oBAAoB,CAAuD;gBAEvE,OAAO,GAAE,uBAA4B;IAQjD,MAAM,QAAS,oCAAoC,KAAG,IAAI,CAoBxD;IAEF,MAAM,eAAgB,wBAAwB,aAAa,aAAa,OAAO,yCAAyC,KAAG,IAAI,CAwG7H;IAEF,OAAO,YAAa,qCAAqC,KAAG,IAAI,CAK9D;IAEF,eAAe,QAAS,6CAA6C,KAAG,IAAI,CAoE1E;IAEF,iBAAiB,YAAa,0BAA0B,KAAG,IAAI,CAI7D;IAEF,mBAAmB,QACZ,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,oBAAoB,QACb,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAO5B;IAEF,sBAAsB,QACf,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,sBAAsB,QACf,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAO5B;IAEF,sBAAsB,QACf,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,wBAAwB,QACjB,0BAA0B,YACrB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,wBAAwB,QACjB,0BAA0B,YACrB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,wBAAwB,QACjB,0BAA0B,YACrB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,oBAAoB,QACb,0BAA0B,QACzB,wBAAwB,YACpB,MAAM,aACL,MAAM,qBACE,MAAM,KACxB,2BAA2B,CAM5B;IAEF,eAAe,qBACK,qBAAqB,eAC1B,IAAI;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,iBAAiB,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC,KACD,MAAM,CAWP;IAEF,OAAO,CAAC,iBAAiB,CAcvB;IAEF,OAAO,CAAC,oBAAoB,CAc1B;IAEF,OAAO,CAAC,wBAAwB,CAgC9B;IAEF,kBAAkB,SACV,wBAAwB;mBACZ,MAAM;kBAAY,MAAM;cAAQ,cAAc;2BAAqB,MAAM;OAM3F;IAEF,qBAAqB,SACb,wBAAwB;mBACZ,MAAM;kBAAY,MAAM;cAAQ,iBAAiB;2BAAqB,MAAM;OAM9F;IAEF,yBAAyB,SACjB,wBAAwB;mBAEnB,MAAM;kBACP,MAAM;cACV,qBAAqB;2BACR,MAAM;OAOzB;IAGF,qBAAqB,SAAU,wBAAwB,KAAG,kBAAkB,CAAsC;IAElH,iBAAiB,QAAO,qBAAqB,CAA0C;IAEvF,SAAS,QACF,6CAA6C,QAC5C,wBAAwB;mBAEjB,MAAM;kBACP,MAAM;cACV,cAAc,GAAG,iBAAiB,GAAG,qBAAqB;UAEjE,wBAAwB,EAAE,CAqH3B;IAEF,aAAa,QACN,6CAA6C,QAC5C,wBAAwB;mBAEjB,MAAM;kBACP,MAAM;cACV,cAAc,GAAG,iBAAiB,GAAG,qBAAqB;UAEjE,wBAAwB,CA0BzB;IAKF,aAAa,YAAa,0BAA0B,OAAO,wBAAwB,SAAS,IAAI,KAAK,aAAa,MAAM,KAAG,IAAI,KAAK,CAGlI;IAEF,OAAO,CAAC,oBAAoB,CAc1B;IAEF,OAAO,CAAC,YAAY,CAAuE;IAE3F,OAAO,CAAC,0BAA0B,CAAqD;IAOvF,OAAO,CAAC,wBAAwB,CAqC9B;IAEF,OAAO,CAAC,kBAAkB,CAYxB;IAEF,OAAO,CAAC,oCAAoC,CAc1C;IAEF,4BAA4B,QAAS,wCAAwC,KAAG,IAAI,CAMlF;IAEF,OAAO,CAAC,UAAU,CAGf;IAMH,OAAO,CAAC,oBAAoB,CAe1B;CACH"}
|
package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js
CHANGED
@@ -1,33 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
3
|
exports.ModelTransformer = void 0;
|
27
4
|
const graphql_transformer_core_1 = require("@aws-amplify/graphql-transformer-core");
|
28
5
|
const graphql_transformer_interfaces_1 = require("@aws-amplify/graphql-transformer-interfaces");
|
29
6
|
const graphql_directives_1 = require("@aws-amplify/graphql-directives");
|
30
|
-
const cdk = __importStar(require("aws-cdk-lib"));
|
31
7
|
const graphql_transformer_common_1 = require("graphql-transformer-common");
|
32
8
|
const graphql_types_1 = require("./graphql-types");
|
33
9
|
const definitions_1 = require("./definitions");
|
@@ -35,7 +11,6 @@ const directive_1 = require("./directive");
|
|
35
11
|
const dynamo_model_resource_generator_1 = require("./resources/dynamo-model-resource-generator");
|
36
12
|
const rds_model_resource_generator_1 = require("./resources/rds-model-resource-generator");
|
37
13
|
const amplify_dynamo_model_resource_generator_1 = require("./resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator");
|
38
|
-
const graphql_transformer_core_2 = require("@aws-amplify/graphql-transformer-core");
|
39
14
|
const ITERATIVE_TABLE_GENERATOR = 'AmplifyDDB';
|
40
15
|
const SQL_LAMBDA_GENERATOR = 'SQL';
|
41
16
|
class ModelTransformer extends graphql_transformer_core_1.TransformerModelBase {
|
@@ -60,7 +35,7 @@ class ModelTransformer extends graphql_transformer_core_1.TransformerModelBase {
|
|
60
35
|
(_d = this.resourceGeneratorMap.get(SQL_LAMBDA_GENERATOR)) === null || _d === void 0 ? void 0 : _d.enableGenerator();
|
61
36
|
(_e = this.resourceGeneratorMap.get(SQL_LAMBDA_GENERATOR)) === null || _e === void 0 ? void 0 : _e.enableUnprovisioned();
|
62
37
|
}
|
63
|
-
if (strategies.some(graphql_transformer_core_1.isAmplifyDynamoDbModelDataSourceStrategy)
|
38
|
+
if (strategies.some(graphql_transformer_core_1.isAmplifyDynamoDbModelDataSourceStrategy)) {
|
64
39
|
(_f = this.resourceGeneratorMap.get(ITERATIVE_TABLE_GENERATOR)) === null || _f === void 0 ? void 0 : _f.enableGenerator();
|
65
40
|
(_g = this.resourceGeneratorMap.get(ITERATIVE_TABLE_GENERATOR)) === null || _g === void 0 ? void 0 : _g.enableProvisioned();
|
66
41
|
}
|
@@ -213,25 +188,9 @@ class ModelTransformer extends graphql_transformer_core_1.TransformerModelBase {
|
|
213
188
|
});
|
214
189
|
};
|
215
190
|
this.generateResolvers = (context) => {
|
216
|
-
const dataSourceMapping = {};
|
217
191
|
this.resourceGeneratorMap.forEach((generator) => {
|
218
192
|
generator.generateResources(context);
|
219
|
-
const ddbDatasources = Object.entries(generator.getDatasourceMap()).filter(([, datasource]) => datasource.ds.type === 'AMAZON_DYNAMODB');
|
220
|
-
ddbDatasources.forEach(([modelName, datasource]) => {
|
221
|
-
if (datasource.ds.dynamoDbConfig && !cdk.isResolvableObject(datasource.ds.dynamoDbConfig)) {
|
222
|
-
dataSourceMapping[modelName] = datasource.ds.dynamoDbConfig.tableName;
|
223
|
-
}
|
224
|
-
console.warn(`Could not resolve table name for ${modelName}. DataSourceMappingOutput is incomplete. Please manually add ${modelName} to the mapping for your migration.`);
|
225
|
-
});
|
226
193
|
});
|
227
|
-
if (context.transformParameters.enableGen2Migration && context.transformParameters.enableTransformerCfnOutputs) {
|
228
|
-
const { scope } = context.stackManager;
|
229
|
-
new cdk.CfnOutput(cdk.Stack.of(scope), 'DataSourceMappingOutput', {
|
230
|
-
value: cdk.Stack.of(scope).toJsonString(dataSourceMapping),
|
231
|
-
description: 'Mapping of model name to data source table name.',
|
232
|
-
exportName: cdk.Fn.join(':', [cdk.Aws.STACK_NAME, 'DataSourceMappingOutput']),
|
233
|
-
});
|
234
|
-
}
|
235
194
|
};
|
236
195
|
this.generateGetResolver = (ctx, type, typeName, fieldName, resolverLogicalId) => {
|
237
196
|
const resourceGenerator = this.getResourceGenerator(ctx, type.name.value);
|
@@ -603,9 +562,6 @@ class ModelTransformer extends graphql_transformer_core_1.TransformerModelBase {
|
|
603
562
|
else if ((0, graphql_transformer_core_1.isSqlStrategy)(strategy)) {
|
604
563
|
generator = this.resourceGeneratorMap.get(SQL_LAMBDA_GENERATOR);
|
605
564
|
}
|
606
|
-
else if ((0, graphql_transformer_core_2.isImportedAmplifyDynamoDbModelDataSourceStrategy)(strategy)) {
|
607
|
-
generator = this.resourceGeneratorMap.get(ITERATIVE_TABLE_GENERATOR);
|
608
|
-
}
|
609
565
|
if (!generator) {
|
610
566
|
throw new Error(`No resource generator assigned for ${typeName} with dbType ${strategy.dbType}`);
|
611
567
|
}
|
@@ -614,8 +570,7 @@ class ModelTransformer extends graphql_transformer_core_1.TransformerModelBase {
|
|
614
570
|
this.options = this.getOptions(options);
|
615
571
|
this.resourceGeneratorMap.set(graphql_transformer_core_1.DDB_DB_TYPE, new dynamo_model_resource_generator_1.DynamoModelResourceGenerator());
|
616
572
|
this.resourceGeneratorMap.set(SQL_LAMBDA_GENERATOR, new rds_model_resource_generator_1.RdsModelResourceGenerator());
|
617
|
-
|
618
|
-
this.resourceGeneratorMap.set(ITERATIVE_TABLE_GENERATOR, amplifyTableDynamoModelResourceGenerator);
|
573
|
+
this.resourceGeneratorMap.set(ITERATIVE_TABLE_GENERATOR, new amplify_dynamo_model_resource_generator_1.AmplifyDynamoModelResourceGenerator());
|
619
574
|
}
|
620
575
|
}
|
621
576
|
exports.ModelTransformer = ModelTransformer;
|