@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.
Files changed (399) hide show
  1. package/.jsii +496 -215
  2. package/API.md +3 -11
  3. package/CHANGELOG.md +39 -3
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +9 -10
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/model-datasource-strategy-types.d.ts +1 -19
  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 +11 -2
  11. package/lib/types.js +1 -1
  12. package/node_modules/@aws-amplify/ai-constructs/README.md +66 -0
  13. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.d.ts +28 -0
  14. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/conversation_handler_construct.js +74 -0
  15. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.d.ts +3 -0
  16. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/index.js +6 -0
  17. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.d.ts +30 -0
  18. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/bedrock_converse_adapter.js +191 -0
  19. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.d.ts +30 -0
  20. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_executor.js +47 -0
  21. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.d.ts +18 -0
  22. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/conversation_turn_response_sender.js +66 -0
  23. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.d.ts +8 -0
  24. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/default_handler.js +10 -0
  25. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.d.ts +15 -0
  26. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/event_tools_provider.js +32 -0
  27. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.d.ts +9 -0
  28. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_query_factory.js +44 -0
  29. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.d.ts +22 -0
  30. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/graphql_tool.js +48 -0
  31. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.d.ts +3 -0
  32. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/index.js +6 -0
  33. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.d.ts +3 -0
  34. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/event-tools-provider/types.js +3 -0
  35. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.d.ts +4 -0
  36. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/index.js +6 -0
  37. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.d.ts +61 -0
  38. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/runtime/types.js +3 -0
  39. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.d.ts +5 -0
  40. package/node_modules/@aws-amplify/ai-constructs/lib/conversation/test-assets/custom_handler.js +11 -0
  41. package/node_modules/@aws-amplify/ai-constructs/lib/index.d.ts +3 -0
  42. package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.d.ts +4 -0
  43. package/node_modules/@aws-amplify/ai-constructs/lib/index.internal.js +34 -0
  44. package/node_modules/@aws-amplify/ai-constructs/lib/index.js +29 -0
  45. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/README.md +9 -0
  46. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.d.ts +4 -0
  47. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/amplify_function.js +3 -0
  48. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.d.ts +66 -0
  49. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/auth_resources.js +3 -0
  50. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.d.ts +5 -0
  51. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/aws_client_provider.js +3 -0
  52. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.d.ts +56 -0
  53. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_identifier.js +3 -0
  54. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.d.ts +6 -0
  55. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_output.js +3 -0
  56. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.d.ts +22 -0
  57. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_secret_resolver.js +3 -0
  58. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.d.ts +8 -0
  59. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_creator.js +3 -0
  60. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.d.ts +7 -0
  61. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/backend_stack_resolver.js +3 -0
  62. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.d.ts +35 -0
  63. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_container.js +3 -0
  64. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.d.ts +24 -0
  65. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/construct_factory.js +3 -0
  66. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.d.ts +17 -0
  67. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deep_partial.js +3 -0
  68. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.d.ts +8 -0
  69. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/deployment_type.js +3 -0
  70. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.d.ts +8 -0
  71. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/function_resources.js +3 -0
  72. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.d.ts +14 -0
  73. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/import_path_verifier.js +3 -0
  74. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.d.ts +23 -0
  75. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/index.js +39 -0
  76. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.d.ts +11 -0
  77. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_retrieval_strategy.js +3 -0
  78. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.d.ts +10 -0
  79. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/output_storage_strategy.js +3 -0
  80. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.d.ts +16 -0
  81. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/package_manager_controller.js +3 -0
  82. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.d.ts +27 -0
  83. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_access_acceptor.js +3 -0
  84. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.d.ts +10 -0
  85. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_name_validator.js +3 -0
  86. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.d.ts +10 -0
  87. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/resource_provider.js +3 -0
  88. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.d.ts +5 -0
  89. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/ssm_environment_entries_generator.js +3 -0
  90. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.d.ts +4 -0
  91. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/lib/stable_backend_identifiers.js +3 -0
  92. package/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types/package.json +24 -0
  93. package/node_modules/@aws-amplify/ai-constructs/package.json +37 -0
  94. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +27 -1
  95. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  96. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +6 -1
  97. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  98. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +27 -21
  99. package/node_modules/@aws-amplify/graphql-conversation-transformer/API.md +33 -0
  100. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +10 -0
  101. package/node_modules/@aws-amplify/graphql-conversation-transformer/LICENSE +201 -0
  102. package/node_modules/@aws-amplify/graphql-conversation-transformer/README.md +145 -0
  103. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts +13 -0
  104. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.d.ts.map +1 -0
  105. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +111 -0
  106. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -0
  107. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts +10 -0
  108. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.d.ts.map +1 -0
  109. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js +81 -0
  110. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/session-model.js.map +1 -0
  111. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts +39 -0
  112. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.d.ts.map +1 -0
  113. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js +35 -0
  114. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/grapqhl-conversation-transformer.js.map +1 -0
  115. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts +2 -0
  116. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.d.ts.map +1 -0
  117. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js +6 -0
  118. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/index.js.map +1 -0
  119. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts +3 -0
  120. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.d.ts.map +1 -0
  121. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js +62 -0
  122. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-messages-subscription-resolver.js.map +1 -0
  123. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts +3 -0
  124. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.d.ts.map +1 -0
  125. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js +77 -0
  126. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/assistant-mutation-resolver.js.map +1 -0
  127. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts +3 -0
  128. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.d.ts.map +1 -0
  129. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js +57 -0
  130. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/auth-resolver.js.map +1 -0
  131. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts +3 -0
  132. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.d.ts.map +1 -0
  133. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js +34 -0
  134. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/init-resolver.js.map +1 -0
  135. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts +5 -0
  136. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.d.ts.map +1 -0
  137. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js +104 -0
  138. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/invoke-lambda-resolver.js.map +1 -0
  139. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts +6 -0
  140. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.d.ts.map +1 -0
  141. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js +3 -0
  142. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/js-resolver-function-provider.js.map +1 -0
  143. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts +3 -0
  144. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.d.ts.map +1 -0
  145. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js +59 -0
  146. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/message-history-resolver.js.map +1 -0
  147. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts +3 -0
  148. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.d.ts.map +1 -0
  149. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js +50 -0
  150. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/verify-session-owner-resolver.js.map +1 -0
  151. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts +3 -0
  152. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.d.ts.map +1 -0
  153. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js +45 -0
  154. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/write-message-to-table-resolver.js.map +1 -0
  155. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts +12 -0
  156. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -0
  157. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js +68 -0
  158. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -0
  159. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts +15 -0
  160. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.d.ts.map +1 -0
  161. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js +44 -0
  162. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-prepare-handler.js.map +1 -0
  163. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +20 -0
  164. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -0
  165. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +184 -0
  166. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -0
  167. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
  168. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
  169. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js +81 -0
  170. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
  171. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts +25 -0
  172. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.d.ts.map +1 -0
  173. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js +116 -0
  174. package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/utils/tools.js.map +1 -0
  175. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +82 -0
  176. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +25 -1
  177. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +19 -13
  178. package/node_modules/@aws-amplify/graphql-directives/API.md +6 -0
  179. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +14 -0
  180. package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
  181. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts +3 -0
  182. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.d.ts.map +1 -0
  183. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js +31 -0
  184. package/node_modules/@aws-amplify/graphql-directives/lib/directives/conversation.js.map +1 -0
  185. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts +3 -0
  186. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.d.ts.map +1 -0
  187. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js +24 -0
  188. package/node_modules/@aws-amplify/graphql-directives/lib/directives/generation.js.map +1 -0
  189. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +2 -0
  190. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -1
  191. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +5 -1
  192. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -1
  193. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -1
  194. package/node_modules/@aws-amplify/graphql-directives/lib/index.js +2 -0
  195. package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -1
  196. package/node_modules/@aws-amplify/graphql-directives/package.json +13 -6
  197. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +17 -1
  198. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +17 -13
  199. package/node_modules/@aws-amplify/graphql-generation-transformer/API.md +26 -0
  200. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +11 -0
  201. package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
  202. package/node_modules/@aws-amplify/graphql-generation-transformer/README.md +85 -0
  203. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts +32 -0
  204. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.d.ts.map +1 -0
  205. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js +119 -0
  206. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/grapqhl-generation-transformer.js.map +1 -0
  207. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts +2 -0
  208. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.d.ts.map +1 -0
  209. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js +6 -0
  210. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/index.js.map +1 -0
  211. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts +7 -0
  212. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.d.ts.map +1 -0
  213. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js +72 -0
  214. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/resolvers/invoke-bedrock.js.map +1 -0
  215. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts +5 -0
  216. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.d.ts.map +1 -0
  217. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js +78 -0
  218. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/graphql-json-schema-type.js.map +1 -0
  219. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts +27 -0
  220. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.d.ts.map +1 -0
  221. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js +31 -0
  222. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/utils/tools.js.map +1 -0
  223. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts +4 -0
  224. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.d.ts.map +1 -0
  225. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js +29 -0
  226. package/node_modules/@aws-amplify/graphql-generation-transformer/lib/validation.js.map +1 -0
  227. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +78 -0
  228. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +17 -1
  229. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +17 -13
  230. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +25 -1
  231. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +18 -14
  232. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +27 -1
  233. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  234. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +21 -17
  235. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +27 -4
  236. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  237. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +2 -47
  238. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  239. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  240. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  241. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  242. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +2 -2
  243. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  244. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +22 -4
  245. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  246. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
  247. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +11 -11
  248. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
  249. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +0 -2
  250. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
  251. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +2 -4
  252. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
  253. 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
  254. 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
  255. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +91 -37
  256. 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
  257. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts +1 -1
  258. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.d.ts.map +1 -1
  259. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.js +2 -2
  260. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/cfn-response.js.map +1 -1
  261. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.d.ts.map +1 -1
  262. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js +1 -3
  263. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/dynamo-model-resource-generator.js.map +1 -1
  264. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts +0 -1
  265. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
  266. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +0 -3
  267. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  268. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +2 -2
  269. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  270. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +21 -16
  271. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +23 -1
  272. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.d.ts.map +1 -1
  273. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js +3 -0
  274. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js.map +1 -1
  275. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  276. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +17 -13
  277. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +34 -1
  278. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  279. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +13 -0
  280. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  281. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  282. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +13 -0
  283. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  284. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  285. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +13 -0
  286. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  287. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
  288. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +7 -0
  289. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
  290. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -1
  291. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +7 -8
  292. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -1
  293. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  294. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +7 -1
  295. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  296. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +19 -15
  297. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +31 -1
  298. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
  299. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +3 -0
  300. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
  301. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  302. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +22 -16
  303. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +25 -1
  304. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +18 -14
  305. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +33 -2
  306. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
  307. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +8 -2
  308. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  309. package/node_modules/@aws-amplify/graphql-transformer/package.json +32 -23
  310. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +8 -2
  311. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +54 -7
  312. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +20 -3
  313. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts +2 -1
  314. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.d.ts.map +1 -1
  315. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js +3 -9
  316. package/node_modules/@aws-amplify/graphql-transformer-core/lib/appsync-function.js.map +1 -1
  317. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts +5 -11
  318. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.d.ts.map +1 -1
  319. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js +6 -31
  320. package/node_modules/@aws-amplify/graphql-transformer-core/lib/graphql-api.js.map +1 -1
  321. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +2 -1
  322. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  323. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +8 -3
  324. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  325. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts +3 -3
  326. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.d.ts.map +1 -1
  327. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js +12 -16
  328. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transform-host.js.map +1 -1
  329. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts +6 -2
  330. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.d.ts.map +1 -1
  331. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +71 -23
  332. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
  333. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  334. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js +1 -1
  335. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/transform-parameters.js.map +1 -1
  336. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts +20 -0
  337. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.d.ts.map +1 -0
  338. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js +89 -0
  339. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/graphql-scalar-json-schema-definitions.js.map +1 -0
  340. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts +4 -0
  341. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.d.ts.map +1 -0
  342. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js +10 -0
  343. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/index.js.map +1 -0
  344. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts +21 -0
  345. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.d.ts.map +1 -0
  346. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js +3 -0
  347. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/json-schema.js.map +1 -0
  348. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts +4 -0
  349. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.d.ts.map +1 -0
  350. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js +44 -0
  351. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/ai/named-type-conversion.js.map +1 -0
  352. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts +21 -0
  353. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.d.ts.map +1 -0
  354. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js +27 -0
  355. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/function-runtime.js.map +1 -0
  356. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -2
  357. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  358. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +1 -9
  359. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  360. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +19 -13
  361. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +13 -23
  362. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +20 -3
  363. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +3 -4
  364. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
  365. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
  366. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +1 -1
  367. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
  368. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
  369. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +1 -6
  370. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  371. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  372. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts +4 -4
  373. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transform-host-provider.d.ts.map +1 -1
  374. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts +1 -0
  375. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/synth-parameters.d.ts.map +1 -1
  376. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts +1 -1
  377. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transform-parameters.d.ts.map +1 -1
  378. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +14 -7
  379. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +3 -10
  380. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +0 -1
  381. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +0 -10
  382. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transform-host-provider.ts +5 -1
  383. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/synth-parameters.ts +1 -0
  384. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transform-parameters.ts +1 -3
  385. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  386. package/node_modules/graphql-mapping-template/CHANGELOG.md +12 -0
  387. package/node_modules/graphql-mapping-template/LICENSE +201 -0
  388. package/node_modules/graphql-mapping-template/package.json +13 -5
  389. package/node_modules/graphql-transformer-common/API.md +0 -1
  390. package/node_modules/graphql-transformer-common/CHANGELOG.md +9 -3
  391. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts +0 -1
  392. package/node_modules/graphql-transformer-common/lib/ResourceConstants.d.ts.map +1 -1
  393. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js +0 -1
  394. package/node_modules/graphql-transformer-common/lib/ResourceConstants.js.map +1 -1
  395. package/node_modules/graphql-transformer-common/package.json +13 -6
  396. package/package.json +42 -31
  397. package/src/amplify-graphql-api.ts +7 -8
  398. package/src/model-datasource-strategy-types.ts +0 -21
  399. package/src/types.ts +12 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-transformer",
3
- "version": "1.7.0-gen2-migration.0",
3
+ "version": "2.1.0",
4
4
  "description": "Amplify GraphQL Transformer Root Package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,38 +22,44 @@
22
22
  "cloudformation",
23
23
  "aws",
24
24
  "amplify",
25
- "api"
25
+ "api",
26
+ "transformer"
26
27
  ],
27
28
  "publishConfig": {
28
29
  "access": "public"
29
30
  },
30
31
  "dependencies": {
31
- "@aws-amplify/graphql-auth-transformer": "3.6.3-gen2-migration.0",
32
- "@aws-amplify/graphql-default-value-transformer": "2.3.11-gen2-migration.0",
33
- "@aws-amplify/graphql-function-transformer": "2.1.26-gen2-migration.0",
34
- "@aws-amplify/graphql-http-transformer": "2.1.26-gen2-migration.0",
35
- "@aws-amplify/graphql-index-transformer": "2.4.7-gen2-migration.0",
36
- "@aws-amplify/graphql-maps-to-transformer": "3.4.21-gen2-migration.0",
37
- "@aws-amplify/graphql-model-transformer": "2.12.0-gen2-migration.0",
38
- "@aws-amplify/graphql-predictions-transformer": "2.1.26-gen2-migration.0",
39
- "@aws-amplify/graphql-relational-transformer": "2.5.9-gen2-migration.0",
40
- "@aws-amplify/graphql-searchable-transformer": "2.7.7-gen2-migration.0",
41
- "@aws-amplify/graphql-sql-transformer": "0.3.7-gen2-migration.0",
42
- "@aws-amplify/graphql-transformer-core": "2.10.0-gen2-migration.0",
43
- "@aws-amplify/graphql-transformer-interfaces": "3.11.0-gen2-migration.0"
32
+ "@aws-amplify/graphql-auth-transformer": "4.1.0",
33
+ "@aws-amplify/graphql-conversation-transformer": "0.2.0",
34
+ "@aws-amplify/graphql-default-value-transformer": "3.0.2",
35
+ "@aws-amplify/graphql-function-transformer": "3.0.2",
36
+ "@aws-amplify/graphql-generation-transformer": "0.2.0",
37
+ "@aws-amplify/graphql-http-transformer": "3.0.2",
38
+ "@aws-amplify/graphql-index-transformer": "3.0.2",
39
+ "@aws-amplify/graphql-maps-to-transformer": "4.0.2",
40
+ "@aws-amplify/graphql-model-transformer": "3.0.2",
41
+ "@aws-amplify/graphql-predictions-transformer": "3.0.2",
42
+ "@aws-amplify/graphql-relational-transformer": "3.0.2",
43
+ "@aws-amplify/graphql-searchable-transformer": "3.0.2",
44
+ "@aws-amplify/graphql-sql-transformer": "0.4.2",
45
+ "@aws-amplify/graphql-transformer-core": "3.1.0",
46
+ "@aws-amplify/graphql-transformer-interfaces": "4.1.0"
44
47
  },
45
48
  "devDependencies": {
46
- "@types/node": "^12.12.6",
49
+ "@aws-amplify/graphql-transformer-test-utils": "1.0.1",
50
+ "@types/node": "^18.0.0",
47
51
  "fs-extra": "^8.1.0",
48
52
  "rimraf": "^3.0.0",
49
- "ts-jest": "26.4.4"
53
+ "ts-jest": "^29.0.0"
50
54
  },
51
55
  "peerDependencies": {
52
- "aws-cdk-lib": "^2.80.0",
53
- "constructs": "^10.0.5"
56
+ "aws-cdk-lib": "^2.152.0",
57
+ "constructs": "^10.3.0"
54
58
  },
55
59
  "jest": {
56
- "testURL": "http://localhost",
60
+ "testEnvironmentOptions": {
61
+ "url": "http://localhost"
62
+ },
57
63
  "transform": {
58
64
  "^.+\\.tsx?$": "ts-jest"
59
65
  },
@@ -79,13 +85,16 @@
79
85
  "clover",
80
86
  "text"
81
87
  ],
82
- "testEnvironment": "../../FixJestEnvironment.js",
83
88
  "collectCoverageFrom": [
84
89
  "src/**/*.ts"
85
90
  ],
86
91
  "coveragePathIgnorePatterns": [
87
92
  "/__tests__/"
88
- ]
93
+ ],
94
+ "snapshotFormat": {
95
+ "escapeString": true,
96
+ "printBasicPrototype": true
97
+ }
89
98
  },
90
- "gitHead": "95431091fe3a13ae97a1f57a0bffb23f49c7e569"
99
+ "gitHead": "47cbcc39b5c28486ff5759d29efee07725bb8b55"
91
100
  }
@@ -33,6 +33,8 @@ import type {
33
33
  import { GraphQLTransform, ResolverConfig, UserDefinedSlot } from '@aws-amplify/graphql-transformer-core';
34
34
  import { Construct } from 'constructs';
35
35
  import { IFunction } from 'aws-cdk-lib/aws-lambda';
36
+ import { GenerationTransformer } from '@aws-amplify/graphql-generation-transformer';
37
+ import { ConversationTransformer } from '@aws-amplify/graphql-conversation-transformer';
36
38
 
37
39
  /**
38
40
  * Arguments passed into a TransformerFactory
@@ -61,6 +63,8 @@ export const constructTransformerChain = (options?: TransformerFactoryArgs): Tra
61
63
  const authTransformer = new AuthTransformer();
62
64
  const indexTransformer = new IndexTransformer();
63
65
  const hasOneTransformer = new HasOneTransformer();
66
+ const hasManyTransformer = new HasManyTransformer();
67
+ const belongsToTransformer = new BelongsToTransformer();
64
68
 
65
69
  // The default list of transformers should match DefaultDirectives in packages/amplify-graphql-directives/src/index.ts
66
70
  return [
@@ -70,10 +74,12 @@ export const constructTransformerChain = (options?: TransformerFactoryArgs): Tra
70
74
  new PredictionsTransformer(options?.storageConfig),
71
75
  new PrimaryKeyTransformer(),
72
76
  indexTransformer,
73
- new HasManyTransformer(),
77
+ hasManyTransformer,
74
78
  hasOneTransformer,
75
79
  new ManyToManyTransformer(modelTransformer, indexTransformer, hasOneTransformer, authTransformer),
76
- new BelongsToTransformer(),
80
+ belongsToTransformer,
81
+ new ConversationTransformer(modelTransformer, hasManyTransformer, belongsToTransformer, authTransformer),
82
+ new GenerationTransformer(),
77
83
  new DefaultValueTransformer(),
78
84
  authTransformer,
79
85
  new MapsToTransformer(),
@@ -5,7 +5,6 @@
5
5
  ```ts
6
6
 
7
7
  import { AmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-interfaces';
8
- import { APIIAMResourceProvider } from '@aws-amplify/graphql-transformer-interfaces';
9
8
  import { ApiKeyConfig } from 'aws-cdk-lib/aws-appsync';
10
9
  import { AppSyncAuthConfiguration } from '@aws-amplify/graphql-transformer-interfaces';
11
10
  import { AppSyncDataSourceType } from '@aws-amplify/graphql-transformer-interfaces';
@@ -14,6 +13,7 @@ import { AssetProvider } from '@aws-amplify/graphql-transformer-interfaces';
14
13
  import { AuthorizationConfig } from 'aws-cdk-lib/aws-appsync';
15
14
  import { AuthorizationType } from 'aws-cdk-lib/aws-appsync';
16
15
  import { CfnApiKey } from 'aws-cdk-lib/aws-appsync';
16
+ import { CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
17
17
  import { CfnGraphQLSchema } from 'aws-cdk-lib/aws-appsync';
18
18
  import { CfnParameter } from 'aws-cdk-lib';
19
19
  import { CfnResource } from 'aws-cdk-lib';
@@ -37,8 +37,8 @@ import { GraphqlApiBase } from 'aws-cdk-lib/aws-appsync';
37
37
  import { GraphQLAPIProvider } from '@aws-amplify/graphql-transformer-interfaces';
38
38
  import { GraphQLError } from 'graphql';
39
39
  import * as iam from 'aws-cdk-lib/aws-iam';
40
+ import { IamResource } from 'aws-cdk-lib/aws-appsync';
40
41
  import { IGrantable } from 'aws-cdk-lib/aws-iam';
41
- import { ImportedAmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-transformer-interfaces';
42
42
  import { InlineMappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
43
43
  import { InputObjectTypeDefinitionNode } from 'graphql';
44
44
  import { InputObjectTypeExtensionNode } from 'graphql';
@@ -97,6 +97,7 @@ import { TypeNode } from 'graphql';
97
97
  import { TypeSystemDefinitionNode } from 'graphql';
98
98
  import { UnionTypeDefinitionNode } from 'graphql';
99
99
  import { UnionTypeExtensionNode } from 'graphql';
100
+ import { Visibility } from 'aws-cdk-lib/aws-appsync';
100
101
 
101
102
  // @public (undocumented)
102
103
  export const APICategory = "api";
@@ -141,6 +142,9 @@ export const constructNonScalarFieldsStatement: (tableName: string, ctx: Transfo
141
142
  // @public (undocumented)
142
143
  export const constructSqlDirectiveDataSourceStrategies: (schema: string, dataSourceStrategy: ModelDataSourceStrategy, customSqlStatements?: Record<string, string>) => SqlDirectiveDataSourceStrategy[];
143
144
 
145
+ // @public (undocumented)
146
+ export const convertNamedTypeToJSONSchema: (namedType: NamedTypeNode) => JSONSchema;
147
+
144
148
  // @public (undocumented)
145
149
  function createSyncLambdaIAMPolicy(context: TransformerContextProvider, scope: Construct, name: string, region?: string): iam.Policy;
146
150
 
@@ -295,6 +299,24 @@ export const getTable: (ctx: TransformerContextProvider, object: ObjectTypeDefin
295
299
  // @public (undocumented)
296
300
  export const getType: (schema: DocumentNode_2, typeName: string) => ObjectTypeDefinitionNode | undefined;
297
301
 
302
+ // @public (undocumented)
303
+ export const GraphQLScalarJSONSchemaDefinition: {
304
+ Boolean: JSONSchema;
305
+ Int: JSONSchema;
306
+ Float: JSONSchema;
307
+ String: JSONSchema;
308
+ AWSDateTime: JSONSchema;
309
+ ID: JSONSchema;
310
+ AWSJSON: JSONSchema;
311
+ AWSEmail: JSONSchema;
312
+ AWSDate: JSONSchema;
313
+ AWSTime: JSONSchema;
314
+ AWSTimestamp: JSONSchema;
315
+ AWSPhone: JSONSchema;
316
+ AWSURL: JSONSchema;
317
+ AWSIPAddress: JSONSchema;
318
+ };
319
+
298
320
  // @public (undocumented)
299
321
  export class GraphQLTransform {
300
322
  constructor(options: GraphQLTransformOptions);
@@ -434,13 +456,13 @@ export const isBuiltInGraphqlNode: (obj: DefinitionNode) => obj is ObjectTypeDef
434
456
  export const isDefaultDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is DefaultDynamoDbModelDataSourceStrategy;
435
457
 
436
458
  // @public (undocumented)
437
- export const isDynamoDbModel: (ctx: DataSourceStrategiesProvider, typename: string) => boolean;
459
+ export const isDisallowedScalarType: (type: string) => boolean;
438
460
 
439
461
  // @public (undocumented)
440
- export const isDynamoDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is "DYNAMODB";
462
+ export const isDynamoDbModel: (ctx: DataSourceStrategiesProvider, typename: string) => boolean;
441
463
 
442
464
  // @public (undocumented)
443
- export const isImportedAmplifyDynamoDbModelDataSourceStrategy: (strategy: ModelDataSourceStrategy) => strategy is ImportedAmplifyDynamoDbModelDataSourceStrategy;
465
+ export const isDynamoDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is "DYNAMODB";
444
466
 
445
467
  // @public (undocumented)
446
468
  function isLambdaSyncConfig(syncConfig: SyncConfig): syncConfig is SyncConfigLambda;
@@ -465,6 +487,9 @@ export const isQueryNode: (obj: DefinitionNode) => obj is ObjectTypeDefinitionNo
465
487
  };
466
488
  });
467
489
 
490
+ // @public (undocumented)
491
+ export const isQueryType: (typeName: string) => typeName is "Query";
492
+
468
493
  // @public (undocumented)
469
494
  export const isSqlDbType: (dbType: ModelDataSourceStrategyDbType) => dbType is ModelDataSourceStrategySqlDbType;
470
495
 
@@ -474,6 +499,24 @@ export const isSqlModel: (ctx: DataSourceStrategiesProvider, typename: string) =
474
499
  // @public (undocumented)
475
500
  export const isSqlStrategy: (strategy: ModelDataSourceStrategy) => strategy is SQLLambdaModelDataSourceStrategy;
476
501
 
502
+ // @public (undocumented)
503
+ export type JSONSchema = {
504
+ type: string;
505
+ properties?: Record<string, JSONSchema>;
506
+ required?: string[];
507
+ items?: JSONSchema;
508
+ enum?: (string | number | boolean | null)[];
509
+ minimum?: number;
510
+ maximum?: number;
511
+ minLength?: number;
512
+ maxLength?: number;
513
+ pattern?: string;
514
+ format?: string;
515
+ description?: string;
516
+ default?: JSONLike;
517
+ additionalProperties?: boolean | JSONSchema;
518
+ };
519
+
477
520
  // @public (undocumented)
478
521
  export class MappingTemplate {
479
522
  // Warning: (ae-forgotten-export) The symbol "InlineTemplate" needs to be exported by the entry point index.d.ts
@@ -615,6 +658,9 @@ export class StackManager implements StackManagerProvider {
615
658
  readonly scope: Construct;
616
659
  }
617
660
 
661
+ // @public (undocumented)
662
+ export const supportedScalarTypes: string[];
663
+
618
664
  // @public (undocumented)
619
665
  export type SyncConfig = SyncConfigOptimistic | SyncConfigServer | SyncConfigLambda;
620
666
 
@@ -771,9 +817,9 @@ export abstract class TransformerPluginBase implements TransformerPluginProvider
771
817
 
772
818
  // @public (undocumented)
773
819
  export class TransformerResolver implements TransformerResolverProvider {
774
- constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined);
820
+ constructor(typeName: string, fieldName: string, resolverLogicalId: string, requestMappingTemplate: MappingTemplateProvider, responseMappingTemplate: MappingTemplateProvider, requestSlots: string[], responseSlots: string[], datasource?: DataSourceProvider | undefined, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty | undefined);
775
821
  // (undocumented)
776
- addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider) => void;
822
+ addToSlot: (slotName: string, requestMappingTemplate?: MappingTemplateProvider, responseMappingTemplate?: MappingTemplateProvider, dataSource?: DataSourceProvider, runtime?: CfnFunctionConfiguration.AppSyncRuntimeProperty) => void;
777
823
  // Warning: (ae-forgotten-export) The symbol "Slot" needs to be exported by the entry point index.d.ts
778
824
  //
779
825
  // (undocumented)
@@ -821,6 +867,7 @@ function validateResolverConfigForType(ctx: TransformerSchemaVisitStepContextPro
821
867
  // Warnings were encountered during analysis:
822
868
  //
823
869
  // src/config/transformer-config.ts:26:3 - (ae-forgotten-export) The symbol "LambdaConflictHandler" needs to be exported by the entry point index.d.ts
870
+ // src/utils/ai/json-schema.ts:14:3 - (ae-forgotten-export) The symbol "JSONLike" needs to be exported by the entry point index.d.ts
824
871
 
825
872
  // (No @packageDocumentation comment for this package)
826
873
 
@@ -3,12 +3,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
- # [2.10.0-gen2-migration.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.2...@aws-amplify/graphql-transformer-core@2.10.0-gen2-migration.0) (2024-07-15)
6
+ # [3.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@3.0.1...@aws-amplify/graphql-transformer-core@3.1.0) (2024-09-06)
7
7
 
8
8
  ### Features
9
9
 
10
- - get datasource map for migration ([#2668](https://github.com/aws-amplify/amplify-category-api/issues/2668)) ([02c7da0](https://github.com/aws-amplify/amplify-category-api/commit/02c7da0da0d5837ca05a8e4ff1b1536cc20ae15b))
11
- - import existing table to amplify managed table ([#2634](https://github.com/aws-amplify/amplify-category-api/issues/2634)) ([b3fb28f](https://github.com/aws-amplify/amplify-category-api/commit/b3fb28f6a253cae523625c0b2e93ec9ce2c37bab))
10
+ - **conversation:** add conversation transformer ([#2827](https://github.com/aws-amplify/amplify-category-api/issues/2827)) ([cee6aef](https://github.com/aws-amplify/amplify-category-api/commit/cee6aef1358293fe51909a64d1cf9941afc46aba))
11
+
12
+ ## [3.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@3.0.0...@aws-amplify/graphql-transformer-core@3.0.1) (2024-08-28)
13
+
14
+ **Note:** Version bump only for package @aws-amplify/graphql-transformer-core
15
+
16
+ # [3.0.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.3...@aws-amplify/graphql-transformer-core@3.0.0) (2024-08-20)
17
+
18
+ - feat!: bump version for v2 transformer packages ([7dac35c](https://github.com/aws-amplify/amplify-category-api/commit/7dac35cceb971b256b5688b0745ef82afc78b641))
19
+
20
+ ### BREAKING CHANGES
21
+
22
+ - distinguish from LTS version
23
+
24
+ ## [2.9.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.2...@aws-amplify/graphql-transformer-core@2.9.3) (2024-07-15)
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
  ## [2.9.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-transformer-core@2.9.1...@aws-amplify/graphql-transformer-core@2.9.2) (2024-07-02)
14
31
 
@@ -1,5 +1,5 @@
1
1
  import { MappingTemplateProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
- import { BaseDataSource } from 'aws-cdk-lib/aws-appsync';
2
+ import { BaseDataSource, CfnFunctionConfiguration } from 'aws-cdk-lib/aws-appsync';
3
3
  import { Construct } from 'constructs';
4
4
  import { GraphQLApi } from './graphql-api';
5
5
  export interface BaseFunctionConfigurationProps {
@@ -10,6 +10,7 @@ export interface BaseFunctionConfigurationProps {
10
10
  export interface FunctionConfigurationProps extends BaseFunctionConfigurationProps {
11
11
  readonly api: GraphQLApi;
12
12
  readonly dataSource: BaseDataSource | string;
13
+ readonly runtime: CfnFunctionConfiguration.AppSyncRuntimeProperty | undefined;
13
14
  }
14
15
  export declare class AppSyncFunctionConfiguration extends Construct {
15
16
  readonly arn: string;
@@ -1 +1 @@
1
- {"version":3,"file":"appsync-function.d.ts","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAoB,cAAc,EAA4B,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,WAAW,8BAA8B;IAM7C,QAAQ,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAMzD,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAE1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAKD,MAAM,WAAW,0BAA2B,SAAQ,8BAA8B;IAIhF,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IAM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 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppSyncFunctionConfiguration = void 0;
4
4
  const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
5
5
  const constructs_1 = require("constructs");
6
- const template_asset_1 = require("./cdk-compat/template-asset");
7
6
  const utils_1 = require("./utils");
7
+ const function_runtime_1 = require("./utils/function-runtime");
8
8
  class AppSyncFunctionConfiguration extends constructs_1.Construct {
9
9
  constructor(scope, id, props) {
10
10
  var _a;
11
11
  super(scope, id);
12
- const requestTemplate = props.requestMappingTemplate.bind(this, props.api.assetProvider);
13
- const responseTemplate = props.responseMappingTemplate.bind(this, props.api.assetProvider);
12
+ const runtimeSpecificProps = (0, function_runtime_1.getRuntimeSpecificFunctionProps)(this, props);
14
13
  this.function = new aws_appsync_1.CfnFunctionConfiguration(this, `${id}.AppSyncFunction`, {
15
14
  name: id,
16
15
  apiId: props.api.apiId,
17
16
  functionVersion: '2018-05-29',
18
17
  description: props.description,
19
18
  dataSourceName: props.dataSource instanceof aws_appsync_1.BaseDataSource ? props.dataSource.ds.attrName : props.dataSource,
20
- ...(props.requestMappingTemplate instanceof template_asset_1.InlineTemplate
21
- ? { requestMappingTemplate: requestTemplate }
22
- : { requestMappingTemplateS3Location: requestTemplate }),
23
- ...(props.responseMappingTemplate instanceof template_asset_1.InlineTemplate
24
- ? { responseMappingTemplate: responseTemplate }
25
- : { responseMappingTemplateS3Location: responseTemplate }),
19
+ ...runtimeSpecificProps,
26
20
  });
27
21
  (0, utils_1.setResourceName)(this.function, { name: id });
28
22
  props.api.addSchemaDependency(this.function);
@@ -1 +1 @@
1
- {"version":3,"file":"appsync-function.js","sourceRoot":"","sources":["../src/appsync-function.ts"],"names":[],"mappings":";;;AACA,yDAAqG;AACrG,2CAAuC;AACvC,gEAA6D;AAE7D,mCAA0C;AAmC1C,MAAa,4BAA6B,SAAQ,sBAAS;IAUzD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAiC;;QACzE,KAAK,CAAC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I,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAA,KAAK,CAAC,UAAU,0CAAE,EAAE,CAAC,CAAC;SACnD;QACD,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;IACjD,CAAC;CACF;AA9BD,oEA8BC"}
@@ -1,5 +1,5 @@
1
- import { AssetProvider, APIIAMResourceProvider, GraphQLAPIProvider, TransformHostProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
- import { ApiKeyConfig, AuthorizationConfig, AuthorizationType, GraphqlApiBase, LogConfig, CfnApiKey } from 'aws-cdk-lib/aws-appsync';
1
+ import { AssetProvider, GraphQLAPIProvider, TransformHostProvider } from '@aws-amplify/graphql-transformer-interfaces';
2
+ import { ApiKeyConfig, AuthorizationConfig, AuthorizationType, GraphqlApiBase, LogConfig, CfnApiKey, Visibility, IamResource } from 'aws-cdk-lib/aws-appsync';
3
3
  import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
4
4
  import { CfnResource } from 'aws-cdk-lib';
5
5
  import { Construct } from 'constructs';
@@ -11,14 +11,6 @@ export interface GraphqlApiProps {
11
11
  readonly schema?: TransformerSchema;
12
12
  readonly xrayEnabled?: boolean;
13
13
  }
14
- export declare class IamResource implements APIIAMResourceProvider {
15
- static custom(...arns: string[]): IamResource;
16
- static ofType(type: string, ...fields: string[]): IamResource;
17
- static all(): IamResource;
18
- private arns;
19
- private constructor();
20
- resourceArns(api: GraphQLAPIProvider): string[];
21
- }
22
14
  export type TransformerAPIProps = GraphqlApiProps & {
23
15
  readonly createApiKey?: boolean;
24
16
  readonly host?: TransformHostProvider;
@@ -40,12 +32,14 @@ export declare class GraphQLApi extends GraphqlApiBase implements GraphQLAPIProv
40
32
  readonly disableResolverDeduping?: boolean;
41
33
  readonly environmentName?: string;
42
34
  readonly assetProvider: AssetProvider;
35
+ readonly graphQLEndpointArn: string;
36
+ readonly visibility: Visibility;
43
37
  private schemaResource;
44
38
  private api;
45
39
  private apiKeyResource?;
46
40
  private authorizationConfig?;
47
41
  constructor(scope: Construct, id: string, props: TransformerAPIProps);
48
- grant(grantee: IGrantable, resources: APIIAMResourceProvider, ...actions: string[]): Grant;
42
+ grant(grantee: IGrantable, resources: IamResource, ...actions: string[]): Grant;
49
43
  grantQuery(grantee: IGrantable, ...fields: string[]): Grant;
50
44
  grantMutation(grantee: IGrantable, ...fields: string[]): Grant;
51
45
  grantSubscription(grantee: IGrantable, ...fields: string[]): Grant;
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-api.d.ts","sourceRoot":"","sources":["../src/graphql-api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,mBAAmB,EAEnB,iBAAiB,EACjB,cAAc,EACd,SAAS,EAIT,SAAS,EAGV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAyC,MAAM,qBAAqB,CAAC;AAE/F,OAAO,EAAa,WAAW,EAAmB,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,MAAM,WAAW,eAAe;IAK9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAMtB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAMnD,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAQ/B,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAMpC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,qBAAa,WAAY,YAAW,sBAAsB;WAQ1C,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,E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,CAAC;IAKlD,SAAgB,eAAe,CAAC,EAAE,MAAM,CAAC;IAKzC,SAAgB,aAAa,EAAE,aAAa,CAAC;IAK7C,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAK3C,SAAgB,UAAU,EAAE,UAAU,CAAC;IAEvC,OAAO,CAAC,cAAc,CAAmB;IAEzC,OAAO,CAAC,GAAG,CAAgB;IAE3B,OAAO,CAAC,cAAc,CAAC,CAAY;IAEnC,OAAO,CAAC,mBAAmB,CAAC,CAAgB;gBAEhC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB;IAoE7D,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK;IAS/E,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK;IAI3D,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK;IAW9D,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK;IAIlE,YAAY,CAAC,MAAM,CAAC,EAAE,YAAY;IAYlC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIlC,uBAAuB;IAI9B,OAAO,CAAC,0BAA0B;IAiB3B,mBAAmB,CAAC,SAAS,EAAE,WAAW,GAAG,OAAO;IAK3D,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,iCAAiC;CAe1C"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.GraphQLApi = exports.IamResource = void 0;
26
+ exports.GraphQLApi = void 0;
27
27
  const aws_appsync_1 = require("aws-cdk-lib/aws-appsync");
28
28
  const aws_iam_1 = require("aws-cdk-lib/aws-iam");
29
29
  const cdk = __importStar(require("aws-cdk-lib"));
@@ -31,33 +31,6 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
31
31
  const schema_asset_1 = require("./cdk-compat/schema-asset");
32
32
  const transform_host_1 = require("./transform-host");
33
33
  const utils_1 = require("./utils");
34
- class IamResource {
35
- static custom(...arns) {
36
- if (arns.length === 0) {
37
- throw new Error('At least 1 custom ARN must be provided.');
38
- }
39
- return new IamResource(arns);
40
- }
41
- static ofType(type, ...fields) {
42
- const arns = fields.length ? fields.map((field) => `types/${type}/fields/${field}`) : [`types/${type}/*`];
43
- return new IamResource(arns);
44
- }
45
- static all() {
46
- return new IamResource(['*']);
47
- }
48
- constructor(arns) {
49
- this.arns = arns;
50
- }
51
- resourceArns(api) {
52
- return this.arns.map((arn) => aws_cdk_lib_1.Stack.of(api).formatArn({
53
- service: 'appsync',
54
- resource: `apis/${api.apiId}`,
55
- arnFormat: aws_cdk_lib_1.ArnFormat.SLASH_RESOURCE_NAME,
56
- resourceName: `${arn}`,
57
- }));
58
- }
59
- }
60
- exports.IamResource = IamResource;
61
34
  class GraphQLApi extends aws_appsync_1.GraphqlApiBase {
62
35
  constructor(scope, id, props) {
63
36
  var _a, _b;
@@ -87,6 +60,8 @@ class GraphQLApi extends aws_appsync_1.GraphqlApiBase {
87
60
  this.arn = this.api.attrArn;
88
61
  this.graphqlUrl = this.api.attrGraphQlUrl;
89
62
  this.name = this.api.name;
63
+ this.graphQLEndpointArn = this.api.attrGraphQlEndpointArn;
64
+ this.visibility = this.api.visibility === 'PRIVATE' ? aws_appsync_1.Visibility.PRIVATE : aws_appsync_1.Visibility.GLOBAL;
90
65
  this.schema = (_a = props.schema) !== null && _a !== void 0 ? _a : new schema_asset_1.TransformerSchema();
91
66
  this.assetProvider = props.assetProvider;
92
67
  this.schemaResource = this.schema.bind(this);
@@ -120,13 +95,13 @@ class GraphQLApi extends aws_appsync_1.GraphqlApiBase {
120
95
  });
121
96
  }
122
97
  grantQuery(grantee, ...fields) {
123
- return this.grant(grantee, IamResource.ofType('Query', ...fields), 'appsync:GraphQL');
98
+ return this.grant(grantee, aws_appsync_1.IamResource.ofType('Query', ...fields), 'appsync:GraphQL');
124
99
  }
125
100
  grantMutation(grantee, ...fields) {
126
- return this.grant(grantee, IamResource.ofType('Mutation', ...fields), 'appsync:GraphQL');
101
+ return this.grant(grantee, aws_appsync_1.IamResource.ofType('Mutation', ...fields), 'appsync:GraphQL');
127
102
  }
128
103
  grantSubscription(grantee, ...fields) {
129
- return this.grant(grantee, IamResource.ofType('Subscription', ...fields), 'appsync:GraphQL');
104
+ return this.grant(grantee, aws_appsync_1.IamResource.ofType('Subscription', ...fields), 'appsync:GraphQL');
130
105
  }
131
106
  createAPIKey(config) {
132
107
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-api.js","sourceRoot":"","sources":["../src/graphql-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,yDAaiC;AACjC,iDAA+F;AAC/F,iDAAmC;AACnC,6CAAsE;AAEtE,4DAA8D;AAC9D,qDAAwD;AACxD,mCAA0C;AAoC1C,MAAa,WAAW;IAQf,MAAM,CAAC,MAAM,CAAC,GAAG,IAAc;QACpC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;SAC5D;QACD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAUM,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,GAAG,MAAgB;QACpD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,IAAI,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;IAC5H,CAAC;IAEO,iCAAiC,CAAC,KAAkB;QAC1D,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,SAAS,CAAC;QACnD,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC;YACb,GAAG,GAAG;YACN;gBACE,kBAAkB,EAAE,IAAI,CAAC,iBAAiB;gBAC1C,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAC;gBAC7D,mBAAmB,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,mBAAmB,CAAC;gBAC5E,sBAAsB,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,sBAAsB,CAAC;aAC5E;SACF,EACD,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AAtSD,gCAsSC"}
@@ -2,8 +2,9 @@ export { constructDataSourceStrategies, constructSqlDirectiveDataSourceStrategie
2
2
  export { UserDefinedSlot, UserDefinedResolver } from './transformation/types';
3
3
  export { validateModelSchema } from './transformation/validation';
4
4
  export { ConflictDetectionType, ConflictHandlerType, ResolverConfig, SyncConfig, SyncConfigOptimistic, SyncConfigServer, SyncConfigLambda, TransformConfig, } from './config/index';
5
- export { APICategory, collectDirectives, collectDirectivesByTypeNames, constructArrayFieldsStatement, constructAuthFilterStatement, constructFieldMappingInput, constructNonScalarFieldsStatement, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getArrayFields, getConditionInputName, getConnectionName, getDefaultStrategyNameForDbType, getField, getFilterInputName, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceNameForTypeName, getModelDataSourceStrategy, getNonScalarFields, getParameterStoreSecretPath, getPrimaryKeyFieldNodes, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromModel, getStrategyDbTypeFromTypeNode, getSubscriptionFilterInputName, getTable, getType, isImportedAmplifyDynamoDbModelDataSourceStrategy, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, } from './utils';
5
+ export { APICategory, collectDirectives, collectDirectivesByTypeNames, constructArrayFieldsStatement, constructAuthFilterStatement, constructFieldMappingInput, constructNonScalarFieldsStatement, DirectiveWrapper, fieldsWithSqlDirective, generateGetArgumentsInput, GetArgumentsOptions, getArrayFields, getConditionInputName, getConnectionName, getDefaultStrategyNameForDbType, getField, getFilterInputName, getImportedRDSTypeFromStrategyDbType, getKeySchema, getModelDataSourceNameForTypeName, getModelDataSourceStrategy, getNonScalarFields, getParameterStoreSecretPath, getPrimaryKeyFieldNodes, getPrimaryKeyFields, getResourceName, getResourceNamesForStrategy, getResourceNamesForStrategyName, getSortKeyFieldNames, getStrategyDbTypeFromModel, getStrategyDbTypeFromTypeNode, getSubscriptionFilterInputName, getTable, getType, isAmplifyDynamoDbModelDataSourceStrategy, isBuiltInGraphqlNode, isDefaultDynamoDbModelDataSourceStrategy, isDynamoDbModel, isDynamoDbType, isModelType, isMutationNode, isObjectTypeDefinitionNode, isQueryNode, isQueryType, isSqlDbType, isSqlModel, isSqlStrategy, normalizeDbType, setResourceName, SQLLambdaResourceNames, } from './utils';
6
6
  export type { SetResourceNameProps } from './utils';
7
+ export { type JSONSchema, isDisallowedScalarType, supportedScalarTypes, GraphQLScalarJSONSchemaDefinition, convertNamedTypeToJSONSchema, } from './utils/ai';
7
8
  export * from './utils/operation-names';
8
9
  export * from './errors';
9
10
  export { TransformerModelBase, TransformerModelEnhancerBase, TransformerPluginBase, TransformerAuthBase, } from './transformation/transformer-plugin-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot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,uBAAuB,GACxB,MAAM,sCAAsC,CAAC"}
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.isQueryNode = exports.isObjectTypeDefinitionNode = exports.isMutationNode = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isBuiltInGraphqlNode = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.isImportedAmplifyDynamoDbModelDataSourceStrategy = exports.getType = exports.getTable = exports.getSubscriptionFilterInputName = exports.getStrategyDbTypeFromTypeNode = exports.getStrategyDbTypeFromModel = exports.getSortKeyFieldNames = exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getPrimaryKeyFields = exports.getPrimaryKeyFieldNodes = exports.getParameterStoreSecretPath = exports.getNonScalarFields = exports.getModelDataSourceStrategy = exports.getModelDataSourceNameForTypeName = exports.getKeySchema = exports.getImportedRDSTypeFromStrategyDbType = exports.getFilterInputName = exports.getField = exports.getDefaultStrategyNameForDbType = exports.getConnectionName = exports.getConditionInputName = exports.getArrayFields = exports.generateGetArgumentsInput = exports.fieldsWithSqlDirective = exports.DirectiveWrapper = exports.constructNonScalarFieldsStatement = exports.constructFieldMappingInput = exports.constructAuthFilterStatement = exports.constructArrayFieldsStatement = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.APICategory = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = exports.getModelTypeNames = exports.constructSqlDirectiveDataSourceStrategies = exports.constructDataSourceStrategies = void 0;
18
- exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.setResourceName = exports.normalizeDbType = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = void 0;
17
+ exports.isQueryType = exports.isQueryNode = exports.isObjectTypeDefinitionNode = exports.isMutationNode = exports.isModelType = exports.isDynamoDbType = exports.isDynamoDbModel = exports.isDefaultDynamoDbModelDataSourceStrategy = exports.isBuiltInGraphqlNode = exports.isAmplifyDynamoDbModelDataSourceStrategy = exports.getType = exports.getTable = exports.getSubscriptionFilterInputName = exports.getStrategyDbTypeFromTypeNode = exports.getStrategyDbTypeFromModel = exports.getSortKeyFieldNames = exports.getResourceNamesForStrategyName = exports.getResourceNamesForStrategy = exports.getResourceName = exports.getPrimaryKeyFields = exports.getPrimaryKeyFieldNodes = exports.getParameterStoreSecretPath = exports.getNonScalarFields = exports.getModelDataSourceStrategy = exports.getModelDataSourceNameForTypeName = exports.getKeySchema = exports.getImportedRDSTypeFromStrategyDbType = exports.getFilterInputName = exports.getField = exports.getDefaultStrategyNameForDbType = exports.getConnectionName = exports.getConditionInputName = exports.getArrayFields = exports.generateGetArgumentsInput = exports.fieldsWithSqlDirective = exports.DirectiveWrapper = exports.constructNonScalarFieldsStatement = exports.constructFieldMappingInput = exports.constructAuthFilterStatement = exports.constructArrayFieldsStatement = exports.collectDirectivesByTypeNames = exports.collectDirectives = exports.APICategory = exports.ConflictHandlerType = exports.validateModelSchema = exports.SyncUtils = exports.GraphQLTransform = exports.getModelTypeNames = exports.constructSqlDirectiveDataSourceStrategies = exports.constructDataSourceStrategies = void 0;
18
+ exports.ObjectDefinitionWrapper = exports.InputObjectDefinitionWrapper = exports.InputFieldWrapper = exports.FieldWrapper = exports.EnumWrapper = exports.MappingTemplate = exports.getAppSyncServiceExtraDirectives = exports.SQL_SCHEMA_FILE_NAME = exports.POSTGRES_DB_TYPE = exports.MYSQL_DB_TYPE = exports.ImportedRDSType = exports.DDB_DEFAULT_DATASOURCE_STRATEGY = exports.DDB_DB_TYPE = exports.DDB_AMPLIFY_MANAGED_DATASOURCE_STRATEGY = exports.StackManager = exports.TransformerResolver = exports.TransformerAuthBase = exports.TransformerPluginBase = exports.TransformerModelEnhancerBase = exports.TransformerModelBase = exports.convertNamedTypeToJSONSchema = exports.GraphQLScalarJSONSchemaDefinition = exports.supportedScalarTypes = exports.isDisallowedScalarType = exports.setResourceName = exports.normalizeDbType = exports.isSqlStrategy = exports.isSqlModel = exports.isSqlDbType = void 0;
19
19
  const graphql_1 = require("graphql");
20
20
  const validation_1 = require("./transformation/validation");
21
21
  var transformation_1 = require("./transformation");
@@ -62,7 +62,6 @@ Object.defineProperty(exports, "getStrategyDbTypeFromTypeNode", { enumerable: tr
62
62
  Object.defineProperty(exports, "getSubscriptionFilterInputName", { enumerable: true, get: function () { return utils_1.getSubscriptionFilterInputName; } });
63
63
  Object.defineProperty(exports, "getTable", { enumerable: true, get: function () { return utils_1.getTable; } });
64
64
  Object.defineProperty(exports, "getType", { enumerable: true, get: function () { return utils_1.getType; } });
65
- Object.defineProperty(exports, "isImportedAmplifyDynamoDbModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.isImportedAmplifyDynamoDbModelDataSourceStrategy; } });
66
65
  Object.defineProperty(exports, "isAmplifyDynamoDbModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.isAmplifyDynamoDbModelDataSourceStrategy; } });
67
66
  Object.defineProperty(exports, "isBuiltInGraphqlNode", { enumerable: true, get: function () { return utils_1.isBuiltInGraphqlNode; } });
68
67
  Object.defineProperty(exports, "isDefaultDynamoDbModelDataSourceStrategy", { enumerable: true, get: function () { return utils_1.isDefaultDynamoDbModelDataSourceStrategy; } });
@@ -72,11 +71,17 @@ Object.defineProperty(exports, "isModelType", { enumerable: true, get: function
72
71
  Object.defineProperty(exports, "isMutationNode", { enumerable: true, get: function () { return utils_1.isMutationNode; } });
73
72
  Object.defineProperty(exports, "isObjectTypeDefinitionNode", { enumerable: true, get: function () { return utils_1.isObjectTypeDefinitionNode; } });
74
73
  Object.defineProperty(exports, "isQueryNode", { enumerable: true, get: function () { return utils_1.isQueryNode; } });
74
+ Object.defineProperty(exports, "isQueryType", { enumerable: true, get: function () { return utils_1.isQueryType; } });
75
75
  Object.defineProperty(exports, "isSqlDbType", { enumerable: true, get: function () { return utils_1.isSqlDbType; } });
76
76
  Object.defineProperty(exports, "isSqlModel", { enumerable: true, get: function () { return utils_1.isSqlModel; } });
77
77
  Object.defineProperty(exports, "isSqlStrategy", { enumerable: true, get: function () { return utils_1.isSqlStrategy; } });
78
78
  Object.defineProperty(exports, "normalizeDbType", { enumerable: true, get: function () { return utils_1.normalizeDbType; } });
79
79
  Object.defineProperty(exports, "setResourceName", { enumerable: true, get: function () { return utils_1.setResourceName; } });
80
+ var ai_1 = require("./utils/ai");
81
+ Object.defineProperty(exports, "isDisallowedScalarType", { enumerable: true, get: function () { return ai_1.isDisallowedScalarType; } });
82
+ Object.defineProperty(exports, "supportedScalarTypes", { enumerable: true, get: function () { return ai_1.supportedScalarTypes; } });
83
+ Object.defineProperty(exports, "GraphQLScalarJSONSchemaDefinition", { enumerable: true, get: function () { return ai_1.GraphQLScalarJSONSchemaDefinition; } });
84
+ Object.defineProperty(exports, "convertNamedTypeToJSONSchema", { enumerable: true, get: function () { return ai_1.convertNamedTypeToJSONSchema; } });
80
85
  __exportStar(require("./utils/operation-names"), exports);
81
86
  __exportStar(require("./errors"), exports);
82
87
  var transformer_plugin_base_1 = require("./transformation/transformer-plugin-base");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;A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