@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
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js
CHANGED
@@ -30,6 +30,7 @@ const ts_dedent_1 = require("ts-dedent");
|
|
30
30
|
const cdk_compat_1 = require("../cdk-compat");
|
31
31
|
const errors_1 = require("../errors");
|
32
32
|
const SyncUtils = __importStar(require("../transformation/sync-utils"));
|
33
|
+
const function_runtime_1 = require("../utils/function-runtime");
|
33
34
|
exports.NONE_DATA_SOURCE_NAME = 'NONE_DS';
|
34
35
|
class ResolverManager {
|
35
36
|
constructor() {
|
@@ -69,7 +70,7 @@ class ResolverManager {
|
|
69
70
|
}
|
70
71
|
exports.ResolverManager = ResolverManager;
|
71
72
|
class TransformerResolver {
|
72
|
-
constructor(typeName, fieldName, resolverLogicalId, requestMappingTemplate, responseMappingTemplate, requestSlots, responseSlots, datasource) {
|
73
|
+
constructor(typeName, fieldName, resolverLogicalId, requestMappingTemplate, responseMappingTemplate, requestSlots, responseSlots, datasource, runtime) {
|
73
74
|
this.typeName = typeName;
|
74
75
|
this.fieldName = fieldName;
|
75
76
|
this.resolverLogicalId = resolverLogicalId;
|
@@ -78,6 +79,7 @@ class TransformerResolver {
|
|
78
79
|
this.requestSlots = requestSlots;
|
79
80
|
this.responseSlots = responseSlots;
|
80
81
|
this.datasource = datasource;
|
82
|
+
this.runtime = runtime;
|
81
83
|
this.slotMap = new Map();
|
82
84
|
this.mapToStack = (stack) => {
|
83
85
|
this.scope = stack;
|
@@ -85,7 +87,7 @@ class TransformerResolver {
|
|
85
87
|
this.setScope = (scope) => {
|
86
88
|
this.scope = scope;
|
87
89
|
};
|
88
|
-
this.addToSlot = (slotName, requestMappingTemplate, responseMappingTemplate, dataSource) => {
|
90
|
+
this.addToSlot = (slotName, requestMappingTemplate, responseMappingTemplate, dataSource, runtime) => {
|
89
91
|
if (!this.slotNames.has(slotName)) {
|
90
92
|
throw new Error(`Resolver is missing slot ${slotName}`);
|
91
93
|
}
|
@@ -104,6 +106,7 @@ class TransformerResolver {
|
|
104
106
|
requestMappingTemplate,
|
105
107
|
responseMappingTemplate,
|
106
108
|
dataSource,
|
109
|
+
runtime,
|
107
110
|
});
|
108
111
|
}
|
109
112
|
this.slotMap.set(slotName, slotEntry);
|
@@ -147,7 +150,8 @@ class TransformerResolver {
|
|
147
150
|
const requestFns = this.synthesizeResolvers(scope, api, this.requestSlots);
|
148
151
|
const responseFns = this.synthesizeResolvers(scope, api, this.responseSlots);
|
149
152
|
[this.requestMappingTemplate, this.requestMappingTemplate].map((template) => this.substituteSlotInfo(template, 'main', 0));
|
150
|
-
const dataSourceProviderFn = api.host.addAppSyncFunction((0, graphql_transformer_common_1.toPascalCase)([this.typeName, this.fieldName, 'DataResolverFn']), this.requestMappingTemplate, this.responseMappingTemplate, ((_a = this.datasource) === null || _a === void 0 ? void 0 : _a.name) || exports.NONE_DATA_SOURCE_NAME, scope);
|
153
|
+
const dataSourceProviderFn = api.host.addAppSyncFunction((0, graphql_transformer_common_1.toPascalCase)([this.typeName, this.fieldName, 'DataResolverFn']), this.requestMappingTemplate, this.responseMappingTemplate, ((_a = this.datasource) === null || _a === void 0 ? void 0 : _a.name) || exports.NONE_DATA_SOURCE_NAME, scope, this.runtime);
|
154
|
+
const { stashString, stashExpression } = this.createStashStatementGenerator(this.runtime);
|
151
155
|
let dataSourceType = 'NONE';
|
152
156
|
let dataSource = '';
|
153
157
|
if (this.datasource) {
|
@@ -156,7 +160,7 @@ class TransformerResolver {
|
|
156
160
|
case 'AMAZON_DYNAMODB':
|
157
161
|
if (this.datasource.ds.dynamoDbConfig && !(0, aws_cdk_lib_1.isResolvableObject)(this.datasource.ds.dynamoDbConfig)) {
|
158
162
|
const tableName = (_b = this.datasource.ds.dynamoDbConfig) === null || _b === void 0 ? void 0 : _b.tableName;
|
159
|
-
dataSource =
|
163
|
+
dataSource = stashString({ name: 'tableName', value: tableName });
|
160
164
|
if (((_c = this.datasource.ds.dynamoDbConfig) === null || _c === void 0 ? void 0 : _c.deltaSyncConfig) &&
|
161
165
|
!(0, aws_cdk_lib_1.isResolvableObject)((_d = this.datasource.ds.dynamoDbConfig) === null || _d === void 0 ? void 0 : _d.deltaSyncConfig)) {
|
162
166
|
const deltaSyncTableTtl = aws_cdk_lib_1.Lazy.string({
|
@@ -172,7 +176,7 @@ class TransformerResolver {
|
|
172
176
|
return SyncUtils.syncDataSourceConfig().DeltaSyncTableTTL.toString();
|
173
177
|
},
|
174
178
|
});
|
175
|
-
dataSource +=
|
179
|
+
dataSource += '\n' + stashString({ name: 'deltaSyncTableTtl', value: deltaSyncTableTtl });
|
176
180
|
}
|
177
181
|
}
|
178
182
|
if (context.isProjectUsingDataStore()) {
|
@@ -197,19 +201,19 @@ class TransformerResolver {
|
|
197
201
|
case 'AMAZON_ELASTICSEARCH':
|
198
202
|
if (this.datasource.ds.elasticsearchConfig && !(0, aws_cdk_lib_1.isResolvableObject)(this.datasource.ds.elasticsearchConfig)) {
|
199
203
|
const endpoint = (_e = this.datasource.ds.elasticsearchConfig) === null || _e === void 0 ? void 0 : _e.endpoint;
|
200
|
-
dataSource =
|
204
|
+
dataSource = stashString({ name: 'endpoint', value: endpoint });
|
201
205
|
}
|
202
206
|
break;
|
203
207
|
case 'AWS_LAMBDA':
|
204
208
|
if (this.datasource.ds.lambdaConfig && !(0, aws_cdk_lib_1.isResolvableObject)(this.datasource.ds.lambdaConfig)) {
|
205
209
|
const lambdaFunctionArn = (_f = this.datasource.ds.lambdaConfig) === null || _f === void 0 ? void 0 : _f.lambdaFunctionArn;
|
206
|
-
dataSource =
|
210
|
+
dataSource = stashString({ name: 'lambdaFunctionArn', value: lambdaFunctionArn });
|
207
211
|
}
|
208
212
|
break;
|
209
213
|
case 'HTTP':
|
210
214
|
if (this.datasource.ds.httpConfig && !(0, aws_cdk_lib_1.isResolvableObject)(this.datasource.ds.httpConfig)) {
|
211
215
|
const endpoint = (_g = this.datasource.ds.httpConfig) === null || _g === void 0 ? void 0 : _g.endpoint;
|
212
|
-
dataSource =
|
216
|
+
dataSource = stashString({ name: 'endpoint', value: endpoint });
|
213
217
|
}
|
214
218
|
break;
|
215
219
|
case 'RELATIONAL_DATABASE':
|
@@ -217,7 +221,7 @@ class TransformerResolver {
|
|
217
221
|
!(0, aws_cdk_lib_1.isResolvableObject)(this.datasource.ds.relationalDatabaseConfig) &&
|
218
222
|
!(0, aws_cdk_lib_1.isResolvableObject)((_h = this.datasource.ds.relationalDatabaseConfig) === null || _h === void 0 ? void 0 : _h.rdsHttpEndpointConfig)) {
|
219
223
|
const databaseName = (_j = this.datasource.ds.relationalDatabaseConfig) === null || _j === void 0 ? void 0 : _j.rdsHttpEndpointConfig.databaseName;
|
220
|
-
dataSource =
|
224
|
+
dataSource = stashString({ name: 'databaseName', value: databaseName });
|
221
225
|
}
|
222
226
|
break;
|
223
227
|
default:
|
@@ -225,40 +229,63 @@ class TransformerResolver {
|
|
225
229
|
}
|
226
230
|
}
|
227
231
|
let initResolver = (0, ts_dedent_1.dedent) `
|
228
|
-
$
|
229
|
-
$
|
230
|
-
$
|
231
|
-
$
|
232
|
-
$
|
233
|
-
$
|
234
|
-
$
|
232
|
+
${stashString({ name: 'typeName', value: this.typeName })}
|
233
|
+
${stashString({ name: 'fieldName', value: this.fieldName })}
|
234
|
+
${stashExpression({ name: 'conditions', value: '[]' })}
|
235
|
+
${stashExpression({ name: 'metadata', value: '{}' })}
|
236
|
+
${stashString({ name: 'dataSourceType', value: dataSourceType, object: 'metadata' })}
|
237
|
+
${stashString({ name: 'apiId', value: api.apiId, object: 'metadata' })}
|
238
|
+
${stashExpression({ name: 'connectionAttributes', value: '{}' })}
|
235
239
|
${dataSource}
|
236
240
|
`;
|
237
241
|
const account = aws_cdk_lib_1.Stack.of(context.stackManager.scope).account;
|
238
242
|
const authRole = context.synthParameters.authenticatedUserRoleName;
|
239
243
|
if (authRole) {
|
244
|
+
const authRoleArn = `arn:aws:sts::${account}:assumed-role/${authRole}/CognitoIdentityCredentials`;
|
245
|
+
const authRoleStatement = stashString({ name: 'authRole', value: authRoleArn });
|
240
246
|
initResolver += (0, ts_dedent_1.dedent) `\n
|
241
|
-
|
247
|
+
${authRoleStatement}
|
242
248
|
`;
|
243
249
|
}
|
244
250
|
const unauthRole = context.synthParameters.unauthenticatedUserRoleName;
|
245
251
|
if (unauthRole) {
|
252
|
+
const unauthRoleArn = `arn:aws:sts::${account}:assumed-role/${unauthRole}/CognitoIdentityCredentials`;
|
253
|
+
const unauthRoleStatement = stashString({ name: 'unauthRole', value: unauthRoleArn });
|
246
254
|
initResolver += (0, ts_dedent_1.dedent) `\n
|
247
|
-
|
255
|
+
${unauthRoleStatement}
|
248
256
|
`;
|
249
257
|
}
|
250
258
|
const identityPoolId = context.synthParameters.identityPoolId;
|
251
259
|
if (identityPoolId) {
|
260
|
+
const identityPoolStatement = stashString({ name: 'identityPoolId', value: identityPoolId });
|
252
261
|
initResolver += (0, ts_dedent_1.dedent) `\n
|
253
|
-
$
|
262
|
+
${identityPoolStatement}
|
254
263
|
`;
|
255
264
|
}
|
256
265
|
const adminRoles = (_k = context.synthParameters.adminRoles) !== null && _k !== void 0 ? _k : [];
|
266
|
+
const adminRolesStatement = stashExpression({ name: 'adminRoles', value: JSON.stringify(adminRoles) });
|
257
267
|
initResolver += (0, ts_dedent_1.dedent) `\n
|
258
|
-
$
|
268
|
+
${adminRolesStatement}
|
259
269
|
`;
|
260
|
-
|
261
|
-
|
270
|
+
if ((0, function_runtime_1.isJsResolverFnRuntime)(this.runtime)) {
|
271
|
+
initResolver = (0, ts_dedent_1.dedent) `
|
272
|
+
export const request = (ctx) => {
|
273
|
+
${initResolver}
|
274
|
+
return {};
|
275
|
+
}
|
276
|
+
`;
|
277
|
+
}
|
278
|
+
else {
|
279
|
+
initResolver += '\n$util.toJson({})';
|
280
|
+
}
|
281
|
+
const initResponseResolver = (0, function_runtime_1.isJsResolverFnRuntime)(this.runtime)
|
282
|
+
? (0, ts_dedent_1.dedent) `
|
283
|
+
export const response = (ctx) => {
|
284
|
+
return ctx.prev.result;
|
285
|
+
};
|
286
|
+
`
|
287
|
+
: '$util.toJson($ctx.prev.result)';
|
288
|
+
api.host.addResolver(this.typeName, this.fieldName, cdk_compat_1.MappingTemplate.inlineTemplateFromString(initResolver), cdk_compat_1.MappingTemplate.inlineTemplateFromString(initResponseResolver), this.resolverLogicalId, undefined, [...requestFns, dataSourceProviderFn, ...responseFns].map((fn) => fn.functionId), scope, this.runtime);
|
262
289
|
};
|
263
290
|
this.synthesizeResolvers = (scope, api, slotsNames) => {
|
264
291
|
const appSyncFunctions = [];
|
@@ -271,7 +298,7 @@ class TransformerResolver {
|
|
271
298
|
const { requestMappingTemplate, responseMappingTemplate, dataSource } = slotItem;
|
272
299
|
requestMappingTemplate && this.substituteSlotInfo(requestMappingTemplate, slotName, index);
|
273
300
|
responseMappingTemplate && this.substituteSlotInfo(responseMappingTemplate, slotName, index);
|
274
|
-
const fn = api.host.addAppSyncFunction(name, requestMappingTemplate || cdk_compat_1.MappingTemplate.inlineTemplateFromString('$util.toJson({})'), responseMappingTemplate || cdk_compat_1.MappingTemplate.inlineTemplateFromString('$util.toJson({})'), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.name) || exports.NONE_DATA_SOURCE_NAME, scope);
|
301
|
+
const fn = api.host.addAppSyncFunction(name, requestMappingTemplate || cdk_compat_1.MappingTemplate.inlineTemplateFromString('$util.toJson({})'), responseMappingTemplate || cdk_compat_1.MappingTemplate.inlineTemplateFromString('$util.toJson({})'), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.name) || exports.NONE_DATA_SOURCE_NAME, scope, slotItem.runtime);
|
275
302
|
appSyncFunctions.push(fn);
|
276
303
|
}
|
277
304
|
}
|
@@ -313,6 +340,27 @@ class TransformerResolver {
|
|
313
340
|
});
|
314
341
|
}
|
315
342
|
}
|
343
|
+
createStashStatementGenerator(runtime) {
|
344
|
+
const jsStash = (props) => {
|
345
|
+
const { name, value, object } = props;
|
346
|
+
const objectPrefix = object ? `.${object}` : '';
|
347
|
+
return `ctx.stash${objectPrefix}.${name} = ${value};`;
|
348
|
+
};
|
349
|
+
const generateJsStashStatement = {
|
350
|
+
stashExpression: (props) => jsStash(props),
|
351
|
+
stashString: (props) => jsStash({ ...props, value: `"${props.value}"` }),
|
352
|
+
};
|
353
|
+
const vtlStash = (props) => {
|
354
|
+
const { name, value, object } = props;
|
355
|
+
const objectPrefix = object ? `.${object}` : '';
|
356
|
+
return `$util.qr($ctx.stash${objectPrefix}.put("${name}", ${value}))`;
|
357
|
+
};
|
358
|
+
const generateVtlStashStatement = {
|
359
|
+
stashExpression: (props) => vtlStash(props),
|
360
|
+
stashString: (props) => vtlStash({ ...props, value: `"${props.value}"` }),
|
361
|
+
};
|
362
|
+
return (0, function_runtime_1.isJsResolverFnRuntime)(runtime) ? generateJsStashStatement : generateVtlStashStatement;
|
363
|
+
}
|
316
364
|
}
|
317
365
|
exports.TransformerResolver = TransformerResolver;
|
318
366
|
//# sourceMappingURL=resolver.js.map
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/transformer-context/resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,6CAA8D;AAC9D,2EAA0D;AAC1D,yCAAmC;AAEnC,8CAAmE;AACnE,sCAAkD;AAElD,wEAA0D;AAS7C,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAK/C,MAAa,eAAe;IAA5B;QACU,cAAS,GAA6C,IAAI,GAAG,EAAE,CAAC;QAExE,0BAAqB,GAAG,CACtB,QAAgB,EAChB,SAAiB,EACjB,iBAAyB,EACzB,UAA8B,EAC9B,sBAA+C,EAC/C,uBAAgD,EAC3B,EAAE,CACvB,IAAI,mBAAmB,CACrB,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,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I,CAAC,QAAQ;gBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,CAAC,CAAC;SACJ;IACH,CAAC;IAKO,oBAAoB,CAAC,GAAuB;QAClD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,6BAAqB,CAAC,EAAE;YAClD,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,6BAAqB,EAAE;gBAChD,IAAI,EAAE,6BAAqB;gBAC3B,WAAW,EAAE,yCAAyC;aACvD,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AApVD,kDAoVC"}
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/transformer-context/resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,6CAA8D;AAC9D,2EAA0D;AAC1D,yCAAmC;AAEnC,8CAAmE;AACnE,sCAAkD;AAElD,wEAA0D;AAC1D,gEAAkE;AAUrD,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAK/C,MAAa,eAAe;IAA5B;QACU,cAAS,GAA6C,IAAI,GAAG,EAAE,CAAC;QAExE,0BAAqB,GAAG,CACtB,QAAgB,EAChB,SAAiB,EACjB,iBAAyB,EACzB,UAA8B,EAC9B,sBAA+C,EAC/C,uBAAgD,EAC3B,EAAE,CACvB,IAAI,mBAAmB,CACrB,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,CAAC,EACtD,CAAC,cAAc,EAAE,QAAQ,CAAC,EAC1B,UAAU,CACX,CAAC;QAEJ,6BAAwB,GAAG,CACzB,QAAgB,EAChB,SAAiB,EACjB,iBAAyB,EACzB,UAA8B,EAC9B,sBAA+C,EAC/C,uBAAgD,EAC3B,EAAE,CACvB,IAAI,mBAAmB,CACrB,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB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IAAI,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC;SACvG,CAAC;QAEF,MAAM,QAAQ,GAAG,CAAC,KAAmC,EAAU,EAAE;YAC/D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;YACtC,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,OAAO,sBAAsB,YAAY,SAAS,IAAI,MAAM,KAAK,IAAI,CAAC;QACxE,CAAC,CAAC;QAEF,MAAM,yBAAyB,GAA4B;YACzD,eAAe,EAAE,CAAC,KAAmC,EAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;YACjF,WAAW,EAAE,CAAC,KAAmC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC;SACxG,CAAC;QAEF,OAAO,IAAA,wCAAqB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC/F,CAAC;CACF;AAtZD,kDAsZC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transform-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,eAAO,MAAM,0BAA0B,EAAE,
|
1
|
+
{"version":3,"file":"transform-parameters.d.ts","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,eAAO,MAAM,0BAA0B,EAAE,mBA2BxC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transform-parameters.js","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAwB;IAE7D,2BAA2B,EAAE,IAAI;IAGjC,sCAAsC,EAAE,IAAI;IAC5C,uBAAuB,EAAE,KAAK;IAC9B,kBAAkB,EAAE,KAAK;IACzB,oCAAoC,EAAE,KAAK;IAC3C,yBAAyB,EAAE,KAAK;IAChC,iBAAiB,EAAE,IAAI;IAGvB,qCAAqC,EAAE,IAAI;IAC3C,oCAAoC,EAAE,IAAI;IAC1C,wBAAwB,EAAE,KAAK;IAC/B,+BAA+B,EAAE,KAAK;IAGtC,iBAAiB,EAAE,IAAI;IACvB,yBAAyB,EAAE,IAAI;IAG/B,4CAA4C,EAAE,IAAI;IAGlD,gCAAgC,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"transform-parameters.js","sourceRoot":"","sources":["../../src/transformer-context/transform-parameters.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAwB;IAE7D,2BAA2B,EAAE,IAAI;IAGjC,sCAAsC,EAAE,IAAI;IAC5C,uBAAuB,EAAE,KAAK;IAC9B,kBAAkB,EAAE,KAAK;IACzB,oCAAoC,EAAE,KAAK;IAC3C,yBAAyB,EAAE,KAAK;IAChC,iBAAiB,EAAE,IAAI;IAGvB,qCAAqC,EAAE,IAAI;IAC3C,oCAAoC,EAAE,IAAI;IAC1C,wBAAwB,EAAE,KAAK;IAC/B,+BAA+B,EAAE,KAAK;IAGtC,iBAAiB,EAAE,IAAI;IACvB,yBAAyB,EAAE,IAAI;IAG/B,4CAA4C,EAAE,IAAI;IAGlD,gCAAgC,EAAE,KAAK;CACxC,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { JSONSchema } from './json-schema';
|
2
|
+
export declare const supportedScalarTypes: string[];
|
3
|
+
export declare const isDisallowedScalarType: (type: string) => boolean;
|
4
|
+
export declare const GraphQLScalarJSONSchemaDefinition: {
|
5
|
+
Boolean: JSONSchema;
|
6
|
+
Int: JSONSchema;
|
7
|
+
Float: JSONSchema;
|
8
|
+
String: JSONSchema;
|
9
|
+
AWSDateTime: JSONSchema;
|
10
|
+
ID: JSONSchema;
|
11
|
+
AWSJSON: JSONSchema;
|
12
|
+
AWSEmail: JSONSchema;
|
13
|
+
AWSDate: JSONSchema;
|
14
|
+
AWSTime: JSONSchema;
|
15
|
+
AWSTimestamp: JSONSchema;
|
16
|
+
AWSPhone: JSONSchema;
|
17
|
+
AWSURL: JSONSchema;
|
18
|
+
AWSIPAddress: JSONSchema;
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=graphql-scalar-json-schema-definitions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"graphql-scalar-json-schema-definitions.d.ts","sourceRoot":"","sources":["../../../src/utils/ai/graphql-scalar-json-schema-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA8H3C,eAAO,MAAM,oBAAoB,UAAyD,CAAC;AAO3F,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,OAErD,CAAC;AAGF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAe7C,CAAC"}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GraphQLScalarJSONSchemaDefinition = exports.isDisallowedScalarType = exports.supportedScalarTypes = void 0;
|
4
|
+
const Boolean = {
|
5
|
+
type: 'boolean',
|
6
|
+
description: 'A boolean value.',
|
7
|
+
};
|
8
|
+
const Int = {
|
9
|
+
type: 'number',
|
10
|
+
description: 'A signed 32-bit integer value.',
|
11
|
+
};
|
12
|
+
const Float = {
|
13
|
+
type: 'number',
|
14
|
+
description: 'An IEEE 754 floating point value.',
|
15
|
+
};
|
16
|
+
const String = {
|
17
|
+
type: 'string',
|
18
|
+
description: 'A UTF-8 character sequence.',
|
19
|
+
};
|
20
|
+
const ID = {
|
21
|
+
type: 'string',
|
22
|
+
description: "A unique identifier for an object. This scalar is serialized like a String but isn't meant to be human-readable.",
|
23
|
+
};
|
24
|
+
const AWSJSON = {
|
25
|
+
type: 'string',
|
26
|
+
description: 'A JSON string. Any valid JSON construct is automatically parsed and loaded in the resolver code as maps, lists, or scalar values rather than as the literal input strings. Unquoted strings or otherwise invalid JSON result in a GraphQL validation error.',
|
27
|
+
};
|
28
|
+
const AWSEmail = {
|
29
|
+
type: 'string',
|
30
|
+
description: 'An email address in the format local-part@domain-part as defined by RFC 822.',
|
31
|
+
pattern: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$',
|
32
|
+
};
|
33
|
+
const AWSDate = {
|
34
|
+
type: 'string',
|
35
|
+
description: 'An extended ISO 8601 date string in the format YYYY-MM-DD.',
|
36
|
+
pattern: '^\\d{4}-d{2}-d{2}$',
|
37
|
+
};
|
38
|
+
const AWSTime = {
|
39
|
+
type: 'string',
|
40
|
+
description: 'An extended ISO 8601 time string in the format hh:mm:ss.sss.',
|
41
|
+
pattern: '^\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$',
|
42
|
+
};
|
43
|
+
const AWSDateTime = {
|
44
|
+
type: 'string',
|
45
|
+
description: 'An extended ISO 8601 date and time string in the format YYYY-MM-DDThh:mm:ss.sssZ.',
|
46
|
+
pattern: '^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$',
|
47
|
+
};
|
48
|
+
const AWSTimestamp = {
|
49
|
+
type: 'string',
|
50
|
+
description: 'An integer value representing the number of seconds before or after 1970-01-01-T00:00Z.',
|
51
|
+
pattern: '^\\d+$',
|
52
|
+
};
|
53
|
+
const AWSPhone = {
|
54
|
+
type: 'string',
|
55
|
+
description: 'A phone number. This value is stored as a string. Phone numbers can contain either spaces or hyphens to separate digit groups. Phone numbers without a country code are assumed to be US/North American numbers adhering to the North American Numbering Plan (NANP).',
|
56
|
+
pattern: '^\\d{3}-d{3}-d{4}$',
|
57
|
+
};
|
58
|
+
const AWSURL = {
|
59
|
+
type: 'string',
|
60
|
+
description: "A URL as defined by RFC 1738. For example, https://www.amazon.com/dp/B000NZW3KC/ or mailto:example@example.com. URLs must contain a schema (http, mailto) and can't contain two forward slashes (//) in the path part.",
|
61
|
+
pattern: '^(https?|mailto)://[^s/$.?#].[^s]*$',
|
62
|
+
};
|
63
|
+
const AWSIPAddress = {
|
64
|
+
type: 'string',
|
65
|
+
description: 'A valid IPv4 or IPv6 address. IPv4 addresses are expected in quad-dotted notation (123.12.34.56). IPv6 addresses are expected in non-bracketed, colon-separated format (1a2b:3c4b::1234:4567). You can include an optional CIDR suffix (123.45.67.89/16) to indicate subnet mask.',
|
66
|
+
};
|
67
|
+
const disallowedScalarTypes = ['AWSEmail', 'AWSDate', 'AWSTime', 'AWSDateTime', 'AWSTimestamp', 'AWSPhone', 'AWSURL', 'AWSIPAddress'];
|
68
|
+
exports.supportedScalarTypes = ['Boolean', 'Int', 'Float', 'String', 'ID', 'AWSJSON'];
|
69
|
+
const isDisallowedScalarType = (type) => {
|
70
|
+
return disallowedScalarTypes.includes(type);
|
71
|
+
};
|
72
|
+
exports.isDisallowedScalarType = isDisallowedScalarType;
|
73
|
+
exports.GraphQLScalarJSONSchemaDefinition = {
|
74
|
+
Boolean,
|
75
|
+
Int,
|
76
|
+
Float,
|
77
|
+
String,
|
78
|
+
AWSDateTime,
|
79
|
+
ID,
|
80
|
+
AWSJSON,
|
81
|
+
AWSEmail,
|
82
|
+
AWSDate,
|
83
|
+
AWSTime,
|
84
|
+
AWSTimestamp,
|
85
|
+
AWSPhone,
|
86
|
+
AWSURL,
|
87
|
+
AWSIPAddress,
|
88
|
+
};
|
89
|
+
//# sourceMappingURL=graphql-scalar-json-schema-definitions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"graphql-scalar-json-schema-definitions.js","sourceRoot":"","sources":["../../../src/utils/ai/graphql-scalar-json-schema-definitions.ts"],"names":[],"mappings":";;;A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AM,GAAe;IACzB,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,wNAAwN;IAC1N,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAGF,MAAM,YAAY,GAAe;IAC/B,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,mRAAmR;CACtR,CAAC;AAgBF,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;AAGzH,QAAA,oBAAoB,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AAOpF,MAAM,sBAAsB,GAAG,CAAC,IAAY,EAAW,EAAE;IAC9D,OAAO,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAGW,QAAA,iCAAiC,GAAG;IAC/C,OAAO;IACP,GAAG;IACH,KAAK;IACL,MAAM;IACN,WAAW;IACX,EAAE;IACF,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,MAAM;IACN,YAAY;CACb,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export type { JSONSchema } from './json-schema';
|
2
|
+
export { isDisallowedScalarType, supportedScalarTypes, GraphQLScalarJSONSchemaDefinition } from './graphql-scalar-json-schema-definitions';
|
3
|
+
export { convertNamedTypeToJSONSchema } from './named-type-conversion';
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/ai/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAC3I,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.convertNamedTypeToJSONSchema = exports.GraphQLScalarJSONSchemaDefinition = exports.supportedScalarTypes = exports.isDisallowedScalarType = void 0;
|
4
|
+
var graphql_scalar_json_schema_definitions_1 = require("./graphql-scalar-json-schema-definitions");
|
5
|
+
Object.defineProperty(exports, "isDisallowedScalarType", { enumerable: true, get: function () { return graphql_scalar_json_schema_definitions_1.isDisallowedScalarType; } });
|
6
|
+
Object.defineProperty(exports, "supportedScalarTypes", { enumerable: true, get: function () { return graphql_scalar_json_schema_definitions_1.supportedScalarTypes; } });
|
7
|
+
Object.defineProperty(exports, "GraphQLScalarJSONSchemaDefinition", { enumerable: true, get: function () { return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition; } });
|
8
|
+
var named_type_conversion_1 = require("./named-type-conversion");
|
9
|
+
Object.defineProperty(exports, "convertNamedTypeToJSONSchema", { enumerable: true, get: function () { return named_type_conversion_1.convertNamedTypeToJSONSchema; } });
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/ai/index.ts"],"names":[],"mappings":";;;AACA,mGAA2I;AAAlI,gJAAA,sBAAsB,OAAA;AAAE,8IAAA,oBAAoB,OAAA;AAAE,2JAAA,iCAAiC,OAAA;AACxF,iEAAuE;AAA9D,qIAAA,4BAA4B,OAAA"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export type JSONSchema = {
|
2
|
+
type: string;
|
3
|
+
properties?: Record<string, JSONSchema>;
|
4
|
+
required?: string[];
|
5
|
+
items?: JSONSchema;
|
6
|
+
enum?: (string | number | boolean | null)[];
|
7
|
+
minimum?: number;
|
8
|
+
maximum?: number;
|
9
|
+
minLength?: number;
|
10
|
+
maxLength?: number;
|
11
|
+
pattern?: string;
|
12
|
+
format?: string;
|
13
|
+
description?: string;
|
14
|
+
default?: JSONLike;
|
15
|
+
additionalProperties?: boolean | JSONSchema;
|
16
|
+
};
|
17
|
+
type JSONLike = string | number | boolean | null | {
|
18
|
+
[key: string]: JSONLike;
|
19
|
+
} | JSONLike[];
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=json-schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../src/utils/ai/json-schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;CAC7C,CAAC;AAEF,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,GAAG,QAAQ,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../../../src/utils/ai/json-schema.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"named-type-conversion.d.ts","sourceRoot":"","sources":["../../../src/utils/ai/named-type-conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,eAAO,MAAM,4BAA4B,cAAe,aAAa,KAAG,UAqCvE,CAAC"}
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.convertNamedTypeToJSONSchema = void 0;
|
4
|
+
const graphql_scalar_json_schema_definitions_1 = require("./graphql-scalar-json-schema-definitions");
|
5
|
+
const convertNamedTypeToJSONSchema = (namedType) => {
|
6
|
+
switch (namedType.name.value) {
|
7
|
+
case 'Int':
|
8
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.Int;
|
9
|
+
case 'Float':
|
10
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.Float;
|
11
|
+
case 'String':
|
12
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.String;
|
13
|
+
case 'ID':
|
14
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.ID;
|
15
|
+
case 'Boolean':
|
16
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.Boolean;
|
17
|
+
case 'AWSJSON':
|
18
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSJSON;
|
19
|
+
case 'AWSEmail':
|
20
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSEmail;
|
21
|
+
case 'AWSDate':
|
22
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSDate;
|
23
|
+
case 'AWSTime':
|
24
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSTime;
|
25
|
+
case 'AWSDateTime':
|
26
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSDateTime;
|
27
|
+
case 'AWSTimestamp':
|
28
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSTimestamp;
|
29
|
+
case 'AWSPhone':
|
30
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSPhone;
|
31
|
+
case 'AWSURL':
|
32
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSURL;
|
33
|
+
case 'AWSIPAddress':
|
34
|
+
return graphql_scalar_json_schema_definitions_1.GraphQLScalarJSONSchemaDefinition.AWSIPAddress;
|
35
|
+
default:
|
36
|
+
return {
|
37
|
+
type: 'object',
|
38
|
+
properties: {},
|
39
|
+
required: [],
|
40
|
+
};
|
41
|
+
}
|
42
|
+
};
|
43
|
+
exports.convertNamedTypeToJSONSchema = convertNamedTypeToJSONSchema;
|
44
|
+
//# sourceMappingURL=named-type-conversion.js.map
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"named-type-conversion.js","sourceRoot":"","sources":["../../../src/utils/ai/named-type-conversion.ts"],"names":[],"mappings":";;;AAEA,qGAA6F;AAOtF,MAAM,4BAA4B,GAAG,CAAC,SAAwB,EAAc,EAAE;IACnF,QAAQ,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE;QAC5B,KAAK,KAAK;YACR,OAAO,0EAAiC,CAAC,GAAG,CAAC;QAC/C,KAAK,OAAO;YACV,OAAO,0EAAiC,CAAC,KAAK,CAAC;QACjD,KAAK,QAAQ;YACX,OAAO,0EAAiC,CAAC,MAAM,CAAC;QAClD,KAAK,IAAI;YACP,OAAO,0EAAiC,CAAC,EAAE,CAAC;QAC9C,KAAK,SAAS;YACZ,OAAO,0EAAiC,CAAC,OAAO,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,0EAAiC,CAAC,OAAO,CAAC;QACnD,KAAK,UAAU;YACb,OAAO,0EAAiC,CAAC,QAAQ,CAAC;QACpD,KAAK,SAAS;YACZ,OAAO,0EAAiC,CAAC,OAAO,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,0EAAiC,CAAC,OAAO,CAAC;QACnD,KAAK,aAAa;YAChB,OAAO,0EAAiC,CAAC,WAAW,CAAC;QACvD,KAAK,cAAc;YACjB,OAAO,0EAAiC,CAAC,YAAY,CAAC;QACxD,KAAK,UAAU;YACb,OAAO,0EAAiC,CAAC,QAAQ,CAAC;QACpD,KAAK,QAAQ;YACX,OAAO,0EAAiC,CAAC,MAAM,CAAC;QAClD,KAAK,cAAc;YACjB,OAAO,0EAAiC,CAAC,YAAY,CAAC;QACxD;YACE,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;gBACd,QAAQ,EAAE,EAAE;aACb,CAAC;KACL;AACH,CAAC,CAAC;AArCW,QAAA,4BAA4B,gCAqCvC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
|
2
|
+
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
|
3
|
+
import { GraphQLApi } from '../graphql-api';
|
4
|
+
import { Construct } from 'constructs';
|
5
|
+
export declare const isJsResolverFnRuntime: (runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty) => boolean;
|
6
|
+
type RuntimeSpecificFunctionProps = {
|
7
|
+
requestMappingTemplate?: string;
|
8
|
+
responseMappingTemplate?: string;
|
9
|
+
requestMappingTemplateS3Location?: string;
|
10
|
+
responseMappingTemplateS3Location?: string;
|
11
|
+
runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty;
|
12
|
+
code?: string;
|
13
|
+
};
|
14
|
+
export declare const getRuntimeSpecificFunctionProps: (scope: Construct, props: {
|
15
|
+
requestMappingTemplate: MappingTemplateProvider;
|
16
|
+
responseMappingTemplate: MappingTemplateProvider;
|
17
|
+
runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty;
|
18
|
+
api: GraphQLApi;
|
19
|
+
}) => RuntimeSpecificFunctionProps;
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=function-runtime.d.ts.map
|
package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"function-runtime.d.ts","sourceRoot":"","sources":["../../src/utils/function-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAOvC,eAAO,MAAM,qBAAqB,aAAc,yBAAyB,sBAAsB,KAAG,OAAyC,CAAC;AAK5I,KAAK,4BAA4B,GAAG;IAElC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C,OAAO,CAAC,EAAE,wBAAwB,CAAC,sBAAsB,CAAC;IAE1D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,+BAA+B,UACnC,SAAS,SACT;IACL,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,OAAO,CAAC,EAAE,yBAAyB,sBAAsB,CAAC;IAC1D,GAAG,EAAE,UAAU,CAAC;CACjB,KACA,4BAqBF,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getRuntimeSpecificFunctionProps = exports.isJsResolverFnRuntime = void 0;
|
4
|
+
const cdk_compat_1 = require("../cdk-compat");
|
5
|
+
const isJsResolverFnRuntime = (runtime) => (runtime === null || runtime === void 0 ? void 0 : runtime.name) === 'APPSYNC_JS';
|
6
|
+
exports.isJsResolverFnRuntime = isJsResolverFnRuntime;
|
7
|
+
const getRuntimeSpecificFunctionProps = (scope, props) => {
|
8
|
+
const { requestMappingTemplate, responseMappingTemplate, runtime, api } = props;
|
9
|
+
const requestTemplateLocation = requestMappingTemplate.bind(scope, api.assetProvider);
|
10
|
+
const responseTemplateLocation = responseMappingTemplate.bind(scope, api.assetProvider);
|
11
|
+
if ((0, exports.isJsResolverFnRuntime)(runtime)) {
|
12
|
+
return {
|
13
|
+
runtime,
|
14
|
+
code: requestTemplateLocation + '\n\n' + responseTemplateLocation,
|
15
|
+
};
|
16
|
+
}
|
17
|
+
return {
|
18
|
+
...(requestMappingTemplate instanceof cdk_compat_1.InlineTemplate
|
19
|
+
? { requestMappingTemplate: requestTemplateLocation }
|
20
|
+
: { requestMappingTemplateS3Location: requestTemplateLocation }),
|
21
|
+
...(responseMappingTemplate instanceof cdk_compat_1.InlineTemplate
|
22
|
+
? { responseMappingTemplate: responseTemplateLocation }
|
23
|
+
: { responseMappingTemplateS3Location: responseTemplateLocation }),
|
24
|
+
};
|
25
|
+
};
|
26
|
+
exports.getRuntimeSpecificFunctionProps = getRuntimeSpecificFunctionProps;
|
27
|
+
//# sourceMappingURL=function-runtime.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"function-runtime.js","sourceRoot":"","sources":["../../src/utils/function-runtime.ts"],"names":[],"mappings":";;;AAGA,8CAA+C;AAQxC,MAAM,qBAAqB,GAAG,CAAC,OAAyD,EAAW,EAAE,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,MAAK,YAAY,CAAC;AAA/H,QAAA,qBAAqB,yBAA0G;AA+BrI,MAAM,+BAA+B,GAAG,CAC7C,KAAgB,EAChB,KAKC,EAC6B,EAAE;IAChC,MAAM,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAEhF,MAAM,uBAAuB,GAAG,sBAAsB,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IACtF,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IAExF,IAAI,IAAA,6BAAqB,EAAC,OAAO,CAAC,EAAE;QAClC,OAAO;YACL,OAAO;YACP,IAAI,EAAE,uBAAuB,GAAG,MAAM,GAAG,wBAAwB;SAClE,CAAC;KACH;IAED,OAAO;QACL,GAAG,CAAC,sBAAsB,YAAY,2BAAc;YAClD,CAAC,CAAC,EAAE,sBAAsB,EAAE,uBAAuB,EAAE;YACrD,CAAC,CAAC,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,CAAC;QAClE,GAAG,CAAC,uBAAuB,YAAY,2BAAc;YACnD,CAAC,CAAC,EAAE,uBAAuB,EAAE,wBAAwB,EAAE;YACvD,CAAC,CAAC,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,CAAC;KACrE,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,+BAA+B,mCA6B1C"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { AmplifyDynamoDbModelDataSourceStrategy, DataSourceStrategiesProvider, DefaultDynamoDbModelDataSourceStrategy,
|
1
|
+
import { AmplifyDynamoDbModelDataSourceStrategy, DataSourceStrategiesProvider, DefaultDynamoDbModelDataSourceStrategy, ModelDataSourceStrategy, ModelDataSourceStrategyDbType, ModelDataSourceStrategySqlDbType, SQLLambdaModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-interfaces';
|
2
2
|
import { ImportedRDSType } from '../types';
|
3
3
|
export declare const getModelDataSourceNameForTypeName: (ctx: DataSourceStrategiesProvider, typeName: string) => string;
|
4
4
|
export declare const getImportedRDSTypeFromStrategyDbType: (dbType: ModelDataSourceStrategyDbType) => ImportedRDSType;
|
5
5
|
export declare const getModelDataSourceStrategy: (ctx: DataSourceStrategiesProvider, typename: string) => ModelDataSourceStrategy;
|
6
|
-
export declare const isImportedAmplifyDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is ImportedAmplifyDynamoDbModelDataSourceStrategy;
|
7
6
|
export declare const isAmplifyDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is AmplifyDynamoDbModelDataSourceStrategy;
|
8
7
|
export declare const isDefaultDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is DefaultDynamoDbModelDataSourceStrategy;
|
9
8
|
export declare const isDynamoDbModel: (ctx: DataSourceStrategiesProvider, typename: string) => boolean;
|