@aws-amplify/graphql-api-construct 1.7.0-iam-auth-with-identityPool-provider-1.0 → 1.7.1-gen2-release.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (454) hide show
  1. package/.jsii +148 -36
  2. package/API.md +13 -1
  3. package/CHANGELOG.md +6 -2
  4. package/README.md +75 -17
  5. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  6. package/lib/amplify-graphql-api.js +1 -1
  7. package/lib/amplify-graphql-definition.js +1 -1
  8. package/lib/internal/authorization-modes.d.ts +10 -0
  9. package/lib/internal/authorization-modes.js +18 -8
  10. package/lib/internal/codegen-assets.js +10 -1
  11. package/lib/internal/data-source-config.js +37 -4
  12. package/lib/model-datasource-strategy-types.d.ts +25 -1
  13. package/lib/model-datasource-strategy-types.js +1 -1
  14. package/lib/sql-model-datasource-strategy.d.ts +13 -1
  15. package/lib/sql-model-datasource-strategy.js +26 -4
  16. package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +1 -1
  17. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +5 -3
  18. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +4 -5
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts +1 -1
  22. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.d.ts.map +1 -1
  23. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js +2 -39
  24. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/definitions.js.map +1 -1
  25. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts +4 -0
  26. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.d.ts.map +1 -0
  27. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js +12 -0
  28. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/common.js.map +1 -0
  29. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +1 -1
  30. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -1
  31. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +1 -1
  32. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -1
  33. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts +1 -1
  34. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +1 -1
  35. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js +16 -13
  36. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -1
  37. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts +8 -2
  38. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -1
  39. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js +10 -14
  40. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -1
  41. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts +1 -1
  42. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +1 -1
  43. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js +2 -2
  44. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js.map +1 -1
  45. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js +2 -1
  46. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -1
  47. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js +2 -1
  48. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -1
  49. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js +2 -1
  50. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -1
  51. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -1
  52. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js +15 -4
  53. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -1
  54. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js +2 -1
  55. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -1
  56. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -1
  57. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js +8 -2
  58. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -1
  59. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +1 -1
  60. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -1
  61. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +1 -1
  62. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -1
  63. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +1 -1
  64. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -1
  65. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +10 -19
  66. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -1
  67. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +1 -1
  68. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -1
  69. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -13
  70. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +5 -1
  71. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
  72. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +2 -5
  73. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
  74. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
  75. package/node_modules/@aws-amplify/graphql-directives/API.md +158 -0
  76. package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +14 -0
  77. package/node_modules/@aws-amplify/graphql-directives/Readme.md +19 -0
  78. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts +3 -0
  79. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.d.ts.map +1 -0
  80. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js +14 -0
  81. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-api-key.js.map +1 -0
  82. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts +3 -0
  83. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.d.ts.map +1 -0
  84. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js +14 -0
  85. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-auth.js.map +1 -0
  86. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts +3 -0
  87. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.d.ts.map +1 -0
  88. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js +14 -0
  89. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-cognito-user-pools.js.map +1 -0
  90. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts +3 -0
  91. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.d.ts.map +1 -0
  92. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js +14 -0
  93. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-iam.js.map +1 -0
  94. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts +3 -0
  95. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.d.ts.map +1 -0
  96. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js +14 -0
  97. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-lambda.js.map +1 -0
  98. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts +3 -0
  99. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.d.ts.map +1 -0
  100. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js +14 -0
  101. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-oidc.js.map +1 -0
  102. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts +3 -0
  103. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.d.ts.map +1 -0
  104. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js +14 -0
  105. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/aws-subscribe.js.map +1 -0
  106. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts +8 -0
  107. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.d.ts.map +1 -0
  108. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js +18 -0
  109. package/node_modules/@aws-amplify/graphql-directives/lib/directives/appsync/index.js.map +1 -0
  110. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts +3 -0
  111. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.d.ts.map +1 -0
  112. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js +50 -0
  113. package/node_modules/@aws-amplify/graphql-directives/lib/directives/auth.js.map +1 -0
  114. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts +3 -0
  115. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -0
  116. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +14 -0
  117. package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -0
  118. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts +3 -0
  119. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.d.ts.map +1 -0
  120. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js +14 -0
  121. package/node_modules/@aws-amplify/graphql-directives/lib/directives/default.js.map +1 -0
  122. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts +3 -0
  123. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.d.ts.map +1 -0
  124. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js +14 -0
  125. package/node_modules/@aws-amplify/graphql-directives/lib/directives/deprecated.js.map +1 -0
  126. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts +8 -0
  127. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.d.ts.map +1 -0
  128. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js +3 -0
  129. package/node_modules/@aws-amplify/graphql-directives/lib/directives/directive.js.map +1 -0
  130. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts +3 -0
  131. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.d.ts.map +1 -0
  132. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js +14 -0
  133. package/node_modules/@aws-amplify/graphql-directives/lib/directives/function.js.map +1 -0
  134. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts +6 -0
  135. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.d.ts.map +1 -0
  136. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js +16 -0
  137. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-many.js.map +1 -0
  138. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts +3 -0
  139. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.d.ts.map +1 -0
  140. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js +14 -0
  141. package/node_modules/@aws-amplify/graphql-directives/lib/directives/has-one.js.map +1 -0
  142. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts +7 -0
  143. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.d.ts.map +1 -0
  144. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js +28 -0
  145. package/node_modules/@aws-amplify/graphql-directives/lib/directives/http.js.map +1 -0
  146. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts +3 -0
  147. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.d.ts.map +1 -0
  148. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js +14 -0
  149. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index-directive.js.map +1 -0
  150. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts +21 -0
  151. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.d.ts.map +1 -0
  152. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js +54 -0
  153. package/node_modules/@aws-amplify/graphql-directives/lib/directives/index.js.map +1 -0
  154. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts +6 -0
  155. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.d.ts.map +1 -0
  156. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js +16 -0
  157. package/node_modules/@aws-amplify/graphql-directives/lib/directives/many-to-many.js.map +1 -0
  158. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts +3 -0
  159. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.d.ts.map +1 -0
  160. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js +14 -0
  161. package/node_modules/@aws-amplify/graphql-directives/lib/directives/maps-to.js.map +1 -0
  162. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts +3 -0
  163. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.d.ts.map +1 -0
  164. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js +43 -0
  165. package/node_modules/@aws-amplify/graphql-directives/lib/directives/model.js.map +1 -0
  166. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts +3 -0
  167. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.d.ts.map +1 -0
  168. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js +20 -0
  169. package/node_modules/@aws-amplify/graphql-directives/lib/directives/predictions.js.map +1 -0
  170. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts +3 -0
  171. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.d.ts.map +1 -0
  172. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js +14 -0
  173. package/node_modules/@aws-amplify/graphql-directives/lib/directives/primary-key.js.map +1 -0
  174. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts +3 -0
  175. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.d.ts.map +1 -0
  176. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js +14 -0
  177. package/node_modules/@aws-amplify/graphql-directives/lib/directives/refers-to.js.map +1 -0
  178. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts +3 -0
  179. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.d.ts.map +1 -0
  180. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js +17 -0
  181. package/node_modules/@aws-amplify/graphql-directives/lib/directives/searchable.js.map +1 -0
  182. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts +3 -0
  183. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.d.ts.map +1 -0
  184. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js +14 -0
  185. package/node_modules/@aws-amplify/graphql-directives/lib/directives/sql.js.map +1 -0
  186. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts +3 -0
  187. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.d.ts.map +1 -0
  188. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js +85 -0
  189. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/auth.js.map +1 -0
  190. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts +3 -0
  191. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.d.ts.map +1 -0
  192. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js +21 -0
  193. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/connection.js.map +1 -0
  194. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts +3 -0
  195. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.d.ts.map +1 -0
  196. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js +14 -0
  197. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/function.js.map +1 -0
  198. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts +7 -0
  199. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.d.ts.map +1 -0
  200. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js +28 -0
  201. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/http.js.map +1 -0
  202. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts +10 -0
  203. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.d.ts.map +1 -0
  204. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js +22 -0
  205. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/index.js.map +1 -0
  206. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts +3 -0
  207. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.d.ts.map +1 -0
  208. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js +14 -0
  209. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/key.js.map +1 -0
  210. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts +3 -0
  211. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.d.ts.map +1 -0
  212. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js +43 -0
  213. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/model.js.map +1 -0
  214. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts +3 -0
  215. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.d.ts.map +1 -0
  216. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js +20 -0
  217. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/predictions.js.map +1 -0
  218. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts +3 -0
  219. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.d.ts.map +1 -0
  220. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js +17 -0
  221. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/searchable.js.map +1 -0
  222. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts +7 -0
  223. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.d.ts.map +1 -0
  224. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js +17 -0
  225. package/node_modules/@aws-amplify/graphql-directives/lib/directives/v1/versioned.js.map +1 -0
  226. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts +7 -0
  227. package/node_modules/@aws-amplify/graphql-directives/lib/index.d.ts.map +1 -0
  228. package/node_modules/@aws-amplify/graphql-directives/lib/index.js +60 -0
  229. package/node_modules/@aws-amplify/graphql-directives/lib/index.js.map +1 -0
  230. package/node_modules/@aws-amplify/graphql-directives/package.json +66 -0
  231. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +5 -1
  232. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.d.ts.map +1 -1
  233. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js +2 -4
  234. package/node_modules/@aws-amplify/graphql-function-transformer/lib/graphql-function-transformer.js.map +1 -1
  235. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
  236. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +5 -1
  237. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.d.ts.map +1 -1
  238. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js +2 -15
  239. package/node_modules/@aws-amplify/graphql-http-transformer/lib/graphql-http-transformer.js.map +1 -1
  240. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
  241. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +5 -1
  242. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.d.ts.map +1 -1
  243. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js +5 -8
  244. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-index-transformer.js.map +1 -1
  245. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.d.ts.map +1 -1
  246. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js +4 -7
  247. package/node_modules/@aws-amplify/graphql-index-transformer/lib/graphql-primary-key-transformer.js.map +1 -1
  248. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +1 -1
  249. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
  250. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +19 -10
  251. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
  252. package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.d.ts.map +1 -1
  253. package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js +13 -2
  254. package/node_modules/@aws-amplify/graphql-index-transformer/lib/schema.js.map +1 -1
  255. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
  256. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +5 -1
  257. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  258. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
  259. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +6 -9
  260. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
  261. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -1
  262. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +9 -12
  263. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -1
  264. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -11
  265. package/node_modules/@aws-amplify/graphql-model-transformer/API.md +2 -2
  266. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +7 -1
  267. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts +0 -1
  268. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.d.ts.map +1 -1
  269. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js +1 -8
  270. package/node_modules/@aws-amplify/graphql-model-transformer/lib/definitions.js.map +1 -1
  271. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts +0 -1
  272. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
  273. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +3 -44
  274. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
  275. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  276. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  277. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  278. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts +1 -1
  279. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.d.ts.map +1 -1
  280. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js +8 -7
  281. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/common.js.map +1 -1
  282. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +5 -1
  283. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  284. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +71 -26
  285. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  286. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.d.ts.map +1 -1
  287. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +3 -3
  288. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  289. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
  290. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +21 -7
  291. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  292. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +8 -7
  293. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +5 -1
  294. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.d.ts.map +1 -1
  295. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js +2 -1
  296. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/graphql-predictions-transformer.js.map +1 -1
  297. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  298. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts +0 -1
  299. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.d.ts.map +1 -1
  300. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js +1 -10
  301. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/utils/constants.js.map +1 -1
  302. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
  303. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +7 -1
  304. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts +11 -0
  305. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.d.ts.map +1 -0
  306. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js +37 -0
  307. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-fields-transformer.js.map +1 -0
  308. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts +11 -0
  309. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.d.ts.map +1 -0
  310. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js +36 -0
  311. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-ddb-references-transformer.js.map +1 -0
  312. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts +11 -0
  313. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.d.ts.map +1 -0
  314. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js +30 -0
  315. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-sql-transformer.js.map +1 -0
  316. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts +5 -0
  317. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.d.ts.map +1 -0
  318. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js +31 -0
  319. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/belongs-to/belongs-to-directive-transformer-factory.js.map +1 -0
  320. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts +11 -0
  321. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.d.ts.map +1 -0
  322. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js +3 -0
  323. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/data-source-based-directive-transformer.js.map +1 -0
  324. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  325. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +17 -52
  326. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  327. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  328. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +16 -46
  329. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  330. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  331. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +15 -38
  332. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  333. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
  334. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +13 -17
  335. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
  336. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts +11 -0
  337. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.d.ts.map +1 -0
  338. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js +36 -0
  339. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-fields-transformer.js.map +1 -0
  340. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts +11 -0
  341. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -0
  342. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +37 -0
  343. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -0
  344. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts +11 -0
  345. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.d.ts.map +1 -0
  346. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js +30 -0
  347. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-sql-transformer.js.map +1 -0
  348. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts +5 -0
  349. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.d.ts.map +1 -0
  350. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js +31 -0
  351. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-transformer-factory.js.map +1 -0
  352. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts +11 -0
  353. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.d.ts.map +1 -0
  354. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js +34 -0
  355. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-fields-transformer.js.map +1 -0
  356. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts +11 -0
  357. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -0
  358. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +37 -0
  359. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -0
  360. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts +11 -0
  361. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.d.ts.map +1 -0
  362. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js +30 -0
  363. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-sql-transformer.js.map +1 -0
  364. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts +5 -0
  365. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.d.ts.map +1 -0
  366. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js +31 -0
  367. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-transformer-factory.js.map +1 -0
  368. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts +3 -2
  369. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -1
  370. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +6 -3
  371. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -1
  372. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts +9 -0
  373. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.d.ts.map +1 -0
  374. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js +172 -0
  375. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-references-generator.js.map +1 -0
  376. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts +2 -2
  377. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +1 -1
  378. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +1 -1
  379. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts +2 -1
  380. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts.map +1 -1
  381. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js +72 -17
  382. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js.map +1 -1
  383. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts +1 -1
  384. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
  385. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
  386. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +5 -0
  387. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  388. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +2 -1
  389. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  390. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +7 -1
  391. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  392. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
  393. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +5 -1
  394. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts +1 -1
  395. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.d.ts.map +1 -1
  396. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js +20 -9
  397. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/generate-resolver-vtl.js.map +1 -1
  398. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
  399. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +16 -9
  400. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
  401. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  402. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
  403. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +5 -1
  404. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -1
  405. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +19 -12
  406. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -1
  407. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -8
  408. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +7 -1
  409. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
  410. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  411. package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -16
  412. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +1 -0
  413. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +3 -0
  414. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +5 -1
  415. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  416. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  417. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
  418. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  419. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.d.ts.map +1 -1
  420. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js +11 -12
  421. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/validation.js.map +1 -1
  422. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +1 -0
  423. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
  424. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +8 -1
  425. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
  426. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
  427. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +28 -2
  428. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +7 -1
  429. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +12 -1
  430. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
  431. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js +22 -0
  432. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
  433. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts +1 -1
  434. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
  435. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +2 -2
  436. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +76 -1
  437. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +1 -0
  438. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  439. package/node_modules/graphql-mapping-template/CHANGELOG.md +0 -4
  440. package/node_modules/graphql-mapping-template/package.json +2 -3
  441. package/node_modules/graphql-transformer-common/API.md +13 -0
  442. package/node_modules/graphql-transformer-common/CHANGELOG.md +7 -1
  443. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts +13 -0
  444. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.d.ts.map +1 -1
  445. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js +13 -0
  446. package/node_modules/graphql-transformer-common/lib/TypescriptSchemaConstants.js.map +1 -1
  447. package/node_modules/graphql-transformer-common/package.json +3 -3
  448. package/package.json +21 -19
  449. package/src/internal/authorization-modes.ts +18 -8
  450. package/src/internal/codegen-assets.ts +11 -2
  451. package/src/internal/data-source-config.ts +42 -9
  452. package/src/model-datasource-strategy-types.ts +33 -1
  453. package/src/sql-model-datasource-strategy.ts +32 -1
  454. /package/node_modules/{graphql-mapping-template → @aws-amplify/graphql-directives}/LICENSE +0 -0
@@ -114,12 +114,45 @@ export interface SubnetAvailabilityZone {
114
114
  readonly availabilityZone: string;
115
115
  }
116
116
 
117
+ /*
118
+ * The credentials the lambda data source will use to connect to the database.
119
+ *
120
+ * @experimental
121
+ */
122
+ export type SqlModelDataSourceDbConnectionConfig =
123
+ | SqlModelDataSourceSecretsManagerDbConnectionConfig
124
+ | SqlModelDataSourceSsmDbConnectionConfig;
125
+
126
+ /*
127
+ * The credentials stored in Secrets Manager that the lambda data source will use to connect to the database.
128
+ *
129
+ * The managed secret should be in the same region as the lambda.
130
+ * @experimental
131
+ */
132
+ export interface SqlModelDataSourceSecretsManagerDbConnectionConfig {
133
+ /** The arn of the managed secret with username, password, and hostname to use when connecting to the database. **/
134
+ readonly secretArn: string;
135
+
136
+ /** The ARN of the customer managed encryption key for the secret. If not supplied, the secret is expected to be encrypted with the default AWS-managed key. **/
137
+ readonly keyArn?: string;
138
+
139
+ /** port number of the database proxy, cluster, or instance. */
140
+ readonly port: number;
141
+
142
+ /** database name. */
143
+ readonly databaseName: string;
144
+
145
+ /** The hostname of the database. */
146
+ readonly hostname: string;
147
+ }
148
+
117
149
  /**
118
150
  * The Secure Systems Manager parameter paths the Lambda data source will use to connect to the database.
119
151
  *
120
152
  * These parameters are retrieved from Secure Systems Manager in the same region as the Lambda.
153
+ * @experimental
121
154
  */
122
- export interface SqlModelDataSourceDbConnectionConfig {
155
+ export interface SqlModelDataSourceSsmDbConnectionConfig {
123
156
  /** The Secure Systems Manager parameter containing the hostname of the database. For RDS-based SQL data sources, this can be the hostname
124
157
  * of a database proxy, cluster, or instance.
125
158
  */
@@ -193,3 +226,45 @@ export interface RDSLayerMapping {
193
226
  export interface RDSLayerMappingProvider {
194
227
  rdsLayerMapping?: RDSLayerMapping;
195
228
  }
229
+
230
+ /**
231
+ * Type predicate that returns true if the object is a SqlModelDataSourceDbConnectionConfig.
232
+ * @param obj the object to inspect
233
+ * @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
234
+ */
235
+ export const isSqlModelDataSourceDbConnectionConfig = (obj: any): obj is SqlModelDataSourceDbConnectionConfig => {
236
+ return isSqlModelDataSourceSsmDbConnectionConfig(obj) || isSqlModelDataSourceSecretsManagerDbConnectionConfig(obj);
237
+ };
238
+
239
+ /**
240
+ * Type predicate that returns true if the object is a SqlModelDataSourceSsmDbConnectionConfig.
241
+ * @param obj the object to inspect
242
+ * @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
243
+ */
244
+ export const isSqlModelDataSourceSsmDbConnectionConfig = (obj: any): obj is SqlModelDataSourceSsmDbConnectionConfig => {
245
+ return (
246
+ (typeof obj === 'object' || typeof obj === 'function') &&
247
+ typeof obj.hostnameSsmPath === 'string' &&
248
+ typeof obj.portSsmPath === 'string' &&
249
+ typeof obj.usernameSsmPath === 'string' &&
250
+ typeof obj.passwordSsmPath === 'string' &&
251
+ typeof obj.databaseNameSsmPath === 'string'
252
+ );
253
+ };
254
+
255
+ /**
256
+ * Type predicate that returns true if the object is a SqlModelDataSourceSecretsManagerDbConnectionConfig.
257
+ * @param obj the object to inspect
258
+ * @returns true if the object is shaped like a SqlModelDataSourceDbConnectionConfig
259
+ */
260
+ export const isSqlModelDataSourceSecretsManagerDbConnectionConfig = (
261
+ obj: any,
262
+ ): obj is SqlModelDataSourceSecretsManagerDbConnectionConfig => {
263
+ return (
264
+ (typeof obj === 'object' || typeof obj === 'function') &&
265
+ typeof obj.secretArn === 'string' &&
266
+ typeof obj.port === 'number' &&
267
+ typeof obj.databaseName === 'string' &&
268
+ typeof obj.hostname === 'string'
269
+ );
270
+ };
@@ -63,6 +63,7 @@ export type TransformerSchemaVisitStepContextProvider = Pick<
63
63
  | 'metadata'
64
64
  | 'authConfig'
65
65
  | 'resourceHelper'
66
+ | 'synthParameters'
66
67
  >;
67
68
 
68
69
  export type TransformerValidationStepContextProvider = Pick<