@aws-amplify/graphql-api-construct 1.16.1-ai-next.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/.jsii +160 -87
  2. package/API.md +11 -1
  3. package/CHANGELOG.md +6 -2
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +14 -2
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/model-datasource-strategy-types.d.ts +21 -1
  8. package/lib/model-datasource-strategy-types.js +1 -1
  9. package/lib/sql-model-datasource-strategy.js +1 -1
  10. package/lib/types.d.ts +1 -1
  11. package/lib/types.js +1 -1
  12. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +3 -4
  13. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +174 -212
  14. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.d.ts +10 -0
  15. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_message_history_retriever.js +65 -2
  16. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +4 -2
  17. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +29 -7
  18. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +11 -8
  19. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +33 -25
  20. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.d.ts +10 -0
  21. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/errors.js +17 -0
  22. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.d.ts +16 -0
  23. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/lazy.js +37 -0
  24. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +0 -19
  25. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +1 -1
  26. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
  27. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
  28. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
  29. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
  30. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
  31. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
  32. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
  33. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
  34. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
  35. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
  36. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
  37. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
  38. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
  39. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
  40. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
  41. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
  42. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
  43. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
  44. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
  45. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
  46. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
  47. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
  48. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
  49. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
  50. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
  51. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
  52. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
  53. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
  54. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
  55. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +24 -0
  56. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +40 -0
  57. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
  58. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
  59. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
  60. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
  61. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
  62. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
  63. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
  64. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
  65. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
  66. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
  67. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
  68. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
  69. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
  70. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
  71. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
  72. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
  73. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.d.ts +5 -0
  74. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stack_provider.js +3 -0
  75. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
  76. package/node_modules/@aws-amplify/ai-constructs/package.json +4 -4
  77. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -1
  78. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +13 -13
  79. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +6 -2
  80. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +1 -1
  81. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
  82. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/assistant-streaming-mutation-resolver-fn.template.js +0 -2
  83. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -1
  85. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +1 -1
  86. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
  87. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +10 -10
  88. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
  89. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +11 -11
  90. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
  91. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +8 -8
  92. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
  93. package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
  94. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
  95. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
  96. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
  97. package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
  98. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
  99. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +7 -7
  100. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +1 -1
  101. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +7 -7
  102. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
  103. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +7 -7
  104. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
  105. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +8 -8
  106. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
  107. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  108. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +11 -11
  109. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -2
  110. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  111. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +7 -2
  112. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  113. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  114. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  115. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  116. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  117. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +12 -3
  118. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  119. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +2 -0
  120. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
  121. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +4 -2
  122. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
  123. 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
  124. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +6 -1
  125. 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
  126. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +7 -0
  127. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -0
  128. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +205 -0
  129. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -0
  130. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +13 -0
  131. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +47 -0
  132. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/README.md +18 -0
  133. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/index.js +1848 -0
  134. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/package.json +16 -0
  135. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +21 -0
  136. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +11 -0
  137. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +12 -9
  138. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
  139. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  140. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +7 -7
  141. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -2
  142. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  143. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +6 -0
  144. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  145. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
  146. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +7 -1
  147. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
  148. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
  149. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +7 -1
  150. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
  151. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
  152. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  153. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -0
  154. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  155. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +9 -1
  156. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  157. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +9 -9
  158. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
  159. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  160. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +8 -8
  161. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
  162. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +8 -8
  163. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -1
  164. package/node_modules/@aws-amplify/graphql-transformer/package.json +18 -18
  165. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +4 -0
  166. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -2
  167. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  168. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  169. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
  170. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  171. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -1
  172. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  173. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +9 -1
  174. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  175. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -5
  176. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +11 -1
  177. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -0
  178. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
  179. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +6 -1
  180. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  181. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  182. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
  183. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +15 -0
  184. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  185. package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
  186. package/node_modules/graphql-transformer-common/package.json +2 -2
  187. package/package.json +22 -22
  188. package/src/amplify-graphql-api.ts +16 -1
  189. package/src/model-datasource-strategy-types.ts +25 -0
  190. package/src/types.ts +1 -1
@@ -3,7 +3,7 @@
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
- ## [5.1.1-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@5.1.0...graphql-transformer-common@5.1.1-ai-next.0) (2024-11-01)
6
+ ## [5.1.1](https://github.com/aws-amplify/amplify-category-api/compare/graphql-transformer-common@5.1.0...graphql-transformer-common@5.1.1) (2024-11-08)
7
7
 
8
8
  **Note:** Version bump only for package graphql-transformer-common
9
9
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-transformer-common",
3
- "version": "5.1.1-ai-next.0",
3
+ "version": "5.1.1",
4
4
  "description": "Common code and constants for AppSync Transformers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -73,5 +73,5 @@
73
73
  "printBasicPrototype": true
74
74
  }
75
75
  },
76
- "gitHead": "7e91c8e2fdf06534f35f663db8cfff1c3b7fad9e"
76
+ "gitHead": "a6ab93200105e655183d8e8bab387797e7a5553d"
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-api-construct",
3
- "version": "1.16.1-ai-next.0",
3
+ "version": "1.17.0",
4
4
  "description": "AppSync GraphQL Api Construct using Amplify GraphQL Transformer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -158,26 +158,26 @@
158
158
  "semver"
159
159
  ],
160
160
  "dependencies": {
161
- "@aws-amplify/ai-constructs": "0.0.0-test-20241029211113",
161
+ "@aws-amplify/ai-constructs": "0.8.0",
162
162
  "@aws-amplify/backend-output-schemas": "^1.0.0",
163
163
  "@aws-amplify/backend-output-storage": "^1.0.0",
164
- "@aws-amplify/graphql-auth-transformer": "4.1.6-ai-next.0",
165
- "@aws-amplify/graphql-conversation-transformer": "0.5.1-ai-next.0",
166
- "@aws-amplify/graphql-default-value-transformer": "3.1.3-ai-next.0",
167
- "@aws-amplify/graphql-directives": "2.4.0",
168
- "@aws-amplify/graphql-function-transformer": "3.1.5-ai-next.0",
169
- "@aws-amplify/graphql-generation-transformer": "0.2.6-ai-next.0",
170
- "@aws-amplify/graphql-http-transformer": "3.0.8-ai-next.0",
171
- "@aws-amplify/graphql-index-transformer": "3.0.8-ai-next.0",
172
- "@aws-amplify/graphql-maps-to-transformer": "4.0.8-ai-next.0",
173
- "@aws-amplify/graphql-model-transformer": "3.0.8-ai-next.0",
174
- "@aws-amplify/graphql-predictions-transformer": "3.0.8-ai-next.0",
175
- "@aws-amplify/graphql-relational-transformer": "3.0.8-ai-next.0",
176
- "@aws-amplify/graphql-searchable-transformer": "3.0.8-ai-next.0",
177
- "@aws-amplify/graphql-sql-transformer": "0.4.8-ai-next.0",
178
- "@aws-amplify/graphql-transformer": "2.1.6-ai-next.0",
179
- "@aws-amplify/graphql-transformer-core": "3.2.3-ai-next.0",
180
- "@aws-amplify/graphql-transformer-interfaces": "4.1.2",
164
+ "@aws-amplify/graphql-auth-transformer": "4.1.6",
165
+ "@aws-amplify/graphql-conversation-transformer": "0.6.0",
166
+ "@aws-amplify/graphql-default-value-transformer": "3.1.3",
167
+ "@aws-amplify/graphql-directives": "2.5.0",
168
+ "@aws-amplify/graphql-function-transformer": "3.1.5",
169
+ "@aws-amplify/graphql-generation-transformer": "0.2.6",
170
+ "@aws-amplify/graphql-http-transformer": "3.0.8",
171
+ "@aws-amplify/graphql-index-transformer": "3.0.8",
172
+ "@aws-amplify/graphql-maps-to-transformer": "4.0.8",
173
+ "@aws-amplify/graphql-model-transformer": "3.1.0",
174
+ "@aws-amplify/graphql-predictions-transformer": "3.0.8",
175
+ "@aws-amplify/graphql-relational-transformer": "3.1.0",
176
+ "@aws-amplify/graphql-searchable-transformer": "3.0.8",
177
+ "@aws-amplify/graphql-sql-transformer": "0.4.8",
178
+ "@aws-amplify/graphql-transformer": "2.1.6",
179
+ "@aws-amplify/graphql-transformer-core": "3.3.0",
180
+ "@aws-amplify/graphql-transformer-interfaces": "4.2.0",
181
181
  "@aws-amplify/platform-core": "^1.0.0",
182
182
  "@aws-amplify/plugin-types": "^1.0.0",
183
183
  "@aws-crypto/crc32": "5.2.0",
@@ -261,7 +261,7 @@
261
261
  "graceful-fs": "^4.2.0",
262
262
  "graphql": "^15.5.0",
263
263
  "graphql-mapping-template": "5.0.1",
264
- "graphql-transformer-common": "5.1.1-ai-next.0",
264
+ "graphql-transformer-common": "5.1.1",
265
265
  "hjson": "^3.2.2",
266
266
  "immer": "^9.0.12",
267
267
  "is-buffer": "~1.1.6",
@@ -282,7 +282,7 @@
282
282
  "zod": "^3.22.2"
283
283
  },
284
284
  "devDependencies": {
285
- "@aws-amplify/graphql-transformer-test-utils": "1.0.7-ai-next.0",
285
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.7",
286
286
  "@types/fs-extra": "^8.0.1",
287
287
  "@types/node": "^18.0.0",
288
288
  "aws-cdk-lib": "2.158.0",
@@ -353,5 +353,5 @@
353
353
  "printBasicPrototype": true
354
354
  }
355
355
  },
356
- "gitHead": "7e91c8e2fdf06534f35f663db8cfff1c3b7fad9e"
356
+ "gitHead": "a6ab93200105e655183d8e8bab387797e7a5553d"
357
357
  }
@@ -1,7 +1,7 @@
1
1
  import * as path from 'path';
2
2
  import { Construct } from 'constructs';
3
3
  import { ExecuteTransformConfig, executeTransform } from '@aws-amplify/graphql-transformer';
4
- import { NestedStack, Stack } from 'aws-cdk-lib';
4
+ import { NestedStack, Stack, Annotations } from 'aws-cdk-lib';
5
5
  import { AttributionMetadataStorage, StackMetadataBackendOutputStorageStrategy } from '@aws-amplify/backend-output-storage';
6
6
  import { graphqlOutputKey } from '@aws-amplify/backend-output-schemas';
7
7
  import type { GraphqlOutput, AwsAppsyncAuthenticationType } from '@aws-amplify/backend-output-schemas';
@@ -50,6 +50,7 @@ import {
50
50
  import { getStackForScope, walkAndProcessNodes } from './internal/construct-tree';
51
51
  import { getDataSourceStrategiesProvider } from './internal/data-source-config';
52
52
  import { getMetadataDataSources, getMetadataAuthorizationModes, getMetadataCustomOperations } from './internal/metadata';
53
+ import { isImportedAmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-core';
53
54
 
54
55
  /**
55
56
  * L3 Construct which invokes the Amplify Transformer Pattern over an input Graphql Schema.
@@ -160,6 +161,20 @@ export class AmplifyGraphqlApi extends Construct {
160
161
  dataStoreConfiguration,
161
162
  } = props;
162
163
 
164
+ // TODO: GEN1_GEN2_MIGRATION
165
+ // print warning when using experimental features.
166
+ // remove this code block when the feature is released.
167
+ // start block
168
+ const usingImportedAmplifyDynamoDbModelDataSourceStrategy = Object.values(definition.dataSourceStrategies).some((strategy) => {
169
+ return isImportedAmplifyDynamoDbModelDataSourceStrategy(strategy);
170
+ });
171
+ if (usingImportedAmplifyDynamoDbModelDataSourceStrategy) {
172
+ Annotations.of(this).addWarning(
173
+ 'ImportedAmplifyDynamoDbModelDataSourceStrategy is experimental and is not recommended for production use. This functionality may be changed or removed without warning.',
174
+ );
175
+ }
176
+ // end block
177
+
163
178
  if (conflictResolution && dataStoreConfiguration) {
164
179
  throw new Error(
165
180
  'conflictResolution is deprecated. conflictResolution and dataStoreConfiguration cannot be used together. Please use dataStoreConfiguration.',
@@ -12,6 +12,7 @@
12
12
  export type ModelDataSourceStrategy =
13
13
  | DefaultDynamoDbModelDataSourceStrategy
14
14
  | AmplifyDynamoDbModelDataSourceStrategy
15
+ | ImportedAmplifyDynamoDbModelDataSourceStrategy
15
16
  | SQLLambdaModelDataSourceStrategy;
16
17
 
17
18
  /**
@@ -40,6 +41,30 @@ export interface AmplifyDynamoDbModelDataSourceStrategy {
40
41
  readonly provisionStrategy: 'AMPLIFY_TABLE';
41
42
  }
42
43
 
44
+ // TODO: GEN1_GEN2_MIGRATION
45
+ // remove @experimental tag
46
+ // Decide final naming of API
47
+ /**
48
+ * Use custom resource type 'Custom::ImportedAmplifyDynamoDBTable' to manage an imported table.
49
+ *
50
+ * Tables can be imported only if they meet the following criteria.
51
+ * 1. The imported table must have been created with through an Amplify Gen 1 project.
52
+ * 2. The imported table must be in the same account and region as this construct.
53
+ * 3. The imported table properties must match the corresponding table properties specified in this construct.
54
+ * (AttributeDefinitions, KeySchema, GlobalSecondaryIndexes, BillingModeSummary, ProvisionedThroughput, StreamSpecification, SSEDescription, DeletionProtectionEnabled)
55
+ *
56
+ * The imported tables will follow the auth rules defined in this construct.
57
+ * The auth rules of the source Gen 1 project will not apply to the API created by this construct.
58
+ * Ensure the correct auth rules have been set to prevent data exposure.
59
+ *
60
+ * @experimental Not recommended for production use. This functionality may be changed or removed without warning.
61
+ */
62
+ export interface ImportedAmplifyDynamoDbModelDataSourceStrategy {
63
+ readonly dbType: 'DYNAMODB';
64
+ readonly provisionStrategy: 'IMPORTED_AMPLIFY_TABLE';
65
+ readonly tableName: string;
66
+ }
67
+
43
68
  /**
44
69
  * A strategy that creates a Lambda to connect to a pre-existing SQL table to resolve model data.
45
70
  */
package/src/types.ts CHANGED
@@ -753,7 +753,7 @@ export interface AmplifyGraphqlApiProps {
753
753
  readonly translationBehavior?: PartialTranslationBehavior;
754
754
 
755
755
  /**
756
- * Strategy to store construct outputs. If no outputStorageStrategey is provided a default strategy will be used.
756
+ * Strategy to store construct outputs. If no outputStorageStrategy is provided a default strategy will be used.
757
757
  */
758
758
  readonly outputStorageStrategy?: IBackendOutputStorageStrategy;
759
759