@aws-amplify/graphql-api-construct 1.12.0-gen2-migration.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +496 -215
- package/API.md +3 -11
- package/CHANGELOG.md +39 -3
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +9 -10
- package/lib/amplify-graphql-definition.js +1 -1
- 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 +11 -2
- 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 +27 -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 +27 -21
- 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 +25 -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 +14 -0
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
- 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 +13 -6
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +17 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +17 -13
- 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 +17 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +17 -13
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +25 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +18 -14
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +27 -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 +21 -17
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +27 -4
- 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 +11 -11
- 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 +10 -4
- 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 +91 -37
- 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/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.js +2 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.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 +21 -16
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +23 -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 +17 -13
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +34 -1
- 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 +13 -0
- 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 -0
- 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 -0
- 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/resolver/rds-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +7 -8
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +19 -15
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +31 -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 +22 -16
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +25 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +18 -14
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +33 -2
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +8 -2
- package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer/package.json +32 -23
- package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +8 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +54 -7
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +20 -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 +1 -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 +19 -13
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +13 -23
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +20 -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 +1 -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 +14 -7
- 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 +1 -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 +42 -31
- package/src/amplify-graphql-api.ts +7 -8
- package/src/model-datasource-strategy-types.ts +0 -21
- package/src/types.ts +12 -2
@@ -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":";;;AAeA,MAAM,OAAO,GAAe;IAC1B,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAGF,MAAM,GAAG,GAAe;IACtB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAGF,MAAM,KAAK,GAAe;IACxB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,mCAAmC;CACjD,CAAC;AAGF,MAAM,MAAM,GAAe;IACzB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,6BAA6B;CAC3C,CAAC;AAGF,MAAM,EAAE,GAAe;IACrB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kHAAkH;CAChI,CAAC;AAGF,MAAM,OAAO,GAAe;IAC1B,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,6PAA6P;CAChQ,CAAC;AAGF,MAAM,QAAQ,GAAe;IAC3B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8EAA8E;IAC3F,OAAO,EAAE,mDAAmD;CAC7D,CAAC;AAGF,MAAM,OAAO,GAAe;IAC1B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,4DAA4D;IACzE,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AAGF,MAAM,OAAO,GAAe;IAC1B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8DAA8D;IAC3E,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAGF,MAAM,WAAW,GAAe;IAC9B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,mFAAmF;IAChG,OAAO,EAAE,uDAAuD;CACjE,CAAC;AAGF,MAAM,YAAY,GAAe;IAC/B,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yFAAyF;IACtG,OAAO,EAAE,QAAQ;CAClB,CAAC;AAGF,MAAM,QAAQ,GAAe;IAC3B,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,uQAAuQ;IACzQ,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AAGF,MAAM,MAAM,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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-datasource-strategy-utils.d.ts","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC5B,sCAAsC,EACtC,
|
1
|
+
{"version":3,"file":"model-datasource-strategy-utils.d.ts","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC5B,sCAAsC,EACtC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EACjC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAe,eAAe,EAAmC,MAAM,UAAU,CAAC;AAYzF,eAAO,MAAM,iCAAiC,QAAS,4BAA4B,YAAY,MAAM,KAAG,MAUvG,CAAC;AAMF,eAAO,MAAM,oCAAoC,WAAY,6BAA6B,KAAG,eAS5F,CAAC;AAQF,eAAO,MAAM,0BAA0B,QAAS,4BAA4B,YAAY,MAAM,KAAG,uBAMhG,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAKF,eAAO,MAAM,wCAAwC,aACzC,uBAAuB,uDAOlC,CAAC;AAQF,eAAO,MAAM,eAAe,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMrF,CAAC;AAKF,eAAO,MAAM,cAAc,WAAY,6BAA6B,yBAEnE,CAAC;AAOF,eAAO,MAAM,WAAW,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMjF,CAAC;AAKF,eAAO,MAAM,WAAW,WAAY,6BAA6B,+CAEhE,CAAC;AAQF,eAAO,MAAM,UAAU,QAAS,4BAA4B,YAAY,MAAM,KAAG,OAMhF,CAAC;AAKF,eAAO,MAAM,aAAa,aAAc,uBAAuB,iDAI9D,CAAC;AAQF,eAAO,MAAM,0BAA0B,QAAS,4BAA4B,YAAY,MAAM,KAAG,6BAKhG,CAAC;AAeF,eAAO,MAAM,eAAe,cAAe,MAAM,KAAG,6BAenD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeDbType = exports.getStrategyDbTypeFromModel = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.
|
3
|
+
exports.normalizeDbType = exports.getStrategyDbTypeFromModel = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getModelDataSourceStrategy = exports.getImportedRDSTypeFromStrategyDbType = exports.getModelDataSourceNameForTypeName = void 0;
|
4
4
|
const types_1 = require("../types");
|
5
5
|
const graphql_utils_1 = require("./graphql-utils");
|
6
6
|
const resource_name_1 = require("./resource-name");
|
@@ -36,14 +36,6 @@ const getModelDataSourceStrategy = (ctx, typename) => {
|
|
36
36
|
return strategy;
|
37
37
|
};
|
38
38
|
exports.getModelDataSourceStrategy = getModelDataSourceStrategy;
|
39
|
-
const isImportedAmplifyDynamoDbModelDataSourceStrategy = (strategy) => {
|
40
|
-
return ((0, exports.isDynamoDbType)(strategy.dbType) &&
|
41
|
-
typeof strategy['provisionStrategy'] === 'string' &&
|
42
|
-
strategy['provisionStrategy'] === 'IMPORTED_AMPLIFY_TABLE' &&
|
43
|
-
typeof strategy['tableName'] === 'string' &&
|
44
|
-
strategy['tableName'] !== '');
|
45
|
-
};
|
46
|
-
exports.isImportedAmplifyDynamoDbModelDataSourceStrategy = isImportedAmplifyDynamoDbModelDataSourceStrategy;
|
47
39
|
const isAmplifyDynamoDbModelDataSourceStrategy = (strategy) => {
|
48
40
|
return ((0, exports.isDynamoDbType)(strategy.dbType) &&
|
49
41
|
typeof strategy['provisionStrategy'] === 'string' &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-datasource-strategy-utils.js","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"model-datasource-strategy-utils.js","sourceRoot":"","sources":["../../src/utils/model-datasource-strategy-utils.ts"],"names":[],"mappings":";;;AASA,oCAAyF;AACzF,mDAAuD;AACvD,mDAA8D;AAUvD,MAAM,iCAAiC,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAU,EAAE;IAC/G,IAAI,cAAsB,CAAC;IAC3B,MAAM,QAAQ,GAAG,IAAA,kCAA0B,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3D,IAAI,IAAA,qBAAa,EAAC,QAAQ,CAAC,EAAE;QAC3B,MAAM,aAAa,GAAG,IAAA,2CAA2B,EAAC,QAAQ,CAAC,CAAC;QAC5D,cAAc,GAAG,aAAa,CAAC,mBAAmB,CAAC;KACpD;SAAM;QACL,cAAc,GAAG,GAAG,QAAQ,OAAO,CAAC;KACrC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAVW,QAAA,iCAAiC,qCAU5C;AAMK,MAAM,oCAAoC,GAAG,CAAC,MAAqC,EAAmB,EAAE;IAC7G,QAAQ,MAAM,EAAE;QACd,KAAK,qBAAa;YAChB,OAAO,uBAAe,CAAC,KAAK,CAAC;QAC/B,KAAK,wBAAgB;YACnB,OAAO,uBAAe,CAAC,UAAU,CAAC;QACpC;YACE,MAAM,IAAI,KAAK,CAAC,oCAAoC,MAAM,EAAE,CAAC,CAAC;KACjE;AACH,CAAC,CAAC;AATW,QAAA,oCAAoC,wCAS/C;AAQK,MAAM,0BAA0B,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAA2B,EAAE;IACzH,MAAM,QAAQ,GAAG,GAAG,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,EAAE,CAAC,CAAC;KACtE;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,0BAA0B,8BAMrC;AAKK,MAAM,wCAAwC,GAAG,CACtD,QAAiC,EACmB,EAAE;IACtD,OAAO,CACL,IAAA,sBAAc,EAAC,QAAQ,CAAC,MAAM,CAAC;QAC/B,OAAQ,QAAgB,CAAC,mBAAmB,CAAC,KAAK,QAAQ;QACzD,QAAgB,CAAC,mBAAmB,CAAC,KAAK,eAAe,CAC3D,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,wCAAwC,4CAQnD;AAKK,MAAM,wCAAwC,GAAG,CACtD,QAAiC,EACmB,EAAE;IACtD,OAAO,CACL,IAAA,sBAAc,EAAC,QAAQ,CAAC,MAAM,CAAC;QAC/B,OAAQ,QAAgB,CAAC,mBAAmB,CAAC,KAAK,QAAQ;QACzD,QAAgB,CAAC,mBAAmB,CAAC,KAAK,SAAS,CACrD,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,wCAAwC,4CAQnD;AAQK,MAAM,eAAe,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAW,EAAE;IAC9F,IAAI,IAAA,oCAAoB,EAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,KAAK,CAAC;KACd;IACD,MAAM,mBAAmB,GAAG,IAAA,kCAA0B,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtE,OAAO,IAAA,sBAAc,EAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC,CAAC;AANW,QAAA,eAAe,mBAM1B;AAKK,MAAM,cAAc,GAAG,CAAC,MAAqC,EAAwB,EAAE;IAC5F,OAAO,MAAM,KAAK,UAAU,CAAC;AAC/B,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB;AAOK,MAAM,WAAW,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAW,EAAE;IAC1F,MAAM,QAAQ,GAAG,GAAG,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,KAAK,CAAC;KACd;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAKK,MAAM,WAAW,GAAG,CAAC,MAAqC,EAA8C,EAAE;IAC/G,OAAQ,CAAC,qBAAa,EAAE,wBAAgB,CAAc,CAAC,QAAQ,CAAC,MAAgB,CAAC,CAAC;AACpF,CAAC,CAAC;AAFW,QAAA,WAAW,eAEtB;AAQK,MAAM,UAAU,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAW,EAAE;IACzF,IAAI,IAAA,oCAAoB,EAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,KAAK,CAAC;KACd;IACD,MAAM,mBAAmB,GAAG,IAAA,kCAA0B,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtE,OAAO,IAAA,mBAAW,EAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC,CAAC;AANW,QAAA,UAAU,cAMrB;AAKK,MAAM,aAAa,GAAG,CAAC,QAAiC,EAAgD,EAAE;IAC/G,OAAO,CACL,IAAA,mBAAW,EAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,OAAQ,QAAgB,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAQ,QAAgB,CAAC,kBAAkB,KAAK,QAAQ,CACvI,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAQK,MAAM,0BAA0B,GAAG,CAAC,GAAiC,EAAE,QAAgB,EAAiC,EAAE;IAC/H,IAAI,IAAA,oCAAoB,EAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,mBAAW,CAAC;KACpB;IACD,OAAO,IAAA,kCAA0B,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,0BAA0B,8BAKrC;AAeK,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAiC,EAAE;IAClF,QAAQ,SAAS,CAAC,WAAW,EAAE,EAAE;QAC/B,KAAK,OAAO;YACV,OAAO,qBAAa,CAAC;QACvB,KAAK,KAAK,CAAC;QACX,KAAK,UAAU,CAAC;QAChB,KAAK,WAAW;YACd,OAAO,mBAAW,CAAC;QACrB,KAAK,IAAI,CAAC;QACV,KAAK,UAAU,CAAC;QAChB,KAAK,YAAY;YACf,OAAO,wBAAgB,CAAC;QAC1B;YACE,MAAM,IAAI,KAAK,CAAC,yBAAyB,SAAS,EAAE,CAAC,CAAC;KACzD;AACH,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-amplify/graphql-transformer-core",
|
3
|
-
"version": "
|
3
|
+
"version": "3.1.0",
|
4
4
|
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.",
|
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,12 +29,12 @@
|
|
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-interfaces": "
|
32
|
+
"@aws-amplify/graphql-directives": "2.1.0",
|
33
|
+
"@aws-amplify/graphql-transformer-interfaces": "4.1.0",
|
33
34
|
"fs-extra": "^8.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
|
"hjson": "^3.2.2",
|
38
39
|
"lodash": "^4.17.21",
|
39
40
|
"md5": "^2.3.0",
|
@@ -41,14 +42,14 @@
|
|
41
42
|
"ts-dedent": "^2.0.0"
|
42
43
|
},
|
43
44
|
"peerDependencies": {
|
44
|
-
"aws-cdk-lib": "^2.
|
45
|
-
"constructs": "^10.0
|
45
|
+
"aws-cdk-lib": "^2.152.0",
|
46
|
+
"constructs": "^10.3.0"
|
46
47
|
},
|
47
48
|
"devDependencies": {
|
48
49
|
"@types/fs-extra": "^8.0.1",
|
49
50
|
"@types/hjson": "^2.4.3",
|
50
51
|
"@types/md5": "^2.3.1",
|
51
|
-
"@types/node": "^
|
52
|
+
"@types/node": "^18.0.0",
|
52
53
|
"@types/object-hash": "^2.2.1",
|
53
54
|
"@types/uuid": "^9.0.1"
|
54
55
|
},
|
@@ -56,7 +57,9 @@
|
|
56
57
|
"transform": {
|
57
58
|
"^.+\\.tsx?$": "ts-jest"
|
58
59
|
},
|
59
|
-
"
|
60
|
+
"testEnvironmentOptions": {
|
61
|
+
"url": "http://localhost"
|
62
|
+
},
|
60
63
|
"testRegex": "(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
61
64
|
"moduleFileExtensions": [
|
62
65
|
"ts",
|
@@ -79,13 +82,16 @@
|
|
79
82
|
"clover",
|
80
83
|
"text"
|
81
84
|
],
|
82
|
-
"testEnvironment": "../../FixJestEnvironment.js",
|
83
85
|
"collectCoverageFrom": [
|
84
86
|
"src/**/*.ts"
|
85
87
|
],
|
86
88
|
"coveragePathIgnorePatterns": [
|
87
89
|
"/__tests__/"
|
88
|
-
]
|
90
|
+
],
|
91
|
+
"snapshotFormat": {
|
92
|
+
"escapeString": true,
|
93
|
+
"printBasicPrototype": true
|
94
|
+
}
|
89
95
|
},
|
90
|
-
"gitHead": "
|
96
|
+
"gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
|
91
97
|
}
|
@@ -7,6 +7,7 @@
|
|
7
7
|
import { BackedDataSource } from 'aws-cdk-lib/aws-appsync';
|
8
8
|
import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
|
9
9
|
import { CfnDomain } from 'aws-cdk-lib/aws-elasticsearch';
|
10
|
+
import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
|
10
11
|
import { CfnParameter } from 'aws-cdk-lib';
|
11
12
|
import { CfnResolver } from 'aws-cdk-lib/aws-appsync';
|
12
13
|
import { CfnResource } from 'aws-cdk-lib';
|
@@ -24,6 +25,8 @@ import { FieldNode } from 'graphql';
|
|
24
25
|
import { Grant } from 'aws-cdk-lib/aws-iam';
|
25
26
|
import { GraphqlApiBase } from 'aws-cdk-lib/aws-appsync';
|
26
27
|
import { HttpDataSource } from 'aws-cdk-lib/aws-appsync';
|
28
|
+
import { HttpDataSourceOptions } from 'aws-cdk-lib/aws-appsync';
|
29
|
+
import { IamResource } from 'aws-cdk-lib/aws-appsync';
|
27
30
|
import { IAsset } from 'aws-cdk-lib';
|
28
31
|
import { IConstruct } from 'constructs';
|
29
32
|
import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
@@ -57,12 +60,6 @@ export interface AmplifyDynamoDbModelDataSourceStrategy extends ModelDataSourceS
|
|
57
60
|
readonly provisionStrategy: 'AMPLIFY_TABLE';
|
58
61
|
}
|
59
62
|
|
60
|
-
// @public (undocumented)
|
61
|
-
export interface APIIAMResourceProvider {
|
62
|
-
// (undocumented)
|
63
|
-
resourceArns: (api: GraphQLAPIProvider) => string[];
|
64
|
-
}
|
65
|
-
|
66
63
|
// @public (undocumented)
|
67
64
|
export interface ApiKeyConfig {
|
68
65
|
// (undocumented)
|
@@ -202,7 +199,7 @@ export interface GraphQLAPIProvider extends IConstruct {
|
|
202
199
|
// (undocumented)
|
203
200
|
readonly assetProvider: AssetProvider;
|
204
201
|
// (undocumented)
|
205
|
-
grant: (grantee: IGrantable, resources:
|
202
|
+
grant: (grantee: IGrantable, resources: IamResource, ...actions: string[]) => Grant;
|
206
203
|
// (undocumented)
|
207
204
|
grantMutation: (grantee: IGrantable, ...fields: string[]) => Grant;
|
208
205
|
// (undocumented)
|
@@ -210,21 +207,13 @@ export interface GraphQLAPIProvider extends IConstruct {
|
|
210
207
|
// (undocumented)
|
211
208
|
grantSubscription: (grantee: IGrantable, ...fields: string[]) => Grant;
|
212
209
|
// (undocumented)
|
210
|
+
readonly graphqlUrl: string;
|
211
|
+
// (undocumented)
|
213
212
|
readonly host: TransformHostProvider;
|
214
213
|
// (undocumented)
|
215
214
|
readonly name: string;
|
216
215
|
}
|
217
216
|
|
218
|
-
// @public (undocumented)
|
219
|
-
export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
|
220
|
-
// (undocumented)
|
221
|
-
readonly dbType: 'DYNAMODB';
|
222
|
-
// (undocumented)
|
223
|
-
readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
|
224
|
-
// (undocumented)
|
225
|
-
readonly tableName: string;
|
226
|
-
}
|
227
|
-
|
228
217
|
// @public (undocumented)
|
229
218
|
export interface InlineMappingTemplateProvider {
|
230
219
|
// (undocumented)
|
@@ -262,7 +251,7 @@ export enum MappingTemplateType {
|
|
262
251
|
}
|
263
252
|
|
264
253
|
// @public (undocumented)
|
265
|
-
export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy |
|
254
|
+
export type ModelDataSourceStrategy = DefaultDynamoDbModelDataSourceStrategy | AmplifyDynamoDbModelDataSourceStrategy | SQLLambdaModelDataSourceStrategy;
|
266
255
|
|
267
256
|
// @public (undocumented)
|
268
257
|
export interface ModelDataSourceStrategyBase {
|
@@ -512,6 +501,7 @@ export type SynthParameters = {
|
|
512
501
|
identityPoolId?: string;
|
513
502
|
adminRoles?: string[];
|
514
503
|
enableIamAccess?: boolean;
|
504
|
+
provisionHotswapFriendlyResources?: boolean;
|
515
505
|
};
|
516
506
|
|
517
507
|
// @public (undocumented)
|
@@ -881,11 +871,11 @@ export type TransformerValidationStepContextProvider = Pick<TransformerContextPr
|
|
881
871
|
// @public (undocumented)
|
882
872
|
export interface TransformHostProvider {
|
883
873
|
// (undocumented)
|
884
|
-
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct) => AppSyncFunctionConfigurationProvider;
|
874
|
+
addAppSyncFunction: (name: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, dataSourceName: string, scope?: Construct, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty) => AppSyncFunctionConfigurationProvider;
|
885
875
|
// (undocumented)
|
886
876
|
addDynamoDbDataSource(name: string, table: ITable, options?: DynamoDbDataSourceOptions, scope?: Construct): DynamoDbDataSource;
|
887
877
|
// (undocumented)
|
888
|
-
addHttpDataSource(name: string, endpoint: string, options?:
|
878
|
+
addHttpDataSource(name: string, endpoint: string, options?: HttpDataSourceOptions, scope?: Construct): HttpDataSource;
|
889
879
|
// (undocumented)
|
890
880
|
addLambdaDataSource(name: string, lambdaFunction: IFunction, options?: DataSourceOptions, scope?: Construct): LambdaDataSource;
|
891
881
|
// (undocumented)
|
@@ -895,7 +885,7 @@ export interface TransformHostProvider {
|
|
895
885
|
// (undocumented)
|
896
886
|
addNoneDataSource(name: string, options?: DataSourceOptions, scope?: Construct): NoneDataSource;
|
897
887
|
// (undocumented)
|
898
|
-
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct) => CfnResolver;
|
888
|
+
addResolver: (typeName: string, fieldName: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, resolverLogicalId?: string, dataSourceName?: string, pipelineConfig?: string[], scope?: Construct, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty) => CfnResolver;
|
899
889
|
// (undocumented)
|
900
890
|
addSearchableDataSource(name: string, endpoint: string, region: string, options?: SearchableDataSourceOptions, scope?: Construct): BaseDataSource;
|
901
891
|
// (undocumented)
|
@@ -924,6 +914,7 @@ export type TransformParameters = {
|
|
924
914
|
sandboxModeEnabled: boolean;
|
925
915
|
allowDestructiveGraphqlSchemaUpdates: boolean;
|
926
916
|
replaceTableUponGsiUpdate: boolean;
|
917
|
+
allowGen1Patterns: boolean;
|
927
918
|
useSubUsernameForDefaultIdentityClaim: boolean;
|
928
919
|
populateOwnerFieldForStaticGroupAuth: boolean;
|
929
920
|
suppressApiKeyGeneration: boolean;
|
@@ -932,7 +923,6 @@ export type TransformParameters = {
|
|
932
923
|
enableAutoIndexQueryNames: boolean;
|
933
924
|
respectPrimaryKeyAttributesOnConnectionField: boolean;
|
934
925
|
enableSearchNodeToNodeEncryption: boolean;
|
935
|
-
enableGen2Migration: boolean;
|
936
926
|
};
|
937
927
|
|
938
928
|
// @public (undocumented)
|
@@ -953,7 +943,7 @@ export interface VpcConfig {
|
|
953
943
|
|
954
944
|
// Warnings were encountered during analysis:
|
955
945
|
//
|
956
|
-
// src/graphql-api-provider.ts:
|
946
|
+
// src/graphql-api-provider.ts:37:3 - (ae-forgotten-export) The symbol "OpenIDConnectConfig" needs to be exported by the entry point index.d.ts
|
957
947
|
|
958
948
|
// (No @packageDocumentation comment for this package)
|
959
949
|
|
@@ -3,12 +3,29 @@
|
|
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.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@4.0.1...@aws-amplify/graphql-transformer-interfaces@4.1.0) (2024-09-06)
|
7
7
|
|
8
8
|
### Features
|
9
9
|
|
10
|
-
-
|
11
|
-
|
10
|
+
- **generation-transformer:** add generation transformer ([#2820](https://github.com/aws-amplify/amplify-category-api/issues/2820)) ([a86db4e](https://github.com/aws-amplify/amplify-category-api/commit/a86db4e40962565fb55b7262a7d771f21bacef2a))
|
11
|
+
|
12
|
+
## [4.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@4.0.0...@aws-amplify/graphql-transformer-interfaces@4.0.1) (2024-08-28)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @aws-amplify/graphql-transformer-interfaces
|
15
|
+
|
16
|
+
# [4.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.10.1...@aws-amplify/graphql-transformer-interfaces@4.0.0) (2024-08-20)
|
17
|
+
|
18
|
+
- feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
|
19
|
+
|
20
|
+
### BREAKING CHANGES
|
21
|
+
|
22
|
+
- distinguish from LTS version
|
23
|
+
|
24
|
+
## [3.10.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.10.0...@aws-amplify/graphql-transformer-interfaces@3.10.1) (2024-07-15)
|
25
|
+
|
26
|
+
### Bug Fixes
|
27
|
+
|
28
|
+
- add translation behavior to disable gen 1 patterns ([#2670](https://github.com/aws-amplify/amplify-category-api/issues/2670)) ([38d1a71](https://github.com/aws-amplify/amplify-category-api/commit/38d1a718ec2b0290f514780c6d1d5f0790ba7764))
|
12
29
|
|
13
30
|
# [3.10.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-interfaces@3.9.0...@aws-amplify/graphql-transformer-interfaces@3.10.0) (2024-07-01)
|
14
31
|
|
package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts
CHANGED
@@ -3,6 +3,7 @@ import { Construct, IConstruct } from 'constructs';
|
|
3
3
|
import { Grant, IGrantable, IRole } from 'aws-cdk-lib/aws-iam';
|
4
4
|
import { TransformHostProvider } from './transform-host-provider';
|
5
5
|
import { AssetProvider } from './asset-provider';
|
6
|
+
import { IamResource } from 'aws-cdk-lib/aws-appsync';
|
6
7
|
export type AppSyncAuthMode = 'API_KEY' | 'AMAZON_COGNITO_USER_POOLS' | 'AWS_IAM' | 'OPENID_CONNECT' | 'AWS_LAMBDA';
|
7
8
|
export type AppSyncAuthConfiguration = {
|
8
9
|
defaultAuthentication: AppSyncAuthConfigurationEntry;
|
@@ -80,17 +81,15 @@ export interface S3MappingFunctionCodeProvider {
|
|
80
81
|
export type MappingTemplateProvider = InlineMappingTemplateProvider | S3MappingTemplateProvider;
|
81
82
|
export interface GraphQLAPIProvider extends IConstruct {
|
82
83
|
readonly apiId: string;
|
84
|
+
readonly graphqlUrl: string;
|
83
85
|
readonly host: TransformHostProvider;
|
84
86
|
readonly name: string;
|
85
87
|
readonly assetProvider: AssetProvider;
|
86
88
|
addToSchema: (addition: string) => void;
|
87
89
|
addSchemaDependency: (construct: CfnResource) => boolean;
|
88
|
-
grant: (grantee: IGrantable, resources:
|
90
|
+
grant: (grantee: IGrantable, resources: IamResource, ...actions: string[]) => Grant;
|
89
91
|
grantMutation: (grantee: IGrantable, ...fields: string[]) => Grant;
|
90
92
|
grantQuery: (grantee: IGrantable, ...fields: string[]) => Grant;
|
91
93
|
grantSubscription: (grantee: IGrantable, ...fields: string[]) => Grant;
|
92
94
|
}
|
93
|
-
export interface APIIAMResourceProvider {
|
94
|
-
resourceArns: (api: GraphQLAPIProvider) => string[];
|
95
|
-
}
|
96
95
|
//# sourceMappingURL=graphql-api-provider.d.ts.map
|